bruce-models 3.7.0 → 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 (61) hide show
  1. package/dist/bruce-models.es5.js +442 -439
  2. package/dist/bruce-models.es5.js.map +1 -1
  3. package/dist/bruce-models.umd.js +396 -393
  4. package/dist/bruce-models.umd.js.map +1 -1
  5. package/dist/lib/bruce-models.js +1 -1
  6. package/dist/lib/entity/entity-comment.js +28 -28
  7. package/dist/lib/entity/entity-comment.js.map +1 -1
  8. package/dist/lib/entity/entity-coords.js +14 -14
  9. package/dist/lib/entity/entity-coords.js.map +1 -1
  10. package/dist/lib/entity/entity-link.js +28 -28
  11. package/dist/lib/entity/entity-link.js.map +1 -1
  12. package/dist/lib/entity/entity-lod-category.js +27 -27
  13. package/dist/lib/entity/entity-lod-category.js.map +1 -1
  14. package/dist/lib/entity/entity-lod.js +43 -43
  15. package/dist/lib/entity/entity-lod.js.map +1 -1
  16. package/dist/lib/entity/entity-relation-type.js +27 -27
  17. package/dist/lib/entity/entity-relation-type.js.map +1 -1
  18. package/dist/lib/entity/entity-relation.js +46 -46
  19. package/dist/lib/entity/entity-relation.js.map +1 -1
  20. package/dist/lib/entity/entity-source.js +15 -15
  21. package/dist/lib/entity/entity-source.js.map +1 -1
  22. package/dist/lib/entity/entity-tag.js +31 -31
  23. package/dist/lib/entity/entity-tag.js.map +1 -1
  24. package/dist/lib/entity/entity-type.js +27 -27
  25. package/dist/lib/entity/entity-type.js.map +1 -1
  26. package/dist/lib/entity/entity.js +32 -32
  27. package/dist/lib/entity/entity.js.map +1 -1
  28. package/dist/lib/plugin/plugin.js +4 -0
  29. package/dist/lib/plugin/plugin.js.map +1 -1
  30. package/dist/lib/program-key/program-key.js +27 -27
  31. package/dist/lib/program-key/program-key.js.map +1 -1
  32. package/dist/lib/project/menu-item.js.map +1 -1
  33. package/dist/lib/project/project-view-bookmark.js +29 -29
  34. package/dist/lib/project/project-view-bookmark.js.map +1 -1
  35. package/dist/lib/style/style.js +27 -27
  36. package/dist/lib/style/style.js.map +1 -1
  37. package/dist/lib/tileset/tileset.js +28 -28
  38. package/dist/lib/tileset/tileset.js.map +1 -1
  39. package/dist/lib/user/session.js +13 -13
  40. package/dist/lib/user/session.js.map +1 -1
  41. package/dist/lib/user/user.js +51 -51
  42. package/dist/lib/user/user.js.map +1 -1
  43. package/dist/types/bruce-models.d.ts +1 -1
  44. package/dist/types/entity/entity-comment.d.ts +22 -22
  45. package/dist/types/entity/entity-coords.d.ts +11 -11
  46. package/dist/types/entity/entity-link.d.ts +22 -22
  47. package/dist/types/entity/entity-lod-category.d.ts +21 -21
  48. package/dist/types/entity/entity-lod.d.ts +34 -34
  49. package/dist/types/entity/entity-relation-type.d.ts +21 -21
  50. package/dist/types/entity/entity-relation.d.ts +33 -33
  51. package/dist/types/entity/entity-source.d.ts +12 -12
  52. package/dist/types/entity/entity-tag.d.ts +22 -22
  53. package/dist/types/entity/entity-type.d.ts +21 -21
  54. package/dist/types/entity/entity.d.ts +27 -27
  55. package/dist/types/program-key/program-key.d.ts +21 -21
  56. package/dist/types/project/menu-item.d.ts +1 -0
  57. package/dist/types/project/project-view-bookmark.d.ts +23 -23
  58. package/dist/types/style/style.d.ts +21 -21
  59. package/dist/types/tileset/tileset.d.ts +22 -22
  60. package/dist/types/user/user.d.ts +36 -36
  61. package/package.json +1 -1
@@ -8,17 +8,6 @@ import { Entity } from "./entity";
8
8
  */
