45 lines
1.2 KiB
TypeScript
45 lines
1.2 KiB
TypeScript
export interface BovineBuildingRef {
|
|
id: number
|
|
label: string
|
|
}
|
|
|
|
export interface BovineBuildingCaseRef {
|
|
id: number
|
|
caseNumber: number | null
|
|
building: BovineBuildingRef | null
|
|
}
|
|
|
|
export interface BovineData {
|
|
id: number
|
|
nationalNumber: string
|
|
receivedWeight: number | null
|
|
pricePerKg: number | null
|
|
finalPrice: number | null
|
|
arrivalDate: string | null
|
|
exitDate: string | null
|
|
buildingCase: BovineBuildingCaseRef | null
|
|
building: BovineBuildingRef | null
|
|
effectiveBuilding: BovineBuildingRef | null
|
|
supplier: { id: number; name: string } | string | null
|
|
workNumber: string | null
|
|
birthDate: string | null
|
|
bovineType: { id: number; label: string; code: string } | null
|
|
sex: string | null
|
|
ageMonths: number | null
|
|
exitedAt: string | null
|
|
reception?: string | null
|
|
entryCause?: 'A' | 'N' | 'P' | null
|
|
ednotifConfirmedAt?: string | null
|
|
}
|
|
|
|
export type BovinePayload = {
|
|
nationalNumber?: string
|
|
receivedWeight?: number | null
|
|
pricePerKg?: number | null
|
|
arrivalDate?: string | null
|
|
buildingCase?: string | null
|
|
supplier?: string | null
|
|
reception?: string | null
|
|
entryCause?: 'A' | 'N' | 'P' | null
|
|
}
|