31 lines
763 B
TypeScript
31 lines
763 B
TypeScript
export type PickupLocation = 'warehouse' | 'symbat' | 'nursaya' | 'galaktika';
|
|
export type DeliveryStatus = 'new' | 'delivered';
|
|
|
|
export interface Delivery {
|
|
id: string;
|
|
date: string; // DD-MM-YYYY
|
|
pickupLocation: PickupLocation;
|
|
productName: string;
|
|
address: string;
|
|
phone: string;
|
|
additionalPhone?: string;
|
|
hasElevator: boolean;
|
|
comment: string;
|
|
status: DeliveryStatus;
|
|
createdAt: number;
|
|
updatedAt: number;
|
|
}
|
|
|
|
export const pickupLocationLabels: Record<PickupLocation, string> = {
|
|
warehouse: 'Склад',
|
|
symbat: 'Сымбат',
|
|
nursaya: 'Нурсая',
|
|
galaktika: 'Галактика',
|
|
};
|
|
|
|
|
|
export const statusLabels: Record<DeliveryStatus, string> = {
|
|
new: 'Новое',
|
|
delivered: 'Доставлено',
|
|
};
|