@wix/auto_sdk_bookings_bookings 1.0.107 → 1.0.109

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 +83 -83
  2. package/build/cjs/index.js +211 -211
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +386 -371
  5. package/build/cjs/index.typings.js +193 -193
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +266 -251
  8. package/build/cjs/meta.js +171 -171
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +83 -83
  11. package/build/es/index.mjs +211 -211
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +386 -371
  14. package/build/es/index.typings.mjs +193 -193
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +266 -251
  17. package/build/es/meta.mjs +171 -171
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +83 -83
  20. package/build/internal/cjs/index.js +211 -211
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +378 -385
  23. package/build/internal/cjs/index.typings.js +193 -193
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +266 -251
  26. package/build/internal/cjs/meta.js +171 -171
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +83 -83
  29. package/build/internal/es/index.mjs +211 -211
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +378 -385
  32. package/build/internal/es/index.typings.mjs +193 -193
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +266 -251
  35. package/build/internal/es/meta.mjs +171 -171
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
package/build/cjs/meta.js CHANGED
@@ -379,57 +379,6 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
379
379
  };
380
380
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
381
381
  }
382
- function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
383
- const domainToMappings = {
384
- "www.wixapis.com": [
385
- {
386
- srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
387
- destPath: "/v2/bookings/confirmation"
388
- },
389
- {
390
- srcPath: "/bookings/v2/confirmation",
391
- destPath: "/v2/confirmation"
392
- },
393
- {
394
- srcPath: "/bookings/v2/bulk/confirmation",
395
- destPath: "/v2/bulk/confirmation"
396
- },
397
- {
398
- srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
399
- destPath: "/v2/bulk/bookings/confirmOrDecline"
400
- },
401
- {
402
- srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
403
- destPath: "/v2/bulk/confirmation"
404
- },
405
- {
406
- srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
407
- destPath: "/v2/bulk/bookings/confirmOrDecline"
408
- }
409
- ],
410
- "*.dev.wix-code.com": [
411
- {
412
- srcPath: "/bookings/v2/confirmation",
413
- destPath: "/v2/confirmation"
414
- },
415
- {
416
- srcPath: "/bookings/v2/bulk/bookings",
417
- destPath: "/v2/bulk/bookings"
418
- }
419
- ],
420
- _: [
421
- {
422
- srcPath: "/bookings/v2/confirmation",
423
- destPath: "/v2/confirmation"
424
- },
425
- {
426
- srcPath: "/bookings/v2/bulk/bookings",
427
- destPath: "/v2/bulk/bookings"
428
- }
429
- ]
430
- };
431
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
432
- }
433
382
  function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
434
383
  const domainToMappings = {
435
384
  _: [
@@ -583,7 +532,142 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
583
532
  };
584
533
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
585
534
  }
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
586
  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
