diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-01 09:48:03 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-01 09:48:03 +0000 |
| commit | 33e8452331c301430191b3506825ebaf3edac93a (patch) | |
| tree | 6d92d754dbd30cafe0f3f920a14d6d6031c624b8 /lib/pq/validations.ts | |
| parent | 8ac4e8d9faa6e86ca6c7ab475efd7462d76fc9b6 (diff) | |
(최겸) 구매 PQ 리스트 기능 수정, 견적 첨부파일 리비전 액션 추가, 기타 등
Diffstat (limited to 'lib/pq/validations.ts')
| -rw-r--r-- | lib/pq/validations.ts | 16 |
1 files changed, 12 insertions, 4 deletions
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<typeof createPqListSchema>; export type CopyPqListInput = z.infer<typeof copyPqListSchema>;
export type GetPqListsSchema = z.infer<typeof getPqListsSchema>;
-export type GetPQSubmissionsSchema = Awaited<ReturnType<typeof searchParamsPQReviewCache.parse>>
\ No newline at end of file +export type GetPQSubmissionsSchema = Awaited<ReturnType<typeof searchParamsPQReviewCache.parse>>
+
+// PQ 유효일 수정
+export const updatePqValidToSchema = z.object({
+ pqListId: z.number({
+ required_error: "PQ 목록 ID가 필요합니다"
+ }),
+ validTo: z.date().nullable(),
+});
+
+export type UpdatePqValidToInput = z.infer<typeof updatePqValidToSchema>;
\ No newline at end of file |
