feat : admin fournisseurs creation et modif (WIP)
This commit is contained in:
@@ -8,3 +8,11 @@ export interface AddressData {
|
||||
countryCode: string
|
||||
fullAddress?: string
|
||||
}
|
||||
export interface AddressFormData {
|
||||
id?: number | null
|
||||
street: string
|
||||
street2?: string
|
||||
postalCode: string
|
||||
city: string
|
||||
country: string
|
||||
}
|
||||
|
||||
@@ -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