@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
|
@@ -1268,9 +1268,25 @@ export declare namespace DashboardPreviewResponse {
|
|
|
1268
1268
|
sourceCompleteness: 'unknown';
|
|
1269
1269
|
timeZone: 'UTC';
|
|
1270
1270
|
to: string;
|
|
1271
|
+
breakdown?: Scope.Breakdown | null;
|
|
1271
1272
|
comparison?: Scope.Comparison | null;
|
|
1272
1273
|
}
|
|
1273
1274
|
namespace Scope {
|
|
1275
|
+
interface Breakdown {
|
|
1276
|
+
atAnchorId: string | null;
|
|
1277
|
+
limit: number;
|
|
1278
|
+
property: Breakdown.Property;
|
|
1279
|
+
stepNumber: number | null;
|
|
1280
|
+
truncated: boolean;
|
|
1281
|
+
valueCount: number;
|
|
1282
|
+
}
|
|
1283
|
+
namespace Breakdown {
|
|
1284
|
+
interface Property {
|
|
1285
|
+
property: string;
|
|
1286
|
+
type: 'string' | 'number' | 'boolean';
|
|
1287
|
+
path?: Array<string>;
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1274
1290
|
interface Comparison {
|
|
1275
1291
|
from: string;
|
|
1276
1292
|
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
@@ -1286,6 +1302,7 @@ export declare namespace DashboardPreviewResponse {
|
|
|
1286
1302
|
metricId: string;
|
|
1287
1303
|
points: Array<Series.Point>;
|
|
1288
1304
|
rangeValue: number | null;
|
|
1305
|
+
segment?: Series.Segment | null;
|
|
1289
1306
|
}
|
|
1290
1307
|
namespace Series {
|
|
1291
1308
|
interface BreakdownValue {
|
|
@@ -1300,6 +1317,13 @@ export declare namespace DashboardPreviewResponse {
|
|
|
1300
1317
|
raw: number | null;
|
|
1301
1318
|
smoothed: number | null;
|
|
1302
1319
|
}
|
|
1320
|
+
interface Segment {
|
|
1321
|
+
key: string;
|
|
1322
|
+
kind: 'value' | 'other' | 'not_set';
|
|
1323
|
+
label: string;
|
|
1324
|
+
rank: number;
|
|
1325
|
+
value: string | null;
|
|
1326
|
+
}
|
|
1303
1327
|
}
|
|
1304
1328
|
}
|
|
1305
1329
|
}
|
|
@@ -1460,6 +1484,14 @@ export declare namespace DashboardPreviewResponse {
|
|
|
1460
1484
|
* events.
|
|
1461
1485
|
*/
|
|
1462
1486
|
totalVisitors: number;
|
|
1487
|
+
/**
|
|
1488
|
+
* Per-segment results when `breakdown` was requested; null otherwise.
|
|
1489
|
+
*/
|
|
1490
|
+
breakdown?: Result.Breakdown | null;
|
|
1491
|
+
/**
|
|
1492
|
+
* Results for the compared dates when `comparison` was requested; null otherwise.
|
|
1493
|
+
*/
|
|
1494
|
+
comparison?: Result.Comparison | null;
|
|
1463
1495
|
/**
|
|
1464
1496
|
* Average time from first step to last step in seconds. Null when no completions.
|
|
1465
1497
|
*/
|
|
@@ -1508,6 +1540,218 @@ export declare namespace DashboardPreviewResponse {
|
|
|
1508
1540
|
*/
|
|
1509
1541
|
avgTimeToNextStep?: number | null;
|
|
1510
1542
|
}
|
|
1543
|
+
/**
|
|
1544
|
+
* Per-segment results when `breakdown` was requested; null otherwise.
|
|
1545
|
+
*/
|
|
1546
|
+
interface Breakdown {
|
|
1547
|
+
scope: Breakdown.Scope;
|
|
1548
|
+
/**
|
|
1549
|
+
* Segments in rank order.
|
|
1550
|
+
*/
|
|
1551
|
+
segments: Array<Breakdown.Segment>;
|
|
1552
|
+
}
|
|
1553
|
+
namespace Breakdown {
|
|
1554
|
+
interface Scope {
|
|
1555
|
+
atAnchorId: string | null;
|
|
1556
|
+
limit: number;
|
|
1557
|
+
property: Scope.Property;
|
|
1558
|
+
stepNumber: number | null;
|
|
1559
|
+
truncated: boolean;
|
|
1560
|
+
/**
|
|
1561
|
+
* Distinct values seen.
|
|
1562
|
+
*/
|
|
1563
|
+
valueCount: number;
|
|
1564
|
+
}
|
|
1565
|
+
namespace Scope {
|
|
1566
|
+
interface Property {
|
|
1567
|
+
property: string;
|
|
1568
|
+
type: 'string' | 'number' | 'boolean';
|
|
1569
|
+
path?: Array<string>;
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
interface Segment {
|
|
1573
|
+
/**
|
|
1574
|
+
* Ratio of last-step to first-step volume in this segment, as a percentage.
|
|
1575
|
+
*/
|
|
1576
|
+
overallConversionRate: number;
|
|
1577
|
+
segment: Segment.Segment;
|
|
1578
|
+
/**
|
|
1579
|
+
* Per-step results for this segment.
|
|
1580
|
+
*/
|
|
1581
|
+
steps: Array<Segment.Step>;
|
|
1582
|
+
/**
|
|
1583
|
+
* First-step volume in this segment.
|
|
1584
|
+
*/
|
|
1585
|
+
totalVisitors: number;
|
|
1586
|
+
/**
|
|
1587
|
+
* Average time from first step to last step in seconds. Null when no completions.
|
|
1588
|
+
*/
|
|
1589
|
+
overallAvgTimeToConversion?: number | null;
|
|
1590
|
+
}
|
|
1591
|
+
namespace Segment {
|
|
1592
|
+
interface Segment {
|
|
1593
|
+
/**
|
|
1594
|
+
* Segment key: v:<value>, $other, or $none.
|
|
1595
|
+
*/
|
|
1596
|
+
key: string;
|
|
1597
|
+
kind: 'value' | 'other' | 'not_set';
|
|
1598
|
+
label: string;
|
|
1599
|
+
rank: number;
|
|
1600
|
+
/**
|
|
1601
|
+
* Null for other and not_set.
|
|
1602
|
+
*/
|
|
1603
|
+
value: string | null;
|
|
1604
|
+
}
|
|
1605
|
+
interface Step {
|
|
1606
|
+
conversionCount: number;
|
|
1607
|
+
/**
|
|
1608
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
1609
|
+
*/
|
|
1610
|
+
conversionRate: number;
|
|
1611
|
+
/**
|
|
1612
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
1613
|
+
* is zero. Not a participant loss measure for event counting.
|
|
1614
|
+
*/
|
|
1615
|
+
dropOffRate: number;
|
|
1616
|
+
dropOffSessionIds: Array<string>;
|
|
1617
|
+
dropOffVisitorIds: Array<string>;
|
|
1618
|
+
/**
|
|
1619
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
1620
|
+
* 100%.
|
|
1621
|
+
*/
|
|
1622
|
+
overallConversionRate: number;
|
|
1623
|
+
sessionIds: Array<string>;
|
|
1624
|
+
stepNumber: number;
|
|
1625
|
+
/**
|
|
1626
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
1627
|
+
*/
|
|
1628
|
+
visitorCount: number;
|
|
1629
|
+
visitorIds: Array<string>;
|
|
1630
|
+
/**
|
|
1631
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
1632
|
+
*/
|
|
1633
|
+
avgTimeToNextStep?: number | null;
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
/**
|
|
1638
|
+
* Results for the compared dates when `comparison` was requested; null otherwise.
|
|
1639
|
+
*/
|
|
1640
|
+
interface Comparison {
|
|
1641
|
+
overallConversionRate: number;
|
|
1642
|
+
scope: Comparison.Scope;
|
|
1643
|
+
/**
|
|
1644
|
+
* Same keys and order as `breakdown.segments`.
|
|
1645
|
+
*/
|
|
1646
|
+
segments: Array<Comparison.Segment>;
|
|
1647
|
+
/**
|
|
1648
|
+
* Per-step results for the compared dates. Sample ID arrays are empty.
|
|
1649
|
+
*/
|
|
1650
|
+
steps: Array<Comparison.Step>;
|
|
1651
|
+
totalVisitors: number;
|
|
1652
|
+
overallAvgTimeToConversion?: number | null;
|
|
1653
|
+
}
|
|
1654
|
+
namespace Comparison {
|
|
1655
|
+
interface Scope {
|
|
1656
|
+
from: string;
|
|
1657
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
1658
|
+
to: string;
|
|
1659
|
+
}
|
|
1660
|
+
interface Segment {
|
|
1661
|
+
/**
|
|
1662
|
+
* Ratio of last-step to first-step volume in this segment, as a percentage.
|
|
1663
|
+
*/
|
|
1664
|
+
overallConversionRate: number;
|
|
1665
|
+
segment: Segment.Segment;
|
|
1666
|
+
/**
|
|
1667
|
+
* Per-step results for this segment.
|
|
1668
|
+
*/
|
|
1669
|
+
steps: Array<Segment.Step>;
|
|
1670
|
+
/**
|
|
1671
|
+
* First-step volume in this segment.
|
|
1672
|
+
*/
|
|
1673
|
+
totalVisitors: number;
|
|
1674
|
+
/**
|
|
1675
|
+
* Average time from first step to last step in seconds. Null when no completions.
|
|
1676
|
+
*/
|
|
1677
|
+
overallAvgTimeToConversion?: number | null;
|
|
1678
|
+
}
|
|
1679
|
+
namespace Segment {
|
|
1680
|
+
interface Segment {
|
|
1681
|
+
/**
|
|
1682
|
+
* Segment key: v:<value>, $other, or $none.
|
|
1683
|
+
*/
|
|
1684
|
+
key: string;
|
|
1685
|
+
kind: 'value' | 'other' | 'not_set';
|
|
1686
|
+
label: string;
|
|
1687
|
+
rank: number;
|
|
1688
|
+
/**
|
|
1689
|
+
* Null for other and not_set.
|
|
1690
|
+
*/
|
|
1691
|
+
value: string | null;
|
|
1692
|
+
}
|
|
1693
|
+
interface Step {
|
|
1694
|
+
conversionCount: number;
|
|
1695
|
+
/**
|
|
1696
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
1697
|
+
*/
|
|
1698
|
+
conversionRate: number;
|
|
1699
|
+
/**
|
|
1700
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
1701
|
+
* is zero. Not a participant loss measure for event counting.
|
|
1702
|
+
*/
|
|
1703
|
+
dropOffRate: number;
|
|
1704
|
+
dropOffSessionIds: Array<string>;
|
|
1705
|
+
dropOffVisitorIds: Array<string>;
|
|
1706
|
+
/**
|
|
1707
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
1708
|
+
* 100%.
|
|
1709
|
+
*/
|
|
1710
|
+
overallConversionRate: number;
|
|
1711
|
+
sessionIds: Array<string>;
|
|
1712
|
+
stepNumber: number;
|
|
1713
|
+
/**
|
|
1714
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
1715
|
+
*/
|
|
1716
|
+
visitorCount: number;
|
|
1717
|
+
visitorIds: Array<string>;
|
|
1718
|
+
/**
|
|
1719
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
1720
|
+
*/
|
|
1721
|
+
avgTimeToNextStep?: number | null;
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
interface Step {
|
|
1725
|
+
conversionCount: number;
|
|
1726
|
+
/**
|
|
1727
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
1728
|
+
*/
|
|
1729
|
+
conversionRate: number;
|
|
1730
|
+
/**
|
|
1731
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
1732
|
+
* is zero. Not a participant loss measure for event counting.
|
|
1733
|
+
*/
|
|
1734
|
+
dropOffRate: number;
|
|
1735
|
+
dropOffSessionIds: Array<string>;
|
|
1736
|
+
dropOffVisitorIds: Array<string>;
|
|
1737
|
+
/**
|
|
1738
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
1739
|
+
* 100%.
|
|
1740
|
+
*/
|
|
1741
|
+
overallConversionRate: number;
|
|
1742
|
+
sessionIds: Array<string>;
|
|
1743
|
+
stepNumber: number;
|
|
1744
|
+
/**
|
|
1745
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
1746
|
+
*/
|
|
1747
|
+
visitorCount: number;
|
|
1748
|
+
visitorIds: Array<string>;
|
|
1749
|
+
/**
|
|
1750
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
1751
|
+
*/
|
|
1752
|
+
avgTimeToNextStep?: number | null;
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1511
1755
|
}
|
|
1512
1756
|
}
|
|
1513
1757
|
interface UnionMember2 {
|
|
@@ -2168,6 +2412,14 @@ export declare namespace DashboardPreviewResponse {
|
|
|
2168
2412
|
excludeBots: boolean;
|
|
2169
2413
|
reentry: 'FIRST' | 'BEST';
|
|
2170
2414
|
sourceIds: Array<string>;
|
|
2415
|
+
/**
|
|
2416
|
+
* The requested breakdown; null without one.
|
|
2417
|
+
*/
|
|
2418
|
+
breakdown?: EffectiveContext.Breakdown | null;
|
|
2419
|
+
/**
|
|
2420
|
+
* The compared dates; null without a comparison.
|
|
2421
|
+
*/
|
|
2422
|
+
comparison?: EffectiveContext.Comparison | null;
|
|
2171
2423
|
}
|
|
2172
2424
|
namespace EffectiveContext {
|
|
2173
2425
|
interface Comparison {
|
|
@@ -2263,14 +2515,41 @@ export declare namespace DashboardPreviewResponse {
|
|
|
2263
2515
|
timeZone: string;
|
|
2264
2516
|
to: string;
|
|
2265
2517
|
}
|
|
2518
|
+
/**
|
|
2519
|
+
* The requested breakdown; null without one.
|
|
2520
|
+
*/
|
|
2521
|
+
interface Breakdown {
|
|
2522
|
+
atAnchorId: string | null;
|
|
2523
|
+
limit: number;
|
|
2524
|
+
property: Breakdown.Property;
|
|
2525
|
+
stepNumber: number | null;
|
|
2526
|
+
truncated: boolean;
|
|
2527
|
+
/**
|
|
2528
|
+
* Distinct values seen.
|
|
2529
|
+
*/
|
|
2530
|
+
valueCount: number;
|
|
2531
|
+
}
|
|
2532
|
+
namespace Breakdown {
|
|
2533
|
+
interface Property {
|
|
2534
|
+
property: string;
|
|
2535
|
+
type: 'string' | 'number' | 'boolean';
|
|
2536
|
+
path?: Array<string>;
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
/**
|
|
2540
|
+
* The compared dates; null without a comparison.
|
|
2541
|
+
*/
|
|
2542
|
+
interface Comparison {
|
|
2543
|
+
from: string;
|
|
2544
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
2545
|
+
to: string;
|
|
2546
|
+
}
|
|
2266
2547
|
}
|
|
2267
2548
|
interface Execution {
|
|
2268
|
-
cacheHit: boolean;
|
|
2269
2549
|
generatedAt: string;
|
|
2270
2550
|
queryId: string;
|
|
2271
2551
|
sampled: boolean;
|
|
2272
2552
|
warnings: Array<Execution.Warning>;
|
|
2273
|
-
cacheAgeMs?: number | null;
|
|
2274
2553
|
}
|
|
2275
2554
|
namespace Execution {
|
|
2276
2555
|
interface Warning {
|
|
@@ -2314,12 +2593,23 @@ export declare namespace DashboardPreviewResponse {
|
|
|
2314
2593
|
}
|
|
2315
2594
|
}
|
|
2316
2595
|
interface Series {
|
|
2596
|
+
/**
|
|
2597
|
+
* Period: '' for the selected dates, or the comparison kind (previous_period,
|
|
2598
|
+
* previous_year, custom).
|
|
2599
|
+
*/
|
|
2317
2600
|
id: string;
|
|
2318
2601
|
label: string;
|
|
2319
2602
|
segments: Array<Series.Segment>;
|
|
2603
|
+
/**
|
|
2604
|
+
* The compared dates on a comparison series; null on the selected dates.
|
|
2605
|
+
*/
|
|
2606
|
+
comparison?: Series.Comparison | null;
|
|
2320
2607
|
}
|
|
2321
2608
|
namespace Series {
|
|
2322
2609
|
interface Segment {
|
|
2610
|
+
/**
|
|
2611
|
+
* '' for All traffic (always first), otherwise the breakdown segment key.
|
|
2612
|
+
*/
|
|
2323
2613
|
id: string;
|
|
2324
2614
|
columns: Array<Segment.Column>;
|
|
2325
2615
|
completedCount: string;
|
|
@@ -2333,6 +2623,10 @@ export declare namespace DashboardPreviewResponse {
|
|
|
2333
2623
|
topPaths: Array<Segment.TopPath>;
|
|
2334
2624
|
totalPathCount: string;
|
|
2335
2625
|
unfocusedEntryCount: string;
|
|
2626
|
+
/**
|
|
2627
|
+
* The breakdown segment; null on All traffic.
|
|
2628
|
+
*/
|
|
2629
|
+
breakdown?: Segment.Breakdown | null;
|
|
2336
2630
|
observationIncompleteCount?: string | null;
|
|
2337
2631
|
timedOutCount?: string | null;
|
|
2338
2632
|
}
|
|
@@ -2378,6 +2672,9 @@ export declare namespace DashboardPreviewResponse {
|
|
|
2378
2672
|
anchorId: string | null;
|
|
2379
2673
|
count: string;
|
|
2380
2674
|
denominator: string;
|
|
2675
|
+
/**
|
|
2676
|
+
* Stable across segments and periods; id is not.
|
|
2677
|
+
*/
|
|
2381
2678
|
key: string;
|
|
2382
2679
|
kind: 'ANCHOR' | 'EVENT' | 'PAGE' | 'TERMINAL' | 'OMITTED_STEPS' | 'OTHER_EVENTS';
|
|
2383
2680
|
matcher: Node.UnionMember0 | null | Node.UnionMember1;
|
|
@@ -2633,6 +2930,30 @@ export declare namespace DashboardPreviewResponse {
|
|
|
2633
2930
|
}
|
|
2634
2931
|
}
|
|
2635
2932
|
}
|
|
2933
|
+
/**
|
|
2934
|
+
* The breakdown segment; null on All traffic.
|
|
2935
|
+
*/
|
|
2936
|
+
interface Breakdown {
|
|
2937
|
+
/**
|
|
2938
|
+
* Segment key: v:<value>, $other, or $none.
|
|
2939
|
+
*/
|
|
2940
|
+
key: string;
|
|
2941
|
+
kind: 'value' | 'other' | 'not_set';
|
|
2942
|
+
label: string;
|
|
2943
|
+
rank: number;
|
|
2944
|
+
/**
|
|
2945
|
+
* Null for other and not_set.
|
|
2946
|
+
*/
|
|
2947
|
+
value: string | null;
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
/**
|
|
2951
|
+
* The compared dates on a comparison series; null on the selected dates.
|
|
2952
|
+
*/
|
|
2953
|
+
interface Comparison {
|
|
2954
|
+
from: string;
|
|
2955
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
2956
|
+
to: string;
|
|
2636
2957
|
}
|
|
2637
2958
|
}
|
|
2638
2959
|
interface Timing {
|
|
@@ -2855,9 +3176,25 @@ export declare namespace DashboardResultsResponse {
|
|
|
2855
3176
|
sourceCompleteness: 'unknown';
|
|
2856
3177
|
timeZone: 'UTC';
|
|
2857
3178
|
to: string;
|
|
3179
|
+
breakdown?: Scope.Breakdown | null;
|
|
2858
3180
|
comparison?: Scope.Comparison | null;
|
|
2859
3181
|
}
|
|
2860
3182
|
namespace Scope {
|
|
3183
|
+
interface Breakdown {
|
|
3184
|
+
atAnchorId: string | null;
|
|
3185
|
+
limit: number;
|
|
3186
|
+
property: Breakdown.Property;
|
|
3187
|
+
stepNumber: number | null;
|
|
3188
|
+
truncated: boolean;
|
|
3189
|
+
valueCount: number;
|
|
3190
|
+
}
|
|
3191
|
+
namespace Breakdown {
|
|
3192
|
+
interface Property {
|
|
3193
|
+
property: string;
|
|
3194
|
+
type: 'string' | 'number' | 'boolean';
|
|
3195
|
+
path?: Array<string>;
|
|
3196
|
+
}
|
|
3197
|
+
}
|
|
2861
3198
|
interface Comparison {
|
|
2862
3199
|
from: string;
|
|
2863
3200
|
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
@@ -2873,6 +3210,7 @@ export declare namespace DashboardResultsResponse {
|
|
|
2873
3210
|
metricId: string;
|
|
2874
3211
|
points: Array<Series.Point>;
|
|
2875
3212
|
rangeValue: number | null;
|
|
3213
|
+
segment?: Series.Segment | null;
|
|
2876
3214
|
}
|
|
2877
3215
|
namespace Series {
|
|
2878
3216
|
interface BreakdownValue {
|
|
@@ -2887,6 +3225,13 @@ export declare namespace DashboardResultsResponse {
|
|
|
2887
3225
|
raw: number | null;
|
|
2888
3226
|
smoothed: number | null;
|
|
2889
3227
|
}
|
|
3228
|
+
interface Segment {
|
|
3229
|
+
key: string;
|
|
3230
|
+
kind: 'value' | 'other' | 'not_set';
|
|
3231
|
+
label: string;
|
|
3232
|
+
rank: number;
|
|
3233
|
+
value: string | null;
|
|
3234
|
+
}
|
|
2890
3235
|
}
|
|
2891
3236
|
}
|
|
2892
3237
|
}
|
|
@@ -3047,6 +3392,14 @@ export declare namespace DashboardResultsResponse {
|
|
|
3047
3392
|
* events.
|
|
3048
3393
|
*/
|
|
3049
3394
|
totalVisitors: number;
|
|
3395
|
+
/**
|
|
3396
|
+
* Per-segment results when `breakdown` was requested; null otherwise.
|
|
3397
|
+
*/
|
|
3398
|
+
breakdown?: Result.Breakdown | null;
|
|
3399
|
+
/**
|
|
3400
|
+
* Results for the compared dates when `comparison` was requested; null otherwise.
|
|
3401
|
+
*/
|
|
3402
|
+
comparison?: Result.Comparison | null;
|
|
3050
3403
|
/**
|
|
3051
3404
|
* Average time from first step to last step in seconds. Null when no completions.
|
|
3052
3405
|
*/
|
|
@@ -3095,6 +3448,218 @@ export declare namespace DashboardResultsResponse {
|
|
|
3095
3448
|
*/
|
|
3096
3449
|
avgTimeToNextStep?: number | null;
|
|
3097
3450
|
}
|
|
3451
|
+
/**
|
|
3452
|
+
* Per-segment results when `breakdown` was requested; null otherwise.
|
|
3453
|
+
*/
|
|
3454
|
+
interface Breakdown {
|
|
3455
|
+
scope: Breakdown.Scope;
|
|
3456
|
+
/**
|
|
3457
|
+
* Segments in rank order.
|
|
3458
|
+
*/
|
|
3459
|
+
segments: Array<Breakdown.Segment>;
|
|
3460
|
+
}
|
|
3461
|
+
namespace Breakdown {
|
|
3462
|
+
interface Scope {
|
|
3463
|
+
atAnchorId: string | null;
|
|
3464
|
+
limit: number;
|
|
3465
|
+
property: Scope.Property;
|
|
3466
|
+
stepNumber: number | null;
|
|
3467
|
+
truncated: boolean;
|
|
3468
|
+
/**
|
|
3469
|
+
* Distinct values seen.
|
|
3470
|
+
*/
|
|
3471
|
+
valueCount: number;
|
|
3472
|
+
}
|
|
3473
|
+
namespace Scope {
|
|
3474
|
+
interface Property {
|
|
3475
|
+
property: string;
|
|
3476
|
+
type: 'string' | 'number' | 'boolean';
|
|
3477
|
+
path?: Array<string>;
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
interface Segment {
|
|
3481
|
+
/**
|
|
3482
|
+
* Ratio of last-step to first-step volume in this segment, as a percentage.
|
|
3483
|
+
*/
|
|
3484
|
+
overallConversionRate: number;
|
|
3485
|
+
segment: Segment.Segment;
|
|
3486
|
+
/**
|
|
3487
|
+
* Per-step results for this segment.
|
|
3488
|
+
*/
|
|
3489
|
+
steps: Array<Segment.Step>;
|
|
3490
|
+
/**
|
|
3491
|
+
* First-step volume in this segment.
|
|
3492
|
+
*/
|
|
3493
|
+
totalVisitors: number;
|
|
3494
|
+
/**
|
|
3495
|
+
* Average time from first step to last step in seconds. Null when no completions.
|
|
3496
|
+
*/
|
|
3497
|
+
overallAvgTimeToConversion?: number | null;
|
|
3498
|
+
}
|
|
3499
|
+
namespace Segment {
|
|
3500
|
+
interface Segment {
|
|
3501
|
+
/**
|
|
3502
|
+
* Segment key: v:<value>, $other, or $none.
|
|
3503
|
+
*/
|
|
3504
|
+
key: string;
|
|
3505
|
+
kind: 'value' | 'other' | 'not_set';
|
|
3506
|
+
label: string;
|
|
3507
|
+
rank: number;
|
|
3508
|
+
/**
|
|
3509
|
+
* Null for other and not_set.
|
|
3510
|
+
*/
|
|
3511
|
+
value: string | null;
|
|
3512
|
+
}
|
|
3513
|
+
interface Step {
|
|
3514
|
+
conversionCount: number;
|
|
3515
|
+
/**
|
|
3516
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
3517
|
+
*/
|
|
3518
|
+
conversionRate: number;
|
|
3519
|
+
/**
|
|
3520
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
3521
|
+
* is zero. Not a participant loss measure for event counting.
|
|
3522
|
+
*/
|
|
3523
|
+
dropOffRate: number;
|
|
3524
|
+
dropOffSessionIds: Array<string>;
|
|
3525
|
+
dropOffVisitorIds: Array<string>;
|
|
3526
|
+
/**
|
|
3527
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
3528
|
+
* 100%.
|
|
3529
|
+
*/
|
|
3530
|
+
overallConversionRate: number;
|
|
3531
|
+
sessionIds: Array<string>;
|
|
3532
|
+
stepNumber: number;
|
|
3533
|
+
/**
|
|
3534
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
3535
|
+
*/
|
|
3536
|
+
visitorCount: number;
|
|
3537
|
+
visitorIds: Array<string>;
|
|
3538
|
+
/**
|
|
3539
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
3540
|
+
*/
|
|
3541
|
+
avgTimeToNextStep?: number | null;
|
|
3542
|
+
}
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
/**
|
|
3546
|
+
* Results for the compared dates when `comparison` was requested; null otherwise.
|
|
3547
|
+
*/
|
|
3548
|
+
interface Comparison {
|
|
3549
|
+
overallConversionRate: number;
|
|
3550
|
+
scope: Comparison.Scope;
|
|
3551
|
+
/**
|
|
3552
|
+
* Same keys and order as `breakdown.segments`.
|
|
3553
|
+
*/
|
|
3554
|
+
segments: Array<Comparison.Segment>;
|
|
3555
|
+
/**
|
|
3556
|
+
* Per-step results for the compared dates. Sample ID arrays are empty.
|
|
3557
|
+
*/
|
|
3558
|
+
steps: Array<Comparison.Step>;
|
|
3559
|
+
totalVisitors: number;
|
|
3560
|
+
overallAvgTimeToConversion?: number | null;
|
|
3561
|
+
}
|
|
3562
|
+
namespace Comparison {
|
|
3563
|
+
interface Scope {
|
|
3564
|
+
from: string;
|
|
3565
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
3566
|
+
to: string;
|
|
3567
|
+
}
|
|
3568
|
+
interface Segment {
|
|
3569
|
+
/**
|
|
3570
|
+
* Ratio of last-step to first-step volume in this segment, as a percentage.
|
|
3571
|
+
*/
|
|
3572
|
+
overallConversionRate: number;
|
|
3573
|
+
segment: Segment.Segment;
|
|
3574
|
+
/**
|
|
3575
|
+
* Per-step results for this segment.
|
|
3576
|
+
*/
|
|
3577
|
+
steps: Array<Segment.Step>;
|
|
3578
|
+
/**
|
|
3579
|
+
* First-step volume in this segment.
|
|
3580
|
+
*/
|
|
3581
|
+
totalVisitors: number;
|
|
3582
|
+
/**
|
|
3583
|
+
* Average time from first step to last step in seconds. Null when no completions.
|
|
3584
|
+
*/
|
|
3585
|
+
overallAvgTimeToConversion?: number | null;
|
|
3586
|
+
}
|
|
3587
|
+
namespace Segment {
|
|
3588
|
+
interface Segment {
|
|
3589
|
+
/**
|
|
3590
|
+
* Segment key: v:<value>, $other, or $none.
|
|
3591
|
+
*/
|
|
3592
|
+
key: string;
|
|
3593
|
+
kind: 'value' | 'other' | 'not_set';
|
|
3594
|
+
label: string;
|
|
3595
|
+
rank: number;
|
|
3596
|
+
/**
|
|
3597
|
+
* Null for other and not_set.
|
|
3598
|
+
*/
|
|
3599
|
+
value: string | null;
|
|
3600
|
+
}
|
|
3601
|
+
interface Step {
|
|
3602
|
+
conversionCount: number;
|
|
3603
|
+
/**
|
|
3604
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
3605
|
+
*/
|
|
3606
|
+
conversionRate: number;
|
|
3607
|
+
/**
|
|
3608
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
3609
|
+
* is zero. Not a participant loss measure for event counting.
|
|
3610
|
+
*/
|
|
3611
|
+
dropOffRate: number;
|
|
3612
|
+
dropOffSessionIds: Array<string>;
|
|
3613
|
+
dropOffVisitorIds: Array<string>;
|
|
3614
|
+
/**
|
|
3615
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
3616
|
+
* 100%.
|
|
3617
|
+
*/
|
|
3618
|
+
overallConversionRate: number;
|
|
3619
|
+
sessionIds: Array<string>;
|
|
3620
|
+
stepNumber: number;
|
|
3621
|
+
/**
|
|
3622
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
3623
|
+
*/
|
|
3624
|
+
visitorCount: number;
|
|
3625
|
+
visitorIds: Array<string>;
|
|
3626
|
+
/**
|
|
3627
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
3628
|
+
*/
|
|
3629
|
+
avgTimeToNextStep?: number | null;
|
|
3630
|
+
}
|
|
3631
|
+
}
|
|
3632
|
+
interface Step {
|
|
3633
|
+
conversionCount: number;
|
|
3634
|
+
/**
|
|
3635
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
3636
|
+
*/
|
|
3637
|
+
conversionRate: number;
|
|
3638
|
+
/**
|
|
3639
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
3640
|
+
* is zero. Not a participant loss measure for event counting.
|
|
3641
|
+
*/
|
|
3642
|
+
dropOffRate: number;
|
|
3643
|
+
dropOffSessionIds: Array<string>;
|
|
3644
|
+
dropOffVisitorIds: Array<string>;
|
|
3645
|
+
/**
|
|
3646
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
3647
|
+
* 100%.
|
|
3648
|
+
*/
|
|
3649
|
+
overallConversionRate: number;
|
|
3650
|
+
sessionIds: Array<string>;
|
|
3651
|
+
stepNumber: number;
|
|
3652
|
+
/**
|
|
3653
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
3654
|
+
*/
|
|
3655
|
+
visitorCount: number;
|
|
3656
|
+
visitorIds: Array<string>;
|
|
3657
|
+
/**
|
|
3658
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
3659
|
+
*/
|
|
3660
|
+
avgTimeToNextStep?: number | null;
|
|
3661
|
+
}
|
|
3662
|
+
}
|
|
3098
3663
|
}
|
|
3099
3664
|
}
|
|
3100
3665
|
interface UnionMember2 {
|
|
@@ -3755,6 +4320,14 @@ export declare namespace DashboardResultsResponse {
|
|
|
3755
4320
|
excludeBots: boolean;
|
|
3756
4321
|
reentry: 'FIRST' | 'BEST';
|
|
3757
4322
|
sourceIds: Array<string>;
|
|
4323
|
+
/**
|
|
4324
|
+
* The requested breakdown; null without one.
|
|
4325
|
+
*/
|
|
4326
|
+
breakdown?: EffectiveContext.Breakdown | null;
|
|
4327
|
+
/**
|
|
4328
|
+
* The compared dates; null without a comparison.
|
|
4329
|
+
*/
|
|
4330
|
+
comparison?: EffectiveContext.Comparison | null;
|
|
3758
4331
|
}
|
|
3759
4332
|
namespace EffectiveContext {
|
|
3760
4333
|
interface Comparison {
|
|
@@ -3850,14 +4423,41 @@ export declare namespace DashboardResultsResponse {
|
|
|
3850
4423
|
timeZone: string;
|
|
3851
4424
|
to: string;
|
|
3852
4425
|
}
|
|
4426
|
+
/**
|
|
4427
|
+
* The requested breakdown; null without one.
|
|
4428
|
+
*/
|
|
4429
|
+
interface Breakdown {
|
|
4430
|
+
atAnchorId: string | null;
|
|
4431
|
+
limit: number;
|
|
4432
|
+
property: Breakdown.Property;
|
|
4433
|
+
stepNumber: number | null;
|
|
4434
|
+
truncated: boolean;
|
|
4435
|
+
/**
|
|
4436
|
+
* Distinct values seen.
|
|
4437
|
+
*/
|
|
4438
|
+
valueCount: number;
|
|
4439
|
+
}
|
|
4440
|
+
namespace Breakdown {
|
|
4441
|
+
interface Property {
|
|
4442
|
+
property: string;
|
|
4443
|
+
type: 'string' | 'number' | 'boolean';
|
|
4444
|
+
path?: Array<string>;
|
|
4445
|
+
}
|
|
4446
|
+
}
|
|
4447
|
+
/**
|
|
4448
|
+
* The compared dates; null without a comparison.
|
|
4449
|
+
*/
|
|
4450
|
+
interface Comparison {
|
|
4451
|
+
from: string;
|
|
4452
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
4453
|
+
to: string;
|
|
4454
|
+
}
|
|
3853
4455
|
}
|
|
3854
4456
|
interface Execution {
|
|
3855
|
-
cacheHit: boolean;
|
|
3856
4457
|
generatedAt: string;
|
|
3857
4458
|
queryId: string;
|
|
3858
4459
|
sampled: boolean;
|
|
3859
4460
|
warnings: Array<Execution.Warning>;
|
|
3860
|
-
cacheAgeMs?: number | null;
|
|
3861
4461
|
}
|
|
3862
4462
|
namespace Execution {
|
|
3863
4463
|
interface Warning {
|
|
@@ -3901,12 +4501,23 @@ export declare namespace DashboardResultsResponse {
|
|
|
3901
4501
|
}
|
|
3902
4502
|
}
|
|
3903
4503
|
interface Series {
|
|
4504
|
+
/**
|
|
4505
|
+
* Period: '' for the selected dates, or the comparison kind (previous_period,
|
|
4506
|
+
* previous_year, custom).
|
|
4507
|
+
*/
|
|
3904
4508
|
id: string;
|
|
3905
4509
|
label: string;
|
|
3906
4510
|
segments: Array<Series.Segment>;
|
|
4511
|
+
/**
|
|
4512
|
+
* The compared dates on a comparison series; null on the selected dates.
|
|
4513
|
+
*/
|
|
4514
|
+
comparison?: Series.Comparison | null;
|
|
3907
4515
|
}
|
|
3908
4516
|
namespace Series {
|
|
3909
4517
|
interface Segment {
|
|
4518
|
+
/**
|
|
4519
|
+
* '' for All traffic (always first), otherwise the breakdown segment key.
|
|
4520
|
+
*/
|
|
3910
4521
|
id: string;
|
|
3911
4522
|
columns: Array<Segment.Column>;
|
|
3912
4523
|
completedCount: string;
|
|
@@ -3920,6 +4531,10 @@ export declare namespace DashboardResultsResponse {
|
|
|
3920
4531
|
topPaths: Array<Segment.TopPath>;
|
|
3921
4532
|
totalPathCount: string;
|
|
3922
4533
|
unfocusedEntryCount: string;
|
|
4534
|
+
/**
|
|
4535
|
+
* The breakdown segment; null on All traffic.
|
|
4536
|
+
*/
|
|
4537
|
+
breakdown?: Segment.Breakdown | null;
|
|
3923
4538
|
observationIncompleteCount?: string | null;
|
|
3924
4539
|
timedOutCount?: string | null;
|
|
3925
4540
|
}
|
|
@@ -3965,6 +4580,9 @@ export declare namespace DashboardResultsResponse {
|
|
|
3965
4580
|
anchorId: string | null;
|
|
3966
4581
|
count: string;
|
|
3967
4582
|
denominator: string;
|
|
4583
|
+
/**
|
|
4584
|
+
* Stable across segments and periods; id is not.
|
|
4585
|
+
*/
|
|
3968
4586
|
key: string;
|
|
3969
4587
|
kind: 'ANCHOR' | 'EVENT' | 'PAGE' | 'TERMINAL' | 'OMITTED_STEPS' | 'OTHER_EVENTS';
|
|
3970
4588
|
matcher: Node.UnionMember0 | null | Node.UnionMember1;
|
|
@@ -4220,6 +4838,30 @@ export declare namespace DashboardResultsResponse {
|
|
|
4220
4838
|
}
|
|
4221
4839
|
}
|
|
4222
4840
|
}
|
|
4841
|
+
/**
|
|
4842
|
+
* The breakdown segment; null on All traffic.
|
|
4843
|
+
*/
|
|
4844
|
+
interface Breakdown {
|
|
4845
|
+
/**
|
|
4846
|
+
* Segment key: v:<value>, $other, or $none.
|
|
4847
|
+
*/
|
|
4848
|
+
key: string;
|
|
4849
|
+
kind: 'value' | 'other' | 'not_set';
|
|
4850
|
+
label: string;
|
|
4851
|
+
rank: number;
|
|
4852
|
+
/**
|
|
4853
|
+
* Null for other and not_set.
|
|
4854
|
+
*/
|
|
4855
|
+
value: string | null;
|
|
4856
|
+
}
|
|
4857
|
+
}
|
|
4858
|
+
/**
|
|
4859
|
+
* The compared dates on a comparison series; null on the selected dates.
|
|
4860
|
+
*/
|
|
4861
|
+
interface Comparison {
|
|
4862
|
+
from: string;
|
|
4863
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
4864
|
+
to: string;
|
|
4223
4865
|
}
|
|
4224
4866
|
}
|
|
4225
4867
|
interface Timing {
|