bruce-models 7.1.68 → 7.1.69
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 +154 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +148 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account-concept.js +2 -0
- package/dist/lib/account/account-concept.js.map +1 -1
- package/dist/lib/api/api.js +1 -0
- package/dist/lib/api/api.js.map +1 -1
- package/dist/lib/bruce-models.js +2 -1
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/markup/ui-markup.js +161 -0
- package/dist/lib/markup/ui-markup.js.map +1 -0
- package/dist/lib/server/record-change-feed.js +2 -0
- package/dist/lib/server/record-change-feed.js.map +1 -1
- package/dist/types/account/account-concept.d.ts +1 -0
- package/dist/types/api/api.d.ts +1 -0
- package/dist/types/bruce-models.d.ts +2 -1
- package/dist/types/markup/ui-markup.d.ts +84 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
ECacheKey["DatabaseRegion"] = "databaseregion";
|
|
85
85
|
ECacheKey["CustomForm"] = "customform";
|
|
86
86
|
ECacheKey["ImportedFile"] = "importedfile";
|
|
87
|
+
ECacheKey["UIMarkup"] = "uimarkup";
|
|
87
88
|
ECacheKey["Plugin"] = "plugin";
|
|
88
89
|
ECacheKey["PluginIndexFile"] = "pluginindexfile";
|
|
89
90
|
ECacheKey["EntityHistoricData"] = "entityhistoricdata";
|
|
@@ -353,6 +354,7 @@
|
|
|
353
354
|
EConcept["TILESET"] = "ts";
|
|
354
355
|
EConcept["UI_DASHBOARD_VIEW"] = "dbv";
|
|
355
356
|
EConcept["UI_ENTITY_DISPLAY_SETTING"] = "s";
|
|
357
|
+
EConcept["UI_MARKUP"] = "um";
|
|
356
358
|
EConcept["UI_PLUGIN"] = "pg";
|
|
357
359
|
EConcept["UI_SLIDE"] = "pvs";
|
|
358
360
|
EConcept["UI_SLIDE_GROUP"] = "sg";
|
|
@@ -418,6 +420,7 @@
|
|
|
418
420
|
{ concept: EConcept.TILESET, label: "Tileset", description: undefined },
|
|
419
421
|
{ concept: EConcept.UI_DASHBOARD_VIEW, label: "Dashboard View", description: undefined },
|
|
420
422
|
{ concept: EConcept.UI_ENTITY_DISPLAY_SETTING, label: "Style", description: undefined },
|
|
423
|
+
{ concept: EConcept.UI_MARKUP, label: "Markup", description: undefined },
|
|
421
424
|
{ concept: EConcept.UI_PLUGIN, label: "Plugin", description: undefined },
|
|
422
425
|
{ concept: EConcept.UI_SLIDE, label: "Bookmark", description: undefined },
|
|
423
426
|
{ concept: EConcept.UI_SLIDE_GROUP, label: "Bookmark Group", description: undefined },
|
|
@@ -655,6 +658,8 @@
|
|
|
655
658
|
return [exports.Api.ECacheKey.Tileset, exports.Api.ECacheKey.PublishTileset, exports.Api.ECacheKey.TilesetAccess];
|
|
656
659
|
case exports.AccountConcept.EConcept.UI_ENTITY_DISPLAY_SETTING:
|
|
657
660
|
return [exports.Api.ECacheKey.Style];
|
|
661
|
+
case exports.AccountConcept.EConcept.UI_MARKUP:
|
|
662
|
+
return [exports.Api.ECacheKey.UIMarkup];
|
|
658
663
|
case exports.AccountConcept.EConcept.UI_PLUGIN:
|
|
659
664
|
return [exports.Api.ECacheKey.Plugin, exports.Api.ECacheKey.PluginIndexFile];
|
|
660
665
|
case exports.AccountConcept.EConcept.UI_SLIDE:
|
|
@@ -14529,6 +14534,148 @@
|
|
|
14529
14534
|
})(Circle = Markup.Circle || (Markup.Circle = {}));
|
|
14530
14535
|
})(exports.Markup || (exports.Markup = {}));
|
|
14531
14536
|
|
|
14537
|
+
(function (UIMarkup) {
|
|
14538
|
+
/**
|
|
14539
|
+
* Returns a UI.Markup record.
|
|
14540
|
+
* @param params
|
|
14541
|
+
*/
|
|
14542
|
+
function Get(params) {
|
|
14543
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14544
|
+
let { api, markupId, req: reqParams } = params;
|
|
14545
|
+
if (markupId == null || markupId <= 0) {
|
|
14546
|
+
throw ("Markup ID is required.");
|
|
14547
|
+
}
|
|
14548
|
+
if (!api) {
|
|
14549
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
14550
|
+
}
|
|
14551
|
+
const key = GetCacheKey(markupId);
|
|
14552
|
+
const cache = api.GetCacheItem(key, reqParams);
|
|
14553
|
+
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
14554
|
+
return cache.data;
|
|
14555
|
+
}
|
|
14556
|
+
const req = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
14557
|
+
try {
|
|
14558
|
+
const data = yield api.GET(`ui.markup/${markupId}`, exports.Api.PrepReqParams(reqParams));
|
|
14559
|
+
res({
|
|
14560
|
+
markup: data
|
|
14561
|
+
});
|
|
14562
|
+
}
|
|
14563
|
+
catch (e) {
|
|
14564
|
+
rej(e);
|
|
14565
|
+
}
|
|
14566
|
+
}));
|
|
14567
|
+
api.SetCacheItem({
|
|
14568
|
+
key,
|
|
14569
|
+
value: req,
|
|
14570
|
+
req: reqParams
|
|
14571
|
+
});
|
|
14572
|
+
return req;
|
|
14573
|
+
});
|
|
14574
|
+
}
|
|
14575
|
+
UIMarkup.Get = Get;
|
|
14576
|
+
/**
|
|
14577
|
+
* Returns the list of UI.Markup records.
|
|
14578
|
+
* @param params
|
|
14579
|
+
*/
|
|
14580
|
+
function GetList(params) {
|
|
14581
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14582
|
+
if (!params) {
|
|
14583
|
+
params = {};
|
|
14584
|
+
}
|
|
14585
|
+
let { api, req: reqParams } = params;
|
|
14586
|
+
if (!api) {
|
|
14587
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
14588
|
+
}
|
|
14589
|
+
const key = GetListCacheKey();
|
|
14590
|
+
const cache = api.GetCacheItem(key, reqParams);
|
|
14591
|
+
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
14592
|
+
return cache.data;
|
|
14593
|
+
}
|
|
14594
|
+
const req = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
14595
|
+
var _a;
|
|
14596
|
+
try {
|
|
14597
|
+
const data = yield api.GET("ui.markups", exports.Api.PrepReqParams(reqParams));
|
|
14598
|
+
res({
|
|
14599
|
+
markups: (_a = data === null || data === void 0 ? void 0 : data.Items) !== null && _a !== void 0 ? _a : []
|
|
14600
|
+
});
|
|
14601
|
+
}
|
|
14602
|
+
catch (e) {
|
|
14603
|
+
rej(e);
|
|
14604
|
+
}
|
|
14605
|
+
}));
|
|
14606
|
+
api.SetCacheItem({
|
|
14607
|
+
key,
|
|
14608
|
+
value: req,
|
|
14609
|
+
req: reqParams
|
|
14610
|
+
});
|
|
14611
|
+
return req;
|
|
14612
|
+
});
|
|
14613
|
+
}
|
|
14614
|
+
UIMarkup.GetList = GetList;
|
|
14615
|
+
/**
|
|
14616
|
+
* Creates or updates a UI.Markup record.
|
|
14617
|
+
* @param params
|
|
14618
|
+
*/
|
|
14619
|
+
function Update(params) {
|
|
14620
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14621
|
+
let { markup, api, req: reqParams } = params;
|
|
14622
|
+
if (!api) {
|
|
14623
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
14624
|
+
}
|
|
14625
|
+
if (!markup) {
|
|
14626
|
+
markup = {};
|
|
14627
|
+
}
|
|
14628
|
+
const markupId = markup.ID && markup.ID > 0 ? markup.ID : 0;
|
|
14629
|
+
const res = yield api.POST(`ui.markup/${markupId}`, markup, exports.Api.PrepReqParams(reqParams));
|
|
14630
|
+
if (markup.ID && markup.ID > 0) {
|
|
14631
|
+
api.Cache.Remove(GetCacheKey(markup.ID));
|
|
14632
|
+
}
|
|
14633
|
+
if ((res === null || res === void 0 ? void 0 : res.ID) && res.ID > 0) {
|
|
14634
|
+
api.Cache.Remove(GetCacheKey(res.ID));
|
|
14635
|
+
}
|
|
14636
|
+
api.Cache.RemoveByStartsWith(GetListCacheKey());
|
|
14637
|
+
return {
|
|
14638
|
+
markup: res
|
|
14639
|
+
};
|
|
14640
|
+
});
|
|
14641
|
+
}
|
|
14642
|
+
UIMarkup.Update = Update;
|
|
14643
|
+
/**
|
|
14644
|
+
* Deletes a UI.Markup record.
|
|
14645
|
+
* @param params
|
|
14646
|
+
*/
|
|
14647
|
+
function Delete(params) {
|
|
14648
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14649
|
+
let { markupId, api, req: reqParams } = params;
|
|
14650
|
+
if (markupId == null || markupId <= 0) {
|
|
14651
|
+
throw ("Markup ID is required.");
|
|
14652
|
+
}
|
|
14653
|
+
if (!api) {
|
|
14654
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
14655
|
+
}
|
|
14656
|
+
yield api.DELETE(`ui.markup/${markupId}`, exports.Api.PrepReqParams(reqParams));
|
|
14657
|
+
api.Cache.Remove(GetCacheKey(markupId));
|
|
14658
|
+
api.Cache.RemoveByStartsWith(GetListCacheKey());
|
|
14659
|
+
});
|
|
14660
|
+
}
|
|
14661
|
+
UIMarkup.Delete = Delete;
|
|
14662
|
+
/**
|
|
14663
|
+
* Returns cache identifier for a UI.Markup record.
|
|
14664
|
+
* @param id
|
|
14665
|
+
*/
|
|
14666
|
+
function GetCacheKey(id) {
|
|
14667
|
+
return `${exports.Api.ECacheKey.UIMarkup}${exports.Api.ECacheKey.Id}${id}`;
|
|
14668
|
+
}
|
|
14669
|
+
UIMarkup.GetCacheKey = GetCacheKey;
|
|
14670
|
+
/**
|
|
14671
|
+
* Returns cache identifier for the UI.Markup list.
|
|
14672
|
+
*/
|
|
14673
|
+
function GetListCacheKey() {
|
|
14674
|
+
return exports.Api.ECacheKey.UIMarkup;
|
|
14675
|
+
}
|
|
14676
|
+
UIMarkup.GetListCacheKey = GetListCacheKey;
|
|
14677
|
+
})(exports.UIMarkup || (exports.UIMarkup = {}));
|
|
14678
|
+
|
|
14532
14679
|
const DEFAULT_JOB_POLL_INTERVAL_MS = 1000;
|
|
14533
14680
|
const DEFAULT_JOB_POLL_TIMEOUT_MS = 10 * 60 * 1000; // match server timeout (10 minutes)
|
|
14534
14681
|
const NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED = "entity_highlight_applied";
|
|
@@ -19258,7 +19405,7 @@
|
|
|
19258
19405
|
})(exports.UrlUtils || (exports.UrlUtils = {}));
|
|
19259
19406
|
|
|
19260
19407
|
// This is updated with the package.json version on build.
|
|
19261
|
-
const VERSION = "7.1.
|
|
19408
|
+
const VERSION = "7.1.69";
|
|
19262
19409
|
|
|
19263
19410
|
exports.VERSION = VERSION;
|
|
19264
19411
|
exports.AbstractApi = AbstractApi;
|