toast-pos-sdk
Version:
Node.js SDK for Toast POS API
40 lines • 1.04 kB
TypeScript
import { ToastClientConfig } from '../types';
import { HttpClient } from './http-client';
import { OrdersApi } from '../api/orders';
import { RestaurantsApi } from '../api/restaurants';
/**
* Main Toast POS API client
*/
export declare class ToastClient {
private httpClient;
private config;
private _orders;
private _restaurants;
constructor(host: string, token: string);
constructor(config: ToastClientConfig);
/**
* Get the current configuration
*/
getConfig(): Readonly<ToastClientConfig>;
/**
* Get the base URL being used for API calls
*/
getBaseUrl(): string;
/**
* Update the authentication token
*/
setToken(token: string): void;
/**
* Access to the underlying HTTP client for custom requests
*/
get http(): HttpClient;
/**
* Access to the Orders API
*/
get orders(): OrdersApi;
/**
* Access to the Restaurants API
*/
get restaurants(): RestaurantsApi;
}
//# sourceMappingURL=toast-client.d.ts.map