bruce-models 7.1.66 → 7.1.68
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 +34 -4
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +34 -4
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/client-file/client-file.js +9 -3
- package/dist/lib/client-file/client-file.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/types/bruce-models.d.ts +1 -1
- package/dist/types/data-source/data-source.d.ts +16 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -8870,12 +8870,12 @@ var ClientFile;
|
|
|
8870
8870
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
8871
8871
|
return cache.data;
|
|
8872
8872
|
}
|
|
8873
|
+
// Hack: API isn't returning the right file so we're adding to page size and filtering again on client. Patch ASAP.
|
|
8873
8874
|
const prom = (() => __awaiter(this, void 0, void 0, function* () {
|
|
8874
|
-
var _a;
|
|
8875
8875
|
const res = yield GetList({
|
|
8876
8876
|
api,
|
|
8877
8877
|
filter: {
|
|
8878
|
-
PageSize:
|
|
8878
|
+
PageSize: 300,
|
|
8879
8879
|
PageIndex: 0,
|
|
8880
8880
|
Purpose: "Polygon Texture",
|
|
8881
8881
|
FilterRows: [
|
|
@@ -8901,7 +8901,13 @@ var ClientFile;
|
|
|
8901
8901
|
},
|
|
8902
8902
|
req: reqParams
|
|
8903
8903
|
});
|
|
8904
|
-
|
|
8904
|
+
const match = (res.clientFiles || []).find((file) => {
|
|
8905
|
+
var _a;
|
|
8906
|
+
const generation = (_a = file === null || file === void 0 ? void 0 : file.Data) === null || _a === void 0 ? void 0 : _a.generation;
|
|
8907
|
+
return ((generation === null || generation === void 0 ? void 0 : generation["EntityType.Source.ID"]) === entityTypeSourceId &&
|
|
8908
|
+
(generation === null || generation === void 0 ? void 0 : generation.Attribute) === attribute);
|
|
8909
|
+
});
|
|
8910
|
+
return match || null;
|
|
8905
8911
|
}))();
|
|
8906
8912
|
api.SetCacheItem({
|
|
8907
8913
|
key,
|
|
@@ -10798,6 +10804,30 @@ var DataSource;
|
|
|
10798
10804
|
});
|
|
10799
10805
|
}
|
|
10800
10806
|
DataSource.Analyze = Analyze;
|
|
10807
|
+
/**
|
|
10808
|
+
* Retrieves the available datasets from an ERDDAP instance.
|
|
10809
|
+
* This calls: GET sources/erddap/getCapabilities?url={erddapUrl}
|
|
10810
|
+
* @param params
|
|
10811
|
+
*/
|
|
10812
|
+
function GetERDDAPCapabilities(params) {
|
|
10813
|
+
var _a;
|
|
10814
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10815
|
+
let { url, api, req: reqParams } = params;
|
|
10816
|
+
if (!url) {
|
|
10817
|
+
throw ("ERDDAP URL is required.");
|
|
10818
|
+
}
|
|
10819
|
+
if (!api) {
|
|
10820
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
10821
|
+
}
|
|
10822
|
+
const query = new URLSearchParams();
|
|
10823
|
+
query.append("url", url);
|
|
10824
|
+
const res = yield api.GET(`sources/erddap/getCapabilities?${query.toString()}`, Api.PrepReqParams(reqParams));
|
|
10825
|
+
return {
|
|
10826
|
+
datasets: (_a = res === null || res === void 0 ? void 0 : res.Datasets) !== null && _a !== void 0 ? _a : []
|
|
10827
|
+
};
|
|
10828
|
+
});
|
|
10829
|
+
}
|
|
10830
|
+
DataSource.GetERDDAPCapabilities = GetERDDAPCapabilities;
|
|
10801
10831
|
/**
|
|
10802
10832
|
* Makes a diagnostic sample request to a registered data source.
|
|
10803
10833
|
* This calls: POST source/{source_id}/requestSample
|
|
@@ -19575,7 +19605,7 @@ var UrlUtils;
|
|
|
19575
19605
|
})(UrlUtils || (UrlUtils = {}));
|
|
19576
19606
|
|
|
19577
19607
|
// This is updated with the package.json version on build.
|
|
19578
|
-
const VERSION = "7.1.
|
|
19608
|
+
const VERSION = "7.1.68";
|
|
19579
19609
|
|
|
19580
19610
|
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 };
|
|
19581
19611
|
//# sourceMappingURL=bruce-models.es5.js.map
|