bruce-models 6.7.8 → 6.7.9
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 +24 -34
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +24 -34
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account-limits.js +9 -29
- package/dist/lib/account/account-limits.js.map +1 -1
- package/dist/lib/api/bruce-api.js +5 -3
- package/dist/lib/api/bruce-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/environment.js +9 -1
- package/dist/lib/environment.js.map +1 -1
- package/dist/types/account/account-limits.d.ts +0 -5
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/environment.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -1092,9 +1092,11 @@ var BruceApi;
|
|
|
1092
1092
|
});
|
|
1093
1093
|
}
|
|
1094
1094
|
if (!account) {
|
|
1095
|
-
account = (yield Account.
|
|
1096
|
-
|
|
1097
|
-
api: guardian
|
|
1095
|
+
account = (yield Account.Get({
|
|
1096
|
+
accountId: this.accountId,
|
|
1097
|
+
api: guardian,
|
|
1098
|
+
appId: ENVIRONMENT.PARAMS.appId,
|
|
1099
|
+
expand: ["limit"]
|
|
1098
1100
|
})).account;
|
|
1099
1101
|
}
|
|
1100
1102
|
if (!this.loadCancelled) {
|
|
@@ -1794,7 +1796,9 @@ var ENVIRONMENT;
|
|
|
1794
1796
|
// Default environment.
|
|
1795
1797
|
env: Api.EEnv.PROD,
|
|
1796
1798
|
// Default session ID.
|
|
1797
|
-
sessionId: ENVIRONMENT.GetPageLoadSessionId()
|
|
1799
|
+
sessionId: ENVIRONMENT.GetPageLoadSessionId(),
|
|
1800
|
+
// Default app ID to use when loading account data.
|
|
1801
|
+
appId: null
|
|
1798
1802
|
};
|
|
1799
1803
|
// Subscribe to get notified when someone calls Reset.
|
|
1800
1804
|
// If you are manually updating params, call OnParamsChange.Trigger() to notify others.
|
|
@@ -1827,6 +1831,12 @@ var ENVIRONMENT;
|
|
|
1827
1831
|
if (ENVIRONMENT.IS_SELF_MANAGED) {
|
|
1828
1832
|
throw ("Self managed mode ON. You are getting this error because you didn't pass an Api instance to a function.");
|
|
1829
1833
|
}
|
|
1834
|
+
if (params.appId) {
|
|
1835
|
+
ENVIRONMENT.PARAMS.appId = params.appId;
|
|
1836
|
+
}
|
|
1837
|
+
if (params.env) {
|
|
1838
|
+
ENVIRONMENT.PARAMS.env = params.env;
|
|
1839
|
+
}
|
|
1830
1840
|
if (_getters) {
|
|
1831
1841
|
_getters.ClearCache();
|
|
1832
1842
|
if (params.accountId) {
|
|
@@ -14238,28 +14248,16 @@ var AccountLimits;
|
|
|
14238
14248
|
api = ENVIRONMENT.Api().GetGuardianApi();
|
|
14239
14249
|
}
|
|
14240
14250
|
req = Api.PrepReqParams(req);
|
|
14241
|
-
const
|
|
14242
|
-
|
|
14243
|
-
|
|
14244
|
-
|
|
14245
|
-
|
|
14246
|
-
try {
|
|
14247
|
-
const data = yield api.GET(`account/${accountId}?WithLimits=true`);
|
|
14248
|
-
const limits = data.Limits ? data.Limits : {};
|
|
14249
|
-
res({
|
|
14250
|
-
limits: limits
|
|
14251
|
-
});
|
|
14252
|
-
}
|
|
14253
|
-
catch (e) {
|
|
14254
|
-
rej(e);
|
|
14255
|
-
}
|
|
14256
|
-
}));
|
|
14257
|
-
api.SetCacheItem({
|
|
14258
|
-
key: GetLimitsCacheKey(accountId),
|
|
14259
|
-
value: prom,
|
|
14260
|
-
req: req
|
|
14251
|
+
const { account } = yield Account.Get({
|
|
14252
|
+
accountId: accountId,
|
|
14253
|
+
api: api,
|
|
14254
|
+
expand: ["limit"],
|
|
14255
|
+
appId: ENVIRONMENT.PARAMS.appId
|
|
14261
14256
|
});
|
|
14262
|
-
|
|
14257
|
+
const limits = account["Limits"] || {};
|
|
14258
|
+
return {
|
|
14259
|
+
limits: limits
|
|
14260
|
+
};
|
|
14263
14261
|
});
|
|
14264
14262
|
}
|
|
14265
14263
|
AccountLimits$$1.GetLimits = GetLimits;
|
|
@@ -14849,14 +14847,6 @@ var AccountLimits;
|
|
|
14849
14847
|
}
|
|
14850
14848
|
Assert.GetDenyPublicAccess = GetDenyPublicAccess;
|
|
14851
14849
|
})(Assert = AccountLimits$$1.Assert || (AccountLimits$$1.Assert = {}));
|
|
14852
|
-
/**
|
|
14853
|
-
* Cache key for requesting account limits for a specific account.
|
|
14854
|
-
* @param accountId
|
|
14855
|
-
*/
|
|
14856
|
-
function GetLimitsCacheKey(accountId) {
|
|
14857
|
-
return Api.ECacheKey.AccountLimits + Api.ECacheKey.Id + accountId;
|
|
14858
|
-
}
|
|
14859
|
-
AccountLimits$$1.GetLimitsCacheKey = GetLimitsCacheKey;
|
|
14860
14850
|
})(AccountLimits || (AccountLimits = {}));
|
|
14861
14851
|
|
|
14862
14852
|
/**
|
|
@@ -16477,7 +16467,7 @@ var Tracking;
|
|
|
16477
16467
|
})(Tracking || (Tracking = {}));
|
|
16478
16468
|
|
|
16479
16469
|
// This is updated with the package.json version on build.
|
|
16480
|
-
const VERSION = "6.7.
|
|
16470
|
+
const VERSION = "6.7.9";
|
|
16481
16471
|
|
|
16482
16472
|
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, UserMfaMethod, 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 };
|
|
16483
16473
|
//# sourceMappingURL=bruce-models.es5.js.map
|