@wix/auto_sdk_bookings_bookings 1.0.118 → 1.0.120
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 +73 -73
- package/build/cjs/index.js +211 -211
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +359 -342
- package/build/cjs/index.typings.js +193 -193
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +255 -238
- package/build/cjs/meta.js +171 -171
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +73 -73
- package/build/es/index.mjs +211 -211
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +359 -342
- package/build/es/index.typings.mjs +193 -193
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +255 -238
- package/build/es/meta.mjs +171 -171
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +73 -73
- 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 +359 -342
- 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 +255 -238
- package/build/internal/cjs/meta.js +171 -171
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +73 -73
- 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 +359 -342
- 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 +255 -238
- package/build/internal/es/meta.mjs +171 -171
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.mjs
CHANGED
|
@@ -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, [
|
|
@@ -1772,6 +1772,42 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
1772
1772
|
})(SortOrder || {});
|
|
1773
1773
|
|
|
1774
1774
|
// src/bookings-v2-booking-bookings.meta.ts
|
|
1775
|
+
function confirmOrDeclineBooking2() {
|
|
1776
|
+
const payload = { bookingId: ":bookingId" };
|
|
1777
|
+
const getRequestOptions = confirmOrDeclineBooking(payload);
|
|
1778
|
+
const getUrl = (context) => {
|
|
1779
|
+
const { url } = getRequestOptions(context);
|
|
1780
|
+
return url;
|
|
1781
|
+
};
|
|
1782
|
+
return {
|
|
1783
|
+
getUrl,
|
|
1784
|
+
httpMethod: "POST",
|
|
1785
|
+
path: "/v2/confirmation/{bookingId}:confirmOrDecline",
|
|
1786
|
+
pathParams: { bookingId: "bookingId" },
|
|
1787
|
+
__requestType: null,
|
|
1788
|
+
__originalRequestType: null,
|
|
1789
|
+
__responseType: null,
|
|
1790
|
+
__originalResponseType: null
|
|
1791
|
+
};
|
|
1792
|
+
}
|
|
1793
|
+
function bulkConfirmOrDeclineBooking2() {
|
|
1794
|
+
const payload = {};
|
|
1795
|
+
const getRequestOptions = bulkConfirmOrDeclineBooking(payload);
|
|
1796
|
+
const getUrl = (context) => {
|
|
1797
|
+
const { url } = getRequestOptions(context);
|
|
1798
|
+
return url;
|
|
1799
|
+
};
|
|
1800
|
+
return {
|
|
1801
|
+
getUrl,
|
|
1802
|
+
httpMethod: "POST",
|
|
1803
|
+
path: "/v2/bulk/bookings/confirmOrDecline",
|
|
1804
|
+
pathParams: {},
|
|
1805
|
+
__requestType: null,
|
|
1806
|
+
__originalRequestType: null,
|
|
1807
|
+
__responseType: null,
|
|
1808
|
+
__originalResponseType: null
|
|
1809
|
+
};
|
|
1810
|
+
}
|
|
1775
1811
|
function createMultiServiceBooking2() {
|
|
1776
1812
|
const payload = {};
|
|
1777
1813
|
const getRequestOptions = createMultiServiceBooking(payload);
|
|
@@ -1974,42 +2010,6 @@ function removeBookingsFromMultiServiceBooking2() {
|
|
|
1974
2010
|
__originalResponseType: null
|
|
1975
2011
|
};
|
|
1976
2012
|
}
|
|
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
|
-
}
|
|
2013
2013
|
function createBooking2() {
|
|
2014
2014
|
const payload = {};
|
|
2015
2015
|
const getRequestOptions = createBooking(payload);
|