bruce-models 3.6.9 → 3.7.1

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 (62) hide show
  1. package/dist/bruce-models.es5.js +536 -441
  2. package/dist/bruce-models.es5.js.map +1 -1
  3. package/dist/bruce-models.umd.js +483 -393
  4. package/dist/bruce-models.umd.js.map +1 -1
  5. package/dist/lib/bruce-models.js +2 -1
  6. package/dist/lib/bruce-models.js.map +1 -1
  7. package/dist/lib/entity/entity-comment.js +28 -28
  8. package/dist/lib/entity/entity-comment.js.map +1 -1
  9. package/dist/lib/entity/entity-coords.js +14 -14
  10. package/dist/lib/entity/entity-coords.js.map +1 -1
  11. package/dist/lib/entity/entity-link.js +28 -28
  12. package/dist/lib/entity/entity-link.js.map +1 -1
  13. package/dist/lib/entity/entity-lod-category.js +27 -27
  14. package/dist/lib/entity/entity-lod-category.js.map +1 -1
  15. package/dist/lib/entity/entity-lod.js +43 -43
  16. package/dist/lib/entity/entity-lod.js.map +1 -1
  17. package/dist/lib/entity/entity-relation-type.js +27 -27
  18. package/dist/lib/entity/entity-relation-type.js.map +1 -1
  19. package/dist/lib/entity/entity-relation.js +46 -46
  20. package/dist/lib/entity/entity-relation.js.map +1 -1
  21. package/dist/lib/entity/entity-source.js +15 -15
  22. package/dist/lib/entity/entity-source.js.map +1 -1
  23. package/dist/lib/entity/entity-tag.js +31 -31
  24. package/dist/lib/entity/entity-tag.js.map +1 -1
  25. package/dist/lib/entity/entity-type.js +27 -27
  26. package/dist/lib/entity/entity-type.js.map +1 -1
  27. package/dist/lib/entity/entity.js +32 -32
  28. package/dist/lib/entity/entity.js.map +1 -1
  29. package/dist/lib/plugin/plugin.js +4 -0
  30. package/dist/lib/plugin/plugin.js.map +1 -1
  31. package/dist/lib/program-key/program-key.js +27 -27
  32. package/dist/lib/program-key/program-key.js.map +1 -1
  33. package/dist/lib/project/menu-item.js.map +1 -1
  34. package/dist/lib/project/project-view-bookmark.js +29 -29
  35. package/dist/lib/project/project-view-bookmark.js.map +1 -1
  36. package/dist/lib/style/style.js +27 -27
  37. package/dist/lib/style/style.js.map +1 -1
  38. package/dist/lib/tileset/tileset.js +28 -28
  39. package/dist/lib/tileset/tileset.js.map +1 -1
  40. package/dist/lib/user/session.js +13 -13
  41. package/dist/lib/user/session.js.map +1 -1
  42. package/dist/lib/user/user.js +51 -51
  43. package/dist/lib/user/user.js.map +1 -1
  44. package/dist/types/bruce-models.d.ts +2 -1
  45. package/dist/types/entity/entity-comment.d.ts +22 -22
  46. package/dist/types/entity/entity-coords.d.ts +11 -11
  47. package/dist/types/entity/entity-link.d.ts +22 -22
  48. package/dist/types/entity/entity-lod-category.d.ts +21 -21
  49. package/dist/types/entity/entity-lod.d.ts +34 -34
  50. package/dist/types/entity/entity-relation-type.d.ts +21 -21
  51. package/dist/types/entity/entity-relation.d.ts +33 -33
  52. package/dist/types/entity/entity-source.d.ts +12 -12
  53. package/dist/types/entity/entity-tag.d.ts +22 -22
  54. package/dist/types/entity/entity-type.d.ts +21 -21
  55. package/dist/types/entity/entity.d.ts +27 -27
  56. package/dist/types/program-key/program-key.d.ts +21 -21
  57. package/dist/types/project/menu-item.d.ts +1 -0
  58. package/dist/types/project/project-view-bookmark.d.ts +23 -23
  59. package/dist/types/style/style.d.ts +21 -21
  60. package/dist/types/tileset/tileset.d.ts +22 -22
  61. package/dist/types/user/user.d.ts +36 -36
  62. package/package.json +1 -1
@@ -15,33 +15,6 @@ type _any = any;
15
15
  * Entity records have many thinks linked to them through their UIDs such as links, files and relationships.
