@pushwoosh/rpc-v2-http-api-data 0.2.9 → 0.2.11

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
@@ -10061,7 +10061,9 @@ export const data = {
10061
10061
  "CREATE_DATABASE_EMPTY",
10062
10062
  "CREATE_USER_EMPTY",
10063
10063
  "CREATE_QUERY_EMPTY",
10064
- "CREATE_HOST_NOT_ALLOWED"
10064
+ "CREATE_HOST_NOT_ALLOWED",
10065
+ "CREATE_NAME_EMPTY",
10066
+ "CREATE_NAME_TOO_LONG"
10065
10067
  ]
10066
10068
  },
10067
10069
  "pushwoosh.rpc.external_segments.v3.ExternalSegmentsService_Update_FieldViolations": {
@@ -10073,7 +10075,9 @@ export const data = {
10073
10075
  "UPDATE_DATABASE_EMPTY",
10074
10076
  "UPDATE_USER_EMPTY",
10075
10077
  "UPDATE_QUERY_EMPTY",
10076
- "UPDATE_HOST_NOT_ALLOWED"
10078
+ "UPDATE_HOST_NOT_ALLOWED",
10079
+ "UPDATE_NAME_EMPTY",
10080
+ "UPDATE_NAME_TOO_LONG"
10077
10081
  ]
10078
10082
  },
10079
10083
  "pushwoosh.rpc.external_segments.v3.ExternalSegmentsService_Update_FailedPreconditions": {
@@ -10203,6 +10207,9 @@ export const data = {
10203
10207
  "code": {
10204
10208
  "type": "string"
10205
10209
  },
10210
+ "name": {
10211
+ "type": "string"
10212
+ },
10206
10213
  "postgres": {
10207
10214
  "type": "pushwoosh.rpc.external_segments.v3.PostgresConnection"
10208
10215
  },
@@ -10279,6 +10286,9 @@ export const data = {
10279
10286
  "application": {
10280
10287
  "type": "string"
10281
10288
  },
10289
+ "name": {
10290
+ "type": "string"
10291
+ },
10282
10292
  "postgres": {
10283
10293
  "type": "pushwoosh.rpc.external_segments.v3.PostgresConnection"
10284
10294
  },
@@ -10315,6 +10325,10 @@ export const data = {
10315
10325
  "code": {
10316
10326
  "type": "string"
10317
10327
  },
10328
+ "name": {
10329
+ "type": "string",
10330
+ "optional": true
10331
+ },
10318
10332
  "postgres": {
10319
10333
  "type": "pushwoosh.rpc.external_segments.v3.PostgresConnection"
10320
10334
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -28,6 +28,14 @@ export type ExternalSegmentsService_Create_FieldViolations = {
28
28
  reason: 'CREATE_HOST_NOT_ALLOWED';
29
29
  field: string;
30
30
  description: string;
31
+ } | {
32
+ reason: 'CREATE_NAME_EMPTY';
33
+ field: string;
34
+ description: string;
35
+ } | {
36
+ reason: 'CREATE_NAME_TOO_LONG';
37
+ field: string;
38
+ description: string;
31
39
  };
32
40
  export type ExternalSegmentsService_Update_FieldViolations = {
33
41
  reason: 'UPDATE_FV_UNSPECIFIED';
@@ -57,6 +65,14 @@ export type ExternalSegmentsService_Update_FieldViolations = {
57
65
  reason: 'UPDATE_HOST_NOT_ALLOWED';
58
66
  field: string;
59
67
  description: string;
68
+ } | {
69
+ reason: 'UPDATE_NAME_EMPTY';
70
+ field: string;
71
+ description: string;
72
+ } | {
73
+ reason: 'UPDATE_NAME_TOO_LONG';
74
+ field: string;
75
+ description: string;
60
76
  };
61
77
  export type ExternalSegmentsService_Update_FailedPreconditions = {
62
78
  type: 'UPDATE_FP_UNSPECIFIED';
@@ -223,6 +239,8 @@ export type ExternalSegment = {
223
239
  application: string;
224
240
  /** Unique (within application) external segment code, generated on creation. */
225
241
  code: string;
242
+ /** Human-readable name. Not unique. Free text, up to 100 characters. */
243
+ name: string;
226
244
  /** SQL query that returns a single "user_id" column. */
227
245
  query: string;
228
246
  /** Whether the segment configuration is considered valid and usable. */
@@ -265,6 +283,8 @@ export type CreateRequest_connection = CreateRequest_connection_postgres | Creat
265
283
  export type CreateRequest = {
266
284
  /** Application code the segment belongs to. */
267
285
  application?: string;
286
+ /** Human-readable name. Required, not unique, up to 100 characters. */
287
+ name?: string;
268
288
  /** SQL query that must return a single "user_id" column. */
269
289
  query?: string;
270
290
  connection: CreateRequest_connection;
@@ -286,6 +306,11 @@ export type UpdateRequest = {
286
306
  application?: string;
287
307
  /** External segment code to update. */
288
308
  code?: string;
309
+ /**
310
+ * New name. If unset, the name is left unchanged. If set, it must be a
311
+ * non-empty string of at most 100 characters.
312
+ */
313
+ name?: string;
289
314
  /** New SQL query. If set, replaces the current value. */
290
315
  query?: string;
291
316
  connection: UpdateRequest_connection;