@wix/auto_sdk_bookings_bookings 1.0.124 → 1.0.126
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 +379 -370
- package/build/cjs/index.typings.js +193 -193
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +331 -331
- 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 +379 -370
- package/build/es/index.typings.mjs +193 -193
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +331 -331
- 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 +379 -370
- 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 +331 -331
- 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 +379 -370
- 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 +331 -331
- package/build/internal/es/meta.mjs +171 -171
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -380,57 +380,6 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
380
380
|
};
|
|
381
381
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
382
382
|
}
|
|
383
|
-
function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
|
|
384
|
-
const domainToMappings = {
|
|
385
|
-
"www.wixapis.com": [
|
|
386
|
-
{
|
|
387
|
-
srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
|
|
388
|
-
destPath: "/v2/bookings/confirmation"
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
srcPath: "/bookings/v2/confirmation",
|
|
392
|
-
destPath: "/v2/confirmation"
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
srcPath: "/bookings/v2/bulk/confirmation",
|
|
396
|
-
destPath: "/v2/bulk/confirmation"
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
|
|
400
|
-
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
|
|
404
|
-
destPath: "/v2/bulk/confirmation"
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
|
|
408
|
-
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
409
|
-
}
|
|
410
|
-
],
|
|
411
|
-
"*.dev.wix-code.com": [
|
|
412
|
-
{
|
|
413
|
-
srcPath: "/bookings/v2/confirmation",
|
|
414
|
-
destPath: "/v2/confirmation"
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
srcPath: "/bookings/v2/bulk/bookings",
|
|
418
|
-
destPath: "/v2/bulk/bookings"
|
|
419
|
-
}
|
|
420
|
-
],
|
|
421
|
-
_: [
|
|
422
|
-
{
|
|
423
|
-
srcPath: "/bookings/v2/confirmation",
|
|
424
|
-
destPath: "/v2/confirmation"
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
srcPath: "/bookings/v2/bulk/bookings",
|
|
428
|
-
destPath: "/v2/bulk/bookings"
|
|
429
|
-
}
|
|
430
|
-
]
|
|
431
|
-
};
|
|
432
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
433
|
-
}
|
|
434
383
|
function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
435
384
|
const domainToMappings = {
|
|
436
385
|
_: [
|
|
@@ -584,7 +533,142 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
|
584
533
|
};
|
|
585
534
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
586
535
|
}
|
|
536
|
+
function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
|
|
537
|
+
const domainToMappings = {
|
|
538
|
+
"www.wixapis.com": [
|
|
539
|
+
{
|
|
540
|
+
srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
|
|
541
|
+
destPath: "/v2/bookings/confirmation"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
srcPath: "/bookings/v2/confirmation",
|
|
545
|
+
destPath: "/v2/confirmation"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
srcPath: "/bookings/v2/bulk/confirmation",
|
|
549
|
+
destPath: "/v2/bulk/confirmation"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
|
|
553
|
+
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
|
|
557
|
+
destPath: "/v2/bulk/confirmation"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
|
|
561
|
+
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"*.dev.wix-code.com": [
|
|
565
|
+
{
|
|
566
|
+
srcPath: "/bookings/v2/confirmation",
|
|
567
|
+
destPath: "/v2/confirmation"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
srcPath: "/bookings/v2/bulk/bookings",
|
|
571
|
+
destPath: "/v2/bulk/bookings"
|
|
572
|
+
}
|
|
573
|
+
],
|
|
574
|
+
_: [
|
|
575
|
+
{
|
|
576
|
+
srcPath: "/bookings/v2/confirmation",
|
|
577
|
+
destPath: "/v2/confirmation"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
srcPath: "/bookings/v2/bulk/bookings",
|
|
581
|
+
destPath: "/v2/bulk/bookings"
|
|
582
|
+
}
|
|
583
|
+
]
|
|
584
|
+
};
|
|
585
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
586
|
+
}
|
|
587
587
|
var PACKAGE_NAME = "@wix/auto_sdk_bookings_bookings";
|
|
588
|
+
function confirmOrDeclineBooking(payload) {
|
|
589
|
+
function __confirmOrDeclineBooking({ host }) {
|
|
590
|
+
const metadata = {
|
|
591
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
592
|
+
method: "POST",
|
|
593
|
+
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
|
|
594
|
+
packageName: PACKAGE_NAME,
|
|
595
|
+
migrationOptions: {
|
|
596
|
+
optInTransformResponse: true
|
|
597
|
+
},
|
|
598
|
+
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
599
|
+
protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
|
|
600
|
+
data: payload,
|
|
601
|
+
host
|
|
602
|
+
}),
|
|
603
|
+
data: payload,
|
|
604
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
605
|
+
{
|
|
606
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
607
|
+
paths: [
|
|
608
|
+
{ path: "booking.createdDate" },
|
|
609
|
+
{ path: "booking.startDate" },
|
|
610
|
+
{ path: "booking.endDate" },
|
|
611
|
+
{ path: "booking.updatedDate" },
|
|
612
|
+
{ path: "booking.canceledDate" }
|
|
613
|
+
]
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
617
|
+
paths: [
|
|
618
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
619
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
620
|
+
]
|
|
621
|
+
}
|
|
622
|
+
])
|
|
623
|
+
};
|
|
624
|
+
return metadata;
|
|
625
|
+
}
|
|
626
|
+
return __confirmOrDeclineBooking;
|
|
627
|
+
}
|
|
628
|
+
function bulkConfirmOrDeclineBooking(payload) {
|
|
629
|
+
function __bulkConfirmOrDeclineBooking({ host }) {
|
|
630
|
+
const metadata = {
|
|
631
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
632
|
+
method: "POST",
|
|
633
|
+
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
|
|
634
|
+
packageName: PACKAGE_NAME,
|
|
635
|
+
migrationOptions: {
|
|
636
|
+
optInTransformResponse: true
|
|
637
|
+
},
|
|
638
|
+
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
639
|
+
protoPath: "/v2/bulk/bookings/confirmOrDecline",
|
|
640
|
+
data: payload,
|
|
641
|
+
host
|
|
642
|
+
}),
|
|
643
|
+
data: payload,
|
|
644
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
645
|
+
{
|
|
646
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
647
|
+
paths: [
|
|
648
|
+
{ path: "results.item.createdDate" },
|
|
649
|
+
{ path: "results.item.startDate" },
|
|
650
|
+
{ path: "results.item.endDate" },
|
|
651
|
+
{ path: "results.item.updatedDate" },
|
|
652
|
+
{ path: "results.item.canceledDate" }
|
|
653
|
+
]
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
657
|
+
paths: [
|
|
658
|
+
{
|
|
659
|
+
path: "results.item.contactDetails.fullAddress.geocode.latitude"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
path: "results.item.contactDetails.fullAddress.geocode.longitude"
|
|
663
|
+
}
|
|
664
|
+
]
|
|
665
|
+
}
|
|
666
|
+
])
|
|
667
|
+
};
|
|
668
|
+
return metadata;
|
|
669
|
+
}
|
|
670
|
+
return __bulkConfirmOrDeclineBooking;
|
|
671
|
+
}
|
|
588
672
|
function createMultiServiceBooking(payload) {
|
|
589
673
|
function __createMultiServiceBooking({ host }) {
|
|
590
674
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1042,90 +1126,6 @@ function removeBookingsFromMultiServiceBooking(payload) {
|
|
|
1042
1126
|
}
|
|
1043
1127
|
return __removeBookingsFromMultiServiceBooking;
|
|
1044
1128
|
}
|
|
1045
|
-
function confirmOrDeclineBooking(payload) {
|
|
1046
|
-
function __confirmOrDeclineBooking({ host }) {
|
|
1047
|
-
const metadata = {
|
|
1048
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1049
|
-
method: "POST",
|
|
1050
|
-
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
|
|
1051
|
-
packageName: PACKAGE_NAME,
|
|
1052
|
-
migrationOptions: {
|
|
1053
|
-
optInTransformResponse: true
|
|
1054
|
-
},
|
|
1055
|
-
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
1056
|
-
protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
|
|
1057
|
-
data: payload,
|
|
1058
|
-
host
|
|
1059
|
-
}),
|
|
1060
|
-
data: payload,
|
|
1061
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1062
|
-
{
|
|
1063
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1064
|
-
paths: [
|
|
1065
|
-
{ path: "booking.createdDate" },
|
|
1066
|
-
{ path: "booking.startDate" },
|
|
1067
|
-
{ path: "booking.endDate" },
|
|
1068
|
-
{ path: "booking.updatedDate" },
|
|
1069
|
-
{ path: "booking.canceledDate" }
|
|
1070
|
-
]
|
|
1071
|
-
},
|
|
1072
|
-
{
|
|
1073
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1074
|
-
paths: [
|
|
1075
|
-
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1076
|
-
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1077
|
-
]
|
|
1078
|
-
}
|
|
1079
|
-
])
|
|
1080
|
-
};
|
|
1081
|
-
return metadata;
|
|
1082
|
-
}
|
|
1083
|
-
return __confirmOrDeclineBooking;
|
|
1084
|
-
}
|
|
1085
|
-
function bulkConfirmOrDeclineBooking(payload) {
|
|
1086
|
-
function __bulkConfirmOrDeclineBooking({ host }) {
|
|
1087
|
-
const metadata = {
|
|
1088
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1089
|
-
method: "POST",
|
|
1090
|
-
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
|
|
1091
|
-
packageName: PACKAGE_NAME,
|
|
1092
|
-
migrationOptions: {
|
|
1093
|
-
optInTransformResponse: true
|
|
1094
|
-
},
|
|
1095
|
-
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
1096
|
-
protoPath: "/v2/bulk/bookings/confirmOrDecline",
|
|
1097
|
-
data: payload,
|
|
1098
|
-
host
|
|
1099
|
-
}),
|
|
1100
|
-
data: payload,
|
|
1101
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1102
|
-
{
|
|
1103
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1104
|
-
paths: [
|
|
1105
|
-
{ path: "results.item.createdDate" },
|
|
1106
|
-
{ path: "results.item.startDate" },
|
|
1107
|
-
{ path: "results.item.endDate" },
|
|
1108
|
-
{ path: "results.item.updatedDate" },
|
|
1109
|
-
{ path: "results.item.canceledDate" }
|
|
1110
|
-
]
|
|
1111
|
-
},
|
|
1112
|
-
{
|
|
1113
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1114
|
-
paths: [
|
|
1115
|
-
{
|
|
1116
|
-
path: "results.item.contactDetails.fullAddress.geocode.latitude"
|
|
1117
|
-
},
|
|
1118
|
-
{
|
|
1119
|
-
path: "results.item.contactDetails.fullAddress.geocode.longitude"
|
|
1120
|
-
}
|
|
1121
|
-
]
|
|
1122
|
-
}
|
|
1123
|
-
])
|
|
1124
|
-
};
|
|
1125
|
-
return metadata;
|
|
1126
|
-
}
|
|
1127
|
-
return __bulkConfirmOrDeclineBooking;
|
|
1128
|
-
}
|
|
1129
1129
|
function createBooking(payload) {
|
|
1130
1130
|
function __createBooking({ host }) {
|
|
1131
1131
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1840,6 +1840,42 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
1840
1840
|
})(SortOrder || {});
|
|
1841
1841
|
|
|
1842
1842
|
// src/bookings-v2-booking-bookings.meta.ts
|
|
1843
|
+
function confirmOrDeclineBooking2() {
|
|
1844
|
+
const payload = { bookingId: ":bookingId" };
|
|
1845
|
+
const getRequestOptions = confirmOrDeclineBooking(payload);
|
|
1846
|
+
const getUrl = (context) => {
|
|
1847
|
+
const { url } = getRequestOptions(context);
|
|
1848
|
+
return url;
|
|
1849
|
+
};
|
|
1850
|
+
return {
|
|
1851
|
+
getUrl,
|
|
1852
|
+
httpMethod: "POST",
|
|
1853
|
+
path: "/v2/confirmation/{bookingId}:confirmOrDecline",
|
|
1854
|
+
pathParams: { bookingId: "bookingId" },
|
|
1855
|
+
__requestType: null,
|
|
1856
|
+
__originalRequestType: null,
|
|
1857
|
+
__responseType: null,
|
|
1858
|
+
__originalResponseType: null
|
|
1859
|
+
};
|
|
1860
|
+
}
|
|
1861
|
+
function bulkConfirmOrDeclineBooking2() {
|
|
1862
|
+
const payload = {};
|
|
1863
|
+
const getRequestOptions = bulkConfirmOrDeclineBooking(payload);
|
|
1864
|
+
const getUrl = (context) => {
|
|
1865
|
+
const { url } = getRequestOptions(context);
|
|
1866
|
+
return url;
|
|
1867
|
+
};
|
|
1868
|
+
return {
|
|
1869
|
+
getUrl,
|
|
1870
|
+
httpMethod: "POST",
|
|
1871
|
+
path: "/v2/bulk/bookings/confirmOrDecline",
|
|
1872
|
+
pathParams: {},
|
|
1873
|
+
__requestType: null,
|
|
1874
|
+
__originalRequestType: null,
|
|
1875
|
+
__responseType: null,
|
|
1876
|
+
__originalResponseType: null
|
|
1877
|
+
};
|
|
1878
|
+
}
|
|
1843
1879
|
function createMultiServiceBooking2() {
|
|
1844
1880
|
const payload = {};
|
|
1845
1881
|
const getRequestOptions = createMultiServiceBooking(payload);
|
|
@@ -2042,42 +2078,6 @@ function removeBookingsFromMultiServiceBooking2() {
|
|
|
2042
2078
|
__originalResponseType: null
|
|
2043
2079
|
};
|
|
2044
2080
|
}
|
|
2045
|
-
function confirmOrDeclineBooking2() {
|
|
2046
|
-
const payload = { bookingId: ":bookingId" };
|
|
2047
|
-
const getRequestOptions = confirmOrDeclineBooking(payload);
|
|
2048
|
-
const getUrl = (context) => {
|
|
2049
|
-
const { url } = getRequestOptions(context);
|
|
2050
|
-
return url;
|
|
2051
|
-
};
|
|
2052
|
-
return {
|
|
2053
|
-
getUrl,
|
|
2054
|
-
httpMethod: "POST",
|
|
2055
|
-
path: "/v2/confirmation/{bookingId}:confirmOrDecline",
|
|
2056
|
-
pathParams: { bookingId: "bookingId" },
|
|
2057
|
-
__requestType: null,
|
|
2058
|
-
__originalRequestType: null,
|
|
2059
|
-
__responseType: null,
|
|
2060
|
-
__originalResponseType: null
|
|
2061
|
-
};
|
|
2062
|
-
}
|
|
2063
|
-
function bulkConfirmOrDeclineBooking2() {
|
|
2064
|
-
const payload = {};
|
|
2065
|
-
const getRequestOptions = bulkConfirmOrDeclineBooking(payload);
|
|
2066
|
-
const getUrl = (context) => {
|
|
2067
|
-
const { url } = getRequestOptions(context);
|
|
2068
|
-
return url;
|
|
2069
|
-
};
|
|
2070
|
-
return {
|
|
2071
|
-
getUrl,
|
|
2072
|
-
httpMethod: "POST",
|
|
2073
|
-
path: "/v2/bulk/bookings/confirmOrDecline",
|
|
2074
|
-
pathParams: {},
|
|
2075
|
-
__requestType: null,
|
|
2076
|
-
__originalRequestType: null,
|
|
2077
|
-
__responseType: null,
|
|
2078
|
-
__originalResponseType: null
|
|
2079
|
-
};
|
|
2080
|
-
}
|
|
2081
2081
|
function createBooking2() {
|
|
2082
2082
|
const payload = {};
|
|
2083
2083
|
const getRequestOptions = createBooking(payload);
|