@wix/auto_sdk_bookings_bookings 1.0.109 → 1.0.111

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 +85 -74
  2. package/build/cjs/index.js +267 -211
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +377 -349
  5. package/build/cjs/index.typings.js +241 -193
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +264 -247
  8. package/build/cjs/meta.js +212 -171
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +85 -74
  11. package/build/es/index.mjs +266 -211
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +377 -349
  14. package/build/es/index.typings.mjs +240 -193
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +264 -247
  17. package/build/es/meta.mjs +211 -171
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +85 -74
  20. package/build/internal/cjs/index.js +267 -211
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +377 -349
  23. package/build/internal/cjs/index.typings.js +241 -193
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +264 -247
  26. package/build/internal/cjs/meta.js +212 -171
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +85 -74
  29. package/build/internal/es/index.mjs +266 -211
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +377 -349
  32. package/build/internal/es/index.typings.mjs +240 -193
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +264 -247
  35. package/build/internal/es/meta.mjs +211 -171
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -53,6 +53,7 @@ __export(meta_exports, {
53
53
  getBookingAnonymously: () => getBookingAnonymously2,
54
54
  getMultiServiceBooking: () => getMultiServiceBooking2,
55
55
  getMultiServiceBookingAvailability: () => getMultiServiceBookingAvailability2,
56
+ getSchedulingUrl: () => getSchedulingUrl2,
56
57
  markBookingAsPending: () => markBookingAsPending2,
57
58
  markMultiServiceBookingAsPending: () => markMultiServiceBookingAsPending2,
58
59
  removeBookingsFromMultiServiceBooking: () => removeBookingsFromMultiServiceBooking2,
@@ -379,6 +380,57 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
379
380
  };
380
381
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
381
382
  }
383
+ function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
384
+ const domainToMappings = {
385
+ "www.wixapis.com": [
386
+ {
387
+ srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
388
+ destPath: "/v2/bookings/confirmation"
389
+ },
390
+ {
391
+ srcPath: "/bookings/v2/confirmation",
392
+ destPath: "/v2/confirmation"
393
+ },
394
+ {
395
+ srcPath: "/bookings/v2/bulk/confirmation",
396
+ destPath: "/v2/bulk/confirmation"
397
+ },
398
+ {
399
+ srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
400
+ destPath: "/v2/bulk/bookings/confirmOrDecline"
401
+ },
402
+ {
403
+ srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
404
+ destPath: "/v2/bulk/confirmation"
405
+ },
406
+ {
407
+ srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
408
+ destPath: "/v2/bulk/bookings/confirmOrDecline"
409
+ }
410
+ ],
411
+ "*.dev.wix-code.com": [
412
+ {
413
+ srcPath: "/bookings/v2/confirmation",
414
+ destPath: "/v2/confirmation"
415
+ },
416
+ {
417
+ srcPath: "/bookings/v2/bulk/bookings",
418
+ destPath: "/v2/bulk/bookings"
419
+ }
420
+ ],
421
+ _: [
422
+ {
423
+ srcPath: "/bookings/v2/confirmation",
424
+ destPath: "/v2/confirmation"
425
+ },
426
+ {
427
+ srcPath: "/bookings/v2/bulk/bookings",
428
+ destPath: "/v2/bulk/bookings"
429
+ }
430
+ ]
431
+ };
432
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
433
+ }
382
434
  function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
383
435
  const domainToMappings = {
384
436
  _: [
@@ -532,142 +584,7 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
532
584
  };
533
585
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
534
586
  }
