bruce-models 3.5.0 → 3.5.2

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.
Files changed (39) hide show
  1. package/README.md +31 -0
  2. package/dist/bruce-models.es5.js +232 -216
  3. package/dist/bruce-models.es5.js.map +1 -1
  4. package/dist/bruce-models.umd.js +221 -205
  5. package/dist/bruce-models.umd.js.map +1 -1
  6. package/dist/lib/account/account.js +45 -45
  7. package/dist/lib/account/account.js.map +1 -1
  8. package/dist/lib/ann-document/ann-document.js +28 -28
  9. package/dist/lib/ann-document/ann-document.js.map +1 -1
  10. package/dist/lib/bruce-models.js +2 -1
  11. package/dist/lib/bruce-models.js.map +1 -1
  12. package/dist/lib/client-file/client-file.js +14 -14
  13. package/dist/lib/client-file/client-file.js.map +1 -1
  14. package/dist/lib/custom-form/custom-form.js +31 -31
  15. package/dist/lib/custom-form/custom-form.js.map +1 -1
  16. package/dist/lib/data-lab/data-lab.js.map +1 -1
  17. package/dist/lib/data-source/data-source.js +27 -27
  18. package/dist/lib/data-source/data-source.js.map +1 -1
  19. package/dist/lib/entity/entity-attachment-type.js +28 -28
  20. package/dist/lib/entity/entity-attachment-type.js.map +1 -1
  21. package/dist/lib/entity/entity-attachment.js +28 -28
  22. package/dist/lib/entity/entity-attachment.js.map +1 -1
  23. package/dist/lib/entity/entity-attribute.js.map +1 -1
  24. package/dist/lib/entity/entity-tag.js +17 -2
  25. package/dist/lib/entity/entity-tag.js.map +1 -1
  26. package/dist/lib/plugin/plugin.js +32 -32
  27. package/dist/lib/project/project-view-bookmark.js.map +1 -1
  28. package/dist/types/account/account.d.ts +47 -47
  29. package/dist/types/ann-document/ann-document.d.ts +42 -42
  30. package/dist/types/bruce-models.d.ts +1 -1
  31. package/dist/types/client-file/client-file.d.ts +11 -11
  32. package/dist/types/custom-form/custom-form.d.ts +22 -22
  33. package/dist/types/data-lab/data-lab.d.ts +4 -4
  34. package/dist/types/data-source/data-source.d.ts +21 -21
  35. package/dist/types/entity/entity-attachment-type.d.ts +22 -22
  36. package/dist/types/entity/entity-attachment.d.ts +22 -22
  37. package/dist/types/entity/entity-attribute.d.ts +9 -9
  38. package/dist/types/project/project-view-bookmark.d.ts +12 -0
  39. package/package.json +78 -78
@@ -6,28 +6,6 @@ type Type = EntityAttachmentType.EType | string;
6
6
  * It is a record that describes the purpose of an attachment.
7
7
  */
8
8
  export declare namespace EntityAttachmentType {
9
- /**
10
- * Returns cache identifier for an attachment type by ID.
11
- * Example: {
12
- * const api: BruceApi.Api = ...;
13
- * const key = GetCacheKey("123");
14
- * api.Cache.Remove(key);
15
- * }
16
- * @param id
17
- * @returns
18
- */
19
- function GetCacheKey(id: Type): string;
20
- /**
21
- * Returns cache identifier for a list of attachment types.
22
- * Example: {
23
- * const api: BruceApi.Api = ...;
24
- * const key = GetListCacheKey();
25
- * api.Cache.Remove(key);
26
- * }
27
- * @param typeId
28
- * @returns
29
- */
30
- function GetListCacheKey(): string;
31
9
  /**
32
10
  * Describes an attachment type record.
33
11
  */
@@ -72,5 +50,27 @@ export declare namespace EntityAttachmentType {
72
50
  }): Promise<{
73
51
  attachmentTypes: IType[];
74
52
  }>;
53
+ /**
54
+ * Returns cache identifier for an attachment type by ID.
55
+ * Example: {
56
+ * const api: BruceApi.Api = ...;
57
+ * const key = GetCacheKey("123");
58
+ * api.Cache.Remove(key);
59
+ * }
60
+ * @param id
61
+ * @returns
62
+ */
63
+ function GetCacheKey(id: Type): string;
64
+ /**
65
+ * Returns cache identifier for a list of attachment types.
66
+ * Example: {
67
+ * const api: BruceApi.Api = ...;
68
+ * const key = GetListCacheKey();
69
+ * api.Cache.Remove(key);
70
+ * }
71
+ * @param typeId
72
+ * @returns
73
+ */
74
+ function GetListCacheKey(): string;
75
75
  }
76
76
  export {};
@@ -9,28 +9,6 @@ type Type = EntityAttachmentType.EType | string;
9
9
  * The same file can be attached to multiple entities.
10
10
  */
