@mozilla/nimbus-schemas 3000.0.0 → 3001.0.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/index.d.ts +166 -78
- package/package.json +1 -1
- package/schemas/DesktopAllVersionsNimbusExperiment.schema.json +33 -33
- package/schemas/DesktopNimbusExperiment.schema.json +33 -33
- package/schemas/ExperimentBucketConfig.schema.json +1 -2
- package/schemas/NimbusExperimentV7.schema.json +52 -27
- package/schemas/SdkNimbusExperiment.schema.json +41 -20
package/index.d.ts
CHANGED
|
@@ -49,80 +49,107 @@ export interface DesktopAllVersionsNimbusExperiment {
|
|
|
49
49
|
*/
|
|
50
50
|
slug: string;
|
|
51
51
|
/**
|
|
52
|
-
* Unique identifier for the
|
|
52
|
+
* Unique identifier for the experiiment.
|
|
53
|
+
*
|
|
54
|
+
* This is a duplicate of slug, but is required field for all Remote Settings records.
|
|
53
55
|
*/
|
|
54
56
|
id: string;
|
|
55
57
|
/**
|
|
56
|
-
* A slug identifying the targeted product of this experiment.
|
|
58
|
+
* A slug identifying the targeted product of this experiment.
|
|
59
|
+
*
|
|
60
|
+
* It should be a lowercased_with_underscores name that is short and unambiguous and it should match the app_name found in https://probeinfo.telemetry.mozilla.org/glean/repositories. Examples are "fenix" and "firefox_desktop".
|
|
57
61
|
*/
|
|
58
62
|
appName: string;
|
|
59
63
|
/**
|
|
60
|
-
* The platform identifier for the targeted app.
|
|
64
|
+
* The platform identifier for the targeted app.
|
|
65
|
+
*
|
|
66
|
+
* This should match app's identifier exactly as it appears in the relevant app store listing (for relevant platforms) or the app's Glean initialization (for other platforms).
|
|
67
|
+
*
|
|
68
|
+
* Examples are "org.mozilla.firefox_beta" and "firefox-desktop".
|
|
61
69
|
*/
|
|
62
70
|
appId: string;
|
|
63
71
|
/**
|
|
64
|
-
* A specific channel of an application such as
|
|
72
|
+
* A specific channel of an application such as "nightly", "beta", or "release".
|
|
65
73
|
*/
|
|
66
74
|
channel: string;
|
|
67
75
|
/**
|
|
68
|
-
* Public name of the experiment displayed on
|
|
76
|
+
* Public name of the experiment that will be displayed on "about:studies".
|
|
69
77
|
*/
|
|
70
78
|
userFacingName: string;
|
|
71
79
|
/**
|
|
72
|
-
* Short public description of the experiment
|
|
80
|
+
* Short public description of the experiment that will be displayed on "about:studies".
|
|
73
81
|
*/
|
|
74
82
|
userFacingDescription: string;
|
|
75
83
|
/**
|
|
76
|
-
* When this property is set to true, the SDK should not enroll
|
|
84
|
+
* When this property is set to true, the SDK should not enroll new users into the experiment that have not already been enrolled.
|
|
77
85
|
*/
|
|
78
86
|
isEnrollmentPaused: boolean;
|
|
79
87
|
/**
|
|
80
|
-
* When this property is set to true, treat this experiment
|
|
88
|
+
* When this property is set to true, treat this experiment as a rollout.
|
|
89
|
+
*
|
|
90
|
+
* Rollouts are currently handled as single-branch experiments separated from the bucketing namespace for normal experiments.
|
|
91
|
+
*
|
|
92
|
+
* See-also: https://mozilla-hub.atlassian.net/browse/SDK-405
|
|
81
93
|
*/
|
|
82
94
|
isRollout?: boolean;
|
|
83
95
|
bucketConfig: ExperimentBucketConfig;
|
|
84
96
|
/**
|
|
85
|
-
*
|
|
97
|
+
* A list of outcomes relevant to the experiment analysis.
|
|
86
98
|
*/
|
|
87
99
|
outcomes?: ExperimentOutcome[];
|
|
88
100
|
/**
|
|
89
101
|
* A list of featureIds the experiment contains configurations for.
|
|
90
102
|
*/
|
|
91
|
-
featureIds
|
|
103
|
+
featureIds: string[];
|
|
92
104
|
/**
|
|
93
105
|
* A JEXL targeting expression used to filter out experiments.
|
|
94
106
|
*/
|
|
95
107
|
targeting?: string | null;
|
|
96
108
|
/**
|
|
97
|
-
* Actual publish date of the experiment.
|
|
109
|
+
* Actual publish date of the experiment.
|
|
110
|
+
*
|
|
111
|
+
* Note that this value is expected to be null in Remote Settings.
|
|
98
112
|
*/
|
|
99
113
|
startDate: string | null;
|
|
100
114
|
/**
|
|
101
|
-
* Actual enrollment end date of the experiment.
|
|
115
|
+
* Actual enrollment end date of the experiment.
|
|
116
|
+
*
|
|
117
|
+
* Note that this value is expected to be null in Remote Settings.
|
|
102
118
|
*/
|
|
103
119
|
enrollmentEndDate?: string | null;
|
|
104
120
|
/**
|
|
105
|
-
* Actual end date of this experiment.
|
|
121
|
+
* Actual end date of this experiment.
|
|
122
|
+
*
|
|
123
|
+
* Note that this field is expected to be null in Remote Settings.
|
|
106
124
|
*/
|
|
107
125
|
endDate: string | null;
|
|
108
126
|
/**
|
|
109
|
-
* Duration of the experiment from the start date in days.
|
|
127
|
+
* Duration of the experiment from the start date in days.
|
|
128
|
+
*
|
|
129
|
+
* Note that this property is only used during the analysis phase (i.e., not by the SDK).
|
|
110
130
|
*/
|
|
111
131
|
proposedDuration?: number;
|
|
112
132
|
/**
|
|
113
|
-
* This represents the number of days that we expect to
|
|
133
|
+
* This represents the number of days that we expect to enroll new users.
|
|
134
|
+
*
|
|
135
|
+
* Note that this property is only used during the analysis phase (i.e., not by the SDK).
|
|
114
136
|
*/
|
|
115
137
|
proposedEnrollment: number;
|
|
116
138
|
/**
|
|
117
|
-
* The slug of the reference branch
|
|
139
|
+
* The slug of the reference branch (i.e., the branch we consider "control").
|
|
118
140
|
*/
|
|
119
141
|
referenceBranch: string | null;
|
|
120
142
|
/**
|
|
121
|
-
* The list of locale codes (e.g., "en-US" or "fr") that this
|
|
143
|
+
* The list of locale codes (e.g., "en-US" or "fr") that this experiment is targeting.
|
|
144
|
+
*
|
|
145
|
+
* If null, all locales are targeted.
|
|
122
146
|
*/
|
|
123
147
|
locales?: string[] | null;
|
|
148
|
+
localizations?: ExperimentLocalizations | null;
|
|
124
149
|
/**
|
|
125
|
-
* The date that this experiment was first published to
|
|
150
|
+
* The date that this experiment was first published to Remote Settings.
|
|
151
|
+
*
|
|
152
|
+
* If null, it has not yet been published.
|
|
126
153
|
*/
|
|
127
154
|
publishedDate?: string | null;
|
|
128
155
|
/**
|
|
@@ -130,7 +157,7 @@ export interface DesktopAllVersionsNimbusExperiment {
|
|
|
130
157
|
*/
|
|
131
158
|
branches: DesktopAllVersionsExperimentBranch[];
|
|
132
159
|
/**
|
|
133
|
-
* When this property is set to true, treat this experiment as
|
|
160
|
+
* When this property is set to true, treat this experiment as aFirefox Labs experiment
|
|
134
161
|
*/
|
|
135
162
|
isFirefoxLabsOptIn?: boolean;
|
|
136
163
|
/**
|
|
@@ -146,7 +173,7 @@ export interface DesktopAllVersionsNimbusExperiment {
|
|
|
146
173
|
*/
|
|
147
174
|
firefoxLabsDescription?: string | null;
|
|
148
175
|
/**
|
|
149
|
-
* Links that will be used with the
|
|
176
|
+
* Links that will be used with the firefoxLabsDescription Fluent ID. May be null for Firefox Labs Opt-In recipes that do not use links.
|
|
150
177
|
*/
|
|
151
178
|
firefoxLabsDescriptionLinks?: {
|
|
152
179
|
[k: string]: string;
|
|
@@ -157,13 +184,11 @@ export interface DesktopAllVersionsNimbusExperiment {
|
|
|
157
184
|
featureValidationOptOut?: boolean;
|
|
158
185
|
/**
|
|
159
186
|
* Does the experiment require a restart to take effect?
|
|
187
|
+
*
|
|
188
|
+
* Only used by Firefox Labs Opt-Ins.
|
|
160
189
|
*/
|
|
161
190
|
requiresRestart?: boolean;
|
|
162
|
-
localizations?: ExperimentLocalizations | null;
|
|
163
191
|
}
|
|
164
|
-
/**
|
|
165
|
-
* Common Bucketing Configuration used across all versions.
|
|
166
|
-
*/
|
|
167
192
|
export interface ExperimentBucketConfig {
|
|
168
193
|
randomizationUnit: RandomizationUnit;
|
|
169
194
|
/**
|
|
@@ -179,7 +204,9 @@ export interface ExperimentBucketConfig {
|
|
|
179
204
|
*/
|
|
180
205
|
count: number;
|
|
181
206
|
/**
|
|
182
|
-
* The total number of buckets.
|
|
207
|
+
* The total number of buckets.
|
|
208
|
+
*
|
|
209
|
+
* You can assume this will always be 10000.
|
|
183
210
|
*/
|
|
184
211
|
total: number;
|
|
185
212
|
}
|
|
@@ -193,6 +220,17 @@ export interface ExperimentOutcome {
|
|
|
193
220
|
*/
|
|
194
221
|
priority: string;
|
|
195
222
|
}
|
|
223
|
+
/**
|
|
224
|
+
* Per-locale localization substitutions.
|
|
225
|
+
*
|
|
226
|
+
* The top level key is the locale (e.g., "en-US" or "fr"). Each entry is a mapping of
|
|
227
|
+
* string IDs to their localized equivalents.
|
|
228
|
+
*/
|
|
229
|
+
export interface ExperimentLocalizations {
|
|
230
|
+
[k: string]: {
|
|
231
|
+
[k: string]: string;
|
|
232
|
+
};
|
|
233
|
+
}
|
|
196
234
|
/**
|
|
197
235
|
* The branch definition supported on all Firefox Desktop versions.
|
|
198
236
|
*
|
|
@@ -206,7 +244,8 @@ export interface DesktopAllVersionsExperimentBranch {
|
|
|
206
244
|
slug: string;
|
|
207
245
|
/**
|
|
208
246
|
* Relative ratio of population for the branch.
|
|
209
|
-
*
|
|
247
|
+
*
|
|
248
|
+
* e.g., if branch A=1 and branch B=3, then branch A would get 25% of the population.
|
|
210
249
|
*/
|
|
211
250
|
ratio: number;
|
|
212
251
|
/**
|
|
@@ -240,17 +279,6 @@ export interface DesktopPre95FeatureConfig {
|
|
|
240
279
|
};
|
|
241
280
|
enabled: false;
|
|
242
281
|
}
|
|
243
|
-
/**
|
|
244
|
-
* Per-locale localization substitutions.
|
|
245
|
-
*
|
|
246
|
-
* The top level key is the locale (e.g., "en-US" or "fr"). Each entry is a mapping of
|
|
247
|
-
* string IDs to their localized equivalents.
|
|
248
|
-
*/
|
|
249
|
-
export interface ExperimentLocalizations {
|
|
250
|
-
[k: string]: {
|
|
251
|
-
[k: string]: string;
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
282
|
/**
|
|
255
283
|
* A Nimbus experiment for Firefox Desktop.
|
|
256
284
|
*
|
|
@@ -267,80 +295,107 @@ export interface DesktopNimbusExperiment {
|
|
|
267
295
|
*/
|
|
268
296
|
slug: string;
|
|
269
297
|
/**
|
|
270
|
-
* Unique identifier for the
|
|
298
|
+
* Unique identifier for the experiiment.
|
|
299
|
+
*
|
|
300
|
+
* This is a duplicate of slug, but is required field for all Remote Settings records.
|
|
271
301
|
*/
|
|
272
302
|
id: string;
|
|
273
303
|
/**
|
|
274
|
-
* A slug identifying the targeted product of this experiment.
|
|
304
|
+
* A slug identifying the targeted product of this experiment.
|
|
305
|
+
*
|
|
306
|
+
* It should be a lowercased_with_underscores name that is short and unambiguous and it should match the app_name found in https://probeinfo.telemetry.mozilla.org/glean/repositories. Examples are "fenix" and "firefox_desktop".
|
|
275
307
|
*/
|
|
276
308
|
appName: string;
|
|
277
309
|
/**
|
|
278
|
-
* The platform identifier for the targeted app.
|
|
310
|
+
* The platform identifier for the targeted app.
|
|
311
|
+
*
|
|
312
|
+
* This should match app's identifier exactly as it appears in the relevant app store listing (for relevant platforms) or the app's Glean initialization (for other platforms).
|
|
313
|
+
*
|
|
314
|
+
* Examples are "org.mozilla.firefox_beta" and "firefox-desktop".
|
|
279
315
|
*/
|
|
280
316
|
appId: string;
|
|
281
317
|
/**
|
|
282
|
-
* A specific channel of an application such as
|
|
318
|
+
* A specific channel of an application such as "nightly", "beta", or "release".
|
|
283
319
|
*/
|
|
284
320
|
channel: string;
|
|
285
321
|
/**
|
|
286
|
-
* Public name of the experiment displayed on
|
|
322
|
+
* Public name of the experiment that will be displayed on "about:studies".
|
|
287
323
|
*/
|
|
288
324
|
userFacingName: string;
|
|
289
325
|
/**
|
|
290
|
-
* Short public description of the experiment
|
|
326
|
+
* Short public description of the experiment that will be displayed on "about:studies".
|
|
291
327
|
*/
|
|
292
328
|
userFacingDescription: string;
|
|
293
329
|
/**
|
|
294
|
-
* When this property is set to true, the SDK should not enroll
|
|
330
|
+
* When this property is set to true, the SDK should not enroll new users into the experiment that have not already been enrolled.
|
|
295
331
|
*/
|
|
296
332
|
isEnrollmentPaused: boolean;
|
|
297
333
|
/**
|
|
298
|
-
* When this property is set to true, treat this experiment
|
|
334
|
+
* When this property is set to true, treat this experiment as a rollout.
|
|
335
|
+
*
|
|
336
|
+
* Rollouts are currently handled as single-branch experiments separated from the bucketing namespace for normal experiments.
|
|
337
|
+
*
|
|
338
|
+
* See-also: https://mozilla-hub.atlassian.net/browse/SDK-405
|
|
299
339
|
*/
|
|
300
340
|
isRollout?: boolean;
|
|
301
341
|
bucketConfig: ExperimentBucketConfig;
|
|
302
342
|
/**
|
|
303
|
-
*
|
|
343
|
+
* A list of outcomes relevant to the experiment analysis.
|
|
304
344
|
*/
|
|
305
345
|
outcomes?: ExperimentOutcome[];
|
|
306
346
|
/**
|
|
307
347
|
* A list of featureIds the experiment contains configurations for.
|
|
308
348
|
*/
|
|
309
|
-
featureIds
|
|
349
|
+
featureIds: string[];
|
|
310
350
|
/**
|
|
311
351
|
* A JEXL targeting expression used to filter out experiments.
|
|
312
352
|
*/
|
|
313
353
|
targeting?: string | null;
|
|
314
354
|
/**
|
|
315
|
-
* Actual publish date of the experiment.
|
|
355
|
+
* Actual publish date of the experiment.
|
|
356
|
+
*
|
|
357
|
+
* Note that this value is expected to be null in Remote Settings.
|
|
316
358
|
*/
|
|
317
359
|
startDate: string | null;
|
|
318
360
|
/**
|
|
319
|
-
* Actual enrollment end date of the experiment.
|
|
361
|
+
* Actual enrollment end date of the experiment.
|
|
362
|
+
*
|
|
363
|
+
* Note that this value is expected to be null in Remote Settings.
|
|
320
364
|
*/
|
|
321
365
|
enrollmentEndDate?: string | null;
|
|
322
366
|
/**
|
|
323
|
-
* Actual end date of this experiment.
|
|
367
|
+
* Actual end date of this experiment.
|
|
368
|
+
*
|
|
369
|
+
* Note that this field is expected to be null in Remote Settings.
|
|
324
370
|
*/
|
|
325
371
|
endDate: string | null;
|
|
326
372
|
/**
|
|
327
|
-
* Duration of the experiment from the start date in days.
|
|
373
|
+
* Duration of the experiment from the start date in days.
|
|
374
|
+
*
|
|
375
|
+
* Note that this property is only used during the analysis phase (i.e., not by the SDK).
|
|
328
376
|
*/
|
|
329
377
|
proposedDuration?: number;
|
|
330
378
|
/**
|
|
331
|
-
* This represents the number of days that we expect to
|
|
379
|
+
* This represents the number of days that we expect to enroll new users.
|
|
380
|
+
*
|
|
381
|
+
* Note that this property is only used during the analysis phase (i.e., not by the SDK).
|
|
332
382
|
*/
|
|
333
383
|
proposedEnrollment: number;
|
|
334
384
|
/**
|
|
335
|
-
* The slug of the reference branch
|
|
385
|
+
* The slug of the reference branch (i.e., the branch we consider "control").
|
|
336
386
|
*/
|
|
337
387
|
referenceBranch: string | null;
|
|
338
388
|
/**
|
|
339
|
-
* The list of locale codes (e.g., "en-US" or "fr") that this
|
|
389
|
+
* The list of locale codes (e.g., "en-US" or "fr") that this experiment is targeting.
|
|
390
|
+
*
|
|
391
|
+
* If null, all locales are targeted.
|
|
340
392
|
*/
|
|
341
393
|
locales?: string[] | null;
|
|
394
|
+
localizations?: ExperimentLocalizations | null;
|
|
342
395
|
/**
|
|
343
|
-
* The date that this experiment was first published to
|
|
396
|
+
* The date that this experiment was first published to Remote Settings.
|
|
397
|
+
*
|
|
398
|
+
* If null, it has not yet been published.
|
|
344
399
|
*/
|
|
345
400
|
publishedDate?: string | null;
|
|
346
401
|
/**
|
|
@@ -348,7 +403,7 @@ export interface DesktopNimbusExperiment {
|
|
|
348
403
|
*/
|
|
349
404
|
branches: DesktopExperimentBranch[];
|
|
350
405
|
/**
|
|
351
|
-
* When this property is set to true, treat this experiment as
|
|
406
|
+
* When this property is set to true, treat this experiment as aFirefox Labs experiment
|
|
352
407
|
*/
|
|
353
408
|
isFirefoxLabsOptIn?: boolean;
|
|
354
409
|
/**
|
|
@@ -364,7 +419,7 @@ export interface DesktopNimbusExperiment {
|
|
|
364
419
|
*/
|
|
365
420
|
firefoxLabsDescription?: string | null;
|
|
366
421
|
/**
|
|
367
|
-
* Links that will be used with the
|
|
422
|
+
* Links that will be used with the firefoxLabsDescription Fluent ID. May be null for Firefox Labs Opt-In recipes that do not use links.
|
|
368
423
|
*/
|
|
369
424
|
firefoxLabsDescriptionLinks?: {
|
|
370
425
|
[k: string]: string;
|
|
@@ -375,9 +430,10 @@ export interface DesktopNimbusExperiment {
|
|
|
375
430
|
featureValidationOptOut?: boolean;
|
|
376
431
|
/**
|
|
377
432
|
* Does the experiment require a restart to take effect?
|
|
433
|
+
*
|
|
434
|
+
* Only used by Firefox Labs Opt-Ins.
|
|
378
435
|
*/
|
|
379
436
|
requiresRestart?: boolean;
|
|
380
|
-
localizations?: ExperimentLocalizations | null;
|
|
381
437
|
}
|
|
382
438
|
/**
|
|
383
439
|
* The branch definition supported on Firefox Desktop 95+.
|
|
@@ -389,7 +445,8 @@ export interface DesktopExperimentBranch {
|
|
|
389
445
|
slug: string;
|
|
390
446
|
/**
|
|
391
447
|
* Relative ratio of population for the branch.
|
|
392
|
-
*
|
|
448
|
+
*
|
|
449
|
+
* e.g., if branch A=1 and branch B=3, then branch A would get 25% of the population.
|
|
393
450
|
*/
|
|
394
451
|
ratio: number;
|
|
395
452
|
/**
|
|
@@ -414,80 +471,110 @@ export interface SdkNimbusExperiment {
|
|
|
414
471
|
*/
|
|
415
472
|
slug: string;
|
|
416
473
|
/**
|
|
417
|
-
* Unique identifier for the
|
|
474
|
+
* Unique identifier for the experiiment.
|
|
475
|
+
*
|
|
476
|
+
* This is a duplicate of slug, but is required field for all Remote Settings records.
|
|
418
477
|
*/
|
|
419
478
|
id: string;
|
|
420
479
|
/**
|
|
421
|
-
* A slug identifying the targeted product of this experiment.
|
|
480
|
+
* A slug identifying the targeted product of this experiment.
|
|
481
|
+
*
|
|
482
|
+
* It should be a lowercased_with_underscores name that is short and unambiguous and it should match the app_name found in https://probeinfo.telemetry.mozilla.org/glean/repositories. Examples are "fenix" and "firefox_desktop".
|
|
422
483
|
*/
|
|
423
484
|
appName: string;
|
|
424
485
|
/**
|
|
425
|
-
* The platform identifier for the targeted app.
|
|
486
|
+
* The platform identifier for the targeted app.
|
|
487
|
+
*
|
|
488
|
+
* This should match app's identifier exactly as it appears in the relevant app store listing (for relevant platforms) or the app's Glean initialization (for other platforms).
|
|
489
|
+
*
|
|
490
|
+
* Examples are "org.mozilla.firefox_beta" and "firefox-desktop".
|
|
426
491
|
*/
|
|
427
492
|
appId: string;
|
|
428
493
|
/**
|
|
429
|
-
* A specific channel of an application such as
|
|
494
|
+
* A specific channel of an application such as "nightly", "beta", or "release".
|
|
430
495
|
*/
|
|
431
496
|
channel: string;
|
|
432
497
|
/**
|
|
433
|
-
* Public name of the experiment displayed on
|
|
498
|
+
* Public name of the experiment that will be displayed on "about:studies".
|
|
434
499
|
*/
|
|
435
500
|
userFacingName: string;
|
|
436
501
|
/**
|
|
437
|
-
* Short public description of the experiment
|
|
502
|
+
* Short public description of the experiment that will be displayed on "about:studies".
|
|
438
503
|
*/
|
|
439
504
|
userFacingDescription: string;
|
|
440
505
|
/**
|
|
441
|
-
* When this property is set to true, the SDK should not enroll
|
|
506
|
+
* When this property is set to true, the SDK should not enroll new users into the experiment that have not already been enrolled.
|
|
442
507
|
*/
|
|
443
508
|
isEnrollmentPaused: boolean;
|
|
444
509
|
/**
|
|
445
|
-
* When this property is set to true, treat this experiment
|
|
510
|
+
* When this property is set to true, treat this experiment as a rollout.
|
|
511
|
+
*
|
|
512
|
+
* Rollouts are currently handled as single-branch experiments separated from the bucketing namespace for normal experiments.
|
|
513
|
+
*
|
|
514
|
+
* See-also: https://mozilla-hub.atlassian.net/browse/SDK-405
|
|
446
515
|
*/
|
|
447
516
|
isRollout?: boolean;
|
|
448
517
|
bucketConfig: ExperimentBucketConfig;
|
|
449
518
|
/**
|
|
450
|
-
*
|
|
519
|
+
* A list of outcomes relevant to the experiment analysis.
|
|
451
520
|
*/
|
|
452
521
|
outcomes?: ExperimentOutcome[];
|
|
453
522
|
/**
|
|
454
523
|
* A list of featureIds the experiment contains configurations for.
|
|
455
524
|
*/
|
|
456
|
-
featureIds
|
|
525
|
+
featureIds: string[];
|
|
457
526
|
/**
|
|
458
527
|
* A JEXL targeting expression used to filter out experiments.
|
|
459
528
|
*/
|
|
460
529
|
targeting?: string | null;
|
|
461
530
|
/**
|
|
462
|
-
* Actual publish date of the experiment.
|
|
531
|
+
* Actual publish date of the experiment.
|
|
532
|
+
*
|
|
533
|
+
* Note that this value is expected to be null in Remote Settings.
|
|
463
534
|
*/
|
|
464
535
|
startDate: string | null;
|
|
465
536
|
/**
|
|
466
|
-
* Actual enrollment end date of the experiment.
|
|
537
|
+
* Actual enrollment end date of the experiment.
|
|
538
|
+
*
|
|
539
|
+
* Note that this value is expected to be null in Remote Settings.
|
|
467
540
|
*/
|
|
468
541
|
enrollmentEndDate?: string | null;
|
|
469
542
|
/**
|
|
470
|
-
* Actual end date of this experiment.
|
|
543
|
+
* Actual end date of this experiment.
|
|
544
|
+
*
|
|
545
|
+
* Note that this field is expected to be null in Remote Settings.
|
|
471
546
|
*/
|
|
472
547
|
endDate: string | null;
|
|
473
548
|
/**
|
|
474
|
-
* Duration of the experiment from the start date in days.
|
|
549
|
+
* Duration of the experiment from the start date in days.
|
|
550
|
+
*
|
|
551
|
+
* Note that this property is only used during the analysis phase (i.e., not by the SDK).
|
|
475
552
|
*/
|
|
476
553
|
proposedDuration?: number;
|
|
477
554
|
/**
|
|
478
|
-
* This represents the number of days that we expect to
|
|
555
|
+
* This represents the number of days that we expect to enroll new users.
|
|
556
|
+
*
|
|
557
|
+
* Note that this property is only used during the analysis phase (i.e., not by the SDK).
|
|
479
558
|
*/
|
|
480
559
|
proposedEnrollment: number;
|
|
481
560
|
/**
|
|
482
|
-
* The slug of the reference branch
|
|
561
|
+
* The slug of the reference branch (i.e., the branch we consider "control").
|
|
483
562
|
*/
|
|
484
563
|
referenceBranch: string | null;
|
|
485
564
|
/**
|
|
486
|
-
* The list of locale codes (e.g., "en-US" or "fr") that this
|
|
565
|
+
* The list of locale codes (e.g., "en-US" or "fr") that this experiment is targeting.
|
|
566
|
+
*
|
|
567
|
+
* If null, all locales are targeted.
|
|
487
568
|
*/
|
|
488
569
|
locales?: string[] | null;
|
|
489
570
|
/**
|
|
490
|
-
*
|
|
571
|
+
* Per-locale localization substitutions.
|
|
572
|
+
*/
|
|
573
|
+
localizations?: ExperimentLocalizations | null;
|
|
574
|
+
/**
|
|
575
|
+
* The date that this experiment was first published to Remote Settings.
|
|
576
|
+
*
|
|
577
|
+
* If null, it has not yet been published.
|
|
491
578
|
*/
|
|
492
579
|
publishedDate?: string | null;
|
|
493
580
|
/**
|
|
@@ -507,7 +594,8 @@ export interface SdkExperimentBranch {
|
|
|
507
594
|
slug: string;
|
|
508
595
|
/**
|
|
509
596
|
* Relative ratio of population for the branch.
|
|
510
|
-
*
|
|
597
|
+
*
|
|
598
|
+
* e.g., if branch A=1 and branch B=3, then branch A would get 25% of the population.
|
|
511
599
|
*/
|
|
512
600
|
ratio: number;
|
|
513
601
|
/**
|