Skip to content

Commit

Permalink
sub-directory imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Berlioz committed Dec 17, 2024
1 parent 87bd7e1 commit 319bc33
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/cloudevent/mocks/alerts/alerts-on-alert-published.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
getEventType,
PROJECT_ID,
} from '../helpers';
import { FirebaseAlertData, AlertEvent } from 'firebase-functions/alerts';
import { FirebaseAlertData, AlertEvent } from 'firebase-functions/v2/alerts';

export const alertsOnAlertPublished: MockCloudEventAbstractFactory<AlertEvent<
FirebaseAlertData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import {
AppDistributionEvent,
NewTesterDevicePayload,
} from 'firebase-functions/alerts/appDistribution';
} from 'firebase-functions/v2/alerts/appDistribution';

export const alertsAppDistributionOnNewTesterIosDevicePublished: MockCloudEventAbstractFactory<AppDistributionEvent<
NewTesterDevicePayload
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { DeepPartial, MockCloudEventAbstractFactory } from '../../types';
import { CloudFunction } from 'firebase-functions/v2';
import { FirebaseAlertData } from 'firebase-functions/alerts';
import { FirebaseAlertData } from 'firebase-functions/v2/alerts';
import {
BillingEvent,
PlanAutomatedUpdatePayload,
} from 'firebase-functions/alerts/billing';
} from 'firebase-functions/v2/alerts/billing';
import {
getBaseCloudEvent,
getEventFilters,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { DeepPartial, MockCloudEventAbstractFactory } from '../../types';
import { CloudFunction } from 'firebase-functions/v2';
import { FirebaseAlertData } from 'firebase-functions/alerts';
import { FirebaseAlertData } from 'firebase-functions/v2/alerts';
import {
BillingEvent,
PlanUpdatePayload,
} from 'firebase-functions/alerts/billing';
} from 'firebase-functions/v2/alerts/billing';
import {
getBaseCloudEvent,
getEventFilters,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
import {
CrashlyticsEvent,
NewAnrIssuePayload,
} from 'firebase-functions/alerts/crashlytics';
import { FirebaseAlertData } from 'firebase-functions/alerts';
} from 'firebase-functions/v2/alerts/crashlytics';
import { FirebaseAlertData } from 'firebase-functions/v2/alerts';

export const alertsCrashlyticsOnNewAnrIssuePublished: MockCloudEventAbstractFactory<CrashlyticsEvent<
NewAnrIssuePayload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
import {
CrashlyticsEvent,
NewFatalIssuePayload,
} from 'firebase-functions/alerts/crashlytics';
import { FirebaseAlertData } from 'firebase-functions/alerts';
} from 'firebase-functions/v2/alerts/crashlytics';
import { FirebaseAlertData } from 'firebase-functions/v2/alerts';

export const alertsCrashlyticsOnNewFatalIssuePublished: MockCloudEventAbstractFactory<CrashlyticsEvent<
NewFatalIssuePayload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
import {
CrashlyticsEvent,
NewNonfatalIssuePayload,
} from 'firebase-functions/alerts/crashlytics';
import { FirebaseAlertData } from 'firebase-functions/alerts';
} from 'firebase-functions/v2/alerts/crashlytics';
import { FirebaseAlertData } from 'firebase-functions/v2/alerts';

export const alertsCrashlyticsOnNewNonfatalIssuePublished: MockCloudEventAbstractFactory<CrashlyticsEvent<
NewNonfatalIssuePayload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
import {
CrashlyticsEvent,
RegressionAlertPayload,
} from 'firebase-functions/alerts/crashlytics';
import { FirebaseAlertData } from 'firebase-functions/alerts';
} from 'firebase-functions/v2/alerts/crashlytics';
import { FirebaseAlertData } from 'firebase-functions/v2/alerts';