535
- function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
536
- const domainToMappings = {
537
- "www.wixapis.com": [
538
- {
539
- srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
540
- destPath: "/v2/bookings/confirmation"
541
- },
542
- {
543
- srcPath: "/bookings/v2/confirmation",
544
- destPath: "/v2/confirmation"
545
- },
546
- {
547
- srcPath: "/bookings/v2/bulk/confirmation",
548
- destPath: "/v2/bulk/confirmation"
549
- },
550
- {
551
- srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
552
- destPath: "/v2/bulk/bookings/confirmOrDecline"
553
- },
554
- {
555
- srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
556
- destPath: "/v2/bulk/confirmation"
557
- },
558
- {
559
- srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
560
- destPath: "/v2/bulk/bookings/confirmOrDecline"
561
- }
562
- ],
563
- "*.dev.wix-code.com": [
564
- {
565
- srcPath: "/bookings/v2/confirmation",
566
- destPath: "/v2/confirmation"
567
- },
568
- {
569
- srcPath: "/bookings/v2/bulk/bookings",
570
- destPath: "/v2/bulk/bookings"
571
- }
572
- ],
573
- _: [
574
- {
575
- srcPath: "/bookings/v2/confirmation",
576
- destPath: "/v2/confirmation"
577
- },
578
- {
579
- srcPath: "/bookings/v2/bulk/bookings",
580
- destPath: "/v2/bulk/bookings"
581
- }
582
- ]
583
- };
584
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
585
- }
586
587
  var PACKAGE_NAME = "@wix/auto_sdk_bookings_bookings";
