@wix/auto_sdk_bookings_bookings 1.0.108 → 1.0.110

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
package/build/es/meta.mjs CHANGED
@@ -312,57 +312,6 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
312
312
  };
313
313
  return resolveUrl(Object.assign(opts, { domainToMappings }));
314
314
  }
315
- function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
316
- const domainToMappings = {
317
- "www.wixapis.com": [
318
- {
319
- srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
320
- destPath: "/v2/bookings/confirmation"
321
- },
322
- {
323
- srcPath: "/bookings/v2/confirmation",
324
- destPath: "/v2/confirmation"
325
- },
326
- {
327
- srcPath: "/bookings/v2/bulk/confirmation",
328
- destPath: "/v2/bulk/confirmation"
329
- },
330
- {
331
- srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
332
- destPath: "/v2/bulk/bookings/confirmOrDecline"
333
- },
334
- {
335
- srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
336
- destPath: "/v2/bulk/confirmation"
337
- },
338
- {
339
- srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
340
- destPath: "/v2/bulk/bookings/confirmOrDecline"
341
- }
342
- ],
343
- "*.dev.wix-code.com": [
344
- {
345
- srcPath: "/bookings/v2/confirmation",
346
- destPath: "/v2/confirmation"
347
- },
348
- {
349
- srcPath: "/bookings/v2/bulk/bookings",
350
- destPath: "/v2/bulk/bookings"
351
- }
352
- ],
353
- _: [
354
- {
355
- srcPath: "/bookings/v2/confirmation",
356
- destPath: "/v2/confirmation"
357
- },
358
- {
359
- srcPath: "/bookings/v2/bulk/bookings",
360
- destPath: "/v2/bulk/bookings"
361
- }
362
- ]
363
- };
364
- return resolveUrl(Object.assign(opts, { domainToMappings }));
365
- }
366
315
  function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
367
316
  const domainToMappings = {
368
317
  _: [
@@ -516,7 +465,142 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
516
465
  };
517
466
  return resolveUrl(Object.assign(opts, { domainToMappings }));
518
467
  }
468
+ function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
469
+ const domainToMappings = {
470
+ "www.wixapis.com": [
471
+ {
472
+ srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
473
+ destPath: "/v2/bookings/confirmation"
474
+ },
475
+ {
476
+ srcPath: "/bookings/v2/confirmation",
477
+ destPath: "/v2/confirmation"
478
+ },
479
+ {
480
+ srcPath: "/bookings/v2/bulk/confirmation",
481
+ destPath: "/v2/bulk/confirmation"
482
+ },
483
+ {
484
+ srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
485
+ destPath: "/v2/bulk/bookings/confirmOrDecline"
486
+ },
487
+ {
488
+ srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
489
+ destPath: "/v2/bulk/confirmation"
490
+ },
491
+ {
492
+ srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
493
+ destPath: "/v2/bulk/bookings/confirmOrDecline"
494
+ }
495
+ ],
496
+ "*.dev.wix-code.com": [
497
+ {
498
+ srcPath: "/bookings/v2/confirmation",
499
+ destPath: "/v2/confirmation"
500
+ },
501
+ {
502
+ srcPath: "/bookings/v2/bulk/bookings",
503
+ destPath: "/v2/bulk/bookings"
504
+ }
505
+ ],
506
+ _: [
507
+ {
508
+ srcPath: "/bookings/v2/confirmation",
509
+ destPath: "/v2/confirmation"
510
+ },
511
+ {
512
+ srcPath: "/bookings/v2/bulk/bookings",
513
+ destPath: "/v2/bulk/bookings"
514
+ }
515
+ ]
516
+ };
517
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
518
+ }
519
519
  var PACKAGE_NAME = "@wix/auto_sdk_bookings_bookings";
