@wix/auto_sdk_bookings_bookings 1.0.81 → 1.0.83

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 +41 -58
  2. package/build/cjs/index.js +442 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +100 -121
  5. package/build/cjs/index.typings.js +407 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +50 -63
  8. package/build/cjs/meta.js +374 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +41 -58
  11. package/build/es/index.mjs +438 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +100 -121
  14. package/build/es/index.typings.mjs +403 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +50 -63
  17. package/build/es/meta.mjs +370 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +94 -60
  20. package/build/internal/cjs/index.js +442 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +146 -121
  23. package/build/internal/cjs/index.typings.js +407 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +50 -63
  26. package/build/internal/cjs/meta.js +374 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +94 -60
  29. package/build/internal/es/index.mjs +438 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +146 -121
  32. package/build/internal/es/index.typings.mjs +403 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +50 -63
  35. package/build/internal/es/meta.mjs +370 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -363,7 +363,301 @@ function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
363
363
  };
364
364
  return resolveUrl(Object.assign(opts, { domainToMappings }));
365
365
  }
366
+ function resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl(opts) {
367
+ const domainToMappings = {
368
+ _: [
369
+ {
370
+ srcPath: "/_api/bookings-service/v2/bookings",
371
+ destPath: "/v2/bookings"
372
+ },
373
+ {
374
+ srcPath: "/_api/bookings-service/v2/bulk/bookings",
375
+ destPath: "/v2/bulk/bookings"
376
+ },
377
+ {
378
+ srcPath: "/_api/bookings-service/v2/multi_service_bookings",
379
+ destPath: "/v2/multi_service_bookings"
380
+ },
381
+ {
382
+ srcPath: "/_api/bookings-service/v2/bulk/multi_service_bookings",
383
+ destPath: "/v2/bulk/multi_service_bookings"
384
+ },
385
+ {
386
+ srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
387
+ destPath: "/v2/multi_service_bookings"
388
+ },
389
+ {
390
+ srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
391
+ destPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking"
392
+ },
393
+ {
394
+ srcPath: "/bookings/bookings/v2/bulk/bookings",
395
+ destPath: "/v2/bulk/bookings"
396
+ },
397
+ {
398
+ srcPath: "/bookings/multiServiceBookings/v2/bulk/multi_service_bookings/get_allowed_actions",
399
+ destPath: "/v2/bulk/multi_service_bookings/get_allowed_actions"
400
+ }
401
+ ],
402
+ "manage._base_domain_": [
403
+ {
404
+ srcPath: "/_api/bookings-service/v2/bookings",
405
+ destPath: "/v2/bookings"
406
+ },
407
+ {
408
+ srcPath: "/_api/bookings-service/v2/bulk/bookings",
409
+ destPath: "/v2/bulk/bookings"
410
+ },
411
+ {
412
+ srcPath: "/_api/bookings-service/v2/multi_service_bookings",
413
+ destPath: "/v2/multi_service_bookings"
414
+ },
415
+ {
416
+ srcPath: "/_api/bookings-service/v2/bulk/multi_service_bookings",
417
+ destPath: "/v2/bulk/multi_service_bookings"
418
+ }
419
+ ],
420
+ "www.wixapis.com": [
421
+ {
422
+ srcPath: "/_api/bookings-service/v2/bookings",
423
+ destPath: "/v2/bookings"
424
+ },
425
+ {
426
+ srcPath: "/bookings/v2/bookings",
427
+ destPath: "/v2/bookings"
428
+ },
429
+ {
430
+ srcPath: "/bookings/v2/bulk/bookings",
431
+ destPath: "/v2/bulk/bookings"
432
+ },
433
+ {
434
+ srcPath: "/_api/bookings-service/v2/multi_service_bookings",
435
+ destPath: "/v2/multi_service_bookings"
436
+ },
437
+ {
438
+ srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
439
+ destPath: "/v2/multi_service_bookings"
440
+ },
441
+ {
442
+ srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
443
+ destPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking"
444
+ },
445
+ {
446
+ srcPath: "/bookings/bookings/v2/bulk/bookings",
447
+ destPath: "/v2/bulk/bookings"
448
+ },
449
+ {
450
+ srcPath: "/bookings/multiServiceBookings/v2/bulk/multi_service_bookings/get_allowed_actions",
451
+ destPath: "/v2/bulk/multi_service_bookings/get_allowed_actions"
452
+ }
453
+ ],
454
+ "www._base_domain_": [
455
+ {
456
+ srcPath: "/_api/bookings-service/v2/bulk/bookings",
457
+ destPath: "/v2/bulk/bookings"
458
+ },
459
+ {
460
+ srcPath: "/_api/bookings-service/v2/bookings",
461
+ destPath: "/v2/bookings"
462
+ }
463
+ ],
464
+ "bo._base_domain_": [
465
+ {
466
+ srcPath: "/_api/bookings-service/v2/bulk/bookings",
467
+ destPath: "/v2/bulk/bookings"
468
+ },
469
+ {
470
+ srcPath: "/_api/bookings-service/v2/bookings",
471
+ destPath: "/v2/bookings"
472
+ }
473
+ ],
474
+ "wixbo.ai": [
475
+ {
476
+ srcPath: "/_api/bookings-service/v2/bulk/bookings",
477
+ destPath: "/v2/bulk/bookings"
478
+ },
479
+ {
480
+ srcPath: "/_api/bookings-service/v2/bookings",
481
+ destPath: "/v2/bookings"
482
+ }
483
+ ],
484
+ "wix-bo.com": [
485
+ {
486
+ srcPath: "/_api/bookings-service/v2/bulk/bookings",
487
+ destPath: "/v2/bulk/bookings"
488
+ },
489
+ {
490
+ srcPath: "/_api/bookings-service/v2/bookings",
491
+ destPath: "/v2/bookings"
492
+ }
493
+ ],
494
+ "*.dev.wix-code.com": [
495
+ {
496
+ srcPath: "/_api/bookings-service",
497
+ destPath: "/v2/bookings"
498
+ },
499
+ {
500
+ srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
501
+ destPath: "/v2/multi_service_bookings"
502
+ },
503
+ {
504
+ srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
505
+ destPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking"
506
+ },
507
+ {
508
+ srcPath: "/bookings/bookings/v2/bulk/bookings",
509
+ destPath: "/v2/bulk/bookings"
510
+ },
511
+ {
512
+ srcPath: "/bookings/multiServiceBookings/v2/bulk/multi_service_bookings/get_allowed_actions",
513
+ destPath: "/v2/bulk/multi_service_bookings/get_allowed_actions"
514
+ }
515
+ ]
516
+ };
517
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
518
+ }
366
519
  var PACKAGE_NAME = "@wix/auto_sdk_bookings_bookings";