9
9
  export declare namespace EntityCoords {
10
10
  const UCS_ENTITY_TYPE_ID = "Bruce_UCS_Type";
11
- /**
12
- * Returns cache identifier for a UCS by entity id.
13
- * Example: {
14
- * const api: BruceApi.Api = ...;
15
- * const key = GetCacheKey("123");
16
- * api.Cache.Remove(key);
17
- * }
18
- * @param entityId
19
- * @returns
20
- */
21
- function GetCacheKey(entityId: string): string;
22
11
  /**
23
12
  * Describes a UCS record.
24
13
  */
@@ -116,4 +105,15 @@ export declare namespace EntityCoords {
116
105
  rootEntityId: string;
117
106
  req?: Api.IReqParams;
118
107
  }): Promise<void>;
108
+ /**
109
+ * Returns cache identifier for a UCS by entity id.
110
+ * Example: {
111
+ * const api: BruceApi.Api = ...;
112
+ * const key = GetCacheKey("123");
113
+ * api.Cache.Remove(key);
114
+ * }
115
+ * @param entityId
116
+ * @returns
117
+ */
118
+ function GetCacheKey(entityId: string): string;
119
119
  }
@@ -5,28 +5,6 @@ import { BruceApi } from "../api/bruce-api";
5
5
  * An entity link is an external URL linked to an entity record.
6
6
  */
7
7
  export declare namespace EntityLink {
8
- /**
9
- * Returns cache identifier for a link record.
10
- * Example: {
11
- * const api: BruceApi.Api = ...;
12
- * const key = GetCacheKey(1);
13
- * api.Cache.Remove(key);
14
- * }
15
- * @param id
16
- * @returns
17
- */
18
- function GetCacheKey(id: number): string;
19
- /**
20
- * Returns cache identifier for a list of links for an entity.
21
- * Example: {
22
- * const api: BruceApi.Api = ...;
23
- * const key = GetListCacheKey("abc");
24
- * api.Cache.Remove(key);
25
- * }
26
- * @param entityId
27
- * @returns
28
- */
29
- function GetListCacheKey(entityId: string): string;
30
8
  /**
31
9
  * Describes a link record.
32
10
  */
@@ -70,4 +48,26 @@ export declare namespace EntityLink {
70
48
  }): Promise<{
71
49
  links: ILink[];
72
50
  }>;
51
+ /**
52
+ * Returns cache identifier for a link record.
53
+ * Example: {
54
+ * const api: BruceApi.Api = ...;
55
+ * const key = GetCacheKey(1);
56
+ * api.Cache.Remove(key);
57
+ * }
58
+ * @param id
59
+ * @returns
60
+ */
61
+ function GetCacheKey(id: number): string;
62
+ /**
63
+ * Returns cache identifier for a list of links for an entity.
64
+ * Example: {
65
+ * const api: BruceApi.Api = ...;
66
+ * const key = GetListCacheKey("abc");
67
+ * api.Cache.Remove(key);
68
+ * }
69
+ * @param entityId
70
+ * @returns
71
+ */
72
+ function GetListCacheKey(entityId: string): string;
73
73
  }
@@ -6,27 +6,6 @@ import { BruceApi } from "../api/bruce-api";
6
6
  * This is typically used to group LODs by their extension.
7
7
  */
8
8
  export declare namespace EntityLodCategory {
9
- /**
10
- * Returns cache identifier for an entity lod category record.
11
- * Example: {
12
- * const api: BruceApi.Api = ...;
13
- * const key = GetCacheKey("abc");
14
- * api.Cache.Remove(key);
15
- * }
16
- * @param id
17
- * @returns
18
- */
19
- function GetCacheKey(id: string): string;
20
- /**
21
- * Returns cache identifier for a list of entity lod categories.
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
  * Describes an entity lod category record.
32
11
  */
@@ -79,4 +58,25 @@ export declare namespace EntityLodCategory {
79
58
  }): Promise<{
80
59
  category: ICategory;
81
60
  }>;
61
+ /**
62
+ * Returns cache identifier for an entity lod category record.
63
+ * Example: {
64
+ * const api: BruceApi.Api = ...;
65
+ * const key = GetCacheKey("abc");
66
+ * api.Cache.Remove(key);
67
+ * }
68
+ * @param id
69
+ * @returns
70
+ */
71
+ function GetCacheKey(id: string): string;
72
+ /**
73
+ * Returns cache identifier for a list of entity lod categories.
74
+ * Example: {
75
+ * const api: BruceApi.Api = ...;
76
+ * const key = GetListCacheKey();
77
+ * api.Cache.Remove(key);
78
+ * }
79
+ * @returns
80
+ */
81
+ function GetListCacheKey(): string;
82
82
  }
