@wix/table-reservations 1.0.101 → 1.0.103

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.
@@ -8,7 +8,7 @@ interface Reservation$1 {
8
8
  /**
9
9
  * Status of the reservation.
10
10
  *
11
- * * `HELD`: The reservation is temporary and will expire in 10 minutes if its status isn’t changed. This phase temporarily reserves the required number of seats and tables for a given party size at a chosen time while a customer enters details and/or confirms their reservation request.
11
+ * * `HELD`: The reservation is temporary and will expire in 10 minutes unless the customer moves forward with the reservation flow. This phase temporarily reserves the required number of seats and tables for a given party size at a chosen time while a customer enters details and/or confirms their reservation request.
12
12
  * * `REQUESTED`: A customer finished requesting this reservation, meaning they have added all necessary details and confirmed the request. Restaurant staff can now either approve or decline the reservation request.
13
13
  * * `DECLINED`: The restaurant’s owner or staff declined the customer’s request to make the reservation.
14
14
  * * `RESERVED`: The reservation is confirmed.
@@ -165,9 +165,6 @@ interface ReservedBy$1 {
165
165
  */
166
166
  contactId?: string | null;
167
167
  }
168
- /** Migration note. */
169
- interface MigrationNote {
170
- }
171
168
  declare enum PaymentStatus$1 {
172
169
  UNKNOWN = "UNKNOWN",
173
170
  /** A reservation is free of charge. */
@@ -195,7 +192,7 @@ interface CreateReservationRequest$1 {
195
192
  * * `"TOO_SMALL"`: The party is too small for the selected table.
196
193
  * * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
197
194
  */
198
- ignoreTableCombinationConflicts?: TableCombinationConflictType$1[];
195
+ ignoreTableCombinationConflicts?: TableCombinationConflictType$3[];
199
196
  /**
200
197
  * Ignored reservation location conflicts of the types included in the array. This ensures that the reservation is created even if the given conflicts would normally prevent it.
201
198
  *
@@ -203,16 +200,16 @@ interface CreateReservationRequest$1 {
203
200
  * * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
204
201
  * * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
205
202
  */
206
- ignoreReservationLocationConflicts?: Type$1[];
203
+ ignoreReservationLocationConflicts?: Type$3[];
207
204
  }
208
- declare enum TableCombinationConflictType$1 {
205
+ declare enum TableCombinationConflictType$3 {
209
206
  UNKNOWN = "UNKNOWN",
210
207
  RESERVED = "RESERVED",
211
208
  TOO_BIG = "TOO_BIG",
212
209
  TOO_SMALL = "TOO_SMALL",
213
210
  OFFLINE_ONLY = "OFFLINE_ONLY"
214
211
  }
215
- declare enum Type$1 {
212
+ declare enum Type$3 {
216
213
  UNKNOWN = "UNKNOWN",
217
214
  PARTY_PACING = "PARTY_PACING",
218
215
  SEAT_PACING = "SEAT_PACING"
@@ -255,7 +252,7 @@ interface UpdateReservationRequest$1 {
255
252
  * * `"TOO_SMALL"`: The party is too small for the selected table.
256
253
  * * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
257
254
  */
258
- ignoreTableCombinationConflicts?: TableCombinationConflictType$1[];
255
+ ignoreTableCombinationConflicts?: TableCombinationConflictType$3[];
259
256
  /**
260
257
  * Ignored reservation location conflicts of the types included in the array. This ensures that the reservation is updated even if the given conflicts would normally prevent it.
261
258
  *
@@ -263,7 +260,7 @@ interface UpdateReservationRequest$1 {
263
260
  * * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
264
261
  * * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
265
262
  */
266
- ignoreReservationLocationConflicts?: Type$1[];
263
+ ignoreReservationLocationConflicts?: Type$3[];
267
264
  }
268
265
  interface UpdateReservationResponse$1 {
269
266
  /** Reservation. */
@@ -324,6 +321,12 @@ interface CancelReservationResponse$1 {
324
321
  /** Reservation. */
325
322
  reservation?: Reservation$1;
326
323
  }
324
+ interface DeleteReservationRequest$1 {
325
+ /** Reservation ID. */
326
+ reservationId: string;
327
+ }
328
+ interface DeleteReservationResponse$1 {
329
+ }
327
330
  interface ListReservationsRequest$1 {
328
331
  /** 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`. */
329
332
  paging?: CursorPaging$3;
@@ -411,7 +414,7 @@ interface CursorQuery$1 extends CursorQueryPagingMethodOneOf$1 {
411
414
  * "fieldName2":{"$operator":"value2"}
412
415
  * }`
413
416
  *
414
- * For a detailed list of supported operations, see the [Supported Filters and Sorting](https://dev.wix.com/docs/rest/api-reference/wix-restaurants/reservations/reservations/sorting-and-filtering) article.
417
+ * For a detailed list of supported operations, see the [Supported Filters and Sorting](https://dev.wix.com/docs/rest/api-reference/wix-restaurants/reservations/reservations/sorting-filtering-and-search) article.
415
418
  * To learn how to query reservations, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
416
419
  */
417
420
  filter?: Record<string, any> | null;
@@ -437,102 +440,158 @@ interface SearchReservationsRequest$1 {
437
440
  search: CursorSearch$1;
438
441
  }
439
442
  interface CursorSearch$1 extends CursorSearchPagingMethodOneOf$1 {
440
- /** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort' */
443
+ /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can't be used together with 'filter' or 'sort'. */
441
444
  cursorPaging?: CursorPaging$3;
442
- /** A filter object. See the filter section [here](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/wix-api-basics/1011-wql-wix-query-language) */
445
+ /**
446
+ * Filter object in the following format:
447
+ * `"filter" : {
448
+ * "fieldName1": "value1",
449
+ * "fieldName2":{"$operator":"value2"}
450
+ * }`
451
+ * For a detailed list of supported operations, see the [Supported Filters and Sorting](https://dev.wix.com/docs/rest/api-reference/wix-restaurants/reservations/reservations/sorting-filtering-and-search) article.
452
+ */
443
453
  filter?: Record<string, any> | null;
444
- /** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */
454
+ /**
455
+ * Sort object in the following format:
456
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
457
+ */
445
458
  sort?: Sorting$3[];
446
- /** Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition. */
459
+ /**
460
+ * A search method for grouping data into various categories (facets) and providing summaries for each category.
461
+ * For example, use aggregations to allow site visitors to narrow down their search results by selecting specific reservation statuses, party sizes, etc.
462
+ */
447
463
  aggregations?: Aggregation$1[];
448
- /** free text to match in searchable fields */
464
+ /** Free text to match in searchable fields. */
449
465
  search?: SearchDetails$1;
450
466
  /** Time zone to adjust date-time-based filters and aggregations. ISO 8601 or IANA time zone database format. */
451
467
  timeZone?: string | null;
452
468
  }
453
469
  /** @oneof */
454
470
  interface CursorSearchPagingMethodOneOf$1 {
455
- /** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort' */
471
+ /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can't be used together with 'filter' or 'sort'. */
456
472
  cursorPaging?: CursorPaging$3;
457
473
  }
458
474
  interface Aggregation$1 extends AggregationKindOneOf$1 {
475
+ /** A value aggregation calculates metrics such as "count" for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number of reservations (count) of each status that have been made on the site. */
459
476
  value?: ValueAggregation$1;
477
+ /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */
460
478
  range?: RangeAggregation$1;
479
+ /** A scalar aggregation calculates a single numerical value from a dataset, such as the total sum, average, min, or max, summarizing the dataset into one key metric. For example, use a scalar aggregation to get the average part size of reservations made on a site. */
461
480
  scalar?: ScalarAggregation$1;
481
+ /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */
462
482
  dateHistogram?: DateHistogramAggregation$1;
483
+ /**
484
+ * A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy.
485
+ * For example, to get the number of reservations by party size for each week, first perform a date histogram aggregation on `details.startDate` with the interval `WEEK`, and a second value aggregation on `details.partySize`.
486
+ */
463
487
  nested?: NestedAggregation$1;
464
488
  name?: string | null;
465
489
  type?: AggregationType$1;
466
490
  fieldPath?: string;
467
- groupBy?: GroupByAggregation$1;
468
491
  }
469
492
  /** @oneof */
470
493
  interface AggregationKindOneOf$1 {
494
+ /** A value aggregation calculates metrics such as "count" for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number of reservations (count) of each status that have been made on the site. */
471
495
  value?: ValueAggregation$1;
496
+ /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */
472
497
  range?: RangeAggregation$1;
498
+ /** A scalar aggregation calculates a single numerical value from a dataset, such as the total sum, average, min, or max, summarizing the dataset into one key metric. For example, use a scalar aggregation to get the average part size of reservations made on a site. */
473
499
  scalar?: ScalarAggregation$1;
500
+ /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */
474
501
  dateHistogram?: DateHistogramAggregation$1;
502
+ /**
503
+ * A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy.
504
+ * For example, to get the number of reservations by party size for each week, first perform a date histogram aggregation on `details.startDate` with the interval `WEEK`, and a second value aggregation on `details.partySize`.
505
+ */
475
506
  nested?: NestedAggregation$1;
476
507
  }
477
508
  interface RangeBucket$1 {
478
- /** Inclusive lower bound of the range. Required if to is not given. */
509
+ /** Inclusive lower bound of the range. Required if `to` is not provided. */
479
510
  from?: number | null;
480
- /** Exclusive upper bound of the range. Required if from is not given. */
511
+ /** Exclusive upper bound of the range. Required if `from` is not provided. */
481
512
  to?: number | null;
482
513
  }
483
514
  declare enum SortType$1 {
515
+ /** Sort by number of matches. */
484
516
  COUNT = "COUNT",
517
+ /** Sort by value of the field alphabetically. */
485
518
  VALUE = "VALUE"
486
519
  }
487
520
  declare enum SortDirection$1 {
521
+ /** Sort in descending order. */
488
522
  DESC = "DESC",
523
+ /** Sort in ascending order. */
489
524
  ASC = "ASC"
490
525
  }
491
526
  declare enum MissingValues$1 {
527
+ /** Exclude missing values from the aggregation results */
492
528
  EXCLUDE = "EXCLUDE",
529
+ /** Include missing values in the aggregation results */
493
530
  INCLUDE = "INCLUDE"
494
531
  }
495
532
  interface IncludeMissingValuesOptions$1 {
496
- /** can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ... */
533
+ /** Specify a custom name for the bucket containing the missing values. Defaults are "N/A" for strings, "0" for integers, and "false" for booleans. */
497
534
  addToBucket?: string;
498
535
  }
499
536
  declare enum ScalarType$1 {
500
537
  UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
538
+ /** Count of distinct values. */
501
539
  COUNT_DISTINCT = "COUNT_DISTINCT",
540
+ /** Minimum value. */
502
541
  MIN = "MIN",
542
+ /** Maximum value. */
503
543
  MAX = "MAX",
544
+ /** Sum of values. */
504
545
  SUM = "SUM",
546
+ /** Average of values. */
505
547
  AVG = "AVG"
506
548
  }
549
+ declare enum NestedAggregationType$1 {
550
+ UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
551
+ /** An aggregation where result buckets are dynamically built - one per unique value. */
552
+ VALUE = "VALUE",
553
+ /** An aggregation where you can define a set of ranges - each representing a bucket. */
554
+ RANGE = "RANGE",
555
+ /** A single-value metric aggregation - e.g. min, max, sum, avg. */
556
+ SCALAR = "SCALAR",
557
+ /** An aggregation where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
558
+ DATE_HISTOGRAM = "DATE_HISTOGRAM"
559
+ }
507
560
  interface ValueAggregation$1 extends ValueAggregationOptionsOneOf$1 {
508
- /** options for including missing values */
561
+ /** Options for including missing values in results. */
509
562
  includeOptions?: IncludeMissingValuesOptions$1;
563
+ /** Whether to sort by the number of matches or the value of the field. */
510
564
  sortType?: SortType$1;
565
+ /** Whether to sort in ascending or descending order. */
511
566
  sortDirection?: SortDirection$1;
512
- /** How many aggregations would you like to return? Can be between 1 and 250. 10 is the default. */
567
+ /**
568
+ * Number of aggregation results to return.
569
+ * Min: `1`
570
+ * Max: `250`
571
+ * Default: `10`
572
+ */
513
573
  limit?: number | null;
514
- /** should missing values be included or excluded from the aggregation results. Default is EXCLUDE */
574
+ /**
575
+ * Whether missing values should be included or excluded from the aggregation results.
576
+ * Default: `EXCLUDE`.
577
+ */
515
578
  missingValues?: MissingValues$1;
516
579
  }
517
580
  /** @oneof */
518
581
  interface ValueAggregationOptionsOneOf$1 {
519
- /** options for including missing values */
582
+ /** Options for including missing values in results. */
520
583
  includeOptions?: IncludeMissingValuesOptions$1;
521
584
  }
522
- declare enum NestedAggregationType$1 {
523
- UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
524
- VALUE = "VALUE",
525
- RANGE = "RANGE",
526
- SCALAR = "SCALAR",
527
- DATE_HISTOGRAM = "DATE_HISTOGRAM"
528
- }
529
585
  interface RangeAggregation$1 {
586
+ /** List of range buckets. During aggregation each entity will be placed in the first bucket its value falls into based on the provided range bounds. */
530
587
  buckets?: RangeBucket$1[];
531
588
  }
532
589
  interface ScalarAggregation$1 {
590
+ /** Operation type for the scalar aggregation. */
533
591
  type?: ScalarType$1;
534
592
  }
535
593
  interface DateHistogramAggregation$1 {
594
+ /** Interval for date histogram aggregation. */
536
595
  interval?: Interval$1;
537
596
  }
538
597
  declare enum Interval$1 {
@@ -546,55 +605,72 @@ declare enum Interval$1 {
546
605
  SECOND = "SECOND"
547
606
  }
548
607
  interface NestedAggregationItem$1 extends NestedAggregationItemKindOneOf$1 {
608
+ /** A value aggregation calculates metrics such as "count" for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number of reservations (count) of each status that have been made on the site. */
549
609
  value?: ValueAggregation$1;
610
+ /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */
550
611
  range?: RangeAggregation$1;
612
+ /** A scalar aggregation calculates a single numerical value from a dataset, such as the total sum, average, min, or max, summarizing the dataset into one key metric. For example, use a scalar aggregation to get the average part size of reservations made on a site. */
551
613
  scalar?: ScalarAggregation$1;
614
+ /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */
552
615
  dateHistogram?: DateHistogramAggregation$1;
616
+ /** Aggregation name displayed in the return. */
553
617
  name?: string | null;
618
+ /** Type of aggregation to perform. */
554
619
  type?: NestedAggregationType$1;
620
+ /** Field to aggregate by. */
555
621
  fieldPath?: string;
556
622
  }
557
623
  /** @oneof */
558
624
  interface NestedAggregationItemKindOneOf$1 {
625
+ /** A value aggregation calculates metrics such as "count" for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number of reservations (count) of each status that have been made on the site. */
559
626
  value?: ValueAggregation$1;
627
+ /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */
560
628
  range?: RangeAggregation$1;
629
+ /** A scalar aggregation calculates a single numerical value from a dataset, such as the total sum, average, min, or max, summarizing the dataset into one key metric. For example, use a scalar aggregation to get the average part size of reservations made on a site. */
561
630
  scalar?: ScalarAggregation$1;
631
+ /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */
562
632
  dateHistogram?: DateHistogramAggregation$1;
563
633
  }
564
634
  declare enum AggregationType$1 {
565
635
  UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
636
+ /** An aggregation where result buckets are dynamically built - one per unique value. */
566
637
  VALUE = "VALUE",
638
+ /** An aggregation where you can define a set of ranges - each representing a bucket. */
567
639
  RANGE = "RANGE",
640
+ /** A single-value metric aggregation - e.g. min, max, sum, avg. */
568
641
  SCALAR = "SCALAR",
642
+ /** An aggregation where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
569
643
  DATE_HISTOGRAM = "DATE_HISTOGRAM",
644
+ /** Multi-level aggregation, where each next aggregation is nested within the previous one. */
570
645
  NESTED = "NESTED"
571
646
  }
572
647
  interface NestedAggregation$1 {
648
+ /** Flattened list of aggregations, where each aggregation is nested within the previous one. */
573
649
  nestedAggregations?: NestedAggregationItem$1[];
574
650
  }
575
- interface GroupByAggregation$1 extends GroupByAggregationKindOneOf$1 {
576
- value?: ValueAggregation$1;
577
- name?: string | null;
578
- fieldPath?: string;
579
- }
580
- /** @oneof */
581
- interface GroupByAggregationKindOneOf$1 {
582
- value?: ValueAggregation$1;
583
- }
584
651
  interface SearchDetails$1 {
585
- /** boolean search mode */
652
+ /** Boolean search mode. Defines how separate search terms in the `expression` are combined. */
586
653
  mode?: Mode$1;
587
- /** search term or expression */
654
+ /** Search term or expression. */
588
655
  expression?: string | null;
589
- /** fields to search in. if empty - server will search in own default fields */
656
+ /**
657
+ * Fields to search in.
658
+ *
659
+ * Searchable fields are `reservee.first_name`, `reservee.last_name`, `reservee.phone`, and `reservee.email`.
660
+ *
661
+ * If the array is empty, all fields are searched.
662
+ */
590
663
  fields?: string[];
591
- /** flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
664
+ /**
665
+ * Whether to allow the search function to automatically correct typos or minor mistakes in the search expression.
666
+ * The search function uses an algorithm to find results that are close to what the site visitor typed.
667
+ */
592
668
  fuzzy?: boolean;
593
669
  }
594
670
  declare enum Mode$1 {
595
- /** any */
671
+ /** Returns instances where any terms in the expression occur. */
596
672
  OR = "OR",
597
- /** all */
673
+ /** Returns instances where all the terms in the expression occur. */
598
674
  AND = "AND"
599
675
  }
600
676
  interface SearchReservationsResponse$1 {
@@ -606,40 +682,58 @@ interface SearchReservationsResponse$1 {
606
682
  aggregationData?: AggregationData$1;
607
683
  }
608
684
  interface AggregationData$1 {
609
- /** key = aggregation name (as derived from search request) */
685
+ /** List of the aggregated data results. */
610
686
  results?: AggregationResults$1[];
611
687
  }
612
688
  interface ValueAggregationResult$1 {
689
+ /** Value of the field */
613
690
  value?: string;
691
+ /** Count of entities with this value */
614
692
  count?: number;
615
693
  }
616
694
  interface RangeAggregationResult$1 {
695
+ /** Inclusive lower bound of the range. */
617
696
  from?: number | null;
697
+ /** Exclusive upper bound of the range. */
618
698
  to?: number | null;
699
+ /** Count of entities in the range. */
619
700
  count?: number;
620
701
  }
621
702
  interface NestedAggregationResults$1 extends NestedAggregationResultsResultOneOf$1 {
703
+ /** List of the value aggregation results. */
622
704
  values?: ValueResults$1;
705
+ /** List of the range aggregation results. */
623
706
  ranges?: RangeResults$1;
707
+ /** List of the scalar aggregation results. */
624
708
  scalar?: AggregationResultsScalarResult$1;
709
+ /** Aggregation name defined in the request. */
625
710
  name?: string;
711
+ /** Type of aggregation performed. */
626
712
  type?: AggregationType$1;
713
+ /** Field the data was aggregated by. */
627
714
  fieldPath?: string;
628
715
  }
629
716
  /** @oneof */
630
717
  interface NestedAggregationResultsResultOneOf$1 {
718
+ /** List of the value aggregation results. */
631
719
  values?: ValueResults$1;
720
+ /** List of the range aggregation results. */
632
721
  ranges?: RangeResults$1;
722
+ /** List of the scalar aggregation results. */
633
723
  scalar?: AggregationResultsScalarResult$1;
634
724
  }
635
725
  interface ValueResults$1 {
726
+ /** List of value aggregations. */
636
727
  results?: ValueAggregationResult$1[];
637
728
  }
638
729
  interface RangeResults$1 {
730
+ /** List of ranges returned in same order as requested. */
639
731
  results?: RangeAggregationResult$1[];
640
732
  }
641
733
  interface AggregationResultsScalarResult$1 {
734
+ /** Type of scalar aggregation. */
642
735
  type?: ScalarType$1;
736
+ /** Value of the scalar aggregation. */
643
737
  value?: number;
644
738
  }
645
739
  interface NestedValueAggregationResult$1 {
@@ -647,241 +741,228 @@ interface NestedValueAggregationResult$1 {
647
741
  nestedResults?: NestedAggregationResults$1;
648
742
  }
649
743
  interface ValueResult$1 {
744
+ /** Value of the field. */
650
745
  value?: string;
746
+ /** Count of entities with this value. */
651
747
  count?: number | null;
652
748
  }
653
749
  interface RangeResult$1 {
750
+ /** Inclusive lower bound of the range. */
654
751
  from?: number | null;
752
+ /** Exclusive upper bound of the range. */
655
753
  to?: number | null;
754
+ /** Count of entities in the range. */
656
755
  count?: number | null;
657
756
  }
658
757
  interface ScalarResult$1 {
758
+ /** Scalar aggregation results. */
659
759
  value?: number;
660
760
  }
661
761
  interface NestedResultValue$1 extends NestedResultValueResultOneOf$1 {
762
+ /** Value aggregation results. */
662
763
  value?: ValueResult$1;
764
+ /** Range aggregation results. */
663
765
  range?: RangeResult$1;
766
+ /** Scalar aggregation results. */
664
767
  scalar?: ScalarResult$1;
768
+ /** Date histogram aggregation results. */
665
769
  dateHistogram?: ValueResult$1;
666
770
  }
667
771
  /** @oneof */
668
772
  interface NestedResultValueResultOneOf$1 {
773
+ /** Value aggregation results. */
669
774
  value?: ValueResult$1;
775
+ /** Range aggregation results. */
670
776
  range?: RangeResult$1;
777
+ /** Scalar aggregation results. */
671
778
  scalar?: ScalarResult$1;
779
+ /** Date histogram aggregation results. */
672
780
  dateHistogram?: ValueResult$1;
673
781
  }
674
782
  interface Results$1 {
783
+ /** List of nested aggregation results. */
675
784
  results?: Record<string, NestedResultValue$1>;
676
785
  }
677
786
  interface DateHistogramResult$1 {
787
+ /** Date in ISO 8601 format. */
678
788
  value?: string;
789
+ /** Count of entities in the interval. */
679
790
  count?: number;
680
791
  }
792
+ /** deprecated */
681
793
  interface GroupByValueResults$1 {
682
794
  results?: NestedValueAggregationResult$1[];
683
795
  }
684
796
  interface DateHistogramResults$1 {
797
+ /** List of date histogram aggregations. */
685
798
  results?: DateHistogramResult$1[];
686
799
  }
800
+ /**
801
+ * Results of `NESTED` aggregation type in a flattened form.
802
+ * Aggregations in the resulting array are keyed by the requested aggregation `name`.
803
+ */
687
804
  interface NestedResults$1 {
805
+ /** List of nested aggregation results. */
688
806
  results?: Results$1[];
689
807
  }
690
808
  interface AggregationResults$1 extends AggregationResultsResultOneOf$1 {
809
+ /** Value aggregation results. */
691
810
  values?: ValueResults$1;
811
+ /** Range aggregation results. */
692
812
  ranges?: RangeResults$1;
813
+ /** Scalar aggregation results. */
693
814
  scalar?: AggregationResultsScalarResult$1;
815
+ /** deprecated */
694
816
  groupedByValue?: GroupByValueResults$1;
817
+ /** Date histogram aggregation results. */
695
818
  dateHistogram?: DateHistogramResults$1;
819
+ /** Nested aggregation results. */
696
820
  nested?: NestedResults$1;
821
+ /** Aggregation name defined in the request. */
697
822
  name?: string;
823
+ /** Type of aggregation that was performed. */
698
824
  type?: AggregationType$1;
825
+ /** Field the data was aggregated by. */
699
826
  fieldPath?: string;
700
827
  }
701
828
  /** @oneof */
702
829
  interface AggregationResultsResultOneOf$1 {
830
+ /** Value aggregation results. */
703
831
  values?: ValueResults$1;
832
+ /** Range aggregation results. */
704
833
  ranges?: RangeResults$1;
834
+ /** Scalar aggregation results. */
705
835
  scalar?: AggregationResultsScalarResult$1;
836
+ /** deprecated */
706
837
  groupedByValue?: GroupByValueResults$1;
838
+ /** Date histogram aggregation results. */
707
839
  dateHistogram?: DateHistogramResults$1;
840
+ /** Nested aggregation results. */
708
841
  nested?: NestedResults$1;
709
842
  }
843
+ interface RawHttpRequest$1 {
844
+ body?: Uint8Array;
845
+ pathParams?: PathParametersEntry$1[];
846
+ queryParams?: QueryParametersEntry$1[];
847
+ headers?: HeadersEntry$1[];
848
+ method?: string;
849
+ rawPath?: string;
850
+ rawQuery?: string;
851
+ }
852
+ interface PathParametersEntry$1 {
853
+ key?: string;
854
+ value?: string;
855
+ }
856
+ interface QueryParametersEntry$1 {
857
+ key?: string;
858
+ value?: string;
859
+ }
860
+ interface HeadersEntry$1 {
861
+ key?: string;
862
+ value?: string;
863
+ }
864
+ interface RawHttpResponse$1 {
865
+ body?: Uint8Array;
866
+ statusCode?: number | null;
867
+ headers?: HeadersEntry$1[];
868
+ }
869
+ interface TableWithReservationConflictsNonNullableFields$1 {
870
+ tableId: string;
871
+ reservationIds: string[];
872
+ }
873
+ interface ReservationNonNullableFields$1 {
874
+ status: Status$3;
875
+ source: Source$1;
876
+ tablesWithReservationConflicts: TableWithReservationConflictsNonNullableFields$1[];
877
+ paymentStatus: PaymentStatus$1;
878
+ }
710
879
  interface CreateReservationResponseNonNullableFields$1 {
711
- reservation?: {
712
- status: Status$3;
713
- source: Source$1;
714
- migrationNotes: MigrationNote[];
715
- tablesWithReservationConflicts: {
716
- tableId: string;
717
- reservationIds: string[];
718
- }[];
719
- paymentStatus: PaymentStatus$1;
720
- };
880
+ reservation?: ReservationNonNullableFields$1;
721
881
  }
722
882
  interface GetReservationResponseNonNullableFields$1 {
723
- reservation?: {
724
- status: Status$3;
725
- source: Source$1;
726
- migrationNotes: MigrationNote[];
727
- tablesWithReservationConflicts: {
728
- tableId: string;
729
- reservationIds: string[];
730
- }[];
731
- paymentStatus: PaymentStatus$1;
732
- };
883
+ reservation?: ReservationNonNullableFields$1;
733
884
  }
734
885
  interface UpdateReservationResponseNonNullableFields$1 {
735
- reservation?: {
736
- status: Status$3;
737
- source: Source$1;
738
- migrationNotes: MigrationNote[];
739
- tablesWithReservationConflicts: {
740
- tableId: string;
741
- reservationIds: string[];
742
- }[];
743
- paymentStatus: PaymentStatus$1;
744
- };
886
+ reservation?: ReservationNonNullableFields$1;
745
887
  }
746
888
  interface CreateHeldReservationResponseNonNullableFields$1 {
747
- reservation?: {
748
- status: Status$3;
749
- source: Source$1;
750
- migrationNotes: MigrationNote[];
751
- tablesWithReservationConflicts: {
752
- tableId: string;
753
- reservationIds: string[];
754
- }[];
755
- paymentStatus: PaymentStatus$1;
756
- };
889
+ reservation?: ReservationNonNullableFields$1;
757
890
  }
758
891
  interface ReserveReservationResponseNonNullableFields$1 {
759
- reservation?: {
760
- status: Status$3;
761
- source: Source$1;
762
- migrationNotes: MigrationNote[];
763
- tablesWithReservationConflicts: {
764
- tableId: string;
765
- reservationIds: string[];
766
- }[];
767
- paymentStatus: PaymentStatus$1;
768
- };
892
+ reservation?: ReservationNonNullableFields$1;
769
893
  }
770
894
  interface CancelReservationResponseNonNullableFields$1 {
771
- reservation?: {
772
- status: Status$3;
773
- source: Source$1;
774
- migrationNotes: MigrationNote[];
775
- tablesWithReservationConflicts: {
776
- tableId: string;
777
- reservationIds: string[];
778
- }[];
779
- paymentStatus: PaymentStatus$1;
780
- };
895
+ reservation?: ReservationNonNullableFields$1;
781
896
  }
782
897
  interface ListReservationsResponseNonNullableFields$1 {
783
- reservations: {
784
- status: Status$3;
785
- source: Source$1;
786
- migrationNotes: MigrationNote[];
787
- tablesWithReservationConflicts: {
788
- tableId: string;
789
- reservationIds: string[];
790
- }[];
791
- paymentStatus: PaymentStatus$1;
792
- }[];
898
+ reservations: ReservationNonNullableFields$1[];
793
899
  }
794
900
  interface QueryReservationsResponseNonNullableFields$1 {
795
- reservations: {
796
- status: Status$3;
797
- source: Source$1;
798
- migrationNotes: MigrationNote[];
799
- tablesWithReservationConflicts: {
800
- tableId: string;
801
- reservationIds: string[];
802
- }[];
803
- paymentStatus: PaymentStatus$1;
804
- }[];
901
+ reservations: ReservationNonNullableFields$1[];
902
+ }
903
+ interface ValueAggregationResultNonNullableFields$1 {
904
+ value: string;
905
+ count: number;
906
+ }
907
+ interface ValueResultsNonNullableFields$1 {
908
+ results: ValueAggregationResultNonNullableFields$1[];
909
+ }
910
+ interface RangeAggregationResultNonNullableFields$1 {
911
+ count: number;
912
+ }
913
+ interface RangeResultsNonNullableFields$1 {
914
+ results: RangeAggregationResultNonNullableFields$1[];
915
+ }
916
+ interface AggregationResultsScalarResultNonNullableFields$1 {
917
+ type: ScalarType$1;
918
+ value: number;
919
+ }
920
+ interface NestedAggregationResultsNonNullableFields$1 {
921
+ values?: ValueResultsNonNullableFields$1;
922
+ ranges?: RangeResultsNonNullableFields$1;
923
+ scalar?: AggregationResultsScalarResultNonNullableFields$1;
924
+ name: string;
925
+ type: AggregationType$1;
926
+ fieldPath: string;
927
+ }
928
+ interface NestedValueAggregationResultNonNullableFields$1 {
929
+ value: string;
930
+ nestedResults?: NestedAggregationResultsNonNullableFields$1;
931
+ }
932
+ interface GroupByValueResultsNonNullableFields$1 {
933
+ results: NestedValueAggregationResultNonNullableFields$1[];
934
+ }
935
+ interface DateHistogramResultNonNullableFields$1 {
936
+ value: string;
937
+ count: number;
938
+ }
939
+ interface DateHistogramResultsNonNullableFields$1 {
940
+ results: DateHistogramResultNonNullableFields$1[];
941
+ }
942
+ interface AggregationResultsNonNullableFields$1 {
943
+ values?: ValueResultsNonNullableFields$1;
944
+ ranges?: RangeResultsNonNullableFields$1;
945
+ scalar?: AggregationResultsScalarResultNonNullableFields$1;
946
+ groupedByValue?: GroupByValueResultsNonNullableFields$1;
947
+ dateHistogram?: DateHistogramResultsNonNullableFields$1;
948
+ name: string;
949
+ type: AggregationType$1;
950
+ fieldPath: string;
951
+ }
952
+ interface AggregationDataNonNullableFields$1 {
953
+ results: AggregationResultsNonNullableFields$1[];
805
954
  }
806
955
  interface SearchReservationsResponseNonNullableFields$1 {
807
- reservations: {
808
- status: Status$3;
809
- source: Source$1;
810
- migrationNotes: MigrationNote[];
811
- tablesWithReservationConflicts: {
812
- tableId: string;
813
- reservationIds: string[];
814
- }[];
815
- paymentStatus: PaymentStatus$1;
816
- }[];
817
- aggregationData?: {
818
- results: {
819
- values?: {
820
- results: {
821
- value: string;
822
- count: number;
823
- }[];
824
- };
825
- ranges?: {
826
- results: {
827
- count: number;
828
- }[];
829
- };
830
- scalar?: {
831
- type: ScalarType$1;
832
- value: number;
833
- };
834
- groupedByValue?: {
835
- results: {
836
- value: string;
837
- nestedResults?: {
838
- values?: {
839
- results: {
840
- value: string;
841
- count: number;
842
- }[];
843
- };
844
- ranges?: {
845
- results: {
846
- count: number;
847
- }[];
848
- };
849
- scalar?: {
850
- type: ScalarType$1;
851
- value: number;
852
- };
853
- name: string;
854
- type: AggregationType$1;
855
- fieldPath: string;
856
- };
857
- }[];
858
- };
859
- dateHistogram?: {
860
- results: {
861
- value: string;
862
- count: number;
863
- }[];
864
- };
865
- nested?: {
866
- results: {
867
- results?: {
868
- value?: {
869
- value: string;
870
- };
871
- scalar?: {
872
- value: number;
873
- };
874
- dateHistogram?: {
875
- value: string;
876
- };
877
- };
878
- }[];
879
- };
880
- name: string;
881
- type: AggregationType$1;
882
- fieldPath: string;
883
- }[];
884
- };
956
+ reservations: ReservationNonNullableFields$1[];
957
+ aggregationData?: AggregationDataNonNullableFields$1;
958
+ }
959
+ interface HeadersEntryNonNullableFields$1 {
960
+ key: string;
961
+ value: string;
962
+ }
963
+ interface RawHttpResponseNonNullableFields$1 {
964
+ body: Uint8Array;
965
+ headers: HeadersEntryNonNullableFields$1[];
885
966
  }
886
967
 
887
968
  /** The reservation domain object. */
@@ -1080,7 +1161,7 @@ interface CreateReservationRequest {
1080
1161
  * * `"TOO_SMALL"`: The party is too small for the selected table.
1081
1162
  * * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
1082
1163
  */
1083
- ignoreTableCombinationConflicts?: TableCombinationConflictType[];
1164
+ ignoreTableCombinationConflicts?: TableCombinationConflictType$2[];
1084
1165
  /**
1085
1166
  * Ignored reservation location conflicts of the types included in the array. This ensures that the reservation is created even if the given conflicts would normally prevent it.
1086
1167
  *
@@ -1088,16 +1169,16 @@ interface CreateReservationRequest {
1088
1169
  * * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
1089
1170
  * * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
1090
1171
  */
1091
- ignoreReservationLocationConflicts?: Type[];
1172
+ ignoreReservationLocationConflicts?: Type$2[];
1092
1173
  }
1093
- declare enum TableCombinationConflictType {
1174
+ declare enum TableCombinationConflictType$2 {
1094
1175
  UNKNOWN = "UNKNOWN",
1095
1176
  RESERVED = "RESERVED",
1096
1177
  TOO_BIG = "TOO_BIG",
1097
1178
  TOO_SMALL = "TOO_SMALL",
1098
1179
  OFFLINE_ONLY = "OFFLINE_ONLY"
1099
1180
  }
1100
- declare enum Type {
1181
+ declare enum Type$2 {
1101
1182
  UNKNOWN = "UNKNOWN",
1102
1183
  PARTY_PACING = "PARTY_PACING",
1103
1184
  SEAT_PACING = "SEAT_PACING"
@@ -1138,7 +1219,7 @@ interface UpdateReservationRequest {
1138
1219
  * * `"TOO_SMALL"`: The party is too small for the selected table.
1139
1220
  * * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
1140
1221
  */
1141
- ignoreTableCombinationConflicts?: TableCombinationConflictType[];
1222
+ ignoreTableCombinationConflicts?: TableCombinationConflictType$2[];
1142
1223
  /**
1143
1224
  * Ignored reservation location conflicts of the types included in the array. This ensures that the reservation is updated even if the given conflicts would normally prevent it.
1144
1225
  *
@@ -1146,7 +1227,7 @@ interface UpdateReservationRequest {
1146
1227
  * * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
1147
1228
  * * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
1148
1229
  */
1149
- ignoreReservationLocationConflicts?: Type[];
1230
+ ignoreReservationLocationConflicts?: Type$2[];
1150
1231
  }
1151
1232
  interface UpdateReservationResponse {
1152
1233
  /** Reservation. */
@@ -1207,6 +1288,12 @@ interface CancelReservationResponse {
1207
1288
  /** Reservation. */
1208
1289
  reservation?: Reservation;
1209
1290
  }
1291
+ interface DeleteReservationRequest {
1292
+ /** Reservation ID. */
1293
+ reservationId: string;
1294
+ }
1295
+ interface DeleteReservationResponse {
1296
+ }
1210
1297
  interface ListReservationsRequest {
1211
1298
  /** 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`. */
1212
1299
  paging?: CursorPaging$2;
@@ -1294,7 +1381,7 @@ interface CursorQuery extends CursorQueryPagingMethodOneOf {
1294
1381
  * "fieldName2":{"$operator":"value2"}
1295
1382
  * }`
1296
1383
  *
1297
- * For a detailed list of supported operations, see the [Supported Filters and Sorting](https://dev.wix.com/docs/rest/api-reference/wix-restaurants/reservations/reservations/sorting-and-filtering) article.
1384
+ * For a detailed list of supported operations, see the [Supported Filters and Sorting](https://dev.wix.com/docs/rest/api-reference/wix-restaurants/reservations/reservations/sorting-filtering-and-search) article.
1298
1385
  * To learn how to query reservations, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
1299
1386
  */
1300
1387
  filter?: Record<string, any> | null;
@@ -1320,102 +1407,158 @@ interface SearchReservationsRequest {
1320
1407
  search: CursorSearch;
1321
1408
  }
1322
1409
  interface CursorSearch extends CursorSearchPagingMethodOneOf {
1323
- /** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort' */
1410
+ /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can't be used together with 'filter' or 'sort'. */
1324
1411
  cursorPaging?: CursorPaging$2;
1325
- /** A filter object. See the filter section [here](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/wix-api-basics/1011-wql-wix-query-language) */
1412
+ /**
1413
+ * Filter object in the following format:
1414
+ * `"filter" : {
1415
+ * "fieldName1": "value1",
1416
+ * "fieldName2":{"$operator":"value2"}
1417
+ * }`
1418
+ * For a detailed list of supported operations, see the [Supported Filters and Sorting](https://dev.wix.com/docs/rest/api-reference/wix-restaurants/reservations/reservations/sorting-filtering-and-search) article.
1419
+ */
1326
1420
  filter?: Record<string, any> | null;
1327
- /** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */
1421
+ /**
1422
+ * Sort object in the following format:
1423
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
1424
+ */
1328
1425
  sort?: Sorting$2[];
1329
- /** Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition. */
1426
+ /**
1427
+ * A search method for grouping data into various categories (facets) and providing summaries for each category.
1428
+ * For example, use aggregations to allow site visitors to narrow down their search results by selecting specific reservation statuses, party sizes, etc.
1429
+ */
1330
1430
  aggregations?: Aggregation[];
1331
- /** free text to match in searchable fields */
1431
+ /** Free text to match in searchable fields. */
1332
1432
  search?: SearchDetails;
1333
1433
  /** Time zone to adjust date-time-based filters and aggregations. ISO 8601 or IANA time zone database format. */
1334
1434
  timeZone?: string | null;
1335
1435
  }
1336
1436
  /** @oneof */
1337
1437
  interface CursorSearchPagingMethodOneOf {
1338
- /** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort' */
1438
+ /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can't be used together with 'filter' or 'sort'. */
1339
1439
  cursorPaging?: CursorPaging$2;
1340
1440
  }
1341
1441
  interface Aggregation extends AggregationKindOneOf {
1442
+ /** A value aggregation calculates metrics such as "count" for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number of reservations (count) of each status that have been made on the site. */
1342
1443
  value?: ValueAggregation;
1444
+ /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */
1343
1445
  range?: RangeAggregation;
1446
+ /** A scalar aggregation calculates a single numerical value from a dataset, such as the total sum, average, min, or max, summarizing the dataset into one key metric. For example, use a scalar aggregation to get the average part size of reservations made on a site. */
1344
1447
  scalar?: ScalarAggregation;
1448
+ /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */
1345
1449
  dateHistogram?: DateHistogramAggregation;
1450
+ /**
1451
+ * A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy.
1452
+ * For example, to get the number of reservations by party size for each week, first perform a date histogram aggregation on `details.startDate` with the interval `WEEK`, and a second value aggregation on `details.partySize`.
1453
+ */
1346
1454
  nested?: NestedAggregation;
1347
1455
  name?: string | null;
1348
1456
  type?: AggregationType;
1349
1457
  fieldPath?: string;
1350
- groupBy?: GroupByAggregation;
1351
1458
  }
1352
1459
  /** @oneof */
1353
1460
  interface AggregationKindOneOf {
1461
+ /** A value aggregation calculates metrics such as "count" for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number of reservations (count) of each status that have been made on the site. */
1354
1462
  value?: ValueAggregation;
1463
+ /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */
1355
1464
  range?: RangeAggregation;
1465
+ /** A scalar aggregation calculates a single numerical value from a dataset, such as the total sum, average, min, or max, summarizing the dataset into one key metric. For example, use a scalar aggregation to get the average part size of reservations made on a site. */
1356
1466
  scalar?: ScalarAggregation;
1467
+ /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */
1357
1468
  dateHistogram?: DateHistogramAggregation;
1469
+ /**
1470
+ * A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy.
1471
+ * For example, to get the number of reservations by party size for each week, first perform a date histogram aggregation on `details.startDate` with the interval `WEEK`, and a second value aggregation on `details.partySize`.
1472
+ */
1358
1473
  nested?: NestedAggregation;
1359
1474
  }
1360
1475
  interface RangeBucket {
1361
- /** Inclusive lower bound of the range. Required if to is not given. */
1476
+ /** Inclusive lower bound of the range. Required if `to` is not provided. */
1362
1477
  from?: number | null;
1363
- /** Exclusive upper bound of the range. Required if from is not given. */
1478
+ /** Exclusive upper bound of the range. Required if `from` is not provided. */
1364
1479
  to?: number | null;
1365
1480
  }
1366
1481
  declare enum SortType {
1482
+ /** Sort by number of matches. */
1367
1483
  COUNT = "COUNT",
1484
+ /** Sort by value of the field alphabetically. */
1368
1485
  VALUE = "VALUE"
1369
1486
  }
1370
1487
  declare enum SortDirection {
1488
+ /** Sort in descending order. */
1371
1489
  DESC = "DESC",
1490
+ /** Sort in ascending order. */
1372
1491
  ASC = "ASC"
1373
1492
  }
1374
1493
  declare enum MissingValues {
1494
+ /** Exclude missing values from the aggregation results */
1375
1495
  EXCLUDE = "EXCLUDE",
1496
+ /** Include missing values in the aggregation results */
1376
1497
  INCLUDE = "INCLUDE"
1377
1498
  }
1378
1499
  interface IncludeMissingValuesOptions {
1379
- /** can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ... */
1500
+ /** Specify a custom name for the bucket containing the missing values. Defaults are "N/A" for strings, "0" for integers, and "false" for booleans. */
1380
1501
  addToBucket?: string;
1381
1502
  }
1382
1503
  declare enum ScalarType {
1383
1504
  UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
1505
+ /** Count of distinct values. */
1384
1506
  COUNT_DISTINCT = "COUNT_DISTINCT",
1507
+ /** Minimum value. */
1385
1508
  MIN = "MIN",
1509
+ /** Maximum value. */
1386
1510
  MAX = "MAX",
1511
+ /** Sum of values. */
1387
1512
  SUM = "SUM",
1513
+ /** Average of values. */
1388
1514
  AVG = "AVG"
1389
1515
  }
1516
+ declare enum NestedAggregationType {
1517
+ UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
1518
+ /** An aggregation where result buckets are dynamically built - one per unique value. */
1519
+ VALUE = "VALUE",
1520
+ /** An aggregation where you can define a set of ranges - each representing a bucket. */
1521
+ RANGE = "RANGE",
1522
+ /** A single-value metric aggregation - e.g. min, max, sum, avg. */
1523
+ SCALAR = "SCALAR",
1524
+ /** An aggregation where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
1525
+ DATE_HISTOGRAM = "DATE_HISTOGRAM"
1526
+ }
1390
1527
  interface ValueAggregation extends ValueAggregationOptionsOneOf {
1391
- /** options for including missing values */
1528
+ /** Options for including missing values in results. */
1392
1529
  includeOptions?: IncludeMissingValuesOptions;
1530
+ /** Whether to sort by the number of matches or the value of the field. */
1393
1531
  sortType?: SortType;
1532
+ /** Whether to sort in ascending or descending order. */
1394
1533
  sortDirection?: SortDirection;
1395
- /** How many aggregations would you like to return? Can be between 1 and 250. 10 is the default. */
1534
+ /**
1535
+ * Number of aggregation results to return.
1536
+ * Min: `1`
1537
+ * Max: `250`
1538
+ * Default: `10`
1539
+ */
1396
1540
  limit?: number | null;
1397
- /** should missing values be included or excluded from the aggregation results. Default is EXCLUDE */
1541
+ /**
1542
+ * Whether missing values should be included or excluded from the aggregation results.
1543
+ * Default: `EXCLUDE`.
1544
+ */
1398
1545
  missingValues?: MissingValues;
1399
1546
  }
1400
1547
  /** @oneof */
1401
1548
  interface ValueAggregationOptionsOneOf {
1402
- /** options for including missing values */
1549
+ /** Options for including missing values in results. */
1403
1550
  includeOptions?: IncludeMissingValuesOptions;
1404
1551
  }
1405
- declare enum NestedAggregationType {
1406
- UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
1407
- VALUE = "VALUE",
1408
- RANGE = "RANGE",
1409
- SCALAR = "SCALAR",
1410
- DATE_HISTOGRAM = "DATE_HISTOGRAM"
1411
- }
1412
1552
  interface RangeAggregation {
1553
+ /** List of range buckets. During aggregation each entity will be placed in the first bucket its value falls into based on the provided range bounds. */
1413
1554
  buckets?: RangeBucket[];
1414
1555
  }
1415
1556
  interface ScalarAggregation {
1557
+ /** Operation type for the scalar aggregation. */
1416
1558
  type?: ScalarType;
1417
1559
  }
1418
1560
  interface DateHistogramAggregation {
1561
+ /** Interval for date histogram aggregation. */
1419
1562
  interval?: Interval;
1420
1563
  }
1421
1564
  declare enum Interval {
@@ -1429,55 +1572,72 @@ declare enum Interval {
1429
1572
  SECOND = "SECOND"
1430
1573
  }
1431
1574
  interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
1575
+ /** A value aggregation calculates metrics such as "count" for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number of reservations (count) of each status that have been made on the site. */
1432
1576
  value?: ValueAggregation;
1577
+ /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */
1433
1578
  range?: RangeAggregation;
1579
+ /** A scalar aggregation calculates a single numerical value from a dataset, such as the total sum, average, min, or max, summarizing the dataset into one key metric. For example, use a scalar aggregation to get the average part size of reservations made on a site. */
1434
1580
  scalar?: ScalarAggregation;
1581
+ /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */
1435
1582
  dateHistogram?: DateHistogramAggregation;
1583
+ /** Aggregation name displayed in the return. */
1436
1584
  name?: string | null;
1585
+ /** Type of aggregation to perform. */
1437
1586
  type?: NestedAggregationType;
1587
+ /** Field to aggregate by. */
1438
1588
  fieldPath?: string;
1439
1589
  }
1440
1590
  /** @oneof */
1441
1591
  interface NestedAggregationItemKindOneOf {
1592
+ /** A value aggregation calculates metrics such as "count" for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number of reservations (count) of each status that have been made on the site. */
1442
1593
  value?: ValueAggregation;
1594
+ /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */
1443
1595
  range?: RangeAggregation;
1596
+ /** A scalar aggregation calculates a single numerical value from a dataset, such as the total sum, average, min, or max, summarizing the dataset into one key metric. For example, use a scalar aggregation to get the average part size of reservations made on a site. */
1444
1597
  scalar?: ScalarAggregation;
1598
+ /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */
1445
1599
  dateHistogram?: DateHistogramAggregation;
1446
1600
  }
1447
1601
  declare enum AggregationType {
1448
1602
  UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
1603
+ /** An aggregation where result buckets are dynamically built - one per unique value. */
1449
1604
  VALUE = "VALUE",
1605
+ /** An aggregation where you can define a set of ranges - each representing a bucket. */
1450
1606
  RANGE = "RANGE",
1607
+ /** A single-value metric aggregation - e.g. min, max, sum, avg. */
1451
1608
  SCALAR = "SCALAR",
1609
+ /** An aggregation where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
1452
1610
  DATE_HISTOGRAM = "DATE_HISTOGRAM",
1611
+ /** Multi-level aggregation, where each next aggregation is nested within the previous one. */
1453
1612
  NESTED = "NESTED"
1454
1613
  }
1455
1614
  interface NestedAggregation {
1615
+ /** Flattened list of aggregations, where each aggregation is nested within the previous one. */
1456
1616
  nestedAggregations?: NestedAggregationItem[];
1457
1617
  }
1458
- interface GroupByAggregation extends GroupByAggregationKindOneOf {
1459
- value?: ValueAggregation;
1460
- name?: string | null;
1461
- fieldPath?: string;
1462
- }
1463
- /** @oneof */
1464
- interface GroupByAggregationKindOneOf {
1465
- value?: ValueAggregation;
1466
- }
1467
1618
  interface SearchDetails {
1468
- /** boolean search mode */
1619
+ /** Boolean search mode. Defines how separate search terms in the `expression` are combined. */
1469
1620
  mode?: Mode;
1470
- /** search term or expression */
1621
+ /** Search term or expression. */
1471
1622
  expression?: string | null;
1472
- /** fields to search in. if empty - server will search in own default fields */
1623
+ /**
1624
+ * Fields to search in.
1625
+ *
1626
+ * Searchable fields are `reservee.first_name`, `reservee.last_name`, `reservee.phone`, and `reservee.email`.
1627
+ *
1628
+ * If the array is empty, all fields are searched.
1629
+ */
1473
1630
  fields?: string[];
1474
- /** flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
1631
+ /**
1632
+ * Whether to allow the search function to automatically correct typos or minor mistakes in the search expression.
1633
+ * The search function uses an algorithm to find results that are close to what the site visitor typed.
1634
+ */
1475
1635
  fuzzy?: boolean;
1476
1636
  }
1477
1637
  declare enum Mode {
1478
- /** any */
1638
+ /** Returns instances where any terms in the expression occur. */
1479
1639
  OR = "OR",
1480
- /** all */
1640
+ /** Returns instances where all the terms in the expression occur. */
1481
1641
  AND = "AND"
1482
1642
  }
1483
1643
  interface SearchReservationsResponse {
@@ -1489,40 +1649,58 @@ interface SearchReservationsResponse {
1489
1649
  aggregationData?: AggregationData;
1490
1650
  }
1491
1651
  interface AggregationData {
1492
- /** key = aggregation name (as derived from search request) */
1652
+ /** List of the aggregated data results. */
1493
1653
  results?: AggregationResults[];
1494
1654
  }
1495
1655
  interface ValueAggregationResult {
1656
+ /** Value of the field */
1496
1657
  value?: string;
1658
+ /** Count of entities with this value */
1497
1659
  count?: number;
1498
1660
  }
1499
1661
  interface RangeAggregationResult {
1662
+ /** Inclusive lower bound of the range. */
1500
1663
  from?: number | null;
1664
+ /** Exclusive upper bound of the range. */
1501
1665
  to?: number | null;
1666
+ /** Count of entities in the range. */
1502
1667
  count?: number;
1503
1668
  }
1504
1669
  interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
1670
+ /** List of the value aggregation results. */
1505
1671
  values?: ValueResults;
1672
+ /** List of the range aggregation results. */
1506
1673
  ranges?: RangeResults;
1674
+ /** List of the scalar aggregation results. */
1507
1675
  scalar?: AggregationResultsScalarResult;
1676
+ /** Aggregation name defined in the request. */
1508
1677
  name?: string;
1678
+ /** Type of aggregation performed. */
1509
1679
  type?: AggregationType;
1680
+ /** Field the data was aggregated by. */
1510
1681
  fieldPath?: string;
1511
1682
  }
1512
1683
  /** @oneof */
1513
1684
  interface NestedAggregationResultsResultOneOf {
1685
+ /** List of the value aggregation results. */
1514
1686
  values?: ValueResults;
1687
+ /** List of the range aggregation results. */
1515
1688
  ranges?: RangeResults;
1689
+ /** List of the scalar aggregation results. */
1516
1690
  scalar?: AggregationResultsScalarResult;
1517
1691
  }
1518
1692
  interface ValueResults {
1693
+ /** List of value aggregations. */
1519
1694
  results?: ValueAggregationResult[];
1520
1695
  }
1521
1696
  interface RangeResults {
1697
+ /** List of ranges returned in same order as requested. */
1522
1698
  results?: RangeAggregationResult[];
1523
1699
  }
1524
1700
  interface AggregationResultsScalarResult {
1701
+ /** Type of scalar aggregation. */
1525
1702
  type?: ScalarType;
1703
+ /** Value of the scalar aggregation. */
1526
1704
  value?: number;
1527
1705
  }
1528
1706
  interface NestedValueAggregationResult {
@@ -1530,196 +1708,228 @@ interface NestedValueAggregationResult {
1530
1708
  nestedResults?: NestedAggregationResults;
1531
1709
  }
1532
1710
  interface ValueResult {
1711
+ /** Value of the field. */
1533
1712
  value?: string;
1713
+ /** Count of entities with this value. */
1534
1714
  count?: number | null;
1535
1715
  }
1536
1716
  interface RangeResult {
1717
+ /** Inclusive lower bound of the range. */
1537
1718
  from?: number | null;
1719
+ /** Exclusive upper bound of the range. */
1538
1720
  to?: number | null;
1721
+ /** Count of entities in the range. */
1539
1722
  count?: number | null;
1540
1723
  }
1541
1724
  interface ScalarResult {
1725
+ /** Scalar aggregation results. */
1542
1726
  value?: number;
1543
1727
  }
1544
1728
  interface NestedResultValue extends NestedResultValueResultOneOf {
1729
+ /** Value aggregation results. */
1545
1730
  value?: ValueResult;
1731
+ /** Range aggregation results. */
1546
1732
  range?: RangeResult;
1733
+ /** Scalar aggregation results. */
1547
1734
  scalar?: ScalarResult;
1735
+ /** Date histogram aggregation results. */
1548
1736
  dateHistogram?: ValueResult;
1549
1737
  }
1550
1738
  /** @oneof */
1551
1739
  interface NestedResultValueResultOneOf {
1740
+ /** Value aggregation results. */
1552
1741
  value?: ValueResult;
1742
+ /** Range aggregation results. */
1553
1743
  range?: RangeResult;
1744
+ /** Scalar aggregation results. */
1554
1745
  scalar?: ScalarResult;
1746
+ /** Date histogram aggregation results. */
1555
1747
  dateHistogram?: ValueResult;
1556
1748
  }
1557
1749
  interface Results {
1750
+ /** List of nested aggregation results. */
1558
1751
  results?: Record<string, NestedResultValue>;
1559
1752
  }
1560
1753
  interface DateHistogramResult {
1754
+ /** Date in ISO 8601 format. */
1561
1755
  value?: string;
1756
+ /** Count of entities in the interval. */
1562
1757
  count?: number;
1563
1758
  }
1759
+ /** deprecated */
1564
1760
  interface GroupByValueResults {
1565
1761
  results?: NestedValueAggregationResult[];
1566
1762
  }
1567
1763
  interface DateHistogramResults {
1764
+ /** List of date histogram aggregations. */
1568
1765
  results?: DateHistogramResult[];
1569
1766
  }
1767
+ /**
1768
+ * Results of `NESTED` aggregation type in a flattened form.
1769
+ * Aggregations in the resulting array are keyed by the requested aggregation `name`.
1770
+ */
1570
1771
  interface NestedResults {
1772
+ /** List of nested aggregation results. */
1571
1773
  results?: Results[];
1572
1774
  }
1573
1775
  interface AggregationResults extends AggregationResultsResultOneOf {
1776
+ /** Value aggregation results. */
1574
1777
  values?: ValueResults;
1778
+ /** Range aggregation results. */
1575
1779
  ranges?: RangeResults;
1780
+ /** Scalar aggregation results. */
1576
1781
  scalar?: AggregationResultsScalarResult;
1782
+ /** deprecated */
1577
1783
  groupedByValue?: GroupByValueResults;
1784
+ /** Date histogram aggregation results. */
1578
1785
  dateHistogram?: DateHistogramResults;
1786
+ /** Nested aggregation results. */
1579
1787
  nested?: NestedResults;
1788
+ /** Aggregation name defined in the request. */
1580
1789
  name?: string;
1790
+ /** Type of aggregation that was performed. */
1581
1791
  type?: AggregationType;
1792
+ /** Field the data was aggregated by. */
1582
1793
  fieldPath?: string;
1583
1794
  }
1584
1795
  /** @oneof */
1585
1796
  interface AggregationResultsResultOneOf {
1797
+ /** Value aggregation results. */
1586
1798
  values?: ValueResults;
1799
+ /** Range aggregation results. */
1587
1800
  ranges?: RangeResults;
1801
+ /** Scalar aggregation results. */
1588
1802
  scalar?: AggregationResultsScalarResult;
1803
+ /** deprecated */
1589
1804
  groupedByValue?: GroupByValueResults;
1805
+ /** Date histogram aggregation results. */
1590
1806
  dateHistogram?: DateHistogramResults;
1807
+ /** Nested aggregation results. */
1591
1808
  nested?: NestedResults;
1592
1809
  }
1810
+ interface RawHttpRequest {
1811
+ body?: Uint8Array;
1812
+ pathParams?: PathParametersEntry[];
1813
+ queryParams?: QueryParametersEntry[];
1814
+ headers?: HeadersEntry[];
1815
+ method?: string;
1816
+ rawPath?: string;
1817
+ rawQuery?: string;
1818
+ }
1819
+ interface PathParametersEntry {
1820
+ key?: string;
1821
+ value?: string;
1822
+ }
1823
+ interface QueryParametersEntry {
1824
+ key?: string;
1825
+ value?: string;
1826
+ }
1827
+ interface HeadersEntry {
1828
+ key?: string;
1829
+ value?: string;
1830
+ }
1831
+ interface RawHttpResponse {
1832
+ body?: Uint8Array;
1833
+ statusCode?: number | null;
1834
+ headers?: HeadersEntry[];
1835
+ }
1836
+ interface TableWithReservationConflictsNonNullableFields {
1837
+ tableId: string;
1838
+ reservationIds: string[];
1839
+ }
1840
+ interface ReservationNonNullableFields {
1841
+ status: Status$2;
1842
+ source: Source;
1843
+ tablesWithReservationConflicts: TableWithReservationConflictsNonNullableFields[];
1844
+ paymentStatus: PaymentStatus;
1845
+ }
1593
1846
  interface CreateReservationResponseNonNullableFields {
1594
- reservation?: {
1595
- status: Status$2;
1596
- source: Source;
1597
- paymentStatus: PaymentStatus;
1598
- };
1847
+ reservation?: ReservationNonNullableFields;
1599
1848
  }
1600
1849
  interface GetReservationResponseNonNullableFields {
1601
- reservation?: {
1602
- status: Status$2;
1603
- source: Source;
1604
- paymentStatus: PaymentStatus;
1605
- };
1850
+ reservation?: ReservationNonNullableFields;
1606
1851
  }
1607
1852
  interface UpdateReservationResponseNonNullableFields {
1608
- reservation?: {
1609
- status: Status$2;
1610
- source: Source;
1611
- paymentStatus: PaymentStatus;
1612
- };
1853
+ reservation?: ReservationNonNullableFields;
1613
1854
  }
1614
1855
  interface CreateHeldReservationResponseNonNullableFields {
1615
- reservation?: {
1616
- status: Status$2;
1617
- source: Source;
1618
- paymentStatus: PaymentStatus;
1619
- };
1856
+ reservation?: ReservationNonNullableFields;
1620
1857
  }
1621
1858
  interface ReserveReservationResponseNonNullableFields {
1622
- reservation?: {
1623
- status: Status$2;
1624
- source: Source;
1625
- paymentStatus: PaymentStatus;
1626
- };
1859
+ reservation?: ReservationNonNullableFields;
1627
1860
  }
1628
1861
  interface CancelReservationResponseNonNullableFields {
1629
- reservation?: {
1630
- status: Status$2;
1631
- source: Source;
1632
- paymentStatus: PaymentStatus;
1633
- };
1862
+ reservation?: ReservationNonNullableFields;
1634
1863
  }
1635
1864
  interface ListReservationsResponseNonNullableFields {
1636
- reservations: {
1637
- status: Status$2;
1638
- source: Source;
1639
- paymentStatus: PaymentStatus;
1640
- }[];
1865
+ reservations: ReservationNonNullableFields[];
1641
1866
  }
1642
1867
  interface QueryReservationsResponseNonNullableFields {
1643
- reservations: {
1644
- status: Status$2;
1645
- source: Source;
1646
- paymentStatus: PaymentStatus;
1647
- }[];
1868
+ reservations: ReservationNonNullableFields[];
1869
+ }
1870
+ interface ValueAggregationResultNonNullableFields {
1871
+ value: string;
1872
+ count: number;
1873
+ }
1874
+ interface ValueResultsNonNullableFields {
1875
+ results: ValueAggregationResultNonNullableFields[];
1876
+ }
1877
+ interface RangeAggregationResultNonNullableFields {
1878
+ count: number;
1879
+ }
1880
+ interface RangeResultsNonNullableFields {
1881
+ results: RangeAggregationResultNonNullableFields[];
1882
+ }
1883
+ interface AggregationResultsScalarResultNonNullableFields {
1884
+ type: ScalarType;
1885
+ value: number;
1886
+ }
1887
+ interface NestedAggregationResultsNonNullableFields {
1888
+ values?: ValueResultsNonNullableFields;
1889
+ ranges?: RangeResultsNonNullableFields;
1890
+ scalar?: AggregationResultsScalarResultNonNullableFields;
1891
+ name: string;
1892
+ type: AggregationType;
1893
+ fieldPath: string;
1894
+ }
1895
+ interface NestedValueAggregationResultNonNullableFields {
1896
+ value: string;
1897
+ nestedResults?: NestedAggregationResultsNonNullableFields;
1898
+ }
1899
+ interface GroupByValueResultsNonNullableFields {
1900
+ results: NestedValueAggregationResultNonNullableFields[];
1901
+ }
1902
+ interface DateHistogramResultNonNullableFields {
1903
+ value: string;
1904
+ count: number;
1905
+ }
1906
+ interface DateHistogramResultsNonNullableFields {
1907
+ results: DateHistogramResultNonNullableFields[];
1908
+ }
1909
+ interface AggregationResultsNonNullableFields {
1910
+ values?: ValueResultsNonNullableFields;
1911
+ ranges?: RangeResultsNonNullableFields;
1912
+ scalar?: AggregationResultsScalarResultNonNullableFields;
1913
+ groupedByValue?: GroupByValueResultsNonNullableFields;
1914
+ dateHistogram?: DateHistogramResultsNonNullableFields;
1915
+ name: string;
1916
+ type: AggregationType;
1917
+ fieldPath: string;
1918
+ }
1919
+ interface AggregationDataNonNullableFields {
1920
+ results: AggregationResultsNonNullableFields[];
1648
1921
  }
1649
1922
  interface SearchReservationsResponseNonNullableFields {
1650
- reservations: {
1651
- status: Status$2;
1652
- source: Source;
1653
- paymentStatus: PaymentStatus;
1654
- }[];
1655
- aggregationData?: {
1656
- results: {
1657
- values?: {
1658
- results: {
1659
- value: string;
1660
- count: number;
1661
- }[];
1662
- };
1663
- ranges?: {
1664
- results: {
1665
- count: number;
1666
- }[];
1667
- };
1668
- scalar?: {
1669
- type: ScalarType;
1670
- value: number;
1671
- };
1672
- groupedByValue?: {
1673
- results: {
1674
- value: string;
1675
- nestedResults?: {
1676
- values?: {
1677
- results: {
1678
- value: string;
1679
- count: number;
1680
- }[];
1681
- };
1682
- ranges?: {
1683
- results: {
1684
- count: number;
1685
- }[];
1686
- };
1687
- scalar?: {
1688
- type: ScalarType;
1689
- value: number;
1690
- };
1691
- name: string;
1692
- type: AggregationType;
1693
- fieldPath: string;
1694
- };
1695
- }[];
1696
- };
1697
- dateHistogram?: {
1698
- results: {
1699
- value: string;
1700
- count: number;
1701
- }[];
1702
- };
1703
- nested?: {
1704
- results: {
1705
- results?: {
1706
- value?: {
1707
- value: string;
1708
- };
1709
- scalar?: {
1710
- value: number;
1711
- };
1712
- dateHistogram?: {
1713
- value: string;
1714
- };
1715
- };
1716
- }[];
1717
- };
1718
- name: string;
1719
- type: AggregationType;
1720
- fieldPath: string;
1721
- }[];
1722
- };
1923
+ reservations: ReservationNonNullableFields[];
1924
+ aggregationData?: AggregationDataNonNullableFields;
1925
+ }
1926
+ interface HeadersEntryNonNullableFields {
1927
+ key: string;
1928
+ value: string;
1929
+ }
1930
+ interface RawHttpResponseNonNullableFields {
1931
+ body: Uint8Array;
1932
+ headers: HeadersEntryNonNullableFields[];
1723
1933
  }
1724
1934
 
1725
1935
  type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
@@ -1746,13 +1956,21 @@ declare function reserveReservation(): __PublicMethodMetaInfo$2<'POST', {
1746
1956
  declare function cancelReservation(): __PublicMethodMetaInfo$2<'POST', {
1747
1957
  reservationId: string;
1748
1958
  }, CancelReservationRequest, CancelReservationRequest$1, CancelReservationResponse & CancelReservationResponseNonNullableFields, CancelReservationResponse$1 & CancelReservationResponseNonNullableFields$1>;
1959
+ declare function deleteReservation(): __PublicMethodMetaInfo$2<'DELETE', {
1960
+ reservationId: string;
1961
+ }, DeleteReservationRequest, DeleteReservationRequest$1, DeleteReservationResponse, DeleteReservationResponse$1>;
1749
1962
  declare function listReservations(): __PublicMethodMetaInfo$2<'GET', {}, ListReservationsRequest, ListReservationsRequest$1, ListReservationsResponse & ListReservationsResponseNonNullableFields, ListReservationsResponse$1 & ListReservationsResponseNonNullableFields$1>;
1750
1963
  declare function queryReservations(): __PublicMethodMetaInfo$2<'POST', {}, QueryReservationsRequest, QueryReservationsRequest$1, QueryReservationsResponse & QueryReservationsResponseNonNullableFields, QueryReservationsResponse$1 & QueryReservationsResponseNonNullableFields$1>;
1751
1964
  declare function searchReservations(): __PublicMethodMetaInfo$2<'POST', {}, SearchReservationsRequest, SearchReservationsRequest$1, SearchReservationsResponse & SearchReservationsResponseNonNullableFields, SearchReservationsResponse$1 & SearchReservationsResponseNonNullableFields$1>;
1965
+ declare function getCalendarInviteFileWebhook(): __PublicMethodMetaInfo$2<'GET', {
1966
+ id: string;
1967
+ }, RawHttpRequest, RawHttpRequest$1, RawHttpResponse & RawHttpResponseNonNullableFields, RawHttpResponse$1 & RawHttpResponseNonNullableFields$1>;
1752
1968
 
1753
1969
  declare const meta$2_cancelReservation: typeof cancelReservation;
1754
1970
  declare const meta$2_createHeldReservation: typeof createHeldReservation;
1755
1971
  declare const meta$2_createReservation: typeof createReservation;
1972
+ declare const meta$2_deleteReservation: typeof deleteReservation;
1973
+ declare const meta$2_getCalendarInviteFileWebhook: typeof getCalendarInviteFileWebhook;
1756
1974
  declare const meta$2_getReservation: typeof getReservation;
1757
1975
  declare const meta$2_listReservations: typeof listReservations;
1758
1976
  declare const meta$2_queryReservations: typeof queryReservations;
@@ -1760,7 +1978,7 @@ declare const meta$2_reserveReservation: typeof reserveReservation;
1760
1978
  declare const meta$2_searchReservations: typeof searchReservations;
1761
1979
  declare const meta$2_updateReservation: typeof updateReservation;
1762
1980
  declare namespace meta$2 {
1763
- export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_cancelReservation as cancelReservation, meta$2_createHeldReservation as createHeldReservation, meta$2_createReservation as createReservation, meta$2_getReservation as getReservation, meta$2_listReservations as listReservations, meta$2_queryReservations as queryReservations, meta$2_reserveReservation as reserveReservation, meta$2_searchReservations as searchReservations, meta$2_updateReservation as updateReservation };
1981
+ export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_cancelReservation as cancelReservation, meta$2_createHeldReservation as createHeldReservation, meta$2_createReservation as createReservation, meta$2_deleteReservation as deleteReservation, meta$2_getCalendarInviteFileWebhook as getCalendarInviteFileWebhook, meta$2_getReservation as getReservation, meta$2_listReservations as listReservations, meta$2_queryReservations as queryReservations, meta$2_reserveReservation as reserveReservation, meta$2_searchReservations as searchReservations, meta$2_updateReservation as updateReservation };
1764
1982
  }
1765
1983
 
1766
1984
  interface ReservationLocation$1 {
@@ -1876,7 +2094,7 @@ interface TableDefinition$1 {
1876
2094
  /** Whether the table is active (available to be reserved). */
1877
2095
  isActive?: boolean | null;
1878
2096
  }
1879
- interface TableCombination$1 {
2097
+ interface TableCombination$3 {
1880
2098
  /**
1881
2099
  * Table combination ID.
1882
2100
  * @readonly
@@ -2153,7 +2371,7 @@ interface TableManagement$1 {
2153
2371
  /** Deleted table definitions. */
2154
2372
  deletedTableDefinitions?: TableDefinition$1[];
2155
2373
  /** Table combinations. */
2156
- tableCombinations?: TableCombination$1[];
2374
+ tableCombinations?: TableCombination$3[];
2157
2375
  }
2158
2376
  interface Location$1 {
2159
2377
  /**
@@ -2339,509 +2557,149 @@ interface CursorPagingMetadata$1 {
2339
2557
  */
2340
2558
  hasNext?: boolean | null;
2341
2559
  }
2560
+ interface StreetAddressNonNullableFields$1 {
2561
+ number: string;
2562
+ name: string;
2563
+ apt: string;
2564
+ }
2565
+ interface LocationAddressNonNullableFields$1 {
2566
+ streetAddress?: StreetAddressNonNullableFields$1;
2567
+ }
2568
+ interface CommonTimePeriodNonNullableFields$1 {
2569
+ openDay: CommonDayOfWeek$1;
2570
+ openTime: string;
2571
+ closeDay: CommonDayOfWeek$1;
2572
+ closeTime: string;
2573
+ }
2574
+ interface CommonSpecialHourPeriodNonNullableFields$1 {
2575
+ startDate: string;
2576
+ endDate: string;
2577
+ isClosed: boolean;
2578
+ comment: string;
2579
+ }
2580
+ interface CommonBusinessScheduleNonNullableFields$1 {
2581
+ periods: CommonTimePeriodNonNullableFields$1[];
2582
+ specialHourPeriod: CommonSpecialHourPeriodNonNullableFields$1[];
2583
+ }
2584
+ interface LocationNonNullableFields$1 {
2585
+ address?: LocationAddressNonNullableFields$1;
2586
+ businessSchedule?: CommonBusinessScheduleNonNullableFields$1;
2587
+ }
2588
+ interface SeatPacingNonNullableFields$1 {
2589
+ number: number;
2590
+ enabled: boolean;
2591
+ }
2592
+ interface PartyPacingNonNullableFields$1 {
2593
+ number: number;
2594
+ enabled: boolean;
2595
+ }
2596
+ interface PartiesSizeNonNullableFields$1 {
2597
+ min: number;
2598
+ max: number;
2599
+ }
2600
+ interface PartySizeNonNullableFields$1 {
2601
+ min: number;
2602
+ max: number;
2603
+ }
2604
+ interface NoticePeriodNonNullableFields$1 {
2605
+ number: number;
2606
+ unit: Unit$1;
2607
+ }
2608
+ interface TurnoverTimeRuleNonNullableFields$1 {
2609
+ seatsMin: number;
2610
+ seatsMax: number;
2611
+ minutes: number;
2612
+ }
2613
+ interface TurnoverRuleNonNullableFields$1 {
2614
+ minSeats: number;
2615
+ maxSeats: number;
2616
+ minutes: number;
2617
+ }
2618
+ interface ManualApprovalNonNullableFields$1 {
2619
+ partySizeThreshold: number;
2620
+ customApprovalsProviderId: string;
2621
+ enabled: boolean;
2622
+ }
2623
+ interface OnlineReservationsNonNullableFields$1 {
2624
+ seatPacing?: SeatPacingNonNullableFields$1;
2625
+ partyPacing?: PartyPacingNonNullableFields$1;
2626
+ partiesSize?: PartiesSizeNonNullableFields$1;
2627
+ partySize?: PartySizeNonNullableFields$1;
2628
+ minimumReservationNotice?: NoticePeriodNonNullableFields$1;
2629
+ turnoverTimeRules: TurnoverTimeRuleNonNullableFields$1[];
2630
+ turnoverRules: TurnoverRuleNonNullableFields$1[];
2631
+ businessSchedule?: CommonBusinessScheduleNonNullableFields$1;
2632
+ manualApproval?: ManualApprovalNonNullableFields$1;
2633
+ }
2634
+ interface PageUrlV2NonNullableFields {
2635
+ relativePath: string;
2636
+ }
2637
+ interface TermsAndConditionsNonNullableFields$1 {
2638
+ url?: PageUrlV2NonNullableFields;
2639
+ enabled: boolean;
2640
+ }
2641
+ interface PrivacyPolicyNonNullableFields$1 {
2642
+ url?: PageUrlV2NonNullableFields;
2643
+ enabled: boolean;
2644
+ }
2645
+ interface CustomFieldDefinitionNonNullableFields$1 {
2646
+ name: string;
2647
+ required: boolean;
2648
+ }
2649
+ interface EmailMarketingCheckboxNonNullableFields$1 {
2650
+ enabled: boolean;
2651
+ checkedByDefault: boolean;
2652
+ }
2653
+ interface ReservationFormNonNullableFields$1 {
2654
+ termsAndConditions?: TermsAndConditionsNonNullableFields$1;
2655
+ privacyPolicy?: PrivacyPolicyNonNullableFields$1;
2656
+ customFieldDefinitions: CustomFieldDefinitionNonNullableFields$1[];
2657
+ emailMarketingCheckbox?: EmailMarketingCheckboxNonNullableFields$1;
2658
+ }
2659
+ interface MyReservationsFieldNonNullableFields$1 {
2660
+ fieldType: FieldType$1;
2661
+ shown: boolean;
2662
+ }
2663
+ interface TableDefinitionNonNullableFields$1 {
2664
+ name: string;
2665
+ seatsMin: number;
2666
+ seatsMax: number;
2667
+ }
2668
+ interface TableCombinationNonNullableFields$3 {
2669
+ seatsMin: number;
2670
+ seatsMax: number;
2671
+ }
2672
+ interface TableManagementNonNullableFields$1 {
2673
+ tableDefinitions: TableDefinitionNonNullableFields$1[];
2674
+ deletedTableDefinitions: TableDefinitionNonNullableFields$1[];
2675
+ tableCombinations: TableCombinationNonNullableFields$3[];
2676
+ }
2677
+ interface ReservationPaymentNonNullableFields$1 {
2678
+ value: string;
2679
+ minPartySize: number;
2680
+ }
2681
+ interface ConfigurationNonNullableFields$1 {
2682
+ onlineReservations?: OnlineReservationsNonNullableFields$1;
2683
+ reservationForm?: ReservationFormNonNullableFields$1;
2684
+ myReservationsFields: MyReservationsFieldNonNullableFields$1[];
2685
+ tableManagement?: TableManagementNonNullableFields$1;
2686
+ reservationPayment?: ReservationPaymentNonNullableFields$1;
2687
+ }
2688
+ interface ReservationLocationNonNullableFields$1 {
2689
+ location?: LocationNonNullableFields$1;
2690
+ configuration?: ConfigurationNonNullableFields$1;
2691
+ }
2342
2692
  interface GetReservationLocationResponseNonNullableFields$1 {
2343
- reservationLocation?: {
2344
- location?: {
2345
- address?: {
2346
- streetAddress?: {
2347
- number: string;
2348
- name: string;
2349
- apt: string;
2350
- };
2351
- };
2352
- businessSchedule?: {
2353
- periods: {
2354
- openDay: CommonDayOfWeek$1;
2355
- openTime: string;
2356
- closeDay: CommonDayOfWeek$1;
2357
- closeTime: string;
2358
- }[];
2359
- specialHourPeriod: {
2360
- startDate: string;
2361
- endDate: string;
2362
- isClosed: boolean;
2363
- comment: string;
2364
- }[];
2365
- };
2366
- };
2367
- configuration?: {
2368
- onlineReservations?: {
2369
- seatPacing?: {
2370
- number: number;
2371
- enabled: boolean;
2372
- };
2373
- partyPacing?: {
2374
- number: number;
2375
- enabled: boolean;
2376
- };
2377
- partiesSize?: {
2378
- min: number;
2379
- max: number;
2380
- };
2381
- partySize?: {
2382
- min: number;
2383
- max: number;
2384
- };
2385
- minimumReservationNotice?: {
2386
- number: number;
2387
- unit: Unit$1;
2388
- };
2389
- turnoverTimeRules: {
2390
- seatsMin: number;
2391
- seatsMax: number;
2392
- minutes: number;
2393
- }[];
2394
- turnoverRules: {
2395
- minSeats: number;
2396
- maxSeats: number;
2397
- minutes: number;
2398
- }[];
2399
- businessSchedule?: {
2400
- periods: {
2401
- openDay: CommonDayOfWeek$1;
2402
- openTime: string;
2403
- closeDay: CommonDayOfWeek$1;
2404
- closeTime: string;
2405
- }[];
2406
- specialHourPeriod: {
2407
- startDate: string;
2408
- endDate: string;
2409
- isClosed: boolean;
2410
- comment: string;
2411
- }[];
2412
- };
2413
- manualApproval?: {
2414
- partySizeThreshold: number;
2415
- customApprovalsProviderId: string;
2416
- enabled: boolean;
2417
- };
2418
- };
2419
- reservationForm?: {
2420
- termsAndConditions?: {
2421
- url?: {
2422
- relativePath: string;
2423
- };
2424
- enabled: boolean;
2425
- };
2426
- privacyPolicy?: {
2427
- url?: {
2428
- relativePath: string;
2429
- };
2430
- enabled: boolean;
2431
- };
2432
- customFieldDefinitions: {
2433
- name: string;
2434
- required: boolean;
2435
- }[];
2436
- emailMarketingCheckbox?: {
2437
- enabled: boolean;
2438
- checkedByDefault: boolean;
2439
- };
2440
- };
2441
- myReservationsFields: {
2442
- fieldType: FieldType$1;
2443
- shown: boolean;
2444
- }[];
2445
- tableManagement?: {
2446
- tableDefinitions: {
2447
- name: string;
2448
- seatsMin: number;
2449
- seatsMax: number;
2450
- }[];
2451
- deletedTableDefinitions: {
2452
- name: string;
2453
- seatsMin: number;
2454
- seatsMax: number;
2455
- }[];
2456
- tableCombinations: {
2457
- seatsMin: number;
2458
- seatsMax: number;
2459
- }[];
2460
- };
2461
- reservationPayment?: {
2462
- value: string;
2463
- minPartySize: number;
2464
- };
2465
- };
2466
- };
2693
+ reservationLocation?: ReservationLocationNonNullableFields$1;
2467
2694
  }
2468
2695
  interface UpdateReservationLocationResponseNonNullableFields$1 {
2469
- reservationLocation?: {
2470
- location?: {
2471
- address?: {
2472
- streetAddress?: {
2473
- number: string;
2474
- name: string;
2475
- apt: string;
2476
- };
2477
- };
2478
- businessSchedule?: {
2479
- periods: {
2480
- openDay: CommonDayOfWeek$1;
2481
- openTime: string;
2482
- closeDay: CommonDayOfWeek$1;
2483
- closeTime: string;
2484
- }[];
2485
- specialHourPeriod: {
2486
- startDate: string;
2487
- endDate: string;
2488
- isClosed: boolean;
2489
- comment: string;
2490
- }[];
2491
- };
2492
- };
2493
- configuration?: {
2494
- onlineReservations?: {
2495
- seatPacing?: {
2496
- number: number;
2497
- enabled: boolean;
2498
- };
2499
- partyPacing?: {
2500
- number: number;
2501
- enabled: boolean;
2502
- };
2503
- partiesSize?: {
2504
- min: number;
2505
- max: number;
2506
- };
2507
- partySize?: {
2508
- min: number;
2509
- max: number;
2510
- };
2511
- minimumReservationNotice?: {
2512
- number: number;
2513
- unit: Unit$1;
2514
- };
2515
- turnoverTimeRules: {
2516
- seatsMin: number;
2517
- seatsMax: number;
2518
- minutes: number;
2519
- }[];
2520
- turnoverRules: {
2521
- minSeats: number;
2522
- maxSeats: number;
2523
- minutes: number;
2524
- }[];
2525
- businessSchedule?: {
2526
- periods: {
2527
- openDay: CommonDayOfWeek$1;
2528
- openTime: string;
2529
- closeDay: CommonDayOfWeek$1;
2530
- closeTime: string;
2531
- }[];
2532
- specialHourPeriod: {
2533
- startDate: string;
2534
- endDate: string;
2535
- isClosed: boolean;
2536
- comment: string;
2537
- }[];
2538
- };
2539
- manualApproval?: {
2540
- partySizeThreshold: number;
2541
- customApprovalsProviderId: string;
2542
- enabled: boolean;
2543
- };
2544
- };
2545
- reservationForm?: {
2546
- termsAndConditions?: {
2547
- url?: {
2548
- relativePath: string;
2549
- };
2550
- enabled: boolean;
2551
- };
2552
- privacyPolicy?: {
2553
- url?: {
2554
- relativePath: string;
2555
- };
2556
- enabled: boolean;
2557
- };
2558
- customFieldDefinitions: {
2559
- name: string;
2560
- required: boolean;
2561
- }[];
2562
- emailMarketingCheckbox?: {
2563
- enabled: boolean;
2564
- checkedByDefault: boolean;
2565
- };
2566
- };
2567
- myReservationsFields: {
2568
- fieldType: FieldType$1;
2569
- shown: boolean;
2570
- }[];
2571
- tableManagement?: {
2572
- tableDefinitions: {
2573
- name: string;
2574
- seatsMin: number;
2575
- seatsMax: number;
2576
- }[];
2577
- deletedTableDefinitions: {
2578
- name: string;
2579
- seatsMin: number;
2580
- seatsMax: number;
2581
- }[];
2582
- tableCombinations: {
2583
- seatsMin: number;
2584
- seatsMax: number;
2585
- }[];
2586
- };
2587
- reservationPayment?: {
2588
- value: string;
2589
- minPartySize: number;
2590
- };
2591
- };
2592
- };
2696
+ reservationLocation?: ReservationLocationNonNullableFields$1;
2593
2697
  }
2594
2698
  interface QueryReservationLocationsResponseNonNullableFields$1 {
2595
- reservationLocations: {
2596
- location?: {
2597
- address?: {
2598
- streetAddress?: {
2599
- number: string;
2600
- name: string;
2601
- apt: string;
2602
- };
2603
- };
2604
- businessSchedule?: {
2605
- periods: {
2606
- openDay: CommonDayOfWeek$1;
2607
- openTime: string;
2608
- closeDay: CommonDayOfWeek$1;
2609
- closeTime: string;
2610
- }[];
2611
- specialHourPeriod: {
2612
- startDate: string;
2613
- endDate: string;
2614
- isClosed: boolean;
2615
- comment: string;
2616
- }[];
2617
- };
2618
- };
2619
- configuration?: {
2620
- onlineReservations?: {
2621
- seatPacing?: {
2622
- number: number;
2623
- enabled: boolean;
2624
- };
2625
- partyPacing?: {
2626
- number: number;
2627
- enabled: boolean;
2628
- };
2629
- partiesSize?: {
2630
- min: number;
2631
- max: number;
2632
- };
2633
- partySize?: {
2634
- min: number;
2635
- max: number;
2636
- };
2637
- minimumReservationNotice?: {
2638
- number: number;
2639
- unit: Unit$1;
2640
- };
2641
- turnoverTimeRules: {
2642
- seatsMin: number;
2643
- seatsMax: number;
2644
- minutes: number;
2645
- }[];
2646
- turnoverRules: {
2647
- minSeats: number;
2648
- maxSeats: number;
2649
- minutes: number;
2650
- }[];
2651
- businessSchedule?: {
2652
- periods: {
2653
- openDay: CommonDayOfWeek$1;
2654
- openTime: string;
2655
- closeDay: CommonDayOfWeek$1;
2656
- closeTime: string;
2657
- }[];
2658
- specialHourPeriod: {
2659
- startDate: string;
2660
- endDate: string;
2661
- isClosed: boolean;
2662
- comment: string;
2663
- }[];
2664
- };
2665
- manualApproval?: {
2666
- partySizeThreshold: number;
2667
- customApprovalsProviderId: string;
2668
- enabled: boolean;
2669
- };
2670
- };
2671
- reservationForm?: {
2672
- termsAndConditions?: {
2673
- url?: {
2674
- relativePath: string;
2675
- };
2676
- enabled: boolean;
2677
- };
2678
- privacyPolicy?: {
2679
- url?: {
2680
- relativePath: string;
2681
- };
2682
- enabled: boolean;
2683
- };
2684
- customFieldDefinitions: {
2685
- name: string;
2686
- required: boolean;
2687
- }[];
2688
- emailMarketingCheckbox?: {
2689
- enabled: boolean;
2690
- checkedByDefault: boolean;
2691
- };
2692
- };
2693
- myReservationsFields: {
2694
- fieldType: FieldType$1;
2695
- shown: boolean;
2696
- }[];
2697
- tableManagement?: {
2698
- tableDefinitions: {
2699
- name: string;
2700
- seatsMin: number;
2701
- seatsMax: number;
2702
- }[];
2703
- deletedTableDefinitions: {
2704
- name: string;
2705
- seatsMin: number;
2706
- seatsMax: number;
2707
- }[];
2708
- tableCombinations: {
2709
- seatsMin: number;
2710
- seatsMax: number;
2711
- }[];
2712
- };
2713
- reservationPayment?: {
2714
- value: string;
2715
- minPartySize: number;
2716
- };
2717
- };
2718
- }[];
2699
+ reservationLocations: ReservationLocationNonNullableFields$1[];
2719
2700
  }
2720
2701
  interface ListReservationLocationsResponseNonNullableFields$1 {
2721
- reservationLocations: {
2722
- location?: {
2723
- address?: {
2724
- streetAddress?: {
2725
- number: string;
2726
- name: string;
2727
- apt: string;
2728
- };
2729
- };
2730
- businessSchedule?: {
2731
- periods: {
2732
- openDay: CommonDayOfWeek$1;
2733
- openTime: string;
2734
- closeDay: CommonDayOfWeek$1;
2735
- closeTime: string;
2736
- }[];
2737
- specialHourPeriod: {
2738
- startDate: string;
2739
- endDate: string;
2740
- isClosed: boolean;
2741
- comment: string;
2742
- }[];
2743
- };
2744
- };
2745
- configuration?: {
2746
- onlineReservations?: {
2747
- seatPacing?: {
2748
- number: number;
2749
- enabled: boolean;
2750
- };
2751
- partyPacing?: {
2752
- number: number;
2753
- enabled: boolean;
2754
- };
2755
- partiesSize?: {
2756
- min: number;
2757
- max: number;
2758
- };
2759
- partySize?: {
2760
- min: number;
2761
- max: number;
2762
- };
2763
- minimumReservationNotice?: {
2764
- number: number;
2765
- unit: Unit$1;
2766
- };
2767
- turnoverTimeRules: {
2768
- seatsMin: number;
2769
- seatsMax: number;
2770
- minutes: number;
2771
- }[];
2772
- turnoverRules: {
2773
- minSeats: number;
2774
- maxSeats: number;
2775
- minutes: number;
2776
- }[];
2777
- businessSchedule?: {
2778
- periods: {
2779
- openDay: CommonDayOfWeek$1;
2780
- openTime: string;
2781
- closeDay: CommonDayOfWeek$1;
2782
- closeTime: string;
2783
- }[];
2784
- specialHourPeriod: {
2785
- startDate: string;
2786
- endDate: string;
2787
- isClosed: boolean;
2788
- comment: string;
2789
- }[];
2790
- };
2791
- manualApproval?: {
2792
- partySizeThreshold: number;
2793
- customApprovalsProviderId: string;
2794
- enabled: boolean;
2795
- };
2796
- };
2797
- reservationForm?: {
2798
- termsAndConditions?: {
2799
- url?: {
2800
- relativePath: string;
2801
- };
2802
- enabled: boolean;
2803
- };
2804
- privacyPolicy?: {
2805
- url?: {
2806
- relativePath: string;
2807
- };
2808
- enabled: boolean;
2809
- };
2810
- customFieldDefinitions: {
2811
- name: string;
2812
- required: boolean;
2813
- }[];
2814
- emailMarketingCheckbox?: {
2815
- enabled: boolean;
2816
- checkedByDefault: boolean;
2817
- };
2818
- };
2819
- myReservationsFields: {
2820
- fieldType: FieldType$1;
2821
- shown: boolean;
2822
- }[];
2823
- tableManagement?: {
2824
- tableDefinitions: {
2825
- name: string;
2826
- seatsMin: number;
2827
- seatsMax: number;
2828
- }[];
2829
- deletedTableDefinitions: {
2830
- name: string;
2831
- seatsMin: number;
2832
- seatsMax: number;
2833
- }[];
2834
- tableCombinations: {
2835
- seatsMin: number;
2836
- seatsMax: number;
2837
- }[];
2838
- };
2839
- reservationPayment?: {
2840
- value: string;
2841
- minPartySize: number;
2842
- };
2843
- };
2844
- }[];
2702
+ reservationLocations: ReservationLocationNonNullableFields$1[];
2845
2703
  }
2846
2704
 
2847
2705
  interface ReservationLocation {
@@ -2957,7 +2815,7 @@ interface TableDefinition {
2957
2815
  /** Whether the table is active (available to be reserved). */
2958
2816
  isActive?: boolean | null;
2959
2817
  }
2960
- interface TableCombination {
2818
+ interface TableCombination$2 {
2961
2819
  /**
2962
2820
  * Table combination ID.
2963
2821
  * @readonly
@@ -3233,7 +3091,7 @@ interface TableManagement {
3233
3091
  /** Deleted table definitions. */
3234
3092
  deletedTableDefinitions?: TableDefinition[];
3235
3093
  /** Table combinations. */
3236
- tableCombinations?: TableCombination[];
3094
+ tableCombinations?: TableCombination$2[];
3237
3095
  }
3238
3096
  interface Location {
3239
3097
  /**
@@ -3419,349 +3277,146 @@ interface CursorPagingMetadata {
3419
3277
  */
3420
3278
  hasNext?: boolean | null;
3421
3279
  }
3280
+ interface StreetAddressNonNullableFields {
3281
+ number: string;
3282
+ name: string;
3283
+ apt: string;
3284
+ }
3285
+ interface LocationAddressNonNullableFields {
3286
+ streetAddress?: StreetAddressNonNullableFields;
3287
+ }
3288
+ interface CommonTimePeriodNonNullableFields {
3289
+ openDay: CommonDayOfWeek;
3290
+ openTime: string;
3291
+ closeDay: CommonDayOfWeek;
3292
+ closeTime: string;
3293
+ }
3294
+ interface CommonSpecialHourPeriodNonNullableFields {
3295
+ startDate: string;
3296
+ endDate: string;
3297
+ isClosed: boolean;
3298
+ comment: string;
3299
+ }
3300
+ interface CommonBusinessScheduleNonNullableFields {
3301
+ periods: CommonTimePeriodNonNullableFields[];
3302
+ specialHourPeriod: CommonSpecialHourPeriodNonNullableFields[];
3303
+ }
3304
+ interface LocationNonNullableFields {
3305
+ address?: LocationAddressNonNullableFields;
3306
+ businessSchedule?: CommonBusinessScheduleNonNullableFields;
3307
+ }
3308
+ interface SeatPacingNonNullableFields {
3309
+ number: number;
3310
+ enabled: boolean;
3311
+ }
3312
+ interface PartyPacingNonNullableFields {
3313
+ number: number;
3314
+ enabled: boolean;
3315
+ }
3316
+ interface PartiesSizeNonNullableFields {
3317
+ min: number;
3318
+ max: number;
3319
+ }
3320
+ interface PartySizeNonNullableFields {
3321
+ min: number;
3322
+ max: number;
3323
+ }
3324
+ interface NoticePeriodNonNullableFields {
3325
+ number: number;
3326
+ unit: Unit;
3327
+ }
3328
+ interface TurnoverTimeRuleNonNullableFields {
3329
+ seatsMin: number;
3330
+ seatsMax: number;
3331
+ minutes: number;
3332
+ }
3333
+ interface TurnoverRuleNonNullableFields {
3334
+ minSeats: number;
3335
+ maxSeats: number;
3336
+ minutes: number;
3337
+ }
3338
+ interface ManualApprovalNonNullableFields {
3339
+ partySizeThreshold: number;
3340
+ customApprovalsProviderId: string;
3341
+ enabled: boolean;
3342
+ }
3343
+ interface OnlineReservationsNonNullableFields {
3344
+ seatPacing?: SeatPacingNonNullableFields;
3345
+ partyPacing?: PartyPacingNonNullableFields;
3346
+ partiesSize?: PartiesSizeNonNullableFields;
3347
+ partySize?: PartySizeNonNullableFields;
3348
+ minimumReservationNotice?: NoticePeriodNonNullableFields;
3349
+ turnoverTimeRules: TurnoverTimeRuleNonNullableFields[];
3350
+ turnoverRules: TurnoverRuleNonNullableFields[];
3351
+ businessSchedule?: CommonBusinessScheduleNonNullableFields;
3352
+ manualApproval?: ManualApprovalNonNullableFields;
3353
+ }
3354
+ interface TermsAndConditionsNonNullableFields {
3355
+ url: string;
3356
+ enabled: boolean;
3357
+ }
3358
+ interface PrivacyPolicyNonNullableFields {
3359
+ url: string;
3360
+ enabled: boolean;
3361
+ }
3362
+ interface CustomFieldDefinitionNonNullableFields {
3363
+ name: string;
3364
+ required: boolean;
3365
+ }
3366
+ interface EmailMarketingCheckboxNonNullableFields {
3367
+ enabled: boolean;
3368
+ checkedByDefault: boolean;
3369
+ }
3370
+ interface ReservationFormNonNullableFields {
3371
+ termsAndConditions?: TermsAndConditionsNonNullableFields;
3372
+ privacyPolicy?: PrivacyPolicyNonNullableFields;
3373
+ customFieldDefinitions: CustomFieldDefinitionNonNullableFields[];
3374
+ emailMarketingCheckbox?: EmailMarketingCheckboxNonNullableFields;
3375
+ }
3376
+ interface MyReservationsFieldNonNullableFields {
3377
+ fieldType: FieldType;
3378
+ shown: boolean;
3379
+ }
3380
+ interface TableDefinitionNonNullableFields {
3381
+ name: string;
3382
+ seatsMin: number;
3383
+ seatsMax: number;
3384
+ }
3385
+ interface TableCombinationNonNullableFields$2 {
3386
+ seatsMin: number;
3387
+ seatsMax: number;
3388
+ }
3389
+ interface TableManagementNonNullableFields {
3390
+ tableDefinitions: TableDefinitionNonNullableFields[];
3391
+ deletedTableDefinitions: TableDefinitionNonNullableFields[];
3392
+ tableCombinations: TableCombinationNonNullableFields$2[];
3393
+ }
3394
+ interface ReservationPaymentNonNullableFields {
3395
+ value: string;
3396
+ minPartySize: number;
3397
+ }
3398
+ interface ConfigurationNonNullableFields {
3399
+ onlineReservations?: OnlineReservationsNonNullableFields;
3400
+ reservationForm?: ReservationFormNonNullableFields;
3401
+ myReservationsFields: MyReservationsFieldNonNullableFields[];
3402
+ tableManagement?: TableManagementNonNullableFields;
3403
+ reservationPayment?: ReservationPaymentNonNullableFields;
3404
+ }
3405
+ interface ReservationLocationNonNullableFields {
3406
+ location?: LocationNonNullableFields;
3407
+ configuration?: ConfigurationNonNullableFields;
3408
+ }
3422
3409
  interface GetReservationLocationResponseNonNullableFields {
3423
- reservationLocation?: {
3424
- configuration?: {
3425
- onlineReservations?: {
3426
- seatPacing?: {
3427
- number: number;
3428
- enabled: boolean;
3429
- };
3430
- partyPacing?: {
3431
- number: number;
3432
- enabled: boolean;
3433
- };
3434
- partySize?: {
3435
- min: number;
3436
- max: number;
3437
- };
3438
- minimumReservationNotice?: {
3439
- number: number;
3440
- unit: Unit;
3441
- };
3442
- turnoverTimeRules: {
3443
- seatsMin: number;
3444
- seatsMax: number;
3445
- minutes: number;
3446
- }[];
3447
- businessSchedule?: {
3448
- periods: {
3449
- openDay: CommonDayOfWeek;
3450
- openTime: string;
3451
- closeDay: CommonDayOfWeek;
3452
- closeTime: string;
3453
- }[];
3454
- specialHourPeriod: {
3455
- startDate: string;
3456
- endDate: string;
3457
- isClosed: boolean;
3458
- comment: string;
3459
- }[];
3460
- };
3461
- manualApproval?: {
3462
- partySizeThreshold: number;
3463
- customApprovalsProviderId: string;
3464
- enabled: boolean;
3465
- };
3466
- };
3467
- reservationForm?: {
3468
- termsAndConditions?: {
3469
- url: string;
3470
- enabled: boolean;
3471
- };
3472
- privacyPolicy?: {
3473
- url: string;
3474
- enabled: boolean;
3475
- };
3476
- customFieldDefinitions: {
3477
- name: string;
3478
- required: boolean;
3479
- }[];
3480
- emailMarketingCheckbox?: {
3481
- enabled: boolean;
3482
- checkedByDefault: boolean;
3483
- };
3484
- };
3485
- myReservationsFields: {
3486
- fieldType: FieldType;
3487
- shown: boolean;
3488
- }[];
3489
- tableManagement?: {
3490
- tableDefinitions: {
3491
- name: string;
3492
- seatsMin: number;
3493
- seatsMax: number;
3494
- }[];
3495
- deletedTableDefinitions: {
3496
- name: string;
3497
- seatsMin: number;
3498
- seatsMax: number;
3499
- }[];
3500
- tableCombinations: {
3501
- seatsMin: number;
3502
- seatsMax: number;
3503
- }[];
3504
- };
3505
- };
3506
- };
3410
+ reservationLocation?: ReservationLocationNonNullableFields;
3507
3411
  }
3508
3412
  interface UpdateReservationLocationResponseNonNullableFields {
3509
- reservationLocation?: {
3510
- configuration?: {
3511
- onlineReservations?: {
3512
- seatPacing?: {
3513
- number: number;
3514
- enabled: boolean;
3515
- };
3516
- partyPacing?: {
3517
- number: number;
3518
- enabled: boolean;
3519
- };
3520
- partySize?: {
3521
- min: number;
3522
- max: number;
3523
- };
3524
- minimumReservationNotice?: {
3525
- number: number;
3526
- unit: Unit;
3527
- };
3528
- turnoverTimeRules: {
3529
- seatsMin: number;
3530
- seatsMax: number;
3531
- minutes: number;
3532
- }[];
3533
- businessSchedule?: {
3534
- periods: {
3535
- openDay: CommonDayOfWeek;
3536
- openTime: string;
3537
- closeDay: CommonDayOfWeek;
3538
- closeTime: string;
3539
- }[];
3540
- specialHourPeriod: {
3541
- startDate: string;
3542
- endDate: string;
3543
- isClosed: boolean;
3544
- comment: string;
3545
- }[];
3546
- };
3547
- manualApproval?: {
3548
- partySizeThreshold: number;
3549
- customApprovalsProviderId: string;
3550
- enabled: boolean;
3551
- };
3552
- };
3553
- reservationForm?: {
3554
- termsAndConditions?: {
3555
- url: string;
3556
- enabled: boolean;
3557
- };
3558
- privacyPolicy?: {
3559
- url: string;
3560
- enabled: boolean;
3561
- };
3562
- customFieldDefinitions: {
3563
- name: string;
3564
- required: boolean;
3565
- }[];
3566
- emailMarketingCheckbox?: {
3567
- enabled: boolean;
3568
- checkedByDefault: boolean;
3569
- };
3570
- };
3571
- myReservationsFields: {
3572
- fieldType: FieldType;
3573
- shown: boolean;
3574
- }[];
3575
- tableManagement?: {
3576
- tableDefinitions: {
3577
- name: string;
3578
- seatsMin: number;
3579
- seatsMax: number;
3580
- }[];
3581
- deletedTableDefinitions: {
3582
- name: string;
3583
- seatsMin: number;
3584
- seatsMax: number;
3585
- }[];
3586
- tableCombinations: {
3587
- seatsMin: number;
3588
- seatsMax: number;
3589
- }[];
3590
- };
3591
- };
3592
- };
3413
+ reservationLocation?: ReservationLocationNonNullableFields;
3593
3414
  }
3594
3415
  interface QueryReservationLocationsResponseNonNullableFields {
3595
- reservationLocations: {
3596
- configuration?: {
3597
- onlineReservations?: {
3598
- seatPacing?: {
3599
- number: number;
3600
- enabled: boolean;
3601
- };
3602
- partyPacing?: {
3603
- number: number;
3604
- enabled: boolean;
3605
- };
3606
- partySize?: {
3607
- min: number;
3608
- max: number;
3609
- };
3610
- minimumReservationNotice?: {
3611
- number: number;
3612
- unit: Unit;
3613
- };
3614
- turnoverTimeRules: {
3615
- seatsMin: number;
3616
- seatsMax: number;
3617
- minutes: number;
3618
- }[];
3619
- businessSchedule?: {
3620
- periods: {
3621
- openDay: CommonDayOfWeek;
3622
- openTime: string;
3623
- closeDay: CommonDayOfWeek;
3624
- closeTime: string;
3625
- }[];
3626
- specialHourPeriod: {
3627
- startDate: string;
3628
- endDate: string;
3629
- isClosed: boolean;
3630
- comment: string;
3631
- }[];
3632
- };
3633
- manualApproval?: {
3634
- partySizeThreshold: number;
3635
- customApprovalsProviderId: string;
3636
- enabled: boolean;
3637
- };
3638
- };
3639
- reservationForm?: {
3640
- termsAndConditions?: {
3641
- url: string;
3642
- enabled: boolean;
3643
- };
3644
- privacyPolicy?: {
3645
- url: string;
3646
- enabled: boolean;
3647
- };
3648
- customFieldDefinitions: {
3649
- name: string;
3650
- required: boolean;
3651
- }[];
3652
- emailMarketingCheckbox?: {
3653
- enabled: boolean;
3654
- checkedByDefault: boolean;
3655
- };
3656
- };
3657
- myReservationsFields: {
3658
- fieldType: FieldType;
3659
- shown: boolean;
3660
- }[];
3661
- tableManagement?: {
3662
- tableDefinitions: {
3663
- name: string;
3664
- seatsMin: number;
3665
- seatsMax: number;
3666
- }[];
3667
- deletedTableDefinitions: {
3668
- name: string;
3669
- seatsMin: number;
3670
- seatsMax: number;
3671
- }[];
3672
- tableCombinations: {
3673
- seatsMin: number;
3674
- seatsMax: number;
3675
- }[];
3676
- };
3677
- };
3678
- }[];
3416
+ reservationLocations: ReservationLocationNonNullableFields[];
3679
3417
  }
3680
3418
  interface ListReservationLocationsResponseNonNullableFields {
3681
- reservationLocations: {
3682
- configuration?: {
3683
- onlineReservations?: {
3684
- seatPacing?: {
3685
- number: number;
3686
- enabled: boolean;
3687
- };
3688
- partyPacing?: {
3689
- number: number;
3690
- enabled: boolean;
3691
- };
3692
- partySize?: {
3693
- min: number;
3694
- max: number;
3695
- };
3696
- minimumReservationNotice?: {
3697
- number: number;
3698
- unit: Unit;
3699
- };
3700
- turnoverTimeRules: {
3701
- seatsMin: number;
3702
- seatsMax: number;
3703
- minutes: number;
3704
- }[];
3705
- businessSchedule?: {
3706
- periods: {
3707
- openDay: CommonDayOfWeek;
3708
- openTime: string;
3709
- closeDay: CommonDayOfWeek;
3710
- closeTime: string;
3711
- }[];
3712
- specialHourPeriod: {
3713
- startDate: string;
3714
- endDate: string;
3715
- isClosed: boolean;
3716
- comment: string;
3717
- }[];
3718
- };
3719
- manualApproval?: {
3720
- partySizeThreshold: number;
3721
- customApprovalsProviderId: string;
3722
- enabled: boolean;
3723
- };
3724
- };
3725
- reservationForm?: {
3726
- termsAndConditions?: {
3727
- url: string;
3728
- enabled: boolean;
3729
- };
3730
- privacyPolicy?: {
3731
- url: string;
3732
- enabled: boolean;
3733
- };
3734
- customFieldDefinitions: {
3735
- name: string;
3736
- required: boolean;
3737
- }[];
3738
- emailMarketingCheckbox?: {
3739
- enabled: boolean;
3740
- checkedByDefault: boolean;
3741
- };
3742
- };
3743
- myReservationsFields: {
3744
- fieldType: FieldType;
3745
- shown: boolean;
3746
- }[];
3747
- tableManagement?: {
3748
- tableDefinitions: {
3749
- name: string;
3750
- seatsMin: number;
3751
- seatsMax: number;
3752
- }[];
3753
- deletedTableDefinitions: {
3754
- name: string;
3755
- seatsMin: number;
3756
- seatsMax: number;
3757
- }[];
3758
- tableCombinations: {
3759
- seatsMin: number;
3760
- seatsMax: number;
3761
- }[];
3762
- };
3763
- };
3764
- }[];
3419
+ reservationLocations: ReservationLocationNonNullableFields[];
3765
3420
  }
3766
3421
 
3767
3422
  type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
@@ -3838,14 +3493,120 @@ interface GetTimeSlotsResponse$1 {
3838
3493
  /** A list of time slots and their availability according to the given party size. */
3839
3494
  timeSlots?: TimeSlot$1[];
3840
3495
  }
3496
+ interface CheckReservationDetailsRequest$1 {
3497
+ /** Reservation location ID. */
3498
+ reservationLocationId: string;
3499
+ /** Date. */
3500
+ date: Date;
3501
+ /** Duration. */
3502
+ duration: number | null;
3503
+ /** Party size. */
3504
+ partySize: number | null;
3505
+ /** Reservation, that should be ignored during the check. */
3506
+ excludeReservationId?: string | null;
3507
+ /** Requested table combination. */
3508
+ tableIds?: string[];
3509
+ }
3510
+ interface CheckReservationDetailsResponse$1 {
3511
+ /** Tables states. */
3512
+ tables?: Table$1[];
3513
+ /** Table combinations states. */
3514
+ tableCombinations?: TableCombination$1[];
3515
+ /** Reservation location conflicts. */
3516
+ reservationLocationConflicts?: ReservationLocationConflict$1[];
3517
+ /** Requested table combination state. */
3518
+ requestedTableCombination?: TableCombination$1;
3519
+ /** List of reserved tables with corresponding reservation ids. */
3520
+ tableReservedConflicts?: TableReservedConflict$1[];
3521
+ /** Whether manual approval is required to make a reservation in this time slot. */
3522
+ manualApproval?: boolean | null;
3523
+ /** Whether payment is required to make a reservation in this time slot. */
3524
+ paymentRequired?: boolean | null;
3525
+ }
3526
+ interface Table$1 {
3527
+ id?: string;
3528
+ /** Table conflicts. */
3529
+ tableConflicts?: TableConflict$1[];
3530
+ }
3531
+ interface TableConflict$1 {
3532
+ /** Conflict type. */
3533
+ type?: TableConflictType$1;
3534
+ }
3535
+ declare enum TableConflictType$1 {
3536
+ UNKNOWN = "UNKNOWN",
3537
+ TABLE_RESERVED = "TABLE_RESERVED",
3538
+ TABLE_TOO_BIG = "TABLE_TOO_BIG",
3539
+ TABLE_TOO_SMALL = "TABLE_TOO_SMALL",
3540
+ OFFLINE_ONLY = "OFFLINE_ONLY"
3541
+ }
3542
+ interface TableCombination$1 {
3543
+ tableIds?: string[];
3544
+ tableCombinationConflicts?: TableCombinationConflict$1[];
3545
+ }
3546
+ interface TableCombinationConflict$1 {
3547
+ /** Conflict type. */
3548
+ type?: TableCombinationConflictType$1;
3549
+ }
3550
+ declare enum TableCombinationConflictType$1 {
3551
+ UNKNOWN = "UNKNOWN",
3552
+ RESERVED = "RESERVED",
3553
+ TOO_BIG = "TOO_BIG",
3554
+ TOO_SMALL = "TOO_SMALL",
3555
+ OFFLINE_ONLY = "OFFLINE_ONLY"
3556
+ }
3557
+ interface ReservationLocationConflict$1 {
3558
+ /** Reservation location conflict type. */
3559
+ type?: Type$1;
3560
+ }
3561
+ declare enum Type$1 {
3562
+ UNKNOWN = "UNKNOWN",
3563
+ PARTY_PACING = "PARTY_PACING",
3564
+ SEAT_PACING = "SEAT_PACING"
3565
+ }
3566
+ interface TableReservedConflict$1 {
3567
+ /** Table id. */
3568
+ tableId?: string;
3569
+ /** List of reservation ids. */
3570
+ reservationIds?: string[];
3571
+ }
3572
+ interface TimeSlotTableCombinationNonNullableFields$1 {
3573
+ tableIds: string[];
3574
+ }
3575
+ interface TimeSlotNonNullableFields$1 {
3576
+ duration: number;
3577
+ status: Status$1;
3578
+ tableCombinations: TimeSlotTableCombinationNonNullableFields$1[];
3579
+ }
3841
3580
  interface GetTimeSlotsResponseNonNullableFields$1 {
3842
- timeSlots: {
3843
- duration: number;
3844
- status: Status$1;
3845
- tableCombinations: {
3846
- tableIds: string[];
3847
- }[];
3848
- }[];
3581
+ timeSlots: TimeSlotNonNullableFields$1[];
3582
+ }
3583
+ interface TableConflictNonNullableFields$1 {
3584
+ type: TableConflictType$1;
3585
+ }
3586
+ interface TableNonNullableFields$1 {
3587
+ id: string;
3588
+ tableConflicts: TableConflictNonNullableFields$1[];
3589
+ }
3590
+ interface TableCombinationConflictNonNullableFields$1 {
3591
+ type: TableCombinationConflictType$1;
3592
+ }
3593
+ interface TableCombinationNonNullableFields$1 {
3594
+ tableIds: string[];
3595
+ tableCombinationConflicts: TableCombinationConflictNonNullableFields$1[];
3596
+ }
3597
+ interface ReservationLocationConflictNonNullableFields$1 {
3598
+ type: Type$1;
3599
+ }
3600
+ interface TableReservedConflictNonNullableFields$1 {
3601
+ tableId: string;
3602
+ reservationIds: string[];
3603
+ }
3604
+ interface CheckReservationDetailsResponseNonNullableFields$1 {
3605
+ tables: TableNonNullableFields$1[];
3606
+ tableCombinations: TableCombinationNonNullableFields$1[];
3607
+ reservationLocationConflicts: ReservationLocationConflictNonNullableFields$1[];
3608
+ requestedTableCombination?: TableCombinationNonNullableFields$1;
3609
+ tableReservedConflicts: TableReservedConflictNonNullableFields$1[];
3849
3610
  }
3850
3611
 
3851
3612
  interface TimeSlot {
@@ -3895,11 +3656,120 @@ interface GetTimeSlotsResponse {
3895
3656
  /** A list of time slots and their availability according to the given party size. */
3896
3657
  timeSlots?: TimeSlot[];
3897
3658
  }
3659
+ interface CheckReservationDetailsRequest {
3660
+ /** Reservation location ID. */
3661
+ reservationLocationId: string;
3662
+ /** Date. */
3663
+ date: Date;
3664
+ /** Duration. */
3665
+ duration: number | null;
3666
+ /** Party size. */
3667
+ partySize: number | null;
3668
+ /** Reservation, that should be ignored during the check. */
3669
+ excludeReservationId?: string | null;
3670
+ /** Requested table combination. */
3671
+ tableIds?: string[];
3672
+ }
3673
+ interface CheckReservationDetailsResponse {
3674
+ /** Tables states. */
3675
+ tables?: Table[];
3676
+ /** Table combinations states. */
3677
+ tableCombinations?: TableCombination[];
3678
+ /** Reservation location conflicts. */
3679
+ reservationLocationConflicts?: ReservationLocationConflict[];
3680
+ /** Requested table combination state. */
3681
+ requestedTableCombination?: TableCombination;
3682
+ /** List of reserved tables with corresponding reservation ids. */
3683
+ tableReservedConflicts?: TableReservedConflict[];
3684
+ /** Whether manual approval is required to make a reservation in this time slot. */
3685
+ manualApproval?: boolean | null;
3686
+ /** Whether payment is required to make a reservation in this time slot. */
3687
+ paymentRequired?: boolean | null;
3688
+ }
3689
+ interface Table {
3690
+ _id?: string;
3691
+ /** Table conflicts. */
3692
+ tableConflicts?: TableConflict[];
3693
+ }
3694
+ interface TableConflict {
3695
+ /** Conflict type. */
3696
+ type?: TableConflictType;
3697
+ }
3698
+ declare enum TableConflictType {
3699
+ UNKNOWN = "UNKNOWN",
3700
+ TABLE_RESERVED = "TABLE_RESERVED",
3701
+ TABLE_TOO_BIG = "TABLE_TOO_BIG",
3702
+ TABLE_TOO_SMALL = "TABLE_TOO_SMALL",
3703
+ OFFLINE_ONLY = "OFFLINE_ONLY"
3704
+ }
3705
+ interface TableCombination {
3706
+ tableIds?: string[];
3707
+ tableCombinationConflicts?: TableCombinationConflict[];
3708
+ }
3709
+ interface TableCombinationConflict {
3710
+ /** Conflict type. */
3711
+ type?: TableCombinationConflictType;
3712
+ }
3713
+ declare enum TableCombinationConflictType {
3714
+ UNKNOWN = "UNKNOWN",
3715
+ RESERVED = "RESERVED",
3716
+ TOO_BIG = "TOO_BIG",
3717
+ TOO_SMALL = "TOO_SMALL",
3718
+ OFFLINE_ONLY = "OFFLINE_ONLY"
3719
+ }
3720
+ interface ReservationLocationConflict {
3721
+ /** Reservation location conflict type. */
3722
+ type?: Type;
3723
+ }
3724
+ declare enum Type {
3725
+ UNKNOWN = "UNKNOWN",
3726
+ PARTY_PACING = "PARTY_PACING",
3727
+ SEAT_PACING = "SEAT_PACING"
3728
+ }
3729
+ interface TableReservedConflict {
3730
+ /** Table id. */
3731
+ tableId?: string;
3732
+ /** List of reservation ids. */
3733
+ reservationIds?: string[];
3734
+ }
3735
+ interface TimeSlotTableCombinationNonNullableFields {
3736
+ tableIds: string[];
3737
+ }
3738
+ interface TimeSlotNonNullableFields {
3739
+ duration: number;
3740
+ status: Status;
3741
+ tableCombinations: TimeSlotTableCombinationNonNullableFields[];
3742
+ }
3898
3743
  interface GetTimeSlotsResponseNonNullableFields {
3899
- timeSlots: {
3900
- duration: number;
3901
- status: Status;
3902
- }[];
3744
+ timeSlots: TimeSlotNonNullableFields[];
3745
+ }
3746
+ interface TableConflictNonNullableFields {
3747
+ type: TableConflictType;
3748
+ }
3749
+ interface TableNonNullableFields {
3750
+ _id: string;
3751
+ tableConflicts: TableConflictNonNullableFields[];
3752
+ }
3753
+ interface TableCombinationConflictNonNullableFields {
3754
+ type: TableCombinationConflictType;
3755
+ }
3756
+ interface TableCombinationNonNullableFields {
3757
+ tableIds: string[];
3758
+ tableCombinationConflicts: TableCombinationConflictNonNullableFields[];
3759
+ }
3760
+ interface ReservationLocationConflictNonNullableFields {
3761
+ type: Type;
3762
+ }
3763
+ interface TableReservedConflictNonNullableFields {
3764
+ tableId: string;
3765
+ reservationIds: string[];
3766
+ }
3767
+ interface CheckReservationDetailsResponseNonNullableFields {
3768
+ tables: TableNonNullableFields[];
3769
+ tableCombinations: TableCombinationNonNullableFields[];
3770
+ reservationLocationConflicts: ReservationLocationConflictNonNullableFields[];
3771
+ requestedTableCombination?: TableCombinationNonNullableFields;
3772
+ tableReservedConflicts: TableReservedConflictNonNullableFields[];
3903
3773
  }
3904
3774
 
3905
3775
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
@@ -3913,11 +3783,13 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
3913
3783
  __originalResponseType: R;
3914
3784
  };
3915
3785
  declare function getTimeSlots(): __PublicMethodMetaInfo<'POST', {}, GetTimeSlotsRequest, GetTimeSlotsRequest$1, GetTimeSlotsResponse & GetTimeSlotsResponseNonNullableFields, GetTimeSlotsResponse$1 & GetTimeSlotsResponseNonNullableFields$1>;
3786
+ declare function checkReservationDetails(): __PublicMethodMetaInfo<'POST', {}, CheckReservationDetailsRequest, CheckReservationDetailsRequest$1, CheckReservationDetailsResponse & CheckReservationDetailsResponseNonNullableFields, CheckReservationDetailsResponse$1 & CheckReservationDetailsResponseNonNullableFields$1>;
3916
3787
 
3917
3788
  type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
3789
+ declare const meta_checkReservationDetails: typeof checkReservationDetails;
3918
3790
  declare const meta_getTimeSlots: typeof getTimeSlots;
3919
3791
  declare namespace meta {
3920
- export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_getTimeSlots as getTimeSlots };
3792
+ export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_checkReservationDetails as checkReservationDetails, meta_getTimeSlots as getTimeSlots };
3921
3793
  }
3922
3794
 
3923
3795
  export { meta$1 as reservationLocations, meta$2 as reservations, meta as timeSlots };