All checks were successful
Auto Tag Develop / tag (push) Successful in 6s
| Numéro du ticket | Titre du ticket | |------------------|-----------------| | #327 | Afficher modifier une expédition terminée | ## 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: #34 Reviewed-by: Autin <tristan@yuno.malio.fr> Co-authored-by: sroy <sebastien@yuno.malio.fr> Co-committed-by: sroy <sebastien@yuno.malio.fr>
69 lines
1.8 KiB
TypeScript
69 lines
1.8 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";
|
|
import type {UserData} from '~/services/dto/user-data'
|
|
import type {DriverData} from '~/services/dto/driver-data'
|
|
import type {VehicleData} from '~/services/dto/vehicle-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
|
|
user?: UserData | null
|
|
driver?: DriverData | null
|
|
vehicle?: VehicleData | 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
|
|
}
|