From 33e8452331c301430191b3506825ebaf3edac93a Mon Sep 17 00:00:00 2001 From: dujinkim Date: Wed, 1 Oct 2025 09:48:03 +0000 Subject: (최겸) 구매 PQ 리스트 기능 수정, 견적 첨부파일 리비전 액션 추가, 기타 등 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pq/validations.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'lib/pq/validations.ts') diff --git a/lib/pq/validations.ts b/lib/pq/validations.ts index 93daf460..c8a9d8e5 100644 --- a/lib/pq/validations.ts +++ b/lib/pq/validations.ts @@ -107,9 +107,7 @@ export const copyPqListSchema = z.object({ sourcePqListId: z.number({ required_error: "복사할 PQ 목록을 선택해주세요" }), - targetProjectId: z.number({ - required_error: "대상 프로젝트를 선택해주세요" - }), + targetProjectId: z.number().optional(), newName: z.string().min(1, "새 PQ 목록 명을 입력해주세요").optional(), validTo: z.date().optional().nullable(), }); @@ -124,4 +122,14 @@ export type CreatePqListInput = z.infer; export type CopyPqListInput = z.infer; export type GetPqListsSchema = z.infer; -export type GetPQSubmissionsSchema = Awaited> \ No newline at end of file +export type GetPQSubmissionsSchema = Awaited> + +// PQ 유효일 수정 +export const updatePqValidToSchema = z.object({ + pqListId: z.number({ + required_error: "PQ 목록 ID가 필요합니다" + }), + validTo: z.date().nullable(), +}); + +export type UpdatePqValidToInput = z.infer; \ No newline at end of file -- cgit v1.2.3