@wix/table-reservations 1.0.164 → 1.0.166
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 +5 -5
- package/type-bundles/context.bundle.d.ts +79 -138
- package/type-bundles/index.bundle.d.ts +79 -138
- package/type-bundles/meta.bundle.d.ts +134 -175
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/table-reservations",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.166",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"type-bundles"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@wix/table-reservations_reservation-locations": "1.0.
|
|
25
|
-
"@wix/table-reservations_reservations": "1.0.
|
|
26
|
-
"@wix/table-reservations_time-slots": "1.0.
|
|
24
|
+
"@wix/table-reservations_reservation-locations": "1.0.73",
|
|
25
|
+
"@wix/table-reservations_reservations": "1.0.59",
|
|
26
|
+
"@wix/table-reservations_time-slots": "1.0.52"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"glob": "^10.4.1",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": ""
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "afd260da1c801849a391994a1de226d715b65e593920485f6bdde621"
|
|
52
52
|
}
|
|
@@ -505,9 +505,6 @@ interface Reservation {
|
|
|
505
505
|
* Reservation source.
|
|
506
506
|
*
|
|
507
507
|
* This indicates how the reservation was made.
|
|
508
|
-
* * `ONLINE` indicates that the customer made the reservation through a website or app.
|
|
509
|
-
* * `OFFLINE` indicates that the reservation was made by a restaurant employee, for example when a customer calls to make a reservation.
|
|
510
|
-
* * `WALK-IN` indicates that the customer did not make a reservation beforehand, and the reservation was entered into the system by a restaurant employee when the customer arrived at the restaurant.
|
|
511
508
|
*/
|
|
512
509
|
source?: Source;
|
|
513
510
|
/** Reservation details. */
|
|
@@ -570,33 +567,35 @@ interface Tables {
|
|
|
570
567
|
ids?: string[];
|
|
571
568
|
}
|
|
572
569
|
declare enum Status$1 {
|
|
570
|
+
/** Undefined reservation status. */
|
|
573
571
|
UNKNOWN = "UNKNOWN",
|
|
574
|
-
/**
|
|
572
|
+
/** A customer has begun the reservation flow, a temporary reservation is created and will expire in 10 minutes unless the customer moves forward with the reservation flow. This phase temporarily reserves the required number of seats and tables for a given party size at a chosen time while a customer enters details and/or confirms their reservation request. */
|
|
575
573
|
HELD = "HELD",
|
|
576
|
-
/** The reservation
|
|
574
|
+
/** The reservation is confirmed. */
|
|
577
575
|
RESERVED = "RESERVED",
|
|
578
|
-
/** The reservation
|
|
576
|
+
/** The reservation is canceled. */
|
|
579
577
|
CANCELED = "CANCELED",
|
|
580
|
-
/** The reservation
|
|
578
|
+
/** The reservation completed successfully. */
|
|
581
579
|
FINISHED = "FINISHED",
|
|
582
|
-
/** The
|
|
580
|
+
/** The customer didn't show up for their reservation. */
|
|
583
581
|
NO_SHOW = "NO_SHOW",
|
|
584
|
-
/** The
|
|
582
|
+
/** The customer is currently occupying the table. */
|
|
585
583
|
SEATED = "SEATED",
|
|
586
|
-
/**
|
|
584
|
+
/** A customer finished requesting this reservation, meaning they have added all necessary details and confirmed the request. Restaurant staff can now either approve or decline the reservation request. */
|
|
587
585
|
REQUESTED = "REQUESTED",
|
|
588
|
-
/** The owner declined
|
|
586
|
+
/** The restaurant’s owner or staff declined the customer’s request to make the reservation. */
|
|
589
587
|
DECLINED = "DECLINED",
|
|
590
|
-
/**
|
|
588
|
+
/** A customer has begun the checkout flow, the temporary reservation is moved to this status and will expire in 10 minutes from the created time, during which time the reservee should pay. This status is set automatically when the reserve reservation endpoint is called for a reservation in `HELD` status and payment is needed. After payment is completed status will be changed automatically to `RESERVED`. */
|
|
591
589
|
PAYMENT_PENDING = "PAYMENT_PENDING"
|
|
592
590
|
}
|
|
593
591
|
declare enum Source {
|
|
592
|
+
/** Undefined reservation source. */
|
|
594
593
|
UNKNOWN = "UNKNOWN",
|
|
595
|
-
/** The reservation
|
|
594
|
+
/** The reservation was made by a restaurant employee, for example when a customer calls to make a reservation. */
|
|
596
595
|
OFFLINE = "OFFLINE",
|
|
597
|
-
/** The reservation
|
|
596
|
+
/** The reservation was made through a website or app. */
|
|
598
597
|
ONLINE = "ONLINE",
|
|
599
|
-
/** The reservation
|
|
598
|
+
/** The reservation was made by a restaurant employee when the customer arrived at the restaurant without a prior reservation. */
|
|
600
599
|
WALK_IN = "WALK_IN"
|
|
601
600
|
}
|
|
602
601
|
/** Reservation details. */
|
|
@@ -674,18 +673,19 @@ interface TableWithReservationConflicts {
|
|
|
674
673
|
reservationIds?: string[];
|
|
675
674
|
}
|
|
676
675
|
declare enum PaymentStatus {
|
|
676
|
+
/** Undefined payment status. */
|
|
677
677
|
UNKNOWN = "UNKNOWN",
|
|
678
678
|
/** A reservation is free of charge. */
|
|
679
679
|
FREE = "FREE",
|
|
680
|
-
/**
|
|
680
|
+
/** Payment is not received yet. */
|
|
681
681
|
NOT_PAID = "NOT_PAID",
|
|
682
|
-
/**
|
|
682
|
+
/** The corresponding reservation order was fully paid. */
|
|
683
683
|
PAID = "PAID",
|
|
684
|
-
/**
|
|
684
|
+
/** The corresponding reservation order was refunded, but the refund amount is less than the order total price. */
|
|
685
685
|
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
|
|
686
|
-
/**
|
|
686
|
+
/** The corresponding reservation order was fully refunded. The refund amount equals the total price. */
|
|
687
687
|
FULLY_REFUNDED = "FULLY_REFUNDED",
|
|
688
|
-
/**
|
|
688
|
+
/** The corresponding reservation order was partially paid. */
|
|
689
689
|
PARTIALLY_PAID = "PARTIALLY_PAID"
|
|
690
690
|
}
|
|
691
691
|
interface ExtendedFields$1 {
|
|
@@ -753,15 +753,23 @@ interface CreateReservationRequest {
|
|
|
753
753
|
ignoreReservationLocationConflicts?: Type$2[];
|
|
754
754
|
}
|
|
755
755
|
declare enum TableCombinationConflictType$1 {
|
|
756
|
+
/** Undefined conflict type. */
|
|
756
757
|
UNKNOWN = "UNKNOWN",
|
|
758
|
+
/** One or more of the chosen tables are already reserved. */
|
|
757
759
|
RESERVED = "RESERVED",
|
|
760
|
+
/** The party is too big for the selected table. */
|
|
758
761
|
TOO_BIG = "TOO_BIG",
|
|
762
|
+
/** The party is too small for the selected table. */
|
|
759
763
|
TOO_SMALL = "TOO_SMALL",
|
|
764
|
+
/** The restaurant does not allow online reservations. */
|
|
760
765
|
OFFLINE_ONLY = "OFFLINE_ONLY"
|
|
761
766
|
}
|
|
762
767
|
declare enum Type$2 {
|
|
768
|
+
/** Undefined reservation location conflict type. */
|
|
763
769
|
UNKNOWN = "UNKNOWN",
|
|
770
|
+
/** The restaurant cannot accommodate a party of the given size according to party pacing settings. */
|
|
764
771
|
PARTY_PACING = "PARTY_PACING",
|
|
772
|
+
/** The required number of seats are unavailable according to seat pacing settings. */
|
|
765
773
|
SEAT_PACING = "SEAT_PACING"
|
|
766
774
|
}
|
|
767
775
|
interface CreateReservationResponse {
|
|
@@ -795,7 +803,12 @@ interface GetReservationRequest {
|
|
|
795
803
|
fieldsets?: Set$1[];
|
|
796
804
|
}
|
|
797
805
|
declare enum Set$1 {
|
|
806
|
+
/**
|
|
807
|
+
* Returns `id`, `status`, `details.reservationLocationId`, `details.startDate`, `details.endDate`, `details.partySize`, `createdDate`, `revision`, `declineReason`,
|
|
808
|
+
* `configuration.reservationForm.customFieldDefinitions`, `configuration.reservationForm.lastNameRequired`, `configuration.reservationForm.emailRequired`, `configuration.reservationForm.emailMarketingCheckbox`.
|
|
809
|
+
*/
|
|
798
810
|
PUBLIC = "PUBLIC",
|
|
811
|
+
/** Returns all fields. */
|
|
799
812
|
FULL = "FULL"
|
|
800
813
|
}
|
|
801
814
|
interface GetReservationResponse {
|
|
@@ -805,23 +818,8 @@ interface GetReservationResponse {
|
|
|
805
818
|
interface UpdateReservationRequest {
|
|
806
819
|
/** Reservation information to update. */
|
|
807
820
|
reservation: Reservation;
|
|
808
|
-
/**
|
|
809
|
-
* Ignore table combination conflicts of the types specified in the array. This ensures that the reservation is updated even if the given conflicts would normally prevent it.
|
|
810
|
-
*
|
|
811
|
-
* Possible values:
|
|
812
|
-
* * `"RESERVED"`: One or more of the chosen tables are already reserved.
|
|
813
|
-
* * `"TOO_BIG"`: The party is too big for the selected table.
|
|
814
|
-
* * `"TOO_SMALL"`: The party is too small for the selected table.
|
|
815
|
-
* * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
|
|
816
|
-
*/
|
|
821
|
+
/** Ignore table combination conflicts of the types included in the array. This ensures that the reservation is updated even if the given conflicts would normally prevent it. */
|
|
817
822
|
ignoreTableCombinationConflicts?: TableCombinationConflictType$1[];
|
|
818
|
-
/**
|
|
819
|
-
* Ignored reservation location conflicts of the types specified in the array. This ensures that the reservation is updated even if the given conflicts would normally prevent it.
|
|
820
|
-
*
|
|
821
|
-
* Possible values:
|
|
822
|
-
* * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
|
|
823
|
-
* * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
|
|
824
|
-
*/
|
|
825
823
|
ignoreReservationLocationConflicts?: Type$2[];
|
|
826
824
|
}
|
|
827
825
|
interface UpdateReservationResponse {
|
|
@@ -914,18 +912,7 @@ interface ListReservationsRequest {
|
|
|
914
912
|
startDateFrom?: Date | null;
|
|
915
913
|
/** Only reservations starting before this date are returned. */
|
|
916
914
|
startDateTo?: Date | null;
|
|
917
|
-
/**
|
|
918
|
-
* Only reservations with this status are returned.
|
|
919
|
-
*
|
|
920
|
-
* * `HELD`: The reservation is temporary and will expire in 10 minutes if its status isn’t changed. This phase temporarily reserves the required number of seats and tables for a given party size at a chosen time while a customer enters details and/or confirms their reservation request.
|
|
921
|
-
* * `REQUESTED`: A customer finished requesting this reservation, meaning they have added all necessary details and confirmed the request. Restaurant staff can now either approve or decline the reservation request.
|
|
922
|
-
* * `DECLINED`: The restaurant’s owner or staff declined the customer’s request to make the reservation.
|
|
923
|
-
* * `RESERVED`: The reservation is confirmed.
|
|
924
|
-
* * `SEATED`: The customer is currently occupying the table.
|
|
925
|
-
* * `CANCELED`: The reservation is canceled.
|
|
926
|
-
* * `NO_SHOW`: The customer didn't show up for their reservation.
|
|
927
|
-
* * `FINISHED`: The reservation completed successfully.
|
|
928
|
-
*/
|
|
915
|
+
/** Only reservations with this status are returned. */
|
|
929
916
|
status?: Status$1;
|
|
930
917
|
}
|
|
931
918
|
interface CursorPaging$1 {
|
|
@@ -945,13 +932,14 @@ interface Sorting$1 {
|
|
|
945
932
|
fieldName?: string;
|
|
946
933
|
/**
|
|
947
934
|
* Sort order.
|
|
948
|
-
*
|
|
949
|
-
* Use `ASC` for ascending order or `DESC` for descending order. Defaults to `ASC`.
|
|
935
|
+
* Default: `ASC`.
|
|
950
936
|
*/
|
|
951
937
|
order?: SortOrder$1;
|
|
952
938
|
}
|
|
953
939
|
declare enum SortOrder$1 {
|
|
940
|
+
/** Sort by ascending order. */
|
|
954
941
|
ASC = "ASC",
|
|
942
|
+
/** Sort by descending order. */
|
|
955
943
|
DESC = "DESC"
|
|
956
944
|
}
|
|
957
945
|
interface ListReservationsResponse {
|
|
@@ -1112,6 +1100,7 @@ interface IncludeMissingValuesOptions {
|
|
|
1112
1100
|
addToBucket?: string;
|
|
1113
1101
|
}
|
|
1114
1102
|
declare enum ScalarType {
|
|
1103
|
+
/** Undefined scalar type. */
|
|
1115
1104
|
UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
|
|
1116
1105
|
/** Count of distinct values. */
|
|
1117
1106
|
COUNT_DISTINCT = "COUNT_DISTINCT",
|
|
@@ -1125,14 +1114,15 @@ declare enum ScalarType {
|
|
|
1125
1114
|
AVG = "AVG"
|
|
1126
1115
|
}
|
|
1127
1116
|
declare enum NestedAggregationType {
|
|
1117
|
+
/** Undefined aggregation type. */
|
|
1128
1118
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
1129
1119
|
/** An aggregation where result buckets are dynamically built - one per unique value. */
|
|
1130
1120
|
VALUE = "VALUE",
|
|
1131
1121
|
/** An aggregation where you can define a set of ranges - each representing a bucket. */
|
|
1132
1122
|
RANGE = "RANGE",
|
|
1133
|
-
/** A single-value metric aggregation -
|
|
1123
|
+
/** A single-value metric aggregation - such as min, max, sum, and avg. */
|
|
1134
1124
|
SCALAR = "SCALAR",
|
|
1135
|
-
/** An aggregation where result buckets are dynamically built - one per time interval
|
|
1125
|
+
/** An aggregation where result buckets are dynamically built - one per time interval such as hour, day, or week. */
|
|
1136
1126
|
DATE_HISTOGRAM = "DATE_HISTOGRAM"
|
|
1137
1127
|
}
|
|
1138
1128
|
interface ValueAggregation extends ValueAggregationOptionsOneOf {
|
|
@@ -1210,14 +1200,15 @@ interface NestedAggregationItemKindOneOf {
|
|
|
1210
1200
|
dateHistogram?: DateHistogramAggregation;
|
|
1211
1201
|
}
|
|
1212
1202
|
declare enum AggregationType {
|
|
1203
|
+
/** Undefined aggregation type. */
|
|
1213
1204
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
1214
1205
|
/** An aggregation where result buckets are dynamically built - one per unique value. */
|
|
1215
1206
|
VALUE = "VALUE",
|
|
1216
1207
|
/** An aggregation where you can define a set of ranges - each representing a bucket. */
|
|
1217
1208
|
RANGE = "RANGE",
|
|
1218
|
-
/** A single-value metric aggregation -
|
|
1209
|
+
/** A single-value metric aggregation - such as min, max, sum, or avg. */
|
|
1219
1210
|
SCALAR = "SCALAR",
|
|
1220
|
-
/** An aggregation where result buckets are dynamically built - one per time interval
|
|
1211
|
+
/** An aggregation where result buckets are dynamically built - one per time interval such as hour, day, or week. */
|
|
1221
1212
|
DATE_HISTOGRAM = "DATE_HISTOGRAM",
|
|
1222
1213
|
/** Multi-level aggregation, where each next aggregation is nested within the previous one. */
|
|
1223
1214
|
NESTED = "NESTED"
|
|
@@ -1770,9 +1761,6 @@ interface UpdateReservation {
|
|
|
1770
1761
|
* Reservation source.
|
|
1771
1762
|
*
|
|
1772
1763
|
* This indicates how the reservation was made.
|
|
1773
|
-
* * `ONLINE` indicates that the customer made the reservation through a website or app.
|
|
1774
|
-
* * `OFFLINE` indicates that the reservation was made by a restaurant employee, for example when a customer calls to make a reservation.
|
|
1775
|
-
* * `WALK-IN` indicates that the customer did not make a reservation beforehand, and the reservation was entered into the system by a restaurant employee when the customer arrived at the restaurant.
|
|
1776
1764
|
*/
|
|
1777
1765
|
source?: Source;
|
|
1778
1766
|
/** Reservation details. */
|
|
@@ -1830,23 +1818,8 @@ interface UpdateReservation {
|
|
|
1830
1818
|
extendedFields?: ExtendedFields$1;
|
|
1831
1819
|
}
|
|
1832
1820
|
interface UpdateReservationOptions {
|
|
1833
|
-
/**
|
|
1834
|
-
* Ignore table combination conflicts of the types specified in the array. This ensures that the reservation is updated even if the given conflicts would normally prevent it.
|
|
1835
|
-
*
|
|
1836
|
-
* Possible values:
|
|
1837
|
-
* * `"RESERVED"`: One or more of the chosen tables are already reserved.
|
|
1838
|
-
* * `"TOO_BIG"`: The party is too big for the selected table.
|
|
1839
|
-
* * `"TOO_SMALL"`: The party is too small for the selected table.
|
|
1840
|
-
* * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
|
|
1841
|
-
*/
|
|
1821
|
+
/** Ignore table combination conflicts of the types included in the array. This ensures that the reservation is updated even if the given conflicts would normally prevent it. */
|
|
1842
1822
|
ignoreTableCombinationConflicts?: TableCombinationConflictType$1[];
|
|
1843
|
-
/**
|
|
1844
|
-
* Ignored reservation location conflicts of the types specified in the array. This ensures that the reservation is updated even if the given conflicts would normally prevent it.
|
|
1845
|
-
*
|
|
1846
|
-
* Possible values:
|
|
1847
|
-
* * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
|
|
1848
|
-
* * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
|
|
1849
|
-
*/
|
|
1850
1823
|
ignoreReservationLocationConflicts?: Type$2[];
|
|
1851
1824
|
}
|
|
1852
1825
|
interface UpdateExtendedFieldsOptions$1 {
|
|
@@ -1872,18 +1845,7 @@ interface ListReservationsOptions {
|
|
|
1872
1845
|
startDateFrom?: Date | null;
|
|
1873
1846
|
/** Only reservations starting before this date are returned. */
|
|
1874
1847
|
startDateTo?: Date | null;
|
|
1875
|
-
/**
|
|
1876
|
-
* Only reservations with this status are returned.
|
|
1877
|
-
*
|
|
1878
|
-
* * `HELD`: The reservation is temporary and will expire in 10 minutes if its status isn’t changed. This phase temporarily reserves the required number of seats and tables for a given party size at a chosen time while a customer enters details and/or confirms their reservation request.
|
|
1879
|
-
* * `REQUESTED`: A customer finished requesting this reservation, meaning they have added all necessary details and confirmed the request. Restaurant staff can now either approve or decline the reservation request.
|
|
1880
|
-
* * `DECLINED`: The restaurant’s owner or staff declined the customer’s request to make the reservation.
|
|
1881
|
-
* * `RESERVED`: The reservation is confirmed.
|
|
1882
|
-
* * `SEATED`: The customer is currently occupying the table.
|
|
1883
|
-
* * `CANCELED`: The reservation is canceled.
|
|
1884
|
-
* * `NO_SHOW`: The customer didn't show up for their reservation.
|
|
1885
|
-
* * `FINISHED`: The reservation completed successfully.
|
|
1886
|
-
*/
|
|
1848
|
+
/** Only reservations with this status are returned. */
|
|
1887
1849
|
status?: Status$1;
|
|
1888
1850
|
}
|
|
1889
1851
|
interface QueryCursorResult$1 {
|
|
@@ -2882,18 +2844,19 @@ interface GetReservationLocationRequest {
|
|
|
2882
2844
|
/**
|
|
2883
2845
|
* Array of named, predefined sets of projected fields to be returned.
|
|
2884
2846
|
*
|
|
2885
|
-
* - `PUBLIC`: Returns `id`, `archived`, `location`, `default`, `configuration.onlineReservations.partiesSize`, `configuration.onlineReservations.minimumReservationNotice`, `configuration.onlineReservations.businessSchedule`,
|
|
2886
|
-
* `configuration.onlineReservations.showPhoneNumber`, `configuration.onlineReservations.onlineReservationsEnabled`, `configuration.onlineReservations.manualApproval`, `configuration.reservationForm.submitMessage`,
|
|
2887
|
-
* `configuration.reservationForm.policiesEnabled`, `configuration.reservationForm.termsAndConditions`, `configuration.reservationForm.privacyPolicy`,
|
|
2888
|
-
* `configuration.reservationForm.customFieldDefinitions`, `configuration.reservationForm.lastNameRequired`, `configuration.reservationForm.emailRequired`, `configuration.reservationForm.emailMarketingCheckbox`.
|
|
2889
|
-
* - `FULL`: Returns all fields.
|
|
2890
|
-
*
|
|
2891
2847
|
* Default: `PUBLIC`.
|
|
2892
2848
|
*/
|
|
2893
2849
|
fieldsets?: Set[];
|
|
2894
2850
|
}
|
|
2895
2851
|
declare enum Set {
|
|
2852
|
+
/**
|
|
2853
|
+
* Returns `id`, `archived`, `location`, `default`, `configuration.onlineReservations.partiesSize`, `configuration.onlineReservations.minimumReservationNotice`, `configuration.onlineReservations.businessSchedule`,
|
|
2854
|
+
* `configuration.onlineReservations.showPhoneNumber`, `configuration.onlineReservations.onlineReservationsEnabled`, `configuration.onlineReservations.manualApproval`, `configuration.reservationForm.submitMessage`,
|
|
2855
|
+
* `configuration.reservationForm.policiesEnabled`, `configuration.reservationForm.termsAndConditions`, `configuration.reservationForm.privacyPolicy`,
|
|
2856
|
+
* `configuration.reservationForm.customFieldDefinitions`, `configuration.reservationForm.lastNameRequired`, `configuration.reservationForm.emailRequired`, `configuration.reservationForm.emailMarketingCheckbox`.
|
|
2857
|
+
*/
|
|
2896
2858
|
PUBLIC = "PUBLIC",
|
|
2859
|
+
/** - `FULL`: Returns all fields. */
|
|
2897
2860
|
FULL = "FULL"
|
|
2898
2861
|
}
|
|
2899
2862
|
interface GetReservationLocationResponse {
|
|
@@ -3102,7 +3065,8 @@ declare enum Type$1 {
|
|
|
3102
3065
|
APPROVAL_ABSENT = "APPROVAL_ABSENT",
|
|
3103
3066
|
MANUAL_APPROVAL_DEPRECATED = "MANUAL_APPROVAL_DEPRECATED",
|
|
3104
3067
|
APPROVAL_THRESHOLD_OUTSIDE_PARTY_SIZE = "APPROVAL_THRESHOLD_OUTSIDE_PARTY_SIZE",
|
|
3105
|
-
APPROVAL_AND_MANUAL_APPROVAL_ARE_DIFFERENT = "APPROVAL_AND_MANUAL_APPROVAL_ARE_DIFFERENT"
|
|
3068
|
+
APPROVAL_AND_MANUAL_APPROVAL_ARE_DIFFERENT = "APPROVAL_AND_MANUAL_APPROVAL_ARE_DIFFERENT",
|
|
3069
|
+
MANUAL_APPROVAL_THRESHOLD_OUTSIDE_PARTIES_SIZE = "MANUAL_APPROVAL_THRESHOLD_OUTSIDE_PARTIES_SIZE"
|
|
3106
3070
|
}
|
|
3107
3071
|
interface NotAllReservationFieldsViolation {
|
|
3108
3072
|
/** Field types that are absent. */
|
|
@@ -3224,12 +3188,6 @@ interface QueryReservationLocationsRequest {
|
|
|
3224
3188
|
/**
|
|
3225
3189
|
* Array of named, predefined sets of projected fields to be returned.
|
|
3226
3190
|
*
|
|
3227
|
-
* - `PUBLIC`: Returns `id`, `archived`, `location`, `default`, `configuration.onlineReservations.partiesSize`, `configuration.onlineReservations.minimumReservationNotice`, `configuration.onlineReservations.businessSchedule`,
|
|
3228
|
-
* `configuration.onlineReservations.showPhoneNumber`, `configuration.onlineReservations.onlineReservationsEnabled`, `configuration.onlineReservations.manualApproval`, `configuration.reservationForm.submitMessage`,
|
|
3229
|
-
* `configuration.reservationForm.policiesEnabled`, `configuration.reservationForm.termsAndConditions`, `configuration.reservationForm.privacyPolicy`,
|
|
3230
|
-
* `configuration.reservationForm.customFieldDefinitions`, `configuration.reservationForm.lastNameRequired`, `configuration.reservationForm.emailRequired`, `configuration.reservationForm.emailMarketingCheckbox`.
|
|
3231
|
-
* - `FULL`: Returns all fields.
|
|
3232
|
-
*
|
|
3233
3191
|
* Default: `PUBLIC`.
|
|
3234
3192
|
*/
|
|
3235
3193
|
fieldsets?: Set[];
|
|
@@ -3269,12 +3227,14 @@ interface Sorting {
|
|
|
3269
3227
|
/**
|
|
3270
3228
|
* Sort order.
|
|
3271
3229
|
*
|
|
3272
|
-
*
|
|
3230
|
+
* Defaults to `ASC`.
|
|
3273
3231
|
*/
|
|
3274
3232
|
order?: SortOrder;
|
|
3275
3233
|
}
|
|
3276
3234
|
declare enum SortOrder {
|
|
3235
|
+
/** Soer by ascending order. */
|
|
3277
3236
|
ASC = "ASC",
|
|
3237
|
+
/** Sort by descending order. */
|
|
3278
3238
|
DESC = "DESC"
|
|
3279
3239
|
}
|
|
3280
3240
|
interface Paging {
|
|
@@ -3321,12 +3281,6 @@ interface ListReservationLocationsRequest {
|
|
|
3321
3281
|
/**
|
|
3322
3282
|
* Array of named, predefined sets of projected fields to be returned.
|
|
3323
3283
|
*
|
|
3324
|
-
* - `PUBLIC`: Returns `id`, `archived`, `location`, `default`, `configuration.onlineReservations.partiesSize`, `configuration.onlineReservations.minimumReservationNotice`, `configuration.onlineReservations.businessSchedule`,
|
|
3325
|
-
* `configuration.onlineReservations.showPhoneNumber`, `configuration.onlineReservations.onlineReservationsEnabled`, `configuration.onlineReservations.manualApproval`, `configuration.reservationForm.submitMessage`,
|
|
3326
|
-
* `configuration.reservationForm.policiesEnabled`, `configuration.reservationForm.termsAndConditions`, `configuration.reservationForm.privacyPolicy`,
|
|
3327
|
-
* `configuration.reservationForm.customFieldDefinitions`, `configuration.reservationForm.lastNameRequired`, `configuration.reservationForm.emailRequired`, `configuration.reservationForm.emailMarketingCheckbox`.
|
|
3328
|
-
* - `FULL`: Returns all fields.
|
|
3329
|
-
*
|
|
3330
3284
|
* Default: `PUBLIC`.
|
|
3331
3285
|
*/
|
|
3332
3286
|
fieldsets?: Set[];
|
|
@@ -3362,8 +3316,8 @@ interface MigrateOldRestaurantSettingsRequest {
|
|
|
3362
3316
|
overrideNotDefault?: boolean;
|
|
3363
3317
|
}
|
|
3364
3318
|
declare enum Mode {
|
|
3365
|
-
/** DRY RUN. */
|
|
3366
3319
|
UNDEFINED = "UNDEFINED",
|
|
3320
|
+
/** Dry run. */
|
|
3367
3321
|
DRY_RUN = "DRY_RUN",
|
|
3368
3322
|
MIGRATE = "MIGRATE",
|
|
3369
3323
|
FORCE_MIGRATE = "FORCE_MIGRATE"
|
|
@@ -4713,11 +4667,11 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
4713
4667
|
*/
|
|
4714
4668
|
entityEventSequence?: string | null;
|
|
4715
4669
|
}
|
|
4716
|
-
interface
|
|
4670
|
+
interface ReservationLocationCreatedEnvelope {
|
|
4717
4671
|
entity: ReservationLocation;
|
|
4718
4672
|
metadata: EventMetadata;
|
|
4719
4673
|
}
|
|
4720
|
-
interface
|
|
4674
|
+
interface ReservationLocationUpdatedEnvelope {
|
|
4721
4675
|
entity: ReservationLocation;
|
|
4722
4676
|
metadata: EventMetadata;
|
|
4723
4677
|
}
|
|
@@ -4725,12 +4679,6 @@ interface GetReservationLocationOptions {
|
|
|
4725
4679
|
/**
|
|
4726
4680
|
* Array of named, predefined sets of projected fields to be returned.
|
|
4727
4681
|
*
|
|
4728
|
-
* - `PUBLIC`: Returns `id`, `archived`, `location`, `default`, `configuration.onlineReservations.partiesSize`, `configuration.onlineReservations.minimumReservationNotice`, `configuration.onlineReservations.businessSchedule`,
|
|
4729
|
-
* `configuration.onlineReservations.showPhoneNumber`, `configuration.onlineReservations.onlineReservationsEnabled`, `configuration.onlineReservations.manualApproval`, `configuration.reservationForm.submitMessage`,
|
|
4730
|
-
* `configuration.reservationForm.policiesEnabled`, `configuration.reservationForm.termsAndConditions`, `configuration.reservationForm.privacyPolicy`,
|
|
4731
|
-
* `configuration.reservationForm.customFieldDefinitions`, `configuration.reservationForm.lastNameRequired`, `configuration.reservationForm.emailRequired`, `configuration.reservationForm.emailMarketingCheckbox`.
|
|
4732
|
-
* - `FULL`: Returns all fields.
|
|
4733
|
-
*
|
|
4734
4682
|
* Default: `PUBLIC`.
|
|
4735
4683
|
*/
|
|
4736
4684
|
fieldsets?: Set[];
|
|
@@ -4788,12 +4736,6 @@ interface QueryReservationLocationsOptions {
|
|
|
4788
4736
|
/**
|
|
4789
4737
|
* Array of named, predefined sets of projected fields to be returned.
|
|
4790
4738
|
*
|
|
4791
|
-
* - `PUBLIC`: Returns `id`, `archived`, `location`, `default`, `configuration.onlineReservations.partiesSize`, `configuration.onlineReservations.minimumReservationNotice`, `configuration.onlineReservations.businessSchedule`,
|
|
4792
|
-
* `configuration.onlineReservations.showPhoneNumber`, `configuration.onlineReservations.onlineReservationsEnabled`, `configuration.onlineReservations.manualApproval`, `configuration.reservationForm.submitMessage`,
|
|
4793
|
-
* `configuration.reservationForm.policiesEnabled`, `configuration.reservationForm.termsAndConditions`, `configuration.reservationForm.privacyPolicy`,
|
|
4794
|
-
* `configuration.reservationForm.customFieldDefinitions`, `configuration.reservationForm.lastNameRequired`, `configuration.reservationForm.emailRequired`, `configuration.reservationForm.emailMarketingCheckbox`.
|
|
4795
|
-
* - `FULL`: Returns all fields.
|
|
4796
|
-
*
|
|
4797
4739
|
* Default: `PUBLIC`.
|
|
4798
4740
|
*/
|
|
4799
4741
|
fieldsets?: Set[] | undefined;
|
|
@@ -4843,12 +4785,6 @@ interface ListReservationLocationsOptions {
|
|
|
4843
4785
|
/**
|
|
4844
4786
|
* Array of named, predefined sets of projected fields to be returned.
|
|
4845
4787
|
*
|
|
4846
|
-
* - `PUBLIC`: Returns `id`, `archived`, `location`, `default`, `configuration.onlineReservations.partiesSize`, `configuration.onlineReservations.minimumReservationNotice`, `configuration.onlineReservations.businessSchedule`,
|
|
4847
|
-
* `configuration.onlineReservations.showPhoneNumber`, `configuration.onlineReservations.onlineReservationsEnabled`, `configuration.onlineReservations.manualApproval`, `configuration.reservationForm.submitMessage`,
|
|
4848
|
-
* `configuration.reservationForm.policiesEnabled`, `configuration.reservationForm.termsAndConditions`, `configuration.reservationForm.privacyPolicy`,
|
|
4849
|
-
* `configuration.reservationForm.customFieldDefinitions`, `configuration.reservationForm.lastNameRequired`, `configuration.reservationForm.emailRequired`, `configuration.reservationForm.emailMarketingCheckbox`.
|
|
4850
|
-
* - `FULL`: Returns all fields.
|
|
4851
|
-
*
|
|
4852
4788
|
* Default: `PUBLIC`.
|
|
4853
4789
|
*/
|
|
4854
4790
|
fieldsets?: Set[];
|
|
@@ -4922,8 +4858,8 @@ interface ListReservationLocationsSignature {
|
|
|
4922
4858
|
*/
|
|
4923
4859
|
(options?: ListReservationLocationsOptions | undefined): Promise<ListReservationLocationsResponse & ListReservationLocationsResponseNonNullableFields>;
|
|
4924
4860
|
}
|
|
4925
|
-
declare const onReservationLocationUpdated$1: EventDefinition<ReservationLocationUpdatedEnvelope, "wix.table_reservations.v1.reservation_location_updated">;
|
|
4926
4861
|
declare const onReservationLocationCreated$1: EventDefinition<ReservationLocationCreatedEnvelope, "wix.table_reservations.v1.reservation_location_created">;
|
|
4862
|
+
declare const onReservationLocationUpdated$1: EventDefinition<ReservationLocationUpdatedEnvelope, "wix.table_reservations.v1.reservation_location_updated">;
|
|
4927
4863
|
|
|
4928
4864
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
4929
4865
|
|
|
@@ -4933,17 +4869,17 @@ declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof update
|
|
|
4933
4869
|
declare const queryReservationLocations: MaybeContext<BuildRESTFunction<typeof queryReservationLocations$1> & typeof queryReservationLocations$1>;
|
|
4934
4870
|
declare const listReservationLocations: MaybeContext<BuildRESTFunction<typeof listReservationLocations$1> & typeof listReservationLocations$1>;
|
|
4935
4871
|
|
|
4936
|
-
type
|
|
4872
|
+
type _publicOnReservationLocationCreatedType = typeof onReservationLocationCreated$1;
|
|
4937
4873
|
/**
|
|
4938
4874
|
* Triggered when a reservation location is updated.
|
|
4939
4875
|
*/
|
|
4940
|
-
declare const
|
|
4876
|
+
declare const onReservationLocationCreated: ReturnType<typeof createEventModule<_publicOnReservationLocationCreatedType>>;
|
|
4941
4877
|
|
|
4942
|
-
type
|
|
4878
|
+
type _publicOnReservationLocationUpdatedType = typeof onReservationLocationUpdated$1;
|
|
4943
4879
|
/**
|
|
4944
4880
|
* Triggered when a reservation location is updated.
|
|
4945
4881
|
*/
|
|
4946
|
-
declare const
|
|
4882
|
+
declare const onReservationLocationUpdated: ReturnType<typeof createEventModule<_publicOnReservationLocationUpdatedType>>;
|
|
4947
4883
|
|
|
4948
4884
|
type context$1_ActionEvent = ActionEvent;
|
|
4949
4885
|
type context$1_Address = Address;
|
|
@@ -5200,20 +5136,17 @@ interface TimeSlot {
|
|
|
5200
5136
|
startDate?: Date | null;
|
|
5201
5137
|
/** Duration in minutes of this time slot. */
|
|
5202
5138
|
duration?: number;
|
|
5203
|
-
/**
|
|
5204
|
-
* Availability status of this time slot.
|
|
5205
|
-
*
|
|
5206
|
-
* * `AVAILABLE`: The restaurant can accommodate a party of the specified size in this time slot.
|
|
5207
|
-
* * `UNAVAILABLE`: The restaurant can't accommodate a party of the specified size in this time slot.
|
|
5208
|
-
* * `NON_WORKING_HOURS`: The restaurant is not open during this time slot.
|
|
5209
|
-
*/
|
|
5139
|
+
/** Availability status of this time slot. */
|
|
5210
5140
|
status?: Status;
|
|
5211
5141
|
/** Whether manual approval is required to make a reservation in this time slot. */
|
|
5212
5142
|
manualApproval?: boolean | null;
|
|
5213
5143
|
}
|
|
5214
5144
|
declare enum Status {
|
|
5145
|
+
/** The restaurant can accommodate a party of the given size in this time slot. */
|
|
5215
5146
|
AVAILABLE = "AVAILABLE",
|
|
5147
|
+
/** The restaurant can't accommodate a party of the given size in this time slot. */
|
|
5216
5148
|
UNAVAILABLE = "UNAVAILABLE",
|
|
5149
|
+
/** The restaurant is not open during this time slot. */
|
|
5217
5150
|
NON_WORKING_HOURS = "NON_WORKING_HOURS"
|
|
5218
5151
|
}
|
|
5219
5152
|
/** Table combination. */
|
|
@@ -5302,10 +5235,15 @@ interface TableCombinationConflict {
|
|
|
5302
5235
|
type?: TableCombinationConflictType;
|
|
5303
5236
|
}
|
|
5304
5237
|
declare enum TableCombinationConflictType {
|
|
5238
|
+
/** Undefined conflict type. */
|
|
5305
5239
|
UNKNOWN = "UNKNOWN",
|
|
5240
|
+
/** One or more of the chosen tables are already reserved. */
|
|
5306
5241
|
RESERVED = "RESERVED",
|
|
5242
|
+
/** The party is too big for the selected table. */
|
|
5307
5243
|
TOO_BIG = "TOO_BIG",
|
|
5244
|
+
/** The party is too small for the selected table. */
|
|
5308
5245
|
TOO_SMALL = "TOO_SMALL",
|
|
5246
|
+
/** The restaurant does not allow online reservations. */
|
|
5309
5247
|
OFFLINE_ONLY = "OFFLINE_ONLY"
|
|
5310
5248
|
}
|
|
5311
5249
|
interface ReservationLocationConflict {
|
|
@@ -5313,8 +5251,11 @@ interface ReservationLocationConflict {
|
|
|
5313
5251
|
type?: Type;
|
|
5314
5252
|
}
|
|
5315
5253
|
declare enum Type {
|
|
5254
|
+
/** Undefined reservation location conflict type. */
|
|
5316
5255
|
UNKNOWN = "UNKNOWN",
|
|
5256
|
+
/** The restaurant cannot accommodate a party of the given size according to party pacing settings. */
|
|
5317
5257
|
PARTY_PACING = "PARTY_PACING",
|
|
5258
|
+
/** The required number of seats are unavailable according to seat pacing settings. */
|
|
5318
5259
|
SEAT_PACING = "SEAT_PACING"
|
|
5319
5260
|
}
|
|
5320
5261
|
interface TableReservedConflict {
|