feat : page creation et modif client

This commit is contained in:
2026-02-12 16:18:04 +01:00
parent d8b16f5e15
commit 62102f4edb
7 changed files with 323 additions and 19 deletions

View File

@@ -1,8 +1,22 @@
import type { AddressData } from "~/services/dto/address-data"
import type { AddressFormData } from "~/services/dto/address-data"
export type CustomerAddresses = AddressFormData[] | string[]
export interface CustomerData {
id: number
label: string
code?: string | null
addresses?: AddressData[] | null
addresses: CustomerAddresses
}
export interface CustomerFormData {
label: string
code?: string
addresses: AddressFormData[]
}
export type CustomerPayload = {
label: string
code?: string | null
addresses?: string[]
}