frontend


frontend / api/suppliers/validation / editSupplierSchema

Variable: editSupplierSchema

const editSupplierSchema: ZodObject<{ contactName: ZodCatch<ZodNullable<ZodString>>; email: ZodCatch<ZodNullable<ZodString>>; phone: ZodCatch<ZodNullable<ZodString>>; supplierId: ZodString; }, $strip>

Defined in: src/api/suppliers/validation.ts:57

Schema for editing supplier contact information. Does NOT include name field - supplier name is immutable. Only allows updating contactName, phone, and email.

Remarks

Name is read-only to prevent duplicate/new supplier creation. Changing a supplier's name is a business rule violation.