@firebase-function-kits/bigquery-firestore-export 0.0.2-rc.0 → 0.0.2-rc.2
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/CHANGELOG.md +1 -1
- package/README.md +138 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +128 -9
- package/lib/config.js.map +1 -1
- package/lib/dts.d.ts +17 -2
- package/lib/dts.d.ts.map +1 -1
- package/lib/dts.js +25 -8
- package/lib/dts.js.map +1 -1
- package/lib/export-config.d.ts +0 -3
- package/lib/export-config.d.ts.map +1 -1
- package/lib/export-config.js +0 -1
- package/lib/export-config.js.map +1 -1
- package/lib/handlers.d.ts.map +1 -1
- package/lib/handlers.js +26 -4
- package/lib/handlers.js.map +1 -1
- package/lib/helper.d.ts.map +1 -1
- package/lib/helper.js +1 -0
- package/lib/helper.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/logs.d.ts +4 -0
- package/lib/logs.d.ts.map +1 -1
- package/lib/logs.js +18 -0
- package/lib/logs.js.map +1 -1
- package/lib/metadata.d.ts.map +1 -1
- package/npm-shrinkwrap.json +3841 -0
- package/package.json +2 -5
- package/src/config.ts +142 -9
- package/src/dts.ts +27 -9
- package/src/export-config.ts +0 -4
- package/src/handlers.ts +36 -9
- package/src/helper.ts +1 -0
- package/src/index.ts +1 -1
- package/src/logs.ts +28 -0
- package/tests/config.test.ts +54 -2
- package/tests/dts-transfer-config.test.ts +400 -0
- package/tests/dts.test.ts +18 -5
- package/tests/export-config.test.ts +0 -4
- package/tests/handlers.test.ts +113 -5
- package/tests/helper-values.test.ts +168 -0
- package/tests/helper.test.ts +65 -3
- package/tests/notification-topic.test.ts +151 -0
- package/tests/run-results.test.ts +373 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 Google LLC
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import type { BigQuery } from "@google-cloud/bigquery";
|
|
18
|
+
import { beforeEach, describe, expect, test, vi } from "vitest";
|
|
19
|
+
import { resolveConfig } from "../src/export-config";
|
|
20
|
+
import type { BigQueryRow, TransferRunMessage } from "../src/types";
|
|
21
|
+
|
|
22
|
+
const mocks = vi.hoisted(() => ({
|
|
23
|
+
errorWritingToFirestore: vi.fn(),
|
|
24
|
+
latestDocUpdateSkipped: vi.fn(),
|
|
25
|
+
handlingNonSuccessRun: vi.fn(),
|
|
26
|
+
}));
|
|
27
|
+
|
|
28
|
+
vi.mock("../src/logs", () => ({
|
|
29
|
+
bigqueryJobStarted: vi.fn(),
|
|
30
|
+
bigqueryQueryFailed: vi.fn(),
|
|
31
|
+
bigqueryResultsRowCount: vi.fn(),
|
|
32
|
+
errorWritingToFirestore: mocks.errorWritingToFirestore,
|
|
33
|
+
handlingNonSuccessRun: mocks.handlingNonSuccessRun,
|
|
34
|
+
latestDocUpdateSkipped: mocks.latestDocUpdateSkipped,
|
|
35
|
+
runResultsWrittenToFirestore: vi.fn(),
|
|
36
|
+
writeRunResultsToFirestore: vi.fn(),
|
|
37
|
+
}));
|
|
38
|
+
|
|
39
|
+
import {
|
|
40
|
+
handleTransferRunMessage,
|
|
41
|
+
type ResultHandlerContext,
|
|
42
|
+
writeRunResultsToFirestore,
|
|
43
|
+
} from "../src/helper";
|
|
44
|
+
|
|
45
|
+
type Data = Record<string, unknown>;
|
|
46
|
+
|
|
47
|
+
const config = resolveConfig({
|
|
48
|
+
bigqueryDatasetLocation: "US",
|
|
49
|
+
projectId: "test-project",
|
|
50
|
+
instanceId: "users-export",
|
|
51
|
+
datasetId: "analytics",
|
|
52
|
+
tableName: "users",
|
|
53
|
+
queryString: "SELECT * FROM source.users",
|
|
54
|
+
displayName: "Users export",
|
|
55
|
+
schedule: "every 24 hours",
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const TRANSFER_CONFIG_ID = "642f3a36-0000-2fbb-ad1d-001a114e2fa6";
|
|
59
|
+
const RUN_ID = "648762e0-0000-28ef-9109-001a11446b2a";
|
|
60
|
+
|
|
61
|
+
function runName(runId = RUN_ID): string {
|
|
62
|
+
return `projects/test-project/locations/us/transferConfigs/${TRANSFER_CONFIG_ID}/runs/${runId}`;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function message(
|
|
66
|
+
overrides: Partial<TransferRunMessage["json"]> = {}
|
|
67
|
+
): TransferRunMessage {
|
|
68
|
+
return {
|
|
69
|
+
json: {
|
|
70
|
+
name: runName(),
|
|
71
|
+
runTime: "2023-03-23T21:03:00Z",
|
|
72
|
+
state: "SUCCEEDED",
|
|
73
|
+
destinationDatasetId: "test",
|
|
74
|
+
dataSourceId: "scheduled_query",
|
|
75
|
+
schedule: "every 15 minutes",
|
|
76
|
+
scheduleTime: "2023-03-23T21:03:00Z",
|
|
77
|
+
startTime: "2023-03-23T21:03:01.133872Z",
|
|
78
|
+
endTime: "2023-03-23T21:04:16.167236Z",
|
|
79
|
+
updateTime: "2023-03-23T21:04:16.167248Z",
|
|
80
|
+
userId: "-1291228896441774269",
|
|
81
|
+
notificationPubsubTopic: "projects/test-project/topics/transfer_runs",
|
|
82
|
+
params: {
|
|
83
|
+
destination_table_name_template: 'users_{run_time|"%H%M%S"}',
|
|
84
|
+
partitioning_field: "",
|
|
85
|
+
query: "SELECT * FROM source.users",
|
|
86
|
+
write_disposition: "WRITE_TRUNCATE",
|
|
87
|
+
},
|
|
88
|
+
emailPreferences: {},
|
|
89
|
+
errorStatus: {},
|
|
90
|
+
...overrides,
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Minimal in-memory stand-in for the Firestore surface the helpers touch:
|
|
97
|
+
* path-addressed documents, auto-id adds, a single equality query and a
|
|
98
|
+
* transaction that runs its body against the same store.
|
|
99
|
+
*/
|
|
100
|
+
class FakeFirestore {
|
|
101
|
+
readonly docs = new Map<string, Data>();
|
|
102
|
+
private nextAutoId = 0;
|
|
103
|
+
/** Fails an `add` whose row index matches, to exercise partial write failures. */
|
|
104
|
+
rejectAddAt: number | null = null;
|
|
105
|
+
private addCount = 0;
|
|
106
|
+
|
|
107
|
+
collection(path: string) {
|
|
108
|
+
return {
|
|
109
|
+
doc: (id: string) => this.docRef(`${path}/${id}`),
|
|
110
|
+
add: async (data: Data) => {
|
|
111
|
+
const index = this.addCount++;
|
|
112
|
+
if (index === this.rejectAddAt) {
|
|
113
|
+
throw new Error(`write failed for row ${index}`);
|
|
114
|
+
}
|
|
115
|
+
const ref = this.docRef(`${path}/auto-${this.nextAutoId++}`);
|
|
116
|
+
this.docs.set(ref.path, data);
|
|
117
|
+
return ref;
|
|
118
|
+
},
|
|
119
|
+
where: (field: string, _op: string, value: unknown) => {
|
|
120
|
+
const query = {
|
|
121
|
+
limit: () => query,
|
|
122
|
+
get: async () => {
|
|
123
|
+
const docs = [...this.docs.entries()]
|
|
124
|
+
.filter(([docPath]) => parentPath(docPath) === path)
|
|
125
|
+
.filter(([, data]) => data[field] === value)
|
|
126
|
+
.map(([docPath, data]) => ({
|
|
127
|
+
id: docPath.split("/").at(-1),
|
|
128
|
+
data: () => data,
|
|
129
|
+
}));
|
|
130
|
+
return { empty: docs.length === 0, docs };
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
return query;
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
async runTransaction<T>(
|
|
139
|
+
body: (transaction: {
|
|
140
|
+
get: (ref: { path: string }) => Promise<{ data: () => Data | undefined }>;
|
|
141
|
+
set: (ref: { path: string }, data: Data) => void;
|
|
142
|
+
}) => Promise<T>
|
|
143
|
+
): Promise<T> {
|
|
144
|
+
return body({
|
|
145
|
+
get: async (ref) => ({ data: () => this.docs.get(ref.path) }),
|
|
146
|
+
set: (ref, data) => {
|
|
147
|
+
this.docs.set(ref.path, data);
|
|
148
|
+
},
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
private docRef(path: string) {
|
|
153
|
+
return {
|
|
154
|
+
path,
|
|
155
|
+
id: path.split("/").at(-1),
|
|
156
|
+
set: async (data: Data) => {
|
|
157
|
+
this.docs.set(path, data);
|
|
158
|
+
},
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
function parentPath(path: string): string {
|
|
164
|
+
return path.slice(0, path.lastIndexOf("/"));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function fakeBigquery(rows: BigQueryRow[]) {
|
|
168
|
+
const createQueryJob = vi.fn().mockResolvedValue([
|
|
169
|
+
{
|
|
170
|
+
id: "job-1",
|
|
171
|
+
getQueryResults: vi.fn().mockResolvedValue([rows]),
|
|
172
|
+
},
|
|
173
|
+
]);
|
|
174
|
+
return { createQueryJob } as unknown as BigQuery & {
|
|
175
|
+
createQueryJob: ReturnType<typeof vi.fn>;
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function makeContext(rows: BigQueryRow[] = [{ query: "result" }]) {
|
|
180
|
+
const db = new FakeFirestore();
|
|
181
|
+
const bigquery = fakeBigquery(rows);
|
|
182
|
+
return {
|
|
183
|
+
db,
|
|
184
|
+
bigquery,
|
|
185
|
+
ctx: { db, bigquery, config } as unknown as ResultHandlerContext,
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
function associate(db: FakeFirestore): void {
|
|
190
|
+
db.docs.set(`${config.firestoreCollection}/${TRANSFER_CONFIG_ID}`, {
|
|
191
|
+
extInstanceId: config.instanceId,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function runsPath(): string {
|
|
196
|
+
return `${config.firestoreCollection}/${TRANSFER_CONFIG_ID}/runs`;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
beforeEach(() => {
|
|
200
|
+
vi.clearAllMocks();
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
describe("writeRunResultsToFirestore", () => {
|
|
204
|
+
test("queries the run's destination table and writes every row", async () => {
|
|
205
|
+
const rows = [{ query: "result" }, { query: "second" }];
|
|
206
|
+
const { db, bigquery, ctx } = makeContext(rows);
|
|
207
|
+
|
|
208
|
+
await writeRunResultsToFirestore(ctx, message());
|
|
209
|
+
|
|
210
|
+
expect(bigquery.createQueryJob).toHaveBeenCalledWith({
|
|
211
|
+
query: "SELECT * FROM `test-project.test.users_210300`",
|
|
212
|
+
location: "US",
|
|
213
|
+
});
|
|
214
|
+
const outputPath = `${runsPath()}/${RUN_ID}/output`;
|
|
215
|
+
const written = [...db.docs.entries()]
|
|
216
|
+
.filter(([path]) => parentPath(path) === outputPath)
|
|
217
|
+
.map(([, data]) => data);
|
|
218
|
+
expect(written).toEqual(rows);
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
test("records the run and latest documents with row counts", async () => {
|
|
222
|
+
const { db, ctx } = makeContext();
|
|
223
|
+
const msg = message();
|
|
224
|
+
|
|
225
|
+
await writeRunResultsToFirestore(ctx, msg);
|
|
226
|
+
|
|
227
|
+
expect(db.docs.get(`${runsPath()}/${RUN_ID}`)).toEqual({
|
|
228
|
+
runMetadata: msg.json,
|
|
229
|
+
failedRowCount: 0,
|
|
230
|
+
totalRowCount: 1,
|
|
231
|
+
});
|
|
232
|
+
expect(db.docs.get(`${runsPath()}/latest`)).toEqual({
|
|
233
|
+
runMetadata: msg.json,
|
|
234
|
+
latestRunId: RUN_ID,
|
|
235
|
+
failedRowCount: 0,
|
|
236
|
+
totalRowCount: 1,
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
test("counts and logs rows that fail to write", async () => {
|
|
241
|
+
const { db, ctx } = makeContext([
|
|
242
|
+
{ query: "first" },
|
|
243
|
+
{ query: "second" },
|
|
244
|
+
{ query: "third" },
|
|
245
|
+
]);
|
|
246
|
+
db.rejectAddAt = 1;
|
|
247
|
+
|
|
248
|
+
await writeRunResultsToFirestore(ctx, message());
|
|
249
|
+
|
|
250
|
+
expect(mocks.errorWritingToFirestore).toHaveBeenCalledOnce();
|
|
251
|
+
expect(db.docs.get(`${runsPath()}/${RUN_ID}`)).toMatchObject({
|
|
252
|
+
failedRowCount: 1,
|
|
253
|
+
totalRowCount: 3,
|
|
254
|
+
});
|
|
255
|
+
expect(db.docs.get(`${runsPath()}/latest`)).toMatchObject({
|
|
256
|
+
failedRowCount: 1,
|
|
257
|
+
totalRowCount: 3,
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
describe("handleTransferRunMessage", () => {
|
|
263
|
+
test("rejects a run belonging to another extension instance", async () => {
|
|
264
|
+
const { ctx } = makeContext();
|
|
265
|
+
|
|
266
|
+
await expect(handleTransferRunMessage(ctx, message())).rejects.toThrow(
|
|
267
|
+
`Skipping handling pubsub message because transferConfig '${TRANSFER_CONFIG_ID}' is not associated with extension instance '${config.instanceId}'.`
|
|
268
|
+
);
|
|
269
|
+
});
|
|
270
|
+
|
|
271
|
+
test("records a non-successful run with explicit zero counts", async () => {
|
|
272
|
+
const { db, ctx } = makeContext();
|
|
273
|
+
associate(db);
|
|
274
|
+
const failed = message({
|
|
275
|
+
state: "FAILED",
|
|
276
|
+
errorStatus: { message: "Query failed" },
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
await handleTransferRunMessage(ctx, failed);
|
|
280
|
+
|
|
281
|
+
expect(mocks.handlingNonSuccessRun).toHaveBeenCalledWith(
|
|
282
|
+
TRANSFER_CONFIG_ID,
|
|
283
|
+
RUN_ID,
|
|
284
|
+
"FAILED"
|
|
285
|
+
);
|
|
286
|
+
expect(db.docs.get(`${runsPath()}/${RUN_ID}`)).toEqual({
|
|
287
|
+
runMetadata: failed.json,
|
|
288
|
+
failedRowCount: 0,
|
|
289
|
+
totalRowCount: 0,
|
|
290
|
+
});
|
|
291
|
+
expect(db.docs.get(`${runsPath()}/latest`)).toEqual({
|
|
292
|
+
runMetadata: failed.json,
|
|
293
|
+
latestRunId: RUN_ID,
|
|
294
|
+
failedRowCount: 0,
|
|
295
|
+
totalRowCount: 0,
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
|
|
299
|
+
test("a newer failed run replaces a latest document from a successful run", async () => {
|
|
300
|
+
const { db, ctx } = makeContext();
|
|
301
|
+
associate(db);
|
|
302
|
+
const earlierRunId = "earlier-run";
|
|
303
|
+
|
|
304
|
+
await handleTransferRunMessage(
|
|
305
|
+
ctx,
|
|
306
|
+
message({ name: runName(earlierRunId), runTime: "2023-03-23T21:00:00Z" })
|
|
307
|
+
);
|
|
308
|
+
await handleTransferRunMessage(
|
|
309
|
+
ctx,
|
|
310
|
+
message({ state: "FAILED", runTime: "2023-03-23T22:00:00Z" })
|
|
311
|
+
);
|
|
312
|
+
|
|
313
|
+
const latest = db.docs.get(`${runsPath()}/latest`) as Data;
|
|
314
|
+
expect(latest.latestRunId).toBe(RUN_ID);
|
|
315
|
+
expect((latest.runMetadata as Data).state).toBe("FAILED");
|
|
316
|
+
});
|
|
317
|
+
|
|
318
|
+
test("an older run leaves the latest document alone", async () => {
|
|
319
|
+
const { db, ctx } = makeContext();
|
|
320
|
+
associate(db);
|
|
321
|
+
|
|
322
|
+
await handleTransferRunMessage(
|
|
323
|
+
ctx,
|
|
324
|
+
message({ runTime: "2023-03-23T22:00:00Z" })
|
|
325
|
+
);
|
|
326
|
+
await handleTransferRunMessage(
|
|
327
|
+
ctx,
|
|
328
|
+
message({
|
|
329
|
+
name: runName("older-run"),
|
|
330
|
+
state: "FAILED",
|
|
331
|
+
runTime: "2023-03-23T21:00:00Z",
|
|
332
|
+
})
|
|
333
|
+
);
|
|
334
|
+
|
|
335
|
+
const latest = db.docs.get(`${runsPath()}/latest`) as Data;
|
|
336
|
+
expect(latest.latestRunId).toBe(RUN_ID);
|
|
337
|
+
expect((latest.runMetadata as Data).state).toBe("SUCCEEDED");
|
|
338
|
+
expect(mocks.latestDocUpdateSkipped).toHaveBeenCalledOnce();
|
|
339
|
+
});
|
|
340
|
+
|
|
341
|
+
test("a redelivered message for the same run updates latest despite an equal runTime", async () => {
|
|
342
|
+
const { db, ctx } = makeContext();
|
|
343
|
+
associate(db);
|
|
344
|
+
|
|
345
|
+
await handleTransferRunMessage(
|
|
346
|
+
ctx,
|
|
347
|
+
message({ state: "FAILED", errorStatus: { message: "Query failed" } })
|
|
348
|
+
);
|
|
349
|
+
expect(
|
|
350
|
+
((db.docs.get(`${runsPath()}/latest`) as Data).runMetadata as Data).state
|
|
351
|
+
).toBe("FAILED");
|
|
352
|
+
|
|
353
|
+
await handleTransferRunMessage(ctx, message());
|
|
354
|
+
|
|
355
|
+
const latest = db.docs.get(`${runsPath()}/latest`) as Data;
|
|
356
|
+
expect((latest.runMetadata as Data).state).toBe("SUCCEEDED");
|
|
357
|
+
expect(latest.latestRunId).toBe(RUN_ID);
|
|
358
|
+
expect(mocks.latestDocUpdateSkipped).not.toHaveBeenCalled();
|
|
359
|
+
});
|
|
360
|
+
|
|
361
|
+
test("overwrites a latest document that is missing its run metadata", async () => {
|
|
362
|
+
const { db, ctx } = makeContext();
|
|
363
|
+
associate(db);
|
|
364
|
+
db.docs.set(`${runsPath()}/latest`, { someOtherField: "corrupted" });
|
|
365
|
+
|
|
366
|
+
await handleTransferRunMessage(ctx, message());
|
|
367
|
+
|
|
368
|
+
const latest = db.docs.get(`${runsPath()}/latest`) as Data;
|
|
369
|
+
expect(latest.latestRunId).toBe(RUN_ID);
|
|
370
|
+
expect(latest.runMetadata).toBeDefined();
|
|
371
|
+
expect(latest.someOtherField).toBeUndefined();
|
|
372
|
+
});
|
|
373
|
+
});
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"7.0.2","root":["./src/config.ts","./src/dts.ts","./src/export-config.ts","./src/handlers.ts","./src/helper.ts","./src/index.ts","./src/lib.ts","./src/logs.ts","./src/metadata.ts","./src/types.ts"],"packageJsons":["./node_modules/@firebase/app-types/package.json","./node_modules/@firebase/component/package.json","./node_modules/@firebase/database-types/package.json","./node_modules/@firebase/logger/package.json","./node_modules/@firebase/util/package.json","./node_modules/@google-cloud/bigquery-data-transfer/package.json","./node_modules/@google-cloud/bigquery/package.json","./node_modules/@google-cloud/common/package.json","./node_modules/@google-cloud/firestore/package.json","./node_modules/@google-cloud/paginator/package.json","./node_modules/@google-cloud/precise-date/package.json","./node_modules/@google-cloud/pubsub/node_modules/@google-cloud/precise-date/package.json","./node_modules/@google-cloud/pubsub/node_modules/@grpc/proto-loader/package.json","./node_modules/@google-cloud/pubsub/node_modules/gcp-metadata/package.json","./node_modules/@google-cloud/pubsub/node_modules/google-auth-library/package.json","./node_modules/@google-cloud/pubsub/node_modules/google-gax/package.json","./node_modules/@google-cloud/pubsub/node_modules/proto3-json-serializer/package.json","./node_modules/@google-cloud/pubsub/package.json","./node_modules/@grpc/grpc-js/package.json","./node_modules/@grpc/proto-loader/package.json","./node_modules/@js-sdsl/ordered-map/package.json","./node_modules/@opentelemetry/api/package.json","./node_modules/@types/body-parser/package.json","./node_modules/@types/connect/package.json","./node_modules/@types/cors/package.json","./node_modules/@types/express-serve-static-core/package.json","./node_modules/@types/express/package.json","./node_modules/@types/http-errors/package.json","./node_modules/@types/node/package.json","./node_modules/@types/qs/package.json","./node_modules/@types/range-parser/package.json","./node_modules/@types/send/package.json","./node_modules/@types/serve-static/package.json","./node_modules/abort-controller/package.json","./node_modules/body-parser/package.json","./node_modules/cors/package.json","./node_modules/event-target-shim/package.json","./node_modules/express/package.json","./node_modules/firebase-admin/package.json","./node_modules/firebase-functions/package.json","./node_modules/gaxios/package.json","./node_modules/gcp-metadata/package.json","./node_modules/google-auth-library/node_modules/gaxios/package.json","./node_modules/google-auth-library/package.json","./node_modules/google-gax/node_modules/gaxios/build/esm/package.json","./node_modules/google-gax/node_modules/gaxios/package.json","./node_modules/google-gax/node_modules/google-auth-library/package.json","./node_modules/google-gax/node_modules/gtoken/package.json","./node_modules/google-gax/package.json","./node_modules/google-logging-utils/package.json","./node_modules/gtoken/package.json","./node_modules/http-errors/package.json","./node_modules/long/package.json","./node_modules/long/umd/package.json","./node_modules/p-defer/package.json","./node_modules/proto3-json-serializer/package.json","./node_modules/protobufjs/package.json","./node_modules/qs/package.json","./node_modules/range-parser/package.json","./node_modules/send/package.json","./node_modules/serve-static/package.json","./node_modules/string_decoder/package.json","./node_modules/teeny-request/package.json","./node_modules/undici-types/package.json","./package.json"],"missingPackageJsons":["./node_modules/@apollo/server/package.json","./node_modules/@as-integrations/express4/package.json","./node_modules/@firebase/logger/dist/package.json","./node_modules/@firebase/logger/dist/src/package.json","./node_modules/@firebase/util/dist/package.json","./node_modules/@google-cloud/bigquery-data-transfer/build/package.json","./node_modules/@google-cloud/bigquery-data-transfer/build/protos/package.json","./node_modules/@google-cloud/bigquery-data-transfer/build/src/package.json","./node_modules/@google-cloud/bigquery-data-transfer/build/src/v1/package.json","./node_modules/@google-cloud/bigquery/build/package.json","./node_modules/@google-cloud/bigquery/build/src/package.json","./node_modules/@google-cloud/common/build/package.json","./node_modules/@google-cloud/common/build/src/package.json","./node_modules/@google-cloud/common/build/src/util/package.json","./node_modules/@google-cloud/common/node_modules/events/package.json","./node_modules/@google-cloud/common/node_modules/google-auth-library/package.json","./node_modules/@google-cloud/common/node_modules/stream/package.json","./node_modules/@google-cloud/common/node_modules/teeny-request/package.json","./node_modules/@google-cloud/firestore/types/package.json","./node_modules/@google-cloud/firestore/types/protos/package.json","./node_modules/@google-cloud/firestore/types/v1/package.json","./node_modules/@google-cloud/firestore/types/v1beta1/package.json","./node_modules/@google-cloud/paginator/build/package.json","./node_modules/@google-cloud/paginator/build/src/package.json","./node_modules/@google-cloud/precise-date/build/package.json","./node_modules/@google-cloud/precise-date/build/src/package.json","./node_modules/@google-cloud/pubsub/build/package.json","./node_modules/@google-cloud/pubsub/build/protos/package.json","./node_modules/@google-cloud/pubsub/build/src/package.json","./node_modules/@google-cloud/pubsub/build/src/publisher/package.json","./node_modules/@google-cloud/pubsub/build/src/v1/package.json","./node_modules/@google-cloud/pubsub/node_modules/@google-cloud/precise-date/build/package.json","./node_modules/@google-cloud/pubsub/node_modules/@google-cloud/precise-date/build/src/package.json","./node_modules/@google-cloud/pubsub/node_modules/@grpc/grpc-js/build/src/client/package.json","./node_modules/@google-cloud/pubsub/node_modules/@grpc/grpc-js/package.json","./node_modules/@google-cloud/pubsub/node_modules/@grpc/proto-loader/build/package.json","./node_modules/@google-cloud/pubsub/node_modules/@grpc/proto-loader/build/src/package.json","./node_modules/@google-cloud/pubsub/node_modules/@opentelemetry/api/package.json","./node_modules/@google-cloud/pubsub/node_modules/abort-controller/package.json","./node_modules/@google-cloud/pubsub/node_modules/events/package.json","./node_modules/@google-cloud/pubsub/node_modules/gaxios/package.json","./node_modules/@google-cloud/pubsub/node_modules/gcp-metadata/build/package.json","./node_modules/@google-cloud/pubsub/node_modules/gcp-metadata/build/src/package.json","./node_modules/@google-cloud/pubsub/node_modules/google-auth-library/build/package.json","./node_modules/@google-cloud/pubsub/node_modules/google-auth-library/build/src/auth/googleauth/package.json","./node_modules/@google-cloud/pubsub/node_modules/google-auth-library/build/src/auth/package.json","./node_modules/@google-cloud/pubsub/node_modules/google-auth-library/build/src/crypto/package.json","./node_modules/@google-cloud/pubsub/node_modules/google-auth-library/build/src/package.json","./node_modules/@google-cloud/pubsub/node_modules/google-gax/build/package.json","./node_modules/@google-cloud/pubsub/node_modules/google-gax/build/protos/package.json","./node_modules/@google-cloud/pubsub/node_modules/google-gax/build/src/bundlingCalls/package.json","./node_modules/@google-cloud/pubsub/node_modules/google-gax/build/src/longRunningCalls/package.json","./node_modules/@google-cloud/pubsub/node_modules/google-gax/build/src/normalCalls/package.json","./node_modules/@google-cloud/pubsub/node_modules/google-gax/build/src/package.json","./node_modules/@google-cloud/pubsub/node_modules/google-gax/build/src/paginationCalls/package.json","./node_modules/@google-cloud/pubsub/node_modules/google-gax/build/src/streamingCalls/package.json","./node_modules/@google-cloud/pubsub/node_modules/gtoken/package.json","./node_modules/@google-cloud/pubsub/node_modules/http/package.json","./node_modules/@google-cloud/pubsub/node_modules/long/package.json","./node_modules/@google-cloud/pubsub/node_modules/p-defer/package.json","./node_modules/@google-cloud/pubsub/node_modules/proto3-json-serializer/build/package.json","./node_modules/@google-cloud/pubsub/node_modules/proto3-json-serializer/build/src/package.json","./node_modules/@google-cloud/pubsub/node_modules/protobufjs/ext/descriptor/package.json","./node_modules/@google-cloud/pubsub/node_modules/protobufjs/minimal/package.json","./node_modules/@google-cloud/pubsub/node_modules/protobufjs/package.json","./node_modules/@google-cloud/pubsub/node_modules/querystring/package.json","./node_modules/@google-cloud/pubsub/node_modules/stream/package.json","./node_modules/@grpc/grpc-js/build/package.json","./node_modules/@grpc/grpc-js/build/src/client/package.json","./node_modules/@grpc/grpc-js/build/src/generated/google/package.json","./node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/package.json","./node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/package.json","./node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/package.json","./node_modules/@grpc/grpc-js/build/src/generated/grpc/package.json","./node_modules/@grpc/grpc-js/build/src/generated/package.json","./node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/package.json","./node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/package.json","./node_modules/@grpc/grpc-js/build/src/generated/xds/data/package.json","./node_modules/@grpc/grpc-js/build/src/generated/xds/package.json","./node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/package.json","./node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/package.json","./node_modules/@grpc/grpc-js/build/src/generated/xds/service/package.json","./node_modules/@grpc/grpc-js/build/src/package.json","./node_modules/@grpc/proto-loader/build/package.json","./node_modules/@grpc/proto-loader/build/src/package.json","./node_modules/@js-sdsl/ordered-map/dist/esm/package.json","./node_modules/@js-sdsl/ordered-map/dist/package.json","./node_modules/@opentelemetry/api/build/package.json","./node_modules/@opentelemetry/api/build/src/api/package.json","./node_modules/@opentelemetry/api/build/src/baggage/internal/package.json","./node_modules/@opentelemetry/api/build/src/baggage/package.json","./node_modules/@opentelemetry/api/build/src/common/package.json","./node_modules/@opentelemetry/api/build/src/context/package.json","./node_modules/@opentelemetry/api/build/src/diag/package.json","./node_modules/@opentelemetry/api/build/src/metrics/package.json","./node_modules/@opentelemetry/api/build/src/package.json","./node_modules/@opentelemetry/api/build/src/propagation/package.json","./node_modules/@opentelemetry/api/build/src/trace/internal/package.json","./node_modules/@opentelemetry/api/build/src/trace/package.json","./node_modules/@types/assert/package.json","./node_modules/@types/assert/strict/package.json","./node_modules/@types/async_hooks/package.json","./node_modules/@types/buffer/package.json","./node_modules/@types/child_process/package.json","./node_modules/@types/cluster/package.json","./node_modules/@types/console/package.json","./node_modules/@types/constants/package.json","./node_modules/@types/crypto/package.json","./node_modules/@types/dgram/package.json","./node_modules/@types/diagnostics_channel/package.json","./node_modules/@types/dns/package.json","./node_modules/@types/dns/promises/package.json","./node_modules/@types/domain/package.json","./node_modules/@types/events/package.json","./node_modules/@types/fs/package.json","./node_modules/@types/fs/promises/package.json","./node_modules/@types/http/package.json","./node_modules/@types/http2/package.json","./node_modules/@types/https/package.json","./node_modules/@types/inspector/package.json","./node_modules/@types/inspector/promises/package.json","./node_modules/@types/module/package.json","./node_modules/@types/net/package.json","./node_modules/@types/node/assert/package.json","./node_modules/@types/node/dns/package.json","./node_modules/@types/node/fs/package.json","./node_modules/@types/node/inspector/package.json","./node_modules/@types/node/path/package.json","./node_modules/@types/node/readline/package.json","./node_modules/@types/node/stream/package.json","./node_modules/@types/node/test/package.json","./node_modules/@types/node/timers/package.json","./node_modules/@types/node/util/package.json","./node_modules/@types/node/web-globals/package.json","./node_modules/@types/node/zlib/package.json","./node_modules/@types/os/package.json","./node_modules/@types/path/package.json","./node_modules/@types/path/posix/package.json","./node_modules/@types/path/win32/package.json","./node_modules/@types/perf_hooks/package.json","./node_modules/@types/process/package.json","./node_modules/@types/punycode/package.json","./node_modules/@types/querystring/package.json","./node_modules/@types/readline/package.json","./node_modules/@types/readline/promises/package.json","./node_modules/@types/repl/package.json","./node_modules/@types/stream/consumers/package.json","./node_modules/@types/stream/iter/package.json","./node_modules/@types/stream/package.json","./node_modules/@types/stream/promises/package.json","./node_modules/@types/stream/web/package.json","./node_modules/@types/string_decoder/package.json","./node_modules/@types/timers/package.json","./node_modules/@types/timers/promises/package.json","./node_modules/@types/tls/package.json","./node_modules/@types/trace_events/package.json","./node_modules/@types/tty/package.json","./node_modules/@types/url/package.json","./node_modules/@types/util/package.json","./node_modules/@types/util/types/package.json","./node_modules/@types/v8/package.json","./node_modules/@types/vm/package.json","./node_modules/@types/wasi/package.json","./node_modules/@types/worker_threads/package.json","./node_modules/@types/zlib/package.json","./node_modules/abort-controller/dist/package.json","./node_modules/assert/package.json","./node_modules/assert/strict/package.json","./node_modules/async_hooks/package.json","./node_modules/buffer/package.json","./node_modules/child_process/package.json","./node_modules/cluster/package.json","./node_modules/connect/package.json","./node_modules/console/package.json","./node_modules/constants/package.json","./node_modules/crypto/package.json","./node_modules/dgram/package.json","./node_modules/diagnostics_channel/package.json","./node_modules/dns/package.json","./node_modules/dns/promises/package.json","./node_modules/domain/package.json","./node_modules/events/package.json","./node_modules/express-serve-static-core/package.json","./node_modules/firebase-admin/app-check/package.json","./node_modules/firebase-admin/app/package.json","./node_modules/firebase-admin/auth/package.json","./node_modules/firebase-admin/database/package.json","./node_modules/firebase-admin/firestore/package.json","./node_modules/firebase-admin/lib/app-check/package.json","./node_modules/firebase-admin/lib/app/package.json","./node_modules/firebase-admin/lib/auth/package.json","./node_modules/firebase-admin/lib/database/package.json","./node_modules/firebase-admin/lib/firestore/package.json","./node_modules/firebase-admin/lib/package.json","./node_modules/firebase-admin/lib/utils/package.json","./node_modules/firebase-functions/lib/common/package.json","./node_modules/firebase-functions/lib/common/providers/package.json","./node_modules/firebase-functions/lib/lifecycle/package.json","./node_modules/firebase-functions/lib/logger/package.json","./node_modules/firebase-functions/lib/package.json","./node_modules/firebase-functions/lib/params/package.json","./node_modules/firebase-functions/lib/runtime/package.json","./node_modules/firebase-functions/lib/v1/package.json","./node_modules/firebase-functions/lib/v1/providers/package.json","./node_modules/firebase-functions/lib/v2/package.json","./node_modules/firebase-functions/lib/v2/providers/alerts/package.json","./node_modules/firebase-functions/lib/v2/providers/dataconnect/package.json","./node_modules/firebase-functions/lib/v2/providers/package.json","./node_modules/firebase-functions/params/package.json","./node_modules/firebase-functions/v2/lifecycle/package.json","./node_modules/firebase-functions/v2/package.json","./node_modules/firebase-functions/v2/pubsub/package.json","./node_modules/firebase-functions/v2/tasks/package.json","./node_modules/fs/package.json","./node_modules/fs/promises/package.json","./node_modules/gaxios/build/package.json","./node_modules/gaxios/build/src/package.json","./node_modules/gcp-metadata/build/package.json","./node_modules/gcp-metadata/build/src/package.json","./node_modules/google-auth-library/build/package.json","./node_modules/google-auth-library/build/src/auth/package.json","./node_modules/google-auth-library/build/src/crypto/package.json","./node_modules/google-auth-library/build/src/gtoken/package.json","./node_modules/google-auth-library/build/src/package.json","./node_modules/google-auth-library/node_modules/events/package.json","./node_modules/google-auth-library/node_modules/gaxios/build/cjs/package.json","./node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/package.json","./node_modules/google-auth-library/node_modules/gaxios/build/package.json","./node_modules/google-auth-library/node_modules/gcp-metadata/package.json","./node_modules/google-auth-library/node_modules/google-logging-utils/package.json","./node_modules/google-auth-library/node_modules/http/package.json","./node_modules/google-auth-library/node_modules/querystring/package.json","./node_modules/google-auth-library/node_modules/stream/package.json","./node_modules/google-auth-library/node_modules/undici-types/package.json","./node_modules/google-gax/build/package.json","./node_modules/google-gax/build/protos/package.json","./node_modules/google-gax/build/src/bundlingCalls/package.json","./node_modules/google-gax/build/src/longRunningCalls/package.json","./node_modules/google-gax/build/src/normalCalls/package.json","./node_modules/google-gax/build/src/package.json","./node_modules/google-gax/build/src/paginationCalls/package.json","./node_modules/google-gax/build/src/streamingCalls/package.json","./node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/client/package.json","./node_modules/google-gax/node_modules/@grpc/grpc-js/package.json","./node_modules/google-gax/node_modules/@grpc/proto-loader/package.json","./node_modules/google-gax/node_modules/events/package.json","./node_modules/google-gax/node_modules/gaxios/build/cjs/package.json","./node_modules/google-gax/node_modules/gaxios/build/cjs/src/package.json","./node_modules/google-gax/node_modules/gaxios/build/esm/src/package.json","./node_modules/google-gax/node_modules/gaxios/build/package.json","./node_modules/google-gax/node_modules/gcp-metadata/package.json","./node_modules/google-gax/node_modules/google-auth-library/build/package.json","./node_modules/google-gax/node_modules/google-auth-library/build/src/auth/googleauth/package.json","./node_modules/google-gax/node_modules/google-auth-library/build/src/auth/package.json","./node_modules/google-gax/node_modules/google-auth-library/build/src/crypto/package.json","./node_modules/google-gax/node_modules/google-auth-library/build/src/package.json","./node_modules/google-gax/node_modules/google-logging-utils/package.json","./node_modules/google-gax/node_modules/gtoken/build/cjs/package.json","./node_modules/google-gax/node_modules/gtoken/build/cjs/src/package.json","./node_modules/google-gax/node_modules/gtoken/build/package.json","./node_modules/google-gax/node_modules/http/package.json","./node_modules/google-gax/node_modules/long/package.json","./node_modules/google-gax/node_modules/proto3-json-serializer/package.json","./node_modules/google-gax/node_modules/protobufjs/minimal/package.json","./node_modules/google-gax/node_modules/protobufjs/package.json","./node_modules/google-gax/node_modules/querystring/package.json","./node_modules/google-gax/node_modules/stream/package.json","./node_modules/google-gax/node_modules/undici-types/package.json","./node_modules/google-logging-utils/build/package.json","./node_modules/google-logging-utils/build/src/package.json","./node_modules/graphql/package.json","./node_modules/gtoken/build/package.json","./node_modules/gtoken/build/src/package.json","./node_modules/http/package.json","./node_modules/http2/package.json","./node_modules/https/package.json","./node_modules/inspector/package.json","./node_modules/inspector/promises/package.json","./node_modules/module/package.json","./node_modules/net/package.json","./node_modules/os/package.json","./node_modules/path/package.json","./node_modules/path/posix/package.json","./node_modules/path/win32/package.json","./node_modules/perf_hooks/package.json","./node_modules/process/package.json","./node_modules/proto3-json-serializer/build/package.json","./node_modules/proto3-json-serializer/build/src/package.json","./node_modules/protobufjs/ext/descriptor/package.json","./node_modules/protobufjs/ext/package.json","./node_modules/protobufjs/minimal/package.json","./node_modules/punycode/package.json","./node_modules/querystring/package.json","./node_modules/readline/package.json","./node_modules/readline/promises/package.json","./node_modules/repl/package.json","./node_modules/stream/consumers/package.json","./node_modules/stream/iter/package.json","./node_modules/stream/package.json","./node_modules/stream/promises/package.json","./node_modules/stream/web/package.json","./node_modules/teeny-request/build/package.json","./node_modules/teeny-request/build/src/package.json","./node_modules/teeny-request/node_modules/http/package.json","./node_modules/teeny-request/node_modules/https/package.json","./node_modules/teeny-request/node_modules/stream/package.json","./node_modules/timers/package.json","./node_modules/timers/promises/package.json","./node_modules/tls/package.json","./node_modules/trace_events/package.json","./node_modules/tty/package.json","./node_modules/url/package.json","./node_modules/util/package.json","./node_modules/util/types/package.json","./node_modules/v8/package.json","./node_modules/vm/package.json","./node_modules/wasi/package.json","./node_modules/worker_threads/package.json","./node_modules/zlib/package.json"]}
|
|
1
|
+
{"root":["./src/config.ts","./src/dts.ts","./src/export-config.ts","./src/handlers.ts","./src/helper.ts","./src/index.ts","./src/lib.ts","./src/logs.ts","./src/metadata.ts","./src/types.ts"],"version":"5.9.3"}
|