11
11
  export declare namespace EntityAttachment {
12
- /**
13
- * Returns cache identifier for an attachment by ID.
14
- * Example: {
15
- * const api: BruceApi.Api = ...;
16
- * const key = GetCacheKey("123");
17
- * api.Cache.Remove(key);
18
- * }
19
- * @param id
20
- * @returns
21
- */
22
- function GetCacheKey(id: number): string;
23
- /**
24
- * Returns cache identifier for a list of attachments for an entity.
25
- * Example: {
26
- * const api: BruceApi.Api = ...;
27
- * const key = GetListCacheKey("abc");
28
- * api.Cache.Remove(key);
29
- * }
30
- * @param typeId
31
- * @returns
32
- */
33
- function GetListCacheKey(entityId: string): string;
34
12
  /**
35
13
  * Describes an attachment record.
36
14
  */
@@ -104,5 +82,27 @@ export declare namespace EntityAttachment {
104
82
  }): Promise<{
105
83
  attachment: IAttachment;
106
84
  }>;
85
+ /**
86
+ * Returns cache identifier for an attachment by ID.
87
+ * Example: {
88
+ * const api: BruceApi.Api = ...;
89
+ * const key = GetCacheKey("123");
90
+ * api.Cache.Remove(key);
91
+ * }
92
+ * @param id
93
+ * @returns
94
+ */
95
+ function GetCacheKey(id: number): string;
96
+ /**
97
+ * Returns cache identifier for a list of attachments for an entity.
98
+ * Example: {
99
+ * const api: BruceApi.Api = ...;
100
+ * const key = GetListCacheKey("abc");
101
+ * api.Cache.Remove(key);
102
+ * }
103
+ * @param typeId
104
+ * @returns
105
+ */
106
+ function GetListCacheKey(entityId: string): string;
107
107
  }
108
108
  export {};
@@ -2,15 +2,6 @@
2
2
  * Describes an entity type schema attribute.
3
3
  */
