@wix/bookings 1.0.255 → 1.0.257

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.
@@ -14,4 +14,4 @@ export declare function updateNumberOfParticipants(httpClient: HttpClient): (boo
14
14
  export declare function confirmOrDeclineBooking(httpClient: HttpClient): (bookingId: string, options?: ConfirmOrDeclineBookingOptions | undefined) => Promise<import("./bookings-v2-booking.universal").ConfirmOrDeclineBookingResponse & import("./bookings-v2-booking.universal").ConfirmOrDeclineBookingResponseNonNullableFields>;
15
15
  export declare function bulkConfirmOrDeclineBooking(httpClient: HttpClient): (details: BulkConfirmOrDeclineBookingRequestBookingDetails[], options?: BulkConfirmOrDeclineBookingOptions | undefined) => Promise<import("./bookings-v2-booking.universal").BulkConfirmOrDeclineBookingResponse & import("./bookings-v2-booking.universal").BulkConfirmOrDeclineBookingResponseNonNullableFields>;
16
16
  export { MultiServiceBookingType, LocationType, Type, ValueType, BookingStatus, PaymentStatus, SelectedPaymentOption, Platform, Actor, IdentificationDataIdentityType, LocationLocationType, IdentityType, SortOrder, } from './bookings-v2-booking.universal';
17
- export { Booking, BookingParticipantsInfoOneOf, BookedEntity, BookedEntityItemOneOf, BookedSlot, BookedResource, Location, GroupedResources, BookedSchedule, ContactDetails, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, CustomFormField, BookingSource, ParticipantNotification, CommonIdentificationData, CommonIdentificationDataIdOneOf, FlowControlSettings, ExtendedFields, ParticipantChoices, ServiceChoices, ServiceChoice, ServiceChoiceChoiceOneOf, MultiServiceBookingInfo, CreateMultiServiceBookingRequest, CreateBookingFlowControlSettings, CreateMultiServiceBookingResponse, MultiServiceBooking, BookingResult, RescheduleMultiServiceBookingRequest, V2Slot, SlotSlotResource, SlotLocation, RescheduleMultiServiceBookingRequestRescheduleBookingInfo, RescheduleMultiServiceBookingRequestRescheduleBookingInfoParticipantsInfoOneOf, RescheduleBookingFlowControlSettings, RescheduleMultiServiceBookingResponse, BookingRescheduled, BookingRescheduledPreviousParticipantsInfoOneOf, IdentificationData, IdentificationDataIdOneOf, GetMultiServiceBookingAvailabilityRequest, GetMultiServiceBookingAvailabilityResponse, BookingPolicyViolations, BookingPolicySettings, GetMultiServiceBookingAvailabilityResponseBookingInfo, CancelMultiServiceBookingRequest, CancelBookingFlowControlSettings, CancelMultiServiceBookingResponse, BookingCanceled, MarkMultiServiceBookingAsPendingRequest, BookingInfo, MarkBookingAsPendingFlowControlSettings, MarkMultiServiceBookingAsPendingResponse, ConfirmMultiServiceBookingRequest, ConfirmBookingFlowControlSettings, ConfirmMultiServiceBookingResponse, BookingConfirmed, DeclineMultiServiceBookingRequest, DeclineMultiServiceBookingResponse, BookingDeclined, BulkGetMultiServiceBookingAllowedActionsRequest, BulkGetMultiServiceBookingAllowedActionsResponse, BulkCalculateAllowedActionsResult, ItemMetadata, ApplicationError, AllowedActions, BulkActionMetadata, MarkAsMultiServiceBookingRequest, MarkAsMultiServiceBookingResponse, GetMultiServiceBookingRequest, GetMultiServiceBookingResponse, AddBookingsToMultiServiceBookingRequest, BookingIdAndRevision, AddBookingsToMultiServiceBookingResponse, RemoveBookingsFromMultiServiceBookingRequest, RemoveBookingsFromMultiServiceBookingResponse, CreateGroupedBookingsRequest, CreateGroupedBookingsResponse, GetGroupedBookingsAvailabilityRequest, GetGroupedBookingsAvailabilityResponse, GroupedBookingInfo, CancelGroupedBookingsRequest, CancelGroupedBookingsResponse, RescheduleGroupedBookingsRequest, RescheduleBookingInfo, RescheduleBookingInfoParticipantsInfoOneOf, RescheduleGroupedBookingsResponse, ConfirmGroupedBookingsRequest, ConfirmGroupedBookingsResponse, DeclineGroupedBookingsRequest, DeclineGroupedBookingsResponse, BulkCalculateGroupedBookingsAllowedActionsRequest, BulkCalculateGroupedBookingsAllowedActionsResponse, SplitGroupedBookingsRequest, SplitGroupedBookingsResponse, AddToGroupRequest, AddToGroupResponse, RemoveFromGroupRequest, RemoveFromGroupResponse, MarkGroupedBookingsAsPendingRequest, MarkGroupedBookingsAsPendingResponse, BookingMarkedAsPending, BookingChanged, CreateBookingRequest, CreateBookingResponse, UpdateBookingRequest, UpdateBookingResponse, LegacyCreateBookingRequest, LegacyCreateBookingResponse, BulkUpdateBookingRequest, MaskedBooking, BulkUpdateBookingResponse, BulkCreateBookingRequest, CreateBookingInfo, BulkCreateBookingResponse, BulkBookingResult, RescheduleBookingRequest, RescheduleBookingRequestParticipantsInfoOneOf, RescheduleBookingResponse, BulkRescheduleBookingRequest, BulkRescheduleBookingRequestBooking, SlotBookings, BulkRescheduleBookingResponse, BulkUpdateBookedScheduleRequest, BookingDetails, BulkUpdateBookedScheduleResponse, QueryBookingsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryBookingsResponse, PagingMetadataV2, Cursors, ConfirmRequest, ConfirmResponse, ConfirmBookingRequest, ConfirmBookingResponse, PartySizeRequest, PartySizeRequestPartySizeForOneOf, PartySizeResponse, ConsistentQueryBookingsRequest, ConsistentQueryBookingsResponse, SetBookingSessionIdRequest, SetBookingSessionIdResponse, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, DeclineBookingRequest, DeclineBookingResponse, CancelBookingRequest, CancelBookingResponse, UpdateNumberOfParticipantsRequest, UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, UpdateNumberOfParticipantsResponse, NumberOfParticipantsUpdated, NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf, CalculateAllowedActionsRequest, CalculateAllowedActionsResponse, BulkCalculateAllowedActionsRequest, BulkCalculateAllowedActionsResponse, GetSlotAvailabilityRequest, GetSlotAvailabilityResponse, SlotAvailability, WaitingList, GetScheduleAvailabilityRequest, GetScheduleAvailabilityResponse, ScheduleAvailability, MarkBookingAsPendingRequest, MarkBookingAsPendingResponse, ConfirmOrDeclineBookingRequest, ConfirmOrDeclineBookingResponse, BulkConfirmOrDeclineBookingRequest, BulkConfirmOrDeclineBookingRequestBookingDetails, BulkConfirmOrDeclineBookingResponse, V2CreateBookingRequest, V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf, Slot, SlotResource, CreateBookingRequestFlowControlSettings, V2CreateBookingResponse, V2CancelBookingRequest, V2CancelBookingRequestFlowControlSettings, V2CancelBookingResponse, V2RescheduleBookingRequest, V2RescheduleBookingRequestParticipantsInfoOneOf, V2RescheduleBookingRequestFlowControlSettings, V2RescheduleBookingResponse, V2ConfirmBookingRequest, V2ConfirmBookingResponse, V2DeclineBookingRequest, V2DeclineBookingResponse, V2UpdateNumberOfParticipantsRequest, V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, V2UpdateNumberOfParticipantsResponse, CreateBookingResponseNonNullableFields, BulkCreateBookingResponseNonNullableFields, RescheduleBookingResponseNonNullableFields, ConfirmBookingResponseNonNullableFields, UpdateExtendedFieldsResponseNonNullableFields, DeclineBookingResponseNonNullableFields, CancelBookingResponseNonNullableFields, UpdateNumberOfParticipantsResponseNonNullableFields, ConfirmOrDeclineBookingResponseNonNullableFields, BulkConfirmOrDeclineBookingResponseNonNullableFields, CreateBookingOptions, BulkCreateBookingOptions, RescheduleBookingOptions, ConfirmBookingOptions, UpdateExtendedFieldsOptions, DeclineBookingOptions, CancelBookingOptions, UpdateNumberOfParticipantsOptions, ConfirmOrDeclineBookingOptions, BulkConfirmOrDeclineBookingOptions, } from './bookings-v2-booking.universal';
17
+ export { Booking, BookingParticipantsInfoOneOf, BookedEntity, BookedEntityItemOneOf, BookedSlot, BookedResource, Location, GroupedResources, BookedSchedule, ContactDetails, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, CustomFormField, BookingSource, ParticipantNotification, CommonIdentificationData, CommonIdentificationDataIdOneOf, FlowControlSettings, ExtendedFields, ParticipantChoices, ServiceChoices, ServiceChoice, ServiceChoiceChoiceOneOf, MultiServiceBookingInfo, CreateMultiServiceBookingRequest, CreateBookingFlowControlSettings, CreateMultiServiceBookingResponse, MultiServiceBooking, BookingResult, RescheduleMultiServiceBookingRequest, V2Slot, SlotSlotResource, SlotLocation, RescheduleMultiServiceBookingRequestRescheduleBookingInfo, RescheduleMultiServiceBookingRequestRescheduleBookingInfoParticipantsInfoOneOf, RescheduleBookingFlowControlSettings, RescheduleMultiServiceBookingResponse, BookingRescheduled, BookingRescheduledPreviousParticipantsInfoOneOf, IdentificationData, IdentificationDataIdOneOf, GetMultiServiceBookingAvailabilityRequest, GetMultiServiceBookingAvailabilityResponse, BookingPolicyViolations, BookingPolicySettings, GetMultiServiceBookingAvailabilityResponseBookingInfo, CancelMultiServiceBookingRequest, CancelBookingFlowControlSettings, CancelMultiServiceBookingResponse, BookingCanceled, MarkMultiServiceBookingAsPendingRequest, BookingInfo, MarkBookingAsPendingFlowControlSettings, MarkMultiServiceBookingAsPendingResponse, ConfirmMultiServiceBookingRequest, ConfirmBookingFlowControlSettings, ConfirmMultiServiceBookingResponse, BookingConfirmed, DeclineMultiServiceBookingRequest, DeclineMultiServiceBookingResponse, BookingDeclined, BulkGetMultiServiceBookingAllowedActionsRequest, BulkGetMultiServiceBookingAllowedActionsResponse, BulkCalculateAllowedActionsResult, ItemMetadata, ApplicationError, AllowedActions, BulkActionMetadata, MarkAsMultiServiceBookingRequest, MarkAsMultiServiceBookingResponse, GetMultiServiceBookingRequest, GetMultiServiceBookingResponse, AddBookingsToMultiServiceBookingRequest, BookingIdAndRevision, AddBookingsToMultiServiceBookingResponse, RemoveBookingsFromMultiServiceBookingRequest, RemoveBookingsFromMultiServiceBookingResponse, BookingChanged, CreateBookingRequest, CreateBookingResponse, UpdateBookingRequest, UpdateBookingResponse, LegacyCreateBookingRequest, LegacyCreateBookingResponse, BulkUpdateBookingRequest, MaskedBooking, BulkUpdateBookingResponse, BulkCreateBookingRequest, CreateBookingInfo, BulkCreateBookingResponse, BulkBookingResult, RescheduleBookingRequest, RescheduleBookingRequestParticipantsInfoOneOf, RescheduleBookingResponse, BulkRescheduleBookingRequest, BulkRescheduleBookingRequestBooking, SlotBookings, BulkRescheduleBookingResponse, BulkUpdateBookedScheduleRequest, BookingDetails, BulkUpdateBookedScheduleResponse, QueryBookingsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryBookingsResponse, PagingMetadataV2, Cursors, ConfirmRequest, ConfirmResponse, ConfirmBookingRequest, ConfirmBookingResponse, PartySizeRequest, PartySizeRequestPartySizeForOneOf, PartySizeResponse, ConsistentQueryBookingsRequest, ConsistentQueryBookingsResponse, SetBookingSessionIdRequest, SetBookingSessionIdResponse, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, DeclineBookingRequest, DeclineBookingResponse, CancelBookingRequest, CancelBookingResponse, UpdateNumberOfParticipantsRequest, UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, UpdateNumberOfParticipantsResponse, NumberOfParticipantsUpdated, NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf, CalculateAllowedActionsRequest, CalculateAllowedActionsResponse, BulkCalculateAllowedActionsRequest, BulkCalculateAllowedActionsResponse, GetSlotAvailabilityRequest, GetSlotAvailabilityResponse, SlotAvailability, WaitingList, GetScheduleAvailabilityRequest, GetScheduleAvailabilityResponse, ScheduleAvailability, MarkBookingAsPendingRequest, MarkBookingAsPendingResponse, BookingMarkedAsPending, ConfirmOrDeclineBookingRequest, ConfirmOrDeclineBookingResponse, BulkConfirmOrDeclineBookingRequest, BulkConfirmOrDeclineBookingRequestBookingDetails, BulkConfirmOrDeclineBookingResponse, V2CreateBookingRequest, V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf, Slot, SlotResource, CreateBookingRequestFlowControlSettings, V2CreateBookingResponse, V2CancelBookingRequest, V2CancelBookingRequestFlowControlSettings, V2CancelBookingResponse, V2RescheduleBookingRequest, V2RescheduleBookingRequestParticipantsInfoOneOf, V2RescheduleBookingRequestFlowControlSettings, V2RescheduleBookingResponse, V2ConfirmBookingRequest, V2ConfirmBookingResponse, V2DeclineBookingRequest, V2DeclineBookingResponse, V2UpdateNumberOfParticipantsRequest, V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, V2UpdateNumberOfParticipantsResponse, CreateBookingResponseNonNullableFields, BulkCreateBookingResponseNonNullableFields, RescheduleBookingResponseNonNullableFields, ConfirmBookingResponseNonNullableFields, UpdateExtendedFieldsResponseNonNullableFields, DeclineBookingResponseNonNullableFields, CancelBookingResponseNonNullableFields, UpdateNumberOfParticipantsResponseNonNullableFields, ConfirmOrDeclineBookingResponseNonNullableFields, BulkConfirmOrDeclineBookingResponseNonNullableFields, CreateBookingOptions, BulkCreateBookingOptions, RescheduleBookingOptions, ConfirmBookingOptions, UpdateExtendedFieldsOptions, DeclineBookingOptions, CancelBookingOptions, UpdateNumberOfParticipantsOptions, ConfirmOrDeclineBookingOptions, BulkConfirmOrDeclineBookingOptions, } from './bookings-v2-booking.universal';
@@ -1098,7 +1098,7 @@ export interface BulkActionMetadata {
1098
1098
  undetailedFailures?: number;
1099
1099
  }
1100
1100
  export interface MarkAsMultiServiceBookingRequest {
1101
- /** IDs of the bookings to group together. */
1101
+ /** IDs of the bookings to mark as multi service booking. */
1102
1102
  bookingIds?: string[] | null;
1103
1103
  /**
1104
1104
  * Multi service booking type.
@@ -1157,283 +1157,6 @@ export interface RemoveBookingsFromMultiServiceBookingResponse {
1157
1157
  /** The bookings that were removed from the multi service booking. */
1158
1158
  bookings?: BookingResult[];
1159
1159
  }
1160
- export interface CreateGroupedBookingsRequest {
1161
- /** The grouped bookings to create. */
1162
- bookings?: Booking[];
1163
- /** Information about a message to send to the customer. */
1164
- participantNotification?: ParticipantNotification;
1165
- /**
1166
- * Whether to send an SMS reminder to the customer 24 hours before the
1167
- * session starts. The phone number is taken from `contactDetails.phone`.
1168
- * Default: `true`.
1169
- */
1170
- sendSmsReminder?: boolean | null;
1171
- /**
1172
- * Information about whether specific procedures of the standard Wix Bookings
1173
- * creation flow are changed. For example, whether the availability is
1174
- * checked before creating the booking or if additional payment options are
1175
- * accepted.
1176
- */
1177
- flowControlSettings?: CreateBookingFlowControlSettings;
1178
- /** Whether to return the created grouped bookings entities. */
1179
- returnFullEntity?: boolean;
1180
- }
1181
- export interface CreateGroupedBookingsResponse {
1182
- /** Group ID. */
1183
- groupId?: string | null;
1184
- /** Created grouped bookings. */
1185
- bookings?: BookingResult[];
1186
- }
1187
- export interface GetGroupedBookingsAvailabilityRequest {
1188
- groupId?: string | null;
1189
- }
1190
- export interface GetGroupedBookingsAvailabilityResponse {
1191
- /** Whether these grouped bookings are bookable. */
1192
- bookable?: boolean;
1193
- /** Total number of spots for this availability. */
1194
- totalSpots?: number | null;
1195
- /** Number of open spots for this availability. */
1196
- openSpots?: number | null;
1197
- /** Indicators for grouped bookings policy violations. */
1198
- groupedBookingsPolicyViolations?: BookingPolicyViolations;
1199
- /** Booking policy settings */
1200
- bookingPolicySettings?: BookingPolicySettings;
1201
- /** Info of the grouped bookings this availability was calculated for. */
1202
- groupedBookingsInfo?: GroupedBookingInfo[];
1203
- }
1204
- export interface GroupedBookingInfo {
1205
- /** Grouped booking id */
1206
- bookingId?: string | null;
1207
- }
1208
- export interface CancelGroupedBookingsRequest {
1209
- /** ID of the group to cancel it's related bookings. */
1210
- groupId?: string;
1211
- /**
1212
- * Information about whether to notify the customer about the cancelation and
1213
- * the message to send.
1214
- */
1215
- participantNotification?: ParticipantNotification;
1216
- /**
1217
- * Information about whether specific procedures of the standard Wix Bookings
1218
- * cancelation flow are changed. For example, whether the you can cancel
1219
- * a booking even though the cancelation policy doesn't allow it or whether
1220
- * to issue a refund.
1221
- */
1222
- flowControlSettings?: CancelBookingFlowControlSettings;
1223
- /** Whether to return the canceled grouped bookings entities. */
1224
- returnFullEntity?: boolean;
1225
- }
1226
- export interface CancelGroupedBookingsResponse {
1227
- /** Canceled grouped bookings. */
1228
- bookings?: BookingResult[];
1229
- }
1230
- export interface RescheduleGroupedBookingsRequest {
1231
- /** ID of the group to reschedule it's related bookings. */
1232
- groupId?: string;
1233
- /** Grouped bookings to reschedule. */
1234
- rescheduleBookingsInfo?: RescheduleBookingInfo[];
1235
- /**
1236
- * Information about whether to notify the customer about the rescheduling and
1237
- * the message to send.
1238
- */
1239
- participantNotification?: ParticipantNotification;
1240
- /**
1241
- * Information about whether specific procedures of the standard Wix Bookings
1242
- * rescheduling flow are changed. For example, whether the availability of
1243
- * the new slot is checked before rescheduling the booking or if you can
1244
- * reschedule the booking even though the rescheduling policy doesn't allow it.
1245
- */
1246
- flowControlSettings?: RescheduleBookingFlowControlSettings;
1247
- /** Whether to return the rescheduled grouped bookings entities. */
1248
- returnFullEntity?: boolean;
1249
- }
1250
- export interface RescheduleBookingInfo extends RescheduleBookingInfoParticipantsInfoOneOf {
1251
- /**
1252
- * Total number of participants. Available only for services with
1253
- * variants.
1254
- * Pass when all participants book the same variant.
1255
- */
1256
- totalParticipants?: number;
1257
- /**
1258
- * Information about the service choices to book. Available only for services with
1259
- * variants.
1260
- * Pass when not all participants book the same variant.
1261
- */
1262
- participantsChoices?: ParticipantChoices;
1263
- /** ID of the booking to reschedule. */
1264
- bookingId?: string;
1265
- /** Information about the new slot. */
1266
- slot?: V2Slot;
1267
- /**
1268
- * Revision number, which increments by 1 each time the booking is updated.
1269
- * To prevent conflicting changes, the current revision must be passed when
1270
- * managing the booking.
1271
- */
1272
- revision?: string | null;
1273
- }
1274
- /** @oneof */
1275
- export interface RescheduleBookingInfoParticipantsInfoOneOf {
1276
- /**
1277
- * Total number of participants. Available only for services with
1278
- * variants.
1279
- * Pass when all participants book the same variant.
1280
- */
1281
- totalParticipants?: number;
1282
- /**
1283
- * Information about the service choices to book. Available only for services with
1284
- * variants.
1285
- * Pass when not all participants book the same variant.
1286
- */
1287
- participantsChoices?: ParticipantChoices;
1288
- }
1289
- export interface RescheduleGroupedBookingsResponse {
1290
- /** Rescheduled grouped bookings. */
1291
- bookings?: BookingResult[];
1292
- }
1293
- export interface ConfirmGroupedBookingsRequest {
1294
- /** ID of the group to confirm it's related bookings. */
1295
- groupId?: string;
1296
- /** Grouped bookings to confirm. */
1297
- confirmBookingsInfo?: BookingInfo[];
1298
- /**
1299
- * Information about whether to notify the customer about the confirmation and
1300
- * the message to send.
1301
- */
1302
- participantNotification?: ParticipantNotification;
1303
- /**
1304
- * Whether to send an SMS reminder to the customer 24 hours before the
1305
- * session starts. The phone number is taken from `contactDetails.phone`.
1306
- */
1307
- sendSmsReminder?: boolean | null;
1308
- /** Whether this booking overlaps with another existing confirmed booking. */
1309
- doubleBooked?: boolean | null;
1310
- /** Whether to return the confirmed grouped bookings entities. */
1311
- returnFullEntity?: boolean;
1312
- /**
1313
- * Information about whether specific procedures of the standard Wix Bookings
1314
- * confirmation flow are changed. For example, whether the availability is
1315
- * checked before confirming the booking.
1316
- */
1317
- flowControlSettings?: ConfirmBookingFlowControlSettings;
1318
- }
1319
- export interface ConfirmGroupedBookingsResponse {
1320
- /** Confirmed grouped bookings. */
1321
- bookings?: BookingResult[];
1322
- }
1323
- export interface DeclineGroupedBookingsRequest {
1324
- /** ID of the group to decline it's related bookings. */
1325
- groupId?: string;
1326
- /** Grouped bookings to decline. */
1327
- declineBookingsInfo?: BookingInfo[];
1328
- /**
1329
- * Information about whether to notify the customer about the decline and
1330
- * the message to send.
1331
- */
1332
- participantNotification?: ParticipantNotification;
1333
- /** Whether this booking overlaps with another existing confirmed booking. */
1334
- doubleBooked?: boolean | null;
1335
- /** Whether to return the declined grouped bookings entities. */
1336
- returnFullEntity?: boolean;
1337
- }
1338
- export interface DeclineGroupedBookingsResponse {
1339
- /** Declined grouped bookings. */
1340
- bookings?: BookingResult[];
1341
- }
1342
- export interface BulkCalculateGroupedBookingsAllowedActionsRequest {
1343
- /** The group ids to calculate the allowedActions for */
1344
- groupIds?: string[] | null;
1345
- }
1346
- export interface BulkCalculateGroupedBookingsAllowedActionsResponse {
1347
- results?: BulkCalculateAllowedActionsResult[];
1348
- bulkActionMetadata?: BulkActionMetadata;
1349
- }
1350
- export interface SplitGroupedBookingsRequest {
1351
- /** ID of the group. */
1352
- groupId?: string;
1353
- /** Whether to return the declined grouped bookings entities. */
1354
- returnFullEntity?: boolean;
1355
- }
1356
- export interface SplitGroupedBookingsResponse {
1357
- /** The separated bookings. */
1358
- bookings?: BookingResult[];
1359
- }
1360
- export interface AddToGroupRequest {
1361
- /** ID of the group. */
1362
- groupId?: string;
1363
- /** ID of the booking to add to the group. */
1364
- bookingId?: string;
1365
- /**
1366
- * Revision number, which increments by 1 each time the booking is updated.
1367
- * To prevent conflicting changes, the current revision must be passed when
1368
- * managing the booking.
1369
- */
1370
- revision?: string | null;
1371
- }
1372
- export interface AddToGroupResponse {
1373
- /** The booking added to the group. */
1374
- booking?: Booking;
1375
- }
1376
- export interface RemoveFromGroupRequest {
1377
- /** ID of the group. */
1378
- groupId?: string;
1379
- /** List of bookings ids and their revisions to remove from the group. */
1380
- bookings?: BookingIdAndRevision[];
1381
- /** Whether to return the declined grouped bookings entities. */
1382
- returnFullEntity?: boolean;
1383
- }
1384
- export interface RemoveFromGroupResponse {
1385
- /** The bookings that were removed from the group. */
1386
- bookings?: BookingResult[];
1387
- }
1388
- export interface MarkGroupedBookingsAsPendingRequest {
1389
- /** ID of the group to mark as pending it's related bookings. */
1390
- groupId?: string;
1391
- /** Grouped bookings to mark as pending. */
1392
- markAsPendingBookingsInfo?: BookingInfo[];
1393
- /**
1394
- * Information about whether to notify the customer upon manual confirmation and
1395
- * the message to send.
1396
- */
1397
- participantNotification?: ParticipantNotification;
1398
- /**
1399
- * Whether to send an SMS reminder to the customer 24 hours before the
1400
- * session starts. The phone number is taken from `contactDetails.phone`.
1401
- */
1402
- sendSmsReminder?: boolean | null;
1403
- /** Whether this booking overlaps with another existing confirmed booking. */
1404
- doubleBooked?: boolean | null;
1405
- /** Whether to return the pending grouped bookings entities. */
1406
- returnFullEntity?: boolean;
1407
- /**
1408
- * Information about whether specific procedures of the standard Wix Bookings
1409
- * creation flow are changed. For example, whether the availability is
1410
- * checked before updating the booking.
1411
- */
1412
- flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
1413
- }
1414
- export interface MarkGroupedBookingsAsPendingResponse {
1415
- /** Pending grouped bookings. */
1416
- bookings?: BookingResult[];
1417
- }
1418
- export interface BookingMarkedAsPending {
1419
- /** The booking object that was marked as pending. */
1420
- booking?: Booking;
1421
- /** Information about whether to notify the customer upon manual confirmation of the pending booking and the message to send. */
1422
- participantNotification?: ParticipantNotification;
1423
- /**
1424
- * Whether to send an SMS reminder to the customer 24 hours before the
1425
- * session starts. The phone number is taken from `contactDetails.phone`.
1426
- */
1427
- sendSmsReminder?: boolean | null;
1428
- /** Whether this booking overlaps with another existing confirmed booking. */
1429
- doubleBooked?: boolean | null;
1430
- /** ID of the mark as pending initiator. */
1431
- initiatedBy?: IdentificationData;
1432
- /** The previous status of the booking. */
1433
- previousStatus?: BookingStatus;
1434
- /** The previous payment status of the booking. */
1435
- previousPaymentStatus?: PaymentStatus;
1436
- }
1437
1160
  export interface BookingChanged {
1438
1161
  /** The booking before the changes. */
1439
1162
  previousBooking?: Booking;
@@ -2049,6 +1772,25 @@ export interface MarkBookingAsPendingResponse {
2049
1772
  /** The updated booking */
2050
1773
  booking?: Booking;
2051
1774
  }
1775
+ export interface BookingMarkedAsPending {
1776
+ /** The booking object that was marked as pending. */
1777
+ booking?: Booking;
1778
+ /** Information about whether to notify the customer upon manual confirmation of the pending booking and the message to send. */
1779
+ participantNotification?: ParticipantNotification;
1780
+ /**
1781
+ * Whether to send an SMS reminder to the customer 24 hours before the
1782
+ * session starts. The phone number is taken from `contactDetails.phone`.
1783
+ */
1784
+ sendSmsReminder?: boolean | null;
1785
+ /** Whether this booking overlaps with another existing confirmed booking. */
1786
+ doubleBooked?: boolean | null;
1787
+ /** ID of the mark as pending initiator. */
1788
+ initiatedBy?: IdentificationData;
1789
+ /** The previous status of the booking. */
1790
+ previousStatus?: BookingStatus;
1791
+ /** The previous payment status of the booking. */
1792
+ previousPaymentStatus?: PaymentStatus;
1793
+ }
2052
1794
  export interface ConfirmOrDeclineBookingRequest {
2053
1795
  /** ID of the booking to confirm or decline. */
2054
1796
  bookingId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-v2-booking.types.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking.types.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"bookings-v2-booking.types.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking.types.ts"],"names":[],"mappings":"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"}
@@ -1100,7 +1100,7 @@ export interface BulkActionMetadata {
1100
1100
  undetailedFailures?: number;
1101
1101
  }
1102
1102
  export interface MarkAsMultiServiceBookingRequest {
1103
- /** IDs of the bookings to group together. */
1103
+ /** IDs of the bookings to mark as multi service booking. */
1104
1104
  bookingIds?: string[] | null;
1105
1105
  /**
1106
1106
  * Multi service booking type.
@@ -1159,283 +1159,6 @@ export interface RemoveBookingsFromMultiServiceBookingResponse {
1159
1159
  /** The bookings that were removed from the multi service booking. */
1160
1160
  bookings?: BookingResult[];
1161
1161
  }
1162
- export interface CreateGroupedBookingsRequest {
1163
- /** The grouped bookings to create. */
1164
- bookings?: Booking[];
1165
- /** Information about a message to send to the customer. */
1166
- participantNotification?: ParticipantNotification;
1167
- /**
1168
- * Whether to send an SMS reminder to the customer 24 hours before the
1169
- * session starts. The phone number is taken from `contactDetails.phone`.
1170
- * Default: `true`.
1171
- */
1172
- sendSmsReminder?: boolean | null;
1173
- /**
1174
- * Information about whether specific procedures of the standard Wix Bookings
1175
- * creation flow are changed. For example, whether the availability is
1176
- * checked before creating the booking or if additional payment options are
1177
- * accepted.
1178
- */
1179
- flowControlSettings?: CreateBookingFlowControlSettings;
1180
- /** Whether to return the created grouped bookings entities. */
1181
- returnFullEntity?: boolean;
1182
- }
1183
- export interface CreateGroupedBookingsResponse {
1184
- /** Group ID. */
1185
- groupId?: string | null;
1186
- /** Created grouped bookings. */
1187
- bookings?: BookingResult[];
1188
- }
1189
- export interface GetGroupedBookingsAvailabilityRequest {
1190
- groupId?: string | null;
1191
- }
1192
- export interface GetGroupedBookingsAvailabilityResponse {
1193
- /** Whether these grouped bookings are bookable. */
1194
- bookable?: boolean;
1195
- /** Total number of spots for this availability. */
1196
- totalSpots?: number | null;
1197
- /** Number of open spots for this availability. */
1198
- openSpots?: number | null;
1199
- /** Indicators for grouped bookings policy violations. */
1200
- groupedBookingsPolicyViolations?: BookingPolicyViolations;
1201
- /** Booking policy settings */
1202
- bookingPolicySettings?: BookingPolicySettings;
1203
- /** Info of the grouped bookings this availability was calculated for. */
1204
- groupedBookingsInfo?: GroupedBookingInfo[];
1205
- }
1206
- export interface GroupedBookingInfo {
1207
- /** Grouped booking id */
1208
- bookingId?: string | null;
1209
- }
1210
- export interface CancelGroupedBookingsRequest {
1211
- /** ID of the group to cancel it's related bookings. */
1212
- groupId?: string;
1213
- /**
1214
- * Information about whether to notify the customer about the cancelation and
1215
- * the message to send.
1216
- */
1217
- participantNotification?: ParticipantNotification;
1218
- /**
1219
- * Information about whether specific procedures of the standard Wix Bookings
1220
- * cancelation flow are changed. For example, whether the you can cancel
1221
- * a booking even though the cancelation policy doesn't allow it or whether
1222
- * to issue a refund.
1223
- */
1224
- flowControlSettings?: CancelBookingFlowControlSettings;
1225
- /** Whether to return the canceled grouped bookings entities. */
1226
- returnFullEntity?: boolean;
1227
- }
1228
- export interface CancelGroupedBookingsResponse {
1229
- /** Canceled grouped bookings. */
1230
- bookings?: BookingResult[];
1231
- }
1232
- export interface RescheduleGroupedBookingsRequest {
1233
- /** ID of the group to reschedule it's related bookings. */
1234
- groupId?: string;
1235
- /** Grouped bookings to reschedule. */
1236
- rescheduleBookingsInfo?: RescheduleBookingInfo[];
1237
- /**
1238
- * Information about whether to notify the customer about the rescheduling and
1239
- * the message to send.
1240
- */
1241
- participantNotification?: ParticipantNotification;
1242
- /**
1243
- * Information about whether specific procedures of the standard Wix Bookings
1244
- * rescheduling flow are changed. For example, whether the availability of
1245
- * the new slot is checked before rescheduling the booking or if you can
1246
- * reschedule the booking even though the rescheduling policy doesn't allow it.
1247
- */
1248
- flowControlSettings?: RescheduleBookingFlowControlSettings;
1249
- /** Whether to return the rescheduled grouped bookings entities. */
1250
- returnFullEntity?: boolean;
1251
- }
1252
- export interface RescheduleBookingInfo extends RescheduleBookingInfoParticipantsInfoOneOf {
1253
- /**
1254
- * Total number of participants. Available only for services with
1255
- * variants.
1256
- * Pass when all participants book the same variant.
1257
- */
1258
- totalParticipants?: number;
1259
- /**
1260
- * Information about the service choices to book. Available only for services with
1261
- * variants.
1262
- * Pass when not all participants book the same variant.
1263
- */
1264
- participantsChoices?: ParticipantChoices;
1265
- /** ID of the booking to reschedule. */
1266
- bookingId?: string;
1267
- /** Information about the new slot. */
1268
- slot?: V2Slot;
1269
- /**
1270
- * Revision number, which increments by 1 each time the booking is updated.
1271
- * To prevent conflicting changes, the current revision must be passed when
1272
- * managing the booking.
1273
- */
1274
- revision?: string | null;
1275
- }
1276
- /** @oneof */
1277
- export interface RescheduleBookingInfoParticipantsInfoOneOf {
1278
- /**
1279
- * Total number of participants. Available only for services with
1280
- * variants.
1281
- * Pass when all participants book the same variant.
1282
- */
1283
- totalParticipants?: number;
1284
- /**
1285
- * Information about the service choices to book. Available only for services with
1286
- * variants.
1287
- * Pass when not all participants book the same variant.
1288
- */
1289
- participantsChoices?: ParticipantChoices;
1290
- }
1291
- export interface RescheduleGroupedBookingsResponse {
1292
- /** Rescheduled grouped bookings. */
1293
- bookings?: BookingResult[];
1294
- }
1295
- export interface ConfirmGroupedBookingsRequest {
1296
- /** ID of the group to confirm it's related bookings. */
1297
- groupId?: string;
1298
- /** Grouped bookings to confirm. */
1299
- confirmBookingsInfo?: BookingInfo[];
1300
- /**
1301
- * Information about whether to notify the customer about the confirmation and
1302
- * the message to send.
1303
- */
1304
- participantNotification?: ParticipantNotification;
1305
- /**
1306
- * Whether to send an SMS reminder to the customer 24 hours before the
1307
- * session starts. The phone number is taken from `contactDetails.phone`.
1308
- */
1309
- sendSmsReminder?: boolean | null;
1310
- /** Whether this booking overlaps with another existing confirmed booking. */
1311
- doubleBooked?: boolean | null;
1312
- /** Whether to return the confirmed grouped bookings entities. */
1313
- returnFullEntity?: boolean;
1314
- /**
1315
- * Information about whether specific procedures of the standard Wix Bookings
1316
- * confirmation flow are changed. For example, whether the availability is
1317
- * checked before confirming the booking.
1318
- */
1319
- flowControlSettings?: ConfirmBookingFlowControlSettings;
1320
- }
1321
- export interface ConfirmGroupedBookingsResponse {
1322
- /** Confirmed grouped bookings. */
1323
- bookings?: BookingResult[];
1324
- }
1325
- export interface DeclineGroupedBookingsRequest {
1326
- /** ID of the group to decline it's related bookings. */
1327
- groupId?: string;
1328
- /** Grouped bookings to decline. */
1329
- declineBookingsInfo?: BookingInfo[];
1330
- /**
1331
- * Information about whether to notify the customer about the decline and
1332
- * the message to send.
1333
- */
1334
- participantNotification?: ParticipantNotification;
1335
- /** Whether this booking overlaps with another existing confirmed booking. */
1336
- doubleBooked?: boolean | null;
1337
- /** Whether to return the declined grouped bookings entities. */
1338
- returnFullEntity?: boolean;
1339
- }
1340
- export interface DeclineGroupedBookingsResponse {
1341
- /** Declined grouped bookings. */
1342
- bookings?: BookingResult[];
1343
- }
1344
- export interface BulkCalculateGroupedBookingsAllowedActionsRequest {
1345
- /** The group ids to calculate the allowedActions for */
1346
- groupIds?: string[] | null;
1347
- }
1348
- export interface BulkCalculateGroupedBookingsAllowedActionsResponse {
1349
- results?: BulkCalculateAllowedActionsResult[];
1350
- bulkActionMetadata?: BulkActionMetadata;
1351
- }
1352
- export interface SplitGroupedBookingsRequest {
1353
- /** ID of the group. */
1354
- groupId?: string;
1355
- /** Whether to return the declined grouped bookings entities. */
1356
- returnFullEntity?: boolean;
1357
- }
1358
- export interface SplitGroupedBookingsResponse {
1359
- /** The separated bookings. */
1360
- bookings?: BookingResult[];
1361
- }
1362
- export interface AddToGroupRequest {
1363
- /** ID of the group. */
1364
- groupId?: string;
1365
- /** ID of the booking to add to the group. */
1366
- bookingId?: string;
1367
- /**
1368
- * Revision number, which increments by 1 each time the booking is updated.
1369
- * To prevent conflicting changes, the current revision must be passed when
1370
- * managing the booking.
1371
- */
1372
- revision?: string | null;
1373
- }
1374
- export interface AddToGroupResponse {
1375
- /** The booking added to the group. */
1376
- booking?: Booking;
1377
- }
1378
- export interface RemoveFromGroupRequest {
1379
- /** ID of the group. */
1380
- groupId?: string;
1381
- /** List of bookings ids and their revisions to remove from the group. */
1382
- bookings?: BookingIdAndRevision[];
1383
- /** Whether to return the declined grouped bookings entities. */
1384
- returnFullEntity?: boolean;
1385
- }
1386
- export interface RemoveFromGroupResponse {
1387
- /** The bookings that were removed from the group. */
1388
- bookings?: BookingResult[];
1389
- }
1390
- export interface MarkGroupedBookingsAsPendingRequest {
1391
- /** ID of the group to mark as pending it's related bookings. */
1392
- groupId?: string;
1393
- /** Grouped bookings to mark as pending. */
1394
- markAsPendingBookingsInfo?: BookingInfo[];
1395
- /**
1396
- * Information about whether to notify the customer upon manual confirmation and
1397
- * the message to send.
1398
- */
1399
- participantNotification?: ParticipantNotification;
1400
- /**
1401
- * Whether to send an SMS reminder to the customer 24 hours before the
1402
- * session starts. The phone number is taken from `contactDetails.phone`.
1403
- */
1404
- sendSmsReminder?: boolean | null;
1405
- /** Whether this booking overlaps with another existing confirmed booking. */
1406
- doubleBooked?: boolean | null;
1407
- /** Whether to return the pending grouped bookings entities. */
1408
- returnFullEntity?: boolean;
1409
- /**
1410
- * Information about whether specific procedures of the standard Wix Bookings
1411
- * creation flow are changed. For example, whether the availability is
1412
- * checked before updating the booking.
1413
- */
1414
- flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
1415
- }
1416
- export interface MarkGroupedBookingsAsPendingResponse {
1417
- /** Pending grouped bookings. */
1418
- bookings?: BookingResult[];
1419
- }
1420
- export interface BookingMarkedAsPending {
1421
- /** The booking object that was marked as pending. */
1422
- booking?: Booking;
1423
- /** Information about whether to notify the customer upon manual confirmation of the pending booking and the message to send. */
1424
- participantNotification?: ParticipantNotification;
1425
- /**
1426
- * Whether to send an SMS reminder to the customer 24 hours before the
1427
- * session starts. The phone number is taken from `contactDetails.phone`.
1428
- */
1429
- sendSmsReminder?: boolean | null;
1430
- /** Whether this booking overlaps with another existing confirmed booking. */
1431
- doubleBooked?: boolean | null;
1432
- /** ID of the mark as pending initiator. */
1433
- initiatedBy?: IdentificationData;
1434
- /** The previous status of the booking. */
1435
- previousStatus?: BookingStatus;
1436
- /** The previous payment status of the booking. */
1437
- previousPaymentStatus?: PaymentStatus;
1438
- }
1439
1162
  export interface BookingChanged {
1440
1163
  /** The booking before the changes. */
1441
1164
  previousBooking?: Booking;
@@ -2052,6 +1775,25 @@ export interface MarkBookingAsPendingResponse {
2052
1775
  /** The updated booking */
2053
1776
  booking?: Booking;
2054
1777
  }
1778
+ export interface BookingMarkedAsPending {
1779
+ /** The booking object that was marked as pending. */
1780
+ booking?: Booking;
1781
+ /** Information about whether to notify the customer upon manual confirmation of the pending booking and the message to send. */
1782
+ participantNotification?: ParticipantNotification;
1783
+ /**
1784
+ * Whether to send an SMS reminder to the customer 24 hours before the
1785
+ * session starts. The phone number is taken from `contactDetails.phone`.
1786
+ */
1787
+ sendSmsReminder?: boolean | null;
1788
+ /** Whether this booking overlaps with another existing confirmed booking. */
1789
+ doubleBooked?: boolean | null;
1790
+ /** ID of the mark as pending initiator. */
1791
+ initiatedBy?: IdentificationData;
1792
+ /** The previous status of the booking. */
1793
+ previousStatus?: BookingStatus;
1794
+ /** The previous payment status of the booking. */
1795
+ previousPaymentStatus?: PaymentStatus;
1796
+ }
2055
1797
  export interface ConfirmOrDeclineBookingRequest {
2056
1798
  /** ID of the booking to confirm or decline. */
2057
1799
  bookingId: string;