@featurevisor/core 2.18.0 → 2.20.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 +22 -0
- package/coverage/clover.xml +1581 -1119
- package/coverage/coverage-final.json +29 -22
- package/coverage/lcov-report/builder/allocator.ts.html +26 -26
- package/coverage/lcov-report/builder/buildDatafile.ts.html +2017 -0
- package/coverage/lcov-report/builder/buildScopedConditions.ts.html +35 -35
- package/coverage/lcov-report/builder/buildScopedDatafile.ts.html +213 -45
- package/coverage/lcov-report/builder/buildScopedSegments.ts.html +28 -28
- package/coverage/lcov-report/builder/convertToV1.ts.html +583 -0
- package/coverage/lcov-report/builder/getFeatureRanges.ts.html +268 -0
- package/coverage/lcov-report/builder/hashes.ts.html +412 -0
- package/coverage/lcov-report/builder/index.html +90 -30
- package/coverage/lcov-report/builder/mutateVariables.ts.html +66 -45
- package/coverage/lcov-report/builder/mutator.ts.html +95 -95
- package/coverage/lcov-report/builder/revision.ts.html +1 -1
- package/coverage/lcov-report/builder/traffic.ts.html +60 -57
- package/coverage/lcov-report/config/index.html +1 -1
- package/coverage/lcov-report/config/index.ts.html +2 -2
- package/coverage/lcov-report/config/projectConfig.ts.html +28 -28
- package/coverage/lcov-report/datasource/adapter.ts.html +2 -2
- package/coverage/lcov-report/datasource/datasource.ts.html +4 -4
- package/coverage/lcov-report/datasource/filesystemAdapter.ts.html +34 -34
- package/coverage/lcov-report/datasource/index.html +1 -1
- package/coverage/lcov-report/datasource/index.ts.html +1 -1
- package/coverage/lcov-report/index.html +39 -39
- package/coverage/lcov-report/linter/attributeSchema.ts.html +1 -1
- package/coverage/lcov-report/linter/checkCircularDependency.ts.html +1 -1
- package/coverage/lcov-report/linter/checkPercentageExceedingSlot.ts.html +1 -1
- package/coverage/lcov-report/linter/conditionSchema.ts.html +17 -17
- package/coverage/lcov-report/linter/featureSchema.ts.html +686 -401
- package/coverage/lcov-report/linter/groupSchema.ts.html +1 -1
- package/coverage/lcov-report/linter/index.html +27 -27
- package/coverage/lcov-report/linter/lintProject.ts.html +25 -25
- package/coverage/lcov-report/linter/mutationNotation.ts.html +191 -122
- package/coverage/lcov-report/linter/printError.ts.html +1 -1
- package/coverage/lcov-report/linter/schema.ts.html +72 -72
- package/coverage/lcov-report/linter/segmentSchema.ts.html +1 -1
- package/coverage/lcov-report/linter/testSchema.ts.html +5 -5
- package/coverage/lcov-report/list/index.html +1 -1
- package/coverage/lcov-report/list/matrix.ts.html +1 -1
- package/coverage/lcov-report/parsers/index.html +1 -1
- package/coverage/lcov-report/parsers/index.ts.html +4 -4
- package/coverage/lcov-report/parsers/json.ts.html +2 -2
- package/coverage/lcov-report/parsers/yml.ts.html +6 -6
- package/coverage/lcov-report/tester/cliFormat.ts.html +1 -1
- package/coverage/lcov-report/tester/helpers.ts.html +1 -1
- package/coverage/lcov-report/tester/index.html +1 -1
- package/coverage/lcov-report/utils/extractKeys.ts.html +493 -0
- package/coverage/lcov-report/utils/git.ts.html +3 -3
- package/coverage/lcov-report/utils/index.html +54 -9
- package/coverage/lcov-report/utils/index.ts.html +94 -0
- package/coverage/lcov-report/utils/pretty.ts.html +121 -0
- package/coverage/lcov.info +2955 -2095
- package/lib/builder/buildDatafile.js +50 -3
- package/lib/builder/buildDatafile.js.map +1 -1
- package/lib/builder/buildDatafile.spec.d.ts +1 -0
- package/lib/builder/buildDatafile.spec.js +233 -0
- package/lib/builder/buildDatafile.spec.js.map +1 -0
- package/lib/builder/buildScopedDatafile.js +37 -1
- package/lib/builder/buildScopedDatafile.js.map +1 -1
- package/lib/builder/buildScopedDatafile.spec.js +289 -0
- package/lib/builder/buildScopedDatafile.spec.js.map +1 -1
- package/lib/builder/mutateVariables.d.ts +1 -1
- package/lib/builder/mutateVariables.js +4 -1
- package/lib/builder/mutateVariables.js.map +1 -1
- package/lib/builder/mutateVariables.spec.js +29 -0
- package/lib/builder/mutateVariables.spec.js.map +1 -1
- package/lib/builder/traffic.js +1 -0
- package/lib/builder/traffic.js.map +1 -1
- package/lib/builder/traffic.spec.js +26 -0
- package/lib/builder/traffic.spec.js.map +1 -1
- package/lib/generate-code/typescript.js +1 -1
- package/lib/generate-code/typescript.js.map +1 -1
- package/lib/linter/featureSchema.d.ts +228 -22
- package/lib/linter/featureSchema.js +137 -76
- package/lib/linter/featureSchema.js.map +1 -1
- package/lib/linter/featureSchema.spec.js +175 -0
- package/lib/linter/featureSchema.spec.js.map +1 -1
- package/lib/linter/mutationNotation.js +35 -10
- package/lib/linter/mutationNotation.js.map +1 -1
- package/lib/linter/mutationNotation.spec.js +31 -0
- package/lib/linter/mutationNotation.spec.js.map +1 -1
- package/package.json +5 -5
- package/src/builder/buildDatafile.spec.ts +267 -0
- package/src/builder/buildDatafile.ts +85 -4
- package/src/builder/buildScopedDatafile.spec.ts +330 -0
- package/src/builder/buildScopedDatafile.ts +57 -1
- package/src/builder/mutateVariables.spec.ts +45 -0
- package/src/builder/mutateVariables.ts +7 -0
- package/src/builder/traffic.spec.ts +33 -0
- package/src/builder/traffic.ts +1 -0
- package/src/generate-code/typescript.ts +1 -1
- package/src/linter/featureSchema.spec.ts +197 -0
- package/src/linter/featureSchema.ts +204 -109
- package/src/linter/mutationNotation.spec.ts +39 -0
- package/src/linter/mutationNotation.ts +30 -7
|
@@ -147,22 +147,22 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
147
147
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>>;
|
|
148
148
|
variableOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
149
149
|
conditions: any;
|
|
150
|
-
value: z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>;
|
|
150
|
+
value: z.ZodUnion<[z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>]>;
|
|
151
151
|
}, "strict", z.ZodTypeAny, {
|
|
152
152
|
conditions?: any;
|
|
153
|
-
value?: import("@featurevisor/types").Value
|
|
153
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
154
154
|
}, {
|
|
155
155
|
conditions?: any;
|
|
156
|
-
value?: import("@featurevisor/types").Value
|
|
156
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
157
157
|
}>, z.ZodObject<{
|
|
158
158
|
segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
|
|
159
|
-
value: z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>;
|
|
159
|
+
value: z.ZodUnion<[z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>]>;
|
|
160
160
|
}, "strict", z.ZodTypeAny, {
|
|
161
161
|
segments?: any;
|
|
162
|
-
value?: import("@featurevisor/types").Value
|
|
162
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
163
163
|
}, {
|
|
164
164
|
segments?: any;
|
|
165
|
-
value?: import("@featurevisor/types").Value
|
|
165
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
166
166
|
}>]>, "many">>>;
|
|
167
167
|
}, "strict", z.ZodTypeAny, {
|
|
168
168
|
description?: string;
|
|
@@ -171,10 +171,10 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
171
171
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
172
172
|
variableOverrides?: Record<string, ({
|
|
173
173
|
conditions?: any;
|
|
174
|
-
value?: import("@featurevisor/types").Value
|
|
174
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
175
175
|
} | {
|
|
176
176
|
segments?: any;
|
|
177
|
-
value?: import("@featurevisor/types").Value
|
|
177
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
178
178
|
})[]>;
|
|
179
179
|
}, {
|
|
180
180
|
description?: string;
|
|
@@ -183,10 +183,10 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
183
183
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
184
184
|
variableOverrides?: Record<string, ({
|
|
185
185
|
conditions?: any;
|
|
186
|
-
value?: import("@featurevisor/types").Value
|
|
186
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
187
187
|
} | {
|
|
188
188
|
segments?: any;
|
|
189
|
-
value?: import("@featurevisor/types").Value
|
|
189
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
190
190
|
})[]>;
|
|
191
191
|
}>, "many">, {
|
|
192
192
|
description?: string;
|
|
@@ -195,10 +195,10 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
195
195
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
196
196
|
variableOverrides?: Record<string, ({
|
|
197
197
|
conditions?: any;
|
|
198
|
-
value?: import("@featurevisor/types").Value
|
|
198
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
199
199
|
} | {
|
|
200
200
|
segments?: any;
|
|
201
|
-
value?: import("@featurevisor/types").Value
|
|
201
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
202
202
|
})[]>;
|
|
203
203
|
}[], {
|
|
204
204
|
description?: string;
|
|
@@ -207,10 +207,10 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
207
207
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
208
208
|
variableOverrides?: Record<string, ({
|
|
209
209
|
conditions?: any;
|
|
210
|
-
value?: import("@featurevisor/types").Value
|
|
210
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
211
211
|
} | {
|
|
212
212
|
segments?: any;
|
|
213
|
-
value?: import("@featurevisor/types").Value
|
|
213
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
214
214
|
})[]>;
|
|
215
215
|
}[]>>;
|
|
216
216
|
expose: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>> | z.ZodOptional<z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>>>;
|
|
@@ -283,6 +283,25 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
283
283
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
284
284
|
variation: z.ZodOptional<z.ZodString>;
|
|
285
285
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>>;
|
|
286
|
+
variableOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
287
|
+
conditions: any;
|
|
288
|
+
value: z.ZodUnion<[z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>]>;
|
|
289
|
+
}, "strict", z.ZodTypeAny, {
|
|
290
|
+
conditions?: any;
|
|
291
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
292
|
+
}, {
|
|
293
|
+
conditions?: any;
|
|
294
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
295
|
+
}>, z.ZodObject<{
|
|
296
|
+
segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
|
|
297
|
+
value: z.ZodUnion<[z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>]>;
|
|
298
|
+
}, "strict", z.ZodTypeAny, {
|
|
299
|
+
segments?: any;
|
|
300
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
301
|
+
}, {
|
|
302
|
+
segments?: any;
|
|
303
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
304
|
+
}>]>, "many">>>;
|
|
286
305
|
variationWeights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
287
306
|
}, "strict", z.ZodTypeAny, {
|
|
288
307
|
key?: string;
|
|
@@ -292,6 +311,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
292
311
|
enabled?: boolean;
|
|
293
312
|
variation?: string;
|
|
294
313
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
314
|
+
variableOverrides?: Record<string, ({
|
|
315
|
+
conditions?: any;
|
|
316
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
317
|
+
} | {
|
|
318
|
+
segments?: any;
|
|
319
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
320
|
+
})[]>;
|
|
295
321
|
variationWeights?: Record<string, number>;
|
|
296
322
|
}, {
|
|
297
323
|
key?: string;
|
|
@@ -301,6 +327,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
301
327
|
enabled?: boolean;
|
|
302
328
|
variation?: string;
|
|
303
329
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
330
|
+
variableOverrides?: Record<string, ({
|
|
331
|
+
conditions?: any;
|
|
332
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
333
|
+
} | {
|
|
334
|
+
segments?: any;
|
|
335
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
336
|
+
})[]>;
|
|
304
337
|
variationWeights?: Record<string, number>;
|
|
305
338
|
}>, "many">, {
|
|
306
339
|
key?: string;
|
|
@@ -310,6 +343,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
310
343
|
enabled?: boolean;
|
|
311
344
|
variation?: string;
|
|
312
345
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
346
|
+
variableOverrides?: Record<string, ({
|
|
347
|
+
conditions?: any;
|
|
348
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
349
|
+
} | {
|
|
350
|
+
segments?: any;
|
|
351
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
352
|
+
})[]>;
|
|
313
353
|
variationWeights?: Record<string, number>;
|
|
314
354
|
}[], {
|
|
315
355
|
key?: string;
|
|
@@ -319,6 +359,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
319
359
|
enabled?: boolean;
|
|
320
360
|
variation?: string;
|
|
321
361
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
362
|
+
variableOverrides?: Record<string, ({
|
|
363
|
+
conditions?: any;
|
|
364
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
365
|
+
} | {
|
|
366
|
+
segments?: any;
|
|
367
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
368
|
+
})[]>;
|
|
322
369
|
variationWeights?: Record<string, number>;
|
|
323
370
|
}[]>, {
|
|
324
371
|
key?: string;
|
|
@@ -328,6 +375,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
328
375
|
enabled?: boolean;
|
|
329
376
|
variation?: string;
|
|
330
377
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
378
|
+
variableOverrides?: Record<string, ({
|
|
379
|
+
conditions?: any;
|
|
380
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
381
|
+
} | {
|
|
382
|
+
segments?: any;
|
|
383
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
384
|
+
})[]>;
|
|
331
385
|
variationWeights?: Record<string, number>;
|
|
332
386
|
}[], {
|
|
333
387
|
key?: string;
|
|
@@ -337,6 +391,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
337
391
|
enabled?: boolean;
|
|
338
392
|
variation?: string;
|
|
339
393
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
394
|
+
variableOverrides?: Record<string, ({
|
|
395
|
+
conditions?: any;
|
|
396
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
397
|
+
} | {
|
|
398
|
+
segments?: any;
|
|
399
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
400
|
+
})[]>;
|
|
340
401
|
variationWeights?: Record<string, number>;
|
|
341
402
|
}[]>, {
|
|
342
403
|
key?: string;
|
|
@@ -346,6 +407,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
346
407
|
enabled?: boolean;
|
|
347
408
|
variation?: string;
|
|
348
409
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
410
|
+
variableOverrides?: Record<string, ({
|
|
411
|
+
conditions?: any;
|
|
412
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
413
|
+
} | {
|
|
414
|
+
segments?: any;
|
|
415
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
416
|
+
})[]>;
|
|
349
417
|
variationWeights?: Record<string, number>;
|
|
350
418
|
}[], {
|
|
351
419
|
key?: string;
|
|
@@ -355,6 +423,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
355
423
|
enabled?: boolean;
|
|
356
424
|
variation?: string;
|
|
357
425
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
426
|
+
variableOverrides?: Record<string, ({
|
|
427
|
+
conditions?: any;
|
|
428
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
429
|
+
} | {
|
|
430
|
+
segments?: any;
|
|
431
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
432
|
+
})[]>;
|
|
358
433
|
variationWeights?: Record<string, number>;
|
|
359
434
|
}[]> | z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
360
435
|
key: z.ZodString;
|
|
@@ -364,6 +439,25 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
364
439
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
365
440
|
variation: z.ZodOptional<z.ZodString>;
|
|
366
441
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>>;
|
|
442
|
+
variableOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
443
|
+
conditions: any;
|
|
444
|
+
value: z.ZodUnion<[z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>]>;
|
|
445
|
+
}, "strict", z.ZodTypeAny, {
|
|
446
|
+
conditions?: any;
|
|
447
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
448
|
+
}, {
|
|
449
|
+
conditions?: any;
|
|
450
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
451
|
+
}>, z.ZodObject<{
|
|
452
|
+
segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
|
|
453
|
+
value: z.ZodUnion<[z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>]>;
|
|
454
|
+
}, "strict", z.ZodTypeAny, {
|
|
455
|
+
segments?: any;
|
|
456
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
457
|
+
}, {
|
|
458
|
+
segments?: any;
|
|
459
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
460
|
+
}>]>, "many">>>;
|
|
367
461
|
variationWeights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
368
462
|
}, "strict", z.ZodTypeAny, {
|
|
369
463
|
key?: string;
|
|
@@ -373,6 +467,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
373
467
|
enabled?: boolean;
|
|
374
468
|
variation?: string;
|
|
375
469
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
470
|
+
variableOverrides?: Record<string, ({
|
|
471
|
+
conditions?: any;
|
|
472
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
473
|
+
} | {
|
|
474
|
+
segments?: any;
|
|
475
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
476
|
+
})[]>;
|
|
376
477
|
variationWeights?: Record<string, number>;
|
|
377
478
|
}, {
|
|
378
479
|
key?: string;
|
|
@@ -382,6 +483,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
382
483
|
enabled?: boolean;
|
|
383
484
|
variation?: string;
|
|
384
485
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
486
|
+
variableOverrides?: Record<string, ({
|
|
487
|
+
conditions?: any;
|
|
488
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
489
|
+
} | {
|
|
490
|
+
segments?: any;
|
|
491
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
492
|
+
})[]>;
|
|
385
493
|
variationWeights?: Record<string, number>;
|
|
386
494
|
}>, "many">, {
|
|
387
495
|
key?: string;
|
|
@@ -391,6 +499,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
391
499
|
enabled?: boolean;
|
|
392
500
|
variation?: string;
|
|
393
501
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
502
|
+
variableOverrides?: Record<string, ({
|
|
503
|
+
conditions?: any;
|
|
504
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
505
|
+
} | {
|
|
506
|
+
segments?: any;
|
|
507
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
508
|
+
})[]>;
|
|
394
509
|
variationWeights?: Record<string, number>;
|
|
395
510
|
}[], {
|
|
396
511
|
key?: string;
|
|
@@ -400,6 +515,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
400
515
|
enabled?: boolean;
|
|
401
516
|
variation?: string;
|
|
402
517
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
518
|
+
variableOverrides?: Record<string, ({
|
|
519
|
+
conditions?: any;
|
|
520
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
521
|
+
} | {
|
|
522
|
+
segments?: any;
|
|
523
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
524
|
+
})[]>;
|
|
403
525
|
variationWeights?: Record<string, number>;
|
|
404
526
|
}[]>, {
|
|
405
527
|
key?: string;
|
|
@@ -409,6 +531,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
409
531
|
enabled?: boolean;
|
|
410
532
|
variation?: string;
|
|
411
533
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
534
|
+
variableOverrides?: Record<string, ({
|
|
535
|
+
conditions?: any;
|
|
536
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
537
|
+
} | {
|
|
538
|
+
segments?: any;
|
|
539
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
540
|
+
})[]>;
|
|
412
541
|
variationWeights?: Record<string, number>;
|
|
413
542
|
}[], {
|
|
414
543
|
key?: string;
|
|
@@ -418,6 +547,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
418
547
|
enabled?: boolean;
|
|
419
548
|
variation?: string;
|
|
420
549
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
550
|
+
variableOverrides?: Record<string, ({
|
|
551
|
+
conditions?: any;
|
|
552
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
553
|
+
} | {
|
|
554
|
+
segments?: any;
|
|
555
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
556
|
+
})[]>;
|
|
421
557
|
variationWeights?: Record<string, number>;
|
|
422
558
|
}[]>, {
|
|
423
559
|
key?: string;
|
|
@@ -427,6 +563,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
427
563
|
enabled?: boolean;
|
|
428
564
|
variation?: string;
|
|
429
565
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
566
|
+
variableOverrides?: Record<string, ({
|
|
567
|
+
conditions?: any;
|
|
568
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
569
|
+
} | {
|
|
570
|
+
segments?: any;
|
|
571
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
572
|
+
})[]>;
|
|
430
573
|
variationWeights?: Record<string, number>;
|
|
431
574
|
}[], {
|
|
432
575
|
key?: string;
|
|
@@ -436,6 +579,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
436
579
|
enabled?: boolean;
|
|
437
580
|
variation?: string;
|
|
438
581
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
582
|
+
variableOverrides?: Record<string, ({
|
|
583
|
+
conditions?: any;
|
|
584
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
585
|
+
} | {
|
|
586
|
+
segments?: any;
|
|
587
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
588
|
+
})[]>;
|
|
439
589
|
variationWeights?: Record<string, number>;
|
|
440
590
|
}[]>>;
|
|
441
591
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -482,10 +632,10 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
482
632
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
483
633
|
variableOverrides?: Record<string, ({
|
|
484
634
|
conditions?: any;
|
|
485
|
-
value?: import("@featurevisor/types").Value
|
|
635
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
486
636
|
} | {
|
|
487
637
|
segments?: any;
|
|
488
|
-
value?: import("@featurevisor/types").Value
|
|
638
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
489
639
|
})[]>;
|
|
490
640
|
}[];
|
|
491
641
|
expose?: boolean | string[] | Record<string, boolean | string[]>;
|
|
@@ -518,6 +668,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
518
668
|
enabled?: boolean;
|
|
519
669
|
variation?: string;
|
|
520
670
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
671
|
+
variableOverrides?: Record<string, ({
|
|
672
|
+
conditions?: any;
|
|
673
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
674
|
+
} | {
|
|
675
|
+
segments?: any;
|
|
676
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
677
|
+
})[]>;
|
|
521
678
|
variationWeights?: Record<string, number>;
|
|
522
679
|
}[] | Record<string, {
|
|
523
680
|
key?: string;
|
|
@@ -527,6 +684,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
527
684
|
enabled?: boolean;
|
|
528
685
|
variation?: string;
|
|
529
686
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
687
|
+
variableOverrides?: Record<string, ({
|
|
688
|
+
conditions?: any;
|
|
689
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
690
|
+
} | {
|
|
691
|
+
segments?: any;
|
|
692
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
693
|
+
})[]>;
|
|
530
694
|
variationWeights?: Record<string, number>;
|
|
531
695
|
}[]>;
|
|
532
696
|
}, {
|
|
@@ -573,10 +737,10 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
573
737
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
574
738
|
variableOverrides?: Record<string, ({
|
|
575
739
|
conditions?: any;
|
|
576
|
-
value?: import("@featurevisor/types").Value
|
|
740
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
577
741
|
} | {
|
|
578
742
|
segments?: any;
|
|
579
|
-
value?: import("@featurevisor/types").Value
|
|
743
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
580
744
|
})[]>;
|
|
581
745
|
}[];
|
|
582
746
|
expose?: boolean | string[] | Record<string, boolean | string[]>;
|
|
@@ -609,6 +773,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
609
773
|
enabled?: boolean;
|
|
610
774
|
variation?: string;
|
|
611
775
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
776
|
+
variableOverrides?: Record<string, ({
|
|
777
|
+
conditions?: any;
|
|
778
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
779
|
+
} | {
|
|
780
|
+
segments?: any;
|
|
781
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
782
|
+
})[]>;
|
|
612
783
|
variationWeights?: Record<string, number>;
|
|
613
784
|
}[] | Record<string, {
|
|
614
785
|
key?: string;
|
|
@@ -618,6 +789,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
618
789
|
enabled?: boolean;
|
|
619
790
|
variation?: string;
|
|
620
791
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
792
|
+
variableOverrides?: Record<string, ({
|
|
793
|
+
conditions?: any;
|
|
794
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
795
|
+
} | {
|
|
796
|
+
segments?: any;
|
|
797
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
798
|
+
})[]>;
|
|
621
799
|
variationWeights?: Record<string, number>;
|
|
622
800
|
}[]>;
|
|
623
801
|
}>, {
|
|
@@ -664,10 +842,10 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
664
842
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
665
843
|
variableOverrides?: Record<string, ({
|
|
666
844
|
conditions?: any;
|
|
667
|
-
value?: import("@featurevisor/types").Value
|
|
845
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
668
846
|
} | {
|
|
669
847
|
segments?: any;
|
|
670
|
-
value?: import("@featurevisor/types").Value
|
|
848
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
671
849
|
})[]>;
|
|
672
850
|
}[];
|
|
673
851
|
expose?: boolean | string[] | Record<string, boolean | string[]>;
|
|
@@ -700,6 +878,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
700
878
|
enabled?: boolean;
|
|
701
879
|
variation?: string;
|
|
702
880
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
881
|
+
variableOverrides?: Record<string, ({
|
|
882
|
+
conditions?: any;
|
|
883
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
884
|
+
} | {
|
|
885
|
+
segments?: any;
|
|
886
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
887
|
+
})[]>;
|
|
703
888
|
variationWeights?: Record<string, number>;
|
|
704
889
|
}[] | Record<string, {
|
|
705
890
|
key?: string;
|
|
@@ -709,6 +894,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
709
894
|
enabled?: boolean;
|
|
710
895
|
variation?: string;
|
|
711
896
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
897
|
+
variableOverrides?: Record<string, ({
|
|
898
|
+
conditions?: any;
|
|
899
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
900
|
+
} | {
|
|
901
|
+
segments?: any;
|
|
902
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
903
|
+
})[]>;
|
|
712
904
|
variationWeights?: Record<string, number>;
|
|
713
905
|
}[]>;
|
|
714
906
|
}, {
|
|
@@ -755,10 +947,10 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
755
947
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
756
948
|
variableOverrides?: Record<string, ({
|
|
757
949
|
conditions?: any;
|
|
758
|
-
value?: import("@featurevisor/types").Value
|
|
950
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
759
951
|
} | {
|
|
760
952
|
segments?: any;
|
|
761
|
-
value?: import("@featurevisor/types").Value
|
|
953
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
762
954
|
})[]>;
|
|
763
955
|
}[];
|
|
764
956
|
expose?: boolean | string[] | Record<string, boolean | string[]>;
|
|
@@ -791,6 +983,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
791
983
|
enabled?: boolean;
|
|
792
984
|
variation?: string;
|
|
793
985
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
986
|
+
variableOverrides?: Record<string, ({
|
|
987
|
+
conditions?: any;
|
|
988
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
989
|
+
} | {
|
|
990
|
+
segments?: any;
|
|
991
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
992
|
+
})[]>;
|
|
794
993
|
variationWeights?: Record<string, number>;
|
|
795
994
|
}[] | Record<string, {
|
|
796
995
|
key?: string;
|
|
@@ -800,6 +999,13 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
800
999
|
enabled?: boolean;
|
|
801
1000
|
variation?: string;
|
|
802
1001
|
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
1002
|
+
variableOverrides?: Record<string, ({
|
|
1003
|
+
conditions?: any;
|
|
1004
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
1005
|
+
} | {
|
|
1006
|
+
segments?: any;
|
|
1007
|
+
value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
|
|
1008
|
+
})[]>;
|
|
803
1009
|
variationWeights?: Record<string, number>;
|
|
804
1010
|
}[]>;
|
|
805
1011
|
}>;
|