@wix/auto_sdk_restaurants_sections 1.0.13 → 1.0.15

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 (129) hide show
  1. package/build/{cjs/src/restaurants-menus-v1-section-sections.public.d.ts → index.d.mts} +36 -19
  2. package/build/{internal/cjs/src/restaurants-menus-v1-section-sections.public.d.ts → index.d.ts} +36 -19
  3. package/build/index.js +1118 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +1080 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/{es/src/restaurants-menus-v1-section-sections.public.d.ts → index.d.mts} +36 -19
  8. package/build/{es/src/restaurants-menus-v1-section-sections.public.d.ts → internal/index.d.ts} +36 -19
  9. package/build/internal/index.js +1118 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +1080 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +357 -0
  14. package/build/internal/meta.d.ts +357 -0
  15. package/build/internal/meta.js +706 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +670 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/internal/{cjs/src/restaurants-menus-v1-section-sections.universal.d.ts → restaurants-menus-v1-section-sections.universal-BZUvATJu.d.mts} +79 -307
  20. package/build/internal/{es/src/restaurants-menus-v1-section-sections.universal.d.ts → restaurants-menus-v1-section-sections.universal-BZUvATJu.d.ts} +79 -307
  21. package/build/meta.d.mts +357 -0
  22. package/build/meta.d.ts +357 -0
  23. package/build/meta.js +706 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +670 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{cjs/src/restaurants-menus-v1-section-sections.universal.d.ts → restaurants-menus-v1-section-sections.universal-BZUvATJu.d.mts} +79 -307
  28. package/build/{es/src/restaurants-menus-v1-section-sections.universal.d.ts → restaurants-menus-v1-section-sections.universal-BZUvATJu.d.ts} +79 -307
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/restaurants-menus-v1-section-sections.context.d.ts +0 -26
  40. package/build/cjs/src/restaurants-menus-v1-section-sections.context.js +0 -31
  41. package/build/cjs/src/restaurants-menus-v1-section-sections.context.js.map +0 -1
  42. package/build/cjs/src/restaurants-menus-v1-section-sections.http.d.ts +0 -72
  43. package/build/cjs/src/restaurants-menus-v1-section-sections.http.js +0 -529
  44. package/build/cjs/src/restaurants-menus-v1-section-sections.http.js.map +0 -1
  45. package/build/cjs/src/restaurants-menus-v1-section-sections.meta.d.ts +0 -30
  46. package/build/cjs/src/restaurants-menus-v1-section-sections.meta.js +0 -218
  47. package/build/cjs/src/restaurants-menus-v1-section-sections.meta.js.map +0 -1
  48. package/build/cjs/src/restaurants-menus-v1-section-sections.public.js +0 -125
  49. package/build/cjs/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
  50. package/build/cjs/src/restaurants-menus-v1-section-sections.types.d.ts +0 -610
  51. package/build/cjs/src/restaurants-menus-v1-section-sections.types.js +0 -17
  52. package/build/cjs/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
  53. package/build/cjs/src/restaurants-menus-v1-section-sections.universal.js +0 -587
  54. package/build/cjs/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/src/restaurants-menus-v1-section-sections.context.d.ts +0 -26
  65. package/build/es/src/restaurants-menus-v1-section-sections.context.js +0 -26
  66. package/build/es/src/restaurants-menus-v1-section-sections.context.js.map +0 -1
  67. package/build/es/src/restaurants-menus-v1-section-sections.http.d.ts +0 -72
  68. package/build/es/src/restaurants-menus-v1-section-sections.http.js +0 -516
  69. package/build/es/src/restaurants-menus-v1-section-sections.http.js.map +0 -1
  70. package/build/es/src/restaurants-menus-v1-section-sections.meta.d.ts +0 -30
  71. package/build/es/src/restaurants-menus-v1-section-sections.meta.js +0 -182
  72. package/build/es/src/restaurants-menus-v1-section-sections.meta.js.map +0 -1
  73. package/build/es/src/restaurants-menus-v1-section-sections.public.js +0 -110
  74. package/build/es/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
  75. package/build/es/src/restaurants-menus-v1-section-sections.types.d.ts +0 -610
  76. package/build/es/src/restaurants-menus-v1-section-sections.types.js +0 -14
  77. package/build/es/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
  78. package/build/es/src/restaurants-menus-v1-section-sections.universal.js +0 -551
  79. package/build/es/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
  80. package/build/internal/cjs/index.d.ts +0 -1
  81. package/build/internal/cjs/index.js +0 -18
  82. package/build/internal/cjs/index.js.map +0 -1
  83. package/build/internal/cjs/index.typings.d.ts +0 -1
  84. package/build/internal/cjs/index.typings.js +0 -18
  85. package/build/internal/cjs/index.typings.js.map +0 -1
  86. package/build/internal/cjs/meta.d.ts +0 -1
  87. package/build/internal/cjs/meta.js +0 -18
  88. package/build/internal/cjs/meta.js.map +0 -1
  89. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.d.ts +0 -26
  90. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.js +0 -31
  91. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.js.map +0 -1
  92. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.d.ts +0 -72
  93. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.js +0 -529
  94. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.js.map +0 -1
  95. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.d.ts +0 -30
  96. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.js +0 -218
  97. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.js.map +0 -1
  98. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.public.js +0 -125
  99. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
  100. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.d.ts +0 -610
  101. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.js +0 -17
  102. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
  103. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.universal.js +0 -587
  104. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
  105. package/build/internal/es/index.d.ts +0 -1
  106. package/build/internal/es/index.js +0 -2
  107. package/build/internal/es/index.js.map +0 -1
  108. package/build/internal/es/index.typings.d.ts +0 -1
  109. package/build/internal/es/index.typings.js +0 -2
  110. package/build/internal/es/index.typings.js.map +0 -1
  111. package/build/internal/es/meta.d.ts +0 -1
  112. package/build/internal/es/meta.js +0 -2
  113. package/build/internal/es/meta.js.map +0 -1
  114. package/build/internal/es/src/restaurants-menus-v1-section-sections.context.d.ts +0 -26
  115. package/build/internal/es/src/restaurants-menus-v1-section-sections.context.js +0 -26
  116. package/build/internal/es/src/restaurants-menus-v1-section-sections.context.js.map +0 -1
  117. package/build/internal/es/src/restaurants-menus-v1-section-sections.http.d.ts +0 -72
  118. package/build/internal/es/src/restaurants-menus-v1-section-sections.http.js +0 -516
  119. package/build/internal/es/src/restaurants-menus-v1-section-sections.http.js.map +0 -1
  120. package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.d.ts +0 -30
  121. package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.js +0 -182
  122. package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.js.map +0 -1
  123. package/build/internal/es/src/restaurants-menus-v1-section-sections.public.js +0 -110
  124. package/build/internal/es/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
  125. package/build/internal/es/src/restaurants-menus-v1-section-sections.types.d.ts +0 -610
  126. package/build/internal/es/src/restaurants-menus-v1-section-sections.types.js +0 -14
  127. package/build/internal/es/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
  128. package/build/internal/es/src/restaurants-menus-v1-section-sections.universal.js +0 -551
  129. package/build/internal/es/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
