@pushwoosh/rpc-v2-http-api-data 0.1.862 → 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 +64 -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,20 +95,76 @@ 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
|
+
};
|
|
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
|
+
};
|
|
97
145
|
export interface SegmentsService {
|
|
98
|
-
List
|
|
99
|
-
Get
|
|
100
|
-
Create
|
|
101
|
-
Update
|
|
102
|
-
Delete
|
|
146
|
+
List: SegmentsService_List;
|
|
147
|
+
Get: SegmentsService_Get;
|
|
148
|
+
Create: SegmentsService_Create;
|
|
149
|
+
Update: SegmentsService_Update;
|
|
150
|
+
Delete: SegmentsService_Delete;
|
|
103
151
|
}
|
|
104
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
|
+
};
|
|
105
159
|
Create: {
|
|
106
160
|
fieldViolations: SegmentsService_Create_FieldViolations[];
|
|
107
|
-
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;
|
|
108
165
|
};
|
|
109
166
|
Delete: {
|
|
110
|
-
failedPreconditions: SegmentsService_Delete_FailedPreconditions;
|
|
167
|
+
failedPreconditions: SegmentsService_Delete_FailedPreconditions | pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
111
168
|
};
|
|
112
169
|
};
|
|
113
170
|
export type DeviceLoadPolicy = 'FILTER' | 'ALL';
|