@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.
- package/dist/browser/cjs/main.js +5 -1
- package/dist/browser/esm/main.mjs +5 -1
- package/dist/node/cjs/main.js +5 -1
- package/dist/node/esm/main.mjs +5 -1
- package/dist/types/public/shared/generated/models/index.d.ts +7 -1
- package/dist/worker/cjs/main.js +5 -1
- package/dist/worker/esm/main.mjs +5 -1
- package/package.json +1 -1
package/dist/browser/cjs/main.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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/dist/node/cjs/main.js
CHANGED
|
@@ -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
|
-
|
|
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
|
}, {
|
package/dist/node/esm/main.mjs
CHANGED
|
@@ -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
|
-
|
|
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
|
*/
|
package/dist/worker/cjs/main.js
CHANGED
|
@@ -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
|
-
|
|
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
|
}, {
|
package/dist/worker/esm/main.mjs
CHANGED
|
@@ -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
|
-
|
|
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
|
}, {
|