@oursprivacy/platform-sdk 1.68.0 → 1.70.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 +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/analytics.d.mts +10 -0
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +10 -0
- package/resources/analytics.d.ts.map +1 -1
- package/resources/dashboards.d.mts +646 -4
- package/resources/dashboards.d.mts.map +1 -1
- package/resources/dashboards.d.ts +646 -4
- package/resources/dashboards.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/funnels.d.mts +253 -7
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +253 -7
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +10 -7
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +10 -7
- package/resources/funnels.mjs.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/insights.d.mts +73 -12
- package/resources/insights.d.mts.map +1 -1
- package/resources/insights.d.ts +73 -12
- package/resources/insights.d.ts.map +1 -1
- package/resources/insights.js +9 -7
- package/resources/insights.js.map +1 -1
- package/resources/insights.mjs +9 -7
- package/resources/insights.mjs.map +1 -1
- package/resources/journey-flows.d.mts +242 -18
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +242 -18
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/journey-flows.js +18 -12
- package/resources/journey-flows.js.map +1 -1
- package/resources/journey-flows.mjs +18 -12
- package/resources/journey-flows.mjs.map +1 -1
- package/resources/locations.d.mts +653 -13
- package/resources/locations.d.mts.map +1 -1
- package/resources/locations.d.ts +653 -13
- package/resources/locations.d.ts.map +1 -1
- package/resources/locations.js +10 -3
- package/resources/locations.js.map +1 -1
- package/resources/locations.mjs +10 -3
- package/resources/locations.mjs.map +1 -1
- package/resources/query-dispatches.d.mts +241 -0
- package/resources/query-dispatches.d.mts.map +1 -0
- package/resources/query-dispatches.d.ts +241 -0
- package/resources/query-dispatches.d.ts.map +1 -0
- package/resources/query-dispatches.js +56 -0
- package/resources/query-dispatches.js.map +1 -0
- package/resources/query-dispatches.mjs +52 -0
- package/resources/query-dispatches.mjs.map +1 -0
- package/resources/query-events.d.mts +10 -0
- package/resources/query-events.d.mts.map +1 -1
- package/resources/query-events.d.ts +10 -0
- package/resources/query-events.d.ts.map +1 -1
- package/resources/report-branding.d.mts +112 -28
- package/resources/report-branding.d.mts.map +1 -1
- package/resources/report-branding.d.ts +112 -28
- package/resources/report-branding.d.ts.map +1 -1
- package/resources/report-branding.js +29 -15
- package/resources/report-branding.js.map +1 -1
- package/resources/report-branding.mjs +29 -15
- package/resources/report-branding.mjs.map +1 -1
- package/resources/sources.d.mts +6 -6
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +6 -6
- package/resources/sources.d.ts.map +1 -1
- package/resources/test-events.d.mts +28 -0
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +28 -0
- package/resources/test-events.d.ts.map +1 -1
- package/resources/web-analytics.d.mts +24 -0
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +24 -0
- package/resources/web-analytics.d.ts.map +1 -1
- package/src/client.ts +29 -0
- package/src/resources/analytics.ts +12 -0
- package/src/resources/dashboards.ts +876 -8
- package/src/resources/destinations.ts +23 -2
- package/src/resources/funnels.ts +332 -7
- package/src/resources/index.ts +13 -0
- package/src/resources/insights.ts +107 -12
- package/src/resources/journey-flows.ts +300 -22
- package/src/resources/locations.ts +690 -12
- package/src/resources/query-dispatches.ts +323 -0
- package/src/resources/query-events.ts +12 -0
- package/src/resources/report-branding.ts +132 -27
- package/src/resources/sources.ts +12 -0
- package/src/resources/test-events.ts +33 -0
- package/src/resources/web-analytics.ts +40 -0
- 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
|
@@ -143,12 +143,14 @@ export interface DestinationListResponse {
|
|
|
143
143
|
| 'GooglePubSub'
|
|
144
144
|
| 'GoogleStorage'
|
|
145
145
|
| 'GravityCAPI'
|
|
146
|
+
| 'GrowthChannel'
|
|
146
147
|
| 'HTTPCustomRequest'
|
|
147
148
|
| 'HTTPDestination'
|
|
148
149
|
| 'Hubspot'
|
|
149
150
|
| 'IHeartMediaMagellan'
|
|
150
151
|
| 'Impact'
|
|
151
152
|
| 'Iterable'
|
|
153
|
+
| 'Katalys'
|
|
152
154
|
| 'Klaviyo'
|
|
153
155
|
| 'LeadSquared'
|
|
154
156
|
| 'LinkedInAdsCAPI'
|
|
@@ -173,6 +175,7 @@ export interface DestinationListResponse {
|
|
|
173
175
|
| 'QuoraAds'
|
|
174
176
|
| 'Reddit'
|
|
175
177
|
| 'RedditCapiV3'
|
|
178
|
+
| 'Renshu'
|
|
176
179
|
| 'Rokt'
|
|
177
180
|
| 'RokuCAPI'
|
|
178
181
|
| 'SnapchatAdsCapi'
|
|
@@ -270,12 +273,14 @@ export interface DestinationCreateResponse {
|
|
|
270
273
|
| 'GooglePubSub'
|
|
271
274
|
| 'GoogleStorage'
|
|
272
275
|
| 'GravityCAPI'
|
|
276
|
+
| 'GrowthChannel'
|
|
273
277
|
| 'HTTPCustomRequest'
|
|
274
278
|
| 'HTTPDestination'
|
|
275
279
|
| 'Hubspot'
|
|
276
280
|
| 'IHeartMediaMagellan'
|
|
277
281
|
| 'Impact'
|
|
278
282
|
| 'Iterable'
|
|
283
|
+
| 'Katalys'
|
|
279
284
|
| 'Klaviyo'
|
|
280
285
|
| 'LeadSquared'
|
|
281
286
|
| 'LinkedInAdsCAPI'
|
|
@@ -300,6 +305,7 @@ export interface DestinationCreateResponse {
|
|
|
300
305
|
| 'QuoraAds'
|
|
301
306
|
| 'Reddit'
|
|
302
307
|
| 'RedditCapiV3'
|
|
308
|
+
| 'Renshu'
|
|
303
309
|
| 'Rokt'
|
|
304
310
|
| 'RokuCAPI'
|
|
305
311
|
| 'SnapchatAdsCapi'
|
|
@@ -397,12 +403,14 @@ export interface DestinationRetrieveResponse {
|
|
|
397
403
|
| 'GooglePubSub'
|
|
398
404
|
| 'GoogleStorage'
|
|
399
405
|
| 'GravityCAPI'
|
|
406
|
+
| 'GrowthChannel'
|
|
400
407
|
| 'HTTPCustomRequest'
|
|
401
408
|
| 'HTTPDestination'
|
|
402
409
|
| 'Hubspot'
|
|
403
410
|
| 'IHeartMediaMagellan'
|
|
404
411
|
| 'Impact'
|
|
405
412
|
| 'Iterable'
|
|
413
|
+
| 'Katalys'
|
|
406
414
|
| 'Klaviyo'
|
|
407
415
|
| 'LeadSquared'
|
|
408
416
|
| 'LinkedInAdsCAPI'
|
|
@@ -427,6 +435,7 @@ export interface DestinationRetrieveResponse {
|
|
|
427
435
|
| 'QuoraAds'
|
|
428
436
|
| 'Reddit'
|
|
429
437
|
| 'RedditCapiV3'
|
|
438
|
+
| 'Renshu'
|
|
430
439
|
| 'Rokt'
|
|
431
440
|
| 'RokuCAPI'
|
|
432
441
|
| 'SnapchatAdsCapi'
|
|
@@ -524,12 +533,14 @@ export interface DestinationUpdateResponse {
|
|
|
524
533
|
| 'GooglePubSub'
|
|
525
534
|
| 'GoogleStorage'
|
|
526
535
|
| 'GravityCAPI'
|
|
536
|
+
| 'GrowthChannel'
|
|
527
537
|
| 'HTTPCustomRequest'
|
|
528
538
|
| 'HTTPDestination'
|
|
529
539
|
| 'Hubspot'
|
|
530
540
|
| 'IHeartMediaMagellan'
|
|
531
541
|
| 'Impact'
|
|
532
542
|
| 'Iterable'
|
|
543
|
+
| 'Katalys'
|
|
533
544
|
| 'Klaviyo'
|
|
534
545
|
| 'LeadSquared'
|
|
535
546
|
| 'LinkedInAdsCAPI'
|
|
@@ -554,6 +565,7 @@ export interface DestinationUpdateResponse {
|
|
|
554
565
|
| 'QuoraAds'
|
|
555
566
|
| 'Reddit'
|
|
556
567
|
| 'RedditCapiV3'
|
|
568
|
+
| 'Renshu'
|
|
557
569
|
| 'Rokt'
|
|
558
570
|
| 'RokuCAPI'
|
|
559
571
|
| 'SnapchatAdsCapi'
|
|
@@ -686,7 +698,10 @@ export namespace DestinationTypesResponse {
|
|
|
686
698
|
| 'GravityCAPI'
|
|
687
699
|
| 'LeadSquared'
|
|
688
700
|
| 'Trybe'
|
|
689
|
-
| 'Affiliatly'
|
|
701
|
+
| 'Affiliatly'
|
|
702
|
+
| 'Katalys'
|
|
703
|
+
| 'GrowthChannel'
|
|
704
|
+
| 'Renshu';
|
|
690
705
|
|
|
691
706
|
capabilities: Entity.Capabilities;
|
|
692
707
|
|
|
@@ -894,12 +909,14 @@ export interface DestinationListParams extends CursorParams {
|
|
|
894
909
|
| 'GooglePubSub'
|
|
895
910
|
| 'GoogleStorage'
|
|
896
911
|
| 'GravityCAPI'
|
|
912
|
+
| 'GrowthChannel'
|
|
897
913
|
| 'HTTPCustomRequest'
|
|
898
914
|
| 'HTTPDestination'
|
|
899
915
|
| 'Hubspot'
|
|
900
916
|
| 'IHeartMediaMagellan'
|
|
901
917
|
| 'Impact'
|
|
902
918
|
| 'Iterable'
|
|
919
|
+
| 'Katalys'
|
|
903
920
|
| 'Klaviyo'
|
|
904
921
|
| 'LeadSquared'
|
|
905
922
|
| 'LinkedInAdsCAPI'
|
|
@@ -924,6 +941,7 @@ export interface DestinationListParams extends CursorParams {
|
|
|
924
941
|
| 'QuoraAds'
|
|
925
942
|
| 'Reddit'
|
|
926
943
|
| 'RedditCapiV3'
|
|
944
|
+
| 'Renshu'
|
|
927
945
|
| 'Rokt'
|
|
928
946
|
| 'RokuCAPI'
|
|
929
947
|
| 'SnapchatAdsCapi'
|
|
@@ -1044,7 +1062,10 @@ export interface DestinationCreateParams {
|
|
|
1044
1062
|
| 'GravityCAPI'
|
|
1045
1063
|
| 'LeadSquared'
|
|
1046
1064
|
| 'Trybe'
|
|
1047
|
-
| 'Affiliatly'
|
|
1065
|
+
| 'Affiliatly'
|
|
1066
|
+
| 'Katalys'
|
|
1067
|
+
| 'GrowthChannel'
|
|
1068
|
+
| 'Renshu';
|
|
1048
1069
|
|
|
1049
1070
|
/**
|
|
1050
1071
|
* Restrict dispatch to these source IDs. Omit on create or send `null` to accept
|
package/src/resources/funnels.ts
CHANGED
|
@@ -67,13 +67,16 @@ export class Funnels extends APIResource {
|
|
|
67
67
|
/**
|
|
68
68
|
* Compute funnel step analytics from the funnel’s saved `queryDefinition` over a
|
|
69
69
|
* requested date window. Returns per-step visitor counts, conversion rates,
|
|
70
|
-
* drop-off rates, average time to next step, sample session IDs for replay
|
|
71
|
-
* the resolved entry/observation scope.
|
|
72
|
-
*
|
|
73
|
-
* not
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
70
|
+
* drop-off rates, average time to next step, sample session IDs for replay (omit
|
|
71
|
+
* them with `includeSamples=false`), and the resolved entry/observation scope.
|
|
72
|
+
* Pass `breakdown` to split the funnel by one property (top values plus Other and
|
|
73
|
+
* (not set)) and `comparison` to add the same metrics for other dates. Neither is
|
|
74
|
+
* saved with the funnel. Ad hoc filter, saved-scope, and web-source overrides are
|
|
75
|
+
* not accepted. Results may be served from a recent cache; pass `refresh=true` to
|
|
76
|
+
* recompute. Observation completeness is null when the source coverage watermark
|
|
77
|
+
* is unavailable. `to` must be on or after `from`, and the window may span at most
|
|
78
|
+
* 93 days including both endpoints. Requires API-key scope or current OAuth user
|
|
79
|
+
* permission: web-analytics:view
|
|
77
80
|
*/
|
|
78
81
|
results(
|
|
79
82
|
id: string,
|
|
@@ -1279,6 +1282,16 @@ export interface FunnelResultsResponse {
|
|
|
1279
1282
|
*/
|
|
1280
1283
|
totalVisitors: number;
|
|
1281
1284
|
|
|
1285
|
+
/**
|
|
1286
|
+
* Per-segment results when `breakdown` was requested; null otherwise.
|
|
1287
|
+
*/
|
|
1288
|
+
breakdown?: FunnelResultsResponse.Breakdown | null;
|
|
1289
|
+
|
|
1290
|
+
/**
|
|
1291
|
+
* Results for the compared dates when `comparison` was requested; null otherwise.
|
|
1292
|
+
*/
|
|
1293
|
+
comparison?: FunnelResultsResponse.Comparison | null;
|
|
1294
|
+
|
|
1282
1295
|
/**
|
|
1283
1296
|
* Average time from first step to last step in seconds. Null when no completions.
|
|
1284
1297
|
*/
|
|
@@ -1348,6 +1361,291 @@ export namespace FunnelResultsResponse {
|
|
|
1348
1361
|
*/
|
|
1349
1362
|
avgTimeToNextStep?: number | null;
|
|
1350
1363
|
}
|
|
1364
|
+
|
|
1365
|
+
/**
|
|
1366
|
+
* Per-segment results when `breakdown` was requested; null otherwise.
|
|
1367
|
+
*/
|
|
1368
|
+
export interface Breakdown {
|
|
1369
|
+
scope: Breakdown.Scope;
|
|
1370
|
+
|
|
1371
|
+
/**
|
|
1372
|
+
* Segments in rank order.
|
|
1373
|
+
*/
|
|
1374
|
+
segments: Array<Breakdown.Segment>;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
export namespace Breakdown {
|
|
1378
|
+
export interface Scope {
|
|
1379
|
+
atAnchorId: string | null;
|
|
1380
|
+
|
|
1381
|
+
limit: number;
|
|
1382
|
+
|
|
1383
|
+
property: Scope.Property;
|
|
1384
|
+
|
|
1385
|
+
stepNumber: number | null;
|
|
1386
|
+
|
|
1387
|
+
truncated: boolean;
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* Distinct values seen.
|
|
1391
|
+
*/
|
|
1392
|
+
valueCount: number;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
export namespace Scope {
|
|
1396
|
+
export interface Property {
|
|
1397
|
+
property: string;
|
|
1398
|
+
|
|
1399
|
+
type: 'string' | 'number' | 'boolean';
|
|
1400
|
+
|
|
1401
|
+
path?: Array<string>;
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
export interface Segment {
|
|
1406
|
+
/**
|
|
1407
|
+
* Ratio of last-step to first-step volume in this segment, as a percentage.
|
|
1408
|
+
*/
|
|
1409
|
+
overallConversionRate: number;
|
|
1410
|
+
|
|
1411
|
+
segment: Segment.Segment;
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* Per-step results for this segment.
|
|
1415
|
+
*/
|
|
1416
|
+
steps: Array<Segment.Step>;
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
* First-step volume in this segment.
|
|
1420
|
+
*/
|
|
1421
|
+
totalVisitors: number;
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* Average time from first step to last step in seconds. Null when no completions.
|
|
1425
|
+
*/
|
|
1426
|
+
overallAvgTimeToConversion?: number | null;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
export namespace Segment {
|
|
1430
|
+
export interface Segment {
|
|
1431
|
+
/**
|
|
1432
|
+
* Segment key: v:<value>, $other, or $none.
|
|
1433
|
+
*/
|
|
1434
|
+
key: string;
|
|
1435
|
+
|
|
1436
|
+
kind: 'value' | 'other' | 'not_set';
|
|
1437
|
+
|
|
1438
|
+
label: string;
|
|
1439
|
+
|
|
1440
|
+
rank: number;
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* Null for other and not_set.
|
|
1444
|
+
*/
|
|
1445
|
+
value: string | null;
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
export interface Step {
|
|
1449
|
+
conversionCount: number;
|
|
1450
|
+
|
|
1451
|
+
/**
|
|
1452
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
1453
|
+
*/
|
|
1454
|
+
conversionRate: number;
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
1458
|
+
* is zero. Not a participant loss measure for event counting.
|
|
1459
|
+
*/
|
|
1460
|
+
dropOffRate: number;
|
|
1461
|
+
|
|
1462
|
+
dropOffSessionIds: Array<string>;
|
|
1463
|
+
|
|
1464
|
+
dropOffVisitorIds: Array<string>;
|
|
1465
|
+
|
|
1466
|
+
/**
|
|
1467
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
1468
|
+
* 100%.
|
|
1469
|
+
*/
|
|
1470
|
+
overallConversionRate: number;
|
|
1471
|
+
|
|
1472
|
+
sessionIds: Array<string>;
|
|
1473
|
+
|
|
1474
|
+
stepNumber: number;
|
|
1475
|
+
|
|
1476
|
+
/**
|
|
1477
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
1478
|
+
*/
|
|
1479
|
+
visitorCount: number;
|
|
1480
|
+
|
|
1481
|
+
visitorIds: Array<string>;
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
1485
|
+
*/
|
|
1486
|
+
avgTimeToNextStep?: number | null;
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
/**
|
|
1492
|
+
* Results for the compared dates when `comparison` was requested; null otherwise.
|
|
1493
|
+
*/
|
|
1494
|
+
export interface Comparison {
|
|
1495
|
+
overallConversionRate: number;
|
|
1496
|
+
|
|
1497
|
+
scope: Comparison.Scope;
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* Same keys and order as `breakdown.segments`.
|
|
1501
|
+
*/
|
|
1502
|
+
segments: Array<Comparison.Segment>;
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* Per-step results for the compared dates. Sample ID arrays are empty.
|
|
1506
|
+
*/
|
|
1507
|
+
steps: Array<Comparison.Step>;
|
|
1508
|
+
|
|
1509
|
+
totalVisitors: number;
|
|
1510
|
+
|
|
1511
|
+
overallAvgTimeToConversion?: number | null;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
export namespace Comparison {
|
|
1515
|
+
export interface Scope {
|
|
1516
|
+
from: string;
|
|
1517
|
+
|
|
1518
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
1519
|
+
|
|
1520
|
+
to: string;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
export interface Segment {
|
|
1524
|
+
/**
|
|
1525
|
+
* Ratio of last-step to first-step volume in this segment, as a percentage.
|
|
1526
|
+
*/
|
|
1527
|
+
overallConversionRate: number;
|
|
1528
|
+
|
|
1529
|
+
segment: Segment.Segment;
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* Per-step results for this segment.
|
|
1533
|
+
*/
|
|
1534
|
+
steps: Array<Segment.Step>;
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* First-step volume in this segment.
|
|
1538
|
+
*/
|
|
1539
|
+
totalVisitors: number;
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* Average time from first step to last step in seconds. Null when no completions.
|
|
1543
|
+
*/
|
|
1544
|
+
overallAvgTimeToConversion?: number | null;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
export namespace Segment {
|
|
1548
|
+
export interface Segment {
|
|
1549
|
+
/**
|
|
1550
|
+
* Segment key: v:<value>, $other, or $none.
|
|
1551
|
+
*/
|
|
1552
|
+
key: string;
|
|
1553
|
+
|
|
1554
|
+
kind: 'value' | 'other' | 'not_set';
|
|
1555
|
+
|
|
1556
|
+
label: string;
|
|
1557
|
+
|
|
1558
|
+
rank: number;
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* Null for other and not_set.
|
|
1562
|
+
*/
|
|
1563
|
+
value: string | null;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
export interface Step {
|
|
1567
|
+
conversionCount: number;
|
|
1568
|
+
|
|
1569
|
+
/**
|
|
1570
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
1571
|
+
*/
|
|
1572
|
+
conversionRate: number;
|
|
1573
|
+
|
|
1574
|
+
/**
|
|
1575
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
1576
|
+
* is zero. Not a participant loss measure for event counting.
|
|
1577
|
+
*/
|
|
1578
|
+
dropOffRate: number;
|
|
1579
|
+
|
|
1580
|
+
dropOffSessionIds: Array<string>;
|
|
1581
|
+
|
|
1582
|
+
dropOffVisitorIds: Array<string>;
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
1586
|
+
* 100%.
|
|
1587
|
+
*/
|
|
1588
|
+
overallConversionRate: number;
|
|
1589
|
+
|
|
1590
|
+
sessionIds: Array<string>;
|
|
1591
|
+
|
|
1592
|
+
stepNumber: number;
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
1596
|
+
*/
|
|
1597
|
+
visitorCount: number;
|
|
1598
|
+
|
|
1599
|
+
visitorIds: Array<string>;
|
|
1600
|
+
|
|
1601
|
+
/**
|
|
1602
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
1603
|
+
*/
|
|
1604
|
+
avgTimeToNextStep?: number | null;
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
export interface Step {
|
|
1609
|
+
conversionCount: number;
|
|
1610
|
+
|
|
1611
|
+
/**
|
|
1612
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
1613
|
+
*/
|
|
1614
|
+
conversionRate: number;
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
1618
|
+
* is zero. Not a participant loss measure for event counting.
|
|
1619
|
+
*/
|
|
1620
|
+
dropOffRate: number;
|
|
1621
|
+
|
|
1622
|
+
dropOffSessionIds: Array<string>;
|
|
1623
|
+
|
|
1624
|
+
dropOffVisitorIds: Array<string>;
|
|
1625
|
+
|
|
1626
|
+
/**
|
|
1627
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
1628
|
+
* 100%.
|
|
1629
|
+
*/
|
|
1630
|
+
overallConversionRate: number;
|
|
1631
|
+
|
|
1632
|
+
sessionIds: Array<string>;
|
|
1633
|
+
|
|
1634
|
+
stepNumber: number;
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
1638
|
+
*/
|
|
1639
|
+
visitorCount: number;
|
|
1640
|
+
|
|
1641
|
+
visitorIds: Array<string>;
|
|
1642
|
+
|
|
1643
|
+
/**
|
|
1644
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
1645
|
+
*/
|
|
1646
|
+
avgTimeToNextStep?: number | null;
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1351
1649
|
}
|
|
1352
1650
|
|
|
1353
1651
|
export interface FunnelCreateParams {
|
|
@@ -1799,6 +2097,23 @@ export interface FunnelResultsParams {
|
|
|
1799
2097
|
*/
|
|
1800
2098
|
to: string;
|
|
1801
2099
|
|
|
2100
|
+
/**
|
|
2101
|
+
* Split results by a property. JSON object
|
|
2102
|
+
* {property:{property,path?,type},limit?}. type is string, number or boolean;
|
|
2103
|
+
* limit is 1–10 (default 5). Properties come from GET
|
|
2104
|
+
* /rest/v1/analytics/query-catalog. Optional stepNumber (default 1) is the step
|
|
2105
|
+
* whose event supplies the value; any-order funnels accept only 1. Example:
|
|
2106
|
+
* {"property":{"property":"event.properties","path":["plan"],"type":"string"},"stepNumber":2}
|
|
2107
|
+
*/
|
|
2108
|
+
breakdown?: string;
|
|
2109
|
+
|
|
2110
|
+
/**
|
|
2111
|
+
* Compare with another range of the same length. JSON object {kind,from?}: kind is
|
|
2112
|
+
* previous_period, previous_year or custom; custom requires from (YYYY-MM-DD).
|
|
2113
|
+
* Example: {"kind":"previous_period"}
|
|
2114
|
+
*/
|
|
2115
|
+
comparison?: string;
|
|
2116
|
+
|
|
1802
2117
|
/**
|
|
1803
2118
|
* Use the saved funnel response's updatedAt from GET /funnels/{id} (MCP:
|
|
1804
2119
|
* get_funnel.updatedAt) to require that definition revision. Results return the
|
|
@@ -1806,6 +2121,16 @@ export interface FunnelResultsParams {
|
|
|
1806
2121
|
* changed; omit to use the latest saved definition.
|
|
1807
2122
|
*/
|
|
1808
2123
|
expectedDefinitionUpdatedAt?: string;
|
|
2124
|
+
|
|
2125
|
+
/**
|
|
2126
|
+
* Include sample visitor and session IDs; defaults to true.
|
|
2127
|
+
*/
|
|
2128
|
+
includeSamples?: boolean;
|
|
2129
|
+
|
|
2130
|
+
/**
|
|
2131
|
+
* Results may be served from a recent cache; pass refresh=true to recompute.
|
|
2132
|
+
*/
|
|
2133
|
+
refresh?: boolean;
|
|
1809
2134
|
}
|
|
1810
2135
|
|
|
1811
2136
|
export declare namespace Funnels {
|
package/src/resources/index.ts
CHANGED
|
@@ -286,6 +286,7 @@ export {
|
|
|
286
286
|
Locations,
|
|
287
287
|
type LocationListResponse,
|
|
288
288
|
type LocationCreateResponse,
|
|
289
|
+
type LocationRetrieveResponse,
|
|
289
290
|
type LocationUpdateResponse,
|
|
290
291
|
type LocationEmbedCodeResponse,
|
|
291
292
|
type LocationCreateParams,
|
|
@@ -328,6 +329,16 @@ export {
|
|
|
328
329
|
type PersonalizationPropertyUpdateParams,
|
|
329
330
|
type PersonalizationPropertyListResponsesCursor,
|
|
330
331
|
} from './personalization-properties';
|
|
332
|
+
export {
|
|
333
|
+
QueryDispatches,
|
|
334
|
+
type QueryDispatchCapabilitiesResponse,
|
|
335
|
+
type QueryDispatchBreakdownResponse,
|
|
336
|
+
type QueryDispatchFacetValuesResponse,
|
|
337
|
+
type QueryDispatchPropertySuggestionsResponse,
|
|
338
|
+
type QueryDispatchBreakdownParams,
|
|
339
|
+
type QueryDispatchFacetValuesParams,
|
|
340
|
+
type QueryDispatchPropertySuggestionsParams,
|
|
341
|
+
} from './query-dispatches';
|
|
331
342
|
export {
|
|
332
343
|
QueryEvents,
|
|
333
344
|
type QueryEventListResponse,
|
|
@@ -367,8 +378,10 @@ export {
|
|
|
367
378
|
type ReportBrandingRetrieveResponse,
|
|
368
379
|
type ReportBrandingReplaceResponse,
|
|
369
380
|
type ReportBrandingDeleteResponse,
|
|
381
|
+
type ReportBrandingUpdateResponse,
|
|
370
382
|
type ReportBrandingRetrieveParams,
|
|
371
383
|
type ReportBrandingReplaceParams,
|
|
384
|
+
type ReportBrandingUpdateParams,
|
|
372
385
|
} from './report-branding';
|
|
373
386
|
export {
|
|
374
387
|
SessionReplays,
|