smart-track
Version:
A TypeScript SDK for integrating with tracking services using the Beckn protocol. Provides adapters for package tracking with built-in error handling, retry logic, and type safety.
62 lines • 1.53 kB
TypeScript
export type Provider = {
id: string;
name: string;
bpp_id: string;
bpp_uri: string;
categories: CategoryType[];
items: Item[];
};
export type Location = {
id: string;
gps: string;
items: Item[];
destinations: Item[];
};
export declare enum CategoryType {
fresh_fruits = "fresh_fruits",
vegetables = "vegetables",
dairy = "dairy",
bakery = "bakery",
beverages = "beverages",
snacks = "snacks",
staples = "staples",
personal_care = "personal_care",
household = "household",
gourmet = "gourmet",
baby_care = "baby_care",
cleaning_supplies = "cleaning_supplies",
pet_supplies = "pet_supplies",
meat_fish = "meat_fish",
ready_to_eat = "ready_to_eat",
beverages_alcoholic = "beverages_alcoholic",
electronics = "electronics",
home_decor = "home_decor",
fashion = "fashion",
footwear = "footwear",
books = "books",
pharmacy = "pharmacy",
health_care = "health_care",
logistics_parcel = "logistics_parcel",
logistics_movers = "logistics_movers"
}
export type Item = {
id: string;
name: string;
image: string;
priceValue: number;
currency: string;
matched?: boolean;
related?: boolean;
category: CategoryType;
origin: Location;
destination: Location;
originId: string;
destinationId: string;
provider: Provider;
providerId: string;
};
export type Fulfillment = {
id: string;
type: string;
};
//# sourceMappingURL=beckn.types.d.ts.map