@causa/workspace-google 1.2.0 → 1.3.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.
@@ -70,9 +70,9 @@ export declare class GoogleCloudRunEventBackfillServiceCloneConfig {
70
70
  * See https://cloud.google.com/run/docs/securing/ingress#settings for more details.
71
71
  */
72
72
  export declare enum GoogleCloudRunIngress {
73
- All = "all",
74
- Internal = "internal",
75
- InternalAndCloudLoadBalancing = "internal-and-cloud-load-balancing"
73
+ IngressTrafficAll = "INGRESS_TRAFFIC_ALL",
74
+ IngressTrafficInternalOnly = "INGRESS_TRAFFIC_INTERNAL_ONLY",
75
+ IngressTrafficInternalLoadBalancer = "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER"
76
76
  }
77
77
  /**
78
78
  * Google Cloud Run platform.
@@ -127,9 +127,9 @@ __decorate([
127
127
  */
128
128
  export var GoogleCloudRunIngress;
129
129
  (function (GoogleCloudRunIngress) {
130
- GoogleCloudRunIngress["All"] = "all";
131
- GoogleCloudRunIngress["Internal"] = "internal";
132
- GoogleCloudRunIngress["InternalAndCloudLoadBalancing"] = "internal-and-cloud-load-balancing";
130
+ GoogleCloudRunIngress["IngressTrafficAll"] = "INGRESS_TRAFFIC_ALL";
131
+ GoogleCloudRunIngress["IngressTrafficInternalOnly"] = "INGRESS_TRAFFIC_INTERNAL_ONLY";
132
+ GoogleCloudRunIngress["IngressTrafficInternalLoadBalancer"] = "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER";
133
133
  })(GoogleCloudRunIngress || (GoogleCloudRunIngress = {}));
134
134
  /**
135
135
  * Google Cloud Run platform.
@@ -1685,7 +1685,11 @@ __decorate([
1685
1685
  ], GoogleCloudRun.prototype, "requestConcurrency", void 0);
1686
1686
  __decorate([
1687
1687
  AllowMissing(),
1688
- IsIn(['all', 'internal', 'internal-and-cloud-load-balancing']),
1688
+ IsIn([
1689
+ 'INGRESS_TRAFFIC_ALL',
1690
+ 'INGRESS_TRAFFIC_INTERNAL_ONLY',
1691
+ 'INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER',
1692
+ ]),
1689
1693
  __metadata("design:type", String)
1690
1694
  ], GoogleCloudRun.prototype, "ingress", void 0);
1691
1695
  __decorate([
@@ -469,9 +469,9 @@ properties:
469
469
  title: GoogleCloudRunIngress
470
470
  type: string
471
471
  enum:
472
- - all
473
- - internal
474
- - internal-and-cloud-load-balancing
472
+ - INGRESS_TRAFFIC_ALL
473
+ - INGRESS_TRAFFIC_INTERNAL_ONLY
474
+ - INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER
475
475
  description: >-
476
476
  The type of allowed ingress that can reach the container.
477
477
 
@@ -25,7 +25,7 @@ export default async function call() {
25
25
  conditions.push(`(${this.filter})`);
26
26
  }
27
27
  const query = `
28
- SELECT publish_time, data, attributes
28
+ SELECT message_id, publish_time, data, attributes
29
29
  FROM \`${tableId}\`
30
30
  WHERE ${conditions.join(' AND ')}
31
31
  ORDER BY publish_time ASC
@@ -34,6 +34,7 @@ export default async function call() {
34
34
  const bigQuery = this._context.service(BigQueryService).bigQuery;
35
35
  const [rows] = await bigQuery.query({ query, params });
36
36
  return rows.map((row) => ({
37
+ id: row.message_id,
37
38
  timestamp: new Date(row.publish_time.value),
38
39
  attributes: row.attributes ? JSON.parse(row.attributes) : {},
39
40
  data: JSON.parse(row.data.toString('utf8')),
@@ -30,6 +30,7 @@ export default async function call() {
30
30
  maxResults: limit,
31
31
  });
32
32
  return pageEntries.map((entry) => ({
33
+ id: entry.metadata.insertId ?? undefined,
33
34
  timestamp: entry.metadata.timestamp,
34
35
  message: entry.toStructuredJSON(),
35
36
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@causa/workspace-google",
3
- "version": "1.2.0",
3
+ "version": "1.3.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,46 +36,47 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@causa/cli": "^1.0.0",
39
- "@causa/workspace": "^1.0.1",
40
- "@causa/workspace-core": "^1.1.0",
41
- "@causa/workspace-typescript": "^1.1.0",
39
+ "@causa/workspace": "^1.0.2",
40
+ "@causa/workspace-core": "^1.3.0",
41
+ "@causa/workspace-typescript": "^1.3.0",
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",
45
- "@google-cloud/logging": "^11.2.2",
46
- "@google-cloud/monitoring": "^5.3.3",
45
+ "@google-cloud/logging": "^11.3.0",
46
+ "@google-cloud/monitoring": "^5.4.0",
47
47
  "@google-cloud/pubsub": "^5.3.1",
48
- "@google-cloud/resource-manager": "^6.2.2",
49
- "@google-cloud/run": "^3.2.1",
50
- "@google-cloud/secret-manager": "^6.1.3",
48
+ "@google-cloud/resource-manager": "^6.3.0",
49
+ "@google-cloud/run": "^3.3.0",
50
+ "@google-cloud/secret-manager": "^6.3.0",
51
51
  "@google-cloud/service-usage": "^4.2.2",
52
- "@google-cloud/spanner": "^8.7.1",
52
+ "@google-cloud/spanner": "^8.10.0",
53
53
  "@google-cloud/storage": "^7.21.0",
54
+ "class-transformer": "^0.5.1",
54
55
  "class-validator": "^0.15.1",
55
- "firebase": "^12.14.0",
56
- "firebase-admin": "^14.0.0",
57
- "globby": "^16.2.0",
56
+ "firebase": "^12.17.0",
57
+ "firebase-admin": "^14.2.0",
58
+ "globby": "^16.2.2",
58
59
  "google-gax": "5.0.6",
59
60
  "googleapis": "^173.0.0",
60
61
  "micromatch": "^4.0.8",
61
62
  "pino": "^10.3.1"
62
63
  },
63
64
  "devDependencies": {
64
- "@swc/core": "^1.15.41",
65
+ "@swc/core": "^1.15.47",
65
66
  "@swc/jest": "^0.2.39",
66
67
  "@tsconfig/node22": "^22.0.5",
67
68
  "@types/jest": "^30.0.0",
68
69
  "@types/micromatch": "^4.0.10",
69
- "@types/node": "^20.19.43",
70
+ "@types/node": "^22.20.1",
70
71
  "copyfiles": "^2.4.1",
71
- "eslint": "^10.4.1",
72
+ "eslint": "^10.8.0",
72
73
  "eslint-config-prettier": "^10.1.8",
73
74
  "eslint-plugin-prettier": "^5.5.6",
74
75
  "jest": "^30.4.2",
75
76
  "jest-extended": "^7.0.0",
76
77
  "rimraf": "^6.1.3",
77
78
  "typescript": "^6.0.3",
78
- "typescript-eslint": "^8.61.0",
79
+ "typescript-eslint": "^8.65.0",
79
80
  "yaml": "^2.9.0"
80
81
  }
81
82
  }