bruce-models 0.1.5 → 0.1.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 (175) hide show
  1. package/dist/bruce-models.es5.js +479 -67
  2. package/dist/bruce-models.es5.js.map +1 -1
  3. package/dist/bruce-models.umd.js +331 -65
  4. package/dist/bruce-models.umd.js.map +1 -1
  5. package/dist/lib/ann-document/ann-document.js +4 -0
  6. package/dist/lib/ann-document/ann-document.js.map +1 -1
  7. package/dist/lib/api/abstract-api.js +3 -0
  8. package/dist/lib/api/abstract-api.js.map +1 -1
  9. package/dist/lib/api/api.js +25 -7
  10. package/dist/lib/api/api.js.map +1 -1
  11. package/dist/lib/api/bruce-api.js +10 -0
  12. package/dist/lib/api/bruce-api.js.map +1 -1
  13. package/dist/lib/api/cam-api.js +10 -0
  14. package/dist/lib/api/cam-api.js.map +1 -1
  15. package/dist/lib/api/global-api.js +10 -0
  16. package/dist/lib/api/global-api.js.map +1 -1
  17. package/dist/lib/api/idm-api.js +10 -0
  18. package/dist/lib/api/idm-api.js.map +1 -1
  19. package/dist/lib/bruce-models.js +1 -0
  20. package/dist/lib/bruce-models.js.map +1 -1
  21. package/dist/lib/calculator/calculator.js +12 -0
  22. package/dist/lib/calculator/calculator.js.map +1 -1
  23. package/dist/lib/common/bruce-event.js +4 -0
  24. package/dist/lib/common/bruce-event.js.map +1 -1
  25. package/dist/lib/common/bruce-variable.js +13 -0
  26. package/dist/lib/common/bruce-variable.js.map +1 -1
  27. package/dist/lib/common/cache.js +3 -0
  28. package/dist/lib/common/cache.js.map +1 -1
  29. package/dist/lib/common/cartes.js +6 -0
  30. package/dist/lib/common/cartes.js.map +1 -1
  31. package/dist/lib/common/carto.js +5 -0
  32. package/dist/lib/common/carto.js.map +1 -1
  33. package/dist/lib/common/color.js +5 -0
  34. package/dist/lib/common/color.js.map +1 -1
  35. package/dist/lib/common/delay-queue.js +4 -0
  36. package/dist/lib/common/delay-queue.js.map +1 -1
  37. package/dist/lib/common/geometry.js +21 -0
  38. package/dist/lib/common/geometry.js.map +1 -1
  39. package/dist/lib/common/utc.js +3 -0
  40. package/dist/lib/common/utc.js.map +1 -1
  41. package/dist/lib/custom-form/custom-form.js +137 -0
  42. package/dist/lib/custom-form/custom-form.js.map +1 -0
  43. package/dist/lib/entity/entity-attachment-type.js +4 -3
  44. package/dist/lib/entity/entity-attachment-type.js.map +1 -1
  45. package/dist/lib/entity/entity-attachment.js +5 -0
  46. package/dist/lib/entity/entity-attachment.js.map +1 -1
  47. package/dist/lib/entity/entity-comment.js +4 -0
  48. package/dist/lib/entity/entity-comment.js.map +1 -1
  49. package/dist/lib/entity/entity-link.js +4 -0
  50. package/dist/lib/entity/entity-link.js.map +1 -1
  51. package/dist/lib/entity/entity-lod.js +6 -0
  52. package/dist/lib/entity/entity-lod.js.map +1 -1
  53. package/dist/lib/entity/entity-relation-type.js +4 -0
  54. package/dist/lib/entity/entity-relation-type.js.map +1 -1
  55. package/dist/lib/entity/entity-relation.js +5 -0
  56. package/dist/lib/entity/entity-relation.js.map +1 -1
  57. package/dist/lib/entity/entity-source.js +5 -0
  58. package/dist/lib/entity/entity-source.js.map +1 -1
  59. package/dist/lib/entity/entity-tag.js +5 -0
  60. package/dist/lib/entity/entity-tag.js.map +1 -1
  61. package/dist/lib/entity/entity-type.js +5 -0
  62. package/dist/lib/entity/entity-type.js.map +1 -1
  63. package/dist/lib/entity/entity.js +22 -0
  64. package/dist/lib/entity/entity.js.map +1 -1
  65. package/dist/lib/entity/getters/batched-data-getter.js +4 -0
  66. package/dist/lib/entity/getters/batched-data-getter.js.map +1 -1
  67. package/dist/lib/entity/getters/entity-filter-getter.js +5 -0
  68. package/dist/lib/entity/getters/entity-filter-getter.js.map +1 -1
  69. package/dist/lib/entity/getters/entity-globe.js +5 -0
  70. package/dist/lib/entity/getters/entity-globe.js.map +1 -1
  71. package/dist/lib/file/client-file.js +4 -0
  72. package/dist/lib/file/client-file.js.map +1 -1
  73. package/dist/lib/markup/markup.js +3 -0
  74. package/dist/lib/markup/markup.js.map +1 -1
  75. package/dist/lib/program-key/program-key.js +4 -0
  76. package/dist/lib/program-key/program-key.js.map +1 -1
  77. package/dist/lib/project/menu-item.js +5 -0
  78. package/dist/lib/project/menu-item.js.map +1 -1
  79. package/dist/lib/project/project-view-bookmark.js +6 -0
  80. package/dist/lib/project/project-view-bookmark.js.map +1 -1
  81. package/dist/lib/project/project-view-tile-source.js +5 -0
  82. package/dist/lib/project/project-view-tile-source.js.map +1 -1
  83. package/dist/lib/project/project-view.js +5 -0
  84. package/dist/lib/project/project-view.js.map +1 -1
  85. package/dist/lib/project/zoom-control.js +4 -0
  86. package/dist/lib/project/zoom-control.js.map +1 -1
  87. package/dist/lib/server/pending-action.js +5 -0
  88. package/dist/lib/server/pending-action.js.map +1 -1
  89. package/dist/lib/style/style.js +7 -0
  90. package/dist/lib/style/style.js.map +1 -1
  91. package/dist/lib/tileset/tileset-entities-map-tiles.js +5 -0
  92. package/dist/lib/tileset/tileset-entities-map-tiles.js.map +1 -1
  93. package/dist/lib/tileset/tileset-ext-map-tiles.js +4 -0
  94. package/dist/lib/tileset/tileset-ext-map-tiles.js.map +1 -1
  95. package/dist/lib/tileset/tileset.js +10 -0
  96. package/dist/lib/tileset/tileset.js.map +1 -1
  97. package/dist/lib/ucs/ucs.js +5 -0
  98. package/dist/lib/ucs/ucs.js.map +1 -1
  99. package/dist/lib/user/session.js +5 -0
  100. package/dist/lib/user/session.js.map +1 -1
  101. package/dist/lib/user/user-group.js +4 -0
  102. package/dist/lib/user/user-group.js.map +1 -1
  103. package/dist/lib/user/user.js +7 -0
  104. package/dist/lib/user/user.js.map +1 -1
  105. package/dist/lib/util/math-utils.js +12 -0
  106. package/dist/lib/util/math-utils.js.map +1 -1
  107. package/dist/lib/util/object-utils.js +4 -0
  108. package/dist/lib/util/object-utils.js.map +1 -1
  109. package/dist/lib/util/path-utils.js +3 -0
  110. package/dist/lib/util/path-utils.js.map +1 -1
  111. package/dist/lib/util/url-utils.js +6 -0
  112. package/dist/lib/util/url-utils.js.map +1 -1
  113. package/dist/types/ann-document/ann-document.d.ts +4 -0
  114. package/dist/types/api/abstract-api.d.ts +3 -0
  115. package/dist/types/api/api.d.ts +26 -8
  116. package/dist/types/api/bruce-api.d.ts +5 -0
  117. package/dist/types/api/cam-api.d.ts +5 -0
  118. package/dist/types/api/global-api.d.ts +5 -0
  119. package/dist/types/api/idm-api.d.ts +5 -0
  120. package/dist/types/bruce-models.d.ts +1 -0
  121. package/dist/types/calculator/calculator.d.ts +12 -0
  122. package/dist/types/common/bounds.d.ts +6 -0
  123. package/dist/types/common/bruce-event.d.ts +4 -0
  124. package/dist/types/common/bruce-variable.d.ts +13 -0
  125. package/dist/types/common/cache.d.ts +3 -0
  126. package/dist/types/common/cartes.d.ts +6 -0
  127. package/dist/types/common/carto.d.ts +5 -0
  128. package/dist/types/common/color.d.ts +5 -0
  129. package/dist/types/common/delay-queue.d.ts +4 -0
  130. package/dist/types/common/geometry.d.ts +21 -0
  131. package/dist/types/common/transform.d.ts +4 -0
  132. package/dist/types/common/utc.d.ts +3 -0
  133. package/dist/types/custom-form/custom-form.d.ts +25 -0
  134. package/dist/types/entity/entity-attachment-type.d.ts +5 -4
  135. package/dist/types/entity/entity-attachment.d.ts +5 -0
  136. package/dist/types/entity/entity-comment.d.ts +4 -0
  137. package/dist/types/entity/entity-link.d.ts +4 -0
  138. package/dist/types/entity/entity-lod.d.ts +6 -0
  139. package/dist/types/entity/entity-relation-type.d.ts +4 -0
  140. package/dist/types/entity/entity-relation.d.ts +5 -0
  141. package/dist/types/entity/entity-source.d.ts +5 -0
  142. package/dist/types/entity/entity-tag.d.ts +5 -0
  143. package/dist/types/entity/entity-type.d.ts +5 -0
  144. package/dist/types/entity/entity.d.ts +8 -1
  145. package/dist/types/entity/getters/batched-data-getter.d.ts +4 -0
  146. package/dist/types/entity/getters/entity-filter-getter.d.ts +5 -0
  147. package/dist/types/entity/getters/entity-globe.d.ts +5 -0
  148. package/dist/types/file/client-file.d.ts +4 -0
  149. package/dist/types/markup/markup.d.ts +3 -0
  150. package/dist/types/program-key/program-key.d.ts +4 -0
  151. package/dist/types/project/menu-item.d.ts +5 -0
  152. package/dist/types/project/project-view-bookmark.d.ts +6 -0
  153. package/dist/types/project/project-view-tile-source.d.ts +5 -0
  154. package/dist/types/project/project-view.d.ts +5 -0
  155. package/dist/types/project/zoom-control.d.ts +4 -0
  156. package/dist/types/server/pending-action.d.ts +5 -0
  157. package/dist/types/style/style.d.ts +7 -0
  158. package/dist/types/tileset/tileset-cad.d.ts +4 -0
  159. package/dist/types/tileset/tileset-entities-map-tiles.d.ts +5 -0
  160. package/dist/types/tileset/tileset-entities.d.ts +4 -0
  161. package/dist/types/tileset/tileset-ext-map-tiles.d.ts +4 -0
  162. package/dist/types/tileset/tileset-ext-terrain-tiles.d.ts +4 -0
  163. package/dist/types/tileset/tileset-map-tiles.d.ts +4 -0
  164. package/dist/types/tileset/tileset-pointcloud.d.ts +4 -0
  165. package/dist/types/tileset/tileset-terrain-tiles.d.ts +4 -0
  166. package/dist/types/tileset/tileset.d.ts +10 -0
  167. package/dist/types/ucs/ucs.d.ts +5 -0
  168. package/dist/types/user/session.d.ts +5 -0
  169. package/dist/types/user/user-group.d.ts +4 -0
  170. package/dist/types/user/user.d.ts +7 -0
  171. package/dist/types/util/math-utils.d.ts +12 -0
  172. package/dist/types/util/object-utils.d.ts +4 -0
  173. package/dist/types/util/path-utils.d.ts +3 -0
  174. package/dist/types/util/url-utils.d.ts +6 -0
  175. package/package.json +1 -1
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UrlUtils = void 0;
4
+ /**
5
+ * Utility to help with url manipulation.
6
+ */
4
7
  var UrlUtils;
