@wix/auto_sdk_restaurants_menus 1.0.13 → 1.0.15

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 (134) hide show
  1. package/build/index.d.mts +158 -0
  2. package/build/index.d.ts +158 -0
  3. package/build/index.js +1156 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +1116 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +158 -0
  8. package/build/internal/index.d.ts +158 -0
  9. package/build/internal/index.js +1156 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +1116 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +439 -0
  14. package/build/internal/meta.d.ts +439 -0
  15. package/build/internal/meta.js +845 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +807 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/{es/src/restaurants-menus-v1-menu-menus.universal.d.ts → internal/restaurants-menus-v1-menu-menus.universal-DxeZLk7R.d.mts} +92 -424
  20. package/build/internal/{cjs/src/restaurants-menus-v1-menu-menus.universal.d.ts → restaurants-menus-v1-menu-menus.universal-DxeZLk7R.d.ts} +92 -424
  21. package/build/meta.d.mts +439 -0
  22. package/build/meta.d.ts +439 -0
  23. package/build/meta.js +845 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +807 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{cjs/src/restaurants-menus-v1-menu-menus.universal.d.ts → restaurants-menus-v1-menu-menus.universal-DxeZLk7R.d.mts} +92 -424
  28. package/build/{internal/es/src/restaurants-menus-v1-menu-menus.universal.d.ts → restaurants-menus-v1-menu-menus.universal-DxeZLk7R.d.ts} +92 -424
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/restaurants-menus-v1-menu-menus.context.d.ts +0 -28
  40. package/build/cjs/src/restaurants-menus-v1-menu-menus.context.js +0 -33
  41. package/build/cjs/src/restaurants-menus-v1-menu-menus.context.js.map +0 -1
  42. package/build/cjs/src/restaurants-menus-v1-menu-menus.http.d.ts +0 -78
  43. package/build/cjs/src/restaurants-menus-v1-menu-menus.http.js +0 -648
  44. package/build/cjs/src/restaurants-menus-v1-menu-menus.http.js.map +0 -1
  45. package/build/cjs/src/restaurants-menus-v1-menu-menus.meta.d.ts +0 -36
  46. package/build/cjs/src/restaurants-menus-v1-menu-menus.meta.js +0 -256
  47. package/build/cjs/src/restaurants-menus-v1-menu-menus.meta.js.map +0 -1
  48. package/build/cjs/src/restaurants-menus-v1-menu-menus.public.d.ts +0 -139
  49. package/build/cjs/src/restaurants-menus-v1-menu-menus.public.js +0 -115
  50. package/build/cjs/src/restaurants-menus-v1-menu-menus.public.js.map +0 -1
  51. package/build/cjs/src/restaurants-menus-v1-menu-menus.types.d.ts +0 -762
  52. package/build/cjs/src/restaurants-menus-v1-menu-menus.types.js +0 -17
  53. package/build/cjs/src/restaurants-menus-v1-menu-menus.types.js.map +0 -1
  54. package/build/cjs/src/restaurants-menus-v1-menu-menus.universal.js +0 -577
  55. package/build/cjs/src/restaurants-menus-v1-menu-menus.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/restaurants-menus-v1-menu-menus.context.d.ts +0 -28
  67. package/build/es/src/restaurants-menus-v1-menu-menus.context.js +0 -28
  68. package/build/es/src/restaurants-menus-v1-menu-menus.context.js.map +0 -1
  69. package/build/es/src/restaurants-menus-v1-menu-menus.http.d.ts +0 -78
  70. package/build/es/src/restaurants-menus-v1-menu-menus.http.js +0 -633
  71. package/build/es/src/restaurants-menus-v1-menu-menus.http.js.map +0 -1
  72. package/build/es/src/restaurants-menus-v1-menu-menus.meta.d.ts +0 -36
  73. package/build/es/src/restaurants-menus-v1-menu-menus.meta.js +0 -218
  74. package/build/es/src/restaurants-menus-v1-menu-menus.meta.js.map +0 -1
  75. package/build/es/src/restaurants-menus-v1-menu-menus.public.d.ts +0 -139
  76. package/build/es/src/restaurants-menus-v1-menu-menus.public.js +0 -98
  77. package/build/es/src/restaurants-menus-v1-menu-menus.public.js.map +0 -1
  78. package/build/es/src/restaurants-menus-v1-menu-menus.types.d.ts +0 -762
  79. package/build/es/src/restaurants-menus-v1-menu-menus.types.js +0 -14
  80. package/build/es/src/restaurants-menus-v1-menu-menus.types.js.map +0 -1
  81. package/build/es/src/restaurants-menus-v1-menu-menus.universal.js +0 -539
  82. package/build/es/src/restaurants-menus-v1-menu-menus.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.context.d.ts +0 -28
  93. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.context.js +0 -33
  94. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.context.js.map +0 -1
  95. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.http.d.ts +0 -78
  96. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.http.js +0 -648
  97. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.http.js.map +0 -1
  98. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.meta.d.ts +0 -36
  99. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.meta.js +0 -256
  100. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.meta.js.map +0 -1
  101. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.public.d.ts +0 -139
  102. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.public.js +0 -115
  103. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.public.js.map +0 -1
  104. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.types.d.ts +0 -762
  105. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.types.js +0 -17
  106. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.types.js.map +0 -1
  107. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.universal.js +0 -577
  108. package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/restaurants-menus-v1-menu-menus.context.d.ts +0 -28
  119. package/build/internal/es/src/restaurants-menus-v1-menu-menus.context.js +0 -28
  120. package/build/internal/es/src/restaurants-menus-v1-menu-menus.context.js.map +0 -1
  121. package/build/internal/es/src/restaurants-menus-v1-menu-menus.http.d.ts +0 -78
  122. package/build/internal/es/src/restaurants-menus-v1-menu-menus.http.js +0 -633
  123. package/build/internal/es/src/restaurants-menus-v1-menu-menus.http.js.map +0 -1
  124. package/build/internal/es/src/restaurants-menus-v1-menu-menus.meta.d.ts +0 -36
  125. package/build/internal/es/src/restaurants-menus-v1-menu-menus.meta.js +0 -218
  126. package/build/internal/es/src/restaurants-menus-v1-menu-menus.meta.js.map +0 -1
  127. package/build/internal/es/src/restaurants-menus-v1-menu-menus.public.d.ts +0 -139
  128. package/build/internal/es/src/restaurants-menus-v1-menu-menus.public.js +0 -98
  129. package/build/internal/es/src/restaurants-menus-v1-menu-menus.public.js.map +0 -1
  130. package/build/internal/es/src/restaurants-menus-v1-menu-menus.types.d.ts +0 -762
  131. package/build/internal/es/src/restaurants-menus-v1-menu-menus.types.js +0 -14
  132. package/build/internal/es/src/restaurants-menus-v1-menu-menus.types.js.map +0 -1
  133. package/build/internal/es/src/restaurants-menus-v1-menu-menus.universal.js +0 -539
  134. package/build/internal/es/src/restaurants-menus-v1-menu-menus.universal.js.map +0 -1