export const alertsCrashlyticsOnRegressionAlertPublished: MockCloudEventAbstractFactory<CrashlyticsEvent<
RegressionAlertPayload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
import {
CrashlyticsEvent,
StabilityDigestPayload,
} from 'firebase-functions/alerts/crashlytics';
import { FirebaseAlertData } from 'firebase-functions/alerts';
} from 'firebase-functions/v2/alerts/crashlytics';
import { FirebaseAlertData } from 'firebase-functions/v2/alerts';

export const alertsCrashlyticsOnStabilityDigestPublished: MockCloudEventAbstractFactory<CrashlyticsEvent<
StabilityDigestPayload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
import {
CrashlyticsEvent,
VelocityAlertPayload,
} from 'firebase-functions/alerts/crashlytics';
import { FirebaseAlertData } from 'firebase-functions/alerts';
} from 'firebase-functions/v2/alerts/crashlytics';
import { FirebaseAlertData } from 'firebase-functions/v2/alerts';

export const alertsCrashlyticsOnVelocityAlertPublished: MockCloudEventAbstractFactory<CrashlyticsEvent<
VelocityAlertPayload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import { CloudFunction } from 'firebase-functions/v2';
import {
PerformanceEvent,
ThresholdAlertPayload,
} from 'firebase-functions/alerts/performance';
} from 'firebase-functions/v2/alerts/performance';
import {
getBaseCloudEvent,
getEventFilters,
getEventType,
PROJECT_ID,
APP_ID,
} from '../helpers';
import { FirebaseAlertData } from 'firebase-functions/alerts';
import { FirebaseAlertData } from 'firebase-functions/v2/alerts';

export const performanceThresholdOnThresholdAlertPublished: MockCloudEventAbstractFactory<PerformanceEvent<
ThresholdAlertPayload
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DeepPartial, MockCloudEventAbstractFactory } from '../../types';
import { CloudFunction, CloudEvent } from 'firebase-functions/v2';
import { ConfigUpdateData } from 'firebase-functions/remoteConfig';
import { ConfigUpdateData } from 'firebase-functions/v2/remoteConfig';
import { getBaseCloudEvent, getEventType, PROJECT_ID } from '../helpers';

export const remoteConfigOnConfigUpdated: MockCloudEventAbstractFactory<CloudEvent<
Expand Down
2 changes: 1 addition & 1 deletion src/cloudevent/mocks/storage/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DeepPartial, MockCloudEventAbstractFactory } from '../../types';
import { CloudFunction, CloudEvent } from 'firebase-functions/v2';
import { StorageEvent } from 'firebase-functions/storage';
import { StorageEvent } from 'firebase-functions/v2/storage';
import {
FILENAME,
resolveStringExpression,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DeepPartial, MockCloudEventAbstractFactory } from '../../types';
import { CloudFunction, CloudEvent } from 'firebase-functions/v2';
import { TestMatrixCompletedData } from 'firebase-functions/testLab';
import { TestMatrixCompletedData } from 'firebase-functions/v2/testLab';
import { getBaseCloudEvent, getEventType, PROJECT_ID } from '../helpers';

export const testLabOnTestMatrixCompleted: MockCloudEventAbstractFactory<CloudEvent<
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
import {
CallableFunction,
HttpsFunction as HttpsFunctionV2,
} from 'firebase-functions/https';
} from 'firebase-functions/v2/https';

import { wrapV1, WrappedFunction, WrappedScheduledFunction } from './v1';

Expand Down
2 changes: 1 addition & 1 deletion src/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// SOFTWARE.

import { CloudFunction, CloudEvent } from 'firebase-functions/v2';
import { CallableFunction, CallableRequest } from 'firebase-functions/https';
import { CallableFunction, CallableRequest } from 'firebase-functions/v2/https';

import { generateCombinedCloudEvent } from './cloudevent/generate';
import { DeepPartial } from './cloudevent/types';
Expand Down

0 comments on commit 319bc33

Please sign in to comment.