520
+ function getAnonymousActionDetails(payload) {
521
+ function __getAnonymousActionDetails({ host }) {
522
+ const metadata = {
523
+ entityFqdn: "wix.bookings.v2.booking",
524
+ method: "GET",
525
+ methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetAnonymousActionDetails",
526
+ packageName: PACKAGE_NAME,
527
+ migrationOptions: {
528
+ optInTransformResponse: true
529
+ },
530
+ url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
531
+ protoPath: "/v2/bookings/anonymous-actions-details",
532
+ data: payload,
533
+ host
534
+ }),
535
+ params: toURLSearchParams(payload)
536
+ };
537
+ return metadata;
538
+ }
539
+ return __getAnonymousActionDetails;
540
+ }
541
+ function cancelBookingAnonymously(payload) {
542
+ function __cancelBookingAnonymously({ host }) {
543
+ const metadata = {
544
+ entityFqdn: "wix.bookings.v2.booking",
545
+ method: "POST",
546
+ methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.CancelBookingAnonymously",
547
+ packageName: PACKAGE_NAME,
548
+ migrationOptions: {
549
+ optInTransformResponse: true
550
+ },
551
+ url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
552
+ protoPath: "/v2/bookings/{token}/anonymous-cancel",
553
+ data: payload,
554
+ host
555
+ }),
556
+ data: payload,
557
+ transformResponse: (payload2) => transformPaths(payload2, [
558
+ {
559
+ transformFn: transformRESTTimestampToSDKTimestamp,
560
+ paths: [
561
+ { path: "booking.createdDate" },
562
+ { path: "booking.startDate" },
563
+ { path: "booking.endDate" },
564
+ { path: "booking.updatedDate" },
565
+ { path: "booking.canceledDate" }
566
+ ]
567
+ },
568
+ {
569
+ transformFn: transformRESTFloatToSDKFloat,
570
+ paths: [
571
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
572
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
573
+ ]
574
+ }
575
+ ])
576
+ };
577
+ return metadata;
578
+ }
579
+ return __cancelBookingAnonymously;
580
+ }
581
+ function rescheduleBookingAnonymously(payload) {
582
+ function __rescheduleBookingAnonymously({ host }) {
583
+ const metadata = {
584
+ entityFqdn: "wix.bookings.v2.booking",
585
+ method: "POST",
586
+ methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.RescheduleBookingAnonymously",
587
+ packageName: PACKAGE_NAME,
588
+ migrationOptions: {
589
+ optInTransformResponse: true
590
+ },
591
+ url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
592
+ protoPath: "/v2/bookings/{token}/anonymous-reschedule",
593
+ data: payload,
594
+ host
595
+ }),
596
+ data: payload,
597
+ transformResponse: (payload2) => transformPaths(payload2, [
598
+ {
599
+ transformFn: transformRESTTimestampToSDKTimestamp,
600
+ paths: [
601
+ { path: "booking.createdDate" },
602
+ { path: "booking.startDate" },
603
+ { path: "booking.endDate" },
604
+ { path: "booking.updatedDate" },
605
+ { path: "booking.canceledDate" }
606
+ ]
607
+ },
608
+ {
609
+ transformFn: transformRESTFloatToSDKFloat,
610
+ paths: [
611
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
612
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
613
+ ]
614
+ }
615
+ ])
616
+ };
617
+ return metadata;
618
+ }
619
+ return __rescheduleBookingAnonymously;
620
+ }
621
+ function getBookingAnonymously(payload) {
622
+ function __getBookingAnonymously({ host }) {
623
+ const metadata = {
624
+ entityFqdn: "wix.bookings.v2.booking",
625
+ method: "GET",
626
+ methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetBookingAnonymously",
627
+ packageName: PACKAGE_NAME,
628
+ migrationOptions: {
629
+ optInTransformResponse: true
630
+ },
631
+ url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
632
+ protoPath: "/v2/bookings/{token}/anonymous-get",
633
+ data: payload,
634
+ host
635
+ }),
636
+ params: toURLSearchParams(payload),
637
+ transformResponse: (payload2) => transformPaths(payload2, [
638
+ {
639
+ transformFn: transformRESTTimestampToSDKTimestamp,
640
+ paths: [
641
+ { path: "booking.createdDate" },
642
+ { path: "booking.startDate" },
643
+ { path: "booking.endDate" },
644
+ { path: "booking.updatedDate" },
645
+ { path: "booking.canceledDate" }
646
+ ]
647
+ },
648
+ {
649
+ transformFn: transformRESTFloatToSDKFloat,
650
+ paths: [
651
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
652
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
653
+ ]
654
+ }
655
+ ])
656
+ };
657
+ return metadata;
658
+ }
659
+ return __getBookingAnonymously;
660
+ }
367
661
  function confirmOrDeclineBooking(payload) {
368
662
  function __confirmOrDeclineBooking({ host }) {
369
663
  const metadata = {
@@ -1436,6 +1730,78 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1436
1730
  })(SortOrder || {});
1437
1731
 
1438
1732
  // src/bookings-v2-booking-bookings.meta.ts
1733
+ function getAnonymousActionDetails2() {
1734
+ const payload = {};
1735
+ const getRequestOptions = getAnonymousActionDetails(payload);
1736
+ const getUrl = (context) => {
1737
+ const { url } = getRequestOptions(context);
1738
+ return url;
1739
+ };
1740
+ return {
1741
+ getUrl,
1742
+ httpMethod: "GET",
1743
+ path: "/v2/bookings/anonymous-actions-details",
1744
+ pathParams: {},
1745
+ __requestType: null,
1746
+ __originalRequestType: null,
1747
+ __responseType: null,
1748
+ __originalResponseType: null
1749
+ };
1750
+ }
1751
+ function cancelBookingAnonymously2() {
1752
+ const payload = { token: ":token" };
1753
+ const getRequestOptions = cancelBookingAnonymously(payload);
1754
+ const getUrl = (context) => {
1755
+ const { url } = getRequestOptions(context);
1756
+ return url;
1757
+ };
1758
+ return {
1759
+ getUrl,
1760
+ httpMethod: "POST",
1761
+ path: "/v2/bookings/{token}/anonymous-cancel",
1762
+ pathParams: { token: "token" },
1763
+ __requestType: null,
1764
+ __originalRequestType: null,
1765
+ __responseType: null,
1766
+ __originalResponseType: null
1767
+ };
1768
+ }
1769
+ function rescheduleBookingAnonymously2() {
1770
+ const payload = { token: ":token" };
1771
+ const getRequestOptions = rescheduleBookingAnonymously(payload);
1772
+ const getUrl = (context) => {
1773
+ const { url } = getRequestOptions(context);
1774
+ return url;
1775
+ };
1776
+ return {
1777
+ getUrl,
1778
+ httpMethod: "POST",
1779
+ path: "/v2/bookings/{token}/anonymous-reschedule",
1780
+ pathParams: { token: "token" },
1781
+ __requestType: null,
1782
+ __originalRequestType: null,
1783
+ __responseType: null,
1784
+ __originalResponseType: null
1785
+ };
1786
+ }
1787
+ function getBookingAnonymously2() {
1788
+ const payload = { token: ":token" };
1789
+ const getRequestOptions = getBookingAnonymously(payload);
1790
+ const getUrl = (context) => {
1791
+ const { url } = getRequestOptions(context);
1792
+ return url;
1793
+ };
1794
+ return {
1795
+ getUrl,
1796
+ httpMethod: "GET",
1797
+ path: "/v2/bookings/{token}/anonymous-get",
1798
+ pathParams: { token: "token" },
1799
+ __requestType: null,
1800
+ __originalRequestType: null,
1801
+ __responseType: null,
1802
+ __originalResponseType: null
1803
+ };
1804
+ }
1439
1805
  function confirmOrDeclineBooking2() {
1440
1806
  const payload = { bookingId: ":bookingId" };
1441
1807
  const getRequestOptions = confirmOrDeclineBooking(payload);
@@ -1874,6 +2240,7 @@ export {
1874
2240
  bulkCreateBooking2 as bulkCreateBooking,
1875
2241
  bulkGetMultiServiceBookingAllowedActions2 as bulkGetMultiServiceBookingAllowedActions,
1876
2242
  cancelBooking,
2243
+ cancelBookingAnonymously2 as cancelBookingAnonymously,
1877
2244
  cancelMultiServiceBooking2 as cancelMultiServiceBooking,
1878
2245
  confirmBooking,
1879
2246
  confirmMultiServiceBooking2 as confirmMultiServiceBooking,
@@ -1882,12 +2249,15 @@ export {
1882
2249
  createMultiServiceBooking2 as createMultiServiceBooking,
1883
2250
  declineBooking,
1884
2251
  declineMultiServiceBooking2 as declineMultiServiceBooking,
2252
+ getAnonymousActionDetails2 as getAnonymousActionDetails,
2253
+ getBookingAnonymously2 as getBookingAnonymously,
1885
2254
  getMultiServiceBooking2 as getMultiServiceBooking,
1886
2255
  getMultiServiceBookingAvailability2 as getMultiServiceBookingAvailability,
1887
2256
  markBookingAsPending2 as markBookingAsPending,
1888
2257
  markMultiServiceBookingAsPending2 as markMultiServiceBookingAsPending,
1889
2258
  removeBookingsFromMultiServiceBooking2 as removeBookingsFromMultiServiceBooking,
1890
2259
  rescheduleBooking2 as rescheduleBooking,
2260
+ rescheduleBookingAnonymously2 as rescheduleBookingAnonymously,
1891
2261
  rescheduleMultiServiceBooking2 as rescheduleMultiServiceBooking,
1892
2262
  setBookingSubmissionId2 as setBookingSubmissionId,
1893
2263
  updateExtendedFields2 as updateExtendedFields,