bruce-models 0.1.6 → 0.1.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 +759 -17
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +607 -16
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account.js +213 -0
- package/dist/lib/account/account.js.map +1 -0
- package/dist/lib/ann-document/ann-document.js +4 -0
- package/dist/lib/ann-document/ann-document.js.map +1 -1
- package/dist/lib/api/abstract-api.js +3 -0
- package/dist/lib/api/abstract-api.js.map +1 -1
- package/dist/lib/api/api.js +25 -7
- package/dist/lib/api/api.js.map +1 -1
- package/dist/lib/api/bruce-api.js +10 -0
- package/dist/lib/api/bruce-api.js.map +1 -1
- package/dist/lib/api/cam-api.js +10 -0
- package/dist/lib/api/cam-api.js.map +1 -1
- package/dist/lib/api/global-api.js +10 -0
- package/dist/lib/api/global-api.js.map +1 -1
- package/dist/lib/api/idm-api.js +10 -0
- package/dist/lib/api/idm-api.js.map +1 -1
- package/dist/lib/bruce-models.js +2 -0
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/calculator/calculator.js +12 -0
- package/dist/lib/calculator/calculator.js.map +1 -1
- package/dist/lib/common/bruce-event.js +4 -0
- package/dist/lib/common/bruce-event.js.map +1 -1
- package/dist/lib/common/bruce-variable.js +13 -0
- package/dist/lib/common/bruce-variable.js.map +1 -1
- package/dist/lib/common/cache.js +3 -0
- package/dist/lib/common/cache.js.map +1 -1
- package/dist/lib/common/cartes.js +6 -0
- package/dist/lib/common/cartes.js.map +1 -1
- package/dist/lib/common/carto.js +5 -0
- package/dist/lib/common/carto.js.map +1 -1
- package/dist/lib/common/color.js +5 -0
- package/dist/lib/common/color.js.map +1 -1
- package/dist/lib/common/delay-queue.js +4 -0
- package/dist/lib/common/delay-queue.js.map +1 -1
- package/dist/lib/common/geometry.js +21 -0
- package/dist/lib/common/geometry.js.map +1 -1
- package/dist/lib/common/utc.js +3 -0
- package/dist/lib/common/utc.js.map +1 -1
- package/dist/lib/custom-form/custom-form.js +137 -0
- package/dist/lib/custom-form/custom-form.js.map +1 -0
- package/dist/lib/entity/entity-attachment-type.js +4 -3
- package/dist/lib/entity/entity-attachment-type.js.map +1 -1
- package/dist/lib/entity/entity-attachment.js +5 -0
- package/dist/lib/entity/entity-attachment.js.map +1 -1
- package/dist/lib/entity/entity-comment.js +4 -0
- package/dist/lib/entity/entity-comment.js.map +1 -1
- package/dist/lib/entity/entity-link.js +4 -0
- package/dist/lib/entity/entity-link.js.map +1 -1
- package/dist/lib/entity/entity-lod.js +6 -0
- package/dist/lib/entity/entity-lod.js.map +1 -1
- package/dist/lib/entity/entity-relation-type.js +4 -0
- package/dist/lib/entity/entity-relation-type.js.map +1 -1
- package/dist/lib/entity/entity-relation.js +5 -0
- package/dist/lib/entity/entity-relation.js.map +1 -1
- package/dist/lib/entity/entity-source.js +5 -0
- package/dist/lib/entity/entity-source.js.map +1 -1
- package/dist/lib/entity/entity-tag.js +5 -0
- package/dist/lib/entity/entity-tag.js.map +1 -1
- package/dist/lib/entity/entity-type.js +5 -0
- package/dist/lib/entity/entity-type.js.map +1 -1
- package/dist/lib/entity/entity.js +5 -0
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/lib/entity/getters/batched-data-getter.js +4 -0
- package/dist/lib/entity/getters/batched-data-getter.js.map +1 -1
- package/dist/lib/entity/getters/entity-filter-getter.js +5 -0
- package/dist/lib/entity/getters/entity-filter-getter.js.map +1 -1
- package/dist/lib/entity/getters/entity-globe.js +5 -0
- package/dist/lib/entity/getters/entity-globe.js.map +1 -1
- package/dist/lib/file/client-file.js +4 -0
- package/dist/lib/file/client-file.js.map +1 -1
- package/dist/lib/markup/markup.js +3 -0
- package/dist/lib/markup/markup.js.map +1 -1
- package/dist/lib/program-key/program-key.js +4 -0
- package/dist/lib/program-key/program-key.js.map +1 -1
- package/dist/lib/project/menu-item.js +5 -0
- package/dist/lib/project/menu-item.js.map +1 -1
- package/dist/lib/project/project-view-bookmark.js +6 -0
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/dist/lib/project/project-view-tile-source.js +5 -0
- package/dist/lib/project/project-view-tile-source.js.map +1 -1
- package/dist/lib/project/project-view.js +5 -0
- package/dist/lib/project/project-view.js.map +1 -1
- package/dist/lib/project/zoom-control.js +4 -0
- package/dist/lib/project/zoom-control.js.map +1 -1
- package/dist/lib/server/pending-action.js +5 -0
- package/dist/lib/server/pending-action.js.map +1 -1
- package/dist/lib/style/style.js +7 -0
- package/dist/lib/style/style.js.map +1 -1
- package/dist/lib/tileset/tileset-entities-map-tiles.js +5 -0
- package/dist/lib/tileset/tileset-entities-map-tiles.js.map +1 -1
- package/dist/lib/tileset/tileset-ext-map-tiles.js +4 -0
- package/dist/lib/tileset/tileset-ext-map-tiles.js.map +1 -1
- package/dist/lib/tileset/tileset.js +10 -0
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/lib/ucs/ucs.js +5 -0
- package/dist/lib/ucs/ucs.js.map +1 -1
- package/dist/lib/user/session.js +5 -0
- package/dist/lib/user/session.js.map +1 -1
- package/dist/lib/user/user-group.js +4 -0
- package/dist/lib/user/user-group.js.map +1 -1
- package/dist/lib/user/user.js +186 -6
- package/dist/lib/user/user.js.map +1 -1
- package/dist/lib/util/math-utils.js +12 -0
- package/dist/lib/util/math-utils.js.map +1 -1
- package/dist/lib/util/object-utils.js +4 -0
- package/dist/lib/util/object-utils.js.map +1 -1
- package/dist/lib/util/path-utils.js +3 -0
- package/dist/lib/util/path-utils.js.map +1 -1
- package/dist/lib/util/url-utils.js +6 -0
- package/dist/lib/util/url-utils.js.map +1 -1
- package/dist/types/account/account.d.ts +46 -0
- package/dist/types/ann-document/ann-document.d.ts +4 -0
- package/dist/types/api/abstract-api.d.ts +3 -0
- package/dist/types/api/api.d.ts +26 -8
- package/dist/types/api/bruce-api.d.ts +5 -0
- package/dist/types/api/cam-api.d.ts +5 -0
- package/dist/types/api/global-api.d.ts +5 -0
- package/dist/types/api/idm-api.d.ts +5 -0
- package/dist/types/bruce-models.d.ts +2 -0
- package/dist/types/calculator/calculator.d.ts +12 -0
- package/dist/types/common/bounds.d.ts +6 -0
- package/dist/types/common/bruce-event.d.ts +4 -0
- package/dist/types/common/bruce-variable.d.ts +13 -0
- package/dist/types/common/cache.d.ts +3 -0
- package/dist/types/common/cartes.d.ts +6 -0
- package/dist/types/common/carto.d.ts +5 -0
- package/dist/types/common/color.d.ts +5 -0
- package/dist/types/common/delay-queue.d.ts +4 -0
- package/dist/types/common/geometry.d.ts +21 -0
- package/dist/types/common/transform.d.ts +4 -0
- package/dist/types/common/utc.d.ts +3 -0
- package/dist/types/custom-form/custom-form.d.ts +25 -0
- package/dist/types/entity/entity-attachment-type.d.ts +5 -4
- package/dist/types/entity/entity-attachment.d.ts +5 -0
- package/dist/types/entity/entity-comment.d.ts +4 -0
- package/dist/types/entity/entity-link.d.ts +4 -0
- package/dist/types/entity/entity-lod.d.ts +6 -0
- package/dist/types/entity/entity-relation-type.d.ts +4 -0
- package/dist/types/entity/entity-relation.d.ts +5 -0
- package/dist/types/entity/entity-source.d.ts +5 -0
- package/dist/types/entity/entity-tag.d.ts +5 -0
- package/dist/types/entity/entity-type.d.ts +5 -0
- package/dist/types/entity/entity.d.ts +5 -0
- package/dist/types/entity/getters/batched-data-getter.d.ts +4 -0
- package/dist/types/entity/getters/entity-filter-getter.d.ts +5 -0
- package/dist/types/entity/getters/entity-globe.d.ts +5 -0
- package/dist/types/file/client-file.d.ts +4 -0
- package/dist/types/markup/markup.d.ts +3 -0
- package/dist/types/program-key/program-key.d.ts +4 -0
- package/dist/types/project/menu-item.d.ts +5 -0
- package/dist/types/project/project-view-bookmark.d.ts +6 -0
- package/dist/types/project/project-view-tile-source.d.ts +5 -0
- package/dist/types/project/project-view.d.ts +5 -0
- package/dist/types/project/zoom-control.d.ts +4 -0
- package/dist/types/server/pending-action.d.ts +5 -0
- package/dist/types/style/style.d.ts +7 -0
- package/dist/types/tileset/tileset-cad.d.ts +4 -0
- package/dist/types/tileset/tileset-entities-map-tiles.d.ts +5 -0
- package/dist/types/tileset/tileset-entities.d.ts +4 -0
- package/dist/types/tileset/tileset-ext-map-tiles.d.ts +4 -0
- package/dist/types/tileset/tileset-ext-terrain-tiles.d.ts +4 -0
- package/dist/types/tileset/tileset-map-tiles.d.ts +4 -0
- package/dist/types/tileset/tileset-pointcloud.d.ts +4 -0
- package/dist/types/tileset/tileset-terrain-tiles.d.ts +4 -0
- package/dist/types/tileset/tileset.d.ts +10 -0
- package/dist/types/ucs/ucs.d.ts +5 -0
- package/dist/types/user/session.d.ts +5 -0
- package/dist/types/user/user-group.d.ts +4 -0
- package/dist/types/user/user.d.ts +48 -0
- package/dist/types/util/math-utils.d.ts +12 -0
- package/dist/types/util/object-utils.d.ts +4 -0
- package/dist/types/util/path-utils.d.ts +3 -0
- package/dist/types/util/url-utils.d.ts +6 -0
- package/package.json +1 -1
|
@@ -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";
|
|
@@ -54,6 +55,7 @@ export * from "./user/permission";
|
|
|
54
55
|
export * from "./user/session";
|
|
55
56
|
export * from "./user/user-group";
|
|
56
57
|
export * from "./user/user";
|
|
58
|
+
export * from "./account/account";
|
|
57
59
|
export * from "./util/encrypt-utils";
|
|
58
60
|
export * from "./util/math-utils";
|
|
59
61
|
export * from "./util/object-utils";
|
|
@@ -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,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
|
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
|
}
|
|
@@ -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;
|
|
@@ -8,6 +8,11 @@ import { UTC } from "../common/utc";
|
|
|
8
8
|
import { EntityType } from "./entity-type";
|
|
9
9
|
import { IDictionary } from "../common/dictionary";
|
|
10
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
|
+
*/
|
|
11
16
|
export declare namespace Entity {
|
|
12
17
|
function GetCacheKey(entityId: string): string;
|
|
13
18
|
interface IEntity extends _any {
|
|
@@ -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,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;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes a terrain or map source that are found in project view records.
|
|
3
|
+
* This is a concept we want to trash as we're moving towards storing tileset ids instead.
|
|
4
|
+
* This will help at least understand and manage this dying concept.
|
|
5
|
+
*/
|
|
1
6
|
export declare namespace ProjectViewTileSource {
|
|
2
7
|
interface ISource {
|
|
3
8
|
IsEnabled?: boolean;
|
|
@@ -2,6 +2,11 @@ import { BruceApi } from "../api/bruce-api";
|
|
|
2
2
|
import { UTC } from "../common/utc";
|
|
3
3
|
import { MenuItem } from "./menu-item";
|
|
4
4
|
import { ProjectViewTileSource } from "./project-view-tile-source";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the "Project View" concept within Bruce.
|
|
7
|
+
* A project view is a collection of settings for a visualization application we support.
|
|
8
|
+
* It will describe what panels to show and how, it will also describe all possible ways data can be displayed.
|
|
9
|
+
*/
|
|
5
10
|
export declare namespace ProjectView {
|
|
6
11
|
function GetCacheKey(viewId: string): string;
|
|
7
12
|
function GetListCacheKey(): string;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Style } from "../bruce-models";
|
|
2
|
+
/**
|
|
3
|
+
* Describes an expectation on what should be rendered for a menu item-
|
|
4
|
+
* between a min-max distance of an entity to the camera.
|
|
5
|
+
*/
|
|
2
6
|
export declare namespace ZoomControl {
|
|
3
7
|
enum EDisplayType {
|
|
4
8
|
Hidden = "hidden",
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { Api } from "../api/api";
|
|
2
2
|
import { BruceApi, UTC } from "../bruce-models";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the "Pending Action" concept within Bruce.
|
|
5
|
+
* A pending action is a record of a server-side background process.
|
|
6
|
+
* This record is used to monitor its progress and completion state.
|
|
7
|
+
*/
|
|
3
8
|
export declare namespace PendingAction {
|
|
4
9
|
interface IAction {
|
|
5
10
|
ID: number;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { BruceApi, Calculator } from "../bruce-models";
|
|
2
|
+
/**
|
|
3
|
+
* Describes the "Style" concept within Bruce.
|
|
4
|
+
* A legacy way of referring to styles is "entity display settings".
|
|
5
|
+
*
|
|
6
|
+
* A style is a collection of settings (which can be calculations to perform on entity data) that
|
|
7
|
+
* describe how an entity should be displayed.
|
|
8
|
+
*/
|
|
2
9
|
export declare namespace Style {
|
|
3
10
|
function GetCacheKey(id: number): string;
|
|
4
11
|
function GetListCacheKey(): string;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Tileset } from "../bruce-models";
|
|
2
2
|
import { Carto } from "../common/carto";
|
|
3
|
+
/**
|
|
4
|
+
* Describes expected settings for a CAD tileset.
|
|
5
|
+
* A CAD tileset is sometimes referred to as a "MODEL" tileset in Bruce.
|
|
6
|
+
*/
|
|
3
7
|
export declare namespace TilesetCad {
|
|
4
8
|
interface ISettings {
|
|
5
9
|
rootEntityId: string;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { Bounds } from "../common/bounds";
|
|
2
|
+
/**
|
|
3
|
+
* Describes expected settings for an entities-map tileset.
|
|
4
|
+
* This is the kind of tileset generated from arbitrary Bruce entities-
|
|
5
|
+
* which produced map tiles of the entity vector geometry.
|
|
6
|
+
*/
|
|
2
7
|
export declare namespace TilesetEntitiesMapTiles {
|
|
3
8
|
enum ETileSize {
|
|
4
9
|
IMG_256 = 256,
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Bounds } from "../bruce-models";
|
|
2
|
+
/**
|
|
3
|
+
* Describes expected settings for an entities-set tileset.
|
|
4
|
+
* This is the kind of tileset generated from arbitrary Bruce entities.
|
|
5
|
+
*/
|
|
2
6
|
export declare namespace TilesetEntities {
|
|
3
7
|
interface ISettings {
|
|
4
8
|
zoomControl?: any[];
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes settings for an external terrain-tiles tileset.
|
|
3
|
+
* This will serve content from elsewhere with the assumption that the data is valid terrain tiles.
|
|
4
|
+
*/
|
|
1
5
|
export declare namespace TilesetExtTerrainTiles {
|
|
2
6
|
interface ISettings {
|
|
3
7
|
requestVertexNormals?: boolean;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Tileset } from "../bruce-models";
|
|
2
2
|
import { Carto } from "../common/carto";
|
|
3
|
+
/**
|
|
4
|
+
* Describes settings for a point-cloud tileset.
|
|
5
|
+
* This tileset ingests a .laz or .las file and produces a point cloud that can be streamed into viewers.
|
|
6
|
+
*/
|
|
3
7
|
export declare namespace TilesetPointcloud {
|
|
4
8
|
interface ISettings {
|
|
5
9
|
sourceFileIds: string[];
|
|
@@ -10,6 +10,16 @@ import { TilesetMapTiles } from "./tileset-map-tiles";
|
|
|
10
10
|
import { TilesetTerrainTiles } from "./tileset-terrain-tiles";
|
|
11
11
|
import { GlobalApi } from "../api/global-api";
|
|
12
12
|
declare type Settings = TilesetPointcloud.ISettings | TilesetCad.ISettings | TilesetEntitiesMapTiles.ISettings | TilesetEntities.ISettings | TilesetExtMapTiles.ISettings | TilesetExtTerrainTiles.ISettings | TilesetMapTiles.ISettings | TilesetTerrainTiles.ISettings;
|
|
13
|
+
/**
|
|
14
|
+
* Describes the "Tileset" concept in Bruce.
|
|
15
|
+
*
|
|
16
|
+
* Tilesets come in three possible variants,
|
|
17
|
+
* 1- A set of instructions to generate a tileset.
|
|
18
|
+
* 2- Settings to load a tileset hosted elsewhere.
|
|
19
|
+
* 3- A set of user-provided files to serve.
|
|
20
|
+
*
|
|
21
|
+
* Read the individual tileset-type settings for each variant.
|
|
22
|
+
*/
|
|
13
23
|
export declare namespace Tileset {
|
|
14
24
|
function GetCacheKey(tilesetId: string, loadFiles: boolean): string;
|
|
15
25
|
function GetListCacheKey(): string;
|
package/dist/types/ucs/ucs.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { BruceApi, Tileset } from "../bruce-models";
|
|
2
|
+
/**
|
|
3
|
+
* Describes the "UCS" concept within Bruce.
|
|
4
|
+
* A UCS is a user-coordinate-system.
|
|
5
|
+
* It is a description of an offset to apply to tilesets so that they can all align with each other.
|
|
6
|
+
*/
|
|
2
7
|
export declare namespace Ucs {
|
|
3
8
|
function GetCacheKey(id: number, expandUsage: boolean): string;
|
|
4
9
|
function GetListCacheKey(): string;
|
|
@@ -2,6 +2,11 @@ import { IdmApi } from "../api/idm-api";
|
|
|
2
2
|
import { UTC } from "../common/utc";
|
|
3
3
|
import { Permission } from "./permission";
|
|
4
4
|
import { User } from "./user";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the "Session" concept within Bruce.
|
|
7
|
+
* A session is a set of settings produced from a user or access token login.
|
|
8
|
+
* The session describes what the access should be allowed to do.
|
|
9
|
+
*/
|
|
5
10
|
export declare namespace Session {
|
|
6
11
|
interface ISession {
|
|
7
12
|
AccessPermissions: IAccessPermissions;
|