bruce-models 2.9.1 → 2.9.3
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 +3 -6
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +3 -6
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/user/session.js +2 -5
- package/dist/lib/user/session.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/user/session.d.ts +2 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -10269,13 +10269,10 @@ var Session;
|
|
|
10269
10269
|
}
|
|
10270
10270
|
function Get(params) {
|
|
10271
10271
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10272
|
-
let { api, sessionId, req: reqParams } = params;
|
|
10272
|
+
let { api, sessionId, req: reqParams, accountId } = params;
|
|
10273
10273
|
if (!api) {
|
|
10274
10274
|
api = ENVIRONMENT.Api().GetGuardianApi();
|
|
10275
10275
|
}
|
|
10276
|
-
if (!sessionId) {
|
|
10277
|
-
throw ("Session ID is required.");
|
|
10278
|
-
}
|
|
10279
10276
|
const key = GetCacheKey(sessionId);
|
|
10280
10277
|
const cache = yield api.GetCacheItem(key, reqParams);
|
|
10281
10278
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -10283,7 +10280,7 @@ var Session;
|
|
|
10283
10280
|
}
|
|
10284
10281
|
const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
10285
10282
|
try {
|
|
10286
|
-
const data = yield api.GET(`session/${sessionId}`, reqParams);
|
|
10283
|
+
const data = yield api.GET(`session/${sessionId}${accountId ? `?account=${accountId}` : ""}`, reqParams);
|
|
10287
10284
|
res({
|
|
10288
10285
|
session: data
|
|
10289
10286
|
});
|
|
@@ -11995,7 +11992,7 @@ var DataSource;
|
|
|
11995
11992
|
DataSource.GetList = GetList;
|
|
11996
11993
|
})(DataSource || (DataSource = {}));
|
|
11997
11994
|
|
|
11998
|
-
const VERSION$1 = "2.9.
|
|
11995
|
+
const VERSION$1 = "2.9.3";
|
|
11999
11996
|
|
|
12000
11997
|
export { VERSION$1 as VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, CamApi, IdmApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
12001
11998
|
//# sourceMappingURL=bruce-models.es5.js.map
|