@oursprivacy/platform-sdk 1.0.0 → 1.2.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 +33 -0
- package/README.md +2 -2
- package/client.d.mts +5 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -5
- package/client.d.ts.map +1 -1
- package/client.js +8 -17
- package/client.js.map +1 -1
- package/client.mjs +8 -17
- package/client.mjs.map +1 -1
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +1 -1
- package/resources/allowed-events.d.mts +22 -5
- package/resources/allowed-events.d.mts.map +1 -1
- package/resources/allowed-events.d.ts +22 -5
- package/resources/allowed-events.d.ts.map +1 -1
- package/resources/consent-settings.d.mts +64 -10
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +64 -10
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +2 -2
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +2 -2
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/destinations.d.mts +48 -6
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +48 -6
- package/resources/destinations.d.ts.map +1 -1
- package/resources/global-dispatch-centers.d.mts +45 -11
- package/resources/global-dispatch-centers.d.mts.map +1 -1
- package/resources/global-dispatch-centers.d.ts +45 -11
- package/resources/global-dispatch-centers.d.ts.map +1 -1
- package/resources/global-dispatch-centers.js +2 -2
- package/resources/global-dispatch-centers.js.map +1 -1
- package/resources/global-dispatch-centers.mjs +2 -2
- package/resources/global-dispatch-centers.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/replay-settings.d.mts +60 -6
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +60 -6
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/sources.d.mts +45 -6
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +45 -6
- package/resources/sources.d.ts.map +1 -1
- package/resources/versions.d.mts +41 -5
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +41 -5
- package/resources/versions.d.ts.map +1 -1
- package/src/client.ts +11 -26
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/allowed-events.ts +38 -6
- package/src/resources/consent-settings.ts +108 -14
- package/src/resources/destinations.ts +416 -8
- package/src/resources/global-dispatch-centers.ts +75 -15
- package/src/resources/index.ts +0 -2
- package/src/resources/replay-settings.ts +100 -8
- package/src/resources/sources.ts +235 -8
- package/src/resources/versions.ts +77 -7
- 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
|
@@ -47,28 +47,436 @@ export class Destinations extends APIResource {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export interface DestinationCreateResponse {
|
|
50
|
-
|
|
50
|
+
id: string;
|
|
51
|
+
|
|
52
|
+
createdAt: string;
|
|
53
|
+
|
|
54
|
+
status: 'Disabled' | 'Enabled';
|
|
55
|
+
|
|
56
|
+
type:
|
|
57
|
+
| 'AWSEventBridge'
|
|
58
|
+
| 'AWSKinesis'
|
|
59
|
+
| 'AWSLambda'
|
|
60
|
+
| 'AWSS3'
|
|
61
|
+
| 'AWSSNS'
|
|
62
|
+
| 'ActiveCampaignApi'
|
|
63
|
+
| 'AmazonDSP'
|
|
64
|
+
| 'Amplitude'
|
|
65
|
+
| 'AppLovin'
|
|
66
|
+
| 'ArtsAI'
|
|
67
|
+
| 'Audiohook'
|
|
68
|
+
| 'AzureBlob'
|
|
69
|
+
| 'BasisPostback'
|
|
70
|
+
| 'BingAds'
|
|
71
|
+
| 'BingAdsWeb'
|
|
72
|
+
| 'Braze'
|
|
73
|
+
| 'ConvertABTestingEvent'
|
|
74
|
+
| 'Customerio'
|
|
75
|
+
| 'DomoWarehouse'
|
|
76
|
+
| 'Facebook'
|
|
77
|
+
| 'FloodlightSGTM'
|
|
78
|
+
| 'FullContact'
|
|
79
|
+
| 'G4Analytics'
|
|
80
|
+
| 'GA4MeasurementProtocol'
|
|
81
|
+
| 'GA4ServerProxy'
|
|
82
|
+
| 'Google'
|
|
83
|
+
| 'GoogleAds360'
|
|
84
|
+
| 'GoogleAdsServerContainer'
|
|
85
|
+
| 'GoogleBigQuery'
|
|
86
|
+
| 'GoogleBigQueryWarehouse'
|
|
87
|
+
| 'GoogleDataManagerEventIngest'
|
|
88
|
+
| 'GooglePubSub'
|
|
89
|
+
| 'GoogleStorage'
|
|
90
|
+
| 'HTTPCustomRequest'
|
|
91
|
+
| 'HTTPDestination'
|
|
92
|
+
| 'Hubspot'
|
|
93
|
+
| 'IHeartMediaMagellan'
|
|
94
|
+
| 'Impact'
|
|
95
|
+
| 'Iterable'
|
|
96
|
+
| 'Klaviyo'
|
|
97
|
+
| 'LinkedInAdsCAPI'
|
|
98
|
+
| 'LiveIntent'
|
|
99
|
+
| 'LiveRampWarehouse'
|
|
100
|
+
| 'Mailchimp'
|
|
101
|
+
| 'Mixpanel'
|
|
102
|
+
| 'NextdoorAds'
|
|
103
|
+
| 'OursSyntheticData'
|
|
104
|
+
| 'Partnerize'
|
|
105
|
+
| 'Pinterest'
|
|
106
|
+
| 'Podscribe'
|
|
107
|
+
| 'QuantcastCAPI'
|
|
108
|
+
| 'QuoraAds'
|
|
109
|
+
| 'Reddit'
|
|
110
|
+
| 'SnapchatAdsCapi'
|
|
111
|
+
| 'Spotify'
|
|
112
|
+
| 'StackAdaptAPI'
|
|
113
|
+
| 'Taboola'
|
|
114
|
+
| 'Tatari'
|
|
115
|
+
| 'TheTradeDesk'
|
|
116
|
+
| 'TikTok'
|
|
117
|
+
| 'Viant'
|
|
118
|
+
| 'Vibe'
|
|
119
|
+
| 'Woopra'
|
|
120
|
+
| 'XAds'
|
|
121
|
+
| 'Zendesk'
|
|
122
|
+
| 'ZoomInfo';
|
|
123
|
+
|
|
124
|
+
name?: string | null;
|
|
125
|
+
|
|
126
|
+
updatedAt?: string | null;
|
|
51
127
|
}
|
|
52
128
|
|
|
53
129
|
export interface DestinationRetrieveResponse {
|
|
54
|
-
|
|
130
|
+
id: string;
|
|
131
|
+
|
|
132
|
+
createdAt: string;
|
|
133
|
+
|
|
134
|
+
status: 'Disabled' | 'Enabled';
|
|
135
|
+
|
|
136
|
+
type:
|
|
137
|
+
| 'AWSEventBridge'
|
|
138
|
+
| 'AWSKinesis'
|
|
139
|
+
| 'AWSLambda'
|
|
140
|
+
| 'AWSS3'
|
|
141
|
+
| 'AWSSNS'
|
|
142
|
+
| 'ActiveCampaignApi'
|
|
143
|
+
| 'AmazonDSP'
|
|
144
|
+
| 'Amplitude'
|
|
145
|
+
| 'AppLovin'
|
|
146
|
+
| 'ArtsAI'
|
|
147
|
+
| 'Audiohook'
|
|
148
|
+
| 'AzureBlob'
|
|
149
|
+
| 'BasisPostback'
|
|
150
|
+
| 'BingAds'
|
|
151
|
+
| 'BingAdsWeb'
|
|
152
|
+
| 'Braze'
|
|
153
|
+
| 'ConvertABTestingEvent'
|
|
154
|
+
| 'Customerio'
|
|
155
|
+
| 'DomoWarehouse'
|
|
156
|
+
| 'Facebook'
|
|
157
|
+
| 'FloodlightSGTM'
|
|
158
|
+
| 'FullContact'
|
|
159
|
+
| 'G4Analytics'
|
|
160
|
+
| 'GA4MeasurementProtocol'
|
|
161
|
+
| 'GA4ServerProxy'
|
|
162
|
+
| 'Google'
|
|
163
|
+
| 'GoogleAds360'
|
|
164
|
+
| 'GoogleAdsServerContainer'
|
|
165
|
+
| 'GoogleBigQuery'
|
|
166
|
+
| 'GoogleBigQueryWarehouse'
|
|
167
|
+
| 'GoogleDataManagerEventIngest'
|
|
168
|
+
| 'GooglePubSub'
|
|
169
|
+
| 'GoogleStorage'
|
|
170
|
+
| 'HTTPCustomRequest'
|
|
171
|
+
| 'HTTPDestination'
|
|
172
|
+
| 'Hubspot'
|
|
173
|
+
| 'IHeartMediaMagellan'
|
|
174
|
+
| 'Impact'
|
|
175
|
+
| 'Iterable'
|
|
176
|
+
| 'Klaviyo'
|
|
177
|
+
| 'LinkedInAdsCAPI'
|
|
178
|
+
| 'LiveIntent'
|
|
179
|
+
| 'LiveRampWarehouse'
|
|
180
|
+
| 'Mailchimp'
|
|
181
|
+
| 'Mixpanel'
|
|
182
|
+
| 'NextdoorAds'
|
|
183
|
+
| 'OursSyntheticData'
|
|
184
|
+
| 'Partnerize'
|
|
185
|
+
| 'Pinterest'
|
|
186
|
+
| 'Podscribe'
|
|
187
|
+
| 'QuantcastCAPI'
|
|
188
|
+
| 'QuoraAds'
|
|
189
|
+
| 'Reddit'
|
|
190
|
+
| 'SnapchatAdsCapi'
|
|
191
|
+
| 'Spotify'
|
|
192
|
+
| 'StackAdaptAPI'
|
|
193
|
+
| 'Taboola'
|
|
194
|
+
| 'Tatari'
|
|
195
|
+
| 'TheTradeDesk'
|
|
196
|
+
| 'TikTok'
|
|
197
|
+
| 'Viant'
|
|
198
|
+
| 'Vibe'
|
|
199
|
+
| 'Woopra'
|
|
200
|
+
| 'XAds'
|
|
201
|
+
| 'Zendesk'
|
|
202
|
+
| 'ZoomInfo';
|
|
203
|
+
|
|
204
|
+
name?: string | null;
|
|
205
|
+
|
|
206
|
+
updatedAt?: string | null;
|
|
55
207
|
}
|
|
56
208
|
|
|
57
209
|
export interface DestinationUpdateResponse {
|
|
58
|
-
|
|
210
|
+
id: string;
|
|
211
|
+
|
|
212
|
+
createdAt: string;
|
|
213
|
+
|
|
214
|
+
status: 'Disabled' | 'Enabled';
|
|
215
|
+
|
|
216
|
+
type:
|
|
217
|
+
| 'AWSEventBridge'
|
|
218
|
+
| 'AWSKinesis'
|
|
219
|
+
| 'AWSLambda'
|
|
220
|
+
| 'AWSS3'
|
|
221
|
+
| 'AWSSNS'
|
|
222
|
+
| 'ActiveCampaignApi'
|
|
223
|
+
| 'AmazonDSP'
|
|
224
|
+
| 'Amplitude'
|
|
225
|
+
| 'AppLovin'
|
|
226
|
+
| 'ArtsAI'
|
|
227
|
+
| 'Audiohook'
|
|
228
|
+
| 'AzureBlob'
|
|
229
|
+
| 'BasisPostback'
|
|
230
|
+
| 'BingAds'
|
|
231
|
+
| 'BingAdsWeb'
|
|
232
|
+
| 'Braze'
|
|
233
|
+
| 'ConvertABTestingEvent'
|
|
234
|
+
| 'Customerio'
|
|
235
|
+
| 'DomoWarehouse'
|
|
236
|
+
| 'Facebook'
|
|
237
|
+
| 'FloodlightSGTM'
|
|
238
|
+
| 'FullContact'
|
|
239
|
+
| 'G4Analytics'
|
|
240
|
+
| 'GA4MeasurementProtocol'
|
|
241
|
+
| 'GA4ServerProxy'
|
|
242
|
+
| 'Google'
|
|
243
|
+
| 'GoogleAds360'
|
|
244
|
+
| 'GoogleAdsServerContainer'
|
|
245
|
+
| 'GoogleBigQuery'
|
|
246
|
+
| 'GoogleBigQueryWarehouse'
|
|
247
|
+
| 'GoogleDataManagerEventIngest'
|
|
248
|
+
| 'GooglePubSub'
|
|
249
|
+
| 'GoogleStorage'
|
|
250
|
+
| 'HTTPCustomRequest'
|
|
251
|
+
| 'HTTPDestination'
|
|
252
|
+
| 'Hubspot'
|
|
253
|
+
| 'IHeartMediaMagellan'
|
|
254
|
+
| 'Impact'
|
|
255
|
+
| 'Iterable'
|
|
256
|
+
| 'Klaviyo'
|
|
257
|
+
| 'LinkedInAdsCAPI'
|
|
258
|
+
| 'LiveIntent'
|
|
259
|
+
| 'LiveRampWarehouse'
|
|
260
|
+
| 'Mailchimp'
|
|
261
|
+
| 'Mixpanel'
|
|
262
|
+
| 'NextdoorAds'
|
|
263
|
+
| 'OursSyntheticData'
|
|
264
|
+
| 'Partnerize'
|
|
265
|
+
| 'Pinterest'
|
|
266
|
+
| 'Podscribe'
|
|
267
|
+
| 'QuantcastCAPI'
|
|
268
|
+
| 'QuoraAds'
|
|
269
|
+
| 'Reddit'
|
|
270
|
+
| 'SnapchatAdsCapi'
|
|
271
|
+
| 'Spotify'
|
|
272
|
+
| 'StackAdaptAPI'
|
|
273
|
+
| 'Taboola'
|
|
274
|
+
| 'Tatari'
|
|
275
|
+
| 'TheTradeDesk'
|
|
276
|
+
| 'TikTok'
|
|
277
|
+
| 'Viant'
|
|
278
|
+
| 'Vibe'
|
|
279
|
+
| 'Woopra'
|
|
280
|
+
| 'XAds'
|
|
281
|
+
| 'Zendesk'
|
|
282
|
+
| 'ZoomInfo';
|
|
283
|
+
|
|
284
|
+
name?: string | null;
|
|
285
|
+
|
|
286
|
+
updatedAt?: string | null;
|
|
59
287
|
}
|
|
60
288
|
|
|
61
289
|
export interface DestinationListResponse {
|
|
62
|
-
|
|
290
|
+
entities: Array<DestinationListResponse.Entity>;
|
|
63
291
|
}
|
|
64
292
|
|
|
65
|
-
export
|
|
66
|
-
|
|
293
|
+
export namespace DestinationListResponse {
|
|
294
|
+
export interface Entity {
|
|
295
|
+
id: string;
|
|
296
|
+
|
|
297
|
+
createdAt: string;
|
|
298
|
+
|
|
299
|
+
status: 'Disabled' | 'Enabled';
|
|
300
|
+
|
|
301
|
+
type:
|
|
302
|
+
| 'AWSEventBridge'
|
|
303
|
+
| 'AWSKinesis'
|
|
304
|
+
| 'AWSLambda'
|
|
305
|
+
| 'AWSS3'
|
|
306
|
+
| 'AWSSNS'
|
|
307
|
+
| 'ActiveCampaignApi'
|
|
308
|
+
| 'AmazonDSP'
|
|
309
|
+
| 'Amplitude'
|
|
310
|
+
| 'AppLovin'
|
|
311
|
+
| 'ArtsAI'
|
|
312
|
+
| 'Audiohook'
|
|
313
|
+
| 'AzureBlob'
|
|
314
|
+
| 'BasisPostback'
|
|
315
|
+
| 'BingAds'
|
|
316
|
+
| 'BingAdsWeb'
|
|
317
|
+
| 'Braze'
|
|
318
|
+
| 'ConvertABTestingEvent'
|
|
319
|
+
| 'Customerio'
|
|
320
|
+
| 'DomoWarehouse'
|
|
321
|
+
| 'Facebook'
|
|
322
|
+
| 'FloodlightSGTM'
|
|
323
|
+
| 'FullContact'
|
|
324
|
+
| 'G4Analytics'
|
|
325
|
+
| 'GA4MeasurementProtocol'
|
|
326
|
+
| 'GA4ServerProxy'
|
|
327
|
+
| 'Google'
|
|
328
|
+
| 'GoogleAds360'
|
|
329
|
+
| 'GoogleAdsServerContainer'
|
|
330
|
+
| 'GoogleBigQuery'
|
|
331
|
+
| 'GoogleBigQueryWarehouse'
|
|
332
|
+
| 'GoogleDataManagerEventIngest'
|
|
333
|
+
| 'GooglePubSub'
|
|
334
|
+
| 'GoogleStorage'
|
|
335
|
+
| 'HTTPCustomRequest'
|
|
336
|
+
| 'HTTPDestination'
|
|
337
|
+
| 'Hubspot'
|
|
338
|
+
| 'IHeartMediaMagellan'
|
|
339
|
+
| 'Impact'
|
|
340
|
+
| 'Iterable'
|
|
341
|
+
| 'Klaviyo'
|
|
342
|
+
| 'LinkedInAdsCAPI'
|
|
343
|
+
| 'LiveIntent'
|
|
344
|
+
| 'LiveRampWarehouse'
|
|
345
|
+
| 'Mailchimp'
|
|
346
|
+
| 'Mixpanel'
|
|
347
|
+
| 'NextdoorAds'
|
|
348
|
+
| 'OursSyntheticData'
|
|
349
|
+
| 'Partnerize'
|
|
350
|
+
| 'Pinterest'
|
|
351
|
+
| 'Podscribe'
|
|
352
|
+
| 'QuantcastCAPI'
|
|
353
|
+
| 'QuoraAds'
|
|
354
|
+
| 'Reddit'
|
|
355
|
+
| 'SnapchatAdsCapi'
|
|
356
|
+
| 'Spotify'
|
|
357
|
+
| 'StackAdaptAPI'
|
|
358
|
+
| 'Taboola'
|
|
359
|
+
| 'Tatari'
|
|
360
|
+
| 'TheTradeDesk'
|
|
361
|
+
| 'TikTok'
|
|
362
|
+
| 'Viant'
|
|
363
|
+
| 'Vibe'
|
|
364
|
+
| 'Woopra'
|
|
365
|
+
| 'XAds'
|
|
366
|
+
| 'Zendesk'
|
|
367
|
+
| 'ZoomInfo';
|
|
368
|
+
|
|
369
|
+
name?: string | null;
|
|
370
|
+
|
|
371
|
+
updatedAt?: string | null;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export type DestinationDeleteResponse = boolean;
|
|
376
|
+
|
|
377
|
+
export interface DestinationCreateParams {
|
|
378
|
+
type:
|
|
379
|
+
| 'AWSEventBridge'
|
|
380
|
+
| 'AWSKinesis'
|
|
381
|
+
| 'AWSLambda'
|
|
382
|
+
| 'AWSS3'
|
|
383
|
+
| 'AWSSNS'
|
|
384
|
+
| 'ActiveCampaignApi'
|
|
385
|
+
| 'AmazonDSP'
|
|
386
|
+
| 'Amplitude'
|
|
387
|
+
| 'AppLovin'
|
|
388
|
+
| 'ArtsAI'
|
|
389
|
+
| 'Audiohook'
|
|
390
|
+
| 'AzureBlob'
|
|
391
|
+
| 'BasisPostback'
|
|
392
|
+
| 'BingAds'
|
|
393
|
+
| 'BingAdsWeb'
|
|
394
|
+
| 'Braze'
|
|
395
|
+
| 'ConvertABTestingEvent'
|
|
396
|
+
| 'Customerio'
|
|
397
|
+
| 'DomoWarehouse'
|
|
398
|
+
| 'Facebook'
|
|
399
|
+
| 'FloodlightSGTM'
|
|
400
|
+
| 'FullContact'
|
|
401
|
+
| 'G4Analytics'
|
|
402
|
+
| 'GA4MeasurementProtocol'
|
|
403
|
+
| 'GA4ServerProxy'
|
|
404
|
+
| 'Google'
|
|
405
|
+
| 'GoogleAds360'
|
|
406
|
+
| 'GoogleAdsServerContainer'
|
|
407
|
+
| 'GoogleBigQuery'
|
|
408
|
+
| 'GoogleBigQueryWarehouse'
|
|
409
|
+
| 'GoogleDataManagerEventIngest'
|
|
410
|
+
| 'GooglePubSub'
|
|
411
|
+
| 'GoogleStorage'
|
|
412
|
+
| 'HTTPCustomRequest'
|
|
413
|
+
| 'HTTPDestination'
|
|
414
|
+
| 'Hubspot'
|
|
415
|
+
| 'IHeartMediaMagellan'
|
|
416
|
+
| 'Impact'
|
|
417
|
+
| 'Iterable'
|
|
418
|
+
| 'Klaviyo'
|
|
419
|
+
| 'LinkedInAdsCAPI'
|
|
420
|
+
| 'LiveIntent'
|
|
421
|
+
| 'LiveRampWarehouse'
|
|
422
|
+
| 'Mailchimp'
|
|
423
|
+
| 'Mixpanel'
|
|
424
|
+
| 'NextdoorAds'
|
|
425
|
+
| 'OursSyntheticData'
|
|
426
|
+
| 'Partnerize'
|
|
427
|
+
| 'Pinterest'
|
|
428
|
+
| 'Podscribe'
|
|
429
|
+
| 'QuantcastCAPI'
|
|
430
|
+
| 'QuoraAds'
|
|
431
|
+
| 'Reddit'
|
|
432
|
+
| 'SnapchatAdsCapi'
|
|
433
|
+
| 'Spotify'
|
|
434
|
+
| 'StackAdaptAPI'
|
|
435
|
+
| 'Taboola'
|
|
436
|
+
| 'Tatari'
|
|
437
|
+
| 'TheTradeDesk'
|
|
438
|
+
| 'TikTok'
|
|
439
|
+
| 'Viant'
|
|
440
|
+
| 'Vibe'
|
|
441
|
+
| 'Woopra'
|
|
442
|
+
| 'XAds'
|
|
443
|
+
| 'Zendesk'
|
|
444
|
+
| 'ZoomInfo';
|
|
445
|
+
|
|
446
|
+
name?: string | null;
|
|
67
447
|
}
|
|
68
448
|
|
|
69
|
-
export interface
|
|
449
|
+
export interface DestinationUpdateParams {
|
|
450
|
+
status: 'Disabled' | 'Enabled';
|
|
451
|
+
|
|
452
|
+
facebookConversionAPIKey?: string | null;
|
|
453
|
+
|
|
454
|
+
facebookPixelId?: string | null;
|
|
455
|
+
|
|
456
|
+
g4AnalyticsApiKey?: string | null;
|
|
457
|
+
|
|
458
|
+
g4AnalyticsMeasurementId?: string | null;
|
|
459
|
+
|
|
460
|
+
g4AnalyticsTrackOnPage?: boolean | null;
|
|
70
461
|
|
|
71
|
-
|
|
462
|
+
hashingSalt?: string | null;
|
|
463
|
+
|
|
464
|
+
httpDestinationUrl?: string | null;
|
|
465
|
+
|
|
466
|
+
limitedToSourceIds?: Array<string> | null;
|
|
467
|
+
|
|
468
|
+
managerGoogleCustomerId?: string | null;
|
|
469
|
+
|
|
470
|
+
name?: string | null;
|
|
471
|
+
|
|
472
|
+
projectAPIKey?: string | null;
|
|
473
|
+
|
|
474
|
+
projectToken?: string | null;
|
|
475
|
+
|
|
476
|
+
selectedAccountId?: string | null;
|
|
477
|
+
|
|
478
|
+
settings?: { [key: string]: unknown } | null;
|
|
479
|
+
}
|
|
72
480
|
|
|
73
481
|
export declare namespace Destinations {
|
|
74
482
|
export {
|
|
@@ -9,17 +9,14 @@ export class GlobalDispatchCenters extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Create a new global dispatch center. Requires scope: globalDispatch:create
|
|
11
11
|
*/
|
|
12
|
-
create(
|
|
13
|
-
|
|
14
|
-
options?: RequestOptions,
|
|
15
|
-
): APIPromise<GlobalDispatchCenterCreateResponse> {
|
|
16
|
-
return this._client.post('/rest/v1/global-dispatch-centers', { body, ...options });
|
|
12
|
+
create(options?: RequestOptions): APIPromise<GlobalDispatchCenterCreateResponse> {
|
|
13
|
+
return this._client.post('/rest/v1/global-dispatch-centers', options);
|
|
17
14
|
}
|
|
18
15
|
|
|
19
16
|
/**
|
|
20
17
|
* Find a single global dispatch center by ID. Requires scope: globalDispatch:find
|
|
21
18
|
*/
|
|
22
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterRetrieveResponse> {
|
|
19
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterRetrieveResponse | null> {
|
|
23
20
|
return this._client.get(path`/rest/v1/global-dispatch-centers/${id}`, options);
|
|
24
21
|
}
|
|
25
22
|
|
|
@@ -50,28 +47,92 @@ export class GlobalDispatchCenters extends APIResource {
|
|
|
50
47
|
}
|
|
51
48
|
|
|
52
49
|
export interface GlobalDispatchCenterCreateResponse {
|
|
53
|
-
|
|
50
|
+
id: string;
|
|
51
|
+
|
|
52
|
+
createdAt: string;
|
|
53
|
+
|
|
54
|
+
isEnabled: boolean;
|
|
55
|
+
|
|
56
|
+
kind: string;
|
|
57
|
+
|
|
58
|
+
name?: string | null;
|
|
59
|
+
|
|
60
|
+
updatedAt?: string | null;
|
|
54
61
|
}
|
|
55
62
|
|
|
56
63
|
export interface GlobalDispatchCenterRetrieveResponse {
|
|
57
|
-
|
|
64
|
+
id: string;
|
|
65
|
+
|
|
66
|
+
createdAt: string;
|
|
67
|
+
|
|
68
|
+
isEnabled: boolean;
|
|
69
|
+
|
|
70
|
+
kind: string;
|
|
71
|
+
|
|
72
|
+
name?: string | null;
|
|
73
|
+
|
|
74
|
+
updatedAt?: string | null;
|
|
58
75
|
}
|
|
59
76
|
|
|
60
77
|
export interface GlobalDispatchCenterUpdateResponse {
|
|
61
|
-
|
|
78
|
+
id: string;
|
|
79
|
+
|
|
80
|
+
createdAt: string;
|
|
81
|
+
|
|
82
|
+
isEnabled: boolean;
|
|
83
|
+
|
|
84
|
+
kind: string;
|
|
85
|
+
|
|
86
|
+
name?: string | null;
|
|
87
|
+
|
|
88
|
+
updatedAt?: string | null;
|
|
62
89
|
}
|
|
63
90
|
|
|
64
91
|
export interface GlobalDispatchCenterListResponse {
|
|
65
|
-
|
|
92
|
+
entities: Array<GlobalDispatchCenterListResponse.Entity>;
|
|
66
93
|
}
|
|
67
94
|
|
|
68
|
-
export
|
|
69
|
-
|
|
95
|
+
export namespace GlobalDispatchCenterListResponse {
|
|
96
|
+
export interface Entity {
|
|
97
|
+
id: string;
|
|
98
|
+
|
|
99
|
+
createdAt: string;
|
|
100
|
+
|
|
101
|
+
isEnabled: boolean;
|
|
102
|
+
|
|
103
|
+
kind: string;
|
|
104
|
+
|
|
105
|
+
name?: string | null;
|
|
106
|
+
|
|
107
|
+
updatedAt?: string | null;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type GlobalDispatchCenterDeleteResponse = boolean;
|
|
112
|
+
|
|
113
|
+
export interface GlobalDispatchCenterUpdateParams {
|
|
114
|
+
categories?: Array<GlobalDispatchCenterUpdateParams.Category> | null;
|
|
115
|
+
|
|
116
|
+
isEnabled?: boolean | null;
|
|
117
|
+
|
|
118
|
+
name?: string | null;
|
|
119
|
+
|
|
120
|
+
notes?: string | null;
|
|
70
121
|
}
|
|
71
122
|
|
|
72
|
-
export
|
|
123
|
+
export namespace GlobalDispatchCenterUpdateParams {
|
|
124
|
+
export interface Category {
|
|
125
|
+
description?: string | null;
|
|
126
|
+
|
|
127
|
+
destinationIds?: Array<string> | null;
|
|
73
128
|
|
|
74
|
-
|
|
129
|
+
logic?: unknown;
|
|
130
|
+
|
|
131
|
+
name?: string | null;
|
|
132
|
+
|
|
133
|
+
priority?: number | null;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
75
136
|
|
|
76
137
|
export declare namespace GlobalDispatchCenters {
|
|
77
138
|
export {
|
|
@@ -80,7 +141,6 @@ export declare namespace GlobalDispatchCenters {
|
|
|
80
141
|
type GlobalDispatchCenterUpdateResponse as GlobalDispatchCenterUpdateResponse,
|
|
81
142
|
type GlobalDispatchCenterListResponse as GlobalDispatchCenterListResponse,
|
|
82
143
|
type GlobalDispatchCenterDeleteResponse as GlobalDispatchCenterDeleteResponse,
|
|
83
|
-
type GlobalDispatchCenterCreateParams as GlobalDispatchCenterCreateParams,
|
|
84
144
|
type GlobalDispatchCenterUpdateParams as GlobalDispatchCenterUpdateParams,
|
|
85
145
|
};
|
|
86
146
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -15,7 +15,6 @@ export {
|
|
|
15
15
|
type ConsentSettingUpdateResponse,
|
|
16
16
|
type ConsentSettingListResponse,
|
|
17
17
|
type ConsentSettingDeleteResponse,
|
|
18
|
-
type ConsentSettingCreateParams,
|
|
19
18
|
type ConsentSettingUpdateParams,
|
|
20
19
|
} from './consent-settings';
|
|
21
20
|
export {
|
|
@@ -35,7 +34,6 @@ export {
|
|
|
35
34
|
type GlobalDispatchCenterUpdateResponse,
|
|
36
35
|
type GlobalDispatchCenterListResponse,
|
|
37
36
|
type GlobalDispatchCenterDeleteResponse,
|
|
38
|
-
type GlobalDispatchCenterCreateParams,
|
|
39
37
|
type GlobalDispatchCenterUpdateParams,
|
|
40
38
|
} from './global-dispatch-centers';
|
|
41
39
|
export {
|