@oursprivacy/platform-sdk 1.22.0 → 1.23.0
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/CHANGELOG.md +9 -0
- package/README.md +8 -8
- package/client.d.mts +10 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -7
- package/client.d.ts.map +1 -1
- package/client.js +6 -3
- package/client.js.map +1 -1
- package/client.mjs +6 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/allowed-events.d.mts +206 -5
- package/resources/allowed-events.d.mts.map +1 -1
- package/resources/allowed-events.d.ts +206 -5
- package/resources/allowed-events.d.ts.map +1 -1
- package/resources/allowed-events.js +48 -4
- package/resources/allowed-events.js.map +1 -1
- package/resources/allowed-events.mjs +48 -4
- package/resources/allowed-events.mjs.map +1 -1
- package/resources/consent-analytics.d.mts +57 -0
- package/resources/consent-analytics.d.mts.map +1 -0
- package/resources/consent-analytics.d.ts +57 -0
- package/resources/consent-analytics.d.ts.map +1 -0
- package/resources/consent-analytics.js +22 -0
- package/resources/consent-analytics.js.map +1 -0
- package/resources/consent-analytics.mjs +18 -0
- package/resources/consent-analytics.mjs.map +1 -0
- package/resources/consent-settings.d.mts +198 -1
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +198 -1
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +40 -0
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +40 -0
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/data-governance.d.mts +793 -0
- package/resources/data-governance.d.mts.map +1 -0
- package/resources/data-governance.d.ts +793 -0
- package/resources/data-governance.d.ts.map +1 -0
- package/resources/data-governance.js +70 -0
- package/resources/data-governance.js.map +1 -0
- package/resources/data-governance.mjs +66 -0
- package/resources/data-governance.mjs.map +1 -0
- package/resources/default-mappings.d.mts +60 -3
- package/resources/default-mappings.d.mts.map +1 -1
- package/resources/default-mappings.d.ts +60 -3
- package/resources/default-mappings.d.ts.map +1 -1
- package/resources/index.d.mts +4 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mappings.d.mts +174 -15
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +174 -15
- package/resources/mappings.d.ts.map +1 -1
- package/src/client.ts +56 -27
- package/src/resources/allowed-events.ts +232 -4
- package/src/resources/consent-analytics.ts +76 -0
- package/src/resources/consent-settings.ts +272 -0
- package/src/resources/data-governance.ts +1091 -0
- package/src/resources/default-mappings.ts +60 -3
- package/src/resources/index.ts +25 -12
- package/src/resources/mappings.ts +174 -15
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/global-dispatch-centers.d.mts +0 -349
- package/resources/global-dispatch-centers.d.mts.map +0 -1
- package/resources/global-dispatch-centers.d.ts +0 -349
- package/resources/global-dispatch-centers.d.ts.map +0 -1
- package/resources/global-dispatch-centers.js +0 -43
- package/resources/global-dispatch-centers.js.map +0 -1
- package/resources/global-dispatch-centers.mjs +0 -39
- package/resources/global-dispatch-centers.mjs.map +0 -1
- package/src/resources/global-dispatch-centers.ts +0 -458
|
@@ -1,349 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
-
import { Cursor, type CursorParams, PagePromise } from "../core/pagination.js";
|
|
4
|
-
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
-
export declare class GlobalDispatchCenters extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* List global dispatch centers for this account. Supports cursor pagination via
|
|
8
|
-
* `limit` and `cursor`. Requires scope: globalDispatch:list
|
|
9
|
-
*/
|
|
10
|
-
list(query?: GlobalDispatchCenterListParams | null | undefined, options?: RequestOptions): PagePromise<GlobalDispatchCenterListResponsesCursor, GlobalDispatchCenterListResponse>;
|
|
11
|
-
/**
|
|
12
|
-
* Create a new global dispatch center. Requires scope: globalDispatch:create
|
|
13
|
-
*/
|
|
14
|
-
create(body: GlobalDispatchCenterCreateParams, options?: RequestOptions): APIPromise<GlobalDispatchCenterCreateResponse>;
|
|
15
|
-
/**
|
|
16
|
-
* Find a single global dispatch center by ID. Requires scope: globalDispatch:find
|
|
17
|
-
*/
|
|
18
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterRetrieveResponse | null>;
|
|
19
|
-
/**
|
|
20
|
-
* Partially update a global dispatch center. Only the fields you send are changed.
|
|
21
|
-
* Requires scope: globalDispatch:update
|
|
22
|
-
*/
|
|
23
|
-
update(id: string, body: GlobalDispatchCenterUpdateParams, options?: RequestOptions): APIPromise<GlobalDispatchCenterUpdateResponse>;
|
|
24
|
-
/**
|
|
25
|
-
* Delete a global dispatch center. Requires scope: globalDispatch:delete
|
|
26
|
-
*/
|
|
27
|
-
delete(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterDeleteResponse>;
|
|
28
|
-
}
|
|
29
|
-
export type GlobalDispatchCenterListResponsesCursor = Cursor<GlobalDispatchCenterListResponse>;
|
|
30
|
-
export interface GlobalDispatchCenterListResponse {
|
|
31
|
-
/**
|
|
32
|
-
* Server-assigned UUID for this dispatch center.
|
|
33
|
-
*/
|
|
34
|
-
id: string;
|
|
35
|
-
/**
|
|
36
|
-
* ISO 8601 timestamp when the center was created.
|
|
37
|
-
*/
|
|
38
|
-
createdAt: string;
|
|
39
|
-
/**
|
|
40
|
-
* When false, the dispatch center is configured but does not route events.
|
|
41
|
-
*/
|
|
42
|
-
isEnabled: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Discriminator for the entity type. Always "globalDispatchCenter".
|
|
45
|
-
*/
|
|
46
|
-
kind: string;
|
|
47
|
-
/**
|
|
48
|
-
* Routing categories in priority order (1..N).
|
|
49
|
-
*/
|
|
50
|
-
categories?: Array<GlobalDispatchCenterListResponse.Category> | null;
|
|
51
|
-
/**
|
|
52
|
-
* Human-readable name shown in the dashboard.
|
|
53
|
-
*/
|
|
54
|
-
name?: string | null;
|
|
55
|
-
/**
|
|
56
|
-
* Free-form notes for this center.
|
|
57
|
-
*/
|
|
58
|
-
notes?: string | null;
|
|
59
|
-
/**
|
|
60
|
-
* ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
|
|
61
|
-
* center; advances on every PATCH.
|
|
62
|
-
*/
|
|
63
|
-
updatedAt?: string | null;
|
|
64
|
-
}
|
|
65
|
-
export declare namespace GlobalDispatchCenterListResponse {
|
|
66
|
-
interface Category {
|
|
67
|
-
/**
|
|
68
|
-
* Display name for the category.
|
|
69
|
-
*/
|
|
70
|
-
name: string;
|
|
71
|
-
/**
|
|
72
|
-
* 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
|
|
73
|
-
* details.
|
|
74
|
-
*/
|
|
75
|
-
priority: number;
|
|
76
|
-
/**
|
|
77
|
-
* Optional human-readable description.
|
|
78
|
-
*/
|
|
79
|
-
description?: string | null;
|
|
80
|
-
/**
|
|
81
|
-
* Destinations that receive events matching this category.
|
|
82
|
-
*/
|
|
83
|
-
destinationIds?: Array<string> | null;
|
|
84
|
-
/**
|
|
85
|
-
* Optional condition tree gating which events match this category.
|
|
86
|
-
*/
|
|
87
|
-
logic?: unknown | null;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
export interface GlobalDispatchCenterCreateResponse {
|
|
91
|
-
/**
|
|
92
|
-
* Server-assigned UUID for this dispatch center.
|
|
93
|
-
*/
|
|
94
|
-
id: string;
|
|
95
|
-
/**
|
|
96
|
-
* ISO 8601 timestamp when the center was created.
|
|
97
|
-
*/
|
|
98
|
-
createdAt: string;
|
|
99
|
-
/**
|
|
100
|
-
* When false, the dispatch center is configured but does not route events.
|
|
101
|
-
*/
|
|
102
|
-
isEnabled: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* Discriminator for the entity type. Always "globalDispatchCenter".
|
|
105
|
-
*/
|
|
106
|
-
kind: string;
|
|
107
|
-
/**
|
|
108
|
-
* Routing categories in priority order (1..N).
|
|
109
|
-
*/
|
|
110
|
-
categories?: Array<GlobalDispatchCenterCreateResponse.Category> | null;
|
|
111
|
-
/**
|
|
112
|
-
* Human-readable name shown in the dashboard.
|
|
113
|
-
*/
|
|
114
|
-
name?: string | null;
|
|
115
|
-
/**
|
|
116
|
-
* Free-form notes for this center.
|
|
117
|
-
*/
|
|
118
|
-
notes?: string | null;
|
|
119
|
-
/**
|
|
120
|
-
* ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
|
|
121
|
-
* center; advances on every PATCH.
|
|
122
|
-
*/
|
|
123
|
-
updatedAt?: string | null;
|
|
124
|
-
}
|
|
125
|
-
export declare namespace GlobalDispatchCenterCreateResponse {
|
|
126
|
-
interface Category {
|
|
127
|
-
/**
|
|
128
|
-
* Display name for the category.
|
|
129
|
-
*/
|
|
130
|
-
name: string;
|
|
131
|
-
/**
|
|
132
|
-
* 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
|
|
133
|
-
* details.
|
|
134
|
-
*/
|
|
135
|
-
priority: number;
|
|
136
|
-
/**
|
|
137
|
-
* Optional human-readable description.
|
|
138
|
-
*/
|
|
139
|
-
description?: string | null;
|
|
140
|
-
/**
|
|
141
|
-
* Destinations that receive events matching this category.
|
|
142
|
-
*/
|
|
143
|
-
destinationIds?: Array<string> | null;
|
|
144
|
-
/**
|
|
145
|
-
* Optional condition tree gating which events match this category.
|
|
146
|
-
*/
|
|
147
|
-
logic?: unknown | null;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
export interface GlobalDispatchCenterRetrieveResponse {
|
|
151
|
-
/**
|
|
152
|
-
* Server-assigned UUID for this dispatch center.
|
|
153
|
-
*/
|
|
154
|
-
id: string;
|
|
155
|
-
/**
|
|
156
|
-
* ISO 8601 timestamp when the center was created.
|
|
157
|
-
*/
|
|
158
|
-
createdAt: string;
|
|
159
|
-
/**
|
|
160
|
-
* When false, the dispatch center is configured but does not route events.
|
|
161
|
-
*/
|
|
162
|
-
isEnabled: boolean;
|
|
163
|
-
/**
|
|
164
|
-
* Discriminator for the entity type. Always "globalDispatchCenter".
|
|
165
|
-
*/
|
|
166
|
-
kind: string;
|
|
167
|
-
/**
|
|
168
|
-
* Routing categories in priority order (1..N).
|
|
169
|
-
*/
|
|
170
|
-
categories?: Array<GlobalDispatchCenterRetrieveResponse.Category> | null;
|
|
171
|
-
/**
|
|
172
|
-
* Human-readable name shown in the dashboard.
|
|
173
|
-
*/
|
|
174
|
-
name?: string | null;
|
|
175
|
-
/**
|
|
176
|
-
* Free-form notes for this center.
|
|
177
|
-
*/
|
|
178
|
-
notes?: string | null;
|
|
179
|
-
/**
|
|
180
|
-
* ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
|
|
181
|
-
* center; advances on every PATCH.
|
|
182
|
-
*/
|
|
183
|
-
updatedAt?: string | null;
|
|
184
|
-
}
|
|
185
|
-
export declare namespace GlobalDispatchCenterRetrieveResponse {
|
|
186
|
-
interface Category {
|
|
187
|
-
/**
|
|
188
|
-
* Display name for the category.
|
|
189
|
-
*/
|
|
190
|
-
name: string;
|
|
191
|
-
/**
|
|
192
|
-
* 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
|
|
193
|
-
* details.
|
|
194
|
-
*/
|
|
195
|
-
priority: number;
|
|
196
|
-
/**
|
|
197
|
-
* Optional human-readable description.
|
|
198
|
-
*/
|
|
199
|
-
description?: string | null;
|
|
200
|
-
/**
|
|
201
|
-
* Destinations that receive events matching this category.
|
|
202
|
-
*/
|
|
203
|
-
destinationIds?: Array<string> | null;
|
|
204
|
-
/**
|
|
205
|
-
* Optional condition tree gating which events match this category.
|
|
206
|
-
*/
|
|
207
|
-
logic?: unknown | null;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
export interface GlobalDispatchCenterUpdateResponse {
|
|
211
|
-
/**
|
|
212
|
-
* Server-assigned UUID for this dispatch center.
|
|
213
|
-
*/
|
|
214
|
-
id: string;
|
|
215
|
-
/**
|
|
216
|
-
* ISO 8601 timestamp when the center was created.
|
|
217
|
-
*/
|
|
218
|
-
createdAt: string;
|
|
219
|
-
/**
|
|
220
|
-
* When false, the dispatch center is configured but does not route events.
|
|
221
|
-
*/
|
|
222
|
-
isEnabled: boolean;
|
|
223
|
-
/**
|
|
224
|
-
* Discriminator for the entity type. Always "globalDispatchCenter".
|
|
225
|
-
*/
|
|
226
|
-
kind: string;
|
|
227
|
-
/**
|
|
228
|
-
* Routing categories in priority order (1..N).
|
|
229
|
-
*/
|
|
230
|
-
categories?: Array<GlobalDispatchCenterUpdateResponse.Category> | null;
|
|
231
|
-
/**
|
|
232
|
-
* Human-readable name shown in the dashboard.
|
|
233
|
-
*/
|
|
234
|
-
name?: string | null;
|
|
235
|
-
/**
|
|
236
|
-
* Free-form notes for this center.
|
|
237
|
-
*/
|
|
238
|
-
notes?: string | null;
|
|
239
|
-
/**
|
|
240
|
-
* ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
|
|
241
|
-
* center; advances on every PATCH.
|
|
242
|
-
*/
|
|
243
|
-
updatedAt?: string | null;
|
|
244
|
-
}
|
|
245
|
-
export declare namespace GlobalDispatchCenterUpdateResponse {
|
|
246
|
-
interface Category {
|
|
247
|
-
/**
|
|
248
|
-
* Display name for the category.
|
|
249
|
-
*/
|
|
250
|
-
name: string;
|
|
251
|
-
/**
|
|
252
|
-
* 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
|
|
253
|
-
* details.
|
|
254
|
-
*/
|
|
255
|
-
priority: number;
|
|
256
|
-
/**
|
|
257
|
-
* Optional human-readable description.
|
|
258
|
-
*/
|
|
259
|
-
description?: string | null;
|
|
260
|
-
/**
|
|
261
|
-
* Destinations that receive events matching this category.
|
|
262
|
-
*/
|
|
263
|
-
destinationIds?: Array<string> | null;
|
|
264
|
-
/**
|
|
265
|
-
* Optional condition tree gating which events match this category.
|
|
266
|
-
*/
|
|
267
|
-
logic?: unknown | null;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
export interface GlobalDispatchCenterDeleteResponse {
|
|
271
|
-
/**
|
|
272
|
-
* The id of the dispatch center that was deleted.
|
|
273
|
-
*/
|
|
274
|
-
id: string;
|
|
275
|
-
/**
|
|
276
|
-
* True when the underlying mutation succeeded; the entity is gone.
|
|
277
|
-
*/
|
|
278
|
-
deleted: boolean;
|
|
279
|
-
}
|
|
280
|
-
export interface GlobalDispatchCenterListParams extends CursorParams {
|
|
281
|
-
}
|
|
282
|
-
export interface GlobalDispatchCenterCreateParams {
|
|
283
|
-
/**
|
|
284
|
-
* Whether the center starts enabled. Defaults to false — opt in by setting true
|
|
285
|
-
* here or via PATCH later.
|
|
286
|
-
*/
|
|
287
|
-
isEnabled?: boolean | null;
|
|
288
|
-
/**
|
|
289
|
-
* Display name for the new center. Defaults to "Consent Dispatch Center".
|
|
290
|
-
*/
|
|
291
|
-
name?: string | null;
|
|
292
|
-
/**
|
|
293
|
-
* Free-form notes shown in the dashboard. Not used for routing.
|
|
294
|
-
*/
|
|
295
|
-
notes?: string | null;
|
|
296
|
-
}
|
|
297
|
-
export interface GlobalDispatchCenterUpdateParams {
|
|
298
|
-
/**
|
|
299
|
-
* Full replacement of the categories list. Categories are sorted by priority on
|
|
300
|
-
* write and re-stamped 1..N — see the priority field. Omit to leave existing
|
|
301
|
-
* categories untouched.
|
|
302
|
-
*/
|
|
303
|
-
categories?: Array<GlobalDispatchCenterUpdateParams.Category> | null;
|
|
304
|
-
/**
|
|
305
|
-
* Toggle the dispatch center on/off without changing any other config.
|
|
306
|
-
*/
|
|
307
|
-
isEnabled?: boolean | null;
|
|
308
|
-
/**
|
|
309
|
-
* New display name for the center.
|
|
310
|
-
*/
|
|
311
|
-
name?: string | null;
|
|
312
|
-
/**
|
|
313
|
-
* Replace the free-form notes.
|
|
314
|
-
*/
|
|
315
|
-
notes?: string | null;
|
|
316
|
-
}
|
|
317
|
-
export declare namespace GlobalDispatchCenterUpdateParams {
|
|
318
|
-
interface Category {
|
|
319
|
-
/**
|
|
320
|
-
* Optional human-readable description shown in the dashboard.
|
|
321
|
-
*/
|
|
322
|
-
description?: string | null;
|
|
323
|
-
/**
|
|
324
|
-
* Destinations that receive events matching this category. Stale IDs (deleted
|
|
325
|
-
* destinations or ones from another account) are silently filtered out at write
|
|
326
|
-
* time.
|
|
327
|
-
*/
|
|
328
|
-
destinationIds?: Array<string> | null;
|
|
329
|
-
/**
|
|
330
|
-
* Optional condition tree. When set, only matching events route to this category.
|
|
331
|
-
*/
|
|
332
|
-
logic?: unknown | null;
|
|
333
|
-
/**
|
|
334
|
-
* Display name for the category. Auto-generated if omitted.
|
|
335
|
-
*/
|
|
336
|
-
name?: string | null;
|
|
337
|
-
/**
|
|
338
|
-
* Used as a sort key on write. The server sorts categories by this value
|
|
339
|
-
* (ascending), then re-stamps priority as (sorted index + 1) on persist. Send any
|
|
340
|
-
* positive number — gaps are ironed out, duplicate values keep input order via
|
|
341
|
-
* stable sort. Omit to fall to the end.
|
|
342
|
-
*/
|
|
343
|
-
priority?: number | null;
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
export declare namespace GlobalDispatchCenters {
|
|
347
|
-
export { type GlobalDispatchCenterListResponse as GlobalDispatchCenterListResponse, type GlobalDispatchCenterCreateResponse as GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse as GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse as GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterDeleteResponse as GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterListResponsesCursor as GlobalDispatchCenterListResponsesCursor, type GlobalDispatchCenterListParams as GlobalDispatchCenterListParams, type GlobalDispatchCenterCreateParams as GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams as GlobalDispatchCenterUpdateParams, };
|
|
348
|
-
}
|
|
349
|
-
//# sourceMappingURL=global-dispatch-centers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"global-dispatch-centers.d.ts","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,8BAA2B;AAC5E,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,8BAA8B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uCAAuC,EAAE,gCAAgC,CAAC;IAQzF;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kCAAkC,CAAC;IAIjD;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oCAAoC,GAAG,IAAI,CAAC;IAIvG;;;OAGG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kCAAkC,CAAC;IAIjD;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;CAG7F;AAED,MAAM,MAAM,uCAAuC,GAAG,MAAM,CAAC,gCAAgC,CAAC,CAAC;AAE/F,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MA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G,IAAI,CAAC;IAErE;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,yBAAiB,gCAAgC,CAAC;IAChD,UAAiB,QAAQ;QACvB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B;;;;WAIG;QACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;QAEtC;;WAEG;QACH,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAEvB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAErB;;;;;WAKG;QACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EACL,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.GlobalDispatchCenters = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
const pagination_1 = require("../core/pagination.js");
|
|
7
|
-
const path_1 = require("../internal/utils/path.js");
|
|
8
|
-
class GlobalDispatchCenters extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* List global dispatch centers for this account. Supports cursor pagination via
|
|
11
|
-
* `limit` and `cursor`. Requires scope: globalDispatch:list
|
|
12
|
-
*/
|
|
13
|
-
list(query = {}, options) {
|
|
14
|
-
return this._client.getAPIList('/rest/v1/global-dispatch-centers', (pagination_1.Cursor), { query, ...options });
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Create a new global dispatch center. Requires scope: globalDispatch:create
|
|
18
|
-
*/
|
|
19
|
-
create(body, options) {
|
|
20
|
-
return this._client.post('/rest/v1/global-dispatch-centers', { body, ...options });
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Find a single global dispatch center by ID. Requires scope: globalDispatch:find
|
|
24
|
-
*/
|
|
25
|
-
retrieve(id, options) {
|
|
26
|
-
return this._client.get((0, path_1.path) `/rest/v1/global-dispatch-centers/${id}`, options);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Partially update a global dispatch center. Only the fields you send are changed.
|
|
30
|
-
* Requires scope: globalDispatch:update
|
|
31
|
-
*/
|
|
32
|
-
update(id, body, options) {
|
|
33
|
-
return this._client.patch((0, path_1.path) `/rest/v1/global-dispatch-centers/${id}`, { body, ...options });
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Delete a global dispatch center. Requires scope: globalDispatch:delete
|
|
37
|
-
*/
|
|
38
|
-
delete(id, options) {
|
|
39
|
-
return this._client.delete((0, path_1.path) `/rest/v1/global-dispatch-centers/${id}`, options);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.GlobalDispatchCenters = GlobalDispatchCenters;
|
|
43
|
-
//# sourceMappingURL=global-dispatch-centers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"global-dispatch-centers.js","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;;OAGG;IACH,IAAI,CACF,QAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,kCAAkC,EAClC,CAAA,mBAAwC,CAAA,EACxC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AAnDD,sDAmDC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
import { Cursor } from "../core/pagination.mjs";
|
|
4
|
-
import { path } from "../internal/utils/path.mjs";
|
|
5
|
-
export class GlobalDispatchCenters extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* List global dispatch centers for this account. Supports cursor pagination via
|
|
8
|
-
* `limit` and `cursor`. Requires scope: globalDispatch:list
|
|
9
|
-
*/
|
|
10
|
-
list(query = {}, options) {
|
|
11
|
-
return this._client.getAPIList('/rest/v1/global-dispatch-centers', (Cursor), { query, ...options });
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Create a new global dispatch center. Requires scope: globalDispatch:create
|
|
15
|
-
*/
|
|
16
|
-
create(body, options) {
|
|
17
|
-
return this._client.post('/rest/v1/global-dispatch-centers', { body, ...options });
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Find a single global dispatch center by ID. Requires scope: globalDispatch:find
|
|
21
|
-
*/
|
|
22
|
-
retrieve(id, options) {
|
|
23
|
-
return this._client.get(path `/rest/v1/global-dispatch-centers/${id}`, options);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Partially update a global dispatch center. Only the fields you send are changed.
|
|
27
|
-
* Requires scope: globalDispatch:update
|
|
28
|
-
*/
|
|
29
|
-
update(id, body, options) {
|
|
30
|
-
return this._client.patch(path `/rest/v1/global-dispatch-centers/${id}`, { body, ...options });
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Delete a global dispatch center. Requires scope: globalDispatch:delete
|
|
34
|
-
*/
|
|
35
|
-
delete(id, options) {
|
|
36
|
-
return this._client.delete(path `/rest/v1/global-dispatch-centers/${id}`, options);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=global-dispatch-centers.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"global-dispatch-centers.mjs","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,MAAM,EAAkC,+BAA2B;AAE5E,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;;OAGG;IACH,IAAI,CACF,QAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,kCAAkC,EAClC,CAAA,MAAwC,CAAA,EACxC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF"}
|