@lssm/lib.feature-flags 0.0.0-canary-20251217062943 → 0.0.0-canary-20251217063201
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/entities/index.d.ts +158 -158
- package/dist/events.d.ts +157 -157
- package/package.json +5 -5
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,196 +1,196 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
2
2
|
import { ModuleSchemaContribution } from "@lssm/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/entities/index.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Feature flag status enum.
|
|
7
7
|
*/
|
|
8
|
-
declare const FlagStatusEnum:
|
|
8
|
+
declare const FlagStatusEnum: _lssm_lib_schema0.EntityEnumDef;
|
|
9
9
|
/**
|
|
10
10
|
* Targeting rule operator enum.
|
|
11
11
|
*/
|
|
12
|
-
declare const RuleOperatorEnum:
|
|
12
|
+
declare const RuleOperatorEnum: _lssm_lib_schema0.EntityEnumDef;
|
|
13
13
|
/**
|
|
14
14
|
* Experiment status enum.
|
|
15
15
|
*/
|
|
16
|
-
declare const ExperimentStatusEnum:
|
|
16
|
+
declare const ExperimentStatusEnum: _lssm_lib_schema0.EntityEnumDef;
|
|
17
17
|
/**
|
|
18
18
|
* FeatureFlag entity - defines a feature flag.
|
|
19
19
|
*/
|
|
20
|
-
declare const FeatureFlagEntity:
|
|
21
|
-
id:
|
|
22
|
-
key:
|
|
23
|
-
name:
|
|
24
|
-
description:
|
|
25
|
-
status:
|
|
26
|
-
defaultValue:
|
|
27
|
-
variants:
|
|
28
|
-
orgId:
|
|
29
|
-
tags:
|
|
30
|
-
metadata:
|
|
31
|
-
createdAt:
|
|
32
|
-
updatedAt:
|
|
33
|
-
targetingRules:
|
|
34
|
-
experiments:
|
|
35
|
-
evaluations:
|
|
20
|
+
declare const FeatureFlagEntity: _lssm_lib_schema0.EntitySpec<{
|
|
21
|
+
id: _lssm_lib_schema0.EntityScalarField;
|
|
22
|
+
key: _lssm_lib_schema0.EntityScalarField;
|
|
23
|
+
name: _lssm_lib_schema0.EntityScalarField;
|
|
24
|
+
description: _lssm_lib_schema0.EntityScalarField;
|
|
25
|
+
status: _lssm_lib_schema0.EntityEnumField;
|
|
26
|
+
defaultValue: _lssm_lib_schema0.EntityScalarField;
|
|
27
|
+
variants: _lssm_lib_schema0.EntityScalarField;
|
|
28
|
+
orgId: _lssm_lib_schema0.EntityScalarField;
|
|
29
|
+
tags: _lssm_lib_schema0.EntityScalarField;
|
|
30
|
+
metadata: _lssm_lib_schema0.EntityScalarField;
|
|
31
|
+
createdAt: _lssm_lib_schema0.EntityScalarField;
|
|
32
|
+
updatedAt: _lssm_lib_schema0.EntityScalarField;
|
|
33
|
+
targetingRules: _lssm_lib_schema0.EntityRelationField;
|
|
34
|
+
experiments: _lssm_lib_schema0.EntityRelationField;
|
|
35
|
+
evaluations: _lssm_lib_schema0.EntityRelationField;
|
|
36
36
|
}>;
|
|
37
37
|
/**
|
|
38
38
|
* FlagTargetingRule entity - conditions for targeting.
|
|
39
39
|
*/
|
|
40
|
-
declare const FlagTargetingRuleEntity:
|
|
41
|
-
id:
|
|
42
|
-
flagId:
|
|
43
|
-
name:
|
|
44
|
-
priority:
|
|
45
|
-
enabled:
|
|
46
|
-
attribute:
|
|
47
|
-
operator:
|
|
48
|
-
value:
|
|
49
|
-
rolloutPercentage:
|
|
50
|
-
serveValue:
|
|
51
|
-
serveVariant:
|
|
52
|
-
createdAt:
|
|
53
|
-
updatedAt:
|
|
54
|
-
flag:
|
|
40
|
+
declare const FlagTargetingRuleEntity: _lssm_lib_schema0.EntitySpec<{
|
|
41
|
+
id: _lssm_lib_schema0.EntityScalarField;
|
|
42
|
+
flagId: _lssm_lib_schema0.EntityScalarField;
|
|
43
|
+
name: _lssm_lib_schema0.EntityScalarField;
|
|
44
|
+
priority: _lssm_lib_schema0.EntityScalarField;
|
|
45
|
+
enabled: _lssm_lib_schema0.EntityScalarField;
|
|
46
|
+
attribute: _lssm_lib_schema0.EntityScalarField;
|
|
47
|
+
operator: _lssm_lib_schema0.EntityEnumField;
|
|
48
|
+
value: _lssm_lib_schema0.EntityScalarField;
|
|
49
|
+
rolloutPercentage: _lssm_lib_schema0.EntityScalarField;
|
|
50
|
+
serveValue: _lssm_lib_schema0.EntityScalarField;
|
|
51
|
+
serveVariant: _lssm_lib_schema0.EntityScalarField;
|
|
52
|
+
createdAt: _lssm_lib_schema0.EntityScalarField;
|
|
53
|
+
updatedAt: _lssm_lib_schema0.EntityScalarField;
|
|
54
|
+
flag: _lssm_lib_schema0.EntityRelationField;
|
|
55
55
|
}>;
|
|
56
56
|
/**
|
|
57
57
|
* Experiment entity - A/B test configuration.
|
|
58
58
|
*/
|
|
59
|
-
declare const ExperimentEntity:
|
|
60
|
-
id:
|
|
61
|
-
key:
|
|
62
|
-
name:
|
|
63
|
-
description:
|
|
64
|
-
hypothesis:
|
|
65
|
-
flagId:
|
|
66
|
-
status:
|
|
67
|
-
variants:
|
|
68
|
-
metrics:
|
|
69
|
-
audiencePercentage:
|
|
70
|
-
audienceFilter:
|
|
71
|
-
scheduledStartAt:
|
|
72
|
-
scheduledEndAt:
|
|
73
|
-
startedAt:
|
|
74
|
-
endedAt:
|
|
75
|
-
winningVariant:
|
|
76
|
-
results:
|
|
77
|
-
orgId:
|
|
78
|
-
createdAt:
|
|
79
|
-
updatedAt:
|
|
80
|
-
flag:
|
|
81
|
-
assignments:
|
|
59
|
+
declare const ExperimentEntity: _lssm_lib_schema0.EntitySpec<{
|
|
60
|
+
id: _lssm_lib_schema0.EntityScalarField;
|
|
61
|
+
key: _lssm_lib_schema0.EntityScalarField;
|
|
62
|
+
name: _lssm_lib_schema0.EntityScalarField;
|
|
63
|
+
description: _lssm_lib_schema0.EntityScalarField;
|
|
64
|
+
hypothesis: _lssm_lib_schema0.EntityScalarField;
|
|
65
|
+
flagId: _lssm_lib_schema0.EntityScalarField;
|
|
66
|
+
status: _lssm_lib_schema0.EntityEnumField;
|
|
67
|
+
variants: _lssm_lib_schema0.EntityScalarField;
|
|
68
|
+
metrics: _lssm_lib_schema0.EntityScalarField;
|
|
69
|
+
audiencePercentage: _lssm_lib_schema0.EntityScalarField;
|
|
70
|
+
audienceFilter: _lssm_lib_schema0.EntityScalarField;
|
|
71
|
+
scheduledStartAt: _lssm_lib_schema0.EntityScalarField;
|
|
72
|
+
scheduledEndAt: _lssm_lib_schema0.EntityScalarField;
|
|
73
|
+
startedAt: _lssm_lib_schema0.EntityScalarField;
|
|
74
|
+
endedAt: _lssm_lib_schema0.EntityScalarField;
|
|
75
|
+
winningVariant: _lssm_lib_schema0.EntityScalarField;
|
|
76
|
+
results: _lssm_lib_schema0.EntityScalarField;
|
|
77
|
+
orgId: _lssm_lib_schema0.EntityScalarField;
|
|
78
|
+
createdAt: _lssm_lib_schema0.EntityScalarField;
|
|
79
|
+
updatedAt: _lssm_lib_schema0.EntityScalarField;
|
|
80
|
+
flag: _lssm_lib_schema0.EntityRelationField;
|
|
81
|
+
assignments: _lssm_lib_schema0.EntityRelationField;
|
|
82
82
|
}>;
|
|
83
83
|
/**
|
|
84
84
|
* ExperimentAssignment entity - tracks which variant a subject is assigned to.
|
|
85
85
|
*/
|
|
86
|
-
declare const ExperimentAssignmentEntity:
|
|
87
|
-
id:
|
|
88
|
-
experimentId:
|
|
89
|
-
subjectType:
|
|
90
|
-
subjectId:
|
|
91
|
-
variant:
|
|
92
|
-
bucket:
|
|
93
|
-
context:
|
|
94
|
-
assignedAt:
|
|
95
|
-
experiment:
|
|
86
|
+
declare const ExperimentAssignmentEntity: _lssm_lib_schema0.EntitySpec<{
|
|
87
|
+
id: _lssm_lib_schema0.EntityScalarField;
|
|
88
|
+
experimentId: _lssm_lib_schema0.EntityScalarField;
|
|
89
|
+
subjectType: _lssm_lib_schema0.EntityScalarField;
|
|
90
|
+
subjectId: _lssm_lib_schema0.EntityScalarField;
|
|
91
|
+
variant: _lssm_lib_schema0.EntityScalarField;
|
|
92
|
+
bucket: _lssm_lib_schema0.EntityScalarField;
|
|
93
|
+
context: _lssm_lib_schema0.EntityScalarField;
|
|
94
|
+
assignedAt: _lssm_lib_schema0.EntityScalarField;
|
|
95
|
+
experiment: _lssm_lib_schema0.EntityRelationField;
|
|
96
96
|
}>;
|
|
97
97
|
/**
|
|
98
98
|
* FlagEvaluation entity - evaluation log for analytics.
|
|
99
99
|
*/
|
|
100
|
-
declare const FlagEvaluationEntity:
|
|
101
|
-
id:
|
|
102
|
-
flagId:
|
|
103
|
-
flagKey:
|
|
104
|
-
subjectType:
|
|
105
|
-
subjectId:
|
|
106
|
-
result:
|
|
107
|
-
variant:
|
|
108
|
-
matchedRuleId:
|
|
109
|
-
reason:
|
|
110
|
-
context:
|
|
111
|
-
evaluatedAt:
|
|
112
|
-
flag:
|
|
100
|
+
declare const FlagEvaluationEntity: _lssm_lib_schema0.EntitySpec<{
|
|
101
|
+
id: _lssm_lib_schema0.EntityScalarField;
|
|
102
|
+
flagId: _lssm_lib_schema0.EntityScalarField;
|
|
103
|
+
flagKey: _lssm_lib_schema0.EntityScalarField;
|
|
104
|
+
subjectType: _lssm_lib_schema0.EntityScalarField;
|
|
105
|
+
subjectId: _lssm_lib_schema0.EntityScalarField;
|
|
106
|
+
result: _lssm_lib_schema0.EntityScalarField;
|
|
107
|
+
variant: _lssm_lib_schema0.EntityScalarField;
|
|
108
|
+
matchedRuleId: _lssm_lib_schema0.EntityScalarField;
|
|
109
|
+
reason: _lssm_lib_schema0.EntityScalarField;
|
|
110
|
+
context: _lssm_lib_schema0.EntityScalarField;
|
|
111
|
+
evaluatedAt: _lssm_lib_schema0.EntityScalarField;
|
|
112
|
+
flag: _lssm_lib_schema0.EntityRelationField;
|
|
113
113
|
}>;
|
|
114
114
|
/**
|
|
115
115
|
* All feature flag entities for schema composition.
|
|
116
116
|
*/
|
|
117
|
-
declare const featureFlagEntities: (
|
|
118
|
-
id:
|
|
119
|
-
key:
|
|
120
|
-
name:
|
|
121
|
-
description:
|
|
122
|
-
status:
|
|
123
|
-
defaultValue:
|
|
124
|
-
variants:
|
|
125
|
-
orgId:
|
|
126
|
-
tags:
|
|
127
|
-
metadata:
|
|
128
|
-
createdAt:
|
|
129
|
-
updatedAt:
|
|
130
|
-
targetingRules:
|
|
131
|
-
experiments:
|
|
132
|
-
evaluations:
|
|
133
|
-
}> |
|
|
134
|
-
id:
|
|
135
|
-
flagId:
|
|
136
|
-
name:
|
|
137
|
-
priority:
|
|
138
|
-
enabled:
|
|
139
|
-
attribute:
|
|
140
|
-
operator:
|
|
141
|
-
value:
|
|
142
|
-
rolloutPercentage:
|
|
143
|
-
serveValue:
|
|
144
|
-
serveVariant:
|
|
145
|
-
createdAt:
|
|
146
|
-
updatedAt:
|
|
147
|
-
flag:
|
|
148
|
-
}> |
|
|
149
|
-
id:
|
|
150
|
-
key:
|
|
151
|
-
name:
|
|
152
|
-
description:
|
|
153
|
-
hypothesis:
|
|
154
|
-
flagId:
|
|
155
|
-
status:
|
|
156
|
-
variants:
|
|
157
|
-
metrics:
|
|
158
|
-
audiencePercentage:
|
|
159
|
-
audienceFilter:
|
|
160
|
-
scheduledStartAt:
|
|
161
|
-
scheduledEndAt:
|
|
162
|
-
startedAt:
|
|
163
|
-
endedAt:
|
|
164
|
-
winningVariant:
|
|
165
|
-
results:
|
|
166
|
-
orgId:
|
|
167
|
-
createdAt:
|
|
168
|
-
updatedAt:
|
|
169
|
-
flag:
|
|
170
|
-
assignments:
|
|
171
|
-
}> |
|
|
172
|
-
id:
|
|
173
|
-
experimentId:
|
|
174
|
-
subjectType:
|
|
175
|
-
subjectId:
|
|
176
|
-
variant:
|
|
177
|
-
bucket:
|
|
178
|
-
context:
|
|
179
|
-
assignedAt:
|
|
180
|
-
experiment:
|
|
181
|
-
}> |
|
|
182
|
-
id:
|
|
183
|
-
flagId:
|
|
184
|
-
flagKey:
|
|
185
|
-
subjectType:
|
|
186
|
-
subjectId:
|
|
187
|
-
result:
|
|
188
|
-
variant:
|
|
189
|
-
matchedRuleId:
|
|
190
|
-
reason:
|
|
191
|
-
context:
|
|
192
|
-
evaluatedAt:
|
|
193
|
-
flag:
|
|
117
|
+
declare const featureFlagEntities: (_lssm_lib_schema0.EntitySpec<{
|
|
118
|
+
id: _lssm_lib_schema0.EntityScalarField;
|
|
119
|
+
key: _lssm_lib_schema0.EntityScalarField;
|
|
120
|
+
name: _lssm_lib_schema0.EntityScalarField;
|
|
121
|
+
description: _lssm_lib_schema0.EntityScalarField;
|
|
122
|
+
status: _lssm_lib_schema0.EntityEnumField;
|
|
123
|
+
defaultValue: _lssm_lib_schema0.EntityScalarField;
|
|
124
|
+
variants: _lssm_lib_schema0.EntityScalarField;
|
|
125
|
+
orgId: _lssm_lib_schema0.EntityScalarField;
|
|
126
|
+
tags: _lssm_lib_schema0.EntityScalarField;
|
|
127
|
+
metadata: _lssm_lib_schema0.EntityScalarField;
|
|
128
|
+
createdAt: _lssm_lib_schema0.EntityScalarField;
|
|
129
|
+
updatedAt: _lssm_lib_schema0.EntityScalarField;
|
|
130
|
+
targetingRules: _lssm_lib_schema0.EntityRelationField;
|
|
131
|
+
experiments: _lssm_lib_schema0.EntityRelationField;
|
|
132
|
+
evaluations: _lssm_lib_schema0.EntityRelationField;
|
|
133
|
+
}> | _lssm_lib_schema0.EntitySpec<{
|
|
134
|
+
id: _lssm_lib_schema0.EntityScalarField;
|
|
135
|
+
flagId: _lssm_lib_schema0.EntityScalarField;
|
|
136
|
+
name: _lssm_lib_schema0.EntityScalarField;
|
|
137
|
+
priority: _lssm_lib_schema0.EntityScalarField;
|
|
138
|
+
enabled: _lssm_lib_schema0.EntityScalarField;
|
|
139
|
+
attribute: _lssm_lib_schema0.EntityScalarField;
|
|
140
|
+
operator: _lssm_lib_schema0.EntityEnumField;
|
|
141
|
+
value: _lssm_lib_schema0.EntityScalarField;
|
|
142
|
+
rolloutPercentage: _lssm_lib_schema0.EntityScalarField;
|
|
143
|
+
serveValue: _lssm_lib_schema0.EntityScalarField;
|
|
144
|
+
serveVariant: _lssm_lib_schema0.EntityScalarField;
|
|
145
|
+
createdAt: _lssm_lib_schema0.EntityScalarField;
|
|
146
|
+
updatedAt: _lssm_lib_schema0.EntityScalarField;
|
|
147
|
+
flag: _lssm_lib_schema0.EntityRelationField;
|
|
148
|
+
}> | _lssm_lib_schema0.EntitySpec<{
|
|
149
|
+
id: _lssm_lib_schema0.EntityScalarField;
|
|
150
|
+
key: _lssm_lib_schema0.EntityScalarField;
|
|
151
|
+
name: _lssm_lib_schema0.EntityScalarField;
|
|
152
|
+
description: _lssm_lib_schema0.EntityScalarField;
|
|
153
|
+
hypothesis: _lssm_lib_schema0.EntityScalarField;
|
|
154
|
+
flagId: _lssm_lib_schema0.EntityScalarField;
|
|
155
|
+
status: _lssm_lib_schema0.EntityEnumField;
|
|
156
|
+
variants: _lssm_lib_schema0.EntityScalarField;
|
|
157
|
+
metrics: _lssm_lib_schema0.EntityScalarField;
|
|
158
|
+
audiencePercentage: _lssm_lib_schema0.EntityScalarField;
|
|
159
|
+
audienceFilter: _lssm_lib_schema0.EntityScalarField;
|
|
160
|
+
scheduledStartAt: _lssm_lib_schema0.EntityScalarField;
|
|
161
|
+
scheduledEndAt: _lssm_lib_schema0.EntityScalarField;
|
|
162
|
+
startedAt: _lssm_lib_schema0.EntityScalarField;
|
|
163
|
+
endedAt: _lssm_lib_schema0.EntityScalarField;
|
|
164
|
+
winningVariant: _lssm_lib_schema0.EntityScalarField;
|
|
165
|
+
results: _lssm_lib_schema0.EntityScalarField;
|
|
166
|
+
orgId: _lssm_lib_schema0.EntityScalarField;
|
|
167
|
+
createdAt: _lssm_lib_schema0.EntityScalarField;
|
|
168
|
+
updatedAt: _lssm_lib_schema0.EntityScalarField;
|
|
169
|
+
flag: _lssm_lib_schema0.EntityRelationField;
|
|
170
|
+
assignments: _lssm_lib_schema0.EntityRelationField;
|
|
171
|
+
}> | _lssm_lib_schema0.EntitySpec<{
|
|
172
|
+
id: _lssm_lib_schema0.EntityScalarField;
|
|
173
|
+
experimentId: _lssm_lib_schema0.EntityScalarField;
|
|
174
|
+
subjectType: _lssm_lib_schema0.EntityScalarField;
|
|
175
|
+
subjectId: _lssm_lib_schema0.EntityScalarField;
|
|
176
|
+
variant: _lssm_lib_schema0.EntityScalarField;
|
|
177
|
+
bucket: _lssm_lib_schema0.EntityScalarField;
|
|
178
|
+
context: _lssm_lib_schema0.EntityScalarField;
|
|
179
|
+
assignedAt: _lssm_lib_schema0.EntityScalarField;
|
|
180
|
+
experiment: _lssm_lib_schema0.EntityRelationField;
|
|
181
|
+
}> | _lssm_lib_schema0.EntitySpec<{
|
|
182
|
+
id: _lssm_lib_schema0.EntityScalarField;
|
|
183
|
+
flagId: _lssm_lib_schema0.EntityScalarField;
|
|
184
|
+
flagKey: _lssm_lib_schema0.EntityScalarField;
|
|
185
|
+
subjectType: _lssm_lib_schema0.EntityScalarField;
|
|
186
|
+
subjectId: _lssm_lib_schema0.EntityScalarField;
|
|
187
|
+
result: _lssm_lib_schema0.EntityScalarField;
|
|
188
|
+
variant: _lssm_lib_schema0.EntityScalarField;
|
|
189
|
+
matchedRuleId: _lssm_lib_schema0.EntityScalarField;
|
|
190
|
+
reason: _lssm_lib_schema0.EntityScalarField;
|
|
191
|
+
context: _lssm_lib_schema0.EntityScalarField;
|
|
192
|
+
evaluatedAt: _lssm_lib_schema0.EntityScalarField;
|
|
193
|
+
flag: _lssm_lib_schema0.EntityRelationField;
|
|
194
194
|
}>)[];
|
|
195
195
|
/**
|
|
196
196
|
* Module schema contribution for feature flags.
|
package/dist/events.d.ts
CHANGED
|
@@ -1,327 +1,327 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema156 from "@lssm/lib.schema";
|
|
2
2
|
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Emitted when a feature flag is created.
|
|
7
7
|
*/
|
|
8
|
-
declare const FlagCreatedEvent: _lssm_lib_contracts0.EventSpec<
|
|
8
|
+
declare const FlagCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
9
9
|
flagId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
key: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
name: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
status: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
orgId: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
27
27
|
isOptional: true;
|
|
28
28
|
};
|
|
29
29
|
createdBy: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
31
31
|
isOptional: true;
|
|
32
32
|
};
|
|
33
33
|
createdAt: {
|
|
34
|
-
type:
|
|
34
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
35
35
|
isOptional: false;
|
|
36
36
|
};
|
|
37
37
|
}>>;
|
|
38
38
|
/**
|
|
39
39
|
* Emitted when a feature flag is updated.
|
|
40
40
|
*/
|
|
41
|
-
declare const FlagUpdatedEvent: _lssm_lib_contracts0.EventSpec<
|
|
41
|
+
declare const FlagUpdatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
42
42
|
flagId: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
key: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
changes: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema156.FieldType<unknown, unknown>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
updatedBy: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
56
56
|
isOptional: true;
|
|
57
57
|
};
|
|
58
58
|
updatedAt: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
}>>;
|
|
63
63
|
/**
|
|
64
64
|
* Emitted when a feature flag is deleted.
|
|
65
65
|
*/
|
|
66
|
-
declare const FlagDeletedEvent: _lssm_lib_contracts0.EventSpec<
|
|
66
|
+
declare const FlagDeletedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
67
67
|
flagId: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
key: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
deletedBy: {
|
|
76
|
-
type:
|
|
76
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
77
77
|
isOptional: true;
|
|
78
78
|
};
|
|
79
79
|
deletedAt: {
|
|
80
|
-
type:
|
|
80
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
81
81
|
isOptional: false;
|
|
82
82
|
};
|
|
83
83
|
}>>;
|
|
84
84
|
/**
|
|
85
85
|
* Emitted when a feature flag status is toggled.
|
|
86
86
|
*/
|
|
87
|
-
declare const FlagToggledEvent: _lssm_lib_contracts0.EventSpec<
|
|
87
|
+
declare const FlagToggledEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
88
88
|
flagId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
key: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
previousStatus: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
newStatus: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
toggledBy: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
106
106
|
isOptional: true;
|
|
107
107
|
};
|
|
108
108
|
toggledAt: {
|
|
109
|
-
type:
|
|
109
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
}>>;
|
|
113
113
|
/**
|
|
114
114
|
* Emitted when a targeting rule is created.
|
|
115
115
|
*/
|
|
116
|
-
declare const RuleCreatedEvent: _lssm_lib_contracts0.EventSpec<
|
|
116
|
+
declare const RuleCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
117
117
|
ruleId: {
|
|
118
|
-
type:
|
|
118
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
119
119
|
isOptional: false;
|
|
120
120
|
};
|
|
121
121
|
flagId: {
|
|
122
|
-
type:
|
|
122
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
123
123
|
isOptional: false;
|
|
124
124
|
};
|
|
125
125
|
flagKey: {
|
|
126
|
-
type:
|
|
126
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
127
127
|
isOptional: false;
|
|
128
128
|
};
|
|
129
129
|
attribute: {
|
|
130
|
-
type:
|
|
130
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
131
131
|
isOptional: false;
|
|
132
132
|
};
|
|
133
133
|
operator: {
|
|
134
|
-
type:
|
|
134
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
135
135
|
isOptional: false;
|
|
136
136
|
};
|
|
137
137
|
createdAt: {
|
|
138
|
-
type:
|
|
138
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
139
139
|
isOptional: false;
|
|
140
140
|
};
|
|
141
141
|
}>>;
|
|
142
142
|
/**
|
|
143
143
|
* Emitted when a targeting rule is deleted.
|
|
144
144
|
*/
|
|
145
|
-
declare const RuleDeletedEvent: _lssm_lib_contracts0.EventSpec<
|
|
145
|
+
declare const RuleDeletedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
146
146
|
ruleId: {
|
|
147
|
-
type:
|
|
147
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
150
|
flagId: {
|
|
151
|
-
type:
|
|
151
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
152
152
|
isOptional: false;
|
|
153
153
|
};
|
|
154
154
|
flagKey: {
|
|
155
|
-
type:
|
|
155
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
156
156
|
isOptional: false;
|
|
157
157
|
};
|
|
158
158
|
deletedAt: {
|
|
159
|
-
type:
|
|
159
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
160
160
|
isOptional: false;
|
|
161
161
|
};
|
|
162
162
|
}>>;
|
|
163
163
|
/**
|
|
164
164
|
* Emitted when an experiment is created.
|
|
165
165
|
*/
|
|
166
|
-
declare const ExperimentCreatedEvent: _lssm_lib_contracts0.EventSpec<
|
|
166
|
+
declare const ExperimentCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
167
167
|
experimentId: {
|
|
168
|
-
type:
|
|
168
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
169
169
|
isOptional: false;
|
|
170
170
|
};
|
|
171
171
|
key: {
|
|
172
|
-
type:
|
|
172
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
173
173
|
isOptional: false;
|
|
174
174
|
};
|
|
175
175
|
name: {
|
|
176
|
-
type:
|
|
176
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
177
177
|
isOptional: false;
|
|
178
178
|
};
|
|
179
179
|
flagId: {
|
|
180
|
-
type:
|
|
180
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
181
181
|
isOptional: false;
|
|
182
182
|
};
|
|
183
183
|
variants: {
|
|
184
|
-
type:
|
|
184
|
+
type: _lssm_lib_schema156.FieldType<unknown, unknown>;
|
|
185
185
|
isOptional: false;
|
|
186
186
|
};
|
|
187
187
|
createdBy: {
|
|
188
|
-
type:
|
|
188
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
189
189
|
isOptional: true;
|
|
190
190
|
};
|
|
191
191
|
createdAt: {
|
|
192
|
-
type:
|
|
192
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
193
193
|
isOptional: false;
|
|
194
194
|
};
|
|
195
195
|
}>>;
|
|
196
196
|
/**
|
|
197
197
|
* Emitted when an experiment starts.
|
|
198
198
|
*/
|
|
199
|
-
declare const ExperimentStartedEvent: _lssm_lib_contracts0.EventSpec<
|
|
199
|
+
declare const ExperimentStartedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
200
200
|
experimentId: {
|
|
201
|
-
type:
|
|
201
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
202
202
|
isOptional: false;
|
|
203
203
|
};
|
|
204
204
|
key: {
|
|
205
|
-
type:
|
|
205
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
206
206
|
isOptional: false;
|
|
207
207
|
};
|
|
208
208
|
flagId: {
|
|
209
|
-
type:
|
|
209
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
210
210
|
isOptional: false;
|
|
211
211
|
};
|
|
212
212
|
variants: {
|
|
213
|
-
type:
|
|
213
|
+
type: _lssm_lib_schema156.FieldType<unknown, unknown>;
|
|
214
214
|
isOptional: false;
|
|
215
215
|
};
|
|
216
216
|
audiencePercentage: {
|
|
217
|
-
type:
|
|
217
|
+
type: _lssm_lib_schema156.FieldType<number, number>;
|
|
218
218
|
isOptional: false;
|
|
219
219
|
};
|
|
220
220
|
startedBy: {
|
|
221
|
-
type:
|
|
221
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
222
222
|
isOptional: true;
|
|
223
223
|
};
|
|
224
224
|
startedAt: {
|
|
225
|
-
type:
|
|
225
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
226
226
|
isOptional: false;
|
|
227
227
|
};
|
|
228
228
|
}>>;
|
|
229
229
|
/**
|
|
230
230
|
* Emitted when an experiment stops.
|
|
231
231
|
*/
|
|
232
|
-
declare const ExperimentStoppedEvent: _lssm_lib_contracts0.EventSpec<
|
|
232
|
+
declare const ExperimentStoppedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
233
233
|
experimentId: {
|
|
234
|
-
type:
|
|
234
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
235
235
|
isOptional: false;
|
|
236
236
|
};
|
|
237
237
|
key: {
|
|
238
|
-
type:
|
|
238
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
239
239
|
isOptional: false;
|
|
240
240
|
};
|
|
241
241
|
reason: {
|
|
242
|
-
type:
|
|
242
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
243
243
|
isOptional: false;
|
|
244
244
|
};
|
|
245
245
|
winningVariant: {
|
|
246
|
-
type:
|
|
246
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
247
247
|
isOptional: true;
|
|
248
248
|
};
|
|
249
249
|
stoppedBy: {
|
|
250
|
-
type:
|
|
250
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
251
251
|
isOptional: true;
|
|
252
252
|
};
|
|
253
253
|
stoppedAt: {
|
|
254
|
-
type:
|
|
254
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
255
255
|
isOptional: false;
|
|
256
256
|
};
|
|
257
257
|
}>>;
|
|
258
258
|
/**
|
|
259
259
|
* Emitted when a flag is evaluated (for analytics).
|
|
260
260
|
*/
|
|
261
|
-
declare const FlagEvaluatedEvent: _lssm_lib_contracts0.EventSpec<
|
|
261
|
+
declare const FlagEvaluatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
262
262
|
flagId: {
|
|
263
|
-
type:
|
|
263
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
264
264
|
isOptional: false;
|
|
265
265
|
};
|
|
266
266
|
flagKey: {
|
|
267
|
-
type:
|
|
267
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
268
268
|
isOptional: false;
|
|
269
269
|
};
|
|
270
270
|
subjectType: {
|
|
271
|
-
type:
|
|
271
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
272
272
|
isOptional: false;
|
|
273
273
|
};
|
|
274
274
|
subjectId: {
|
|
275
|
-
type:
|
|
275
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
276
276
|
isOptional: false;
|
|
277
277
|
};
|
|
278
278
|
result: {
|
|
279
|
-
type:
|
|
279
|
+
type: _lssm_lib_schema156.FieldType<boolean, boolean>;
|
|
280
280
|
isOptional: false;
|
|
281
281
|
};
|
|
282
282
|
variant: {
|
|
283
|
-
type:
|
|
283
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
284
284
|
isOptional: true;
|
|
285
285
|
};
|
|
286
286
|
reason: {
|
|
287
|
-
type:
|
|
287
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
288
288
|
isOptional: false;
|
|
289
289
|
};
|
|
290
290
|
evaluatedAt: {
|
|
291
|
-
type:
|
|
291
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
292
292
|
isOptional: false;
|
|
293
293
|
};
|
|
294
294
|
}>>;
|
|
295
295
|
/**
|
|
296
296
|
* Emitted when a subject is assigned to an experiment variant.
|
|
297
297
|
*/
|
|
298
|
-
declare const VariantAssignedEvent: _lssm_lib_contracts0.EventSpec<
|
|
298
|
+
declare const VariantAssignedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
299
299
|
experimentId: {
|
|
300
|
-
type:
|
|
300
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
301
301
|
isOptional: false;
|
|
302
302
|
};
|
|
303
303
|
experimentKey: {
|
|
304
|
-
type:
|
|
304
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
305
305
|
isOptional: false;
|
|
306
306
|
};
|
|
307
307
|
subjectType: {
|
|
308
|
-
type:
|
|
308
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
309
309
|
isOptional: false;
|
|
310
310
|
};
|
|
311
311
|
subjectId: {
|
|
312
|
-
type:
|
|
312
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
313
313
|
isOptional: false;
|
|
314
314
|
};
|
|
315
315
|
variant: {
|
|
316
|
-
type:
|
|
316
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
317
317
|
isOptional: false;
|
|
318
318
|
};
|
|
319
319
|
bucket: {
|
|
320
|
-
type:
|
|
320
|
+
type: _lssm_lib_schema156.FieldType<number, number>;
|
|
321
321
|
isOptional: false;
|
|
322
322
|
};
|
|
323
323
|
assignedAt: {
|
|
324
|
-
type:
|
|
324
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
325
325
|
isOptional: false;
|
|
326
326
|
};
|
|
327
327
|
}>>;
|
|
@@ -329,293 +329,293 @@ declare const VariantAssignedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_sch
|
|
|
329
329
|
* All feature flag events.
|
|
330
330
|
*/
|
|
331
331
|
declare const FeatureFlagEvents: {
|
|
332
|
-
FlagCreatedEvent: _lssm_lib_contracts0.EventSpec<
|
|
332
|
+
FlagCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
333
333
|
flagId: {
|
|
334
|
-
type:
|
|
334
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
335
335
|
isOptional: false;
|
|
336
336
|
};
|
|
337
337
|
key: {
|
|
338
|
-
type:
|
|
338
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
339
339
|
isOptional: false;
|
|
340
340
|
};
|
|
341
341
|
name: {
|
|
342
|
-
type:
|
|
342
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
343
343
|
isOptional: false;
|
|
344
344
|
};
|
|
345
345
|
status: {
|
|
346
|
-
type:
|
|
346
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
347
347
|
isOptional: false;
|
|
348
348
|
};
|
|
349
349
|
orgId: {
|
|
350
|
-
type:
|
|
350
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
351
351
|
isOptional: true;
|
|
352
352
|
};
|
|
353
353
|
createdBy: {
|
|
354
|
-
type:
|
|
354
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
355
355
|
isOptional: true;
|
|
356
356
|
};
|
|
357
357
|
createdAt: {
|
|
358
|
-
type:
|
|
358
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
359
359
|
isOptional: false;
|
|
360
360
|
};
|
|
361
361
|
}>>;
|
|
362
|
-
FlagUpdatedEvent: _lssm_lib_contracts0.EventSpec<
|
|
362
|
+
FlagUpdatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
363
363
|
flagId: {
|
|
364
|
-
type:
|
|
364
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
365
365
|
isOptional: false;
|
|
366
366
|
};
|
|
367
367
|
key: {
|
|
368
|
-
type:
|
|
368
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
369
369
|
isOptional: false;
|
|
370
370
|
};
|
|
371
371
|
changes: {
|
|
372
|
-
type:
|
|
372
|
+
type: _lssm_lib_schema156.FieldType<unknown, unknown>;
|
|
373
373
|
isOptional: false;
|
|
374
374
|
};
|
|
375
375
|
updatedBy: {
|
|
376
|
-
type:
|
|
376
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
377
377
|
isOptional: true;
|
|
378
378
|
};
|
|
379
379
|
updatedAt: {
|
|
380
|
-
type:
|
|
380
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
381
381
|
isOptional: false;
|
|
382
382
|
};
|
|
383
383
|
}>>;
|
|
384
|
-
FlagDeletedEvent: _lssm_lib_contracts0.EventSpec<
|
|
384
|
+
FlagDeletedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
385
385
|
flagId: {
|
|
386
|
-
type:
|
|
386
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
387
387
|
isOptional: false;
|
|
388
388
|
};
|
|
389
389
|
key: {
|
|
390
|
-
type:
|
|
390
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
391
391
|
isOptional: false;
|
|
392
392
|
};
|
|
393
393
|
deletedBy: {
|
|
394
|
-
type:
|
|
394
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
395
395
|
isOptional: true;
|
|
396
396
|
};
|
|
397
397
|
deletedAt: {
|
|
398
|
-
type:
|
|
398
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
399
399
|
isOptional: false;
|
|
400
400
|
};
|
|
401
401
|
}>>;
|
|
402
|
-
FlagToggledEvent: _lssm_lib_contracts0.EventSpec<
|
|
402
|
+
FlagToggledEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
403
403
|
flagId: {
|
|
404
|
-
type:
|
|
404
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
405
405
|
isOptional: false;
|
|
406
406
|
};
|
|
407
407
|
key: {
|
|
408
|
-
type:
|
|
408
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
409
409
|
isOptional: false;
|
|
410
410
|
};
|
|
411
411
|
previousStatus: {
|
|
412
|
-
type:
|
|
412
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
413
413
|
isOptional: false;
|
|
414
414
|
};
|
|
415
415
|
newStatus: {
|
|
416
|
-
type:
|
|
416
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
417
417
|
isOptional: false;
|
|
418
418
|
};
|
|
419
419
|
toggledBy: {
|
|
420
|
-
type:
|
|
420
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
421
421
|
isOptional: true;
|
|
422
422
|
};
|
|
423
423
|
toggledAt: {
|
|
424
|
-
type:
|
|
424
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
425
425
|
isOptional: false;
|
|
426
426
|
};
|
|
427
427
|
}>>;
|
|
428
|
-
RuleCreatedEvent: _lssm_lib_contracts0.EventSpec<
|
|
428
|
+
RuleCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
429
429
|
ruleId: {
|
|
430
|
-
type:
|
|
430
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
431
431
|
isOptional: false;
|
|
432
432
|
};
|
|
433
433
|
flagId: {
|
|
434
|
-
type:
|
|
434
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
435
435
|
isOptional: false;
|
|
436
436
|
};
|
|
437
437
|
flagKey: {
|
|
438
|
-
type:
|
|
438
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
439
439
|
isOptional: false;
|
|
440
440
|
};
|
|
441
441
|
attribute: {
|
|
442
|
-
type:
|
|
442
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
443
443
|
isOptional: false;
|
|
444
444
|
};
|
|
445
445
|
operator: {
|
|
446
|
-
type:
|
|
446
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
447
447
|
isOptional: false;
|
|
448
448
|
};
|
|
449
449
|
createdAt: {
|
|
450
|
-
type:
|
|
450
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
451
451
|
isOptional: false;
|
|
452
452
|
};
|
|
453
453
|
}>>;
|
|
454
|
-
RuleDeletedEvent: _lssm_lib_contracts0.EventSpec<
|
|
454
|
+
RuleDeletedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
455
455
|
ruleId: {
|
|
456
|
-
type:
|
|
456
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
457
457
|
isOptional: false;
|
|
458
458
|
};
|
|
459
459
|
flagId: {
|
|
460
|
-
type:
|
|
460
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
461
461
|
isOptional: false;
|
|
462
462
|
};
|
|
463
463
|
flagKey: {
|
|
464
|
-
type:
|
|
464
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
465
465
|
isOptional: false;
|
|
466
466
|
};
|
|
467
467
|
deletedAt: {
|
|
468
|
-
type:
|
|
468
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
469
469
|
isOptional: false;
|
|
470
470
|
};
|
|
471
471
|
}>>;
|
|
472
|
-
ExperimentCreatedEvent: _lssm_lib_contracts0.EventSpec<
|
|
472
|
+
ExperimentCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
473
473
|
experimentId: {
|
|
474
|
-
type:
|
|
474
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
475
475
|
isOptional: false;
|
|
476
476
|
};
|
|
477
477
|
key: {
|
|
478
|
-
type:
|
|
478
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
479
479
|
isOptional: false;
|
|
480
480
|
};
|
|
481
481
|
name: {
|
|
482
|
-
type:
|
|
482
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
483
483
|
isOptional: false;
|
|
484
484
|
};
|
|
485
485
|
flagId: {
|
|
486
|
-
type:
|
|
486
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
487
487
|
isOptional: false;
|
|
488
488
|
};
|
|
489
489
|
variants: {
|
|
490
|
-
type:
|
|
490
|
+
type: _lssm_lib_schema156.FieldType<unknown, unknown>;
|
|
491
491
|
isOptional: false;
|
|
492
492
|
};
|
|
493
493
|
createdBy: {
|
|
494
|
-
type:
|
|
494
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
495
495
|
isOptional: true;
|
|
496
496
|
};
|
|
497
497
|
createdAt: {
|
|
498
|
-
type:
|
|
498
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
499
499
|
isOptional: false;
|
|
500
500
|
};
|
|
501
501
|
}>>;
|
|
502
|
-
ExperimentStartedEvent: _lssm_lib_contracts0.EventSpec<
|
|
502
|
+
ExperimentStartedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
503
503
|
experimentId: {
|
|
504
|
-
type:
|
|
504
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
505
505
|
isOptional: false;
|
|
506
506
|
};
|
|
507
507
|
key: {
|
|
508
|
-
type:
|
|
508
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
509
509
|
isOptional: false;
|
|
510
510
|
};
|
|
511
511
|
flagId: {
|
|
512
|
-
type:
|
|
512
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
513
513
|
isOptional: false;
|
|
514
514
|
};
|
|
515
515
|
variants: {
|
|
516
|
-
type:
|
|
516
|
+
type: _lssm_lib_schema156.FieldType<unknown, unknown>;
|
|
517
517
|
isOptional: false;
|
|
518
518
|
};
|
|
519
519
|
audiencePercentage: {
|
|
520
|
-
type:
|
|
520
|
+
type: _lssm_lib_schema156.FieldType<number, number>;
|
|
521
521
|
isOptional: false;
|
|
522
522
|
};
|
|
523
523
|
startedBy: {
|
|
524
|
-
type:
|
|
524
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
525
525
|
isOptional: true;
|
|
526
526
|
};
|
|
527
527
|
startedAt: {
|
|
528
|
-
type:
|
|
528
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
529
529
|
isOptional: false;
|
|
530
530
|
};
|
|
531
531
|
}>>;
|
|
532
|
-
ExperimentStoppedEvent: _lssm_lib_contracts0.EventSpec<
|
|
532
|
+
ExperimentStoppedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
533
533
|
experimentId: {
|
|
534
|
-
type:
|
|
534
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
535
535
|
isOptional: false;
|
|
536
536
|
};
|
|
537
537
|
key: {
|
|
538
|
-
type:
|
|
538
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
539
539
|
isOptional: false;
|
|
540
540
|
};
|
|
541
541
|
reason: {
|
|
542
|
-
type:
|
|
542
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
543
543
|
isOptional: false;
|
|
544
544
|
};
|
|
545
545
|
winningVariant: {
|
|
546
|
-
type:
|
|
546
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
547
547
|
isOptional: true;
|
|
548
548
|
};
|
|
549
549
|
stoppedBy: {
|
|
550
|
-
type:
|
|
550
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
551
551
|
isOptional: true;
|
|
552
552
|
};
|
|
553
553
|
stoppedAt: {
|
|
554
|
-
type:
|
|
554
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
555
555
|
isOptional: false;
|
|
556
556
|
};
|
|
557
557
|
}>>;
|
|
558
|
-
FlagEvaluatedEvent: _lssm_lib_contracts0.EventSpec<
|
|
558
|
+
FlagEvaluatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
559
559
|
flagId: {
|
|
560
|
-
type:
|
|
560
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
561
561
|
isOptional: false;
|
|
562
562
|
};
|
|
563
563
|
flagKey: {
|
|
564
|
-
type:
|
|
564
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
565
565
|
isOptional: false;
|
|
566
566
|
};
|
|
567
567
|
subjectType: {
|
|
568
|
-
type:
|
|
568
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
569
569
|
isOptional: false;
|
|
570
570
|
};
|
|
571
571
|
subjectId: {
|
|
572
|
-
type:
|
|
572
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
573
573
|
isOptional: false;
|
|
574
574
|
};
|
|
575
575
|
result: {
|
|
576
|
-
type:
|
|
576
|
+
type: _lssm_lib_schema156.FieldType<boolean, boolean>;
|
|
577
577
|
isOptional: false;
|
|
578
578
|
};
|
|
579
579
|
variant: {
|
|
580
|
-
type:
|
|
580
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
581
581
|
isOptional: true;
|
|
582
582
|
};
|
|
583
583
|
reason: {
|
|
584
|
-
type:
|
|
584
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
585
585
|
isOptional: false;
|
|
586
586
|
};
|
|
587
587
|
evaluatedAt: {
|
|
588
|
-
type:
|
|
588
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
589
589
|
isOptional: false;
|
|
590
590
|
};
|
|
591
591
|
}>>;
|
|
592
|
-
VariantAssignedEvent: _lssm_lib_contracts0.EventSpec<
|
|
592
|
+
VariantAssignedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema156.SchemaModel<{
|
|
593
593
|
experimentId: {
|
|
594
|
-
type:
|
|
594
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
595
595
|
isOptional: false;
|
|
596
596
|
};
|
|
597
597
|
experimentKey: {
|
|
598
|
-
type:
|
|
598
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
599
599
|
isOptional: false;
|
|
600
600
|
};
|
|
601
601
|
subjectType: {
|
|
602
|
-
type:
|
|
602
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
603
603
|
isOptional: false;
|
|
604
604
|
};
|
|
605
605
|
subjectId: {
|
|
606
|
-
type:
|
|
606
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
607
607
|
isOptional: false;
|
|
608
608
|
};
|
|
609
609
|
variant: {
|
|
610
|
-
type:
|
|
610
|
+
type: _lssm_lib_schema156.FieldType<string, string>;
|
|
611
611
|
isOptional: false;
|
|
612
612
|
};
|
|
613
613
|
bucket: {
|
|
614
|
-
type:
|
|
614
|
+
type: _lssm_lib_schema156.FieldType<number, number>;
|
|
615
615
|
isOptional: false;
|
|
616
616
|
};
|
|
617
617
|
assignedAt: {
|
|
618
|
-
type:
|
|
618
|
+
type: _lssm_lib_schema156.FieldType<Date, string>;
|
|
619
619
|
isOptional: false;
|
|
620
620
|
};
|
|
621
621
|
}>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/lib.feature-flags",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251217063201",
|
|
4
4
|
"description": "Feature flags and experiments module for ContractSpec applications",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"lint:check": "eslint src"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@lssm/lib.schema": "0.0.0-canary-
|
|
22
|
-
"@lssm/lib.contracts": "0.0.0-canary-
|
|
21
|
+
"@lssm/lib.schema": "0.0.0-canary-20251217063201",
|
|
22
|
+
"@lssm/lib.contracts": "0.0.0-canary-20251217063201",
|
|
23
23
|
"zod": "^4.1.13"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@lssm/tool.typescript": "0.0.0-canary-
|
|
27
|
-
"@lssm/tool.tsdown": "0.0.0-canary-
|
|
26
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251217063201",
|
|
27
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251217063201",
|
|
28
28
|
"typescript": "^5.9.3"
|
|
29
29
|
},
|
|
30
30
|
"exports": {
|