Files
cpost-front/src/data/real-box/real-box.model.ts
Samandar Turg'unboev 94ec72526a added pakets
2025-06-19 15:25:22 +05:00

48 lines
1001 B
TypeScript

export type BoxStatus = 'READY_TO_INVOICE' | 'READY';
export const BoxStatusList: BoxStatus[] = ['READY_TO_INVOICE', 'READY'];
export interface IRealBox {
boxName: string;
id: number;
itemCount: number;
partyName: string;
}
export interface IRealBoxDetail {
message: string;
data: {
boxName: string;
party: {
id: number;
name: string;
};
packets: Array<{
id: number;
packetName: string;
}>;
};
}
export interface RealCreateBoxBodyType {
partyName: string;
packetItemDtos: { packetId: number; itemDtos: number[] }[];
}
export interface UpdateRealBoxBodyType {
boxId: string;
partyName: string;
packetItemDtos: { packetId: number; itemDtos: number[] }[];
}
export interface FormValues {
id?: number;
boxId?: string;
partyName: string;
partyId?: number;
packetItemDtos: Array<{
packetId: number;
itemDtos: number[];
}>;
}