@pushwoosh/rpc-v2-http-api-data 0.2.27 → 0.2.28

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/data.js CHANGED
@@ -10152,7 +10152,9 @@ export const data = {
10152
10152
  "CREATE_HOST_NOT_ALLOWED",
10153
10153
  "CREATE_NAME_EMPTY",
10154
10154
  "CREATE_NAME_TOO_LONG",
10155
- "CREATE_CONNECTION_FAILED"
10155
+ "CREATE_CONNECTION_FAILED",
10156
+ "CREATE_PROJECT_ID_EMPTY",
10157
+ "CREATE_SERVICE_ACCOUNT_JSON_EMPTY"
10156
10158
  ]
10157
10159
  },
10158
10160
  "pushwoosh.rpc.external_segments.v3.ExternalSegmentsService_Update_FieldViolations": {
@@ -10167,7 +10169,9 @@ export const data = {
10167
10169
  "UPDATE_HOST_NOT_ALLOWED",
10168
10170
  "UPDATE_NAME_EMPTY",
10169
10171
  "UPDATE_NAME_TOO_LONG",
10170
- "UPDATE_CONNECTION_FAILED"
10172
+ "UPDATE_CONNECTION_FAILED",
10173
+ "UPDATE_PROJECT_ID_EMPTY",
10174
+ "UPDATE_SERVICE_ACCOUNT_JSON_EMPTY"
10171
10175
  ]
10172
10176
  },
10173
10177
  "pushwoosh.rpc.external_segments.v3.ExternalSegmentsService_Update_FailedPreconditions": {
@@ -10309,6 +10313,20 @@ export const data = {
10309
10313
  }
10310
10314
  }
10311
10315
  },
