kuflow-temporal-workflow-kuflow 3.2.2__tar.gz → 3.3.0__tar.gz
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.
- {kuflow_temporal_workflow_kuflow-3.2.2 → kuflow_temporal_workflow_kuflow-3.3.0}/PKG-INFO +2 -2
- kuflow_temporal_workflow_kuflow-3.3.0/VERSION +1 -0
- {kuflow_temporal_workflow_kuflow-3.2.2 → kuflow_temporal_workflow_kuflow-3.3.0}/kuflow_temporal_workflow_kuflow/models/__init__.py +12 -1
- {kuflow_temporal_workflow_kuflow-3.2.2 → kuflow_temporal_workflow_kuflow-3.3.0}/kuflow_temporal_workflow_kuflow/models/_enums.py +8 -0
- {kuflow_temporal_workflow_kuflow-3.2.2 → kuflow_temporal_workflow_kuflow-3.3.0}/kuflow_temporal_workflow_kuflow/models/_models.py +91 -10
- {kuflow_temporal_workflow_kuflow-3.2.2 → kuflow_temporal_workflow_kuflow-3.3.0}/pyproject.toml +2 -2
- kuflow_temporal_workflow_kuflow-3.2.2/VERSION +0 -1
- {kuflow_temporal_workflow_kuflow-3.2.2 → kuflow_temporal_workflow_kuflow-3.3.0}/README.md +0 -0
- {kuflow_temporal_workflow_kuflow-3.2.2 → kuflow_temporal_workflow_kuflow-3.3.0}/kuflow_temporal_workflow_kuflow/__init__.py +0 -0
- {kuflow_temporal_workflow_kuflow-3.2.2 → kuflow_temporal_workflow_kuflow-3.3.0}/kuflow_temporal_workflow_kuflow/_attributes.py +0 -0
- {kuflow_temporal_workflow_kuflow-3.2.2 → kuflow_temporal_workflow_kuflow-3.3.0}/kuflow_temporal_workflow_kuflow/_uuid7.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: kuflow-temporal-workflow-kuflow
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.3.0
|
|
4
4
|
Summary: KuFlow SDK :: Temporal.io workflow utilities to interact with KuFlow
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: KuFlow S.L.
|
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
-
Requires-Dist: kuflow-temporal-common (>=3.
|
|
16
|
+
Requires-Dist: kuflow-temporal-common (>=3.3.0,<4.0.0)
|
|
17
17
|
Project-URL: Documentation, https://docs.kuflow.com/
|
|
18
18
|
Project-URL: Homepage, https://kuflow.com/
|
|
19
19
|
Project-URL: Repository, https://github.com/kuflow/kuflow-sdk-python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.3.0
|
|
@@ -22,12 +22,19 @@
|
|
|
22
22
|
# SOFTWARE.
|
|
23
23
|
#
|
|
24
24
|
|
|
25
|
-
from ._enums import
|
|
25
|
+
from ._enums import (
|
|
26
|
+
SignalProcessItemType,
|
|
27
|
+
WorkflowBusinessArtifactActionDefinitionType,
|
|
28
|
+
WorkflowUserActionDefinitionType,
|
|
29
|
+
)
|
|
26
30
|
from ._models import (
|
|
27
31
|
KUFLOW_ENGINE_SIGNAL_PROCESS_ITEM,
|
|
28
32
|
SignalProcessItem,
|
|
29
33
|
SignalProcessItemPayload,
|
|
30
34
|
SignalUserAction,
|
|
35
|
+
WorkflowBusinessArtifactActionRequest,
|
|
36
|
+
WorkflowBusinessArtifactActionResponse,
|
|
37
|
+
WorkflowBusinessArtifactActionResponseDownloadable,
|
|
31
38
|
WorkflowRequest,
|
|
32
39
|
WorkflowResponse,
|
|
33
40
|
WorkflowRobotRequest,
|
|
@@ -43,6 +50,10 @@ __all__ = [
|
|
|
43
50
|
"SignalProcessItemPayload",
|
|
44
51
|
"SignalProcessItemType",
|
|
45
52
|
"SignalUserAction",
|
|
53
|
+
"WorkflowBusinessArtifactActionDefinitionType",
|
|
54
|
+
"WorkflowBusinessArtifactActionRequest",
|
|
55
|
+
"WorkflowBusinessArtifactActionResponse",
|
|
56
|
+
"WorkflowBusinessArtifactActionResponseDownloadable",
|
|
46
57
|
"WorkflowRequest",
|
|
47
58
|
"WorkflowResponse",
|
|
48
59
|
"WorkflowRobotRequest",
|
|
@@ -42,3 +42,11 @@ class WorkflowUserActionDefinitionType(str, Enum):
|
|
|
42
42
|
CREATE_TASK = "CREATE_TASK"
|
|
43
43
|
CREATE_PROCESS_ITEM_MESSAGE = "CREATE_PROCESS_ITEM_MESSAGE"
|
|
44
44
|
CREATE_PROCESS_ITEM_THREAD = "CREATE_PROCESS_ITEM_THREAD"
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class WorkflowBusinessArtifactActionDefinitionType(str, Enum):
|
|
48
|
+
"""WorkflowBusinessArtifactActionDefinitionType."""
|
|
49
|
+
|
|
50
|
+
DOWNLOADABLE = "DOWNLOADABLE"
|
|
51
|
+
START_PROCESS = "START_PROCESS"
|
|
52
|
+
START_WORKFLOW = "START_WORKFLOW"
|
|
@@ -26,7 +26,7 @@ import datetime
|
|
|
26
26
|
from types import MappingProxyType
|
|
27
27
|
from typing import TYPE_CHECKING, Any, Optional
|
|
28
28
|
|
|
29
|
-
from kuflow_rest._generated import
|
|
29
|
+
from kuflow_rest._generated._utils import serialization
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
if TYPE_CHECKING:
|
|
@@ -35,7 +35,7 @@ if TYPE_CHECKING:
|
|
|
35
35
|
KUFLOW_ENGINE_SIGNAL_PROCESS_ITEM = "KuFlow_Engine_Signal_Process_Item"
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
class WorkflowRequest(
|
|
38
|
+
class WorkflowRequest(serialization.Model):
|
|
39
39
|
_attribute_map = {
|
|
40
40
|
"process_id": {"key": "processId", "type": "str"},
|
|
41
41
|
"request_time": {"key": "requestTime", "type": "iso-8601"},
|
|
@@ -126,7 +126,7 @@ class WorkflowRequest(_serialization.Model):
|
|
|
126
126
|
return self.get_extras().get(name)
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
class WorkflowResponse(
|
|
129
|
+
class WorkflowResponse(serialization.Model):
|
|
130
130
|
_attribute_map = {
|
|
131
131
|
"message": {"key": "message", "type": "str"},
|
|
132
132
|
}
|
|
@@ -140,7 +140,7 @@ class WorkflowResponse(_serialization.Model):
|
|
|
140
140
|
self.message = message
|
|
141
141
|
|
|
142
142
|
|
|
143
|
-
class WorkflowUserActionRequest(
|
|
143
|
+
class WorkflowUserActionRequest(serialization.Model):
|
|
144
144
|
_attribute_map = {
|
|
145
145
|
"process_id": {"key": "processId", "type": "str"},
|
|
146
146
|
"user_action_definition_type": {"key": "userActionDefinitionType", "type": "WorkflowUserActionDefinitionType"},
|
|
@@ -182,7 +182,7 @@ class WorkflowUserActionRequest(_serialization.Model):
|
|
|
182
182
|
self.request_time_zone = request_time_zone
|
|
183
183
|
|
|
184
184
|
|
|
185
|
-
class WorkflowUserActionResponse(
|
|
185
|
+
class WorkflowUserActionResponse(serialization.Model):
|
|
186
186
|
_attribute_map = {
|
|
187
187
|
"message": {"key": "message", "type": "str"},
|
|
188
188
|
}
|
|
@@ -196,7 +196,7 @@ class WorkflowUserActionResponse(_serialization.Model):
|
|
|
196
196
|
self.message = message
|
|
197
197
|
|
|
198
198
|
|
|
199
|
-
class WorkflowRobotRequest(
|
|
199
|
+
class WorkflowRobotRequest(serialization.Model):
|
|
200
200
|
_attribute_map = {
|
|
201
201
|
"process_id": {"key": "processId", "type": "str"},
|
|
202
202
|
"process_item_id": {"key": "processItemId", "type": "str"},
|
|
@@ -234,7 +234,7 @@ class WorkflowRobotRequest(_serialization.Model):
|
|
|
234
234
|
self.request_time_zone = request_time_zone
|
|
235
235
|
|
|
236
236
|
|
|
237
|
-
class WorkflowRobotResponse(
|
|
237
|
+
class WorkflowRobotResponse(serialization.Model):
|
|
238
238
|
_attribute_map = {
|
|
239
239
|
"message": {"key": "message", "type": "str"},
|
|
240
240
|
}
|
|
@@ -248,7 +248,7 @@ class WorkflowRobotResponse(_serialization.Model):
|
|
|
248
248
|
self.message = message
|
|
249
249
|
|
|
250
250
|
|
|
251
|
-
class SignalProcessItemPayload(
|
|
251
|
+
class SignalProcessItemPayload(serialization.Model):
|
|
252
252
|
_attribute_map = {
|
|
253
253
|
"process_item_definition_code": {"key": "processItemDefinitionCode", "type": "str"},
|
|
254
254
|
"data_structure_data_definition_code": {"key": "dataStructureDataDefinitionCode", "type": "str"},
|
|
@@ -270,7 +270,7 @@ class SignalProcessItemPayload(_serialization.Model):
|
|
|
270
270
|
self.data_structure_data_definition_code = data_structure_data_definition_code
|
|
271
271
|
|
|
272
272
|
|
|
273
|
-
class SignalProcessItem(
|
|
273
|
+
class SignalProcessItem(serialization.Model):
|
|
274
274
|
_attribute_map = {
|
|
275
275
|
"id": {"key": "id", "type": "str"},
|
|
276
276
|
"type": {"key": "type", "type": "SignalProcessItemType"},
|
|
@@ -304,7 +304,7 @@ class SignalProcessItem(_serialization.Model):
|
|
|
304
304
|
self.request_time_zone = request_time_zone
|
|
305
305
|
|
|
306
306
|
|
|
307
|
-
class SignalUserAction(
|
|
307
|
+
class SignalUserAction(serialization.Model):
|
|
308
308
|
_attribute_map = {
|
|
309
309
|
"user_action_definition_code": {"key": "userActionDefinitionCode", "type": "str"},
|
|
310
310
|
"request_instant": {"key": "requestInstant", "type": "iso-8601"},
|
|
@@ -319,3 +319,84 @@ class SignalUserAction(_serialization.Model):
|
|
|
319
319
|
super().__init__(**kwargs)
|
|
320
320
|
self.user_action_definition_code = user_action_definition_code
|
|
321
321
|
self.request_instant = request_instant
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
class WorkflowBusinessArtifactActionRequest(serialization.Model):
|
|
325
|
+
_attribute_map = {
|
|
326
|
+
"business_artifact_id": {"key": "businessArtifactId", "type": "str"},
|
|
327
|
+
"business_artifact_action_definition_type": {
|
|
328
|
+
"key": "businessArtifactActionDefinitionType",
|
|
329
|
+
"type": "WorkflowBusinessArtifactActionDefinitionType",
|
|
330
|
+
},
|
|
331
|
+
"business_artifact_action_definition_code": {"key": "businessArtifactActionDefinitionCode", "type": "str"},
|
|
332
|
+
"business_artifact_action_value_id": {"key": "businessArtifactActionValueId", "type": "str"},
|
|
333
|
+
"requestor_principal_id": {"key": "requestorPrincipalId", "type": "str"},
|
|
334
|
+
"request_time": {"key": "requestTime", "type": "iso-8601"},
|
|
335
|
+
"request_time_zone": {"key": "requestTimeZone", "type": "str"},
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
def __init__(
|
|
339
|
+
self,
|
|
340
|
+
business_artifact_id: str,
|
|
341
|
+
business_artifact_action_definition_type: "_models.WorkflowBusinessArtifactActionDefinitionType",
|
|
342
|
+
business_artifact_action_definition_code: str,
|
|
343
|
+
business_artifact_action_value_id: str,
|
|
344
|
+
requestor_principal_id: str,
|
|
345
|
+
request_time: datetime.datetime,
|
|
346
|
+
request_time_zone: str,
|
|
347
|
+
**kwargs: Any,
|
|
348
|
+
) -> None:
|
|
349
|
+
"""
|
|
350
|
+
Parameters:
|
|
351
|
+
business_artifact_id: Identifier of the related business artifact
|
|
352
|
+
business_artifact_action_definition_type: Type of the business artifact action definition
|
|
353
|
+
business_artifact_action_definition_code: Code of the business artifact action definition
|
|
354
|
+
business_artifact_action_value_id: Identifier of the business artifact action
|
|
355
|
+
requestor_principal_id: Identifier of the principal that request the business artifact action
|
|
356
|
+
request_time: The timestamp when the request was made.
|
|
357
|
+
request_time_zone: The time zone associated with the request.
|
|
358
|
+
"""
|
|
359
|
+
super().__init__(**kwargs)
|
|
360
|
+
self.business_artifact_id = business_artifact_id
|
|
361
|
+
self.business_artifact_action_definition_type = business_artifact_action_definition_type
|
|
362
|
+
self.business_artifact_action_definition_code = business_artifact_action_definition_code
|
|
363
|
+
self.business_artifact_action_value_id = business_artifact_action_value_id
|
|
364
|
+
self.requestor_principal_id = requestor_principal_id
|
|
365
|
+
self.request_time = request_time
|
|
366
|
+
self.request_time_zone = request_time_zone
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
class WorkflowBusinessArtifactActionResponseDownloadable(serialization.Model):
|
|
370
|
+
_attribute_map = {
|
|
371
|
+
"document_uri": {"key": "documentUri", "type": "str"},
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
def __init__(self, document_uri: str, **kwargs: Any) -> None:
|
|
375
|
+
"""
|
|
376
|
+
Parameters:
|
|
377
|
+
document_uri: URI of the document previously uploaded via the public endpoint
|
|
378
|
+
"""
|
|
379
|
+
super().__init__(**kwargs)
|
|
380
|
+
self.document_uri = document_uri
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
class WorkflowBusinessArtifactActionResponse(serialization.Model):
|
|
384
|
+
_attribute_map = {
|
|
385
|
+
"message": {"key": "message", "type": "str"},
|
|
386
|
+
"downloadable": {"key": "downloadable", "type": "WorkflowBusinessArtifactActionResponseDownloadable"},
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
def __init__(
|
|
390
|
+
self,
|
|
391
|
+
message: Optional[str] = None,
|
|
392
|
+
downloadable: Optional["_models.WorkflowBusinessArtifactActionResponseDownloadable"] = None,
|
|
393
|
+
**kwargs: Any,
|
|
394
|
+
) -> None:
|
|
395
|
+
"""
|
|
396
|
+
Parameters:
|
|
397
|
+
message: Optional human-readable response message
|
|
398
|
+
downloadable: Type-specific response, populated only for DOWNLOADABLE action type
|
|
399
|
+
"""
|
|
400
|
+
super().__init__(**kwargs)
|
|
401
|
+
self.message = message
|
|
402
|
+
self.downloadable = downloadable
|
{kuflow_temporal_workflow_kuflow-3.2.2 → kuflow_temporal_workflow_kuflow-3.3.0}/pyproject.toml
RENAMED
|
@@ -17,13 +17,13 @@ requires = ["poetry_core>=1.0.0"]
|
|
|
17
17
|
build-backend = "poetry.core.masonry.api"
|
|
18
18
|
|
|
19
19
|
[tool.poetry]
|
|
20
|
-
version = "3.
|
|
20
|
+
version = "3.3.0"
|
|
21
21
|
include = ["VERSION", "README.md", "CHANGELOG.md"]
|
|
22
22
|
packages = [{ include = "kuflow_temporal_workflow_kuflow" }]
|
|
23
23
|
requires-poetry = '>=2.0,<3.0'
|
|
24
24
|
|
|
25
25
|
[tool.poetry.dependencies]
|
|
26
|
-
kuflow-temporal-common = "^3.
|
|
26
|
+
kuflow-temporal-common = "^3.3.0"
|
|
27
27
|
|
|
28
28
|
[tool.poetry.group.dev.dependencies]
|
|
29
29
|
mypy = "^1.11.1"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.2.2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|