Variable MJAccessControlRuleSchemaConst
MJAccessControlRuleSchema: ZodObject<
{
__mj_CreatedAt: ZodDate;
__mj_UpdatedAt: ZodDate;
CanCreate: ZodBoolean;
CanDelete: ZodBoolean;
CanRead: ZodBoolean;
CanShare: ZodBoolean;
CanUpdate: ZodBoolean;
Entity: ZodString;
EntityID: ZodString;
ExpiresAt: ZodNullable<ZodDate>;
GrantedByUser: ZodString;
GrantedByUserID: ZodString;
GranteeID: ZodNullable<ZodString>;
GranteeType: ZodUnion<
[
ZodLiteral<"Everyone">,
ZodLiteral<"Public">,
ZodLiteral<"Role">,
ZodLiteral<"User">,
],
>;
ID: ZodString;
RecordID: ZodString;
},
"strip",
ZodTypeAny,
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
CanCreate?: boolean;
CanDelete?: boolean;
CanRead?: boolean;
CanShare?: boolean;
CanUpdate?: boolean;
Entity?: string;
EntityID?: string;
ExpiresAt?: Date;
GrantedByUser?: string;
GrantedByUserID?: string;
GranteeID?: string;
GranteeType?: "Everyone"
| "Public"
| "Role"
| "User";
ID?: string;
RecordID?: string;
},
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
CanCreate?: boolean;
CanDelete?: boolean;
CanRead?: boolean;
CanShare?: boolean;
CanUpdate?: boolean;
Entity?: string;
EntityID?: string;
ExpiresAt?: Date;
GrantedByUser?: string;
GrantedByUserID?: string;
GranteeID?: string;
GranteeType?: "Everyone"
| "Public"
| "Role"
| "User";
ID?: string;
RecordID?: string;
},
> = ...
zod schema definition for the entity MJ: Access Control Rules