@wix/auto_sdk_bookings_bookings 1.0.36 → 1.0.38
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/build/cjs/index.d.ts +104 -25
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{bookings-v2-booking-bookings.universal-BREkRFfz.d.ts → index.typings.d.ts} +1496 -1
- package/build/cjs/index.typings.js +2021 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +104 -25
- package/build/es/index.mjs.map +1 -1
- package/build/es/{bookings-v2-booking-bookings.universal-BREkRFfz.d.mts → index.typings.d.mts} +1496 -1
- package/build/es/index.typings.mjs +1963 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +104 -25
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{bookings-v2-booking-bookings.universal-BREkRFfz.d.ts → index.typings.d.ts} +1496 -1
- package/build/internal/cjs/index.typings.js +2021 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +104 -25
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{bookings-v2-booking-bookings.universal-BREkRFfz.d.mts → index.typings.d.mts} +1496 -1
- package/build/internal/es/index.typings.mjs +1963 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { ConfirmOrDeclineBookingOptions, ConfirmOrDeclineBookingResponse, ConfirmOrDeclineBookingApplicationErrors, BulkConfirmOrDeclineBookingRequestBookingDetails, BulkConfirmOrDeclineBookingOptions, BulkConfirmOrDeclineBookingResponse, BulkConfirmOrDeclineBookingApplicationErrors, Booking, CreateBookingOptions, CreateBookingResponse, CreateBookingApplicationErrors, CreateBookingInfo, BulkCreateBookingOptions, BulkCreateBookingResponse, BulkCreateBookingApplicationErrors, V2Slot, RescheduleBookingOptions, RescheduleBookingResponse, RescheduleBookingApplicationErrors, ConfirmBookingOptions, ConfirmBookingResponse, ConfirmBookingApplicationErrors, SetBookingSubmissionIdResponse, SetBookingSubmissionIdApplicationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateExtendedFieldsApplicationErrors, DeclineBookingOptions, DeclineBookingResponse, DeclineBookingApplicationErrors, CancelBookingOptions, CancelBookingResponse, CancelBookingApplicationErrors, UpdateNumberOfParticipantsOptions, UpdateNumberOfParticipantsResponse, UpdateNumberOfParticipantsApplicationErrors, CreateMultiServiceBookingOptions, CreateMultiServiceBookingResponse, CreateMultiServiceBookingApplicationErrors, RescheduleBookingInfo, RescheduleMultiServiceBookingOptions, RescheduleMultiServiceBookingResponse, RescheduleMultiServiceBookingApplicationErrors, GetMultiServiceBookingAvailabilityResponse, GetMultiServiceBookingAvailabilityApplicationErrors, CancelMultiServiceBookingOptions, CancelMultiServiceBookingResponse, CancelMultiServiceBookingApplicationErrors, MarkMultiServiceBookingAsPendingOptions, MarkMultiServiceBookingAsPendingResponse, MarkMultiServiceBookingAsPendingApplicationErrors, ConfirmMultiServiceBookingOptions, ConfirmMultiServiceBookingResponse, ConfirmMultiServiceBookingApplicationErrors, DeclineMultiServiceBookingOptions, DeclineMultiServiceBookingResponse, DeclineMultiServiceBookingApplicationErrors, BulkGetMultiServiceBookingAllowedActionsResponse, MultiServiceBooking, AddBookingsToMultiServiceBookingOptions, AddBookingsToMultiServiceBookingResponse, AddBookingsToMultiServiceBookingApplicationErrors, RemoveBookingsFromMultiServiceBookingOptions, RemoveBookingsFromMultiServiceBookingResponse, RemoveBookingsFromMultiServiceBookingApplicationErrors, BookingCanceledEnvelope, BookingConfirmedEnvelope, BookingCreatedEnvelope, BookingDeclinedEnvelope, BookingNumberOfParticipantsUpdatedEnvelope, BookingRescheduledEnvelope, BookingUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, Actor, AddBookingsToMultiServiceBookingRequest, Address, AddressLocation, AddressStreetOneOf, AllowedActions, ApplicationError, AvailableResources, BaseEventMetadata, BookedAddOn, BookedEntity, BookedEntityItemOneOf, BookedResource, BookedSchedule, BookedSlot, BookingCanceled, BookingChanged, BookingConfirmed, BookingDeclined, BookingDetails, BookingFormFilled, BookingIdAndRevision, BookingInfo, BookingMarkedAsPending, BookingParticipantsInfoOneOf, BookingPolicySettings, BookingPolicyViolations, BookingRescheduled, BookingRescheduledPreviousParticipantsInfoOneOf, BookingResult, BookingSource, BookingStatus, BulkActionMetadata, BulkBookingResult, BulkCalculateAllowedActionsRequest, BulkCalculateAllowedActionsResponse, BulkCalculateAllowedActionsResult, BulkConfirmOrDeclineBookingRequest, BulkCreateBookingRequest, BulkGetMultiServiceBookingAllowedActionsRequest, BulkRescheduleBookingRequest, BulkRescheduleBookingRequestBooking, BulkRescheduleBookingResponse, BulkUpdateBookedScheduleRequest, BulkUpdateBookedScheduleResponse, BulkUpdateBookingRequest, BulkUpdateBookingResponse, CancelBookingFlowControlSettings, CancelBookingRequest, CancelBookingRequestFlowControlSettings, CancelMultiServiceBookingRequest, Clash, CommonIdentificationData, CommonIdentificationDataIdOneOf, ConfirmBookingFlowControlSettings, ConfirmBookingRequest, ConfirmMultiServiceBookingRequest, ConfirmOrDeclineBookingRequest, ConfirmRequest, ConfirmResponse, ConsistentQueryBookingsRequest, ConsistentQueryBookingsResponse, ContactDetails, CountBookingsRequest, CountBookingsResponse, CreateBookingFlowControlSettings, CreateBookingRequest, CreateBookingRequestFlowControlSettings, CreateMultiServiceBookingRequest, CursorPaging, Cursors, CustomFormField, DeclineBookingFlowControlSettings, DeclineBookingRequest, DeclineMultiServiceBookingRequest, DomainEvent, DomainEventBodyOneOf, Duration, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, FlowControlSettings, GetMultiServiceBookingAvailabilityRequest, GetMultiServiceBookingAvailabilityResponseBookingInfo, GetMultiServiceBookingRequest, GetMultiServiceBookingResponse, GetScheduleAvailabilityRequest, GetScheduleAvailabilityResponse, GetSlotAvailabilityRequest, GetSlotAvailabilityResponse, IdentificationData, IdentificationDataIdOneOf, IdentificationDataIdentityType, IdentityType, ItemMetadata, LegacyCreateBookingRequest, LegacyCreateBookingResponse, Location, LocationLocationType, LocationType, MarkBookingAsPendingFlowControlSettings, MarkBookingAsPendingRequest, MarkBookingAsPendingResponse, MarkMultiServiceBookingAsPendingRequest, MaskedBooking, MessageEnvelope, MigrationCheckIfClashesWithBlockedTimeRequest, MigrationCheckIfClashesWithBlockedTimeResponse, MsidAndBookingId, MultiServiceBookingInfo, MultiServiceBookingMetadata, MultiServiceBookingType, NumberOfParticipantsUpdated, NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf, Paging, PagingMetadataV2, ParticipantChoices, ParticipantNotification, PaymentStatus, Platform, QueryBookingsRequest, QueryBookingsResponse, QueryV2, QueryV2PagingMethodOneOf, RemoveBookingsFromMultiServiceBookingRequest, RescheduleBookingFlowControlSettings, RescheduleBookingInfoParticipantsInfoOneOf, RescheduleBookingOptionsParticipantsInfoOneOf, RescheduleBookingRequest, RescheduleBookingRequestFlowControlSettings, RescheduleBookingRequestParticipantsInfoOneOf, RescheduleMultiServiceBookingRequest, RestoreInfo, ScheduleAvailability, SelectedPaymentOption, ServiceChoice, ServiceChoiceChoiceOneOf, ServiceChoices, SetBookingFormAndSubmissionIdRequest, SetBookingFormAndSubmissionIdRequestCreatedByOneOf, SetBookingFormAndSubmissionIdResponse, SetBookingSessionIdRequest, SetBookingSessionIdResponse, SetBookingSubmissionIdRequest, Slot, SlotAvailability, SlotBookings, SlotLocation, SlotResource, SlotSlotResource, SortOrder, Sorting, StreetAddress, Subdivision, UpdateBookingRequest, UpdateBookingResponse, UpdateExtendedFieldsRequest, UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf, UpdateNumberOfParticipantsRequest, UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, V2CancelBookingRequest, V2CancelBookingResponse, V2ConfirmBookingRequest, V2ConfirmBookingResponse, V2CreateBookingRequest, V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf, V2CreateBookingResponse, V2DeclineBookingRequest, V2DeclineBookingResponse, V2RescheduleBookingRequest, V2RescheduleBookingRequestParticipantsInfoOneOf, V2RescheduleBookingResponse, V2UpdateNumberOfParticipantsRequest, V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, V2UpdateNumberOfParticipantsResponse, ValueType, WaitingList, WebhookIdentityType, WebhooksIdentificationData, WebhooksIdentificationDataIdOneOf } from './index.typings.js';
|
|
4
4
|
|
|
5
|
+
type BookingNonNullablePaths = `totalParticipants` | `participantsChoices.serviceChoices` | `bookedEntity.slot.serviceId` | `bookedEntity.slot.scheduleId` | `bookedEntity.slot.resource._id` | `bookedEntity.slot.location.locationType` | `bookedEntity.schedule.scheduleId` | `bookedEntity.tags` | `contactDetails.fullAddress.streetAddress.number` | `contactDetails.fullAddress.streetAddress.name` | `contactDetails.fullAddress.streetAddress.apt` | `contactDetails.fullAddress.subdivisions` | `contactDetails.fullAddress.subdivisions.${number}.code` | `contactDetails.fullAddress.subdivisions.${number}.name` | `additionalFields` | `additionalFields.${number}._id` | `additionalFields.${number}.valueType` | `status` | `paymentStatus` | `selectedPaymentOption` | `createdBy.anonymousVisitorId` | `createdBy.memberId` | `createdBy.wixUserId` | `createdBy.appId`;
|
|
5
6
|
declare function confirmOrDeclineBooking$1(httpClient: HttpClient): ConfirmOrDeclineBookingSignature;
|
|
6
7
|
interface ConfirmOrDeclineBookingSignature {
|
|
7
8
|
/**
|
|
@@ -47,7 +48,11 @@ interface ConfirmOrDeclineBookingSignature {
|
|
|
47
48
|
* immediately.
|
|
48
49
|
* @param - ID of the booking to confirm or decline.
|
|
49
50
|
*/
|
|
50
|
-
(bookingId: string, options?: ConfirmOrDeclineBookingOptions
|
|
51
|
+
(bookingId: string, options?: ConfirmOrDeclineBookingOptions): Promise<NonNullablePaths<ConfirmOrDeclineBookingResponse, {
|
|
52
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
53
|
+
}[BookingNonNullablePaths]> & {
|
|
54
|
+
__applicationErrorsType?: ConfirmOrDeclineBookingApplicationErrors;
|
|
55
|
+
}>;
|
|
51
56
|
}
|
|
52
57
|
declare function bulkConfirmOrDeclineBooking$1(httpClient: HttpClient): BulkConfirmOrDeclineBookingSignature;
|
|
53
58
|
interface BulkConfirmOrDeclineBookingSignature {
|
|
@@ -60,7 +65,11 @@ interface BulkConfirmOrDeclineBookingSignature {
|
|
|
60
65
|
* for details about when a booking is confirmed or declined.
|
|
61
66
|
* @param - Bookings to confirm or decline.
|
|
62
67
|
*/
|
|
63
|
-
(details: BulkConfirmOrDeclineBookingRequestBookingDetails[], options?: BulkConfirmOrDeclineBookingOptions
|
|
68
|
+
(details: NonNullablePaths<BulkConfirmOrDeclineBookingRequestBookingDetails, `bookingId`>[], options?: BulkConfirmOrDeclineBookingOptions): Promise<NonNullablePaths<BulkConfirmOrDeclineBookingResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
69
|
+
[P in BookingNonNullablePaths]: `results.${number}.item.${P}`;
|
|
70
|
+
}[BookingNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`> & {
|
|
71
|
+
__applicationErrorsType?: BulkConfirmOrDeclineBookingApplicationErrors;
|
|
72
|
+
}>;
|
|
64
73
|
}
|
|
65
74
|
declare function createBooking$1(httpClient: HttpClient): CreateBookingSignature;
|
|
66
75
|
interface CreateBookingSignature {
|
|
@@ -181,7 +190,11 @@ interface CreateBookingSignature {
|
|
|
181
190
|
* them intentionally and securely.
|
|
182
191
|
* @param - The booking to create.
|
|
183
192
|
*/
|
|
184
|
-
(booking: Booking, options?: CreateBookingOptions
|
|
193
|
+
(booking: NonNullablePaths<Booking, `additionalFields.${number}._id` | `bookedEntity`>, options?: CreateBookingOptions): Promise<NonNullablePaths<CreateBookingResponse, {
|
|
194
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
195
|
+
}[BookingNonNullablePaths]> & {
|
|
196
|
+
__applicationErrorsType?: CreateBookingApplicationErrors;
|
|
197
|
+
}>;
|
|
185
198
|
}
|
|
186
199
|
declare function bulkCreateBooking$1(httpClient: HttpClient): BulkCreateBookingSignature;
|
|
187
200
|
interface BulkCreateBookingSignature {
|
|
@@ -203,7 +216,11 @@ interface BulkCreateBookingSignature {
|
|
|
203
216
|
*
|
|
204
217
|
* Max: 8 bookings
|
|
205
218
|
*/
|
|
206
|
-
(createBookingsInfo: CreateBookingInfo[], options?: BulkCreateBookingOptions
|
|
219
|
+
(createBookingsInfo: NonNullablePaths<CreateBookingInfo, `booking` | `booking.additionalFields.${number}._id` | `booking.bookedEntity`>[], options?: BulkCreateBookingOptions): Promise<NonNullablePaths<BulkCreateBookingResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
220
|
+
[P in BookingNonNullablePaths]: `results.${number}.item.${P}`;
|
|
221
|
+
}[BookingNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`> & {
|
|
222
|
+
__applicationErrorsType?: BulkCreateBookingApplicationErrors;
|
|
223
|
+
}>;
|
|
207
224
|
}
|
|
208
225
|
declare function rescheduleBooking$1(httpClient: HttpClient): RescheduleBookingSignature;
|
|
209
226
|
interface RescheduleBookingSignature {
|
|
@@ -270,7 +287,11 @@ interface RescheduleBookingSignature {
|
|
|
270
287
|
* @param - New slot of the booking.
|
|
271
288
|
* @param - An object representing the available options for rescheduling a booking.
|
|
272
289
|
*/
|
|
273
|
-
(bookingId: string, slot: V2Slot, options?: RescheduleBookingOptions
|
|
290
|
+
(bookingId: string, slot: V2Slot, options?: NonNullablePaths<RescheduleBookingOptions, `revision`>): Promise<NonNullablePaths<RescheduleBookingResponse, {
|
|
291
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
292
|
+
}[BookingNonNullablePaths]> & {
|
|
293
|
+
__applicationErrorsType?: RescheduleBookingApplicationErrors;
|
|
294
|
+
}>;
|
|
274
295
|
}
|
|
275
296
|
declare function confirmBooking$1(httpClient: HttpClient): ConfirmBookingSignature;
|
|
276
297
|
interface ConfirmBookingSignature {
|
|
@@ -334,7 +355,11 @@ interface ConfirmBookingSignature {
|
|
|
334
355
|
* updating the booking.
|
|
335
356
|
* @param - An object representing the available options for canceling a booking.
|
|
336
357
|
*/
|
|
337
|
-
(bookingId: string, revision: string, options?: ConfirmBookingOptions
|
|
358
|
+
(bookingId: string, revision: string, options?: ConfirmBookingOptions): Promise<NonNullablePaths<ConfirmBookingResponse, {
|
|
359
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
360
|
+
}[BookingNonNullablePaths]> & {
|
|
361
|
+
__applicationErrorsType?: ConfirmBookingApplicationErrors;
|
|
362
|
+
}>;
|
|
338
363
|
}
|
|
339
364
|
declare function setBookingSubmissionId$1(httpClient: HttpClient): SetBookingSubmissionIdSignature;
|
|
340
365
|
interface SetBookingSubmissionIdSignature {
|
|
@@ -343,7 +368,11 @@ interface SetBookingSubmissionIdSignature {
|
|
|
343
368
|
* @param - ID of the booking to set `submissionId` for.
|
|
344
369
|
* @param - ID of the form submission to set on the booking.
|
|
345
370
|
*/
|
|
346
|
-
(bookingId: string, submissionId: string): Promise<SetBookingSubmissionIdResponse
|
|
371
|
+
(bookingId: string, submissionId: string): Promise<NonNullablePaths<SetBookingSubmissionIdResponse, {
|
|
372
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
373
|
+
}[BookingNonNullablePaths]> & {
|
|
374
|
+
__applicationErrorsType?: SetBookingSubmissionIdApplicationErrors;
|
|
375
|
+
}>;
|
|
347
376
|
}
|
|
348
377
|
declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
|
|
349
378
|
interface UpdateExtendedFieldsSignature {
|
|
@@ -359,7 +388,9 @@ interface UpdateExtendedFieldsSignature {
|
|
|
359
388
|
* @param - [Namespace](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-reading-and-writing-schema-plugin-fields#namespaces) of the app for which to update extended fields.
|
|
360
389
|
* @param - Options for updating the booking's extended fields.
|
|
361
390
|
*/
|
|
362
|
-
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse
|
|
391
|
+
(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, `namespace`> & {
|
|
392
|
+
__applicationErrorsType?: UpdateExtendedFieldsApplicationErrors;
|
|
393
|
+
}>;
|
|
363
394
|
}
|
|
364
395
|
declare function declineBooking$1(httpClient: HttpClient): DeclineBookingSignature;
|
|
365
396
|
interface DeclineBookingSignature {
|
|
@@ -406,7 +437,11 @@ interface DeclineBookingSignature {
|
|
|
406
437
|
* declining the booking.
|
|
407
438
|
* @param - An object representing the available options for declining a booking.
|
|
408
439
|
*/
|
|
409
|
-
(bookingId: string, revision: string, options?: DeclineBookingOptions
|
|
440
|
+
(bookingId: string, revision: string, options?: DeclineBookingOptions): Promise<NonNullablePaths<DeclineBookingResponse, {
|
|
441
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
442
|
+
}[BookingNonNullablePaths]> & {
|
|
443
|
+
__applicationErrorsType?: DeclineBookingApplicationErrors;
|
|
444
|
+
}>;
|
|
410
445
|
}
|
|
411
446
|
declare function cancelBooking$1(httpClient: HttpClient): CancelBookingSignature;
|
|
412
447
|
interface CancelBookingSignature {
|
|
@@ -459,7 +494,11 @@ interface CancelBookingSignature {
|
|
|
459
494
|
* @param - ID of the booking to cancel.
|
|
460
495
|
* @param - An object representing the available options for canceling a booking.
|
|
461
496
|
*/
|
|
462
|
-
(bookingId: string, options?: CancelBookingOptions
|
|
497
|
+
(bookingId: string, options?: NonNullablePaths<CancelBookingOptions, `revision`>): Promise<NonNullablePaths<CancelBookingResponse, {
|
|
498
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
499
|
+
}[BookingNonNullablePaths]> & {
|
|
500
|
+
__applicationErrorsType?: CancelBookingApplicationErrors;
|
|
501
|
+
}>;
|
|
463
502
|
}
|
|
464
503
|
declare function updateNumberOfParticipants$1(httpClient: HttpClient): UpdateNumberOfParticipantsSignature;
|
|
465
504
|
interface UpdateNumberOfParticipantsSignature {
|
|
@@ -480,7 +519,11 @@ interface UpdateNumberOfParticipantsSignature {
|
|
|
480
519
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
|
|
481
520
|
* @param - ID of the booking to update the number of participants for.
|
|
482
521
|
*/
|
|
483
|
-
(bookingId: string, options?: UpdateNumberOfParticipantsOptions
|
|
522
|
+
(bookingId: string, options?: NonNullablePaths<UpdateNumberOfParticipantsOptions, `revision`>): Promise<NonNullablePaths<UpdateNumberOfParticipantsResponse, {
|
|
523
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
524
|
+
}[BookingNonNullablePaths]> & {
|
|
525
|
+
__applicationErrorsType?: UpdateNumberOfParticipantsApplicationErrors;
|
|
526
|
+
}>;
|
|
484
527
|
}
|
|
485
528
|
declare function createMultiServiceBooking$1(httpClient: HttpClient): CreateMultiServiceBookingSignature;
|
|
486
529
|
interface CreateMultiServiceBookingSignature {
|
|
@@ -491,7 +534,11 @@ interface CreateMultiServiceBookingSignature {
|
|
|
491
534
|
* See Create Booking for more information.
|
|
492
535
|
* @param - Single-service bookings to combine in a multi-service booking.
|
|
493
536
|
*/
|
|
494
|
-
(bookings: Booking[], options?: CreateMultiServiceBookingOptions
|
|
537
|
+
(bookings: NonNullablePaths<Booking, `additionalFields.${number}._id` | `bookedEntity` | `bookedEntity.slot` | `bookedEntity.slot.endDate` | `bookedEntity.slot.location.locationType` | `bookedEntity.slot.scheduleId` | `bookedEntity.slot.startDate`>[], options?: CreateMultiServiceBookingOptions): Promise<NonNullablePaths<CreateMultiServiceBookingResponse, `multiServiceBooking.bookings` | {
|
|
538
|
+
[P in BookingNonNullablePaths]: `multiServiceBooking.bookings.${number}.booking.${P}`;
|
|
539
|
+
}[BookingNonNullablePaths]> & {
|
|
540
|
+
__applicationErrorsType?: CreateMultiServiceBookingApplicationErrors;
|
|
541
|
+
}>;
|
|
495
542
|
}
|
|
496
543
|
declare function rescheduleMultiServiceBooking$1(httpClient: HttpClient): RescheduleMultiServiceBookingSignature;
|
|
497
544
|
interface RescheduleMultiServiceBookingSignature {
|
|
@@ -507,7 +554,11 @@ interface RescheduleMultiServiceBookingSignature {
|
|
|
507
554
|
* @param - ID of the multi service booking to reschedule.
|
|
508
555
|
* @param - Information about the single-service bookings to reschedule.
|
|
509
556
|
*/
|
|
510
|
-
(multiServiceBookingId: string, rescheduleBookingsInfo: RescheduleBookingInfo[], options?: RescheduleMultiServiceBookingOptions
|
|
557
|
+
(multiServiceBookingId: string, rescheduleBookingsInfo: NonNullablePaths<RescheduleBookingInfo, `bookingId` | `revision` | `slot`>[], options?: RescheduleMultiServiceBookingOptions): Promise<NonNullablePaths<RescheduleMultiServiceBookingResponse, `multiServiceBooking.bookings` | {
|
|
558
|
+
[P in BookingNonNullablePaths]: `multiServiceBooking.bookings.${number}.booking.${P}`;
|
|
559
|
+
}[BookingNonNullablePaths]> & {
|
|
560
|
+
__applicationErrorsType?: RescheduleMultiServiceBookingApplicationErrors;
|
|
561
|
+
}>;
|
|
511
562
|
}
|
|
512
563
|
declare function getMultiServiceBookingAvailability$1(httpClient: HttpClient): GetMultiServiceBookingAvailabilitySignature;
|
|
513
564
|
interface GetMultiServiceBookingAvailabilitySignature {
|
|
@@ -519,7 +570,9 @@ interface GetMultiServiceBookingAvailabilitySignature {
|
|
|
519
570
|
* `SEQUENTIAL_BOOKINGS` multi-service booking.
|
|
520
571
|
* @param - ID of the multi-service booking to retrieve.
|
|
521
572
|
*/
|
|
522
|
-
(multiServiceBookingId: string): Promise<GetMultiServiceBookingAvailabilityResponse
|
|
573
|
+
(multiServiceBookingId: string): Promise<NonNullablePaths<GetMultiServiceBookingAvailabilityResponse, `bookable` | `multiServiceBookingInfo`> & {
|
|
574
|
+
__applicationErrorsType?: GetMultiServiceBookingAvailabilityApplicationErrors;
|
|
575
|
+
}>;
|
|
523
576
|
}
|
|
524
577
|
declare function cancelMultiServiceBooking$1(httpClient: HttpClient): CancelMultiServiceBookingSignature;
|
|
525
578
|
interface CancelMultiServiceBookingSignature {
|
|
@@ -527,7 +580,11 @@ interface CancelMultiServiceBookingSignature {
|
|
|
527
580
|
* Cancels a multi-service booking and thus all its individual bookings.
|
|
528
581
|
* @param - ID of the multi-service booking to cancel.
|
|
529
582
|
*/
|
|
530
|
-
(multiServiceBookingId: string, options?: CancelMultiServiceBookingOptions
|
|
583
|
+
(multiServiceBookingId: string, options?: CancelMultiServiceBookingOptions): Promise<NonNullablePaths<CancelMultiServiceBookingResponse, `multiServiceBooking.bookings` | {
|
|
584
|
+
[P in BookingNonNullablePaths]: `multiServiceBooking.bookings.${number}.booking.${P}`;
|
|
585
|
+
}[BookingNonNullablePaths]> & {
|
|
586
|
+
__applicationErrorsType?: CancelMultiServiceBookingApplicationErrors;
|
|
587
|
+
}>;
|
|
531
588
|
}
|
|
532
589
|
declare function markMultiServiceBookingAsPending$1(httpClient: HttpClient): MarkMultiServiceBookingAsPendingSignature;
|
|
533
590
|
interface MarkMultiServiceBookingAsPendingSignature {
|
|
@@ -542,7 +599,11 @@ interface MarkMultiServiceBookingAsPendingSignature {
|
|
|
542
599
|
* See Mark Booking as Pending for more information.
|
|
543
600
|
* @param - ID of the multi-service booking to mark as `PENDING`.
|
|
544
601
|
*/
|
|
545
|
-
(multiServiceBookingId: string, options?: MarkMultiServiceBookingAsPendingOptions
|
|
602
|
+
(multiServiceBookingId: string, options?: MarkMultiServiceBookingAsPendingOptions): Promise<NonNullablePaths<MarkMultiServiceBookingAsPendingResponse, `multiServiceBooking.bookings` | {
|
|
603
|
+
[P in BookingNonNullablePaths]: `multiServiceBooking.bookings.${number}.booking.${P}`;
|
|
604
|
+
}[BookingNonNullablePaths]> & {
|
|
605
|
+
__applicationErrorsType?: MarkMultiServiceBookingAsPendingApplicationErrors;
|
|
606
|
+
}>;
|
|
546
607
|
}
|
|
547
608
|
declare function confirmMultiServiceBooking$1(httpClient: HttpClient): ConfirmMultiServiceBookingSignature;
|
|
548
609
|
interface ConfirmMultiServiceBookingSignature {
|
|
@@ -557,7 +618,11 @@ interface ConfirmMultiServiceBookingSignature {
|
|
|
557
618
|
* See Confirm Booking for more information.
|
|
558
619
|
* @param - ID of the multi-service booking to confirm its related bookings.
|
|
559
620
|
*/
|
|
560
|
-
(multiServiceBookingId: string, options?: ConfirmMultiServiceBookingOptions
|
|
621
|
+
(multiServiceBookingId: string, options?: ConfirmMultiServiceBookingOptions): Promise<NonNullablePaths<ConfirmMultiServiceBookingResponse, `multiServiceBooking.bookings` | {
|
|
622
|
+
[P in BookingNonNullablePaths]: `multiServiceBooking.bookings.${number}.booking.${P}`;
|
|
623
|
+
}[BookingNonNullablePaths]> & {
|
|
624
|
+
__applicationErrorsType?: ConfirmMultiServiceBookingApplicationErrors;
|
|
625
|
+
}>;
|
|
561
626
|
}
|
|
562
627
|
declare function declineMultiServiceBooking$1(httpClient: HttpClient): DeclineMultiServiceBookingSignature;
|
|
563
628
|
interface DeclineMultiServiceBookingSignature {
|
|
@@ -572,7 +637,11 @@ interface DeclineMultiServiceBookingSignature {
|
|
|
572
637
|
* See Decline Booking for more information.
|
|
573
638
|
* @param - ID of the multi service booking to decline.
|
|
574
639
|
*/
|
|
575
|
-
(multiServiceBookingId: string, options?: DeclineMultiServiceBookingOptions
|
|
640
|
+
(multiServiceBookingId: string, options?: DeclineMultiServiceBookingOptions): Promise<NonNullablePaths<DeclineMultiServiceBookingResponse, `multiServiceBooking.bookings` | {
|
|
641
|
+
[P in BookingNonNullablePaths]: `multiServiceBooking.bookings.${number}.booking.${P}`;
|
|
642
|
+
}[BookingNonNullablePaths]> & {
|
|
643
|
+
__applicationErrorsType?: DeclineMultiServiceBookingApplicationErrors;
|
|
644
|
+
}>;
|
|
576
645
|
}
|
|
577
646
|
declare function bulkGetMultiServiceBookingAllowedActions$1(httpClient: HttpClient): BulkGetMultiServiceBookingAllowedActionsSignature;
|
|
578
647
|
interface BulkGetMultiServiceBookingAllowedActionsSignature {
|
|
@@ -580,7 +649,7 @@ interface BulkGetMultiServiceBookingAllowedActionsSignature {
|
|
|
580
649
|
* Retrieves the allowed actions for a list of multi-service bookings.
|
|
581
650
|
* @param - IDs of the multi-service bookings to retrieve allowed actions for.
|
|
582
651
|
*/
|
|
583
|
-
(multiServiceBookingIds: string[]): Promise<BulkGetMultiServiceBookingAllowedActionsResponse
|
|
652
|
+
(multiServiceBookingIds: string[]): Promise<NonNullablePaths<BulkGetMultiServiceBookingAllowedActionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.cancel` | `results.${number}.item.reschedule` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
584
653
|
}
|
|
585
654
|
declare function getMultiServiceBooking$1(httpClient: HttpClient): GetMultiServiceBookingSignature;
|
|
586
655
|
interface GetMultiServiceBookingSignature {
|
|
@@ -595,7 +664,9 @@ interface GetMultiServiceBookingSignature {
|
|
|
595
664
|
* @param - ID of the multi-service booking.
|
|
596
665
|
* @returns Retrieved multi-service booking.
|
|
597
666
|
*/
|
|
598
|
-
(multiServiceBookingId: string): Promise<MultiServiceBooking
|
|
667
|
+
(multiServiceBookingId: string): Promise<NonNullablePaths<MultiServiceBooking, `bookings` | {
|
|
668
|
+
[P in BookingNonNullablePaths]: `bookings.${number}.booking.${P}`;
|
|
669
|
+
}[BookingNonNullablePaths]>>;
|
|
599
670
|
}
|
|
600
671
|
declare function addBookingsToMultiServiceBooking$1(httpClient: HttpClient): AddBookingsToMultiServiceBookingSignature;
|
|
601
672
|
interface AddBookingsToMultiServiceBookingSignature {
|
|
@@ -607,7 +678,11 @@ interface AddBookingsToMultiServiceBookingSignature {
|
|
|
607
678
|
* multi-service booking.
|
|
608
679
|
* @param - ID of the multi-service booking.
|
|
609
680
|
*/
|
|
610
|
-
(multiServiceBookingId: string, options?: AddBookingsToMultiServiceBookingOptions |
|
|
681
|
+
(multiServiceBookingId: string, options?: NonNullablePaths<AddBookingsToMultiServiceBookingOptions, `bookings` | `bookings.${number}.bookingId` | `bookings.${number}.revision`>): Promise<NonNullablePaths<AddBookingsToMultiServiceBookingResponse, `bookings` | {
|
|
682
|
+
[P in BookingNonNullablePaths]: `bookings.${number}.booking.${P}`;
|
|
683
|
+
}[BookingNonNullablePaths]> & {
|
|
684
|
+
__applicationErrorsType?: AddBookingsToMultiServiceBookingApplicationErrors;
|
|
685
|
+
}>;
|
|
611
686
|
}
|
|
612
687
|
declare function removeBookingsFromMultiServiceBooking$1(httpClient: HttpClient): RemoveBookingsFromMultiServiceBookingSignature;
|
|
613
688
|
interface RemoveBookingsFromMultiServiceBookingSignature {
|
|
@@ -624,7 +699,11 @@ interface RemoveBookingsFromMultiServiceBookingSignature {
|
|
|
624
699
|
* booking, the multi-service booking is also deleted.
|
|
625
700
|
* @param - ID of the multi-service booking.
|
|
626
701
|
*/
|
|
627
|
-
(multiServiceBookingId: string, options?: RemoveBookingsFromMultiServiceBookingOptions
|
|
702
|
+
(multiServiceBookingId: string, options?: RemoveBookingsFromMultiServiceBookingOptions): Promise<NonNullablePaths<RemoveBookingsFromMultiServiceBookingResponse, `bookings` | {
|
|
703
|
+
[P in BookingNonNullablePaths]: `bookings.${number}.booking.${P}`;
|
|
704
|
+
}[BookingNonNullablePaths]> & {
|
|
705
|
+
__applicationErrorsType?: RemoveBookingsFromMultiServiceBookingApplicationErrors;
|
|
706
|
+
}>;
|
|
628
707
|
}
|
|
629
708
|
declare const onBookingCanceled$1: EventDefinition<BookingCanceledEnvelope, "wix.bookings.v2.booking_canceled">;
|
|
630
709
|
declare const onBookingConfirmed$1: EventDefinition<BookingConfirmedEnvelope, "wix.bookings.v2.booking_confirmed">;
|