@tennac-booking/sdk 1.0.43 → 1.0.45
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 +0 -24
- package/README.md +0 -61
- package/api.ts +525 -4885
- package/dist/api.d.ts +365 -2819
- package/dist/api.js +389 -3591
- package/dist/esm/api.d.ts +365 -2819
- package/dist/esm/api.js +369 -3547
- package/docs/ClubMember.md +1 -1
- package/docs/UserBookingsApi.md +0 -46
- package/docs/UsersApi.md +0 -236
- package/package.json +1 -1
- package/docs/BaseUser.md +0 -76
- package/docs/IUserAttributesFavoritePlayersInner.md +0 -18
- package/docs/PickUserResponseExcludeKeyofUserResponseLocation.md +0 -75
- package/docs/PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner.md +0 -22
- package/docs/UpdateCustomerRequestBodyAddress.md +0 -30
- package/docs/UpdateCustomerResponseCustomer.md +0 -28
- package/docs/UserLocationSummary.md +0 -44
package/dist/api.js
CHANGED
|
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.ManagerBookingsApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DiagnosticsApi = exports.DiagnosticsApiFactory = exports.DiagnosticsApiFp = exports.DiagnosticsApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserBookingItemBookingStatusEnum = exports.UserBookingItemMyPaymentStatusEnum = exports.UpdateCourtRequestSurfaceEnum = exports.UpdateCourtRequestStatusEnum = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentStatusInvoiceStatusEnum = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.LocationTypeEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.IUserLocationTypeEnum = exports.Gender = exports.EventBookingStatusEnum = exports.DiagnosticsResponseStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtWithNameResponseSurfaceEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.ClubMemberRoleEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = exports.BookingPopulatedStatusEnum = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
|
|
26
26
|
exports.StaffEventsApiFactory = exports.StaffEventsApiFp = exports.StaffEventsApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.StaffBookingsApi = exports.StaffBookingsApiFactory = exports.StaffBookingsApiFp = exports.StaffBookingsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerEventsApi = exports.ManagerEventsApiFactory = exports.ManagerEventsApiFp = exports.ManagerEventsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = void 0;
|
|
27
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.
|
|
27
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.StaffEventsApi = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -4552,30 +4552,30 @@ class StaffEventsApi extends base_1.BaseAPI {
|
|
|
4552
4552
|
}
|
|
4553
4553
|
exports.StaffEventsApi = StaffEventsApi;
|
|
4554
4554
|
/**
|
|
4555
|
-
*
|
|
4555
|
+
* UserBookingsApi - axios parameter creator
|
|
4556
4556
|
* @export
|
|
4557
4557
|
*/
|
|
4558
|
-
const
|
|
4558
|
+
const UserBookingsApiAxiosParamCreator = function (configuration) {
|
|
4559
4559
|
return {
|
|
4560
4560
|
/**
|
|
4561
|
-
*
|
|
4562
|
-
* @summary
|
|
4563
|
-
* @param {string}
|
|
4561
|
+
* Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
|
|
4562
|
+
* @summary Bloquer un créneau
|
|
4563
|
+
* @param {string} slotId ID MongoDB du créneau à bloquer
|
|
4564
4564
|
* @param {*} [options] Override http request option.
|
|
4565
4565
|
* @throws {RequiredError}
|
|
4566
4566
|
*/
|
|
4567
|
-
|
|
4568
|
-
// verify required parameter '
|
|
4569
|
-
(0, common_1.assertParamExists)('
|
|
4570
|
-
const localVarPath = `/api/
|
|
4571
|
-
.replace(`{${"
|
|
4567
|
+
blockSlot: (slotId_1, ...args_1) => __awaiter(this, [slotId_1, ...args_1], void 0, function* (slotId, options = {}) {
|
|
4568
|
+
// verify required parameter 'slotId' is not null or undefined
|
|
4569
|
+
(0, common_1.assertParamExists)('blockSlot', 'slotId', slotId);
|
|
4570
|
+
const localVarPath = `/api/bookings/pre-book/{slotId}`
|
|
4571
|
+
.replace(`{${"slotId"}}`, encodeURIComponent(String(slotId)));
|
|
4572
4572
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4573
4573
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4574
4574
|
let baseOptions;
|
|
4575
4575
|
if (configuration) {
|
|
4576
4576
|
baseOptions = configuration.baseOptions;
|
|
4577
4577
|
}
|
|
4578
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4578
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
4579
4579
|
const localVarHeaderParameter = {};
|
|
4580
4580
|
const localVarQueryParameter = {};
|
|
4581
4581
|
// authentication bearerAuth required
|
|
@@ -4590,28 +4590,33 @@ const StaffProfileApiAxiosParamCreator = function (configuration) {
|
|
|
4590
4590
|
};
|
|
4591
4591
|
}),
|
|
4592
4592
|
/**
|
|
4593
|
-
*
|
|
4594
|
-
* @summary
|
|
4593
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
4594
|
+
* @summary Créer une réservation
|
|
4595
|
+
* @param {CreateBookingRequest} createBookingRequest
|
|
4595
4596
|
* @param {*} [options] Override http request option.
|
|
4596
4597
|
* @throws {RequiredError}
|
|
4597
4598
|
*/
|
|
4598
|
-
|
|
4599
|
-
|
|
4599
|
+
createBooking: (createBookingRequest_1, ...args_1) => __awaiter(this, [createBookingRequest_1, ...args_1], void 0, function* (createBookingRequest, options = {}) {
|
|
4600
|
+
// verify required parameter 'createBookingRequest' is not null or undefined
|
|
4601
|
+
(0, common_1.assertParamExists)('createBooking', 'createBookingRequest', createBookingRequest);
|
|
4602
|
+
const localVarPath = `/api/bookings`;
|
|
4600
4603
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4601
4604
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4602
4605
|
let baseOptions;
|
|
4603
4606
|
if (configuration) {
|
|
4604
4607
|
baseOptions = configuration.baseOptions;
|
|
4605
4608
|
}
|
|
4606
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4609
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4607
4610
|
const localVarHeaderParameter = {};
|
|
4608
4611
|
const localVarQueryParameter = {};
|
|
4609
4612
|
// authentication bearerAuth required
|
|
4610
4613
|
// http bearer authentication required
|
|
4611
4614
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4615
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4612
4616
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4613
4617
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4614
4618
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4619
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBookingRequest, localVarRequestOptions, configuration);
|
|
4615
4620
|
return {
|
|
4616
4621
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4617
4622
|
options: localVarRequestOptions,
|
|
@@ -4619,141 +4624,147 @@ const StaffProfileApiAxiosParamCreator = function (configuration) {
|
|
|
4619
4624
|
}),
|
|
4620
4625
|
};
|
|
4621
4626
|
};
|
|
4622
|
-
exports.
|
|
4627
|
+
exports.UserBookingsApiAxiosParamCreator = UserBookingsApiAxiosParamCreator;
|
|
4623
4628
|
/**
|
|
4624
|
-
*
|
|
4629
|
+
* UserBookingsApi - functional programming interface
|
|
4625
4630
|
* @export
|
|
4626
4631
|
*/
|
|
4627
|
-
const
|
|
4628
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
4632
|
+
const UserBookingsApiFp = function (configuration) {
|
|
4633
|
+
const localVarAxiosParamCreator = (0, exports.UserBookingsApiAxiosParamCreator)(configuration);
|
|
4629
4634
|
return {
|
|
4630
4635
|
/**
|
|
4631
|
-
*
|
|
4632
|
-
* @summary
|
|
4633
|
-
* @param {string}
|
|
4636
|
+
* Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
|
|
4637
|
+
* @summary Bloquer un créneau
|
|
4638
|
+
* @param {string} slotId ID MongoDB du créneau à bloquer
|
|
4634
4639
|
* @param {*} [options] Override http request option.
|
|
4635
4640
|
* @throws {RequiredError}
|
|
4636
4641
|
*/
|
|
4637
|
-
|
|
4642
|
+
blockSlot(slotId, options) {
|
|
4638
4643
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4639
4644
|
var _a, _b, _c;
|
|
4640
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4645
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.blockSlot(slotId, options);
|
|
4641
4646
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4642
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
4647
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserBookingsApi.blockSlot']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4643
4648
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4644
4649
|
});
|
|
4645
4650
|
},
|
|
4646
4651
|
/**
|
|
4647
|
-
*
|
|
4648
|
-
* @summary
|
|
4652
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
4653
|
+
* @summary Créer une réservation
|
|
4654
|
+
* @param {CreateBookingRequest} createBookingRequest
|
|
4649
4655
|
* @param {*} [options] Override http request option.
|
|
4650
4656
|
* @throws {RequiredError}
|
|
4651
4657
|
*/
|
|
4652
|
-
|
|
4658
|
+
createBooking(createBookingRequest, options) {
|
|
4653
4659
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4654
4660
|
var _a, _b, _c;
|
|
4655
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4661
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBooking(createBookingRequest, options);
|
|
4656
4662
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4657
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
4663
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserBookingsApi.createBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4658
4664
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4659
4665
|
});
|
|
4660
4666
|
},
|
|
4661
4667
|
};
|
|
4662
4668
|
};
|
|
4663
|
-
exports.
|
|
4669
|
+
exports.UserBookingsApiFp = UserBookingsApiFp;
|
|
4664
4670
|
/**
|
|
4665
|
-
*
|
|
4671
|
+
* UserBookingsApi - factory interface
|
|
4666
4672
|
* @export
|
|
4667
4673
|
*/
|
|
4668
|
-
const
|
|
4669
|
-
const localVarFp = (0, exports.
|
|
4674
|
+
const UserBookingsApiFactory = function (configuration, basePath, axios) {
|
|
4675
|
+
const localVarFp = (0, exports.UserBookingsApiFp)(configuration);
|
|
4670
4676
|
return {
|
|
4671
4677
|
/**
|
|
4672
|
-
*
|
|
4673
|
-
* @summary
|
|
4674
|
-
* @param {
|
|
4678
|
+
* Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
|
|
4679
|
+
* @summary Bloquer un créneau
|
|
4680
|
+
* @param {UserBookingsApiBlockSlotRequest} requestParameters Request parameters.
|
|
4675
4681
|
* @param {*} [options] Override http request option.
|
|
4676
4682
|
* @throws {RequiredError}
|
|
4677
4683
|
*/
|
|
4678
|
-
|
|
4679
|
-
return localVarFp.
|
|
4684
|
+
blockSlot(requestParameters, options) {
|
|
4685
|
+
return localVarFp.blockSlot(requestParameters.slotId, options).then((request) => request(axios, basePath));
|
|
4680
4686
|
},
|
|
4681
4687
|
/**
|
|
4682
|
-
*
|
|
4683
|
-
* @summary
|
|
4688
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
4689
|
+
* @summary Créer une réservation
|
|
4690
|
+
* @param {UserBookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
4684
4691
|
* @param {*} [options] Override http request option.
|
|
4685
4692
|
* @throws {RequiredError}
|
|
4686
4693
|
*/
|
|
4687
|
-
|
|
4688
|
-
return localVarFp.
|
|
4694
|
+
createBooking(requestParameters, options) {
|
|
4695
|
+
return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
|
|
4689
4696
|
},
|
|
4690
4697
|
};
|
|
4691
4698
|
};
|
|
4692
|
-
exports.
|
|
4699
|
+
exports.UserBookingsApiFactory = UserBookingsApiFactory;
|
|
4693
4700
|
/**
|
|
4694
|
-
*
|
|
4701
|
+
* UserBookingsApi - object-oriented interface
|
|
4695
4702
|
* @export
|
|
4696
|
-
* @class
|
|
4703
|
+
* @class UserBookingsApi
|
|
4697
4704
|
* @extends {BaseAPI}
|
|
4698
4705
|
*/
|
|
4699
|
-
class
|
|
4706
|
+
class UserBookingsApi extends base_1.BaseAPI {
|
|
4700
4707
|
/**
|
|
4701
|
-
*
|
|
4702
|
-
* @summary
|
|
4703
|
-
* @param {
|
|
4708
|
+
* Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
|
|
4709
|
+
* @summary Bloquer un créneau
|
|
4710
|
+
* @param {UserBookingsApiBlockSlotRequest} requestParameters Request parameters.
|
|
4704
4711
|
* @param {*} [options] Override http request option.
|
|
4705
4712
|
* @throws {RequiredError}
|
|
4706
|
-
* @memberof
|
|
4713
|
+
* @memberof UserBookingsApi
|
|
4707
4714
|
*/
|
|
4708
|
-
|
|
4709
|
-
return (0, exports.
|
|
4715
|
+
blockSlot(requestParameters, options) {
|
|
4716
|
+
return (0, exports.UserBookingsApiFp)(this.configuration).blockSlot(requestParameters.slotId, options).then((request) => request(this.axios, this.basePath));
|
|
4710
4717
|
}
|
|
4711
4718
|
/**
|
|
4712
|
-
*
|
|
4713
|
-
* @summary
|
|
4719
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
4720
|
+
* @summary Créer une réservation
|
|
4721
|
+
* @param {UserBookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
4714
4722
|
* @param {*} [options] Override http request option.
|
|
4715
4723
|
* @throws {RequiredError}
|
|
4716
|
-
* @memberof
|
|
4724
|
+
* @memberof UserBookingsApi
|
|
4717
4725
|
*/
|
|
4718
|
-
|
|
4719
|
-
return (0, exports.
|
|
4726
|
+
createBooking(requestParameters, options) {
|
|
4727
|
+
return (0, exports.UserBookingsApiFp)(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4720
4728
|
}
|
|
4721
4729
|
}
|
|
4722
|
-
exports.
|
|
4730
|
+
exports.UserBookingsApi = UserBookingsApi;
|
|
4723
4731
|
/**
|
|
4724
|
-
*
|
|
4732
|
+
* UserClubCourtsApi - axios parameter creator
|
|
4725
4733
|
* @export
|
|
4726
4734
|
*/
|
|
4727
|
-
const
|
|
4735
|
+
const UserClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
4728
4736
|
return {
|
|
4729
4737
|
/**
|
|
4730
4738
|
*
|
|
4731
|
-
* @summary
|
|
4732
|
-
* @param {
|
|
4739
|
+
* @summary Récupérer les terrains d\'un club pour un sport spécifique
|
|
4740
|
+
* @param {string} id ID du club
|
|
4741
|
+
* @param {string} sportId ID du sport
|
|
4733
4742
|
* @param {*} [options] Override http request option.
|
|
4734
4743
|
* @throws {RequiredError}
|
|
4735
4744
|
*/
|
|
4736
|
-
|
|
4737
|
-
// verify required parameter '
|
|
4738
|
-
(0, common_1.assertParamExists)('
|
|
4739
|
-
|
|
4745
|
+
getCourtsByClubAndSport: (id_1, sportId_1, ...args_1) => __awaiter(this, [id_1, sportId_1, ...args_1], void 0, function* (id, sportId, options = {}) {
|
|
4746
|
+
// verify required parameter 'id' is not null or undefined
|
|
4747
|
+
(0, common_1.assertParamExists)('getCourtsByClubAndSport', 'id', id);
|
|
4748
|
+
// verify required parameter 'sportId' is not null or undefined
|
|
4749
|
+
(0, common_1.assertParamExists)('getCourtsByClubAndSport', 'sportId', sportId);
|
|
4750
|
+
const localVarPath = `/api/clubs/{id}/sports/{sportId}/courts`
|
|
4751
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4752
|
+
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
|
|
4740
4753
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4741
4754
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4742
4755
|
let baseOptions;
|
|
4743
4756
|
if (configuration) {
|
|
4744
4757
|
baseOptions = configuration.baseOptions;
|
|
4745
4758
|
}
|
|
4746
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4759
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4747
4760
|
const localVarHeaderParameter = {};
|
|
4748
4761
|
const localVarQueryParameter = {};
|
|
4749
4762
|
// authentication bearerAuth required
|
|
4750
4763
|
// http bearer authentication required
|
|
4751
4764
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4752
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4753
4765
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4754
4766
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4755
4767
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4756
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequestBody, localVarRequestOptions, configuration);
|
|
4757
4768
|
return {
|
|
4758
4769
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4759
4770
|
options: localVarRequestOptions,
|
|
@@ -4761,107 +4772,107 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4761
4772
|
}),
|
|
4762
4773
|
};
|
|
4763
4774
|
};
|
|
4764
|
-
exports.
|
|
4775
|
+
exports.UserClubCourtsApiAxiosParamCreator = UserClubCourtsApiAxiosParamCreator;
|
|
4765
4776
|
/**
|
|
4766
|
-
*
|
|
4777
|
+
* UserClubCourtsApi - functional programming interface
|
|
4767
4778
|
* @export
|
|
4768
4779
|
*/
|
|
4769
|
-
const
|
|
4770
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
4780
|
+
const UserClubCourtsApiFp = function (configuration) {
|
|
4781
|
+
const localVarAxiosParamCreator = (0, exports.UserClubCourtsApiAxiosParamCreator)(configuration);
|
|
4771
4782
|
return {
|
|
4772
4783
|
/**
|
|
4773
4784
|
*
|
|
4774
|
-
* @summary
|
|
4775
|
-
* @param {
|
|
4785
|
+
* @summary Récupérer les terrains d\'un club pour un sport spécifique
|
|
4786
|
+
* @param {string} id ID du club
|
|
4787
|
+
* @param {string} sportId ID du sport
|
|
4776
4788
|
* @param {*} [options] Override http request option.
|
|
4777
4789
|
* @throws {RequiredError}
|
|
4778
4790
|
*/
|
|
4779
|
-
|
|
4791
|
+
getCourtsByClubAndSport(id, sportId, options) {
|
|
4780
4792
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4781
4793
|
var _a, _b, _c;
|
|
4782
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4794
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClubAndSport(id, sportId, options);
|
|
4783
4795
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4784
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
4796
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubCourtsApi.getCourtsByClubAndSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4785
4797
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4786
4798
|
});
|
|
4787
4799
|
},
|
|
4788
4800
|
};
|
|
4789
4801
|
};
|
|
4790
|
-
exports.
|
|
4802
|
+
exports.UserClubCourtsApiFp = UserClubCourtsApiFp;
|
|
4791
4803
|
/**
|
|
4792
|
-
*
|
|
4804
|
+
* UserClubCourtsApi - factory interface
|
|
4793
4805
|
* @export
|
|
4794
4806
|
*/
|
|
4795
|
-
const
|
|
4796
|
-
const localVarFp = (0, exports.
|
|
4807
|
+
const UserClubCourtsApiFactory = function (configuration, basePath, axios) {
|
|
4808
|
+
const localVarFp = (0, exports.UserClubCourtsApiFp)(configuration);
|
|
4797
4809
|
return {
|
|
4798
4810
|
/**
|
|
4799
4811
|
*
|
|
4800
|
-
* @summary
|
|
4801
|
-
* @param {
|
|
4812
|
+
* @summary Récupérer les terrains d\'un club pour un sport spécifique
|
|
4813
|
+
* @param {UserClubCourtsApiGetCourtsByClubAndSportRequest} requestParameters Request parameters.
|
|
4802
4814
|
* @param {*} [options] Override http request option.
|
|
4803
4815
|
* @throws {RequiredError}
|
|
4804
4816
|
*/
|
|
4805
|
-
|
|
4806
|
-
return localVarFp.
|
|
4817
|
+
getCourtsByClubAndSport(requestParameters, options) {
|
|
4818
|
+
return localVarFp.getCourtsByClubAndSport(requestParameters.id, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
4807
4819
|
},
|
|
4808
4820
|
};
|
|
4809
4821
|
};
|
|
4810
|
-
exports.
|
|
4822
|
+
exports.UserClubCourtsApiFactory = UserClubCourtsApiFactory;
|
|
4811
4823
|
/**
|
|
4812
|
-
*
|
|
4824
|
+
* UserClubCourtsApi - object-oriented interface
|
|
4813
4825
|
* @export
|
|
4814
|
-
* @class
|
|
4826
|
+
* @class UserClubCourtsApi
|
|
4815
4827
|
* @extends {BaseAPI}
|
|
4816
4828
|
*/
|
|
4817
|
-
class
|
|
4829
|
+
class UserClubCourtsApi extends base_1.BaseAPI {
|
|
4818
4830
|
/**
|
|
4819
4831
|
*
|
|
4820
|
-
* @summary
|
|
4821
|
-
* @param {
|
|
4832
|
+
* @summary Récupérer les terrains d\'un club pour un sport spécifique
|
|
4833
|
+
* @param {UserClubCourtsApiGetCourtsByClubAndSportRequest} requestParameters Request parameters.
|
|
4822
4834
|
* @param {*} [options] Override http request option.
|
|
4823
4835
|
* @throws {RequiredError}
|
|
4824
|
-
* @memberof
|
|
4836
|
+
* @memberof UserClubCourtsApi
|
|
4825
4837
|
*/
|
|
4826
|
-
|
|
4827
|
-
return (0, exports.
|
|
4838
|
+
getCourtsByClubAndSport(requestParameters, options) {
|
|
4839
|
+
return (0, exports.UserClubCourtsApiFp)(this.configuration).getCourtsByClubAndSport(requestParameters.id, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
4828
4840
|
}
|
|
4829
4841
|
}
|
|
4830
|
-
exports.
|
|
4842
|
+
exports.UserClubCourtsApi = UserClubCourtsApi;
|
|
4831
4843
|
/**
|
|
4832
|
-
*
|
|
4844
|
+
* UserClubSlotsApi - axios parameter creator
|
|
4833
4845
|
* @export
|
|
4834
4846
|
*/
|
|
4835
|
-
const
|
|
4847
|
+
const UserClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
4836
4848
|
return {
|
|
4837
4849
|
/**
|
|
4838
4850
|
*
|
|
4839
|
-
* @summary
|
|
4840
|
-
* @param {
|
|
4851
|
+
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
4852
|
+
* @param {string} clubID ID du club
|
|
4841
4853
|
* @param {*} [options] Override http request option.
|
|
4842
4854
|
* @throws {RequiredError}
|
|
4843
4855
|
*/
|
|
4844
|
-
|
|
4845
|
-
// verify required parameter '
|
|
4846
|
-
(0, common_1.assertParamExists)('
|
|
4847
|
-
const localVarPath = `/api/
|
|
4856
|
+
getAvailableSlotsByClub: (clubID_1, ...args_1) => __awaiter(this, [clubID_1, ...args_1], void 0, function* (clubID, options = {}) {
|
|
4857
|
+
// verify required parameter 'clubID' is not null or undefined
|
|
4858
|
+
(0, common_1.assertParamExists)('getAvailableSlotsByClub', 'clubID', clubID);
|
|
4859
|
+
const localVarPath = `/api/clubs/{clubID}/availableSlots`
|
|
4860
|
+
.replace(`{${"clubID"}}`, encodeURIComponent(String(clubID)));
|
|
4848
4861
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4849
4862
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4850
4863
|
let baseOptions;
|
|
4851
4864
|
if (configuration) {
|
|
4852
4865
|
baseOptions = configuration.baseOptions;
|
|
4853
4866
|
}
|
|
4854
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4867
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4855
4868
|
const localVarHeaderParameter = {};
|
|
4856
4869
|
const localVarQueryParameter = {};
|
|
4857
4870
|
// authentication bearerAuth required
|
|
4858
4871
|
// http bearer authentication required
|
|
4859
4872
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4860
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4861
4873
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4862
4874
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4863
4875
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4864
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(loginRequestBody, localVarRequestOptions, configuration);
|
|
4865
4876
|
return {
|
|
4866
4877
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4867
4878
|
options: localVarRequestOptions,
|
|
@@ -4869,65 +4880,47 @@ const UserAuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
4869
4880
|
}),
|
|
4870
4881
|
/**
|
|
4871
4882
|
*
|
|
4872
|
-
* @summary
|
|
4873
|
-
* @param {
|
|
4883
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
4884
|
+
* @param {string} id ID du club
|
|
4885
|
+
* @param {string} sportId ID du sport
|
|
4886
|
+
* @param {string} [start] Date de début (format ISO)
|
|
4887
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
4874
4888
|
* @param {*} [options] Override http request option.
|
|
4875
4889
|
* @throws {RequiredError}
|
|
4876
4890
|
*/
|
|
4877
|
-
|
|
4878
|
-
// verify required parameter '
|
|
4879
|
-
(0, common_1.assertParamExists)('
|
|
4880
|
-
|
|
4891
|
+
getAvailableSlotsBySports: (id_1, sportId_1, start_1, end_1, ...args_1) => __awaiter(this, [id_1, sportId_1, start_1, end_1, ...args_1], void 0, function* (id, sportId, start, end, options = {}) {
|
|
4892
|
+
// verify required parameter 'id' is not null or undefined
|
|
4893
|
+
(0, common_1.assertParamExists)('getAvailableSlotsBySports', 'id', id);
|
|
4894
|
+
// verify required parameter 'sportId' is not null or undefined
|
|
4895
|
+
(0, common_1.assertParamExists)('getAvailableSlotsBySports', 'sportId', sportId);
|
|
4896
|
+
const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots`
|
|
4897
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4898
|
+
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
|
|
4881
4899
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4882
4900
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4883
4901
|
let baseOptions;
|
|
4884
4902
|
if (configuration) {
|
|
4885
4903
|
baseOptions = configuration.baseOptions;
|
|
4886
4904
|
}
|
|
4887
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4905
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4888
4906
|
const localVarHeaderParameter = {};
|
|
4889
4907
|
const localVarQueryParameter = {};
|
|
4890
4908
|
// authentication bearerAuth required
|
|
4891
4909
|
// http bearer authentication required
|
|
4892
4910
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
}),
|
|
4903
|
-
/**
|
|
4904
|
-
*
|
|
4905
|
-
* @summary Crée un nouvel utilisateur
|
|
4906
|
-
* @param {RegisterRequestBody} registerRequestBody
|
|
4907
|
-
* @param {*} [options] Override http request option.
|
|
4908
|
-
* @throws {RequiredError}
|
|
4909
|
-
*/
|
|
4910
|
-
register: (registerRequestBody_1, ...args_1) => __awaiter(this, [registerRequestBody_1, ...args_1], void 0, function* (registerRequestBody, options = {}) {
|
|
4911
|
-
// verify required parameter 'registerRequestBody' is not null or undefined
|
|
4912
|
-
(0, common_1.assertParamExists)('register', 'registerRequestBody', registerRequestBody);
|
|
4913
|
-
const localVarPath = `/api/users`;
|
|
4914
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4915
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4916
|
-
let baseOptions;
|
|
4917
|
-
if (configuration) {
|
|
4918
|
-
baseOptions = configuration.baseOptions;
|
|
4911
|
+
if (start !== undefined) {
|
|
4912
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
4913
|
+
start.toISOString() :
|
|
4914
|
+
start;
|
|
4915
|
+
}
|
|
4916
|
+
if (end !== undefined) {
|
|
4917
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
4918
|
+
end.toISOString() :
|
|
4919
|
+
end;
|
|
4919
4920
|
}
|
|
4920
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4921
|
-
const localVarHeaderParameter = {};
|
|
4922
|
-
const localVarQueryParameter = {};
|
|
4923
|
-
// authentication bearerAuth required
|
|
4924
|
-
// http bearer authentication required
|
|
4925
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4926
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4927
4921
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4928
4922
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4929
4923
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4930
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(registerRequestBody, localVarRequestOptions, configuration);
|
|
4931
4924
|
return {
|
|
4932
4925
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4933
4926
|
options: localVarRequestOptions,
|
|
@@ -4935,32 +4928,39 @@ const UserAuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
4935
4928
|
}),
|
|
4936
4929
|
/**
|
|
4937
4930
|
*
|
|
4938
|
-
* @summary
|
|
4939
|
-
* @param {
|
|
4931
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
4932
|
+
* @param {string} id ID du club
|
|
4933
|
+
* @param {string} sportId ID du sport
|
|
4934
|
+
* @param {string} day Date du jour (format YYYY-MM-DD)
|
|
4940
4935
|
* @param {*} [options] Override http request option.
|
|
4941
4936
|
* @throws {RequiredError}
|
|
4942
4937
|
*/
|
|
4943
|
-
|
|
4944
|
-
// verify required parameter '
|
|
4945
|
-
(0, common_1.assertParamExists)('
|
|
4946
|
-
|
|
4938
|
+
getAvailableSlotsBySportsAndDay: (id_1, sportId_1, day_1, ...args_1) => __awaiter(this, [id_1, sportId_1, day_1, ...args_1], void 0, function* (id, sportId, day, options = {}) {
|
|
4939
|
+
// verify required parameter 'id' is not null or undefined
|
|
4940
|
+
(0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'id', id);
|
|
4941
|
+
// verify required parameter 'sportId' is not null or undefined
|
|
4942
|
+
(0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'sportId', sportId);
|
|
4943
|
+
// verify required parameter 'day' is not null or undefined
|
|
4944
|
+
(0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'day', day);
|
|
4945
|
+
const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots/{day}`
|
|
4946
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4947
|
+
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)))
|
|
4948
|
+
.replace(`{${"day"}}`, encodeURIComponent(String(day)));
|
|
4947
4949
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4948
4950
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4949
4951
|
let baseOptions;
|
|
4950
4952
|
if (configuration) {
|
|
4951
4953
|
baseOptions = configuration.baseOptions;
|
|
4952
4954
|
}
|
|
4953
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4955
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4954
4956
|
const localVarHeaderParameter = {};
|
|
4955
4957
|
const localVarQueryParameter = {};
|
|
4956
4958
|
// authentication bearerAuth required
|
|
4957
4959
|
// http bearer authentication required
|
|
4958
4960
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4959
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4960
4961
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4961
4962
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4962
4963
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4963
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(googleSignInRequestBody, localVarRequestOptions, configuration);
|
|
4964
4964
|
return {
|
|
4965
4965
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4966
4966
|
options: localVarRequestOptions,
|
|
@@ -4968,209 +4968,280 @@ const UserAuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
4968
4968
|
}),
|
|
4969
4969
|
};
|
|
4970
4970
|
};
|
|
4971
|
-
exports.
|
|
4971
|
+
exports.UserClubSlotsApiAxiosParamCreator = UserClubSlotsApiAxiosParamCreator;
|
|
4972
4972
|
/**
|
|
4973
|
-
*
|
|
4973
|
+
* UserClubSlotsApi - functional programming interface
|
|
4974
4974
|
* @export
|
|
4975
4975
|
*/
|
|
4976
|
-
const
|
|
4977
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
4976
|
+
const UserClubSlotsApiFp = function (configuration) {
|
|
4977
|
+
const localVarAxiosParamCreator = (0, exports.UserClubSlotsApiAxiosParamCreator)(configuration);
|
|
4978
4978
|
return {
|
|
4979
4979
|
/**
|
|
4980
4980
|
*
|
|
4981
|
-
* @summary
|
|
4982
|
-
* @param {
|
|
4981
|
+
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
4982
|
+
* @param {string} clubID ID du club
|
|
4983
4983
|
* @param {*} [options] Override http request option.
|
|
4984
4984
|
* @throws {RequiredError}
|
|
4985
4985
|
*/
|
|
4986
|
-
|
|
4986
|
+
getAvailableSlotsByClub(clubID, options) {
|
|
4987
4987
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4988
4988
|
var _a, _b, _c;
|
|
4989
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4989
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsByClub(clubID, options);
|
|
4990
4990
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4991
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
4991
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubSlotsApi.getAvailableSlotsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4992
4992
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4993
4993
|
});
|
|
4994
4994
|
},
|
|
4995
4995
|
/**
|
|
4996
4996
|
*
|
|
4997
|
-
* @summary
|
|
4998
|
-
* @param {
|
|
4999
|
-
* @param {
|
|
5000
|
-
* @
|
|
5001
|
-
|
|
5002
|
-
refreshToken(refreshTokenRequestBody, options) {
|
|
5003
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5004
|
-
var _a, _b, _c;
|
|
5005
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.refreshToken(refreshTokenRequestBody, options);
|
|
5006
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5007
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserAuthenticationApi.refreshToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5008
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5009
|
-
});
|
|
5010
|
-
},
|
|
5011
|
-
/**
|
|
5012
|
-
*
|
|
5013
|
-
* @summary Crée un nouvel utilisateur
|
|
5014
|
-
* @param {RegisterRequestBody} registerRequestBody
|
|
4997
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
4998
|
+
* @param {string} id ID du club
|
|
4999
|
+
* @param {string} sportId ID du sport
|
|
5000
|
+
* @param {string} [start] Date de début (format ISO)
|
|
5001
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
5015
5002
|
* @param {*} [options] Override http request option.
|
|
5016
5003
|
* @throws {RequiredError}
|
|
5017
5004
|
*/
|
|
5018
|
-
|
|
5005
|
+
getAvailableSlotsBySports(id, sportId, start, end, options) {
|
|
5019
5006
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5020
5007
|
var _a, _b, _c;
|
|
5021
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5008
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsBySports(id, sportId, start, end, options);
|
|
5022
5009
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5023
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
5010
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubSlotsApi.getAvailableSlotsBySports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5024
5011
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5025
5012
|
});
|
|
5026
5013
|
},
|
|
5027
5014
|
/**
|
|
5028
5015
|
*
|
|
5029
|
-
* @summary
|
|
5030
|
-
* @param {
|
|
5016
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
5017
|
+
* @param {string} id ID du club
|
|
5018
|
+
* @param {string} sportId ID du sport
|
|
5019
|
+
* @param {string} day Date du jour (format YYYY-MM-DD)
|
|
5031
5020
|
* @param {*} [options] Override http request option.
|
|
5032
5021
|
* @throws {RequiredError}
|
|
5033
5022
|
*/
|
|
5034
|
-
|
|
5023
|
+
getAvailableSlotsBySportsAndDay(id, sportId, day, options) {
|
|
5035
5024
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5036
5025
|
var _a, _b, _c;
|
|
5037
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5026
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsBySportsAndDay(id, sportId, day, options);
|
|
5038
5027
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5039
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
5028
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubSlotsApi.getAvailableSlotsBySportsAndDay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5040
5029
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5041
5030
|
});
|
|
5042
5031
|
},
|
|
5043
5032
|
};
|
|
5044
5033
|
};
|
|
5045
|
-
exports.
|
|
5034
|
+
exports.UserClubSlotsApiFp = UserClubSlotsApiFp;
|
|
5046
5035
|
/**
|
|
5047
|
-
*
|
|
5036
|
+
* UserClubSlotsApi - factory interface
|
|
5048
5037
|
* @export
|
|
5049
5038
|
*/
|
|
5050
|
-
const
|
|
5051
|
-
const localVarFp = (0, exports.
|
|
5039
|
+
const UserClubSlotsApiFactory = function (configuration, basePath, axios) {
|
|
5040
|
+
const localVarFp = (0, exports.UserClubSlotsApiFp)(configuration);
|
|
5052
5041
|
return {
|
|
5053
5042
|
/**
|
|
5054
5043
|
*
|
|
5055
|
-
* @summary
|
|
5056
|
-
* @param {
|
|
5057
|
-
* @param {*} [options] Override http request option.
|
|
5058
|
-
* @throws {RequiredError}
|
|
5059
|
-
*/
|
|
5060
|
-
login(requestParameters, options) {
|
|
5061
|
-
return localVarFp.login(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
5062
|
-
},
|
|
5063
|
-
/**
|
|
5064
|
-
*
|
|
5065
|
-
* @summary Rafraîchit le token d\'accès
|
|
5066
|
-
* @param {UserAuthenticationApiRefreshTokenRequest} requestParameters Request parameters.
|
|
5044
|
+
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
5045
|
+
* @param {UserClubSlotsApiGetAvailableSlotsByClubRequest} requestParameters Request parameters.
|
|
5067
5046
|
* @param {*} [options] Override http request option.
|
|
5068
5047
|
* @throws {RequiredError}
|
|
5069
5048
|
*/
|
|
5070
|
-
|
|
5071
|
-
return localVarFp.
|
|
5049
|
+
getAvailableSlotsByClub(requestParameters, options) {
|
|
5050
|
+
return localVarFp.getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(axios, basePath));
|
|
5072
5051
|
},
|
|
5073
5052
|
/**
|
|
5074
5053
|
*
|
|
5075
|
-
* @summary
|
|
5076
|
-
* @param {
|
|
5054
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
5055
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
|
|
5077
5056
|
* @param {*} [options] Override http request option.
|
|
5078
5057
|
* @throws {RequiredError}
|
|
5079
5058
|
*/
|
|
5080
|
-
|
|
5081
|
-
return localVarFp.
|
|
5059
|
+
getAvailableSlotsBySports(requestParameters, options) {
|
|
5060
|
+
return localVarFp.getAvailableSlotsBySports(requestParameters.id, requestParameters.sportId, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
5082
5061
|
},
|
|
5083
5062
|
/**
|
|
5084
5063
|
*
|
|
5085
|
-
* @summary
|
|
5086
|
-
* @param {
|
|
5064
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
5065
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsAndDayRequest} requestParameters Request parameters.
|
|
5087
5066
|
* @param {*} [options] Override http request option.
|
|
5088
5067
|
* @throws {RequiredError}
|
|
5089
5068
|
*/
|
|
5090
|
-
|
|
5091
|
-
return localVarFp.
|
|
5069
|
+
getAvailableSlotsBySportsAndDay(requestParameters, options) {
|
|
5070
|
+
return localVarFp.getAvailableSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(axios, basePath));
|
|
5092
5071
|
},
|
|
5093
5072
|
};
|
|
5094
5073
|
};
|
|
5095
|
-
exports.
|
|
5074
|
+
exports.UserClubSlotsApiFactory = UserClubSlotsApiFactory;
|
|
5096
5075
|
/**
|
|
5097
|
-
*
|
|
5076
|
+
* UserClubSlotsApi - object-oriented interface
|
|
5098
5077
|
* @export
|
|
5099
|
-
* @class
|
|
5078
|
+
* @class UserClubSlotsApi
|
|
5100
5079
|
* @extends {BaseAPI}
|
|
5101
5080
|
*/
|
|
5102
|
-
class
|
|
5081
|
+
class UserClubSlotsApi extends base_1.BaseAPI {
|
|
5103
5082
|
/**
|
|
5104
5083
|
*
|
|
5105
|
-
* @summary
|
|
5106
|
-
* @param {
|
|
5084
|
+
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
5085
|
+
* @param {UserClubSlotsApiGetAvailableSlotsByClubRequest} requestParameters Request parameters.
|
|
5107
5086
|
* @param {*} [options] Override http request option.
|
|
5108
5087
|
* @throws {RequiredError}
|
|
5109
|
-
* @memberof
|
|
5088
|
+
* @memberof UserClubSlotsApi
|
|
5110
5089
|
*/
|
|
5111
|
-
|
|
5112
|
-
return (0, exports.
|
|
5090
|
+
getAvailableSlotsByClub(requestParameters, options) {
|
|
5091
|
+
return (0, exports.UserClubSlotsApiFp)(this.configuration).getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(this.axios, this.basePath));
|
|
5113
5092
|
}
|
|
5114
5093
|
/**
|
|
5115
5094
|
*
|
|
5116
|
-
* @summary
|
|
5117
|
-
* @param {
|
|
5095
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
5096
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
|
|
5118
5097
|
* @param {*} [options] Override http request option.
|
|
5119
5098
|
* @throws {RequiredError}
|
|
5120
|
-
* @memberof
|
|
5099
|
+
* @memberof UserClubSlotsApi
|
|
5121
5100
|
*/
|
|
5122
|
-
|
|
5123
|
-
return (0, exports.
|
|
5101
|
+
getAvailableSlotsBySports(requestParameters, options) {
|
|
5102
|
+
return (0, exports.UserClubSlotsApiFp)(this.configuration).getAvailableSlotsBySports(requestParameters.id, requestParameters.sportId, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
5124
5103
|
}
|
|
5125
5104
|
/**
|
|
5126
5105
|
*
|
|
5127
|
-
* @summary
|
|
5128
|
-
* @param {
|
|
5106
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
5107
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsAndDayRequest} requestParameters Request parameters.
|
|
5129
5108
|
* @param {*} [options] Override http request option.
|
|
5130
5109
|
* @throws {RequiredError}
|
|
5131
|
-
* @memberof
|
|
5110
|
+
* @memberof UserClubSlotsApi
|
|
5132
5111
|
*/
|
|
5133
|
-
|
|
5134
|
-
return (0, exports.
|
|
5112
|
+
getAvailableSlotsBySportsAndDay(requestParameters, options) {
|
|
5113
|
+
return (0, exports.UserClubSlotsApiFp)(this.configuration).getAvailableSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(this.axios, this.basePath));
|
|
5135
5114
|
}
|
|
5115
|
+
}
|
|
5116
|
+
exports.UserClubSlotsApi = UserClubSlotsApi;
|
|
5117
|
+
/**
|
|
5118
|
+
* UserClubSportsApi - axios parameter creator
|
|
5119
|
+
* @export
|
|
5120
|
+
*/
|
|
5121
|
+
const UserClubSportsApiAxiosParamCreator = function (configuration) {
|
|
5122
|
+
return {
|
|
5123
|
+
/**
|
|
5124
|
+
*
|
|
5125
|
+
* @summary Récupérer tous les sports pour un club
|
|
5126
|
+
* @param {string} id ID du club
|
|
5127
|
+
* @param {*} [options] Override http request option.
|
|
5128
|
+
* @throws {RequiredError}
|
|
5129
|
+
*/
|
|
5130
|
+
getSportsByClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
5131
|
+
// verify required parameter 'id' is not null or undefined
|
|
5132
|
+
(0, common_1.assertParamExists)('getSportsByClub', 'id', id);
|
|
5133
|
+
const localVarPath = `/api/clubs/{id}/sports`
|
|
5134
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5135
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5136
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5137
|
+
let baseOptions;
|
|
5138
|
+
if (configuration) {
|
|
5139
|
+
baseOptions = configuration.baseOptions;
|
|
5140
|
+
}
|
|
5141
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5142
|
+
const localVarHeaderParameter = {};
|
|
5143
|
+
const localVarQueryParameter = {};
|
|
5144
|
+
// authentication bearerAuth required
|
|
5145
|
+
// http bearer authentication required
|
|
5146
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5147
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5148
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5149
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5150
|
+
return {
|
|
5151
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5152
|
+
options: localVarRequestOptions,
|
|
5153
|
+
};
|
|
5154
|
+
}),
|
|
5155
|
+
};
|
|
5156
|
+
};
|
|
5157
|
+
exports.UserClubSportsApiAxiosParamCreator = UserClubSportsApiAxiosParamCreator;
|
|
5158
|
+
/**
|
|
5159
|
+
* UserClubSportsApi - functional programming interface
|
|
5160
|
+
* @export
|
|
5161
|
+
*/
|
|
5162
|
+
const UserClubSportsApiFp = function (configuration) {
|
|
5163
|
+
const localVarAxiosParamCreator = (0, exports.UserClubSportsApiAxiosParamCreator)(configuration);
|
|
5164
|
+
return {
|
|
5165
|
+
/**
|
|
5166
|
+
*
|
|
5167
|
+
* @summary Récupérer tous les sports pour un club
|
|
5168
|
+
* @param {string} id ID du club
|
|
5169
|
+
* @param {*} [options] Override http request option.
|
|
5170
|
+
* @throws {RequiredError}
|
|
5171
|
+
*/
|
|
5172
|
+
getSportsByClub(id, options) {
|
|
5173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5174
|
+
var _a, _b, _c;
|
|
5175
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSportsByClub(id, options);
|
|
5176
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5177
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubSportsApi.getSportsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5178
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5179
|
+
});
|
|
5180
|
+
},
|
|
5181
|
+
};
|
|
5182
|
+
};
|
|
5183
|
+
exports.UserClubSportsApiFp = UserClubSportsApiFp;
|
|
5184
|
+
/**
|
|
5185
|
+
* UserClubSportsApi - factory interface
|
|
5186
|
+
* @export
|
|
5187
|
+
*/
|
|
5188
|
+
const UserClubSportsApiFactory = function (configuration, basePath, axios) {
|
|
5189
|
+
const localVarFp = (0, exports.UserClubSportsApiFp)(configuration);
|
|
5190
|
+
return {
|
|
5191
|
+
/**
|
|
5192
|
+
*
|
|
5193
|
+
* @summary Récupérer tous les sports pour un club
|
|
5194
|
+
* @param {UserClubSportsApiGetSportsByClubRequest} requestParameters Request parameters.
|
|
5195
|
+
* @param {*} [options] Override http request option.
|
|
5196
|
+
* @throws {RequiredError}
|
|
5197
|
+
*/
|
|
5198
|
+
getSportsByClub(requestParameters, options) {
|
|
5199
|
+
return localVarFp.getSportsByClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5200
|
+
},
|
|
5201
|
+
};
|
|
5202
|
+
};
|
|
5203
|
+
exports.UserClubSportsApiFactory = UserClubSportsApiFactory;
|
|
5204
|
+
/**
|
|
5205
|
+
* UserClubSportsApi - object-oriented interface
|
|
5206
|
+
* @export
|
|
5207
|
+
* @class UserClubSportsApi
|
|
5208
|
+
* @extends {BaseAPI}
|
|
5209
|
+
*/
|
|
5210
|
+
class UserClubSportsApi extends base_1.BaseAPI {
|
|
5136
5211
|
/**
|
|
5137
5212
|
*
|
|
5138
|
-
* @summary
|
|
5139
|
-
* @param {
|
|
5213
|
+
* @summary Récupérer tous les sports pour un club
|
|
5214
|
+
* @param {UserClubSportsApiGetSportsByClubRequest} requestParameters Request parameters.
|
|
5140
5215
|
* @param {*} [options] Override http request option.
|
|
5141
5216
|
* @throws {RequiredError}
|
|
5142
|
-
* @memberof
|
|
5217
|
+
* @memberof UserClubSportsApi
|
|
5143
5218
|
*/
|
|
5144
|
-
|
|
5145
|
-
return (0, exports.
|
|
5219
|
+
getSportsByClub(requestParameters, options) {
|
|
5220
|
+
return (0, exports.UserClubSportsApiFp)(this.configuration).getSportsByClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5146
5221
|
}
|
|
5147
5222
|
}
|
|
5148
|
-
exports.
|
|
5223
|
+
exports.UserClubSportsApi = UserClubSportsApi;
|
|
5149
5224
|
/**
|
|
5150
|
-
*
|
|
5225
|
+
* UserClubsApi - axios parameter creator
|
|
5151
5226
|
* @export
|
|
5152
5227
|
*/
|
|
5153
|
-
const
|
|
5228
|
+
const UserClubsApiAxiosParamCreator = function (configuration) {
|
|
5154
5229
|
return {
|
|
5155
5230
|
/**
|
|
5156
|
-
*
|
|
5157
|
-
* @summary
|
|
5158
|
-
* @param {string} slotId ID MongoDB du créneau à bloquer
|
|
5231
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
5232
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
5159
5233
|
* @param {*} [options] Override http request option.
|
|
5160
5234
|
* @throws {RequiredError}
|
|
5161
5235
|
*/
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
(0, common_1.assertParamExists)('blockSlot', 'slotId', slotId);
|
|
5165
|
-
const localVarPath = `/api/bookings/pre-book/{slotId}`
|
|
5166
|
-
.replace(`{${"slotId"}}`, encodeURIComponent(String(slotId)));
|
|
5236
|
+
getActiveClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5237
|
+
const localVarPath = `/api/clubs/activeClubs`;
|
|
5167
5238
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5168
5239
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5169
5240
|
let baseOptions;
|
|
5170
5241
|
if (configuration) {
|
|
5171
5242
|
baseOptions = configuration.baseOptions;
|
|
5172
5243
|
}
|
|
5173
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
5244
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5174
5245
|
const localVarHeaderParameter = {};
|
|
5175
5246
|
const localVarQueryParameter = {};
|
|
5176
5247
|
// authentication bearerAuth required
|
|
@@ -5185,33 +5256,28 @@ const UserBookingsApiAxiosParamCreator = function (configuration) {
|
|
|
5185
5256
|
};
|
|
5186
5257
|
}),
|
|
5187
5258
|
/**
|
|
5188
|
-
*
|
|
5189
|
-
* @summary
|
|
5190
|
-
* @param {CreateBookingRequest} createBookingRequest
|
|
5259
|
+
*
|
|
5260
|
+
* @summary Retrieve the list of most visited clubs (max 10)
|
|
5191
5261
|
* @param {*} [options] Override http request option.
|
|
5192
5262
|
* @throws {RequiredError}
|
|
5193
5263
|
*/
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
(0, common_1.assertParamExists)('createBooking', 'createBookingRequest', createBookingRequest);
|
|
5197
|
-
const localVarPath = `/api/bookings`;
|
|
5264
|
+
getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5265
|
+
const localVarPath = `/api/analytics/most-liked`;
|
|
5198
5266
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5199
5267
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5200
5268
|
let baseOptions;
|
|
5201
5269
|
if (configuration) {
|
|
5202
5270
|
baseOptions = configuration.baseOptions;
|
|
5203
5271
|
}
|
|
5204
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
5272
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5205
5273
|
const localVarHeaderParameter = {};
|
|
5206
5274
|
const localVarQueryParameter = {};
|
|
5207
5275
|
// authentication bearerAuth required
|
|
5208
5276
|
// http bearer authentication required
|
|
5209
5277
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5210
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5211
5278
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5212
5279
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5213
5280
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5214
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBookingRequest, localVarRequestOptions, configuration);
|
|
5215
5281
|
return {
|
|
5216
5282
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5217
5283
|
options: localVarRequestOptions,
|
|
@@ -5219,12 +5285,12 @@ const UserBookingsApiAxiosParamCreator = function (configuration) {
|
|
|
5219
5285
|
}),
|
|
5220
5286
|
/**
|
|
5221
5287
|
*
|
|
5222
|
-
* @summary
|
|
5288
|
+
* @summary Retrieve the list of most liked clubs (max 10)
|
|
5223
5289
|
* @param {*} [options] Override http request option.
|
|
5224
5290
|
* @throws {RequiredError}
|
|
5225
5291
|
*/
|
|
5226
|
-
|
|
5227
|
-
const localVarPath = `/api/
|
|
5292
|
+
getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5293
|
+
const localVarPath = `/api/analytics/popular`;
|
|
5228
5294
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5229
5295
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5230
5296
|
let baseOptions;
|
|
@@ -5247,3082 +5313,138 @@ const UserBookingsApiAxiosParamCreator = function (configuration) {
|
|
|
5247
5313
|
}),
|
|
5248
5314
|
};
|
|
5249
5315
|
};
|
|
5250
|
-
exports.
|
|
5316
|
+
exports.UserClubsApiAxiosParamCreator = UserClubsApiAxiosParamCreator;
|
|
5251
5317
|
/**
|
|
5252
|
-
*
|
|
5318
|
+
* UserClubsApi - functional programming interface
|
|
5253
5319
|
* @export
|
|
5254
5320
|
*/
|
|
5255
|
-
const
|
|
5256
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
5321
|
+
const UserClubsApiFp = function (configuration) {
|
|
5322
|
+
const localVarAxiosParamCreator = (0, exports.UserClubsApiAxiosParamCreator)(configuration);
|
|
5257
5323
|
return {
|
|
5258
5324
|
/**
|
|
5259
|
-
*
|
|
5260
|
-
* @summary
|
|
5261
|
-
* @param {string} slotId ID MongoDB du créneau à bloquer
|
|
5325
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
5326
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
5262
5327
|
* @param {*} [options] Override http request option.
|
|
5263
5328
|
* @throws {RequiredError}
|
|
5264
5329
|
*/
|
|
5265
|
-
|
|
5330
|
+
getActiveClubs(options) {
|
|
5266
5331
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5267
5332
|
var _a, _b, _c;
|
|
5268
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5333
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getActiveClubs(options);
|
|
5269
5334
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5270
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
5335
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubsApi.getActiveClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5271
5336
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5272
5337
|
});
|
|
5273
5338
|
},
|
|
5274
5339
|
/**
|
|
5275
|
-
*
|
|
5276
|
-
* @summary
|
|
5277
|
-
* @param {CreateBookingRequest} createBookingRequest
|
|
5340
|
+
*
|
|
5341
|
+
* @summary Retrieve the list of most visited clubs (max 10)
|
|
5278
5342
|
* @param {*} [options] Override http request option.
|
|
5279
5343
|
* @throws {RequiredError}
|
|
5280
5344
|
*/
|
|
5281
|
-
|
|
5345
|
+
getMostLikedClub(options) {
|
|
5282
5346
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5283
5347
|
var _a, _b, _c;
|
|
5284
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5348
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMostLikedClub(options);
|
|
5285
5349
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5286
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
5350
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubsApi.getMostLikedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5287
5351
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5288
5352
|
});
|
|
5289
5353
|
},
|
|
5290
5354
|
/**
|
|
5291
5355
|
*
|
|
5292
|
-
* @summary
|
|
5356
|
+
* @summary Retrieve the list of most liked clubs (max 10)
|
|
5293
5357
|
* @param {*} [options] Override http request option.
|
|
5294
5358
|
* @throws {RequiredError}
|
|
5295
5359
|
*/
|
|
5296
|
-
|
|
5360
|
+
getPopularClubs(options) {
|
|
5297
5361
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5298
5362
|
var _a, _b, _c;
|
|
5299
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5363
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPopularClubs(options);
|
|
5300
5364
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5301
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
5365
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubsApi.getPopularClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5302
5366
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5303
5367
|
});
|
|
5304
5368
|
},
|
|
5305
5369
|
};
|
|
5306
5370
|
};
|
|
5307
|
-
exports.
|
|
5308
|
-
/**
|
|
5309
|
-
* UserBookingsApi - factory interface
|
|
5310
|
-
* @export
|
|
5311
|
-
*/
|
|
5312
|
-
const UserBookingsApiFactory = function (configuration, basePath, axios) {
|
|
5313
|
-
const localVarFp = (0, exports.UserBookingsApiFp)(configuration);
|
|
5314
|
-
return {
|
|
5315
|
-
/**
|
|
5316
|
-
* Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
|
|
5317
|
-
* @summary Bloquer un créneau
|
|
5318
|
-
* @param {UserBookingsApiBlockSlotRequest} requestParameters Request parameters.
|
|
5319
|
-
* @param {*} [options] Override http request option.
|
|
5320
|
-
* @throws {RequiredError}
|
|
5321
|
-
*/
|
|
5322
|
-
blockSlot(requestParameters, options) {
|
|
5323
|
-
return localVarFp.blockSlot(requestParameters.slotId, options).then((request) => request(axios, basePath));
|
|
5324
|
-
},
|
|
5325
|
-
/**
|
|
5326
|
-
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
5327
|
-
* @summary Créer une réservation
|
|
5328
|
-
* @param {UserBookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
5329
|
-
* @param {*} [options] Override http request option.
|
|
5330
|
-
* @throws {RequiredError}
|
|
5331
|
-
*/
|
|
5332
|
-
createBooking(requestParameters, options) {
|
|
5333
|
-
return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
|
|
5334
|
-
},
|
|
5335
|
-
/**
|
|
5336
|
-
*
|
|
5337
|
-
* @summary Récupère l\'historique des réservations de l\'utilisateur connecté
|
|
5338
|
-
* @param {*} [options] Override http request option.
|
|
5339
|
-
* @throws {RequiredError}
|
|
5340
|
-
*/
|
|
5341
|
-
getBookingHistory(options) {
|
|
5342
|
-
return localVarFp.getBookingHistory(options).then((request) => request(axios, basePath));
|
|
5343
|
-
},
|
|
5344
|
-
};
|
|
5345
|
-
};
|
|
5346
|
-
exports.UserBookingsApiFactory = UserBookingsApiFactory;
|
|
5347
|
-
/**
|
|
5348
|
-
* UserBookingsApi - object-oriented interface
|
|
5349
|
-
* @export
|
|
5350
|
-
* @class UserBookingsApi
|
|
5351
|
-
* @extends {BaseAPI}
|
|
5352
|
-
*/
|
|
5353
|
-
class UserBookingsApi extends base_1.BaseAPI {
|
|
5354
|
-
/**
|
|
5355
|
-
* Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
|
|
5356
|
-
* @summary Bloquer un créneau
|
|
5357
|
-
* @param {UserBookingsApiBlockSlotRequest} requestParameters Request parameters.
|
|
5358
|
-
* @param {*} [options] Override http request option.
|
|
5359
|
-
* @throws {RequiredError}
|
|
5360
|
-
* @memberof UserBookingsApi
|
|
5361
|
-
*/
|
|
5362
|
-
blockSlot(requestParameters, options) {
|
|
5363
|
-
return (0, exports.UserBookingsApiFp)(this.configuration).blockSlot(requestParameters.slotId, options).then((request) => request(this.axios, this.basePath));
|
|
5364
|
-
}
|
|
5365
|
-
/**
|
|
5366
|
-
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
5367
|
-
* @summary Créer une réservation
|
|
5368
|
-
* @param {UserBookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
5369
|
-
* @param {*} [options] Override http request option.
|
|
5370
|
-
* @throws {RequiredError}
|
|
5371
|
-
* @memberof UserBookingsApi
|
|
5372
|
-
*/
|
|
5373
|
-
createBooking(requestParameters, options) {
|
|
5374
|
-
return (0, exports.UserBookingsApiFp)(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5375
|
-
}
|
|
5376
|
-
/**
|
|
5377
|
-
*
|
|
5378
|
-
* @summary Récupère l\'historique des réservations de l\'utilisateur connecté
|
|
5379
|
-
* @param {*} [options] Override http request option.
|
|
5380
|
-
* @throws {RequiredError}
|
|
5381
|
-
* @memberof UserBookingsApi
|
|
5382
|
-
*/
|
|
5383
|
-
getBookingHistory(options) {
|
|
5384
|
-
return (0, exports.UserBookingsApiFp)(this.configuration).getBookingHistory(options).then((request) => request(this.axios, this.basePath));
|
|
5385
|
-
}
|
|
5386
|
-
}
|
|
5387
|
-
exports.UserBookingsApi = UserBookingsApi;
|
|
5388
|
-
/**
|
|
5389
|
-
* UserClubCourtsApi - axios parameter creator
|
|
5390
|
-
* @export
|
|
5391
|
-
*/
|
|
5392
|
-
const UserClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
5393
|
-
return {
|
|
5394
|
-
/**
|
|
5395
|
-
*
|
|
5396
|
-
* @summary Récupérer les terrains d\'un club pour un sport spécifique
|
|
5397
|
-
* @param {string} id ID du club
|
|
5398
|
-
* @param {string} sportId ID du sport
|
|
5399
|
-
* @param {*} [options] Override http request option.
|
|
5400
|
-
* @throws {RequiredError}
|
|
5401
|
-
*/
|
|
5402
|
-
getCourtsByClubAndSport: (id_1, sportId_1, ...args_1) => __awaiter(this, [id_1, sportId_1, ...args_1], void 0, function* (id, sportId, options = {}) {
|
|
5403
|
-
// verify required parameter 'id' is not null or undefined
|
|
5404
|
-
(0, common_1.assertParamExists)('getCourtsByClubAndSport', 'id', id);
|
|
5405
|
-
// verify required parameter 'sportId' is not null or undefined
|
|
5406
|
-
(0, common_1.assertParamExists)('getCourtsByClubAndSport', 'sportId', sportId);
|
|
5407
|
-
const localVarPath = `/api/clubs/{id}/sports/{sportId}/courts`
|
|
5408
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
5409
|
-
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
|
|
5410
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5411
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5412
|
-
let baseOptions;
|
|
5413
|
-
if (configuration) {
|
|
5414
|
-
baseOptions = configuration.baseOptions;
|
|
5415
|
-
}
|
|
5416
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5417
|
-
const localVarHeaderParameter = {};
|
|
5418
|
-
const localVarQueryParameter = {};
|
|
5419
|
-
// authentication bearerAuth required
|
|
5420
|
-
// http bearer authentication required
|
|
5421
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5422
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5423
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5424
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5425
|
-
return {
|
|
5426
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5427
|
-
options: localVarRequestOptions,
|
|
5428
|
-
};
|
|
5429
|
-
}),
|
|
5430
|
-
};
|
|
5431
|
-
};
|
|
5432
|
-
exports.UserClubCourtsApiAxiosParamCreator = UserClubCourtsApiAxiosParamCreator;
|
|
5433
|
-
/**
|
|
5434
|
-
* UserClubCourtsApi - functional programming interface
|
|
5435
|
-
* @export
|
|
5436
|
-
*/
|
|
5437
|
-
const UserClubCourtsApiFp = function (configuration) {
|
|
5438
|
-
const localVarAxiosParamCreator = (0, exports.UserClubCourtsApiAxiosParamCreator)(configuration);
|
|
5439
|
-
return {
|
|
5440
|
-
/**
|
|
5441
|
-
*
|
|
5442
|
-
* @summary Récupérer les terrains d\'un club pour un sport spécifique
|
|
5443
|
-
* @param {string} id ID du club
|
|
5444
|
-
* @param {string} sportId ID du sport
|
|
5445
|
-
* @param {*} [options] Override http request option.
|
|
5446
|
-
* @throws {RequiredError}
|
|
5447
|
-
*/
|
|
5448
|
-
getCourtsByClubAndSport(id, sportId, options) {
|
|
5449
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5450
|
-
var _a, _b, _c;
|
|
5451
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClubAndSport(id, sportId, options);
|
|
5452
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5453
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubCourtsApi.getCourtsByClubAndSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5454
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5455
|
-
});
|
|
5456
|
-
},
|
|
5457
|
-
};
|
|
5458
|
-
};
|
|
5459
|
-
exports.UserClubCourtsApiFp = UserClubCourtsApiFp;
|
|
5460
|
-
/**
|
|
5461
|
-
* UserClubCourtsApi - factory interface
|
|
5462
|
-
* @export
|
|
5463
|
-
*/
|
|
5464
|
-
const UserClubCourtsApiFactory = function (configuration, basePath, axios) {
|
|
5465
|
-
const localVarFp = (0, exports.UserClubCourtsApiFp)(configuration);
|
|
5466
|
-
return {
|
|
5467
|
-
/**
|
|
5468
|
-
*
|
|
5469
|
-
* @summary Récupérer les terrains d\'un club pour un sport spécifique
|
|
5470
|
-
* @param {UserClubCourtsApiGetCourtsByClubAndSportRequest} requestParameters Request parameters.
|
|
5471
|
-
* @param {*} [options] Override http request option.
|
|
5472
|
-
* @throws {RequiredError}
|
|
5473
|
-
*/
|
|
5474
|
-
getCourtsByClubAndSport(requestParameters, options) {
|
|
5475
|
-
return localVarFp.getCourtsByClubAndSport(requestParameters.id, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
5476
|
-
},
|
|
5477
|
-
};
|
|
5478
|
-
};
|
|
5479
|
-
exports.UserClubCourtsApiFactory = UserClubCourtsApiFactory;
|
|
5480
|
-
/**
|
|
5481
|
-
* UserClubCourtsApi - object-oriented interface
|
|
5482
|
-
* @export
|
|
5483
|
-
* @class UserClubCourtsApi
|
|
5484
|
-
* @extends {BaseAPI}
|
|
5485
|
-
*/
|
|
5486
|
-
class UserClubCourtsApi extends base_1.BaseAPI {
|
|
5487
|
-
/**
|
|
5488
|
-
*
|
|
5489
|
-
* @summary Récupérer les terrains d\'un club pour un sport spécifique
|
|
5490
|
-
* @param {UserClubCourtsApiGetCourtsByClubAndSportRequest} requestParameters Request parameters.
|
|
5491
|
-
* @param {*} [options] Override http request option.
|
|
5492
|
-
* @throws {RequiredError}
|
|
5493
|
-
* @memberof UserClubCourtsApi
|
|
5494
|
-
*/
|
|
5495
|
-
getCourtsByClubAndSport(requestParameters, options) {
|
|
5496
|
-
return (0, exports.UserClubCourtsApiFp)(this.configuration).getCourtsByClubAndSport(requestParameters.id, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
5497
|
-
}
|
|
5498
|
-
}
|
|
5499
|
-
exports.UserClubCourtsApi = UserClubCourtsApi;
|
|
5500
|
-
/**
|
|
5501
|
-
* UserClubSlotsApi - axios parameter creator
|
|
5502
|
-
* @export
|
|
5503
|
-
*/
|
|
5504
|
-
const UserClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
5505
|
-
return {
|
|
5506
|
-
/**
|
|
5507
|
-
*
|
|
5508
|
-
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
5509
|
-
* @param {string} clubID ID du club
|
|
5510
|
-
* @param {*} [options] Override http request option.
|
|
5511
|
-
* @throws {RequiredError}
|
|
5512
|
-
*/
|
|
5513
|
-
getAvailableSlotsByClub: (clubID_1, ...args_1) => __awaiter(this, [clubID_1, ...args_1], void 0, function* (clubID, options = {}) {
|
|
5514
|
-
// verify required parameter 'clubID' is not null or undefined
|
|
5515
|
-
(0, common_1.assertParamExists)('getAvailableSlotsByClub', 'clubID', clubID);
|
|
5516
|
-
const localVarPath = `/api/clubs/{clubID}/availableSlots`
|
|
5517
|
-
.replace(`{${"clubID"}}`, encodeURIComponent(String(clubID)));
|
|
5518
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5519
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5520
|
-
let baseOptions;
|
|
5521
|
-
if (configuration) {
|
|
5522
|
-
baseOptions = configuration.baseOptions;
|
|
5523
|
-
}
|
|
5524
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5525
|
-
const localVarHeaderParameter = {};
|
|
5526
|
-
const localVarQueryParameter = {};
|
|
5527
|
-
// authentication bearerAuth required
|
|
5528
|
-
// http bearer authentication required
|
|
5529
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5530
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5531
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5532
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5533
|
-
return {
|
|
5534
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5535
|
-
options: localVarRequestOptions,
|
|
5536
|
-
};
|
|
5537
|
-
}),
|
|
5538
|
-
/**
|
|
5539
|
-
*
|
|
5540
|
-
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
5541
|
-
* @param {string} id ID du club
|
|
5542
|
-
* @param {string} sportId ID du sport
|
|
5543
|
-
* @param {string} [start] Date de début (format ISO)
|
|
5544
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
5545
|
-
* @param {*} [options] Override http request option.
|
|
5546
|
-
* @throws {RequiredError}
|
|
5547
|
-
*/
|
|
5548
|
-
getAvailableSlotsBySports: (id_1, sportId_1, start_1, end_1, ...args_1) => __awaiter(this, [id_1, sportId_1, start_1, end_1, ...args_1], void 0, function* (id, sportId, start, end, options = {}) {
|
|
5549
|
-
// verify required parameter 'id' is not null or undefined
|
|
5550
|
-
(0, common_1.assertParamExists)('getAvailableSlotsBySports', 'id', id);
|
|
5551
|
-
// verify required parameter 'sportId' is not null or undefined
|
|
5552
|
-
(0, common_1.assertParamExists)('getAvailableSlotsBySports', 'sportId', sportId);
|
|
5553
|
-
const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots`
|
|
5554
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
5555
|
-
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
|
|
5556
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5557
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5558
|
-
let baseOptions;
|
|
5559
|
-
if (configuration) {
|
|
5560
|
-
baseOptions = configuration.baseOptions;
|
|
5561
|
-
}
|
|
5562
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5563
|
-
const localVarHeaderParameter = {};
|
|
5564
|
-
const localVarQueryParameter = {};
|
|
5565
|
-
// authentication bearerAuth required
|
|
5566
|
-
// http bearer authentication required
|
|
5567
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5568
|
-
if (start !== undefined) {
|
|
5569
|
-
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
5570
|
-
start.toISOString() :
|
|
5571
|
-
start;
|
|
5572
|
-
}
|
|
5573
|
-
if (end !== undefined) {
|
|
5574
|
-
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
5575
|
-
end.toISOString() :
|
|
5576
|
-
end;
|
|
5577
|
-
}
|
|
5578
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5579
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5580
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5581
|
-
return {
|
|
5582
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5583
|
-
options: localVarRequestOptions,
|
|
5584
|
-
};
|
|
5585
|
-
}),
|
|
5586
|
-
/**
|
|
5587
|
-
*
|
|
5588
|
-
* @summary Obtenir les slots disponibles pour un jour donné
|
|
5589
|
-
* @param {string} id ID du club
|
|
5590
|
-
* @param {string} sportId ID du sport
|
|
5591
|
-
* @param {string} day Date du jour (format YYYY-MM-DD)
|
|
5592
|
-
* @param {*} [options] Override http request option.
|
|
5593
|
-
* @throws {RequiredError}
|
|
5594
|
-
*/
|
|
5595
|
-
getAvailableSlotsBySportsAndDay: (id_1, sportId_1, day_1, ...args_1) => __awaiter(this, [id_1, sportId_1, day_1, ...args_1], void 0, function* (id, sportId, day, options = {}) {
|
|
5596
|
-
// verify required parameter 'id' is not null or undefined
|
|
5597
|
-
(0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'id', id);
|
|
5598
|
-
// verify required parameter 'sportId' is not null or undefined
|
|
5599
|
-
(0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'sportId', sportId);
|
|
5600
|
-
// verify required parameter 'day' is not null or undefined
|
|
5601
|
-
(0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'day', day);
|
|
5602
|
-
const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots/{day}`
|
|
5603
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
5604
|
-
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)))
|
|
5605
|
-
.replace(`{${"day"}}`, encodeURIComponent(String(day)));
|
|
5606
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5607
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5608
|
-
let baseOptions;
|
|
5609
|
-
if (configuration) {
|
|
5610
|
-
baseOptions = configuration.baseOptions;
|
|
5611
|
-
}
|
|
5612
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5613
|
-
const localVarHeaderParameter = {};
|
|
5614
|
-
const localVarQueryParameter = {};
|
|
5615
|
-
// authentication bearerAuth required
|
|
5616
|
-
// http bearer authentication required
|
|
5617
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5618
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5619
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5620
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5621
|
-
return {
|
|
5622
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5623
|
-
options: localVarRequestOptions,
|
|
5624
|
-
};
|
|
5625
|
-
}),
|
|
5626
|
-
};
|
|
5627
|
-
};
|
|
5628
|
-
exports.UserClubSlotsApiAxiosParamCreator = UserClubSlotsApiAxiosParamCreator;
|
|
5629
|
-
/**
|
|
5630
|
-
* UserClubSlotsApi - functional programming interface
|
|
5631
|
-
* @export
|
|
5632
|
-
*/
|
|
5633
|
-
const UserClubSlotsApiFp = function (configuration) {
|
|
5634
|
-
const localVarAxiosParamCreator = (0, exports.UserClubSlotsApiAxiosParamCreator)(configuration);
|
|
5635
|
-
return {
|
|
5636
|
-
/**
|
|
5637
|
-
*
|
|
5638
|
-
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
5639
|
-
* @param {string} clubID ID du club
|
|
5640
|
-
* @param {*} [options] Override http request option.
|
|
5641
|
-
* @throws {RequiredError}
|
|
5642
|
-
*/
|
|
5643
|
-
getAvailableSlotsByClub(clubID, options) {
|
|
5644
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5645
|
-
var _a, _b, _c;
|
|
5646
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsByClub(clubID, options);
|
|
5647
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5648
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubSlotsApi.getAvailableSlotsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5649
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5650
|
-
});
|
|
5651
|
-
},
|
|
5652
|
-
/**
|
|
5653
|
-
*
|
|
5654
|
-
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
5655
|
-
* @param {string} id ID du club
|
|
5656
|
-
* @param {string} sportId ID du sport
|
|
5657
|
-
* @param {string} [start] Date de début (format ISO)
|
|
5658
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
5659
|
-
* @param {*} [options] Override http request option.
|
|
5660
|
-
* @throws {RequiredError}
|
|
5661
|
-
*/
|
|
5662
|
-
getAvailableSlotsBySports(id, sportId, start, end, options) {
|
|
5663
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5664
|
-
var _a, _b, _c;
|
|
5665
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsBySports(id, sportId, start, end, options);
|
|
5666
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5667
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubSlotsApi.getAvailableSlotsBySports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5668
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5669
|
-
});
|
|
5670
|
-
},
|
|
5671
|
-
/**
|
|
5672
|
-
*
|
|
5673
|
-
* @summary Obtenir les slots disponibles pour un jour donné
|
|
5674
|
-
* @param {string} id ID du club
|
|
5675
|
-
* @param {string} sportId ID du sport
|
|
5676
|
-
* @param {string} day Date du jour (format YYYY-MM-DD)
|
|
5677
|
-
* @param {*} [options] Override http request option.
|
|
5678
|
-
* @throws {RequiredError}
|
|
5679
|
-
*/
|
|
5680
|
-
getAvailableSlotsBySportsAndDay(id, sportId, day, options) {
|
|
5681
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5682
|
-
var _a, _b, _c;
|
|
5683
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsBySportsAndDay(id, sportId, day, options);
|
|
5684
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5685
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubSlotsApi.getAvailableSlotsBySportsAndDay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5686
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5687
|
-
});
|
|
5688
|
-
},
|
|
5689
|
-
};
|
|
5690
|
-
};
|
|
5691
|
-
exports.UserClubSlotsApiFp = UserClubSlotsApiFp;
|
|
5692
|
-
/**
|
|
5693
|
-
* UserClubSlotsApi - factory interface
|
|
5694
|
-
* @export
|
|
5695
|
-
*/
|
|
5696
|
-
const UserClubSlotsApiFactory = function (configuration, basePath, axios) {
|
|
5697
|
-
const localVarFp = (0, exports.UserClubSlotsApiFp)(configuration);
|
|
5698
|
-
return {
|
|
5699
|
-
/**
|
|
5700
|
-
*
|
|
5701
|
-
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
5702
|
-
* @param {UserClubSlotsApiGetAvailableSlotsByClubRequest} requestParameters Request parameters.
|
|
5703
|
-
* @param {*} [options] Override http request option.
|
|
5704
|
-
* @throws {RequiredError}
|
|
5705
|
-
*/
|
|
5706
|
-
getAvailableSlotsByClub(requestParameters, options) {
|
|
5707
|
-
return localVarFp.getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(axios, basePath));
|
|
5708
|
-
},
|
|
5709
|
-
/**
|
|
5710
|
-
*
|
|
5711
|
-
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
5712
|
-
* @param {UserClubSlotsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
|
|
5713
|
-
* @param {*} [options] Override http request option.
|
|
5714
|
-
* @throws {RequiredError}
|
|
5715
|
-
*/
|
|
5716
|
-
getAvailableSlotsBySports(requestParameters, options) {
|
|
5717
|
-
return localVarFp.getAvailableSlotsBySports(requestParameters.id, requestParameters.sportId, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
5718
|
-
},
|
|
5719
|
-
/**
|
|
5720
|
-
*
|
|
5721
|
-
* @summary Obtenir les slots disponibles pour un jour donné
|
|
5722
|
-
* @param {UserClubSlotsApiGetAvailableSlotsBySportsAndDayRequest} requestParameters Request parameters.
|
|
5723
|
-
* @param {*} [options] Override http request option.
|
|
5724
|
-
* @throws {RequiredError}
|
|
5725
|
-
*/
|
|
5726
|
-
getAvailableSlotsBySportsAndDay(requestParameters, options) {
|
|
5727
|
-
return localVarFp.getAvailableSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(axios, basePath));
|
|
5728
|
-
},
|
|
5729
|
-
};
|
|
5730
|
-
};
|
|
5731
|
-
exports.UserClubSlotsApiFactory = UserClubSlotsApiFactory;
|
|
5732
|
-
/**
|
|
5733
|
-
* UserClubSlotsApi - object-oriented interface
|
|
5734
|
-
* @export
|
|
5735
|
-
* @class UserClubSlotsApi
|
|
5736
|
-
* @extends {BaseAPI}
|
|
5737
|
-
*/
|
|
5738
|
-
class UserClubSlotsApi extends base_1.BaseAPI {
|
|
5739
|
-
/**
|
|
5740
|
-
*
|
|
5741
|
-
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
5742
|
-
* @param {UserClubSlotsApiGetAvailableSlotsByClubRequest} requestParameters Request parameters.
|
|
5743
|
-
* @param {*} [options] Override http request option.
|
|
5744
|
-
* @throws {RequiredError}
|
|
5745
|
-
* @memberof UserClubSlotsApi
|
|
5746
|
-
*/
|
|
5747
|
-
getAvailableSlotsByClub(requestParameters, options) {
|
|
5748
|
-
return (0, exports.UserClubSlotsApiFp)(this.configuration).getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(this.axios, this.basePath));
|
|
5749
|
-
}
|
|
5750
|
-
/**
|
|
5751
|
-
*
|
|
5752
|
-
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
5753
|
-
* @param {UserClubSlotsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
|
|
5754
|
-
* @param {*} [options] Override http request option.
|
|
5755
|
-
* @throws {RequiredError}
|
|
5756
|
-
* @memberof UserClubSlotsApi
|
|
5757
|
-
*/
|
|
5758
|
-
getAvailableSlotsBySports(requestParameters, options) {
|
|
5759
|
-
return (0, exports.UserClubSlotsApiFp)(this.configuration).getAvailableSlotsBySports(requestParameters.id, requestParameters.sportId, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
5760
|
-
}
|
|
5761
|
-
/**
|
|
5762
|
-
*
|
|
5763
|
-
* @summary Obtenir les slots disponibles pour un jour donné
|
|
5764
|
-
* @param {UserClubSlotsApiGetAvailableSlotsBySportsAndDayRequest} requestParameters Request parameters.
|
|
5765
|
-
* @param {*} [options] Override http request option.
|
|
5766
|
-
* @throws {RequiredError}
|
|
5767
|
-
* @memberof UserClubSlotsApi
|
|
5768
|
-
*/
|
|
5769
|
-
getAvailableSlotsBySportsAndDay(requestParameters, options) {
|
|
5770
|
-
return (0, exports.UserClubSlotsApiFp)(this.configuration).getAvailableSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(this.axios, this.basePath));
|
|
5771
|
-
}
|
|
5772
|
-
}
|
|
5773
|
-
exports.UserClubSlotsApi = UserClubSlotsApi;
|
|
5774
|
-
/**
|
|
5775
|
-
* UserClubSportsApi - axios parameter creator
|
|
5776
|
-
* @export
|
|
5777
|
-
*/
|
|
5778
|
-
const UserClubSportsApiAxiosParamCreator = function (configuration) {
|
|
5779
|
-
return {
|
|
5780
|
-
/**
|
|
5781
|
-
*
|
|
5782
|
-
* @summary Récupérer tous les sports pour un club
|
|
5783
|
-
* @param {string} id ID du club
|
|
5784
|
-
* @param {*} [options] Override http request option.
|
|
5785
|
-
* @throws {RequiredError}
|
|
5786
|
-
*/
|
|
5787
|
-
getSportsByClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
5788
|
-
// verify required parameter 'id' is not null or undefined
|
|
5789
|
-
(0, common_1.assertParamExists)('getSportsByClub', 'id', id);
|
|
5790
|
-
const localVarPath = `/api/clubs/{id}/sports`
|
|
5791
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5792
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5793
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5794
|
-
let baseOptions;
|
|
5795
|
-
if (configuration) {
|
|
5796
|
-
baseOptions = configuration.baseOptions;
|
|
5797
|
-
}
|
|
5798
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5799
|
-
const localVarHeaderParameter = {};
|
|
5800
|
-
const localVarQueryParameter = {};
|
|
5801
|
-
// authentication bearerAuth required
|
|
5802
|
-
// http bearer authentication required
|
|
5803
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5804
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5805
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5806
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5807
|
-
return {
|
|
5808
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5809
|
-
options: localVarRequestOptions,
|
|
5810
|
-
};
|
|
5811
|
-
}),
|
|
5812
|
-
};
|
|
5813
|
-
};
|
|
5814
|
-
exports.UserClubSportsApiAxiosParamCreator = UserClubSportsApiAxiosParamCreator;
|
|
5815
|
-
/**
|
|
5816
|
-
* UserClubSportsApi - functional programming interface
|
|
5817
|
-
* @export
|
|
5818
|
-
*/
|
|
5819
|
-
const UserClubSportsApiFp = function (configuration) {
|
|
5820
|
-
const localVarAxiosParamCreator = (0, exports.UserClubSportsApiAxiosParamCreator)(configuration);
|
|
5821
|
-
return {
|
|
5822
|
-
/**
|
|
5823
|
-
*
|
|
5824
|
-
* @summary Récupérer tous les sports pour un club
|
|
5825
|
-
* @param {string} id ID du club
|
|
5826
|
-
* @param {*} [options] Override http request option.
|
|
5827
|
-
* @throws {RequiredError}
|
|
5828
|
-
*/
|
|
5829
|
-
getSportsByClub(id, options) {
|
|
5830
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5831
|
-
var _a, _b, _c;
|
|
5832
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSportsByClub(id, options);
|
|
5833
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5834
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubSportsApi.getSportsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5835
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5836
|
-
});
|
|
5837
|
-
},
|
|
5838
|
-
};
|
|
5839
|
-
};
|
|
5840
|
-
exports.UserClubSportsApiFp = UserClubSportsApiFp;
|
|
5841
|
-
/**
|
|
5842
|
-
* UserClubSportsApi - factory interface
|
|
5843
|
-
* @export
|
|
5844
|
-
*/
|
|
5845
|
-
const UserClubSportsApiFactory = function (configuration, basePath, axios) {
|
|
5846
|
-
const localVarFp = (0, exports.UserClubSportsApiFp)(configuration);
|
|
5847
|
-
return {
|
|
5848
|
-
/**
|
|
5849
|
-
*
|
|
5850
|
-
* @summary Récupérer tous les sports pour un club
|
|
5851
|
-
* @param {UserClubSportsApiGetSportsByClubRequest} requestParameters Request parameters.
|
|
5852
|
-
* @param {*} [options] Override http request option.
|
|
5853
|
-
* @throws {RequiredError}
|
|
5854
|
-
*/
|
|
5855
|
-
getSportsByClub(requestParameters, options) {
|
|
5856
|
-
return localVarFp.getSportsByClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5857
|
-
},
|
|
5858
|
-
};
|
|
5859
|
-
};
|
|
5860
|
-
exports.UserClubSportsApiFactory = UserClubSportsApiFactory;
|
|
5861
|
-
/**
|
|
5862
|
-
* UserClubSportsApi - object-oriented interface
|
|
5863
|
-
* @export
|
|
5864
|
-
* @class UserClubSportsApi
|
|
5865
|
-
* @extends {BaseAPI}
|
|
5866
|
-
*/
|
|
5867
|
-
class UserClubSportsApi extends base_1.BaseAPI {
|
|
5868
|
-
/**
|
|
5869
|
-
*
|
|
5870
|
-
* @summary Récupérer tous les sports pour un club
|
|
5871
|
-
* @param {UserClubSportsApiGetSportsByClubRequest} requestParameters Request parameters.
|
|
5872
|
-
* @param {*} [options] Override http request option.
|
|
5873
|
-
* @throws {RequiredError}
|
|
5874
|
-
* @memberof UserClubSportsApi
|
|
5875
|
-
*/
|
|
5876
|
-
getSportsByClub(requestParameters, options) {
|
|
5877
|
-
return (0, exports.UserClubSportsApiFp)(this.configuration).getSportsByClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5878
|
-
}
|
|
5879
|
-
}
|
|
5880
|
-
exports.UserClubSportsApi = UserClubSportsApi;
|
|
5881
|
-
/**
|
|
5882
|
-
* UserClubsApi - axios parameter creator
|
|
5883
|
-
* @export
|
|
5884
|
-
*/
|
|
5885
|
-
const UserClubsApiAxiosParamCreator = function (configuration) {
|
|
5886
|
-
return {
|
|
5887
|
-
/**
|
|
5888
|
-
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
5889
|
-
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
5890
|
-
* @param {*} [options] Override http request option.
|
|
5891
|
-
* @throws {RequiredError}
|
|
5892
|
-
*/
|
|
5893
|
-
getActiveClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5894
|
-
const localVarPath = `/api/clubs/activeClubs`;
|
|
5895
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5896
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5897
|
-
let baseOptions;
|
|
5898
|
-
if (configuration) {
|
|
5899
|
-
baseOptions = configuration.baseOptions;
|
|
5900
|
-
}
|
|
5901
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5902
|
-
const localVarHeaderParameter = {};
|
|
5903
|
-
const localVarQueryParameter = {};
|
|
5904
|
-
// authentication bearerAuth required
|
|
5905
|
-
// http bearer authentication required
|
|
5906
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5907
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5908
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5909
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5910
|
-
return {
|
|
5911
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5912
|
-
options: localVarRequestOptions,
|
|
5913
|
-
};
|
|
5914
|
-
}),
|
|
5915
|
-
/**
|
|
5916
|
-
*
|
|
5917
|
-
* @summary Retrieve the list of most visited clubs (max 10)
|
|
5918
|
-
* @param {*} [options] Override http request option.
|
|
5919
|
-
* @throws {RequiredError}
|
|
5920
|
-
*/
|
|
5921
|
-
getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5922
|
-
const localVarPath = `/api/analytics/most-liked`;
|
|
5923
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5924
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5925
|
-
let baseOptions;
|
|
5926
|
-
if (configuration) {
|
|
5927
|
-
baseOptions = configuration.baseOptions;
|
|
5928
|
-
}
|
|
5929
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5930
|
-
const localVarHeaderParameter = {};
|
|
5931
|
-
const localVarQueryParameter = {};
|
|
5932
|
-
// authentication bearerAuth required
|
|
5933
|
-
// http bearer authentication required
|
|
5934
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5935
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5936
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5937
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5938
|
-
return {
|
|
5939
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5940
|
-
options: localVarRequestOptions,
|
|
5941
|
-
};
|
|
5942
|
-
}),
|
|
5943
|
-
/**
|
|
5944
|
-
*
|
|
5945
|
-
* @summary Retrieve the list of most liked clubs (max 10)
|
|
5946
|
-
* @param {*} [options] Override http request option.
|
|
5947
|
-
* @throws {RequiredError}
|
|
5948
|
-
*/
|
|
5949
|
-
getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5950
|
-
const localVarPath = `/api/analytics/popular`;
|
|
5951
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5952
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5953
|
-
let baseOptions;
|
|
5954
|
-
if (configuration) {
|
|
5955
|
-
baseOptions = configuration.baseOptions;
|
|
5956
|
-
}
|
|
5957
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5958
|
-
const localVarHeaderParameter = {};
|
|
5959
|
-
const localVarQueryParameter = {};
|
|
5960
|
-
// authentication bearerAuth required
|
|
5961
|
-
// http bearer authentication required
|
|
5962
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5963
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5964
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5965
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5966
|
-
return {
|
|
5967
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5968
|
-
options: localVarRequestOptions,
|
|
5969
|
-
};
|
|
5970
|
-
}),
|
|
5971
|
-
};
|
|
5972
|
-
};
|
|
5973
|
-
exports.UserClubsApiAxiosParamCreator = UserClubsApiAxiosParamCreator;
|
|
5974
|
-
/**
|
|
5975
|
-
* UserClubsApi - functional programming interface
|
|
5976
|
-
* @export
|
|
5977
|
-
*/
|
|
5978
|
-
const UserClubsApiFp = function (configuration) {
|
|
5979
|
-
const localVarAxiosParamCreator = (0, exports.UserClubsApiAxiosParamCreator)(configuration);
|
|
5980
|
-
return {
|
|
5981
|
-
/**
|
|
5982
|
-
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
5983
|
-
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
5984
|
-
* @param {*} [options] Override http request option.
|
|
5985
|
-
* @throws {RequiredError}
|
|
5986
|
-
*/
|
|
5987
|
-
getActiveClubs(options) {
|
|
5988
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5989
|
-
var _a, _b, _c;
|
|
5990
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getActiveClubs(options);
|
|
5991
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5992
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubsApi.getActiveClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5993
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5994
|
-
});
|
|
5995
|
-
},
|
|
5996
|
-
/**
|
|
5997
|
-
*
|
|
5998
|
-
* @summary Retrieve the list of most visited clubs (max 10)
|
|
5999
|
-
* @param {*} [options] Override http request option.
|
|
6000
|
-
* @throws {RequiredError}
|
|
6001
|
-
*/
|
|
6002
|
-
getMostLikedClub(options) {
|
|
6003
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6004
|
-
var _a, _b, _c;
|
|
6005
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMostLikedClub(options);
|
|
6006
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6007
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubsApi.getMostLikedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6008
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6009
|
-
});
|
|
6010
|
-
},
|
|
6011
|
-
/**
|
|
6012
|
-
*
|
|
6013
|
-
* @summary Retrieve the list of most liked clubs (max 10)
|
|
6014
|
-
* @param {*} [options] Override http request option.
|
|
6015
|
-
* @throws {RequiredError}
|
|
6016
|
-
*/
|
|
6017
|
-
getPopularClubs(options) {
|
|
6018
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6019
|
-
var _a, _b, _c;
|
|
6020
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPopularClubs(options);
|
|
6021
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6022
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubsApi.getPopularClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6023
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6024
|
-
});
|
|
6025
|
-
},
|
|
6026
|
-
};
|
|
6027
|
-
};
|
|
6028
|
-
exports.UserClubsApiFp = UserClubsApiFp;
|
|
6029
|
-
/**
|
|
6030
|
-
* UserClubsApi - factory interface
|
|
6031
|
-
* @export
|
|
6032
|
-
*/
|
|
6033
|
-
const UserClubsApiFactory = function (configuration, basePath, axios) {
|
|
6034
|
-
const localVarFp = (0, exports.UserClubsApiFp)(configuration);
|
|
6035
|
-
return {
|
|
6036
|
-
/**
|
|
6037
|
-
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
6038
|
-
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
6039
|
-
* @param {*} [options] Override http request option.
|
|
6040
|
-
* @throws {RequiredError}
|
|
6041
|
-
*/
|
|
6042
|
-
getActiveClubs(options) {
|
|
6043
|
-
return localVarFp.getActiveClubs(options).then((request) => request(axios, basePath));
|
|
6044
|
-
},
|
|
6045
|
-
/**
|
|
6046
|
-
*
|
|
6047
|
-
* @summary Retrieve the list of most visited clubs (max 10)
|
|
6048
|
-
* @param {*} [options] Override http request option.
|
|
6049
|
-
* @throws {RequiredError}
|
|
6050
|
-
*/
|
|
6051
|
-
getMostLikedClub(options) {
|
|
6052
|
-
return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
|
|
6053
|
-
},
|
|
6054
|
-
/**
|
|
6055
|
-
*
|
|
6056
|
-
* @summary Retrieve the list of most liked clubs (max 10)
|
|
6057
|
-
* @param {*} [options] Override http request option.
|
|
6058
|
-
* @throws {RequiredError}
|
|
6059
|
-
*/
|
|
6060
|
-
getPopularClubs(options) {
|
|
6061
|
-
return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
|
|
6062
|
-
},
|
|
6063
|
-
};
|
|
6064
|
-
};
|
|
6065
|
-
exports.UserClubsApiFactory = UserClubsApiFactory;
|
|
6066
|
-
/**
|
|
6067
|
-
* UserClubsApi - object-oriented interface
|
|
6068
|
-
* @export
|
|
6069
|
-
* @class UserClubsApi
|
|
6070
|
-
* @extends {BaseAPI}
|
|
6071
|
-
*/
|
|
6072
|
-
class UserClubsApi extends base_1.BaseAPI {
|
|
6073
|
-
/**
|
|
6074
|
-
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
6075
|
-
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
6076
|
-
* @param {*} [options] Override http request option.
|
|
6077
|
-
* @throws {RequiredError}
|
|
6078
|
-
* @memberof UserClubsApi
|
|
6079
|
-
*/
|
|
6080
|
-
getActiveClubs(options) {
|
|
6081
|
-
return (0, exports.UserClubsApiFp)(this.configuration).getActiveClubs(options).then((request) => request(this.axios, this.basePath));
|
|
6082
|
-
}
|
|
6083
|
-
/**
|
|
6084
|
-
*
|
|
6085
|
-
* @summary Retrieve the list of most visited clubs (max 10)
|
|
6086
|
-
* @param {*} [options] Override http request option.
|
|
6087
|
-
* @throws {RequiredError}
|
|
6088
|
-
* @memberof UserClubsApi
|
|
6089
|
-
*/
|
|
6090
|
-
getMostLikedClub(options) {
|
|
6091
|
-
return (0, exports.UserClubsApiFp)(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
|
|
6092
|
-
}
|
|
6093
|
-
/**
|
|
6094
|
-
*
|
|
6095
|
-
* @summary Retrieve the list of most liked clubs (max 10)
|
|
6096
|
-
* @param {*} [options] Override http request option.
|
|
6097
|
-
* @throws {RequiredError}
|
|
6098
|
-
* @memberof UserClubsApi
|
|
6099
|
-
*/
|
|
6100
|
-
getPopularClubs(options) {
|
|
6101
|
-
return (0, exports.UserClubsApiFp)(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
|
|
6102
|
-
}
|
|
6103
|
-
}
|
|
6104
|
-
exports.UserClubsApi = UserClubsApi;
|
|
6105
|
-
/**
|
|
6106
|
-
* UserPaymentApi - axios parameter creator
|
|
6107
|
-
* @export
|
|
6108
|
-
*/
|
|
6109
|
-
const UserPaymentApiAxiosParamCreator = function (configuration) {
|
|
6110
|
-
return {
|
|
6111
|
-
/**
|
|
6112
|
-
*
|
|
6113
|
-
* @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
|
|
6114
|
-
* @param {AddPaymentMethodSetupRequestBody} addPaymentMethodSetupRequestBody
|
|
6115
|
-
* @param {*} [options] Override http request option.
|
|
6116
|
-
* @throws {RequiredError}
|
|
6117
|
-
*/
|
|
6118
|
-
addPaymentMethodSetup: (addPaymentMethodSetupRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodSetupRequestBody_1, ...args_1], void 0, function* (addPaymentMethodSetupRequestBody, options = {}) {
|
|
6119
|
-
// verify required parameter 'addPaymentMethodSetupRequestBody' is not null or undefined
|
|
6120
|
-
(0, common_1.assertParamExists)('addPaymentMethodSetup', 'addPaymentMethodSetupRequestBody', addPaymentMethodSetupRequestBody);
|
|
6121
|
-
const localVarPath = `/api/users/addPaymentMethodSetup`;
|
|
6122
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6123
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6124
|
-
let baseOptions;
|
|
6125
|
-
if (configuration) {
|
|
6126
|
-
baseOptions = configuration.baseOptions;
|
|
6127
|
-
}
|
|
6128
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6129
|
-
const localVarHeaderParameter = {};
|
|
6130
|
-
const localVarQueryParameter = {};
|
|
6131
|
-
// authentication bearerAuth required
|
|
6132
|
-
// http bearer authentication required
|
|
6133
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6134
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6135
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6136
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6137
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6138
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addPaymentMethodSetupRequestBody, localVarRequestOptions, configuration);
|
|
6139
|
-
return {
|
|
6140
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6141
|
-
options: localVarRequestOptions,
|
|
6142
|
-
};
|
|
6143
|
-
}),
|
|
6144
|
-
/**
|
|
6145
|
-
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
6146
|
-
* @summary Confirme la configuration d\'une méthode de paiement
|
|
6147
|
-
* @param {ConfirmPaymentMethodSetupRequestBody} confirmPaymentMethodSetupRequestBody
|
|
6148
|
-
* @param {*} [options] Override http request option.
|
|
6149
|
-
* @throws {RequiredError}
|
|
6150
|
-
*/
|
|
6151
|
-
confirmPaymentMethodSetup: (confirmPaymentMethodSetupRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodSetupRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodSetupRequestBody, options = {}) {
|
|
6152
|
-
// verify required parameter 'confirmPaymentMethodSetupRequestBody' is not null or undefined
|
|
6153
|
-
(0, common_1.assertParamExists)('confirmPaymentMethodSetup', 'confirmPaymentMethodSetupRequestBody', confirmPaymentMethodSetupRequestBody);
|
|
6154
|
-
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
6155
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6156
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6157
|
-
let baseOptions;
|
|
6158
|
-
if (configuration) {
|
|
6159
|
-
baseOptions = configuration.baseOptions;
|
|
6160
|
-
}
|
|
6161
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6162
|
-
const localVarHeaderParameter = {};
|
|
6163
|
-
const localVarQueryParameter = {};
|
|
6164
|
-
// authentication bearerAuth required
|
|
6165
|
-
// http bearer authentication required
|
|
6166
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6167
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6168
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6169
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6170
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6171
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(confirmPaymentMethodSetupRequestBody, localVarRequestOptions, configuration);
|
|
6172
|
-
return {
|
|
6173
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6174
|
-
options: localVarRequestOptions,
|
|
6175
|
-
};
|
|
6176
|
-
}),
|
|
6177
|
-
/**
|
|
6178
|
-
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
6179
|
-
* @summary Configure une méthode de paiement pour un utilisateur
|
|
6180
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
6181
|
-
* @param {*} [options] Override http request option.
|
|
6182
|
-
* @throws {RequiredError}
|
|
6183
|
-
*/
|
|
6184
|
-
setupPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
6185
|
-
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
6186
|
-
(0, common_1.assertParamExists)('setupPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
6187
|
-
const localVarPath = `/api/users/setupPaymentMethod`;
|
|
6188
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6189
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6190
|
-
let baseOptions;
|
|
6191
|
-
if (configuration) {
|
|
6192
|
-
baseOptions = configuration.baseOptions;
|
|
6193
|
-
}
|
|
6194
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6195
|
-
const localVarHeaderParameter = {};
|
|
6196
|
-
const localVarQueryParameter = {};
|
|
6197
|
-
// authentication bearerAuth required
|
|
6198
|
-
// http bearer authentication required
|
|
6199
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6200
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6201
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6202
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6203
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6204
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
6205
|
-
return {
|
|
6206
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6207
|
-
options: localVarRequestOptions,
|
|
6208
|
-
};
|
|
6209
|
-
}),
|
|
6210
|
-
};
|
|
6211
|
-
};
|
|
6212
|
-
exports.UserPaymentApiAxiosParamCreator = UserPaymentApiAxiosParamCreator;
|
|
6213
|
-
/**
|
|
6214
|
-
* UserPaymentApi - functional programming interface
|
|
6215
|
-
* @export
|
|
6216
|
-
*/
|
|
6217
|
-
const UserPaymentApiFp = function (configuration) {
|
|
6218
|
-
const localVarAxiosParamCreator = (0, exports.UserPaymentApiAxiosParamCreator)(configuration);
|
|
6219
|
-
return {
|
|
6220
|
-
/**
|
|
6221
|
-
*
|
|
6222
|
-
* @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
|
|
6223
|
-
* @param {AddPaymentMethodSetupRequestBody} addPaymentMethodSetupRequestBody
|
|
6224
|
-
* @param {*} [options] Override http request option.
|
|
6225
|
-
* @throws {RequiredError}
|
|
6226
|
-
*/
|
|
6227
|
-
addPaymentMethodSetup(addPaymentMethodSetupRequestBody, options) {
|
|
6228
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6229
|
-
var _a, _b, _c;
|
|
6230
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodSetupRequestBody, options);
|
|
6231
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6232
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPaymentApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6233
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6234
|
-
});
|
|
6235
|
-
},
|
|
6236
|
-
/**
|
|
6237
|
-
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
6238
|
-
* @summary Confirme la configuration d\'une méthode de paiement
|
|
6239
|
-
* @param {ConfirmPaymentMethodSetupRequestBody} confirmPaymentMethodSetupRequestBody
|
|
6240
|
-
* @param {*} [options] Override http request option.
|
|
6241
|
-
* @throws {RequiredError}
|
|
6242
|
-
*/
|
|
6243
|
-
confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody, options) {
|
|
6244
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6245
|
-
var _a, _b, _c;
|
|
6246
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody, options);
|
|
6247
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6248
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPaymentApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6249
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6250
|
-
});
|
|
6251
|
-
},
|
|
6252
|
-
/**
|
|
6253
|
-
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
6254
|
-
* @summary Configure une méthode de paiement pour un utilisateur
|
|
6255
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
6256
|
-
* @param {*} [options] Override http request option.
|
|
6257
|
-
* @throws {RequiredError}
|
|
6258
|
-
*/
|
|
6259
|
-
setupPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
6260
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6261
|
-
var _a, _b, _c;
|
|
6262
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
6263
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6264
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPaymentApi.setupPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6265
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6266
|
-
});
|
|
6267
|
-
},
|
|
6268
|
-
};
|
|
6269
|
-
};
|
|
6270
|
-
exports.UserPaymentApiFp = UserPaymentApiFp;
|
|
6271
|
-
/**
|
|
6272
|
-
* UserPaymentApi - factory interface
|
|
6273
|
-
* @export
|
|
6274
|
-
*/
|
|
6275
|
-
const UserPaymentApiFactory = function (configuration, basePath, axios) {
|
|
6276
|
-
const localVarFp = (0, exports.UserPaymentApiFp)(configuration);
|
|
6277
|
-
return {
|
|
6278
|
-
/**
|
|
6279
|
-
*
|
|
6280
|
-
* @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
|
|
6281
|
-
* @param {UserPaymentApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
6282
|
-
* @param {*} [options] Override http request option.
|
|
6283
|
-
* @throws {RequiredError}
|
|
6284
|
-
*/
|
|
6285
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
6286
|
-
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodSetupRequestBody, options).then((request) => request(axios, basePath));
|
|
6287
|
-
},
|
|
6288
|
-
/**
|
|
6289
|
-
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
6290
|
-
* @summary Confirme la configuration d\'une méthode de paiement
|
|
6291
|
-
* @param {UserPaymentApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
6292
|
-
* @param {*} [options] Override http request option.
|
|
6293
|
-
* @throws {RequiredError}
|
|
6294
|
-
*/
|
|
6295
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
6296
|
-
return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodSetupRequestBody, options).then((request) => request(axios, basePath));
|
|
6297
|
-
},
|
|
6298
|
-
/**
|
|
6299
|
-
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
6300
|
-
* @summary Configure une méthode de paiement pour un utilisateur
|
|
6301
|
-
* @param {UserPaymentApiSetupPaymentMethodRequest} requestParameters Request parameters.
|
|
6302
|
-
* @param {*} [options] Override http request option.
|
|
6303
|
-
* @throws {RequiredError}
|
|
6304
|
-
*/
|
|
6305
|
-
setupPaymentMethod(requestParameters, options) {
|
|
6306
|
-
return localVarFp.setupPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
6307
|
-
},
|
|
6308
|
-
};
|
|
6309
|
-
};
|
|
6310
|
-
exports.UserPaymentApiFactory = UserPaymentApiFactory;
|
|
6311
|
-
/**
|
|
6312
|
-
* UserPaymentApi - object-oriented interface
|
|
6313
|
-
* @export
|
|
6314
|
-
* @class UserPaymentApi
|
|
6315
|
-
* @extends {BaseAPI}
|
|
6316
|
-
*/
|
|
6317
|
-
class UserPaymentApi extends base_1.BaseAPI {
|
|
6318
|
-
/**
|
|
6319
|
-
*
|
|
6320
|
-
* @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
|
|
6321
|
-
* @param {UserPaymentApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
6322
|
-
* @param {*} [options] Override http request option.
|
|
6323
|
-
* @throws {RequiredError}
|
|
6324
|
-
* @memberof UserPaymentApi
|
|
6325
|
-
*/
|
|
6326
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
6327
|
-
return (0, exports.UserPaymentApiFp)(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodSetupRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
6328
|
-
}
|
|
6329
|
-
/**
|
|
6330
|
-
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
6331
|
-
* @summary Confirme la configuration d\'une méthode de paiement
|
|
6332
|
-
* @param {UserPaymentApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
6333
|
-
* @param {*} [options] Override http request option.
|
|
6334
|
-
* @throws {RequiredError}
|
|
6335
|
-
* @memberof UserPaymentApi
|
|
6336
|
-
*/
|
|
6337
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
6338
|
-
return (0, exports.UserPaymentApiFp)(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodSetupRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
6339
|
-
}
|
|
6340
|
-
/**
|
|
6341
|
-
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
6342
|
-
* @summary Configure une méthode de paiement pour un utilisateur
|
|
6343
|
-
* @param {UserPaymentApiSetupPaymentMethodRequest} requestParameters Request parameters.
|
|
6344
|
-
* @param {*} [options] Override http request option.
|
|
6345
|
-
* @throws {RequiredError}
|
|
6346
|
-
* @memberof UserPaymentApi
|
|
6347
|
-
*/
|
|
6348
|
-
setupPaymentMethod(requestParameters, options) {
|
|
6349
|
-
return (0, exports.UserPaymentApiFp)(this.configuration).setupPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
6350
|
-
}
|
|
6351
|
-
}
|
|
6352
|
-
exports.UserPaymentApi = UserPaymentApi;
|
|
6353
|
-
/**
|
|
6354
|
-
* UserProfileApi - axios parameter creator
|
|
6355
|
-
* @export
|
|
6356
|
-
*/
|
|
6357
|
-
const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
6358
|
-
return {
|
|
6359
|
-
/**
|
|
6360
|
-
*
|
|
6361
|
-
* @summary Add a club to the user\'s favorite list
|
|
6362
|
-
* @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
|
|
6363
|
-
* @param {*} [options] Override http request option.
|
|
6364
|
-
* @throws {RequiredError}
|
|
6365
|
-
*/
|
|
6366
|
-
addFavoriteClub: (addFavoriteClubRequestBody_1, ...args_1) => __awaiter(this, [addFavoriteClubRequestBody_1, ...args_1], void 0, function* (addFavoriteClubRequestBody, options = {}) {
|
|
6367
|
-
// verify required parameter 'addFavoriteClubRequestBody' is not null or undefined
|
|
6368
|
-
(0, common_1.assertParamExists)('addFavoriteClub', 'addFavoriteClubRequestBody', addFavoriteClubRequestBody);
|
|
6369
|
-
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
6370
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6371
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6372
|
-
let baseOptions;
|
|
6373
|
-
if (configuration) {
|
|
6374
|
-
baseOptions = configuration.baseOptions;
|
|
6375
|
-
}
|
|
6376
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6377
|
-
const localVarHeaderParameter = {};
|
|
6378
|
-
const localVarQueryParameter = {};
|
|
6379
|
-
// authentication bearerAuth required
|
|
6380
|
-
// http bearer authentication required
|
|
6381
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6382
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6383
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6384
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6385
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6386
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addFavoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
6387
|
-
return {
|
|
6388
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6389
|
-
options: localVarRequestOptions,
|
|
6390
|
-
};
|
|
6391
|
-
}),
|
|
6392
|
-
/**
|
|
6393
|
-
*
|
|
6394
|
-
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
6395
|
-
* @param {AddFavoritePlayerRequestBody} addFavoritePlayerRequestBody
|
|
6396
|
-
* @param {*} [options] Override http request option.
|
|
6397
|
-
* @throws {RequiredError}
|
|
6398
|
-
*/
|
|
6399
|
-
addFavoritePlayer: (addFavoritePlayerRequestBody_1, ...args_1) => __awaiter(this, [addFavoritePlayerRequestBody_1, ...args_1], void 0, function* (addFavoritePlayerRequestBody, options = {}) {
|
|
6400
|
-
// verify required parameter 'addFavoritePlayerRequestBody' is not null or undefined
|
|
6401
|
-
(0, common_1.assertParamExists)('addFavoritePlayer', 'addFavoritePlayerRequestBody', addFavoritePlayerRequestBody);
|
|
6402
|
-
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
6403
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6404
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6405
|
-
let baseOptions;
|
|
6406
|
-
if (configuration) {
|
|
6407
|
-
baseOptions = configuration.baseOptions;
|
|
6408
|
-
}
|
|
6409
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6410
|
-
const localVarHeaderParameter = {};
|
|
6411
|
-
const localVarQueryParameter = {};
|
|
6412
|
-
// authentication bearerAuth required
|
|
6413
|
-
// http bearer authentication required
|
|
6414
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6415
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6416
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6417
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6418
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6419
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addFavoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
6420
|
-
return {
|
|
6421
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6422
|
-
options: localVarRequestOptions,
|
|
6423
|
-
};
|
|
6424
|
-
}),
|
|
6425
|
-
/**
|
|
6426
|
-
*
|
|
6427
|
-
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
6428
|
-
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
6429
|
-
* @param {*} [options] Override http request option.
|
|
6430
|
-
* @throws {RequiredError}
|
|
6431
|
-
*/
|
|
6432
|
-
changePassword: (changePasswordRequestBody_1, ...args_1) => __awaiter(this, [changePasswordRequestBody_1, ...args_1], void 0, function* (changePasswordRequestBody, options = {}) {
|
|
6433
|
-
// verify required parameter 'changePasswordRequestBody' is not null or undefined
|
|
6434
|
-
(0, common_1.assertParamExists)('changePassword', 'changePasswordRequestBody', changePasswordRequestBody);
|
|
6435
|
-
const localVarPath = `/api/users/me/password`;
|
|
6436
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6437
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6438
|
-
let baseOptions;
|
|
6439
|
-
if (configuration) {
|
|
6440
|
-
baseOptions = configuration.baseOptions;
|
|
6441
|
-
}
|
|
6442
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6443
|
-
const localVarHeaderParameter = {};
|
|
6444
|
-
const localVarQueryParameter = {};
|
|
6445
|
-
// authentication bearerAuth required
|
|
6446
|
-
// http bearer authentication required
|
|
6447
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6448
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6449
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6450
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6451
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6452
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(changePasswordRequestBody, localVarRequestOptions, configuration);
|
|
6453
|
-
return {
|
|
6454
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6455
|
-
options: localVarRequestOptions,
|
|
6456
|
-
};
|
|
6457
|
-
}),
|
|
6458
|
-
/**
|
|
6459
|
-
*
|
|
6460
|
-
* @summary Récupère la liste des utilisateurs avec filtres et pagination
|
|
6461
|
-
* @param {number} [limit] Nombre maximum d\'utilisateurs à retourner
|
|
6462
|
-
* @param {number} [skip] Nombre d\'utilisateurs à ignorer (pagination)
|
|
6463
|
-
* @param {string} [search] Recherche dans firstName, lastName, email
|
|
6464
|
-
* @param {*} [options] Override http request option.
|
|
6465
|
-
* @throws {RequiredError}
|
|
6466
|
-
*/
|
|
6467
|
-
getAllUsers: (limit_1, skip_1, search_1, ...args_1) => __awaiter(this, [limit_1, skip_1, search_1, ...args_1], void 0, function* (limit, skip, search, options = {}) {
|
|
6468
|
-
const localVarPath = `/api/users`;
|
|
6469
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6470
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6471
|
-
let baseOptions;
|
|
6472
|
-
if (configuration) {
|
|
6473
|
-
baseOptions = configuration.baseOptions;
|
|
6474
|
-
}
|
|
6475
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6476
|
-
const localVarHeaderParameter = {};
|
|
6477
|
-
const localVarQueryParameter = {};
|
|
6478
|
-
// authentication bearerAuth required
|
|
6479
|
-
// http bearer authentication required
|
|
6480
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6481
|
-
if (limit !== undefined) {
|
|
6482
|
-
localVarQueryParameter['limit'] = limit;
|
|
6483
|
-
}
|
|
6484
|
-
if (skip !== undefined) {
|
|
6485
|
-
localVarQueryParameter['skip'] = skip;
|
|
6486
|
-
}
|
|
6487
|
-
if (search !== undefined) {
|
|
6488
|
-
localVarQueryParameter['search'] = search;
|
|
6489
|
-
}
|
|
6490
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6491
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6492
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6493
|
-
return {
|
|
6494
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6495
|
-
options: localVarRequestOptions,
|
|
6496
|
-
};
|
|
6497
|
-
}),
|
|
6498
|
-
/**
|
|
6499
|
-
*
|
|
6500
|
-
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
6501
|
-
* @param {*} [options] Override http request option.
|
|
6502
|
-
* @throws {RequiredError}
|
|
6503
|
-
*/
|
|
6504
|
-
getFavoriteClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6505
|
-
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
6506
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6507
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6508
|
-
let baseOptions;
|
|
6509
|
-
if (configuration) {
|
|
6510
|
-
baseOptions = configuration.baseOptions;
|
|
6511
|
-
}
|
|
6512
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6513
|
-
const localVarHeaderParameter = {};
|
|
6514
|
-
const localVarQueryParameter = {};
|
|
6515
|
-
// authentication bearerAuth required
|
|
6516
|
-
// http bearer authentication required
|
|
6517
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6518
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6519
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6520
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6521
|
-
return {
|
|
6522
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6523
|
-
options: localVarRequestOptions,
|
|
6524
|
-
};
|
|
6525
|
-
}),
|
|
6526
|
-
/**
|
|
6527
|
-
*
|
|
6528
|
-
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
6529
|
-
* @param {*} [options] Override http request option.
|
|
6530
|
-
* @throws {RequiredError}
|
|
6531
|
-
*/
|
|
6532
|
-
getFavoritesPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6533
|
-
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
6534
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6535
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6536
|
-
let baseOptions;
|
|
6537
|
-
if (configuration) {
|
|
6538
|
-
baseOptions = configuration.baseOptions;
|
|
6539
|
-
}
|
|
6540
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6541
|
-
const localVarHeaderParameter = {};
|
|
6542
|
-
const localVarQueryParameter = {};
|
|
6543
|
-
// authentication bearerAuth required
|
|
6544
|
-
// http bearer authentication required
|
|
6545
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6546
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6547
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6548
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6549
|
-
return {
|
|
6550
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6551
|
-
options: localVarRequestOptions,
|
|
6552
|
-
};
|
|
6553
|
-
}),
|
|
6554
|
-
/**
|
|
6555
|
-
*
|
|
6556
|
-
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
6557
|
-
* @param {*} [options] Override http request option.
|
|
6558
|
-
* @throws {RequiredError}
|
|
6559
|
-
*/
|
|
6560
|
-
getFrequentlyPlayedWith: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6561
|
-
const localVarPath = `/api/users/me/frequentlyPlayedWith`;
|
|
6562
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6563
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6564
|
-
let baseOptions;
|
|
6565
|
-
if (configuration) {
|
|
6566
|
-
baseOptions = configuration.baseOptions;
|
|
6567
|
-
}
|
|
6568
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6569
|
-
const localVarHeaderParameter = {};
|
|
6570
|
-
const localVarQueryParameter = {};
|
|
6571
|
-
// authentication bearerAuth required
|
|
6572
|
-
// http bearer authentication required
|
|
6573
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6574
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6575
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6576
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6577
|
-
return {
|
|
6578
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6579
|
-
options: localVarRequestOptions,
|
|
6580
|
-
};
|
|
6581
|
-
}),
|
|
6582
|
-
/**
|
|
6583
|
-
*
|
|
6584
|
-
* @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
|
|
6585
|
-
* @param {*} [options] Override http request option.
|
|
6586
|
-
* @throws {RequiredError}
|
|
6587
|
-
*/
|
|
6588
|
-
getFrequentlyVisitedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6589
|
-
const localVarPath = `/api/users/me/frequentlyVisitedClub`;
|
|
6590
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6591
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6592
|
-
let baseOptions;
|
|
6593
|
-
if (configuration) {
|
|
6594
|
-
baseOptions = configuration.baseOptions;
|
|
6595
|
-
}
|
|
6596
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6597
|
-
const localVarHeaderParameter = {};
|
|
6598
|
-
const localVarQueryParameter = {};
|
|
6599
|
-
// authentication bearerAuth required
|
|
6600
|
-
// http bearer authentication required
|
|
6601
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6602
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6603
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6604
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6605
|
-
return {
|
|
6606
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6607
|
-
options: localVarRequestOptions,
|
|
6608
|
-
};
|
|
6609
|
-
}),
|
|
6610
|
-
/**
|
|
6611
|
-
*
|
|
6612
|
-
* @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
|
|
6613
|
-
* @param {*} [options] Override http request option.
|
|
6614
|
-
* @throws {RequiredError}
|
|
6615
|
-
*/
|
|
6616
|
-
getProfilePicture: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6617
|
-
const localVarPath = `/api/users/me/profile-picture`;
|
|
6618
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6619
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6620
|
-
let baseOptions;
|
|
6621
|
-
if (configuration) {
|
|
6622
|
-
baseOptions = configuration.baseOptions;
|
|
6623
|
-
}
|
|
6624
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6625
|
-
const localVarHeaderParameter = {};
|
|
6626
|
-
const localVarQueryParameter = {};
|
|
6627
|
-
// authentication bearerAuth required
|
|
6628
|
-
// http bearer authentication required
|
|
6629
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6630
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6631
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6632
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6633
|
-
return {
|
|
6634
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6635
|
-
options: localVarRequestOptions,
|
|
6636
|
-
};
|
|
6637
|
-
}),
|
|
6638
|
-
/**
|
|
6639
|
-
*
|
|
6640
|
-
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
6641
|
-
* @param {string} id ID de l\'utilisateur
|
|
6642
|
-
* @param {*} [options] Override http request option.
|
|
6643
|
-
* @throws {RequiredError}
|
|
6644
|
-
*/
|
|
6645
|
-
getPublicUserProfile: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
6646
|
-
// verify required parameter 'id' is not null or undefined
|
|
6647
|
-
(0, common_1.assertParamExists)('getPublicUserProfile', 'id', id);
|
|
6648
|
-
const localVarPath = `/api/users/profile/{id}`
|
|
6649
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6650
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6651
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6652
|
-
let baseOptions;
|
|
6653
|
-
if (configuration) {
|
|
6654
|
-
baseOptions = configuration.baseOptions;
|
|
6655
|
-
}
|
|
6656
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6657
|
-
const localVarHeaderParameter = {};
|
|
6658
|
-
const localVarQueryParameter = {};
|
|
6659
|
-
// authentication bearerAuth required
|
|
6660
|
-
// http bearer authentication required
|
|
6661
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6662
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6663
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6664
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6665
|
-
return {
|
|
6666
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6667
|
-
options: localVarRequestOptions,
|
|
6668
|
-
};
|
|
6669
|
-
}),
|
|
6670
|
-
/**
|
|
6671
|
-
*
|
|
6672
|
-
* @summary Récupère le detéail d\'une réservation
|
|
6673
|
-
* @param {string} bookingId ID de la réservation
|
|
6674
|
-
* @param {*} [options] Override http request option.
|
|
6675
|
-
* @throws {RequiredError}
|
|
6676
|
-
*/
|
|
6677
|
-
getUserBookingDetail: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
6678
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
6679
|
-
(0, common_1.assertParamExists)('getUserBookingDetail', 'bookingId', bookingId);
|
|
6680
|
-
const localVarPath = `/api/users/me/booking-detail/{bookingId}`
|
|
6681
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
6682
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6683
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6684
|
-
let baseOptions;
|
|
6685
|
-
if (configuration) {
|
|
6686
|
-
baseOptions = configuration.baseOptions;
|
|
6687
|
-
}
|
|
6688
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6689
|
-
const localVarHeaderParameter = {};
|
|
6690
|
-
const localVarQueryParameter = {};
|
|
6691
|
-
// authentication bearerAuth required
|
|
6692
|
-
// http bearer authentication required
|
|
6693
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6694
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6695
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6696
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6697
|
-
return {
|
|
6698
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6699
|
-
options: localVarRequestOptions,
|
|
6700
|
-
};
|
|
6701
|
-
}),
|
|
6702
|
-
/**
|
|
6703
|
-
*
|
|
6704
|
-
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
6705
|
-
* @param {number} [limit] Nombre maximum de réservations à retourner
|
|
6706
|
-
* @param {number} [skip] Nombre de réservations à ignorer (pagination)
|
|
6707
|
-
* @param {*} [options] Override http request option.
|
|
6708
|
-
* @throws {RequiredError}
|
|
6709
|
-
*/
|
|
6710
|
-
getUserBookings: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
|
|
6711
|
-
const localVarPath = `/api/users/me/bookings`;
|
|
6712
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6713
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6714
|
-
let baseOptions;
|
|
6715
|
-
if (configuration) {
|
|
6716
|
-
baseOptions = configuration.baseOptions;
|
|
6717
|
-
}
|
|
6718
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6719
|
-
const localVarHeaderParameter = {};
|
|
6720
|
-
const localVarQueryParameter = {};
|
|
6721
|
-
// authentication bearerAuth required
|
|
6722
|
-
// http bearer authentication required
|
|
6723
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6724
|
-
if (limit !== undefined) {
|
|
6725
|
-
localVarQueryParameter['limit'] = limit;
|
|
6726
|
-
}
|
|
6727
|
-
if (skip !== undefined) {
|
|
6728
|
-
localVarQueryParameter['skip'] = skip;
|
|
6729
|
-
}
|
|
6730
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6731
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6732
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6733
|
-
return {
|
|
6734
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6735
|
-
options: localVarRequestOptions,
|
|
6736
|
-
};
|
|
6737
|
-
}),
|
|
6738
|
-
/**
|
|
6739
|
-
*
|
|
6740
|
-
* @summary Récupère la ville de l\'utilisateur connecté
|
|
6741
|
-
* @param {*} [options] Override http request option.
|
|
6742
|
-
* @throws {RequiredError}
|
|
6743
|
-
*/
|
|
6744
|
-
getUserCity: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6745
|
-
const localVarPath = `/api/users/me/city`;
|
|
6746
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6747
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6748
|
-
let baseOptions;
|
|
6749
|
-
if (configuration) {
|
|
6750
|
-
baseOptions = configuration.baseOptions;
|
|
6751
|
-
}
|
|
6752
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6753
|
-
const localVarHeaderParameter = {};
|
|
6754
|
-
const localVarQueryParameter = {};
|
|
6755
|
-
// authentication bearerAuth required
|
|
6756
|
-
// http bearer authentication required
|
|
6757
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6758
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6759
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6760
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6761
|
-
return {
|
|
6762
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6763
|
-
options: localVarRequestOptions,
|
|
6764
|
-
};
|
|
6765
|
-
}),
|
|
6766
|
-
/**
|
|
6767
|
-
*
|
|
6768
|
-
* @summary Récupère la description de l\'utilisateur connecté
|
|
6769
|
-
* @param {*} [options] Override http request option.
|
|
6770
|
-
* @throws {RequiredError}
|
|
6771
|
-
*/
|
|
6772
|
-
getUserDescription: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6773
|
-
const localVarPath = `/api/users/me/description`;
|
|
6774
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6775
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6776
|
-
let baseOptions;
|
|
6777
|
-
if (configuration) {
|
|
6778
|
-
baseOptions = configuration.baseOptions;
|
|
6779
|
-
}
|
|
6780
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6781
|
-
const localVarHeaderParameter = {};
|
|
6782
|
-
const localVarQueryParameter = {};
|
|
6783
|
-
// authentication bearerAuth required
|
|
6784
|
-
// http bearer authentication required
|
|
6785
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6786
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6787
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6788
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6789
|
-
return {
|
|
6790
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6791
|
-
options: localVarRequestOptions,
|
|
6792
|
-
};
|
|
6793
|
-
}),
|
|
6794
|
-
/**
|
|
6795
|
-
*
|
|
6796
|
-
* @summary Récupère les informations de l\'utilisateur connecté
|
|
6797
|
-
* @param {*} [options] Override http request option.
|
|
6798
|
-
* @throws {RequiredError}
|
|
6799
|
-
*/
|
|
6800
|
-
getUserInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6801
|
-
const localVarPath = `/api/users/me`;
|
|
6802
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6803
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6804
|
-
let baseOptions;
|
|
6805
|
-
if (configuration) {
|
|
6806
|
-
baseOptions = configuration.baseOptions;
|
|
6807
|
-
}
|
|
6808
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6809
|
-
const localVarHeaderParameter = {};
|
|
6810
|
-
const localVarQueryParameter = {};
|
|
6811
|
-
// authentication bearerAuth required
|
|
6812
|
-
// http bearer authentication required
|
|
6813
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6814
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6815
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6816
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6817
|
-
return {
|
|
6818
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6819
|
-
options: localVarRequestOptions,
|
|
6820
|
-
};
|
|
6821
|
-
}),
|
|
6822
|
-
/**
|
|
6823
|
-
*
|
|
6824
|
-
* @summary Récupère la visibilité du profil de l\'utilisateur connecté
|
|
6825
|
-
* @param {*} [options] Override http request option.
|
|
6826
|
-
* @throws {RequiredError}
|
|
6827
|
-
*/
|
|
6828
|
-
getUserProfileVisibility: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6829
|
-
const localVarPath = `/api/users/me/profile-visibility`;
|
|
6830
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6831
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6832
|
-
let baseOptions;
|
|
6833
|
-
if (configuration) {
|
|
6834
|
-
baseOptions = configuration.baseOptions;
|
|
6835
|
-
}
|
|
6836
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6837
|
-
const localVarHeaderParameter = {};
|
|
6838
|
-
const localVarQueryParameter = {};
|
|
6839
|
-
// authentication bearerAuth required
|
|
6840
|
-
// http bearer authentication required
|
|
6841
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6842
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6843
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6844
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6845
|
-
return {
|
|
6846
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6847
|
-
options: localVarRequestOptions,
|
|
6848
|
-
};
|
|
6849
|
-
}),
|
|
6850
|
-
/**
|
|
6851
|
-
*
|
|
6852
|
-
* @summary Remove a club from the user\'s favorite list
|
|
6853
|
-
* @param {string} clubId ID of the club to remove from favorites
|
|
6854
|
-
* @param {*} [options] Override http request option.
|
|
6855
|
-
* @throws {RequiredError}
|
|
6856
|
-
*/
|
|
6857
|
-
removeFavoriteClub: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
6858
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
6859
|
-
(0, common_1.assertParamExists)('removeFavoriteClub', 'clubId', clubId);
|
|
6860
|
-
const localVarPath = `/api/users/me/favorite-clubs/{clubId}`
|
|
6861
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
6862
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6863
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6864
|
-
let baseOptions;
|
|
6865
|
-
if (configuration) {
|
|
6866
|
-
baseOptions = configuration.baseOptions;
|
|
6867
|
-
}
|
|
6868
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6869
|
-
const localVarHeaderParameter = {};
|
|
6870
|
-
const localVarQueryParameter = {};
|
|
6871
|
-
// authentication bearerAuth required
|
|
6872
|
-
// http bearer authentication required
|
|
6873
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6874
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6875
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6876
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6877
|
-
return {
|
|
6878
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6879
|
-
options: localVarRequestOptions,
|
|
6880
|
-
};
|
|
6881
|
-
}),
|
|
6882
|
-
/**
|
|
6883
|
-
*
|
|
6884
|
-
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
6885
|
-
* @param {string} favoritePlayerId ID du joueur à retirer des favoris
|
|
6886
|
-
* @param {*} [options] Override http request option.
|
|
6887
|
-
* @throws {RequiredError}
|
|
6888
|
-
*/
|
|
6889
|
-
removeFavoritePlayer: (favoritePlayerId_1, ...args_1) => __awaiter(this, [favoritePlayerId_1, ...args_1], void 0, function* (favoritePlayerId, options = {}) {
|
|
6890
|
-
// verify required parameter 'favoritePlayerId' is not null or undefined
|
|
6891
|
-
(0, common_1.assertParamExists)('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId);
|
|
6892
|
-
const localVarPath = `/api/users/me/favoritesPlayers/{favoritePlayerId}`
|
|
6893
|
-
.replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
|
|
6894
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6895
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6896
|
-
let baseOptions;
|
|
6897
|
-
if (configuration) {
|
|
6898
|
-
baseOptions = configuration.baseOptions;
|
|
6899
|
-
}
|
|
6900
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6901
|
-
const localVarHeaderParameter = {};
|
|
6902
|
-
const localVarQueryParameter = {};
|
|
6903
|
-
// authentication bearerAuth required
|
|
6904
|
-
// http bearer authentication required
|
|
6905
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6906
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6907
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6908
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6909
|
-
return {
|
|
6910
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6911
|
-
options: localVarRequestOptions,
|
|
6912
|
-
};
|
|
6913
|
-
}),
|
|
6914
|
-
/**
|
|
6915
|
-
*
|
|
6916
|
-
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
6917
|
-
* @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
|
|
6918
|
-
* @param {*} [options] Override http request option.
|
|
6919
|
-
* @throws {RequiredError}
|
|
6920
|
-
*/
|
|
6921
|
-
updateLevelBySports: (updateLevelBySportsRequestBody_1, ...args_1) => __awaiter(this, [updateLevelBySportsRequestBody_1, ...args_1], void 0, function* (updateLevelBySportsRequestBody, options = {}) {
|
|
6922
|
-
// verify required parameter 'updateLevelBySportsRequestBody' is not null or undefined
|
|
6923
|
-
(0, common_1.assertParamExists)('updateLevelBySports', 'updateLevelBySportsRequestBody', updateLevelBySportsRequestBody);
|
|
6924
|
-
const localVarPath = `/api/users/me/level-by-sports`;
|
|
6925
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6926
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6927
|
-
let baseOptions;
|
|
6928
|
-
if (configuration) {
|
|
6929
|
-
baseOptions = configuration.baseOptions;
|
|
6930
|
-
}
|
|
6931
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6932
|
-
const localVarHeaderParameter = {};
|
|
6933
|
-
const localVarQueryParameter = {};
|
|
6934
|
-
// authentication bearerAuth required
|
|
6935
|
-
// http bearer authentication required
|
|
6936
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6937
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6938
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6939
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6940
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6941
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateLevelBySportsRequestBody, localVarRequestOptions, configuration);
|
|
6942
|
-
return {
|
|
6943
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6944
|
-
options: localVarRequestOptions,
|
|
6945
|
-
};
|
|
6946
|
-
}),
|
|
6947
|
-
/**
|
|
6948
|
-
*
|
|
6949
|
-
* @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
|
|
6950
|
-
* @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
|
|
6951
|
-
* @param {*} [options] Override http request option.
|
|
6952
|
-
* @throws {RequiredError}
|
|
6953
|
-
*/
|
|
6954
|
-
updateProfilePicture: (updateProfilePictureRequestBody_1, ...args_1) => __awaiter(this, [updateProfilePictureRequestBody_1, ...args_1], void 0, function* (updateProfilePictureRequestBody, options = {}) {
|
|
6955
|
-
// verify required parameter 'updateProfilePictureRequestBody' is not null or undefined
|
|
6956
|
-
(0, common_1.assertParamExists)('updateProfilePicture', 'updateProfilePictureRequestBody', updateProfilePictureRequestBody);
|
|
6957
|
-
const localVarPath = `/api/users/me/profile-picture`;
|
|
6958
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6959
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6960
|
-
let baseOptions;
|
|
6961
|
-
if (configuration) {
|
|
6962
|
-
baseOptions = configuration.baseOptions;
|
|
6963
|
-
}
|
|
6964
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6965
|
-
const localVarHeaderParameter = {};
|
|
6966
|
-
const localVarQueryParameter = {};
|
|
6967
|
-
// authentication bearerAuth required
|
|
6968
|
-
// http bearer authentication required
|
|
6969
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6970
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6971
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6972
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6973
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6974
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProfilePictureRequestBody, localVarRequestOptions, configuration);
|
|
6975
|
-
return {
|
|
6976
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6977
|
-
options: localVarRequestOptions,
|
|
6978
|
-
};
|
|
6979
|
-
}),
|
|
6980
|
-
/**
|
|
6981
|
-
*
|
|
6982
|
-
* @summary Met à jour la visibilité du profil de l\'utilisateur connecté
|
|
6983
|
-
* @param {UpdateProfileVisibilityRequestBody} updateProfileVisibilityRequestBody
|
|
6984
|
-
* @param {*} [options] Override http request option.
|
|
6985
|
-
* @throws {RequiredError}
|
|
6986
|
-
*/
|
|
6987
|
-
updateProfileVisibility: (updateProfileVisibilityRequestBody_1, ...args_1) => __awaiter(this, [updateProfileVisibilityRequestBody_1, ...args_1], void 0, function* (updateProfileVisibilityRequestBody, options = {}) {
|
|
6988
|
-
// verify required parameter 'updateProfileVisibilityRequestBody' is not null or undefined
|
|
6989
|
-
(0, common_1.assertParamExists)('updateProfileVisibility', 'updateProfileVisibilityRequestBody', updateProfileVisibilityRequestBody);
|
|
6990
|
-
const localVarPath = `/api/users/me/profile-visibility`;
|
|
6991
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6992
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6993
|
-
let baseOptions;
|
|
6994
|
-
if (configuration) {
|
|
6995
|
-
baseOptions = configuration.baseOptions;
|
|
6996
|
-
}
|
|
6997
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6998
|
-
const localVarHeaderParameter = {};
|
|
6999
|
-
const localVarQueryParameter = {};
|
|
7000
|
-
// authentication bearerAuth required
|
|
7001
|
-
// http bearer authentication required
|
|
7002
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7003
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7004
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7005
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7006
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7007
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProfileVisibilityRequestBody, localVarRequestOptions, configuration);
|
|
7008
|
-
return {
|
|
7009
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7010
|
-
options: localVarRequestOptions,
|
|
7011
|
-
};
|
|
7012
|
-
}),
|
|
7013
|
-
/**
|
|
7014
|
-
*
|
|
7015
|
-
* @summary Met à jour les données de l\'utilisateur connecté
|
|
7016
|
-
* @param {UpdateUserRequestBody} updateUserRequestBody
|
|
7017
|
-
* @param {*} [options] Override http request option.
|
|
7018
|
-
* @throws {RequiredError}
|
|
7019
|
-
*/
|
|
7020
|
-
updateUser: (updateUserRequestBody_1, ...args_1) => __awaiter(this, [updateUserRequestBody_1, ...args_1], void 0, function* (updateUserRequestBody, options = {}) {
|
|
7021
|
-
// verify required parameter 'updateUserRequestBody' is not null or undefined
|
|
7022
|
-
(0, common_1.assertParamExists)('updateUser', 'updateUserRequestBody', updateUserRequestBody);
|
|
7023
|
-
const localVarPath = `/api/users/me`;
|
|
7024
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7025
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7026
|
-
let baseOptions;
|
|
7027
|
-
if (configuration) {
|
|
7028
|
-
baseOptions = configuration.baseOptions;
|
|
7029
|
-
}
|
|
7030
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
7031
|
-
const localVarHeaderParameter = {};
|
|
7032
|
-
const localVarQueryParameter = {};
|
|
7033
|
-
// authentication bearerAuth required
|
|
7034
|
-
// http bearer authentication required
|
|
7035
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7036
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7037
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7038
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7039
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7040
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserRequestBody, localVarRequestOptions, configuration);
|
|
7041
|
-
return {
|
|
7042
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7043
|
-
options: localVarRequestOptions,
|
|
7044
|
-
};
|
|
7045
|
-
}),
|
|
7046
|
-
/**
|
|
7047
|
-
*
|
|
7048
|
-
* @summary Met à jour la ville de l\'utilisateur connecté
|
|
7049
|
-
* @param {UpdateUserCityRequestBody} updateUserCityRequestBody
|
|
7050
|
-
* @param {*} [options] Override http request option.
|
|
7051
|
-
* @throws {RequiredError}
|
|
7052
|
-
*/
|
|
7053
|
-
updateUserCity: (updateUserCityRequestBody_1, ...args_1) => __awaiter(this, [updateUserCityRequestBody_1, ...args_1], void 0, function* (updateUserCityRequestBody, options = {}) {
|
|
7054
|
-
// verify required parameter 'updateUserCityRequestBody' is not null or undefined
|
|
7055
|
-
(0, common_1.assertParamExists)('updateUserCity', 'updateUserCityRequestBody', updateUserCityRequestBody);
|
|
7056
|
-
const localVarPath = `/api/users/me/city`;
|
|
7057
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7058
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7059
|
-
let baseOptions;
|
|
7060
|
-
if (configuration) {
|
|
7061
|
-
baseOptions = configuration.baseOptions;
|
|
7062
|
-
}
|
|
7063
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
7064
|
-
const localVarHeaderParameter = {};
|
|
7065
|
-
const localVarQueryParameter = {};
|
|
7066
|
-
// authentication bearerAuth required
|
|
7067
|
-
// http bearer authentication required
|
|
7068
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7069
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7070
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7071
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7072
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7073
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserCityRequestBody, localVarRequestOptions, configuration);
|
|
7074
|
-
return {
|
|
7075
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7076
|
-
options: localVarRequestOptions,
|
|
7077
|
-
};
|
|
7078
|
-
}),
|
|
7079
|
-
/**
|
|
7080
|
-
*
|
|
7081
|
-
* @summary Met à jour la description de l\'utilisateur connecté
|
|
7082
|
-
* @param {UpdateUserDescriptionRequestBody} updateUserDescriptionRequestBody
|
|
7083
|
-
* @param {*} [options] Override http request option.
|
|
7084
|
-
* @throws {RequiredError}
|
|
7085
|
-
*/
|
|
7086
|
-
updateUserDescription: (updateUserDescriptionRequestBody_1, ...args_1) => __awaiter(this, [updateUserDescriptionRequestBody_1, ...args_1], void 0, function* (updateUserDescriptionRequestBody, options = {}) {
|
|
7087
|
-
// verify required parameter 'updateUserDescriptionRequestBody' is not null or undefined
|
|
7088
|
-
(0, common_1.assertParamExists)('updateUserDescription', 'updateUserDescriptionRequestBody', updateUserDescriptionRequestBody);
|
|
7089
|
-
const localVarPath = `/api/users/me/description`;
|
|
7090
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7091
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7092
|
-
let baseOptions;
|
|
7093
|
-
if (configuration) {
|
|
7094
|
-
baseOptions = configuration.baseOptions;
|
|
7095
|
-
}
|
|
7096
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
7097
|
-
const localVarHeaderParameter = {};
|
|
7098
|
-
const localVarQueryParameter = {};
|
|
7099
|
-
// authentication bearerAuth required
|
|
7100
|
-
// http bearer authentication required
|
|
7101
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7102
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7103
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7104
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7105
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7106
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserDescriptionRequestBody, localVarRequestOptions, configuration);
|
|
7107
|
-
return {
|
|
7108
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7109
|
-
options: localVarRequestOptions,
|
|
7110
|
-
};
|
|
7111
|
-
}),
|
|
7112
|
-
};
|
|
7113
|
-
};
|
|
7114
|
-
exports.UserProfileApiAxiosParamCreator = UserProfileApiAxiosParamCreator;
|
|
7115
|
-
/**
|
|
7116
|
-
* UserProfileApi - functional programming interface
|
|
7117
|
-
* @export
|
|
7118
|
-
*/
|
|
7119
|
-
const UserProfileApiFp = function (configuration) {
|
|
7120
|
-
const localVarAxiosParamCreator = (0, exports.UserProfileApiAxiosParamCreator)(configuration);
|
|
7121
|
-
return {
|
|
7122
|
-
/**
|
|
7123
|
-
*
|
|
7124
|
-
* @summary Add a club to the user\'s favorite list
|
|
7125
|
-
* @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
|
|
7126
|
-
* @param {*} [options] Override http request option.
|
|
7127
|
-
* @throws {RequiredError}
|
|
7128
|
-
*/
|
|
7129
|
-
addFavoriteClub(addFavoriteClubRequestBody, options) {
|
|
7130
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7131
|
-
var _a, _b, _c;
|
|
7132
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addFavoriteClub(addFavoriteClubRequestBody, options);
|
|
7133
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7134
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.addFavoriteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7135
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7136
|
-
});
|
|
7137
|
-
},
|
|
7138
|
-
/**
|
|
7139
|
-
*
|
|
7140
|
-
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
7141
|
-
* @param {AddFavoritePlayerRequestBody} addFavoritePlayerRequestBody
|
|
7142
|
-
* @param {*} [options] Override http request option.
|
|
7143
|
-
* @throws {RequiredError}
|
|
7144
|
-
*/
|
|
7145
|
-
addFavoritePlayer(addFavoritePlayerRequestBody, options) {
|
|
7146
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7147
|
-
var _a, _b, _c;
|
|
7148
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addFavoritePlayer(addFavoritePlayerRequestBody, options);
|
|
7149
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7150
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.addFavoritePlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7151
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7152
|
-
});
|
|
7153
|
-
},
|
|
7154
|
-
/**
|
|
7155
|
-
*
|
|
7156
|
-
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
7157
|
-
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
7158
|
-
* @param {*} [options] Override http request option.
|
|
7159
|
-
* @throws {RequiredError}
|
|
7160
|
-
*/
|
|
7161
|
-
changePassword(changePasswordRequestBody, options) {
|
|
7162
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7163
|
-
var _a, _b, _c;
|
|
7164
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.changePassword(changePasswordRequestBody, options);
|
|
7165
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7166
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.changePassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7167
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7168
|
-
});
|
|
7169
|
-
},
|
|
7170
|
-
/**
|
|
7171
|
-
*
|
|
7172
|
-
* @summary Récupère la liste des utilisateurs avec filtres et pagination
|
|
7173
|
-
* @param {number} [limit] Nombre maximum d\'utilisateurs à retourner
|
|
7174
|
-
* @param {number} [skip] Nombre d\'utilisateurs à ignorer (pagination)
|
|
7175
|
-
* @param {string} [search] Recherche dans firstName, lastName, email
|
|
7176
|
-
* @param {*} [options] Override http request option.
|
|
7177
|
-
* @throws {RequiredError}
|
|
7178
|
-
*/
|
|
7179
|
-
getAllUsers(limit, skip, search, options) {
|
|
7180
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7181
|
-
var _a, _b, _c;
|
|
7182
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllUsers(limit, skip, search, options);
|
|
7183
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7184
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getAllUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7185
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7186
|
-
});
|
|
7187
|
-
},
|
|
7188
|
-
/**
|
|
7189
|
-
*
|
|
7190
|
-
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
7191
|
-
* @param {*} [options] Override http request option.
|
|
7192
|
-
* @throws {RequiredError}
|
|
7193
|
-
*/
|
|
7194
|
-
getFavoriteClubs(options) {
|
|
7195
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7196
|
-
var _a, _b, _c;
|
|
7197
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoriteClubs(options);
|
|
7198
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7199
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getFavoriteClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7200
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7201
|
-
});
|
|
7202
|
-
},
|
|
7203
|
-
/**
|
|
7204
|
-
*
|
|
7205
|
-
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
7206
|
-
* @param {*} [options] Override http request option.
|
|
7207
|
-
* @throws {RequiredError}
|
|
7208
|
-
*/
|
|
7209
|
-
getFavoritesPlayers(options) {
|
|
7210
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7211
|
-
var _a, _b, _c;
|
|
7212
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoritesPlayers(options);
|
|
7213
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7214
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getFavoritesPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7215
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7216
|
-
});
|
|
7217
|
-
},
|
|
7218
|
-
/**
|
|
7219
|
-
*
|
|
7220
|
-
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
7221
|
-
* @param {*} [options] Override http request option.
|
|
7222
|
-
* @throws {RequiredError}
|
|
7223
|
-
*/
|
|
7224
|
-
getFrequentlyPlayedWith(options) {
|
|
7225
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7226
|
-
var _a, _b, _c;
|
|
7227
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFrequentlyPlayedWith(options);
|
|
7228
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7229
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getFrequentlyPlayedWith']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7230
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7231
|
-
});
|
|
7232
|
-
},
|
|
7233
|
-
/**
|
|
7234
|
-
*
|
|
7235
|
-
* @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
|
|
7236
|
-
* @param {*} [options] Override http request option.
|
|
7237
|
-
* @throws {RequiredError}
|
|
7238
|
-
*/
|
|
7239
|
-
getFrequentlyVisitedClub(options) {
|
|
7240
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7241
|
-
var _a, _b, _c;
|
|
7242
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFrequentlyVisitedClub(options);
|
|
7243
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7244
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getFrequentlyVisitedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7245
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7246
|
-
});
|
|
7247
|
-
},
|
|
7248
|
-
/**
|
|
7249
|
-
*
|
|
7250
|
-
* @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
|
|
7251
|
-
* @param {*} [options] Override http request option.
|
|
7252
|
-
* @throws {RequiredError}
|
|
7253
|
-
*/
|
|
7254
|
-
getProfilePicture(options) {
|
|
7255
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7256
|
-
var _a, _b, _c;
|
|
7257
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProfilePicture(options);
|
|
7258
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7259
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getProfilePicture']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7260
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7261
|
-
});
|
|
7262
|
-
},
|
|
7263
|
-
/**
|
|
7264
|
-
*
|
|
7265
|
-
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
7266
|
-
* @param {string} id ID de l\'utilisateur
|
|
7267
|
-
* @param {*} [options] Override http request option.
|
|
7268
|
-
* @throws {RequiredError}
|
|
7269
|
-
*/
|
|
7270
|
-
getPublicUserProfile(id, options) {
|
|
7271
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7272
|
-
var _a, _b, _c;
|
|
7273
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicUserProfile(id, options);
|
|
7274
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7275
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getPublicUserProfile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7276
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7277
|
-
});
|
|
7278
|
-
},
|
|
7279
|
-
/**
|
|
7280
|
-
*
|
|
7281
|
-
* @summary Récupère le detéail d\'une réservation
|
|
7282
|
-
* @param {string} bookingId ID de la réservation
|
|
7283
|
-
* @param {*} [options] Override http request option.
|
|
7284
|
-
* @throws {RequiredError}
|
|
7285
|
-
*/
|
|
7286
|
-
getUserBookingDetail(bookingId, options) {
|
|
7287
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7288
|
-
var _a, _b, _c;
|
|
7289
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBookingDetail(bookingId, options);
|
|
7290
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7291
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getUserBookingDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7292
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7293
|
-
});
|
|
7294
|
-
},
|
|
7295
|
-
/**
|
|
7296
|
-
*
|
|
7297
|
-
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
7298
|
-
* @param {number} [limit] Nombre maximum de réservations à retourner
|
|
7299
|
-
* @param {number} [skip] Nombre de réservations à ignorer (pagination)
|
|
7300
|
-
* @param {*} [options] Override http request option.
|
|
7301
|
-
* @throws {RequiredError}
|
|
7302
|
-
*/
|
|
7303
|
-
getUserBookings(limit, skip, options) {
|
|
7304
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7305
|
-
var _a, _b, _c;
|
|
7306
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBookings(limit, skip, options);
|
|
7307
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7308
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getUserBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7309
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7310
|
-
});
|
|
7311
|
-
},
|
|
7312
|
-
/**
|
|
7313
|
-
*
|
|
7314
|
-
* @summary Récupère la ville de l\'utilisateur connecté
|
|
7315
|
-
* @param {*} [options] Override http request option.
|
|
7316
|
-
* @throws {RequiredError}
|
|
7317
|
-
*/
|
|
7318
|
-
getUserCity(options) {
|
|
7319
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7320
|
-
var _a, _b, _c;
|
|
7321
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserCity(options);
|
|
7322
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7323
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getUserCity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7324
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7325
|
-
});
|
|
7326
|
-
},
|
|
7327
|
-
/**
|
|
7328
|
-
*
|
|
7329
|
-
* @summary Récupère la description de l\'utilisateur connecté
|
|
7330
|
-
* @param {*} [options] Override http request option.
|
|
7331
|
-
* @throws {RequiredError}
|
|
7332
|
-
*/
|
|
7333
|
-
getUserDescription(options) {
|
|
7334
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7335
|
-
var _a, _b, _c;
|
|
7336
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserDescription(options);
|
|
7337
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7338
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getUserDescription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7339
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7340
|
-
});
|
|
7341
|
-
},
|
|
7342
|
-
/**
|
|
7343
|
-
*
|
|
7344
|
-
* @summary Récupère les informations de l\'utilisateur connecté
|
|
7345
|
-
* @param {*} [options] Override http request option.
|
|
7346
|
-
* @throws {RequiredError}
|
|
7347
|
-
*/
|
|
7348
|
-
getUserInfo(options) {
|
|
7349
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7350
|
-
var _a, _b, _c;
|
|
7351
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserInfo(options);
|
|
7352
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7353
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getUserInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7354
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7355
|
-
});
|
|
7356
|
-
},
|
|
7357
|
-
/**
|
|
7358
|
-
*
|
|
7359
|
-
* @summary Récupère la visibilité du profil de l\'utilisateur connecté
|
|
7360
|
-
* @param {*} [options] Override http request option.
|
|
7361
|
-
* @throws {RequiredError}
|
|
7362
|
-
*/
|
|
7363
|
-
getUserProfileVisibility(options) {
|
|
7364
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7365
|
-
var _a, _b, _c;
|
|
7366
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserProfileVisibility(options);
|
|
7367
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7368
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getUserProfileVisibility']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7369
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7370
|
-
});
|
|
7371
|
-
},
|
|
7372
|
-
/**
|
|
7373
|
-
*
|
|
7374
|
-
* @summary Remove a club from the user\'s favorite list
|
|
7375
|
-
* @param {string} clubId ID of the club to remove from favorites
|
|
7376
|
-
* @param {*} [options] Override http request option.
|
|
7377
|
-
* @throws {RequiredError}
|
|
7378
|
-
*/
|
|
7379
|
-
removeFavoriteClub(clubId, options) {
|
|
7380
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7381
|
-
var _a, _b, _c;
|
|
7382
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFavoriteClub(clubId, options);
|
|
7383
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7384
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.removeFavoriteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7385
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7386
|
-
});
|
|
7387
|
-
},
|
|
7388
|
-
/**
|
|
7389
|
-
*
|
|
7390
|
-
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
7391
|
-
* @param {string} favoritePlayerId ID du joueur à retirer des favoris
|
|
7392
|
-
* @param {*} [options] Override http request option.
|
|
7393
|
-
* @throws {RequiredError}
|
|
7394
|
-
*/
|
|
7395
|
-
removeFavoritePlayer(favoritePlayerId, options) {
|
|
7396
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7397
|
-
var _a, _b, _c;
|
|
7398
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFavoritePlayer(favoritePlayerId, options);
|
|
7399
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7400
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.removeFavoritePlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7401
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7402
|
-
});
|
|
7403
|
-
},
|
|
7404
|
-
/**
|
|
7405
|
-
*
|
|
7406
|
-
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
7407
|
-
* @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
|
|
7408
|
-
* @param {*} [options] Override http request option.
|
|
7409
|
-
* @throws {RequiredError}
|
|
7410
|
-
*/
|
|
7411
|
-
updateLevelBySports(updateLevelBySportsRequestBody, options) {
|
|
7412
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7413
|
-
var _a, _b, _c;
|
|
7414
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateLevelBySports(updateLevelBySportsRequestBody, options);
|
|
7415
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7416
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.updateLevelBySports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7417
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7418
|
-
});
|
|
7419
|
-
},
|
|
7420
|
-
/**
|
|
7421
|
-
*
|
|
7422
|
-
* @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
|
|
7423
|
-
* @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
|
|
7424
|
-
* @param {*} [options] Override http request option.
|
|
7425
|
-
* @throws {RequiredError}
|
|
7426
|
-
*/
|
|
7427
|
-
updateProfilePicture(updateProfilePictureRequestBody, options) {
|
|
7428
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7429
|
-
var _a, _b, _c;
|
|
7430
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProfilePicture(updateProfilePictureRequestBody, options);
|
|
7431
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7432
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.updateProfilePicture']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7433
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7434
|
-
});
|
|
7435
|
-
},
|
|
7436
|
-
/**
|
|
7437
|
-
*
|
|
7438
|
-
* @summary Met à jour la visibilité du profil de l\'utilisateur connecté
|
|
7439
|
-
* @param {UpdateProfileVisibilityRequestBody} updateProfileVisibilityRequestBody
|
|
7440
|
-
* @param {*} [options] Override http request option.
|
|
7441
|
-
* @throws {RequiredError}
|
|
7442
|
-
*/
|
|
7443
|
-
updateProfileVisibility(updateProfileVisibilityRequestBody, options) {
|
|
7444
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7445
|
-
var _a, _b, _c;
|
|
7446
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProfileVisibility(updateProfileVisibilityRequestBody, options);
|
|
7447
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7448
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.updateProfileVisibility']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7449
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7450
|
-
});
|
|
7451
|
-
},
|
|
7452
|
-
/**
|
|
7453
|
-
*
|
|
7454
|
-
* @summary Met à jour les données de l\'utilisateur connecté
|
|
7455
|
-
* @param {UpdateUserRequestBody} updateUserRequestBody
|
|
7456
|
-
* @param {*} [options] Override http request option.
|
|
7457
|
-
* @throws {RequiredError}
|
|
7458
|
-
*/
|
|
7459
|
-
updateUser(updateUserRequestBody, options) {
|
|
7460
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7461
|
-
var _a, _b, _c;
|
|
7462
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUser(updateUserRequestBody, options);
|
|
7463
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7464
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.updateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7465
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7466
|
-
});
|
|
7467
|
-
},
|
|
7468
|
-
/**
|
|
7469
|
-
*
|
|
7470
|
-
* @summary Met à jour la ville de l\'utilisateur connecté
|
|
7471
|
-
* @param {UpdateUserCityRequestBody} updateUserCityRequestBody
|
|
7472
|
-
* @param {*} [options] Override http request option.
|
|
7473
|
-
* @throws {RequiredError}
|
|
7474
|
-
*/
|
|
7475
|
-
updateUserCity(updateUserCityRequestBody, options) {
|
|
7476
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7477
|
-
var _a, _b, _c;
|
|
7478
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCity(updateUserCityRequestBody, options);
|
|
7479
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7480
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.updateUserCity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7481
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7482
|
-
});
|
|
7483
|
-
},
|
|
7484
|
-
/**
|
|
7485
|
-
*
|
|
7486
|
-
* @summary Met à jour la description de l\'utilisateur connecté
|
|
7487
|
-
* @param {UpdateUserDescriptionRequestBody} updateUserDescriptionRequestBody
|
|
7488
|
-
* @param {*} [options] Override http request option.
|
|
7489
|
-
* @throws {RequiredError}
|
|
7490
|
-
*/
|
|
7491
|
-
updateUserDescription(updateUserDescriptionRequestBody, options) {
|
|
7492
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7493
|
-
var _a, _b, _c;
|
|
7494
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserDescription(updateUserDescriptionRequestBody, options);
|
|
7495
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7496
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.updateUserDescription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7497
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7498
|
-
});
|
|
7499
|
-
},
|
|
7500
|
-
};
|
|
7501
|
-
};
|
|
7502
|
-
exports.UserProfileApiFp = UserProfileApiFp;
|
|
7503
|
-
/**
|
|
7504
|
-
* UserProfileApi - factory interface
|
|
7505
|
-
* @export
|
|
7506
|
-
*/
|
|
7507
|
-
const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
7508
|
-
const localVarFp = (0, exports.UserProfileApiFp)(configuration);
|
|
7509
|
-
return {
|
|
7510
|
-
/**
|
|
7511
|
-
*
|
|
7512
|
-
* @summary Add a club to the user\'s favorite list
|
|
7513
|
-
* @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
|
|
7514
|
-
* @param {*} [options] Override http request option.
|
|
7515
|
-
* @throws {RequiredError}
|
|
7516
|
-
*/
|
|
7517
|
-
addFavoriteClub(requestParameters, options) {
|
|
7518
|
-
return localVarFp.addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(axios, basePath));
|
|
7519
|
-
},
|
|
7520
|
-
/**
|
|
7521
|
-
*
|
|
7522
|
-
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
7523
|
-
* @param {UserProfileApiAddFavoritePlayerRequest} requestParameters Request parameters.
|
|
7524
|
-
* @param {*} [options] Override http request option.
|
|
7525
|
-
* @throws {RequiredError}
|
|
7526
|
-
*/
|
|
7527
|
-
addFavoritePlayer(requestParameters, options) {
|
|
7528
|
-
return localVarFp.addFavoritePlayer(requestParameters.addFavoritePlayerRequestBody, options).then((request) => request(axios, basePath));
|
|
7529
|
-
},
|
|
7530
|
-
/**
|
|
7531
|
-
*
|
|
7532
|
-
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
7533
|
-
* @param {UserProfileApiChangePasswordRequest} requestParameters Request parameters.
|
|
7534
|
-
* @param {*} [options] Override http request option.
|
|
7535
|
-
* @throws {RequiredError}
|
|
7536
|
-
*/
|
|
7537
|
-
changePassword(requestParameters, options) {
|
|
7538
|
-
return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
|
|
7539
|
-
},
|
|
7540
|
-
/**
|
|
7541
|
-
*
|
|
7542
|
-
* @summary Récupère la liste des utilisateurs avec filtres et pagination
|
|
7543
|
-
* @param {UserProfileApiGetAllUsersRequest} requestParameters Request parameters.
|
|
7544
|
-
* @param {*} [options] Override http request option.
|
|
7545
|
-
* @throws {RequiredError}
|
|
7546
|
-
*/
|
|
7547
|
-
getAllUsers(requestParameters = {}, options) {
|
|
7548
|
-
return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
7549
|
-
},
|
|
7550
|
-
/**
|
|
7551
|
-
*
|
|
7552
|
-
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
7553
|
-
* @param {*} [options] Override http request option.
|
|
7554
|
-
* @throws {RequiredError}
|
|
7555
|
-
*/
|
|
7556
|
-
getFavoriteClubs(options) {
|
|
7557
|
-
return localVarFp.getFavoriteClubs(options).then((request) => request(axios, basePath));
|
|
7558
|
-
},
|
|
7559
|
-
/**
|
|
7560
|
-
*
|
|
7561
|
-
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
7562
|
-
* @param {*} [options] Override http request option.
|
|
7563
|
-
* @throws {RequiredError}
|
|
7564
|
-
*/
|
|
7565
|
-
getFavoritesPlayers(options) {
|
|
7566
|
-
return localVarFp.getFavoritesPlayers(options).then((request) => request(axios, basePath));
|
|
7567
|
-
},
|
|
7568
|
-
/**
|
|
7569
|
-
*
|
|
7570
|
-
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
7571
|
-
* @param {*} [options] Override http request option.
|
|
7572
|
-
* @throws {RequiredError}
|
|
7573
|
-
*/
|
|
7574
|
-
getFrequentlyPlayedWith(options) {
|
|
7575
|
-
return localVarFp.getFrequentlyPlayedWith(options).then((request) => request(axios, basePath));
|
|
7576
|
-
},
|
|
7577
|
-
/**
|
|
7578
|
-
*
|
|
7579
|
-
* @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
|
|
7580
|
-
* @param {*} [options] Override http request option.
|
|
7581
|
-
* @throws {RequiredError}
|
|
7582
|
-
*/
|
|
7583
|
-
getFrequentlyVisitedClub(options) {
|
|
7584
|
-
return localVarFp.getFrequentlyVisitedClub(options).then((request) => request(axios, basePath));
|
|
7585
|
-
},
|
|
7586
|
-
/**
|
|
7587
|
-
*
|
|
7588
|
-
* @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
|
|
7589
|
-
* @param {*} [options] Override http request option.
|
|
7590
|
-
* @throws {RequiredError}
|
|
7591
|
-
*/
|
|
7592
|
-
getProfilePicture(options) {
|
|
7593
|
-
return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
|
|
7594
|
-
},
|
|
7595
|
-
/**
|
|
7596
|
-
*
|
|
7597
|
-
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
7598
|
-
* @param {UserProfileApiGetPublicUserProfileRequest} requestParameters Request parameters.
|
|
7599
|
-
* @param {*} [options] Override http request option.
|
|
7600
|
-
* @throws {RequiredError}
|
|
7601
|
-
*/
|
|
7602
|
-
getPublicUserProfile(requestParameters, options) {
|
|
7603
|
-
return localVarFp.getPublicUserProfile(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7604
|
-
},
|
|
7605
|
-
/**
|
|
7606
|
-
*
|
|
7607
|
-
* @summary Récupère le detéail d\'une réservation
|
|
7608
|
-
* @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
|
|
7609
|
-
* @param {*} [options] Override http request option.
|
|
7610
|
-
* @throws {RequiredError}
|
|
7611
|
-
*/
|
|
7612
|
-
getUserBookingDetail(requestParameters, options) {
|
|
7613
|
-
return localVarFp.getUserBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
7614
|
-
},
|
|
7615
|
-
/**
|
|
7616
|
-
*
|
|
7617
|
-
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
7618
|
-
* @param {UserProfileApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
7619
|
-
* @param {*} [options] Override http request option.
|
|
7620
|
-
* @throws {RequiredError}
|
|
7621
|
-
*/
|
|
7622
|
-
getUserBookings(requestParameters = {}, options) {
|
|
7623
|
-
return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
7624
|
-
},
|
|
7625
|
-
/**
|
|
7626
|
-
*
|
|
7627
|
-
* @summary Récupère la ville de l\'utilisateur connecté
|
|
7628
|
-
* @param {*} [options] Override http request option.
|
|
7629
|
-
* @throws {RequiredError}
|
|
7630
|
-
*/
|
|
7631
|
-
getUserCity(options) {
|
|
7632
|
-
return localVarFp.getUserCity(options).then((request) => request(axios, basePath));
|
|
7633
|
-
},
|
|
7634
|
-
/**
|
|
7635
|
-
*
|
|
7636
|
-
* @summary Récupère la description de l\'utilisateur connecté
|
|
7637
|
-
* @param {*} [options] Override http request option.
|
|
7638
|
-
* @throws {RequiredError}
|
|
7639
|
-
*/
|
|
7640
|
-
getUserDescription(options) {
|
|
7641
|
-
return localVarFp.getUserDescription(options).then((request) => request(axios, basePath));
|
|
7642
|
-
},
|
|
7643
|
-
/**
|
|
7644
|
-
*
|
|
7645
|
-
* @summary Récupère les informations de l\'utilisateur connecté
|
|
7646
|
-
* @param {*} [options] Override http request option.
|
|
7647
|
-
* @throws {RequiredError}
|
|
7648
|
-
*/
|
|
7649
|
-
getUserInfo(options) {
|
|
7650
|
-
return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
|
|
7651
|
-
},
|
|
7652
|
-
/**
|
|
7653
|
-
*
|
|
7654
|
-
* @summary Récupère la visibilité du profil de l\'utilisateur connecté
|
|
7655
|
-
* @param {*} [options] Override http request option.
|
|
7656
|
-
* @throws {RequiredError}
|
|
7657
|
-
*/
|
|
7658
|
-
getUserProfileVisibility(options) {
|
|
7659
|
-
return localVarFp.getUserProfileVisibility(options).then((request) => request(axios, basePath));
|
|
7660
|
-
},
|
|
7661
|
-
/**
|
|
7662
|
-
*
|
|
7663
|
-
* @summary Remove a club from the user\'s favorite list
|
|
7664
|
-
* @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
|
7665
|
-
* @param {*} [options] Override http request option.
|
|
7666
|
-
* @throws {RequiredError}
|
|
7667
|
-
*/
|
|
7668
|
-
removeFavoriteClub(requestParameters, options) {
|
|
7669
|
-
return localVarFp.removeFavoriteClub(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
7670
|
-
},
|
|
7671
|
-
/**
|
|
7672
|
-
*
|
|
7673
|
-
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
7674
|
-
* @param {UserProfileApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
|
|
7675
|
-
* @param {*} [options] Override http request option.
|
|
7676
|
-
* @throws {RequiredError}
|
|
7677
|
-
*/
|
|
7678
|
-
removeFavoritePlayer(requestParameters, options) {
|
|
7679
|
-
return localVarFp.removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(axios, basePath));
|
|
7680
|
-
},
|
|
7681
|
-
/**
|
|
7682
|
-
*
|
|
7683
|
-
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
7684
|
-
* @param {UserProfileApiUpdateLevelBySportsRequest} requestParameters Request parameters.
|
|
7685
|
-
* @param {*} [options] Override http request option.
|
|
7686
|
-
* @throws {RequiredError}
|
|
7687
|
-
*/
|
|
7688
|
-
updateLevelBySports(requestParameters, options) {
|
|
7689
|
-
return localVarFp.updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(axios, basePath));
|
|
7690
|
-
},
|
|
7691
|
-
/**
|
|
7692
|
-
*
|
|
7693
|
-
* @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
|
|
7694
|
-
* @param {UserProfileApiUpdateProfilePictureRequest} requestParameters Request parameters.
|
|
7695
|
-
* @param {*} [options] Override http request option.
|
|
7696
|
-
* @throws {RequiredError}
|
|
7697
|
-
*/
|
|
7698
|
-
updateProfilePicture(requestParameters, options) {
|
|
7699
|
-
return localVarFp.updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(axios, basePath));
|
|
7700
|
-
},
|
|
7701
|
-
/**
|
|
7702
|
-
*
|
|
7703
|
-
* @summary Met à jour la visibilité du profil de l\'utilisateur connecté
|
|
7704
|
-
* @param {UserProfileApiUpdateProfileVisibilityRequest} requestParameters Request parameters.
|
|
7705
|
-
* @param {*} [options] Override http request option.
|
|
7706
|
-
* @throws {RequiredError}
|
|
7707
|
-
*/
|
|
7708
|
-
updateProfileVisibility(requestParameters, options) {
|
|
7709
|
-
return localVarFp.updateProfileVisibility(requestParameters.updateProfileVisibilityRequestBody, options).then((request) => request(axios, basePath));
|
|
7710
|
-
},
|
|
7711
|
-
/**
|
|
7712
|
-
*
|
|
7713
|
-
* @summary Met à jour les données de l\'utilisateur connecté
|
|
7714
|
-
* @param {UserProfileApiUpdateUserRequest} requestParameters Request parameters.
|
|
7715
|
-
* @param {*} [options] Override http request option.
|
|
7716
|
-
* @throws {RequiredError}
|
|
7717
|
-
*/
|
|
7718
|
-
updateUser(requestParameters, options) {
|
|
7719
|
-
return localVarFp.updateUser(requestParameters.updateUserRequestBody, options).then((request) => request(axios, basePath));
|
|
7720
|
-
},
|
|
7721
|
-
/**
|
|
7722
|
-
*
|
|
7723
|
-
* @summary Met à jour la ville de l\'utilisateur connecté
|
|
7724
|
-
* @param {UserProfileApiUpdateUserCityRequest} requestParameters Request parameters.
|
|
7725
|
-
* @param {*} [options] Override http request option.
|
|
7726
|
-
* @throws {RequiredError}
|
|
7727
|
-
*/
|
|
7728
|
-
updateUserCity(requestParameters, options) {
|
|
7729
|
-
return localVarFp.updateUserCity(requestParameters.updateUserCityRequestBody, options).then((request) => request(axios, basePath));
|
|
7730
|
-
},
|
|
7731
|
-
/**
|
|
7732
|
-
*
|
|
7733
|
-
* @summary Met à jour la description de l\'utilisateur connecté
|
|
7734
|
-
* @param {UserProfileApiUpdateUserDescriptionRequest} requestParameters Request parameters.
|
|
7735
|
-
* @param {*} [options] Override http request option.
|
|
7736
|
-
* @throws {RequiredError}
|
|
7737
|
-
*/
|
|
7738
|
-
updateUserDescription(requestParameters, options) {
|
|
7739
|
-
return localVarFp.updateUserDescription(requestParameters.updateUserDescriptionRequestBody, options).then((request) => request(axios, basePath));
|
|
7740
|
-
},
|
|
7741
|
-
};
|
|
7742
|
-
};
|
|
7743
|
-
exports.UserProfileApiFactory = UserProfileApiFactory;
|
|
7744
|
-
/**
|
|
7745
|
-
* UserProfileApi - object-oriented interface
|
|
7746
|
-
* @export
|
|
7747
|
-
* @class UserProfileApi
|
|
7748
|
-
* @extends {BaseAPI}
|
|
7749
|
-
*/
|
|
7750
|
-
class UserProfileApi extends base_1.BaseAPI {
|
|
7751
|
-
/**
|
|
7752
|
-
*
|
|
7753
|
-
* @summary Add a club to the user\'s favorite list
|
|
7754
|
-
* @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
|
|
7755
|
-
* @param {*} [options] Override http request option.
|
|
7756
|
-
* @throws {RequiredError}
|
|
7757
|
-
* @memberof UserProfileApi
|
|
7758
|
-
*/
|
|
7759
|
-
addFavoriteClub(requestParameters, options) {
|
|
7760
|
-
return (0, exports.UserProfileApiFp)(this.configuration).addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7761
|
-
}
|
|
7762
|
-
/**
|
|
7763
|
-
*
|
|
7764
|
-
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
7765
|
-
* @param {UserProfileApiAddFavoritePlayerRequest} requestParameters Request parameters.
|
|
7766
|
-
* @param {*} [options] Override http request option.
|
|
7767
|
-
* @throws {RequiredError}
|
|
7768
|
-
* @memberof UserProfileApi
|
|
7769
|
-
*/
|
|
7770
|
-
addFavoritePlayer(requestParameters, options) {
|
|
7771
|
-
return (0, exports.UserProfileApiFp)(this.configuration).addFavoritePlayer(requestParameters.addFavoritePlayerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7772
|
-
}
|
|
7773
|
-
/**
|
|
7774
|
-
*
|
|
7775
|
-
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
7776
|
-
* @param {UserProfileApiChangePasswordRequest} requestParameters Request parameters.
|
|
7777
|
-
* @param {*} [options] Override http request option.
|
|
7778
|
-
* @throws {RequiredError}
|
|
7779
|
-
* @memberof UserProfileApi
|
|
7780
|
-
*/
|
|
7781
|
-
changePassword(requestParameters, options) {
|
|
7782
|
-
return (0, exports.UserProfileApiFp)(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7783
|
-
}
|
|
7784
|
-
/**
|
|
7785
|
-
*
|
|
7786
|
-
* @summary Récupère la liste des utilisateurs avec filtres et pagination
|
|
7787
|
-
* @param {UserProfileApiGetAllUsersRequest} requestParameters Request parameters.
|
|
7788
|
-
* @param {*} [options] Override http request option.
|
|
7789
|
-
* @throws {RequiredError}
|
|
7790
|
-
* @memberof UserProfileApi
|
|
7791
|
-
*/
|
|
7792
|
-
getAllUsers(requestParameters = {}, options) {
|
|
7793
|
-
return (0, exports.UserProfileApiFp)(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
7794
|
-
}
|
|
7795
|
-
/**
|
|
7796
|
-
*
|
|
7797
|
-
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
7798
|
-
* @param {*} [options] Override http request option.
|
|
7799
|
-
* @throws {RequiredError}
|
|
7800
|
-
* @memberof UserProfileApi
|
|
7801
|
-
*/
|
|
7802
|
-
getFavoriteClubs(options) {
|
|
7803
|
-
return (0, exports.UserProfileApiFp)(this.configuration).getFavoriteClubs(options).then((request) => request(this.axios, this.basePath));
|
|
7804
|
-
}
|
|
7805
|
-
/**
|
|
7806
|
-
*
|
|
7807
|
-
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
7808
|
-
* @param {*} [options] Override http request option.
|
|
7809
|
-
* @throws {RequiredError}
|
|
7810
|
-
* @memberof UserProfileApi
|
|
7811
|
-
*/
|
|
7812
|
-
getFavoritesPlayers(options) {
|
|
7813
|
-
return (0, exports.UserProfileApiFp)(this.configuration).getFavoritesPlayers(options).then((request) => request(this.axios, this.basePath));
|
|
7814
|
-
}
|
|
7815
|
-
/**
|
|
7816
|
-
*
|
|
7817
|
-
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
7818
|
-
* @param {*} [options] Override http request option.
|
|
7819
|
-
* @throws {RequiredError}
|
|
7820
|
-
* @memberof UserProfileApi
|
|
7821
|
-
*/
|
|
7822
|
-
getFrequentlyPlayedWith(options) {
|
|
7823
|
-
return (0, exports.UserProfileApiFp)(this.configuration).getFrequentlyPlayedWith(options).then((request) => request(this.axios, this.basePath));
|
|
7824
|
-
}
|
|
7825
|
-
/**
|
|
7826
|
-
*
|
|
7827
|
-
* @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
|
|
7828
|
-
* @param {*} [options] Override http request option.
|
|
7829
|
-
* @throws {RequiredError}
|
|
7830
|
-
* @memberof UserProfileApi
|
|
7831
|
-
*/
|
|
7832
|
-
getFrequentlyVisitedClub(options) {
|
|
7833
|
-
return (0, exports.UserProfileApiFp)(this.configuration).getFrequentlyVisitedClub(options).then((request) => request(this.axios, this.basePath));
|
|
7834
|
-
}
|
|
7835
|
-
/**
|
|
7836
|
-
*
|
|
7837
|
-
* @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
|
|
7838
|
-
* @param {*} [options] Override http request option.
|
|
7839
|
-
* @throws {RequiredError}
|
|
7840
|
-
* @memberof UserProfileApi
|
|
7841
|
-
*/
|
|
7842
|
-
getProfilePicture(options) {
|
|
7843
|
-
return (0, exports.UserProfileApiFp)(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
|
|
7844
|
-
}
|
|
7845
|
-
/**
|
|
7846
|
-
*
|
|
7847
|
-
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
7848
|
-
* @param {UserProfileApiGetPublicUserProfileRequest} requestParameters Request parameters.
|
|
7849
|
-
* @param {*} [options] Override http request option.
|
|
7850
|
-
* @throws {RequiredError}
|
|
7851
|
-
* @memberof UserProfileApi
|
|
7852
|
-
*/
|
|
7853
|
-
getPublicUserProfile(requestParameters, options) {
|
|
7854
|
-
return (0, exports.UserProfileApiFp)(this.configuration).getPublicUserProfile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7855
|
-
}
|
|
7856
|
-
/**
|
|
7857
|
-
*
|
|
7858
|
-
* @summary Récupère le detéail d\'une réservation
|
|
7859
|
-
* @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
|
|
7860
|
-
* @param {*} [options] Override http request option.
|
|
7861
|
-
* @throws {RequiredError}
|
|
7862
|
-
* @memberof UserProfileApi
|
|
7863
|
-
*/
|
|
7864
|
-
getUserBookingDetail(requestParameters, options) {
|
|
7865
|
-
return (0, exports.UserProfileApiFp)(this.configuration).getUserBookingDetail(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
7866
|
-
}
|
|
7867
|
-
/**
|
|
7868
|
-
*
|
|
7869
|
-
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
7870
|
-
* @param {UserProfileApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
7871
|
-
* @param {*} [options] Override http request option.
|
|
7872
|
-
* @throws {RequiredError}
|
|
7873
|
-
* @memberof UserProfileApi
|
|
7874
|
-
*/
|
|
7875
|
-
getUserBookings(requestParameters = {}, options) {
|
|
7876
|
-
return (0, exports.UserProfileApiFp)(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
7877
|
-
}
|
|
7878
|
-
/**
|
|
7879
|
-
*
|
|
7880
|
-
* @summary Récupère la ville de l\'utilisateur connecté
|
|
7881
|
-
* @param {*} [options] Override http request option.
|
|
7882
|
-
* @throws {RequiredError}
|
|
7883
|
-
* @memberof UserProfileApi
|
|
7884
|
-
*/
|
|
7885
|
-
getUserCity(options) {
|
|
7886
|
-
return (0, exports.UserProfileApiFp)(this.configuration).getUserCity(options).then((request) => request(this.axios, this.basePath));
|
|
7887
|
-
}
|
|
7888
|
-
/**
|
|
7889
|
-
*
|
|
7890
|
-
* @summary Récupère la description de l\'utilisateur connecté
|
|
7891
|
-
* @param {*} [options] Override http request option.
|
|
7892
|
-
* @throws {RequiredError}
|
|
7893
|
-
* @memberof UserProfileApi
|
|
7894
|
-
*/
|
|
7895
|
-
getUserDescription(options) {
|
|
7896
|
-
return (0, exports.UserProfileApiFp)(this.configuration).getUserDescription(options).then((request) => request(this.axios, this.basePath));
|
|
7897
|
-
}
|
|
7898
|
-
/**
|
|
7899
|
-
*
|
|
7900
|
-
* @summary Récupère les informations de l\'utilisateur connecté
|
|
7901
|
-
* @param {*} [options] Override http request option.
|
|
7902
|
-
* @throws {RequiredError}
|
|
7903
|
-
* @memberof UserProfileApi
|
|
7904
|
-
*/
|
|
7905
|
-
getUserInfo(options) {
|
|
7906
|
-
return (0, exports.UserProfileApiFp)(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
|
|
7907
|
-
}
|
|
7908
|
-
/**
|
|
7909
|
-
*
|
|
7910
|
-
* @summary Récupère la visibilité du profil de l\'utilisateur connecté
|
|
7911
|
-
* @param {*} [options] Override http request option.
|
|
7912
|
-
* @throws {RequiredError}
|
|
7913
|
-
* @memberof UserProfileApi
|
|
7914
|
-
*/
|
|
7915
|
-
getUserProfileVisibility(options) {
|
|
7916
|
-
return (0, exports.UserProfileApiFp)(this.configuration).getUserProfileVisibility(options).then((request) => request(this.axios, this.basePath));
|
|
7917
|
-
}
|
|
7918
|
-
/**
|
|
7919
|
-
*
|
|
7920
|
-
* @summary Remove a club from the user\'s favorite list
|
|
7921
|
-
* @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
|
7922
|
-
* @param {*} [options] Override http request option.
|
|
7923
|
-
* @throws {RequiredError}
|
|
7924
|
-
* @memberof UserProfileApi
|
|
7925
|
-
*/
|
|
7926
|
-
removeFavoriteClub(requestParameters, options) {
|
|
7927
|
-
return (0, exports.UserProfileApiFp)(this.configuration).removeFavoriteClub(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
7928
|
-
}
|
|
7929
|
-
/**
|
|
7930
|
-
*
|
|
7931
|
-
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
7932
|
-
* @param {UserProfileApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
|
|
7933
|
-
* @param {*} [options] Override http request option.
|
|
7934
|
-
* @throws {RequiredError}
|
|
7935
|
-
* @memberof UserProfileApi
|
|
7936
|
-
*/
|
|
7937
|
-
removeFavoritePlayer(requestParameters, options) {
|
|
7938
|
-
return (0, exports.UserProfileApiFp)(this.configuration).removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(this.axios, this.basePath));
|
|
7939
|
-
}
|
|
7940
|
-
/**
|
|
7941
|
-
*
|
|
7942
|
-
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
7943
|
-
* @param {UserProfileApiUpdateLevelBySportsRequest} requestParameters Request parameters.
|
|
7944
|
-
* @param {*} [options] Override http request option.
|
|
7945
|
-
* @throws {RequiredError}
|
|
7946
|
-
* @memberof UserProfileApi
|
|
7947
|
-
*/
|
|
7948
|
-
updateLevelBySports(requestParameters, options) {
|
|
7949
|
-
return (0, exports.UserProfileApiFp)(this.configuration).updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7950
|
-
}
|
|
7951
|
-
/**
|
|
7952
|
-
*
|
|
7953
|
-
* @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
|
|
7954
|
-
* @param {UserProfileApiUpdateProfilePictureRequest} requestParameters Request parameters.
|
|
7955
|
-
* @param {*} [options] Override http request option.
|
|
7956
|
-
* @throws {RequiredError}
|
|
7957
|
-
* @memberof UserProfileApi
|
|
7958
|
-
*/
|
|
7959
|
-
updateProfilePicture(requestParameters, options) {
|
|
7960
|
-
return (0, exports.UserProfileApiFp)(this.configuration).updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7961
|
-
}
|
|
7962
|
-
/**
|
|
7963
|
-
*
|
|
7964
|
-
* @summary Met à jour la visibilité du profil de l\'utilisateur connecté
|
|
7965
|
-
* @param {UserProfileApiUpdateProfileVisibilityRequest} requestParameters Request parameters.
|
|
7966
|
-
* @param {*} [options] Override http request option.
|
|
7967
|
-
* @throws {RequiredError}
|
|
7968
|
-
* @memberof UserProfileApi
|
|
7969
|
-
*/
|
|
7970
|
-
updateProfileVisibility(requestParameters, options) {
|
|
7971
|
-
return (0, exports.UserProfileApiFp)(this.configuration).updateProfileVisibility(requestParameters.updateProfileVisibilityRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7972
|
-
}
|
|
7973
|
-
/**
|
|
7974
|
-
*
|
|
7975
|
-
* @summary Met à jour les données de l\'utilisateur connecté
|
|
7976
|
-
* @param {UserProfileApiUpdateUserRequest} requestParameters Request parameters.
|
|
7977
|
-
* @param {*} [options] Override http request option.
|
|
7978
|
-
* @throws {RequiredError}
|
|
7979
|
-
* @memberof UserProfileApi
|
|
7980
|
-
*/
|
|
7981
|
-
updateUser(requestParameters, options) {
|
|
7982
|
-
return (0, exports.UserProfileApiFp)(this.configuration).updateUser(requestParameters.updateUserRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7983
|
-
}
|
|
7984
|
-
/**
|
|
7985
|
-
*
|
|
7986
|
-
* @summary Met à jour la ville de l\'utilisateur connecté
|
|
7987
|
-
* @param {UserProfileApiUpdateUserCityRequest} requestParameters Request parameters.
|
|
7988
|
-
* @param {*} [options] Override http request option.
|
|
7989
|
-
* @throws {RequiredError}
|
|
7990
|
-
* @memberof UserProfileApi
|
|
7991
|
-
*/
|
|
7992
|
-
updateUserCity(requestParameters, options) {
|
|
7993
|
-
return (0, exports.UserProfileApiFp)(this.configuration).updateUserCity(requestParameters.updateUserCityRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7994
|
-
}
|
|
7995
|
-
/**
|
|
7996
|
-
*
|
|
7997
|
-
* @summary Met à jour la description de l\'utilisateur connecté
|
|
7998
|
-
* @param {UserProfileApiUpdateUserDescriptionRequest} requestParameters Request parameters.
|
|
7999
|
-
* @param {*} [options] Override http request option.
|
|
8000
|
-
* @throws {RequiredError}
|
|
8001
|
-
* @memberof UserProfileApi
|
|
8002
|
-
*/
|
|
8003
|
-
updateUserDescription(requestParameters, options) {
|
|
8004
|
-
return (0, exports.UserProfileApiFp)(this.configuration).updateUserDescription(requestParameters.updateUserDescriptionRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8005
|
-
}
|
|
8006
|
-
}
|
|
8007
|
-
exports.UserProfileApi = UserProfileApi;
|
|
8008
|
-
/**
|
|
8009
|
-
* UserSubscriptionsApi - axios parameter creator
|
|
8010
|
-
* @export
|
|
8011
|
-
*/
|
|
8012
|
-
const UserSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
8013
|
-
return {
|
|
8014
|
-
/**
|
|
8015
|
-
*
|
|
8016
|
-
* @summary Annule un abonnement utilisateur
|
|
8017
|
-
* @param {string} clubId ID du club
|
|
8018
|
-
* @param {string} subscriptionId ID de l\'abonnement à annuler
|
|
8019
|
-
* @param {*} [options] Override http request option.
|
|
8020
|
-
* @throws {RequiredError}
|
|
8021
|
-
*/
|
|
8022
|
-
cancelSubscription: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
8023
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
8024
|
-
(0, common_1.assertParamExists)('cancelSubscription', 'clubId', clubId);
|
|
8025
|
-
// verify required parameter 'subscriptionId' is not null or undefined
|
|
8026
|
-
(0, common_1.assertParamExists)('cancelSubscription', 'subscriptionId', subscriptionId);
|
|
8027
|
-
const localVarPath = `/api/users/me/subscriptions/{clubId}/{subscriptionId}`
|
|
8028
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
8029
|
-
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
8030
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8031
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8032
|
-
let baseOptions;
|
|
8033
|
-
if (configuration) {
|
|
8034
|
-
baseOptions = configuration.baseOptions;
|
|
8035
|
-
}
|
|
8036
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
8037
|
-
const localVarHeaderParameter = {};
|
|
8038
|
-
const localVarQueryParameter = {};
|
|
8039
|
-
// authentication bearerAuth required
|
|
8040
|
-
// http bearer authentication required
|
|
8041
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8042
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8043
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8044
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8045
|
-
return {
|
|
8046
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8047
|
-
options: localVarRequestOptions,
|
|
8048
|
-
};
|
|
8049
|
-
}),
|
|
8050
|
-
/**
|
|
8051
|
-
*
|
|
8052
|
-
* @summary Récupère les abonnements de l\'utilisateur connecté
|
|
8053
|
-
* @param {*} [options] Override http request option.
|
|
8054
|
-
* @throws {RequiredError}
|
|
8055
|
-
*/
|
|
8056
|
-
getUserSubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
8057
|
-
const localVarPath = `/api/users/me/subscriptions`;
|
|
8058
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8059
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8060
|
-
let baseOptions;
|
|
8061
|
-
if (configuration) {
|
|
8062
|
-
baseOptions = configuration.baseOptions;
|
|
8063
|
-
}
|
|
8064
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8065
|
-
const localVarHeaderParameter = {};
|
|
8066
|
-
const localVarQueryParameter = {};
|
|
8067
|
-
// authentication bearerAuth required
|
|
8068
|
-
// http bearer authentication required
|
|
8069
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8070
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8071
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8072
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8073
|
-
return {
|
|
8074
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8075
|
-
options: localVarRequestOptions,
|
|
8076
|
-
};
|
|
8077
|
-
}),
|
|
8078
|
-
/**
|
|
8079
|
-
*
|
|
8080
|
-
* @summary Initie une session d\'abonnement Stripe
|
|
8081
|
-
* @param {InitiateSubscriptionSessionRequestBody} initiateSubscriptionSessionRequestBody
|
|
8082
|
-
* @param {*} [options] Override http request option.
|
|
8083
|
-
* @throws {RequiredError}
|
|
8084
|
-
*/
|
|
8085
|
-
initiateSubscriptionSession: (initiateSubscriptionSessionRequestBody_1, ...args_1) => __awaiter(this, [initiateSubscriptionSessionRequestBody_1, ...args_1], void 0, function* (initiateSubscriptionSessionRequestBody, options = {}) {
|
|
8086
|
-
// verify required parameter 'initiateSubscriptionSessionRequestBody' is not null or undefined
|
|
8087
|
-
(0, common_1.assertParamExists)('initiateSubscriptionSession', 'initiateSubscriptionSessionRequestBody', initiateSubscriptionSessionRequestBody);
|
|
8088
|
-
const localVarPath = `/api/users/me/subscription-session`;
|
|
8089
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8090
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8091
|
-
let baseOptions;
|
|
8092
|
-
if (configuration) {
|
|
8093
|
-
baseOptions = configuration.baseOptions;
|
|
8094
|
-
}
|
|
8095
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8096
|
-
const localVarHeaderParameter = {};
|
|
8097
|
-
const localVarQueryParameter = {};
|
|
8098
|
-
// authentication bearerAuth required
|
|
8099
|
-
// http bearer authentication required
|
|
8100
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8101
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8102
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8103
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8104
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8105
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initiateSubscriptionSessionRequestBody, localVarRequestOptions, configuration);
|
|
8106
|
-
return {
|
|
8107
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8108
|
-
options: localVarRequestOptions,
|
|
8109
|
-
};
|
|
8110
|
-
}),
|
|
8111
|
-
/**
|
|
8112
|
-
*
|
|
8113
|
-
* @summary Réactive un abonnement utilisateur
|
|
8114
|
-
* @param {string} clubId ID du club
|
|
8115
|
-
* @param {string} subscriptionId ID de l\'abonnement à réactiver
|
|
8116
|
-
* @param {*} [options] Override http request option.
|
|
8117
|
-
* @throws {RequiredError}
|
|
8118
|
-
*/
|
|
8119
|
-
resumeSubscription: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
8120
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
8121
|
-
(0, common_1.assertParamExists)('resumeSubscription', 'clubId', clubId);
|
|
8122
|
-
// verify required parameter 'subscriptionId' is not null or undefined
|
|
8123
|
-
(0, common_1.assertParamExists)('resumeSubscription', 'subscriptionId', subscriptionId);
|
|
8124
|
-
const localVarPath = `/api/users/me/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
8125
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
8126
|
-
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
8127
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8128
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8129
|
-
let baseOptions;
|
|
8130
|
-
if (configuration) {
|
|
8131
|
-
baseOptions = configuration.baseOptions;
|
|
8132
|
-
}
|
|
8133
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8134
|
-
const localVarHeaderParameter = {};
|
|
8135
|
-
const localVarQueryParameter = {};
|
|
8136
|
-
// authentication bearerAuth required
|
|
8137
|
-
// http bearer authentication required
|
|
8138
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8139
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8140
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8141
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8142
|
-
return {
|
|
8143
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8144
|
-
options: localVarRequestOptions,
|
|
8145
|
-
};
|
|
8146
|
-
}),
|
|
8147
|
-
};
|
|
8148
|
-
};
|
|
8149
|
-
exports.UserSubscriptionsApiAxiosParamCreator = UserSubscriptionsApiAxiosParamCreator;
|
|
8150
|
-
/**
|
|
8151
|
-
* UserSubscriptionsApi - functional programming interface
|
|
8152
|
-
* @export
|
|
8153
|
-
*/
|
|
8154
|
-
const UserSubscriptionsApiFp = function (configuration) {
|
|
8155
|
-
const localVarAxiosParamCreator = (0, exports.UserSubscriptionsApiAxiosParamCreator)(configuration);
|
|
8156
|
-
return {
|
|
8157
|
-
/**
|
|
8158
|
-
*
|
|
8159
|
-
* @summary Annule un abonnement utilisateur
|
|
8160
|
-
* @param {string} clubId ID du club
|
|
8161
|
-
* @param {string} subscriptionId ID de l\'abonnement à annuler
|
|
8162
|
-
* @param {*} [options] Override http request option.
|
|
8163
|
-
* @throws {RequiredError}
|
|
8164
|
-
*/
|
|
8165
|
-
cancelSubscription(clubId, subscriptionId, options) {
|
|
8166
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8167
|
-
var _a, _b, _c;
|
|
8168
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSubscription(clubId, subscriptionId, options);
|
|
8169
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8170
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserSubscriptionsApi.cancelSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8171
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8172
|
-
});
|
|
8173
|
-
},
|
|
8174
|
-
/**
|
|
8175
|
-
*
|
|
8176
|
-
* @summary Récupère les abonnements de l\'utilisateur connecté
|
|
8177
|
-
* @param {*} [options] Override http request option.
|
|
8178
|
-
* @throws {RequiredError}
|
|
8179
|
-
*/
|
|
8180
|
-
getUserSubscriptions(options) {
|
|
8181
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8182
|
-
var _a, _b, _c;
|
|
8183
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserSubscriptions(options);
|
|
8184
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8185
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserSubscriptionsApi.getUserSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8186
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8187
|
-
});
|
|
8188
|
-
},
|
|
8189
|
-
/**
|
|
8190
|
-
*
|
|
8191
|
-
* @summary Initie une session d\'abonnement Stripe
|
|
8192
|
-
* @param {InitiateSubscriptionSessionRequestBody} initiateSubscriptionSessionRequestBody
|
|
8193
|
-
* @param {*} [options] Override http request option.
|
|
8194
|
-
* @throws {RequiredError}
|
|
8195
|
-
*/
|
|
8196
|
-
initiateSubscriptionSession(initiateSubscriptionSessionRequestBody, options) {
|
|
8197
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8198
|
-
var _a, _b, _c;
|
|
8199
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateSubscriptionSession(initiateSubscriptionSessionRequestBody, options);
|
|
8200
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8201
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserSubscriptionsApi.initiateSubscriptionSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8202
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8203
|
-
});
|
|
8204
|
-
},
|
|
8205
|
-
/**
|
|
8206
|
-
*
|
|
8207
|
-
* @summary Réactive un abonnement utilisateur
|
|
8208
|
-
* @param {string} clubId ID du club
|
|
8209
|
-
* @param {string} subscriptionId ID de l\'abonnement à réactiver
|
|
8210
|
-
* @param {*} [options] Override http request option.
|
|
8211
|
-
* @throws {RequiredError}
|
|
8212
|
-
*/
|
|
8213
|
-
resumeSubscription(clubId, subscriptionId, options) {
|
|
8214
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8215
|
-
var _a, _b, _c;
|
|
8216
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.resumeSubscription(clubId, subscriptionId, options);
|
|
8217
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8218
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserSubscriptionsApi.resumeSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8219
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8220
|
-
});
|
|
8221
|
-
},
|
|
8222
|
-
};
|
|
8223
|
-
};
|
|
8224
|
-
exports.UserSubscriptionsApiFp = UserSubscriptionsApiFp;
|
|
5371
|
+
exports.UserClubsApiFp = UserClubsApiFp;
|
|
8225
5372
|
/**
|
|
8226
|
-
*
|
|
5373
|
+
* UserClubsApi - factory interface
|
|
8227
5374
|
* @export
|
|
8228
5375
|
*/
|
|
8229
|
-
const
|
|
8230
|
-
const localVarFp = (0, exports.
|
|
5376
|
+
const UserClubsApiFactory = function (configuration, basePath, axios) {
|
|
5377
|
+
const localVarFp = (0, exports.UserClubsApiFp)(configuration);
|
|
8231
5378
|
return {
|
|
8232
5379
|
/**
|
|
8233
|
-
*
|
|
8234
|
-
* @summary
|
|
8235
|
-
* @param {UserSubscriptionsApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
8236
|
-
* @param {*} [options] Override http request option.
|
|
8237
|
-
* @throws {RequiredError}
|
|
8238
|
-
*/
|
|
8239
|
-
cancelSubscription(requestParameters, options) {
|
|
8240
|
-
return localVarFp.cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
8241
|
-
},
|
|
8242
|
-
/**
|
|
8243
|
-
*
|
|
8244
|
-
* @summary Récupère les abonnements de l\'utilisateur connecté
|
|
5380
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
5381
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
8245
5382
|
* @param {*} [options] Override http request option.
|
|
8246
5383
|
* @throws {RequiredError}
|
|
8247
5384
|
*/
|
|
8248
|
-
|
|
8249
|
-
return localVarFp.
|
|
5385
|
+
getActiveClubs(options) {
|
|
5386
|
+
return localVarFp.getActiveClubs(options).then((request) => request(axios, basePath));
|
|
8250
5387
|
},
|
|
8251
5388
|
/**
|
|
8252
5389
|
*
|
|
8253
|
-
* @summary
|
|
8254
|
-
* @param {UserSubscriptionsApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
5390
|
+
* @summary Retrieve the list of most visited clubs (max 10)
|
|
8255
5391
|
* @param {*} [options] Override http request option.
|
|
8256
5392
|
* @throws {RequiredError}
|
|
8257
5393
|
*/
|
|
8258
|
-
|
|
8259
|
-
return localVarFp.
|
|
5394
|
+
getMostLikedClub(options) {
|
|
5395
|
+
return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
|
|
8260
5396
|
},
|
|
8261
5397
|
/**
|
|
8262
5398
|
*
|
|
8263
|
-
* @summary
|
|
8264
|
-
* @param {UserSubscriptionsApiResumeSubscriptionRequest} requestParameters Request parameters.
|
|
5399
|
+
* @summary Retrieve the list of most liked clubs (max 10)
|
|
8265
5400
|
* @param {*} [options] Override http request option.
|
|
8266
5401
|
* @throws {RequiredError}
|
|
8267
5402
|
*/
|
|
8268
|
-
|
|
8269
|
-
return localVarFp.
|
|
5403
|
+
getPopularClubs(options) {
|
|
5404
|
+
return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
|
|
8270
5405
|
},
|
|
8271
5406
|
};
|
|
8272
5407
|
};
|
|
8273
|
-
exports.
|
|
5408
|
+
exports.UserClubsApiFactory = UserClubsApiFactory;
|
|
8274
5409
|
/**
|
|
8275
|
-
*
|
|
8276
|
-
* @export
|
|
8277
|
-
* @class
|
|
8278
|
-
* @extends {BaseAPI}
|
|
8279
|
-
*/
|
|
8280
|
-
class
|
|
8281
|
-
/**
|
|
8282
|
-
*
|
|
8283
|
-
* @summary Annule un abonnement utilisateur
|
|
8284
|
-
* @param {UserSubscriptionsApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
8285
|
-
* @param {*} [options] Override http request option.
|
|
8286
|
-
* @throws {RequiredError}
|
|
8287
|
-
* @memberof UserSubscriptionsApi
|
|
8288
|
-
*/
|
|
8289
|
-
cancelSubscription(requestParameters, options) {
|
|
8290
|
-
return (0, exports.UserSubscriptionsApiFp)(this.configuration).cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
8291
|
-
}
|
|
5410
|
+
* UserClubsApi - object-oriented interface
|
|
5411
|
+
* @export
|
|
5412
|
+
* @class UserClubsApi
|
|
5413
|
+
* @extends {BaseAPI}
|
|
5414
|
+
*/
|
|
5415
|
+
class UserClubsApi extends base_1.BaseAPI {
|
|
8292
5416
|
/**
|
|
8293
|
-
*
|
|
8294
|
-
* @summary
|
|
5417
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
5418
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
8295
5419
|
* @param {*} [options] Override http request option.
|
|
8296
5420
|
* @throws {RequiredError}
|
|
8297
|
-
* @memberof
|
|
5421
|
+
* @memberof UserClubsApi
|
|
8298
5422
|
*/
|
|
8299
|
-
|
|
8300
|
-
return (0, exports.
|
|
5423
|
+
getActiveClubs(options) {
|
|
5424
|
+
return (0, exports.UserClubsApiFp)(this.configuration).getActiveClubs(options).then((request) => request(this.axios, this.basePath));
|
|
8301
5425
|
}
|
|
8302
5426
|
/**
|
|
8303
5427
|
*
|
|
8304
|
-
* @summary
|
|
8305
|
-
* @param {UserSubscriptionsApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
5428
|
+
* @summary Retrieve the list of most visited clubs (max 10)
|
|
8306
5429
|
* @param {*} [options] Override http request option.
|
|
8307
5430
|
* @throws {RequiredError}
|
|
8308
|
-
* @memberof
|
|
5431
|
+
* @memberof UserClubsApi
|
|
8309
5432
|
*/
|
|
8310
|
-
|
|
8311
|
-
return (0, exports.
|
|
5433
|
+
getMostLikedClub(options) {
|
|
5434
|
+
return (0, exports.UserClubsApiFp)(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
|
|
8312
5435
|
}
|
|
8313
5436
|
/**
|
|
8314
5437
|
*
|
|
8315
|
-
* @summary
|
|
8316
|
-
* @param {UserSubscriptionsApiResumeSubscriptionRequest} requestParameters Request parameters.
|
|
5438
|
+
* @summary Retrieve the list of most liked clubs (max 10)
|
|
8317
5439
|
* @param {*} [options] Override http request option.
|
|
8318
5440
|
* @throws {RequiredError}
|
|
8319
|
-
* @memberof
|
|
5441
|
+
* @memberof UserClubsApi
|
|
8320
5442
|
*/
|
|
8321
|
-
|
|
8322
|
-
return (0, exports.
|
|
5443
|
+
getPopularClubs(options) {
|
|
5444
|
+
return (0, exports.UserClubsApiFp)(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
|
|
8323
5445
|
}
|
|
8324
5446
|
}
|
|
8325
|
-
exports.
|
|
5447
|
+
exports.UserClubsApi = UserClubsApi;
|
|
8326
5448
|
/**
|
|
8327
5449
|
* UsersApi - axios parameter creator
|
|
8328
5450
|
* @export
|
|
@@ -8416,174 +5538,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8416
5538
|
options: localVarRequestOptions,
|
|
8417
5539
|
};
|
|
8418
5540
|
}),
|
|
8419
|
-
/**
|
|
8420
|
-
*
|
|
8421
|
-
* @summary Récupère les clubs proches de l’utilisateur connecté
|
|
8422
|
-
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
8423
|
-
* @param {number} [limit] Nombre maximum de résultats
|
|
8424
|
-
* @param {*} [options] Override http request option.
|
|
8425
|
-
* @throws {RequiredError}
|
|
8426
|
-
*/
|
|
8427
|
-
apiUsersMeNearestClubsGet: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
|
|
8428
|
-
const localVarPath = `/api/users/me/nearest-clubs/`;
|
|
8429
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8430
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8431
|
-
let baseOptions;
|
|
8432
|
-
if (configuration) {
|
|
8433
|
-
baseOptions = configuration.baseOptions;
|
|
8434
|
-
}
|
|
8435
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8436
|
-
const localVarHeaderParameter = {};
|
|
8437
|
-
const localVarQueryParameter = {};
|
|
8438
|
-
// authentication bearerAuth required
|
|
8439
|
-
// http bearer authentication required
|
|
8440
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8441
|
-
if (radiusInKm !== undefined) {
|
|
8442
|
-
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
8443
|
-
}
|
|
8444
|
-
if (limit !== undefined) {
|
|
8445
|
-
localVarQueryParameter['limit'] = limit;
|
|
8446
|
-
}
|
|
8447
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8448
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8449
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8450
|
-
return {
|
|
8451
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8452
|
-
options: localVarRequestOptions,
|
|
8453
|
-
};
|
|
8454
|
-
}),
|
|
8455
|
-
/**
|
|
8456
|
-
*
|
|
8457
|
-
* @summary Récupère les utilisateurs proches de l’utilisateur connecté
|
|
8458
|
-
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
8459
|
-
* @param {number} [limit] Nombre maximum de résultats
|
|
8460
|
-
* @param {*} [options] Override http request option.
|
|
8461
|
-
* @throws {RequiredError}
|
|
8462
|
-
*/
|
|
8463
|
-
apiUsersMeNearestPlayersGet: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
|
|
8464
|
-
const localVarPath = `/api/users/me/nearest-players/`;
|
|
8465
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8466
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8467
|
-
let baseOptions;
|
|
8468
|
-
if (configuration) {
|
|
8469
|
-
baseOptions = configuration.baseOptions;
|
|
8470
|
-
}
|
|
8471
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8472
|
-
const localVarHeaderParameter = {};
|
|
8473
|
-
const localVarQueryParameter = {};
|
|
8474
|
-
// authentication bearerAuth required
|
|
8475
|
-
// http bearer authentication required
|
|
8476
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8477
|
-
if (radiusInKm !== undefined) {
|
|
8478
|
-
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
8479
|
-
}
|
|
8480
|
-
if (limit !== undefined) {
|
|
8481
|
-
localVarQueryParameter['limit'] = limit;
|
|
8482
|
-
}
|
|
8483
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8484
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8485
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8486
|
-
return {
|
|
8487
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8488
|
-
options: localVarRequestOptions,
|
|
8489
|
-
};
|
|
8490
|
-
}),
|
|
8491
|
-
/**
|
|
8492
|
-
*
|
|
8493
|
-
* @summary Récupère les clubs proches d’une position donnée
|
|
8494
|
-
* @param {number} latitude Latitude de la position
|
|
8495
|
-
* @param {number} longitude Longitude de la position
|
|
8496
|
-
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
8497
|
-
* @param {number} [limit] Nombre maximum de résultats
|
|
8498
|
-
* @param {*} [options] Override http request option.
|
|
8499
|
-
* @throws {RequiredError}
|
|
8500
|
-
*/
|
|
8501
|
-
apiUsersNearestClubsCoordinatesGet: (latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, limit, options = {}) {
|
|
8502
|
-
// verify required parameter 'latitude' is not null or undefined
|
|
8503
|
-
(0, common_1.assertParamExists)('apiUsersNearestClubsCoordinatesGet', 'latitude', latitude);
|
|
8504
|
-
// verify required parameter 'longitude' is not null or undefined
|
|
8505
|
-
(0, common_1.assertParamExists)('apiUsersNearestClubsCoordinatesGet', 'longitude', longitude);
|
|
8506
|
-
const localVarPath = `/api/users/nearest-clubs/coordinates`;
|
|
8507
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8508
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8509
|
-
let baseOptions;
|
|
8510
|
-
if (configuration) {
|
|
8511
|
-
baseOptions = configuration.baseOptions;
|
|
8512
|
-
}
|
|
8513
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8514
|
-
const localVarHeaderParameter = {};
|
|
8515
|
-
const localVarQueryParameter = {};
|
|
8516
|
-
// authentication bearerAuth required
|
|
8517
|
-
// http bearer authentication required
|
|
8518
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8519
|
-
if (latitude !== undefined) {
|
|
8520
|
-
localVarQueryParameter['latitude'] = latitude;
|
|
8521
|
-
}
|
|
8522
|
-
if (longitude !== undefined) {
|
|
8523
|
-
localVarQueryParameter['longitude'] = longitude;
|
|
8524
|
-
}
|
|
8525
|
-
if (radiusInKm !== undefined) {
|
|
8526
|
-
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
8527
|
-
}
|
|
8528
|
-
if (limit !== undefined) {
|
|
8529
|
-
localVarQueryParameter['limit'] = limit;
|
|
8530
|
-
}
|
|
8531
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8532
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8533
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8534
|
-
return {
|
|
8535
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8536
|
-
options: localVarRequestOptions,
|
|
8537
|
-
};
|
|
8538
|
-
}),
|
|
8539
|
-
/**
|
|
8540
|
-
*
|
|
8541
|
-
* @summary Récupère les utilisateurs proches d’une position donnée
|
|
8542
|
-
* @param {number} latitude Latitude de la position
|
|
8543
|
-
* @param {number} longitude Longitude de la position
|
|
8544
|
-
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
8545
|
-
* @param {number} [limit] Nombre maximum de résultats
|
|
8546
|
-
* @param {*} [options] Override http request option.
|
|
8547
|
-
* @throws {RequiredError}
|
|
8548
|
-
*/
|
|
8549
|
-
apiUsersNearestPlayersCoordinatesGet: (latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, limit, options = {}) {
|
|
8550
|
-
// verify required parameter 'latitude' is not null or undefined
|
|
8551
|
-
(0, common_1.assertParamExists)('apiUsersNearestPlayersCoordinatesGet', 'latitude', latitude);
|
|
8552
|
-
// verify required parameter 'longitude' is not null or undefined
|
|
8553
|
-
(0, common_1.assertParamExists)('apiUsersNearestPlayersCoordinatesGet', 'longitude', longitude);
|
|
8554
|
-
const localVarPath = `/api/users/nearest-players/coordinates`;
|
|
8555
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8556
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8557
|
-
let baseOptions;
|
|
8558
|
-
if (configuration) {
|
|
8559
|
-
baseOptions = configuration.baseOptions;
|
|
8560
|
-
}
|
|
8561
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8562
|
-
const localVarHeaderParameter = {};
|
|
8563
|
-
const localVarQueryParameter = {};
|
|
8564
|
-
// authentication bearerAuth required
|
|
8565
|
-
// http bearer authentication required
|
|
8566
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8567
|
-
if (latitude !== undefined) {
|
|
8568
|
-
localVarQueryParameter['latitude'] = latitude;
|
|
8569
|
-
}
|
|
8570
|
-
if (longitude !== undefined) {
|
|
8571
|
-
localVarQueryParameter['longitude'] = longitude;
|
|
8572
|
-
}
|
|
8573
|
-
if (radiusInKm !== undefined) {
|
|
8574
|
-
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
8575
|
-
}
|
|
8576
|
-
if (limit !== undefined) {
|
|
8577
|
-
localVarQueryParameter['limit'] = limit;
|
|
8578
|
-
}
|
|
8579
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8580
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8581
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8582
|
-
return {
|
|
8583
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8584
|
-
options: localVarRequestOptions,
|
|
8585
|
-
};
|
|
8586
|
-
}),
|
|
8587
5541
|
/**
|
|
8588
5542
|
*
|
|
8589
5543
|
* @param {string} clubId
|
|
@@ -9617,78 +6571,6 @@ const UsersApiFp = function (configuration) {
|
|
|
9617
6571
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9618
6572
|
});
|
|
9619
6573
|
},
|
|
9620
|
-
/**
|
|
9621
|
-
*
|
|
9622
|
-
* @summary Récupère les clubs proches de l’utilisateur connecté
|
|
9623
|
-
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
9624
|
-
* @param {number} [limit] Nombre maximum de résultats
|
|
9625
|
-
* @param {*} [options] Override http request option.
|
|
9626
|
-
* @throws {RequiredError}
|
|
9627
|
-
*/
|
|
9628
|
-
apiUsersMeNearestClubsGet(radiusInKm, limit, options) {
|
|
9629
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9630
|
-
var _a, _b, _c;
|
|
9631
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersMeNearestClubsGet(radiusInKm, limit, options);
|
|
9632
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9633
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.apiUsersMeNearestClubsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9634
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9635
|
-
});
|
|
9636
|
-
},
|
|
9637
|
-
/**
|
|
9638
|
-
*
|
|
9639
|
-
* @summary Récupère les utilisateurs proches de l’utilisateur connecté
|
|
9640
|
-
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
9641
|
-
* @param {number} [limit] Nombre maximum de résultats
|
|
9642
|
-
* @param {*} [options] Override http request option.
|
|
9643
|
-
* @throws {RequiredError}
|
|
9644
|
-
*/
|
|
9645
|
-
apiUsersMeNearestPlayersGet(radiusInKm, limit, options) {
|
|
9646
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9647
|
-
var _a, _b, _c;
|
|
9648
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersMeNearestPlayersGet(radiusInKm, limit, options);
|
|
9649
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9650
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.apiUsersMeNearestPlayersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9651
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9652
|
-
});
|
|
9653
|
-
},
|
|
9654
|
-
/**
|
|
9655
|
-
*
|
|
9656
|
-
* @summary Récupère les clubs proches d’une position donnée
|
|
9657
|
-
* @param {number} latitude Latitude de la position
|
|
9658
|
-
* @param {number} longitude Longitude de la position
|
|
9659
|
-
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
9660
|
-
* @param {number} [limit] Nombre maximum de résultats
|
|
9661
|
-
* @param {*} [options] Override http request option.
|
|
9662
|
-
* @throws {RequiredError}
|
|
9663
|
-
*/
|
|
9664
|
-
apiUsersNearestClubsCoordinatesGet(latitude, longitude, radiusInKm, limit, options) {
|
|
9665
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9666
|
-
var _a, _b, _c;
|
|
9667
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersNearestClubsCoordinatesGet(latitude, longitude, radiusInKm, limit, options);
|
|
9668
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9669
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.apiUsersNearestClubsCoordinatesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9670
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9671
|
-
});
|
|
9672
|
-
},
|
|
9673
|
-
/**
|
|
9674
|
-
*
|
|
9675
|
-
* @summary Récupère les utilisateurs proches d’une position donnée
|
|
9676
|
-
* @param {number} latitude Latitude de la position
|
|
9677
|
-
* @param {number} longitude Longitude de la position
|
|
9678
|
-
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
9679
|
-
* @param {number} [limit] Nombre maximum de résultats
|
|
9680
|
-
* @param {*} [options] Override http request option.
|
|
9681
|
-
* @throws {RequiredError}
|
|
9682
|
-
*/
|
|
9683
|
-
apiUsersNearestPlayersCoordinatesGet(latitude, longitude, radiusInKm, limit, options) {
|
|
9684
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9685
|
-
var _a, _b, _c;
|
|
9686
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersNearestPlayersCoordinatesGet(latitude, longitude, radiusInKm, limit, options);
|
|
9687
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9688
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.apiUsersNearestPlayersCoordinatesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9689
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9690
|
-
});
|
|
9691
|
-
},
|
|
9692
6574
|
/**
|
|
9693
6575
|
*
|
|
9694
6576
|
* @param {string} clubId
|
|
@@ -10239,46 +7121,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
10239
7121
|
addPaymentMethodSetup(requestParameters, options) {
|
|
10240
7122
|
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
10241
7123
|
},
|
|
10242
|
-
/**
|
|
10243
|
-
*
|
|
10244
|
-
* @summary Récupère les clubs proches de l’utilisateur connecté
|
|
10245
|
-
* @param {UsersApiApiUsersMeNearestClubsGetRequest} requestParameters Request parameters.
|
|
10246
|
-
* @param {*} [options] Override http request option.
|
|
10247
|
-
* @throws {RequiredError}
|
|
10248
|
-
*/
|
|
10249
|
-
apiUsersMeNearestClubsGet(requestParameters = {}, options) {
|
|
10250
|
-
return localVarFp.apiUsersMeNearestClubsGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
10251
|
-
},
|
|
10252
|
-
/**
|
|
10253
|
-
*
|
|
10254
|
-
* @summary Récupère les utilisateurs proches de l’utilisateur connecté
|
|
10255
|
-
* @param {UsersApiApiUsersMeNearestPlayersGetRequest} requestParameters Request parameters.
|
|
10256
|
-
* @param {*} [options] Override http request option.
|
|
10257
|
-
* @throws {RequiredError}
|
|
10258
|
-
*/
|
|
10259
|
-
apiUsersMeNearestPlayersGet(requestParameters = {}, options) {
|
|
10260
|
-
return localVarFp.apiUsersMeNearestPlayersGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
10261
|
-
},
|
|
10262
|
-
/**
|
|
10263
|
-
*
|
|
10264
|
-
* @summary Récupère les clubs proches d’une position donnée
|
|
10265
|
-
* @param {UsersApiApiUsersNearestClubsCoordinatesGetRequest} requestParameters Request parameters.
|
|
10266
|
-
* @param {*} [options] Override http request option.
|
|
10267
|
-
* @throws {RequiredError}
|
|
10268
|
-
*/
|
|
10269
|
-
apiUsersNearestClubsCoordinatesGet(requestParameters, options) {
|
|
10270
|
-
return localVarFp.apiUsersNearestClubsCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
10271
|
-
},
|
|
10272
|
-
/**
|
|
10273
|
-
*
|
|
10274
|
-
* @summary Récupère les utilisateurs proches d’une position donnée
|
|
10275
|
-
* @param {UsersApiApiUsersNearestPlayersCoordinatesGetRequest} requestParameters Request parameters.
|
|
10276
|
-
* @param {*} [options] Override http request option.
|
|
10277
|
-
* @throws {RequiredError}
|
|
10278
|
-
*/
|
|
10279
|
-
apiUsersNearestPlayersCoordinatesGet(requestParameters, options) {
|
|
10280
|
-
return localVarFp.apiUsersNearestPlayersCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
10281
|
-
},
|
|
10282
7124
|
/**
|
|
10283
7125
|
*
|
|
10284
7126
|
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
@@ -10617,50 +7459,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
10617
7459
|
addPaymentMethodSetup(requestParameters, options) {
|
|
10618
7460
|
return (0, exports.UsersApiFp)(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10619
7461
|
}
|
|
10620
|
-
/**
|
|
10621
|
-
*
|
|
10622
|
-
* @summary Récupère les clubs proches de l’utilisateur connecté
|
|
10623
|
-
* @param {UsersApiApiUsersMeNearestClubsGetRequest} requestParameters Request parameters.
|
|
10624
|
-
* @param {*} [options] Override http request option.
|
|
10625
|
-
* @throws {RequiredError}
|
|
10626
|
-
* @memberof UsersApi
|
|
10627
|
-
*/
|
|
10628
|
-
apiUsersMeNearestClubsGet(requestParameters = {}, options) {
|
|
10629
|
-
return (0, exports.UsersApiFp)(this.configuration).apiUsersMeNearestClubsGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
10630
|
-
}
|
|
10631
|
-
/**
|
|
10632
|
-
*
|
|
10633
|
-
* @summary Récupère les utilisateurs proches de l’utilisateur connecté
|
|
10634
|
-
* @param {UsersApiApiUsersMeNearestPlayersGetRequest} requestParameters Request parameters.
|
|
10635
|
-
* @param {*} [options] Override http request option.
|
|
10636
|
-
* @throws {RequiredError}
|
|
10637
|
-
* @memberof UsersApi
|
|
10638
|
-
*/
|
|
10639
|
-
apiUsersMeNearestPlayersGet(requestParameters = {}, options) {
|
|
10640
|
-
return (0, exports.UsersApiFp)(this.configuration).apiUsersMeNearestPlayersGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
10641
|
-
}
|
|
10642
|
-
/**
|
|
10643
|
-
*
|
|
10644
|
-
* @summary Récupère les clubs proches d’une position donnée
|
|
10645
|
-
* @param {UsersApiApiUsersNearestClubsCoordinatesGetRequest} requestParameters Request parameters.
|
|
10646
|
-
* @param {*} [options] Override http request option.
|
|
10647
|
-
* @throws {RequiredError}
|
|
10648
|
-
* @memberof UsersApi
|
|
10649
|
-
*/
|
|
10650
|
-
apiUsersNearestClubsCoordinatesGet(requestParameters, options) {
|
|
10651
|
-
return (0, exports.UsersApiFp)(this.configuration).apiUsersNearestClubsCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
10652
|
-
}
|
|
10653
|
-
/**
|
|
10654
|
-
*
|
|
10655
|
-
* @summary Récupère les utilisateurs proches d’une position donnée
|
|
10656
|
-
* @param {UsersApiApiUsersNearestPlayersCoordinatesGetRequest} requestParameters Request parameters.
|
|
10657
|
-
* @param {*} [options] Override http request option.
|
|
10658
|
-
* @throws {RequiredError}
|
|
10659
|
-
* @memberof UsersApi
|
|
10660
|
-
*/
|
|
10661
|
-
apiUsersNearestPlayersCoordinatesGet(requestParameters, options) {
|
|
10662
|
-
return (0, exports.UsersApiFp)(this.configuration).apiUsersNearestPlayersCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
10663
|
-
}
|
|
10664
7462
|
/**
|
|
10665
7463
|
*
|
|
10666
7464
|
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|