@bytescale/sdk 3.49.0 → 3.50.0

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.
@@ -1779,7 +1779,11 @@ var UrlBuilder = /*#__PURE__*/function () {
1779
1779
  value: function getBaseUrl(params, prefix) {
1780
1780
  var _a, _b;
1781
1781
  var cdnUrl = (_b = (_a = params.options) === null || _a === void 0 ? void 0 : _a.cdnUrl) !== null && _b !== void 0 ? _b : BytescaleApiClientConfigUtils.defaultCdnUrl;
1782
- var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/");
1782
+ // To convert a Bytescale File Path into a Bytescale File URL:
1783
+ // a) Call encodeURIComponent() on the file path. (This allows file paths to contain ANY character.)
1784
+ // b) Replace all occurrences of "%2F" with "/". (Allows file paths to appear as hierarchical paths on the URL.)
1785
+ // c) Replace all occurrences of "!" with "%21". (Prevents file paths with "!" inside being treated as "query bangs".)
1786
+ var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/").replace(/!/g, "%21");
1783
1787
  return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1784
1788
  }
1785
1789
  }, {
@@ -1764,7 +1764,11 @@ var UrlBuilder = /*#__PURE__*/function () {
1764
1764
  value: function getBaseUrl(params, prefix) {
1765
1765
  var _a, _b;
1766
1766
  var cdnUrl = (_b = (_a = params.options) === null || _a === void 0 ? void 0 : _a.cdnUrl) !== null && _b !== void 0 ? _b : BytescaleApiClientConfigUtils.defaultCdnUrl;
1767
- var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/");
1767
+ // To convert a Bytescale File Path into a Bytescale File URL:
1768
+ // a) Call encodeURIComponent() on the file path. (This allows file paths to contain ANY character.)
1769
+ // b) Replace all occurrences of "%2F" with "/". (Allows file paths to appear as hierarchical paths on the URL.)
1770
+ // c) Replace all occurrences of "!" with "%21". (Prevents file paths with "!" inside being treated as "query bangs".)
1771
+ var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/").replace(/!/g, "%21");
1768
1772
  return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1769
1773
  }
1770
1774
  }, {
@@ -1779,7 +1779,11 @@ var UrlBuilder = /*#__PURE__*/function () {
1779
1779
  value: function getBaseUrl(params, prefix) {
1780
1780
  var _a, _b;
1781
1781
  var cdnUrl = (_b = (_a = params.options) === null || _a === void 0 ? void 0 : _a.cdnUrl) !== null && _b !== void 0 ? _b : BytescaleApiClientConfigUtils.defaultCdnUrl;
1782
- var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/");
1782
+ // To convert a Bytescale File Path into a Bytescale File URL:
1783
+ // a) Call encodeURIComponent() on the file path. (This allows file paths to contain ANY character.)
1784
+ // b) Replace all occurrences of "%2F" with "/". (Allows file paths to appear as hierarchical paths on the URL.)
1785
+ // c) Replace all occurrences of "!" with "%21". (Prevents file paths with "!" inside being treated as "query bangs".)
1786
+ var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/").replace(/!/g, "%21");
1783
1787
  return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1784
1788
  }
1785
1789
  }, {
@@ -1766,7 +1766,11 @@ var UrlBuilder = /*#__PURE__*/function () {
1766
1766
  value: function getBaseUrl(params, prefix) {
1767
1767
  var _a, _b;
1768
1768
  var cdnUrl = (_b = (_a = params.options) === null || _a === void 0 ? void 0 : _a.cdnUrl) !== null && _b !== void 0 ? _b : BytescaleApiClientConfigUtils.defaultCdnUrl;
1769
- var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/");
1769
+ // To convert a Bytescale File Path into a Bytescale File URL:
1770
+ // a) Call encodeURIComponent() on the file path. (This allows file paths to contain ANY character.)
1771
+ // b) Replace all occurrences of "%2F" with "/". (Allows file paths to appear as hierarchical paths on the URL.)
1772
+ // c) Replace all occurrences of "!" with "%21". (Prevents file paths with "!" inside being treated as "query bangs".)
1773
+ var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/").replace(/!/g, "%21");
1770
1774
  return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1771
1775
  }
1772
1776
  }, {
@@ -1256,6 +1256,12 @@ export type JobSummaryJobDocsEnum = "https://www.bytescale.com/docs/job-api/GetJ
1256
1256
  * @interface JobSummaryError
1257
1257
  */
1258
1258
  export interface JobSummaryError {
1259
+ /**
1260
+ * Time the error occurred (UTC ISO 8601).
1261
+ * @type {string}
1262
+ * @memberof JobSummaryError
1263
+ */
1264
+ timestamp: string;
1259
1265
  /**
1260
1266
  * Human-readable error message.
1261
1267
  * @type {string}
@@ -1412,7 +1418,7 @@ export interface PickAzureReadOnlyStorageExcludeKeyofAzureReadOnlyStorageCredent
1412
1418
  */
1413
1419
  containerName: string;
1414
1420
  /**
1415
- * Azure Storage BLOB name.
1421
+ * Azure Storage BLOB name prefix.
1416
1422
  * @type {string}
1417
1423
  * @memberof PickAzureReadOnlyStorageExcludeKeyofAzureReadOnlyStorageCredentialsAzureStorage
1418
1424
  */
@@ -1779,7 +1779,11 @@ var UrlBuilder = /*#__PURE__*/function () {
1779
1779
  value: function getBaseUrl(params, prefix) {
1780
1780
  var _a, _b;
1781
1781
  var cdnUrl = (_b = (_a = params.options) === null || _a === void 0 ? void 0 : _a.cdnUrl) !== null && _b !== void 0 ? _b : BytescaleApiClientConfigUtils.defaultCdnUrl;
1782
- var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/");
1782
+ // To convert a Bytescale File Path into a Bytescale File URL:
1783
+ // a) Call encodeURIComponent() on the file path. (This allows file paths to contain ANY character.)
1784
+ // b) Replace all occurrences of "%2F" with "/". (Allows file paths to appear as hierarchical paths on the URL.)
1785
+ // c) Replace all occurrences of "!" with "%21". (Prevents file paths with "!" inside being treated as "query bangs".)
1786
+ var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/").replace(/!/g, "%21");
1783
1787
  return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1784
1788
  }
1785
1789
  }, {
@@ -1764,7 +1764,11 @@ var UrlBuilder = /*#__PURE__*/function () {
1764
1764
  value: function getBaseUrl(params, prefix) {
1765
1765
  var _a, _b;
1766
1766
  var cdnUrl = (_b = (_a = params.options) === null || _a === void 0 ? void 0 : _a.cdnUrl) !== null && _b !== void 0 ? _b : BytescaleApiClientConfigUtils.defaultCdnUrl;
1767
- var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/");
1767
+ // To convert a Bytescale File Path into a Bytescale File URL:
1768
+ // a) Call encodeURIComponent() on the file path. (This allows file paths to contain ANY character.)
1769
+ // b) Replace all occurrences of "%2F" with "/". (Allows file paths to appear as hierarchical paths on the URL.)
1770
+ // c) Replace all occurrences of "!" with "%21". (Prevents file paths with "!" inside being treated as "query bangs".)
1771
+ var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/").replace(/!/g, "%21");
1768
1772
  return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1769
1773
  }
1770
1774
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytescale/sdk",
3
- "version": "3.49.0",
3
+ "version": "3.50.0",
4
4
  "description": "Bytescale JavaScript SDK",
5
5
  "author": "Bytescale <hello@bytescale.com> (https://www.bytescale.com)",
6
6
  "license": "MIT",