@contrail/data-grouping 1.0.3 → 1.0.4

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.
@@ -1,3 +1,4 @@
1
+ import { TypeProperty } from "@contrail/types";
1
2
  export interface DataGroup {
2
3
  subGroups: Array<DataGroup>;
3
4
  name: string;
@@ -6,12 +7,8 @@ export interface DataGroup {
6
7
  };
7
8
  data: Array<any>;
8
9
  }
9
- export interface DataGroupPropertyDefinition {
10
- slug: string;
11
- propertyType: string;
12
- }
13
10
  export interface DataGroupStructure {
14
11
  rootGroup: DataGroup;
15
12
  depth: number;
16
- groupingProperties: Array<DataGroupPropertyDefinition>;
13
+ groupingProperties: Array<TypeProperty>;
17
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/data-grouping",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
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",