@wix/table-reservations 1.0.110 → 1.0.112
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.112",
|
|
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.35"
|
|
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": "b7912d6ddce540b5b5deff2726f0b758fe9f00e8e2f2349c3729d636"
|
|
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,14 +4236,6 @@ 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
|
-
}
|
|
4247
4239
|
interface GetTimeSlotsOptions {
|
|
4248
4240
|
/**
|
|
4249
4241
|
* Duration in minutes of the time slot.
|
|
@@ -4268,28 +4260,9 @@ interface CheckReservationDetailsOptions {
|
|
|
4268
4260
|
/** Requested table combination. */
|
|
4269
4261
|
tableIds?: string[];
|
|
4270
4262
|
}
|
|
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
|
-
}
|
|
4289
4263
|
|
|
4290
4264
|
declare function getTimeSlots$1(httpClient: HttpClient): (reservationLocationId: string, date: Date, partySize: number | null, options?: GetTimeSlotsOptions) => Promise<GetTimeSlotsResponse & GetTimeSlotsResponseNonNullableFields>;
|
|
4291
4265
|
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>;
|
|
4293
4266
|
|
|
4294
4267
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
4295
4268
|
|
|
@@ -4297,17 +4270,13 @@ type _publicGetTimeSlotsType = typeof getTimeSlots$1;
|
|
|
4297
4270
|
declare const getTimeSlots: ReturnType<typeof createRESTModule<_publicGetTimeSlotsType>>;
|
|
4298
4271
|
type _publicCheckReservationDetailsType = typeof checkReservationDetails$1;
|
|
4299
4272
|
declare const checkReservationDetails: ReturnType<typeof createRESTModule<_publicCheckReservationDetailsType>>;
|
|
4300
|
-
type _publicCheckTimeSlotType = typeof checkTimeSlot$1;
|
|
4301
|
-
declare const checkTimeSlot: ReturnType<typeof createRESTModule<_publicCheckTimeSlotType>>;
|
|
4302
4273
|
|
|
4303
4274
|
type context_CheckReservationDetailsOptions = CheckReservationDetailsOptions;
|
|
4304
4275
|
type context_CheckReservationDetailsRequest = CheckReservationDetailsRequest;
|
|
4305
4276
|
type context_CheckReservationDetailsResponse = CheckReservationDetailsResponse;
|
|
4306
4277
|
type context_CheckReservationDetailsResponseNonNullableFields = CheckReservationDetailsResponseNonNullableFields;
|
|
4307
|
-
type context_CheckTimeSlotOptions = CheckTimeSlotOptions;
|
|
4308
4278
|
type context_CheckTimeSlotRequest = CheckTimeSlotRequest;
|
|
4309
4279
|
type context_CheckTimeSlotResponse = CheckTimeSlotResponse;
|
|
4310
|
-
type context_CheckTimeSlotResponseNonNullableFields = CheckTimeSlotResponseNonNullableFields;
|
|
4311
4280
|
type context_GetTimeSlotsOptions = GetTimeSlotsOptions;
|
|
4312
4281
|
type context_GetTimeSlotsRequest = GetTimeSlotsRequest;
|
|
4313
4282
|
type context_GetTimeSlotsResponse = GetTimeSlotsResponse;
|
|
@@ -4330,13 +4299,11 @@ type context_TimeSlotTableCombination = TimeSlotTableCombination;
|
|
|
4330
4299
|
type context_Type = Type;
|
|
4331
4300
|
declare const context_Type: typeof Type;
|
|
4332
4301
|
type context__publicCheckReservationDetailsType = _publicCheckReservationDetailsType;
|
|
4333
|
-
type context__publicCheckTimeSlotType = _publicCheckTimeSlotType;
|
|
4334
4302
|
type context__publicGetTimeSlotsType = _publicGetTimeSlotsType;
|
|
4335
4303
|
declare const context_checkReservationDetails: typeof checkReservationDetails;
|
|
4336
|
-
declare const context_checkTimeSlot: typeof checkTimeSlot;
|
|
4337
4304
|
declare const context_getTimeSlots: typeof getTimeSlots;
|
|
4338
4305
|
declare namespace context {
|
|
4339
|
-
export { type context_CheckReservationDetailsOptions as CheckReservationDetailsOptions, type context_CheckReservationDetailsRequest as CheckReservationDetailsRequest, type context_CheckReservationDetailsResponse as CheckReservationDetailsResponse, type context_CheckReservationDetailsResponseNonNullableFields as CheckReservationDetailsResponseNonNullableFields, type
|
|
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 };
|
|
4340
4307
|
}
|
|
4341
4308
|
|
|
4342
4309
|
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,14 +4236,6 @@ 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
|
-
}
|
|
4247
4239
|
interface GetTimeSlotsOptions {
|
|
4248
4240
|
/**
|
|
4249
4241
|
* Duration in minutes of the time slot.
|
|
@@ -4268,28 +4260,9 @@ interface CheckReservationDetailsOptions {
|
|
|
4268
4260
|
/** Requested table combination. */
|
|
4269
4261
|
tableIds?: string[];
|
|
4270
4262
|
}
|
|
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
|
-
}
|
|
4289
4263
|
|
|
4290
4264
|
declare function getTimeSlots$1(httpClient: HttpClient): (reservationLocationId: string, date: Date, partySize: number | null, options?: GetTimeSlotsOptions) => Promise<GetTimeSlotsResponse & GetTimeSlotsResponseNonNullableFields>;
|
|
4291
4265
|
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>;
|
|
4293
4266
|
|
|
4294
4267
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
4295
4268
|
|
|
@@ -4297,17 +4270,13 @@ type _publicGetTimeSlotsType = typeof getTimeSlots$1;
|
|
|
4297
4270
|
declare const getTimeSlots: ReturnType<typeof createRESTModule<_publicGetTimeSlotsType>>;
|
|
4298
4271
|
type _publicCheckReservationDetailsType = typeof checkReservationDetails$1;
|
|
4299
4272
|
declare const checkReservationDetails: ReturnType<typeof createRESTModule<_publicCheckReservationDetailsType>>;
|
|
4300
|
-
type _publicCheckTimeSlotType = typeof checkTimeSlot$1;
|
|
4301
|
-
declare const checkTimeSlot: ReturnType<typeof createRESTModule<_publicCheckTimeSlotType>>;
|
|
4302
4273
|
|
|
4303
4274
|
type index_d_CheckReservationDetailsOptions = CheckReservationDetailsOptions;
|
|
4304
4275
|
type index_d_CheckReservationDetailsRequest = CheckReservationDetailsRequest;
|
|
4305
4276
|
type index_d_CheckReservationDetailsResponse = CheckReservationDetailsResponse;
|
|
4306
4277
|
type index_d_CheckReservationDetailsResponseNonNullableFields = CheckReservationDetailsResponseNonNullableFields;
|
|
4307
|
-
type index_d_CheckTimeSlotOptions = CheckTimeSlotOptions;
|
|
4308
4278
|
type index_d_CheckTimeSlotRequest = CheckTimeSlotRequest;
|
|
4309
4279
|
type index_d_CheckTimeSlotResponse = CheckTimeSlotResponse;
|
|
4310
|
-
type index_d_CheckTimeSlotResponseNonNullableFields = CheckTimeSlotResponseNonNullableFields;
|
|
4311
4280
|
type index_d_GetTimeSlotsOptions = GetTimeSlotsOptions;
|
|
4312
4281
|
type index_d_GetTimeSlotsRequest = GetTimeSlotsRequest;
|
|
4313
4282
|
type index_d_GetTimeSlotsResponse = GetTimeSlotsResponse;
|
|
@@ -4330,13 +4299,11 @@ type index_d_TimeSlotTableCombination = TimeSlotTableCombination;
|
|
|
4330
4299
|
type index_d_Type = Type;
|
|
4331
4300
|
declare const index_d_Type: typeof Type;
|
|
4332
4301
|
type index_d__publicCheckReservationDetailsType = _publicCheckReservationDetailsType;
|
|
4333
|
-
type index_d__publicCheckTimeSlotType = _publicCheckTimeSlotType;
|
|
4334
4302
|
type index_d__publicGetTimeSlotsType = _publicGetTimeSlotsType;
|
|
4335
4303
|
declare const index_d_checkReservationDetails: typeof checkReservationDetails;
|
|
4336
|
-
declare const index_d_checkTimeSlot: typeof checkTimeSlot;
|
|
4337
4304
|
declare const index_d_getTimeSlots: typeof getTimeSlots;
|
|
4338
4305
|
declare namespace index_d {
|
|
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
|
|
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 };
|
|
4340
4307
|
}
|
|
4341
4308
|
|
|
4342
4309
|
export { index_d$1 as reservationLocations, index_d$2 as reservations, index_d as timeSlots };
|
|
@@ -3569,38 +3569,6 @@ 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
|
-
}
|
|
3604
3572
|
interface TimeSlotTableCombinationNonNullableFields$1 {
|
|
3605
3573
|
tableIds: string[];
|
|
3606
3574
|
}
|
|
@@ -3640,14 +3608,6 @@ interface CheckReservationDetailsResponseNonNullableFields$1 {
|
|
|
3640
3608
|
requestedTableCombination?: TableCombinationNonNullableFields$1;
|
|
3641
3609
|
tableReservedConflicts: TableReservedConflictNonNullableFields$1[];
|
|
3642
3610
|
}
|
|
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
|
-
}
|
|
3651
3611
|
|
|
3652
3612
|
interface TimeSlot {
|
|
3653
3613
|
/** Start date and time of this time slot. */
|
|
@@ -3772,38 +3732,6 @@ interface TableReservedConflict {
|
|
|
3772
3732
|
/** List of reservation ids. */
|
|
3773
3733
|
reservationIds?: string[];
|
|
3774
3734
|
}
|
|
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
|
-
}
|
|
3807
3735
|
interface TimeSlotTableCombinationNonNullableFields {
|
|
3808
3736
|
tableIds: string[];
|
|
3809
3737
|
}
|
|
@@ -3843,14 +3771,6 @@ interface CheckReservationDetailsResponseNonNullableFields {
|
|
|
3843
3771
|
requestedTableCombination?: TableCombinationNonNullableFields;
|
|
3844
3772
|
tableReservedConflicts: TableReservedConflictNonNullableFields[];
|
|
3845
3773
|
}
|
|
3846
|
-
interface TableCombinationAvailabilityNonNullableFields {
|
|
3847
|
-
tableIds: string[];
|
|
3848
|
-
tableCombinationConflicts: TableCombinationConflictType[];
|
|
3849
|
-
}
|
|
3850
|
-
interface CheckTimeSlotResponseNonNullableFields {
|
|
3851
|
-
tableCombinationAvailabilities: TableCombinationAvailabilityNonNullableFields[];
|
|
3852
|
-
reservationLocationConflicts: Type[];
|
|
3853
|
-
}
|
|
3854
3774
|
|
|
3855
3775
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
3856
3776
|
getUrl: (context: any) => string;
|
|
@@ -3864,14 +3784,12 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
3864
3784
|
};
|
|
3865
3785
|
declare function getTimeSlots(): __PublicMethodMetaInfo<'POST', {}, GetTimeSlotsRequest, GetTimeSlotsRequest$1, GetTimeSlotsResponse & GetTimeSlotsResponseNonNullableFields, GetTimeSlotsResponse$1 & GetTimeSlotsResponseNonNullableFields$1>;
|
|
3866
3786
|
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>;
|
|
3868
3787
|
|
|
3869
3788
|
type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
|
|
3870
3789
|
declare const meta_checkReservationDetails: typeof checkReservationDetails;
|
|
3871
|
-
declare const meta_checkTimeSlot: typeof checkTimeSlot;
|
|
3872
3790
|
declare const meta_getTimeSlots: typeof getTimeSlots;
|
|
3873
3791
|
declare namespace meta {
|
|
3874
|
-
export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_checkReservationDetails as checkReservationDetails,
|
|
3792
|
+
export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_checkReservationDetails as checkReservationDetails, meta_getTimeSlots as getTimeSlots };
|
|
3875
3793
|
}
|
|
3876
3794
|
|
|
3877
3795
|
export { meta$1 as reservationLocations, meta$2 as reservations, meta as timeSlots };
|