@tennac-booking/sdk 1.0.14 → 1.0.16
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 +134 -126
- package/README.md +34 -24
- package/api.ts +2082 -1678
- package/dist/api.d.ts +1276 -964
- package/dist/api.js +1479 -1333
- package/dist/esm/api.d.ts +1276 -964
- package/dist/esm/api.js +1423 -1277
- package/docs/CancelBookingResponse.md +22 -0
- package/docs/CancelBookingResponseBooking.md +30 -0
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +22 -0
- package/docs/ConfirmPaymentMethodSetupResponse.md +22 -0
- package/docs/CourtResponse.md +2 -0
- package/docs/ManagerCancelBookingResponse.md +22 -0
- package/docs/ManagerCancelBookingResponseBooking.md +30 -0
- package/docs/{ClubRolesApi.md → ManagerClubRolesApi.md} +11 -11
- package/docs/{ClubSubscriptionsApi.md → ManagerClubSubscriptionsApi.md} +15 -15
- package/docs/{SportsApi.md → ManagerSportsApi.md} +5 -5
- package/docs/SetupPaymentMethodRequestBody.md +22 -0
- package/docs/SetupPaymentMethodResponse.md +24 -0
- package/docs/{ClubAnalyticsApi.md → StaffClubAnalyticsApi.md} +5 -5
- package/docs/{ClubBookingsApi.md → StaffClubBookingsApi.md} +3 -3
- package/docs/{ClubsApi.md → StaffClubsApi.md} +3 -3
- package/docs/StaffProfileApi.md +54 -0
- package/docs/{UsersApi.md → UserApi.md} +5 -5
- package/docs/UserBookingsApi.md +57 -0
- package/docs/UserClubSlotsApi.md +121 -0
- package/docs/UserPaymentApi.md +121 -0
- package/docs/UserProfileApi.md +0 -47
- package/package.json +1 -1
- package/docs/BookingsApi.md +0 -64
- package/docs/ClubSlotsApi.md +0 -128
package/dist/api.js
CHANGED
|
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
25
|
+
exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.AdminClubsApi = exports.AdminClubsApiFactory = exports.AdminClubsApiFp = exports.AdminClubsApiAxiosParamCreator = exports.AdminClubSlotsApi = exports.AdminClubSlotsApiFactory = exports.AdminClubSlotsApiFp = exports.AdminClubSlotsApiAxiosParamCreator = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = void 0;
|
|
26
|
+
exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StaffSportsApi = exports.StaffSportsApiFactory = exports.StaffSportsApiFp = exports.StaffSportsApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubSettingsApi = exports.StaffClubSettingsApiFactory = exports.StaffClubSettingsApiFp = exports.StaffClubSettingsApiAxiosParamCreator = void 0;
|
|
27
|
+
exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -40,6 +40,9 @@ exports.BookingStatus = {
|
|
|
40
40
|
Active: 'active',
|
|
41
41
|
Inactive: 'inactive'
|
|
42
42
|
};
|
|
43
|
+
exports.CancelBookingResponseBookingStatusEnum = {
|
|
44
|
+
Cancelled: 'cancelled'
|
|
45
|
+
};
|
|
43
46
|
exports.CourtResponseStatusEnum = {
|
|
44
47
|
Available: 'available',
|
|
45
48
|
Unavailable: 'unavailable'
|
|
@@ -65,6 +68,9 @@ exports.CreatePriceRequestIntervalEnum = {
|
|
|
65
68
|
Month: 'month',
|
|
66
69
|
Year: 'year'
|
|
67
70
|
};
|
|
71
|
+
exports.ManagerCancelBookingResponseBookingStatusEnum = {
|
|
72
|
+
Cancelled: 'cancelled'
|
|
73
|
+
};
|
|
68
74
|
/**
|
|
69
75
|
* Méthode de paiement
|
|
70
76
|
* @export
|
|
@@ -373,130 +379,25 @@ class AdminClubsApi extends base_1.BaseAPI {
|
|
|
373
379
|
}
|
|
374
380
|
exports.AdminClubsApi = AdminClubsApi;
|
|
375
381
|
/**
|
|
376
|
-
*
|
|
377
|
-
* @export
|
|
378
|
-
*/
|
|
379
|
-
const BookingsApiAxiosParamCreator = function (configuration) {
|
|
380
|
-
return {
|
|
381
|
-
/**
|
|
382
|
-
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
383
|
-
* @summary Créer une réservation
|
|
384
|
-
* @param {CreateBookingRequest} createBookingRequest
|
|
385
|
-
* @param {*} [options] Override http request option.
|
|
386
|
-
* @throws {RequiredError}
|
|
387
|
-
*/
|
|
388
|
-
createBooking: (createBookingRequest_1, ...args_1) => __awaiter(this, [createBookingRequest_1, ...args_1], void 0, function* (createBookingRequest, options = {}) {
|
|
389
|
-
// verify required parameter 'createBookingRequest' is not null or undefined
|
|
390
|
-
(0, common_1.assertParamExists)('createBooking', 'createBookingRequest', createBookingRequest);
|
|
391
|
-
const localVarPath = `/api/bookings`;
|
|
392
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
393
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
394
|
-
let baseOptions;
|
|
395
|
-
if (configuration) {
|
|
396
|
-
baseOptions = configuration.baseOptions;
|
|
397
|
-
}
|
|
398
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
399
|
-
const localVarHeaderParameter = {};
|
|
400
|
-
const localVarQueryParameter = {};
|
|
401
|
-
// authentication bearerAuth required
|
|
402
|
-
// http bearer authentication required
|
|
403
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
404
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
405
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
406
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
407
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
408
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBookingRequest, localVarRequestOptions, configuration);
|
|
409
|
-
return {
|
|
410
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
411
|
-
options: localVarRequestOptions,
|
|
412
|
-
};
|
|
413
|
-
}),
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
|
|
417
|
-
/**
|
|
418
|
-
* BookingsApi - functional programming interface
|
|
419
|
-
* @export
|
|
420
|
-
*/
|
|
421
|
-
const BookingsApiFp = function (configuration) {
|
|
422
|
-
const localVarAxiosParamCreator = (0, exports.BookingsApiAxiosParamCreator)(configuration);
|
|
423
|
-
return {
|
|
424
|
-
/**
|
|
425
|
-
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
426
|
-
* @summary Créer une réservation
|
|
427
|
-
* @param {CreateBookingRequest} createBookingRequest
|
|
428
|
-
* @param {*} [options] Override http request option.
|
|
429
|
-
* @throws {RequiredError}
|
|
430
|
-
*/
|
|
431
|
-
createBooking(createBookingRequest, options) {
|
|
432
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
433
|
-
var _a, _b, _c;
|
|
434
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBooking(createBookingRequest, options);
|
|
435
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
436
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.createBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
437
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
438
|
-
});
|
|
439
|
-
},
|
|
440
|
-
};
|
|
441
|
-
};
|
|
442
|
-
exports.BookingsApiFp = BookingsApiFp;
|
|
443
|
-
/**
|
|
444
|
-
* BookingsApi - factory interface
|
|
445
|
-
* @export
|
|
446
|
-
*/
|
|
447
|
-
const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
448
|
-
const localVarFp = (0, exports.BookingsApiFp)(configuration);
|
|
449
|
-
return {
|
|
450
|
-
/**
|
|
451
|
-
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
452
|
-
* @summary Créer une réservation
|
|
453
|
-
* @param {BookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
454
|
-
* @param {*} [options] Override http request option.
|
|
455
|
-
* @throws {RequiredError}
|
|
456
|
-
*/
|
|
457
|
-
createBooking(requestParameters, options) {
|
|
458
|
-
return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
|
|
459
|
-
},
|
|
460
|
-
};
|
|
461
|
-
};
|
|
462
|
-
exports.BookingsApiFactory = BookingsApiFactory;
|
|
463
|
-
/**
|
|
464
|
-
* BookingsApi - object-oriented interface
|
|
465
|
-
* @export
|
|
466
|
-
* @class BookingsApi
|
|
467
|
-
* @extends {BaseAPI}
|
|
468
|
-
*/
|
|
469
|
-
class BookingsApi extends base_1.BaseAPI {
|
|
470
|
-
/**
|
|
471
|
-
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
472
|
-
* @summary Créer une réservation
|
|
473
|
-
* @param {BookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
474
|
-
* @param {*} [options] Override http request option.
|
|
475
|
-
* @throws {RequiredError}
|
|
476
|
-
* @memberof BookingsApi
|
|
477
|
-
*/
|
|
478
|
-
createBooking(requestParameters, options) {
|
|
479
|
-
return (0, exports.BookingsApiFp)(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
exports.BookingsApi = BookingsApi;
|
|
483
|
-
/**
|
|
484
|
-
* ClubAnalyticsApi - axios parameter creator
|
|
382
|
+
* ManagerClubCourtsApi - axios parameter creator
|
|
485
383
|
* @export
|
|
486
384
|
*/
|
|
487
|
-
const
|
|
385
|
+
const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
488
386
|
return {
|
|
489
387
|
/**
|
|
490
388
|
*
|
|
491
|
-
* @summary
|
|
389
|
+
* @summary Créer un terrain pour un club
|
|
492
390
|
* @param {string} id ID du club
|
|
391
|
+
* @param {CreateCourtRequest} createCourtRequest
|
|
493
392
|
* @param {*} [options] Override http request option.
|
|
494
393
|
* @throws {RequiredError}
|
|
495
394
|
*/
|
|
496
|
-
|
|
395
|
+
createCourtForClub: (id_1, createCourtRequest_1, ...args_1) => __awaiter(this, [id_1, createCourtRequest_1, ...args_1], void 0, function* (id, createCourtRequest, options = {}) {
|
|
497
396
|
// verify required parameter 'id' is not null or undefined
|
|
498
|
-
(0, common_1.assertParamExists)('
|
|
499
|
-
|
|
397
|
+
(0, common_1.assertParamExists)('createCourtForClub', 'id', id);
|
|
398
|
+
// verify required parameter 'createCourtRequest' is not null or undefined
|
|
399
|
+
(0, common_1.assertParamExists)('createCourtForClub', 'createCourtRequest', createCourtRequest);
|
|
400
|
+
const localVarPath = `/api/clubs/{id}/courts`
|
|
500
401
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
501
402
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
502
403
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -504,15 +405,17 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
504
405
|
if (configuration) {
|
|
505
406
|
baseOptions = configuration.baseOptions;
|
|
506
407
|
}
|
|
507
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
408
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
508
409
|
const localVarHeaderParameter = {};
|
|
509
410
|
const localVarQueryParameter = {};
|
|
510
411
|
// authentication bearerAuth required
|
|
511
412
|
// http bearer authentication required
|
|
512
413
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
414
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
513
415
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
514
416
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
515
417
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
418
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCourtRequest, localVarRequestOptions, configuration);
|
|
516
419
|
return {
|
|
517
420
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
518
421
|
options: localVarRequestOptions,
|
|
@@ -520,15 +423,15 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
520
423
|
}),
|
|
521
424
|
/**
|
|
522
425
|
*
|
|
523
|
-
* @summary
|
|
426
|
+
* @summary Récupérer tous les terrains pour un club
|
|
524
427
|
* @param {string} id ID du club
|
|
525
428
|
* @param {*} [options] Override http request option.
|
|
526
429
|
* @throws {RequiredError}
|
|
527
430
|
*/
|
|
528
|
-
|
|
431
|
+
getCourtsByClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
529
432
|
// verify required parameter 'id' is not null or undefined
|
|
530
|
-
(0, common_1.assertParamExists)('
|
|
531
|
-
const localVarPath = `/api/clubs/{id}/
|
|
433
|
+
(0, common_1.assertParamExists)('getCourtsByClub', 'id', id);
|
|
434
|
+
const localVarPath = `/api/clubs/{id}/courts`
|
|
532
435
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
533
436
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
534
437
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -552,268 +455,162 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
552
455
|
}),
|
|
553
456
|
};
|
|
554
457
|
};
|
|
555
|
-
exports.
|
|
458
|
+
exports.ManagerClubCourtsApiAxiosParamCreator = ManagerClubCourtsApiAxiosParamCreator;
|
|
556
459
|
/**
|
|
557
|
-
*
|
|
460
|
+
* ManagerClubCourtsApi - functional programming interface
|
|
558
461
|
* @export
|
|
559
462
|
*/
|
|
560
|
-
const
|
|
561
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
463
|
+
const ManagerClubCourtsApiFp = function (configuration) {
|
|
464
|
+
const localVarAxiosParamCreator = (0, exports.ManagerClubCourtsApiAxiosParamCreator)(configuration);
|
|
562
465
|
return {
|
|
563
466
|
/**
|
|
564
467
|
*
|
|
565
|
-
* @summary
|
|
468
|
+
* @summary Créer un terrain pour un club
|
|
566
469
|
* @param {string} id ID du club
|
|
470
|
+
* @param {CreateCourtRequest} createCourtRequest
|
|
567
471
|
* @param {*} [options] Override http request option.
|
|
568
472
|
* @throws {RequiredError}
|
|
569
473
|
*/
|
|
570
|
-
|
|
474
|
+
createCourtForClub(id, createCourtRequest, options) {
|
|
571
475
|
return __awaiter(this, void 0, void 0, function* () {
|
|
572
476
|
var _a, _b, _c;
|
|
573
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
477
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCourtForClub(id, createCourtRequest, options);
|
|
574
478
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
575
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
479
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubCourtsApi.createCourtForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
576
480
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
577
481
|
});
|
|
578
482
|
},
|
|
579
483
|
/**
|
|
580
484
|
*
|
|
581
|
-
* @summary
|
|
485
|
+
* @summary Récupérer tous les terrains pour un club
|
|
582
486
|
* @param {string} id ID du club
|
|
583
487
|
* @param {*} [options] Override http request option.
|
|
584
488
|
* @throws {RequiredError}
|
|
585
489
|
*/
|
|
586
|
-
|
|
490
|
+
getCourtsByClub(id, options) {
|
|
587
491
|
return __awaiter(this, void 0, void 0, function* () {
|
|
588
492
|
var _a, _b, _c;
|
|
589
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
493
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClub(id, options);
|
|
590
494
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
591
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
495
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubCourtsApi.getCourtsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
592
496
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
593
497
|
});
|
|
594
498
|
},
|
|
595
499
|
};
|
|
596
500
|
};
|
|
597
|
-
exports.
|
|
501
|
+
exports.ManagerClubCourtsApiFp = ManagerClubCourtsApiFp;
|
|
598
502
|
/**
|
|
599
|
-
*
|
|
503
|
+
* ManagerClubCourtsApi - factory interface
|
|
600
504
|
* @export
|
|
601
505
|
*/
|
|
602
|
-
const
|
|
603
|
-
const localVarFp = (0, exports.
|
|
506
|
+
const ManagerClubCourtsApiFactory = function (configuration, basePath, axios) {
|
|
507
|
+
const localVarFp = (0, exports.ManagerClubCourtsApiFp)(configuration);
|
|
604
508
|
return {
|
|
605
509
|
/**
|
|
606
510
|
*
|
|
607
|
-
* @summary
|
|
608
|
-
* @param {
|
|
511
|
+
* @summary Créer un terrain pour un club
|
|
512
|
+
* @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
|
|
609
513
|
* @param {*} [options] Override http request option.
|
|
610
514
|
* @throws {RequiredError}
|
|
611
515
|
*/
|
|
612
|
-
|
|
613
|
-
return localVarFp.
|
|
516
|
+
createCourtForClub(requestParameters, options) {
|
|
517
|
+
return localVarFp.createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(axios, basePath));
|
|
614
518
|
},
|
|
615
519
|
/**
|
|
616
520
|
*
|
|
617
|
-
* @summary
|
|
618
|
-
* @param {
|
|
521
|
+
* @summary Récupérer tous les terrains pour un club
|
|
522
|
+
* @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
|
|
619
523
|
* @param {*} [options] Override http request option.
|
|
620
524
|
* @throws {RequiredError}
|
|
621
525
|
*/
|
|
622
|
-
|
|
623
|
-
return localVarFp.
|
|
526
|
+
getCourtsByClub(requestParameters, options) {
|
|
527
|
+
return localVarFp.getCourtsByClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
624
528
|
},
|
|
625
529
|
};
|
|
626
530
|
};
|
|
627
|
-
exports.
|
|
531
|
+
exports.ManagerClubCourtsApiFactory = ManagerClubCourtsApiFactory;
|
|
628
532
|
/**
|
|
629
|
-
*
|
|
533
|
+
* ManagerClubCourtsApi - object-oriented interface
|
|
630
534
|
* @export
|
|
631
|
-
* @class
|
|
535
|
+
* @class ManagerClubCourtsApi
|
|
632
536
|
* @extends {BaseAPI}
|
|
633
537
|
*/
|
|
634
|
-
class
|
|
538
|
+
class ManagerClubCourtsApi extends base_1.BaseAPI {
|
|
635
539
|
/**
|
|
636
540
|
*
|
|
637
|
-
* @summary
|
|
638
|
-
* @param {
|
|
541
|
+
* @summary Créer un terrain pour un club
|
|
542
|
+
* @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
|
|
639
543
|
* @param {*} [options] Override http request option.
|
|
640
544
|
* @throws {RequiredError}
|
|
641
|
-
* @memberof
|
|
545
|
+
* @memberof ManagerClubCourtsApi
|
|
642
546
|
*/
|
|
643
|
-
|
|
644
|
-
return (0, exports.
|
|
547
|
+
createCourtForClub(requestParameters, options) {
|
|
548
|
+
return (0, exports.ManagerClubCourtsApiFp)(this.configuration).createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(this.axios, this.basePath));
|
|
645
549
|
}
|
|
646
550
|
/**
|
|
647
551
|
*
|
|
648
|
-
* @summary
|
|
649
|
-
* @param {
|
|
552
|
+
* @summary Récupérer tous les terrains pour un club
|
|
553
|
+
* @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
|
|
650
554
|
* @param {*} [options] Override http request option.
|
|
651
555
|
* @throws {RequiredError}
|
|
652
|
-
* @memberof
|
|
556
|
+
* @memberof ManagerClubCourtsApi
|
|
653
557
|
*/
|
|
654
|
-
|
|
655
|
-
return (0, exports.
|
|
558
|
+
getCourtsByClub(requestParameters, options) {
|
|
559
|
+
return (0, exports.ManagerClubCourtsApiFp)(this.configuration).getCourtsByClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
656
560
|
}
|
|
657
561
|
}
|
|
658
|
-
exports.
|
|
562
|
+
exports.ManagerClubCourtsApi = ManagerClubCourtsApi;
|
|
659
563
|
/**
|
|
660
|
-
*
|
|
564
|
+
* ManagerClubRolesApi - axios parameter creator
|
|
661
565
|
* @export
|
|
662
566
|
*/
|
|
663
|
-
const
|
|
567
|
+
const ManagerClubRolesApiAxiosParamCreator = function (configuration) {
|
|
664
568
|
return {
|
|
665
569
|
/**
|
|
666
570
|
*
|
|
667
|
-
* @summary
|
|
668
|
-
* @param {
|
|
571
|
+
* @summary Créer un nouveau rôle de club
|
|
572
|
+
* @param {CreateClubRoleRequestBody} createClubRoleRequestBody
|
|
669
573
|
* @param {*} [options] Override http request option.
|
|
670
574
|
* @throws {RequiredError}
|
|
671
575
|
*/
|
|
672
|
-
|
|
673
|
-
// verify required parameter '
|
|
674
|
-
(0, common_1.assertParamExists)('
|
|
675
|
-
const localVarPath = `/api/
|
|
676
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
576
|
+
createClubRole: (createClubRoleRequestBody_1, ...args_1) => __awaiter(this, [createClubRoleRequestBody_1, ...args_1], void 0, function* (createClubRoleRequestBody, options = {}) {
|
|
577
|
+
// verify required parameter 'createClubRoleRequestBody' is not null or undefined
|
|
578
|
+
(0, common_1.assertParamExists)('createClubRole', 'createClubRoleRequestBody', createClubRoleRequestBody);
|
|
579
|
+
const localVarPath = `/api/club-roles`;
|
|
677
580
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
678
581
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
679
582
|
let baseOptions;
|
|
680
583
|
if (configuration) {
|
|
681
584
|
baseOptions = configuration.baseOptions;
|
|
682
585
|
}
|
|
683
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
586
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
684
587
|
const localVarHeaderParameter = {};
|
|
685
588
|
const localVarQueryParameter = {};
|
|
686
589
|
// authentication bearerAuth required
|
|
687
590
|
// http bearer authentication required
|
|
688
591
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
592
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
689
593
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
690
594
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
691
595
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
596
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubRoleRequestBody, localVarRequestOptions, configuration);
|
|
692
597
|
return {
|
|
693
598
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
694
599
|
options: localVarRequestOptions,
|
|
695
600
|
};
|
|
696
601
|
}),
|
|
697
|
-
};
|
|
698
|
-
};
|
|
699
|
-
exports.ClubBookingsApiAxiosParamCreator = ClubBookingsApiAxiosParamCreator;
|
|
700
|
-
/**
|
|
701
|
-
* ClubBookingsApi - functional programming interface
|
|
702
|
-
* @export
|
|
703
|
-
*/
|
|
704
|
-
const ClubBookingsApiFp = function (configuration) {
|
|
705
|
-
const localVarAxiosParamCreator = (0, exports.ClubBookingsApiAxiosParamCreator)(configuration);
|
|
706
|
-
return {
|
|
707
|
-
/**
|
|
708
|
-
*
|
|
709
|
-
* @summary Get the ten next bookings for the club
|
|
710
|
-
* @param {string} id ID du club
|
|
711
|
-
* @param {*} [options] Override http request option.
|
|
712
|
-
* @throws {RequiredError}
|
|
713
|
-
*/
|
|
714
|
-
getTenNextBookings(id, options) {
|
|
715
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
716
|
-
var _a, _b, _c;
|
|
717
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTenNextBookings(id, options);
|
|
718
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
719
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubBookingsApi.getTenNextBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
720
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
721
|
-
});
|
|
722
|
-
},
|
|
723
|
-
};
|
|
724
|
-
};
|
|
725
|
-
exports.ClubBookingsApiFp = ClubBookingsApiFp;
|
|
726
|
-
/**
|
|
727
|
-
* ClubBookingsApi - factory interface
|
|
728
|
-
* @export
|
|
729
|
-
*/
|
|
730
|
-
const ClubBookingsApiFactory = function (configuration, basePath, axios) {
|
|
731
|
-
const localVarFp = (0, exports.ClubBookingsApiFp)(configuration);
|
|
732
|
-
return {
|
|
733
|
-
/**
|
|
734
|
-
*
|
|
735
|
-
* @summary Get the ten next bookings for the club
|
|
736
|
-
* @param {ClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
|
|
737
|
-
* @param {*} [options] Override http request option.
|
|
738
|
-
* @throws {RequiredError}
|
|
739
|
-
*/
|
|
740
|
-
getTenNextBookings(requestParameters, options) {
|
|
741
|
-
return localVarFp.getTenNextBookings(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
742
|
-
},
|
|
743
|
-
};
|
|
744
|
-
};
|
|
745
|
-
exports.ClubBookingsApiFactory = ClubBookingsApiFactory;
|
|
746
|
-
/**
|
|
747
|
-
* ClubBookingsApi - object-oriented interface
|
|
748
|
-
* @export
|
|
749
|
-
* @class ClubBookingsApi
|
|
750
|
-
* @extends {BaseAPI}
|
|
751
|
-
*/
|
|
752
|
-
class ClubBookingsApi extends base_1.BaseAPI {
|
|
753
|
-
/**
|
|
754
|
-
*
|
|
755
|
-
* @summary Get the ten next bookings for the club
|
|
756
|
-
* @param {ClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
|
|
757
|
-
* @param {*} [options] Override http request option.
|
|
758
|
-
* @throws {RequiredError}
|
|
759
|
-
* @memberof ClubBookingsApi
|
|
760
|
-
*/
|
|
761
|
-
getTenNextBookings(requestParameters, options) {
|
|
762
|
-
return (0, exports.ClubBookingsApiFp)(this.configuration).getTenNextBookings(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
exports.ClubBookingsApi = ClubBookingsApi;
|
|
766
|
-
/**
|
|
767
|
-
* ClubRolesApi - axios parameter creator
|
|
768
|
-
* @export
|
|
769
|
-
*/
|
|
770
|
-
const ClubRolesApiAxiosParamCreator = function (configuration) {
|
|
771
|
-
return {
|
|
772
602
|
/**
|
|
773
603
|
*
|
|
774
|
-
* @summary
|
|
775
|
-
* @param {
|
|
604
|
+
* @summary Supprimer un rôle de club
|
|
605
|
+
* @param {string} id ID du rôle de club
|
|
776
606
|
* @param {*} [options] Override http request option.
|
|
777
607
|
* @throws {RequiredError}
|
|
778
608
|
*/
|
|
779
|
-
|
|
780
|
-
// verify required parameter '
|
|
781
|
-
(0, common_1.assertParamExists)('
|
|
782
|
-
const localVarPath = `/api/club-roles
|
|
783
|
-
|
|
784
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
785
|
-
let baseOptions;
|
|
786
|
-
if (configuration) {
|
|
787
|
-
baseOptions = configuration.baseOptions;
|
|
788
|
-
}
|
|
789
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
790
|
-
const localVarHeaderParameter = {};
|
|
791
|
-
const localVarQueryParameter = {};
|
|
792
|
-
// authentication bearerAuth required
|
|
793
|
-
// http bearer authentication required
|
|
794
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
795
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
796
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
797
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
798
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
799
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubRoleRequestBody, localVarRequestOptions, configuration);
|
|
800
|
-
return {
|
|
801
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
802
|
-
options: localVarRequestOptions,
|
|
803
|
-
};
|
|
804
|
-
}),
|
|
805
|
-
/**
|
|
806
|
-
*
|
|
807
|
-
* @summary Supprimer un rôle de club
|
|
808
|
-
* @param {string} id ID du rôle de club
|
|
809
|
-
* @param {*} [options] Override http request option.
|
|
810
|
-
* @throws {RequiredError}
|
|
811
|
-
*/
|
|
812
|
-
deleteClubRole: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
813
|
-
// verify required parameter 'id' is not null or undefined
|
|
814
|
-
(0, common_1.assertParamExists)('deleteClubRole', 'id', id);
|
|
815
|
-
const localVarPath = `/api/club-roles/{id}`
|
|
816
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
609
|
+
deleteClubRole: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
610
|
+
// verify required parameter 'id' is not null or undefined
|
|
611
|
+
(0, common_1.assertParamExists)('deleteClubRole', 'id', id);
|
|
612
|
+
const localVarPath = `/api/club-roles/{id}`
|
|
613
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
817
614
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
818
615
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
819
616
|
let baseOptions;
|
|
@@ -933,13 +730,13 @@ const ClubRolesApiAxiosParamCreator = function (configuration) {
|
|
|
933
730
|
}),
|
|
934
731
|
};
|
|
935
732
|
};
|
|
936
|
-
exports.
|
|
733
|
+
exports.ManagerClubRolesApiAxiosParamCreator = ManagerClubRolesApiAxiosParamCreator;
|
|
937
734
|
/**
|
|
938
|
-
*
|
|
735
|
+
* ManagerClubRolesApi - functional programming interface
|
|
939
736
|
* @export
|
|
940
737
|
*/
|
|
941
|
-
const
|
|
942
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
738
|
+
const ManagerClubRolesApiFp = function (configuration) {
|
|
739
|
+
const localVarAxiosParamCreator = (0, exports.ManagerClubRolesApiAxiosParamCreator)(configuration);
|
|
943
740
|
return {
|
|
944
741
|
/**
|
|
945
742
|
*
|
|
@@ -953,7 +750,7 @@ const ClubRolesApiFp = function (configuration) {
|
|
|
953
750
|
var _a, _b, _c;
|
|
954
751
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubRole(createClubRoleRequestBody, options);
|
|
955
752
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
956
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
753
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubRolesApi.createClubRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
957
754
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
958
755
|
});
|
|
959
756
|
},
|
|
@@ -969,7 +766,7 @@ const ClubRolesApiFp = function (configuration) {
|
|
|
969
766
|
var _a, _b, _c;
|
|
970
767
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubRole(id, options);
|
|
971
768
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
972
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
769
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubRolesApi.deleteClubRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
973
770
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
974
771
|
});
|
|
975
772
|
},
|
|
@@ -984,7 +781,7 @@ const ClubRolesApiFp = function (configuration) {
|
|
|
984
781
|
var _a, _b, _c;
|
|
985
782
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubRoles(options);
|
|
986
783
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
987
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
784
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubRolesApi.getAllClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
988
785
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
989
786
|
});
|
|
990
787
|
},
|
|
@@ -1000,7 +797,7 @@ const ClubRolesApiFp = function (configuration) {
|
|
|
1000
797
|
var _a, _b, _c;
|
|
1001
798
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoleById(id, options);
|
|
1002
799
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1003
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
800
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubRolesApi.getClubRoleById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1004
801
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1005
802
|
});
|
|
1006
803
|
},
|
|
@@ -1017,24 +814,24 @@ const ClubRolesApiFp = function (configuration) {
|
|
|
1017
814
|
var _a, _b, _c;
|
|
1018
815
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubRole(id, updateClubRoleRequestBody, options);
|
|
1019
816
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1020
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
817
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubRolesApi.updateClubRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1021
818
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1022
819
|
});
|
|
1023
820
|
},
|
|
1024
821
|
};
|
|
1025
822
|
};
|
|
1026
|
-
exports.
|
|
823
|
+
exports.ManagerClubRolesApiFp = ManagerClubRolesApiFp;
|
|
1027
824
|
/**
|
|
1028
|
-
*
|
|
825
|
+
* ManagerClubRolesApi - factory interface
|
|
1029
826
|
* @export
|
|
1030
827
|
*/
|
|
1031
|
-
const
|
|
1032
|
-
const localVarFp = (0, exports.
|
|
828
|
+
const ManagerClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
829
|
+
const localVarFp = (0, exports.ManagerClubRolesApiFp)(configuration);
|
|
1033
830
|
return {
|
|
1034
831
|
/**
|
|
1035
832
|
*
|
|
1036
833
|
* @summary Créer un nouveau rôle de club
|
|
1037
|
-
* @param {
|
|
834
|
+
* @param {ManagerClubRolesApiCreateClubRoleRequest} requestParameters Request parameters.
|
|
1038
835
|
* @param {*} [options] Override http request option.
|
|
1039
836
|
* @throws {RequiredError}
|
|
1040
837
|
*/
|
|
@@ -1044,7 +841,7 @@ const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1044
841
|
/**
|
|
1045
842
|
*
|
|
1046
843
|
* @summary Supprimer un rôle de club
|
|
1047
|
-
* @param {
|
|
844
|
+
* @param {ManagerClubRolesApiDeleteClubRoleRequest} requestParameters Request parameters.
|
|
1048
845
|
* @param {*} [options] Override http request option.
|
|
1049
846
|
* @throws {RequiredError}
|
|
1050
847
|
*/
|
|
@@ -1063,7 +860,7 @@ const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1063
860
|
/**
|
|
1064
861
|
*
|
|
1065
862
|
* @summary Récupérer un rôle de club par son ID
|
|
1066
|
-
* @param {
|
|
863
|
+
* @param {ManagerClubRolesApiGetClubRoleByIdRequest} requestParameters Request parameters.
|
|
1067
864
|
* @param {*} [options] Override http request option.
|
|
1068
865
|
* @throws {RequiredError}
|
|
1069
866
|
*/
|
|
@@ -1073,7 +870,7 @@ const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1073
870
|
/**
|
|
1074
871
|
*
|
|
1075
872
|
* @summary Mettre à jour un rôle de club
|
|
1076
|
-
* @param {
|
|
873
|
+
* @param {ManagerClubRolesApiUpdateClubRoleRequest} requestParameters Request parameters.
|
|
1077
874
|
* @param {*} [options] Override http request option.
|
|
1078
875
|
* @throws {RequiredError}
|
|
1079
876
|
*/
|
|
@@ -1082,101 +879,101 @@ const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1082
879
|
},
|
|
1083
880
|
};
|
|
1084
881
|
};
|
|
1085
|
-
exports.
|
|
882
|
+
exports.ManagerClubRolesApiFactory = ManagerClubRolesApiFactory;
|
|
1086
883
|
/**
|
|
1087
|
-
*
|
|
884
|
+
* ManagerClubRolesApi - object-oriented interface
|
|
1088
885
|
* @export
|
|
1089
|
-
* @class
|
|
886
|
+
* @class ManagerClubRolesApi
|
|
1090
887
|
* @extends {BaseAPI}
|
|
1091
888
|
*/
|
|
1092
|
-
class
|
|
889
|
+
class ManagerClubRolesApi extends base_1.BaseAPI {
|
|
1093
890
|
/**
|
|
1094
891
|
*
|
|
1095
892
|
* @summary Créer un nouveau rôle de club
|
|
1096
|
-
* @param {
|
|
893
|
+
* @param {ManagerClubRolesApiCreateClubRoleRequest} requestParameters Request parameters.
|
|
1097
894
|
* @param {*} [options] Override http request option.
|
|
1098
895
|
* @throws {RequiredError}
|
|
1099
|
-
* @memberof
|
|
896
|
+
* @memberof ManagerClubRolesApi
|
|
1100
897
|
*/
|
|
1101
898
|
createClubRole(requestParameters, options) {
|
|
1102
|
-
return (0, exports.
|
|
899
|
+
return (0, exports.ManagerClubRolesApiFp)(this.configuration).createClubRole(requestParameters.createClubRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1103
900
|
}
|
|
1104
901
|
/**
|
|
1105
902
|
*
|
|
1106
903
|
* @summary Supprimer un rôle de club
|
|
1107
|
-
* @param {
|
|
904
|
+
* @param {ManagerClubRolesApiDeleteClubRoleRequest} requestParameters Request parameters.
|
|
1108
905
|
* @param {*} [options] Override http request option.
|
|
1109
906
|
* @throws {RequiredError}
|
|
1110
|
-
* @memberof
|
|
907
|
+
* @memberof ManagerClubRolesApi
|
|
1111
908
|
*/
|
|
1112
909
|
deleteClubRole(requestParameters, options) {
|
|
1113
|
-
return (0, exports.
|
|
910
|
+
return (0, exports.ManagerClubRolesApiFp)(this.configuration).deleteClubRole(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1114
911
|
}
|
|
1115
912
|
/**
|
|
1116
913
|
*
|
|
1117
914
|
* @summary Récupérer tous les rôles de clubs
|
|
1118
915
|
* @param {*} [options] Override http request option.
|
|
1119
916
|
* @throws {RequiredError}
|
|
1120
|
-
* @memberof
|
|
917
|
+
* @memberof ManagerClubRolesApi
|
|
1121
918
|
*/
|
|
1122
919
|
getAllClubRoles(options) {
|
|
1123
|
-
return (0, exports.
|
|
920
|
+
return (0, exports.ManagerClubRolesApiFp)(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
1124
921
|
}
|
|
1125
922
|
/**
|
|
1126
923
|
*
|
|
1127
924
|
* @summary Récupérer un rôle de club par son ID
|
|
1128
|
-
* @param {
|
|
925
|
+
* @param {ManagerClubRolesApiGetClubRoleByIdRequest} requestParameters Request parameters.
|
|
1129
926
|
* @param {*} [options] Override http request option.
|
|
1130
927
|
* @throws {RequiredError}
|
|
1131
|
-
* @memberof
|
|
928
|
+
* @memberof ManagerClubRolesApi
|
|
1132
929
|
*/
|
|
1133
930
|
getClubRoleById(requestParameters, options) {
|
|
1134
|
-
return (0, exports.
|
|
931
|
+
return (0, exports.ManagerClubRolesApiFp)(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1135
932
|
}
|
|
1136
933
|
/**
|
|
1137
934
|
*
|
|
1138
935
|
* @summary Mettre à jour un rôle de club
|
|
1139
|
-
* @param {
|
|
936
|
+
* @param {ManagerClubRolesApiUpdateClubRoleRequest} requestParameters Request parameters.
|
|
1140
937
|
* @param {*} [options] Override http request option.
|
|
1141
938
|
* @throws {RequiredError}
|
|
1142
|
-
* @memberof
|
|
939
|
+
* @memberof ManagerClubRolesApi
|
|
1143
940
|
*/
|
|
1144
941
|
updateClubRole(requestParameters, options) {
|
|
1145
|
-
return (0, exports.
|
|
942
|
+
return (0, exports.ManagerClubRolesApiFp)(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1146
943
|
}
|
|
1147
944
|
}
|
|
1148
|
-
exports.
|
|
945
|
+
exports.ManagerClubRolesApi = ManagerClubRolesApi;
|
|
1149
946
|
/**
|
|
1150
|
-
*
|
|
947
|
+
* ManagerClubSlotsApi - axios parameter creator
|
|
1151
948
|
* @export
|
|
1152
949
|
*/
|
|
1153
|
-
const
|
|
950
|
+
const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
1154
951
|
return {
|
|
1155
952
|
/**
|
|
1156
953
|
*
|
|
1157
|
-
* @summary
|
|
954
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1158
955
|
* @param {string} id ID du club
|
|
1159
|
-
* @param {string}
|
|
1160
|
-
* @param {string}
|
|
1161
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
956
|
+
* @param {string} start Date de début (format ISO)
|
|
957
|
+
* @param {string} end Date de fin (format ISO)
|
|
1162
958
|
* @param {*} [options] Override http request option.
|
|
1163
959
|
* @throws {RequiredError}
|
|
1164
960
|
*/
|
|
1165
|
-
|
|
961
|
+
deleteSlotsByClubInRange: (id_1, start_1, end_1, ...args_1) => __awaiter(this, [id_1, start_1, end_1, ...args_1], void 0, function* (id, start, end, options = {}) {
|
|
1166
962
|
// verify required parameter 'id' is not null or undefined
|
|
1167
|
-
(0, common_1.assertParamExists)('
|
|
1168
|
-
// verify required parameter '
|
|
1169
|
-
(0, common_1.assertParamExists)('
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
963
|
+
(0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'id', id);
|
|
964
|
+
// verify required parameter 'start' is not null or undefined
|
|
965
|
+
(0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'start', start);
|
|
966
|
+
// verify required parameter 'end' is not null or undefined
|
|
967
|
+
(0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'end', end);
|
|
968
|
+
const localVarPath = `/api/clubs/{id}/slots`
|
|
969
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1173
970
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1174
971
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1175
972
|
let baseOptions;
|
|
1176
973
|
if (configuration) {
|
|
1177
974
|
baseOptions = configuration.baseOptions;
|
|
1178
975
|
}
|
|
1179
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
976
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1180
977
|
const localVarHeaderParameter = {};
|
|
1181
978
|
const localVarQueryParameter = {};
|
|
1182
979
|
// authentication bearerAuth required
|
|
@@ -1202,24 +999,18 @@ const ClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
1202
999
|
}),
|
|
1203
1000
|
/**
|
|
1204
1001
|
*
|
|
1205
|
-
* @summary
|
|
1002
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1206
1003
|
* @param {string} id ID du club
|
|
1207
|
-
* @param {string}
|
|
1208
|
-
* @param {string}
|
|
1004
|
+
* @param {string} [start] Date de début (format ISO)
|
|
1005
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
1209
1006
|
* @param {*} [options] Override http request option.
|
|
1210
1007
|
* @throws {RequiredError}
|
|
1211
1008
|
*/
|
|
1212
|
-
|
|
1009
|
+
getSlotsByClub: (id_1, start_1, end_1, ...args_1) => __awaiter(this, [id_1, start_1, end_1, ...args_1], void 0, function* (id, start, end, options = {}) {
|
|
1213
1010
|
// verify required parameter 'id' is not null or undefined
|
|
1214
|
-
(0, common_1.assertParamExists)('
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
// verify required parameter 'day' is not null or undefined
|
|
1218
|
-
(0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'day', day);
|
|
1219
|
-
const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots/{day}`
|
|
1220
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
1221
|
-
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)))
|
|
1222
|
-
.replace(`{${"day"}}`, encodeURIComponent(String(day)));
|
|
1011
|
+
(0, common_1.assertParamExists)('getSlotsByClub', 'id', id);
|
|
1012
|
+
const localVarPath = `/api/clubs/{id}/slots`
|
|
1013
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1223
1014
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1224
1015
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1225
1016
|
let baseOptions;
|
|
@@ -1232,6 +1023,16 @@ const ClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
1232
1023
|
// authentication bearerAuth required
|
|
1233
1024
|
// http bearer authentication required
|
|
1234
1025
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1026
|
+
if (start !== undefined) {
|
|
1027
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
1028
|
+
start.toISOString() :
|
|
1029
|
+
start;
|
|
1030
|
+
}
|
|
1031
|
+
if (end !== undefined) {
|
|
1032
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
1033
|
+
end.toISOString() :
|
|
1034
|
+
end;
|
|
1035
|
+
}
|
|
1235
1036
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1236
1037
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1237
1038
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1242,120 +1043,119 @@ const ClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
1242
1043
|
}),
|
|
1243
1044
|
};
|
|
1244
1045
|
};
|
|
1245
|
-
exports.
|
|
1046
|
+
exports.ManagerClubSlotsApiAxiosParamCreator = ManagerClubSlotsApiAxiosParamCreator;
|
|
1246
1047
|
/**
|
|
1247
|
-
*
|
|
1048
|
+
* ManagerClubSlotsApi - functional programming interface
|
|
1248
1049
|
* @export
|
|
1249
1050
|
*/
|
|
1250
|
-
const
|
|
1251
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
1051
|
+
const ManagerClubSlotsApiFp = function (configuration) {
|
|
1052
|
+
const localVarAxiosParamCreator = (0, exports.ManagerClubSlotsApiAxiosParamCreator)(configuration);
|
|
1252
1053
|
return {
|
|
1253
1054
|
/**
|
|
1254
1055
|
*
|
|
1255
|
-
* @summary
|
|
1056
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1256
1057
|
* @param {string} id ID du club
|
|
1257
|
-
* @param {string}
|
|
1258
|
-
* @param {string}
|
|
1259
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
1058
|
+
* @param {string} start Date de début (format ISO)
|
|
1059
|
+
* @param {string} end Date de fin (format ISO)
|
|
1260
1060
|
* @param {*} [options] Override http request option.
|
|
1261
1061
|
* @throws {RequiredError}
|
|
1262
1062
|
*/
|
|
1263
|
-
|
|
1063
|
+
deleteSlotsByClubInRange(id, start, end, options) {
|
|
1264
1064
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1265
1065
|
var _a, _b, _c;
|
|
1266
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1066
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRange(id, start, end, options);
|
|
1267
1067
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1268
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1068
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSlotsApi.deleteSlotsByClubInRange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1269
1069
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1270
1070
|
});
|
|
1271
1071
|
},
|
|
1272
1072
|
/**
|
|
1273
1073
|
*
|
|
1274
|
-
* @summary
|
|
1074
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1275
1075
|
* @param {string} id ID du club
|
|
1276
|
-
* @param {string}
|
|
1277
|
-
* @param {string}
|
|
1076
|
+
* @param {string} [start] Date de début (format ISO)
|
|
1077
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
1278
1078
|
* @param {*} [options] Override http request option.
|
|
1279
1079
|
* @throws {RequiredError}
|
|
1280
1080
|
*/
|
|
1281
|
-
|
|
1081
|
+
getSlotsByClub(id, start, end, options) {
|
|
1282
1082
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1283
1083
|
var _a, _b, _c;
|
|
1284
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1084
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClub(id, start, end, options);
|
|
1285
1085
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1286
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1086
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSlotsApi.getSlotsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1287
1087
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1288
1088
|
});
|
|
1289
1089
|
},
|
|
1290
1090
|
};
|
|
1291
1091
|
};
|
|
1292
|
-
exports.
|
|
1092
|
+
exports.ManagerClubSlotsApiFp = ManagerClubSlotsApiFp;
|
|
1293
1093
|
/**
|
|
1294
|
-
*
|
|
1094
|
+
* ManagerClubSlotsApi - factory interface
|
|
1295
1095
|
* @export
|
|
1296
1096
|
*/
|
|
1297
|
-
const
|
|
1298
|
-
const localVarFp = (0, exports.
|
|
1097
|
+
const ManagerClubSlotsApiFactory = function (configuration, basePath, axios) {
|
|
1098
|
+
const localVarFp = (0, exports.ManagerClubSlotsApiFp)(configuration);
|
|
1299
1099
|
return {
|
|
1300
1100
|
/**
|
|
1301
1101
|
*
|
|
1302
|
-
* @summary
|
|
1303
|
-
* @param {
|
|
1102
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1103
|
+
* @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
|
|
1304
1104
|
* @param {*} [options] Override http request option.
|
|
1305
1105
|
* @throws {RequiredError}
|
|
1306
1106
|
*/
|
|
1307
|
-
|
|
1308
|
-
return localVarFp.
|
|
1107
|
+
deleteSlotsByClubInRange(requestParameters, options) {
|
|
1108
|
+
return localVarFp.deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
1309
1109
|
},
|
|
1310
1110
|
/**
|
|
1311
1111
|
*
|
|
1312
|
-
* @summary
|
|
1313
|
-
* @param {
|
|
1112
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1113
|
+
* @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
|
|
1314
1114
|
* @param {*} [options] Override http request option.
|
|
1315
1115
|
* @throws {RequiredError}
|
|
1316
1116
|
*/
|
|
1317
|
-
|
|
1318
|
-
return localVarFp.
|
|
1117
|
+
getSlotsByClub(requestParameters, options) {
|
|
1118
|
+
return localVarFp.getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
1319
1119
|
},
|
|
1320
1120
|
};
|
|
1321
1121
|
};
|
|
1322
|
-
exports.
|
|
1122
|
+
exports.ManagerClubSlotsApiFactory = ManagerClubSlotsApiFactory;
|
|
1323
1123
|
/**
|
|
1324
|
-
*
|
|
1124
|
+
* ManagerClubSlotsApi - object-oriented interface
|
|
1325
1125
|
* @export
|
|
1326
|
-
* @class
|
|
1126
|
+
* @class ManagerClubSlotsApi
|
|
1327
1127
|
* @extends {BaseAPI}
|
|
1328
1128
|
*/
|
|
1329
|
-
class
|
|
1129
|
+
class ManagerClubSlotsApi extends base_1.BaseAPI {
|
|
1330
1130
|
/**
|
|
1331
1131
|
*
|
|
1332
|
-
* @summary
|
|
1333
|
-
* @param {
|
|
1132
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1133
|
+
* @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
|
|
1334
1134
|
* @param {*} [options] Override http request option.
|
|
1335
1135
|
* @throws {RequiredError}
|
|
1336
|
-
* @memberof
|
|
1136
|
+
* @memberof ManagerClubSlotsApi
|
|
1337
1137
|
*/
|
|
1338
|
-
|
|
1339
|
-
return (0, exports.
|
|
1138
|
+
deleteSlotsByClubInRange(requestParameters, options) {
|
|
1139
|
+
return (0, exports.ManagerClubSlotsApiFp)(this.configuration).deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
1340
1140
|
}
|
|
1341
1141
|
/**
|
|
1342
1142
|
*
|
|
1343
|
-
* @summary
|
|
1344
|
-
* @param {
|
|
1143
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1144
|
+
* @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
|
|
1345
1145
|
* @param {*} [options] Override http request option.
|
|
1346
1146
|
* @throws {RequiredError}
|
|
1347
|
-
* @memberof
|
|
1147
|
+
* @memberof ManagerClubSlotsApi
|
|
1348
1148
|
*/
|
|
1349
|
-
|
|
1350
|
-
return (0, exports.
|
|
1149
|
+
getSlotsByClub(requestParameters, options) {
|
|
1150
|
+
return (0, exports.ManagerClubSlotsApiFp)(this.configuration).getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
1351
1151
|
}
|
|
1352
1152
|
}
|
|
1353
|
-
exports.
|
|
1153
|
+
exports.ManagerClubSlotsApi = ManagerClubSlotsApi;
|
|
1354
1154
|
/**
|
|
1355
|
-
*
|
|
1155
|
+
* ManagerClubSubscriptionsApi - axios parameter creator
|
|
1356
1156
|
* @export
|
|
1357
1157
|
*/
|
|
1358
|
-
const
|
|
1158
|
+
const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
1359
1159
|
return {
|
|
1360
1160
|
/**
|
|
1361
1161
|
*
|
|
@@ -1622,13 +1422,13 @@ const ClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
1622
1422
|
}),
|
|
1623
1423
|
};
|
|
1624
1424
|
};
|
|
1625
|
-
exports.
|
|
1425
|
+
exports.ManagerClubSubscriptionsApiAxiosParamCreator = ManagerClubSubscriptionsApiAxiosParamCreator;
|
|
1626
1426
|
/**
|
|
1627
|
-
*
|
|
1427
|
+
* ManagerClubSubscriptionsApi - functional programming interface
|
|
1628
1428
|
* @export
|
|
1629
1429
|
*/
|
|
1630
|
-
const
|
|
1631
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
1430
|
+
const ManagerClubSubscriptionsApiFp = function (configuration) {
|
|
1431
|
+
const localVarAxiosParamCreator = (0, exports.ManagerClubSubscriptionsApiAxiosParamCreator)(configuration);
|
|
1632
1432
|
return {
|
|
1633
1433
|
/**
|
|
1634
1434
|
*
|
|
@@ -1643,7 +1443,7 @@ const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1643
1443
|
var _a, _b, _c;
|
|
1644
1444
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlan(id, priceId, options);
|
|
1645
1445
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1646
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1446
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.archivePriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1647
1447
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1648
1448
|
});
|
|
1649
1449
|
},
|
|
@@ -1661,7 +1461,7 @@ const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1661
1461
|
var _a, _b, _c;
|
|
1662
1462
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlan(id, productId, createPriceRequest, options);
|
|
1663
1463
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1664
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1464
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.createPriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1665
1465
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1666
1466
|
});
|
|
1667
1467
|
},
|
|
@@ -1678,7 +1478,7 @@ const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1678
1478
|
var _a, _b, _c;
|
|
1679
1479
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(id, createSubscriptionPlanRequest, options);
|
|
1680
1480
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1681
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1481
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.createSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1682
1482
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1683
1483
|
});
|
|
1684
1484
|
},
|
|
@@ -1695,7 +1495,7 @@ const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1695
1495
|
var _a, _b, _c;
|
|
1696
1496
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClub(id, productId, options);
|
|
1697
1497
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1698
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1498
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.deleteSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1699
1499
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1700
1500
|
});
|
|
1701
1501
|
},
|
|
@@ -1712,7 +1512,7 @@ const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1712
1512
|
var _a, _b, _c;
|
|
1713
1513
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClub(id, productId, options);
|
|
1714
1514
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1715
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1515
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.restoreSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1716
1516
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1717
1517
|
});
|
|
1718
1518
|
},
|
|
@@ -1729,7 +1529,7 @@ const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1729
1529
|
var _a, _b, _c;
|
|
1730
1530
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClub(id, priceId, options);
|
|
1731
1531
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1732
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1532
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.restoreSubscriptionPriceForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1733
1533
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1734
1534
|
});
|
|
1735
1535
|
},
|
|
@@ -1747,24 +1547,24 @@ const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1747
1547
|
var _a, _b, _c;
|
|
1748
1548
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClub(id, priceId, updateSubscriptionPlanRequest, options);
|
|
1749
1549
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1750
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1550
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.updateSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1751
1551
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1752
1552
|
});
|
|
1753
1553
|
},
|
|
1754
1554
|
};
|
|
1755
1555
|
};
|
|
1756
|
-
exports.
|
|
1556
|
+
exports.ManagerClubSubscriptionsApiFp = ManagerClubSubscriptionsApiFp;
|
|
1757
1557
|
/**
|
|
1758
|
-
*
|
|
1558
|
+
* ManagerClubSubscriptionsApi - factory interface
|
|
1759
1559
|
* @export
|
|
1760
1560
|
*/
|
|
1761
|
-
const
|
|
1762
|
-
const localVarFp = (0, exports.
|
|
1561
|
+
const ManagerClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
1562
|
+
const localVarFp = (0, exports.ManagerClubSubscriptionsApiFp)(configuration);
|
|
1763
1563
|
return {
|
|
1764
1564
|
/**
|
|
1765
1565
|
*
|
|
1766
1566
|
* @summary Archiver un prix
|
|
1767
|
-
* @param {
|
|
1567
|
+
* @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1768
1568
|
* @param {*} [options] Override http request option.
|
|
1769
1569
|
* @throws {RequiredError}
|
|
1770
1570
|
*/
|
|
@@ -1774,7 +1574,7 @@ const ClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1774
1574
|
/**
|
|
1775
1575
|
*
|
|
1776
1576
|
* @summary Créer un nouveau prix pour un plan
|
|
1777
|
-
* @param {
|
|
1577
|
+
* @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1778
1578
|
* @param {*} [options] Override http request option.
|
|
1779
1579
|
* @throws {RequiredError}
|
|
1780
1580
|
*/
|
|
@@ -1784,7 +1584,7 @@ const ClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1784
1584
|
/**
|
|
1785
1585
|
*
|
|
1786
1586
|
* @summary Créer un plan d\'abonnement pour un club
|
|
1787
|
-
* @param {
|
|
1587
|
+
* @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1788
1588
|
* @param {*} [options] Override http request option.
|
|
1789
1589
|
* @throws {RequiredError}
|
|
1790
1590
|
*/
|
|
@@ -1794,7 +1594,7 @@ const ClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1794
1594
|
/**
|
|
1795
1595
|
*
|
|
1796
1596
|
* @summary Supprimer un plan d\'abonnement pour un club
|
|
1797
|
-
* @param {
|
|
1597
|
+
* @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1798
1598
|
* @param {*} [options] Override http request option.
|
|
1799
1599
|
* @throws {RequiredError}
|
|
1800
1600
|
*/
|
|
@@ -1804,7 +1604,7 @@ const ClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1804
1604
|
/**
|
|
1805
1605
|
*
|
|
1806
1606
|
* @summary Réactiver un plan d\'abonnement
|
|
1807
|
-
* @param {
|
|
1607
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1808
1608
|
* @param {*} [options] Override http request option.
|
|
1809
1609
|
* @throws {RequiredError}
|
|
1810
1610
|
*/
|
|
@@ -1814,7 +1614,7 @@ const ClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1814
1614
|
/**
|
|
1815
1615
|
*
|
|
1816
1616
|
* @summary Réactiver un prix
|
|
1817
|
-
* @param {
|
|
1617
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
|
|
1818
1618
|
* @param {*} [options] Override http request option.
|
|
1819
1619
|
* @throws {RequiredError}
|
|
1820
1620
|
*/
|
|
@@ -1824,7 +1624,7 @@ const ClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1824
1624
|
/**
|
|
1825
1625
|
*
|
|
1826
1626
|
* @summary Mettre à jour un plan d\'abonnement
|
|
1827
|
-
* @param {
|
|
1627
|
+
* @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1828
1628
|
* @param {*} [options] Override http request option.
|
|
1829
1629
|
* @throws {RequiredError}
|
|
1830
1630
|
*/
|
|
@@ -1833,110 +1633,113 @@ const ClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1833
1633
|
},
|
|
1834
1634
|
};
|
|
1835
1635
|
};
|
|
1836
|
-
exports.
|
|
1636
|
+
exports.ManagerClubSubscriptionsApiFactory = ManagerClubSubscriptionsApiFactory;
|
|
1837
1637
|
/**
|
|
1838
|
-
*
|
|
1638
|
+
* ManagerClubSubscriptionsApi - object-oriented interface
|
|
1839
1639
|
* @export
|
|
1840
|
-
* @class
|
|
1640
|
+
* @class ManagerClubSubscriptionsApi
|
|
1841
1641
|
* @extends {BaseAPI}
|
|
1842
1642
|
*/
|
|
1843
|
-
class
|
|
1643
|
+
class ManagerClubSubscriptionsApi extends base_1.BaseAPI {
|
|
1844
1644
|
/**
|
|
1845
1645
|
*
|
|
1846
1646
|
* @summary Archiver un prix
|
|
1847
|
-
* @param {
|
|
1647
|
+
* @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1848
1648
|
* @param {*} [options] Override http request option.
|
|
1849
1649
|
* @throws {RequiredError}
|
|
1850
|
-
* @memberof
|
|
1650
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1851
1651
|
*/
|
|
1852
1652
|
archivePriceForSubscriptionPlan(requestParameters, options) {
|
|
1853
|
-
return (0, exports.
|
|
1653
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).archivePriceForSubscriptionPlan(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
1854
1654
|
}
|
|
1855
1655
|
/**
|
|
1856
1656
|
*
|
|
1857
1657
|
* @summary Créer un nouveau prix pour un plan
|
|
1858
|
-
* @param {
|
|
1658
|
+
* @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1859
1659
|
* @param {*} [options] Override http request option.
|
|
1860
1660
|
* @throws {RequiredError}
|
|
1861
|
-
* @memberof
|
|
1661
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1862
1662
|
*/
|
|
1863
1663
|
createPriceForSubscriptionPlan(requestParameters, options) {
|
|
1864
|
-
return (0, exports.
|
|
1664
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).createPriceForSubscriptionPlan(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1865
1665
|
}
|
|
1866
1666
|
/**
|
|
1867
1667
|
*
|
|
1868
1668
|
* @summary Créer un plan d\'abonnement pour un club
|
|
1869
|
-
* @param {
|
|
1669
|
+
* @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1870
1670
|
* @param {*} [options] Override http request option.
|
|
1871
1671
|
* @throws {RequiredError}
|
|
1872
|
-
* @memberof
|
|
1672
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1873
1673
|
*/
|
|
1874
1674
|
createSubscriptionPlanForClub(requestParameters, options) {
|
|
1875
|
-
return (0, exports.
|
|
1675
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).createSubscriptionPlanForClub(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1876
1676
|
}
|
|
1877
1677
|
/**
|
|
1878
1678
|
*
|
|
1879
1679
|
* @summary Supprimer un plan d\'abonnement pour un club
|
|
1880
|
-
* @param {
|
|
1680
|
+
* @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1881
1681
|
* @param {*} [options] Override http request option.
|
|
1882
1682
|
* @throws {RequiredError}
|
|
1883
|
-
* @memberof
|
|
1683
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1884
1684
|
*/
|
|
1885
1685
|
deleteSubscriptionPlanForClub(requestParameters, options) {
|
|
1886
|
-
return (0, exports.
|
|
1686
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).deleteSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1887
1687
|
}
|
|
1888
1688
|
/**
|
|
1889
1689
|
*
|
|
1890
1690
|
* @summary Réactiver un plan d\'abonnement
|
|
1891
|
-
* @param {
|
|
1691
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1892
1692
|
* @param {*} [options] Override http request option.
|
|
1893
1693
|
* @throws {RequiredError}
|
|
1894
|
-
* @memberof
|
|
1694
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1895
1695
|
*/
|
|
1896
1696
|
restoreSubscriptionPlanForClub(requestParameters, options) {
|
|
1897
|
-
return (0, exports.
|
|
1697
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1898
1698
|
}
|
|
1899
1699
|
/**
|
|
1900
1700
|
*
|
|
1901
1701
|
* @summary Réactiver un prix
|
|
1902
|
-
* @param {
|
|
1702
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
|
|
1903
1703
|
* @param {*} [options] Override http request option.
|
|
1904
1704
|
* @throws {RequiredError}
|
|
1905
|
-
* @memberof
|
|
1705
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1906
1706
|
*/
|
|
1907
1707
|
restoreSubscriptionPriceForClub(requestParameters, options) {
|
|
1908
|
-
return (0, exports.
|
|
1708
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPriceForClub(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
1909
1709
|
}
|
|
1910
1710
|
/**
|
|
1911
1711
|
*
|
|
1912
1712
|
* @summary Mettre à jour un plan d\'abonnement
|
|
1913
|
-
* @param {
|
|
1713
|
+
* @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1914
1714
|
* @param {*} [options] Override http request option.
|
|
1915
1715
|
* @throws {RequiredError}
|
|
1916
|
-
* @memberof
|
|
1716
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1917
1717
|
*/
|
|
1918
1718
|
updateSubscriptionPlanForClub(requestParameters, options) {
|
|
1919
|
-
return (0, exports.
|
|
1719
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).updateSubscriptionPlanForClub(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1920
1720
|
}
|
|
1921
1721
|
}
|
|
1922
|
-
exports.
|
|
1722
|
+
exports.ManagerClubSubscriptionsApi = ManagerClubSubscriptionsApi;
|
|
1923
1723
|
/**
|
|
1924
|
-
*
|
|
1724
|
+
* ManagerClubsApi - axios parameter creator
|
|
1925
1725
|
* @export
|
|
1926
1726
|
*/
|
|
1927
|
-
const
|
|
1727
|
+
const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
1928
1728
|
return {
|
|
1929
1729
|
/**
|
|
1930
1730
|
*
|
|
1931
|
-
* @summary
|
|
1731
|
+
* @summary Ajouter un membre à un club
|
|
1932
1732
|
* @param {string} id ID du club
|
|
1733
|
+
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
1933
1734
|
* @param {*} [options] Override http request option.
|
|
1934
1735
|
* @throws {RequiredError}
|
|
1935
1736
|
*/
|
|
1936
|
-
|
|
1737
|
+
addClubMember: (id_1, addClubMemberRequest_1, ...args_1) => __awaiter(this, [id_1, addClubMemberRequest_1, ...args_1], void 0, function* (id, addClubMemberRequest, options = {}) {
|
|
1937
1738
|
// verify required parameter 'id' is not null or undefined
|
|
1938
|
-
(0, common_1.assertParamExists)('
|
|
1939
|
-
|
|
1739
|
+
(0, common_1.assertParamExists)('addClubMember', 'id', id);
|
|
1740
|
+
// verify required parameter 'addClubMemberRequest' is not null or undefined
|
|
1741
|
+
(0, common_1.assertParamExists)('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
1742
|
+
const localVarPath = `/api/clubs/{id}/add_members`
|
|
1940
1743
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1941
1744
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1942
1745
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1944,109 +1747,33 @@ const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
1944
1747
|
if (configuration) {
|
|
1945
1748
|
baseOptions = configuration.baseOptions;
|
|
1946
1749
|
}
|
|
1947
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1750
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1948
1751
|
const localVarHeaderParameter = {};
|
|
1949
1752
|
const localVarQueryParameter = {};
|
|
1950
1753
|
// authentication bearerAuth required
|
|
1951
1754
|
// http bearer authentication required
|
|
1952
1755
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1756
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1953
1757
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1954
1758
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1955
1759
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1760
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
1956
1761
|
return {
|
|
1957
1762
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1958
1763
|
options: localVarRequestOptions,
|
|
1959
1764
|
};
|
|
1960
1765
|
}),
|
|
1961
|
-
};
|
|
1962
|
-
};
|
|
1963
|
-
exports.ClubsApiAxiosParamCreator = ClubsApiAxiosParamCreator;
|
|
1964
|
-
/**
|
|
1965
|
-
* ClubsApi - functional programming interface
|
|
1966
|
-
* @export
|
|
1967
|
-
*/
|
|
1968
|
-
const ClubsApiFp = function (configuration) {
|
|
1969
|
-
const localVarAxiosParamCreator = (0, exports.ClubsApiAxiosParamCreator)(configuration);
|
|
1970
|
-
return {
|
|
1971
|
-
/**
|
|
1972
|
-
*
|
|
1973
|
-
* @summary Get club information (name, address, email, etc.)
|
|
1974
|
-
* @param {string} id ID du club
|
|
1975
|
-
* @param {*} [options] Override http request option.
|
|
1976
|
-
* @throws {RequiredError}
|
|
1977
|
-
*/
|
|
1978
|
-
getClubInfos(id, options) {
|
|
1979
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1980
|
-
var _a, _b, _c;
|
|
1981
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfos(id, options);
|
|
1982
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1983
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.getClubInfos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1984
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1985
|
-
});
|
|
1986
|
-
},
|
|
1987
|
-
};
|
|
1988
|
-
};
|
|
1989
|
-
exports.ClubsApiFp = ClubsApiFp;
|
|
1990
|
-
/**
|
|
1991
|
-
* ClubsApi - factory interface
|
|
1992
|
-
* @export
|
|
1993
|
-
*/
|
|
1994
|
-
const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
1995
|
-
const localVarFp = (0, exports.ClubsApiFp)(configuration);
|
|
1996
|
-
return {
|
|
1997
|
-
/**
|
|
1998
|
-
*
|
|
1999
|
-
* @summary Get club information (name, address, email, etc.)
|
|
2000
|
-
* @param {ClubsApiGetClubInfosRequest} requestParameters Request parameters.
|
|
2001
|
-
* @param {*} [options] Override http request option.
|
|
2002
|
-
* @throws {RequiredError}
|
|
2003
|
-
*/
|
|
2004
|
-
getClubInfos(requestParameters, options) {
|
|
2005
|
-
return localVarFp.getClubInfos(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2006
|
-
},
|
|
2007
|
-
};
|
|
2008
|
-
};
|
|
2009
|
-
exports.ClubsApiFactory = ClubsApiFactory;
|
|
2010
|
-
/**
|
|
2011
|
-
* ClubsApi - object-oriented interface
|
|
2012
|
-
* @export
|
|
2013
|
-
* @class ClubsApi
|
|
2014
|
-
* @extends {BaseAPI}
|
|
2015
|
-
*/
|
|
2016
|
-
class ClubsApi extends base_1.BaseAPI {
|
|
2017
|
-
/**
|
|
2018
|
-
*
|
|
2019
|
-
* @summary Get club information (name, address, email, etc.)
|
|
2020
|
-
* @param {ClubsApiGetClubInfosRequest} requestParameters Request parameters.
|
|
2021
|
-
* @param {*} [options] Override http request option.
|
|
2022
|
-
* @throws {RequiredError}
|
|
2023
|
-
* @memberof ClubsApi
|
|
2024
|
-
*/
|
|
2025
|
-
getClubInfos(requestParameters, options) {
|
|
2026
|
-
return (0, exports.ClubsApiFp)(this.configuration).getClubInfos(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2027
|
-
}
|
|
2028
|
-
}
|
|
2029
|
-
exports.ClubsApi = ClubsApi;
|
|
2030
|
-
/**
|
|
2031
|
-
* ManagerClubCourtsApi - axios parameter creator
|
|
2032
|
-
* @export
|
|
2033
|
-
*/
|
|
2034
|
-
const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
2035
|
-
return {
|
|
2036
1766
|
/**
|
|
2037
1767
|
*
|
|
2038
|
-
* @summary
|
|
1768
|
+
* @summary Récupérer les informations d\'un club
|
|
2039
1769
|
* @param {string} id ID du club
|
|
2040
|
-
* @param {CreateCourtRequest} createCourtRequest
|
|
2041
1770
|
* @param {*} [options] Override http request option.
|
|
2042
1771
|
* @throws {RequiredError}
|
|
2043
1772
|
*/
|
|
2044
|
-
|
|
1773
|
+
getClubInfo: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2045
1774
|
// verify required parameter 'id' is not null or undefined
|
|
2046
|
-
(0, common_1.assertParamExists)('
|
|
2047
|
-
|
|
2048
|
-
(0, common_1.assertParamExists)('createCourtForClub', 'createCourtRequest', createCourtRequest);
|
|
2049
|
-
const localVarPath = `/api/clubs/{id}/courts`
|
|
1775
|
+
(0, common_1.assertParamExists)('getClubInfo', 'id', id);
|
|
1776
|
+
const localVarPath = `/api/clubs/{id}`
|
|
2050
1777
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2051
1778
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2052
1779
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2054,17 +1781,15 @@ const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2054
1781
|
if (configuration) {
|
|
2055
1782
|
baseOptions = configuration.baseOptions;
|
|
2056
1783
|
}
|
|
2057
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1784
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2058
1785
|
const localVarHeaderParameter = {};
|
|
2059
1786
|
const localVarQueryParameter = {};
|
|
2060
1787
|
// authentication bearerAuth required
|
|
2061
1788
|
// http bearer authentication required
|
|
2062
1789
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2063
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2064
1790
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2065
1791
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2066
1792
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2067
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCourtRequest, localVarRequestOptions, configuration);
|
|
2068
1793
|
return {
|
|
2069
1794
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2070
1795
|
options: localVarRequestOptions,
|
|
@@ -2072,15 +1797,15 @@ const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2072
1797
|
}),
|
|
2073
1798
|
/**
|
|
2074
1799
|
*
|
|
2075
|
-
* @summary Récupérer
|
|
1800
|
+
* @summary Récupérer les membres d\'un club
|
|
2076
1801
|
* @param {string} id ID du club
|
|
2077
1802
|
* @param {*} [options] Override http request option.
|
|
2078
1803
|
* @throws {RequiredError}
|
|
2079
1804
|
*/
|
|
2080
|
-
|
|
1805
|
+
getClubMembers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2081
1806
|
// verify required parameter 'id' is not null or undefined
|
|
2082
|
-
(0, common_1.assertParamExists)('
|
|
2083
|
-
const localVarPath = `/api/clubs/{id}/
|
|
1807
|
+
(0, common_1.assertParamExists)('getClubMembers', 'id', id);
|
|
1808
|
+
const localVarPath = `/api/clubs/{id}/members`
|
|
2084
1809
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2085
1810
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2086
1811
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2102,136 +1827,311 @@ const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2102
1827
|
options: localVarRequestOptions,
|
|
2103
1828
|
};
|
|
2104
1829
|
}),
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
*
|
|
1830
|
+
/**
|
|
1831
|
+
*
|
|
1832
|
+
* @summary Récupérer les rôles d\'un club
|
|
1833
|
+
* @param {string} id ID du club
|
|
1834
|
+
* @param {*} [options] Override http request option.
|
|
1835
|
+
* @throws {RequiredError}
|
|
1836
|
+
*/
|
|
1837
|
+
getClubRoles: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1838
|
+
// verify required parameter 'id' is not null or undefined
|
|
1839
|
+
(0, common_1.assertParamExists)('getClubRoles', 'id', id);
|
|
1840
|
+
const localVarPath = `/api/clubs/{id}/roles`
|
|
1841
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1842
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1843
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1844
|
+
let baseOptions;
|
|
1845
|
+
if (configuration) {
|
|
1846
|
+
baseOptions = configuration.baseOptions;
|
|
1847
|
+
}
|
|
1848
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1849
|
+
const localVarHeaderParameter = {};
|
|
1850
|
+
const localVarQueryParameter = {};
|
|
1851
|
+
// authentication bearerAuth required
|
|
1852
|
+
// http bearer authentication required
|
|
1853
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1854
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1855
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1856
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1857
|
+
return {
|
|
1858
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1859
|
+
options: localVarRequestOptions,
|
|
1860
|
+
};
|
|
1861
|
+
}),
|
|
1862
|
+
/**
|
|
1863
|
+
*
|
|
1864
|
+
* @summary Mettre à jour un club existant
|
|
1865
|
+
* @param {string} id ID du club
|
|
1866
|
+
* @param {UpdateClubRequest} updateClubRequest
|
|
1867
|
+
* @param {*} [options] Override http request option.
|
|
1868
|
+
* @throws {RequiredError}
|
|
1869
|
+
*/
|
|
1870
|
+
updateClub: (id_1, updateClubRequest_1, ...args_1) => __awaiter(this, [id_1, updateClubRequest_1, ...args_1], void 0, function* (id, updateClubRequest, options = {}) {
|
|
1871
|
+
// verify required parameter 'id' is not null or undefined
|
|
1872
|
+
(0, common_1.assertParamExists)('updateClub', 'id', id);
|
|
1873
|
+
// verify required parameter 'updateClubRequest' is not null or undefined
|
|
1874
|
+
(0, common_1.assertParamExists)('updateClub', 'updateClubRequest', updateClubRequest);
|
|
1875
|
+
const localVarPath = `/api/clubs/{id}`
|
|
1876
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1877
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1878
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1879
|
+
let baseOptions;
|
|
1880
|
+
if (configuration) {
|
|
1881
|
+
baseOptions = configuration.baseOptions;
|
|
1882
|
+
}
|
|
1883
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1884
|
+
const localVarHeaderParameter = {};
|
|
1885
|
+
const localVarQueryParameter = {};
|
|
1886
|
+
// authentication bearerAuth required
|
|
1887
|
+
// http bearer authentication required
|
|
1888
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1889
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1890
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1891
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1892
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1893
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubRequest, localVarRequestOptions, configuration);
|
|
1894
|
+
return {
|
|
1895
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1896
|
+
options: localVarRequestOptions,
|
|
1897
|
+
};
|
|
1898
|
+
}),
|
|
1899
|
+
};
|
|
1900
|
+
};
|
|
1901
|
+
exports.ManagerClubsApiAxiosParamCreator = ManagerClubsApiAxiosParamCreator;
|
|
1902
|
+
/**
|
|
1903
|
+
* ManagerClubsApi - functional programming interface
|
|
2110
1904
|
* @export
|
|
2111
1905
|
*/
|
|
2112
|
-
const
|
|
2113
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
1906
|
+
const ManagerClubsApiFp = function (configuration) {
|
|
1907
|
+
const localVarAxiosParamCreator = (0, exports.ManagerClubsApiAxiosParamCreator)(configuration);
|
|
2114
1908
|
return {
|
|
2115
1909
|
/**
|
|
2116
1910
|
*
|
|
2117
|
-
* @summary
|
|
1911
|
+
* @summary Ajouter un membre à un club
|
|
2118
1912
|
* @param {string} id ID du club
|
|
2119
|
-
* @param {
|
|
1913
|
+
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
2120
1914
|
* @param {*} [options] Override http request option.
|
|
2121
1915
|
* @throws {RequiredError}
|
|
2122
1916
|
*/
|
|
2123
|
-
|
|
1917
|
+
addClubMember(id, addClubMemberRequest, options) {
|
|
2124
1918
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2125
1919
|
var _a, _b, _c;
|
|
2126
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1920
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addClubMember(id, addClubMemberRequest, options);
|
|
2127
1921
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2128
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1922
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.addClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2129
1923
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2130
1924
|
});
|
|
2131
1925
|
},
|
|
2132
1926
|
/**
|
|
2133
1927
|
*
|
|
2134
|
-
* @summary Récupérer
|
|
1928
|
+
* @summary Récupérer les informations d\'un club
|
|
2135
1929
|
* @param {string} id ID du club
|
|
2136
1930
|
* @param {*} [options] Override http request option.
|
|
2137
1931
|
* @throws {RequiredError}
|
|
2138
1932
|
*/
|
|
2139
|
-
|
|
1933
|
+
getClubInfo(id, options) {
|
|
2140
1934
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2141
1935
|
var _a, _b, _c;
|
|
2142
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1936
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfo(id, options);
|
|
2143
1937
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2144
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1938
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.getClubInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1939
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1940
|
+
});
|
|
1941
|
+
},
|
|
1942
|
+
/**
|
|
1943
|
+
*
|
|
1944
|
+
* @summary Récupérer les membres d\'un club
|
|
1945
|
+
* @param {string} id ID du club
|
|
1946
|
+
* @param {*} [options] Override http request option.
|
|
1947
|
+
* @throws {RequiredError}
|
|
1948
|
+
*/
|
|
1949
|
+
getClubMembers(id, options) {
|
|
1950
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1951
|
+
var _a, _b, _c;
|
|
1952
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMembers(id, options);
|
|
1953
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1954
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.getClubMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1955
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1956
|
+
});
|
|
1957
|
+
},
|
|
1958
|
+
/**
|
|
1959
|
+
*
|
|
1960
|
+
* @summary Récupérer les rôles d\'un club
|
|
1961
|
+
* @param {string} id ID du club
|
|
1962
|
+
* @param {*} [options] Override http request option.
|
|
1963
|
+
* @throws {RequiredError}
|
|
1964
|
+
*/
|
|
1965
|
+
getClubRoles(id, options) {
|
|
1966
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1967
|
+
var _a, _b, _c;
|
|
1968
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoles(id, options);
|
|
1969
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1970
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.getClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1971
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1972
|
+
});
|
|
1973
|
+
},
|
|
1974
|
+
/**
|
|
1975
|
+
*
|
|
1976
|
+
* @summary Mettre à jour un club existant
|
|
1977
|
+
* @param {string} id ID du club
|
|
1978
|
+
* @param {UpdateClubRequest} updateClubRequest
|
|
1979
|
+
* @param {*} [options] Override http request option.
|
|
1980
|
+
* @throws {RequiredError}
|
|
1981
|
+
*/
|
|
1982
|
+
updateClub(id, updateClubRequest, options) {
|
|
1983
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1984
|
+
var _a, _b, _c;
|
|
1985
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClub(id, updateClubRequest, options);
|
|
1986
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1987
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.updateClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2145
1988
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2146
1989
|
});
|
|
2147
1990
|
},
|
|
2148
1991
|
};
|
|
2149
1992
|
};
|
|
2150
|
-
exports.
|
|
1993
|
+
exports.ManagerClubsApiFp = ManagerClubsApiFp;
|
|
2151
1994
|
/**
|
|
2152
|
-
*
|
|
1995
|
+
* ManagerClubsApi - factory interface
|
|
2153
1996
|
* @export
|
|
2154
1997
|
*/
|
|
2155
|
-
const
|
|
2156
|
-
const localVarFp = (0, exports.
|
|
1998
|
+
const ManagerClubsApiFactory = function (configuration, basePath, axios) {
|
|
1999
|
+
const localVarFp = (0, exports.ManagerClubsApiFp)(configuration);
|
|
2157
2000
|
return {
|
|
2158
2001
|
/**
|
|
2159
2002
|
*
|
|
2160
|
-
* @summary
|
|
2161
|
-
* @param {
|
|
2003
|
+
* @summary Ajouter un membre à un club
|
|
2004
|
+
* @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
|
|
2162
2005
|
* @param {*} [options] Override http request option.
|
|
2163
2006
|
* @throws {RequiredError}
|
|
2164
2007
|
*/
|
|
2165
|
-
|
|
2166
|
-
return localVarFp.
|
|
2008
|
+
addClubMember(requestParameters, options) {
|
|
2009
|
+
return localVarFp.addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
2167
2010
|
},
|
|
2168
2011
|
/**
|
|
2169
2012
|
*
|
|
2170
|
-
* @summary Récupérer
|
|
2171
|
-
* @param {
|
|
2013
|
+
* @summary Récupérer les informations d\'un club
|
|
2014
|
+
* @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
|
|
2172
2015
|
* @param {*} [options] Override http request option.
|
|
2173
2016
|
* @throws {RequiredError}
|
|
2174
2017
|
*/
|
|
2175
|
-
|
|
2176
|
-
return localVarFp.
|
|
2018
|
+
getClubInfo(requestParameters, options) {
|
|
2019
|
+
return localVarFp.getClubInfo(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2020
|
+
},
|
|
2021
|
+
/**
|
|
2022
|
+
*
|
|
2023
|
+
* @summary Récupérer les membres d\'un club
|
|
2024
|
+
* @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
|
|
2025
|
+
* @param {*} [options] Override http request option.
|
|
2026
|
+
* @throws {RequiredError}
|
|
2027
|
+
*/
|
|
2028
|
+
getClubMembers(requestParameters, options) {
|
|
2029
|
+
return localVarFp.getClubMembers(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2030
|
+
},
|
|
2031
|
+
/**
|
|
2032
|
+
*
|
|
2033
|
+
* @summary Récupérer les rôles d\'un club
|
|
2034
|
+
* @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
|
|
2035
|
+
* @param {*} [options] Override http request option.
|
|
2036
|
+
* @throws {RequiredError}
|
|
2037
|
+
*/
|
|
2038
|
+
getClubRoles(requestParameters, options) {
|
|
2039
|
+
return localVarFp.getClubRoles(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2040
|
+
},
|
|
2041
|
+
/**
|
|
2042
|
+
*
|
|
2043
|
+
* @summary Mettre à jour un club existant
|
|
2044
|
+
* @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
|
|
2045
|
+
* @param {*} [options] Override http request option.
|
|
2046
|
+
* @throws {RequiredError}
|
|
2047
|
+
*/
|
|
2048
|
+
updateClub(requestParameters, options) {
|
|
2049
|
+
return localVarFp.updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(axios, basePath));
|
|
2177
2050
|
},
|
|
2178
2051
|
};
|
|
2179
2052
|
};
|
|
2180
|
-
exports.
|
|
2053
|
+
exports.ManagerClubsApiFactory = ManagerClubsApiFactory;
|
|
2181
2054
|
/**
|
|
2182
|
-
*
|
|
2055
|
+
* ManagerClubsApi - object-oriented interface
|
|
2183
2056
|
* @export
|
|
2184
|
-
* @class
|
|
2057
|
+
* @class ManagerClubsApi
|
|
2185
2058
|
* @extends {BaseAPI}
|
|
2186
2059
|
*/
|
|
2187
|
-
class
|
|
2060
|
+
class ManagerClubsApi extends base_1.BaseAPI {
|
|
2188
2061
|
/**
|
|
2189
2062
|
*
|
|
2190
|
-
* @summary
|
|
2191
|
-
* @param {
|
|
2063
|
+
* @summary Ajouter un membre à un club
|
|
2064
|
+
* @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
|
|
2192
2065
|
* @param {*} [options] Override http request option.
|
|
2193
2066
|
* @throws {RequiredError}
|
|
2194
|
-
* @memberof
|
|
2067
|
+
* @memberof ManagerClubsApi
|
|
2195
2068
|
*/
|
|
2196
|
-
|
|
2197
|
-
return (0, exports.
|
|
2069
|
+
addClubMember(requestParameters, options) {
|
|
2070
|
+
return (0, exports.ManagerClubsApiFp)(this.configuration).addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2198
2071
|
}
|
|
2199
2072
|
/**
|
|
2200
2073
|
*
|
|
2201
|
-
* @summary Récupérer
|
|
2202
|
-
* @param {
|
|
2074
|
+
* @summary Récupérer les informations d\'un club
|
|
2075
|
+
* @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
|
|
2203
2076
|
* @param {*} [options] Override http request option.
|
|
2204
2077
|
* @throws {RequiredError}
|
|
2205
|
-
* @memberof
|
|
2078
|
+
* @memberof ManagerClubsApi
|
|
2206
2079
|
*/
|
|
2207
|
-
|
|
2208
|
-
return (0, exports.
|
|
2080
|
+
getClubInfo(requestParameters, options) {
|
|
2081
|
+
return (0, exports.ManagerClubsApiFp)(this.configuration).getClubInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2082
|
+
}
|
|
2083
|
+
/**
|
|
2084
|
+
*
|
|
2085
|
+
* @summary Récupérer les membres d\'un club
|
|
2086
|
+
* @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
|
|
2087
|
+
* @param {*} [options] Override http request option.
|
|
2088
|
+
* @throws {RequiredError}
|
|
2089
|
+
* @memberof ManagerClubsApi
|
|
2090
|
+
*/
|
|
2091
|
+
getClubMembers(requestParameters, options) {
|
|
2092
|
+
return (0, exports.ManagerClubsApiFp)(this.configuration).getClubMembers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2093
|
+
}
|
|
2094
|
+
/**
|
|
2095
|
+
*
|
|
2096
|
+
* @summary Récupérer les rôles d\'un club
|
|
2097
|
+
* @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
|
|
2098
|
+
* @param {*} [options] Override http request option.
|
|
2099
|
+
* @throws {RequiredError}
|
|
2100
|
+
* @memberof ManagerClubsApi
|
|
2101
|
+
*/
|
|
2102
|
+
getClubRoles(requestParameters, options) {
|
|
2103
|
+
return (0, exports.ManagerClubsApiFp)(this.configuration).getClubRoles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2104
|
+
}
|
|
2105
|
+
/**
|
|
2106
|
+
*
|
|
2107
|
+
* @summary Mettre à jour un club existant
|
|
2108
|
+
* @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
|
|
2109
|
+
* @param {*} [options] Override http request option.
|
|
2110
|
+
* @throws {RequiredError}
|
|
2111
|
+
* @memberof ManagerClubsApi
|
|
2112
|
+
*/
|
|
2113
|
+
updateClub(requestParameters, options) {
|
|
2114
|
+
return (0, exports.ManagerClubsApiFp)(this.configuration).updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2209
2115
|
}
|
|
2210
2116
|
}
|
|
2211
|
-
exports.
|
|
2117
|
+
exports.ManagerClubsApi = ManagerClubsApi;
|
|
2212
2118
|
/**
|
|
2213
|
-
*
|
|
2119
|
+
* ManagerSportsApi - axios parameter creator
|
|
2214
2120
|
* @export
|
|
2215
2121
|
*/
|
|
2216
|
-
const
|
|
2122
|
+
const ManagerSportsApiAxiosParamCreator = function (configuration) {
|
|
2217
2123
|
return {
|
|
2218
2124
|
/**
|
|
2219
2125
|
*
|
|
2220
|
-
* @summary Supprimer
|
|
2221
|
-
* @param {string} id ID du
|
|
2222
|
-
* @param {string} start Date de début (format ISO)
|
|
2223
|
-
* @param {string} end Date de fin (format ISO)
|
|
2126
|
+
* @summary Supprimer un sport
|
|
2127
|
+
* @param {string} id ID du sport
|
|
2224
2128
|
* @param {*} [options] Override http request option.
|
|
2225
2129
|
* @throws {RequiredError}
|
|
2226
2130
|
*/
|
|
2227
|
-
|
|
2131
|
+
deleteSport: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2228
2132
|
// verify required parameter 'id' is not null or undefined
|
|
2229
|
-
(0, common_1.assertParamExists)('
|
|
2230
|
-
|
|
2231
|
-
(0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'start', start);
|
|
2232
|
-
// verify required parameter 'end' is not null or undefined
|
|
2233
|
-
(0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'end', end);
|
|
2234
|
-
const localVarPath = `/api/clubs/{id}/slots`
|
|
2133
|
+
(0, common_1.assertParamExists)('deleteSport', 'id', id);
|
|
2134
|
+
const localVarPath = `/api/sports/{id}`
|
|
2235
2135
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2236
2136
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2237
2137
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2245,16 +2145,6 @@ const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
2245
2145
|
// authentication bearerAuth required
|
|
2246
2146
|
// http bearer authentication required
|
|
2247
2147
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2248
|
-
if (start !== undefined) {
|
|
2249
|
-
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
2250
|
-
start.toISOString() :
|
|
2251
|
-
start;
|
|
2252
|
-
}
|
|
2253
|
-
if (end !== undefined) {
|
|
2254
|
-
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
2255
|
-
end.toISOString() :
|
|
2256
|
-
end;
|
|
2257
|
-
}
|
|
2258
2148
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2259
2149
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2260
2150
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2265,17 +2155,18 @@ const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
2265
2155
|
}),
|
|
2266
2156
|
/**
|
|
2267
2157
|
*
|
|
2268
|
-
* @summary
|
|
2269
|
-
* @param {string} id ID du
|
|
2270
|
-
* @param {
|
|
2271
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
2158
|
+
* @summary Mettre à jour un sport
|
|
2159
|
+
* @param {string} id ID du sport
|
|
2160
|
+
* @param {UpdateSportRequest} updateSportRequest
|
|
2272
2161
|
* @param {*} [options] Override http request option.
|
|
2273
2162
|
* @throws {RequiredError}
|
|
2274
2163
|
*/
|
|
2275
|
-
|
|
2164
|
+
updateSport: (id_1, updateSportRequest_1, ...args_1) => __awaiter(this, [id_1, updateSportRequest_1, ...args_1], void 0, function* (id, updateSportRequest, options = {}) {
|
|
2276
2165
|
// verify required parameter 'id' is not null or undefined
|
|
2277
|
-
(0, common_1.assertParamExists)('
|
|
2278
|
-
|
|
2166
|
+
(0, common_1.assertParamExists)('updateSport', 'id', id);
|
|
2167
|
+
// verify required parameter 'updateSportRequest' is not null or undefined
|
|
2168
|
+
(0, common_1.assertParamExists)('updateSport', 'updateSportRequest', updateSportRequest);
|
|
2169
|
+
const localVarPath = `/api/sports/{id}`
|
|
2279
2170
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2280
2171
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2281
2172
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2283,25 +2174,17 @@ const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
2283
2174
|
if (configuration) {
|
|
2284
2175
|
baseOptions = configuration.baseOptions;
|
|
2285
2176
|
}
|
|
2286
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2177
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2287
2178
|
const localVarHeaderParameter = {};
|
|
2288
2179
|
const localVarQueryParameter = {};
|
|
2289
2180
|
// authentication bearerAuth required
|
|
2290
2181
|
// http bearer authentication required
|
|
2291
2182
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2292
|
-
|
|
2293
|
-
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
2294
|
-
start.toISOString() :
|
|
2295
|
-
start;
|
|
2296
|
-
}
|
|
2297
|
-
if (end !== undefined) {
|
|
2298
|
-
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
2299
|
-
end.toISOString() :
|
|
2300
|
-
end;
|
|
2301
|
-
}
|
|
2183
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2302
2184
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2303
2185
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2304
2186
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2187
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSportRequest, localVarRequestOptions, configuration);
|
|
2305
2188
|
return {
|
|
2306
2189
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2307
2190
|
options: localVarRequestOptions,
|
|
@@ -2309,200 +2192,128 @@ const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
2309
2192
|
}),
|
|
2310
2193
|
};
|
|
2311
2194
|
};
|
|
2312
|
-
exports.
|
|
2195
|
+
exports.ManagerSportsApiAxiosParamCreator = ManagerSportsApiAxiosParamCreator;
|
|
2313
2196
|
/**
|
|
2314
|
-
*
|
|
2197
|
+
* ManagerSportsApi - functional programming interface
|
|
2315
2198
|
* @export
|
|
2316
2199
|
*/
|
|
2317
|
-
const
|
|
2318
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
2200
|
+
const ManagerSportsApiFp = function (configuration) {
|
|
2201
|
+
const localVarAxiosParamCreator = (0, exports.ManagerSportsApiAxiosParamCreator)(configuration);
|
|
2319
2202
|
return {
|
|
2320
2203
|
/**
|
|
2321
2204
|
*
|
|
2322
|
-
* @summary Supprimer
|
|
2323
|
-
* @param {string} id ID du
|
|
2324
|
-
* @param {string} start Date de début (format ISO)
|
|
2325
|
-
* @param {string} end Date de fin (format ISO)
|
|
2205
|
+
* @summary Supprimer un sport
|
|
2206
|
+
* @param {string} id ID du sport
|
|
2326
2207
|
* @param {*} [options] Override http request option.
|
|
2327
2208
|
* @throws {RequiredError}
|
|
2328
2209
|
*/
|
|
2329
|
-
|
|
2210
|
+
deleteSport(id, options) {
|
|
2330
2211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2331
2212
|
var _a, _b, _c;
|
|
2332
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2213
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSport(id, options);
|
|
2333
2214
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2334
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2215
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerSportsApi.deleteSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2335
2216
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2336
2217
|
});
|
|
2337
2218
|
},
|
|
2338
2219
|
/**
|
|
2339
2220
|
*
|
|
2340
|
-
* @summary
|
|
2341
|
-
* @param {string} id ID du
|
|
2342
|
-
* @param {
|
|
2343
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
2221
|
+
* @summary Mettre à jour un sport
|
|
2222
|
+
* @param {string} id ID du sport
|
|
2223
|
+
* @param {UpdateSportRequest} updateSportRequest
|
|
2344
2224
|
* @param {*} [options] Override http request option.
|
|
2345
2225
|
* @throws {RequiredError}
|
|
2346
2226
|
*/
|
|
2347
|
-
|
|
2227
|
+
updateSport(id, updateSportRequest, options) {
|
|
2348
2228
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2349
2229
|
var _a, _b, _c;
|
|
2350
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2230
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSport(id, updateSportRequest, options);
|
|
2351
2231
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2352
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2232
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerSportsApi.updateSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2353
2233
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2354
2234
|
});
|
|
2355
2235
|
},
|
|
2356
2236
|
};
|
|
2357
2237
|
};
|
|
2358
|
-
exports.
|
|
2238
|
+
exports.ManagerSportsApiFp = ManagerSportsApiFp;
|
|
2359
2239
|
/**
|
|
2360
|
-
*
|
|
2240
|
+
* ManagerSportsApi - factory interface
|
|
2361
2241
|
* @export
|
|
2362
2242
|
*/
|
|
2363
|
-
const
|
|
2364
|
-
const localVarFp = (0, exports.
|
|
2243
|
+
const ManagerSportsApiFactory = function (configuration, basePath, axios) {
|
|
2244
|
+
const localVarFp = (0, exports.ManagerSportsApiFp)(configuration);
|
|
2365
2245
|
return {
|
|
2366
2246
|
/**
|
|
2367
2247
|
*
|
|
2368
|
-
* @summary Supprimer
|
|
2369
|
-
* @param {
|
|
2248
|
+
* @summary Supprimer un sport
|
|
2249
|
+
* @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
|
|
2370
2250
|
* @param {*} [options] Override http request option.
|
|
2371
2251
|
* @throws {RequiredError}
|
|
2372
2252
|
*/
|
|
2373
|
-
|
|
2374
|
-
return localVarFp.
|
|
2253
|
+
deleteSport(requestParameters, options) {
|
|
2254
|
+
return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2375
2255
|
},
|
|
2376
2256
|
/**
|
|
2377
2257
|
*
|
|
2378
|
-
* @summary
|
|
2379
|
-
* @param {
|
|
2258
|
+
* @summary Mettre à jour un sport
|
|
2259
|
+
* @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
|
|
2380
2260
|
* @param {*} [options] Override http request option.
|
|
2381
2261
|
* @throws {RequiredError}
|
|
2382
2262
|
*/
|
|
2383
|
-
|
|
2384
|
-
return localVarFp.
|
|
2263
|
+
updateSport(requestParameters, options) {
|
|
2264
|
+
return localVarFp.updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(axios, basePath));
|
|
2385
2265
|
},
|
|
2386
2266
|
};
|
|
2387
2267
|
};
|
|
2388
|
-
exports.
|
|
2268
|
+
exports.ManagerSportsApiFactory = ManagerSportsApiFactory;
|
|
2389
2269
|
/**
|
|
2390
|
-
*
|
|
2270
|
+
* ManagerSportsApi - object-oriented interface
|
|
2391
2271
|
* @export
|
|
2392
|
-
* @class
|
|
2272
|
+
* @class ManagerSportsApi
|
|
2393
2273
|
* @extends {BaseAPI}
|
|
2394
2274
|
*/
|
|
2395
|
-
class
|
|
2275
|
+
class ManagerSportsApi extends base_1.BaseAPI {
|
|
2396
2276
|
/**
|
|
2397
2277
|
*
|
|
2398
|
-
* @summary Supprimer
|
|
2399
|
-
* @param {
|
|
2278
|
+
* @summary Supprimer un sport
|
|
2279
|
+
* @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
|
|
2400
2280
|
* @param {*} [options] Override http request option.
|
|
2401
2281
|
* @throws {RequiredError}
|
|
2402
|
-
* @memberof
|
|
2282
|
+
* @memberof ManagerSportsApi
|
|
2403
2283
|
*/
|
|
2404
|
-
|
|
2405
|
-
return (0, exports.
|
|
2284
|
+
deleteSport(requestParameters, options) {
|
|
2285
|
+
return (0, exports.ManagerSportsApiFp)(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2406
2286
|
}
|
|
2407
2287
|
/**
|
|
2408
|
-
*
|
|
2409
|
-
* @summary
|
|
2410
|
-
* @param {
|
|
2411
|
-
* @param {*} [options] Override http request option.
|
|
2412
|
-
* @throws {RequiredError}
|
|
2413
|
-
* @memberof
|
|
2414
|
-
*/
|
|
2415
|
-
|
|
2416
|
-
return (0, exports.
|
|
2417
|
-
}
|
|
2418
|
-
}
|
|
2419
|
-
exports.
|
|
2420
|
-
/**
|
|
2421
|
-
*
|
|
2422
|
-
* @export
|
|
2423
|
-
*/
|
|
2424
|
-
const
|
|
2425
|
-
return {
|
|
2426
|
-
/**
|
|
2427
|
-
*
|
|
2428
|
-
* @summary Ajouter un membre à un club
|
|
2429
|
-
* @param {string} id ID du club
|
|
2430
|
-
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
2431
|
-
* @param {*} [options] Override http request option.
|
|
2432
|
-
* @throws {RequiredError}
|
|
2433
|
-
*/
|
|
2434
|
-
addClubMember: (id_1, addClubMemberRequest_1, ...args_1) => __awaiter(this, [id_1, addClubMemberRequest_1, ...args_1], void 0, function* (id, addClubMemberRequest, options = {}) {
|
|
2435
|
-
// verify required parameter 'id' is not null or undefined
|
|
2436
|
-
(0, common_1.assertParamExists)('addClubMember', 'id', id);
|
|
2437
|
-
// verify required parameter 'addClubMemberRequest' is not null or undefined
|
|
2438
|
-
(0, common_1.assertParamExists)('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
2439
|
-
const localVarPath = `/api/clubs/{id}/add_members`
|
|
2440
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2441
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2442
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2443
|
-
let baseOptions;
|
|
2444
|
-
if (configuration) {
|
|
2445
|
-
baseOptions = configuration.baseOptions;
|
|
2446
|
-
}
|
|
2447
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2448
|
-
const localVarHeaderParameter = {};
|
|
2449
|
-
const localVarQueryParameter = {};
|
|
2450
|
-
// authentication bearerAuth required
|
|
2451
|
-
// http bearer authentication required
|
|
2452
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2453
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2454
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2455
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2456
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2457
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
2458
|
-
return {
|
|
2459
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2460
|
-
options: localVarRequestOptions,
|
|
2461
|
-
};
|
|
2462
|
-
}),
|
|
2463
|
-
/**
|
|
2464
|
-
*
|
|
2465
|
-
* @summary Récupérer les informations d\'un club
|
|
2466
|
-
* @param {string} id ID du club
|
|
2467
|
-
* @param {*} [options] Override http request option.
|
|
2468
|
-
* @throws {RequiredError}
|
|
2469
|
-
*/
|
|
2470
|
-
getClubInfo: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2471
|
-
// verify required parameter 'id' is not null or undefined
|
|
2472
|
-
(0, common_1.assertParamExists)('getClubInfo', 'id', id);
|
|
2473
|
-
const localVarPath = `/api/clubs/{id}`
|
|
2474
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2475
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2476
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2477
|
-
let baseOptions;
|
|
2478
|
-
if (configuration) {
|
|
2479
|
-
baseOptions = configuration.baseOptions;
|
|
2480
|
-
}
|
|
2481
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2482
|
-
const localVarHeaderParameter = {};
|
|
2483
|
-
const localVarQueryParameter = {};
|
|
2484
|
-
// authentication bearerAuth required
|
|
2485
|
-
// http bearer authentication required
|
|
2486
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2487
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2488
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2489
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2490
|
-
return {
|
|
2491
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2492
|
-
options: localVarRequestOptions,
|
|
2493
|
-
};
|
|
2494
|
-
}),
|
|
2288
|
+
*
|
|
2289
|
+
* @summary Mettre à jour un sport
|
|
2290
|
+
* @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
|
|
2291
|
+
* @param {*} [options] Override http request option.
|
|
2292
|
+
* @throws {RequiredError}
|
|
2293
|
+
* @memberof ManagerSportsApi
|
|
2294
|
+
*/
|
|
2295
|
+
updateSport(requestParameters, options) {
|
|
2296
|
+
return (0, exports.ManagerSportsApiFp)(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
exports.ManagerSportsApi = ManagerSportsApi;
|
|
2300
|
+
/**
|
|
2301
|
+
* StaffClubAnalyticsApi - axios parameter creator
|
|
2302
|
+
* @export
|
|
2303
|
+
*/
|
|
2304
|
+
const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
2305
|
+
return {
|
|
2495
2306
|
/**
|
|
2496
2307
|
*
|
|
2497
|
-
* @summary
|
|
2308
|
+
* @summary Get monthly turnover for the last six months
|
|
2498
2309
|
* @param {string} id ID du club
|
|
2499
2310
|
* @param {*} [options] Override http request option.
|
|
2500
2311
|
* @throws {RequiredError}
|
|
2501
2312
|
*/
|
|
2502
|
-
|
|
2313
|
+
getLastSixMonthsTurnover: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2503
2314
|
// verify required parameter 'id' is not null or undefined
|
|
2504
|
-
(0, common_1.assertParamExists)('
|
|
2505
|
-
const localVarPath = `/api/clubs/{id}/
|
|
2315
|
+
(0, common_1.assertParamExists)('getLastSixMonthsTurnover', 'id', id);
|
|
2316
|
+
const localVarPath = `/api/clubs/{id}/turnover`
|
|
2506
2317
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2507
2318
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2508
2319
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2526,15 +2337,15 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2526
2337
|
}),
|
|
2527
2338
|
/**
|
|
2528
2339
|
*
|
|
2529
|
-
* @summary
|
|
2340
|
+
* @summary Get number of users subscribed to the club
|
|
2530
2341
|
* @param {string} id ID du club
|
|
2531
2342
|
* @param {*} [options] Override http request option.
|
|
2532
2343
|
* @throws {RequiredError}
|
|
2533
2344
|
*/
|
|
2534
|
-
|
|
2345
|
+
getNumberOfClubUsers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2535
2346
|
// verify required parameter 'id' is not null or undefined
|
|
2536
|
-
(0, common_1.assertParamExists)('
|
|
2537
|
-
const localVarPath = `/api/clubs/{id}/
|
|
2347
|
+
(0, common_1.assertParamExists)('getNumberOfClubUsers', 'id', id);
|
|
2348
|
+
const localVarPath = `/api/clubs/{id}/user-count`
|
|
2538
2349
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2539
2350
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2540
2351
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2556,314 +2367,344 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2556
2367
|
options: localVarRequestOptions,
|
|
2557
2368
|
};
|
|
2558
2369
|
}),
|
|
2559
|
-
/**
|
|
2560
|
-
*
|
|
2561
|
-
* @summary Mettre à jour un club existant
|
|
2562
|
-
* @param {string} id ID du club
|
|
2563
|
-
* @param {UpdateClubRequest} updateClubRequest
|
|
2564
|
-
* @param {*} [options] Override http request option.
|
|
2565
|
-
* @throws {RequiredError}
|
|
2566
|
-
*/
|
|
2567
|
-
updateClub: (id_1, updateClubRequest_1, ...args_1) => __awaiter(this, [id_1, updateClubRequest_1, ...args_1], void 0, function* (id, updateClubRequest, options = {}) {
|
|
2568
|
-
// verify required parameter 'id' is not null or undefined
|
|
2569
|
-
(0, common_1.assertParamExists)('updateClub', 'id', id);
|
|
2570
|
-
// verify required parameter 'updateClubRequest' is not null or undefined
|
|
2571
|
-
(0, common_1.assertParamExists)('updateClub', 'updateClubRequest', updateClubRequest);
|
|
2572
|
-
const localVarPath = `/api/clubs/{id}`
|
|
2573
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2574
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2575
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2576
|
-
let baseOptions;
|
|
2577
|
-
if (configuration) {
|
|
2578
|
-
baseOptions = configuration.baseOptions;
|
|
2579
|
-
}
|
|
2580
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2581
|
-
const localVarHeaderParameter = {};
|
|
2582
|
-
const localVarQueryParameter = {};
|
|
2583
|
-
// authentication bearerAuth required
|
|
2584
|
-
// http bearer authentication required
|
|
2585
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2586
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2587
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2588
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2589
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2590
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubRequest, localVarRequestOptions, configuration);
|
|
2591
|
-
return {
|
|
2592
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2593
|
-
options: localVarRequestOptions,
|
|
2594
|
-
};
|
|
2595
|
-
}),
|
|
2596
2370
|
};
|
|
2597
2371
|
};
|
|
2598
|
-
exports.
|
|
2372
|
+
exports.StaffClubAnalyticsApiAxiosParamCreator = StaffClubAnalyticsApiAxiosParamCreator;
|
|
2599
2373
|
/**
|
|
2600
|
-
*
|
|
2374
|
+
* StaffClubAnalyticsApi - functional programming interface
|
|
2601
2375
|
* @export
|
|
2602
2376
|
*/
|
|
2603
|
-
const
|
|
2604
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
2377
|
+
const StaffClubAnalyticsApiFp = function (configuration) {
|
|
2378
|
+
const localVarAxiosParamCreator = (0, exports.StaffClubAnalyticsApiAxiosParamCreator)(configuration);
|
|
2605
2379
|
return {
|
|
2606
2380
|
/**
|
|
2607
2381
|
*
|
|
2608
|
-
* @summary
|
|
2609
|
-
* @param {string} id ID du club
|
|
2610
|
-
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
2611
|
-
* @param {*} [options] Override http request option.
|
|
2612
|
-
* @throws {RequiredError}
|
|
2613
|
-
*/
|
|
2614
|
-
addClubMember(id, addClubMemberRequest, options) {
|
|
2615
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2616
|
-
var _a, _b, _c;
|
|
2617
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addClubMember(id, addClubMemberRequest, options);
|
|
2618
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2619
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.addClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2620
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2621
|
-
});
|
|
2622
|
-
},
|
|
2623
|
-
/**
|
|
2624
|
-
*
|
|
2625
|
-
* @summary Récupérer les informations d\'un club
|
|
2626
|
-
* @param {string} id ID du club
|
|
2627
|
-
* @param {*} [options] Override http request option.
|
|
2628
|
-
* @throws {RequiredError}
|
|
2629
|
-
*/
|
|
2630
|
-
getClubInfo(id, options) {
|
|
2631
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2632
|
-
var _a, _b, _c;
|
|
2633
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfo(id, options);
|
|
2634
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2635
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.getClubInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2636
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2637
|
-
});
|
|
2638
|
-
},
|
|
2639
|
-
/**
|
|
2640
|
-
*
|
|
2641
|
-
* @summary Récupérer les membres d\'un club
|
|
2642
|
-
* @param {string} id ID du club
|
|
2643
|
-
* @param {*} [options] Override http request option.
|
|
2644
|
-
* @throws {RequiredError}
|
|
2645
|
-
*/
|
|
2646
|
-
getClubMembers(id, options) {
|
|
2647
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2648
|
-
var _a, _b, _c;
|
|
2649
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMembers(id, options);
|
|
2650
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2651
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.getClubMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2652
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2653
|
-
});
|
|
2654
|
-
},
|
|
2655
|
-
/**
|
|
2656
|
-
*
|
|
2657
|
-
* @summary Récupérer les rôles d\'un club
|
|
2382
|
+
* @summary Get monthly turnover for the last six months
|
|
2658
2383
|
* @param {string} id ID du club
|
|
2659
2384
|
* @param {*} [options] Override http request option.
|
|
2660
2385
|
* @throws {RequiredError}
|
|
2661
2386
|
*/
|
|
2662
|
-
|
|
2387
|
+
getLastSixMonthsTurnover(id, options) {
|
|
2663
2388
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2664
2389
|
var _a, _b, _c;
|
|
2665
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2390
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLastSixMonthsTurnover(id, options);
|
|
2666
2391
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2667
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2392
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubAnalyticsApi.getLastSixMonthsTurnover']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2668
2393
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2669
2394
|
});
|
|
2670
2395
|
},
|
|
2671
2396
|
/**
|
|
2672
2397
|
*
|
|
2673
|
-
* @summary
|
|
2398
|
+
* @summary Get number of users subscribed to the club
|
|
2674
2399
|
* @param {string} id ID du club
|
|
2675
|
-
* @param {UpdateClubRequest} updateClubRequest
|
|
2676
2400
|
* @param {*} [options] Override http request option.
|
|
2677
2401
|
* @throws {RequiredError}
|
|
2678
2402
|
*/
|
|
2679
|
-
|
|
2403
|
+
getNumberOfClubUsers(id, options) {
|
|
2680
2404
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2681
2405
|
var _a, _b, _c;
|
|
2682
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2406
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(id, options);
|
|
2683
2407
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2684
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2408
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubAnalyticsApi.getNumberOfClubUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2685
2409
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2686
2410
|
});
|
|
2687
2411
|
},
|
|
2688
2412
|
};
|
|
2689
2413
|
};
|
|
2690
|
-
exports.
|
|
2414
|
+
exports.StaffClubAnalyticsApiFp = StaffClubAnalyticsApiFp;
|
|
2691
2415
|
/**
|
|
2692
|
-
*
|
|
2416
|
+
* StaffClubAnalyticsApi - factory interface
|
|
2693
2417
|
* @export
|
|
2694
2418
|
*/
|
|
2695
|
-
const
|
|
2696
|
-
const localVarFp = (0, exports.
|
|
2419
|
+
const StaffClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
2420
|
+
const localVarFp = (0, exports.StaffClubAnalyticsApiFp)(configuration);
|
|
2697
2421
|
return {
|
|
2698
2422
|
/**
|
|
2699
2423
|
*
|
|
2700
|
-
* @summary
|
|
2701
|
-
* @param {
|
|
2702
|
-
* @param {*} [options] Override http request option.
|
|
2703
|
-
* @throws {RequiredError}
|
|
2704
|
-
*/
|
|
2705
|
-
addClubMember(requestParameters, options) {
|
|
2706
|
-
return localVarFp.addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
2707
|
-
},
|
|
2708
|
-
/**
|
|
2709
|
-
*
|
|
2710
|
-
* @summary Récupérer les informations d\'un club
|
|
2711
|
-
* @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
|
|
2712
|
-
* @param {*} [options] Override http request option.
|
|
2713
|
-
* @throws {RequiredError}
|
|
2714
|
-
*/
|
|
2715
|
-
getClubInfo(requestParameters, options) {
|
|
2716
|
-
return localVarFp.getClubInfo(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2717
|
-
},
|
|
2718
|
-
/**
|
|
2719
|
-
*
|
|
2720
|
-
* @summary Récupérer les membres d\'un club
|
|
2721
|
-
* @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
|
|
2722
|
-
* @param {*} [options] Override http request option.
|
|
2723
|
-
* @throws {RequiredError}
|
|
2724
|
-
*/
|
|
2725
|
-
getClubMembers(requestParameters, options) {
|
|
2726
|
-
return localVarFp.getClubMembers(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2727
|
-
},
|
|
2728
|
-
/**
|
|
2729
|
-
*
|
|
2730
|
-
* @summary Récupérer les rôles d\'un club
|
|
2731
|
-
* @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
|
|
2424
|
+
* @summary Get monthly turnover for the last six months
|
|
2425
|
+
* @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
|
|
2732
2426
|
* @param {*} [options] Override http request option.
|
|
2733
2427
|
* @throws {RequiredError}
|
|
2734
2428
|
*/
|
|
2735
|
-
|
|
2736
|
-
return localVarFp.
|
|
2429
|
+
getLastSixMonthsTurnover(requestParameters, options) {
|
|
2430
|
+
return localVarFp.getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2737
2431
|
},
|
|
2738
2432
|
/**
|
|
2739
2433
|
*
|
|
2740
|
-
* @summary
|
|
2741
|
-
* @param {
|
|
2434
|
+
* @summary Get number of users subscribed to the club
|
|
2435
|
+
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
2742
2436
|
* @param {*} [options] Override http request option.
|
|
2743
2437
|
* @throws {RequiredError}
|
|
2744
2438
|
*/
|
|
2745
|
-
|
|
2746
|
-
return localVarFp.
|
|
2439
|
+
getNumberOfClubUsers(requestParameters, options) {
|
|
2440
|
+
return localVarFp.getNumberOfClubUsers(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2747
2441
|
},
|
|
2748
2442
|
};
|
|
2749
2443
|
};
|
|
2750
|
-
exports.
|
|
2444
|
+
exports.StaffClubAnalyticsApiFactory = StaffClubAnalyticsApiFactory;
|
|
2751
2445
|
/**
|
|
2752
|
-
*
|
|
2446
|
+
* StaffClubAnalyticsApi - object-oriented interface
|
|
2753
2447
|
* @export
|
|
2754
|
-
* @class
|
|
2448
|
+
* @class StaffClubAnalyticsApi
|
|
2755
2449
|
* @extends {BaseAPI}
|
|
2756
2450
|
*/
|
|
2757
|
-
class
|
|
2758
|
-
/**
|
|
2759
|
-
*
|
|
2760
|
-
* @summary Ajouter un membre à un club
|
|
2761
|
-
* @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
|
|
2762
|
-
* @param {*} [options] Override http request option.
|
|
2763
|
-
* @throws {RequiredError}
|
|
2764
|
-
* @memberof ManagerClubsApi
|
|
2765
|
-
*/
|
|
2766
|
-
addClubMember(requestParameters, options) {
|
|
2767
|
-
return (0, exports.ManagerClubsApiFp)(this.configuration).addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2768
|
-
}
|
|
2769
|
-
/**
|
|
2770
|
-
*
|
|
2771
|
-
* @summary Récupérer les informations d\'un club
|
|
2772
|
-
* @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
|
|
2773
|
-
* @param {*} [options] Override http request option.
|
|
2774
|
-
* @throws {RequiredError}
|
|
2775
|
-
* @memberof ManagerClubsApi
|
|
2776
|
-
*/
|
|
2777
|
-
getClubInfo(requestParameters, options) {
|
|
2778
|
-
return (0, exports.ManagerClubsApiFp)(this.configuration).getClubInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2779
|
-
}
|
|
2451
|
+
class StaffClubAnalyticsApi extends base_1.BaseAPI {
|
|
2780
2452
|
/**
|
|
2781
2453
|
*
|
|
2782
|
-
* @summary
|
|
2783
|
-
* @param {
|
|
2454
|
+
* @summary Get monthly turnover for the last six months
|
|
2455
|
+
* @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
|
|
2784
2456
|
* @param {*} [options] Override http request option.
|
|
2785
2457
|
* @throws {RequiredError}
|
|
2786
|
-
* @memberof
|
|
2458
|
+
* @memberof StaffClubAnalyticsApi
|
|
2787
2459
|
*/
|
|
2788
|
-
|
|
2789
|
-
return (0, exports.
|
|
2460
|
+
getLastSixMonthsTurnover(requestParameters, options) {
|
|
2461
|
+
return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2790
2462
|
}
|
|
2791
2463
|
/**
|
|
2792
2464
|
*
|
|
2793
|
-
* @summary
|
|
2794
|
-
* @param {
|
|
2465
|
+
* @summary Get number of users subscribed to the club
|
|
2466
|
+
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
2795
2467
|
* @param {*} [options] Override http request option.
|
|
2796
2468
|
* @throws {RequiredError}
|
|
2797
|
-
* @memberof
|
|
2469
|
+
* @memberof StaffClubAnalyticsApi
|
|
2798
2470
|
*/
|
|
2799
|
-
|
|
2800
|
-
return (0, exports.
|
|
2471
|
+
getNumberOfClubUsers(requestParameters, options) {
|
|
2472
|
+
return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getNumberOfClubUsers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2801
2473
|
}
|
|
2474
|
+
}
|
|
2475
|
+
exports.StaffClubAnalyticsApi = StaffClubAnalyticsApi;
|
|
2476
|
+
/**
|
|
2477
|
+
* StaffClubBookingsApi - axios parameter creator
|
|
2478
|
+
* @export
|
|
2479
|
+
*/
|
|
2480
|
+
const StaffClubBookingsApiAxiosParamCreator = function (configuration) {
|
|
2481
|
+
return {
|
|
2482
|
+
/**
|
|
2483
|
+
*
|
|
2484
|
+
* @summary Get the ten next bookings for the club
|
|
2485
|
+
* @param {string} id ID du club
|
|
2486
|
+
* @param {*} [options] Override http request option.
|
|
2487
|
+
* @throws {RequiredError}
|
|
2488
|
+
*/
|
|
2489
|
+
getTenNextBookings: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2490
|
+
// verify required parameter 'id' is not null or undefined
|
|
2491
|
+
(0, common_1.assertParamExists)('getTenNextBookings', 'id', id);
|
|
2492
|
+
const localVarPath = `/api/clubs/{id}/next-bookings`
|
|
2493
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2494
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2495
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2496
|
+
let baseOptions;
|
|
2497
|
+
if (configuration) {
|
|
2498
|
+
baseOptions = configuration.baseOptions;
|
|
2499
|
+
}
|
|
2500
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2501
|
+
const localVarHeaderParameter = {};
|
|
2502
|
+
const localVarQueryParameter = {};
|
|
2503
|
+
// authentication bearerAuth required
|
|
2504
|
+
// http bearer authentication required
|
|
2505
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2506
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2507
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2508
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2509
|
+
return {
|
|
2510
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2511
|
+
options: localVarRequestOptions,
|
|
2512
|
+
};
|
|
2513
|
+
}),
|
|
2514
|
+
};
|
|
2515
|
+
};
|
|
2516
|
+
exports.StaffClubBookingsApiAxiosParamCreator = StaffClubBookingsApiAxiosParamCreator;
|
|
2517
|
+
/**
|
|
2518
|
+
* StaffClubBookingsApi - functional programming interface
|
|
2519
|
+
* @export
|
|
2520
|
+
*/
|
|
2521
|
+
const StaffClubBookingsApiFp = function (configuration) {
|
|
2522
|
+
const localVarAxiosParamCreator = (0, exports.StaffClubBookingsApiAxiosParamCreator)(configuration);
|
|
2523
|
+
return {
|
|
2524
|
+
/**
|
|
2525
|
+
*
|
|
2526
|
+
* @summary Get the ten next bookings for the club
|
|
2527
|
+
* @param {string} id ID du club
|
|
2528
|
+
* @param {*} [options] Override http request option.
|
|
2529
|
+
* @throws {RequiredError}
|
|
2530
|
+
*/
|
|
2531
|
+
getTenNextBookings(id, options) {
|
|
2532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2533
|
+
var _a, _b, _c;
|
|
2534
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTenNextBookings(id, options);
|
|
2535
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2536
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubBookingsApi.getTenNextBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2537
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2538
|
+
});
|
|
2539
|
+
},
|
|
2540
|
+
};
|
|
2541
|
+
};
|
|
2542
|
+
exports.StaffClubBookingsApiFp = StaffClubBookingsApiFp;
|
|
2543
|
+
/**
|
|
2544
|
+
* StaffClubBookingsApi - factory interface
|
|
2545
|
+
* @export
|
|
2546
|
+
*/
|
|
2547
|
+
const StaffClubBookingsApiFactory = function (configuration, basePath, axios) {
|
|
2548
|
+
const localVarFp = (0, exports.StaffClubBookingsApiFp)(configuration);
|
|
2549
|
+
return {
|
|
2550
|
+
/**
|
|
2551
|
+
*
|
|
2552
|
+
* @summary Get the ten next bookings for the club
|
|
2553
|
+
* @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
|
|
2554
|
+
* @param {*} [options] Override http request option.
|
|
2555
|
+
* @throws {RequiredError}
|
|
2556
|
+
*/
|
|
2557
|
+
getTenNextBookings(requestParameters, options) {
|
|
2558
|
+
return localVarFp.getTenNextBookings(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2559
|
+
},
|
|
2560
|
+
};
|
|
2561
|
+
};
|
|
2562
|
+
exports.StaffClubBookingsApiFactory = StaffClubBookingsApiFactory;
|
|
2563
|
+
/**
|
|
2564
|
+
* StaffClubBookingsApi - object-oriented interface
|
|
2565
|
+
* @export
|
|
2566
|
+
* @class StaffClubBookingsApi
|
|
2567
|
+
* @extends {BaseAPI}
|
|
2568
|
+
*/
|
|
2569
|
+
class StaffClubBookingsApi extends base_1.BaseAPI {
|
|
2802
2570
|
/**
|
|
2803
2571
|
*
|
|
2804
|
-
* @summary
|
|
2805
|
-
* @param {
|
|
2572
|
+
* @summary Get the ten next bookings for the club
|
|
2573
|
+
* @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
|
|
2806
2574
|
* @param {*} [options] Override http request option.
|
|
2807
2575
|
* @throws {RequiredError}
|
|
2808
|
-
* @memberof
|
|
2576
|
+
* @memberof StaffClubBookingsApi
|
|
2809
2577
|
*/
|
|
2810
|
-
|
|
2811
|
-
return (0, exports.
|
|
2578
|
+
getTenNextBookings(requestParameters, options) {
|
|
2579
|
+
return (0, exports.StaffClubBookingsApiFp)(this.configuration).getTenNextBookings(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2812
2580
|
}
|
|
2813
2581
|
}
|
|
2814
|
-
exports.
|
|
2582
|
+
exports.StaffClubBookingsApi = StaffClubBookingsApi;
|
|
2815
2583
|
/**
|
|
2816
|
-
*
|
|
2584
|
+
* StaffClubSettingsApi - axios parameter creator
|
|
2817
2585
|
* @export
|
|
2818
2586
|
*/
|
|
2819
|
-
const
|
|
2587
|
+
const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
2820
2588
|
return {
|
|
2821
2589
|
/**
|
|
2822
2590
|
*
|
|
2823
|
-
* @summary
|
|
2824
|
-
* @param {
|
|
2591
|
+
* @summary Récupère les paramètres d\'un club
|
|
2592
|
+
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
2825
2593
|
* @param {*} [options] Override http request option.
|
|
2826
2594
|
* @throws {RequiredError}
|
|
2827
2595
|
*/
|
|
2828
|
-
|
|
2829
|
-
// verify required parameter '
|
|
2830
|
-
(0, common_1.assertParamExists)('
|
|
2831
|
-
const localVarPath = `/api/
|
|
2832
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2596
|
+
getClubSettings: (getClubSettingsRequest_1, ...args_1) => __awaiter(this, [getClubSettingsRequest_1, ...args_1], void 0, function* (getClubSettingsRequest, options = {}) {
|
|
2597
|
+
// verify required parameter 'getClubSettingsRequest' is not null or undefined
|
|
2598
|
+
(0, common_1.assertParamExists)('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
|
|
2599
|
+
const localVarPath = `/api/club-settings`;
|
|
2833
2600
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2834
2601
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2835
2602
|
let baseOptions;
|
|
2836
2603
|
if (configuration) {
|
|
2837
2604
|
baseOptions = configuration.baseOptions;
|
|
2838
2605
|
}
|
|
2839
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2606
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2840
2607
|
const localVarHeaderParameter = {};
|
|
2841
2608
|
const localVarQueryParameter = {};
|
|
2842
2609
|
// authentication bearerAuth required
|
|
2843
2610
|
// http bearer authentication required
|
|
2844
2611
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2612
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2845
2613
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2846
2614
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2847
2615
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2616
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2848
2617
|
return {
|
|
2849
2618
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2850
2619
|
options: localVarRequestOptions,
|
|
2851
2620
|
};
|
|
2852
2621
|
}),
|
|
2622
|
+
};
|
|
2623
|
+
};
|
|
2624
|
+
exports.StaffClubSettingsApiAxiosParamCreator = StaffClubSettingsApiAxiosParamCreator;
|
|
2625
|
+
/**
|
|
2626
|
+
* StaffClubSettingsApi - functional programming interface
|
|
2627
|
+
* @export
|
|
2628
|
+
*/
|
|
2629
|
+
const StaffClubSettingsApiFp = function (configuration) {
|
|
2630
|
+
const localVarAxiosParamCreator = (0, exports.StaffClubSettingsApiAxiosParamCreator)(configuration);
|
|
2631
|
+
return {
|
|
2853
2632
|
/**
|
|
2854
2633
|
*
|
|
2855
|
-
* @summary
|
|
2856
|
-
* @param {
|
|
2857
|
-
* @param {UpdateSportRequest} updateSportRequest
|
|
2634
|
+
* @summary Récupère les paramètres d\'un club
|
|
2635
|
+
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
2858
2636
|
* @param {*} [options] Override http request option.
|
|
2859
2637
|
* @throws {RequiredError}
|
|
2860
2638
|
*/
|
|
2861
|
-
|
|
2639
|
+
getClubSettings(getClubSettingsRequest, options) {
|
|
2640
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2641
|
+
var _a, _b, _c;
|
|
2642
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(getClubSettingsRequest, options);
|
|
2643
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2644
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubSettingsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2645
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2646
|
+
});
|
|
2647
|
+
},
|
|
2648
|
+
};
|
|
2649
|
+
};
|
|
2650
|
+
exports.StaffClubSettingsApiFp = StaffClubSettingsApiFp;
|
|
2651
|
+
/**
|
|
2652
|
+
* StaffClubSettingsApi - factory interface
|
|
2653
|
+
* @export
|
|
2654
|
+
*/
|
|
2655
|
+
const StaffClubSettingsApiFactory = function (configuration, basePath, axios) {
|
|
2656
|
+
const localVarFp = (0, exports.StaffClubSettingsApiFp)(configuration);
|
|
2657
|
+
return {
|
|
2658
|
+
/**
|
|
2659
|
+
*
|
|
2660
|
+
* @summary Récupère les paramètres d\'un club
|
|
2661
|
+
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
2662
|
+
* @param {*} [options] Override http request option.
|
|
2663
|
+
* @throws {RequiredError}
|
|
2664
|
+
*/
|
|
2665
|
+
getClubSettings(requestParameters, options) {
|
|
2666
|
+
return localVarFp.getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2667
|
+
},
|
|
2668
|
+
};
|
|
2669
|
+
};
|
|
2670
|
+
exports.StaffClubSettingsApiFactory = StaffClubSettingsApiFactory;
|
|
2671
|
+
/**
|
|
2672
|
+
* StaffClubSettingsApi - object-oriented interface
|
|
2673
|
+
* @export
|
|
2674
|
+
* @class StaffClubSettingsApi
|
|
2675
|
+
* @extends {BaseAPI}
|
|
2676
|
+
*/
|
|
2677
|
+
class StaffClubSettingsApi extends base_1.BaseAPI {
|
|
2678
|
+
/**
|
|
2679
|
+
*
|
|
2680
|
+
* @summary Récupère les paramètres d\'un club
|
|
2681
|
+
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
2682
|
+
* @param {*} [options] Override http request option.
|
|
2683
|
+
* @throws {RequiredError}
|
|
2684
|
+
* @memberof StaffClubSettingsApi
|
|
2685
|
+
*/
|
|
2686
|
+
getClubSettings(requestParameters, options) {
|
|
2687
|
+
return (0, exports.StaffClubSettingsApiFp)(this.configuration).getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2688
|
+
}
|
|
2689
|
+
}
|
|
2690
|
+
exports.StaffClubSettingsApi = StaffClubSettingsApi;
|
|
2691
|
+
/**
|
|
2692
|
+
* StaffClubsApi - axios parameter creator
|
|
2693
|
+
* @export
|
|
2694
|
+
*/
|
|
2695
|
+
const StaffClubsApiAxiosParamCreator = function (configuration) {
|
|
2696
|
+
return {
|
|
2697
|
+
/**
|
|
2698
|
+
*
|
|
2699
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2700
|
+
* @param {string} id ID du club
|
|
2701
|
+
* @param {*} [options] Override http request option.
|
|
2702
|
+
* @throws {RequiredError}
|
|
2703
|
+
*/
|
|
2704
|
+
getClubInfos: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2862
2705
|
// verify required parameter 'id' is not null or undefined
|
|
2863
|
-
(0, common_1.assertParamExists)('
|
|
2864
|
-
|
|
2865
|
-
(0, common_1.assertParamExists)('updateSport', 'updateSportRequest', updateSportRequest);
|
|
2866
|
-
const localVarPath = `/api/sports/{id}`
|
|
2706
|
+
(0, common_1.assertParamExists)('getClubInfos', 'id', id);
|
|
2707
|
+
const localVarPath = `/api/clubs/{id}/infos`
|
|
2867
2708
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2868
2709
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2869
2710
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2871,17 +2712,15 @@ const SportsApiAxiosParamCreator = function (configuration) {
|
|
|
2871
2712
|
if (configuration) {
|
|
2872
2713
|
baseOptions = configuration.baseOptions;
|
|
2873
2714
|
}
|
|
2874
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2715
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2875
2716
|
const localVarHeaderParameter = {};
|
|
2876
2717
|
const localVarQueryParameter = {};
|
|
2877
2718
|
// authentication bearerAuth required
|
|
2878
2719
|
// http bearer authentication required
|
|
2879
2720
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2880
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2881
2721
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2882
2722
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2883
2723
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2884
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSportRequest, localVarRequestOptions, configuration);
|
|
2885
2724
|
return {
|
|
2886
2725
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2887
2726
|
options: localVarRequestOptions,
|
|
@@ -2889,128 +2728,87 @@ const SportsApiAxiosParamCreator = function (configuration) {
|
|
|
2889
2728
|
}),
|
|
2890
2729
|
};
|
|
2891
2730
|
};
|
|
2892
|
-
exports.
|
|
2731
|
+
exports.StaffClubsApiAxiosParamCreator = StaffClubsApiAxiosParamCreator;
|
|
2893
2732
|
/**
|
|
2894
|
-
*
|
|
2733
|
+
* StaffClubsApi - functional programming interface
|
|
2895
2734
|
* @export
|
|
2896
2735
|
*/
|
|
2897
|
-
const
|
|
2898
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
2736
|
+
const StaffClubsApiFp = function (configuration) {
|
|
2737
|
+
const localVarAxiosParamCreator = (0, exports.StaffClubsApiAxiosParamCreator)(configuration);
|
|
2899
2738
|
return {
|
|
2900
2739
|
/**
|
|
2901
2740
|
*
|
|
2902
|
-
* @summary
|
|
2903
|
-
* @param {string} id ID du
|
|
2904
|
-
* @param {*} [options] Override http request option.
|
|
2905
|
-
* @throws {RequiredError}
|
|
2906
|
-
*/
|
|
2907
|
-
deleteSport(id, options) {
|
|
2908
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2909
|
-
var _a, _b, _c;
|
|
2910
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSport(id, options);
|
|
2911
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2912
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SportsApi.deleteSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2913
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2914
|
-
});
|
|
2915
|
-
},
|
|
2916
|
-
/**
|
|
2917
|
-
*
|
|
2918
|
-
* @summary Mettre à jour un sport
|
|
2919
|
-
* @param {string} id ID du sport
|
|
2920
|
-
* @param {UpdateSportRequest} updateSportRequest
|
|
2741
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2742
|
+
* @param {string} id ID du club
|
|
2921
2743
|
* @param {*} [options] Override http request option.
|
|
2922
2744
|
* @throws {RequiredError}
|
|
2923
2745
|
*/
|
|
2924
|
-
|
|
2746
|
+
getClubInfos(id, options) {
|
|
2925
2747
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2926
2748
|
var _a, _b, _c;
|
|
2927
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2749
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfos(id, options);
|
|
2928
2750
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2929
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2751
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubsApi.getClubInfos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2930
2752
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2931
2753
|
});
|
|
2932
2754
|
},
|
|
2933
2755
|
};
|
|
2934
2756
|
};
|
|
2935
|
-
exports.
|
|
2757
|
+
exports.StaffClubsApiFp = StaffClubsApiFp;
|
|
2936
2758
|
/**
|
|
2937
|
-
*
|
|
2759
|
+
* StaffClubsApi - factory interface
|
|
2938
2760
|
* @export
|
|
2939
2761
|
*/
|
|
2940
|
-
const
|
|
2941
|
-
const localVarFp = (0, exports.
|
|
2762
|
+
const StaffClubsApiFactory = function (configuration, basePath, axios) {
|
|
2763
|
+
const localVarFp = (0, exports.StaffClubsApiFp)(configuration);
|
|
2942
2764
|
return {
|
|
2943
2765
|
/**
|
|
2944
2766
|
*
|
|
2945
|
-
* @summary
|
|
2946
|
-
* @param {
|
|
2947
|
-
* @param {*} [options] Override http request option.
|
|
2948
|
-
* @throws {RequiredError}
|
|
2949
|
-
*/
|
|
2950
|
-
deleteSport(requestParameters, options) {
|
|
2951
|
-
return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2952
|
-
},
|
|
2953
|
-
/**
|
|
2954
|
-
*
|
|
2955
|
-
* @summary Mettre à jour un sport
|
|
2956
|
-
* @param {SportsApiUpdateSportRequest} requestParameters Request parameters.
|
|
2767
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2768
|
+
* @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
|
|
2957
2769
|
* @param {*} [options] Override http request option.
|
|
2958
2770
|
* @throws {RequiredError}
|
|
2959
2771
|
*/
|
|
2960
|
-
|
|
2961
|
-
return localVarFp.
|
|
2772
|
+
getClubInfos(requestParameters, options) {
|
|
2773
|
+
return localVarFp.getClubInfos(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2962
2774
|
},
|
|
2963
2775
|
};
|
|
2964
2776
|
};
|
|
2965
|
-
exports.
|
|
2777
|
+
exports.StaffClubsApiFactory = StaffClubsApiFactory;
|
|
2966
2778
|
/**
|
|
2967
|
-
*
|
|
2779
|
+
* StaffClubsApi - object-oriented interface
|
|
2968
2780
|
* @export
|
|
2969
|
-
* @class
|
|
2781
|
+
* @class StaffClubsApi
|
|
2970
2782
|
* @extends {BaseAPI}
|
|
2971
2783
|
*/
|
|
2972
|
-
class
|
|
2973
|
-
/**
|
|
2974
|
-
*
|
|
2975
|
-
* @summary Supprimer un sport
|
|
2976
|
-
* @param {SportsApiDeleteSportRequest} requestParameters Request parameters.
|
|
2977
|
-
* @param {*} [options] Override http request option.
|
|
2978
|
-
* @throws {RequiredError}
|
|
2979
|
-
* @memberof SportsApi
|
|
2980
|
-
*/
|
|
2981
|
-
deleteSport(requestParameters, options) {
|
|
2982
|
-
return (0, exports.SportsApiFp)(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2983
|
-
}
|
|
2784
|
+
class StaffClubsApi extends base_1.BaseAPI {
|
|
2984
2785
|
/**
|
|
2985
2786
|
*
|
|
2986
|
-
* @summary
|
|
2987
|
-
* @param {
|
|
2787
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2788
|
+
* @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
|
|
2988
2789
|
* @param {*} [options] Override http request option.
|
|
2989
2790
|
* @throws {RequiredError}
|
|
2990
|
-
* @memberof
|
|
2791
|
+
* @memberof StaffClubsApi
|
|
2991
2792
|
*/
|
|
2992
|
-
|
|
2993
|
-
return (0, exports.
|
|
2793
|
+
getClubInfos(requestParameters, options) {
|
|
2794
|
+
return (0, exports.StaffClubsApiFp)(this.configuration).getClubInfos(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2994
2795
|
}
|
|
2995
2796
|
}
|
|
2996
|
-
exports.
|
|
2797
|
+
exports.StaffClubsApi = StaffClubsApi;
|
|
2997
2798
|
/**
|
|
2998
|
-
*
|
|
2799
|
+
* StaffProfileApi - axios parameter creator
|
|
2999
2800
|
* @export
|
|
3000
2801
|
*/
|
|
3001
|
-
const
|
|
2802
|
+
const StaffProfileApiAxiosParamCreator = function (configuration) {
|
|
3002
2803
|
return {
|
|
3003
2804
|
/**
|
|
3004
2805
|
*
|
|
3005
|
-
* @summary Récupère les
|
|
3006
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
2806
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
3007
2807
|
* @param {*} [options] Override http request option.
|
|
3008
2808
|
* @throws {RequiredError}
|
|
3009
2809
|
*/
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
(0, common_1.assertParamExists)('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
|
|
3013
|
-
const localVarPath = `/api/club-settings`;
|
|
2810
|
+
getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2811
|
+
const localVarPath = `/api/users/me/roles`;
|
|
3014
2812
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3015
2813
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3016
2814
|
let baseOptions;
|
|
@@ -3023,11 +2821,9 @@ const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
|
3023
2821
|
// authentication bearerAuth required
|
|
3024
2822
|
// http bearer authentication required
|
|
3025
2823
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3026
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3027
2824
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3028
2825
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3029
2826
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3030
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getClubSettingsRequest, localVarRequestOptions, configuration);
|
|
3031
2827
|
return {
|
|
3032
2828
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3033
2829
|
options: localVarRequestOptions,
|
|
@@ -3035,73 +2831,70 @@ const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
|
3035
2831
|
}),
|
|
3036
2832
|
};
|
|
3037
2833
|
};
|
|
3038
|
-
exports.
|
|
2834
|
+
exports.StaffProfileApiAxiosParamCreator = StaffProfileApiAxiosParamCreator;
|
|
3039
2835
|
/**
|
|
3040
|
-
*
|
|
2836
|
+
* StaffProfileApi - functional programming interface
|
|
3041
2837
|
* @export
|
|
3042
2838
|
*/
|
|
3043
|
-
const
|
|
3044
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
2839
|
+
const StaffProfileApiFp = function (configuration) {
|
|
2840
|
+
const localVarAxiosParamCreator = (0, exports.StaffProfileApiAxiosParamCreator)(configuration);
|
|
3045
2841
|
return {
|
|
3046
2842
|
/**
|
|
3047
2843
|
*
|
|
3048
|
-
* @summary Récupère les
|
|
3049
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
2844
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
3050
2845
|
* @param {*} [options] Override http request option.
|
|
3051
2846
|
* @throws {RequiredError}
|
|
3052
2847
|
*/
|
|
3053
|
-
|
|
2848
|
+
getUserRolesInClubs(options) {
|
|
3054
2849
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3055
2850
|
var _a, _b, _c;
|
|
3056
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2851
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
|
|
3057
2852
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3058
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2853
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffProfileApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3059
2854
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3060
2855
|
});
|
|
3061
2856
|
},
|
|
3062
2857
|
};
|
|
3063
2858
|
};
|
|
3064
|
-
exports.
|
|
2859
|
+
exports.StaffProfileApiFp = StaffProfileApiFp;
|
|
3065
2860
|
/**
|
|
3066
|
-
*
|
|
2861
|
+
* StaffProfileApi - factory interface
|
|
3067
2862
|
* @export
|
|
3068
2863
|
*/
|
|
3069
|
-
const
|
|
3070
|
-
const localVarFp = (0, exports.
|
|
2864
|
+
const StaffProfileApiFactory = function (configuration, basePath, axios) {
|
|
2865
|
+
const localVarFp = (0, exports.StaffProfileApiFp)(configuration);
|
|
3071
2866
|
return {
|
|
3072
2867
|
/**
|
|
3073
2868
|
*
|
|
3074
|
-
* @summary Récupère les
|
|
3075
|
-
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
2869
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
3076
2870
|
* @param {*} [options] Override http request option.
|
|
3077
2871
|
* @throws {RequiredError}
|
|
3078
2872
|
*/
|
|
3079
|
-
|
|
3080
|
-
return localVarFp.
|
|
2873
|
+
getUserRolesInClubs(options) {
|
|
2874
|
+
return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
|
|
3081
2875
|
},
|
|
3082
2876
|
};
|
|
3083
2877
|
};
|
|
3084
|
-
exports.
|
|
2878
|
+
exports.StaffProfileApiFactory = StaffProfileApiFactory;
|
|
3085
2879
|
/**
|
|
3086
|
-
*
|
|
2880
|
+
* StaffProfileApi - object-oriented interface
|
|
3087
2881
|
* @export
|
|
3088
|
-
* @class
|
|
2882
|
+
* @class StaffProfileApi
|
|
3089
2883
|
* @extends {BaseAPI}
|
|
3090
2884
|
*/
|
|
3091
|
-
class
|
|
2885
|
+
class StaffProfileApi extends base_1.BaseAPI {
|
|
3092
2886
|
/**
|
|
3093
2887
|
*
|
|
3094
|
-
* @summary Récupère les
|
|
3095
|
-
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
2888
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
3096
2889
|
* @param {*} [options] Override http request option.
|
|
3097
2890
|
* @throws {RequiredError}
|
|
3098
|
-
* @memberof
|
|
2891
|
+
* @memberof StaffProfileApi
|
|
3099
2892
|
*/
|
|
3100
|
-
|
|
3101
|
-
return (0, exports.
|
|
2893
|
+
getUserRolesInClubs(options) {
|
|
2894
|
+
return (0, exports.StaffProfileApiFp)(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
|
|
3102
2895
|
}
|
|
3103
2896
|
}
|
|
3104
|
-
exports.
|
|
2897
|
+
exports.StaffProfileApi = StaffProfileApi;
|
|
3105
2898
|
/**
|
|
3106
2899
|
* StaffSportsApi - axios parameter creator
|
|
3107
2900
|
* @export
|
|
@@ -3210,6 +3003,184 @@ class StaffSportsApi extends base_1.BaseAPI {
|
|
|
3210
3003
|
}
|
|
3211
3004
|
}
|
|
3212
3005
|
exports.StaffSportsApi = StaffSportsApi;
|
|
3006
|
+
/**
|
|
3007
|
+
* UserApi - axios parameter creator
|
|
3008
|
+
* @export
|
|
3009
|
+
*/
|
|
3010
|
+
const UserApiAxiosParamCreator = function (configuration) {
|
|
3011
|
+
return {
|
|
3012
|
+
/**
|
|
3013
|
+
*
|
|
3014
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
3015
|
+
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
3016
|
+
* @param {*} [options] Override http request option.
|
|
3017
|
+
* @throws {RequiredError}
|
|
3018
|
+
*/
|
|
3019
|
+
subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
|
|
3020
|
+
// verify required parameter 'subscribeToClubRequestBody' is not null or undefined
|
|
3021
|
+
(0, common_1.assertParamExists)('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
|
|
3022
|
+
const localVarPath = `/api/users/me/subscribe`;
|
|
3023
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3024
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3025
|
+
let baseOptions;
|
|
3026
|
+
if (configuration) {
|
|
3027
|
+
baseOptions = configuration.baseOptions;
|
|
3028
|
+
}
|
|
3029
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3030
|
+
const localVarHeaderParameter = {};
|
|
3031
|
+
const localVarQueryParameter = {};
|
|
3032
|
+
// authentication bearerAuth required
|
|
3033
|
+
// http bearer authentication required
|
|
3034
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3035
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3036
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3037
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3038
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3039
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscribeToClubRequestBody, localVarRequestOptions, configuration);
|
|
3040
|
+
return {
|
|
3041
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3042
|
+
options: localVarRequestOptions,
|
|
3043
|
+
};
|
|
3044
|
+
}),
|
|
3045
|
+
/**
|
|
3046
|
+
*
|
|
3047
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
3048
|
+
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
3049
|
+
* @param {*} [options] Override http request option.
|
|
3050
|
+
* @throws {RequiredError}
|
|
3051
|
+
*/
|
|
3052
|
+
updateCustomer: (updateCustomerRequestBody_1, ...args_1) => __awaiter(this, [updateCustomerRequestBody_1, ...args_1], void 0, function* (updateCustomerRequestBody, options = {}) {
|
|
3053
|
+
// verify required parameter 'updateCustomerRequestBody' is not null or undefined
|
|
3054
|
+
(0, common_1.assertParamExists)('updateCustomer', 'updateCustomerRequestBody', updateCustomerRequestBody);
|
|
3055
|
+
const localVarPath = `/api/users/me/customer`;
|
|
3056
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3057
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3058
|
+
let baseOptions;
|
|
3059
|
+
if (configuration) {
|
|
3060
|
+
baseOptions = configuration.baseOptions;
|
|
3061
|
+
}
|
|
3062
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3063
|
+
const localVarHeaderParameter = {};
|
|
3064
|
+
const localVarQueryParameter = {};
|
|
3065
|
+
// authentication bearerAuth required
|
|
3066
|
+
// http bearer authentication required
|
|
3067
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3068
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3069
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3070
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3071
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3072
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequestBody, localVarRequestOptions, configuration);
|
|
3073
|
+
return {
|
|
3074
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3075
|
+
options: localVarRequestOptions,
|
|
3076
|
+
};
|
|
3077
|
+
}),
|
|
3078
|
+
};
|
|
3079
|
+
};
|
|
3080
|
+
exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
|
|
3081
|
+
/**
|
|
3082
|
+
* UserApi - functional programming interface
|
|
3083
|
+
* @export
|
|
3084
|
+
*/
|
|
3085
|
+
const UserApiFp = function (configuration) {
|
|
3086
|
+
const localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
|
|
3087
|
+
return {
|
|
3088
|
+
/**
|
|
3089
|
+
*
|
|
3090
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
3091
|
+
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
3092
|
+
* @param {*} [options] Override http request option.
|
|
3093
|
+
* @throws {RequiredError}
|
|
3094
|
+
*/
|
|
3095
|
+
subscribeToClub(subscribeToClubRequestBody, options) {
|
|
3096
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3097
|
+
var _a, _b, _c;
|
|
3098
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
|
|
3099
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3100
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.subscribeToClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3101
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3102
|
+
});
|
|
3103
|
+
},
|
|
3104
|
+
/**
|
|
3105
|
+
*
|
|
3106
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
3107
|
+
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
3108
|
+
* @param {*} [options] Override http request option.
|
|
3109
|
+
* @throws {RequiredError}
|
|
3110
|
+
*/
|
|
3111
|
+
updateCustomer(updateCustomerRequestBody, options) {
|
|
3112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3113
|
+
var _a, _b, _c;
|
|
3114
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomer(updateCustomerRequestBody, options);
|
|
3115
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3116
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.updateCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3117
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3118
|
+
});
|
|
3119
|
+
},
|
|
3120
|
+
};
|
|
3121
|
+
};
|
|
3122
|
+
exports.UserApiFp = UserApiFp;
|
|
3123
|
+
/**
|
|
3124
|
+
* UserApi - factory interface
|
|
3125
|
+
* @export
|
|
3126
|
+
*/
|
|
3127
|
+
const UserApiFactory = function (configuration, basePath, axios) {
|
|
3128
|
+
const localVarFp = (0, exports.UserApiFp)(configuration);
|
|
3129
|
+
return {
|
|
3130
|
+
/**
|
|
3131
|
+
*
|
|
3132
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
3133
|
+
* @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
3134
|
+
* @param {*} [options] Override http request option.
|
|
3135
|
+
* @throws {RequiredError}
|
|
3136
|
+
*/
|
|
3137
|
+
subscribeToClub(requestParameters, options) {
|
|
3138
|
+
return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
|
|
3139
|
+
},
|
|
3140
|
+
/**
|
|
3141
|
+
*
|
|
3142
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
3143
|
+
* @param {UserApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
3144
|
+
* @param {*} [options] Override http request option.
|
|
3145
|
+
* @throws {RequiredError}
|
|
3146
|
+
*/
|
|
3147
|
+
updateCustomer(requestParameters, options) {
|
|
3148
|
+
return localVarFp.updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(axios, basePath));
|
|
3149
|
+
},
|
|
3150
|
+
};
|
|
3151
|
+
};
|
|
3152
|
+
exports.UserApiFactory = UserApiFactory;
|
|
3153
|
+
/**
|
|
3154
|
+
* UserApi - object-oriented interface
|
|
3155
|
+
* @export
|
|
3156
|
+
* @class UserApi
|
|
3157
|
+
* @extends {BaseAPI}
|
|
3158
|
+
*/
|
|
3159
|
+
class UserApi extends base_1.BaseAPI {
|
|
3160
|
+
/**
|
|
3161
|
+
*
|
|
3162
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
3163
|
+
* @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
3164
|
+
* @param {*} [options] Override http request option.
|
|
3165
|
+
* @throws {RequiredError}
|
|
3166
|
+
* @memberof UserApi
|
|
3167
|
+
*/
|
|
3168
|
+
subscribeToClub(requestParameters, options) {
|
|
3169
|
+
return (0, exports.UserApiFp)(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3170
|
+
}
|
|
3171
|
+
/**
|
|
3172
|
+
*
|
|
3173
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
3174
|
+
* @param {UserApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
3175
|
+
* @param {*} [options] Override http request option.
|
|
3176
|
+
* @throws {RequiredError}
|
|
3177
|
+
* @memberof UserApi
|
|
3178
|
+
*/
|
|
3179
|
+
updateCustomer(requestParameters, options) {
|
|
3180
|
+
return (0, exports.UserApiFp)(this.configuration).updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
exports.UserApi = UserApi;
|
|
3213
3184
|
/**
|
|
3214
3185
|
* UserAuthenticationApi - axios parameter creator
|
|
3215
3186
|
* @export
|
|
@@ -3566,6 +3537,39 @@ const UserBookingsApiAxiosParamCreator = function (configuration) {
|
|
|
3566
3537
|
options: localVarRequestOptions,
|
|
3567
3538
|
};
|
|
3568
3539
|
}),
|
|
3540
|
+
/**
|
|
3541
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3542
|
+
* @summary Créer une réservation
|
|
3543
|
+
* @param {CreateBookingRequest} createBookingRequest
|
|
3544
|
+
* @param {*} [options] Override http request option.
|
|
3545
|
+
* @throws {RequiredError}
|
|
3546
|
+
*/
|
|
3547
|
+
createBooking: (createBookingRequest_1, ...args_1) => __awaiter(this, [createBookingRequest_1, ...args_1], void 0, function* (createBookingRequest, options = {}) {
|
|
3548
|
+
// verify required parameter 'createBookingRequest' is not null or undefined
|
|
3549
|
+
(0, common_1.assertParamExists)('createBooking', 'createBookingRequest', createBookingRequest);
|
|
3550
|
+
const localVarPath = `/api/bookings`;
|
|
3551
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3552
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3553
|
+
let baseOptions;
|
|
3554
|
+
if (configuration) {
|
|
3555
|
+
baseOptions = configuration.baseOptions;
|
|
3556
|
+
}
|
|
3557
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3558
|
+
const localVarHeaderParameter = {};
|
|
3559
|
+
const localVarQueryParameter = {};
|
|
3560
|
+
// authentication bearerAuth required
|
|
3561
|
+
// http bearer authentication required
|
|
3562
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3563
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3564
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3565
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3566
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3567
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBookingRequest, localVarRequestOptions, configuration);
|
|
3568
|
+
return {
|
|
3569
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3570
|
+
options: localVarRequestOptions,
|
|
3571
|
+
};
|
|
3572
|
+
}),
|
|
3569
3573
|
};
|
|
3570
3574
|
};
|
|
3571
3575
|
exports.UserBookingsApiAxiosParamCreator = UserBookingsApiAxiosParamCreator;
|
|
@@ -3592,6 +3596,22 @@ const UserBookingsApiFp = function (configuration) {
|
|
|
3592
3596
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3593
3597
|
});
|
|
3594
3598
|
},
|
|
3599
|
+
/**
|
|
3600
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3601
|
+
* @summary Créer une réservation
|
|
3602
|
+
* @param {CreateBookingRequest} createBookingRequest
|
|
3603
|
+
* @param {*} [options] Override http request option.
|
|
3604
|
+
* @throws {RequiredError}
|
|
3605
|
+
*/
|
|
3606
|
+
createBooking(createBookingRequest, options) {
|
|
3607
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3608
|
+
var _a, _b, _c;
|
|
3609
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBooking(createBookingRequest, options);
|
|
3610
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3611
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserBookingsApi.createBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3612
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3613
|
+
});
|
|
3614
|
+
},
|
|
3595
3615
|
};
|
|
3596
3616
|
};
|
|
3597
3617
|
exports.UserBookingsApiFp = UserBookingsApiFp;
|
|
@@ -3612,6 +3632,16 @@ const UserBookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
3612
3632
|
blockSlot(requestParameters, options) {
|
|
3613
3633
|
return localVarFp.blockSlot(requestParameters.slotId, options).then((request) => request(axios, basePath));
|
|
3614
3634
|
},
|
|
3635
|
+
/**
|
|
3636
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3637
|
+
* @summary Créer une réservation
|
|
3638
|
+
* @param {UserBookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
3639
|
+
* @param {*} [options] Override http request option.
|
|
3640
|
+
* @throws {RequiredError}
|
|
3641
|
+
*/
|
|
3642
|
+
createBooking(requestParameters, options) {
|
|
3643
|
+
return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
|
|
3644
|
+
},
|
|
3615
3645
|
};
|
|
3616
3646
|
};
|
|
3617
3647
|
exports.UserBookingsApiFactory = UserBookingsApiFactory;
|
|
@@ -3633,6 +3663,17 @@ class UserBookingsApi extends base_1.BaseAPI {
|
|
|
3633
3663
|
blockSlot(requestParameters, options) {
|
|
3634
3664
|
return (0, exports.UserBookingsApiFp)(this.configuration).blockSlot(requestParameters.slotId, options).then((request) => request(this.axios, this.basePath));
|
|
3635
3665
|
}
|
|
3666
|
+
/**
|
|
3667
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3668
|
+
* @summary Créer une réservation
|
|
3669
|
+
* @param {UserBookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
3670
|
+
* @param {*} [options] Override http request option.
|
|
3671
|
+
* @throws {RequiredError}
|
|
3672
|
+
* @memberof UserBookingsApi
|
|
3673
|
+
*/
|
|
3674
|
+
createBooking(requestParameters, options) {
|
|
3675
|
+
return (0, exports.UserBookingsApiFp)(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3676
|
+
}
|
|
3636
3677
|
}
|
|
3637
3678
|
exports.UserBookingsApi = UserBookingsApi;
|
|
3638
3679
|
/**
|
|
@@ -3755,16 +3796,104 @@ const UserClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
3755
3796
|
return {
|
|
3756
3797
|
/**
|
|
3757
3798
|
*
|
|
3758
|
-
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
3759
|
-
* @param {string} clubID ID du club
|
|
3799
|
+
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
3800
|
+
* @param {string} clubID ID du club
|
|
3801
|
+
* @param {*} [options] Override http request option.
|
|
3802
|
+
* @throws {RequiredError}
|
|
3803
|
+
*/
|
|
3804
|
+
getAvailableSlotsByClub: (clubID_1, ...args_1) => __awaiter(this, [clubID_1, ...args_1], void 0, function* (clubID, options = {}) {
|
|
3805
|
+
// verify required parameter 'clubID' is not null or undefined
|
|
3806
|
+
(0, common_1.assertParamExists)('getAvailableSlotsByClub', 'clubID', clubID);
|
|
3807
|
+
const localVarPath = `/api/clubs/{clubID}/availableSlots`
|
|
3808
|
+
.replace(`{${"clubID"}}`, encodeURIComponent(String(clubID)));
|
|
3809
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3810
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3811
|
+
let baseOptions;
|
|
3812
|
+
if (configuration) {
|
|
3813
|
+
baseOptions = configuration.baseOptions;
|
|
3814
|
+
}
|
|
3815
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3816
|
+
const localVarHeaderParameter = {};
|
|
3817
|
+
const localVarQueryParameter = {};
|
|
3818
|
+
// authentication bearerAuth required
|
|
3819
|
+
// http bearer authentication required
|
|
3820
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3821
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3822
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3823
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3824
|
+
return {
|
|
3825
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3826
|
+
options: localVarRequestOptions,
|
|
3827
|
+
};
|
|
3828
|
+
}),
|
|
3829
|
+
/**
|
|
3830
|
+
*
|
|
3831
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
3832
|
+
* @param {string} id ID du club
|
|
3833
|
+
* @param {string} sportId ID du sport
|
|
3834
|
+
* @param {string} [start] Date de début (format ISO)
|
|
3835
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
3836
|
+
* @param {*} [options] Override http request option.
|
|
3837
|
+
* @throws {RequiredError}
|
|
3838
|
+
*/
|
|
3839
|
+
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 = {}) {
|
|
3840
|
+
// verify required parameter 'id' is not null or undefined
|
|
3841
|
+
(0, common_1.assertParamExists)('getAvailableSlotsBySports', 'id', id);
|
|
3842
|
+
// verify required parameter 'sportId' is not null or undefined
|
|
3843
|
+
(0, common_1.assertParamExists)('getAvailableSlotsBySports', 'sportId', sportId);
|
|
3844
|
+
const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots`
|
|
3845
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3846
|
+
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
|
|
3847
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3848
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3849
|
+
let baseOptions;
|
|
3850
|
+
if (configuration) {
|
|
3851
|
+
baseOptions = configuration.baseOptions;
|
|
3852
|
+
}
|
|
3853
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3854
|
+
const localVarHeaderParameter = {};
|
|
3855
|
+
const localVarQueryParameter = {};
|
|
3856
|
+
// authentication bearerAuth required
|
|
3857
|
+
// http bearer authentication required
|
|
3858
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3859
|
+
if (start !== undefined) {
|
|
3860
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
3861
|
+
start.toISOString() :
|
|
3862
|
+
start;
|
|
3863
|
+
}
|
|
3864
|
+
if (end !== undefined) {
|
|
3865
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
3866
|
+
end.toISOString() :
|
|
3867
|
+
end;
|
|
3868
|
+
}
|
|
3869
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3870
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3871
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3872
|
+
return {
|
|
3873
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3874
|
+
options: localVarRequestOptions,
|
|
3875
|
+
};
|
|
3876
|
+
}),
|
|
3877
|
+
/**
|
|
3878
|
+
*
|
|
3879
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
3880
|
+
* @param {string} id ID du club
|
|
3881
|
+
* @param {string} sportId ID du sport
|
|
3882
|
+
* @param {string} day Date du jour (format YYYY-MM-DD)
|
|
3760
3883
|
* @param {*} [options] Override http request option.
|
|
3761
3884
|
* @throws {RequiredError}
|
|
3762
3885
|
*/
|
|
3763
|
-
|
|
3764
|
-
// verify required parameter '
|
|
3765
|
-
(0, common_1.assertParamExists)('
|
|
3766
|
-
|
|
3767
|
-
|
|
3886
|
+
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 = {}) {
|
|
3887
|
+
// verify required parameter 'id' is not null or undefined
|
|
3888
|
+
(0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'id', id);
|
|
3889
|
+
// verify required parameter 'sportId' is not null or undefined
|
|
3890
|
+
(0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'sportId', sportId);
|
|
3891
|
+
// verify required parameter 'day' is not null or undefined
|
|
3892
|
+
(0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'day', day);
|
|
3893
|
+
const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots/{day}`
|
|
3894
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3895
|
+
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)))
|
|
3896
|
+
.replace(`{${"day"}}`, encodeURIComponent(String(day)));
|
|
3768
3897
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3769
3898
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3770
3899
|
let baseOptions;
|
|
@@ -3811,6 +3940,43 @@ const UserClubSlotsApiFp = function (configuration) {
|
|
|
3811
3940
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3812
3941
|
});
|
|
3813
3942
|
},
|
|
3943
|
+
/**
|
|
3944
|
+
*
|
|
3945
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
3946
|
+
* @param {string} id ID du club
|
|
3947
|
+
* @param {string} sportId ID du sport
|
|
3948
|
+
* @param {string} [start] Date de début (format ISO)
|
|
3949
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
3950
|
+
* @param {*} [options] Override http request option.
|
|
3951
|
+
* @throws {RequiredError}
|
|
3952
|
+
*/
|
|
3953
|
+
getAvailableSlotsBySports(id, sportId, start, end, options) {
|
|
3954
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3955
|
+
var _a, _b, _c;
|
|
3956
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsBySports(id, sportId, start, end, options);
|
|
3957
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3958
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubSlotsApi.getAvailableSlotsBySports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3959
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3960
|
+
});
|
|
3961
|
+
},
|
|
3962
|
+
/**
|
|
3963
|
+
*
|
|
3964
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
3965
|
+
* @param {string} id ID du club
|
|
3966
|
+
* @param {string} sportId ID du sport
|
|
3967
|
+
* @param {string} day Date du jour (format YYYY-MM-DD)
|
|
3968
|
+
* @param {*} [options] Override http request option.
|
|
3969
|
+
* @throws {RequiredError}
|
|
3970
|
+
*/
|
|
3971
|
+
getAvailableSlotsBySportsAndDay(id, sportId, day, options) {
|
|
3972
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3973
|
+
var _a, _b, _c;
|
|
3974
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsBySportsAndDay(id, sportId, day, options);
|
|
3975
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3976
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubSlotsApi.getAvailableSlotsBySportsAndDay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3977
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3978
|
+
});
|
|
3979
|
+
},
|
|
3814
3980
|
};
|
|
3815
3981
|
};
|
|
3816
3982
|
exports.UserClubSlotsApiFp = UserClubSlotsApiFp;
|
|
@@ -3831,6 +3997,26 @@ const UserClubSlotsApiFactory = function (configuration, basePath, axios) {
|
|
|
3831
3997
|
getAvailableSlotsByClub(requestParameters, options) {
|
|
3832
3998
|
return localVarFp.getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(axios, basePath));
|
|
3833
3999
|
},
|
|
4000
|
+
/**
|
|
4001
|
+
*
|
|
4002
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
4003
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
|
|
4004
|
+
* @param {*} [options] Override http request option.
|
|
4005
|
+
* @throws {RequiredError}
|
|
4006
|
+
*/
|
|
4007
|
+
getAvailableSlotsBySports(requestParameters, options) {
|
|
4008
|
+
return localVarFp.getAvailableSlotsBySports(requestParameters.id, requestParameters.sportId, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
4009
|
+
},
|
|
4010
|
+
/**
|
|
4011
|
+
*
|
|
4012
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
4013
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsAndDayRequest} requestParameters Request parameters.
|
|
4014
|
+
* @param {*} [options] Override http request option.
|
|
4015
|
+
* @throws {RequiredError}
|
|
4016
|
+
*/
|
|
4017
|
+
getAvailableSlotsBySportsAndDay(requestParameters, options) {
|
|
4018
|
+
return localVarFp.getAvailableSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(axios, basePath));
|
|
4019
|
+
},
|
|
3834
4020
|
};
|
|
3835
4021
|
};
|
|
3836
4022
|
exports.UserClubSlotsApiFactory = UserClubSlotsApiFactory;
|
|
@@ -3852,6 +4038,28 @@ class UserClubSlotsApi extends base_1.BaseAPI {
|
|
|
3852
4038
|
getAvailableSlotsByClub(requestParameters, options) {
|
|
3853
4039
|
return (0, exports.UserClubSlotsApiFp)(this.configuration).getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(this.axios, this.basePath));
|
|
3854
4040
|
}
|
|
4041
|
+
/**
|
|
4042
|
+
*
|
|
4043
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
4044
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
|
|
4045
|
+
* @param {*} [options] Override http request option.
|
|
4046
|
+
* @throws {RequiredError}
|
|
4047
|
+
* @memberof UserClubSlotsApi
|
|
4048
|
+
*/
|
|
4049
|
+
getAvailableSlotsBySports(requestParameters, options) {
|
|
4050
|
+
return (0, exports.UserClubSlotsApiFp)(this.configuration).getAvailableSlotsBySports(requestParameters.id, requestParameters.sportId, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
4051
|
+
}
|
|
4052
|
+
/**
|
|
4053
|
+
*
|
|
4054
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
4055
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsAndDayRequest} requestParameters Request parameters.
|
|
4056
|
+
* @param {*} [options] Override http request option.
|
|
4057
|
+
* @throws {RequiredError}
|
|
4058
|
+
* @memberof UserClubSlotsApi
|
|
4059
|
+
*/
|
|
4060
|
+
getAvailableSlotsBySportsAndDay(requestParameters, options) {
|
|
4061
|
+
return (0, exports.UserClubSlotsApiFp)(this.configuration).getAvailableSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(this.axios, this.basePath));
|
|
4062
|
+
}
|
|
3855
4063
|
}
|
|
3856
4064
|
exports.UserClubSlotsApi = UserClubSlotsApi;
|
|
3857
4065
|
/**
|
|
@@ -4006,61 +4214,239 @@ const UserClubsApiFp = function (configuration) {
|
|
|
4006
4214
|
const localVarAxiosParamCreator = (0, exports.UserClubsApiAxiosParamCreator)(configuration);
|
|
4007
4215
|
return {
|
|
4008
4216
|
/**
|
|
4009
|
-
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
4010
|
-
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
4217
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
4218
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
4219
|
+
* @param {*} [options] Override http request option.
|
|
4220
|
+
* @throws {RequiredError}
|
|
4221
|
+
*/
|
|
4222
|
+
getActiveClubs(options) {
|
|
4223
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4224
|
+
var _a, _b, _c;
|
|
4225
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getActiveClubs(options);
|
|
4226
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4227
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubsApi.getActiveClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4228
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4229
|
+
});
|
|
4230
|
+
},
|
|
4231
|
+
};
|
|
4232
|
+
};
|
|
4233
|
+
exports.UserClubsApiFp = UserClubsApiFp;
|
|
4234
|
+
/**
|
|
4235
|
+
* UserClubsApi - factory interface
|
|
4236
|
+
* @export
|
|
4237
|
+
*/
|
|
4238
|
+
const UserClubsApiFactory = function (configuration, basePath, axios) {
|
|
4239
|
+
const localVarFp = (0, exports.UserClubsApiFp)(configuration);
|
|
4240
|
+
return {
|
|
4241
|
+
/**
|
|
4242
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
4243
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
4244
|
+
* @param {*} [options] Override http request option.
|
|
4245
|
+
* @throws {RequiredError}
|
|
4246
|
+
*/
|
|
4247
|
+
getActiveClubs(options) {
|
|
4248
|
+
return localVarFp.getActiveClubs(options).then((request) => request(axios, basePath));
|
|
4249
|
+
},
|
|
4250
|
+
};
|
|
4251
|
+
};
|
|
4252
|
+
exports.UserClubsApiFactory = UserClubsApiFactory;
|
|
4253
|
+
/**
|
|
4254
|
+
* UserClubsApi - object-oriented interface
|
|
4255
|
+
* @export
|
|
4256
|
+
* @class UserClubsApi
|
|
4257
|
+
* @extends {BaseAPI}
|
|
4258
|
+
*/
|
|
4259
|
+
class UserClubsApi extends base_1.BaseAPI {
|
|
4260
|
+
/**
|
|
4261
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
4262
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
4263
|
+
* @param {*} [options] Override http request option.
|
|
4264
|
+
* @throws {RequiredError}
|
|
4265
|
+
* @memberof UserClubsApi
|
|
4266
|
+
*/
|
|
4267
|
+
getActiveClubs(options) {
|
|
4268
|
+
return (0, exports.UserClubsApiFp)(this.configuration).getActiveClubs(options).then((request) => request(this.axios, this.basePath));
|
|
4269
|
+
}
|
|
4270
|
+
}
|
|
4271
|
+
exports.UserClubsApi = UserClubsApi;
|
|
4272
|
+
/**
|
|
4273
|
+
* UserPaymentApi - axios parameter creator
|
|
4274
|
+
* @export
|
|
4275
|
+
*/
|
|
4276
|
+
const UserPaymentApiAxiosParamCreator = function (configuration) {
|
|
4277
|
+
return {
|
|
4278
|
+
/**
|
|
4279
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
4280
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
4281
|
+
* @param {ConfirmPaymentMethodSetupRequestBody} confirmPaymentMethodSetupRequestBody
|
|
4282
|
+
* @param {*} [options] Override http request option.
|
|
4283
|
+
* @throws {RequiredError}
|
|
4284
|
+
*/
|
|
4285
|
+
confirmPaymentMethodSetup: (confirmPaymentMethodSetupRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodSetupRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodSetupRequestBody, options = {}) {
|
|
4286
|
+
// verify required parameter 'confirmPaymentMethodSetupRequestBody' is not null or undefined
|
|
4287
|
+
(0, common_1.assertParamExists)('confirmPaymentMethodSetup', 'confirmPaymentMethodSetupRequestBody', confirmPaymentMethodSetupRequestBody);
|
|
4288
|
+
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
4289
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4290
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4291
|
+
let baseOptions;
|
|
4292
|
+
if (configuration) {
|
|
4293
|
+
baseOptions = configuration.baseOptions;
|
|
4294
|
+
}
|
|
4295
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4296
|
+
const localVarHeaderParameter = {};
|
|
4297
|
+
const localVarQueryParameter = {};
|
|
4298
|
+
// authentication bearerAuth required
|
|
4299
|
+
// http bearer authentication required
|
|
4300
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4301
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4302
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4303
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4304
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4305
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(confirmPaymentMethodSetupRequestBody, localVarRequestOptions, configuration);
|
|
4306
|
+
return {
|
|
4307
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4308
|
+
options: localVarRequestOptions,
|
|
4309
|
+
};
|
|
4310
|
+
}),
|
|
4311
|
+
/**
|
|
4312
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
4313
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
4314
|
+
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
4315
|
+
* @param {*} [options] Override http request option.
|
|
4316
|
+
* @throws {RequiredError}
|
|
4317
|
+
*/
|
|
4318
|
+
setupPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
4319
|
+
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
4320
|
+
(0, common_1.assertParamExists)('setupPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
4321
|
+
const localVarPath = `/api/users/setupPaymentMethod`;
|
|
4322
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4323
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4324
|
+
let baseOptions;
|
|
4325
|
+
if (configuration) {
|
|
4326
|
+
baseOptions = configuration.baseOptions;
|
|
4327
|
+
}
|
|
4328
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4329
|
+
const localVarHeaderParameter = {};
|
|
4330
|
+
const localVarQueryParameter = {};
|
|
4331
|
+
// authentication bearerAuth required
|
|
4332
|
+
// http bearer authentication required
|
|
4333
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4334
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4335
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4337
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4338
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
4339
|
+
return {
|
|
4340
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4341
|
+
options: localVarRequestOptions,
|
|
4342
|
+
};
|
|
4343
|
+
}),
|
|
4344
|
+
};
|
|
4345
|
+
};
|
|
4346
|
+
exports.UserPaymentApiAxiosParamCreator = UserPaymentApiAxiosParamCreator;
|
|
4347
|
+
/**
|
|
4348
|
+
* UserPaymentApi - functional programming interface
|
|
4349
|
+
* @export
|
|
4350
|
+
*/
|
|
4351
|
+
const UserPaymentApiFp = function (configuration) {
|
|
4352
|
+
const localVarAxiosParamCreator = (0, exports.UserPaymentApiAxiosParamCreator)(configuration);
|
|
4353
|
+
return {
|
|
4354
|
+
/**
|
|
4355
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
4356
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
4357
|
+
* @param {ConfirmPaymentMethodSetupRequestBody} confirmPaymentMethodSetupRequestBody
|
|
4011
4358
|
* @param {*} [options] Override http request option.
|
|
4012
4359
|
* @throws {RequiredError}
|
|
4013
4360
|
*/
|
|
4014
|
-
|
|
4361
|
+
confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody, options) {
|
|
4015
4362
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4016
4363
|
var _a, _b, _c;
|
|
4017
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4364
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody, options);
|
|
4018
4365
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4019
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
4366
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPaymentApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4367
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4368
|
+
});
|
|
4369
|
+
},
|
|
4370
|
+
/**
|
|
4371
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
4372
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
4373
|
+
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
4374
|
+
* @param {*} [options] Override http request option.
|
|
4375
|
+
* @throws {RequiredError}
|
|
4376
|
+
*/
|
|
4377
|
+
setupPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
4378
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4379
|
+
var _a, _b, _c;
|
|
4380
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
4381
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4382
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPaymentApi.setupPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4020
4383
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4021
4384
|
});
|
|
4022
4385
|
},
|
|
4023
4386
|
};
|
|
4024
4387
|
};
|
|
4025
|
-
exports.
|
|
4388
|
+
exports.UserPaymentApiFp = UserPaymentApiFp;
|
|
4026
4389
|
/**
|
|
4027
|
-
*
|
|
4390
|
+
* UserPaymentApi - factory interface
|
|
4028
4391
|
* @export
|
|
4029
4392
|
*/
|
|
4030
|
-
const
|
|
4031
|
-
const localVarFp = (0, exports.
|
|
4393
|
+
const UserPaymentApiFactory = function (configuration, basePath, axios) {
|
|
4394
|
+
const localVarFp = (0, exports.UserPaymentApiFp)(configuration);
|
|
4032
4395
|
return {
|
|
4033
4396
|
/**
|
|
4034
|
-
*
|
|
4035
|
-
* @summary
|
|
4397
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
4398
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
4399
|
+
* @param {UserPaymentApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
4036
4400
|
* @param {*} [options] Override http request option.
|
|
4037
4401
|
* @throws {RequiredError}
|
|
4038
4402
|
*/
|
|
4039
|
-
|
|
4040
|
-
return localVarFp.
|
|
4403
|
+
confirmPaymentMethodSetup(requestParameters, options) {
|
|
4404
|
+
return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodSetupRequestBody, options).then((request) => request(axios, basePath));
|
|
4405
|
+
},
|
|
4406
|
+
/**
|
|
4407
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
4408
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
4409
|
+
* @param {UserPaymentApiSetupPaymentMethodRequest} requestParameters Request parameters.
|
|
4410
|
+
* @param {*} [options] Override http request option.
|
|
4411
|
+
* @throws {RequiredError}
|
|
4412
|
+
*/
|
|
4413
|
+
setupPaymentMethod(requestParameters, options) {
|
|
4414
|
+
return localVarFp.setupPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
4041
4415
|
},
|
|
4042
4416
|
};
|
|
4043
4417
|
};
|
|
4044
|
-
exports.
|
|
4418
|
+
exports.UserPaymentApiFactory = UserPaymentApiFactory;
|
|
4045
4419
|
/**
|
|
4046
|
-
*
|
|
4420
|
+
* UserPaymentApi - object-oriented interface
|
|
4047
4421
|
* @export
|
|
4048
|
-
* @class
|
|
4422
|
+
* @class UserPaymentApi
|
|
4049
4423
|
* @extends {BaseAPI}
|
|
4050
4424
|
*/
|
|
4051
|
-
class
|
|
4425
|
+
class UserPaymentApi extends base_1.BaseAPI {
|
|
4052
4426
|
/**
|
|
4053
|
-
*
|
|
4054
|
-
* @summary
|
|
4427
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
4428
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
4429
|
+
* @param {UserPaymentApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
4055
4430
|
* @param {*} [options] Override http request option.
|
|
4056
4431
|
* @throws {RequiredError}
|
|
4057
|
-
* @memberof
|
|
4432
|
+
* @memberof UserPaymentApi
|
|
4058
4433
|
*/
|
|
4059
|
-
|
|
4060
|
-
return (0, exports.
|
|
4434
|
+
confirmPaymentMethodSetup(requestParameters, options) {
|
|
4435
|
+
return (0, exports.UserPaymentApiFp)(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodSetupRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4436
|
+
}
|
|
4437
|
+
/**
|
|
4438
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
4439
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
4440
|
+
* @param {UserPaymentApiSetupPaymentMethodRequest} requestParameters Request parameters.
|
|
4441
|
+
* @param {*} [options] Override http request option.
|
|
4442
|
+
* @throws {RequiredError}
|
|
4443
|
+
* @memberof UserPaymentApi
|
|
4444
|
+
*/
|
|
4445
|
+
setupPaymentMethod(requestParameters, options) {
|
|
4446
|
+
return (0, exports.UserPaymentApiFp)(this.configuration).setupPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4061
4447
|
}
|
|
4062
4448
|
}
|
|
4063
|
-
exports.
|
|
4449
|
+
exports.UserPaymentApi = UserPaymentApi;
|
|
4064
4450
|
/**
|
|
4065
4451
|
* UserProfileApi - axios parameter creator
|
|
4066
4452
|
* @export
|
|
@@ -4168,34 +4554,6 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
4168
4554
|
options: localVarRequestOptions,
|
|
4169
4555
|
};
|
|
4170
4556
|
}),
|
|
4171
|
-
/**
|
|
4172
|
-
*
|
|
4173
|
-
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
4174
|
-
* @param {*} [options] Override http request option.
|
|
4175
|
-
* @throws {RequiredError}
|
|
4176
|
-
*/
|
|
4177
|
-
getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4178
|
-
const localVarPath = `/api/users/me/roles`;
|
|
4179
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4180
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4181
|
-
let baseOptions;
|
|
4182
|
-
if (configuration) {
|
|
4183
|
-
baseOptions = configuration.baseOptions;
|
|
4184
|
-
}
|
|
4185
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4186
|
-
const localVarHeaderParameter = {};
|
|
4187
|
-
const localVarQueryParameter = {};
|
|
4188
|
-
// authentication bearerAuth required
|
|
4189
|
-
// http bearer authentication required
|
|
4190
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4191
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4192
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4193
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4194
|
-
return {
|
|
4195
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4196
|
-
options: localVarRequestOptions,
|
|
4197
|
-
};
|
|
4198
|
-
}),
|
|
4199
4557
|
/**
|
|
4200
4558
|
*
|
|
4201
4559
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4288,21 +4646,6 @@ const UserProfileApiFp = function (configuration) {
|
|
|
4288
4646
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4289
4647
|
});
|
|
4290
4648
|
},
|
|
4291
|
-
/**
|
|
4292
|
-
*
|
|
4293
|
-
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
4294
|
-
* @param {*} [options] Override http request option.
|
|
4295
|
-
* @throws {RequiredError}
|
|
4296
|
-
*/
|
|
4297
|
-
getUserRolesInClubs(options) {
|
|
4298
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4299
|
-
var _a, _b, _c;
|
|
4300
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
|
|
4301
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4302
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4303
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4304
|
-
});
|
|
4305
|
-
},
|
|
4306
4649
|
/**
|
|
4307
4650
|
*
|
|
4308
4651
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4358,15 +4701,6 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
4358
4701
|
getUserInfo(options) {
|
|
4359
4702
|
return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
|
|
4360
4703
|
},
|
|
4361
|
-
/**
|
|
4362
|
-
*
|
|
4363
|
-
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
4364
|
-
* @param {*} [options] Override http request option.
|
|
4365
|
-
* @throws {RequiredError}
|
|
4366
|
-
*/
|
|
4367
|
-
getUserRolesInClubs(options) {
|
|
4368
|
-
return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
|
|
4369
|
-
},
|
|
4370
4704
|
/**
|
|
4371
4705
|
*
|
|
4372
4706
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4419,16 +4753,6 @@ class UserProfileApi extends base_1.BaseAPI {
|
|
|
4419
4753
|
getUserInfo(options) {
|
|
4420
4754
|
return (0, exports.UserProfileApiFp)(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
|
|
4421
4755
|
}
|
|
4422
|
-
/**
|
|
4423
|
-
*
|
|
4424
|
-
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
4425
|
-
* @param {*} [options] Override http request option.
|
|
4426
|
-
* @throws {RequiredError}
|
|
4427
|
-
* @memberof UserProfileApi
|
|
4428
|
-
*/
|
|
4429
|
-
getUserRolesInClubs(options) {
|
|
4430
|
-
return (0, exports.UserProfileApiFp)(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
|
|
4431
|
-
}
|
|
4432
4756
|
/**
|
|
4433
4757
|
*
|
|
4434
4758
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4760,181 +5084,3 @@ class UserSubscriptionsApi extends base_1.BaseAPI {
|
|
|
4760
5084
|
}
|
|
4761
5085
|
}
|
|
4762
5086
|
exports.UserSubscriptionsApi = UserSubscriptionsApi;
|
|
4763
|
-
/**
|
|
4764
|
-
* UsersApi - axios parameter creator
|
|
4765
|
-
* @export
|
|
4766
|
-
*/
|
|
4767
|
-
const UsersApiAxiosParamCreator = function (configuration) {
|
|
4768
|
-
return {
|
|
4769
|
-
/**
|
|
4770
|
-
*
|
|
4771
|
-
* @summary Abonne l\'utilisateur connecté à un club
|
|
4772
|
-
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
4773
|
-
* @param {*} [options] Override http request option.
|
|
4774
|
-
* @throws {RequiredError}
|
|
4775
|
-
*/
|
|
4776
|
-
subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
|
|
4777
|
-
// verify required parameter 'subscribeToClubRequestBody' is not null or undefined
|
|
4778
|
-
(0, common_1.assertParamExists)('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
|
|
4779
|
-
const localVarPath = `/api/users/me/subscribe`;
|
|
4780
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4781
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4782
|
-
let baseOptions;
|
|
4783
|
-
if (configuration) {
|
|
4784
|
-
baseOptions = configuration.baseOptions;
|
|
4785
|
-
}
|
|
4786
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4787
|
-
const localVarHeaderParameter = {};
|
|
4788
|
-
const localVarQueryParameter = {};
|
|
4789
|
-
// authentication bearerAuth required
|
|
4790
|
-
// http bearer authentication required
|
|
4791
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4792
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4793
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4794
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4795
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4796
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscribeToClubRequestBody, localVarRequestOptions, configuration);
|
|
4797
|
-
return {
|
|
4798
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4799
|
-
options: localVarRequestOptions,
|
|
4800
|
-
};
|
|
4801
|
-
}),
|
|
4802
|
-
/**
|
|
4803
|
-
*
|
|
4804
|
-
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
4805
|
-
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
4806
|
-
* @param {*} [options] Override http request option.
|
|
4807
|
-
* @throws {RequiredError}
|
|
4808
|
-
*/
|
|
4809
|
-
updateCustomer: (updateCustomerRequestBody_1, ...args_1) => __awaiter(this, [updateCustomerRequestBody_1, ...args_1], void 0, function* (updateCustomerRequestBody, options = {}) {
|
|
4810
|
-
// verify required parameter 'updateCustomerRequestBody' is not null or undefined
|
|
4811
|
-
(0, common_1.assertParamExists)('updateCustomer', 'updateCustomerRequestBody', updateCustomerRequestBody);
|
|
4812
|
-
const localVarPath = `/api/users/me/customer`;
|
|
4813
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4814
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4815
|
-
let baseOptions;
|
|
4816
|
-
if (configuration) {
|
|
4817
|
-
baseOptions = configuration.baseOptions;
|
|
4818
|
-
}
|
|
4819
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4820
|
-
const localVarHeaderParameter = {};
|
|
4821
|
-
const localVarQueryParameter = {};
|
|
4822
|
-
// authentication bearerAuth required
|
|
4823
|
-
// http bearer authentication required
|
|
4824
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4825
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4826
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4827
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4828
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4829
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequestBody, localVarRequestOptions, configuration);
|
|
4830
|
-
return {
|
|
4831
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4832
|
-
options: localVarRequestOptions,
|
|
4833
|
-
};
|
|
4834
|
-
}),
|
|
4835
|
-
};
|
|
4836
|
-
};
|
|
4837
|
-
exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
4838
|
-
/**
|
|
4839
|
-
* UsersApi - functional programming interface
|
|
4840
|
-
* @export
|
|
4841
|
-
*/
|
|
4842
|
-
const UsersApiFp = function (configuration) {
|
|
4843
|
-
const localVarAxiosParamCreator = (0, exports.UsersApiAxiosParamCreator)(configuration);
|
|
4844
|
-
return {
|
|
4845
|
-
/**
|
|
4846
|
-
*
|
|
4847
|
-
* @summary Abonne l\'utilisateur connecté à un club
|
|
4848
|
-
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
4849
|
-
* @param {*} [options] Override http request option.
|
|
4850
|
-
* @throws {RequiredError}
|
|
4851
|
-
*/
|
|
4852
|
-
subscribeToClub(subscribeToClubRequestBody, options) {
|
|
4853
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4854
|
-
var _a, _b, _c;
|
|
4855
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
|
|
4856
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4857
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.subscribeToClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4858
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4859
|
-
});
|
|
4860
|
-
},
|
|
4861
|
-
/**
|
|
4862
|
-
*
|
|
4863
|
-
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
4864
|
-
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
4865
|
-
* @param {*} [options] Override http request option.
|
|
4866
|
-
* @throws {RequiredError}
|
|
4867
|
-
*/
|
|
4868
|
-
updateCustomer(updateCustomerRequestBody, options) {
|
|
4869
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4870
|
-
var _a, _b, _c;
|
|
4871
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomer(updateCustomerRequestBody, options);
|
|
4872
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4873
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.updateCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4874
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4875
|
-
});
|
|
4876
|
-
},
|
|
4877
|
-
};
|
|
4878
|
-
};
|
|
4879
|
-
exports.UsersApiFp = UsersApiFp;
|
|
4880
|
-
/**
|
|
4881
|
-
* UsersApi - factory interface
|
|
4882
|
-
* @export
|
|
4883
|
-
*/
|
|
4884
|
-
const UsersApiFactory = function (configuration, basePath, axios) {
|
|
4885
|
-
const localVarFp = (0, exports.UsersApiFp)(configuration);
|
|
4886
|
-
return {
|
|
4887
|
-
/**
|
|
4888
|
-
*
|
|
4889
|
-
* @summary Abonne l\'utilisateur connecté à un club
|
|
4890
|
-
* @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
4891
|
-
* @param {*} [options] Override http request option.
|
|
4892
|
-
* @throws {RequiredError}
|
|
4893
|
-
*/
|
|
4894
|
-
subscribeToClub(requestParameters, options) {
|
|
4895
|
-
return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
|
|
4896
|
-
},
|
|
4897
|
-
/**
|
|
4898
|
-
*
|
|
4899
|
-
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
4900
|
-
* @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
4901
|
-
* @param {*} [options] Override http request option.
|
|
4902
|
-
* @throws {RequiredError}
|
|
4903
|
-
*/
|
|
4904
|
-
updateCustomer(requestParameters, options) {
|
|
4905
|
-
return localVarFp.updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(axios, basePath));
|
|
4906
|
-
},
|
|
4907
|
-
};
|
|
4908
|
-
};
|
|
4909
|
-
exports.UsersApiFactory = UsersApiFactory;
|
|
4910
|
-
/**
|
|
4911
|
-
* UsersApi - object-oriented interface
|
|
4912
|
-
* @export
|
|
4913
|
-
* @class UsersApi
|
|
4914
|
-
* @extends {BaseAPI}
|
|
4915
|
-
*/
|
|
4916
|
-
class UsersApi extends base_1.BaseAPI {
|
|
4917
|
-
/**
|
|
4918
|
-
*
|
|
4919
|
-
* @summary Abonne l\'utilisateur connecté à un club
|
|
4920
|
-
* @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
4921
|
-
* @param {*} [options] Override http request option.
|
|
4922
|
-
* @throws {RequiredError}
|
|
4923
|
-
* @memberof UsersApi
|
|
4924
|
-
*/
|
|
4925
|
-
subscribeToClub(requestParameters, options) {
|
|
4926
|
-
return (0, exports.UsersApiFp)(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4927
|
-
}
|
|
4928
|
-
/**
|
|
4929
|
-
*
|
|
4930
|
-
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
4931
|
-
* @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
4932
|
-
* @param {*} [options] Override http request option.
|
|
4933
|
-
* @throws {RequiredError}
|
|
4934
|
-
* @memberof UsersApi
|
|
4935
|
-
*/
|
|
4936
|
-
updateCustomer(requestParameters, options) {
|
|
4937
|
-
return (0, exports.UsersApiFp)(this.configuration).updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4938
|
-
}
|
|
4939
|
-
}
|
|
4940
|
-
exports.UsersApi = UsersApi;
|