@wix/auto_sdk_restaurants_menus 1.0.27 → 1.0.29
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 +20 -13
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{restaurants-menus-v1-menu-menus.universal-B1THG8Sh.d.ts → index.typings.d.ts} +215 -1
- package/build/cjs/index.typings.js +1007 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +20 -13
- package/build/es/index.mjs.map +1 -1
- package/build/es/{restaurants-menus-v1-menu-menus.universal-B1THG8Sh.d.mts → index.typings.d.mts} +215 -1
- package/build/es/index.typings.mjs +970 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +20 -13
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{restaurants-menus-v1-menu-menus.universal-B1THG8Sh.d.ts → index.typings.d.ts} +215 -1
- package/build/internal/cjs/index.typings.js +1007 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +20 -13
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{restaurants-menus-v1-menu-menus.universal-B1THG8Sh.d.mts → index.typings.d.mts} +215 -1
- package/build/internal/es/index.typings.mjs +970 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { Menu, BulkCreateMenusOptions, BulkCreateMenusResponse, ListMenusOptions, ListMenusResponse, MenusQueryBuilder, UpdateMenu, MaskedMenu, BulkUpdateMenuOptions, BulkUpdateMenuResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, GetMenuSiteUrlResponse, QueryMenusSiteUrlOptions, QueryMenusSiteUrlResponse, DuplicateMenuOptions, DuplicateMenuResponse, MenuCreatedEnvelope, MenuDeletedEnvelope, MenuUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, App, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateMenuResult, BulkCreateMenusRequest, BulkMenuResult, BulkUpdateMenuRequest, BusinessLocationDetails, CloneMenusRequest, CloneMenusResponse, CreateMenuRequest, CreateMenuResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, DeleteMenuRequest, DeleteMenuResponse, DeleteOrphanSections, DomainEvent, DomainEventBodyOneOf, DuplicateMenuRequest, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, File, GetMenuRequest, GetMenuResponse, GetMenuSiteUrlRequest, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, Keyword, ListMenusRequest, MenuSiteUrl, MenusDataCloningCompleted, MenusQueryResult, MessageEnvelope, Page, QueryMenusRequest, QueryMenusResponse, QueryMenusSiteUrlRequest, RestoreInfo, RunMenusMultiLocationMigrationRequest, RunMenusMultiLocationMigrationResponse, SeoSchema, Settings, SortOrder, Sorting, Tag, URI, UpdateBusinessLocationIdRequest, UpdateBusinessLocationIdResponse, UpdateExtendedFieldsRequest, UpdateMenuRequest, UpdateMenuResponse, WebhookIdentityType } from './index.typings.js';
|
|
4
4
|
|
|
5
|
+
type MenuNonNullablePaths = `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`;
|
|
5
6
|
declare function createMenu$1(httpClient: HttpClient): CreateMenuSignature;
|
|
6
7
|
interface CreateMenuSignature {
|
|
7
8
|
/**
|
|
@@ -13,7 +14,7 @@ interface CreateMenuSignature {
|
|
|
13
14
|
* @param - Menu details.
|
|
14
15
|
* @returns Menu.
|
|
15
16
|
*/
|
|
16
|
-
(menu: Menu): Promise<Menu
|
|
17
|
+
(menu: Menu): Promise<NonNullablePaths<Menu, MenuNonNullablePaths>>;
|
|
17
18
|
}
|
|
18
19
|
declare function bulkCreateMenus$1(httpClient: HttpClient): BulkCreateMenusSignature;
|
|
19
20
|
interface BulkCreateMenusSignature {
|
|
@@ -23,7 +24,9 @@ interface BulkCreateMenusSignature {
|
|
|
23
24
|
* Creates multiple menus at once.
|
|
24
25
|
* @param - Menu details.
|
|
25
26
|
*/
|
|
26
|
-
(menus: Menu[], options?: BulkCreateMenusOptions
|
|
27
|
+
(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` | {
|
|
28
|
+
[P in MenuNonNullablePaths]: `results.${number}.menu.${P}`;
|
|
29
|
+
}[MenuNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
27
30
|
}
|
|
28
31
|
declare function getMenu$1(httpClient: HttpClient): GetMenuSignature;
|
|
29
32
|
interface GetMenuSignature {
|
|
@@ -34,7 +37,7 @@ interface GetMenuSignature {
|
|
|
34
37
|
* @param - Menu ID.
|
|
35
38
|
* @returns Menu.
|
|
36
39
|
*/
|
|
37
|
-
(menuId: string): Promise<Menu
|
|
40
|
+
(menuId: string): Promise<NonNullablePaths<Menu, MenuNonNullablePaths>>;
|
|
38
41
|
}
|
|
39
42
|
declare function listMenus$1(httpClient: HttpClient): ListMenusSignature;
|
|
40
43
|
interface ListMenusSignature {
|
|
@@ -43,7 +46,9 @@ interface ListMenusSignature {
|
|
|
43
46
|
*
|
|
44
47
|
* Retrieves a list of up to 500 menus.
|
|
45
48
|
*/
|
|
46
|
-
(options?: ListMenusOptions
|
|
49
|
+
(options?: ListMenusOptions): Promise<NonNullablePaths<ListMenusResponse, {
|
|
50
|
+
[P in MenuNonNullablePaths]: `menus.${number}.${P}`;
|
|
51
|
+
}[MenuNonNullablePaths]>>;
|
|
47
52
|
}
|
|
48
53
|
declare function queryMenus$1(httpClient: HttpClient): QueryMenusSignature;
|
|
49
54
|
interface QueryMenusSignature {
|
|
@@ -77,7 +82,7 @@ interface UpdateMenuSignature {
|
|
|
77
82
|
* @param - Menu ID.
|
|
78
83
|
* @returns Updated menu.
|
|
79
84
|
*/
|
|
80
|
-
(_id: string, menu: UpdateMenu): Promise<Menu
|
|
85
|
+
(_id: string, menu: NonNullablePaths<UpdateMenu, `revision`>): Promise<NonNullablePaths<Menu, MenuNonNullablePaths>>;
|
|
81
86
|
}
|
|
82
87
|
declare function bulkUpdateMenu$1(httpClient: HttpClient): BulkUpdateMenuSignature;
|
|
83
88
|
interface BulkUpdateMenuSignature {
|
|
@@ -89,7 +94,9 @@ interface BulkUpdateMenuSignature {
|
|
|
89
94
|
* 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.
|
|
90
95
|
* @param - Menus to update.
|
|
91
96
|
*/
|
|
92
|
-
(menus: MaskedMenu[], options?: BulkUpdateMenuOptions
|
|
97
|
+
(menus: NonNullablePaths<MaskedMenu, `menu._id` | `menu.revision`>[], options?: BulkUpdateMenuOptions): Promise<NonNullablePaths<BulkUpdateMenuResponse, `results` | `results.${number}.menuMetadata.originalIndex` | `results.${number}.menuMetadata.success` | `results.${number}.menuMetadata.error.code` | `results.${number}.menuMetadata.error.description` | {
|
|
98
|
+
[P in MenuNonNullablePaths]: `results.${number}.menu.${P}`;
|
|
99
|
+
}[MenuNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
93
100
|
}
|
|
94
101
|
declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
|
|
95
102
|
interface UpdateExtendedFieldsSignature {
|
|
@@ -100,7 +107,7 @@ interface UpdateExtendedFieldsSignature {
|
|
|
100
107
|
* @param - ID of the entity to update.
|
|
101
108
|
* @param - Identifier for the app whose extended fields are being updated.
|
|
102
109
|
*/
|
|
103
|
-
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse
|
|
110
|
+
(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, `namespace`>>;
|
|
104
111
|
}
|
|
105
112
|
declare function deleteMenu$1(httpClient: HttpClient): DeleteMenuSignature;
|
|
106
113
|
interface DeleteMenuSignature {
|
|
@@ -118,19 +125,19 @@ interface GetMenuSiteUrlSignature {
|
|
|
118
125
|
* Get menu details and path URL by menu ID.
|
|
119
126
|
* @param - Menu ID.
|
|
120
127
|
*/
|
|
121
|
-
(_id: string): Promise<GetMenuSiteUrlResponse
|
|
128
|
+
(_id: string): Promise<NonNullablePaths<GetMenuSiteUrlResponse, `menuSiteUrl.path`>>;
|
|
122
129
|
}
|
|
123
130
|
declare function queryMenusSiteUrl$1(httpClient: HttpClient): QueryMenusSiteUrlSignature;
|
|
124
131
|
interface QueryMenusSiteUrlSignature {
|
|
125
132
|
/**
|
|
126
133
|
* Query menu details and path URL
|
|
127
134
|
*/
|
|
128
|
-
(options?: QueryMenusSiteUrlOptions
|
|
135
|
+
(options?: QueryMenusSiteUrlOptions): Promise<NonNullablePaths<QueryMenusSiteUrlResponse, `menuSiteUrls` | `menuSiteUrls.${number}.path`>>;
|
|
129
136
|
}
|
|
130
137
|
declare function duplicateMenu$1(httpClient: HttpClient): DuplicateMenuSignature;
|
|
131
138
|
interface DuplicateMenuSignature {
|
|
132
139
|
/** @param - Menu id to be duplicated. */
|
|
133
|
-
(_id: string, options?: DuplicateMenuOptions
|
|
140
|
+
(_id: string, options?: DuplicateMenuOptions): Promise<NonNullablePaths<DuplicateMenuResponse, `menuIds`>>;
|
|
134
141
|
}
|
|
135
142
|
declare const onMenuCreated$1: EventDefinition<MenuCreatedEnvelope, "wix.restaurants.menus.v1.menu_created">;
|
|
136
143
|
declare const onMenuDeleted$1: EventDefinition<MenuDeletedEnvelope, "wix.restaurants.menus.v1.menu_deleted">;
|