587
- function confirmOrDeclineBooking(payload) {
588
- function __confirmOrDeclineBooking({ host }) {
589
- const metadata = {
590
- entityFqdn: "wix.bookings.v2.booking",
591
- method: "POST",
592
- methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
593
- packageName: PACKAGE_NAME,
594
- migrationOptions: {
595
- optInTransformResponse: true
596
- },
597
- url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
598
- protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
599
- data: payload,
600
- host
601
- }),
602
- data: payload,
603
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
604
- {
605
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
606
- paths: [
607
- { path: "booking.createdDate" },
608
- { path: "booking.startDate" },
609
- { path: "booking.endDate" },
610
- { path: "booking.updatedDate" },
611
- { path: "booking.canceledDate" }
612
- ]
613
- },
614
- {
615
- transformFn: import_float2.transformRESTFloatToSDKFloat,
616
- paths: [
617
- { path: "booking.contactDetails.fullAddress.geocode.latitude" },
618
- { path: "booking.contactDetails.fullAddress.geocode.longitude" }
619
- ]
620
- }
621
- ])
622
- };
623
- return metadata;
624
- }
625
- return __confirmOrDeclineBooking;
626
- }
627
- function bulkConfirmOrDeclineBooking(payload) {
628
- function __bulkConfirmOrDeclineBooking({ host }) {
629
- const metadata = {
630
- entityFqdn: "wix.bookings.v2.booking",
631
- method: "POST",
632
- methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
633
- packageName: PACKAGE_NAME,
634
- migrationOptions: {
635
- optInTransformResponse: true
636
- },
637
- url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
638
- protoPath: "/v2/bulk/bookings/confirmOrDecline",
639
- data: payload,
640
- host
641
- }),
642
- data: payload,
643
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
644
- {
645
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
646
- paths: [
647
- { path: "results.item.createdDate" },
648
- { path: "results.item.startDate" },
649
- { path: "results.item.endDate" },
650
- { path: "results.item.updatedDate" },
651
- { path: "results.item.canceledDate" }
652
- ]
653
- },
654
- {
655
- transformFn: import_float2.transformRESTFloatToSDKFloat,
656
- paths: [
657
- {
658
- path: "results.item.contactDetails.fullAddress.geocode.latitude"
659
- },
660
- {
661
- path: "results.item.contactDetails.fullAddress.geocode.longitude"
662
- }
663
- ]
664
- }
665
- ])
666
- };
667
- return metadata;
668
- }
669
- return __bulkConfirmOrDeclineBooking;
670
- }
671
588
  function createMultiServiceBooking(payload) {
672
589
  function __createMultiServiceBooking({ host }) {
673
590
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -1125,6 +1042,90 @@ function removeBookingsFromMultiServiceBooking(payload) {
1125
1042
  }
1126
1043
  return __removeBookingsFromMultiServiceBooking;
1127
1044
  }
1045
+ function confirmOrDeclineBooking(payload) {
1046
+ function __confirmOrDeclineBooking({ host }) {
1047
+ const metadata = {
1048
+ entityFqdn: "wix.bookings.v2.booking",
1049
+ method: "POST",
1050
+ methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
1051
+ packageName: PACKAGE_NAME,
1052
+ migrationOptions: {
1053
+ optInTransformResponse: true
1054
+ },
1055
+ url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
1056
+ protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
1057
+ data: payload,
1058
+ host
1059
+ }),
1060
+ data: payload,
1061
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1062
+ {
1063
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1064
+ paths: [
1065
+ { path: "booking.createdDate" },
1066
+ { path: "booking.startDate" },
1067
+ { path: "booking.endDate" },
1068
+ { path: "booking.updatedDate" },
1069
+ { path: "booking.canceledDate" }
1070
+ ]
1071
+ },
1072
+ {
1073
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1074
+ paths: [
1075
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1076
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1077
+ ]
1078
+ }
1079
+ ])
1080
+ };
1081
+ return metadata;
1082
+ }
1083
+ return __confirmOrDeclineBooking;
1084
+ }
1085
+ function bulkConfirmOrDeclineBooking(payload) {
1086
+ function __bulkConfirmOrDeclineBooking({ host }) {
1087
+ const metadata = {
1088
+ entityFqdn: "wix.bookings.v2.booking",
1089
+ method: "POST",
1090
+ methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
1091
+ packageName: PACKAGE_NAME,
1092
+ migrationOptions: {
1093
+ optInTransformResponse: true
1094
+ },
1095
+ url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
1096
+ protoPath: "/v2/bulk/bookings/confirmOrDecline",
1097
+ data: payload,
1098
+ host
1099
+ }),
1100
+ data: payload,
1101
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1102
+ {
1103
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1104
+ paths: [
1105
+ { path: "results.item.createdDate" },
1106
+ { path: "results.item.startDate" },
1107
+ { path: "results.item.endDate" },
1108
+ { path: "results.item.updatedDate" },
1109
+ { path: "results.item.canceledDate" }
1110
+ ]
1111
+ },
1112
+ {
1113
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1114
+ paths: [
1115
+ {
1116
+ path: "results.item.contactDetails.fullAddress.geocode.latitude"
1117
+ },
1118
+ {
1119
+ path: "results.item.contactDetails.fullAddress.geocode.longitude"
1120
+ }
1121
+ ]
1122
+ }
1123
+ ])
1124
+ };
1125
+ return metadata;
1126
+ }
1127
+ return __bulkConfirmOrDeclineBooking;
1128
+ }
1128
1129
  function createBooking(payload) {
1129
1130
  function __createBooking({ host }) {
1130
1131
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -1714,6 +1715,27 @@ function getBookingAnonymously(payload) {
1714
1715
  }
1715
1716
  return __getBookingAnonymously;
1716
1717
  }
1718
+ function getSchedulingUrl(payload) {
1719
+ function __getSchedulingUrl({ host }) {
1720
+ const metadata = {
1721
+ entityFqdn: "wix.bookings.v2.booking",
1722
+ method: "GET",
1723
+ methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetSchedulingUrl",
1724
+ packageName: PACKAGE_NAME,
1725
+ migrationOptions: {
1726
+ optInTransformResponse: true
1727
+ },
1728
+ url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
1729
+ protoPath: "/v2/bookings/scheduling-url",
1730
+ data: payload,
1731
+ host
1732
+ }),
1733
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
1734
+ };
1735
+ return metadata;
1736
+ }
1737
+ return __getSchedulingUrl;
1738
+ }
1717
1739
 
1718
1740
  // src/bookings-v2-booking-bookings.types.ts
1719
1741
  var MultiServiceBookingType = /* @__PURE__ */ ((MultiServiceBookingType2) => {
@@ -1818,42 +1840,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1818
1840
  })(SortOrder || {});
1819
1841
 
1820
1842
  // src/bookings-v2-booking-bookings.meta.ts
