@wix/bookings 1.0.103 → 1.0.105
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 +1 -1
- package/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.http.d.ts +9 -14
- package/build/cjs/src/bookings-reader-v2-extended-booking.http.js +9 -14
- package/build/cjs/src/bookings-reader-v2-extended-booking.http.js.map +1 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.d.ts +22 -37
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js +11 -16
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.http.js +4 -0
- package/build/cjs/src/bookings-services-v2-service.http.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.http.d.ts +10 -10
- package/build/cjs/src/bookings-v2-price-info.http.js +13 -13
- package/build/cjs/src/bookings-v2-price-info.http.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.public.d.ts +3 -3
- package/build/cjs/src/bookings-v2-price-info.public.js +1 -1
- package/build/cjs/src/bookings-v2-price-info.public.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.types.d.ts +2 -2
- package/build/cjs/src/bookings-v2-price-info.universal.d.ts +40 -46
- package/build/cjs/src/bookings-v2-price-info.universal.js +16 -14
- package/build/cjs/src/bookings-v2-price-info.universal.js.map +1 -1
- package/build/es/index.d.ts +1 -1
- package/build/es/index.js +1 -1
- package/build/es/index.js.map +1 -1
- package/build/es/src/bookings-reader-v2-extended-booking.http.d.ts +9 -14
- package/build/es/src/bookings-reader-v2-extended-booking.http.js +9 -14
- package/build/es/src/bookings-reader-v2-extended-booking.http.js.map +1 -1
- package/build/es/src/bookings-reader-v2-extended-booking.universal.d.ts +22 -37
- package/build/es/src/bookings-reader-v2-extended-booking.universal.js +11 -16
- package/build/es/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.http.js +4 -0
- package/build/es/src/bookings-services-v2-service.http.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.http.d.ts +10 -10
- package/build/es/src/bookings-v2-price-info.http.js +13 -13
- package/build/es/src/bookings-v2-price-info.http.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.public.d.ts +3 -3
- package/build/es/src/bookings-v2-price-info.public.js +1 -1
- package/build/es/src/bookings-v2-price-info.public.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.types.d.ts +2 -2
- package/build/es/src/bookings-v2-price-info.universal.d.ts +40 -46
- package/build/es/src/bookings-v2-price-info.universal.js +16 -14
- package/build/es/src/bookings-v2-price-info.universal.js.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export * as serviceOptionsAndVariants from './src/bookings-catalog-v1-service-op
|
|
|
8
8
|
export * as extendedBookings from './src/bookings-reader-v2-extended-booking.public';
|
|
9
9
|
export * as services from './src/bookings-services-v2-service.public';
|
|
10
10
|
export * as bookings from './src/bookings-v2-booking.public';
|
|
11
|
-
export * as
|
|
11
|
+
export * as pricing from './src/bookings-v2-price-info.public';
|
package/build/cjs/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
22
|
+
exports.pricing = exports.bookings = exports.services = exports.extendedBookings = exports.serviceOptionsAndVariants = exports.sessionsView = exports.externalCalendars = exports.sessions = exports.availabilityCalendar = exports.resources = exports.sessionsFeed = void 0;
|
|
23
23
|
exports.sessionsFeed = __importStar(require("./src/bookings-calendar-v2-session-feed-event.public"));
|
|
24
24
|
exports.resources = __importStar(require("./src/bookings-catalog-v1-resource.public"));
|
|
25
25
|
exports.availabilityCalendar = __importStar(require("./src/bookings-availability-v1-slot-availability.public"));
|
|
@@ -30,5 +30,5 @@ exports.serviceOptionsAndVariants = __importStar(require("./src/bookings-catalog
|
|
|
30
30
|
exports.extendedBookings = __importStar(require("./src/bookings-reader-v2-extended-booking.public"));
|
|
31
31
|
exports.services = __importStar(require("./src/bookings-services-v2-service.public"));
|
|
32
32
|
exports.bookings = __importStar(require("./src/bookings-v2-booking.public"));
|
|
33
|
-
exports.
|
|
33
|
+
exports.pricing = __importStar(require("./src/bookings-v2-price-info.public"));
|
|
34
34
|
//# sourceMappingURL=index.js.map
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qGAAqF;AACrF,uFAAuE;AACvE,gHAAgG;AAChG,sFAAsE;AACtE,yGAAyF;AACzF,+FAA+E;AAC/E,2HAA2G;AAC3G,qGAAqF;AACrF,sFAAsE;AACtE,6EAA6D;AAC7D
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qGAAqF;AACrF,uFAAuE;AACvE,gHAAgG;AAChG,sFAAsE;AACtE,yGAAyF;AACzF,+FAA+E;AAC/E,2HAA2G;AAC3G,qGAAqF;AACrF,sFAAsE;AACtE,6EAA6D;AAC7D,+EAA+D"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
2
|
import { QueryExtendedBookingsRequest, QueryExtendedBookingsResponse } from './bookings-reader-v2-extended-booking.types';
|
|
3
3
|
/**
|
|
4
|
-
* Retrieves a list of bookings, given the provided paging, filtering, and sorting.
|
|
4
|
+
* Retrieves a list of bookings, including additional extended information, given the provided paging, filtering, and sorting.
|
|
5
5
|
*
|
|
6
|
-
* Up to 100 bookings can be returned per request.
|
|
6
|
+
* Up to 100 extended bookings can be returned per request.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* `queryExtendedBookings()` runs with these defaults, which you can override:
|
|
9
9
|
*
|
|
10
10
|
* - `createdDate` sorted in `DESC` order
|
|
11
11
|
* - `cursorPaging.limit` is `50`
|
|
@@ -15,24 +15,19 @@ import { QueryExtendedBookingsRequest, QueryExtendedBookingsResponse } from './b
|
|
|
15
15
|
* for the bookings. To do so, pass `withBookingAllowedActions` as `true`.
|
|
16
16
|
*
|
|
17
17
|
*
|
|
18
|
-
* For field support see
|
|
19
|
-
* [supported filters](https://
|
|
18
|
+
* For field support, see
|
|
19
|
+
* [supported filters](https://www.wix.com/velo/reference/wix-bookings-v2/extendedbookings/supported-filters)
|
|
20
20
|
* for more information.
|
|
21
21
|
*
|
|
22
|
-
* You can
|
|
23
|
-
* more than once,
|
|
22
|
+
* You can specify a filter only once per query. If you specify a filter
|
|
23
|
+
* more than once, the first filter determines the extended bookings returns and the second filter is ignored.
|
|
24
24
|
*
|
|
25
|
-
* When
|
|
25
|
+
* When filtering by date, you must use [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).
|
|
26
26
|
*
|
|
27
27
|
* Bookings that are part of a schedule don't have a `sessionId`. Therefore you
|
|
28
28
|
* must use the `sessionId` filter that isn't part of the `query` object to
|
|
29
29
|
* filter bookings for courses.
|
|
30
30
|
*
|
|
31
|
-
*
|
|
32
|
-
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
33
|
-
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging),
|
|
34
|
-
* and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
35
|
-
*
|
|
36
|
-
* When calling Query Extended Bookings, the retrieved data may not contain your most recent changes.
|
|
31
|
+
* When calling `queryExtendedBookings()`, the retrieved data may not contain your most recent changes.
|
|
37
32
|
*/
|
|
38
33
|
export declare function queryExtendedBookings(payload: QueryExtendedBookingsRequest): RequestOptionsFactory<QueryExtendedBookingsResponse>;
|
|
@@ -53,11 +53,11 @@ function resolveComWixpressBookingsReaderV2BookingsReaderUrl(opts) {
|
|
|
53
53
|
return (0, metro_runtime_1.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
* Retrieves a list of bookings, given the provided paging, filtering, and sorting.
|
|
56
|
+
* Retrieves a list of bookings, including additional extended information, given the provided paging, filtering, and sorting.
|
|
57
57
|
*
|
|
58
|
-
* Up to 100 bookings can be returned per request.
|
|
58
|
+
* Up to 100 extended bookings can be returned per request.
|
|
59
59
|
*
|
|
60
|
-
*
|
|
60
|
+
* `queryExtendedBookings()` runs with these defaults, which you can override:
|
|
61
61
|
*
|
|
62
62
|
* - `createdDate` sorted in `DESC` order
|
|
63
63
|
* - `cursorPaging.limit` is `50`
|
|
@@ -67,25 +67,20 @@ function resolveComWixpressBookingsReaderV2BookingsReaderUrl(opts) {
|
|
|
67
67
|
* for the bookings. To do so, pass `withBookingAllowedActions` as `true`.
|
|
68
68
|
*
|
|
69
69
|
*
|
|
70
|
-
* For field support see
|
|
71
|
-
* [supported filters](https://
|
|
70
|
+
* For field support, see
|
|
71
|
+
* [supported filters](https://www.wix.com/velo/reference/wix-bookings-v2/extendedbookings/supported-filters)
|
|
72
72
|
* for more information.
|
|
73
73
|
*
|
|
74
|
-
* You can
|
|
75
|
-
* more than once,
|
|
74
|
+
* You can specify a filter only once per query. If you specify a filter
|
|
75
|
+
* more than once, the first filter determines the extended bookings returns and the second filter is ignored.
|
|
76
76
|
*
|
|
77
|
-
* When
|
|
77
|
+
* When filtering by date, you must use [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).
|
|
78
78
|
*
|
|
79
79
|
* Bookings that are part of a schedule don't have a `sessionId`. Therefore you
|
|
80
80
|
* must use the `sessionId` filter that isn't part of the `query` object to
|
|
81
81
|
* filter bookings for courses.
|
|
82
82
|
*
|
|
83
|
-
*
|
|
84
|
-
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
85
|
-
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging),
|
|
86
|
-
* and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
87
|
-
*
|
|
88
|
-
* When calling Query Extended Bookings, the retrieved data may not contain your most recent changes.
|
|
83
|
+
* When calling `queryExtendedBookings()`, the retrieved data may not contain your most recent changes.
|
|
89
84
|
*/
|
|
90
85
|
function queryExtendedBookings(payload) {
|
|
91
86
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_queryExtendedBookingsRequest, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-reader-v2-extended-booking.http.js","sourceRoot":"","sources":["../../../src/bookings-reader-v2-extended-booking.http.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,sDAAgD;AAQhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,QAAQ,GAAG;IACf,WAAW,EAAE,2BAA2B;IACxC,SAAS,EAAE,2BAA2B;IACtC,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,2BAA2B;IACxC,cAAc,EAAE,iBAAiB;CAClC,CAAC;AACF,MAAM,eAAe,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AACpD,MAAM,gBAAgB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACjD,MAAM,6BAA6B,GAAG,EAAE,CAAC;AACzC,MAAM,8BAA8B,GAAG,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;AAEhF,SAAS,mDAAmD,CAC1D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,qBAAqB,EAAE;YACrB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,IAAA,0BAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"bookings-reader-v2-extended-booking.http.js","sourceRoot":"","sources":["../../../src/bookings-reader-v2-extended-booking.http.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,sDAAgD;AAQhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,QAAQ,GAAG;IACf,WAAW,EAAE,2BAA2B;IACxC,SAAS,EAAE,2BAA2B;IACtC,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,2BAA2B;IACxC,cAAc,EAAE,iBAAiB;CAClC,CAAC;AACF,MAAM,eAAe,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AACpD,MAAM,gBAAgB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACjD,MAAM,6BAA6B,GAAG,EAAE,CAAC;AACzC,MAAM,8BAA8B,GAAG,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;AAEhF,SAAS,mDAAmD,CAC1D,IAA8C;IAE9C,MAAM,gBAAgB,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AC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,uBAAuB,CAAC,OAAO,GAAG,OAAO,CAAC;IAE1C,OAAO,uBAAuB,CAAC;AACjC,CAAC;AAlCD,sDAkCC"}
|
|
@@ -14,7 +14,7 @@ export interface ExtendedBooking {
|
|
|
14
14
|
*/
|
|
15
15
|
allowedActions?: AllowedActions;
|
|
16
16
|
/**
|
|
17
|
-
* Information about
|
|
17
|
+
* Information about attendance. Available only when passing
|
|
18
18
|
* `withBookingAttendanceInfo` as `true`.
|
|
19
19
|
*/
|
|
20
20
|
attendance?: Attendance;
|
|
@@ -549,21 +549,15 @@ export interface Attendance {
|
|
|
549
549
|
* General Information about the booking's attendance.
|
|
550
550
|
*
|
|
551
551
|
* + `NOT_SET`: There is no available attendance information.
|
|
552
|
-
* + `ATTENDED`: At least
|
|
553
|
-
* + `NOT_ATTENDED`: No participant
|
|
552
|
+
* + `ATTENDED`: At least 1 participant attended the session.
|
|
553
|
+
* + `NOT_ATTENDED`: No participant attended the session.
|
|
554
554
|
*/
|
|
555
555
|
status?: AttendanceStatus;
|
|
556
|
-
/**
|
|
557
|
-
* Total number of participants who have that attended the session. Can
|
|
558
|
-
* be greater than `1` for bookings with multiple participants.
|
|
559
|
-
*/
|
|
556
|
+
/** Total number of participants that attended the session. */
|
|
560
557
|
numberOfAttendees?: number;
|
|
561
558
|
}
|
|
562
559
|
export interface QueryExtendedBookingRequest {
|
|
563
|
-
/**
|
|
564
|
-
* Information about filters, paging, and sorting.
|
|
565
|
-
* __Note__: `fields` and `fieldsets` aren't supported.
|
|
566
|
-
*/
|
|
560
|
+
/** Information about filters, paging, and sorting. */
|
|
567
561
|
query?: QueryV2;
|
|
568
562
|
/**
|
|
569
563
|
* Whether information about which actions the customer can perform
|
|
@@ -646,8 +640,8 @@ export interface CursorPaging {
|
|
|
646
640
|
}
|
|
647
641
|
export interface QueryExtendedBookingResponse {
|
|
648
642
|
/**
|
|
649
|
-
* Retrieved bookings
|
|
650
|
-
* the customer can perform
|
|
643
|
+
* Retrieved bookings and additional information about attendance or actions
|
|
644
|
+
* the customer can perform
|
|
651
645
|
*/
|
|
652
646
|
extendedBookings?: ExtendedBooking[];
|
|
653
647
|
/** Paging metadata. */
|
|
@@ -672,10 +666,7 @@ export interface Cursors {
|
|
|
672
666
|
prev?: string | null;
|
|
673
667
|
}
|
|
674
668
|
export interface QueryExtendedBookingsRequest {
|
|
675
|
-
/**
|
|
676
|
-
* Information about filters, paging, and sorting.
|
|
677
|
-
* __Note__: `fields` and `fieldsets` aren't supported.
|
|
678
|
-
*/
|
|
669
|
+
/** Information about filters, paging, and sorting. */
|
|
679
670
|
query: CommonQueryV2;
|
|
680
671
|
/**
|
|
681
672
|
* Whether information about which actions the customer can perform
|
|
@@ -693,8 +684,7 @@ export interface CommonQueryV2 extends CommonQueryV2PagingMethodOneOf {
|
|
|
693
684
|
* "fieldName2":{"$operator":"value2"}
|
|
694
685
|
* }`
|
|
695
686
|
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
696
|
-
*
|
|
697
|
-
* See [Supported Filters](https://bo.wix.com/wix-docs/rest/bookings/bookingsreader-v2---wip/supported-filters)
|
|
687
|
+
* See [Supported Filters](https://www.wix.com/velo/reference/wix-bookings-v2/extendedbookings/supported-filters)
|
|
698
688
|
* for a full list.
|
|
699
689
|
*/
|
|
700
690
|
filter?: Record<string, any> | null;
|
|
@@ -723,19 +713,19 @@ export interface CommonPaging {
|
|
|
723
713
|
}
|
|
724
714
|
export interface QueryExtendedBookingsResponse {
|
|
725
715
|
/**
|
|
726
|
-
* Retrieved bookings
|
|
727
|
-
* the customer can perform
|
|
716
|
+
* Retrieved bookings and additional information, such as information about about the attendance or actions
|
|
717
|
+
* the customer can perform.
|
|
728
718
|
*/
|
|
729
719
|
extendedBookings?: ExtendedBooking[];
|
|
730
720
|
/** Paging metadata. */
|
|
731
721
|
pagingMetadata?: PagingMetadataV2;
|
|
732
722
|
}
|
|
733
723
|
/**
|
|
734
|
-
* Retrieves a list of bookings, given the provided paging, filtering, and sorting.
|
|
724
|
+
* Retrieves a list of bookings, including additional extended information, given the provided paging, filtering, and sorting.
|
|
735
725
|
*
|
|
736
|
-
* Up to 100 bookings can be returned per request.
|
|
726
|
+
* Up to 100 extended bookings can be returned per request.
|
|
737
727
|
*
|
|
738
|
-
*
|
|
728
|
+
* `queryExtendedBookings()` runs with these defaults, which you can override:
|
|
739
729
|
*
|
|
740
730
|
* - `createdDate` sorted in `DESC` order
|
|
741
731
|
* - `cursorPaging.limit` is `50`
|
|
@@ -745,30 +735,25 @@ export interface QueryExtendedBookingsResponse {
|
|
|
745
735
|
* for the bookings. To do so, pass `withBookingAllowedActions` as `true`.
|
|
746
736
|
*
|
|
747
737
|
*
|
|
748
|
-
* For field support see
|
|
749
|
-
* [supported filters](https://
|
|
738
|
+
* For field support, see
|
|
739
|
+
* [supported filters](https://www.wix.com/velo/reference/wix-bookings-v2/extendedbookings/supported-filters)
|
|
750
740
|
* for more information.
|
|
751
741
|
*
|
|
752
|
-
* You can
|
|
753
|
-
* more than once,
|
|
742
|
+
* You can specify a filter only once per query. If you specify a filter
|
|
743
|
+
* more than once, the first filter determines the extended bookings returns and the second filter is ignored.
|
|
754
744
|
*
|
|
755
|
-
* When
|
|
745
|
+
* When filtering by date, you must use [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).
|
|
756
746
|
*
|
|
757
747
|
* Bookings that are part of a schedule don't have a `sessionId`. Therefore you
|
|
758
748
|
* must use the `sessionId` filter that isn't part of the `query` object to
|
|
759
749
|
* filter bookings for courses.
|
|
760
750
|
*
|
|
761
|
-
*
|
|
762
|
-
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
763
|
-
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging),
|
|
764
|
-
* and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
765
|
-
*
|
|
766
|
-
* When calling Query Extended Bookings, the retrieved data may not contain your most recent changes.
|
|
767
|
-
* @param query - Information about filters, paging, and sorting.
|
|
768
|
-
* __Note__: `fields` and `fieldsets` aren't supported.
|
|
751
|
+
* When calling `queryExtendedBookings()`, the retrieved data may not contain your most recent changes.
|
|
769
752
|
* @public
|
|
770
753
|
* @documentationMaturity preview
|
|
771
754
|
* @requiredField query
|
|
755
|
+
* @param query - Information about filters, paging, and sorting.
|
|
756
|
+
* @param options - Additional options for performing the query.
|
|
772
757
|
*/
|
|
773
758
|
export declare function queryExtendedBookings(query: CommonQueryV2, options?: QueryExtendedBookingsOptions): Promise<QueryExtendedBookingsResponse>;
|
|
774
759
|
export interface QueryExtendedBookingsOptions {
|
|
@@ -136,11 +136,11 @@ var SortOrder;
|
|
|
136
136
|
const _queryExtendedBookingsRequest = {};
|
|
137
137
|
const _queryExtendedBookingsResponse = {};
|
|
138
138
|
/**
|
|
139
|
-
* Retrieves a list of bookings, given the provided paging, filtering, and sorting.
|
|
139
|
+
* Retrieves a list of bookings, including additional extended information, given the provided paging, filtering, and sorting.
|
|
140
140
|
*
|
|
141
|
-
* Up to 100 bookings can be returned per request.
|
|
141
|
+
* Up to 100 extended bookings can be returned per request.
|
|
142
142
|
*
|
|
143
|
-
*
|
|
143
|
+
* `queryExtendedBookings()` runs with these defaults, which you can override:
|
|
144
144
|
*
|
|
145
145
|
* - `createdDate` sorted in `DESC` order
|
|
146
146
|
* - `cursorPaging.limit` is `50`
|
|
@@ -150,30 +150,25 @@ const _queryExtendedBookingsResponse = {};
|
|
|
150
150
|
* for the bookings. To do so, pass `withBookingAllowedActions` as `true`.
|
|
151
151
|
*
|
|
152
152
|
*
|
|
153
|
-
* For field support see
|
|
154
|
-
* [supported filters](https://
|
|
153
|
+
* For field support, see
|
|
154
|
+
* [supported filters](https://www.wix.com/velo/reference/wix-bookings-v2/extendedbookings/supported-filters)
|
|
155
155
|
* for more information.
|
|
156
156
|
*
|
|
157
|
-
* You can
|
|
158
|
-
* more than once,
|
|
157
|
+
* You can specify a filter only once per query. If you specify a filter
|
|
158
|
+
* more than once, the first filter determines the extended bookings returns and the second filter is ignored.
|
|
159
159
|
*
|
|
160
|
-
* When
|
|
160
|
+
* When filtering by date, you must use [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).
|
|
161
161
|
*
|
|
162
162
|
* Bookings that are part of a schedule don't have a `sessionId`. Therefore you
|
|
163
163
|
* must use the `sessionId` filter that isn't part of the `query` object to
|
|
164
164
|
* filter bookings for courses.
|
|
165
165
|
*
|
|
166
|
-
*
|
|
167
|
-
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
168
|
-
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging),
|
|
169
|
-
* and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
170
|
-
*
|
|
171
|
-
* When calling Query Extended Bookings, the retrieved data may not contain your most recent changes.
|
|
172
|
-
* @param query - Information about filters, paging, and sorting.
|
|
173
|
-
* __Note__: `fields` and `fieldsets` aren't supported.
|
|
166
|
+
* When calling `queryExtendedBookings()`, the retrieved data may not contain your most recent changes.
|
|
174
167
|
* @public
|
|
175
168
|
* @documentationMaturity preview
|
|
176
169
|
* @requiredField query
|
|
170
|
+
* @param query - Information about filters, paging, and sorting.
|
|
171
|
+
* @param options - Additional options for performing the query.
|
|
177
172
|
*/
|
|
178
173
|
function queryExtendedBookings(query, options) {
|
|
179
174
|
var _a, _b, _c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-reader-v2-extended-booking.universal.js","sourceRoot":"","sources":["../../../src/bookings-reader-v2-extended-booking.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,yHAA2G;AAE3G,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B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B,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,8BAAa,CAAA;IACb,yBAAyB;IACzB,kDAAiC,CAAA;IACjC,wBAAwB;IACxB,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;AACnB,CAAC,EATW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QASxB;AAED;;;;;GAKG;AACH,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,4CAAmB,CAAA;IACnB,0CAAiB,CAAA;IACjB,kDAAyB,CAAA;IACzB,oHAAoH;IACpH,kEAAyC,CAAA;AAC3C,CAAC,EAPW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC;AAiCD,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,qDAAyC,CAAA;IACzC,uBAAW,CAAA;IACX,qCAAyB,CAAA;AAC3B,CAAC,EAJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAInB;AAED,IAAY,KAIX;AAJD,WAAY,KAAK;IACf,4CAAmC,CAAA;IACnC,8BAAqB,CAAA;IACrB,8BAAqB,CAAA;AACvB,CAAC,EAJW,KAAK,GAAL,aAAK,KAAL,aAAK,QAIhB;AAsCD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;
|
|
1
|
+
{"version":3,"file":"bookings-reader-v2-extended-booking.universal.js","sourceRoot":"","sources":["../../../src/bookings-reader-v2-extended-booking.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,yHAA2G;AAE3G,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,C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O,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,OAAO;gBACP,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AA3DD,sDA2DC"}
|
|
@@ -59,6 +59,10 @@ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
|
59
59
|
srcPath: '/_api/bookings/v2/services',
|
|
60
60
|
destPath: '/v2/services',
|
|
61
61
|
},
|
|
62
|
+
{
|
|
63
|
+
srcPath: '/bookings/v2/services',
|
|
64
|
+
destPath: '/v2/services',
|
|
65
|
+
},
|
|
62
66
|
],
|
|
63
67
|
'manage._base_domain_': [
|
|
64
68
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-services-v2-service.http.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAUhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,cAAc,GAAG;IACrB,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;CACzC,CAAC;AACF,MAAM,wBAAwB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACzD,MAAM,sBAAsB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACvD,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,mBAAmB,GAAG,EAAE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Q,CAAC;IAClB,CAAC;IAED,YAAY,CAAC,OAAO,GAAG,OAAO,CAAC;IAE/B,OAAO,YAAY,CAAC;AACtB,CAAC;AAzCD,gCAyCC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,aAAa,CAC3B,OAA6B;IAE7B,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EACrD,qBAAqB,EACrB,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EAAC,sBAAsB,EAAE;QAC/D,QAAQ;QACR,gBAAgB;QAChB,cAAc;QACd,wBAAwB;QACxB,sBAAsB;QACtB,MAAM;QACN,SAAS;QACT,MAAM;QACN,UAAU;QACV,SAAS;QACT,QAAQ;QACR,KAAK;KACN,CAAC,CAAC;IAEH,SAAS,eAAe,CAAC,EAAE,IAAI,EAAO;QACpC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,MAAa;YACrB,GAAG,EAAE,8CAA8C,CAAC;gBAClD,SAAS,EAAE,oBAAoB;gBAC/B,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,eAAe,CAAC,OAAO,GAAG,OAAO,CAAC;IAElC,OAAO,eAAe,CAAC;AACzB,CAAC;AAzCD,sCAyCC"}
|
|
1
|
+
{"version":3,"file":"bookings-services-v2-service.http.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAUhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,Q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AiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,eAAe,CAAC,OAAO,GAAG,OAAO,CAAC;IAElC,OAAO,eAAe,CAAC;AACzB,CAAC;AAzCD,sCAyCC"}
|
|
@@ -14,7 +14,7 @@ import { CalculatePriceRequest, CalculatePriceResponse, PreviewPriceRequest, Pre
|
|
|
14
14
|
* of each line item before
|
|
15
15
|
* the booking is actually created.
|
|
16
16
|
*
|
|
17
|
-
* Use [`Calculate Price`](https://
|
|
17
|
+
* Use [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) to get the base price
|
|
18
18
|
* after the booking is created.
|
|
19
19
|
*
|
|
20
20
|
* Passing line items that belong to different services results in an error.
|
|
@@ -22,11 +22,11 @@ import { CalculatePriceRequest, CalculatePriceResponse, PreviewPriceRequest, Pre
|
|
|
22
22
|
* ## Calculating the previewed price
|
|
23
23
|
*
|
|
24
24
|
* Wix Bookings has its own default pricing logic for previewing the price. You must
|
|
25
|
-
* pass the `serviceId` in the
|
|
26
|
-
* or
|
|
25
|
+
* pass the `serviceId` in the `slot`
|
|
26
|
+
* or `schedule` object to [`Preview Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/preview-price).
|
|
27
27
|
*
|
|
28
28
|
* You cannot call `Preview Price` if you have customized Bookings pricing logic using the
|
|
29
|
-
* [Bookings Pricing Provider SPI](https://
|
|
29
|
+
* [Bookings Pricing Provider SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `Preview Price` if custom pricing
|
|
30
30
|
* logic has been implemented for the site results in an error.
|
|
31
31
|
*/
|
|
32
32
|
export declare function previewPrice(payload: PreviewPriceRequest): RequestOptionsFactory<PreviewPriceResponse>;
|
|
@@ -35,10 +35,10 @@ export declare function previewPrice(payload: PreviewPriceRequest): RequestOptio
|
|
|
35
35
|
*
|
|
36
36
|
*
|
|
37
37
|
*
|
|
38
|
-
* You can call `Calculate Price` after a booking is created. The returned calculated price includes information about each line
|
|
38
|
+
* You can call [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) after a booking is created. The returned calculated price includes information about each line
|
|
39
39
|
* item's price and the booking's total price.
|
|
40
40
|
*
|
|
41
|
-
* You can use [`Preview Price`](https://
|
|
41
|
+
* You can use [`Preview Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/preview-price) to get the base price
|
|
42
42
|
* before a booking is created.
|
|
43
43
|
*
|
|
44
44
|
* The calculated price is the base price that will be used as a basis for charging the customer.
|
|
@@ -48,14 +48,14 @@ export declare function previewPrice(payload: PreviewPriceRequest): RequestOptio
|
|
|
48
48
|
* ## Calculating the price
|
|
49
49
|
*
|
|
50
50
|
* Wix Bookings has its own default pricing logic for calculating the price. When
|
|
51
|
-
* using Wix Bookings' default pricing logic, you must pass the `serviceId` in the
|
|
52
|
-
* or
|
|
51
|
+
* using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
|
|
52
|
+
* or `schedule` object to [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price).
|
|
53
53
|
*
|
|
54
54
|
* Alternatively you can customize the pricing logic using the
|
|
55
|
-
* [Bookings Pricing Provider SPI](https://
|
|
55
|
+
* [Bookings Pricing Provider SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
|
|
56
56
|
* If you integrate with a pricing provider, the customized pricing logic becomes
|
|
57
57
|
* the default logic. This means that, if the pricing provider SPI is implemented,
|
|
58
58
|
* when calling the API's `Calculate Price` endpoint,
|
|
59
|
-
* the [SPI's `Calculate Price` endpoint](https://
|
|
59
|
+
* the [SPI's `Calculate Price` endpoint](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) is used instead.
|
|
60
60
|
*/
|
|
61
61
|
export declare function calculatePrice(payload: CalculatePriceRequest): RequestOptionsFactory<CalculatePriceResponse>;
|
|
@@ -50,12 +50,12 @@ function resolveComWixpressBookingsPricingBookingsPricingServiceUrl(opts) {
|
|
|
50
50
|
],
|
|
51
51
|
'www.wixapis.com': [
|
|
52
52
|
{
|
|
53
|
-
srcPath: '/bookings
|
|
54
|
-
destPath: '',
|
|
53
|
+
srcPath: '/bookings/v2/pricing/v2/pricing',
|
|
54
|
+
destPath: '/v2/pricing',
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
srcPath: '/bookings/v2/pricing',
|
|
58
|
-
destPath: '',
|
|
58
|
+
destPath: '/v2/pricing',
|
|
59
59
|
},
|
|
60
60
|
],
|
|
61
61
|
};
|
|
@@ -75,7 +75,7 @@ function resolveComWixpressBookingsPricingBookingsPricingServiceUrl(opts) {
|
|
|
75
75
|
* of each line item before
|
|
76
76
|
* the booking is actually created.
|
|
77
77
|
*
|
|
78
|
-
* Use [`Calculate Price`](https://
|
|
78
|
+
* Use [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) to get the base price
|
|
79
79
|
* after the booking is created.
|
|
80
80
|
*
|
|
81
81
|
* Passing line items that belong to different services results in an error.
|
|
@@ -83,11 +83,11 @@ function resolveComWixpressBookingsPricingBookingsPricingServiceUrl(opts) {
|
|
|
83
83
|
* ## Calculating the previewed price
|
|
84
84
|
*
|
|
85
85
|
* Wix Bookings has its own default pricing logic for previewing the price. You must
|
|
86
|
-
* pass the `serviceId` in the
|
|
87
|
-
* or
|
|
86
|
+
* pass the `serviceId` in the `slot`
|
|
87
|
+
* or `schedule` object to [`Preview Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/preview-price).
|
|
88
88
|
*
|
|
89
89
|
* You cannot call `Preview Price` if you have customized Bookings pricing logic using the
|
|
90
|
-
* [Bookings Pricing Provider SPI](https://
|
|
90
|
+
* [Bookings Pricing Provider SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `Preview Price` if custom pricing
|
|
91
91
|
* logic has been implemented for the site results in an error.
|
|
92
92
|
*/
|
|
93
93
|
function previewPrice(payload) {
|
|
@@ -119,10 +119,10 @@ exports.previewPrice = previewPrice;
|
|
|
119
119
|
*
|
|
120
120
|
*
|
|
121
121
|
*
|
|
122
|
-
* You can call `Calculate Price` after a booking is created. The returned calculated price includes information about each line
|
|
122
|
+
* You can call [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) after a booking is created. The returned calculated price includes information about each line
|
|
123
123
|
* item's price and the booking's total price.
|
|
124
124
|
*
|
|
125
|
-
* You can use [`Preview Price`](https://
|
|
125
|
+
* You can use [`Preview Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/preview-price) to get the base price
|
|
126
126
|
* before a booking is created.
|
|
127
127
|
*
|
|
128
128
|
* The calculated price is the base price that will be used as a basis for charging the customer.
|
|
@@ -132,15 +132,15 @@ exports.previewPrice = previewPrice;
|
|
|
132
132
|
* ## Calculating the price
|
|
133
133
|
*
|
|
134
134
|
* Wix Bookings has its own default pricing logic for calculating the price. When
|
|
135
|
-
* using Wix Bookings' default pricing logic, you must pass the `serviceId` in the
|
|
136
|
-
* or
|
|
135
|
+
* using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
|
|
136
|
+
* or `schedule` object to [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price).
|
|
137
137
|
*
|
|
138
138
|
* Alternatively you can customize the pricing logic using the
|
|
139
|
-
* [Bookings Pricing Provider SPI](https://
|
|
139
|
+
* [Bookings Pricing Provider SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
|
|
140
140
|
* If you integrate with a pricing provider, the customized pricing logic becomes
|
|
141
141
|
* the default logic. This means that, if the pricing provider SPI is implemented,
|
|
142
142
|
* when calling the API's `Calculate Price` endpoint,
|
|
143
|
-
* the [SPI's `Calculate Price` endpoint](https://
|
|
143
|
+
* the [SPI's `Calculate Price` endpoint](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) is used instead.
|
|
144
144
|
*/
|
|
145
145
|
function calculatePrice(payload) {
|
|
146
146
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_calculatePriceRequest, { _address, _addressLocation, _booking, _contactDetails });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-v2-price-info.http.js","sourceRoot":"","sources":["../../../src/bookings-v2-price-info.http.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,sDAAgD;AAUhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,QAAQ,GAAG;IACf,WAAW,EAAE,2BAA2B;IACxC,SAAS,EAAE,2BAA2B;IACtC,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,2BAA2B;IACxC,cAAc,EAAE,iBAAiB;CAClC,CAAC;AACF,MAAM,gBAAgB,GAAG,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,CAAC;AAChF,MAAM,sBAAsB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACvD,MAAM,uBAAuB,GAAG,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAC5D,MAAM,eAAe,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AACpD,MAAM,oBAAoB,GAAG,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;AACtE,MAAM,qBAAqB,GAAG,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAC1D,MAAM,UAAU,GAAG;IACjB,OAAO,EAAE,6BAA6B;IACtC,eAAe,EAAE,QAAQ;IACzB,gBAAgB,EAAE,kBAAkB;CACrC,CAAC;AAEF,SAAS,0DAA0D,CACjE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,aAAa;aACxB;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,aAAa;aACxB;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"bookings-v2-price-info.http.js","sourceRoot":"","sources":["../../../src/bookings-v2-price-info.http.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,sDAAgD;AAUhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,QAAQ,GAAG;IACf,WAAW,EAAE,2BAA2B;IACxC,SAAS,EAAE,2BAA2B;IACtC,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,2BAA2B;IACxC,cAAc,EAAE,iBAAiB;CAClC,CAAC;AACF,MAAM,gBAAgB,GAAG,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,CAAC;AAChF,MAAM,sBAAsB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACvD,MAAM,uBAAuB,GAAG,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAC5D,MAAM,eAAe,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AACpD,MAAM,oBAAoB,GAAG,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;AACtE,MAAM,qBAAqB,GAAG,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAC1D,MAAM,UAAU,GAAG;IACjB,OAAO,EAAE,6BAA6B;IACtC,eAAe,EAAE,QAAQ;IACzB,gBAAgB,EAAE,kBAAkB;CACrC,CAAC;AAEF,SAAS,0DAA0D,CACjE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,E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C;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,cAAc,CAAC,OAAO,GAAG,OAAO,CAAC;IAEjC,OAAO,cAAc,CAAC;AACxB,CAAC;AA/BD,oCA+BC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,cAAc,CAC5B,OAA8B;IAE9B,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EACrD,sBAAsB,EACtB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,eAAe,EAAE,CAC1D,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EAAC,uBAAuB,EAAE;QAChE,gBAAgB;QAChB,UAAU;KACX,CAAC,CAAC;IAEH,SAAS,gBAAgB,CAAC,EAAE,IAAI,EAAO;QACrC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,MAAa;YACrB,GAAG,EAAE,0DAA0D,CAAC;gBAC9D,SAAS,EAAE,uBAAuB;gBAClC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,gBAAgB,CAAC,OAAO,GAAG,OAAO,CAAC;IAEnC,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AA/BD,wCA+BC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export declare function previewPrice(httpClient: HttpClient): (
|
|
2
|
+
import { BookingLineItem, Booking } from './bookings-v2-price-info.universal';
|
|
3
|
+
export declare function previewPrice(httpClient: HttpClient): (bookingLineItems: BookingLineItem[]) => Promise<import("./bookings-v2-price-info.universal").PreviewPriceResponse>;
|
|
4
4
|
export declare function calculatePrice(httpClient: HttpClient): (booking: Booking) => Promise<import("./bookings-v2-price-info.universal").CalculatePriceResponse>;
|
|
5
5
|
export { LocationType, ValueType, BookingStatus, PaymentStatus, SelectedPaymentOption, Platform, Actor, IdentityType, } from './bookings-v2-price-info.universal';
|
|
6
|
-
export { PriceInfo, PriceInfoTotalPriceOneOf, BookingLineItem, ServiceChoice, ServiceChoiceChoiceOneOf, PreviewPriceRequest, PreviewPriceResponse, CalculatePriceRequest, Booking, BookingParticipantsInfoOneOf, BookedEntity, BookedEntityItemOneOf, BookedSlot, BookedResource, Location, BookedSchedule, ContactDetails, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, CustomFormField, BookingSource, ParticipantNotification, IdentificationData, IdentificationDataIdOneOf, FlowControlSettings, ExtendedFields, ParticipantChoices, ServiceChoices, CalculatePriceResponse,
|
|
6
|
+
export { PriceInfo, PriceInfoTotalPriceOneOf, BookingLineItem, ServiceChoice, ServiceChoiceChoiceOneOf, PreviewPriceRequest, PreviewPriceResponse, CalculatePriceRequest, Booking, BookingParticipantsInfoOneOf, BookedEntity, BookedEntityItemOneOf, BookedSlot, BookedResource, Location, BookedSchedule, ContactDetails, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, CustomFormField, BookingSource, ParticipantNotification, IdentificationData, IdentificationDataIdOneOf, FlowControlSettings, ExtendedFields, ParticipantChoices, ServiceChoices, CalculatePriceResponse, } from './bookings-v2-price-info.universal';
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.IdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.LocationType = exports.calculatePrice = exports.previewPrice = void 0;
|
|
4
4
|
const bookings_v2_price_info_universal_1 = require("./bookings-v2-price-info.universal");
|
|
5
5
|
function previewPrice(httpClient) {
|
|
6
|
-
return (
|
|
6
|
+
return (bookingLineItems) => (0, bookings_v2_price_info_universal_1.previewPrice)(bookingLineItems,
|
|
7
7
|
// @ts-ignore
|
|
8
8
|
{ httpClient });
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-v2-price-info.public.js","sourceRoot":"","sources":["../../../src/bookings-v2-price-info.public.ts"],"names":[],"mappings":";;;AACA,yFAK4C;AAE5C,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"bookings-v2-price-info.public.js","sourceRoot":"","sources":["../../../src/bookings-v2-price-info.public.ts"],"names":[],"mappings":";;;AACA,yFAK4C;AAE5C,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,gBAAmC,EAAE,EAAE,CAC7C,IAAA,+CAAqB,EACnB,gBAAgB;IAChB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,oCAOC;AAED,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,OAAgB,EAAE,EAAE,CAC1B,IAAA,iDAAuB,EACrB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,wCAOC;AAED,uFAS4C;AAR1C,gIAAA,YAAY,OAAA;AACZ,6HAAA,SAAS,OAAA;AACT,iIAAA,aAAa,OAAA;AACb,iIAAA,aAAa,OAAA;AACb,yIAAA,qBAAqB,OAAA;AACrB,4HAAA,QAAQ,OAAA;AACR,yHAAA,KAAK,OAAA;AACL,gIAAA,YAAY,OAAA"}
|
|
@@ -46,7 +46,7 @@ export interface BookingLineItem {
|
|
|
46
46
|
* Required when not using Wix Booking's default pricing logic.
|
|
47
47
|
*
|
|
48
48
|
* Optional when using custom pricing logic defined with the
|
|
49
|
-
* [Bookings Pricing Provider SPI](https://
|
|
49
|
+
* [Bookings Pricing Provider SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
|
|
50
50
|
*/
|
|
51
51
|
serviceId?: string | null;
|
|
52
52
|
/** Resource ID. Required for services of type appointment or class. */
|
|
@@ -92,7 +92,7 @@ export interface ServiceChoiceChoiceOneOf {
|
|
|
92
92
|
}
|
|
93
93
|
export interface PreviewPriceRequest {
|
|
94
94
|
/** List of line items to preview the price for. */
|
|
95
|
-
bookingLineItems
|
|
95
|
+
bookingLineItems: BookingLineItem[];
|
|
96
96
|
}
|
|
97
97
|
export interface PreviewPriceResponse {
|
|
98
98
|
/** Information about each line item's price and the estimated total price based on the line items. */
|