@oursprivacy/platform-sdk 1.49.0 → 1.51.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 +14 -0
- package/client.d.mts +15 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -6
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/analytics.d.mts +62 -0
- package/resources/analytics.d.mts.map +1 -0
- package/resources/analytics.d.ts +62 -0
- package/resources/analytics.d.ts.map +1 -0
- package/resources/analytics.js +25 -0
- package/resources/analytics.js.map +1 -0
- package/resources/analytics.mjs +21 -0
- package/resources/analytics.mjs.map +1 -0
- package/resources/consent-settings.d.mts +9 -0
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +9 -0
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/destinations.d.mts +7 -7
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +7 -7
- package/resources/destinations.d.ts.map +1 -1
- package/resources/experiments.d.mts +661 -35
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +661 -35
- package/resources/experiments.d.ts.map +1 -1
- package/resources/experiments.js +27 -19
- package/resources/experiments.js.map +1 -1
- package/resources/experiments.mjs +27 -19
- package/resources/experiments.mjs.map +1 -1
- package/resources/funnels.d.mts +88 -980
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +88 -980
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +24 -19
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +24 -19
- package/resources/funnels.mjs.map +1 -1
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/journey-flows.d.mts +4155 -0
- package/resources/journey-flows.d.mts.map +1 -0
- package/resources/journey-flows.d.ts +4155 -0
- package/resources/journey-flows.d.ts.map +1 -0
- package/resources/journey-flows.js +90 -0
- package/resources/journey-flows.js.map +1 -0
- package/resources/journey-flows.mjs +86 -0
- package/resources/journey-flows.mjs.map +1 -0
- package/resources/short-links.d.mts +40 -0
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +40 -0
- package/resources/short-links.d.ts.map +1 -1
- package/resources/sources.d.mts +20 -0
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +20 -0
- package/resources/sources.d.ts.map +1 -1
- package/resources/test-events.d.mts +203 -0
- package/resources/test-events.d.mts.map +1 -0
- package/resources/test-events.d.ts +203 -0
- package/resources/test-events.d.ts.map +1 -0
- package/resources/test-events.js +87 -0
- package/resources/test-events.js.map +1 -0
- package/resources/test-events.mjs +83 -0
- package/resources/test-events.mjs.map +1 -0
- package/resources/video-channels.d.mts +13 -0
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +13 -0
- package/resources/video-channels.d.ts.map +1 -1
- package/resources/videos.d.mts +160 -2
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +160 -2
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +32 -2
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +32 -2
- package/resources/videos.mjs.map +1 -1
- package/resources/web-analytics.d.mts +9 -9
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +9 -9
- package/resources/web-analytics.d.ts.map +1 -1
- package/resources/web-analytics.js +2 -2
- package/resources/web-analytics.js.map +1 -1
- package/resources/web-analytics.mjs +2 -2
- package/resources/web-analytics.mjs.map +1 -1
- package/resources/web-scanners.d.mts +156 -17
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +156 -17
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +59 -14
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +59 -14
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +103 -4
- package/src/resources/analytics.ts +98 -0
- package/src/resources/consent-settings.ts +16 -0
- package/src/resources/destinations.ts +7 -0
- package/src/resources/experiments.ts +808 -35
- package/src/resources/funnels.ts +114 -1616
- package/src/resources/index.ts +47 -2
- package/src/resources/journey-flows.ts +8244 -0
- package/src/resources/short-links.ts +47 -0
- package/src/resources/sources.ts +24 -0
- package/src/resources/test-events.ts +286 -0
- package/src/resources/video-channels.ts +22 -0
- package/src/resources/videos.ts +279 -2
- package/src/resources/web-analytics.ts +13 -13
- package/src/resources/web-scanners.ts +247 -16
- 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/src/resources/videos.ts
CHANGED
|
@@ -109,8 +109,12 @@ export class Videos extends APIResource {
|
|
|
109
109
|
* const response = await client.videos.transcript('id');
|
|
110
110
|
* ```
|
|
111
111
|
*/
|
|
112
|
-
transcript(
|
|
113
|
-
|
|
112
|
+
transcript(
|
|
113
|
+
id: string,
|
|
114
|
+
query: VideoTranscriptParams | null | undefined = {},
|
|
115
|
+
options?: RequestOptions,
|
|
116
|
+
): APIPromise<VideoTranscriptResponse> {
|
|
117
|
+
return this._client.get(path`/rest/v1/videos/${id}/transcript`, { query, ...options });
|
|
114
118
|
}
|
|
115
119
|
|
|
116
120
|
/**
|
|
@@ -134,6 +138,46 @@ export class Videos extends APIResource {
|
|
|
134
138
|
return this._client.put(path`/rest/v1/videos/${id}/transcript`, { body, ...options });
|
|
135
139
|
}
|
|
136
140
|
|
|
141
|
+
/**
|
|
142
|
+
* Queue a target-language caption translation. Specify replace to explicitly
|
|
143
|
+
* overwrite a track. Requires scope: media:update
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```ts
|
|
147
|
+
* const response =
|
|
148
|
+
* await client.videos.requestCaptionTranslation('id', {
|
|
149
|
+
* languageCode: 'languageCode',
|
|
150
|
+
* });
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
requestCaptionTranslation(
|
|
154
|
+
id: string,
|
|
155
|
+
body: VideoRequestCaptionTranslationParams,
|
|
156
|
+
options?: RequestOptions,
|
|
157
|
+
): APIPromise<VideoRequestCaptionTranslationResponse> {
|
|
158
|
+
return this._client.post(path`/rest/v1/videos/${id}/translate`, { body, ...options });
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Cancel a queued or in-progress language translation without modifying other
|
|
163
|
+
* tracks. Requires scope: media:update
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* ```ts
|
|
167
|
+
* const response =
|
|
168
|
+
* await client.videos.cancelCaptionTranslation('id', {
|
|
169
|
+
* languageCode: 'languageCode',
|
|
170
|
+
* });
|
|
171
|
+
* ```
|
|
172
|
+
*/
|
|
173
|
+
cancelCaptionTranslation(
|
|
174
|
+
id: string,
|
|
175
|
+
body: VideoCancelCaptionTranslationParams,
|
|
176
|
+
options?: RequestOptions,
|
|
177
|
+
): APIPromise<VideoCancelCaptionTranslationResponse> {
|
|
178
|
+
return this._client.post(path`/rest/v1/videos/${id}/cancel-translation`, { body, ...options });
|
|
179
|
+
}
|
|
180
|
+
|
|
137
181
|
/**
|
|
138
182
|
* Return per-video starts, unique viewers, completion rate, and average watch time
|
|
139
183
|
* for a date window. Optionally filter to one video with `videoId`; omit it to
|
|
@@ -182,6 +226,8 @@ export interface VideoListResponse {
|
|
|
182
226
|
|
|
183
227
|
accountId: string;
|
|
184
228
|
|
|
229
|
+
captionTracks: Array<VideoListResponse.CaptionTrack>;
|
|
230
|
+
|
|
185
231
|
createdAt: string;
|
|
186
232
|
|
|
187
233
|
type: 'Video';
|
|
@@ -200,16 +246,38 @@ export interface VideoListResponse {
|
|
|
200
246
|
|
|
201
247
|
name?: string | null;
|
|
202
248
|
|
|
249
|
+
sourceLanguageCode?: string | null;
|
|
250
|
+
|
|
203
251
|
updatedAt?: string | null;
|
|
204
252
|
|
|
205
253
|
width?: number | null;
|
|
206
254
|
}
|
|
207
255
|
|
|
256
|
+
export namespace VideoListResponse {
|
|
257
|
+
export interface CaptionTrack {
|
|
258
|
+
isMachineTranslated: boolean;
|
|
259
|
+
|
|
260
|
+
label: string;
|
|
261
|
+
|
|
262
|
+
languageCode: string;
|
|
263
|
+
|
|
264
|
+
origin: string;
|
|
265
|
+
|
|
266
|
+
status: string;
|
|
267
|
+
|
|
268
|
+
url: string;
|
|
269
|
+
|
|
270
|
+
humanEditedAt?: string | null;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
208
274
|
export interface VideoCreateResponse {
|
|
209
275
|
id: string;
|
|
210
276
|
|
|
211
277
|
accountId: string;
|
|
212
278
|
|
|
279
|
+
captionTracks: Array<VideoCreateResponse.CaptionTrack>;
|
|
280
|
+
|
|
213
281
|
createdAt: string;
|
|
214
282
|
|
|
215
283
|
type: 'Video';
|
|
@@ -230,12 +298,30 @@ export interface VideoCreateResponse {
|
|
|
230
298
|
|
|
231
299
|
name?: string | null;
|
|
232
300
|
|
|
301
|
+
sourceLanguageCode?: string | null;
|
|
302
|
+
|
|
233
303
|
updatedAt?: string | null;
|
|
234
304
|
|
|
235
305
|
width?: number | null;
|
|
236
306
|
}
|
|
237
307
|
|
|
238
308
|
export namespace VideoCreateResponse {
|
|
309
|
+
export interface CaptionTrack {
|
|
310
|
+
isMachineTranslated: boolean;
|
|
311
|
+
|
|
312
|
+
label: string;
|
|
313
|
+
|
|
314
|
+
languageCode: string;
|
|
315
|
+
|
|
316
|
+
origin: string;
|
|
317
|
+
|
|
318
|
+
status: string;
|
|
319
|
+
|
|
320
|
+
url: string;
|
|
321
|
+
|
|
322
|
+
humanEditedAt?: string | null;
|
|
323
|
+
}
|
|
324
|
+
|
|
239
325
|
export interface Upload {
|
|
240
326
|
mimeType: 'MP4' | 'WEBM';
|
|
241
327
|
|
|
@@ -248,6 +334,8 @@ export interface VideoRetrieveResponse {
|
|
|
248
334
|
|
|
249
335
|
accountId: string;
|
|
250
336
|
|
|
337
|
+
captionTracks: Array<VideoRetrieveResponse.CaptionTrack>;
|
|
338
|
+
|
|
251
339
|
createdAt: string;
|
|
252
340
|
|
|
253
341
|
type: 'Video';
|
|
@@ -268,16 +356,38 @@ export interface VideoRetrieveResponse {
|
|
|
268
356
|
|
|
269
357
|
resolvedValues?: unknown | null;
|
|
270
358
|
|
|
359
|
+
sourceLanguageCode?: string | null;
|
|
360
|
+
|
|
271
361
|
updatedAt?: string | null;
|
|
272
362
|
|
|
273
363
|
width?: number | null;
|
|
274
364
|
}
|
|
275
365
|
|
|
366
|
+
export namespace VideoRetrieveResponse {
|
|
367
|
+
export interface CaptionTrack {
|
|
368
|
+
isMachineTranslated: boolean;
|
|
369
|
+
|
|
370
|
+
label: string;
|
|
371
|
+
|
|
372
|
+
languageCode: string;
|
|
373
|
+
|
|
374
|
+
origin: string;
|
|
375
|
+
|
|
376
|
+
status: string;
|
|
377
|
+
|
|
378
|
+
url: string;
|
|
379
|
+
|
|
380
|
+
humanEditedAt?: string | null;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
276
384
|
export interface VideoUpdateResponse {
|
|
277
385
|
id: string;
|
|
278
386
|
|
|
279
387
|
accountId: string;
|
|
280
388
|
|
|
389
|
+
captionTracks: Array<VideoUpdateResponse.CaptionTrack>;
|
|
390
|
+
|
|
281
391
|
createdAt: string;
|
|
282
392
|
|
|
283
393
|
type: 'Video';
|
|
@@ -296,11 +406,31 @@ export interface VideoUpdateResponse {
|
|
|
296
406
|
|
|
297
407
|
name?: string | null;
|
|
298
408
|
|
|
409
|
+
sourceLanguageCode?: string | null;
|
|
410
|
+
|
|
299
411
|
updatedAt?: string | null;
|
|
300
412
|
|
|
301
413
|
width?: number | null;
|
|
302
414
|
}
|
|
303
415
|
|
|
416
|
+
export namespace VideoUpdateResponse {
|
|
417
|
+
export interface CaptionTrack {
|
|
418
|
+
isMachineTranslated: boolean;
|
|
419
|
+
|
|
420
|
+
label: string;
|
|
421
|
+
|
|
422
|
+
languageCode: string;
|
|
423
|
+
|
|
424
|
+
origin: string;
|
|
425
|
+
|
|
426
|
+
status: string;
|
|
427
|
+
|
|
428
|
+
url: string;
|
|
429
|
+
|
|
430
|
+
humanEditedAt?: string | null;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
304
434
|
export interface VideoDeleteResponse {
|
|
305
435
|
id: string;
|
|
306
436
|
|
|
@@ -322,6 +452,8 @@ export interface VideoUpdateTranscriptResponse {
|
|
|
322
452
|
|
|
323
453
|
accountId: string;
|
|
324
454
|
|
|
455
|
+
captionTracks: Array<VideoUpdateTranscriptResponse.CaptionTrack>;
|
|
456
|
+
|
|
325
457
|
createdAt: string;
|
|
326
458
|
|
|
327
459
|
type: 'Video';
|
|
@@ -340,11 +472,131 @@ export interface VideoUpdateTranscriptResponse {
|
|
|
340
472
|
|
|
341
473
|
name?: string | null;
|
|
342
474
|
|
|
475
|
+
sourceLanguageCode?: string | null;
|
|
476
|
+
|
|
343
477
|
updatedAt?: string | null;
|
|
344
478
|
|
|
345
479
|
width?: number | null;
|
|
346
480
|
}
|
|
347
481
|
|
|
482
|
+
export namespace VideoUpdateTranscriptResponse {
|
|
483
|
+
export interface CaptionTrack {
|
|
484
|
+
isMachineTranslated: boolean;
|
|
485
|
+
|
|
486
|
+
label: string;
|
|
487
|
+
|
|
488
|
+
languageCode: string;
|
|
489
|
+
|
|
490
|
+
origin: string;
|
|
491
|
+
|
|
492
|
+
status: string;
|
|
493
|
+
|
|
494
|
+
url: string;
|
|
495
|
+
|
|
496
|
+
humanEditedAt?: string | null;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
export interface VideoRequestCaptionTranslationResponse {
|
|
501
|
+
id: string;
|
|
502
|
+
|
|
503
|
+
accountId: string;
|
|
504
|
+
|
|
505
|
+
captionTracks: Array<VideoRequestCaptionTranslationResponse.CaptionTrack>;
|
|
506
|
+
|
|
507
|
+
createdAt: string;
|
|
508
|
+
|
|
509
|
+
type: 'Video';
|
|
510
|
+
|
|
511
|
+
captionsUpdatedAt?: string | null;
|
|
512
|
+
|
|
513
|
+
captionsUpdatedByName?: string | null;
|
|
514
|
+
|
|
515
|
+
description?: string | null;
|
|
516
|
+
|
|
517
|
+
duration?: number | null;
|
|
518
|
+
|
|
519
|
+
hasVideoUpload?: boolean | null;
|
|
520
|
+
|
|
521
|
+
height?: number | null;
|
|
522
|
+
|
|
523
|
+
name?: string | null;
|
|
524
|
+
|
|
525
|
+
sourceLanguageCode?: string | null;
|
|
526
|
+
|
|
527
|
+
updatedAt?: string | null;
|
|
528
|
+
|
|
529
|
+
width?: number | null;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export namespace VideoRequestCaptionTranslationResponse {
|
|
533
|
+
export interface CaptionTrack {
|
|
534
|
+
isMachineTranslated: boolean;
|
|
535
|
+
|
|
536
|
+
label: string;
|
|
537
|
+
|
|
538
|
+
languageCode: string;
|
|
539
|
+
|
|
540
|
+
origin: string;
|
|
541
|
+
|
|
542
|
+
status: string;
|
|
543
|
+
|
|
544
|
+
url: string;
|
|
545
|
+
|
|
546
|
+
humanEditedAt?: string | null;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
export interface VideoCancelCaptionTranslationResponse {
|
|
551
|
+
id: string;
|
|
552
|
+
|
|
553
|
+
accountId: string;
|
|
554
|
+
|
|
555
|
+
captionTracks: Array<VideoCancelCaptionTranslationResponse.CaptionTrack>;
|
|
556
|
+
|
|
557
|
+
createdAt: string;
|
|
558
|
+
|
|
559
|
+
type: 'Video';
|
|
560
|
+
|
|
561
|
+
captionsUpdatedAt?: string | null;
|
|
562
|
+
|
|
563
|
+
captionsUpdatedByName?: string | null;
|
|
564
|
+
|
|
565
|
+
description?: string | null;
|
|
566
|
+
|
|
567
|
+
duration?: number | null;
|
|
568
|
+
|
|
569
|
+
hasVideoUpload?: boolean | null;
|
|
570
|
+
|
|
571
|
+
height?: number | null;
|
|
572
|
+
|
|
573
|
+
name?: string | null;
|
|
574
|
+
|
|
575
|
+
sourceLanguageCode?: string | null;
|
|
576
|
+
|
|
577
|
+
updatedAt?: string | null;
|
|
578
|
+
|
|
579
|
+
width?: number | null;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
export namespace VideoCancelCaptionTranslationResponse {
|
|
583
|
+
export interface CaptionTrack {
|
|
584
|
+
isMachineTranslated: boolean;
|
|
585
|
+
|
|
586
|
+
label: string;
|
|
587
|
+
|
|
588
|
+
languageCode: string;
|
|
589
|
+
|
|
590
|
+
origin: string;
|
|
591
|
+
|
|
592
|
+
status: string;
|
|
593
|
+
|
|
594
|
+
url: string;
|
|
595
|
+
|
|
596
|
+
humanEditedAt?: string | null;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
|
|
348
600
|
export interface VideoAnalyticsResponse {
|
|
349
601
|
hasMore: boolean;
|
|
350
602
|
|
|
@@ -410,6 +662,8 @@ export interface VideoCreateParams {
|
|
|
410
662
|
* Video title. Defaults to `New Video` when omitted.
|
|
411
663
|
*/
|
|
412
664
|
name?: string | null;
|
|
665
|
+
|
|
666
|
+
sourceLanguageCode?: string | null;
|
|
413
667
|
}
|
|
414
668
|
|
|
415
669
|
export interface VideoUpdateParams {
|
|
@@ -431,6 +685,12 @@ export interface VideoUploadParams {
|
|
|
431
685
|
* Content type for the replacement original video: `MP4` or `WEBM`.
|
|
432
686
|
*/
|
|
433
687
|
mimeType: 'MP4' | 'WEBM';
|
|
688
|
+
|
|
689
|
+
sourceLanguageCode?: string;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
export interface VideoTranscriptParams {
|
|
693
|
+
languageCode?: string;
|
|
434
694
|
}
|
|
435
695
|
|
|
436
696
|
export interface VideoUpdateTranscriptParams {
|
|
@@ -444,6 +704,18 @@ export interface VideoUpdateTranscriptParams {
|
|
|
444
704
|
* saved.
|
|
445
705
|
*/
|
|
446
706
|
format: 'SRT' | 'VTT';
|
|
707
|
+
|
|
708
|
+
languageCode?: string | null;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
export interface VideoRequestCaptionTranslationParams {
|
|
712
|
+
languageCode: string;
|
|
713
|
+
|
|
714
|
+
replace?: boolean | null;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
export interface VideoCancelCaptionTranslationParams {
|
|
718
|
+
languageCode: string;
|
|
447
719
|
}
|
|
448
720
|
|
|
449
721
|
export interface VideoAnalyticsParams {
|
|
@@ -501,6 +773,8 @@ export declare namespace Videos {
|
|
|
501
773
|
type VideoUploadResponse as VideoUploadResponse,
|
|
502
774
|
type VideoTranscriptResponse as VideoTranscriptResponse,
|
|
503
775
|
type VideoUpdateTranscriptResponse as VideoUpdateTranscriptResponse,
|
|
776
|
+
type VideoRequestCaptionTranslationResponse as VideoRequestCaptionTranslationResponse,
|
|
777
|
+
type VideoCancelCaptionTranslationResponse as VideoCancelCaptionTranslationResponse,
|
|
504
778
|
type VideoAnalyticsResponse as VideoAnalyticsResponse,
|
|
505
779
|
type VideoAnalyticsTimeseriesResponse as VideoAnalyticsTimeseriesResponse,
|
|
506
780
|
type VideoListResponsesCursor as VideoListResponsesCursor,
|
|
@@ -508,7 +782,10 @@ export declare namespace Videos {
|
|
|
508
782
|
type VideoCreateParams as VideoCreateParams,
|
|
509
783
|
type VideoUpdateParams as VideoUpdateParams,
|
|
510
784
|
type VideoUploadParams as VideoUploadParams,
|
|
785
|
+
type VideoTranscriptParams as VideoTranscriptParams,
|
|
511
786
|
type VideoUpdateTranscriptParams as VideoUpdateTranscriptParams,
|
|
787
|
+
type VideoRequestCaptionTranslationParams as VideoRequestCaptionTranslationParams,
|
|
788
|
+
type VideoCancelCaptionTranslationParams as VideoCancelCaptionTranslationParams,
|
|
512
789
|
type VideoAnalyticsParams as VideoAnalyticsParams,
|
|
513
790
|
type VideoAnalyticsTimeseriesParams as VideoAnalyticsTimeseriesParams,
|
|
514
791
|
};
|
|
@@ -75,11 +75,11 @@ export class WebAnalytics extends APIResource {
|
|
|
75
75
|
* `filters` query parameters are JSON-encoded arrays. Requires scope:
|
|
76
76
|
* web-analytics:view
|
|
77
77
|
*/
|
|
78
|
-
|
|
79
|
-
query:
|
|
78
|
+
pathExplorer(
|
|
79
|
+
query: WebAnalyticsPathExplorerParams,
|
|
80
80
|
options?: RequestOptions,
|
|
81
|
-
): APIPromise<
|
|
82
|
-
return this._client.get('/rest/v1/web-analytics/
|
|
81
|
+
): APIPromise<WebAnalyticsPathExplorerResponse> {
|
|
82
|
+
return this._client.get('/rest/v1/web-analytics/path-explorer', { query, ...options });
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -215,15 +215,15 @@ export interface WebAnalyticsCurrentVisitorsResponse {
|
|
|
215
215
|
count: number;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
export interface
|
|
218
|
+
export interface WebAnalyticsPathExplorerResponse {
|
|
219
219
|
anchorSessions: number;
|
|
220
220
|
|
|
221
221
|
hasMore: boolean;
|
|
222
222
|
|
|
223
|
-
steps: Array<
|
|
223
|
+
steps: Array<WebAnalyticsPathExplorerResponse.Step>;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
export namespace
|
|
226
|
+
export namespace WebAnalyticsPathExplorerResponse {
|
|
227
227
|
export interface Step {
|
|
228
228
|
isOther: boolean;
|
|
229
229
|
|
|
@@ -428,15 +428,15 @@ export interface WebAnalyticsCurrentVisitorsParams {
|
|
|
428
428
|
webSourceId?: string;
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
-
export interface
|
|
431
|
+
export interface WebAnalyticsPathExplorerParams {
|
|
432
432
|
/**
|
|
433
433
|
* Inclusive lower bound of the analysis window as `YYYY-MM-DD`.
|
|
434
434
|
*/
|
|
435
435
|
from: string;
|
|
436
436
|
|
|
437
437
|
/**
|
|
438
|
-
* JSON-encoded ordered path of opaque
|
|
439
|
-
* request first-column candidates.
|
|
438
|
+
* JSON-encoded ordered path of opaque path explorer step keys. Use an empty array
|
|
439
|
+
* to request first-column candidates.
|
|
440
440
|
*/
|
|
441
441
|
path: string;
|
|
442
442
|
|
|
@@ -453,7 +453,7 @@ export interface WebAnalyticsJourneyParams {
|
|
|
453
453
|
excludeBots?: boolean;
|
|
454
454
|
|
|
455
455
|
/**
|
|
456
|
-
* Optional JSON-encoded array of up to 20
|
|
456
|
+
* Optional JSON-encoded array of up to 20 cohort filters. Supports web analytics
|
|
457
457
|
* dimensions plus `event_name`, `ep_currency`, `ep_appointment_id`,
|
|
458
458
|
* `ep_appointment_status`, `ep_service_line`, `ep_provider_id`, `ep_location_id`,
|
|
459
459
|
* `ep_booking_channel`, `ep_revenue_type`, `ep_call_outcome`, and `ep_staff_id`.
|
|
@@ -482,13 +482,13 @@ export declare namespace WebAnalytics {
|
|
|
482
482
|
type WebAnalyticsLocationsResponse as WebAnalyticsLocationsResponse,
|
|
483
483
|
type WebAnalyticsDevicesResponse as WebAnalyticsDevicesResponse,
|
|
484
484
|
type WebAnalyticsCurrentVisitorsResponse as WebAnalyticsCurrentVisitorsResponse,
|
|
485
|
-
type
|
|
485
|
+
type WebAnalyticsPathExplorerResponse as WebAnalyticsPathExplorerResponse,
|
|
486
486
|
type WebAnalyticsOverviewParams as WebAnalyticsOverviewParams,
|
|
487
487
|
type WebAnalyticsSourcesParams as WebAnalyticsSourcesParams,
|
|
488
488
|
type WebAnalyticsPagesParams as WebAnalyticsPagesParams,
|
|
489
489
|
type WebAnalyticsLocationsParams as WebAnalyticsLocationsParams,
|
|
490
490
|
type WebAnalyticsDevicesParams as WebAnalyticsDevicesParams,
|
|
491
491
|
type WebAnalyticsCurrentVisitorsParams as WebAnalyticsCurrentVisitorsParams,
|
|
492
|
-
type
|
|
492
|
+
type WebAnalyticsPathExplorerParams as WebAnalyticsPathExplorerParams,
|
|
493
493
|
};
|
|
494
494
|
}
|