@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
|
@@ -5,11 +5,11 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
5
5
|
export declare class Experiments extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* List experiments for this account. Each experiment includes its full `variants`
|
|
8
|
-
* array
|
|
9
|
-
* a
|
|
10
|
-
* filtering by `status`, `type`,
|
|
11
|
-
* id, name, and description.
|
|
12
|
-
* experiment:list
|
|
8
|
+
* array and complete primary and secondary metric definitions with any filtered
|
|
9
|
+
* event matchers, so a single paginated call returns a complete client-side
|
|
10
|
+
* experiment config. Supports cursor pagination and filtering by `status`, `type`,
|
|
11
|
+
* and free-text `search` matched against experiment id, name, and description.
|
|
12
|
+
* Combine filters with AND semantics. Requires scope: experiment:list
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
@@ -34,7 +34,9 @@ export declare class Experiments extends APIResource {
|
|
|
34
34
|
*/
|
|
35
35
|
create(body: ExperimentCreateParams, options?: RequestOptions): APIPromise<ExperimentCreateResponse>;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Retrieve one experiment with its variants, lifecycle state, and complete primary
|
|
38
|
+
* and secondary metric definitions, including any filtered event matchers.
|
|
39
|
+
* Requires scope: experiment:find
|
|
38
40
|
*
|
|
39
41
|
* @example
|
|
40
42
|
* ```ts
|
|
@@ -44,9 +46,12 @@ export declare class Experiments extends APIResource {
|
|
|
44
46
|
retrieve(id: string, options?: RequestOptions): APIPromise<ExperimentRetrieveResponse>;
|
|
45
47
|
/**
|
|
46
48
|
* Partially update an experiment. Only the fields you send are changed, except
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
49
|
+
* `targetingRules` and `metrics`, which are full nested replacements. Preserve
|
|
50
|
+
* every filtered matcher and condition returned by GET or the request returns
|
|
51
|
+
* `FILTERED_EXPERIMENT_METRIC_REQUIRES_FULL_REPLACEMENT`. Renaming a non-draft
|
|
52
|
+
* legacy experiment with no stored key preserves its current name-derived key.
|
|
53
|
+
* Edits are allowed on draft, running, and paused experiments and are recorded in
|
|
54
|
+
* the change log. Only completed experiments return 409 with
|
|
50
55
|
* `A completed experiment can no longer be edited`. Use the lifecycle endpoints
|
|
51
56
|
* (`/start`, `/pause`, `/resume`, `/stop`) to change status. Requires scope:
|
|
52
57
|
* experiment:update
|
|
@@ -166,8 +171,9 @@ export declare class Experiments extends APIResource {
|
|
|
166
171
|
resume(id: string, body?: ExperimentResumeParams | null | undefined, options?: RequestOptions): APIPromise<ExperimentResumeResponse>;
|
|
167
172
|
/**
|
|
168
173
|
* Aggregate per-variant impressions, conversions, conversion rate, and Bayesian
|
|
169
|
-
* probability-to-be-best across the experiment runtime window.
|
|
170
|
-
*
|
|
174
|
+
* probability-to-be-best across the experiment runtime window. Select a saved goal
|
|
175
|
+
* with `goalId`; `eventName` remains available as a legacy selector. Requires
|
|
176
|
+
* scope: experiment:find
|
|
171
177
|
*
|
|
172
178
|
* @example
|
|
173
179
|
* ```ts
|
|
@@ -181,8 +187,9 @@ export declare class Experiments extends APIResource {
|
|
|
181
187
|
* metrics. The response includes common visitor, impression, readiness, evidence,
|
|
182
188
|
* and data-quality fields plus the applicable method-specific result block.
|
|
183
189
|
* Visitors are the inferential unit; impressions remain a delivery diagnostic.
|
|
184
|
-
*
|
|
185
|
-
*
|
|
190
|
+
* Select a saved goal with `goalId`; `eventName` remains available as a legacy
|
|
191
|
+
* selector. Secondary event overrides are labeled exploratory, and unsupported
|
|
192
|
+
* legacy plans suppress official evidence. Requires scope: experiment:find
|
|
186
193
|
*
|
|
187
194
|
* @example
|
|
188
195
|
* ```ts
|
|
@@ -193,12 +200,13 @@ export declare class Experiments extends APIResource {
|
|
|
193
200
|
/**
|
|
194
201
|
* Per-day per-variant impressions, conversions, and conversion rate, sliced to a
|
|
195
202
|
* date range. Use this to chart trends, compare windows, or zoom in on a specific
|
|
196
|
-
* period. Pass `
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
203
|
+
* period. Pass `goalId` to select a saved goal; `eventName` remains available as a
|
|
204
|
+
* legacy selector. Pass `startDate` / `endDate` (`YYYY-MM-DD`, UTC, both
|
|
205
|
+
* inclusive) to set the window; both default to the full experiment runtime when
|
|
206
|
+
* omitted, so the no-arg call returns every day from start to today (or to
|
|
207
|
+
* `stoppedAt` for completed experiments). The response orders days oldest-first
|
|
208
|
+
* and omits days with no impressions, so an empty `days` array means there was no
|
|
209
|
+
* measured traffic in the window. Requires scope: experiment:find
|
|
202
210
|
*
|
|
203
211
|
* @example
|
|
204
212
|
* ```ts
|
|
@@ -431,6 +439,15 @@ export declare namespace ExperimentListResponse {
|
|
|
431
439
|
}
|
|
432
440
|
namespace Metrics {
|
|
433
441
|
interface Secondary {
|
|
442
|
+
/**
|
|
443
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
444
|
+
*/
|
|
445
|
+
goalId: string;
|
|
446
|
+
/**
|
|
447
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
448
|
+
* optional analytics filter.
|
|
449
|
+
*/
|
|
450
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
434
451
|
/**
|
|
435
452
|
* Name of the event used to measure success for this metric.
|
|
436
453
|
*/
|
|
@@ -440,6 +457,34 @@ export declare namespace ExperimentListResponse {
|
|
|
440
457
|
* definition.
|
|
441
458
|
*/
|
|
442
459
|
funnelId?: string | null;
|
|
460
|
+
valueMode?: boolean | null;
|
|
461
|
+
winsorize?: boolean | null;
|
|
462
|
+
winsorizePercentile?: number | null;
|
|
463
|
+
}
|
|
464
|
+
namespace Secondary {
|
|
465
|
+
interface EventMatcher {
|
|
466
|
+
/**
|
|
467
|
+
* Event name required by this OR branch.
|
|
468
|
+
*/
|
|
469
|
+
eventName: string;
|
|
470
|
+
/**
|
|
471
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
472
|
+
*/
|
|
473
|
+
filter?: EventMatcher.Filter;
|
|
474
|
+
}
|
|
475
|
+
namespace EventMatcher {
|
|
476
|
+
/**
|
|
477
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
478
|
+
*/
|
|
479
|
+
interface Filter {
|
|
480
|
+
/**
|
|
481
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
482
|
+
* supported properties and operators.
|
|
483
|
+
*/
|
|
484
|
+
filter: unknown;
|
|
485
|
+
version: 1;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
443
488
|
}
|
|
444
489
|
}
|
|
445
490
|
/**
|
|
@@ -711,6 +756,15 @@ export declare namespace ExperimentCreateResponse {
|
|
|
711
756
|
}
|
|
712
757
|
namespace Metrics {
|
|
713
758
|
interface Secondary {
|
|
759
|
+
/**
|
|
760
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
761
|
+
*/
|
|
762
|
+
goalId: string;
|
|
763
|
+
/**
|
|
764
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
765
|
+
* optional analytics filter.
|
|
766
|
+
*/
|
|
767
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
714
768
|
/**
|
|
715
769
|
* Name of the event used to measure success for this metric.
|
|
716
770
|
*/
|
|
@@ -720,6 +774,34 @@ export declare namespace ExperimentCreateResponse {
|
|
|
720
774
|
* definition.
|
|
721
775
|
*/
|
|
722
776
|
funnelId?: string | null;
|
|
777
|
+
valueMode?: boolean | null;
|
|
778
|
+
winsorize?: boolean | null;
|
|
779
|
+
winsorizePercentile?: number | null;
|
|
780
|
+
}
|
|
781
|
+
namespace Secondary {
|
|
782
|
+
interface EventMatcher {
|
|
783
|
+
/**
|
|
784
|
+
* Event name required by this OR branch.
|
|
785
|
+
*/
|
|
786
|
+
eventName: string;
|
|
787
|
+
/**
|
|
788
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
789
|
+
*/
|
|
790
|
+
filter?: EventMatcher.Filter;
|
|
791
|
+
}
|
|
792
|
+
namespace EventMatcher {
|
|
793
|
+
/**
|
|
794
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
795
|
+
*/
|
|
796
|
+
interface Filter {
|
|
797
|
+
/**
|
|
798
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
799
|
+
* supported properties and operators.
|
|
800
|
+
*/
|
|
801
|
+
filter: unknown;
|
|
802
|
+
version: 1;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
723
805
|
}
|
|
724
806
|
}
|
|
725
807
|
/**
|
|
@@ -991,6 +1073,15 @@ export declare namespace ExperimentRetrieveResponse {
|
|
|
991
1073
|
}
|
|
992
1074
|
namespace Metrics {
|
|
993
1075
|
interface Secondary {
|
|
1076
|
+
/**
|
|
1077
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
1078
|
+
*/
|
|
1079
|
+
goalId: string;
|
|
1080
|
+
/**
|
|
1081
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
1082
|
+
* optional analytics filter.
|
|
1083
|
+
*/
|
|
1084
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
994
1085
|
/**
|
|
995
1086
|
* Name of the event used to measure success for this metric.
|
|
996
1087
|
*/
|
|
@@ -1000,6 +1091,34 @@ export declare namespace ExperimentRetrieveResponse {
|
|
|
1000
1091
|
* definition.
|
|
1001
1092
|
*/
|
|
1002
1093
|
funnelId?: string | null;
|
|
1094
|
+
valueMode?: boolean | null;
|
|
1095
|
+
winsorize?: boolean | null;
|
|
1096
|
+
winsorizePercentile?: number | null;
|
|
1097
|
+
}
|
|
1098
|
+
namespace Secondary {
|
|
1099
|
+
interface EventMatcher {
|
|
1100
|
+
/**
|
|
1101
|
+
* Event name required by this OR branch.
|
|
1102
|
+
*/
|
|
1103
|
+
eventName: string;
|
|
1104
|
+
/**
|
|
1105
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
1106
|
+
*/
|
|
1107
|
+
filter?: EventMatcher.Filter;
|
|
1108
|
+
}
|
|
1109
|
+
namespace EventMatcher {
|
|
1110
|
+
/**
|
|
1111
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
1112
|
+
*/
|
|
1113
|
+
interface Filter {
|
|
1114
|
+
/**
|
|
1115
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
1116
|
+
* supported properties and operators.
|
|
1117
|
+
*/
|
|
1118
|
+
filter: unknown;
|
|
1119
|
+
version: 1;
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1003
1122
|
}
|
|
1004
1123
|
}
|
|
1005
1124
|
/**
|
|
@@ -1271,6 +1390,15 @@ export declare namespace ExperimentUpdateResponse {
|
|
|
1271
1390
|
}
|
|
1272
1391
|
namespace Metrics {
|
|
1273
1392
|
interface Secondary {
|
|
1393
|
+
/**
|
|
1394
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
1395
|
+
*/
|
|
1396
|
+
goalId: string;
|
|
1397
|
+
/**
|
|
1398
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
1399
|
+
* optional analytics filter.
|
|
1400
|
+
*/
|
|
1401
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
1274
1402
|
/**
|
|
1275
1403
|
* Name of the event used to measure success for this metric.
|
|
1276
1404
|
*/
|
|
@@ -1280,6 +1408,34 @@ export declare namespace ExperimentUpdateResponse {
|
|
|
1280
1408
|
* definition.
|
|
1281
1409
|
*/
|
|
1282
1410
|
funnelId?: string | null;
|
|
1411
|
+
valueMode?: boolean | null;
|
|
1412
|
+
winsorize?: boolean | null;
|
|
1413
|
+
winsorizePercentile?: number | null;
|
|
1414
|
+
}
|
|
1415
|
+
namespace Secondary {
|
|
1416
|
+
interface EventMatcher {
|
|
1417
|
+
/**
|
|
1418
|
+
* Event name required by this OR branch.
|
|
1419
|
+
*/
|
|
1420
|
+
eventName: string;
|
|
1421
|
+
/**
|
|
1422
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
1423
|
+
*/
|
|
1424
|
+
filter?: EventMatcher.Filter;
|
|
1425
|
+
}
|
|
1426
|
+
namespace EventMatcher {
|
|
1427
|
+
/**
|
|
1428
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
1429
|
+
*/
|
|
1430
|
+
interface Filter {
|
|
1431
|
+
/**
|
|
1432
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
1433
|
+
* supported properties and operators.
|
|
1434
|
+
*/
|
|
1435
|
+
filter: unknown;
|
|
1436
|
+
version: 1;
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1283
1439
|
}
|
|
1284
1440
|
}
|
|
1285
1441
|
/**
|
|
@@ -1555,6 +1711,15 @@ export declare namespace ExperimentDuplicateResponse {
|
|
|
1555
1711
|
}
|
|
1556
1712
|
namespace Metrics {
|
|
1557
1713
|
interface Secondary {
|
|
1714
|
+
/**
|
|
1715
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
1716
|
+
*/
|
|
1717
|
+
goalId: string;
|
|
1718
|
+
/**
|
|
1719
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
1720
|
+
* optional analytics filter.
|
|
1721
|
+
*/
|
|
1722
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
1558
1723
|
/**
|
|
1559
1724
|
* Name of the event used to measure success for this metric.
|
|
1560
1725
|
*/
|
|
@@ -1564,6 +1729,34 @@ export declare namespace ExperimentDuplicateResponse {
|
|
|
1564
1729
|
* definition.
|
|
1565
1730
|
*/
|
|
1566
1731
|
funnelId?: string | null;
|
|
1732
|
+
valueMode?: boolean | null;
|
|
1733
|
+
winsorize?: boolean | null;
|
|
1734
|
+
winsorizePercentile?: number | null;
|
|
1735
|
+
}
|
|
1736
|
+
namespace Secondary {
|
|
1737
|
+
interface EventMatcher {
|
|
1738
|
+
/**
|
|
1739
|
+
* Event name required by this OR branch.
|
|
1740
|
+
*/
|
|
1741
|
+
eventName: string;
|
|
1742
|
+
/**
|
|
1743
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
1744
|
+
*/
|
|
1745
|
+
filter?: EventMatcher.Filter;
|
|
1746
|
+
}
|
|
1747
|
+
namespace EventMatcher {
|
|
1748
|
+
/**
|
|
1749
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
1750
|
+
*/
|
|
1751
|
+
interface Filter {
|
|
1752
|
+
/**
|
|
1753
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
1754
|
+
* supported properties and operators.
|
|
1755
|
+
*/
|
|
1756
|
+
filter: unknown;
|
|
1757
|
+
version: 1;
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1567
1760
|
}
|
|
1568
1761
|
}
|
|
1569
1762
|
/**
|
|
@@ -1757,6 +1950,15 @@ export declare namespace ExperimentStartResponse {
|
|
|
1757
1950
|
}
|
|
1758
1951
|
namespace Metrics {
|
|
1759
1952
|
interface Secondary {
|
|
1953
|
+
/**
|
|
1954
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
1955
|
+
*/
|
|
1956
|
+
goalId: string;
|
|
1957
|
+
/**
|
|
1958
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
1959
|
+
* optional analytics filter.
|
|
1960
|
+
*/
|
|
1961
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
1760
1962
|
/**
|
|
1761
1963
|
* Name of the event used to measure success for this metric.
|
|
1762
1964
|
*/
|
|
@@ -1766,6 +1968,34 @@ export declare namespace ExperimentStartResponse {
|
|
|
1766
1968
|
* definition.
|
|
1767
1969
|
*/
|
|
1768
1970
|
funnelId?: string | null;
|
|
1971
|
+
valueMode?: boolean | null;
|
|
1972
|
+
winsorize?: boolean | null;
|
|
1973
|
+
winsorizePercentile?: number | null;
|
|
1974
|
+
}
|
|
1975
|
+
namespace Secondary {
|
|
1976
|
+
interface EventMatcher {
|
|
1977
|
+
/**
|
|
1978
|
+
* Event name required by this OR branch.
|
|
1979
|
+
*/
|
|
1980
|
+
eventName: string;
|
|
1981
|
+
/**
|
|
1982
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
1983
|
+
*/
|
|
1984
|
+
filter?: EventMatcher.Filter;
|
|
1985
|
+
}
|
|
1986
|
+
namespace EventMatcher {
|
|
1987
|
+
/**
|
|
1988
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
1989
|
+
*/
|
|
1990
|
+
interface Filter {
|
|
1991
|
+
/**
|
|
1992
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
1993
|
+
* supported properties and operators.
|
|
1994
|
+
*/
|
|
1995
|
+
filter: unknown;
|
|
1996
|
+
version: 1;
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1769
1999
|
}
|
|
1770
2000
|
}
|
|
1771
2001
|
/**
|
|
@@ -1960,6 +2190,15 @@ export declare namespace ExperimentStopResponse {
|
|
|
1960
2190
|
}
|
|
1961
2191
|
namespace Metrics {
|
|
1962
2192
|
interface Secondary {
|
|
2193
|
+
/**
|
|
2194
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
2195
|
+
*/
|
|
2196
|
+
goalId: string;
|
|
2197
|
+
/**
|
|
2198
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
2199
|
+
* optional analytics filter.
|
|
2200
|
+
*/
|
|
2201
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
1963
2202
|
/**
|
|
1964
2203
|
* Name of the event used to measure success for this metric.
|
|
1965
2204
|
*/
|
|
@@ -1969,6 +2208,34 @@ export declare namespace ExperimentStopResponse {
|
|
|
1969
2208
|
* definition.
|
|
1970
2209
|
*/
|
|
1971
2210
|
funnelId?: string | null;
|
|
2211
|
+
valueMode?: boolean | null;
|
|
2212
|
+
winsorize?: boolean | null;
|
|
2213
|
+
winsorizePercentile?: number | null;
|
|
2214
|
+
}
|
|
2215
|
+
namespace Secondary {
|
|
2216
|
+
interface EventMatcher {
|
|
2217
|
+
/**
|
|
2218
|
+
* Event name required by this OR branch.
|
|
2219
|
+
*/
|
|
2220
|
+
eventName: string;
|
|
2221
|
+
/**
|
|
2222
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
2223
|
+
*/
|
|
2224
|
+
filter?: EventMatcher.Filter;
|
|
2225
|
+
}
|
|
2226
|
+
namespace EventMatcher {
|
|
2227
|
+
/**
|
|
2228
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
2229
|
+
*/
|
|
2230
|
+
interface Filter {
|
|
2231
|
+
/**
|
|
2232
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
2233
|
+
* supported properties and operators.
|
|
2234
|
+
*/
|
|
2235
|
+
filter: unknown;
|
|
2236
|
+
version: 1;
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
1972
2239
|
}
|
|
1973
2240
|
}
|
|
1974
2241
|
/**
|
|
@@ -2163,6 +2430,15 @@ export declare namespace ExperimentRolloutResponse {
|
|
|
2163
2430
|
}
|
|
2164
2431
|
namespace Metrics {
|
|
2165
2432
|
interface Secondary {
|
|
2433
|
+
/**
|
|
2434
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
2435
|
+
*/
|
|
2436
|
+
goalId: string;
|
|
2437
|
+
/**
|
|
2438
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
2439
|
+
* optional analytics filter.
|
|
2440
|
+
*/
|
|
2441
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
2166
2442
|
/**
|
|
2167
2443
|
* Name of the event used to measure success for this metric.
|
|
2168
2444
|
*/
|
|
@@ -2172,6 +2448,34 @@ export declare namespace ExperimentRolloutResponse {
|
|
|
2172
2448
|
* definition.
|
|
2173
2449
|
*/
|
|
2174
2450
|
funnelId?: string | null;
|
|
2451
|
+
valueMode?: boolean | null;
|
|
2452
|
+
winsorize?: boolean | null;
|
|
2453
|
+
winsorizePercentile?: number | null;
|
|
2454
|
+
}
|
|
2455
|
+
namespace Secondary {
|
|
2456
|
+
interface EventMatcher {
|
|
2457
|
+
/**
|
|
2458
|
+
* Event name required by this OR branch.
|
|
2459
|
+
*/
|
|
2460
|
+
eventName: string;
|
|
2461
|
+
/**
|
|
2462
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
2463
|
+
*/
|
|
2464
|
+
filter?: EventMatcher.Filter;
|
|
2465
|
+
}
|
|
2466
|
+
namespace EventMatcher {
|
|
2467
|
+
/**
|
|
2468
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
2469
|
+
*/
|
|
2470
|
+
interface Filter {
|
|
2471
|
+
/**
|
|
2472
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
2473
|
+
* supported properties and operators.
|
|
2474
|
+
*/
|
|
2475
|
+
filter: unknown;
|
|
2476
|
+
version: 1;
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2175
2479
|
}
|
|
2176
2480
|
}
|
|
2177
2481
|
/**
|
|
@@ -2366,6 +2670,15 @@ export declare namespace ExperimentEndRolloutResponse {
|
|
|
2366
2670
|
}
|
|
2367
2671
|
namespace Metrics {
|
|
2368
2672
|
interface Secondary {
|
|
2673
|
+
/**
|
|
2674
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
2675
|
+
*/
|
|
2676
|
+
goalId: string;
|
|
2677
|
+
/**
|
|
2678
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
2679
|
+
* optional analytics filter.
|
|
2680
|
+
*/
|
|
2681
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
2369
2682
|
/**
|
|
2370
2683
|
* Name of the event used to measure success for this metric.
|
|
2371
2684
|
*/
|
|
@@ -2375,6 +2688,34 @@ export declare namespace ExperimentEndRolloutResponse {
|
|
|
2375
2688
|
* definition.
|
|
2376
2689
|
*/
|
|
2377
2690
|
funnelId?: string | null;
|
|
2691
|
+
valueMode?: boolean | null;
|
|
2692
|
+
winsorize?: boolean | null;
|
|
2693
|
+
winsorizePercentile?: number | null;
|
|
2694
|
+
}
|
|
2695
|
+
namespace Secondary {
|
|
2696
|
+
interface EventMatcher {
|
|
2697
|
+
/**
|
|
2698
|
+
* Event name required by this OR branch.
|
|
2699
|
+
*/
|
|
2700
|
+
eventName: string;
|
|
2701
|
+
/**
|
|
2702
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
2703
|
+
*/
|
|
2704
|
+
filter?: EventMatcher.Filter;
|
|
2705
|
+
}
|
|
2706
|
+
namespace EventMatcher {
|
|
2707
|
+
/**
|
|
2708
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
2709
|
+
*/
|
|
2710
|
+
interface Filter {
|
|
2711
|
+
/**
|
|
2712
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
2713
|
+
* supported properties and operators.
|
|
2714
|
+
*/
|
|
2715
|
+
filter: unknown;
|
|
2716
|
+
version: 1;
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2378
2719
|
}
|
|
2379
2720
|
}
|
|
2380
2721
|
/**
|
|
@@ -2554,6 +2895,15 @@ export declare namespace ExperimentWinnerResponse {
|
|
|
2554
2895
|
}
|
|
2555
2896
|
namespace Metrics {
|
|
2556
2897
|
interface Secondary {
|
|
2898
|
+
/**
|
|
2899
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
2900
|
+
*/
|
|
2901
|
+
goalId: string;
|
|
2902
|
+
/**
|
|
2903
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
2904
|
+
* optional analytics filter.
|
|
2905
|
+
*/
|
|
2906
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
2557
2907
|
/**
|
|
2558
2908
|
* Name of the event used to measure success for this metric.
|
|
2559
2909
|
*/
|
|
@@ -2563,6 +2913,34 @@ export declare namespace ExperimentWinnerResponse {
|
|
|
2563
2913
|
* definition.
|
|
2564
2914
|
*/
|
|
2565
2915
|
funnelId?: string | null;
|
|
2916
|
+
valueMode?: boolean | null;
|
|
2917
|
+
winsorize?: boolean | null;
|
|
2918
|
+
winsorizePercentile?: number | null;
|
|
2919
|
+
}
|
|
2920
|
+
namespace Secondary {
|
|
2921
|
+
interface EventMatcher {
|
|
2922
|
+
/**
|
|
2923
|
+
* Event name required by this OR branch.
|
|
2924
|
+
*/
|
|
2925
|
+
eventName: string;
|
|
2926
|
+
/**
|
|
2927
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
2928
|
+
*/
|
|
2929
|
+
filter?: EventMatcher.Filter;
|
|
2930
|
+
}
|
|
2931
|
+
namespace EventMatcher {
|
|
2932
|
+
/**
|
|
2933
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
2934
|
+
*/
|
|
2935
|
+
interface Filter {
|
|
2936
|
+
/**
|
|
2937
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
2938
|
+
* supported properties and operators.
|
|
2939
|
+
*/
|
|
2940
|
+
filter: unknown;
|
|
2941
|
+
version: 1;
|
|
2942
|
+
}
|
|
2943
|
+
}
|
|
2566
2944
|
}
|
|
2567
2945
|
}
|
|
2568
2946
|
/**
|
|
@@ -2756,6 +3134,15 @@ export declare namespace ExperimentPauseResponse {
|
|
|
2756
3134
|
}
|
|
2757
3135
|
namespace Metrics {
|
|
2758
3136
|
interface Secondary {
|
|
3137
|
+
/**
|
|
3138
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
3139
|
+
*/
|
|
3140
|
+
goalId: string;
|
|
3141
|
+
/**
|
|
3142
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
3143
|
+
* optional analytics filter.
|
|
3144
|
+
*/
|
|
3145
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
2759
3146
|
/**
|
|
2760
3147
|
* Name of the event used to measure success for this metric.
|
|
2761
3148
|
*/
|
|
@@ -2765,6 +3152,34 @@ export declare namespace ExperimentPauseResponse {
|
|
|
2765
3152
|
* definition.
|
|
2766
3153
|
*/
|
|
2767
3154
|
funnelId?: string | null;
|
|
3155
|
+
valueMode?: boolean | null;
|
|
3156
|
+
winsorize?: boolean | null;
|
|
3157
|
+
winsorizePercentile?: number | null;
|
|
3158
|
+
}
|
|
3159
|
+
namespace Secondary {
|
|
3160
|
+
interface EventMatcher {
|
|
3161
|
+
/**
|
|
3162
|
+
* Event name required by this OR branch.
|
|
3163
|
+
*/
|
|
3164
|
+
eventName: string;
|
|
3165
|
+
/**
|
|
3166
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3167
|
+
*/
|
|
3168
|
+
filter?: EventMatcher.Filter;
|
|
3169
|
+
}
|
|
3170
|
+
namespace EventMatcher {
|
|
3171
|
+
/**
|
|
3172
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3173
|
+
*/
|
|
3174
|
+
interface Filter {
|
|
3175
|
+
/**
|
|
3176
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
3177
|
+
* supported properties and operators.
|
|
3178
|
+
*/
|
|
3179
|
+
filter: unknown;
|
|
3180
|
+
version: 1;
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
2768
3183
|
}
|
|
2769
3184
|
}
|
|
2770
3185
|
/**
|
|
@@ -2959,6 +3374,15 @@ export declare namespace ExperimentResumeResponse {
|
|
|
2959
3374
|
}
|
|
2960
3375
|
namespace Metrics {
|
|
2961
3376
|
interface Secondary {
|
|
3377
|
+
/**
|
|
3378
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
3379
|
+
*/
|
|
3380
|
+
goalId: string;
|
|
3381
|
+
/**
|
|
3382
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
3383
|
+
* optional analytics filter.
|
|
3384
|
+
*/
|
|
3385
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
2962
3386
|
/**
|
|
2963
3387
|
* Name of the event used to measure success for this metric.
|
|
2964
3388
|
*/
|
|
@@ -2968,6 +3392,34 @@ export declare namespace ExperimentResumeResponse {
|
|
|
2968
3392
|
* definition.
|
|
2969
3393
|
*/
|
|
2970
3394
|
funnelId?: string | null;
|
|
3395
|
+
valueMode?: boolean | null;
|
|
3396
|
+
winsorize?: boolean | null;
|
|
3397
|
+
winsorizePercentile?: number | null;
|
|
3398
|
+
}
|
|
3399
|
+
namespace Secondary {
|
|
3400
|
+
interface EventMatcher {
|
|
3401
|
+
/**
|
|
3402
|
+
* Event name required by this OR branch.
|
|
3403
|
+
*/
|
|
3404
|
+
eventName: string;
|
|
3405
|
+
/**
|
|
3406
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3407
|
+
*/
|
|
3408
|
+
filter?: EventMatcher.Filter;
|
|
3409
|
+
}
|
|
3410
|
+
namespace EventMatcher {
|
|
3411
|
+
/**
|
|
3412
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3413
|
+
*/
|
|
3414
|
+
interface Filter {
|
|
3415
|
+
/**
|
|
3416
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
3417
|
+
* supported properties and operators.
|
|
3418
|
+
*/
|
|
3419
|
+
filter: unknown;
|
|
3420
|
+
version: 1;
|
|
3421
|
+
}
|
|
3422
|
+
}
|
|
2971
3423
|
}
|
|
2972
3424
|
}
|
|
2973
3425
|
/**
|
|
@@ -3270,7 +3722,8 @@ export declare namespace ExperimentCreateParams {
|
|
|
3270
3722
|
*/
|
|
3271
3723
|
interface Metrics {
|
|
3272
3724
|
/**
|
|
3273
|
-
* Primary success metric.
|
|
3725
|
+
* Primary success metric. Filtered goals require an explicit stable `eventName`
|
|
3726
|
+
* anchor plus the complete `eventMatchers` array.
|
|
3274
3727
|
*/
|
|
3275
3728
|
primary?: Metrics.Primary | null;
|
|
3276
3729
|
/**
|
|
@@ -3280,9 +3733,15 @@ export declare namespace ExperimentCreateParams {
|
|
|
3280
3733
|
}
|
|
3281
3734
|
namespace Metrics {
|
|
3282
3735
|
/**
|
|
3283
|
-
* Primary success metric.
|
|
3736
|
+
* Primary success metric. Filtered goals require an explicit stable `eventName`
|
|
3737
|
+
* anchor plus the complete `eventMatchers` array.
|
|
3284
3738
|
*/
|
|
3285
3739
|
interface Primary {
|
|
3740
|
+
/**
|
|
3741
|
+
* Complete OR-list of event matchers. Filtered goals require the explicit stable
|
|
3742
|
+
* `eventName` anchor and every matcher on replacement.
|
|
3743
|
+
*/
|
|
3744
|
+
eventMatchers?: Array<Primary.EventMatcher> | null;
|
|
3286
3745
|
/**
|
|
3287
3746
|
* Event name to use as the goal for this metric.
|
|
3288
3747
|
*/
|
|
@@ -3292,8 +3751,46 @@ export declare namespace ExperimentCreateParams {
|
|
|
3292
3751
|
* funnel definition.
|
|
3293
3752
|
*/
|
|
3294
3753
|
funnelId?: string | null;
|
|
3754
|
+
/**
|
|
3755
|
+
* Optional stable identifier for this goal. Use the returned identifier to select
|
|
3756
|
+
* this saved goal in results queries.
|
|
3757
|
+
*/
|
|
3758
|
+
goalId?: string | null;
|
|
3759
|
+
valueMode?: boolean | null;
|
|
3760
|
+
winsorize?: boolean | null;
|
|
3761
|
+
winsorizePercentile?: number | null;
|
|
3762
|
+
}
|
|
3763
|
+
namespace Primary {
|
|
3764
|
+
interface EventMatcher {
|
|
3765
|
+
/**
|
|
3766
|
+
* Event name required by this OR branch.
|
|
3767
|
+
*/
|
|
3768
|
+
eventName: string;
|
|
3769
|
+
/**
|
|
3770
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3771
|
+
*/
|
|
3772
|
+
filter?: EventMatcher.Filter;
|
|
3773
|
+
}
|
|
3774
|
+
namespace EventMatcher {
|
|
3775
|
+
/**
|
|
3776
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3777
|
+
*/
|
|
3778
|
+
interface Filter {
|
|
3779
|
+
/**
|
|
3780
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
3781
|
+
* supported properties and operators.
|
|
3782
|
+
*/
|
|
3783
|
+
filter: unknown;
|
|
3784
|
+
version: 1;
|
|
3785
|
+
}
|
|
3786
|
+
}
|
|
3295
3787
|
}
|
|
3296
3788
|
interface Secondary {
|
|
3789
|
+
/**
|
|
3790
|
+
* Complete OR-list of event matchers. Filtered goals require the explicit stable
|
|
3791
|
+
* `eventName` anchor and every matcher on replacement.
|
|
3792
|
+
*/
|
|
3793
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
3297
3794
|
/**
|
|
3298
3795
|
* Event name to use as the goal for this metric.
|
|
3299
3796
|
*/
|
|
@@ -3303,6 +3800,39 @@ export declare namespace ExperimentCreateParams {
|
|
|
3303
3800
|
* funnel definition.
|
|
3304
3801
|
*/
|
|
3305
3802
|
funnelId?: string | null;
|
|
3803
|
+
/**
|
|
3804
|
+
* Optional stable identifier for this goal. Use the returned identifier to select
|
|
3805
|
+
* this saved goal in results queries.
|
|
3806
|
+
*/
|
|
3807
|
+
goalId?: string | null;
|
|
3808
|
+
valueMode?: boolean | null;
|
|
3809
|
+
winsorize?: boolean | null;
|
|
3810
|
+
winsorizePercentile?: number | null;
|
|
3811
|
+
}
|
|
3812
|
+
namespace Secondary {
|
|
3813
|
+
interface EventMatcher {
|
|
3814
|
+
/**
|
|
3815
|
+
* Event name required by this OR branch.
|
|
3816
|
+
*/
|
|
3817
|
+
eventName: string;
|
|
3818
|
+
/**
|
|
3819
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3820
|
+
*/
|
|
3821
|
+
filter?: EventMatcher.Filter;
|
|
3822
|
+
}
|
|
3823
|
+
namespace EventMatcher {
|
|
3824
|
+
/**
|
|
3825
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3826
|
+
*/
|
|
3827
|
+
interface Filter {
|
|
3828
|
+
/**
|
|
3829
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
3830
|
+
* supported properties and operators.
|
|
3831
|
+
*/
|
|
3832
|
+
filter: unknown;
|
|
3833
|
+
version: 1;
|
|
3834
|
+
}
|
|
3835
|
+
}
|
|
3306
3836
|
}
|
|
3307
3837
|
}
|
|
3308
3838
|
/**
|
|
@@ -3388,9 +3918,9 @@ export interface ExperimentUpdateParams {
|
|
|
3388
3918
|
*/
|
|
3389
3919
|
key?: string | null;
|
|
3390
3920
|
/**
|
|
3391
|
-
* Updated goal
|
|
3392
|
-
* not merged.
|
|
3393
|
-
*
|
|
3921
|
+
* Updated goal metrics. Send the full nested object — replaces the previous value,
|
|
3922
|
+
* not merged. Preserve every filtered matcher and filter returned by GET or the
|
|
3923
|
+
* request returns `FILTERED_EXPERIMENT_METRIC_REQUIRES_FULL_REPLACEMENT`.
|
|
3394
3924
|
*/
|
|
3395
3925
|
metrics?: ExperimentUpdateParams.Metrics | null;
|
|
3396
3926
|
/**
|
|
@@ -3409,13 +3939,14 @@ export interface ExperimentUpdateParams {
|
|
|
3409
3939
|
}
|
|
3410
3940
|
export declare namespace ExperimentUpdateParams {
|
|
3411
3941
|
/**
|
|
3412
|
-
* Updated goal
|
|
3413
|
-
* not merged.
|
|
3414
|
-
*
|
|
3942
|
+
* Updated goal metrics. Send the full nested object — replaces the previous value,
|
|
3943
|
+
* not merged. Preserve every filtered matcher and filter returned by GET or the
|
|
3944
|
+
* request returns `FILTERED_EXPERIMENT_METRIC_REQUIRES_FULL_REPLACEMENT`.
|
|
3415
3945
|
*/
|
|
3416
3946
|
interface Metrics {
|
|
3417
3947
|
/**
|
|
3418
|
-
* Primary success metric.
|
|
3948
|
+
* Primary success metric. Filtered goals require an explicit stable `eventName`
|
|
3949
|
+
* anchor plus the complete `eventMatchers` array.
|
|
3419
3950
|
*/
|
|
3420
3951
|
primary?: Metrics.Primary | null;
|
|
3421
3952
|
/**
|
|
@@ -3425,9 +3956,15 @@ export declare namespace ExperimentUpdateParams {
|
|
|
3425
3956
|
}
|
|
3426
3957
|
namespace Metrics {
|
|
3427
3958
|
/**
|
|
3428
|
-
* Primary success metric.
|
|
3959
|
+
* Primary success metric. Filtered goals require an explicit stable `eventName`
|
|
3960
|
+
* anchor plus the complete `eventMatchers` array.
|
|
3429
3961
|
*/
|
|
3430
3962
|
interface Primary {
|
|
3963
|
+
/**
|
|
3964
|
+
* Complete OR-list of event matchers. Filtered goals require the explicit stable
|
|
3965
|
+
* `eventName` anchor and every matcher on replacement.
|
|
3966
|
+
*/
|
|
3967
|
+
eventMatchers?: Array<Primary.EventMatcher> | null;
|
|
3431
3968
|
/**
|
|
3432
3969
|
* Event name to use as the goal for this metric.
|
|
3433
3970
|
*/
|
|
@@ -3437,8 +3974,46 @@ export declare namespace ExperimentUpdateParams {
|
|
|
3437
3974
|
* funnel definition.
|
|
3438
3975
|
*/
|
|
3439
3976
|
funnelId?: string | null;
|
|
3977
|
+
/**
|
|
3978
|
+
* Optional stable identifier for this goal. Use the returned identifier to select
|
|
3979
|
+
* this saved goal in results queries.
|
|
3980
|
+
*/
|
|
3981
|
+
goalId?: string | null;
|
|
3982
|
+
valueMode?: boolean | null;
|
|
3983
|
+
winsorize?: boolean | null;
|
|
3984
|
+
winsorizePercentile?: number | null;
|
|
3985
|
+
}
|
|
3986
|
+
namespace Primary {
|
|
3987
|
+
interface EventMatcher {
|
|
3988
|
+
/**
|
|
3989
|
+
* Event name required by this OR branch.
|
|
3990
|
+
*/
|
|
3991
|
+
eventName: string;
|
|
3992
|
+
/**
|
|
3993
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3994
|
+
*/
|
|
3995
|
+
filter?: EventMatcher.Filter;
|
|
3996
|
+
}
|
|
3997
|
+
namespace EventMatcher {
|
|
3998
|
+
/**
|
|
3999
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
4000
|
+
*/
|
|
4001
|
+
interface Filter {
|
|
4002
|
+
/**
|
|
4003
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
4004
|
+
* supported properties and operators.
|
|
4005
|
+
*/
|
|
4006
|
+
filter: unknown;
|
|
4007
|
+
version: 1;
|
|
4008
|
+
}
|
|
4009
|
+
}
|
|
3440
4010
|
}
|
|
3441
4011
|
interface Secondary {
|
|
4012
|
+
/**
|
|
4013
|
+
* Complete OR-list of event matchers. Filtered goals require the explicit stable
|
|
4014
|
+
* `eventName` anchor and every matcher on replacement.
|
|
4015
|
+
*/
|
|
4016
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
3442
4017
|
/**
|
|
3443
4018
|
* Event name to use as the goal for this metric.
|
|
3444
4019
|
*/
|
|
@@ -3448,6 +4023,39 @@ export declare namespace ExperimentUpdateParams {
|
|
|
3448
4023
|
* funnel definition.
|
|
3449
4024
|
*/
|
|
3450
4025
|
funnelId?: string | null;
|
|
4026
|
+
/**
|
|
4027
|
+
* Optional stable identifier for this goal. Use the returned identifier to select
|
|
4028
|
+
* this saved goal in results queries.
|
|
4029
|
+
*/
|
|
4030
|
+
goalId?: string | null;
|
|
4031
|
+
valueMode?: boolean | null;
|
|
4032
|
+
winsorize?: boolean | null;
|
|
4033
|
+
winsorizePercentile?: number | null;
|
|
4034
|
+
}
|
|
4035
|
+
namespace Secondary {
|
|
4036
|
+
interface EventMatcher {
|
|
4037
|
+
/**
|
|
4038
|
+
* Event name required by this OR branch.
|
|
4039
|
+
*/
|
|
4040
|
+
eventName: string;
|
|
4041
|
+
/**
|
|
4042
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
4043
|
+
*/
|
|
4044
|
+
filter?: EventMatcher.Filter;
|
|
4045
|
+
}
|
|
4046
|
+
namespace EventMatcher {
|
|
4047
|
+
/**
|
|
4048
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
4049
|
+
*/
|
|
4050
|
+
interface Filter {
|
|
4051
|
+
/**
|
|
4052
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
4053
|
+
* supported properties and operators.
|
|
4054
|
+
*/
|
|
4055
|
+
filter: unknown;
|
|
4056
|
+
version: 1;
|
|
4057
|
+
}
|
|
4058
|
+
}
|
|
3451
4059
|
}
|
|
3452
4060
|
}
|
|
3453
4061
|
/**
|
|
@@ -3576,17 +4184,29 @@ export interface ExperimentResumeParams {
|
|
|
3576
4184
|
}
|
|
3577
4185
|
export interface ExperimentResultsParams {
|
|
3578
4186
|
/**
|
|
3579
|
-
*
|
|
3580
|
-
*
|
|
4187
|
+
* Legacy selector or override for the conversion event name. Use `goalId` to
|
|
4188
|
+
* select a specific saved goal when multiple goals share an event name. When both
|
|
4189
|
+
* are omitted, the experiment primary metric is used.
|
|
3581
4190
|
*/
|
|
3582
4191
|
eventName?: string;
|
|
4192
|
+
/**
|
|
4193
|
+
* Optional identifier of a saved goal to report. Use this to distinguish goals
|
|
4194
|
+
* that share an event name.
|
|
4195
|
+
*/
|
|
4196
|
+
goalId?: string;
|
|
3583
4197
|
}
|
|
3584
4198
|
export interface ExperimentAnalysisParams {
|
|
3585
4199
|
/**
|
|
3586
|
-
*
|
|
3587
|
-
*
|
|
4200
|
+
* Legacy selector or override for the conversion event name. Use `goalId` to
|
|
4201
|
+
* select a specific saved goal when multiple goals share an event name. When both
|
|
4202
|
+
* are omitted, the experiment primary metric is used.
|
|
3588
4203
|
*/
|
|
3589
4204
|
eventName?: string;
|
|
4205
|
+
/**
|
|
4206
|
+
* Optional identifier of a saved goal to report. Use this to distinguish goals
|
|
4207
|
+
* that share an event name.
|
|
4208
|
+
*/
|
|
4209
|
+
goalId?: string;
|
|
3590
4210
|
}
|
|
3591
4211
|
export interface ExperimentResultsTimeSeriesParams {
|
|
3592
4212
|
/**
|
|
@@ -3597,10 +4217,16 @@ export interface ExperimentResultsTimeSeriesParams {
|
|
|
3597
4217
|
*/
|
|
3598
4218
|
endDate?: string;
|
|
3599
4219
|
/**
|
|
3600
|
-
*
|
|
3601
|
-
*
|
|
4220
|
+
* Legacy selector or override for the conversion event name. Use `goalId` to
|
|
4221
|
+
* select a specific saved goal when multiple goals share an event name. When both
|
|
4222
|
+
* are omitted, the experiment primary metric is used.
|
|
3602
4223
|
*/
|
|
3603
4224
|
eventName?: string;
|
|
4225
|
+
/**
|
|
4226
|
+
* Optional identifier of a saved goal to report. Use this to distinguish goals
|
|
4227
|
+
* that share an event name.
|
|
4228
|
+
*/
|
|
4229
|
+
goalId?: string;
|
|
3604
4230
|
/**
|
|
3605
4231
|
* Inclusive lower bound of the response window, as a UTC calendar day in
|
|
3606
4232
|
* `YYYY-MM-DD` format. Defaults to the experiment start date when omitted. Values
|