@wix/auto_sdk_restaurants_operation-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-v1-operation-group-operation-groups.context.d.ts +15 -0
  11. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.context.js +20 -0
  12. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.context.js.map +1 -0
  13. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.http.d.ts +44 -0
  14. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.http.js +423 -0
  15. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.http.js.map +1 -0
  16. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.meta.d.ts +31 -0
  17. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.meta.js +237 -0
  18. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.meta.js.map +1 -0
  19. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.public.d.ts +110 -0
  20. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.public.js +75 -0
  21. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.public.js.map +1 -0
  22. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.types.d.ts +588 -0
  23. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.types.js +17 -0
  24. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.types.js.map +1 -0
  25. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.universal.d.ts +882 -0
  26. package/build/cjs/src/restaurants-v1-operation-group-operation-groups.universal.js +503 -0
  27. package/build/cjs/src/restaurants-v1-operation-group-operation-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-v1-operation-group-operation-groups.context.d.ts +15 -0
  39. package/build/es/src/restaurants-v1-operation-group-operation-groups.context.js +15 -0
  40. package/build/es/src/restaurants-v1-operation-group-operation-groups.context.js.map +1 -0
  41. package/build/es/src/restaurants-v1-operation-group-operation-groups.http.d.ts +44 -0
  42. package/build/es/src/restaurants-v1-operation-group-operation-groups.http.js +409 -0
  43. package/build/es/src/restaurants-v1-operation-group-operation-groups.http.js.map +1 -0
  44. package/build/es/src/restaurants-v1-operation-group-operation-groups.meta.d.ts +31 -0
  45. package/build/es/src/restaurants-v1-operation-group-operation-groups.meta.js +200 -0
  46. package/build/es/src/restaurants-v1-operation-group-operation-groups.meta.js.map +1 -0
  47. package/build/es/src/restaurants-v1-operation-group-operation-groups.public.d.ts +110 -0
  48. package/build/es/src/restaurants-v1-operation-group-operation-groups.public.js +59 -0
  49. package/build/es/src/restaurants-v1-operation-group-operation-groups.public.js.map +1 -0
  50. package/build/es/src/restaurants-v1-operation-group-operation-groups.types.d.ts +588 -0
  51. package/build/es/src/restaurants-v1-operation-group-operation-groups.types.js +14 -0
  52. package/build/es/src/restaurants-v1-operation-group-operation-groups.types.js.map +1 -0
  53. package/build/es/src/restaurants-v1-operation-group-operation-groups.universal.d.ts +882 -0
  54. package/build/es/src/restaurants-v1-operation-group-operation-groups.universal.js +466 -0
  55. package/build/es/src/restaurants-v1-operation-group-operation-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-v1-operation-group-operation-groups.context.d.ts +15 -0
  66. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.context.js +20 -0
  67. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.context.js.map +1 -0
  68. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.http.d.ts +44 -0
  69. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.http.js +423 -0
  70. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.http.js.map +1 -0
  71. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.meta.d.ts +31 -0
  72. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.meta.js +237 -0
  73. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.meta.js.map +1 -0
  74. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.public.d.ts +110 -0
  75. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.public.js +75 -0
  76. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.public.js.map +1 -0
  77. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.types.d.ts +588 -0
  78. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.types.js +17 -0
  79. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.types.js.map +1 -0
  80. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.universal.d.ts +882 -0
  81. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-groups.universal.js +503 -0
  82. package/build/internal/cjs/src/restaurants-v1-operation-group-operation-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-v1-operation-group-operation-groups.context.d.ts +15 -0
  93. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.context.js +15 -0
  94. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.context.js.map +1 -0
  95. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.http.d.ts +44 -0
  96. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.http.js +409 -0
  97. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.http.js.map +1 -0
  98. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.meta.d.ts +31 -0
  99. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.meta.js +200 -0
  100. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.meta.js.map +1 -0
  101. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.public.d.ts +110 -0
  102. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.public.js +59 -0
  103. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.public.js.map +1 -0
  104. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.types.d.ts +588 -0
  105. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.types.js +14 -0
  106. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.types.js.map +1 -0
  107. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.universal.d.ts +882 -0
  108. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.universal.js +466 -0
  109. package/build/internal/es/src/restaurants-v1-operation-group-operation-groups.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,588 @@