5
8
  (function (UrlUtils) {
6
9
  function GetQueryString(doc) {
@@ -19,6 +22,9 @@ var UrlUtils;
19
22
  return qs;
20
23
  }
21
24
  UrlUtils.GetQueryString = GetQueryString;
25
+ /**
26
+ * Helper to get and set url params for a given window.
27
+ */
22
28
  var Handler = /** @class */ (function () {
23
29
  function Handler(window, allowedKeys) {
24
30
  this._allowedKeys = null;
@@ -1 +1 @@
1
- {"version":3,"file":"url-utils.js","sourceRoot":"","sources":["../../../src/util/url-utils.ts"],"names":[],"mappings":";;;AAEA,IAAiB,QAAQ,CA2FxB;AA3FD,WAAiB,QAAQ;IACrB,SAAgB,cAAc,CAAC,GAAa;QACxC,IAAM,EAAE,GAAQ,EAAE,CAAC;QACnB,IAAM,EAAE,GAAG,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC1C,IAAI,EAAE,IAAI,CAAC,EAAE;YACT,IAAM,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;YAChD,IAAM,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC9B,MAAM,CAAC,OAAO,CAAC,UAAA,KAAK;gBAChB,IAAM,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAC3B,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,EAAE;oBACf,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;iBACnB;YACL,CAAC,CAAC,CAAC;SACN;QACD,OAAO,EAAE,CAAC;IACd,CAAC;IAde,uBAAc,iBAc7B,CAAA;IAED;QAaI,iBAAmB,MAAc,EAAE,WAAsB;YALjD,iBAAY,GAAkB,IAAI,CAAC;YAMvC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;YACtB,IAAI,CAAC,YAAY,GAAa,WAAW,CAAC;QAC9C,CAAC;QAdD,sBAAW,2BAAM;iBAAjB;gBACI,OAAO,IAAI,CAAC,OAAO,CAAC;YACxB,CAAC;;;WAAA;QAC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AG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAClC,IAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;gBACpB,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;oBAC9D,IAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;oBACtB,IAAI,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,EAAE;wBACnB,MAAM,CAAC,IAAI,CAAI,GAAG,SAAI,GAAK,CAAC,CAAC;qBAChC;iBACJ;aACJ;YACD,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;gBACnB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,EAAO,IAAI,EAAE,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;aAC3E;iBACI;gBACD,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,EAAO,IAAI,EAAE,EAAE,CAAC,CAAC;aACvD;QACL,CAAC;QACL,cAAC;IAAD,CAAC,AAzED,IAyEC;IAzEY,gBAAO,UAyEnB,CAAA;AACL,CAAC,EA9FgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QA8FxB"}
@@ -1,5 +1,9 @@
1
1
  import { BruceApi } from "../bruce-models";
2
2
  declare type Type = AnnDocument.EType | string;
3
+ /**
4
+ * Describes communication with the "Annotated Document" concept in Bruce.
5
+ * Annotated documents are files with hotspots that can link to Entity records.
6
+ */
3
7
  export declare namespace AnnDocument {
4
8
  function GetCacheKey(id: number): string;
5
9
  function GetListCacheKey(type: Type): string;
@@ -1,5 +1,8 @@
1
1
  import { CacheControl } from "../common/cache";
2
2
  import { Api } from "./api";
3
+ /**
4
+ * This is a base class for communication with an arbitrary Bruce Api.
5
+ */
3
6
  export declare class AbstractApi {
4
7
  private ssidHeader;
5
8
  private ssid;
@@ -1,4 +1,7 @@
1
1
  import { IDictionary } from "../common/dictionary";
2
+ /**
3
+ * Contains generic descriptions used for Bruce requests.
4
+ */
2
5
  export declare namespace Api {
3
6
  enum ECacheKey {
4
7
  Id = ":",
@@ -27,11 +30,28 @@ export declare namespace Api {
27
30
  User = "user",
28
31
  AccessToken = "accesstoken",
29
32
  UserGroup = "usergroup",
30
- Account = "account"
33
+ Account = "account",
34
+ CustomForm = "customform"
31
35
  }
32
36
  const DEFAULT_CACHE_DURATION: number;
33
37
  const TEMPLATE_ACCOUNT_ID = "template";
34
38
  const ACCESS_TOKEN_HEADER = "X-Access-Token";
39
+ /**
40
+ * Possible environments we host Bruce apps on.
41
+ * When these are matched, they should be case-insensitive.
42
+ */
43
+ enum EEnv {
44
+ DEV = "DEV",
45
+ STG = "STG",
46
+ UAT = "UAT",
47
+ PROD = "PROD"
48
+ }
49
+ type Env = EEnv | string;
50
+ /**
51
+ * Prepares a string to be included in a url.
52
+ * @param str
53
+ * @returns
54
+ */
35
55
  function Encode(str: string): string;
36
56
  interface IList<T> {
37
57
  Items: T[];
@@ -46,19 +66,17 @@ export declare namespace Api {
46
66
  UTF8 = "UTF-8",
47
67
  UTF16 = "UTF-16BE"
48
68
  }
49
- enum EEnv {
50
- DEV = "DEV",
51
- STG = "STG",
52
- UAT = "UAT",
53
- PROD = "PROD"
54
- }
55
- type Env = EEnv | string;
56
69
  interface IReqParams {
57
70
  headers?: IDictionary<string>;
58
71
  response?: {
59
72
  encoding?: EEncoding | string;
60
73
  };
61
74
  }
75
+ /**
76
+ * Prepares default settings for a request to Bruce Api.
77
+ * Our requests WRONGLY have utf-16 for 95% of them. Please be wary of that.
78
+ * @returns
79
+ */
62
80
  function PrepReqParams(): IReqParams;
63
81
  interface IUploadReqParams extends IReqParams {
64
82
  onProgress?: (e: ProgressEvent) => void;
@@ -1,5 +1,9 @@
1
1
  import { AbstractApi } from "./abstract-api";
2
2
  import { Api } from "./api";
3
+ /**
4
+ * This is the request handler for Bruce Api,
5
+ * it should be passed to any method that wants to communicate with this particular api.
6
+ */
3
7
  export declare class BruceApi extends AbstractApi {
4
8
  private baseUrl;
5
9
  private accountId;
@@ -7,6 +11,7 @@ export declare class BruceApi extends AbstractApi {
7
11
  constructor(accountId: string, env?: Api.Env);
8
12
  private setBaseUrl;
9
13
  GetBaseUrl(): string;
14
+ SetBaseUrl(url: string): void;
10
15
  GET(url: string, params?: Api.IReqParams): Promise<any>;
11
16
  DELETE(url: string, params?: Api.IReqParams): Promise<any>;
12
17
  POST(url: string, data: any, params?: Api.IReqParams): Promise<any>;
@@ -1,11 +1,16 @@
1
1
  import { AbstractApi } from "./abstract-api";
2
2
  import { Api } from "./api";
3
+ /**
4
+ * This is the request handler for Cam Api,
5
+ * it should be passed to any method that wants to communicate with this particular api.
6
+ */
3
7
  export declare class CamApi extends AbstractApi {
4
8
  private baseUrl;
5
9
  private env;
6
10
  constructor(env?: Api.Env);
7
11
  private setBaseUrl;
8
12
  GetBaseUrl(): string;
13
+ SetBaseUrl(url: string): void;
9
14
  GET(url: string, params?: Api.IReqParams): Promise<any>;
10
15
  DELETE(url: string, params?: Api.IReqParams): Promise<any>;
11
16
  POST(url: string, data: any, params?: Api.IReqParams): Promise<any>;
@@ -1,11 +1,16 @@
1
1
  import { AbstractApi } from "./abstract-api";
2
2
  import { Api } from "./api";
3
+ /**
4
+ * This is the request handler for Global Api,
5
+ * it should be passed to any method that wants to communicate with this particular api.
6
+ */
3
7
  export declare class GlobalApi extends AbstractApi {
4
8
  private baseUrl;
5
9
  private env;
6
10
  constructor(env?: Api.Env);
7
11
  private setBaseUrl;
8
12
  GetBaseUrl(): string;
13
+ SetBaseUrl(url: string): void;
9
14
  GET(url: string, params?: Api.IReqParams): Promise<any>;
10
15
  DELETE(url: string, params?: Api.IReqParams): Promise<any>;
11
16
  POST(url: string, data: any, params?: Api.IReqParams): Promise<any>;
@@ -1,11 +1,16 @@
1
1
  import { AbstractApi } from "./abstract-api";
2
2
  import { Api } from "./api";
3
+ /**
4
+ * This is the request handler for Idm Api,
5
+ * it should be passed to any method that wants to communicate with this particular api.
6
+ */
3
7
  export declare class IdmApi extends AbstractApi {
4
8
  private baseUrl;
5
9
  private env;
6
10
  constructor(env?: Api.Env);
7
11
  private setBaseUrl;
8
12
  GetBaseUrl(): string;
13
+ SetBaseUrl(url: string): void;
9
14
  GET(url: string, params?: Api.IReqParams): Promise<any>;
10
15
  DELETE(url: string, params?: Api.IReqParams): Promise<any>;
11
16
  POST(url: string, data: any, params?: Api.IReqParams): Promise<any>;
@@ -1,4 +1,5 @@
1
1
  export * from "./ann-document/ann-document";
2
+ export * from "./custom-form/custom-form";
2
3
  export * from "./api/abstract-api";
3
4
  export * from "./api/api";
4
5
  export * from "./api/bruce-api";
@@ -1,5 +1,9 @@
1
1
  import { Color } from "../common/color";
2
2
  import { Entity } from "../entity/entity";
3
+ /**
4
+ * Utility for calculating values from Bruce fields.
5
+ * These fields are typically found in entity styles.
6
+ */
3
7
  export declare namespace Calculator {
4
8
  enum EValueType {
5
9
  Color = 0,
@@ -31,6 +35,14 @@ export declare namespace Calculator {
31
35
  value: IGradientValue | IMappingValue | string | number;
32
36
  type: EValueType;
33
37
  }
38
+ /**
39
+ * Calculates the value of arbitrary field options.
40
+ * The context calling this should validate results and parse stuff if needed.
41
+ * @param fields
42
+ * @param entity
43
+ * @param tags
44
+ * @returns
45
+ */
34
46
  function GetValue(fields: IField[], entity: Entity.IEntity, tags: any[]): string | number | Color.IColor;
35
47
  function GetMappingValue(value: IMappingValue, entity: Entity.IEntity): string | number;
36
48
  function GetGradientValue(value: IGradientValue, entity: Entity.IEntity): Color.IColor;
@@ -1,4 +1,7 @@
1
1
  export declare namespace Bounds {
2
+ /**
3
+ * Description of an entity's bounding box.
4
+ */
2
5
  interface IBounds {
3
6
  maxLatitude: number;
4
7
  maxLongitude: number;
@@ -7,6 +10,9 @@ export declare namespace Bounds {
7
10
  maxAltitude: number;
8
11
  minAltitude: number;
9
12
  }
13
+ /**
14
+ * Describes the boundaries used in entity requests.
15
+ */
10
16
  interface IReqBounds {
11
17
  south: number;
12
18
  west: number;
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Simple event utility.
3
+ * Instantiate the model, then subscribe and trigger events.
4
+ */
1
5
  export declare class BruceEvent<TArgs> {
2
6
  private _counter;
3
7
  private callbacks;
@@ -1,4 +1,17 @@
1
1
  import { Entity } from "../entity/entity";
2
+ /**
3
+ * Utilities for parsing "Bruce variables", typically within strings.
4
+ *
5
+ * A Bruce variable is a string that starts with "${" and ends with "}".
6
+ * Within those brackets is a path to an attribute in an entity.
7
+ */
2
8
  export declare namespace BruceVariable {
9
+ /**
10
+ * Replaces all Bruce variables in a string with the value of the attribute.
11
+ * @param str
12
+ * @param data
13
+ * @param legacyParse
14
+ * @returns
15
+ */
3
16
  function SwapValues(str: string, data: Entity.IEntity, legacyParse?: boolean): string;
4
17
  }
@@ -1,4 +1,7 @@
1
1
  declare type Key = string | number;
2
+ /**
3
+ * Simple local cache controller.
4
+ */
2
5
  export declare class CacheControl<T> {
3
6
  private data;
4
7
  Disabled: boolean;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Describes 2d and 3d coordinates.
3
+ *
4
+ * In 2d the x/y typically refers to a window left/top offset.
5
+ * In 3d the x/y/z, the units are in meters.
6
+ */
1
7
  export declare namespace Cartes {
2
8
  interface ICartes2 {
3
9
  x: number;
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Describes a geographic point.
3
+ * The units of the stored data should be in Degrees.
4
+ * Utilities may use this in Radians for temporary calculations.
5
+ */
1
6
  export declare namespace Carto {
2
7
  interface ICarto {
3
8
  latitude: number;
@@ -15,5 +15,10 @@ export declare namespace Color {
15
15
  blendPercent?: number;
16
16
  }
17
17
  function RandomColor(): IColor;
18
+ /**
19
+ * Attempts to parse a given color string into a model.
20
+ * @param str
21
+ * @returns
22
+ */
18
23
  function ColorFromStr(str: string): IColor;
19
24
  }
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Controls the flow of method calls.
3
+ * If you have a method that may be called often, but you don't want it to run often, use this.
4
+ */
1
5
  export declare class DelayQueue {
2
6
  private callback;
3
7
  delay: number;
@@ -1,4 +1,7 @@
1
1
  import { Carto } from "./carto";
2
+ /**
3
+ * Describes vector geometry that Bruce uses.
4
+ */
2
5
  export declare namespace Geometry {
3
6
  interface IGeometry {
4
7
  Polygon?: IPolygonRing[];
@@ -16,8 +19,26 @@ export declare namespace Geometry {
16
19
  Boundaries = "out",
17
20
  Hole = "in"
18
21
  }
22
+ /**
23
+ * Turns an array of points into string vector geometry that Bruce can use.
24
+ * This is used for saving polyline and polygon data.
25
+ * @param points
26
+ * @returns
27
+ */
19
28
  function LineStrFromPoints(points: Carto.ICarto[]): string;
29
+ /**
30
+ * Removes same points that occur in a row.
31
+ * This will not modify the original array.
32
+ * @param positions
33
+ * @returns
34
+ */
20
35
  function RemoveRepeatPoints(positions: Carto.ICarto[]): Carto.ICarto[];
21
36
  function ParsePoints(data: string): Carto.ICarto[];
37
+ /**
38
+ * Parses both string and object Bruce geometry.
39
+ * String geometry is legacy Bruce data.
40
+ * @param geometry
41
+ * @returns
42
+ */
22
43
  function ParseGeometry(geometry: any): IGeometry;
23
44
  }
@@ -1,4 +1,8 @@
1
1
  export declare namespace Transform {
2
+ /**
3
+ * Stored in degrees typically.
4
+ * Will be stored in radians when in bookmarks/project-views annoyingly.
5
+ */
2
6
  interface ITransform {
3
7
  heading: number;
4
8
  pitch: number;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Describes a Bruce stored date.
3
+ */
1
4
  export declare namespace UTC {
2
5
  enum EMonth {
3
6
  January = 1,
@@ -0,0 +1,25 @@
1
+ import { BruceApi } from "../api/bruce-api";
2
+ import { Markup } from "../markup/markup";
3
+ /**
4
+ * Describes the "Custom Form" concept within Bruce.
5
+ * Custom forms are dynamic dialogs that get populated with Entity data.
6
+ */
7
+ export declare namespace CustomForm {
8
+ function GetCacheKey(id: number): string;
9
+ function GetListCacheKey(typeId: string): string;
10
+ interface IForm {
11
+ ID?: number;
12
+ "EntityType.ID"?: string;
13
+ Name?: string;
14
+ Settings?: any | Markup.IMarkup;
15
+ Type?: EType;
16
+ }
17
+ enum EType {
18
+ Form = "GENERIC",
19
+ Markup = "MARKUP"
20
+ }
21
+ function Get(api: BruceApi, id: number): Promise<IForm>;
22
+ function Delete(api: BruceApi, id: number): Promise<void>;
23
+ function GetList(api: BruceApi, typeId: string): Promise<IForm[]>;
24
+ function Update(api: BruceApi, data: IForm): Promise<IForm>;
25
+ }
@@ -1,5 +1,9 @@
1
1
  import { BruceApi } from "../api/bruce-api";
2
2
  declare type Type = EntityAttachmentType.EType | string;
3
+ /**
4
+ * Describes the "Entity Attachment Type" concept within Bruce.
5
+ * It is a record that describes the purpose of an attachment.
6
+ */
3
7
  export declare namespace EntityAttachmentType {
4
8
  function GetCacheKey(id: Type): string;
5
9
  function GetListCacheKey(): string;
@@ -10,10 +14,7 @@ export declare namespace EntityAttachmentType {
10
14
  }
11
15
  enum EType {
12
16
  Photo = "photo",
13
- Document = "document",
14
- Video = "video",
15
- Drawing = "drawing",
16
- Model = "model"
17
+ Document = "document"
17
18
  }
18
19
  function Delete(api: BruceApi, id: Type): Promise<void>;
19
20
  function Update(api: BruceApi, data: IType): Promise<IType>;
@@ -2,6 +2,11 @@ import { BruceApi } from "../bruce-models";
2
2
  import { ClientFile } from "../file/client-file";
3
3
  import { EntityAttachmentType } from "./entity-attachment-type";
4
4
  declare type Type = EntityAttachmentType.EType | string;
5
+ /**
6
+ * Describes the "Entity Attachment" concept within Bruce.
7
+ * An entity attachment is an arbitrary file record that is linked to an entity record.
8
+ * The same file can be attached to multiple entities.
9
+ */
5
10
  export declare namespace EntityAttachment {
6
11
  function GetCacheKey(entityId: string, typeId: Type, fileId: string): string;
7
12
  function GetListCacheKey(entityId: string): string;
@@ -1,4 +1,8 @@
1
1
  import { BruceApi, UTC } from "../bruce-models";
2
+ /**
3
+ * Describes the "Entity Comment" concept within Bruce.
4
+ * An entity comment is a user written message that is linked to an entity record.
5
+ */
2
6
  export declare namespace EntityComment {
3
7
  function GetCacheKey(id: number): string;
4
8
  function GetListCacheKey(entityId: string): string;
@@ -1,4 +1,8 @@
1
1
  import { BruceApi } from "../bruce-models";
2
+ /**
3
+ * Describes the "Entity Link" concept within Bruce.
4
+ * An entity link is a URL linked to an entity record.
5
+ */
2
6
  export declare namespace EntityLink {
3
7
  function GetCacheKey(id: number): string;
4
8
  function GetListCacheKey(entityId: string): string;
@@ -1,4 +1,10 @@
1
1
  import { BruceApi } from "../bruce-models";
2
+ /**
3
+ * Describes the "Entity LOD" concept within Bruce.
4
+ * LOD stands for Level of Detail.
5
+ * An lod record is a possible 2d/3d visualization of the entity record.
6
+ * The most common kind is a GLB.
7
+ */
2
8
  export declare namespace EntityLod {
3
9
  function GetCacheKey(url: string): string;
4
10
  interface ILod {
@@ -1,4 +1,8 @@
1
1
  import { BruceApi } from "../api/bruce-api";
2
+ /**
3
+ * Describes the "Entity Relationship Type" concept within Bruce.
4
+ * A relationship type record describes the purpose of a relationship.
5
+ */
2
6
  export declare namespace EntityRelationType {
3
7
  function GetCacheKey(id: string): string;
4
8
  function GetListCacheKey(): string;
@@ -1,5 +1,10 @@
1
1
  import { BruceApi } from "../api/bruce-api";
2
2
  import { Entity } from "./entity";
3
+ /**
4
+ * Describes the "Entity Relationship" concept within Bruce.
5
+ * An entity relationship is an arbitrary link between two entity records.
6
+ * The relationship can have a "data entity" linked to it as well for the relationship to store arbitrary data about itself.
7
+ */
3
8
  export declare namespace EntityRelation {
4
9
  function GetCacheKey(entityA: string, entityB: string, typeId: string): string;
5
10
  function GetEntityCacheKey(entityId: string): string;
@@ -1,4 +1,9 @@
1
1
  import { BruceApi, IDictionary } from "../bruce-models";
2
+ /**
3
+ * Describes the "Entity Source" concept within Bruce.
4
+ * An entity source is a record which links an arbitrary source id to a Bruce entity id.
5
+ * For example an OSM building id to a Bruce entity id.
6
+ */
2
7
  export declare namespace EntitySource {
3
8
  function GetCacheKey(sourceId: number, sourceKey: string): string;
4
9
  interface ISource {
@@ -1,4 +1,9 @@
1
1
  import { BruceApi } from "../api/bruce-api";
2
+ /**
3
+ * Describes the "Entity Tag" concept within Bruce.
4
+ * An entity tag is used to categorize an entity record.
5
+ * Entity tags can be used in filters, or to restrict entity access.
6
+ */
2
7
  export declare namespace EntityTag {
3
8
  function GetCacheKey(tagId: number): string;
4
9
  function GetListCacheKey(entityTypeId?: string): string;
@@ -1,5 +1,10 @@
1
1
  import { BruceApi } from "../api/bruce-api";
2
2
  import { UTC } from "../bruce-models";
3
+ /**
4
+ * Describes the "Entity Type" concept within Bruce.
5
+ * An entity type is an "expectation" of what data "should" look like in a particular entity record.
6
+ * The schema is stencils onto entity data to filter out what we should display or search against.
7
+ */
3
8
  export declare namespace EntityType {
4
9
  function GetCacheKey(typeId: string): string;
5
10
  function GetListCacheKey(): string;
@@ -5,8 +5,14 @@ import { Carto } from "../common/carto";
5
5
  import { Geometry } from "../common/geometry";
6
6
  import { Transform } from "../common/transform";
7
7
  import { UTC } from "../common/utc";
8
- import { IDictionary } from "../bruce-models";
8
+ import { EntityType } from "./entity-type";
9
+ import { IDictionary } from "../common/dictionary";
9
10
  declare type _any = any;
11
+ /**
12
+ * Describes the "Entity" concept within Bruce.
13
+ * An entity is a JSON blob containing both internal data and user-defined data.
14
+ * Entity records have many thinks linked to them through their UIDs such as links, files and relationships.
15
+ */
10
16
  export declare namespace Entity {
11
17
  function GetCacheKey(entityId: string): string;
12
18
  interface IEntity extends _any {
@@ -31,6 +37,7 @@ export declare namespace Entity {
31
37
  function AddTag(data: IEntity, tagId: number): void;
32
38
  function SetValue(data: IEntity, path: string[], value: any): void;
33
39
  function GetValue(data: IEntity, path: string[]): any;
40
+ function CalculateName(entity: IEntity, type: EntityType.IEntityType): string;
34
41
  namespace Filter {
35
42
  namespace V1 {
36
43
  interface IFilter {
@@ -1,5 +1,9 @@
1
1
  import { BruceEvent } from "../../common/bruce-event";
2
2
  import { ViewMonitor } from "./view-monitor";
3
+ /**
4
+ * This is a batched "arbitrary data" getter.
5
+ * You feed it an array of data, then it will emit that data in batches when the view changes.
6
+ */
3
7
  export declare namespace BatchedDataGetter {
4
8
  class Getter<T> {
5
9
  private viewPort;
@@ -3,6 +3,11 @@ import { BruceEvent } from "../../common/bruce-event";
3
3
  import { IDictionary } from "../../common/dictionary";
4
4
  import { Entity } from "../entity";
5
5
  import { ViewMonitor } from "./view-monitor";
6
+ /**
7
+ * This is a batched entity getter.
8
+ * It will scan for entity records in a view-area and emit them in batches.
9
+ * It will restart scanning if the camera moves.
10
+ */
6
11
  export declare namespace EntityFilterGetter {
7
12
  enum EStatus {
8
13
  Scanning = "SCANNING",
@@ -6,6 +6,11 @@ declare class Cell {
6
6
  Boundaries: Bounds.IBounds;
7
7
  GetBounds(): Bounds.IReqBounds;
8
8
  }
9
+ /**
10
+ * This is a helper for making entity requests based on a grid area.
11
+ * It will return grid cells based on given view-area then will remember when stuff-
12
+ * was fully-fetched for those cells to avoid making duplicate requests.
13
+ */
9
14
  export declare namespace EntityGlobe {
10
15
  class Grid {
11
16
  private cells;
@@ -1,5 +1,9 @@
1
1
  import { BruceApi } from "../bruce-models";
2
2
  import { UTC } from "../common/utc";
3
+ /**
4
+ * Describes the "Client File" concept within Bruce.
5
+ * A client file is a record of a file uploaded to Bruce.
6
+ */
3
7
  export declare namespace ClientFile {
4
8
  function GetCacheKey(fileId: string): string;
5
9
  interface IClientFile {
@@ -1,4 +1,7 @@
1
1
  import { Cartes, EntityAttachmentType } from "../bruce-models";
2
+ /**
3
+ * Description of a "Markup" which is stored in custom-form or bookmark records.
4
+ */
2
5
  export declare namespace Markup {
3
6
  interface IMarkup {
4
7
  divs?: Element.Div.IDiv[];
@@ -1,5 +1,9 @@
1
1
  import { BruceApi } from "../api/bruce-api";
2
2
  declare type Id = ProgramKey.EProgramId | string;
3
+ /**
4
+ * Describes the "Program Key" concept within Bruce.
5
+ * A program key is an access token for an arbitrary software.
6
+ */
3
7
  export declare namespace ProgramKey {
4
8
  function GetCacheKey(programId: string): string;
5
9
  function GetListCacheKey(): string;
@@ -1,6 +1,11 @@
1
1
  import { Entity } from "../entity/entity";
2
2
  import { Tileset } from "../tileset/tileset";
3
3
  import { ZoomControl } from "./zoom-control";
4
+ /**
5
+ * Describes a menu item found in project views.
6
+ * Menu items are used to dictate what data to load in a scene.
7
+ * A menu item may be a container for other items.
8
+ */
4
9
  export declare namespace MenuItem {
5
10
  enum EType {
6
11
  None = "NONE",
@@ -2,6 +2,12 @@ import { BruceApi } from "../api/bruce-api";
2
2
  import { Camera } from "../common/camera";
3
3
  import { UTC } from "../common/utc";
4
4
  import { Markup } from "../markup/markup";
5
+ /**
6
+ * Describe the "Project View Bookmark" concept within Bruce.
7
+ * This is referred to as "slides" in older code.
8
+ *
9
+ * A bookmark is a snapshot of what should be displayed and how in a particular project view.
10
+ */
5
11
  export declare namespace ProjectViewBookmark {
6
12
  function GetCacheKey(viewId: string, bookmarkId: string): string;
7
13
  function GetListCacheKey(): string;