@wix/table-reservations 1.0.109 → 1.0.110
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.
|
|
3
|
+
"version": "1.0.110",
|
|
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.
|
|
23
|
+
"@wix/table-reservations_time-slots": "1.0.33"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"glob": "^10.4.1",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"fqdn": ""
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"falconPackageHash": "
|
|
48
|
+
"falconPackageHash": "de9e9868cd218940daf0526d3cdff1fc84b32fa65f835d67a15b1310"
|
|
49
49
|
}
|
|
@@ -4167,17 +4167,17 @@ interface TableReservedConflict {
|
|
|
4167
4167
|
}
|
|
4168
4168
|
interface CheckTimeSlotRequest {
|
|
4169
4169
|
/** ID of the reservation location for which to check the time slot. */
|
|
4170
|
-
reservationLocationId
|
|
4170
|
+
reservationLocationId: string;
|
|
4171
4171
|
/** Date and time of the time slot to check. */
|
|
4172
|
-
date
|
|
4172
|
+
date: Date;
|
|
4173
4173
|
/**
|
|
4174
4174
|
* Duration of the time slot in minutes .
|
|
4175
4175
|
*
|
|
4176
4176
|
* Min: `5`
|
|
4177
4177
|
*/
|
|
4178
|
-
duration
|
|
4178
|
+
duration: number | null;
|
|
4179
4179
|
/** Party size to check the restaurant's availability for. */
|
|
4180
|
-
partySize
|
|
4180
|
+
partySize: number | null;
|
|
4181
4181
|
/**
|
|
4182
4182
|
* ID of a reservation to ignore during the check.
|
|
4183
4183
|
*
|
|
@@ -4236,6 +4236,14 @@ interface CheckReservationDetailsResponseNonNullableFields {
|
|
|
4236
4236
|
requestedTableCombination?: TableCombinationNonNullableFields;
|
|
4237
4237
|
tableReservedConflicts: TableReservedConflictNonNullableFields[];
|
|
4238
4238
|
}
|
|
4239
|
+
interface TableCombinationAvailabilityNonNullableFields {
|
|
4240
|
+
tableIds: string[];
|
|
4241
|
+
tableCombinationConflicts: TableCombinationConflictType[];
|
|
4242
|
+
}
|
|
4243
|
+
interface CheckTimeSlotResponseNonNullableFields {
|
|
4244
|
+
tableCombinationAvailabilities: TableCombinationAvailabilityNonNullableFields[];
|
|
4245
|
+
reservationLocationConflicts: Type[];
|
|
4246
|
+
}
|
|
4239
4247
|
interface GetTimeSlotsOptions {
|
|
4240
4248
|
/**
|
|
4241
4249
|
* Duration in minutes of the time slot.
|
|
@@ -4260,9 +4268,28 @@ interface CheckReservationDetailsOptions {
|
|
|
4260
4268
|
/** Requested table combination. */
|
|
4261
4269
|
tableIds?: string[];
|
|
4262
4270
|
}
|
|
4271
|
+
interface CheckTimeSlotOptions {
|
|
4272
|
+
/** Date and time of the time slot to check. */
|
|
4273
|
+
date: Date;
|
|
4274
|
+
/**
|
|
4275
|
+
* Duration of the time slot in minutes .
|
|
4276
|
+
*
|
|
4277
|
+
* Min: `5`
|
|
4278
|
+
*/
|
|
4279
|
+
duration: number | null;
|
|
4280
|
+
/** Party size to check the restaurant's availability for. */
|
|
4281
|
+
partySize: number | null;
|
|
4282
|
+
/**
|
|
4283
|
+
* ID of a reservation to ignore during the check.
|
|
4284
|
+
*
|
|
4285
|
+
* Use this when rescheduling a reservation to exclude it in its current state from the availability calculations.
|
|
4286
|
+
*/
|
|
4287
|
+
excludeReservationId?: string | null;
|
|
4288
|
+
}
|
|
4263
4289
|
|
|
4264
4290
|
declare function getTimeSlots$1(httpClient: HttpClient): (reservationLocationId: string, date: Date, partySize: number | null, options?: GetTimeSlotsOptions) => Promise<GetTimeSlotsResponse & GetTimeSlotsResponseNonNullableFields>;
|
|
4265
4291
|
declare function checkReservationDetails$1(httpClient: HttpClient): (reservationLocationId: string, options?: CheckReservationDetailsOptions) => Promise<CheckReservationDetailsResponse & CheckReservationDetailsResponseNonNullableFields>;
|
|
4292
|
+
declare function checkTimeSlot$1(httpClient: HttpClient): (reservationLocationId: string, options?: CheckTimeSlotOptions) => Promise<CheckTimeSlotResponse & CheckTimeSlotResponseNonNullableFields>;
|
|
4266
4293
|
|
|
4267
4294
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
4268
4295
|
|
|
@@ -4270,13 +4297,17 @@ type _publicGetTimeSlotsType = typeof getTimeSlots$1;
|
|
|
4270
4297
|
declare const getTimeSlots: ReturnType<typeof createRESTModule<_publicGetTimeSlotsType>>;
|
|
4271
4298
|
type _publicCheckReservationDetailsType = typeof checkReservationDetails$1;
|
|
4272
4299
|
declare const checkReservationDetails: ReturnType<typeof createRESTModule<_publicCheckReservationDetailsType>>;
|
|
4300
|
+
type _publicCheckTimeSlotType = typeof checkTimeSlot$1;
|
|
4301
|
+
declare const checkTimeSlot: ReturnType<typeof createRESTModule<_publicCheckTimeSlotType>>;
|
|
4273
4302
|
|
|
4274
4303
|
type context_CheckReservationDetailsOptions = CheckReservationDetailsOptions;
|
|
4275
4304
|
type context_CheckReservationDetailsRequest = CheckReservationDetailsRequest;
|
|
4276
4305
|
type context_CheckReservationDetailsResponse = CheckReservationDetailsResponse;
|
|
4277
4306
|
type context_CheckReservationDetailsResponseNonNullableFields = CheckReservationDetailsResponseNonNullableFields;
|
|
4307
|
+
type context_CheckTimeSlotOptions = CheckTimeSlotOptions;
|
|
4278
4308
|
type context_CheckTimeSlotRequest = CheckTimeSlotRequest;
|
|
4279
4309
|
type context_CheckTimeSlotResponse = CheckTimeSlotResponse;
|
|
4310
|
+
type context_CheckTimeSlotResponseNonNullableFields = CheckTimeSlotResponseNonNullableFields;
|
|
4280
4311
|
type context_GetTimeSlotsOptions = GetTimeSlotsOptions;
|
|
4281
4312
|
type context_GetTimeSlotsRequest = GetTimeSlotsRequest;
|
|
4282
4313
|
type context_GetTimeSlotsResponse = GetTimeSlotsResponse;
|
|
@@ -4299,11 +4330,13 @@ type context_TimeSlotTableCombination = TimeSlotTableCombination;
|
|
|
4299
4330
|
type context_Type = Type;
|
|
4300
4331
|
declare const context_Type: typeof Type;
|
|
4301
4332
|
type context__publicCheckReservationDetailsType = _publicCheckReservationDetailsType;
|
|
4333
|
+
type context__publicCheckTimeSlotType = _publicCheckTimeSlotType;
|
|
4302
4334
|
type context__publicGetTimeSlotsType = _publicGetTimeSlotsType;
|
|
4303
4335
|
declare const context_checkReservationDetails: typeof checkReservationDetails;
|
|
4336
|
+
declare const context_checkTimeSlot: typeof checkTimeSlot;
|
|
4304
4337
|
declare const context_getTimeSlots: typeof getTimeSlots;
|
|
4305
4338
|
declare namespace context {
|
|
4306
|
-
export { type context_CheckReservationDetailsOptions as CheckReservationDetailsOptions, type context_CheckReservationDetailsRequest as CheckReservationDetailsRequest, type context_CheckReservationDetailsResponse as CheckReservationDetailsResponse, type context_CheckReservationDetailsResponseNonNullableFields as CheckReservationDetailsResponseNonNullableFields, type context_CheckTimeSlotRequest as CheckTimeSlotRequest, type context_CheckTimeSlotResponse as CheckTimeSlotResponse, type context_GetTimeSlotsOptions as GetTimeSlotsOptions, type context_GetTimeSlotsRequest as GetTimeSlotsRequest, type context_GetTimeSlotsResponse as GetTimeSlotsResponse, type context_GetTimeSlotsResponseNonNullableFields as GetTimeSlotsResponseNonNullableFields, type context_ReservationLocationConflict as ReservationLocationConflict, context_Status as Status, type context_Table as Table, type context_TableCombination as TableCombination, type context_TableCombinationAvailability as TableCombinationAvailability, type context_TableCombinationConflict as TableCombinationConflict, context_TableCombinationConflictType as TableCombinationConflictType, type context_TableConflict as TableConflict, context_TableConflictType as TableConflictType, type context_TableReservedConflict as TableReservedConflict, type context_TimeSlot as TimeSlot, type context_TimeSlotTableCombination as TimeSlotTableCombination, context_Type as Type, type context__publicCheckReservationDetailsType as _publicCheckReservationDetailsType, type context__publicGetTimeSlotsType as _publicGetTimeSlotsType, context_checkReservationDetails as checkReservationDetails, context_getTimeSlots as getTimeSlots };
|
|
4339
|
+
export { type context_CheckReservationDetailsOptions as CheckReservationDetailsOptions, type context_CheckReservationDetailsRequest as CheckReservationDetailsRequest, type context_CheckReservationDetailsResponse as CheckReservationDetailsResponse, type context_CheckReservationDetailsResponseNonNullableFields as CheckReservationDetailsResponseNonNullableFields, type context_CheckTimeSlotOptions as CheckTimeSlotOptions, type context_CheckTimeSlotRequest as CheckTimeSlotRequest, type context_CheckTimeSlotResponse as CheckTimeSlotResponse, type context_CheckTimeSlotResponseNonNullableFields as CheckTimeSlotResponseNonNullableFields, type context_GetTimeSlotsOptions as GetTimeSlotsOptions, type context_GetTimeSlotsRequest as GetTimeSlotsRequest, type context_GetTimeSlotsResponse as GetTimeSlotsResponse, type context_GetTimeSlotsResponseNonNullableFields as GetTimeSlotsResponseNonNullableFields, type context_ReservationLocationConflict as ReservationLocationConflict, context_Status as Status, type context_Table as Table, type context_TableCombination as TableCombination, type context_TableCombinationAvailability as TableCombinationAvailability, type context_TableCombinationConflict as TableCombinationConflict, context_TableCombinationConflictType as TableCombinationConflictType, type context_TableConflict as TableConflict, context_TableConflictType as TableConflictType, type context_TableReservedConflict as TableReservedConflict, type context_TimeSlot as TimeSlot, type context_TimeSlotTableCombination as TimeSlotTableCombination, context_Type as Type, type context__publicCheckReservationDetailsType as _publicCheckReservationDetailsType, type context__publicCheckTimeSlotType as _publicCheckTimeSlotType, type context__publicGetTimeSlotsType as _publicGetTimeSlotsType, context_checkReservationDetails as checkReservationDetails, context_checkTimeSlot as checkTimeSlot, context_getTimeSlots as getTimeSlots };
|
|
4307
4340
|
}
|
|
4308
4341
|
|
|
4309
4342
|
export { context$1 as reservationLocations, context$2 as reservations, context as timeSlots };
|
|
@@ -4167,17 +4167,17 @@ interface TableReservedConflict {
|
|
|
4167
4167
|
}
|
|
4168
4168
|
interface CheckTimeSlotRequest {
|
|
4169
4169
|
/** ID of the reservation location for which to check the time slot. */
|
|
4170
|
-
reservationLocationId
|
|
4170
|
+
reservationLocationId: string;
|
|
4171
4171
|
/** Date and time of the time slot to check. */
|
|
4172
|
-
date
|
|
4172
|
+
date: Date;
|
|
4173
4173
|
/**
|
|
4174
4174
|
* Duration of the time slot in minutes .
|
|
4175
4175
|
*
|
|
4176
4176
|
* Min: `5`
|
|
4177
4177
|
*/
|
|
4178
|
-
duration
|
|
4178
|
+
duration: number | null;
|
|
4179
4179
|
/** Party size to check the restaurant's availability for. */
|
|
4180
|
-
partySize
|
|
4180
|
+
partySize: number | null;
|
|
4181
4181
|
/**
|
|
4182
4182
|
* ID of a reservation to ignore during the check.
|
|
4183
4183
|
*
|
|
@@ -4236,6 +4236,14 @@ interface CheckReservationDetailsResponseNonNullableFields {
|
|
|
4236
4236
|
requestedTableCombination?: TableCombinationNonNullableFields;
|
|
4237
4237
|
tableReservedConflicts: TableReservedConflictNonNullableFields[];
|
|
4238
4238
|
}
|
|
4239
|
+
interface TableCombinationAvailabilityNonNullableFields {
|
|
4240
|
+
tableIds: string[];
|
|
4241
|
+
tableCombinationConflicts: TableCombinationConflictType[];
|
|
4242
|
+
}
|
|
4243
|
+
interface CheckTimeSlotResponseNonNullableFields {
|
|
4244
|
+
tableCombinationAvailabilities: TableCombinationAvailabilityNonNullableFields[];
|
|
4245
|
+
reservationLocationConflicts: Type[];
|
|
4246
|
+
}
|
|
4239
4247
|
interface GetTimeSlotsOptions {
|
|
4240
4248
|
/**
|
|
4241
4249
|
* Duration in minutes of the time slot.
|
|
@@ -4260,9 +4268,28 @@ interface CheckReservationDetailsOptions {
|
|
|
4260
4268
|
/** Requested table combination. */
|
|
4261
4269
|
tableIds?: string[];
|
|
4262
4270
|
}
|
|
4271
|
+
interface CheckTimeSlotOptions {
|
|
4272
|
+
/** Date and time of the time slot to check. */
|
|
4273
|
+
date: Date;
|
|
4274
|
+
/**
|
|
4275
|
+
* Duration of the time slot in minutes .
|
|
4276
|
+
*
|
|
4277
|
+
* Min: `5`
|
|
4278
|
+
*/
|
|
4279
|
+
duration: number | null;
|
|
4280
|
+
/** Party size to check the restaurant's availability for. */
|
|
4281
|
+
partySize: number | null;
|
|
4282
|
+
/**
|
|
4283
|
+
* ID of a reservation to ignore during the check.
|
|
4284
|
+
*
|
|
4285
|
+
* Use this when rescheduling a reservation to exclude it in its current state from the availability calculations.
|
|
4286
|
+
*/
|
|
4287
|
+
excludeReservationId?: string | null;
|
|
4288
|
+
}
|
|
4263
4289
|
|
|
4264
4290
|
declare function getTimeSlots$1(httpClient: HttpClient): (reservationLocationId: string, date: Date, partySize: number | null, options?: GetTimeSlotsOptions) => Promise<GetTimeSlotsResponse & GetTimeSlotsResponseNonNullableFields>;
|
|
4265
4291
|
declare function checkReservationDetails$1(httpClient: HttpClient): (reservationLocationId: string, options?: CheckReservationDetailsOptions) => Promise<CheckReservationDetailsResponse & CheckReservationDetailsResponseNonNullableFields>;
|
|
4292
|
+
declare function checkTimeSlot$1(httpClient: HttpClient): (reservationLocationId: string, options?: CheckTimeSlotOptions) => Promise<CheckTimeSlotResponse & CheckTimeSlotResponseNonNullableFields>;
|
|
4266
4293
|
|
|
4267
4294
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
4268
4295
|
|
|
@@ -4270,13 +4297,17 @@ type _publicGetTimeSlotsType = typeof getTimeSlots$1;
|
|
|
4270
4297
|
declare const getTimeSlots: ReturnType<typeof createRESTModule<_publicGetTimeSlotsType>>;
|
|
4271
4298
|
type _publicCheckReservationDetailsType = typeof checkReservationDetails$1;
|
|
4272
4299
|
declare const checkReservationDetails: ReturnType<typeof createRESTModule<_publicCheckReservationDetailsType>>;
|
|
4300
|
+
type _publicCheckTimeSlotType = typeof checkTimeSlot$1;
|
|
4301
|
+
declare const checkTimeSlot: ReturnType<typeof createRESTModule<_publicCheckTimeSlotType>>;
|
|
4273
4302
|
|
|
4274
4303
|
type index_d_CheckReservationDetailsOptions = CheckReservationDetailsOptions;
|
|
4275
4304
|
type index_d_CheckReservationDetailsRequest = CheckReservationDetailsRequest;
|
|
4276
4305
|
type index_d_CheckReservationDetailsResponse = CheckReservationDetailsResponse;
|
|
4277
4306
|
type index_d_CheckReservationDetailsResponseNonNullableFields = CheckReservationDetailsResponseNonNullableFields;
|
|
4307
|
+
type index_d_CheckTimeSlotOptions = CheckTimeSlotOptions;
|
|
4278
4308
|
type index_d_CheckTimeSlotRequest = CheckTimeSlotRequest;
|
|
4279
4309
|
type index_d_CheckTimeSlotResponse = CheckTimeSlotResponse;
|
|
4310
|
+
type index_d_CheckTimeSlotResponseNonNullableFields = CheckTimeSlotResponseNonNullableFields;
|
|
4280
4311
|
type index_d_GetTimeSlotsOptions = GetTimeSlotsOptions;
|
|
4281
4312
|
type index_d_GetTimeSlotsRequest = GetTimeSlotsRequest;
|
|
4282
4313
|
type index_d_GetTimeSlotsResponse = GetTimeSlotsResponse;
|
|
@@ -4299,11 +4330,13 @@ type index_d_TimeSlotTableCombination = TimeSlotTableCombination;
|
|
|
4299
4330
|
type index_d_Type = Type;
|
|
4300
4331
|
declare const index_d_Type: typeof Type;
|
|
4301
4332
|
type index_d__publicCheckReservationDetailsType = _publicCheckReservationDetailsType;
|
|
4333
|
+
type index_d__publicCheckTimeSlotType = _publicCheckTimeSlotType;
|
|
4302
4334
|
type index_d__publicGetTimeSlotsType = _publicGetTimeSlotsType;
|
|
4303
4335
|
declare const index_d_checkReservationDetails: typeof checkReservationDetails;
|
|
4336
|
+
declare const index_d_checkTimeSlot: typeof checkTimeSlot;
|
|
4304
4337
|
declare const index_d_getTimeSlots: typeof getTimeSlots;
|
|
4305
4338
|
declare namespace index_d {
|
|
4306
|
-
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, type index_d__publicCheckReservationDetailsType as _publicCheckReservationDetailsType, type index_d__publicGetTimeSlotsType as _publicGetTimeSlotsType, index_d_checkReservationDetails as checkReservationDetails, index_d_getTimeSlots as getTimeSlots };
|
|
4339
|
+
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_CheckTimeSlotOptions as CheckTimeSlotOptions, type index_d_CheckTimeSlotRequest as CheckTimeSlotRequest, type index_d_CheckTimeSlotResponse as CheckTimeSlotResponse, type index_d_CheckTimeSlotResponseNonNullableFields as CheckTimeSlotResponseNonNullableFields, 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, type index_d__publicCheckReservationDetailsType as _publicCheckReservationDetailsType, type index_d__publicCheckTimeSlotType as _publicCheckTimeSlotType, type index_d__publicGetTimeSlotsType as _publicGetTimeSlotsType, index_d_checkReservationDetails as checkReservationDetails, index_d_checkTimeSlot as checkTimeSlot, index_d_getTimeSlots as getTimeSlots };
|
|
4307
4340
|
}
|
|
4308
4341
|
|
|
4309
4342
|
export { index_d$1 as reservationLocations, index_d$2 as reservations, index_d as timeSlots };
|
|
@@ -3569,6 +3569,38 @@ interface TableReservedConflict$1 {
|
|
|
3569
3569
|
/** List of reservation ids. */
|
|
3570
3570
|
reservationIds?: string[];
|
|
3571
3571
|
}
|
|
3572
|
+
interface CheckTimeSlotRequest$1 {
|
|
3573
|
+
/** ID of the reservation location for which to check the time slot. */
|
|
3574
|
+
reservationLocationId: string;
|
|
3575
|
+
/** Date and time of the time slot to check. */
|
|
3576
|
+
date: Date;
|
|
3577
|
+
/**
|
|
3578
|
+
* Duration of the time slot in minutes .
|
|
3579
|
+
*
|
|
3580
|
+
* Min: `5`
|
|
3581
|
+
*/
|
|
3582
|
+
duration: number | null;
|
|
3583
|
+
/** Party size to check the restaurant's availability for. */
|
|
3584
|
+
partySize: number | null;
|
|
3585
|
+
/**
|
|
3586
|
+
* ID of a reservation to ignore during the check.
|
|
3587
|
+
*
|
|
3588
|
+
* Use this when rescheduling a reservation to exclude it in its current state from the availability calculations.
|
|
3589
|
+
*/
|
|
3590
|
+
excludeReservationId?: string | null;
|
|
3591
|
+
}
|
|
3592
|
+
interface CheckTimeSlotResponse$1 {
|
|
3593
|
+
/** Table combinations and their availability information. */
|
|
3594
|
+
tableCombinationAvailabilities?: TableCombinationAvailability$1[];
|
|
3595
|
+
/** Reservation location conflicts that would occur by making a reservation for the given party size in the given time slot. */
|
|
3596
|
+
reservationLocationConflicts?: Type$1[];
|
|
3597
|
+
}
|
|
3598
|
+
interface TableCombinationAvailability$1 {
|
|
3599
|
+
/** IDs of the tables in the table combination. */
|
|
3600
|
+
tableIds?: string[];
|
|
3601
|
+
/** Conflicts that would be generated by attempting to accommodate the proposed reservation using the table combination. */
|
|
3602
|
+
tableCombinationConflicts?: TableCombinationConflictType$1[];
|
|
3603
|
+
}
|
|
3572
3604
|
interface TimeSlotTableCombinationNonNullableFields$1 {
|
|
3573
3605
|
tableIds: string[];
|
|
3574
3606
|
}
|
|
@@ -3608,6 +3640,14 @@ interface CheckReservationDetailsResponseNonNullableFields$1 {
|
|
|
3608
3640
|
requestedTableCombination?: TableCombinationNonNullableFields$1;
|
|
3609
3641
|
tableReservedConflicts: TableReservedConflictNonNullableFields$1[];
|
|
3610
3642
|
}
|
|
3643
|
+
interface TableCombinationAvailabilityNonNullableFields$1 {
|
|
3644
|
+
tableIds: string[];
|
|
3645
|
+
tableCombinationConflicts: TableCombinationConflictType$1[];
|
|
3646
|
+
}
|
|
3647
|
+
interface CheckTimeSlotResponseNonNullableFields$1 {
|
|
3648
|
+
tableCombinationAvailabilities: TableCombinationAvailabilityNonNullableFields$1[];
|
|
3649
|
+
reservationLocationConflicts: Type$1[];
|
|
3650
|
+
}
|
|
3611
3651
|
|
|
3612
3652
|
interface TimeSlot {
|
|
3613
3653
|
/** Start date and time of this time slot. */
|
|
@@ -3732,6 +3772,38 @@ interface TableReservedConflict {
|
|
|
3732
3772
|
/** List of reservation ids. */
|
|
3733
3773
|
reservationIds?: string[];
|
|
3734
3774
|
}
|
|
3775
|
+
interface CheckTimeSlotRequest {
|
|
3776
|
+
/** ID of the reservation location for which to check the time slot. */
|
|
3777
|
+
reservationLocationId: string;
|
|
3778
|
+
/** Date and time of the time slot to check. */
|
|
3779
|
+
date: Date;
|
|
3780
|
+
/**
|
|
3781
|
+
* Duration of the time slot in minutes .
|
|
3782
|
+
*
|
|
3783
|
+
* Min: `5`
|
|
3784
|
+
*/
|
|
3785
|
+
duration: number | null;
|
|
3786
|
+
/** Party size to check the restaurant's availability for. */
|
|
3787
|
+
partySize: number | null;
|
|
3788
|
+
/**
|
|
3789
|
+
* ID of a reservation to ignore during the check.
|
|
3790
|
+
*
|
|
3791
|
+
* Use this when rescheduling a reservation to exclude it in its current state from the availability calculations.
|
|
3792
|
+
*/
|
|
3793
|
+
excludeReservationId?: string | null;
|
|
3794
|
+
}
|
|
3795
|
+
interface CheckTimeSlotResponse {
|
|
3796
|
+
/** Table combinations and their availability information. */
|
|
3797
|
+
tableCombinationAvailabilities?: TableCombinationAvailability[];
|
|
3798
|
+
/** Reservation location conflicts that would occur by making a reservation for the given party size in the given time slot. */
|
|
3799
|
+
reservationLocationConflicts?: Type[];
|
|
3800
|
+
}
|
|
3801
|
+
interface TableCombinationAvailability {
|
|
3802
|
+
/** IDs of the tables in the table combination. */
|
|
3803
|
+
tableIds?: string[];
|
|
3804
|
+
/** Conflicts that would be generated by attempting to accommodate the proposed reservation using the table combination. */
|
|
3805
|
+
tableCombinationConflicts?: TableCombinationConflictType[];
|
|
3806
|
+
}
|
|
3735
3807
|
interface TimeSlotTableCombinationNonNullableFields {
|
|
3736
3808
|
tableIds: string[];
|
|
3737
3809
|
}
|
|
@@ -3771,6 +3843,14 @@ interface CheckReservationDetailsResponseNonNullableFields {
|
|
|
3771
3843
|
requestedTableCombination?: TableCombinationNonNullableFields;
|
|
3772
3844
|
tableReservedConflicts: TableReservedConflictNonNullableFields[];
|
|
3773
3845
|
}
|
|
3846
|
+
interface TableCombinationAvailabilityNonNullableFields {
|
|
3847
|
+
tableIds: string[];
|
|
3848
|
+
tableCombinationConflicts: TableCombinationConflictType[];
|
|
3849
|
+
}
|
|
3850
|
+
interface CheckTimeSlotResponseNonNullableFields {
|
|
3851
|
+
tableCombinationAvailabilities: TableCombinationAvailabilityNonNullableFields[];
|
|
3852
|
+
reservationLocationConflicts: Type[];
|
|
3853
|
+
}
|
|
3774
3854
|
|
|
3775
3855
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
3776
3856
|
getUrl: (context: any) => string;
|
|
@@ -3784,12 +3864,14 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
3784
3864
|
};
|
|
3785
3865
|
declare function getTimeSlots(): __PublicMethodMetaInfo<'POST', {}, GetTimeSlotsRequest, GetTimeSlotsRequest$1, GetTimeSlotsResponse & GetTimeSlotsResponseNonNullableFields, GetTimeSlotsResponse$1 & GetTimeSlotsResponseNonNullableFields$1>;
|
|
3786
3866
|
declare function checkReservationDetails(): __PublicMethodMetaInfo<'POST', {}, CheckReservationDetailsRequest, CheckReservationDetailsRequest$1, CheckReservationDetailsResponse & CheckReservationDetailsResponseNonNullableFields, CheckReservationDetailsResponse$1 & CheckReservationDetailsResponseNonNullableFields$1>;
|
|
3867
|
+
declare function checkTimeSlot(): __PublicMethodMetaInfo<'POST', {}, CheckTimeSlotRequest, CheckTimeSlotRequest$1, CheckTimeSlotResponse & CheckTimeSlotResponseNonNullableFields, CheckTimeSlotResponse$1 & CheckTimeSlotResponseNonNullableFields$1>;
|
|
3787
3868
|
|
|
3788
3869
|
type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
|
|
3789
3870
|
declare const meta_checkReservationDetails: typeof checkReservationDetails;
|
|
3871
|
+
declare const meta_checkTimeSlot: typeof checkTimeSlot;
|
|
3790
3872
|
declare const meta_getTimeSlots: typeof getTimeSlots;
|
|
3791
3873
|
declare namespace meta {
|
|
3792
|
-
export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_checkReservationDetails as checkReservationDetails, meta_getTimeSlots as getTimeSlots };
|
|
3874
|
+
export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_checkReservationDetails as checkReservationDetails, meta_checkTimeSlot as checkTimeSlot, meta_getTimeSlots as getTimeSlots };
|
|
3793
3875
|
}
|
|
3794
3876
|
|
|
3795
3877
|
export { meta$1 as reservationLocations, meta$2 as reservations, meta as timeSlots };
|