Variable MJScheduledJobSchemaConst
MJScheduledJobSchema: ZodObject<
{
__mj_CreatedAt: ZodDate;
__mj_UpdatedAt: ZodDate;
ConcurrencyMode: ZodUnion<
[ZodLiteral<"Concurrent">, ZodLiteral<"Queue">, ZodLiteral<"Skip">],
>;
Configuration: ZodNullable<ZodString>;
CronExpression: ZodString;
Description: ZodNullable<ZodString>;
EndAt: ZodNullable<ZodDate>;
ExpectedCompletionAt: ZodNullable<ZodDate>;
FailureCount: ZodNumber;
ID: ZodString;
JobType: ZodString;
JobTypeID: ZodString;
LastRunAt: ZodNullable<ZodDate>;
LockedAt: ZodNullable<ZodDate>;
LockedByInstance: ZodNullable<ZodString>;
LockToken: ZodNullable<ZodString>;
MaxRuntimeMinutes: ZodNullable<ZodNumber>;
Name: ZodString;
NextRunAt: ZodNullable<ZodDate>;
NotifyOnFailure: ZodBoolean;
NotifyOnSuccess: ZodBoolean;
NotifyUser: ZodNullable<ZodString>;
NotifyUserID: ZodNullable<ZodString>;
NotifyViaEmail: ZodBoolean;
NotifyViaInApp: ZodBoolean;
OwnerUser: ZodNullable<ZodString>;
OwnerUserID: ZodNullable<ZodString>;
RunCount: ZodNumber;
RunImmediatelyIfNeverRun: ZodBoolean;
StartAt: ZodNullable<ZodDate>;
Status: ZodUnion<
[
ZodLiteral<"Active">,
ZodLiteral<"Disabled">,
ZodLiteral<"Expired">,
ZodLiteral<"Paused">,
ZodLiteral<"Pending">,
],
>;
SuccessCount: ZodNumber;
Timezone: ZodString;
},
"strip",
ZodTypeAny,
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
ConcurrencyMode?: "Queue"
| "Concurrent"
| "Skip";
Configuration?: string;
CronExpression?: string;
Description?: string;
EndAt?: Date;
ExpectedCompletionAt?: Date;
FailureCount?: number;
ID?: string;
JobType?: string;
JobTypeID?: string;
LastRunAt?: Date;
LockedAt?: Date;
LockedByInstance?: string;
LockToken?: string;
MaxRuntimeMinutes?: number;
Name?: string;
NextRunAt?: Date;
NotifyOnFailure?: boolean;
NotifyOnSuccess?: boolean;
NotifyUser?: string;
NotifyUserID?: string;
NotifyViaEmail?: boolean;
NotifyViaInApp?: boolean;
OwnerUser?: string;
OwnerUserID?: string;
RunCount?: number;
RunImmediatelyIfNeverRun?: boolean;
StartAt?: Date;
Status?: "Active" | "Disabled" | "Pending" | "Expired" | "Paused";
SuccessCount?: number;
Timezone?: string;
},
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
ConcurrencyMode?: "Queue"
| "Concurrent"
| "Skip";
Configuration?: string;
CronExpression?: string;
Description?: string;
EndAt?: Date;
ExpectedCompletionAt?: Date;
FailureCount?: number;
ID?: string;
JobType?: string;
JobTypeID?: string;
LastRunAt?: Date;
LockedAt?: Date;
LockedByInstance?: string;
LockToken?: string;
MaxRuntimeMinutes?: number;
Name?: string;
NextRunAt?: Date;
NotifyOnFailure?: boolean;
NotifyOnSuccess?: boolean;
NotifyUser?: string;
NotifyUserID?: string;
NotifyViaEmail?: boolean;
NotifyViaInApp?: boolean;
OwnerUser?: string;
OwnerUserID?: string;
RunCount?: number;
RunImmediatelyIfNeverRun?: boolean;
StartAt?: Date;
Status?: "Active" | "Disabled" | "Pending" | "Expired" | "Paused";
SuccessCount?: number;
Timezone?: string;
},
> = ...
zod schema definition for the entity MJ: Scheduled Jobs