update client permissions
This commit is contained in:
@@ -137,25 +137,8 @@ const listPermitResponse = z.object({
|
||||
});
|
||||
|
||||
const updatePermitInput = z.object({
|
||||
manualStatus: z
|
||||
.enum([
|
||||
"Ready To Issue",
|
||||
"Issued",
|
||||
"Paid",
|
||||
"Closed",
|
||||
"Requested Issuance",
|
||||
"Rejected",
|
||||
"On Hold",
|
||||
"Ready to Download",
|
||||
"Withdrawn",
|
||||
"Canceled",
|
||||
])
|
||||
.nullable()
|
||||
.optional(),
|
||||
utility: z
|
||||
.enum(["Submitted", "Pending", "Applied", "Rejected", "Paid"])
|
||||
.nullable()
|
||||
.optional(),
|
||||
manualStatus: z.string().nullable().optional(),
|
||||
utility: z.string().nullable().optional(),
|
||||
assignedTo: z.string().optional(),
|
||||
newPayment: z.array(z.any()).optional(),
|
||||
communityName: z.string().optional(),
|
||||
|
||||
@@ -80,14 +80,8 @@ export const processedModel = mongoose.model(
|
||||
);
|
||||
|
||||
const updateProcessedInput = z.object({
|
||||
manualStatus: z
|
||||
.enum(["Ready To Issue", "Issued", "Invoiced", "Paid", "Closed"])
|
||||
.nullable()
|
||||
.optional(),
|
||||
utility: z
|
||||
.enum(["Submitted", "Pending", "Applied", "Rejected", "Paid"])
|
||||
.nullable()
|
||||
.optional(),
|
||||
manualStatus: z.string().nullable().optional(),
|
||||
utility: z.string().nullable().optional(),
|
||||
});
|
||||
|
||||
export type UpdateProcessedInput = z.infer<typeof updateProcessedInput>;
|
||||
|
||||
@@ -115,12 +115,14 @@ export const rules: Record<
|
||||
client: {
|
||||
claims: [
|
||||
"permit:read",
|
||||
"permit:write",
|
||||
"file:upload",
|
||||
"file:download",
|
||||
"org:read",
|
||||
"rts:read",
|
||||
"rts:write",
|
||||
"notification:read",
|
||||
"notification:write",
|
||||
"view:read",
|
||||
"view:write",
|
||||
"view:delete",
|
||||
|
||||
Reference in New Issue
Block a user