520
+ function confirmOrDeclineBooking(payload) {
521
+ function __confirmOrDeclineBooking({ host }) {
522
+ const metadata = {
523
+ entityFqdn: "wix.bookings.v2.booking",
524
+ method: "POST",
525
+ methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
526
+ packageName: PACKAGE_NAME,
527
+ migrationOptions: {
528
+ optInTransformResponse: true
529
+ },
530
+ url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
531
+ protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
532
+ data: payload,
533
+ host
534
+ }),
535
+ data: payload,
536
+ transformResponse: (payload2) => transformPaths(payload2, [
537
+ {
538
+ transformFn: transformRESTTimestampToSDKTimestamp,
539
+ paths: [
540
+ { path: "booking.createdDate" },
541
+ { path: "booking.startDate" },
542
+ { path: "booking.endDate" },
543
+ { path: "booking.updatedDate" },
544
+ { path: "booking.canceledDate" }
545
+ ]
546
+ },
547
+ {
548
+ transformFn: transformRESTFloatToSDKFloat,
549
+ paths: [
550
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
551
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
552
+ ]
553
+ }
554
+ ])
555
+ };
556
+ return metadata;
557
+ }
558
+ return __confirmOrDeclineBooking;
559
+ }
560
+ function bulkConfirmOrDeclineBooking(payload) {
561
+ function __bulkConfirmOrDeclineBooking({ host }) {
562
+ const metadata = {
563
+ entityFqdn: "wix.bookings.v2.booking",
564
+ method: "POST",
565
+ methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
566
+ packageName: PACKAGE_NAME,
567
+ migrationOptions: {
568
+ optInTransformResponse: true
569
+ },
570
+ url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
571
+ protoPath: "/v2/bulk/bookings/confirmOrDecline",
572
+ data: payload,
573
+ host
574
+ }),
575
+ data: payload,
576
+ transformResponse: (payload2) => transformPaths(payload2, [
577
+ {
578
+ transformFn: transformRESTTimestampToSDKTimestamp,
579
+ paths: [
580
+ { path: "results.item.createdDate" },
581
+ { path: "results.item.startDate" },
582
+ { path: "results.item.endDate" },
583
+ { path: "results.item.updatedDate" },
584
+ { path: "results.item.canceledDate" }
585
+ ]
586
+ },
587
+ {
588
+ transformFn: transformRESTFloatToSDKFloat,
589
+ paths: [
590
+ {
591
+ path: "results.item.contactDetails.fullAddress.geocode.latitude"
592
+ },
593
+ {
594
+ path: "results.item.contactDetails.fullAddress.geocode.longitude"
595
+ }
596
+ ]
597
+ }
598
+ ])
599
+ };
600
+ return metadata;
601
+ }
602
+ return __bulkConfirmOrDeclineBooking;
603
+ }
520
604
  function createMultiServiceBooking(payload) {
521
605
  function __createMultiServiceBooking({ host }) {
522
606
  const serializedData = transformPaths(payload, [
@@ -974,90 +1058,6 @@ function removeBookingsFromMultiServiceBooking(payload) {
974
1058
  }
975
1059
  return __removeBookingsFromMultiServiceBooking;
976
1060
  }
977
- function confirmOrDeclineBooking(payload) {
978
- function __confirmOrDeclineBooking({ host }) {
979
- const metadata = {
980
- entityFqdn: "wix.bookings.v2.booking",
981
- method: "POST",
982
- methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
983
- packageName: PACKAGE_NAME,
984
- migrationOptions: {
985
- optInTransformResponse: true
986
- },
987
- url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
988
- protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
989
- data: payload,
990
- host
991
- }),
992
- data: payload,
993
- transformResponse: (payload2) => transformPaths(payload2, [
994
- {
995
- transformFn: transformRESTTimestampToSDKTimestamp,
996
- paths: [
997
- { path: "booking.createdDate" },
998
- { path: "booking.startDate" },
999
- { path: "booking.endDate" },
1000
- { path: "booking.updatedDate" },
1001
- { path: "booking.canceledDate" }
1002
- ]
1003
- },
1004
- {
1005
- transformFn: transformRESTFloatToSDKFloat,
1006
- paths: [
1007
- { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1008
- { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1009
- ]
1010
- }
1011
- ])
1012
- };
1013
- return metadata;
1014
- }
1015
- return __confirmOrDeclineBooking;
1016
- }
1017
- function bulkConfirmOrDeclineBooking(payload) {
1018
- function __bulkConfirmOrDeclineBooking({ host }) {
1019
- const metadata = {
1020
- entityFqdn: "wix.bookings.v2.booking",
1021
- method: "POST",
1022
- methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
1023
- packageName: PACKAGE_NAME,
1024
- migrationOptions: {
1025
- optInTransformResponse: true
1026
- },
1027
- url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
1028
- protoPath: "/v2/bulk/bookings/confirmOrDecline",
1029
- data: payload,
1030
- host
1031
- }),
1032
- data: payload,
1033
- transformResponse: (payload2) => transformPaths(payload2, [
1034
- {
1035
- transformFn: transformRESTTimestampToSDKTimestamp,
1036
- paths: [
1037
- { path: "results.item.createdDate" },
1038
- { path: "results.item.startDate" },
1039
- { path: "results.item.endDate" },
1040
- { path: "results.item.updatedDate" },
1041
- { path: "results.item.canceledDate" }
1042
- ]
1043
- },
1044
- {
1045
- transformFn: transformRESTFloatToSDKFloat,
1046
- paths: [
1047
- {
1048
- path: "results.item.contactDetails.fullAddress.geocode.latitude"
1049
- },
1050
- {
1051
- path: "results.item.contactDetails.fullAddress.geocode.longitude"
1052
- }
1053
- ]
1054
- }
1055
- ])
1056
- };
1057
- return metadata;
1058
- }
1059
- return __bulkConfirmOrDeclineBooking;
1060
- }
1061
1061
  function createBooking(payload) {
1062
1062
  function __createBooking({ host }) {
1063
1063
  const serializedData = transformPaths(payload, [
@@ -1647,6 +1647,27 @@ function getBookingAnonymously(payload) {
1647
1647
  }
1648
1648
  return __getBookingAnonymously;
1649
1649
  }
1650
+ function getSchedulingUrl(payload) {
1651
+ function __getSchedulingUrl({ host }) {
1652
+ const metadata = {
1653
+ entityFqdn: "wix.bookings.v2.booking",
1654
+ method: "GET",
1655
+ methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetSchedulingUrl",
1656
+ packageName: PACKAGE_NAME,
1657
+ migrationOptions: {
1658
+ optInTransformResponse: true
1659
+ },
1660
+ url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
1661
+ protoPath: "/v2/bookings/scheduling-url",
1662
+ data: payload,
1663
+ host
1664
+ }),
1665
+ params: toURLSearchParams(payload)
1666
+ };
1667
+ return metadata;
1668
+ }
1669
+ return __getSchedulingUrl;
1670
+ }
1650
1671
 
1651
1672
  // src/bookings-v2-booking-bookings.types.ts
1652
1673
  var MultiServiceBookingType = /* @__PURE__ */ ((MultiServiceBookingType2) => {
@@ -1751,6 +1772,42 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1751
1772
  })(SortOrder || {});
1752
1773
 
1753
1774
  // src/bookings-v2-booking-bookings.meta.ts
1775
+ function confirmOrDeclineBooking2() {
1776
+ const payload = { bookingId: ":bookingId" };
1777
+ const getRequestOptions = confirmOrDeclineBooking(payload);
1778
+ const getUrl = (context) => {
1779
+ const { url } = getRequestOptions(context);
1780
+ return url;
1781
+ };
1782
+ return {
1783
+ getUrl,
1784
+ httpMethod: "POST",
1785
+ path: "/v2/confirmation/{bookingId}:confirmOrDecline",
1786
+ pathParams: { bookingId: "bookingId" },
1787
+ __requestType: null,
1788
+ __originalRequestType: null,
1789
+ __responseType: null,
1790
+ __originalResponseType: null
1791
+ };
1792
+ }
1793
+ function bulkConfirmOrDeclineBooking2() {
1794
+ const payload = {};
1795
+ const getRequestOptions = bulkConfirmOrDeclineBooking(payload);
1796
+ const getUrl = (context) => {
1797
+ const { url } = getRequestOptions(context);
1798
+ return url;
1799
+ };
1800
+ return {
1801
+ getUrl,
1802
+ httpMethod: "POST",
1803
+ path: "/v2/bulk/bookings/confirmOrDecline",
1804
+ pathParams: {},
1805
+ __requestType: null,
1806
+ __originalRequestType: null,
1807
+ __responseType: null,
1808
+ __originalResponseType: null
1809
+ };
1810
+ }
1754
1811
  function createMultiServiceBooking2() {
1755
1812
  const payload = {};
1756
1813
  const getRequestOptions = createMultiServiceBooking(payload);
@@ -1953,42 +2010,6 @@ function removeBookingsFromMultiServiceBooking2() {
1953
2010
  __originalResponseType: null
1954
2011
  };
1955
2012
  }
1956
- function confirmOrDeclineBooking2() {
1957
- const payload = { bookingId: ":bookingId" };
1958
- const getRequestOptions = confirmOrDeclineBooking(payload);
1959
- const getUrl = (context) => {
1960
- const { url } = getRequestOptions(context);
1961
- return url;
1962
- };
1963
- return {
1964
- getUrl,
1965
- httpMethod: "POST",
1966
- path: "/v2/confirmation/{bookingId}:confirmOrDecline",
1967
- pathParams: { bookingId: "bookingId" },
1968
- __requestType: null,
1969
- __originalRequestType: null,
1970
- __responseType: null,
1971
- __originalResponseType: null
1972
- };
1973
- }
1974
- function bulkConfirmOrDeclineBooking2() {
1975
- const payload = {};
1976
- const getRequestOptions = bulkConfirmOrDeclineBooking(payload);
1977
- const getUrl = (context) => {
1978
- const { url } = getRequestOptions(context);
1979
- return url;
1980
- };
1981
- return {
1982
- getUrl,
1983
- httpMethod: "POST",
1984
- path: "/v2/bulk/bookings/confirmOrDecline",
1985
- pathParams: {},
1986
- __requestType: null,
1987
- __originalRequestType: null,
1988
- __responseType: null,
1989
- __originalResponseType: null
1990
- };
1991
- }
1992
2013
  function createBooking2() {
1993
2014
  const payload = {};
1994
2015
  const getRequestOptions = createBooking(payload);
@@ -2259,6 +2280,24 @@ function getBookingAnonymously2() {
2259
2280
  __originalResponseType: null
2260
2281
  };
2261
2282
  }
2283
+ function getSchedulingUrl2() {
2284
+ const payload = {};
2285
+ const getRequestOptions = getSchedulingUrl(payload);
2286
+ const getUrl = (context) => {
2287
+ const { url } = getRequestOptions(context);
2288
+ return url;
2289
+ };
2290
+ return {
2291
+ getUrl,
2292
+ httpMethod: "GET",
2293
+ path: "/v2/bookings/scheduling-url",
2294
+ pathParams: {},
2295
+ __requestType: null,
2296
+ __originalRequestType: null,
2297
+ __responseType: null,
2298
+ __originalResponseType: null
2299
+ };
2300
+ }
2262
2301
  export {
2263
2302
  Actor as ActorOriginal,
2264
2303
  BookingStatus as BookingStatusOriginal,
@@ -2293,6 +2332,7 @@ export {
2293
2332
  getBookingAnonymously2 as getBookingAnonymously,
2294
2333
  getMultiServiceBooking2 as getMultiServiceBooking,
2295
2334
  getMultiServiceBookingAvailability2 as getMultiServiceBookingAvailability,
2335
+ getSchedulingUrl2 as getSchedulingUrl,
2296
2336
  markBookingAsPending2 as markBookingAsPending,
2297
2337
  markMultiServiceBookingAsPending2 as markMultiServiceBookingAsPending,
2298
2338
  removeBookingsFromMultiServiceBooking2 as removeBookingsFromMultiServiceBooking,