Variable ResourcePermissionSchemaConst
ResourcePermissionSchema: ZodObject<{
EndSharingAt: ZodNullable<ZodDate>;
ID: ZodString;
PermissionLevel: ZodNullable<ZodUnion<[ZodLiteral<"Edit">, ZodLiteral<"Owner">, ZodLiteral<"View">]>>;
ResourceRecordID: ZodString;
ResourceType: ZodString;
ResourceTypeID: ZodString;
Role: ZodNullable<ZodString>;
RoleID: ZodNullable<ZodString>;
StartSharingAt: ZodNullable<ZodDate>;
Status: ZodUnion<[ZodLiteral<"Approved">, ZodLiteral<"Rejected">, ZodLiteral<"Requested">, ZodLiteral<"Revoked">]>;
Type: ZodUnion<[ZodLiteral<"Role">, ZodLiteral<"User">]>;
User: ZodNullable<ZodString>;
UserID: ZodNullable<ZodString>;
__mj_CreatedAt: ZodDate;
__mj_UpdatedAt: ZodDate;
}, "strip", ZodTypeAny, {
EndSharingAt?: Date;
ID?: string;
PermissionLevel?: "View" | "Owner" | "Edit";
ResourceRecordID?: string;
ResourceType?: string;
ResourceTypeID?: string;
Role?: string;
RoleID?: string;
StartSharingAt?: Date;
Status?: "Approved" | "Rejected" | "Revoked" | "Requested";
Type?: "User" | "Role";
User?: string;
UserID?: string;
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
}, {
EndSharingAt?: Date;
ID?: string;
PermissionLevel?: "View" | "Owner" | "Edit";
ResourceRecordID?: string;
ResourceType?: string;
ResourceTypeID?: string;
Role?: string;
RoleID?: string;
StartSharingAt?: Date;
Status?: "Approved" | "Rejected" | "Revoked" | "Requested";
Type?: "User" | "Role";
User?: string;
UserID?: string;
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
}> = ...
Type declaration
EndSharingAt: ZodNullable<ZodDate>
ID: ZodString
PermissionLevel: ZodNullable<ZodUnion<[ZodLiteral<"Edit">, ZodLiteral<"Owner">, ZodLiteral<"View">]>>
ResourceRecordID: ZodString
ResourceType: ZodString
ResourceTypeID: ZodString
Role: ZodNullable<ZodString>
RoleID: ZodNullable<ZodString>
StartSharingAt: ZodNullable<ZodDate>
Status: ZodUnion<[ZodLiteral<"Approved">, ZodLiteral<"Rejected">, ZodLiteral<"Requested">, ZodLiteral<"Revoked">]>
Type: ZodUnion<[ZodLiteral<"Role">, ZodLiteral<"User">]>
User: ZodNullable<ZodString>
UserID: ZodNullable<ZodString>
__mj_CreatedAt: ZodDate
__mj_UpdatedAt: ZodDate
Type declaration
Optional EndSharingAt?: Date
Optional ID?: string
Optional PermissionLevel?: "View" | "Owner" | "Edit"
Optional ResourceRecordID?: string
Optional ResourceType?: string
Optional ResourceTypeID?: string
Optional Role?: string
Optional RoleID?: string
Optional StartSharingAt?: Date
Optional Status?: "Approved" | "Rejected" | "Revoked" | "Requested"
Optional Type?: "User" | "Role"
Optional User?: string
Optional UserID?: string
Optional __mj_CreatedAt?: Date
Optional __mj_UpdatedAt?: Date
Type declaration
Optional EndSharingAt?: Date
Optional ID?: string
Optional PermissionLevel?: "View" | "Owner" | "Edit"
Optional ResourceRecordID?: string
Optional ResourceType?: string
Optional ResourceTypeID?: string
Optional Role?: string
Optional RoleID?: string
Optional StartSharingAt?: Date
Optional Status?: "Approved" | "Rejected" | "Revoked" | "Requested"
Optional Type?: "User" | "Role"
Optional User?: string
Optional UserID?: string
Optional __mj_CreatedAt?: Date
Optional __mj_UpdatedAt?: Date
zod schema definition for the entity Resource Permissions