@mozilla/nimbus-schemas 2024.10.1 → 2024.10.2
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 +16 -0
- package/package.json +1 -1
- package/schemas/NimbusExperiment.schema.json +64 -1
package/index.d.ts
CHANGED
|
@@ -192,6 +192,18 @@ export interface NimbusExperiment {
|
|
|
192
192
|
* See-also: https://mozilla-hub.atlassian.net/browse/SDK-405
|
|
193
193
|
*/
|
|
194
194
|
isRollout?: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* When this property is set to true, treat this experiment as aFirefox Labs experiment
|
|
197
|
+
*/
|
|
198
|
+
isFirefoxLabsOptIn?: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* An optional string containing the Fluent ID for the title of the opt-in
|
|
201
|
+
*/
|
|
202
|
+
firefoxLabsTitle?: string;
|
|
203
|
+
/**
|
|
204
|
+
* An optional string containing the Fluent ID for the description of the opt-in
|
|
205
|
+
*/
|
|
206
|
+
firefoxLabsDescription?: string;
|
|
195
207
|
bucketConfig: ExperimentBucketConfig;
|
|
196
208
|
/**
|
|
197
209
|
* A list of outcomes relevant to the experiment analysis.
|
|
@@ -358,6 +370,10 @@ export interface ExperimentMultiFeatureDesktopBranch {
|
|
|
358
370
|
*/
|
|
359
371
|
features: ExperimentFeatureConfig[];
|
|
360
372
|
feature: DesktopTombstoneFeatureConfig;
|
|
373
|
+
/**
|
|
374
|
+
* An optional string containing the title of the branch
|
|
375
|
+
*/
|
|
376
|
+
firefoxLabsTitle: string;
|
|
361
377
|
}
|
|
362
378
|
export interface DesktopTombstoneFeatureConfig {
|
|
363
379
|
featureId: "unused-feature-id-for-legacy-support";
|
package/package.json
CHANGED
|
@@ -44,6 +44,18 @@
|
|
|
44
44
|
"description": "When this property is set to true, treat this experiment as a rollout. Rollouts are currently handled as single-branch experiments separated from the bucketing namespace for normal experiments. See-also: https://mozilla-hub.atlassian.net/browse/SDK-405",
|
|
45
45
|
"type": "boolean"
|
|
46
46
|
},
|
|
47
|
+
"isFirefoxLabsOptIn": {
|
|
48
|
+
"description": "When this property is set to true, treat this experiment as aFirefox Labs experiment",
|
|
49
|
+
"type": "boolean"
|
|
50
|
+
},
|
|
51
|
+
"firefoxLabsTitle": {
|
|
52
|
+
"description": "An optional string containing the Fluent ID for the title of the opt-in",
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"firefoxLabsDescription": {
|
|
56
|
+
"description": "An optional string containing the Fluent ID for the description of the opt-in",
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
47
59
|
"bucketConfig": {
|
|
48
60
|
"$ref": "#/$defs/ExperimentBucketConfig",
|
|
49
61
|
"description": "Bucketing configuration."
|
|
@@ -216,6 +228,52 @@
|
|
|
216
228
|
"proposedEnrollment",
|
|
217
229
|
"referenceBranch"
|
|
218
230
|
],
|
|
231
|
+
"dependentSchemas": {
|
|
232
|
+
"isFirefoxLabsOptIn": {
|
|
233
|
+
"if": {
|
|
234
|
+
"properties": {
|
|
235
|
+
"isFirefoxLabsOptIn": {
|
|
236
|
+
"const": true
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"then": {
|
|
241
|
+
"if": {
|
|
242
|
+
"properties": {
|
|
243
|
+
"isRollout": {
|
|
244
|
+
"const": false
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"required": [
|
|
248
|
+
"isRollout"
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
"properties": {
|
|
252
|
+
"firefoxLabsTitle": {
|
|
253
|
+
"type": "string"
|
|
254
|
+
},
|
|
255
|
+
"firefoxLabsDescription": {
|
|
256
|
+
"type": "string"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"required": [
|
|
260
|
+
"firefoxLabsTitle",
|
|
261
|
+
"firefoxLabsDescription"
|
|
262
|
+
],
|
|
263
|
+
"then": {
|
|
264
|
+
"properties": {
|
|
265
|
+
"branches": {
|
|
266
|
+
"items": {
|
|
267
|
+
"required": [
|
|
268
|
+
"firefoxLabsTitle"
|
|
269
|
+
]
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
},
|
|
219
277
|
"$defs": {
|
|
220
278
|
"DesktopTombstoneFeatureConfig": {
|
|
221
279
|
"properties": {
|
|
@@ -307,13 +365,18 @@
|
|
|
307
365
|
"feature": {
|
|
308
366
|
"$ref": "#/$defs/DesktopTombstoneFeatureConfig",
|
|
309
367
|
"description": "The feature key must be provided with values to prevent crashes if the is encountered by Desktop clients earlier than version 95."
|
|
368
|
+
},
|
|
369
|
+
"firefoxLabsTitle": {
|
|
370
|
+
"description": "An optional string containing the title of the branch",
|
|
371
|
+
"type": "string"
|
|
310
372
|
}
|
|
311
373
|
},
|
|
312
374
|
"required": [
|
|
313
375
|
"slug",
|
|
314
376
|
"ratio",
|
|
315
377
|
"features",
|
|
316
|
-
"feature"
|
|
378
|
+
"feature",
|
|
379
|
+
"firefoxLabsTitle"
|
|
317
380
|
],
|
|
318
381
|
"type": "object"
|
|
319
382
|
},
|