@tennac-booking/sdk 1.0.14 → 1.0.15
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 +8 -9
- package/README.md +24 -24
- package/api.ts +1597 -1636
- package/dist/api.d.ts +901 -927
- package/dist/api.js +1248 -1287
- package/dist/esm/api.d.ts +901 -927
- package/dist/esm/api.js +1200 -1234
- 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/{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/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,8 @@ 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.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = 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.
|
|
27
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = void 0;
|
|
25
|
+
exports.StaffClubSettingsApiFp = exports.StaffClubSettingsApiAxiosParamCreator = 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.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.BookingStatus = void 0;
|
|
26
|
+
exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = 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 = void 0;
|
|
28
27
|
const axios_1 = require("axios");
|
|
29
28
|
// Some imports not used depending on template conditions
|
|
30
29
|
// @ts-ignore
|
|
@@ -373,130 +372,25 @@ class AdminClubsApi extends base_1.BaseAPI {
|
|
|
373
372
|
}
|
|
374
373
|
exports.AdminClubsApi = AdminClubsApi;
|
|
375
374
|
/**
|
|
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
|
|
375
|
+
* ManagerClubCourtsApi - axios parameter creator
|
|
485
376
|
* @export
|
|
486
377
|
*/
|
|
487
|
-
const
|
|
378
|
+
const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
488
379
|
return {
|
|
489
380
|
/**
|
|
490
381
|
*
|
|
491
|
-
* @summary
|
|
382
|
+
* @summary Créer un terrain pour un club
|
|
492
383
|
* @param {string} id ID du club
|
|
384
|
+
* @param {CreateCourtRequest} createCourtRequest
|
|
493
385
|
* @param {*} [options] Override http request option.
|
|
494
386
|
* @throws {RequiredError}
|
|
495
387
|
*/
|
|
496
|
-
|
|
388
|
+
createCourtForClub: (id_1, createCourtRequest_1, ...args_1) => __awaiter(this, [id_1, createCourtRequest_1, ...args_1], void 0, function* (id, createCourtRequest, options = {}) {
|
|
497
389
|
// verify required parameter 'id' is not null or undefined
|
|
498
|
-
(0, common_1.assertParamExists)('
|
|
499
|
-
|
|
390
|
+
(0, common_1.assertParamExists)('createCourtForClub', 'id', id);
|
|
391
|
+
// verify required parameter 'createCourtRequest' is not null or undefined
|
|
392
|
+
(0, common_1.assertParamExists)('createCourtForClub', 'createCourtRequest', createCourtRequest);
|
|
393
|
+
const localVarPath = `/api/clubs/{id}/courts`
|
|
500
394
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
501
395
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
502
396
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -504,15 +398,17 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
504
398
|
if (configuration) {
|
|
505
399
|
baseOptions = configuration.baseOptions;
|
|
506
400
|
}
|
|
507
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
401
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
508
402
|
const localVarHeaderParameter = {};
|
|
509
403
|
const localVarQueryParameter = {};
|
|
510
404
|
// authentication bearerAuth required
|
|
511
405
|
// http bearer authentication required
|
|
512
406
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
407
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
513
408
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
514
409
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
515
410
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
411
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCourtRequest, localVarRequestOptions, configuration);
|
|
516
412
|
return {
|
|
517
413
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
518
414
|
options: localVarRequestOptions,
|
|
@@ -520,15 +416,15 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
520
416
|
}),
|
|
521
417
|
/**
|
|
522
418
|
*
|
|
523
|
-
* @summary
|
|
419
|
+
* @summary Récupérer tous les terrains pour un club
|
|
524
420
|
* @param {string} id ID du club
|
|
525
421
|
* @param {*} [options] Override http request option.
|
|
526
422
|
* @throws {RequiredError}
|
|
527
423
|
*/
|
|
528
|
-
|
|
424
|
+
getCourtsByClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
529
425
|
// verify required parameter 'id' is not null or undefined
|
|
530
|
-
(0, common_1.assertParamExists)('
|
|
531
|
-
const localVarPath = `/api/clubs/{id}/
|
|
426
|
+
(0, common_1.assertParamExists)('getCourtsByClub', 'id', id);
|
|
427
|
+
const localVarPath = `/api/clubs/{id}/courts`
|
|
532
428
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
533
429
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
534
430
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -552,222 +448,116 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
552
448
|
}),
|
|
553
449
|
};
|
|
554
450
|
};
|
|
555
|
-
exports.
|
|
451
|
+
exports.ManagerClubCourtsApiAxiosParamCreator = ManagerClubCourtsApiAxiosParamCreator;
|
|
556
452
|
/**
|
|
557
|
-
*
|
|
453
|
+
* ManagerClubCourtsApi - functional programming interface
|
|
558
454
|
* @export
|
|
559
455
|
*/
|
|
560
|
-
const
|
|
561
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
456
|
+
const ManagerClubCourtsApiFp = function (configuration) {
|
|
457
|
+
const localVarAxiosParamCreator = (0, exports.ManagerClubCourtsApiAxiosParamCreator)(configuration);
|
|
562
458
|
return {
|
|
563
459
|
/**
|
|
564
460
|
*
|
|
565
|
-
* @summary
|
|
461
|
+
* @summary Créer un terrain pour un club
|
|
566
462
|
* @param {string} id ID du club
|
|
463
|
+
* @param {CreateCourtRequest} createCourtRequest
|
|
567
464
|
* @param {*} [options] Override http request option.
|
|
568
465
|
* @throws {RequiredError}
|
|
569
466
|
*/
|
|
570
|
-
|
|
467
|
+
createCourtForClub(id, createCourtRequest, options) {
|
|
571
468
|
return __awaiter(this, void 0, void 0, function* () {
|
|
572
469
|
var _a, _b, _c;
|
|
573
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
470
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCourtForClub(id, createCourtRequest, options);
|
|
574
471
|
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['
|
|
472
|
+
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
473
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
577
474
|
});
|
|
578
475
|
},
|
|
579
476
|
/**
|
|
580
477
|
*
|
|
581
|
-
* @summary
|
|
478
|
+
* @summary Récupérer tous les terrains pour un club
|
|
582
479
|
* @param {string} id ID du club
|
|
583
480
|
* @param {*} [options] Override http request option.
|
|
584
481
|
* @throws {RequiredError}
|
|
585
482
|
*/
|
|
586
|
-
|
|
483
|
+
getCourtsByClub(id, options) {
|
|
587
484
|
return __awaiter(this, void 0, void 0, function* () {
|
|
588
485
|
var _a, _b, _c;
|
|
589
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
486
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClub(id, options);
|
|
590
487
|
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['
|
|
488
|
+
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
489
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
593
490
|
});
|
|
594
491
|
},
|
|
595
492
|
};
|
|
596
493
|
};
|
|
597
|
-
exports.
|
|
494
|
+
exports.ManagerClubCourtsApiFp = ManagerClubCourtsApiFp;
|
|
598
495
|
/**
|
|
599
|
-
*
|
|
496
|
+
* ManagerClubCourtsApi - factory interface
|
|
600
497
|
* @export
|
|
601
498
|
*/
|
|
602
|
-
const
|
|
603
|
-
const localVarFp = (0, exports.
|
|
499
|
+
const ManagerClubCourtsApiFactory = function (configuration, basePath, axios) {
|
|
500
|
+
const localVarFp = (0, exports.ManagerClubCourtsApiFp)(configuration);
|
|
604
501
|
return {
|
|
605
502
|
/**
|
|
606
503
|
*
|
|
607
|
-
* @summary
|
|
608
|
-
* @param {
|
|
504
|
+
* @summary Créer un terrain pour un club
|
|
505
|
+
* @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
|
|
609
506
|
* @param {*} [options] Override http request option.
|
|
610
507
|
* @throws {RequiredError}
|
|
611
508
|
*/
|
|
612
|
-
|
|
613
|
-
return localVarFp.
|
|
509
|
+
createCourtForClub(requestParameters, options) {
|
|
510
|
+
return localVarFp.createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(axios, basePath));
|
|
614
511
|
},
|
|
615
512
|
/**
|
|
616
513
|
*
|
|
617
|
-
* @summary
|
|
618
|
-
* @param {
|
|
514
|
+
* @summary Récupérer tous les terrains pour un club
|
|
515
|
+
* @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
|
|
619
516
|
* @param {*} [options] Override http request option.
|
|
620
517
|
* @throws {RequiredError}
|
|
621
518
|
*/
|
|
622
|
-
|
|
623
|
-
return localVarFp.
|
|
519
|
+
getCourtsByClub(requestParameters, options) {
|
|
520
|
+
return localVarFp.getCourtsByClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
624
521
|
},
|
|
625
522
|
};
|
|
626
523
|
};
|
|
627
|
-
exports.
|
|
524
|
+
exports.ManagerClubCourtsApiFactory = ManagerClubCourtsApiFactory;
|
|
628
525
|
/**
|
|
629
|
-
*
|
|
526
|
+
* ManagerClubCourtsApi - object-oriented interface
|
|
630
527
|
* @export
|
|
631
|
-
* @class
|
|
528
|
+
* @class ManagerClubCourtsApi
|
|
632
529
|
* @extends {BaseAPI}
|
|
633
530
|
*/
|
|
634
|
-
class
|
|
635
|
-
/**
|
|
636
|
-
*
|
|
637
|
-
* @summary Get monthly turnover for the last six months
|
|
638
|
-
* @param {ClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
|
|
639
|
-
* @param {*} [options] Override http request option.
|
|
640
|
-
* @throws {RequiredError}
|
|
641
|
-
* @memberof ClubAnalyticsApi
|
|
642
|
-
*/
|
|
643
|
-
getLastSixMonthsTurnover(requestParameters, options) {
|
|
644
|
-
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
645
|
-
}
|
|
531
|
+
class ManagerClubCourtsApi extends base_1.BaseAPI {
|
|
646
532
|
/**
|
|
647
533
|
*
|
|
648
|
-
* @summary
|
|
649
|
-
* @param {
|
|
534
|
+
* @summary Créer un terrain pour un club
|
|
535
|
+
* @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
|
|
650
536
|
* @param {*} [options] Override http request option.
|
|
651
537
|
* @throws {RequiredError}
|
|
652
|
-
* @memberof
|
|
538
|
+
* @memberof ManagerClubCourtsApi
|
|
653
539
|
*/
|
|
654
|
-
|
|
655
|
-
return (0, exports.
|
|
540
|
+
createCourtForClub(requestParameters, options) {
|
|
541
|
+
return (0, exports.ManagerClubCourtsApiFp)(this.configuration).createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(this.axios, this.basePath));
|
|
656
542
|
}
|
|
657
|
-
}
|
|
658
|
-
exports.ClubAnalyticsApi = ClubAnalyticsApi;
|
|
659
|
-
/**
|
|
660
|
-
* ClubBookingsApi - axios parameter creator
|
|
661
|
-
* @export
|
|
662
|
-
*/
|
|
663
|
-
const ClubBookingsApiAxiosParamCreator = function (configuration) {
|
|
664
|
-
return {
|
|
665
|
-
/**
|
|
666
|
-
*
|
|
667
|
-
* @summary Get the ten next bookings for the club
|
|
668
|
-
* @param {string} id ID du club
|
|
669
|
-
* @param {*} [options] Override http request option.
|
|
670
|
-
* @throws {RequiredError}
|
|
671
|
-
*/
|
|
672
|
-
getTenNextBookings: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
673
|
-
// verify required parameter 'id' is not null or undefined
|
|
674
|
-
(0, common_1.assertParamExists)('getTenNextBookings', 'id', id);
|
|
675
|
-
const localVarPath = `/api/clubs/{id}/next-bookings`
|
|
676
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
677
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
678
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
679
|
-
let baseOptions;
|
|
680
|
-
if (configuration) {
|
|
681
|
-
baseOptions = configuration.baseOptions;
|
|
682
|
-
}
|
|
683
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
684
|
-
const localVarHeaderParameter = {};
|
|
685
|
-
const localVarQueryParameter = {};
|
|
686
|
-
// authentication bearerAuth required
|
|
687
|
-
// http bearer authentication required
|
|
688
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
689
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
690
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
691
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
692
|
-
return {
|
|
693
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
694
|
-
options: localVarRequestOptions,
|
|
695
|
-
};
|
|
696
|
-
}),
|
|
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
543
|
/**
|
|
754
544
|
*
|
|
755
|
-
* @summary
|
|
756
|
-
* @param {
|
|
545
|
+
* @summary Récupérer tous les terrains pour un club
|
|
546
|
+
* @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
|
|
757
547
|
* @param {*} [options] Override http request option.
|
|
758
548
|
* @throws {RequiredError}
|
|
759
|
-
* @memberof
|
|
549
|
+
* @memberof ManagerClubCourtsApi
|
|
760
550
|
*/
|
|
761
|
-
|
|
762
|
-
return (0, exports.
|
|
551
|
+
getCourtsByClub(requestParameters, options) {
|
|
552
|
+
return (0, exports.ManagerClubCourtsApiFp)(this.configuration).getCourtsByClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
763
553
|
}
|
|
764
554
|
}
|
|
765
|
-
exports.
|
|
555
|
+
exports.ManagerClubCourtsApi = ManagerClubCourtsApi;
|
|
766
556
|
/**
|
|
767
|
-
*
|
|
557
|
+
* ManagerClubRolesApi - axios parameter creator
|
|
768
558
|
* @export
|
|
769
559
|
*/
|
|
770
|
-
const
|
|
560
|
+
const ManagerClubRolesApiAxiosParamCreator = function (configuration) {
|
|
771
561
|
return {
|
|
772
562
|
/**
|
|
773
563
|
*
|
|
@@ -933,13 +723,13 @@ const ClubRolesApiAxiosParamCreator = function (configuration) {
|
|
|
933
723
|
}),
|
|
934
724
|
};
|
|
935
725
|
};
|
|
936
|
-
exports.
|
|
726
|
+
exports.ManagerClubRolesApiAxiosParamCreator = ManagerClubRolesApiAxiosParamCreator;
|
|
937
727
|
/**
|
|
938
|
-
*
|
|
728
|
+
* ManagerClubRolesApi - functional programming interface
|
|
939
729
|
* @export
|
|
940
730
|
*/
|
|
941
|
-
const
|
|
942
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
731
|
+
const ManagerClubRolesApiFp = function (configuration) {
|
|
732
|
+
const localVarAxiosParamCreator = (0, exports.ManagerClubRolesApiAxiosParamCreator)(configuration);
|
|
943
733
|
return {
|
|
944
734
|
/**
|
|
945
735
|
*
|
|
@@ -953,7 +743,7 @@ const ClubRolesApiFp = function (configuration) {
|
|
|
953
743
|
var _a, _b, _c;
|
|
954
744
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubRole(createClubRoleRequestBody, options);
|
|
955
745
|
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['
|
|
746
|
+
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
747
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
958
748
|
});
|
|
959
749
|
},
|
|
@@ -969,7 +759,7 @@ const ClubRolesApiFp = function (configuration) {
|
|
|
969
759
|
var _a, _b, _c;
|
|
970
760
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubRole(id, options);
|
|
971
761
|
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['
|
|
762
|
+
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
763
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
974
764
|
});
|
|
975
765
|
},
|
|
@@ -984,7 +774,7 @@ const ClubRolesApiFp = function (configuration) {
|
|
|
984
774
|
var _a, _b, _c;
|
|
985
775
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubRoles(options);
|
|
986
776
|
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['
|
|
777
|
+
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
778
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
989
779
|
});
|
|
990
780
|
},
|
|
@@ -1000,7 +790,7 @@ const ClubRolesApiFp = function (configuration) {
|
|
|
1000
790
|
var _a, _b, _c;
|
|
1001
791
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoleById(id, options);
|
|
1002
792
|
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['
|
|
793
|
+
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
794
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1005
795
|
});
|
|
1006
796
|
},
|
|
@@ -1017,24 +807,24 @@ const ClubRolesApiFp = function (configuration) {
|
|
|
1017
807
|
var _a, _b, _c;
|
|
1018
808
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubRole(id, updateClubRoleRequestBody, options);
|
|
1019
809
|
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['
|
|
810
|
+
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
811
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1022
812
|
});
|
|
1023
813
|
},
|
|
1024
814
|
};
|
|
1025
815
|
};
|
|
1026
|
-
exports.
|
|
816
|
+
exports.ManagerClubRolesApiFp = ManagerClubRolesApiFp;
|
|
1027
817
|
/**
|
|
1028
|
-
*
|
|
818
|
+
* ManagerClubRolesApi - factory interface
|
|
1029
819
|
* @export
|
|
1030
820
|
*/
|
|
1031
|
-
const
|
|
1032
|
-
const localVarFp = (0, exports.
|
|
821
|
+
const ManagerClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
822
|
+
const localVarFp = (0, exports.ManagerClubRolesApiFp)(configuration);
|
|
1033
823
|
return {
|
|
1034
824
|
/**
|
|
1035
825
|
*
|
|
1036
826
|
* @summary Créer un nouveau rôle de club
|
|
1037
|
-
* @param {
|
|
827
|
+
* @param {ManagerClubRolesApiCreateClubRoleRequest} requestParameters Request parameters.
|
|
1038
828
|
* @param {*} [options] Override http request option.
|
|
1039
829
|
* @throws {RequiredError}
|
|
1040
830
|
*/
|
|
@@ -1044,7 +834,7 @@ const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1044
834
|
/**
|
|
1045
835
|
*
|
|
1046
836
|
* @summary Supprimer un rôle de club
|
|
1047
|
-
* @param {
|
|
837
|
+
* @param {ManagerClubRolesApiDeleteClubRoleRequest} requestParameters Request parameters.
|
|
1048
838
|
* @param {*} [options] Override http request option.
|
|
1049
839
|
* @throws {RequiredError}
|
|
1050
840
|
*/
|
|
@@ -1063,7 +853,7 @@ const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1063
853
|
/**
|
|
1064
854
|
*
|
|
1065
855
|
* @summary Récupérer un rôle de club par son ID
|
|
1066
|
-
* @param {
|
|
856
|
+
* @param {ManagerClubRolesApiGetClubRoleByIdRequest} requestParameters Request parameters.
|
|
1067
857
|
* @param {*} [options] Override http request option.
|
|
1068
858
|
* @throws {RequiredError}
|
|
1069
859
|
*/
|
|
@@ -1073,7 +863,7 @@ const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1073
863
|
/**
|
|
1074
864
|
*
|
|
1075
865
|
* @summary Mettre à jour un rôle de club
|
|
1076
|
-
* @param {
|
|
866
|
+
* @param {ManagerClubRolesApiUpdateClubRoleRequest} requestParameters Request parameters.
|
|
1077
867
|
* @param {*} [options] Override http request option.
|
|
1078
868
|
* @throws {RequiredError}
|
|
1079
869
|
*/
|
|
@@ -1082,101 +872,101 @@ const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1082
872
|
},
|
|
1083
873
|
};
|
|
1084
874
|
};
|
|
1085
|
-
exports.
|
|
875
|
+
exports.ManagerClubRolesApiFactory = ManagerClubRolesApiFactory;
|
|
1086
876
|
/**
|
|
1087
|
-
*
|
|
877
|
+
* ManagerClubRolesApi - object-oriented interface
|
|
1088
878
|
* @export
|
|
1089
|
-
* @class
|
|
879
|
+
* @class ManagerClubRolesApi
|
|
1090
880
|
* @extends {BaseAPI}
|
|
1091
881
|
*/
|
|
1092
|
-
class
|
|
882
|
+
class ManagerClubRolesApi extends base_1.BaseAPI {
|
|
1093
883
|
/**
|
|
1094
884
|
*
|
|
1095
885
|
* @summary Créer un nouveau rôle de club
|
|
1096
|
-
* @param {
|
|
886
|
+
* @param {ManagerClubRolesApiCreateClubRoleRequest} requestParameters Request parameters.
|
|
1097
887
|
* @param {*} [options] Override http request option.
|
|
1098
888
|
* @throws {RequiredError}
|
|
1099
|
-
* @memberof
|
|
889
|
+
* @memberof ManagerClubRolesApi
|
|
1100
890
|
*/
|
|
1101
891
|
createClubRole(requestParameters, options) {
|
|
1102
|
-
return (0, exports.
|
|
892
|
+
return (0, exports.ManagerClubRolesApiFp)(this.configuration).createClubRole(requestParameters.createClubRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1103
893
|
}
|
|
1104
894
|
/**
|
|
1105
895
|
*
|
|
1106
896
|
* @summary Supprimer un rôle de club
|
|
1107
|
-
* @param {
|
|
897
|
+
* @param {ManagerClubRolesApiDeleteClubRoleRequest} requestParameters Request parameters.
|
|
1108
898
|
* @param {*} [options] Override http request option.
|
|
1109
899
|
* @throws {RequiredError}
|
|
1110
|
-
* @memberof
|
|
900
|
+
* @memberof ManagerClubRolesApi
|
|
1111
901
|
*/
|
|
1112
902
|
deleteClubRole(requestParameters, options) {
|
|
1113
|
-
return (0, exports.
|
|
903
|
+
return (0, exports.ManagerClubRolesApiFp)(this.configuration).deleteClubRole(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1114
904
|
}
|
|
1115
905
|
/**
|
|
1116
906
|
*
|
|
1117
907
|
* @summary Récupérer tous les rôles de clubs
|
|
1118
908
|
* @param {*} [options] Override http request option.
|
|
1119
909
|
* @throws {RequiredError}
|
|
1120
|
-
* @memberof
|
|
910
|
+
* @memberof ManagerClubRolesApi
|
|
1121
911
|
*/
|
|
1122
912
|
getAllClubRoles(options) {
|
|
1123
|
-
return (0, exports.
|
|
913
|
+
return (0, exports.ManagerClubRolesApiFp)(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
1124
914
|
}
|
|
1125
915
|
/**
|
|
1126
916
|
*
|
|
1127
917
|
* @summary Récupérer un rôle de club par son ID
|
|
1128
|
-
* @param {
|
|
918
|
+
* @param {ManagerClubRolesApiGetClubRoleByIdRequest} requestParameters Request parameters.
|
|
1129
919
|
* @param {*} [options] Override http request option.
|
|
1130
920
|
* @throws {RequiredError}
|
|
1131
|
-
* @memberof
|
|
921
|
+
* @memberof ManagerClubRolesApi
|
|
1132
922
|
*/
|
|
1133
923
|
getClubRoleById(requestParameters, options) {
|
|
1134
|
-
return (0, exports.
|
|
924
|
+
return (0, exports.ManagerClubRolesApiFp)(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1135
925
|
}
|
|
1136
926
|
/**
|
|
1137
927
|
*
|
|
1138
928
|
* @summary Mettre à jour un rôle de club
|
|
1139
|
-
* @param {
|
|
929
|
+
* @param {ManagerClubRolesApiUpdateClubRoleRequest} requestParameters Request parameters.
|
|
1140
930
|
* @param {*} [options] Override http request option.
|
|
1141
931
|
* @throws {RequiredError}
|
|
1142
|
-
* @memberof
|
|
932
|
+
* @memberof ManagerClubRolesApi
|
|
1143
933
|
*/
|
|
1144
934
|
updateClubRole(requestParameters, options) {
|
|
1145
|
-
return (0, exports.
|
|
935
|
+
return (0, exports.ManagerClubRolesApiFp)(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1146
936
|
}
|
|
1147
937
|
}
|
|
1148
|
-
exports.
|
|
938
|
+
exports.ManagerClubRolesApi = ManagerClubRolesApi;
|
|
1149
939
|
/**
|
|
1150
|
-
*
|
|
940
|
+
* ManagerClubSlotsApi - axios parameter creator
|
|
1151
941
|
* @export
|
|
1152
942
|
*/
|
|
1153
|
-
const
|
|
943
|
+
const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
1154
944
|
return {
|
|
1155
945
|
/**
|
|
1156
946
|
*
|
|
1157
|
-
* @summary
|
|
947
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1158
948
|
* @param {string} id ID du club
|
|
1159
|
-
* @param {string}
|
|
1160
|
-
* @param {string}
|
|
1161
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
949
|
+
* @param {string} start Date de début (format ISO)
|
|
950
|
+
* @param {string} end Date de fin (format ISO)
|
|
1162
951
|
* @param {*} [options] Override http request option.
|
|
1163
952
|
* @throws {RequiredError}
|
|
1164
953
|
*/
|
|
1165
|
-
|
|
954
|
+
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
955
|
// 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
|
-
|
|
956
|
+
(0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'id', id);
|
|
957
|
+
// verify required parameter 'start' is not null or undefined
|
|
958
|
+
(0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'start', start);
|
|
959
|
+
// verify required parameter 'end' is not null or undefined
|
|
960
|
+
(0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'end', end);
|
|
961
|
+
const localVarPath = `/api/clubs/{id}/slots`
|
|
962
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1173
963
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1174
964
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1175
965
|
let baseOptions;
|
|
1176
966
|
if (configuration) {
|
|
1177
967
|
baseOptions = configuration.baseOptions;
|
|
1178
968
|
}
|
|
1179
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
969
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1180
970
|
const localVarHeaderParameter = {};
|
|
1181
971
|
const localVarQueryParameter = {};
|
|
1182
972
|
// authentication bearerAuth required
|
|
@@ -1202,24 +992,18 @@ const ClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
1202
992
|
}),
|
|
1203
993
|
/**
|
|
1204
994
|
*
|
|
1205
|
-
* @summary
|
|
995
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1206
996
|
* @param {string} id ID du club
|
|
1207
|
-
* @param {string}
|
|
1208
|
-
* @param {string}
|
|
997
|
+
* @param {string} [start] Date de début (format ISO)
|
|
998
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
1209
999
|
* @param {*} [options] Override http request option.
|
|
1210
1000
|
* @throws {RequiredError}
|
|
1211
1001
|
*/
|
|
1212
|
-
|
|
1002
|
+
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
1003
|
// 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)));
|
|
1004
|
+
(0, common_1.assertParamExists)('getSlotsByClub', 'id', id);
|
|
1005
|
+
const localVarPath = `/api/clubs/{id}/slots`
|
|
1006
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1223
1007
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1224
1008
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1225
1009
|
let baseOptions;
|
|
@@ -1232,6 +1016,16 @@ const ClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
1232
1016
|
// authentication bearerAuth required
|
|
1233
1017
|
// http bearer authentication required
|
|
1234
1018
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1019
|
+
if (start !== undefined) {
|
|
1020
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
1021
|
+
start.toISOString() :
|
|
1022
|
+
start;
|
|
1023
|
+
}
|
|
1024
|
+
if (end !== undefined) {
|
|
1025
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
1026
|
+
end.toISOString() :
|
|
1027
|
+
end;
|
|
1028
|
+
}
|
|
1235
1029
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1236
1030
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1237
1031
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1242,120 +1036,119 @@ const ClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
1242
1036
|
}),
|
|
1243
1037
|
};
|
|
1244
1038
|
};
|
|
1245
|
-
exports.
|
|
1039
|
+
exports.ManagerClubSlotsApiAxiosParamCreator = ManagerClubSlotsApiAxiosParamCreator;
|
|
1246
1040
|
/**
|
|
1247
|
-
*
|
|
1041
|
+
* ManagerClubSlotsApi - functional programming interface
|
|
1248
1042
|
* @export
|
|
1249
1043
|
*/
|
|
1250
|
-
const
|
|
1251
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
1044
|
+
const ManagerClubSlotsApiFp = function (configuration) {
|
|
1045
|
+
const localVarAxiosParamCreator = (0, exports.ManagerClubSlotsApiAxiosParamCreator)(configuration);
|
|
1252
1046
|
return {
|
|
1253
1047
|
/**
|
|
1254
1048
|
*
|
|
1255
|
-
* @summary
|
|
1049
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1256
1050
|
* @param {string} id ID du club
|
|
1257
|
-
* @param {string}
|
|
1258
|
-
* @param {string}
|
|
1259
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
1051
|
+
* @param {string} start Date de début (format ISO)
|
|
1052
|
+
* @param {string} end Date de fin (format ISO)
|
|
1260
1053
|
* @param {*} [options] Override http request option.
|
|
1261
1054
|
* @throws {RequiredError}
|
|
1262
1055
|
*/
|
|
1263
|
-
|
|
1056
|
+
deleteSlotsByClubInRange(id, start, end, options) {
|
|
1264
1057
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1265
1058
|
var _a, _b, _c;
|
|
1266
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1059
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRange(id, start, end, options);
|
|
1267
1060
|
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['
|
|
1061
|
+
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
1062
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1270
1063
|
});
|
|
1271
1064
|
},
|
|
1272
1065
|
/**
|
|
1273
1066
|
*
|
|
1274
|
-
* @summary
|
|
1067
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1275
1068
|
* @param {string} id ID du club
|
|
1276
|
-
* @param {string}
|
|
1277
|
-
* @param {string}
|
|
1069
|
+
* @param {string} [start] Date de début (format ISO)
|
|
1070
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
1278
1071
|
* @param {*} [options] Override http request option.
|
|
1279
1072
|
* @throws {RequiredError}
|
|
1280
1073
|
*/
|
|
1281
|
-
|
|
1074
|
+
getSlotsByClub(id, start, end, options) {
|
|
1282
1075
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1283
1076
|
var _a, _b, _c;
|
|
1284
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1077
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClub(id, start, end, options);
|
|
1285
1078
|
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['
|
|
1079
|
+
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
1080
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1288
1081
|
});
|
|
1289
1082
|
},
|
|
1290
1083
|
};
|
|
1291
1084
|
};
|
|
1292
|
-
exports.
|
|
1085
|
+
exports.ManagerClubSlotsApiFp = ManagerClubSlotsApiFp;
|
|
1293
1086
|
/**
|
|
1294
|
-
*
|
|
1087
|
+
* ManagerClubSlotsApi - factory interface
|
|
1295
1088
|
* @export
|
|
1296
1089
|
*/
|
|
1297
|
-
const
|
|
1298
|
-
const localVarFp = (0, exports.
|
|
1090
|
+
const ManagerClubSlotsApiFactory = function (configuration, basePath, axios) {
|
|
1091
|
+
const localVarFp = (0, exports.ManagerClubSlotsApiFp)(configuration);
|
|
1299
1092
|
return {
|
|
1300
1093
|
/**
|
|
1301
1094
|
*
|
|
1302
|
-
* @summary
|
|
1303
|
-
* @param {
|
|
1095
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1096
|
+
* @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
|
|
1304
1097
|
* @param {*} [options] Override http request option.
|
|
1305
1098
|
* @throws {RequiredError}
|
|
1306
1099
|
*/
|
|
1307
|
-
|
|
1308
|
-
return localVarFp.
|
|
1100
|
+
deleteSlotsByClubInRange(requestParameters, options) {
|
|
1101
|
+
return localVarFp.deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
1309
1102
|
},
|
|
1310
1103
|
/**
|
|
1311
1104
|
*
|
|
1312
|
-
* @summary
|
|
1313
|
-
* @param {
|
|
1105
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1106
|
+
* @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
|
|
1314
1107
|
* @param {*} [options] Override http request option.
|
|
1315
1108
|
* @throws {RequiredError}
|
|
1316
1109
|
*/
|
|
1317
|
-
|
|
1318
|
-
return localVarFp.
|
|
1110
|
+
getSlotsByClub(requestParameters, options) {
|
|
1111
|
+
return localVarFp.getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
1319
1112
|
},
|
|
1320
1113
|
};
|
|
1321
1114
|
};
|
|
1322
|
-
exports.
|
|
1115
|
+
exports.ManagerClubSlotsApiFactory = ManagerClubSlotsApiFactory;
|
|
1323
1116
|
/**
|
|
1324
|
-
*
|
|
1117
|
+
* ManagerClubSlotsApi - object-oriented interface
|
|
1325
1118
|
* @export
|
|
1326
|
-
* @class
|
|
1119
|
+
* @class ManagerClubSlotsApi
|
|
1327
1120
|
* @extends {BaseAPI}
|
|
1328
1121
|
*/
|
|
1329
|
-
class
|
|
1122
|
+
class ManagerClubSlotsApi extends base_1.BaseAPI {
|
|
1330
1123
|
/**
|
|
1331
1124
|
*
|
|
1332
|
-
* @summary
|
|
1333
|
-
* @param {
|
|
1125
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1126
|
+
* @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
|
|
1334
1127
|
* @param {*} [options] Override http request option.
|
|
1335
1128
|
* @throws {RequiredError}
|
|
1336
|
-
* @memberof
|
|
1129
|
+
* @memberof ManagerClubSlotsApi
|
|
1337
1130
|
*/
|
|
1338
|
-
|
|
1339
|
-
return (0, exports.
|
|
1131
|
+
deleteSlotsByClubInRange(requestParameters, options) {
|
|
1132
|
+
return (0, exports.ManagerClubSlotsApiFp)(this.configuration).deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
1340
1133
|
}
|
|
1341
1134
|
/**
|
|
1342
1135
|
*
|
|
1343
|
-
* @summary
|
|
1344
|
-
* @param {
|
|
1136
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1137
|
+
* @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
|
|
1345
1138
|
* @param {*} [options] Override http request option.
|
|
1346
1139
|
* @throws {RequiredError}
|
|
1347
|
-
* @memberof
|
|
1140
|
+
* @memberof ManagerClubSlotsApi
|
|
1348
1141
|
*/
|
|
1349
|
-
|
|
1350
|
-
return (0, exports.
|
|
1142
|
+
getSlotsByClub(requestParameters, options) {
|
|
1143
|
+
return (0, exports.ManagerClubSlotsApiFp)(this.configuration).getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
1351
1144
|
}
|
|
1352
1145
|
}
|
|
1353
|
-
exports.
|
|
1146
|
+
exports.ManagerClubSlotsApi = ManagerClubSlotsApi;
|
|
1354
1147
|
/**
|
|
1355
|
-
*
|
|
1148
|
+
* ManagerClubSubscriptionsApi - axios parameter creator
|
|
1356
1149
|
* @export
|
|
1357
1150
|
*/
|
|
1358
|
-
const
|
|
1151
|
+
const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
1359
1152
|
return {
|
|
1360
1153
|
/**
|
|
1361
1154
|
*
|
|
@@ -1622,13 +1415,13 @@ const ClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
1622
1415
|
}),
|
|
1623
1416
|
};
|
|
1624
1417
|
};
|
|
1625
|
-
exports.
|
|
1418
|
+
exports.ManagerClubSubscriptionsApiAxiosParamCreator = ManagerClubSubscriptionsApiAxiosParamCreator;
|
|
1626
1419
|
/**
|
|
1627
|
-
*
|
|
1420
|
+
* ManagerClubSubscriptionsApi - functional programming interface
|
|
1628
1421
|
* @export
|
|
1629
1422
|
*/
|
|
1630
|
-
const
|
|
1631
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
1423
|
+
const ManagerClubSubscriptionsApiFp = function (configuration) {
|
|
1424
|
+
const localVarAxiosParamCreator = (0, exports.ManagerClubSubscriptionsApiAxiosParamCreator)(configuration);
|
|
1632
1425
|
return {
|
|
1633
1426
|
/**
|
|
1634
1427
|
*
|
|
@@ -1643,7 +1436,7 @@ const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1643
1436
|
var _a, _b, _c;
|
|
1644
1437
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlan(id, priceId, options);
|
|
1645
1438
|
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['
|
|
1439
|
+
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
1440
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1648
1441
|
});
|
|
1649
1442
|
},
|
|
@@ -1661,7 +1454,7 @@ const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1661
1454
|
var _a, _b, _c;
|
|
1662
1455
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlan(id, productId, createPriceRequest, options);
|
|
1663
1456
|
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['
|
|
1457
|
+
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
1458
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1666
1459
|
});
|
|
1667
1460
|
},
|
|
@@ -1678,7 +1471,7 @@ const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1678
1471
|
var _a, _b, _c;
|
|
1679
1472
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(id, createSubscriptionPlanRequest, options);
|
|
1680
1473
|
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['
|
|
1474
|
+
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
1475
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1683
1476
|
});
|
|
1684
1477
|
},
|
|
@@ -1695,7 +1488,7 @@ const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1695
1488
|
var _a, _b, _c;
|
|
1696
1489
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClub(id, productId, options);
|
|
1697
1490
|
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['
|
|
1491
|
+
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
1492
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1700
1493
|
});
|
|
1701
1494
|
},
|
|
@@ -1712,7 +1505,7 @@ const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1712
1505
|
var _a, _b, _c;
|
|
1713
1506
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClub(id, productId, options);
|
|
1714
1507
|
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['
|
|
1508
|
+
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
1509
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1717
1510
|
});
|
|
1718
1511
|
},
|
|
@@ -1729,7 +1522,7 @@ const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1729
1522
|
var _a, _b, _c;
|
|
1730
1523
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClub(id, priceId, options);
|
|
1731
1524
|
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['
|
|
1525
|
+
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
1526
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1734
1527
|
});
|
|
1735
1528
|
},
|
|
@@ -1747,24 +1540,24 @@ const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1747
1540
|
var _a, _b, _c;
|
|
1748
1541
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClub(id, priceId, updateSubscriptionPlanRequest, options);
|
|
1749
1542
|
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['
|
|
1543
|
+
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
1544
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1752
1545
|
});
|
|
1753
1546
|
},
|
|
1754
1547
|
};
|
|
1755
1548
|
};
|
|
1756
|
-
exports.
|
|
1549
|
+
exports.ManagerClubSubscriptionsApiFp = ManagerClubSubscriptionsApiFp;
|
|
1757
1550
|
/**
|
|
1758
|
-
*
|
|
1551
|
+
* ManagerClubSubscriptionsApi - factory interface
|
|
1759
1552
|
* @export
|
|
1760
1553
|
*/
|
|
1761
|
-
const
|
|
1762
|
-
const localVarFp = (0, exports.
|
|
1554
|
+
const ManagerClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
1555
|
+
const localVarFp = (0, exports.ManagerClubSubscriptionsApiFp)(configuration);
|
|
1763
1556
|
return {
|
|
1764
1557
|
/**
|
|
1765
1558
|
*
|
|
1766
1559
|
* @summary Archiver un prix
|
|
1767
|
-
* @param {
|
|
1560
|
+
* @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1768
1561
|
* @param {*} [options] Override http request option.
|
|
1769
1562
|
* @throws {RequiredError}
|
|
1770
1563
|
*/
|
|
@@ -1774,7 +1567,7 @@ const ClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1774
1567
|
/**
|
|
1775
1568
|
*
|
|
1776
1569
|
* @summary Créer un nouveau prix pour un plan
|
|
1777
|
-
* @param {
|
|
1570
|
+
* @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1778
1571
|
* @param {*} [options] Override http request option.
|
|
1779
1572
|
* @throws {RequiredError}
|
|
1780
1573
|
*/
|
|
@@ -1784,7 +1577,7 @@ const ClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1784
1577
|
/**
|
|
1785
1578
|
*
|
|
1786
1579
|
* @summary Créer un plan d\'abonnement pour un club
|
|
1787
|
-
* @param {
|
|
1580
|
+
* @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1788
1581
|
* @param {*} [options] Override http request option.
|
|
1789
1582
|
* @throws {RequiredError}
|
|
1790
1583
|
*/
|
|
@@ -1794,7 +1587,7 @@ const ClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1794
1587
|
/**
|
|
1795
1588
|
*
|
|
1796
1589
|
* @summary Supprimer un plan d\'abonnement pour un club
|
|
1797
|
-
* @param {
|
|
1590
|
+
* @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1798
1591
|
* @param {*} [options] Override http request option.
|
|
1799
1592
|
* @throws {RequiredError}
|
|
1800
1593
|
*/
|
|
@@ -1804,7 +1597,7 @@ const ClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1804
1597
|
/**
|
|
1805
1598
|
*
|
|
1806
1599
|
* @summary Réactiver un plan d\'abonnement
|
|
1807
|
-
* @param {
|
|
1600
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1808
1601
|
* @param {*} [options] Override http request option.
|
|
1809
1602
|
* @throws {RequiredError}
|
|
1810
1603
|
*/
|
|
@@ -1814,7 +1607,7 @@ const ClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1814
1607
|
/**
|
|
1815
1608
|
*
|
|
1816
1609
|
* @summary Réactiver un prix
|
|
1817
|
-
* @param {
|
|
1610
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
|
|
1818
1611
|
* @param {*} [options] Override http request option.
|
|
1819
1612
|
* @throws {RequiredError}
|
|
1820
1613
|
*/
|
|
@@ -1824,7 +1617,7 @@ const ClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1824
1617
|
/**
|
|
1825
1618
|
*
|
|
1826
1619
|
* @summary Mettre à jour un plan d\'abonnement
|
|
1827
|
-
* @param {
|
|
1620
|
+
* @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1828
1621
|
* @param {*} [options] Override http request option.
|
|
1829
1622
|
* @throws {RequiredError}
|
|
1830
1623
|
*/
|
|
@@ -1833,110 +1626,113 @@ const ClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1833
1626
|
},
|
|
1834
1627
|
};
|
|
1835
1628
|
};
|
|
1836
|
-
exports.
|
|
1629
|
+
exports.ManagerClubSubscriptionsApiFactory = ManagerClubSubscriptionsApiFactory;
|
|
1837
1630
|
/**
|
|
1838
|
-
*
|
|
1631
|
+
* ManagerClubSubscriptionsApi - object-oriented interface
|
|
1839
1632
|
* @export
|
|
1840
|
-
* @class
|
|
1633
|
+
* @class ManagerClubSubscriptionsApi
|
|
1841
1634
|
* @extends {BaseAPI}
|
|
1842
1635
|
*/
|
|
1843
|
-
class
|
|
1636
|
+
class ManagerClubSubscriptionsApi extends base_1.BaseAPI {
|
|
1844
1637
|
/**
|
|
1845
1638
|
*
|
|
1846
1639
|
* @summary Archiver un prix
|
|
1847
|
-
* @param {
|
|
1640
|
+
* @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1848
1641
|
* @param {*} [options] Override http request option.
|
|
1849
1642
|
* @throws {RequiredError}
|
|
1850
|
-
* @memberof
|
|
1643
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1851
1644
|
*/
|
|
1852
1645
|
archivePriceForSubscriptionPlan(requestParameters, options) {
|
|
1853
|
-
return (0, exports.
|
|
1646
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).archivePriceForSubscriptionPlan(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
1854
1647
|
}
|
|
1855
1648
|
/**
|
|
1856
1649
|
*
|
|
1857
1650
|
* @summary Créer un nouveau prix pour un plan
|
|
1858
|
-
* @param {
|
|
1651
|
+
* @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1859
1652
|
* @param {*} [options] Override http request option.
|
|
1860
1653
|
* @throws {RequiredError}
|
|
1861
|
-
* @memberof
|
|
1654
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1862
1655
|
*/
|
|
1863
1656
|
createPriceForSubscriptionPlan(requestParameters, options) {
|
|
1864
|
-
return (0, exports.
|
|
1657
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).createPriceForSubscriptionPlan(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1865
1658
|
}
|
|
1866
1659
|
/**
|
|
1867
1660
|
*
|
|
1868
1661
|
* @summary Créer un plan d\'abonnement pour un club
|
|
1869
|
-
* @param {
|
|
1662
|
+
* @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1870
1663
|
* @param {*} [options] Override http request option.
|
|
1871
1664
|
* @throws {RequiredError}
|
|
1872
|
-
* @memberof
|
|
1665
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1873
1666
|
*/
|
|
1874
1667
|
createSubscriptionPlanForClub(requestParameters, options) {
|
|
1875
|
-
return (0, exports.
|
|
1668
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).createSubscriptionPlanForClub(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1876
1669
|
}
|
|
1877
1670
|
/**
|
|
1878
1671
|
*
|
|
1879
1672
|
* @summary Supprimer un plan d\'abonnement pour un club
|
|
1880
|
-
* @param {
|
|
1673
|
+
* @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1881
1674
|
* @param {*} [options] Override http request option.
|
|
1882
1675
|
* @throws {RequiredError}
|
|
1883
|
-
* @memberof
|
|
1676
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1884
1677
|
*/
|
|
1885
1678
|
deleteSubscriptionPlanForClub(requestParameters, options) {
|
|
1886
|
-
return (0, exports.
|
|
1679
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).deleteSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1887
1680
|
}
|
|
1888
1681
|
/**
|
|
1889
1682
|
*
|
|
1890
1683
|
* @summary Réactiver un plan d\'abonnement
|
|
1891
|
-
* @param {
|
|
1684
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1892
1685
|
* @param {*} [options] Override http request option.
|
|
1893
1686
|
* @throws {RequiredError}
|
|
1894
|
-
* @memberof
|
|
1687
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1895
1688
|
*/
|
|
1896
1689
|
restoreSubscriptionPlanForClub(requestParameters, options) {
|
|
1897
|
-
return (0, exports.
|
|
1690
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1898
1691
|
}
|
|
1899
1692
|
/**
|
|
1900
1693
|
*
|
|
1901
1694
|
* @summary Réactiver un prix
|
|
1902
|
-
* @param {
|
|
1695
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
|
|
1903
1696
|
* @param {*} [options] Override http request option.
|
|
1904
1697
|
* @throws {RequiredError}
|
|
1905
|
-
* @memberof
|
|
1698
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1906
1699
|
*/
|
|
1907
1700
|
restoreSubscriptionPriceForClub(requestParameters, options) {
|
|
1908
|
-
return (0, exports.
|
|
1701
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPriceForClub(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
1909
1702
|
}
|
|
1910
1703
|
/**
|
|
1911
1704
|
*
|
|
1912
1705
|
* @summary Mettre à jour un plan d\'abonnement
|
|
1913
|
-
* @param {
|
|
1706
|
+
* @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1914
1707
|
* @param {*} [options] Override http request option.
|
|
1915
1708
|
* @throws {RequiredError}
|
|
1916
|
-
* @memberof
|
|
1709
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1917
1710
|
*/
|
|
1918
1711
|
updateSubscriptionPlanForClub(requestParameters, options) {
|
|
1919
|
-
return (0, exports.
|
|
1712
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).updateSubscriptionPlanForClub(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1920
1713
|
}
|
|
1921
1714
|
}
|
|
1922
|
-
exports.
|
|
1715
|
+
exports.ManagerClubSubscriptionsApi = ManagerClubSubscriptionsApi;
|
|
1923
1716
|
/**
|
|
1924
|
-
*
|
|
1717
|
+
* ManagerClubsApi - axios parameter creator
|
|
1925
1718
|
* @export
|
|
1926
1719
|
*/
|
|
1927
|
-
const
|
|
1720
|
+
const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
1928
1721
|
return {
|
|
1929
1722
|
/**
|
|
1930
1723
|
*
|
|
1931
|
-
* @summary
|
|
1724
|
+
* @summary Ajouter un membre à un club
|
|
1932
1725
|
* @param {string} id ID du club
|
|
1726
|
+
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
1933
1727
|
* @param {*} [options] Override http request option.
|
|
1934
1728
|
* @throws {RequiredError}
|
|
1935
1729
|
*/
|
|
1936
|
-
|
|
1730
|
+
addClubMember: (id_1, addClubMemberRequest_1, ...args_1) => __awaiter(this, [id_1, addClubMemberRequest_1, ...args_1], void 0, function* (id, addClubMemberRequest, options = {}) {
|
|
1937
1731
|
// verify required parameter 'id' is not null or undefined
|
|
1938
|
-
(0, common_1.assertParamExists)('
|
|
1939
|
-
|
|
1732
|
+
(0, common_1.assertParamExists)('addClubMember', 'id', id);
|
|
1733
|
+
// verify required parameter 'addClubMemberRequest' is not null or undefined
|
|
1734
|
+
(0, common_1.assertParamExists)('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
1735
|
+
const localVarPath = `/api/clubs/{id}/add_members`
|
|
1940
1736
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1941
1737
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1942
1738
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1944,109 +1740,65 @@ const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
1944
1740
|
if (configuration) {
|
|
1945
1741
|
baseOptions = configuration.baseOptions;
|
|
1946
1742
|
}
|
|
1947
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1743
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1948
1744
|
const localVarHeaderParameter = {};
|
|
1949
1745
|
const localVarQueryParameter = {};
|
|
1950
1746
|
// authentication bearerAuth required
|
|
1951
1747
|
// http bearer authentication required
|
|
1952
1748
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1749
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1953
1750
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1954
1751
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1955
1752
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1753
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
1956
1754
|
return {
|
|
1957
1755
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1958
1756
|
options: localVarRequestOptions,
|
|
1959
1757
|
};
|
|
1960
1758
|
}),
|
|
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
1759
|
/**
|
|
1972
1760
|
*
|
|
1973
|
-
* @summary
|
|
1761
|
+
* @summary Récupérer les informations d\'un club
|
|
1974
1762
|
* @param {string} id ID du club
|
|
1975
1763
|
* @param {*} [options] Override http request option.
|
|
1976
1764
|
* @throws {RequiredError}
|
|
1977
1765
|
*/
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
}
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
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 {
|
|
1766
|
+
getClubInfo: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1767
|
+
// verify required parameter 'id' is not null or undefined
|
|
1768
|
+
(0, common_1.assertParamExists)('getClubInfo', 'id', id);
|
|
1769
|
+
const localVarPath = `/api/clubs/{id}`
|
|
1770
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1771
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1772
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1773
|
+
let baseOptions;
|
|
1774
|
+
if (configuration) {
|
|
1775
|
+
baseOptions = configuration.baseOptions;
|
|
1776
|
+
}
|
|
1777
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1778
|
+
const localVarHeaderParameter = {};
|
|
1779
|
+
const localVarQueryParameter = {};
|
|
1780
|
+
// authentication bearerAuth required
|
|
1781
|
+
// http bearer authentication required
|
|
1782
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1783
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1784
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1785
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1786
|
+
return {
|
|
1787
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1788
|
+
options: localVarRequestOptions,
|
|
1789
|
+
};
|
|
1790
|
+
}),
|
|
2036
1791
|
/**
|
|
2037
1792
|
*
|
|
2038
|
-
* @summary
|
|
1793
|
+
* @summary Récupérer les membres d\'un club
|
|
2039
1794
|
* @param {string} id ID du club
|
|
2040
|
-
* @param {CreateCourtRequest} createCourtRequest
|
|
2041
1795
|
* @param {*} [options] Override http request option.
|
|
2042
1796
|
* @throws {RequiredError}
|
|
2043
1797
|
*/
|
|
2044
|
-
|
|
1798
|
+
getClubMembers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2045
1799
|
// 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`
|
|
1800
|
+
(0, common_1.assertParamExists)('getClubMembers', 'id', id);
|
|
1801
|
+
const localVarPath = `/api/clubs/{id}/members`
|
|
2050
1802
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2051
1803
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2052
1804
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2054,17 +1806,15 @@ const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2054
1806
|
if (configuration) {
|
|
2055
1807
|
baseOptions = configuration.baseOptions;
|
|
2056
1808
|
}
|
|
2057
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1809
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2058
1810
|
const localVarHeaderParameter = {};
|
|
2059
1811
|
const localVarQueryParameter = {};
|
|
2060
1812
|
// authentication bearerAuth required
|
|
2061
1813
|
// http bearer authentication required
|
|
2062
1814
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2063
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2064
1815
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2065
1816
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2066
1817
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2067
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCourtRequest, localVarRequestOptions, configuration);
|
|
2068
1818
|
return {
|
|
2069
1819
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2070
1820
|
options: localVarRequestOptions,
|
|
@@ -2072,15 +1822,15 @@ const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2072
1822
|
}),
|
|
2073
1823
|
/**
|
|
2074
1824
|
*
|
|
2075
|
-
* @summary Récupérer
|
|
1825
|
+
* @summary Récupérer les rôles d\'un club
|
|
2076
1826
|
* @param {string} id ID du club
|
|
2077
1827
|
* @param {*} [options] Override http request option.
|
|
2078
1828
|
* @throws {RequiredError}
|
|
2079
1829
|
*/
|
|
2080
|
-
|
|
1830
|
+
getClubRoles: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2081
1831
|
// verify required parameter 'id' is not null or undefined
|
|
2082
|
-
(0, common_1.assertParamExists)('
|
|
2083
|
-
const localVarPath = `/api/clubs/{id}/
|
|
1832
|
+
(0, common_1.assertParamExists)('getClubRoles', 'id', id);
|
|
1833
|
+
const localVarPath = `/api/clubs/{id}/roles`
|
|
2084
1834
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2085
1835
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2086
1836
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2102,136 +1852,279 @@ const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2102
1852
|
options: localVarRequestOptions,
|
|
2103
1853
|
};
|
|
2104
1854
|
}),
|
|
2105
|
-
};
|
|
2106
|
-
};
|
|
2107
|
-
exports.ManagerClubCourtsApiAxiosParamCreator = ManagerClubCourtsApiAxiosParamCreator;
|
|
2108
|
-
/**
|
|
2109
|
-
* ManagerClubCourtsApi - functional programming interface
|
|
2110
|
-
* @export
|
|
2111
|
-
*/
|
|
2112
|
-
const ManagerClubCourtsApiFp = function (configuration) {
|
|
2113
|
-
const localVarAxiosParamCreator = (0, exports.ManagerClubCourtsApiAxiosParamCreator)(configuration);
|
|
2114
|
-
return {
|
|
2115
1855
|
/**
|
|
2116
1856
|
*
|
|
2117
|
-
* @summary
|
|
1857
|
+
* @summary Mettre à jour un club existant
|
|
2118
1858
|
* @param {string} id ID du club
|
|
2119
|
-
* @param {
|
|
1859
|
+
* @param {UpdateClubRequest} updateClubRequest
|
|
2120
1860
|
* @param {*} [options] Override http request option.
|
|
2121
1861
|
* @throws {RequiredError}
|
|
2122
1862
|
*/
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
1863
|
+
updateClub: (id_1, updateClubRequest_1, ...args_1) => __awaiter(this, [id_1, updateClubRequest_1, ...args_1], void 0, function* (id, updateClubRequest, options = {}) {
|
|
1864
|
+
// verify required parameter 'id' is not null or undefined
|
|
1865
|
+
(0, common_1.assertParamExists)('updateClub', 'id', id);
|
|
1866
|
+
// verify required parameter 'updateClubRequest' is not null or undefined
|
|
1867
|
+
(0, common_1.assertParamExists)('updateClub', 'updateClubRequest', updateClubRequest);
|
|
1868
|
+
const localVarPath = `/api/clubs/{id}`
|
|
1869
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1870
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1871
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1872
|
+
let baseOptions;
|
|
1873
|
+
if (configuration) {
|
|
1874
|
+
baseOptions = configuration.baseOptions;
|
|
1875
|
+
}
|
|
1876
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1877
|
+
const localVarHeaderParameter = {};
|
|
1878
|
+
const localVarQueryParameter = {};
|
|
1879
|
+
// authentication bearerAuth required
|
|
1880
|
+
// http bearer authentication required
|
|
1881
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1882
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1883
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1884
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1885
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1886
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubRequest, localVarRequestOptions, configuration);
|
|
1887
|
+
return {
|
|
1888
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1889
|
+
options: localVarRequestOptions,
|
|
1890
|
+
};
|
|
1891
|
+
}),
|
|
1892
|
+
};
|
|
1893
|
+
};
|
|
1894
|
+
exports.ManagerClubsApiAxiosParamCreator = ManagerClubsApiAxiosParamCreator;
|
|
1895
|
+
/**
|
|
1896
|
+
* ManagerClubsApi - functional programming interface
|
|
1897
|
+
* @export
|
|
1898
|
+
*/
|
|
1899
|
+
const ManagerClubsApiFp = function (configuration) {
|
|
1900
|
+
const localVarAxiosParamCreator = (0, exports.ManagerClubsApiAxiosParamCreator)(configuration);
|
|
1901
|
+
return {
|
|
1902
|
+
/**
|
|
1903
|
+
*
|
|
1904
|
+
* @summary Ajouter un membre à un club
|
|
1905
|
+
* @param {string} id ID du club
|
|
1906
|
+
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
1907
|
+
* @param {*} [options] Override http request option.
|
|
1908
|
+
* @throws {RequiredError}
|
|
1909
|
+
*/
|
|
1910
|
+
addClubMember(id, addClubMemberRequest, options) {
|
|
1911
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1912
|
+
var _a, _b, _c;
|
|
1913
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addClubMember(id, addClubMemberRequest, options);
|
|
1914
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1915
|
+
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
1916
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2130
1917
|
});
|
|
2131
1918
|
},
|
|
2132
1919
|
/**
|
|
2133
1920
|
*
|
|
2134
|
-
* @summary Récupérer
|
|
1921
|
+
* @summary Récupérer les informations d\'un club
|
|
2135
1922
|
* @param {string} id ID du club
|
|
2136
1923
|
* @param {*} [options] Override http request option.
|
|
2137
1924
|
* @throws {RequiredError}
|
|
2138
1925
|
*/
|
|
2139
|
-
|
|
1926
|
+
getClubInfo(id, options) {
|
|
2140
1927
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2141
1928
|
var _a, _b, _c;
|
|
2142
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1929
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfo(id, options);
|
|
2143
1930
|
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['
|
|
1931
|
+
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;
|
|
1932
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1933
|
+
});
|
|
1934
|
+
},
|
|
1935
|
+
/**
|
|
1936
|
+
*
|
|
1937
|
+
* @summary Récupérer les membres d\'un club
|
|
1938
|
+
* @param {string} id ID du club
|
|
1939
|
+
* @param {*} [options] Override http request option.
|
|
1940
|
+
* @throws {RequiredError}
|
|
1941
|
+
*/
|
|
1942
|
+
getClubMembers(id, options) {
|
|
1943
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1944
|
+
var _a, _b, _c;
|
|
1945
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMembers(id, options);
|
|
1946
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1947
|
+
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;
|
|
1948
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1949
|
+
});
|
|
1950
|
+
},
|
|
1951
|
+
/**
|
|
1952
|
+
*
|
|
1953
|
+
* @summary Récupérer les rôles d\'un club
|
|
1954
|
+
* @param {string} id ID du club
|
|
1955
|
+
* @param {*} [options] Override http request option.
|
|
1956
|
+
* @throws {RequiredError}
|
|
1957
|
+
*/
|
|
1958
|
+
getClubRoles(id, options) {
|
|
1959
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1960
|
+
var _a, _b, _c;
|
|
1961
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoles(id, options);
|
|
1962
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1963
|
+
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;
|
|
1964
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1965
|
+
});
|
|
1966
|
+
},
|
|
1967
|
+
/**
|
|
1968
|
+
*
|
|
1969
|
+
* @summary Mettre à jour un club existant
|
|
1970
|
+
* @param {string} id ID du club
|
|
1971
|
+
* @param {UpdateClubRequest} updateClubRequest
|
|
1972
|
+
* @param {*} [options] Override http request option.
|
|
1973
|
+
* @throws {RequiredError}
|
|
1974
|
+
*/
|
|
1975
|
+
updateClub(id, updateClubRequest, options) {
|
|
1976
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1977
|
+
var _a, _b, _c;
|
|
1978
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClub(id, updateClubRequest, options);
|
|
1979
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1980
|
+
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
1981
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2146
1982
|
});
|
|
2147
1983
|
},
|
|
2148
1984
|
};
|
|
2149
1985
|
};
|
|
2150
|
-
exports.
|
|
1986
|
+
exports.ManagerClubsApiFp = ManagerClubsApiFp;
|
|
2151
1987
|
/**
|
|
2152
|
-
*
|
|
1988
|
+
* ManagerClubsApi - factory interface
|
|
2153
1989
|
* @export
|
|
2154
1990
|
*/
|
|
2155
|
-
const
|
|
2156
|
-
const localVarFp = (0, exports.
|
|
1991
|
+
const ManagerClubsApiFactory = function (configuration, basePath, axios) {
|
|
1992
|
+
const localVarFp = (0, exports.ManagerClubsApiFp)(configuration);
|
|
2157
1993
|
return {
|
|
2158
1994
|
/**
|
|
2159
1995
|
*
|
|
2160
|
-
* @summary
|
|
2161
|
-
* @param {
|
|
1996
|
+
* @summary Ajouter un membre à un club
|
|
1997
|
+
* @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
|
|
2162
1998
|
* @param {*} [options] Override http request option.
|
|
2163
1999
|
* @throws {RequiredError}
|
|
2164
2000
|
*/
|
|
2165
|
-
|
|
2166
|
-
return localVarFp.
|
|
2001
|
+
addClubMember(requestParameters, options) {
|
|
2002
|
+
return localVarFp.addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
2167
2003
|
},
|
|
2168
2004
|
/**
|
|
2169
2005
|
*
|
|
2170
|
-
* @summary Récupérer
|
|
2171
|
-
* @param {
|
|
2006
|
+
* @summary Récupérer les informations d\'un club
|
|
2007
|
+
* @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
|
|
2172
2008
|
* @param {*} [options] Override http request option.
|
|
2173
2009
|
* @throws {RequiredError}
|
|
2174
2010
|
*/
|
|
2175
|
-
|
|
2176
|
-
return localVarFp.
|
|
2011
|
+
getClubInfo(requestParameters, options) {
|
|
2012
|
+
return localVarFp.getClubInfo(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2013
|
+
},
|
|
2014
|
+
/**
|
|
2015
|
+
*
|
|
2016
|
+
* @summary Récupérer les membres d\'un club
|
|
2017
|
+
* @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
|
|
2018
|
+
* @param {*} [options] Override http request option.
|
|
2019
|
+
* @throws {RequiredError}
|
|
2020
|
+
*/
|
|
2021
|
+
getClubMembers(requestParameters, options) {
|
|
2022
|
+
return localVarFp.getClubMembers(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2023
|
+
},
|
|
2024
|
+
/**
|
|
2025
|
+
*
|
|
2026
|
+
* @summary Récupérer les rôles d\'un club
|
|
2027
|
+
* @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
|
|
2028
|
+
* @param {*} [options] Override http request option.
|
|
2029
|
+
* @throws {RequiredError}
|
|
2030
|
+
*/
|
|
2031
|
+
getClubRoles(requestParameters, options) {
|
|
2032
|
+
return localVarFp.getClubRoles(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2033
|
+
},
|
|
2034
|
+
/**
|
|
2035
|
+
*
|
|
2036
|
+
* @summary Mettre à jour un club existant
|
|
2037
|
+
* @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
|
|
2038
|
+
* @param {*} [options] Override http request option.
|
|
2039
|
+
* @throws {RequiredError}
|
|
2040
|
+
*/
|
|
2041
|
+
updateClub(requestParameters, options) {
|
|
2042
|
+
return localVarFp.updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(axios, basePath));
|
|
2177
2043
|
},
|
|
2178
2044
|
};
|
|
2179
2045
|
};
|
|
2180
|
-
exports.
|
|
2046
|
+
exports.ManagerClubsApiFactory = ManagerClubsApiFactory;
|
|
2181
2047
|
/**
|
|
2182
|
-
*
|
|
2048
|
+
* ManagerClubsApi - object-oriented interface
|
|
2183
2049
|
* @export
|
|
2184
|
-
* @class
|
|
2050
|
+
* @class ManagerClubsApi
|
|
2185
2051
|
* @extends {BaseAPI}
|
|
2186
2052
|
*/
|
|
2187
|
-
class
|
|
2053
|
+
class ManagerClubsApi extends base_1.BaseAPI {
|
|
2188
2054
|
/**
|
|
2189
2055
|
*
|
|
2190
|
-
* @summary
|
|
2191
|
-
* @param {
|
|
2056
|
+
* @summary Ajouter un membre à un club
|
|
2057
|
+
* @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
|
|
2192
2058
|
* @param {*} [options] Override http request option.
|
|
2193
2059
|
* @throws {RequiredError}
|
|
2194
|
-
* @memberof
|
|
2060
|
+
* @memberof ManagerClubsApi
|
|
2195
2061
|
*/
|
|
2196
|
-
|
|
2197
|
-
return (0, exports.
|
|
2062
|
+
addClubMember(requestParameters, options) {
|
|
2063
|
+
return (0, exports.ManagerClubsApiFp)(this.configuration).addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2198
2064
|
}
|
|
2199
2065
|
/**
|
|
2200
2066
|
*
|
|
2201
|
-
* @summary Récupérer
|
|
2202
|
-
* @param {
|
|
2067
|
+
* @summary Récupérer les informations d\'un club
|
|
2068
|
+
* @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
|
|
2203
2069
|
* @param {*} [options] Override http request option.
|
|
2204
2070
|
* @throws {RequiredError}
|
|
2205
|
-
* @memberof
|
|
2071
|
+
* @memberof ManagerClubsApi
|
|
2206
2072
|
*/
|
|
2207
|
-
|
|
2208
|
-
return (0, exports.
|
|
2073
|
+
getClubInfo(requestParameters, options) {
|
|
2074
|
+
return (0, exports.ManagerClubsApiFp)(this.configuration).getClubInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2075
|
+
}
|
|
2076
|
+
/**
|
|
2077
|
+
*
|
|
2078
|
+
* @summary Récupérer les membres d\'un club
|
|
2079
|
+
* @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
|
|
2080
|
+
* @param {*} [options] Override http request option.
|
|
2081
|
+
* @throws {RequiredError}
|
|
2082
|
+
* @memberof ManagerClubsApi
|
|
2083
|
+
*/
|
|
2084
|
+
getClubMembers(requestParameters, options) {
|
|
2085
|
+
return (0, exports.ManagerClubsApiFp)(this.configuration).getClubMembers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2086
|
+
}
|
|
2087
|
+
/**
|
|
2088
|
+
*
|
|
2089
|
+
* @summary Récupérer les rôles d\'un club
|
|
2090
|
+
* @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
|
|
2091
|
+
* @param {*} [options] Override http request option.
|
|
2092
|
+
* @throws {RequiredError}
|
|
2093
|
+
* @memberof ManagerClubsApi
|
|
2094
|
+
*/
|
|
2095
|
+
getClubRoles(requestParameters, options) {
|
|
2096
|
+
return (0, exports.ManagerClubsApiFp)(this.configuration).getClubRoles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2097
|
+
}
|
|
2098
|
+
/**
|
|
2099
|
+
*
|
|
2100
|
+
* @summary Mettre à jour un club existant
|
|
2101
|
+
* @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
|
|
2102
|
+
* @param {*} [options] Override http request option.
|
|
2103
|
+
* @throws {RequiredError}
|
|
2104
|
+
* @memberof ManagerClubsApi
|
|
2105
|
+
*/
|
|
2106
|
+
updateClub(requestParameters, options) {
|
|
2107
|
+
return (0, exports.ManagerClubsApiFp)(this.configuration).updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2209
2108
|
}
|
|
2210
2109
|
}
|
|
2211
|
-
exports.
|
|
2110
|
+
exports.ManagerClubsApi = ManagerClubsApi;
|
|
2212
2111
|
/**
|
|
2213
|
-
*
|
|
2112
|
+
* ManagerSportsApi - axios parameter creator
|
|
2214
2113
|
* @export
|
|
2215
2114
|
*/
|
|
2216
|
-
const
|
|
2115
|
+
const ManagerSportsApiAxiosParamCreator = function (configuration) {
|
|
2217
2116
|
return {
|
|
2218
2117
|
/**
|
|
2219
2118
|
*
|
|
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)
|
|
2119
|
+
* @summary Supprimer un sport
|
|
2120
|
+
* @param {string} id ID du sport
|
|
2224
2121
|
* @param {*} [options] Override http request option.
|
|
2225
2122
|
* @throws {RequiredError}
|
|
2226
2123
|
*/
|
|
2227
|
-
|
|
2124
|
+
deleteSport: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2228
2125
|
// 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`
|
|
2126
|
+
(0, common_1.assertParamExists)('deleteSport', 'id', id);
|
|
2127
|
+
const localVarPath = `/api/sports/{id}`
|
|
2235
2128
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2236
2129
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2237
2130
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2245,16 +2138,6 @@ const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
2245
2138
|
// authentication bearerAuth required
|
|
2246
2139
|
// http bearer authentication required
|
|
2247
2140
|
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
2141
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2259
2142
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2260
2143
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2265,17 +2148,18 @@ const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
2265
2148
|
}),
|
|
2266
2149
|
/**
|
|
2267
2150
|
*
|
|
2268
|
-
* @summary
|
|
2269
|
-
* @param {string} id ID du
|
|
2270
|
-
* @param {
|
|
2271
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
2151
|
+
* @summary Mettre à jour un sport
|
|
2152
|
+
* @param {string} id ID du sport
|
|
2153
|
+
* @param {UpdateSportRequest} updateSportRequest
|
|
2272
2154
|
* @param {*} [options] Override http request option.
|
|
2273
2155
|
* @throws {RequiredError}
|
|
2274
2156
|
*/
|
|
2275
|
-
|
|
2157
|
+
updateSport: (id_1, updateSportRequest_1, ...args_1) => __awaiter(this, [id_1, updateSportRequest_1, ...args_1], void 0, function* (id, updateSportRequest, options = {}) {
|
|
2276
2158
|
// verify required parameter 'id' is not null or undefined
|
|
2277
|
-
(0, common_1.assertParamExists)('
|
|
2278
|
-
|
|
2159
|
+
(0, common_1.assertParamExists)('updateSport', 'id', id);
|
|
2160
|
+
// verify required parameter 'updateSportRequest' is not null or undefined
|
|
2161
|
+
(0, common_1.assertParamExists)('updateSport', 'updateSportRequest', updateSportRequest);
|
|
2162
|
+
const localVarPath = `/api/sports/{id}`
|
|
2279
2163
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2280
2164
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2281
2165
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2283,25 +2167,17 @@ const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
2283
2167
|
if (configuration) {
|
|
2284
2168
|
baseOptions = configuration.baseOptions;
|
|
2285
2169
|
}
|
|
2286
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2170
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2287
2171
|
const localVarHeaderParameter = {};
|
|
2288
2172
|
const localVarQueryParameter = {};
|
|
2289
2173
|
// authentication bearerAuth required
|
|
2290
2174
|
// http bearer authentication required
|
|
2291
2175
|
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
|
-
}
|
|
2176
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2302
2177
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2303
2178
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2304
2179
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2180
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSportRequest, localVarRequestOptions, configuration);
|
|
2305
2181
|
return {
|
|
2306
2182
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2307
2183
|
options: localVarRequestOptions,
|
|
@@ -2309,134 +2185,128 @@ const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
2309
2185
|
}),
|
|
2310
2186
|
};
|
|
2311
2187
|
};
|
|
2312
|
-
exports.
|
|
2188
|
+
exports.ManagerSportsApiAxiosParamCreator = ManagerSportsApiAxiosParamCreator;
|
|
2313
2189
|
/**
|
|
2314
|
-
*
|
|
2190
|
+
* ManagerSportsApi - functional programming interface
|
|
2315
2191
|
* @export
|
|
2316
2192
|
*/
|
|
2317
|
-
const
|
|
2318
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
2193
|
+
const ManagerSportsApiFp = function (configuration) {
|
|
2194
|
+
const localVarAxiosParamCreator = (0, exports.ManagerSportsApiAxiosParamCreator)(configuration);
|
|
2319
2195
|
return {
|
|
2320
2196
|
/**
|
|
2321
2197
|
*
|
|
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)
|
|
2198
|
+
* @summary Supprimer un sport
|
|
2199
|
+
* @param {string} id ID du sport
|
|
2326
2200
|
* @param {*} [options] Override http request option.
|
|
2327
2201
|
* @throws {RequiredError}
|
|
2328
2202
|
*/
|
|
2329
|
-
|
|
2203
|
+
deleteSport(id, options) {
|
|
2330
2204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2331
2205
|
var _a, _b, _c;
|
|
2332
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2206
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSport(id, options);
|
|
2333
2207
|
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['
|
|
2208
|
+
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
2209
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2336
2210
|
});
|
|
2337
2211
|
},
|
|
2338
2212
|
/**
|
|
2339
2213
|
*
|
|
2340
|
-
* @summary
|
|
2341
|
-
* @param {string} id ID du
|
|
2342
|
-
* @param {
|
|
2343
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
2214
|
+
* @summary Mettre à jour un sport
|
|
2215
|
+
* @param {string} id ID du sport
|
|
2216
|
+
* @param {UpdateSportRequest} updateSportRequest
|
|
2344
2217
|
* @param {*} [options] Override http request option.
|
|
2345
2218
|
* @throws {RequiredError}
|
|
2346
2219
|
*/
|
|
2347
|
-
|
|
2220
|
+
updateSport(id, updateSportRequest, options) {
|
|
2348
2221
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2349
2222
|
var _a, _b, _c;
|
|
2350
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2223
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSport(id, updateSportRequest, options);
|
|
2351
2224
|
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['
|
|
2225
|
+
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
2226
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2354
2227
|
});
|
|
2355
2228
|
},
|
|
2356
2229
|
};
|
|
2357
2230
|
};
|
|
2358
|
-
exports.
|
|
2231
|
+
exports.ManagerSportsApiFp = ManagerSportsApiFp;
|
|
2359
2232
|
/**
|
|
2360
|
-
*
|
|
2233
|
+
* ManagerSportsApi - factory interface
|
|
2361
2234
|
* @export
|
|
2362
2235
|
*/
|
|
2363
|
-
const
|
|
2364
|
-
const localVarFp = (0, exports.
|
|
2236
|
+
const ManagerSportsApiFactory = function (configuration, basePath, axios) {
|
|
2237
|
+
const localVarFp = (0, exports.ManagerSportsApiFp)(configuration);
|
|
2365
2238
|
return {
|
|
2366
2239
|
/**
|
|
2367
2240
|
*
|
|
2368
|
-
* @summary Supprimer
|
|
2369
|
-
* @param {
|
|
2241
|
+
* @summary Supprimer un sport
|
|
2242
|
+
* @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
|
|
2370
2243
|
* @param {*} [options] Override http request option.
|
|
2371
2244
|
* @throws {RequiredError}
|
|
2372
2245
|
*/
|
|
2373
|
-
|
|
2374
|
-
return localVarFp.
|
|
2246
|
+
deleteSport(requestParameters, options) {
|
|
2247
|
+
return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2375
2248
|
},
|
|
2376
2249
|
/**
|
|
2377
2250
|
*
|
|
2378
|
-
* @summary
|
|
2379
|
-
* @param {
|
|
2251
|
+
* @summary Mettre à jour un sport
|
|
2252
|
+
* @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
|
|
2380
2253
|
* @param {*} [options] Override http request option.
|
|
2381
2254
|
* @throws {RequiredError}
|
|
2382
2255
|
*/
|
|
2383
|
-
|
|
2384
|
-
return localVarFp.
|
|
2256
|
+
updateSport(requestParameters, options) {
|
|
2257
|
+
return localVarFp.updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(axios, basePath));
|
|
2385
2258
|
},
|
|
2386
2259
|
};
|
|
2387
2260
|
};
|
|
2388
|
-
exports.
|
|
2261
|
+
exports.ManagerSportsApiFactory = ManagerSportsApiFactory;
|
|
2389
2262
|
/**
|
|
2390
|
-
*
|
|
2263
|
+
* ManagerSportsApi - object-oriented interface
|
|
2391
2264
|
* @export
|
|
2392
|
-
* @class
|
|
2265
|
+
* @class ManagerSportsApi
|
|
2393
2266
|
* @extends {BaseAPI}
|
|
2394
2267
|
*/
|
|
2395
|
-
class
|
|
2268
|
+
class ManagerSportsApi extends base_1.BaseAPI {
|
|
2396
2269
|
/**
|
|
2397
2270
|
*
|
|
2398
|
-
* @summary Supprimer
|
|
2399
|
-
* @param {
|
|
2271
|
+
* @summary Supprimer un sport
|
|
2272
|
+
* @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
|
|
2400
2273
|
* @param {*} [options] Override http request option.
|
|
2401
2274
|
* @throws {RequiredError}
|
|
2402
|
-
* @memberof
|
|
2275
|
+
* @memberof ManagerSportsApi
|
|
2403
2276
|
*/
|
|
2404
|
-
|
|
2405
|
-
return (0, exports.
|
|
2277
|
+
deleteSport(requestParameters, options) {
|
|
2278
|
+
return (0, exports.ManagerSportsApiFp)(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2406
2279
|
}
|
|
2407
2280
|
/**
|
|
2408
2281
|
*
|
|
2409
|
-
* @summary
|
|
2410
|
-
* @param {
|
|
2282
|
+
* @summary Mettre à jour un sport
|
|
2283
|
+
* @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
|
|
2411
2284
|
* @param {*} [options] Override http request option.
|
|
2412
2285
|
* @throws {RequiredError}
|
|
2413
|
-
* @memberof
|
|
2286
|
+
* @memberof ManagerSportsApi
|
|
2414
2287
|
*/
|
|
2415
|
-
|
|
2416
|
-
return (0, exports.
|
|
2288
|
+
updateSport(requestParameters, options) {
|
|
2289
|
+
return (0, exports.ManagerSportsApiFp)(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2417
2290
|
}
|
|
2418
2291
|
}
|
|
2419
|
-
exports.
|
|
2292
|
+
exports.ManagerSportsApi = ManagerSportsApi;
|
|
2420
2293
|
/**
|
|
2421
|
-
*
|
|
2294
|
+
* StaffClubAnalyticsApi - axios parameter creator
|
|
2422
2295
|
* @export
|
|
2423
2296
|
*/
|
|
2424
|
-
const
|
|
2297
|
+
const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
2425
2298
|
return {
|
|
2426
2299
|
/**
|
|
2427
2300
|
*
|
|
2428
|
-
* @summary
|
|
2301
|
+
* @summary Get monthly turnover for the last six months
|
|
2429
2302
|
* @param {string} id ID du club
|
|
2430
|
-
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
2431
2303
|
* @param {*} [options] Override http request option.
|
|
2432
2304
|
* @throws {RequiredError}
|
|
2433
2305
|
*/
|
|
2434
|
-
|
|
2306
|
+
getLastSixMonthsTurnover: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2435
2307
|
// verify required parameter 'id' is not null or undefined
|
|
2436
|
-
(0, common_1.assertParamExists)('
|
|
2437
|
-
|
|
2438
|
-
(0, common_1.assertParamExists)('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
2439
|
-
const localVarPath = `/api/clubs/{id}/add_members`
|
|
2308
|
+
(0, common_1.assertParamExists)('getLastSixMonthsTurnover', 'id', id);
|
|
2309
|
+
const localVarPath = `/api/clubs/{id}/turnover`
|
|
2440
2310
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2441
2311
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2442
2312
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2444,17 +2314,15 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2444
2314
|
if (configuration) {
|
|
2445
2315
|
baseOptions = configuration.baseOptions;
|
|
2446
2316
|
}
|
|
2447
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2317
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2448
2318
|
const localVarHeaderParameter = {};
|
|
2449
2319
|
const localVarQueryParameter = {};
|
|
2450
2320
|
// authentication bearerAuth required
|
|
2451
2321
|
// http bearer authentication required
|
|
2452
2322
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2453
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2454
2323
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2455
2324
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2456
2325
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2457
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
2458
2326
|
return {
|
|
2459
2327
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2460
2328
|
options: localVarRequestOptions,
|
|
@@ -2462,15 +2330,15 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2462
2330
|
}),
|
|
2463
2331
|
/**
|
|
2464
2332
|
*
|
|
2465
|
-
* @summary
|
|
2333
|
+
* @summary Get number of users subscribed to the club
|
|
2466
2334
|
* @param {string} id ID du club
|
|
2467
2335
|
* @param {*} [options] Override http request option.
|
|
2468
2336
|
* @throws {RequiredError}
|
|
2469
2337
|
*/
|
|
2470
|
-
|
|
2338
|
+
getNumberOfClubUsers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2471
2339
|
// verify required parameter 'id' is not null or undefined
|
|
2472
|
-
(0, common_1.assertParamExists)('
|
|
2473
|
-
const localVarPath = `/api/clubs/{id}`
|
|
2340
|
+
(0, common_1.assertParamExists)('getNumberOfClubUsers', 'id', id);
|
|
2341
|
+
const localVarPath = `/api/clubs/{id}/user-count`
|
|
2474
2342
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2475
2343
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2476
2344
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2492,84 +2360,129 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2492
2360
|
options: localVarRequestOptions,
|
|
2493
2361
|
};
|
|
2494
2362
|
}),
|
|
2363
|
+
};
|
|
2364
|
+
};
|
|
2365
|
+
exports.StaffClubAnalyticsApiAxiosParamCreator = StaffClubAnalyticsApiAxiosParamCreator;
|
|
2366
|
+
/**
|
|
2367
|
+
* StaffClubAnalyticsApi - functional programming interface
|
|
2368
|
+
* @export
|
|
2369
|
+
*/
|
|
2370
|
+
const StaffClubAnalyticsApiFp = function (configuration) {
|
|
2371
|
+
const localVarAxiosParamCreator = (0, exports.StaffClubAnalyticsApiAxiosParamCreator)(configuration);
|
|
2372
|
+
return {
|
|
2495
2373
|
/**
|
|
2496
2374
|
*
|
|
2497
|
-
* @summary
|
|
2375
|
+
* @summary Get monthly turnover for the last six months
|
|
2498
2376
|
* @param {string} id ID du club
|
|
2499
2377
|
* @param {*} [options] Override http request option.
|
|
2500
2378
|
* @throws {RequiredError}
|
|
2501
2379
|
*/
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
baseOptions = configuration.baseOptions;
|
|
2512
|
-
}
|
|
2513
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2514
|
-
const localVarHeaderParameter = {};
|
|
2515
|
-
const localVarQueryParameter = {};
|
|
2516
|
-
// authentication bearerAuth required
|
|
2517
|
-
// http bearer authentication required
|
|
2518
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2519
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2520
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2521
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2522
|
-
return {
|
|
2523
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2524
|
-
options: localVarRequestOptions,
|
|
2525
|
-
};
|
|
2526
|
-
}),
|
|
2380
|
+
getLastSixMonthsTurnover(id, options) {
|
|
2381
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2382
|
+
var _a, _b, _c;
|
|
2383
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLastSixMonthsTurnover(id, options);
|
|
2384
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2385
|
+
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;
|
|
2386
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2387
|
+
});
|
|
2388
|
+
},
|
|
2527
2389
|
/**
|
|
2528
2390
|
*
|
|
2529
|
-
* @summary
|
|
2391
|
+
* @summary Get number of users subscribed to the club
|
|
2530
2392
|
* @param {string} id ID du club
|
|
2531
2393
|
* @param {*} [options] Override http request option.
|
|
2532
2394
|
* @throws {RequiredError}
|
|
2533
2395
|
*/
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2554
|
-
return {
|
|
2555
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2556
|
-
options: localVarRequestOptions,
|
|
2557
|
-
};
|
|
2558
|
-
}),
|
|
2396
|
+
getNumberOfClubUsers(id, options) {
|
|
2397
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2398
|
+
var _a, _b, _c;
|
|
2399
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(id, options);
|
|
2400
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2401
|
+
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;
|
|
2402
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2403
|
+
});
|
|
2404
|
+
},
|
|
2405
|
+
};
|
|
2406
|
+
};
|
|
2407
|
+
exports.StaffClubAnalyticsApiFp = StaffClubAnalyticsApiFp;
|
|
2408
|
+
/**
|
|
2409
|
+
* StaffClubAnalyticsApi - factory interface
|
|
2410
|
+
* @export
|
|
2411
|
+
*/
|
|
2412
|
+
const StaffClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
2413
|
+
const localVarFp = (0, exports.StaffClubAnalyticsApiFp)(configuration);
|
|
2414
|
+
return {
|
|
2559
2415
|
/**
|
|
2560
2416
|
*
|
|
2561
|
-
* @summary
|
|
2417
|
+
* @summary Get monthly turnover for the last six months
|
|
2418
|
+
* @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
|
|
2419
|
+
* @param {*} [options] Override http request option.
|
|
2420
|
+
* @throws {RequiredError}
|
|
2421
|
+
*/
|
|
2422
|
+
getLastSixMonthsTurnover(requestParameters, options) {
|
|
2423
|
+
return localVarFp.getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2424
|
+
},
|
|
2425
|
+
/**
|
|
2426
|
+
*
|
|
2427
|
+
* @summary Get number of users subscribed to the club
|
|
2428
|
+
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
2429
|
+
* @param {*} [options] Override http request option.
|
|
2430
|
+
* @throws {RequiredError}
|
|
2431
|
+
*/
|
|
2432
|
+
getNumberOfClubUsers(requestParameters, options) {
|
|
2433
|
+
return localVarFp.getNumberOfClubUsers(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2434
|
+
},
|
|
2435
|
+
};
|
|
2436
|
+
};
|
|
2437
|
+
exports.StaffClubAnalyticsApiFactory = StaffClubAnalyticsApiFactory;
|
|
2438
|
+
/**
|
|
2439
|
+
* StaffClubAnalyticsApi - object-oriented interface
|
|
2440
|
+
* @export
|
|
2441
|
+
* @class StaffClubAnalyticsApi
|
|
2442
|
+
* @extends {BaseAPI}
|
|
2443
|
+
*/
|
|
2444
|
+
class StaffClubAnalyticsApi extends base_1.BaseAPI {
|
|
2445
|
+
/**
|
|
2446
|
+
*
|
|
2447
|
+
* @summary Get monthly turnover for the last six months
|
|
2448
|
+
* @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
|
|
2449
|
+
* @param {*} [options] Override http request option.
|
|
2450
|
+
* @throws {RequiredError}
|
|
2451
|
+
* @memberof StaffClubAnalyticsApi
|
|
2452
|
+
*/
|
|
2453
|
+
getLastSixMonthsTurnover(requestParameters, options) {
|
|
2454
|
+
return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2455
|
+
}
|
|
2456
|
+
/**
|
|
2457
|
+
*
|
|
2458
|
+
* @summary Get number of users subscribed to the club
|
|
2459
|
+
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
2460
|
+
* @param {*} [options] Override http request option.
|
|
2461
|
+
* @throws {RequiredError}
|
|
2462
|
+
* @memberof StaffClubAnalyticsApi
|
|
2463
|
+
*/
|
|
2464
|
+
getNumberOfClubUsers(requestParameters, options) {
|
|
2465
|
+
return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getNumberOfClubUsers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2466
|
+
}
|
|
2467
|
+
}
|
|
2468
|
+
exports.StaffClubAnalyticsApi = StaffClubAnalyticsApi;
|
|
2469
|
+
/**
|
|
2470
|
+
* StaffClubBookingsApi - axios parameter creator
|
|
2471
|
+
* @export
|
|
2472
|
+
*/
|
|
2473
|
+
const StaffClubBookingsApiAxiosParamCreator = function (configuration) {
|
|
2474
|
+
return {
|
|
2475
|
+
/**
|
|
2476
|
+
*
|
|
2477
|
+
* @summary Get the ten next bookings for the club
|
|
2562
2478
|
* @param {string} id ID du club
|
|
2563
|
-
* @param {UpdateClubRequest} updateClubRequest
|
|
2564
2479
|
* @param {*} [options] Override http request option.
|
|
2565
2480
|
* @throws {RequiredError}
|
|
2566
2481
|
*/
|
|
2567
|
-
|
|
2482
|
+
getTenNextBookings: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2568
2483
|
// verify required parameter 'id' is not null or undefined
|
|
2569
|
-
(0, common_1.assertParamExists)('
|
|
2570
|
-
|
|
2571
|
-
(0, common_1.assertParamExists)('updateClub', 'updateClubRequest', updateClubRequest);
|
|
2572
|
-
const localVarPath = `/api/clubs/{id}`
|
|
2484
|
+
(0, common_1.assertParamExists)('getTenNextBookings', 'id', id);
|
|
2485
|
+
const localVarPath = `/api/clubs/{id}/next-bookings`
|
|
2573
2486
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2574
2487
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2575
2488
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2577,17 +2490,15 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2577
2490
|
if (configuration) {
|
|
2578
2491
|
baseOptions = configuration.baseOptions;
|
|
2579
2492
|
}
|
|
2580
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2493
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2581
2494
|
const localVarHeaderParameter = {};
|
|
2582
2495
|
const localVarQueryParameter = {};
|
|
2583
2496
|
// authentication bearerAuth required
|
|
2584
2497
|
// http bearer authentication required
|
|
2585
2498
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2586
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2587
2499
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2588
2500
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2589
2501
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2590
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubRequest, localVarRequestOptions, configuration);
|
|
2591
2502
|
return {
|
|
2592
2503
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2593
2504
|
options: localVarRequestOptions,
|
|
@@ -2595,240 +2506,198 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2595
2506
|
}),
|
|
2596
2507
|
};
|
|
2597
2508
|
};
|
|
2598
|
-
exports.
|
|
2509
|
+
exports.StaffClubBookingsApiAxiosParamCreator = StaffClubBookingsApiAxiosParamCreator;
|
|
2599
2510
|
/**
|
|
2600
|
-
*
|
|
2511
|
+
* StaffClubBookingsApi - functional programming interface
|
|
2601
2512
|
* @export
|
|
2602
2513
|
*/
|
|
2603
|
-
const
|
|
2604
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
2514
|
+
const StaffClubBookingsApiFp = function (configuration) {
|
|
2515
|
+
const localVarAxiosParamCreator = (0, exports.StaffClubBookingsApiAxiosParamCreator)(configuration);
|
|
2605
2516
|
return {
|
|
2606
2517
|
/**
|
|
2607
2518
|
*
|
|
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
|
|
2519
|
+
* @summary Get the ten next bookings for the club
|
|
2626
2520
|
* @param {string} id ID du club
|
|
2627
2521
|
* @param {*} [options] Override http request option.
|
|
2628
2522
|
* @throws {RequiredError}
|
|
2629
2523
|
*/
|
|
2630
|
-
|
|
2524
|
+
getTenNextBookings(id, options) {
|
|
2631
2525
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2632
2526
|
var _a, _b, _c;
|
|
2633
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2527
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTenNextBookings(id, options);
|
|
2634
2528
|
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['
|
|
2529
|
+
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;
|
|
2636
2530
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2637
2531
|
});
|
|
2638
2532
|
},
|
|
2533
|
+
};
|
|
2534
|
+
};
|
|
2535
|
+
exports.StaffClubBookingsApiFp = StaffClubBookingsApiFp;
|
|
2536
|
+
/**
|
|
2537
|
+
* StaffClubBookingsApi - factory interface
|
|
2538
|
+
* @export
|
|
2539
|
+
*/
|
|
2540
|
+
const StaffClubBookingsApiFactory = function (configuration, basePath, axios) {
|
|
2541
|
+
const localVarFp = (0, exports.StaffClubBookingsApiFp)(configuration);
|
|
2542
|
+
return {
|
|
2639
2543
|
/**
|
|
2640
2544
|
*
|
|
2641
|
-
* @summary
|
|
2642
|
-
* @param {
|
|
2545
|
+
* @summary Get the ten next bookings for the club
|
|
2546
|
+
* @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
|
|
2643
2547
|
* @param {*} [options] Override http request option.
|
|
2644
2548
|
* @throws {RequiredError}
|
|
2645
2549
|
*/
|
|
2646
|
-
|
|
2647
|
-
return
|
|
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
|
-
});
|
|
2550
|
+
getTenNextBookings(requestParameters, options) {
|
|
2551
|
+
return localVarFp.getTenNextBookings(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2654
2552
|
},
|
|
2553
|
+
};
|
|
2554
|
+
};
|
|
2555
|
+
exports.StaffClubBookingsApiFactory = StaffClubBookingsApiFactory;
|
|
2556
|
+
/**
|
|
2557
|
+
* StaffClubBookingsApi - object-oriented interface
|
|
2558
|
+
* @export
|
|
2559
|
+
* @class StaffClubBookingsApi
|
|
2560
|
+
* @extends {BaseAPI}
|
|
2561
|
+
*/
|
|
2562
|
+
class StaffClubBookingsApi extends base_1.BaseAPI {
|
|
2563
|
+
/**
|
|
2564
|
+
*
|
|
2565
|
+
* @summary Get the ten next bookings for the club
|
|
2566
|
+
* @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
|
|
2567
|
+
* @param {*} [options] Override http request option.
|
|
2568
|
+
* @throws {RequiredError}
|
|
2569
|
+
* @memberof StaffClubBookingsApi
|
|
2570
|
+
*/
|
|
2571
|
+
getTenNextBookings(requestParameters, options) {
|
|
2572
|
+
return (0, exports.StaffClubBookingsApiFp)(this.configuration).getTenNextBookings(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2575
|
+
exports.StaffClubBookingsApi = StaffClubBookingsApi;
|
|
2576
|
+
/**
|
|
2577
|
+
* StaffClubSettingsApi - axios parameter creator
|
|
2578
|
+
* @export
|
|
2579
|
+
*/
|
|
2580
|
+
const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
2581
|
+
return {
|
|
2655
2582
|
/**
|
|
2656
2583
|
*
|
|
2657
|
-
* @summary
|
|
2658
|
-
* @param {
|
|
2584
|
+
* @summary Récupère les paramètres d\'un club
|
|
2585
|
+
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
2659
2586
|
* @param {*} [options] Override http request option.
|
|
2660
2587
|
* @throws {RequiredError}
|
|
2661
2588
|
*/
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2589
|
+
getClubSettings: (getClubSettingsRequest_1, ...args_1) => __awaiter(this, [getClubSettingsRequest_1, ...args_1], void 0, function* (getClubSettingsRequest, options = {}) {
|
|
2590
|
+
// verify required parameter 'getClubSettingsRequest' is not null or undefined
|
|
2591
|
+
(0, common_1.assertParamExists)('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
|
|
2592
|
+
const localVarPath = `/api/club-settings`;
|
|
2593
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2594
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2595
|
+
let baseOptions;
|
|
2596
|
+
if (configuration) {
|
|
2597
|
+
baseOptions = configuration.baseOptions;
|
|
2598
|
+
}
|
|
2599
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2600
|
+
const localVarHeaderParameter = {};
|
|
2601
|
+
const localVarQueryParameter = {};
|
|
2602
|
+
// authentication bearerAuth required
|
|
2603
|
+
// http bearer authentication required
|
|
2604
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2605
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2606
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2607
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2608
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2609
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2610
|
+
return {
|
|
2611
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2612
|
+
options: localVarRequestOptions,
|
|
2613
|
+
};
|
|
2614
|
+
}),
|
|
2615
|
+
};
|
|
2616
|
+
};
|
|
2617
|
+
exports.StaffClubSettingsApiAxiosParamCreator = StaffClubSettingsApiAxiosParamCreator;
|
|
2618
|
+
/**
|
|
2619
|
+
* StaffClubSettingsApi - functional programming interface
|
|
2620
|
+
* @export
|
|
2621
|
+
*/
|
|
2622
|
+
const StaffClubSettingsApiFp = function (configuration) {
|
|
2623
|
+
const localVarAxiosParamCreator = (0, exports.StaffClubSettingsApiAxiosParamCreator)(configuration);
|
|
2624
|
+
return {
|
|
2671
2625
|
/**
|
|
2672
2626
|
*
|
|
2673
|
-
* @summary
|
|
2674
|
-
* @param {
|
|
2675
|
-
* @param {UpdateClubRequest} updateClubRequest
|
|
2627
|
+
* @summary Récupère les paramètres d\'un club
|
|
2628
|
+
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
2676
2629
|
* @param {*} [options] Override http request option.
|
|
2677
2630
|
* @throws {RequiredError}
|
|
2678
2631
|
*/
|
|
2679
|
-
|
|
2632
|
+
getClubSettings(getClubSettingsRequest, options) {
|
|
2680
2633
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2681
2634
|
var _a, _b, _c;
|
|
2682
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2635
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(getClubSettingsRequest, options);
|
|
2683
2636
|
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['
|
|
2637
|
+
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;
|
|
2685
2638
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2686
2639
|
});
|
|
2687
2640
|
},
|
|
2688
2641
|
};
|
|
2689
2642
|
};
|
|
2690
|
-
exports.
|
|
2643
|
+
exports.StaffClubSettingsApiFp = StaffClubSettingsApiFp;
|
|
2691
2644
|
/**
|
|
2692
|
-
*
|
|
2645
|
+
* StaffClubSettingsApi - factory interface
|
|
2693
2646
|
* @export
|
|
2694
2647
|
*/
|
|
2695
|
-
const
|
|
2696
|
-
const localVarFp = (0, exports.
|
|
2648
|
+
const StaffClubSettingsApiFactory = function (configuration, basePath, axios) {
|
|
2649
|
+
const localVarFp = (0, exports.StaffClubSettingsApiFp)(configuration);
|
|
2697
2650
|
return {
|
|
2698
2651
|
/**
|
|
2699
2652
|
*
|
|
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.
|
|
2732
|
-
* @param {*} [options] Override http request option.
|
|
2733
|
-
* @throws {RequiredError}
|
|
2734
|
-
*/
|
|
2735
|
-
getClubRoles(requestParameters, options) {
|
|
2736
|
-
return localVarFp.getClubRoles(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2737
|
-
},
|
|
2738
|
-
/**
|
|
2739
|
-
*
|
|
2740
|
-
* @summary Mettre à jour un club existant
|
|
2741
|
-
* @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
|
|
2653
|
+
* @summary Récupère les paramètres d\'un club
|
|
2654
|
+
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
2742
2655
|
* @param {*} [options] Override http request option.
|
|
2743
2656
|
* @throws {RequiredError}
|
|
2744
2657
|
*/
|
|
2745
|
-
|
|
2746
|
-
return localVarFp.
|
|
2658
|
+
getClubSettings(requestParameters, options) {
|
|
2659
|
+
return localVarFp.getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2747
2660
|
},
|
|
2748
2661
|
};
|
|
2749
2662
|
};
|
|
2750
|
-
exports.
|
|
2663
|
+
exports.StaffClubSettingsApiFactory = StaffClubSettingsApiFactory;
|
|
2751
2664
|
/**
|
|
2752
|
-
*
|
|
2665
|
+
* StaffClubSettingsApi - object-oriented interface
|
|
2753
2666
|
* @export
|
|
2754
|
-
* @class
|
|
2667
|
+
* @class StaffClubSettingsApi
|
|
2755
2668
|
* @extends {BaseAPI}
|
|
2756
2669
|
*/
|
|
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
|
-
}
|
|
2780
|
-
/**
|
|
2781
|
-
*
|
|
2782
|
-
* @summary Récupérer les membres d\'un club
|
|
2783
|
-
* @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
|
|
2784
|
-
* @param {*} [options] Override http request option.
|
|
2785
|
-
* @throws {RequiredError}
|
|
2786
|
-
* @memberof ManagerClubsApi
|
|
2787
|
-
*/
|
|
2788
|
-
getClubMembers(requestParameters, options) {
|
|
2789
|
-
return (0, exports.ManagerClubsApiFp)(this.configuration).getClubMembers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2790
|
-
}
|
|
2791
|
-
/**
|
|
2792
|
-
*
|
|
2793
|
-
* @summary Récupérer les rôles d\'un club
|
|
2794
|
-
* @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
|
|
2795
|
-
* @param {*} [options] Override http request option.
|
|
2796
|
-
* @throws {RequiredError}
|
|
2797
|
-
* @memberof ManagerClubsApi
|
|
2798
|
-
*/
|
|
2799
|
-
getClubRoles(requestParameters, options) {
|
|
2800
|
-
return (0, exports.ManagerClubsApiFp)(this.configuration).getClubRoles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2801
|
-
}
|
|
2670
|
+
class StaffClubSettingsApi extends base_1.BaseAPI {
|
|
2802
2671
|
/**
|
|
2803
2672
|
*
|
|
2804
|
-
* @summary
|
|
2805
|
-
* @param {
|
|
2673
|
+
* @summary Récupère les paramètres d\'un club
|
|
2674
|
+
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
2806
2675
|
* @param {*} [options] Override http request option.
|
|
2807
2676
|
* @throws {RequiredError}
|
|
2808
|
-
* @memberof
|
|
2677
|
+
* @memberof StaffClubSettingsApi
|
|
2809
2678
|
*/
|
|
2810
|
-
|
|
2811
|
-
return (0, exports.
|
|
2679
|
+
getClubSettings(requestParameters, options) {
|
|
2680
|
+
return (0, exports.StaffClubSettingsApiFp)(this.configuration).getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2812
2681
|
}
|
|
2813
2682
|
}
|
|
2814
|
-
exports.
|
|
2683
|
+
exports.StaffClubSettingsApi = StaffClubSettingsApi;
|
|
2815
2684
|
/**
|
|
2816
|
-
*
|
|
2685
|
+
* StaffClubsApi - axios parameter creator
|
|
2817
2686
|
* @export
|
|
2818
2687
|
*/
|
|
2819
|
-
const
|
|
2688
|
+
const StaffClubsApiAxiosParamCreator = function (configuration) {
|
|
2820
2689
|
return {
|
|
2821
2690
|
/**
|
|
2822
|
-
*
|
|
2823
|
-
* @summary
|
|
2824
|
-
* @param {string} id ID du
|
|
2691
|
+
*
|
|
2692
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2693
|
+
* @param {string} id ID du club
|
|
2825
2694
|
* @param {*} [options] Override http request option.
|
|
2826
2695
|
* @throws {RequiredError}
|
|
2827
2696
|
*/
|
|
2828
|
-
|
|
2697
|
+
getClubInfos: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2829
2698
|
// verify required parameter 'id' is not null or undefined
|
|
2830
|
-
(0, common_1.assertParamExists)('
|
|
2831
|
-
const localVarPath = `/api/
|
|
2699
|
+
(0, common_1.assertParamExists)('getClubInfos', 'id', id);
|
|
2700
|
+
const localVarPath = `/api/clubs/{id}/infos`
|
|
2832
2701
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2833
2702
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2834
2703
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2836,7 +2705,7 @@ const SportsApiAxiosParamCreator = function (configuration) {
|
|
|
2836
2705
|
if (configuration) {
|
|
2837
2706
|
baseOptions = configuration.baseOptions;
|
|
2838
2707
|
}
|
|
2839
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2708
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2840
2709
|
const localVarHeaderParameter = {};
|
|
2841
2710
|
const localVarQueryParameter = {};
|
|
2842
2711
|
// authentication bearerAuth required
|
|
@@ -2850,38 +2719,104 @@ const SportsApiAxiosParamCreator = function (configuration) {
|
|
|
2850
2719
|
options: localVarRequestOptions,
|
|
2851
2720
|
};
|
|
2852
2721
|
}),
|
|
2722
|
+
};
|
|
2723
|
+
};
|
|
2724
|
+
exports.StaffClubsApiAxiosParamCreator = StaffClubsApiAxiosParamCreator;
|
|
2725
|
+
/**
|
|
2726
|
+
* StaffClubsApi - functional programming interface
|
|
2727
|
+
* @export
|
|
2728
|
+
*/
|
|
2729
|
+
const StaffClubsApiFp = function (configuration) {
|
|
2730
|
+
const localVarAxiosParamCreator = (0, exports.StaffClubsApiAxiosParamCreator)(configuration);
|
|
2731
|
+
return {
|
|
2853
2732
|
/**
|
|
2854
2733
|
*
|
|
2855
|
-
* @summary
|
|
2856
|
-
* @param {string} id ID du
|
|
2857
|
-
* @param {UpdateSportRequest} updateSportRequest
|
|
2734
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2735
|
+
* @param {string} id ID du club
|
|
2858
2736
|
* @param {*} [options] Override http request option.
|
|
2859
2737
|
* @throws {RequiredError}
|
|
2860
2738
|
*/
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2739
|
+
getClubInfos(id, options) {
|
|
2740
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2741
|
+
var _a, _b, _c;
|
|
2742
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfos(id, options);
|
|
2743
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2744
|
+
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;
|
|
2745
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2746
|
+
});
|
|
2747
|
+
},
|
|
2748
|
+
};
|
|
2749
|
+
};
|
|
2750
|
+
exports.StaffClubsApiFp = StaffClubsApiFp;
|
|
2751
|
+
/**
|
|
2752
|
+
* StaffClubsApi - factory interface
|
|
2753
|
+
* @export
|
|
2754
|
+
*/
|
|
2755
|
+
const StaffClubsApiFactory = function (configuration, basePath, axios) {
|
|
2756
|
+
const localVarFp = (0, exports.StaffClubsApiFp)(configuration);
|
|
2757
|
+
return {
|
|
2758
|
+
/**
|
|
2759
|
+
*
|
|
2760
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2761
|
+
* @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
|
|
2762
|
+
* @param {*} [options] Override http request option.
|
|
2763
|
+
* @throws {RequiredError}
|
|
2764
|
+
*/
|
|
2765
|
+
getClubInfos(requestParameters, options) {
|
|
2766
|
+
return localVarFp.getClubInfos(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2767
|
+
},
|
|
2768
|
+
};
|
|
2769
|
+
};
|
|
2770
|
+
exports.StaffClubsApiFactory = StaffClubsApiFactory;
|
|
2771
|
+
/**
|
|
2772
|
+
* StaffClubsApi - object-oriented interface
|
|
2773
|
+
* @export
|
|
2774
|
+
* @class StaffClubsApi
|
|
2775
|
+
* @extends {BaseAPI}
|
|
2776
|
+
*/
|
|
2777
|
+
class StaffClubsApi extends base_1.BaseAPI {
|
|
2778
|
+
/**
|
|
2779
|
+
*
|
|
2780
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2781
|
+
* @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
|
|
2782
|
+
* @param {*} [options] Override http request option.
|
|
2783
|
+
* @throws {RequiredError}
|
|
2784
|
+
* @memberof StaffClubsApi
|
|
2785
|
+
*/
|
|
2786
|
+
getClubInfos(requestParameters, options) {
|
|
2787
|
+
return (0, exports.StaffClubsApiFp)(this.configuration).getClubInfos(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
exports.StaffClubsApi = StaffClubsApi;
|
|
2791
|
+
/**
|
|
2792
|
+
* StaffProfileApi - axios parameter creator
|
|
2793
|
+
* @export
|
|
2794
|
+
*/
|
|
2795
|
+
const StaffProfileApiAxiosParamCreator = function (configuration) {
|
|
2796
|
+
return {
|
|
2797
|
+
/**
|
|
2798
|
+
*
|
|
2799
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
2800
|
+
* @param {*} [options] Override http request option.
|
|
2801
|
+
* @throws {RequiredError}
|
|
2802
|
+
*/
|
|
2803
|
+
getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2804
|
+
const localVarPath = `/api/users/me/roles`;
|
|
2868
2805
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2869
2806
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2870
2807
|
let baseOptions;
|
|
2871
2808
|
if (configuration) {
|
|
2872
2809
|
baseOptions = configuration.baseOptions;
|
|
2873
2810
|
}
|
|
2874
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2811
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2875
2812
|
const localVarHeaderParameter = {};
|
|
2876
2813
|
const localVarQueryParameter = {};
|
|
2877
2814
|
// authentication bearerAuth required
|
|
2878
2815
|
// http bearer authentication required
|
|
2879
2816
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2880
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2881
2817
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2882
2818
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2883
2819
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2884
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSportRequest, localVarRequestOptions, configuration);
|
|
2885
2820
|
return {
|
|
2886
2821
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2887
2822
|
options: localVarRequestOptions,
|
|
@@ -2889,128 +2824,87 @@ const SportsApiAxiosParamCreator = function (configuration) {
|
|
|
2889
2824
|
}),
|
|
2890
2825
|
};
|
|
2891
2826
|
};
|
|
2892
|
-
exports.
|
|
2827
|
+
exports.StaffProfileApiAxiosParamCreator = StaffProfileApiAxiosParamCreator;
|
|
2893
2828
|
/**
|
|
2894
|
-
*
|
|
2829
|
+
* StaffProfileApi - functional programming interface
|
|
2895
2830
|
* @export
|
|
2896
2831
|
*/
|
|
2897
|
-
const
|
|
2898
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
2832
|
+
const StaffProfileApiFp = function (configuration) {
|
|
2833
|
+
const localVarAxiosParamCreator = (0, exports.StaffProfileApiAxiosParamCreator)(configuration);
|
|
2899
2834
|
return {
|
|
2900
2835
|
/**
|
|
2901
2836
|
*
|
|
2902
|
-
* @summary
|
|
2903
|
-
* @param {string} id ID du sport
|
|
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
|
|
2837
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
2921
2838
|
* @param {*} [options] Override http request option.
|
|
2922
2839
|
* @throws {RequiredError}
|
|
2923
2840
|
*/
|
|
2924
|
-
|
|
2841
|
+
getUserRolesInClubs(options) {
|
|
2925
2842
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2926
2843
|
var _a, _b, _c;
|
|
2927
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2844
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
|
|
2928
2845
|
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['
|
|
2846
|
+
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;
|
|
2930
2847
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2931
2848
|
});
|
|
2932
2849
|
},
|
|
2933
2850
|
};
|
|
2934
2851
|
};
|
|
2935
|
-
exports.
|
|
2852
|
+
exports.StaffProfileApiFp = StaffProfileApiFp;
|
|
2936
2853
|
/**
|
|
2937
|
-
*
|
|
2854
|
+
* StaffProfileApi - factory interface
|
|
2938
2855
|
* @export
|
|
2939
2856
|
*/
|
|
2940
|
-
const
|
|
2941
|
-
const localVarFp = (0, exports.
|
|
2857
|
+
const StaffProfileApiFactory = function (configuration, basePath, axios) {
|
|
2858
|
+
const localVarFp = (0, exports.StaffProfileApiFp)(configuration);
|
|
2942
2859
|
return {
|
|
2943
2860
|
/**
|
|
2944
2861
|
*
|
|
2945
|
-
* @summary
|
|
2946
|
-
* @param {SportsApiDeleteSportRequest} requestParameters Request parameters.
|
|
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.
|
|
2862
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
2957
2863
|
* @param {*} [options] Override http request option.
|
|
2958
2864
|
* @throws {RequiredError}
|
|
2959
2865
|
*/
|
|
2960
|
-
|
|
2961
|
-
return localVarFp.
|
|
2866
|
+
getUserRolesInClubs(options) {
|
|
2867
|
+
return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
|
|
2962
2868
|
},
|
|
2963
2869
|
};
|
|
2964
2870
|
};
|
|
2965
|
-
exports.
|
|
2871
|
+
exports.StaffProfileApiFactory = StaffProfileApiFactory;
|
|
2966
2872
|
/**
|
|
2967
|
-
*
|
|
2873
|
+
* StaffProfileApi - object-oriented interface
|
|
2968
2874
|
* @export
|
|
2969
|
-
* @class
|
|
2875
|
+
* @class StaffProfileApi
|
|
2970
2876
|
* @extends {BaseAPI}
|
|
2971
2877
|
*/
|
|
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
|
-
}
|
|
2878
|
+
class StaffProfileApi extends base_1.BaseAPI {
|
|
2984
2879
|
/**
|
|
2985
2880
|
*
|
|
2986
|
-
* @summary
|
|
2987
|
-
* @param {SportsApiUpdateSportRequest} requestParameters Request parameters.
|
|
2881
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
2988
2882
|
* @param {*} [options] Override http request option.
|
|
2989
2883
|
* @throws {RequiredError}
|
|
2990
|
-
* @memberof
|
|
2884
|
+
* @memberof StaffProfileApi
|
|
2991
2885
|
*/
|
|
2992
|
-
|
|
2993
|
-
return (0, exports.
|
|
2886
|
+
getUserRolesInClubs(options) {
|
|
2887
|
+
return (0, exports.StaffProfileApiFp)(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
|
|
2994
2888
|
}
|
|
2995
2889
|
}
|
|
2996
|
-
exports.
|
|
2890
|
+
exports.StaffProfileApi = StaffProfileApi;
|
|
2997
2891
|
/**
|
|
2998
|
-
*
|
|
2892
|
+
* StaffSportsApi - axios parameter creator
|
|
2999
2893
|
* @export
|
|
3000
2894
|
*/
|
|
3001
|
-
const
|
|
2895
|
+
const StaffSportsApiAxiosParamCreator = function (configuration) {
|
|
3002
2896
|
return {
|
|
3003
2897
|
/**
|
|
3004
2898
|
*
|
|
3005
|
-
* @summary Récupère
|
|
3006
|
-
* @param {
|
|
2899
|
+
* @summary Récupère la liste des sports d\'un club
|
|
2900
|
+
* @param {GetAllSportsRequest} getAllSportsRequest
|
|
3007
2901
|
* @param {*} [options] Override http request option.
|
|
3008
2902
|
* @throws {RequiredError}
|
|
3009
2903
|
*/
|
|
3010
|
-
|
|
3011
|
-
// verify required parameter '
|
|
3012
|
-
(0, common_1.assertParamExists)('
|
|
3013
|
-
const localVarPath = `/api/
|
|
2904
|
+
getAllSports: (getAllSportsRequest_1, ...args_1) => __awaiter(this, [getAllSportsRequest_1, ...args_1], void 0, function* (getAllSportsRequest, options = {}) {
|
|
2905
|
+
// verify required parameter 'getAllSportsRequest' is not null or undefined
|
|
2906
|
+
(0, common_1.assertParamExists)('getAllSports', 'getAllSportsRequest', getAllSportsRequest);
|
|
2907
|
+
const localVarPath = `/api/sports`;
|
|
3014
2908
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3015
2909
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3016
2910
|
let baseOptions;
|
|
@@ -3027,7 +2921,7 @@ const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
|
3027
2921
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3028
2922
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3029
2923
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3030
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
2924
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getAllSportsRequest, localVarRequestOptions, configuration);
|
|
3031
2925
|
return {
|
|
3032
2926
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3033
2927
|
options: localVarRequestOptions,
|
|
@@ -3035,97 +2929,97 @@ const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
|
3035
2929
|
}),
|
|
3036
2930
|
};
|
|
3037
2931
|
};
|
|
3038
|
-
exports.
|
|
2932
|
+
exports.StaffSportsApiAxiosParamCreator = StaffSportsApiAxiosParamCreator;
|
|
3039
2933
|
/**
|
|
3040
|
-
*
|
|
2934
|
+
* StaffSportsApi - functional programming interface
|
|
3041
2935
|
* @export
|
|
3042
2936
|
*/
|
|
3043
|
-
const
|
|
3044
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
2937
|
+
const StaffSportsApiFp = function (configuration) {
|
|
2938
|
+
const localVarAxiosParamCreator = (0, exports.StaffSportsApiAxiosParamCreator)(configuration);
|
|
3045
2939
|
return {
|
|
3046
2940
|
/**
|
|
3047
2941
|
*
|
|
3048
|
-
* @summary Récupère
|
|
3049
|
-
* @param {
|
|
2942
|
+
* @summary Récupère la liste des sports d\'un club
|
|
2943
|
+
* @param {GetAllSportsRequest} getAllSportsRequest
|
|
3050
2944
|
* @param {*} [options] Override http request option.
|
|
3051
2945
|
* @throws {RequiredError}
|
|
3052
2946
|
*/
|
|
3053
|
-
|
|
2947
|
+
getAllSports(getAllSportsRequest, options) {
|
|
3054
2948
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3055
2949
|
var _a, _b, _c;
|
|
3056
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2950
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllSports(getAllSportsRequest, options);
|
|
3057
2951
|
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['
|
|
2952
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffSportsApi.getAllSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3059
2953
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3060
2954
|
});
|
|
3061
2955
|
},
|
|
3062
2956
|
};
|
|
3063
2957
|
};
|
|
3064
|
-
exports.
|
|
2958
|
+
exports.StaffSportsApiFp = StaffSportsApiFp;
|
|
3065
2959
|
/**
|
|
3066
|
-
*
|
|
2960
|
+
* StaffSportsApi - factory interface
|
|
3067
2961
|
* @export
|
|
3068
2962
|
*/
|
|
3069
|
-
const
|
|
3070
|
-
const localVarFp = (0, exports.
|
|
2963
|
+
const StaffSportsApiFactory = function (configuration, basePath, axios) {
|
|
2964
|
+
const localVarFp = (0, exports.StaffSportsApiFp)(configuration);
|
|
3071
2965
|
return {
|
|
3072
2966
|
/**
|
|
3073
2967
|
*
|
|
3074
|
-
* @summary Récupère
|
|
3075
|
-
* @param {
|
|
2968
|
+
* @summary Récupère la liste des sports d\'un club
|
|
2969
|
+
* @param {StaffSportsApiGetAllSportsRequest} requestParameters Request parameters.
|
|
3076
2970
|
* @param {*} [options] Override http request option.
|
|
3077
2971
|
* @throws {RequiredError}
|
|
3078
2972
|
*/
|
|
3079
|
-
|
|
3080
|
-
return localVarFp.
|
|
2973
|
+
getAllSports(requestParameters, options) {
|
|
2974
|
+
return localVarFp.getAllSports(requestParameters.getAllSportsRequest, options).then((request) => request(axios, basePath));
|
|
3081
2975
|
},
|
|
3082
2976
|
};
|
|
3083
2977
|
};
|
|
3084
|
-
exports.
|
|
2978
|
+
exports.StaffSportsApiFactory = StaffSportsApiFactory;
|
|
3085
2979
|
/**
|
|
3086
|
-
*
|
|
2980
|
+
* StaffSportsApi - object-oriented interface
|
|
3087
2981
|
* @export
|
|
3088
|
-
* @class
|
|
2982
|
+
* @class StaffSportsApi
|
|
3089
2983
|
* @extends {BaseAPI}
|
|
3090
2984
|
*/
|
|
3091
|
-
class
|
|
2985
|
+
class StaffSportsApi extends base_1.BaseAPI {
|
|
3092
2986
|
/**
|
|
3093
2987
|
*
|
|
3094
|
-
* @summary Récupère
|
|
3095
|
-
* @param {
|
|
2988
|
+
* @summary Récupère la liste des sports d\'un club
|
|
2989
|
+
* @param {StaffSportsApiGetAllSportsRequest} requestParameters Request parameters.
|
|
3096
2990
|
* @param {*} [options] Override http request option.
|
|
3097
2991
|
* @throws {RequiredError}
|
|
3098
|
-
* @memberof
|
|
2992
|
+
* @memberof StaffSportsApi
|
|
3099
2993
|
*/
|
|
3100
|
-
|
|
3101
|
-
return (0, exports.
|
|
2994
|
+
getAllSports(requestParameters, options) {
|
|
2995
|
+
return (0, exports.StaffSportsApiFp)(this.configuration).getAllSports(requestParameters.getAllSportsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3102
2996
|
}
|
|
3103
2997
|
}
|
|
3104
|
-
exports.
|
|
2998
|
+
exports.StaffSportsApi = StaffSportsApi;
|
|
3105
2999
|
/**
|
|
3106
|
-
*
|
|
3000
|
+
* UserApi - axios parameter creator
|
|
3107
3001
|
* @export
|
|
3108
3002
|
*/
|
|
3109
|
-
const
|
|
3003
|
+
const UserApiAxiosParamCreator = function (configuration) {
|
|
3110
3004
|
return {
|
|
3111
3005
|
/**
|
|
3112
3006
|
*
|
|
3113
|
-
* @summary
|
|
3114
|
-
* @param {
|
|
3007
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
3008
|
+
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
3115
3009
|
* @param {*} [options] Override http request option.
|
|
3116
3010
|
* @throws {RequiredError}
|
|
3117
3011
|
*/
|
|
3118
|
-
|
|
3119
|
-
// verify required parameter '
|
|
3120
|
-
(0, common_1.assertParamExists)('
|
|
3121
|
-
const localVarPath = `/api/
|
|
3012
|
+
subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
|
|
3013
|
+
// verify required parameter 'subscribeToClubRequestBody' is not null or undefined
|
|
3014
|
+
(0, common_1.assertParamExists)('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
|
|
3015
|
+
const localVarPath = `/api/users/me/subscribe`;
|
|
3122
3016
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3123
3017
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3124
3018
|
let baseOptions;
|
|
3125
3019
|
if (configuration) {
|
|
3126
3020
|
baseOptions = configuration.baseOptions;
|
|
3127
3021
|
}
|
|
3128
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3022
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3129
3023
|
const localVarHeaderParameter = {};
|
|
3130
3024
|
const localVarQueryParameter = {};
|
|
3131
3025
|
// authentication bearerAuth required
|
|
@@ -3135,7 +3029,40 @@ const StaffSportsApiAxiosParamCreator = function (configuration) {
|
|
|
3135
3029
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3136
3030
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3137
3031
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3138
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
3032
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscribeToClubRequestBody, localVarRequestOptions, configuration);
|
|
3033
|
+
return {
|
|
3034
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3035
|
+
options: localVarRequestOptions,
|
|
3036
|
+
};
|
|
3037
|
+
}),
|
|
3038
|
+
/**
|
|
3039
|
+
*
|
|
3040
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
3041
|
+
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
3042
|
+
* @param {*} [options] Override http request option.
|
|
3043
|
+
* @throws {RequiredError}
|
|
3044
|
+
*/
|
|
3045
|
+
updateCustomer: (updateCustomerRequestBody_1, ...args_1) => __awaiter(this, [updateCustomerRequestBody_1, ...args_1], void 0, function* (updateCustomerRequestBody, options = {}) {
|
|
3046
|
+
// verify required parameter 'updateCustomerRequestBody' is not null or undefined
|
|
3047
|
+
(0, common_1.assertParamExists)('updateCustomer', 'updateCustomerRequestBody', updateCustomerRequestBody);
|
|
3048
|
+
const localVarPath = `/api/users/me/customer`;
|
|
3049
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3050
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3051
|
+
let baseOptions;
|
|
3052
|
+
if (configuration) {
|
|
3053
|
+
baseOptions = configuration.baseOptions;
|
|
3054
|
+
}
|
|
3055
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3056
|
+
const localVarHeaderParameter = {};
|
|
3057
|
+
const localVarQueryParameter = {};
|
|
3058
|
+
// authentication bearerAuth required
|
|
3059
|
+
// http bearer authentication required
|
|
3060
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3061
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3062
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3063
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3064
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3065
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequestBody, localVarRequestOptions, configuration);
|
|
3139
3066
|
return {
|
|
3140
3067
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3141
3068
|
options: localVarRequestOptions,
|
|
@@ -3143,73 +3070,110 @@ const StaffSportsApiAxiosParamCreator = function (configuration) {
|
|
|
3143
3070
|
}),
|
|
3144
3071
|
};
|
|
3145
3072
|
};
|
|
3146
|
-
exports.
|
|
3073
|
+
exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
|
|
3147
3074
|
/**
|
|
3148
|
-
*
|
|
3075
|
+
* UserApi - functional programming interface
|
|
3149
3076
|
* @export
|
|
3150
3077
|
*/
|
|
3151
|
-
const
|
|
3152
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
3078
|
+
const UserApiFp = function (configuration) {
|
|
3079
|
+
const localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
|
|
3153
3080
|
return {
|
|
3154
3081
|
/**
|
|
3155
3082
|
*
|
|
3156
|
-
* @summary
|
|
3157
|
-
* @param {
|
|
3083
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
3084
|
+
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
3158
3085
|
* @param {*} [options] Override http request option.
|
|
3159
3086
|
* @throws {RequiredError}
|
|
3160
3087
|
*/
|
|
3161
|
-
|
|
3088
|
+
subscribeToClub(subscribeToClubRequestBody, options) {
|
|
3162
3089
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3163
3090
|
var _a, _b, _c;
|
|
3164
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3091
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
|
|
3165
3092
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3166
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
3093
|
+
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;
|
|
3094
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3095
|
+
});
|
|
3096
|
+
},
|
|
3097
|
+
/**
|
|
3098
|
+
*
|
|
3099
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
3100
|
+
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
3101
|
+
* @param {*} [options] Override http request option.
|
|
3102
|
+
* @throws {RequiredError}
|
|
3103
|
+
*/
|
|
3104
|
+
updateCustomer(updateCustomerRequestBody, options) {
|
|
3105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3106
|
+
var _a, _b, _c;
|
|
3107
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomer(updateCustomerRequestBody, options);
|
|
3108
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3109
|
+
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;
|
|
3167
3110
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3168
3111
|
});
|
|
3169
3112
|
},
|
|
3170
3113
|
};
|
|
3171
3114
|
};
|
|
3172
|
-
exports.
|
|
3115
|
+
exports.UserApiFp = UserApiFp;
|
|
3173
3116
|
/**
|
|
3174
|
-
*
|
|
3117
|
+
* UserApi - factory interface
|
|
3175
3118
|
* @export
|
|
3176
3119
|
*/
|
|
3177
|
-
const
|
|
3178
|
-
const localVarFp = (0, exports.
|
|
3120
|
+
const UserApiFactory = function (configuration, basePath, axios) {
|
|
3121
|
+
const localVarFp = (0, exports.UserApiFp)(configuration);
|
|
3179
3122
|
return {
|
|
3180
3123
|
/**
|
|
3181
3124
|
*
|
|
3182
|
-
* @summary
|
|
3183
|
-
* @param {
|
|
3125
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
3126
|
+
* @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
3184
3127
|
* @param {*} [options] Override http request option.
|
|
3185
3128
|
* @throws {RequiredError}
|
|
3186
3129
|
*/
|
|
3187
|
-
|
|
3188
|
-
return localVarFp.
|
|
3130
|
+
subscribeToClub(requestParameters, options) {
|
|
3131
|
+
return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
|
|
3132
|
+
},
|
|
3133
|
+
/**
|
|
3134
|
+
*
|
|
3135
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
3136
|
+
* @param {UserApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
3137
|
+
* @param {*} [options] Override http request option.
|
|
3138
|
+
* @throws {RequiredError}
|
|
3139
|
+
*/
|
|
3140
|
+
updateCustomer(requestParameters, options) {
|
|
3141
|
+
return localVarFp.updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(axios, basePath));
|
|
3189
3142
|
},
|
|
3190
3143
|
};
|
|
3191
3144
|
};
|
|
3192
|
-
exports.
|
|
3145
|
+
exports.UserApiFactory = UserApiFactory;
|
|
3193
3146
|
/**
|
|
3194
|
-
*
|
|
3147
|
+
* UserApi - object-oriented interface
|
|
3195
3148
|
* @export
|
|
3196
|
-
* @class
|
|
3149
|
+
* @class UserApi
|
|
3197
3150
|
* @extends {BaseAPI}
|
|
3198
3151
|
*/
|
|
3199
|
-
class
|
|
3152
|
+
class UserApi extends base_1.BaseAPI {
|
|
3200
3153
|
/**
|
|
3201
3154
|
*
|
|
3202
|
-
* @summary
|
|
3203
|
-
* @param {
|
|
3155
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
3156
|
+
* @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
3204
3157
|
* @param {*} [options] Override http request option.
|
|
3205
3158
|
* @throws {RequiredError}
|
|
3206
|
-
* @memberof
|
|
3159
|
+
* @memberof UserApi
|
|
3207
3160
|
*/
|
|
3208
|
-
|
|
3209
|
-
return (0, exports.
|
|
3161
|
+
subscribeToClub(requestParameters, options) {
|
|
3162
|
+
return (0, exports.UserApiFp)(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3163
|
+
}
|
|
3164
|
+
/**
|
|
3165
|
+
*
|
|
3166
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
3167
|
+
* @param {UserApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
3168
|
+
* @param {*} [options] Override http request option.
|
|
3169
|
+
* @throws {RequiredError}
|
|
3170
|
+
* @memberof UserApi
|
|
3171
|
+
*/
|
|
3172
|
+
updateCustomer(requestParameters, options) {
|
|
3173
|
+
return (0, exports.UserApiFp)(this.configuration).updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3210
3174
|
}
|
|
3211
3175
|
}
|
|
3212
|
-
exports.
|
|
3176
|
+
exports.UserApi = UserApi;
|
|
3213
3177
|
/**
|
|
3214
3178
|
* UserAuthenticationApi - axios parameter creator
|
|
3215
3179
|
* @export
|
|
@@ -3566,6 +3530,39 @@ const UserBookingsApiAxiosParamCreator = function (configuration) {
|
|
|
3566
3530
|
options: localVarRequestOptions,
|
|
3567
3531
|
};
|
|
3568
3532
|
}),
|
|
3533
|
+
/**
|
|
3534
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3535
|
+
* @summary Créer une réservation
|
|
3536
|
+
* @param {CreateBookingRequest} createBookingRequest
|
|
3537
|
+
* @param {*} [options] Override http request option.
|
|
3538
|
+
* @throws {RequiredError}
|
|
3539
|
+
*/
|
|
3540
|
+
createBooking: (createBookingRequest_1, ...args_1) => __awaiter(this, [createBookingRequest_1, ...args_1], void 0, function* (createBookingRequest, options = {}) {
|
|
3541
|
+
// verify required parameter 'createBookingRequest' is not null or undefined
|
|
3542
|
+
(0, common_1.assertParamExists)('createBooking', 'createBookingRequest', createBookingRequest);
|
|
3543
|
+
const localVarPath = `/api/bookings`;
|
|
3544
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3545
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3546
|
+
let baseOptions;
|
|
3547
|
+
if (configuration) {
|
|
3548
|
+
baseOptions = configuration.baseOptions;
|
|
3549
|
+
}
|
|
3550
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3551
|
+
const localVarHeaderParameter = {};
|
|
3552
|
+
const localVarQueryParameter = {};
|
|
3553
|
+
// authentication bearerAuth required
|
|
3554
|
+
// http bearer authentication required
|
|
3555
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3556
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3557
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3558
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3559
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3560
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBookingRequest, localVarRequestOptions, configuration);
|
|
3561
|
+
return {
|
|
3562
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3563
|
+
options: localVarRequestOptions,
|
|
3564
|
+
};
|
|
3565
|
+
}),
|
|
3569
3566
|
};
|
|
3570
3567
|
};
|
|
3571
3568
|
exports.UserBookingsApiAxiosParamCreator = UserBookingsApiAxiosParamCreator;
|
|
@@ -3592,6 +3589,22 @@ const UserBookingsApiFp = function (configuration) {
|
|
|
3592
3589
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3593
3590
|
});
|
|
3594
3591
|
},
|
|
3592
|
+
/**
|
|
3593
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3594
|
+
* @summary Créer une réservation
|
|
3595
|
+
* @param {CreateBookingRequest} createBookingRequest
|
|
3596
|
+
* @param {*} [options] Override http request option.
|
|
3597
|
+
* @throws {RequiredError}
|
|
3598
|
+
*/
|
|
3599
|
+
createBooking(createBookingRequest, options) {
|
|
3600
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3601
|
+
var _a, _b, _c;
|
|
3602
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBooking(createBookingRequest, options);
|
|
3603
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3604
|
+
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;
|
|
3605
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3606
|
+
});
|
|
3607
|
+
},
|
|
3595
3608
|
};
|
|
3596
3609
|
};
|
|
3597
3610
|
exports.UserBookingsApiFp = UserBookingsApiFp;
|
|
@@ -3612,6 +3625,16 @@ const UserBookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
3612
3625
|
blockSlot(requestParameters, options) {
|
|
3613
3626
|
return localVarFp.blockSlot(requestParameters.slotId, options).then((request) => request(axios, basePath));
|
|
3614
3627
|
},
|
|
3628
|
+
/**
|
|
3629
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3630
|
+
* @summary Créer une réservation
|
|
3631
|
+
* @param {UserBookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
3632
|
+
* @param {*} [options] Override http request option.
|
|
3633
|
+
* @throws {RequiredError}
|
|
3634
|
+
*/
|
|
3635
|
+
createBooking(requestParameters, options) {
|
|
3636
|
+
return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
|
|
3637
|
+
},
|
|
3615
3638
|
};
|
|
3616
3639
|
};
|
|
3617
3640
|
exports.UserBookingsApiFactory = UserBookingsApiFactory;
|
|
@@ -3633,6 +3656,17 @@ class UserBookingsApi extends base_1.BaseAPI {
|
|
|
3633
3656
|
blockSlot(requestParameters, options) {
|
|
3634
3657
|
return (0, exports.UserBookingsApiFp)(this.configuration).blockSlot(requestParameters.slotId, options).then((request) => request(this.axios, this.basePath));
|
|
3635
3658
|
}
|
|
3659
|
+
/**
|
|
3660
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3661
|
+
* @summary Créer une réservation
|
|
3662
|
+
* @param {UserBookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
3663
|
+
* @param {*} [options] Override http request option.
|
|
3664
|
+
* @throws {RequiredError}
|
|
3665
|
+
* @memberof UserBookingsApi
|
|
3666
|
+
*/
|
|
3667
|
+
createBooking(requestParameters, options) {
|
|
3668
|
+
return (0, exports.UserBookingsApiFp)(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3669
|
+
}
|
|
3636
3670
|
}
|
|
3637
3671
|
exports.UserBookingsApi = UserBookingsApi;
|
|
3638
3672
|
/**
|
|
@@ -3785,6 +3819,94 @@ const UserClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
3785
3819
|
options: localVarRequestOptions,
|
|
3786
3820
|
};
|
|
3787
3821
|
}),
|
|
3822
|
+
/**
|
|
3823
|
+
*
|
|
3824
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
3825
|
+
* @param {string} id ID du club
|
|
3826
|
+
* @param {string} sportId ID du sport
|
|
3827
|
+
* @param {string} [start] Date de début (format ISO)
|
|
3828
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
3829
|
+
* @param {*} [options] Override http request option.
|
|
3830
|
+
* @throws {RequiredError}
|
|
3831
|
+
*/
|
|
3832
|
+
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 = {}) {
|
|
3833
|
+
// verify required parameter 'id' is not null or undefined
|
|
3834
|
+
(0, common_1.assertParamExists)('getAvailableSlotsBySports', 'id', id);
|
|
3835
|
+
// verify required parameter 'sportId' is not null or undefined
|
|
3836
|
+
(0, common_1.assertParamExists)('getAvailableSlotsBySports', 'sportId', sportId);
|
|
3837
|
+
const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots`
|
|
3838
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3839
|
+
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
|
|
3840
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3841
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3842
|
+
let baseOptions;
|
|
3843
|
+
if (configuration) {
|
|
3844
|
+
baseOptions = configuration.baseOptions;
|
|
3845
|
+
}
|
|
3846
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3847
|
+
const localVarHeaderParameter = {};
|
|
3848
|
+
const localVarQueryParameter = {};
|
|
3849
|
+
// authentication bearerAuth required
|
|
3850
|
+
// http bearer authentication required
|
|
3851
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3852
|
+
if (start !== undefined) {
|
|
3853
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
3854
|
+
start.toISOString() :
|
|
3855
|
+
start;
|
|
3856
|
+
}
|
|
3857
|
+
if (end !== undefined) {
|
|
3858
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
3859
|
+
end.toISOString() :
|
|
3860
|
+
end;
|
|
3861
|
+
}
|
|
3862
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3863
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3864
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3865
|
+
return {
|
|
3866
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3867
|
+
options: localVarRequestOptions,
|
|
3868
|
+
};
|
|
3869
|
+
}),
|
|
3870
|
+
/**
|
|
3871
|
+
*
|
|
3872
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
3873
|
+
* @param {string} id ID du club
|
|
3874
|
+
* @param {string} sportId ID du sport
|
|
3875
|
+
* @param {string} day Date du jour (format YYYY-MM-DD)
|
|
3876
|
+
* @param {*} [options] Override http request option.
|
|
3877
|
+
* @throws {RequiredError}
|
|
3878
|
+
*/
|
|
3879
|
+
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 = {}) {
|
|
3880
|
+
// verify required parameter 'id' is not null or undefined
|
|
3881
|
+
(0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'id', id);
|
|
3882
|
+
// verify required parameter 'sportId' is not null or undefined
|
|
3883
|
+
(0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'sportId', sportId);
|
|
3884
|
+
// verify required parameter 'day' is not null or undefined
|
|
3885
|
+
(0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'day', day);
|
|
3886
|
+
const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots/{day}`
|
|
3887
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3888
|
+
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)))
|
|
3889
|
+
.replace(`{${"day"}}`, encodeURIComponent(String(day)));
|
|
3890
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3891
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3892
|
+
let baseOptions;
|
|
3893
|
+
if (configuration) {
|
|
3894
|
+
baseOptions = configuration.baseOptions;
|
|
3895
|
+
}
|
|
3896
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3897
|
+
const localVarHeaderParameter = {};
|
|
3898
|
+
const localVarQueryParameter = {};
|
|
3899
|
+
// authentication bearerAuth required
|
|
3900
|
+
// http bearer authentication required
|
|
3901
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3902
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3903
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3904
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3905
|
+
return {
|
|
3906
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3907
|
+
options: localVarRequestOptions,
|
|
3908
|
+
};
|
|
3909
|
+
}),
|
|
3788
3910
|
};
|
|
3789
3911
|
};
|
|
3790
3912
|
exports.UserClubSlotsApiAxiosParamCreator = UserClubSlotsApiAxiosParamCreator;
|
|
@@ -3802,12 +3924,49 @@ const UserClubSlotsApiFp = function (configuration) {
|
|
|
3802
3924
|
* @param {*} [options] Override http request option.
|
|
3803
3925
|
* @throws {RequiredError}
|
|
3804
3926
|
*/
|
|
3805
|
-
getAvailableSlotsByClub(clubID, options) {
|
|
3927
|
+
getAvailableSlotsByClub(clubID, options) {
|
|
3928
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3929
|
+
var _a, _b, _c;
|
|
3930
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsByClub(clubID, options);
|
|
3931
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3932
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubSlotsApi.getAvailableSlotsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3933
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3934
|
+
});
|
|
3935
|
+
},
|
|
3936
|
+
/**
|
|
3937
|
+
*
|
|
3938
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
3939
|
+
* @param {string} id ID du club
|
|
3940
|
+
* @param {string} sportId ID du sport
|
|
3941
|
+
* @param {string} [start] Date de début (format ISO)
|
|
3942
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
3943
|
+
* @param {*} [options] Override http request option.
|
|
3944
|
+
* @throws {RequiredError}
|
|
3945
|
+
*/
|
|
3946
|
+
getAvailableSlotsBySports(id, sportId, start, end, options) {
|
|
3947
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3948
|
+
var _a, _b, _c;
|
|
3949
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsBySports(id, sportId, start, end, options);
|
|
3950
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3951
|
+
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;
|
|
3952
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3953
|
+
});
|
|
3954
|
+
},
|
|
3955
|
+
/**
|
|
3956
|
+
*
|
|
3957
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
3958
|
+
* @param {string} id ID du club
|
|
3959
|
+
* @param {string} sportId ID du sport
|
|
3960
|
+
* @param {string} day Date du jour (format YYYY-MM-DD)
|
|
3961
|
+
* @param {*} [options] Override http request option.
|
|
3962
|
+
* @throws {RequiredError}
|
|
3963
|
+
*/
|
|
3964
|
+
getAvailableSlotsBySportsAndDay(id, sportId, day, options) {
|
|
3806
3965
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3807
3966
|
var _a, _b, _c;
|
|
3808
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3967
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsBySportsAndDay(id, sportId, day, options);
|
|
3809
3968
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3810
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserClubSlotsApi.
|
|
3969
|
+
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;
|
|
3811
3970
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3812
3971
|
});
|
|
3813
3972
|
},
|
|
@@ -3831,6 +3990,26 @@ const UserClubSlotsApiFactory = function (configuration, basePath, axios) {
|
|
|
3831
3990
|
getAvailableSlotsByClub(requestParameters, options) {
|
|
3832
3991
|
return localVarFp.getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(axios, basePath));
|
|
3833
3992
|
},
|
|
3993
|
+
/**
|
|
3994
|
+
*
|
|
3995
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
3996
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
|
|
3997
|
+
* @param {*} [options] Override http request option.
|
|
3998
|
+
* @throws {RequiredError}
|
|
3999
|
+
*/
|
|
4000
|
+
getAvailableSlotsBySports(requestParameters, options) {
|
|
4001
|
+
return localVarFp.getAvailableSlotsBySports(requestParameters.id, requestParameters.sportId, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
4002
|
+
},
|
|
4003
|
+
/**
|
|
4004
|
+
*
|
|
4005
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
4006
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsAndDayRequest} requestParameters Request parameters.
|
|
4007
|
+
* @param {*} [options] Override http request option.
|
|
4008
|
+
* @throws {RequiredError}
|
|
4009
|
+
*/
|
|
4010
|
+
getAvailableSlotsBySportsAndDay(requestParameters, options) {
|
|
4011
|
+
return localVarFp.getAvailableSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(axios, basePath));
|
|
4012
|
+
},
|
|
3834
4013
|
};
|
|
3835
4014
|
};
|
|
3836
4015
|
exports.UserClubSlotsApiFactory = UserClubSlotsApiFactory;
|
|
@@ -3852,6 +4031,28 @@ class UserClubSlotsApi extends base_1.BaseAPI {
|
|
|
3852
4031
|
getAvailableSlotsByClub(requestParameters, options) {
|
|
3853
4032
|
return (0, exports.UserClubSlotsApiFp)(this.configuration).getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(this.axios, this.basePath));
|
|
3854
4033
|
}
|
|
4034
|
+
/**
|
|
4035
|
+
*
|
|
4036
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
4037
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
|
|
4038
|
+
* @param {*} [options] Override http request option.
|
|
4039
|
+
* @throws {RequiredError}
|
|
4040
|
+
* @memberof UserClubSlotsApi
|
|
4041
|
+
*/
|
|
4042
|
+
getAvailableSlotsBySports(requestParameters, options) {
|
|
4043
|
+
return (0, exports.UserClubSlotsApiFp)(this.configuration).getAvailableSlotsBySports(requestParameters.id, requestParameters.sportId, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
4044
|
+
}
|
|
4045
|
+
/**
|
|
4046
|
+
*
|
|
4047
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
4048
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsAndDayRequest} requestParameters Request parameters.
|
|
4049
|
+
* @param {*} [options] Override http request option.
|
|
4050
|
+
* @throws {RequiredError}
|
|
4051
|
+
* @memberof UserClubSlotsApi
|
|
4052
|
+
*/
|
|
4053
|
+
getAvailableSlotsBySportsAndDay(requestParameters, options) {
|
|
4054
|
+
return (0, exports.UserClubSlotsApiFp)(this.configuration).getAvailableSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(this.axios, this.basePath));
|
|
4055
|
+
}
|
|
3855
4056
|
}
|
|
3856
4057
|
exports.UserClubSlotsApi = UserClubSlotsApi;
|
|
3857
4058
|
/**
|
|
@@ -4168,34 +4369,6 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
4168
4369
|
options: localVarRequestOptions,
|
|
4169
4370
|
};
|
|
4170
4371
|
}),
|
|
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
4372
|
/**
|
|
4200
4373
|
*
|
|
4201
4374
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4288,21 +4461,6 @@ const UserProfileApiFp = function (configuration) {
|
|
|
4288
4461
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4289
4462
|
});
|
|
4290
4463
|
},
|
|
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
4464
|
/**
|
|
4307
4465
|
*
|
|
4308
4466
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4358,15 +4516,6 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
4358
4516
|
getUserInfo(options) {
|
|
4359
4517
|
return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
|
|
4360
4518
|
},
|
|
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
4519
|
/**
|
|
4371
4520
|
*
|
|
4372
4521
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4419,16 +4568,6 @@ class UserProfileApi extends base_1.BaseAPI {
|
|
|
4419
4568
|
getUserInfo(options) {
|
|
4420
4569
|
return (0, exports.UserProfileApiFp)(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
|
|
4421
4570
|
}
|
|
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
4571
|
/**
|
|
4433
4572
|
*
|
|
4434
4573
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4760,181 +4899,3 @@ class UserSubscriptionsApi extends base_1.BaseAPI {
|
|
|
4760
4899
|
}
|
|
4761
4900
|
}
|
|
4762
4901
|
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;
|