@lssm/lib.feature-flags 0.0.0-canary-20251217060804 → 0.0.0-canary-20251217060834
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/dist/contracts/index.d.ts +259 -259
- package/dist/entities/index.d.ts +158 -158
- package/package.json +5 -5
|
@@ -1,534 +1,534 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema155 from "@lssm/lib.schema";
|
|
2
2
|
import * as _lssm_lib_contracts21 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/index.d.ts
|
|
5
|
-
declare const FeatureFlagModel:
|
|
5
|
+
declare const FeatureFlagModel: _lssm_lib_schema155.SchemaModel<{
|
|
6
6
|
id: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
key: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
name: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
description: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
20
20
|
isOptional: true;
|
|
21
21
|
};
|
|
22
22
|
status: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
defaultValue: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
variants: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
32
32
|
isOptional: true;
|
|
33
33
|
};
|
|
34
34
|
orgId: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
36
36
|
isOptional: true;
|
|
37
37
|
};
|
|
38
38
|
tags: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
40
40
|
isOptional: true;
|
|
41
41
|
};
|
|
42
42
|
createdAt: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
updatedAt: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
}>;
|
|
51
|
-
declare const TargetingRuleModel:
|
|
51
|
+
declare const TargetingRuleModel: _lssm_lib_schema155.SchemaModel<{
|
|
52
52
|
id: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
flagId: {
|
|
57
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
name: {
|
|
61
|
-
type:
|
|
61
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
62
62
|
isOptional: true;
|
|
63
63
|
};
|
|
64
64
|
priority: {
|
|
65
|
-
type:
|
|
65
|
+
type: _lssm_lib_schema155.FieldType<number, number>;
|
|
66
66
|
isOptional: false;
|
|
67
67
|
};
|
|
68
68
|
enabled: {
|
|
69
|
-
type:
|
|
69
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
70
70
|
isOptional: false;
|
|
71
71
|
};
|
|
72
72
|
attribute: {
|
|
73
|
-
type:
|
|
73
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
74
74
|
isOptional: false;
|
|
75
75
|
};
|
|
76
76
|
operator: {
|
|
77
|
-
type:
|
|
77
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
78
78
|
isOptional: false;
|
|
79
79
|
};
|
|
80
80
|
value: {
|
|
81
|
-
type:
|
|
81
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
82
82
|
isOptional: false;
|
|
83
83
|
};
|
|
84
84
|
rolloutPercentage: {
|
|
85
|
-
type:
|
|
85
|
+
type: _lssm_lib_schema155.FieldType<number, number>;
|
|
86
86
|
isOptional: true;
|
|
87
87
|
};
|
|
88
88
|
serveValue: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
90
90
|
isOptional: true;
|
|
91
91
|
};
|
|
92
92
|
serveVariant: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
94
94
|
isOptional: true;
|
|
95
95
|
};
|
|
96
96
|
}>;
|
|
97
|
-
declare const ExperimentModel:
|
|
97
|
+
declare const ExperimentModel: _lssm_lib_schema155.SchemaModel<{
|
|
98
98
|
id: {
|
|
99
|
-
type:
|
|
99
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
100
100
|
isOptional: false;
|
|
101
101
|
};
|
|
102
102
|
key: {
|
|
103
|
-
type:
|
|
103
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
104
104
|
isOptional: false;
|
|
105
105
|
};
|
|
106
106
|
name: {
|
|
107
|
-
type:
|
|
107
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
108
108
|
isOptional: false;
|
|
109
109
|
};
|
|
110
110
|
description: {
|
|
111
|
-
type:
|
|
111
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
112
112
|
isOptional: true;
|
|
113
113
|
};
|
|
114
114
|
hypothesis: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
116
116
|
isOptional: true;
|
|
117
117
|
};
|
|
118
118
|
flagId: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
status: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
variants: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
metrics: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
132
132
|
isOptional: true;
|
|
133
133
|
};
|
|
134
134
|
audiencePercentage: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema155.FieldType<number, number>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
startedAt: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
140
140
|
isOptional: true;
|
|
141
141
|
};
|
|
142
142
|
endedAt: {
|
|
143
|
-
type:
|
|
143
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
144
144
|
isOptional: true;
|
|
145
145
|
};
|
|
146
146
|
winningVariant: {
|
|
147
|
-
type:
|
|
147
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
148
148
|
isOptional: true;
|
|
149
149
|
};
|
|
150
150
|
results: {
|
|
151
|
-
type:
|
|
151
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
152
152
|
isOptional: true;
|
|
153
153
|
};
|
|
154
154
|
createdAt: {
|
|
155
|
-
type:
|
|
155
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
156
156
|
isOptional: false;
|
|
157
157
|
};
|
|
158
158
|
}>;
|
|
159
|
-
declare const EvaluationResultModel:
|
|
159
|
+
declare const EvaluationResultModel: _lssm_lib_schema155.SchemaModel<{
|
|
160
160
|
enabled: {
|
|
161
|
-
type:
|
|
161
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
variant: {
|
|
165
|
-
type:
|
|
165
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
166
166
|
isOptional: true;
|
|
167
167
|
};
|
|
168
168
|
reason: {
|
|
169
|
-
type:
|
|
169
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
170
170
|
isOptional: false;
|
|
171
171
|
};
|
|
172
172
|
ruleId: {
|
|
173
|
-
type:
|
|
173
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
174
174
|
isOptional: true;
|
|
175
175
|
};
|
|
176
176
|
experimentId: {
|
|
177
|
-
type:
|
|
177
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
178
178
|
isOptional: true;
|
|
179
179
|
};
|
|
180
180
|
}>;
|
|
181
181
|
/**
|
|
182
182
|
* Create a feature flag.
|
|
183
183
|
*/
|
|
184
|
-
declare const CreateFlagContract: _lssm_lib_contracts21.ContractSpec<
|
|
184
|
+
declare const CreateFlagContract: _lssm_lib_contracts21.ContractSpec<_lssm_lib_schema155.SchemaModel<{
|
|
185
185
|
key: {
|
|
186
|
-
type:
|
|
186
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
187
187
|
isOptional: false;
|
|
188
188
|
};
|
|
189
189
|
name: {
|
|
190
|
-
type:
|
|
190
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
191
191
|
isOptional: false;
|
|
192
192
|
};
|
|
193
193
|
description: {
|
|
194
|
-
type:
|
|
194
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
195
195
|
isOptional: true;
|
|
196
196
|
};
|
|
197
197
|
defaultValue: {
|
|
198
|
-
type:
|
|
198
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
199
199
|
isOptional: true;
|
|
200
200
|
};
|
|
201
201
|
variants: {
|
|
202
|
-
type:
|
|
202
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
203
203
|
isOptional: true;
|
|
204
204
|
};
|
|
205
205
|
orgId: {
|
|
206
|
-
type:
|
|
206
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
207
207
|
isOptional: true;
|
|
208
208
|
};
|
|
209
209
|
tags: {
|
|
210
|
-
type:
|
|
210
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
211
211
|
isOptional: true;
|
|
212
212
|
};
|
|
213
|
-
}>,
|
|
213
|
+
}>, _lssm_lib_schema155.SchemaModel<{
|
|
214
214
|
id: {
|
|
215
|
-
type:
|
|
215
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
216
216
|
isOptional: false;
|
|
217
217
|
};
|
|
218
218
|
key: {
|
|
219
|
-
type:
|
|
219
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
220
220
|
isOptional: false;
|
|
221
221
|
};
|
|
222
222
|
name: {
|
|
223
|
-
type:
|
|
223
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
224
224
|
isOptional: false;
|
|
225
225
|
};
|
|
226
226
|
description: {
|
|
227
|
-
type:
|
|
227
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
228
228
|
isOptional: true;
|
|
229
229
|
};
|
|
230
230
|
status: {
|
|
231
|
-
type:
|
|
231
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
232
232
|
isOptional: false;
|
|
233
233
|
};
|
|
234
234
|
defaultValue: {
|
|
235
|
-
type:
|
|
235
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
236
236
|
isOptional: false;
|
|
237
237
|
};
|
|
238
238
|
variants: {
|
|
239
|
-
type:
|
|
239
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
240
240
|
isOptional: true;
|
|
241
241
|
};
|
|
242
242
|
orgId: {
|
|
243
|
-
type:
|
|
243
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
244
244
|
isOptional: true;
|
|
245
245
|
};
|
|
246
246
|
tags: {
|
|
247
|
-
type:
|
|
247
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
248
248
|
isOptional: true;
|
|
249
249
|
};
|
|
250
250
|
createdAt: {
|
|
251
|
-
type:
|
|
251
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
252
252
|
isOptional: false;
|
|
253
253
|
};
|
|
254
254
|
updatedAt: {
|
|
255
|
-
type:
|
|
255
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
256
256
|
isOptional: false;
|
|
257
257
|
};
|
|
258
258
|
}>, undefined>;
|
|
259
259
|
/**
|
|
260
260
|
* Update a feature flag.
|
|
261
261
|
*/
|
|
262
|
-
declare const UpdateFlagContract: _lssm_lib_contracts21.ContractSpec<
|
|
262
|
+
declare const UpdateFlagContract: _lssm_lib_contracts21.ContractSpec<_lssm_lib_schema155.SchemaModel<{
|
|
263
263
|
flagId: {
|
|
264
|
-
type:
|
|
264
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
265
265
|
isOptional: false;
|
|
266
266
|
};
|
|
267
267
|
name: {
|
|
268
|
-
type:
|
|
268
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
269
269
|
isOptional: true;
|
|
270
270
|
};
|
|
271
271
|
description: {
|
|
272
|
-
type:
|
|
272
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
273
273
|
isOptional: true;
|
|
274
274
|
};
|
|
275
275
|
defaultValue: {
|
|
276
|
-
type:
|
|
276
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
277
277
|
isOptional: true;
|
|
278
278
|
};
|
|
279
279
|
variants: {
|
|
280
|
-
type:
|
|
280
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
281
281
|
isOptional: true;
|
|
282
282
|
};
|
|
283
283
|
tags: {
|
|
284
|
-
type:
|
|
284
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
285
285
|
isOptional: true;
|
|
286
286
|
};
|
|
287
|
-
}>,
|
|
287
|
+
}>, _lssm_lib_schema155.SchemaModel<{
|
|
288
288
|
id: {
|
|
289
|
-
type:
|
|
289
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
290
290
|
isOptional: false;
|
|
291
291
|
};
|
|
292
292
|
key: {
|
|
293
|
-
type:
|
|
293
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
294
294
|
isOptional: false;
|
|
295
295
|
};
|
|
296
296
|
name: {
|
|
297
|
-
type:
|
|
297
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
298
298
|
isOptional: false;
|
|
299
299
|
};
|
|
300
300
|
description: {
|
|
301
|
-
type:
|
|
301
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
302
302
|
isOptional: true;
|
|
303
303
|
};
|
|
304
304
|
status: {
|
|
305
|
-
type:
|
|
305
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
306
306
|
isOptional: false;
|
|
307
307
|
};
|
|
308
308
|
defaultValue: {
|
|
309
|
-
type:
|
|
309
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
310
310
|
isOptional: false;
|
|
311
311
|
};
|
|
312
312
|
variants: {
|
|
313
|
-
type:
|
|
313
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
314
314
|
isOptional: true;
|
|
315
315
|
};
|
|
316
316
|
orgId: {
|
|
317
|
-
type:
|
|
317
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
318
318
|
isOptional: true;
|
|
319
319
|
};
|
|
320
320
|
tags: {
|
|
321
|
-
type:
|
|
321
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
322
322
|
isOptional: true;
|
|
323
323
|
};
|
|
324
324
|
createdAt: {
|
|
325
|
-
type:
|
|
325
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
326
326
|
isOptional: false;
|
|
327
327
|
};
|
|
328
328
|
updatedAt: {
|
|
329
|
-
type:
|
|
329
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
330
330
|
isOptional: false;
|
|
331
331
|
};
|
|
332
332
|
}>, undefined>;
|
|
333
333
|
/**
|
|
334
334
|
* Delete a feature flag.
|
|
335
335
|
*/
|
|
336
|
-
declare const DeleteFlagContract: _lssm_lib_contracts21.ContractSpec<
|
|
336
|
+
declare const DeleteFlagContract: _lssm_lib_contracts21.ContractSpec<_lssm_lib_schema155.SchemaModel<{
|
|
337
337
|
flagId: {
|
|
338
|
-
type:
|
|
338
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
339
339
|
isOptional: false;
|
|
340
340
|
};
|
|
341
|
-
}>,
|
|
341
|
+
}>, _lssm_lib_schema155.SchemaModel<{
|
|
342
342
|
success: {
|
|
343
|
-
type:
|
|
343
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
344
344
|
isOptional: false;
|
|
345
345
|
};
|
|
346
346
|
}>, undefined>;
|
|
347
347
|
/**
|
|
348
348
|
* Toggle a feature flag status.
|
|
349
349
|
*/
|
|
350
|
-
declare const ToggleFlagContract: _lssm_lib_contracts21.ContractSpec<
|
|
350
|
+
declare const ToggleFlagContract: _lssm_lib_contracts21.ContractSpec<_lssm_lib_schema155.SchemaModel<{
|
|
351
351
|
flagId: {
|
|
352
|
-
type:
|
|
352
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
353
353
|
isOptional: false;
|
|
354
354
|
};
|
|
355
355
|
status: {
|
|
356
|
-
type:
|
|
356
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
357
357
|
isOptional: false;
|
|
358
358
|
};
|
|
359
|
-
}>,
|
|
359
|
+
}>, _lssm_lib_schema155.SchemaModel<{
|
|
360
360
|
id: {
|
|
361
|
-
type:
|
|
361
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
362
362
|
isOptional: false;
|
|
363
363
|
};
|
|
364
364
|
key: {
|
|
365
|
-
type:
|
|
365
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
366
366
|
isOptional: false;
|
|
367
367
|
};
|
|
368
368
|
name: {
|
|
369
|
-
type:
|
|
369
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
370
370
|
isOptional: false;
|
|
371
371
|
};
|
|
372
372
|
description: {
|
|
373
|
-
type:
|
|
373
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
374
374
|
isOptional: true;
|
|
375
375
|
};
|
|
376
376
|
status: {
|
|
377
|
-
type:
|
|
377
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
378
378
|
isOptional: false;
|
|
379
379
|
};
|
|
380
380
|
defaultValue: {
|
|
381
|
-
type:
|
|
381
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
382
382
|
isOptional: false;
|
|
383
383
|
};
|
|
384
384
|
variants: {
|
|
385
|
-
type:
|
|
385
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
386
386
|
isOptional: true;
|
|
387
387
|
};
|
|
388
388
|
orgId: {
|
|
389
|
-
type:
|
|
389
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
390
390
|
isOptional: true;
|
|
391
391
|
};
|
|
392
392
|
tags: {
|
|
393
|
-
type:
|
|
393
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
394
394
|
isOptional: true;
|
|
395
395
|
};
|
|
396
396
|
createdAt: {
|
|
397
|
-
type:
|
|
397
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
398
398
|
isOptional: false;
|
|
399
399
|
};
|
|
400
400
|
updatedAt: {
|
|
401
|
-
type:
|
|
401
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
402
402
|
isOptional: false;
|
|
403
403
|
};
|
|
404
404
|
}>, undefined>;
|
|
405
405
|
/**
|
|
406
406
|
* Get a feature flag by key.
|
|
407
407
|
*/
|
|
408
|
-
declare const GetFlagContract: _lssm_lib_contracts21.ContractSpec<
|
|
408
|
+
declare const GetFlagContract: _lssm_lib_contracts21.ContractSpec<_lssm_lib_schema155.SchemaModel<{
|
|
409
409
|
key: {
|
|
410
|
-
type:
|
|
410
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
411
411
|
isOptional: false;
|
|
412
412
|
};
|
|
413
413
|
orgId: {
|
|
414
|
-
type:
|
|
414
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
415
415
|
isOptional: true;
|
|
416
416
|
};
|
|
417
|
-
}>,
|
|
417
|
+
}>, _lssm_lib_schema155.SchemaModel<{
|
|
418
418
|
id: {
|
|
419
|
-
type:
|
|
419
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
420
420
|
isOptional: false;
|
|
421
421
|
};
|
|
422
422
|
key: {
|
|
423
|
-
type:
|
|
423
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
424
424
|
isOptional: false;
|
|
425
425
|
};
|
|
426
426
|
name: {
|
|
427
|
-
type:
|
|
427
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
428
428
|
isOptional: false;
|
|
429
429
|
};
|
|
430
430
|
description: {
|
|
431
|
-
type:
|
|
431
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
432
432
|
isOptional: true;
|
|
433
433
|
};
|
|
434
434
|
status: {
|
|
435
|
-
type:
|
|
435
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
436
436
|
isOptional: false;
|
|
437
437
|
};
|
|
438
438
|
defaultValue: {
|
|
439
|
-
type:
|
|
439
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
440
440
|
isOptional: false;
|
|
441
441
|
};
|
|
442
442
|
variants: {
|
|
443
|
-
type:
|
|
443
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
444
444
|
isOptional: true;
|
|
445
445
|
};
|
|
446
446
|
orgId: {
|
|
447
|
-
type:
|
|
447
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
448
448
|
isOptional: true;
|
|
449
449
|
};
|
|
450
450
|
tags: {
|
|
451
|
-
type:
|
|
451
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
452
452
|
isOptional: true;
|
|
453
453
|
};
|
|
454
454
|
createdAt: {
|
|
455
|
-
type:
|
|
455
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
456
456
|
isOptional: false;
|
|
457
457
|
};
|
|
458
458
|
updatedAt: {
|
|
459
|
-
type:
|
|
459
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
460
460
|
isOptional: false;
|
|
461
461
|
};
|
|
462
462
|
}>, undefined>;
|
|
463
463
|
/**
|
|
464
464
|
* List feature flags.
|
|
465
465
|
*/
|
|
466
|
-
declare const ListFlagsContract: _lssm_lib_contracts21.ContractSpec<
|
|
466
|
+
declare const ListFlagsContract: _lssm_lib_contracts21.ContractSpec<_lssm_lib_schema155.SchemaModel<{
|
|
467
467
|
orgId: {
|
|
468
|
-
type:
|
|
468
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
469
469
|
isOptional: true;
|
|
470
470
|
};
|
|
471
471
|
status: {
|
|
472
|
-
type:
|
|
472
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
473
473
|
isOptional: true;
|
|
474
474
|
};
|
|
475
475
|
tags: {
|
|
476
|
-
type:
|
|
476
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
477
477
|
isOptional: true;
|
|
478
478
|
};
|
|
479
479
|
limit: {
|
|
480
|
-
type:
|
|
480
|
+
type: _lssm_lib_schema155.FieldType<number, number>;
|
|
481
481
|
isOptional: true;
|
|
482
482
|
};
|
|
483
483
|
offset: {
|
|
484
|
-
type:
|
|
484
|
+
type: _lssm_lib_schema155.FieldType<number, number>;
|
|
485
485
|
isOptional: true;
|
|
486
486
|
};
|
|
487
|
-
}>,
|
|
487
|
+
}>, _lssm_lib_schema155.SchemaModel<{
|
|
488
488
|
flags: {
|
|
489
|
-
type:
|
|
489
|
+
type: _lssm_lib_schema155.SchemaModel<{
|
|
490
490
|
id: {
|
|
491
|
-
type:
|
|
491
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
492
492
|
isOptional: false;
|
|
493
493
|
};
|
|
494
494
|
key: {
|
|
495
|
-
type:
|
|
495
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
496
496
|
isOptional: false;
|
|
497
497
|
};
|
|
498
498
|
name: {
|
|
499
|
-
type:
|
|
499
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
500
500
|
isOptional: false;
|
|
501
501
|
};
|
|
502
502
|
description: {
|
|
503
|
-
type:
|
|
503
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
504
504
|
isOptional: true;
|
|
505
505
|
};
|
|
506
506
|
status: {
|
|
507
|
-
type:
|
|
507
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
508
508
|
isOptional: false;
|
|
509
509
|
};
|
|
510
510
|
defaultValue: {
|
|
511
|
-
type:
|
|
511
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
512
512
|
isOptional: false;
|
|
513
513
|
};
|
|
514
514
|
variants: {
|
|
515
|
-
type:
|
|
515
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
516
516
|
isOptional: true;
|
|
517
517
|
};
|
|
518
518
|
orgId: {
|
|
519
|
-
type:
|
|
519
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
520
520
|
isOptional: true;
|
|
521
521
|
};
|
|
522
522
|
tags: {
|
|
523
|
-
type:
|
|
523
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
524
524
|
isOptional: true;
|
|
525
525
|
};
|
|
526
526
|
createdAt: {
|
|
527
|
-
type:
|
|
527
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
528
528
|
isOptional: false;
|
|
529
529
|
};
|
|
530
530
|
updatedAt: {
|
|
531
|
-
type:
|
|
531
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
532
532
|
isOptional: false;
|
|
533
533
|
};
|
|
534
534
|
}>;
|
|
@@ -536,469 +536,469 @@ declare const ListFlagsContract: _lssm_lib_contracts21.ContractSpec<_lssm_lib_sc
|
|
|
536
536
|
isOptional: false;
|
|
537
537
|
};
|
|
538
538
|
total: {
|
|
539
|
-
type:
|
|
539
|
+
type: _lssm_lib_schema155.FieldType<number, number>;
|
|
540
540
|
isOptional: false;
|
|
541
541
|
};
|
|
542
542
|
}>, undefined>;
|
|
543
543
|
/**
|
|
544
544
|
* Evaluate a feature flag.
|
|
545
545
|
*/
|
|
546
|
-
declare const EvaluateFlagContract: _lssm_lib_contracts21.ContractSpec<
|
|
546
|
+
declare const EvaluateFlagContract: _lssm_lib_contracts21.ContractSpec<_lssm_lib_schema155.SchemaModel<{
|
|
547
547
|
key: {
|
|
548
|
-
type:
|
|
548
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
549
549
|
isOptional: false;
|
|
550
550
|
};
|
|
551
551
|
context: {
|
|
552
|
-
type:
|
|
552
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
553
553
|
isOptional: false;
|
|
554
554
|
};
|
|
555
|
-
}>,
|
|
555
|
+
}>, _lssm_lib_schema155.SchemaModel<{
|
|
556
556
|
enabled: {
|
|
557
|
-
type:
|
|
557
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
558
558
|
isOptional: false;
|
|
559
559
|
};
|
|
560
560
|
variant: {
|
|
561
|
-
type:
|
|
561
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
562
562
|
isOptional: true;
|
|
563
563
|
};
|
|
564
564
|
reason: {
|
|
565
|
-
type:
|
|
565
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
566
566
|
isOptional: false;
|
|
567
567
|
};
|
|
568
568
|
ruleId: {
|
|
569
|
-
type:
|
|
569
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
570
570
|
isOptional: true;
|
|
571
571
|
};
|
|
572
572
|
experimentId: {
|
|
573
|
-
type:
|
|
573
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
574
574
|
isOptional: true;
|
|
575
575
|
};
|
|
576
576
|
}>, undefined>;
|
|
577
577
|
/**
|
|
578
578
|
* Create a targeting rule.
|
|
579
579
|
*/
|
|
580
|
-
declare const CreateRuleContract: _lssm_lib_contracts21.ContractSpec<
|
|
580
|
+
declare const CreateRuleContract: _lssm_lib_contracts21.ContractSpec<_lssm_lib_schema155.SchemaModel<{
|
|
581
581
|
flagId: {
|
|
582
|
-
type:
|
|
582
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
583
583
|
isOptional: false;
|
|
584
584
|
};
|
|
585
585
|
name: {
|
|
586
|
-
type:
|
|
586
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
587
587
|
isOptional: true;
|
|
588
588
|
};
|
|
589
589
|
priority: {
|
|
590
|
-
type:
|
|
590
|
+
type: _lssm_lib_schema155.FieldType<number, number>;
|
|
591
591
|
isOptional: true;
|
|
592
592
|
};
|
|
593
593
|
attribute: {
|
|
594
|
-
type:
|
|
594
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
595
595
|
isOptional: false;
|
|
596
596
|
};
|
|
597
597
|
operator: {
|
|
598
|
-
type:
|
|
598
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
599
599
|
isOptional: false;
|
|
600
600
|
};
|
|
601
601
|
value: {
|
|
602
|
-
type:
|
|
602
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
603
603
|
isOptional: false;
|
|
604
604
|
};
|
|
605
605
|
rolloutPercentage: {
|
|
606
|
-
type:
|
|
606
|
+
type: _lssm_lib_schema155.FieldType<number, number>;
|
|
607
607
|
isOptional: true;
|
|
608
608
|
};
|
|
609
609
|
serveValue: {
|
|
610
|
-
type:
|
|
610
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
611
611
|
isOptional: true;
|
|
612
612
|
};
|
|
613
613
|
serveVariant: {
|
|
614
|
-
type:
|
|
614
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
615
615
|
isOptional: true;
|
|
616
616
|
};
|
|
617
|
-
}>,
|
|
617
|
+
}>, _lssm_lib_schema155.SchemaModel<{
|
|
618
618
|
id: {
|
|
619
|
-
type:
|
|
619
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
620
620
|
isOptional: false;
|
|
621
621
|
};
|
|
622
622
|
flagId: {
|
|
623
|
-
type:
|
|
623
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
624
624
|
isOptional: false;
|
|
625
625
|
};
|
|
626
626
|
name: {
|
|
627
|
-
type:
|
|
627
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
628
628
|
isOptional: true;
|
|
629
629
|
};
|
|
630
630
|
priority: {
|
|
631
|
-
type:
|
|
631
|
+
type: _lssm_lib_schema155.FieldType<number, number>;
|
|
632
632
|
isOptional: false;
|
|
633
633
|
};
|
|
634
634
|
enabled: {
|
|
635
|
-
type:
|
|
635
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
636
636
|
isOptional: false;
|
|
637
637
|
};
|
|
638
638
|
attribute: {
|
|
639
|
-
type:
|
|
639
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
640
640
|
isOptional: false;
|
|
641
641
|
};
|
|
642
642
|
operator: {
|
|
643
|
-
type:
|
|
643
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
644
644
|
isOptional: false;
|
|
645
645
|
};
|
|
646
646
|
value: {
|
|
647
|
-
type:
|
|
647
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
648
648
|
isOptional: false;
|
|
649
649
|
};
|
|
650
650
|
rolloutPercentage: {
|
|
651
|
-
type:
|
|
651
|
+
type: _lssm_lib_schema155.FieldType<number, number>;
|
|
652
652
|
isOptional: true;
|
|
653
653
|
};
|
|
654
654
|
serveValue: {
|
|
655
|
-
type:
|
|
655
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
656
656
|
isOptional: true;
|
|
657
657
|
};
|
|
658
658
|
serveVariant: {
|
|
659
|
-
type:
|
|
659
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
660
660
|
isOptional: true;
|
|
661
661
|
};
|
|
662
662
|
}>, undefined>;
|
|
663
663
|
/**
|
|
664
664
|
* Delete a targeting rule.
|
|
665
665
|
*/
|
|
666
|
-
declare const DeleteRuleContract: _lssm_lib_contracts21.ContractSpec<
|
|
666
|
+
declare const DeleteRuleContract: _lssm_lib_contracts21.ContractSpec<_lssm_lib_schema155.SchemaModel<{
|
|
667
667
|
ruleId: {
|
|
668
|
-
type:
|
|
668
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
669
669
|
isOptional: false;
|
|
670
670
|
};
|
|
671
|
-
}>,
|
|
671
|
+
}>, _lssm_lib_schema155.SchemaModel<{
|
|
672
672
|
success: {
|
|
673
|
-
type:
|
|
673
|
+
type: _lssm_lib_schema155.FieldType<boolean, boolean>;
|
|
674
674
|
isOptional: false;
|
|
675
675
|
};
|
|
676
676
|
}>, undefined>;
|
|
677
677
|
/**
|
|
678
678
|
* Create an experiment.
|
|
679
679
|
*/
|
|
680
|
-
declare const CreateExperimentContract: _lssm_lib_contracts21.ContractSpec<
|
|
680
|
+
declare const CreateExperimentContract: _lssm_lib_contracts21.ContractSpec<_lssm_lib_schema155.SchemaModel<{
|
|
681
681
|
key: {
|
|
682
|
-
type:
|
|
682
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
683
683
|
isOptional: false;
|
|
684
684
|
};
|
|
685
685
|
name: {
|
|
686
|
-
type:
|
|
686
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
687
687
|
isOptional: false;
|
|
688
688
|
};
|
|
689
689
|
description: {
|
|
690
|
-
type:
|
|
690
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
691
691
|
isOptional: true;
|
|
692
692
|
};
|
|
693
693
|
hypothesis: {
|
|
694
|
-
type:
|
|
694
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
695
695
|
isOptional: true;
|
|
696
696
|
};
|
|
697
697
|
flagId: {
|
|
698
|
-
type:
|
|
698
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
699
699
|
isOptional: false;
|
|
700
700
|
};
|
|
701
701
|
variants: {
|
|
702
|
-
type:
|
|
702
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
703
703
|
isOptional: false;
|
|
704
704
|
};
|
|
705
705
|
metrics: {
|
|
706
|
-
type:
|
|
706
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
707
707
|
isOptional: true;
|
|
708
708
|
};
|
|
709
709
|
audiencePercentage: {
|
|
710
|
-
type:
|
|
710
|
+
type: _lssm_lib_schema155.FieldType<number, number>;
|
|
711
711
|
isOptional: true;
|
|
712
712
|
};
|
|
713
713
|
scheduledStartAt: {
|
|
714
|
-
type:
|
|
714
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
715
715
|
isOptional: true;
|
|
716
716
|
};
|
|
717
717
|
scheduledEndAt: {
|
|
718
|
-
type:
|
|
718
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
719
719
|
isOptional: true;
|
|
720
720
|
};
|
|
721
721
|
orgId: {
|
|
722
|
-
type:
|
|
722
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
723
723
|
isOptional: true;
|
|
724
724
|
};
|
|
725
|
-
}>,
|
|
725
|
+
}>, _lssm_lib_schema155.SchemaModel<{
|
|
726
726
|
id: {
|
|
727
|
-
type:
|
|
727
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
728
728
|
isOptional: false;
|
|
729
729
|
};
|
|
730
730
|
key: {
|
|
731
|
-
type:
|
|
731
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
732
732
|
isOptional: false;
|
|
733
733
|
};
|
|
734
734
|
name: {
|
|
735
|
-
type:
|
|
735
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
736
736
|
isOptional: false;
|
|
737
737
|
};
|
|
738
738
|
description: {
|
|
739
|
-
type:
|
|
739
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
740
740
|
isOptional: true;
|
|
741
741
|
};
|
|
742
742
|
hypothesis: {
|
|
743
|
-
type:
|
|
743
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
744
744
|
isOptional: true;
|
|
745
745
|
};
|
|
746
746
|
flagId: {
|
|
747
|
-
type:
|
|
747
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
748
748
|
isOptional: false;
|
|
749
749
|
};
|
|
750
750
|
status: {
|
|
751
|
-
type:
|
|
751
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
752
752
|
isOptional: false;
|
|
753
753
|
};
|
|
754
754
|
variants: {
|
|
755
|
-
type:
|
|
755
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
756
756
|
isOptional: false;
|
|
757
757
|
};
|
|
758
758
|
metrics: {
|
|
759
|
-
type:
|
|
759
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
760
760
|
isOptional: true;
|
|
761
761
|
};
|
|
762
762
|
audiencePercentage: {
|
|
763
|
-
type:
|
|
763
|
+
type: _lssm_lib_schema155.FieldType<number, number>;
|
|
764
764
|
isOptional: false;
|
|
765
765
|
};
|
|
766
766
|
startedAt: {
|
|
767
|
-
type:
|
|
767
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
768
768
|
isOptional: true;
|
|
769
769
|
};
|
|
770
770
|
endedAt: {
|
|
771
|
-
type:
|
|
771
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
772
772
|
isOptional: true;
|
|
773
773
|
};
|
|
774
774
|
winningVariant: {
|
|
775
|
-
type:
|
|
775
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
776
776
|
isOptional: true;
|
|
777
777
|
};
|
|
778
778
|
results: {
|
|
779
|
-
type:
|
|
779
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
780
780
|
isOptional: true;
|
|
781
781
|
};
|
|
782
782
|
createdAt: {
|
|
783
|
-
type:
|
|
783
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
784
784
|
isOptional: false;
|
|
785
785
|
};
|
|
786
786
|
}>, undefined>;
|
|
787
787
|
/**
|
|
788
788
|
* Start an experiment.
|
|
789
789
|
*/
|
|
790
|
-
declare const StartExperimentContract: _lssm_lib_contracts21.ContractSpec<
|
|
790
|
+
declare const StartExperimentContract: _lssm_lib_contracts21.ContractSpec<_lssm_lib_schema155.SchemaModel<{
|
|
791
791
|
experimentId: {
|
|
792
|
-
type:
|
|
792
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
793
793
|
isOptional: false;
|
|
794
794
|
};
|
|
795
|
-
}>,
|
|
795
|
+
}>, _lssm_lib_schema155.SchemaModel<{
|
|
796
796
|
id: {
|
|
797
|
-
type:
|
|
797
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
798
798
|
isOptional: false;
|
|
799
799
|
};
|
|
800
800
|
key: {
|
|
801
|
-
type:
|
|
801
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
802
802
|
isOptional: false;
|
|
803
803
|
};
|
|
804
804
|
name: {
|
|
805
|
-
type:
|
|
805
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
806
806
|
isOptional: false;
|
|
807
807
|
};
|
|
808
808
|
description: {
|
|
809
|
-
type:
|
|
809
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
810
810
|
isOptional: true;
|
|
811
811
|
};
|
|
812
812
|
hypothesis: {
|
|
813
|
-
type:
|
|
813
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
814
814
|
isOptional: true;
|
|
815
815
|
};
|
|
816
816
|
flagId: {
|
|
817
|
-
type:
|
|
817
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
818
818
|
isOptional: false;
|
|
819
819
|
};
|
|
820
820
|
status: {
|
|
821
|
-
type:
|
|
821
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
822
822
|
isOptional: false;
|
|
823
823
|
};
|
|
824
824
|
variants: {
|
|
825
|
-
type:
|
|
825
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
826
826
|
isOptional: false;
|
|
827
827
|
};
|
|
828
828
|
metrics: {
|
|
829
|
-
type:
|
|
829
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
830
830
|
isOptional: true;
|
|
831
831
|
};
|
|
832
832
|
audiencePercentage: {
|
|
833
|
-
type:
|
|
833
|
+
type: _lssm_lib_schema155.FieldType<number, number>;
|
|
834
834
|
isOptional: false;
|
|
835
835
|
};
|
|
836
836
|
startedAt: {
|
|
837
|
-
type:
|
|
837
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
838
838
|
isOptional: true;
|
|
839
839
|
};
|
|
840
840
|
endedAt: {
|
|
841
|
-
type:
|
|
841
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
842
842
|
isOptional: true;
|
|
843
843
|
};
|
|
844
844
|
winningVariant: {
|
|
845
|
-
type:
|
|
845
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
846
846
|
isOptional: true;
|
|
847
847
|
};
|
|
848
848
|
results: {
|
|
849
|
-
type:
|
|
849
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
850
850
|
isOptional: true;
|
|
851
851
|
};
|
|
852
852
|
createdAt: {
|
|
853
|
-
type:
|
|
853
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
854
854
|
isOptional: false;
|
|
855
855
|
};
|
|
856
856
|
}>, undefined>;
|
|
857
857
|
/**
|
|
858
858
|
* Stop an experiment.
|
|
859
859
|
*/
|
|
860
|
-
declare const StopExperimentContract: _lssm_lib_contracts21.ContractSpec<
|
|
860
|
+
declare const StopExperimentContract: _lssm_lib_contracts21.ContractSpec<_lssm_lib_schema155.SchemaModel<{
|
|
861
861
|
experimentId: {
|
|
862
|
-
type:
|
|
862
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
863
863
|
isOptional: false;
|
|
864
864
|
};
|
|
865
865
|
reason: {
|
|
866
|
-
type:
|
|
866
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
867
867
|
isOptional: false;
|
|
868
868
|
};
|
|
869
869
|
winningVariant: {
|
|
870
|
-
type:
|
|
870
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
871
871
|
isOptional: true;
|
|
872
872
|
};
|
|
873
|
-
}>,
|
|
873
|
+
}>, _lssm_lib_schema155.SchemaModel<{
|
|
874
874
|
id: {
|
|
875
|
-
type:
|
|
875
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
876
876
|
isOptional: false;
|
|
877
877
|
};
|
|
878
878
|
key: {
|
|
879
|
-
type:
|
|
879
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
880
880
|
isOptional: false;
|
|
881
881
|
};
|
|
882
882
|
name: {
|
|
883
|
-
type:
|
|
883
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
884
884
|
isOptional: false;
|
|
885
885
|
};
|
|
886
886
|
description: {
|
|
887
|
-
type:
|
|
887
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
888
888
|
isOptional: true;
|
|
889
889
|
};
|
|
890
890
|
hypothesis: {
|
|
891
|
-
type:
|
|
891
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
892
892
|
isOptional: true;
|
|
893
893
|
};
|
|
894
894
|
flagId: {
|
|
895
|
-
type:
|
|
895
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
896
896
|
isOptional: false;
|
|
897
897
|
};
|
|
898
898
|
status: {
|
|
899
|
-
type:
|
|
899
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
900
900
|
isOptional: false;
|
|
901
901
|
};
|
|
902
902
|
variants: {
|
|
903
|
-
type:
|
|
903
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
904
904
|
isOptional: false;
|
|
905
905
|
};
|
|
906
906
|
metrics: {
|
|
907
|
-
type:
|
|
907
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
908
908
|
isOptional: true;
|
|
909
909
|
};
|
|
910
910
|
audiencePercentage: {
|
|
911
|
-
type:
|
|
911
|
+
type: _lssm_lib_schema155.FieldType<number, number>;
|
|
912
912
|
isOptional: false;
|
|
913
913
|
};
|
|
914
914
|
startedAt: {
|
|
915
|
-
type:
|
|
915
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
916
916
|
isOptional: true;
|
|
917
917
|
};
|
|
918
918
|
endedAt: {
|
|
919
|
-
type:
|
|
919
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
920
920
|
isOptional: true;
|
|
921
921
|
};
|
|
922
922
|
winningVariant: {
|
|
923
|
-
type:
|
|
923
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
924
924
|
isOptional: true;
|
|
925
925
|
};
|
|
926
926
|
results: {
|
|
927
|
-
type:
|
|
927
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
928
928
|
isOptional: true;
|
|
929
929
|
};
|
|
930
930
|
createdAt: {
|
|
931
|
-
type:
|
|
931
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
932
932
|
isOptional: false;
|
|
933
933
|
};
|
|
934
934
|
}>, undefined>;
|
|
935
935
|
/**
|
|
936
936
|
* Get an experiment.
|
|
937
937
|
*/
|
|
938
|
-
declare const GetExperimentContract: _lssm_lib_contracts21.ContractSpec<
|
|
938
|
+
declare const GetExperimentContract: _lssm_lib_contracts21.ContractSpec<_lssm_lib_schema155.SchemaModel<{
|
|
939
939
|
experimentId: {
|
|
940
|
-
type:
|
|
940
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
941
941
|
isOptional: false;
|
|
942
942
|
};
|
|
943
|
-
}>,
|
|
943
|
+
}>, _lssm_lib_schema155.SchemaModel<{
|
|
944
944
|
id: {
|
|
945
|
-
type:
|
|
945
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
946
946
|
isOptional: false;
|
|
947
947
|
};
|
|
948
948
|
key: {
|
|
949
|
-
type:
|
|
949
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
950
950
|
isOptional: false;
|
|
951
951
|
};
|
|
952
952
|
name: {
|
|
953
|
-
type:
|
|
953
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
954
954
|
isOptional: false;
|
|
955
955
|
};
|
|
956
956
|
description: {
|
|
957
|
-
type:
|
|
957
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
958
958
|
isOptional: true;
|
|
959
959
|
};
|
|
960
960
|
hypothesis: {
|
|
961
|
-
type:
|
|
961
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
962
962
|
isOptional: true;
|
|
963
963
|
};
|
|
964
964
|
flagId: {
|
|
965
|
-
type:
|
|
965
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
966
966
|
isOptional: false;
|
|
967
967
|
};
|
|
968
968
|
status: {
|
|
969
|
-
type:
|
|
969
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
970
970
|
isOptional: false;
|
|
971
971
|
};
|
|
972
972
|
variants: {
|
|
973
|
-
type:
|
|
973
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
974
974
|
isOptional: false;
|
|
975
975
|
};
|
|
976
976
|
metrics: {
|
|
977
|
-
type:
|
|
977
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
978
978
|
isOptional: true;
|
|
979
979
|
};
|
|
980
980
|
audiencePercentage: {
|
|
981
|
-
type:
|
|
981
|
+
type: _lssm_lib_schema155.FieldType<number, number>;
|
|
982
982
|
isOptional: false;
|
|
983
983
|
};
|
|
984
984
|
startedAt: {
|
|
985
|
-
type:
|
|
985
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
986
986
|
isOptional: true;
|
|
987
987
|
};
|
|
988
988
|
endedAt: {
|
|
989
|
-
type:
|
|
989
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
990
990
|
isOptional: true;
|
|
991
991
|
};
|
|
992
992
|
winningVariant: {
|
|
993
|
-
type:
|
|
993
|
+
type: _lssm_lib_schema155.FieldType<string, string>;
|
|
994
994
|
isOptional: true;
|
|
995
995
|
};
|
|
996
996
|
results: {
|
|
997
|
-
type:
|
|
997
|
+
type: _lssm_lib_schema155.FieldType<unknown, unknown>;
|
|
998
998
|
isOptional: true;
|
|
999
999
|
};
|
|
1000
1000
|
createdAt: {
|
|
1001
|
-
type:
|
|
1001
|
+
type: _lssm_lib_schema155.FieldType<Date, string>;
|
|
1002
1002
|
isOptional: false;
|
|
1003
1003
|
};
|
|
1004
1004
|
}>, undefined>;
|