@@ -8,40 +8,6 @@ import { ClientFile } from "../client-file/client-file";
8
8
  * The most common kind is a GLB.
9
9
  */
10
10
  export declare namespace EntityLod {
11
- /**
12
- * Returns cache identifier for an entity lod record.
13
- * Example: {
14
- * const api: BruceApi.Api = ...;
15
- * const key = GetCacheKey("abc");
16
- * api.Cache.Remove(key);
17
- * }
18
- * @param url
19
- * @returns
20
- */
21
- function GetCacheKey(url: string): string;
22
- /**
23
- * Returns cache identifier for a list of entity lods.
24
- * Example: {
25
- * const api: BruceApi.Api = ...;
26
- * const key = GetListCacheKey("abc", "def");
27
- * api.Cache.Remove(key);
28
- * }
29
- * @param typeId
30
- * @param group
31
- * @returns
32
- */
33
- function GetTypeListKey(typeId: string, group: string): string;
34
- /**
35
- * Returns cache identifier for a list of entity lods.
36
- * Example: {
37
- * const api: BruceApi.Api = ...;
38
- * const key = GetListCacheKey("abc");
39
- * api.Cache.Remove(key);
40
- * }
41
- * @param entityId
42
- * @returns
43
- */
44
- function GetEntityListKey(entityId: string): string;
45
11
  /**
46
12
  * Describes an entity lod record.
47
13
  * This is a 2d/3d visualization of the entity record.
@@ -167,4 +133,38 @@ export declare namespace EntityLod {
167
133
  accountId: string;
168
134
  }
169
135
  }
136
+ /**
137
+ * Returns cache identifier for an entity lod record.
138
+ * Example: {
139
+ * const api: BruceApi.Api = ...;
140
+ * const key = GetCacheKey("abc");
141
+ * api.Cache.Remove(key);
142
+ * }
143
+ * @param url
144
+ * @returns
145
+ */
146
+ function GetCacheKey(url: string): string;
147
+ /**
148
+ * Returns cache identifier for a list of entity lods.
149
+ * Example: {
150
+ * const api: BruceApi.Api = ...;
151
+ * const key = GetListCacheKey("abc", "def");
152
+ * api.Cache.Remove(key);
153
+ * }
154
+ * @param typeId
155
+ * @param group
156
+ * @returns
157
+ */
158
+ function GetTypeListKey(typeId: string, group: string): string;
159
+ /**
160
+ * Returns cache identifier for a list of entity lods.
161
+ * Example: {
162
+ * const api: BruceApi.Api = ...;
163
+ * const key = GetListCacheKey("abc");
164
+ * api.Cache.Remove(key);
165
+ * }
166
+ * @param entityId
167
+ * @returns
168
+ */
169
+ function GetEntityListKey(entityId: string): string;
170
170
  }
@@ -5,27 +5,6 @@ import { BruceApi } from "../api/bruce-api";
5
5
  * A relationship type record describes the purpose of a relationship.
6
6
  */
7
7
  export declare namespace EntityRelationType {
8
- /**
9
- * Returns cache identifier for an entity relation type record.
10
- * Example: {
11
- * const api: BruceApi.Api = ...;
12
- * const key = GetCacheKey("abc");
13
- * api.Cache.Remove(key);
14
- * }
15
- * @param id
16
- * @returns
17
- */
18
- function GetCacheKey(id: string): string;
19
- /**
20
- * Returns cache identifier for a list of entity relation types.
21
- * Example: {
22
- * const api: BruceApi.Api = ...;
23
- * const key = GetListCacheKey();
24
- * api.Cache.Remove(key);
25
- * }
26
- * @returns
27
- */
28
- function GetListCacheKey(): string;
29
8
  /**
30
9
  * Describes an entity relation type record.
31
10
  */
@@ -82,4 +61,25 @@ export declare namespace EntityRelationType {
82
61
  }): Promise<{
83
62
  relationType: IType;
84
63
  }>;
