@wix/auto_sdk_restaurants_menus 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/restaurants-menus-v1-menu-menus.context.d.ts +29 -0
  11. package/build/cjs/src/restaurants-menus-v1-menu-menus.context.js +34 -0
  12. package/build/cjs/src/restaurants-menus-v1-menu-menus.context.js.map +1 -0
  13. package/build/cjs/src/restaurants-menus-v1-menu-menus.http.d.ts +78 -0
  14. package/build/cjs/src/restaurants-menus-v1-menu-menus.http.js +497 -0
  15. package/build/cjs/src/restaurants-menus-v1-menu-menus.http.js.map +1 -0
  16. package/build/cjs/src/restaurants-menus-v1-menu-menus.meta.d.ts +33 -0
  17. package/build/cjs/src/restaurants-menus-v1-menu-menus.meta.js +237 -0
  18. package/build/cjs/src/restaurants-menus-v1-menu-menus.meta.js.map +1 -0
  19. package/build/cjs/src/restaurants-menus-v1-menu-menus.public.d.ts +135 -0
  20. package/build/cjs/src/restaurants-menus-v1-menu-menus.public.js +109 -0
  21. package/build/cjs/src/restaurants-menus-v1-menu-menus.public.js.map +1 -0
  22. package/build/cjs/src/restaurants-menus-v1-menu-menus.types.d.ts +592 -0
  23. package/build/cjs/src/restaurants-menus-v1-menu-menus.types.js +17 -0
  24. package/build/cjs/src/restaurants-menus-v1-menu-menus.types.js.map +1 -0
  25. package/build/cjs/src/restaurants-menus-v1-menu-menus.universal.d.ts +1043 -0
  26. package/build/cjs/src/restaurants-menus-v1-menu-menus.universal.js +554 -0
  27. package/build/cjs/src/restaurants-menus-v1-menu-menus.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/restaurants-menus-v1-menu-menus.context.d.ts +29 -0
  39. package/build/es/src/restaurants-menus-v1-menu-menus.context.js +29 -0
  40. package/build/es/src/restaurants-menus-v1-menu-menus.context.js.map +1 -0
  41. package/build/es/src/restaurants-menus-v1-menu-menus.http.d.ts +78 -0
  42. package/build/es/src/restaurants-menus-v1-menu-menus.http.js +483 -0
  43. package/build/es/src/restaurants-menus-v1-menu-menus.http.js.map +1 -0
  44. package/build/es/src/restaurants-menus-v1-menu-menus.meta.d.ts +33 -0
  45. package/build/es/src/restaurants-menus-v1-menu-menus.meta.js +200 -0
  46. package/build/es/src/restaurants-menus-v1-menu-menus.meta.js.map +1 -0
  47. package/build/es/src/restaurants-menus-v1-menu-menus.public.d.ts +135 -0
  48. package/build/es/src/restaurants-menus-v1-menu-menus.public.js +93 -0
  49. package/build/es/src/restaurants-menus-v1-menu-menus.public.js.map +1 -0
  50. package/build/es/src/restaurants-menus-v1-menu-menus.types.d.ts +592 -0
  51. package/build/es/src/restaurants-menus-v1-menu-menus.types.js +14 -0
  52. package/build/es/src/restaurants-menus-v1-menu-menus.types.js.map +1 -0
  53. package/build/es/src/restaurants-menus-v1-menu-menus.universal.d.ts +1043 -0
  54. package/build/es/src/restaurants-menus-v1-menu-menus.universal.js +517 -0
  55. package/build/es/src/restaurants-menus-v1-menu-menus.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.context.d.ts +29 -0
  66. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.context.js +34 -0
  67. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.context.js.map +1 -0
  68. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.http.d.ts +78 -0
  69. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.http.js +497 -0
  70. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.http.js.map +1 -0
  71. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.meta.d.ts +33 -0
  72. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.meta.js +237 -0
  73. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.meta.js.map +1 -0
  74. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.public.d.ts +135 -0
  75. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.public.js +109 -0
  76. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.public.js.map +1 -0
  77. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.types.d.ts +592 -0
  78. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.types.js +17 -0
  79. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.types.js.map +1 -0
  80. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.universal.d.ts +1043 -0
  81. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.universal.js +554 -0
  82. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/restaurants-menus-v1-menu-menus.context.d.ts +29 -0
  93. package/build/internal/es/src/restaurants-menus-v1-menu-menus.context.js +29 -0
  94. package/build/internal/es/src/restaurants-menus-v1-menu-menus.context.js.map +1 -0
  95. package/build/internal/es/src/restaurants-menus-v1-menu-menus.http.d.ts +78 -0
  96. package/build/internal/es/src/restaurants-menus-v1-menu-menus.http.js +483 -0
  97. package/build/internal/es/src/restaurants-menus-v1-menu-menus.http.js.map +1 -0
  98. package/build/internal/es/src/restaurants-menus-v1-menu-menus.meta.d.ts +33 -0
  99. package/build/internal/es/src/restaurants-menus-v1-menu-menus.meta.js +200 -0
  100. package/build/internal/es/src/restaurants-menus-v1-menu-menus.meta.js.map +1 -0
  101. package/build/internal/es/src/restaurants-menus-v1-menu-menus.public.d.ts +135 -0
  102. package/build/internal/es/src/restaurants-menus-v1-menu-menus.public.js +93 -0
  103. package/build/internal/es/src/restaurants-menus-v1-menu-menus.public.js.map +1 -0
  104. package/build/internal/es/src/restaurants-menus-v1-menu-menus.types.d.ts +592 -0
  105. package/build/internal/es/src/restaurants-menus-v1-menu-menus.types.js +14 -0
  106. package/build/internal/es/src/restaurants-menus-v1-menu-menus.types.js.map +1 -0
  107. package/build/internal/es/src/restaurants-menus-v1-menu-menus.universal.d.ts +1043 -0
  108. package/build/internal/es/src/restaurants-menus-v1-menu-menus.universal.js +517 -0
  109. package/build/internal/es/src/restaurants-menus-v1-menu-menus.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,592 @@
