@causa/workspace-google 1.2.0 → 1.3.0

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.
@@ -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.0",
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.2.0",
51
51
  "@google-cloud/service-usage": "^4.2.2",
52
- "@google-cloud/spanner": "^8.7.1",
52
+ "@google-cloud/spanner": "^8.9.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.16.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.46",
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.7.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
  }