bruce-models 7.1.67 → 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 +25 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +25 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +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
|
@@ -10804,6 +10804,30 @@ var DataSource;
|
|
|
10804
10804
|
});
|
|
10805
10805
|
}
|
|
10806
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;
|
|
10807
10831
|
/**
|
|
10808
10832
|
* Makes a diagnostic sample request to a registered data source.
|
|
10809
10833
|
* This calls: POST source/{source_id}/requestSample
|
|
@@ -19581,7 +19605,7 @@ var UrlUtils;
|
|
|
19581
19605
|
})(UrlUtils || (UrlUtils = {}));
|
|
19582
19606
|
|
|
19583
19607
|
// This is updated with the package.json version on build.
|
|
19584
|
-
const VERSION = "7.1.
|
|
19608
|
+
const VERSION = "7.1.68";
|
|
19585
19609
|
|
|
19586
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 };
|
|
19587
19611
|
//# sourceMappingURL=bruce-models.es5.js.map
|