05ea33735d
| Numéro du ticket | Titre du ticket | |------------------|-----------------| | #275 | Lister les expéditions en attente | ## 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é Co-authored-by: Matteo <matteo@yuno.malio.fr> Reviewed-on: https://gitea.malio.fr/MALIO-DEV/Ferme/pulls/23 Reviewed-by: Autin <tristan@yuno.malio.fr> Co-authored-by: kevin <kevin@yuno.malio.fr> Co-committed-by: kevin <kevin@yuno.malio.fr>
68 lines
1.6 KiB
TypeScript
68 lines
1.6 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 interface BovinShipmentData {
|
|
id?: number
|
|
shipmentType?: ShipmentTypeData | string | null
|
|
nbBovinSend: number | null
|
|
}
|
|
|
|
export type ShipmentData = {
|
|
id: number
|
|
identificationNumber?: string | null
|
|
licencePlate: string | null
|
|
shipmentDate: string
|
|
currentStep: number
|
|
isValid: boolean
|
|
address?: AddressData | null
|
|
carrier?: CarrierData | null
|
|
truck?: TruckData | null
|
|
customer?: CustomerData | null
|
|
bovinShipments?: BovinShipmentData[] | 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,
|
|
licencePlate: string,
|
|
}
|
|
|
|
export type ShipmentPayload = {
|
|
licencePlate?: string | null
|
|
shipmentDate?: string
|
|
currentStep?: number
|
|
isValid?: boolean
|
|
carrier?: string | null
|
|
truck?: string | null
|
|
customer?: string | null
|
|
bovinShipments?: string[] | null
|
|
address?: string | null
|
|
user?: string | null
|
|
driver?: string | null
|
|
|
|
}
|