Files
MorganGitHubDevin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
62216f2db6 feat: add CalendarsTasker with sync and trigger.dev versions (#26854)
* feat: add CalendarsTasker with sync and trigger.dev versions

This PR implements a CalendarsTasker following the same pattern as
PlatformOrganizationBillingTasker to replace the logic in
apps/api/v2/src/ee/calendars/processors/calendars.processor.ts

New files created:
- CalendarsTasker main orchestrator extending Tasker base class
- CalendarsSyncTasker for sync execution
- CalendarsTriggerTasker for async execution via trigger.dev
- CalendarsTaskService with business logic for ensuring default calendars
- trigger.dev task with queue config and retry settings
- DI modules using @evyweb/ioctopus
- NestJS DI modules for API v2

Co-Authored-By: [email protected] <[email protected]>

* fix: import and deasync

* style: format trigger.config.ts dirs array

Co-Authored-By: unknown <>

* refactor: move prisma query to UserRepository and set onboarding to true

Co-Authored-By: [email protected] <[email protected]>

* refactor: remove credential.key from UserRepository method

Co-Authored-By: [email protected] <[email protected]>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-01-19 16:20:05 +02:00

11 lines
545 B
TypeScript

export const CALENDARS_TASKER_DI_TOKENS = {
CALENDARS_TASK_SERVICE: Symbol("CalendarsTaskService"),
CALENDARS_TASK_SERVICE_MODULE: Symbol("CalendarsTaskServiceModule"),
CALENDARS_SYNC_TASKER: Symbol("CalendarsSyncTasker"),
CALENDARS_SYNC_TASKER_MODULE: Symbol("CalendarsSyncTaskerModule"),
CALENDARS_TRIGGER_TASKER: Symbol("CalendarsTriggerTasker"),
CALENDARS_TRIGGER_TASKER_MODULE: Symbol("CalendarsTriggerTaskerModule"),
CALENDARS_TASKER: Symbol("CalendarsTasker"),
CALENDARS_TASKER_MODULE: Symbol("CalendarsTaskerModule"),
};