import type {CarrierData} from '~/services/dto/carrier-data' import type {TruckData} from '~/services/dto/truck-data' import type {CustomerData} from '~/services/dto/customer-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 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 }