@featurevisor/types 2.0.0 → 2.0.1
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 +8 -0
- package/package.json +15 -8
- package/src/index.js +1 -0
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
- package/lib/index.d.ts +0 -437
- package/lib/index.js +0 -2
- package/lib/index.js.map +0 -1
- package/webpack.config.js +0 -13
- /package/src/{index.ts → index.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.1](https://github.com/featurevisor/featurevisor/compare/v2.0.0...v2.0.1) (2025-07-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @featurevisor/types
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.35.3](https://github.com/featurevisor/featurevisor/compare/v1.35.2...v1.35.3) (2025-04-12)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @featurevisor/types
|
package/package.json
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Common Typescript types for Featurevisor",
|
|
5
|
-
"main": "
|
|
6
|
-
"module": "
|
|
7
|
-
"types": "
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"module": "src/index.js",
|
|
7
|
+
"types": "src/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./src/index.d.ts",
|
|
11
|
+
"import": "./src/index.js",
|
|
12
|
+
"require": "./src/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
8
15
|
"scripts": {
|
|
9
|
-
"transpile": "
|
|
10
|
-
"dist": "
|
|
11
|
-
"build": "
|
|
16
|
+
"transpile": "echo 'Nothing to transpile'",
|
|
17
|
+
"dist": "echo 'Nothing to dist'",
|
|
18
|
+
"build": "echo 'Nothing to build'",
|
|
12
19
|
"test": "echo 'Nothing to test in types package'"
|
|
13
20
|
},
|
|
14
21
|
"author": {
|
|
@@ -40,5 +47,5 @@
|
|
|
40
47
|
"url": "https://github.com/featurevisor/featurevisor/issues"
|
|
41
48
|
},
|
|
42
49
|
"license": "MIT",
|
|
43
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "f5d883e1d6f8ba1b0c14fbbd79329b98f66b46e8"
|
|
44
51
|
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// empty
|
package/dist/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FeaturevisorTypes=t():e.FeaturevisorTypes=t()}(this,(()=>(()=>{"use strict";var e={};return(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0})})(),e})()));
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAA2B,kBAAID,IAE/BD,EAAwB,kBAAIC,GAC7B,CATD,CASGK,MAAM,I","sources":["webpack://FeaturevisorTypes/webpack/universalModuleDefinition"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"FeaturevisorTypes\"] = factory();\n\telse\n\t\troot[\"FeaturevisorTypes\"] = factory();\n})(this, () => {\nreturn "],"names":["root","factory","exports","module","define","amd","this"],"sourceRoot":""}
|
package/lib/index.d.ts
DELETED
|
@@ -1,437 +0,0 @@
|
|
|
1
|
-
export type AttributeKey = string;
|
|
2
|
-
export interface AttributeObjectValue {
|
|
3
|
-
[key: AttributeKey]: AttributeValue;
|
|
4
|
-
}
|
|
5
|
-
export type AttributeValue = string | number | boolean | Date | null | undefined | string[] | AttributeObjectValue;
|
|
6
|
-
export interface Context {
|
|
7
|
-
[key: AttributeKey]: AttributeValue;
|
|
8
|
-
}
|
|
9
|
-
export type AttributeType = "boolean" | "string" | "integer" | "double" | "date" | "semver" | "object" | "array";
|
|
10
|
-
export interface Attribute {
|
|
11
|
-
archived?: boolean;
|
|
12
|
-
key?: AttributeKey;
|
|
13
|
-
type: AttributeType;
|
|
14
|
-
description?: string;
|
|
15
|
-
properties?: {
|
|
16
|
-
[key: AttributeKey]: {
|
|
17
|
-
type: "boolean" | "string" | "integer" | "double" | "date" | "semver" | "array";
|
|
18
|
-
description?: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export type Operator = "equals" | "notEquals" | "exists" | "notExists" | "greaterThan" | "greaterThanOrEquals" | "lessThan" | "lessThanOrEquals" | "contains" | "notContains" | "startsWith" | "endsWith" | "semverEquals" | "semverNotEquals" | "semverGreaterThan" | "semverGreaterThanOrEquals" | "semverLessThan" | "semverLessThanOrEquals" | "before" | "after" | "includes" | "notIncludes" | "matches" | "notMatches" | "in" | "notIn";
|
|
23
|
-
export type ConditionValue = string | number | boolean | Date | null | undefined | string[];
|
|
24
|
-
export interface PlainCondition {
|
|
25
|
-
attribute: AttributeKey;
|
|
26
|
-
operator: Operator;
|
|
27
|
-
value?: ConditionValue;
|
|
28
|
-
regexFlags?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface AndCondition {
|
|
31
|
-
and: Condition[];
|
|
32
|
-
}
|
|
33
|
-
export interface OrCondition {
|
|
34
|
-
or: Condition[];
|
|
35
|
-
}
|
|
36
|
-
export interface NotCondition {
|
|
37
|
-
not: Condition[];
|
|
38
|
-
}
|
|
39
|
-
export type AndOrNotCondition = AndCondition | OrCondition | NotCondition;
|
|
40
|
-
export type Condition = PlainCondition | AndOrNotCondition | string;
|
|
41
|
-
export type SegmentKey = string;
|
|
42
|
-
export interface Segment {
|
|
43
|
-
archived?: boolean;
|
|
44
|
-
key?: SegmentKey;
|
|
45
|
-
conditions: Condition | Condition[];
|
|
46
|
-
description?: string;
|
|
47
|
-
}
|
|
48
|
-
export type PlainGroupSegment = SegmentKey;
|
|
49
|
-
export interface AndGroupSegment {
|
|
50
|
-
and: GroupSegment[];
|
|
51
|
-
}
|
|
52
|
-
export interface OrGroupSegment {
|
|
53
|
-
or: GroupSegment[];
|
|
54
|
-
}
|
|
55
|
-
export interface NotGroupSegment {
|
|
56
|
-
not: GroupSegment[];
|
|
57
|
-
}
|
|
58
|
-
export type AndOrNotGroupSegment = AndGroupSegment | OrGroupSegment | NotGroupSegment;
|
|
59
|
-
export type GroupSegment = PlainGroupSegment | AndOrNotGroupSegment;
|
|
60
|
-
export type VariationValue = string;
|
|
61
|
-
export type VariableKey = string;
|
|
62
|
-
export type VariableType = "boolean" | "string" | "integer" | "double" | "array" | "object" | "json";
|
|
63
|
-
export interface VariableObjectValue {
|
|
64
|
-
[key: string]: VariableValue;
|
|
65
|
-
}
|
|
66
|
-
export type VariableValue = boolean | string | number | string[] | VariableObjectValue | null | undefined;
|
|
67
|
-
export interface VariableOverrideSegments {
|
|
68
|
-
segments: GroupSegment | GroupSegment[];
|
|
69
|
-
}
|
|
70
|
-
export interface VariableOverrideConditions {
|
|
71
|
-
conditions: Condition | Condition[];
|
|
72
|
-
}
|
|
73
|
-
export type VariableOverrideSegmentsOrConditions = VariableOverrideSegments | VariableOverrideConditions;
|
|
74
|
-
export interface VariableOverride {
|
|
75
|
-
value: VariableValue;
|
|
76
|
-
conditions?: Condition | Condition[];
|
|
77
|
-
segments?: GroupSegment | GroupSegment[];
|
|
78
|
-
}
|
|
79
|
-
export interface VariableV1 {
|
|
80
|
-
key: VariableKey;
|
|
81
|
-
value: VariableValue;
|
|
82
|
-
description?: string;
|
|
83
|
-
overrides?: VariableOverride[];
|
|
84
|
-
}
|
|
85
|
-
export interface VariationV1 {
|
|
86
|
-
description?: string;
|
|
87
|
-
value: VariationValue;
|
|
88
|
-
weight?: Weight;
|
|
89
|
-
variables?: VariableV1[];
|
|
90
|
-
}
|
|
91
|
-
export interface Variation {
|
|
92
|
-
description?: string;
|
|
93
|
-
value: VariationValue;
|
|
94
|
-
weight?: Weight;
|
|
95
|
-
variables?: {
|
|
96
|
-
[key: VariableKey]: VariableValue;
|
|
97
|
-
};
|
|
98
|
-
variableOverrides?: {
|
|
99
|
-
[key: VariableKey]: VariableOverride[];
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
export interface VariableSchema {
|
|
103
|
-
deprecated?: boolean;
|
|
104
|
-
key?: VariableKey;
|
|
105
|
-
type: VariableType;
|
|
106
|
-
defaultValue: VariableValue;
|
|
107
|
-
description?: string;
|
|
108
|
-
useDefaultWhenDisabled?: boolean;
|
|
109
|
-
disabledValue?: VariableValue;
|
|
110
|
-
}
|
|
111
|
-
export type FeatureKey = string;
|
|
112
|
-
export interface Slot {
|
|
113
|
-
feature: FeatureKey | false;
|
|
114
|
-
percentage: Weight;
|
|
115
|
-
}
|
|
116
|
-
export interface Group {
|
|
117
|
-
key: string;
|
|
118
|
-
description: string;
|
|
119
|
-
slots: Slot[];
|
|
120
|
-
}
|
|
121
|
-
export type BucketKey = string;
|
|
122
|
-
export type BucketValue = number;
|
|
123
|
-
/**
|
|
124
|
-
* Datafile-only types
|
|
125
|
-
*/
|
|
126
|
-
export type Percentage = number;
|
|
127
|
-
export type Range = [Percentage, Percentage];
|
|
128
|
-
export interface Allocation {
|
|
129
|
-
variation: VariationValue;
|
|
130
|
-
range: Range;
|
|
131
|
-
}
|
|
132
|
-
export interface Traffic {
|
|
133
|
-
key: RuleKey;
|
|
134
|
-
segments: GroupSegment | GroupSegment[] | "*";
|
|
135
|
-
percentage: Percentage;
|
|
136
|
-
enabled?: boolean;
|
|
137
|
-
variation?: VariationValue;
|
|
138
|
-
variables?: {
|
|
139
|
-
[key: string]: VariableValue;
|
|
140
|
-
};
|
|
141
|
-
variationWeights?: {
|
|
142
|
-
[key: string]: Weight;
|
|
143
|
-
};
|
|
144
|
-
allocation?: Allocation[];
|
|
145
|
-
}
|
|
146
|
-
export type PlainBucketBy = AttributeKey;
|
|
147
|
-
export type AndBucketBy = AttributeKey[];
|
|
148
|
-
export interface OrBucketBy {
|
|
149
|
-
or: AttributeKey[];
|
|
150
|
-
}
|
|
151
|
-
export type BucketBy = PlainBucketBy | AndBucketBy | OrBucketBy;
|
|
152
|
-
export interface RequiredWithVariation {
|
|
153
|
-
key: FeatureKey;
|
|
154
|
-
variation: VariationValue;
|
|
155
|
-
}
|
|
156
|
-
export type Required = FeatureKey | RequiredWithVariation;
|
|
157
|
-
export interface Feature {
|
|
158
|
-
key?: FeatureKey;
|
|
159
|
-
hash?: string;
|
|
160
|
-
deprecated?: boolean;
|
|
161
|
-
required?: Required[];
|
|
162
|
-
variablesSchema?: Record<VariableKey, VariableSchema>;
|
|
163
|
-
disabledVariationValue?: VariationValue;
|
|
164
|
-
variations?: Variation[];
|
|
165
|
-
bucketBy: BucketBy;
|
|
166
|
-
traffic: Traffic[];
|
|
167
|
-
force?: Force[];
|
|
168
|
-
ranges?: Range[];
|
|
169
|
-
}
|
|
170
|
-
export interface FeatureV1 {
|
|
171
|
-
key?: FeatureKey;
|
|
172
|
-
hash?: string;
|
|
173
|
-
deprecated?: boolean;
|
|
174
|
-
required?: Required[];
|
|
175
|
-
bucketBy: BucketBy;
|
|
176
|
-
traffic: Traffic[];
|
|
177
|
-
force?: Force[];
|
|
178
|
-
ranges?: Range[];
|
|
179
|
-
variablesSchema?: VariableSchema[];
|
|
180
|
-
variations?: VariationV1[];
|
|
181
|
-
}
|
|
182
|
-
export interface DatafileContentV1 {
|
|
183
|
-
schemaVersion: string;
|
|
184
|
-
revision: string;
|
|
185
|
-
attributes: Attribute[];
|
|
186
|
-
segments: Segment[];
|
|
187
|
-
features: FeatureV1[];
|
|
188
|
-
}
|
|
189
|
-
export interface DatafileContent {
|
|
190
|
-
schemaVersion: string;
|
|
191
|
-
revision: string;
|
|
192
|
-
segments: {
|
|
193
|
-
[key: SegmentKey]: Segment;
|
|
194
|
-
};
|
|
195
|
-
features: {
|
|
196
|
-
[key: FeatureKey]: Feature;
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
export interface EvaluatedFeature {
|
|
200
|
-
enabled: boolean;
|
|
201
|
-
variation?: VariationValue;
|
|
202
|
-
variables?: {
|
|
203
|
-
[key: VariableKey]: VariableValue;
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
export interface EvaluatedFeatures {
|
|
207
|
-
[key: FeatureKey]: EvaluatedFeature;
|
|
208
|
-
}
|
|
209
|
-
export type StickyFeatures = EvaluatedFeatures;
|
|
210
|
-
/**
|
|
211
|
-
* YAML-only type
|
|
212
|
-
*/
|
|
213
|
-
export type Weight = number;
|
|
214
|
-
export type EnvironmentKey = string;
|
|
215
|
-
export type Tag = string;
|
|
216
|
-
export type RuleKey = string;
|
|
217
|
-
export interface Rule {
|
|
218
|
-
key: RuleKey;
|
|
219
|
-
description?: string;
|
|
220
|
-
segments: GroupSegment | GroupSegment[];
|
|
221
|
-
percentage: Weight;
|
|
222
|
-
enabled?: boolean;
|
|
223
|
-
variation?: VariationValue;
|
|
224
|
-
variables?: {
|
|
225
|
-
[key: string]: VariableValue;
|
|
226
|
-
};
|
|
227
|
-
variationWeights?: {
|
|
228
|
-
[key: string]: Weight;
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
export interface RulesByEnvironment {
|
|
232
|
-
[key: EnvironmentKey]: Rule[];
|
|
233
|
-
}
|
|
234
|
-
export interface Force {
|
|
235
|
-
conditions?: Condition | Condition[];
|
|
236
|
-
segments?: GroupSegment | GroupSegment[];
|
|
237
|
-
enabled?: boolean;
|
|
238
|
-
variation?: VariationValue;
|
|
239
|
-
variables?: {
|
|
240
|
-
[key: string]: VariableValue;
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
export interface ForceByEnvironment {
|
|
244
|
-
[key: EnvironmentKey]: Force[];
|
|
245
|
-
}
|
|
246
|
-
export type Expose = boolean | Tag[];
|
|
247
|
-
export interface ExposeByEnvironment {
|
|
248
|
-
[key: EnvironmentKey]: Expose;
|
|
249
|
-
}
|
|
250
|
-
export interface ParsedFeature {
|
|
251
|
-
key: FeatureKey;
|
|
252
|
-
archived?: boolean;
|
|
253
|
-
deprecated?: boolean;
|
|
254
|
-
description: string;
|
|
255
|
-
tags: Tag[];
|
|
256
|
-
required?: Required[];
|
|
257
|
-
bucketBy: BucketBy;
|
|
258
|
-
disabledVariationValue?: VariationValue;
|
|
259
|
-
variablesSchema?: Record<VariableKey, VariableSchema>;
|
|
260
|
-
variations?: Variation[];
|
|
261
|
-
expose?: ExposeByEnvironment | Expose;
|
|
262
|
-
force?: ForceByEnvironment | Force[];
|
|
263
|
-
rules?: RulesByEnvironment | Rule[];
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* For maintaining old allocations info,
|
|
267
|
-
* allowing for gradual rollout of new allocations
|
|
268
|
-
* with consistent bucketing
|
|
269
|
-
*/
|
|
270
|
-
export interface ExistingFeature {
|
|
271
|
-
hash?: string;
|
|
272
|
-
variations?: {
|
|
273
|
-
value: VariationValue;
|
|
274
|
-
weight: Weight;
|
|
275
|
-
}[];
|
|
276
|
-
traffic: {
|
|
277
|
-
key: RuleKey;
|
|
278
|
-
percentage: Percentage;
|
|
279
|
-
allocation?: Allocation[];
|
|
280
|
-
}[];
|
|
281
|
-
ranges?: Range[];
|
|
282
|
-
}
|
|
283
|
-
export interface ExistingFeatures {
|
|
284
|
-
[key: FeatureKey]: ExistingFeature;
|
|
285
|
-
}
|
|
286
|
-
export interface ExistingState {
|
|
287
|
-
features: ExistingFeatures;
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* Tests
|
|
291
|
-
*/
|
|
292
|
-
export interface AssertionMatrix {
|
|
293
|
-
[key: string]: AttributeValue[];
|
|
294
|
-
}
|
|
295
|
-
export interface ExpectedEvaluations {
|
|
296
|
-
flag?: Record<string, any>;
|
|
297
|
-
variation?: Record<string, any>;
|
|
298
|
-
variables?: {
|
|
299
|
-
[key: VariableKey]: Record<string, any>;
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
export interface FeatureChildAssertion {
|
|
303
|
-
sticky?: StickyFeatures;
|
|
304
|
-
context?: Context;
|
|
305
|
-
defaultVariationValue?: VariationValue;
|
|
306
|
-
defaultVariableValues?: {
|
|
307
|
-
[key: string]: VariableValue;
|
|
308
|
-
};
|
|
309
|
-
expectedToBeEnabled?: boolean;
|
|
310
|
-
expectedVariation?: VariationValue;
|
|
311
|
-
expectedVariables?: {
|
|
312
|
-
[key: VariableKey]: VariableValue;
|
|
313
|
-
};
|
|
314
|
-
expectedEvaluations?: ExpectedEvaluations;
|
|
315
|
-
}
|
|
316
|
-
export interface FeatureAssertion {
|
|
317
|
-
matrix?: AssertionMatrix;
|
|
318
|
-
description?: string;
|
|
319
|
-
environment: EnvironmentKey;
|
|
320
|
-
at?: Weight;
|
|
321
|
-
sticky?: StickyFeatures;
|
|
322
|
-
context?: Context;
|
|
323
|
-
defaultVariationValue?: VariationValue;
|
|
324
|
-
defaultVariableValues?: {
|
|
325
|
-
[key: string]: VariableValue;
|
|
326
|
-
};
|
|
327
|
-
expectedToBeEnabled?: boolean;
|
|
328
|
-
expectedVariation?: VariationValue;
|
|
329
|
-
expectedVariables?: {
|
|
330
|
-
[key: VariableKey]: VariableValue;
|
|
331
|
-
};
|
|
332
|
-
expectedEvaluations?: ExpectedEvaluations;
|
|
333
|
-
children?: FeatureChildAssertion[];
|
|
334
|
-
}
|
|
335
|
-
export interface TestFeature {
|
|
336
|
-
key?: string;
|
|
337
|
-
feature: FeatureKey;
|
|
338
|
-
assertions: FeatureAssertion[];
|
|
339
|
-
}
|
|
340
|
-
export interface SegmentAssertion {
|
|
341
|
-
matrix?: AssertionMatrix;
|
|
342
|
-
description?: string;
|
|
343
|
-
context: Context;
|
|
344
|
-
expectedToMatch: boolean;
|
|
345
|
-
}
|
|
346
|
-
export interface TestSegment {
|
|
347
|
-
key?: string;
|
|
348
|
-
segment: SegmentKey;
|
|
349
|
-
assertions: SegmentAssertion[];
|
|
350
|
-
}
|
|
351
|
-
export type Test = TestSegment | TestFeature;
|
|
352
|
-
export interface TestResultAssertionError {
|
|
353
|
-
type: "flag" | "variation" | "variable" | "segment" | "evaluation";
|
|
354
|
-
expected: string | number | boolean | Date | null | undefined;
|
|
355
|
-
actual: string | number | boolean | Date | null | undefined;
|
|
356
|
-
message?: string;
|
|
357
|
-
details?: {
|
|
358
|
-
evaluationType?: string;
|
|
359
|
-
evaluationKey?: string;
|
|
360
|
-
childIndex?: number;
|
|
361
|
-
[key: string]: any;
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
export interface TestResultAssertion {
|
|
365
|
-
description: string;
|
|
366
|
-
duration: number;
|
|
367
|
-
passed: boolean;
|
|
368
|
-
errors?: TestResultAssertionError[];
|
|
369
|
-
}
|
|
370
|
-
export interface TestResult {
|
|
371
|
-
type: "feature" | "segment";
|
|
372
|
-
key: string;
|
|
373
|
-
notFound?: boolean;
|
|
374
|
-
passed: boolean;
|
|
375
|
-
duration: number;
|
|
376
|
-
assertions: TestResultAssertion[];
|
|
377
|
-
}
|
|
378
|
-
/**
|
|
379
|
-
* Site index and history
|
|
380
|
-
*/
|
|
381
|
-
export type EntityType = "attribute" | "segment" | "feature" | "group" | "test";
|
|
382
|
-
export type CommitHash = string;
|
|
383
|
-
export interface HistoryEntity {
|
|
384
|
-
type: EntityType;
|
|
385
|
-
key: string;
|
|
386
|
-
}
|
|
387
|
-
export interface HistoryEntry {
|
|
388
|
-
commit: CommitHash;
|
|
389
|
-
author: string;
|
|
390
|
-
timestamp: string;
|
|
391
|
-
entities: HistoryEntity[];
|
|
392
|
-
}
|
|
393
|
-
export interface LastModified {
|
|
394
|
-
commit: CommitHash;
|
|
395
|
-
timestamp: string;
|
|
396
|
-
author: string;
|
|
397
|
-
}
|
|
398
|
-
export interface SearchIndex {
|
|
399
|
-
links?: {
|
|
400
|
-
feature: string;
|
|
401
|
-
segment: string;
|
|
402
|
-
attribute: string;
|
|
403
|
-
commit: CommitHash;
|
|
404
|
-
};
|
|
405
|
-
projectConfig: {
|
|
406
|
-
tags: Tag[];
|
|
407
|
-
environments: EnvironmentKey[] | false;
|
|
408
|
-
};
|
|
409
|
-
entities: {
|
|
410
|
-
attributes: (Attribute & {
|
|
411
|
-
lastModified?: LastModified;
|
|
412
|
-
usedInSegments: SegmentKey[];
|
|
413
|
-
usedInFeatures: FeatureKey[];
|
|
414
|
-
})[];
|
|
415
|
-
segments: (Segment & {
|
|
416
|
-
lastModified?: LastModified;
|
|
417
|
-
usedInFeatures: FeatureKey[];
|
|
418
|
-
})[];
|
|
419
|
-
features: (ParsedFeature & {
|
|
420
|
-
lastModified?: LastModified;
|
|
421
|
-
})[];
|
|
422
|
-
};
|
|
423
|
-
}
|
|
424
|
-
export interface EntityDiff {
|
|
425
|
-
type: EntityType;
|
|
426
|
-
key: string;
|
|
427
|
-
created?: boolean;
|
|
428
|
-
deleted?: boolean;
|
|
429
|
-
updated?: boolean;
|
|
430
|
-
content?: string;
|
|
431
|
-
}
|
|
432
|
-
export interface Commit {
|
|
433
|
-
hash: CommitHash;
|
|
434
|
-
author: string;
|
|
435
|
-
timestamp: string;
|
|
436
|
-
entities: EntityDiff[];
|
|
437
|
-
}
|
package/lib/index.js
DELETED
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/webpack.config.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
|
|
3
|
-
const getWebpackConfig = require("../../tools/getWebpackConfig");
|
|
4
|
-
|
|
5
|
-
const wepbackConfig = getWebpackConfig({
|
|
6
|
-
entryFilePath: path.join(__dirname, "src", "index.ts"),
|
|
7
|
-
entryKey: "index",
|
|
8
|
-
outputDirectoryPath: path.join(__dirname, "dist"),
|
|
9
|
-
outputLibrary: "FeaturevisorTypes",
|
|
10
|
-
tsConfigFilePath: path.join(__dirname, "tsconfig.cjs.json"),
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
module.exports = wepbackConfig;
|
|
File without changes
|