@tennac-booking/sdk 1.0.144 → 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 +7 -0
- package/README.md +15 -0
- package/api.ts +989 -9
- package/dist/api.d.ts +593 -4
- package/dist/api.js +635 -7
- package/dist/esm/api.d.ts +593 -4
- package/dist/esm/api.js +628 -4
- package/docs/BookingsApi.md +157 -0
- package/docs/BookingsUserApi.md +53 -0
- package/docs/ClubCustomerMeApi.md +51 -0
- package/docs/ClubsApi.md +55 -0
- package/docs/CreateBookingRequest.md +4 -0
- package/docs/CreateOpenBookingRequest.md +28 -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/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 = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = 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
|
/**
|
|
@@ -3587,6 +3854,102 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
3587
3854
|
}
|
|
3588
3855
|
}
|
|
3589
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;
|
|
3590
3953
|
/**
|
|
3591
3954
|
* ClubCustomerStaffApi - axios parameter creator
|
|
3592
3955
|
* @export
|
|
@@ -5370,6 +5733,34 @@ const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
5370
5733
|
options: localVarRequestOptions,
|
|
5371
5734
|
};
|
|
5372
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
|
+
}),
|
|
5373
5764
|
/**
|
|
5374
5765
|
*
|
|
5375
5766
|
* @param {string} id
|
|
@@ -5629,6 +6020,21 @@ const ClubsApiFp = function (configuration) {
|
|
|
5629
6020
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5630
6021
|
});
|
|
5631
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
|
+
},
|
|
5632
6038
|
/**
|
|
5633
6039
|
*
|
|
5634
6040
|
* @param {string} id
|
|
@@ -5779,6 +6185,15 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
5779
6185
|
getCourtsByClubAndSportById(requestParameters, options) {
|
|
5780
6186
|
return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
5781
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
|
+
},
|
|
5782
6197
|
/**
|
|
5783
6198
|
*
|
|
5784
6199
|
* @param {ClubsApiGetPublishedActualitiesRequest} requestParameters Request parameters.
|
|
@@ -5922,6 +6337,16 @@ class ClubsApi extends base_1.BaseAPI {
|
|
|
5922
6337
|
getCourtsByClubAndSportById(requestParameters, options) {
|
|
5923
6338
|
return (0, exports.ClubsApiFp)(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
5924
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
|
+
}
|
|
5925
6350
|
/**
|
|
5926
6351
|
*
|
|
5927
6352
|
* @param {ClubsApiGetPublishedActualitiesRequest} requestParameters Request parameters.
|
|
@@ -8337,6 +8762,38 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
8337
8762
|
options: localVarRequestOptions,
|
|
8338
8763
|
};
|
|
8339
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
|
+
}),
|
|
8340
8797
|
/**
|
|
8341
8798
|
* Get all published events for a club
|
|
8342
8799
|
* @param {string} [clubId]
|
|
@@ -8413,6 +8870,42 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
8413
8870
|
options: localVarRequestOptions,
|
|
8414
8871
|
};
|
|
8415
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
|
+
}),
|
|
8416
8909
|
/**
|
|
8417
8910
|
* Leave an event (user)
|
|
8418
8911
|
* @param {string} eventId
|
|
@@ -8444,6 +8937,37 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
8444
8937
|
options: localVarRequestOptions,
|
|
8445
8938
|
};
|
|
8446
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
|
+
}),
|
|
8447
8971
|
};
|
|
8448
8972
|
};
|
|
8449
8973
|
exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
|
|
@@ -8502,6 +9026,22 @@ const EventsApiFp = function (configuration) {
|
|
|
8502
9026
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8503
9027
|
});
|
|
8504
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
|
+
},
|
|
8505
9045
|
/**
|
|
8506
9046
|
* Get all published events for a club
|
|
8507
9047
|
* @param {string} [clubId]
|
|
@@ -8536,6 +9076,22 @@ const EventsApiFp = function (configuration) {
|
|
|
8536
9076
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8537
9077
|
});
|
|
8538
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
|
+
},
|
|
8539
9095
|
/**
|
|
8540
9096
|
* Leave an event (user)
|
|
8541
9097
|
* @param {string} eventId
|
|
@@ -8551,6 +9107,21 @@ const EventsApiFp = function (configuration) {
|
|
|
8551
9107
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8552
9108
|
});
|
|
8553
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
|
+
},
|
|
8554
9125
|
};
|
|
8555
9126
|
};
|
|
8556
9127
|
exports.EventsApiFp = EventsApiFp;
|
|
@@ -8588,6 +9159,15 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
8588
9159
|
getEventById(requestParameters, options) {
|
|
8589
9160
|
return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
8590
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
|
+
},
|
|
8591
9171
|
/**
|
|
8592
9172
|
* Get all published events for a club
|
|
8593
9173
|
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
@@ -8606,6 +9186,15 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
8606
9186
|
joinEvent(requestParameters, options) {
|
|
8607
9187
|
return localVarFp.joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(axios, basePath));
|
|
8608
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
|
+
},
|
|
8609
9198
|
/**
|
|
8610
9199
|
* Leave an event (user)
|
|
8611
9200
|
* @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
|
|
@@ -8615,6 +9204,15 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
8615
9204
|
leaveEvent(requestParameters, options) {
|
|
8616
9205
|
return localVarFp.leaveEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
8617
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
|
+
},
|
|
8618
9216
|
};
|
|
8619
9217
|
};
|
|
8620
9218
|
exports.EventsApiFactory = EventsApiFactory;
|
|
@@ -8655,6 +9253,16 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
8655
9253
|
getEventById(requestParameters, options) {
|
|
8656
9254
|
return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
8657
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
|
+
}
|
|
8658
9266
|
/**
|
|
8659
9267
|
* Get all published events for a club
|
|
8660
9268
|
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
@@ -8675,6 +9283,16 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
8675
9283
|
joinEvent(requestParameters, options) {
|
|
8676
9284
|
return (0, exports.EventsApiFp)(this.configuration).joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8677
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
|
+
}
|
|
8678
9296
|
/**
|
|
8679
9297
|
* Leave an event (user)
|
|
8680
9298
|
* @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
|
|
@@ -8685,6 +9303,16 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
8685
9303
|
leaveEvent(requestParameters, options) {
|
|
8686
9304
|
return (0, exports.EventsApiFp)(this.configuration).leaveEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
8687
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
|
+
}
|
|
8688
9316
|
}
|
|
8689
9317
|
exports.EventsApi = EventsApi;
|
|
8690
9318
|
/**
|
|
@@ -9435,7 +10063,7 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
9435
10063
|
};
|
|
9436
10064
|
}),
|
|
9437
10065
|
/**
|
|
9438
|
-
*
|
|
10066
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
9439
10067
|
* @param {*} [options] Override http request option.
|
|
9440
10068
|
* @throws {RequiredError}
|
|
9441
10069
|
*/
|
|
@@ -9601,7 +10229,7 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
9601
10229
|
});
|
|
9602
10230
|
},
|
|
9603
10231
|
/**
|
|
9604
|
-
*
|
|
10232
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
9605
10233
|
* @param {*} [options] Override http request option.
|
|
9606
10234
|
* @throws {RequiredError}
|
|
9607
10235
|
*/
|
|
@@ -9681,7 +10309,7 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
9681
10309
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
9682
10310
|
},
|
|
9683
10311
|
/**
|
|
9684
|
-
*
|
|
10312
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
9685
10313
|
* @param {*} [options] Override http request option.
|
|
9686
10314
|
* @throws {RequiredError}
|
|
9687
10315
|
*/
|
|
@@ -9737,7 +10365,7 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
9737
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));
|
|
9738
10366
|
}
|
|
9739
10367
|
/**
|
|
9740
|
-
*
|
|
10368
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
9741
10369
|
* @param {*} [options] Override http request option.
|
|
9742
10370
|
* @throws {RequiredError}
|
|
9743
10371
|
* @memberof EventsStaffApi
|