bruce-models 2.3.7 → 2.3.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 +8041 -8037
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +7805 -7801
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account-invite.js +81 -81
- package/dist/lib/account/account-settings.js +2 -2
- package/dist/lib/account/account.js +169 -169
- package/dist/lib/account/account.js.map +1 -1
- package/dist/lib/ann-document/ann-document.js +94 -94
- package/dist/lib/api/abstract-api.js +269 -269
- package/dist/lib/api/api-getters.js +172 -172
- package/dist/lib/api/api.js +93 -93
- package/dist/lib/api/bruce-api.js +224 -224
- package/dist/lib/api/bruce-api.js.map +1 -1
- package/dist/lib/api/cam-api.js +88 -88
- package/dist/lib/api/global-api.js +82 -82
- package/dist/lib/api/guardian-api.js +82 -82
- package/dist/lib/api/idm-api.js +90 -90
- package/dist/lib/bruce-models.js +95 -91
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/calculator/calculator.js +341 -341
- package/dist/lib/client-file/client-file.js +255 -255
- package/dist/lib/client-file/client-file.js.map +1 -1
- package/dist/lib/common/bounds.js +61 -61
- package/dist/lib/common/bruce-event.js +46 -46
- package/dist/lib/common/bruce-variable.js +60 -60
- package/dist/lib/common/cache.js +188 -188
- package/dist/lib/common/cache.js.map +1 -1
- package/dist/lib/common/camera.js +11 -11
- package/dist/lib/common/cartes.js +123 -123
- package/dist/lib/common/carto.js +60 -60
- package/dist/lib/common/color.js +86 -86
- package/dist/lib/common/delay-queue.js +56 -56
- package/dist/lib/common/dictionary.js +2 -2
- package/dist/lib/common/geometry.js +120 -120
- package/dist/lib/common/lru-cache.js +25 -25
- package/dist/lib/common/transform.js +2 -2
- package/dist/lib/common/utc.js +39 -39
- package/dist/lib/custom-form/custom-form-content.js +26 -26
- package/dist/lib/custom-form/custom-form.js +114 -114
- package/dist/lib/data-lab/data-lab.js +49 -49
- package/dist/lib/entity/entity-attachment-type.js +87 -87
- package/dist/lib/entity/entity-attachment-type.js.map +1 -1
- package/dist/lib/entity/entity-attachment.js +126 -126
- package/dist/lib/entity/entity-attachment.js.map +1 -1
- package/dist/lib/entity/entity-attribute.js +29 -29
- package/dist/lib/entity/entity-comment.js +86 -86
- package/dist/lib/entity/entity-comment.js.map +1 -1
- package/dist/lib/entity/entity-coords.js +153 -153
- package/dist/lib/entity/entity-coords.js.map +1 -1
- package/dist/lib/entity/entity-link.js +86 -86
- package/dist/lib/entity/entity-link.js.map +1 -1
- package/dist/lib/entity/entity-lod-category.js +108 -108
- package/dist/lib/entity/entity-lod.js +197 -197
- package/dist/lib/entity/entity-lod.js.map +1 -1
- package/dist/lib/entity/entity-relation-type.js +117 -117
- package/dist/lib/entity/entity-relation-type.js.map +1 -1
- package/dist/lib/entity/entity-relation.js +157 -157
- package/dist/lib/entity/entity-source.js +136 -136
- package/dist/lib/entity/entity-source.js.map +1 -1
- package/dist/lib/entity/entity-tag.js +157 -157
- package/dist/lib/entity/entity-type-visual-settings.js +13 -13
- package/dist/lib/entity/entity-type.js +122 -122
- package/dist/lib/entity/entity.js +341 -341
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/lib/entity/getters/batched-data-getter.js +84 -84
- package/dist/lib/entity/getters/batched-data-getter.js.map +1 -1
- package/dist/lib/entity/getters/entity-filter-getter.js +316 -316
- package/dist/lib/entity/getters/entity-filter-getter.js.map +1 -1
- package/dist/lib/entity/getters/entity-globe.js +175 -175
- package/dist/lib/entity/getters/view-monitor.js +2 -2
- package/dist/lib/import/import-cad.js +53 -53
- package/dist/lib/import/import-cad.js.map +1 -1
- package/dist/lib/import/import-csv.js +23 -23
- package/dist/lib/import/import-json.js +23 -23
- package/dist/lib/import/import-kml.js +23 -23
- package/dist/lib/import/imported-file.js +130 -130
- package/dist/lib/internal/uploader.js +76 -76
- package/dist/lib/internal/uploader.js.map +1 -1
- package/dist/lib/markup/markup.js +185 -185
- package/dist/lib/plugin/plugin.js +91 -91
- package/dist/lib/program-key/program-key.js +120 -120
- package/dist/lib/program-key/program-key.js.map +1 -1
- package/dist/lib/project/menu-item.js +122 -122
- package/dist/lib/project/project-view-bookmark.js +159 -159
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/dist/lib/project/project-view-legacy-tile.js +77 -77
- package/dist/lib/project/project-view-legacy-tile.js.map +1 -1
- package/dist/lib/project/project-view-tile.js +125 -125
- package/dist/lib/project/project-view.js +141 -141
- package/dist/lib/project/zoom-control.js +17 -17
- package/dist/lib/server/hosting-location.js +156 -156
- package/dist/lib/server/hosting-location.js.map +1 -1
- package/dist/lib/server/message-broker.js +142 -142
- package/dist/lib/server/message-broker.js.map +1 -1
- package/dist/lib/server/pending-action.js +83 -83
- package/dist/lib/server/task.js +63 -63
- package/dist/lib/style/style.js +129 -129
- package/dist/lib/style/style.js.map +1 -1
- package/dist/lib/tileset/tileset.js +431 -431
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/lib/user/permission.js +20 -20
- package/dist/lib/user/session.js +145 -142
- package/dist/lib/user/session.js.map +1 -1
- package/dist/lib/user/user-group.js +94 -94
- package/dist/lib/user/user.js +475 -474
- package/dist/lib/user/user.js.map +1 -1
- package/dist/lib/util/encrypt-utils.js +19 -19
- package/dist/lib/util/math-utils.js +40 -40
- package/dist/lib/util/object-utils.js +17 -17
- package/dist/lib/util/path-utils.js +61 -61
- package/dist/lib/util/url-utils.js +94 -94
- package/dist/lib/util/url-utils.js.map +1 -1
- package/dist/types/account/account-invite.d.ts +68 -68
- package/dist/types/account/account-settings.d.ts +24 -24
- package/dist/types/account/account.d.ts +84 -84
- package/dist/types/ann-document/ann-document.d.ts +50 -50
- package/dist/types/api/abstract-api.d.ts +36 -36
- package/dist/types/api/api-getters.d.ts +64 -64
- package/dist/types/api/api.d.ts +93 -93
- package/dist/types/api/bruce-api.d.ts +64 -64
- package/dist/types/api/cam-api.d.ts +26 -26
- package/dist/types/api/global-api.d.ts +25 -25
- package/dist/types/api/guardian-api.d.ts +25 -25
- package/dist/types/api/idm-api.d.ts +28 -28
- package/dist/types/bruce-models.d.ts +79 -79
- package/dist/types/calculator/calculator.d.ts +61 -61
- package/dist/types/client-file/client-file.d.ts +130 -130
- package/dist/types/common/bounds.d.ts +30 -30
- package/dist/types/common/bruce-event.d.ts +12 -12
- package/dist/types/common/bruce-variable.d.ts +21 -21
- package/dist/types/common/cache.d.ts +57 -57
- package/dist/types/common/camera.d.ts +6 -6
- package/dist/types/common/cartes.d.ts +51 -51
- package/dist/types/common/carto.d.ts +15 -15
- package/dist/types/common/color.d.ts +24 -24
- package/dist/types/common/delay-queue.d.ts +14 -14
- package/dist/types/common/dictionary.d.ts +3 -3
- package/dist/types/common/geometry.d.ts +44 -44
- package/dist/types/common/lru-cache.d.ts +7 -7
- package/dist/types/common/transform.d.ts +15 -15
- package/dist/types/common/utc.d.ts +29 -29
- package/dist/types/custom-form/custom-form-content.d.ts +60 -60
- package/dist/types/custom-form/custom-form.d.ts +49 -49
- package/dist/types/data-lab/data-lab.d.ts +28 -28
- package/dist/types/entity/entity-attachment-type.d.ts +39 -39
- package/dist/types/entity/entity-attachment.d.ts +61 -61
- package/dist/types/entity/entity-attribute.d.ts +39 -39
- package/dist/types/entity/entity-comment.d.ts +40 -40
- package/dist/types/entity/entity-coords.d.ts +66 -66
- package/dist/types/entity/entity-link.d.ts +36 -36
- package/dist/types/entity/entity-lod-category.d.ts +36 -36
- package/dist/types/entity/entity-lod.d.ts +99 -99
- package/dist/types/entity/entity-relation-type.d.ts +44 -44
- package/dist/types/entity/entity-relation.d.ts +59 -59
- package/dist/types/entity/entity-source.d.ts +45 -45
- package/dist/types/entity/entity-tag.d.ts +53 -53
- package/dist/types/entity/entity-type-visual-settings.d.ts +16 -16
- package/dist/types/entity/entity-type.d.ts +63 -63
- package/dist/types/entity/entity.d.ts +118 -118
- package/dist/types/entity/getters/batched-data-getter.d.ts +26 -26
- package/dist/types/entity/getters/entity-filter-getter.d.ts +61 -61
- package/dist/types/entity/getters/entity-globe.d.ts +21 -21
- package/dist/types/entity/getters/view-monitor.d.ts +13 -13
- package/dist/types/import/import-cad.d.ts +49 -49
- package/dist/types/import/import-csv.d.ts +31 -31
- package/dist/types/import/import-json.d.ts +26 -26
- package/dist/types/import/import-kml.d.ts +19 -19
- package/dist/types/import/imported-file.d.ts +47 -47
- package/dist/types/internal/uploader.d.ts +16 -16
- package/dist/types/markup/markup.d.ts +227 -227
- package/dist/types/plugin/plugin.d.ts +39 -39
- package/dist/types/program-key/program-key.d.ts +48 -48
- package/dist/types/project/menu-item.d.ts +169 -169
- package/dist/types/project/project-view-bookmark.d.ts +179 -179
- package/dist/types/project/project-view-legacy-tile.d.ts +48 -48
- package/dist/types/project/project-view-tile.d.ts +65 -65
- package/dist/types/project/project-view.d.ts +136 -136
- package/dist/types/project/zoom-control.d.ts +22 -22
- package/dist/types/server/hosting-location.d.ts +74 -74
- package/dist/types/server/message-broker.d.ts +86 -86
- package/dist/types/server/pending-action.d.ts +66 -66
- package/dist/types/server/task.d.ts +36 -36
- package/dist/types/style/style.d.ts +107 -107
- package/dist/types/tileset/tileset.d.ts +264 -264
- package/dist/types/user/permission.d.ts +15 -15
- package/dist/types/user/session.d.ts +72 -66
- package/dist/types/user/user-group.d.ts +58 -58
- package/dist/types/user/user.d.ts +189 -188
- package/dist/types/util/encrypt-utils.d.ts +3 -3
- package/dist/types/util/math-utils.d.ts +16 -16
- package/dist/types/util/object-utils.d.ts +7 -7
- package/dist/types/util/path-utils.d.ts +8 -8
- package/dist/types/util/url-utils.d.ts +26 -26
- package/package.json +79 -78
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { Api } from "../api/api";
|
|
2
|
-
import { IdmApi } from "../api/idm-api";
|
|
3
|
-
import { UTC } from "../common/utc";
|
|
4
|
-
import { User } from "../user/user";
|
|
5
|
-
export declare namespace AccountInvite {
|
|
6
|
-
interface IInvite {
|
|
7
|
-
ID: number;
|
|
8
|
-
"Account.ID": string;
|
|
9
|
-
"Invited.User.ID": string;
|
|
10
|
-
"InvitedBy.User.ID": string;
|
|
11
|
-
CreatedDate: UTC.IUTC;
|
|
12
|
-
InviteMethod: EInviteMethod;
|
|
13
|
-
IsExpired: boolean;
|
|
14
|
-
Status: EStatus;
|
|
15
|
-
}
|
|
16
|
-
enum EStatus {
|
|
17
|
-
Denied = "Denied",
|
|
18
|
-
Cancelled = "Cancelled",
|
|
19
|
-
Sent = "Sent",
|
|
20
|
-
NotSent = "NotSent",
|
|
21
|
-
Accepted = "Accepted"
|
|
22
|
-
}
|
|
23
|
-
enum EInviteMethod {
|
|
24
|
-
Email = "Email",
|
|
25
|
-
SMS = "SMS",
|
|
26
|
-
Manual = "Manual"
|
|
27
|
-
}
|
|
28
|
-
function GetByCode(params: {
|
|
29
|
-
api: IdmApi.Api;
|
|
30
|
-
code: string;
|
|
31
|
-
req?: Api.IReqParams;
|
|
32
|
-
}): Promise<{
|
|
33
|
-
invite: IInvite;
|
|
34
|
-
}>;
|
|
35
|
-
function GetList(params: {
|
|
36
|
-
api: IdmApi.Api;
|
|
37
|
-
accountId?: string;
|
|
38
|
-
userId?: string;
|
|
39
|
-
req?: Api.IReqParams;
|
|
40
|
-
}): Promise<{
|
|
41
|
-
invites: IInvite[];
|
|
42
|
-
warnings?: string[];
|
|
43
|
-
}>;
|
|
44
|
-
function Update(params: {
|
|
45
|
-
api: IdmApi.Api;
|
|
46
|
-
code: string;
|
|
47
|
-
status: string;
|
|
48
|
-
user?: User.IUser;
|
|
49
|
-
req?: Api.IReqParams;
|
|
50
|
-
}): Promise<any>;
|
|
51
|
-
function Create(params: {
|
|
52
|
-
api: IdmApi.Api;
|
|
53
|
-
accountId: string;
|
|
54
|
-
login?: string;
|
|
55
|
-
userId?: string;
|
|
56
|
-
email?: string;
|
|
57
|
-
mobile?: string;
|
|
58
|
-
emailTemplateKey?: string;
|
|
59
|
-
groupIds?: string[];
|
|
60
|
-
req?: Api.IReqParams;
|
|
61
|
-
}): Promise<{
|
|
62
|
-
warnings?: string[];
|
|
63
|
-
user: User.IUser;
|
|
64
|
-
manualInviteCode?: string;
|
|
65
|
-
invite: IInvite;
|
|
66
|
-
manualInvite?: IInvite;
|
|
67
|
-
}>;
|
|
68
|
-
}
|
|
1
|
+
import { Api } from "../api/api";
|
|
2
|
+
import { IdmApi } from "../api/idm-api";
|
|
3
|
+
import { UTC } from "../common/utc";
|
|
4
|
+
import { User } from "../user/user";
|
|
5
|
+
export declare namespace AccountInvite {
|
|
6
|
+
interface IInvite {
|
|
7
|
+
ID: number;
|
|
8
|
+
"Account.ID": string;
|
|
9
|
+
"Invited.User.ID": string;
|
|
10
|
+
"InvitedBy.User.ID": string;
|
|
11
|
+
CreatedDate: UTC.IUTC;
|
|
12
|
+
InviteMethod: EInviteMethod;
|
|
13
|
+
IsExpired: boolean;
|
|
14
|
+
Status: EStatus;
|
|
15
|
+
}
|
|
16
|
+
enum EStatus {
|
|
17
|
+
Denied = "Denied",
|
|
18
|
+
Cancelled = "Cancelled",
|
|
19
|
+
Sent = "Sent",
|
|
20
|
+
NotSent = "NotSent",
|
|
21
|
+
Accepted = "Accepted"
|
|
22
|
+
}
|
|
23
|
+
enum EInviteMethod {
|
|
24
|
+
Email = "Email",
|
|
25
|
+
SMS = "SMS",
|
|
26
|
+
Manual = "Manual"
|
|
27
|
+
}
|
|
28
|
+
function GetByCode(params: {
|
|
29
|
+
api: IdmApi.Api;
|
|
30
|
+
code: string;
|
|
31
|
+
req?: Api.IReqParams;
|
|
32
|
+
}): Promise<{
|
|
33
|
+
invite: IInvite;
|
|
34
|
+
}>;
|
|
35
|
+
function GetList(params: {
|
|
36
|
+
api: IdmApi.Api;
|
|
37
|
+
accountId?: string;
|
|
38
|
+
userId?: string;
|
|
39
|
+
req?: Api.IReqParams;
|
|
40
|
+
}): Promise<{
|
|
41
|
+
invites: IInvite[];
|
|
42
|
+
warnings?: string[];
|
|
43
|
+
}>;
|
|
44
|
+
function Update(params: {
|
|
45
|
+
api: IdmApi.Api;
|
|
46
|
+
code: string;
|
|
47
|
+
status: string;
|
|
48
|
+
user?: User.IUser;
|
|
49
|
+
req?: Api.IReqParams;
|
|
50
|
+
}): Promise<any>;
|
|
51
|
+
function Create(params: {
|
|
52
|
+
api: IdmApi.Api;
|
|
53
|
+
accountId: string;
|
|
54
|
+
login?: string;
|
|
55
|
+
userId?: string;
|
|
56
|
+
email?: string;
|
|
57
|
+
mobile?: string;
|
|
58
|
+
emailTemplateKey?: string;
|
|
59
|
+
groupIds?: string[];
|
|
60
|
+
req?: Api.IReqParams;
|
|
61
|
+
}): Promise<{
|
|
62
|
+
warnings?: string[];
|
|
63
|
+
user: User.IUser;
|
|
64
|
+
manualInviteCode?: string;
|
|
65
|
+
invite: IInvite;
|
|
66
|
+
manualInvite?: IInvite;
|
|
67
|
+
}>;
|
|
68
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export declare namespace AccountSettings {
|
|
2
|
-
type Settings = IBruceApi | INavigator | any;
|
|
3
|
-
interface IBruceApi {
|
|
4
|
-
"HostingLocation.Key"?: string;
|
|
5
|
-
"DatabaseServer.ID"?: number;
|
|
6
|
-
DBLocation?: string;
|
|
7
|
-
DBServer?: string;
|
|
8
|
-
FileStorageRegion?: string;
|
|
9
|
-
FileStorageName?: string;
|
|
10
|
-
}
|
|
11
|
-
interface INavigator {
|
|
12
|
-
branding?: {
|
|
13
|
-
loginTitleFileId?: string;
|
|
14
|
-
loginBannerFileId?: string;
|
|
15
|
-
dashBannerFileId?: string;
|
|
16
|
-
navIconFileId?: string;
|
|
17
|
-
links?: ILink[];
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
interface ILink {
|
|
21
|
-
name: string;
|
|
22
|
-
url: string;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
export declare namespace AccountSettings {
|
|
2
|
+
type Settings = IBruceApi | INavigator | any;
|
|
3
|
+
interface IBruceApi {
|
|
4
|
+
"HostingLocation.Key"?: string;
|
|
5
|
+
"DatabaseServer.ID"?: number;
|
|
6
|
+
DBLocation?: string;
|
|
7
|
+
DBServer?: string;
|
|
8
|
+
FileStorageRegion?: string;
|
|
9
|
+
FileStorageName?: string;
|
|
10
|
+
}
|
|
11
|
+
interface INavigator {
|
|
12
|
+
branding?: {
|
|
13
|
+
loginTitleFileId?: string;
|
|
14
|
+
loginBannerFileId?: string;
|
|
15
|
+
dashBannerFileId?: string;
|
|
16
|
+
navIconFileId?: string;
|
|
17
|
+
links?: ILink[];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
interface ILink {
|
|
21
|
+
name: string;
|
|
22
|
+
url: string;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import { Api } from "../api/api";
|
|
2
|
-
import { BruceApi } from "../api/bruce-api";
|
|
3
|
-
import { CamApi } from "../api/cam-api";
|
|
4
|
-
import { GuardianApi } from "../api/guardian-api";
|
|
5
|
-
import { IdmApi } from "../api/idm-api";
|
|
6
|
-
import { AccountSettings } from "./account-settings";
|
|
7
|
-
/**
|
|
8
|
-
* Describes the "Client Account" concept within Bruce.
|
|
9
|
-
* A client account is a database instance that holds one or many users.
|
|
10
|
-
*/
|
|
11
|
-
export declare namespace Account {
|
|
12
|
-
function GetCacheKey(accountId: string, appSettingsId?: string): string;
|
|
13
|
-
function GetListCacheKey(ssid: string): string;
|
|
14
|
-
function GetDbRegionListCacheKey(): Api.ECacheKey;
|
|
15
|
-
enum EAppId {
|
|
16
|
-
BruceApi = "BruceAPI",
|
|
17
|
-
Navigator = "Navigator"
|
|
18
|
-
}
|
|
19
|
-
type AppId = EAppId | string;
|
|
20
|
-
enum EStarterContent {
|
|
21
|
-
Default = "default",
|
|
22
|
-
None = "none"
|
|
23
|
-
}
|
|
24
|
-
interface IAccount {
|
|
25
|
-
ID?: string;
|
|
26
|
-
Name?: string;
|
|
27
|
-
"ClientAccount.ID"?: string;
|
|
28
|
-
"Application.ID"?: string;
|
|
29
|
-
"BruceAPI"?: string;
|
|
30
|
-
"Settings"?: any;
|
|
31
|
-
"OwnerUser.ID"?: string;
|
|
32
|
-
"Application.Settings"?: AccountSettings.Settings;
|
|
33
|
-
}
|
|
34
|
-
function Get(params: {
|
|
35
|
-
api: CamApi.Api | GuardianApi.Api;
|
|
36
|
-
accountId: string;
|
|
37
|
-
req?: Api.IReqParams;
|
|
38
|
-
}): Promise<{
|
|
39
|
-
account: IAccount;
|
|
40
|
-
}>;
|
|
41
|
-
function GetRelatedList(params: {
|
|
42
|
-
api: IdmApi.Api;
|
|
43
|
-
req?: Api.IReqParams;
|
|
44
|
-
}): Promise<{
|
|
45
|
-
accounts: IAccount[];
|
|
46
|
-
}>;
|
|
47
|
-
function GetAppSettings(params: {
|
|
48
|
-
api: CamApi.Api | GuardianApi.Api;
|
|
49
|
-
accountId: string;
|
|
50
|
-
appId: AppId;
|
|
51
|
-
req?: Api.IReqParams;
|
|
52
|
-
}): Promise<{
|
|
53
|
-
settings: AccountSettings.Settings;
|
|
54
|
-
}>;
|
|
55
|
-
/**
|
|
56
|
-
* WARNING: Do not update API settings without knowing what you're doing.
|
|
57
|
-
* @param params
|
|
58
|
-
* @returns
|
|
59
|
-
*/
|
|
60
|
-
function UpdateAppSettings(params: {
|
|
61
|
-
api: CamApi.Api | GuardianApi.Api;
|
|
62
|
-
accountId: string;
|
|
63
|
-
appId: string;
|
|
64
|
-
settings: AccountSettings.Settings;
|
|
65
|
-
req?: Api.IReqParams;
|
|
66
|
-
}): Promise<{
|
|
67
|
-
settings: AccountSettings.Settings;
|
|
68
|
-
}>;
|
|
69
|
-
/**
|
|
70
|
-
* Creates a new Bruce account using given details.
|
|
71
|
-
* @param params
|
|
72
|
-
* @returns
|
|
73
|
-
*/
|
|
74
|
-
function Create(params: {
|
|
75
|
-
api: BruceApi.Api;
|
|
76
|
-
accountId: string;
|
|
77
|
-
name: string;
|
|
78
|
-
hostingLocationKey: string;
|
|
79
|
-
starterContent?: EStarterContent;
|
|
80
|
-
req?: Api.IReqParams;
|
|
81
|
-
}): Promise<{
|
|
82
|
-
account: IAccount;
|
|
83
|
-
}>;
|
|
84
|
-
}
|
|
1
|
+
import { Api } from "../api/api";
|
|
2
|
+
import { BruceApi } from "../api/bruce-api";
|
|
3
|
+
import { CamApi } from "../api/cam-api";
|
|
4
|
+
import { GuardianApi } from "../api/guardian-api";
|
|
5
|
+
import { IdmApi } from "../api/idm-api";
|
|
6
|
+
import { AccountSettings } from "./account-settings";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the "Client Account" concept within Bruce.
|
|
9
|
+
* A client account is a database instance that holds one or many users.
|
|
10
|
+
*/
|
|
11
|
+
export declare namespace Account {
|
|
12
|
+
function GetCacheKey(accountId: string, appSettingsId?: string): string;
|
|
13
|
+
function GetListCacheKey(ssid: string): string;
|
|
14
|
+
function GetDbRegionListCacheKey(): Api.ECacheKey;
|
|
15
|
+
enum EAppId {
|
|
16
|
+
BruceApi = "BruceAPI",
|
|
17
|
+
Navigator = "Navigator"
|
|
18
|
+
}
|
|
19
|
+
type AppId = EAppId | string;
|
|
20
|
+
enum EStarterContent {
|
|
21
|
+
Default = "default",
|
|
22
|
+
None = "none"
|
|
23
|
+
}
|
|
24
|
+
interface IAccount {
|
|
25
|
+
ID?: string;
|
|
26
|
+
Name?: string;
|
|
27
|
+
"ClientAccount.ID"?: string;
|
|
28
|
+
"Application.ID"?: string;
|
|
29
|
+
"BruceAPI"?: string;
|
|
30
|
+
"Settings"?: any;
|
|
31
|
+
"OwnerUser.ID"?: string;
|
|
32
|
+
"Application.Settings"?: AccountSettings.Settings;
|
|
33
|
+
}
|
|
34
|
+
function Get(params: {
|
|
35
|
+
api: CamApi.Api | GuardianApi.Api;
|
|
36
|
+
accountId: string;
|
|
37
|
+
req?: Api.IReqParams;
|
|
38
|
+
}): Promise<{
|
|
39
|
+
account: IAccount;
|
|
40
|
+
}>;
|
|
41
|
+
function GetRelatedList(params: {
|
|
42
|
+
api: IdmApi.Api;
|
|
43
|
+
req?: Api.IReqParams;
|
|
44
|
+
}): Promise<{
|
|
45
|
+
accounts: IAccount[];
|
|
46
|
+
}>;
|
|
47
|
+
function GetAppSettings(params: {
|
|
48
|
+
api: CamApi.Api | GuardianApi.Api;
|
|
49
|
+
accountId: string;
|
|
50
|
+
appId: AppId;
|
|
51
|
+
req?: Api.IReqParams;
|
|
52
|
+
}): Promise<{
|
|
53
|
+
settings: AccountSettings.Settings;
|
|
54
|
+
}>;
|
|
55
|
+
/**
|
|
56
|
+
* WARNING: Do not update API settings without knowing what you're doing.
|
|
57
|
+
* @param params
|
|
58
|
+
* @returns
|
|
59
|
+
*/
|
|
60
|
+
function UpdateAppSettings(params: {
|
|
61
|
+
api: CamApi.Api | GuardianApi.Api;
|
|
62
|
+
accountId: string;
|
|
63
|
+
appId: string;
|
|
64
|
+
settings: AccountSettings.Settings;
|
|
65
|
+
req?: Api.IReqParams;
|
|
66
|
+
}): Promise<{
|
|
67
|
+
settings: AccountSettings.Settings;
|
|
68
|
+
}>;
|
|
69
|
+
/**
|
|
70
|
+
* Creates a new Bruce account using given details.
|
|
71
|
+
* @param params
|
|
72
|
+
* @returns
|
|
73
|
+
*/
|
|
74
|
+
function Create(params: {
|
|
75
|
+
api: BruceApi.Api;
|
|
76
|
+
accountId: string;
|
|
77
|
+
name: string;
|
|
78
|
+
hostingLocationKey: string;
|
|
79
|
+
starterContent?: EStarterContent;
|
|
80
|
+
req?: Api.IReqParams;
|
|
81
|
+
}): Promise<{
|
|
82
|
+
account: IAccount;
|
|
83
|
+
}>;
|
|
84
|
+
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { Api } from "../api/api";
|
|
2
|
-
import { BruceApi } from "../bruce-models";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Describes communication with the "Annotated Document" concept in Bruce.
|
|
6
|
-
* Annotated documents are files with hotspots that can link to Entity records.
|
|
7
|
-
*/
|
|
8
|
-
export declare namespace AnnDocument {
|
|
9
|
-
function GetCacheKey(id: number): string;
|
|
10
|
-
function GetListCacheKey(type: Type): string;
|
|
11
|
-
interface IHotspot {
|
|
12
|
-
X: number;
|
|
13
|
-
Y: number;
|
|
14
|
-
Key: string;
|
|
15
|
-
Description?: string;
|
|
16
|
-
LinkedEntity?: {
|
|
17
|
-
"Entity.ID": string;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
interface ISettings {
|
|
21
|
-
Hotspots?: IHotspot[];
|
|
22
|
-
DrawingScaleFactorX?: number;
|
|
23
|
-
DrawingScaleFactorY?: number;
|
|
24
|
-
}
|
|
25
|
-
interface IDocument {
|
|
26
|
-
ID?: number;
|
|
27
|
-
Type: Type;
|
|
28
|
-
Name: string;
|
|
29
|
-
"ClientFile.ID": string;
|
|
30
|
-
Settings?: ISettings;
|
|
31
|
-
}
|
|
32
|
-
enum EType {
|
|
33
|
-
SVG = "SVG"
|
|
34
|
-
}
|
|
35
|
-
function Get(params: {
|
|
36
|
-
api: BruceApi.Api;
|
|
37
|
-
docId: number;
|
|
38
|
-
req?: Api.IReqParams;
|
|
39
|
-
}): Promise<{
|
|
40
|
-
document: IDocument;
|
|
41
|
-
}>;
|
|
42
|
-
function GetList(params: {
|
|
43
|
-
api: BruceApi.Api;
|
|
44
|
-
docType?: Type;
|
|
45
|
-
req?: Api.IReqParams;
|
|
46
|
-
}): Promise<{
|
|
47
|
-
documents: IDocument[];
|
|
48
|
-
}>;
|
|
49
|
-
}
|
|
50
|
-
export {};
|
|
1
|
+
import { Api } from "../api/api";
|
|
2
|
+
import { BruceApi } from "../bruce-models";
|
|
3
|
+
type Type = AnnDocument.EType | string;
|
|
4
|
+
/**
|
|
5
|
+
* Describes communication with the "Annotated Document" concept in Bruce.
|
|
6
|
+
* Annotated documents are files with hotspots that can link to Entity records.
|
|
7
|
+
*/
|
|
8
|
+
export declare namespace AnnDocument {
|
|
9
|
+
function GetCacheKey(id: number): string;
|
|
10
|
+
function GetListCacheKey(type: Type): string;
|
|
11
|
+
interface IHotspot {
|
|
12
|
+
X: number;
|
|
13
|
+
Y: number;
|
|
14
|
+
Key: string;
|
|
15
|
+
Description?: string;
|
|
16
|
+
LinkedEntity?: {
|
|
17
|
+
"Entity.ID": string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
interface ISettings {
|
|
21
|
+
Hotspots?: IHotspot[];
|
|
22
|
+
DrawingScaleFactorX?: number;
|
|
23
|
+
DrawingScaleFactorY?: number;
|
|
24
|
+
}
|
|
25
|
+
interface IDocument {
|
|
26
|
+
ID?: number;
|
|
27
|
+
Type: Type;
|
|
28
|
+
Name: string;
|
|
29
|
+
"ClientFile.ID": string;
|
|
30
|
+
Settings?: ISettings;
|
|
31
|
+
}
|
|
32
|
+
enum EType {
|
|
33
|
+
SVG = "SVG"
|
|
34
|
+
}
|
|
35
|
+
function Get(params: {
|
|
36
|
+
api: BruceApi.Api;
|
|
37
|
+
docId: number;
|
|
38
|
+
req?: Api.IReqParams;
|
|
39
|
+
}): Promise<{
|
|
40
|
+
document: IDocument;
|
|
41
|
+
}>;
|
|
42
|
+
function GetList(params: {
|
|
43
|
+
api: BruceApi.Api;
|
|
44
|
+
docType?: Type;
|
|
45
|
+
req?: Api.IReqParams;
|
|
46
|
+
}): Promise<{
|
|
47
|
+
documents: IDocument[];
|
|
48
|
+
}>;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { CacheControl } from "../common/cache";
|
|
2
|
-
import { Api } from "./api";
|
|
3
|
-
/**
|
|
4
|
-
* This is a base class for communication with an arbitrary Bruce Api.
|
|
5
|
-
*/
|
|
6
|
-
export declare class AbstractApi {
|
|
7
|
-
private ssidHeader;
|
|
8
|
-
private ssid;
|
|
9
|
-
protected baseUrl: string;
|
|
10
|
-
Cache: CacheControl<any>;
|
|
11
|
-
constructor(params: {
|
|
12
|
-
ssidHeader?: string;
|
|
13
|
-
cacheId?: string;
|
|
14
|
-
});
|
|
15
|
-
GetBaseUrl(): string;
|
|
16
|
-
SetBaseUrl(url: string): void;
|
|
17
|
-
GetCacheItem(key: string, reqParams?: Api.IReqParams): Promise<{
|
|
18
|
-
data: any;
|
|
19
|
-
found: boolean;
|
|
20
|
-
}>;
|
|
21
|
-
SetCacheItem(params: {
|
|
22
|
-
key: string;
|
|
23
|
-
value: any;
|
|
24
|
-
duration?: number;
|
|
25
|
-
req?: Api.IReqParams;
|
|
26
|
-
}): Promise<void>;
|
|
27
|
-
GetSessionId(): string;
|
|
28
|
-
SetSessionId(value: string): void;
|
|
29
|
-
GetSessionHeader(): string;
|
|
30
|
-
SetSessionHeader(value: string): void;
|
|
31
|
-
get(url: string, params?: Api.IReqParams): Promise<any>;
|
|
32
|
-
delete(url: string, params?: Api.IReqParams): Promise<any>;
|
|
33
|
-
post(url: string, data: any, params?: Api.IReqParams): Promise<any>;
|
|
34
|
-
put(url: string, data: any, params?: Api.IReqParams): Promise<any>;
|
|
35
|
-
upload(url: string, blob: Blob, params?: Api.IUploadReqParams): Promise<any>;
|
|
36
|
-
}
|
|
1
|
+
import { CacheControl } from "../common/cache";
|
|
2
|
+
import { Api } from "./api";
|
|
3
|
+
/**
|
|
4
|
+
* This is a base class for communication with an arbitrary Bruce Api.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AbstractApi {
|
|
7
|
+
private ssidHeader;
|
|
8
|
+
private ssid;
|
|
9
|
+
protected baseUrl: string;
|
|
10
|
+
Cache: CacheControl<any>;
|
|
11
|
+
constructor(params: {
|
|
12
|
+
ssidHeader?: string;
|
|
13
|
+
cacheId?: string;
|
|
14
|
+
});
|
|
15
|
+
GetBaseUrl(): string;
|
|
16
|
+
SetBaseUrl(url: string): void;
|
|
17
|
+
GetCacheItem(key: string, reqParams?: Api.IReqParams): Promise<{
|
|
18
|
+
data: any;
|
|
19
|
+
found: boolean;
|
|
20
|
+
}>;
|
|
21
|
+
SetCacheItem(params: {
|
|
22
|
+
key: string;
|
|
23
|
+
value: any;
|
|
24
|
+
duration?: number;
|
|
25
|
+
req?: Api.IReqParams;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
GetSessionId(): string;
|
|
28
|
+
SetSessionId(value: string): void;
|
|
29
|
+
GetSessionHeader(): string;
|
|
30
|
+
SetSessionHeader(value: string): void;
|
|
31
|
+
get(url: string, params?: Api.IReqParams): Promise<any>;
|
|
32
|
+
delete(url: string, params?: Api.IReqParams): Promise<any>;
|
|
33
|
+
post(url: string, data: any, params?: Api.IReqParams): Promise<any>;
|
|
34
|
+
put(url: string, data: any, params?: Api.IReqParams): Promise<any>;
|
|
35
|
+
upload(url: string, blob: Blob, params?: Api.IUploadReqParams): Promise<any>;
|
|
36
|
+
}
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { Api } from "./api";
|
|
2
|
-
import { BruceApi } from "./bruce-api";
|
|
3
|
-
import { CamApi } from "./cam-api";
|
|
4
|
-
import { GlobalApi } from "./global-api";
|
|
5
|
-
import { GuardianApi } from "./guardian-api";
|
|
6
|
-
import { IdmApi } from "./idm-api";
|
|
7
|
-
export declare class ApiGetters {
|
|
8
|
-
private bruce;
|
|
9
|
-
private idm;
|
|
10
|
-
private cam;
|
|
11
|
-
private guardian;
|
|
12
|
-
private global;
|
|
13
|
-
private accountId;
|
|
14
|
-
private env;
|
|
15
|
-
private sessionId;
|
|
16
|
-
constructor(params: {
|
|
17
|
-
accountId: string;
|
|
18
|
-
env?: Api.EEnv;
|
|
19
|
-
sessionId?: string;
|
|
20
|
-
});
|
|
21
|
-
SetAccountId(accountId: string): void;
|
|
22
|
-
GetAccountId(): string;
|
|
23
|
-
SetEnv(env: Api.EEnv): void;
|
|
24
|
-
GetEnv(): Api.EEnv;
|
|
25
|
-
SetSessionId(sessionId: string): void;
|
|
26
|
-
GetSessionId(): string;
|
|
27
|
-
GetBruceApi(params: {
|
|
28
|
-
accountId?: string;
|
|
29
|
-
env?: Api.EEnv;
|
|
30
|
-
}): BruceApi.Api;
|
|
31
|
-
GetBruceGetter(): BruceApi.IGetter;
|
|
32
|
-
/**
|
|
33
|
-
* Deprecated: Use GetGuardianApi instead.
|
|
34
|
-
* @returns
|
|
35
|
-
*/
|
|
36
|
-
GetIdmApi(params: {
|
|
37
|
-
env?: Api.EEnv;
|
|
38
|
-
}): IdmApi.Api;
|
|
39
|
-
/**
|
|
40
|
-
* Deprecated: Use GetGuardianGetter instead.
|
|
41
|
-
* @returns
|
|
42
|
-
*/
|
|
43
|
-
GetIdmGetter(): IdmApi.IGetter;
|
|
44
|
-
/**
|
|
45
|
-
* Deprecated: Use GetGuardianApi instead.
|
|
46
|
-
* @returns
|
|
47
|
-
*/
|
|
48
|
-
GetCamApi(params: {
|
|
49
|
-
env?: Api.EEnv;
|
|
50
|
-
}): CamApi.Api;
|
|
51
|
-
/**
|
|
52
|
-
* Deprecated: Use GetGuardianGetter instead.
|
|
53
|
-
* @returns
|
|
54
|
-
*/
|
|
55
|
-
GetCamGetter(): CamApi.IGetter;
|
|
56
|
-
GetGlobalApi(params: {
|
|
57
|
-
env?: Api.EEnv;
|
|
58
|
-
}): GlobalApi.Api;
|
|
59
|
-
GetGlobalGetter(): GlobalApi.IGetter;
|
|
60
|
-
GetGuardianApi(params: {
|
|
61
|
-
env?: Api.EEnv;
|
|
62
|
-
}): GuardianApi.Api;
|
|
63
|
-
GetGuardianGetter(): GuardianApi.IGetter;
|
|
64
|
-
}
|
|
1
|
+
import { Api } from "./api";
|
|
2
|
+
import { BruceApi } from "./bruce-api";
|
|
3
|
+
import { CamApi } from "./cam-api";
|
|
4
|
+
import { GlobalApi } from "./global-api";
|
|
5
|
+
import { GuardianApi } from "./guardian-api";
|
|
6
|
+
import { IdmApi } from "./idm-api";
|
|
7
|
+
export declare class ApiGetters {
|
|
8
|
+
private bruce;
|
|
9
|
+
private idm;
|
|
10
|
+
private cam;
|
|
11
|
+
private guardian;
|
|
12
|
+
private global;
|
|
13
|
+
private accountId;
|
|
14
|
+
private env;
|
|
15
|
+
private sessionId;
|
|
16
|
+
constructor(params: {
|
|
17
|
+
accountId: string;
|
|
18
|
+
env?: Api.EEnv;
|
|
19
|
+
sessionId?: string;
|
|
20
|
+
});
|
|
21
|
+
SetAccountId(accountId: string): void;
|
|
22
|
+
GetAccountId(): string;
|
|
23
|
+
SetEnv(env: Api.EEnv): void;
|
|
24
|
+
GetEnv(): Api.EEnv;
|
|
25
|
+
SetSessionId(sessionId: string): void;
|
|
26
|
+
GetSessionId(): string;
|
|
27
|
+
GetBruceApi(params: {
|
|
28
|
+
accountId?: string;
|
|
29
|
+
env?: Api.EEnv;
|
|
30
|
+
}): BruceApi.Api;
|
|
31
|
+
GetBruceGetter(): BruceApi.IGetter;
|
|
32
|
+
/**
|
|
33
|
+
* Deprecated: Use GetGuardianApi instead.
|
|
34
|
+
* @returns
|
|
35
|
+
*/
|
|
36
|
+
GetIdmApi(params: {
|
|
37
|
+
env?: Api.EEnv;
|
|
38
|
+
}): IdmApi.Api;
|
|
39
|
+
/**
|
|
40
|
+
* Deprecated: Use GetGuardianGetter instead.
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
GetIdmGetter(): IdmApi.IGetter;
|
|
44
|
+
/**
|
|
45
|
+
* Deprecated: Use GetGuardianApi instead.
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
GetCamApi(params: {
|
|
49
|
+
env?: Api.EEnv;
|
|
50
|
+
}): CamApi.Api;
|
|
51
|
+
/**
|
|
52
|
+
* Deprecated: Use GetGuardianGetter instead.
|
|
53
|
+
* @returns
|
|
54
|
+
*/
|
|
55
|
+
GetCamGetter(): CamApi.IGetter;
|
|
56
|
+
GetGlobalApi(params: {
|
|
57
|
+
env?: Api.EEnv;
|
|
58
|
+
}): GlobalApi.Api;
|
|
59
|
+
GetGlobalGetter(): GlobalApi.IGetter;
|
|
60
|
+
GetGuardianApi(params: {
|
|
61
|
+
env?: Api.EEnv;
|
|
62
|
+
}): GuardianApi.Api;
|
|
63
|
+
GetGuardianGetter(): GuardianApi.IGetter;
|
|
64
|
+
}
|