@wix/auto_sdk_seatings_seating-reservation 1.0.39 → 1.0.40

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.
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
18
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
29
 
20
30
  // index.ts
@@ -297,6 +307,832 @@ function getSeatingReservationSummary(payload) {
297
307
 
298
308
  // src/seating-v1-seating-reservation-seating-reservation.universal.ts
299
309
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
310
+
311
+ // src/seating-v1-seating-reservation-seating-reservation.schemas.ts
312
+ var z = __toESM(require("zod"));
313
+ var CreateSeatingReservationRequest = z.object({
314
+ options: z.object({
315
+ reservation: z.object({
316
+ _id: z.string().describe("Reservation ID.").regex(
317
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
318
+ "Must be a valid GUID"
319
+ ).optional().nullable(),
320
+ seatingPlanId: z.string().describe("Seating plan ID.").regex(
321
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
322
+ "Must be a valid GUID"
323
+ ).optional().nullable(),
324
+ externalSeatingPlanId: z.string().describe(
325
+ "External seating plan ID used for integration with third-party venue systems."
326
+ ).min(1).max(100).optional().nullable(),
327
+ reservedPlaces: z.array(
328
+ z.object({
329
+ _id: z.string().describe(
330
+ "Place ID. For example, `A1-1-5` for section A, row 1, seat 5."
331
+ ).min(5).max(12).optional(),
332
+ capacity: z.number().int().describe(
333
+ "Number of people to be seated at this place. Used for area seating where multiple guests can occupy a single reservable location.\n\nDefault: `1`"
334
+ ).min(1).max(50).optional().nullable(),
335
+ sectionLabel: z.string().describe(
336
+ "Section name within the venue. For example, `Orchestra` or `Balcony`."
337
+ ).optional().nullable(),
338
+ areaLabel: z.string().describe(
339
+ "Area name within a section. Used for general admission or standing areas."
340
+ ).optional().nullable(),
341
+ tableLabel: z.string().describe(
342
+ "Table identifier for table-based seating arrangements."
343
+ ).optional().nullable(),
344
+ rowLabel: z.string().describe("Row identifier within a section or area.").optional().nullable(),
345
+ seatLabel: z.string().describe(
346
+ "Individual seat identifier within a row or at a table."
347
+ ).optional().nullable()
348
+ })
349
+ ).min(1).max(100).optional(),
350
+ externalId: z.string().describe(
351
+ "External reference ID for cross-system integration. Format: `{fqdn}:{entity guid}`. For example, `wix.events.v1.ticket:12345678-1234-1234-1234-123456789012`."
352
+ ).min(1).max(100).optional().nullable(),
353
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
354
+ "Revision number, which increments by 1 each time the reservation is updated. To prevent conflicting changes, the current revision must be passed when updating the reservation. Ignored when creating a reservation."
355
+ ).optional().nullable()
356
+ }).describe("Reservation to create.").optional()
357
+ }).optional()
358
+ });
359
+ var CreateSeatingReservationResponse = z.object({
360
+ _id: z.string().describe("Reservation ID.").regex(
361
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
362
+ "Must be a valid GUID"
363
+ ).optional().nullable(),
364
+ seatingPlanId: z.string().describe("Seating plan ID.").regex(
365
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
366
+ "Must be a valid GUID"
367
+ ).optional().nullable(),
368
+ externalSeatingPlanId: z.string().describe(
369
+ "External seating plan ID used for integration with third-party venue systems."
370
+ ).min(1).max(100).optional().nullable(),
371
+ reservedPlaces: z.array(
372
+ z.object({
373
+ _id: z.string().describe(
374
+ "Place ID. For example, `A1-1-5` for section A, row 1, seat 5."
375
+ ).min(5).max(12).optional(),
376
+ capacity: z.number().int().describe(
377
+ "Number of people to be seated at this place. Used for area seating where multiple guests can occupy a single reservable location.\n\nDefault: `1`"
378
+ ).min(1).max(50).optional().nullable(),
379
+ sectionLabel: z.string().describe(
380
+ "Section name within the venue. For example, `Orchestra` or `Balcony`."
381
+ ).optional().nullable(),
382
+ areaLabel: z.string().describe(
383
+ "Area name within a section. Used for general admission or standing areas."
384
+ ).optional().nullable(),
385
+ tableLabel: z.string().describe("Table identifier for table-based seating arrangements.").optional().nullable(),
386
+ rowLabel: z.string().describe("Row identifier within a section or area.").optional().nullable(),
387
+ seatLabel: z.string().describe("Individual seat identifier within a row or at a table.").optional().nullable()
388
+ })
389
+ ).min(1).max(100).optional(),
390
+ externalId: z.string().describe(
391
+ "External reference ID for cross-system integration. Format: `{fqdn}:{entity guid}`. For example, `wix.events.v1.ticket:12345678-1234-1234-1234-123456789012`."
392
+ ).min(1).max(100).optional().nullable(),
393
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
394
+ "Revision number, which increments by 1 each time the reservation is updated. To prevent conflicting changes, the current revision must be passed when updating the reservation. Ignored when creating a reservation."
395
+ ).optional().nullable()
396
+ });
397
+ var GetReservationRequest = z.object({
398
+ _id: z.string().describe("Reservation ID.").regex(
399
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
400
+ "Must be a valid GUID"
401
+ )
402
+ });
403
+ var GetReservationResponse = z.object({
404
+ _id: z.string().describe("Reservation ID.").regex(
405
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
406
+ "Must be a valid GUID"
407
+ ).optional().nullable(),
408
+ seatingPlanId: z.string().describe("Seating plan ID.").regex(
409
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
410
+ "Must be a valid GUID"
411
+ ).optional().nullable(),
412
+ externalSeatingPlanId: z.string().describe(
413
+ "External seating plan ID used for integration with third-party venue systems."
414
+ ).min(1).max(100).optional().nullable(),
415
+ reservedPlaces: z.array(
416
+ z.object({
417
+ _id: z.string().describe(
418
+ "Place ID. For example, `A1-1-5` for section A, row 1, seat 5."
419
+ ).min(5).max(12).optional(),
420
+ capacity: z.number().int().describe(
421
+ "Number of people to be seated at this place. Used for area seating where multiple guests can occupy a single reservable location.\n\nDefault: `1`"
422
+ ).min(1).max(50).optional().nullable(),
423
+ sectionLabel: z.string().describe(
424
+ "Section name within the venue. For example, `Orchestra` or `Balcony`."
425
+ ).optional().nullable(),
426
+ areaLabel: z.string().describe(
427
+ "Area name within a section. Used for general admission or standing areas."
428
+ ).optional().nullable(),
429
+ tableLabel: z.string().describe("Table identifier for table-based seating arrangements.").optional().nullable(),
430
+ rowLabel: z.string().describe("Row identifier within a section or area.").optional().nullable(),
431
+ seatLabel: z.string().describe("Individual seat identifier within a row or at a table.").optional().nullable()
432
+ })
433
+ ).min(1).max(100).optional(),
434
+ externalId: z.string().describe(
435
+ "External reference ID for cross-system integration. Format: `{fqdn}:{entity guid}`. For example, `wix.events.v1.ticket:12345678-1234-1234-1234-123456789012`."
436
+ ).min(1).max(100).optional().nullable(),
437
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
438
+ "Revision number, which increments by 1 each time the reservation is updated. To prevent conflicting changes, the current revision must be passed when updating the reservation. Ignored when creating a reservation."
439
+ ).optional().nullable()
440
+ });
441
+ var QuerySeatingReservationRequest = z.object({
442
+ query: z.intersection(
443
+ z.object({
444
+ filter: z.record(z.string(), z.any()).describe(
445
+ "Filter object.\n\nLearn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters)."
446
+ ).optional().nullable(),
447
+ sort: z.array(
448
+ z.object({
449
+ fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
450
+ order: z.enum(["ASC", "DESC"]).optional()
451
+ })
452
+ ).optional()
453
+ }),
454
+ z.xor([
455
+ z.object({
456
+ cursorPaging: z.never().optional(),
457
+ paging: z.object({
458
+ limit: z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
459
+ offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
460
+ }).describe(
461
+ "Paging options to limit and offset the number of items."
462
+ )
463
+ }),
464
+ z.object({
465
+ paging: z.never().optional(),
466
+ cursorPaging: z.object({
467
+ limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
468
+ cursor: z.string().describe(
469
+ "Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
470
+ ).max(16e3).optional().nullable()
471
+ }).describe(
472
+ "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`."
473
+ )
474
+ })
475
+ ])
476
+ ).describe("Query object with filter criteria and pagination settings.")
477
+ });
478
+ var QuerySeatingReservationResponse = z.object({
479
+ reservations: z.array(
480
+ z.object({
481
+ _id: z.string().describe("Reservation ID.").regex(
482
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
483
+ "Must be a valid GUID"
484
+ ).optional().nullable(),
485
+ seatingPlanId: z.string().describe("Seating plan ID.").regex(
486
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
487
+ "Must be a valid GUID"
488
+ ).optional().nullable(),
489
+ externalSeatingPlanId: z.string().describe(
490
+ "External seating plan ID used for integration with third-party venue systems."
491
+ ).min(1).max(100).optional().nullable(),
492
+ reservedPlaces: z.array(
493
+ z.object({
494
+ _id: z.string().describe(
495
+ "Place ID. For example, `A1-1-5` for section A, row 1, seat 5."
496
+ ).min(5).max(12).optional(),
497
+ capacity: z.number().int().describe(
498
+ "Number of people to be seated at this place. Used for area seating where multiple guests can occupy a single reservable location.\n\nDefault: `1`"
499
+ ).min(1).max(50).optional().nullable(),
500
+ sectionLabel: z.string().describe(
501
+ "Section name within the venue. For example, `Orchestra` or `Balcony`."
502
+ ).optional().nullable(),
503
+ areaLabel: z.string().describe(
504
+ "Area name within a section. Used for general admission or standing areas."
505
+ ).optional().nullable(),
506
+ tableLabel: z.string().describe(
507
+ "Table identifier for table-based seating arrangements."
508
+ ).optional().nullable(),
509
+ rowLabel: z.string().describe("Row identifier within a section or area.").optional().nullable(),
510
+ seatLabel: z.string().describe(
511
+ "Individual seat identifier within a row or at a table."
512
+ ).optional().nullable()
513
+ })
514
+ ).min(1).max(100).optional(),
515
+ externalId: z.string().describe(
516
+ "External reference ID for cross-system integration. Format: `{fqdn}:{entity guid}`. For example, `wix.events.v1.ticket:12345678-1234-1234-1234-123456789012`."
517
+ ).min(1).max(100).optional().nullable(),
518
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
519
+ "Revision number, which increments by 1 each time the reservation is updated. To prevent conflicting changes, the current revision must be passed when updating the reservation. Ignored when creating a reservation."
520
+ ).optional().nullable()
521
+ })
522
+ ).optional(),
523
+ metadata: z.object({
524
+ count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
525
+ offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
526
+ total: z.number().int().describe(
527
+ "Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
528
+ ).optional().nullable(),
529
+ tooManyToCount: z.boolean().describe(
530
+ "Flag that indicates the server failed to calculate the `total` field."
531
+ ).optional().nullable(),
532
+ cursors: z.object({
533
+ next: z.string().describe(
534
+ "Cursor string pointing to the next page in the list of results."
535
+ ).max(16e3).optional().nullable(),
536
+ prev: z.string().describe(
537
+ "Cursor pointing to the previous page in the list of results."
538
+ ).max(16e3).optional().nullable()
539
+ }).describe(
540
+ "Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used."
541
+ ).optional()
542
+ }).describe("Paging metadata for result navigation.").optional()
543
+ });
544
+ var DeleteSeatingReservationRequest = z.object({
545
+ _id: z.string().describe("Reservation ID.").regex(
546
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
547
+ "Must be a valid GUID"
548
+ )
549
+ });
550
+ var DeleteSeatingReservationResponse = z.object({
551
+ reservation: z.object({
552
+ _id: z.string().describe("Reservation ID.").regex(
553
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
554
+ "Must be a valid GUID"
555
+ ).optional().nullable(),
556
+ seatingPlanId: z.string().describe("Seating plan ID.").regex(
557
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
558
+ "Must be a valid GUID"
559
+ ).optional().nullable(),
560
+ externalSeatingPlanId: z.string().describe(
561
+ "External seating plan ID used for integration with third-party venue systems."
562
+ ).min(1).max(100).optional().nullable(),
563
+ reservedPlaces: z.array(
564
+ z.object({
565
+ _id: z.string().describe(
566
+ "Place ID. For example, `A1-1-5` for section A, row 1, seat 5."
567
+ ).min(5).max(12).optional(),
568
+ capacity: z.number().int().describe(
569
+ "Number of people to be seated at this place. Used for area seating where multiple guests can occupy a single reservable location.\n\nDefault: `1`"
570
+ ).min(1).max(50).optional().nullable(),
571
+ sectionLabel: z.string().describe(
572
+ "Section name within the venue. For example, `Orchestra` or `Balcony`."
573
+ ).optional().nullable(),
574
+ areaLabel: z.string().describe(
575
+ "Area name within a section. Used for general admission or standing areas."
576
+ ).optional().nullable(),
577
+ tableLabel: z.string().describe(
578
+ "Table identifier for table-based seating arrangements."
579
+ ).optional().nullable(),
580
+ rowLabel: z.string().describe("Row identifier within a section or area.").optional().nullable(),
581
+ seatLabel: z.string().describe(
582
+ "Individual seat identifier within a row or at a table."
583
+ ).optional().nullable()
584
+ })
585
+ ).min(1).max(100).optional(),
586
+ externalId: z.string().describe(
587
+ "External reference ID for cross-system integration. Format: `{fqdn}:{entity guid}`. For example, `wix.events.v1.ticket:12345678-1234-1234-1234-123456789012`."
588
+ ).min(1).max(100).optional().nullable(),
589
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
590
+ "Revision number, which increments by 1 each time the reservation is updated. To prevent conflicting changes, the current revision must be passed when updating the reservation. Ignored when creating a reservation."
591
+ ).optional().nullable()
592
+ }).describe("Deleted reservation.").optional()
593
+ });
594
+ var GetSeatingCategorySummaryRequest = z.object({
595
+ options: z.object({
596
+ externalId: z.string().describe("External seating plan ID.").min(1).max(100).optional()
597
+ }).optional()
598
+ });
599
+ var GetSeatingCategorySummaryResponse = z.object({
600
+ categories: z.array(
601
+ z.object({
602
+ seatingPlanId: z.string().describe("Seating Plan ID.").regex(
603
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
604
+ "Must be a valid GUID"
605
+ ).optional().nullable(),
606
+ externalSeatingPlanId: z.string().describe(
607
+ "External Seating Plan ID used for integration with third-party systems."
608
+ ).min(1).max(100).optional().nullable(),
609
+ externalCategoryId: z.string().describe(
610
+ "External Category ID used for mapping to venue-specific category names. For example, `VIP` or `ORCHESTRA`."
611
+ ).min(1).max(100).optional().nullable(),
612
+ totalCapacity: z.number().int().describe("Total seating capacity available in category.").optional().nullable(),
613
+ reserved: z.number().int().describe("Number of seats currently reserved in category.").optional().nullable()
614
+ })
615
+ ).max(5e4).optional()
616
+ });
617
+ var GetSeatingReservationSummaryRequest = z.object({
618
+ externalId: z.string().describe("External seating plan ID.").min(1).max(100)
619
+ });
620
+ var GetSeatingReservationSummaryResponse = z.object({
621
+ plan: z.object({
622
+ _id: z.string().describe("Seating plan ID.").regex(
623
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
624
+ "Must be a valid GUID"
625
+ ).optional().nullable(),
626
+ externalId: z.string().describe(
627
+ "Client-defined external ID for cross-referencing with external systems. Format: `{fqdn}:{entity_guid}`. For example, `wix.events.v1.event:abc-123-def`."
628
+ ).min(1).max(100).optional().nullable(),
629
+ title: z.string().describe(
630
+ "Human-friendly seating plan title. For example, `Madison Square Garden - Main Floor`."
631
+ ).min(1).max(120).optional().nullable(),
632
+ sections: z.array(
633
+ z.object({
634
+ _id: z.number().int().describe(
635
+ "Section ID. Must be unique within the seating plan. Section with `id = 0` is required as the default section."
636
+ ).min(0).optional(),
637
+ title: z.string().describe(
638
+ "Human-readable section title. For example, `Orchestra` or `Balcony`."
639
+ ).min(1).max(20).optional().nullable(),
640
+ config: z.record(z.string(), z.any()).describe(
641
+ "Client configuration object for storing additional section metadata. Read-only field maintained for backward compatibility."
642
+ ).optional().nullable(),
643
+ elements: z.array(
644
+ z.object({
645
+ _id: z.number().int().describe(
646
+ "Element ID. Must be unique within the seating plan."
647
+ ).min(1).optional(),
648
+ title: z.string().describe(
649
+ "User-friendly title or label for the element. For example, `Row A` or `VIP Table 1`."
650
+ ).min(1).max(50).optional().nullable(),
651
+ type: z.enum([
652
+ "AREA",
653
+ "ROW",
654
+ "MULTI_ROW",
655
+ "TABLE",
656
+ "ROUND_TABLE",
657
+ "SHAPE"
658
+ ]).describe(
659
+ "Type of seating element, which determines capacity limits and place generation behavior. See ElementTypeEnum for available types."
660
+ ).optional(),
661
+ capacity: z.number().int().describe(
662
+ "Number of seats or spots in this element. Not applicable for SHAPE type elements. Maximum 50,000 per element."
663
+ ).min(1).max(5e4).optional().nullable(),
664
+ categoryId: z.number().int().describe(
665
+ "ID of the category this element is assigned to for pricing and organization. References a category defined in the seating plan."
666
+ ).optional().nullable(),
667
+ sequencing: z.object({
668
+ startAt: z.string().describe(
669
+ "Starting value for the sequence. For example, `1` for numeric sequences or `A` for alphabetical sequences."
670
+ ).min(1).max(4).optional(),
671
+ labels: z.array(z.string()).max(2500).optional(),
672
+ reverseOrder: z.boolean().describe(
673
+ "Whether to apply labels in reverse order (right-to-left instead of left-to-right). Useful for venue-specific numbering conventions."
674
+ ).optional().nullable()
675
+ }).describe(
676
+ "Configuration for generating place labels and numbering within this element. Defines how seats are labeled (e.g., 1, 2, 3 or A, B, C)."
677
+ ).optional(),
678
+ overrides: z.array(
679
+ z.object({
680
+ index: z.number().int().describe(
681
+ "Zero-based position of this place within the element's sequence. Used to identify the place's position for overrides."
682
+ ).min(0).optional(),
683
+ _id: z.string().describe(
684
+ "Unique place ID in the format `{section_id}-{element_id}-{label}`. For example, `0-1-A5` for section 0, element 1, seat A5."
685
+ ).optional().nullable(),
686
+ label: z.string().describe(
687
+ "Human-readable label for this place, such as `A1`, `12`, or `VIP1`. Generated based on sequencing configuration or custom overrides."
688
+ ).min(1).max(4).optional(),
689
+ capacity: z.number().int().describe(
690
+ "Maximum number of people that can occupy this place. Typically 1 for individual seats, higher for AREA type places."
691
+ ).optional().nullable(),
692
+ elementType: z.enum([
693
+ "AREA",
694
+ "ROW",
695
+ "MULTI_ROW",
696
+ "TABLE",
697
+ "ROUND_TABLE",
698
+ "SHAPE"
699
+ ]).describe(
700
+ "Type of the parent element that contains this place. Inherited from the element's type."
701
+ ).optional(),
702
+ categoryId: z.number().int().describe(
703
+ "ID of the category this place is assigned to. Inherited from element or row category assignment."
704
+ ).optional().nullable(),
705
+ type: z.enum([
706
+ "STANDARD",
707
+ "WHEELCHAIR",
708
+ "ACCESSIBLE",
709
+ "COMPANION",
710
+ "OBSTRUCTED",
711
+ "DISCOUNT"
712
+ ]).describe(
713
+ "Special characteristics or accessibility features of this place (standard, wheelchair, accessible, companion, obstructed, discount)."
714
+ ).optional()
715
+ })
716
+ ).max(2e3).optional(),
717
+ places: z.array(
718
+ z.object({
719
+ index: z.number().int().describe(
720
+ "Zero-based position of this place within the element's sequence. Used to identify the place's position for overrides."
721
+ ).min(0).optional(),
722
+ _id: z.string().describe(
723
+ "Unique place ID in the format `{section_id}-{element_id}-{label}`. For example, `0-1-A5` for section 0, element 1, seat A5."
724
+ ).optional().nullable(),
725
+ label: z.string().describe(
726
+ "Human-readable label for this place, such as `A1`, `12`, or `VIP1`. Generated based on sequencing configuration or custom overrides."
727
+ ).min(1).max(4).optional(),
728
+ capacity: z.number().int().describe(
729
+ "Maximum number of people that can occupy this place. Typically 1 for individual seats, higher for AREA type places."
730
+ ).optional().nullable(),
731
+ elementType: z.enum([
732
+ "AREA",
733
+ "ROW",
734
+ "MULTI_ROW",
735
+ "TABLE",
736
+ "ROUND_TABLE",
737
+ "SHAPE"
738
+ ]).describe(
739
+ "Type of the parent element that contains this place. Inherited from the element's type."
740
+ ).optional(),
741
+ categoryId: z.number().int().describe(
742
+ "ID of the category this place is assigned to. Inherited from element or row category assignment."
743
+ ).optional().nullable(),
744
+ type: z.enum([
745
+ "STANDARD",
746
+ "WHEELCHAIR",
747
+ "ACCESSIBLE",
748
+ "COMPANION",
749
+ "OBSTRUCTED",
750
+ "DISCOUNT"
751
+ ]).describe(
752
+ "Special characteristics or accessibility features of this place (standard, wheelchair, accessible, companion, obstructed, discount)."
753
+ ).optional()
754
+ })
755
+ ).max(200).optional(),
756
+ reservationOptions: z.object({
757
+ reserveWholeElement: z.boolean().describe(
758
+ "Whether the entire element must be reserved as a single unit. When `true`, individual seats cannot be booked separately. Cannot be used with AREA type elements."
759
+ ).optional()
760
+ }).describe(
761
+ "Constraints on how this element can be reserved or booked. For example, requiring the entire element to be reserved as a unit."
762
+ ).optional(),
763
+ uiProperties: z.object({
764
+ x: z.number().describe(
765
+ "Horizontal position coordinate of the element in the seating chart coordinate system."
766
+ ).min(-1e6).max(1e6).optional().nullable(),
767
+ y: z.number().describe(
768
+ "Vertical position coordinate of the element in the seating chart coordinate system."
769
+ ).min(-1e6).max(1e6).optional().nullable(),
770
+ zIndex: z.number().int().describe(
771
+ "Layering order for overlapping elements. Higher values appear on top of lower values."
772
+ ).min(-1e6).max(1e6).optional().nullable(),
773
+ width: z.number().describe(
774
+ "Width of the element in the coordinate system units."
775
+ ).min(0).max(1e6).optional().nullable(),
776
+ height: z.number().describe(
777
+ "Height of the element in the coordinate system units."
778
+ ).min(0).max(1e6).optional().nullable(),
779
+ rotationAngle: z.number().describe(
780
+ "Rotation angle of the element in degrees. Positive values rotate clockwise."
781
+ ).min(-180).max(180).optional().nullable(),
782
+ shapeType: z.enum([
783
+ "UNKNOWN_TYPE",
784
+ "TEXT",
785
+ "RECTANGLE",
786
+ "ELLIPSE",
787
+ "LINE",
788
+ "ICON",
789
+ "IMAGE"
790
+ ]).describe(
791
+ "Shape type for SHAPE elements that don't represent seating. Only applicable when element type is SHAPE."
792
+ ).optional(),
793
+ fontSize: z.number().int().describe("Font size for text elements in points.").min(10).max(176).optional().nullable(),
794
+ cornerRadius: z.number().int().describe(
795
+ "Corner radius for rounded rectangular shapes in coordinate system units."
796
+ ).min(0).max(1e6).optional().nullable(),
797
+ seatSpacing: z.number().int().describe(
798
+ "Horizontal spacing between individual seats within the element."
799
+ ).min(1).max(60).optional().nullable(),
800
+ hideLabel: z.boolean().describe(
801
+ "Whether to hide labels on seats within this element. When `true`, seat labels are not displayed in the UI."
802
+ ).optional().nullable(),
803
+ labelPosition: z.enum([
804
+ "UNKNOWN_POSITION",
805
+ "LEFT",
806
+ "RIGHT",
807
+ "BOTH",
808
+ "NONE"
809
+ ]).describe(
810
+ "Position of labels relative to seats (left, right, both sides, or none)."
811
+ ).optional(),
812
+ seatLayout: z.array(z.number().int()).optional(),
813
+ emptyTopSeatSpaces: z.number().int().describe(
814
+ "Number of empty spaces at the top of the seating arrangement for visual spacing."
815
+ ).min(0).max(50).optional().nullable(),
816
+ text: z.string().describe(
817
+ "Text content for TEXT type shape elements. Only applicable when shape_type is TEXT."
818
+ ).min(1).max(1e4).optional().nullable(),
819
+ color: z.string().describe(
820
+ "Primary color in hexadecimal format. For example, `#FF0000` for red."
821
+ ).optional().nullable(),
822
+ fillColor: z.string().describe(
823
+ "Fill color for shapes in hexadecimal format. For example, `#00FF00` for green."
824
+ ).optional().nullable(),
825
+ strokeColor: z.string().describe(
826
+ "Border color in hexadecimal format. For example, `#0000FF` for blue."
827
+ ).optional().nullable(),
828
+ strokeWidth: z.number().int().describe("Border width in pixels for shape outlines.").min(1).max(6).optional().nullable(),
829
+ opacity: z.number().int().describe(
830
+ "Opacity level as a percentage from 0 (transparent) to 100 (opaque)."
831
+ ).min(0).max(100).optional().nullable(),
832
+ icon: z.enum([
833
+ "UNKNOWN_ICON",
834
+ "ENTER",
835
+ "EXIT",
836
+ "DRINKS",
837
+ "WC",
838
+ "WC_MEN",
839
+ "WC_WOMEN",
840
+ "FOOD",
841
+ "STAIRS",
842
+ "ELEVATOR",
843
+ "SMOKING",
844
+ "CHECKROOM",
845
+ "STAGE"
846
+ ]).describe(
847
+ "Icon type for ICON shape elements. Only applicable when shape_type is ICON."
848
+ ).optional(),
849
+ image: z.object({
850
+ _id: z.string().describe("Image ID from Wix Media Manager.").optional(),
851
+ height: z.number().int().describe("Original image height in pixels.").optional(),
852
+ width: z.number().int().describe("Original image width in pixels.").optional(),
853
+ uri: z.string().describe(
854
+ "Deprecated. Use the `id` field instead for referencing images."
855
+ ).optional().nullable()
856
+ }).describe(
857
+ "Image object for IMAGE shape elements. Only applicable when shape_type is IMAGE."
858
+ ).optional(),
859
+ seatNumbering: z.enum([
860
+ "UNKNOWN_NUMBERING",
861
+ "NUMERIC",
862
+ "ODD_EVEN",
863
+ "ALPHABETICAL"
864
+ ]).describe(
865
+ "Numbering scheme for seats within this element (numeric, alphabetical, or odd/even)."
866
+ ).optional()
867
+ }).describe(
868
+ "Visual positioning and styling properties for rendering this element in a seating chart. Includes coordinates, dimensions, and styling options."
869
+ ).optional(),
870
+ elementGroupId: z.number().int().describe(
871
+ "ID of the element group this element belongs to for hierarchical organization. References an ElementGroup defined in the seating plan."
872
+ ).optional().nullable(),
873
+ multiRowProperties: z.object({
874
+ rows: z.array(
875
+ z.object({
876
+ _id: z.number().int().describe(
877
+ "Row ID. Must be unique across all multi-row elements in the seating plan."
878
+ ).min(1).optional(),
879
+ title: z.string().describe(
880
+ "User-friendly title or label for this row. For example, `Row A` or `Front Row`."
881
+ ).min(1).max(50).optional().nullable(),
882
+ capacity: z.number().int().describe(
883
+ "Number of seats in this row. Maximum 50,000 per row."
884
+ ).min(1).max(5e4).optional().nullable(),
885
+ categoryId: z.number().int().describe(
886
+ "Category assignment for this row, which can override the parent element's category. References a category defined in the seating plan."
887
+ ).optional().nullable(),
888
+ sequencing: z.object({
889
+ startAt: z.string().describe(
890
+ "Starting value for the sequence. For example, `1` for numeric sequences or `A` for alphabetical sequences."
891
+ ).min(1).max(4).optional(),
892
+ labels: z.array(z.string()).max(2500).optional(),
893
+ reverseOrder: z.boolean().describe(
894
+ "Whether to apply labels in reverse order (right-to-left instead of left-to-right). Useful for venue-specific numbering conventions."
895
+ ).optional().nullable()
896
+ }).describe(
897
+ "Configuration for generating seat labels within this row. Defines numbering scheme and starting position."
898
+ ).optional(),
899
+ uiProperties: z.object({
900
+ relativeX: z.number().describe(
901
+ "Horizontal position relative to the parent multi-row element's coordinate system."
902
+ ).min(-1e6).max(1e6).optional().nullable(),
903
+ width: z.number().describe(
904
+ "Width of this row in coordinate system units."
905
+ ).min(0).max(1e6).optional().nullable(),
906
+ seatAmount: z.number().int().describe(
907
+ "Number of seats in this row. Overrides the capacity field when specified."
908
+ ).min(0).max(50).optional().nullable(),
909
+ seatSpacing: z.number().int().describe(
910
+ "Spacing between seats in this row."
911
+ ).min(1).max(60).optional().nullable(),
912
+ labelPosition: z.enum([
913
+ "UNKNOWN_POSITION",
914
+ "LEFT",
915
+ "RIGHT",
916
+ "BOTH",
917
+ "NONE"
918
+ ]).describe(
919
+ "Position of labels relative to seats in this row (left, right, both sides, or none). // Position of labels relative to seats in this row."
920
+ ).optional(),
921
+ seatNumbering: z.enum([
922
+ "UNKNOWN_NUMBERING",
923
+ "NUMERIC",
924
+ "ODD_EVEN",
925
+ "ALPHABETICAL"
926
+ ]).describe(
927
+ "Numbering scheme for seats in this row (numeric, alphabetical, or odd/even)."
928
+ ).optional()
929
+ }).describe(
930
+ "Visual properties specific to this row within the multi-row element. Includes positioning relative to parent element."
931
+ ).optional()
932
+ })
933
+ ).max(1e3).optional(),
934
+ verticalSequencing: z.object({
935
+ startAt: z.string().describe(
936
+ "Starting value for row labeling. For example, `A` for alphabetical sequences or `1` for numeric sequences."
937
+ ).min(1).max(4).optional(),
938
+ rowNumbering: z.enum([
939
+ "UNKNOWN_NUMBERING",
940
+ "NUMERIC",
941
+ "ODD_EVEN",
942
+ "ALPHABETICAL"
943
+ ]).describe(
944
+ "Numbering scheme for row labels (numeric, alphabetical, or odd/even)."
945
+ ).optional(),
946
+ reverseOrder: z.boolean().describe(
947
+ "Whether to label rows in reverse order (bottom-to-top instead of top-to-bottom)."
948
+ ).optional().nullable()
949
+ }).describe(
950
+ "Configuration for labeling rows vertically (e.g., Row A, Row B, Row C). Defines how row labels are generated."
951
+ ).optional(),
952
+ rowSpacing: z.number().int().describe(
953
+ "Vertical spacing between rows in the multi-row element. Measured in coordinate system units."
954
+ ).min(1).max(60).optional().nullable(),
955
+ seatAmount: z.number().int().describe(
956
+ "Number of seats per row in the multi-row element."
957
+ ).min(0).max(50).optional().nullable()
958
+ }).describe(
959
+ "Additional properties for MULTI_ROW type elements, defining individual rows and their configurations. Only applicable when type is MULTI_ROW."
960
+ ).optional()
961
+ })
962
+ ).max(1e3).optional(),
963
+ totalCapacity: z.number().int().describe(
964
+ "Total capacity of all elements within this section. Automatically calculated by summing element capacities."
965
+ ).optional().nullable(),
966
+ default: z.boolean().describe(
967
+ "Whether this is the default section. Always `true` for section with `id = 0`."
968
+ ).optional()
969
+ })
970
+ ).max(100).optional(),
971
+ categories: z.array(
972
+ z.object({
973
+ _id: z.number().int().describe("Category ID. Must be unique within the seating plan.").min(1).optional(),
974
+ externalId: z.string().describe(
975
+ "Client-defined external ID for cross-referencing with pricing or ticketing systems. Format: `{entity_fqdn}:{entity_id}`."
976
+ ).min(1).max(100).optional().nullable(),
977
+ title: z.string().describe(
978
+ "Human-readable category name, such as `VIP`, `General Admission`, or `Student Discount`."
979
+ ).min(1).max(120).optional(),
980
+ config: z.record(z.string(), z.any()).describe(
981
+ "Client configuration object for storing additional category metadata. Read-only field maintained for backward compatibility."
982
+ ).optional().nullable(),
983
+ totalCapacity: z.number().int().describe(
984
+ "Total capacity of all places assigned to this category. Automatically calculated by summing place capacities."
985
+ ).optional().nullable(),
986
+ places: z.array(
987
+ z.object({
988
+ index: z.number().int().describe(
989
+ "Zero-based position of this place within the element's sequence. Used to identify the place's position for overrides."
990
+ ).min(0).optional(),
991
+ _id: z.string().describe(
992
+ "Unique place ID in the format `{section_id}-{element_id}-{label}`. For example, `0-1-A5` for section 0, element 1, seat A5."
993
+ ).optional().nullable(),
994
+ label: z.string().describe(
995
+ "Human-readable label for this place, such as `A1`, `12`, or `VIP1`. Generated based on sequencing configuration or custom overrides."
996
+ ).min(1).max(4).optional(),
997
+ capacity: z.number().int().describe(
998
+ "Maximum number of people that can occupy this place. Typically 1 for individual seats, higher for AREA type places."
999
+ ).optional().nullable(),
1000
+ elementType: z.enum([
1001
+ "AREA",
1002
+ "ROW",
1003
+ "MULTI_ROW",
1004
+ "TABLE",
1005
+ "ROUND_TABLE",
1006
+ "SHAPE"
1007
+ ]).describe(
1008
+ "Type of the parent element that contains this place. Inherited from the element's type."
1009
+ ).optional(),
1010
+ categoryId: z.number().int().describe(
1011
+ "ID of the category this place is assigned to. Inherited from element or row category assignment."
1012
+ ).optional().nullable(),
1013
+ type: z.enum([
1014
+ "STANDARD",
1015
+ "WHEELCHAIR",
1016
+ "ACCESSIBLE",
1017
+ "COMPANION",
1018
+ "OBSTRUCTED",
1019
+ "DISCOUNT"
1020
+ ]).describe(
1021
+ "Special characteristics or accessibility features of this place (standard, wheelchair, accessible, companion, obstructed, discount)."
1022
+ ).optional()
1023
+ })
1024
+ ).max(5e4).optional()
1025
+ })
1026
+ ).max(100).optional(),
1027
+ _createdDate: z.date().describe("Date and time the seating plan was created.").optional().nullable(),
1028
+ _updatedDate: z.date().describe("Date and time the seating plan was updated.").optional().nullable(),
1029
+ totalCapacity: z.number().int().describe(
1030
+ "Total number of seats across all sections and elements in the seating plan. Automatically calculated by summing element capacities."
1031
+ ).optional().nullable(),
1032
+ totalCategories: z.number().int().describe(
1033
+ "Total number of categories defined in the seating plan. Automatically calculated."
1034
+ ).optional().nullable(),
1035
+ uncategorizedPlaces: z.array(
1036
+ z.object({
1037
+ index: z.number().int().describe(
1038
+ "Zero-based position of this place within the element's sequence. Used to identify the place's position for overrides."
1039
+ ).min(0).optional(),
1040
+ _id: z.string().describe(
1041
+ "Unique place ID in the format `{section_id}-{element_id}-{label}`. For example, `0-1-A5` for section 0, element 1, seat A5."
1042
+ ).optional().nullable(),
1043
+ label: z.string().describe(
1044
+ "Human-readable label for this place, such as `A1`, `12`, or `VIP1`. Generated based on sequencing configuration or custom overrides."
1045
+ ).min(1).max(4).optional(),
1046
+ capacity: z.number().int().describe(
1047
+ "Maximum number of people that can occupy this place. Typically 1 for individual seats, higher for AREA type places."
1048
+ ).optional().nullable(),
1049
+ elementType: z.enum([
1050
+ "AREA",
1051
+ "ROW",
1052
+ "MULTI_ROW",
1053
+ "TABLE",
1054
+ "ROUND_TABLE",
1055
+ "SHAPE"
1056
+ ]).describe(
1057
+ "Type of the parent element that contains this place. Inherited from the element's type."
1058
+ ).optional(),
1059
+ categoryId: z.number().int().describe(
1060
+ "ID of the category this place is assigned to. Inherited from element or row category assignment."
1061
+ ).optional().nullable(),
1062
+ type: z.enum([
1063
+ "STANDARD",
1064
+ "WHEELCHAIR",
1065
+ "ACCESSIBLE",
1066
+ "COMPANION",
1067
+ "OBSTRUCTED",
1068
+ "DISCOUNT"
1069
+ ]).describe(
1070
+ "Special characteristics or accessibility features of this place (standard, wheelchair, accessible, companion, obstructed, discount)."
1071
+ ).optional()
1072
+ })
1073
+ ).max(5e4).optional(),
1074
+ version: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1075
+ "Version number of the seating plan, incremented by 1 each time the plan is updated. Used for version management and tracking changes."
1076
+ ).optional().nullable(),
1077
+ extendedFields: z.object({
1078
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1079
+ "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
1080
+ ).optional()
1081
+ }).describe(
1082
+ "Additional custom fields for extending the seating plan with app-specific data. Learn more about @extended fields."
1083
+ ).optional(),
1084
+ uiProperties: z.object({
1085
+ backgroundColor: z.string().describe(
1086
+ "Background color in hexadecimal format. For example, `#F0F0F0` for light gray."
1087
+ ).optional().nullable(),
1088
+ backgroundOpacity: z.number().int().describe(
1089
+ "Background opacity as a percentage from 0 (transparent) to 100 (opaque)."
1090
+ ).min(0).max(100).optional().nullable()
1091
+ }).describe(
1092
+ "Visual settings for the seating plan, such as background color and opacity. Used by seating chart interfaces for rendering."
1093
+ ).optional(),
1094
+ elementGroups: z.array(
1095
+ z.object({
1096
+ _id: z.number().int().describe(
1097
+ "Element group ID. Must be unique within the seating plan."
1098
+ ).min(1).optional(),
1099
+ parentElementGroupId: z.number().int().describe(
1100
+ "ID of the parent group for creating nested group hierarchies. References another ElementGroup in the same seating plan."
1101
+ ).optional().nullable(),
1102
+ uiProperties: z.object({
1103
+ x: z.number().describe(
1104
+ "Horizontal position coordinate of the group container."
1105
+ ).min(-1e6).max(1e6).optional().nullable(),
1106
+ y: z.number().describe(
1107
+ "Vertical position coordinate of the group container."
1108
+ ).min(-1e6).max(1e6).optional().nullable(),
1109
+ width: z.number().describe(
1110
+ "Width of the group bounding box in coordinate system units."
1111
+ ).min(0).max(1e6).optional().nullable(),
1112
+ height: z.number().describe(
1113
+ "Height of the group bounding box in coordinate system units."
1114
+ ).min(0).max(1e6).optional().nullable(),
1115
+ rotationAngle: z.number().describe(
1116
+ "Rotation angle of the group in degrees. Applied to all elements within the group."
1117
+ ).min(-180).max(180).optional().nullable()
1118
+ }).describe(
1119
+ "Visual properties for rendering this group in the UI. Includes positioning and dimensions for the group container."
1120
+ ).optional()
1121
+ })
1122
+ ).max(1e3).optional(),
1123
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1124
+ "Optimistic concurrency control; preserved from request, defaults to current plan's revision when absent."
1125
+ ).optional().nullable()
1126
+ }).describe("Complete seating plan structure.").optional(),
1127
+ places: z.array(
1128
+ z.object({
1129
+ placeId: z.string().describe("Place ID.").optional(),
1130
+ occupied: z.number().int().describe("Number of occupied seats or capacity units at this place.").optional()
1131
+ })
1132
+ ).max(5e4).optional()
1133
+ });
1134
+
1135
+ // src/seating-v1-seating-reservation-seating-reservation.universal.ts
300
1136
  var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
