diff --git a/spec/main.spec.ts b/spec/main.spec.ts index dfa23cc..703495c 100644 --- a/spec/main.spec.ts +++ b/spec/main.spec.ts @@ -28,7 +28,7 @@ import { mockConfig, makeChange, wrap } from '../src/main'; import { _makeResourceName, _extractParams } from '../src/v1'; import { features } from '../src/features'; import { FirebaseFunctionsTest } from '../src/lifecycle'; -import { alerts } from 'firebase-functions'; +import { alerts } from 'firebase-functions/v2'; import { wrapV2 } from '../src/v2'; describe('main', () => { diff --git a/spec/v2.spec.ts b/spec/v2.spec.ts index 921c93a..1101aa7 100644 --- a/spec/v2.spec.ts +++ b/spec/v2.spec.ts @@ -35,7 +35,7 @@ import { eventarc, https, firestore, -} from 'firebase-functions'; +} from 'firebase-functions/v2'; import { defineString } from 'firebase-functions/params'; import { makeDataSnapshot } from '../src/providers/database'; import { makeDocumentSnapshot } from '../src/providers/firestore'; diff --git a/src/cloudevent/generate.ts b/src/cloudevent/generate.ts index 0111d26..4cb908d 100644 --- a/src/cloudevent/generate.ts +++ b/src/cloudevent/generate.ts @@ -3,7 +3,7 @@ import { CloudFunction, database, pubsub, -} from 'firebase-functions'; +} from 'firebase-functions/v2'; import { DocumentSnapshot, QueryDocumentSnapshot, diff --git a/src/cloudevent/mocks/alerts/alerts-on-alert-published.ts b/src/cloudevent/mocks/alerts/alerts-on-alert-published.ts index 2607817..99788e4 100644 --- a/src/cloudevent/mocks/alerts/alerts-on-alert-published.ts +++ b/src/cloudevent/mocks/alerts/alerts-on-alert-published.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudFunction } from 'firebase-functions'; +import { CloudFunction } from 'firebase-functions/v2'; import { APP_ID, getBaseCloudEvent, diff --git a/src/cloudevent/mocks/alerts/app-distribution-on-new-tester-ios-device-published.ts b/src/cloudevent/mocks/alerts/app-distribution-on-new-tester-ios-device-published.ts index 2a2b55a..741d2e5 100644 --- a/src/cloudevent/mocks/alerts/app-distribution-on-new-tester-ios-device-published.ts +++ b/src/cloudevent/mocks/alerts/app-distribution-on-new-tester-ios-device-published.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudFunction } from 'firebase-functions'; +import { CloudFunction } from 'firebase-functions/v2'; import { getBaseCloudEvent, getEventFilters, diff --git a/src/cloudevent/mocks/alerts/billing-on-plan-automated-update-published.ts b/src/cloudevent/mocks/alerts/billing-on-plan-automated-update-published.ts index 200a8b0..d755fe4 100644 --- a/src/cloudevent/mocks/alerts/billing-on-plan-automated-update-published.ts +++ b/src/cloudevent/mocks/alerts/billing-on-plan-automated-update-published.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudFunction } from 'firebase-functions'; +import { CloudFunction } from 'firebase-functions/v2'; import { FirebaseAlertData } from 'firebase-functions/alerts'; import { BillingEvent, diff --git a/src/cloudevent/mocks/alerts/billing-on-plan-update-published.ts b/src/cloudevent/mocks/alerts/billing-on-plan-update-published.ts index b86a491..a3b40c8 100644 --- a/src/cloudevent/mocks/alerts/billing-on-plan-update-published.ts +++ b/src/cloudevent/mocks/alerts/billing-on-plan-update-published.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudFunction } from 'firebase-functions'; +import { CloudFunction } from 'firebase-functions/v2'; import { FirebaseAlertData } from 'firebase-functions/alerts'; import { BillingEvent, diff --git a/src/cloudevent/mocks/alerts/crashlytics-on-new-anr-issue-published.ts b/src/cloudevent/mocks/alerts/crashlytics-on-new-anr-issue-published.ts index c618ce3..c0d41df 100644 --- a/src/cloudevent/mocks/alerts/crashlytics-on-new-anr-issue-published.ts +++ b/src/cloudevent/mocks/alerts/crashlytics-on-new-anr-issue-published.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudFunction } from 'firebase-functions'; +import { CloudFunction } from 'firebase-functions/v2'; import { getBaseCloudEvent, getEventFilters, diff --git a/src/cloudevent/mocks/alerts/crashlytics-on-new-fatal-issue-published.ts b/src/cloudevent/mocks/alerts/crashlytics-on-new-fatal-issue-published.ts index d758cbb..8e69378 100644 --- a/src/cloudevent/mocks/alerts/crashlytics-on-new-fatal-issue-published.ts +++ b/src/cloudevent/mocks/alerts/crashlytics-on-new-fatal-issue-published.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudFunction } from 'firebase-functions'; +import { CloudFunction } from 'firebase-functions/v2'; import { getBaseCloudEvent, getEventFilters, diff --git a/src/cloudevent/mocks/alerts/crashlytics-on-new-nonfatal-issue-published.ts b/src/cloudevent/mocks/alerts/crashlytics-on-new-nonfatal-issue-published.ts index e4d5f86..70e58e5 100644 --- a/src/cloudevent/mocks/alerts/crashlytics-on-new-nonfatal-issue-published.ts +++ b/src/cloudevent/mocks/alerts/crashlytics-on-new-nonfatal-issue-published.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudFunction } from 'firebase-functions'; +import { CloudFunction } from 'firebase-functions/v2'; import { getBaseCloudEvent, getEventFilters, diff --git a/src/cloudevent/mocks/alerts/crashlytics-on-regression-alert-published.ts b/src/cloudevent/mocks/alerts/crashlytics-on-regression-alert-published.ts index cfc4e8f..f1bcb6e 100644 --- a/src/cloudevent/mocks/alerts/crashlytics-on-regression-alert-published.ts +++ b/src/cloudevent/mocks/alerts/crashlytics-on-regression-alert-published.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudFunction } from 'firebase-functions'; +import { CloudFunction } from 'firebase-functions/v2'; import { getBaseCloudEvent, getEventFilters, diff --git a/src/cloudevent/mocks/alerts/crashlytics-on-stability-digest-published.ts b/src/cloudevent/mocks/alerts/crashlytics-on-stability-digest-published.ts index 9a7bb5f..559c5fc 100644 --- a/src/cloudevent/mocks/alerts/crashlytics-on-stability-digest-published.ts +++ b/src/cloudevent/mocks/alerts/crashlytics-on-stability-digest-published.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudFunction } from 'firebase-functions'; +import { CloudFunction } from 'firebase-functions/v2'; import { getBaseCloudEvent, getEventFilters, diff --git a/src/cloudevent/mocks/alerts/crashlytics-on-velocity-alert-published.ts b/src/cloudevent/mocks/alerts/crashlytics-on-velocity-alert-published.ts index 191c422..1e9ef90 100644 --- a/src/cloudevent/mocks/alerts/crashlytics-on-velocity-alert-published.ts +++ b/src/cloudevent/mocks/alerts/crashlytics-on-velocity-alert-published.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudFunction } from 'firebase-functions'; +import { CloudFunction } from 'firebase-functions/v2'; import { getBaseCloudEvent, getEventFilters, diff --git a/src/cloudevent/mocks/alerts/performance-on-threshold-alert-published.ts b/src/cloudevent/mocks/alerts/performance-on-threshold-alert-published.ts index 8e479ac..410dc25 100644 --- a/src/cloudevent/mocks/alerts/performance-on-threshold-alert-published.ts +++ b/src/cloudevent/mocks/alerts/performance-on-threshold-alert-published.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudFunction } from 'firebase-functions'; +import { CloudFunction } from 'firebase-functions/v2'; import { PerformanceEvent, ThresholdAlertPayload, diff --git a/src/cloudevent/mocks/database/database-on-value-created.ts b/src/cloudevent/mocks/database/database-on-value-created.ts index d8bf4e6..b5db271 100644 --- a/src/cloudevent/mocks/database/database-on-value-created.ts +++ b/src/cloudevent/mocks/database/database-on-value-created.ts @@ -1,5 +1,5 @@ import { MockCloudEventAbstractFactory } from '../../types'; -import { CloudEvent, CloudFunction, database } from 'firebase-functions'; +import { CloudEvent, CloudFunction, database } from 'firebase-functions/v2'; import { getEventType } from '../helpers'; import { getDatabaseSnapshotCloudEvent } from './helpers'; diff --git a/src/cloudevent/mocks/database/database-on-value-deleted.ts b/src/cloudevent/mocks/database/database-on-value-deleted.ts index 99f8a17..17b1b12 100644 --- a/src/cloudevent/mocks/database/database-on-value-deleted.ts +++ b/src/cloudevent/mocks/database/database-on-value-deleted.ts @@ -1,5 +1,5 @@ import { MockCloudEventAbstractFactory } from '../../types'; -import { CloudEvent, CloudFunction, database } from 'firebase-functions'; +import { CloudEvent, CloudFunction, database } from 'firebase-functions/v2'; import { getEventType } from '../helpers'; import { getDatabaseSnapshotCloudEvent } from './helpers'; diff --git a/src/cloudevent/mocks/database/database-on-value-updated.ts b/src/cloudevent/mocks/database/database-on-value-updated.ts index 58cbf02..0244a69 100644 --- a/src/cloudevent/mocks/database/database-on-value-updated.ts +++ b/src/cloudevent/mocks/database/database-on-value-updated.ts @@ -1,5 +1,5 @@ import { MockCloudEventAbstractFactory } from '../../types'; -import { CloudEvent, CloudFunction, database } from 'firebase-functions'; +import { CloudEvent, CloudFunction, database } from 'firebase-functions/v2'; import { getEventType } from '../helpers'; import { Change } from 'firebase-functions/v1'; import { getDatabaseChangeSnapshotCloudEvent } from './helpers'; diff --git a/src/cloudevent/mocks/database/database-on-value-written.ts b/src/cloudevent/mocks/database/database-on-value-written.ts index 0fe4b71..20d2fb9 100644 --- a/src/cloudevent/mocks/database/database-on-value-written.ts +++ b/src/cloudevent/mocks/database/database-on-value-written.ts @@ -1,5 +1,5 @@ import { MockCloudEventAbstractFactory } from '../../types'; -import { CloudEvent, CloudFunction, database } from 'firebase-functions'; +import { CloudEvent, CloudFunction, database } from 'firebase-functions/v2'; import { getEventType } from '../helpers'; import { Change } from 'firebase-functions/v1'; import { getDatabaseChangeSnapshotCloudEvent } from './helpers'; diff --git a/src/cloudevent/mocks/database/helpers.ts b/src/cloudevent/mocks/database/helpers.ts index fc2675a..aa4cc94 100644 --- a/src/cloudevent/mocks/database/helpers.ts +++ b/src/cloudevent/mocks/database/helpers.ts @@ -1,4 +1,4 @@ -import { CloudFunction, database } from 'firebase-functions'; +import { CloudFunction, database } from 'firebase-functions/v2'; import { DeepPartial } from '../../types'; import { exampleDataSnapshot, diff --git a/src/cloudevent/mocks/eventarc/eventarc-on-custom-event-published.ts b/src/cloudevent/mocks/eventarc/eventarc-on-custom-event-published.ts index ba21594..7043875 100644 --- a/src/cloudevent/mocks/eventarc/eventarc-on-custom-event-published.ts +++ b/src/cloudevent/mocks/eventarc/eventarc-on-custom-event-published.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudEvent, CloudFunction } from 'firebase-functions'; +import { CloudEvent, CloudFunction } from 'firebase-functions/v2'; import { getBaseCloudEvent } from '../helpers'; export const eventarcOnCustomEventPublished: MockCloudEventAbstractFactory = { diff --git a/src/cloudevent/mocks/firestore/firestore-on-document-created-with-auth-context.ts b/src/cloudevent/mocks/firestore/firestore-on-document-created-with-auth-context.ts index 6e795bd..bf4359c 100644 --- a/src/cloudevent/mocks/firestore/firestore-on-document-created-with-auth-context.ts +++ b/src/cloudevent/mocks/firestore/firestore-on-document-created-with-auth-context.ts @@ -1,5 +1,5 @@ import { MockCloudEventAbstractFactory } from '../../types'; -import { CloudEvent, CloudFunction, firestore } from 'firebase-functions'; +import { CloudEvent, CloudFunction, firestore } from 'firebase-functions/v2'; import { getEventType } from '../helpers'; import { QueryDocumentSnapshot } from 'firebase-admin/firestore'; import { getDocumentSnapshotCloudEventWithAuthContext } from './helpers'; diff --git a/src/cloudevent/mocks/firestore/firestore-on-document-created.ts b/src/cloudevent/mocks/firestore/firestore-on-document-created.ts index 4768b4c..4b8b532 100644 --- a/src/cloudevent/mocks/firestore/firestore-on-document-created.ts +++ b/src/cloudevent/mocks/firestore/firestore-on-document-created.ts @@ -1,5 +1,5 @@ import { MockCloudEventAbstractFactory } from '../../types'; -import { CloudEvent, CloudFunction, firestore } from 'firebase-functions'; +import { CloudEvent, CloudFunction, firestore } from 'firebase-functions/v2'; import { getEventType } from '../helpers'; import { QueryDocumentSnapshot } from 'firebase-admin/firestore'; import { getDocumentSnapshotCloudEvent } from './helpers'; diff --git a/src/cloudevent/mocks/firestore/firestore-on-document-deleted-with-auth-context.ts b/src/cloudevent/mocks/firestore/firestore-on-document-deleted-with-auth-context.ts index 40fd9e4..942ebc7 100644 --- a/src/cloudevent/mocks/firestore/firestore-on-document-deleted-with-auth-context.ts +++ b/src/cloudevent/mocks/firestore/firestore-on-document-deleted-with-auth-context.ts @@ -1,5 +1,5 @@ import { MockCloudEventAbstractFactory } from '../../types'; -import { CloudEvent, CloudFunction, firestore } from 'firebase-functions'; +import { CloudEvent, CloudFunction, firestore } from 'firebase-functions/v2'; import { getEventType } from '../helpers'; import { QueryDocumentSnapshot } from 'firebase-admin/firestore'; import { getDocumentSnapshotCloudEventWithAuthContext } from './helpers'; diff --git a/src/cloudevent/mocks/firestore/firestore-on-document-deleted.ts b/src/cloudevent/mocks/firestore/firestore-on-document-deleted.ts index fde9b2d..e29f1f6 100644 --- a/src/cloudevent/mocks/firestore/firestore-on-document-deleted.ts +++ b/src/cloudevent/mocks/firestore/firestore-on-document-deleted.ts @@ -1,5 +1,5 @@ import { MockCloudEventAbstractFactory } from '../../types'; -import { CloudEvent, CloudFunction, firestore } from 'firebase-functions'; +import { CloudEvent, CloudFunction, firestore } from 'firebase-functions/v2'; import { getEventType } from '../helpers'; import { QueryDocumentSnapshot } from 'firebase-admin/firestore'; import { getDocumentSnapshotCloudEvent } from './helpers'; diff --git a/src/cloudevent/mocks/firestore/firestore-on-document-updated-with-auth-context.ts b/src/cloudevent/mocks/firestore/firestore-on-document-updated-with-auth-context.ts index 95f26a0..a023ce8 100644 --- a/src/cloudevent/mocks/firestore/firestore-on-document-updated-with-auth-context.ts +++ b/src/cloudevent/mocks/firestore/firestore-on-document-updated-with-auth-context.ts @@ -4,7 +4,7 @@ import { CloudEvent, CloudFunction, firestore, -} from 'firebase-functions'; +} from 'firebase-functions/v2'; import { getEventType } from '../helpers'; import { QueryDocumentSnapshot } from 'firebase-admin/firestore'; import { getDocumentSnapshotChangeCloudEventWithAuthContext } from './helpers'; diff --git a/src/cloudevent/mocks/firestore/firestore-on-document-updated.ts b/src/cloudevent/mocks/firestore/firestore-on-document-updated.ts index 9ee0cd9..bf5da64 100644 --- a/src/cloudevent/mocks/firestore/firestore-on-document-updated.ts +++ b/src/cloudevent/mocks/firestore/firestore-on-document-updated.ts @@ -4,7 +4,7 @@ import { CloudEvent, CloudFunction, firestore, -} from 'firebase-functions'; +} from 'firebase-functions/v2'; import { getEventType } from '../helpers'; import { QueryDocumentSnapshot } from 'firebase-admin/firestore'; import { getDocumentSnapshotChangeCloudEvent } from './helpers'; diff --git a/src/cloudevent/mocks/firestore/firestore-on-document-written-with-auth-context.ts b/src/cloudevent/mocks/firestore/firestore-on-document-written-with-auth-context.ts index c57ac54..a9171a9 100644 --- a/src/cloudevent/mocks/firestore/firestore-on-document-written-with-auth-context.ts +++ b/src/cloudevent/mocks/firestore/firestore-on-document-written-with-auth-context.ts @@ -4,7 +4,7 @@ import { CloudEvent, CloudFunction, firestore, -} from 'firebase-functions'; +} from 'firebase-functions/v2'; import { getEventType } from '../helpers'; import { DocumentSnapshot } from 'firebase-admin/firestore'; import { getDocumentSnapshotChangeCloudEventWithAuthContext } from './helpers'; diff --git a/src/cloudevent/mocks/firestore/firestore-on-document-written.ts b/src/cloudevent/mocks/firestore/firestore-on-document-written.ts index 71f0a57..20e9f0e 100644 --- a/src/cloudevent/mocks/firestore/firestore-on-document-written.ts +++ b/src/cloudevent/mocks/firestore/firestore-on-document-written.ts @@ -4,7 +4,7 @@ import { CloudEvent, CloudFunction, firestore, -} from 'firebase-functions'; +} from 'firebase-functions/v2'; import { getEventType } from '../helpers'; import { DocumentSnapshot } from 'firebase-admin/firestore'; import { getDocumentSnapshotChangeCloudEvent } from './helpers'; diff --git a/src/cloudevent/mocks/firestore/helpers.ts b/src/cloudevent/mocks/firestore/helpers.ts index dabf425..77b144c 100644 --- a/src/cloudevent/mocks/firestore/helpers.ts +++ b/src/cloudevent/mocks/firestore/helpers.ts @@ -1,5 +1,5 @@ import { DocumentSnapshot } from 'firebase-admin/firestore'; -import { Change, CloudFunction, firestore } from 'firebase-functions'; +import { Change, CloudFunction, firestore } from 'firebase-functions/v2'; import { exampleDocumentSnapshot, exampleDocumentSnapshotChange, diff --git a/src/cloudevent/mocks/helpers.ts b/src/cloudevent/mocks/helpers.ts index 3715c92..5bc785e 100644 --- a/src/cloudevent/mocks/helpers.ts +++ b/src/cloudevent/mocks/helpers.ts @@ -1,5 +1,5 @@ import * as v1 from 'firebase-functions/v1'; -import * as v2 from 'firebase-functions'; +import * as v2 from 'firebase-functions/v2'; import { Expression } from 'firebase-functions/params'; export const APP_ID = '__APP_ID__'; diff --git a/src/cloudevent/mocks/pubsub/pubsub-on-message-published.ts b/src/cloudevent/mocks/pubsub/pubsub-on-message-published.ts index 7826a29..78a0af7 100644 --- a/src/cloudevent/mocks/pubsub/pubsub-on-message-published.ts +++ b/src/cloudevent/mocks/pubsub/pubsub-on-message-published.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudEvent, CloudFunction, pubsub } from 'firebase-functions'; +import { CloudEvent, CloudFunction, pubsub } from 'firebase-functions/v2'; import { getBaseCloudEvent, getEventFilters, diff --git a/src/cloudevent/mocks/remoteconfig/remote-config-on-config-updated.ts b/src/cloudevent/mocks/remoteconfig/remote-config-on-config-updated.ts index 53a36a1..32f42c2 100644 --- a/src/cloudevent/mocks/remoteconfig/remote-config-on-config-updated.ts +++ b/src/cloudevent/mocks/remoteconfig/remote-config-on-config-updated.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudFunction, CloudEvent } from 'firebase-functions'; +import { CloudFunction, CloudEvent } from 'firebase-functions/v2'; import { ConfigUpdateData } from 'firebase-functions/remoteConfig'; import { getBaseCloudEvent, getEventType, PROJECT_ID } from '../helpers'; diff --git a/src/cloudevent/mocks/storage/index.ts b/src/cloudevent/mocks/storage/index.ts index b3a5a04..d5722a4 100644 --- a/src/cloudevent/mocks/storage/index.ts +++ b/src/cloudevent/mocks/storage/index.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudFunction, CloudEvent } from 'firebase-functions'; +import { CloudFunction, CloudEvent } from 'firebase-functions/v2'; import { StorageEvent } from 'firebase-functions/storage'; import { FILENAME, diff --git a/src/cloudevent/mocks/storage/storage-data.ts b/src/cloudevent/mocks/storage/storage-data.ts index 3ff4252..fb3d524 100644 --- a/src/cloudevent/mocks/storage/storage-data.ts +++ b/src/cloudevent/mocks/storage/storage-data.ts @@ -1,4 +1,4 @@ -import { storage } from 'firebase-functions'; +import { storage } from 'firebase-functions/v2'; import { FILENAME } from '../helpers'; /** Storage Data */ diff --git a/src/cloudevent/mocks/testlab/test-lab-on-test-matrix-completed.ts b/src/cloudevent/mocks/testlab/test-lab-on-test-matrix-completed.ts index 6231039..962b0f3 100644 --- a/src/cloudevent/mocks/testlab/test-lab-on-test-matrix-completed.ts +++ b/src/cloudevent/mocks/testlab/test-lab-on-test-matrix-completed.ts @@ -1,5 +1,5 @@ import { DeepPartial, MockCloudEventAbstractFactory } from '../../types'; -import { CloudFunction, CloudEvent } from 'firebase-functions'; +import { CloudFunction, CloudEvent } from 'firebase-functions/v2'; import { TestMatrixCompletedData } from 'firebase-functions/testLab'; import { getBaseCloudEvent, getEventType, PROJECT_ID } from '../helpers'; diff --git a/src/cloudevent/types.ts b/src/cloudevent/types.ts index 406555c..ab51ad5 100644 --- a/src/cloudevent/types.ts +++ b/src/cloudevent/types.ts @@ -1,4 +1,4 @@ -import { CloudEvent, CloudFunction } from 'firebase-functions'; +import { CloudEvent, CloudFunction } from 'firebase-functions/v2'; export type DeepPartial = { [Key in keyof T]?: T[Key] extends object ? DeepPartial : T[Key]; diff --git a/src/main.ts b/src/main.ts index 6764246..a71bbd0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -29,7 +29,7 @@ import { import { CloudFunction as CloudFunctionV2, CloudEvent, -} from 'firebase-functions'; +} from 'firebase-functions/v2'; import { CallableFunction, diff --git a/src/v2.ts b/src/v2.ts index ed2152c..6cc0324 100644 --- a/src/v2.ts +++ b/src/v2.ts @@ -20,7 +20,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -import { CloudFunction, CloudEvent } from 'firebase-functions'; +import { CloudFunction, CloudEvent } from 'firebase-functions/v2'; import { CallableFunction, CallableRequest } from 'firebase-functions/https'; import { generateCombinedCloudEvent } from './cloudevent/generate';