@firebase-function-kits/firestore-bigquery-export 0.0.2-rc.10 → 0.0.2-rc.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -25
- package/lib/events.d.ts.map +1 -1
- package/lib/events.js +7 -3
- package/lib/events.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/npm-shrinkwrap.json +347 -42
- package/package.json +7 -3
- package/src/events.ts +7 -3
- package/src/index.ts +5 -0
- package/tests/events.test.ts +21 -7
package/README.md
CHANGED
|
@@ -24,15 +24,16 @@ below, enables the listed APIs, and attaches the account to every function in
|
|
|
24
24
|
this kit. Do not set a custom runtime service account for this codebase — it
|
|
25
25
|
conflicts with that automatic setup.
|
|
26
26
|
|
|
27
|
-
| Role / API | Why
|
|
28
|
-
| ------------------------------ |
|
|
29
|
-
| `roles/bigquery.dataEditor` | create dataset/table/views; insert rows
|
|
30
|
-
| `roles/bigquery.user` | run BigQuery jobs and materialized views
|
|
31
|
-
| `roles/datastore.user` | write failed-row records back to Firestore (only if you configure a backup collection)
|
|
32
|
-
| `roles/eventarc.eventReceiver` | receive Gen2 Firestore trigger events
|
|
33
|
-
| `roles/run.invoker` | allow Eventarc to invoke the Gen2 Cloud Run service
|
|
34
|
-
| `roles/
|
|
35
|
-
| `
|
|
27
|
+
| Role / API | Why |
|
|
28
|
+
| ------------------------------ | ------------------------------------------------------------------------------------------ |
|
|
29
|
+
| `roles/bigquery.dataEditor` | create dataset/table/views; insert rows |
|
|
30
|
+
| `roles/bigquery.user` | run BigQuery jobs and materialized views |
|
|
31
|
+
| `roles/datastore.user` | write failed-row records back to Firestore (only if you configure a backup collection) |
|
|
32
|
+
| `roles/eventarc.eventReceiver` | receive Gen2 Firestore trigger events |
|
|
33
|
+
| `roles/run.invoker` | allow Eventarc to invoke the Gen2 Cloud Run service |
|
|
34
|
+
| `roles/eventarc.publisher` | publish the kit's custom Eventarc events (the Extensions platform granted this implicitly) |
|
|
35
|
+
| `roles/cloudtasks.enqueuer` | enqueue failed writes onto the kit's own `syncBigQuery` task queue |
|
|
36
|
+
| `bigquery.googleapis.com` | mirror Firestore collection changes in BigQuery |
|
|
36
37
|
|
|
37
38
|
If the dataset lives in a different project (`BIGQUERY_PROJECT_ID`), grant the
|
|
38
39
|
managed runtime service account the `bigquery.*` roles on that project. For a
|
|
@@ -120,7 +121,7 @@ loads them at deploy time and prompts for any required values that are missing.
|
|
|
120
121
|
| `datasetId` | `DATASET_ID` | no | `firestore_export` | BigQuery dataset |
|
|
121
122
|
| `tableId` | `TABLE_ID` | no | `posts` | BigQuery changelog table |
|
|
122
123
|
| `databaseRegion` | `DATABASE_REGION` | yes | (prompted) | Firestore database location; also places the functions |
|
|
123
|
-
| `datasetLocation` | `DATASET_LOCATION` | no | `us` | BigQuery dataset location
|
|
124
|
+
| `datasetLocation` | `DATASET_LOCATION` | no | `us` | BigQuery dataset location, used only when the dataset is created |
|
|
124
125
|
| `database` | `DATABASE` | no | `(default)` | Firestore database id |
|
|
125
126
|
| `bigqueryProjectId` | `BIGQUERY_PROJECT_ID` | no | project id | Dataset project, if different |
|
|
126
127
|
| `backupCollection` | `BACKUP_COLLECTION` | no | (empty) | Strongly recommended: collection for rows whose BigQuery insert failed |
|
|
@@ -169,19 +170,27 @@ the instances cannot collide.
|
|
|
169
170
|
|
|
170
171
|
## Events
|
|
171
172
|
|
|
172
|
-
When `EVENTARC_CHANNEL` is configured, the functions publish lifecycle events
|
|
173
|
-
|
|
174
|
-
`
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
When `EVENTARC_CHANNEL` is configured, the functions publish lifecycle events:
|
|
174
|
+
`onStart` and `onError` from the write path, and `onSuccess` from the
|
|
175
|
+
`syncBigQuery` task when a buffered write lands (matching the extension, which
|
|
176
|
+
only emitted `onSuccess` from its queue handler).
|
|
177
|
+
|
|
178
|
+
Each event is published twice, exactly as the extension published it: once
|
|
179
|
+
under `firebase.extensions.firestore-bigquery-export.v1.*` and once under
|
|
180
|
+
`firebase.extensions.firestore-counter.v1.*`. The `firestore-counter` type is a
|
|
181
|
+
historical naming mistake the extension kept for backwards compatibility, and
|
|
182
|
+
the kit keeps it for the same reason: triggers listening on it survive the
|
|
183
|
+
migration. The two copies carry the same `data` and `subject`, and only differ
|
|
184
|
+
by `type`. Write new triggers against the `firestore-bigquery-export` types.
|
|
177
185
|
|
|
178
186
|
Publishing is filtered by `EXT_SELECTED_EVENTS`: the value is split on commas
|
|
179
187
|
and only exactly matching event types are published, silently. An empty value
|
|
180
188
|
suppresses every event, and a value carrying only another product's types
|
|
181
189
|
(the extension offered more than one namespace to tick) publishes nothing. A
|
|
182
190
|
config exported from the extension brings its `EXT_SELECTED_EVENTS` along, so
|
|
183
|
-
check it lists the `
|
|
184
|
-
|
|
191
|
+
check it lists the types you expect, `onSuccess` included. It gates the legacy
|
|
192
|
+
`firestore-counter` copies too, so a trigger on a legacy type only fires when
|
|
193
|
+
that legacy type is listed.
|
|
185
194
|
|
|
186
195
|
## Provisioning
|
|
187
196
|
|
|
@@ -366,14 +375,6 @@ inside that window. That property is gone by design - a row that exhausts the
|
|
|
366
375
|
queue without a configured `BACKUP_COLLECTION` is dropped, exactly as in the
|
|
367
376
|
extension. Set `BACKUP_COLLECTION`.
|
|
368
377
|
|
|
369
|
-
### Events
|
|
370
|
-
|
|
371
|
-
Events are published under `firebase.extensions.firestore-bigquery-export.v1.*`
|
|
372
|
-
only. The extension also published a duplicate copy of every event under
|
|
373
|
-
`firebase.extensions.firestore-counter.v1.*`, a historical naming mistake kept
|
|
374
|
-
for backwards compatibility. If you have Eventarc triggers listening on those
|
|
375
|
-
`firestore-counter` types, point them at the `firestore-bigquery-export` types.
|
|
376
|
-
|
|
377
378
|
### Wildcard columns include the document ID
|
|
378
379
|
|
|
379
380
|
With `WILDCARD_IDS=true`, the wildcard column now contains a `documentId` key
|
|
@@ -420,6 +421,26 @@ Two settings now have defaults rather than being passed through empty:
|
|
|
420
421
|
`DATASET_LOCATION` defaults to `us`, and `BIGQUERY_PROJECT_ID` defaults to the
|
|
421
422
|
project the functions are deployed to.
|
|
422
423
|
|
|
424
|
+
### DATASET_LOCATION is not immutable
|
|
425
|
+
|
|
426
|
+
The extension declared `DATASET_LOCATION` as immutable, so a reconfigure could
|
|
427
|
+
not change it; moving the dataset meant uninstalling and reinstalling. The kit
|
|
428
|
+
cannot enforce that: `firebase-functions/params` has no immutability, so a
|
|
429
|
+
redeploy accepts any new value. The value only reaches BigQuery when the
|
|
430
|
+
lifecycle task creates the dataset. On a redeploy the task finds the existing
|
|
431
|
+
dataset by id and skips creation, so the dataset stays where it is and the new
|
|
432
|
+
value is ignored, with no error and no warning. Nothing else reads it: writes,
|
|
433
|
+
views, and the `syncBigQuery` queue address the dataset by id and BigQuery
|
|
434
|
+
resolves the location itself, so a mismatched `.env` keeps working.
|
|
435
|
+
|
|
436
|
+
To export to a different location, point the kit at a new dataset: set a new
|
|
437
|
+
`DATASET_ID` together with the new `DATASET_LOCATION` and redeploy. The
|
|
438
|
+
redeploy lifecycle task creates the new dataset in the new location; the old
|
|
439
|
+
dataset is left behind with its table and view, as in the extension when the
|
|
440
|
+
dataset id changes. Existing documents do not follow. Backfill them with
|
|
441
|
+
`fs-bq-import-collection` from the extension repository (see "Tooling that is
|
|
442
|
+
not included" below).
|
|
443
|
+
|
|
423
444
|
### Tooling that is not included
|
|
424
445
|
|
|
425
446
|
The extension shipped companion scripts that this package does not:
|
package/lib/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAmCA;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,YAM7B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAU,MAAM,MAAM,GAAG,MAAM,2BAc3D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAU,KAAK,KAAK,EAAE,UAAU,MAAM,2BAelE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAAU,oBAGtC;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,2BAeA,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAU,MAAM,MAAM,GAAG,MAAM,2BAchE,CAAC"}
|
package/lib/events.js
CHANGED
|
@@ -52,13 +52,17 @@ exports.recordCompletionEvent = exports.recordSuccessEvent = exports.recordError
|
|
|
52
52
|
const eventArc = __importStar(require("firebase-admin/eventarc"));
|
|
53
53
|
const { getEventarc } = eventArc;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Generates both the OLD and NEW event types to maintain backward compatibility.
|
|
56
|
+
*
|
|
57
|
+
* Old Event Type: firebase.extensions.firestore-counter.v1.{eventName}
|
|
58
|
+
* New Event Type: firebase.extensions.firestore-bigquery-export.v1.{eventName}
|
|
56
59
|
*
|
|
57
60
|
* @param eventName The name of the event (e.g., "onStart", "onError", etc.)
|
|
58
|
-
* @returns
|
|
61
|
+
* @returns An array containing both the old and new event types
|
|
59
62
|
*/
|
|
60
63
|
const getEventTypes = (eventName) => [
|
|
61
|
-
`firebase.extensions.firestore-
|
|
64
|
+
`firebase.extensions.firestore-counter.v1.${eventName}`, // OLD Event Type for backward compatibility
|
|
65
|
+
`firebase.extensions.firestore-bigquery-export.v1.${eventName}`, // NEW Event Type following the updated convention
|
|
62
66
|
];
|
|
63
67
|
let eventChannel;
|
|
64
68
|
/**
|
package/lib/events.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;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CAChB,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CACtB,YAAY,CAAC,OAAO,CAAC;QACnB,IAAI;QACJ,IAAI;KACL,CAAC,CACH,CACF,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,qBAAqB,yBAchC"}
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA+CA,OAAO,EAEL,KAAK,wBAAwB,EAG9B,MAAM,YAAY,CAAC;AAOpB,cAAc,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA+CA,OAAO,EAEL,KAAK,wBAAwB,EAG9B,MAAM,YAAY,CAAC;AAOpB,cAAc,OAAO,CAAC;AAoGtB;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,wOAO5B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,gFAgBxB,CAAC;AAWF;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,2DAM5B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,2DAM7B,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -99,6 +99,11 @@ const REQUIRED_ROLES = [
|
|
|
99
99
|
// Gen2 Firestore triggers need Eventarc receive and run.invoker on the function SA.
|
|
100
100
|
"roles/eventarc.eventReceiver",
|
|
101
101
|
"roles/run.invoker",
|
|
102
|
+
// The Extensions platform granted publish rights on the extension's Eventarc
|
|
103
|
+
// channel implicitly from `events:` in extension.yaml. Kits get no implicit
|
|
104
|
+
// grant, so without this the `channel.publish()` calls in ./events fail with
|
|
105
|
+
// PERMISSION_DENIED and no custom event is ever delivered.
|
|
106
|
+
"roles/eventarc.publisher",
|
|
102
107
|
// The trigger enqueues failed writes onto its own syncBigQuery task queue.
|
|
103
108
|
"roles/cloudtasks.enqueuer",
|
|
104
109
|
];
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH;;;;;;;;;;;GAWG;AAEH,6GAA6G;AAC7G,4CAA4D;AAC5D,4DAAiE;AACjE,sDAAiD;AACjD,oDAA4D;AAE5D,8CAAkE;AAClE,+DAGyC;AACzC,qCAA6D;AAC7D,iDAAmC;AACnC,mDAIyB;AACzB,yCAKoB;AACpB,iCAAiD;AACjD,6CAA+B;AAC/B,qCAA6D;AAC7D,mCAA0C;AAE1C,8EAA8E;AAC9E,wCAAsB;AAEtB,MAAM,2BAA2B,GAAG,kBAAkB,CAAC;AACvD,MAAM,4BAA4B,GAAG,mBAAmB,CAAC;AACzD,MAAM,sBAAsB,GAAG;IAC7B,WAAW,EAAE,EAAE;IACf,iBAAiB,EAAE,EAAE;CACb,CAAC;AACX,MAAM,iBAAiB,GAAG;IACxB,WAAW,EAAE,CAAC;IACd,iBAAiB,EAAE,EAAE;CACb,CAAC;AACX,MAAM,8BAA8B,GAAG,GAAG,CAAC;AAC3C,MAAM,cAAc,GAAwB;IAC1C,2BAA2B;IAC3B,sBAAsB;IACtB,qBAAqB;IACrB,oFAAoF;IACpF,8BAA8B;IAC9B,mBAAmB;IACnB,2EAA2E;IAC3E,2BAA2B;CAC5B,CAAC;AACF,MAAM,aAAa,GAAG;IACpB;QACE,GAAG,EAAE,0BAA0B;QAC/B,MAAM,EAAE,uDAAuD;KAChE;IACD;QACE,GAAG,EAAE,yBAAyB;QAC9B,MAAM,EAAE,gEAAgE;KACzE;CACO,CAAC;AAEX,KAAK,MAAM,IAAI,IAAI,cAAc,EAAE,CAAC;IAClC,IAAA,iBAAY,EAAC,IAAI,CAAC,CAAC;AACrB,CAAC;AAED,KAAK,MAAM,EAAE,GAAG,EAAE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,2BAAkB,CAAC,sBAAsB;aAC9D,QAAQ,CAAC,CAAC,CAAC;aACX,QAAQ,CACP,iDAAiC,EACjC,2BAAkB,CAAC,sBAAsB,CAC1C;KACJ;CACF,EACD,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,iCAAsB,EAAC,GAAG,EAAE,iBAAiB,EAAE,CAAC,CAC1D,CAAC;AAEF,KAAK,UAAU,gCAAgC;IAC7C,IAAI,CAAC;QACH,MAAM,iBAAiB,EAAE,CAAC,iBAAiB,EAAE,CAAC;IAChD,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,yCAAyC,EAAE,GAAG,CAAC,CAAC;QAClE,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC;AAED;;;;;;;;GAQG;AACU,QAAA,gBAAgB,GAAG,IAAA,wBAAgB,EAC9C;IACE,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACrD,WAAW,EAAE,sBAAsB;CACpC,EACD,gCAAgC,CACjC,CAAC;AAEF;;;GAGG;AACU,QAAA,iBAAiB,GAAG,IAAA,wBAAgB,EAC/C;IACE,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACrD,WAAW,EAAE,sBAAsB;CACpC,EACD,gCAAgC,CACjC,CAAC"}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,28 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase-function-kits/firestore-bigquery-export",
|
|
3
|
-
"version": "0.0.2-rc.
|
|
3
|
+
"version": "0.0.2-rc.12",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@firebase-function-kits/firestore-bigquery-export",
|
|
9
|
-
"version": "0.0.2-rc.
|
|
9
|
+
"version": "0.0.2-rc.12",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@firebaseextensions/firestore-bigquery-change-tracker": "^2.2.1",
|
|
13
13
|
"@google-cloud/bigquery": "^7.6.0",
|
|
14
|
-
"firebase-admin": "^14.2.0",
|
|
15
|
-
"firebase-functions": "^7.3.3-rc.1",
|
|
16
14
|
"generate-schema": "^2.6.0",
|
|
17
15
|
"lodash": "^4.17.14"
|
|
18
16
|
},
|
|
19
17
|
"devDependencies": {
|
|
20
18
|
"@types/lodash": "^4.17.0",
|
|
19
|
+
"firebase-admin": "^14.4.0",
|
|
20
|
+
"firebase-functions": "^7.3.3-rc.3",
|
|
21
21
|
"typescript": "^5.9.3",
|
|
22
22
|
"vitest": "^3.2.4"
|
|
23
23
|
},
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=22"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"firebase-admin": "^14.3.0",
|
|
29
|
+
"firebase-functions": "^7.3.3-rc.3"
|
|
26
30
|
}
|
|
27
31
|
},
|
|
28
32
|
"node_modules/@esbuild/aix-ppc64": {
|
|
@@ -649,23 +653,37 @@
|
|
|
649
653
|
}
|
|
650
654
|
},
|
|
651
655
|
"node_modules/@google-cloud/firestore": {
|
|
652
|
-
"version": "
|
|
653
|
-
"resolved": "https://registry.npmjs.org/@google-cloud/firestore/-/firestore-
|
|
654
|
-
"integrity": "sha512-
|
|
656
|
+
"version": "9.1.0",
|
|
657
|
+
"resolved": "https://registry.npmjs.org/@google-cloud/firestore/-/firestore-9.1.0.tgz",
|
|
658
|
+
"integrity": "sha512-MYh566cRZY/6/UyRIvpYynRwBBK+UFykw4EojSMt/9P74jr7FSWmupplvxPtiNA3NutyEhcEngZqdAoHgENgxA==",
|
|
655
659
|
"license": "Apache-2.0",
|
|
656
660
|
"optional": true,
|
|
657
661
|
"dependencies": {
|
|
662
|
+
"@google-cloud/firestore-api": "^0.2.0",
|
|
658
663
|
"@opentelemetry/api": "^1.9.0",
|
|
659
664
|
"fast-deep-equal": "^3.1.3",
|
|
660
665
|
"functional-red-black-tree": "^1.0.1",
|
|
661
|
-
"google-gax": "^
|
|
666
|
+
"google-gax": "^6.0.1",
|
|
662
667
|
"protobufjs": "^7.5.3"
|
|
663
668
|
},
|
|
669
|
+
"engines": {
|
|
670
|
+
"node": ">=22"
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
"node_modules/@google-cloud/firestore-api": {
|
|
674
|
+
"version": "0.2.0",
|
|
675
|
+
"resolved": "https://registry.npmjs.org/@google-cloud/firestore-api/-/firestore-api-0.2.0.tgz",
|
|
676
|
+
"integrity": "sha512-wfHJPZmLqzpy6FN6U+7HkkP/AKhGsbHSpEy/qL2TyI3/pKRAvpamQxZ2qvps5hMRgAjfuHCim+oeJj9RveCaqg==",
|
|
677
|
+
"license": "Apache-2.0",
|
|
678
|
+
"optional": true,
|
|
679
|
+
"dependencies": {
|
|
680
|
+
"google-gax": "^5.0.0"
|
|
681
|
+
},
|
|
664
682
|
"engines": {
|
|
665
683
|
"node": ">=18"
|
|
666
684
|
}
|
|
667
685
|
},
|
|
668
|
-
"node_modules/@google-cloud/firestore/node_modules/@grpc/proto-loader": {
|
|
686
|
+
"node_modules/@google-cloud/firestore-api/node_modules/@grpc/proto-loader": {
|
|
669
687
|
"version": "0.8.1",
|
|
670
688
|
"resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.8.1.tgz",
|
|
671
689
|
"integrity": "sha512-wtF6h+DY6M3YaDBPAmvuuA6jV8Sif9MjtOI5euKFWRgCDl5PeDpPsHR9u2l6St5ceY8AZgoNDww5+HvEsXFsGg==",
|
|
@@ -684,23 +702,22 @@
|
|
|
684
702
|
"node": ">=6"
|
|
685
703
|
}
|
|
686
704
|
},
|
|
687
|
-
"node_modules/@google-cloud/firestore/node_modules/gaxios": {
|
|
688
|
-
"version": "7.1
|
|
689
|
-
"resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.
|
|
690
|
-
"integrity": "sha512-
|
|
705
|
+
"node_modules/@google-cloud/firestore-api/node_modules/gaxios": {
|
|
706
|
+
"version": "7.3.1",
|
|
707
|
+
"resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.3.1.tgz",
|
|
708
|
+
"integrity": "sha512-kB3rzJV7d9juLZh8/56QTXCwQfxyhdOMdyYk1HdQKFtF8TJTDTZQJtixWIwXdE9Jji91mC41DUNpjleo4L4eAQ==",
|
|
691
709
|
"license": "Apache-2.0",
|
|
692
710
|
"optional": true,
|
|
693
711
|
"dependencies": {
|
|
694
712
|
"extend": "^3.0.2",
|
|
695
713
|
"https-proxy-agent": "^7.0.1",
|
|
696
|
-
"node-fetch": "^3.3.2"
|
|
697
|
-
"rimraf": "^5.0.1"
|
|
714
|
+
"node-fetch": "^3.3.2"
|
|
698
715
|
},
|
|
699
716
|
"engines": {
|
|
700
717
|
"node": ">=18"
|
|
701
718
|
}
|
|
702
719
|
},
|
|
703
|
-
"node_modules/@google-cloud/firestore/node_modules/gcp-metadata": {
|
|
720
|
+
"node_modules/@google-cloud/firestore-api/node_modules/gcp-metadata": {
|
|
704
721
|
"version": "8.1.4",
|
|
705
722
|
"resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-8.1.4.tgz",
|
|
706
723
|
"integrity": "sha512-iJ9KMsiu+xKtNRX0PmGLSaIU3bUBAyzWTyqKemKPzNPsmmsBCQYmlNg+brEbES7IHSXtdVwzBPzx1vz3FAaipw==",
|
|
@@ -715,7 +732,23 @@
|
|
|
715
732
|
"node": ">=18"
|
|
716
733
|
}
|
|
717
734
|
},
|
|
718
|
-
"node_modules/@google-cloud/firestore/node_modules/
|
|
735
|
+
"node_modules/@google-cloud/firestore-api/node_modules/gcp-metadata/node_modules/gaxios": {
|
|
736
|
+
"version": "7.1.3",
|
|
737
|
+
"resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.3.tgz",
|
|
738
|
+
"integrity": "sha512-YGGyuEdVIjqxkxVH1pUTMY/XtmmsApXrCVv5EU25iX6inEPbV+VakJfLealkBtJN69AQmh1eGOdCl9Sm1UP6XQ==",
|
|
739
|
+
"license": "Apache-2.0",
|
|
740
|
+
"optional": true,
|
|
741
|
+
"dependencies": {
|
|
742
|
+
"extend": "^3.0.2",
|
|
743
|
+
"https-proxy-agent": "^7.0.1",
|
|
744
|
+
"node-fetch": "^3.3.2",
|
|
745
|
+
"rimraf": "^5.0.1"
|
|
746
|
+
},
|
|
747
|
+
"engines": {
|
|
748
|
+
"node": ">=18"
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
"node_modules/@google-cloud/firestore-api/node_modules/google-auth-library": {
|
|
719
752
|
"version": "10.5.0",
|
|
720
753
|
"resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.5.0.tgz",
|
|
721
754
|
"integrity": "sha512-7ABviyMOlX5hIVD60YOfHw4/CxOfBhyduaYB+wbFWCWoni4N7SLcV46hrVRktuBbZjFC9ONyqamZITN7q3n32w==",
|
|
@@ -734,7 +767,7 @@
|
|
|
734
767
|
"node": ">=18"
|
|
735
768
|
}
|
|
736
769
|
},
|
|
737
|
-
"node_modules/@google-cloud/firestore/node_modules/google-gax": {
|
|
770
|
+
"node_modules/@google-cloud/firestore-api/node_modules/google-gax": {
|
|
738
771
|
"version": "5.0.8",
|
|
739
772
|
"resolved": "https://registry.npmjs.org/google-gax/-/google-gax-5.0.8.tgz",
|
|
740
773
|
"integrity": "sha512-M4vpZcXQIC1gqIVGQ7eaU3jXQA6zecStyTXu514TYfThlgSurYJOxHZo9fzU6hAgwPWvuEynAVHWyaIk80VeEA==",
|
|
@@ -757,7 +790,7 @@
|
|
|
757
790
|
"node": ">=18"
|
|
758
791
|
}
|
|
759
792
|
},
|
|
760
|
-
"node_modules/@google-cloud/firestore/node_modules/google-logging-utils": {
|
|
793
|
+
"node_modules/@google-cloud/firestore-api/node_modules/google-logging-utils": {
|
|
761
794
|
"version": "1.1.3",
|
|
762
795
|
"resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.3.tgz",
|
|
763
796
|
"integrity": "sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==",
|
|
@@ -767,7 +800,7 @@
|
|
|
767
800
|
"node": ">=14"
|
|
768
801
|
}
|
|
769
802
|
},
|
|
770
|
-
"node_modules/@google-cloud/firestore/node_modules/gtoken": {
|
|
803
|
+
"node_modules/@google-cloud/firestore-api/node_modules/gtoken": {
|
|
771
804
|
"version": "8.0.0",
|
|
772
805
|
"resolved": "https://registry.npmjs.org/gtoken/-/gtoken-8.0.0.tgz",
|
|
773
806
|
"integrity": "sha512-+CqsMbHPiSTdtSO14O51eMNlrp9N79gmeqmXeouJOhfucAedHw9noVe/n5uJk3tbKE6a+6ZCQg3RPhVhHByAIw==",
|
|
@@ -781,7 +814,7 @@
|
|
|
781
814
|
"node": ">=18"
|
|
782
815
|
}
|
|
783
816
|
},
|
|
784
|
-
"node_modules/@google-cloud/firestore/node_modules/http-proxy-agent": {
|
|
817
|
+
"node_modules/@google-cloud/firestore-api/node_modules/http-proxy-agent": {
|
|
785
818
|
"version": "7.0.2",
|
|
786
819
|
"resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
|
|
787
820
|
"integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
|
|
@@ -795,7 +828,7 @@
|
|
|
795
828
|
"node": ">= 14"
|
|
796
829
|
}
|
|
797
830
|
},
|
|
798
|
-
"node_modules/@google-cloud/firestore/node_modules/node-fetch": {
|
|
831
|
+
"node_modules/@google-cloud/firestore-api/node_modules/node-fetch": {
|
|
799
832
|
"version": "3.3.2",
|
|
800
833
|
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz",
|
|
801
834
|
"integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==",
|
|
@@ -814,7 +847,7 @@
|
|
|
814
847
|
"url": "https://opencollective.com/node-fetch"
|
|
815
848
|
}
|
|
816
849
|
},
|
|
817
|
-
"node_modules/@google-cloud/firestore/node_modules/proto3-json-serializer": {
|
|
850
|
+
"node_modules/@google-cloud/firestore-api/node_modules/proto3-json-serializer": {
|
|
818
851
|
"version": "3.0.4",
|
|
819
852
|
"resolved": "https://registry.npmjs.org/proto3-json-serializer/-/proto3-json-serializer-3.0.4.tgz",
|
|
820
853
|
"integrity": "sha512-E1sbAYg3aEbXrq0n1ojJkRHQJGE1kaE/O6GLA94y8rnJBfgvOPTOd1b9hOceQK1FFZI9qMh1vBERCyO2ifubcw==",
|
|
@@ -827,7 +860,7 @@
|
|
|
827
860
|
"node": ">=18"
|
|
828
861
|
}
|
|
829
862
|
},
|
|
830
|
-
"node_modules/@google-cloud/firestore/node_modules/retry-request": {
|
|
863
|
+
"node_modules/@google-cloud/firestore-api/node_modules/retry-request": {
|
|
831
864
|
"version": "8.0.4",
|
|
832
865
|
"resolved": "https://registry.npmjs.org/retry-request/-/retry-request-8.0.4.tgz",
|
|
833
866
|
"integrity": "sha512-pI6/7eabUYkZxamkOq0g0uMxKLLGnjzhefY+vL8bVXag5rto4OU2YBTPytWLuHH7aEKD6fn7kJycQfid0Mwnkw==",
|
|
@@ -841,7 +874,7 @@
|
|
|
841
874
|
"node": ">=18"
|
|
842
875
|
}
|
|
843
876
|
},
|
|
844
|
-
"node_modules/@google-cloud/firestore/node_modules/teeny-request": {
|
|
877
|
+
"node_modules/@google-cloud/firestore-api/node_modules/teeny-request": {
|
|
845
878
|
"version": "10.1.4",
|
|
846
879
|
"resolved": "https://registry.npmjs.org/teeny-request/-/teeny-request-10.1.4.tgz",
|
|
847
880
|
"integrity": "sha512-R1Cg4Vu0UULeDfHL/kjABLaTW++9yD/B6n2g48y5dJ04hsEaxcfmAqbNDzNsbqAYJyIpZafjklLG9YxRu9uzOg==",
|
|
@@ -857,6 +890,182 @@
|
|
|
857
890
|
"node": ">=18"
|
|
858
891
|
}
|
|
859
892
|
},
|
|
893
|
+
"node_modules/@google-cloud/firestore/node_modules/@grpc/proto-loader": {
|
|
894
|
+
"version": "0.8.1",
|
|
895
|
+
"resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.8.1.tgz",
|
|
896
|
+
"integrity": "sha512-wtF6h+DY6M3YaDBPAmvuuA6jV8Sif9MjtOI5euKFWRgCDl5PeDpPsHR9u2l6St5ceY8AZgoNDww5+HvEsXFsGg==",
|
|
897
|
+
"license": "Apache-2.0",
|
|
898
|
+
"optional": true,
|
|
899
|
+
"dependencies": {
|
|
900
|
+
"lodash.camelcase": "^4.3.0",
|
|
901
|
+
"long": "^5.0.0",
|
|
902
|
+
"protobufjs": "^7.5.5",
|
|
903
|
+
"yargs": "^17.7.2"
|
|
904
|
+
},
|
|
905
|
+
"bin": {
|
|
906
|
+
"proto-loader-gen-types": "build/bin/proto-loader-gen-types.js"
|
|
907
|
+
},
|
|
908
|
+
"engines": {
|
|
909
|
+
"node": ">=6"
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
"node_modules/@google-cloud/firestore/node_modules/gaxios": {
|
|
913
|
+
"version": "7.3.1",
|
|
914
|
+
"resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.3.1.tgz",
|
|
915
|
+
"integrity": "sha512-kB3rzJV7d9juLZh8/56QTXCwQfxyhdOMdyYk1HdQKFtF8TJTDTZQJtixWIwXdE9Jji91mC41DUNpjleo4L4eAQ==",
|
|
916
|
+
"license": "Apache-2.0",
|
|
917
|
+
"optional": true,
|
|
918
|
+
"dependencies": {
|
|
919
|
+
"extend": "^3.0.2",
|
|
920
|
+
"https-proxy-agent": "^7.0.1",
|
|
921
|
+
"node-fetch": "^3.3.2"
|
|
922
|
+
},
|
|
923
|
+
"engines": {
|
|
924
|
+
"node": ">=18"
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
"node_modules/@google-cloud/firestore/node_modules/gcp-metadata": {
|
|
928
|
+
"version": "9.0.3",
|
|
929
|
+
"resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-9.0.3.tgz",
|
|
930
|
+
"integrity": "sha512-2YYnIlHaKBGT2IPg3G2M57hia9Galz15zsEOvw9T3oRf0lSn6KN6VcHQLqby7x8ksYKnjXvp3rp2KJyLCN6zfQ==",
|
|
931
|
+
"license": "Apache-2.0",
|
|
932
|
+
"optional": true,
|
|
933
|
+
"dependencies": {
|
|
934
|
+
"gaxios": "^7.1.3",
|
|
935
|
+
"google-logging-utils": "^2.0.0",
|
|
936
|
+
"json-bigint": "^1.0.0"
|
|
937
|
+
},
|
|
938
|
+
"engines": {
|
|
939
|
+
"node": ">=22"
|
|
940
|
+
}
|
|
941
|
+
},
|
|
942
|
+
"node_modules/@google-cloud/firestore/node_modules/google-auth-library": {
|
|
943
|
+
"version": "11.0.2",
|
|
944
|
+
"resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-11.0.2.tgz",
|
|
945
|
+
"integrity": "sha512-vzpgPutxrghPsnjrjpzLX2bdv8IOL719Rh0oEjGnQu8YCIbnbMuTTQ5zU9LcKvLdOPgCxBwppbvnhgW90Qna5Q==",
|
|
946
|
+
"license": "Apache-2.0",
|
|
947
|
+
"optional": true,
|
|
948
|
+
"dependencies": {
|
|
949
|
+
"base64-js": "^1.3.0",
|
|
950
|
+
"ecdsa-sig-formatter": "^1.0.11",
|
|
951
|
+
"gaxios": "^7.1.4",
|
|
952
|
+
"gcp-metadata": "^9.0.0",
|
|
953
|
+
"google-logging-utils": "^2.0.0",
|
|
954
|
+
"jws": "^4.0.0"
|
|
955
|
+
},
|
|
956
|
+
"engines": {
|
|
957
|
+
"node": ">=22"
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
"node_modules/@google-cloud/firestore/node_modules/google-gax": {
|
|
961
|
+
"version": "6.3.0",
|
|
962
|
+
"resolved": "https://registry.npmjs.org/google-gax/-/google-gax-6.3.0.tgz",
|
|
963
|
+
"integrity": "sha512-9/kD2yhNJJDAoxZMw+v/d53W6bibgHXr0uU2RRfkC2/r5uH1sBo1nzuaSUq1lKgipZ3O4HvksA7/rRBvkFHFkA==",
|
|
964
|
+
"license": "Apache-2.0",
|
|
965
|
+
"optional": true,
|
|
966
|
+
"dependencies": {
|
|
967
|
+
"@grpc/grpc-js": "^1.12.6",
|
|
968
|
+
"@grpc/proto-loader": "^0.8.0",
|
|
969
|
+
"@opentelemetry/api": "^1.9.0",
|
|
970
|
+
"duplexify": "^4.1.3",
|
|
971
|
+
"google-auth-library": "^11.0.0",
|
|
972
|
+
"google-logging-utils": "^2.0.0",
|
|
973
|
+
"node-fetch": "^3.3.2",
|
|
974
|
+
"object-hash": "^3.0.0",
|
|
975
|
+
"proto3-json-serializer": "^4.0.0",
|
|
976
|
+
"protobufjs": "^7.5.4",
|
|
977
|
+
"retry-request": "^9.0.0"
|
|
978
|
+
},
|
|
979
|
+
"engines": {
|
|
980
|
+
"node": ">=22"
|
|
981
|
+
}
|
|
982
|
+
},
|
|
983
|
+
"node_modules/@google-cloud/firestore/node_modules/google-logging-utils": {
|
|
984
|
+
"version": "2.0.1",
|
|
985
|
+
"resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-2.0.1.tgz",
|
|
986
|
+
"integrity": "sha512-HMhaQghlOTvbcb3c4T5jmmOMtG3JUF1iOQMezaJXL86CDS+Tm2vHd0IeLFRAx3+ewd+bo9E1HFHoy17X5aJa9A==",
|
|
987
|
+
"license": "Apache-2.0",
|
|
988
|
+
"optional": true,
|
|
989
|
+
"engines": {
|
|
990
|
+
"node": ">=22"
|
|
991
|
+
}
|
|
992
|
+
},
|
|
993
|
+
"node_modules/@google-cloud/firestore/node_modules/http-proxy-agent": {
|
|
994
|
+
"version": "7.0.2",
|
|
995
|
+
"resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
|
|
996
|
+
"integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
|
|
997
|
+
"license": "MIT",
|
|
998
|
+
"optional": true,
|
|
999
|
+
"dependencies": {
|
|
1000
|
+
"agent-base": "^7.1.0",
|
|
1001
|
+
"debug": "^4.3.4"
|
|
1002
|
+
},
|
|
1003
|
+
"engines": {
|
|
1004
|
+
"node": ">= 14"
|
|
1005
|
+
}
|
|
1006
|
+
},
|
|
1007
|
+
"node_modules/@google-cloud/firestore/node_modules/node-fetch": {
|
|
1008
|
+
"version": "3.3.2",
|
|
1009
|
+
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz",
|
|
1010
|
+
"integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==",
|
|
1011
|
+
"license": "MIT",
|
|
1012
|
+
"optional": true,
|
|
1013
|
+
"dependencies": {
|
|
1014
|
+
"data-uri-to-buffer": "^4.0.0",
|
|
1015
|
+
"fetch-blob": "^3.1.4",
|
|
1016
|
+
"formdata-polyfill": "^4.0.10"
|
|
1017
|
+
},
|
|
1018
|
+
"engines": {
|
|
1019
|
+
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
1020
|
+
},
|
|
1021
|
+
"funding": {
|
|
1022
|
+
"type": "opencollective",
|
|
1023
|
+
"url": "https://opencollective.com/node-fetch"
|
|
1024
|
+
}
|
|
1025
|
+
},
|
|
1026
|
+
"node_modules/@google-cloud/firestore/node_modules/proto3-json-serializer": {
|
|
1027
|
+
"version": "4.0.2",
|
|
1028
|
+
"resolved": "https://registry.npmjs.org/proto3-json-serializer/-/proto3-json-serializer-4.0.2.tgz",
|
|
1029
|
+
"integrity": "sha512-VUQlb/J2WjOG8BKhdLwJUz+MKxSMtBGYh+TaNmRtiYVhlIzXjzeAGIx7gtc3lXlA2iURzfF2+cXaQvC2ofwzpg==",
|
|
1030
|
+
"license": "Apache-2.0",
|
|
1031
|
+
"optional": true,
|
|
1032
|
+
"dependencies": {
|
|
1033
|
+
"protobufjs": "^7.5.4"
|
|
1034
|
+
},
|
|
1035
|
+
"engines": {
|
|
1036
|
+
"node": ">=22"
|
|
1037
|
+
}
|
|
1038
|
+
},
|
|
1039
|
+
"node_modules/@google-cloud/firestore/node_modules/retry-request": {
|
|
1040
|
+
"version": "9.0.1",
|
|
1041
|
+
"resolved": "https://registry.npmjs.org/retry-request/-/retry-request-9.0.1.tgz",
|
|
1042
|
+
"integrity": "sha512-4kGHEBl0ME6gR+8QB1sPMyg58jUxLUcCZNeqLDrfqzk0eWQN8XJFmeu7fmZCjlZCRW0S2u64Ik1HkO/0sWgCYQ==",
|
|
1043
|
+
"license": "MIT",
|
|
1044
|
+
"optional": true,
|
|
1045
|
+
"dependencies": {
|
|
1046
|
+
"extend": "^3.0.2",
|
|
1047
|
+
"teeny-request": "^11.0.0"
|
|
1048
|
+
},
|
|
1049
|
+
"engines": {
|
|
1050
|
+
"node": ">=22"
|
|
1051
|
+
}
|
|
1052
|
+
},
|
|
1053
|
+
"node_modules/@google-cloud/firestore/node_modules/teeny-request": {
|
|
1054
|
+
"version": "11.0.1",
|
|
1055
|
+
"resolved": "https://registry.npmjs.org/teeny-request/-/teeny-request-11.0.1.tgz",
|
|
1056
|
+
"integrity": "sha512-bNr5j2YjSdajgCVsp+8JVjRf1uHIbpNISLeKp/7V1NnVMX3Gh6H/kECNGlm2Q3I68ACODQ0iv6aZ3Rvm8WgLGA==",
|
|
1057
|
+
"license": "Apache-2.0",
|
|
1058
|
+
"optional": true,
|
|
1059
|
+
"dependencies": {
|
|
1060
|
+
"http-proxy-agent": "^7.0.0",
|
|
1061
|
+
"https-proxy-agent": "^7.0.1",
|
|
1062
|
+
"node-fetch": "^3.3.2",
|
|
1063
|
+
"stream-events": "^1.0.5"
|
|
1064
|
+
},
|
|
1065
|
+
"engines": {
|
|
1066
|
+
"node": ">=22"
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
860
1069
|
"node_modules/@google-cloud/paginator": {
|
|
861
1070
|
"version": "5.0.2",
|
|
862
1071
|
"resolved": "https://registry.npmjs.org/@google-cloud/paginator/-/paginator-5.0.2.tgz",
|
|
@@ -910,15 +1119,15 @@
|
|
|
910
1119
|
}
|
|
911
1120
|
},
|
|
912
1121
|
"node_modules/@google-cloud/storage": {
|
|
913
|
-
"version": "
|
|
914
|
-
"resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-
|
|
915
|
-
"integrity": "sha512-
|
|
1122
|
+
"version": "8.1.0",
|
|
1123
|
+
"resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-8.1.0.tgz",
|
|
1124
|
+
"integrity": "sha512-iFDlOGBzmzTelslzcf0yTpoqloyfTUi448PxJXvjtbvGqtc2ftT8HUSl5+sKQPRz70y64ha5FqojDhABP103EA==",
|
|
916
1125
|
"license": "Apache-2.0",
|
|
917
1126
|
"optional": true,
|
|
918
1127
|
"dependencies": {
|
|
919
|
-
"@google-cloud/paginator": "^
|
|
920
|
-
"@google-cloud/projectify": "^
|
|
921
|
-
"@google-cloud/promisify": "
|
|
1128
|
+
"@google-cloud/paginator": "^7.0.1",
|
|
1129
|
+
"@google-cloud/projectify": "^6.0.1",
|
|
1130
|
+
"@google-cloud/promisify": "^6.0.1",
|
|
922
1131
|
"abort-controller": "^3.0.0",
|
|
923
1132
|
"async-retry": "^1.3.3",
|
|
924
1133
|
"duplexify": "^4.1.3",
|
|
@@ -928,11 +1137,107 @@
|
|
|
928
1137
|
"html-entities": "^2.5.2",
|
|
929
1138
|
"mime": "^3.0.0",
|
|
930
1139
|
"p-limit": "^3.0.1",
|
|
931
|
-
"retry-request": "^
|
|
932
|
-
"teeny-request": "^
|
|
1140
|
+
"retry-request": "^9.0.1",
|
|
1141
|
+
"teeny-request": "^11.0.1"
|
|
933
1142
|
},
|
|
934
1143
|
"engines": {
|
|
935
|
-
"node": ">=
|
|
1144
|
+
"node": ">=22"
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
"node_modules/@google-cloud/storage/node_modules/@google-cloud/paginator": {
|
|
1148
|
+
"version": "7.0.1",
|
|
1149
|
+
"resolved": "https://registry.npmjs.org/@google-cloud/paginator/-/paginator-7.0.1.tgz",
|
|
1150
|
+
"integrity": "sha512-k32cWlHAF8yTgg8rciLI8mPMI6UzuJdKp53YRxISRwMFxUl2FYplvs+Mr2UHxKn0W7rXsqZnUZy73AOJFDP8iA==",
|
|
1151
|
+
"license": "Apache-2.0",
|
|
1152
|
+
"optional": true,
|
|
1153
|
+
"dependencies": {
|
|
1154
|
+
"extend": "^3.0.2"
|
|
1155
|
+
},
|
|
1156
|
+
"engines": {
|
|
1157
|
+
"node": ">=22"
|
|
1158
|
+
}
|
|
1159
|
+
},
|
|
1160
|
+
"node_modules/@google-cloud/storage/node_modules/@google-cloud/projectify": {
|
|
1161
|
+
"version": "6.0.1",
|
|
1162
|
+
"resolved": "https://registry.npmjs.org/@google-cloud/projectify/-/projectify-6.0.1.tgz",
|
|
1163
|
+
"integrity": "sha512-zA3o4l87UJ56odT/e9PcT4n2bqVnrp6dg9vI75DoGGbl0/YJemX8Fta7454htECt07eALxxc4iaAbrX3T+QulA==",
|
|
1164
|
+
"license": "Apache-2.0",
|
|
1165
|
+
"optional": true,
|
|
1166
|
+
"engines": {
|
|
1167
|
+
"node": ">=22"
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
"node_modules/@google-cloud/storage/node_modules/@google-cloud/promisify": {
|
|
1171
|
+
"version": "6.0.1",
|
|
1172
|
+
"resolved": "https://registry.npmjs.org/@google-cloud/promisify/-/promisify-6.0.1.tgz",
|
|
1173
|
+
"integrity": "sha512-lpN2AtoQ/iimp7jjm5zJFWbpW7OJc5qWmQdt59CI4ENeoIRIx+yf2ShSR2kanQfjFOshA74eSbimXXuRaSCUVg==",
|
|
1174
|
+
"license": "Apache-2.0",
|
|
1175
|
+
"optional": true,
|
|
1176
|
+
"engines": {
|
|
1177
|
+
"node": ">=22"
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
1180
|
+
"node_modules/@google-cloud/storage/node_modules/http-proxy-agent": {
|
|
1181
|
+
"version": "7.0.2",
|
|
1182
|
+
"resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
|
|
1183
|
+
"integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
|
|
1184
|
+
"license": "MIT",
|
|
1185
|
+
"optional": true,
|
|
1186
|
+
"dependencies": {
|
|
1187
|
+
"agent-base": "^7.1.0",
|
|
1188
|
+
"debug": "^4.3.4"
|
|
1189
|
+
},
|
|
1190
|
+
"engines": {
|
|
1191
|
+
"node": ">= 14"
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
"node_modules/@google-cloud/storage/node_modules/node-fetch": {
|
|
1195
|
+
"version": "3.3.2",
|
|
1196
|
+
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz",
|
|
1197
|
+
"integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==",
|
|
1198
|
+
"license": "MIT",
|
|
1199
|
+
"optional": true,
|
|
1200
|
+
"dependencies": {
|
|
1201
|
+
"data-uri-to-buffer": "^4.0.0",
|
|
1202
|
+
"fetch-blob": "^3.1.4",
|
|
1203
|
+
"formdata-polyfill": "^4.0.10"
|
|
1204
|
+
},
|
|
1205
|
+
"engines": {
|
|
1206
|
+
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
1207
|
+
},
|
|
1208
|
+
"funding": {
|
|
1209
|
+
"type": "opencollective",
|
|
1210
|
+
"url": "https://opencollective.com/node-fetch"
|
|
1211
|
+
}
|
|
1212
|
+
},
|
|
1213
|
+
"node_modules/@google-cloud/storage/node_modules/retry-request": {
|
|
1214
|
+
"version": "9.0.1",
|
|
1215
|
+
"resolved": "https://registry.npmjs.org/retry-request/-/retry-request-9.0.1.tgz",
|
|
1216
|
+
"integrity": "sha512-4kGHEBl0ME6gR+8QB1sPMyg58jUxLUcCZNeqLDrfqzk0eWQN8XJFmeu7fmZCjlZCRW0S2u64Ik1HkO/0sWgCYQ==",
|
|
1217
|
+
"license": "MIT",
|
|
1218
|
+
"optional": true,
|
|
1219
|
+
"dependencies": {
|
|
1220
|
+
"extend": "^3.0.2",
|
|
1221
|
+
"teeny-request": "^11.0.0"
|
|
1222
|
+
},
|
|
1223
|
+
"engines": {
|
|
1224
|
+
"node": ">=22"
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1227
|
+
"node_modules/@google-cloud/storage/node_modules/teeny-request": {
|
|
1228
|
+
"version": "11.0.1",
|
|
1229
|
+
"resolved": "https://registry.npmjs.org/teeny-request/-/teeny-request-11.0.1.tgz",
|
|
1230
|
+
"integrity": "sha512-bNr5j2YjSdajgCVsp+8JVjRf1uHIbpNISLeKp/7V1NnVMX3Gh6H/kECNGlm2Q3I68ACODQ0iv6aZ3Rvm8WgLGA==",
|
|
1231
|
+
"license": "Apache-2.0",
|
|
1232
|
+
"optional": true,
|
|
1233
|
+
"dependencies": {
|
|
1234
|
+
"http-proxy-agent": "^7.0.0",
|
|
1235
|
+
"https-proxy-agent": "^7.0.1",
|
|
1236
|
+
"node-fetch": "^3.3.2",
|
|
1237
|
+
"stream-events": "^1.0.5"
|
|
1238
|
+
},
|
|
1239
|
+
"engines": {
|
|
1240
|
+
"node": ">=22"
|
|
936
1241
|
}
|
|
937
1242
|
},
|
|
938
1243
|
"node_modules/@grpc/grpc-js": {
|
|
@@ -3021,9 +3326,9 @@
|
|
|
3021
3326
|
}
|
|
3022
3327
|
},
|
|
3023
3328
|
"node_modules/firebase-admin": {
|
|
3024
|
-
"version": "14.
|
|
3025
|
-
"resolved": "https://registry.npmjs.org/firebase-admin/-/firebase-admin-14.
|
|
3026
|
-
"integrity": "sha512-
|
|
3329
|
+
"version": "14.4.0",
|
|
3330
|
+
"resolved": "https://registry.npmjs.org/firebase-admin/-/firebase-admin-14.4.0.tgz",
|
|
3331
|
+
"integrity": "sha512-yEx+GCsHvjH2svh4j1ATW57o8tlfjRQ0klTxvn7XCKUPXWiUQaRTHSzPSqhXtsLYSe4IwTqR7qqrh2sA45A0HA==",
|
|
3027
3332
|
"license": "Apache-2.0",
|
|
3028
3333
|
"dependencies": {
|
|
3029
3334
|
"@fastify/busboy": "^3.0.0",
|
|
@@ -3038,8 +3343,8 @@
|
|
|
3038
3343
|
"node": ">=22"
|
|
3039
3344
|
},
|
|
3040
3345
|
"optionalDependencies": {
|
|
3041
|
-
"@google-cloud/firestore": "^
|
|
3042
|
-
"@google-cloud/storage": "^
|
|
3346
|
+
"@google-cloud/firestore": "^9.1.0",
|
|
3347
|
+
"@google-cloud/storage": "^8.1.0"
|
|
3043
3348
|
}
|
|
3044
3349
|
},
|
|
3045
3350
|
"node_modules/firebase-admin/node_modules/gaxios": {
|
|
@@ -3115,9 +3420,9 @@
|
|
|
3115
3420
|
}
|
|
3116
3421
|
},
|
|
3117
3422
|
"node_modules/firebase-functions": {
|
|
3118
|
-
"version": "7.3.3-rc.
|
|
3119
|
-
"resolved": "https://registry.npmjs.org/firebase-functions/-/firebase-functions-7.3.3-rc.
|
|
3120
|
-
"integrity": "sha512-
|
|
3423
|
+
"version": "7.3.3-rc.3",
|
|
3424
|
+
"resolved": "https://registry.npmjs.org/firebase-functions/-/firebase-functions-7.3.3-rc.3.tgz",
|
|
3425
|
+
"integrity": "sha512-ZSk85ExZSIgRaKZiTD2Z8Q4dU6KIeIVfwYT75PWC4KlaEgnoAyH6l4fmbP2IeAV3K8WQpLP9A5uTJIKMzeqL8A==",
|
|
3121
3426
|
"license": "MIT",
|
|
3122
3427
|
"dependencies": {
|
|
3123
3428
|
"@types/cors": "^2.8.5",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase-function-kits/firestore-bigquery-export",
|
|
3
|
-
"version": "0.0.2-rc.
|
|
3
|
+
"version": "0.0.2-rc.12",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/firebase/extensions.git",
|
|
@@ -33,8 +33,6 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@firebaseextensions/firestore-bigquery-change-tracker": "^2.2.1",
|
|
35
35
|
"@google-cloud/bigquery": "^7.6.0",
|
|
36
|
-
"firebase-admin": "^14.2.0",
|
|
37
|
-
"firebase-functions": "^7.3.3-rc.1",
|
|
38
36
|
"generate-schema": "^2.6.0",
|
|
39
37
|
"lodash": "^4.17.14"
|
|
40
38
|
},
|
|
@@ -45,7 +43,13 @@
|
|
|
45
43
|
},
|
|
46
44
|
"devDependencies": {
|
|
47
45
|
"@types/lodash": "^4.17.0",
|
|
46
|
+
"firebase-admin": "^14.4.0",
|
|
47
|
+
"firebase-functions": "^7.3.3-rc.3",
|
|
48
48
|
"typescript": "^5.9.3",
|
|
49
49
|
"vitest": "^3.2.4"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"firebase-admin": "^14.3.0",
|
|
53
|
+
"firebase-functions": "^7.3.3-rc.3"
|
|
50
54
|
}
|
|
51
55
|
}
|
package/src/events.ts
CHANGED
|
@@ -18,13 +18,17 @@ import * as eventArc from "firebase-admin/eventarc";
|
|
|
18
18
|
const { getEventarc } = eventArc;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Generates both the OLD and NEW event types to maintain backward compatibility.
|
|
22
|
+
*
|
|
23
|
+
* Old Event Type: firebase.extensions.firestore-counter.v1.{eventName}
|
|
24
|
+
* New Event Type: firebase.extensions.firestore-bigquery-export.v1.{eventName}
|
|
22
25
|
*
|
|
23
26
|
* @param eventName The name of the event (e.g., "onStart", "onError", etc.)
|
|
24
|
-
* @returns
|
|
27
|
+
* @returns An array containing both the old and new event types
|
|
25
28
|
*/
|
|
26
29
|
const getEventTypes = (eventName: string) => [
|
|
27
|
-
`firebase.extensions.firestore-
|
|
30
|
+
`firebase.extensions.firestore-counter.v1.${eventName}`, // OLD Event Type for backward compatibility
|
|
31
|
+
`firebase.extensions.firestore-bigquery-export.v1.${eventName}`, // NEW Event Type following the updated convention
|
|
28
32
|
];
|
|
29
33
|
|
|
30
34
|
let eventChannel: eventArc.Channel | undefined;
|
package/src/index.ts
CHANGED
|
@@ -77,6 +77,11 @@ const REQUIRED_ROLES: ReadonlyArray<Role> = [
|
|
|
77
77
|
// Gen2 Firestore triggers need Eventarc receive and run.invoker on the function SA.
|
|
78
78
|
"roles/eventarc.eventReceiver",
|
|
79
79
|
"roles/run.invoker",
|
|
80
|
+
// The Extensions platform granted publish rights on the extension's Eventarc
|
|
81
|
+
// channel implicitly from `events:` in extension.yaml. Kits get no implicit
|
|
82
|
+
// grant, so without this the `channel.publish()` calls in ./events fail with
|
|
83
|
+
// PERMISSION_DENIED and no custom event is ever delivered.
|
|
84
|
+
"roles/eventarc.publisher",
|
|
80
85
|
// The trigger enqueues failed writes onto its own syncBigQuery task queue.
|
|
81
86
|
"roles/cloudtasks.enqueuer",
|
|
82
87
|
];
|
package/tests/events.test.ts
CHANGED
|
@@ -59,14 +59,13 @@ describe("channel configured", () => {
|
|
|
59
59
|
setupEventChannel();
|
|
60
60
|
});
|
|
61
61
|
|
|
62
|
-
test("publishes the
|
|
62
|
+
test("publishes both the legacy and the current event type", async () => {
|
|
63
63
|
await recordStartEvent({ a: 1 });
|
|
64
|
-
expect(publish).toHaveBeenCalledTimes(
|
|
65
|
-
expect(publish).
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
);
|
|
64
|
+
expect(publish).toHaveBeenCalledTimes(2);
|
|
65
|
+
expect(publish.mock.calls.map((c) => c[0].type)).toEqual([
|
|
66
|
+
"firebase.extensions.firestore-counter.v1.onStart",
|
|
67
|
+
"firebase.extensions.firestore-bigquery-export.v1.onStart",
|
|
68
|
+
]);
|
|
70
69
|
});
|
|
71
70
|
|
|
72
71
|
test("error / success / completion map to their event types", async () => {
|
|
@@ -76,9 +75,24 @@ describe("channel configured", () => {
|
|
|
76
75
|
|
|
77
76
|
const types = publish.mock.calls.map((c) => c[0].type);
|
|
78
77
|
expect(types).toEqual([
|
|
78
|
+
"firebase.extensions.firestore-counter.v1.onError",
|
|
79
79
|
"firebase.extensions.firestore-bigquery-export.v1.onError",
|
|
80
|
+
"firebase.extensions.firestore-counter.v1.onSuccess",
|
|
80
81
|
"firebase.extensions.firestore-bigquery-export.v1.onSuccess",
|
|
82
|
+
"firebase.extensions.firestore-counter.v1.onCompletion",
|
|
81
83
|
"firebase.extensions.firestore-bigquery-export.v1.onCompletion",
|
|
82
84
|
]);
|
|
83
85
|
});
|
|
86
|
+
|
|
87
|
+
test("the legacy copy carries the same payload as the current one", async () => {
|
|
88
|
+
await recordErrorEvent(new Error("boom"), "doc1");
|
|
89
|
+
|
|
90
|
+
const [legacy, current] = publish.mock.calls.map((c) => c[0]);
|
|
91
|
+
expect(legacy.data).toEqual({ message: "boom" });
|
|
92
|
+
expect(legacy.subject).toBe("doc1");
|
|
93
|
+
expect({ ...legacy, type: undefined }).toEqual({
|
|
94
|
+
...current,
|
|
95
|
+
type: undefined,
|
|
96
|
+
});
|
|
97
|
+
});
|
|
84
98
|
});
|