@wix/auto_sdk_restaurants_menus 1.0.74 → 1.0.76
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 +11 -33
- package/build/cjs/index.js +38 -1143
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +12 -1117
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +11 -33
- package/build/es/index.mjs +38 -1133
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +12 -1107
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -33
- package/build/internal/cjs/index.js +38 -1143
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +12 -1117
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +11 -33
- package/build/internal/es/index.mjs +38 -1133
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +12 -1107
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -2,16 +2,12 @@ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTF
|
|
|
2
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 duplicateMenu$1(httpClient: HttpClient
|
|
6
|
-
validateRequestSchema?: boolean;
|
|
7
|
-
}): DuplicateMenuSignature;
|
|
5
|
+
declare function duplicateMenu$1(httpClient: HttpClient): DuplicateMenuSignature;
|
|
8
6
|
interface DuplicateMenuSignature {
|
|
9
7
|
/** @param - Menu id to be duplicated. */
|
|
10
8
|
(_id: string, options?: DuplicateMenuOptions): Promise<NonNullablePaths<DuplicateMenuResponse, `menuIds`, 2>>;
|
|
11
9
|
}
|
|
12
|
-
declare function createMenu$1(httpClient: HttpClient
|
|
13
|
-
validateRequestSchema?: boolean;
|
|
14
|
-
}): CreateMenuSignature;
|
|
10
|
+
declare function createMenu$1(httpClient: HttpClient): CreateMenuSignature;
|
|
15
11
|
interface CreateMenuSignature {
|
|
16
12
|
/**
|
|
17
13
|
* > **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).
|
|
@@ -24,9 +20,7 @@ interface CreateMenuSignature {
|
|
|
24
20
|
*/
|
|
25
21
|
(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>>;
|
|
26
22
|
}
|
|
27
|
-
declare function bulkCreateMenus$1(httpClient: HttpClient
|
|
28
|
-
validateRequestSchema?: boolean;
|
|
29
|
-
}): BulkCreateMenusSignature;
|
|
23
|
+
declare function bulkCreateMenus$1(httpClient: HttpClient): BulkCreateMenusSignature;
|
|
30
24
|
interface BulkCreateMenusSignature {
|
|
31
25
|
/**
|
|
32
26
|
* > **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,9 +30,7 @@ interface BulkCreateMenusSignature {
|
|
|
36
30
|
*/
|
|
37
31
|
(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>>;
|
|
38
32
|
}
|
|
39
|
-
declare function getMenu$1(httpClient: HttpClient
|
|
40
|
-
validateRequestSchema?: boolean;
|
|
41
|
-
}): GetMenuSignature;
|
|
33
|
+
declare function getMenu$1(httpClient: HttpClient): GetMenuSignature;
|
|
42
34
|
interface GetMenuSignature {
|
|
43
35
|
/**
|
|
44
36
|
* > **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).
|
|
@@ -49,9 +41,7 @@ interface GetMenuSignature {
|
|
|
49
41
|
*/
|
|
50
42
|
(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>>;
|
|
51
43
|
}
|
|
52
|
-
declare function listMenus$1(httpClient: HttpClient
|
|
53
|
-
validateRequestSchema?: boolean;
|
|
54
|
-
}): ListMenusSignature;
|
|
44
|
+
declare function listMenus$1(httpClient: HttpClient): ListMenusSignature;
|
|
55
45
|
interface ListMenusSignature {
|
|
56
46
|
/**
|
|
57
47
|
* > **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,9 +50,7 @@ interface ListMenusSignature {
|
|
|
60
50
|
*/
|
|
61
51
|
(options?: ListMenusOptions): Promise<NonNullablePaths<ListMenusResponse, `menus` | `menus.${number}.name` | `menus.${number}.seoData.settings.preventAutoRedirect`, 6>>;
|
|
62
52
|
}
|
|
63
|
-
declare function updateMenu$1(httpClient: HttpClient
|
|
64
|
-
validateRequestSchema?: boolean;
|
|
65
|
-
}): UpdateMenuSignature;
|
|
53
|
+
declare function updateMenu$1(httpClient: HttpClient): UpdateMenuSignature;
|
|
66
54
|
interface UpdateMenuSignature {
|
|
67
55
|
/**
|
|
68
56
|
* > **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).
|
|
@@ -77,9 +65,7 @@ interface UpdateMenuSignature {
|
|
|
77
65
|
*/
|
|
78
66
|
(_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>>;
|
|
79
67
|
}
|
|
80
|
-
declare function bulkUpdateMenu$1(httpClient: HttpClient
|
|
81
|
-
validateRequestSchema?: boolean;
|
|
82
|
-
}): BulkUpdateMenuSignature;
|
|
68
|
+
declare function bulkUpdateMenu$1(httpClient: HttpClient): BulkUpdateMenuSignature;
|
|
83
69
|
interface BulkUpdateMenuSignature {
|
|
84
70
|
/**
|
|
85
71
|
* > **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).
|
|
@@ -91,9 +77,7 @@ interface BulkUpdateMenuSignature {
|
|
|
91
77
|
*/
|
|
92
78
|
(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>>;
|
|
93
79
|
}
|
|
94
|
-
declare function updateExtendedFields$1(httpClient: HttpClient
|
|
95
|
-
validateRequestSchema?: boolean;
|
|
96
|
-
}): UpdateExtendedFieldsSignature;
|
|
80
|
+
declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
|
|
97
81
|
interface UpdateExtendedFieldsSignature {
|
|
98
82
|
/**
|
|
99
83
|
* > **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).
|
|
@@ -104,9 +88,7 @@ interface UpdateExtendedFieldsSignature {
|
|
|
104
88
|
*/
|
|
105
89
|
(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, `namespace`, 2>>;
|
|
106
90
|
}
|
|
107
|
-
declare function deleteMenu$1(httpClient: HttpClient
|
|
108
|
-
validateRequestSchema?: boolean;
|
|
109
|
-
}): DeleteMenuSignature;
|
|
91
|
+
declare function deleteMenu$1(httpClient: HttpClient): DeleteMenuSignature;
|
|
110
92
|
interface DeleteMenuSignature {
|
|
111
93
|
/**
|
|
112
94
|
* > **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).
|
|
@@ -116,9 +98,7 @@ interface DeleteMenuSignature {
|
|
|
116
98
|
*/
|
|
117
99
|
(menuId: string): Promise<void>;
|
|
118
100
|
}
|
|
119
|
-
declare function getMenuSiteUrl$1(httpClient: HttpClient
|
|
120
|
-
validateRequestSchema?: boolean;
|
|
121
|
-
}): GetMenuSiteUrlSignature;
|
|
101
|
+
declare function getMenuSiteUrl$1(httpClient: HttpClient): GetMenuSiteUrlSignature;
|
|
122
102
|
interface GetMenuSiteUrlSignature {
|
|
123
103
|
/**
|
|
124
104
|
* Get menu details and path URL by menu ID.
|
|
@@ -126,9 +106,7 @@ interface GetMenuSiteUrlSignature {
|
|
|
126
106
|
*/
|
|
127
107
|
(_id: string): Promise<NonNullablePaths<GetMenuSiteUrlResponse, `menuSiteUrl.path`, 3>>;
|
|
128
108
|
}
|
|
129
|
-
declare function queryMenusSiteUrl$1(httpClient: HttpClient
|
|
130
|
-
validateRequestSchema?: boolean;
|
|
131
|
-
}): QueryMenusSiteUrlSignature;
|
|
109
|
+
declare function queryMenusSiteUrl$1(httpClient: HttpClient): QueryMenusSiteUrlSignature;
|
|
132
110
|
interface QueryMenusSiteUrlSignature {
|
|
133
111
|
/**
|
|
134
112
|
* Query menu details and path URL
|