bruce-models 7.1.106 → 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 +60 -4
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +60 -4
- 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/export/export-nsx.js +37 -0
- package/dist/lib/export/export-nsx.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/export/export-nsx.d.ts +40 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -1255,6 +1255,7 @@ class AbstractApi {
|
|
|
1255
1255
|
* This will NOT prepend the base URL to the provided URL.
|
|
1256
1256
|
* @param url
|
|
1257
1257
|
* @param params
|
|
1258
|
+
* @param data Optional request body.
|
|
1258
1259
|
* @returns
|
|
1259
1260
|
*/
|
|
1260
1261
|
get(url, params) {
|
|
@@ -1279,7 +1280,7 @@ class AbstractApi {
|
|
|
1279
1280
|
* @param params
|
|
1280
1281
|
* @returns
|
|
1281
1282
|
*/
|
|
1282
|
-
delete(url, params) {
|
|
1283
|
+
delete(url, params, data) {
|
|
1283
1284
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1284
1285
|
if (!params) {
|
|
1285
1286
|
params = {};
|
|
@@ -1287,9 +1288,13 @@ class AbstractApi {
|
|
|
1287
1288
|
params.headers = params.headers || {};
|
|
1288
1289
|
params.headers = Object.assign({ "Content-Type": "application/json;" }, params.headers);
|
|
1289
1290
|
this.applyAuthHeader(params.headers);
|
|
1291
|
+
if (data != null && typeof data != "string") {
|
|
1292
|
+
data = JSON.stringify(data);
|
|
1293
|
+
}
|
|
1290
1294
|
const res = yield fetch(url, {
|
|
1291
1295
|
headers: params.headers,
|
|
1292
1296
|
method: "DELETE",
|
|
1297
|
+
body: data,
|
|
1293
1298
|
signal: params.abortSignal
|
|
1294
1299
|
});
|
|
1295
1300
|
return parseResult(res);
|
|
@@ -1912,16 +1917,17 @@ var BruceApi;
|
|
|
1912
1917
|
* This will prepend the base url to the url.
|
|
1913
1918
|
* @param url
|
|
1914
1919
|
* @param params
|
|
1920
|
+
* @param data Optional request body.
|
|
1915
1921
|
* @returns
|
|
1916
1922
|
*/
|
|
1917
|
-
DELETE(url, params) {
|
|
1923
|
+
DELETE(url, params, data) {
|
|
1918
1924
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1919
1925
|
return new Promise((res, rej) => {
|
|
1920
1926
|
this.loadProm.then(() => {
|
|
1921
1927
|
const full = this.ConstructUrl({
|
|
1922
1928
|
url: url
|
|
1923
1929
|
});
|
|
1924
|
-
this.delete(full, params).then(res).catch(rej);
|
|
1930
|
+
this.delete(full, params, data).then(res).catch(rej);
|
|
1925
1931
|
}).catch(rej);
|
|
1926
1932
|
});
|
|
1927
1933
|
});
|
|
@@ -2749,6 +2755,19 @@ var Account;
|
|
|
2749
2755
|
});
|
|
2750
2756
|
}
|
|
2751
2757
|
Account.Cleanup = Cleanup;
|
|
2758
|
+
/**
|
|
2759
|
+
* Returns file counts and sizes for each storage category in the current account.
|
|
2760
|
+
*/
|
|
2761
|
+
function GetFilesSummary(params) {
|
|
2762
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2763
|
+
let { api, req: reqParams } = params !== null && params !== void 0 ? params : {};
|
|
2764
|
+
if (!api) {
|
|
2765
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
2766
|
+
}
|
|
2767
|
+
return api.GET("account/filesSummary", Api.PrepReqParams(reqParams));
|
|
2768
|
+
});
|
|
2769
|
+
}
|
|
2770
|
+
Account.GetFilesSummary = GetFilesSummary;
|
|
2752
2771
|
/**
|
|
2753
2772
|
* Returns cache identifier for an account by ID.
|
|
2754
2773
|
* Example: {
|
|
@@ -17853,6 +17872,11 @@ var ExportCsv;
|
|
|
17853
17872
|
|
|
17854
17873
|
var ExportNsx;
|
|
17855
17874
|
(function (ExportNsx) {
|
|
17875
|
+
let EAccountBackupFileType;
|
|
17876
|
+
(function (EAccountBackupFileType) {
|
|
17877
|
+
EAccountBackupFileType["DatabaseDump"] = "DatabaseDump";
|
|
17878
|
+
EAccountBackupFileType["NSX"] = "NSX";
|
|
17879
|
+
})(EAccountBackupFileType = ExportNsx.EAccountBackupFileType || (ExportNsx.EAccountBackupFileType = {}));
|
|
17856
17880
|
/**
|
|
17857
17881
|
* Starts a whole-account NSX backup export job.
|
|
17858
17882
|
* The generated NSX file is stored in the account's configured backup file store.
|
|
@@ -17880,6 +17904,38 @@ var ExportNsx;
|
|
|
17880
17904
|
});
|
|
17881
17905
|
}
|
|
17882
17906
|
ExportNsx.GetAccountBackupList = GetAccountBackupList;
|
|
17907
|
+
/**
|
|
17908
|
+
* Returns account database dump and NSX backup files with storage metadata.
|
|
17909
|
+
*/
|
|
17910
|
+
function GetAccountBackupFilesList(params) {
|
|
17911
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17912
|
+
let { api, req: reqParams } = params !== null && params !== void 0 ? params : {};
|
|
17913
|
+
if (!api) {
|
|
17914
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
17915
|
+
}
|
|
17916
|
+
return api.GET("account/backupFilesList", Api.PrepReqParams(reqParams));
|
|
17917
|
+
});
|
|
17918
|
+
}
|
|
17919
|
+
ExportNsx.GetAccountBackupFilesList = GetAccountBackupFilesList;
|
|
17920
|
+
/**
|
|
17921
|
+
* Deletes selected account database dump and NSX backup files.
|
|
17922
|
+
*/
|
|
17923
|
+
function DeleteAccountBackupFiles(params) {
|
|
17924
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17925
|
+
let { api, fileNames, req: reqParams } = params;
|
|
17926
|
+
if (!(fileNames === null || fileNames === void 0 ? void 0 : fileNames.length)) {
|
|
17927
|
+
throw new Error("At least one backup file name is required.");
|
|
17928
|
+
}
|
|
17929
|
+
if (!api) {
|
|
17930
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
17931
|
+
}
|
|
17932
|
+
const data = {
|
|
17933
|
+
Files: fileNames
|
|
17934
|
+
};
|
|
17935
|
+
return api.DELETE("account/backupFiles", Api.PrepReqParams(reqParams), data);
|
|
17936
|
+
});
|
|
17937
|
+
}
|
|
17938
|
+
ExportNsx.DeleteAccountBackupFiles = DeleteAccountBackupFiles;
|
|
17883
17939
|
/**
|
|
17884
17940
|
* Downloads a saved whole-account NSX backup file.
|
|
17885
17941
|
*/
|
|
@@ -24690,7 +24746,7 @@ function getFirstWrappedArray(data, wrapperKeys) {
|
|
|
24690
24746
|
}
|
|
24691
24747
|
|
|
24692
24748
|
// This is updated with the package.json version on build.
|
|
24693
|
-
const VERSION = "7.1.
|
|
24749
|
+
const VERSION = "7.1.107";
|
|
24694
24750
|
|
|
24695
24751
|
export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, ClientFileValueMap, Bounds, BruceEvent, BruceVariable, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, RequestLane, GeoJson, Geometry, LRUCache, UTC, CustomForm, DashboardView, DataFeed, DataLab, DataLabGroup, DataSource, DataTransform, Comment, Entity, EntityAttachment, EntityAttachmentType, EntityAttribute, EntityComment, EntityCoords, EntityHistoricData, EntityLink, EntityLod, EntityLodCategory, EntityRelation, EntityRelationType, EntitySource, EntityTableView, EntityTag, EntityType, EntityTypeRelation, EntityTypeTrigger, Ontology, OntologyDocument, ENVIRONMENT, ExportBrz, ExportCsv, ExportNsx, ExportUsd, Hexbin, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportTif, ImportedFile, Uploader, Markup, UIMarkup, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, Plugin, PluginAiTool, ProgramKey, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewBookmarkGroup, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewLegacyTile, ProjectViewTile, ZoomControl, Scenario, HostingLocation, MessageBroker, PendingAction, RecordChangeFeed, Style, Tileset, Tracking, Permission, Session, User, UserGroup, UserMfaMethod, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, WorkflowItem, WorkflowSchedule, WorkflowType, WorkflowItemType };
|
|
24696
24752
|
//# sourceMappingURL=bruce-models.es5.js.map
|