@wix/auto_sdk_bookings_bookings 1.0.122 → 1.0.124

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +72 -72
  2. package/build/cjs/index.js +247 -247
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +370 -370
  5. package/build/cjs/index.typings.js +217 -217
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +336 -336
  8. package/build/cjs/meta.js +195 -195
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +72 -72
  11. package/build/es/index.mjs +247 -247
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +370 -370
  14. package/build/es/index.typings.mjs +217 -217
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +336 -336
  17. package/build/es/meta.mjs +195 -195
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +72 -72
  20. package/build/internal/cjs/index.js +247 -247
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +370 -370
  23. package/build/internal/cjs/index.typings.js +217 -217
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +336 -336
  26. package/build/internal/cjs/meta.js +195 -195
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +72 -72
  29. package/build/internal/es/index.mjs +247 -247
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +370 -370
  32. package/build/internal/es/index.typings.mjs +217 -217
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +336 -336
  35. package/build/internal/es/meta.mjs +195 -195
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -319,6 +319,57 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
319
319
  };
320
320
  return resolveUrl(Object.assign(opts, { domainToMappings }));
321
321
  }
322
+ function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
323
+ const domainToMappings = {
324
+ "www.wixapis.com": [
325
+ {
326
+ srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
327
+ destPath: "/v2/bookings/confirmation"
328
+ },
329
+ {
330
+ srcPath: "/bookings/v2/confirmation",
331
+ destPath: "/v2/confirmation"
332
+ },
333
+ {
334
+ srcPath: "/bookings/v2/bulk/confirmation",
335
+ destPath: "/v2/bulk/confirmation"
336
+ },
337
+ {
338
+ srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
339
+ destPath: "/v2/bulk/bookings/confirmOrDecline"
340
+ },
341
+ {
342
+ srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
343
+ destPath: "/v2/bulk/confirmation"
344
+ },
345
+ {
346
+ srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
347
+ destPath: "/v2/bulk/bookings/confirmOrDecline"
348
+ }
349
+ ],
350
+ "*.dev.wix-code.com": [
351
+ {
352
+ srcPath: "/bookings/v2/confirmation",
353
+ destPath: "/v2/confirmation"
354
+ },
355
+ {
356
+ srcPath: "/bookings/v2/bulk/bookings",
357
+ destPath: "/v2/bulk/bookings"
358
+ }
359
+ ],
360
+ _: [
361
+ {
362
+ srcPath: "/bookings/v2/confirmation",
363
+ destPath: "/v2/confirmation"
364
+ },
365
+ {
366
+ srcPath: "/bookings/v2/bulk/bookings",
367
+ destPath: "/v2/bulk/bookings"
368
+ }
369
+ ]
370
+ };
371
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
372
+ }
322
373
  function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
323
374
  const domainToMappings = {
324
375
  _: [
@@ -472,142 +523,7 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
472
523
  };
473
524
  return resolveUrl(Object.assign(opts, { domainToMappings }));
474
525
  }
475
- function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
476
- const domainToMappings = {
477
- "www.wixapis.com": [
478
- {
479
- srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
480
- destPath: "/v2/bookings/confirmation"
481
- },
482
- {
483
- srcPath: "/bookings/v2/confirmation",
484
- destPath: "/v2/confirmation"
485
- },
486
- {
487
- srcPath: "/bookings/v2/bulk/confirmation",
488
- destPath: "/v2/bulk/confirmation"
489
- },
490
- {
491
- srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
492
- destPath: "/v2/bulk/bookings/confirmOrDecline"
493
- },
494
- {
495
- srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
496
- destPath: "/v2/bulk/confirmation"
497
- },
498
- {
499
- srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
500
- destPath: "/v2/bulk/bookings/confirmOrDecline"
501
- }
502
- ],
503
- "*.dev.wix-code.com": [
504
- {
505
- srcPath: "/bookings/v2/confirmation",
506
- destPath: "/v2/confirmation"
507
- },
508
- {
509
- srcPath: "/bookings/v2/bulk/bookings",
510
- destPath: "/v2/bulk/bookings"
511
- }
512
- ],
513
- _: [
514
- {
515
- srcPath: "/bookings/v2/confirmation",
516
- destPath: "/v2/confirmation"
517
- },
518
- {
519
- srcPath: "/bookings/v2/bulk/bookings",
520
- destPath: "/v2/bulk/bookings"
521
- }
522
- ]
523
- };
524
- return resolveUrl(Object.assign(opts, { domainToMappings }));
525
- }
526
526
  var PACKAGE_NAME = "@wix/auto_sdk_bookings_bookings";
