@bytescale/sdk 3.36.0 → 3.37.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 +4 -4
- package/dist/browser/esm/main.mjs +4 -4
- package/dist/node/cjs/main.js +4 -4
- package/dist/node/esm/main.mjs +4 -4
- package/dist/types/public/shared/generated/apis/FileApi.d.ts +6 -6
- package/dist/types/public/shared/generated/models/index.d.ts +1 -1
- package/dist/worker/cjs/main.js +4 -4
- package/dist/worker/esm/main.mjs +4 -4
- package/package.json +1 -1
package/dist/browser/cjs/main.js
CHANGED
|
@@ -966,7 +966,7 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
|
|
|
966
966
|
var _this5 = this;
|
|
967
967
|
var query = {};
|
|
968
968
|
if (params.cache !== undefined) {
|
|
969
|
-
query["
|
|
969
|
+
query["cache"] = params.cache;
|
|
970
970
|
}
|
|
971
971
|
if (params.cacheTtl !== undefined) {
|
|
972
972
|
query["cache_ttl"] = params.cacheTtl;
|
|
@@ -1027,12 +1027,12 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
|
|
|
1027
1027
|
try {
|
|
1028
1028
|
var _this7 = this;
|
|
1029
1029
|
var query = {};
|
|
1030
|
-
if (params.cache !== undefined) {
|
|
1031
|
-
query["Cache"] = params.cache;
|
|
1032
|
-
}
|
|
1033
1030
|
if (params.artifact !== undefined) {
|
|
1034
1031
|
query["artifact"] = params.artifact;
|
|
1035
1032
|
}
|
|
1033
|
+
if (params.cache !== undefined) {
|
|
1034
|
+
query["cache"] = params.cache;
|
|
1035
|
+
}
|
|
1036
1036
|
if (params.cacheOnly !== undefined) {
|
|
1037
1037
|
query["cache_only"] = params.cacheOnly;
|
|
1038
1038
|
}
|
|
@@ -951,7 +951,7 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
|
|
|
951
951
|
var _this5 = this;
|
|
952
952
|
var query = {};
|
|
953
953
|
if (params.cache !== undefined) {
|
|
954
|
-
query["
|
|
954
|
+
query["cache"] = params.cache;
|
|
955
955
|
}
|
|
956
956
|
if (params.cacheTtl !== undefined) {
|
|
957
957
|
query["cache_ttl"] = params.cacheTtl;
|
|
@@ -1012,12 +1012,12 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
|
|
|
1012
1012
|
try {
|
|
1013
1013
|
var _this7 = this;
|
|
1014
1014
|
var query = {};
|
|
1015
|
-
if (params.cache !== undefined) {
|
|
1016
|
-
query["Cache"] = params.cache;
|
|
1017
|
-
}
|
|
1018
1015
|
if (params.artifact !== undefined) {
|
|
1019
1016
|
query["artifact"] = params.artifact;
|
|
1020
1017
|
}
|
|
1018
|
+
if (params.cache !== undefined) {
|
|
1019
|
+
query["cache"] = params.cache;
|
|
1020
|
+
}
|
|
1021
1021
|
if (params.cacheOnly !== undefined) {
|
|
1022
1022
|
query["cache_only"] = params.cacheOnly;
|
|
1023
1023
|
}
|
package/dist/node/cjs/main.js
CHANGED
|
@@ -966,7 +966,7 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
|
|
|
966
966
|
var _this5 = this;
|
|
967
967
|
var query = {};
|
|
968
968
|
if (params.cache !== undefined) {
|
|
969
|
-
query["
|
|
969
|
+
query["cache"] = params.cache;
|
|
970
970
|
}
|
|
971
971
|
if (params.cacheTtl !== undefined) {
|
|
972
972
|
query["cache_ttl"] = params.cacheTtl;
|
|
@@ -1027,12 +1027,12 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
|
|
|
1027
1027
|
try {
|
|
1028
1028
|
var _this7 = this;
|
|
1029
1029
|
var query = {};
|
|
1030
|
-
if (params.cache !== undefined) {
|
|
1031
|
-
query["Cache"] = params.cache;
|
|
1032
|
-
}
|
|
1033
1030
|
if (params.artifact !== undefined) {
|
|
1034
1031
|
query["artifact"] = params.artifact;
|
|
1035
1032
|
}
|
|
1033
|
+
if (params.cache !== undefined) {
|
|
1034
|
+
query["cache"] = params.cache;
|
|
1035
|
+
}
|
|
1036
1036
|
if (params.cacheOnly !== undefined) {
|
|
1037
1037
|
query["cache_only"] = params.cacheOnly;
|
|
1038
1038
|
}
|
package/dist/node/esm/main.mjs
CHANGED
|
@@ -953,7 +953,7 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
|
|
|
953
953
|
var _this5 = this;
|
|
954
954
|
var query = {};
|
|
955
955
|
if (params.cache !== undefined) {
|
|
956
|
-
query["
|
|
956
|
+
query["cache"] = params.cache;
|
|
957
957
|
}
|
|
958
958
|
if (params.cacheTtl !== undefined) {
|
|
959
959
|
query["cache_ttl"] = params.cacheTtl;
|
|
@@ -1014,12 +1014,12 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
|
|
|
1014
1014
|
try {
|
|
1015
1015
|
var _this7 = this;
|
|
1016
1016
|
var query = {};
|
|
1017
|
-
if (params.cache !== undefined) {
|
|
1018
|
-
query["Cache"] = params.cache;
|
|
1019
|
-
}
|
|
1020
1017
|
if (params.artifact !== undefined) {
|
|
1021
1018
|
query["artifact"] = params.artifact;
|
|
1022
1019
|
}
|
|
1020
|
+
if (params.cache !== undefined) {
|
|
1021
|
+
query["cache"] = params.cache;
|
|
1022
|
+
}
|
|
1023
1023
|
if (params.cacheOnly !== undefined) {
|
|
1024
1024
|
query["cache_only"] = params.cacheOnly;
|
|
1025
1025
|
}
|
|
@@ -63,6 +63,12 @@ export interface ProcessFileParams {
|
|
|
63
63
|
* The name of the File Processing API (e.g. `image`, `video`, `audio`) or transformation preset (created in the Bytescale Dashboard) to use when processing the file.
|
|
64
64
|
*/
|
|
65
65
|
transformation: string;
|
|
66
|
+
/**
|
|
67
|
+
* Some transformations output multiple files, called artifacts.
|
|
68
|
+
*
|
|
69
|
+
* You can download each individual transformation artifact by specifying its path with this parameter
|
|
70
|
+
*/
|
|
71
|
+
artifact?: string;
|
|
66
72
|
/**
|
|
67
73
|
* Specifies whether to cache the transformed result.
|
|
68
74
|
*
|
|
@@ -73,12 +79,6 @@ export interface ProcessFileParams {
|
|
|
73
79
|
* Default: true
|
|
74
80
|
*/
|
|
75
81
|
cache?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Some transformations output multiple files, called artifacts.
|
|
78
|
-
*
|
|
79
|
-
* You can download each individual transformation artifact by specifying its path with this parameter
|
|
80
|
-
*/
|
|
81
|
-
artifact?: string;
|
|
82
82
|
/**
|
|
83
83
|
* Only serve transformations from the cache; do not perform new transformations on cache miss.
|
|
84
84
|
*
|
package/dist/worker/cjs/main.js
CHANGED
|
@@ -966,7 +966,7 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
|
|
|
966
966
|
var _this5 = this;
|
|
967
967
|
var query = {};
|
|
968
968
|
if (params.cache !== undefined) {
|
|
969
|
-
query["
|
|
969
|
+
query["cache"] = params.cache;
|
|
970
970
|
}
|
|
971
971
|
if (params.cacheTtl !== undefined) {
|
|
972
972
|
query["cache_ttl"] = params.cacheTtl;
|
|
@@ -1027,12 +1027,12 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
|
|
|
1027
1027
|
try {
|
|
1028
1028
|
var _this7 = this;
|
|
1029
1029
|
var query = {};
|
|
1030
|
-
if (params.cache !== undefined) {
|
|
1031
|
-
query["Cache"] = params.cache;
|
|
1032
|
-
}
|
|
1033
1030
|
if (params.artifact !== undefined) {
|
|
1034
1031
|
query["artifact"] = params.artifact;
|
|
1035
1032
|
}
|
|
1033
|
+
if (params.cache !== undefined) {
|
|
1034
|
+
query["cache"] = params.cache;
|
|
1035
|
+
}
|
|
1036
1036
|
if (params.cacheOnly !== undefined) {
|
|
1037
1037
|
query["cache_only"] = params.cacheOnly;
|
|
1038
1038
|
}
|
package/dist/worker/esm/main.mjs
CHANGED
|
@@ -951,7 +951,7 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
|
|
|
951
951
|
var _this5 = this;
|
|
952
952
|
var query = {};
|
|
953
953
|
if (params.cache !== undefined) {
|
|
954
|
-
query["
|
|
954
|
+
query["cache"] = params.cache;
|
|
955
955
|
}
|
|
956
956
|
if (params.cacheTtl !== undefined) {
|
|
957
957
|
query["cache_ttl"] = params.cacheTtl;
|
|
@@ -1012,12 +1012,12 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
|
|
|
1012
1012
|
try {
|
|
1013
1013
|
var _this7 = this;
|
|
1014
1014
|
var query = {};
|
|
1015
|
-
if (params.cache !== undefined) {
|
|
1016
|
-
query["Cache"] = params.cache;
|
|
1017
|
-
}
|
|
1018
1015
|
if (params.artifact !== undefined) {
|
|
1019
1016
|
query["artifact"] = params.artifact;
|
|
1020
1017
|
}
|
|
1018
|
+
if (params.cache !== undefined) {
|
|
1019
|
+
query["cache"] = params.cache;
|
|
1020
|
+
}
|
|
1021
1021
|
if (params.cacheOnly !== undefined) {
|
|
1022
1022
|
query["cache_only"] = params.cacheOnly;
|
|
1023
1023
|
}
|