@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
|
@@ -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, [
|
|
@@ -1751,6 +1751,42 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
1751
1751
|
})(SortOrder || {});
|
|
1752
1752
|
|
|
1753
1753
|
// 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
|
+
}
|
|
1754
1790
|
function createMultiServiceBooking2() {
|
|
1755
1791
|
const payload = {};
|
|
1756
1792
|
const getRequestOptions = createMultiServiceBooking(payload);
|
|
@@ -1953,42 +1989,6 @@ function removeBookingsFromMultiServiceBooking2() {
|
|
|
1953
1989
|
__originalResponseType: null
|
|
1954
1990
|
};
|
|
1955
1991
|
}
|
|
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
1992
|
function createBooking2() {
|
|
1993
1993
|
const payload = {};
|
|
1994
1994
|
const getRequestOptions = createBooking(payload);
|