@oursprivacy/platform-sdk 1.67.0 → 1.69.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 +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -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 +696 -34
- package/resources/dashboards.d.mts.map +1 -1
- package/resources/dashboards.d.ts +696 -34
- 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 +255 -9
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +255 -9
- 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 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/insights.d.mts +178 -57
- package/resources/insights.d.mts.map +1 -1
- package/resources/insights.d.ts +178 -57
- 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/query-events.d.mts +324 -0
- package/resources/query-events.d.mts.map +1 -0
- package/resources/query-events.d.ts +324 -0
- package/resources/query-events.d.ts.map +1 -0
- package/resources/query-events.js +64 -0
- package/resources/query-events.js.map +1 -0
- package/resources/query-events.mjs +60 -0
- package/resources/query-events.mjs.map +1 -0
- package/resources/query-visitors.d.mts +127 -0
- package/resources/query-visitors.d.mts.map +1 -0
- package/resources/query-visitors.d.ts +127 -0
- package/resources/query-visitors.d.ts.map +1 -0
- package/resources/query-visitors.js +35 -0
- package/resources/query-visitors.js.map +1 -0
- package/resources/query-visitors.mjs +31 -0
- package/resources/query-visitors.mjs.map +1 -0
- 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 +25 -1
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +25 -1
- package/resources/web-analytics.d.ts.map +1 -1
- package/src/client.ts +54 -0
- package/src/resources/analytics.ts +12 -0
- package/src/resources/dashboards.ts +939 -47
- package/src/resources/destinations.ts +23 -2
- package/src/resources/funnels.ts +334 -9
- package/src/resources/index.ts +24 -0
- package/src/resources/insights.ts +224 -57
- package/src/resources/journey-flows.ts +300 -22
- package/src/resources/query-events.ts +459 -0
- package/src/resources/query-visitors.ts +190 -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 +41 -1
- 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
|
@@ -43,27 +43,33 @@ export declare class JourneyFlows extends APIResource {
|
|
|
43
43
|
*/
|
|
44
44
|
capabilities(options?: RequestOptions): APIPromise<JourneyFlowCapabilitiesResponse>;
|
|
45
45
|
/**
|
|
46
|
-
* Compute a saved Journey Flow result.
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
46
|
+
* Compute a saved Journey Flow result. Requires expectedRevision and permits an
|
|
47
|
+
* optional complete report context override. Pass `breakdown` to add per-value
|
|
48
|
+
* segments after All traffic; nodes match across segments by `key`, not `id`. Pass
|
|
49
|
+
* `comparison` to add a series for other dates; neither is saved. `topPathsLimit`
|
|
50
|
+
* and `includeSamples=false` shrink large results. Results may be served from a
|
|
51
|
+
* recent cache; pass refresh=true to recompute. Reports selecting specific sources
|
|
52
|
+
* also require source:view permission. Requires API-key scope or current OAuth
|
|
53
|
+
* user permission: web-analytics:view
|
|
51
54
|
*/
|
|
52
55
|
results(id: string, query: JourneyFlowResultsParams, options?: RequestOptions): APIPromise<JourneyFlowResultsResponse>;
|
|
53
56
|
/**
|
|
54
57
|
* Export the saved Journey Flow as CSV with its effective scope, exact aggregate
|
|
55
58
|
* counts, timing, graph and bounded Top Paths. Requires expectedRevision; display
|
|
56
|
-
* limits and omitted path weight are included.
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
59
|
+
* limits and omitted path weight are included. Accepts the same `breakdown` and
|
|
60
|
+
* `comparison` as the result route; rows then identify their period and segment.
|
|
61
|
+
* The response contains the CSV content and filename. Visitor and session samples
|
|
62
|
+
* are not included. Reports selecting specific sources also require source:view
|
|
63
|
+
* permission. Requires API-key scope or current OAuth user permission:
|
|
64
|
+
* web-analytics:view
|
|
60
65
|
*/
|
|
61
66
|
export(id: string, query: JourneyFlowExportParams, options?: RequestOptions): APIPromise<JourneyFlowExportResponse>;
|
|
62
67
|
/**
|
|
63
68
|
* Compute a bounded preview from a serialized Journey Flow definition, report
|
|
64
|
-
* context, and view
|
|
65
|
-
* budget. Reports selecting specific
|
|
66
|
-
* Requires API-key scope or current
|
|
69
|
+
* context, and view, optionally with a breakdown and comparison. Use GraphQL when
|
|
70
|
+
* the serialized input exceeds the HTTP URL budget. Reports selecting specific
|
|
71
|
+
* sources also require source:view permission. Requires API-key scope or current
|
|
72
|
+
* OAuth user permission: web-analytics:view
|
|
67
73
|
*/
|
|
68
74
|
preview(query: JourneyFlowPreviewParams, options?: RequestOptions): APIPromise<JourneyFlowPreviewResponse>;
|
|
69
75
|
}
|
|
@@ -2569,7 +2575,14 @@ export interface JourneyFlowCapabilitiesResponse {
|
|
|
2569
2575
|
definitionVersion: number;
|
|
2570
2576
|
maxAlternativesPerAnchor: number;
|
|
2571
2577
|
maxAnchors: number;
|
|
2578
|
+
/**
|
|
2579
|
+
* Largest accepted breakdown limit.
|
|
2580
|
+
*/
|
|
2581
|
+
maxBreakdownSegments: number;
|
|
2572
2582
|
maxBuckets: number;
|
|
2583
|
+
/**
|
|
2584
|
+
* Always 0; use the comparison parameter instead.
|
|
2585
|
+
*/
|
|
2573
2586
|
maxComparisons: number;
|
|
2574
2587
|
maxExclusions: number;
|
|
2575
2588
|
maxHeldProperties: number;
|
|
@@ -2580,14 +2593,24 @@ export interface JourneyFlowCapabilitiesResponse {
|
|
|
2580
2593
|
maxTopPaths: number;
|
|
2581
2594
|
maxWindowMs: number;
|
|
2582
2595
|
sampleLimitPerOutcome: number;
|
|
2596
|
+
/**
|
|
2597
|
+
* Accepted comparison kinds.
|
|
2598
|
+
*/
|
|
2599
|
+
supportedComparisons: Array<'previous_period' | 'previous_year' | 'custom'>;
|
|
2583
2600
|
supportedCounting: Array<'UNIQUE' | 'TOTALS' | 'SESSIONS'>;
|
|
2584
2601
|
supportedMatcherKinds: Array<'EVENT' | 'PAGE'>;
|
|
2585
2602
|
supportedProviders: Array<string>;
|
|
2586
2603
|
supportedReentry: Array<'FIRST' | 'BEST'>;
|
|
2587
2604
|
supportedStepKinds: Array<'EVENT' | 'PAGE'>;
|
|
2588
2605
|
supportedVisualizations: Array<'SANKEY' | 'TOP_PATHS'>;
|
|
2606
|
+
/**
|
|
2607
|
+
* Whether the breakdown parameter is available.
|
|
2608
|
+
*/
|
|
2589
2609
|
supportsBreakdowns: boolean;
|
|
2590
2610
|
supportsCollapseRepeats: boolean;
|
|
2611
|
+
/**
|
|
2612
|
+
* Whether the comparison parameter is available.
|
|
2613
|
+
*/
|
|
2591
2614
|
supportsComparisons: boolean;
|
|
2592
2615
|
supportsCsvExport: boolean;
|
|
2593
2616
|
supportsDropOff: boolean;
|
|
@@ -2627,6 +2650,14 @@ export declare namespace JourneyFlowResultsResponse {
|
|
|
2627
2650
|
excludeBots: boolean;
|
|
2628
2651
|
reentry: 'FIRST' | 'BEST';
|
|
2629
2652
|
sourceIds: Array<string>;
|
|
2653
|
+
/**
|
|
2654
|
+
* The requested breakdown; null without one.
|
|
2655
|
+
*/
|
|
2656
|
+
breakdown?: EffectiveContext.Breakdown | null;
|
|
2657
|
+
/**
|
|
2658
|
+
* The compared dates; null without a comparison.
|
|
2659
|
+
*/
|
|
2660
|
+
comparison?: EffectiveContext.Comparison | null;
|
|
2630
2661
|
}
|
|
2631
2662
|
namespace EffectiveContext {
|
|
2632
2663
|
interface Comparison {
|
|
@@ -2722,14 +2753,41 @@ export declare namespace JourneyFlowResultsResponse {
|
|
|
2722
2753
|
timeZone: string;
|
|
2723
2754
|
to: string;
|
|
2724
2755
|
}
|
|
2756
|
+
/**
|
|
2757
|
+
* The requested breakdown; null without one.
|
|
2758
|
+
*/
|
|
2759
|
+
interface Breakdown {
|
|
2760
|
+
atAnchorId: string | null;
|
|
2761
|
+
limit: number;
|
|
2762
|
+
property: Breakdown.Property;
|
|
2763
|
+
stepNumber: number | null;
|
|
2764
|
+
truncated: boolean;
|
|
2765
|
+
/**
|
|
2766
|
+
* Distinct values seen.
|
|
2767
|
+
*/
|
|
2768
|
+
valueCount: number;
|
|
2769
|
+
}
|
|
2770
|
+
namespace Breakdown {
|
|
2771
|
+
interface Property {
|
|
2772
|
+
property: string;
|
|
2773
|
+
type: 'string' | 'number' | 'boolean';
|
|
2774
|
+
path?: Array<string>;
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2777
|
+
/**
|
|
2778
|
+
* The compared dates; null without a comparison.
|
|
2779
|
+
*/
|
|
2780
|
+
interface Comparison {
|
|
2781
|
+
from: string;
|
|
2782
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
2783
|
+
to: string;
|
|
2784
|
+
}
|
|
2725
2785
|
}
|
|
2726
2786
|
interface Execution {
|
|
2727
|
-
cacheHit: boolean;
|
|
2728
2787
|
generatedAt: string;
|
|
2729
2788
|
queryId: string;
|
|
2730
2789
|
sampled: boolean;
|
|
2731
2790
|
warnings: Array<Execution.Warning>;
|
|
2732
|
-
cacheAgeMs?: number | null;
|
|
2733
2791
|
}
|
|
2734
2792
|
namespace Execution {
|
|
2735
2793
|
interface Warning {
|
|
@@ -2773,12 +2831,23 @@ export declare namespace JourneyFlowResultsResponse {
|
|
|
2773
2831
|
}
|
|
2774
2832
|
}
|
|
2775
2833
|
interface Series {
|
|
2834
|
+
/**
|
|
2835
|
+
* Period: '' for the selected dates, or the comparison kind (previous_period,
|
|
2836
|
+
* previous_year, custom).
|
|
2837
|
+
*/
|
|
2776
2838
|
id: string;
|
|
2777
2839
|
label: string;
|
|
2778
2840
|
segments: Array<Series.Segment>;
|
|
2841
|
+
/**
|
|
2842
|
+
* The compared dates on a comparison series; null on the selected dates.
|
|
2843
|
+
*/
|
|
2844
|
+
comparison?: Series.Comparison | null;
|
|
2779
2845
|
}
|
|
2780
2846
|
namespace Series {
|
|
2781
2847
|
interface Segment {
|
|
2848
|
+
/**
|
|
2849
|
+
* '' for All traffic (always first), otherwise the breakdown segment key.
|
|
2850
|
+
*/
|
|
2782
2851
|
id: string;
|
|
2783
2852
|
columns: Array<Segment.Column>;
|
|
2784
2853
|
completedCount: string;
|
|
@@ -2792,6 +2861,10 @@ export declare namespace JourneyFlowResultsResponse {
|
|
|
2792
2861
|
topPaths: Array<Segment.TopPath>;
|
|
2793
2862
|
totalPathCount: string;
|
|
2794
2863
|
unfocusedEntryCount: string;
|
|
2864
|
+
/**
|
|
2865
|
+
* The breakdown segment; null on All traffic.
|
|
2866
|
+
*/
|
|
2867
|
+
breakdown?: Segment.Breakdown | null;
|
|
2795
2868
|
observationIncompleteCount?: string | null;
|
|
2796
2869
|
timedOutCount?: string | null;
|
|
2797
2870
|
}
|
|
@@ -2837,6 +2910,9 @@ export declare namespace JourneyFlowResultsResponse {
|
|
|
2837
2910
|
anchorId: string | null;
|
|
2838
2911
|
count: string;
|
|
2839
2912
|
denominator: string;
|
|
2913
|
+
/**
|
|
2914
|
+
* Stable across segments and periods; id is not.
|
|
2915
|
+
*/
|
|
2840
2916
|
key: string;
|
|
2841
2917
|
kind: 'ANCHOR' | 'EVENT' | 'PAGE' | 'TERMINAL' | 'OMITTED_STEPS' | 'OTHER_EVENTS';
|
|
2842
2918
|
matcher: Node.UnionMember0 | null | Node.UnionMember1;
|
|
@@ -3092,6 +3168,30 @@ export declare namespace JourneyFlowResultsResponse {
|
|
|
3092
3168
|
}
|
|
3093
3169
|
}
|
|
3094
3170
|
}
|
|
3171
|
+
/**
|
|
3172
|
+
* The breakdown segment; null on All traffic.
|
|
3173
|
+
*/
|
|
3174
|
+
interface Breakdown {
|
|
3175
|
+
/**
|
|
3176
|
+
* Segment key: v:<value>, $other, or $none.
|
|
3177
|
+
*/
|
|
3178
|
+
key: string;
|
|
3179
|
+
kind: 'value' | 'other' | 'not_set';
|
|
3180
|
+
label: string;
|
|
3181
|
+
rank: number;
|
|
3182
|
+
/**
|
|
3183
|
+
* Null for other and not_set.
|
|
3184
|
+
*/
|
|
3185
|
+
value: string | null;
|
|
3186
|
+
}
|
|
3187
|
+
}
|
|
3188
|
+
/**
|
|
3189
|
+
* The compared dates on a comparison series; null on the selected dates.
|
|
3190
|
+
*/
|
|
3191
|
+
interface Comparison {
|
|
3192
|
+
from: string;
|
|
3193
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
3194
|
+
to: string;
|
|
3095
3195
|
}
|
|
3096
3196
|
}
|
|
3097
3197
|
interface Timing {
|
|
@@ -3139,6 +3239,14 @@ export declare namespace JourneyFlowPreviewResponse {
|
|
|
3139
3239
|
excludeBots: boolean;
|
|
3140
3240
|
reentry: 'FIRST' | 'BEST';
|
|
3141
3241
|
sourceIds: Array<string>;
|
|
3242
|
+
/**
|
|
3243
|
+
* The requested breakdown; null without one.
|
|
3244
|
+
*/
|
|
3245
|
+
breakdown?: EffectiveContext.Breakdown | null;
|
|
3246
|
+
/**
|
|
3247
|
+
* The compared dates; null without a comparison.
|
|
3248
|
+
*/
|
|
3249
|
+
comparison?: EffectiveContext.Comparison | null;
|
|
3142
3250
|
}
|
|
3143
3251
|
namespace EffectiveContext {
|
|
3144
3252
|
interface Comparison {
|
|
@@ -3234,14 +3342,41 @@ export declare namespace JourneyFlowPreviewResponse {
|
|
|
3234
3342
|
timeZone: string;
|
|
3235
3343
|
to: string;
|
|
3236
3344
|
}
|
|
3345
|
+
/**
|
|
3346
|
+
* The requested breakdown; null without one.
|
|
3347
|
+
*/
|
|
3348
|
+
interface Breakdown {
|
|
3349
|
+
atAnchorId: string | null;
|
|
3350
|
+
limit: number;
|
|
3351
|
+
property: Breakdown.Property;
|
|
3352
|
+
stepNumber: number | null;
|
|
3353
|
+
truncated: boolean;
|
|
3354
|
+
/**
|
|
3355
|
+
* Distinct values seen.
|
|
3356
|
+
*/
|
|
3357
|
+
valueCount: number;
|
|
3358
|
+
}
|
|
3359
|
+
namespace Breakdown {
|
|
3360
|
+
interface Property {
|
|
3361
|
+
property: string;
|
|
3362
|
+
type: 'string' | 'number' | 'boolean';
|
|
3363
|
+
path?: Array<string>;
|
|
3364
|
+
}
|
|
3365
|
+
}
|
|
3366
|
+
/**
|
|
3367
|
+
* The compared dates; null without a comparison.
|
|
3368
|
+
*/
|
|
3369
|
+
interface Comparison {
|
|
3370
|
+
from: string;
|
|
3371
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
3372
|
+
to: string;
|
|
3373
|
+
}
|
|
3237
3374
|
}
|
|
3238
3375
|
interface Execution {
|
|
3239
|
-
cacheHit: boolean;
|
|
3240
3376
|
generatedAt: string;
|
|
3241
3377
|
queryId: string;
|
|
3242
3378
|
sampled: boolean;
|
|
3243
3379
|
warnings: Array<Execution.Warning>;
|
|
3244
|
-
cacheAgeMs?: number | null;
|
|
3245
3380
|
}
|
|
3246
3381
|
namespace Execution {
|
|
3247
3382
|
interface Warning {
|
|
@@ -3285,12 +3420,23 @@ export declare namespace JourneyFlowPreviewResponse {
|
|
|
3285
3420
|
}
|
|
3286
3421
|
}
|
|
3287
3422
|
interface Series {
|
|
3423
|
+
/**
|
|
3424
|
+
* Period: '' for the selected dates, or the comparison kind (previous_period,
|
|
3425
|
+
* previous_year, custom).
|
|
3426
|
+
*/
|
|
3288
3427
|
id: string;
|
|
3289
3428
|
label: string;
|
|
3290
3429
|
segments: Array<Series.Segment>;
|
|
3430
|
+
/**
|
|
3431
|
+
* The compared dates on a comparison series; null on the selected dates.
|
|
3432
|
+
*/
|
|
3433
|
+
comparison?: Series.Comparison | null;
|
|
3291
3434
|
}
|
|
3292
3435
|
namespace Series {
|
|
3293
3436
|
interface Segment {
|
|
3437
|
+
/**
|
|
3438
|
+
* '' for All traffic (always first), otherwise the breakdown segment key.
|
|
3439
|
+
*/
|
|
3294
3440
|
id: string;
|
|
3295
3441
|
columns: Array<Segment.Column>;
|
|
3296
3442
|
completedCount: string;
|
|
@@ -3304,6 +3450,10 @@ export declare namespace JourneyFlowPreviewResponse {
|
|
|
3304
3450
|
topPaths: Array<Segment.TopPath>;
|
|
3305
3451
|
totalPathCount: string;
|
|
3306
3452
|
unfocusedEntryCount: string;
|
|
3453
|
+
/**
|
|
3454
|
+
* The breakdown segment; null on All traffic.
|
|
3455
|
+
*/
|
|
3456
|
+
breakdown?: Segment.Breakdown | null;
|
|
3307
3457
|
observationIncompleteCount?: string | null;
|
|
3308
3458
|
timedOutCount?: string | null;
|
|
3309
3459
|
}
|
|
@@ -3349,6 +3499,9 @@ export declare namespace JourneyFlowPreviewResponse {
|
|
|
3349
3499
|
anchorId: string | null;
|
|
3350
3500
|
count: string;
|
|
3351
3501
|
denominator: string;
|
|
3502
|
+
/**
|
|
3503
|
+
* Stable across segments and periods; id is not.
|
|
3504
|
+
*/
|
|
3352
3505
|
key: string;
|
|
3353
3506
|
kind: 'ANCHOR' | 'EVENT' | 'PAGE' | 'TERMINAL' | 'OMITTED_STEPS' | 'OTHER_EVENTS';
|
|
3354
3507
|
matcher: Node.UnionMember0 | null | Node.UnionMember1;
|
|
@@ -3604,6 +3757,30 @@ export declare namespace JourneyFlowPreviewResponse {
|
|
|
3604
3757
|
}
|
|
3605
3758
|
}
|
|
3606
3759
|
}
|
|
3760
|
+
/**
|
|
3761
|
+
* The breakdown segment; null on All traffic.
|
|
3762
|
+
*/
|
|
3763
|
+
interface Breakdown {
|
|
3764
|
+
/**
|
|
3765
|
+
* Segment key: v:<value>, $other, or $none.
|
|
3766
|
+
*/
|
|
3767
|
+
key: string;
|
|
3768
|
+
kind: 'value' | 'other' | 'not_set';
|
|
3769
|
+
label: string;
|
|
3770
|
+
rank: number;
|
|
3771
|
+
/**
|
|
3772
|
+
* Null for other and not_set.
|
|
3773
|
+
*/
|
|
3774
|
+
value: string | null;
|
|
3775
|
+
}
|
|
3776
|
+
}
|
|
3777
|
+
/**
|
|
3778
|
+
* The compared dates on a comparison series; null on the selected dates.
|
|
3779
|
+
*/
|
|
3780
|
+
interface Comparison {
|
|
3781
|
+
from: string;
|
|
3782
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
3783
|
+
to: string;
|
|
3607
3784
|
}
|
|
3608
3785
|
}
|
|
3609
3786
|
interface Timing {
|
|
@@ -4884,6 +5061,25 @@ export interface JourneyFlowResultsParams {
|
|
|
4884
5061
|
* reload before retrying.
|
|
4885
5062
|
*/
|
|
4886
5063
|
expectedRevision: string;
|
|
5064
|
+
/**
|
|
5065
|
+
* Split results by a property. JSON object
|
|
5066
|
+
* {property:{property,path?,type},limit?}. type is string, number or boolean;
|
|
5067
|
+
* limit is 1–10 (default 5). Properties come from GET
|
|
5068
|
+
* /rest/v1/analytics/query-catalog. Optional atAnchorId names the anchor whose
|
|
5069
|
+
* event supplies the value. Example:
|
|
5070
|
+
* {"property":{"property":"session.device_type","type":"string"},"atAnchorId":"<anchor id>"}
|
|
5071
|
+
*/
|
|
5072
|
+
breakdown?: string;
|
|
5073
|
+
/**
|
|
5074
|
+
* Compare with another range of the same length. JSON object {kind,from?}: kind is
|
|
5075
|
+
* previous_period, previous_year or custom; custom requires from (YYYY-MM-DD).
|
|
5076
|
+
* Example: {"kind":"previous_period"}
|
|
5077
|
+
*/
|
|
5078
|
+
comparison?: string;
|
|
5079
|
+
/**
|
|
5080
|
+
* Include sample visitor and session IDs; defaults to true.
|
|
5081
|
+
*/
|
|
5082
|
+
includeSamples?: boolean;
|
|
4887
5083
|
/**
|
|
4888
5084
|
* Recompute instead of serving a cached result for identical inputs.
|
|
4889
5085
|
*/
|
|
@@ -4892,6 +5088,10 @@ export interface JourneyFlowResultsParams {
|
|
|
4892
5088
|
* Complete report context override; JSON-encoded in the REST query string.
|
|
4893
5089
|
*/
|
|
4894
5090
|
reportContextOverride?: string;
|
|
5091
|
+
/**
|
|
5092
|
+
* Top paths per segment, at most the saved view's topPaths.
|
|
5093
|
+
*/
|
|
5094
|
+
topPathsLimit?: number;
|
|
4895
5095
|
}
|
|
4896
5096
|
export interface JourneyFlowExportParams {
|
|
4897
5097
|
/**
|
|
@@ -4899,6 +5099,25 @@ export interface JourneyFlowExportParams {
|
|
|
4899
5099
|
* reload before retrying.
|
|
4900
5100
|
*/
|
|
4901
5101
|
expectedRevision: string;
|
|
5102
|
+
/**
|
|
5103
|
+
* Split results by a property. JSON object
|
|
5104
|
+
* {property:{property,path?,type},limit?}. type is string, number or boolean;
|
|
5105
|
+
* limit is 1–10 (default 5). Properties come from GET
|
|
5106
|
+
* /rest/v1/analytics/query-catalog. Optional atAnchorId names the anchor whose
|
|
5107
|
+
* event supplies the value. Example:
|
|
5108
|
+
* {"property":{"property":"session.device_type","type":"string"},"atAnchorId":"<anchor id>"}
|
|
5109
|
+
*/
|
|
5110
|
+
breakdown?: string;
|
|
5111
|
+
/**
|
|
5112
|
+
* Compare with another range of the same length. JSON object {kind,from?}: kind is
|
|
5113
|
+
* previous_period, previous_year or custom; custom requires from (YYYY-MM-DD).
|
|
5114
|
+
* Example: {"kind":"previous_period"}
|
|
5115
|
+
*/
|
|
5116
|
+
comparison?: string;
|
|
5117
|
+
/**
|
|
5118
|
+
* Include sample visitor and session IDs; defaults to true.
|
|
5119
|
+
*/
|
|
5120
|
+
includeSamples?: boolean;
|
|
4902
5121
|
/**
|
|
4903
5122
|
* Recompute instead of serving a cached result for identical inputs.
|
|
4904
5123
|
*/
|
|
@@ -4907,11 +5126,16 @@ export interface JourneyFlowExportParams {
|
|
|
4907
5126
|
* Complete report context override; JSON-encoded in the REST query string.
|
|
4908
5127
|
*/
|
|
4909
5128
|
reportContextOverride?: string;
|
|
5129
|
+
/**
|
|
5130
|
+
* Top paths per segment, at most the saved view's topPaths.
|
|
5131
|
+
*/
|
|
5132
|
+
topPathsLimit?: number;
|
|
4910
5133
|
}
|
|
4911
5134
|
export interface JourneyFlowPreviewParams {
|
|
4912
5135
|
/**
|
|
4913
|
-
* Object with required definition, reportContext, and view, plus optional refresh
|
|
4914
|
-
* JSON-encode input in the REST query string; maximum
|
|
5136
|
+
* Object with required definition, reportContext, and view, plus optional refresh,
|
|
5137
|
+
* breakdown, and comparison. JSON-encode input in the REST query string; maximum
|
|
5138
|
+
* 16384 bytes.
|
|
4915
5139
|
*/
|
|
4916
5140
|
input: string;
|
|
4917
5141
|
}
|