@wix/auto_sdk_restaurants_menus 1.0.14 → 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.
- package/build/{cjs/src/restaurants-menus-v1-menu-menus.public.d.ts → index.d.mts} +40 -21
- package/build/{es/src/restaurants-menus-v1-menu-menus.public.d.ts → index.d.ts} +40 -21
- package/build/index.js +1156 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1116 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/restaurants-menus-v1-menu-menus.public.d.ts → index.d.mts} +40 -21
- package/build/internal/{cjs/src/restaurants-menus-v1-menu-menus.public.d.ts → index.d.ts} +40 -21
- package/build/internal/index.js +1156 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1116 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{cjs/src/restaurants-menus-v1-menu-menus.types.d.ts → internal/meta.d.mts} +83 -322
- package/build/internal/{cjs/src/restaurants-menus-v1-menu-menus.types.d.ts → meta.d.ts} +83 -322
- package/build/internal/meta.js +845 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +807 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{es/src/restaurants-menus-v1-menu-menus.universal.d.ts → internal/restaurants-menus-v1-menu-menus.universal-DxeZLk7R.d.mts} +92 -349
- package/build/internal/{cjs/src/restaurants-menus-v1-menu-menus.universal.d.ts → restaurants-menus-v1-menu-menus.universal-DxeZLk7R.d.ts} +92 -349
- package/build/{es/src/restaurants-menus-v1-menu-menus.types.d.ts → meta.d.mts} +83 -322
- package/build/{internal/es/src/restaurants-menus-v1-menu-menus.types.d.ts → meta.d.ts} +83 -322
- package/build/meta.js +845 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +807 -0
- package/build/meta.mjs.map +1 -0
- package/build/{cjs/src/restaurants-menus-v1-menu-menus.universal.d.ts → restaurants-menus-v1-menu-menus.universal-DxeZLk7R.d.mts} +92 -349
- package/build/{internal/es/src/restaurants-menus-v1-menu-menus.universal.d.ts → restaurants-menus-v1-menu-menus.universal-DxeZLk7R.d.ts} +92 -349
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-menu-menus.context.d.ts +0 -28
- package/build/cjs/src/restaurants-menus-v1-menu-menus.context.js +0 -33
- package/build/cjs/src/restaurants-menus-v1-menu-menus.context.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-menu-menus.http.d.ts +0 -78
- package/build/cjs/src/restaurants-menus-v1-menu-menus.http.js +0 -648
- package/build/cjs/src/restaurants-menus-v1-menu-menus.http.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-menu-menus.meta.d.ts +0 -36
- package/build/cjs/src/restaurants-menus-v1-menu-menus.meta.js +0 -256
- package/build/cjs/src/restaurants-menus-v1-menu-menus.meta.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-menu-menus.public.js +0 -115
- package/build/cjs/src/restaurants-menus-v1-menu-menus.public.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-menu-menus.types.js +0 -17
- package/build/cjs/src/restaurants-menus-v1-menu-menus.types.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-menu-menus.universal.js +0 -577
- package/build/cjs/src/restaurants-menus-v1-menu-menus.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/restaurants-menus-v1-menu-menus.context.d.ts +0 -28
- package/build/es/src/restaurants-menus-v1-menu-menus.context.js +0 -28
- package/build/es/src/restaurants-menus-v1-menu-menus.context.js.map +0 -1
- package/build/es/src/restaurants-menus-v1-menu-menus.http.d.ts +0 -78
- package/build/es/src/restaurants-menus-v1-menu-menus.http.js +0 -633
- package/build/es/src/restaurants-menus-v1-menu-menus.http.js.map +0 -1
- package/build/es/src/restaurants-menus-v1-menu-menus.meta.d.ts +0 -36
- package/build/es/src/restaurants-menus-v1-menu-menus.meta.js +0 -218
- package/build/es/src/restaurants-menus-v1-menu-menus.meta.js.map +0 -1
- package/build/es/src/restaurants-menus-v1-menu-menus.public.js +0 -98
- package/build/es/src/restaurants-menus-v1-menu-menus.public.js.map +0 -1
- package/build/es/src/restaurants-menus-v1-menu-menus.types.js +0 -14
- package/build/es/src/restaurants-menus-v1-menu-menus.types.js.map +0 -1
- package/build/es/src/restaurants-menus-v1-menu-menus.universal.js +0 -539
- package/build/es/src/restaurants-menus-v1-menu-menus.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.context.d.ts +0 -28
- package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.context.js +0 -33
- package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.context.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.http.d.ts +0 -78
- package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.http.js +0 -648
- package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.http.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.meta.d.ts +0 -36
- package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.meta.js +0 -256
- package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.meta.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.public.js +0 -115
- package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.public.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.types.js +0 -17
- package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.types.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.universal.js +0 -577
- package/build/internal/cjs/src/restaurants-menus-v1-menu-menus.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-menu-menus.context.d.ts +0 -28
- package/build/internal/es/src/restaurants-menus-v1-menu-menus.context.js +0 -28
- package/build/internal/es/src/restaurants-menus-v1-menu-menus.context.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-menu-menus.http.d.ts +0 -78
- package/build/internal/es/src/restaurants-menus-v1-menu-menus.http.js +0 -633
- package/build/internal/es/src/restaurants-menus-v1-menu-menus.http.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-menu-menus.meta.d.ts +0 -36
- package/build/internal/es/src/restaurants-menus-v1-menu-menus.meta.js +0 -218
- package/build/internal/es/src/restaurants-menus-v1-menu-menus.meta.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-menu-menus.public.js +0 -98
- package/build/internal/es/src/restaurants-menus-v1-menu-menus.public.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-menu-menus.types.js +0 -14
- package/build/internal/es/src/restaurants-menus-v1-menu-menus.types.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-menu-menus.universal.js +0 -539
- package/build/internal/es/src/restaurants-menus-v1-menu-menus.universal.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BulkCreateMenusOptions, BulkCreateMenusResponse,
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
7
|
interface CreateMenuSignature {
|
|
8
8
|
/**
|
|
9
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).
|
|
@@ -16,7 +16,7 @@ interface CreateMenuSignature {
|
|
|
16
16
|
*/
|
|
17
17
|
(menu: Menu): Promise<Menu>;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
declare function bulkCreateMenus$1(httpClient: HttpClient): BulkCreateMenusSignature;
|
|
20
20
|
interface BulkCreateMenusSignature {
|
|
21
21
|
/**
|
|
22
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).
|
|
@@ -26,7 +26,7 @@ interface BulkCreateMenusSignature {
|
|
|
26
26
|
*/
|
|
27
27
|
(menus: Menu[], options?: BulkCreateMenusOptions | undefined): Promise<BulkCreateMenusResponse>;
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
declare function getMenu$1(httpClient: HttpClient): GetMenuSignature;
|
|
30
30
|
interface GetMenuSignature {
|
|
31
31
|
/**
|
|
32
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).
|
|
@@ -37,7 +37,7 @@ interface GetMenuSignature {
|
|
|
37
37
|
*/
|
|
38
38
|
(menuId: string): Promise<Menu>;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
declare function listMenus$1(httpClient: HttpClient): ListMenusSignature;
|
|
41
41
|
interface ListMenusSignature {
|
|
42
42
|
/**
|
|
43
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).
|
|
@@ -46,7 +46,7 @@ interface ListMenusSignature {
|
|
|
46
46
|
*/
|
|
47
47
|
(options?: ListMenusOptions | undefined): Promise<ListMenusResponse>;
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
declare function queryMenus$1(httpClient: HttpClient): QueryMenusSignature;
|
|
50
50
|
interface QueryMenusSignature {
|
|
51
51
|
/**
|
|
52
52
|
* Creates a query to retrieve a list of menus.
|
|
@@ -65,7 +65,7 @@ interface QueryMenusSignature {
|
|
|
65
65
|
*/
|
|
66
66
|
(): MenusQueryBuilder;
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
declare function updateMenu$1(httpClient: HttpClient): UpdateMenuSignature;
|
|
69
69
|
interface UpdateMenuSignature {
|
|
70
70
|
/**
|
|
71
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).
|
|
@@ -80,7 +80,7 @@ interface UpdateMenuSignature {
|
|
|
80
80
|
*/
|
|
81
81
|
(_id: string, menu: UpdateMenu): Promise<Menu>;
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
declare function bulkUpdateMenu$1(httpClient: HttpClient): BulkUpdateMenuSignature;
|
|
84
84
|
interface BulkUpdateMenuSignature {
|
|
85
85
|
/**
|
|
86
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).
|
|
@@ -92,7 +92,7 @@ interface BulkUpdateMenuSignature {
|
|
|
92
92
|
*/
|
|
93
93
|
(menus: MaskedMenu[], options?: BulkUpdateMenuOptions | undefined): Promise<BulkUpdateMenuResponse>;
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
|
|
96
96
|
interface UpdateExtendedFieldsSignature {
|
|
97
97
|
/**
|
|
98
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).
|
|
@@ -103,7 +103,7 @@ interface UpdateExtendedFieldsSignature {
|
|
|
103
103
|
*/
|
|
104
104
|
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
|
|
105
105
|
}
|
|
106
|
-
|
|
106
|
+
declare function deleteMenu$1(httpClient: HttpClient): DeleteMenuSignature;
|
|
107
107
|
interface DeleteMenuSignature {
|
|
108
108
|
/**
|
|
109
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).
|
|
@@ -113,7 +113,7 @@ interface DeleteMenuSignature {
|
|
|
113
113
|
*/
|
|
114
114
|
(menuId: string): Promise<void>;
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
declare function getMenuSiteUrl$1(httpClient: HttpClient): GetMenuSiteUrlSignature;
|
|
117
117
|
interface GetMenuSiteUrlSignature {
|
|
118
118
|
/**
|
|
119
119
|
* Get menu details and path URL by menu ID.
|
|
@@ -121,19 +121,38 @@ interface GetMenuSiteUrlSignature {
|
|
|
121
121
|
*/
|
|
122
122
|
(_id: string): Promise<GetMenuSiteUrlResponse>;
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
declare function queryMenusSiteUrl$1(httpClient: HttpClient): QueryMenusSiteUrlSignature;
|
|
125
125
|
interface QueryMenusSiteUrlSignature {
|
|
126
126
|
/**
|
|
127
127
|
* Query menu details and path URL
|
|
128
128
|
*/
|
|
129
129
|
(options?: QueryMenusSiteUrlOptions | undefined): Promise<QueryMenusSiteUrlResponse>;
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
declare function duplicateMenu$1(httpClient: HttpClient): DuplicateMenuSignature;
|
|
132
132
|
interface DuplicateMenuSignature {
|
|
133
133
|
/** @param - Menu id to be duplicated. */
|
|
134
134
|
(_id: string, options?: DuplicateMenuOptions | undefined): Promise<DuplicateMenuResponse>;
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BulkCreateMenusOptions, BulkCreateMenusResponse,
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
7
|
interface CreateMenuSignature {
|
|
8
8
|
/**
|
|
9
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).
|
|
@@ -16,7 +16,7 @@ interface CreateMenuSignature {
|
|
|
16
16
|
*/
|
|
17
17
|
(menu: Menu): Promise<Menu>;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
declare function bulkCreateMenus$1(httpClient: HttpClient): BulkCreateMenusSignature;
|
|
20
20
|
interface BulkCreateMenusSignature {
|
|
21
21
|
/**
|
|
22
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).
|
|
@@ -26,7 +26,7 @@ interface BulkCreateMenusSignature {
|
|
|
26
26
|
*/
|
|
27
27
|
(menus: Menu[], options?: BulkCreateMenusOptions | undefined): Promise<BulkCreateMenusResponse>;
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
declare function getMenu$1(httpClient: HttpClient): GetMenuSignature;
|
|
30
30
|
interface GetMenuSignature {
|
|
31
31
|
/**
|
|
32
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).
|
|
@@ -37,7 +37,7 @@ interface GetMenuSignature {
|
|
|
37
37
|
*/
|
|
38
38
|
(menuId: string): Promise<Menu>;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
declare function listMenus$1(httpClient: HttpClient): ListMenusSignature;
|
|
41
41
|
interface ListMenusSignature {
|
|
42
42
|
/**
|
|
43
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).
|
|
@@ -46,7 +46,7 @@ interface ListMenusSignature {
|
|
|
46
46
|
*/
|
|
47
47
|
(options?: ListMenusOptions | undefined): Promise<ListMenusResponse>;
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
declare function queryMenus$1(httpClient: HttpClient): QueryMenusSignature;
|
|
50
50
|
interface QueryMenusSignature {
|
|
51
51
|
/**
|
|
52
52
|
* Creates a query to retrieve a list of menus.
|
|
@@ -65,7 +65,7 @@ interface QueryMenusSignature {
|
|
|
65
65
|
*/
|
|
66
66
|
(): MenusQueryBuilder;
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
declare function updateMenu$1(httpClient: HttpClient): UpdateMenuSignature;
|
|
69
69
|
interface UpdateMenuSignature {
|
|
70
70
|
/**
|
|
71
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).
|
|
@@ -80,7 +80,7 @@ interface UpdateMenuSignature {
|
|
|
80
80
|
*/
|
|
81
81
|
(_id: string, menu: UpdateMenu): Promise<Menu>;
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
declare function bulkUpdateMenu$1(httpClient: HttpClient): BulkUpdateMenuSignature;
|
|
84
84
|
interface BulkUpdateMenuSignature {
|
|
85
85
|
/**
|
|
86
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).
|
|
@@ -92,7 +92,7 @@ interface BulkUpdateMenuSignature {
|
|
|
92
92
|
*/
|
|
93
93
|
(menus: MaskedMenu[], options?: BulkUpdateMenuOptions | undefined): Promise<BulkUpdateMenuResponse>;
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
|
|
96
96
|
interface UpdateExtendedFieldsSignature {
|
|
97
97
|
/**
|
|
98
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).
|
|
@@ -103,7 +103,7 @@ interface UpdateExtendedFieldsSignature {
|
|
|
103
103
|
*/
|
|
104
104
|
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
|
|
105
105
|
}
|
|
106
|
-
|
|
106
|
+
declare function deleteMenu$1(httpClient: HttpClient): DeleteMenuSignature;
|
|
107
107
|
interface DeleteMenuSignature {
|
|
108
108
|
/**
|
|
109
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).
|
|
@@ -113,7 +113,7 @@ interface DeleteMenuSignature {
|
|
|
113
113
|
*/
|
|
114
114
|
(menuId: string): Promise<void>;
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
declare function getMenuSiteUrl$1(httpClient: HttpClient): GetMenuSiteUrlSignature;
|
|
117
117
|
interface GetMenuSiteUrlSignature {
|
|
118
118
|
/**
|
|
119
119
|
* Get menu details and path URL by menu ID.
|
|
@@ -121,19 +121,38 @@ interface GetMenuSiteUrlSignature {
|
|
|
121
121
|
*/
|
|
122
122
|
(_id: string): Promise<GetMenuSiteUrlResponse>;
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
declare function queryMenusSiteUrl$1(httpClient: HttpClient): QueryMenusSiteUrlSignature;
|
|
125
125
|
interface QueryMenusSiteUrlSignature {
|
|
126
126
|
/**
|
|
127
127
|
* Query menu details and path URL
|
|
128
128
|
*/
|
|
129
129
|
(options?: QueryMenusSiteUrlOptions | undefined): Promise<QueryMenusSiteUrlResponse>;
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
declare function duplicateMenu$1(httpClient: HttpClient): DuplicateMenuSignature;
|
|
132
132
|
interface DuplicateMenuSignature {
|
|
133
133
|
/** @param - Menu id to be duplicated. */
|
|
134
134
|
(_id: string, options?: DuplicateMenuOptions | undefined): Promise<DuplicateMenuResponse>;
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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 };
|