windmill-client 1.422.1 → 1.423.1
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/client.d.ts +1 -1
- package/dist/client.js +3 -1
- package/dist/core/OpenAPI.js +1 -1
- package/dist/types.gen.d.ts +3 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -138,7 +138,7 @@ export declare function loadS3FileStream(s3object: S3Object, s3ResourcePath?: st
|
|
|
138
138
|
* console.log(fileContentAsUtf8Str)
|
|
139
139
|
* ```
|
|
140
140
|
*/
|
|
141
|
-
export declare function writeS3File(s3object: S3Object | undefined, fileContent: string | Blob, s3ResourcePath?: string | undefined): Promise<S3Object>;
|
|
141
|
+
export declare function writeS3File(s3object: S3Object | undefined, fileContent: string | Blob, s3ResourcePath?: string | undefined, contentType?: string | undefined, contentDisposition?: string | undefined): Promise<S3Object>;
|
|
142
142
|
/**
|
|
143
143
|
* Get URLs needed for resuming a flow after this step
|
|
144
144
|
* @param approver approver name
|
package/dist/client.js
CHANGED
|
@@ -676,7 +676,7 @@ function loadS3FileStream(s3object_1) {
|
|
|
676
676
|
* ```
|
|
677
677
|
*/
|
|
678
678
|
function writeS3File(s3object_1, fileContent_1) {
|
|
679
|
-
return __awaiter(this, arguments, void 0, function* (s3object, fileContent, s3ResourcePath = undefined) {
|
|
679
|
+
return __awaiter(this, arguments, void 0, function* (s3object, fileContent, s3ResourcePath = undefined, contentType = undefined, contentDisposition = undefined) {
|
|
680
680
|
let fileContentBlob;
|
|
681
681
|
if (typeof fileContent === "string") {
|
|
682
682
|
fileContentBlob = new Blob([fileContent], {
|
|
@@ -693,6 +693,8 @@ function writeS3File(s3object_1, fileContent_1) {
|
|
|
693
693
|
s3ResourcePath: s3ResourcePath,
|
|
694
694
|
requestBody: fileContentBlob,
|
|
695
695
|
storage: s3object === null || s3object === void 0 ? void 0 : s3object.storage,
|
|
696
|
+
contentType,
|
|
697
|
+
contentDisposition,
|
|
696
698
|
});
|
|
697
699
|
return {
|
|
698
700
|
s3: response.file_key,
|
package/dist/core/OpenAPI.js
CHANGED
package/dist/types.gen.d.ts
CHANGED