@tennac-booking/sdk 1.0.143 → 1.0.145
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/.openapi-generator/FILES +9 -0
- package/README.md +18 -0
- package/api.ts +1323 -39
- package/dist/api.d.ts +801 -9
- package/dist/api.js +819 -17
- package/dist/esm/api.d.ts +801 -9
- package/dist/esm/api.js +807 -13
- package/docs/BookingsApi.md +157 -0
- package/docs/BookingsUserApi.md +53 -0
- package/docs/ClubCustomerMeApi.md +51 -0
- package/docs/ClubCustomerSettingsResponse.md +38 -0
- package/docs/ClubCustomerStaffApi.md +113 -0
- package/docs/ClubsApi.md +55 -0
- package/docs/CreateBookingRequest.md +4 -0
- package/docs/CreateEventRequest.md +2 -0
- package/docs/CreateOpenBookingRequest.md +28 -0
- package/docs/EventResponse.md +2 -0
- package/docs/EventsApi.md +164 -0
- package/docs/EventsStaffApi.md +1 -1
- package/docs/GetOpenBookings200Response.md +20 -0
- package/docs/GetOpenEventBookings200Response.md +20 -0
- package/docs/JoinEventRequest.md +2 -0
- package/docs/JoinOpenBookingResponse.md +28 -0
- package/docs/JoinOpenEventBookingRequest.md +24 -0
- package/docs/JoinOpenEventResponse.md +26 -0
- package/docs/UpdateEventRequest.md +2 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -23,9 +23,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.WeekdayKey = exports.VisibilityType = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.TrendDirection = exports.SurfaceType = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = exports.AgendaPaymentStatus = void 0;
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = void 0;
|
|
26
|
+
exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubCustomerStaffApi = exports.ClubCustomerStaffApiFactory = exports.ClubCustomerStaffApiFp = exports.ClubCustomerStaffApiAxiosParamCreator = exports.ClubCustomerMeApi = exports.ClubCustomerMeApiFactory = exports.ClubCustomerMeApiFp = exports.ClubCustomerMeApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = void 0;
|
|
27
|
+
exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -465,6 +465,37 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
465
465
|
options: localVarRequestOptions,
|
|
466
466
|
};
|
|
467
467
|
}),
|
|
468
|
+
/**
|
|
469
|
+
*
|
|
470
|
+
* @param {string} [clubId]
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
getOpenBookings: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
475
|
+
const localVarPath = `/api/bookings/open`;
|
|
476
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
477
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
478
|
+
let baseOptions;
|
|
479
|
+
if (configuration) {
|
|
480
|
+
baseOptions = configuration.baseOptions;
|
|
481
|
+
}
|
|
482
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
483
|
+
const localVarHeaderParameter = {};
|
|
484
|
+
const localVarQueryParameter = {};
|
|
485
|
+
// authentication bearerAuth required
|
|
486
|
+
// http bearer authentication required
|
|
487
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
488
|
+
if (clubId !== undefined) {
|
|
489
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
490
|
+
}
|
|
491
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
492
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
493
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
494
|
+
return {
|
|
495
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
496
|
+
options: localVarRequestOptions,
|
|
497
|
+
};
|
|
498
|
+
}),
|
|
468
499
|
/**
|
|
469
500
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
470
501
|
* @param {number} [latitude]
|
|
@@ -533,6 +564,73 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
533
564
|
options: localVarRequestOptions,
|
|
534
565
|
};
|
|
535
566
|
}),
|
|
567
|
+
/**
|
|
568
|
+
*
|
|
569
|
+
* @param {string} bookingId
|
|
570
|
+
* @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
|
|
571
|
+
* @param {*} [options] Override http request option.
|
|
572
|
+
* @throws {RequiredError}
|
|
573
|
+
*/
|
|
574
|
+
joinOpenBooking: (bookingId_1, joinOpenEventBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinOpenEventBookingRequest_1, ...args_1], void 0, function* (bookingId, joinOpenEventBookingRequest, options = {}) {
|
|
575
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
576
|
+
(0, common_1.assertParamExists)('joinOpenBooking', 'bookingId', bookingId);
|
|
577
|
+
// verify required parameter 'joinOpenEventBookingRequest' is not null or undefined
|
|
578
|
+
(0, common_1.assertParamExists)('joinOpenBooking', 'joinOpenEventBookingRequest', joinOpenEventBookingRequest);
|
|
579
|
+
const localVarPath = `/api/bookings/{bookingId}/open/join`
|
|
580
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
581
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
582
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
583
|
+
let baseOptions;
|
|
584
|
+
if (configuration) {
|
|
585
|
+
baseOptions = configuration.baseOptions;
|
|
586
|
+
}
|
|
587
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
588
|
+
const localVarHeaderParameter = {};
|
|
589
|
+
const localVarQueryParameter = {};
|
|
590
|
+
// authentication bearerAuth required
|
|
591
|
+
// http bearer authentication required
|
|
592
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
593
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
594
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
595
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
596
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
597
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinOpenEventBookingRequest, localVarRequestOptions, configuration);
|
|
598
|
+
return {
|
|
599
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
600
|
+
options: localVarRequestOptions,
|
|
601
|
+
};
|
|
602
|
+
}),
|
|
603
|
+
/**
|
|
604
|
+
*
|
|
605
|
+
* @param {string} bookingId
|
|
606
|
+
* @param {*} [options] Override http request option.
|
|
607
|
+
* @throws {RequiredError}
|
|
608
|
+
*/
|
|
609
|
+
leaveOpenBooking: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
610
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
611
|
+
(0, common_1.assertParamExists)('leaveOpenBooking', 'bookingId', bookingId);
|
|
612
|
+
const localVarPath = `/api/bookings/{bookingId}/open/leave`
|
|
613
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
614
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
615
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
616
|
+
let baseOptions;
|
|
617
|
+
if (configuration) {
|
|
618
|
+
baseOptions = configuration.baseOptions;
|
|
619
|
+
}
|
|
620
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
621
|
+
const localVarHeaderParameter = {};
|
|
622
|
+
const localVarQueryParameter = {};
|
|
623
|
+
// authentication bearerAuth required
|
|
624
|
+
// http bearer authentication required
|
|
625
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
626
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
627
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
628
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
629
|
+
return {
|
|
630
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
631
|
+
options: localVarRequestOptions,
|
|
632
|
+
};
|
|
633
|
+
}),
|
|
536
634
|
};
|
|
537
635
|
};
|
|
538
636
|
exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
|
|
@@ -573,6 +671,21 @@ const BookingsApiFp = function (configuration) {
|
|
|
573
671
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
574
672
|
});
|
|
575
673
|
},
|
|
674
|
+
/**
|
|
675
|
+
*
|
|
676
|
+
* @param {string} [clubId]
|
|
677
|
+
* @param {*} [options] Override http request option.
|
|
678
|
+
* @throws {RequiredError}
|
|
679
|
+
*/
|
|
680
|
+
getOpenBookings(clubId, options) {
|
|
681
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
682
|
+
var _a, _b, _c;
|
|
683
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookings(clubId, options);
|
|
684
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
685
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getOpenBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
686
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
687
|
+
});
|
|
688
|
+
},
|
|
576
689
|
/**
|
|
577
690
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
578
691
|
* @param {number} [latitude]
|
|
@@ -598,6 +711,37 @@ const BookingsApiFp = function (configuration) {
|
|
|
598
711
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
599
712
|
});
|
|
600
713
|
},
|
|
714
|
+
/**
|
|
715
|
+
*
|
|
716
|
+
* @param {string} bookingId
|
|
717
|
+
* @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
|
|
718
|
+
* @param {*} [options] Override http request option.
|
|
719
|
+
* @throws {RequiredError}
|
|
720
|
+
*/
|
|
721
|
+
joinOpenBooking(bookingId, joinOpenEventBookingRequest, options) {
|
|
722
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
723
|
+
var _a, _b, _c;
|
|
724
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenEventBookingRequest, options);
|
|
725
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
726
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.joinOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
727
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
728
|
+
});
|
|
729
|
+
},
|
|
730
|
+
/**
|
|
731
|
+
*
|
|
732
|
+
* @param {string} bookingId
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
*/
|
|
736
|
+
leaveOpenBooking(bookingId, options) {
|
|
737
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
738
|
+
var _a, _b, _c;
|
|
739
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.leaveOpenBooking(bookingId, options);
|
|
740
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
741
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.leaveOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
742
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
743
|
+
});
|
|
744
|
+
},
|
|
601
745
|
};
|
|
602
746
|
};
|
|
603
747
|
exports.BookingsApiFp = BookingsApiFp;
|
|
@@ -626,6 +770,15 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
626
770
|
getBookingPrice(requestParameters, options) {
|
|
627
771
|
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
628
772
|
},
|
|
773
|
+
/**
|
|
774
|
+
*
|
|
775
|
+
* @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
|
|
776
|
+
* @param {*} [options] Override http request option.
|
|
777
|
+
* @throws {RequiredError}
|
|
778
|
+
*/
|
|
779
|
+
getOpenBookings(requestParameters = {}, options) {
|
|
780
|
+
return localVarFp.getOpenBookings(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
781
|
+
},
|
|
629
782
|
/**
|
|
630
783
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
631
784
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -635,6 +788,24 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
635
788
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
636
789
|
return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
|
|
637
790
|
},
|
|
791
|
+
/**
|
|
792
|
+
*
|
|
793
|
+
* @param {BookingsApiJoinOpenBookingRequest} requestParameters Request parameters.
|
|
794
|
+
* @param {*} [options] Override http request option.
|
|
795
|
+
* @throws {RequiredError}
|
|
796
|
+
*/
|
|
797
|
+
joinOpenBooking(requestParameters, options) {
|
|
798
|
+
return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(axios, basePath));
|
|
799
|
+
},
|
|
800
|
+
/**
|
|
801
|
+
*
|
|
802
|
+
* @param {BookingsApiLeaveOpenBookingRequest} requestParameters Request parameters.
|
|
803
|
+
* @param {*} [options] Override http request option.
|
|
804
|
+
* @throws {RequiredError}
|
|
805
|
+
*/
|
|
806
|
+
leaveOpenBooking(requestParameters, options) {
|
|
807
|
+
return localVarFp.leaveOpenBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
808
|
+
},
|
|
638
809
|
};
|
|
639
810
|
};
|
|
640
811
|
exports.BookingsApiFactory = BookingsApiFactory;
|
|
@@ -665,6 +836,16 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
665
836
|
getBookingPrice(requestParameters, options) {
|
|
666
837
|
return (0, exports.BookingsApiFp)(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
667
838
|
}
|
|
839
|
+
/**
|
|
840
|
+
*
|
|
841
|
+
* @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
|
|
842
|
+
* @param {*} [options] Override http request option.
|
|
843
|
+
* @throws {RequiredError}
|
|
844
|
+
* @memberof BookingsApi
|
|
845
|
+
*/
|
|
846
|
+
getOpenBookings(requestParameters = {}, options) {
|
|
847
|
+
return (0, exports.BookingsApiFp)(this.configuration).getOpenBookings(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
848
|
+
}
|
|
668
849
|
/**
|
|
669
850
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
670
851
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -675,6 +856,26 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
675
856
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
676
857
|
return (0, exports.BookingsApiFp)(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
|
|
677
858
|
}
|
|
859
|
+
/**
|
|
860
|
+
*
|
|
861
|
+
* @param {BookingsApiJoinOpenBookingRequest} requestParameters Request parameters.
|
|
862
|
+
* @param {*} [options] Override http request option.
|
|
863
|
+
* @throws {RequiredError}
|
|
864
|
+
* @memberof BookingsApi
|
|
865
|
+
*/
|
|
866
|
+
joinOpenBooking(requestParameters, options) {
|
|
867
|
+
return (0, exports.BookingsApiFp)(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
*
|
|
871
|
+
* @param {BookingsApiLeaveOpenBookingRequest} requestParameters Request parameters.
|
|
872
|
+
* @param {*} [options] Override http request option.
|
|
873
|
+
* @throws {RequiredError}
|
|
874
|
+
* @memberof BookingsApi
|
|
875
|
+
*/
|
|
876
|
+
leaveOpenBooking(requestParameters, options) {
|
|
877
|
+
return (0, exports.BookingsApiFp)(this.configuration).leaveOpenBooking(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
878
|
+
}
|
|
678
879
|
}
|
|
679
880
|
exports.BookingsApi = BookingsApi;
|
|
680
881
|
/**
|
|
@@ -1505,6 +1706,38 @@ const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
1505
1706
|
options: localVarRequestOptions,
|
|
1506
1707
|
};
|
|
1507
1708
|
}),
|
|
1709
|
+
/**
|
|
1710
|
+
* Créer une réservation ouverte (open slot)
|
|
1711
|
+
* @param {CreateOpenBookingRequest} createOpenBookingRequest
|
|
1712
|
+
* @param {*} [options] Override http request option.
|
|
1713
|
+
* @throws {RequiredError}
|
|
1714
|
+
*/
|
|
1715
|
+
createOpenBooking: (createOpenBookingRequest_1, ...args_1) => __awaiter(this, [createOpenBookingRequest_1, ...args_1], void 0, function* (createOpenBookingRequest, options = {}) {
|
|
1716
|
+
// verify required parameter 'createOpenBookingRequest' is not null or undefined
|
|
1717
|
+
(0, common_1.assertParamExists)('createOpenBooking', 'createOpenBookingRequest', createOpenBookingRequest);
|
|
1718
|
+
const localVarPath = `/api/bookings/open`;
|
|
1719
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1720
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1721
|
+
let baseOptions;
|
|
1722
|
+
if (configuration) {
|
|
1723
|
+
baseOptions = configuration.baseOptions;
|
|
1724
|
+
}
|
|
1725
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1726
|
+
const localVarHeaderParameter = {};
|
|
1727
|
+
const localVarQueryParameter = {};
|
|
1728
|
+
// authentication bearerAuth required
|
|
1729
|
+
// http bearer authentication required
|
|
1730
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1731
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1732
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1733
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1734
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1735
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOpenBookingRequest, localVarRequestOptions, configuration);
|
|
1736
|
+
return {
|
|
1737
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1738
|
+
options: localVarRequestOptions,
|
|
1739
|
+
};
|
|
1740
|
+
}),
|
|
1508
1741
|
};
|
|
1509
1742
|
};
|
|
1510
1743
|
exports.BookingsUserApiAxiosParamCreator = BookingsUserApiAxiosParamCreator;
|
|
@@ -1545,6 +1778,21 @@ const BookingsUserApiFp = function (configuration) {
|
|
|
1545
1778
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1546
1779
|
});
|
|
1547
1780
|
},
|
|
1781
|
+
/**
|
|
1782
|
+
* Créer une réservation ouverte (open slot)
|
|
1783
|
+
* @param {CreateOpenBookingRequest} createOpenBookingRequest
|
|
1784
|
+
* @param {*} [options] Override http request option.
|
|
1785
|
+
* @throws {RequiredError}
|
|
1786
|
+
*/
|
|
1787
|
+
createOpenBooking(createOpenBookingRequest, options) {
|
|
1788
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1789
|
+
var _a, _b, _c;
|
|
1790
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOpenBooking(createOpenBookingRequest, options);
|
|
1791
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1792
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsUserApi.createOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1793
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1794
|
+
});
|
|
1795
|
+
},
|
|
1548
1796
|
};
|
|
1549
1797
|
};
|
|
1550
1798
|
exports.BookingsUserApiFp = BookingsUserApiFp;
|
|
@@ -1573,6 +1821,15 @@ const BookingsUserApiFactory = function (configuration, basePath, axios) {
|
|
|
1573
1821
|
createBooking(requestParameters, options) {
|
|
1574
1822
|
return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
|
|
1575
1823
|
},
|
|
1824
|
+
/**
|
|
1825
|
+
* Créer une réservation ouverte (open slot)
|
|
1826
|
+
* @param {BookingsUserApiCreateOpenBookingRequest} requestParameters Request parameters.
|
|
1827
|
+
* @param {*} [options] Override http request option.
|
|
1828
|
+
* @throws {RequiredError}
|
|
1829
|
+
*/
|
|
1830
|
+
createOpenBooking(requestParameters, options) {
|
|
1831
|
+
return localVarFp.createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(axios, basePath));
|
|
1832
|
+
},
|
|
1576
1833
|
};
|
|
1577
1834
|
};
|
|
1578
1835
|
exports.BookingsUserApiFactory = BookingsUserApiFactory;
|
|
@@ -1603,6 +1860,16 @@ class BookingsUserApi extends base_1.BaseAPI {
|
|
|
1603
1860
|
createBooking(requestParameters, options) {
|
|
1604
1861
|
return (0, exports.BookingsUserApiFp)(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1605
1862
|
}
|
|
1863
|
+
/**
|
|
1864
|
+
* Créer une réservation ouverte (open slot)
|
|
1865
|
+
* @param {BookingsUserApiCreateOpenBookingRequest} requestParameters Request parameters.
|
|
1866
|
+
* @param {*} [options] Override http request option.
|
|
1867
|
+
* @throws {RequiredError}
|
|
1868
|
+
* @memberof BookingsUserApi
|
|
1869
|
+
*/
|
|
1870
|
+
createOpenBooking(requestParameters, options) {
|
|
1871
|
+
return (0, exports.BookingsUserApiFp)(this.configuration).createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1872
|
+
}
|
|
1606
1873
|
}
|
|
1607
1874
|
exports.BookingsUserApi = BookingsUserApi;
|
|
1608
1875
|
/**
|
|
@@ -3567,26 +3834,296 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
3567
3834
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getTenNextBookings(options).then((request) => request(this.axios, this.basePath));
|
|
3568
3835
|
}
|
|
3569
3836
|
/**
|
|
3570
|
-
* Classement des terrains les plus réservés
|
|
3837
|
+
* Classement des terrains les plus réservés
|
|
3838
|
+
* @param {*} [options] Override http request option.
|
|
3839
|
+
* @throws {RequiredError}
|
|
3840
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3841
|
+
*/
|
|
3842
|
+
getTopCourtsByBookings(options) {
|
|
3843
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getTopCourtsByBookings(options).then((request) => request(this.axios, this.basePath));
|
|
3844
|
+
}
|
|
3845
|
+
/**
|
|
3846
|
+
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
3847
|
+
* @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
3848
|
+
* @param {*} [options] Override http request option.
|
|
3849
|
+
* @throws {RequiredError}
|
|
3850
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3851
|
+
*/
|
|
3852
|
+
getYearlyTurnOver(requestParameters, options) {
|
|
3853
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getYearlyTurnOver(requestParameters.year, options).then((request) => request(this.axios, this.basePath));
|
|
3854
|
+
}
|
|
3855
|
+
}
|
|
3856
|
+
exports.ClubAnalyticsStaffApi = ClubAnalyticsStaffApi;
|
|
3857
|
+
/**
|
|
3858
|
+
* ClubCustomerMeApi - axios parameter creator
|
|
3859
|
+
* @export
|
|
3860
|
+
*/
|
|
3861
|
+
const ClubCustomerMeApiAxiosParamCreator = function (configuration) {
|
|
3862
|
+
return {
|
|
3863
|
+
/**
|
|
3864
|
+
*
|
|
3865
|
+
* @param {*} [options] Override http request option.
|
|
3866
|
+
* @throws {RequiredError}
|
|
3867
|
+
*/
|
|
3868
|
+
getClubCustomerSettingsByPlayerId: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3869
|
+
const localVarPath = `/api/clubCustomers/club-customer/me/settings`;
|
|
3870
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3871
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3872
|
+
let baseOptions;
|
|
3873
|
+
if (configuration) {
|
|
3874
|
+
baseOptions = configuration.baseOptions;
|
|
3875
|
+
}
|
|
3876
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3877
|
+
const localVarHeaderParameter = {};
|
|
3878
|
+
const localVarQueryParameter = {};
|
|
3879
|
+
// authentication bearerAuth required
|
|
3880
|
+
// http bearer authentication required
|
|
3881
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3882
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3883
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3884
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3885
|
+
return {
|
|
3886
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3887
|
+
options: localVarRequestOptions,
|
|
3888
|
+
};
|
|
3889
|
+
}),
|
|
3890
|
+
};
|
|
3891
|
+
};
|
|
3892
|
+
exports.ClubCustomerMeApiAxiosParamCreator = ClubCustomerMeApiAxiosParamCreator;
|
|
3893
|
+
/**
|
|
3894
|
+
* ClubCustomerMeApi - functional programming interface
|
|
3895
|
+
* @export
|
|
3896
|
+
*/
|
|
3897
|
+
const ClubCustomerMeApiFp = function (configuration) {
|
|
3898
|
+
const localVarAxiosParamCreator = (0, exports.ClubCustomerMeApiAxiosParamCreator)(configuration);
|
|
3899
|
+
return {
|
|
3900
|
+
/**
|
|
3901
|
+
*
|
|
3902
|
+
* @param {*} [options] Override http request option.
|
|
3903
|
+
* @throws {RequiredError}
|
|
3904
|
+
*/
|
|
3905
|
+
getClubCustomerSettingsByPlayerId(options) {
|
|
3906
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3907
|
+
var _a, _b, _c;
|
|
3908
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubCustomerSettingsByPlayerId(options);
|
|
3909
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3910
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubCustomerMeApi.getClubCustomerSettingsByPlayerId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3911
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3912
|
+
});
|
|
3913
|
+
},
|
|
3914
|
+
};
|
|
3915
|
+
};
|
|
3916
|
+
exports.ClubCustomerMeApiFp = ClubCustomerMeApiFp;
|
|
3917
|
+
/**
|
|
3918
|
+
* ClubCustomerMeApi - factory interface
|
|
3919
|
+
* @export
|
|
3920
|
+
*/
|
|
3921
|
+
const ClubCustomerMeApiFactory = function (configuration, basePath, axios) {
|
|
3922
|
+
const localVarFp = (0, exports.ClubCustomerMeApiFp)(configuration);
|
|
3923
|
+
return {
|
|
3924
|
+
/**
|
|
3925
|
+
*
|
|
3926
|
+
* @param {*} [options] Override http request option.
|
|
3927
|
+
* @throws {RequiredError}
|
|
3928
|
+
*/
|
|
3929
|
+
getClubCustomerSettingsByPlayerId(options) {
|
|
3930
|
+
return localVarFp.getClubCustomerSettingsByPlayerId(options).then((request) => request(axios, basePath));
|
|
3931
|
+
},
|
|
3932
|
+
};
|
|
3933
|
+
};
|
|
3934
|
+
exports.ClubCustomerMeApiFactory = ClubCustomerMeApiFactory;
|
|
3935
|
+
/**
|
|
3936
|
+
* ClubCustomerMeApi - object-oriented interface
|
|
3937
|
+
* @export
|
|
3938
|
+
* @class ClubCustomerMeApi
|
|
3939
|
+
* @extends {BaseAPI}
|
|
3940
|
+
*/
|
|
3941
|
+
class ClubCustomerMeApi extends base_1.BaseAPI {
|
|
3942
|
+
/**
|
|
3943
|
+
*
|
|
3944
|
+
* @param {*} [options] Override http request option.
|
|
3945
|
+
* @throws {RequiredError}
|
|
3946
|
+
* @memberof ClubCustomerMeApi
|
|
3947
|
+
*/
|
|
3948
|
+
getClubCustomerSettingsByPlayerId(options) {
|
|
3949
|
+
return (0, exports.ClubCustomerMeApiFp)(this.configuration).getClubCustomerSettingsByPlayerId(options).then((request) => request(this.axios, this.basePath));
|
|
3950
|
+
}
|
|
3951
|
+
}
|
|
3952
|
+
exports.ClubCustomerMeApi = ClubCustomerMeApi;
|
|
3953
|
+
/**
|
|
3954
|
+
* ClubCustomerStaffApi - axios parameter creator
|
|
3955
|
+
* @export
|
|
3956
|
+
*/
|
|
3957
|
+
const ClubCustomerStaffApiAxiosParamCreator = function (configuration) {
|
|
3958
|
+
return {
|
|
3959
|
+
/**
|
|
3960
|
+
*
|
|
3961
|
+
* @param {string} userId
|
|
3962
|
+
* @param {*} [options] Override http request option.
|
|
3963
|
+
* @throws {RequiredError}
|
|
3964
|
+
*/
|
|
3965
|
+
getClubCustomerSettings: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
3966
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3967
|
+
(0, common_1.assertParamExists)('getClubCustomerSettings', 'userId', userId);
|
|
3968
|
+
const localVarPath = `/api/clubCustomers/clubCustomer/{userId}/settings`
|
|
3969
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
3970
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3971
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3972
|
+
let baseOptions;
|
|
3973
|
+
if (configuration) {
|
|
3974
|
+
baseOptions = configuration.baseOptions;
|
|
3975
|
+
}
|
|
3976
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3977
|
+
const localVarHeaderParameter = {};
|
|
3978
|
+
const localVarQueryParameter = {};
|
|
3979
|
+
// authentication bearerAuth required
|
|
3980
|
+
// http bearer authentication required
|
|
3981
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3982
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3983
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3984
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3985
|
+
return {
|
|
3986
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3987
|
+
options: localVarRequestOptions,
|
|
3988
|
+
};
|
|
3989
|
+
}),
|
|
3990
|
+
/**
|
|
3991
|
+
*
|
|
3992
|
+
* @param {string} userId
|
|
3993
|
+
* @param {ClubCustomerSettingsResponse} clubCustomerSettingsResponse
|
|
3994
|
+
* @param {*} [options] Override http request option.
|
|
3995
|
+
* @throws {RequiredError}
|
|
3996
|
+
*/
|
|
3997
|
+
updateClubCustomerSettings: (userId_1, clubCustomerSettingsResponse_1, ...args_1) => __awaiter(this, [userId_1, clubCustomerSettingsResponse_1, ...args_1], void 0, function* (userId, clubCustomerSettingsResponse, options = {}) {
|
|
3998
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3999
|
+
(0, common_1.assertParamExists)('updateClubCustomerSettings', 'userId', userId);
|
|
4000
|
+
// verify required parameter 'clubCustomerSettingsResponse' is not null or undefined
|
|
4001
|
+
(0, common_1.assertParamExists)('updateClubCustomerSettings', 'clubCustomerSettingsResponse', clubCustomerSettingsResponse);
|
|
4002
|
+
const localVarPath = `/api/clubCustomers/clubCustomer/{userId}/settings`
|
|
4003
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
4004
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4005
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4006
|
+
let baseOptions;
|
|
4007
|
+
if (configuration) {
|
|
4008
|
+
baseOptions = configuration.baseOptions;
|
|
4009
|
+
}
|
|
4010
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
4011
|
+
const localVarHeaderParameter = {};
|
|
4012
|
+
const localVarQueryParameter = {};
|
|
4013
|
+
// authentication bearerAuth required
|
|
4014
|
+
// http bearer authentication required
|
|
4015
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4016
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4017
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4018
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4019
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4020
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clubCustomerSettingsResponse, localVarRequestOptions, configuration);
|
|
4021
|
+
return {
|
|
4022
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4023
|
+
options: localVarRequestOptions,
|
|
4024
|
+
};
|
|
4025
|
+
}),
|
|
4026
|
+
};
|
|
4027
|
+
};
|
|
4028
|
+
exports.ClubCustomerStaffApiAxiosParamCreator = ClubCustomerStaffApiAxiosParamCreator;
|
|
4029
|
+
/**
|
|
4030
|
+
* ClubCustomerStaffApi - functional programming interface
|
|
4031
|
+
* @export
|
|
4032
|
+
*/
|
|
4033
|
+
const ClubCustomerStaffApiFp = function (configuration) {
|
|
4034
|
+
const localVarAxiosParamCreator = (0, exports.ClubCustomerStaffApiAxiosParamCreator)(configuration);
|
|
4035
|
+
return {
|
|
4036
|
+
/**
|
|
4037
|
+
*
|
|
4038
|
+
* @param {string} userId
|
|
4039
|
+
* @param {*} [options] Override http request option.
|
|
4040
|
+
* @throws {RequiredError}
|
|
4041
|
+
*/
|
|
4042
|
+
getClubCustomerSettings(userId, options) {
|
|
4043
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4044
|
+
var _a, _b, _c;
|
|
4045
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubCustomerSettings(userId, options);
|
|
4046
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4047
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubCustomerStaffApi.getClubCustomerSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4048
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4049
|
+
});
|
|
4050
|
+
},
|
|
4051
|
+
/**
|
|
4052
|
+
*
|
|
4053
|
+
* @param {string} userId
|
|
4054
|
+
* @param {ClubCustomerSettingsResponse} clubCustomerSettingsResponse
|
|
4055
|
+
* @param {*} [options] Override http request option.
|
|
4056
|
+
* @throws {RequiredError}
|
|
4057
|
+
*/
|
|
4058
|
+
updateClubCustomerSettings(userId, clubCustomerSettingsResponse, options) {
|
|
4059
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4060
|
+
var _a, _b, _c;
|
|
4061
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubCustomerSettings(userId, clubCustomerSettingsResponse, options);
|
|
4062
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4063
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubCustomerStaffApi.updateClubCustomerSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4064
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4065
|
+
});
|
|
4066
|
+
},
|
|
4067
|
+
};
|
|
4068
|
+
};
|
|
4069
|
+
exports.ClubCustomerStaffApiFp = ClubCustomerStaffApiFp;
|
|
4070
|
+
/**
|
|
4071
|
+
* ClubCustomerStaffApi - factory interface
|
|
4072
|
+
* @export
|
|
4073
|
+
*/
|
|
4074
|
+
const ClubCustomerStaffApiFactory = function (configuration, basePath, axios) {
|
|
4075
|
+
const localVarFp = (0, exports.ClubCustomerStaffApiFp)(configuration);
|
|
4076
|
+
return {
|
|
4077
|
+
/**
|
|
4078
|
+
*
|
|
4079
|
+
* @param {ClubCustomerStaffApiGetClubCustomerSettingsRequest} requestParameters Request parameters.
|
|
4080
|
+
* @param {*} [options] Override http request option.
|
|
4081
|
+
* @throws {RequiredError}
|
|
4082
|
+
*/
|
|
4083
|
+
getClubCustomerSettings(requestParameters, options) {
|
|
4084
|
+
return localVarFp.getClubCustomerSettings(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
4085
|
+
},
|
|
4086
|
+
/**
|
|
4087
|
+
*
|
|
4088
|
+
* @param {ClubCustomerStaffApiUpdateClubCustomerSettingsRequest} requestParameters Request parameters.
|
|
4089
|
+
* @param {*} [options] Override http request option.
|
|
4090
|
+
* @throws {RequiredError}
|
|
4091
|
+
*/
|
|
4092
|
+
updateClubCustomerSettings(requestParameters, options) {
|
|
4093
|
+
return localVarFp.updateClubCustomerSettings(requestParameters.userId, requestParameters.clubCustomerSettingsResponse, options).then((request) => request(axios, basePath));
|
|
4094
|
+
},
|
|
4095
|
+
};
|
|
4096
|
+
};
|
|
4097
|
+
exports.ClubCustomerStaffApiFactory = ClubCustomerStaffApiFactory;
|
|
4098
|
+
/**
|
|
4099
|
+
* ClubCustomerStaffApi - object-oriented interface
|
|
4100
|
+
* @export
|
|
4101
|
+
* @class ClubCustomerStaffApi
|
|
4102
|
+
* @extends {BaseAPI}
|
|
4103
|
+
*/
|
|
4104
|
+
class ClubCustomerStaffApi extends base_1.BaseAPI {
|
|
4105
|
+
/**
|
|
4106
|
+
*
|
|
4107
|
+
* @param {ClubCustomerStaffApiGetClubCustomerSettingsRequest} requestParameters Request parameters.
|
|
3571
4108
|
* @param {*} [options] Override http request option.
|
|
3572
4109
|
* @throws {RequiredError}
|
|
3573
|
-
* @memberof
|
|
4110
|
+
* @memberof ClubCustomerStaffApi
|
|
3574
4111
|
*/
|
|
3575
|
-
|
|
3576
|
-
return (0, exports.
|
|
4112
|
+
getClubCustomerSettings(requestParameters, options) {
|
|
4113
|
+
return (0, exports.ClubCustomerStaffApiFp)(this.configuration).getClubCustomerSettings(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
3577
4114
|
}
|
|
3578
4115
|
/**
|
|
3579
|
-
*
|
|
3580
|
-
* @param {
|
|
4116
|
+
*
|
|
4117
|
+
* @param {ClubCustomerStaffApiUpdateClubCustomerSettingsRequest} requestParameters Request parameters.
|
|
3581
4118
|
* @param {*} [options] Override http request option.
|
|
3582
4119
|
* @throws {RequiredError}
|
|
3583
|
-
* @memberof
|
|
4120
|
+
* @memberof ClubCustomerStaffApi
|
|
3584
4121
|
*/
|
|
3585
|
-
|
|
3586
|
-
return (0, exports.
|
|
4122
|
+
updateClubCustomerSettings(requestParameters, options) {
|
|
4123
|
+
return (0, exports.ClubCustomerStaffApiFp)(this.configuration).updateClubCustomerSettings(requestParameters.userId, requestParameters.clubCustomerSettingsResponse, options).then((request) => request(this.axios, this.basePath));
|
|
3587
4124
|
}
|
|
3588
4125
|
}
|
|
3589
|
-
exports.
|
|
4126
|
+
exports.ClubCustomerStaffApi = ClubCustomerStaffApi;
|
|
3590
4127
|
/**
|
|
3591
4128
|
* ClubRolesManagerApi - axios parameter creator
|
|
3592
4129
|
* @export
|
|
@@ -5196,6 +5733,34 @@ const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
5196
5733
|
options: localVarRequestOptions,
|
|
5197
5734
|
};
|
|
5198
5735
|
}),
|
|
5736
|
+
/**
|
|
5737
|
+
* Récupère les informations publiques d\'un club en fonction de son ID
|
|
5738
|
+
* @param {string} clubId
|
|
5739
|
+
* @param {*} [options] Override http request option.
|
|
5740
|
+
* @throws {RequiredError}
|
|
5741
|
+
*/
|
|
5742
|
+
getPublicClubInfo: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
5743
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
5744
|
+
(0, common_1.assertParamExists)('getPublicClubInfo', 'clubId', clubId);
|
|
5745
|
+
const localVarPath = `/api/clubs/{clubId}`
|
|
5746
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
5747
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5748
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5749
|
+
let baseOptions;
|
|
5750
|
+
if (configuration) {
|
|
5751
|
+
baseOptions = configuration.baseOptions;
|
|
5752
|
+
}
|
|
5753
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5754
|
+
const localVarHeaderParameter = {};
|
|
5755
|
+
const localVarQueryParameter = {};
|
|
5756
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5757
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5758
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5759
|
+
return {
|
|
5760
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5761
|
+
options: localVarRequestOptions,
|
|
5762
|
+
};
|
|
5763
|
+
}),
|
|
5199
5764
|
/**
|
|
5200
5765
|
*
|
|
5201
5766
|
* @param {string} id
|
|
@@ -5455,6 +6020,21 @@ const ClubsApiFp = function (configuration) {
|
|
|
5455
6020
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5456
6021
|
});
|
|
5457
6022
|
},
|
|
6023
|
+
/**
|
|
6024
|
+
* Récupère les informations publiques d\'un club en fonction de son ID
|
|
6025
|
+
* @param {string} clubId
|
|
6026
|
+
* @param {*} [options] Override http request option.
|
|
6027
|
+
* @throws {RequiredError}
|
|
6028
|
+
*/
|
|
6029
|
+
getPublicClubInfo(clubId, options) {
|
|
6030
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6031
|
+
var _a, _b, _c;
|
|
6032
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicClubInfo(clubId, options);
|
|
6033
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6034
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.getPublicClubInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6035
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6036
|
+
});
|
|
6037
|
+
},
|
|
5458
6038
|
/**
|
|
5459
6039
|
*
|
|
5460
6040
|
* @param {string} id
|
|
@@ -5605,6 +6185,15 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
5605
6185
|
getCourtsByClubAndSportById(requestParameters, options) {
|
|
5606
6186
|
return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
5607
6187
|
},
|
|
6188
|
+
/**
|
|
6189
|
+
* Récupère les informations publiques d\'un club en fonction de son ID
|
|
6190
|
+
* @param {ClubsApiGetPublicClubInfoRequest} requestParameters Request parameters.
|
|
6191
|
+
* @param {*} [options] Override http request option.
|
|
6192
|
+
* @throws {RequiredError}
|
|
6193
|
+
*/
|
|
6194
|
+
getPublicClubInfo(requestParameters, options) {
|
|
6195
|
+
return localVarFp.getPublicClubInfo(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
6196
|
+
},
|
|
5608
6197
|
/**
|
|
5609
6198
|
*
|
|
5610
6199
|
* @param {ClubsApiGetPublishedActualitiesRequest} requestParameters Request parameters.
|
|
@@ -5748,6 +6337,16 @@ class ClubsApi extends base_1.BaseAPI {
|
|
|
5748
6337
|
getCourtsByClubAndSportById(requestParameters, options) {
|
|
5749
6338
|
return (0, exports.ClubsApiFp)(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
5750
6339
|
}
|
|
6340
|
+
/**
|
|
6341
|
+
* Récupère les informations publiques d\'un club en fonction de son ID
|
|
6342
|
+
* @param {ClubsApiGetPublicClubInfoRequest} requestParameters Request parameters.
|
|
6343
|
+
* @param {*} [options] Override http request option.
|
|
6344
|
+
* @throws {RequiredError}
|
|
6345
|
+
* @memberof ClubsApi
|
|
6346
|
+
*/
|
|
6347
|
+
getPublicClubInfo(requestParameters, options) {
|
|
6348
|
+
return (0, exports.ClubsApiFp)(this.configuration).getPublicClubInfo(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
6349
|
+
}
|
|
5751
6350
|
/**
|
|
5752
6351
|
*
|
|
5753
6352
|
* @param {ClubsApiGetPublishedActualitiesRequest} requestParameters Request parameters.
|
|
@@ -8163,6 +8762,38 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
8163
8762
|
options: localVarRequestOptions,
|
|
8164
8763
|
};
|
|
8165
8764
|
}),
|
|
8765
|
+
/**
|
|
8766
|
+
*
|
|
8767
|
+
* @param {string} [clubId]
|
|
8768
|
+
* @param {string} [eventId]
|
|
8769
|
+
* @param {*} [options] Override http request option.
|
|
8770
|
+
* @throws {RequiredError}
|
|
8771
|
+
*/
|
|
8772
|
+
getOpenEventBookings: (clubId_1, eventId_1, ...args_1) => __awaiter(this, [clubId_1, eventId_1, ...args_1], void 0, function* (clubId, eventId, options = {}) {
|
|
8773
|
+
const localVarPath = `/api/events/open`;
|
|
8774
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8775
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8776
|
+
let baseOptions;
|
|
8777
|
+
if (configuration) {
|
|
8778
|
+
baseOptions = configuration.baseOptions;
|
|
8779
|
+
}
|
|
8780
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8781
|
+
const localVarHeaderParameter = {};
|
|
8782
|
+
const localVarQueryParameter = {};
|
|
8783
|
+
if (clubId !== undefined) {
|
|
8784
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
8785
|
+
}
|
|
8786
|
+
if (eventId !== undefined) {
|
|
8787
|
+
localVarQueryParameter['eventId'] = eventId;
|
|
8788
|
+
}
|
|
8789
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8790
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8791
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8792
|
+
return {
|
|
8793
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8794
|
+
options: localVarRequestOptions,
|
|
8795
|
+
};
|
|
8796
|
+
}),
|
|
8166
8797
|
/**
|
|
8167
8798
|
* Get all published events for a club
|
|
8168
8799
|
* @param {string} [clubId]
|
|
@@ -8239,6 +8870,42 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
8239
8870
|
options: localVarRequestOptions,
|
|
8240
8871
|
};
|
|
8241
8872
|
}),
|
|
8873
|
+
/**
|
|
8874
|
+
*
|
|
8875
|
+
* @param {string} eventBookingId
|
|
8876
|
+
* @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
|
|
8877
|
+
* @param {*} [options] Override http request option.
|
|
8878
|
+
* @throws {RequiredError}
|
|
8879
|
+
*/
|
|
8880
|
+
joinOpenEventBooking: (eventBookingId_1, joinOpenEventBookingRequest_1, ...args_1) => __awaiter(this, [eventBookingId_1, joinOpenEventBookingRequest_1, ...args_1], void 0, function* (eventBookingId, joinOpenEventBookingRequest, options = {}) {
|
|
8881
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
8882
|
+
(0, common_1.assertParamExists)('joinOpenEventBooking', 'eventBookingId', eventBookingId);
|
|
8883
|
+
// verify required parameter 'joinOpenEventBookingRequest' is not null or undefined
|
|
8884
|
+
(0, common_1.assertParamExists)('joinOpenEventBooking', 'joinOpenEventBookingRequest', joinOpenEventBookingRequest);
|
|
8885
|
+
const localVarPath = `/api/events/{eventBookingId}/open/join`
|
|
8886
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
8887
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8888
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8889
|
+
let baseOptions;
|
|
8890
|
+
if (configuration) {
|
|
8891
|
+
baseOptions = configuration.baseOptions;
|
|
8892
|
+
}
|
|
8893
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8894
|
+
const localVarHeaderParameter = {};
|
|
8895
|
+
const localVarQueryParameter = {};
|
|
8896
|
+
// authentication bearerAuth required
|
|
8897
|
+
// http bearer authentication required
|
|
8898
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8899
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8900
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8901
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8902
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8903
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinOpenEventBookingRequest, localVarRequestOptions, configuration);
|
|
8904
|
+
return {
|
|
8905
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8906
|
+
options: localVarRequestOptions,
|
|
8907
|
+
};
|
|
8908
|
+
}),
|
|
8242
8909
|
/**
|
|
8243
8910
|
* Leave an event (user)
|
|
8244
8911
|
* @param {string} eventId
|
|
@@ -8270,6 +8937,37 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
8270
8937
|
options: localVarRequestOptions,
|
|
8271
8938
|
};
|
|
8272
8939
|
}),
|
|
8940
|
+
/**
|
|
8941
|
+
*
|
|
8942
|
+
* @param {string} eventBookingId
|
|
8943
|
+
* @param {*} [options] Override http request option.
|
|
8944
|
+
* @throws {RequiredError}
|
|
8945
|
+
*/
|
|
8946
|
+
leaveOpenEventBooking: (eventBookingId_1, ...args_1) => __awaiter(this, [eventBookingId_1, ...args_1], void 0, function* (eventBookingId, options = {}) {
|
|
8947
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
8948
|
+
(0, common_1.assertParamExists)('leaveOpenEventBooking', 'eventBookingId', eventBookingId);
|
|
8949
|
+
const localVarPath = `/api/events/{eventBookingId}/open/leave`
|
|
8950
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
8951
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8952
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8953
|
+
let baseOptions;
|
|
8954
|
+
if (configuration) {
|
|
8955
|
+
baseOptions = configuration.baseOptions;
|
|
8956
|
+
}
|
|
8957
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
8958
|
+
const localVarHeaderParameter = {};
|
|
8959
|
+
const localVarQueryParameter = {};
|
|
8960
|
+
// authentication bearerAuth required
|
|
8961
|
+
// http bearer authentication required
|
|
8962
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8963
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8964
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8965
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8966
|
+
return {
|
|
8967
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8968
|
+
options: localVarRequestOptions,
|
|
8969
|
+
};
|
|
8970
|
+
}),
|
|
8273
8971
|
};
|
|
8274
8972
|
};
|
|
8275
8973
|
exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
|
|
@@ -8328,6 +9026,22 @@ const EventsApiFp = function (configuration) {
|
|
|
8328
9026
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8329
9027
|
});
|
|
8330
9028
|
},
|
|
9029
|
+
/**
|
|
9030
|
+
*
|
|
9031
|
+
* @param {string} [clubId]
|
|
9032
|
+
* @param {string} [eventId]
|
|
9033
|
+
* @param {*} [options] Override http request option.
|
|
9034
|
+
* @throws {RequiredError}
|
|
9035
|
+
*/
|
|
9036
|
+
getOpenEventBookings(clubId, eventId, options) {
|
|
9037
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9038
|
+
var _a, _b, _c;
|
|
9039
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenEventBookings(clubId, eventId, options);
|
|
9040
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9041
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.getOpenEventBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9042
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9043
|
+
});
|
|
9044
|
+
},
|
|
8331
9045
|
/**
|
|
8332
9046
|
* Get all published events for a club
|
|
8333
9047
|
* @param {string} [clubId]
|
|
@@ -8362,6 +9076,22 @@ const EventsApiFp = function (configuration) {
|
|
|
8362
9076
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8363
9077
|
});
|
|
8364
9078
|
},
|
|
9079
|
+
/**
|
|
9080
|
+
*
|
|
9081
|
+
* @param {string} eventBookingId
|
|
9082
|
+
* @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
|
|
9083
|
+
* @param {*} [options] Override http request option.
|
|
9084
|
+
* @throws {RequiredError}
|
|
9085
|
+
*/
|
|
9086
|
+
joinOpenEventBooking(eventBookingId, joinOpenEventBookingRequest, options) {
|
|
9087
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9088
|
+
var _a, _b, _c;
|
|
9089
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenEventBooking(eventBookingId, joinOpenEventBookingRequest, options);
|
|
9090
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9091
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.joinOpenEventBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9092
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9093
|
+
});
|
|
9094
|
+
},
|
|
8365
9095
|
/**
|
|
8366
9096
|
* Leave an event (user)
|
|
8367
9097
|
* @param {string} eventId
|
|
@@ -8377,6 +9107,21 @@ const EventsApiFp = function (configuration) {
|
|
|
8377
9107
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8378
9108
|
});
|
|
8379
9109
|
},
|
|
9110
|
+
/**
|
|
9111
|
+
*
|
|
9112
|
+
* @param {string} eventBookingId
|
|
9113
|
+
* @param {*} [options] Override http request option.
|
|
9114
|
+
* @throws {RequiredError}
|
|
9115
|
+
*/
|
|
9116
|
+
leaveOpenEventBooking(eventBookingId, options) {
|
|
9117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9118
|
+
var _a, _b, _c;
|
|
9119
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.leaveOpenEventBooking(eventBookingId, options);
|
|
9120
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9121
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.leaveOpenEventBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9122
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9123
|
+
});
|
|
9124
|
+
},
|
|
8380
9125
|
};
|
|
8381
9126
|
};
|
|
8382
9127
|
exports.EventsApiFp = EventsApiFp;
|
|
@@ -8414,6 +9159,15 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
8414
9159
|
getEventById(requestParameters, options) {
|
|
8415
9160
|
return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
8416
9161
|
},
|
|
9162
|
+
/**
|
|
9163
|
+
*
|
|
9164
|
+
* @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
|
|
9165
|
+
* @param {*} [options] Override http request option.
|
|
9166
|
+
* @throws {RequiredError}
|
|
9167
|
+
*/
|
|
9168
|
+
getOpenEventBookings(requestParameters = {}, options) {
|
|
9169
|
+
return localVarFp.getOpenEventBookings(requestParameters.clubId, requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
9170
|
+
},
|
|
8417
9171
|
/**
|
|
8418
9172
|
* Get all published events for a club
|
|
8419
9173
|
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
@@ -8432,6 +9186,15 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
8432
9186
|
joinEvent(requestParameters, options) {
|
|
8433
9187
|
return localVarFp.joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(axios, basePath));
|
|
8434
9188
|
},
|
|
9189
|
+
/**
|
|
9190
|
+
*
|
|
9191
|
+
* @param {EventsApiJoinOpenEventBookingRequest} requestParameters Request parameters.
|
|
9192
|
+
* @param {*} [options] Override http request option.
|
|
9193
|
+
* @throws {RequiredError}
|
|
9194
|
+
*/
|
|
9195
|
+
joinOpenEventBooking(requestParameters, options) {
|
|
9196
|
+
return localVarFp.joinOpenEventBooking(requestParameters.eventBookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(axios, basePath));
|
|
9197
|
+
},
|
|
8435
9198
|
/**
|
|
8436
9199
|
* Leave an event (user)
|
|
8437
9200
|
* @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
|
|
@@ -8441,6 +9204,15 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
8441
9204
|
leaveEvent(requestParameters, options) {
|
|
8442
9205
|
return localVarFp.leaveEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
8443
9206
|
},
|
|
9207
|
+
/**
|
|
9208
|
+
*
|
|
9209
|
+
* @param {EventsApiLeaveOpenEventBookingRequest} requestParameters Request parameters.
|
|
9210
|
+
* @param {*} [options] Override http request option.
|
|
9211
|
+
* @throws {RequiredError}
|
|
9212
|
+
*/
|
|
9213
|
+
leaveOpenEventBooking(requestParameters, options) {
|
|
9214
|
+
return localVarFp.leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
|
|
9215
|
+
},
|
|
8444
9216
|
};
|
|
8445
9217
|
};
|
|
8446
9218
|
exports.EventsApiFactory = EventsApiFactory;
|
|
@@ -8481,6 +9253,16 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
8481
9253
|
getEventById(requestParameters, options) {
|
|
8482
9254
|
return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
8483
9255
|
}
|
|
9256
|
+
/**
|
|
9257
|
+
*
|
|
9258
|
+
* @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
|
|
9259
|
+
* @param {*} [options] Override http request option.
|
|
9260
|
+
* @throws {RequiredError}
|
|
9261
|
+
* @memberof EventsApi
|
|
9262
|
+
*/
|
|
9263
|
+
getOpenEventBookings(requestParameters = {}, options) {
|
|
9264
|
+
return (0, exports.EventsApiFp)(this.configuration).getOpenEventBookings(requestParameters.clubId, requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
9265
|
+
}
|
|
8484
9266
|
/**
|
|
8485
9267
|
* Get all published events for a club
|
|
8486
9268
|
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
@@ -8501,6 +9283,16 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
8501
9283
|
joinEvent(requestParameters, options) {
|
|
8502
9284
|
return (0, exports.EventsApiFp)(this.configuration).joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8503
9285
|
}
|
|
9286
|
+
/**
|
|
9287
|
+
*
|
|
9288
|
+
* @param {EventsApiJoinOpenEventBookingRequest} requestParameters Request parameters.
|
|
9289
|
+
* @param {*} [options] Override http request option.
|
|
9290
|
+
* @throws {RequiredError}
|
|
9291
|
+
* @memberof EventsApi
|
|
9292
|
+
*/
|
|
9293
|
+
joinOpenEventBooking(requestParameters, options) {
|
|
9294
|
+
return (0, exports.EventsApiFp)(this.configuration).joinOpenEventBooking(requestParameters.eventBookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9295
|
+
}
|
|
8504
9296
|
/**
|
|
8505
9297
|
* Leave an event (user)
|
|
8506
9298
|
* @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
|
|
@@ -8511,6 +9303,16 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
8511
9303
|
leaveEvent(requestParameters, options) {
|
|
8512
9304
|
return (0, exports.EventsApiFp)(this.configuration).leaveEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
8513
9305
|
}
|
|
9306
|
+
/**
|
|
9307
|
+
*
|
|
9308
|
+
* @param {EventsApiLeaveOpenEventBookingRequest} requestParameters Request parameters.
|
|
9309
|
+
* @param {*} [options] Override http request option.
|
|
9310
|
+
* @throws {RequiredError}
|
|
9311
|
+
* @memberof EventsApi
|
|
9312
|
+
*/
|
|
9313
|
+
leaveOpenEventBooking(requestParameters, options) {
|
|
9314
|
+
return (0, exports.EventsApiFp)(this.configuration).leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
|
|
9315
|
+
}
|
|
8514
9316
|
}
|
|
8515
9317
|
exports.EventsApi = EventsApi;
|
|
8516
9318
|
/**
|
|
@@ -9261,7 +10063,7 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
9261
10063
|
};
|
|
9262
10064
|
}),
|
|
9263
10065
|
/**
|
|
9264
|
-
*
|
|
10066
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
9265
10067
|
* @param {*} [options] Override http request option.
|
|
9266
10068
|
* @throws {RequiredError}
|
|
9267
10069
|
*/
|
|
@@ -9427,7 +10229,7 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
9427
10229
|
});
|
|
9428
10230
|
},
|
|
9429
10231
|
/**
|
|
9430
|
-
*
|
|
10232
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
9431
10233
|
* @param {*} [options] Override http request option.
|
|
9432
10234
|
* @throws {RequiredError}
|
|
9433
10235
|
*/
|
|
@@ -9507,7 +10309,7 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
9507
10309
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
9508
10310
|
},
|
|
9509
10311
|
/**
|
|
9510
|
-
*
|
|
10312
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
9511
10313
|
* @param {*} [options] Override http request option.
|
|
9512
10314
|
* @throws {RequiredError}
|
|
9513
10315
|
*/
|
|
@@ -9563,7 +10365,7 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
9563
10365
|
return (0, exports.EventsStaffApiFp)(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
9564
10366
|
}
|
|
9565
10367
|
/**
|
|
9566
|
-
*
|
|
10368
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
9567
10369
|
* @param {*} [options] Override http request option.
|
|
9568
10370
|
* @throws {RequiredError}
|
|
9569
10371
|
* @memberof EventsStaffApi
|