| "use strict"; |
| Object.defineProperty(exports, "__esModule", { value: true }); |
| const food_menu_1 = require("./generated/food_menu"); |
| const menu = { |
| menu_id: 'menu1', |
| merchant_ids: ['dining-1'], |
| display_name: { text: [{ text: 'Menu', language_code: 'en-us' }] }, |
| language: 'en-us', |
| menu_section_ids: ['appetizers', 'dinner'], |
| last_merchant_update_time: new Date() |
| }; |
| const section = { |
| menu_section_id: 'appetizers', |
| display_name: { text: [{ text: 'Lunch Appetizers', language_code: 'en-us' }] }, |
| menu_section_ids: ['breadsticks-sauce'] |
| }; |
| const item = { |
| menu_item_id: 'breadsticks-sauce', |
| display_name: { text: [{ text: 'Breadsticks & Sauce', language_code: 'en-us' }] }, |
| description: { |
| text: [{ |
| text: 'Breakfast basket w/ side of tomato sauce (size 6 or 12)', |
| language_code: 'en-us' |
| }] |
| }, |
| menu_item_option_set: { menu_item_option_ids: ['breadstick-sm', 'breadstick-lg'] }, |
| images: [ |
| { uri: 'http://www.example.com/photos/breadsticks.jpg' }, |
| { uri: 'http://www.example.com/photos/sauce.jpg' } |
| ] |
| }; |
| const option = { |
| menu_item_option_id: 'breadstick-sm', |
| value: { |
| property_type: food_menu_1.MenuItemOptionProperty_PropertyType.SIZE, |
| text_val: { |
| text: [ |
| { text: "Small", language_code: "en-us" } |
| ] |
| } |
| }, |
| offer_set: { |
| offers: [{ |
| price: { |
| currency_code: "USD", |
| units: 8, |
| nanos: 0 |
| } |
| }] |
| } |
| }; |
| const feed = { |
| data: [{ menu }, { section }, { item }, { option }] |
| }; |
| console.log(JSON.stringify(feed)); |
| //# sourceMappingURL=feed.js.map |