bruce-models 3.2.0 → 3.2.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 (195) hide show
  1. package/dist/bruce-models.es5.js +2670 -838
  2. package/dist/bruce-models.es5.js.map +1 -1
  3. package/dist/bruce-models.umd.js +2606 -803
  4. package/dist/bruce-models.umd.js.map +1 -1
  5. package/dist/lib/account/account-invite.js +40 -1
  6. package/dist/lib/account/account-invite.js.map +1 -1
  7. package/dist/lib/account/account.js +60 -5
  8. package/dist/lib/account/account.js.map +1 -1
  9. package/dist/lib/ann-document/ann-document.js +36 -3
  10. package/dist/lib/ann-document/ann-document.js.map +1 -1
  11. package/dist/lib/api/abstract-api.js +78 -1
  12. package/dist/lib/api/abstract-api.js.map +1 -1
  13. package/dist/lib/api/api-getters.js +68 -94
  14. package/dist/lib/api/api-getters.js.map +1 -1
  15. package/dist/lib/api/api.js +20 -3
  16. package/dist/lib/api/api.js.map +1 -1
  17. package/dist/lib/api/bruce-api.js +68 -27
  18. package/dist/lib/api/bruce-api.js.map +1 -1
  19. package/dist/lib/api/global-api.js +46 -4
  20. package/dist/lib/api/global-api.js.map +1 -1
  21. package/dist/lib/api/guardian-api.js +42 -1
  22. package/dist/lib/api/guardian-api.js.map +1 -1
  23. package/dist/lib/bruce-models.js +1 -3
  24. package/dist/lib/bruce-models.js.map +1 -1
  25. package/dist/lib/calculator/calculator.js +42 -1
  26. package/dist/lib/calculator/calculator.js.map +1 -1
  27. package/dist/lib/client-file/client-file.js +71 -7
  28. package/dist/lib/client-file/client-file.js.map +1 -1
  29. package/dist/lib/common/bounds.js +1 -1
  30. package/dist/lib/common/bounds.js.map +1 -1
  31. package/dist/lib/common/bruce-event.js +19 -0
  32. package/dist/lib/common/bruce-event.js.map +1 -1
  33. package/dist/lib/common/bruce-variable.js +5 -0
  34. package/dist/lib/common/bruce-variable.js.map +1 -1
  35. package/dist/lib/common/color-css-defaults.js +157 -0
  36. package/dist/lib/common/color-css-defaults.js.map +1 -0
  37. package/dist/lib/common/color.js +18 -4
  38. package/dist/lib/common/color.js.map +1 -1
  39. package/dist/lib/common/delay-queue.js +7 -0
  40. package/dist/lib/common/delay-queue.js.map +1 -1
  41. package/dist/lib/common/geometry.js +5 -0
  42. package/dist/lib/common/geometry.js.map +1 -1
  43. package/dist/lib/common/lru-cache.js +14 -0
  44. package/dist/lib/common/lru-cache.js.map +1 -1
  45. package/dist/lib/custom-form/custom-form.js +49 -7
  46. package/dist/lib/custom-form/custom-form.js.map +1 -1
  47. package/dist/lib/data-lab/data-lab.js +10 -0
  48. package/dist/lib/data-lab/data-lab.js.map +1 -1
  49. package/dist/lib/data-source/data-source.js +41 -0
  50. package/dist/lib/data-source/data-source.js.map +1 -1
  51. package/dist/lib/entity/entity-attachment-type.js +37 -1
  52. package/dist/lib/entity/entity-attachment-type.js.map +1 -1
  53. package/dist/lib/entity/entity-attachment.js +65 -18
  54. package/dist/lib/entity/entity-attachment.js.map +1 -1
  55. package/dist/lib/entity/entity-attribute.js +17 -1
  56. package/dist/lib/entity/entity-attribute.js.map +1 -1
  57. package/dist/lib/entity/entity-comment.js +44 -7
  58. package/dist/lib/entity/entity-comment.js.map +1 -1
  59. package/dist/lib/entity/entity-coords.js +38 -0
  60. package/dist/lib/entity/entity-coords.js.map +1 -1
  61. package/dist/lib/entity/entity-link.js +45 -11
  62. package/dist/lib/entity/entity-link.js.map +1 -1
  63. package/dist/lib/entity/entity-lod-category.js +52 -9
  64. package/dist/lib/entity/entity-lod-category.js.map +1 -1
  65. package/dist/lib/entity/entity-lod.js +78 -16
  66. package/dist/lib/entity/entity-lod.js.map +1 -1
  67. package/dist/lib/entity/entity-relation-type.js +48 -10
  68. package/dist/lib/entity/entity-relation-type.js.map +1 -1
  69. package/dist/lib/entity/entity-relation.js +69 -16
  70. package/dist/lib/entity/entity-relation.js.map +1 -1
  71. package/dist/lib/entity/entity-source.js +56 -15
  72. package/dist/lib/entity/entity-source.js.map +1 -1
  73. package/dist/lib/entity/entity-tag.js +56 -10
  74. package/dist/lib/entity/entity-tag.js.map +1 -1
  75. package/dist/lib/entity/entity-type-visual-settings.js +4 -0
  76. package/dist/lib/entity/entity-type-visual-settings.js.map +1 -1
  77. package/dist/lib/entity/entity-type.js +45 -7
  78. package/dist/lib/entity/entity-type.js.map +1 -1
  79. package/dist/lib/entity/entity.js +122 -18
  80. package/dist/lib/entity/entity.js.map +1 -1
  81. package/dist/lib/environment.js +12 -0
  82. package/dist/lib/environment.js.map +1 -1
  83. package/dist/lib/import/imported-file.js +53 -0
  84. package/dist/lib/import/imported-file.js.map +1 -1
  85. package/dist/lib/internal/uploader.js +8 -0
  86. package/dist/lib/internal/uploader.js.map +1 -1
  87. package/dist/lib/markup/markup.js +1 -1
  88. package/dist/lib/markup/markup.js.map +1 -1
  89. package/dist/lib/plugin/plugin.js +51 -9
  90. package/dist/lib/plugin/plugin.js.map +1 -1
  91. package/dist/lib/program-key/program-key.js +55 -10
  92. package/dist/lib/program-key/program-key.js.map +1 -1
  93. package/dist/lib/project/menu-item.js +22 -0
  94. package/dist/lib/project/menu-item.js.map +1 -1
  95. package/dist/lib/project/project-view-bookmark.js +55 -11
  96. package/dist/lib/project/project-view-bookmark.js.map +1 -1
  97. package/dist/lib/project/project-view-tile.js +9 -0
  98. package/dist/lib/project/project-view-tile.js.map +1 -1
  99. package/dist/lib/project/project-view.js +45 -7
  100. package/dist/lib/project/project-view.js.map +1 -1
  101. package/dist/lib/project/zoom-control.js +7 -0
  102. package/dist/lib/project/zoom-control.js.map +1 -1
  103. package/dist/lib/server/hosting-location.js +30 -9
  104. package/dist/lib/server/hosting-location.js.map +1 -1
  105. package/dist/lib/server/message-broker.js +3 -0
  106. package/dist/lib/server/message-broker.js.map +1 -1
  107. package/dist/lib/server/pending-action.js +25 -4
  108. package/dist/lib/server/pending-action.js.map +1 -1
  109. package/dist/lib/server/task.js +17 -0
  110. package/dist/lib/server/task.js.map +1 -1
  111. package/dist/lib/style/style.js +56 -7
  112. package/dist/lib/style/style.js.map +1 -1
  113. package/dist/lib/tileset/tileset.js +128 -34
  114. package/dist/lib/tileset/tileset.js.map +1 -1
  115. package/dist/lib/user/permission.js +20 -0
  116. package/dist/lib/user/permission.js.map +1 -1
  117. package/dist/lib/user/session.js +46 -1
  118. package/dist/lib/user/session.js.map +1 -1
  119. package/dist/lib/user/user-group.js +49 -19
  120. package/dist/lib/user/user-group.js.map +1 -1
  121. package/dist/lib/user/user.js +134 -37
  122. package/dist/lib/user/user.js.map +1 -1
  123. package/dist/lib/util/path-utils.js +16 -1
  124. package/dist/lib/util/path-utils.js.map +1 -1
  125. package/dist/lib/util/url-utils.js +12 -85
  126. package/dist/lib/util/url-utils.js.map +1 -1
  127. package/dist/types/account/account-invite.d.ts +44 -8
  128. package/dist/types/account/account-settings.d.ts +3 -0
  129. package/dist/types/account/account.d.ts +68 -11
  130. package/dist/types/ann-document/ann-document.d.ts +43 -0
  131. package/dist/types/api/abstract-api.d.ts +76 -1
  132. package/dist/types/api/api-getters.d.ts +62 -24
  133. package/dist/types/api/api.d.ts +19 -4
  134. package/dist/types/api/bruce-api.d.ts +48 -4
  135. package/dist/types/api/global-api.d.ts +46 -8
  136. package/dist/types/api/guardian-api.d.ts +42 -5
  137. package/dist/types/bruce-models.d.ts +1 -3
  138. package/dist/types/calculator/calculator.d.ts +57 -1
  139. package/dist/types/client-file/client-file.d.ts +69 -6
  140. package/dist/types/common/bounds.d.ts +3 -3
  141. package/dist/types/common/bruce-event.d.ts +19 -0
  142. package/dist/types/common/color-css-defaults.d.ts +153 -0
  143. package/dist/types/common/color.d.ts +6 -1
  144. package/dist/types/common/delay-queue.d.ts +7 -0
  145. package/dist/types/common/geometry.d.ts +5 -0
  146. package/dist/types/common/lru-cache.d.ts +14 -0
  147. package/dist/types/custom-form/custom-form-content.d.ts +3 -0
  148. package/dist/types/custom-form/custom-form.d.ts +46 -1
  149. package/dist/types/data-lab/data-lab.d.ts +10 -0
  150. package/dist/types/data-source/data-source.d.ts +41 -0
  151. package/dist/types/entity/entity-attachment-type.d.ts +38 -1
  152. package/dist/types/entity/entity-attachment.d.ts +49 -2
  153. package/dist/types/entity/entity-attribute.d.ts +31 -12
  154. package/dist/types/entity/entity-comment.d.ts +41 -1
  155. package/dist/types/entity/entity-coords.d.ts +54 -1
  156. package/dist/types/entity/entity-link.d.ts +39 -2
  157. package/dist/types/entity/entity-lod-category.d.ts +46 -0
  158. package/dist/types/entity/entity-lod.d.ts +72 -1
  159. package/dist/types/entity/entity-relation-type.d.ts +42 -1
  160. package/dist/types/entity/entity-relation.d.ts +57 -1
  161. package/dist/types/entity/entity-source.d.ts +38 -4
  162. package/dist/types/entity/entity-tag.d.ts +48 -1
  163. package/dist/types/entity/entity-type-visual-settings.d.ts +4 -0
  164. package/dist/types/entity/entity-type.d.ts +45 -4
  165. package/dist/types/entity/entity.d.ts +89 -3
  166. package/dist/types/environment.d.ts +9 -0
  167. package/dist/types/import/imported-file.d.ts +64 -8
  168. package/dist/types/internal/uploader.d.ts +8 -0
  169. package/dist/types/markup/markup.d.ts +7 -1
  170. package/dist/types/plugin/plugin.d.ts +45 -0
  171. package/dist/types/program-key/program-key.d.ts +45 -1
  172. package/dist/types/project/menu-item.d.ts +73 -1
  173. package/dist/types/project/project-view-bookmark.d.ts +64 -2
  174. package/dist/types/project/project-view-tile.d.ts +30 -0
  175. package/dist/types/project/project-view.d.ts +52 -2
  176. package/dist/types/project/zoom-control.d.ts +7 -0
  177. package/dist/types/server/hosting-location.d.ts +24 -0
  178. package/dist/types/server/message-broker.d.ts +3 -0
  179. package/dist/types/server/pending-action.d.ts +28 -1
  180. package/dist/types/server/task.d.ts +20 -0
  181. package/dist/types/style/style.d.ts +69 -2
  182. package/dist/types/tileset/tileset.d.ts +92 -1
  183. package/dist/types/user/permission.d.ts +11 -0
  184. package/dist/types/user/session.d.ts +48 -5
  185. package/dist/types/user/user-group.d.ts +40 -8
  186. package/dist/types/user/user.d.ts +117 -17
  187. package/dist/types/util/path-utils.d.ts +16 -1
  188. package/dist/types/util/url-utils.d.ts +5 -22
  189. package/package.json +1 -1
  190. package/dist/lib/api/cam-api.js +0 -84
  191. package/dist/lib/api/cam-api.js.map +0 -1
  192. package/dist/lib/api/idm-api.js +0 -86
  193. package/dist/lib/api/idm-api.js.map +0 -1
  194. package/dist/types/api/cam-api.d.ts +0 -26
  195. package/dist/types/api/idm-api.d.ts +0 -28
