@wix/table-reservations 1.0.102 → 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.
- package/package.json +6 -6
- package/type-bundles/context.bundle.d.ts +2737 -617
- package/type-bundles/index.bundle.d.ts +560 -788
- package/type-bundles/meta.bundle.d.ts +1084 -1212
|
@@ -388,8 +388,7 @@ interface ReservationCanceled {
|
|
|
388
388
|
}
|
|
389
389
|
interface DeleteReservationRequest {
|
|
390
390
|
/** Reservation ID. */
|
|
391
|
-
reservationId
|
|
392
|
-
revision?: string;
|
|
391
|
+
reservationId: string;
|
|
393
392
|
}
|
|
394
393
|
interface DeleteReservationResponse {
|
|
395
394
|
}
|
|
@@ -480,7 +479,7 @@ interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
480
479
|
* "fieldName2":{"$operator":"value2"}
|
|
481
480
|
* }`
|
|
482
481
|
*
|
|
483
|
-
* 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-
|
|
482
|
+
* 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.
|
|
484
483
|
* To learn how to query reservations, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
485
484
|
*/
|
|
486
485
|
filter?: Record<string, any> | null;
|
|
@@ -506,102 +505,158 @@ interface SearchReservationsRequest {
|
|
|
506
505
|
search: CursorSearch;
|
|
507
506
|
}
|
|
508
507
|
interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
509
|
-
/** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can
|
|
508
|
+
/** 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'. */
|
|
510
509
|
cursorPaging?: CursorPaging$1;
|
|
511
|
-
/**
|
|
510
|
+
/**
|
|
511
|
+
* Filter object in the following format:
|
|
512
|
+
* `"filter" : {
|
|
513
|
+
* "fieldName1": "value1",
|
|
514
|
+
* "fieldName2":{"$operator":"value2"}
|
|
515
|
+
* }`
|
|
516
|
+
* 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.
|
|
517
|
+
*/
|
|
512
518
|
filter?: Record<string, any> | null;
|
|
513
|
-
/**
|
|
519
|
+
/**
|
|
520
|
+
* Sort object in the following format:
|
|
521
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
522
|
+
*/
|
|
514
523
|
sort?: Sorting$1[];
|
|
515
|
-
/**
|
|
524
|
+
/**
|
|
525
|
+
* A search method for grouping data into various categories (facets) and providing summaries for each category.
|
|
526
|
+
* For example, use aggregations to allow site visitors to narrow down their search results by selecting specific reservation statuses, party sizes, etc.
|
|
527
|
+
*/
|
|
516
528
|
aggregations?: Aggregation[];
|
|
517
|
-
/**
|
|
529
|
+
/** Free text to match in searchable fields. */
|
|
518
530
|
search?: SearchDetails;
|
|
519
531
|
/** Time zone to adjust date-time-based filters and aggregations. ISO 8601 or IANA time zone database format. */
|
|
520
532
|
timeZone?: string | null;
|
|
521
533
|
}
|
|
522
534
|
/** @oneof */
|
|
523
535
|
interface CursorSearchPagingMethodOneOf {
|
|
524
|
-
/** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can
|
|
536
|
+
/** 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'. */
|
|
525
537
|
cursorPaging?: CursorPaging$1;
|
|
526
538
|
}
|
|
527
539
|
interface Aggregation extends AggregationKindOneOf {
|
|
540
|
+
/** 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. */
|
|
528
541
|
value?: ValueAggregation;
|
|
542
|
+
/** 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. */
|
|
529
543
|
range?: RangeAggregation;
|
|
544
|
+
/** 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. */
|
|
530
545
|
scalar?: ScalarAggregation;
|
|
546
|
+
/** 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. */
|
|
531
547
|
dateHistogram?: DateHistogramAggregation;
|
|
548
|
+
/**
|
|
549
|
+
* 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.
|
|
550
|
+
* 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`.
|
|
551
|
+
*/
|
|
532
552
|
nested?: NestedAggregation;
|
|
533
553
|
name?: string | null;
|
|
534
554
|
type?: AggregationType;
|
|
535
555
|
fieldPath?: string;
|
|
536
|
-
groupBy?: GroupByAggregation;
|
|
537
556
|
}
|
|
538
557
|
/** @oneof */
|
|
539
558
|
interface AggregationKindOneOf {
|
|
559
|
+
/** 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. */
|
|
540
560
|
value?: ValueAggregation;
|
|
561
|
+
/** 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. */
|
|
541
562
|
range?: RangeAggregation;
|
|
563
|
+
/** 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. */
|
|
542
564
|
scalar?: ScalarAggregation;
|
|
565
|
+
/** 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. */
|
|
543
566
|
dateHistogram?: DateHistogramAggregation;
|
|
567
|
+
/**
|
|
568
|
+
* 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.
|
|
569
|
+
* 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`.
|
|
570
|
+
*/
|
|
544
571
|
nested?: NestedAggregation;
|
|
545
572
|
}
|
|
546
573
|
interface RangeBucket {
|
|
547
|
-
/** Inclusive lower bound of the range. Required if to is not
|
|
574
|
+
/** Inclusive lower bound of the range. Required if `to` is not provided. */
|
|
548
575
|
from?: number | null;
|
|
549
|
-
/** Exclusive upper bound of the range. Required if from is not
|
|
576
|
+
/** Exclusive upper bound of the range. Required if `from` is not provided. */
|
|
550
577
|
to?: number | null;
|
|
551
578
|
}
|
|
552
579
|
declare enum SortType {
|
|
580
|
+
/** Sort by number of matches. */
|
|
553
581
|
COUNT = "COUNT",
|
|
582
|
+
/** Sort by value of the field alphabetically. */
|
|
554
583
|
VALUE = "VALUE"
|
|
555
584
|
}
|
|
556
585
|
declare enum SortDirection {
|
|
586
|
+
/** Sort in descending order. */
|
|
557
587
|
DESC = "DESC",
|
|
588
|
+
/** Sort in ascending order. */
|
|
558
589
|
ASC = "ASC"
|
|
559
590
|
}
|
|
560
591
|
declare enum MissingValues {
|
|
592
|
+
/** Exclude missing values from the aggregation results */
|
|
561
593
|
EXCLUDE = "EXCLUDE",
|
|
594
|
+
/** Include missing values in the aggregation results */
|
|
562
595
|
INCLUDE = "INCLUDE"
|
|
563
596
|
}
|
|
564
597
|
interface IncludeMissingValuesOptions {
|
|
565
|
-
/**
|
|
598
|
+
/** Specify a custom name for the bucket containing the missing values. Defaults are "N/A" for strings, "0" for integers, and "false" for booleans. */
|
|
566
599
|
addToBucket?: string;
|
|
567
600
|
}
|
|
568
601
|
declare enum ScalarType {
|
|
569
602
|
UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
|
|
603
|
+
/** Count of distinct values. */
|
|
570
604
|
COUNT_DISTINCT = "COUNT_DISTINCT",
|
|
605
|
+
/** Minimum value. */
|
|
571
606
|
MIN = "MIN",
|
|
607
|
+
/** Maximum value. */
|
|
572
608
|
MAX = "MAX",
|
|
609
|
+
/** Sum of values. */
|
|
573
610
|
SUM = "SUM",
|
|
611
|
+
/** Average of values. */
|
|
574
612
|
AVG = "AVG"
|
|
575
613
|
}
|
|
614
|
+
declare enum NestedAggregationType {
|
|
615
|
+
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
616
|
+
/** An aggregation where result buckets are dynamically built - one per unique value. */
|
|
617
|
+
VALUE = "VALUE",
|
|
618
|
+
/** An aggregation where you can define a set of ranges - each representing a bucket. */
|
|
619
|
+
RANGE = "RANGE",
|
|
620
|
+
/** A single-value metric aggregation - e.g. min, max, sum, avg. */
|
|
621
|
+
SCALAR = "SCALAR",
|
|
622
|
+
/** An aggregation where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
623
|
+
DATE_HISTOGRAM = "DATE_HISTOGRAM"
|
|
624
|
+
}
|
|
576
625
|
interface ValueAggregation extends ValueAggregationOptionsOneOf {
|
|
577
|
-
/**
|
|
626
|
+
/** Options for including missing values in results. */
|
|
578
627
|
includeOptions?: IncludeMissingValuesOptions;
|
|
628
|
+
/** Whether to sort by the number of matches or the value of the field. */
|
|
579
629
|
sortType?: SortType;
|
|
630
|
+
/** Whether to sort in ascending or descending order. */
|
|
580
631
|
sortDirection?: SortDirection;
|
|
581
|
-
/**
|
|
632
|
+
/**
|
|
633
|
+
* Number of aggregation results to return.
|
|
634
|
+
* Min: `1`
|
|
635
|
+
* Max: `250`
|
|
636
|
+
* Default: `10`
|
|
637
|
+
*/
|
|
582
638
|
limit?: number | null;
|
|
583
|
-
/**
|
|
639
|
+
/**
|
|
640
|
+
* Whether missing values should be included or excluded from the aggregation results.
|
|
641
|
+
* Default: `EXCLUDE`.
|
|
642
|
+
*/
|
|
584
643
|
missingValues?: MissingValues;
|
|
585
644
|
}
|
|
586
645
|
/** @oneof */
|
|
587
646
|
interface ValueAggregationOptionsOneOf {
|
|
588
|
-
/**
|
|
647
|
+
/** Options for including missing values in results. */
|
|
589
648
|
includeOptions?: IncludeMissingValuesOptions;
|
|
590
649
|
}
|
|
591
|
-
declare enum NestedAggregationType {
|
|
592
|
-
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
593
|
-
VALUE = "VALUE",
|
|
594
|
-
RANGE = "RANGE",
|
|
595
|
-
SCALAR = "SCALAR",
|
|
596
|
-
DATE_HISTOGRAM = "DATE_HISTOGRAM"
|
|
597
|
-
}
|
|
598
650
|
interface RangeAggregation {
|
|
651
|
+
/** 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. */
|
|
599
652
|
buckets?: RangeBucket[];
|
|
600
653
|
}
|
|
601
654
|
interface ScalarAggregation {
|
|
655
|
+
/** Operation type for the scalar aggregation. */
|
|
602
656
|
type?: ScalarType;
|
|
603
657
|
}
|
|
604
658
|
interface DateHistogramAggregation {
|
|
659
|
+
/** Interval for date histogram aggregation. */
|
|
605
660
|
interval?: Interval;
|
|
606
661
|
}
|
|
607
662
|
declare enum Interval {
|
|
@@ -615,55 +670,72 @@ declare enum Interval {
|
|
|
615
670
|
SECOND = "SECOND"
|
|
616
671
|
}
|
|
617
672
|
interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
|
|
673
|
+
/** 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. */
|
|
618
674
|
value?: ValueAggregation;
|
|
675
|
+
/** 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. */
|
|
619
676
|
range?: RangeAggregation;
|
|
677
|
+
/** 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. */
|
|
620
678
|
scalar?: ScalarAggregation;
|
|
679
|
+
/** 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. */
|
|
621
680
|
dateHistogram?: DateHistogramAggregation;
|
|
681
|
+
/** Aggregation name displayed in the return. */
|
|
622
682
|
name?: string | null;
|
|
683
|
+
/** Type of aggregation to perform. */
|
|
623
684
|
type?: NestedAggregationType;
|
|
685
|
+
/** Field to aggregate by. */
|
|
624
686
|
fieldPath?: string;
|
|
625
687
|
}
|
|
626
688
|
/** @oneof */
|
|
627
689
|
interface NestedAggregationItemKindOneOf {
|
|
690
|
+
/** 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. */
|
|
628
691
|
value?: ValueAggregation;
|
|
692
|
+
/** 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. */
|
|
629
693
|
range?: RangeAggregation;
|
|
694
|
+
/** 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. */
|
|
630
695
|
scalar?: ScalarAggregation;
|
|
696
|
+
/** 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. */
|
|
631
697
|
dateHistogram?: DateHistogramAggregation;
|
|
632
698
|
}
|
|
633
699
|
declare enum AggregationType {
|
|
634
700
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
701
|
+
/** An aggregation where result buckets are dynamically built - one per unique value. */
|
|
635
702
|
VALUE = "VALUE",
|
|
703
|
+
/** An aggregation where you can define a set of ranges - each representing a bucket. */
|
|
636
704
|
RANGE = "RANGE",
|
|
705
|
+
/** A single-value metric aggregation - e.g. min, max, sum, avg. */
|
|
637
706
|
SCALAR = "SCALAR",
|
|
707
|
+
/** An aggregation where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
638
708
|
DATE_HISTOGRAM = "DATE_HISTOGRAM",
|
|
709
|
+
/** Multi-level aggregation, where each next aggregation is nested within the previous one. */
|
|
639
710
|
NESTED = "NESTED"
|
|
640
711
|
}
|
|
641
712
|
interface NestedAggregation {
|
|
713
|
+
/** Flattened list of aggregations, where each aggregation is nested within the previous one. */
|
|
642
714
|
nestedAggregations?: NestedAggregationItem[];
|
|
643
715
|
}
|
|
644
|
-
interface GroupByAggregation extends GroupByAggregationKindOneOf {
|
|
645
|
-
value?: ValueAggregation;
|
|
646
|
-
name?: string | null;
|
|
647
|
-
fieldPath?: string;
|
|
648
|
-
}
|
|
649
|
-
/** @oneof */
|
|
650
|
-
interface GroupByAggregationKindOneOf {
|
|
651
|
-
value?: ValueAggregation;
|
|
652
|
-
}
|
|
653
716
|
interface SearchDetails {
|
|
654
|
-
/**
|
|
717
|
+
/** Boolean search mode. Defines how separate search terms in the `expression` are combined. */
|
|
655
718
|
mode?: Mode$1;
|
|
656
|
-
/**
|
|
719
|
+
/** Search term or expression. */
|
|
657
720
|
expression?: string | null;
|
|
658
|
-
/**
|
|
721
|
+
/**
|
|
722
|
+
* Fields to search in.
|
|
723
|
+
*
|
|
724
|
+
* Searchable fields are `reservee.first_name`, `reservee.last_name`, `reservee.phone`, and `reservee.email`.
|
|
725
|
+
*
|
|
726
|
+
* If the array is empty, all fields are searched.
|
|
727
|
+
*/
|
|
659
728
|
fields?: string[];
|
|
660
|
-
/**
|
|
729
|
+
/**
|
|
730
|
+
* Whether to allow the search function to automatically correct typos or minor mistakes in the search expression.
|
|
731
|
+
* The search function uses an algorithm to find results that are close to what the site visitor typed.
|
|
732
|
+
*/
|
|
661
733
|
fuzzy?: boolean;
|
|
662
734
|
}
|
|
663
735
|
declare enum Mode$1 {
|
|
664
|
-
/** any */
|
|
736
|
+
/** Returns instances where any terms in the expression occur. */
|
|
665
737
|
OR = "OR",
|
|
666
|
-
/** all */
|
|
738
|
+
/** Returns instances where all the terms in the expression occur. */
|
|
667
739
|
AND = "AND"
|
|
668
740
|
}
|
|
669
741
|
interface SearchReservationsResponse {
|
|
@@ -675,40 +747,58 @@ interface SearchReservationsResponse {
|
|
|
675
747
|
aggregationData?: AggregationData;
|
|
676
748
|
}
|
|
677
749
|
interface AggregationData {
|
|
678
|
-
/**
|
|
750
|
+
/** List of the aggregated data results. */
|
|
679
751
|
results?: AggregationResults[];
|
|
680
752
|
}
|
|
681
753
|
interface ValueAggregationResult {
|
|
754
|
+
/** Value of the field */
|
|
682
755
|
value?: string;
|
|
756
|
+
/** Count of entities with this value */
|
|
683
757
|
count?: number;
|
|
684
758
|
}
|
|
685
759
|
interface RangeAggregationResult {
|
|
760
|
+
/** Inclusive lower bound of the range. */
|
|
686
761
|
from?: number | null;
|
|
762
|
+
/** Exclusive upper bound of the range. */
|
|
687
763
|
to?: number | null;
|
|
764
|
+
/** Count of entities in the range. */
|
|
688
765
|
count?: number;
|
|
689
766
|
}
|
|
690
767
|
interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
|
|
768
|
+
/** List of the value aggregation results. */
|
|
691
769
|
values?: ValueResults;
|
|
770
|
+
/** List of the range aggregation results. */
|
|
692
771
|
ranges?: RangeResults;
|
|
772
|
+
/** List of the scalar aggregation results. */
|
|
693
773
|
scalar?: AggregationResultsScalarResult;
|
|
774
|
+
/** Aggregation name defined in the request. */
|
|
694
775
|
name?: string;
|
|
776
|
+
/** Type of aggregation performed. */
|
|
695
777
|
type?: AggregationType;
|
|
778
|
+
/** Field the data was aggregated by. */
|
|
696
779
|
fieldPath?: string;
|
|
697
780
|
}
|
|
698
781
|
/** @oneof */
|
|
699
782
|
interface NestedAggregationResultsResultOneOf {
|
|
783
|
+
/** List of the value aggregation results. */
|
|
700
784
|
values?: ValueResults;
|
|
785
|
+
/** List of the range aggregation results. */
|
|
701
786
|
ranges?: RangeResults;
|
|
787
|
+
/** List of the scalar aggregation results. */
|
|
702
788
|
scalar?: AggregationResultsScalarResult;
|
|
703
789
|
}
|
|
704
790
|
interface ValueResults {
|
|
791
|
+
/** List of value aggregations. */
|
|
705
792
|
results?: ValueAggregationResult[];
|
|
706
793
|
}
|
|
707
794
|
interface RangeResults {
|
|
795
|
+
/** List of ranges returned in same order as requested. */
|
|
708
796
|
results?: RangeAggregationResult[];
|
|
709
797
|
}
|
|
710
798
|
interface AggregationResultsScalarResult {
|
|
799
|
+
/** Type of scalar aggregation. */
|
|
711
800
|
type?: ScalarType;
|
|
801
|
+
/** Value of the scalar aggregation. */
|
|
712
802
|
value?: number;
|
|
713
803
|
}
|
|
714
804
|
interface NestedValueAggregationResult {
|
|
@@ -716,64 +806,103 @@ interface NestedValueAggregationResult {
|
|
|
716
806
|
nestedResults?: NestedAggregationResults;
|
|
717
807
|
}
|
|
718
808
|
interface ValueResult {
|
|
809
|
+
/** Value of the field. */
|
|
719
810
|
value?: string;
|
|
811
|
+
/** Count of entities with this value. */
|
|
720
812
|
count?: number | null;
|
|
721
813
|
}
|
|
722
814
|
interface RangeResult {
|
|
815
|
+
/** Inclusive lower bound of the range. */
|
|
723
816
|
from?: number | null;
|
|
817
|
+
/** Exclusive upper bound of the range. */
|
|
724
818
|
to?: number | null;
|
|
819
|
+
/** Count of entities in the range. */
|
|
725
820
|
count?: number | null;
|
|
726
821
|
}
|
|
727
822
|
interface ScalarResult {
|
|
823
|
+
/** Scalar aggregation results. */
|
|
728
824
|
value?: number;
|
|
729
825
|
}
|
|
730
826
|
interface NestedResultValue extends NestedResultValueResultOneOf {
|
|
827
|
+
/** Value aggregation results. */
|
|
731
828
|
value?: ValueResult;
|
|
829
|
+
/** Range aggregation results. */
|
|
732
830
|
range?: RangeResult;
|
|
831
|
+
/** Scalar aggregation results. */
|
|
733
832
|
scalar?: ScalarResult;
|
|
833
|
+
/** Date histogram aggregation results. */
|
|
734
834
|
dateHistogram?: ValueResult;
|
|
735
835
|
}
|
|
736
836
|
/** @oneof */
|
|
737
837
|
interface NestedResultValueResultOneOf {
|
|
838
|
+
/** Value aggregation results. */
|
|
738
839
|
value?: ValueResult;
|
|
840
|
+
/** Range aggregation results. */
|
|
739
841
|
range?: RangeResult;
|
|
842
|
+
/** Scalar aggregation results. */
|
|
740
843
|
scalar?: ScalarResult;
|
|
844
|
+
/** Date histogram aggregation results. */
|
|
741
845
|
dateHistogram?: ValueResult;
|
|
742
846
|
}
|
|
743
847
|
interface Results {
|
|
848
|
+
/** List of nested aggregation results. */
|
|
744
849
|
results?: Record<string, NestedResultValue>;
|
|
745
850
|
}
|
|
746
851
|
interface DateHistogramResult {
|
|
852
|
+
/** Date in ISO 8601 format. */
|
|
747
853
|
value?: string;
|
|
854
|
+
/** Count of entities in the interval. */
|
|
748
855
|
count?: number;
|
|
749
856
|
}
|
|
857
|
+
/** deprecated */
|
|
750
858
|
interface GroupByValueResults {
|
|
751
859
|
results?: NestedValueAggregationResult[];
|
|
752
860
|
}
|
|
753
861
|
interface DateHistogramResults {
|
|
862
|
+
/** List of date histogram aggregations. */
|
|
754
863
|
results?: DateHistogramResult[];
|
|
755
864
|
}
|
|
865
|
+
/**
|
|
866
|
+
* Results of `NESTED` aggregation type in a flattened form.
|
|
867
|
+
* Aggregations in the resulting array are keyed by the requested aggregation `name`.
|
|
868
|
+
*/
|
|
756
869
|
interface NestedResults {
|
|
870
|
+
/** List of nested aggregation results. */
|
|
757
871
|
results?: Results[];
|
|
758
872
|
}
|
|
759
873
|
interface AggregationResults extends AggregationResultsResultOneOf {
|
|
874
|
+
/** Value aggregation results. */
|
|
760
875
|
values?: ValueResults;
|
|
876
|
+
/** Range aggregation results. */
|
|
761
877
|
ranges?: RangeResults;
|
|
878
|
+
/** Scalar aggregation results. */
|
|
762
879
|
scalar?: AggregationResultsScalarResult;
|
|
880
|
+
/** deprecated */
|
|
763
881
|
groupedByValue?: GroupByValueResults;
|
|
882
|
+
/** Date histogram aggregation results. */
|
|
764
883
|
dateHistogram?: DateHistogramResults;
|
|
884
|
+
/** Nested aggregation results. */
|
|
765
885
|
nested?: NestedResults;
|
|
886
|
+
/** Aggregation name defined in the request. */
|
|
766
887
|
name?: string;
|
|
888
|
+
/** Type of aggregation that was performed. */
|
|
767
889
|
type?: AggregationType;
|
|
890
|
+
/** Field the data was aggregated by. */
|
|
768
891
|
fieldPath?: string;
|
|
769
892
|
}
|
|
770
893
|
/** @oneof */
|
|
771
894
|
interface AggregationResultsResultOneOf {
|
|
895
|
+
/** Value aggregation results. */
|
|
772
896
|
values?: ValueResults;
|
|
897
|
+
/** Range aggregation results. */
|
|
773
898
|
ranges?: RangeResults;
|
|
899
|
+
/** Scalar aggregation results. */
|
|
774
900
|
scalar?: AggregationResultsScalarResult;
|
|
901
|
+
/** deprecated */
|
|
775
902
|
groupedByValue?: GroupByValueResults;
|
|
903
|
+
/** Date histogram aggregation results. */
|
|
776
904
|
dateHistogram?: DateHistogramResults;
|
|
905
|
+
/** Nested aggregation results. */
|
|
777
906
|
nested?: NestedResults;
|
|
778
907
|
}
|
|
779
908
|
interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
|
|
@@ -801,7 +930,7 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
|
|
|
801
930
|
slug?: string;
|
|
802
931
|
/** ID of the entity associated with the event. */
|
|
803
932
|
entityId?: string;
|
|
804
|
-
/** Event timestamp. */
|
|
933
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
805
934
|
eventTime?: Date;
|
|
806
935
|
/**
|
|
807
936
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -859,6 +988,32 @@ interface RemoveReservationMigrationNotesRequest {
|
|
|
859
988
|
interface RemoveReservationMigrationNotesResponse {
|
|
860
989
|
reservation?: Reservation;
|
|
861
990
|
}
|
|
991
|
+
interface RawHttpRequest {
|
|
992
|
+
body?: Uint8Array;
|
|
993
|
+
pathParams?: PathParametersEntry[];
|
|
994
|
+
queryParams?: QueryParametersEntry[];
|
|
995
|
+
headers?: HeadersEntry[];
|
|
996
|
+
method?: string;
|
|
997
|
+
rawPath?: string;
|
|
998
|
+
rawQuery?: string;
|
|
999
|
+
}
|
|
1000
|
+
interface PathParametersEntry {
|
|
1001
|
+
key?: string;
|
|
1002
|
+
value?: string;
|
|
1003
|
+
}
|
|
1004
|
+
interface QueryParametersEntry {
|
|
1005
|
+
key?: string;
|
|
1006
|
+
value?: string;
|
|
1007
|
+
}
|
|
1008
|
+
interface HeadersEntry {
|
|
1009
|
+
key?: string;
|
|
1010
|
+
value?: string;
|
|
1011
|
+
}
|
|
1012
|
+
interface RawHttpResponse {
|
|
1013
|
+
body?: Uint8Array;
|
|
1014
|
+
statusCode?: number | null;
|
|
1015
|
+
headers?: HeadersEntry[];
|
|
1016
|
+
}
|
|
862
1017
|
interface MessageEnvelope$1 {
|
|
863
1018
|
/** App instance ID. */
|
|
864
1019
|
instanceId?: string | null;
|
|
@@ -899,136 +1054,103 @@ declare enum WebhookIdentityType$1 {
|
|
|
899
1054
|
WIX_USER = "WIX_USER",
|
|
900
1055
|
APP = "APP"
|
|
901
1056
|
}
|
|
1057
|
+
interface TableWithReservationConflictsNonNullableFields {
|
|
1058
|
+
tableId: string;
|
|
1059
|
+
reservationIds: string[];
|
|
1060
|
+
}
|
|
1061
|
+
interface ReservationNonNullableFields {
|
|
1062
|
+
status: Status$1;
|
|
1063
|
+
source: Source;
|
|
1064
|
+
tablesWithReservationConflicts: TableWithReservationConflictsNonNullableFields[];
|
|
1065
|
+
paymentStatus: PaymentStatus;
|
|
1066
|
+
}
|
|
902
1067
|
interface CreateReservationResponseNonNullableFields {
|
|
903
|
-
reservation?:
|
|
904
|
-
status: Status$1;
|
|
905
|
-
source: Source;
|
|
906
|
-
paymentStatus: PaymentStatus;
|
|
907
|
-
};
|
|
1068
|
+
reservation?: ReservationNonNullableFields;
|
|
908
1069
|
}
|
|
909
1070
|
interface GetReservationResponseNonNullableFields {
|
|
910
|
-
reservation?:
|
|
911
|
-
status: Status$1;
|
|
912
|
-
source: Source;
|
|
913
|
-
paymentStatus: PaymentStatus;
|
|
914
|
-
};
|
|
1071
|
+
reservation?: ReservationNonNullableFields;
|
|
915
1072
|
}
|
|
916
1073
|
interface UpdateReservationResponseNonNullableFields {
|
|
917
|
-
reservation?:
|
|
918
|
-
status: Status$1;
|
|
919
|
-
source: Source;
|
|
920
|
-
paymentStatus: PaymentStatus;
|
|
921
|
-
};
|
|
1074
|
+
reservation?: ReservationNonNullableFields;
|
|
922
1075
|
}
|
|
923
1076
|
interface CreateHeldReservationResponseNonNullableFields {
|
|
924
|
-
reservation?:
|
|
925
|
-
status: Status$1;
|
|
926
|
-
source: Source;
|
|
927
|
-
paymentStatus: PaymentStatus;
|
|
928
|
-
};
|
|
1077
|
+
reservation?: ReservationNonNullableFields;
|
|
929
1078
|
}
|
|
930
1079
|
interface ReserveReservationResponseNonNullableFields {
|
|
931
|
-
reservation?:
|
|
932
|
-
status: Status$1;
|
|
933
|
-
source: Source;
|
|
934
|
-
paymentStatus: PaymentStatus;
|
|
935
|
-
};
|
|
1080
|
+
reservation?: ReservationNonNullableFields;
|
|
936
1081
|
}
|
|
937
1082
|
interface CancelReservationResponseNonNullableFields {
|
|
938
|
-
reservation?:
|
|
939
|
-
status: Status$1;
|
|
940
|
-
source: Source;
|
|
941
|
-
paymentStatus: PaymentStatus;
|
|
942
|
-
};
|
|
1083
|
+
reservation?: ReservationNonNullableFields;
|
|
943
1084
|
}
|
|
944
1085
|
interface ListReservationsResponseNonNullableFields {
|
|
945
|
-
reservations:
|
|
946
|
-
status: Status$1;
|
|
947
|
-
source: Source;
|
|
948
|
-
paymentStatus: PaymentStatus;
|
|
949
|
-
}[];
|
|
1086
|
+
reservations: ReservationNonNullableFields[];
|
|
950
1087
|
}
|
|
951
1088
|
interface QueryReservationsResponseNonNullableFields {
|
|
952
|
-
reservations:
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
1089
|
+
reservations: ReservationNonNullableFields[];
|
|
1090
|
+
}
|
|
1091
|
+
interface ValueAggregationResultNonNullableFields {
|
|
1092
|
+
value: string;
|
|
1093
|
+
count: number;
|
|
1094
|
+
}
|
|
1095
|
+
interface ValueResultsNonNullableFields {
|
|
1096
|
+
results: ValueAggregationResultNonNullableFields[];
|
|
1097
|
+
}
|
|
1098
|
+
interface RangeAggregationResultNonNullableFields {
|
|
1099
|
+
count: number;
|
|
1100
|
+
}
|
|
1101
|
+
interface RangeResultsNonNullableFields {
|
|
1102
|
+
results: RangeAggregationResultNonNullableFields[];
|
|
1103
|
+
}
|
|
1104
|
+
interface AggregationResultsScalarResultNonNullableFields {
|
|
1105
|
+
type: ScalarType;
|
|
1106
|
+
value: number;
|
|
1107
|
+
}
|
|
1108
|
+
interface NestedAggregationResultsNonNullableFields {
|
|
1109
|
+
values?: ValueResultsNonNullableFields;
|
|
1110
|
+
ranges?: RangeResultsNonNullableFields;
|
|
1111
|
+
scalar?: AggregationResultsScalarResultNonNullableFields;
|
|
1112
|
+
name: string;
|
|
1113
|
+
type: AggregationType;
|
|
1114
|
+
fieldPath: string;
|
|
1115
|
+
}
|
|
1116
|
+
interface NestedValueAggregationResultNonNullableFields {
|
|
1117
|
+
value: string;
|
|
1118
|
+
nestedResults?: NestedAggregationResultsNonNullableFields;
|
|
1119
|
+
}
|
|
1120
|
+
interface GroupByValueResultsNonNullableFields {
|
|
1121
|
+
results: NestedValueAggregationResultNonNullableFields[];
|
|
1122
|
+
}
|
|
1123
|
+
interface DateHistogramResultNonNullableFields {
|
|
1124
|
+
value: string;
|
|
1125
|
+
count: number;
|
|
1126
|
+
}
|
|
1127
|
+
interface DateHistogramResultsNonNullableFields {
|
|
1128
|
+
results: DateHistogramResultNonNullableFields[];
|
|
1129
|
+
}
|
|
1130
|
+
interface AggregationResultsNonNullableFields {
|
|
1131
|
+
values?: ValueResultsNonNullableFields;
|
|
1132
|
+
ranges?: RangeResultsNonNullableFields;
|
|
1133
|
+
scalar?: AggregationResultsScalarResultNonNullableFields;
|
|
1134
|
+
groupedByValue?: GroupByValueResultsNonNullableFields;
|
|
1135
|
+
dateHistogram?: DateHistogramResultsNonNullableFields;
|
|
1136
|
+
name: string;
|
|
1137
|
+
type: AggregationType;
|
|
1138
|
+
fieldPath: string;
|
|
1139
|
+
}
|
|
1140
|
+
interface AggregationDataNonNullableFields {
|
|
1141
|
+
results: AggregationResultsNonNullableFields[];
|
|
957
1142
|
}
|
|
958
1143
|
interface SearchReservationsResponseNonNullableFields {
|
|
959
|
-
reservations:
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
count: number;
|
|
970
|
-
}[];
|
|
971
|
-
};
|
|
972
|
-
ranges?: {
|
|
973
|
-
results: {
|
|
974
|
-
count: number;
|
|
975
|
-
}[];
|
|
976
|
-
};
|
|
977
|
-
scalar?: {
|
|
978
|
-
type: ScalarType;
|
|
979
|
-
value: number;
|
|
980
|
-
};
|
|
981
|
-
groupedByValue?: {
|
|
982
|
-
results: {
|
|
983
|
-
value: string;
|
|
984
|
-
nestedResults?: {
|
|
985
|
-
values?: {
|
|
986
|
-
results: {
|
|
987
|
-
value: string;
|
|
988
|
-
count: number;
|
|
989
|
-
}[];
|
|
990
|
-
};
|
|
991
|
-
ranges?: {
|
|
992
|
-
results: {
|
|
993
|
-
count: number;
|
|
994
|
-
}[];
|
|
995
|
-
};
|
|
996
|
-
scalar?: {
|
|
997
|
-
type: ScalarType;
|
|
998
|
-
value: number;
|
|
999
|
-
};
|
|
1000
|
-
name: string;
|
|
1001
|
-
type: AggregationType;
|
|
1002
|
-
fieldPath: string;
|
|
1003
|
-
};
|
|
1004
|
-
}[];
|
|
1005
|
-
};
|
|
1006
|
-
dateHistogram?: {
|
|
1007
|
-
results: {
|
|
1008
|
-
value: string;
|
|
1009
|
-
count: number;
|
|
1010
|
-
}[];
|
|
1011
|
-
};
|
|
1012
|
-
nested?: {
|
|
1013
|
-
results: {
|
|
1014
|
-
results?: {
|
|
1015
|
-
value?: {
|
|
1016
|
-
value: string;
|
|
1017
|
-
};
|
|
1018
|
-
scalar?: {
|
|
1019
|
-
value: number;
|
|
1020
|
-
};
|
|
1021
|
-
dateHistogram?: {
|
|
1022
|
-
value: string;
|
|
1023
|
-
};
|
|
1024
|
-
};
|
|
1025
|
-
}[];
|
|
1026
|
-
};
|
|
1027
|
-
name: string;
|
|
1028
|
-
type: AggregationType;
|
|
1029
|
-
fieldPath: string;
|
|
1030
|
-
}[];
|
|
1031
|
-
};
|
|
1144
|
+
reservations: ReservationNonNullableFields[];
|
|
1145
|
+
aggregationData?: AggregationDataNonNullableFields;
|
|
1146
|
+
}
|
|
1147
|
+
interface HeadersEntryNonNullableFields {
|
|
1148
|
+
key: string;
|
|
1149
|
+
value: string;
|
|
1150
|
+
}
|
|
1151
|
+
interface RawHttpResponseNonNullableFields {
|
|
1152
|
+
body: Uint8Array;
|
|
1153
|
+
headers: HeadersEntryNonNullableFields[];
|
|
1032
1154
|
}
|
|
1033
1155
|
interface BaseEventMetadata$1 {
|
|
1034
1156
|
/** App instance ID. */
|
|
@@ -1057,7 +1179,7 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
|
1057
1179
|
slug?: string;
|
|
1058
1180
|
/** ID of the entity associated with the event. */
|
|
1059
1181
|
entityId?: string;
|
|
1060
|
-
/** Event timestamp. */
|
|
1182
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
1061
1183
|
eventTime?: Date;
|
|
1062
1184
|
/**
|
|
1063
1185
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1297,38 +1419,52 @@ interface ReservationsQueryBuilder {
|
|
|
1297
1419
|
/** @documentationMaturity preview */
|
|
1298
1420
|
find: () => Promise<ReservationsQueryResult>;
|
|
1299
1421
|
}
|
|
1422
|
+
interface GetCalendarInviteFileWebhookOptions {
|
|
1423
|
+
body?: Uint8Array;
|
|
1424
|
+
pathParams?: PathParametersEntry[];
|
|
1425
|
+
queryParams?: QueryParametersEntry[];
|
|
1426
|
+
headers?: HeadersEntry[];
|
|
1427
|
+
method?: string;
|
|
1428
|
+
rawPath?: string;
|
|
1429
|
+
rawQuery?: string;
|
|
1430
|
+
}
|
|
1300
1431
|
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1432
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
1433
|
+
interface HttpClient {
|
|
1434
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1435
|
+
fetchWithAuth: typeof fetch;
|
|
1436
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1304
1437
|
}
|
|
1305
|
-
type RequestOptionsFactory
|
|
1306
|
-
type HttpResponse
|
|
1438
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
1439
|
+
type HttpResponse<T = any> = {
|
|
1307
1440
|
data: T;
|
|
1308
1441
|
status: number;
|
|
1309
1442
|
statusText: string;
|
|
1310
1443
|
headers: any;
|
|
1311
1444
|
request?: any;
|
|
1312
1445
|
};
|
|
1313
|
-
type RequestOptions
|
|
1446
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
1314
1447
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1315
1448
|
url: string;
|
|
1316
1449
|
data?: Data;
|
|
1317
1450
|
params?: URLSearchParams;
|
|
1318
|
-
} & APIMetadata
|
|
1319
|
-
type APIMetadata
|
|
1451
|
+
} & APIMetadata;
|
|
1452
|
+
type APIMetadata = {
|
|
1320
1453
|
methodFqn?: string;
|
|
1321
1454
|
entityFqdn?: string;
|
|
1322
1455
|
packageName?: string;
|
|
1323
1456
|
};
|
|
1324
|
-
type
|
|
1457
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
1458
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1325
1459
|
__type: 'event-definition';
|
|
1326
1460
|
type: Type;
|
|
1327
1461
|
isDomainEvent?: boolean;
|
|
1328
1462
|
transformations?: (envelope: unknown) => Payload;
|
|
1329
1463
|
__payload: Payload;
|
|
1330
1464
|
};
|
|
1331
|
-
declare function EventDefinition
|
|
1465
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
1466
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
1467
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
1332
1468
|
|
|
1333
1469
|
declare global {
|
|
1334
1470
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -1337,31 +1473,22 @@ declare global {
|
|
|
1337
1473
|
}
|
|
1338
1474
|
}
|
|
1339
1475
|
|
|
1340
|
-
declare
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
declare
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
declare
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
paymentStatus: PaymentStatus;
|
|
1357
|
-
}>;
|
|
1358
|
-
declare function createHeldReservation(httpClient: HttpClient$2): (reservationDetails: HeldReservationDetails) => Promise<CreateHeldReservationResponse & CreateHeldReservationResponseNonNullableFields>;
|
|
1359
|
-
declare function reserveReservation(httpClient: HttpClient$2): (reservationId: string, reservee: Reservee, revision: string | null) => Promise<ReserveReservationResponse & ReserveReservationResponseNonNullableFields>;
|
|
1360
|
-
declare function cancelReservation(httpClient: HttpClient$2): (reservationId: string, revision: string | null, options?: CancelReservationOptions) => Promise<CancelReservationResponse & CancelReservationResponseNonNullableFields>;
|
|
1361
|
-
declare function listReservations(httpClient: HttpClient$2): (options?: ListReservationsOptions) => Promise<ListReservationsResponse & ListReservationsResponseNonNullableFields>;
|
|
1362
|
-
declare function queryReservations(httpClient: HttpClient$2): () => ReservationsQueryBuilder;
|
|
1363
|
-
declare function searchReservations(httpClient: HttpClient$2): (search: CursorSearch) => Promise<SearchReservationsResponse & SearchReservationsResponseNonNullableFields>;
|
|
1364
|
-
declare const onReservationCreated: EventDefinition$1<ReservationCreatedEnvelope, "wix.table_reservations.v1.reservation_created">;
|
|
1476
|
+
declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
1477
|
+
|
|
1478
|
+
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1479
|
+
|
|
1480
|
+
declare const createReservation: ReturnType<typeof createRESTModule$2<typeof publicCreateReservation>>;
|
|
1481
|
+
declare const getReservation: ReturnType<typeof createRESTModule$2<typeof publicGetReservation>>;
|
|
1482
|
+
declare const updateReservation: ReturnType<typeof createRESTModule$2<typeof publicUpdateReservation>>;
|
|
1483
|
+
declare const createHeldReservation: ReturnType<typeof createRESTModule$2<typeof publicCreateHeldReservation>>;
|
|
1484
|
+
declare const reserveReservation: ReturnType<typeof createRESTModule$2<typeof publicReserveReservation>>;
|
|
1485
|
+
declare const cancelReservation: ReturnType<typeof createRESTModule$2<typeof publicCancelReservation>>;
|
|
1486
|
+
declare const deleteReservation: ReturnType<typeof createRESTModule$2<typeof publicDeleteReservation>>;
|
|
1487
|
+
declare const listReservations: ReturnType<typeof createRESTModule$2<typeof publicListReservations>>;
|
|
1488
|
+
declare const queryReservations: ReturnType<typeof createRESTModule$2<typeof publicQueryReservations>>;
|
|
1489
|
+
declare const searchReservations: ReturnType<typeof createRESTModule$2<typeof publicSearchReservations>>;
|
|
1490
|
+
declare const getCalendarInviteFileWebhook: ReturnType<typeof createRESTModule$2<typeof publicGetCalendarInviteFileWebhook>>;
|
|
1491
|
+
declare const onReservationCreated: ReturnType<typeof createEventModule$1<typeof publicOnReservationCreated>>;
|
|
1365
1492
|
|
|
1366
1493
|
type index_d$2_Aggregation = Aggregation;
|
|
1367
1494
|
type index_d$2_AggregationData = AggregationData;
|
|
@@ -1392,13 +1519,13 @@ type index_d$2_DateHistogramResults = DateHistogramResults;
|
|
|
1392
1519
|
type index_d$2_DeleteReservationRequest = DeleteReservationRequest;
|
|
1393
1520
|
type index_d$2_DeleteReservationResponse = DeleteReservationResponse;
|
|
1394
1521
|
type index_d$2_Details = Details;
|
|
1522
|
+
type index_d$2_GetCalendarInviteFileWebhookOptions = GetCalendarInviteFileWebhookOptions;
|
|
1395
1523
|
type index_d$2_GetReservationOptions = GetReservationOptions;
|
|
1396
1524
|
type index_d$2_GetReservationRequest = GetReservationRequest;
|
|
1397
1525
|
type index_d$2_GetReservationResponse = GetReservationResponse;
|
|
1398
1526
|
type index_d$2_GetReservationResponseNonNullableFields = GetReservationResponseNonNullableFields;
|
|
1399
|
-
type index_d$2_GroupByAggregation = GroupByAggregation;
|
|
1400
|
-
type index_d$2_GroupByAggregationKindOneOf = GroupByAggregationKindOneOf;
|
|
1401
1527
|
type index_d$2_GroupByValueResults = GroupByValueResults;
|
|
1528
|
+
type index_d$2_HeadersEntry = HeadersEntry;
|
|
1402
1529
|
type index_d$2_HeldReservationDetails = HeldReservationDetails;
|
|
1403
1530
|
type index_d$2_IncludeMissingValuesOptions = IncludeMissingValuesOptions;
|
|
1404
1531
|
type index_d$2_Interval = Interval;
|
|
@@ -1421,8 +1548,10 @@ type index_d$2_NestedResultValue = NestedResultValue;
|
|
|
1421
1548
|
type index_d$2_NestedResultValueResultOneOf = NestedResultValueResultOneOf;
|
|
1422
1549
|
type index_d$2_NestedResults = NestedResults;
|
|
1423
1550
|
type index_d$2_NestedValueAggregationResult = NestedValueAggregationResult;
|
|
1551
|
+
type index_d$2_PathParametersEntry = PathParametersEntry;
|
|
1424
1552
|
type index_d$2_PaymentStatus = PaymentStatus;
|
|
1425
1553
|
declare const index_d$2_PaymentStatus: typeof PaymentStatus;
|
|
1554
|
+
type index_d$2_QueryParametersEntry = QueryParametersEntry;
|
|
1426
1555
|
type index_d$2_QueryReservationsRequest = QueryReservationsRequest;
|
|
1427
1556
|
type index_d$2_QueryReservationsResponse = QueryReservationsResponse;
|
|
1428
1557
|
type index_d$2_QueryReservationsResponseNonNullableFields = QueryReservationsResponseNonNullableFields;
|
|
@@ -1431,6 +1560,9 @@ type index_d$2_RangeAggregationResult = RangeAggregationResult;
|
|
|
1431
1560
|
type index_d$2_RangeBucket = RangeBucket;
|
|
1432
1561
|
type index_d$2_RangeResult = RangeResult;
|
|
1433
1562
|
type index_d$2_RangeResults = RangeResults;
|
|
1563
|
+
type index_d$2_RawHttpRequest = RawHttpRequest;
|
|
1564
|
+
type index_d$2_RawHttpResponse = RawHttpResponse;
|
|
1565
|
+
type index_d$2_RawHttpResponseNonNullableFields = RawHttpResponseNonNullableFields;
|
|
1434
1566
|
type index_d$2_RemoveReservationMigrationNotesRequest = RemoveReservationMigrationNotesRequest;
|
|
1435
1567
|
type index_d$2_RemoveReservationMigrationNotesResponse = RemoveReservationMigrationNotesResponse;
|
|
1436
1568
|
type index_d$2_Reservation = Reservation;
|
|
@@ -1442,6 +1574,7 @@ type index_d$2_ReservationDelayedDomainEvent = ReservationDelayedDomainEvent;
|
|
|
1442
1574
|
type index_d$2_ReservationDelayedDomainEventBodyTypeOneOf = ReservationDelayedDomainEventBodyTypeOneOf;
|
|
1443
1575
|
type index_d$2_ReservationDelayedDomainEventReservationCanceled = ReservationDelayedDomainEventReservationCanceled;
|
|
1444
1576
|
type index_d$2_ReservationDetailsConflicts = ReservationDetailsConflicts;
|
|
1577
|
+
type index_d$2_ReservationNonNullableFields = ReservationNonNullableFields;
|
|
1445
1578
|
type index_d$2_ReservationUpdated = ReservationUpdated;
|
|
1446
1579
|
type index_d$2_ReservationsQueryBuilder = ReservationsQueryBuilder;
|
|
1447
1580
|
type index_d$2_ReservationsQueryResult = ReservationsQueryResult;
|
|
@@ -1479,6 +1612,8 @@ type index_d$2_ValueResults = ValueResults;
|
|
|
1479
1612
|
declare const index_d$2_cancelReservation: typeof cancelReservation;
|
|
1480
1613
|
declare const index_d$2_createHeldReservation: typeof createHeldReservation;
|
|
1481
1614
|
declare const index_d$2_createReservation: typeof createReservation;
|
|
1615
|
+
declare const index_d$2_deleteReservation: typeof deleteReservation;
|
|
1616
|
+
declare const index_d$2_getCalendarInviteFileWebhook: typeof getCalendarInviteFileWebhook;
|
|
1482
1617
|
declare const index_d$2_getReservation: typeof getReservation;
|
|
1483
1618
|
declare const index_d$2_listReservations: typeof listReservations;
|
|
1484
1619
|
declare const index_d$2_onReservationCreated: typeof onReservationCreated;
|
|
@@ -1487,7 +1622,7 @@ declare const index_d$2_reserveReservation: typeof reserveReservation;
|
|
|
1487
1622
|
declare const index_d$2_searchReservations: typeof searchReservations;
|
|
1488
1623
|
declare const index_d$2_updateReservation: typeof updateReservation;
|
|
1489
1624
|
declare namespace index_d$2 {
|
|
1490
|
-
export { type ActionEvent$1 as ActionEvent, type index_d$2_Aggregation as Aggregation, type index_d$2_AggregationData as AggregationData, type index_d$2_AggregationKindOneOf as AggregationKindOneOf, type index_d$2_AggregationResults as AggregationResults, type index_d$2_AggregationResultsResultOneOf as AggregationResultsResultOneOf, type index_d$2_AggregationResultsScalarResult as AggregationResultsScalarResult, index_d$2_AggregationType as AggregationType, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_CancelReservationOptions as CancelReservationOptions, type index_d$2_CancelReservationRequest as CancelReservationRequest, type index_d$2_CancelReservationResponse as CancelReservationResponse, type index_d$2_CancelReservationResponseNonNullableFields as CancelReservationResponseNonNullableFields, type index_d$2_CreateHeldReservationRequest as CreateHeldReservationRequest, type index_d$2_CreateHeldReservationResponse as CreateHeldReservationResponse, type index_d$2_CreateHeldReservationResponseNonNullableFields as CreateHeldReservationResponseNonNullableFields, type index_d$2_CreateReservationOptions as CreateReservationOptions, type index_d$2_CreateReservationRequest as CreateReservationRequest, type index_d$2_CreateReservationResponse as CreateReservationResponse, type index_d$2_CreateReservationResponseNonNullableFields as CreateReservationResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type index_d$2_CursorQuery as CursorQuery, type index_d$2_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d$2_CursorSearch as CursorSearch, type index_d$2_CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$2_DateHistogramAggregation as DateHistogramAggregation, type index_d$2_DateHistogramResult as DateHistogramResult, type index_d$2_DateHistogramResults as DateHistogramResults, type index_d$2_DeleteReservationRequest as DeleteReservationRequest, type index_d$2_DeleteReservationResponse as DeleteReservationResponse, type index_d$2_Details as Details, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$
|
|
1625
|
+
export { type ActionEvent$1 as ActionEvent, type index_d$2_Aggregation as Aggregation, type index_d$2_AggregationData as AggregationData, type index_d$2_AggregationKindOneOf as AggregationKindOneOf, type index_d$2_AggregationResults as AggregationResults, type index_d$2_AggregationResultsResultOneOf as AggregationResultsResultOneOf, type index_d$2_AggregationResultsScalarResult as AggregationResultsScalarResult, index_d$2_AggregationType as AggregationType, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_CancelReservationOptions as CancelReservationOptions, type index_d$2_CancelReservationRequest as CancelReservationRequest, type index_d$2_CancelReservationResponse as CancelReservationResponse, type index_d$2_CancelReservationResponseNonNullableFields as CancelReservationResponseNonNullableFields, type index_d$2_CreateHeldReservationRequest as CreateHeldReservationRequest, type index_d$2_CreateHeldReservationResponse as CreateHeldReservationResponse, type index_d$2_CreateHeldReservationResponseNonNullableFields as CreateHeldReservationResponseNonNullableFields, type index_d$2_CreateReservationOptions as CreateReservationOptions, type index_d$2_CreateReservationRequest as CreateReservationRequest, type index_d$2_CreateReservationResponse as CreateReservationResponse, type index_d$2_CreateReservationResponseNonNullableFields as CreateReservationResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type index_d$2_CursorQuery as CursorQuery, type index_d$2_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d$2_CursorSearch as CursorSearch, type index_d$2_CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$2_DateHistogramAggregation as DateHistogramAggregation, type index_d$2_DateHistogramResult as DateHistogramResult, type index_d$2_DateHistogramResults as DateHistogramResults, type index_d$2_DeleteReservationRequest as DeleteReservationRequest, type index_d$2_DeleteReservationResponse as DeleteReservationResponse, type index_d$2_Details as Details, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$2_GetCalendarInviteFileWebhookOptions as GetCalendarInviteFileWebhookOptions, type index_d$2_GetReservationOptions as GetReservationOptions, type index_d$2_GetReservationRequest as GetReservationRequest, type index_d$2_GetReservationResponse as GetReservationResponse, type index_d$2_GetReservationResponseNonNullableFields as GetReservationResponseNonNullableFields, type index_d$2_GroupByValueResults as GroupByValueResults, type index_d$2_HeadersEntry as HeadersEntry, type index_d$2_HeldReservationDetails as HeldReservationDetails, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$2_IncludeMissingValuesOptions as IncludeMissingValuesOptions, index_d$2_Interval as Interval, type index_d$2_ListReservationsOptions as ListReservationsOptions, type index_d$2_ListReservationsRequest as ListReservationsRequest, type index_d$2_ListReservationsResponse as ListReservationsResponse, type index_d$2_ListReservationsResponseNonNullableFields as ListReservationsResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type index_d$2_MigrationNote as MigrationNote, index_d$2_MissingValues as MissingValues, Mode$1 as Mode, type index_d$2_NestedAggregation as NestedAggregation, type index_d$2_NestedAggregationItem as NestedAggregationItem, type index_d$2_NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOf, type index_d$2_NestedAggregationResults as NestedAggregationResults, type index_d$2_NestedAggregationResultsResultOneOf as NestedAggregationResultsResultOneOf, index_d$2_NestedAggregationType as NestedAggregationType, type index_d$2_NestedResultValue as NestedResultValue, type index_d$2_NestedResultValueResultOneOf as NestedResultValueResultOneOf, type index_d$2_NestedResults as NestedResults, type index_d$2_NestedValueAggregationResult as NestedValueAggregationResult, type index_d$2_PathParametersEntry as PathParametersEntry, index_d$2_PaymentStatus as PaymentStatus, type index_d$2_QueryParametersEntry as QueryParametersEntry, type index_d$2_QueryReservationsRequest as QueryReservationsRequest, type index_d$2_QueryReservationsResponse as QueryReservationsResponse, type index_d$2_QueryReservationsResponseNonNullableFields as QueryReservationsResponseNonNullableFields, type index_d$2_RangeAggregation as RangeAggregation, type index_d$2_RangeAggregationResult as RangeAggregationResult, type index_d$2_RangeBucket as RangeBucket, type index_d$2_RangeResult as RangeResult, type index_d$2_RangeResults as RangeResults, type index_d$2_RawHttpRequest as RawHttpRequest, type index_d$2_RawHttpResponse as RawHttpResponse, type index_d$2_RawHttpResponseNonNullableFields as RawHttpResponseNonNullableFields, type index_d$2_RemoveReservationMigrationNotesRequest as RemoveReservationMigrationNotesRequest, type index_d$2_RemoveReservationMigrationNotesResponse as RemoveReservationMigrationNotesResponse, type index_d$2_Reservation as Reservation, type index_d$2_ReservationCanceled as ReservationCanceled, type index_d$2_ReservationCreated as ReservationCreated, type index_d$2_ReservationCreatedEnvelope as ReservationCreatedEnvelope, type index_d$2_ReservationDataUpdated as ReservationDataUpdated, type index_d$2_ReservationDelayedDomainEvent as ReservationDelayedDomainEvent, type index_d$2_ReservationDelayedDomainEventBodyTypeOneOf as ReservationDelayedDomainEventBodyTypeOneOf, type index_d$2_ReservationDelayedDomainEventReservationCanceled as ReservationDelayedDomainEventReservationCanceled, type index_d$2_ReservationDetailsConflicts as ReservationDetailsConflicts, type ReservationLocationConflict$1 as ReservationLocationConflict, type index_d$2_ReservationNonNullableFields as ReservationNonNullableFields, type index_d$2_ReservationUpdated as ReservationUpdated, type index_d$2_ReservationsQueryBuilder as ReservationsQueryBuilder, type index_d$2_ReservationsQueryResult as ReservationsQueryResult, type index_d$2_ReserveReservationRequest as ReserveReservationRequest, type index_d$2_ReserveReservationResponse as ReserveReservationResponse, type index_d$2_ReserveReservationResponseNonNullableFields as ReserveReservationResponseNonNullableFields, type index_d$2_ReservedBy as ReservedBy, type index_d$2_Reservee as Reservee, type RestoreInfo$1 as RestoreInfo, type index_d$2_Results as Results, type index_d$2_ScalarAggregation as ScalarAggregation, type index_d$2_ScalarResult as ScalarResult, index_d$2_ScalarType as ScalarType, type index_d$2_SearchDetails as SearchDetails, type index_d$2_SearchReservationsRequest as SearchReservationsRequest, type index_d$2_SearchReservationsResponse as SearchReservationsResponse, type index_d$2_SearchReservationsResponseNonNullableFields as SearchReservationsResponseNonNullableFields, Set$1 as Set, index_d$2_SortDirection as SortDirection, SortOrder$1 as SortOrder, index_d$2_SortType as SortType, type Sorting$1 as Sorting, index_d$2_Source as Source, Status$1 as Status, type TableCombinationConflict$1 as TableCombinationConflict, TableCombinationConflictType$1 as TableCombinationConflictType, type index_d$2_TableWithReservationConflicts as TableWithReservationConflicts, Type$1 as Type, type index_d$2_UpdateReservation as UpdateReservation, type index_d$2_UpdateReservationOptions as UpdateReservationOptions, type index_d$2_UpdateReservationRequest as UpdateReservationRequest, type index_d$2_UpdateReservationResponse as UpdateReservationResponse, type index_d$2_UpdateReservationResponseNonNullableFields as UpdateReservationResponseNonNullableFields, type index_d$2_ValueAggregation as ValueAggregation, type index_d$2_ValueAggregationOptionsOneOf as ValueAggregationOptionsOneOf, type index_d$2_ValueAggregationResult as ValueAggregationResult, type index_d$2_ValueResult as ValueResult, type index_d$2_ValueResults as ValueResults, WebhookIdentityType$1 as WebhookIdentityType, index_d$2_cancelReservation as cancelReservation, index_d$2_createHeldReservation as createHeldReservation, index_d$2_createReservation as createReservation, index_d$2_deleteReservation as deleteReservation, index_d$2_getCalendarInviteFileWebhook as getCalendarInviteFileWebhook, index_d$2_getReservation as getReservation, index_d$2_listReservations as listReservations, index_d$2_onReservationCreated as onReservationCreated, index_d$2_queryReservations as queryReservations, index_d$2_reserveReservation as reserveReservation, index_d$2_searchReservations as searchReservations, index_d$2_updateReservation as updateReservation };
|
|
1491
1626
|
}
|
|
1492
1627
|
|
|
1493
1628
|
interface ReservationLocation {
|
|
@@ -2293,7 +2428,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
2293
2428
|
slug?: string;
|
|
2294
2429
|
/** ID of the entity associated with the event. */
|
|
2295
2430
|
entityId?: string;
|
|
2296
|
-
/** Event timestamp. */
|
|
2431
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2297
2432
|
eventTime?: Date;
|
|
2298
2433
|
/**
|
|
2299
2434
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -2521,7 +2656,9 @@ declare enum Namespace {
|
|
|
2521
2656
|
* There's a blank site behind the scene but it's blank).
|
|
2522
2657
|
* The Mobile company will be the owner of this namespace.
|
|
2523
2658
|
*/
|
|
2524
|
-
BRANDED_FIRST = "BRANDED_FIRST"
|
|
2659
|
+
BRANDED_FIRST = "BRANDED_FIRST",
|
|
2660
|
+
/** Nownia.com Siteless account management for Ai Scheduling Assistant. */
|
|
2661
|
+
NOWNIA = "NOWNIA"
|
|
2525
2662
|
}
|
|
2526
2663
|
/** Site transferred to another user. */
|
|
2527
2664
|
interface SiteTransferred {
|
|
@@ -3310,349 +3447,146 @@ declare enum WebhookIdentityType {
|
|
|
3310
3447
|
WIX_USER = "WIX_USER",
|
|
3311
3448
|
APP = "APP"
|
|
3312
3449
|
}
|
|
3450
|
+
interface StreetAddressNonNullableFields {
|
|
3451
|
+
number: string;
|
|
3452
|
+
name: string;
|
|
3453
|
+
apt: string;
|
|
3454
|
+
}
|
|
3455
|
+
interface LocationAddressNonNullableFields {
|
|
3456
|
+
streetAddress?: StreetAddressNonNullableFields;
|
|
3457
|
+
}
|
|
3458
|
+
interface CommonTimePeriodNonNullableFields {
|
|
3459
|
+
openDay: CommonDayOfWeek;
|
|
3460
|
+
openTime: string;
|
|
3461
|
+
closeDay: CommonDayOfWeek;
|
|
3462
|
+
closeTime: string;
|
|
3463
|
+
}
|
|
3464
|
+
interface CommonSpecialHourPeriodNonNullableFields {
|
|
3465
|
+
startDate: string;
|
|
3466
|
+
endDate: string;
|
|
3467
|
+
isClosed: boolean;
|
|
3468
|
+
comment: string;
|
|
3469
|
+
}
|
|
3470
|
+
interface CommonBusinessScheduleNonNullableFields {
|
|
3471
|
+
periods: CommonTimePeriodNonNullableFields[];
|
|
3472
|
+
specialHourPeriod: CommonSpecialHourPeriodNonNullableFields[];
|
|
3473
|
+
}
|
|
3474
|
+
interface LocationNonNullableFields {
|
|
3475
|
+
address?: LocationAddressNonNullableFields;
|
|
3476
|
+
businessSchedule?: CommonBusinessScheduleNonNullableFields;
|
|
3477
|
+
}
|
|
3478
|
+
interface SeatPacingNonNullableFields {
|
|
3479
|
+
number: number;
|
|
3480
|
+
enabled: boolean;
|
|
3481
|
+
}
|
|
3482
|
+
interface PartyPacingNonNullableFields {
|
|
3483
|
+
number: number;
|
|
3484
|
+
enabled: boolean;
|
|
3485
|
+
}
|
|
3486
|
+
interface PartiesSizeNonNullableFields {
|
|
3487
|
+
min: number;
|
|
3488
|
+
max: number;
|
|
3489
|
+
}
|
|
3490
|
+
interface PartySizeNonNullableFields {
|
|
3491
|
+
min: number;
|
|
3492
|
+
max: number;
|
|
3493
|
+
}
|
|
3494
|
+
interface NoticePeriodNonNullableFields {
|
|
3495
|
+
number: number;
|
|
3496
|
+
unit: Unit;
|
|
3497
|
+
}
|
|
3498
|
+
interface TurnoverTimeRuleNonNullableFields {
|
|
3499
|
+
seatsMin: number;
|
|
3500
|
+
seatsMax: number;
|
|
3501
|
+
minutes: number;
|
|
3502
|
+
}
|
|
3503
|
+
interface TurnoverRuleNonNullableFields {
|
|
3504
|
+
minSeats: number;
|
|
3505
|
+
maxSeats: number;
|
|
3506
|
+
minutes: number;
|
|
3507
|
+
}
|
|
3508
|
+
interface ManualApprovalNonNullableFields {
|
|
3509
|
+
partySizeThreshold: number;
|
|
3510
|
+
customApprovalsProviderId: string;
|
|
3511
|
+
enabled: boolean;
|
|
3512
|
+
}
|
|
3513
|
+
interface OnlineReservationsNonNullableFields {
|
|
3514
|
+
seatPacing?: SeatPacingNonNullableFields;
|
|
3515
|
+
partyPacing?: PartyPacingNonNullableFields;
|
|
3516
|
+
partiesSize?: PartiesSizeNonNullableFields;
|
|
3517
|
+
partySize?: PartySizeNonNullableFields;
|
|
3518
|
+
minimumReservationNotice?: NoticePeriodNonNullableFields;
|
|
3519
|
+
turnoverTimeRules: TurnoverTimeRuleNonNullableFields[];
|
|
3520
|
+
turnoverRules: TurnoverRuleNonNullableFields[];
|
|
3521
|
+
businessSchedule?: CommonBusinessScheduleNonNullableFields;
|
|
3522
|
+
manualApproval?: ManualApprovalNonNullableFields;
|
|
3523
|
+
}
|
|
3524
|
+
interface TermsAndConditionsNonNullableFields {
|
|
3525
|
+
url: string;
|
|
3526
|
+
enabled: boolean;
|
|
3527
|
+
}
|
|
3528
|
+
interface PrivacyPolicyNonNullableFields {
|
|
3529
|
+
url: string;
|
|
3530
|
+
enabled: boolean;
|
|
3531
|
+
}
|
|
3532
|
+
interface CustomFieldDefinitionNonNullableFields {
|
|
3533
|
+
name: string;
|
|
3534
|
+
required: boolean;
|
|
3535
|
+
}
|
|
3536
|
+
interface EmailMarketingCheckboxNonNullableFields {
|
|
3537
|
+
enabled: boolean;
|
|
3538
|
+
checkedByDefault: boolean;
|
|
3539
|
+
}
|
|
3540
|
+
interface ReservationFormNonNullableFields {
|
|
3541
|
+
termsAndConditions?: TermsAndConditionsNonNullableFields;
|
|
3542
|
+
privacyPolicy?: PrivacyPolicyNonNullableFields;
|
|
3543
|
+
customFieldDefinitions: CustomFieldDefinitionNonNullableFields[];
|
|
3544
|
+
emailMarketingCheckbox?: EmailMarketingCheckboxNonNullableFields;
|
|
3545
|
+
}
|
|
3546
|
+
interface MyReservationsFieldNonNullableFields {
|
|
3547
|
+
fieldType: FieldType;
|
|
3548
|
+
shown: boolean;
|
|
3549
|
+
}
|
|
3550
|
+
interface TableDefinitionNonNullableFields {
|
|
3551
|
+
name: string;
|
|
3552
|
+
seatsMin: number;
|
|
3553
|
+
seatsMax: number;
|
|
3554
|
+
}
|
|
3555
|
+
interface TableCombinationNonNullableFields$1 {
|
|
3556
|
+
seatsMin: number;
|
|
3557
|
+
seatsMax: number;
|
|
3558
|
+
}
|
|
3559
|
+
interface TableManagementNonNullableFields {
|
|
3560
|
+
tableDefinitions: TableDefinitionNonNullableFields[];
|
|
3561
|
+
deletedTableDefinitions: TableDefinitionNonNullableFields[];
|
|
3562
|
+
tableCombinations: TableCombinationNonNullableFields$1[];
|
|
3563
|
+
}
|
|
3564
|
+
interface ReservationPaymentNonNullableFields {
|
|
3565
|
+
value: string;
|
|
3566
|
+
minPartySize: number;
|
|
3567
|
+
}
|
|
3568
|
+
interface ConfigurationNonNullableFields {
|
|
3569
|
+
onlineReservations?: OnlineReservationsNonNullableFields;
|
|
3570
|
+
reservationForm?: ReservationFormNonNullableFields;
|
|
3571
|
+
myReservationsFields: MyReservationsFieldNonNullableFields[];
|
|
3572
|
+
tableManagement?: TableManagementNonNullableFields;
|
|
3573
|
+
reservationPayment?: ReservationPaymentNonNullableFields;
|
|
3574
|
+
}
|
|
3575
|
+
interface ReservationLocationNonNullableFields {
|
|
3576
|
+
location?: LocationNonNullableFields;
|
|
3577
|
+
configuration?: ConfigurationNonNullableFields;
|
|
3578
|
+
}
|
|
3313
3579
|
interface GetReservationLocationResponseNonNullableFields {
|
|
3314
|
-
reservationLocation?:
|
|
3315
|
-
configuration?: {
|
|
3316
|
-
onlineReservations?: {
|
|
3317
|
-
seatPacing?: {
|
|
3318
|
-
number: number;
|
|
3319
|
-
enabled: boolean;
|
|
3320
|
-
};
|
|
3321
|
-
partyPacing?: {
|
|
3322
|
-
number: number;
|
|
3323
|
-
enabled: boolean;
|
|
3324
|
-
};
|
|
3325
|
-
partySize?: {
|
|
3326
|
-
min: number;
|
|
3327
|
-
max: number;
|
|
3328
|
-
};
|
|
3329
|
-
minimumReservationNotice?: {
|
|
3330
|
-
number: number;
|
|
3331
|
-
unit: Unit;
|
|
3332
|
-
};
|
|
3333
|
-
turnoverTimeRules: {
|
|
3334
|
-
seatsMin: number;
|
|
3335
|
-
seatsMax: number;
|
|
3336
|
-
minutes: number;
|
|
3337
|
-
}[];
|
|
3338
|
-
businessSchedule?: {
|
|
3339
|
-
periods: {
|
|
3340
|
-
openDay: CommonDayOfWeek;
|
|
3341
|
-
openTime: string;
|
|
3342
|
-
closeDay: CommonDayOfWeek;
|
|
3343
|
-
closeTime: string;
|
|
3344
|
-
}[];
|
|
3345
|
-
specialHourPeriod: {
|
|
3346
|
-
startDate: string;
|
|
3347
|
-
endDate: string;
|
|
3348
|
-
isClosed: boolean;
|
|
3349
|
-
comment: string;
|
|
3350
|
-
}[];
|
|
3351
|
-
};
|
|
3352
|
-
manualApproval?: {
|
|
3353
|
-
partySizeThreshold: number;
|
|
3354
|
-
customApprovalsProviderId: string;
|
|
3355
|
-
enabled: boolean;
|
|
3356
|
-
};
|
|
3357
|
-
};
|
|
3358
|
-
reservationForm?: {
|
|
3359
|
-
termsAndConditions?: {
|
|
3360
|
-
url: string;
|
|
3361
|
-
enabled: boolean;
|
|
3362
|
-
};
|
|
3363
|
-
privacyPolicy?: {
|
|
3364
|
-
url: string;
|
|
3365
|
-
enabled: boolean;
|
|
3366
|
-
};
|
|
3367
|
-
customFieldDefinitions: {
|
|
3368
|
-
name: string;
|
|
3369
|
-
required: boolean;
|
|
3370
|
-
}[];
|
|
3371
|
-
emailMarketingCheckbox?: {
|
|
3372
|
-
enabled: boolean;
|
|
3373
|
-
checkedByDefault: boolean;
|
|
3374
|
-
};
|
|
3375
|
-
};
|
|
3376
|
-
myReservationsFields: {
|
|
3377
|
-
fieldType: FieldType;
|
|
3378
|
-
shown: boolean;
|
|
3379
|
-
}[];
|
|
3380
|
-
tableManagement?: {
|
|
3381
|
-
tableDefinitions: {
|
|
3382
|
-
name: string;
|
|
3383
|
-
seatsMin: number;
|
|
3384
|
-
seatsMax: number;
|
|
3385
|
-
}[];
|
|
3386
|
-
deletedTableDefinitions: {
|
|
3387
|
-
name: string;
|
|
3388
|
-
seatsMin: number;
|
|
3389
|
-
seatsMax: number;
|
|
3390
|
-
}[];
|
|
3391
|
-
tableCombinations: {
|
|
3392
|
-
seatsMin: number;
|
|
3393
|
-
seatsMax: number;
|
|
3394
|
-
}[];
|
|
3395
|
-
};
|
|
3396
|
-
};
|
|
3397
|
-
};
|
|
3580
|
+
reservationLocation?: ReservationLocationNonNullableFields;
|
|
3398
3581
|
}
|
|
3399
3582
|
interface UpdateReservationLocationResponseNonNullableFields {
|
|
3400
|
-
reservationLocation?:
|
|
3401
|
-
configuration?: {
|
|
3402
|
-
onlineReservations?: {
|
|
3403
|
-
seatPacing?: {
|
|
3404
|
-
number: number;
|
|
3405
|
-
enabled: boolean;
|
|
3406
|
-
};
|
|
3407
|
-
partyPacing?: {
|
|
3408
|
-
number: number;
|
|
3409
|
-
enabled: boolean;
|
|
3410
|
-
};
|
|
3411
|
-
partySize?: {
|
|
3412
|
-
min: number;
|
|
3413
|
-
max: number;
|
|
3414
|
-
};
|
|
3415
|
-
minimumReservationNotice?: {
|
|
3416
|
-
number: number;
|
|
3417
|
-
unit: Unit;
|
|
3418
|
-
};
|
|
3419
|
-
turnoverTimeRules: {
|
|
3420
|
-
seatsMin: number;
|
|
3421
|
-
seatsMax: number;
|
|
3422
|
-
minutes: number;
|
|
3423
|
-
}[];
|
|
3424
|
-
businessSchedule?: {
|
|
3425
|
-
periods: {
|
|
3426
|
-
openDay: CommonDayOfWeek;
|
|
3427
|
-
openTime: string;
|
|
3428
|
-
closeDay: CommonDayOfWeek;
|
|
3429
|
-
closeTime: string;
|
|
3430
|
-
}[];
|
|
3431
|
-
specialHourPeriod: {
|
|
3432
|
-
startDate: string;
|
|
3433
|
-
endDate: string;
|
|
3434
|
-
isClosed: boolean;
|
|
3435
|
-
comment: string;
|
|
3436
|
-
}[];
|
|
3437
|
-
};
|
|
3438
|
-
manualApproval?: {
|
|
3439
|
-
partySizeThreshold: number;
|
|
3440
|
-
customApprovalsProviderId: string;
|
|
3441
|
-
enabled: boolean;
|
|
3442
|
-
};
|
|
3443
|
-
};
|
|
3444
|
-
reservationForm?: {
|
|
3445
|
-
termsAndConditions?: {
|
|
3446
|
-
url: string;
|
|
3447
|
-
enabled: boolean;
|
|
3448
|
-
};
|
|
3449
|
-
privacyPolicy?: {
|
|
3450
|
-
url: string;
|
|
3451
|
-
enabled: boolean;
|
|
3452
|
-
};
|
|
3453
|
-
customFieldDefinitions: {
|
|
3454
|
-
name: string;
|
|
3455
|
-
required: boolean;
|
|
3456
|
-
}[];
|
|
3457
|
-
emailMarketingCheckbox?: {
|
|
3458
|
-
enabled: boolean;
|
|
3459
|
-
checkedByDefault: boolean;
|
|
3460
|
-
};
|
|
3461
|
-
};
|
|
3462
|
-
myReservationsFields: {
|
|
3463
|
-
fieldType: FieldType;
|
|
3464
|
-
shown: boolean;
|
|
3465
|
-
}[];
|
|
3466
|
-
tableManagement?: {
|
|
3467
|
-
tableDefinitions: {
|
|
3468
|
-
name: string;
|
|
3469
|
-
seatsMin: number;
|
|
3470
|
-
seatsMax: number;
|
|
3471
|
-
}[];
|
|
3472
|
-
deletedTableDefinitions: {
|
|
3473
|
-
name: string;
|
|
3474
|
-
seatsMin: number;
|
|
3475
|
-
seatsMax: number;
|
|
3476
|
-
}[];
|
|
3477
|
-
tableCombinations: {
|
|
3478
|
-
seatsMin: number;
|
|
3479
|
-
seatsMax: number;
|
|
3480
|
-
}[];
|
|
3481
|
-
};
|
|
3482
|
-
};
|
|
3483
|
-
};
|
|
3583
|
+
reservationLocation?: ReservationLocationNonNullableFields;
|
|
3484
3584
|
}
|
|
3485
3585
|
interface QueryReservationLocationsResponseNonNullableFields {
|
|
3486
|
-
reservationLocations:
|
|
3487
|
-
configuration?: {
|
|
3488
|
-
onlineReservations?: {
|
|
3489
|
-
seatPacing?: {
|
|
3490
|
-
number: number;
|
|
3491
|
-
enabled: boolean;
|
|
3492
|
-
};
|
|
3493
|
-
partyPacing?: {
|
|
3494
|
-
number: number;
|
|
3495
|
-
enabled: boolean;
|
|
3496
|
-
};
|
|
3497
|
-
partySize?: {
|
|
3498
|
-
min: number;
|
|
3499
|
-
max: number;
|
|
3500
|
-
};
|
|
3501
|
-
minimumReservationNotice?: {
|
|
3502
|
-
number: number;
|
|
3503
|
-
unit: Unit;
|
|
3504
|
-
};
|
|
3505
|
-
turnoverTimeRules: {
|
|
3506
|
-
seatsMin: number;
|
|
3507
|
-
seatsMax: number;
|
|
3508
|
-
minutes: number;
|
|
3509
|
-
}[];
|
|
3510
|
-
businessSchedule?: {
|
|
3511
|
-
periods: {
|
|
3512
|
-
openDay: CommonDayOfWeek;
|
|
3513
|
-
openTime: string;
|
|
3514
|
-
closeDay: CommonDayOfWeek;
|
|
3515
|
-
closeTime: string;
|
|
3516
|
-
}[];
|
|
3517
|
-
specialHourPeriod: {
|
|
3518
|
-
startDate: string;
|
|
3519
|
-
endDate: string;
|
|
3520
|
-
isClosed: boolean;
|
|
3521
|
-
comment: string;
|
|
3522
|
-
}[];
|
|
3523
|
-
};
|
|
3524
|
-
manualApproval?: {
|
|
3525
|
-
partySizeThreshold: number;
|
|
3526
|
-
customApprovalsProviderId: string;
|
|
3527
|
-
enabled: boolean;
|
|
3528
|
-
};
|
|
3529
|
-
};
|
|
3530
|
-
reservationForm?: {
|
|
3531
|
-
termsAndConditions?: {
|
|
3532
|
-
url: string;
|
|
3533
|
-
enabled: boolean;
|
|
3534
|
-
};
|
|
3535
|
-
privacyPolicy?: {
|
|
3536
|
-
url: string;
|
|
3537
|
-
enabled: boolean;
|
|
3538
|
-
};
|
|
3539
|
-
customFieldDefinitions: {
|
|
3540
|
-
name: string;
|
|
3541
|
-
required: boolean;
|
|
3542
|
-
}[];
|
|
3543
|
-
emailMarketingCheckbox?: {
|
|
3544
|
-
enabled: boolean;
|
|
3545
|
-
checkedByDefault: boolean;
|
|
3546
|
-
};
|
|
3547
|
-
};
|
|
3548
|
-
myReservationsFields: {
|
|
3549
|
-
fieldType: FieldType;
|
|
3550
|
-
shown: boolean;
|
|
3551
|
-
}[];
|
|
3552
|
-
tableManagement?: {
|
|
3553
|
-
tableDefinitions: {
|
|
3554
|
-
name: string;
|
|
3555
|
-
seatsMin: number;
|
|
3556
|
-
seatsMax: number;
|
|
3557
|
-
}[];
|
|
3558
|
-
deletedTableDefinitions: {
|
|
3559
|
-
name: string;
|
|
3560
|
-
seatsMin: number;
|
|
3561
|
-
seatsMax: number;
|
|
3562
|
-
}[];
|
|
3563
|
-
tableCombinations: {
|
|
3564
|
-
seatsMin: number;
|
|
3565
|
-
seatsMax: number;
|
|
3566
|
-
}[];
|
|
3567
|
-
};
|
|
3568
|
-
};
|
|
3569
|
-
}[];
|
|
3586
|
+
reservationLocations: ReservationLocationNonNullableFields[];
|
|
3570
3587
|
}
|
|
3571
3588
|
interface ListReservationLocationsResponseNonNullableFields {
|
|
3572
|
-
reservationLocations:
|
|
3573
|
-
configuration?: {
|
|
3574
|
-
onlineReservations?: {
|
|
3575
|
-
seatPacing?: {
|
|
3576
|
-
number: number;
|
|
3577
|
-
enabled: boolean;
|
|
3578
|
-
};
|
|
3579
|
-
partyPacing?: {
|
|
3580
|
-
number: number;
|
|
3581
|
-
enabled: boolean;
|
|
3582
|
-
};
|
|
3583
|
-
partySize?: {
|
|
3584
|
-
min: number;
|
|
3585
|
-
max: number;
|
|
3586
|
-
};
|
|
3587
|
-
minimumReservationNotice?: {
|
|
3588
|
-
number: number;
|
|
3589
|
-
unit: Unit;
|
|
3590
|
-
};
|
|
3591
|
-
turnoverTimeRules: {
|
|
3592
|
-
seatsMin: number;
|
|
3593
|
-
seatsMax: number;
|
|
3594
|
-
minutes: number;
|
|
3595
|
-
}[];
|
|
3596
|
-
businessSchedule?: {
|
|
3597
|
-
periods: {
|
|
3598
|
-
openDay: CommonDayOfWeek;
|
|
3599
|
-
openTime: string;
|
|
3600
|
-
closeDay: CommonDayOfWeek;
|
|
3601
|
-
closeTime: string;
|
|
3602
|
-
}[];
|
|
3603
|
-
specialHourPeriod: {
|
|
3604
|
-
startDate: string;
|
|
3605
|
-
endDate: string;
|
|
3606
|
-
isClosed: boolean;
|
|
3607
|
-
comment: string;
|
|
3608
|
-
}[];
|
|
3609
|
-
};
|
|
3610
|
-
manualApproval?: {
|
|
3611
|
-
partySizeThreshold: number;
|
|
3612
|
-
customApprovalsProviderId: string;
|
|
3613
|
-
enabled: boolean;
|
|
3614
|
-
};
|
|
3615
|
-
};
|
|
3616
|
-
reservationForm?: {
|
|
3617
|
-
termsAndConditions?: {
|
|
3618
|
-
url: string;
|
|
3619
|
-
enabled: boolean;
|
|
3620
|
-
};
|
|
3621
|
-
privacyPolicy?: {
|
|
3622
|
-
url: string;
|
|
3623
|
-
enabled: boolean;
|
|
3624
|
-
};
|
|
3625
|
-
customFieldDefinitions: {
|
|
3626
|
-
name: string;
|
|
3627
|
-
required: boolean;
|
|
3628
|
-
}[];
|
|
3629
|
-
emailMarketingCheckbox?: {
|
|
3630
|
-
enabled: boolean;
|
|
3631
|
-
checkedByDefault: boolean;
|
|
3632
|
-
};
|
|
3633
|
-
};
|
|
3634
|
-
myReservationsFields: {
|
|
3635
|
-
fieldType: FieldType;
|
|
3636
|
-
shown: boolean;
|
|
3637
|
-
}[];
|
|
3638
|
-
tableManagement?: {
|
|
3639
|
-
tableDefinitions: {
|
|
3640
|
-
name: string;
|
|
3641
|
-
seatsMin: number;
|
|
3642
|
-
seatsMax: number;
|
|
3643
|
-
}[];
|
|
3644
|
-
deletedTableDefinitions: {
|
|
3645
|
-
name: string;
|
|
3646
|
-
seatsMin: number;
|
|
3647
|
-
seatsMax: number;
|
|
3648
|
-
}[];
|
|
3649
|
-
tableCombinations: {
|
|
3650
|
-
seatsMin: number;
|
|
3651
|
-
seatsMax: number;
|
|
3652
|
-
}[];
|
|
3653
|
-
};
|
|
3654
|
-
};
|
|
3655
|
-
}[];
|
|
3589
|
+
reservationLocations: ReservationLocationNonNullableFields[];
|
|
3656
3590
|
}
|
|
3657
3591
|
interface BaseEventMetadata {
|
|
3658
3592
|
/** App instance ID. */
|
|
@@ -3681,7 +3615,7 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
3681
3615
|
slug?: string;
|
|
3682
3616
|
/** ID of the entity associated with the event. */
|
|
3683
3617
|
entityId?: string;
|
|
3684
|
-
/** Event timestamp. */
|
|
3618
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
3685
3619
|
eventTime?: Date;
|
|
3686
3620
|
/**
|
|
3687
3621
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -3831,220 +3765,16 @@ interface ListReservationLocationsOptions {
|
|
|
3831
3765
|
fieldsets?: Set[];
|
|
3832
3766
|
}
|
|
3833
3767
|
|
|
3834
|
-
|
|
3835
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
3836
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
3837
|
-
}
|
|
3838
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
3839
|
-
type HttpResponse$1<T = any> = {
|
|
3840
|
-
data: T;
|
|
3841
|
-
status: number;
|
|
3842
|
-
statusText: string;
|
|
3843
|
-
headers: any;
|
|
3844
|
-
request?: any;
|
|
3845
|
-
};
|
|
3846
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
3847
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3848
|
-
url: string;
|
|
3849
|
-
data?: Data;
|
|
3850
|
-
params?: URLSearchParams;
|
|
3851
|
-
} & APIMetadata$1;
|
|
3852
|
-
type APIMetadata$1 = {
|
|
3853
|
-
methodFqn?: string;
|
|
3854
|
-
entityFqdn?: string;
|
|
3855
|
-
packageName?: string;
|
|
3856
|
-
};
|
|
3857
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
3858
|
-
__type: 'event-definition';
|
|
3859
|
-
type: Type;
|
|
3860
|
-
isDomainEvent?: boolean;
|
|
3861
|
-
transformations?: (envelope: unknown) => Payload;
|
|
3862
|
-
__payload: Payload;
|
|
3863
|
-
};
|
|
3864
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
3768
|
+
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
3865
3769
|
|
|
3866
|
-
declare
|
|
3867
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3868
|
-
interface SymbolConstructor {
|
|
3869
|
-
readonly observable: symbol;
|
|
3870
|
-
}
|
|
3871
|
-
}
|
|
3770
|
+
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3872
3771
|
|
|
3873
|
-
declare const
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
declare
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
seatPacing?: {
|
|
3880
|
-
number: number;
|
|
3881
|
-
enabled: boolean;
|
|
3882
|
-
} | undefined;
|
|
3883
|
-
partyPacing?: {
|
|
3884
|
-
number: number;
|
|
3885
|
-
enabled: boolean;
|
|
3886
|
-
} | undefined;
|
|
3887
|
-
partySize?: {
|
|
3888
|
-
min: number;
|
|
3889
|
-
max: number;
|
|
3890
|
-
} | undefined;
|
|
3891
|
-
minimumReservationNotice?: {
|
|
3892
|
-
number: number;
|
|
3893
|
-
unit: Unit;
|
|
3894
|
-
} | undefined;
|
|
3895
|
-
turnoverTimeRules: {
|
|
3896
|
-
seatsMin: number;
|
|
3897
|
-
seatsMax: number;
|
|
3898
|
-
minutes: number;
|
|
3899
|
-
}[];
|
|
3900
|
-
businessSchedule?: {
|
|
3901
|
-
periods: {
|
|
3902
|
-
openDay: CommonDayOfWeek;
|
|
3903
|
-
openTime: string;
|
|
3904
|
-
closeDay: CommonDayOfWeek;
|
|
3905
|
-
closeTime: string;
|
|
3906
|
-
}[];
|
|
3907
|
-
specialHourPeriod: {
|
|
3908
|
-
startDate: string;
|
|
3909
|
-
endDate: string;
|
|
3910
|
-
isClosed: boolean;
|
|
3911
|
-
comment: string;
|
|
3912
|
-
}[];
|
|
3913
|
-
} | undefined;
|
|
3914
|
-
manualApproval?: {
|
|
3915
|
-
partySizeThreshold: number;
|
|
3916
|
-
customApprovalsProviderId: string;
|
|
3917
|
-
enabled: boolean;
|
|
3918
|
-
} | undefined;
|
|
3919
|
-
} | undefined;
|
|
3920
|
-
reservationForm?: {
|
|
3921
|
-
termsAndConditions?: {
|
|
3922
|
-
url: string;
|
|
3923
|
-
enabled: boolean;
|
|
3924
|
-
} | undefined;
|
|
3925
|
-
privacyPolicy?: {
|
|
3926
|
-
url: string;
|
|
3927
|
-
enabled: boolean;
|
|
3928
|
-
} | undefined;
|
|
3929
|
-
customFieldDefinitions: {
|
|
3930
|
-
name: string;
|
|
3931
|
-
required: boolean;
|
|
3932
|
-
}[];
|
|
3933
|
-
emailMarketingCheckbox?: {
|
|
3934
|
-
enabled: boolean;
|
|
3935
|
-
checkedByDefault: boolean;
|
|
3936
|
-
} | undefined;
|
|
3937
|
-
} | undefined;
|
|
3938
|
-
myReservationsFields: {
|
|
3939
|
-
fieldType: FieldType;
|
|
3940
|
-
shown: boolean;
|
|
3941
|
-
}[];
|
|
3942
|
-
tableManagement?: {
|
|
3943
|
-
tableDefinitions: {
|
|
3944
|
-
name: string;
|
|
3945
|
-
seatsMin: number;
|
|
3946
|
-
seatsMax: number;
|
|
3947
|
-
}[];
|
|
3948
|
-
deletedTableDefinitions: {
|
|
3949
|
-
name: string;
|
|
3950
|
-
seatsMin: number;
|
|
3951
|
-
seatsMax: number;
|
|
3952
|
-
}[];
|
|
3953
|
-
tableCombinations: {
|
|
3954
|
-
seatsMin: number;
|
|
3955
|
-
seatsMax: number;
|
|
3956
|
-
}[];
|
|
3957
|
-
} | undefined;
|
|
3958
|
-
} | undefined;
|
|
3959
|
-
}>;
|
|
3960
|
-
declare function updateReservationLocation(httpClient: HttpClient$1): (_id: string | null, reservationLocation: UpdateReservationLocation) => Promise<ReservationLocation & {
|
|
3961
|
-
configuration?: {
|
|
3962
|
-
onlineReservations?: {
|
|
3963
|
-
seatPacing?: {
|
|
3964
|
-
number: number;
|
|
3965
|
-
enabled: boolean;
|
|
3966
|
-
} | undefined;
|
|
3967
|
-
partyPacing?: {
|
|
3968
|
-
number: number;
|
|
3969
|
-
enabled: boolean;
|
|
3970
|
-
} | undefined;
|
|
3971
|
-
partySize?: {
|
|
3972
|
-
min: number;
|
|
3973
|
-
max: number;
|
|
3974
|
-
} | undefined;
|
|
3975
|
-
minimumReservationNotice?: {
|
|
3976
|
-
number: number;
|
|
3977
|
-
unit: Unit;
|
|
3978
|
-
} | undefined;
|
|
3979
|
-
turnoverTimeRules: {
|
|
3980
|
-
seatsMin: number;
|
|
3981
|
-
seatsMax: number;
|
|
3982
|
-
minutes: number;
|
|
3983
|
-
}[];
|
|
3984
|
-
businessSchedule?: {
|
|
3985
|
-
periods: {
|
|
3986
|
-
openDay: CommonDayOfWeek;
|
|
3987
|
-
openTime: string;
|
|
3988
|
-
closeDay: CommonDayOfWeek;
|
|
3989
|
-
closeTime: string;
|
|
3990
|
-
}[];
|
|
3991
|
-
specialHourPeriod: {
|
|
3992
|
-
startDate: string;
|
|
3993
|
-
endDate: string;
|
|
3994
|
-
isClosed: boolean;
|
|
3995
|
-
comment: string;
|
|
3996
|
-
}[];
|
|
3997
|
-
} | undefined;
|
|
3998
|
-
manualApproval?: {
|
|
3999
|
-
partySizeThreshold: number;
|
|
4000
|
-
customApprovalsProviderId: string;
|
|
4001
|
-
enabled: boolean;
|
|
4002
|
-
} | undefined;
|
|
4003
|
-
} | undefined;
|
|
4004
|
-
reservationForm?: {
|
|
4005
|
-
termsAndConditions?: {
|
|
4006
|
-
url: string;
|
|
4007
|
-
enabled: boolean;
|
|
4008
|
-
} | undefined;
|
|
4009
|
-
privacyPolicy?: {
|
|
4010
|
-
url: string;
|
|
4011
|
-
enabled: boolean;
|
|
4012
|
-
} | undefined;
|
|
4013
|
-
customFieldDefinitions: {
|
|
4014
|
-
name: string;
|
|
4015
|
-
required: boolean;
|
|
4016
|
-
}[];
|
|
4017
|
-
emailMarketingCheckbox?: {
|
|
4018
|
-
enabled: boolean;
|
|
4019
|
-
checkedByDefault: boolean;
|
|
4020
|
-
} | undefined;
|
|
4021
|
-
} | undefined;
|
|
4022
|
-
myReservationsFields: {
|
|
4023
|
-
fieldType: FieldType;
|
|
4024
|
-
shown: boolean;
|
|
4025
|
-
}[];
|
|
4026
|
-
tableManagement?: {
|
|
4027
|
-
tableDefinitions: {
|
|
4028
|
-
name: string;
|
|
4029
|
-
seatsMin: number;
|
|
4030
|
-
seatsMax: number;
|
|
4031
|
-
}[];
|
|
4032
|
-
deletedTableDefinitions: {
|
|
4033
|
-
name: string;
|
|
4034
|
-
seatsMin: number;
|
|
4035
|
-
seatsMax: number;
|
|
4036
|
-
}[];
|
|
4037
|
-
tableCombinations: {
|
|
4038
|
-
seatsMin: number;
|
|
4039
|
-
seatsMax: number;
|
|
4040
|
-
}[];
|
|
4041
|
-
} | undefined;
|
|
4042
|
-
} | undefined;
|
|
4043
|
-
}>;
|
|
4044
|
-
declare function queryReservationLocations(httpClient: HttpClient$1): (options?: QueryReservationLocationsOptions) => ReservationLocationsQueryBuilder;
|
|
4045
|
-
declare function listReservationLocations(httpClient: HttpClient$1): (options?: ListReservationLocationsOptions) => Promise<ListReservationLocationsResponse & ListReservationLocationsResponseNonNullableFields>;
|
|
4046
|
-
declare const onReservationLocationUpdated: EventDefinition<ReservationLocationUpdatedEnvelope, "wix.table_reservations.v1.reservation_location_updated">;
|
|
4047
|
-
declare const onReservationLocationCreated: EventDefinition<ReservationLocationCreatedEnvelope, "wix.table_reservations.v1.reservation_location_created">;
|
|
3772
|
+
declare const getReservationLocation: ReturnType<typeof createRESTModule$1<typeof publicGetReservationLocation>>;
|
|
3773
|
+
declare const updateReservationLocation: ReturnType<typeof createRESTModule$1<typeof publicUpdateReservationLocation>>;
|
|
3774
|
+
declare const queryReservationLocations: ReturnType<typeof createRESTModule$1<typeof publicQueryReservationLocations>>;
|
|
3775
|
+
declare const listReservationLocations: ReturnType<typeof createRESTModule$1<typeof publicListReservationLocations>>;
|
|
3776
|
+
declare const onReservationLocationUpdated: ReturnType<typeof createEventModule<typeof publicOnReservationLocationUpdated>>;
|
|
3777
|
+
declare const onReservationLocationCreated: ReturnType<typeof createEventModule<typeof publicOnReservationLocationCreated>>;
|
|
4048
3778
|
|
|
4049
3779
|
type index_d$1_ActionEvent = ActionEvent;
|
|
4050
3780
|
type index_d$1_Address = Address;
|
|
@@ -4178,6 +3908,7 @@ type index_d$1_ReplacedByAnotherSubscriptionReason = ReplacedByAnotherSubscripti
|
|
|
4178
3908
|
type index_d$1_ReservationForm = ReservationForm;
|
|
4179
3909
|
type index_d$1_ReservationLocation = ReservationLocation;
|
|
4180
3910
|
type index_d$1_ReservationLocationCreatedEnvelope = ReservationLocationCreatedEnvelope;
|
|
3911
|
+
type index_d$1_ReservationLocationNonNullableFields = ReservationLocationNonNullableFields;
|
|
4181
3912
|
type index_d$1_ReservationLocationUpdatedEnvelope = ReservationLocationUpdatedEnvelope;
|
|
4182
3913
|
type index_d$1_ReservationLocationsQueryBuilder = ReservationLocationsQueryBuilder;
|
|
4183
3914
|
type index_d$1_ReservationLocationsQueryResult = ReservationLocationsQueryResult;
|
|
@@ -4244,7 +3975,7 @@ declare const index_d$1_onReservationLocationUpdated: typeof onReservationLocati
|
|
|
4244
3975
|
declare const index_d$1_queryReservationLocations: typeof queryReservationLocations;
|
|
4245
3976
|
declare const index_d$1_updateReservationLocation: typeof updateReservationLocation;
|
|
4246
3977
|
declare namespace index_d$1 {
|
|
4247
|
-
export { type index_d$1_ActionEvent as ActionEvent, type index_d$1_Address as Address, type index_d$1_AddressHint as AddressHint, type index_d$1_AddressLocation as AddressLocation, type index_d$1_App as App, type index_d$1_Asset as Asset, type index_d$1_AssignedFromFloatingReason as AssignedFromFloatingReason, type index_d$1_BaseEventMetadata as BaseEventMetadata, type index_d$1_BooleanFeature as BooleanFeature, type index_d$1_BusinessSchedule as BusinessSchedule, type index_d$1_CancelRequestedReason as CancelRequestedReason, type index_d$1_Categories as Categories, type index_d$1_ChangeContext as ChangeContext, type index_d$1_ChangeContextPayloadOneOf as ChangeContextPayloadOneOf, type index_d$1_CheckReservationLocationsCreatedRequest as CheckReservationLocationsCreatedRequest, type index_d$1_CheckReservationLocationsCreatedResponse as CheckReservationLocationsCreatedResponse, type index_d$1_CommonBusinessSchedule as CommonBusinessSchedule, index_d$1_CommonDayOfWeek as CommonDayOfWeek, type index_d$1_CommonSpecialHourPeriod as CommonSpecialHourPeriod, type index_d$1_CommonTimePeriod as CommonTimePeriod, type index_d$1_Configuration as Configuration, type index_d$1_ConsentPolicy as ConsentPolicy, type index_d$1_ContractSwitchedReason as ContractSwitchedReason, type index_d$1_CursorPaging as CursorPaging, type index_d$1_CursorPagingMetadata as CursorPagingMetadata, type index_d$1_Cursors as Cursors, type index_d$1_CustomFieldDefinition as CustomFieldDefinition, index_d$1_DayOfWeek as DayOfWeek, type index_d$1_DeleteContext as DeleteContext, type index_d$1_DeleteOrphanReservationLocationRequest as DeleteOrphanReservationLocationRequest, type index_d$1_DeleteOrphanReservationLocationResponse as DeleteOrphanReservationLocationResponse, index_d$1_DeleteStatus as DeleteStatus, type index_d$1_DomainEvent as DomainEvent, type index_d$1_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$1_EmailMarketingCheckbox as EmailMarketingCheckbox, type index_d$1_Empty as Empty, type index_d$1_EntityCreatedEvent as EntityCreatedEvent, type index_d$1_EntityDeletedEvent as EntityDeletedEvent, type index_d$1_EntityUpdatedEvent as EntityUpdatedEvent, type index_d$1_EventMetadata as EventMetadata, type index_d$1_Feature as Feature, type index_d$1_FeatureCancelled as FeatureCancelled, type index_d$1_FeatureCancelledReasonOneOf as FeatureCancelledReasonOneOf, type index_d$1_FeatureContext as FeatureContext, type index_d$1_FeatureDisabled as FeatureDisabled, type index_d$1_FeatureDisabledReasonOneOf as FeatureDisabledReasonOneOf, type index_d$1_FeatureEnabled as FeatureEnabled, type index_d$1_FeatureEnabledReasonOneOf as FeatureEnabledReasonOneOf, type index_d$1_FeatureEvent as FeatureEvent, type index_d$1_FeatureEventEventOneOf as FeatureEventEventOneOf, index_d$1_FeaturePeriod as FeaturePeriod, type index_d$1_FeatureQuantityInfoOneOf as FeatureQuantityInfoOneOf, type index_d$1_FeatureUpdated as FeatureUpdated, type index_d$1_FeatureUpdatedPreviousQuantityInfoOneOf as FeatureUpdatedPreviousQuantityInfoOneOf, type index_d$1_FeatureUpdatedReasonOneOf as FeatureUpdatedReasonOneOf, index_d$1_FieldType as FieldType, type index_d$1_File as File, type index_d$1_GeoCoordinates as GeoCoordinates, type index_d$1_GetReservationLocationOptions as GetReservationLocationOptions, type index_d$1_GetReservationLocationRequest as GetReservationLocationRequest, type index_d$1_GetReservationLocationResponse as GetReservationLocationResponse, type index_d$1_GetReservationLocationResponseNonNullableFields as GetReservationLocationResponseNonNullableFields, type index_d$1_IdentificationData as IdentificationData, type index_d$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d$1_InvalidateCache as InvalidateCache, type index_d$1_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type index_d$1_ListReservationLocationsOptions as ListReservationLocationsOptions, type index_d$1_ListReservationLocationsRequest as ListReservationLocationsRequest, type index_d$1_ListReservationLocationsResponse as ListReservationLocationsResponse, type index_d$1_ListReservationLocationsResponseNonNullableFields as ListReservationLocationsResponseNonNullableFields, type index_d$1_Locale as Locale, type index_d$1_Location as Location, type index_d$1_LocationAddress as LocationAddress, type index_d$1_ManualApproval as ManualApproval, type index_d$1_ManualApprovalValueOneOf as ManualApprovalValueOneOf, type index_d$1_ManualFeatureCreationReason as ManualFeatureCreationReason, type index_d$1_MessageEnvelope as MessageEnvelope, type index_d$1_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$1_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, type index_d$1_MigrateOldRestaurantSettingsRequest as MigrateOldRestaurantSettingsRequest, type index_d$1_MigrateOldRestaurantSettingsResponse as MigrateOldRestaurantSettingsResponse, type index_d$1_MigratedFromLegacyReason as MigratedFromLegacyReason, type index_d$1_MigrationParsingError as MigrationParsingError, type index_d$1_MigrationResult as MigrationResult, index_d$1_Mode as Mode, type index_d$1_Multilingual as Multilingual, type index_d$1_MyReservationsField as MyReservationsField, index_d$1_Namespace as Namespace, type index_d$1_NamespaceChanged as NamespaceChanged, type index_d$1_NewFeatureReason as NewFeatureReason, type index_d$1_NoticePeriod as NoticePeriod, type index_d$1_OldCustomField as OldCustomField, type index_d$1_OldInstant as OldInstant, type index_d$1_OldPolicy as OldPolicy, type index_d$1_OldScheduleException as OldScheduleException, type index_d$1_OldScheduleInterval as OldScheduleInterval, type index_d$1_OldTerms as OldTerms, type index_d$1_OnlineReservations as OnlineReservations, type index_d$1_Page as Page, type index_d$1_Paging as Paging, type index_d$1_PagingMetadataV2 as PagingMetadataV2, type index_d$1_ParsedSettings as ParsedSettings, type index_d$1_PartiesSize as PartiesSize, type index_d$1_PartyPacing as PartyPacing, type index_d$1_PartySize as PartySize, index_d$1_PlacementType as PlacementType, type index_d$1_PrivacyPolicy as PrivacyPolicy, type index_d$1_PrivacyPolicyValueOneOf as PrivacyPolicyValueOneOf, type index_d$1_Properties as Properties, type index_d$1_PropertiesChange as PropertiesChange, type index_d$1_QueryReservationLocationsOptions as QueryReservationLocationsOptions, type index_d$1_QueryReservationLocationsRequest as QueryReservationLocationsRequest, type index_d$1_QueryReservationLocationsResponse as QueryReservationLocationsResponse, type index_d$1_QueryReservationLocationsResponseNonNullableFields as QueryReservationLocationsResponseNonNullableFields, type index_d$1_QueryV2 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$1_QuotaFeature as QuotaFeature, type index_d$1_QuotaInfo as QuotaInfo, type index_d$1_ReassignedFromSiteReason as ReassignedFromSiteReason, type index_d$1_ReassignedToAnotherSiteReason as ReassignedToAnotherSiteReason, type index_d$1_ReplacedByAnotherSubscriptionReason as ReplacedByAnotherSubscriptionReason, type index_d$1_ReservationForm as ReservationForm, type index_d$1_ReservationLocation as ReservationLocation, type index_d$1_ReservationLocationCreatedEnvelope as ReservationLocationCreatedEnvelope, type index_d$1_ReservationLocationUpdatedEnvelope as ReservationLocationUpdatedEnvelope, type index_d$1_ReservationLocationsQueryBuilder as ReservationLocationsQueryBuilder, type index_d$1_ReservationLocationsQueryResult as ReservationLocationsQueryResult, type index_d$1_ReservationPayment as ReservationPayment, index_d$1_ResolutionMethod as ResolutionMethod, type index_d$1_RestoreInfo as RestoreInfo, type index_d$1_SeatPacing as SeatPacing, type index_d$1_ServiceProvisioned as ServiceProvisioned, type index_d$1_ServiceRemoved as ServiceRemoved, index_d$1_Set as Set, type index_d$1_SiteCloned as SiteCloned, type index_d$1_SiteCreated as SiteCreated, index_d$1_SiteCreatedContext as SiteCreatedContext, type index_d$1_SiteDeleted as SiteDeleted, type index_d$1_SiteHardDeleted as SiteHardDeleted, type index_d$1_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d$1_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d$1_SitePropertiesEvent as SitePropertiesEvent, type index_d$1_SitePropertiesNotification as SitePropertiesNotification, type index_d$1_SitePublished as SitePublished, type index_d$1_SiteRenamed as SiteRenamed, type index_d$1_SiteTransferred as SiteTransferred, type index_d$1_SiteUndeleted as SiteUndeleted, type index_d$1_SiteUnpublished as SiteUnpublished, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, type index_d$1_SpecialHourPeriod as SpecialHourPeriod, index_d$1_State as State, type index_d$1_StreetAddress as StreetAddress, type index_d$1_StudioAssigned as StudioAssigned, type index_d$1_StudioUnassigned as StudioUnassigned, type index_d$1_SupportedLanguage as SupportedLanguage, type TableCombination$1 as TableCombination, type index_d$1_TableDefinition as TableDefinition, type index_d$1_TableManagement as TableManagement, type index_d$1_TablesDeleted as TablesDeleted, type index_d$1_TermsAndConditions as TermsAndConditions, type index_d$1_TermsAndConditionsValueOneOf as TermsAndConditionsValueOneOf, type index_d$1_TimePeriod as TimePeriod, type index_d$1_TransferredFromAnotherAccountReason as TransferredFromAnotherAccountReason, type index_d$1_TransferredToAnotherAccountReason as TransferredToAnotherAccountReason, type index_d$1_Translation as Translation, type index_d$1_TurnoverRule as TurnoverRule, type index_d$1_TurnoverTimeRule as TurnoverTimeRule, type index_d$1_URI as URI, type index_d$1_UnAssingedToFloatingReason as UnAssingedToFloatingReason, index_d$1_Unit as Unit, type index_d$1_UpdateReservationLocation as UpdateReservationLocation, type index_d$1_UpdateReservationLocationRequest as UpdateReservationLocationRequest, type index_d$1_UpdateReservationLocationResponse as UpdateReservationLocationResponse, type index_d$1_UpdateReservationLocationResponseNonNullableFields as UpdateReservationLocationResponseNonNullableFields, type index_d$1_V4SiteCreated as V4SiteCreated, index_d$1_WebhookIdentityType as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_getReservationLocation as getReservationLocation, index_d$1_listReservationLocations as listReservationLocations, index_d$1_onReservationLocationCreated as onReservationLocationCreated, index_d$1_onReservationLocationUpdated as onReservationLocationUpdated, index_d$1_queryReservationLocations as queryReservationLocations, index_d$1_updateReservationLocation as updateReservationLocation };
|
|
3978
|
+
export { type index_d$1_ActionEvent as ActionEvent, type index_d$1_Address as Address, type index_d$1_AddressHint as AddressHint, type index_d$1_AddressLocation as AddressLocation, type index_d$1_App as App, type index_d$1_Asset as Asset, type index_d$1_AssignedFromFloatingReason as AssignedFromFloatingReason, type index_d$1_BaseEventMetadata as BaseEventMetadata, type index_d$1_BooleanFeature as BooleanFeature, type index_d$1_BusinessSchedule as BusinessSchedule, type index_d$1_CancelRequestedReason as CancelRequestedReason, type index_d$1_Categories as Categories, type index_d$1_ChangeContext as ChangeContext, type index_d$1_ChangeContextPayloadOneOf as ChangeContextPayloadOneOf, type index_d$1_CheckReservationLocationsCreatedRequest as CheckReservationLocationsCreatedRequest, type index_d$1_CheckReservationLocationsCreatedResponse as CheckReservationLocationsCreatedResponse, type index_d$1_CommonBusinessSchedule as CommonBusinessSchedule, index_d$1_CommonDayOfWeek as CommonDayOfWeek, type index_d$1_CommonSpecialHourPeriod as CommonSpecialHourPeriod, type index_d$1_CommonTimePeriod as CommonTimePeriod, type index_d$1_Configuration as Configuration, type index_d$1_ConsentPolicy as ConsentPolicy, type index_d$1_ContractSwitchedReason as ContractSwitchedReason, type index_d$1_CursorPaging as CursorPaging, type index_d$1_CursorPagingMetadata as CursorPagingMetadata, type index_d$1_Cursors as Cursors, type index_d$1_CustomFieldDefinition as CustomFieldDefinition, index_d$1_DayOfWeek as DayOfWeek, type index_d$1_DeleteContext as DeleteContext, type index_d$1_DeleteOrphanReservationLocationRequest as DeleteOrphanReservationLocationRequest, type index_d$1_DeleteOrphanReservationLocationResponse as DeleteOrphanReservationLocationResponse, index_d$1_DeleteStatus as DeleteStatus, type index_d$1_DomainEvent as DomainEvent, type index_d$1_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$1_EmailMarketingCheckbox as EmailMarketingCheckbox, type index_d$1_Empty as Empty, type index_d$1_EntityCreatedEvent as EntityCreatedEvent, type index_d$1_EntityDeletedEvent as EntityDeletedEvent, type index_d$1_EntityUpdatedEvent as EntityUpdatedEvent, type index_d$1_EventMetadata as EventMetadata, type index_d$1_Feature as Feature, type index_d$1_FeatureCancelled as FeatureCancelled, type index_d$1_FeatureCancelledReasonOneOf as FeatureCancelledReasonOneOf, type index_d$1_FeatureContext as FeatureContext, type index_d$1_FeatureDisabled as FeatureDisabled, type index_d$1_FeatureDisabledReasonOneOf as FeatureDisabledReasonOneOf, type index_d$1_FeatureEnabled as FeatureEnabled, type index_d$1_FeatureEnabledReasonOneOf as FeatureEnabledReasonOneOf, type index_d$1_FeatureEvent as FeatureEvent, type index_d$1_FeatureEventEventOneOf as FeatureEventEventOneOf, index_d$1_FeaturePeriod as FeaturePeriod, type index_d$1_FeatureQuantityInfoOneOf as FeatureQuantityInfoOneOf, type index_d$1_FeatureUpdated as FeatureUpdated, type index_d$1_FeatureUpdatedPreviousQuantityInfoOneOf as FeatureUpdatedPreviousQuantityInfoOneOf, type index_d$1_FeatureUpdatedReasonOneOf as FeatureUpdatedReasonOneOf, index_d$1_FieldType as FieldType, type index_d$1_File as File, type index_d$1_GeoCoordinates as GeoCoordinates, type index_d$1_GetReservationLocationOptions as GetReservationLocationOptions, type index_d$1_GetReservationLocationRequest as GetReservationLocationRequest, type index_d$1_GetReservationLocationResponse as GetReservationLocationResponse, type index_d$1_GetReservationLocationResponseNonNullableFields as GetReservationLocationResponseNonNullableFields, type index_d$1_IdentificationData as IdentificationData, type index_d$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d$1_InvalidateCache as InvalidateCache, type index_d$1_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type index_d$1_ListReservationLocationsOptions as ListReservationLocationsOptions, type index_d$1_ListReservationLocationsRequest as ListReservationLocationsRequest, type index_d$1_ListReservationLocationsResponse as ListReservationLocationsResponse, type index_d$1_ListReservationLocationsResponseNonNullableFields as ListReservationLocationsResponseNonNullableFields, type index_d$1_Locale as Locale, type index_d$1_Location as Location, type index_d$1_LocationAddress as LocationAddress, type index_d$1_ManualApproval as ManualApproval, type index_d$1_ManualApprovalValueOneOf as ManualApprovalValueOneOf, type index_d$1_ManualFeatureCreationReason as ManualFeatureCreationReason, type index_d$1_MessageEnvelope as MessageEnvelope, type index_d$1_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$1_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, type index_d$1_MigrateOldRestaurantSettingsRequest as MigrateOldRestaurantSettingsRequest, type index_d$1_MigrateOldRestaurantSettingsResponse as MigrateOldRestaurantSettingsResponse, type index_d$1_MigratedFromLegacyReason as MigratedFromLegacyReason, type index_d$1_MigrationParsingError as MigrationParsingError, type index_d$1_MigrationResult as MigrationResult, index_d$1_Mode as Mode, type index_d$1_Multilingual as Multilingual, type index_d$1_MyReservationsField as MyReservationsField, index_d$1_Namespace as Namespace, type index_d$1_NamespaceChanged as NamespaceChanged, type index_d$1_NewFeatureReason as NewFeatureReason, type index_d$1_NoticePeriod as NoticePeriod, type index_d$1_OldCustomField as OldCustomField, type index_d$1_OldInstant as OldInstant, type index_d$1_OldPolicy as OldPolicy, type index_d$1_OldScheduleException as OldScheduleException, type index_d$1_OldScheduleInterval as OldScheduleInterval, type index_d$1_OldTerms as OldTerms, type index_d$1_OnlineReservations as OnlineReservations, type index_d$1_Page as Page, type index_d$1_Paging as Paging, type index_d$1_PagingMetadataV2 as PagingMetadataV2, type index_d$1_ParsedSettings as ParsedSettings, type index_d$1_PartiesSize as PartiesSize, type index_d$1_PartyPacing as PartyPacing, type index_d$1_PartySize as PartySize, index_d$1_PlacementType as PlacementType, type index_d$1_PrivacyPolicy as PrivacyPolicy, type index_d$1_PrivacyPolicyValueOneOf as PrivacyPolicyValueOneOf, type index_d$1_Properties as Properties, type index_d$1_PropertiesChange as PropertiesChange, type index_d$1_QueryReservationLocationsOptions as QueryReservationLocationsOptions, type index_d$1_QueryReservationLocationsRequest as QueryReservationLocationsRequest, type index_d$1_QueryReservationLocationsResponse as QueryReservationLocationsResponse, type index_d$1_QueryReservationLocationsResponseNonNullableFields as QueryReservationLocationsResponseNonNullableFields, type index_d$1_QueryV2 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$1_QuotaFeature as QuotaFeature, type index_d$1_QuotaInfo as QuotaInfo, type index_d$1_ReassignedFromSiteReason as ReassignedFromSiteReason, type index_d$1_ReassignedToAnotherSiteReason as ReassignedToAnotherSiteReason, type index_d$1_ReplacedByAnotherSubscriptionReason as ReplacedByAnotherSubscriptionReason, type index_d$1_ReservationForm as ReservationForm, type index_d$1_ReservationLocation as ReservationLocation, type index_d$1_ReservationLocationCreatedEnvelope as ReservationLocationCreatedEnvelope, type index_d$1_ReservationLocationNonNullableFields as ReservationLocationNonNullableFields, type index_d$1_ReservationLocationUpdatedEnvelope as ReservationLocationUpdatedEnvelope, type index_d$1_ReservationLocationsQueryBuilder as ReservationLocationsQueryBuilder, type index_d$1_ReservationLocationsQueryResult as ReservationLocationsQueryResult, type index_d$1_ReservationPayment as ReservationPayment, index_d$1_ResolutionMethod as ResolutionMethod, type index_d$1_RestoreInfo as RestoreInfo, type index_d$1_SeatPacing as SeatPacing, type index_d$1_ServiceProvisioned as ServiceProvisioned, type index_d$1_ServiceRemoved as ServiceRemoved, index_d$1_Set as Set, type index_d$1_SiteCloned as SiteCloned, type index_d$1_SiteCreated as SiteCreated, index_d$1_SiteCreatedContext as SiteCreatedContext, type index_d$1_SiteDeleted as SiteDeleted, type index_d$1_SiteHardDeleted as SiteHardDeleted, type index_d$1_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d$1_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d$1_SitePropertiesEvent as SitePropertiesEvent, type index_d$1_SitePropertiesNotification as SitePropertiesNotification, type index_d$1_SitePublished as SitePublished, type index_d$1_SiteRenamed as SiteRenamed, type index_d$1_SiteTransferred as SiteTransferred, type index_d$1_SiteUndeleted as SiteUndeleted, type index_d$1_SiteUnpublished as SiteUnpublished, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, type index_d$1_SpecialHourPeriod as SpecialHourPeriod, index_d$1_State as State, type index_d$1_StreetAddress as StreetAddress, type index_d$1_StudioAssigned as StudioAssigned, type index_d$1_StudioUnassigned as StudioUnassigned, type index_d$1_SupportedLanguage as SupportedLanguage, type TableCombination$1 as TableCombination, type index_d$1_TableDefinition as TableDefinition, type index_d$1_TableManagement as TableManagement, type index_d$1_TablesDeleted as TablesDeleted, type index_d$1_TermsAndConditions as TermsAndConditions, type index_d$1_TermsAndConditionsValueOneOf as TermsAndConditionsValueOneOf, type index_d$1_TimePeriod as TimePeriod, type index_d$1_TransferredFromAnotherAccountReason as TransferredFromAnotherAccountReason, type index_d$1_TransferredToAnotherAccountReason as TransferredToAnotherAccountReason, type index_d$1_Translation as Translation, type index_d$1_TurnoverRule as TurnoverRule, type index_d$1_TurnoverTimeRule as TurnoverTimeRule, type index_d$1_URI as URI, type index_d$1_UnAssingedToFloatingReason as UnAssingedToFloatingReason, index_d$1_Unit as Unit, type index_d$1_UpdateReservationLocation as UpdateReservationLocation, type index_d$1_UpdateReservationLocationRequest as UpdateReservationLocationRequest, type index_d$1_UpdateReservationLocationResponse as UpdateReservationLocationResponse, type index_d$1_UpdateReservationLocationResponseNonNullableFields as UpdateReservationLocationResponseNonNullableFields, type index_d$1_V4SiteCreated as V4SiteCreated, index_d$1_WebhookIdentityType as WebhookIdentityType, index_d$1_getReservationLocation as getReservationLocation, index_d$1_listReservationLocations as listReservationLocations, index_d$1_onReservationLocationCreated as onReservationLocationCreated, index_d$1_onReservationLocationUpdated as onReservationLocationUpdated, index_d$1_queryReservationLocations as queryReservationLocations, index_d$1_updateReservationLocation as updateReservationLocation };
|
|
4248
3979
|
}
|
|
4249
3980
|
|
|
4250
3981
|
interface TimeSlot {
|
|
@@ -4301,13 +4032,13 @@ interface GetTimeSlotsResponse {
|
|
|
4301
4032
|
}
|
|
4302
4033
|
interface CheckReservationDetailsRequest {
|
|
4303
4034
|
/** Reservation location ID. */
|
|
4304
|
-
reservationLocationId
|
|
4035
|
+
reservationLocationId: string;
|
|
4305
4036
|
/** Date. */
|
|
4306
|
-
date
|
|
4037
|
+
date: Date;
|
|
4307
4038
|
/** Duration. */
|
|
4308
|
-
duration
|
|
4039
|
+
duration: number | null;
|
|
4309
4040
|
/** Party size. */
|
|
4310
|
-
partySize
|
|
4041
|
+
partySize: number | null;
|
|
4311
4042
|
/** Reservation, that should be ignored during the check. */
|
|
4312
4043
|
excludeReservationId?: string | null;
|
|
4313
4044
|
/** Requested table combination. */
|
|
@@ -4375,11 +4106,66 @@ interface TableReservedConflict {
|
|
|
4375
4106
|
/** List of reservation ids. */
|
|
4376
4107
|
reservationIds?: string[];
|
|
4377
4108
|
}
|
|
4109
|
+
interface CheckTimeSlotRequest {
|
|
4110
|
+
/** Reservation location ID. */
|
|
4111
|
+
reservationLocationId?: string;
|
|
4112
|
+
/** Date. */
|
|
4113
|
+
date?: Date;
|
|
4114
|
+
/** Duration. */
|
|
4115
|
+
duration?: number | null;
|
|
4116
|
+
/** Party size. */
|
|
4117
|
+
partySize?: number | null;
|
|
4118
|
+
/** Reservation, that should be ignored during the check. */
|
|
4119
|
+
excludeReservationId?: string | null;
|
|
4120
|
+
}
|
|
4121
|
+
interface CheckTimeSlotResponse {
|
|
4122
|
+
/** Table combinations availabilities. */
|
|
4123
|
+
tableCombinationAvailabilities?: TableCombinationAvailability[];
|
|
4124
|
+
/** Reservation location conflicts. */
|
|
4125
|
+
reservationLocationConflicts?: Type[];
|
|
4126
|
+
}
|
|
4127
|
+
interface TableCombinationAvailability {
|
|
4128
|
+
tableIds?: string[];
|
|
4129
|
+
tableCombinationConflicts?: TableCombinationConflictType[];
|
|
4130
|
+
}
|
|
4131
|
+
interface TimeSlotTableCombinationNonNullableFields {
|
|
4132
|
+
tableIds: string[];
|
|
4133
|
+
}
|
|
4134
|
+
interface TimeSlotNonNullableFields {
|
|
4135
|
+
duration: number;
|
|
4136
|
+
status: Status;
|
|
4137
|
+
tableCombinations: TimeSlotTableCombinationNonNullableFields[];
|
|
4138
|
+
}
|
|
4378
4139
|
interface GetTimeSlotsResponseNonNullableFields {
|
|
4379
|
-
timeSlots:
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4140
|
+
timeSlots: TimeSlotNonNullableFields[];
|
|
4141
|
+
}
|
|
4142
|
+
interface TableConflictNonNullableFields {
|
|
4143
|
+
type: TableConflictType;
|
|
4144
|
+
}
|
|
4145
|
+
interface TableNonNullableFields {
|
|
4146
|
+
_id: string;
|
|
4147
|
+
tableConflicts: TableConflictNonNullableFields[];
|
|
4148
|
+
}
|
|
4149
|
+
interface TableCombinationConflictNonNullableFields {
|
|
4150
|
+
type: TableCombinationConflictType;
|
|
4151
|
+
}
|
|
4152
|
+
interface TableCombinationNonNullableFields {
|
|
4153
|
+
tableIds: string[];
|
|
4154
|
+
tableCombinationConflicts: TableCombinationConflictNonNullableFields[];
|
|
4155
|
+
}
|
|
4156
|
+
interface ReservationLocationConflictNonNullableFields {
|
|
4157
|
+
type: Type;
|
|
4158
|
+
}
|
|
4159
|
+
interface TableReservedConflictNonNullableFields {
|
|
4160
|
+
tableId: string;
|
|
4161
|
+
reservationIds: string[];
|
|
4162
|
+
}
|
|
4163
|
+
interface CheckReservationDetailsResponseNonNullableFields {
|
|
4164
|
+
tables: TableNonNullableFields[];
|
|
4165
|
+
tableCombinations: TableCombinationNonNullableFields[];
|
|
4166
|
+
reservationLocationConflicts: ReservationLocationConflictNonNullableFields[];
|
|
4167
|
+
requestedTableCombination?: TableCombinationNonNullableFields;
|
|
4168
|
+
tableReservedConflicts: TableReservedConflictNonNullableFields[];
|
|
4383
4169
|
}
|
|
4384
4170
|
interface GetTimeSlotsOptions {
|
|
4385
4171
|
/**
|
|
@@ -4393,45 +4179,30 @@ interface GetTimeSlotsOptions {
|
|
|
4393
4179
|
/** The number of time slots to retrieve after the given `date`. */
|
|
4394
4180
|
slotsAfter?: number | null;
|
|
4395
4181
|
}
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4182
|
+
interface CheckReservationDetailsOptions {
|
|
4183
|
+
/** Date. */
|
|
4184
|
+
date: Date;
|
|
4185
|
+
/** Duration. */
|
|
4186
|
+
duration: number | null;
|
|
4187
|
+
/** Party size. */
|
|
4188
|
+
partySize: number | null;
|
|
4189
|
+
/** Reservation, that should be ignored during the check. */
|
|
4190
|
+
excludeReservationId?: string | null;
|
|
4191
|
+
/** Requested table combination. */
|
|
4192
|
+
tableIds?: string[];
|
|
4400
4193
|
}
|
|
4401
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
4402
|
-
type HttpResponse<T = any> = {
|
|
4403
|
-
data: T;
|
|
4404
|
-
status: number;
|
|
4405
|
-
statusText: string;
|
|
4406
|
-
headers: any;
|
|
4407
|
-
request?: any;
|
|
4408
|
-
};
|
|
4409
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
4410
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4411
|
-
url: string;
|
|
4412
|
-
data?: Data;
|
|
4413
|
-
params?: URLSearchParams;
|
|
4414
|
-
} & APIMetadata;
|
|
4415
|
-
type APIMetadata = {
|
|
4416
|
-
methodFqn?: string;
|
|
4417
|
-
entityFqdn?: string;
|
|
4418
|
-
packageName?: string;
|
|
4419
|
-
};
|
|
4420
4194
|
|
|
4421
|
-
declare
|
|
4422
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4423
|
-
interface SymbolConstructor {
|
|
4424
|
-
readonly observable: symbol;
|
|
4425
|
-
}
|
|
4426
|
-
}
|
|
4195
|
+
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
4427
4196
|
|
|
4428
|
-
declare const
|
|
4429
|
-
|
|
4430
|
-
};
|
|
4431
|
-
declare function getTimeSlots(httpClient: HttpClient): (reservationLocationId: string, date: Date, partySize: number | null, options?: GetTimeSlotsOptions) => Promise<GetTimeSlotsResponse & GetTimeSlotsResponseNonNullableFields>;
|
|
4197
|
+
declare const getTimeSlots: ReturnType<typeof createRESTModule<typeof publicGetTimeSlots>>;
|
|
4198
|
+
declare const checkReservationDetails: ReturnType<typeof createRESTModule<typeof publicCheckReservationDetails>>;
|
|
4432
4199
|
|
|
4200
|
+
type index_d_CheckReservationDetailsOptions = CheckReservationDetailsOptions;
|
|
4433
4201
|
type index_d_CheckReservationDetailsRequest = CheckReservationDetailsRequest;
|
|
4434
4202
|
type index_d_CheckReservationDetailsResponse = CheckReservationDetailsResponse;
|
|
4203
|
+
type index_d_CheckReservationDetailsResponseNonNullableFields = CheckReservationDetailsResponseNonNullableFields;
|
|
4204
|
+
type index_d_CheckTimeSlotRequest = CheckTimeSlotRequest;
|
|
4205
|
+
type index_d_CheckTimeSlotResponse = CheckTimeSlotResponse;
|
|
4435
4206
|
type index_d_GetTimeSlotsOptions = GetTimeSlotsOptions;
|
|
4436
4207
|
type index_d_GetTimeSlotsRequest = GetTimeSlotsRequest;
|
|
4437
4208
|
type index_d_GetTimeSlotsResponse = GetTimeSlotsResponse;
|
|
@@ -4441,6 +4212,7 @@ type index_d_Status = Status;
|
|
|
4441
4212
|
declare const index_d_Status: typeof Status;
|
|
4442
4213
|
type index_d_Table = Table;
|
|
4443
4214
|
type index_d_TableCombination = TableCombination;
|
|
4215
|
+
type index_d_TableCombinationAvailability = TableCombinationAvailability;
|
|
4444
4216
|
type index_d_TableCombinationConflict = TableCombinationConflict;
|
|
4445
4217
|
type index_d_TableCombinationConflictType = TableCombinationConflictType;
|
|
4446
4218
|
declare const index_d_TableCombinationConflictType: typeof TableCombinationConflictType;
|
|
@@ -4452,10 +4224,10 @@ type index_d_TimeSlot = TimeSlot;
|
|
|
4452
4224
|
type index_d_TimeSlotTableCombination = TimeSlotTableCombination;
|
|
4453
4225
|
type index_d_Type = Type;
|
|
4454
4226
|
declare const index_d_Type: typeof Type;
|
|
4455
|
-
declare const
|
|
4227
|
+
declare const index_d_checkReservationDetails: typeof checkReservationDetails;
|
|
4456
4228
|
declare const index_d_getTimeSlots: typeof getTimeSlots;
|
|
4457
4229
|
declare namespace index_d {
|
|
4458
|
-
export { type index_d_CheckReservationDetailsRequest as CheckReservationDetailsRequest, type index_d_CheckReservationDetailsResponse as CheckReservationDetailsResponse, type index_d_GetTimeSlotsOptions as GetTimeSlotsOptions, type index_d_GetTimeSlotsRequest as GetTimeSlotsRequest, type index_d_GetTimeSlotsResponse as GetTimeSlotsResponse, type index_d_GetTimeSlotsResponseNonNullableFields as GetTimeSlotsResponseNonNullableFields, type index_d_ReservationLocationConflict as ReservationLocationConflict, index_d_Status as Status, type index_d_Table as Table, type index_d_TableCombination as TableCombination, type index_d_TableCombinationConflict as TableCombinationConflict, index_d_TableCombinationConflictType as TableCombinationConflictType, type index_d_TableConflict as TableConflict, index_d_TableConflictType as TableConflictType, type index_d_TableReservedConflict as TableReservedConflict, type index_d_TimeSlot as TimeSlot, type index_d_TimeSlotTableCombination as TimeSlotTableCombination, index_d_Type as Type,
|
|
4230
|
+
export { type index_d_CheckReservationDetailsOptions as CheckReservationDetailsOptions, type index_d_CheckReservationDetailsRequest as CheckReservationDetailsRequest, type index_d_CheckReservationDetailsResponse as CheckReservationDetailsResponse, type index_d_CheckReservationDetailsResponseNonNullableFields as CheckReservationDetailsResponseNonNullableFields, type index_d_CheckTimeSlotRequest as CheckTimeSlotRequest, type index_d_CheckTimeSlotResponse as CheckTimeSlotResponse, type index_d_GetTimeSlotsOptions as GetTimeSlotsOptions, type index_d_GetTimeSlotsRequest as GetTimeSlotsRequest, type index_d_GetTimeSlotsResponse as GetTimeSlotsResponse, type index_d_GetTimeSlotsResponseNonNullableFields as GetTimeSlotsResponseNonNullableFields, type index_d_ReservationLocationConflict as ReservationLocationConflict, index_d_Status as Status, type index_d_Table as Table, type index_d_TableCombination as TableCombination, type index_d_TableCombinationAvailability as TableCombinationAvailability, type index_d_TableCombinationConflict as TableCombinationConflict, index_d_TableCombinationConflictType as TableCombinationConflictType, type index_d_TableConflict as TableConflict, index_d_TableConflictType as TableConflictType, type index_d_TableReservedConflict as TableReservedConflict, type index_d_TimeSlot as TimeSlot, type index_d_TimeSlotTableCombination as TimeSlotTableCombination, index_d_Type as Type, index_d_checkReservationDetails as checkReservationDetails, index_d_getTimeSlots as getTimeSlots };
|
|
4459
4231
|
}
|
|
4460
4232
|
|
|
4461
4233
|
export { index_d$1 as reservationLocations, index_d$2 as reservations, index_d as timeSlots };
|