windmill-client
Advanced tools
Comparing version 1.441.2 to 1.442.0
@@ -181,3 +181,5 @@ import { DenoS3LightClientSettings, type S3Object } from "./s3Types"; | ||
approver?: string; | ||
defaultArgsJson?: Record<string, any>; | ||
dynamicEnumJson?: Record<string, any>; | ||
} | ||
export declare function requestInteractiveSlackApproval({ slackResourcePath, channelId, message, approver, }: SlackApprovalOptions): Promise<void>; | ||
export declare function requestInteractiveSlackApproval({ slackResourcePath, channelId, message, approver, defaultArgsJson, dynamicEnumJson, }: SlackApprovalOptions): Promise<void>; |
@@ -799,3 +799,3 @@ "use strict"; | ||
function requestInteractiveSlackApproval(_a) { | ||
return __awaiter(this, arguments, void 0, function* ({ slackResourcePath, channelId, message, approver, }) { | ||
return __awaiter(this, arguments, void 0, function* ({ slackResourcePath, channelId, message, approver, defaultArgsJson, dynamicEnumJson, }) { | ||
var _b; | ||
@@ -823,4 +823,10 @@ const workspace = getWorkspace(); | ||
} | ||
if (defaultArgsJson) { | ||
params.defaultArgsJson = JSON.stringify(defaultArgsJson); | ||
} | ||
if (dynamicEnumJson) { | ||
params.dynamicEnumJson = JSON.stringify(dynamicEnumJson); | ||
} | ||
yield index_1.JobService.getSlackApprovalPayload(Object.assign(Object.assign({ workspace }, params), { id: (_b = getEnv("WM_JOB_ID")) !== null && _b !== void 0 ? _b : "NO_JOB_ID" })); | ||
}); | ||
} |
@@ -42,3 +42,3 @@ "use strict"; | ||
USERNAME: undefined, | ||
VERSION: '1.441.2', | ||
VERSION: '1.442.0', | ||
WITH_CREDENTIALS: true, | ||
@@ -45,0 +45,0 @@ interceptors: { |
{ | ||
"name": "windmill-client", | ||
"description": "Windmill SDK client for browsers and Node.js", | ||
"version": "1.441.2", | ||
"version": "1.442.0", | ||
"author": "Ruben Fiszel", | ||
@@ -6,0 +6,0 @@ "license": "Apache 2.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
854292
26725