bruce-models 7.1.105 → 7.1.107
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 +134 -54
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +134 -54
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account.js +13 -0
- package/dist/lib/account/account.js.map +1 -1
- package/dist/lib/api/abstract-api.js +6 -1
- package/dist/lib/api/abstract-api.js.map +1 -1
- package/dist/lib/api/bruce-api.js +3 -2
- package/dist/lib/api/bruce-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/ontology.js +49 -34
- package/dist/lib/entity/ontology.js.map +1 -1
- package/dist/lib/export/export-nsx.js +37 -0
- package/dist/lib/export/export-nsx.js.map +1 -1
- package/dist/lib/markup/markup.js.map +1 -1
- package/dist/lib/style/style.js +9 -0
- package/dist/lib/style/style.js.map +1 -1
- package/dist/types/account/account.d.ts +17 -0
- package/dist/types/api/abstract-api.d.ts +2 -1
- package/dist/types/api/bruce-api.d.ts +2 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/ontology.d.ts +34 -10
- package/dist/types/export/export-nsx.d.ts +40 -0
- package/dist/types/markup/markup.d.ts +2 -0
- package/dist/types/style/style.d.ts +15 -0
- package/package.json +1 -1
|
@@ -48,16 +48,40 @@ export declare namespace Ontology {
|
|
|
48
48
|
}): Promise<{
|
|
49
49
|
markdown: string;
|
|
50
50
|
}>;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Every record an Ontology Diagram draws, keyed by the record type it came from.
|
|
53
|
+
* Related records are trimmed (same as getting their listed records directly).
|
|
54
|
+
*/
|
|
55
|
+
interface IConnections {
|
|
56
|
+
"EntityType"?: any[];
|
|
57
|
+
"EntityType.Relation"?: any[];
|
|
58
|
+
"EntityType.Source"?: any[];
|
|
59
|
+
"EntityType.DictionaryDependency"?: any[];
|
|
60
|
+
"Source"?: any[];
|
|
61
|
+
"EntityRelationType"?: any[];
|
|
62
|
+
"FileImport"?: any[];
|
|
63
|
+
[key: string]: any[] | undefined;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Names the Entity Types a connections read covers. Exactly one of ontologyId.
|
|
67
|
+
*/
|
|
68
|
+
interface IConnectionsScope {
|
|
69
|
+
ontologyId?: OntologyId;
|
|
70
|
+
unassigned?: boolean;
|
|
71
|
+
entityTypeIds?: string[];
|
|
72
|
+
depth?: number;
|
|
73
|
+
includeImports?: boolean;
|
|
74
|
+
includeParents?: boolean;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Reads an Ontology Diagram's records in one request.
|
|
78
|
+
*/
|
|
79
|
+
function GetConnections(params: IConnectionsScope & {
|
|
80
|
+
api?: BruceApi.Api;
|
|
81
|
+
req?: Api.IReqParams;
|
|
82
|
+
}): Promise<{
|
|
83
|
+
connections: IConnections;
|
|
84
|
+
}>;
|
|
61
85
|
function GetCacheKey(id: OntologyId): string;
|
|
62
86
|
function GetListCacheKey(): string;
|
|
63
87
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Api } from "../api/api";
|
|
2
2
|
import { BruceApi } from "../api/bruce-api";
|
|
3
3
|
import { PendingAction } from "../server/pending-action";
|
|
4
|
+
import { UTC } from "../common/utc";
|
|
4
5
|
export declare namespace ExportNsx {
|
|
5
6
|
interface IAccountBackupParams {
|
|
6
7
|
"ClientFileDownloadConcurrency"?: number;
|
|
@@ -65,6 +66,30 @@ export declare namespace ExportNsx {
|
|
|
65
66
|
FileName: string;
|
|
66
67
|
StorePath: string;
|
|
67
68
|
}
|
|
69
|
+
enum EAccountBackupFileType {
|
|
70
|
+
DatabaseDump = "DatabaseDump",
|
|
71
|
+
NSX = "NSX"
|
|
72
|
+
}
|
|
73
|
+
interface IAccountBackupFile {
|
|
74
|
+
Name: string;
|
|
75
|
+
Date: UTC.TUTC | null;
|
|
76
|
+
Size: number;
|
|
77
|
+
Type: EAccountBackupFileType | string;
|
|
78
|
+
Path: string;
|
|
79
|
+
}
|
|
80
|
+
interface IAccountBackupFilesListRes {
|
|
81
|
+
files: IAccountBackupFile[];
|
|
82
|
+
}
|
|
83
|
+
interface IDeleteAccountBackupFilesReq {
|
|
84
|
+
Files: string[];
|
|
85
|
+
}
|
|
86
|
+
interface IDeleteAccountBackupFilesRes {
|
|
87
|
+
RequestedCount: number;
|
|
88
|
+
DeletedCount: number;
|
|
89
|
+
DeletedFiles: string[];
|
|
90
|
+
NotFoundCount: number;
|
|
91
|
+
NotFoundFiles: string[];
|
|
92
|
+
}
|
|
68
93
|
/**
|
|
69
94
|
* Starts a whole-account NSX backup export job.
|
|
70
95
|
* The generated NSX file is stored in the account's configured backup file store.
|
|
@@ -81,6 +106,21 @@ export declare namespace ExportNsx {
|
|
|
81
106
|
api?: BruceApi.Api;
|
|
82
107
|
req?: Api.IReqParams;
|
|
83
108
|
}): Promise<IAccountBackupListRes>;
|
|
109
|
+
/**
|
|
110
|
+
* Returns account database dump and NSX backup files with storage metadata.
|
|
111
|
+
*/
|
|
112
|
+
function GetAccountBackupFilesList(params?: {
|
|
113
|
+
api?: BruceApi.Api;
|
|
114
|
+
req?: Api.IReqParams;
|
|
115
|
+
}): Promise<IAccountBackupFilesListRes>;
|
|
116
|
+
/**
|
|
117
|
+
* Deletes selected account database dump and NSX backup files.
|
|
118
|
+
*/
|
|
119
|
+
function DeleteAccountBackupFiles(params: {
|
|
120
|
+
api?: BruceApi.Api;
|
|
121
|
+
fileNames: string[];
|
|
122
|
+
req?: Api.IReqParams;
|
|
123
|
+
}): Promise<IDeleteAccountBackupFilesRes>;
|
|
84
124
|
/**
|
|
85
125
|
* Downloads a saved whole-account NSX backup file.
|
|
86
126
|
*/
|
|
@@ -68,6 +68,7 @@ export declare namespace Markup {
|
|
|
68
68
|
interface IRow {
|
|
69
69
|
items: IRowItem[];
|
|
70
70
|
height: number;
|
|
71
|
+
id?: string;
|
|
71
72
|
}
|
|
72
73
|
enum EItemType {
|
|
73
74
|
Default = "DEFAULT",
|
|
@@ -77,6 +78,7 @@ export declare namespace Markup {
|
|
|
77
78
|
None = "NONE"
|
|
78
79
|
}
|
|
79
80
|
interface IRowItem {
|
|
81
|
+
id?: string;
|
|
80
82
|
text?: string;
|
|
81
83
|
embedRaw?: string;
|
|
82
84
|
icon?: string;
|
|
@@ -90,6 +90,20 @@ export declare namespace Style {
|
|
|
90
90
|
Path = "PATH",
|
|
91
91
|
Texture = "TEXTURE"
|
|
92
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* A look a renderer may put over a polygon, on top of whatever its fill already decided.
|
|
95
|
+
* Default is "NONE".
|
|
96
|
+
*/
|
|
97
|
+
enum EEffectType {
|
|
98
|
+
None = "NONE",
|
|
99
|
+
Water = "WATER"
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* An effect applied to a rendered polygon.
|
|
103
|
+
*/
|
|
104
|
+
interface IEffect {
|
|
105
|
+
type?: EEffectType;
|
|
106
|
+
}
|
|
93
107
|
/**
|
|
94
108
|
* Settings for rendering polygons.
|
|
95
109
|
*/
|
|
@@ -110,6 +124,7 @@ export declare namespace Style {
|
|
|
110
124
|
altitudeOption?: any;
|
|
111
125
|
zIndex?: Calculator.IField[];
|
|
112
126
|
drapeOver?: "TERRAIN" | "ALL";
|
|
127
|
+
effect?: IEffect;
|
|
113
128
|
}
|
|
114
129
|
/**
|
|
115
130
|
* Settings for rendering polylines.
|