bruce-models 7.1.52 → 7.1.53
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 +22 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +22 -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 +21 -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 +62 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -10411,6 +10411,27 @@ var DataSource;
|
|
|
10411
10411
|
});
|
|
10412
10412
|
}
|
|
10413
10413
|
DataSource.Analyze = Analyze;
|
|
10414
|
+
/**
|
|
10415
|
+
* Makes a diagnostic sample request to a registered data source.
|
|
10416
|
+
* This calls: POST source/{source_id}/requestSample
|
|
10417
|
+
* @param params
|
|
10418
|
+
*/
|
|
10419
|
+
function RequestSample(params) {
|
|
10420
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10421
|
+
let { sourceId, options, api, req: reqParams } = params;
|
|
10422
|
+
if (!sourceId) {
|
|
10423
|
+
throw ("Source ID is required.");
|
|
10424
|
+
}
|
|
10425
|
+
if (!api) {
|
|
10426
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
10427
|
+
}
|
|
10428
|
+
const res = yield api.POST(`source/${sourceId}/requestSample`, options !== null && options !== void 0 ? options : {}, Api.PrepReqParams(reqParams));
|
|
10429
|
+
return {
|
|
10430
|
+
sample: res
|
|
10431
|
+
};
|
|
10432
|
+
});
|
|
10433
|
+
}
|
|
10434
|
+
DataSource.RequestSample = RequestSample;
|
|
10414
10435
|
/**
|
|
10415
10436
|
* Returns cache identifier for a data source by ID.
|
|
10416
10437
|
* Example: {
|
|
@@ -18998,7 +19019,7 @@ var UrlUtils;
|
|
|
18998
19019
|
})(UrlUtils || (UrlUtils = {}));
|
|
18999
19020
|
|
|
19000
19021
|
// This is updated with the package.json version on build.
|
|
19001
|
-
const VERSION = "7.1.
|
|
19022
|
+
const VERSION = "7.1.53";
|
|
19002
19023
|
|
|
19003
19024
|
export { VERSION, Account, 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, 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 };
|
|
19004
19025
|
//# sourceMappingURL=bruce-models.es5.js.map
|