@featurevisor/types 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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
+ # [0.8.0](https://github.com/fahad19/featurevisor/compare/v0.7.0...v0.8.0) (2023-04-09)
7
+
8
+
9
+ ### Features
10
+
11
+ * Status site generator ([#31](https://github.com/fahad19/featurevisor/issues/31)) ([05749d4](https://github.com/fahad19/featurevisor/commit/05749d4ca2938a0ee7c7b52c7441b078d5f0dee9))
12
+
13
+
14
+
15
+
16
+
6
17
  # [0.7.0](https://github.com/fahad19/featurevisor/compare/v0.6.0...v0.7.0) (2023-03-25)
7
18
 
8
19
 
package/lib/index.d.ts CHANGED
@@ -184,3 +184,43 @@ export interface ExistingFeatures {
184
184
  export interface ExistingState {
185
185
  features: ExistingFeatures;
186
186
  }
187
+ /**
188
+ * Site index and history
189
+ */
190
+ export interface HistoryEntity {
191
+ type: "attribute" | "segment" | "feature";
192
+ key: string;
193
+ }
194
+ export interface HistoryEntry {
195
+ commit: string;
196
+ author: string;
197
+ timestamp: string;
198
+ entities: HistoryEntity[];
199
+ }
200
+ export interface LastModified {
201
+ commit: string;
202
+ timestamp: string;
203
+ author: string;
204
+ }
205
+ export interface SearchIndex {
206
+ links?: {
207
+ feature: string;
208
+ segment: string;
209
+ attribute: string;
210
+ commit: string;
211
+ };
212
+ entities: {
213
+ attributes: (Attribute & {
214
+ lastModified?: LastModified;
215
+ usedInSegments: SegmentKey[];
216
+ usedInFeatures: FeatureKey[];
217
+ })[];
218
+ segments: (Segment & {
219
+ lastModified?: LastModified;
220
+ usedInFeatures: FeatureKey[];
221
+ })[];
222
+ features: (ParsedFeature & {
223
+ lastModified?: LastModified;
224
+ })[];
225
+ };
226
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featurevisor/types",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Common Typescript types for Featurevisor",
5
5
  "main": "dist/index.js",
6
6
  "module": "lib/index.js",
@@ -41,5 +41,5 @@
41
41
  "url": "https://github.com/fahad19/featurevisor/issues"
42
42
  },
43
43
  "license": "MIT",
44
- "gitHead": "d06517f562f831dc61eebc531b85fabccc06ec2e"
44
+ "gitHead": "fe803f91b34ee7aa98a384769ba1fc181fb9c64e"
45
45
  }
package/src/index.ts CHANGED
@@ -289,3 +289,47 @@ export interface ExistingFeatures {
289
289
  export interface ExistingState {
290
290
  features: ExistingFeatures;
291
291
  }
292
+
293
+ /**
294
+ * Site index and history
295
+ */
296
+ export interface HistoryEntity {
297
+ type: "attribute" | "segment" | "feature";
298
+ key: string;
299
+ }
300
+
301
+ export interface HistoryEntry {
302
+ commit: string;
303
+ author: string;
304
+ timestamp: string;
305
+ entities: HistoryEntity[];
306
+ }
307
+
308
+ export interface LastModified {
309
+ commit: string;
310
+ timestamp: string;
311
+ author: string;
312
+ }
313
+
314
+ export interface SearchIndex {
315
+ links?: {
316
+ feature: string;
317
+ segment: string;
318
+ attribute: string;
319
+ commit: string;
320
+ };
321
+ entities: {
322
+ attributes: (Attribute & {
323
+ lastModified?: LastModified;
324
+ usedInSegments: SegmentKey[];
325
+ usedInFeatures: FeatureKey[];
326
+ })[];
327
+ segments: (Segment & {
328
+ lastModified?: LastModified;
329
+ usedInFeatures: FeatureKey[];
330
+ })[];
331
+ features: (ParsedFeature & {
332
+ lastModified?: LastModified;
333
+ })[];
334
+ };
335
+ }