1821
- function confirmOrDeclineBooking2() {
1822
- const payload = { bookingId: ":bookingId" };
1823
- const getRequestOptions = confirmOrDeclineBooking(payload);
1824
- const getUrl = (context) => {
1825
- const { url } = getRequestOptions(context);
1826
- return url;
1827
- };
1828
- return {
1829
- getUrl,
1830
- httpMethod: "POST",
1831
- path: "/v2/confirmation/{bookingId}:confirmOrDecline",
1832
- pathParams: { bookingId: "bookingId" },
1833
- __requestType: null,
1834
- __originalRequestType: null,
1835
- __responseType: null,
1836
- __originalResponseType: null
1837
- };
1838
- }
1839
- function bulkConfirmOrDeclineBooking2() {
1840
- const payload = {};
1841
- const getRequestOptions = bulkConfirmOrDeclineBooking(payload);
1842
- const getUrl = (context) => {
1843
- const { url } = getRequestOptions(context);
1844
- return url;
1845
- };
1846
- return {
1847
- getUrl,
1848
- httpMethod: "POST",
1849
- path: "/v2/bulk/bookings/confirmOrDecline",
1850
- pathParams: {},
1851
- __requestType: null,
1852
- __originalRequestType: null,
1853
- __responseType: null,
1854
- __originalResponseType: null
1855
- };
1856
- }
1857
1843
  function createMultiServiceBooking2() {
1858
1844
  const payload = {};
1859
1845
  const getRequestOptions = createMultiServiceBooking(payload);
@@ -2056,6 +2042,42 @@ function removeBookingsFromMultiServiceBooking2() {
2056
2042
  __originalResponseType: null
2057
2043
  };
2058
2044
  }
2045
+ function confirmOrDeclineBooking2() {
2046
+ const payload = { bookingId: ":bookingId" };
2047
+ const getRequestOptions = confirmOrDeclineBooking(payload);
2048
+ const getUrl = (context) => {
2049
+ const { url } = getRequestOptions(context);
2050
+ return url;
2051
+ };
2052
+ return {
2053
+ getUrl,
2054
+ httpMethod: "POST",
2055
+ path: "/v2/confirmation/{bookingId}:confirmOrDecline",
2056
+ pathParams: { bookingId: "bookingId" },
2057
+ __requestType: null,
2058
+ __originalRequestType: null,
2059
+ __responseType: null,
2060
+ __originalResponseType: null
2061
+ };
2062
+ }
2063
+ function bulkConfirmOrDeclineBooking2() {
2064
+ const payload = {};
2065
+ const getRequestOptions = bulkConfirmOrDeclineBooking(payload);
2066
+ const getUrl = (context) => {
2067
+ const { url } = getRequestOptions(context);
2068
+ return url;
2069
+ };
2070
+ return {
2071
+ getUrl,
2072
+ httpMethod: "POST",
2073
+ path: "/v2/bulk/bookings/confirmOrDecline",
2074
+ pathParams: {},
2075
+ __requestType: null,
2076
+ __originalRequestType: null,
2077
+ __responseType: null,
2078
+ __originalResponseType: null
2079
+ };
2080
+ }
2059
2081
  function createBooking2() {
2060
2082
  const payload = {};
2061
2083
  const getRequestOptions = createBooking(payload);
@@ -2326,6 +2348,24 @@ function getBookingAnonymously2() {
2326
2348
  __originalResponseType: null
2327
2349
  };
2328
2350
  }
2351
+ function getSchedulingUrl2() {
2352
+ const payload = {};
2353
+ const getRequestOptions = getSchedulingUrl(payload);
2354
+ const getUrl = (context) => {
2355
+ const { url } = getRequestOptions(context);
2356
+ return url;
2357
+ };
2358
+ return {
2359
+ getUrl,
2360
+ httpMethod: "GET",
2361
+ path: "/v2/bookings/scheduling-url",
2362
+ pathParams: {},
2363
+ __requestType: null,
2364
+ __originalRequestType: null,
2365
+ __responseType: null,
2366
+ __originalResponseType: null
2367
+ };
2368
+ }
2329
2369
  // Annotate the CommonJS export names for ESM import in node:
2330
2370
  0 && (module.exports = {
2331
2371
  ActorOriginal,
@@ -2361,6 +2401,7 @@ function getBookingAnonymously2() {
2361
2401
  getBookingAnonymously,
2362
2402
  getMultiServiceBooking,
2363
2403
  getMultiServiceBookingAvailability,
2404
+ getSchedulingUrl,
2364
2405
  markBookingAsPending,
2365
2406
  markMultiServiceBookingAsPending,
2366
2407
  removeBookingsFromMultiServiceBooking,