bruce-models 2.4.5 → 2.4.7

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 (130) hide show
  1. package/dist/bruce-models.es5.js +975 -402
  2. package/dist/bruce-models.es5.js.map +1 -1
  3. package/dist/bruce-models.umd.js +957 -385
  4. package/dist/bruce-models.umd.js.map +1 -1
  5. package/dist/lib/account/account-invite.js +17 -4
  6. package/dist/lib/account/account-invite.js.map +1 -1
  7. package/dist/lib/account/account.js +20 -4
  8. package/dist/lib/account/account.js.map +1 -1
  9. package/dist/lib/ann-document/ann-document.js +8 -1
  10. package/dist/lib/ann-document/ann-document.js.map +1 -1
  11. package/dist/lib/api/api-getters.js +34 -0
  12. package/dist/lib/api/api-getters.js.map +1 -1
  13. package/dist/lib/api/bruce-api.js.map +1 -1
  14. package/dist/lib/bruce-models.js +1 -0
  15. package/dist/lib/bruce-models.js.map +1 -1
  16. package/dist/lib/client-file/client-file.js +34 -6
  17. package/dist/lib/client-file/client-file.js.map +1 -1
  18. package/dist/lib/custom-form/custom-form.js +17 -4
  19. package/dist/lib/custom-form/custom-form.js.map +1 -1
  20. package/dist/lib/data-lab/data-lab.js +4 -0
  21. package/dist/lib/data-lab/data-lab.js.map +1 -1
  22. package/dist/lib/entity/entity-attachment-type.js +13 -3
  23. package/dist/lib/entity/entity-attachment-type.js.map +1 -1
  24. package/dist/lib/entity/entity-attachment.js +21 -5
  25. package/dist/lib/entity/entity-attachment.js.map +1 -1
  26. package/dist/lib/entity/entity-comment.js +13 -3
  27. package/dist/lib/entity/entity-comment.js.map +1 -1
  28. package/dist/lib/entity/entity-coords.js +21 -5
  29. package/dist/lib/entity/entity-coords.js.map +1 -1
  30. package/dist/lib/entity/entity-link.js +13 -3
  31. package/dist/lib/entity/entity-link.js.map +1 -1
  32. package/dist/lib/entity/entity-lod-category.js +17 -4
  33. package/dist/lib/entity/entity-lod-category.js.map +1 -1
  34. package/dist/lib/entity/entity-lod.js +26 -4
  35. package/dist/lib/entity/entity-lod.js.map +1 -1
  36. package/dist/lib/entity/entity-relation-type.js +17 -4
  37. package/dist/lib/entity/entity-relation-type.js.map +1 -1
  38. package/dist/lib/entity/entity-relation.js +20 -4
  39. package/dist/lib/entity/entity-relation.js.map +1 -1
  40. package/dist/lib/entity/entity-source.js +19 -6
  41. package/dist/lib/entity/entity-source.js.map +1 -1
  42. package/dist/lib/entity/entity-tag.js +21 -5
  43. package/dist/lib/entity/entity-tag.js.map +1 -1
  44. package/dist/lib/entity/entity-type.js +16 -3
  45. package/dist/lib/entity/entity-type.js.map +1 -1
  46. package/dist/lib/entity/entity.js +25 -6
  47. package/dist/lib/entity/entity.js.map +1 -1
  48. package/dist/lib/environment.js +55 -0
  49. package/dist/lib/environment.js.map +1 -0
  50. package/dist/lib/import/import-cad.js +9 -2
  51. package/dist/lib/import/import-cad.js.map +1 -1
  52. package/dist/lib/import/import-csv.js +5 -1
  53. package/dist/lib/import/import-csv.js.map +1 -1
  54. package/dist/lib/import/import-json.js +5 -1
  55. package/dist/lib/import/import-json.js.map +1 -1
  56. package/dist/lib/import/import-kml.js +5 -1
  57. package/dist/lib/import/import-kml.js.map +1 -1
  58. package/dist/lib/import/imported-file.js +12 -2
  59. package/dist/lib/import/imported-file.js.map +1 -1
  60. package/dist/lib/internal/uploader.js +5 -1
  61. package/dist/lib/internal/uploader.js.map +1 -1
  62. package/dist/lib/plugin/plugin.js +12 -2
  63. package/dist/lib/plugin/plugin.js.map +1 -1
  64. package/dist/lib/program-key/program-key.js +17 -4
  65. package/dist/lib/program-key/program-key.js.map +1 -1
  66. package/dist/lib/project/project-view-bookmark.js +21 -5
  67. package/dist/lib/project/project-view-bookmark.js.map +1 -1
  68. package/dist/lib/project/project-view-legacy-tile.js +9 -2
  69. package/dist/lib/project/project-view-legacy-tile.js.map +1 -1
  70. package/dist/lib/project/project-view.js +16 -3
  71. package/dist/lib/project/project-view.js.map +1 -1
  72. package/dist/lib/server/hosting-location.js +22 -5
  73. package/dist/lib/server/hosting-location.js.map +1 -1
  74. package/dist/lib/server/pending-action.js +12 -2
  75. package/dist/lib/server/pending-action.js.map +1 -1
  76. package/dist/lib/server/task.js +9 -2
  77. package/dist/lib/server/task.js.map +1 -1
  78. package/dist/lib/style/style.js +17 -4
  79. package/dist/lib/style/style.js.map +1 -1
  80. package/dist/lib/tileset/tileset.js +61 -10
  81. package/dist/lib/tileset/tileset.js.map +1 -1
  82. package/dist/lib/user/session.js +13 -3
  83. package/dist/lib/user/session.js.map +1 -1
  84. package/dist/lib/user/user-group.js +25 -6
  85. package/dist/lib/user/user-group.js.map +1 -1
  86. package/dist/lib/user/user.js +58 -12
  87. package/dist/lib/user/user.js.map +1 -1
  88. package/dist/types/account/account-invite.d.ts +5 -4
  89. package/dist/types/account/account.d.ts +5 -5
  90. package/dist/types/ann-document/ann-document.d.ts +3 -3
  91. package/dist/types/api/api-getters.d.ts +6 -5
  92. package/dist/types/api/bruce-api.d.ts +1 -1
  93. package/dist/types/bruce-models.d.ts +1 -0
  94. package/dist/types/client-file/client-file.d.ts +10 -10
  95. package/dist/types/custom-form/custom-form.d.ts +4 -4
  96. package/dist/types/data-lab/data-lab.d.ts +1 -1
  97. package/dist/types/entity/entity-attachment-type.d.ts +3 -3
  98. package/dist/types/entity/entity-attachment.d.ts +6 -6
  99. package/dist/types/entity/entity-comment.d.ts +5 -4
  100. package/dist/types/entity/entity-coords.d.ts +5 -5
  101. package/dist/types/entity/entity-link.d.ts +4 -4
  102. package/dist/types/entity/entity-lod-category.d.ts +4 -4
  103. package/dist/types/entity/entity-lod.d.ts +7 -7
  104. package/dist/types/entity/entity-relation-type.d.ts +4 -4
  105. package/dist/types/entity/entity-relation.d.ts +5 -5
  106. package/dist/types/entity/entity-source.d.ts +6 -5
  107. package/dist/types/entity/entity-tag.d.ts +5 -5
  108. package/dist/types/entity/entity-type.d.ts +4 -4
  109. package/dist/types/entity/entity.d.ts +6 -6
  110. package/dist/types/environment.d.ts +16 -0
  111. package/dist/types/import/import-cad.d.ts +2 -2
  112. package/dist/types/import/import-csv.d.ts +1 -1
  113. package/dist/types/import/import-json.d.ts +1 -1
  114. package/dist/types/import/import-kml.d.ts +1 -1
  115. package/dist/types/import/imported-file.d.ts +3 -3
  116. package/dist/types/internal/uploader.d.ts +1 -1
  117. package/dist/types/plugin/plugin.d.ts +3 -3
  118. package/dist/types/program-key/program-key.d.ts +4 -4
  119. package/dist/types/project/project-view-bookmark.d.ts +7 -6
  120. package/dist/types/project/project-view-legacy-tile.d.ts +2 -2
  121. package/dist/types/project/project-view.d.ts +4 -4
  122. package/dist/types/server/hosting-location.d.ts +5 -5
  123. package/dist/types/server/pending-action.d.ts +5 -4
  124. package/dist/types/server/task.d.ts +4 -3
  125. package/dist/types/style/style.d.ts +6 -5
  126. package/dist/types/tileset/tileset.d.ts +18 -17
  127. package/dist/types/user/session.d.ts +4 -3
  128. package/dist/types/user/user-group.d.ts +10 -7
  129. package/dist/types/user/user.d.ts +16 -15
  130. package/package.json +1 -1
