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.umd.js
CHANGED
|
@@ -10280,6 +10280,27 @@
|
|
|
10280
10280
|
});
|
|
10281
10281
|
}
|
|
10282
10282
|
DataSource.Analyze = Analyze;
|
|
10283
|
+
/**
|
|
10284
|
+
* Makes a diagnostic sample request to a registered data source.
|
|
10285
|
+
* This calls: POST source/{source_id}/requestSample
|
|
10286
|
+
* @param params
|
|
10287
|
+
*/
|
|
10288
|
+
function RequestSample(params) {
|
|
10289
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10290
|
+
let { sourceId, options, api, req: reqParams } = params;
|
|
10291
|
+
if (!sourceId) {
|
|
10292
|
+
throw ("Source ID is required.");
|
|
10293
|
+
}
|
|
10294
|
+
if (!api) {
|
|
10295
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
10296
|
+
}
|
|
10297
|
+
const res = yield api.POST(`source/${sourceId}/requestSample`, options !== null && options !== void 0 ? options : {}, exports.Api.PrepReqParams(reqParams));
|
|
10298
|
+
return {
|
|
10299
|
+
sample: res
|
|
10300
|
+
};
|
|
10301
|
+
});
|
|
10302
|
+
}
|
|
10303
|
+
DataSource.RequestSample = RequestSample;
|
|
10283
10304
|
/**
|
|
10284
10305
|
* Returns cache identifier for a data source by ID.
|
|
10285
10306
|
* Example: {
|
|
@@ -18657,7 +18678,7 @@
|
|
|
18657
18678
|
})(exports.UrlUtils || (exports.UrlUtils = {}));
|
|
18658
18679
|
|
|
18659
18680
|
// This is updated with the package.json version on build.
|
|
18660
|
-
const VERSION = "7.1.
|
|
18681
|
+
const VERSION = "7.1.53";
|
|
18661
18682
|
|
|
18662
18683
|
exports.VERSION = VERSION;
|
|
18663
18684
|
exports.AbstractApi = AbstractApi;
|