bruce-models 7.1.67 → 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 +178 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +172 -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/data-source/data-source.js +24 -0
- package/dist/lib/data-source/data-source.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/data-source/data-source.d.ts +16 -0
- package/dist/types/markup/ui-markup.d.ts +84 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -79,6 +79,7 @@ var Api;
|
|
|
79
79
|
ECacheKey["DatabaseRegion"] = "databaseregion";
|
|
80
80
|
ECacheKey["CustomForm"] = "customform";
|
|
81
81
|
ECacheKey["ImportedFile"] = "importedfile";
|
|
82
|
+
ECacheKey["UIMarkup"] = "uimarkup";
|
|
82
83
|
ECacheKey["Plugin"] = "plugin";
|
|
83
84
|
ECacheKey["PluginIndexFile"] = "pluginindexfile";
|
|
84
85
|
ECacheKey["EntityHistoricData"] = "entityhistoricdata";
|
|
@@ -353,6 +354,7 @@ var AccountConcept;
|
|
|
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 @@ var AccountConcept;
|
|
|
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 },
|
|
@@ -660,6 +663,8 @@ var RecordChangeFeed;
|
|
|
660
663
|
return [Api.ECacheKey.Tileset, Api.ECacheKey.PublishTileset, Api.ECacheKey.TilesetAccess];
|
|
661
664
|
case AccountConcept.EConcept.UI_ENTITY_DISPLAY_SETTING:
|
|
662
665
|
return [Api.ECacheKey.Style];
|
|
666
|
+
case AccountConcept.EConcept.UI_MARKUP:
|
|
667
|
+
return [Api.ECacheKey.UIMarkup];
|
|
663
668
|
case AccountConcept.EConcept.UI_PLUGIN:
|
|
664
669
|
return [Api.ECacheKey.Plugin, Api.ECacheKey.PluginIndexFile];
|
|
665
670
|
case AccountConcept.EConcept.UI_SLIDE:
|
|
@@ -10804,6 +10809,30 @@ var DataSource;
|
|
|
10804
10809
|
});
|
|
10805
10810
|
}
|
|
10806
10811
|
DataSource.Analyze = Analyze;
|
|
10812
|
+
/**
|
|
10813
|
+
* Retrieves the available datasets from an ERDDAP instance.
|
|
10814
|
+
* This calls: GET sources/erddap/getCapabilities?url={erddapUrl}
|
|
10815
|
+
* @param params
|
|
10816
|
+
*/
|
|
10817
|
+
function GetERDDAPCapabilities(params) {
|
|
10818
|
+
var _a;
|
|
10819
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10820
|
+
let { url, api, req: reqParams } = params;
|
|
10821
|
+
if (!url) {
|
|
10822
|
+
throw ("ERDDAP URL is required.");
|
|
10823
|
+
}
|
|
10824
|
+
if (!api) {
|
|
10825
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
10826
|
+
}
|
|
10827
|
+
const query = new URLSearchParams();
|
|
10828
|
+
query.append("url", url);
|
|
10829
|
+
const res = yield api.GET(`sources/erddap/getCapabilities?${query.toString()}`, Api.PrepReqParams(reqParams));
|
|
10830
|
+
return {
|
|
10831
|
+
datasets: (_a = res === null || res === void 0 ? void 0 : res.Datasets) !== null && _a !== void 0 ? _a : []
|
|
10832
|
+
};
|
|
10833
|
+
});
|
|
10834
|
+
}
|
|
10835
|
+
DataSource.GetERDDAPCapabilities = GetERDDAPCapabilities;
|
|
10807
10836
|
/**
|
|
10808
10837
|
* Makes a diagnostic sample request to a registered data source.
|
|
10809
10838
|
* This calls: POST source/{source_id}/requestSample
|
|
@@ -14755,6 +14784,153 @@ var Markup;
|
|
|
14755
14784
|
})(Circle = Markup.Circle || (Markup.Circle = {}));
|
|
14756
14785
|
})(Markup || (Markup = {}));
|
|
14757
14786
|
|
|
14787
|
+
/**
|
|
14788
|
+
* Describes the "UI.Markup" concept within Nextspace.
|
|
14789
|
+
* These records store reusable markup payloads as first-class API records.
|
|
14790
|
+
*/
|
|
14791
|
+
var UIMarkup;
|
|
14792
|
+
(function (UIMarkup) {
|
|
14793
|
+
/**
|
|
14794
|
+
* Returns a UI.Markup record.
|
|
14795
|
+
* @param params
|
|
14796
|
+
*/
|
|
14797
|
+
function Get(params) {
|
|
14798
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14799
|
+
let { api, markupId, req: reqParams } = params;
|
|
14800
|
+
if (markupId == null || markupId <= 0) {
|
|
14801
|
+
throw ("Markup ID is required.");
|
|
14802
|
+
}
|
|
14803
|
+
if (!api) {
|
|
14804
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
14805
|
+
}
|
|
14806
|
+
const key = GetCacheKey(markupId);
|
|
14807
|
+
const cache = api.GetCacheItem(key, reqParams);
|
|
14808
|
+
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
14809
|
+
return cache.data;
|
|
14810
|
+
}
|
|
14811
|
+
const req = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
14812
|
+
try {
|
|
14813
|
+
const data = yield api.GET(`ui.markup/${markupId}`, Api.PrepReqParams(reqParams));
|
|
14814
|
+
res({
|
|
14815
|
+
markup: data
|
|
14816
|
+
});
|
|
14817
|
+
}
|
|
14818
|
+
catch (e) {
|
|
14819
|
+
rej(e);
|
|
14820
|
+
}
|
|
14821
|
+
}));
|
|
14822
|
+
api.SetCacheItem({
|
|
14823
|
+
key,
|
|
14824
|
+
value: req,
|
|
14825
|
+
req: reqParams
|
|
14826
|
+
});
|
|
14827
|
+
return req;
|
|
14828
|
+
});
|
|
14829
|
+
}
|
|
14830
|
+
UIMarkup.Get = Get;
|
|
14831
|
+
/**
|
|
14832
|
+
* Returns the list of UI.Markup records.
|
|
14833
|
+
* @param params
|
|
14834
|
+
*/
|
|
14835
|
+
function GetList(params) {
|
|
14836
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14837
|
+
if (!params) {
|
|
14838
|
+
params = {};
|
|
14839
|
+
}
|
|
14840
|
+
let { api, req: reqParams } = params;
|
|
14841
|
+
if (!api) {
|
|
14842
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
14843
|
+
}
|
|
14844
|
+
const key = GetListCacheKey();
|
|
14845
|
+
const cache = api.GetCacheItem(key, reqParams);
|
|
14846
|
+
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
14847
|
+
return cache.data;
|
|
14848
|
+
}
|
|
14849
|
+
const req = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
14850
|
+
var _a;
|
|
14851
|
+
try {
|
|
14852
|
+
const data = yield api.GET("ui.markups", Api.PrepReqParams(reqParams));
|
|
14853
|
+
res({
|
|
14854
|
+
markups: (_a = data === null || data === void 0 ? void 0 : data.Items) !== null && _a !== void 0 ? _a : []
|
|
14855
|
+
});
|
|
14856
|
+
}
|
|
14857
|
+
catch (e) {
|
|
14858
|
+
rej(e);
|
|
14859
|
+
}
|
|
14860
|
+
}));
|
|
14861
|
+
api.SetCacheItem({
|
|
14862
|
+
key,
|
|
14863
|
+
value: req,
|
|
14864
|
+
req: reqParams
|
|
14865
|
+
});
|
|
14866
|
+
return req;
|
|
14867
|
+
});
|
|
14868
|
+
}
|
|
14869
|
+
UIMarkup.GetList = GetList;
|
|
14870
|
+
/**
|
|
14871
|
+
* Creates or updates a UI.Markup record.
|
|
14872
|
+
* @param params
|
|
14873
|
+
*/
|
|
14874
|
+
function Update(params) {
|
|
14875
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14876
|
+
let { markup, api, req: reqParams } = params;
|
|
14877
|
+
if (!api) {
|
|
14878
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
14879
|
+
}
|
|
14880
|
+
if (!markup) {
|
|
14881
|
+
markup = {};
|
|
14882
|
+
}
|
|
14883
|
+
const markupId = markup.ID && markup.ID > 0 ? markup.ID : 0;
|
|
14884
|
+
const res = yield api.POST(`ui.markup/${markupId}`, markup, Api.PrepReqParams(reqParams));
|
|
14885
|
+
if (markup.ID && markup.ID > 0) {
|
|
14886
|
+
api.Cache.Remove(GetCacheKey(markup.ID));
|
|
14887
|
+
}
|
|
14888
|
+
if ((res === null || res === void 0 ? void 0 : res.ID) && res.ID > 0) {
|
|
14889
|
+
api.Cache.Remove(GetCacheKey(res.ID));
|
|
14890
|
+
}
|
|
14891
|
+
api.Cache.RemoveByStartsWith(GetListCacheKey());
|
|
14892
|
+
return {
|
|
14893
|
+
markup: res
|
|
14894
|
+
};
|
|
14895
|
+
});
|
|
14896
|
+
}
|
|
14897
|
+
UIMarkup.Update = Update;
|
|
14898
|
+
/**
|
|
14899
|
+
* Deletes a UI.Markup record.
|
|
14900
|
+
* @param params
|
|
14901
|
+
*/
|
|
14902
|
+
function Delete(params) {
|
|
14903
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14904
|
+
let { markupId, api, req: reqParams } = params;
|
|
14905
|
+
if (markupId == null || markupId <= 0) {
|
|
14906
|
+
throw ("Markup ID is required.");
|
|
14907
|
+
}
|
|
14908
|
+
if (!api) {
|
|
14909
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
14910
|
+
}
|
|
14911
|
+
yield api.DELETE(`ui.markup/${markupId}`, Api.PrepReqParams(reqParams));
|
|
14912
|
+
api.Cache.Remove(GetCacheKey(markupId));
|
|
14913
|
+
api.Cache.RemoveByStartsWith(GetListCacheKey());
|
|
14914
|
+
});
|
|
14915
|
+
}
|
|
14916
|
+
UIMarkup.Delete = Delete;
|
|
14917
|
+
/**
|
|
14918
|
+
* Returns cache identifier for a UI.Markup record.
|
|
14919
|
+
* @param id
|
|
14920
|
+
*/
|
|
14921
|
+
function GetCacheKey(id) {
|
|
14922
|
+
return `${Api.ECacheKey.UIMarkup}${Api.ECacheKey.Id}${id}`;
|
|
14923
|
+
}
|
|
14924
|
+
UIMarkup.GetCacheKey = GetCacheKey;
|
|
14925
|
+
/**
|
|
14926
|
+
* Returns cache identifier for the UI.Markup list.
|
|
14927
|
+
*/
|
|
14928
|
+
function GetListCacheKey() {
|
|
14929
|
+
return Api.ECacheKey.UIMarkup;
|
|
14930
|
+
}
|
|
14931
|
+
UIMarkup.GetListCacheKey = GetListCacheKey;
|
|
14932
|
+
})(UIMarkup || (UIMarkup = {}));
|
|
14933
|
+
|
|
14758
14934
|
const DEFAULT_JOB_POLL_INTERVAL_MS = 1000;
|
|
14759
14935
|
const DEFAULT_JOB_POLL_TIMEOUT_MS = 10 * 60 * 1000; // match server timeout (10 minutes)
|
|
14760
14936
|
const NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED = "entity_highlight_applied";
|
|
@@ -19581,7 +19757,7 @@ var UrlUtils;
|
|
|
19581
19757
|
})(UrlUtils || (UrlUtils = {}));
|
|
19582
19758
|
|
|
19583
19759
|
// This is updated with the package.json version on build.
|
|
19584
|
-
const VERSION = "7.1.
|
|
19760
|
+
const VERSION = "7.1.69";
|
|
19585
19761
|
|
|
19586
|
-
export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, Bounds, BruceEvent, BruceVariable, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, GeoJson, Geometry, LRUCache, UTC, CustomForm, DashboardView, DataFeed, DataLab, DataLabGroup, DataSource, DataTransform, Comment, Entity, EntityAttachment, EntityAttachmentType, EntityAttribute, EntityComment, EntityCoords, EntityHistoricData, EntityLink, EntityLod, EntityLodCategory, EntityRelation, EntityRelationType, EntitySource, EntityTableView, EntityTag, EntityType, EntityTypeTrigger, Ontology, ENVIRONMENT, ExportBrz, ExportUsd, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportedFile, Uploader, Markup, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, Plugin, ProgramKey, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewBookmarkGroup, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewLegacyTile, ProjectViewTile, ZoomControl, Scenario, HostingLocation, MessageBroker, PendingAction, RecordChangeFeed, Style, Tileset, Tracking, Permission, Session, User, UserGroup, UserMfaMethod, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils };
|
|
19762
|
+
export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, Bounds, BruceEvent, BruceVariable, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, GeoJson, Geometry, LRUCache, UTC, CustomForm, DashboardView, DataFeed, DataLab, DataLabGroup, DataSource, DataTransform, Comment, Entity, EntityAttachment, EntityAttachmentType, EntityAttribute, EntityComment, EntityCoords, EntityHistoricData, EntityLink, EntityLod, EntityLodCategory, EntityRelation, EntityRelationType, EntitySource, EntityTableView, EntityTag, EntityType, EntityTypeTrigger, Ontology, ENVIRONMENT, ExportBrz, ExportUsd, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportedFile, Uploader, Markup, UIMarkup, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, Plugin, ProgramKey, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewBookmarkGroup, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewLegacyTile, ProjectViewTile, ZoomControl, Scenario, HostingLocation, MessageBroker, PendingAction, RecordChangeFeed, Style, Tileset, Tracking, Permission, Session, User, UserGroup, UserMfaMethod, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils };
|
|
19587
19763
|
//# sourceMappingURL=bruce-models.es5.js.map
|