@causa/workspace-google 1.0.0 → 1.0.1

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.
@@ -3,9 +3,11 @@ type: object
3
3
  description: Google-specific refinement of the events configuration.
4
4
  properties:
5
5
  events:
6
+ title: GoogleEvents
6
7
  type: object
7
8
  properties:
8
9
  broker:
10
+ title: GoogleEventsBroker
9
11
  anyOf:
10
12
  - type: string
11
13
  - title: GooglePubSubBroker
@@ -4,13 +4,16 @@ description: Google-specific refinement of the infrastructure configuration with
4
4
  known processors.
5
5
  properties:
6
6
  infrastructure:
7
+ title: GoogleInfrastructure
7
8
  type: object
8
9
  properties:
9
10
  processors:
10
11
  type: array
11
12
  items:
13
+ title: GoogleInfrastructureProcessor
12
14
  anyOf:
13
- - type: object
15
+ - title: GoogleGenericProcessor
16
+ type: object
14
17
  properties:
15
18
  name:
16
19
  type: string
@@ -22,6 +25,7 @@ properties:
22
25
  configuration.
23
26
  properties:
24
27
  name:
28
+ title: GoogleServicesEnableProcessorName
25
29
  type: string
26
30
  enum:
27
31
  - GoogleServicesEnable
@@ -36,6 +40,7 @@ properties:
36
40
  configuration value.
37
41
  properties:
38
42
  name:
43
+ title: GooglePubSubWriteTopicsProcessorName
39
44
  type: string
40
45
  enum:
41
46
  - GooglePubSubWriteTopics
@@ -50,6 +55,7 @@ properties:
50
55
  configuration value.
51
56
  properties:
52
57
  name:
58
+ title: GoogleSpannerWriteDatabasesProcessorName
53
59
  type: string
54
60
  enum:
55
61
  - GoogleSpannerWriteDatabases
@@ -64,6 +70,7 @@ properties:
64
70
  value.
65
71
  properties:
66
72
  name:
73
+ title: GoogleFirestoreMergeRulesProcessorName
67
74
  type: string
68
75
  enum:
69
76
  - GoogleFirestoreMergeRules
@@ -78,6 +85,7 @@ properties:
78
85
  value.
79
86
  properties:
80
87
  name:
88
+ title: GoogleFirebaseStorageMergeRulesProcessorName
81
89
  type: string
82
90
  enum:
83
91
  - GoogleFirebaseStorageMergeRules
@@ -3,12 +3,15 @@ type: object
3
3
  description: Google-specific refinement of the secrets configuration.
4
4
  properties:
5
5
  causa:
6
+ title: GoogleSecretsCausa
6
7
  type: object
7
8
  properties:
8
9
  secrets:
10
+ title: GoogleSecretsCausaSecrets
9
11
  type: object
10
12
  properties:
11
13
  defaultBackend:
14
+ title: GoogleSecretsDefaultBackend
12
15
  anyOf:
13
16
  - type: string
14
17
  - title: GoogleSecretManagerBackend
@@ -19,8 +22,10 @@ properties:
19
22
  secrets:
20
23
  type: object
21
24
  additionalProperties:
25
+ title: GoogleSecretConfiguration
22
26
  anyOf:
23
- - type: object
27
+ - title: GoogleGenericSecretConfiguration
28
+ type: object
24
29
  properties:
25
30
  backend:
26
31
  type: string
@@ -29,6 +34,7 @@ properties:
29
34
  description: A secret stored in Google Secret Manager.
30
35
  properties:
31
36
  backend:
37
+ title: GoogleSecretManagerSecretConfigurationBackend
32
38
  type: string
33
39
  enum:
34
40
  - google.secretManager
@@ -54,6 +60,7 @@ properties:
54
60
  This backend does not require any additional configuration.
55
61
  properties:
56
62
  backend:
63
+ title: GoogleAccessTokenSecretConfigurationBackend
57
64
  type: string
58
65
  enum:
59
66
  - google.accessToken
@@ -3,9 +3,11 @@ type: object
3
3
  description: Google-specific refinement of the serverless functions configuration.
4
4
  properties:
5
5
  serverlessFunctions:
6
+ title: GoogleServerlessFunctions
6
7
  type: object
7
8
  properties:
8
9
  platform:
10
+ title: GoogleServerlessFunctionsPlatform
9
11
  anyOf:
10
12
  - type: string
11
13
  - title: GoogleCloudFunctionsPlatform
@@ -3,9 +3,11 @@ type: object
3
3
  description: Google-specific extensions to the service container configuration.
4
4
  properties:
5
5
  serviceContainer:
6
+ title: GoogleServiceContainer
6
7
  type: object
7
8
  properties:
8
9
  platform:
10
+ title: ServiceContainerPlatform
9
11
  anyOf:
10
12
  - type: string
11
13
  - title: GoogleCloudRunPlatform
@@ -17,8 +19,10 @@ properties:
17
19
  type: object
18
20
  description: A map of triggers that call the service's endpoints when they occur.
19
21
  additionalProperties:
22
+ title: ServiceContainerTrigger
20
23
  anyOf:
21
- - type: object
24
+ - title: ServiceContainerGenericTrigger
25
+ type: object
22
26
  properties:
23
27
  type:
24
28
  type: string
@@ -184,6 +188,7 @@ properties:
184
188
  required:
185
189
  - type
186
190
  outputs:
191
+ title: ServiceContainerOutputs
187
192
  type: object
188
193
  properties:
189
194
  google.firestore:
@@ -65,9 +65,9 @@ export class ModelGenerateTypeScriptDecoratorsForGoogleFirestore extends ModelGe
65
65
  });
66
66
  const pathExpression = path.length === 1 ? elements[0] : `[${elements.join(', ')}].join("/")`;
67
67
  const decorators = [];
68
- addDecoratorToList(decorators, { schema: this.schema }, 'FirestoreCollection', CAUSA_GOOGLE_MODULE, `@FirestoreCollection({ name: ${JSON.stringify(name)}, path: (doc) => ${pathExpression} })`);
68
+ addDecoratorToList(decorators, { schema: this.schema }, 'FirestoreCollection', CAUSA_GOOGLE_MODULE, (alias) => `@${alias}({ name: ${JSON.stringify(name)}, path: (doc) => ${pathExpression} })`);
69
69
  if (hasSoftDelete === true) {
70
- addDecoratorToList(decorators, { schema: this.schema }, 'SoftDeletedFirestoreCollection', CAUSA_GOOGLE_MODULE, '@SoftDeletedFirestoreCollection()');
70
+ addDecoratorToList(decorators, { schema: this.schema }, 'SoftDeletedFirestoreCollection', CAUSA_GOOGLE_MODULE, (alias) => `@${alias}()`);
71
71
  }
72
72
  return decorators;
73
73
  }
@@ -69,7 +69,7 @@ export class ModelGenerateTypeScriptDecoratorsForGoogleSpanner extends ModelGene
69
69
  throw new Error(`Invalid 'name' in '${GOOGLE_SPANNER_TABLE_EXTENSION}' attribute on '${debugName}'. Expected a string.`);
70
70
  }
71
71
  const decorators = [];
72
- addDecoratorToList(decorators, { schema: this.schema }, 'SpannerTable', CAUSA_GOOGLE_MODULE, `@SpannerTable(${JSON.stringify({ primaryKey, name })})`);
72
+ addDecoratorToList(decorators, { schema: this.schema }, 'SpannerTable', CAUSA_GOOGLE_MODULE, (alias) => `@${alias}(${JSON.stringify({ primaryKey, name })})`);
73
73
  return decorators;
74
74
  }
75
75
  decoratorsForProperty() {
@@ -110,9 +110,9 @@ export class ModelGenerateTypeScriptDecoratorsForGoogleSpanner extends ModelGene
110
110
  }
111
111
  }
112
112
  const hasOptions = Object.keys(columnAttributes).length > 0;
113
- const source = hasOptions
114
- ? `@SpannerColumn(${JSON.stringify(columnAttributes)})`
115
- : '@SpannerColumn()';
113
+ const source = (alias) => hasOptions
114
+ ? `@${alias}(${JSON.stringify(columnAttributes)})`
115
+ : `@${alias}()`;
116
116
  const decorators = [];
117
117
  addDecoratorToList(decorators, { schema: this.schema, property }, 'SpannerColumn', CAUSA_GOOGLE_MODULE, source);
118
118
  return decorators;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@causa/workspace-google",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "The Causa workspace module providing many functionalities related to GCP and its services.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,9 +36,9 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@causa/cli": "^1.0.0",
39
- "@causa/workspace": "^1.0.0",
39
+ "@causa/workspace": "^1.0.1",
40
40
  "@causa/workspace-core": "^1.0.1",
41
- "@causa/workspace-typescript": "^1.0.0",
41
+ "@causa/workspace-typescript": "^1.0.1",
42
42
  "@google-cloud/apikeys": "^2.2.2",
43
43
  "@google-cloud/bigquery": "^8.3.1",
44
44
  "@google-cloud/iam-credentials": "^4.2.2",
@@ -61,7 +61,7 @@
61
61
  "pino": "^10.3.1"
62
62
  },
63
63
  "devDependencies": {
64
- "@swc/core": "^1.15.40",
64
+ "@swc/core": "^1.15.41",
65
65
  "@swc/jest": "^0.2.39",
66
66
  "@tsconfig/node22": "^22.0.5",
67
67
  "@types/jest": "^30.0.0",