64
+ /**
65
+ * Returns cache identifier for an entity relation type record.
66
+ * Example: {
67
+ * const api: BruceApi.Api = ...;
68
+ * const key = GetCacheKey("abc");
69
+ * api.Cache.Remove(key);
70
+ * }
71
+ * @param id
72
+ * @returns
73
+ */
74
+ function GetCacheKey(id: string): string;
75
+ /**
76
+ * Returns cache identifier for a list of entity relation types.
77
+ * Example: {
78
+ * const api: BruceApi.Api = ...;
79
+ * const key = GetListCacheKey();
80
+ * api.Cache.Remove(key);
81
+ * }
82
+ * @returns
83
+ */
84
+ function GetListCacheKey(): string;
85
85
  }
@@ -7,39 +7,6 @@ import { Entity } from "./entity";
7
7
  * The relationship can have a "data entity" linked to it as well for the relationship to store arbitrary data about itself.
8
8
  */
9
9
  export declare namespace EntityRelation {
10
- /**
11
- * Returns cache identifier for an entity relation record.
12
- * Example: {
13
- * const api: BruceApi.Api = ...;
14
- * const key = GetCacheKey("abc", "def", "ghi");
15
- * api.Cache.Remove(key);
16
- * }
17
- * @param id
18
- * @returns
19
- */
20
- function GetCacheKey(entityA: string, entityB: string, typeId: string): string;
21
- /**
22
- * Returns cache identifier for a list of entity relations.
23
- * Example: {
24
- * const api: BruceApi.Api = ...;
25
- * const key = GetCacheKey("abc");
26
- * api.Cache.Remove(key);
27
- * }
28
- * @param id
29
- * @returns
30
- */
31
- function GetEntityCacheKey(entityId: string): string;
32
- /**
33
- * Returns cache identifier for a list of entity relations.
34
- * Example: {
35
- * const api: BruceApi.Api = ...;
36
- * const key = GetCacheKey("abc", {...});
37
- * api.Cache.Remove(key);
38
- * }
39
- * @param id
40
- * @returns
41
- */
42
- function GetListCacheKey(entityId: string, params: IListParams): string;
43
10
  /**
44
11
  * Describes an entity relation record.
45
12
  */
@@ -112,4 +79,37 @@ export declare namespace EntityRelation {
112
79
  }): Promise<{
113
80
  relation: IRelation;
114
81
  }>;
82
+ /**
83
+ * Returns cache identifier for an entity relation record.
84
+ * Example: {
85
+ * const api: BruceApi.Api = ...;
86
+ * const key = GetCacheKey("abc", "def", "ghi");
87
+ * api.Cache.Remove(key);
88
+ * }
89
+ * @param id
90
+ * @returns
91
+ */
92
+ function GetCacheKey(entityA: string, entityB: string, typeId: string): string;
93
+ /**
94
+ * Returns cache identifier for a list of entity relations.
95
+ * Example: {
96
+ * const api: BruceApi.Api = ...;
97
+ * const key = GetCacheKey("abc");
98
+ * api.Cache.Remove(key);
99
+ * }
100
+ * @param id
101
+ * @returns
102
+ */
103
+ function GetEntityCacheKey(entityId: string): string;
104
+ /**
105
+ * Returns cache identifier for a list of entity relations.
106
+ * Example: {
107
+ * const api: BruceApi.Api = ...;
108
+ * const key = GetCacheKey("abc", {...});
109
+ * api.Cache.Remove(key);
110
+ * }
111
+ * @param id
112
+ * @returns
113
+ */
114
+ function GetListCacheKey(entityId: string, params: IListParams): string;
115
115
  }
@@ -7,18 +7,6 @@ import { IDictionary } from "../common/dictionary";
7
7
  * For example an OSM building id to a Nextspace entity id.
8
8
  */
9
9
  export declare namespace EntitySource {
10
- /**
11
- * Returns cache identifier for an entity source record.
12
- * Example: {
13
- * const api: BruceApi.Api = ...;
14
- * const key = GetCacheKey(1, "def");
15
- * api.Cache.Remove(key);
16
- * }
17
- * @param sourceId
18
- * @param sourceKey
19
- * @returns
20
- */
21
- function GetCacheKey(sourceId: number, sourceKey: string): string;
22
10
  /**
23
11
  * Describes an entity source record.
24
12
  */
@@ -77,4 +65,16 @@ export declare namespace EntitySource {
77
65
  }): Promise<{
78
66
  source: ISource;
79
67
  }>;
