WaywedoClient
Attributes
TRIGGER_OPERATIONS
module-attribute
TRIGGER_OPERATIONS: Dict[str, Dict[str, Any]] = {'Checklist_Create_WebHook': {'operation_id': 'Checklist_Create_WebHook', 'path': '/{connectionId}/v1/Webhook/events/checklist_start', 'method': 'post', 'required_parameters': ['Webhook Registration'], 'callback_payload_type': 'WebhookRegistered'}, 'New_Comment_WebHook': {'operation_id': 'New_Comment_WebHook', 'path': '/{connectionId}/v1/Webhook/events/new_comment', 'method': 'post', 'required_parameters': ['Webhook Registration'], 'callback_payload_type': 'WebhookRegistered'}, 'Finish_Checklist_WebHook': {'operation_id': 'Finish_Checklist_WebHook', 'path': '/{connectionId}/v1/Webhook/events/checklist_finish', 'method': 'post', 'required_parameters': ['Webhook Registration'], 'callback_payload_type': 'WebhookRegistered'}, 'Invite_Supervisor_WebHook': {'operation_id': 'Invite_Supervisor_WebHook', 'path': '/{connectionId}/v1/Webhook/events/supervisor_invite', 'method': 'post', 'required_parameters': ['Webhook Registration'], 'callback_payload_type': 'WebhookRegistered'}, 'Generate_Acceptance_PDF_WebHook': {'operation_id': 'Generate_Acceptance_PDF_WebHook', 'path': '/{connectionId}/v1/Webhook/events/generate_acceptance_pdf', 'method': 'post', 'required_parameters': ['Webhook Registration'], 'callback_payload_type': 'WebhookRegistered'}, 'Checklist_Step_Completed_WebHook': {'operation_id': 'Checklist_Step_Completed_WebHook', 'path': '/{connectionId}/v1/Webhook/events/checklist_step_completed', 'method': 'post', 'required_parameters': ['Webhook Registration'], 'callback_payload_type': 'WebhookRegistered'}}
Classes
CommentAddInput
dataclass
CommentAddInput(instance_id: Optional[str] = None, step_id: Optional[str] = None, user_id: Optional[int] = None, message: Optional[str] = None, bot: Optional[str] = None)
Add a comment to a checklist instance step
Attributes
instance_id
class-attribute
instance-attribute
Select the checklist instance
step_id
class-attribute
instance-attribute
Select the step of the checklist instance
user_id
class-attribute
instance-attribute
Select the user creating the comment
ChecklistComment
dataclass
ChecklistComment(id: Optional[str] = None, type_: Optional[int] = None, procedure_id: Optional[int] = None, procedure_title: Optional[str] = None, instance_id: Optional[str] = None, step_id: Optional[str] = None, instance_title: Optional[str] = None, comment: Optional[str] = None, created: Optional[str] = None, created_by: Optional[str] = None, image_url: Optional[str] = None)
Response for Add a comment to a checklist instance step
Attributes
type_
class-attribute
instance-attribute
The type of comment; either 1 (standard) or 2 (attachment).
procedure_id
class-attribute
instance-attribute
The unique ID of the procedure.
procedure_title
class-attribute
instance-attribute
The title of the procedure.
instance_id
class-attribute
instance-attribute
The unique ID of the checklist instance.
step_id
class-attribute
instance-attribute
The unique ID of the checklist step.
instance_title
class-attribute
instance-attribute
The title of the checklist instance.
comment
class-attribute
instance-attribute
The comment text added to the step.
created
class-attribute
instance-attribute
The date and time the comment was created.
created_by
class-attribute
instance-attribute
The email address of the user who created the comment.
ChecklistInstancesInput
dataclass
ChecklistInstancesInput(procedure_id: Optional[int] = None, title: Optional[str] = None, user_id: Optional[int] = None, company_role_id: Optional[int] = None, bot: Optional[str] = None)
Create Checklist Instance
Attributes
procedure_id
class-attribute
instance-attribute
Select a checklist master
title
class-attribute
instance-attribute
The title of the checklist instance
user_id
class-attribute
instance-attribute
Select the user to add as a collaborator
company_role_id
class-attribute
instance-attribute
Select the company role to add as a collaborator.
ChecklistInstance
dataclass
ChecklistInstance(id: Optional[str] = None, procedure_id: Optional[int] = None, title: Optional[str] = None, url: Optional[str] = None, created: Optional[str] = None, created_by: Optional[str] = None, finished: Optional[str] = None, earliest_due: Optional[str] = None, latest_due: Optional[str] = None)
Response for Create Checklist Instance
Attributes
id
class-attribute
instance-attribute
The unique ID of the checklist instance.
procedure_id
class-attribute
instance-attribute
The unique ID of the procedure.
title
class-attribute
instance-attribute
The title of the checklist instance.
created
class-attribute
instance-attribute
The date and time the checklist instance was started.
created_by
class-attribute
instance-attribute
The email address of the user who started the checklist instance.
finished
class-attribute
instance-attribute
The date and time the checklist instance was finished.
earliest_due
class-attribute
instance-attribute
The earliest date and time the checklist instance could be due.
ChecklistStep
dataclass
Response for Find Checklist Step
Attributes
title
class-attribute
instance-attribute
The title of the instance step.
ChecklistStepsCompleteInput
dataclass
Complete a Checklist Step
ChecklistStepsCompleteResponse
dataclass
CollaboratorsAddInput
dataclass
CollaboratorsAddResponse
dataclass
Procedure
dataclass
Procedure(id: Optional[int] = None, title: Optional[str] = None, status: Optional[str] = None, summary: Optional[str] = None, created_by: Optional[str] = None, url: Optional[str] = None, restricted: Optional[bool] = None, type_: Optional[int] = None)
Response for Find Checklist
Attributes
status
class-attribute
instance-attribute
The publishing status of the procedure.
summary
class-attribute
instance-attribute
The summary of the procedure.
created_by
class-attribute
instance-attribute
The email of the user that created the procedure.
restricted
class-attribute
instance-attribute
Whether the procedure is restricted or not.
User
dataclass
User(id: Optional[int] = None, first_name: Optional[str] = None, last_name: Optional[str] = None, email: Optional[str] = None)
Response for Find User
Attributes
first_name
class-attribute
instance-attribute
The first name of the user.
last_name
class-attribute
instance-attribute
The last name of the user.
UsersInput
dataclass
UsersInput(first_name: Optional[str] = None, last_name: Optional[str] = None, email: Optional[str] = None, security_role: Optional[int] = None, company_roles: Optional[List[int]] = None, time_zone_id: Optional[str] = None)
Add a New User
Attributes
first_name
class-attribute
instance-attribute
The first name of the user.
last_name
class-attribute
instance-attribute
The last name of the user.
security_role
class-attribute
instance-attribute
Select a security role.
UsersPostResponse
dataclass
ChecklistCreateWebHookInput
dataclass
WebhookRegistered
dataclass
WebhookRegistered(id: Optional[int] = None, callbackurl: Optional[str] = None, created: Optional[str] = None, web_hook_event: Optional[str] = None)
Response for When a checklist instance is started
Attributes
id
class-attribute
instance-attribute
The unique ID of the Webhook registration.
callbackurl
class-attribute
instance-attribute
The URL to call when action occurs.
created
class-attribute
instance-attribute
The date and time the webhook was registered.
NewCommentWebHookInput
dataclass
FinishChecklistWebHookInput
dataclass
InviteSupervisorWebHookInput
dataclass
GenerateAcceptancePDFWebHookInput
dataclass
ChecklistStepCompletedWebHookInput
dataclass
GetAllChecklistInstancesResponse
dataclass
GetAllChecklistInstancesResponse(results: Optional[List[ChecklistInstance]] = None, total: Optional[int] = None)
Response for Get All Checklist Instances
CompletedStep
dataclass
CompletedStep(id: Optional[str] = None, instance_id: Optional[str] = None, procedure_id: Optional[int] = None, created: Optional[str] = None, created_by: Optional[str] = None, due: Optional[str] = None, step: Optional[ChecklistStep] = None, decision_choices: Optional[List[str]] = None)
Definition: CompletedStep
Attributes
id
class-attribute
instance-attribute
The unique ID of the checklist step completion.
instance_id
class-attribute
instance-attribute
The unique ID of the checklist instance.
procedure_id
class-attribute
instance-attribute
The unique ID of the procedure.
created
class-attribute
instance-attribute
The date and time the checklist step was completed.
created_by
class-attribute
instance-attribute
The email address of the user that completed the checklist step.
due
class-attribute
instance-attribute
The date and time the checklist step was due.
ProcedureAcceptance
dataclass
ProcedureAcceptance(id: Optional[int] = None, accepted: Optional[str] = None, created_by: Optional[str] = None, file_name: Optional[str] = None, attachment_url: Optional[str] = None, procedure_title: Optional[str] = None)
Definition: ProcedureAcceptance
Attributes
id
class-attribute
instance-attribute
The unique ID of the procedure acceptance
accepted
class-attribute
instance-attribute
The date and time the procedure was accepted.
created_by
class-attribute
instance-attribute
The email address of the user that accepted the procedure.
file_name
class-attribute
instance-attribute
The file name of the generated PDF.
attachment_url
class-attribute
instance-attribute
The URL to the generated PDF. Valid for 5 minutes.
WaywedoClient
WaywedoClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)
Bases: ConnectorClientBase
Typed client for waywedo connector.
Initialize a WaywedoClient.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
connection_runtime_url
|
str
|
The connection runtime URL from Azure Portal. |
required |
token_provider
|
Optional[TokenProvider]
|
Optional token provider. Defaults to ManagedIdentityTokenProvider. |
None
|
options
|
Optional[ConnectorClientOptions]
|
Optional connector client options. |
None
|
Methods:
comment_add_async
async
Add a comment to a checklist instance step
Adds a new comment to an Activated Checklist Instance step.
checklist_instances_async
async
Create Checklist Instance
Creates a new activated checklist instance.
checklist_instances_get_async
async
Get A Checklist Instance
Retrieve a specific checklist instance by ID
checklist_instances_activity_async
async
Get Checklist Instance Activity
Retrieve all activity for a checklist instance
find_steps_async
async
Find Checklist Step
Find a step of a checklist instance
checklist_steps_get_async
async
Get A Checklist Step
Retrieve a specific checklist step by ID
checklist_steps_complete_async
async
checklist_steps_complete_async(input: ChecklistStepsCompleteInput, instance_id: str, step_id: str) -> dict[str, Any] | None
Complete a Checklist Step
Mark a specific step in a checklist instance as complete.
collaborators_add_async
async
Add Collaborators to a Checklist Instance
Adds one or more collaborators to a checklist instance.
find_checklist_async
async
Find Checklist
Search for a checklist by title
procedures_get_async
async
Get A Checklist Or Procedure
Retrieve a specific checklist or procedure by ID
find_checklist_instances_async
async
find_checklist_instances_async(procedure_id: int, query: Optional[str] = None) -> dict[str, Any] | None
Find Checklist Instance
Search for a checklist instance by title.
find_user_async
async
Find User
Search for a user by name or email.
users_async
async
Add a New User
Creates and invites a new user.