feat : admin fournisseurs creation et modif (WIP)
This commit is contained in:
@@ -6,13 +6,14 @@ export interface AddressData {
|
||||
postalCode: string
|
||||
city: string
|
||||
countryCode: string
|
||||
fullAddress?: string
|
||||
}
|
||||
|
||||
export interface AddressFormData {
|
||||
id?: number | null
|
||||
label: string
|
||||
street: string
|
||||
street2?: string
|
||||
street2?: string | null
|
||||
postalCode: string
|
||||
city: string
|
||||
country: string
|
||||
countryCode: string
|
||||
}
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
import type { AddressFormData } from '~/services/dto/address-data'
|
||||
import type { AddressFormData } from "~/services/dto/address-data"
|
||||
|
||||
export type SupplierAddresses = AddressFormData[] | string[]
|
||||
|
||||
export interface SupplierData {
|
||||
id: number
|
||||
name: string
|
||||
email?: string | null
|
||||
phone?: string | null
|
||||
addresses: AddressFormData[]
|
||||
addresses: SupplierAddresses
|
||||
}
|
||||
|
||||
export interface SupplierFormData {
|
||||
name: string
|
||||
email?: string
|
||||
@@ -18,8 +21,5 @@ export type SupplierPayload = {
|
||||
name: string
|
||||
email?: string | null
|
||||
phone?: string | null
|
||||
street?: string | null
|
||||
city?: string | null
|
||||
postalCode?: string | null
|
||||
country?: string | null
|
||||
addresses: string[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user