@featurevisor/core 2.9.0 → 2.10.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 +11 -0
- package/coverage/clover.xml +2 -2
- package/coverage/lcov-report/builder/allocator.ts.html +1 -1
- package/coverage/lcov-report/builder/buildScopedConditions.ts.html +1 -1
- package/coverage/lcov-report/builder/buildScopedDatafile.ts.html +1 -1
- package/coverage/lcov-report/builder/buildScopedSegments.ts.html +1 -1
- package/coverage/lcov-report/builder/index.html +1 -1
- package/coverage/lcov-report/builder/revision.ts.html +1 -1
- package/coverage/lcov-report/builder/traffic.ts.html +1 -1
- package/coverage/lcov-report/index.html +1 -1
- 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/json.ts.html +1 -1
- package/coverage/lcov-report/parsers/yml.ts.html +1 -1
- package/coverage/lcov-report/tester/helpers.ts.html +1 -1
- package/coverage/lcov-report/tester/index.html +1 -1
- package/lib/generate-code/typescript.js +150 -16
- package/lib/generate-code/typescript.js.map +1 -1
- package/lib/linter/featureSchema.d.ts +114 -100
- package/lib/linter/featureSchema.js +222 -80
- package/lib/linter/featureSchema.js.map +1 -1
- package/lib/linter/propertySchema.d.ts +5 -0
- package/lib/linter/propertySchema.js +43 -0
- package/lib/linter/propertySchema.js.map +1 -0
- package/package.json +5 -5
- package/src/generate-code/typescript.ts +168 -18
- package/src/linter/featureSchema.ts +282 -95
- package/src/linter/propertySchema.ts +47 -0
|
@@ -24,98 +24,104 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
24
24
|
}>]>;
|
|
25
25
|
variablesSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
26
26
|
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
-
type: z.
|
|
27
|
+
type: z.ZodUnion<[z.ZodLiteral<"json">, z.ZodEnum<["boolean", "string", "integer", "double", "object", "array"]>]>;
|
|
28
|
+
items: z.ZodOptional<z.ZodType<import("@featurevisor/types").PropertySchema, z.ZodTypeDef, import("@featurevisor/types").PropertySchema>>;
|
|
29
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").PropertySchema, z.ZodTypeDef, import("@featurevisor/types").PropertySchema>>>;
|
|
28
30
|
description: z.ZodOptional<z.ZodString>;
|
|
29
|
-
defaultValue: z.
|
|
31
|
+
defaultValue: z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>;
|
|
32
|
+
disabledValue: z.ZodOptional<z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>;
|
|
30
33
|
useDefaultWhenDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
disabledValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>]>>;
|
|
32
34
|
}, "strict", z.ZodTypeAny, {
|
|
33
35
|
deprecated?: boolean;
|
|
34
36
|
type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array";
|
|
37
|
+
items?: import("@featurevisor/types").PropertySchema;
|
|
38
|
+
properties?: Record<string, import("@featurevisor/types").PropertySchema>;
|
|
35
39
|
description?: string;
|
|
36
|
-
defaultValue?:
|
|
40
|
+
defaultValue?: import("@featurevisor/types").Value;
|
|
41
|
+
disabledValue?: import("@featurevisor/types").Value;
|
|
37
42
|
useDefaultWhenDisabled?: boolean;
|
|
38
|
-
disabledValue?: string | number | boolean | Record<string, unknown> | string[];
|
|
39
43
|
}, {
|
|
40
44
|
deprecated?: boolean;
|
|
41
45
|
type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array";
|
|
46
|
+
items?: import("@featurevisor/types").PropertySchema;
|
|
47
|
+
properties?: Record<string, import("@featurevisor/types").PropertySchema>;
|
|
42
48
|
description?: string;
|
|
43
|
-
defaultValue?:
|
|
49
|
+
defaultValue?: import("@featurevisor/types").Value;
|
|
50
|
+
disabledValue?: import("@featurevisor/types").Value;
|
|
44
51
|
useDefaultWhenDisabled?: boolean;
|
|
45
|
-
disabledValue?: string | number | boolean | Record<string, unknown> | string[];
|
|
46
52
|
}>>>;
|
|
47
53
|
disabledVariationValue: z.ZodOptional<z.ZodString>;
|
|
48
54
|
variations: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
49
55
|
description: z.ZodOptional<z.ZodString>;
|
|
50
56
|
value: z.ZodString;
|
|
51
57
|
weight: z.ZodNumber;
|
|
52
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
58
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>>;
|
|
53
59
|
variableOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
54
60
|
conditions: any;
|
|
55
|
-
value: z.
|
|
61
|
+
value: z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>;
|
|
56
62
|
}, "strict", z.ZodTypeAny, {
|
|
57
63
|
conditions?: any;
|
|
58
|
-
value?:
|
|
64
|
+
value?: import("@featurevisor/types").Value;
|
|
59
65
|
}, {
|
|
60
66
|
conditions?: any;
|
|
61
|
-
value?:
|
|
67
|
+
value?: import("@featurevisor/types").Value;
|
|
62
68
|
}>, z.ZodObject<{
|
|
63
69
|
segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
|
|
64
|
-
value: z.
|
|
70
|
+
value: z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>;
|
|
65
71
|
}, "strict", z.ZodTypeAny, {
|
|
66
72
|
segments?: any;
|
|
67
|
-
value?:
|
|
73
|
+
value?: import("@featurevisor/types").Value;
|
|
68
74
|
}, {
|
|
69
75
|
segments?: any;
|
|
70
|
-
value?:
|
|
76
|
+
value?: import("@featurevisor/types").Value;
|
|
71
77
|
}>]>, "many">>>;
|
|
72
78
|
}, "strict", z.ZodTypeAny, {
|
|
73
79
|
description?: string;
|
|
74
80
|
value?: string;
|
|
75
81
|
weight?: number;
|
|
76
|
-
variables?: Record<string,
|
|
82
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
77
83
|
variableOverrides?: Record<string, ({
|
|
78
84
|
conditions?: any;
|
|
79
|
-
value?:
|
|
85
|
+
value?: import("@featurevisor/types").Value;
|
|
80
86
|
} | {
|
|
81
87
|
segments?: any;
|
|
82
|
-
value?:
|
|
88
|
+
value?: import("@featurevisor/types").Value;
|
|
83
89
|
})[]>;
|
|
84
90
|
}, {
|
|
85
91
|
description?: string;
|
|
86
92
|
value?: string;
|
|
87
93
|
weight?: number;
|
|
88
|
-
variables?: Record<string,
|
|
94
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
89
95
|
variableOverrides?: Record<string, ({
|
|
90
96
|
conditions?: any;
|
|
91
|
-
value?:
|
|
97
|
+
value?: import("@featurevisor/types").Value;
|
|
92
98
|
} | {
|
|
93
99
|
segments?: any;
|
|
94
|
-
value?:
|
|
100
|
+
value?: import("@featurevisor/types").Value;
|
|
95
101
|
})[]>;
|
|
96
102
|
}>, "many">, {
|
|
97
103
|
description?: string;
|
|
98
104
|
value?: string;
|
|
99
105
|
weight?: number;
|
|
100
|
-
variables?: Record<string,
|
|
106
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
101
107
|
variableOverrides?: Record<string, ({
|
|
102
108
|
conditions?: any;
|
|
103
|
-
value?:
|
|
109
|
+
value?: import("@featurevisor/types").Value;
|
|
104
110
|
} | {
|
|
105
111
|
segments?: any;
|
|
106
|
-
value?:
|
|
112
|
+
value?: import("@featurevisor/types").Value;
|
|
107
113
|
})[]>;
|
|
108
114
|
}[], {
|
|
109
115
|
description?: string;
|
|
110
116
|
value?: string;
|
|
111
117
|
weight?: number;
|
|
112
|
-
variables?: Record<string,
|
|
118
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
113
119
|
variableOverrides?: Record<string, ({
|
|
114
120
|
conditions?: any;
|
|
115
|
-
value?:
|
|
121
|
+
value?: import("@featurevisor/types").Value;
|
|
116
122
|
} | {
|
|
117
123
|
segments?: any;
|
|
118
|
-
value?:
|
|
124
|
+
value?: import("@featurevisor/types").Value;
|
|
119
125
|
})[]>;
|
|
120
126
|
}[]>>;
|
|
121
127
|
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">]>>>>;
|
|
@@ -123,62 +129,62 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
123
129
|
segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
|
|
124
130
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
125
131
|
variation: z.ZodOptional<z.ZodString>;
|
|
126
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
132
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>>;
|
|
127
133
|
}, "strict", z.ZodTypeAny, {
|
|
128
134
|
segments?: any;
|
|
129
135
|
enabled?: boolean;
|
|
130
136
|
variation?: string;
|
|
131
|
-
variables?: Record<string,
|
|
137
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
132
138
|
}, {
|
|
133
139
|
segments?: any;
|
|
134
140
|
enabled?: boolean;
|
|
135
141
|
variation?: string;
|
|
136
|
-
variables?: Record<string,
|
|
142
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
137
143
|
}>, z.ZodObject<{
|
|
138
144
|
conditions: any;
|
|
139
145
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
140
146
|
variation: z.ZodOptional<z.ZodString>;
|
|
141
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
147
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>>;
|
|
142
148
|
}, "strict", z.ZodTypeAny, {
|
|
143
149
|
conditions?: any;
|
|
144
150
|
enabled?: boolean;
|
|
145
151
|
variation?: string;
|
|
146
|
-
variables?: Record<string,
|
|
152
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
147
153
|
}, {
|
|
148
154
|
conditions?: any;
|
|
149
155
|
enabled?: boolean;
|
|
150
156
|
variation?: string;
|
|
151
|
-
variables?: Record<string,
|
|
157
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
152
158
|
}>]>, "many">> | z.ZodOptional<z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
153
159
|
segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
|
|
154
160
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
155
161
|
variation: z.ZodOptional<z.ZodString>;
|
|
156
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
162
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>>;
|
|
157
163
|
}, "strict", z.ZodTypeAny, {
|
|
158
164
|
segments?: any;
|
|
159
165
|
enabled?: boolean;
|
|
160
166
|
variation?: string;
|
|
161
|
-
variables?: Record<string,
|
|
167
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
162
168
|
}, {
|
|
163
169
|
segments?: any;
|
|
164
170
|
enabled?: boolean;
|
|
165
171
|
variation?: string;
|
|
166
|
-
variables?: Record<string,
|
|
172
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
167
173
|
}>, z.ZodObject<{
|
|
168
174
|
conditions: any;
|
|
169
175
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
170
176
|
variation: z.ZodOptional<z.ZodString>;
|
|
171
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
177
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>>;
|
|
172
178
|
}, "strict", z.ZodTypeAny, {
|
|
173
179
|
conditions?: any;
|
|
174
180
|
enabled?: boolean;
|
|
175
181
|
variation?: string;
|
|
176
|
-
variables?: Record<string,
|
|
182
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
177
183
|
}, {
|
|
178
184
|
conditions?: any;
|
|
179
185
|
enabled?: boolean;
|
|
180
186
|
variation?: string;
|
|
181
|
-
variables?: Record<string,
|
|
187
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
182
188
|
}>]>, "many">>>>;
|
|
183
189
|
rules: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
184
190
|
key: z.ZodString;
|
|
@@ -187,7 +193,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
187
193
|
percentage: z.ZodNumber;
|
|
188
194
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
189
195
|
variation: z.ZodOptional<z.ZodString>;
|
|
190
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
196
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>>;
|
|
191
197
|
variationWeights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
192
198
|
}, "strict", z.ZodTypeAny, {
|
|
193
199
|
key?: string;
|
|
@@ -196,7 +202,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
196
202
|
percentage?: number;
|
|
197
203
|
enabled?: boolean;
|
|
198
204
|
variation?: string;
|
|
199
|
-
variables?: Record<string,
|
|
205
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
200
206
|
variationWeights?: Record<string, number>;
|
|
201
207
|
}, {
|
|
202
208
|
key?: string;
|
|
@@ -205,7 +211,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
205
211
|
percentage?: number;
|
|
206
212
|
enabled?: boolean;
|
|
207
213
|
variation?: string;
|
|
208
|
-
variables?: Record<string,
|
|
214
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
209
215
|
variationWeights?: Record<string, number>;
|
|
210
216
|
}>, "many">, {
|
|
211
217
|
key?: string;
|
|
@@ -214,7 +220,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
214
220
|
percentage?: number;
|
|
215
221
|
enabled?: boolean;
|
|
216
222
|
variation?: string;
|
|
217
|
-
variables?: Record<string,
|
|
223
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
218
224
|
variationWeights?: Record<string, number>;
|
|
219
225
|
}[], {
|
|
220
226
|
key?: string;
|
|
@@ -223,7 +229,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
223
229
|
percentage?: number;
|
|
224
230
|
enabled?: boolean;
|
|
225
231
|
variation?: string;
|
|
226
|
-
variables?: Record<string,
|
|
232
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
227
233
|
variationWeights?: Record<string, number>;
|
|
228
234
|
}[]>, {
|
|
229
235
|
key?: string;
|
|
@@ -232,7 +238,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
232
238
|
percentage?: number;
|
|
233
239
|
enabled?: boolean;
|
|
234
240
|
variation?: string;
|
|
235
|
-
variables?: Record<string,
|
|
241
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
236
242
|
variationWeights?: Record<string, number>;
|
|
237
243
|
}[], {
|
|
238
244
|
key?: string;
|
|
@@ -241,7 +247,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
241
247
|
percentage?: number;
|
|
242
248
|
enabled?: boolean;
|
|
243
249
|
variation?: string;
|
|
244
|
-
variables?: Record<string,
|
|
250
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
245
251
|
variationWeights?: Record<string, number>;
|
|
246
252
|
}[]>, {
|
|
247
253
|
key?: string;
|
|
@@ -250,7 +256,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
250
256
|
percentage?: number;
|
|
251
257
|
enabled?: boolean;
|
|
252
258
|
variation?: string;
|
|
253
|
-
variables?: Record<string,
|
|
259
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
254
260
|
variationWeights?: Record<string, number>;
|
|
255
261
|
}[], {
|
|
256
262
|
key?: string;
|
|
@@ -259,7 +265,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
259
265
|
percentage?: number;
|
|
260
266
|
enabled?: boolean;
|
|
261
267
|
variation?: string;
|
|
262
|
-
variables?: Record<string,
|
|
268
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
263
269
|
variationWeights?: Record<string, number>;
|
|
264
270
|
}[]> | z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
265
271
|
key: z.ZodString;
|
|
@@ -268,7 +274,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
268
274
|
percentage: z.ZodNumber;
|
|
269
275
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
270
276
|
variation: z.ZodOptional<z.ZodString>;
|
|
271
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
277
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>>;
|
|
272
278
|
variationWeights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
273
279
|
}, "strict", z.ZodTypeAny, {
|
|
274
280
|
key?: string;
|
|
@@ -277,7 +283,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
277
283
|
percentage?: number;
|
|
278
284
|
enabled?: boolean;
|
|
279
285
|
variation?: string;
|
|
280
|
-
variables?: Record<string,
|
|
286
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
281
287
|
variationWeights?: Record<string, number>;
|
|
282
288
|
}, {
|
|
283
289
|
key?: string;
|
|
@@ -286,7 +292,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
286
292
|
percentage?: number;
|
|
287
293
|
enabled?: boolean;
|
|
288
294
|
variation?: string;
|
|
289
|
-
variables?: Record<string,
|
|
295
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
290
296
|
variationWeights?: Record<string, number>;
|
|
291
297
|
}>, "many">, {
|
|
292
298
|
key?: string;
|
|
@@ -295,7 +301,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
295
301
|
percentage?: number;
|
|
296
302
|
enabled?: boolean;
|
|
297
303
|
variation?: string;
|
|
298
|
-
variables?: Record<string,
|
|
304
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
299
305
|
variationWeights?: Record<string, number>;
|
|
300
306
|
}[], {
|
|
301
307
|
key?: string;
|
|
@@ -304,7 +310,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
304
310
|
percentage?: number;
|
|
305
311
|
enabled?: boolean;
|
|
306
312
|
variation?: string;
|
|
307
|
-
variables?: Record<string,
|
|
313
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
308
314
|
variationWeights?: Record<string, number>;
|
|
309
315
|
}[]>, {
|
|
310
316
|
key?: string;
|
|
@@ -313,7 +319,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
313
319
|
percentage?: number;
|
|
314
320
|
enabled?: boolean;
|
|
315
321
|
variation?: string;
|
|
316
|
-
variables?: Record<string,
|
|
322
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
317
323
|
variationWeights?: Record<string, number>;
|
|
318
324
|
}[], {
|
|
319
325
|
key?: string;
|
|
@@ -322,7 +328,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
322
328
|
percentage?: number;
|
|
323
329
|
enabled?: boolean;
|
|
324
330
|
variation?: string;
|
|
325
|
-
variables?: Record<string,
|
|
331
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
326
332
|
variationWeights?: Record<string, number>;
|
|
327
333
|
}[]>, {
|
|
328
334
|
key?: string;
|
|
@@ -331,7 +337,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
331
337
|
percentage?: number;
|
|
332
338
|
enabled?: boolean;
|
|
333
339
|
variation?: string;
|
|
334
|
-
variables?: Record<string,
|
|
340
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
335
341
|
variationWeights?: Record<string, number>;
|
|
336
342
|
}[], {
|
|
337
343
|
key?: string;
|
|
@@ -340,7 +346,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
340
346
|
percentage?: number;
|
|
341
347
|
enabled?: boolean;
|
|
342
348
|
variation?: string;
|
|
343
|
-
variables?: Record<string,
|
|
349
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
344
350
|
variationWeights?: Record<string, number>;
|
|
345
351
|
}[]>>;
|
|
346
352
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -358,23 +364,25 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
358
364
|
variablesSchema?: Record<string, {
|
|
359
365
|
deprecated?: boolean;
|
|
360
366
|
type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array";
|
|
367
|
+
items?: import("@featurevisor/types").PropertySchema;
|
|
368
|
+
properties?: Record<string, import("@featurevisor/types").PropertySchema>;
|
|
361
369
|
description?: string;
|
|
362
|
-
defaultValue?:
|
|
370
|
+
defaultValue?: import("@featurevisor/types").Value;
|
|
371
|
+
disabledValue?: import("@featurevisor/types").Value;
|
|
363
372
|
useDefaultWhenDisabled?: boolean;
|
|
364
|
-
disabledValue?: string | number | boolean | Record<string, unknown> | string[];
|
|
365
373
|
}>;
|
|
366
374
|
disabledVariationValue?: string;
|
|
367
375
|
variations?: {
|
|
368
376
|
description?: string;
|
|
369
377
|
value?: string;
|
|
370
378
|
weight?: number;
|
|
371
|
-
variables?: Record<string,
|
|
379
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
372
380
|
variableOverrides?: Record<string, ({
|
|
373
381
|
conditions?: any;
|
|
374
|
-
value?:
|
|
382
|
+
value?: import("@featurevisor/types").Value;
|
|
375
383
|
} | {
|
|
376
384
|
segments?: any;
|
|
377
|
-
value?:
|
|
385
|
+
value?: import("@featurevisor/types").Value;
|
|
378
386
|
})[]>;
|
|
379
387
|
}[];
|
|
380
388
|
expose?: boolean | string[] | Record<string, boolean | string[]>;
|
|
@@ -382,22 +390,22 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
382
390
|
segments?: any;
|
|
383
391
|
enabled?: boolean;
|
|
384
392
|
variation?: string;
|
|
385
|
-
variables?: Record<string,
|
|
393
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
386
394
|
} | {
|
|
387
395
|
conditions?: any;
|
|
388
396
|
enabled?: boolean;
|
|
389
397
|
variation?: string;
|
|
390
|
-
variables?: Record<string,
|
|
398
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
391
399
|
})[] | Record<string, ({
|
|
392
400
|
segments?: any;
|
|
393
401
|
enabled?: boolean;
|
|
394
402
|
variation?: string;
|
|
395
|
-
variables?: Record<string,
|
|
403
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
396
404
|
} | {
|
|
397
405
|
conditions?: any;
|
|
398
406
|
enabled?: boolean;
|
|
399
407
|
variation?: string;
|
|
400
|
-
variables?: Record<string,
|
|
408
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
401
409
|
})[]>;
|
|
402
410
|
rules?: {
|
|
403
411
|
key?: string;
|
|
@@ -406,7 +414,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
406
414
|
percentage?: number;
|
|
407
415
|
enabled?: boolean;
|
|
408
416
|
variation?: string;
|
|
409
|
-
variables?: Record<string,
|
|
417
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
410
418
|
variationWeights?: Record<string, number>;
|
|
411
419
|
}[] | Record<string, {
|
|
412
420
|
key?: string;
|
|
@@ -415,7 +423,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
415
423
|
percentage?: number;
|
|
416
424
|
enabled?: boolean;
|
|
417
425
|
variation?: string;
|
|
418
|
-
variables?: Record<string,
|
|
426
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
419
427
|
variationWeights?: Record<string, number>;
|
|
420
428
|
}[]>;
|
|
421
429
|
}, {
|
|
@@ -433,23 +441,25 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
433
441
|
variablesSchema?: Record<string, {
|
|
434
442
|
deprecated?: boolean;
|
|
435
443
|
type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array";
|
|
444
|
+
items?: import("@featurevisor/types").PropertySchema;
|
|
445
|
+
properties?: Record<string, import("@featurevisor/types").PropertySchema>;
|
|
436
446
|
description?: string;
|
|
437
|
-
defaultValue?:
|
|
447
|
+
defaultValue?: import("@featurevisor/types").Value;
|
|
448
|
+
disabledValue?: import("@featurevisor/types").Value;
|
|
438
449
|
useDefaultWhenDisabled?: boolean;
|
|
439
|
-
disabledValue?: string | number | boolean | Record<string, unknown> | string[];
|
|
440
450
|
}>;
|
|
441
451
|
disabledVariationValue?: string;
|
|
442
452
|
variations?: {
|
|
443
453
|
description?: string;
|
|
444
454
|
value?: string;
|
|
445
455
|
weight?: number;
|
|
446
|
-
variables?: Record<string,
|
|
456
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
447
457
|
variableOverrides?: Record<string, ({
|
|
448
458
|
conditions?: any;
|
|
449
|
-
value?:
|
|
459
|
+
value?: import("@featurevisor/types").Value;
|
|
450
460
|
} | {
|
|
451
461
|
segments?: any;
|
|
452
|
-
value?:
|
|
462
|
+
value?: import("@featurevisor/types").Value;
|
|
453
463
|
})[]>;
|
|
454
464
|
}[];
|
|
455
465
|
expose?: boolean | string[] | Record<string, boolean | string[]>;
|
|
@@ -457,22 +467,22 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
457
467
|
segments?: any;
|
|
458
468
|
enabled?: boolean;
|
|
459
469
|
variation?: string;
|
|
460
|
-
variables?: Record<string,
|
|
470
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
461
471
|
} | {
|
|
462
472
|
conditions?: any;
|
|
463
473
|
enabled?: boolean;
|
|
464
474
|
variation?: string;
|
|
465
|
-
variables?: Record<string,
|
|
475
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
466
476
|
})[] | Record<string, ({
|
|
467
477
|
segments?: any;
|
|
468
478
|
enabled?: boolean;
|
|
469
479
|
variation?: string;
|
|
470
|
-
variables?: Record<string,
|
|
480
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
471
481
|
} | {
|
|
472
482
|
conditions?: any;
|
|
473
483
|
enabled?: boolean;
|
|
474
484
|
variation?: string;
|
|
475
|
-
variables?: Record<string,
|
|
485
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
476
486
|
})[]>;
|
|
477
487
|
rules?: {
|
|
478
488
|
key?: string;
|
|
@@ -481,7 +491,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
481
491
|
percentage?: number;
|
|
482
492
|
enabled?: boolean;
|
|
483
493
|
variation?: string;
|
|
484
|
-
variables?: Record<string,
|
|
494
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
485
495
|
variationWeights?: Record<string, number>;
|
|
486
496
|
}[] | Record<string, {
|
|
487
497
|
key?: string;
|
|
@@ -490,7 +500,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
490
500
|
percentage?: number;
|
|
491
501
|
enabled?: boolean;
|
|
492
502
|
variation?: string;
|
|
493
|
-
variables?: Record<string,
|
|
503
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
494
504
|
variationWeights?: Record<string, number>;
|
|
495
505
|
}[]>;
|
|
496
506
|
}>, {
|
|
@@ -508,23 +518,25 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
508
518
|
variablesSchema?: Record<string, {
|
|
509
519
|
deprecated?: boolean;
|
|
510
520
|
type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array";
|
|
521
|
+
items?: import("@featurevisor/types").PropertySchema;
|
|
522
|
+
properties?: Record<string, import("@featurevisor/types").PropertySchema>;
|
|
511
523
|
description?: string;
|
|
512
|
-
defaultValue?:
|
|
524
|
+
defaultValue?: import("@featurevisor/types").Value;
|
|
525
|
+
disabledValue?: import("@featurevisor/types").Value;
|
|
513
526
|
useDefaultWhenDisabled?: boolean;
|
|
514
|
-
disabledValue?: string | number | boolean | Record<string, unknown> | string[];
|
|
515
527
|
}>;
|
|
516
528
|
disabledVariationValue?: string;
|
|
517
529
|
variations?: {
|
|
518
530
|
description?: string;
|
|
519
531
|
value?: string;
|
|
520
532
|
weight?: number;
|
|
521
|
-
variables?: Record<string,
|
|
533
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
522
534
|
variableOverrides?: Record<string, ({
|
|
523
535
|
conditions?: any;
|
|
524
|
-
value?:
|
|
536
|
+
value?: import("@featurevisor/types").Value;
|
|
525
537
|
} | {
|
|
526
538
|
segments?: any;
|
|
527
|
-
value?:
|
|
539
|
+
value?: import("@featurevisor/types").Value;
|
|
528
540
|
})[]>;
|
|
529
541
|
}[];
|
|
530
542
|
expose?: boolean | string[] | Record<string, boolean | string[]>;
|
|
@@ -532,22 +544,22 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
532
544
|
segments?: any;
|
|
533
545
|
enabled?: boolean;
|
|
534
546
|
variation?: string;
|
|
535
|
-
variables?: Record<string,
|
|
547
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
536
548
|
} | {
|
|
537
549
|
conditions?: any;
|
|
538
550
|
enabled?: boolean;
|
|
539
551
|
variation?: string;
|
|
540
|
-
variables?: Record<string,
|
|
552
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
541
553
|
})[] | Record<string, ({
|
|
542
554
|
segments?: any;
|
|
543
555
|
enabled?: boolean;
|
|
544
556
|
variation?: string;
|
|
545
|
-
variables?: Record<string,
|
|
557
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
546
558
|
} | {
|
|
547
559
|
conditions?: any;
|
|
548
560
|
enabled?: boolean;
|
|
549
561
|
variation?: string;
|
|
550
|
-
variables?: Record<string,
|
|
562
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
551
563
|
})[]>;
|
|
552
564
|
rules?: {
|
|
553
565
|
key?: string;
|
|
@@ -556,7 +568,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
556
568
|
percentage?: number;
|
|
557
569
|
enabled?: boolean;
|
|
558
570
|
variation?: string;
|
|
559
|
-
variables?: Record<string,
|
|
571
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
560
572
|
variationWeights?: Record<string, number>;
|
|
561
573
|
}[] | Record<string, {
|
|
562
574
|
key?: string;
|
|
@@ -565,7 +577,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
565
577
|
percentage?: number;
|
|
566
578
|
enabled?: boolean;
|
|
567
579
|
variation?: string;
|
|
568
|
-
variables?: Record<string,
|
|
580
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
569
581
|
variationWeights?: Record<string, number>;
|
|
570
582
|
}[]>;
|
|
571
583
|
}, {
|
|
@@ -583,23 +595,25 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
583
595
|
variablesSchema?: Record<string, {
|
|
584
596
|
deprecated?: boolean;
|
|
585
597
|
type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array";
|
|
598
|
+
items?: import("@featurevisor/types").PropertySchema;
|
|
599
|
+
properties?: Record<string, import("@featurevisor/types").PropertySchema>;
|
|
586
600
|
description?: string;
|
|
587
|
-
defaultValue?:
|
|
601
|
+
defaultValue?: import("@featurevisor/types").Value;
|
|
602
|
+
disabledValue?: import("@featurevisor/types").Value;
|
|
588
603
|
useDefaultWhenDisabled?: boolean;
|
|
589
|
-
disabledValue?: string | number | boolean | Record<string, unknown> | string[];
|
|
590
604
|
}>;
|
|
591
605
|
disabledVariationValue?: string;
|
|
592
606
|
variations?: {
|
|
593
607
|
description?: string;
|
|
594
608
|
value?: string;
|
|
595
609
|
weight?: number;
|
|
596
|
-
variables?: Record<string,
|
|
610
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
597
611
|
variableOverrides?: Record<string, ({
|
|
598
612
|
conditions?: any;
|
|
599
|
-
value?:
|
|
613
|
+
value?: import("@featurevisor/types").Value;
|
|
600
614
|
} | {
|
|
601
615
|
segments?: any;
|
|
602
|
-
value?:
|
|
616
|
+
value?: import("@featurevisor/types").Value;
|
|
603
617
|
})[]>;
|
|
604
618
|
}[];
|
|
605
619
|
expose?: boolean | string[] | Record<string, boolean | string[]>;
|
|
@@ -607,22 +621,22 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
607
621
|
segments?: any;
|
|
608
622
|
enabled?: boolean;
|
|
609
623
|
variation?: string;
|
|
610
|
-
variables?: Record<string,
|
|
624
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
611
625
|
} | {
|
|
612
626
|
conditions?: any;
|
|
613
627
|
enabled?: boolean;
|
|
614
628
|
variation?: string;
|
|
615
|
-
variables?: Record<string,
|
|
629
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
616
630
|
})[] | Record<string, ({
|
|
617
631
|
segments?: any;
|
|
618
632
|
enabled?: boolean;
|
|
619
633
|
variation?: string;
|
|
620
|
-
variables?: Record<string,
|
|
634
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
621
635
|
} | {
|
|
622
636
|
conditions?: any;
|
|
623
637
|
enabled?: boolean;
|
|
624
638
|
variation?: string;
|
|
625
|
-
variables?: Record<string,
|
|
639
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
626
640
|
})[]>;
|
|
627
641
|
rules?: {
|
|
628
642
|
key?: string;
|
|
@@ -631,7 +645,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
631
645
|
percentage?: number;
|
|
632
646
|
enabled?: boolean;
|
|
633
647
|
variation?: string;
|
|
634
|
-
variables?: Record<string,
|
|
648
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
635
649
|
variationWeights?: Record<string, number>;
|
|
636
650
|
}[] | Record<string, {
|
|
637
651
|
key?: string;
|
|
@@ -640,7 +654,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
|
|
|
640
654
|
percentage?: number;
|
|
641
655
|
enabled?: boolean;
|
|
642
656
|
variation?: string;
|
|
643
|
-
variables?: Record<string,
|
|
657
|
+
variables?: Record<string, import("@featurevisor/types").Value>;
|
|
644
658
|
variationWeights?: Record<string, number>;
|
|
645
659
|
}[]>;
|
|
646
660
|
}>;
|