bruce-models 6.5.3 → 6.5.5
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 +58 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +58 -2
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account-limits.js +56 -0
- package/dist/lib/account/account-limits.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/user/user.js +1 -1
- package/dist/lib/user/user.js.map +1 -1
- package/dist/types/account/account-limits.d.ts +33 -2
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -13216,7 +13216,7 @@
|
|
|
13216
13216
|
if (!expand) {
|
|
13217
13217
|
expand = "";
|
|
13218
13218
|
}
|
|
13219
|
-
return exports.Api.ECacheKey.User + exports.Api.ECacheKey.Id + userId + exports.Api.ECacheKey.Id + accountId + exports.Api.ECacheKey.Session + exports.Api.ECacheKey.Id + sessionId;
|
|
13219
|
+
return exports.Api.ECacheKey.User + exports.Api.ECacheKey.Id + userId + exports.Api.ECacheKey.Id + accountId + exports.Api.ECacheKey.Session + exports.Api.ECacheKey.Id + sessionId + exports.Api.ECacheKey.Id + expand;
|
|
13220
13220
|
}
|
|
13221
13221
|
User.GetCacheKey = GetCacheKey;
|
|
13222
13222
|
/**
|
|
@@ -13707,6 +13707,20 @@
|
|
|
13707
13707
|
ELimit["EnableSSOLogin"] = "EnableSSOLogin";
|
|
13708
13708
|
ELimit["EnableSSOLoginAutoRedirect"] = "EnableSSOLoginAutoRedirect";
|
|
13709
13709
|
})(ELimit = AccountLimits.ELimit || (AccountLimits.ELimit = {}));
|
|
13710
|
+
/**
|
|
13711
|
+
* Types used to identify what 'path' is taken for an extension.
|
|
13712
|
+
* This is so clients know what import requests to perform, and what UI to present.
|
|
13713
|
+
*/
|
|
13714
|
+
let EFileImportType;
|
|
13715
|
+
(function (EFileImportType) {
|
|
13716
|
+
EFileImportType["Assembly"] = "ASSEMBLY";
|
|
13717
|
+
EFileImportType["GeoJSON"] = "GEOJSON";
|
|
13718
|
+
EFileImportType["JSON"] = "JSON";
|
|
13719
|
+
EFileImportType["CSV"] = "CSV";
|
|
13720
|
+
EFileImportType["KML"] = "KML";
|
|
13721
|
+
EFileImportType["TIF"] = "TIF";
|
|
13722
|
+
EFileImportType["LAS"] = "LAS";
|
|
13723
|
+
})(EFileImportType = AccountLimits.EFileImportType || (AccountLimits.EFileImportType = {}));
|
|
13710
13724
|
/**
|
|
13711
13725
|
* Returns a dictionary of limits for the given account.
|
|
13712
13726
|
* @param params
|
|
@@ -13824,6 +13838,48 @@
|
|
|
13824
13838
|
*/
|
|
13825
13839
|
let Assert;
|
|
13826
13840
|
(function (Assert) {
|
|
13841
|
+
function GetFileImportSettings(params) {
|
|
13842
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13843
|
+
if (!params.extension) {
|
|
13844
|
+
return {
|
|
13845
|
+
fileImport: [],
|
|
13846
|
+
errorText: "No extension provided for file import settings."
|
|
13847
|
+
};
|
|
13848
|
+
}
|
|
13849
|
+
if (!params.getters) {
|
|
13850
|
+
params.getters = exports.ENVIRONMENT.Api();
|
|
13851
|
+
}
|
|
13852
|
+
if (!params.accountId) {
|
|
13853
|
+
params.accountId = params.getters.GetAccountId();
|
|
13854
|
+
}
|
|
13855
|
+
const { limits } = yield GetLimits({
|
|
13856
|
+
accountId: params.accountId,
|
|
13857
|
+
api: params.getters.GetGuardianApi()
|
|
13858
|
+
});
|
|
13859
|
+
const fileImport = limits.FileImport;
|
|
13860
|
+
if (!fileImport) {
|
|
13861
|
+
return {
|
|
13862
|
+
fileImport: [],
|
|
13863
|
+
errorText: null
|
|
13864
|
+
};
|
|
13865
|
+
}
|
|
13866
|
+
const extension = params.extension.replace(".", "").toLowerCase();
|
|
13867
|
+
const related = fileImport.filter((fImport) => {
|
|
13868
|
+
const iExtensions = fImport.Extension;
|
|
13869
|
+
if (!(iExtensions === null || iExtensions === void 0 ? void 0 : iExtensions.length)) {
|
|
13870
|
+
return false;
|
|
13871
|
+
}
|
|
13872
|
+
return iExtensions.some((ext) => {
|
|
13873
|
+
ext = ext.replace(".", "").toLowerCase();
|
|
13874
|
+
return ext === extension;
|
|
13875
|
+
});
|
|
13876
|
+
});
|
|
13877
|
+
return {
|
|
13878
|
+
fileImport: related
|
|
13879
|
+
};
|
|
13880
|
+
});
|
|
13881
|
+
}
|
|
13882
|
+
Assert.GetFileImportSettings = GetFileImportSettings;
|
|
13827
13883
|
/**
|
|
13828
13884
|
* Returns if project view creation is allowed for the account.
|
|
13829
13885
|
*/
|
|
@@ -15864,7 +15920,7 @@
|
|
|
15864
15920
|
})(exports.Tracking || (exports.Tracking = {}));
|
|
15865
15921
|
|
|
15866
15922
|
// This is updated with the package.json version on build.
|
|
15867
|
-
const VERSION = "6.5.
|
|
15923
|
+
const VERSION = "6.5.5";
|
|
15868
15924
|
|
|
15869
15925
|
exports.VERSION = VERSION;
|
|
15870
15926
|
exports.AbstractApi = AbstractApi;
|