@@ -1,610 +0,0 @@
1
- export interface Section {
2
- /**
3
- * Section ID.
4
- * @format GUID
5
- * @readonly
6
- */
7
- id?: string | null;
8
- /**
9
- * Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section.
10
- * @readonly
11
- */
12
- revision?: string | null;
13
- /**
14
- * Date and time the section was created.
15
- * @readonly
16
- */
17
- createdDate?: Date | null;
18
- /**
19
- * Date and time the section was updated.
20
- * @readonly
21
- */
22
- updatedDate?: Date | null;
23
- /**
24
- * Section name.
25
- * @minLength 1
26
- * @maxLength 500
27
- */
28
- name?: string;
29
- /**
30
- * Section description.
31
- * @maxLength 1500
32
- */
33
- description?: string | null;
34
- /** Main section image. */
35
- image?: Image;
36
- /**
37
- * Additional section images.
38
- * @maxSize 100
39
- */
40
- additionalImages?: Image[];
41
- /**
42
- * Item IDs.
43
- * @format GUID
44
- * @maxSize 300
45
- */
46
- itemIds?: string[];
47
- /** Extended fields. */
48
- extendedFields?: ExtendedFields;
49
- /** Whether the section is visible in the menu for site visitors. */
50
- visible?: boolean | null;
51
- }
52
- export interface Image {
53
- /** WixMedia image ID. */
54
- id?: string;
55
- /** Image URL. */
56
- url?: string;
57
- /** Original image height. */
58
- height?: number;
59
- /** Original image width. */
60
- width?: number;
61
- /** Image alt text. */
62
- altText?: string | null;
63
- /** Image filename. */
64
- filename?: string | null;
65
- }
66
- export interface ExtendedFields {
67
- /**
68
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
69
- * The value of each key is structured according to the schema defined when the extended fields were configured.
70
- *
71
- * You can only access fields for which you have the appropriate permissions.
72
- *
73
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
74
- */
75
- namespaces?: Record<string, Record<string, any>>;
76
- }
77
- export interface DuplicateSectionRequest {
78
- /**
79
- * Section id to be duplicated.
80
- * @format GUID
81
- */
82
- id: string;
83
- /**
84
- * Business location ids to duplicate the section to.
85
- * @format GUID
86
- * @maxSize 100
87
- */
88
- businessLocationIds?: string[] | null;
89
- /** Indicates whether sub-entities (such as items) should be duplicated as well. */
90
- duplicateSubEntities?: boolean | null;
91
- }
92
- export interface DuplicateSectionResponse {
93
- /** @format GUID */
94
- sectionId?: string[];
95
- }
96
- export interface InvalidateCache extends InvalidateCacheGetByOneOf {
97
- /**
98
- * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
99
- * @format GUID
100
- */
101
- metaSiteId?: string;
102
- /**
103
- * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
104
- * @format GUID
105
- */
106
- siteId?: string;
107
- /** Invalidate by App */
108
- app?: App;
109
- /** Invalidate by page id */
110
- page?: Page;
111
- /** Invalidate by URI path */
112
- uri?: URI;
113
- /** Invalidate by file (for media files such as PDFs) */
114
- file?: File;
115
- /**
116
- * tell us why you're invalidating the cache. You don't need to add your app name
117
- * @maxLength 256
118
- */
119
- reason?: string | null;
120
- /** Is local DS */
121
- localDc?: boolean;
122
- hardPurge?: boolean;
123
- }
124
- /** @oneof */
125
- export interface InvalidateCacheGetByOneOf {
126
- /**
127
- * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
128
- * @format GUID
129
- */
130
- metaSiteId?: string;
131
- /**
132
- * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
133
- * @format GUID
134
- */
135
- siteId?: string;
136
- /** Invalidate by App */
137
- app?: App;
138
- /** Invalidate by page id */
139
- page?: Page;
140
- /** Invalidate by URI path */
141
- uri?: URI;
142
- /** Invalidate by file (for media files such as PDFs) */
143
- file?: File;
144
- }
145
- export interface App {
146
- /**
147
- * The AppDefId
148
- * @minLength 1
149
- */
150
- appDefId?: string;
151
- /**
152
- * The instance Id
153
- * @format GUID
154
- */
155
- instanceId?: string;
156
- }
157
- export interface Page {
158
- /**
159
- * the msid the page is on
160
- * @format GUID
161
- */
162
- metaSiteId?: string;
163
- /**
164
- * Invalidate by Page ID
165
- * @minLength 1
166
- */
167
- pageId?: string;
168
- }
169
- export interface URI {
170
- /**
171
- * the msid the URI is on
172
- * @format GUID
173
- */
174
- metaSiteId?: string;
175
- /**
176
- * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes
177
- * @minLength 1
178
- */
179
- uriPath?: string;
180
- }
181
- export interface File {
182
- /**
183
- * the msid the file is related to
184
- * @format GUID
185
- */
186
- metaSiteId?: string;
187
- /**
188
- * Invalidate by filename (for media files such as PDFs)
189
- * @minLength 1
190
- * @maxLength 256
191
- */
192
- fileName?: string;
193
- }
194
- export interface DeleteLocationIdFromItems {
195
- /** @format GUID */
196
- businessLocationId?: string;
197
- /**
198
- * @format GUID
199
- * @maxSize 1000
200
- */
201
- itemIds?: string[];
202
- }
203
- export interface CreateSectionRequest {
204
- /** Section details. */
205
- section: Section;
206
- }
207
- export interface CreateSectionResponse {
208
- /** Section. */
209
- section?: Section;
210
- }
211
- export interface BulkCreateSectionsRequest {
212
- /**
213
- * Sections details.
214
- * @maxSize 100
215
- */
216
- sections: Section[];
217
- /** Whether to receive the created sections in the response. */
218
- returnEntity?: boolean;
219
- }
220
- export interface BulkCreateSectionsResponse {
221
- /** Information about the created sections. */
222
- results?: BulkCreateSectionResult[];
223
- /** Metadata for the API call. */
224
- bulkActionMetadata?: BulkActionMetadata;
225
- }
226
- export interface BulkCreateSectionResult {
227
- /** Metadata for created sections. */
228
- itemMetadata?: ItemMetadata;
229
- /** Created section. Only returned if `returnEntity` is set to `true`. */
230
- item?: Section;
231
- }
232
- export interface ItemMetadata {
233
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
234
- id?: string | null;
235
- /** Index of the item within the request array. Allows for correlation between request and response items. */
236
- originalIndex?: number;
237
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
238
- success?: boolean;
239
- /** Details about the error in case of failure. */
240
- error?: ApplicationError;
241
- }
242
- export interface ApplicationError {
243
- /** Error code. */
244
- code?: string;
245
- /** Description of the error. */
246
- description?: string;
247
- /** Data related to the error. */
248
- data?: Record<string, any> | null;
249
- }
250
- export interface BulkActionMetadata {
251
- /** Number of items that were successfully processed. */
252
- totalSuccesses?: number;
253
- /** Number of items that couldn't be processed. */
254
- totalFailures?: number;
255
- /** Number of failures without details because detailed failure threshold was exceeded. */
256
- undetailedFailures?: number;
257
- }
258
- export interface GetSectionRequest {
259
- /**
260
- * Section ID.
261
- * @format GUID
262
- */
263
- sectionId: string;
264
- }
265
- export interface GetSectionResponse {
266
- /** Section. */
267
- section?: Section;
268
- }
269
- export interface ListSectionsRequest {
270
- /**
271
- * Section IDs.
272
- * @format GUID
273
- * @maxSize 500
274
- */
275
- sectionIds?: string[];
276
- /** The metadata of the paginated results. */
277
- paging?: CursorPaging;
278
- /** Whether to return only sections that are visible to site visitors. */
279
- onlyVisible?: boolean | null;
280
- }
281
- export interface CursorPaging {
282
- /**
283
- * Number of items to load.
284
- * @max 500
285
- */
286
- limit?: number | null;
287
- /**
288
- * Pointer to the next or previous page in the list of results.
289
- *
290
- * You can get the relevant cursor token
291
- * from the `pagingMetadata` object in the previous call's response.
292
- * Not relevant for the first request.
293
- */
294
- cursor?: string | null;
295
- }
296
- export interface ListSectionsResponse {
297
- /** Retrieved sections. */
298
- sections?: Section[];
299
- /** The metadata of the paginated results. */
300
- pagingMetadata?: CursorPagingMetadata;
301
- }
302
- export interface CursorPagingMetadata {
303
- /** Number of items returned in the response. */
304
- count?: number | null;
305
- /** Offset that was requested. */
306
- cursors?: Cursors;
307
- /**
308
- * Indicates if there are more results after the current page.
309
- * If `true`, another page of results can be retrieved.
310
- * If `false`, this is the last page.
311
- */
312
- hasNext?: boolean | null;
313
- }
314
- export interface Cursors {
315
- /** Cursor pointing to next page in the list of results. */
316
- next?: string | null;
317
- /** Cursor pointing to previous page in the list of results. */
318
- prev?: string | null;
319
- }
320
- export interface QuerySectionsRequest {
321
- /** Query options. */
322
- query?: CursorQuery;
323
- }
324
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
325
- /** 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`. */
326
- cursorPaging?: CursorPaging;
327
- /**
328
- * Filter object in the following format:
329
- * `"filter" : {
330
- * "fieldName1": "value1",
331
- * "fieldName2":{"$operator":"value2"}
332
- * }`
333
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
334
- */
335
- filter?: Record<string, any> | null;
336
- /**
337
- * Sort object in the following format:
338
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
339
- */
340
- sort?: Sorting[];
341
- }
342
- /** @oneof */
343
- export interface CursorQueryPagingMethodOneOf {
344
- /** 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`. */
345
- cursorPaging?: CursorPaging;
346
- }
347
- export interface Sorting {
348
- /**
349
- * Name of the field to sort by.
350
- * @maxLength 512
351
- */
352
- fieldName?: string;
353
- /** Sort order. */
354
- order?: SortOrder;
355
- }
356
- export declare enum SortOrder {
357
- ASC = "ASC",
358
- DESC = "DESC"
359
- }
360
- export interface QuerySectionsResponse {
361
- /** Retrieved sections. */
362
- sections?: Section[];
363
- /** The metadata of the paginated results. */
364
- pagingMetadata?: CursorPagingMetadata;
365
- }
366
- export interface UpdateSectionRequest {
367
- /** Section update. */
368
- section: Section;
369
- }
370
- export interface UpdateSectionResponse {
371
- /** Updated section. */
372
- section?: Section;
373
- }
374
- export interface BulkUpdateSectionRequest {
375
- /**
376
- * Sections to update.
377
- * @minSize 1
378
- * @maxSize 100
379
- */
380
- sections: MaskedSection[];
381
- /** Whether to receive the updated sections in the response. */
382
- returnEntity?: boolean;
383
- }
384
- export interface MaskedSection {
385
- /** Section update. */
386
- section?: Section;
387
- /** Explicit list of fields to update. */
388
- mask?: string[];
389
- }
390
- export interface BulkUpdateSectionResponse {
391
- /**
392
- * Information about the updated sections.
393
- * @minSize 1
394
- * @maxSize 100
395
- */
396
- results?: BulkSectionResult[];
397
- /** Metadata for the API call. */
398
- bulkActionMetadata?: BulkActionMetadata;
399
- }
400
- export interface BulkSectionResult {
401
- /** Whether to receive the updated sections in the response. */
402
- sectionMetadata?: ItemMetadata;
403
- /** Updated section. Only returned if `returnEntity` is set to `true`. */
404
- section?: Section;
405
- }
406
- export interface DeleteSectionRequest {
407
- /**
408
- * Section ID.
409
- * @format GUID
410
- */
411
- sectionId: string;
412
- }
413
- export interface DeleteSectionResponse {
414
- }
415
- export interface BulkDeleteSectionsRequest {
416
- /**
417
- * Section IDs.
418
- * @format GUID
419
- */
420
- ids: string[];
421
- }
422
- export interface BulkDeleteSectionsResponse {
423
- /** Information about the deleted sections. */
424
- results?: BulkDeleteSectionResult[];
425
- /** Metadata for the API call. */
426
- bulkActionMetadata?: BulkActionMetadata;
427
- }
428
- export interface BulkDeleteSectionResult {
429
- /** Metadata for deleted sections. */
430
- itemMetadata?: ItemMetadata;
431
- }
432
- export interface CloneSectionsRequest {
433
- /**
434
- * The MetaSiteId to clone from.
435
- * @format GUID
436
- */
437
- metaSiteId?: string;
438
- }
439
- export interface CloneSectionsResponse {
440
- }
441
- export interface DomainEvent extends DomainEventBodyOneOf {
442
- createdEvent?: EntityCreatedEvent;
443
- updatedEvent?: EntityUpdatedEvent;
444
- deletedEvent?: EntityDeletedEvent;
445
- actionEvent?: ActionEvent;
446
- /**
447
- * Unique event ID.
448
- * Allows clients to ignore duplicate webhooks.
449
- */
450
- id?: string;
451
- /**
452
- * Assumes actions are also always typed to an entity_type
453
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
454
- */
455
- entityFqdn?: string;
456
- /**
457
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
458
- * This is although the created/updated/deleted notion is duplication of the oneof types
459
- * Example: created/updated/deleted/started/completed/email_opened
460
- */
461
- slug?: string;
462
- /** ID of the entity associated with the event. */
463
- entityId?: string;
464
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
465
- eventTime?: Date | null;
466
- /**
467
- * Whether the event was triggered as a result of a privacy regulation application
468
- * (for example, GDPR).
469
- */
470
- triggeredByAnonymizeRequest?: boolean | null;
471
- /** If present, indicates the action that triggered the event. */
472
- originatedFrom?: string | null;
473
- /**
474
- * A sequence number defining the order of updates to the underlying entity.
475
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
476
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
477
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
478
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
479
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
480
- */
481
- entityEventSequence?: string | null;
482
- }
483
- /** @oneof */
484
- export interface DomainEventBodyOneOf {
485
- createdEvent?: EntityCreatedEvent;
486
- updatedEvent?: EntityUpdatedEvent;
487
- deletedEvent?: EntityDeletedEvent;
488
- actionEvent?: ActionEvent;
489
- }
490
- export interface EntityCreatedEvent {
491
- entityAsJson?: string;
492
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
493
- restoreInfo?: RestoreInfo;
494
- }
495
- export interface RestoreInfo {
496
- deletedDate?: Date | null;
497
- }
498
- export interface EntityUpdatedEvent {
499
- /**
500
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
501
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
502
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
503
- */
504
- currentEntityAsJson?: string;
505
- }
506
- export interface EntityDeletedEvent {
507
- /** Entity that was deleted */
508
- deletedEntityAsJson?: string | null;
509
- }
510
- export interface ActionEvent {
511
- bodyAsJson?: string;
512
- }
513
- export interface Empty {
514
- }
515
- export interface BulkUpdateBusinessLocationIdRequest {
516
- /**
517
- * section ids
518
- * @format GUID
519
- * @minSize 1
520
- * @maxSize 100
521
- */
522
- sectionIds?: string[];
523
- /**
524
- * Business Location Id.
525
- * @format GUID
526
- */
527
- businessLocationId?: string;
528
- }
529
- export interface BulkUpdateBusinessLocationIdResponse {
530
- /**
531
- * Information about the updated sections.
532
- * @minSize 1
533
- * @maxSize 100
534
- */
535
- results?: BulkItemResult[];
536
- }
537
- export interface BulkItemResult {
538
- /** Metadata for item update. */
539
- itemMetadata?: ItemMetadata;
540
- }
541
- export interface MessageEnvelope {
542
- /**
543
- * App instance ID.
544
- * @format GUID
545
- */
546
- instanceId?: string | null;
547
- /**
548
- * Event type.
549
- * @maxLength 150
550
- */
551
- eventType?: string;
552
- /** The identification type and identity data. */
553
- identity?: IdentificationData;
554
- /** Stringify payload. */
555
- data?: string;
556
- }
557
- export interface IdentificationData extends IdentificationDataIdOneOf {
558
- /**
559
- * ID of a site visitor that has not logged in to the site.
560
- * @format GUID
561
- */
562
- anonymousVisitorId?: string;
563
- /**
564
- * ID of a site visitor that has logged in to the site.
565
- * @format GUID
566
- */
567
- memberId?: string;
568
- /**
569
- * ID of a Wix user (site owner, contributor, etc.).
570
- * @format GUID
571
- */
572
- wixUserId?: string;
573
- /**
574
- * ID of an app.
575
- * @format GUID
576
- */
577
- appId?: string;
578
- /** @readonly */
579
- identityType?: WebhookIdentityType;
580
- }
581
- /** @oneof */
582
- export interface IdentificationDataIdOneOf {
583
- /**
584
- * ID of a site visitor that has not logged in to the site.
585
- * @format GUID
586
- */
587
- anonymousVisitorId?: string;
588
- /**
589
- * ID of a site visitor that has logged in to the site.
590
- * @format GUID
591
- */
592
- memberId?: string;
593
- /**
594
- * ID of a Wix user (site owner, contributor, etc.).
595
- * @format GUID
596
- */
597
- wixUserId?: string;
598
- /**
599
- * ID of an app.
600
- * @format GUID
601
- */
602
- appId?: string;
603
- }
604
- export declare enum WebhookIdentityType {
605
- UNKNOWN = "UNKNOWN",
606
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
607
- MEMBER = "MEMBER",
608
- WIX_USER = "WIX_USER",
609
- APP = "APP"
610
- }
@@ -1,14 +0,0 @@
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-section-sections.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"restaurants-menus-v1-section-sections.types.js","sourceRoot":"","sources":["../../../src/restaurants-menus-v1-section-sections.types.ts"],"names":[],"mappings":"AAkYA,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AA+QD,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"}