@wix/auto_sdk_restaurants_item-modifiers 1.0.64 → 1.0.66

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.
@@ -2,10 +2,12 @@ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTF
2
2
  import { Modifier, ListModifiersOptions, ListModifiersResponse, UpdateModifier, BulkCreateModifiersOptions, BulkCreateModifiersResponse, MaskedModifier, BulkUpdateModifiersOptions, BulkUpdateModifiersResponse, CountModifiersOptions, CountModifiersResponse, CountModifiersApplicationErrors, BulkDeleteModifiersResponse, ItemModifierCreatedEnvelope, ItemModifierDeletedEnvelope, ItemModifierUpdatedEnvelope, ModifiersQueryBuilder, ModifierQuery, typedQueryModifiers } from './index.typings.js';
3
3
  export { AccountInfo, AccountInfoMetadata, ActionEvent, App, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateModifierResult, BulkCreateModifiersRequest, BulkDeleteModifiersRequest, BulkDeleteModifiersResult, BulkItemResult, BulkUpdateAttachedToOrphanItemRequest, BulkUpdateAttachedToOrphanItemResponse, BulkUpdateBusinessLocationIdsPerEntityRequest, BulkUpdateBusinessLocationIdsPerEntityResponse, BulkUpdateBusinessLocationIdsPerEntityResponseBulkItemResult, BulkUpdateBusinessLocationIdsRequest, BulkUpdateBusinessLocationIdsResponse, BulkUpdateBusinessLocationIdsResponseBulkItemResult, BulkUpdateModifierResult, BulkUpdateModifiersRequest, CloneModifiersRequest, CloneModifiersResponse, CommonQueryWithEntityContext, CountModifiersRequest, CreateModifierRequest, CreateModifierResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, DeleteModifierRequest, DeleteModifierResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReferenceInfo, File, GetModifierRequest, GetModifierResponse, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, ListModifiersRequest, MessageEnvelope, ModifierIdAttachedToOrphanItem, ModifierIdLocationIds, ModifierQuerySpec, ModifiersQueryResult, Page, Pages, QueryModifiersRequest, QueryModifiersResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, SyncContentToMultilingualRequest, SyncContentToMultilingualResponse, URI, URIs, UpdateModifierRequest, UpdateModifierResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js';
4
4
 
5
- declare function createModifier$1(httpClient: HttpClient): CreateModifierSignature;
5
+ declare function createModifier$1(httpClient: HttpClient, __options?: {
6
+ validateRequestSchema?: boolean;
7
+ }): CreateModifierSignature;
6
8
  interface CreateModifierSignature {
7
9
  /**
8
- * > **Note:** The Item Modifiers 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).
10
+ * > **Note:** The Item Modifiers 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).
9
11
  *
10
12
  * Creates an item modifier.
11
13
  *
@@ -15,10 +17,12 @@ interface CreateModifierSignature {
15
17
  */
16
18
  (modifier: NonNullablePaths<Modifier, `name`, 2>): Promise<NonNullablePaths<Modifier, `businessLocationIds`, 2>>;
17
19
  }
18
- declare function getModifier$1(httpClient: HttpClient): GetModifierSignature;
20
+ declare function getModifier$1(httpClient: HttpClient, __options?: {
21
+ validateRequestSchema?: boolean;
22
+ }): GetModifierSignature;
19
23
  interface GetModifierSignature {
20
24
  /**
21
- * > **Note:** The Item Modifier 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).
25
+ * > **Note:** The Item Modifier 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).
22
26
  *
23
27
  * Retrieves an item modifier by ID.
24
28
  * @param - ID of the item modifier to retrieve.
@@ -26,19 +30,23 @@ interface GetModifierSignature {
26
30
  */
27
31
  (modifierId: string): Promise<NonNullablePaths<Modifier, `businessLocationIds`, 2>>;
28
32
  }
29
- declare function listModifiers$1(httpClient: HttpClient): ListModifiersSignature;
33
+ declare function listModifiers$1(httpClient: HttpClient, __options?: {
34
+ validateRequestSchema?: boolean;
35
+ }): ListModifiersSignature;
30
36
  interface ListModifiersSignature {
31
37
  /**
32
- * > **Note:** The Item Modifier 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
+ * > **Note:** The Item Modifier 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).
33
39
  *
34
40
  * Retrieves a list of up to 500 item modifiers.
35
41
  */
36
42
  (options?: ListModifiersOptions): Promise<NonNullablePaths<ListModifiersResponse, `modifiers`, 2>>;
37
43
  }
38
- declare function updateModifier$1(httpClient: HttpClient): UpdateModifierSignature;
44
+ declare function updateModifier$1(httpClient: HttpClient, __options?: {
45
+ validateRequestSchema?: boolean;
46
+ }): UpdateModifierSignature;
39
47
  interface UpdateModifierSignature {
40
48
  /**
41
- * > **Note:** The Item Modifier 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
+ * > **Note:** The Item Modifier 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).
42
50
  *
43
51
  * Updates an item modifier.
44
52
  *
@@ -50,20 +58,24 @@ interface UpdateModifierSignature {
50
58
  */
51
59
  (_id: string, modifier: NonNullablePaths<UpdateModifier, `revision`, 2>): Promise<NonNullablePaths<Modifier, `businessLocationIds`, 2>>;
52
60
  }
53
- declare function bulkCreateModifiers$1(httpClient: HttpClient): BulkCreateModifiersSignature;
61
+ declare function bulkCreateModifiers$1(httpClient: HttpClient, __options?: {
62
+ validateRequestSchema?: boolean;
63
+ }): BulkCreateModifiersSignature;
54
64
  interface BulkCreateModifiersSignature {
55
65
  /**
56
- * > **Note:** The Item Modifier 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).
66
+ * > **Note:** The Item Modifier 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).
57
67
  *
58
68
  * Creates multiple item modifiers.
59
69
  * @param - List of item modifiers to create.
60
70
  */
61
71
  (modifiers: Modifier[], options?: BulkCreateModifiersOptions): Promise<NonNullablePaths<BulkCreateModifiersResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
62
72
  }
63
- declare function bulkUpdateModifiers$1(httpClient: HttpClient): BulkUpdateModifiersSignature;
73
+ declare function bulkUpdateModifiers$1(httpClient: HttpClient, __options?: {
74
+ validateRequestSchema?: boolean;
75
+ }): BulkUpdateModifiersSignature;
64
76
  interface BulkUpdateModifiersSignature {
65
77
  /**
66
- * > **Note:** The Item modifier 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).
78
+ * > **Note:** The Item modifier 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).
67
79
  *
68
80
  * Updates multiple item modifiers at once.
69
81
  * Each time an item modifier is updated, its revision increments by 1. The existing revision must be included when updating the item modifier. This ensures you're working with the latest item modifier information, and prevents unintended overwrites.
@@ -71,19 +83,23 @@ interface BulkUpdateModifiersSignature {
71
83
  */
72
84
  (modifiers: MaskedModifier[], options?: BulkUpdateModifiersOptions): Promise<NonNullablePaths<BulkUpdateModifiersResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
73
85
  }
74
- declare function deleteModifier$1(httpClient: HttpClient): DeleteModifierSignature;
86
+ declare function deleteModifier$1(httpClient: HttpClient, __options?: {
87
+ validateRequestSchema?: boolean;
88
+ }): DeleteModifierSignature;
75
89
  interface DeleteModifierSignature {
76
90
  /**
77
- * > **Note:** The Item modifier 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).
91
+ * > **Note:** The Item modifier 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).
78
92
  * Deletes an item modifier.
79
93
  * @param - ID of the item modifier to delete.
80
94
  */
81
95
  (modifierId: string): Promise<void>;
82
96
  }
83
- declare function countModifiers$1(httpClient: HttpClient): CountModifiersSignature;
97
+ declare function countModifiers$1(httpClient: HttpClient, __options?: {
98
+ validateRequestSchema?: boolean;
99
+ }): CountModifiersSignature;
84
100
  interface CountModifiersSignature {
85
101
  /**
86
- * > **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).
102
+ * > **Note:** The Item 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).
87
103
  *
88
104
  * Retrieves the number of modifiers that match a specified filter.
89
105
  *
@@ -93,10 +109,12 @@ interface CountModifiersSignature {
93
109
  __applicationErrorsType?: CountModifiersApplicationErrors;
94
110
  }>;
95
111
  }
96
- declare function bulkDeleteModifiers$1(httpClient: HttpClient): BulkDeleteModifiersSignature;
112
+ declare function bulkDeleteModifiers$1(httpClient: HttpClient, __options?: {
113
+ validateRequestSchema?: boolean;
114
+ }): BulkDeleteModifiersSignature;
97
115
  interface BulkDeleteModifiersSignature {
98
116
  /**
99
- * > **Note:** The Item Modifier 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).
117
+ * > **Note:** The Item Modifier 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).
100
118
  *
101
119
  * Deletes multiple item Modifiers at once.
102
120
  * @param - Item Modifier IDs.