@wix/auto_sdk_bookings_bookings 1.0.123 → 1.0.125

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.
@@ -3848,6 +3848,15 @@ interface EventMetadata extends BaseEventMetadata {
3848
3848
  * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
3849
3849
  */
3850
3850
  entityEventSequence?: string | null;
3851
+ accountInfo?: AccountInfoMetadata;
3852
+ }
3853
+ interface AccountInfoMetadata {
3854
+ /** ID of the Wix account associated with the event */
3855
+ accountId: string;
3856
+ /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */
3857
+ siteId?: string;
3858
+ /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */
3859
+ parentAccountId?: string;
3851
3860
  }
3852
3861
  interface BookingCanceledEnvelope {
3853
3862
  data: BookingCanceled;
@@ -39,15 +39,15 @@ __export(index_typings_exports, {
39
39
  bulkConfirmOrDeclineBooking: () => bulkConfirmOrDeclineBooking2,
40
40
  bulkCreateBooking: () => bulkCreateBooking2,
41
41
  bulkGetMultiServiceBookingAllowedActions: () => bulkGetMultiServiceBookingAllowedActions2,
42
- cancelBooking: () => cancelBooking2,
42
+ cancelBooking: () => cancelBooking,
43
43
  cancelBookingAnonymously: () => cancelBookingAnonymously2,
44
44
  cancelMultiServiceBooking: () => cancelMultiServiceBooking2,
45
- confirmBooking: () => confirmBooking2,
45
+ confirmBooking: () => confirmBooking,
46
46
  confirmMultiServiceBooking: () => confirmMultiServiceBooking2,
47
47
  confirmOrDeclineBooking: () => confirmOrDeclineBooking2,
48
48
  createBooking: () => createBooking2,
49
49
  createMultiServiceBooking: () => createMultiServiceBooking2,
50
- declineBooking: () => declineBooking2,
50
+ declineBooking: () => declineBooking,
51
51
  declineMultiServiceBooking: () => declineMultiServiceBooking2,
52
52
  getAnonymousActionDetails: () => getAnonymousActionDetails2,
53
53
  getBookingAnonymously: () => getBookingAnonymously2,
@@ -62,7 +62,7 @@ __export(index_typings_exports, {
62
62
  rescheduleMultiServiceBooking: () => rescheduleMultiServiceBooking2,
63
63
  setBookingSubmissionId: () => setBookingSubmissionId2,
64
64
  updateExtendedFields: () => updateExtendedFields2,
65
- updateNumberOfParticipants: () => updateNumberOfParticipants2
65
+ updateNumberOfParticipants: () => updateNumberOfParticipants
66
66
  });
67
67
  module.exports = __toCommonJS(index_typings_exports);
68
68
 
@@ -1296,8 +1296,8 @@ function rescheduleBooking(payload) {
1296
1296
  }
1297
1297
  return __rescheduleBooking;
1298
1298
  }
1299
- function confirmBooking(payload) {
1300
- function __confirmBooking({ host }) {
1299
+ function bookingsConfirmBooking(payload) {
1300
+ function __bookingsConfirmBooking({ host }) {
1301
1301
  const metadata = {
1302
1302
  entityFqdn: "wix.bookings.v2.booking",
1303
1303
  method: "POST",
@@ -1334,7 +1334,7 @@ function confirmBooking(payload) {
1334
1334
  };
1335
1335
  return metadata;
1336
1336
  }
1337
- return __confirmBooking;
1337
+ return __bookingsConfirmBooking;
1338
1338
  }
1339
1339
  function setBookingSubmissionId(payload) {
1340
1340
  function __setBookingSubmissionId({ host }) {
@@ -1397,8 +1397,8 @@ function updateExtendedFields(payload) {
1397
1397
  }
1398
1398
  return __updateExtendedFields;
1399
1399
  }
1400
- function declineBooking(payload) {
1401
- function __declineBooking({ host }) {
1400
+ function bookingsDeclineBooking(payload) {
1401
+ function __bookingsDeclineBooking({ host }) {
1402
1402
  const metadata = {
1403
1403
  entityFqdn: "wix.bookings.v2.booking",
1404
1404
  method: "POST",
@@ -1435,10 +1435,10 @@ function declineBooking(payload) {
1435
1435
  };
1436
1436
  return metadata;
1437
1437
  }
1438
- return __declineBooking;
1438
+ return __bookingsDeclineBooking;
1439
1439
  }
1440
- function cancelBooking(payload) {
1441
- function __cancelBooking({ host }) {
1440
+ function bookingsCancelBooking(payload) {
1441
+ function __bookingsCancelBooking({ host }) {
1442
1442
  const metadata = {
1443
1443
  entityFqdn: "wix.bookings.v2.booking",
1444
1444
  method: "POST",
@@ -1475,10 +1475,10 @@ function cancelBooking(payload) {
1475
1475
  };
1476
1476
  return metadata;
1477
1477
  }
1478
- return __cancelBooking;
1478
+ return __bookingsCancelBooking;
1479
1479
  }
1480
- function updateNumberOfParticipants(payload) {
1481
- function __updateNumberOfParticipants({ host }) {
1480
+ function bookingsUpdateNumberOfParticipants(payload) {
1481
+ function __bookingsUpdateNumberOfParticipants({ host }) {
1482
1482
  const metadata = {
1483
1483
  entityFqdn: "wix.bookings.v2.booking",
1484
1484
  method: "POST",
@@ -1515,7 +1515,7 @@ function updateNumberOfParticipants(payload) {
1515
1515
  };
1516
1516
  return metadata;
1517
1517
  }
1518
- return __updateNumberOfParticipants;
1518
+ return __bookingsUpdateNumberOfParticipants;
1519
1519
  }
1520
1520
  function bulkCalculateAllowedActions(payload) {
1521
1521
  function __bulkCalculateAllowedActions({ host }) {
@@ -2366,7 +2366,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
2366
2366
  throw transformedError;
2367
2367
  }
2368
2368
  }
2369
- async function confirmBooking2(bookingId, revision, options) {
2369
+ async function confirmBooking(bookingId, revision, options) {
2370
2370
  const { httpClient, sideEffects } = arguments[3];
2371
2371
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2372
2372
  bookingId,
@@ -2377,7 +2377,7 @@ async function confirmBooking2(bookingId, revision, options) {
2377
2377
  doubleBooked: options?.doubleBooked,
2378
2378
  flowControlSettings: options?.flowControlSettings
2379
2379
  });
2380
- const reqOpts = confirmBooking(payload);
2380
+ const reqOpts = bookingsConfirmBooking(payload);
2381
2381
  sideEffects?.onSiteCall?.();
2382
2382
  try {
2383
2383
  const result = await httpClient.request(reqOpts);
@@ -2462,7 +2462,7 @@ async function updateExtendedFields2(_id, namespace, options) {
2462
2462
  throw transformedError;
2463
2463
  }
2464
2464
  }
2465
- async function declineBooking2(bookingId, revision, options) {
2465
+ async function declineBooking(bookingId, revision, options) {
2466
2466
  const { httpClient, sideEffects } = arguments[3];
2467
2467
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2468
2468
  bookingId,
@@ -2472,7 +2472,7 @@ async function declineBooking2(bookingId, revision, options) {
2472
2472
  doubleBooked: options?.doubleBooked,
2473
2473
  flowControlSettings: options?.flowControlSettings
2474
2474
  });
2475
- const reqOpts = declineBooking(payload);
2475
+ const reqOpts = bookingsDeclineBooking(payload);
2476
2476
  sideEffects?.onSiteCall?.();
2477
2477
  try {
2478
2478
  const result = await httpClient.request(reqOpts);
@@ -2499,7 +2499,7 @@ async function declineBooking2(bookingId, revision, options) {
2499
2499
  throw transformedError;
2500
2500
  }
2501
2501
  }
2502
- async function cancelBooking2(bookingId, options) {
2502
+ async function cancelBooking(bookingId, options) {
2503
2503
  const { httpClient, sideEffects } = arguments[2];
2504
2504
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2505
2505
  bookingId,
@@ -2507,7 +2507,7 @@ async function cancelBooking2(bookingId, options) {
2507
2507
  flowControlSettings: options?.flowControlSettings,
2508
2508
  revision: options?.revision
2509
2509
  });
2510
- const reqOpts = cancelBooking(payload);
2510
+ const reqOpts = bookingsCancelBooking(payload);
2511
2511
  sideEffects?.onSiteCall?.();
2512
2512
  try {
2513
2513
  const result = await httpClient.request(reqOpts);
@@ -2532,7 +2532,7 @@ async function cancelBooking2(bookingId, options) {
2532
2532
  throw transformedError;
2533
2533
  }
2534
2534
  }
2535
- async function updateNumberOfParticipants2(bookingId, options) {
2535
+ async function updateNumberOfParticipants(bookingId, options) {
2536
2536
  const { httpClient, sideEffects } = arguments[2];
2537
2537
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2538
2538
  bookingId,
@@ -2540,7 +2540,7 @@ async function updateNumberOfParticipants2(bookingId, options) {
2540
2540
  totalParticipants: options?.totalParticipants,
2541
2541
  participantsChoices: options?.participantsChoices
2542
2542
  });
2543
- const reqOpts = updateNumberOfParticipants(payload);
2543
+ const reqOpts = bookingsUpdateNumberOfParticipants(payload);
2544
2544
  sideEffects?.onSiteCall?.();
2545
2545
  try {
2546
2546
  const result = await httpClient.request(reqOpts);