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