@wix/auto_sdk_bookings_bookings 1.0.53 → 1.0.55
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.js.map +1 -1
- package/build/cjs/index.typings.d.ts +21 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +21 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +21 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +21 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2992,6 +2992,7 @@ interface RemoveBookingsFromMultiServiceBookingResponse {
|
|
|
2992
2992
|
/** Single-service bookings that were removed from the multi-service booking. */
|
|
2993
2993
|
bookings?: BookingResult[];
|
|
2994
2994
|
}
|
|
2995
|
+
/** @docsIgnore */
|
|
2995
2996
|
type ConfirmOrDeclineBookingApplicationErrors = {
|
|
2996
2997
|
code?: 'INVALID_BOOKING_STATUS';
|
|
2997
2998
|
description?: string;
|
|
@@ -3001,11 +3002,13 @@ type ConfirmOrDeclineBookingApplicationErrors = {
|
|
|
3001
3002
|
description?: string;
|
|
3002
3003
|
data?: Record<string, any>;
|
|
3003
3004
|
};
|
|
3005
|
+
/** @docsIgnore */
|
|
3004
3006
|
type BulkConfirmOrDeclineBookingApplicationErrors = {
|
|
3005
3007
|
code?: 'DUPLICATED_BOOKINGS';
|
|
3006
3008
|
description?: string;
|
|
3007
3009
|
data?: Record<string, any>;
|
|
3008
3010
|
};
|
|
3011
|
+
/** @docsIgnore */
|
|
3009
3012
|
type CreateBookingApplicationErrors = {
|
|
3010
3013
|
code?: 'SESSION_NOT_FOUND';
|
|
3011
3014
|
description?: string;
|
|
@@ -3079,6 +3082,7 @@ type CreateBookingApplicationErrors = {
|
|
|
3079
3082
|
description?: string;
|
|
3080
3083
|
data?: Record<string, any>;
|
|
3081
3084
|
};
|
|
3085
|
+
/** @docsIgnore */
|
|
3082
3086
|
type BulkCreateBookingApplicationErrors = {
|
|
3083
3087
|
code?: 'SESSION_NOT_FOUND';
|
|
3084
3088
|
description?: string;
|
|
@@ -3120,6 +3124,7 @@ type BulkCreateBookingApplicationErrors = {
|
|
|
3120
3124
|
description?: string;
|
|
3121
3125
|
data?: Record<string, any>;
|
|
3122
3126
|
};
|
|
3127
|
+
/** @docsIgnore */
|
|
3123
3128
|
type RescheduleBookingApplicationErrors = {
|
|
3124
3129
|
code?: 'BOOKING_NOT_FOUND';
|
|
3125
3130
|
description?: string;
|
|
@@ -3201,6 +3206,7 @@ type RescheduleBookingApplicationErrors = {
|
|
|
3201
3206
|
description?: string;
|
|
3202
3207
|
data?: Record<string, any>;
|
|
3203
3208
|
};
|
|
3209
|
+
/** @docsIgnore */
|
|
3204
3210
|
type ConfirmBookingApplicationErrors = {
|
|
3205
3211
|
code?: 'BOOKING_NOT_FOUND';
|
|
3206
3212
|
description?: string;
|
|
@@ -3218,16 +3224,19 @@ type ConfirmBookingApplicationErrors = {
|
|
|
3218
3224
|
description?: string;
|
|
3219
3225
|
data?: Record<string, any>;
|
|
3220
3226
|
};
|
|
3227
|
+
/** @docsIgnore */
|
|
3221
3228
|
type SetBookingSubmissionIdApplicationErrors = {
|
|
3222
3229
|
code?: 'BOOKING_NOT_FOUND';
|
|
3223
3230
|
description?: string;
|
|
3224
3231
|
data?: Record<string, any>;
|
|
3225
3232
|
};
|
|
3233
|
+
/** @docsIgnore */
|
|
3226
3234
|
type UpdateExtendedFieldsApplicationErrors = {
|
|
3227
3235
|
code?: 'BOOKING_NOT_FOUND';
|
|
3228
3236
|
description?: string;
|
|
3229
3237
|
data?: Record<string, any>;
|
|
3230
3238
|
};
|
|
3239
|
+
/** @docsIgnore */
|
|
3231
3240
|
type DeclineBookingApplicationErrors = {
|
|
3232
3241
|
code?: 'BOOKING_NOT_FOUND';
|
|
3233
3242
|
description?: string;
|
|
@@ -3241,6 +3250,7 @@ type DeclineBookingApplicationErrors = {
|
|
|
3241
3250
|
description?: string;
|
|
3242
3251
|
data?: Record<string, any>;
|
|
3243
3252
|
};
|
|
3253
|
+
/** @docsIgnore */
|
|
3244
3254
|
type CancelBookingApplicationErrors = {
|
|
3245
3255
|
code?: 'BOOKING_NOT_FOUND';
|
|
3246
3256
|
description?: string;
|
|
@@ -3266,11 +3276,13 @@ type CancelBookingApplicationErrors = {
|
|
|
3266
3276
|
description?: string;
|
|
3267
3277
|
data?: Record<string, any>;
|
|
3268
3278
|
};
|
|
3279
|
+
/** @docsIgnore */
|
|
3269
3280
|
type UpdateNumberOfParticipantsApplicationErrors = {
|
|
3270
3281
|
code?: 'BOOKING_NOT_FOUND';
|
|
3271
3282
|
description?: string;
|
|
3272
3283
|
data?: Record<string, any>;
|
|
3273
3284
|
};
|
|
3285
|
+
/** @docsIgnore */
|
|
3274
3286
|
type MarkBookingAsPendingApplicationErrors = {
|
|
3275
3287
|
code?: 'BOOKING_MARK_BOOKING_AS_PENDING';
|
|
3276
3288
|
description?: string;
|
|
@@ -3288,6 +3300,7 @@ type MarkBookingAsPendingApplicationErrors = {
|
|
|
3288
3300
|
description?: string;
|
|
3289
3301
|
data?: Record<string, any>;
|
|
3290
3302
|
};
|
|
3303
|
+
/** @docsIgnore */
|
|
3291
3304
|
type CreateMultiServiceBookingApplicationErrors = {
|
|
3292
3305
|
code?: 'VALIDATION_FAILURE';
|
|
3293
3306
|
description?: string;
|
|
@@ -3325,6 +3338,7 @@ type CreateMultiServiceBookingApplicationErrors = {
|
|
|
3325
3338
|
description?: string;
|
|
3326
3339
|
data?: Record<string, any>;
|
|
3327
3340
|
};
|
|
3341
|
+
/** @docsIgnore */
|
|
3328
3342
|
type RescheduleMultiServiceBookingApplicationErrors = {
|
|
3329
3343
|
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3330
3344
|
description?: string;
|
|
@@ -3362,11 +3376,13 @@ type RescheduleMultiServiceBookingApplicationErrors = {
|
|
|
3362
3376
|
description?: string;
|
|
3363
3377
|
data?: Record<string, any>;
|
|
3364
3378
|
};
|
|
3379
|
+
/** @docsIgnore */
|
|
3365
3380
|
type GetMultiServiceBookingAvailabilityApplicationErrors = {
|
|
3366
3381
|
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3367
3382
|
description?: string;
|
|
3368
3383
|
data?: Record<string, any>;
|
|
3369
3384
|
};
|
|
3385
|
+
/** @docsIgnore */
|
|
3370
3386
|
type CancelMultiServiceBookingApplicationErrors = {
|
|
3371
3387
|
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3372
3388
|
description?: string;
|
|
@@ -3384,6 +3400,7 @@ type CancelMultiServiceBookingApplicationErrors = {
|
|
|
3384
3400
|
description?: string;
|
|
3385
3401
|
data?: Record<string, any>;
|
|
3386
3402
|
};
|
|
3403
|
+
/** @docsIgnore */
|
|
3387
3404
|
type MarkMultiServiceBookingAsPendingApplicationErrors = {
|
|
3388
3405
|
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3389
3406
|
description?: string;
|
|
@@ -3421,6 +3438,7 @@ type MarkMultiServiceBookingAsPendingApplicationErrors = {
|
|
|
3421
3438
|
description?: string;
|
|
3422
3439
|
data?: Record<string, any>;
|
|
3423
3440
|
};
|
|
3441
|
+
/** @docsIgnore */
|
|
3424
3442
|
type ConfirmMultiServiceBookingApplicationErrors = {
|
|
3425
3443
|
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3426
3444
|
description?: string;
|
|
@@ -3470,6 +3488,7 @@ type ConfirmMultiServiceBookingApplicationErrors = {
|
|
|
3470
3488
|
description?: string;
|
|
3471
3489
|
data?: Record<string, any>;
|
|
3472
3490
|
};
|
|
3491
|
+
/** @docsIgnore */
|
|
3473
3492
|
type DeclineMultiServiceBookingApplicationErrors = {
|
|
3474
3493
|
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3475
3494
|
description?: string;
|
|
@@ -3511,6 +3530,7 @@ type DeclineMultiServiceBookingApplicationErrors = {
|
|
|
3511
3530
|
description?: string;
|
|
3512
3531
|
data?: Record<string, any>;
|
|
3513
3532
|
};
|
|
3533
|
+
/** @docsIgnore */
|
|
3514
3534
|
type AddBookingsToMultiServiceBookingApplicationErrors = {
|
|
3515
3535
|
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3516
3536
|
description?: string;
|
|
@@ -3536,6 +3556,7 @@ type AddBookingsToMultiServiceBookingApplicationErrors = {
|
|
|
3536
3556
|
description?: string;
|
|
3537
3557
|
data?: Record<string, any>;
|
|
3538
3558
|
};
|
|
3559
|
+
/** @docsIgnore */
|
|
3539
3560
|
type RemoveBookingsFromMultiServiceBookingApplicationErrors = {
|
|
3540
3561
|
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3541
3562
|
description?: string;
|
|
@@ -3978,7 +3999,6 @@ interface BulkConfirmOrDeclineBookingOptions {
|
|
|
3978
3999
|
* @requiredField booking.bookedEntity
|
|
3979
4000
|
* @permissionId BOOKINGS.BOOKING_CREATE
|
|
3980
4001
|
* @applicableIdentity APP
|
|
3981
|
-
* @applicableIdentity VISITOR
|
|
3982
4002
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.CreateBooking
|
|
3983
4003
|
*/
|
|
3984
4004
|
declare function createBooking(booking: NonNullablePaths<Booking, `additionalFields.${number}._id` | `bookedEntity`, 4>, options?: CreateBookingOptions): Promise<NonNullablePaths<CreateBookingResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId`, 7> & {
|
|
@@ -4026,7 +4046,6 @@ interface CreateBookingOptions {
|
|
|
4026
4046
|
* @requiredField createBookingsInfo.booking.bookedEntity
|
|
4027
4047
|
* @permissionId BOOKINGS.BOOKING_CREATE
|
|
4028
4048
|
* @applicableIdentity APP
|
|
4029
|
-
* @applicableIdentity VISITOR
|
|
4030
4049
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.BulkCreateBooking
|
|
4031
4050
|
*/
|
|
4032
4051
|
declare function bulkCreateBooking(createBookingsInfo: NonNullablePaths<CreateBookingInfo, `booking` | `booking.additionalFields.${number}._id` | `booking.bookedEntity`, 5>[], options?: BulkCreateBookingOptions): Promise<NonNullablePaths<BulkCreateBookingResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.totalParticipants` | `results.${number}.item.status` | `results.${number}.item.paymentStatus` | `results.${number}.item.selectedPaymentOption` | `results.${number}.item.createdBy.anonymousVisitorId` | `results.${number}.item.createdBy.memberId` | `results.${number}.item.createdBy.wixUserId` | `results.${number}.item.createdBy.appId` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
|
|
@@ -4565,7 +4584,6 @@ interface MarkBookingAsPendingOptions {
|
|
|
4565
4584
|
* @requiredField bookings.bookedEntity.item.slot.startDate
|
|
4566
4585
|
* @permissionId MULTI_SERVICE_BOOKINGS.MULTI_SERVICE_BOOKING_CREATE
|
|
4567
4586
|
* @applicableIdentity APP
|
|
4568
|
-
* @applicableIdentity VISITOR
|
|
4569
4587
|
* @fqn com.wixpress.bookings.bookings.v2.MultiServiceBookings.CreateMultiServiceBooking
|
|
4570
4588
|
*/
|
|
4571
4589
|
declare function createMultiServiceBooking(bookings: NonNullablePaths<Booking, `additionalFields.${number}._id` | `bookedEntity` | `bookedEntity.slot` | `bookedEntity.slot.endDate` | `bookedEntity.slot.location.locationType` | `bookedEntity.slot.scheduleId` | `bookedEntity.slot.startDate`, 5>[], options?: CreateMultiServiceBookingOptions): Promise<NonNullablePaths<CreateMultiServiceBookingResponse, `multiServiceBooking.bookings` | `multiServiceBooking.bookings.${number}.booking.totalParticipants` | `multiServiceBooking.bookings.${number}.booking.status` | `multiServiceBooking.bookings.${number}.booking.paymentStatus` | `multiServiceBooking.bookings.${number}.booking.selectedPaymentOption` | `multiServiceBooking.bookings.${number}.booking.createdBy.anonymousVisitorId` | `multiServiceBooking.bookings.${number}.booking.createdBy.memberId` | `multiServiceBooking.bookings.${number}.booking.createdBy.wixUserId` | `multiServiceBooking.bookings.${number}.booking.createdBy.appId`, 7> & {
|
|
@@ -4651,7 +4669,6 @@ interface RescheduleMultiServiceBookingOptions {
|
|
|
4651
4669
|
* @requiredField multiServiceBookingId
|
|
4652
4670
|
* @permissionId MULTI_SERVICE_BOOKINGS.MULTI_SERVICE_BOOKING_GET_AVAILABILITY
|
|
4653
4671
|
* @applicableIdentity APP
|
|
4654
|
-
* @applicableIdentity VISITOR
|
|
4655
4672
|
* @fqn com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBookingAvailability
|
|
4656
4673
|
*/
|
|
4657
4674
|
declare function getMultiServiceBookingAvailability(multiServiceBookingId: string): Promise<NonNullablePaths<GetMultiServiceBookingAvailabilityResponse, `bookable` | `multiServiceBookingInfo`, 2> & {
|
|
@@ -4875,7 +4892,6 @@ interface DeclineMultiServiceBookingOptions {
|
|
|
4875
4892
|
* @requiredField multiServiceBookingIds
|
|
4876
4893
|
* @permissionId MULTI_SERVICE_BOOKINGS.MULTI_SERVICE_BOOKING_GET_ALLOWED_ACTIONS
|
|
4877
4894
|
* @applicableIdentity APP
|
|
4878
|
-
* @applicableIdentity VISITOR
|
|
4879
4895
|
* @fqn com.wixpress.bookings.bookings.v2.MultiServiceBookings.BulkGetMultiServiceBookingAllowedActions
|
|
4880
4896
|
*/
|
|
4881
4897
|
declare function bulkGetMultiServiceBookingAllowedActions(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`, 6>>;
|