Variable MJRecordChangeSchemaConst
MJRecordChangeSchema: ZodObject<
{
ChangedAt: ZodDate;
ChangesDescription: ZodString;
ChangesJSON: ZodString;
Comments: ZodNullable<ZodString>;
CreatedAt: ZodDate;
Entity: ZodString;
EntityID: ZodString;
ErrorLog: ZodNullable<ZodString>;
FullRecordJSON: ZodString;
ID: ZodString;
Integration: ZodNullable<ZodString>;
IntegrationID: ZodNullable<ZodString>;
RecordID: ZodString;
ReplayRun: ZodNullable<ZodString>;
ReplayRunID: ZodNullable<ZodString>;
RestoredFrom: ZodNullable<ZodString>;
RestoredFromID: ZodNullable<ZodString>;
RestoreReason: ZodNullable<ZodString>;
RootRestoredFromID: ZodNullable<ZodString>;
Source: ZodUnion<
[
ZodLiteral<"External">,
ZodLiteral<"Internal">,
ZodLiteral<"Restore">,
],
>;
Status: ZodUnion<
[ZodLiteral<"Complete">, ZodLiteral<"Error">, ZodLiteral<"Pending">],
>;
Type: ZodUnion<
[
ZodLiteral<"Create">,
ZodLiteral<"Delete">,
ZodLiteral<"Snapshot">,
ZodLiteral<"Update">,
],
>;
UpdatedAt: ZodDate;
User: ZodString;
UserID: ZodString;
},
"strip",
ZodTypeAny,
{
ChangedAt?: Date;
ChangesDescription?: string;
ChangesJSON?: string;
Comments?: string;
CreatedAt?: Date;
Entity?: string;
EntityID?: string;
ErrorLog?: string;
FullRecordJSON?: string;
ID?: string;
Integration?: string;
IntegrationID?: string;
RecordID?: string;
ReplayRun?: string;
ReplayRunID?: string;
RestoredFrom?: string;
RestoredFromID?: string;
RestoreReason?: string;
RootRestoredFromID?: string;
Source?: "Internal"
| "External"
| "Restore";
Status?: "Pending" | "Complete" | "Error";
Type?: "Create" | "Delete" | "Snapshot" | "Update";
UpdatedAt?: Date;
User?: string;
UserID?: string;
},
{
ChangedAt?: Date;
ChangesDescription?: string;
ChangesJSON?: string;
Comments?: string;
CreatedAt?: Date;
Entity?: string;
EntityID?: string;
ErrorLog?: string;
FullRecordJSON?: string;
ID?: string;
Integration?: string;
IntegrationID?: string;
RecordID?: string;
ReplayRun?: string;
ReplayRunID?: string;
RestoredFrom?: string;
RestoredFromID?: string;
RestoreReason?: string;
RootRestoredFromID?: string;
Source?: "Internal"
| "External"
| "Restore";
Status?: "Pending" | "Complete" | "Error";
Type?: "Create" | "Delete" | "Snapshot" | "Update";
UpdatedAt?: Date;
User?: string;
UserID?: string;
},
> = ...
zod schema definition for the entity MJ: Record Changes