import { KAResponse } from './api-response'; export type CourierType = "Express" | "Instant" | string; export type CourierListItem = { code: string; name: string; type: CourierType; }; export type CourierGroupItem = { code: string; name: string; }; export type CourierServiceItem = { name: string; code: string; cut_off_time: string | null; volumetrik: string | null; rounded: number | null; courier_group: string; }; export type CourierListResponse = KAResponse & { method: "get_active_courier"; text: "Data Loaded"; datas: CourierListItem[]; }; export type CourierGroupResponse = KAResponse & { method: "get_courier_groups"; text: "Data Loaded"; datas: CourierGroupItem[]; }; export type CourierDetailResponse = KAResponse & { method: "get_services_from_courier"; text: "Data Loaded"; datas: CourierServiceItem[]; }; export type SetCourierPreferenceResponse = KAResponse & { method: "set_whitelist_services"; text: "Success to set"; }; export declare enum InstantService { GrabExpress = "grab_express", GoSend = "gosend", Borzo = "borzo" } export declare enum InstantVehicle { Bike = "motor", Car = "mobil" } export declare enum ExpressService { Tiki = "tiki", Pos = "posindonesia", Paxel = "paxel", Ninja = "ninja", RPX = "rpx", LionParcel = "lion", JTCargo = "jtcargo", SentralCargo = "sentral", AnterAja = "anteraja", NCS = "ncs", Sicepat = "sicepat", SAP = "sap", IDExpress = "idx", JNE = "jne", JNT = "jnt", SPX = "spx" }