@wix/auto_sdk_restaurants_items 1.0.15 → 1.0.16
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/index.d.mts +162 -0
- package/build/index.d.ts +162 -0
- package/build/index.js +1377 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1327 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +162 -0
- package/build/internal/index.d.ts +162 -0
- package/build/internal/index.js +1377 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1327 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +570 -0
- package/build/internal/meta.d.ts +570 -0
- package/build/internal/meta.js +841 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +803 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/internal/{cjs/src/restaurants-menus-v1-item-items.universal.d.ts → restaurants-menus-v1-item-items.universal-B6tvGMER.d.mts} +200 -419
- package/build/{cjs/src/restaurants-menus-v1-item-items.universal.d.ts → internal/restaurants-menus-v1-item-items.universal-B6tvGMER.d.ts} +200 -419
- package/build/meta.d.mts +570 -0
- package/build/meta.d.ts +570 -0
- package/build/meta.js +841 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +803 -0
- package/build/meta.mjs.map +1 -0
- package/build/{es/src/restaurants-menus-v1-item-items.universal.d.ts → restaurants-menus-v1-item-items.universal-B6tvGMER.d.mts} +200 -419
- package/build/{internal/es/src/restaurants-menus-v1-item-items.universal.d.ts → restaurants-menus-v1-item-items.universal-B6tvGMER.d.ts} +200 -419
- 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-item-items.context.d.ts +0 -28
- package/build/cjs/src/restaurants-menus-v1-item-items.context.js +0 -43
- package/build/cjs/src/restaurants-menus-v1-item-items.context.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-item-items.http.d.ts +0 -88
- package/build/cjs/src/restaurants-menus-v1-item-items.http.js +0 -658
- package/build/cjs/src/restaurants-menus-v1-item-items.http.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-item-items.meta.d.ts +0 -32
- package/build/cjs/src/restaurants-menus-v1-item-items.meta.js +0 -256
- package/build/cjs/src/restaurants-menus-v1-item-items.meta.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-item-items.public.d.ts +0 -143
- package/build/cjs/src/restaurants-menus-v1-item-items.public.js +0 -147
- package/build/cjs/src/restaurants-menus-v1-item-items.public.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-item-items.types.d.ts +0 -1221
- package/build/cjs/src/restaurants-menus-v1-item-items.types.js +0 -96
- package/build/cjs/src/restaurants-menus-v1-item-items.types.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-item-items.universal.js +0 -758
- package/build/cjs/src/restaurants-menus-v1-item-items.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-item-items.context.d.ts +0 -28
- package/build/es/src/restaurants-menus-v1-item-items.context.js +0 -28
- package/build/es/src/restaurants-menus-v1-item-items.context.js.map +0 -1
- package/build/es/src/restaurants-menus-v1-item-items.http.d.ts +0 -88
- package/build/es/src/restaurants-menus-v1-item-items.http.js +0 -643
- package/build/es/src/restaurants-menus-v1-item-items.http.js.map +0 -1
- package/build/es/src/restaurants-menus-v1-item-items.meta.d.ts +0 -32
- package/build/es/src/restaurants-menus-v1-item-items.meta.js +0 -218
- package/build/es/src/restaurants-menus-v1-item-items.meta.js.map +0 -1
- package/build/es/src/restaurants-menus-v1-item-items.public.d.ts +0 -143
- package/build/es/src/restaurants-menus-v1-item-items.public.js +0 -120
- package/build/es/src/restaurants-menus-v1-item-items.public.js.map +0 -1
- package/build/es/src/restaurants-menus-v1-item-items.types.d.ts +0 -1221
- package/build/es/src/restaurants-menus-v1-item-items.types.js +0 -93
- package/build/es/src/restaurants-menus-v1-item-items.types.js.map +0 -1
- package/build/es/src/restaurants-menus-v1-item-items.universal.js +0 -720
- package/build/es/src/restaurants-menus-v1-item-items.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-item-items.context.d.ts +0 -28
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.context.js +0 -43
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.context.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.http.d.ts +0 -88
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.http.js +0 -658
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.http.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.meta.d.ts +0 -32
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.meta.js +0 -256
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.meta.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.public.d.ts +0 -143
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.public.js +0 -147
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.public.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.types.d.ts +0 -1221
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.types.js +0 -96
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.types.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.universal.js +0 -758
- package/build/internal/cjs/src/restaurants-menus-v1-item-items.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-item-items.context.d.ts +0 -28
- package/build/internal/es/src/restaurants-menus-v1-item-items.context.js +0 -28
- package/build/internal/es/src/restaurants-menus-v1-item-items.context.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-item-items.http.d.ts +0 -88
- package/build/internal/es/src/restaurants-menus-v1-item-items.http.js +0 -643
- package/build/internal/es/src/restaurants-menus-v1-item-items.http.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-item-items.meta.d.ts +0 -32
- package/build/internal/es/src/restaurants-menus-v1-item-items.meta.js +0 -218
- package/build/internal/es/src/restaurants-menus-v1-item-items.meta.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-item-items.public.d.ts +0 -143
- package/build/internal/es/src/restaurants-menus-v1-item-items.public.js +0 -120
- package/build/internal/es/src/restaurants-menus-v1-item-items.public.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-item-items.types.d.ts +0 -1221
- package/build/internal/es/src/restaurants-menus-v1-item-items.types.js +0 -93
- package/build/internal/es/src/restaurants-menus-v1-item-items.types.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-item-items.universal.js +0 -720
- package/build/internal/es/src/restaurants-menus-v1-item-items.universal.js.map +0 -1
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { D as DuplicateItemOptions, a as DuplicateItemResponse, I as Item, B as BulkCreateItemsOptions, b as BulkCreateItemsResponse, L as ListItemsOptions, c as ListItemsResponse, d as ItemsQueryBuilder, S as SearchItemsOptions, e as SearchItemsResponse, C as CountItemsOptions, f as CountItemsResponse, U as UpdateItem, M as MaskedItem, g as BulkUpdateItemOptions, h as BulkUpdateItemResponse, i as BulkDeleteItemsResponse } from './restaurants-menus-v1-item-items.universal-B6tvGMER.mjs';
|
|
3
|
+
export { a0 as ActionEvent, a8 as Address, a9 as AddressHint, aT as Aggregation, a_ as AggregationData, aU as AggregationKindOneOf, b4 as AggregationResults, b5 as AggregationResultsResultOneOf, A as AggregationType, as as App, aD as ApplicationError, bo as BaseEventMetadata, aE as BulkActionMetadata, aB as BulkCreateItemResult, aA as BulkCreateItemsRequest, be as BulkDeleteItemResult, bd as BulkDeleteItemsRequest, bn as BulkItemResult, bk as BulkUpdateBusinessLocationIdsPerEntityRequest, bm as BulkUpdateBusinessLocationIdsPerEntityResponse, bh as BulkUpdateBusinessLocationIdsRequest, bi as BulkUpdateBusinessLocationIdsResponse, bj as BulkUpdateBusinessLocationIdsResponseBulkItemResult, b9 as BulkUpdateItemRequest, ba as BulkUpdateItemResponseBulkItemResult, ab as BusinessSchedule, a6 as Categories, ai as ChangeContext, aj as ChangeContextPayloadOneOf, bf as CloneItemsRequest, bg as CloneItemsResponse, ag as ConsentPolicy, b6 as CountItemsRequest, ay as CreateItemRequest, az as CreateItemResponse, aI as CursorPaging, aJ as CursorPagingMetadata, aM as CursorQuery, aN as CursorQueryPagingMethodOneOf, aR as CursorSearch, aS as CursorSearchPagingMethodOneOf, aK as Cursors, k as DayOfWeek, N as DeleteByFilterOperation, K as DeleteByIdsOperation, bb as DeleteItemRequest, bc as DeleteItemResponse, ax as DeleteLocationIdsFromModifierGroups, aw as DeleteLocationIdsFromVariants, J as DocumentImage, H as DocumentPayload, F as DocumentUpdateOperation, V as DomainEvent, X as DomainEventBodyOneOf, x as DuplicateItemRequest, a1 as Empty, Y as EntityCreatedEvent, $ as EntityDeletedEvent, _ as EntityUpdatedEvent, E as Enum, bp as EventMetadata, w as ExtendedFields, av as File, aa as GeoCoordinates, aF as GetItemRequest, aG as GetItemResponse, ao as IdentificationData, ap as IdentificationDataIdOneOf, G as IndexDocument, aq as InvalidateCache, ar as InvalidateCacheGetByOneOf, bq as ItemCreatedEnvelope, br as ItemDeletedEnvelope, bl as ItemIdLocationIds, aC as ItemMetadata, q as ItemPricingOneOf, bs as ItemUpdatedEnvelope, bt as ItemsQueryResult, u as Label, aH as ListItemsRequest, a7 as Locale, an as MessageEnvelope, p as Mode, v as ModifierGroup, ae as Multilingual, O as OrderSettings, at as Page, P as PlacementType, t as PriceInfo, s as PriceVariant, r as PriceVariants, a5 as Properties, ak as PropertiesChange, aL as QueryItemsRequest, aP as QueryItemsResponse, aX as RangeAggregation, b0 as RangeAggregationResult, aV as RangeBucket, b2 as RangeResults, R as ResolutionMethod, Z as RestoreInfo, aY as ScalarAggregation, b3 as ScalarResult, o as ScalarType, aZ as SearchDetails, a2 as SearchIndexingNotification, aQ as SearchItemsRequest, am as SiteCloned, al as SiteCreated, a4 as SitePropertiesEvent, a3 as SitePropertiesNotification, n as SortDirection, l as SortOrder, m as SortType, aO as Sorting, ad as SpecialHourPeriod, j as State, af as SupportedLanguage, ac as TimePeriod, ah as Translation, au as URI, Q as UpdateByFilterOperation, y as UpdateDocumentsEvent, z as UpdateDocumentsEventOperationOneOf, T as UpdateExistingOperation, b7 as UpdateItemRequest, b8 as UpdateItemResponse, aW as ValueAggregation, a$ as ValueAggregationResult, b1 as ValueResults, W as WebhookIdentityType } from './restaurants-menus-v1-item-items.universal-B6tvGMER.mjs';
|
|
4
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
5
|
+
|
|
6
|
+
declare function duplicateItem$1(httpClient: HttpClient): DuplicateItemSignature;
|
|
7
|
+
interface DuplicateItemSignature {
|
|
8
|
+
/** @param - Item id to be duplicated. */
|
|
9
|
+
(_id: string, options?: DuplicateItemOptions | undefined): Promise<DuplicateItemResponse>;
|
|
10
|
+
}
|
|
11
|
+
declare function createItem$1(httpClient: HttpClient): CreateItemSignature;
|
|
12
|
+
interface CreateItemSignature {
|
|
13
|
+
/**
|
|
14
|
+
* > **Note:** The Item 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).
|
|
15
|
+
*
|
|
16
|
+
* Creates an item.
|
|
17
|
+
*
|
|
18
|
+
* To create multiple items at once, use [Bulk Create Items](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item/bulk-create-items).
|
|
19
|
+
* @param - Item details.
|
|
20
|
+
* @returns Item.
|
|
21
|
+
*/
|
|
22
|
+
(item: Item): Promise<Item>;
|
|
23
|
+
}
|
|
24
|
+
declare function bulkCreateItems$1(httpClient: HttpClient): BulkCreateItemsSignature;
|
|
25
|
+
interface BulkCreateItemsSignature {
|
|
26
|
+
/**
|
|
27
|
+
* > **Note:** The Items 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).
|
|
28
|
+
*
|
|
29
|
+
* Creates multiple items at once.
|
|
30
|
+
* @param - Items details.
|
|
31
|
+
*/
|
|
32
|
+
(items: Item[], options?: BulkCreateItemsOptions | undefined): Promise<BulkCreateItemsResponse>;
|
|
33
|
+
}
|
|
34
|
+
declare function getItem$1(httpClient: HttpClient): GetItemSignature;
|
|
35
|
+
interface GetItemSignature {
|
|
36
|
+
/**
|
|
37
|
+
* > **Note:** The Item 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).
|
|
38
|
+
*
|
|
39
|
+
* Retrieves an item by ID.
|
|
40
|
+
* @param - Item ID.
|
|
41
|
+
* @returns Item.
|
|
42
|
+
*/
|
|
43
|
+
(itemId: string): Promise<Item>;
|
|
44
|
+
}
|
|
45
|
+
declare function listItems$1(httpClient: HttpClient): ListItemsSignature;
|
|
46
|
+
interface ListItemsSignature {
|
|
47
|
+
/**
|
|
48
|
+
* > **Note:** The Item 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).
|
|
49
|
+
*
|
|
50
|
+
* Retrieves a list of up to 500 items.
|
|
51
|
+
*/
|
|
52
|
+
(options?: ListItemsOptions | undefined): Promise<ListItemsResponse>;
|
|
53
|
+
}
|
|
54
|
+
declare function queryItems$1(httpClient: HttpClient): QueryItemsSignature;
|
|
55
|
+
interface QueryItemsSignature {
|
|
56
|
+
/**
|
|
57
|
+
* Creates a query to retrieve a list of items.
|
|
58
|
+
*
|
|
59
|
+
* The `queryItems()` function builds a query to retrieve a list of items and returns a `ItemsQueryBuilder` object.
|
|
60
|
+
*
|
|
61
|
+
* The returned object contains the query definition, which is used to run the query using the [`find()`](/items/items-query-builder/find) function.
|
|
62
|
+
*
|
|
63
|
+
* You can refine the query by chaining `ItemsQueryBuilder` functions onto the query. `ItemsQueryBuilder` functions enable you to filter, sort, and control the results that `queryItems()` returns.
|
|
64
|
+
*
|
|
65
|
+
* `queryItems()` runs with the following `ItemsQueryBuilder` defaults, which you can override:
|
|
66
|
+
*
|
|
67
|
+
* * [`limit(500)`](/items/items-query-builder/limit)
|
|
68
|
+
*
|
|
69
|
+
* The following `ItemsQueryBuilder` functions are supported for `queryItems()`. For a full description of the item object, see the object returned for the [`items`](/items/items-query-result/items) property in `ItemsQueryResult`.
|
|
70
|
+
*/
|
|
71
|
+
(): ItemsQueryBuilder;
|
|
72
|
+
}
|
|
73
|
+
declare function searchItems$1(httpClient: HttpClient): SearchItemsSignature;
|
|
74
|
+
interface SearchItemsSignature {
|
|
75
|
+
/**
|
|
76
|
+
* > **Note:** The Item 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).
|
|
77
|
+
*
|
|
78
|
+
* Retrieves a list of items given the provided search options. Up to 500 items can be returned per request.
|
|
79
|
+
*/
|
|
80
|
+
(options?: SearchItemsOptions | undefined): Promise<SearchItemsResponse>;
|
|
81
|
+
}
|
|
82
|
+
declare function countItems$1(httpClient: HttpClient): CountItemsSignature;
|
|
83
|
+
interface CountItemsSignature {
|
|
84
|
+
/**
|
|
85
|
+
* > **Note:** The Item 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).
|
|
86
|
+
*
|
|
87
|
+
* Retrieves the number of items that match a specified filter.
|
|
88
|
+
*
|
|
89
|
+
* If a filter isn't passed in the request, the endpoint returns the count of all items.
|
|
90
|
+
*/
|
|
91
|
+
(options?: CountItemsOptions | undefined): Promise<CountItemsResponse>;
|
|
92
|
+
}
|
|
93
|
+
declare function updateItem$1(httpClient: HttpClient): UpdateItemSignature;
|
|
94
|
+
interface UpdateItemSignature {
|
|
95
|
+
/**
|
|
96
|
+
* > **Note:** The Item 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).
|
|
97
|
+
*
|
|
98
|
+
* Updates an item.
|
|
99
|
+
*
|
|
100
|
+
* To update multiple items at once, use [Bulk Update Item](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item/bulk-update-item)
|
|
101
|
+
*
|
|
102
|
+
* Each time an item is updated, its revision increments by 1. The existing revision must be included when updating the item. This ensures you're working with the latest item information, and it prevents unintended overwrites.
|
|
103
|
+
* @param - Item ID.
|
|
104
|
+
* @returns Updated item.
|
|
105
|
+
*/
|
|
106
|
+
(_id: string, item: UpdateItem): Promise<Item>;
|
|
107
|
+
}
|
|
108
|
+
declare function bulkUpdateItem$1(httpClient: HttpClient): BulkUpdateItemSignature;
|
|
109
|
+
interface BulkUpdateItemSignature {
|
|
110
|
+
/**
|
|
111
|
+
* > **Note:** The Item 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).
|
|
112
|
+
*
|
|
113
|
+
* Updates up to 100 multiple items at once.
|
|
114
|
+
*
|
|
115
|
+
* Each time an item is updated, its revision increments by 1. The existing revision must be included when updating item. This ensures you're working with the latest item information, and it prevents unintended overwrites.
|
|
116
|
+
* @param - Items to update.
|
|
117
|
+
*/
|
|
118
|
+
(items: MaskedItem[], options?: BulkUpdateItemOptions | undefined): Promise<BulkUpdateItemResponse>;
|
|
119
|
+
}
|
|
120
|
+
declare function deleteItem$1(httpClient: HttpClient): DeleteItemSignature;
|
|
121
|
+
interface DeleteItemSignature {
|
|
122
|
+
/**
|
|
123
|
+
* > **Note:** The Item 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).
|
|
124
|
+
*
|
|
125
|
+
* Deletes an item.
|
|
126
|
+
* @param - Item ID.
|
|
127
|
+
*/
|
|
128
|
+
(itemId: string): Promise<void>;
|
|
129
|
+
}
|
|
130
|
+
declare function bulkDeleteItems$1(httpClient: HttpClient): BulkDeleteItemsSignature;
|
|
131
|
+
interface BulkDeleteItemsSignature {
|
|
132
|
+
/**
|
|
133
|
+
* > **Note:** The Item 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).
|
|
134
|
+
*
|
|
135
|
+
* Deletes multiple items at once.
|
|
136
|
+
* @param - Item IDs.
|
|
137
|
+
*/
|
|
138
|
+
(ids: string[]): Promise<BulkDeleteItemsResponse>;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
declare const duplicateItem: MaybeContext<BuildRESTFunction<typeof duplicateItem$1> & typeof duplicateItem$1>;
|
|
142
|
+
declare const createItem: MaybeContext<BuildRESTFunction<typeof createItem$1> & typeof createItem$1>;
|
|
143
|
+
declare const bulkCreateItems: MaybeContext<BuildRESTFunction<typeof bulkCreateItems$1> & typeof bulkCreateItems$1>;
|
|
144
|
+
declare const getItem: MaybeContext<BuildRESTFunction<typeof getItem$1> & typeof getItem$1>;
|
|
145
|
+
declare const listItems: MaybeContext<BuildRESTFunction<typeof listItems$1> & typeof listItems$1>;
|
|
146
|
+
declare const queryItems: MaybeContext<BuildRESTFunction<typeof queryItems$1> & typeof queryItems$1>;
|
|
147
|
+
declare const searchItems: MaybeContext<BuildRESTFunction<typeof searchItems$1> & typeof searchItems$1>;
|
|
148
|
+
declare const countItems: MaybeContext<BuildRESTFunction<typeof countItems$1> & typeof countItems$1>;
|
|
149
|
+
declare const updateItem: MaybeContext<BuildRESTFunction<typeof updateItem$1> & typeof updateItem$1>;
|
|
150
|
+
declare const bulkUpdateItem: MaybeContext<BuildRESTFunction<typeof bulkUpdateItem$1> & typeof bulkUpdateItem$1>;
|
|
151
|
+
declare const deleteItem: MaybeContext<BuildRESTFunction<typeof deleteItem$1> & typeof deleteItem$1>;
|
|
152
|
+
declare const bulkDeleteItems: MaybeContext<BuildRESTFunction<typeof bulkDeleteItems$1> & typeof bulkDeleteItems$1>;
|
|
153
|
+
/** */
|
|
154
|
+
declare const onItemCreated: ReturnType<typeof createEventModule<typeof publicOnItemCreated>>;
|
|
155
|
+
/** */
|
|
156
|
+
declare const onItemDeleted: ReturnType<typeof createEventModule<typeof publicOnItemDeleted>>;
|
|
157
|
+
/**
|
|
158
|
+
* Triggered when an item is updated.
|
|
159
|
+
*/
|
|
160
|
+
declare const onItemUpdated: ReturnType<typeof createEventModule<typeof publicOnItemUpdated>>;
|
|
161
|
+
|
|
162
|
+
export { BulkCreateItemsOptions, BulkCreateItemsResponse, BulkDeleteItemsResponse, BulkUpdateItemOptions, BulkUpdateItemResponse, CountItemsOptions, CountItemsResponse, DuplicateItemOptions, DuplicateItemResponse, Item, ItemsQueryBuilder, ListItemsOptions, ListItemsResponse, MaskedItem, SearchItemsOptions, SearchItemsResponse, UpdateItem, bulkCreateItems, bulkDeleteItems, bulkUpdateItem, countItems, createItem, deleteItem, duplicateItem, getItem, listItems, onItemCreated, onItemDeleted, onItemUpdated, queryItems, searchItems, updateItem };
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { D as DuplicateItemOptions, a as DuplicateItemResponse, I as Item, B as BulkCreateItemsOptions, b as BulkCreateItemsResponse, L as ListItemsOptions, c as ListItemsResponse, d as ItemsQueryBuilder, S as SearchItemsOptions, e as SearchItemsResponse, C as CountItemsOptions, f as CountItemsResponse, U as UpdateItem, M as MaskedItem, g as BulkUpdateItemOptions, h as BulkUpdateItemResponse, i as BulkDeleteItemsResponse } from './restaurants-menus-v1-item-items.universal-B6tvGMER.js';
|
|
3
|
+
export { a0 as ActionEvent, a8 as Address, a9 as AddressHint, aT as Aggregation, a_ as AggregationData, aU as AggregationKindOneOf, b4 as AggregationResults, b5 as AggregationResultsResultOneOf, A as AggregationType, as as App, aD as ApplicationError, bo as BaseEventMetadata, aE as BulkActionMetadata, aB as BulkCreateItemResult, aA as BulkCreateItemsRequest, be as BulkDeleteItemResult, bd as BulkDeleteItemsRequest, bn as BulkItemResult, bk as BulkUpdateBusinessLocationIdsPerEntityRequest, bm as BulkUpdateBusinessLocationIdsPerEntityResponse, bh as BulkUpdateBusinessLocationIdsRequest, bi as BulkUpdateBusinessLocationIdsResponse, bj as BulkUpdateBusinessLocationIdsResponseBulkItemResult, b9 as BulkUpdateItemRequest, ba as BulkUpdateItemResponseBulkItemResult, ab as BusinessSchedule, a6 as Categories, ai as ChangeContext, aj as ChangeContextPayloadOneOf, bf as CloneItemsRequest, bg as CloneItemsResponse, ag as ConsentPolicy, b6 as CountItemsRequest, ay as CreateItemRequest, az as CreateItemResponse, aI as CursorPaging, aJ as CursorPagingMetadata, aM as CursorQuery, aN as CursorQueryPagingMethodOneOf, aR as CursorSearch, aS as CursorSearchPagingMethodOneOf, aK as Cursors, k as DayOfWeek, N as DeleteByFilterOperation, K as DeleteByIdsOperation, bb as DeleteItemRequest, bc as DeleteItemResponse, ax as DeleteLocationIdsFromModifierGroups, aw as DeleteLocationIdsFromVariants, J as DocumentImage, H as DocumentPayload, F as DocumentUpdateOperation, V as DomainEvent, X as DomainEventBodyOneOf, x as DuplicateItemRequest, a1 as Empty, Y as EntityCreatedEvent, $ as EntityDeletedEvent, _ as EntityUpdatedEvent, E as Enum, bp as EventMetadata, w as ExtendedFields, av as File, aa as GeoCoordinates, aF as GetItemRequest, aG as GetItemResponse, ao as IdentificationData, ap as IdentificationDataIdOneOf, G as IndexDocument, aq as InvalidateCache, ar as InvalidateCacheGetByOneOf, bq as ItemCreatedEnvelope, br as ItemDeletedEnvelope, bl as ItemIdLocationIds, aC as ItemMetadata, q as ItemPricingOneOf, bs as ItemUpdatedEnvelope, bt as ItemsQueryResult, u as Label, aH as ListItemsRequest, a7 as Locale, an as MessageEnvelope, p as Mode, v as ModifierGroup, ae as Multilingual, O as OrderSettings, at as Page, P as PlacementType, t as PriceInfo, s as PriceVariant, r as PriceVariants, a5 as Properties, ak as PropertiesChange, aL as QueryItemsRequest, aP as QueryItemsResponse, aX as RangeAggregation, b0 as RangeAggregationResult, aV as RangeBucket, b2 as RangeResults, R as ResolutionMethod, Z as RestoreInfo, aY as ScalarAggregation, b3 as ScalarResult, o as ScalarType, aZ as SearchDetails, a2 as SearchIndexingNotification, aQ as SearchItemsRequest, am as SiteCloned, al as SiteCreated, a4 as SitePropertiesEvent, a3 as SitePropertiesNotification, n as SortDirection, l as SortOrder, m as SortType, aO as Sorting, ad as SpecialHourPeriod, j as State, af as SupportedLanguage, ac as TimePeriod, ah as Translation, au as URI, Q as UpdateByFilterOperation, y as UpdateDocumentsEvent, z as UpdateDocumentsEventOperationOneOf, T as UpdateExistingOperation, b7 as UpdateItemRequest, b8 as UpdateItemResponse, aW as ValueAggregation, a$ as ValueAggregationResult, b1 as ValueResults, W as WebhookIdentityType } from './restaurants-menus-v1-item-items.universal-B6tvGMER.js';
|
|
4
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
5
|
+
|
|
6
|
+
declare function duplicateItem$1(httpClient: HttpClient): DuplicateItemSignature;
|
|
7
|
+
interface DuplicateItemSignature {
|
|
8
|
+
/** @param - Item id to be duplicated. */
|
|
9
|
+
(_id: string, options?: DuplicateItemOptions | undefined): Promise<DuplicateItemResponse>;
|
|
10
|
+
}
|
|
11
|
+
declare function createItem$1(httpClient: HttpClient): CreateItemSignature;
|
|
12
|
+
interface CreateItemSignature {
|
|
13
|
+
/**
|
|
14
|
+
* > **Note:** The Item 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).
|
|
15
|
+
*
|
|
16
|
+
* Creates an item.
|
|
17
|
+
*
|
|
18
|
+
* To create multiple items at once, use [Bulk Create Items](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item/bulk-create-items).
|
|
19
|
+
* @param - Item details.
|
|
20
|
+
* @returns Item.
|
|
21
|
+
*/
|
|
22
|
+
(item: Item): Promise<Item>;
|
|
23
|
+
}
|
|
24
|
+
declare function bulkCreateItems$1(httpClient: HttpClient): BulkCreateItemsSignature;
|
|
25
|
+
interface BulkCreateItemsSignature {
|
|
26
|
+
/**
|
|
27
|
+
* > **Note:** The Items 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).
|
|
28
|
+
*
|
|
29
|
+
* Creates multiple items at once.
|
|
30
|
+
* @param - Items details.
|
|
31
|
+
*/
|
|
32
|
+
(items: Item[], options?: BulkCreateItemsOptions | undefined): Promise<BulkCreateItemsResponse>;
|
|
33
|
+
}
|
|
34
|
+
declare function getItem$1(httpClient: HttpClient): GetItemSignature;
|
|
35
|
+
interface GetItemSignature {
|
|
36
|
+
/**
|
|
37
|
+
* > **Note:** The Item 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).
|
|
38
|
+
*
|
|
39
|
+
* Retrieves an item by ID.
|
|
40
|
+
* @param - Item ID.
|
|
41
|
+
* @returns Item.
|
|
42
|
+
*/
|
|
43
|
+
(itemId: string): Promise<Item>;
|
|
44
|
+
}
|
|
45
|
+
declare function listItems$1(httpClient: HttpClient): ListItemsSignature;
|
|
46
|
+
interface ListItemsSignature {
|
|
47
|
+
/**
|
|
48
|
+
* > **Note:** The Item 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).
|
|
49
|
+
*
|
|
50
|
+
* Retrieves a list of up to 500 items.
|
|
51
|
+
*/
|
|
52
|
+
(options?: ListItemsOptions | undefined): Promise<ListItemsResponse>;
|
|
53
|
+
}
|
|
54
|
+
declare function queryItems$1(httpClient: HttpClient): QueryItemsSignature;
|
|
55
|
+
interface QueryItemsSignature {
|
|
56
|
+
/**
|
|
57
|
+
* Creates a query to retrieve a list of items.
|
|
58
|
+
*
|
|
59
|
+
* The `queryItems()` function builds a query to retrieve a list of items and returns a `ItemsQueryBuilder` object.
|
|
60
|
+
*
|
|
61
|
+
* The returned object contains the query definition, which is used to run the query using the [`find()`](/items/items-query-builder/find) function.
|
|
62
|
+
*
|
|
63
|
+
* You can refine the query by chaining `ItemsQueryBuilder` functions onto the query. `ItemsQueryBuilder` functions enable you to filter, sort, and control the results that `queryItems()` returns.
|
|
64
|
+
*
|
|
65
|
+
* `queryItems()` runs with the following `ItemsQueryBuilder` defaults, which you can override:
|
|
66
|
+
*
|
|
67
|
+
* * [`limit(500)`](/items/items-query-builder/limit)
|
|
68
|
+
*
|
|
69
|
+
* The following `ItemsQueryBuilder` functions are supported for `queryItems()`. For a full description of the item object, see the object returned for the [`items`](/items/items-query-result/items) property in `ItemsQueryResult`.
|
|
70
|
+
*/
|
|
71
|
+
(): ItemsQueryBuilder;
|
|
72
|
+
}
|
|
73
|
+
declare function searchItems$1(httpClient: HttpClient): SearchItemsSignature;
|
|
74
|
+
interface SearchItemsSignature {
|
|
75
|
+
/**
|
|
76
|
+
* > **Note:** The Item 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).
|
|
77
|
+
*
|
|
78
|
+
* Retrieves a list of items given the provided search options. Up to 500 items can be returned per request.
|
|
79
|
+
*/
|
|
80
|
+
(options?: SearchItemsOptions | undefined): Promise<SearchItemsResponse>;
|
|
81
|
+
}
|
|
82
|
+
declare function countItems$1(httpClient: HttpClient): CountItemsSignature;
|
|
83
|
+
interface CountItemsSignature {
|
|
84
|
+
/**
|
|
85
|
+
* > **Note:** The Item 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).
|
|
86
|
+
*
|
|
87
|
+
* Retrieves the number of items that match a specified filter.
|
|
88
|
+
*
|
|
89
|
+
* If a filter isn't passed in the request, the endpoint returns the count of all items.
|
|
90
|
+
*/
|
|
91
|
+
(options?: CountItemsOptions | undefined): Promise<CountItemsResponse>;
|
|
92
|
+
}
|
|
93
|
+
declare function updateItem$1(httpClient: HttpClient): UpdateItemSignature;
|
|
94
|
+
interface UpdateItemSignature {
|
|
95
|
+
/**
|
|
96
|
+
* > **Note:** The Item 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).
|
|
97
|
+
*
|
|
98
|
+
* Updates an item.
|
|
99
|
+
*
|
|
100
|
+
* To update multiple items at once, use [Bulk Update Item](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item/bulk-update-item)
|
|
101
|
+
*
|
|
102
|
+
* Each time an item is updated, its revision increments by 1. The existing revision must be included when updating the item. This ensures you're working with the latest item information, and it prevents unintended overwrites.
|
|
103
|
+
* @param - Item ID.
|
|
104
|
+
* @returns Updated item.
|
|
105
|
+
*/
|
|
106
|
+
(_id: string, item: UpdateItem): Promise<Item>;
|
|
107
|
+
}
|
|
108
|
+
declare function bulkUpdateItem$1(httpClient: HttpClient): BulkUpdateItemSignature;
|
|
109
|
+
interface BulkUpdateItemSignature {
|
|
110
|
+
/**
|
|
111
|
+
* > **Note:** The Item 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).
|
|
112
|
+
*
|
|
113
|
+
* Updates up to 100 multiple items at once.
|
|
114
|
+
*
|
|
115
|
+
* Each time an item is updated, its revision increments by 1. The existing revision must be included when updating item. This ensures you're working with the latest item information, and it prevents unintended overwrites.
|
|
116
|
+
* @param - Items to update.
|
|
117
|
+
*/
|
|
118
|
+
(items: MaskedItem[], options?: BulkUpdateItemOptions | undefined): Promise<BulkUpdateItemResponse>;
|
|
119
|
+
}
|
|
120
|
+
declare function deleteItem$1(httpClient: HttpClient): DeleteItemSignature;
|
|
121
|
+
interface DeleteItemSignature {
|
|
122
|
+
/**
|
|
123
|
+
* > **Note:** The Item 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).
|
|
124
|
+
*
|
|
125
|
+
* Deletes an item.
|
|
126
|
+
* @param - Item ID.
|
|
127
|
+
*/
|
|
128
|
+
(itemId: string): Promise<void>;
|
|
129
|
+
}
|
|
130
|
+
declare function bulkDeleteItems$1(httpClient: HttpClient): BulkDeleteItemsSignature;
|
|
131
|
+
interface BulkDeleteItemsSignature {
|
|
132
|
+
/**
|
|
133
|
+
* > **Note:** The Item 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).
|
|
134
|
+
*
|
|
135
|
+
* Deletes multiple items at once.
|
|
136
|
+
* @param - Item IDs.
|
|
137
|
+
*/
|
|
138
|
+
(ids: string[]): Promise<BulkDeleteItemsResponse>;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
declare const duplicateItem: MaybeContext<BuildRESTFunction<typeof duplicateItem$1> & typeof duplicateItem$1>;
|
|
142
|
+
declare const createItem: MaybeContext<BuildRESTFunction<typeof createItem$1> & typeof createItem$1>;
|
|
143
|
+
declare const bulkCreateItems: MaybeContext<BuildRESTFunction<typeof bulkCreateItems$1> & typeof bulkCreateItems$1>;
|
|
144
|
+
declare const getItem: MaybeContext<BuildRESTFunction<typeof getItem$1> & typeof getItem$1>;
|
|
145
|
+
declare const listItems: MaybeContext<BuildRESTFunction<typeof listItems$1> & typeof listItems$1>;
|
|
146
|
+
declare const queryItems: MaybeContext<BuildRESTFunction<typeof queryItems$1> & typeof queryItems$1>;
|
|
147
|
+
declare const searchItems: MaybeContext<BuildRESTFunction<typeof searchItems$1> & typeof searchItems$1>;
|
|
148
|
+
declare const countItems: MaybeContext<BuildRESTFunction<typeof countItems$1> & typeof countItems$1>;
|
|
149
|
+
declare const updateItem: MaybeContext<BuildRESTFunction<typeof updateItem$1> & typeof updateItem$1>;
|
|
150
|
+
declare const bulkUpdateItem: MaybeContext<BuildRESTFunction<typeof bulkUpdateItem$1> & typeof bulkUpdateItem$1>;
|
|
151
|
+
declare const deleteItem: MaybeContext<BuildRESTFunction<typeof deleteItem$1> & typeof deleteItem$1>;
|
|
152
|
+
declare const bulkDeleteItems: MaybeContext<BuildRESTFunction<typeof bulkDeleteItems$1> & typeof bulkDeleteItems$1>;
|
|
153
|
+
/** */
|
|
154
|
+
declare const onItemCreated: ReturnType<typeof createEventModule<typeof publicOnItemCreated>>;
|
|
155
|
+
/** */
|
|
156
|
+
declare const onItemDeleted: ReturnType<typeof createEventModule<typeof publicOnItemDeleted>>;
|
|
157
|
+
/**
|
|
158
|
+
* Triggered when an item is updated.
|
|
159
|
+
*/
|
|
160
|
+
declare const onItemUpdated: ReturnType<typeof createEventModule<typeof publicOnItemUpdated>>;
|
|
161
|
+
|
|
162
|
+
export { BulkCreateItemsOptions, BulkCreateItemsResponse, BulkDeleteItemsResponse, BulkUpdateItemOptions, BulkUpdateItemResponse, CountItemsOptions, CountItemsResponse, DuplicateItemOptions, DuplicateItemResponse, Item, ItemsQueryBuilder, ListItemsOptions, ListItemsResponse, MaskedItem, SearchItemsOptions, SearchItemsResponse, UpdateItem, bulkCreateItems, bulkDeleteItems, bulkUpdateItem, countItems, createItem, deleteItem, duplicateItem, getItem, listItems, onItemCreated, onItemDeleted, onItemUpdated, queryItems, searchItems, updateItem };
|