diff options
| author | joonhoekim <26rote@gmail.com> | 2025-09-05 11:59:38 +0000 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-09-05 11:59:38 +0000 |
| commit | e832a508e1b3c531fb3e1b9761e18e1b55e3d76a (patch) | |
| tree | b18c85a4f448f6a45984444f0f68c915dcc5ea22 /lib/vendors/validations.ts | |
| parent | 50adedf48ee4674ebe00f1ee72d93485183cdc51 (diff) | |
(김준회) RFQ 인터페이스 처리, 변수명 오타 수정(VendorPossibleMaterials), 협력업체 관리페이지 구매요구사항 반영
Diffstat (limited to 'lib/vendors/validations.ts')
| -rw-r--r-- | lib/vendors/validations.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/vendors/validations.ts b/lib/vendors/validations.ts index 2538e1c8..237dc846 100644 --- a/lib/vendors/validations.ts +++ b/lib/vendors/validations.ts @@ -121,7 +121,7 @@ export type CreditAgencyType = z.infer<typeof creditAgencyEnum>; export const updateVendorSchema = z.object({ vendorName: z.string().min(1, "업체명은 필수 입력사항입니다"), vendorCode: z.string().optional(), - address: z.string().min(1, "주소는 필수 입력사항입니다."), + address: z.string().optional(), // 부분 업데이트를 위해 optional로 변경 addressDetail: z.string().optional(), postalCode: z.string().optional(), country: z.string().optional(), @@ -130,6 +130,7 @@ export const updateVendorSchema = z.object({ website: z.string().url("유효한 URL을 입력해주세요").optional(), status: z.enum(vendors.status.enumValues).optional(), vendorTypeId: z.number().optional(), + isAssociationMember: z.string().optional(), // 성조회가입여부 추가 // Optional fields for buyer information buyerName: z.string().optional(), @@ -144,6 +145,8 @@ export const updateVendorSchema = z.object({ // evaluationScore: z.string().optional(), }); +export type UpdateVendorSchema = z.infer<typeof updateVendorSchema>; + const contactSchema = z.object({ contactName: z |
