Widget types
App config
export interface AppConfig {
componentType?: 'embedded' | 'modal',
apiUrl: string;
token: string;
couriers: string[];
assetsPathPrefix?: string;
language: string;
dictionary?: {[key: string]: string};
showCouriersSelectInput?: boolean;
showCouriersCombined?: boolean;
startCoordinates?: {
lat: number;
lng: number;
},
paginate?: boolean;
limit?: number;
onMapChange?: (
data: {
location: {
lat: number;
lng: number;
};
zoom: number;
}
) => void;
}
Pickup point:
export interface PickupPoint {
id: string;
name: string;
lat: number;
lng: number;
address: string;
city: string;
postCode: string;
days: PickupPointOpeningDay[];
courier: string;
}
export interface PickupPointOpeningDay {
day: string;
from: string;
to: string;
}