feat : admin fournisseurs creation et modif (WIP)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user