@pushwoosh/rpc-gateway-journey-data 0.27.217 → 0.27.219
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/commonTypes.d.ts +21 -0
- package/data.js +22 -44
- package/package.json +1 -1
- package/pushwoosh_cj_journey.d.ts +2680 -122
- package/pushwoosh_cj_journey_category.d.ts +42 -4
- package/pushwoosh_objects_filters_v1.d.ts +139 -32
- package/types.d.ts +13 -0
- package/types.js +2 -0
|
@@ -1,40 +1,78 @@
|
|
|
1
|
+
import { RpcMethod } from './commonTypes';
|
|
2
|
+
export type Category_GetCategoriesList = RpcMethod<GetCategoriesListRequest, GetCategoriesListResponse>;
|
|
3
|
+
export type Category_CreateCategory = RpcMethod<CreateCategoryRequest, CreateCategoryResponse>;
|
|
4
|
+
export type Category_UpdateCategory = RpcMethod<UpdateCategoryRequest, UpdateCategoryResponse>;
|
|
5
|
+
export type Category_DeleteCategory = RpcMethod<DeleteCategoryRequest, DeleteCategoryResponse>;
|
|
6
|
+
/**
|
|
7
|
+
* Category service provides operations for managing journey categories
|
|
8
|
+
* Categories are used to organize and group journeys within an application
|
|
9
|
+
*/
|
|
1
10
|
export interface Category {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
11
|
+
/** Returns a paginated list of journey categories for an application. Use to browse the categories that organize journeys. */
|
|
12
|
+
GetCategoriesList: Category_GetCategoriesList;
|
|
13
|
+
/** Creates a new journey category for an application and returns its generated UUID; each call creates a distinct category. */
|
|
14
|
+
CreateCategory: Category_CreateCategory;
|
|
15
|
+
/** Updates a journey category's title by its UUID. */
|
|
16
|
+
UpdateCategory: Category_UpdateCategory;
|
|
17
|
+
/** Deletes a journey category by UUID and returns the UUIDs of journeys that were in it; those journeys are detached (left uncategorized) but not deleted. Irreversible for the category. */
|
|
18
|
+
DeleteCategory: Category_DeleteCategory;
|
|
6
19
|
}
|
|
20
|
+
/** GetCategoriesListRequest requests a list of categories for an application */
|
|
7
21
|
export type GetCategoriesListRequest = {
|
|
22
|
+
/** Application code to filter categories by */
|
|
8
23
|
applicationCode?: string;
|
|
24
|
+
/** Page number (0-based) */
|
|
9
25
|
page?: number;
|
|
26
|
+
/** Number of items per page */
|
|
10
27
|
pageSize?: number;
|
|
11
28
|
};
|
|
29
|
+
/** GetCategoriesListResponse contains a list of categories */
|
|
12
30
|
export type GetCategoriesListResponse = {
|
|
31
|
+
/** List of categories */
|
|
13
32
|
categories: Info[];
|
|
14
33
|
};
|
|
34
|
+
/** CreateCategoryRequest creates a new journey category */
|
|
15
35
|
export type CreateCategoryRequest = {
|
|
36
|
+
/** Application code this category belongs to */
|
|
16
37
|
applicationCode?: string;
|
|
38
|
+
/** Title/name of the category */
|
|
17
39
|
title?: string;
|
|
18
40
|
};
|
|
41
|
+
/** CreateCategoryResponse contains the newly created category */
|
|
19
42
|
export type CreateCategoryResponse = {
|
|
43
|
+
/** Created category information */
|
|
20
44
|
category: Info;
|
|
21
45
|
};
|
|
46
|
+
/** UpdateCategoryRequest updates an existing category */
|
|
22
47
|
export type UpdateCategoryRequest = {
|
|
48
|
+
/** Application code */
|
|
23
49
|
applicationCode?: string;
|
|
50
|
+
/** New title for the category */
|
|
24
51
|
title?: string;
|
|
52
|
+
/** UUID of the category to update */
|
|
25
53
|
uuid?: string;
|
|
26
54
|
};
|
|
55
|
+
/** UpdateCategoryResponse contains the updated category */
|
|
27
56
|
export type UpdateCategoryResponse = {
|
|
57
|
+
/** Updated category information */
|
|
28
58
|
category: Info;
|
|
29
59
|
};
|
|
60
|
+
/** DeleteCategoryRequest deletes a category */
|
|
30
61
|
export type DeleteCategoryRequest = {
|
|
62
|
+
/** UUID of the category to delete */
|
|
31
63
|
uuid?: string;
|
|
32
64
|
};
|
|
65
|
+
/** DeleteCategoryResponse contains information about the deletion impact */
|
|
33
66
|
export type DeleteCategoryResponse = {
|
|
67
|
+
/** UUIDs of journeys that were in this category (now uncategorized) */
|
|
34
68
|
affectedJourneyUuids: string[];
|
|
35
69
|
};
|
|
70
|
+
/** Info contains category metadata */
|
|
36
71
|
export type Info = {
|
|
72
|
+
/** Unique identifier (UUID) of the category */
|
|
37
73
|
uuid: string;
|
|
74
|
+
/** Title/name of the category */
|
|
38
75
|
title: string;
|
|
76
|
+
/** Creation timestamp (ISO 8601 format) */
|
|
39
77
|
createdAt: string;
|
|
40
78
|
};
|
|
@@ -1,15 +1,57 @@
|
|
|
1
|
+
import { RpcMethod } from './commonTypes';
|
|
2
|
+
/**
|
|
3
|
+
* This struct is used to avoid protoc compiler warnings about unused includes in case when
|
|
4
|
+
* there are no usage for timestamp.* and wrappers.*
|
|
5
|
+
* This can be removed if you figure out how to remove unused includes.
|
|
6
|
+
*/
|
|
1
7
|
export type __filter_collection_internal = {
|
|
2
8
|
f1: string;
|
|
3
9
|
f2: Date;
|
|
4
10
|
f3: Filter;
|
|
5
11
|
};
|
|
6
12
|
export type LogicExpression_Binary_Operator = 'INVALID' | 'AND' | 'OR';
|
|
13
|
+
/**
|
|
14
|
+
* BinaryExpression is a kind of expression that allows to combine
|
|
15
|
+
* two other expressions with application of some binary logic operator.
|
|
16
|
+
*/
|
|
7
17
|
export type LogicExpression_Binary = {
|
|
8
18
|
operator: LogicExpression_Binary_Operator;
|
|
9
19
|
left: LogicExpression;
|
|
10
20
|
right: LogicExpression;
|
|
11
21
|
};
|
|
12
|
-
export type LogicExpression_Field_Operator = 'INVALID'
|
|
22
|
+
export type LogicExpression_Field_Operator = 'INVALID'
|
|
23
|
+
/** field = value */
|
|
24
|
+
| 'EQ'
|
|
25
|
+
/** field != value */
|
|
26
|
+
| 'NEQ'
|
|
27
|
+
/** field in value */
|
|
28
|
+
| 'IN'
|
|
29
|
+
/** field > value */
|
|
30
|
+
| 'GT'
|
|
31
|
+
/** field >= value */
|
|
32
|
+
| 'GTE'
|
|
33
|
+
/** field < value */
|
|
34
|
+
| 'LT'
|
|
35
|
+
/** field <= value */
|
|
36
|
+
| 'LTE'
|
|
37
|
+
/** field like 'value%' */
|
|
38
|
+
| 'STARTS_WITH'
|
|
39
|
+
/** field like '%value' */
|
|
40
|
+
| 'ENDS_WITH'
|
|
41
|
+
/** field like '%value%' */
|
|
42
|
+
| 'LIKE'
|
|
43
|
+
/** field is null */
|
|
44
|
+
| 'IS_NULL'
|
|
45
|
+
/** field is not null */
|
|
46
|
+
| 'NOT_NULL'
|
|
47
|
+
/** field is ilike '%value%' */
|
|
48
|
+
| 'ILIKE'
|
|
49
|
+
/** field '@>' array */
|
|
50
|
+
| 'ARRAY_CONTAINS'
|
|
51
|
+
/** field '<@' array */
|
|
52
|
+
| 'ARRAY_INCLUDES'
|
|
53
|
+
/** field not ilike '%value%' */
|
|
54
|
+
| 'NOT_ILIKE';
|
|
13
55
|
export type LogicExpression_Field_ID = {
|
|
14
56
|
operator: LogicExpression_Field_Operator;
|
|
15
57
|
value: number;
|
|
@@ -203,6 +245,7 @@ export type LogicExpression_kind_field = {
|
|
|
203
245
|
data: LogicExpression_Field;
|
|
204
246
|
};
|
|
205
247
|
export type LogicExpression_kind = LogicExpression_kind_binary | LogicExpression_kind_field;
|
|
248
|
+
/** Abstract expression structure. That's an expressions container */
|
|
206
249
|
export type LogicExpression = {
|
|
207
250
|
kind: LogicExpression_kind;
|
|
208
251
|
};
|
|
@@ -220,43 +263,83 @@ export type ForExpression = {
|
|
|
220
263
|
level: LockLevel;
|
|
221
264
|
waiting: LockWaitingOption;
|
|
222
265
|
};
|
|
266
|
+
/**
|
|
267
|
+
* This struct is used to avoid protoc compiler warnings about unused includes in case when
|
|
268
|
+
* there are no usage for timestamp.* and wrappers.*
|
|
269
|
+
* This can be removed if you figure out how to remove unused includes.
|
|
270
|
+
*/
|
|
223
271
|
export type __filter_crud_service_internal = {
|
|
224
272
|
f1: string;
|
|
225
273
|
f2: Date;
|
|
226
274
|
f3: {};
|
|
227
275
|
};
|
|
276
|
+
export type FiltersCrudService_Create = RpcMethod<CreateRequest, CreateResponse>;
|
|
277
|
+
export type FiltersCrudService_CreateMany = RpcMethod<CreateManyRequest, CreateManyResponse>;
|
|
278
|
+
export type FiltersCrudService_Get = RpcMethod<GetRequest, GetResponse>;
|
|
279
|
+
export type FiltersCrudService_LoadByCode = RpcMethod<LoadByCodeRequest, LoadByCodeResponse>;
|
|
280
|
+
export type FiltersCrudService_LoadByAccountIDName = RpcMethod<LoadByAccountIDNameRequest, LoadByAccountIDNameResponse>;
|
|
281
|
+
export type FiltersCrudService_Delete = RpcMethod<DeleteRequest, {}>;
|
|
282
|
+
export type FiltersCrudService_DeleteMany = RpcMethod<DeleteManyRequest, DeleteManyResponse>;
|
|
283
|
+
export type FiltersCrudService_Count = RpcMethod<CountRequest, CountResponse>;
|
|
284
|
+
export type FiltersCrudService_GetPage = RpcMethod<GetPageRequest, GetPageResponse>;
|
|
285
|
+
export type FiltersCrudService_List = RpcMethod<ListRequest, ListResponse>;
|
|
286
|
+
export type FiltersCrudService_Paginate = RpcMethod<PaginateRequest, PaginateResponse>;
|
|
287
|
+
export type FiltersCrudService_List2 = RpcMethod<List2Request, List2Response>;
|
|
288
|
+
export type FiltersCrudService_UpdateCode = RpcMethod<UpdateCodeRequest, {}>;
|
|
289
|
+
export type FiltersCrudService_UpdateAccountID = RpcMethod<UpdateAccountIDRequest, {}>;
|
|
290
|
+
export type FiltersCrudService_UpdateName = RpcMethod<UpdateNameRequest, {}>;
|
|
291
|
+
export type FiltersCrudService_UpdateApplicationID = RpcMethod<UpdateApplicationIDRequest, {}>;
|
|
292
|
+
export type FiltersCrudService_UpdateIsFiltrationInProgress = RpcMethod<UpdateIsFiltrationInProgressRequest, {}>;
|
|
293
|
+
export type FiltersCrudService_UpdateFiltrationStartedAt = RpcMethod<UpdateFiltrationStartedAtRequest, {}>;
|
|
294
|
+
export type FiltersCrudService_UpdateFiltrationLastFilteredAt = RpcMethod<UpdateFiltrationLastFilteredAtRequest, {}>;
|
|
295
|
+
export type FiltersCrudService_UpdateFiltrationLastCheckedAt = RpcMethod<UpdateFiltrationLastCheckedAtRequest, {}>;
|
|
296
|
+
export type FiltersCrudService_UpdateFiltrationScheduledAt = RpcMethod<UpdateFiltrationScheduledAtRequest, {}>;
|
|
297
|
+
export type FiltersCrudService_UpdateCheckerScheduledAt = RpcMethod<UpdateCheckerScheduledAtRequest, {}>;
|
|
298
|
+
export type FiltersCrudService_UpdateIsSystem = RpcMethod<UpdateIsSystemRequest, {}>;
|
|
299
|
+
export type FiltersCrudService_UpdateExpirationDate = RpcMethod<UpdateExpirationDateRequest, {}>;
|
|
300
|
+
export type FiltersCrudService_UpdateCreated = RpcMethod<UpdateCreatedRequest, {}>;
|
|
301
|
+
export type FiltersCrudService_UpdateFilterExpressionRaw = RpcMethod<UpdateFilterExpressionRawRequest, {}>;
|
|
302
|
+
export type FiltersCrudService_UpdateFiltrationID = RpcMethod<UpdateFiltrationIDRequest, {}>;
|
|
303
|
+
export type FiltersCrudService_UpdateUpdated = RpcMethod<UpdateUpdatedRequest, {}>;
|
|
304
|
+
export type FiltersCrudService_UpdateDescription = RpcMethod<UpdateDescriptionRequest, {}>;
|
|
305
|
+
export type FiltersCrudService_UpdateDeviceLoadPolicy = RpcMethod<UpdateDeviceLoadPolicyRequest, {}>;
|
|
306
|
+
export type FiltersCrudService_UpdateHighSpeed = RpcMethod<UpdateHighSpeedRequest, {}>;
|
|
228
307
|
export interface FiltersCrudService {
|
|
229
|
-
Create
|
|
230
|
-
CreateMany
|
|
231
|
-
Get
|
|
232
|
-
LoadByCode
|
|
233
|
-
LoadByAccountIDName
|
|
234
|
-
Delete
|
|
235
|
-
DeleteMany
|
|
236
|
-
Count
|
|
237
|
-
GetPage
|
|
238
|
-
List
|
|
239
|
-
Paginate
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
308
|
+
Create: FiltersCrudService_Create;
|
|
309
|
+
CreateMany: FiltersCrudService_CreateMany;
|
|
310
|
+
Get: FiltersCrudService_Get;
|
|
311
|
+
LoadByCode: FiltersCrudService_LoadByCode;
|
|
312
|
+
LoadByAccountIDName: FiltersCrudService_LoadByAccountIDName;
|
|
313
|
+
Delete: FiltersCrudService_Delete;
|
|
314
|
+
DeleteMany: FiltersCrudService_DeleteMany;
|
|
315
|
+
Count: FiltersCrudService_Count;
|
|
316
|
+
GetPage: FiltersCrudService_GetPage;
|
|
317
|
+
List: FiltersCrudService_List;
|
|
318
|
+
Paginate: FiltersCrudService_Paginate;
|
|
319
|
+
/**
|
|
320
|
+
* List2 reads the whole collection within a single query, so the result is always a
|
|
321
|
+
* consistent snapshot, unlike the List + Paginate pair which reads each page separately.
|
|
322
|
+
*/
|
|
323
|
+
List2: FiltersCrudService_List2;
|
|
324
|
+
UpdateCode: FiltersCrudService_UpdateCode;
|
|
325
|
+
UpdateAccountID: FiltersCrudService_UpdateAccountID;
|
|
326
|
+
UpdateName: FiltersCrudService_UpdateName;
|
|
327
|
+
UpdateApplicationID: FiltersCrudService_UpdateApplicationID;
|
|
328
|
+
UpdateIsFiltrationInProgress: FiltersCrudService_UpdateIsFiltrationInProgress;
|
|
329
|
+
UpdateFiltrationStartedAt: FiltersCrudService_UpdateFiltrationStartedAt;
|
|
330
|
+
UpdateFiltrationLastFilteredAt: FiltersCrudService_UpdateFiltrationLastFilteredAt;
|
|
331
|
+
UpdateFiltrationLastCheckedAt: FiltersCrudService_UpdateFiltrationLastCheckedAt;
|
|
332
|
+
UpdateFiltrationScheduledAt: FiltersCrudService_UpdateFiltrationScheduledAt;
|
|
333
|
+
UpdateCheckerScheduledAt: FiltersCrudService_UpdateCheckerScheduledAt;
|
|
334
|
+
UpdateIsSystem: FiltersCrudService_UpdateIsSystem;
|
|
335
|
+
UpdateExpirationDate: FiltersCrudService_UpdateExpirationDate;
|
|
336
|
+
UpdateCreated: FiltersCrudService_UpdateCreated;
|
|
337
|
+
UpdateFilterExpressionRaw: FiltersCrudService_UpdateFilterExpressionRaw;
|
|
338
|
+
UpdateFiltrationID: FiltersCrudService_UpdateFiltrationID;
|
|
339
|
+
UpdateUpdated: FiltersCrudService_UpdateUpdated;
|
|
340
|
+
UpdateDescription: FiltersCrudService_UpdateDescription;
|
|
341
|
+
UpdateDeviceLoadPolicy: FiltersCrudService_UpdateDeviceLoadPolicy;
|
|
342
|
+
UpdateHighSpeed: FiltersCrudService_UpdateHighSpeed;
|
|
260
343
|
}
|
|
261
344
|
export type CreateRequest = {
|
|
262
345
|
Code?: string;
|
|
@@ -433,6 +516,11 @@ export type LoadByAccountIDNameRequest = {
|
|
|
433
516
|
export type LoadByAccountIDNameResponse = {
|
|
434
517
|
filter: Filter;
|
|
435
518
|
};
|
|
519
|
+
/**
|
|
520
|
+
* This struct is used to avoid protoc compiler warnings about unused includes in case when
|
|
521
|
+
* there are no usage for timestamp.* and wrappers.*
|
|
522
|
+
* This can be removed if you figure out how to remove unused includes.
|
|
523
|
+
*/
|
|
436
524
|
export type __filter_model_internal = {
|
|
437
525
|
f1: string;
|
|
438
526
|
f2: Date;
|
|
@@ -466,12 +554,14 @@ export type FilterExpression_Operation = {
|
|
|
466
554
|
};
|
|
467
555
|
export type FilterExpression_Application_TokenPresence = 'TOKEN_PRESENCE_UNSPECIFIED' | 'TOKEN_PRESENCE_WITH_TOKENS' | 'TOKEN_PRESENCE_WITHOUT_TOKENS' | 'TOKEN_PRESENCE_ALL';
|
|
468
556
|
export type FilterExpression_Application_DevicePresence = 'DEVICE_PRESENCE_UNSPECIFIED' | 'DEVICE_PRESENCE_WITH_DEVICES' | 'DEVICE_PRESENCE_WITHOUT_DEVICES' | 'DEVICE_PRESENCE_ALL';
|
|
557
|
+
/** Application specifies set of devices that subscribed to given applications */
|
|
469
558
|
export type FilterExpression_Application = {
|
|
470
559
|
codes: string[];
|
|
471
560
|
platforms: number[];
|
|
472
561
|
tokenPresence: FilterExpression_Application_TokenPresence;
|
|
473
562
|
devicePresence: FilterExpression_Application_DevicePresence;
|
|
474
563
|
};
|
|
564
|
+
/** Geo specifies set of devices located within given coordinate range */
|
|
475
565
|
export type FilterExpression_Geo = {
|
|
476
566
|
application: string;
|
|
477
567
|
lat: number;
|
|
@@ -515,6 +605,7 @@ export type FilterExpression_BestTimeToSend_Value_kind = FilterExpression_BestTi
|
|
|
515
605
|
export type FilterExpression_BestTimeToSend_Value = {
|
|
516
606
|
kind: FilterExpression_BestTimeToSend_Value_kind;
|
|
517
607
|
};
|
|
608
|
+
/** BestTimeToSend specifies set of devices associated with given best time to send value */
|
|
518
609
|
export type FilterExpression_BestTimeToSend = {
|
|
519
610
|
applications: string[];
|
|
520
611
|
value: FilterExpression_BestTimeToSend_Value;
|
|
@@ -523,9 +614,14 @@ export type FilterExpression_Segment = {
|
|
|
523
614
|
application: string;
|
|
524
615
|
segment: string;
|
|
525
616
|
};
|
|
617
|
+
/**
|
|
618
|
+
* OPERATOR_UNSPECIFIED is read as OPERATOR_IN: filters saved before the
|
|
619
|
+
* operator existed carry no value here.
|
|
620
|
+
*/
|
|
526
621
|
export type FilterExpression_List_Operator = 'OPERATOR_UNSPECIFIED' | 'OPERATOR_IN' | 'OPERATOR_NOT_IN' | 'OPERATOR_STARTS_WITH' | 'OPERATOR_ENDS_WITH' | 'OPERATOR_CONTAINS';
|
|
527
622
|
export type FilterExpression_List = {
|
|
528
623
|
application: string;
|
|
624
|
+
/** kind: users | devices | tokens */
|
|
529
625
|
kind: string;
|
|
530
626
|
users: string[];
|
|
531
627
|
devices: string[];
|
|
@@ -536,6 +632,7 @@ export type FilterExpression_ExternalSegment = {
|
|
|
536
632
|
application: string;
|
|
537
633
|
segment: string;
|
|
538
634
|
};
|
|
635
|
+
/** UserID/HWID set stored in database */
|
|
539
636
|
export type FilterExpression_Static = {
|
|
540
637
|
application: string;
|
|
541
638
|
segment: string;
|
|
@@ -1047,6 +1144,7 @@ export type FilterExpression_Event_Attribute = {
|
|
|
1047
1144
|
name: string;
|
|
1048
1145
|
kind: FilterExpression_Event_Attribute_kind;
|
|
1049
1146
|
};
|
|
1147
|
+
/** Event specifies set of devices associated with given event parameters */
|
|
1050
1148
|
export type FilterExpression_Event = {
|
|
1051
1149
|
application: string;
|
|
1052
1150
|
event: string;
|
|
@@ -1055,6 +1153,10 @@ export type FilterExpression_Event = {
|
|
|
1055
1153
|
attributes: FilterExpression_Event_Attribute[];
|
|
1056
1154
|
platforms: string[];
|
|
1057
1155
|
hwids: string[];
|
|
1156
|
+
/**
|
|
1157
|
+
* sums restricts the sum of numeric attributes over the matched events of a device or user.
|
|
1158
|
+
* Only integer and price attributes with eq/neq/lte/gte/between are accepted.
|
|
1159
|
+
*/
|
|
1058
1160
|
sums: FilterExpression_Event_Attribute[];
|
|
1059
1161
|
};
|
|
1060
1162
|
export type FilterExpression_Updated_Condition_Lte = {
|
|
@@ -1084,6 +1186,7 @@ export type FilterExpression_Updated_Condition_kind = FilterExpression_Updated_C
|
|
|
1084
1186
|
export type FilterExpression_Updated_Condition = {
|
|
1085
1187
|
kind: FilterExpression_Updated_Condition_kind;
|
|
1086
1188
|
};
|
|
1189
|
+
/** Updated specifies set of devices that match restrictions for device updated at field */
|
|
1087
1190
|
export type FilterExpression_Updated = {
|
|
1088
1191
|
application: string;
|
|
1089
1192
|
condition: FilterExpression_Updated_Condition;
|
|
@@ -1563,11 +1666,13 @@ export type FilterExpression_Tag_kind_timezone = {
|
|
|
1563
1666
|
data: FilterExpression_Tag_Timezone;
|
|
1564
1667
|
};
|
|
1565
1668
|
export type FilterExpression_Tag_kind = FilterExpression_Tag_kind_integer | FilterExpression_Tag_kind_string | FilterExpression_Tag_kind_list | FilterExpression_Tag_kind_date | FilterExpression_Tag_kind_boolean | FilterExpression_Tag_kind_price | FilterExpression_Tag_kind_version | FilterExpression_Tag_kind_timezone;
|
|
1669
|
+
/** Tag specifies set of devices that match given tag conditions */
|
|
1566
1670
|
export type FilterExpression_Tag = {
|
|
1567
1671
|
name: string;
|
|
1568
1672
|
application: string;
|
|
1569
1673
|
kind: FilterExpression_Tag_kind;
|
|
1570
1674
|
};
|
|
1675
|
+
/** Tag specifies set of devices that match given tag conditions */
|
|
1571
1676
|
export type FilterExpression_TagDateMatch = {
|
|
1572
1677
|
name: string;
|
|
1573
1678
|
application: string;
|
|
@@ -1576,6 +1681,7 @@ export type FilterExpression_TagDateMatch = {
|
|
|
1576
1681
|
addDays: number;
|
|
1577
1682
|
};
|
|
1578
1683
|
export type FilterExpression_FeatureFlag_State = 'STATE_UNSPECIFIED' | 'STATE_ENABLED' | 'STATE_DISABLED' | 'STATE_IN_RULE';
|
|
1684
|
+
/** FeatureFlag specifies devices by their last feature flag assignment */
|
|
1579
1685
|
export type FilterExpression_FeatureFlag = {
|
|
1580
1686
|
application: string;
|
|
1581
1687
|
key: string;
|
|
@@ -1635,6 +1741,7 @@ export type FilterExpression_kind_featureFlag = {
|
|
|
1635
1741
|
data: FilterExpression_FeatureFlag;
|
|
1636
1742
|
};
|
|
1637
1743
|
export type FilterExpression_kind = FilterExpression_kind_operation | FilterExpression_kind_application | FilterExpression_kind_tag | FilterExpression_kind_geo | FilterExpression_kind_static | FilterExpression_kind_event | FilterExpression_kind_updated | FilterExpression_kind_bestTimeToSend | FilterExpression_kind_tagDateMatch | FilterExpression_kind_segment | FilterExpression_kind_list | FilterExpression_kind_externalSegment | FilterExpression_kind_featureFlag;
|
|
1744
|
+
/** FilterExpression describes structures for querying devices from the database */
|
|
1638
1745
|
export type FilterExpression = {
|
|
1639
1746
|
kind: FilterExpression_kind;
|
|
1640
1747
|
};
|
package/types.d.ts
CHANGED
|
@@ -7,12 +7,14 @@ export type InterfaceDefinition = {
|
|
|
7
7
|
oneofs?: {
|
|
8
8
|
[oneofName: string]: OneofGroup;
|
|
9
9
|
};
|
|
10
|
+
comment?: string;
|
|
10
11
|
};
|
|
11
12
|
export type FieldDefinition = {
|
|
12
13
|
type: string;
|
|
13
14
|
mapKeyType?: string;
|
|
14
15
|
array?: boolean;
|
|
15
16
|
optional?: boolean;
|
|
17
|
+
comment?: string;
|
|
16
18
|
};
|
|
17
19
|
export type OneofGroup = {
|
|
18
20
|
oneof: string[];
|
|
@@ -20,6 +22,9 @@ export type OneofGroup = {
|
|
|
20
22
|
export type EnumDefinition = {
|
|
21
23
|
type: 'E';
|
|
22
24
|
values: string[];
|
|
25
|
+
valuesArgs?: Record<string, string[]>;
|
|
26
|
+
comment?: string;
|
|
27
|
+
valueComments?: Record<string, string>;
|
|
23
28
|
};
|
|
24
29
|
export type ServiceDefinition = {
|
|
25
30
|
type: 'S';
|
|
@@ -27,12 +32,20 @@ export type ServiceDefinition = {
|
|
|
27
32
|
methods: {
|
|
28
33
|
[methodName: string]: ServiceMethod;
|
|
29
34
|
};
|
|
35
|
+
comment?: string;
|
|
30
36
|
};
|
|
31
37
|
export type ServiceMethod = {
|
|
32
38
|
request: string;
|
|
33
39
|
response: string;
|
|
34
40
|
method: string;
|
|
35
41
|
path: string;
|
|
42
|
+
serverStreaming?: boolean;
|
|
43
|
+
errors?: {
|
|
44
|
+
fieldViolations?: string;
|
|
45
|
+
failedPreconditions?: string;
|
|
46
|
+
commonFailedPreconditions?: string;
|
|
47
|
+
};
|
|
48
|
+
comment?: string;
|
|
36
49
|
};
|
|
37
50
|
export type InterfaceDefinitionRaw = InterfaceDefinition & {
|
|
38
51
|
package: string;
|
package/types.js
CHANGED