Skip to main content

Widget types

App config

export interface AppConfig {
componentType?: ComponentType,
apiUrl: string;
token: string;
couriers: string[];
assetsPathPrefix?: string;
language: string;
showSelectedCountry?: boolean;
showCouriersSelectInput?: boolean;
startCoordinates?: {
lat: number;
lng: number;
}
}

Pickup point:

export interface PickupPoint {
id: string;
name: string;
lat: number;
lng: number;
address: string;
city: string;
postCode: string;
days: PickupPointOpeningDay[]
}

export interface PickupPointOpeningDay {
day: string;
from: string;
to: string;
}