@@ -2,23 +2,53 @@ import { Api } from "../api/api";
2
2
  import { BruceApi } from "../api/bruce-api";
3
3
  type Id = ProgramKey.EProgramId | string;
4
4
  /**
5
- * Describes the "Program Key" concept within Bruce.
5
+ * Describes the "Program Key" concept within Nextspace.
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
+ */
9
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
+ */
10
29
  function GetListCacheKey(): string;
30
+ /**
31
+ * Known program IDs that Nextspace applications will reference.
32
+ */
11
33
  enum EProgramId {
12
34
  CesiumIon = "CesiumIon",
13
35
  BingMaps = "BingMaps",
14
36
  Mapbox = "Mapbox",
15
37
  Google = "Google"
16
38
  }
39
+ /**
40
+ * Describes a program key record.
41
+ */
17
42
  interface IKey {
18
43
  ProgramId: Id;
19
44
  Key: string;
20
45
  IsAccessRestricted?: boolean;
21
46
  }
47
+ /**
48
+ * Returns a program key record.
49
+ * @param params
50
+ * @returns
51
+ */
22
52
  function Get(params: {
23
53
  api?: BruceApi.Api;
24
54
  programId: Id;
@@ -26,17 +56,31 @@ export declare namespace ProgramKey {
26
56
  }): Promise<{
27
57
  programKey: IKey;
28
58
  }>;
59
+ /**
60
+ * Returns a list of program key records.
61
+ * @param params
62
+ * @returns
63
+ */
29
64
  function GetList(params: {
30
65
  api?: BruceApi.Api;
31
66
  req?: Api.IReqParams;
32
67
  }): Promise<{
33
68
  programKeys: IKey[];
34
69
  }>;
70
+ /**
71
+ * Deletes a program key record.
72
+ * @param params
73
+ */
35
74
  function Delete(params: {
36
75
  api?: BruceApi.Api;
37
76
  programId: Id;
38
77
  req?: Api.IReqParams;
39
78
  }): Promise<void>;
79
+ /**
80
+ * Creates or updates a program key record.
81
+ * @param params
82
+ * @returns
83
+ */
40
84
  function Update(params: {
41
85
  api?: BruceApi.Api;
42
86
  programKey: IKey;
@@ -8,6 +8,9 @@ import { ZoomControl } from "./zoom-control";
8
8
  * A menu item may be a container for other items.
9
9
  */
10
10
  export declare namespace MenuItem {
11
+ /**
12
+ * Possible types of menu items.
13
+ */
11
14
  enum EType {
12
15
  None = "NONE",
13
16
  Entities = "BruceEntity",
@@ -26,6 +29,9 @@ export declare namespace MenuItem {
26
29
  Relationships = "Relationships",
27
30
  GooglePhotoTileset = "GooglePhotoTileset"
28
31
  }
32
+ /**
33
+ * @derepcated.
34
+ */
29
35
  interface ILegend {
30
36
  model3d: boolean;
31
37
  point: boolean;
@@ -33,6 +39,9 @@ export declare namespace MenuItem {
33
39
  polylines: boolean;
34
40
  tileset3d: boolean;
35
41
  }
42
+ /**
43
+ * Settings related to how authoring for a menu item should behave.
44
+ */
36
45
  interface IAuthorSettings {
37
46
  readClickedEntity?: boolean;
38
47
  clickedRelationTypeId?: string;
@@ -41,6 +50,9 @@ export declare namespace MenuItem {
41
50
  toPathStr: string;
42
51
  }[];
43
52
  }
53
+ /**
54
+ * Describes a menu item found in project views.
55
+ */
44
56
  interface IItem {
45
57
  id: string;
46
58
  Caption: string;
@@ -55,10 +67,32 @@ export declare namespace MenuItem {
55
67
  cdnEnabled?: boolean;
56
68
  cdnCounter?: number;
57
69
  }
70
+ /**
71
+ * Creates a menu item for a single entity.
72
+ * @param entityId
73
+ * @param typeId
74
+ * @param styleId
75
+ * @returns
76
+ */
58
77
  function CreateFromEntityId(entityId: string, typeId: string, styleId?: number): IItem;
78
+ /**
79
+ * Creates a menu item for an entity type.
80
+ * @param typeId
81
+ * @param styleId
82
+ * @returns
83
+ */
59
84
  function CreateFromTypeId(typeId: string, styleId?: number): IItem;
85
+ /**
86
+ * Creates a menu item for a tileset.
87
+ * @param tilesetId
88
+ * @param type
89
+ * @returns
90
+ */
60
91
  function CreateFromTilesetId(tilesetId: string, type: Tileset.EType): IItem;
61
92
  namespace Item {
93
+ /**
94
+ * Tileset load information.
95
+ */
62
96
  interface ITileset {
63
97
  TilesetURL?: string;
64
98
  ClientAccountID?: string;
@@ -71,6 +105,9 @@ export declare namespace MenuItem {
71
105
  minDistance?: number;
72
106
  minTotalCount?: number;
73
107
  }
108
+ /**
109
+ * Menu item for loading Nextspace vector or 3D model entities.
110
+ */
74
111
  interface IEntities extends IItem {
75
112
  Type: EType.Entities;
76
113
  BruceEntity: {
@@ -90,6 +127,9 @@ export declare namespace MenuItem {
90
127
  checked: boolean;
91
128
  }[];
92
129
  }
130
+ /**
131
+ * Menu item for loading a single Nextspace vector or 3D model entity.
132
+ */
93
133
  interface IEntity extends IItem {
94
134
  Type: EType.Entity;
95
135
  BruceEntity: {
@@ -100,6 +140,9 @@ export declare namespace MenuItem {
100
140
  showAllLayers?: boolean;
101
141
  showAllLayersExcludeBelow?: boolean;
102
142
  }
143
+ /**
144
+ * Menu item for loading a legacy tileset.
145
+ */
103
146
  interface IArbTileset extends IItem {
104
147
  Type: EType.ArbTileset | EType.IonTileset;
105
148
  FlyTo?: boolean;
@@ -117,6 +160,9 @@ export declare namespace MenuItem {
117
160
  }
118
161
  interface IIonTileset extends IArbTileset {
119
162
  }
163
+ /**
164
+ * Menu item for loading a CAD tileset.
165
+ */
120
166
  interface ICadTileset extends IItem {
121
167
  Type: EType.CadTileset;
122
168
  tileset: ITileset;
@@ -132,15 +178,26 @@ export declare namespace MenuItem {
132
178
  Ghosts?: boolean;
133
179
  };
134
180
  }
181
+ /**
182
+ * Menu item for loading a point cloud tileset.
183
+ */
135
184
  interface IPointcloud extends IItem {
136
185
  Type: EType.PointCloud;
137
186
  FlyTo?: boolean;
138
187
  tileset: ITileset;
139
188
  }
189
+ /**
190
+ * Menu item for loading a raster tileset.
191
+ * This is deprecated and unsupported in the latest web-Navigator.
192
+ * If needed, load through the imagery panel.
193
+ */
140
194
  interface IEntitiesRaster extends IItem {
141
195
  Type: EType.EntityRaster;
142
196
  tileset: ITileset;
143
197
  }
198
+ /**
199
+ * Menu item for loading a Cesium OSM tileset.
200
+ */
144
201
  interface IOsm extends IItem {
145
202
  Type: EType.Osm;
146
203
  BruceEntity?: {
@@ -149,6 +206,9 @@ export declare namespace MenuItem {
149
206
  };
150
207
  ghostLoading?: boolean;
151
208
  }
209
+ /**
210
+ * Menu item for loading a static KML file.
211
+ */
152
212
  interface IKml extends IItem {
153
213
  Type: EType.Kml;
154
214
  KML?: {
@@ -158,6 +218,9 @@ export declare namespace MenuItem {
158
218
  fileUrl?: string;
159
219
  }[];
160
220
  }
221
+ /**
222
+ * Menu item for loading a tileset made from entities.
223
+ */
161
224
  interface IEntitiesTileset extends IItem {
162
225
  Type: EType.EntityTileset;
163
226
  FlyTo: boolean;
@@ -165,6 +228,9 @@ export declare namespace MenuItem {
165
228
  attenuation?: boolean;
166
229
  attenuationMax?: number;
167
230
  }
231
+ /**
232
+ * Menu item that loads preloaded entity records.
233
+ */
168
234
  interface IEntitiesLoaded extends MenuItem.IItem {
169
235
  Type: EType.EntitiesLoaded;
170
236
  BruceEntity: {
@@ -173,6 +239,9 @@ export declare namespace MenuItem {
173
239
  };
174
240
  CameraZoomSettings?: ZoomControl.IItem[];
175
241
  }
242
+ /**
243
+ * Menu item that loads specific entity ids.
244
+ */
176
245
  interface IEntityIds extends MenuItem.IItem {
177
246
  Type: EType.EntitiesIds;
178
247
  BruceEntity: {
@@ -186,12 +255,15 @@ export declare namespace MenuItem {
186
255
  * Auto-generated menu item when entity-relationships are marked to be rendered.
187
256
  * @deprecated, use IRelationships instead.
188
257
  */
189
- interface IEntityRelations extends MenuItem.IItem {
258
+ interface ILegacyRelationships extends MenuItem.IItem {
190
259
  Type: EType.Relations;
191
260
  BruceEntity?: {
192
261
  EntityIds?: string[];
193
262
  };
194
263
  }
264
+ /**
265
+ * Describes a relationship group to render.
266
+ */
195
267
  interface IRenderedRelations {
196
268
  entityIds: string[];
197
269
  relationTypeId: string;
@@ -8,15 +8,39 @@ import { Section } from "../common/section";
8
8
  import { MenuItem } from "./menu-item";
9
9
  import { ProjectViewTile } from "./project-view-tile";
10
10
  /**
11
- * Describe the "Project View Bookmark" concept within Bruce.
11
+ * Describe the "Project View Bookmark" concept within Nextspace.
12
12
  * This is referred to as "slides" in older code.
13
13
  *
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
+ */
17
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
+ */
18
39
  function GetListCacheKey(viewId: string): string;
19
- const DEFAULT_DATA_VERSION = 1;
40
+ const DEFAULT_DATA_VERSION = 2;
41
+ /**
42
+ * Describes a bookmark record.
43
+ */
20
44
  interface IBookmark {
21
45
  ID?: string;
22
46
  Title?: string;
@@ -62,12 +86,18 @@ export declare namespace ProjectViewBookmark {
62
86
  terrainWireframe?: boolean;
63
87
  renderedEntityRelations?: string[];
64
88
  }
89
+ /**
90
+ * Describes the shadows settings for a bookmark.
91
+ */
65
92
  interface IShadows {
66
93
  enabled: boolean;
67
94
  soften: boolean;
68
95
  pixelSize: number;
69
96
  darkness: number;
70
97
  }
98
+ /**
99
+ * Describes the ambient occlusion settings for a bookmark.
100
+ */
71
101
  interface IAmbientOcclusion {
72
102
  enabled: boolean;
73
103
  intensity: number;
@@ -76,13 +106,22 @@ export declare namespace ProjectViewBookmark {
76
106
  blurStepSize: number;
77
107
  stepSize: number;
78
108
  }
109
+ /**
110
+ * Describes the lighting settings for a bookmark.
111
+ */
79
112
  interface ILighting {
80
113
  color: string;
81
114
  intensity: number;
82
115
  }
116
+ /**
117
+ * Describes the quality settings for a bookmark.
118
+ */
83
119
  interface IQuality {
84
120
  fxaa: boolean;
85
121
  }
122
+ /**
123
+ * Describes the camera settings for a bookmark.
124
+ */
86
125
  interface ICamera {
87
126
  altitude: number;
88
127
  latitude: number;
@@ -93,6 +132,11 @@ export declare namespace ProjectViewBookmark {
93
132
  transition?: number;
94
133
  cameraFrustum?: Camera.EFrustum;
95
134
  }
135
+ /**
136
+ * Gets a bookmark record.
137
+ * @param params
138
+ * @returns
139
+ */
96
140
  function Get(params: {
97
141
  api?: BruceApi.Api;
98
142
  viewId: string;
@@ -101,12 +145,21 @@ export declare namespace ProjectViewBookmark {
101
145
  }): Promise<{
102
146
  bookmark: IBookmark;
103
147
  }>;
148
+ /**
149
+ * Deletes a bookmark record.
150
+ * @param params
151
+ */
104
152
  function Delete(params: {
105
153
  api?: BruceApi.Api;
106
154
  viewId: string;
107
155
  bookmarkId: string;
108
156
  req?: Api.IReqParams;
109
157
  }): Promise<void>;
158
+ /**
159
+ * Gets a list of bookmark records.
160
+ * @param params
161
+ * @returns
162
+ */
110
163
  function GetList(params: {
111
164
  api?: BruceApi.Api;
112
165
  viewId: string;
@@ -114,6 +167,11 @@ export declare namespace ProjectViewBookmark {
114
167
  }): Promise<{
115
168
  bookmarks: IBookmark[];
116
169
  }>;
170
+ /**
171
+ * Creates or updates a bookmark record.
172
+ * @param params
173
+ * @returns
174
+ */
117
175
  function Update(params: {
118
176
  api?: BruceApi.Api;
119
177
  viewId: string;
@@ -122,6 +180,10 @@ export declare namespace ProjectViewBookmark {
122
180
  }): Promise<{
123
181
  bookmark: IBookmark;
124
182
  }>;
183
+ /**
184
+ * Sets the order of bookmarks within a project view.
185
+ * @param params
186
+ */
125
187
  function SetOrder(params: {
126
188
  api?: BruceApi.Api;
127
189
  viewId: string;
@@ -1,16 +1,31 @@
1
+ /**
2
+ * A tile is an imagery or terrain tileset definition.
3
+ */
1
4
  export declare namespace ProjectViewTile {
2
5
  type MapTileId = string | EDefaultImagery;
3
6
  type TerrainTileId = string | EDefaultTerrain;
7
+ /**
8
+ * Base information for loading an imagery or terrain tileset record.
9
+ */
4
10
  interface ITileMeta {
5
11
  accountId?: string;
6
12
  tilesetId: string;
7
13
  }
14
+ /**
15
+ * Definition for a project view terrain.
16
+ */
8
17
  interface IViewTerrain extends ITileMeta {
9
18
  tilesetId: TerrainTileId;
10
19
  }
20
+ /**
21
+ * Definition for a project view imagery.
22
+ */
11
23
  interface IViewImagery extends ITileMeta {
12
24
  tilesetId: MapTileId;
13
25
  }
26
+ /**
27
+ * Definition for a bookmark imagery.
28
+ */
14
29
  interface IBookmarkImagery extends IViewImagery {
15
30
  alpha?: number;
16
31
  brightness?: number;
@@ -19,8 +34,14 @@ export declare namespace ProjectViewTile {
19
34
  gamma?: number;
20
35
  hue?: number;
21
36
  }
37
+ /**
38
+ * Definition for a bookmark terrain.
39
+ */
22
40
  interface IBookmarkTerrain extends IViewTerrain {
23
41
  }
42
+ /**
43
+ * Available imagery defaults.
44
+ */
24
45
  enum EDefaultImagery {
25
46
  BingMapsAerial = "bingmapsaerial",
26
47
  BingMapsAerialWithLabels = "bingmapsaerialwithlabels",
@@ -37,6 +58,9 @@ export declare namespace ProjectViewTile {
37
58
  StamenToner = "stamentoner",
38
59
  Grid = "grid"
39
60
  }
61
+ /**
62
+ * Definition for a default imagery.
63
+ */
40
64
  interface IDefaultImagery {
41
65
  id: EDefaultImagery;
42
66
  name: string;
@@ -47,11 +71,17 @@ export declare namespace ProjectViewTile {
47
71
  * TODO: Im not happy with icon urls sitting in the code. I'd prefer we ship these icons in the library as files.
48
72
  */
49
73
  const DefaultImagery: IDefaultImagery[];
74
+ /**
75
+ * Available terrain defaults.
76
+ */
50
77
  enum EDefaultTerrain {
51
78
  CesiumWorldTerrain = "cesiumworldterrain",
52
79
  FlatTerrain = "flatterrain",
53
80
  LINZ = "linz"
54
81
  }
82
+ /**
83
+ * Definition for a default terrain.
84
+ */
55
85
  interface IDefaultTerrain {
56
86
  id: EDefaultTerrain;
57
87
  name: string;
@@ -6,19 +6,40 @@ import { ProjectViewTile } from "./project-view-tile";
6
6
  import { ProjectViewBookmark } from "./project-view-bookmark";
7
7
  import { ProjectViewSelection } from "./project-view-selection";
8
8
  /**
9
- * Describes the "Project View" concept within Bruce.
9
+ * Describes the "Project View" concept within Nextspace.
10
10
  * A project view is a collection of settings for a visualization application we support.
11
11
  * It will describe what panels to show and how, it will also describe all possible ways data can be displayed.
12
12
  */
13
13
  export declare namespace ProjectView {
14
+ /**
15
+ * Returns cache identifier for a project view.
16
+ * Example: {
17
+ * const api: BruceApi.Api = ...;
18
+ * const key = GetCacheKey("abc");
19
+ * api.Cache.Remove(key);
20
+ * }
21
+ * @param viewId
22
+ * @returns
23
+ */
14
24
  function GetCacheKey(viewId: string): string;
25
+ /**
26
+ * Returns cache identifier for a list of project views.
27
+ * Example: {
28
+ * const api: BruceApi.Api = ...;
29
+ * const key = GetListCacheKey();
30
+ * api.Cache.Remove(key);
31
+ * }
32
+ * @returns
33
+ */
15
34
  function GetListCacheKey(): string;
16
35
  const DEFAULT_DATA_VERSION = 2;
36
+ /**
37
+ * Describes a project view record.
38
+ */
17
39
  interface IView {
18
40
  ID?: string;
19
41
  Name: string;
20
42
  Description?: string;
21
- Feature?: string[];
22
43
  "CreatedByUser.ID"?: string;
23
44
  CreatedTime?: UTC.IUTC;
24
45
  DefaultUISlideID?: string;
@@ -27,6 +48,7 @@ export declare namespace ProjectView {
27
48
  SupportEmail?: string;
28
49
  Settings?: ISettings;
29
50
  IsDefault?: boolean;
51
+ Feature?: string[];
30
52
  }
31
53
  /**
32
54
  * These are the base settings expected in any project view data-version.
@@ -49,9 +71,15 @@ export declare namespace ProjectView {
49
71
  selectionColor?: string;
50
72
  present?: IPresent;
51
73
  }
74
+ /**
75
+ * Per project view branding to compliment the account branding.
76
+ */
52
77
  interface IBranding {
53
78
  bannerFileId?: string;
54
79
  }
80
+ /**
81
+ * Presentation mode settings.
82
+ */
55
83
  interface IPresent {
56
84
  bookmarkDuration?: number;
57
85
  }
@@ -63,9 +91,17 @@ export declare namespace ProjectView {
63
91
  description?: string;
64
92
  icon?: string;
65
93
  }
94
+ /**
95
+ * Describes the plugins enabled for a project view.
96
+ */
66
97
  interface IPlugins {
67
98
  enabledIds: string[];
68
99
  }
100
+ /**
101
+ * Gets a project view record.
102
+ * @param params
103
+ * @returns
104
+ */
69
105
  function Get(params: {
70
106
  api?: BruceApi.Api;
71
107
  viewId: string;
@@ -73,17 +109,31 @@ export declare namespace ProjectView {
73
109
  }): Promise<{
74
110
  view: IView;
75
111
  }>;
112
+ /**
113
+ * Gets a list of project views.
114
+ * @param params
115
+ * @returns
116
+ */
76
117
  function GetList(params: {
77
118
  api?: BruceApi.Api;
78
119
  req?: Api.IReqParams;
79
120
  }): Promise<{
80
121
  views: IView[];
81
122
  }>;
123
+ /**
124
+ * Deletes a project view.
125
+ * @param params
126
+ */
82
127
  function Delete(params: {
83
128
  api?: BruceApi.Api;
84
129
  viewId: string;
85
130
  req?: Api.IReqParams;
86
131
  }): Promise<void>;
132
+ /**
133
+ * Creates or updates a project view.
134
+ * @param params
135
+ * @returns
136
+ */
87
137
  function Update(params: {
88
138
  api?: BruceApi.Api;
89
139
  view: IView;
@@ -4,12 +4,19 @@ import { Style } from "../bruce-models";
4
4
  * between a min-max distance of an entity to the camera.
5
5
  */
6
6
  export declare namespace ZoomControl {
7
+ /**
8
+ * Available display types for a menu item.
9
+ */
7
10
  enum EDisplayType {
8
11
  Hidden = "hidden",
9
12
  Point = "point",
10
13
  Geometry = "geometry",
11
14
  Model3D = "3d"
12
15
  }
16
+ /**
17
+ * Describes a menu item's zoom control row.
18
+ * Typically there is an array of these for a menu item.
19
+ */
13
20
  interface IItem {
14
21
  MinZoom?: number;
15
22
  MaxZoom?: number;
@@ -6,6 +6,9 @@ import { GuardianApi } from "../api/guardian-api";
6
6
  * A hosting location will have one or many database servers as well, this is an additional setting.
7
7
  */
8
8
  export declare namespace HostingLocation {
9
+ /**
10
+ * Describes a hosting location record.
11
+ */
9
12
  interface ILocation {
10
13
  ID: number;
11
14
  Key: string;
@@ -21,6 +24,7 @@ export declare namespace HostingLocation {
21
24
  Settings?: any;
22
25
  }
23
26
  /**
27
+ * Returns a list of hosting locations.
24
28
  * @Warning: This will not return the Settings property.
25
29
  * @param params
26
30
  * @returns
@@ -31,6 +35,11 @@ export declare namespace HostingLocation {
31
35
  }): Promise<{
32
36
  locations: ILocation[];
33
37
  }>;
38
+ /**
39
+ * Returns a hosting location record by ID.
40
+ * @param params
41
+ * @returns
42
+ */
34
43
  function GetById(params: {
35
44
  id: number;
36
45
  api?: GuardianApi.Api;
@@ -38,6 +47,11 @@ export declare namespace HostingLocation {
38
47
  }): Promise<{
39
48
  location: ILocation;
40
49
  }>;
50
+ /**
51
+ * Returns a hosting location record by key.
52
+ * @param params
53
+ * @returns
54
+ */
41
55
  function GetByKey(params: {
42
56
  key: string;
43
57
  api?: GuardianApi.Api;
@@ -54,6 +68,11 @@ export declare namespace HostingLocation {
54
68
  function GuessKey(params: {
55
69
  DBServer?: string;
56
70
  }): "HYPERFARM" | "AU-VULTR-FIRST" | "US-VULTR-FIRST" | "EU-VULTR-FIRST" | "SE-VULTR-FIRST" | "DEV-FIRST" | "SE" | "US" | "EU" | "AU" | "DEV";
71
+ /**
72
+ * Returns a hosting location key by account ID.
73
+ * @param params
74
+ * @returns
75
+ */
57
76
  function GetKeyByAccountId(params: {
58
77
  accountId?: string;
59
78
  apiSettings?: AccountSettings.IBruceApi;
@@ -63,6 +82,11 @@ export declare namespace HostingLocation {
63
82
  key: string;
64
83
  isLegacy?: boolean;
65
84
  }>;
85
+ /**
86
+ * Returns a hosting location record by account ID.
87
+ * @param params
88
+ * @returns
89
+ */
66
90
  function GetByAccountId(params: {
67
91
  accountId?: string;
68
92
  apiSettings?: AccountSettings.IBruceApi;
@@ -1,4 +1,7 @@
1
1
  import { Api } from "../api/api";
2
+ /**
3
+ * TODO: rewrite.
4
+ */
2
5
  export declare namespace MessageBroker {
3
6
  enum EAction {
4
7
  SUBSCRIBE = "subscribe",