@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
package/build/es/meta.mjs CHANGED
@@ -312,6 +312,57 @@ 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
+ }
315
366
  function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
316
367
  const domainToMappings = {
317
368
  _: [
@@ -465,142 +516,7 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
465
516
  };
466
517
  return resolveUrl(Object.assign(opts, { domainToMappings }));
467
518
  }
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
- }
604
520
  function createMultiServiceBooking(payload) {
605
521
  function __createMultiServiceBooking({ host }) {
606
522
  const serializedData = transformPaths(payload, [
@@ -1058,6 +974,90 @@ function removeBookingsFromMultiServiceBooking(payload) {
1058
974
  }
1059
975
  return __removeBookingsFromMultiServiceBooking;
1060
976
  }
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,42 +1772,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1751
1772
  })(SortOrder || {});
1752
1773
 
1753
1774
  // src/bookings-v2-booking-bookings.meta.ts
1754
- function confirmOrDeclineBooking2() {
1755
- const payload = { bookingId: ":bookingId" };
1756
- const getRequestOptions = confirmOrDeclineBooking(payload);
1757
- const getUrl = (context) => {
1758
- const { url } = getRequestOptions(context);
1759
- return url;
1760
- };
1761
- return {
1762
- getUrl,
1763
- httpMethod: "POST",
1764
- path: "/v2/confirmation/{bookingId}:confirmOrDecline",
1765
- pathParams: { bookingId: "bookingId" },
1766
- __requestType: null,
1767
- __originalRequestType: null,
1768
- __responseType: null,
1769
- __originalResponseType: null
1770
- };
1771
- }
1772
- function bulkConfirmOrDeclineBooking2() {
1773
- const payload = {};
1774
- const getRequestOptions = bulkConfirmOrDeclineBooking(payload);
1775
- const getUrl = (context) => {
1776
- const { url } = getRequestOptions(context);
1777
- return url;
1778
- };
1779
- return {
1780
- getUrl,
1781
- httpMethod: "POST",
1782
- path: "/v2/bulk/bookings/confirmOrDecline",
1783
- pathParams: {},
1784
- __requestType: null,
1785
- __originalRequestType: null,
1786
- __responseType: null,
1787
- __originalResponseType: null
1788
- };
1789
- }
1790
1775
  function createMultiServiceBooking2() {
1791
1776
  const payload = {};
1792
1777
  const getRequestOptions = createMultiServiceBooking(payload);
@@ -1989,6 +1974,42 @@ function removeBookingsFromMultiServiceBooking2() {
1989
1974
  __originalResponseType: null
1990
1975
  };
1991
1976
  }
1977
+ function confirmOrDeclineBooking2() {
1978
+ const payload = { bookingId: ":bookingId" };
1979
+ const getRequestOptions = confirmOrDeclineBooking(payload);
1980
+ const getUrl = (context) => {
1981
+ const { url } = getRequestOptions(context);
1982
+ return url;
1983
+ };
1984
+ return {
1985
+ getUrl,
1986
+ httpMethod: "POST",
1987
+ path: "/v2/confirmation/{bookingId}:confirmOrDecline",
1988
+ pathParams: { bookingId: "bookingId" },
1989
+ __requestType: null,
1990
+ __originalRequestType: null,
1991
+ __responseType: null,
1992
+ __originalResponseType: null
1993
+ };
1994
+ }
1995
+ function bulkConfirmOrDeclineBooking2() {
1996
+ const payload = {};
1997
+ const getRequestOptions = bulkConfirmOrDeclineBooking(payload);
1998
+ const getUrl = (context) => {
1999
+ const { url } = getRequestOptions(context);
2000
+ return url;
2001
+ };
2002
+ return {
2003
+ getUrl,
2004
+ httpMethod: "POST",
2005
+ path: "/v2/bulk/bookings/confirmOrDecline",
2006
+ pathParams: {},
2007
+ __requestType: null,
2008
+ __originalRequestType: null,
2009
+ __responseType: null,
2010
+ __originalResponseType: null
2011
+ };
2012
+ }
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,