527
- function confirmOrDeclineBooking(payload) {
528
- function __confirmOrDeclineBooking({ host }) {
529
- const metadata = {
530
- entityFqdn: "wix.bookings.v2.booking",
531
- method: "POST",
532
- methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
533
- packageName: PACKAGE_NAME,
534
- migrationOptions: {
535
- optInTransformResponse: true
536
- },
537
- url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
538
- protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
539
- data: payload,
540
- host
541
- }),
542
- data: payload,
543
- transformResponse: (payload2) => transformPaths(payload2, [
544
- {
545
- transformFn: transformRESTTimestampToSDKTimestamp,
546
- paths: [
547
- { path: "booking.createdDate" },
548
- { path: "booking.startDate" },
549
- { path: "booking.endDate" },
550
- { path: "booking.updatedDate" },
551
- { path: "booking.canceledDate" }
552
- ]
553
- },
554
- {
555
- transformFn: transformRESTFloatToSDKFloat,
556
- paths: [
557
- { path: "booking.contactDetails.fullAddress.geocode.latitude" },
558
- { path: "booking.contactDetails.fullAddress.geocode.longitude" }
559
- ]
560
- }
561
- ])
562
- };
563
- return metadata;
564
- }
565
- return __confirmOrDeclineBooking;
566
- }
567
- function bulkConfirmOrDeclineBooking(payload) {
568
- function __bulkConfirmOrDeclineBooking({ host }) {
569
- const metadata = {
570
- entityFqdn: "wix.bookings.v2.booking",
571
- method: "POST",
572
- methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
573
- packageName: PACKAGE_NAME,
574
- migrationOptions: {
575
- optInTransformResponse: true
576
- },
577
- url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
578
- protoPath: "/v2/bulk/bookings/confirmOrDecline",
579
- data: payload,
580
- host
581
- }),
582
- data: payload,
583
- transformResponse: (payload2) => transformPaths(payload2, [
584
- {
585
- transformFn: transformRESTTimestampToSDKTimestamp,
586
- paths: [
587
- { path: "results.item.createdDate" },
588
- { path: "results.item.startDate" },
589
- { path: "results.item.endDate" },
590
- { path: "results.item.updatedDate" },
591
- { path: "results.item.canceledDate" }
592
- ]
593
- },
594
- {
595
- transformFn: transformRESTFloatToSDKFloat,
596
- paths: [
597
- {
598
- path: "results.item.contactDetails.fullAddress.geocode.latitude"
599
- },
600
- {
601
- path: "results.item.contactDetails.fullAddress.geocode.longitude"
602
- }
603
- ]
604
- }
605
- ])
606
- };
607
- return metadata;
608
- }
609
- return __bulkConfirmOrDeclineBooking;
610
- }
611
527
  function createMultiServiceBooking(payload) {
612
528
  function __createMultiServiceBooking({ host }) {
613
529
  const serializedData = transformPaths(payload, [
@@ -1065,6 +981,90 @@ function removeBookingsFromMultiServiceBooking(payload) {
1065
981
  }
1066
982
  return __removeBookingsFromMultiServiceBooking;
1067
983
  }
984
+ function confirmOrDeclineBooking(payload) {
985
+ function __confirmOrDeclineBooking({ host }) {
986
+ const metadata = {
987
+ entityFqdn: "wix.bookings.v2.booking",
988
+ method: "POST",
989
+ methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
990
+ packageName: PACKAGE_NAME,
991
+ migrationOptions: {
992
+ optInTransformResponse: true
993
+ },
994
+ url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
995
+ protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
996
+ data: payload,
997
+ host
998
+ }),
999
+ data: payload,
1000
+ transformResponse: (payload2) => transformPaths(payload2, [
1001
+ {
1002
+ transformFn: transformRESTTimestampToSDKTimestamp,
1003
+ paths: [
1004
+ { path: "booking.createdDate" },
1005
+ { path: "booking.startDate" },
1006
+ { path: "booking.endDate" },
1007
+ { path: "booking.updatedDate" },
1008
+ { path: "booking.canceledDate" }
1009
+ ]
1010
+ },
1011
+ {
1012
+ transformFn: transformRESTFloatToSDKFloat,
1013
+ paths: [
1014
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1015
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1016
+ ]
1017
+ }
1018
+ ])
1019
+ };
1020
+ return metadata;
1021
+ }
1022
+ return __confirmOrDeclineBooking;
1023
+ }
1024
+ function bulkConfirmOrDeclineBooking(payload) {
1025
+ function __bulkConfirmOrDeclineBooking({ host }) {
1026
+ const metadata = {
1027
+ entityFqdn: "wix.bookings.v2.booking",
1028
+ method: "POST",
1029
+ methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
1030
+ packageName: PACKAGE_NAME,
1031
+ migrationOptions: {
1032
+ optInTransformResponse: true
1033
+ },
1034
+ url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
1035
+ protoPath: "/v2/bulk/bookings/confirmOrDecline",
1036
+ data: payload,
1037
+ host
1038
+ }),
1039
+ data: payload,
1040
+ transformResponse: (payload2) => transformPaths(payload2, [
1041
+ {
1042
+ transformFn: transformRESTTimestampToSDKTimestamp,
1043
+ paths: [
1044
+ { path: "results.item.createdDate" },
1045
+ { path: "results.item.startDate" },
1046
+ { path: "results.item.endDate" },
1047
+ { path: "results.item.updatedDate" },
1048
+ { path: "results.item.canceledDate" }
1049
+ ]
1050
+ },
1051
+ {
1052
+ transformFn: transformRESTFloatToSDKFloat,
1053
+ paths: [
1054
+ {
1055
+ path: "results.item.contactDetails.fullAddress.geocode.latitude"
1056
+ },
1057
+ {
1058
+ path: "results.item.contactDetails.fullAddress.geocode.longitude"
1059
+ }
1060
+ ]
1061
+ }
1062
+ ])
1063
+ };
1064
+ return metadata;
1065
+ }
1066
+ return __bulkConfirmOrDeclineBooking;
1067
+ }
1068
1068
  function createBooking(payload) {
1069
1069
  function __createBooking({ host }) {
1070
1070
  const serializedData = transformPaths(payload, [
@@ -1231,8 +1231,8 @@ function rescheduleBooking(payload) {
1231
1231
  }
1232
1232
  return __rescheduleBooking;
1233
1233
  }
1234
- function confirmBooking(payload) {
1235
- function __confirmBooking({ host }) {
1234
+ function bookingsConfirmBooking(payload) {
1235
+ function __bookingsConfirmBooking({ host }) {
1236
1236
  const metadata = {
1237
1237
  entityFqdn: "wix.bookings.v2.booking",
1238
1238
  method: "POST",
@@ -1269,7 +1269,7 @@ function confirmBooking(payload) {
1269
1269
  };
1270
1270
  return metadata;
1271
1271
  }
1272
- return __confirmBooking;
1272
+ return __bookingsConfirmBooking;
1273
1273
  }
1274
1274
  function setBookingSubmissionId(payload) {
1275
1275
  function __setBookingSubmissionId({ host }) {
@@ -1332,8 +1332,8 @@ function updateExtendedFields(payload) {
1332
1332
  }
1333
1333
  return __updateExtendedFields;
1334
1334
  }
1335
- function declineBooking(payload) {
1336
- function __declineBooking({ host }) {
1335
+ function bookingsDeclineBooking(payload) {
1336
+ function __bookingsDeclineBooking({ host }) {
1337
1337
  const metadata = {
1338
1338
  entityFqdn: "wix.bookings.v2.booking",
1339
1339
  method: "POST",
@@ -1370,10 +1370,10 @@ function declineBooking(payload) {
1370
1370
  };
1371
1371
  return metadata;
1372
1372
  }
1373
- return __declineBooking;
1373
+ return __bookingsDeclineBooking;
1374
1374
  }
1375
- function cancelBooking(payload) {
1376
- function __cancelBooking({ host }) {
1375
+ function bookingsCancelBooking(payload) {
1376
+ function __bookingsCancelBooking({ host }) {
1377
1377
  const metadata = {
1378
1378
  entityFqdn: "wix.bookings.v2.booking",
1379
1379
  method: "POST",
@@ -1410,10 +1410,10 @@ function cancelBooking(payload) {
1410
1410
  };
1411
1411
  return metadata;
1412
1412
  }
1413
- return __cancelBooking;
1413
+ return __bookingsCancelBooking;
1414
1414
  }
1415
- function updateNumberOfParticipants(payload) {
1416
- function __updateNumberOfParticipants({ host }) {
1415
+ function bookingsUpdateNumberOfParticipants(payload) {
1416
+ function __bookingsUpdateNumberOfParticipants({ host }) {
1417
1417
  const metadata = {
1418
1418
  entityFqdn: "wix.bookings.v2.booking",
1419
1419
  method: "POST",
@@ -1450,7 +1450,7 @@ function updateNumberOfParticipants(payload) {
1450
1450
  };
1451
1451
  return metadata;
1452
1452
  }
1453
- return __updateNumberOfParticipants;
1453
+ return __bookingsUpdateNumberOfParticipants;
1454
1454
  }
1455
1455
  function bulkCalculateAllowedActions(payload) {
1456
1456
  function __bulkCalculateAllowedActions({ host }) {
@@ -1777,64 +1777,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1777
1777
  SortOrder2["DESC"] = "DESC";
1778
1778
  return SortOrder2;
1779
1779
  })(SortOrder || {});
1780
- async function confirmOrDeclineBooking2(bookingId, options) {
1781
- const { httpClient, sideEffects } = arguments[2];
1782
- const payload = renameKeysFromSDKRequestToRESTRequest({
1783
- bookingId,
1784
- paymentStatus: options?.paymentStatus
1785
- });
1786
- const reqOpts = confirmOrDeclineBooking(payload);
1787
- sideEffects?.onSiteCall?.();
1788
- try {
1789
- const result = await httpClient.request(reqOpts);
1790
- sideEffects?.onSuccess?.(result);
1791
- return renameKeysFromRESTResponseToSDKResponse(result.data);
1792
- } catch (err) {
1793
- const transformedError = sdkTransformError(
1794
- err,
1795
- {
1796
- spreadPathsToArguments: {},
1797
- explicitPathsToArguments: {
1798
- bookingId: "$[0]",
1799
- paymentStatus: "$[1].paymentStatus"
1800
- },
1801
- singleArgumentUnchanged: false
1802
- },
1803
- ["bookingId", "options"]
1804
- );
1805
- sideEffects?.onError?.(err);
1806
- throw transformedError;
1807
- }
1808
- }
1809
- async function bulkConfirmOrDeclineBooking2(details, options) {
1810
- const { httpClient, sideEffects } = arguments[2];
1811
- const payload = renameKeysFromSDKRequestToRESTRequest({
1812
- details,
1813
- returnEntity: options?.returnEntity
1814
- });
1815
- const reqOpts = bulkConfirmOrDeclineBooking(payload);
1816
- sideEffects?.onSiteCall?.();
1817
- try {
1818
- const result = await httpClient.request(reqOpts);
1819
- sideEffects?.onSuccess?.(result);
1820
- return renameKeysFromRESTResponseToSDKResponse(result.data);
1821
- } catch (err) {
1822
- const transformedError = sdkTransformError(
1823
- err,
1824
- {
1825
- spreadPathsToArguments: {},
1826
- explicitPathsToArguments: {
1827
- details: "$[0]",
1828
- returnEntity: "$[1].returnEntity"
1829
- },
1830
- singleArgumentUnchanged: false
1831
- },
1832
- ["details", "options"]
1833
- );
1834
- sideEffects?.onError?.(err);
1835
- throw transformedError;
1836
- }
1837
- }
1838
1780
  async function createMultiServiceBooking2(bookings, options) {
1839
1781
  const { httpClient, sideEffects } = arguments[2];
1840
1782
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -2196,6 +2138,64 @@ async function removeBookingsFromMultiServiceBooking2(multiServiceBookingId, opt
2196
2138
  throw transformedError;
2197
2139
  }
2198
2140
  }
2141
+ async function confirmOrDeclineBooking2(bookingId, options) {
2142
+ const { httpClient, sideEffects } = arguments[2];
2143
+ const payload = renameKeysFromSDKRequestToRESTRequest({
2144
+ bookingId,
2145
+ paymentStatus: options?.paymentStatus
2146
+ });
2147
+ const reqOpts = confirmOrDeclineBooking(payload);
2148
+ sideEffects?.onSiteCall?.();
2149
+ try {
2150
+ const result = await httpClient.request(reqOpts);
2151
+ sideEffects?.onSuccess?.(result);
2152
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
2153
+ } catch (err) {
2154
+ const transformedError = sdkTransformError(
2155
+ err,
2156
+ {
2157
+ spreadPathsToArguments: {},
2158
+ explicitPathsToArguments: {
2159
+ bookingId: "$[0]",
2160
+ paymentStatus: "$[1].paymentStatus"
2161
+ },
2162
+ singleArgumentUnchanged: false
2163
+ },
2164
+ ["bookingId", "options"]
2165
+ );
2166
+ sideEffects?.onError?.(err);
2167
+ throw transformedError;
2168
+ }
2169
+ }
2170
+ async function bulkConfirmOrDeclineBooking2(details, options) {
2171
+ const { httpClient, sideEffects } = arguments[2];
2172
+ const payload = renameKeysFromSDKRequestToRESTRequest({
2173
+ details,
2174
+ returnEntity: options?.returnEntity
2175
+ });
2176
+ const reqOpts = bulkConfirmOrDeclineBooking(payload);
2177
+ sideEffects?.onSiteCall?.();
2178
+ try {
2179
+ const result = await httpClient.request(reqOpts);
2180
+ sideEffects?.onSuccess?.(result);
2181
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
2182
+ } catch (err) {
2183
+ const transformedError = sdkTransformError(
2184
+ err,
2185
+ {
2186
+ spreadPathsToArguments: {},
2187
+ explicitPathsToArguments: {
2188
+ details: "$[0]",
2189
+ returnEntity: "$[1].returnEntity"
2190
+ },
2191
+ singleArgumentUnchanged: false
2192
+ },
2193
+ ["details", "options"]
2194
+ );
2195
+ sideEffects?.onError?.(err);
2196
+ throw transformedError;
2197
+ }
2198
+ }
2199
2199
  async function createBooking2(booking, options) {
2200
2200
  const { httpClient, sideEffects } = arguments[2];
2201
2201
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -2301,7 +2301,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
2301
2301
  throw transformedError;
2302
2302
  }
2303
2303
  }
2304
- async function confirmBooking2(bookingId, revision, options) {
2304
+ async function confirmBooking(bookingId, revision, options) {
2305
2305
  const { httpClient, sideEffects } = arguments[3];
2306
2306
  const payload = renameKeysFromSDKRequestToRESTRequest({
2307
2307
  bookingId,
@@ -2312,7 +2312,7 @@ async function confirmBooking2(bookingId, revision, options) {
2312
2312
  doubleBooked: options?.doubleBooked,
2313
2313
  flowControlSettings: options?.flowControlSettings
2314
2314
  });
2315
- const reqOpts = confirmBooking(payload);
2315
+ const reqOpts = bookingsConfirmBooking(payload);
2316
2316
  sideEffects?.onSiteCall?.();
2317
2317
  try {
2318
2318
  const result = await httpClient.request(reqOpts);
@@ -2397,7 +2397,7 @@ async function updateExtendedFields2(_id, namespace, options) {
2397
2397
  throw transformedError;
2398
2398
  }
2399
2399
  }
2400
- async function declineBooking2(bookingId, revision, options) {
2400
+ async function declineBooking(bookingId, revision, options) {
2401
2401
  const { httpClient, sideEffects } = arguments[3];
2402
2402
  const payload = renameKeysFromSDKRequestToRESTRequest({
2403
2403
  bookingId,
@@ -2407,7 +2407,7 @@ async function declineBooking2(bookingId, revision, options) {
2407
2407
  doubleBooked: options?.doubleBooked,
2408
2408
  flowControlSettings: options?.flowControlSettings
2409
2409
  });
2410
- const reqOpts = declineBooking(payload);
2410
+ const reqOpts = bookingsDeclineBooking(payload);
2411
2411
  sideEffects?.onSiteCall?.();
2412
2412
  try {
2413
2413
  const result = await httpClient.request(reqOpts);
@@ -2434,7 +2434,7 @@ async function declineBooking2(bookingId, revision, options) {
2434
2434
  throw transformedError;
2435
2435
  }
2436
2436
  }
2437
- async function cancelBooking2(bookingId, options) {
2437
+ async function cancelBooking(bookingId, options) {
2438
2438
  const { httpClient, sideEffects } = arguments[2];
2439
2439
  const payload = renameKeysFromSDKRequestToRESTRequest({
2440
2440
  bookingId,
@@ -2442,7 +2442,7 @@ async function cancelBooking2(bookingId, options) {
2442
2442
  flowControlSettings: options?.flowControlSettings,
2443
2443
  revision: options?.revision
2444
2444
  });
2445
- const reqOpts = cancelBooking(payload);
2445
+ const reqOpts = bookingsCancelBooking(payload);
2446
2446
  sideEffects?.onSiteCall?.();
2447
2447
  try {
2448
2448
  const result = await httpClient.request(reqOpts);
@@ -2467,7 +2467,7 @@ async function cancelBooking2(bookingId, options) {
2467
2467
  throw transformedError;
2468
2468
  }
2469
2469
  }
2470
- async function updateNumberOfParticipants2(bookingId, options) {
2470
+ async function updateNumberOfParticipants(bookingId, options) {
2471
2471
  const { httpClient, sideEffects } = arguments[2];
2472
2472
  const payload = renameKeysFromSDKRequestToRESTRequest({
2473
2473
  bookingId,
@@ -2475,7 +2475,7 @@ async function updateNumberOfParticipants2(bookingId, options) {
2475
2475
  totalParticipants: options?.totalParticipants,
2476
2476
  participantsChoices: options?.participantsChoices
2477
2477
  });
2478
- const reqOpts = updateNumberOfParticipants(payload);
2478
+ const reqOpts = bookingsUpdateNumberOfParticipants(payload);
2479
2479
  sideEffects?.onSiteCall?.();
2480
2480
  try {
2481
2481
  const result = await httpClient.request(reqOpts);
@@ -2714,15 +2714,15 @@ export {
2714
2714
  bulkConfirmOrDeclineBooking2 as bulkConfirmOrDeclineBooking,
2715
2715
  bulkCreateBooking2 as bulkCreateBooking,
2716
2716
  bulkGetMultiServiceBookingAllowedActions2 as bulkGetMultiServiceBookingAllowedActions,
2717
- cancelBooking2 as cancelBooking,
2717
+ cancelBooking,
2718
2718
  cancelBookingAnonymously2 as cancelBookingAnonymously,
2719
2719
  cancelMultiServiceBooking2 as cancelMultiServiceBooking,
2720
- confirmBooking2 as confirmBooking,
2720
+ confirmBooking,
2721
2721
  confirmMultiServiceBooking2 as confirmMultiServiceBooking,
2722
2722
  confirmOrDeclineBooking2 as confirmOrDeclineBooking,
2723
2723
  createBooking2 as createBooking,
2724
2724
  createMultiServiceBooking2 as createMultiServiceBooking,
2725
- declineBooking2 as declineBooking,
2725
+ declineBooking,
2726
2726
  declineMultiServiceBooking2 as declineMultiServiceBooking,
2727
2727
  getAnonymousActionDetails2 as getAnonymousActionDetails,
2728
2728
  getBookingAnonymously2 as getBookingAnonymously,
@@ -2737,6 +2737,6 @@ export {
2737
2737
  rescheduleMultiServiceBooking2 as rescheduleMultiServiceBooking,
2738
2738
  setBookingSubmissionId2 as setBookingSubmissionId,
2739
2739
  updateExtendedFields2 as updateExtendedFields,
2740
- updateNumberOfParticipants2 as updateNumberOfParticipants
2740
+ updateNumberOfParticipants
2741
2741
  };
2742
2742
  //# sourceMappingURL=index.typings.mjs.map