@pushwoosh/rpc-v2-http-api-data 0.1.864 → 0.1.865
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 +17 -47
- package/inapp_messages.d.ts +3 -0
- package/package.json +1 -1
- package/pushwoosh_rpc_errors_v3.d.ts +1 -10
- package/pushwoosh_rpc_segments_v3.d.ts +8 -166
- package/types.d.ts +0 -6
package/data.js
CHANGED
|
@@ -10394,6 +10394,9 @@ export const data = {
|
|
|
10394
10394
|
"filterName": {
|
|
10395
10395
|
"type": "string"
|
|
10396
10396
|
},
|
|
10397
|
+
"filterCode": {
|
|
10398
|
+
"type": "string"
|
|
10399
|
+
},
|
|
10397
10400
|
"devicesFilter": {
|
|
10398
10401
|
"type": "string"
|
|
10399
10402
|
},
|
|
@@ -10507,6 +10510,10 @@ export const data = {
|
|
|
10507
10510
|
"type": "string",
|
|
10508
10511
|
"optional": true
|
|
10509
10512
|
},
|
|
10513
|
+
"filterCode": {
|
|
10514
|
+
"type": "string",
|
|
10515
|
+
"optional": true
|
|
10516
|
+
},
|
|
10510
10517
|
"segment": {
|
|
10511
10518
|
"type": "string",
|
|
10512
10519
|
"optional": true
|
|
@@ -10571,6 +10578,10 @@ export const data = {
|
|
|
10571
10578
|
"type": "string",
|
|
10572
10579
|
"optional": true
|
|
10573
10580
|
},
|
|
10581
|
+
"filterCode": {
|
|
10582
|
+
"type": "string",
|
|
10583
|
+
"optional": true
|
|
10584
|
+
},
|
|
10574
10585
|
"segment": {
|
|
10575
10586
|
"type": "string",
|
|
10576
10587
|
"optional": true
|
|
@@ -23083,30 +23094,7 @@ export const data = {
|
|
|
23083
23094
|
"FILTER_EXPRESSION_HIGH_SPEED_NO_DAYS_AGO",
|
|
23084
23095
|
"FILTER_EXPRESSION_INVALID_COUNTRY_TAG_VALUE",
|
|
23085
23096
|
"FILTER_EXPRESSION_INVALID_LANGUAGE_TAG_VALUE"
|
|
23086
|
-
]
|
|
23087
|
-
"valuesArgs": {
|
|
23088
|
-
"NAME_TOO_LONG": [
|
|
23089
|
-
"max_length"
|
|
23090
|
-
],
|
|
23091
|
-
"NAME_ALREADY_EXISTS": [
|
|
23092
|
-
"name"
|
|
23093
|
-
],
|
|
23094
|
-
"SEGLANG_PARSE_ERROR": [
|
|
23095
|
-
"parser_error"
|
|
23096
|
-
],
|
|
23097
|
-
"FILTER_EXPRESSION_PARSE_ERROR": [
|
|
23098
|
-
"parser_error"
|
|
23099
|
-
],
|
|
23100
|
-
"FILTER_EXPRESSION_TOO_DEEP": [
|
|
23101
|
-
"max_depth"
|
|
23102
|
-
],
|
|
23103
|
-
"FILTER_EXPRESSION_INVALID_COUNTRY_TAG_VALUE": [
|
|
23104
|
-
"value"
|
|
23105
|
-
],
|
|
23106
|
-
"FILTER_EXPRESSION_INVALID_LANGUAGE_TAG_VALUE": [
|
|
23107
|
-
"value"
|
|
23108
|
-
]
|
|
23109
|
-
}
|
|
23097
|
+
]
|
|
23110
23098
|
},
|
|
23111
23099
|
"pushwoosh.rpc.segments.v3.SegmentsService_Delete_FailedPreconditions": {
|
|
23112
23100
|
"type": "E",
|
|
@@ -23131,49 +23119,31 @@ export const data = {
|
|
|
23131
23119
|
"request": "pushwoosh.rpc.segments.v3.ListRequest",
|
|
23132
23120
|
"response": "pushwoosh.rpc.segments.v3.ListResponse",
|
|
23133
23121
|
"method": "get",
|
|
23134
|
-
"path": "/api/v3/segments"
|
|
23135
|
-
"errors": {
|
|
23136
|
-
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
23137
|
-
}
|
|
23122
|
+
"path": "/api/v3/segments"
|
|
23138
23123
|
},
|
|
23139
23124
|
"Get": {
|
|
23140
23125
|
"request": "pushwoosh.rpc.segments.v3.GetRequest",
|
|
23141
23126
|
"response": "pushwoosh.rpc.segments.v3.GetResponse",
|
|
23142
23127
|
"method": "get",
|
|
23143
|
-
"path": "/api/v3/segments/{segment}"
|
|
23144
|
-
"errors": {
|
|
23145
|
-
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
23146
|
-
}
|
|
23128
|
+
"path": "/api/v3/segments/{segment}"
|
|
23147
23129
|
},
|
|
23148
23130
|
"Create": {
|
|
23149
23131
|
"request": "pushwoosh.rpc.segments.v3.CreateRequest",
|
|
23150
23132
|
"response": "pushwoosh.rpc.segments.v3.CreateResponse",
|
|
23151
23133
|
"method": "post",
|
|
23152
|
-
"path": "/api/v3/segments"
|
|
23153
|
-
"errors": {
|
|
23154
|
-
"fieldViolations": "pushwoosh.rpc.segments.v3.SegmentsService_Create_FieldViolations",
|
|
23155
|
-
"failedPreconditions": "pushwoosh.rpc.segments.v3.SegmentsService_Create_FailedPreconditions",
|
|
23156
|
-
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
23157
|
-
}
|
|
23134
|
+
"path": "/api/v3/segments"
|
|
23158
23135
|
},
|
|
23159
23136
|
"Update": {
|
|
23160
23137
|
"request": "pushwoosh.rpc.segments.v3.UpdateRequest",
|
|
23161
23138
|
"response": "pushwoosh.rpc.segments.v3.UpdateResponse",
|
|
23162
23139
|
"method": "put",
|
|
23163
|
-
"path": "/api/v3/segments/{segment}"
|
|
23164
|
-
"errors": {
|
|
23165
|
-
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
23166
|
-
}
|
|
23140
|
+
"path": "/api/v3/segments/{segment}"
|
|
23167
23141
|
},
|
|
23168
23142
|
"Delete": {
|
|
23169
23143
|
"request": "pushwoosh.rpc.segments.v3.DeleteRequest",
|
|
23170
23144
|
"response": "pushwoosh.rpc.segments.v3.DeleteResponse",
|
|
23171
23145
|
"method": "delete",
|
|
23172
|
-
"path": "/api/v3/segments/{segment}"
|
|
23173
|
-
"errors": {
|
|
23174
|
-
"failedPreconditions": "pushwoosh.rpc.segments.v3.SegmentsService_Delete_FailedPreconditions",
|
|
23175
|
-
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
23176
|
-
}
|
|
23146
|
+
"path": "/api/v3/segments/{segment}"
|
|
23177
23147
|
}
|
|
23178
23148
|
}
|
|
23179
23149
|
},
|
package/inapp_messages.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export type Inapp = {
|
|
|
30
30
|
updated: Date;
|
|
31
31
|
eventId: number;
|
|
32
32
|
filterName: string;
|
|
33
|
+
filterCode: string;
|
|
33
34
|
devicesFilter: string;
|
|
34
35
|
segment: string;
|
|
35
36
|
priority: number;
|
|
@@ -66,6 +67,7 @@ export type CreateInappRequest = {
|
|
|
66
67
|
required?: boolean;
|
|
67
68
|
richMediaCode?: string;
|
|
68
69
|
filterName?: string;
|
|
70
|
+
filterCode?: string;
|
|
69
71
|
segment?: string;
|
|
70
72
|
eventId?: number;
|
|
71
73
|
devicesFilter?: string;
|
|
@@ -83,6 +85,7 @@ export type UpdateInappRequest = {
|
|
|
83
85
|
required?: boolean;
|
|
84
86
|
richMediaCode?: string;
|
|
85
87
|
filterName?: string;
|
|
88
|
+
filterCode?: string;
|
|
86
89
|
segment?: string;
|
|
87
90
|
eventId?: number;
|
|
88
91
|
devicesFilter?: string;
|
package/package.json
CHANGED
|
@@ -14,13 +14,4 @@ export type FailedPrecondition = {
|
|
|
14
14
|
Type: string;
|
|
15
15
|
Description: string;
|
|
16
16
|
};
|
|
17
|
-
export type Common_FailedPreconditions =
|
|
18
|
-
type: 'FP_UNSPECIFIED';
|
|
19
|
-
description: string;
|
|
20
|
-
} | {
|
|
21
|
-
type: 'APPLICATION_IS_MANDATORY';
|
|
22
|
-
description: string;
|
|
23
|
-
} | {
|
|
24
|
-
type: 'APPLICATION_NOT_FOUND';
|
|
25
|
-
description: string;
|
|
26
|
-
};
|
|
17
|
+
export type Common_FailedPreconditions = 'FP_UNSPECIFIED' | 'APPLICATION_IS_MANDATORY' | 'APPLICATION_NOT_FOUND';
|
|
@@ -1,172 +1,14 @@
|
|
|
1
|
-
import { Common_FailedPreconditions as pushwoosh_rpc_errors_v3_Common_FailedPreconditions } from './pushwoosh_rpc_errors_v3';
|
|
2
1
|
import { FilterExpression as pushwoosh_objects_filters_v1_FilterExpression } from './pushwoosh_objects_filters_v1';
|
|
3
|
-
export type SegmentsService_Create_FieldViolations =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
description: string;
|
|
7
|
-
} | {
|
|
8
|
-
reason: 'NAME_EMPTY';
|
|
9
|
-
field: string;
|
|
10
|
-
description: string;
|
|
11
|
-
} | {
|
|
12
|
-
reason: 'NAME_TOO_LONG';
|
|
13
|
-
field: string;
|
|
14
|
-
description: string;
|
|
15
|
-
args: {
|
|
16
|
-
max_length: string;
|
|
17
|
-
};
|
|
18
|
-
} | {
|
|
19
|
-
reason: 'NAME_ALREADY_EXISTS';
|
|
20
|
-
field: string;
|
|
21
|
-
description: string;
|
|
22
|
-
args: {
|
|
23
|
-
name: string;
|
|
24
|
-
};
|
|
25
|
-
} | {
|
|
26
|
-
reason: 'EXPIRE_AT_IN_PAST';
|
|
27
|
-
field: string;
|
|
28
|
-
description: string;
|
|
29
|
-
} | {
|
|
30
|
-
reason: 'CONDITIONS_REQUIRED';
|
|
31
|
-
field: string;
|
|
32
|
-
description: string;
|
|
33
|
-
} | {
|
|
34
|
-
reason: 'SEGLANG_PARSE_ERROR';
|
|
35
|
-
field: string;
|
|
36
|
-
description: string;
|
|
37
|
-
args: {
|
|
38
|
-
parser_error: string;
|
|
39
|
-
};
|
|
40
|
-
} | {
|
|
41
|
-
reason: 'FILTER_EXPRESSION_PARSE_ERROR';
|
|
42
|
-
field: string;
|
|
43
|
-
description: string;
|
|
44
|
-
args: {
|
|
45
|
-
parser_error: string;
|
|
46
|
-
};
|
|
47
|
-
} | {
|
|
48
|
-
reason: 'FILTER_EXPRESSION_ONE_APP';
|
|
49
|
-
field: string;
|
|
50
|
-
description: string;
|
|
51
|
-
} | {
|
|
52
|
-
reason: 'FILTER_EXPRESSION_TOO_DEEP';
|
|
53
|
-
field: string;
|
|
54
|
-
description: string;
|
|
55
|
-
args: {
|
|
56
|
-
max_depth: string;
|
|
57
|
-
};
|
|
58
|
-
} | {
|
|
59
|
-
reason: 'FILTER_EXPRESSION_HIGH_SPEED_TAGS_ONLY';
|
|
60
|
-
field: string;
|
|
61
|
-
description: string;
|
|
62
|
-
} | {
|
|
63
|
-
reason: 'FILTER_EXPRESSION_HIGH_SPEED_NO_DAYS_AGO';
|
|
64
|
-
field: string;
|
|
65
|
-
description: string;
|
|
66
|
-
} | {
|
|
67
|
-
reason: 'FILTER_EXPRESSION_INVALID_COUNTRY_TAG_VALUE';
|
|
68
|
-
field: string;
|
|
69
|
-
description: string;
|
|
70
|
-
args: {
|
|
71
|
-
value: string;
|
|
72
|
-
};
|
|
73
|
-
} | {
|
|
74
|
-
reason: 'FILTER_EXPRESSION_INVALID_LANGUAGE_TAG_VALUE';
|
|
75
|
-
field: string;
|
|
76
|
-
description: string;
|
|
77
|
-
args: {
|
|
78
|
-
value: string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
export type SegmentsService_Delete_FailedPreconditions = {
|
|
82
|
-
type: 'FP_DELETE_UNSPECIFIED';
|
|
83
|
-
description: string;
|
|
84
|
-
} | {
|
|
85
|
-
type: 'SEGMENT_NOT_FOUND';
|
|
86
|
-
description: string;
|
|
87
|
-
};
|
|
88
|
-
export type SegmentsService_Create_FailedPreconditions = {
|
|
89
|
-
type: 'FP_UNSPECIFIED';
|
|
90
|
-
description: string;
|
|
91
|
-
} | {
|
|
92
|
-
type: 'HIGH_SPEED_SEGMENTS_NOT_ALLOWED';
|
|
93
|
-
description: string;
|
|
94
|
-
} | {
|
|
95
|
-
type: 'HIGH_SPEED_SEGMENTS_LIMIT_REACHED';
|
|
96
|
-
description: string;
|
|
97
|
-
};
|
|
98
|
-
export type SegmentsService_List = ((request: ListRequest) => Promise<ListResponse>) & {
|
|
99
|
-
Error(e: unknown): {
|
|
100
|
-
error: unknown;
|
|
101
|
-
failedPreconditions?: undefined;
|
|
102
|
-
} | {
|
|
103
|
-
error?: undefined;
|
|
104
|
-
failedPreconditions?: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
export type SegmentsService_Get = ((request: GetRequest) => Promise<GetResponse>) & {
|
|
108
|
-
Error(e: unknown): {
|
|
109
|
-
error: unknown;
|
|
110
|
-
failedPreconditions?: undefined;
|
|
111
|
-
} | {
|
|
112
|
-
error?: undefined;
|
|
113
|
-
failedPreconditions?: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
export type SegmentsService_Create = ((request: CreateRequest) => Promise<CreateResponse>) & {
|
|
117
|
-
Error(e: unknown): {
|
|
118
|
-
error: unknown;
|
|
119
|
-
fieldViolations?: undefined;
|
|
120
|
-
failedPreconditions?: undefined;
|
|
121
|
-
} | {
|
|
122
|
-
error?: undefined;
|
|
123
|
-
fieldViolations?: SegmentsService_Create_FieldViolations[];
|
|
124
|
-
failedPreconditions?: SegmentsService_Create_FailedPreconditions | pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
export type SegmentsService_Update = ((request: UpdateRequest) => Promise<UpdateResponse>) & {
|
|
128
|
-
Error(e: unknown): {
|
|
129
|
-
error: unknown;
|
|
130
|
-
failedPreconditions?: undefined;
|
|
131
|
-
} | {
|
|
132
|
-
error?: undefined;
|
|
133
|
-
failedPreconditions?: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
export type SegmentsService_Delete = ((request: DeleteRequest) => Promise<DeleteResponse>) & {
|
|
137
|
-
Error(e: unknown): {
|
|
138
|
-
error: unknown;
|
|
139
|
-
failedPreconditions?: undefined;
|
|
140
|
-
} | {
|
|
141
|
-
error?: undefined;
|
|
142
|
-
failedPreconditions?: SegmentsService_Delete_FailedPreconditions | pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
143
|
-
};
|
|
144
|
-
};
|
|
2
|
+
export type SegmentsService_Create_FieldViolations = 'FV_UNSPECIFIED' | 'NAME_EMPTY' | 'NAME_TOO_LONG' | 'NAME_ALREADY_EXISTS' | 'EXPIRE_AT_IN_PAST' | 'CONDITIONS_REQUIRED' | 'SEGLANG_PARSE_ERROR' | 'FILTER_EXPRESSION_PARSE_ERROR' | 'FILTER_EXPRESSION_ONE_APP' | 'FILTER_EXPRESSION_TOO_DEEP' | 'FILTER_EXPRESSION_HIGH_SPEED_TAGS_ONLY' | 'FILTER_EXPRESSION_HIGH_SPEED_NO_DAYS_AGO' | 'FILTER_EXPRESSION_INVALID_COUNTRY_TAG_VALUE' | 'FILTER_EXPRESSION_INVALID_LANGUAGE_TAG_VALUE';
|
|
3
|
+
export type SegmentsService_Delete_FailedPreconditions = 'FP_DELETE_UNSPECIFIED' | 'SEGMENT_NOT_FOUND';
|
|
4
|
+
export type SegmentsService_Create_FailedPreconditions = 'FP_UNSPECIFIED' | 'HIGH_SPEED_SEGMENTS_NOT_ALLOWED' | 'HIGH_SPEED_SEGMENTS_LIMIT_REACHED';
|
|
145
5
|
export interface SegmentsService {
|
|
146
|
-
List:
|
|
147
|
-
Get:
|
|
148
|
-
Create:
|
|
149
|
-
Update:
|
|
150
|
-
Delete:
|
|
6
|
+
List(request: ListRequest): Promise<ListResponse>;
|
|
7
|
+
Get(request: GetRequest): Promise<GetResponse>;
|
|
8
|
+
Create(request: CreateRequest): Promise<CreateResponse>;
|
|
9
|
+
Update(request: UpdateRequest): Promise<UpdateResponse>;
|
|
10
|
+
Delete(request: DeleteRequest): Promise<DeleteResponse>;
|
|
151
11
|
}
|
|
152
|
-
export type SegmentsService_Errors = {
|
|
153
|
-
List: {
|
|
154
|
-
failedPreconditions: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
155
|
-
};
|
|
156
|
-
Get: {
|
|
157
|
-
failedPreconditions: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
158
|
-
};
|
|
159
|
-
Create: {
|
|
160
|
-
fieldViolations: SegmentsService_Create_FieldViolations[];
|
|
161
|
-
failedPreconditions: SegmentsService_Create_FailedPreconditions | pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
162
|
-
};
|
|
163
|
-
Update: {
|
|
164
|
-
failedPreconditions: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
165
|
-
};
|
|
166
|
-
Delete: {
|
|
167
|
-
failedPreconditions: SegmentsService_Delete_FailedPreconditions | pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
12
|
export type DeviceLoadPolicy = 'FILTER' | 'ALL';
|
|
171
13
|
export type ListRequest = {
|
|
172
14
|
application?: string;
|
package/types.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ export type OneofGroup = {
|
|
|
20
20
|
export type EnumDefinition = {
|
|
21
21
|
type: 'E';
|
|
22
22
|
values: string[];
|
|
23
|
-
valuesArgs?: Record<string, string[]>;
|
|
24
23
|
};
|
|
25
24
|
export type ServiceDefinition = {
|
|
26
25
|
type: 'S';
|
|
@@ -35,11 +34,6 @@ export type ServiceMethod = {
|
|
|
35
34
|
method: string;
|
|
36
35
|
path: string;
|
|
37
36
|
serverStreaming?: boolean;
|
|
38
|
-
errors?: {
|
|
39
|
-
fieldViolations?: string;
|
|
40
|
-
failedPreconditions?: string;
|
|
41
|
-
commonFailedPreconditions?: string;
|
|
42
|
-
};
|
|
43
37
|
};
|
|
44
38
|
export type InterfaceDefinitionRaw = InterfaceDefinition & {
|
|
45
39
|
package: string;
|