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