@wix/auto_sdk_restaurants_menus 1.0.72 → 1.0.74
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/index.d.ts +42 -20
- package/build/cjs/index.js +1226 -121
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +216 -216
- package/build/cjs/index.typings.js +1175 -70
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +183 -183
- package/build/cjs/meta.js +44 -44
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +12 -12
- package/build/cjs/schemas.js +16 -16
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +42 -20
- package/build/es/index.mjs +1216 -121
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +216 -216
- package/build/es/index.typings.mjs +1165 -70
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +183 -183
- package/build/es/meta.mjs +44 -44
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +12 -12
- package/build/es/schemas.mjs +16 -16
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +42 -20
- package/build/internal/cjs/index.js +1226 -121
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +216 -216
- package/build/internal/cjs/index.typings.js +1175 -70
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +183 -183
- package/build/internal/cjs/meta.js +44 -44
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +12 -12
- package/build/internal/cjs/schemas.js +16 -16
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +42 -20
- package/build/internal/es/index.mjs +1216 -121
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +216 -216
- package/build/internal/es/index.typings.mjs +1165 -70
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +183 -183
- package/build/internal/es/meta.mjs +44 -44
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +12 -12
- package/build/internal/es/schemas.mjs +16 -16
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { Menu, BulkCreateMenusOptions, BulkCreateMenusResponse, ListMenusOptions, ListMenusResponse, UpdateMenu, MaskedMenu, BulkUpdateMenuOptions, BulkUpdateMenuResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse,
|
|
2
|
+
import { DuplicateMenuOptions, DuplicateMenuResponse, Menu, BulkCreateMenusOptions, BulkCreateMenusResponse, ListMenusOptions, ListMenusResponse, UpdateMenu, MaskedMenu, BulkUpdateMenuOptions, BulkUpdateMenuResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, GetMenuSiteUrlResponse, QueryMenusSiteUrlOptions, QueryMenusSiteUrlResponse, MenuUpdatedEnvelope, MenuCreatedEnvelope, MenuDeletedEnvelope, MenusQueryBuilder, MenuQuery, typedQueryMenus } from './index.typings.js';
|
|
3
3
|
export { AccountInfo, AccountInfoMetadata, ActionEvent, App, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateMenuResult, BulkCreateMenusRequest, BulkMenuResult, BulkUpdateMenuRequest, BusinessLocationDetails, CloneMenusRequest, CloneMenusResponse, CommonQueryWithEntityContext, CreateMenuRequest, CreateMenuResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, DeleteMenuRequest, DeleteMenuResponse, DeleteOrphanSections, DomainEvent, DomainEventBodyOneOf, DuplicateMenuRequest, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReferenceInfo, File, GetMenuRequest, GetMenuResponse, GetMenuSiteUrlRequest, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, Keyword, ListMenusRequest, MenuQuerySpec, MenuSiteUrl, MenusDataCloningCompleted, MenusQueryResult, MessageEnvelope, Page, Pages, QueryMenusRequest, QueryMenusResponse, QueryMenusSiteUrlRequest, RestoreInfo, RunMenusMultiLocationMigrationRequest, RunMenusMultiLocationMigrationResponse, SeoSchema, Settings, SortOrder, SortOrderWithLiterals, Sorting, SyncContentToMultilingualRequest, SyncContentToMultilingualResponse, Tag, URI, URIs, UpdateBusinessLocationIdRequest, UpdateBusinessLocationIdResponse, UpdateExtendedFieldsRequest, UpdateMenuRequest, UpdateMenuResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js';
|
|
4
4
|
|
|
5
|
-
declare function
|
|
5
|
+
declare function duplicateMenu$1(httpClient: HttpClient, __options?: {
|
|
6
|
+
validateRequestSchema?: boolean;
|
|
7
|
+
}): DuplicateMenuSignature;
|
|
8
|
+
interface DuplicateMenuSignature {
|
|
9
|
+
/** @param - Menu id to be duplicated. */
|
|
10
|
+
(_id: string, options?: DuplicateMenuOptions): Promise<NonNullablePaths<DuplicateMenuResponse, `menuIds`, 2>>;
|
|
11
|
+
}
|
|
12
|
+
declare function createMenu$1(httpClient: HttpClient, __options?: {
|
|
13
|
+
validateRequestSchema?: boolean;
|
|
14
|
+
}): CreateMenuSignature;
|
|
6
15
|
interface CreateMenuSignature {
|
|
7
16
|
/**
|
|
8
17
|
* > **Note:** The Menus API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
|
|
@@ -15,7 +24,9 @@ interface CreateMenuSignature {
|
|
|
15
24
|
*/
|
|
16
25
|
(menu: Menu): Promise<NonNullablePaths<Menu, `name` | `sectionIds` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain`, 6>>;
|
|
17
26
|
}
|
|
18
|
-
declare function bulkCreateMenus$1(httpClient: HttpClient
|
|
27
|
+
declare function bulkCreateMenus$1(httpClient: HttpClient, __options?: {
|
|
28
|
+
validateRequestSchema?: boolean;
|
|
29
|
+
}): BulkCreateMenusSignature;
|
|
19
30
|
interface BulkCreateMenusSignature {
|
|
20
31
|
/**
|
|
21
32
|
* > **Note:** The Menu API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
|
|
@@ -25,7 +36,9 @@ interface BulkCreateMenusSignature {
|
|
|
25
36
|
*/
|
|
26
37
|
(menus: Menu[], options?: BulkCreateMenusOptions): Promise<NonNullablePaths<BulkCreateMenusResponse, `results` | `results.${number}.menuMetadata.originalIndex` | `results.${number}.menuMetadata.success` | `results.${number}.menuMetadata.error.code` | `results.${number}.menuMetadata.error.description` | `results.${number}.menu.name` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
27
38
|
}
|
|
28
|
-
declare function getMenu$1(httpClient: HttpClient
|
|
39
|
+
declare function getMenu$1(httpClient: HttpClient, __options?: {
|
|
40
|
+
validateRequestSchema?: boolean;
|
|
41
|
+
}): GetMenuSignature;
|
|
29
42
|
interface GetMenuSignature {
|
|
30
43
|
/**
|
|
31
44
|
* > **Note:** The Menu API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
|
|
@@ -36,7 +49,9 @@ interface GetMenuSignature {
|
|
|
36
49
|
*/
|
|
37
50
|
(menuId: string): Promise<NonNullablePaths<Menu, `name` | `sectionIds` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain`, 6>>;
|
|
38
51
|
}
|
|
39
|
-
declare function listMenus$1(httpClient: HttpClient
|
|
52
|
+
declare function listMenus$1(httpClient: HttpClient, __options?: {
|
|
53
|
+
validateRequestSchema?: boolean;
|
|
54
|
+
}): ListMenusSignature;
|
|
40
55
|
interface ListMenusSignature {
|
|
41
56
|
/**
|
|
42
57
|
* > **Note:** The Menu API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
|
|
@@ -45,7 +60,9 @@ interface ListMenusSignature {
|
|
|
45
60
|
*/
|
|
46
61
|
(options?: ListMenusOptions): Promise<NonNullablePaths<ListMenusResponse, `menus` | `menus.${number}.name` | `menus.${number}.seoData.settings.preventAutoRedirect`, 6>>;
|
|
47
62
|
}
|
|
48
|
-
declare function updateMenu$1(httpClient: HttpClient
|
|
63
|
+
declare function updateMenu$1(httpClient: HttpClient, __options?: {
|
|
64
|
+
validateRequestSchema?: boolean;
|
|
65
|
+
}): UpdateMenuSignature;
|
|
49
66
|
interface UpdateMenuSignature {
|
|
50
67
|
/**
|
|
51
68
|
* > **Note:** The Menu API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
|
|
@@ -60,7 +77,9 @@ interface UpdateMenuSignature {
|
|
|
60
77
|
*/
|
|
61
78
|
(_id: string, menu: NonNullablePaths<UpdateMenu, `revision`, 2>): Promise<NonNullablePaths<Menu, `name` | `sectionIds` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain`, 6>>;
|
|
62
79
|
}
|
|
63
|
-
declare function bulkUpdateMenu$1(httpClient: HttpClient
|
|
80
|
+
declare function bulkUpdateMenu$1(httpClient: HttpClient, __options?: {
|
|
81
|
+
validateRequestSchema?: boolean;
|
|
82
|
+
}): BulkUpdateMenuSignature;
|
|
64
83
|
interface BulkUpdateMenuSignature {
|
|
65
84
|
/**
|
|
66
85
|
* > **Note:** The Menu API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
|
|
@@ -72,7 +91,9 @@ interface BulkUpdateMenuSignature {
|
|
|
72
91
|
*/
|
|
73
92
|
(menus: NonNullablePaths<MaskedMenu, `menu._id` | `menu.revision`, 3>[], options?: BulkUpdateMenuOptions): Promise<NonNullablePaths<BulkUpdateMenuResponse, `results` | `results.${number}.menuMetadata.originalIndex` | `results.${number}.menuMetadata.success` | `results.${number}.menuMetadata.error.code` | `results.${number}.menuMetadata.error.description` | `results.${number}.menu.name` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
74
93
|
}
|
|
75
|
-
declare function updateExtendedFields$1(httpClient: HttpClient
|
|
94
|
+
declare function updateExtendedFields$1(httpClient: HttpClient, __options?: {
|
|
95
|
+
validateRequestSchema?: boolean;
|
|
96
|
+
}): UpdateExtendedFieldsSignature;
|
|
76
97
|
interface UpdateExtendedFieldsSignature {
|
|
77
98
|
/**
|
|
78
99
|
* > **Note:** The Menu API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
|
|
@@ -83,7 +104,9 @@ interface UpdateExtendedFieldsSignature {
|
|
|
83
104
|
*/
|
|
84
105
|
(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, `namespace`, 2>>;
|
|
85
106
|
}
|
|
86
|
-
declare function deleteMenu$1(httpClient: HttpClient
|
|
107
|
+
declare function deleteMenu$1(httpClient: HttpClient, __options?: {
|
|
108
|
+
validateRequestSchema?: boolean;
|
|
109
|
+
}): DeleteMenuSignature;
|
|
87
110
|
interface DeleteMenuSignature {
|
|
88
111
|
/**
|
|
89
112
|
* > **Note:** The Menu API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
|
|
@@ -93,12 +116,9 @@ interface DeleteMenuSignature {
|
|
|
93
116
|
*/
|
|
94
117
|
(menuId: string): Promise<void>;
|
|
95
118
|
}
|
|
96
|
-
declare function
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
(_id: string, options?: DuplicateMenuOptions): Promise<NonNullablePaths<DuplicateMenuResponse, `menuIds`, 2>>;
|
|
100
|
-
}
|
|
101
|
-
declare function getMenuSiteUrl$1(httpClient: HttpClient): GetMenuSiteUrlSignature;
|
|
119
|
+
declare function getMenuSiteUrl$1(httpClient: HttpClient, __options?: {
|
|
120
|
+
validateRequestSchema?: boolean;
|
|
121
|
+
}): GetMenuSiteUrlSignature;
|
|
102
122
|
interface GetMenuSiteUrlSignature {
|
|
103
123
|
/**
|
|
104
124
|
* Get menu details and path URL by menu ID.
|
|
@@ -106,21 +126,24 @@ interface GetMenuSiteUrlSignature {
|
|
|
106
126
|
*/
|
|
107
127
|
(_id: string): Promise<NonNullablePaths<GetMenuSiteUrlResponse, `menuSiteUrl.path`, 3>>;
|
|
108
128
|
}
|
|
109
|
-
declare function queryMenusSiteUrl$1(httpClient: HttpClient
|
|
129
|
+
declare function queryMenusSiteUrl$1(httpClient: HttpClient, __options?: {
|
|
130
|
+
validateRequestSchema?: boolean;
|
|
131
|
+
}): QueryMenusSiteUrlSignature;
|
|
110
132
|
interface QueryMenusSiteUrlSignature {
|
|
111
133
|
/**
|
|
112
134
|
* Query menu details and path URL
|
|
113
135
|
*/
|
|
114
136
|
(options?: QueryMenusSiteUrlOptions): Promise<NonNullablePaths<QueryMenusSiteUrlResponse, `menuSiteUrls` | `menuSiteUrls.${number}.path`, 4>>;
|
|
115
137
|
}
|
|
138
|
+
declare const onMenuUpdated$1: EventDefinition<MenuUpdatedEnvelope, "wix.restaurants.menus.v1.menu_updated">;
|
|
116
139
|
declare const onMenuCreated$1: EventDefinition<MenuCreatedEnvelope, "wix.restaurants.menus.v1.menu_created">;
|
|
117
140
|
declare const onMenuDeleted$1: EventDefinition<MenuDeletedEnvelope, "wix.restaurants.menus.v1.menu_deleted">;
|
|
118
|
-
declare const onMenuUpdated$1: EventDefinition<MenuUpdatedEnvelope, "wix.restaurants.menus.v1.menu_updated">;
|
|
119
141
|
|
|
120
142
|
declare function customQueryMenus(httpClient: HttpClient): {
|
|
121
143
|
(): MenusQueryBuilder;
|
|
122
144
|
(query: MenuQuery): ReturnType<typeof typedQueryMenus>;
|
|
123
145
|
};
|
|
146
|
+
declare const duplicateMenu: MaybeContext<BuildRESTFunction<typeof duplicateMenu$1> & typeof duplicateMenu$1>;
|
|
124
147
|
declare const createMenu: MaybeContext<BuildRESTFunction<typeof createMenu$1> & typeof createMenu$1>;
|
|
125
148
|
declare const bulkCreateMenus: MaybeContext<BuildRESTFunction<typeof bulkCreateMenus$1> & typeof bulkCreateMenus$1>;
|
|
126
149
|
declare const getMenu: MaybeContext<BuildRESTFunction<typeof getMenu$1> & typeof getMenu$1>;
|
|
@@ -129,17 +152,16 @@ declare const updateMenu: MaybeContext<BuildRESTFunction<typeof updateMenu$1> &
|
|
|
129
152
|
declare const bulkUpdateMenu: MaybeContext<BuildRESTFunction<typeof bulkUpdateMenu$1> & typeof bulkUpdateMenu$1>;
|
|
130
153
|
declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
|
|
131
154
|
declare const deleteMenu: MaybeContext<BuildRESTFunction<typeof deleteMenu$1> & typeof deleteMenu$1>;
|
|
132
|
-
declare const duplicateMenu: MaybeContext<BuildRESTFunction<typeof duplicateMenu$1> & typeof duplicateMenu$1>;
|
|
133
155
|
declare const getMenuSiteUrl: MaybeContext<BuildRESTFunction<typeof getMenuSiteUrl$1> & typeof getMenuSiteUrl$1>;
|
|
134
156
|
declare const queryMenusSiteUrl: MaybeContext<BuildRESTFunction<typeof queryMenusSiteUrl$1> & typeof queryMenusSiteUrl$1>;
|
|
135
157
|
declare const queryMenus: MaybeContext<BuildRESTFunction<typeof customQueryMenus> & typeof customQueryMenus>;
|
|
136
158
|
/** */
|
|
159
|
+
declare const onMenuUpdated: BuildEventDefinition<typeof onMenuUpdated$1> & typeof onMenuUpdated$1;
|
|
160
|
+
/** */
|
|
137
161
|
declare const onMenuCreated: BuildEventDefinition<typeof onMenuCreated$1> & typeof onMenuCreated$1;
|
|
138
162
|
/**
|
|
139
163
|
* Triggered when a menu is deleted.
|
|
140
164
|
*/
|
|
141
165
|
declare const onMenuDeleted: BuildEventDefinition<typeof onMenuDeleted$1> & typeof onMenuDeleted$1;
|
|
142
|
-
/** */
|
|
143
|
-
declare const onMenuUpdated: BuildEventDefinition<typeof onMenuUpdated$1> & typeof onMenuUpdated$1;
|
|
144
166
|
|
|
145
167
|
export { BulkCreateMenusOptions, BulkCreateMenusResponse, BulkUpdateMenuOptions, BulkUpdateMenuResponse, DuplicateMenuOptions, DuplicateMenuResponse, GetMenuSiteUrlResponse, ListMenusOptions, ListMenusResponse, MaskedMenu, Menu, MenuCreatedEnvelope, MenuDeletedEnvelope, MenuQuery, MenuUpdatedEnvelope, MenusQueryBuilder, QueryMenusSiteUrlOptions, QueryMenusSiteUrlResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateMenu, bulkCreateMenus, bulkUpdateMenu, createMenu, deleteMenu, duplicateMenu, getMenu, getMenuSiteUrl, listMenus, onMenuCreated, onMenuDeleted, onMenuUpdated, queryMenus, queryMenusSiteUrl, updateExtendedFields, updateMenu };
|