301
1137
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
302
1138
  SortOrder2["ASC"] = "ASC";
@@ -371,7 +1207,10 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
371
1207
  return WebhookIdentityType2;
372
1208
  })(WebhookIdentityType || {});
373
1209
  async function createSeatingReservation2(options) {
374
- const { httpClient, sideEffects } = arguments[1];
1210
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1211
+ if (validateRequestSchema) {
1212
+ CreateSeatingReservationRequest.parse({ options });
1213
+ }
375
1214
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
376
1215
  reservation: options?.reservation
377
1216
  });
@@ -396,7 +1235,10 @@ async function createSeatingReservation2(options) {
396
1235
  }
397
1236
  }
398
1237
  async function getReservation2(_id) {
399
- const { httpClient, sideEffects } = arguments[1];
1238
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1239
+ if (validateRequestSchema) {
1240
+ GetReservationRequest.parse({ _id });
1241
+ }
400
1242
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
401
1243
  const reqOpts = getReservation(payload);
402
1244
  sideEffects?.onSiteCall?.();
@@ -466,7 +1308,10 @@ function querySeatingReservation2() {
466
1308
  });
467
1309
  }
468
1310
  async function typedQuerySeatingReservation(query) {
469
- const { httpClient, sideEffects } = arguments[1];
1311
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1312
+ if (validateRequestSchema) {
1313
+ QuerySeatingReservationRequest.parse({ query });
1314
+ }
470
1315
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
471
1316
  const reqOpts = querySeatingReservation(payload);
472
1317
  sideEffects?.onSiteCall?.();
@@ -494,7 +1339,10 @@ var utils = {
494
1339
  }
495
1340
  };