1
+ /**
2
+ * An operation group is a aggregation of operations that each one of them point to a different location.
3
+ * Each operation group has different ordering page.
4
+ */
5
+ export interface OperationGroup {
6
+ /**
7
+ * OperationsGroup ID.
8
+ * @format GUID
9
+ * @readonly
10
+ */
11
+ id?: string | null;
12
+ /**
13
+ * Revision number, which increments by 1 each time the OperationsGroup is updated.
14
+ * To prevent conflicting changes,
15
+ * the current revision must be passed when updating the OperationsGroup.
16
+ *
17
+ * Ignored when creating a OperationsGroup.
18
+ * @readonly
19
+ */
20
+ revision?: string | null;
21
+ /**
22
+ * Date and time the OperationsGroup was created.
23
+ * @readonly
24
+ */
25
+ createdDate?: Date | null;
26
+ /**
27
+ * Date and time the OperationsGroup was last updated.
28
+ * @readonly
29
+ */
30
+ updatedDate?: Date | null;
31
+ /**
32
+ * The name of the operations group
33
+ * @minLength 1
34
+ * @maxLength 500
35
+ */
36
+ name?: string | null;
37
+ /** Data Extensions */
38
+ extendedFields?: ExtendedFields;
39
+ /** Tags */
40
+ tags?: Tags;
41
+ }
42
+ export interface ExtendedFields {
43
+ /**
44
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
45
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
46
+ *
47
+ * You can only access fields for which you have the appropriate permissions.
48
+ *
49
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
50
+ */
51
+ namespaces?: Record<string, Record<string, any>>;
52
+ }
53
+ /**
54
+ * Common object for tags.
55
+ * Should be use as in this example:
56
+ * message Foo {
57
+ * string id = 1;
58
+ * ...
59
+ * Tags tags = 5
60
+ * }
61
+ *
62
+ * example of taggable entity
63
+ * {
64
+ * id: "123"
65
+ * tags: {
66
+ * tags: {
67
+ * tag_ids:["11","22"]
68
+ * },
69
+ * private_tags: {
70
+ * tag_ids: ["33", "44"]
71
+ * }
72
+ * }
73
+ * }
74
+ */
75
+ export interface Tags {
76
+ /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */
77
+ privateTags?: TagList;
78
+ /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
79
+ tags?: TagList;
80
+ }
81
+ export interface TagList {
82
+ /**
83
+ * List of tag IDs
84
+ * @maxSize 100
85
+ * @maxLength 5
86
+ */
87
+ tagIds?: string[];
88
+ }
89
+ export interface CreateOperationGroupRequest {
90
+ /** OperationGroup to be created. */
91
+ operationGroup: OperationGroup;
92
+ }
93
+ export interface CreateOperationGroupResponse {
94
+ /** The created OperationGroup. */
95
+ operationGroup?: OperationGroup;
96
+ }
97
+ export interface GetOperationGroupRequest {
98
+ /**
99
+ * ID of the OperationGroup to retrieve.
100
+ * @format GUID
101
+ */
102
+ operationGroupId: string;
103
+ }
104
+ export interface GetOperationGroupResponse {
105
+ /** The requested OperationGroup. */
106
+ operationGroup?: OperationGroup;
107
+ }
108
+ export interface UpdateOperationGroupRequest {
109
+ /** OperationGroup to be updated, may be partial. */
110
+ operationGroup: OperationGroup;
111
+ }
112
+ export interface UpdateOperationGroupResponse {
113
+ /** Updated OperationGroup. */
114
+ operationGroup?: OperationGroup;
115
+ }
116
+ export interface DeleteOperationGroupRequest {
117
+ /**
118
+ * Id of the OperationGroup to delete.
119
+ * @format GUID
120
+ */
121
+ operationGroupId: string;
122
+ }
123
+ export interface DeleteOperationGroupResponse {
124
+ }
125
+ export interface QueryOperationGroupsRequest {
126
+ /** WQL expression. */
127
+ query?: CursorQuery;
128
+ }
129
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
130
+ /** 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`. */
131
+ cursorPaging?: CursorPaging;
132
+ /**
133
+ * Filter object in the following format:
134
+ * `"filter" : {
135
+ * "fieldName1": "value1",
136
+ * "fieldName2":{"$operator":"value2"}
137
+ * }`
138
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
139
+ */
140
+ filter?: Record<string, any> | null;
141
+ /**
142
+ * Sort object in the following format:
143
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
144
+ * @maxSize 5
145
+ */
146
+ sort?: Sorting[];
147
+ }
148
+ /** @oneof */
149
+ export interface CursorQueryPagingMethodOneOf {
150
+ /** 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`. */
151
+ cursorPaging?: CursorPaging;
152
+ }
153
+ export interface Sorting {
154
+ /**
155
+ * Name of the field to sort by.
156
+ * @maxLength 512
157
+ */
158
+ fieldName?: string;
159
+ /** Sort order. */
160
+ order?: SortOrder;
161
+ }
162
+ export declare enum SortOrder {
163
+ ASC = "ASC",
164
+ DESC = "DESC"
165
+ }
166
+ export interface CursorPaging {
167
+ /**
168
+ * Maximum number of items to return in the results.
169
+ * @max 100
170
+ */
171
+ limit?: number | null;
172
+ /**
173
+ * Pointer to the next or previous page in the list of results.
174
+ *
175
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
176
+ * Not relevant for the first request.
177
+ * @maxLength 16000
178
+ */
179
+ cursor?: string | null;
180
+ }
181
+ export interface QueryOperationGroupsResponse {
182
+ /** List of OperationGroups. */
183
+ operationGroups?: OperationGroup[];
184
+ /** Paging metadata */
185
+ pagingMetadata?: CursorPagingMetadata;
186
+ }
187
+ export interface CursorPagingMetadata {
188
+ /** Number of items returned in the response. */
189
+ count?: number | null;
190
+ /** Cursor strings that point to the next page, previous page, or both. */
191
+ cursors?: Cursors;
192
+ /**
193
+ * Whether there are more pages to retrieve following the current page.
194
+ *
195
+ * + `true`: Another page of results can be retrieved.
196
+ * + `false`: This is the last page.
197
+ */
198
+ hasNext?: boolean | null;
199
+ }
200
+ export interface Cursors {
201
+ /**
202
+ * Cursor string pointing to the next page in the list of results.
203
+ * @maxLength 16000
204
+ */
205
+ next?: string | null;
206
+ /**
207
+ * Cursor pointing to the previous page in the list of results.
208
+ * @maxLength 16000
209
+ */
210
+ prev?: string | null;
211
+ }
212
+ export interface UpdateExtendedFieldsRequest {
213
+ /** ID of the entity to update. */
214
+ id: string;
215
+ /** Identifier for the app whose extended fields are being updated. */
216
+ namespace: string;
217
+ /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
218
+ namespaceData: Record<string, any> | null;
219
+ }
220
+ export interface UpdateExtendedFieldsResponse {
221
+ /** Updated OperationGroup. */
222
+ operationGroup?: OperationGroup;
223
+ }
224
+ export interface BulkCreateOperationGroupsRequest {
225
+ /**
226
+ * List of OperationGroups to be created
227
+ * @minSize 1
228
+ * @maxSize 100
229
+ */
230
+ operationGroups: OperationGroup[];
231
+ /** set to `true` if you wish to receive back the created OperationGroups in the response */
232
+ returnEntity?: boolean;
233
+ }
234
+ export interface BulkCreateOperationGroupsResponse {
235
+ /**
236
+ * List of the bulk create operation results including the OperationGroups and metadata.
237
+ * @minSize 1
238
+ * @maxSize 100
239
+ */
240
+ results?: BulkOperationGroupResult[];
241
+ /** Metadata regarding the bulk create operation */
242
+ bulkActionMetadata?: BulkActionMetadata;
243
+ }
244
+ export interface ItemMetadata {
245
+ /**
246
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
247
+ * @format GUID
248
+ */
249
+ id?: string | null;
250
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
251
+ originalIndex?: number;
252
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
253
+ success?: boolean;
254
+ /** Details about the error in case of failure. */
255
+ error?: ApplicationError;
256
+ }
257
+ export interface ApplicationError {
258
+ /** Error code. */
259
+ code?: string;
260
+ /** Description of the error. */
261
+ description?: string;
262
+ /** Data related to the error. */
263
+ data?: Record<string, any> | null;
264
+ }
265
+ export interface BulkOperationGroupResult {
266
+ /** Metadata regarding the specific single create operation */
267
+ itemMetadata?: ItemMetadata;
268
+ /** Only exists if `returnEntity` was set to true in the request */
269
+ item?: OperationGroup;
270
+ }
271
+ export interface BulkActionMetadata {
272
+ /** Number of items that were successfully processed. */
273
+ totalSuccesses?: number;
274
+ /** Number of items that couldn't be processed. */
275
+ totalFailures?: number;
276
+ /** Number of failures without details because detailed failure threshold was exceeded. */
277
+ undetailedFailures?: number;
278
+ }
279
+ export interface BulkUpdateOperationGroupsRequest {
280
+ /**
281
+ * List of OperationGroups to be updated.
282
+ * @minSize 1
283
+ * @maxSize 100
284
+ */
285
+ operationGroups: MaskedOperationGroup[];
286
+ /** set to `true` if you wish to receive back the updated OperationGroups in the response */
287
+ returnEntity?: boolean;
288
+ }
289
+ export interface MaskedOperationGroup {
290
+ /** OperationGroup to be updated, may be partial */
291
+ operationGroup?: OperationGroup;
292
+ }
293
+ export interface BulkUpdateOperationGroupsResponse {
294
+ /**
295
+ * Results
296
+ * @minSize 1
297
+ * @maxSize 100
298
+ */
299
+ results?: BulkUpdateOperationGroupsResponseBulkOperationGroupResult[];
300
+ /** Metadata regarding the bulk update operation */
301
+ bulkActionMetadata?: BulkActionMetadata;
302
+ }
303
+ export interface BulkUpdateOperationGroupsResponseBulkOperationGroupResult {
304
+ /** Metadata regarding the specific single update operation */
305
+ itemMetadata?: ItemMetadata;
306
+ /** Only exists if `returnEntity` was set to true in the request */
307
+ item?: OperationGroup;
308
+ }
309
+ export interface BulkDeleteOperationGroupsRequest {
310
+ /**
311
+ * OperationGroup ids to be deleted
312
+ * @minSize 1
313
+ * @maxSize 100
314
+ * @format GUID
315
+ */
316
+ operationGroupIds: string[];
317
+ }
318
+ export interface BulkDeleteOperationGroupsResponse {
319
+ /**
320
+ * Results
321
+ * @minSize 1
322
+ * @maxSize 100
323
+ */
324
+ results?: BulkDeleteOperationGroupsResponseBulkOperationGroupResult[];
325
+ /** Metadata regarding the bulk delete operation */
326
+ bulkActionMetadata?: BulkActionMetadata;
327
+ }
328
+ export interface BulkDeleteOperationGroupsResponseBulkOperationGroupResult {
329
+ /** Metadata regarding the specific single delete operation */
330
+ itemMetadata?: ItemMetadata;
331
+ }
332
+ export interface BulkUpdateOperationGroupTagsRequest {
333
+ /**
334
+ * List of NileProtoTagsEntities that their tags will update.
335
+ * @minSize 1
336
+ * @maxSize 100
337
+ * @format GUID
338
+ */
339
+ ids: string[];
340
+ /** List of Tags to assign */
341
+ assignTags?: Tags;
342
+ /** List of Tags to unAssign */
343
+ unassignTags?: Tags;
344
+ }
345
+ export interface BulkUpdateOperationGroupTagsResponse {
346
+ /**
347
+ * Results
348
+ * @minSize 1
349
+ * @maxSize 100
350
+ */
351
+ results?: BulkUpdateOperationGroupTagsResult[];
352
+ /** Metadata regarding the bulk update operation */
353
+ bulkActionMetadata?: BulkActionMetadata;
354
+ }
355
+ export interface BulkUpdateOperationGroupTagsResult {
356
+ /** Metadata regarding the specific single update operation */
357
+ itemMetadata?: ItemMetadata;
358
+ }
359
+ export interface BulkUpdateOperationGroupTagsByFilterRequest {
360
+ /** Filter */
361
+ filter: Record<string, any> | null;
362
+ /** List of Tags to assign */
363
+ assignTags?: Tags;
364
+ /** List of Tags to unAssign */
365
+ unassignTags?: Tags;
366
+ }
367
+ export interface BulkUpdateOperationGroupTagsByFilterResponse {
368
+ /**
369
+ * Job ID
370
+ * @format GUID
371
+ */
372
+ jobId?: string;
373
+ }
374
+ export interface DomainEvent extends DomainEventBodyOneOf {
375
+ createdEvent?: EntityCreatedEvent;
376
+ updatedEvent?: EntityUpdatedEvent;
377
+ deletedEvent?: EntityDeletedEvent;
378
+ actionEvent?: ActionEvent;
379
+ /**
380
+ * Unique event ID.
381
+ * Allows clients to ignore duplicate webhooks.
382
+ */
383
+ id?: string;
384
+ /**
385
+ * Assumes actions are also always typed to an entity_type
386
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
387
+ */
388
+ entityFqdn?: string;
389
+ /**
390
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
391
+ * This is although the created/updated/deleted notion is duplication of the oneof types
392
+ * Example: created/updated/deleted/started/completed/email_opened
393
+ */
394
+ slug?: string;
395
+ /** ID of the entity associated with the event. */
396
+ entityId?: string;
397
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
398
+ eventTime?: Date | null;
399
+ /**
400
+ * Whether the event was triggered as a result of a privacy regulation application
401
+ * (for example, GDPR).
402
+ */
403
+ triggeredByAnonymizeRequest?: boolean | null;
404
+ /** If present, indicates the action that triggered the event. */
405
+ originatedFrom?: string | null;
406
+ /**
407
+ * A sequence number defining the order of updates to the underlying entity.
408
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
409
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
410
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
411
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
412
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
413
+ */
414
+ entityEventSequence?: string | null;
415
+ }
416
+ /** @oneof */
417
+ export interface DomainEventBodyOneOf {
418
+ createdEvent?: EntityCreatedEvent;
419
+ updatedEvent?: EntityUpdatedEvent;
420
+ deletedEvent?: EntityDeletedEvent;
421
+ actionEvent?: ActionEvent;
422
+ }
423
+ export interface EntityCreatedEvent {
424
+ entityAsJson?: string;
425
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
426
+ restoreInfo?: RestoreInfo;
427
+ }
428
+ export interface RestoreInfo {
429
+ deletedDate?: Date | null;
430
+ }
431
+ export interface EntityUpdatedEvent {
432
+ /**
433
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
434
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
435
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
436
+ */
437
+ currentEntityAsJson?: string;
438
+ }
439
+ export interface EntityDeletedEvent {
440
+ /** Entity that was deleted */
441
+ deletedEntityAsJson?: string | null;
442
+ }
443
+ export interface ActionEvent {
444
+ bodyAsJson?: string;
445
+ }
446
+ export interface MessageEnvelope {
447
+ /**
448
+ * App instance ID.
449
+ * @format GUID
450
+ */
451
+ instanceId?: string | null;
452
+ /**
453
+ * Event type.
454
+ * @maxLength 150
455
+ */
456
+ eventType?: string;
457
+ /** The identification type and identity data. */
458
+ identity?: IdentificationData;
459
+ /** Stringify payload. */
460
+ data?: string;
461
+ }
462
+ export interface IdentificationData extends IdentificationDataIdOneOf {
463
+ /**
464
+ * ID of a site visitor that has not logged in to the site.
465
+ * @format GUID
466
+ */
467
+ anonymousVisitorId?: string;
468
+ /**
469
+ * ID of a site visitor that has logged in to the site.
470
+ * @format GUID
471
+ */
472
+ memberId?: string;
473
+ /**
474
+ * ID of a Wix user (site owner, contributor, etc.).
475
+ * @format GUID
476
+ */
477
+ wixUserId?: string;
478
+ /**
479
+ * ID of an app.
480
+ * @format GUID
481
+ */
482
+ appId?: string;
483
+ /** @readonly */
484
+ identityType?: WebhookIdentityType;
485
+ }
486
+ /** @oneof */
487
+ export interface IdentificationDataIdOneOf {
488
+ /**
489
+ * ID of a site visitor that has not logged in to the site.
490
+ * @format GUID
491
+ */
492
+ anonymousVisitorId?: string;
493
+ /**
494
+ * ID of a site visitor that has logged in to the site.
495
+ * @format GUID
496
+ */
497
+ memberId?: string;
498
+ /**
499
+ * ID of a Wix user (site owner, contributor, etc.).
500
+ * @format GUID
501
+ */
502
+ wixUserId?: string;
503
+ /**
504
+ * ID of an app.
505
+ * @format GUID
506
+ */
507
+ appId?: string;
508
+ }
509
+ export declare enum WebhookIdentityType {
510
+ UNKNOWN = "UNKNOWN",
511
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
512
+ MEMBER = "MEMBER",
513
+ WIX_USER = "WIX_USER",
514
+ APP = "APP"
515
+ }
516
+ interface TagListNonNullableFields {
517
+ tagIds: string[];
518
+ }
519
+ interface TagsNonNullableFields {
520
+ privateTags?: TagListNonNullableFields;
521
+ tags?: TagListNonNullableFields;
522
+ }
523
+ interface OperationGroupNonNullableFields {
524
+ tags?: TagsNonNullableFields;
525
+ }
526
+ export interface CreateOperationGroupResponseNonNullableFields {
527
+ operationGroup?: OperationGroupNonNullableFields;
528
+ }
529
+ export interface GetOperationGroupResponseNonNullableFields {
530
+ operationGroup?: OperationGroupNonNullableFields;
531
+ }
532
+ export interface UpdateOperationGroupResponseNonNullableFields {
533
+ operationGroup?: OperationGroupNonNullableFields;
534
+ }
535
+ export interface QueryOperationGroupsResponseNonNullableFields {
536
+ operationGroups: OperationGroupNonNullableFields[];
537
+ }
538
+ export interface UpdateExtendedFieldsResponseNonNullableFields {
539
+ operationGroup?: OperationGroupNonNullableFields;
540
+ }
541
+ interface ApplicationErrorNonNullableFields {
542
+ code: string;
543
+ description: string;
544
+ }
545
+ interface ItemMetadataNonNullableFields {
546
+ originalIndex: number;
547
+ success: boolean;
548
+ error?: ApplicationErrorNonNullableFields;
549
+ }
550
+ interface BulkOperationGroupResultNonNullableFields {
551
+ itemMetadata?: ItemMetadataNonNullableFields;
552
+ item?: OperationGroupNonNullableFields;
553
+ }
554
+ interface BulkActionMetadataNonNullableFields {
555
+ totalSuccesses: number;
556
+ totalFailures: number;
557
+ undetailedFailures: number;
558
+ }
559
+ export interface BulkCreateOperationGroupsResponseNonNullableFields {
560
+ results: BulkOperationGroupResultNonNullableFields[];
561
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
562
+ }
563
+ interface BulkUpdateOperationGroupsResponseBulkOperationGroupResultNonNullableFields {
564
+ itemMetadata?: ItemMetadataNonNullableFields;
565
+ item?: OperationGroupNonNullableFields;
566
+ }
567
+ export interface BulkUpdateOperationGroupsResponseNonNullableFields {
568
+ results: BulkUpdateOperationGroupsResponseBulkOperationGroupResultNonNullableFields[];
569
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
570
+ }
571
+ interface BulkDeleteOperationGroupsResponseBulkOperationGroupResultNonNullableFields {
572
+ itemMetadata?: ItemMetadataNonNullableFields;
573
+ }
574
+ export interface BulkDeleteOperationGroupsResponseNonNullableFields {
575
+ results: BulkDeleteOperationGroupsResponseBulkOperationGroupResultNonNullableFields[];
576
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
577
+ }
578
+ interface BulkUpdateOperationGroupTagsResultNonNullableFields {
579
+ itemMetadata?: ItemMetadataNonNullableFields;
580
+ }
581
+ export interface BulkUpdateOperationGroupTagsResponseNonNullableFields {
582
+ results: BulkUpdateOperationGroupTagsResultNonNullableFields[];
583
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
584
+ }
585
+ export interface BulkUpdateOperationGroupTagsByFilterResponseNonNullableFields {
586
+ jobId: string;
587
+ }
588
+ 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-v1-operation-group-operation-groups.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restaurants-v1-operation-group-operation-groups.types.js","sourceRoot":"","sources":["../../../src/restaurants-v1-operation-group-operation-groups.types.ts"],"names":[],"mappings":"AAgLA,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AA2XD,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"}