@wix/auto_sdk_bookings_bookings 1.0.108 → 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.
- package/build/cjs/index.d.ts +72 -72
- package/build/cjs/index.js +211 -211
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +353 -353
- package/build/cjs/index.typings.js +193 -193
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +246 -246
- package/build/cjs/meta.js +171 -171
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +72 -72
- package/build/es/index.mjs +211 -211
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +353 -353
- package/build/es/index.typings.mjs +193 -193
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +246 -246
- package/build/es/meta.mjs +171 -171
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +72 -72
- package/build/internal/cjs/index.js +211 -211
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +353 -353
- package/build/internal/cjs/index.typings.js +193 -193
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +246 -246
- package/build/internal/cjs/meta.js +171 -171
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +72 -72
- package/build/internal/es/index.mjs +211 -211
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +353 -353
- package/build/internal/es/index.typings.mjs +193 -193
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +246 -246
- package/build/internal/es/meta.mjs +171 -171
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -398,57 +398,6 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
398
398
|
};
|
|
399
399
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
400
400
|
}
|
|
401
|
-
function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
|
|
402
|
-
const domainToMappings = {
|
|
403
|
-
"www.wixapis.com": [
|
|
404
|
-
{
|
|
405
|
-
srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
|
|
406
|
-
destPath: "/v2/bookings/confirmation"
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
srcPath: "/bookings/v2/confirmation",
|
|
410
|
-
destPath: "/v2/confirmation"
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
srcPath: "/bookings/v2/bulk/confirmation",
|
|
414
|
-
destPath: "/v2/bulk/confirmation"
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
|
|
418
|
-
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
|
|
422
|
-
destPath: "/v2/bulk/confirmation"
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
|
|
426
|
-
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
427
|
-
}
|
|
428
|
-
],
|
|
429
|
-
"*.dev.wix-code.com": [
|
|
430
|
-
{
|
|
431
|
-
srcPath: "/bookings/v2/confirmation",
|
|
432
|
-
destPath: "/v2/confirmation"
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
srcPath: "/bookings/v2/bulk/bookings",
|
|
436
|
-
destPath: "/v2/bulk/bookings"
|
|
437
|
-
}
|
|
438
|
-
],
|
|
439
|
-
_: [
|
|
440
|
-
{
|
|
441
|
-
srcPath: "/bookings/v2/confirmation",
|
|
442
|
-
destPath: "/v2/confirmation"
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
srcPath: "/bookings/v2/bulk/bookings",
|
|
446
|
-
destPath: "/v2/bulk/bookings"
|
|
447
|
-
}
|
|
448
|
-
]
|
|
449
|
-
};
|
|
450
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
451
|
-
}
|
|
452
401
|
function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
453
402
|
const domainToMappings = {
|
|
454
403
|
_: [
|
|
@@ -602,7 +551,142 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
|
602
551
|
};
|
|
603
552
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
604
553
|
}
|
|
554
|
+
function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
|
|
555
|
+
const domainToMappings = {
|
|
556
|
+
"www.wixapis.com": [
|
|
557
|
+
{
|
|
558
|
+
srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
|
|
559
|
+
destPath: "/v2/bookings/confirmation"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
srcPath: "/bookings/v2/confirmation",
|
|
563
|
+
destPath: "/v2/confirmation"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
srcPath: "/bookings/v2/bulk/confirmation",
|
|
567
|
+
destPath: "/v2/bulk/confirmation"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
|
|
571
|
+
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
|
|
575
|
+
destPath: "/v2/bulk/confirmation"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
|
|
579
|
+
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
580
|
+
}
|
|
581
|
+
],
|
|
582
|
+
"*.dev.wix-code.com": [
|
|
583
|
+
{
|
|
584
|
+
srcPath: "/bookings/v2/confirmation",
|
|
585
|
+
destPath: "/v2/confirmation"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
srcPath: "/bookings/v2/bulk/bookings",
|
|
589
|
+
destPath: "/v2/bulk/bookings"
|
|
590
|
+
}
|
|
591
|
+
],
|
|
592
|
+
_: [
|
|
593
|
+
{
|
|
594
|
+
srcPath: "/bookings/v2/confirmation",
|
|
595
|
+
destPath: "/v2/confirmation"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
srcPath: "/bookings/v2/bulk/bookings",
|
|
599
|
+
destPath: "/v2/bulk/bookings"
|
|
600
|
+
}
|
|
601
|
+
]
|
|
602
|
+
};
|
|
603
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
604
|
+
}
|
|
605
605
|
var PACKAGE_NAME = "@wix/auto_sdk_bookings_bookings";
|
|
606
|
+
function confirmOrDeclineBooking(payload) {
|
|
607
|
+
function __confirmOrDeclineBooking({ host }) {
|
|
608
|
+
const metadata = {
|
|
609
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
610
|
+
method: "POST",
|
|
611
|
+
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
|
|
612
|
+
packageName: PACKAGE_NAME,
|
|
613
|
+
migrationOptions: {
|
|
614
|
+
optInTransformResponse: true
|
|
615
|
+
},
|
|
616
|
+
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
617
|
+
protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
|
|
618
|
+
data: payload,
|
|
619
|
+
host
|
|
620
|
+
}),
|
|
621
|
+
data: payload,
|
|
622
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
623
|
+
{
|
|
624
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
625
|
+
paths: [
|
|
626
|
+
{ path: "booking.createdDate" },
|
|
627
|
+
{ path: "booking.startDate" },
|
|
628
|
+
{ path: "booking.endDate" },
|
|
629
|
+
{ path: "booking.updatedDate" },
|
|
630
|
+
{ path: "booking.canceledDate" }
|
|
631
|
+
]
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
635
|
+
paths: [
|
|
636
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
637
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
638
|
+
]
|
|
639
|
+
}
|
|
640
|
+
])
|
|
641
|
+
};
|
|
642
|
+
return metadata;
|
|
643
|
+
}
|
|
644
|
+
return __confirmOrDeclineBooking;
|
|
645
|
+
}
|
|
646
|
+
function bulkConfirmOrDeclineBooking(payload) {
|
|
647
|
+
function __bulkConfirmOrDeclineBooking({ host }) {
|
|
648
|
+
const metadata = {
|
|
649
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
650
|
+
method: "POST",
|
|
651
|
+
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
|
|
652
|
+
packageName: PACKAGE_NAME,
|
|
653
|
+
migrationOptions: {
|
|
654
|
+
optInTransformResponse: true
|
|
655
|
+
},
|
|
656
|
+
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
657
|
+
protoPath: "/v2/bulk/bookings/confirmOrDecline",
|
|
658
|
+
data: payload,
|
|
659
|
+
host
|
|
660
|
+
}),
|
|
661
|
+
data: payload,
|
|
662
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
663
|
+
{
|
|
664
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
665
|
+
paths: [
|
|
666
|
+
{ path: "results.item.createdDate" },
|
|
667
|
+
{ path: "results.item.startDate" },
|
|
668
|
+
{ path: "results.item.endDate" },
|
|
669
|
+
{ path: "results.item.updatedDate" },
|
|
670
|
+
{ path: "results.item.canceledDate" }
|
|
671
|
+
]
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
675
|
+
paths: [
|
|
676
|
+
{
|
|
677
|
+
path: "results.item.contactDetails.fullAddress.geocode.latitude"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
path: "results.item.contactDetails.fullAddress.geocode.longitude"
|
|
681
|
+
}
|
|
682
|
+
]
|
|
683
|
+
}
|
|
684
|
+
])
|
|
685
|
+
};
|
|
686
|
+
return metadata;
|
|
687
|
+
}
|
|
688
|
+
return __bulkConfirmOrDeclineBooking;
|
|
689
|
+
}
|
|
606
690
|
function createMultiServiceBooking(payload) {
|
|
607
691
|
function __createMultiServiceBooking({ host }) {
|
|
608
692
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1060,90 +1144,6 @@ function removeBookingsFromMultiServiceBooking(payload) {
|
|
|
1060
1144
|
}
|
|
1061
1145
|
return __removeBookingsFromMultiServiceBooking;
|
|
1062
1146
|
}
|
|
1063
|
-
function confirmOrDeclineBooking(payload) {
|
|
1064
|
-
function __confirmOrDeclineBooking({ host }) {
|
|
1065
|
-
const metadata = {
|
|
1066
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1067
|
-
method: "POST",
|
|
1068
|
-
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
|
|
1069
|
-
packageName: PACKAGE_NAME,
|
|
1070
|
-
migrationOptions: {
|
|
1071
|
-
optInTransformResponse: true
|
|
1072
|
-
},
|
|
1073
|
-
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
1074
|
-
protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
|
|
1075
|
-
data: payload,
|
|
1076
|
-
host
|
|
1077
|
-
}),
|
|
1078
|
-
data: payload,
|
|
1079
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1080
|
-
{
|
|
1081
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1082
|
-
paths: [
|
|
1083
|
-
{ path: "booking.createdDate" },
|
|
1084
|
-
{ path: "booking.startDate" },
|
|
1085
|
-
{ path: "booking.endDate" },
|
|
1086
|
-
{ path: "booking.updatedDate" },
|
|
1087
|
-
{ path: "booking.canceledDate" }
|
|
1088
|
-
]
|
|
1089
|
-
},
|
|
1090
|
-
{
|
|
1091
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1092
|
-
paths: [
|
|
1093
|
-
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1094
|
-
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1095
|
-
]
|
|
1096
|
-
}
|
|
1097
|
-
])
|
|
1098
|
-
};
|
|
1099
|
-
return metadata;
|
|
1100
|
-
}
|
|
1101
|
-
return __confirmOrDeclineBooking;
|
|
1102
|
-
}
|
|
1103
|
-
function bulkConfirmOrDeclineBooking(payload) {
|
|
1104
|
-
function __bulkConfirmOrDeclineBooking({ host }) {
|
|
1105
|
-
const metadata = {
|
|
1106
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1107
|
-
method: "POST",
|
|
1108
|
-
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
|
|
1109
|
-
packageName: PACKAGE_NAME,
|
|
1110
|
-
migrationOptions: {
|
|
1111
|
-
optInTransformResponse: true
|
|
1112
|
-
},
|
|
1113
|
-
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
1114
|
-
protoPath: "/v2/bulk/bookings/confirmOrDecline",
|
|
1115
|
-
data: payload,
|
|
1116
|
-
host
|
|
1117
|
-
}),
|
|
1118
|
-
data: payload,
|
|
1119
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1120
|
-
{
|
|
1121
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1122
|
-
paths: [
|
|
1123
|
-
{ path: "results.item.createdDate" },
|
|
1124
|
-
{ path: "results.item.startDate" },
|
|
1125
|
-
{ path: "results.item.endDate" },
|
|
1126
|
-
{ path: "results.item.updatedDate" },
|
|
1127
|
-
{ path: "results.item.canceledDate" }
|
|
1128
|
-
]
|
|
1129
|
-
},
|
|
1130
|
-
{
|
|
1131
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1132
|
-
paths: [
|
|
1133
|
-
{
|
|
1134
|
-
path: "results.item.contactDetails.fullAddress.geocode.latitude"
|
|
1135
|
-
},
|
|
1136
|
-
{
|
|
1137
|
-
path: "results.item.contactDetails.fullAddress.geocode.longitude"
|
|
1138
|
-
}
|
|
1139
|
-
]
|
|
1140
|
-
}
|
|
1141
|
-
])
|
|
1142
|
-
};
|
|
1143
|
-
return metadata;
|
|
1144
|
-
}
|
|
1145
|
-
return __bulkConfirmOrDeclineBooking;
|
|
1146
|
-
}
|
|
1147
1147
|
function createBooking(payload) {
|
|
1148
1148
|
function __createBooking({ host }) {
|
|
1149
1149
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1835,6 +1835,64 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
1835
1835
|
SortOrder2["DESC"] = "DESC";
|
|
1836
1836
|
return SortOrder2;
|
|
1837
1837
|
})(SortOrder || {});
|
|
1838
|
+
async function confirmOrDeclineBooking2(bookingId, options) {
|
|
1839
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1840
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1841
|
+
bookingId,
|
|
1842
|
+
paymentStatus: options?.paymentStatus
|
|
1843
|
+
});
|
|
1844
|
+
const reqOpts = confirmOrDeclineBooking(payload);
|
|
1845
|
+
sideEffects?.onSiteCall?.();
|
|
1846
|
+
try {
|
|
1847
|
+
const result = await httpClient.request(reqOpts);
|
|
1848
|
+
sideEffects?.onSuccess?.(result);
|
|
1849
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1850
|
+
} catch (err) {
|
|
1851
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1852
|
+
err,
|
|
1853
|
+
{
|
|
1854
|
+
spreadPathsToArguments: {},
|
|
1855
|
+
explicitPathsToArguments: {
|
|
1856
|
+
bookingId: "$[0]",
|
|
1857
|
+
paymentStatus: "$[1].paymentStatus"
|
|
1858
|
+
},
|
|
1859
|
+
singleArgumentUnchanged: false
|
|
1860
|
+
},
|
|
1861
|
+
["bookingId", "options"]
|
|
1862
|
+
);
|
|
1863
|
+
sideEffects?.onError?.(err);
|
|
1864
|
+
throw transformedError;
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
async function bulkConfirmOrDeclineBooking2(details, options) {
|
|
1868
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1869
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1870
|
+
details,
|
|
1871
|
+
returnEntity: options?.returnEntity
|
|
1872
|
+
});
|
|
1873
|
+
const reqOpts = bulkConfirmOrDeclineBooking(payload);
|
|
1874
|
+
sideEffects?.onSiteCall?.();
|
|
1875
|
+
try {
|
|
1876
|
+
const result = await httpClient.request(reqOpts);
|
|
1877
|
+
sideEffects?.onSuccess?.(result);
|
|
1878
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1879
|
+
} catch (err) {
|
|
1880
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1881
|
+
err,
|
|
1882
|
+
{
|
|
1883
|
+
spreadPathsToArguments: {},
|
|
1884
|
+
explicitPathsToArguments: {
|
|
1885
|
+
details: "$[0]",
|
|
1886
|
+
returnEntity: "$[1].returnEntity"
|
|
1887
|
+
},
|
|
1888
|
+
singleArgumentUnchanged: false
|
|
1889
|
+
},
|
|
1890
|
+
["details", "options"]
|
|
1891
|
+
);
|
|
1892
|
+
sideEffects?.onError?.(err);
|
|
1893
|
+
throw transformedError;
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1838
1896
|
async function createMultiServiceBooking2(bookings, options) {
|
|
1839
1897
|
const { httpClient, sideEffects } = arguments[2];
|
|
1840
1898
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2196,64 +2254,6 @@ async function removeBookingsFromMultiServiceBooking2(multiServiceBookingId, opt
|
|
|
2196
2254
|
throw transformedError;
|
|
2197
2255
|
}
|
|
2198
2256
|
}
|
|
2199
|
-
async function confirmOrDeclineBooking2(bookingId, options) {
|
|
2200
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2201
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2202
|
-
bookingId,
|
|
2203
|
-
paymentStatus: options?.paymentStatus
|
|
2204
|
-
});
|
|
2205
|
-
const reqOpts = confirmOrDeclineBooking(payload);
|
|
2206
|
-
sideEffects?.onSiteCall?.();
|
|
2207
|
-
try {
|
|
2208
|
-
const result = await httpClient.request(reqOpts);
|
|
2209
|
-
sideEffects?.onSuccess?.(result);
|
|
2210
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2211
|
-
} catch (err) {
|
|
2212
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2213
|
-
err,
|
|
2214
|
-
{
|
|
2215
|
-
spreadPathsToArguments: {},
|
|
2216
|
-
explicitPathsToArguments: {
|
|
2217
|
-
bookingId: "$[0]",
|
|
2218
|
-
paymentStatus: "$[1].paymentStatus"
|
|
2219
|
-
},
|
|
2220
|
-
singleArgumentUnchanged: false
|
|
2221
|
-
},
|
|
2222
|
-
["bookingId", "options"]
|
|
2223
|
-
);
|
|
2224
|
-
sideEffects?.onError?.(err);
|
|
2225
|
-
throw transformedError;
|
|
2226
|
-
}
|
|
2227
|
-
}
|
|
2228
|
-
async function bulkConfirmOrDeclineBooking2(details, options) {
|
|
2229
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2230
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2231
|
-
details,
|
|
2232
|
-
returnEntity: options?.returnEntity
|
|
2233
|
-
});
|
|
2234
|
-
const reqOpts = bulkConfirmOrDeclineBooking(payload);
|
|
2235
|
-
sideEffects?.onSiteCall?.();
|
|
2236
|
-
try {
|
|
2237
|
-
const result = await httpClient.request(reqOpts);
|
|
2238
|
-
sideEffects?.onSuccess?.(result);
|
|
2239
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2240
|
-
} catch (err) {
|
|
2241
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2242
|
-
err,
|
|
2243
|
-
{
|
|
2244
|
-
spreadPathsToArguments: {},
|
|
2245
|
-
explicitPathsToArguments: {
|
|
2246
|
-
details: "$[0]",
|
|
2247
|
-
returnEntity: "$[1].returnEntity"
|
|
2248
|
-
},
|
|
2249
|
-
singleArgumentUnchanged: false
|
|
2250
|
-
},
|
|
2251
|
-
["details", "options"]
|
|
2252
|
-
);
|
|
2253
|
-
sideEffects?.onError?.(err);
|
|
2254
|
-
throw transformedError;
|
|
2255
|
-
}
|
|
2256
|
-
}
|
|
2257
2257
|
async function createBooking2(booking, options) {
|
|
2258
2258
|
const { httpClient, sideEffects } = arguments[2];
|
|
2259
2259
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2729,6 +2729,22 @@ async function getBookingAnonymously2(token) {
|
|
|
2729
2729
|
}
|
|
2730
2730
|
|
|
2731
2731
|
// src/bookings-v2-booking-bookings.public.ts
|
|
2732
|
+
function confirmOrDeclineBooking3(httpClient) {
|
|
2733
|
+
return (bookingId, options) => confirmOrDeclineBooking2(
|
|
2734
|
+
bookingId,
|
|
2735
|
+
options,
|
|
2736
|
+
// @ts-ignore
|
|
2737
|
+
{ httpClient }
|
|
2738
|
+
);
|
|
2739
|
+
}
|
|
2740
|
+
function bulkConfirmOrDeclineBooking3(httpClient) {
|
|
2741
|
+
return (details, options) => bulkConfirmOrDeclineBooking2(
|
|
2742
|
+
details,
|
|
2743
|
+
options,
|
|
2744
|
+
// @ts-ignore
|
|
2745
|
+
{ httpClient }
|
|
2746
|
+
);
|
|
2747
|
+
}
|
|
2732
2748
|
function createMultiServiceBooking3(httpClient) {
|
|
2733
2749
|
return (bookings, options) => createMultiServiceBooking2(
|
|
2734
2750
|
bookings,
|
|
@@ -2815,22 +2831,6 @@ function removeBookingsFromMultiServiceBooking3(httpClient) {
|
|
|
2815
2831
|
{ httpClient }
|
|
2816
2832
|
);
|
|
2817
2833
|
}
|
|
2818
|
-
function confirmOrDeclineBooking3(httpClient) {
|
|
2819
|
-
return (bookingId, options) => confirmOrDeclineBooking2(
|
|
2820
|
-
bookingId,
|
|
2821
|
-
options,
|
|
2822
|
-
// @ts-ignore
|
|
2823
|
-
{ httpClient }
|
|
2824
|
-
);
|
|
2825
|
-
}
|
|
2826
|
-
function bulkConfirmOrDeclineBooking3(httpClient) {
|
|
2827
|
-
return (details, options) => bulkConfirmOrDeclineBooking2(
|
|
2828
|
-
details,
|
|
2829
|
-
options,
|
|
2830
|
-
// @ts-ignore
|
|
2831
|
-
{ httpClient }
|
|
2832
|
-
);
|
|
2833
|
-
}
|
|
2834
2834
|
function createBooking3(httpClient) {
|
|
2835
2835
|
return (booking, options) => createBooking2(
|
|
2836
2836
|
booking,
|
|
@@ -3203,6 +3203,8 @@ var onBookingNumberOfParticipantsUpdated = (0, import_sdk_types.EventDefinition)
|
|
|
3203
3203
|
// src/bookings-v2-booking-bookings.context.ts
|
|
3204
3204
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
3205
3205
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
3206
|
+
var confirmOrDeclineBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(confirmOrDeclineBooking3);
|
|
3207
|
+
var bulkConfirmOrDeclineBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkConfirmOrDeclineBooking3);
|
|
3206
3208
|
var createMultiServiceBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createMultiServiceBooking3);
|
|
3207
3209
|
var rescheduleMultiServiceBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(rescheduleMultiServiceBooking3);
|
|
3208
3210
|
var getMultiServiceBookingAvailability4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getMultiServiceBookingAvailability3);
|
|
@@ -3216,8 +3218,6 @@ var bulkGetMultiServiceBookingAllowedActions4 = /* @__PURE__ */ (0, import_rest_
|
|
|
3216
3218
|
var getMultiServiceBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getMultiServiceBooking3);
|
|
3217
3219
|
var addBookingsToMultiServiceBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addBookingsToMultiServiceBooking3);
|
|
3218
3220
|
var removeBookingsFromMultiServiceBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeBookingsFromMultiServiceBooking3);
|
|
3219
|
-
var confirmOrDeclineBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(confirmOrDeclineBooking3);
|
|
3220
|
-
var bulkConfirmOrDeclineBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkConfirmOrDeclineBooking3);
|
|
3221
3221
|
var createBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createBooking3);
|
|
3222
3222
|
var bulkCreateBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateBooking3);
|
|
3223
3223
|
var rescheduleBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(rescheduleBooking3);
|