68
+ /**
69
+ * Returns cache identifier for an entity source record.
70
+ * Example: {
71
+ * const api: BruceApi.Api = ...;
72
+ * const key = GetCacheKey(1, "def");
73
+ * api.Cache.Remove(key);
74
+ * }
75
+ * @param sourceId
76
+ * @param sourceKey
77
+ * @returns
78
+ */
79
+ function GetCacheKey(sourceId: number, sourceKey: string): string;
80
80
  }
@@ -6,28 +6,6 @@ import { BruceApi } from "../api/bruce-api";
6
6
  * Entity tags can be used in filters, or to restrict entity access.
7
7
  */
8
8
  export declare namespace EntityTag {
9
- /**
10
- * Returns cache identifier for an entity tag record.
11
- * Example: {
12
- * const api: BruceApi.Api = ...;
13
- * const key = GetCacheKey(1);
14
- * api.Cache.Remove(key);
15
- * }
16
- * @param tagId
17
- * @returns
18
- */
19
- function GetCacheKey(tagId: number): string;
20
- /**
21
- * Returns cache identifier for a list of entity tags.
22
- * Example: {
23
- * const api: BruceApi.Api = ...;
24
- * const key = GetListCacheKey("abc");
25
- * api.Cache.Remove(key);
26
- * }
27
- * @param entityTypeId
28
- * @returns
29
- */
30
- function GetListCacheKey(entityTypeId?: string): string;
31
9
  /**
32
10
  * Describes an entity tag record.
33
11
  */
@@ -97,4 +75,26 @@ export declare namespace EntityTag {
97
75
  }): Promise<{
98
76
  tag: ITag;
99
77
  }>;
78
+ /**
79
+ * Returns cache identifier for an entity tag record.
80
+ * Example: {
81
+ * const api: BruceApi.Api = ...;
82
+ * const key = GetCacheKey(1);
83
+ * api.Cache.Remove(key);
84
+ * }
85
+ * @param tagId
86
+ * @returns
87
+ */
88
+ function GetCacheKey(tagId: number): string;
89
+ /**
90
+ * Returns cache identifier for a list of entity tags.
91
+ * Example: {
92
+ * const api: BruceApi.Api = ...;
93
+ * const key = GetListCacheKey("abc");
94
+ * api.Cache.Remove(key);
95
+ * }
96
+ * @param entityTypeId
97
+ * @returns
98
+ */
99
+ function GetListCacheKey(entityTypeId?: string): string;
100
100
  }
@@ -10,27 +10,6 @@ import { EntityTypeVisualSettings } from "./entity-type-visual-settings";
10
10
  * The schema is stencils onto entity data to filter out what we should display or search against.
11
11
  */
12
12
  export declare namespace EntityType {
13
- /**
14
- * Returns cache identifier for an entity type.
15
- * Example: {
16
- * const api: BruceApi.Api = ...;
17
- * const key = GetCacheKey("abc");
18
- * api.Cache.Remove(key);
19
- * }
20
- * @param typeId
21
- * @returns
22
- */
23
- function GetCacheKey(typeId: string): string;
24
- /**
25
- * Returns cache identifier for a list of entity types.
26
- * Example: {
27
- * const api: BruceApi.Api = ...;
28
- * const key = GetListCacheKey();
29
- * api.Cache.Remove(key);
30
- * }
31
- * @returns
32
- */
33
- function GetListCacheKey(): string;
34
13
  /**
35
14
  * Describes an entity type record.
36
15
  */
@@ -105,4 +84,25 @@ export declare namespace EntityType {
105
84
  }): Promise<{
106
85
  entityType: IType;
107
86
  }>;
87
+ /**
88
+ * Returns cache identifier for an entity type.
89
+ * Example: {
90
+ * const api: BruceApi.Api = ...;
91
+ * const key = GetCacheKey("abc");
92
+ * api.Cache.Remove(key);
93
+ * }
94
+ * @param typeId
95
+ * @returns
96
+ */
97
+ function GetCacheKey(typeId: string): string;
98
+ /**
99
+ * Returns cache identifier for a list of entity types.
100
+ * Example: {
101
+ * const api: BruceApi.Api = ...;
102
+ * const key = GetListCacheKey();
103
+ * api.Cache.Remove(key);
104
+ * }
105
+ * @returns
106
+ */
107
+ function GetListCacheKey(): string;
108
108
  }
@@ -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
  }