Skip to content

Commit a470c99

Browse files
committed
chore: add trigger name
1 parent a72d19a commit a470c99

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-runtime"
3-
version = "0.0.17"
3+
version = "0.0.18"
44
description = "Runtime abstractions and interfaces for building agents and automation scripts in the UiPath ecosystem"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath/runtime/resumable/trigger.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,19 @@ class UiPathResumeTriggerType(str, Enum):
1212
NONE = "None"
1313
QUEUE_ITEM = "QueueItem"
1414
JOB = "Job"
15-
ACTION = "Task"
15+
TASK = "Task"
16+
TIMER = "Timer"
17+
INBOX = "Inbox"
18+
API = "Api"
19+
20+
class UiPathResumeTriggerName(str, Enum):
21+
"""Constants representing different types of resume job triggers in the system."""
22+
23+
UNKNOWN = "Unknown"
24+
QUEUE_ITEM = "QueueItem"
25+
JOB = "Job"
26+
TASK = "Task"
27+
ESCALATION = "Escalation"
1628
TIMER = "Timer"
1729
INBOX = "Inbox"
1830
API = "Api"
@@ -33,6 +45,9 @@ class UiPathResumeTrigger(BaseModel):
3345
trigger_type: UiPathResumeTriggerType = Field(
3446
default=UiPathResumeTriggerType.API, alias="triggerType"
3547
)
48+
trigger_name: UiPathResumeTriggerName = Field(
49+
default=UiPathResumeTriggerName.UNKNOWN, alias="triggerName"
50+
)
3651
item_key: str | None = Field(default=None, alias="itemKey")
3752
api_resume: UiPathApiTrigger | None = Field(default=None, alias="apiResume")
3853
folder_path: str | None = Field(default=None, alias="folderPath")

0 commit comments

Comments
 (0)