@causa/workspace-google 0.17.0 → 0.18.0-beta.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/dist/configurations/schemas/google.yaml +37 -70
- package/dist/configurations/schemas/infrastructure.yaml +3 -5
- package/dist/configurations/schemas/service-container.yaml +7 -17
- package/dist/functions/emulator/start-firebase-storage.d.ts +1 -4
- package/dist/functions/emulator/start-firebase-storage.js +8 -11
- package/dist/functions/emulator/start-firestore.d.ts +1 -3
- package/dist/functions/emulator/start-firestore.js +8 -10
- package/dist/functions/emulator/start-identity-platform.d.ts +1 -4
- package/dist/functions/emulator/start-identity-platform.js +7 -10
- package/dist/functions/emulator/start-pubsub.call.d.ts +1 -2
- package/dist/functions/emulator/start-pubsub.call.js +2 -2
- package/dist/functions/emulator/start-pubsub.d.ts +1 -2
- package/dist/functions/emulator/start-pubsub.js +3 -3
- package/dist/functions/emulator/start-spanner.call.d.ts +1 -2
- package/dist/functions/emulator/start-spanner.call.js +2 -2
- package/dist/functions/emulator/start-spanner.d.ts +1 -2
- package/dist/functions/emulator/start-spanner.js +3 -3
- package/dist/functions/emulator/stop-firebase-storage.d.ts +1 -2
- package/dist/functions/emulator/stop-firebase-storage.js +5 -6
- package/dist/functions/emulator/stop-firestore.d.ts +1 -2
- package/dist/functions/emulator/stop-firestore.js +5 -6
- package/dist/functions/emulator/stop-identity-platform.d.ts +1 -2
- package/dist/functions/emulator/stop-identity-platform.js +5 -6
- package/dist/functions/emulator/stop-pubsub.d.ts +1 -2
- package/dist/functions/emulator/stop-pubsub.js +5 -6
- package/dist/functions/emulator/stop-spanner.d.ts +1 -2
- package/dist/functions/emulator/stop-spanner.js +5 -6
- package/dist/functions/event-topic/broker-create-topic-pubsub.call.d.ts +1 -2
- package/dist/functions/event-topic/broker-create-topic-pubsub.call.js +4 -4
- package/dist/functions/event-topic/broker-create-topic-pubsub.d.ts +2 -3
- package/dist/functions/event-topic/broker-create-topic-pubsub.js +7 -6
- package/dist/functions/event-topic/broker-create-trigger-cloud-run.call.d.ts +1 -2
- package/dist/functions/event-topic/broker-create-trigger-cloud-run.call.js +4 -4
- package/dist/functions/event-topic/broker-create-trigger-cloud-run.d.ts +2 -3
- package/dist/functions/event-topic/broker-create-trigger-cloud-run.js +8 -7
- package/dist/functions/event-topic/broker-delete-topic-pubsub.call.d.ts +1 -2
- package/dist/functions/event-topic/broker-delete-topic-pubsub.call.js +4 -4
- package/dist/functions/event-topic/broker-delete-topic-pubsub.d.ts +2 -3
- package/dist/functions/event-topic/broker-delete-topic-pubsub.js +7 -6
- package/dist/functions/event-topic/broker-delete-trigger-resource-cloud-run-invoker-role.call.d.ts +1 -2
- package/dist/functions/event-topic/broker-delete-trigger-resource-cloud-run-invoker-role.call.js +3 -3
- package/dist/functions/event-topic/broker-delete-trigger-resource-cloud-run-invoker-role.d.ts +2 -3
- package/dist/functions/event-topic/broker-delete-trigger-resource-cloud-run-invoker-role.js +7 -6
- package/dist/functions/event-topic/broker-delete-trigger-resource-pubsub-subscription.call.d.ts +1 -2
- package/dist/functions/event-topic/broker-delete-trigger-resource-pubsub-subscription.call.js +7 -4
- package/dist/functions/event-topic/broker-delete-trigger-resource-pubsub-subscription.d.ts +2 -3
- package/dist/functions/event-topic/broker-delete-trigger-resource-pubsub-subscription.js +7 -6
- package/dist/functions/event-topic/broker-delete-trigger-resource-service-account.call.d.ts +1 -2
- package/dist/functions/event-topic/broker-delete-trigger-resource-service-account.call.js +4 -4
- package/dist/functions/event-topic/broker-delete-trigger-resource-service-account.d.ts +2 -3
- package/dist/functions/event-topic/broker-delete-trigger-resource-service-account.js +7 -6
- package/dist/functions/event-topic/broker-get-topic-id-pubsub.d.ts +2 -3
- package/dist/functions/event-topic/broker-get-topic-id-pubsub.js +6 -6
- package/dist/functions/event-topic/broker-publish-events-google.call.d.ts +1 -2
- package/dist/functions/event-topic/broker-publish-events-google.call.js +6 -7
- package/dist/functions/event-topic/broker-publish-events-google.d.ts +2 -3
- package/dist/functions/event-topic/broker-publish-events-google.js +7 -6
- package/dist/functions/event-topic/create-backfill-source-bigquery.call.d.ts +1 -2
- package/dist/functions/event-topic/create-backfill-source-bigquery.call.js +4 -4
- package/dist/functions/event-topic/create-backfill-source-bigquery.d.ts +2 -3
- package/dist/functions/event-topic/create-backfill-source-bigquery.js +5 -5
- package/dist/functions/event-topic/query-events-bigquery.call.d.ts +1 -2
- package/dist/functions/event-topic/query-events-bigquery.call.js +4 -4
- package/dist/functions/event-topic/query-events-bigquery.d.ts +2 -3
- package/dist/functions/event-topic/query-events-bigquery.js +5 -5
- package/dist/functions/google-app-check/generate-token.call.d.ts +1 -2
- package/dist/functions/google-app-check/generate-token.call.js +3 -3
- package/dist/functions/google-app-check/generate-token.d.ts +2 -2
- package/dist/functions/google-app-check/generate-token.js +3 -3
- package/dist/functions/google-firebase-storage/merge-rules.d.ts +2 -2
- package/dist/functions/google-firebase-storage/merge-rules.js +4 -4
- package/dist/functions/google-firestore/extract-database.d.ts +11 -0
- package/dist/functions/google-firestore/extract-database.js +44 -0
- package/dist/functions/google-firestore/generate-typescript-decorators.d.ts +13 -0
- package/dist/functions/google-firestore/generate-typescript-decorators.js +78 -0
- package/dist/functions/google-firestore/index.d.ts +2 -0
- package/dist/functions/google-firestore/index.js +2 -0
- package/dist/functions/google-firestore/merge-rules.d.ts +2 -2
- package/dist/functions/google-firestore/merge-rules.js +4 -4
- package/dist/functions/google-firestore/query-records.call.d.ts +1 -2
- package/dist/functions/google-firestore/query-records.call.js +3 -3
- package/dist/functions/google-firestore/query-records.d.ts +1 -2
- package/dist/functions/google-firestore/query-records.js +3 -3
- package/dist/functions/google-identity-platform/generate-custom-token.call.d.ts +1 -2
- package/dist/functions/google-identity-platform/generate-custom-token.call.js +2 -2
- package/dist/functions/google-identity-platform/generate-custom-token.d.ts +2 -2
- package/dist/functions/google-identity-platform/generate-custom-token.js +3 -3
- package/dist/functions/google-identity-platform/generate-token.call.d.ts +1 -2
- package/dist/functions/google-identity-platform/generate-token.call.js +4 -4
- package/dist/functions/google-identity-platform/generate-token.d.ts +2 -2
- package/dist/functions/google-identity-platform/generate-token.js +3 -3
- package/dist/functions/google-pubsub/write-topics.d.ts +2 -3
- package/dist/functions/google-pubsub/write-topics.js +11 -12
- package/dist/functions/google-services/enable.call.d.ts +1 -2
- package/dist/functions/google-services/enable.call.js +3 -3
- package/dist/functions/google-services/enable.d.ts +2 -2
- package/dist/functions/google-services/enable.js +3 -3
- package/dist/functions/google-spanner/extract-database.d.ts +11 -0
- package/dist/functions/google-spanner/extract-database.js +25 -0
- package/dist/functions/google-spanner/generate-typescript-decorators.d.ts +14 -0
- package/dist/functions/google-spanner/generate-typescript-decorators.js +120 -0
- package/dist/functions/google-spanner/index.d.ts +2 -0
- package/dist/functions/google-spanner/index.js +2 -0
- package/dist/functions/google-spanner/list-databases.d.ts +2 -2
- package/dist/functions/google-spanner/list-databases.js +7 -7
- package/dist/functions/google-spanner/query-records.call.d.ts +1 -2
- package/dist/functions/google-spanner/query-records.call.js +4 -4
- package/dist/functions/google-spanner/query-records.d.ts +1 -2
- package/dist/functions/google-spanner/query-records.js +3 -3
- package/dist/functions/google-spanner/write-databases.d.ts +2 -3
- package/dist/functions/google-spanner/write-databases.js +11 -12
- package/dist/functions/index.js +3 -4
- package/dist/functions/project/get-artefact-destination-cloud-functions.d.ts +2 -3
- package/dist/functions/project/get-artefact-destination-cloud-functions.js +5 -6
- package/dist/functions/project/get-artefact-destination-cloud-run.d.ts +2 -3
- package/dist/functions/project/get-artefact-destination-cloud-run.js +5 -6
- package/dist/functions/project/push-artefact-cloud-functions.call.d.ts +1 -2
- package/dist/functions/project/push-artefact-cloud-functions.call.js +5 -5
- package/dist/functions/project/push-artefact-cloud-functions.d.ts +2 -3
- package/dist/functions/project/push-artefact-cloud-functions.js +5 -5
- package/dist/functions/secret/fetch-access-token.call.d.ts +1 -2
- package/dist/functions/secret/fetch-access-token.call.js +4 -2
- package/dist/functions/secret/fetch-access-token.d.ts +2 -2
- package/dist/functions/secret/fetch-access-token.js +3 -3
- package/dist/functions/secret/fetch-secret-manager.call.d.ts +1 -2
- package/dist/functions/secret/fetch-secret-manager.call.js +3 -3
- package/dist/functions/secret/fetch-secret-manager.d.ts +2 -2
- package/dist/functions/secret/fetch-secret-manager.js +3 -3
- package/dist/functions/service-container/query-logs-cloud-run.call.d.ts +1 -2
- package/dist/functions/service-container/query-logs-cloud-run.call.js +3 -3
- package/dist/functions/service-container/query-logs-cloud-run.d.ts +2 -3
- package/dist/functions/service-container/query-logs-cloud-run.js +5 -5
- package/package.json +16 -16
- package/dist/code-generation/google-firestore-renderer.d.ts +0 -12
- package/dist/code-generation/google-firestore-renderer.js +0 -89
- package/dist/code-generation/google-spanner-renderer.d.ts +0 -11
- package/dist/code-generation/google-spanner-renderer.js +0 -100
- package/dist/code-generation/index.d.ts +0 -2
- package/dist/code-generation/index.js +0 -2
- package/dist/code-generation/utils.d.ts +0 -12
- package/dist/code-generation/utils.js +0 -21
- package/dist/functions/typescript/get-decorator-renderer-google-firestore.d.ts +0 -9
- package/dist/functions/typescript/get-decorator-renderer-google-firestore.js +0 -15
- package/dist/functions/typescript/get-decorator-renderer-google-spanner.d.ts +0 -9
- package/dist/functions/typescript/get-decorator-renderer-google-spanner.js +0 -15
- package/dist/functions/typescript/index.d.ts +0 -2
- package/dist/functions/typescript/index.js +0 -2
|
@@ -111,9 +111,7 @@ properties:
|
|
|
111
111
|
properties:
|
|
112
112
|
project:
|
|
113
113
|
type: string
|
|
114
|
-
description:
|
|
115
|
-
The ID of the default GCP project referenced when fetching
|
|
116
|
-
secrets.
|
|
114
|
+
description: The ID of the default GCP project referenced when fetching secrets.
|
|
117
115
|
firebaseStorage:
|
|
118
116
|
title: GoogleFirebaseStorage
|
|
119
117
|
type: object
|
|
@@ -131,19 +129,16 @@ properties:
|
|
|
131
129
|
type: array
|
|
132
130
|
items:
|
|
133
131
|
type: string
|
|
134
|
-
description:
|
|
135
|
-
A list of glob patterns to find files in the workspace defining
|
|
132
|
+
description: A list of glob patterns to find files in the workspace defining
|
|
136
133
|
Firebase Storage security rules.
|
|
137
134
|
securityRuleFile:
|
|
138
135
|
type: string
|
|
139
|
-
description:
|
|
140
|
-
The file path, relative to the workspace root, where the merged
|
|
136
|
+
description: The file path, relative to the workspace root, where the merged
|
|
141
137
|
security rules file is written.
|
|
142
138
|
identityPlatform:
|
|
143
139
|
title: GoogleIdentityPlatform
|
|
144
140
|
type: object
|
|
145
|
-
description:
|
|
146
|
-
Configuration for the Identity Platform (formerly Firebase Auth)
|
|
141
|
+
description: Configuration for the Identity Platform (formerly Firebase Auth)
|
|
147
142
|
service.
|
|
148
143
|
properties:
|
|
149
144
|
emulator:
|
|
@@ -171,13 +166,11 @@ properties:
|
|
|
171
166
|
type: array
|
|
172
167
|
items:
|
|
173
168
|
type: string
|
|
174
|
-
description:
|
|
175
|
-
A list of glob patterns to find files in the workspace defining
|
|
169
|
+
description: A list of glob patterns to find files in the workspace defining
|
|
176
170
|
Firestore security rules.
|
|
177
171
|
securityRuleFile:
|
|
178
172
|
type: string
|
|
179
|
-
description:
|
|
180
|
-
The file path, relative to the workspace root, where the merged
|
|
173
|
+
description: The file path, relative to the workspace root, where the merged
|
|
181
174
|
security rules file is written.
|
|
182
175
|
pubSub:
|
|
183
176
|
title: GooglePubSub
|
|
@@ -194,18 +187,15 @@ properties:
|
|
|
194
187
|
description: The name of the local Docker container running the emulator.
|
|
195
188
|
topicConfigurationsDirectory:
|
|
196
189
|
type: string
|
|
197
|
-
description:
|
|
198
|
-
The directory where the topic configuration files are written by
|
|
190
|
+
description: The directory where the topic configuration files are written by
|
|
199
191
|
the `GooglePubSubWriteTopics` processor.
|
|
200
192
|
minimumBackoff:
|
|
201
193
|
type: string
|
|
202
|
-
description:
|
|
203
|
-
The default minimum backoff for Pub/Sub push subscription retry
|
|
194
|
+
description: The default minimum backoff for Pub/Sub push subscription retry
|
|
204
195
|
policy.
|
|
205
196
|
maximumBackoff:
|
|
206
197
|
type: string
|
|
207
|
-
description:
|
|
208
|
-
The default maximum backoff for Pub/Sub push subscription retry
|
|
198
|
+
description: The default maximum backoff for Pub/Sub push subscription retry
|
|
209
199
|
policy.
|
|
210
200
|
bigQueryStorage:
|
|
211
201
|
title: GooglePubSubBigQueryStorage
|
|
@@ -214,9 +204,8 @@ properties:
|
|
|
214
204
|
properties:
|
|
215
205
|
rawEventsDatasetId:
|
|
216
206
|
type: string
|
|
217
|
-
description:
|
|
218
|
-
|
|
219
|
-
be stored.
|
|
207
|
+
description: The ID of the BigQuery dataset where raw Pub/Sub events should be
|
|
208
|
+
stored.
|
|
220
209
|
location:
|
|
221
210
|
type: string
|
|
222
211
|
description: >-
|
|
@@ -242,9 +231,8 @@ properties:
|
|
|
242
231
|
description: The version of the Spanner emulator Docker image to use.
|
|
243
232
|
instanceName:
|
|
244
233
|
type: string
|
|
245
|
-
description:
|
|
246
|
-
|
|
247
|
-
created in the emulator.
|
|
234
|
+
description: The name of the Spanner instance that will automatically be created
|
|
235
|
+
in the emulator.
|
|
248
236
|
instance:
|
|
249
237
|
title: GoogleSpannerInstance
|
|
250
238
|
type: object
|
|
@@ -281,46 +269,38 @@ properties:
|
|
|
281
269
|
description: The minimum number of processing units for autoscaling.
|
|
282
270
|
highPriorityCpuUtilizationTarget:
|
|
283
271
|
type: number
|
|
284
|
-
description:
|
|
285
|
-
The target high-priority CPU utilization percentage for
|
|
272
|
+
description: The target high-priority CPU utilization percentage for
|
|
286
273
|
autoscaling.
|
|
287
274
|
storageUtilizationTarget:
|
|
288
275
|
type: number
|
|
289
276
|
description: The target storage utilization percentage for autoscaling.
|
|
290
277
|
edition:
|
|
291
278
|
type: string
|
|
292
|
-
description:
|
|
293
|
-
The edition of the Spanner instance (e.g. STANDARD,
|
|
294
|
-
ENTERPRISE).
|
|
279
|
+
description: The edition of the Spanner instance (e.g. STANDARD, ENTERPRISE).
|
|
295
280
|
ddls:
|
|
296
281
|
title: GoogleSpannerDdls
|
|
297
282
|
type: object
|
|
298
|
-
description:
|
|
299
|
-
Defines how DDLs are found for the Spanner databases in the
|
|
283
|
+
description: Defines how DDLs are found for the Spanner databases in the
|
|
300
284
|
workspace.
|
|
301
285
|
properties:
|
|
302
286
|
format:
|
|
303
287
|
type: string
|
|
304
|
-
description:
|
|
305
|
-
|
|
306
|
-
used to make the database names.
|
|
288
|
+
description: The format string using groups from the regular expression used to
|
|
289
|
+
make the database names.
|
|
307
290
|
globs:
|
|
308
291
|
type: array
|
|
309
292
|
items:
|
|
310
293
|
type: string
|
|
311
|
-
description:
|
|
312
|
-
A list of glob patterns used to find SQL files containing DDL
|
|
294
|
+
description: A list of glob patterns used to find SQL files containing DDL
|
|
313
295
|
statements for the Spanner databases.
|
|
314
296
|
regularExpression:
|
|
315
297
|
type: string
|
|
316
|
-
description:
|
|
317
|
-
|
|
318
|
-
file paths.
|
|
298
|
+
description: The regular expression used to extract groups from the SQL file
|
|
299
|
+
paths.
|
|
319
300
|
databaseConfigurationsDirectory:
|
|
320
301
|
type: string
|
|
321
|
-
description:
|
|
322
|
-
|
|
323
|
-
by the `GoogleSpannerWriteDatabases` processor.
|
|
302
|
+
description: The directory where the database configuration files are written by
|
|
303
|
+
the `GoogleSpannerWriteDatabases` processor.
|
|
324
304
|
versionRetentionPeriod:
|
|
325
305
|
type: string
|
|
326
306
|
description: The default version retention period for Spanner databases.
|
|
@@ -335,8 +315,7 @@ properties:
|
|
|
335
315
|
artefactStorage:
|
|
336
316
|
title: GoogleCloudFunctionsArtefactStorage
|
|
337
317
|
type: object
|
|
338
|
-
description:
|
|
339
|
-
The Cloud Storage configuration where Cloud Functions archives
|
|
318
|
+
description: The Cloud Storage configuration where Cloud Functions archives
|
|
340
319
|
should be uploaded.
|
|
341
320
|
properties:
|
|
342
321
|
bucket:
|
|
@@ -352,8 +331,7 @@ properties:
|
|
|
352
331
|
properties:
|
|
353
332
|
dockerRepository:
|
|
354
333
|
type: string
|
|
355
|
-
description:
|
|
356
|
-
The Docker repository where Cloud Run containers should be
|
|
334
|
+
description: The Docker repository where Cloud Run containers should be
|
|
357
335
|
uploaded.
|
|
358
336
|
location:
|
|
359
337
|
type: string
|
|
@@ -376,19 +354,17 @@ properties:
|
|
|
376
354
|
|
|
377
355
|
`projects/my-project/secrets/my-secret/versions/1`).
|
|
378
356
|
additionalProperties:
|
|
379
|
-
$ref:
|
|
357
|
+
$ref: "#/$defs/_TemplateString"
|
|
380
358
|
cpuAlwaysAllocated:
|
|
381
359
|
type: boolean
|
|
382
|
-
description:
|
|
383
|
-
Whether the container is running between requests and can perform
|
|
360
|
+
description: Whether the container is running between requests and can perform
|
|
384
361
|
background operations.
|
|
385
362
|
startupCpuBoost:
|
|
386
363
|
type: boolean
|
|
387
364
|
description: Whether to enable CPU boost during instance startup.
|
|
388
365
|
timeout:
|
|
389
366
|
type: number
|
|
390
|
-
description:
|
|
391
|
-
The max duration the instance is allowed for responding to a
|
|
367
|
+
description: The max duration the instance is allowed for responding to a
|
|
392
368
|
request, in seconds.
|
|
393
369
|
requestConcurrency:
|
|
394
370
|
type: number
|
|
@@ -407,8 +383,7 @@ properties:
|
|
|
407
383
|
for more details.
|
|
408
384
|
vpcAccessConnector:
|
|
409
385
|
type: string
|
|
410
|
-
description:
|
|
411
|
-
The name of the VPC access connector through which egress traffic
|
|
386
|
+
description: The name of the VPC access connector through which egress traffic
|
|
412
387
|
should be routed.
|
|
413
388
|
vpcAccessConnectorEgressSettings:
|
|
414
389
|
title: GoogleCloudRunVpcAccessConnectorEgressSettings
|
|
@@ -416,13 +391,9 @@ properties:
|
|
|
416
391
|
enum:
|
|
417
392
|
- ALL_TRAFFIC
|
|
418
393
|
- PRIVATE_RANGES_ONLY
|
|
419
|
-
description:
|
|
420
|
-
The setting for egress traffic that goes through the VPC access
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
See
|
|
424
|
-
https://cloud.google.com/run/docs/configuring/connecting-vpc#manage
|
|
425
|
-
for more details.
|
|
394
|
+
description: |-
|
|
395
|
+
The setting for egress traffic that goes through the VPC access connector.
|
|
396
|
+
See https://cloud.google.com/run/docs/configuring/connecting-vpc#manage for more details.
|
|
426
397
|
scheduler:
|
|
427
398
|
title: GoogleScheduler
|
|
428
399
|
type: object
|
|
@@ -433,24 +404,20 @@ properties:
|
|
|
433
404
|
description: The default number of retry attempts for Cloud Scheduler jobs.
|
|
434
405
|
maxRetryDuration:
|
|
435
406
|
type: string
|
|
436
|
-
description:
|
|
437
|
-
The default maximum duration for retrying a failed Cloud Scheduler
|
|
407
|
+
description: The default maximum duration for retrying a failed Cloud Scheduler
|
|
438
408
|
job.
|
|
439
409
|
minBackoffDuration:
|
|
440
410
|
type: string
|
|
441
|
-
description:
|
|
442
|
-
The default minimum backoff duration for Cloud Scheduler job
|
|
411
|
+
description: The default minimum backoff duration for Cloud Scheduler job
|
|
443
412
|
retries.
|
|
444
413
|
maxBackoffDuration:
|
|
445
414
|
type: string
|
|
446
|
-
description:
|
|
447
|
-
The default maximum backoff duration for Cloud Scheduler job
|
|
415
|
+
description: The default maximum backoff duration for Cloud Scheduler job
|
|
448
416
|
retries.
|
|
449
417
|
maxDoublings:
|
|
450
418
|
type: number
|
|
451
|
-
description:
|
|
452
|
-
|
|
453
|
-
doubled for Cloud Scheduler job retries.
|
|
419
|
+
description: The default maximum number of times the backoff duration is doubled
|
|
420
|
+
for Cloud Scheduler job retries.
|
|
454
421
|
attemptDeadline:
|
|
455
422
|
type: string
|
|
456
423
|
description: The default deadline for Cloud Scheduler job attempts.
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
title: GoogleInfrastructureConfiguration
|
|
2
2
|
type: object
|
|
3
|
-
description:
|
|
4
|
-
|
|
5
|
-
processors.
|
|
3
|
+
description: Google-specific refinement of the infrastructure configuration with
|
|
4
|
+
known processors.
|
|
6
5
|
properties:
|
|
7
6
|
infrastructure:
|
|
8
7
|
type: object
|
|
@@ -19,8 +18,7 @@ properties:
|
|
|
19
18
|
- name
|
|
20
19
|
- title: GoogleServicesEnableProcessor
|
|
21
20
|
type: object
|
|
22
|
-
description:
|
|
23
|
-
Enables GCP services defined in the `google.services`
|
|
21
|
+
description: Enables GCP services defined in the `google.services`
|
|
24
22
|
configuration.
|
|
25
23
|
properties:
|
|
26
24
|
name:
|
|
@@ -46,14 +46,10 @@ properties:
|
|
|
46
46
|
properties:
|
|
47
47
|
minimumBackoff:
|
|
48
48
|
type: string
|
|
49
|
-
description:
|
|
50
|
-
The minimum backoff for the Pub/Sub push subscription
|
|
51
|
-
retry policy.
|
|
49
|
+
description: The minimum backoff for the Pub/Sub push subscription retry policy.
|
|
52
50
|
maximumBackoff:
|
|
53
51
|
type: string
|
|
54
|
-
description:
|
|
55
|
-
The maximum backoff for the Pub/Sub push subscription
|
|
56
|
-
retry policy.
|
|
52
|
+
description: The maximum backoff for the Pub/Sub push subscription retry policy.
|
|
57
53
|
filter:
|
|
58
54
|
type: string
|
|
59
55
|
description: A Pub/Sub filter expression for the subscription.
|
|
@@ -84,9 +80,7 @@ properties:
|
|
|
84
80
|
properties:
|
|
85
81
|
retryCount:
|
|
86
82
|
type: number
|
|
87
|
-
description:
|
|
88
|
-
The number of retry attempts for the Cloud Scheduler
|
|
89
|
-
job.
|
|
83
|
+
description: The number of retry attempts for the Cloud Scheduler job.
|
|
90
84
|
maxRetryDuration:
|
|
91
85
|
type: string
|
|
92
86
|
description: The maximum duration for retrying a failed job.
|
|
@@ -98,9 +92,7 @@ properties:
|
|
|
98
92
|
description: The maximum backoff duration for job retries.
|
|
99
93
|
maxDoublings:
|
|
100
94
|
type: number
|
|
101
|
-
description:
|
|
102
|
-
The maximum number of times the backoff duration is
|
|
103
|
-
doubled.
|
|
95
|
+
description: The maximum number of times the backoff duration is doubled.
|
|
104
96
|
attemptDeadline:
|
|
105
97
|
type: string
|
|
106
98
|
description: The deadline for job attempts.
|
|
@@ -140,9 +132,7 @@ properties:
|
|
|
140
132
|
description: The maximum backoff duration for task retries.
|
|
141
133
|
maxDoublings:
|
|
142
134
|
type: number
|
|
143
|
-
description:
|
|
144
|
-
The maximum number of times the backoff duration is
|
|
145
|
-
doubled.
|
|
135
|
+
description: The maximum number of times the backoff duration is doubled.
|
|
146
136
|
required:
|
|
147
137
|
- type
|
|
148
138
|
- queue
|
|
@@ -166,7 +156,7 @@ properties:
|
|
|
166
156
|
description: The content type of event data.
|
|
167
157
|
location:
|
|
168
158
|
oneOf:
|
|
169
|
-
- $ref:
|
|
159
|
+
- $ref: "#/$defs/_TemplateString"
|
|
170
160
|
description: The location of the Eventarc trigger.
|
|
171
161
|
filters:
|
|
172
162
|
type: array
|
|
@@ -179,7 +169,7 @@ properties:
|
|
|
179
169
|
description: The event attribute to filter on.
|
|
180
170
|
value:
|
|
181
171
|
oneOf:
|
|
182
|
-
- $ref:
|
|
172
|
+
- $ref: "#/$defs/_TemplateString"
|
|
183
173
|
description: The value to match for the attribute.
|
|
184
174
|
operator:
|
|
185
175
|
type: string
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { WorkspaceContext } from '@causa/workspace';
|
|
2
1
|
import { EmulatorStart, type EmulatorStartResult } from '@causa/workspace-core';
|
|
3
2
|
/**
|
|
4
3
|
* Implements {@link EmulatorStart} for the Firebase Storage container.
|
|
@@ -6,12 +5,10 @@ import { EmulatorStart, type EmulatorStartResult } from '@causa/workspace-core';
|
|
|
6
5
|
* emulator.
|
|
7
6
|
*/
|
|
8
7
|
export declare class EmulatorStartForFirebaseStorage extends EmulatorStart {
|
|
9
|
-
_call(
|
|
8
|
+
_call(): Promise<EmulatorStartResult>;
|
|
10
9
|
_supports(): boolean;
|
|
11
10
|
/**
|
|
12
11
|
* Merges the Firebase Storage security rules into a single file, and starts the Firebase Storage emulator using them.
|
|
13
|
-
*
|
|
14
|
-
* @param context The {@link WorkspaceContext}.
|
|
15
12
|
*/
|
|
16
13
|
private startFirebaseStorage;
|
|
17
14
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { WorkspaceContext } from '@causa/workspace';
|
|
2
1
|
import { EmulatorStart } from '@causa/workspace-core';
|
|
3
2
|
import { fileURLToPath } from 'url';
|
|
4
3
|
import { FIREBASE_CONTAINER_STORAGE_RULES_FILE, FIREBASE_STORAGE_EMULATOR_NAME, FIREBASE_STORAGE_PORT, getFirebaseStorageContainerName, } from '../../emulators/index.js';
|
|
@@ -14,8 +13,8 @@ const FIREBASE_CONF_FILE = fileURLToPath(new URL('../../assets/firebase-storage.
|
|
|
14
13
|
* emulator.
|
|
15
14
|
*/
|
|
16
15
|
export class EmulatorStartForFirebaseStorage extends EmulatorStart {
|
|
17
|
-
async _call(
|
|
18
|
-
const configuration = await this.startFirebaseStorage(
|
|
16
|
+
async _call() {
|
|
17
|
+
const configuration = await this.startFirebaseStorage();
|
|
19
18
|
return { name: FIREBASE_STORAGE_EMULATOR_NAME, configuration };
|
|
20
19
|
}
|
|
21
20
|
_supports() {
|
|
@@ -23,17 +22,15 @@ export class EmulatorStartForFirebaseStorage extends EmulatorStart {
|
|
|
23
22
|
}
|
|
24
23
|
/**
|
|
25
24
|
* Merges the Firebase Storage security rules into a single file, and starts the Firebase Storage emulator using them.
|
|
26
|
-
*
|
|
27
|
-
* @param context The {@link WorkspaceContext}.
|
|
28
25
|
*/
|
|
29
|
-
async startFirebaseStorage(
|
|
26
|
+
async startFirebaseStorage() {
|
|
30
27
|
if (this.dryRun) {
|
|
31
28
|
return {};
|
|
32
29
|
}
|
|
33
|
-
const { securityRuleFile } = await
|
|
34
|
-
|
|
35
|
-
const containerName = getFirebaseStorageContainerName(
|
|
36
|
-
const firebaseEmulatorService =
|
|
30
|
+
const { securityRuleFile } = await this._context.call(GoogleFirebaseStorageMergeRules, {});
|
|
31
|
+
this._context.logger.info('️🍱 Starting Firebase Storage emulator.');
|
|
32
|
+
const containerName = getFirebaseStorageContainerName(this._context);
|
|
33
|
+
const firebaseEmulatorService = this._context.service(FirebaseEmulatorService);
|
|
37
34
|
await firebaseEmulatorService.start(containerName, FIREBASE_CONF_FILE, [
|
|
38
35
|
{
|
|
39
36
|
host: '127.0.0.1',
|
|
@@ -52,7 +49,7 @@ export class EmulatorStartForFirebaseStorage extends EmulatorStart {
|
|
|
52
49
|
// The Firebase Storage emulator returns "not implemented" when a request to the root is made.
|
|
53
50
|
expectedStatus: 501,
|
|
54
51
|
});
|
|
55
|
-
|
|
52
|
+
this._context.logger.info('️🍱 Successfully initialized Firebase Storage emulator.');
|
|
56
53
|
return {
|
|
57
54
|
FIREBASE_STORAGE_EMULATOR_HOST: `127.0.0.1:${FIREBASE_STORAGE_PORT}`,
|
|
58
55
|
GOOGLE_CLOUD_PROJECT: firebaseEmulatorService.localGcpProject,
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { WorkspaceContext } from '@causa/workspace';
|
|
2
1
|
import { EmulatorStart, type EmulatorStartResult } from '@causa/workspace-core';
|
|
3
2
|
/**
|
|
4
3
|
* Implements {@link EmulatorStart} for the Firestore emulator.
|
|
5
4
|
* This first merges the Firestore security rules into a single file, and uses this file to configure the emulator.
|
|
6
5
|
*/
|
|
7
6
|
export declare class EmulatorStartForFirestore extends EmulatorStart {
|
|
8
|
-
_call(
|
|
7
|
+
_call(): Promise<EmulatorStartResult>;
|
|
9
8
|
_supports(): boolean;
|
|
10
9
|
/**
|
|
11
10
|
* Merges the Firestore security rules into a single file, and starts the Firestore emulator using them.
|
|
12
11
|
*
|
|
13
|
-
* @param context The {@link WorkspaceContext}.
|
|
14
12
|
* @returns The configuration for the Firestore emulator.
|
|
15
13
|
*/
|
|
16
14
|
private startFirestore;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { WorkspaceContext } from '@causa/workspace';
|
|
2
1
|
import { EmulatorStart } from '@causa/workspace-core';
|
|
3
2
|
import { FIRESTORE_CONTAINER_RULES_FILE, FIRESTORE_EMULATOR_NAME, FIRESTORE_PORT, getFirestoreContainerName, } from '../../emulators/index.js';
|
|
4
3
|
import { GcloudEmulatorService } from '../../services/gcloud-emulator.js';
|
|
@@ -8,8 +7,8 @@ import { GoogleFirestoreMergeRules } from '../google-firestore/index.js';
|
|
|
8
7
|
* This first merges the Firestore security rules into a single file, and uses this file to configure the emulator.
|
|
9
8
|
*/
|
|
10
9
|
export class EmulatorStartForFirestore extends EmulatorStart {
|
|
11
|
-
async _call(
|
|
12
|
-
const configuration = await this.startFirestore(
|
|
10
|
+
async _call() {
|
|
11
|
+
const configuration = await this.startFirestore();
|
|
13
12
|
return { name: FIRESTORE_EMULATOR_NAME, configuration };
|
|
14
13
|
}
|
|
15
14
|
_supports() {
|
|
@@ -18,17 +17,16 @@ export class EmulatorStartForFirestore extends EmulatorStart {
|
|
|
18
17
|
/**
|
|
19
18
|
* Merges the Firestore security rules into a single file, and starts the Firestore emulator using them.
|
|
20
19
|
*
|
|
21
|
-
* @param context The {@link WorkspaceContext}.
|
|
22
20
|
* @returns The configuration for the Firestore emulator.
|
|
23
21
|
*/
|
|
24
|
-
async startFirestore(
|
|
22
|
+
async startFirestore() {
|
|
25
23
|
if (this.dryRun) {
|
|
26
24
|
return {};
|
|
27
25
|
}
|
|
28
|
-
const { securityRuleFile } = await
|
|
29
|
-
|
|
30
|
-
const containerName = getFirestoreContainerName(
|
|
31
|
-
const gcloudEmulatorService =
|
|
26
|
+
const { securityRuleFile } = await this._context.call(GoogleFirestoreMergeRules, {});
|
|
27
|
+
this._context.logger.info('🗃️ Starting Firestore emulator.');
|
|
28
|
+
const containerName = getFirestoreContainerName(this._context);
|
|
29
|
+
const gcloudEmulatorService = this._context.service(GcloudEmulatorService);
|
|
32
30
|
await gcloudEmulatorService.start('firestore', containerName, [
|
|
33
31
|
{
|
|
34
32
|
host: '127.0.0.1',
|
|
@@ -47,7 +45,7 @@ export class EmulatorStartForFirestore extends EmulatorStart {
|
|
|
47
45
|
additionalArguments: ['--rules', FIRESTORE_CONTAINER_RULES_FILE],
|
|
48
46
|
availabilityEndpoint: `http://127.0.0.1:${FIRESTORE_PORT}/`,
|
|
49
47
|
});
|
|
50
|
-
|
|
48
|
+
this._context.logger.info('🗃️ Successfully initialized Firestore emulator.');
|
|
51
49
|
return {
|
|
52
50
|
FIRESTORE_EMULATOR_HOST: `127.0.0.1:${FIRESTORE_PORT}`,
|
|
53
51
|
GOOGLE_CLOUD_PROJECT: gcloudEmulatorService.localGcpProject,
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { WorkspaceContext } from '@causa/workspace';
|
|
2
1
|
import { EmulatorStart, type EmulatorStartResult } from '@causa/workspace-core';
|
|
3
2
|
/**
|
|
4
3
|
* Implements {@link EmulatorStart} for the Identity Platform emulator.
|
|
5
4
|
* This actually runs the "legacy" Firebase Auth emulator, which is the same service before it was re-branded.
|
|
6
5
|
*/
|
|
7
6
|
export declare class EmulatorStartForIdentityPlatform extends EmulatorStart {
|
|
8
|
-
_call(
|
|
7
|
+
_call(): Promise<EmulatorStartResult>;
|
|
9
8
|
_supports(): boolean;
|
|
10
9
|
/**
|
|
11
10
|
* Starts the Identity Platform (Firebase Auth) emulator.
|
|
12
|
-
*
|
|
13
|
-
* @param context The {@link WorkspaceContext}.
|
|
14
11
|
*/
|
|
15
12
|
private startIdentityPlatform;
|
|
16
13
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { WorkspaceContext } from '@causa/workspace';
|
|
2
1
|
import { EmulatorStart } from '@causa/workspace-core';
|
|
3
2
|
import { fileURLToPath } from 'url';
|
|
4
3
|
import { FIREBASE_AUTH_PORT, IDENTITY_PLATFORM_EMULATOR_NAME, getIdentityPlatformContainerName, } from '../../emulators/index.js';
|
|
@@ -12,8 +11,8 @@ const FIREBASE_CONF_FILE = fileURLToPath(new URL('../../assets/firebase-auth.jso
|
|
|
12
11
|
* This actually runs the "legacy" Firebase Auth emulator, which is the same service before it was re-branded.
|
|
13
12
|
*/
|
|
14
13
|
export class EmulatorStartForIdentityPlatform extends EmulatorStart {
|
|
15
|
-
async _call(
|
|
16
|
-
const configuration = await this.startIdentityPlatform(
|
|
14
|
+
async _call() {
|
|
15
|
+
const configuration = await this.startIdentityPlatform();
|
|
17
16
|
return { name: IDENTITY_PLATFORM_EMULATOR_NAME, configuration };
|
|
18
17
|
}
|
|
19
18
|
_supports() {
|
|
@@ -21,16 +20,14 @@ export class EmulatorStartForIdentityPlatform extends EmulatorStart {
|
|
|
21
20
|
}
|
|
22
21
|
/**
|
|
23
22
|
* Starts the Identity Platform (Firebase Auth) emulator.
|
|
24
|
-
*
|
|
25
|
-
* @param context The {@link WorkspaceContext}.
|
|
26
23
|
*/
|
|
27
|
-
async startIdentityPlatform(
|
|
24
|
+
async startIdentityPlatform() {
|
|
28
25
|
if (this.dryRun) {
|
|
29
26
|
return {};
|
|
30
27
|
}
|
|
31
|
-
|
|
32
|
-
const containerName = getIdentityPlatformContainerName(
|
|
33
|
-
const firebaseEmulatorService =
|
|
28
|
+
this._context.logger.info('🛂 Starting the Identity Platform emulator.');
|
|
29
|
+
const containerName = getIdentityPlatformContainerName(this._context);
|
|
30
|
+
const firebaseEmulatorService = this._context.service(FirebaseEmulatorService);
|
|
34
31
|
await firebaseEmulatorService.start(containerName, FIREBASE_CONF_FILE, [
|
|
35
32
|
{
|
|
36
33
|
host: '127.0.0.1',
|
|
@@ -38,7 +35,7 @@ export class EmulatorStartForIdentityPlatform extends EmulatorStart {
|
|
|
38
35
|
container: FIREBASE_AUTH_PORT,
|
|
39
36
|
},
|
|
40
37
|
]);
|
|
41
|
-
|
|
38
|
+
this._context.logger.info('🛂 Successfully initialized the Identity Platform emulator.');
|
|
42
39
|
return {
|
|
43
40
|
FIREBASE_AUTH_EMULATOR_HOST: `127.0.0.1:${FIREBASE_AUTH_PORT}`,
|
|
44
41
|
GOOGLE_CLOUD_PROJECT: firebaseEmulatorService.localGcpProject,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { WorkspaceContext } from '@causa/workspace';
|
|
2
1
|
import { type EmulatorStartResult } from '@causa/workspace-core';
|
|
3
2
|
import type { EmulatorStartForPubSub } from './start-pubsub.js';
|
|
4
|
-
export default function call(this: EmulatorStartForPubSub
|
|
3
|
+
export default function call(this: EmulatorStartForPubSub): Promise<EmulatorStartResult>;
|
|
@@ -3,8 +3,8 @@ import { PubSub } from '@google-cloud/pubsub';
|
|
|
3
3
|
import { getLocalGcpProject } from '../../configurations/utils.js';
|
|
4
4
|
import { PUBSUB_EMULATOR_NAME, PUBSUB_PORT, formatPubSubTopicAsEnvironmentVariable, getPubSubContainerName, } from '../../emulators/index.js';
|
|
5
5
|
import { GcloudEmulatorService } from '../../services/gcloud-emulator.js';
|
|
6
|
-
export default async function call(
|
|
7
|
-
const configuration = await startPubSub(this,
|
|
6
|
+
export default async function call() {
|
|
7
|
+
const configuration = await startPubSub(this, this._context);
|
|
8
8
|
return { name: PUBSUB_EMULATOR_NAME, configuration };
|
|
9
9
|
}
|
|
10
10
|
async function startPubSub(self, context) {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { WorkspaceContext } from '@causa/workspace';
|
|
2
1
|
import { EmulatorStart, type EmulatorStartResult } from '@causa/workspace-core';
|
|
3
2
|
/**
|
|
4
3
|
* Implements {@link EmulatorStart} for the Pub/Sub emulator.
|
|
@@ -6,6 +5,6 @@ import { EmulatorStart, type EmulatorStartResult } from '@causa/workspace-core';
|
|
|
6
5
|
* configured with Pub/Sub as its event broker).
|
|
7
6
|
*/
|
|
8
7
|
export declare class EmulatorStartForPubSub extends EmulatorStart {
|
|
9
|
-
_call(
|
|
8
|
+
_call(): Promise<EmulatorStartResult>;
|
|
10
9
|
_supports(): boolean;
|
|
11
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { callDeferred
|
|
1
|
+
import { callDeferred } from '@causa/workspace';
|
|
2
2
|
import { EmulatorStart } from '@causa/workspace-core';
|
|
3
3
|
import { PUBSUB_EMULATOR_NAME } from '../../emulators/index.js';
|
|
4
4
|
/**
|
|
@@ -7,8 +7,8 @@ import { PUBSUB_EMULATOR_NAME } from '../../emulators/index.js';
|
|
|
7
7
|
* configured with Pub/Sub as its event broker).
|
|
8
8
|
*/
|
|
9
9
|
export class EmulatorStartForPubSub extends EmulatorStart {
|
|
10
|
-
async _call(
|
|
11
|
-
return await callDeferred(this,
|
|
10
|
+
async _call() {
|
|
11
|
+
return await callDeferred(this, import.meta.url);
|
|
12
12
|
}
|
|
13
13
|
_supports() {
|
|
14
14
|
return this.name === undefined || this.name === PUBSUB_EMULATOR_NAME;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { WorkspaceContext } from '@causa/workspace';
|
|
2
1
|
import type { EmulatorStartResult } from '@causa/workspace-core';
|
|
3
2
|
import type { EmulatorStartForSpanner } from './start-spanner.js';
|
|
4
|
-
export default function call(this: EmulatorStartForSpanner
|
|
3
|
+
export default function call(this: EmulatorStartForSpanner): Promise<EmulatorStartResult>;
|
|
@@ -7,8 +7,8 @@ import { grpc } from 'google-gax';
|
|
|
7
7
|
import { getLocalGcpProject, } from '../../configurations/index.js';
|
|
8
8
|
import { SPANNER_EMULATOR_NAME, SPANNER_GRPC_PORT, SPANNER_HTTP_PORT, SPANNER_IMAGE, getSpannerContainerName, } from '../../emulators/index.js';
|
|
9
9
|
import { GoogleSpannerListDatabases } from '../google-spanner/index.js';
|
|
10
|
-
export default async function call(
|
|
11
|
-
const configuration = await startSpanner(this,
|
|
10
|
+
export default async function call() {
|
|
11
|
+
const configuration = await startSpanner(this, this._context);
|
|
12
12
|
return { name: SPANNER_EMULATOR_NAME, configuration };
|
|
13
13
|
}
|
|
14
14
|
async function startSpanner(self, context) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { WorkspaceContext } from '@causa/workspace';
|
|
2
1
|
import { EmulatorStart, type EmulatorStartResult } from '@causa/workspace-core';
|
|
3
2
|
/**
|
|
4
3
|
* Implements {@link EmulatorStart} for the Spanner emulator.
|
|
5
4
|
* This starts the emulator, creates a local instance, and creates the databases using the DDLs found in the workspace.
|
|
6
5
|
*/
|
|
7
6
|
export declare class EmulatorStartForSpanner extends EmulatorStart {
|
|
8
|
-
_call(
|
|
7
|
+
_call(): Promise<EmulatorStartResult>;
|
|
9
8
|
_supports(): boolean;
|
|
10
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { callDeferred
|
|
1
|
+
import { callDeferred } from '@causa/workspace';
|
|
2
2
|
import { EmulatorStart } from '@causa/workspace-core';
|
|
3
3
|
import { SPANNER_EMULATOR_NAME } from '../../emulators/index.js';
|
|
4
4
|
/**
|
|
@@ -6,8 +6,8 @@ import { SPANNER_EMULATOR_NAME } from '../../emulators/index.js';
|
|
|
6
6
|
* This starts the emulator, creates a local instance, and creates the databases using the DDLs found in the workspace.
|
|
7
7
|
*/
|
|
8
8
|
export class EmulatorStartForSpanner extends EmulatorStart {
|
|
9
|
-
async _call(
|
|
10
|
-
return await callDeferred(this,
|
|
9
|
+
async _call() {
|
|
10
|
+
return await callDeferred(this, import.meta.url);
|
|
11
11
|
}
|
|
12
12
|
_supports() {
|
|
13
13
|
return this.name === undefined || this.name === SPANNER_EMULATOR_NAME;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { WorkspaceContext } from '@causa/workspace';
|
|
2
1
|
import { EmulatorStop } from '@causa/workspace-core';
|
|
3
2
|
/**
|
|
4
3
|
* Implements {@link EmulatorStop} for the Firebase Storage emulator.
|
|
5
4
|
*/
|
|
6
5
|
export declare class EmulatorStopForFirebaseStorage extends EmulatorStop {
|
|
7
|
-
_call(
|
|
6
|
+
_call(): Promise<string>;
|
|
8
7
|
_supports(): boolean;
|
|
9
8
|
}
|