@wix/auto_sdk_restaurants_sections 1.0.0 → 1.0.2

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 (69) hide show
  1. package/build/cjs/src/restaurants-menus-v1-section-sections.context.d.ts +3 -2
  2. package/build/cjs/src/restaurants-menus-v1-section-sections.context.js +2 -1
  3. package/build/cjs/src/restaurants-menus-v1-section-sections.context.js.map +1 -1
  4. package/build/cjs/src/restaurants-menus-v1-section-sections.http.d.ts +1 -1
  5. package/build/cjs/src/restaurants-menus-v1-section-sections.http.js +20 -2
  6. package/build/cjs/src/restaurants-menus-v1-section-sections.http.js.map +1 -1
  7. package/build/cjs/src/restaurants-menus-v1-section-sections.meta.d.ts +3 -0
  8. package/build/cjs/src/restaurants-menus-v1-section-sections.meta.js +20 -1
  9. package/build/cjs/src/restaurants-menus-v1-section-sections.meta.js.map +1 -1
  10. package/build/cjs/src/restaurants-menus-v1-section-sections.public.d.ts +7 -3
  11. package/build/cjs/src/restaurants-menus-v1-section-sections.public.js +7 -1
  12. package/build/cjs/src/restaurants-menus-v1-section-sections.public.js.map +1 -1
  13. package/build/cjs/src/restaurants-menus-v1-section-sections.types.d.ts +203 -37
  14. package/build/cjs/src/restaurants-menus-v1-section-sections.types.js.map +1 -1
  15. package/build/cjs/src/restaurants-menus-v1-section-sections.universal.d.ts +298 -69
  16. package/build/cjs/src/restaurants-menus-v1-section-sections.universal.js +59 -26
  17. package/build/cjs/src/restaurants-menus-v1-section-sections.universal.js.map +1 -1
  18. package/build/es/src/restaurants-menus-v1-section-sections.context.d.ts +3 -2
  19. package/build/es/src/restaurants-menus-v1-section-sections.context.js +2 -1
  20. package/build/es/src/restaurants-menus-v1-section-sections.context.js.map +1 -1
  21. package/build/es/src/restaurants-menus-v1-section-sections.http.d.ts +1 -1
  22. package/build/es/src/restaurants-menus-v1-section-sections.http.js +18 -1
  23. package/build/es/src/restaurants-menus-v1-section-sections.http.js.map +1 -1
  24. package/build/es/src/restaurants-menus-v1-section-sections.meta.d.ts +3 -0
  25. package/build/es/src/restaurants-menus-v1-section-sections.meta.js +18 -0
  26. package/build/es/src/restaurants-menus-v1-section-sections.meta.js.map +1 -1
  27. package/build/es/src/restaurants-menus-v1-section-sections.public.d.ts +7 -3
  28. package/build/es/src/restaurants-menus-v1-section-sections.public.js +6 -1
  29. package/build/es/src/restaurants-menus-v1-section-sections.public.js.map +1 -1
  30. package/build/es/src/restaurants-menus-v1-section-sections.types.d.ts +203 -37
  31. package/build/es/src/restaurants-menus-v1-section-sections.types.js.map +1 -1
  32. package/build/es/src/restaurants-menus-v1-section-sections.universal.d.ts +298 -69
  33. package/build/es/src/restaurants-menus-v1-section-sections.universal.js +57 -25
  34. package/build/es/src/restaurants-menus-v1-section-sections.universal.js.map +1 -1
  35. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.d.ts +3 -2
  36. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.js +2 -1
  37. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.js.map +1 -1
  38. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.d.ts +1 -1
  39. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.js +20 -2
  40. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.js.map +1 -1
  41. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.d.ts +3 -0
  42. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.js +20 -1
  43. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.js.map +1 -1
  44. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.public.d.ts +7 -3
  45. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.public.js +7 -1
  46. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.public.js.map +1 -1
  47. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.d.ts +203 -37
  48. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.js.map +1 -1
  49. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.universal.d.ts +298 -69
  50. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.universal.js +59 -26
  51. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.universal.js.map +1 -1
  52. package/build/internal/es/src/restaurants-menus-v1-section-sections.context.d.ts +3 -2
  53. package/build/internal/es/src/restaurants-menus-v1-section-sections.context.js +2 -1
  54. package/build/internal/es/src/restaurants-menus-v1-section-sections.context.js.map +1 -1
  55. package/build/internal/es/src/restaurants-menus-v1-section-sections.http.d.ts +1 -1
  56. package/build/internal/es/src/restaurants-menus-v1-section-sections.http.js +18 -1
  57. package/build/internal/es/src/restaurants-menus-v1-section-sections.http.js.map +1 -1
  58. package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.d.ts +3 -0
  59. package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.js +18 -0
  60. package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.js.map +1 -1
  61. package/build/internal/es/src/restaurants-menus-v1-section-sections.public.d.ts +7 -3
  62. package/build/internal/es/src/restaurants-menus-v1-section-sections.public.js +6 -1
  63. package/build/internal/es/src/restaurants-menus-v1-section-sections.public.js.map +1 -1
  64. package/build/internal/es/src/restaurants-menus-v1-section-sections.types.d.ts +203 -37
  65. package/build/internal/es/src/restaurants-menus-v1-section-sections.types.js.map +1 -1
  66. package/build/internal/es/src/restaurants-menus-v1-section-sections.universal.d.ts +298 -69
  67. package/build/internal/es/src/restaurants-menus-v1-section-sections.universal.js +57 -25
  68. package/build/internal/es/src/restaurants-menus-v1-section-sections.universal.js.map +1 -1
  69. package/package.json +2 -2
