mirror of
https://github.com/colanode/colanode.git
synced 2025-12-29 00:25:03 +01:00
19 lines
685 B
TypeScript
19 lines
685 B
TypeScript
import { JobHandler } from '@/types/jobs';
|
|
import { JobMap } from '@/types/jobs';
|
|
|
|
import { sendEmailHandler } from '@/jobs/send-email';
|
|
import { cleanWorkspaceDataHandler } from '@/jobs/clean-workspace-data';
|
|
import { createCollaborationsHandler } from '@/jobs/create-collaborations';
|
|
import { deleteCollaborationsHandler } from '@/jobs/delete-collaborations';
|
|
|
|
type JobHandlerMap = {
|
|
[K in keyof JobMap]: JobHandler<JobMap[K]['input']>;
|
|
};
|
|
|
|
export const jobHandlerMap: JobHandlerMap = {
|
|
send_email: sendEmailHandler,
|
|
clean_workspace_data: cleanWorkspaceDataHandler,
|
|
create_collaborations: createCollaborationsHandler,
|
|
delete_collaborations: deleteCollaborationsHandler,
|
|
};
|