@dra2020/dra-types 1.8.129 → 1.8.131

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.
@@ -0,0 +1 @@
1
+ export declare function genColor(i: number, useFirstColor: boolean): string;
package/dist/layer.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as G from './groups';
1
2
  export interface UserLayerMeta {
2
3
  createdBy: string;
3
4
  id: string;
@@ -9,6 +10,11 @@ export interface UserLayerMeta {
9
10
  deleted?: boolean;
10
11
  published?: string;
11
12
  official?: boolean;
13
+ groups?: G.GroupMapIndex;
14
+ labels?: string[];
15
+ labelupdate?: {
16
+ [name: string]: boolean | null;
17
+ };
12
18
  }
13
19
  export type UserLayerMetaIndex = {
14
20
  [id: string]: UserLayerMeta;
package/lib/datasets.ts CHANGED
@@ -106,6 +106,7 @@ export interface Dataset
106
106
  meta?: DatasetsMeta,
107
107
  groups?: G.GroupMapIndex,
108
108
  labels?: string[],
109
+ labelupdate?: { [name: string]: boolean|null }, // just for update purposes, not stored
109
110
  }
110
111
 
111
112
  export function datasetRestrict(ds: Dataset): { [key: string]: boolean }
package/lib/layer.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import * as G from './groups';
2
+
1
3
  export interface UserLayerMeta
2
4
  {
3
5
  createdBy: string,
@@ -9,7 +11,10 @@ export interface UserLayerMeta
9
11
  modifyTime?: string,
10
12
  deleted?: boolean,
11
13
  published?: string,
12
- official?: boolean
14
+ official?: boolean,
15
+ groups?: G.GroupMapIndex,
16
+ labels?: string[],
17
+ labelupdate?: { [name: string]: boolean|null }, // just for update purposes, not stored
13
18
  }
14
19
 
15
20
  export type UserLayerMetaIndex = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/dra-types",
3
- "version": "1.8.129",
3
+ "version": "1.8.131",
4
4
  "description": "Shared types used between client, server and tools.",
5
5
  "main": "dist/dra-types.js",
6
6
  "types": "./dist/all.d.ts",
@@ -34,7 +34,7 @@
34
34
  "webpack-cli": "^5.1.4"
35
35
  },
36
36
  "dependencies": {
37
- "@dra2020/baseclient": "^1.0.147",
37
+ "@dra2020/baseclient": "^1.0.148",
38
38
  "geojson": "^0.5.0",
39
39
  "object-hash": "^3.0.0"
40
40
  }