4
4
  export declare namespace EntityAttribute {
5
- enum EType {
6
- String = "String",
7
- Double = "Double",
8
- Integer = "Integer",
9
- Datetime = "Datetime",
10
- Structure = "Structure",
11
- Geometry = "Geometry",
12
- Boolean = "Boolean"
13
- }
14
5
  /**
15
6
  * Describes an entity attribute.
16
7
  * This sits within an entity type schema.
@@ -30,6 +21,15 @@ export declare namespace EntityAttribute {
30
21
  IsFamilyAttributeDefault?: boolean;
31
22
  Sources?: string[];
32
23
  }
24
+ enum EType {
25
+ String = "String",
26
+ Double = "Double",
27
+ Integer = "Integer",
28
+ Datetime = "Datetime",
29
+ Structure = "Structure",
30
+ Geometry = "Geometry",
31
+ Boolean = "Boolean"
32
+ }
33
33
  /**
34
34
  * Describes additional metadata for an attribute.
35
35
  */
@@ -76,6 +76,7 @@ export declare namespace ProjectViewBookmark {
76
76
  ambientOcclusion?: IAmbientOcclusion;
77
77
  lighting?: ILighting;
78
78
  quality?: IQuality;
79
+ contours?: IContours;
79
80
  dateTime?: string;
80
81
  entityOpacityMap?: IDictionary<number>;
81
82
  selectedEntityIds?: string[];
@@ -86,6 +87,17 @@ export declare namespace ProjectViewBookmark {
86
87
  terrainWireframe?: boolean;
87
88
  renderedEntityRelations?: string[];
88
89
  }
90
+ /**
91
+ * Describes the terrain contours overlay.
92
+ */
93
+ interface IContours {
94
+ enabled: boolean;
95
+ spacing: number;
96
+ width: number;
97
+ drawLabels: boolean;
98
+ color: string;
99
+ alpha: number;
100
+ }
89
101
  /**
90
102
  * Describes the shadows settings for a bookmark.
91
103
  */
package/package.json CHANGED
@@ -1,78 +1,78 @@
1
- {
2
- "name": "bruce-models",
3
- "version": "3.5.0",
4
- "description": "",
5
- "keywords": [],
6
- "main": "dist/bruce-models.umd.js",
7
- "module": "dist/bruce-models.es5.js",
8
- "typings": "dist/types/bruce-models.d.ts",
9
- "files": [
10
- "dist"
11
- ],
12
- "author": "MatveyL <matveylavrinovich@gmail.com>",
13
- "repository": {
14
- "type": "git",
15
- "url": ""
16
- },
17
- "license": "ISC",
18
- "engines": {
19
- "node": ">=6.0.0"
20
- },
21
- "scripts": {
22
- "prebuild": "rimraf dist",
23
- "build": "tsc --module commonjs && rollup -c rollup.config.ts",
24
- "docs": "typedoc ./src/bruce-models.ts --out ./docs",
25
- "start": "rollup -c rollup.config.ts -w",
26
- "test": "jest \"./test/unit\"",
27
- "test-db": "jest \"./test/db\"",
28
- "test:watch": "jest --watch",
29
- "test:prod": "npm run test -- --no-cache"
30
- },
31
- "jest": {
32
- "transform": {
33
- ".(ts|tsx)": "ts-jest"
34
- },
35
- "testEnvironment": "node",
36
- "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
37
- "moduleFileExtensions": [
38
- "ts",
39
- "tsx",
40
- "js"
41
- ],
42
- "setupFiles": [
43
- "./setup-jest.js"
44
- ]
45
- },
46
- "devDependencies": {
47
- "@types/jest": "^23.3.14",
48
- "@types/lodash": "^4.14.195",
49
- "@types/node": "^10.11.0",
50
- "colors": "^1.3.2",
51
- "coveralls": "^3.0.2",
52
- "cross-env": "^5.2.0",
53
- "husky": "^1.0.1",
54
- "jest": "^23.6.0",
55
- "jest-config": "^23.6.0",
56
- "lodash.camelcase": "^4.3.0",
57
- "prompt": "^1.0.0",
58
- "replace-in-file": "^3.4.2",
59
- "rimraf": "^2.6.2",
60
- "rollup": "^0.67.0",
61
- "rollup-plugin-commonjs": "^9.1.8",
62
- "rollup-plugin-json": "^3.1.0",
63
- "rollup-plugin-node-resolve": "^3.4.0",
64
- "rollup-plugin-sourcemaps": "^0.4.2",
65
- "rollup-plugin-typescript2": "^0.18.0",
66
- "shelljs": "^0.8.3",
67
- "ts-jest": "^23.10.2",
68
- "ts-node": "^7.0.1",
69
- "typedoc": "^0.24.8",
70
- "typescript": "^5.0.4",
71
- "ws": "^8.13.0"
72
- },
73
- "dependencies": {
74
- "isomorphic-fetch": "^3.0.0",
75
- "tslib": "^2.4.0",
76
- "util": "^0.12.4"
77
- }
78
- }
1
+ {
2
+ "name": "bruce-models",
3
+ "version": "3.5.2",
4
+ "description": "",
5
+ "keywords": [],
6
+ "main": "dist/bruce-models.umd.js",
7
+ "module": "dist/bruce-models.es5.js",
8
+ "typings": "dist/types/bruce-models.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "author": "MatveyL <matveylavrinovich@gmail.com>",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": ""
16
+ },
17
+ "license": "ISC",
18
+ "engines": {
19
+ "node": ">=6.0.0"
20
+ },
21
+ "scripts": {
22
+ "prebuild": "rimraf dist",
23
+ "build": "node ./pre-build.js && tsc --module commonjs && rollup -c rollup.config.ts",
24
+ "docs": "typedoc ./src/bruce-models.ts --out ./docs",
25
+ "start": "rollup -c rollup.config.ts -w",
26
+ "test": "jest \"./test/unit\"",
27
+ "test-db": "jest \"./test/db\"",
28
+ "test:watch": "jest --watch",
29
+ "test:prod": "npm run test -- --no-cache"
30
+ },
31
+ "jest": {
32
+ "transform": {
33
+ ".(ts|tsx)": "ts-jest"
34
+ },
35
+ "testEnvironment": "node",
36
+ "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
37
+ "moduleFileExtensions": [
38
+ "ts",
39
+ "tsx",
40
+ "js"
41
+ ],
42
+ "setupFiles": [
43
+ "./setup-jest.js"
44
+ ]
45
+ },
46
+ "devDependencies": {
47
+ "@types/jest": "^23.3.14",
48
+ "@types/lodash": "^4.14.195",
49
+ "@types/node": "^10.11.0",
50
+ "colors": "^1.3.2",
51
+ "coveralls": "^3.0.2",
52
+ "cross-env": "^5.2.0",
53
+ "husky": "^1.0.1",
54
+ "jest": "^23.6.0",
55
+ "jest-config": "^23.6.0",
56
+ "lodash.camelcase": "^4.3.0",
57
+ "prompt": "^1.0.0",
58
+ "replace-in-file": "^3.4.2",
59
+ "rimraf": "^2.6.2",
60
+ "rollup": "^0.67.0",
61
+ "rollup-plugin-commonjs": "^9.1.8",
62
+ "rollup-plugin-json": "^3.1.0",
63
+ "rollup-plugin-node-resolve": "^3.4.0",
64
+ "rollup-plugin-sourcemaps": "^0.4.2",
65
+ "rollup-plugin-typescript2": "^0.18.0",
66
+ "shelljs": "^0.8.3",
67
+ "ts-jest": "^23.10.2",
68
+ "ts-node": "^7.0.1",
69
+ "typedoc": "^0.24.8",
70
+ "typescript": "^5.0.4",
71
+ "ws": "^8.13.0"
72
+ },
73
+ "dependencies": {
74
+ "isomorphic-fetch": "^3.0.0",
75
+ "tslib": "^2.4.0",
76
+ "util": "^0.12.4"
77
+ }
78
+ }