@@ -31,35 +31,35 @@ export declare namespace EntityCoords {
31
31
  name?: boolean;
32
32
  }
33
33
  function GetEntityCoords(params: {
34
- api: BruceApi.Api;
34
+ api?: BruceApi.Api;
35
35
  rootEntityId: string;
36
36
  req?: Api.IReqParams;
37
37
  }): Promise<{
38
38
  coords: IEntityCoords;
39
39
  }>;
40
40
  function EntityRelativeToPoint(params: {
41
- api: BruceApi.Api;
41
+ api?: BruceApi.Api;
42
42
  rootEntityId: string;
43
43
  req?: Api.IReqParams;
44
44
  } & IRelToPointParams): Promise<{
45
45
  coords: IEntityCoords;
46
46
  }>;
47
47
  function EntityRelativeToEpsg(params: {
48
- api: BruceApi.Api;
48
+ api?: BruceApi.Api;
49
49
  rootEntityId: string;
50
50
  req?: Api.IReqParams;
51
51
  } & IRelToEpsgParams): Promise<{
52
52
  coords: IEntityCoords;
53
53
  }>;
54
54
  function EntityRelativeToUcs(params: {
55
- api: BruceApi.Api;
55
+ api?: BruceApi.Api;
56
56
  rootEntityId: string;
57
57
  req?: Api.IReqParams;
58
58
  } & IRelToUcsParams): Promise<{
59
59
  coords: IEntityCoords;
60
60
  }>;
