@pushwoosh/rpc-v2-http-api-data 0.1.865 → 0.1.867
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 +47 -6
- package/package.json +1 -1
- package/pushwoosh_rpc_errors_v3.d.ts +10 -1
- package/pushwoosh_rpc_segments_v3.d.ts +166 -8
- package/types.d.ts +6 -0
package/data.js
CHANGED
|
@@ -23094,7 +23094,30 @@ export const data = {
|
|
|
23094
23094
|
"FILTER_EXPRESSION_HIGH_SPEED_NO_DAYS_AGO",
|
|
23095
23095
|
"FILTER_EXPRESSION_INVALID_COUNTRY_TAG_VALUE",
|
|
23096
23096
|
"FILTER_EXPRESSION_INVALID_LANGUAGE_TAG_VALUE"
|
|
23097
|
-
]
|
|
23097
|
+
],
|
|
23098
|
+
"valuesArgs": {
|
|
23099
|
+
"NAME_TOO_LONG": [
|
|
23100
|
+
"max_length"
|
|
23101
|
+
],
|
|
23102
|
+
"NAME_ALREADY_EXISTS": [
|
|
23103
|
+
"name"
|
|
23104
|
+
],
|
|
23105
|
+
"SEGLANG_PARSE_ERROR": [
|
|
23106
|
+
"parser_error"
|
|
23107
|
+
],
|
|
23108
|
+
"FILTER_EXPRESSION_PARSE_ERROR": [
|
|
23109
|
+
"parser_error"
|
|
23110
|
+
],
|
|
23111
|
+
"FILTER_EXPRESSION_TOO_DEEP": [
|
|
23112
|
+
"max_depth"
|
|
23113
|
+
],
|
|
23114
|
+
"FILTER_EXPRESSION_INVALID_COUNTRY_TAG_VALUE": [
|
|
23115
|
+
"value"
|
|
23116
|
+
],
|
|
23117
|
+
"FILTER_EXPRESSION_INVALID_LANGUAGE_TAG_VALUE": [
|
|
23118
|
+
"value"
|
|
23119
|
+
]
|
|
23120
|
+
}
|
|
23098
23121
|
},
|
|
23099
23122
|
"pushwoosh.rpc.segments.v3.SegmentsService_Delete_FailedPreconditions": {
|
|
23100
23123
|
"type": "E",
|
|
@@ -23119,31 +23142,49 @@ export const data = {
|
|
|
23119
23142
|
"request": "pushwoosh.rpc.segments.v3.ListRequest",
|
|
23120
23143
|
"response": "pushwoosh.rpc.segments.v3.ListResponse",
|
|
23121
23144
|
"method": "get",
|
|
23122
|
-
"path": "/api/v3/segments"
|
|
23145
|
+
"path": "/api/v3/segments",
|
|
23146
|
+
"errors": {
|
|
23147
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
23148
|
+
}
|
|
23123
23149
|
},
|
|
23124
23150
|
"Get": {
|
|
23125
23151
|
"request": "pushwoosh.rpc.segments.v3.GetRequest",
|
|
23126
23152
|
"response": "pushwoosh.rpc.segments.v3.GetResponse",
|
|
23127
23153
|
"method": "get",
|
|
23128
|
-
"path": "/api/v3/segments/{segment}"
|
|
23154
|
+
"path": "/api/v3/segments/{segment}",
|
|
23155
|
+
"errors": {
|
|
23156
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
23157
|
+
}
|
|
23129
23158
|
},
|
|
23130
23159
|
"Create": {
|
|
23131
23160
|
"request": "pushwoosh.rpc.segments.v3.CreateRequest",
|
|
23132
23161
|
"response": "pushwoosh.rpc.segments.v3.CreateResponse",
|
|
23133
23162
|
"method": "post",
|
|
23134
|
-
"path": "/api/v3/segments"
|
|
23163
|
+
"path": "/api/v3/segments",
|
|
23164
|
+
"errors": {
|
|
23165
|
+
"fieldViolations": "pushwoosh.rpc.segments.v3.SegmentsService_Create_FieldViolations",
|
|
23166
|
+
"failedPreconditions": "pushwoosh.rpc.segments.v3.SegmentsService_Create_FailedPreconditions",
|
|
23167
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
23168
|
+
}
|
|
23135
23169
|
},
|
|
23136
23170
|
"Update": {
|
|
23137
23171
|
"request": "pushwoosh.rpc.segments.v3.UpdateRequest",
|
|
23138
23172
|
"response": "pushwoosh.rpc.segments.v3.UpdateResponse",
|
|
23139
23173
|
"method": "put",
|
|
23140
|
-
"path": "/api/v3/segments/{segment}"
|
|
23174
|
+
"path": "/api/v3/segments/{segment}",
|
|
23175
|
+
"errors": {
|
|
23176
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
23177
|
+
}
|
|
23141
23178
|
},
|
|
23142
23179
|
"Delete": {
|
|
23143
23180
|
"request": "pushwoosh.rpc.segments.v3.DeleteRequest",
|
|
23144
23181
|
"response": "pushwoosh.rpc.segments.v3.DeleteResponse",
|
|
23145
23182
|
"method": "delete",
|
|
23146
|
-
"path": "/api/v3/segments/{segment}"
|
|
23183
|
+
"path": "/api/v3/segments/{segment}",
|
|
23184
|
+
"errors": {
|
|
23185
|
+
"failedPreconditions": "pushwoosh.rpc.segments.v3.SegmentsService_Delete_FailedPreconditions",
|
|
23186
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
23187
|
+
}
|
|
23147
23188
|
}
|
|
23148
23189
|
}
|
|
23149
23190
|
},
|
package/package.json
CHANGED
|
@@ -14,4 +14,13 @@ export type FailedPrecondition = {
|
|
|
14
14
|
Type: string;
|
|
15
15
|
Description: string;
|
|
16
16
|
};
|
|
17
|
-
export type Common_FailedPreconditions =
|
|
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
|
+
};
|
|
@@ -1,14 +1,172 @@
|
|
|
1
|
+
import { Common_FailedPreconditions as pushwoosh_rpc_errors_v3_Common_FailedPreconditions } from './pushwoosh_rpc_errors_v3';
|
|
1
2
|
import { FilterExpression as pushwoosh_objects_filters_v1_FilterExpression } from './pushwoosh_objects_filters_v1';
|
|
2
|
-
export type SegmentsService_Create_FieldViolations =
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export type SegmentsService_Create_FieldViolations = {
|
|
4
|
+
reason: 'FV_UNSPECIFIED';
|
|
5
|
+
field: string;
|
|
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
|
+
};
|
|
5
145
|
export interface SegmentsService {
|
|
6
|
-
List
|
|
7
|
-
Get
|
|
8
|
-
Create
|
|
9
|
-
Update
|
|
10
|
-
Delete
|
|
146
|
+
List: SegmentsService_List;
|
|
147
|
+
Get: SegmentsService_Get;
|
|
148
|
+
Create: SegmentsService_Create;
|
|
149
|
+
Update: SegmentsService_Update;
|
|
150
|
+
Delete: SegmentsService_Delete;
|
|
11
151
|
}
|
|
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
|
+
};
|
|
12
170
|
export type DeviceLoadPolicy = 'FILTER' | 'ALL';
|
|
13
171
|
export type ListRequest = {
|
|
14
172
|
application?: string;
|
package/types.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export type OneofGroup = {
|
|
|
20
20
|
export type EnumDefinition = {
|
|
21
21
|
type: 'E';
|
|
22
22
|
values: string[];
|
|
23
|
+
valuesArgs?: Record<string, string[]>;
|
|
23
24
|
};
|
|
24
25
|
export type ServiceDefinition = {
|
|
25
26
|
type: 'S';
|
|
@@ -34,6 +35,11 @@ export type ServiceMethod = {
|
|
|
34
35
|
method: string;
|
|
35
36
|
path: string;
|
|
36
37
|
serverStreaming?: boolean;
|
|
38
|
+
errors?: {
|
|
39
|
+
fieldViolations?: string;
|
|
40
|
+
failedPreconditions?: string;
|
|
41
|
+
commonFailedPreconditions?: string;
|
|
42
|
+
};
|
|
37
43
|
};
|
|
38
44
|
export type InterfaceDefinitionRaw = InterfaceDefinition & {
|
|
39
45
|
package: string;
|