@@ -0,0 +1,158 @@
1
+ import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { M as Menu, B as BulkCreateMenusOptions, a as BulkCreateMenusResponse, L as ListMenusOptions, b as ListMenusResponse, c as MenusQueryBuilder, U as UpdateMenu, d as MaskedMenu, e as BulkUpdateMenuOptions, f as BulkUpdateMenuResponse, g as UpdateExtendedFieldsOptions, h as UpdateExtendedFieldsResponse, G as GetMenuSiteUrlResponse, Q as QueryMenusSiteUrlOptions, i as QueryMenusSiteUrlResponse, D as DuplicateMenuOptions, j as DuplicateMenuResponse } from './restaurants-menus-v1-menu-menus.universal-DxeZLk7R.mjs';
3
+ export { ag as ActionEvent, A as App, v as ApplicationError, ap as BaseEventMetadata, w as BulkActionMetadata, t as BulkCreateMenuResult, s as BulkCreateMenusRequest, a0 as BulkMenuResult, $ as BulkUpdateMenuRequest, m as BusinessLocationDetails, a8 as CloneMenusRequest, a9 as CloneMenusResponse, C as CreateMenuRequest, r as CreateMenuResponse, H as CursorPaging, J as CursorPagingMetadata, R as CursorQuery, V as CursorQueryPagingMethodOneOf, N as Cursors, a2 as DeleteMenuRequest, a3 as DeleteMenuResponse, p as DeleteOrphanSections, aa as DomainEvent, ab as DomainEventBodyOneOf, ao as DuplicateMenuRequest, ah as Empty, ac as EntityCreatedEvent, af as EntityDeletedEvent, ae as EntityUpdatedEvent, aq as EventMetadata, E as ExtendedFields, F as File, x as GetMenuRequest, y as GetMenuResponse, al as GetMenuSiteUrlRequest, aj as IdentificationData, ak as IdentificationDataIdOneOf, I as InvalidateCache, n as InvalidateCacheGetByOneOf, u as ItemMetadata, K as Keyword, z as ListMenusRequest, ar as MenuCreatedEnvelope, as as MenuDeletedEnvelope, am as MenuSiteUrl, at as MenuUpdatedEnvelope, q as MenusDataCloningCompleted, au as MenusQueryResult, ai as MessageEnvelope, P as Page, O as QueryMenusRequest, Y as QueryMenusResponse, an as QueryMenusSiteUrlRequest, ad as RestoreInfo, a4 as RunMenusMultiLocationMigrationRequest, a5 as RunMenusMultiLocationMigrationResponse, k as SeoSchema, l as Settings, S as SortOrder, X as Sorting, T as Tag, o as URI, a6 as UpdateBusinessLocationIdRequest, a7 as UpdateBusinessLocationIdResponse, a1 as UpdateExtendedFieldsRequest, Z as UpdateMenuRequest, _ as UpdateMenuResponse, W as WebhookIdentityType } from './restaurants-menus-v1-menu-menus.universal-DxeZLk7R.mjs';
4
+ import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
5
+
6
+ declare function createMenu$1(httpClient: HttpClient): CreateMenuSignature;
7
+ interface CreateMenuSignature {
8
+ /**
9
+ * > **Note:** The Menus API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
10
+ *
11
+ * Creates a menu.
12
+ *
13
+ * To create multiple menus at once, use [Bulk Create Menus](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/menu/bulk-create-menus).
14
+ * @param - Menu details.
15
+ * @returns Menu.
16
+ */
17
+ (menu: Menu): Promise<Menu>;
18
+ }
19
+ declare function bulkCreateMenus$1(httpClient: HttpClient): BulkCreateMenusSignature;
20
+ interface BulkCreateMenusSignature {
21
+ /**
22
+ * > **Note:** The Menu API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
23
+ *
24
+ * Creates multiple menus at once.
25
+ * @param - Menu details.
26
+ */
27
+ (menus: Menu[], options?: BulkCreateMenusOptions | undefined): Promise<BulkCreateMenusResponse>;
28
+ }
29
+ declare function getMenu$1(httpClient: HttpClient): GetMenuSignature;
30
+ interface GetMenuSignature {
31
+ /**
32
+ * > **Note:** The Menu API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
33
+ *
34
+ * Retrieves a menu by ID.
35
+ * @param - Menu ID.
36
+ * @returns Menu.
37
+ */
38
+ (menuId: string): Promise<Menu>;
39
+ }
40
+ declare function listMenus$1(httpClient: HttpClient): ListMenusSignature;
41
+ interface ListMenusSignature {
42
+ /**
43
+ * > **Note:** The Menu API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
44
+ *
45
+ * Retrieves a list of up to 500 menus.
46
+ */
47
+ (options?: ListMenusOptions | undefined): Promise<ListMenusResponse>;
48
+ }
49
+ declare function queryMenus$1(httpClient: HttpClient): QueryMenusSignature;
50
+ interface QueryMenusSignature {
51
+ /**
52
+ * Creates a query to retrieve a list of menus.
53
+ *
54
+ * The `queryMenus()` function builds a query to retrieve a list of menus and returns a `MenusQueryBuilder` object.
55
+ *
56
+ * The returned object contains the query definition, which is used to run the query using the [`find()`](/menus/menus-query-builder/find) function.
57
+ *
58
+ * You can refine the query by chaining `MenusQueryBuilder` functions onto the query. `MenusQueryBuilder` functions enable you to filter, sort, and control the results that `queryMenus()` returns.
59
+ *
60
+ * `queryMenus()` runs with the following `MenusQueryBuilder` defaults, which you can override:
61
+ *
62
+ * * [`limit(100)`](/menus/menus-query-builder/limit)
63
+ *
64
+ * The following `MenusQueryBuilder` functions are supported for `queryMenus()`. For a full description of the menu object, see the object returned for the [`items`](/menus/menus-query-result/items) property in `MenusQueryResult`.
65
+ */
66
+ (): MenusQueryBuilder;
67
+ }
68
+ declare function updateMenu$1(httpClient: HttpClient): UpdateMenuSignature;
69
+ interface UpdateMenuSignature {
70
+ /**
71
+ * > **Note:** The Menu API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
72
+ *
73
+ * Updates a menu.
74
+ *
75
+ * To update multiple menus at once, use [Bulk Update Menu](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/menu/bulk-update-menu).
76
+ *
77
+ * Each time a menu is updated, its revision increments by 1. The existing revision must be included when updating a menu. This ensures you're working with the latest menu information, and it prevents unintended overwrites.
78
+ * @param - Menu ID.
79
+ * @returns Updated menu.
80
+ */
81
+ (_id: string, menu: UpdateMenu): Promise<Menu>;
82
+ }
83
+ declare function bulkUpdateMenu$1(httpClient: HttpClient): BulkUpdateMenuSignature;
84
+ interface BulkUpdateMenuSignature {
85
+ /**
86
+ * > **Note:** The Menu API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
87
+ *
88
+ * Updates multiple menus at once.
89
+ *
90
+ * Each time a menu is updated, its revision increments by 1. The existing revision must be included when updating the menu. This ensures you're working with the latest menu information, and it prevents unintended overwrites.
91
+ * @param - Menus to update.
92
+ */
93
+ (menus: MaskedMenu[], options?: BulkUpdateMenuOptions | undefined): Promise<BulkUpdateMenuResponse>;
94
+ }
95
+ declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
96
+ interface UpdateExtendedFieldsSignature {
97
+ /**
98
+ * > **Note:** The Menu API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
99
+ *
100
+ * Updates only the `extendedFields` field.
101
+ * @param - ID of the entity to update.
102
+ * @param - Identifier for the app whose extended fields are being updated.
103
+ */
104
+ (_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
105
+ }
106
+ declare function deleteMenu$1(httpClient: HttpClient): DeleteMenuSignature;
107
+ interface DeleteMenuSignature {
108
+ /**
109
+ * > **Note:** The Menu API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
110
+ *
111
+ * Deletes a menu.
112
+ * @param - Menu ID.
113
+ */
114
+ (menuId: string): Promise<void>;
115
+ }
116
+ declare function getMenuSiteUrl$1(httpClient: HttpClient): GetMenuSiteUrlSignature;
117
+ interface GetMenuSiteUrlSignature {
118
+ /**
119
+ * Get menu details and path URL by menu ID.
120
+ * @param - Menu ID.
121
+ */
122
+ (_id: string): Promise<GetMenuSiteUrlResponse>;
123
+ }
124
+ declare function queryMenusSiteUrl$1(httpClient: HttpClient): QueryMenusSiteUrlSignature;
125
+ interface QueryMenusSiteUrlSignature {
126
+ /**
127
+ * Query menu details and path URL
128
+ */
129
+ (options?: QueryMenusSiteUrlOptions | undefined): Promise<QueryMenusSiteUrlResponse>;
130
+ }
131
+ declare function duplicateMenu$1(httpClient: HttpClient): DuplicateMenuSignature;
132
+ interface DuplicateMenuSignature {
133
+ /** @param - Menu id to be duplicated. */
134
+ (_id: string, options?: DuplicateMenuOptions | undefined): Promise<DuplicateMenuResponse>;
135
+ }
136
+
137
+ declare const createMenu: MaybeContext<BuildRESTFunction<typeof createMenu$1> & typeof createMenu$1>;
138
+ declare const bulkCreateMenus: MaybeContext<BuildRESTFunction<typeof bulkCreateMenus$1> & typeof bulkCreateMenus$1>;
139
+ declare const getMenu: MaybeContext<BuildRESTFunction<typeof getMenu$1> & typeof getMenu$1>;
140
+ declare const listMenus: MaybeContext<BuildRESTFunction<typeof listMenus$1> & typeof listMenus$1>;
141
+ declare const queryMenus: MaybeContext<BuildRESTFunction<typeof queryMenus$1> & typeof queryMenus$1>;
142
+ declare const updateMenu: MaybeContext<BuildRESTFunction<typeof updateMenu$1> & typeof updateMenu$1>;
143
+ declare const bulkUpdateMenu: MaybeContext<BuildRESTFunction<typeof bulkUpdateMenu$1> & typeof bulkUpdateMenu$1>;
144
+ declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
145
+ declare const deleteMenu: MaybeContext<BuildRESTFunction<typeof deleteMenu$1> & typeof deleteMenu$1>;
146
+ declare const getMenuSiteUrl: MaybeContext<BuildRESTFunction<typeof getMenuSiteUrl$1> & typeof getMenuSiteUrl$1>;
147
+ declare const queryMenusSiteUrl: MaybeContext<BuildRESTFunction<typeof queryMenusSiteUrl$1> & typeof queryMenusSiteUrl$1>;
148
+ declare const duplicateMenu: MaybeContext<BuildRESTFunction<typeof duplicateMenu$1> & typeof duplicateMenu$1>;
149
+ /** */
150
+ declare const onMenuCreated: ReturnType<typeof createEventModule<typeof publicOnMenuCreated>>;
151
+ /**
152
+ * Triggered when a menu is deleted.
153
+ */
154
+ declare const onMenuDeleted: ReturnType<typeof createEventModule<typeof publicOnMenuDeleted>>;
155
+ /** */
156
+ declare const onMenuUpdated: ReturnType<typeof createEventModule<typeof publicOnMenuUpdated>>;
157
+
158
+ export { BulkCreateMenusOptions, BulkCreateMenusResponse, BulkUpdateMenuOptions, BulkUpdateMenuResponse, DuplicateMenuOptions, DuplicateMenuResponse, GetMenuSiteUrlResponse, ListMenusOptions, ListMenusResponse, MaskedMenu, Menu, MenusQueryBuilder, QueryMenusSiteUrlOptions, QueryMenusSiteUrlResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateMenu, bulkCreateMenus, bulkUpdateMenu, createMenu, deleteMenu, duplicateMenu, getMenu, getMenuSiteUrl, listMenus, onMenuCreated, onMenuDeleted, onMenuUpdated, queryMenus, queryMenusSiteUrl, updateExtendedFields, updateMenu };
@@ -0,0 +1,158 @@
1
+ import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { M as Menu, B as BulkCreateMenusOptions, a as BulkCreateMenusResponse, L as ListMenusOptions, b as ListMenusResponse, c as MenusQueryBuilder, U as UpdateMenu, d as MaskedMenu, e as BulkUpdateMenuOptions, f as BulkUpdateMenuResponse, g as UpdateExtendedFieldsOptions, h as UpdateExtendedFieldsResponse, G as GetMenuSiteUrlResponse, Q as QueryMenusSiteUrlOptions, i as QueryMenusSiteUrlResponse, D as DuplicateMenuOptions, j as DuplicateMenuResponse } from './restaurants-menus-v1-menu-menus.universal-DxeZLk7R.js';
3
+ export { ag as ActionEvent, A as App, v as ApplicationError, ap as BaseEventMetadata, w as BulkActionMetadata, t as BulkCreateMenuResult, s as BulkCreateMenusRequest, a0 as BulkMenuResult, $ as BulkUpdateMenuRequest, m as BusinessLocationDetails, a8 as CloneMenusRequest, a9 as CloneMenusResponse, C as CreateMenuRequest, r as CreateMenuResponse, H as CursorPaging, J as CursorPagingMetadata, R as CursorQuery, V as CursorQueryPagingMethodOneOf, N as Cursors, a2 as DeleteMenuRequest, a3 as DeleteMenuResponse, p as DeleteOrphanSections, aa as DomainEvent, ab as DomainEventBodyOneOf, ao as DuplicateMenuRequest, ah as Empty, ac as EntityCreatedEvent, af as EntityDeletedEvent, ae as EntityUpdatedEvent, aq as EventMetadata, E as ExtendedFields, F as File, x as GetMenuRequest, y as GetMenuResponse, al as GetMenuSiteUrlRequest, aj as IdentificationData, ak as IdentificationDataIdOneOf, I as InvalidateCache, n as InvalidateCacheGetByOneOf, u as ItemMetadata, K as Keyword, z as ListMenusRequest, ar as MenuCreatedEnvelope, as as MenuDeletedEnvelope, am as MenuSiteUrl, at as MenuUpdatedEnvelope, q as MenusDataCloningCompleted, au as MenusQueryResult, ai as MessageEnvelope, P as Page, O as QueryMenusRequest, Y as QueryMenusResponse, an as QueryMenusSiteUrlRequest, ad as RestoreInfo, a4 as RunMenusMultiLocationMigrationRequest, a5 as RunMenusMultiLocationMigrationResponse, k as SeoSchema, l as Settings, S as SortOrder, X as Sorting, T as Tag, o as URI, a6 as UpdateBusinessLocationIdRequest, a7 as UpdateBusinessLocationIdResponse, a1 as UpdateExtendedFieldsRequest, Z as UpdateMenuRequest, _ as UpdateMenuResponse, W as WebhookIdentityType } from './restaurants-menus-v1-menu-menus.universal-DxeZLk7R.js';
4
+ import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
5
+
6
+ declare function createMenu$1(httpClient: HttpClient): CreateMenuSignature;
7
+ interface CreateMenuSignature {
8
+ /**
9
+ * > **Note:** The Menus API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
10
+ *
11
+ * Creates a menu.
12
+ *
13
+ * To create multiple menus at once, use [Bulk Create Menus](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/menu/bulk-create-menus).
14
+ * @param - Menu details.
15
+ * @returns Menu.
16
+ */
17
+ (menu: Menu): Promise<Menu>;
18
+ }
19
+ declare function bulkCreateMenus$1(httpClient: HttpClient): BulkCreateMenusSignature;
20
+ interface BulkCreateMenusSignature {
21
+ /**
22
+ * > **Note:** The Menu API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
23
+ *
24
+ * Creates multiple menus at once.
25
+ * @param - Menu details.
26
+ */
27
+ (menus: Menu[], options?: BulkCreateMenusOptions | undefined): Promise<BulkCreateMenusResponse>;
28
+ }
29
+ declare function getMenu$1(httpClient: HttpClient): GetMenuSignature;
30
+ interface GetMenuSignature {
31
+ /**
32
+ * > **Note:** The Menu API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
33
+ *
34
+ * Retrieves a menu by ID.
35
+ * @param - Menu ID.
36
+ * @returns Menu.
37
+ */
38
+ (menuId: string): Promise<Menu>;
39
+ }
40
+ declare function listMenus$1(httpClient: HttpClient): ListMenusSignature;
41
+ interface ListMenusSignature {
42
+ /**
43
+ * > **Note:** The Menu API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
44
+ *
45
+ * Retrieves a list of up to 500 menus.
46
+ */
47
+ (options?: ListMenusOptions | undefined): Promise<ListMenusResponse>;
48
+ }
49
+ declare function queryMenus$1(httpClient: HttpClient): QueryMenusSignature;
50
+ interface QueryMenusSignature {
51
+ /**
52
+ * Creates a query to retrieve a list of menus.
53
+ *
54
+ * The `queryMenus()` function builds a query to retrieve a list of menus and returns a `MenusQueryBuilder` object.
55
+ *
56
+ * The returned object contains the query definition, which is used to run the query using the [`find()`](/menus/menus-query-builder/find) function.
57
+ *
58
+ * You can refine the query by chaining `MenusQueryBuilder` functions onto the query. `MenusQueryBuilder` functions enable you to filter, sort, and control the results that `queryMenus()` returns.
59
+ *
60
+ * `queryMenus()` runs with the following `MenusQueryBuilder` defaults, which you can override:
61
+ *
62
+ * * [`limit(100)`](/menus/menus-query-builder/limit)
63
+ *
64
+ * The following `MenusQueryBuilder` functions are supported for `queryMenus()`. For a full description of the menu object, see the object returned for the [`items`](/menus/menus-query-result/items) property in `MenusQueryResult`.
65
+ */
66
+ (): MenusQueryBuilder;
67
+ }
68
+ declare function updateMenu$1(httpClient: HttpClient): UpdateMenuSignature;
69
+ interface UpdateMenuSignature {
70
+ /**
71
+ * > **Note:** The Menu API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
72
+ *
73
+ * Updates a menu.
74
+ *
75
+ * To update multiple menus at once, use [Bulk Update Menu](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/menu/bulk-update-menu).
76
+ *
77
+ * Each time a menu is updated, its revision increments by 1. The existing revision must be included when updating a menu. This ensures you're working with the latest menu information, and it prevents unintended overwrites.
78
+ * @param - Menu ID.
79
+ * @returns Updated menu.
80
+ */
81
+ (_id: string, menu: UpdateMenu): Promise<Menu>;
82
+ }
83
+ declare function bulkUpdateMenu$1(httpClient: HttpClient): BulkUpdateMenuSignature;
84
+ interface BulkUpdateMenuSignature {
85
+ /**
86
+ * > **Note:** The Menu API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
87
+ *
88
+ * Updates multiple menus at once.
89
+ *
90
+ * Each time a menu is updated, its revision increments by 1. The existing revision must be included when updating the menu. This ensures you're working with the latest menu information, and it prevents unintended overwrites.
91
+ * @param - Menus to update.
92
+ */
93
+ (menus: MaskedMenu[], options?: BulkUpdateMenuOptions | undefined): Promise<BulkUpdateMenuResponse>;
94
+ }
95
+ declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
96
+ interface UpdateExtendedFieldsSignature {
97
+ /**
98
+ * > **Note:** The Menu API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
99
+ *
100
+ * Updates only the `extendedFields` field.
101
+ * @param - ID of the entity to update.
102
+ * @param - Identifier for the app whose extended fields are being updated.
103
+ */
104
+ (_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
105
+ }
106
+ declare function deleteMenu$1(httpClient: HttpClient): DeleteMenuSignature;
107
+ interface DeleteMenuSignature {
108
+ /**
109
+ * > **Note:** The Menu API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
110
+ *
111
+ * Deletes a menu.
112
+ * @param - Menu ID.
113
+ */
114
+ (menuId: string): Promise<void>;
115
+ }
116
+ declare function getMenuSiteUrl$1(httpClient: HttpClient): GetMenuSiteUrlSignature;
117
+ interface GetMenuSiteUrlSignature {
118
+ /**
119
+ * Get menu details and path URL by menu ID.
120
+ * @param - Menu ID.
121
+ */
122
+ (_id: string): Promise<GetMenuSiteUrlResponse>;
123
+ }
124
+ declare function queryMenusSiteUrl$1(httpClient: HttpClient): QueryMenusSiteUrlSignature;
125
+ interface QueryMenusSiteUrlSignature {
126
+ /**
127
+ * Query menu details and path URL
128
+ */
129
+ (options?: QueryMenusSiteUrlOptions | undefined): Promise<QueryMenusSiteUrlResponse>;
130
+ }
131
+ declare function duplicateMenu$1(httpClient: HttpClient): DuplicateMenuSignature;
132
+ interface DuplicateMenuSignature {
133
+ /** @param - Menu id to be duplicated. */
134
+ (_id: string, options?: DuplicateMenuOptions | undefined): Promise<DuplicateMenuResponse>;
135
+ }
136
+
137
+ declare const createMenu: MaybeContext<BuildRESTFunction<typeof createMenu$1> & typeof createMenu$1>;
138
+ declare const bulkCreateMenus: MaybeContext<BuildRESTFunction<typeof bulkCreateMenus$1> & typeof bulkCreateMenus$1>;
139
+ declare const getMenu: MaybeContext<BuildRESTFunction<typeof getMenu$1> & typeof getMenu$1>;
140
+ declare const listMenus: MaybeContext<BuildRESTFunction<typeof listMenus$1> & typeof listMenus$1>;
141
+ declare const queryMenus: MaybeContext<BuildRESTFunction<typeof queryMenus$1> & typeof queryMenus$1>;
142
+ declare const updateMenu: MaybeContext<BuildRESTFunction<typeof updateMenu$1> & typeof updateMenu$1>;
143
+ declare const bulkUpdateMenu: MaybeContext<BuildRESTFunction<typeof bulkUpdateMenu$1> & typeof bulkUpdateMenu$1>;
144
+ declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
145
+ declare const deleteMenu: MaybeContext<BuildRESTFunction<typeof deleteMenu$1> & typeof deleteMenu$1>;
146
+ declare const getMenuSiteUrl: MaybeContext<BuildRESTFunction<typeof getMenuSiteUrl$1> & typeof getMenuSiteUrl$1>;
147
+ declare const queryMenusSiteUrl: MaybeContext<BuildRESTFunction<typeof queryMenusSiteUrl$1> & typeof queryMenusSiteUrl$1>;
148
+ declare const duplicateMenu: MaybeContext<BuildRESTFunction<typeof duplicateMenu$1> & typeof duplicateMenu$1>;
149
+ /** */
150
+ declare const onMenuCreated: ReturnType<typeof createEventModule<typeof publicOnMenuCreated>>;
151
+ /**
152
+ * Triggered when a menu is deleted.
153
+ */
154
+ declare const onMenuDeleted: ReturnType<typeof createEventModule<typeof publicOnMenuDeleted>>;
155
+ /** */
156
+ declare const onMenuUpdated: ReturnType<typeof createEventModule<typeof publicOnMenuUpdated>>;
157
+
158
+ export { BulkCreateMenusOptions, BulkCreateMenusResponse, BulkUpdateMenuOptions, BulkUpdateMenuResponse, DuplicateMenuOptions, DuplicateMenuResponse, GetMenuSiteUrlResponse, ListMenusOptions, ListMenusResponse, MaskedMenu, Menu, MenusQueryBuilder, QueryMenusSiteUrlOptions, QueryMenusSiteUrlResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateMenu, bulkCreateMenus, bulkUpdateMenu, createMenu, deleteMenu, duplicateMenu, getMenu, getMenuSiteUrl, listMenus, onMenuCreated, onMenuDeleted, onMenuUpdated, queryMenus, queryMenusSiteUrl, updateExtendedFields, updateMenu };