@contrail/data-grouping 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,3 @@
1
- import { TypeProperty } from "@contrail/types";
2
1
  export interface DataGroup {
3
2
  subGroups: Array<DataGroup>;
4
3
  name: string;
@@ -7,8 +6,12 @@ export interface DataGroup {
7
6
  };
8
7
  data: Array<any>;
9
8
  }
9
+ export interface DataGroupPropertyDefinition {
10
+ slug: string;
11
+ propertyType: string;
12
+ }
10
13
  export interface DataGroupStructure {
11
14
  rootGroup: DataGroup;
12
15
  depth: number;
13
- groupingProperties: Array<TypeProperty>;
16
+ groupingProperties: Array<DataGroupPropertyDefinition>;
14
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/data-grouping",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Utilities and interfaces for grouping data into hierarchial data structures based on properties.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",