@wix/table-reservations 1.0.107 → 1.0.109

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/table-reservations",
3
- "version": "1.0.107",
3
+ "version": "1.0.109",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@wix/table-reservations_reservation-locations": "1.0.39",
22
22
  "@wix/table-reservations_reservations": "1.0.35",
23
- "@wix/table-reservations_time-slots": "1.0.30"
23
+ "@wix/table-reservations_time-slots": "1.0.32"
24
24
  },
25
25
  "devDependencies": {
26
26
  "glob": "^10.4.1",
@@ -45,5 +45,5 @@
45
45
  "fqdn": ""
46
46
  }
47
47
  },
48
- "falconPackageHash": "9ab750598cdc9e50540e7490c4d00256e813c8237990d6dbe6bc3823"
48
+ "falconPackageHash": "b7912d6ddce540b5b5deff2726f0b758fe9f00e8e2f2349c3729d636"
49
49
  }
@@ -4066,7 +4066,7 @@ interface TimeSlotTableCombination {
4066
4066
  interface GetTimeSlotsRequest {
4067
4067
  /** ID of the reservation location for which to retrieve time slots. */
4068
4068
  reservationLocationId: string;
4069
- /** Date and time for which to retrieve a time slot. */
4069
+ /** Date and time for which to retrieve a time slot in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#coordinated_Universal_Time_(UTC)) format. */
4070
4070
  date: Date;
4071
4071
  /**
4072
4072
  * Duration in minutes of the time slot.
@@ -4166,25 +4166,35 @@ interface TableReservedConflict {
4166
4166
  reservationIds?: string[];
4167
4167
  }
4168
4168
  interface CheckTimeSlotRequest {
4169
- /** Reservation location ID. */
4169
+ /** ID of the reservation location for which to check the time slot. */
4170
4170
  reservationLocationId?: string;
4171
- /** Date. */
4171
+ /** Date and time of the time slot to check. */
4172
4172
  date?: Date;
4173
- /** Duration. */
4173
+ /**
4174
+ * Duration of the time slot in minutes .
4175
+ *
4176
+ * Min: `5`
4177
+ */
4174
4178
  duration?: number | null;
4175
- /** Party size. */
4179
+ /** Party size to check the restaurant's availability for. */
4176
4180
  partySize?: number | null;
4177
- /** Reservation, that should be ignored during the check. */
4181
+ /**
4182
+ * ID of a reservation to ignore during the check.
4183
+ *
4184
+ * Use this when rescheduling a reservation to exclude it in its current state from the availability calculations.
4185
+ */
4178
4186
  excludeReservationId?: string | null;
4179
4187
  }
4180
4188
  interface CheckTimeSlotResponse {
4181
- /** Table combinations availabilities. */
4189
+ /** Table combinations and their availability information. */
4182
4190
  tableCombinationAvailabilities?: TableCombinationAvailability[];
4183
- /** Reservation location conflicts. */
4191
+ /** Reservation location conflicts that would occur by making a reservation for the given party size in the given time slot. */
4184
4192
  reservationLocationConflicts?: Type[];
4185
4193
  }
4186
4194
  interface TableCombinationAvailability {
4195
+ /** IDs of the tables in the table combination. */
4187
4196
  tableIds?: string[];
4197
+ /** Conflicts that would be generated by attempting to accommodate the proposed reservation using the table combination. */
4188
4198
  tableCombinationConflicts?: TableCombinationConflictType[];
4189
4199
  }
4190
4200
  interface TimeSlotTableCombinationNonNullableFields {
@@ -4066,7 +4066,7 @@ interface TimeSlotTableCombination {
4066
4066
  interface GetTimeSlotsRequest {
4067
4067
  /** ID of the reservation location for which to retrieve time slots. */
4068
4068
  reservationLocationId: string;
4069
- /** Date and time for which to retrieve a time slot. */
4069
+ /** Date and time for which to retrieve a time slot in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#coordinated_Universal_Time_(UTC)) format. */
4070
4070
  date: Date;
4071
4071
  /**
4072
4072
  * Duration in minutes of the time slot.
@@ -4166,25 +4166,35 @@ interface TableReservedConflict {
4166
4166
  reservationIds?: string[];
4167
4167
  }
4168
4168
  interface CheckTimeSlotRequest {
4169
- /** Reservation location ID. */
4169
+ /** ID of the reservation location for which to check the time slot. */
4170
4170
  reservationLocationId?: string;
4171
- /** Date. */
4171
+ /** Date and time of the time slot to check. */
4172
4172
  date?: Date;
4173
- /** Duration. */
4173
+ /**
4174
+ * Duration of the time slot in minutes .
4175
+ *
4176
+ * Min: `5`
4177
+ */
4174
4178
  duration?: number | null;
4175
- /** Party size. */
4179
+ /** Party size to check the restaurant's availability for. */
4176
4180
  partySize?: number | null;
4177
- /** Reservation, that should be ignored during the check. */
4181
+ /**
4182
+ * ID of a reservation to ignore during the check.
4183
+ *
4184
+ * Use this when rescheduling a reservation to exclude it in its current state from the availability calculations.
4185
+ */
4178
4186
  excludeReservationId?: string | null;
4179
4187
  }
4180
4188
  interface CheckTimeSlotResponse {
4181
- /** Table combinations availabilities. */
4189
+ /** Table combinations and their availability information. */
4182
4190
  tableCombinationAvailabilities?: TableCombinationAvailability[];
4183
- /** Reservation location conflicts. */
4191
+ /** Reservation location conflicts that would occur by making a reservation for the given party size in the given time slot. */
4184
4192
  reservationLocationConflicts?: Type[];
4185
4193
  }
4186
4194
  interface TableCombinationAvailability {
4195
+ /** IDs of the tables in the table combination. */
4187
4196
  tableIds?: string[];
4197
+ /** Conflicts that would be generated by attempting to accommodate the proposed reservation using the table combination. */
4188
4198
  tableCombinationConflicts?: TableCombinationConflictType[];
4189
4199
  }
4190
4200
  interface TimeSlotTableCombinationNonNullableFields {
@@ -3470,7 +3470,7 @@ declare enum Status$1 {
3470
3470
  interface GetTimeSlotsRequest$1 {
3471
3471
  /** ID of the reservation location for which to retrieve time slots. */
3472
3472
  reservationLocationId: string;
3473
- /** Date and time for which to retrieve a time slot. */
3473
+ /** Date and time for which to retrieve a time slot in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#coordinated_Universal_Time_(UTC)) format. */
3474
3474
  date: Date;
3475
3475
  /**
3476
3476
  * Duration in minutes of the time slot.
@@ -3633,7 +3633,7 @@ declare enum Status {
3633
3633
  interface GetTimeSlotsRequest {
3634
3634
  /** ID of the reservation location for which to retrieve time slots. */
3635
3635
  reservationLocationId: string;
3636
- /** Date and time for which to retrieve a time slot. */
3636
+ /** Date and time for which to retrieve a time slot in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#coordinated_Universal_Time_(UTC)) format. */
3637
3637
  date: Date;
3638
3638
  /**
3639
3639
  * Duration in minutes of the time slot.