16
16
  */
17
17
  export declare namespace Entity {
18
- /**
19
- * Returns cache identifier for an entity record.
20
- * Example: {
21
- * const api: BruceApi.Api = ...;
22
- * const key = GetCacheKey({...});
23
- * api.Cache.Remove(key);
24
- * }
25
- * @param params
26
- * @returns
27
- */
28
- function GetCacheKey(params: {
29
- entityId: string;
30
- entityTypeId?: string;
31
- expandLocation?: boolean;
32
- expandRelations?: boolean;
33
- }): string;
34
- /**
35
- * Returns cache identifier for an entity record.
36
- * Example: {
37
- * const api: BruceApi.Api = ...;
38
- * const key = GetCacheKey("abc");
39
- * api.Cache.Remove(key);
40
- * }
41
- * @param entityId
42
- * @returns
43
- */
44
- function GetContainsKey(entityId: string): string;
45
18
  /**
46
19
  * Describes an entity record.
47
20
  */
@@ -237,5 +210,32 @@ export declare namespace Entity {
237
210
  includeUserData?: boolean;
238
211
  allowedDisplayTypes?: ZoomControl.EDisplayType[];
239
212
  }): any;
213
+ /**
214
+ * Returns cache identifier for an entity record.
215
+ * Example: {
216
+ * const api: BruceApi.Api = ...;
217
+ * const key = GetCacheKey({...});
218
+ * api.Cache.Remove(key);
219
+ * }
220
+ * @param params
221
+ * @returns
222
+ */
223
+ function GetCacheKey(params: {
224
+ entityId: string;
225
+ entityTypeId?: string;
226
+ expandLocation?: boolean;
227
+ expandRelations?: boolean;
228
+ }): string;
229
+ /**
230
+ * Returns cache identifier for an entity record.
231
+ * Example: {
232
+ * const api: BruceApi.Api = ...;
233
+ * const key = GetCacheKey("abc");
234
+ * api.Cache.Remove(key);
235
+ * }
236
+ * @param entityId
237
+ * @returns
238
+ */
239
+ function GetContainsKey(entityId: string): string;
240
240
  }
241
241
  export {};
@@ -6,27 +6,6 @@ type Id = ProgramKey.EProgramId | string;
6
6
  * A program key is an access token for an arbitrary software.
7
7
  */
8
8
  export declare namespace ProgramKey {
9
- /**
10
- * Returns cache identifier for a program key.
11
- * Example: {
12
- * const api: BruceApi.Api = ...;
13
- * const key = GetCacheKey("abc");
14
- * api.Cache.Remove(key);
15
- * }
16
- * @param programId
17
- * @returns
18
- */
19
- function GetCacheKey(programId: string): string;
20
- /**
21
- * Returns cache identifier for a list of program keys.
22
- * Example: {
23
- * const api: BruceApi.Api = ...;
24
- * const key = GetListCacheKey();
25
- * api.Cache.Remove(key);
26
- * }
27
- * @returns
28
- */
29
- function GetListCacheKey(): string;
30
9
  /**
31
10
  * Known program IDs that Nextspace applications will reference.
32
11
  */
@@ -88,5 +67,26 @@ export declare namespace ProgramKey {
88
67
  }): Promise<{
89
68
  programKey: IKey;
90
69
  }>;
70
+ /**
71
+ * Returns cache identifier for a program key.
72
+ * Example: {
73
+ * const api: BruceApi.Api = ...;
74
+ * const key = GetCacheKey("abc");
75
+ * api.Cache.Remove(key);
76
+ * }
77
+ * @param programId
78
+ * @returns
79
+ */
80
+ function GetCacheKey(programId: string): string;
81
+ /**
82
+ * Returns cache identifier for a list of program keys.
83
+ * Example: {
84
+ * const api: BruceApi.Api = ...;
85
+ * const key = GetListCacheKey();
86
+ * api.Cache.Remove(key);
87
+ * }
88
+ * @returns
89
+ */
90
+ function GetListCacheKey(): string;
91
91
  }
92
92
  export {};
@@ -236,6 +236,7 @@ export declare namespace MenuItem {
236
236
  vehicleFileId?: string;
237
237
  lineColor?: string;
238
238
  alertFileId?: string;
239
+ vehicleEntityId?: string;
239
240
  }[];
240
241
  }
