/** * Reference service types for Nova Poshta API * Handles all reference data operations */ import type { NovaPoshtaResponse, ObjectRef } from './base'; export type CargoTypeRef = string; export type PalletRef = string; export type PackRef = string; export type TireWheelRef = string; export type CargoDescriptionRef = string; export type MessageCodeRef = string; export type ServiceTypeRef = string; export type OwnershipFormRef = string; export type TimeIntervalRef = string; export type PickupTimeIntervalRef = string; export type BackwardDeliveryCargoTypeRef = string; export type PayerTypeRef = string; export interface GetCargoTypesRequest { } export interface CargoTypeData { /** Cargo type identifier */ readonly ref: CargoTypeRef; /** Description in Ukrainian */ readonly description: string; } export type GetCargoTypesResponse = NovaPoshtaResponse; export interface GetPalletsListRequest { } export interface PalletData { /** Pallet identifier */ readonly ref: PalletRef; /** Description in Ukrainian */ readonly description: string; /** Description in Russian */ readonly descriptionRu: string; /** Weight in kg */ readonly weight: string; } export type GetPalletsListResponse = NovaPoshtaResponse; export interface GetPackListRequest { /** Length in mm (optional) */ readonly length?: number; /** Width in mm (optional) */ readonly width?: number; /** Height in mm (optional) */ readonly height?: number; /** Volumetric weight (optional) */ readonly volumetricWeight?: number; /** Type of packing (optional) */ readonly typeOfPacking?: string; } export interface PackData { /** Pack identifier */ readonly ref: PackRef; /** Description in Ukrainian */ readonly description: string; /** Description in Russian */ readonly descriptionRu: string; /** Length in mm */ readonly length: string; /** Width in mm */ readonly width: string; /** Height in mm */ readonly height: string; /** Volumetric weight */ readonly volumetricWeight: string; /** Type of packing */ readonly typeOfPacking: string; } export type GetPackListResponse = NovaPoshtaResponse; export interface GetTiresWheelsListRequest { } export interface TireWheelData { /** Tire/wheel identifier */ readonly ref: TireWheelRef; /** Description in Ukrainian */ readonly description: string; /** Description in Russian */ readonly descriptionRu: string; /** Weight in kg */ readonly weight: string; /** Type description (Tires or Wheels) */ readonly descriptionType: 'Tires' | 'Wheels'; } export type GetTiresWheelsListResponse = NovaPoshtaResponse; export interface GetCargoDescriptionListRequest { /** Search string (optional) */ readonly findByString?: string; /** Page number (optional, up to 500 records per page) */ readonly page?: number; } export interface CargoDescriptionData { /** Cargo description identifier */ readonly ref: CargoDescriptionRef; /** Description in Ukrainian */ readonly description: string; /** Description in Russian */ readonly descriptionRu: string; } export type GetCargoDescriptionListResponse = NovaPoshtaResponse; export interface GetMessageCodeTextRequest { } export interface MessageCodeData { /** Message code */ readonly messageCode: MessageCodeRef; /** Message text in English */ readonly messageText: string; /** Message description in Russian */ readonly messageDescriptionRU: string; /** Message description in Ukrainian */ readonly messageDescriptionUA: string; } export type GetMessageCodeTextResponse = NovaPoshtaResponse; export interface GetServiceTypesRequest { } export interface ServiceTypeData { /** Service type identifier */ readonly ref: ServiceTypeRef; /** Description in Ukrainian */ readonly description: string; } export type GetServiceTypesResponse = NovaPoshtaResponse; export interface GetOwnershipFormsListRequest { } export interface OwnershipFormData { /** Ownership form identifier */ readonly ref: OwnershipFormRef; /** Description in Ukrainian */ readonly description: string; /** Full name */ readonly fullName: string; } export type GetOwnershipFormsListResponse = NovaPoshtaResponse; export interface GetTimeIntervalsRequest { /** Recipient city identifier */ readonly recipientCityRef: ObjectRef; /** Date for time intervals (optional, defaults to current date) */ readonly dateTime?: string; } export interface TimeIntervalData { /** Time interval identifier */ readonly number: TimeIntervalRef; /** Start time (e.g., "12:00") */ readonly start: string; /** End time (e.g., "15:00") */ readonly end: string; } export type GetTimeIntervalsResponse = NovaPoshtaResponse; export interface GetPickupTimeIntervalsRequest { /** Sender city identifier */ readonly senderCityRef: ObjectRef; /** Date for available time intervals */ readonly dateTime: string; } export interface PickupTimeIntervalData { /** Time interval name */ readonly number: PickupTimeIntervalRef; /** Start time */ readonly start: string; /** End time */ readonly end: string; /** Boundary time for pickup */ readonly boundaryTime: string; } export type GetPickupTimeIntervalsResponse = NovaPoshtaResponse; export interface GetBackwardDeliveryCargoTypesRequest { } export interface BackwardDeliveryCargoTypeData { /** Backward delivery cargo type identifier */ readonly ref: BackwardDeliveryCargoTypeRef; /** Description in Ukrainian */ readonly description: string; } export type GetBackwardDeliveryCargoTypesResponse = NovaPoshtaResponse; export interface GetTypesOfPayersForRedeliveryRequest { } export interface PayerForRedeliveryData { /** Payer type identifier */ readonly ref: PayerTypeRef; /** Description in Ukrainian */ readonly description: string; } export type GetTypesOfPayersForRedeliveryResponse = NovaPoshtaResponse; /** All reference request types */ export type ReferenceRequest = GetCargoTypesRequest | GetPalletsListRequest | GetPackListRequest | GetTiresWheelsListRequest | GetCargoDescriptionListRequest | GetMessageCodeTextRequest | GetServiceTypesRequest | GetOwnershipFormsListRequest | GetTimeIntervalsRequest | GetPickupTimeIntervalsRequest | GetBackwardDeliveryCargoTypesRequest | GetTypesOfPayersForRedeliveryRequest; /** All reference response types */ export type ReferenceResponse = GetCargoTypesResponse | GetPalletsListResponse | GetPackListResponse | GetTiresWheelsListResponse | GetCargoDescriptionListResponse | GetMessageCodeTextResponse | GetServiceTypesResponse | GetOwnershipFormsListResponse | GetTimeIntervalsResponse | GetPickupTimeIntervalsResponse | GetBackwardDeliveryCargoTypesResponse | GetTypesOfPayersForRedeliveryResponse; /** All reference data types */ export type ReferenceData = CargoTypeData | PalletData | PackData | TireWheelData | CargoDescriptionData | MessageCodeData | ServiceTypeData | OwnershipFormData | TimeIntervalData | PickupTimeIntervalData | BackwardDeliveryCargoTypeData | PayerForRedeliveryData; //# sourceMappingURL=reference.d.ts.map