import { DeliveryTypeName, PackageTypeName, ShipmentOptionName } from '@myparcel-dev/constants'; import { EnumSchema, Timestamp } from '../../../types'; export interface PossibleShipmentOption { name: ShipmentOptionName; schema: EnumSchema; } export interface DeliveryOption { date: Timestamp; possibilities: DeliveryPossibility[]; } export interface DeliveryPossibility { collect_date?: string; delivery_time_frames: [DeliveryTimeFrame<'start'>, DeliveryTimeFrame<'end'>]; package_type: PackageTypeName; shipment_options: PossibleShipmentOption[]; type: DeliveryTypeName; } export interface DeliveryTimeFrame { date_time: Timestamp; type: Type; }