@wix/auto_sdk_restaurants_item-modifiers 1.0.0
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 +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.context.d.ts +24 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.context.js +29 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.context.js.map +1 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.http.d.ts +80 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.http.js +442 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.http.js.map +1 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.meta.d.ts +28 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.meta.js +218 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.meta.js.map +1 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.public.d.ts +128 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.public.js +103 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.public.js.map +1 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.types.d.ts +492 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.types.js +17 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.types.js.map +1 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.universal.d.ts +885 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.universal.js +490 -0
- package/build/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.context.d.ts +24 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.context.js +24 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.context.js.map +1 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.http.d.ts +80 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.http.js +429 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.http.js.map +1 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.meta.d.ts +28 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.meta.js +182 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.meta.js.map +1 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.public.d.ts +128 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.public.js +88 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.public.js.map +1 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.types.d.ts +492 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.types.js +14 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.types.js.map +1 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.universal.d.ts +885 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.universal.js +454 -0
- package/build/es/src/restaurants-menus-v1-item-modifier-item-modifiers.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.context.d.ts +24 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.context.js +29 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.context.js.map +1 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.http.d.ts +80 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.http.js +442 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.http.js.map +1 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.meta.d.ts +28 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.meta.js +218 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.meta.js.map +1 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.public.d.ts +128 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.public.js +103 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.public.js.map +1 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.types.d.ts +492 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.types.js +17 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.types.js.map +1 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.universal.d.ts +885 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.universal.js +490 -0
- package/build/internal/cjs/src/restaurants-menus-v1-item-modifier-item-modifiers.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.context.d.ts +24 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.context.js +24 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.context.js.map +1 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.http.d.ts +80 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.http.js +429 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.http.js.map +1 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.meta.d.ts +28 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.meta.js +182 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.meta.js.map +1 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.public.d.ts +128 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.public.js +88 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.public.js.map +1 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.types.d.ts +492 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.types.js +14 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.types.js.map +1 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.universal.d.ts +885 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.universal.js +454 -0
- package/build/internal/es/src/restaurants-menus-v1-item-modifier-item-modifiers.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An item modifier is a type of menu item that serves as an addition to a menu item.
|
|
3
|
+
* Read more about [item modifiers](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifiers/introduction).
|
|
4
|
+
*/
|
|
5
|
+
export interface Modifier {
|
|
6
|
+
/**
|
|
7
|
+
* Item modifier ID.
|
|
8
|
+
* @readonly
|
|
9
|
+
*/
|
|
10
|
+
id?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Revision number, which increments by 1 each time the item modifier is updated.
|
|
13
|
+
* To prevent conflicting changes,
|
|
14
|
+
* the current revision must be passed when updating the item modifier. <br />
|
|
15
|
+
*
|
|
16
|
+
* Ignored when creating an item modifier.
|
|
17
|
+
* @readonly
|
|
18
|
+
*/
|
|
19
|
+
revision?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Date and time the item modifier was created.
|
|
22
|
+
* @readonly
|
|
23
|
+
*/
|
|
24
|
+
createdDate?: Date | null;
|
|
25
|
+
/**
|
|
26
|
+
* Date and time the item modifier was updated.
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
updatedDate?: Date | null;
|
|
30
|
+
/** Item modifier display name. */
|
|
31
|
+
name?: string | null;
|
|
32
|
+
/** Extended fields. */
|
|
33
|
+
extendedFields?: ExtendedFields;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the modifier is in stock.
|
|
36
|
+
* Default: `true`.
|
|
37
|
+
*/
|
|
38
|
+
inStock?: boolean | null;
|
|
39
|
+
}
|
|
40
|
+
export interface ExtendedFields {
|
|
41
|
+
/**
|
|
42
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
43
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
44
|
+
*
|
|
45
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
46
|
+
*
|
|
47
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
48
|
+
*/
|
|
49
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
50
|
+
}
|
|
51
|
+
export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
52
|
+
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
53
|
+
metaSiteId?: string;
|
|
54
|
+
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
|
|
55
|
+
siteId?: string;
|
|
56
|
+
/** Invalidate by App */
|
|
57
|
+
app?: App;
|
|
58
|
+
/** Invalidate by page id */
|
|
59
|
+
page?: Page;
|
|
60
|
+
/** Invalidate by URI path */
|
|
61
|
+
uri?: URI;
|
|
62
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
63
|
+
file?: File;
|
|
64
|
+
/** tell us why you're invalidating the cache. You don't need to add your app name */
|
|
65
|
+
reason?: string | null;
|
|
66
|
+
/** Is local DS */
|
|
67
|
+
localDc?: boolean;
|
|
68
|
+
hardPurge?: boolean;
|
|
69
|
+
}
|
|
70
|
+
/** @oneof */
|
|
71
|
+
export interface InvalidateCacheGetByOneOf {
|
|
72
|
+
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
73
|
+
metaSiteId?: string;
|
|
74
|
+
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
|
|
75
|
+
siteId?: string;
|
|
76
|
+
/** Invalidate by App */
|
|
77
|
+
app?: App;
|
|
78
|
+
/** Invalidate by page id */
|
|
79
|
+
page?: Page;
|
|
80
|
+
/** Invalidate by URI path */
|
|
81
|
+
uri?: URI;
|
|
82
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
83
|
+
file?: File;
|
|
84
|
+
}
|
|
85
|
+
export interface App {
|
|
86
|
+
/** The AppDefId */
|
|
87
|
+
appDefId?: string;
|
|
88
|
+
/** The instance Id */
|
|
89
|
+
instanceId?: string;
|
|
90
|
+
}
|
|
91
|
+
export interface Page {
|
|
92
|
+
/** the msid the page is on */
|
|
93
|
+
metaSiteId?: string;
|
|
94
|
+
/** Invalidate by Page ID */
|
|
95
|
+
pageId?: string;
|
|
96
|
+
}
|
|
97
|
+
export interface URI {
|
|
98
|
+
/** the msid the URI is on */
|
|
99
|
+
metaSiteId?: string;
|
|
100
|
+
/** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
|
|
101
|
+
uriPath?: string;
|
|
102
|
+
}
|
|
103
|
+
export interface File {
|
|
104
|
+
/** the msid the file is related to */
|
|
105
|
+
metaSiteId?: string;
|
|
106
|
+
/** Invalidate by filename (for media files such as PDFs) */
|
|
107
|
+
fileName?: string;
|
|
108
|
+
}
|
|
109
|
+
export interface CreateModifierRequest {
|
|
110
|
+
/** Item modifier to create. */
|
|
111
|
+
modifier: Modifier;
|
|
112
|
+
}
|
|
113
|
+
export interface CreateModifierResponse {
|
|
114
|
+
/** Created item modifier. */
|
|
115
|
+
modifier?: Modifier;
|
|
116
|
+
}
|
|
117
|
+
export interface GetModifierRequest {
|
|
118
|
+
/** ID of the item modifier to retrieve. */
|
|
119
|
+
modifierId: string;
|
|
120
|
+
}
|
|
121
|
+
export interface GetModifierResponse {
|
|
122
|
+
/** Retrieved item modifier. */
|
|
123
|
+
modifier?: Modifier;
|
|
124
|
+
}
|
|
125
|
+
export interface ListModifiersRequest {
|
|
126
|
+
/** IDs of the item modifiers to retrieve. */
|
|
127
|
+
modifierIds?: string[];
|
|
128
|
+
/** Metadata of the paginated results. */
|
|
129
|
+
paging?: CursorPaging;
|
|
130
|
+
}
|
|
131
|
+
export interface CursorPaging {
|
|
132
|
+
/** Maximum number of items to load. */
|
|
133
|
+
limit?: number | null;
|
|
134
|
+
/**
|
|
135
|
+
* Pointer to the next or previous page in the list of results.
|
|
136
|
+
*
|
|
137
|
+
* You can get the relevant cursor token
|
|
138
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
139
|
+
* Not relevant for the first request.
|
|
140
|
+
*/
|
|
141
|
+
cursor?: string | null;
|
|
142
|
+
}
|
|
143
|
+
export interface ListModifiersResponse {
|
|
144
|
+
/** Retrieved item modifiers. */
|
|
145
|
+
modifiers?: Modifier[];
|
|
146
|
+
/** Metadata of the paginated results. */
|
|
147
|
+
metadata?: CursorPagingMetadata;
|
|
148
|
+
}
|
|
149
|
+
export interface CursorPagingMetadata {
|
|
150
|
+
/** Number of items returned in the response. */
|
|
151
|
+
count?: number | null;
|
|
152
|
+
/** Cursor pointing to the next page and the previous page in the list of results. */
|
|
153
|
+
cursors?: Cursors;
|
|
154
|
+
/**
|
|
155
|
+
* Whether there are more results after the current page.
|
|
156
|
+
* If `true`, another page of results can be retrieved.
|
|
157
|
+
* If `false`, this is the last page.
|
|
158
|
+
*/
|
|
159
|
+
hasNext?: boolean | null;
|
|
160
|
+
}
|
|
161
|
+
export interface Cursors {
|
|
162
|
+
/** Cursor pointing to next page in the list of results. */
|
|
163
|
+
next?: string | null;
|
|
164
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
165
|
+
prev?: string | null;
|
|
166
|
+
}
|
|
167
|
+
export interface UpdateModifierRequest {
|
|
168
|
+
/** Item Modifier with updated properties. */
|
|
169
|
+
modifier: Modifier;
|
|
170
|
+
}
|
|
171
|
+
export interface UpdateModifierResponse {
|
|
172
|
+
/** Updated item modifier. */
|
|
173
|
+
modifier?: Modifier;
|
|
174
|
+
}
|
|
175
|
+
export interface BulkCreateModifiersRequest {
|
|
176
|
+
/** List of item modifiers to create. */
|
|
177
|
+
modifiers: Modifier[];
|
|
178
|
+
/**
|
|
179
|
+
* Whether the created item modifiers are included in the response. <br />
|
|
180
|
+
* Default: `false`.
|
|
181
|
+
*/
|
|
182
|
+
returnEntity?: boolean;
|
|
183
|
+
}
|
|
184
|
+
export interface BulkCreateModifiersResponse {
|
|
185
|
+
/** Information about the created item modifiers. */
|
|
186
|
+
results?: BulkCreateModifierResult[];
|
|
187
|
+
/** Metadata for Bulk Create Modifiers API call. */
|
|
188
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
189
|
+
}
|
|
190
|
+
export interface BulkCreateModifierResult {
|
|
191
|
+
/** Metadata for creation of the item modifer. */
|
|
192
|
+
itemMetadata?: ItemMetadata;
|
|
193
|
+
/** Created item modifier. */
|
|
194
|
+
modifier?: Modifier;
|
|
195
|
+
}
|
|
196
|
+
export interface ItemMetadata {
|
|
197
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
198
|
+
id?: string | null;
|
|
199
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
200
|
+
originalIndex?: number;
|
|
201
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
202
|
+
success?: boolean;
|
|
203
|
+
/** Details about the error in case of failure. */
|
|
204
|
+
error?: ApplicationError;
|
|
205
|
+
}
|
|
206
|
+
export interface ApplicationError {
|
|
207
|
+
/** Error code. */
|
|
208
|
+
code?: string;
|
|
209
|
+
/** Description of the error. */
|
|
210
|
+
description?: string;
|
|
211
|
+
/** Data related to the error. */
|
|
212
|
+
data?: Record<string, any> | null;
|
|
213
|
+
}
|
|
214
|
+
export interface BulkActionMetadata {
|
|
215
|
+
/** Number of items that were successfully processed. */
|
|
216
|
+
totalSuccesses?: number;
|
|
217
|
+
/** Number of items that couldn't be processed. */
|
|
218
|
+
totalFailures?: number;
|
|
219
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
220
|
+
undetailedFailures?: number;
|
|
221
|
+
}
|
|
222
|
+
export interface BulkUpdateModifiersRequest {
|
|
223
|
+
/** List of item modifiers to update. */
|
|
224
|
+
modifiers: MaskedModifier[];
|
|
225
|
+
/** Whether the updated item modifiers are included in the response. */
|
|
226
|
+
returnEntity?: boolean;
|
|
227
|
+
}
|
|
228
|
+
export interface MaskedModifier {
|
|
229
|
+
/** Item modifier to update. */
|
|
230
|
+
modifier?: Modifier;
|
|
231
|
+
/** Explicit list of fields to update. */
|
|
232
|
+
mask?: string[];
|
|
233
|
+
}
|
|
234
|
+
export interface BulkUpdateModifiersResponse {
|
|
235
|
+
/** Information about the updated item modifiers. */
|
|
236
|
+
results?: BulkUpdateModifierResult[];
|
|
237
|
+
/** Metadata for Bulk Update Modifiers API call. */
|
|
238
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
239
|
+
}
|
|
240
|
+
export interface BulkUpdateModifierResult {
|
|
241
|
+
/** Metadata for the update of the item modifer. */
|
|
242
|
+
itemMetadata?: ItemMetadata;
|
|
243
|
+
/** Updated item modifier. */
|
|
244
|
+
modifier?: Modifier;
|
|
245
|
+
}
|
|
246
|
+
export interface DeleteModifierRequest {
|
|
247
|
+
/** ID of the item modifier to delete. */
|
|
248
|
+
modifierId: string;
|
|
249
|
+
}
|
|
250
|
+
export interface DeleteModifierResponse {
|
|
251
|
+
}
|
|
252
|
+
export interface QueryModifiersRequest {
|
|
253
|
+
/** Query options. */
|
|
254
|
+
query?: CursorQuery;
|
|
255
|
+
}
|
|
256
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
257
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
258
|
+
cursorPaging?: CursorPaging;
|
|
259
|
+
/**
|
|
260
|
+
* Filter object.
|
|
261
|
+
* See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
|
|
262
|
+
* for more information.
|
|
263
|
+
*
|
|
264
|
+
* For a detailed list of supported filters, see
|
|
265
|
+
* [Supported Filters](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifiers/supported-filters-and-sorting).
|
|
266
|
+
*/
|
|
267
|
+
filter?: Record<string, any> | null;
|
|
268
|
+
/** Sort object. */
|
|
269
|
+
sort?: Sorting[];
|
|
270
|
+
}
|
|
271
|
+
/** @oneof */
|
|
272
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
273
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
274
|
+
cursorPaging?: CursorPaging;
|
|
275
|
+
}
|
|
276
|
+
export interface Sorting {
|
|
277
|
+
/** Name of the field to sort by. */
|
|
278
|
+
fieldName?: string;
|
|
279
|
+
/** Sort order. */
|
|
280
|
+
order?: SortOrder;
|
|
281
|
+
}
|
|
282
|
+
export declare enum SortOrder {
|
|
283
|
+
ASC = "ASC",
|
|
284
|
+
DESC = "DESC"
|
|
285
|
+
}
|
|
286
|
+
export interface QueryModifiersResponse {
|
|
287
|
+
/** Retrieved item modifiers. */
|
|
288
|
+
modifiers?: Modifier[];
|
|
289
|
+
/** Metadata of the paginated results. */
|
|
290
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
291
|
+
}
|
|
292
|
+
export interface CountModifiersRequest {
|
|
293
|
+
/** Filter for counting modifiers. */
|
|
294
|
+
filter?: Record<string, any> | null;
|
|
295
|
+
}
|
|
296
|
+
export interface CountModifiersResponse {
|
|
297
|
+
/** Counted modifiers. */
|
|
298
|
+
count?: number;
|
|
299
|
+
}
|
|
300
|
+
export interface BulkDeleteModifiersRequest {
|
|
301
|
+
/** Item Modifier IDs. */
|
|
302
|
+
ids: string[];
|
|
303
|
+
}
|
|
304
|
+
export interface BulkDeleteModifiersResponse {
|
|
305
|
+
/** Information about the deleted modifiers. */
|
|
306
|
+
results?: BulkDeleteModifiersResult[];
|
|
307
|
+
/** Metadata for the API call. */
|
|
308
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
309
|
+
}
|
|
310
|
+
export interface BulkDeleteModifiersResult {
|
|
311
|
+
/** Metadata for modifiers deletion. */
|
|
312
|
+
itemMetadata?: ItemMetadata;
|
|
313
|
+
}
|
|
314
|
+
export interface CloneModifiersRequest {
|
|
315
|
+
/** The MetaSiteId to clone from */
|
|
316
|
+
metaSiteId?: string;
|
|
317
|
+
}
|
|
318
|
+
export interface CloneModifiersResponse {
|
|
319
|
+
}
|
|
320
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
321
|
+
createdEvent?: EntityCreatedEvent;
|
|
322
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
323
|
+
deletedEvent?: EntityDeletedEvent;
|
|
324
|
+
actionEvent?: ActionEvent;
|
|
325
|
+
/**
|
|
326
|
+
* Unique event ID.
|
|
327
|
+
* Allows clients to ignore duplicate webhooks.
|
|
328
|
+
*/
|
|
329
|
+
id?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Assumes actions are also always typed to an entity_type
|
|
332
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
333
|
+
*/
|
|
334
|
+
entityFqdn?: string;
|
|
335
|
+
/**
|
|
336
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
337
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
338
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
339
|
+
*/
|
|
340
|
+
slug?: string;
|
|
341
|
+
/** ID of the entity associated with the event. */
|
|
342
|
+
entityId?: string;
|
|
343
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
344
|
+
eventTime?: Date | null;
|
|
345
|
+
/**
|
|
346
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
347
|
+
* (for example, GDPR).
|
|
348
|
+
*/
|
|
349
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
350
|
+
/** If present, indicates the action that triggered the event. */
|
|
351
|
+
originatedFrom?: string | null;
|
|
352
|
+
/**
|
|
353
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
354
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
355
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
356
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
357
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
358
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
359
|
+
*/
|
|
360
|
+
entityEventSequence?: string | null;
|
|
361
|
+
}
|
|
362
|
+
/** @oneof */
|
|
363
|
+
export interface DomainEventBodyOneOf {
|
|
364
|
+
createdEvent?: EntityCreatedEvent;
|
|
365
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
366
|
+
deletedEvent?: EntityDeletedEvent;
|
|
367
|
+
actionEvent?: ActionEvent;
|
|
368
|
+
}
|
|
369
|
+
export interface EntityCreatedEvent {
|
|
370
|
+
entityAsJson?: string;
|
|
371
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
372
|
+
restoreInfo?: RestoreInfo;
|
|
373
|
+
}
|
|
374
|
+
export interface RestoreInfo {
|
|
375
|
+
deletedDate?: Date | null;
|
|
376
|
+
}
|
|
377
|
+
export interface EntityUpdatedEvent {
|
|
378
|
+
/**
|
|
379
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
380
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
381
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
382
|
+
*/
|
|
383
|
+
currentEntityAsJson?: string;
|
|
384
|
+
}
|
|
385
|
+
export interface EntityDeletedEvent {
|
|
386
|
+
/** Entity that was deleted */
|
|
387
|
+
deletedEntityAsJson?: string | null;
|
|
388
|
+
}
|
|
389
|
+
export interface ActionEvent {
|
|
390
|
+
bodyAsJson?: string;
|
|
391
|
+
}
|
|
392
|
+
export interface Empty {
|
|
393
|
+
}
|
|
394
|
+
export interface MessageEnvelope {
|
|
395
|
+
/** App instance ID. */
|
|
396
|
+
instanceId?: string | null;
|
|
397
|
+
/** Event type. */
|
|
398
|
+
eventType?: string;
|
|
399
|
+
/** The identification type and identity data. */
|
|
400
|
+
identity?: IdentificationData;
|
|
401
|
+
/** Stringify payload. */
|
|
402
|
+
data?: string;
|
|
403
|
+
}
|
|
404
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
405
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
406
|
+
anonymousVisitorId?: string;
|
|
407
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
408
|
+
memberId?: string;
|
|
409
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
410
|
+
wixUserId?: string;
|
|
411
|
+
/** ID of an app. */
|
|
412
|
+
appId?: string;
|
|
413
|
+
/** @readonly */
|
|
414
|
+
identityType?: WebhookIdentityType;
|
|
415
|
+
}
|
|
416
|
+
/** @oneof */
|
|
417
|
+
export interface IdentificationDataIdOneOf {
|
|
418
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
419
|
+
anonymousVisitorId?: string;
|
|
420
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
421
|
+
memberId?: string;
|
|
422
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
423
|
+
wixUserId?: string;
|
|
424
|
+
/** ID of an app. */
|
|
425
|
+
appId?: string;
|
|
426
|
+
}
|
|
427
|
+
export declare enum WebhookIdentityType {
|
|
428
|
+
UNKNOWN = "UNKNOWN",
|
|
429
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
430
|
+
MEMBER = "MEMBER",
|
|
431
|
+
WIX_USER = "WIX_USER",
|
|
432
|
+
APP = "APP"
|
|
433
|
+
}
|
|
434
|
+
interface ModifierNonNullableFields {
|
|
435
|
+
businessLocationIds: string[];
|
|
436
|
+
}
|
|
437
|
+
export interface CreateModifierResponseNonNullableFields {
|
|
438
|
+
modifier?: ModifierNonNullableFields;
|
|
439
|
+
}
|
|
440
|
+
export interface GetModifierResponseNonNullableFields {
|
|
441
|
+
modifier?: ModifierNonNullableFields;
|
|
442
|
+
}
|
|
443
|
+
export interface ListModifiersResponseNonNullableFields {
|
|
444
|
+
modifiers: ModifierNonNullableFields[];
|
|
445
|
+
}
|
|
446
|
+
export interface UpdateModifierResponseNonNullableFields {
|
|
447
|
+
modifier?: ModifierNonNullableFields;
|
|
448
|
+
}
|
|
449
|
+
interface ApplicationErrorNonNullableFields {
|
|
450
|
+
code: string;
|
|
451
|
+
description: string;
|
|
452
|
+
}
|
|
453
|
+
interface ItemMetadataNonNullableFields {
|
|
454
|
+
originalIndex: number;
|
|
455
|
+
success: boolean;
|
|
456
|
+
error?: ApplicationErrorNonNullableFields;
|
|
457
|
+
}
|
|
458
|
+
interface BulkCreateModifierResultNonNullableFields {
|
|
459
|
+
itemMetadata?: ItemMetadataNonNullableFields;
|
|
460
|
+
modifier?: ModifierNonNullableFields;
|
|
461
|
+
}
|
|
462
|
+
interface BulkActionMetadataNonNullableFields {
|
|
463
|
+
totalSuccesses: number;
|
|
464
|
+
totalFailures: number;
|
|
465
|
+
undetailedFailures: number;
|
|
466
|
+
}
|
|
467
|
+
export interface BulkCreateModifiersResponseNonNullableFields {
|
|
468
|
+
results: BulkCreateModifierResultNonNullableFields[];
|
|
469
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
470
|
+
}
|
|
471
|
+
interface BulkUpdateModifierResultNonNullableFields {
|
|
472
|
+
itemMetadata?: ItemMetadataNonNullableFields;
|
|
473
|
+
modifier?: ModifierNonNullableFields;
|
|
474
|
+
}
|
|
475
|
+
export interface BulkUpdateModifiersResponseNonNullableFields {
|
|
476
|
+
results: BulkUpdateModifierResultNonNullableFields[];
|
|
477
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
478
|
+
}
|
|
479
|
+
export interface QueryModifiersResponseNonNullableFields {
|
|
480
|
+
modifiers: ModifierNonNullableFields[];
|
|
481
|
+
}
|
|
482
|
+
export interface CountModifiersResponseNonNullableFields {
|
|
483
|
+
count: number;
|
|
484
|
+
}
|
|
485
|
+
interface BulkDeleteModifiersResultNonNullableFields {
|
|
486
|
+
itemMetadata?: ItemMetadataNonNullableFields;
|
|
487
|
+
}
|
|
488
|
+
export interface BulkDeleteModifiersResponseNonNullableFields {
|
|
489
|
+
results: BulkDeleteModifiersResultNonNullableFields[];
|
|
490
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
491
|
+
}
|
|
492
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = void 0;
|
|
4
|
+
var SortOrder;
|
|
5
|
+
(function (SortOrder) {
|
|
6
|
+
SortOrder["ASC"] = "ASC";
|
|
7
|
+
SortOrder["DESC"] = "DESC";
|
|
8
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
9
|
+
var WebhookIdentityType;
|
|
10
|
+
(function (WebhookIdentityType) {
|
|
11
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
12
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
13
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
14
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
15
|
+
WebhookIdentityType["APP"] = "APP";
|
|
16
|
+
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
17
|
+
//# sourceMappingURL=restaurants-menus-v1-item-modifier-item-modifiers.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restaurants-menus-v1-item-modifier-item-modifiers.types.js","sourceRoot":"","sources":["../../../src/restaurants-menus-v1-item-modifier-item-modifiers.types.ts"],"names":[],"mappings":";;;AA2TA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAgKD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|