+ }
587
671
  function createMultiServiceBooking(payload) {
588
672
  function __createMultiServiceBooking({ host }) {
589
673
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -1041,90 +1125,6 @@ function removeBookingsFromMultiServiceBooking(payload) {
1041
1125
  }
1042
1126
  return __removeBookingsFromMultiServiceBooking;
1043
1127
  }
1044
- function confirmOrDeclineBooking(payload) {
1045
- function __confirmOrDeclineBooking({ host }) {
1046
- const metadata = {
1047
- entityFqdn: "wix.bookings.v2.booking",
1048
- method: "POST",
1049
- methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
1050
- packageName: PACKAGE_NAME,
1051
- migrationOptions: {
1052
- optInTransformResponse: true
1053
- },
1054
- url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
1055
- protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
1056
- data: payload,
1057
- host
1058
- }),
1059
- data: payload,
1060
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1061
- {
1062
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1063
- paths: [
1064
- { path: "booking.createdDate" },
1065
- { path: "booking.startDate" },
1066
- { path: "booking.endDate" },
1067
- { path: "booking.updatedDate" },
1068
- { path: "booking.canceledDate" }
1069
- ]
1070
- },
1071
- {
1072
- transformFn: import_float2.transformRESTFloatToSDKFloat,
1073
- paths: [
1074
- { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1075
- { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1076
- ]
1077
- }
1078
- ])
1079
- };
1080
- return metadata;
1081
- }
1082
- return __confirmOrDeclineBooking;
1083
- }
1084
- function bulkConfirmOrDeclineBooking(payload) {
1085
- function __bulkConfirmOrDeclineBooking({ host }) {
1086
- const metadata = {
1087
- entityFqdn: "wix.bookings.v2.booking",
1088
- method: "POST",
1089
- methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
1090
- packageName: PACKAGE_NAME,
1091
- migrationOptions: {
1092
- optInTransformResponse: true
1093
- },
1094
- url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
1095
- protoPath: "/v2/bulk/bookings/confirmOrDecline",
1096
- data: payload,
1097
- host
1098
- }),
1099
- data: payload,
1100
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1101
- {
1102
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1103
- paths: [
1104
- { path: "results.item.createdDate" },
1105
- { path: "results.item.startDate" },
1106
- { path: "results.item.endDate" },
1107
- { path: "results.item.updatedDate" },
1108
- { path: "results.item.canceledDate" }
1109
- ]
1110
- },
1111
- {
1112
- transformFn: import_float2.transformRESTFloatToSDKFloat,
1113
- paths: [
1114
- {
1115
- path: "results.item.contactDetails.fullAddress.geocode.latitude"
1116
- },
1117
- {
1118
- path: "results.item.contactDetails.fullAddress.geocode.longitude"
1119
- }
1120
- ]
1121
- }
1122
- ])
1123
- };
1124
- return metadata;
1125
- }
1126
- return __bulkConfirmOrDeclineBooking;
1127
- }
1128
1128
  function createBooking(payload) {
1129
1129
  function __createBooking({ host }) {
1130
1130
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -1818,6 +1818,42 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1818
1818
  })(SortOrder || {});
1819
1819
 
1820
1820
  // 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
+ }
1821
1857
  function createMultiServiceBooking2() {
1822
1858
  const payload = {};
1823
1859
  const getRequestOptions = createMultiServiceBooking(payload);
@@ -2020,42 +2056,6 @@ function removeBookingsFromMultiServiceBooking2() {
2020
2056
  __originalResponseType: null
2021
2057
  };
2022
2058
  }
2023
- function confirmOrDeclineBooking2() {
2024
- const payload = { bookingId: ":bookingId" };
2025
- const getRequestOptions = confirmOrDeclineBooking(payload);
2026
- const getUrl = (context) => {
2027
- const { url } = getRequestOptions(context);
2028
- return url;
2029
- };
2030
- return {
2031
- getUrl,
2032
- httpMethod: "POST",
2033
- path: "/v2/confirmation/{bookingId}:confirmOrDecline",
2034
- pathParams: { bookingId: "bookingId" },
2035
- __requestType: null,
2036
- __originalRequestType: null,
2037
- __responseType: null,
2038
- __originalResponseType: null
2039
- };
2040
- }
2041
- function bulkConfirmOrDeclineBooking2() {
2042
- const payload = {};
2043
- const getRequestOptions = bulkConfirmOrDeclineBooking(payload);
2044
- const getUrl = (context) => {
2045
- const { url } = getRequestOptions(context);
2046
- return url;
2047
- };
2048
- return {
2049
- getUrl,
2050
- httpMethod: "POST",
2051
- path: "/v2/bulk/bookings/confirmOrDecline",
2052
- pathParams: {},
2053
- __requestType: null,
2054
- __originalRequestType: null,
2055
- __responseType: null,
2056
- __originalResponseType: null
2057
- };
2058
- }
2059
2059
  function createBooking2() {
2060
2060
  const payload = {};
2061
2061
  const getRequestOptions = createBooking(payload);