feat : admin fournisseurs creation et modif (WIP)

This commit is contained in:
2026-02-09 17:36:26 +01:00
parent d3dfde7060
commit 4e2fe556be
5 changed files with 248 additions and 14 deletions

View File

@@ -1,9 +1,25 @@
import type { AddressData } from '~/services/dto/address-data'
import type { AddressFormData } from '~/services/dto/address-data'
export interface SupplierData {
id: number
name: string
email?: string | null
phone?: string | null
addresses?: AddressData[] | null
addresses: AddressFormData[]
}
export interface SupplierFormData {
name: string
email?: string
phone?: string
addresses: AddressFormData[]
}
export type SupplierPayload = {
name: string
email?: string | null
phone?: string | null
street?: string | null
city?: string | null
postalCode?: string | null
country?: string | null
}