.
This commit is contained in:
parent
74b67d1e2c
commit
811d0add60
@ -1,37 +1,7 @@
|
|||||||
import { MetadataSchema } from "@erp/core";
|
import {
|
||||||
import { z } from "zod/v4";
|
type GetSupplierByIdResponseDTO,
|
||||||
|
GetSupplierByIdResponseSchema,
|
||||||
|
} from "./get-supplier-by-id.response.dto";
|
||||||
|
|
||||||
export const UpdateSupplierByIdResponseSchema = z.object({
|
export const UpdateSupplierByIdResponseSchema = GetSupplierByIdResponseSchema;
|
||||||
id: z.uuid(),
|
export type UpdateSupplierByIdResponseDTO = GetSupplierByIdResponseDTO;
|
||||||
company_id: z.uuid(),
|
|
||||||
reference: z.string(),
|
|
||||||
|
|
||||||
is_company: z.string(),
|
|
||||||
name: z.string(),
|
|
||||||
trade_name: z.string(),
|
|
||||||
tin: z.string(),
|
|
||||||
|
|
||||||
street: z.string(),
|
|
||||||
street2: z.string(),
|
|
||||||
city: z.string(),
|
|
||||||
province: z.string(),
|
|
||||||
postal_code: z.string(),
|
|
||||||
country: z.string(),
|
|
||||||
|
|
||||||
email_primary: z.string(),
|
|
||||||
email_secondary: z.string(),
|
|
||||||
phone_primary: z.string(),
|
|
||||||
phone_secondary: z.string(),
|
|
||||||
mobile_primary: z.string(),
|
|
||||||
mobile_secondary: z.string(),
|
|
||||||
|
|
||||||
fax: z.string(),
|
|
||||||
website: z.string(),
|
|
||||||
|
|
||||||
language_code: z.string(),
|
|
||||||
currency_code: z.string(),
|
|
||||||
|
|
||||||
metadata: MetadataSchema.optional(),
|
|
||||||
});
|
|
||||||
|
|
||||||
export type UpdateSupplierByIdResponseDTO = z.infer<typeof UpdateSupplierByIdResponseSchema>;
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user