wmill 1.441.2__py3-none-any.whl → 1.442.0__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
wmill/client.py
CHANGED
@@ -9,6 +9,7 @@ import os
|
|
9
9
|
import random
|
10
10
|
import time
|
11
11
|
import warnings
|
12
|
+
import json
|
12
13
|
from json import JSONDecodeError
|
13
14
|
from typing import Dict, Any, Union, Literal
|
14
15
|
|
@@ -629,6 +630,8 @@ class Windmill:
|
|
629
630
|
channel_id: str,
|
630
631
|
message: str = None,
|
631
632
|
approver: str = None,
|
633
|
+
default_args_json: dict = None,
|
634
|
+
dynamic_enum_json: dict = None,
|
632
635
|
) -> None:
|
633
636
|
"""
|
634
637
|
Request interactive Slack approval
|
@@ -657,6 +660,10 @@ class Windmill:
|
|
657
660
|
params["channel_id"] = channel_id
|
658
661
|
if os.environ.get("WM_FLOW_STEP_ID"):
|
659
662
|
params["flow_step_id"] = os.environ.get("WM_FLOW_STEP_ID")
|
663
|
+
if default_args_json:
|
664
|
+
params["default_args_json"] = json.dumps(default_args_json)
|
665
|
+
if dynamic_enum_json:
|
666
|
+
params["dynamic_enum_json"] = json.dumps(dynamic_enum_json)
|
660
667
|
|
661
668
|
self.get(
|
662
669
|
f"/w/{workspace}/jobs/slack_approval/{os.environ.get('WM_JOB_ID', 'NO_JOB_ID')}",
|
@@ -1018,12 +1025,16 @@ def request_interactive_slack_approval(
|
|
1018
1025
|
channel_id: str,
|
1019
1026
|
message: str = None,
|
1020
1027
|
approver: str = None,
|
1028
|
+
default_args_json: dict = None,
|
1029
|
+
dynamic_enum_json: dict = None,
|
1021
1030
|
) -> None:
|
1022
1031
|
return _client.request_interactive_slack_approval(
|
1023
1032
|
slack_resource_path=slack_resource_path,
|
1024
1033
|
channel_id=channel_id,
|
1025
1034
|
message=message,
|
1026
1035
|
approver=approver,
|
1036
|
+
default_args_json=default_args_json,
|
1037
|
+
dynamic_enum_json=dynamic_enum_json,
|
1027
1038
|
)
|
1028
1039
|
|
1029
1040
|
@init_global_client
|
@@ -1,8 +1,8 @@
|
|
1
1
|
wmill/__init__.py,sha256=nGZnQPezTdrBnBW1D0JqUtm75Gdf_xi3tAcPGwHRZ5A,46
|
2
|
-
wmill/client.py,sha256=
|
2
|
+
wmill/client.py,sha256=uDkf2w9QTEpig2lfYZle-ZK-Ta1NQ0XuTlH44TIciMQ,37141
|
3
3
|
wmill/py.typed,sha256=8PjyZ1aVoQpRVvt71muvuq5qE-jTFZkK-GLHkhdebmc,26
|
4
4
|
wmill/s3_reader.py,sha256=izHlg2Xsg0Sr_LkDDEC35VuEijJcuPBDIm-xj21KsgU,1668
|
5
5
|
wmill/s3_types.py,sha256=XVjPyc5sjWesTy6nnRReojhyPgPsaT0EY3X57mWUaJ4,1173
|
6
|
-
wmill-1.
|
7
|
-
wmill-1.
|
8
|
-
wmill-1.
|
6
|
+
wmill-1.442.0.dist-info/METADATA,sha256=mmSG-onSK88R0dyrh5243hcrmgzFuqSpjuYJzM87sVM,2693
|
7
|
+
wmill-1.442.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
8
|
+
wmill-1.442.0.dist-info/RECORD,,
|
File without changes
|