@pushwoosh/rpc-v2-http-api-data 0.1.863 → 0.1.864
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 +16 -5
- package/package.json +1 -1
- package/pushwoosh_rpc_segments_v3.d.ts +44 -7
- package/types.d.ts +1 -0
package/data.js
CHANGED
|
@@ -23131,13 +23131,19 @@ export const data = {
|
|
|
23131
23131
|
"request": "pushwoosh.rpc.segments.v3.ListRequest",
|
|
23132
23132
|
"response": "pushwoosh.rpc.segments.v3.ListResponse",
|
|
23133
23133
|
"method": "get",
|
|
23134
|
-
"path": "/api/v3/segments"
|
|
23134
|
+
"path": "/api/v3/segments",
|
|
23135
|
+
"errors": {
|
|
23136
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
23137
|
+
}
|
|
23135
23138
|
},
|
|
23136
23139
|
"Get": {
|
|
23137
23140
|
"request": "pushwoosh.rpc.segments.v3.GetRequest",
|
|
23138
23141
|
"response": "pushwoosh.rpc.segments.v3.GetResponse",
|
|
23139
23142
|
"method": "get",
|
|
23140
|
-
"path": "/api/v3/segments/{segment}"
|
|
23143
|
+
"path": "/api/v3/segments/{segment}",
|
|
23144
|
+
"errors": {
|
|
23145
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
23146
|
+
}
|
|
23141
23147
|
},
|
|
23142
23148
|
"Create": {
|
|
23143
23149
|
"request": "pushwoosh.rpc.segments.v3.CreateRequest",
|
|
@@ -23146,14 +23152,18 @@ export const data = {
|
|
|
23146
23152
|
"path": "/api/v3/segments",
|
|
23147
23153
|
"errors": {
|
|
23148
23154
|
"fieldViolations": "pushwoosh.rpc.segments.v3.SegmentsService_Create_FieldViolations",
|
|
23149
|
-
"failedPreconditions": "pushwoosh.rpc.segments.v3.SegmentsService_Create_FailedPreconditions"
|
|
23155
|
+
"failedPreconditions": "pushwoosh.rpc.segments.v3.SegmentsService_Create_FailedPreconditions",
|
|
23156
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
23150
23157
|
}
|
|
23151
23158
|
},
|
|
23152
23159
|
"Update": {
|
|
23153
23160
|
"request": "pushwoosh.rpc.segments.v3.UpdateRequest",
|
|
23154
23161
|
"response": "pushwoosh.rpc.segments.v3.UpdateResponse",
|
|
23155
23162
|
"method": "put",
|
|
23156
|
-
"path": "/api/v3/segments/{segment}"
|
|
23163
|
+
"path": "/api/v3/segments/{segment}",
|
|
23164
|
+
"errors": {
|
|
23165
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
23166
|
+
}
|
|
23157
23167
|
},
|
|
23158
23168
|
"Delete": {
|
|
23159
23169
|
"request": "pushwoosh.rpc.segments.v3.DeleteRequest",
|
|
@@ -23161,7 +23171,8 @@ export const data = {
|
|
|
23161
23171
|
"method": "delete",
|
|
23162
23172
|
"path": "/api/v3/segments/{segment}",
|
|
23163
23173
|
"errors": {
|
|
23164
|
-
"failedPreconditions": "pushwoosh.rpc.segments.v3.SegmentsService_Delete_FailedPreconditions"
|
|
23174
|
+
"failedPreconditions": "pushwoosh.rpc.segments.v3.SegmentsService_Delete_FailedPreconditions",
|
|
23175
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
23165
23176
|
}
|
|
23166
23177
|
}
|
|
23167
23178
|
}
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
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
3
|
export type SegmentsService_Create_FieldViolations = {
|
|
3
4
|
reason: 'FV_UNSPECIFIED';
|
|
@@ -94,6 +95,24 @@ export type SegmentsService_Create_FailedPreconditions = {
|
|
|
94
95
|
type: 'HIGH_SPEED_SEGMENTS_LIMIT_REACHED';
|
|
95
96
|
description: string;
|
|
96
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
|
+
};
|
|
97
116
|
export type SegmentsService_Create = ((request: CreateRequest) => Promise<CreateResponse>) & {
|
|
98
117
|
Error(e: unknown): {
|
|
99
118
|
error: unknown;
|
|
@@ -102,7 +121,16 @@ export type SegmentsService_Create = ((request: CreateRequest) => Promise<Create
|
|
|
102
121
|
} | {
|
|
103
122
|
error?: undefined;
|
|
104
123
|
fieldViolations?: SegmentsService_Create_FieldViolations[];
|
|
105
|
-
failedPreconditions?: SegmentsService_Create_FailedPreconditions;
|
|
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;
|
|
106
134
|
};
|
|
107
135
|
};
|
|
108
136
|
export type SegmentsService_Delete = ((request: DeleteRequest) => Promise<DeleteResponse>) & {
|
|
@@ -111,23 +139,32 @@ export type SegmentsService_Delete = ((request: DeleteRequest) => Promise<Delete
|
|
|
111
139
|
failedPreconditions?: undefined;
|
|
112
140
|
} | {
|
|
113
141
|
error?: undefined;
|
|
114
|
-
failedPreconditions?: SegmentsService_Delete_FailedPreconditions;
|
|
142
|
+
failedPreconditions?: SegmentsService_Delete_FailedPreconditions | pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
115
143
|
};
|
|
116
144
|
};
|
|
117
145
|
export interface SegmentsService {
|
|
118
|
-
List
|
|
119
|
-
Get
|
|
146
|
+
List: SegmentsService_List;
|
|
147
|
+
Get: SegmentsService_Get;
|
|
120
148
|
Create: SegmentsService_Create;
|
|
121
|
-
Update
|
|
149
|
+
Update: SegmentsService_Update;
|
|
122
150
|
Delete: SegmentsService_Delete;
|
|
123
151
|
}
|
|
124
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
|
+
};
|
|
125
159
|
Create: {
|
|
126
160
|
fieldViolations: SegmentsService_Create_FieldViolations[];
|
|
127
|
-
failedPreconditions: SegmentsService_Create_FailedPreconditions;
|
|
161
|
+
failedPreconditions: SegmentsService_Create_FailedPreconditions | pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
162
|
+
};
|
|
163
|
+
Update: {
|
|
164
|
+
failedPreconditions: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
128
165
|
};
|
|
129
166
|
Delete: {
|
|
130
|
-
failedPreconditions: SegmentsService_Delete_FailedPreconditions;
|
|
167
|
+
failedPreconditions: SegmentsService_Delete_FailedPreconditions | pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
131
168
|
};
|
|
132
169
|
};
|
|
133
170
|
export type DeviceLoadPolicy = 'FILTER' | 'ALL';
|