241
242
  /**
@@ -14,29 +14,6 @@ import { ProjectViewTile } from "./project-view-tile";
14
14
  * A bookmark is a snapshot of what should be displayed and how in a particular project view.
15
15
  */
16
16
  export declare namespace ProjectViewBookmark {
17
- /**
18
- * Returns cache identifier for a bookmark.
19
- * Example: {
20
- * const api: BruceApi.Api = ...;
21
- * const key = GetCacheKey("abc", "def");
22
- * api.Cache.Remove(key);
23
- * }
24
- * @param viewId
25
- * @param bookmarkId
26
- * @returns
27
- */
28
- function GetCacheKey(viewId: string, bookmarkId: string): string;
29
- /**
30
- * Returns cache identifier for a list of bookmarks.
31
- * Example: {
32
- * const api: BruceApi.Api = ...;
33
- * const key = GetListCacheKey("abc");
34
- * api.Cache.Remove(key);
35
- * }
36
- * @param viewId
37
- * @returns
38
- */
39
- function GetListCacheKey(viewId: string): string;
40
17
  const DEFAULT_DATA_VERSION = 2;
41
18
  /**
42
19
  * Describes a bookmark record.
@@ -233,4 +210,27 @@ export declare namespace ProjectViewBookmark {
233
210
  zoom: number;
234
211
  }
235
212
  }
213
+ /**
214
+ * Returns cache identifier for a bookmark.
215
+ * Example: {
216
+ * const api: BruceApi.Api = ...;
217
+ * const key = GetCacheKey("abc", "def");
218
+ * api.Cache.Remove(key);
219
+ * }
220
+ * @param viewId
221
+ * @param bookmarkId
222
+ * @returns
223
+ */
224
+ function GetCacheKey(viewId: string, bookmarkId: string): string;
225
+ /**
226
+ * Returns cache identifier for a list of bookmarks.
227
+ * Example: {
228
+ * const api: BruceApi.Api = ...;
229
+ * const key = GetListCacheKey("abc");
230
+ * api.Cache.Remove(key);
231
+ * }
232
+ * @param viewId
233
+ * @returns
234
+ */
235
+ function GetListCacheKey(viewId: string): string;
236
236
  }
@@ -9,27 +9,6 @@ import { Calculator } from "../calculator/calculator";
9
9
  * describe how an entity should be displayed.
10
10
  */
11
11
  export declare namespace Style {
12
- /**
13
- * Returns cache identifier for a style.
14
- * Example: {
15
- * const api: BruceApi.Api = ...;
16
- * const key = GetCacheKey(1);
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 styles.
25
- * Example: {
26
- * const api: BruceApi.Api = ...;
27
- * const key = GetListCacheKey();
28
- * api.Cache.Remove(key);
29
- * }
30
- * @returns
31
- */
32
- function GetListCacheKey(): string;
33
12
  /**
34
13
  * Types of styles available.
35
14
  * The type will dictate what settings are available.
@@ -185,4 +164,25 @@ export declare namespace Style {
185
164
  styleId: number;
186
165
  req?: Api.IReqParams;
187
166
  }): Promise<void>;
167
+ /**
168
+ * Returns cache identifier for a style.
169
+ * Example: {
170
+ * const api: BruceApi.Api = ...;
171
+ * const key = GetCacheKey(1);
172
+ * api.Cache.Remove(key);
173
+ * }
174
+ * @param id
175
+ * @returns
176
+ */
177
+ function GetCacheKey(id: number): string;
178
+ /**
179
+ * Returns cache identifier for a list of styles.
180
+ * Example: {
181
+ * const api: BruceApi.Api = ...;
182
+ * const key = GetListCacheKey();
183
+ * api.Cache.Remove(key);
184
+ * }
185
+ * @returns
186
+ */
187
+ function GetListCacheKey(): string;
188
188
  }
@@ -19,28 +19,6 @@ type Settings = Tileset.Settings.IPointcloud | Tileset.Settings.ICad | Tileset.S
19
19
  * Read the individual tileset-type settings for each variant.
20
20
  */
