bruce-models 7.1.51 → 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.
@@ -1469,6 +1469,8 @@
1469
1469
  (function (BruceApi) {
1470
1470
  // Minimum API version that supports server-side token proxies.
1471
1471
  BruceApi.VERSION_WITH_PROXIES = "1.0.6437";
1472
+ // Minimum API version that supports uploading tileset source files as Client Files.
1473
+ BruceApi.VERSION_WITH_CLIENT_FILE_SOURCES = "1.0.6448";
1472
1474
  /**
1473
1475
  * This is the request handler for Bruce Api,
1474
1476
  * it should be passed to any method that wants to communicate with this particular api.
@@ -10278,6 +10280,27 @@
10278
10280
  });
10279
10281
  }
10280
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;
10281
10304
  /**
10282
10305
  * Returns cache identifier for a data source by ID.
10283
10306
  * Example: {
@@ -18655,7 +18678,7 @@
18655
18678
  })(exports.UrlUtils || (exports.UrlUtils = {}));
18656
18679
 
18657
18680
  // This is updated with the package.json version on build.
18658
- const VERSION = "7.1.51";
18681
+ const VERSION = "7.1.53";
18659
18682
 
18660
18683
  exports.VERSION = VERSION;
18661
18684
  exports.AbstractApi = AbstractApi;