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