61
61
  function UnlinkCoords(params: {
62
- api: BruceApi.Api;
62
+ api?: BruceApi.Api;
63
63
  rootEntityId: string;
64
64
  req?: Api.IReqParams;
65
65
  }): Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import { Api } from "../api/api";
2
- import { BruceApi } from "../bruce-models";
2
+ import { BruceApi } from "../api/bruce-api";
3
3
  /**
4
4
  * Describes the "Entity Link" concept within Bruce.
5
5
  * An entity link is a URL linked to an entity record.
@@ -14,20 +14,20 @@ export declare namespace EntityLink {
14
14
  URL: string;
15
15
  }
16
16
  function Update(params: {
17
- api: BruceApi.Api;
17
+ api?: BruceApi.Api;
18
18
  link: ILink;
19
19
  req?: Api.IReqParams;
20
20
  }): Promise<{
21
21
  link: ILink;
22
22
  }>;
23
23
  function Delete(params: {
24
- api: BruceApi.Api;
24
+ api?: BruceApi.Api;
25
25
  entityId: string;
26
26
  linkId: number;
27
27
  req?: Api.IReqParams;
28
28
  }): Promise<void>;
29
29
  function GetListByEntityId(params: {
30
- api: BruceApi.Api;
30
+ api?: BruceApi.Api;
31
31
  entityId: string;
32
32
  req?: Api.IReqParams;
33
33
  }): Promise<{
@@ -9,25 +9,25 @@ export declare namespace EntityLodCategory {
9
9
  Name: string;
10
10
  }
11
11
  function GetList(params: {
12
- api: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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, IDictionary } from "../bruce-models";
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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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 } from "./api/api";
2
+ import { ApiGetters } from "./api/api-getters";
3
+ interface IParams {
4
+ isSelfManaged?: boolean;
5
+ accountId?: string;
6
+ env?: Api.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 GetGetters(): 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: BruceApi.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: BruceApi.Api;
39
+ api?: BruceApi.Api;
40
40
  fileImport: IImportParams;
41
41
  req?: Api.IReqParams;
42
42
  }): Promise<IImportRes>;
@@ -24,7 +24,7 @@ export declare namespace ImportCsv {
24
24
  PendingActionID: number;
25
25
  }
26
26
  function ImportEntities(params: {
27
- api: BruceApi.Api;
27
+ api?: BruceApi.Api;
28
28
  fileImport: IImportParams;
29
29
  req?: Api.IReqParams;
30
30
  }): Promise<IImportRes>;
@@ -19,7 +19,7 @@ export declare namespace ImportJson {
19
19
  PendingActionID: number;
20
20
  }
21
21
  function ImportEntities(params: {
22
- api: BruceApi.Api;
22
+ api?: BruceApi.Api;
23
23
  fileImport: IImportParams;
24
24
  req?: Api.IReqParams;
25
25
  }): Promise<IImportRes>;
@@ -12,7 +12,7 @@ export declare namespace ImportKml {
12
12
  PendingActionID: number;
13
13
  }
14
14
  function ImportEntities(params: {
15
- api: BruceApi.Api;
15
+ api?: BruceApi.Api;
16
16
  fileImport: IImportParams;
17
17
  req?: Api.IReqParams;
18
18
  }): Promise<IImportRes>;
@@ -23,7 +23,7 @@ export declare namespace ImportedFile {
23
23
  All = "All"
24
24
  }
25
25
  function GetList(params: {
26
- api: BruceApi.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: BruceApi.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: BruceApi.Api;
41
+ api?: BruceApi.Api;
42
42
  importedFileId: number;
43
43
  req?: Api.IReqParams;
44
44
  }): Promise<{
@@ -8,7 +8,7 @@ export declare namespace Uploader {
8
8
  }
9
9
  function DoMultiPartUpload(params: {
10
10
  file: File;
11
- api: BruceApi.Api;
11
+ api?: BruceApi.Api;
12
12
  urlSuffix: string;
13
13
  req?: Api.IUploadReqParams;
14
14
  onProgress?: (progress: IProgress) => void;
@@ -16,20 +16,20 @@ export declare namespace Plugin {
16
16
  "Created.Date": UTC.IUTC;
17
17
  }
18
18
  function Get(params: {
19
- api: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.IGetter;
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: BruceApi.IGetter;
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: BruceApi.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: BruceApi.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: BruceApi.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: BruceApi.Api;
134
+ api?: BruceApi.Api;
135
135
  view: View;
136
136
  req?: Api.IReqParams;
137
137
  }): Promise<{