job.interface.d.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. import { EnvironmentId, ITenantDefine, OrganizationId, StepTypeEnum } from '../../types';
  2. import { IWorkflowStepMetadata } from '../step';
  3. import { JobStatusEnum } from './status.enum';
  4. import { INotificationTemplateStep } from '../notification-template';
  5. export interface IJob {
  6. _id: string;
  7. identifier: string;
  8. payload: any;
  9. overrides: Record<string, Record<string, unknown>>;
  10. step: INotificationTemplateStep;
  11. tenant?: ITenantDefine;
  12. transactionId: string;
  13. _notificationId: string;
  14. subscriberId: string;
  15. _subscriberId: string;
  16. _environmentId: EnvironmentId;
  17. _organizationId: OrganizationId;
  18. providerId?: string;
  19. _userId: string;
  20. delay?: number;
  21. _parentId?: string;
  22. status: JobStatusEnum;
  23. error?: any;
  24. createdAt: string;
  25. updatedAt: string;
  26. expireAt?: string;
  27. _templateId: string;
  28. digest?: IWorkflowStepMetadata & {
  29. events?: any[];
  30. };
  31. type?: StepTypeEnum;
  32. _actorId?: string;
  33. }
  34. //# sourceMappingURL=job.interface.d.ts.map