gros-bras-shared
Version:
This holds all shared files such as interfaces or helpers used by Gros Bras, both frontoffices and baackoffices, and backend etc...
20 lines (19 loc) • 616 B
TypeScript
interface ITextValue {
text: string;
value: number;
}
type TTopLevelStatusCode = 'OK' | 'INVALID_REQUEST' | 'OVER_QUERY_LIMIT' | 'REQUEST_DENIED' | 'UNKNOWN_ERROR' | 'OVER_DAILY_LIMIT';
type TElementStatusCode = 'OK' | 'NOT_FOUND' | 'ZERO_RESULTS' | 'MAX_ROUTE_LENGTH_EXCEEDED';
export interface IGmapDistanceMatrix {
error_message?: string;
destination_addresses: string[];
origin_addresses: string[];
rows: {
elements: {
distance: ITextValue;
status: TElementStatusCode;
}[];
}[];
status: TTopLevelStatusCode;
}
export {};