@@ -1,6 +1,7 @@
1
1
  export interface Section {
2
2
  /**
3
3
  * Section ID.
4
+ * @format GUID
4
5
  * @readonly
5
6
  */
6
7
  id?: string | null;
@@ -19,15 +20,29 @@ export interface Section {
19
20
  * @readonly
20
21
  */
21
22
  updatedDate?: Date | null;
22
- /** Section name. */
23
+ /**
24
+ * Section name.
25
+ * @minLength 1
26
+ * @maxLength 500
27
+ */
23
28
  name?: string;
24
- /** Section description. */
29
+ /**
30
+ * Section description.
31
+ * @maxLength 1500
32
+ */
25
33
  description?: string | null;
26
34
  /** Main section image. */
27
35
  image?: Image;
28
- /** Additional section images. */
36
+ /**
37
+ * Additional section images.
38
+ * @maxSize 100
39
+ */
29
40
  additionalImages?: Image[];
30
- /** Item IDs. */
41
+ /**
42
+ * Item IDs.
43
+ * @format GUID
44
+ * @maxSize 1000
45
+ */
31
46
  itemIds?: string[];
32
47
  /** Extended fields. */
33
48
  extendedFields?: ExtendedFields;
@@ -59,10 +74,35 @@ export interface ExtendedFields {
59
74
  */
60
75
  namespaces?: Record<string, Record<string, any>>;
61
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
+ }
62
96
  export interface InvalidateCache extends InvalidateCacheGetByOneOf {
63
- /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
97
+ /**
98
+ * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
99
+ * @format GUID
100
+ */
64
101
  metaSiteId?: string;
65
- /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
102
+ /**
103
+ * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
104
+ * @format GUID
105
+ */
66
106
  siteId?: string;
67
107
  /** Invalidate by App */
68
108
  app?: App;
@@ -72,7 +112,10 @@ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
72
112
  uri?: URI;
73
113
  /** Invalidate by file (for media files such as PDFs) */
74
114
  file?: File;
75
- /** tell us why you're invalidating the cache. You don't need to add your app name */
115
+ /**
116
+ * tell us why you're invalidating the cache. You don't need to add your app name
117
+ * @maxLength 256
118
+ */
76
119
  reason?: string | null;
77
120
  /** Is local DS */
78
121
  localDc?: boolean;
@@ -80,9 +123,15 @@ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
80
123
  }
81
124
  /** @oneof */
82
125
  export interface InvalidateCacheGetByOneOf {
83
- /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
126
+ /**
127
+ * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
128
+ * @format GUID
129
+ */
84
130
  metaSiteId?: string;
85
- /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
131
+ /**
132
+ * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
133
+ * @format GUID
134
+ */
86
135
  siteId?: string;
87
136
  /** Invalidate by App */
88
137
  app?: App;
@@ -94,27 +143,52 @@ export interface InvalidateCacheGetByOneOf {
94
143
  file?: File;
95
144
  }
96
145
  export interface App {
97
- /** The AppDefId */
146
+ /**
147
+ * The AppDefId
148
+ * @minLength 1
149
+ */
98
150
  appDefId?: string;
99
- /** The instance Id */
151
+ /**
152
+ * The instance Id
153
+ * @format GUID
154
+ */
100
155
  instanceId?: string;
101
156
  }
102
157
  export interface Page {
103
- /** the msid the page is on */
158
+ /**
159
+ * the msid the page is on
160
+ * @format GUID
161
+ */
104
162
  metaSiteId?: string;
105
- /** Invalidate by Page ID */
163
+ /**
164
+ * Invalidate by Page ID
165
+ * @minLength 1
166
+ */
106
167
  pageId?: string;
107
168
  }
108
169
  export interface URI {
109
- /** the msid the URI is on */
170
+ /**
171
+ * the msid the URI is on
172
+ * @format GUID
173
+ */
110
174
  metaSiteId?: string;
111
- /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
175
+ /**
176
+ * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes
177
+ * @minLength 1
178
+ */
112
179
  uriPath?: string;
113
180
  }
114
181
  export interface File {
115
- /** the msid the file is related to */
182
+ /**
183
+ * the msid the file is related to
184
+ * @format GUID
185
+ */
116
186
  metaSiteId?: string;
117
- /** Invalidate by filename (for media files such as PDFs) */
187
+ /**
188
+ * Invalidate by filename (for media files such as PDFs)
189
+ * @minLength 1
190
+ * @maxLength 256
191
+ */
118
192
  fileName?: string;
119
193
  }
120
194
  export interface CreateSectionRequest {
@@ -126,7 +200,10 @@ export interface CreateSectionResponse {
126
200
  section?: Section;
127
201
  }
128
202
  export interface BulkCreateSectionsRequest {
129
- /** Sections details. */
203
+ /**
204
+ * Sections details.
205
+ * @maxSize 100
206
+ */
130
207
  sections: Section[];
131
208
  /** Whether to receive the created sections in the response. */
132
209
  returnEntity?: boolean;
@@ -170,7 +247,10 @@ export interface BulkActionMetadata {
170
247
  undetailedFailures?: number;
171
248
  }
172
249
  export interface GetSectionRequest {
173
- /** Section ID. */
250
+ /**
251
+ * Section ID.
252
+ * @format GUID
253
+ */
174
254
  sectionId: string;
175
255
  }
176
256
  export interface GetSectionResponse {
@@ -178,7 +258,11 @@ export interface GetSectionResponse {
178
258
  section?: Section;
179
259
  }
180
260
  export interface ListSectionsRequest {
181
- /** Section IDs. */
261
+ /**
262
+ * Section IDs.
263
+ * @format GUID
264
+ * @maxSize 500
265
+ */
182
266
  sectionIds?: string[];
183
267
  /** The metadata of the paginated results. */
184
268
  paging?: CursorPaging;
@@ -186,7 +270,10 @@ export interface ListSectionsRequest {
186
270
  onlyVisible?: boolean | null;
187
271
  }
188
272
  export interface CursorPaging {
189
- /** Number of items to load. */
273
+ /**
274
+ * Number of items to load.
275
+ * @max 500
276
+ */
190
277
  limit?: number | null;
191
278
  /**
192
279
  * Pointer to the next or previous page in the list of results.
@@ -249,7 +336,10 @@ export interface CursorQueryPagingMethodOneOf {
249
336
  cursorPaging?: CursorPaging;
250
337
  }
251
338
  export interface Sorting {
252
- /** Name of the field to sort by. */
339
+ /**
340
+ * Name of the field to sort by.
341
+ * @maxLength 512
342
+ */
253
343
  fieldName?: string;
254
344
  /** Sort order. */
255
345
  order?: SortOrder;
@@ -273,7 +363,11 @@ export interface UpdateSectionResponse {
273
363
  section?: Section;
274
364
  }
275
365
  export interface BulkUpdateSectionRequest {
276
- /** Sections to update. */
366
+ /**
367
+ * Sections to update.
368
+ * @minSize 1
369
+ * @maxSize 100
370
+ */
277
371
  sections: MaskedSection[];
278
372
  /** Whether to receive the updated sections in the response. */
279
373
  returnEntity?: boolean;
@@ -285,7 +379,11 @@ export interface MaskedSection {
285
379
  mask?: string[];
286
380
  }
287
381
  export interface BulkUpdateSectionResponse {
288
- /** Information about the updated sections. */
382
+ /**
383
+ * Information about the updated sections.
384
+ * @minSize 1
385
+ * @maxSize 100
386
+ */
289
387
  results?: BulkSectionResult[];
290
388
  /** Metadata for the API call. */
291
389
  bulkActionMetadata?: BulkActionMetadata;
@@ -297,13 +395,19 @@ export interface BulkSectionResult {
297
395
  section?: Section;
298
396
  }
299
397
  export interface DeleteSectionRequest {
300
- /** Section ID. */
398
+ /**
399
+ * Section ID.
400
+ * @format GUID
401
+ */
301
402
  sectionId: string;
302
403
  }
303
404
  export interface DeleteSectionResponse {
304
405
  }
305
406
  export interface BulkDeleteSectionsRequest {
306
- /** Section IDs. */
407
+ /**
408
+ * Section IDs.
409
+ * @format GUID
410
+ */
307
411
  ids: string[];
308
412
  }
309
413
  export interface BulkDeleteSectionsResponse {
@@ -317,7 +421,10 @@ export interface BulkDeleteSectionResult {
317
421
  itemMetadata?: ItemMetadata;
318
422
  }
319
423
  export interface CloneSectionsRequest {
320
- /** The MetaSiteId to clone from. */
424
+ /**
425
+ * The MetaSiteId to clone from.
426
+ * @format GUID
427
+ */
321
428
  metaSiteId?: string;
322
429
  }
323
430
  export interface CloneSectionsResponse {
@@ -396,10 +503,42 @@ export interface ActionEvent {
396
503
  }
397
504
  export interface Empty {
398
505
  }
506
+ export interface BulkUpdateBusinessLocationIdRequest {
507
+ /**
508
+ * section ids
509
+ * @format GUID
510
+ * @minSize 1
511
+ * @maxSize 100
512
+ */
513
+ sectionIds?: string[];
514
+ /**
515
+ * Business Location Id.
516
+ * @format GUID
517
+ */
518
+ businessLocationId?: string;
519
+ }
520
+ export interface BulkUpdateBusinessLocationIdResponse {
521
+ /**
522
+ * Information about the updated sections.
523
+ * @minSize 1
524
+ * @maxSize 100
525
+ */
526
+ results?: BulkItemResult[];
527
+ }
528
+ export interface BulkItemResult {
529
+ /** Metadata for item update. */
530
+ itemMetadata?: ItemMetadata;
531
+ }
399
532
  export interface MessageEnvelope {
400
- /** App instance ID. */
533
+ /**
534
+ * App instance ID.
535
+ * @format GUID
536
+ */
401
537
  instanceId?: string | null;
402
- /** Event type. */
538
+ /**
539
+ * Event type.
540
+ * @maxLength 150
541
+ */
403
542
  eventType?: string;
404
543
  /** The identification type and identity data. */
405
544
  identity?: IdentificationData;
@@ -407,26 +546,50 @@ export interface MessageEnvelope {
407
546
  data?: string;
408
547
  }
409
548
  export interface IdentificationData extends IdentificationDataIdOneOf {
410
- /** ID of a site visitor that has not logged in to the site. */
549
+ /**
550
+ * ID of a site visitor that has not logged in to the site.
551
+ * @format GUID
552
+ */
411
553
  anonymousVisitorId?: string;
412
- /** ID of a site visitor that has logged in to the site. */
554
+ /**
555
+ * ID of a site visitor that has logged in to the site.
556
+ * @format GUID
557
+ */
413
558
  memberId?: string;
414
- /** ID of a Wix user (site owner, contributor, etc.). */
559
+ /**
560
+ * ID of a Wix user (site owner, contributor, etc.).
561
+ * @format GUID
562
+ */
415
563
  wixUserId?: string;
416
- /** ID of an app. */
564
+ /**
565
+ * ID of an app.
566
+ * @format GUID
567
+ */
417
568
  appId?: string;
418
569
  /** @readonly */
419
570
  identityType?: WebhookIdentityType;
420
571
  }
421
572
  /** @oneof */
422
573
  export interface IdentificationDataIdOneOf {
423
- /** ID of a site visitor that has not logged in to the site. */
574
+ /**
575
+ * ID of a site visitor that has not logged in to the site.
576
+ * @format GUID
577
+ */
424
578
  anonymousVisitorId?: string;
425
- /** ID of a site visitor that has logged in to the site. */
579
+ /**
580
+ * ID of a site visitor that has logged in to the site.
581
+ * @format GUID
582
+ */
426
583
  memberId?: string;
427
- /** ID of a Wix user (site owner, contributor, etc.). */
584
+ /**
585
+ * ID of a Wix user (site owner, contributor, etc.).
586
+ * @format GUID
587
+ */
428
588
  wixUserId?: string;
429
- /** ID of an app. */
589
+ /**
590
+ * ID of an app.
591
+ * @format GUID
592
+ */
430
593
  appId?: string;
431
594
  }
432
595
  export declare enum WebhookIdentityType {
@@ -436,6 +599,9 @@ export declare enum WebhookIdentityType {
436
599
  WIX_USER = "WIX_USER",
437
600
  APP = "APP"
438
601
  }
602
+ export interface DuplicateSectionResponseNonNullableFields {
603
+ sectionId: string[];
604
+ }
439
605
  interface ImageNonNullableFields {
440
606
  id: string;
441
607
  url: string;
@@ -1 +1 @@
1
- {"version":3,"file":"restaurants-menus-v1-section-sections.types.js","sourceRoot":"","sources":["../../../../src/restaurants-menus-v1-section-sections.types.ts"],"names":[],"mappings":";;;AA4RA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAmMD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"restaurants-menus-v1-section-sections.types.js","sourceRoot":"","sources":["../../../../src/restaurants-menus-v1-section-sections.types.ts"],"names":[],"mappings":";;;AAwXA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AA+QD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}