bruce-models 6.5.4 → 6.5.6
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 +59 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +59 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account-limits.js +58 -0
- package/dist/lib/account/account-limits.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/types/account/account-limits.d.ts +35 -2
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -13969,6 +13969,22 @@ var AccountLimits;
|
|
|
13969
13969
|
ELimit["EnableSSOLogin"] = "EnableSSOLogin";
|
|
13970
13970
|
ELimit["EnableSSOLoginAutoRedirect"] = "EnableSSOLoginAutoRedirect";
|
|
13971
13971
|
})(ELimit = AccountLimits$$1.ELimit || (AccountLimits$$1.ELimit = {}));
|
|
13972
|
+
/**
|
|
13973
|
+
* Types used to identify what 'path' is taken for an extension.
|
|
13974
|
+
* This is so clients know what import requests to perform, and what UI to present.
|
|
13975
|
+
*/
|
|
13976
|
+
let EFileImportType;
|
|
13977
|
+
(function (EFileImportType) {
|
|
13978
|
+
EFileImportType["Assembly"] = "ASSEMBLY";
|
|
13979
|
+
EFileImportType["GeoJSON"] = "GEOJSON";
|
|
13980
|
+
EFileImportType["JSON"] = "JSON";
|
|
13981
|
+
EFileImportType["CSV"] = "CSV";
|
|
13982
|
+
EFileImportType["KML"] = "KML";
|
|
13983
|
+
EFileImportType["TIF"] = "TIF";
|
|
13984
|
+
EFileImportType["LAS"] = "LAS";
|
|
13985
|
+
EFileImportType["DJI"] = "DJI";
|
|
13986
|
+
EFileImportType["NSX"] = "NSX";
|
|
13987
|
+
})(EFileImportType = AccountLimits$$1.EFileImportType || (AccountLimits$$1.EFileImportType = {}));
|
|
13972
13988
|
/**
|
|
13973
13989
|
* Returns a dictionary of limits for the given account.
|
|
13974
13990
|
* @param params
|
|
@@ -14086,6 +14102,48 @@ var AccountLimits;
|
|
|
14086
14102
|
*/
|
|
14087
14103
|
let Assert;
|
|
14088
14104
|
(function (Assert) {
|
|
14105
|
+
function GetFileImportSettings(params) {
|
|
14106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14107
|
+
if (!params.extension) {
|
|
14108
|
+
return {
|
|
14109
|
+
fileImport: [],
|
|
14110
|
+
errorText: "No extension provided for file import settings."
|
|
14111
|
+
};
|
|
14112
|
+
}
|
|
14113
|
+
if (!params.getters) {
|
|
14114
|
+
params.getters = ENVIRONMENT.Api();
|
|
14115
|
+
}
|
|
14116
|
+
if (!params.accountId) {
|
|
14117
|
+
params.accountId = params.getters.GetAccountId();
|
|
14118
|
+
}
|
|
14119
|
+
const { limits } = yield GetLimits({
|
|
14120
|
+
accountId: params.accountId,
|
|
14121
|
+
api: params.getters.GetGuardianApi()
|
|
14122
|
+
});
|
|
14123
|
+
const fileImport = limits.FileImport;
|
|
14124
|
+
if (!fileImport) {
|
|
14125
|
+
return {
|
|
14126
|
+
fileImport: [],
|
|
14127
|
+
errorText: null
|
|
14128
|
+
};
|
|
14129
|
+
}
|
|
14130
|
+
const extension = params.extension.replace(".", "").toLowerCase();
|
|
14131
|
+
const related = fileImport.filter((fImport) => {
|
|
14132
|
+
const iExtensions = fImport.Extension;
|
|
14133
|
+
if (!(iExtensions === null || iExtensions === void 0 ? void 0 : iExtensions.length)) {
|
|
14134
|
+
return false;
|
|
14135
|
+
}
|
|
14136
|
+
return iExtensions.some((ext) => {
|
|
14137
|
+
ext = ext.replace(".", "").toLowerCase();
|
|
14138
|
+
return ext === extension;
|
|
14139
|
+
});
|
|
14140
|
+
});
|
|
14141
|
+
return {
|
|
14142
|
+
fileImport: related
|
|
14143
|
+
};
|
|
14144
|
+
});
|
|
14145
|
+
}
|
|
14146
|
+
Assert.GetFileImportSettings = GetFileImportSettings;
|
|
14089
14147
|
/**
|
|
14090
14148
|
* Returns if project view creation is allowed for the account.
|
|
14091
14149
|
*/
|
|
@@ -16178,7 +16236,7 @@ var Tracking;
|
|
|
16178
16236
|
})(Tracking || (Tracking = {}));
|
|
16179
16237
|
|
|
16180
16238
|
// This is updated with the package.json version on build.
|
|
16181
|
-
const VERSION = "6.5.
|
|
16239
|
+
const VERSION = "6.5.6";
|
|
16182
16240
|
|
|
16183
16241
|
export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking };
|
|
16184
16242
|
//# sourceMappingURL=bruce-models.es5.js.map
|