1
+ export interface Menu {
2
+ /**
3
+ * Menu ID.
4
+ * @readonly
5
+ */
6
+ id?: string | null;
7
+ /**
8
+ * Revision number, which increments by 1 each time the menu is updated. To prevent conflicting changes, the current revision must be passed when updating the menu. Ignored when creating a menu.
9
+ * @readonly
10
+ */
11
+ revision?: string | null;
12
+ /**
13
+ * Date and time the menu was created.
14
+ * @readonly
15
+ */
16
+ createdDate?: Date | null;
17
+ /**
18
+ * Date and time the menu was updated.
19
+ * @readonly
20
+ */
21
+ updatedDate?: Date | null;
22
+ /** Menu name. */
23
+ name?: string;
24
+ /** Menu description. */
25
+ description?: string | null;
26
+ /** Whether the menu visible to site visitors. */
27
+ visible?: boolean | null;
28
+ /** Menu section IDs. */
29
+ sectionIds?: string[];
30
+ /** Extended fields. */
31
+ extendedFields?: ExtendedFields;
32
+ /** Part of the site URL, that redirects to the menu. For example, in the URL `www.mywebsite.com/our-menus/dinner-menu`, `dinner-menu` is the field value. */
33
+ urlQueryParam?: string | null;
34
+ /** Custom SEO data for the menu. */
35
+ seoData?: SeoSchema;
36
+ }
37
+ export interface ExtendedFields {
38
+ /**
39
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
40
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
41
+ *
42
+ * You can only access fields for which you have the appropriate permissions.
43
+ *
44
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
45
+ */
46
+ namespaces?: Record<string, Record<string, any>>;
47
+ }
48
+ /**
49
+ * The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.
50
+ * The search engines use this information for ranking purposes, or to display snippets in the search results.
51
+ * This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.
52
+ */
53
+ export interface SeoSchema {
54
+ /** SEO tag information. */
55
+ tags?: Tag[];
56
+ /** SEO general settings. */
57
+ settings?: Settings;
58
+ }
59
+ export interface Keyword {
60
+ /** Keyword value. */
61
+ term?: string;
62
+ /** Whether the keyword is the main focus keyword. */
63
+ isMain?: boolean;
64
+ /** The source that added the keyword terms to the SEO settings. */
65
+ origin?: string | null;
66
+ }
67
+ export interface Tag {
68
+ /**
69
+ * SEO tag type.
70
+ *
71
+ *
72
+ * Supported values: `title`, `meta`, `script`, `link`.
73
+ */
74
+ type?: string;
75
+ /**
76
+ * A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
77
+ * For example: `{"name": "description", "content": "the description itself"}`.
78
+ */
79
+ props?: Record<string, any> | null;
80
+ /** SEO tag meta data. For example, `{"height": 300, "width": 240}`. */
81
+ meta?: Record<string, any> | null;
82
+ /** SEO tag inner content. For example, `<title> inner content </title>`. */
83
+ children?: string;
84
+ /** Whether the tag is a custom tag. */
85
+ custom?: boolean;
86
+ /** Whether the tag is disabled. */
87
+ disabled?: boolean;
88
+ }
89
+ export interface Settings {
90
+ /**
91
+ * Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
92
+ *
93
+ *
94
+ * Default: `false` (Auto Redirect is enabled.)
95
+ */
96
+ preventAutoRedirect?: boolean;
97
+ /** User-selected keyword terms for a specific page. */
98
+ keywords?: Keyword[];
99
+ }
100
+ export interface BusinessLocationDetails {
101
+ }
102
+ export interface GetMenuSiteUrlRequest {
103
+ /**
104
+ * Menu ID.
105
+ * @readonly
106
+ */
107
+ id: string | null;
108
+ }
109
+ export interface GetMenuSiteUrlResponse {
110
+ /** Retrieved menuInfo with path url. */
111
+ menuSiteUrl?: MenuSiteUrl;
112
+ }
113
+ export interface MenuSiteUrl {
114
+ /** Path URL. */
115
+ path?: string;
116
+ }
117
+ export interface QueryMenusSiteUrlRequest {
118
+ /** Query options */
119
+ query?: CursorQuery;
120
+ }
121
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
122
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
123
+ cursorPaging?: CursorPaging;
124
+ /**
125
+ * Filter object in the following format:
126
+ * `"filter" : {
127
+ * "fieldName1": "value1",
128
+ * "fieldName2":{"$operator":"value2"}
129
+ * }`
130
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
131
+ */
132
+ filter?: Record<string, any> | null;
133
+ /**
134
+ * Sort object in the following format:
135
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
136
+ */
137
+ sort?: Sorting[];
138
+ }
139
+ /** @oneof */
140
+ export interface CursorQueryPagingMethodOneOf {
141
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
142
+ cursorPaging?: CursorPaging;
143
+ }
144
+ export interface Sorting {
145
+ /** Name of the field to sort by. */
146
+ fieldName?: string;
147
+ /** Sort order. */
148
+ order?: SortOrder;
149
+ }
150
+ export declare enum SortOrder {
151
+ ASC = "ASC",
152
+ DESC = "DESC"
153
+ }
154
+ export interface CursorPaging {
155
+ /** Number of items to load. */
156
+ limit?: number | null;
157
+ /**
158
+ * Pointer to the next or previous page in the list of results.
159
+ *
160
+ * You can get the relevant cursor token
161
+ * from the `pagingMetadata` object in the previous call's response.
162
+ * Not relevant for the first request.
163
+ */
164
+ cursor?: string | null;
165
+ }
166
+ export interface QueryMenusSiteUrlResponse {
167
+ /** Retrieved menuInfos with path urls. */
168
+ menuSiteUrls?: MenuSiteUrl[];
169
+ /** The metadata of the paginated results. */
170
+ pagingMetadata?: CursorPagingMetadata;
171
+ }
172
+ export interface CursorPagingMetadata {
173
+ /** Number of items returned in the response. */
174
+ count?: number | null;
175
+ /** Offset that was requested. */
176
+ cursors?: Cursors;
177
+ /**
178
+ * Indicates if there are more results after the current page.
179
+ * If `true`, another page of results can be retrieved.
180
+ * If `false`, this is the last page.
181
+ */
182
+ hasNext?: boolean | null;
183
+ }
184
+ export interface Cursors {
185
+ /** Cursor pointing to next page in the list of results. */
186
+ next?: string | null;
187
+ /** Cursor pointing to previous page in the list of results. */
188
+ prev?: string | null;
189
+ }
190
+ export interface Location {
191
+ }
192
+ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
193
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
194
+ metaSiteId?: string;
195
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
196
+ siteId?: string;
197
+ /** Invalidate by App */
198
+ app?: App;
199
+ /** Invalidate by page id */
200
+ page?: Page;
201
+ /** Invalidate by URI path */
202
+ uri?: URI;
203
+ /** Invalidate by file (for media files such as PDFs) */
204
+ file?: File;
205
+ /** tell us why you're invalidating the cache. You don't need to add your app name */
206
+ reason?: string | null;
207
+ /** Is local DS */
208
+ localDc?: boolean;
209
+ hardPurge?: boolean;
210
+ }
211
+ /** @oneof */
212
+ export interface InvalidateCacheGetByOneOf {
213
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
214
+ metaSiteId?: string;
215
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
216
+ siteId?: string;
217
+ /** Invalidate by App */
218
+ app?: App;
219
+ /** Invalidate by page id */
220
+ page?: Page;
221
+ /** Invalidate by URI path */
222
+ uri?: URI;
223
+ /** Invalidate by file (for media files such as PDFs) */
224
+ file?: File;
225
+ }
226
+ export interface App {
227
+ /** The AppDefId */
228
+ appDefId?: string;
229
+ /** The instance Id */
230
+ instanceId?: string;
231
+ }
232
+ export interface Page {
233
+ /** the msid the page is on */
234
+ metaSiteId?: string;
235
+ /** Invalidate by Page ID */
236
+ pageId?: string;
237
+ }
238
+ export interface URI {
239
+ /** the msid the URI is on */
240
+ metaSiteId?: string;
241
+ /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
242
+ uriPath?: string;
243
+ }
244
+ export interface File {
245
+ /** the msid the file is related to */
246
+ metaSiteId?: string;
247
+ /** Invalidate by filename (for media files such as PDFs) */
248
+ fileName?: string;
249
+ }
250
+ export interface DeleteOrphanSections {
251
+ /** Menu id */
252
+ menuId?: string;
253
+ }
254
+ export interface MenusDataCloningCompleted {
255
+ }
256
+ export interface CreateMenuRequest {
257
+ /** Menu details. */
258
+ menu: Menu;
259
+ }
260
+ export interface CreateMenuResponse {
261
+ /** Menu. */
262
+ menu?: Menu;
263
+ }
264
+ export interface BulkCreateMenusRequest {
265
+ /** Menu details. */
266
+ menus: Menu[];
267
+ /** Whether to receive the created menus in the response. */
268
+ returnEntity?: boolean;
269
+ }
270
+ export interface BulkCreateMenusResponse {
271
+ /** Information about the created menus. */
272
+ results?: BulkCreateMenuResult[];
273
+ /** Metadata for the API call. */
274
+ bulkActionMetadata?: BulkActionMetadata;
275
+ }
276
+ export interface BulkCreateMenuResult {
277
+ /** Whether to receive the created menus in the response. */
278
+ menuMetadata?: ItemMetadata;
279
+ /** Created menu. */
280
+ menu?: Menu;
281
+ }
282
+ export interface ItemMetadata {
283
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
284
+ id?: string | null;
285
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
286
+ originalIndex?: number;
287
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
288
+ success?: boolean;
289
+ /** Details about the error in case of failure. */
290
+ error?: ApplicationError;
291
+ }
292
+ export interface ApplicationError {
293
+ /** Error code. */
294
+ code?: string;
295
+ /** Description of the error. */
296
+ description?: string;
297
+ /** Data related to the error. */
298
+ data?: Record<string, any> | null;
299
+ }
300
+ export interface BulkActionMetadata {
301
+ /** Number of items that were successfully processed. */
302
+ totalSuccesses?: number;
303
+ /** Number of items that couldn't be processed. */
304
+ totalFailures?: number;
305
+ /** Number of failures without details because detailed failure threshold was exceeded. */
306
+ undetailedFailures?: number;
307
+ }
308
+ export interface GetMenuRequest {
309
+ /** Menu ID. */
310
+ menuId: string;
311
+ }
312
+ export interface GetMenuResponse {
313
+ /** Menu. */
314
+ menu?: Menu;
315
+ }
316
+ export interface ListMenusRequest {
317
+ /** Menu IDs. */
318
+ menuIds?: string[];
319
+ /** The metadata of the paginated results. */
320
+ paging?: CursorPaging;
321
+ /** Whether to return only menus that are visible to site visitors. */
322
+ onlyVisible?: boolean | null;
323
+ }
324
+ export interface ListMenusResponse {
325
+ /** Retrieved menus. */
326
+ menus?: Menu[];
327
+ /** The metadata of the paginated results. */
328
+ pagingMetadata?: CursorPagingMetadata;
329
+ }
330
+ export interface QueryMenusRequest {
331
+ /** Query options. */
332
+ query?: CursorQuery;
333
+ }
334
+ export interface QueryMenusResponse {
335
+ /** Retrieved menus. */
336
+ menus?: Menu[];
337
+ /** The metadata of the paginated results. */
338
+ pagingMetadata?: CursorPagingMetadata;
339
+ }
340
+ export interface UpdateMenuRequest {
341
+ /** Menu to update. */
342
+ menu: Menu;
343
+ }
344
+ export interface UpdateMenuResponse {
345
+ /** Updated menu. */
346
+ menu?: Menu;
347
+ }
348
+ export interface BulkUpdateMenuRequest {
349
+ /** Menus to update. */
350
+ menus: MaskedMenu[];
351
+ /** Whether to receive the entity in the response. */
352
+ returnEntity?: boolean;
353
+ }
354
+ export interface MaskedMenu {
355
+ /** Menu to updated. */
356
+ menu?: Menu;
357
+ /** Explicit list of fields to update. */
358
+ mask?: string[];
359
+ }
360
+ export interface BulkUpdateMenuResponse {
361
+ /** Results of bulk menu update. */
362
+ results?: BulkMenuResult[];
363
+ /** Metadata for the API call. */
364
+ bulkActionMetadata?: BulkActionMetadata;
365
+ }
366
+ export interface BulkMenuResult {
367
+ /** Metadata for menu update. */
368
+ menuMetadata?: ItemMetadata;
369
+ /** Updated menu. Only returned if `returnEntity` is set to `true`. */
370
+ menu?: Menu;
371
+ }
372
+ export interface UpdateExtendedFieldsRequest {
373
+ /** ID of the entity to update. */
374
+ id: string;
375
+ /** Identifier for the app whose extended fields are being updated. */
376
+ namespace: string;
377
+ /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
378
+ namespaceData: Record<string, any> | null;
379
+ }
380
+ export interface UpdateExtendedFieldsResponse {
381
+ /** Namespace of the app. */
382
+ namespace?: string;
383
+ /** Updated extended fields data. */
384
+ namespaceData?: Record<string, any> | null;
385
+ }
386
+ export interface DeleteMenuRequest {
387
+ /** Menu ID. */
388
+ menuId: string;
389
+ }
390
+ export interface DeleteMenuResponse {
391
+ }
392
+ export interface CloneMenusRequest {
393
+ /** The MetaSiteId to clone from. */
394
+ metaSiteId?: string;
395
+ }
396
+ export interface CloneMenusResponse {
397
+ }
398
+ export interface DomainEvent extends DomainEventBodyOneOf {
399
+ createdEvent?: EntityCreatedEvent;
400
+ updatedEvent?: EntityUpdatedEvent;
401
+ deletedEvent?: EntityDeletedEvent;
402
+ actionEvent?: ActionEvent;
403
+ /**
404
+ * Unique event ID.
405
+ * Allows clients to ignore duplicate webhooks.
406
+ */
407
+ id?: string;
408
+ /**
409
+ * Assumes actions are also always typed to an entity_type
410
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
411
+ */
412
+ entityFqdn?: string;
413
+ /**
414
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
415
+ * This is although the created/updated/deleted notion is duplication of the oneof types
416
+ * Example: created/updated/deleted/started/completed/email_opened
417
+ */
418
+ slug?: string;
419
+ /** ID of the entity associated with the event. */
420
+ entityId?: string;
421
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
422
+ eventTime?: Date | null;
423
+ /**
424
+ * Whether the event was triggered as a result of a privacy regulation application
425
+ * (for example, GDPR).
426
+ */
427
+ triggeredByAnonymizeRequest?: boolean | null;
428
+ /** If present, indicates the action that triggered the event. */
429
+ originatedFrom?: string | null;
430
+ /**
431
+ * A sequence number defining the order of updates to the underlying entity.
432
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
433
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
434
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
435
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
436
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
437
+ */
438
+ entityEventSequence?: string | null;
439
+ }
440
+ /** @oneof */
441
+ export interface DomainEventBodyOneOf {
442
+ createdEvent?: EntityCreatedEvent;
443
+ updatedEvent?: EntityUpdatedEvent;
444
+ deletedEvent?: EntityDeletedEvent;
445
+ actionEvent?: ActionEvent;
446
+ }
447
+ export interface EntityCreatedEvent {
448
+ entityAsJson?: string;
449
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
450
+ restoreInfo?: RestoreInfo;
451
+ }
452
+ export interface RestoreInfo {
453
+ deletedDate?: Date | null;
454
+ }
455
+ export interface EntityUpdatedEvent {
456
+ /**
457
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
458
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
459
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
460
+ */
461
+ currentEntityAsJson?: string;
462
+ }
463
+ export interface EntityDeletedEvent {
464
+ /** Entity that was deleted */
465
+ deletedEntityAsJson?: string | null;
466
+ }
467
+ export interface ActionEvent {
468
+ bodyAsJson?: string;
469
+ }
470
+ export interface Empty {
471
+ }
472
+ export interface MessageEnvelope {
473
+ /** App instance ID. */
474
+ instanceId?: string | null;
475
+ /** Event type. */
476
+ eventType?: string;
477
+ /** The identification type and identity data. */
478
+ identity?: IdentificationData;
479
+ /** Stringify payload. */
480
+ data?: string;
481
+ }
482
+ export interface IdentificationData extends IdentificationDataIdOneOf {
483
+ /** ID of a site visitor that has not logged in to the site. */
484
+ anonymousVisitorId?: string;
485
+ /** ID of a site visitor that has logged in to the site. */
486
+ memberId?: string;
487
+ /** ID of a Wix user (site owner, contributor, etc.). */
488
+ wixUserId?: string;
489
+ /** ID of an app. */
490
+ appId?: string;
491
+ /** @readonly */
492
+ identityType?: WebhookIdentityType;
493
+ }
494
+ /** @oneof */
495
+ export interface IdentificationDataIdOneOf {
496
+ /** ID of a site visitor that has not logged in to the site. */
497
+ anonymousVisitorId?: string;
498
+ /** ID of a site visitor that has logged in to the site. */
499
+ memberId?: string;
500
+ /** ID of a Wix user (site owner, contributor, etc.). */
501
+ wixUserId?: string;
502
+ /** ID of an app. */
503
+ appId?: string;
504
+ }
505
+ export declare enum WebhookIdentityType {
506
+ UNKNOWN = "UNKNOWN",
507
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
508
+ MEMBER = "MEMBER",
509
+ WIX_USER = "WIX_USER",
510
+ APP = "APP"
511
+ }
512
+ interface MenuSiteUrlNonNullableFields {
513
+ path: string;
514
+ }
515
+ export interface GetMenuSiteUrlResponseNonNullableFields {
516
+ menuSiteUrl?: MenuSiteUrlNonNullableFields;
517
+ }
518
+ export interface QueryMenusSiteUrlResponseNonNullableFields {
519
+ menuSiteUrls: MenuSiteUrlNonNullableFields[];
520
+ }
521
+ interface TagNonNullableFields {
522
+ type: string;
523
+ children: string;
524
+ custom: boolean;
525
+ disabled: boolean;
526
+ }
527
+ interface KeywordNonNullableFields {
528
+ term: string;
529
+ isMain: boolean;
530
+ }
531
+ interface SettingsNonNullableFields {
532
+ preventAutoRedirect: boolean;
533
+ keywords: KeywordNonNullableFields[];
534
+ }
535
+ interface SeoSchemaNonNullableFields {
536
+ tags: TagNonNullableFields[];
537
+ settings?: SettingsNonNullableFields;
538
+ }
539
+ interface MenuNonNullableFields {
540
+ name: string;
541
+ sectionIds: string[];
542
+ seoData?: SeoSchemaNonNullableFields;
543
+ }
544
+ export interface CreateMenuResponseNonNullableFields {
545
+ menu?: MenuNonNullableFields;
546
+ }
547
+ interface ApplicationErrorNonNullableFields {
548
+ code: string;
549
+ description: string;
550
+ }
551
+ interface ItemMetadataNonNullableFields {
552
+ originalIndex: number;
553
+ success: boolean;
554
+ error?: ApplicationErrorNonNullableFields;
555
+ }
556
+ interface BulkCreateMenuResultNonNullableFields {
557
+ menuMetadata?: ItemMetadataNonNullableFields;
558
+ menu?: MenuNonNullableFields;
559
+ }
560
+ interface BulkActionMetadataNonNullableFields {
561
+ totalSuccesses: number;
562
+ totalFailures: number;
563
+ undetailedFailures: number;
564
+ }
565
+ export interface BulkCreateMenusResponseNonNullableFields {
566
+ results: BulkCreateMenuResultNonNullableFields[];
567
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
568
+ }
569
+ export interface GetMenuResponseNonNullableFields {
570
+ menu?: MenuNonNullableFields;
571
+ }
572
+ export interface ListMenusResponseNonNullableFields {
573
+ menus: MenuNonNullableFields[];
574
+ }
575
+ export interface QueryMenusResponseNonNullableFields {
576
+ menus: MenuNonNullableFields[];
577
+ }
578
+ export interface UpdateMenuResponseNonNullableFields {
579
+ menu?: MenuNonNullableFields;
580
+ }
581
+ interface BulkMenuResultNonNullableFields {
582
+ menuMetadata?: ItemMetadataNonNullableFields;
583
+ menu?: MenuNonNullableFields;
584
+ }
585
+ export interface BulkUpdateMenuResponseNonNullableFields {
586
+ results: BulkMenuResultNonNullableFields[];
587
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
588
+ }
589
+ export interface UpdateExtendedFieldsResponseNonNullableFields {
590
+ namespace: string;
591
+ }
592
+ export {};
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookIdentityType = exports.SortOrder = void 0;
4
+ var SortOrder;
5
+ (function (SortOrder) {
6
+ SortOrder["ASC"] = "ASC";
7
+ SortOrder["DESC"] = "DESC";
8
+ })(SortOrder || (exports.SortOrder = SortOrder = {}));
9
+ var WebhookIdentityType;
10
+ (function (WebhookIdentityType) {
11
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
12
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
13
+ WebhookIdentityType["MEMBER"] = "MEMBER";
14
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
15
+ WebhookIdentityType["APP"] = "APP";
16
+ })(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
17
+ //# sourceMappingURL=restaurants-menus-v1-menu-menus.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restaurants-menus-v1-menu-menus.types.js","sourceRoot":"","sources":["../../../src/restaurants-menus-v1-menu-menus.types.ts"],"names":[],"mappings":";;;AAkKA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AA8YD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}