@wix/bookings 1.0.217 → 1.0.219
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/src/bookings-reader-v2-extended-booking.public.d.ts +2 -2
- package/build/cjs/src/bookings-reader-v2-extended-booking.public.js +2 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.public.js.map +1 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.types.d.ts +15 -0
- package/build/cjs/src/bookings-reader-v2-extended-booking.types.js +6 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.types.js.map +1 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.d.ts +15 -0
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js +6 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.public.d.ts +2 -2
- package/build/cjs/src/bookings-v2-booking.public.js +2 -1
- package/build/cjs/src/bookings-v2-booking.public.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.types.d.ts +58 -36
- package/build/cjs/src/bookings-v2-booking.types.js +6 -1
- package/build/cjs/src/bookings-v2-booking.types.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.universal.d.ts +58 -36
- package/build/cjs/src/bookings-v2-booking.universal.js +6 -1
- package/build/cjs/src/bookings-v2-booking.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.public.d.ts +2 -2
- package/build/cjs/src/bookings-v2-price-info.public.js +2 -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 +15 -0
- package/build/cjs/src/bookings-v2-price-info.types.js +6 -1
- package/build/cjs/src/bookings-v2-price-info.types.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.universal.d.ts +15 -0
- package/build/cjs/src/bookings-v2-price-info.universal.js +6 -1
- package/build/cjs/src/bookings-v2-price-info.universal.js.map +1 -1
- package/build/es/src/bookings-reader-v2-extended-booking.public.d.ts +2 -2
- package/build/es/src/bookings-reader-v2-extended-booking.public.js +1 -1
- package/build/es/src/bookings-reader-v2-extended-booking.public.js.map +1 -1
- package/build/es/src/bookings-reader-v2-extended-booking.types.d.ts +15 -0
- package/build/es/src/bookings-reader-v2-extended-booking.types.js +5 -0
- package/build/es/src/bookings-reader-v2-extended-booking.types.js.map +1 -1
- package/build/es/src/bookings-reader-v2-extended-booking.universal.d.ts +15 -0
- package/build/es/src/bookings-reader-v2-extended-booking.universal.js +5 -0
- package/build/es/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
- package/build/es/src/bookings-v2-booking.public.d.ts +2 -2
- package/build/es/src/bookings-v2-booking.public.js +1 -1
- package/build/es/src/bookings-v2-booking.public.js.map +1 -1
- package/build/es/src/bookings-v2-booking.types.d.ts +58 -36
- package/build/es/src/bookings-v2-booking.types.js +5 -0
- package/build/es/src/bookings-v2-booking.types.js.map +1 -1
- package/build/es/src/bookings-v2-booking.universal.d.ts +58 -36
- package/build/es/src/bookings-v2-booking.universal.js +5 -0
- package/build/es/src/bookings-v2-booking.universal.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.public.d.ts +2 -2
- 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 +15 -0
- package/build/es/src/bookings-v2-price-info.types.js +5 -0
- package/build/es/src/bookings-v2-price-info.types.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.universal.d.ts +15 -0
- package/build/es/src/bookings-v2-price-info.universal.js +5 -0
- package/build/es/src/bookings-v2-price-info.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -4,5 +4,5 @@ export declare const __metadata: {
|
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
6
6
|
export declare function queryExtendedBookings(httpClient: HttpClient): (query: CommonQueryV2, options?: QueryExtendedBookingsOptions | undefined) => Promise<import("./bookings-reader-v2-extended-booking.universal").QueryExtendedBookingsResponse>;
|
|
7
|
-
export { AttendanceStatus, LocationType, ValueType, BookingStatus, PaymentStatus, SelectedPaymentOption, Platform, Actor, IdentityType, SortOrder, } from './bookings-reader-v2-extended-booking.universal';
|
|
8
|
-
export { ExtendedBooking, Booking, BookingParticipantsInfoOneOf, BookedEntity, BookedEntityItemOneOf, BookedSlot, BookedResource, Location, BookedSchedule, ContactDetails, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, CustomFormField, BookingSource, ParticipantNotification, IdentificationData, IdentificationDataIdOneOf, FlowControlSettings, ExtendedFields, ParticipantChoices, ServiceChoices, ServiceChoice, ServiceChoiceChoiceOneOf, AllowedActions, Attendance, QueryExtendedBookingRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryExtendedBookingResponse, PagingMetadataV2, Cursors, QueryExtendedBookingsRequest, CommonQueryV2, CommonQueryV2PagingMethodOneOf, CommonPaging, QueryExtendedBookingsResponse, QueryExtendedBookingsOptions, } from './bookings-reader-v2-extended-booking.universal';
|
|
7
|
+
export { AttendanceStatus, LocationType, Type, ValueType, BookingStatus, PaymentStatus, SelectedPaymentOption, Platform, Actor, IdentityType, SortOrder, } from './bookings-reader-v2-extended-booking.universal';
|
|
8
|
+
export { ExtendedBooking, Booking, BookingParticipantsInfoOneOf, BookedEntity, BookedEntityItemOneOf, BookedSlot, BookedResource, Location, GroupedResources, BookedSchedule, ContactDetails, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, CustomFormField, BookingSource, ParticipantNotification, IdentificationData, IdentificationDataIdOneOf, FlowControlSettings, ExtendedFields, ParticipantChoices, ServiceChoices, ServiceChoice, ServiceChoiceChoiceOneOf, AllowedActions, Attendance, QueryExtendedBookingRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryExtendedBookingResponse, PagingMetadataV2, Cursors, QueryExtendedBookingsRequest, CommonQueryV2, CommonQueryV2PagingMethodOneOf, CommonPaging, QueryExtendedBookingsResponse, QueryExtendedBookingsOptions, } from './bookings-reader-v2-extended-booking.universal';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SortOrder = exports.IdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.LocationType = exports.AttendanceStatus = exports.queryExtendedBookings = exports.__metadata = void 0;
|
|
3
|
+
exports.SortOrder = exports.IdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.Type = exports.LocationType = exports.AttendanceStatus = exports.queryExtendedBookings = exports.__metadata = void 0;
|
|
4
4
|
const bookings_reader_v2_extended_booking_universal_1 = require("./bookings-reader-v2-extended-booking.universal");
|
|
5
5
|
exports.__metadata = { PACKAGE_NAME: '@wix/bookings' };
|
|
6
6
|
function queryExtendedBookings(httpClient) {
|
|
@@ -12,6 +12,7 @@ exports.queryExtendedBookings = queryExtendedBookings;
|
|
|
12
12
|
var bookings_reader_v2_extended_booking_universal_2 = require("./bookings-reader-v2-extended-booking.universal");
|
|
13
13
|
Object.defineProperty(exports, "AttendanceStatus", { enumerable: true, get: function () { return bookings_reader_v2_extended_booking_universal_2.AttendanceStatus; } });
|
|
14
14
|
Object.defineProperty(exports, "LocationType", { enumerable: true, get: function () { return bookings_reader_v2_extended_booking_universal_2.LocationType; } });
|
|
15
|
+
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return bookings_reader_v2_extended_booking_universal_2.Type; } });
|
|
15
16
|
Object.defineProperty(exports, "ValueType", { enumerable: true, get: function () { return bookings_reader_v2_extended_booking_universal_2.ValueType; } });
|
|
16
17
|
Object.defineProperty(exports, "BookingStatus", { enumerable: true, get: function () { return bookings_reader_v2_extended_booking_universal_2.BookingStatus; } });
|
|
17
18
|
Object.defineProperty(exports, "PaymentStatus", { enumerable: true, get: function () { return bookings_reader_v2_extended_booking_universal_2.PaymentStatus; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-reader-v2-extended-booking.public.js","sourceRoot":"","sources":["../../../src/bookings-reader-v2-extended-booking.public.ts"],"names":[],"mappings":";;;AACA,mHAIyD;AAE5C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,qBAAqB,CAAC,UAAsB;IAC1D,OAAO,CAAC,KAAoB,EAAE,OAAsC,EAAE,EAAE,CACtE,IAAA,qEAA8B,EAC5B,KAAK,EACL,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,sDAQC;AAED,
|
|
1
|
+
{"version":3,"file":"bookings-reader-v2-extended-booking.public.js","sourceRoot":"","sources":["../../../src/bookings-reader-v2-extended-booking.public.ts"],"names":[],"mappings":";;;AACA,mHAIyD;AAE5C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,qBAAqB,CAAC,UAAsB;IAC1D,OAAO,CAAC,KAAoB,EAAE,OAAsC,EAAE,EAAE,CACtE,IAAA,qEAA8B,EAC5B,KAAK,EACL,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,sDAQC;AAED,iHAYyD;AAXvD,iJAAA,gBAAgB,OAAA;AAChB,6IAAA,YAAY,OAAA;AACZ,qIAAA,IAAI,OAAA;AACJ,0IAAA,SAAS,OAAA;AACT,8IAAA,aAAa,OAAA;AACb,8IAAA,aAAa,OAAA;AACb,sJAAA,qBAAqB,OAAA;AACrB,yIAAA,QAAQ,OAAA;AACR,sIAAA,KAAK,OAAA;AACL,6IAAA,YAAY,OAAA;AACZ,0IAAA,SAAS,OAAA"}
|
|
@@ -177,6 +177,11 @@ export interface BookedSlot {
|
|
|
177
177
|
resource?: BookedResource;
|
|
178
178
|
/** Location where the slot's session takes place. */
|
|
179
179
|
location?: Location;
|
|
180
|
+
/**
|
|
181
|
+
* The selected grouped resources the UoU choose during book/reschedule flow, either specific resources or any resources in each group.
|
|
182
|
+
* When `DO_NOT_CARE` is provided, the given resources are ignored.
|
|
183
|
+
*/
|
|
184
|
+
flowSelectedResources?: GroupedResources[];
|
|
180
185
|
}
|
|
181
186
|
export interface BookedResource {
|
|
182
187
|
/** Booked resource ID. */
|
|
@@ -213,6 +218,16 @@ export declare enum LocationType {
|
|
|
213
218
|
OWNER_CUSTOM = "OWNER_CUSTOM",
|
|
214
219
|
CUSTOM = "CUSTOM"
|
|
215
220
|
}
|
|
221
|
+
export interface GroupedResources {
|
|
222
|
+
resourceGroupId?: string | null;
|
|
223
|
+
type?: Type;
|
|
224
|
+
/** list of at most 10 resources, that can booked with this slot */
|
|
225
|
+
resourceIds?: string[];
|
|
226
|
+
}
|
|
227
|
+
export declare enum Type {
|
|
228
|
+
DO_NOT_CARE = "DO_NOT_CARE",
|
|
229
|
+
SPECIFIC_RESOURCES = "SPECIFIC_RESOURCES"
|
|
230
|
+
}
|
|
216
231
|
export interface BookedSchedule {
|
|
217
232
|
/** Schedule ID. */
|
|
218
233
|
scheduleId?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SortOrder = exports.IdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.LocationType = exports.AttendanceStatus = void 0;
|
|
3
|
+
exports.SortOrder = exports.IdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.Type = exports.LocationType = exports.AttendanceStatus = void 0;
|
|
4
4
|
var AttendanceStatus;
|
|
5
5
|
(function (AttendanceStatus) {
|
|
6
6
|
AttendanceStatus["NOT_SET"] = "NOT_SET";
|
|
@@ -14,6 +14,11 @@ var LocationType;
|
|
|
14
14
|
LocationType["OWNER_CUSTOM"] = "OWNER_CUSTOM";
|
|
15
15
|
LocationType["CUSTOM"] = "CUSTOM";
|
|
16
16
|
})(LocationType = exports.LocationType || (exports.LocationType = {}));
|
|
17
|
+
var Type;
|
|
18
|
+
(function (Type) {
|
|
19
|
+
Type["DO_NOT_CARE"] = "DO_NOT_CARE";
|
|
20
|
+
Type["SPECIFIC_RESOURCES"] = "SPECIFIC_RESOURCES";
|
|
21
|
+
})(Type = exports.Type || (exports.Type = {}));
|
|
17
22
|
var ValueType;
|
|
18
23
|
(function (ValueType) {
|
|
19
24
|
/** Short text. This is the default value type. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-reader-v2-extended-booking.types.js","sourceRoot":"","sources":["../../../src/bookings-reader-v2-extended-booking.types.ts"],"names":[],"mappings":";;;AAgBA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,iDAA6B,CAAA;AAC/B,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;
|
|
1
|
+
{"version":3,"file":"bookings-reader-v2-extended-booking.types.js","sourceRoot":"","sources":["../../../src/bookings-reader-v2-extended-booking.types.ts"],"names":[],"mappings":";;;AAgBA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,iDAA6B,CAAA;AAC/B,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AA2MD,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AASD,IAAY,IAGX;AAHD,WAAY,IAAI;IACd,mCAA2B,CA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;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;AA6KD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
|
|
@@ -183,6 +183,11 @@ export interface BookedSlot {
|
|
|
183
183
|
resource?: BookedResource;
|
|
184
184
|
/** Location where the slot's session takes place. */
|
|
185
185
|
location?: Location;
|
|
186
|
+
/**
|
|
187
|
+
* The selected grouped resources the UoU choose during book/reschedule flow, either specific resources or any resources in each group.
|
|
188
|
+
* When `DO_NOT_CARE` is provided, the given resources are ignored.
|
|
189
|
+
*/
|
|
190
|
+
flowSelectedResources?: GroupedResources[];
|
|
186
191
|
}
|
|
187
192
|
export interface BookedResource {
|
|
188
193
|
/** Booked resource ID. */
|
|
@@ -219,6 +224,16 @@ export declare enum LocationType {
|
|
|
219
224
|
OWNER_CUSTOM = "OWNER_CUSTOM",
|
|
220
225
|
CUSTOM = "CUSTOM"
|
|
221
226
|
}
|
|
227
|
+
export interface GroupedResources {
|
|
228
|
+
resourceGroupId?: string | null;
|
|
229
|
+
type?: Type;
|
|
230
|
+
/** list of at most 10 resources, that can booked with this slot */
|
|
231
|
+
resourceIds?: string[];
|
|
232
|
+
}
|
|
233
|
+
export declare enum Type {
|
|
234
|
+
DO_NOT_CARE = "DO_NOT_CARE",
|
|
235
|
+
SPECIFIC_RESOURCES = "SPECIFIC_RESOURCES"
|
|
236
|
+
}
|
|
222
237
|
export interface BookedSchedule {
|
|
223
238
|
/** Schedule ID. */
|
|
224
239
|
scheduleId?: string;
|
|
@@ -28,7 +28,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.queryExtendedBookings = exports.SortOrder = exports.IdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.LocationType = exports.AttendanceStatus = exports.__debug = void 0;
|
|
31
|
+
exports.queryExtendedBookings = exports.SortOrder = exports.IdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.Type = exports.LocationType = exports.AttendanceStatus = exports.__debug = void 0;
|
|
32
32
|
const velo_1 = require("@wix/metro-runtime/velo");
|
|
33
33
|
const ambassadorWixBookingsReaderV2ExtendedBooking = __importStar(require("./bookings-reader-v2-extended-booking.http"));
|
|
34
34
|
let __verbose = false;
|
|
@@ -59,6 +59,11 @@ var LocationType;
|
|
|
59
59
|
LocationType["OWNER_CUSTOM"] = "OWNER_CUSTOM";
|
|
60
60
|
LocationType["CUSTOM"] = "CUSTOM";
|
|
61
61
|
})(LocationType = exports.LocationType || (exports.LocationType = {}));
|
|
62
|
+
var Type;
|
|
63
|
+
(function (Type) {
|
|
64
|
+
Type["DO_NOT_CARE"] = "DO_NOT_CARE";
|
|
65
|
+
Type["SPECIFIC_RESOURCES"] = "SPECIFIC_RESOURCES";
|
|
66
|
+
})(Type = exports.Type || (exports.Type = {}));
|
|
62
67
|
var ValueType;
|
|
63
68
|
(function (ValueType) {
|
|
64
69
|
/** Short text. This is the default value type. */
|
|
@@ -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,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAkB5B,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,iDAA6B,CAAA;AAC/B,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;
|
|
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,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC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,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"}
|
|
@@ -12,5 +12,5 @@ export declare function declineBooking(httpClient: HttpClient): (bookingId: stri
|
|
|
12
12
|
export declare function cancelBooking(httpClient: HttpClient): (bookingId: string, options: CancelBookingOptions) => Promise<import("./bookings-v2-booking.universal").CancelBookingResponse>;
|
|
13
13
|
export declare function updateNumberOfParticipants(httpClient: HttpClient): (bookingId: string, options: UpdateNumberOfParticipantsOptions) => Promise<import("./bookings-v2-booking.universal").UpdateNumberOfParticipantsResponse>;
|
|
14
14
|
export declare function confirmOrDeclineBooking(httpClient: HttpClient): (bookingId: string, options?: ConfirmOrDeclineBookingOptions | undefined) => Promise<import("./bookings-v2-booking.universal").ConfirmOrDeclineBookingResponse>;
|
|
15
|
-
export { LocationType, ValueType, BookingStatus, PaymentStatus, SelectedPaymentOption, Platform, Actor, IdentificationDataIdentityType, IdentityType, LocationLocationType, SortOrder, } from './bookings-v2-booking.universal';
|
|
16
|
-
export { Booking, BookingParticipantsInfoOneOf, BookedEntity, BookedEntityItemOneOf, BookedSlot, BookedResource, Location, BookedSchedule, ContactDetails, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, CustomFormField, BookingSource, ParticipantNotification, CommonIdentificationData, CommonIdentificationDataIdOneOf, FlowControlSettings, ExtendedFields, ParticipantChoices, ServiceChoices, ServiceChoice, ServiceChoiceChoiceOneOf, CreateGroupedBookingsRequest, CreateBookingFlowControlSettings, CreateGroupedBookingsResponse, BookingResult, GetGroupedBookingsAvailabilityRequest, GetGroupedBookingsAvailabilityResponse, BookingPolicyViolations, BookingPolicySettings, CancelGroupedBookingsRequest, CancelBookingFlowControlSettings, CancelGroupedBookingsResponse, BookingCanceled, IdentificationData, IdentificationDataIdOneOf, RescheduleGroupedBookingsRequest, V2Slot, SlotSlotResource, SlotLocation, RescheduleBookingInfo, RescheduleBookingInfoParticipantsInfoOneOf, RescheduleBookingFlowControlSettings, RescheduleGroupedBookingsResponse, BookingRescheduled, BookingRescheduledPreviousParticipantsInfoOneOf, ConfirmGroupedBookingsRequest, BookingInfo, ConfirmGroupedBookingsResponse, BookingConfirmed, DeclineGroupedBookingsRequest, DeclineGroupedBookingsResponse, BookingDeclined,
|
|
15
|
+
export { LocationType, Type, ValueType, BookingStatus, PaymentStatus, SelectedPaymentOption, Platform, Actor, IdentificationDataIdentityType, IdentityType, LocationLocationType, SortOrder, } from './bookings-v2-booking.universal';
|
|
16
|
+
export { Booking, BookingParticipantsInfoOneOf, BookedEntity, BookedEntityItemOneOf, BookedSlot, BookedResource, Location, GroupedResources, BookedSchedule, ContactDetails, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, CustomFormField, BookingSource, ParticipantNotification, CommonIdentificationData, CommonIdentificationDataIdOneOf, FlowControlSettings, ExtendedFields, ParticipantChoices, ServiceChoices, ServiceChoice, ServiceChoiceChoiceOneOf, CreateGroupedBookingsRequest, CreateBookingFlowControlSettings, CreateGroupedBookingsResponse, BookingResult, GetGroupedBookingsAvailabilityRequest, GetGroupedBookingsAvailabilityResponse, BookingPolicyViolations, BookingPolicySettings, CancelGroupedBookingsRequest, CancelBookingFlowControlSettings, CancelGroupedBookingsResponse, BookingCanceled, IdentificationData, IdentificationDataIdOneOf, RescheduleGroupedBookingsRequest, V2Slot, SlotSlotResource, SlotLocation, RescheduleBookingInfo, RescheduleBookingInfoParticipantsInfoOneOf, RescheduleBookingFlowControlSettings, RescheduleGroupedBookingsResponse, BookingRescheduled, BookingRescheduledPreviousParticipantsInfoOneOf, ConfirmGroupedBookingsRequest, BookingInfo, ConfirmGroupedBookingsResponse, BookingConfirmed, DeclineGroupedBookingsRequest, DeclineGroupedBookingsResponse, BookingDeclined, BulkCalculateGroupedBookingsAllowedActionsRequest, BulkCalculateGroupedBookingsAllowedActionsResponse, BulkCalculateAllowedActionsResult, ItemMetadata, ApplicationError, AllowedActions, BulkActionMetadata, SplitGroupedBookingsRequest, SplitGroupedBookingsResponse, AddToGroupRequest, AddToGroupResponse, RemoveFromGroupRequest, RemoveFromGroupResponse, BookingChanged, CreateBookingRequest, CreateBookingResponse, UpdateBookingRequest, UpdateBookingResponse, LegacyCreateBookingRequest, LegacyCreateBookingResponse, BulkUpdateBookingRequest, MaskedBooking, BulkUpdateBookingResponse, BulkCreateBookingRequest, CreateBookingInfo, BulkCreateBookingResponse, BulkBookingResult, RescheduleBookingRequest, RescheduleBookingRequestParticipantsInfoOneOf, RescheduleBookingResponse, BulkRescheduleBookingRequest, BulkRescheduleBookingRequestBooking, SlotBookings, BulkRescheduleBookingResponse, BulkUpdateBookedScheduleRequest, BookingDetails, BulkUpdateBookedScheduleResponse, QueryBookingsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryBookingsResponse, PagingMetadataV2, Cursors, ConfirmRequest, ConfirmResponse, ConfirmBookingRequest, ConfirmBookingResponse, PartySizeRequest, PartySizeRequestPartySizeForOneOf, PartySizeResponse, ConsistentQueryBookingsRequest, ConsistentQueryBookingsResponse, SetBookingSessionIdRequest, SetBookingSessionIdResponse, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, DeclineBookingRequest, DeclineBookingResponse, CancelBookingRequest, CancelBookingResponse, UpdateNumberOfParticipantsRequest, UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, UpdateNumberOfParticipantsResponse, NumberOfParticipantsUpdated, NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf, CalculateAllowedActionsRequest, CalculateAllowedActionsResponse, BulkCalculateAllowedActionsRequest, BulkCalculateAllowedActionsResponse, GetSlotAvailabilityRequest, GetSlotAvailabilityResponse, SlotAvailability, WaitingList, GetScheduleAvailabilityRequest, GetScheduleAvailabilityResponse, ScheduleAvailability, ConfirmOrDeclineBookingRequest, ConfirmOrDeclineBookingResponse, V2CreateBookingRequest, V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf, Slot, SlotResource, CreateBookingRequestFlowControlSettings, V2CreateBookingResponse, V2CancelBookingRequest, V2CancelBookingRequestFlowControlSettings, V2CancelBookingResponse, V2RescheduleBookingRequest, V2RescheduleBookingRequestParticipantsInfoOneOf, V2RescheduleBookingRequestFlowControlSettings, V2RescheduleBookingResponse, V2ConfirmBookingRequest, V2ConfirmBookingResponse, V2DeclineBookingRequest, V2DeclineBookingResponse, V2UpdateNumberOfParticipantsRequest, V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, V2UpdateNumberOfParticipantsResponse, CreateBookingOptions, BulkCreateBookingOptions, RescheduleBookingOptions, ConfirmBookingOptions, UpdateExtendedFieldsOptions, DeclineBookingOptions, CancelBookingOptions, UpdateNumberOfParticipantsOptions, ConfirmOrDeclineBookingOptions, } from './bookings-v2-booking.universal';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SortOrder = exports.LocationLocationType = exports.IdentityType = exports.IdentificationDataIdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.LocationType = exports.confirmOrDeclineBooking = exports.updateNumberOfParticipants = exports.cancelBooking = exports.declineBooking = exports.updateExtendedFields = exports.confirmBooking = exports.rescheduleBooking = exports.bulkCreateBooking = exports.createBooking = exports.__metadata = void 0;
|
|
3
|
+
exports.SortOrder = exports.LocationLocationType = exports.IdentityType = exports.IdentificationDataIdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.Type = exports.LocationType = exports.confirmOrDeclineBooking = exports.updateNumberOfParticipants = exports.cancelBooking = exports.declineBooking = exports.updateExtendedFields = exports.confirmBooking = exports.rescheduleBooking = exports.bulkCreateBooking = exports.createBooking = exports.__metadata = void 0;
|
|
4
4
|
const bookings_v2_booking_universal_1 = require("./bookings-v2-booking.universal");
|
|
5
5
|
exports.__metadata = { PACKAGE_NAME: '@wix/bookings' };
|
|
6
6
|
function createBooking(httpClient) {
|
|
@@ -59,6 +59,7 @@ function confirmOrDeclineBooking(httpClient) {
|
|
|
59
59
|
exports.confirmOrDeclineBooking = confirmOrDeclineBooking;
|
|
60
60
|
var bookings_v2_booking_universal_2 = require("./bookings-v2-booking.universal");
|
|
61
61
|
Object.defineProperty(exports, "LocationType", { enumerable: true, get: function () { return bookings_v2_booking_universal_2.LocationType; } });
|
|
62
|
+
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return bookings_v2_booking_universal_2.Type; } });
|
|
62
63
|
Object.defineProperty(exports, "ValueType", { enumerable: true, get: function () { return bookings_v2_booking_universal_2.ValueType; } });
|
|
63
64
|
Object.defineProperty(exports, "BookingStatus", { enumerable: true, get: function () { return bookings_v2_booking_universal_2.BookingStatus; } });
|
|
64
65
|
Object.defineProperty(exports, "PaymentStatus", { enumerable: true, get: function () { return bookings_v2_booking_universal_2.PaymentStatus; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-v2-booking.public.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking.public.ts"],"names":[],"mappings":";;;AACA,mFAsByC;AAE5B,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,OAAgB,EAAE,OAA8B,EAAE,EAAE,CAC1D,IAAA,6CAAsB,EACpB,OAAO,EACP,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,sCAQC;AAED,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CACL,kBAAuC,EACvC,OAAkC,EAClC,EAAE,CACF,IAAA,iDAA0B,EACxB,kBAA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E,CACvE,IAAA,0DAAmC,EACjC,SAAS,EACT,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,gEAQC;AAED,SAAgB,uBAAuB,CAAC,UAAsB;IAC5D,OAAO,CAAC,SAAiB,EAAE,OAAwC,EAAE,EAAE,CACrE,IAAA,uDAAgC,EAC9B,SAAS,EACT,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,0DAQC;AAED,
|
|
1
|
+
{"version":3,"file":"bookings-v2-booking.public.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking.public.ts"],"names":[],"mappings":";;;AACA,mFAsByC;AAE5B,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,OAAgB,EAAE,OAA8B,EAAE,EAAE,CAC1D,IAAA,6CAAsB,EACpB,OAAO,EACP,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,sCAQC;AAED,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CACL,kBAAuC,EACvC,OAAkC,EAClC,EAAE,CACF,IAAA,iDAA0B,EACxB,kBAAkB,EAClB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAXD,8CAWC;AAED,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CAAC,SAAiB,EAAE,IAAY,EAAE,OAAiC,EAAE,EAAE,CAC5E,IAAA,iDAA0B,EACxB,SAAS,EACT,IAAI,EACJ,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,8CASC;AAED,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CACL,SAAiB,EACjB,QAAuB,EACvB,OAA+B,EAC/B,EAAE,CACF,IAAA,8CAAuB,EACrB,SAAS,EACT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A,aAAa,OAAA;AACb,sIAAA,qBAAqB,OAAA;AACrB,yHAAA,QAAQ,OAAA;AACR,sHAAA,KAAK,OAAA;AACL,+IAAA,8BAA8B,OAAA;AAC9B,6HAAA,YAAY,OAAA;AACZ,qIAAA,oBAAoB,OAAA;AACpB,0HAAA,SAAS,OAAA"}
|
|
@@ -157,6 +157,11 @@ export interface BookedSlot {
|
|
|
157
157
|
resource?: BookedResource;
|
|
158
158
|
/** Location where the slot's session takes place. */
|
|
159
159
|
location?: Location;
|
|
160
|
+
/**
|
|
161
|
+
* The selected grouped resources the UoU choose during book/reschedule flow, either specific resources or any resources in each group.
|
|
162
|
+
* When `DO_NOT_CARE` is provided, the given resources are ignored.
|
|
163
|
+
*/
|
|
164
|
+
flowSelectedResources?: GroupedResources[];
|
|
160
165
|
}
|
|
161
166
|
export interface BookedResource {
|
|
162
167
|
/** Booked resource ID. */
|
|
@@ -193,6 +198,16 @@ export declare enum LocationType {
|
|
|
193
198
|
OWNER_CUSTOM = "OWNER_CUSTOM",
|
|
194
199
|
CUSTOM = "CUSTOM"
|
|
195
200
|
}
|
|
201
|
+
export interface GroupedResources {
|
|
202
|
+
resourceGroupId?: string | null;
|
|
203
|
+
type?: Type;
|
|
204
|
+
/** list of at most 10 resources, that can booked with this slot */
|
|
205
|
+
resourceIds?: string[];
|
|
206
|
+
}
|
|
207
|
+
export declare enum Type {
|
|
208
|
+
DO_NOT_CARE = "DO_NOT_CARE",
|
|
209
|
+
SPECIFIC_RESOURCES = "SPECIFIC_RESOURCES"
|
|
210
|
+
}
|
|
196
211
|
export interface BookedSchedule {
|
|
197
212
|
/** Schedule ID. */
|
|
198
213
|
scheduleId?: string;
|
|
@@ -715,6 +730,12 @@ export interface V2Slot {
|
|
|
715
730
|
resource?: SlotSlotResource;
|
|
716
731
|
/** Geographic location of the slot. */
|
|
717
732
|
location?: SlotLocation;
|
|
733
|
+
/**
|
|
734
|
+
* The selected grouped resources the UoU choose during book/reschedule flow, either specific resources or any resources in each group.
|
|
735
|
+
* When `DO_NOT_CARE` is provided, the given resources are ignored.
|
|
736
|
+
* In the context of GetSlotAvailabilityResponse, it will hold the chosen resources from the V2Availability slot
|
|
737
|
+
*/
|
|
738
|
+
flowSelectedResources?: GroupedResources[];
|
|
718
739
|
}
|
|
719
740
|
export declare enum LocationLocationType {
|
|
720
741
|
UNDEFINED = "UNDEFINED",
|
|
@@ -952,12 +973,36 @@ export interface BookingDeclined {
|
|
|
952
973
|
/** The previous payment status of the booking. */
|
|
953
974
|
previousPaymentStatus?: PaymentStatus;
|
|
954
975
|
}
|
|
955
|
-
export interface
|
|
956
|
-
/**
|
|
957
|
-
|
|
976
|
+
export interface BulkCalculateGroupedBookingsAllowedActionsRequest {
|
|
977
|
+
/** The group ids to calculate the allowedActions for */
|
|
978
|
+
groupIds?: string[] | null;
|
|
958
979
|
}
|
|
959
|
-
export interface
|
|
960
|
-
|
|
980
|
+
export interface BulkCalculateGroupedBookingsAllowedActionsResponse {
|
|
981
|
+
results?: BulkCalculateAllowedActionsResult[];
|
|
982
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
983
|
+
}
|
|
984
|
+
export interface BulkCalculateAllowedActionsResult {
|
|
985
|
+
/** (id, indexInGivenSeq, isSuccessful, error) */
|
|
986
|
+
itemMetadata?: ItemMetadata;
|
|
987
|
+
item?: AllowedActions;
|
|
988
|
+
}
|
|
989
|
+
export interface ItemMetadata {
|
|
990
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
991
|
+
id?: string | null;
|
|
992
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
993
|
+
originalIndex?: number;
|
|
994
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
995
|
+
success?: boolean;
|
|
996
|
+
/** Details about the error in case of failure. */
|
|
997
|
+
error?: ApplicationError;
|
|
998
|
+
}
|
|
999
|
+
export interface ApplicationError {
|
|
1000
|
+
/** Error code. */
|
|
1001
|
+
code?: string;
|
|
1002
|
+
/** Description of the error. */
|
|
1003
|
+
description?: string;
|
|
1004
|
+
/** Data related to the error. */
|
|
1005
|
+
data?: Record<string, any> | null;
|
|
961
1006
|
}
|
|
962
1007
|
/** Possible allowed actions for a Booking */
|
|
963
1008
|
export interface AllowedActions {
|
|
@@ -966,6 +1011,14 @@ export interface AllowedActions {
|
|
|
966
1011
|
/** Is reschedule booking allowed */
|
|
967
1012
|
reschedule?: boolean;
|
|
968
1013
|
}
|
|
1014
|
+
export interface BulkActionMetadata {
|
|
1015
|
+
/** Number of items that were successfully processed. */
|
|
1016
|
+
totalSuccesses?: number;
|
|
1017
|
+
/** Number of items that couldn't be processed. */
|
|
1018
|
+
totalFailures?: number;
|
|
1019
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1020
|
+
undetailedFailures?: number;
|
|
1021
|
+
}
|
|
969
1022
|
export interface SplitGroupedBookingsRequest {
|
|
970
1023
|
/** ID of the group. */
|
|
971
1024
|
groupId?: string;
|
|
@@ -1069,32 +1122,6 @@ export interface BulkUpdateBookingResponse {
|
|
|
1069
1122
|
results?: ItemMetadata[];
|
|
1070
1123
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1071
1124
|
}
|
|
1072
|
-
export interface ItemMetadata {
|
|
1073
|
-
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
1074
|
-
id?: string | null;
|
|
1075
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
1076
|
-
originalIndex?: number;
|
|
1077
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
1078
|
-
success?: boolean;
|
|
1079
|
-
/** Details about the error in case of failure. */
|
|
1080
|
-
error?: ApplicationError;
|
|
1081
|
-
}
|
|
1082
|
-
export interface ApplicationError {
|
|
1083
|
-
/** Error code. */
|
|
1084
|
-
code?: string;
|
|
1085
|
-
/** Description of the error. */
|
|
1086
|
-
description?: string;
|
|
1087
|
-
/** Data related to the error. */
|
|
1088
|
-
data?: Record<string, any> | null;
|
|
1089
|
-
}
|
|
1090
|
-
export interface BulkActionMetadata {
|
|
1091
|
-
/** Number of items that were successfully processed. */
|
|
1092
|
-
totalSuccesses?: number;
|
|
1093
|
-
/** Number of items that couldn't be processed. */
|
|
1094
|
-
totalFailures?: number;
|
|
1095
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1096
|
-
undetailedFailures?: number;
|
|
1097
|
-
}
|
|
1098
1125
|
export interface BulkCreateBookingRequest {
|
|
1099
1126
|
/**
|
|
1100
1127
|
* Bookings to create.
|
|
@@ -1545,11 +1572,6 @@ export interface BulkCalculateAllowedActionsResponse {
|
|
|
1545
1572
|
results?: BulkCalculateAllowedActionsResult[];
|
|
1546
1573
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1547
1574
|
}
|
|
1548
|
-
export interface BulkCalculateAllowedActionsResult {
|
|
1549
|
-
/** (id, indexInGivenSeq, isSuccessful, error) */
|
|
1550
|
-
itemMetadata?: ItemMetadata;
|
|
1551
|
-
item?: AllowedActions;
|
|
1552
|
-
}
|
|
1553
1575
|
export interface GetSlotAvailabilityRequest {
|
|
1554
1576
|
/** The slot for which the availability is checked. */
|
|
1555
1577
|
slot?: V2Slot;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SortOrder = exports.LocationLocationType = exports.IdentityType = exports.IdentificationDataIdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.LocationType = void 0;
|
|
3
|
+
exports.SortOrder = exports.LocationLocationType = exports.IdentityType = exports.IdentificationDataIdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.Type = exports.LocationType = void 0;
|
|
4
4
|
var LocationType;
|
|
5
5
|
(function (LocationType) {
|
|
6
6
|
LocationType["UNDEFINED"] = "UNDEFINED";
|
|
@@ -8,6 +8,11 @@ var LocationType;
|
|
|
8
8
|
LocationType["OWNER_CUSTOM"] = "OWNER_CUSTOM";
|
|
9
9
|
LocationType["CUSTOM"] = "CUSTOM";
|
|
10
10
|
})(LocationType = exports.LocationType || (exports.LocationType = {}));
|
|
11
|
+
var Type;
|
|
12
|
+
(function (Type) {
|
|
13
|
+
Type["DO_NOT_CARE"] = "DO_NOT_CARE";
|
|
14
|
+
Type["SPECIFIC_RESOURCES"] = "SPECIFIC_RESOURCES";
|
|
15
|
+
})(Type = exports.Type || (exports.Type = {}));
|
|
11
16
|
var ValueType;
|
|
12
17
|
(function (ValueType) {
|
|
13
18
|
/** Short text. This is the default value type. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-v2-booking.types.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"bookings-v2-booking.types.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking.types.ts"],"names":[],"mappings":";;;AAyMA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AASD,IAAY,IAGX;AAHD,WAAY,IAAI;IACd,mCAA2B,CAAA;IAC3B,iDAAyC,CAAA;AAC3C,CAAC,EAHW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAGf;AA+HD,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,kDAAkD;IAClD,sCAAyB,CAAA;IACzB,gBAAgB;IAChB,oCAAuB,CAAA;IACvB,qGAAqG;IACrG,oCAAuB,CAAA;AACzB,CAAC,EAPW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB;AAED,sBAAsB;AACtB,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,oCAAmB,CAAA;I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AA;IACvC,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAgDD,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,+CAAuB,CAAA;IACvB,yDAAiC,CAAA;IACjC,qDAA6B,CAAA;IAC7B,yCAAiB,CAAA;AACnB,CAAC,EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B;AA+mBD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
|
|
@@ -161,6 +161,11 @@ export interface BookedSlot {
|
|
|
161
161
|
resource?: BookedResource;
|
|
162
162
|
/** Location where the slot's session takes place. */
|
|
163
163
|
location?: Location;
|
|
164
|
+
/**
|
|
165
|
+
* The selected grouped resources the UoU choose during book/reschedule flow, either specific resources or any resources in each group.
|
|
166
|
+
* When `DO_NOT_CARE` is provided, the given resources are ignored.
|
|
167
|
+
*/
|
|
168
|
+
flowSelectedResources?: GroupedResources[];
|
|
164
169
|
}
|
|
165
170
|
export interface BookedResource {
|
|
166
171
|
/** Booked resource ID. */
|
|
@@ -197,6 +202,16 @@ export declare enum LocationType {
|
|
|
197
202
|
OWNER_CUSTOM = "OWNER_CUSTOM",
|
|
198
203
|
CUSTOM = "CUSTOM"
|
|
199
204
|
}
|
|
205
|
+
export interface GroupedResources {
|
|
206
|
+
resourceGroupId?: string | null;
|
|
207
|
+
type?: Type;
|
|
208
|
+
/** list of at most 10 resources, that can booked with this slot */
|
|
209
|
+
resourceIds?: string[];
|
|
210
|
+
}
|
|
211
|
+
export declare enum Type {
|
|
212
|
+
DO_NOT_CARE = "DO_NOT_CARE",
|
|
213
|
+
SPECIFIC_RESOURCES = "SPECIFIC_RESOURCES"
|
|
214
|
+
}
|
|
200
215
|
export interface BookedSchedule {
|
|
201
216
|
/** Schedule ID. */
|
|
202
217
|
scheduleId?: string;
|
|
@@ -717,6 +732,12 @@ export interface V2Slot {
|
|
|
717
732
|
resource?: SlotSlotResource;
|
|
718
733
|
/** Geographic location of the slot. */
|
|
719
734
|
location?: SlotLocation;
|
|
735
|
+
/**
|
|
736
|
+
* The selected grouped resources the UoU choose during book/reschedule flow, either specific resources or any resources in each group.
|
|
737
|
+
* When `DO_NOT_CARE` is provided, the given resources are ignored.
|
|
738
|
+
* In the context of GetSlotAvailabilityResponse, it will hold the chosen resources from the V2Availability slot
|
|
739
|
+
*/
|
|
740
|
+
flowSelectedResources?: GroupedResources[];
|
|
720
741
|
}
|
|
721
742
|
export declare enum LocationLocationType {
|
|
722
743
|
UNDEFINED = "UNDEFINED",
|
|
@@ -954,12 +975,36 @@ export interface BookingDeclined {
|
|
|
954
975
|
/** The previous payment status of the booking. */
|
|
955
976
|
previousPaymentStatus?: PaymentStatus;
|
|
956
977
|
}
|
|
957
|
-
export interface
|
|
958
|
-
/**
|
|
959
|
-
|
|
978
|
+
export interface BulkCalculateGroupedBookingsAllowedActionsRequest {
|
|
979
|
+
/** The group ids to calculate the allowedActions for */
|
|
980
|
+
groupIds?: string[] | null;
|
|
960
981
|
}
|
|
961
|
-
export interface
|
|
962
|
-
|
|
982
|
+
export interface BulkCalculateGroupedBookingsAllowedActionsResponse {
|
|
983
|
+
results?: BulkCalculateAllowedActionsResult[];
|
|
984
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
985
|
+
}
|
|
986
|
+
export interface BulkCalculateAllowedActionsResult {
|
|
987
|
+
/** (id, indexInGivenSeq, isSuccessful, error) */
|
|
988
|
+
itemMetadata?: ItemMetadata;
|
|
989
|
+
item?: AllowedActions;
|
|
990
|
+
}
|
|
991
|
+
export interface ItemMetadata {
|
|
992
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
993
|
+
_id?: string | null;
|
|
994
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
995
|
+
originalIndex?: number;
|
|
996
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
997
|
+
success?: boolean;
|
|
998
|
+
/** Details about the error in case of failure. */
|
|
999
|
+
error?: ApplicationError;
|
|
1000
|
+
}
|
|
1001
|
+
export interface ApplicationError {
|
|
1002
|
+
/** Error code. */
|
|
1003
|
+
code?: string;
|
|
1004
|
+
/** Description of the error. */
|
|
1005
|
+
description?: string;
|
|
1006
|
+
/** Data related to the error. */
|
|
1007
|
+
data?: Record<string, any> | null;
|
|
963
1008
|
}
|
|
964
1009
|
/** Possible allowed actions for a Booking */
|
|
965
1010
|
export interface AllowedActions {
|
|
@@ -968,6 +1013,14 @@ export interface AllowedActions {
|
|
|
968
1013
|
/** Is reschedule booking allowed */
|
|
969
1014
|
reschedule?: boolean;
|
|
970
1015
|
}
|
|
1016
|
+
export interface BulkActionMetadata {
|
|
1017
|
+
/** Number of items that were successfully processed. */
|
|
1018
|
+
totalSuccesses?: number;
|
|
1019
|
+
/** Number of items that couldn't be processed. */
|
|
1020
|
+
totalFailures?: number;
|
|
1021
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1022
|
+
undetailedFailures?: number;
|
|
1023
|
+
}
|
|
971
1024
|
export interface SplitGroupedBookingsRequest {
|
|
972
1025
|
/** ID of the group. */
|
|
973
1026
|
groupId?: string;
|
|
@@ -1071,32 +1124,6 @@ export interface BulkUpdateBookingResponse {
|
|
|
1071
1124
|
results?: ItemMetadata[];
|
|
1072
1125
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1073
1126
|
}
|
|
1074
|
-
export interface ItemMetadata {
|
|
1075
|
-
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
1076
|
-
_id?: string | null;
|
|
1077
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
1078
|
-
originalIndex?: number;
|
|
1079
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
1080
|
-
success?: boolean;
|
|
1081
|
-
/** Details about the error in case of failure. */
|
|
1082
|
-
error?: ApplicationError;
|
|
1083
|
-
}
|
|
1084
|
-
export interface ApplicationError {
|
|
1085
|
-
/** Error code. */
|
|
1086
|
-
code?: string;
|
|
1087
|
-
/** Description of the error. */
|
|
1088
|
-
description?: string;
|
|
1089
|
-
/** Data related to the error. */
|
|
1090
|
-
data?: Record<string, any> | null;
|
|
1091
|
-
}
|
|
1092
|
-
export interface BulkActionMetadata {
|
|
1093
|
-
/** Number of items that were successfully processed. */
|
|
1094
|
-
totalSuccesses?: number;
|
|
1095
|
-
/** Number of items that couldn't be processed. */
|
|
1096
|
-
totalFailures?: number;
|
|
1097
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1098
|
-
undetailedFailures?: number;
|
|
1099
|
-
}
|
|
1100
1127
|
export interface BulkCreateBookingRequest {
|
|
1101
1128
|
/**
|
|
1102
1129
|
* Bookings to create.
|
|
@@ -1548,11 +1575,6 @@ export interface BulkCalculateAllowedActionsResponse {
|
|
|
1548
1575
|
results?: BulkCalculateAllowedActionsResult[];
|
|
1549
1576
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1550
1577
|
}
|
|
1551
|
-
export interface BulkCalculateAllowedActionsResult {
|
|
1552
|
-
/** (id, indexInGivenSeq, isSuccessful, error) */
|
|
1553
|
-
itemMetadata?: ItemMetadata;
|
|
1554
|
-
item?: AllowedActions;
|
|
1555
|
-
}
|
|
1556
1578
|
export interface GetSlotAvailabilityRequest {
|
|
1557
1579
|
/** The slot for which the availability is checked. */
|
|
1558
1580
|
slot?: V2Slot;
|
|
@@ -28,7 +28,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.confirmOrDeclineBooking = exports.updateNumberOfParticipants = exports.cancelBooking = exports.declineBooking = exports.updateExtendedFields = exports.confirmBooking = exports.rescheduleBooking = exports.bulkCreateBooking = exports.createBooking = exports.SortOrder = exports.LocationLocationType = exports.IdentityType = exports.IdentificationDataIdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.LocationType = exports.__debug = void 0;
|
|
31
|
+
exports.confirmOrDeclineBooking = exports.updateNumberOfParticipants = exports.cancelBooking = exports.declineBooking = exports.updateExtendedFields = exports.confirmBooking = exports.rescheduleBooking = exports.bulkCreateBooking = exports.createBooking = exports.SortOrder = exports.LocationLocationType = exports.IdentityType = exports.IdentificationDataIdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.Type = exports.LocationType = exports.__debug = void 0;
|
|
32
32
|
const velo_1 = require("@wix/metro-runtime/velo");
|
|
33
33
|
const ambassadorWixBookingsV2Booking = __importStar(require("./bookings-v2-booking.http"));
|
|
34
34
|
let __verbose = false;
|
|
@@ -53,6 +53,11 @@ var LocationType;
|
|
|
53
53
|
LocationType["OWNER_CUSTOM"] = "OWNER_CUSTOM";
|
|
54
54
|
LocationType["CUSTOM"] = "CUSTOM";
|
|
55
55
|
})(LocationType = exports.LocationType || (exports.LocationType = {}));
|
|
56
|
+
var Type;
|
|
57
|
+
(function (Type) {
|
|
58
|
+
Type["DO_NOT_CARE"] = "DO_NOT_CARE";
|
|
59
|
+
Type["SPECIFIC_RESOURCES"] = "SPECIFIC_RESOURCES";
|
|
60
|
+
})(Type = exports.Type || (exports.Type = {}));
|
|
56
61
|
var ValueType;
|
|
57
62
|
(function (ValueType) {
|
|
58
63
|
/** Short text. This is the default value type. */
|