fix : correction des retours de la V0
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
import type { WeightEntryData } from '~/services/dto/reception-data'
|
||||
import type { CarrierData } from '~/services/dto/carrier-data'
|
||||
import type { TruckData } from '~/services/dto/truck-data'
|
||||
import type { UserData } from '~/services/dto/user-data'
|
||||
import type { AddressData } from '~/services/dto/address-data'
|
||||
import type { DriverData } from '~/services/dto/driver-data'
|
||||
|
||||
export interface WorkflowEntity {
|
||||
id: number
|
||||
identificationNumber?: string | null
|
||||
licensePlate: string | null
|
||||
currentStep: number
|
||||
isValid: boolean
|
||||
weights?: WeightEntryData[] | null
|
||||
carrier?: CarrierData | null
|
||||
truck?: TruckData | null
|
||||
user?: UserData | null
|
||||
address?: AddressData | null
|
||||
driver?: DriverData | null
|
||||
}
|
||||
|
||||
export interface WorkflowPayload {
|
||||
licensePlate?: string | null
|
||||
currentStep?: number
|
||||
isValid?: boolean
|
||||
carrier?: string | null
|
||||
truck?: string | null
|
||||
user?: string | null
|
||||
address?: string | null
|
||||
driver?: string | null
|
||||
}
|
||||
|
||||
export interface StepDefinition {
|
||||
label: string
|
||||
weighingMode?: 'gross' | 'tare'
|
||||
isFinal?: boolean
|
||||
}
|
||||
|
||||
export interface WorkflowConfig {
|
||||
entityName: 'reception' | 'shipment'
|
||||
apiResource: string
|
||||
steps: StepDefinition[]
|
||||
weighingLabels: Record<'gross' | 'tare', string>
|
||||
buildReceiptFilename: (entity: WorkflowEntity) => string
|
||||
routePrefix: string
|
||||
toastPrefix: string
|
||||
dateField: string
|
||||
}
|
||||
Reference in New Issue
Block a user