bruce-models 3.7.0 → 3.7.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.
- package/dist/bruce-models.es5.js +524 -494
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +474 -444
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account.js.map +1 -1
- package/dist/lib/api/bruce-api.js +81 -53
- package/dist/lib/api/bruce-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity-comment.js +28 -28
- package/dist/lib/entity/entity-comment.js.map +1 -1
- package/dist/lib/entity/entity-coords.js +14 -14
- package/dist/lib/entity/entity-coords.js.map +1 -1
- package/dist/lib/entity/entity-link.js +28 -28
- package/dist/lib/entity/entity-link.js.map +1 -1
- package/dist/lib/entity/entity-lod-category.js +27 -27
- package/dist/lib/entity/entity-lod-category.js.map +1 -1
- package/dist/lib/entity/entity-lod.js +43 -43
- package/dist/lib/entity/entity-lod.js.map +1 -1
- package/dist/lib/entity/entity-relation-type.js +27 -27
- package/dist/lib/entity/entity-relation-type.js.map +1 -1
- package/dist/lib/entity/entity-relation.js +46 -46
- package/dist/lib/entity/entity-relation.js.map +1 -1
- package/dist/lib/entity/entity-source.js +15 -15
- package/dist/lib/entity/entity-source.js.map +1 -1
- package/dist/lib/entity/entity-tag.js +31 -31
- package/dist/lib/entity/entity-tag.js.map +1 -1
- package/dist/lib/entity/entity-type.js +27 -27
- package/dist/lib/entity/entity-type.js.map +1 -1
- package/dist/lib/entity/entity.js +32 -32
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/lib/plugin/plugin.js +4 -0
- package/dist/lib/plugin/plugin.js.map +1 -1
- package/dist/lib/program-key/program-key.js +27 -27
- package/dist/lib/program-key/program-key.js.map +1 -1
- package/dist/lib/project/menu-item.js.map +1 -1
- package/dist/lib/project/project-view-bookmark.js +29 -29
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/dist/lib/style/style.js +27 -27
- package/dist/lib/style/style.js.map +1 -1
- package/dist/lib/tileset/tileset.js +28 -28
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/lib/user/session.js +13 -13
- package/dist/lib/user/session.js.map +1 -1
- package/dist/lib/user/user.js +51 -51
- package/dist/lib/user/user.js.map +1 -1
- package/dist/types/account/account.d.ts +8 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity-comment.d.ts +22 -22
- package/dist/types/entity/entity-coords.d.ts +11 -11
- package/dist/types/entity/entity-link.d.ts +22 -22
- package/dist/types/entity/entity-lod-category.d.ts +21 -21
- package/dist/types/entity/entity-lod.d.ts +34 -34
- package/dist/types/entity/entity-relation-type.d.ts +21 -21
- package/dist/types/entity/entity-relation.d.ts +33 -33
- package/dist/types/entity/entity-source.d.ts +12 -12
- package/dist/types/entity/entity-tag.d.ts +22 -22
- package/dist/types/entity/entity-type.d.ts +21 -21
- package/dist/types/entity/entity.d.ts +27 -27
- package/dist/types/program-key/program-key.d.ts +21 -21
- package/dist/types/project/menu-item.d.ts +1 -0
- package/dist/types/project/project-view-bookmark.d.ts +23 -23
- package/dist/types/style/style.d.ts +21 -21
- package/dist/types/tileset/tileset.d.ts +22 -22
- package/dist/types/user/user.d.ts +36 -36
- package/package.json +1 -1
|
@@ -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 {};
|
|
@@ -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
|
}
|