Appearance
Restaurant 🍝
The restaurant package is used as a central location for all restaurant related requests. These are used by both the resolver libraries and components package.
Usage
ts
import { KioskSettingsComplete, OrderCountConfiguration } from '@fingermarkglobal/types';
import {
getProductsRequest,
getCategoriesRequest,
getPromotionalRequest,
} from '@fingermarkglobal/restaurant';
(async (): Promise<void> => {
const count: OrderCountConfiguration = {
//...
};
const settings: KioskSettingsComplete = {
//...
};
const [resolvedProducts, resolvedCategories, resolvedPromotions] = await Promise.all([
getProductsRequest(count, settings),
getCategoriesRequest(settings),
getPromotionalRequest(count, settings),
]);
console.log(resolvedProducts, resolvedCategories, resolvedPromotions);
})();