496
1341
  async function deleteSeatingReservation2(_id) {
497
- const { httpClient, sideEffects } = arguments[1];
1342
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1343
+ if (validateRequestSchema) {
1344
+ DeleteSeatingReservationRequest.parse({ _id });
1345
+ }
498
1346
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
499
1347
  const reqOpts = deleteSeatingReservation(payload);
500
1348
  sideEffects?.onSiteCall?.();
@@ -517,7 +1365,10 @@ async function deleteSeatingReservation2(_id) {
517
1365
  }
518
1366
  }
519
1367
  async function getSeatingCategorySummary2(options) {
520
- const { httpClient, sideEffects } = arguments[1];
1368
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1369
+ if (validateRequestSchema) {
1370
+ GetSeatingCategorySummaryRequest.parse({ options });
1371
+ }
521
1372
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
522
1373
  externalId: options?.externalId
523
1374
  });
@@ -542,7 +1393,10 @@ async function getSeatingCategorySummary2(options) {
542
1393
  }
543
1394
  }
544
1395
  async function getSeatingReservationSummary2(externalId) {
545
- const { httpClient, sideEffects } = arguments[1];
1396
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1397
+ if (validateRequestSchema) {
1398
+ GetSeatingReservationSummaryRequest.parse({ externalId });
1399
+ }
546
1400
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
547
1401
  externalId
548
1402
  });