21
21
  export declare namespace Tileset {
22
- /**
23
- * Returns cache identifier for a tileset.
24
- * Example: {
25
- * const api: BruceApi.Api = ...;
26
- * const key = GetCacheKey("abc", false);
27
- * api.Cache.Remove(key);
28
- * }
29
- * @param tilesetId
30
- * @param loadFiles
31
- * @returns
32
- */
33
- function GetCacheKey(tilesetId: string, loadFiles: boolean): string;
34
- /**
35
- * Returns cache identifier for a list of tilesets.
36
- * Example: {
37
- * const api: BruceApi.Api = ...;
38
- * const key = GetListCacheKey();
39
- * api.Cache.Remove(key);
40
- * }
41
- * @returns
42
- */
43
- function GetListCacheKey(): string;
44
22
  /**
45
23
  * Describes a tileset record.
46
24
  */
@@ -368,5 +346,27 @@ export declare namespace Tileset {
368
346
  startLevel?: number;
369
347
  }
370
348
  }
349
+ /**
350
+ * Returns cache identifier for a tileset.
351
+ * Example: {
352
+ * const api: BruceApi.Api = ...;
353
+ * const key = GetCacheKey("abc", false);
354
+ * api.Cache.Remove(key);
355
+ * }
356
+ * @param tilesetId
357
+ * @param loadFiles
358
+ * @returns
359
+ */
360
+ function GetCacheKey(tilesetId: string, loadFiles: boolean): string;
361
+ /**
362
+ * Returns cache identifier for a list of tilesets.
363
+ * Example: {
364
+ * const api: BruceApi.Api = ...;
365
+ * const key = GetListCacheKey();
366
+ * api.Cache.Remove(key);
367
+ * }
368
+ * @returns
369
+ */
370
+ function GetListCacheKey(): string;
371
371
  }
372
372
  export {};
@@ -9,42 +9,6 @@ import { UserGroup } from "./user-group";
9
9
  * treated the same way in terms of permissions and user groups.
10
10
  */
11
11
  export declare namespace User {
12
- /**
13
- * Returns cache identifier for a user.
14
- * Example: {
15
- * const api: BruceApi.Api = ...;
16
- * const key = GetCacheKey("abc", "def");
17
- * api.Cache.Remove(key);
18
- * }
19
- * @param userId
20
- * @param accountId
21
- * @returns
22
- */
23
- function GetCacheKey(userId: string, accountId?: string): string;
24
- /**
25
- * Returns cache identifier for a user.
26
- * Example: {
27
- * const api: BruceApi.Api = ...;
28
- * const key = GetCacheKey("abc", "def");
29
- * api.Cache.Remove(key);
30
- * }
31
- * @param email
32
- * @param accountId
33
- * @returns
34
- */
35
- function GetEmailCacheKey(email: string, accountId?: string): string;
36
- /**
37
- * Returns cache identifier for a user's settings.
38
- * Example: {
39
- * const api: BruceApi.Api = ...;
40
- * const key = GetCacheKey("abc", "def");
41
- * api.Cache.Remove(key);
42
- * }
43
- * @param userId
44
- * @param appId
45
- * @returns
46
- */
47
- function GetSettingsCacheKey(userId: string, appId: string): string;
48
12
  /**
49
13
  * Describes a user record.
50
14
  */
@@ -287,4 +251,40 @@ export declare namespace User {
287
251
  user: IUser;
288
252
  }>;
289
253
  }
254
+ /**
255
+ * Returns cache identifier for a user.
256
+ * Example: {
257
+ * const api: BruceApi.Api = ...;
258
+ * const key = GetCacheKey("abc", "def");
259
+ * api.Cache.Remove(key);
260
+ * }
261
+ * @param userId
262
+ * @param accountId
263
+ * @returns
264
+ */
265
+ function GetCacheKey(userId: string, accountId?: string): string;
266
+ /**
267
+ * Returns cache identifier for a user.
268
+ * Example: {
269
+ * const api: BruceApi.Api = ...;
270
+ * const key = GetCacheKey("abc", "def");
271
+ * api.Cache.Remove(key);
272
+ * }
273
+ * @param email
274
+ * @param accountId
275
+ * @returns
276
+ */
277
+ function GetEmailCacheKey(email: string, accountId?: string): string;
278
+ /**
279
+ * Returns cache identifier for a user's settings.
280
+ * Example: {
281
+ * const api: BruceApi.Api = ...;
282
+ * const key = GetCacheKey("abc", "def");
283
+ * api.Cache.Remove(key);
284
+ * }
285
+ * @param userId
286
+ * @param appId
287
+ * @returns
288
+ */
289
+ function GetSettingsCacheKey(userId: string, appId: string): string;
290
290
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-models",
3
- "version": "3.6.9",
3
+ "version": "3.7.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-models.umd.js",