add manualStatus field
This commit is contained in:
@@ -28,6 +28,7 @@ const permitSchema = new mongoose.Schema({
|
||||
{ _id: false }
|
||||
),
|
||||
status: String,
|
||||
manualStatus: String,
|
||||
assignedTo: {
|
||||
type: mongoose.Types.ObjectId,
|
||||
ref: "user",
|
||||
@@ -127,23 +128,9 @@ const listPermitResponse = z.object({
|
||||
});
|
||||
|
||||
const updatePermitInput = z.object({
|
||||
county: z.string().optional(),
|
||||
client: z.string().optional(),
|
||||
permitDate: z.date().optional(),
|
||||
stage: z
|
||||
.object({
|
||||
pipeline: z.array(
|
||||
z.object({
|
||||
name: z.string(),
|
||||
date: z.date().nullable().optional(),
|
||||
description: z.string().optional(),
|
||||
comment: z.string().optional(),
|
||||
})
|
||||
),
|
||||
currentStage: z.number(),
|
||||
})
|
||||
manualStatus: z
|
||||
.enum(["Ready To Issue", "Issued", "Invoiced", "Paid", "Closed"])
|
||||
.optional(),
|
||||
status: z.string().optional(),
|
||||
assignedTo: z.string().optional(),
|
||||
});
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ const processedSchema = new mongoose.Schema({
|
||||
{ _id: false }
|
||||
),
|
||||
status: String,
|
||||
manualStatus: String,
|
||||
assignedTo: {
|
||||
type: mongoose.Types.ObjectId,
|
||||
ref: "user",
|
||||
|
||||
Reference in New Issue
Block a user