All checks were successful
Auto Tag Develop / tag (push) Successful in 5s
| Numéro du ticket | Titre du ticket | |------------------|-----------------| | 334 | Correctifs | ## Description de la PR ## Modification du .env ## Check list - [x] Pas de régression - [ ] TU/TI/TF rédigée - [x] TU/TI/TF OK - [x] CHANGELOG modifié Reviewed-on: #32 Co-authored-by: Matteo <matteo@yuno.malio.fr> Co-committed-by: Matteo <matteo@yuno.malio.fr>
63 lines
1.5 KiB
TypeScript
63 lines
1.5 KiB
TypeScript
import type {CarrierData} from '~/services/dto/carrier-data'
|
|
import type {TruckData} from '~/services/dto/truck-data'
|
|
import type {CustomerData} from '~/services/dto/customer-data'
|
|
import type {AddressData} from "~/services/dto/address-data";
|
|
|
|
export interface ShipmentTypeData {
|
|
id: number
|
|
label: string
|
|
code: string
|
|
}
|
|
|
|
export type ShipmentData = {
|
|
id: number
|
|
identificationNumber?: string | null
|
|
licensePlate: string | null
|
|
shipmentDate: string
|
|
currentStep: number
|
|
isValid: boolean
|
|
address?: AddressData | null
|
|
carrier?: CarrierData | null
|
|
truck?: TruckData | null
|
|
customer?: CustomerData | null
|
|
shipmentType?: ShipmentTypeData | null
|
|
nbBovinSend?: number | null
|
|
weights?: WeightShipmentEntryData[] | null
|
|
|
|
}
|
|
|
|
export interface WeightShipmentEntryData {
|
|
id?: number
|
|
type: 'gross' | 'tare'
|
|
dsd: number | null
|
|
weight: number | null
|
|
weighedAt: string | null
|
|
}
|
|
|
|
export type ShipmentFormData = {
|
|
userId: string,
|
|
shipmentDate: string,
|
|
customerId: string,
|
|
addressId: string,
|
|
truckId: string,
|
|
carrierId: string,
|
|
driverId: string,
|
|
vehicleId: string,
|
|
licensePlate: string,
|
|
}
|
|
|
|
export type ShipmentPayload = {
|
|
licensePlate?: string | null
|
|
shipmentDate?: string
|
|
currentStep?: number
|
|
isValid?: boolean
|
|
carrier?: string | null
|
|
truck?: string | null
|
|
customer?: string | null
|
|
address?: string | null
|
|
user?: string | null
|
|
driver?: string | null
|
|
shipmentType?: string | null
|
|
nbBovinSend?: number | null
|
|
}
|