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