bruce-models 2.4.6 → 2.4.8
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 +963 -405
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +945 -388
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account-invite.js +17 -4
- package/dist/lib/account/account-invite.js.map +1 -1
- package/dist/lib/account/account.js +20 -4
- package/dist/lib/account/account.js.map +1 -1
- package/dist/lib/ann-document/ann-document.js +8 -1
- package/dist/lib/ann-document/ann-document.js.map +1 -1
- package/dist/lib/api/api-getters.js +19 -0
- package/dist/lib/api/api-getters.js.map +1 -1
- package/dist/lib/api/bruce-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -0
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/client-file/client-file.js +34 -6
- package/dist/lib/client-file/client-file.js.map +1 -1
- package/dist/lib/custom-form/custom-form.js +17 -4
- package/dist/lib/custom-form/custom-form.js.map +1 -1
- package/dist/lib/data-lab/data-lab.js +4 -0
- package/dist/lib/data-lab/data-lab.js.map +1 -1
- package/dist/lib/entity/entity-attachment-type.js +13 -3
- package/dist/lib/entity/entity-attachment-type.js.map +1 -1
- package/dist/lib/entity/entity-attachment.js +21 -5
- package/dist/lib/entity/entity-attachment.js.map +1 -1
- package/dist/lib/entity/entity-comment.js +13 -3
- package/dist/lib/entity/entity-comment.js.map +1 -1
- package/dist/lib/entity/entity-coords.js +21 -5
- package/dist/lib/entity/entity-coords.js.map +1 -1
- package/dist/lib/entity/entity-link.js +13 -3
- package/dist/lib/entity/entity-link.js.map +1 -1
- package/dist/lib/entity/entity-lod-category.js +17 -4
- package/dist/lib/entity/entity-lod-category.js.map +1 -1
- package/dist/lib/entity/entity-lod.js +26 -4
- package/dist/lib/entity/entity-lod.js.map +1 -1
- package/dist/lib/entity/entity-relation-type.js +17 -4
- package/dist/lib/entity/entity-relation-type.js.map +1 -1
- package/dist/lib/entity/entity-relation.js +20 -4
- package/dist/lib/entity/entity-relation.js.map +1 -1
- package/dist/lib/entity/entity-source.js +19 -6
- package/dist/lib/entity/entity-source.js.map +1 -1
- package/dist/lib/entity/entity-tag.js +21 -5
- package/dist/lib/entity/entity-tag.js.map +1 -1
- package/dist/lib/entity/entity-type.js +16 -3
- package/dist/lib/entity/entity-type.js.map +1 -1
- package/dist/lib/entity/entity.js +25 -6
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/lib/environment.js +55 -0
- package/dist/lib/environment.js.map +1 -0
- package/dist/lib/import/import-cad.js +9 -2
- package/dist/lib/import/import-cad.js.map +1 -1
- package/dist/lib/import/import-csv.js +5 -1
- package/dist/lib/import/import-csv.js.map +1 -1
- package/dist/lib/import/import-json.js +5 -1
- package/dist/lib/import/import-json.js.map +1 -1
- package/dist/lib/import/import-kml.js +5 -1
- package/dist/lib/import/import-kml.js.map +1 -1
- package/dist/lib/import/imported-file.js +12 -2
- package/dist/lib/import/imported-file.js.map +1 -1
- package/dist/lib/internal/uploader.js +5 -1
- package/dist/lib/internal/uploader.js.map +1 -1
- package/dist/lib/plugin/plugin.js +12 -2
- package/dist/lib/plugin/plugin.js.map +1 -1
- package/dist/lib/program-key/program-key.js +17 -4
- package/dist/lib/program-key/program-key.js.map +1 -1
- package/dist/lib/project/project-view-bookmark.js +21 -5
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/dist/lib/project/project-view-legacy-tile.js +9 -2
- package/dist/lib/project/project-view-legacy-tile.js.map +1 -1
- package/dist/lib/project/project-view.js +16 -3
- package/dist/lib/project/project-view.js.map +1 -1
- package/dist/lib/server/hosting-location.js +22 -5
- package/dist/lib/server/hosting-location.js.map +1 -1
- package/dist/lib/server/pending-action.js +12 -2
- package/dist/lib/server/pending-action.js.map +1 -1
- package/dist/lib/server/task.js +9 -2
- package/dist/lib/server/task.js.map +1 -1
- package/dist/lib/style/style.js +17 -4
- package/dist/lib/style/style.js.map +1 -1
- package/dist/lib/tileset/tileset.js +61 -10
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/lib/user/session.js +13 -3
- package/dist/lib/user/session.js.map +1 -1
- package/dist/lib/user/user-group.js +25 -6
- package/dist/lib/user/user-group.js.map +1 -1
- package/dist/lib/user/user.js +58 -12
- package/dist/lib/user/user.js.map +1 -1
- package/dist/types/account/account-invite.d.ts +5 -4
- package/dist/types/account/account.d.ts +5 -5
- package/dist/types/ann-document/ann-document.d.ts +3 -3
- package/dist/types/api/api-getters.d.ts +1 -0
- package/dist/types/bruce-models.d.ts +1 -0
- package/dist/types/client-file/client-file.d.ts +10 -10
- package/dist/types/custom-form/custom-form.d.ts +4 -4
- package/dist/types/data-lab/data-lab.d.ts +1 -1
- package/dist/types/entity/entity-attachment-type.d.ts +3 -3
- package/dist/types/entity/entity-attachment.d.ts +6 -6
- package/dist/types/entity/entity-comment.d.ts +5 -4
- package/dist/types/entity/entity-coords.d.ts +5 -5
- package/dist/types/entity/entity-link.d.ts +4 -4
- package/dist/types/entity/entity-lod-category.d.ts +4 -4
- package/dist/types/entity/entity-lod.d.ts +7 -7
- package/dist/types/entity/entity-relation-type.d.ts +4 -4
- package/dist/types/entity/entity-relation.d.ts +5 -5
- package/dist/types/entity/entity-source.d.ts +6 -5
- package/dist/types/entity/entity-tag.d.ts +5 -5
- package/dist/types/entity/entity-type.d.ts +4 -4
- package/dist/types/entity/entity.d.ts +6 -6
- package/dist/types/environment.d.ts +16 -0
- package/dist/types/import/import-cad.d.ts +2 -2
- package/dist/types/import/import-csv.d.ts +1 -1
- package/dist/types/import/import-json.d.ts +1 -1
- package/dist/types/import/import-kml.d.ts +1 -1
- package/dist/types/import/imported-file.d.ts +3 -3
- package/dist/types/internal/uploader.d.ts +1 -1
- package/dist/types/plugin/plugin.d.ts +3 -3
- package/dist/types/program-key/program-key.d.ts +4 -4
- package/dist/types/project/project-view-bookmark.d.ts +7 -6
- package/dist/types/project/project-view-legacy-tile.d.ts +2 -2
- package/dist/types/project/project-view.d.ts +4 -4
- package/dist/types/server/hosting-location.d.ts +5 -5
- package/dist/types/server/pending-action.d.ts +5 -4
- package/dist/types/server/task.d.ts +4 -3
- package/dist/types/style/style.d.ts +6 -5
- package/dist/types/tileset/tileset.d.ts +18 -17
- package/dist/types/user/session.d.ts +4 -3
- package/dist/types/user/user-group.d.ts +10 -7
- package/dist/types/user/user.d.ts +16 -15
- package/package.json +1 -1
|
@@ -9,25 +9,25 @@ export declare namespace EntityLodCategory {
|
|
|
9
9
|
Name: string;
|
|
10
10
|
}
|
|
11
11
|
function GetList(params: {
|
|
12
|
-
api
|
|
12
|
+
api?: BruceApi.Api;
|
|
13
13
|
req?: Api.IReqParams;
|
|
14
14
|
}): Promise<{
|
|
15
15
|
categories: ICategory[];
|
|
16
16
|
}>;
|
|
17
17
|
function Get(params: {
|
|
18
|
-
api
|
|
18
|
+
api?: BruceApi.Api;
|
|
19
19
|
categoryId: string;
|
|
20
20
|
req?: Api.IReqParams;
|
|
21
21
|
}): Promise<{
|
|
22
22
|
category: ICategory;
|
|
23
23
|
}>;
|
|
24
24
|
function Delete(params: {
|
|
25
|
-
api
|
|
25
|
+
api?: BruceApi.Api;
|
|
26
26
|
categoryId: string;
|
|
27
27
|
req?: Api.IReqParams;
|
|
28
28
|
}): Promise<void>;
|
|
29
29
|
function Update(params: {
|
|
30
|
-
api
|
|
30
|
+
api?: BruceApi.Api;
|
|
31
31
|
category: ICategory;
|
|
32
32
|
req?: Api.IReqParams;
|
|
33
33
|
}): Promise<{
|
|
@@ -25,7 +25,7 @@ export declare namespace EntityLod {
|
|
|
25
25
|
Level: number;
|
|
26
26
|
}
|
|
27
27
|
function GetUrl(params: {
|
|
28
|
-
api
|
|
28
|
+
api?: BruceApi.Api;
|
|
29
29
|
entityId: string;
|
|
30
30
|
categoryId: string;
|
|
31
31
|
level: number;
|
|
@@ -34,21 +34,21 @@ export declare namespace EntityLod {
|
|
|
34
34
|
url: string;
|
|
35
35
|
};
|
|
36
36
|
function GetUrlFileId(params: {
|
|
37
|
-
api
|
|
37
|
+
api?: BruceApi.Api;
|
|
38
38
|
url: string;
|
|
39
39
|
req?: Api.IReqParams;
|
|
40
40
|
}): Promise<{
|
|
41
41
|
clientFileId: string;
|
|
42
42
|
}>;
|
|
43
43
|
function GetLods(params: {
|
|
44
|
-
api
|
|
44
|
+
api?: BruceApi.Api;
|
|
45
45
|
filter: Filter.IListParams;
|
|
46
46
|
req?: Api.IReqParams;
|
|
47
47
|
}): Promise<{
|
|
48
48
|
lods: Filter.IListResItem[];
|
|
49
49
|
}>;
|
|
50
50
|
function GetEntityLods(params: {
|
|
51
|
-
api
|
|
51
|
+
api?: BruceApi.Api;
|
|
52
52
|
entityId: string;
|
|
53
53
|
req?: Api.IReqParams;
|
|
54
54
|
}): Promise<{
|
|
@@ -59,7 +59,7 @@ export declare namespace EntityLod {
|
|
|
59
59
|
* @param params
|
|
60
60
|
*/
|
|
61
61
|
function GetTypeLods(params: {
|
|
62
|
-
api
|
|
62
|
+
api?: BruceApi.Api;
|
|
63
63
|
entityTypeId: string;
|
|
64
64
|
group?: string;
|
|
65
65
|
req?: Api.IReqParams;
|
|
@@ -67,12 +67,12 @@ export declare namespace EntityLod {
|
|
|
67
67
|
lods: ILod[];
|
|
68
68
|
}>;
|
|
69
69
|
function Update(params: {
|
|
70
|
-
api
|
|
70
|
+
api?: BruceApi.Api;
|
|
71
71
|
entityId: string;
|
|
72
72
|
req?: Api.IReqParams;
|
|
73
73
|
} & IEntityLodUpdate): Promise<void>;
|
|
74
74
|
function Delete(params: {
|
|
75
|
-
api
|
|
75
|
+
api?: BruceApi.Api;
|
|
76
76
|
entityId: string;
|
|
77
77
|
lodCategoryId: string;
|
|
78
78
|
level: number;
|
|
@@ -17,25 +17,25 @@ export declare namespace EntityRelationType {
|
|
|
17
17
|
"Relation.EntityType.ID"?: string;
|
|
18
18
|
}
|
|
19
19
|
function Get(params: {
|
|
20
|
-
api
|
|
20
|
+
api?: BruceApi.Api;
|
|
21
21
|
relationTypeId: string;
|
|
22
22
|
req?: Api.IReqParams;
|
|
23
23
|
}): Promise<{
|
|
24
24
|
relationType: IType;
|
|
25
25
|
}>;
|
|
26
26
|
function Delete(params: {
|
|
27
|
-
api
|
|
27
|
+
api?: BruceApi.Api;
|
|
28
28
|
relationTypeId: string;
|
|
29
29
|
req?: Api.IReqParams;
|
|
30
30
|
}): Promise<void>;
|
|
31
31
|
function GetList(params: {
|
|
32
|
-
api
|
|
32
|
+
api?: BruceApi.Api;
|
|
33
33
|
req?: Api.IReqParams;
|
|
34
34
|
}): Promise<{
|
|
35
35
|
relationTypes: IType[];
|
|
36
36
|
}>;
|
|
37
37
|
function Update(params: {
|
|
38
|
-
api
|
|
38
|
+
api?: BruceApi.Api;
|
|
39
39
|
relationType: IType;
|
|
40
40
|
req?: Api.IReqParams;
|
|
41
41
|
}): Promise<{
|
|
@@ -25,24 +25,24 @@ export declare namespace EntityRelation {
|
|
|
25
25
|
loadEntityData?: boolean;
|
|
26
26
|
}
|
|
27
27
|
function Create(params: {
|
|
28
|
-
api
|
|
28
|
+
api?: BruceApi.Api;
|
|
29
29
|
relation: IRelation;
|
|
30
30
|
req?: Api.IReqParams;
|
|
31
31
|
}): Promise<void>;
|
|
32
32
|
function Delete(params: {
|
|
33
|
-
api
|
|
33
|
+
api?: BruceApi.Api;
|
|
34
34
|
principalEntityId: string;
|
|
35
35
|
relatedEntityId: string;
|
|
36
36
|
relationTypeId: string;
|
|
37
37
|
req?: Api.IReqParams;
|
|
38
38
|
}): Promise<void>;
|
|
39
39
|
function Update(params: {
|
|
40
|
-
api
|
|
40
|
+
api?: BruceApi.Api;
|
|
41
41
|
relation: IRelation;
|
|
42
42
|
req?: Api.IReqParams;
|
|
43
43
|
}): Promise<void>;
|
|
44
44
|
function GetList(params: {
|
|
45
|
-
api
|
|
45
|
+
api?: BruceApi.Api;
|
|
46
46
|
entityId: string;
|
|
47
47
|
filter: IListParams;
|
|
48
48
|
req?: Api.IReqParams;
|
|
@@ -50,7 +50,7 @@ export declare namespace EntityRelation {
|
|
|
50
50
|
relations: IRelation[];
|
|
51
51
|
}>;
|
|
52
52
|
function GetByDataEntityId(params: {
|
|
53
|
-
api
|
|
53
|
+
api?: BruceApi.Api;
|
|
54
54
|
entityId: string;
|
|
55
55
|
req?: Api.IReqParams;
|
|
56
56
|
}): Promise<{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Api } from "../api/api";
|
|
2
|
-
import { BruceApi
|
|
2
|
+
import { BruceApi } from "../api/bruce-api";
|
|
3
|
+
import { IDictionary } from "../common/dictionary";
|
|
3
4
|
/**
|
|
4
5
|
* Describes the "Entity Source" concept within Bruce.
|
|
5
6
|
* An entity source is a record which links an arbitrary source id to a Bruce entity id.
|
|
@@ -13,7 +14,7 @@ export declare namespace EntitySource {
|
|
|
13
14
|
"SourceRecord.Key": string;
|
|
14
15
|
}
|
|
15
16
|
function Get(params: {
|
|
16
|
-
api
|
|
17
|
+
api?: BruceApi.Api;
|
|
17
18
|
sourceId: number;
|
|
18
19
|
sourceKey: string;
|
|
19
20
|
req?: Api.IReqParams;
|
|
@@ -21,7 +22,7 @@ export declare namespace EntitySource {
|
|
|
21
22
|
source: ISource;
|
|
22
23
|
}>;
|
|
23
24
|
function GetListByKeys(params: {
|
|
24
|
-
api
|
|
25
|
+
api?: BruceApi.Api;
|
|
25
26
|
sourceId: number;
|
|
26
27
|
sourceKeys: string[];
|
|
27
28
|
req?: Api.IReqParams;
|
|
@@ -29,7 +30,7 @@ export declare namespace EntitySource {
|
|
|
29
30
|
sources: ISource[];
|
|
30
31
|
}>;
|
|
31
32
|
function GetEntityIdsBySourceKeys(params: {
|
|
32
|
-
api
|
|
33
|
+
api?: BruceApi.Api;
|
|
33
34
|
sourceId: number;
|
|
34
35
|
sourceKeys: string[];
|
|
35
36
|
req?: Api.IReqParams;
|
|
@@ -37,7 +38,7 @@ export declare namespace EntitySource {
|
|
|
37
38
|
idMapping: IDictionary<string>;
|
|
38
39
|
}>;
|
|
39
40
|
function CreateLink(params: {
|
|
40
|
-
api
|
|
41
|
+
api?: BruceApi.Api;
|
|
41
42
|
source: ISource;
|
|
42
43
|
}): Promise<{
|
|
43
44
|
source: ISource;
|
|
@@ -18,33 +18,33 @@ export declare namespace EntityTag {
|
|
|
18
18
|
"Parent.Layer.ID"?: number;
|
|
19
19
|
}
|
|
20
20
|
function Get(params: {
|
|
21
|
-
api
|
|
21
|
+
api?: BruceApi.Api;
|
|
22
22
|
tagId: number;
|
|
23
23
|
req?: Api.IReqParams;
|
|
24
24
|
}): Promise<{
|
|
25
25
|
tag: ITag;
|
|
26
26
|
}>;
|
|
27
27
|
function GetListByIds(params: {
|
|
28
|
-
api
|
|
28
|
+
api?: BruceApi.Api;
|
|
29
29
|
tagIds: number[];
|
|
30
30
|
req?: Api.IReqParams;
|
|
31
31
|
}): Promise<{
|
|
32
32
|
tags: ITag[];
|
|
33
33
|
}>;
|
|
34
34
|
function GetList(params: {
|
|
35
|
-
api
|
|
35
|
+
api?: BruceApi.Api;
|
|
36
36
|
entityTypeId?: string;
|
|
37
37
|
req?: Api.IReqParams;
|
|
38
38
|
}): Promise<{
|
|
39
39
|
tags: ITag[];
|
|
40
40
|
}>;
|
|
41
41
|
function Delete(params: {
|
|
42
|
-
api
|
|
42
|
+
api?: BruceApi.Api;
|
|
43
43
|
tagId: number;
|
|
44
44
|
req?: Api.IReqParams;
|
|
45
45
|
}): Promise<void>;
|
|
46
46
|
function Update(params: {
|
|
47
|
-
api
|
|
47
|
+
api?: BruceApi.Api;
|
|
48
48
|
tag: ITag;
|
|
49
49
|
req?: Api.IReqParams;
|
|
50
50
|
}): Promise<{
|
|
@@ -37,25 +37,25 @@ export declare namespace EntityType {
|
|
|
37
37
|
VisualSettings?: EntityTypeVisualSettings.ISettings;
|
|
38
38
|
}
|
|
39
39
|
function Get(params: {
|
|
40
|
-
api
|
|
40
|
+
api?: BruceApi.Api;
|
|
41
41
|
entityTypeId: string;
|
|
42
42
|
req?: Api.IReqParams;
|
|
43
43
|
}): Promise<{
|
|
44
44
|
entityType: IEntityType;
|
|
45
45
|
}>;
|
|
46
46
|
function Delete(params: {
|
|
47
|
-
api
|
|
47
|
+
api?: BruceApi.Api;
|
|
48
48
|
entityTypeId: string;
|
|
49
49
|
req?: Api.IReqParams;
|
|
50
50
|
}): Promise<void>;
|
|
51
51
|
function GetList(params: {
|
|
52
|
-
api
|
|
52
|
+
api?: BruceApi.Api;
|
|
53
53
|
req?: Api.IReqParams;
|
|
54
54
|
}): Promise<{
|
|
55
55
|
entityTypes: IEntityType[];
|
|
56
56
|
}>;
|
|
57
57
|
function Update(params: {
|
|
58
|
-
api
|
|
58
|
+
api?: BruceApi.Api;
|
|
59
59
|
entityType: IEntityType;
|
|
60
60
|
req?: Api.IReqParams;
|
|
61
61
|
}): Promise<{
|
|
@@ -32,7 +32,7 @@ export declare namespace Entity {
|
|
|
32
32
|
worldPosition?: number[][];
|
|
33
33
|
}
|
|
34
34
|
function Get(params: {
|
|
35
|
-
api
|
|
35
|
+
api?: BruceApi.Api;
|
|
36
36
|
entityId: string;
|
|
37
37
|
entityTypeId?: string;
|
|
38
38
|
expandLocation?: boolean;
|
|
@@ -41,24 +41,24 @@ export declare namespace Entity {
|
|
|
41
41
|
entity: IEntity;
|
|
42
42
|
}>;
|
|
43
43
|
function GetListByIds(params: {
|
|
44
|
-
api
|
|
44
|
+
api?: BruceApi.Api;
|
|
45
45
|
entityIds: string[];
|
|
46
46
|
req?: Api.IReqParams;
|
|
47
47
|
}): Promise<{
|
|
48
48
|
entities: IEntity[];
|
|
49
49
|
}>;
|
|
50
50
|
function Delete(params: {
|
|
51
|
-
api
|
|
51
|
+
api?: BruceApi.Api;
|
|
52
52
|
entityId: string;
|
|
53
53
|
req?: Api.IReqParams;
|
|
54
54
|
}): Promise<void>;
|
|
55
55
|
function DeleteList(params: {
|
|
56
|
-
api
|
|
56
|
+
api?: BruceApi.Api;
|
|
57
57
|
entityIds: string[];
|
|
58
58
|
req?: Api.IReqParams;
|
|
59
59
|
}): Promise<void>;
|
|
60
60
|
function Update(params: {
|
|
61
|
-
api
|
|
61
|
+
api?: BruceApi.Api;
|
|
62
62
|
entity: IEntity;
|
|
63
63
|
override: boolean;
|
|
64
64
|
req?: Api.IReqParams;
|
|
@@ -106,7 +106,7 @@ export declare namespace Entity {
|
|
|
106
106
|
entityTypeConditions?: IDictionary<any>;
|
|
107
107
|
}
|
|
108
108
|
function GetList(params: {
|
|
109
|
-
api
|
|
109
|
+
api?: BruceApi.Api;
|
|
110
110
|
filter: IFilter;
|
|
111
111
|
viaCdn?: boolean;
|
|
112
112
|
viaCdnCacheToken?: number | string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Api as A } from "./api/api";
|
|
2
|
+
import { ApiGetters } from "./api/api-getters";
|
|
3
|
+
interface IParams {
|
|
4
|
+
isSelfManaged?: boolean;
|
|
5
|
+
accountId?: string;
|
|
6
|
+
env?: A.EEnv;
|
|
7
|
+
sessionId?: string;
|
|
8
|
+
apiGetters?: ApiGetters;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace ENVIRONMENT {
|
|
11
|
+
let IS_SELF_MANAGED: boolean;
|
|
12
|
+
let PARAMS: IParams;
|
|
13
|
+
function Api(): ApiGetters;
|
|
14
|
+
function Reset(params?: IParams): void;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -31,12 +31,12 @@ export declare namespace ImportCad {
|
|
|
31
31
|
PendingActionID: number;
|
|
32
32
|
}
|
|
33
33
|
function Analyze(params: {
|
|
34
|
-
api
|
|
34
|
+
api?: BruceApi.Api;
|
|
35
35
|
fileAnalyze: IAnalyzeParams;
|
|
36
36
|
req?: Api.IReqParams;
|
|
37
37
|
}): Promise<IAnalyzeRes>;
|
|
38
38
|
function ImportEntities(params: {
|
|
39
|
-
api
|
|
39
|
+
api?: BruceApi.Api;
|
|
40
40
|
fileImport: IImportParams;
|
|
41
41
|
req?: Api.IReqParams;
|
|
42
42
|
}): Promise<IImportRes>;
|
|
@@ -23,7 +23,7 @@ export declare namespace ImportedFile {
|
|
|
23
23
|
All = "All"
|
|
24
24
|
}
|
|
25
25
|
function GetList(params: {
|
|
26
|
-
api
|
|
26
|
+
api?: BruceApi.Api;
|
|
27
27
|
fileType?: EFileType;
|
|
28
28
|
pageIndex?: number;
|
|
29
29
|
req?: Api.IReqParams;
|
|
@@ -31,14 +31,14 @@ export declare namespace ImportedFile {
|
|
|
31
31
|
importedFiles: IFile[];
|
|
32
32
|
}>;
|
|
33
33
|
function GetListByRootId(params: {
|
|
34
|
-
api
|
|
34
|
+
api?: BruceApi.Api;
|
|
35
35
|
rootId: string;
|
|
36
36
|
req?: Api.IReqParams;
|
|
37
37
|
}): Promise<{
|
|
38
38
|
importedFiles: IFile[];
|
|
39
39
|
}>;
|
|
40
40
|
function Get(params: {
|
|
41
|
-
api
|
|
41
|
+
api?: BruceApi.Api;
|
|
42
42
|
importedFileId: number;
|
|
43
43
|
req?: Api.IReqParams;
|
|
44
44
|
}): Promise<{
|
|
@@ -16,20 +16,20 @@ export declare namespace Plugin {
|
|
|
16
16
|
"Created.Date": UTC.IUTC;
|
|
17
17
|
}
|
|
18
18
|
function Get(params: {
|
|
19
|
-
api
|
|
19
|
+
api?: BruceApi.Api;
|
|
20
20
|
pluginId: string;
|
|
21
21
|
req?: Api.IReqParams;
|
|
22
22
|
}): Promise<{
|
|
23
23
|
plugin: IPlugin;
|
|
24
24
|
}>;
|
|
25
25
|
function GetList(params: {
|
|
26
|
-
api
|
|
26
|
+
api?: BruceApi.Api;
|
|
27
27
|
req?: Api.IReqParams;
|
|
28
28
|
}): Promise<{
|
|
29
29
|
plugins: IPlugin[];
|
|
30
30
|
}>;
|
|
31
31
|
function GetLoadUrl(params: {
|
|
32
|
-
api
|
|
32
|
+
api?: BruceApi.Api;
|
|
33
33
|
pluginId: string;
|
|
34
34
|
cacheKey?: number | string;
|
|
35
35
|
req?: Api.IReqParams;
|
|
@@ -20,25 +20,25 @@ export declare namespace ProgramKey {
|
|
|
20
20
|
IsAccessRestricted?: boolean;
|
|
21
21
|
}
|
|
22
22
|
function Get(params: {
|
|
23
|
-
api
|
|
23
|
+
api?: BruceApi.Api;
|
|
24
24
|
programId: Id;
|
|
25
25
|
req?: Api.IReqParams;
|
|
26
26
|
}): Promise<{
|
|
27
27
|
programKey: IKey;
|
|
28
28
|
}>;
|
|
29
29
|
function GetList(params: {
|
|
30
|
-
api
|
|
30
|
+
api?: BruceApi.Api;
|
|
31
31
|
req?: Api.IReqParams;
|
|
32
32
|
}): Promise<{
|
|
33
33
|
programKeys: IKey[];
|
|
34
34
|
}>;
|
|
35
35
|
function Delete(params: {
|
|
36
|
-
api
|
|
36
|
+
api?: BruceApi.Api;
|
|
37
37
|
programId: Id;
|
|
38
38
|
req?: Api.IReqParams;
|
|
39
39
|
}): Promise<void>;
|
|
40
40
|
function Update(params: {
|
|
41
|
-
api
|
|
41
|
+
api?: BruceApi.Api;
|
|
42
42
|
programKey: IKey;
|
|
43
43
|
req?: Api.IReqParams;
|
|
44
44
|
}): Promise<{
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Api } from "../api/api";
|
|
2
2
|
import { BruceApi } from "../api/bruce-api";
|
|
3
|
-
import { IDictionary, MenuItem } from "../bruce-models";
|
|
4
3
|
import { Camera } from "../common/camera";
|
|
4
|
+
import { IDictionary } from "../common/dictionary";
|
|
5
5
|
import { UTC } from "../common/utc";
|
|
6
6
|
import { Markup } from "../markup/markup";
|
|
7
|
+
import { MenuItem } from "./menu-item";
|
|
7
8
|
import { ProjectViewTile } from "./project-view-tile";
|
|
8
9
|
/**
|
|
9
10
|
* Describe the "Project View Bookmark" concept within Bruce.
|
|
@@ -145,7 +146,7 @@ export declare namespace ProjectViewBookmark {
|
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
function Get(params: {
|
|
148
|
-
api
|
|
149
|
+
api?: BruceApi.Api;
|
|
149
150
|
viewId: string;
|
|
150
151
|
bookmarkId: string;
|
|
151
152
|
req?: Api.IReqParams;
|
|
@@ -153,20 +154,20 @@ export declare namespace ProjectViewBookmark {
|
|
|
153
154
|
bookmark: Bookmark;
|
|
154
155
|
}>;
|
|
155
156
|
function Delete(params: {
|
|
156
|
-
api
|
|
157
|
+
api?: BruceApi.Api;
|
|
157
158
|
viewId: string;
|
|
158
159
|
bookmarkId: string;
|
|
159
160
|
req?: Api.IReqParams;
|
|
160
161
|
}): Promise<void>;
|
|
161
162
|
function GetList(params: {
|
|
162
|
-
api
|
|
163
|
+
api?: BruceApi.Api;
|
|
163
164
|
viewId: string;
|
|
164
165
|
req?: Api.IReqParams;
|
|
165
166
|
}): Promise<{
|
|
166
167
|
bookmarks: Bookmark[];
|
|
167
168
|
}>;
|
|
168
169
|
function Update(params: {
|
|
169
|
-
api
|
|
170
|
+
api?: BruceApi.Api;
|
|
170
171
|
viewId: string;
|
|
171
172
|
bookmark: Bookmark;
|
|
172
173
|
req?: Api.IReqParams;
|
|
@@ -174,7 +175,7 @@ export declare namespace ProjectViewBookmark {
|
|
|
174
175
|
bookmark: Bookmark;
|
|
175
176
|
}>;
|
|
176
177
|
function SetOrder(params: {
|
|
177
|
-
api
|
|
178
|
+
api?: BruceApi.Api;
|
|
178
179
|
viewId: string;
|
|
179
180
|
bookmarkIds: string[];
|
|
180
181
|
req?: Api.IReqParams;
|
|
@@ -30,7 +30,7 @@ export declare namespace ProjectViewLegacyTile {
|
|
|
30
30
|
RequestVertexNormals?: boolean;
|
|
31
31
|
}
|
|
32
32
|
function MergeMapTemplateData(params: {
|
|
33
|
-
getter
|
|
33
|
+
getter?: BruceApi.IGetter;
|
|
34
34
|
sources: IMapSource[];
|
|
35
35
|
addIfMissing: boolean;
|
|
36
36
|
req?: Api.IReqParams;
|
|
@@ -38,7 +38,7 @@ export declare namespace ProjectViewLegacyTile {
|
|
|
38
38
|
sources: IMapSource[];
|
|
39
39
|
}>;
|
|
40
40
|
function MergeTerrainTemplateData(params: {
|
|
41
|
-
getter
|
|
41
|
+
getter?: BruceApi.IGetter;
|
|
42
42
|
sources: ITerrainSource[];
|
|
43
43
|
addIfMissing: boolean;
|
|
44
44
|
req?: Api.IReqParams;
|
|
@@ -113,25 +113,25 @@ export declare namespace ProjectView {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
function Get(params: {
|
|
116
|
-
api
|
|
116
|
+
api?: BruceApi.Api;
|
|
117
117
|
viewId: string;
|
|
118
118
|
req?: Api.IReqParams;
|
|
119
119
|
}): Promise<{
|
|
120
120
|
view: View;
|
|
121
121
|
}>;
|
|
122
122
|
function GetList(params: {
|
|
123
|
-
api
|
|
123
|
+
api?: BruceApi.Api;
|
|
124
124
|
req?: Api.IReqParams;
|
|
125
125
|
}): Promise<{
|
|
126
126
|
views: View[];
|
|
127
127
|
}>;
|
|
128
128
|
function Delete(params: {
|
|
129
|
-
api
|
|
129
|
+
api?: BruceApi.Api;
|
|
130
130
|
viewId: string;
|
|
131
131
|
req?: Api.IReqParams;
|
|
132
132
|
}): Promise<void>;
|
|
133
133
|
function Update(params: {
|
|
134
|
-
api
|
|
134
|
+
api?: BruceApi.Api;
|
|
135
135
|
view: View;
|
|
136
136
|
req?: Api.IReqParams;
|
|
137
137
|
}): Promise<{
|
|
@@ -26,21 +26,21 @@ export declare namespace HostingLocation {
|
|
|
26
26
|
* @returns
|
|
27
27
|
*/
|
|
28
28
|
function GetList(params: {
|
|
29
|
-
api
|
|
29
|
+
api?: GuardianApi.Api;
|
|
30
30
|
req?: Api.IReqParams;
|
|
31
31
|
}): Promise<{
|
|
32
32
|
locations: ILocation[];
|
|
33
33
|
}>;
|
|
34
34
|
function GetById(params: {
|
|
35
35
|
id: number;
|
|
36
|
-
api
|
|
36
|
+
api?: GuardianApi.Api;
|
|
37
37
|
req?: Api.IReqParams;
|
|
38
38
|
}): Promise<{
|
|
39
39
|
location: ILocation;
|
|
40
40
|
}>;
|
|
41
41
|
function GetByKey(params: {
|
|
42
42
|
key: string;
|
|
43
|
-
api
|
|
43
|
+
api?: GuardianApi.Api;
|
|
44
44
|
req?: Api.IReqParams;
|
|
45
45
|
}): Promise<{
|
|
46
46
|
location: ILocation;
|
|
@@ -57,7 +57,7 @@ export declare namespace HostingLocation {
|
|
|
57
57
|
function GetKeyByAccountId(params: {
|
|
58
58
|
accountId?: string;
|
|
59
59
|
apiSettings?: AccountSettings.IBruceApi;
|
|
60
|
-
api
|
|
60
|
+
api?: GuardianApi.Api;
|
|
61
61
|
req?: Api.IReqParams;
|
|
62
62
|
}): Promise<{
|
|
63
63
|
key: string;
|
|
@@ -66,7 +66,7 @@ export declare namespace HostingLocation {
|
|
|
66
66
|
function GetByAccountId(params: {
|
|
67
67
|
accountId?: string;
|
|
68
68
|
apiSettings?: AccountSettings.IBruceApi;
|
|
69
|
-
api
|
|
69
|
+
api?: GuardianApi.Api;
|
|
70
70
|
req?: Api.IReqParams;
|
|
71
71
|
}): Promise<{
|
|
72
72
|
location: ILocation;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Api } from "../api/api";
|
|
2
|
-
import { BruceApi
|
|
2
|
+
import { BruceApi } from "../api/bruce-api";
|
|
3
|
+
import { UTC } from "../common/utc";
|
|
3
4
|
/**
|
|
4
5
|
* Describes the "Pending Action" concept within Bruce.
|
|
5
6
|
* A pending action is a record of a server-side background process.
|
|
@@ -39,21 +40,21 @@ export declare namespace PendingAction {
|
|
|
39
40
|
Info = "INFO"
|
|
40
41
|
}
|
|
41
42
|
function Get(params: {
|
|
42
|
-
api
|
|
43
|
+
api?: BruceApi.Api;
|
|
43
44
|
actionId: number;
|
|
44
45
|
req?: Api.IReqParams;
|
|
45
46
|
}): Promise<{
|
|
46
47
|
action: IAction;
|
|
47
48
|
}>;
|
|
48
49
|
function GetRelevantList(params: {
|
|
49
|
-
api
|
|
50
|
+
api?: BruceApi.Api;
|
|
50
51
|
stricter?: boolean;
|
|
51
52
|
reqParams?: Api.IReqParams;
|
|
52
53
|
}): Promise<{
|
|
53
54
|
actions: IAction[];
|
|
54
55
|
}>;
|
|
55
56
|
function GetMessages(params: {
|
|
56
|
-
api
|
|
57
|
+
api?: BruceApi.Api;
|
|
57
58
|
actionId: number;
|
|
58
59
|
order?: Api.ESortOrder;
|
|
59
60
|
startIndex?: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Api
|
|
1
|
+
import { Api } from "../api/api";
|
|
2
|
+
import { GlobalApi } from "../api/global-api";
|
|
2
3
|
export declare namespace Task {
|
|
3
4
|
interface ITask {
|
|
4
5
|
account: string;
|
|
@@ -19,14 +20,14 @@ export declare namespace Task {
|
|
|
19
20
|
BackupRestore = "BackupRestore"
|
|
20
21
|
}
|
|
21
22
|
function Get(params: {
|
|
22
|
-
api
|
|
23
|
+
api?: GlobalApi.Api;
|
|
23
24
|
taskId: number;
|
|
24
25
|
req?: Api.IReqParams;
|
|
25
26
|
}): Promise<{
|
|
26
27
|
task: ITask;
|
|
27
28
|
}>;
|
|
28
29
|
function GetList(params: {
|
|
29
|
-
api
|
|
30
|
+
api?: GlobalApi.Api;
|
|
30
31
|
accountId?: string;
|
|
31
32
|
type?: ETaskPurpose;
|
|
32
33
|
req?: Api.IReqParams;
|