@tennac-booking/sdk 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +134 -126
- package/README.md +34 -24
- package/api.ts +2082 -1678
- package/dist/api.d.ts +1276 -964
- package/dist/api.js +1479 -1333
- package/dist/esm/api.d.ts +1276 -964
- package/dist/esm/api.js +1423 -1277
- package/docs/CancelBookingResponse.md +22 -0
- package/docs/CancelBookingResponseBooking.md +30 -0
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +22 -0
- package/docs/ConfirmPaymentMethodSetupResponse.md +22 -0
- package/docs/CourtResponse.md +2 -0
- package/docs/ManagerCancelBookingResponse.md +22 -0
- package/docs/ManagerCancelBookingResponseBooking.md +30 -0
- package/docs/{ClubRolesApi.md → ManagerClubRolesApi.md} +11 -11
- package/docs/{ClubSubscriptionsApi.md → ManagerClubSubscriptionsApi.md} +15 -15
- package/docs/{SportsApi.md → ManagerSportsApi.md} +5 -5
- package/docs/SetupPaymentMethodRequestBody.md +22 -0
- package/docs/SetupPaymentMethodResponse.md +24 -0
- package/docs/{ClubAnalyticsApi.md → StaffClubAnalyticsApi.md} +5 -5
- package/docs/{ClubBookingsApi.md → StaffClubBookingsApi.md} +3 -3
- package/docs/{ClubsApi.md → StaffClubsApi.md} +3 -3
- package/docs/StaffProfileApi.md +54 -0
- package/docs/{UsersApi.md → UserApi.md} +5 -5
- package/docs/UserBookingsApi.md +57 -0
- package/docs/UserClubSlotsApi.md +121 -0
- package/docs/UserPaymentApi.md +121 -0
- package/docs/UserProfileApi.md +0 -47
- package/package.json +1 -1
- package/docs/BookingsApi.md +0 -64
- package/docs/ClubSlotsApi.md +0 -128
package/dist/esm/api.js
CHANGED
|
@@ -35,6 +35,9 @@ export const BookingStatus = {
|
|
|
35
35
|
Active: 'active',
|
|
36
36
|
Inactive: 'inactive'
|
|
37
37
|
};
|
|
38
|
+
export const CancelBookingResponseBookingStatusEnum = {
|
|
39
|
+
Cancelled: 'cancelled'
|
|
40
|
+
};
|
|
38
41
|
export const CourtResponseStatusEnum = {
|
|
39
42
|
Available: 'available',
|
|
40
43
|
Unavailable: 'unavailable'
|
|
@@ -60,6 +63,9 @@ export const CreatePriceRequestIntervalEnum = {
|
|
|
60
63
|
Month: 'month',
|
|
61
64
|
Year: 'year'
|
|
62
65
|
};
|
|
66
|
+
export const ManagerCancelBookingResponseBookingStatusEnum = {
|
|
67
|
+
Cancelled: 'cancelled'
|
|
68
|
+
};
|
|
63
69
|
/**
|
|
64
70
|
* Méthode de paiement
|
|
65
71
|
* @export
|
|
@@ -360,126 +366,25 @@ export class AdminClubsApi extends BaseAPI {
|
|
|
360
366
|
}
|
|
361
367
|
}
|
|
362
368
|
/**
|
|
363
|
-
*
|
|
364
|
-
* @export
|
|
365
|
-
*/
|
|
366
|
-
export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
367
|
-
return {
|
|
368
|
-
/**
|
|
369
|
-
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
370
|
-
* @summary Créer une réservation
|
|
371
|
-
* @param {CreateBookingRequest} createBookingRequest
|
|
372
|
-
* @param {*} [options] Override http request option.
|
|
373
|
-
* @throws {RequiredError}
|
|
374
|
-
*/
|
|
375
|
-
createBooking: (createBookingRequest_1, ...args_1) => __awaiter(this, [createBookingRequest_1, ...args_1], void 0, function* (createBookingRequest, options = {}) {
|
|
376
|
-
// verify required parameter 'createBookingRequest' is not null or undefined
|
|
377
|
-
assertParamExists('createBooking', 'createBookingRequest', createBookingRequest);
|
|
378
|
-
const localVarPath = `/api/bookings`;
|
|
379
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
380
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
381
|
-
let baseOptions;
|
|
382
|
-
if (configuration) {
|
|
383
|
-
baseOptions = configuration.baseOptions;
|
|
384
|
-
}
|
|
385
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
386
|
-
const localVarHeaderParameter = {};
|
|
387
|
-
const localVarQueryParameter = {};
|
|
388
|
-
// authentication bearerAuth required
|
|
389
|
-
// http bearer authentication required
|
|
390
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
391
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
392
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
393
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
394
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
395
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createBookingRequest, localVarRequestOptions, configuration);
|
|
396
|
-
return {
|
|
397
|
-
url: toPathString(localVarUrlObj),
|
|
398
|
-
options: localVarRequestOptions,
|
|
399
|
-
};
|
|
400
|
-
}),
|
|
401
|
-
};
|
|
402
|
-
};
|
|
403
|
-
/**
|
|
404
|
-
* BookingsApi - functional programming interface
|
|
405
|
-
* @export
|
|
406
|
-
*/
|
|
407
|
-
export const BookingsApiFp = function (configuration) {
|
|
408
|
-
const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration);
|
|
409
|
-
return {
|
|
410
|
-
/**
|
|
411
|
-
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
412
|
-
* @summary Créer une réservation
|
|
413
|
-
* @param {CreateBookingRequest} createBookingRequest
|
|
414
|
-
* @param {*} [options] Override http request option.
|
|
415
|
-
* @throws {RequiredError}
|
|
416
|
-
*/
|
|
417
|
-
createBooking(createBookingRequest, options) {
|
|
418
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
419
|
-
var _a, _b, _c;
|
|
420
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBooking(createBookingRequest, options);
|
|
421
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
422
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.createBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
423
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
424
|
-
});
|
|
425
|
-
},
|
|
426
|
-
};
|
|
427
|
-
};
|
|
428
|
-
/**
|
|
429
|
-
* BookingsApi - factory interface
|
|
430
|
-
* @export
|
|
431
|
-
*/
|
|
432
|
-
export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
433
|
-
const localVarFp = BookingsApiFp(configuration);
|
|
434
|
-
return {
|
|
435
|
-
/**
|
|
436
|
-
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
437
|
-
* @summary Créer une réservation
|
|
438
|
-
* @param {BookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
439
|
-
* @param {*} [options] Override http request option.
|
|
440
|
-
* @throws {RequiredError}
|
|
441
|
-
*/
|
|
442
|
-
createBooking(requestParameters, options) {
|
|
443
|
-
return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
|
|
444
|
-
},
|
|
445
|
-
};
|
|
446
|
-
};
|
|
447
|
-
/**
|
|
448
|
-
* BookingsApi - object-oriented interface
|
|
449
|
-
* @export
|
|
450
|
-
* @class BookingsApi
|
|
451
|
-
* @extends {BaseAPI}
|
|
452
|
-
*/
|
|
453
|
-
export class BookingsApi extends BaseAPI {
|
|
454
|
-
/**
|
|
455
|
-
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
456
|
-
* @summary Créer une réservation
|
|
457
|
-
* @param {BookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
458
|
-
* @param {*} [options] Override http request option.
|
|
459
|
-
* @throws {RequiredError}
|
|
460
|
-
* @memberof BookingsApi
|
|
461
|
-
*/
|
|
462
|
-
createBooking(requestParameters, options) {
|
|
463
|
-
return BookingsApiFp(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* ClubAnalyticsApi - axios parameter creator
|
|
369
|
+
* ManagerClubCourtsApi - axios parameter creator
|
|
468
370
|
* @export
|
|
469
371
|
*/
|
|
470
|
-
export const
|
|
372
|
+
export const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
471
373
|
return {
|
|
472
374
|
/**
|
|
473
375
|
*
|
|
474
|
-
* @summary
|
|
376
|
+
* @summary Créer un terrain pour un club
|
|
475
377
|
* @param {string} id ID du club
|
|
378
|
+
* @param {CreateCourtRequest} createCourtRequest
|
|
476
379
|
* @param {*} [options] Override http request option.
|
|
477
380
|
* @throws {RequiredError}
|
|
478
381
|
*/
|
|
479
|
-
|
|
382
|
+
createCourtForClub: (id_1, createCourtRequest_1, ...args_1) => __awaiter(this, [id_1, createCourtRequest_1, ...args_1], void 0, function* (id, createCourtRequest, options = {}) {
|
|
480
383
|
// verify required parameter 'id' is not null or undefined
|
|
481
|
-
assertParamExists('
|
|
482
|
-
|
|
384
|
+
assertParamExists('createCourtForClub', 'id', id);
|
|
385
|
+
// verify required parameter 'createCourtRequest' is not null or undefined
|
|
386
|
+
assertParamExists('createCourtForClub', 'createCourtRequest', createCourtRequest);
|
|
387
|
+
const localVarPath = `/api/clubs/{id}/courts`
|
|
483
388
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
484
389
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
485
390
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -487,15 +392,17 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
487
392
|
if (configuration) {
|
|
488
393
|
baseOptions = configuration.baseOptions;
|
|
489
394
|
}
|
|
490
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
395
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
491
396
|
const localVarHeaderParameter = {};
|
|
492
397
|
const localVarQueryParameter = {};
|
|
493
398
|
// authentication bearerAuth required
|
|
494
399
|
// http bearer authentication required
|
|
495
400
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
401
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
496
402
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
497
403
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
498
404
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
405
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCourtRequest, localVarRequestOptions, configuration);
|
|
499
406
|
return {
|
|
500
407
|
url: toPathString(localVarUrlObj),
|
|
501
408
|
options: localVarRequestOptions,
|
|
@@ -503,15 +410,15 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
503
410
|
}),
|
|
504
411
|
/**
|
|
505
412
|
*
|
|
506
|
-
* @summary
|
|
413
|
+
* @summary Récupérer tous les terrains pour un club
|
|
507
414
|
* @param {string} id ID du club
|
|
508
415
|
* @param {*} [options] Override http request option.
|
|
509
416
|
* @throws {RequiredError}
|
|
510
417
|
*/
|
|
511
|
-
|
|
418
|
+
getCourtsByClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
512
419
|
// verify required parameter 'id' is not null or undefined
|
|
513
|
-
assertParamExists('
|
|
514
|
-
const localVarPath = `/api/clubs/{id}/
|
|
420
|
+
assertParamExists('getCourtsByClub', 'id', id);
|
|
421
|
+
const localVarPath = `/api/clubs/{id}/courts`
|
|
515
422
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
516
423
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
517
424
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -536,213 +443,111 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
536
443
|
};
|
|
537
444
|
};
|
|
538
445
|
/**
|
|
539
|
-
*
|
|
446
|
+
* ManagerClubCourtsApi - functional programming interface
|
|
540
447
|
* @export
|
|
541
448
|
*/
|
|
542
|
-
export const
|
|
543
|
-
const localVarAxiosParamCreator =
|
|
449
|
+
export const ManagerClubCourtsApiFp = function (configuration) {
|
|
450
|
+
const localVarAxiosParamCreator = ManagerClubCourtsApiAxiosParamCreator(configuration);
|
|
544
451
|
return {
|
|
545
452
|
/**
|
|
546
453
|
*
|
|
547
|
-
* @summary
|
|
454
|
+
* @summary Créer un terrain pour un club
|
|
548
455
|
* @param {string} id ID du club
|
|
456
|
+
* @param {CreateCourtRequest} createCourtRequest
|
|
549
457
|
* @param {*} [options] Override http request option.
|
|
550
458
|
* @throws {RequiredError}
|
|
551
459
|
*/
|
|
552
|
-
|
|
460
|
+
createCourtForClub(id, createCourtRequest, options) {
|
|
553
461
|
return __awaiter(this, void 0, void 0, function* () {
|
|
554
462
|
var _a, _b, _c;
|
|
555
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
463
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCourtForClub(id, createCourtRequest, options);
|
|
556
464
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
557
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
465
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubCourtsApi.createCourtForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
558
466
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
559
467
|
});
|
|
560
468
|
},
|
|
561
469
|
/**
|
|
562
470
|
*
|
|
563
|
-
* @summary
|
|
471
|
+
* @summary Récupérer tous les terrains pour un club
|
|
564
472
|
* @param {string} id ID du club
|
|
565
473
|
* @param {*} [options] Override http request option.
|
|
566
474
|
* @throws {RequiredError}
|
|
567
475
|
*/
|
|
568
|
-
|
|
476
|
+
getCourtsByClub(id, options) {
|
|
569
477
|
return __awaiter(this, void 0, void 0, function* () {
|
|
570
478
|
var _a, _b, _c;
|
|
571
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
479
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClub(id, options);
|
|
572
480
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
573
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
481
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubCourtsApi.getCourtsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
574
482
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
575
483
|
});
|
|
576
484
|
},
|
|
577
485
|
};
|
|
578
486
|
};
|
|
579
487
|
/**
|
|
580
|
-
*
|
|
488
|
+
* ManagerClubCourtsApi - factory interface
|
|
581
489
|
* @export
|
|
582
490
|
*/
|
|
583
|
-
export const
|
|
584
|
-
const localVarFp =
|
|
491
|
+
export const ManagerClubCourtsApiFactory = function (configuration, basePath, axios) {
|
|
492
|
+
const localVarFp = ManagerClubCourtsApiFp(configuration);
|
|
585
493
|
return {
|
|
586
494
|
/**
|
|
587
495
|
*
|
|
588
|
-
* @summary
|
|
589
|
-
* @param {
|
|
496
|
+
* @summary Créer un terrain pour un club
|
|
497
|
+
* @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
|
|
590
498
|
* @param {*} [options] Override http request option.
|
|
591
499
|
* @throws {RequiredError}
|
|
592
500
|
*/
|
|
593
|
-
|
|
594
|
-
return localVarFp.
|
|
501
|
+
createCourtForClub(requestParameters, options) {
|
|
502
|
+
return localVarFp.createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(axios, basePath));
|
|
595
503
|
},
|
|
596
504
|
/**
|
|
597
505
|
*
|
|
598
|
-
* @summary
|
|
599
|
-
* @param {
|
|
506
|
+
* @summary Récupérer tous les terrains pour un club
|
|
507
|
+
* @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
|
|
600
508
|
* @param {*} [options] Override http request option.
|
|
601
509
|
* @throws {RequiredError}
|
|
602
510
|
*/
|
|
603
|
-
|
|
604
|
-
return localVarFp.
|
|
511
|
+
getCourtsByClub(requestParameters, options) {
|
|
512
|
+
return localVarFp.getCourtsByClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
605
513
|
},
|
|
606
514
|
};
|
|
607
515
|
};
|
|
608
516
|
/**
|
|
609
|
-
*
|
|
517
|
+
* ManagerClubCourtsApi - object-oriented interface
|
|
610
518
|
* @export
|
|
611
|
-
* @class
|
|
519
|
+
* @class ManagerClubCourtsApi
|
|
612
520
|
* @extends {BaseAPI}
|
|
613
521
|
*/
|
|
614
|
-
export class
|
|
615
|
-
/**
|
|
616
|
-
*
|
|
617
|
-
* @summary Get monthly turnover for the last six months
|
|
618
|
-
* @param {ClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
|
|
619
|
-
* @param {*} [options] Override http request option.
|
|
620
|
-
* @throws {RequiredError}
|
|
621
|
-
* @memberof ClubAnalyticsApi
|
|
622
|
-
*/
|
|
623
|
-
getLastSixMonthsTurnover(requestParameters, options) {
|
|
624
|
-
return ClubAnalyticsApiFp(this.configuration).getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
625
|
-
}
|
|
522
|
+
export class ManagerClubCourtsApi extends BaseAPI {
|
|
626
523
|
/**
|
|
627
524
|
*
|
|
628
|
-
* @summary
|
|
629
|
-
* @param {
|
|
525
|
+
* @summary Créer un terrain pour un club
|
|
526
|
+
* @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
|
|
630
527
|
* @param {*} [options] Override http request option.
|
|
631
528
|
* @throws {RequiredError}
|
|
632
|
-
* @memberof
|
|
529
|
+
* @memberof ManagerClubCourtsApi
|
|
633
530
|
*/
|
|
634
|
-
|
|
635
|
-
return
|
|
531
|
+
createCourtForClub(requestParameters, options) {
|
|
532
|
+
return ManagerClubCourtsApiFp(this.configuration).createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(this.axios, this.basePath));
|
|
636
533
|
}
|
|
637
|
-
}
|
|
638
|
-
/**
|
|
639
|
-
* ClubBookingsApi - axios parameter creator
|
|
640
|
-
* @export
|
|
641
|
-
*/
|
|
642
|
-
export const ClubBookingsApiAxiosParamCreator = function (configuration) {
|
|
643
|
-
return {
|
|
644
|
-
/**
|
|
645
|
-
*
|
|
646
|
-
* @summary Get the ten next bookings for the club
|
|
647
|
-
* @param {string} id ID du club
|
|
648
|
-
* @param {*} [options] Override http request option.
|
|
649
|
-
* @throws {RequiredError}
|
|
650
|
-
*/
|
|
651
|
-
getTenNextBookings: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
652
|
-
// verify required parameter 'id' is not null or undefined
|
|
653
|
-
assertParamExists('getTenNextBookings', 'id', id);
|
|
654
|
-
const localVarPath = `/api/clubs/{id}/next-bookings`
|
|
655
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
656
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
657
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
658
|
-
let baseOptions;
|
|
659
|
-
if (configuration) {
|
|
660
|
-
baseOptions = configuration.baseOptions;
|
|
661
|
-
}
|
|
662
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
663
|
-
const localVarHeaderParameter = {};
|
|
664
|
-
const localVarQueryParameter = {};
|
|
665
|
-
// authentication bearerAuth required
|
|
666
|
-
// http bearer authentication required
|
|
667
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
668
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
669
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
670
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
671
|
-
return {
|
|
672
|
-
url: toPathString(localVarUrlObj),
|
|
673
|
-
options: localVarRequestOptions,
|
|
674
|
-
};
|
|
675
|
-
}),
|
|
676
|
-
};
|
|
677
|
-
};
|
|
678
|
-
/**
|
|
679
|
-
* ClubBookingsApi - functional programming interface
|
|
680
|
-
* @export
|
|
681
|
-
*/
|
|
682
|
-
export const ClubBookingsApiFp = function (configuration) {
|
|
683
|
-
const localVarAxiosParamCreator = ClubBookingsApiAxiosParamCreator(configuration);
|
|
684
|
-
return {
|
|
685
|
-
/**
|
|
686
|
-
*
|
|
687
|
-
* @summary Get the ten next bookings for the club
|
|
688
|
-
* @param {string} id ID du club
|
|
689
|
-
* @param {*} [options] Override http request option.
|
|
690
|
-
* @throws {RequiredError}
|
|
691
|
-
*/
|
|
692
|
-
getTenNextBookings(id, options) {
|
|
693
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
694
|
-
var _a, _b, _c;
|
|
695
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTenNextBookings(id, options);
|
|
696
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
697
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubBookingsApi.getTenNextBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
698
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
699
|
-
});
|
|
700
|
-
},
|
|
701
|
-
};
|
|
702
|
-
};
|
|
703
|
-
/**
|
|
704
|
-
* ClubBookingsApi - factory interface
|
|
705
|
-
* @export
|
|
706
|
-
*/
|
|
707
|
-
export const ClubBookingsApiFactory = function (configuration, basePath, axios) {
|
|
708
|
-
const localVarFp = ClubBookingsApiFp(configuration);
|
|
709
|
-
return {
|
|
710
|
-
/**
|
|
711
|
-
*
|
|
712
|
-
* @summary Get the ten next bookings for the club
|
|
713
|
-
* @param {ClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
|
|
714
|
-
* @param {*} [options] Override http request option.
|
|
715
|
-
* @throws {RequiredError}
|
|
716
|
-
*/
|
|
717
|
-
getTenNextBookings(requestParameters, options) {
|
|
718
|
-
return localVarFp.getTenNextBookings(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
719
|
-
},
|
|
720
|
-
};
|
|
721
|
-
};
|
|
722
|
-
/**
|
|
723
|
-
* ClubBookingsApi - object-oriented interface
|
|
724
|
-
* @export
|
|
725
|
-
* @class ClubBookingsApi
|
|
726
|
-
* @extends {BaseAPI}
|
|
727
|
-
*/
|
|
728
|
-
export class ClubBookingsApi extends BaseAPI {
|
|
729
534
|
/**
|
|
730
535
|
*
|
|
731
|
-
* @summary
|
|
732
|
-
* @param {
|
|
536
|
+
* @summary Récupérer tous les terrains pour un club
|
|
537
|
+
* @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
|
|
733
538
|
* @param {*} [options] Override http request option.
|
|
734
539
|
* @throws {RequiredError}
|
|
735
|
-
* @memberof
|
|
540
|
+
* @memberof ManagerClubCourtsApi
|
|
736
541
|
*/
|
|
737
|
-
|
|
738
|
-
return
|
|
542
|
+
getCourtsByClub(requestParameters, options) {
|
|
543
|
+
return ManagerClubCourtsApiFp(this.configuration).getCourtsByClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
739
544
|
}
|
|
740
545
|
}
|
|
741
546
|
/**
|
|
742
|
-
*
|
|
547
|
+
* ManagerClubRolesApi - axios parameter creator
|
|
743
548
|
* @export
|
|
744
549
|
*/
|
|
745
|
-
export const
|
|
550
|
+
export const ManagerClubRolesApiAxiosParamCreator = function (configuration) {
|
|
746
551
|
return {
|
|
747
552
|
/**
|
|
748
553
|
*
|
|
@@ -909,11 +714,11 @@ export const ClubRolesApiAxiosParamCreator = function (configuration) {
|
|
|
909
714
|
};
|
|
910
715
|
};
|
|
911
716
|
/**
|
|
912
|
-
*
|
|
717
|
+
* ManagerClubRolesApi - functional programming interface
|
|
913
718
|
* @export
|
|
914
719
|
*/
|
|
915
|
-
export const
|
|
916
|
-
const localVarAxiosParamCreator =
|
|
720
|
+
export const ManagerClubRolesApiFp = function (configuration) {
|
|
721
|
+
const localVarAxiosParamCreator = ManagerClubRolesApiAxiosParamCreator(configuration);
|
|
917
722
|
return {
|
|
918
723
|
/**
|
|
919
724
|
*
|
|
@@ -927,7 +732,7 @@ export const ClubRolesApiFp = function (configuration) {
|
|
|
927
732
|
var _a, _b, _c;
|
|
928
733
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubRole(createClubRoleRequestBody, options);
|
|
929
734
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
930
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
735
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubRolesApi.createClubRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
931
736
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
932
737
|
});
|
|
933
738
|
},
|
|
@@ -943,7 +748,7 @@ export const ClubRolesApiFp = function (configuration) {
|
|
|
943
748
|
var _a, _b, _c;
|
|
944
749
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubRole(id, options);
|
|
945
750
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
946
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
751
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubRolesApi.deleteClubRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
947
752
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
948
753
|
});
|
|
949
754
|
},
|
|
@@ -958,7 +763,7 @@ export const ClubRolesApiFp = function (configuration) {
|
|
|
958
763
|
var _a, _b, _c;
|
|
959
764
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubRoles(options);
|
|
960
765
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
961
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
766
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubRolesApi.getAllClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
962
767
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
963
768
|
});
|
|
964
769
|
},
|
|
@@ -974,7 +779,7 @@ export const ClubRolesApiFp = function (configuration) {
|
|
|
974
779
|
var _a, _b, _c;
|
|
975
780
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoleById(id, options);
|
|
976
781
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
977
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
782
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubRolesApi.getClubRoleById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
978
783
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
979
784
|
});
|
|
980
785
|
},
|
|
@@ -991,23 +796,23 @@ export const ClubRolesApiFp = function (configuration) {
|
|
|
991
796
|
var _a, _b, _c;
|
|
992
797
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubRole(id, updateClubRoleRequestBody, options);
|
|
993
798
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
994
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
799
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubRolesApi.updateClubRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
995
800
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
996
801
|
});
|
|
997
802
|
},
|
|
998
803
|
};
|
|
999
804
|
};
|
|
1000
805
|
/**
|
|
1001
|
-
*
|
|
806
|
+
* ManagerClubRolesApi - factory interface
|
|
1002
807
|
* @export
|
|
1003
808
|
*/
|
|
1004
|
-
export const
|
|
1005
|
-
const localVarFp =
|
|
809
|
+
export const ManagerClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
810
|
+
const localVarFp = ManagerClubRolesApiFp(configuration);
|
|
1006
811
|
return {
|
|
1007
812
|
/**
|
|
1008
813
|
*
|
|
1009
814
|
* @summary Créer un nouveau rôle de club
|
|
1010
|
-
* @param {
|
|
815
|
+
* @param {ManagerClubRolesApiCreateClubRoleRequest} requestParameters Request parameters.
|
|
1011
816
|
* @param {*} [options] Override http request option.
|
|
1012
817
|
* @throws {RequiredError}
|
|
1013
818
|
*/
|
|
@@ -1017,7 +822,7 @@ export const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1017
822
|
/**
|
|
1018
823
|
*
|
|
1019
824
|
* @summary Supprimer un rôle de club
|
|
1020
|
-
* @param {
|
|
825
|
+
* @param {ManagerClubRolesApiDeleteClubRoleRequest} requestParameters Request parameters.
|
|
1021
826
|
* @param {*} [options] Override http request option.
|
|
1022
827
|
* @throws {RequiredError}
|
|
1023
828
|
*/
|
|
@@ -1036,7 +841,7 @@ export const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1036
841
|
/**
|
|
1037
842
|
*
|
|
1038
843
|
* @summary Récupérer un rôle de club par son ID
|
|
1039
|
-
* @param {
|
|
844
|
+
* @param {ManagerClubRolesApiGetClubRoleByIdRequest} requestParameters Request parameters.
|
|
1040
845
|
* @param {*} [options] Override http request option.
|
|
1041
846
|
* @throws {RequiredError}
|
|
1042
847
|
*/
|
|
@@ -1046,7 +851,7 @@ export const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1046
851
|
/**
|
|
1047
852
|
*
|
|
1048
853
|
* @summary Mettre à jour un rôle de club
|
|
1049
|
-
* @param {
|
|
854
|
+
* @param {ManagerClubRolesApiUpdateClubRoleRequest} requestParameters Request parameters.
|
|
1050
855
|
* @param {*} [options] Override http request option.
|
|
1051
856
|
* @throws {RequiredError}
|
|
1052
857
|
*/
|
|
@@ -1056,98 +861,98 @@ export const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1056
861
|
};
|
|
1057
862
|
};
|
|
1058
863
|
/**
|
|
1059
|
-
*
|
|
864
|
+
* ManagerClubRolesApi - object-oriented interface
|
|
1060
865
|
* @export
|
|
1061
|
-
* @class
|
|
866
|
+
* @class ManagerClubRolesApi
|
|
1062
867
|
* @extends {BaseAPI}
|
|
1063
868
|
*/
|
|
1064
|
-
export class
|
|
869
|
+
export class ManagerClubRolesApi extends BaseAPI {
|
|
1065
870
|
/**
|
|
1066
871
|
*
|
|
1067
872
|
* @summary Créer un nouveau rôle de club
|
|
1068
|
-
* @param {
|
|
873
|
+
* @param {ManagerClubRolesApiCreateClubRoleRequest} requestParameters Request parameters.
|
|
1069
874
|
* @param {*} [options] Override http request option.
|
|
1070
875
|
* @throws {RequiredError}
|
|
1071
|
-
* @memberof
|
|
876
|
+
* @memberof ManagerClubRolesApi
|
|
1072
877
|
*/
|
|
1073
878
|
createClubRole(requestParameters, options) {
|
|
1074
|
-
return
|
|
879
|
+
return ManagerClubRolesApiFp(this.configuration).createClubRole(requestParameters.createClubRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1075
880
|
}
|
|
1076
881
|
/**
|
|
1077
882
|
*
|
|
1078
883
|
* @summary Supprimer un rôle de club
|
|
1079
|
-
* @param {
|
|
884
|
+
* @param {ManagerClubRolesApiDeleteClubRoleRequest} requestParameters Request parameters.
|
|
1080
885
|
* @param {*} [options] Override http request option.
|
|
1081
886
|
* @throws {RequiredError}
|
|
1082
|
-
* @memberof
|
|
887
|
+
* @memberof ManagerClubRolesApi
|
|
1083
888
|
*/
|
|
1084
889
|
deleteClubRole(requestParameters, options) {
|
|
1085
|
-
return
|
|
890
|
+
return ManagerClubRolesApiFp(this.configuration).deleteClubRole(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1086
891
|
}
|
|
1087
892
|
/**
|
|
1088
893
|
*
|
|
1089
894
|
* @summary Récupérer tous les rôles de clubs
|
|
1090
895
|
* @param {*} [options] Override http request option.
|
|
1091
896
|
* @throws {RequiredError}
|
|
1092
|
-
* @memberof
|
|
897
|
+
* @memberof ManagerClubRolesApi
|
|
1093
898
|
*/
|
|
1094
899
|
getAllClubRoles(options) {
|
|
1095
|
-
return
|
|
900
|
+
return ManagerClubRolesApiFp(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
1096
901
|
}
|
|
1097
902
|
/**
|
|
1098
903
|
*
|
|
1099
904
|
* @summary Récupérer un rôle de club par son ID
|
|
1100
|
-
* @param {
|
|
905
|
+
* @param {ManagerClubRolesApiGetClubRoleByIdRequest} requestParameters Request parameters.
|
|
1101
906
|
* @param {*} [options] Override http request option.
|
|
1102
907
|
* @throws {RequiredError}
|
|
1103
|
-
* @memberof
|
|
908
|
+
* @memberof ManagerClubRolesApi
|
|
1104
909
|
*/
|
|
1105
910
|
getClubRoleById(requestParameters, options) {
|
|
1106
|
-
return
|
|
911
|
+
return ManagerClubRolesApiFp(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1107
912
|
}
|
|
1108
913
|
/**
|
|
1109
914
|
*
|
|
1110
915
|
* @summary Mettre à jour un rôle de club
|
|
1111
|
-
* @param {
|
|
916
|
+
* @param {ManagerClubRolesApiUpdateClubRoleRequest} requestParameters Request parameters.
|
|
1112
917
|
* @param {*} [options] Override http request option.
|
|
1113
918
|
* @throws {RequiredError}
|
|
1114
|
-
* @memberof
|
|
919
|
+
* @memberof ManagerClubRolesApi
|
|
1115
920
|
*/
|
|
1116
921
|
updateClubRole(requestParameters, options) {
|
|
1117
|
-
return
|
|
922
|
+
return ManagerClubRolesApiFp(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1118
923
|
}
|
|
1119
924
|
}
|
|
1120
925
|
/**
|
|
1121
|
-
*
|
|
926
|
+
* ManagerClubSlotsApi - axios parameter creator
|
|
1122
927
|
* @export
|
|
1123
928
|
*/
|
|
1124
|
-
export const
|
|
929
|
+
export const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
1125
930
|
return {
|
|
1126
931
|
/**
|
|
1127
932
|
*
|
|
1128
|
-
* @summary
|
|
933
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1129
934
|
* @param {string} id ID du club
|
|
1130
|
-
* @param {string}
|
|
1131
|
-
* @param {string}
|
|
1132
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
935
|
+
* @param {string} start Date de début (format ISO)
|
|
936
|
+
* @param {string} end Date de fin (format ISO)
|
|
1133
937
|
* @param {*} [options] Override http request option.
|
|
1134
938
|
* @throws {RequiredError}
|
|
1135
939
|
*/
|
|
1136
|
-
|
|
940
|
+
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 = {}) {
|
|
1137
941
|
// verify required parameter 'id' is not null or undefined
|
|
1138
|
-
assertParamExists('
|
|
1139
|
-
// verify required parameter '
|
|
1140
|
-
assertParamExists('
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
942
|
+
assertParamExists('deleteSlotsByClubInRange', 'id', id);
|
|
943
|
+
// verify required parameter 'start' is not null or undefined
|
|
944
|
+
assertParamExists('deleteSlotsByClubInRange', 'start', start);
|
|
945
|
+
// verify required parameter 'end' is not null or undefined
|
|
946
|
+
assertParamExists('deleteSlotsByClubInRange', 'end', end);
|
|
947
|
+
const localVarPath = `/api/clubs/{id}/slots`
|
|
948
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1144
949
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1145
950
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1146
951
|
let baseOptions;
|
|
1147
952
|
if (configuration) {
|
|
1148
953
|
baseOptions = configuration.baseOptions;
|
|
1149
954
|
}
|
|
1150
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
955
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1151
956
|
const localVarHeaderParameter = {};
|
|
1152
957
|
const localVarQueryParameter = {};
|
|
1153
958
|
// authentication bearerAuth required
|
|
@@ -1173,24 +978,18 @@ export const ClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
1173
978
|
}),
|
|
1174
979
|
/**
|
|
1175
980
|
*
|
|
1176
|
-
* @summary
|
|
981
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1177
982
|
* @param {string} id ID du club
|
|
1178
|
-
* @param {string}
|
|
1179
|
-
* @param {string}
|
|
983
|
+
* @param {string} [start] Date de début (format ISO)
|
|
984
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
1180
985
|
* @param {*} [options] Override http request option.
|
|
1181
986
|
* @throws {RequiredError}
|
|
1182
987
|
*/
|
|
1183
|
-
|
|
988
|
+
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 = {}) {
|
|
1184
989
|
// verify required parameter 'id' is not null or undefined
|
|
1185
|
-
assertParamExists('
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
// verify required parameter 'day' is not null or undefined
|
|
1189
|
-
assertParamExists('getAvailableSlotsBySportsAndDay', 'day', day);
|
|
1190
|
-
const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots/{day}`
|
|
1191
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
1192
|
-
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)))
|
|
1193
|
-
.replace(`{${"day"}}`, encodeURIComponent(String(day)));
|
|
990
|
+
assertParamExists('getSlotsByClub', 'id', id);
|
|
991
|
+
const localVarPath = `/api/clubs/{id}/slots`
|
|
992
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1194
993
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1195
994
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1196
995
|
let baseOptions;
|
|
@@ -1203,6 +1002,16 @@ export const ClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
1203
1002
|
// authentication bearerAuth required
|
|
1204
1003
|
// http bearer authentication required
|
|
1205
1004
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1005
|
+
if (start !== undefined) {
|
|
1006
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
1007
|
+
start.toISOString() :
|
|
1008
|
+
start;
|
|
1009
|
+
}
|
|
1010
|
+
if (end !== undefined) {
|
|
1011
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
1012
|
+
end.toISOString() :
|
|
1013
|
+
end;
|
|
1014
|
+
}
|
|
1206
1015
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1207
1016
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1208
1017
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1214,115 +1023,114 @@ export const ClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
1214
1023
|
};
|
|
1215
1024
|
};
|
|
1216
1025
|
/**
|
|
1217
|
-
*
|
|
1026
|
+
* ManagerClubSlotsApi - functional programming interface
|
|
1218
1027
|
* @export
|
|
1219
1028
|
*/
|
|
1220
|
-
export const
|
|
1221
|
-
const localVarAxiosParamCreator =
|
|
1029
|
+
export const ManagerClubSlotsApiFp = function (configuration) {
|
|
1030
|
+
const localVarAxiosParamCreator = ManagerClubSlotsApiAxiosParamCreator(configuration);
|
|
1222
1031
|
return {
|
|
1223
1032
|
/**
|
|
1224
1033
|
*
|
|
1225
|
-
* @summary
|
|
1034
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1226
1035
|
* @param {string} id ID du club
|
|
1227
|
-
* @param {string}
|
|
1228
|
-
* @param {string}
|
|
1229
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
1036
|
+
* @param {string} start Date de début (format ISO)
|
|
1037
|
+
* @param {string} end Date de fin (format ISO)
|
|
1230
1038
|
* @param {*} [options] Override http request option.
|
|
1231
1039
|
* @throws {RequiredError}
|
|
1232
1040
|
*/
|
|
1233
|
-
|
|
1041
|
+
deleteSlotsByClubInRange(id, start, end, options) {
|
|
1234
1042
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1235
1043
|
var _a, _b, _c;
|
|
1236
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1044
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRange(id, start, end, options);
|
|
1237
1045
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1238
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1046
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSlotsApi.deleteSlotsByClubInRange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1239
1047
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1240
1048
|
});
|
|
1241
1049
|
},
|
|
1242
1050
|
/**
|
|
1243
1051
|
*
|
|
1244
|
-
* @summary
|
|
1052
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1245
1053
|
* @param {string} id ID du club
|
|
1246
|
-
* @param {string}
|
|
1247
|
-
* @param {string}
|
|
1054
|
+
* @param {string} [start] Date de début (format ISO)
|
|
1055
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
1248
1056
|
* @param {*} [options] Override http request option.
|
|
1249
1057
|
* @throws {RequiredError}
|
|
1250
1058
|
*/
|
|
1251
|
-
|
|
1059
|
+
getSlotsByClub(id, start, end, options) {
|
|
1252
1060
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1253
1061
|
var _a, _b, _c;
|
|
1254
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1062
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClub(id, start, end, options);
|
|
1255
1063
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1256
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1064
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSlotsApi.getSlotsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1257
1065
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1258
1066
|
});
|
|
1259
1067
|
},
|
|
1260
1068
|
};
|
|
1261
1069
|
};
|
|
1262
1070
|
/**
|
|
1263
|
-
*
|
|
1071
|
+
* ManagerClubSlotsApi - factory interface
|
|
1264
1072
|
* @export
|
|
1265
1073
|
*/
|
|
1266
|
-
export const
|
|
1267
|
-
const localVarFp =
|
|
1074
|
+
export const ManagerClubSlotsApiFactory = function (configuration, basePath, axios) {
|
|
1075
|
+
const localVarFp = ManagerClubSlotsApiFp(configuration);
|
|
1268
1076
|
return {
|
|
1269
1077
|
/**
|
|
1270
1078
|
*
|
|
1271
|
-
* @summary
|
|
1272
|
-
* @param {
|
|
1079
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1080
|
+
* @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
|
|
1273
1081
|
* @param {*} [options] Override http request option.
|
|
1274
1082
|
* @throws {RequiredError}
|
|
1275
1083
|
*/
|
|
1276
|
-
|
|
1277
|
-
return localVarFp.
|
|
1084
|
+
deleteSlotsByClubInRange(requestParameters, options) {
|
|
1085
|
+
return localVarFp.deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
1278
1086
|
},
|
|
1279
1087
|
/**
|
|
1280
1088
|
*
|
|
1281
|
-
* @summary
|
|
1282
|
-
* @param {
|
|
1089
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1090
|
+
* @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
|
|
1283
1091
|
* @param {*} [options] Override http request option.
|
|
1284
1092
|
* @throws {RequiredError}
|
|
1285
1093
|
*/
|
|
1286
|
-
|
|
1287
|
-
return localVarFp.
|
|
1094
|
+
getSlotsByClub(requestParameters, options) {
|
|
1095
|
+
return localVarFp.getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
1288
1096
|
},
|
|
1289
1097
|
};
|
|
1290
1098
|
};
|
|
1291
1099
|
/**
|
|
1292
|
-
*
|
|
1100
|
+
* ManagerClubSlotsApi - object-oriented interface
|
|
1293
1101
|
* @export
|
|
1294
|
-
* @class
|
|
1102
|
+
* @class ManagerClubSlotsApi
|
|
1295
1103
|
* @extends {BaseAPI}
|
|
1296
1104
|
*/
|
|
1297
|
-
export class
|
|
1105
|
+
export class ManagerClubSlotsApi extends BaseAPI {
|
|
1298
1106
|
/**
|
|
1299
1107
|
*
|
|
1300
|
-
* @summary
|
|
1301
|
-
* @param {
|
|
1108
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1109
|
+
* @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
|
|
1302
1110
|
* @param {*} [options] Override http request option.
|
|
1303
1111
|
* @throws {RequiredError}
|
|
1304
|
-
* @memberof
|
|
1112
|
+
* @memberof ManagerClubSlotsApi
|
|
1305
1113
|
*/
|
|
1306
|
-
|
|
1307
|
-
return
|
|
1114
|
+
deleteSlotsByClubInRange(requestParameters, options) {
|
|
1115
|
+
return ManagerClubSlotsApiFp(this.configuration).deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
1308
1116
|
}
|
|
1309
1117
|
/**
|
|
1310
1118
|
*
|
|
1311
|
-
* @summary
|
|
1312
|
-
* @param {
|
|
1119
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1120
|
+
* @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
|
|
1313
1121
|
* @param {*} [options] Override http request option.
|
|
1314
1122
|
* @throws {RequiredError}
|
|
1315
|
-
* @memberof
|
|
1123
|
+
* @memberof ManagerClubSlotsApi
|
|
1316
1124
|
*/
|
|
1317
|
-
|
|
1318
|
-
return
|
|
1125
|
+
getSlotsByClub(requestParameters, options) {
|
|
1126
|
+
return ManagerClubSlotsApiFp(this.configuration).getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
1319
1127
|
}
|
|
1320
1128
|
}
|
|
1321
1129
|
/**
|
|
1322
|
-
*
|
|
1130
|
+
* ManagerClubSubscriptionsApi - axios parameter creator
|
|
1323
1131
|
* @export
|
|
1324
1132
|
*/
|
|
1325
|
-
export const
|
|
1133
|
+
export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
1326
1134
|
return {
|
|
1327
1135
|
/**
|
|
1328
1136
|
*
|
|
@@ -1590,11 +1398,11 @@ export const ClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
1590
1398
|
};
|
|
1591
1399
|
};
|
|
1592
1400
|
/**
|
|
1593
|
-
*
|
|
1401
|
+
* ManagerClubSubscriptionsApi - functional programming interface
|
|
1594
1402
|
* @export
|
|
1595
1403
|
*/
|
|
1596
|
-
export const
|
|
1597
|
-
const localVarAxiosParamCreator =
|
|
1404
|
+
export const ManagerClubSubscriptionsApiFp = function (configuration) {
|
|
1405
|
+
const localVarAxiosParamCreator = ManagerClubSubscriptionsApiAxiosParamCreator(configuration);
|
|
1598
1406
|
return {
|
|
1599
1407
|
/**
|
|
1600
1408
|
*
|
|
@@ -1609,7 +1417,7 @@ export const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1609
1417
|
var _a, _b, _c;
|
|
1610
1418
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlan(id, priceId, options);
|
|
1611
1419
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1612
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1420
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.archivePriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1613
1421
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1614
1422
|
});
|
|
1615
1423
|
},
|
|
@@ -1627,7 +1435,7 @@ export const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1627
1435
|
var _a, _b, _c;
|
|
1628
1436
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlan(id, productId, createPriceRequest, options);
|
|
1629
1437
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1630
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1438
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.createPriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1631
1439
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1632
1440
|
});
|
|
1633
1441
|
},
|
|
@@ -1644,7 +1452,7 @@ export const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1644
1452
|
var _a, _b, _c;
|
|
1645
1453
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(id, createSubscriptionPlanRequest, options);
|
|
1646
1454
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1647
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1455
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.createSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1648
1456
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1649
1457
|
});
|
|
1650
1458
|
},
|
|
@@ -1661,7 +1469,7 @@ export const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1661
1469
|
var _a, _b, _c;
|
|
1662
1470
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClub(id, productId, options);
|
|
1663
1471
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1664
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1472
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.deleteSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1665
1473
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1666
1474
|
});
|
|
1667
1475
|
},
|
|
@@ -1678,7 +1486,7 @@ export const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1678
1486
|
var _a, _b, _c;
|
|
1679
1487
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClub(id, productId, options);
|
|
1680
1488
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1681
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1489
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.restoreSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1682
1490
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1683
1491
|
});
|
|
1684
1492
|
},
|
|
@@ -1695,7 +1503,7 @@ export const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1695
1503
|
var _a, _b, _c;
|
|
1696
1504
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClub(id, priceId, options);
|
|
1697
1505
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1698
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1506
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.restoreSubscriptionPriceForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1699
1507
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1700
1508
|
});
|
|
1701
1509
|
},
|
|
@@ -1713,23 +1521,23 @@ export const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1713
1521
|
var _a, _b, _c;
|
|
1714
1522
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClub(id, priceId, updateSubscriptionPlanRequest, options);
|
|
1715
1523
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1716
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1524
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.updateSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1717
1525
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1718
1526
|
});
|
|
1719
1527
|
},
|
|
1720
1528
|
};
|
|
1721
1529
|
};
|
|
1722
1530
|
/**
|
|
1723
|
-
*
|
|
1531
|
+
* ManagerClubSubscriptionsApi - factory interface
|
|
1724
1532
|
* @export
|
|
1725
1533
|
*/
|
|
1726
|
-
export const
|
|
1727
|
-
const localVarFp =
|
|
1534
|
+
export const ManagerClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
1535
|
+
const localVarFp = ManagerClubSubscriptionsApiFp(configuration);
|
|
1728
1536
|
return {
|
|
1729
1537
|
/**
|
|
1730
1538
|
*
|
|
1731
1539
|
* @summary Archiver un prix
|
|
1732
|
-
* @param {
|
|
1540
|
+
* @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1733
1541
|
* @param {*} [options] Override http request option.
|
|
1734
1542
|
* @throws {RequiredError}
|
|
1735
1543
|
*/
|
|
@@ -1739,7 +1547,7 @@ export const ClubSubscriptionsApiFactory = function (configuration, basePath, ax
|
|
|
1739
1547
|
/**
|
|
1740
1548
|
*
|
|
1741
1549
|
* @summary Créer un nouveau prix pour un plan
|
|
1742
|
-
* @param {
|
|
1550
|
+
* @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1743
1551
|
* @param {*} [options] Override http request option.
|
|
1744
1552
|
* @throws {RequiredError}
|
|
1745
1553
|
*/
|
|
@@ -1749,7 +1557,7 @@ export const ClubSubscriptionsApiFactory = function (configuration, basePath, ax
|
|
|
1749
1557
|
/**
|
|
1750
1558
|
*
|
|
1751
1559
|
* @summary Créer un plan d\'abonnement pour un club
|
|
1752
|
-
* @param {
|
|
1560
|
+
* @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1753
1561
|
* @param {*} [options] Override http request option.
|
|
1754
1562
|
* @throws {RequiredError}
|
|
1755
1563
|
*/
|
|
@@ -1759,7 +1567,7 @@ export const ClubSubscriptionsApiFactory = function (configuration, basePath, ax
|
|
|
1759
1567
|
/**
|
|
1760
1568
|
*
|
|
1761
1569
|
* @summary Supprimer un plan d\'abonnement pour un club
|
|
1762
|
-
* @param {
|
|
1570
|
+
* @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1763
1571
|
* @param {*} [options] Override http request option.
|
|
1764
1572
|
* @throws {RequiredError}
|
|
1765
1573
|
*/
|
|
@@ -1769,7 +1577,7 @@ export const ClubSubscriptionsApiFactory = function (configuration, basePath, ax
|
|
|
1769
1577
|
/**
|
|
1770
1578
|
*
|
|
1771
1579
|
* @summary Réactiver un plan d\'abonnement
|
|
1772
|
-
* @param {
|
|
1580
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1773
1581
|
* @param {*} [options] Override http request option.
|
|
1774
1582
|
* @throws {RequiredError}
|
|
1775
1583
|
*/
|
|
@@ -1779,7 +1587,7 @@ export const ClubSubscriptionsApiFactory = function (configuration, basePath, ax
|
|
|
1779
1587
|
/**
|
|
1780
1588
|
*
|
|
1781
1589
|
* @summary Réactiver un prix
|
|
1782
|
-
* @param {
|
|
1590
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
|
|
1783
1591
|
* @param {*} [options] Override http request option.
|
|
1784
1592
|
* @throws {RequiredError}
|
|
1785
1593
|
*/
|
|
@@ -1789,7 +1597,7 @@ export const ClubSubscriptionsApiFactory = function (configuration, basePath, ax
|
|
|
1789
1597
|
/**
|
|
1790
1598
|
*
|
|
1791
1599
|
* @summary Mettre à jour un plan d\'abonnement
|
|
1792
|
-
* @param {
|
|
1600
|
+
* @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1793
1601
|
* @param {*} [options] Override http request option.
|
|
1794
1602
|
* @throws {RequiredError}
|
|
1795
1603
|
*/
|
|
@@ -1799,107 +1607,110 @@ export const ClubSubscriptionsApiFactory = function (configuration, basePath, ax
|
|
|
1799
1607
|
};
|
|
1800
1608
|
};
|
|
1801
1609
|
/**
|
|
1802
|
-
*
|
|
1610
|
+
* ManagerClubSubscriptionsApi - object-oriented interface
|
|
1803
1611
|
* @export
|
|
1804
|
-
* @class
|
|
1612
|
+
* @class ManagerClubSubscriptionsApi
|
|
1805
1613
|
* @extends {BaseAPI}
|
|
1806
1614
|
*/
|
|
1807
|
-
export class
|
|
1615
|
+
export class ManagerClubSubscriptionsApi extends BaseAPI {
|
|
1808
1616
|
/**
|
|
1809
1617
|
*
|
|
1810
1618
|
* @summary Archiver un prix
|
|
1811
|
-
* @param {
|
|
1619
|
+
* @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1812
1620
|
* @param {*} [options] Override http request option.
|
|
1813
1621
|
* @throws {RequiredError}
|
|
1814
|
-
* @memberof
|
|
1622
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1815
1623
|
*/
|
|
1816
1624
|
archivePriceForSubscriptionPlan(requestParameters, options) {
|
|
1817
|
-
return
|
|
1625
|
+
return ManagerClubSubscriptionsApiFp(this.configuration).archivePriceForSubscriptionPlan(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
1818
1626
|
}
|
|
1819
1627
|
/**
|
|
1820
1628
|
*
|
|
1821
1629
|
* @summary Créer un nouveau prix pour un plan
|
|
1822
|
-
* @param {
|
|
1630
|
+
* @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1823
1631
|
* @param {*} [options] Override http request option.
|
|
1824
1632
|
* @throws {RequiredError}
|
|
1825
|
-
* @memberof
|
|
1633
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1826
1634
|
*/
|
|
1827
1635
|
createPriceForSubscriptionPlan(requestParameters, options) {
|
|
1828
|
-
return
|
|
1636
|
+
return ManagerClubSubscriptionsApiFp(this.configuration).createPriceForSubscriptionPlan(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1829
1637
|
}
|
|
1830
1638
|
/**
|
|
1831
1639
|
*
|
|
1832
1640
|
* @summary Créer un plan d\'abonnement pour un club
|
|
1833
|
-
* @param {
|
|
1641
|
+
* @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1834
1642
|
* @param {*} [options] Override http request option.
|
|
1835
1643
|
* @throws {RequiredError}
|
|
1836
|
-
* @memberof
|
|
1644
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1837
1645
|
*/
|
|
1838
1646
|
createSubscriptionPlanForClub(requestParameters, options) {
|
|
1839
|
-
return
|
|
1647
|
+
return ManagerClubSubscriptionsApiFp(this.configuration).createSubscriptionPlanForClub(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1840
1648
|
}
|
|
1841
1649
|
/**
|
|
1842
1650
|
*
|
|
1843
1651
|
* @summary Supprimer un plan d\'abonnement pour un club
|
|
1844
|
-
* @param {
|
|
1652
|
+
* @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1845
1653
|
* @param {*} [options] Override http request option.
|
|
1846
1654
|
* @throws {RequiredError}
|
|
1847
|
-
* @memberof
|
|
1655
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1848
1656
|
*/
|
|
1849
1657
|
deleteSubscriptionPlanForClub(requestParameters, options) {
|
|
1850
|
-
return
|
|
1658
|
+
return ManagerClubSubscriptionsApiFp(this.configuration).deleteSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1851
1659
|
}
|
|
1852
1660
|
/**
|
|
1853
1661
|
*
|
|
1854
1662
|
* @summary Réactiver un plan d\'abonnement
|
|
1855
|
-
* @param {
|
|
1663
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1856
1664
|
* @param {*} [options] Override http request option.
|
|
1857
1665
|
* @throws {RequiredError}
|
|
1858
|
-
* @memberof
|
|
1666
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1859
1667
|
*/
|
|
1860
1668
|
restoreSubscriptionPlanForClub(requestParameters, options) {
|
|
1861
|
-
return
|
|
1669
|
+
return ManagerClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1862
1670
|
}
|
|
1863
1671
|
/**
|
|
1864
1672
|
*
|
|
1865
1673
|
* @summary Réactiver un prix
|
|
1866
|
-
* @param {
|
|
1674
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
|
|
1867
1675
|
* @param {*} [options] Override http request option.
|
|
1868
1676
|
* @throws {RequiredError}
|
|
1869
|
-
* @memberof
|
|
1677
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1870
1678
|
*/
|
|
1871
1679
|
restoreSubscriptionPriceForClub(requestParameters, options) {
|
|
1872
|
-
return
|
|
1680
|
+
return ManagerClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPriceForClub(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
1873
1681
|
}
|
|
1874
1682
|
/**
|
|
1875
1683
|
*
|
|
1876
1684
|
* @summary Mettre à jour un plan d\'abonnement
|
|
1877
|
-
* @param {
|
|
1685
|
+
* @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1878
1686
|
* @param {*} [options] Override http request option.
|
|
1879
1687
|
* @throws {RequiredError}
|
|
1880
|
-
* @memberof
|
|
1688
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1881
1689
|
*/
|
|
1882
1690
|
updateSubscriptionPlanForClub(requestParameters, options) {
|
|
1883
|
-
return
|
|
1691
|
+
return ManagerClubSubscriptionsApiFp(this.configuration).updateSubscriptionPlanForClub(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1884
1692
|
}
|
|
1885
1693
|
}
|
|
1886
1694
|
/**
|
|
1887
|
-
*
|
|
1695
|
+
* ManagerClubsApi - axios parameter creator
|
|
1888
1696
|
* @export
|
|
1889
1697
|
*/
|
|
1890
|
-
export const
|
|
1698
|
+
export const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
1891
1699
|
return {
|
|
1892
1700
|
/**
|
|
1893
1701
|
*
|
|
1894
|
-
* @summary
|
|
1702
|
+
* @summary Ajouter un membre à un club
|
|
1895
1703
|
* @param {string} id ID du club
|
|
1704
|
+
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
1896
1705
|
* @param {*} [options] Override http request option.
|
|
1897
1706
|
* @throws {RequiredError}
|
|
1898
1707
|
*/
|
|
1899
|
-
|
|
1708
|
+
addClubMember: (id_1, addClubMemberRequest_1, ...args_1) => __awaiter(this, [id_1, addClubMemberRequest_1, ...args_1], void 0, function* (id, addClubMemberRequest, options = {}) {
|
|
1900
1709
|
// verify required parameter 'id' is not null or undefined
|
|
1901
|
-
assertParamExists('
|
|
1902
|
-
|
|
1710
|
+
assertParamExists('addClubMember', 'id', id);
|
|
1711
|
+
// verify required parameter 'addClubMemberRequest' is not null or undefined
|
|
1712
|
+
assertParamExists('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
1713
|
+
const localVarPath = `/api/clubs/{id}/add_members`
|
|
1903
1714
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1904
1715
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1905
1716
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1907,105 +1718,65 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
1907
1718
|
if (configuration) {
|
|
1908
1719
|
baseOptions = configuration.baseOptions;
|
|
1909
1720
|
}
|
|
1910
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1721
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1911
1722
|
const localVarHeaderParameter = {};
|
|
1912
1723
|
const localVarQueryParameter = {};
|
|
1913
1724
|
// authentication bearerAuth required
|
|
1914
1725
|
// http bearer authentication required
|
|
1915
1726
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1727
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1916
1728
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1917
1729
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1918
1730
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1731
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
1919
1732
|
return {
|
|
1920
1733
|
url: toPathString(localVarUrlObj),
|
|
1921
1734
|
options: localVarRequestOptions,
|
|
1922
1735
|
};
|
|
1923
1736
|
}),
|
|
1924
|
-
};
|
|
1925
|
-
};
|
|
1926
|
-
/**
|
|
1927
|
-
* ClubsApi - functional programming interface
|
|
1928
|
-
* @export
|
|
1929
|
-
*/
|
|
1930
|
-
export const ClubsApiFp = function (configuration) {
|
|
1931
|
-
const localVarAxiosParamCreator = ClubsApiAxiosParamCreator(configuration);
|
|
1932
|
-
return {
|
|
1933
1737
|
/**
|
|
1934
1738
|
*
|
|
1935
|
-
* @summary
|
|
1739
|
+
* @summary Récupérer les informations d\'un club
|
|
1936
1740
|
* @param {string} id ID du club
|
|
1937
1741
|
* @param {*} [options] Override http request option.
|
|
1938
1742
|
* @throws {RequiredError}
|
|
1939
1743
|
*/
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
getClubInfos(requestParameters, options) {
|
|
1966
|
-
return localVarFp.getClubInfos(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1967
|
-
},
|
|
1968
|
-
};
|
|
1969
|
-
};
|
|
1970
|
-
/**
|
|
1971
|
-
* ClubsApi - object-oriented interface
|
|
1972
|
-
* @export
|
|
1973
|
-
* @class ClubsApi
|
|
1974
|
-
* @extends {BaseAPI}
|
|
1975
|
-
*/
|
|
1976
|
-
export class ClubsApi extends BaseAPI {
|
|
1977
|
-
/**
|
|
1978
|
-
*
|
|
1979
|
-
* @summary Get club information (name, address, email, etc.)
|
|
1980
|
-
* @param {ClubsApiGetClubInfosRequest} requestParameters Request parameters.
|
|
1981
|
-
* @param {*} [options] Override http request option.
|
|
1982
|
-
* @throws {RequiredError}
|
|
1983
|
-
* @memberof ClubsApi
|
|
1984
|
-
*/
|
|
1985
|
-
getClubInfos(requestParameters, options) {
|
|
1986
|
-
return ClubsApiFp(this.configuration).getClubInfos(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1987
|
-
}
|
|
1988
|
-
}
|
|
1989
|
-
/**
|
|
1990
|
-
* ManagerClubCourtsApi - axios parameter creator
|
|
1991
|
-
* @export
|
|
1992
|
-
*/
|
|
1993
|
-
export const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
1994
|
-
return {
|
|
1744
|
+
getClubInfo: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1745
|
+
// verify required parameter 'id' is not null or undefined
|
|
1746
|
+
assertParamExists('getClubInfo', 'id', id);
|
|
1747
|
+
const localVarPath = `/api/clubs/{id}`
|
|
1748
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1749
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1750
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1751
|
+
let baseOptions;
|
|
1752
|
+
if (configuration) {
|
|
1753
|
+
baseOptions = configuration.baseOptions;
|
|
1754
|
+
}
|
|
1755
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1756
|
+
const localVarHeaderParameter = {};
|
|
1757
|
+
const localVarQueryParameter = {};
|
|
1758
|
+
// authentication bearerAuth required
|
|
1759
|
+
// http bearer authentication required
|
|
1760
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1761
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1762
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1763
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1764
|
+
return {
|
|
1765
|
+
url: toPathString(localVarUrlObj),
|
|
1766
|
+
options: localVarRequestOptions,
|
|
1767
|
+
};
|
|
1768
|
+
}),
|
|
1995
1769
|
/**
|
|
1996
1770
|
*
|
|
1997
|
-
* @summary
|
|
1771
|
+
* @summary Récupérer les membres d\'un club
|
|
1998
1772
|
* @param {string} id ID du club
|
|
1999
|
-
* @param {CreateCourtRequest} createCourtRequest
|
|
2000
1773
|
* @param {*} [options] Override http request option.
|
|
2001
1774
|
* @throws {RequiredError}
|
|
2002
1775
|
*/
|
|
2003
|
-
|
|
1776
|
+
getClubMembers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2004
1777
|
// verify required parameter 'id' is not null or undefined
|
|
2005
|
-
assertParamExists('
|
|
2006
|
-
|
|
2007
|
-
assertParamExists('createCourtForClub', 'createCourtRequest', createCourtRequest);
|
|
2008
|
-
const localVarPath = `/api/clubs/{id}/courts`
|
|
1778
|
+
assertParamExists('getClubMembers', 'id', id);
|
|
1779
|
+
const localVarPath = `/api/clubs/{id}/members`
|
|
2009
1780
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2010
1781
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2011
1782
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2013,17 +1784,15 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2013
1784
|
if (configuration) {
|
|
2014
1785
|
baseOptions = configuration.baseOptions;
|
|
2015
1786
|
}
|
|
2016
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1787
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2017
1788
|
const localVarHeaderParameter = {};
|
|
2018
1789
|
const localVarQueryParameter = {};
|
|
2019
1790
|
// authentication bearerAuth required
|
|
2020
1791
|
// http bearer authentication required
|
|
2021
1792
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2022
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2023
1793
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2024
1794
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2025
1795
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2026
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createCourtRequest, localVarRequestOptions, configuration);
|
|
2027
1796
|
return {
|
|
2028
1797
|
url: toPathString(localVarUrlObj),
|
|
2029
1798
|
options: localVarRequestOptions,
|
|
@@ -2031,15 +1800,15 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2031
1800
|
}),
|
|
2032
1801
|
/**
|
|
2033
1802
|
*
|
|
2034
|
-
* @summary Récupérer
|
|
1803
|
+
* @summary Récupérer les rôles d\'un club
|
|
2035
1804
|
* @param {string} id ID du club
|
|
2036
1805
|
* @param {*} [options] Override http request option.
|
|
2037
1806
|
* @throws {RequiredError}
|
|
2038
1807
|
*/
|
|
2039
|
-
|
|
1808
|
+
getClubRoles: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2040
1809
|
// verify required parameter 'id' is not null or undefined
|
|
2041
|
-
assertParamExists('
|
|
2042
|
-
const localVarPath = `/api/clubs/{id}/
|
|
1810
|
+
assertParamExists('getClubRoles', 'id', id);
|
|
1811
|
+
const localVarPath = `/api/clubs/{id}/roles`
|
|
2043
1812
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2044
1813
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2045
1814
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2061,176 +1830,20 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2061
1830
|
options: localVarRequestOptions,
|
|
2062
1831
|
};
|
|
2063
1832
|
}),
|
|
2064
|
-
};
|
|
2065
|
-
};
|
|
2066
|
-
/**
|
|
2067
|
-
* ManagerClubCourtsApi - functional programming interface
|
|
2068
|
-
* @export
|
|
2069
|
-
*/
|
|
2070
|
-
export const ManagerClubCourtsApiFp = function (configuration) {
|
|
2071
|
-
const localVarAxiosParamCreator = ManagerClubCourtsApiAxiosParamCreator(configuration);
|
|
2072
|
-
return {
|
|
2073
1833
|
/**
|
|
2074
1834
|
*
|
|
2075
|
-
* @summary
|
|
1835
|
+
* @summary Mettre à jour un club existant
|
|
2076
1836
|
* @param {string} id ID du club
|
|
2077
|
-
* @param {
|
|
1837
|
+
* @param {UpdateClubRequest} updateClubRequest
|
|
2078
1838
|
* @param {*} [options] Override http request option.
|
|
2079
1839
|
* @throws {RequiredError}
|
|
2080
1840
|
*/
|
|
2081
|
-
|
|
2082
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2083
|
-
var _a, _b, _c;
|
|
2084
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCourtForClub(id, createCourtRequest, options);
|
|
2085
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2086
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubCourtsApi.createCourtForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2087
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2088
|
-
});
|
|
2089
|
-
},
|
|
2090
|
-
/**
|
|
2091
|
-
*
|
|
2092
|
-
* @summary Récupérer tous les terrains pour un club
|
|
2093
|
-
* @param {string} id ID du club
|
|
2094
|
-
* @param {*} [options] Override http request option.
|
|
2095
|
-
* @throws {RequiredError}
|
|
2096
|
-
*/
|
|
2097
|
-
getCourtsByClub(id, options) {
|
|
2098
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2099
|
-
var _a, _b, _c;
|
|
2100
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClub(id, options);
|
|
2101
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2102
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubCourtsApi.getCourtsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2103
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2104
|
-
});
|
|
2105
|
-
},
|
|
2106
|
-
};
|
|
2107
|
-
};
|
|
2108
|
-
/**
|
|
2109
|
-
* ManagerClubCourtsApi - factory interface
|
|
2110
|
-
* @export
|
|
2111
|
-
*/
|
|
2112
|
-
export const ManagerClubCourtsApiFactory = function (configuration, basePath, axios) {
|
|
2113
|
-
const localVarFp = ManagerClubCourtsApiFp(configuration);
|
|
2114
|
-
return {
|
|
2115
|
-
/**
|
|
2116
|
-
*
|
|
2117
|
-
* @summary Créer un terrain pour un club
|
|
2118
|
-
* @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
|
|
2119
|
-
* @param {*} [options] Override http request option.
|
|
2120
|
-
* @throws {RequiredError}
|
|
2121
|
-
*/
|
|
2122
|
-
createCourtForClub(requestParameters, options) {
|
|
2123
|
-
return localVarFp.createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(axios, basePath));
|
|
2124
|
-
},
|
|
2125
|
-
/**
|
|
2126
|
-
*
|
|
2127
|
-
* @summary Récupérer tous les terrains pour un club
|
|
2128
|
-
* @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
|
|
2129
|
-
* @param {*} [options] Override http request option.
|
|
2130
|
-
* @throws {RequiredError}
|
|
2131
|
-
*/
|
|
2132
|
-
getCourtsByClub(requestParameters, options) {
|
|
2133
|
-
return localVarFp.getCourtsByClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2134
|
-
},
|
|
2135
|
-
};
|
|
2136
|
-
};
|
|
2137
|
-
/**
|
|
2138
|
-
* ManagerClubCourtsApi - object-oriented interface
|
|
2139
|
-
* @export
|
|
2140
|
-
* @class ManagerClubCourtsApi
|
|
2141
|
-
* @extends {BaseAPI}
|
|
2142
|
-
*/
|
|
2143
|
-
export class ManagerClubCourtsApi extends BaseAPI {
|
|
2144
|
-
/**
|
|
2145
|
-
*
|
|
2146
|
-
* @summary Créer un terrain pour un club
|
|
2147
|
-
* @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
|
|
2148
|
-
* @param {*} [options] Override http request option.
|
|
2149
|
-
* @throws {RequiredError}
|
|
2150
|
-
* @memberof ManagerClubCourtsApi
|
|
2151
|
-
*/
|
|
2152
|
-
createCourtForClub(requestParameters, options) {
|
|
2153
|
-
return ManagerClubCourtsApiFp(this.configuration).createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2154
|
-
}
|
|
2155
|
-
/**
|
|
2156
|
-
*
|
|
2157
|
-
* @summary Récupérer tous les terrains pour un club
|
|
2158
|
-
* @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
|
|
2159
|
-
* @param {*} [options] Override http request option.
|
|
2160
|
-
* @throws {RequiredError}
|
|
2161
|
-
* @memberof ManagerClubCourtsApi
|
|
2162
|
-
*/
|
|
2163
|
-
getCourtsByClub(requestParameters, options) {
|
|
2164
|
-
return ManagerClubCourtsApiFp(this.configuration).getCourtsByClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2165
|
-
}
|
|
2166
|
-
}
|
|
2167
|
-
/**
|
|
2168
|
-
* ManagerClubSlotsApi - axios parameter creator
|
|
2169
|
-
* @export
|
|
2170
|
-
*/
|
|
2171
|
-
export const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
2172
|
-
return {
|
|
2173
|
-
/**
|
|
2174
|
-
*
|
|
2175
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
2176
|
-
* @param {string} id ID du club
|
|
2177
|
-
* @param {string} start Date de début (format ISO)
|
|
2178
|
-
* @param {string} end Date de fin (format ISO)
|
|
2179
|
-
* @param {*} [options] Override http request option.
|
|
2180
|
-
* @throws {RequiredError}
|
|
2181
|
-
*/
|
|
2182
|
-
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 = {}) {
|
|
2183
|
-
// verify required parameter 'id' is not null or undefined
|
|
2184
|
-
assertParamExists('deleteSlotsByClubInRange', 'id', id);
|
|
2185
|
-
// verify required parameter 'start' is not null or undefined
|
|
2186
|
-
assertParamExists('deleteSlotsByClubInRange', 'start', start);
|
|
2187
|
-
// verify required parameter 'end' is not null or undefined
|
|
2188
|
-
assertParamExists('deleteSlotsByClubInRange', 'end', end);
|
|
2189
|
-
const localVarPath = `/api/clubs/{id}/slots`
|
|
2190
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2191
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2192
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2193
|
-
let baseOptions;
|
|
2194
|
-
if (configuration) {
|
|
2195
|
-
baseOptions = configuration.baseOptions;
|
|
2196
|
-
}
|
|
2197
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2198
|
-
const localVarHeaderParameter = {};
|
|
2199
|
-
const localVarQueryParameter = {};
|
|
2200
|
-
// authentication bearerAuth required
|
|
2201
|
-
// http bearer authentication required
|
|
2202
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2203
|
-
if (start !== undefined) {
|
|
2204
|
-
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
2205
|
-
start.toISOString() :
|
|
2206
|
-
start;
|
|
2207
|
-
}
|
|
2208
|
-
if (end !== undefined) {
|
|
2209
|
-
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
2210
|
-
end.toISOString() :
|
|
2211
|
-
end;
|
|
2212
|
-
}
|
|
2213
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2214
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2215
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2216
|
-
return {
|
|
2217
|
-
url: toPathString(localVarUrlObj),
|
|
2218
|
-
options: localVarRequestOptions,
|
|
2219
|
-
};
|
|
2220
|
-
}),
|
|
2221
|
-
/**
|
|
2222
|
-
*
|
|
2223
|
-
* @summary Récupérer tous les créneaux pour un club
|
|
2224
|
-
* @param {string} id ID du club
|
|
2225
|
-
* @param {string} [start] Date de début (format ISO)
|
|
2226
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
2227
|
-
* @param {*} [options] Override http request option.
|
|
2228
|
-
* @throws {RequiredError}
|
|
2229
|
-
*/
|
|
2230
|
-
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 = {}) {
|
|
1841
|
+
updateClub: (id_1, updateClubRequest_1, ...args_1) => __awaiter(this, [id_1, updateClubRequest_1, ...args_1], void 0, function* (id, updateClubRequest, options = {}) {
|
|
2231
1842
|
// verify required parameter 'id' is not null or undefined
|
|
2232
|
-
assertParamExists('
|
|
2233
|
-
|
|
1843
|
+
assertParamExists('updateClub', 'id', id);
|
|
1844
|
+
// verify required parameter 'updateClubRequest' is not null or undefined
|
|
1845
|
+
assertParamExists('updateClub', 'updateClubRequest', updateClubRequest);
|
|
1846
|
+
const localVarPath = `/api/clubs/{id}`
|
|
2234
1847
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2235
1848
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2236
1849
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2238,25 +1851,17 @@ export const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
2238
1851
|
if (configuration) {
|
|
2239
1852
|
baseOptions = configuration.baseOptions;
|
|
2240
1853
|
}
|
|
2241
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1854
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2242
1855
|
const localVarHeaderParameter = {};
|
|
2243
1856
|
const localVarQueryParameter = {};
|
|
2244
1857
|
// authentication bearerAuth required
|
|
2245
1858
|
// http bearer authentication required
|
|
2246
1859
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2247
|
-
|
|
2248
|
-
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
2249
|
-
start.toISOString() :
|
|
2250
|
-
start;
|
|
2251
|
-
}
|
|
2252
|
-
if (end !== undefined) {
|
|
2253
|
-
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
2254
|
-
end.toISOString() :
|
|
2255
|
-
end;
|
|
2256
|
-
}
|
|
1860
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2257
1861
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2258
1862
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2259
1863
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1864
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubRequest, localVarRequestOptions, configuration);
|
|
2260
1865
|
return {
|
|
2261
1866
|
url: toPathString(localVarUrlObj),
|
|
2262
1867
|
options: localVarRequestOptions,
|
|
@@ -2265,129 +1870,235 @@ export const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
2265
1870
|
};
|
|
2266
1871
|
};
|
|
2267
1872
|
/**
|
|
2268
|
-
*
|
|
1873
|
+
* ManagerClubsApi - functional programming interface
|
|
2269
1874
|
* @export
|
|
2270
1875
|
*/
|
|
2271
|
-
export const
|
|
2272
|
-
const localVarAxiosParamCreator =
|
|
1876
|
+
export const ManagerClubsApiFp = function (configuration) {
|
|
1877
|
+
const localVarAxiosParamCreator = ManagerClubsApiAxiosParamCreator(configuration);
|
|
2273
1878
|
return {
|
|
2274
1879
|
/**
|
|
2275
1880
|
*
|
|
2276
|
-
* @summary
|
|
1881
|
+
* @summary Ajouter un membre à un club
|
|
2277
1882
|
* @param {string} id ID du club
|
|
2278
|
-
* @param {
|
|
2279
|
-
* @param {string} end Date de fin (format ISO)
|
|
1883
|
+
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
2280
1884
|
* @param {*} [options] Override http request option.
|
|
2281
1885
|
* @throws {RequiredError}
|
|
2282
1886
|
*/
|
|
2283
|
-
|
|
1887
|
+
addClubMember(id, addClubMemberRequest, options) {
|
|
2284
1888
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2285
1889
|
var _a, _b, _c;
|
|
2286
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1890
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addClubMember(id, addClubMemberRequest, options);
|
|
2287
1891
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2288
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1892
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.addClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2289
1893
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2290
1894
|
});
|
|
2291
1895
|
},
|
|
2292
1896
|
/**
|
|
2293
1897
|
*
|
|
2294
|
-
* @summary Récupérer
|
|
1898
|
+
* @summary Récupérer les informations d\'un club
|
|
2295
1899
|
* @param {string} id ID du club
|
|
2296
|
-
* @param {string} [start] Date de début (format ISO)
|
|
2297
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
2298
1900
|
* @param {*} [options] Override http request option.
|
|
2299
1901
|
* @throws {RequiredError}
|
|
2300
1902
|
*/
|
|
2301
|
-
|
|
1903
|
+
getClubInfo(id, options) {
|
|
2302
1904
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2303
1905
|
var _a, _b, _c;
|
|
2304
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1906
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfo(id, options);
|
|
2305
1907
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2306
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1908
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.getClubInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1909
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1910
|
+
});
|
|
1911
|
+
},
|
|
1912
|
+
/**
|
|
1913
|
+
*
|
|
1914
|
+
* @summary Récupérer les membres d\'un club
|
|
1915
|
+
* @param {string} id ID du club
|
|
1916
|
+
* @param {*} [options] Override http request option.
|
|
1917
|
+
* @throws {RequiredError}
|
|
1918
|
+
*/
|
|
1919
|
+
getClubMembers(id, options) {
|
|
1920
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1921
|
+
var _a, _b, _c;
|
|
1922
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMembers(id, options);
|
|
1923
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1924
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.getClubMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1925
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1926
|
+
});
|
|
1927
|
+
},
|
|
1928
|
+
/**
|
|
1929
|
+
*
|
|
1930
|
+
* @summary Récupérer les rôles d\'un club
|
|
1931
|
+
* @param {string} id ID du club
|
|
1932
|
+
* @param {*} [options] Override http request option.
|
|
1933
|
+
* @throws {RequiredError}
|
|
1934
|
+
*/
|
|
1935
|
+
getClubRoles(id, options) {
|
|
1936
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1937
|
+
var _a, _b, _c;
|
|
1938
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoles(id, options);
|
|
1939
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1940
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.getClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1941
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1942
|
+
});
|
|
1943
|
+
},
|
|
1944
|
+
/**
|
|
1945
|
+
*
|
|
1946
|
+
* @summary Mettre à jour un club existant
|
|
1947
|
+
* @param {string} id ID du club
|
|
1948
|
+
* @param {UpdateClubRequest} updateClubRequest
|
|
1949
|
+
* @param {*} [options] Override http request option.
|
|
1950
|
+
* @throws {RequiredError}
|
|
1951
|
+
*/
|
|
1952
|
+
updateClub(id, updateClubRequest, options) {
|
|
1953
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1954
|
+
var _a, _b, _c;
|
|
1955
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClub(id, updateClubRequest, options);
|
|
1956
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1957
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.updateClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2307
1958
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2308
1959
|
});
|
|
2309
1960
|
},
|
|
2310
1961
|
};
|
|
2311
1962
|
};
|
|
2312
1963
|
/**
|
|
2313
|
-
*
|
|
1964
|
+
* ManagerClubsApi - factory interface
|
|
2314
1965
|
* @export
|
|
2315
1966
|
*/
|
|
2316
|
-
export const
|
|
2317
|
-
const localVarFp =
|
|
1967
|
+
export const ManagerClubsApiFactory = function (configuration, basePath, axios) {
|
|
1968
|
+
const localVarFp = ManagerClubsApiFp(configuration);
|
|
2318
1969
|
return {
|
|
2319
1970
|
/**
|
|
2320
1971
|
*
|
|
2321
|
-
* @summary
|
|
2322
|
-
* @param {
|
|
1972
|
+
* @summary Ajouter un membre à un club
|
|
1973
|
+
* @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
|
|
2323
1974
|
* @param {*} [options] Override http request option.
|
|
2324
1975
|
* @throws {RequiredError}
|
|
2325
1976
|
*/
|
|
2326
|
-
|
|
2327
|
-
return localVarFp.
|
|
1977
|
+
addClubMember(requestParameters, options) {
|
|
1978
|
+
return localVarFp.addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
2328
1979
|
},
|
|
2329
1980
|
/**
|
|
2330
1981
|
*
|
|
2331
|
-
* @summary Récupérer
|
|
2332
|
-
* @param {
|
|
1982
|
+
* @summary Récupérer les informations d\'un club
|
|
1983
|
+
* @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
|
|
2333
1984
|
* @param {*} [options] Override http request option.
|
|
2334
1985
|
* @throws {RequiredError}
|
|
2335
1986
|
*/
|
|
2336
|
-
|
|
2337
|
-
return localVarFp.
|
|
1987
|
+
getClubInfo(requestParameters, options) {
|
|
1988
|
+
return localVarFp.getClubInfo(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1989
|
+
},
|
|
1990
|
+
/**
|
|
1991
|
+
*
|
|
1992
|
+
* @summary Récupérer les membres d\'un club
|
|
1993
|
+
* @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
|
|
1994
|
+
* @param {*} [options] Override http request option.
|
|
1995
|
+
* @throws {RequiredError}
|
|
1996
|
+
*/
|
|
1997
|
+
getClubMembers(requestParameters, options) {
|
|
1998
|
+
return localVarFp.getClubMembers(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1999
|
+
},
|
|
2000
|
+
/**
|
|
2001
|
+
*
|
|
2002
|
+
* @summary Récupérer les rôles d\'un club
|
|
2003
|
+
* @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
|
|
2004
|
+
* @param {*} [options] Override http request option.
|
|
2005
|
+
* @throws {RequiredError}
|
|
2006
|
+
*/
|
|
2007
|
+
getClubRoles(requestParameters, options) {
|
|
2008
|
+
return localVarFp.getClubRoles(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2009
|
+
},
|
|
2010
|
+
/**
|
|
2011
|
+
*
|
|
2012
|
+
* @summary Mettre à jour un club existant
|
|
2013
|
+
* @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
|
|
2014
|
+
* @param {*} [options] Override http request option.
|
|
2015
|
+
* @throws {RequiredError}
|
|
2016
|
+
*/
|
|
2017
|
+
updateClub(requestParameters, options) {
|
|
2018
|
+
return localVarFp.updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(axios, basePath));
|
|
2338
2019
|
},
|
|
2339
2020
|
};
|
|
2340
2021
|
};
|
|
2341
2022
|
/**
|
|
2342
|
-
*
|
|
2023
|
+
* ManagerClubsApi - object-oriented interface
|
|
2343
2024
|
* @export
|
|
2344
|
-
* @class
|
|
2025
|
+
* @class ManagerClubsApi
|
|
2345
2026
|
* @extends {BaseAPI}
|
|
2346
2027
|
*/
|
|
2347
|
-
export class
|
|
2028
|
+
export class ManagerClubsApi extends BaseAPI {
|
|
2348
2029
|
/**
|
|
2349
2030
|
*
|
|
2350
|
-
* @summary
|
|
2351
|
-
* @param {
|
|
2031
|
+
* @summary Ajouter un membre à un club
|
|
2032
|
+
* @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
|
|
2352
2033
|
* @param {*} [options] Override http request option.
|
|
2353
2034
|
* @throws {RequiredError}
|
|
2354
|
-
* @memberof
|
|
2035
|
+
* @memberof ManagerClubsApi
|
|
2355
2036
|
*/
|
|
2356
|
-
|
|
2357
|
-
return
|
|
2037
|
+
addClubMember(requestParameters, options) {
|
|
2038
|
+
return ManagerClubsApiFp(this.configuration).addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2358
2039
|
}
|
|
2359
2040
|
/**
|
|
2360
2041
|
*
|
|
2361
|
-
* @summary Récupérer
|
|
2362
|
-
* @param {
|
|
2042
|
+
* @summary Récupérer les informations d\'un club
|
|
2043
|
+
* @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
|
|
2363
2044
|
* @param {*} [options] Override http request option.
|
|
2364
2045
|
* @throws {RequiredError}
|
|
2365
|
-
* @memberof
|
|
2046
|
+
* @memberof ManagerClubsApi
|
|
2366
2047
|
*/
|
|
2367
|
-
|
|
2368
|
-
return
|
|
2048
|
+
getClubInfo(requestParameters, options) {
|
|
2049
|
+
return ManagerClubsApiFp(this.configuration).getClubInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2050
|
+
}
|
|
2051
|
+
/**
|
|
2052
|
+
*
|
|
2053
|
+
* @summary Récupérer les membres d\'un club
|
|
2054
|
+
* @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
|
|
2055
|
+
* @param {*} [options] Override http request option.
|
|
2056
|
+
* @throws {RequiredError}
|
|
2057
|
+
* @memberof ManagerClubsApi
|
|
2058
|
+
*/
|
|
2059
|
+
getClubMembers(requestParameters, options) {
|
|
2060
|
+
return ManagerClubsApiFp(this.configuration).getClubMembers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2061
|
+
}
|
|
2062
|
+
/**
|
|
2063
|
+
*
|
|
2064
|
+
* @summary Récupérer les rôles d\'un club
|
|
2065
|
+
* @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
|
|
2066
|
+
* @param {*} [options] Override http request option.
|
|
2067
|
+
* @throws {RequiredError}
|
|
2068
|
+
* @memberof ManagerClubsApi
|
|
2069
|
+
*/
|
|
2070
|
+
getClubRoles(requestParameters, options) {
|
|
2071
|
+
return ManagerClubsApiFp(this.configuration).getClubRoles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2072
|
+
}
|
|
2073
|
+
/**
|
|
2074
|
+
*
|
|
2075
|
+
* @summary Mettre à jour un club existant
|
|
2076
|
+
* @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
|
|
2077
|
+
* @param {*} [options] Override http request option.
|
|
2078
|
+
* @throws {RequiredError}
|
|
2079
|
+
* @memberof ManagerClubsApi
|
|
2080
|
+
*/
|
|
2081
|
+
updateClub(requestParameters, options) {
|
|
2082
|
+
return ManagerClubsApiFp(this.configuration).updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2369
2083
|
}
|
|
2370
2084
|
}
|
|
2371
2085
|
/**
|
|
2372
|
-
*
|
|
2086
|
+
* ManagerSportsApi - axios parameter creator
|
|
2373
2087
|
* @export
|
|
2374
2088
|
*/
|
|
2375
|
-
export const
|
|
2089
|
+
export const ManagerSportsApiAxiosParamCreator = function (configuration) {
|
|
2376
2090
|
return {
|
|
2377
2091
|
/**
|
|
2378
2092
|
*
|
|
2379
|
-
* @summary
|
|
2380
|
-
* @param {string} id ID du
|
|
2381
|
-
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
2093
|
+
* @summary Supprimer un sport
|
|
2094
|
+
* @param {string} id ID du sport
|
|
2382
2095
|
* @param {*} [options] Override http request option.
|
|
2383
2096
|
* @throws {RequiredError}
|
|
2384
2097
|
*/
|
|
2385
|
-
|
|
2098
|
+
deleteSport: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2386
2099
|
// verify required parameter 'id' is not null or undefined
|
|
2387
|
-
assertParamExists('
|
|
2388
|
-
|
|
2389
|
-
assertParamExists('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
2390
|
-
const localVarPath = `/api/clubs/{id}/add_members`
|
|
2100
|
+
assertParamExists('deleteSport', 'id', id);
|
|
2101
|
+
const localVarPath = `/api/sports/{id}`
|
|
2391
2102
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2392
2103
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2393
2104
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2395,17 +2106,15 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2395
2106
|
if (configuration) {
|
|
2396
2107
|
baseOptions = configuration.baseOptions;
|
|
2397
2108
|
}
|
|
2398
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2109
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2399
2110
|
const localVarHeaderParameter = {};
|
|
2400
2111
|
const localVarQueryParameter = {};
|
|
2401
2112
|
// authentication bearerAuth required
|
|
2402
2113
|
// http bearer authentication required
|
|
2403
2114
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2404
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2405
2115
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2406
2116
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2407
2117
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2408
|
-
localVarRequestOptions.data = serializeDataIfNeeded(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
2409
2118
|
return {
|
|
2410
2119
|
url: toPathString(localVarUrlObj),
|
|
2411
2120
|
options: localVarRequestOptions,
|
|
@@ -2413,15 +2122,18 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2413
2122
|
}),
|
|
2414
2123
|
/**
|
|
2415
2124
|
*
|
|
2416
|
-
* @summary
|
|
2417
|
-
* @param {string} id ID du
|
|
2125
|
+
* @summary Mettre à jour un sport
|
|
2126
|
+
* @param {string} id ID du sport
|
|
2127
|
+
* @param {UpdateSportRequest} updateSportRequest
|
|
2418
2128
|
* @param {*} [options] Override http request option.
|
|
2419
2129
|
* @throws {RequiredError}
|
|
2420
2130
|
*/
|
|
2421
|
-
|
|
2131
|
+
updateSport: (id_1, updateSportRequest_1, ...args_1) => __awaiter(this, [id_1, updateSportRequest_1, ...args_1], void 0, function* (id, updateSportRequest, options = {}) {
|
|
2422
2132
|
// verify required parameter 'id' is not null or undefined
|
|
2423
|
-
assertParamExists('
|
|
2424
|
-
|
|
2133
|
+
assertParamExists('updateSport', 'id', id);
|
|
2134
|
+
// verify required parameter 'updateSportRequest' is not null or undefined
|
|
2135
|
+
assertParamExists('updateSport', 'updateSportRequest', updateSportRequest);
|
|
2136
|
+
const localVarPath = `/api/sports/{id}`
|
|
2425
2137
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2426
2138
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2427
2139
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2429,63 +2141,142 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2429
2141
|
if (configuration) {
|
|
2430
2142
|
baseOptions = configuration.baseOptions;
|
|
2431
2143
|
}
|
|
2432
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2144
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2433
2145
|
const localVarHeaderParameter = {};
|
|
2434
2146
|
const localVarQueryParameter = {};
|
|
2435
2147
|
// authentication bearerAuth required
|
|
2436
2148
|
// http bearer authentication required
|
|
2437
2149
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2150
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2438
2151
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2439
2152
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2440
2153
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2154
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateSportRequest, localVarRequestOptions, configuration);
|
|
2441
2155
|
return {
|
|
2442
2156
|
url: toPathString(localVarUrlObj),
|
|
2443
2157
|
options: localVarRequestOptions,
|
|
2444
2158
|
};
|
|
2445
2159
|
}),
|
|
2160
|
+
};
|
|
2161
|
+
};
|
|
2162
|
+
/**
|
|
2163
|
+
* ManagerSportsApi - functional programming interface
|
|
2164
|
+
* @export
|
|
2165
|
+
*/
|
|
2166
|
+
export const ManagerSportsApiFp = function (configuration) {
|
|
2167
|
+
const localVarAxiosParamCreator = ManagerSportsApiAxiosParamCreator(configuration);
|
|
2168
|
+
return {
|
|
2169
|
+
/**
|
|
2170
|
+
*
|
|
2171
|
+
* @summary Supprimer un sport
|
|
2172
|
+
* @param {string} id ID du sport
|
|
2173
|
+
* @param {*} [options] Override http request option.
|
|
2174
|
+
* @throws {RequiredError}
|
|
2175
|
+
*/
|
|
2176
|
+
deleteSport(id, options) {
|
|
2177
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2178
|
+
var _a, _b, _c;
|
|
2179
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSport(id, options);
|
|
2180
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2181
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerSportsApi.deleteSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2182
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2183
|
+
});
|
|
2184
|
+
},
|
|
2185
|
+
/**
|
|
2186
|
+
*
|
|
2187
|
+
* @summary Mettre à jour un sport
|
|
2188
|
+
* @param {string} id ID du sport
|
|
2189
|
+
* @param {UpdateSportRequest} updateSportRequest
|
|
2190
|
+
* @param {*} [options] Override http request option.
|
|
2191
|
+
* @throws {RequiredError}
|
|
2192
|
+
*/
|
|
2193
|
+
updateSport(id, updateSportRequest, options) {
|
|
2194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2195
|
+
var _a, _b, _c;
|
|
2196
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSport(id, updateSportRequest, options);
|
|
2197
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2198
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerSportsApi.updateSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2199
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2200
|
+
});
|
|
2201
|
+
},
|
|
2202
|
+
};
|
|
2203
|
+
};
|
|
2204
|
+
/**
|
|
2205
|
+
* ManagerSportsApi - factory interface
|
|
2206
|
+
* @export
|
|
2207
|
+
*/
|
|
2208
|
+
export const ManagerSportsApiFactory = function (configuration, basePath, axios) {
|
|
2209
|
+
const localVarFp = ManagerSportsApiFp(configuration);
|
|
2210
|
+
return {
|
|
2211
|
+
/**
|
|
2212
|
+
*
|
|
2213
|
+
* @summary Supprimer un sport
|
|
2214
|
+
* @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
|
|
2215
|
+
* @param {*} [options] Override http request option.
|
|
2216
|
+
* @throws {RequiredError}
|
|
2217
|
+
*/
|
|
2218
|
+
deleteSport(requestParameters, options) {
|
|
2219
|
+
return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2220
|
+
},
|
|
2446
2221
|
/**
|
|
2447
2222
|
*
|
|
2448
|
-
* @summary
|
|
2449
|
-
* @param {
|
|
2223
|
+
* @summary Mettre à jour un sport
|
|
2224
|
+
* @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
|
|
2450
2225
|
* @param {*} [options] Override http request option.
|
|
2451
2226
|
* @throws {RequiredError}
|
|
2452
2227
|
*/
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2228
|
+
updateSport(requestParameters, options) {
|
|
2229
|
+
return localVarFp.updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(axios, basePath));
|
|
2230
|
+
},
|
|
2231
|
+
};
|
|
2232
|
+
};
|
|
2233
|
+
/**
|
|
2234
|
+
* ManagerSportsApi - object-oriented interface
|
|
2235
|
+
* @export
|
|
2236
|
+
* @class ManagerSportsApi
|
|
2237
|
+
* @extends {BaseAPI}
|
|
2238
|
+
*/
|
|
2239
|
+
export class ManagerSportsApi extends BaseAPI {
|
|
2240
|
+
/**
|
|
2241
|
+
*
|
|
2242
|
+
* @summary Supprimer un sport
|
|
2243
|
+
* @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
|
|
2244
|
+
* @param {*} [options] Override http request option.
|
|
2245
|
+
* @throws {RequiredError}
|
|
2246
|
+
* @memberof ManagerSportsApi
|
|
2247
|
+
*/
|
|
2248
|
+
deleteSport(requestParameters, options) {
|
|
2249
|
+
return ManagerSportsApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2250
|
+
}
|
|
2251
|
+
/**
|
|
2252
|
+
*
|
|
2253
|
+
* @summary Mettre à jour un sport
|
|
2254
|
+
* @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
|
|
2255
|
+
* @param {*} [options] Override http request option.
|
|
2256
|
+
* @throws {RequiredError}
|
|
2257
|
+
* @memberof ManagerSportsApi
|
|
2258
|
+
*/
|
|
2259
|
+
updateSport(requestParameters, options) {
|
|
2260
|
+
return ManagerSportsApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
/**
|
|
2264
|
+
* StaffClubAnalyticsApi - axios parameter creator
|
|
2265
|
+
* @export
|
|
2266
|
+
*/
|
|
2267
|
+
export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
2268
|
+
return {
|
|
2478
2269
|
/**
|
|
2479
2270
|
*
|
|
2480
|
-
* @summary
|
|
2271
|
+
* @summary Get monthly turnover for the last six months
|
|
2481
2272
|
* @param {string} id ID du club
|
|
2482
2273
|
* @param {*} [options] Override http request option.
|
|
2483
2274
|
* @throws {RequiredError}
|
|
2484
2275
|
*/
|
|
2485
|
-
|
|
2276
|
+
getLastSixMonthsTurnover: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2486
2277
|
// verify required parameter 'id' is not null or undefined
|
|
2487
|
-
assertParamExists('
|
|
2488
|
-
const localVarPath = `/api/clubs/{id}/
|
|
2278
|
+
assertParamExists('getLastSixMonthsTurnover', 'id', id);
|
|
2279
|
+
const localVarPath = `/api/clubs/{id}/turnover`
|
|
2489
2280
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2490
2281
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2491
2282
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2509,18 +2300,15 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2509
2300
|
}),
|
|
2510
2301
|
/**
|
|
2511
2302
|
*
|
|
2512
|
-
* @summary
|
|
2303
|
+
* @summary Get number of users subscribed to the club
|
|
2513
2304
|
* @param {string} id ID du club
|
|
2514
|
-
* @param {UpdateClubRequest} updateClubRequest
|
|
2515
2305
|
* @param {*} [options] Override http request option.
|
|
2516
2306
|
* @throws {RequiredError}
|
|
2517
2307
|
*/
|
|
2518
|
-
|
|
2308
|
+
getNumberOfClubUsers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2519
2309
|
// verify required parameter 'id' is not null or undefined
|
|
2520
|
-
assertParamExists('
|
|
2521
|
-
|
|
2522
|
-
assertParamExists('updateClub', 'updateClubRequest', updateClubRequest);
|
|
2523
|
-
const localVarPath = `/api/clubs/{id}`
|
|
2310
|
+
assertParamExists('getNumberOfClubUsers', 'id', id);
|
|
2311
|
+
const localVarPath = `/api/clubs/{id}/user-count`
|
|
2524
2312
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2525
2313
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2526
2314
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2528,17 +2316,15 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2528
2316
|
if (configuration) {
|
|
2529
2317
|
baseOptions = configuration.baseOptions;
|
|
2530
2318
|
}
|
|
2531
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2319
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2532
2320
|
const localVarHeaderParameter = {};
|
|
2533
2321
|
const localVarQueryParameter = {};
|
|
2534
2322
|
// authentication bearerAuth required
|
|
2535
2323
|
// http bearer authentication required
|
|
2536
2324
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2537
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2538
2325
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2539
2326
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2540
2327
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2541
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateClubRequest, localVarRequestOptions, configuration);
|
|
2542
2328
|
return {
|
|
2543
2329
|
url: toPathString(localVarUrlObj),
|
|
2544
2330
|
options: localVarRequestOptions,
|
|
@@ -2547,270 +2333,329 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2547
2333
|
};
|
|
2548
2334
|
};
|
|
2549
2335
|
/**
|
|
2550
|
-
*
|
|
2336
|
+
* StaffClubAnalyticsApi - functional programming interface
|
|
2551
2337
|
* @export
|
|
2552
2338
|
*/
|
|
2553
|
-
export const
|
|
2554
|
-
const localVarAxiosParamCreator =
|
|
2339
|
+
export const StaffClubAnalyticsApiFp = function (configuration) {
|
|
2340
|
+
const localVarAxiosParamCreator = StaffClubAnalyticsApiAxiosParamCreator(configuration);
|
|
2555
2341
|
return {
|
|
2556
2342
|
/**
|
|
2557
2343
|
*
|
|
2558
|
-
* @summary
|
|
2344
|
+
* @summary Get monthly turnover for the last six months
|
|
2559
2345
|
* @param {string} id ID du club
|
|
2560
|
-
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
2561
2346
|
* @param {*} [options] Override http request option.
|
|
2562
2347
|
* @throws {RequiredError}
|
|
2563
2348
|
*/
|
|
2564
|
-
|
|
2349
|
+
getLastSixMonthsTurnover(id, options) {
|
|
2565
2350
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2566
2351
|
var _a, _b, _c;
|
|
2567
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2352
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLastSixMonthsTurnover(id, options);
|
|
2568
2353
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2569
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2354
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubAnalyticsApi.getLastSixMonthsTurnover']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2570
2355
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2571
2356
|
});
|
|
2572
2357
|
},
|
|
2573
2358
|
/**
|
|
2574
2359
|
*
|
|
2575
|
-
* @summary
|
|
2360
|
+
* @summary Get number of users subscribed to the club
|
|
2576
2361
|
* @param {string} id ID du club
|
|
2577
2362
|
* @param {*} [options] Override http request option.
|
|
2578
2363
|
* @throws {RequiredError}
|
|
2579
2364
|
*/
|
|
2580
|
-
|
|
2365
|
+
getNumberOfClubUsers(id, options) {
|
|
2581
2366
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2582
2367
|
var _a, _b, _c;
|
|
2583
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2368
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(id, options);
|
|
2584
2369
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2585
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2370
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubAnalyticsApi.getNumberOfClubUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2586
2371
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2587
2372
|
});
|
|
2588
2373
|
},
|
|
2374
|
+
};
|
|
2375
|
+
};
|
|
2376
|
+
/**
|
|
2377
|
+
* StaffClubAnalyticsApi - factory interface
|
|
2378
|
+
* @export
|
|
2379
|
+
*/
|
|
2380
|
+
export const StaffClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
2381
|
+
const localVarFp = StaffClubAnalyticsApiFp(configuration);
|
|
2382
|
+
return {
|
|
2589
2383
|
/**
|
|
2590
2384
|
*
|
|
2591
|
-
* @summary
|
|
2592
|
-
* @param {
|
|
2385
|
+
* @summary Get monthly turnover for the last six months
|
|
2386
|
+
* @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
|
|
2593
2387
|
* @param {*} [options] Override http request option.
|
|
2594
2388
|
* @throws {RequiredError}
|
|
2595
2389
|
*/
|
|
2596
|
-
|
|
2597
|
-
return
|
|
2598
|
-
var _a, _b, _c;
|
|
2599
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMembers(id, options);
|
|
2600
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2601
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.getClubMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2602
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2603
|
-
});
|
|
2390
|
+
getLastSixMonthsTurnover(requestParameters, options) {
|
|
2391
|
+
return localVarFp.getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2604
2392
|
},
|
|
2605
2393
|
/**
|
|
2606
2394
|
*
|
|
2607
|
-
* @summary
|
|
2608
|
-
* @param {
|
|
2395
|
+
* @summary Get number of users subscribed to the club
|
|
2396
|
+
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
2609
2397
|
* @param {*} [options] Override http request option.
|
|
2610
2398
|
* @throws {RequiredError}
|
|
2611
2399
|
*/
|
|
2612
|
-
|
|
2613
|
-
return
|
|
2614
|
-
var _a, _b, _c;
|
|
2615
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoles(id, options);
|
|
2616
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2617
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.getClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2618
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2619
|
-
});
|
|
2400
|
+
getNumberOfClubUsers(requestParameters, options) {
|
|
2401
|
+
return localVarFp.getNumberOfClubUsers(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2620
2402
|
},
|
|
2403
|
+
};
|
|
2404
|
+
};
|
|
2405
|
+
/**
|
|
2406
|
+
* StaffClubAnalyticsApi - object-oriented interface
|
|
2407
|
+
* @export
|
|
2408
|
+
* @class StaffClubAnalyticsApi
|
|
2409
|
+
* @extends {BaseAPI}
|
|
2410
|
+
*/
|
|
2411
|
+
export class StaffClubAnalyticsApi extends BaseAPI {
|
|
2412
|
+
/**
|
|
2413
|
+
*
|
|
2414
|
+
* @summary Get monthly turnover for the last six months
|
|
2415
|
+
* @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
|
|
2416
|
+
* @param {*} [options] Override http request option.
|
|
2417
|
+
* @throws {RequiredError}
|
|
2418
|
+
* @memberof StaffClubAnalyticsApi
|
|
2419
|
+
*/
|
|
2420
|
+
getLastSixMonthsTurnover(requestParameters, options) {
|
|
2421
|
+
return StaffClubAnalyticsApiFp(this.configuration).getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2422
|
+
}
|
|
2423
|
+
/**
|
|
2424
|
+
*
|
|
2425
|
+
* @summary Get number of users subscribed to the club
|
|
2426
|
+
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
2427
|
+
* @param {*} [options] Override http request option.
|
|
2428
|
+
* @throws {RequiredError}
|
|
2429
|
+
* @memberof StaffClubAnalyticsApi
|
|
2430
|
+
*/
|
|
2431
|
+
getNumberOfClubUsers(requestParameters, options) {
|
|
2432
|
+
return StaffClubAnalyticsApiFp(this.configuration).getNumberOfClubUsers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2433
|
+
}
|
|
2434
|
+
}
|
|
2435
|
+
/**
|
|
2436
|
+
* StaffClubBookingsApi - axios parameter creator
|
|
2437
|
+
* @export
|
|
2438
|
+
*/
|
|
2439
|
+
export const StaffClubBookingsApiAxiosParamCreator = function (configuration) {
|
|
2440
|
+
return {
|
|
2621
2441
|
/**
|
|
2622
2442
|
*
|
|
2623
|
-
* @summary
|
|
2443
|
+
* @summary Get the ten next bookings for the club
|
|
2624
2444
|
* @param {string} id ID du club
|
|
2625
|
-
* @param {UpdateClubRequest} updateClubRequest
|
|
2626
2445
|
* @param {*} [options] Override http request option.
|
|
2627
2446
|
* @throws {RequiredError}
|
|
2628
2447
|
*/
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2448
|
+
getTenNextBookings: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2449
|
+
// verify required parameter 'id' is not null or undefined
|
|
2450
|
+
assertParamExists('getTenNextBookings', 'id', id);
|
|
2451
|
+
const localVarPath = `/api/clubs/{id}/next-bookings`
|
|
2452
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2453
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2454
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2455
|
+
let baseOptions;
|
|
2456
|
+
if (configuration) {
|
|
2457
|
+
baseOptions = configuration.baseOptions;
|
|
2458
|
+
}
|
|
2459
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2460
|
+
const localVarHeaderParameter = {};
|
|
2461
|
+
const localVarQueryParameter = {};
|
|
2462
|
+
// authentication bearerAuth required
|
|
2463
|
+
// http bearer authentication required
|
|
2464
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2465
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2466
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2467
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2468
|
+
return {
|
|
2469
|
+
url: toPathString(localVarUrlObj),
|
|
2470
|
+
options: localVarRequestOptions,
|
|
2471
|
+
};
|
|
2472
|
+
}),
|
|
2638
2473
|
};
|
|
2639
2474
|
};
|
|
2640
2475
|
/**
|
|
2641
|
-
*
|
|
2476
|
+
* StaffClubBookingsApi - functional programming interface
|
|
2642
2477
|
* @export
|
|
2643
2478
|
*/
|
|
2644
|
-
export const
|
|
2645
|
-
const
|
|
2479
|
+
export const StaffClubBookingsApiFp = function (configuration) {
|
|
2480
|
+
const localVarAxiosParamCreator = StaffClubBookingsApiAxiosParamCreator(configuration);
|
|
2646
2481
|
return {
|
|
2647
2482
|
/**
|
|
2648
2483
|
*
|
|
2649
|
-
* @summary
|
|
2650
|
-
* @param {
|
|
2651
|
-
* @param {*} [options] Override http request option.
|
|
2652
|
-
* @throws {RequiredError}
|
|
2653
|
-
*/
|
|
2654
|
-
addClubMember(requestParameters, options) {
|
|
2655
|
-
return localVarFp.addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
2656
|
-
},
|
|
2657
|
-
/**
|
|
2658
|
-
*
|
|
2659
|
-
* @summary Récupérer les informations d\'un club
|
|
2660
|
-
* @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
|
|
2661
|
-
* @param {*} [options] Override http request option.
|
|
2662
|
-
* @throws {RequiredError}
|
|
2663
|
-
*/
|
|
2664
|
-
getClubInfo(requestParameters, options) {
|
|
2665
|
-
return localVarFp.getClubInfo(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2666
|
-
},
|
|
2667
|
-
/**
|
|
2668
|
-
*
|
|
2669
|
-
* @summary Récupérer les membres d\'un club
|
|
2670
|
-
* @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
|
|
2671
|
-
* @param {*} [options] Override http request option.
|
|
2672
|
-
* @throws {RequiredError}
|
|
2673
|
-
*/
|
|
2674
|
-
getClubMembers(requestParameters, options) {
|
|
2675
|
-
return localVarFp.getClubMembers(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2676
|
-
},
|
|
2677
|
-
/**
|
|
2678
|
-
*
|
|
2679
|
-
* @summary Récupérer les rôles d\'un club
|
|
2680
|
-
* @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
|
|
2484
|
+
* @summary Get the ten next bookings for the club
|
|
2485
|
+
* @param {string} id ID du club
|
|
2681
2486
|
* @param {*} [options] Override http request option.
|
|
2682
2487
|
* @throws {RequiredError}
|
|
2683
2488
|
*/
|
|
2684
|
-
|
|
2685
|
-
return
|
|
2489
|
+
getTenNextBookings(id, options) {
|
|
2490
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2491
|
+
var _a, _b, _c;
|
|
2492
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTenNextBookings(id, options);
|
|
2493
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2494
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubBookingsApi.getTenNextBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2495
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2496
|
+
});
|
|
2686
2497
|
},
|
|
2498
|
+
};
|
|
2499
|
+
};
|
|
2500
|
+
/**
|
|
2501
|
+
* StaffClubBookingsApi - factory interface
|
|
2502
|
+
* @export
|
|
2503
|
+
*/
|
|
2504
|
+
export const StaffClubBookingsApiFactory = function (configuration, basePath, axios) {
|
|
2505
|
+
const localVarFp = StaffClubBookingsApiFp(configuration);
|
|
2506
|
+
return {
|
|
2687
2507
|
/**
|
|
2688
|
-
*
|
|
2689
|
-
* @summary
|
|
2690
|
-
* @param {
|
|
2508
|
+
*
|
|
2509
|
+
* @summary Get the ten next bookings for the club
|
|
2510
|
+
* @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
|
|
2691
2511
|
* @param {*} [options] Override http request option.
|
|
2692
2512
|
* @throws {RequiredError}
|
|
2693
2513
|
*/
|
|
2694
|
-
|
|
2695
|
-
return localVarFp.
|
|
2514
|
+
getTenNextBookings(requestParameters, options) {
|
|
2515
|
+
return localVarFp.getTenNextBookings(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2696
2516
|
},
|
|
2697
2517
|
};
|
|
2698
2518
|
};
|
|
2699
2519
|
/**
|
|
2700
|
-
*
|
|
2520
|
+
* StaffClubBookingsApi - object-oriented interface
|
|
2701
2521
|
* @export
|
|
2702
|
-
* @class
|
|
2522
|
+
* @class StaffClubBookingsApi
|
|
2703
2523
|
* @extends {BaseAPI}
|
|
2704
2524
|
*/
|
|
2705
|
-
export class
|
|
2706
|
-
/**
|
|
2707
|
-
*
|
|
2708
|
-
* @summary Ajouter un membre à un club
|
|
2709
|
-
* @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
|
|
2710
|
-
* @param {*} [options] Override http request option.
|
|
2711
|
-
* @throws {RequiredError}
|
|
2712
|
-
* @memberof ManagerClubsApi
|
|
2713
|
-
*/
|
|
2714
|
-
addClubMember(requestParameters, options) {
|
|
2715
|
-
return ManagerClubsApiFp(this.configuration).addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2716
|
-
}
|
|
2717
|
-
/**
|
|
2718
|
-
*
|
|
2719
|
-
* @summary Récupérer les informations d\'un club
|
|
2720
|
-
* @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
|
|
2721
|
-
* @param {*} [options] Override http request option.
|
|
2722
|
-
* @throws {RequiredError}
|
|
2723
|
-
* @memberof ManagerClubsApi
|
|
2724
|
-
*/
|
|
2725
|
-
getClubInfo(requestParameters, options) {
|
|
2726
|
-
return ManagerClubsApiFp(this.configuration).getClubInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2727
|
-
}
|
|
2728
|
-
/**
|
|
2729
|
-
*
|
|
2730
|
-
* @summary Récupérer les membres d\'un club
|
|
2731
|
-
* @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
|
|
2732
|
-
* @param {*} [options] Override http request option.
|
|
2733
|
-
* @throws {RequiredError}
|
|
2734
|
-
* @memberof ManagerClubsApi
|
|
2735
|
-
*/
|
|
2736
|
-
getClubMembers(requestParameters, options) {
|
|
2737
|
-
return ManagerClubsApiFp(this.configuration).getClubMembers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2738
|
-
}
|
|
2739
|
-
/**
|
|
2740
|
-
*
|
|
2741
|
-
* @summary Récupérer les rôles d\'un club
|
|
2742
|
-
* @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
|
|
2743
|
-
* @param {*} [options] Override http request option.
|
|
2744
|
-
* @throws {RequiredError}
|
|
2745
|
-
* @memberof ManagerClubsApi
|
|
2746
|
-
*/
|
|
2747
|
-
getClubRoles(requestParameters, options) {
|
|
2748
|
-
return ManagerClubsApiFp(this.configuration).getClubRoles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2749
|
-
}
|
|
2525
|
+
export class StaffClubBookingsApi extends BaseAPI {
|
|
2750
2526
|
/**
|
|
2751
2527
|
*
|
|
2752
|
-
* @summary
|
|
2753
|
-
* @param {
|
|
2528
|
+
* @summary Get the ten next bookings for the club
|
|
2529
|
+
* @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
|
|
2754
2530
|
* @param {*} [options] Override http request option.
|
|
2755
2531
|
* @throws {RequiredError}
|
|
2756
|
-
* @memberof
|
|
2532
|
+
* @memberof StaffClubBookingsApi
|
|
2757
2533
|
*/
|
|
2758
|
-
|
|
2759
|
-
return
|
|
2534
|
+
getTenNextBookings(requestParameters, options) {
|
|
2535
|
+
return StaffClubBookingsApiFp(this.configuration).getTenNextBookings(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2760
2536
|
}
|
|
2761
2537
|
}
|
|
2762
2538
|
/**
|
|
2763
|
-
*
|
|
2539
|
+
* StaffClubSettingsApi - axios parameter creator
|
|
2764
2540
|
* @export
|
|
2765
2541
|
*/
|
|
2766
|
-
export const
|
|
2542
|
+
export const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
2767
2543
|
return {
|
|
2768
2544
|
/**
|
|
2769
2545
|
*
|
|
2770
|
-
* @summary
|
|
2771
|
-
* @param {
|
|
2546
|
+
* @summary Récupère les paramètres d\'un club
|
|
2547
|
+
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
2772
2548
|
* @param {*} [options] Override http request option.
|
|
2773
2549
|
* @throws {RequiredError}
|
|
2774
2550
|
*/
|
|
2775
|
-
|
|
2776
|
-
// verify required parameter '
|
|
2777
|
-
assertParamExists('
|
|
2778
|
-
const localVarPath = `/api/
|
|
2779
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2551
|
+
getClubSettings: (getClubSettingsRequest_1, ...args_1) => __awaiter(this, [getClubSettingsRequest_1, ...args_1], void 0, function* (getClubSettingsRequest, options = {}) {
|
|
2552
|
+
// verify required parameter 'getClubSettingsRequest' is not null or undefined
|
|
2553
|
+
assertParamExists('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
|
|
2554
|
+
const localVarPath = `/api/club-settings`;
|
|
2780
2555
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2781
2556
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2782
2557
|
let baseOptions;
|
|
2783
2558
|
if (configuration) {
|
|
2784
2559
|
baseOptions = configuration.baseOptions;
|
|
2785
2560
|
}
|
|
2786
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2561
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2787
2562
|
const localVarHeaderParameter = {};
|
|
2788
2563
|
const localVarQueryParameter = {};
|
|
2789
2564
|
// authentication bearerAuth required
|
|
2790
2565
|
// http bearer authentication required
|
|
2791
2566
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2567
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2792
2568
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2793
2569
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2794
2570
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2571
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2795
2572
|
return {
|
|
2796
2573
|
url: toPathString(localVarUrlObj),
|
|
2797
2574
|
options: localVarRequestOptions,
|
|
2798
2575
|
};
|
|
2799
2576
|
}),
|
|
2577
|
+
};
|
|
2578
|
+
};
|
|
2579
|
+
/**
|
|
2580
|
+
* StaffClubSettingsApi - functional programming interface
|
|
2581
|
+
* @export
|
|
2582
|
+
*/
|
|
2583
|
+
export const StaffClubSettingsApiFp = function (configuration) {
|
|
2584
|
+
const localVarAxiosParamCreator = StaffClubSettingsApiAxiosParamCreator(configuration);
|
|
2585
|
+
return {
|
|
2800
2586
|
/**
|
|
2801
2587
|
*
|
|
2802
|
-
* @summary
|
|
2803
|
-
* @param {
|
|
2804
|
-
* @param {UpdateSportRequest} updateSportRequest
|
|
2588
|
+
* @summary Récupère les paramètres d\'un club
|
|
2589
|
+
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
2805
2590
|
* @param {*} [options] Override http request option.
|
|
2806
2591
|
* @throws {RequiredError}
|
|
2807
2592
|
*/
|
|
2808
|
-
|
|
2593
|
+
getClubSettings(getClubSettingsRequest, options) {
|
|
2594
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2595
|
+
var _a, _b, _c;
|
|
2596
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(getClubSettingsRequest, options);
|
|
2597
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2598
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubSettingsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2599
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2600
|
+
});
|
|
2601
|
+
},
|
|
2602
|
+
};
|
|
2603
|
+
};
|
|
2604
|
+
/**
|
|
2605
|
+
* StaffClubSettingsApi - factory interface
|
|
2606
|
+
* @export
|
|
2607
|
+
*/
|
|
2608
|
+
export const StaffClubSettingsApiFactory = function (configuration, basePath, axios) {
|
|
2609
|
+
const localVarFp = StaffClubSettingsApiFp(configuration);
|
|
2610
|
+
return {
|
|
2611
|
+
/**
|
|
2612
|
+
*
|
|
2613
|
+
* @summary Récupère les paramètres d\'un club
|
|
2614
|
+
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
2615
|
+
* @param {*} [options] Override http request option.
|
|
2616
|
+
* @throws {RequiredError}
|
|
2617
|
+
*/
|
|
2618
|
+
getClubSettings(requestParameters, options) {
|
|
2619
|
+
return localVarFp.getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2620
|
+
},
|
|
2621
|
+
};
|
|
2622
|
+
};
|
|
2623
|
+
/**
|
|
2624
|
+
* StaffClubSettingsApi - object-oriented interface
|
|
2625
|
+
* @export
|
|
2626
|
+
* @class StaffClubSettingsApi
|
|
2627
|
+
* @extends {BaseAPI}
|
|
2628
|
+
*/
|
|
2629
|
+
export class StaffClubSettingsApi extends BaseAPI {
|
|
2630
|
+
/**
|
|
2631
|
+
*
|
|
2632
|
+
* @summary Récupère les paramètres d\'un club
|
|
2633
|
+
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
2634
|
+
* @param {*} [options] Override http request option.
|
|
2635
|
+
* @throws {RequiredError}
|
|
2636
|
+
* @memberof StaffClubSettingsApi
|
|
2637
|
+
*/
|
|
2638
|
+
getClubSettings(requestParameters, options) {
|
|
2639
|
+
return StaffClubSettingsApiFp(this.configuration).getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
/**
|
|
2643
|
+
* StaffClubsApi - axios parameter creator
|
|
2644
|
+
* @export
|
|
2645
|
+
*/
|
|
2646
|
+
export const StaffClubsApiAxiosParamCreator = function (configuration) {
|
|
2647
|
+
return {
|
|
2648
|
+
/**
|
|
2649
|
+
*
|
|
2650
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2651
|
+
* @param {string} id ID du club
|
|
2652
|
+
* @param {*} [options] Override http request option.
|
|
2653
|
+
* @throws {RequiredError}
|
|
2654
|
+
*/
|
|
2655
|
+
getClubInfos: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2809
2656
|
// verify required parameter 'id' is not null or undefined
|
|
2810
|
-
assertParamExists('
|
|
2811
|
-
|
|
2812
|
-
assertParamExists('updateSport', 'updateSportRequest', updateSportRequest);
|
|
2813
|
-
const localVarPath = `/api/sports/{id}`
|
|
2657
|
+
assertParamExists('getClubInfos', 'id', id);
|
|
2658
|
+
const localVarPath = `/api/clubs/{id}/infos`
|
|
2814
2659
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2815
2660
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2816
2661
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2818,17 +2663,15 @@ export const SportsApiAxiosParamCreator = function (configuration) {
|
|
|
2818
2663
|
if (configuration) {
|
|
2819
2664
|
baseOptions = configuration.baseOptions;
|
|
2820
2665
|
}
|
|
2821
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2666
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2822
2667
|
const localVarHeaderParameter = {};
|
|
2823
2668
|
const localVarQueryParameter = {};
|
|
2824
2669
|
// authentication bearerAuth required
|
|
2825
2670
|
// http bearer authentication required
|
|
2826
2671
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2827
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2828
2672
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2829
2673
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2830
2674
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2831
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateSportRequest, localVarRequestOptions, configuration);
|
|
2832
2675
|
return {
|
|
2833
2676
|
url: toPathString(localVarUrlObj),
|
|
2834
2677
|
options: localVarRequestOptions,
|
|
@@ -2837,123 +2680,82 @@ export const SportsApiAxiosParamCreator = function (configuration) {
|
|
|
2837
2680
|
};
|
|
2838
2681
|
};
|
|
2839
2682
|
/**
|
|
2840
|
-
*
|
|
2683
|
+
* StaffClubsApi - functional programming interface
|
|
2841
2684
|
* @export
|
|
2842
2685
|
*/
|
|
2843
|
-
export const
|
|
2844
|
-
const localVarAxiosParamCreator =
|
|
2686
|
+
export const StaffClubsApiFp = function (configuration) {
|
|
2687
|
+
const localVarAxiosParamCreator = StaffClubsApiAxiosParamCreator(configuration);
|
|
2845
2688
|
return {
|
|
2846
2689
|
/**
|
|
2847
2690
|
*
|
|
2848
|
-
* @summary
|
|
2849
|
-
* @param {string} id ID du
|
|
2850
|
-
* @param {*} [options] Override http request option.
|
|
2851
|
-
* @throws {RequiredError}
|
|
2852
|
-
*/
|
|
2853
|
-
deleteSport(id, options) {
|
|
2854
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2855
|
-
var _a, _b, _c;
|
|
2856
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSport(id, options);
|
|
2857
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2858
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SportsApi.deleteSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2859
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2860
|
-
});
|
|
2861
|
-
},
|
|
2862
|
-
/**
|
|
2863
|
-
*
|
|
2864
|
-
* @summary Mettre à jour un sport
|
|
2865
|
-
* @param {string} id ID du sport
|
|
2866
|
-
* @param {UpdateSportRequest} updateSportRequest
|
|
2691
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2692
|
+
* @param {string} id ID du club
|
|
2867
2693
|
* @param {*} [options] Override http request option.
|
|
2868
2694
|
* @throws {RequiredError}
|
|
2869
2695
|
*/
|
|
2870
|
-
|
|
2696
|
+
getClubInfos(id, options) {
|
|
2871
2697
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2872
2698
|
var _a, _b, _c;
|
|
2873
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2699
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfos(id, options);
|
|
2874
2700
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2875
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2701
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubsApi.getClubInfos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2876
2702
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2877
2703
|
});
|
|
2878
2704
|
},
|
|
2879
2705
|
};
|
|
2880
2706
|
};
|
|
2881
2707
|
/**
|
|
2882
|
-
*
|
|
2708
|
+
* StaffClubsApi - factory interface
|
|
2883
2709
|
* @export
|
|
2884
2710
|
*/
|
|
2885
|
-
export const
|
|
2886
|
-
const localVarFp =
|
|
2711
|
+
export const StaffClubsApiFactory = function (configuration, basePath, axios) {
|
|
2712
|
+
const localVarFp = StaffClubsApiFp(configuration);
|
|
2887
2713
|
return {
|
|
2888
2714
|
/**
|
|
2889
2715
|
*
|
|
2890
|
-
* @summary
|
|
2891
|
-
* @param {
|
|
2892
|
-
* @param {*} [options] Override http request option.
|
|
2893
|
-
* @throws {RequiredError}
|
|
2894
|
-
*/
|
|
2895
|
-
deleteSport(requestParameters, options) {
|
|
2896
|
-
return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2897
|
-
},
|
|
2898
|
-
/**
|
|
2899
|
-
*
|
|
2900
|
-
* @summary Mettre à jour un sport
|
|
2901
|
-
* @param {SportsApiUpdateSportRequest} requestParameters Request parameters.
|
|
2716
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2717
|
+
* @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
|
|
2902
2718
|
* @param {*} [options] Override http request option.
|
|
2903
2719
|
* @throws {RequiredError}
|
|
2904
2720
|
*/
|
|
2905
|
-
|
|
2906
|
-
return localVarFp.
|
|
2721
|
+
getClubInfos(requestParameters, options) {
|
|
2722
|
+
return localVarFp.getClubInfos(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2907
2723
|
},
|
|
2908
2724
|
};
|
|
2909
2725
|
};
|
|
2910
2726
|
/**
|
|
2911
|
-
*
|
|
2727
|
+
* StaffClubsApi - object-oriented interface
|
|
2912
2728
|
* @export
|
|
2913
|
-
* @class
|
|
2729
|
+
* @class StaffClubsApi
|
|
2914
2730
|
* @extends {BaseAPI}
|
|
2915
2731
|
*/
|
|
2916
|
-
export class
|
|
2917
|
-
/**
|
|
2918
|
-
*
|
|
2919
|
-
* @summary Supprimer un sport
|
|
2920
|
-
* @param {SportsApiDeleteSportRequest} requestParameters Request parameters.
|
|
2921
|
-
* @param {*} [options] Override http request option.
|
|
2922
|
-
* @throws {RequiredError}
|
|
2923
|
-
* @memberof SportsApi
|
|
2924
|
-
*/
|
|
2925
|
-
deleteSport(requestParameters, options) {
|
|
2926
|
-
return SportsApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2927
|
-
}
|
|
2732
|
+
export class StaffClubsApi extends BaseAPI {
|
|
2928
2733
|
/**
|
|
2929
2734
|
*
|
|
2930
|
-
* @summary
|
|
2931
|
-
* @param {
|
|
2735
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2736
|
+
* @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
|
|
2932
2737
|
* @param {*} [options] Override http request option.
|
|
2933
2738
|
* @throws {RequiredError}
|
|
2934
|
-
* @memberof
|
|
2739
|
+
* @memberof StaffClubsApi
|
|
2935
2740
|
*/
|
|
2936
|
-
|
|
2937
|
-
return
|
|
2741
|
+
getClubInfos(requestParameters, options) {
|
|
2742
|
+
return StaffClubsApiFp(this.configuration).getClubInfos(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2938
2743
|
}
|
|
2939
2744
|
}
|
|
2940
2745
|
/**
|
|
2941
|
-
*
|
|
2746
|
+
* StaffProfileApi - axios parameter creator
|
|
2942
2747
|
* @export
|
|
2943
2748
|
*/
|
|
2944
|
-
export const
|
|
2749
|
+
export const StaffProfileApiAxiosParamCreator = function (configuration) {
|
|
2945
2750
|
return {
|
|
2946
2751
|
/**
|
|
2947
2752
|
*
|
|
2948
|
-
* @summary Récupère les
|
|
2949
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
2753
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
2950
2754
|
* @param {*} [options] Override http request option.
|
|
2951
2755
|
* @throws {RequiredError}
|
|
2952
2756
|
*/
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
assertParamExists('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
|
|
2956
|
-
const localVarPath = `/api/club-settings`;
|
|
2757
|
+
getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2758
|
+
const localVarPath = `/api/users/me/roles`;
|
|
2957
2759
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2958
2760
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2959
2761
|
let baseOptions;
|
|
@@ -2966,11 +2768,9 @@ export const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
|
2966
2768
|
// authentication bearerAuth required
|
|
2967
2769
|
// http bearer authentication required
|
|
2968
2770
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2969
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2970
2771
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2971
2772
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2972
2773
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2973
|
-
localVarRequestOptions.data = serializeDataIfNeeded(getClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2974
2774
|
return {
|
|
2975
2775
|
url: toPathString(localVarUrlObj),
|
|
2976
2776
|
options: localVarRequestOptions,
|
|
@@ -2979,66 +2779,63 @@ export const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
|
2979
2779
|
};
|
|
2980
2780
|
};
|
|
2981
2781
|
/**
|
|
2982
|
-
*
|
|
2782
|
+
* StaffProfileApi - functional programming interface
|
|
2983
2783
|
* @export
|
|
2984
2784
|
*/
|
|
2985
|
-
export const
|
|
2986
|
-
const localVarAxiosParamCreator =
|
|
2785
|
+
export const StaffProfileApiFp = function (configuration) {
|
|
2786
|
+
const localVarAxiosParamCreator = StaffProfileApiAxiosParamCreator(configuration);
|
|
2987
2787
|
return {
|
|
2988
2788
|
/**
|
|
2989
2789
|
*
|
|
2990
|
-
* @summary Récupère les
|
|
2991
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
2790
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
2992
2791
|
* @param {*} [options] Override http request option.
|
|
2993
2792
|
* @throws {RequiredError}
|
|
2994
2793
|
*/
|
|
2995
|
-
|
|
2794
|
+
getUserRolesInClubs(options) {
|
|
2996
2795
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2997
2796
|
var _a, _b, _c;
|
|
2998
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2797
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
|
|
2999
2798
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3000
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2799
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffProfileApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3001
2800
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3002
2801
|
});
|
|
3003
2802
|
},
|
|
3004
2803
|
};
|
|
3005
2804
|
};
|
|
3006
2805
|
/**
|
|
3007
|
-
*
|
|
2806
|
+
* StaffProfileApi - factory interface
|
|
3008
2807
|
* @export
|
|
3009
2808
|
*/
|
|
3010
|
-
export const
|
|
3011
|
-
const localVarFp =
|
|
2809
|
+
export const StaffProfileApiFactory = function (configuration, basePath, axios) {
|
|
2810
|
+
const localVarFp = StaffProfileApiFp(configuration);
|
|
3012
2811
|
return {
|
|
3013
2812
|
/**
|
|
3014
2813
|
*
|
|
3015
|
-
* @summary Récupère les
|
|
3016
|
-
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
2814
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
3017
2815
|
* @param {*} [options] Override http request option.
|
|
3018
2816
|
* @throws {RequiredError}
|
|
3019
2817
|
*/
|
|
3020
|
-
|
|
3021
|
-
return localVarFp.
|
|
2818
|
+
getUserRolesInClubs(options) {
|
|
2819
|
+
return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
|
|
3022
2820
|
},
|
|
3023
2821
|
};
|
|
3024
2822
|
};
|
|
3025
2823
|
/**
|
|
3026
|
-
*
|
|
2824
|
+
* StaffProfileApi - object-oriented interface
|
|
3027
2825
|
* @export
|
|
3028
|
-
* @class
|
|
2826
|
+
* @class StaffProfileApi
|
|
3029
2827
|
* @extends {BaseAPI}
|
|
3030
2828
|
*/
|
|
3031
|
-
export class
|
|
2829
|
+
export class StaffProfileApi extends BaseAPI {
|
|
3032
2830
|
/**
|
|
3033
2831
|
*
|
|
3034
|
-
* @summary Récupère les
|
|
3035
|
-
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
2832
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
3036
2833
|
* @param {*} [options] Override http request option.
|
|
3037
2834
|
* @throws {RequiredError}
|
|
3038
|
-
* @memberof
|
|
2835
|
+
* @memberof StaffProfileApi
|
|
3039
2836
|
*/
|
|
3040
|
-
|
|
3041
|
-
return
|
|
2837
|
+
getUserRolesInClubs(options) {
|
|
2838
|
+
return StaffProfileApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
|
|
3042
2839
|
}
|
|
3043
2840
|
}
|
|
3044
2841
|
/**
|
|
@@ -3145,6 +2942,180 @@ export class StaffSportsApi extends BaseAPI {
|
|
|
3145
2942
|
return StaffSportsApiFp(this.configuration).getAllSports(requestParameters.getAllSportsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3146
2943
|
}
|
|
3147
2944
|
}
|
|
2945
|
+
/**
|
|
2946
|
+
* UserApi - axios parameter creator
|
|
2947
|
+
* @export
|
|
2948
|
+
*/
|
|
2949
|
+
export const UserApiAxiosParamCreator = function (configuration) {
|
|
2950
|
+
return {
|
|
2951
|
+
/**
|
|
2952
|
+
*
|
|
2953
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
2954
|
+
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
2955
|
+
* @param {*} [options] Override http request option.
|
|
2956
|
+
* @throws {RequiredError}
|
|
2957
|
+
*/
|
|
2958
|
+
subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
|
|
2959
|
+
// verify required parameter 'subscribeToClubRequestBody' is not null or undefined
|
|
2960
|
+
assertParamExists('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
|
|
2961
|
+
const localVarPath = `/api/users/me/subscribe`;
|
|
2962
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2963
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2964
|
+
let baseOptions;
|
|
2965
|
+
if (configuration) {
|
|
2966
|
+
baseOptions = configuration.baseOptions;
|
|
2967
|
+
}
|
|
2968
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2969
|
+
const localVarHeaderParameter = {};
|
|
2970
|
+
const localVarQueryParameter = {};
|
|
2971
|
+
// authentication bearerAuth required
|
|
2972
|
+
// http bearer authentication required
|
|
2973
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2974
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2975
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2976
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2977
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2978
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscribeToClubRequestBody, localVarRequestOptions, configuration);
|
|
2979
|
+
return {
|
|
2980
|
+
url: toPathString(localVarUrlObj),
|
|
2981
|
+
options: localVarRequestOptions,
|
|
2982
|
+
};
|
|
2983
|
+
}),
|
|
2984
|
+
/**
|
|
2985
|
+
*
|
|
2986
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
2987
|
+
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
2988
|
+
* @param {*} [options] Override http request option.
|
|
2989
|
+
* @throws {RequiredError}
|
|
2990
|
+
*/
|
|
2991
|
+
updateCustomer: (updateCustomerRequestBody_1, ...args_1) => __awaiter(this, [updateCustomerRequestBody_1, ...args_1], void 0, function* (updateCustomerRequestBody, options = {}) {
|
|
2992
|
+
// verify required parameter 'updateCustomerRequestBody' is not null or undefined
|
|
2993
|
+
assertParamExists('updateCustomer', 'updateCustomerRequestBody', updateCustomerRequestBody);
|
|
2994
|
+
const localVarPath = `/api/users/me/customer`;
|
|
2995
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2996
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2997
|
+
let baseOptions;
|
|
2998
|
+
if (configuration) {
|
|
2999
|
+
baseOptions = configuration.baseOptions;
|
|
3000
|
+
}
|
|
3001
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3002
|
+
const localVarHeaderParameter = {};
|
|
3003
|
+
const localVarQueryParameter = {};
|
|
3004
|
+
// authentication bearerAuth required
|
|
3005
|
+
// http bearer authentication required
|
|
3006
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3007
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3008
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3009
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3010
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3011
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequestBody, localVarRequestOptions, configuration);
|
|
3012
|
+
return {
|
|
3013
|
+
url: toPathString(localVarUrlObj),
|
|
3014
|
+
options: localVarRequestOptions,
|
|
3015
|
+
};
|
|
3016
|
+
}),
|
|
3017
|
+
};
|
|
3018
|
+
};
|
|
3019
|
+
/**
|
|
3020
|
+
* UserApi - functional programming interface
|
|
3021
|
+
* @export
|
|
3022
|
+
*/
|
|
3023
|
+
export const UserApiFp = function (configuration) {
|
|
3024
|
+
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
|
|
3025
|
+
return {
|
|
3026
|
+
/**
|
|
3027
|
+
*
|
|
3028
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
3029
|
+
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
3030
|
+
* @param {*} [options] Override http request option.
|
|
3031
|
+
* @throws {RequiredError}
|
|
3032
|
+
*/
|
|
3033
|
+
subscribeToClub(subscribeToClubRequestBody, options) {
|
|
3034
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3035
|
+
var _a, _b, _c;
|
|
3036
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
|
|
3037
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3038
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.subscribeToClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3039
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3040
|
+
});
|
|
3041
|
+
},
|
|
3042
|
+
/**
|
|
3043
|
+
*
|
|
3044
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
3045
|
+
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
3046
|
+
* @param {*} [options] Override http request option.
|
|
3047
|
+
* @throws {RequiredError}
|
|
3048
|
+
*/
|
|
3049
|
+
updateCustomer(updateCustomerRequestBody, options) {
|
|
3050
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3051
|
+
var _a, _b, _c;
|
|
3052
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomer(updateCustomerRequestBody, options);
|
|
3053
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3054
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.updateCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3055
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3056
|
+
});
|
|
3057
|
+
},
|
|
3058
|
+
};
|
|
3059
|
+
};
|
|
3060
|
+
/**
|
|
3061
|
+
* UserApi - factory interface
|
|
3062
|
+
* @export
|
|
3063
|
+
*/
|
|
3064
|
+
export const UserApiFactory = function (configuration, basePath, axios) {
|
|
3065
|
+
const localVarFp = UserApiFp(configuration);
|
|
3066
|
+
return {
|
|
3067
|
+
/**
|
|
3068
|
+
*
|
|
3069
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
3070
|
+
* @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
3071
|
+
* @param {*} [options] Override http request option.
|
|
3072
|
+
* @throws {RequiredError}
|
|
3073
|
+
*/
|
|
3074
|
+
subscribeToClub(requestParameters, options) {
|
|
3075
|
+
return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
|
|
3076
|
+
},
|
|
3077
|
+
/**
|
|
3078
|
+
*
|
|
3079
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
3080
|
+
* @param {UserApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
3081
|
+
* @param {*} [options] Override http request option.
|
|
3082
|
+
* @throws {RequiredError}
|
|
3083
|
+
*/
|
|
3084
|
+
updateCustomer(requestParameters, options) {
|
|
3085
|
+
return localVarFp.updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(axios, basePath));
|
|
3086
|
+
},
|
|
3087
|
+
};
|
|
3088
|
+
};
|
|
3089
|
+
/**
|
|
3090
|
+
* UserApi - object-oriented interface
|
|
3091
|
+
* @export
|
|
3092
|
+
* @class UserApi
|
|
3093
|
+
* @extends {BaseAPI}
|
|
3094
|
+
*/
|
|
3095
|
+
export class UserApi extends BaseAPI {
|
|
3096
|
+
/**
|
|
3097
|
+
*
|
|
3098
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
3099
|
+
* @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
3100
|
+
* @param {*} [options] Override http request option.
|
|
3101
|
+
* @throws {RequiredError}
|
|
3102
|
+
* @memberof UserApi
|
|
3103
|
+
*/
|
|
3104
|
+
subscribeToClub(requestParameters, options) {
|
|
3105
|
+
return UserApiFp(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3106
|
+
}
|
|
3107
|
+
/**
|
|
3108
|
+
*
|
|
3109
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
3110
|
+
* @param {UserApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
3111
|
+
* @param {*} [options] Override http request option.
|
|
3112
|
+
* @throws {RequiredError}
|
|
3113
|
+
* @memberof UserApi
|
|
3114
|
+
*/
|
|
3115
|
+
updateCustomer(requestParameters, options) {
|
|
3116
|
+
return UserApiFp(this.configuration).updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3117
|
+
}
|
|
3118
|
+
}
|
|
3148
3119
|
/**
|
|
3149
3120
|
* UserAuthenticationApi - axios parameter creator
|
|
3150
3121
|
* @export
|
|
@@ -3497,6 +3468,39 @@ export const UserBookingsApiAxiosParamCreator = function (configuration) {
|
|
|
3497
3468
|
options: localVarRequestOptions,
|
|
3498
3469
|
};
|
|
3499
3470
|
}),
|
|
3471
|
+
/**
|
|
3472
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3473
|
+
* @summary Créer une réservation
|
|
3474
|
+
* @param {CreateBookingRequest} createBookingRequest
|
|
3475
|
+
* @param {*} [options] Override http request option.
|
|
3476
|
+
* @throws {RequiredError}
|
|
3477
|
+
*/
|
|
3478
|
+
createBooking: (createBookingRequest_1, ...args_1) => __awaiter(this, [createBookingRequest_1, ...args_1], void 0, function* (createBookingRequest, options = {}) {
|
|
3479
|
+
// verify required parameter 'createBookingRequest' is not null or undefined
|
|
3480
|
+
assertParamExists('createBooking', 'createBookingRequest', createBookingRequest);
|
|
3481
|
+
const localVarPath = `/api/bookings`;
|
|
3482
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3483
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3484
|
+
let baseOptions;
|
|
3485
|
+
if (configuration) {
|
|
3486
|
+
baseOptions = configuration.baseOptions;
|
|
3487
|
+
}
|
|
3488
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3489
|
+
const localVarHeaderParameter = {};
|
|
3490
|
+
const localVarQueryParameter = {};
|
|
3491
|
+
// authentication bearerAuth required
|
|
3492
|
+
// http bearer authentication required
|
|
3493
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3494
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3495
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3496
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3497
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3498
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createBookingRequest, localVarRequestOptions, configuration);
|
|
3499
|
+
return {
|
|
3500
|
+
url: toPathString(localVarUrlObj),
|
|
3501
|
+
options: localVarRequestOptions,
|
|
3502
|
+
};
|
|
3503
|
+
}),
|
|
3500
3504
|
};
|
|
3501
3505
|
};
|
|
3502
3506
|
/**
|
|
@@ -3522,6 +3526,22 @@ export const UserBookingsApiFp = function (configuration) {
|
|
|
3522
3526
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3523
3527
|
});
|
|
3524
3528
|
},
|
|
3529
|
+
/**
|
|
3530
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3531
|
+
* @summary Créer une réservation
|
|
3532
|
+
* @param {CreateBookingRequest} createBookingRequest
|
|
3533
|
+
* @param {*} [options] Override http request option.
|
|
3534
|
+
* @throws {RequiredError}
|
|
3535
|
+
*/
|
|
3536
|
+
createBooking(createBookingRequest, options) {
|
|
3537
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3538
|
+
var _a, _b, _c;
|
|
3539
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBooking(createBookingRequest, options);
|
|
3540
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3541
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserBookingsApi.createBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3542
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3543
|
+
});
|
|
3544
|
+
},
|
|
3525
3545
|
};
|
|
3526
3546
|
};
|
|
3527
3547
|
/**
|
|
@@ -3541,6 +3561,16 @@ export const UserBookingsApiFactory = function (configuration, basePath, axios)
|
|
|
3541
3561
|
blockSlot(requestParameters, options) {
|
|
3542
3562
|
return localVarFp.blockSlot(requestParameters.slotId, options).then((request) => request(axios, basePath));
|
|
3543
3563
|
},
|
|
3564
|
+
/**
|
|
3565
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3566
|
+
* @summary Créer une réservation
|
|
3567
|
+
* @param {UserBookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
3568
|
+
* @param {*} [options] Override http request option.
|
|
3569
|
+
* @throws {RequiredError}
|
|
3570
|
+
*/
|
|
3571
|
+
createBooking(requestParameters, options) {
|
|
3572
|
+
return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
|
|
3573
|
+
},
|
|
3544
3574
|
};
|
|
3545
3575
|
};
|
|
3546
3576
|
/**
|
|
@@ -3561,6 +3591,17 @@ export class UserBookingsApi extends BaseAPI {
|
|
|
3561
3591
|
blockSlot(requestParameters, options) {
|
|
3562
3592
|
return UserBookingsApiFp(this.configuration).blockSlot(requestParameters.slotId, options).then((request) => request(this.axios, this.basePath));
|
|
3563
3593
|
}
|
|
3594
|
+
/**
|
|
3595
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3596
|
+
* @summary Créer une réservation
|
|
3597
|
+
* @param {UserBookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
3598
|
+
* @param {*} [options] Override http request option.
|
|
3599
|
+
* @throws {RequiredError}
|
|
3600
|
+
* @memberof UserBookingsApi
|
|
3601
|
+
*/
|
|
3602
|
+
createBooking(requestParameters, options) {
|
|
3603
|
+
return UserBookingsApiFp(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3604
|
+
}
|
|
3564
3605
|
}
|
|
3565
3606
|
/**
|
|
3566
3607
|
* UserClubCourtsApi - axios parameter creator
|
|
@@ -3678,16 +3719,104 @@ export const UserClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
3678
3719
|
return {
|
|
3679
3720
|
/**
|
|
3680
3721
|
*
|
|
3681
|
-
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
3682
|
-
* @param {string} clubID ID du club
|
|
3722
|
+
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
3723
|
+
* @param {string} clubID ID du club
|
|
3724
|
+
* @param {*} [options] Override http request option.
|
|
3725
|
+
* @throws {RequiredError}
|
|
3726
|
+
*/
|
|
3727
|
+
getAvailableSlotsByClub: (clubID_1, ...args_1) => __awaiter(this, [clubID_1, ...args_1], void 0, function* (clubID, options = {}) {
|
|
3728
|
+
// verify required parameter 'clubID' is not null or undefined
|
|
3729
|
+
assertParamExists('getAvailableSlotsByClub', 'clubID', clubID);
|
|
3730
|
+
const localVarPath = `/api/clubs/{clubID}/availableSlots`
|
|
3731
|
+
.replace(`{${"clubID"}}`, encodeURIComponent(String(clubID)));
|
|
3732
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3733
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3734
|
+
let baseOptions;
|
|
3735
|
+
if (configuration) {
|
|
3736
|
+
baseOptions = configuration.baseOptions;
|
|
3737
|
+
}
|
|
3738
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3739
|
+
const localVarHeaderParameter = {};
|
|
3740
|
+
const localVarQueryParameter = {};
|
|
3741
|
+
// authentication bearerAuth required
|
|
3742
|
+
// http bearer authentication required
|
|
3743
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3744
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3745
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3746
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3747
|
+
return {
|
|
3748
|
+
url: toPathString(localVarUrlObj),
|
|
3749
|
+
options: localVarRequestOptions,
|
|
3750
|
+
};
|
|
3751
|
+
}),
|
|
3752
|
+
/**
|
|
3753
|
+
*
|
|
3754
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
3755
|
+
* @param {string} id ID du club
|
|
3756
|
+
* @param {string} sportId ID du sport
|
|
3757
|
+
* @param {string} [start] Date de début (format ISO)
|
|
3758
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
3759
|
+
* @param {*} [options] Override http request option.
|
|
3760
|
+
* @throws {RequiredError}
|
|
3761
|
+
*/
|
|
3762
|
+
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 = {}) {
|
|
3763
|
+
// verify required parameter 'id' is not null or undefined
|
|
3764
|
+
assertParamExists('getAvailableSlotsBySports', 'id', id);
|
|
3765
|
+
// verify required parameter 'sportId' is not null or undefined
|
|
3766
|
+
assertParamExists('getAvailableSlotsBySports', 'sportId', sportId);
|
|
3767
|
+
const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots`
|
|
3768
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3769
|
+
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
|
|
3770
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3771
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3772
|
+
let baseOptions;
|
|
3773
|
+
if (configuration) {
|
|
3774
|
+
baseOptions = configuration.baseOptions;
|
|
3775
|
+
}
|
|
3776
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3777
|
+
const localVarHeaderParameter = {};
|
|
3778
|
+
const localVarQueryParameter = {};
|
|
3779
|
+
// authentication bearerAuth required
|
|
3780
|
+
// http bearer authentication required
|
|
3781
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3782
|
+
if (start !== undefined) {
|
|
3783
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
3784
|
+
start.toISOString() :
|
|
3785
|
+
start;
|
|
3786
|
+
}
|
|
3787
|
+
if (end !== undefined) {
|
|
3788
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
3789
|
+
end.toISOString() :
|
|
3790
|
+
end;
|
|
3791
|
+
}
|
|
3792
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3793
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3794
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3795
|
+
return {
|
|
3796
|
+
url: toPathString(localVarUrlObj),
|
|
3797
|
+
options: localVarRequestOptions,
|
|
3798
|
+
};
|
|
3799
|
+
}),
|
|
3800
|
+
/**
|
|
3801
|
+
*
|
|
3802
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
3803
|
+
* @param {string} id ID du club
|
|
3804
|
+
* @param {string} sportId ID du sport
|
|
3805
|
+
* @param {string} day Date du jour (format YYYY-MM-DD)
|
|
3683
3806
|
* @param {*} [options] Override http request option.
|
|
3684
3807
|
* @throws {RequiredError}
|
|
3685
3808
|
*/
|
|
3686
|
-
|
|
3687
|
-
// verify required parameter '
|
|
3688
|
-
assertParamExists('
|
|
3689
|
-
|
|
3690
|
-
|
|
3809
|
+
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 = {}) {
|
|
3810
|
+
// verify required parameter 'id' is not null or undefined
|
|
3811
|
+
assertParamExists('getAvailableSlotsBySportsAndDay', 'id', id);
|
|
3812
|
+
// verify required parameter 'sportId' is not null or undefined
|
|
3813
|
+
assertParamExists('getAvailableSlotsBySportsAndDay', 'sportId', sportId);
|
|
3814
|
+
// verify required parameter 'day' is not null or undefined
|
|
3815
|
+
assertParamExists('getAvailableSlotsBySportsAndDay', 'day', day);
|
|
3816
|
+
const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots/{day}`
|
|
3817
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3818
|
+
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)))
|
|
3819
|
+
.replace(`{${"day"}}`, encodeURIComponent(String(day)));
|
|
3691
3820
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3692
3821
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3693
3822
|
let baseOptions;
|
|
@@ -3733,6 +3862,43 @@ export const UserClubSlotsApiFp = function (configuration) {
|
|
|
3733
3862
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3734
3863
|
});
|
|
3735
3864
|
},
|
|
3865
|
+
/**
|
|
3866
|
+
*
|
|
3867
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
3868
|
+
* @param {string} id ID du club
|
|
3869
|
+
* @param {string} sportId ID du sport
|
|
3870
|
+
* @param {string} [start] Date de début (format ISO)
|
|
3871
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
3872
|
+
* @param {*} [options] Override http request option.
|
|
3873
|
+
* @throws {RequiredError}
|
|
3874
|
+
*/
|
|
3875
|
+
getAvailableSlotsBySports(id, sportId, start, end, options) {
|
|
3876
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3877
|
+
var _a, _b, _c;
|
|
3878
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsBySports(id, sportId, start, end, options);
|
|
3879
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3880
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserClubSlotsApi.getAvailableSlotsBySports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3881
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3882
|
+
});
|
|
3883
|
+
},
|
|
3884
|
+
/**
|
|
3885
|
+
*
|
|
3886
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
3887
|
+
* @param {string} id ID du club
|
|
3888
|
+
* @param {string} sportId ID du sport
|
|
3889
|
+
* @param {string} day Date du jour (format YYYY-MM-DD)
|
|
3890
|
+
* @param {*} [options] Override http request option.
|
|
3891
|
+
* @throws {RequiredError}
|
|
3892
|
+
*/
|
|
3893
|
+
getAvailableSlotsBySportsAndDay(id, sportId, day, options) {
|
|
3894
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3895
|
+
var _a, _b, _c;
|
|
3896
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsBySportsAndDay(id, sportId, day, options);
|
|
3897
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3898
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserClubSlotsApi.getAvailableSlotsBySportsAndDay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3899
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3900
|
+
});
|
|
3901
|
+
},
|
|
3736
3902
|
};
|
|
3737
3903
|
};
|
|
3738
3904
|
/**
|
|
@@ -3752,6 +3918,26 @@ export const UserClubSlotsApiFactory = function (configuration, basePath, axios)
|
|
|
3752
3918
|
getAvailableSlotsByClub(requestParameters, options) {
|
|
3753
3919
|
return localVarFp.getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(axios, basePath));
|
|
3754
3920
|
},
|
|
3921
|
+
/**
|
|
3922
|
+
*
|
|
3923
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
3924
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
|
|
3925
|
+
* @param {*} [options] Override http request option.
|
|
3926
|
+
* @throws {RequiredError}
|
|
3927
|
+
*/
|
|
3928
|
+
getAvailableSlotsBySports(requestParameters, options) {
|
|
3929
|
+
return localVarFp.getAvailableSlotsBySports(requestParameters.id, requestParameters.sportId, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
3930
|
+
},
|
|
3931
|
+
/**
|
|
3932
|
+
*
|
|
3933
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
3934
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsAndDayRequest} requestParameters Request parameters.
|
|
3935
|
+
* @param {*} [options] Override http request option.
|
|
3936
|
+
* @throws {RequiredError}
|
|
3937
|
+
*/
|
|
3938
|
+
getAvailableSlotsBySportsAndDay(requestParameters, options) {
|
|
3939
|
+
return localVarFp.getAvailableSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(axios, basePath));
|
|
3940
|
+
},
|
|
3755
3941
|
};
|
|
3756
3942
|
};
|
|
3757
3943
|
/**
|
|
@@ -3772,6 +3958,28 @@ export class UserClubSlotsApi extends BaseAPI {
|
|
|
3772
3958
|
getAvailableSlotsByClub(requestParameters, options) {
|
|
3773
3959
|
return UserClubSlotsApiFp(this.configuration).getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(this.axios, this.basePath));
|
|
3774
3960
|
}
|
|
3961
|
+
/**
|
|
3962
|
+
*
|
|
3963
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
3964
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
|
|
3965
|
+
* @param {*} [options] Override http request option.
|
|
3966
|
+
* @throws {RequiredError}
|
|
3967
|
+
* @memberof UserClubSlotsApi
|
|
3968
|
+
*/
|
|
3969
|
+
getAvailableSlotsBySports(requestParameters, options) {
|
|
3970
|
+
return UserClubSlotsApiFp(this.configuration).getAvailableSlotsBySports(requestParameters.id, requestParameters.sportId, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
3971
|
+
}
|
|
3972
|
+
/**
|
|
3973
|
+
*
|
|
3974
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
3975
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsAndDayRequest} requestParameters Request parameters.
|
|
3976
|
+
* @param {*} [options] Override http request option.
|
|
3977
|
+
* @throws {RequiredError}
|
|
3978
|
+
* @memberof UserClubSlotsApi
|
|
3979
|
+
*/
|
|
3980
|
+
getAvailableSlotsBySportsAndDay(requestParameters, options) {
|
|
3981
|
+
return UserClubSlotsApiFp(this.configuration).getAvailableSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(this.axios, this.basePath));
|
|
3982
|
+
}
|
|
3775
3983
|
}
|
|
3776
3984
|
/**
|
|
3777
3985
|
* UserClubSportsApi - axios parameter creator
|
|
@@ -3913,63 +4121,237 @@ export const UserClubsApiAxiosParamCreator = function (configuration) {
|
|
|
3913
4121
|
};
|
|
3914
4122
|
};
|
|
3915
4123
|
/**
|
|
3916
|
-
* UserClubsApi - functional programming interface
|
|
4124
|
+
* UserClubsApi - functional programming interface
|
|
4125
|
+
* @export
|
|
4126
|
+
*/
|
|
4127
|
+
export const UserClubsApiFp = function (configuration) {
|
|
4128
|
+
const localVarAxiosParamCreator = UserClubsApiAxiosParamCreator(configuration);
|
|
4129
|
+
return {
|
|
4130
|
+
/**
|
|
4131
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
4132
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
4133
|
+
* @param {*} [options] Override http request option.
|
|
4134
|
+
* @throws {RequiredError}
|
|
4135
|
+
*/
|
|
4136
|
+
getActiveClubs(options) {
|
|
4137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4138
|
+
var _a, _b, _c;
|
|
4139
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getActiveClubs(options);
|
|
4140
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4141
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserClubsApi.getActiveClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4142
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4143
|
+
});
|
|
4144
|
+
},
|
|
4145
|
+
};
|
|
4146
|
+
};
|
|
4147
|
+
/**
|
|
4148
|
+
* UserClubsApi - factory interface
|
|
4149
|
+
* @export
|
|
4150
|
+
*/
|
|
4151
|
+
export const UserClubsApiFactory = function (configuration, basePath, axios) {
|
|
4152
|
+
const localVarFp = UserClubsApiFp(configuration);
|
|
4153
|
+
return {
|
|
4154
|
+
/**
|
|
4155
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
4156
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
4157
|
+
* @param {*} [options] Override http request option.
|
|
4158
|
+
* @throws {RequiredError}
|
|
4159
|
+
*/
|
|
4160
|
+
getActiveClubs(options) {
|
|
4161
|
+
return localVarFp.getActiveClubs(options).then((request) => request(axios, basePath));
|
|
4162
|
+
},
|
|
4163
|
+
};
|
|
4164
|
+
};
|
|
4165
|
+
/**
|
|
4166
|
+
* UserClubsApi - object-oriented interface
|
|
4167
|
+
* @export
|
|
4168
|
+
* @class UserClubsApi
|
|
4169
|
+
* @extends {BaseAPI}
|
|
4170
|
+
*/
|
|
4171
|
+
export class UserClubsApi extends BaseAPI {
|
|
4172
|
+
/**
|
|
4173
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
4174
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
4175
|
+
* @param {*} [options] Override http request option.
|
|
4176
|
+
* @throws {RequiredError}
|
|
4177
|
+
* @memberof UserClubsApi
|
|
4178
|
+
*/
|
|
4179
|
+
getActiveClubs(options) {
|
|
4180
|
+
return UserClubsApiFp(this.configuration).getActiveClubs(options).then((request) => request(this.axios, this.basePath));
|
|
4181
|
+
}
|
|
4182
|
+
}
|
|
4183
|
+
/**
|
|
4184
|
+
* UserPaymentApi - axios parameter creator
|
|
4185
|
+
* @export
|
|
4186
|
+
*/
|
|
4187
|
+
export const UserPaymentApiAxiosParamCreator = function (configuration) {
|
|
4188
|
+
return {
|
|
4189
|
+
/**
|
|
4190
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
4191
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
4192
|
+
* @param {ConfirmPaymentMethodSetupRequestBody} confirmPaymentMethodSetupRequestBody
|
|
4193
|
+
* @param {*} [options] Override http request option.
|
|
4194
|
+
* @throws {RequiredError}
|
|
4195
|
+
*/
|
|
4196
|
+
confirmPaymentMethodSetup: (confirmPaymentMethodSetupRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodSetupRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodSetupRequestBody, options = {}) {
|
|
4197
|
+
// verify required parameter 'confirmPaymentMethodSetupRequestBody' is not null or undefined
|
|
4198
|
+
assertParamExists('confirmPaymentMethodSetup', 'confirmPaymentMethodSetupRequestBody', confirmPaymentMethodSetupRequestBody);
|
|
4199
|
+
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
4200
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4201
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4202
|
+
let baseOptions;
|
|
4203
|
+
if (configuration) {
|
|
4204
|
+
baseOptions = configuration.baseOptions;
|
|
4205
|
+
}
|
|
4206
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4207
|
+
const localVarHeaderParameter = {};
|
|
4208
|
+
const localVarQueryParameter = {};
|
|
4209
|
+
// authentication bearerAuth required
|
|
4210
|
+
// http bearer authentication required
|
|
4211
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4212
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4213
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4214
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4215
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4216
|
+
localVarRequestOptions.data = serializeDataIfNeeded(confirmPaymentMethodSetupRequestBody, localVarRequestOptions, configuration);
|
|
4217
|
+
return {
|
|
4218
|
+
url: toPathString(localVarUrlObj),
|
|
4219
|
+
options: localVarRequestOptions,
|
|
4220
|
+
};
|
|
4221
|
+
}),
|
|
4222
|
+
/**
|
|
4223
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
4224
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
4225
|
+
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
4226
|
+
* @param {*} [options] Override http request option.
|
|
4227
|
+
* @throws {RequiredError}
|
|
4228
|
+
*/
|
|
4229
|
+
setupPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
4230
|
+
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
4231
|
+
assertParamExists('setupPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
4232
|
+
const localVarPath = `/api/users/setupPaymentMethod`;
|
|
4233
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4234
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4235
|
+
let baseOptions;
|
|
4236
|
+
if (configuration) {
|
|
4237
|
+
baseOptions = configuration.baseOptions;
|
|
4238
|
+
}
|
|
4239
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4240
|
+
const localVarHeaderParameter = {};
|
|
4241
|
+
const localVarQueryParameter = {};
|
|
4242
|
+
// authentication bearerAuth required
|
|
4243
|
+
// http bearer authentication required
|
|
4244
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4245
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4246
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4247
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4248
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4249
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
4250
|
+
return {
|
|
4251
|
+
url: toPathString(localVarUrlObj),
|
|
4252
|
+
options: localVarRequestOptions,
|
|
4253
|
+
};
|
|
4254
|
+
}),
|
|
4255
|
+
};
|
|
4256
|
+
};
|
|
4257
|
+
/**
|
|
4258
|
+
* UserPaymentApi - functional programming interface
|
|
3917
4259
|
* @export
|
|
3918
4260
|
*/
|
|
3919
|
-
export const
|
|
3920
|
-
const localVarAxiosParamCreator =
|
|
4261
|
+
export const UserPaymentApiFp = function (configuration) {
|
|
4262
|
+
const localVarAxiosParamCreator = UserPaymentApiAxiosParamCreator(configuration);
|
|
3921
4263
|
return {
|
|
3922
4264
|
/**
|
|
3923
|
-
*
|
|
3924
|
-
* @summary
|
|
4265
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
4266
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
4267
|
+
* @param {ConfirmPaymentMethodSetupRequestBody} confirmPaymentMethodSetupRequestBody
|
|
3925
4268
|
* @param {*} [options] Override http request option.
|
|
3926
4269
|
* @throws {RequiredError}
|
|
3927
4270
|
*/
|
|
3928
|
-
|
|
4271
|
+
confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody, options) {
|
|
3929
4272
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3930
4273
|
var _a, _b, _c;
|
|
3931
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4274
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody, options);
|
|
3932
4275
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3933
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
4276
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserPaymentApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4277
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4278
|
+
});
|
|
4279
|
+
},
|
|
4280
|
+
/**
|
|
4281
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
4282
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
4283
|
+
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
4284
|
+
* @param {*} [options] Override http request option.
|
|
4285
|
+
* @throws {RequiredError}
|
|
4286
|
+
*/
|
|
4287
|
+
setupPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
4288
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4289
|
+
var _a, _b, _c;
|
|
4290
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
4291
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4292
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserPaymentApi.setupPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3934
4293
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3935
4294
|
});
|
|
3936
4295
|
},
|
|
3937
4296
|
};
|
|
3938
4297
|
};
|
|
3939
4298
|
/**
|
|
3940
|
-
*
|
|
4299
|
+
* UserPaymentApi - factory interface
|
|
3941
4300
|
* @export
|
|
3942
4301
|
*/
|
|
3943
|
-
export const
|
|
3944
|
-
const localVarFp =
|
|
4302
|
+
export const UserPaymentApiFactory = function (configuration, basePath, axios) {
|
|
4303
|
+
const localVarFp = UserPaymentApiFp(configuration);
|
|
3945
4304
|
return {
|
|
3946
4305
|
/**
|
|
3947
|
-
*
|
|
3948
|
-
* @summary
|
|
4306
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
4307
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
4308
|
+
* @param {UserPaymentApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
3949
4309
|
* @param {*} [options] Override http request option.
|
|
3950
4310
|
* @throws {RequiredError}
|
|
3951
4311
|
*/
|
|
3952
|
-
|
|
3953
|
-
return localVarFp.
|
|
4312
|
+
confirmPaymentMethodSetup(requestParameters, options) {
|
|
4313
|
+
return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodSetupRequestBody, options).then((request) => request(axios, basePath));
|
|
4314
|
+
},
|
|
4315
|
+
/**
|
|
4316
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
4317
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
4318
|
+
* @param {UserPaymentApiSetupPaymentMethodRequest} requestParameters Request parameters.
|
|
4319
|
+
* @param {*} [options] Override http request option.
|
|
4320
|
+
* @throws {RequiredError}
|
|
4321
|
+
*/
|
|
4322
|
+
setupPaymentMethod(requestParameters, options) {
|
|
4323
|
+
return localVarFp.setupPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
3954
4324
|
},
|
|
3955
4325
|
};
|
|
3956
4326
|
};
|
|
3957
4327
|
/**
|
|
3958
|
-
*
|
|
4328
|
+
* UserPaymentApi - object-oriented interface
|
|
3959
4329
|
* @export
|
|
3960
|
-
* @class
|
|
4330
|
+
* @class UserPaymentApi
|
|
3961
4331
|
* @extends {BaseAPI}
|
|
3962
4332
|
*/
|
|
3963
|
-
export class
|
|
4333
|
+
export class UserPaymentApi extends BaseAPI {
|
|
3964
4334
|
/**
|
|
3965
|
-
*
|
|
3966
|
-
* @summary
|
|
4335
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
4336
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
4337
|
+
* @param {UserPaymentApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
3967
4338
|
* @param {*} [options] Override http request option.
|
|
3968
4339
|
* @throws {RequiredError}
|
|
3969
|
-
* @memberof
|
|
4340
|
+
* @memberof UserPaymentApi
|
|
3970
4341
|
*/
|
|
3971
|
-
|
|
3972
|
-
return
|
|
4342
|
+
confirmPaymentMethodSetup(requestParameters, options) {
|
|
4343
|
+
return UserPaymentApiFp(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodSetupRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4344
|
+
}
|
|
4345
|
+
/**
|
|
4346
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
4347
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
4348
|
+
* @param {UserPaymentApiSetupPaymentMethodRequest} requestParameters Request parameters.
|
|
4349
|
+
* @param {*} [options] Override http request option.
|
|
4350
|
+
* @throws {RequiredError}
|
|
4351
|
+
* @memberof UserPaymentApi
|
|
4352
|
+
*/
|
|
4353
|
+
setupPaymentMethod(requestParameters, options) {
|
|
4354
|
+
return UserPaymentApiFp(this.configuration).setupPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3973
4355
|
}
|
|
3974
4356
|
}
|
|
3975
4357
|
/**
|
|
@@ -4079,34 +4461,6 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
4079
4461
|
options: localVarRequestOptions,
|
|
4080
4462
|
};
|
|
4081
4463
|
}),
|
|
4082
|
-
/**
|
|
4083
|
-
*
|
|
4084
|
-
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
4085
|
-
* @param {*} [options] Override http request option.
|
|
4086
|
-
* @throws {RequiredError}
|
|
4087
|
-
*/
|
|
4088
|
-
getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4089
|
-
const localVarPath = `/api/users/me/roles`;
|
|
4090
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4091
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4092
|
-
let baseOptions;
|
|
4093
|
-
if (configuration) {
|
|
4094
|
-
baseOptions = configuration.baseOptions;
|
|
4095
|
-
}
|
|
4096
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4097
|
-
const localVarHeaderParameter = {};
|
|
4098
|
-
const localVarQueryParameter = {};
|
|
4099
|
-
// authentication bearerAuth required
|
|
4100
|
-
// http bearer authentication required
|
|
4101
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4102
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4103
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4104
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4105
|
-
return {
|
|
4106
|
-
url: toPathString(localVarUrlObj),
|
|
4107
|
-
options: localVarRequestOptions,
|
|
4108
|
-
};
|
|
4109
|
-
}),
|
|
4110
4464
|
/**
|
|
4111
4465
|
*
|
|
4112
4466
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4198,21 +4552,6 @@ export const UserProfileApiFp = function (configuration) {
|
|
|
4198
4552
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4199
4553
|
});
|
|
4200
4554
|
},
|
|
4201
|
-
/**
|
|
4202
|
-
*
|
|
4203
|
-
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
4204
|
-
* @param {*} [options] Override http request option.
|
|
4205
|
-
* @throws {RequiredError}
|
|
4206
|
-
*/
|
|
4207
|
-
getUserRolesInClubs(options) {
|
|
4208
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4209
|
-
var _a, _b, _c;
|
|
4210
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
|
|
4211
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4212
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4213
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4214
|
-
});
|
|
4215
|
-
},
|
|
4216
4555
|
/**
|
|
4217
4556
|
*
|
|
4218
4557
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4267,15 +4606,6 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
4267
4606
|
getUserInfo(options) {
|
|
4268
4607
|
return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
|
|
4269
4608
|
},
|
|
4270
|
-
/**
|
|
4271
|
-
*
|
|
4272
|
-
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
4273
|
-
* @param {*} [options] Override http request option.
|
|
4274
|
-
* @throws {RequiredError}
|
|
4275
|
-
*/
|
|
4276
|
-
getUserRolesInClubs(options) {
|
|
4277
|
-
return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
|
|
4278
|
-
},
|
|
4279
4609
|
/**
|
|
4280
4610
|
*
|
|
4281
4611
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4327,16 +4657,6 @@ export class UserProfileApi extends BaseAPI {
|
|
|
4327
4657
|
getUserInfo(options) {
|
|
4328
4658
|
return UserProfileApiFp(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
|
|
4329
4659
|
}
|
|
4330
|
-
/**
|
|
4331
|
-
*
|
|
4332
|
-
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
4333
|
-
* @param {*} [options] Override http request option.
|
|
4334
|
-
* @throws {RequiredError}
|
|
4335
|
-
* @memberof UserProfileApi
|
|
4336
|
-
*/
|
|
4337
|
-
getUserRolesInClubs(options) {
|
|
4338
|
-
return UserProfileApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
|
|
4339
|
-
}
|
|
4340
4660
|
/**
|
|
4341
4661
|
*
|
|
4342
4662
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4663,177 +4983,3 @@ export class UserSubscriptionsApi extends BaseAPI {
|
|
|
4663
4983
|
return UserSubscriptionsApiFp(this.configuration).resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
4664
4984
|
}
|
|
4665
4985
|
}
|
|
4666
|
-
/**
|
|
4667
|
-
* UsersApi - axios parameter creator
|
|
4668
|
-
* @export
|
|
4669
|
-
*/
|
|
4670
|
-
export const UsersApiAxiosParamCreator = function (configuration) {
|
|
4671
|
-
return {
|
|
4672
|
-
/**
|
|
4673
|
-
*
|
|
4674
|
-
* @summary Abonne l\'utilisateur connecté à un club
|
|
4675
|
-
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
4676
|
-
* @param {*} [options] Override http request option.
|
|
4677
|
-
* @throws {RequiredError}
|
|
4678
|
-
*/
|
|
4679
|
-
subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
|
|
4680
|
-
// verify required parameter 'subscribeToClubRequestBody' is not null or undefined
|
|
4681
|
-
assertParamExists('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
|
|
4682
|
-
const localVarPath = `/api/users/me/subscribe`;
|
|
4683
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4684
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4685
|
-
let baseOptions;
|
|
4686
|
-
if (configuration) {
|
|
4687
|
-
baseOptions = configuration.baseOptions;
|
|
4688
|
-
}
|
|
4689
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4690
|
-
const localVarHeaderParameter = {};
|
|
4691
|
-
const localVarQueryParameter = {};
|
|
4692
|
-
// authentication bearerAuth required
|
|
4693
|
-
// http bearer authentication required
|
|
4694
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4695
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4696
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4697
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4698
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4699
|
-
localVarRequestOptions.data = serializeDataIfNeeded(subscribeToClubRequestBody, localVarRequestOptions, configuration);
|
|
4700
|
-
return {
|
|
4701
|
-
url: toPathString(localVarUrlObj),
|
|
4702
|
-
options: localVarRequestOptions,
|
|
4703
|
-
};
|
|
4704
|
-
}),
|
|
4705
|
-
/**
|
|
4706
|
-
*
|
|
4707
|
-
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
4708
|
-
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
4709
|
-
* @param {*} [options] Override http request option.
|
|
4710
|
-
* @throws {RequiredError}
|
|
4711
|
-
*/
|
|
4712
|
-
updateCustomer: (updateCustomerRequestBody_1, ...args_1) => __awaiter(this, [updateCustomerRequestBody_1, ...args_1], void 0, function* (updateCustomerRequestBody, options = {}) {
|
|
4713
|
-
// verify required parameter 'updateCustomerRequestBody' is not null or undefined
|
|
4714
|
-
assertParamExists('updateCustomer', 'updateCustomerRequestBody', updateCustomerRequestBody);
|
|
4715
|
-
const localVarPath = `/api/users/me/customer`;
|
|
4716
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4717
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4718
|
-
let baseOptions;
|
|
4719
|
-
if (configuration) {
|
|
4720
|
-
baseOptions = configuration.baseOptions;
|
|
4721
|
-
}
|
|
4722
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4723
|
-
const localVarHeaderParameter = {};
|
|
4724
|
-
const localVarQueryParameter = {};
|
|
4725
|
-
// authentication bearerAuth required
|
|
4726
|
-
// http bearer authentication required
|
|
4727
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4728
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4729
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4730
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4731
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4732
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequestBody, localVarRequestOptions, configuration);
|
|
4733
|
-
return {
|
|
4734
|
-
url: toPathString(localVarUrlObj),
|
|
4735
|
-
options: localVarRequestOptions,
|
|
4736
|
-
};
|
|
4737
|
-
}),
|
|
4738
|
-
};
|
|
4739
|
-
};
|
|
4740
|
-
/**
|
|
4741
|
-
* UsersApi - functional programming interface
|
|
4742
|
-
* @export
|
|
4743
|
-
*/
|
|
4744
|
-
export const UsersApiFp = function (configuration) {
|
|
4745
|
-
const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration);
|
|
4746
|
-
return {
|
|
4747
|
-
/**
|
|
4748
|
-
*
|
|
4749
|
-
* @summary Abonne l\'utilisateur connecté à un club
|
|
4750
|
-
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
4751
|
-
* @param {*} [options] Override http request option.
|
|
4752
|
-
* @throws {RequiredError}
|
|
4753
|
-
*/
|
|
4754
|
-
subscribeToClub(subscribeToClubRequestBody, options) {
|
|
4755
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4756
|
-
var _a, _b, _c;
|
|
4757
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
|
|
4758
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4759
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.subscribeToClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4760
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4761
|
-
});
|
|
4762
|
-
},
|
|
4763
|
-
/**
|
|
4764
|
-
*
|
|
4765
|
-
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
4766
|
-
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
4767
|
-
* @param {*} [options] Override http request option.
|
|
4768
|
-
* @throws {RequiredError}
|
|
4769
|
-
*/
|
|
4770
|
-
updateCustomer(updateCustomerRequestBody, options) {
|
|
4771
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4772
|
-
var _a, _b, _c;
|
|
4773
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomer(updateCustomerRequestBody, options);
|
|
4774
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4775
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.updateCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4776
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4777
|
-
});
|
|
4778
|
-
},
|
|
4779
|
-
};
|
|
4780
|
-
};
|
|
4781
|
-
/**
|
|
4782
|
-
* UsersApi - factory interface
|
|
4783
|
-
* @export
|
|
4784
|
-
*/
|
|
4785
|
-
export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
4786
|
-
const localVarFp = UsersApiFp(configuration);
|
|
4787
|
-
return {
|
|
4788
|
-
/**
|
|
4789
|
-
*
|
|
4790
|
-
* @summary Abonne l\'utilisateur connecté à un club
|
|
4791
|
-
* @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
4792
|
-
* @param {*} [options] Override http request option.
|
|
4793
|
-
* @throws {RequiredError}
|
|
4794
|
-
*/
|
|
4795
|
-
subscribeToClub(requestParameters, options) {
|
|
4796
|
-
return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
|
|
4797
|
-
},
|
|
4798
|
-
/**
|
|
4799
|
-
*
|
|
4800
|
-
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
4801
|
-
* @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
4802
|
-
* @param {*} [options] Override http request option.
|
|
4803
|
-
* @throws {RequiredError}
|
|
4804
|
-
*/
|
|
4805
|
-
updateCustomer(requestParameters, options) {
|
|
4806
|
-
return localVarFp.updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(axios, basePath));
|
|
4807
|
-
},
|
|
4808
|
-
};
|
|
4809
|
-
};
|
|
4810
|
-
/**
|
|
4811
|
-
* UsersApi - object-oriented interface
|
|
4812
|
-
* @export
|
|
4813
|
-
* @class UsersApi
|
|
4814
|
-
* @extends {BaseAPI}
|
|
4815
|
-
*/
|
|
4816
|
-
export class UsersApi extends BaseAPI {
|
|
4817
|
-
/**
|
|
4818
|
-
*
|
|
4819
|
-
* @summary Abonne l\'utilisateur connecté à un club
|
|
4820
|
-
* @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
4821
|
-
* @param {*} [options] Override http request option.
|
|
4822
|
-
* @throws {RequiredError}
|
|
4823
|
-
* @memberof UsersApi
|
|
4824
|
-
*/
|
|
4825
|
-
subscribeToClub(requestParameters, options) {
|
|
4826
|
-
return UsersApiFp(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4827
|
-
}
|
|
4828
|
-
/**
|
|
4829
|
-
*
|
|
4830
|
-
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
4831
|
-
* @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
4832
|
-
* @param {*} [options] Override http request option.
|
|
4833
|
-
* @throws {RequiredError}
|
|
4834
|
-
* @memberof UsersApi
|
|
4835
|
-
*/
|
|
4836
|
-
updateCustomer(requestParameters, options) {
|
|
4837
|
-
return UsersApiFp(this.configuration).updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4838
|
-
}
|
|
4839
|
-
}
|