Refactor: Rename triggers to events in trigger-related entities and services

- Updated class and variable names from 'triggers' to 'events' across multiple files to improve clarity and consistency.
- Adjusted related data structures and methods to reflect the new naming convention, including changes in API entities, service methods, and trigger management logic.
- Ensured all references to triggers are replaced with events to align with the updated terminology.
This commit is contained in:
Harry
2025-09-30 20:10:00 +08:00
parent 1bfa8e6662
commit 32f4d1af8b
10 changed files with 92 additions and 104 deletions

View File

@ -264,9 +264,9 @@ class TriggerValidateProviderCredentialsResponse(BaseModel):
class TriggerDispatchResponse:
triggers: list[str]
events: list[str]
response: Response
def __init__(self, triggers: list[str], response: Response):
self.triggers = triggers
def __init__(self, events: list[str], response: Response):
self.events = events
self.response = response