10316
+ "pushwoosh.rpc.external_segments.v3.BigQueryConnection": {
10317
+ "type": "I",
10318
+ "fields": {
10319
+ "projectId": {
10320
+ "type": "string"
10321
+ },
10322
+ "serviceAccountJson": {
10323
+ "type": "string"
10324
+ },
10325
+ "location": {
10326
+ "type": "string"
10327
+ }
10328
+ }
10329
+ },
10312
10330
  "pushwoosh.rpc.external_segments.v3.ExternalSegment": {
10313
10331
  "type": "I",
10314
10332
  "fields": {
@@ -10327,6 +10345,9 @@ export const data = {
10327
10345
  "mysql": {
10328
10346
  "type": "pushwoosh.rpc.external_segments.v3.MysqlConnection"
10329
10347
  },
10348
+ "bigquery": {
10349
+ "type": "pushwoosh.rpc.external_segments.v3.BigQueryConnection"
10350
+ },
10330
10351
  "query": {
10331
10352
  "type": "string"
10332
10353
  },
@@ -10350,7 +10371,8 @@ export const data = {
10350
10371
  "connection": {
10351
10372
  "oneof": [
10352
10373
  "postgres",
10353
- "mysql"
10374
+ "mysql",
10375
+ "bigquery"
10354
10376
  ]
10355
10377
  }
10356
10378
  }
@@ -10406,6 +10428,9 @@ export const data = {
10406
10428
  "mysql": {
10407
10429
  "type": "pushwoosh.rpc.external_segments.v3.MysqlConnection"
10408
10430
  },
10431
+ "bigquery": {
10432
+ "type": "pushwoosh.rpc.external_segments.v3.BigQueryConnection"
10433
+ },
10409
10434
  "query": {
10410
10435
  "type": "string"
10411
10436
  }
@@ -10414,7 +10439,8 @@ export const data = {
10414
10439
  "connection": {
10415
10440
  "oneof": [
10416
10441
  "postgres",
10417
- "mysql"
10442
+ "mysql",
10443
+ "bigquery"
10418
10444
  ]
10419
10445
  }
10420
10446
  }
@@ -10446,6 +10472,9 @@ export const data = {
10446
10472
  "mysql": {
10447
10473
  "type": "pushwoosh.rpc.external_segments.v3.MysqlConnection"
10448
10474
  },
10475
+ "bigquery": {
10476
+ "type": "pushwoosh.rpc.external_segments.v3.BigQueryConnection"
10477
+ },
10449
10478
  "query": {
10450
10479
  "type": "string",
10451
10480
  "optional": true
@@ -10455,7 +10484,8 @@ export const data = {
10455
10484
  "connection": {
10456
10485
  "oneof": [
10457
10486
  "postgres",
10458
- "mysql"
10487
+ "mysql",
10488
+ "bigquery"
10459
10489
  ]
10460
10490
  }
10461
10491
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.27",
3
+ "version": "0.2.28",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -40,6 +40,14 @@ export type ExternalSegmentsService_Create_FieldViolations = {
40
40
  reason: 'CREATE_CONNECTION_FAILED';
41
41
  field: string;
42
42
  description: string;
43
+ } | {
44
+ reason: 'CREATE_PROJECT_ID_EMPTY';
45
+ field: string;
46
+ description: string;
47
+ } | {
48
+ reason: 'CREATE_SERVICE_ACCOUNT_JSON_EMPTY';
49
+ field: string;
50
+ description: string;
43
51
  };
44
52
  export type ExternalSegmentsService_Update_FieldViolations = {
45
53
  reason: 'UPDATE_FV_UNSPECIFIED';
@@ -81,6 +89,14 @@ export type ExternalSegmentsService_Update_FieldViolations = {
81
89
  reason: 'UPDATE_CONNECTION_FAILED';
82
90
  field: string;
83
91
  description: string;
92
+ } | {
93
+ reason: 'UPDATE_PROJECT_ID_EMPTY';
94
+ field: string;
95
+ description: string;
96
+ } | {
97
+ reason: 'UPDATE_SERVICE_ACCOUNT_JSON_EMPTY';
98
+ field: string;
99
+ description: string;
84
100
  };
85
101
  export type ExternalSegmentsService_Update_FailedPreconditions = {
86
102
  type: 'UPDATE_FP_UNSPECIFIED';
@@ -257,6 +273,25 @@ export type MysqlConnection = {
257
273
  */
258
274
  params: Record<string, string>;
259
275
  };
276
+ /**
277
+ * BigQueryConnection holds Google BigQuery connection parameters. The backend
278
+ * stores them as a JSON blob in the connection params.
279
+ */
280
+ export type BigQueryConnection = {
281
+ /** Google Cloud project ID that runs (and is billed for) the query. */
282
+ projectId: string;
283
+ /**
284
+ * Service account JSON key with BigQuery access.
285
+ * Write-only: never returned by read methods; on update an empty value keeps
286
+ * the currently stored key.
287
+ */
288
+ serviceAccountJson: string;
289
+ /**
290
+ * Optional processing location (e.g. "EU", "US", "europe-west3").
291
+ * When empty, BigQuery resolves it from the referenced dataset.
292
+ */
293
+ location: string;
294
+ };
260
295
  export type ExternalSegment_connection_postgres = {
261
296
  type: 'postgres';
262
297
  data: PostgresConnection;
@@ -265,7 +300,11 @@ export type ExternalSegment_connection_mysql = {
265
300
  type: 'mysql';
266
301
  data: MysqlConnection;
267
302
  };
268
- export type ExternalSegment_connection = ExternalSegment_connection_postgres | ExternalSegment_connection_mysql;
303
+ export type ExternalSegment_connection_bigquery = {
304
+ type: 'bigquery';
305
+ data: BigQueryConnection;
306
+ };
307
+ export type ExternalSegment_connection = ExternalSegment_connection_postgres | ExternalSegment_connection_mysql | ExternalSegment_connection_bigquery;
269
308
  /**
270
309
  * ExternalSegment is the full representation returned by read methods.
271
310
  * It exposes neither the raw connection string nor a database "kind" enum:
@@ -317,7 +356,11 @@ export type CreateRequest_connection_mysql = {
317
356
  type: 'mysql';
318
357
  data: MysqlConnection;
319
358
  };
320
- export type CreateRequest_connection = CreateRequest_connection_postgres | CreateRequest_connection_mysql;
359
+ export type CreateRequest_connection_bigquery = {
360
+ type: 'bigquery';
361
+ data: BigQueryConnection;
362
+ };
363
+ export type CreateRequest_connection = CreateRequest_connection_postgres | CreateRequest_connection_mysql | CreateRequest_connection_bigquery;
321
364
  export type CreateRequest = {
322
365
  /** Application code the segment belongs to. */
323
366
  application?: string;
@@ -338,7 +381,11 @@ export type UpdateRequest_connection_mysql = {
338
381
  type: 'mysql';
339
382
  data: MysqlConnection;
340
383
  };
341
- export type UpdateRequest_connection = UpdateRequest_connection_postgres | UpdateRequest_connection_mysql;
384
+ export type UpdateRequest_connection_bigquery = {
385
+ type: 'bigquery';
386
+ data: BigQueryConnection;
387
+ };
388
+ export type UpdateRequest_connection = UpdateRequest_connection_postgres | UpdateRequest_connection_mysql | UpdateRequest_connection_bigquery;
342
389
  export type UpdateRequest = {
343
390
  /** Application code the segment belongs to. */
344
391
  application?: string;