@@ -570,52 +1424,52 @@ async function getSeatingReservationSummary2(externalId) {
570
1424
  }
571
1425
 
572
1426
  // src/seating-v1-seating-reservation-seating-reservation.public.ts
573
- function createSeatingReservation3(httpClient) {
1427
+ function createSeatingReservation3(httpClient, __options) {
574
1428
  return (options) => createSeatingReservation2(
575
1429
  options,
576
1430
  // @ts-ignore
577
- { httpClient }
1431
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
578
1432
  );
579
1433
  }
580
- function getReservation3(httpClient) {
1434
+ function getReservation3(httpClient, __options) {
581
1435
  return (_id) => getReservation2(
582
1436
  _id,
583
1437
  // @ts-ignore
584
- { httpClient }
1438
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
585
1439
  );
586
1440
  }
587
- function querySeatingReservation3(httpClient) {
1441
+ function querySeatingReservation3(httpClient, __options) {
588
1442
  return () => querySeatingReservation2(
589
1443
  // @ts-ignore
590
- { httpClient }
1444
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
591
1445
  );
592
1446
  }
593
- function typedQuerySeatingReservation2(httpClient) {
1447
+ function typedQuerySeatingReservation2(httpClient, __options) {
594
1448
  return (query) => typedQuerySeatingReservation(
595
1449
  query,
596
1450
  // @ts-ignore
597
- { httpClient }
1451
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
598
1452
  );
599
1453
  }
600
- function deleteSeatingReservation3(httpClient) {
1454
+ function deleteSeatingReservation3(httpClient, __options) {
601
1455
  return (_id) => deleteSeatingReservation2(
602
1456
  _id,
603
1457
  // @ts-ignore
604
- { httpClient }
1458
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
605
1459
  );
606
1460
  }
607
- function getSeatingCategorySummary3(httpClient) {
1461
+ function getSeatingCategorySummary3(httpClient, __options) {
608
1462
  return (options) => getSeatingCategorySummary2(
609
1463
  options,
610
1464
  // @ts-ignore
611
- { httpClient }
1465
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
612
1466
  );
613
1467
  }
614
- function getSeatingReservationSummary3(httpClient) {
1468
+ function getSeatingReservationSummary3(httpClient, __options) {
615
1469
  return (externalId) => getSeatingReservationSummary2(
616
1470
  externalId,
617
1471
  // @ts-ignore
618
- { httpClient }
1472
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
619
1473
  );
620
1474
  }
621
1475
  var onSeatingReservationCreated = (0, import_sdk_types.EventDefinition)(