@tennac-booking/sdk 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +8 -9
- package/README.md +24 -24
- package/api.ts +1597 -1636
- package/dist/api.d.ts +901 -927
- package/dist/api.js +1248 -1287
- package/dist/esm/api.d.ts +901 -927
- package/dist/esm/api.js +1200 -1234
- package/docs/{ClubRolesApi.md → ManagerClubRolesApi.md} +11 -11
- package/docs/{ClubSubscriptionsApi.md → ManagerClubSubscriptionsApi.md} +15 -15
- package/docs/{SportsApi.md → ManagerSportsApi.md} +5 -5
- package/docs/{ClubAnalyticsApi.md → StaffClubAnalyticsApi.md} +5 -5
- package/docs/{ClubBookingsApi.md → StaffClubBookingsApi.md} +3 -3
- package/docs/{ClubsApi.md → StaffClubsApi.md} +3 -3
- package/docs/StaffProfileApi.md +54 -0
- package/docs/{UsersApi.md → UserApi.md} +5 -5
- package/docs/UserBookingsApi.md +57 -0
- package/docs/UserClubSlotsApi.md +121 -0
- package/docs/UserProfileApi.md +0 -47
- package/package.json +1 -1
- package/docs/BookingsApi.md +0 -64
- package/docs/ClubSlotsApi.md +0 -128
package/dist/esm/api.js
CHANGED
|
@@ -360,126 +360,25 @@ export class AdminClubsApi extends BaseAPI {
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
/**
|
|
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
|
|
363
|
+
* ManagerClubCourtsApi - axios parameter creator
|
|
468
364
|
* @export
|
|
469
365
|
*/
|
|
470
|
-
export const
|
|
366
|
+
export const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
471
367
|
return {
|
|
472
368
|
/**
|
|
473
369
|
*
|
|
474
|
-
* @summary
|
|
370
|
+
* @summary Créer un terrain pour un club
|
|
475
371
|
* @param {string} id ID du club
|
|
372
|
+
* @param {CreateCourtRequest} createCourtRequest
|
|
476
373
|
* @param {*} [options] Override http request option.
|
|
477
374
|
* @throws {RequiredError}
|
|
478
375
|
*/
|
|
479
|
-
|
|
376
|
+
createCourtForClub: (id_1, createCourtRequest_1, ...args_1) => __awaiter(this, [id_1, createCourtRequest_1, ...args_1], void 0, function* (id, createCourtRequest, options = {}) {
|
|
480
377
|
// verify required parameter 'id' is not null or undefined
|
|
481
|
-
assertParamExists('
|
|
482
|
-
|
|
378
|
+
assertParamExists('createCourtForClub', 'id', id);
|
|
379
|
+
// verify required parameter 'createCourtRequest' is not null or undefined
|
|
380
|
+
assertParamExists('createCourtForClub', 'createCourtRequest', createCourtRequest);
|
|
381
|
+
const localVarPath = `/api/clubs/{id}/courts`
|
|
483
382
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
484
383
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
485
384
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -487,15 +386,17 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
487
386
|
if (configuration) {
|
|
488
387
|
baseOptions = configuration.baseOptions;
|
|
489
388
|
}
|
|
490
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
389
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
491
390
|
const localVarHeaderParameter = {};
|
|
492
391
|
const localVarQueryParameter = {};
|
|
493
392
|
// authentication bearerAuth required
|
|
494
393
|
// http bearer authentication required
|
|
495
394
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
395
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
496
396
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
497
397
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
498
398
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
399
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCourtRequest, localVarRequestOptions, configuration);
|
|
499
400
|
return {
|
|
500
401
|
url: toPathString(localVarUrlObj),
|
|
501
402
|
options: localVarRequestOptions,
|
|
@@ -503,15 +404,15 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
503
404
|
}),
|
|
504
405
|
/**
|
|
505
406
|
*
|
|
506
|
-
* @summary
|
|
407
|
+
* @summary Récupérer tous les terrains pour un club
|
|
507
408
|
* @param {string} id ID du club
|
|
508
409
|
* @param {*} [options] Override http request option.
|
|
509
410
|
* @throws {RequiredError}
|
|
510
411
|
*/
|
|
511
|
-
|
|
412
|
+
getCourtsByClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
512
413
|
// verify required parameter 'id' is not null or undefined
|
|
513
|
-
assertParamExists('
|
|
514
|
-
const localVarPath = `/api/clubs/{id}/
|
|
414
|
+
assertParamExists('getCourtsByClub', 'id', id);
|
|
415
|
+
const localVarPath = `/api/clubs/{id}/courts`
|
|
515
416
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
516
417
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
517
418
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -536,213 +437,111 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
536
437
|
};
|
|
537
438
|
};
|
|
538
439
|
/**
|
|
539
|
-
*
|
|
440
|
+
* ManagerClubCourtsApi - functional programming interface
|
|
540
441
|
* @export
|
|
541
442
|
*/
|
|
542
|
-
export const
|
|
543
|
-
const localVarAxiosParamCreator =
|
|
443
|
+
export const ManagerClubCourtsApiFp = function (configuration) {
|
|
444
|
+
const localVarAxiosParamCreator = ManagerClubCourtsApiAxiosParamCreator(configuration);
|
|
544
445
|
return {
|
|
545
446
|
/**
|
|
546
447
|
*
|
|
547
|
-
* @summary
|
|
448
|
+
* @summary Créer un terrain pour un club
|
|
548
449
|
* @param {string} id ID du club
|
|
450
|
+
* @param {CreateCourtRequest} createCourtRequest
|
|
549
451
|
* @param {*} [options] Override http request option.
|
|
550
452
|
* @throws {RequiredError}
|
|
551
453
|
*/
|
|
552
|
-
|
|
454
|
+
createCourtForClub(id, createCourtRequest, options) {
|
|
553
455
|
return __awaiter(this, void 0, void 0, function* () {
|
|
554
456
|
var _a, _b, _c;
|
|
555
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
457
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCourtForClub(id, createCourtRequest, options);
|
|
556
458
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
557
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
459
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubCourtsApi.createCourtForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
558
460
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
559
461
|
});
|
|
560
462
|
},
|
|
561
463
|
/**
|
|
562
464
|
*
|
|
563
|
-
* @summary
|
|
465
|
+
* @summary Récupérer tous les terrains pour un club
|
|
564
466
|
* @param {string} id ID du club
|
|
565
467
|
* @param {*} [options] Override http request option.
|
|
566
468
|
* @throws {RequiredError}
|
|
567
469
|
*/
|
|
568
|
-
|
|
470
|
+
getCourtsByClub(id, options) {
|
|
569
471
|
return __awaiter(this, void 0, void 0, function* () {
|
|
570
472
|
var _a, _b, _c;
|
|
571
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
473
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClub(id, options);
|
|
572
474
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
573
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
475
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubCourtsApi.getCourtsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
574
476
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
575
477
|
});
|
|
576
478
|
},
|
|
577
479
|
};
|
|
578
480
|
};
|
|
579
481
|
/**
|
|
580
|
-
*
|
|
482
|
+
* ManagerClubCourtsApi - factory interface
|
|
581
483
|
* @export
|
|
582
484
|
*/
|
|
583
|
-
export const
|
|
584
|
-
const localVarFp =
|
|
485
|
+
export const ManagerClubCourtsApiFactory = function (configuration, basePath, axios) {
|
|
486
|
+
const localVarFp = ManagerClubCourtsApiFp(configuration);
|
|
585
487
|
return {
|
|
586
488
|
/**
|
|
587
489
|
*
|
|
588
|
-
* @summary
|
|
589
|
-
* @param {
|
|
490
|
+
* @summary Créer un terrain pour un club
|
|
491
|
+
* @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
|
|
590
492
|
* @param {*} [options] Override http request option.
|
|
591
493
|
* @throws {RequiredError}
|
|
592
494
|
*/
|
|
593
|
-
|
|
594
|
-
return localVarFp.
|
|
495
|
+
createCourtForClub(requestParameters, options) {
|
|
496
|
+
return localVarFp.createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(axios, basePath));
|
|
595
497
|
},
|
|
596
498
|
/**
|
|
597
499
|
*
|
|
598
|
-
* @summary
|
|
599
|
-
* @param {
|
|
500
|
+
* @summary Récupérer tous les terrains pour un club
|
|
501
|
+
* @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
|
|
600
502
|
* @param {*} [options] Override http request option.
|
|
601
503
|
* @throws {RequiredError}
|
|
602
504
|
*/
|
|
603
|
-
|
|
604
|
-
return localVarFp.
|
|
505
|
+
getCourtsByClub(requestParameters, options) {
|
|
506
|
+
return localVarFp.getCourtsByClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
605
507
|
},
|
|
606
508
|
};
|
|
607
509
|
};
|
|
608
510
|
/**
|
|
609
|
-
*
|
|
511
|
+
* ManagerClubCourtsApi - object-oriented interface
|
|
610
512
|
* @export
|
|
611
|
-
* @class
|
|
513
|
+
* @class ManagerClubCourtsApi
|
|
612
514
|
* @extends {BaseAPI}
|
|
613
515
|
*/
|
|
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
|
-
}
|
|
516
|
+
export class ManagerClubCourtsApi extends BaseAPI {
|
|
626
517
|
/**
|
|
627
518
|
*
|
|
628
|
-
* @summary
|
|
629
|
-
* @param {
|
|
519
|
+
* @summary Créer un terrain pour un club
|
|
520
|
+
* @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
|
|
630
521
|
* @param {*} [options] Override http request option.
|
|
631
522
|
* @throws {RequiredError}
|
|
632
|
-
* @memberof
|
|
523
|
+
* @memberof ManagerClubCourtsApi
|
|
633
524
|
*/
|
|
634
|
-
|
|
635
|
-
return
|
|
525
|
+
createCourtForClub(requestParameters, options) {
|
|
526
|
+
return ManagerClubCourtsApiFp(this.configuration).createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(this.axios, this.basePath));
|
|
636
527
|
}
|
|
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
528
|
/**
|
|
730
529
|
*
|
|
731
|
-
* @summary
|
|
732
|
-
* @param {
|
|
530
|
+
* @summary Récupérer tous les terrains pour un club
|
|
531
|
+
* @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
|
|
733
532
|
* @param {*} [options] Override http request option.
|
|
734
533
|
* @throws {RequiredError}
|
|
735
|
-
* @memberof
|
|
534
|
+
* @memberof ManagerClubCourtsApi
|
|
736
535
|
*/
|
|
737
|
-
|
|
738
|
-
return
|
|
536
|
+
getCourtsByClub(requestParameters, options) {
|
|
537
|
+
return ManagerClubCourtsApiFp(this.configuration).getCourtsByClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
739
538
|
}
|
|
740
539
|
}
|
|
741
540
|
/**
|
|
742
|
-
*
|
|
541
|
+
* ManagerClubRolesApi - axios parameter creator
|
|
743
542
|
* @export
|
|
744
543
|
*/
|
|
745
|
-
export const
|
|
544
|
+
export const ManagerClubRolesApiAxiosParamCreator = function (configuration) {
|
|
746
545
|
return {
|
|
747
546
|
/**
|
|
748
547
|
*
|
|
@@ -909,11 +708,11 @@ export const ClubRolesApiAxiosParamCreator = function (configuration) {
|
|
|
909
708
|
};
|
|
910
709
|
};
|
|
911
710
|
/**
|
|
912
|
-
*
|
|
711
|
+
* ManagerClubRolesApi - functional programming interface
|
|
913
712
|
* @export
|
|
914
713
|
*/
|
|
915
|
-
export const
|
|
916
|
-
const localVarAxiosParamCreator =
|
|
714
|
+
export const ManagerClubRolesApiFp = function (configuration) {
|
|
715
|
+
const localVarAxiosParamCreator = ManagerClubRolesApiAxiosParamCreator(configuration);
|
|
917
716
|
return {
|
|
918
717
|
/**
|
|
919
718
|
*
|
|
@@ -927,7 +726,7 @@ export const ClubRolesApiFp = function (configuration) {
|
|
|
927
726
|
var _a, _b, _c;
|
|
928
727
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubRole(createClubRoleRequestBody, options);
|
|
929
728
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
930
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
729
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubRolesApi.createClubRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
931
730
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
932
731
|
});
|
|
933
732
|
},
|
|
@@ -943,7 +742,7 @@ export const ClubRolesApiFp = function (configuration) {
|
|
|
943
742
|
var _a, _b, _c;
|
|
944
743
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubRole(id, options);
|
|
945
744
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
946
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
745
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubRolesApi.deleteClubRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
947
746
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
948
747
|
});
|
|
949
748
|
},
|
|
@@ -958,7 +757,7 @@ export const ClubRolesApiFp = function (configuration) {
|
|
|
958
757
|
var _a, _b, _c;
|
|
959
758
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubRoles(options);
|
|
960
759
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
961
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
760
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubRolesApi.getAllClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
962
761
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
963
762
|
});
|
|
964
763
|
},
|
|
@@ -974,7 +773,7 @@ export const ClubRolesApiFp = function (configuration) {
|
|
|
974
773
|
var _a, _b, _c;
|
|
975
774
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoleById(id, options);
|
|
976
775
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
977
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
776
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubRolesApi.getClubRoleById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
978
777
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
979
778
|
});
|
|
980
779
|
},
|
|
@@ -991,23 +790,23 @@ export const ClubRolesApiFp = function (configuration) {
|
|
|
991
790
|
var _a, _b, _c;
|
|
992
791
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubRole(id, updateClubRoleRequestBody, options);
|
|
993
792
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
994
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
793
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubRolesApi.updateClubRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
995
794
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
996
795
|
});
|
|
997
796
|
},
|
|
998
797
|
};
|
|
999
798
|
};
|
|
1000
799
|
/**
|
|
1001
|
-
*
|
|
800
|
+
* ManagerClubRolesApi - factory interface
|
|
1002
801
|
* @export
|
|
1003
802
|
*/
|
|
1004
|
-
export const
|
|
1005
|
-
const localVarFp =
|
|
803
|
+
export const ManagerClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
804
|
+
const localVarFp = ManagerClubRolesApiFp(configuration);
|
|
1006
805
|
return {
|
|
1007
806
|
/**
|
|
1008
807
|
*
|
|
1009
808
|
* @summary Créer un nouveau rôle de club
|
|
1010
|
-
* @param {
|
|
809
|
+
* @param {ManagerClubRolesApiCreateClubRoleRequest} requestParameters Request parameters.
|
|
1011
810
|
* @param {*} [options] Override http request option.
|
|
1012
811
|
* @throws {RequiredError}
|
|
1013
812
|
*/
|
|
@@ -1017,7 +816,7 @@ export const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1017
816
|
/**
|
|
1018
817
|
*
|
|
1019
818
|
* @summary Supprimer un rôle de club
|
|
1020
|
-
* @param {
|
|
819
|
+
* @param {ManagerClubRolesApiDeleteClubRoleRequest} requestParameters Request parameters.
|
|
1021
820
|
* @param {*} [options] Override http request option.
|
|
1022
821
|
* @throws {RequiredError}
|
|
1023
822
|
*/
|
|
@@ -1036,7 +835,7 @@ export const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1036
835
|
/**
|
|
1037
836
|
*
|
|
1038
837
|
* @summary Récupérer un rôle de club par son ID
|
|
1039
|
-
* @param {
|
|
838
|
+
* @param {ManagerClubRolesApiGetClubRoleByIdRequest} requestParameters Request parameters.
|
|
1040
839
|
* @param {*} [options] Override http request option.
|
|
1041
840
|
* @throws {RequiredError}
|
|
1042
841
|
*/
|
|
@@ -1046,7 +845,7 @@ export const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1046
845
|
/**
|
|
1047
846
|
*
|
|
1048
847
|
* @summary Mettre à jour un rôle de club
|
|
1049
|
-
* @param {
|
|
848
|
+
* @param {ManagerClubRolesApiUpdateClubRoleRequest} requestParameters Request parameters.
|
|
1050
849
|
* @param {*} [options] Override http request option.
|
|
1051
850
|
* @throws {RequiredError}
|
|
1052
851
|
*/
|
|
@@ -1056,98 +855,98 @@ export const ClubRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
1056
855
|
};
|
|
1057
856
|
};
|
|
1058
857
|
/**
|
|
1059
|
-
*
|
|
858
|
+
* ManagerClubRolesApi - object-oriented interface
|
|
1060
859
|
* @export
|
|
1061
|
-
* @class
|
|
860
|
+
* @class ManagerClubRolesApi
|
|
1062
861
|
* @extends {BaseAPI}
|
|
1063
862
|
*/
|
|
1064
|
-
export class
|
|
863
|
+
export class ManagerClubRolesApi extends BaseAPI {
|
|
1065
864
|
/**
|
|
1066
865
|
*
|
|
1067
866
|
* @summary Créer un nouveau rôle de club
|
|
1068
|
-
* @param {
|
|
867
|
+
* @param {ManagerClubRolesApiCreateClubRoleRequest} requestParameters Request parameters.
|
|
1069
868
|
* @param {*} [options] Override http request option.
|
|
1070
869
|
* @throws {RequiredError}
|
|
1071
|
-
* @memberof
|
|
870
|
+
* @memberof ManagerClubRolesApi
|
|
1072
871
|
*/
|
|
1073
872
|
createClubRole(requestParameters, options) {
|
|
1074
|
-
return
|
|
873
|
+
return ManagerClubRolesApiFp(this.configuration).createClubRole(requestParameters.createClubRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1075
874
|
}
|
|
1076
875
|
/**
|
|
1077
876
|
*
|
|
1078
877
|
* @summary Supprimer un rôle de club
|
|
1079
|
-
* @param {
|
|
878
|
+
* @param {ManagerClubRolesApiDeleteClubRoleRequest} requestParameters Request parameters.
|
|
1080
879
|
* @param {*} [options] Override http request option.
|
|
1081
880
|
* @throws {RequiredError}
|
|
1082
|
-
* @memberof
|
|
881
|
+
* @memberof ManagerClubRolesApi
|
|
1083
882
|
*/
|
|
1084
883
|
deleteClubRole(requestParameters, options) {
|
|
1085
|
-
return
|
|
884
|
+
return ManagerClubRolesApiFp(this.configuration).deleteClubRole(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1086
885
|
}
|
|
1087
886
|
/**
|
|
1088
887
|
*
|
|
1089
888
|
* @summary Récupérer tous les rôles de clubs
|
|
1090
889
|
* @param {*} [options] Override http request option.
|
|
1091
890
|
* @throws {RequiredError}
|
|
1092
|
-
* @memberof
|
|
891
|
+
* @memberof ManagerClubRolesApi
|
|
1093
892
|
*/
|
|
1094
893
|
getAllClubRoles(options) {
|
|
1095
|
-
return
|
|
894
|
+
return ManagerClubRolesApiFp(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
1096
895
|
}
|
|
1097
896
|
/**
|
|
1098
897
|
*
|
|
1099
898
|
* @summary Récupérer un rôle de club par son ID
|
|
1100
|
-
* @param {
|
|
899
|
+
* @param {ManagerClubRolesApiGetClubRoleByIdRequest} requestParameters Request parameters.
|
|
1101
900
|
* @param {*} [options] Override http request option.
|
|
1102
901
|
* @throws {RequiredError}
|
|
1103
|
-
* @memberof
|
|
902
|
+
* @memberof ManagerClubRolesApi
|
|
1104
903
|
*/
|
|
1105
904
|
getClubRoleById(requestParameters, options) {
|
|
1106
|
-
return
|
|
905
|
+
return ManagerClubRolesApiFp(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1107
906
|
}
|
|
1108
907
|
/**
|
|
1109
908
|
*
|
|
1110
909
|
* @summary Mettre à jour un rôle de club
|
|
1111
|
-
* @param {
|
|
910
|
+
* @param {ManagerClubRolesApiUpdateClubRoleRequest} requestParameters Request parameters.
|
|
1112
911
|
* @param {*} [options] Override http request option.
|
|
1113
912
|
* @throws {RequiredError}
|
|
1114
|
-
* @memberof
|
|
913
|
+
* @memberof ManagerClubRolesApi
|
|
1115
914
|
*/
|
|
1116
915
|
updateClubRole(requestParameters, options) {
|
|
1117
|
-
return
|
|
916
|
+
return ManagerClubRolesApiFp(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1118
917
|
}
|
|
1119
918
|
}
|
|
1120
919
|
/**
|
|
1121
|
-
*
|
|
920
|
+
* ManagerClubSlotsApi - axios parameter creator
|
|
1122
921
|
* @export
|
|
1123
922
|
*/
|
|
1124
|
-
export const
|
|
923
|
+
export const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
1125
924
|
return {
|
|
1126
925
|
/**
|
|
1127
926
|
*
|
|
1128
|
-
* @summary
|
|
927
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1129
928
|
* @param {string} id ID du club
|
|
1130
|
-
* @param {string}
|
|
1131
|
-
* @param {string}
|
|
1132
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
929
|
+
* @param {string} start Date de début (format ISO)
|
|
930
|
+
* @param {string} end Date de fin (format ISO)
|
|
1133
931
|
* @param {*} [options] Override http request option.
|
|
1134
932
|
* @throws {RequiredError}
|
|
1135
933
|
*/
|
|
1136
|
-
|
|
934
|
+
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
935
|
// verify required parameter 'id' is not null or undefined
|
|
1138
|
-
assertParamExists('
|
|
1139
|
-
// verify required parameter '
|
|
1140
|
-
assertParamExists('
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
936
|
+
assertParamExists('deleteSlotsByClubInRange', 'id', id);
|
|
937
|
+
// verify required parameter 'start' is not null or undefined
|
|
938
|
+
assertParamExists('deleteSlotsByClubInRange', 'start', start);
|
|
939
|
+
// verify required parameter 'end' is not null or undefined
|
|
940
|
+
assertParamExists('deleteSlotsByClubInRange', 'end', end);
|
|
941
|
+
const localVarPath = `/api/clubs/{id}/slots`
|
|
942
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1144
943
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1145
944
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1146
945
|
let baseOptions;
|
|
1147
946
|
if (configuration) {
|
|
1148
947
|
baseOptions = configuration.baseOptions;
|
|
1149
948
|
}
|
|
1150
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
949
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1151
950
|
const localVarHeaderParameter = {};
|
|
1152
951
|
const localVarQueryParameter = {};
|
|
1153
952
|
// authentication bearerAuth required
|
|
@@ -1173,24 +972,18 @@ export const ClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
1173
972
|
}),
|
|
1174
973
|
/**
|
|
1175
974
|
*
|
|
1176
|
-
* @summary
|
|
975
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1177
976
|
* @param {string} id ID du club
|
|
1178
|
-
* @param {string}
|
|
1179
|
-
* @param {string}
|
|
977
|
+
* @param {string} [start] Date de début (format ISO)
|
|
978
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
1180
979
|
* @param {*} [options] Override http request option.
|
|
1181
980
|
* @throws {RequiredError}
|
|
1182
981
|
*/
|
|
1183
|
-
|
|
982
|
+
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
983
|
// 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)));
|
|
984
|
+
assertParamExists('getSlotsByClub', 'id', id);
|
|
985
|
+
const localVarPath = `/api/clubs/{id}/slots`
|
|
986
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1194
987
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1195
988
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1196
989
|
let baseOptions;
|
|
@@ -1203,6 +996,16 @@ export const ClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
1203
996
|
// authentication bearerAuth required
|
|
1204
997
|
// http bearer authentication required
|
|
1205
998
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
999
|
+
if (start !== undefined) {
|
|
1000
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
1001
|
+
start.toISOString() :
|
|
1002
|
+
start;
|
|
1003
|
+
}
|
|
1004
|
+
if (end !== undefined) {
|
|
1005
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
1006
|
+
end.toISOString() :
|
|
1007
|
+
end;
|
|
1008
|
+
}
|
|
1206
1009
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1207
1010
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1208
1011
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1214,115 +1017,114 @@ export const ClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
1214
1017
|
};
|
|
1215
1018
|
};
|
|
1216
1019
|
/**
|
|
1217
|
-
*
|
|
1020
|
+
* ManagerClubSlotsApi - functional programming interface
|
|
1218
1021
|
* @export
|
|
1219
1022
|
*/
|
|
1220
|
-
export const
|
|
1221
|
-
const localVarAxiosParamCreator =
|
|
1023
|
+
export const ManagerClubSlotsApiFp = function (configuration) {
|
|
1024
|
+
const localVarAxiosParamCreator = ManagerClubSlotsApiAxiosParamCreator(configuration);
|
|
1222
1025
|
return {
|
|
1223
1026
|
/**
|
|
1224
1027
|
*
|
|
1225
|
-
* @summary
|
|
1028
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1226
1029
|
* @param {string} id ID du club
|
|
1227
|
-
* @param {string}
|
|
1228
|
-
* @param {string}
|
|
1229
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
1030
|
+
* @param {string} start Date de début (format ISO)
|
|
1031
|
+
* @param {string} end Date de fin (format ISO)
|
|
1230
1032
|
* @param {*} [options] Override http request option.
|
|
1231
1033
|
* @throws {RequiredError}
|
|
1232
1034
|
*/
|
|
1233
|
-
|
|
1035
|
+
deleteSlotsByClubInRange(id, start, end, options) {
|
|
1234
1036
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1235
1037
|
var _a, _b, _c;
|
|
1236
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1038
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRange(id, start, end, options);
|
|
1237
1039
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1238
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1040
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSlotsApi.deleteSlotsByClubInRange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1239
1041
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1240
1042
|
});
|
|
1241
1043
|
},
|
|
1242
1044
|
/**
|
|
1243
1045
|
*
|
|
1244
|
-
* @summary
|
|
1046
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1245
1047
|
* @param {string} id ID du club
|
|
1246
|
-
* @param {string}
|
|
1247
|
-
* @param {string}
|
|
1048
|
+
* @param {string} [start] Date de début (format ISO)
|
|
1049
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
1248
1050
|
* @param {*} [options] Override http request option.
|
|
1249
1051
|
* @throws {RequiredError}
|
|
1250
1052
|
*/
|
|
1251
|
-
|
|
1053
|
+
getSlotsByClub(id, start, end, options) {
|
|
1252
1054
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1253
1055
|
var _a, _b, _c;
|
|
1254
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1056
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClub(id, start, end, options);
|
|
1255
1057
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1256
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1058
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSlotsApi.getSlotsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1257
1059
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1258
1060
|
});
|
|
1259
1061
|
},
|
|
1260
1062
|
};
|
|
1261
1063
|
};
|
|
1262
1064
|
/**
|
|
1263
|
-
*
|
|
1065
|
+
* ManagerClubSlotsApi - factory interface
|
|
1264
1066
|
* @export
|
|
1265
1067
|
*/
|
|
1266
|
-
export const
|
|
1267
|
-
const localVarFp =
|
|
1068
|
+
export const ManagerClubSlotsApiFactory = function (configuration, basePath, axios) {
|
|
1069
|
+
const localVarFp = ManagerClubSlotsApiFp(configuration);
|
|
1268
1070
|
return {
|
|
1269
1071
|
/**
|
|
1270
1072
|
*
|
|
1271
|
-
* @summary
|
|
1272
|
-
* @param {
|
|
1073
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1074
|
+
* @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
|
|
1273
1075
|
* @param {*} [options] Override http request option.
|
|
1274
1076
|
* @throws {RequiredError}
|
|
1275
1077
|
*/
|
|
1276
|
-
|
|
1277
|
-
return localVarFp.
|
|
1078
|
+
deleteSlotsByClubInRange(requestParameters, options) {
|
|
1079
|
+
return localVarFp.deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
1278
1080
|
},
|
|
1279
1081
|
/**
|
|
1280
1082
|
*
|
|
1281
|
-
* @summary
|
|
1282
|
-
* @param {
|
|
1083
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1084
|
+
* @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
|
|
1283
1085
|
* @param {*} [options] Override http request option.
|
|
1284
1086
|
* @throws {RequiredError}
|
|
1285
1087
|
*/
|
|
1286
|
-
|
|
1287
|
-
return localVarFp.
|
|
1088
|
+
getSlotsByClub(requestParameters, options) {
|
|
1089
|
+
return localVarFp.getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
1288
1090
|
},
|
|
1289
1091
|
};
|
|
1290
1092
|
};
|
|
1291
1093
|
/**
|
|
1292
|
-
*
|
|
1094
|
+
* ManagerClubSlotsApi - object-oriented interface
|
|
1293
1095
|
* @export
|
|
1294
|
-
* @class
|
|
1096
|
+
* @class ManagerClubSlotsApi
|
|
1295
1097
|
* @extends {BaseAPI}
|
|
1296
1098
|
*/
|
|
1297
|
-
export class
|
|
1099
|
+
export class ManagerClubSlotsApi extends BaseAPI {
|
|
1298
1100
|
/**
|
|
1299
1101
|
*
|
|
1300
|
-
* @summary
|
|
1301
|
-
* @param {
|
|
1102
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates
|
|
1103
|
+
* @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
|
|
1302
1104
|
* @param {*} [options] Override http request option.
|
|
1303
1105
|
* @throws {RequiredError}
|
|
1304
|
-
* @memberof
|
|
1106
|
+
* @memberof ManagerClubSlotsApi
|
|
1305
1107
|
*/
|
|
1306
|
-
|
|
1307
|
-
return
|
|
1108
|
+
deleteSlotsByClubInRange(requestParameters, options) {
|
|
1109
|
+
return ManagerClubSlotsApiFp(this.configuration).deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
1308
1110
|
}
|
|
1309
1111
|
/**
|
|
1310
1112
|
*
|
|
1311
|
-
* @summary
|
|
1312
|
-
* @param {
|
|
1113
|
+
* @summary Récupérer tous les créneaux pour un club
|
|
1114
|
+
* @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
|
|
1313
1115
|
* @param {*} [options] Override http request option.
|
|
1314
1116
|
* @throws {RequiredError}
|
|
1315
|
-
* @memberof
|
|
1117
|
+
* @memberof ManagerClubSlotsApi
|
|
1316
1118
|
*/
|
|
1317
|
-
|
|
1318
|
-
return
|
|
1119
|
+
getSlotsByClub(requestParameters, options) {
|
|
1120
|
+
return ManagerClubSlotsApiFp(this.configuration).getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
1319
1121
|
}
|
|
1320
1122
|
}
|
|
1321
1123
|
/**
|
|
1322
|
-
*
|
|
1124
|
+
* ManagerClubSubscriptionsApi - axios parameter creator
|
|
1323
1125
|
* @export
|
|
1324
1126
|
*/
|
|
1325
|
-
export const
|
|
1127
|
+
export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
1326
1128
|
return {
|
|
1327
1129
|
/**
|
|
1328
1130
|
*
|
|
@@ -1590,11 +1392,11 @@ export const ClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
1590
1392
|
};
|
|
1591
1393
|
};
|
|
1592
1394
|
/**
|
|
1593
|
-
*
|
|
1395
|
+
* ManagerClubSubscriptionsApi - functional programming interface
|
|
1594
1396
|
* @export
|
|
1595
1397
|
*/
|
|
1596
|
-
export const
|
|
1597
|
-
const localVarAxiosParamCreator =
|
|
1398
|
+
export const ManagerClubSubscriptionsApiFp = function (configuration) {
|
|
1399
|
+
const localVarAxiosParamCreator = ManagerClubSubscriptionsApiAxiosParamCreator(configuration);
|
|
1598
1400
|
return {
|
|
1599
1401
|
/**
|
|
1600
1402
|
*
|
|
@@ -1609,7 +1411,7 @@ export const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1609
1411
|
var _a, _b, _c;
|
|
1610
1412
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlan(id, priceId, options);
|
|
1611
1413
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1612
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1414
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.archivePriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1613
1415
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1614
1416
|
});
|
|
1615
1417
|
},
|
|
@@ -1627,7 +1429,7 @@ export const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1627
1429
|
var _a, _b, _c;
|
|
1628
1430
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlan(id, productId, createPriceRequest, options);
|
|
1629
1431
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1630
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1432
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.createPriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1631
1433
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1632
1434
|
});
|
|
1633
1435
|
},
|
|
@@ -1644,7 +1446,7 @@ export const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1644
1446
|
var _a, _b, _c;
|
|
1645
1447
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(id, createSubscriptionPlanRequest, options);
|
|
1646
1448
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1647
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1449
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.createSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1648
1450
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1649
1451
|
});
|
|
1650
1452
|
},
|
|
@@ -1661,7 +1463,7 @@ export const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1661
1463
|
var _a, _b, _c;
|
|
1662
1464
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClub(id, productId, options);
|
|
1663
1465
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1664
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1466
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.deleteSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1665
1467
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1666
1468
|
});
|
|
1667
1469
|
},
|
|
@@ -1678,7 +1480,7 @@ export const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1678
1480
|
var _a, _b, _c;
|
|
1679
1481
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClub(id, productId, options);
|
|
1680
1482
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1681
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1483
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.restoreSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1682
1484
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1683
1485
|
});
|
|
1684
1486
|
},
|
|
@@ -1695,7 +1497,7 @@ export const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1695
1497
|
var _a, _b, _c;
|
|
1696
1498
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClub(id, priceId, options);
|
|
1697
1499
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1698
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1500
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.restoreSubscriptionPriceForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1699
1501
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1700
1502
|
});
|
|
1701
1503
|
},
|
|
@@ -1713,23 +1515,23 @@ export const ClubSubscriptionsApiFp = function (configuration) {
|
|
|
1713
1515
|
var _a, _b, _c;
|
|
1714
1516
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClub(id, priceId, updateSubscriptionPlanRequest, options);
|
|
1715
1517
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1716
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1518
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.updateSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1717
1519
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1718
1520
|
});
|
|
1719
1521
|
},
|
|
1720
1522
|
};
|
|
1721
1523
|
};
|
|
1722
1524
|
/**
|
|
1723
|
-
*
|
|
1525
|
+
* ManagerClubSubscriptionsApi - factory interface
|
|
1724
1526
|
* @export
|
|
1725
1527
|
*/
|
|
1726
|
-
export const
|
|
1727
|
-
const localVarFp =
|
|
1528
|
+
export const ManagerClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
1529
|
+
const localVarFp = ManagerClubSubscriptionsApiFp(configuration);
|
|
1728
1530
|
return {
|
|
1729
1531
|
/**
|
|
1730
1532
|
*
|
|
1731
1533
|
* @summary Archiver un prix
|
|
1732
|
-
* @param {
|
|
1534
|
+
* @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1733
1535
|
* @param {*} [options] Override http request option.
|
|
1734
1536
|
* @throws {RequiredError}
|
|
1735
1537
|
*/
|
|
@@ -1739,7 +1541,7 @@ export const ClubSubscriptionsApiFactory = function (configuration, basePath, ax
|
|
|
1739
1541
|
/**
|
|
1740
1542
|
*
|
|
1741
1543
|
* @summary Créer un nouveau prix pour un plan
|
|
1742
|
-
* @param {
|
|
1544
|
+
* @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1743
1545
|
* @param {*} [options] Override http request option.
|
|
1744
1546
|
* @throws {RequiredError}
|
|
1745
1547
|
*/
|
|
@@ -1749,7 +1551,7 @@ export const ClubSubscriptionsApiFactory = function (configuration, basePath, ax
|
|
|
1749
1551
|
/**
|
|
1750
1552
|
*
|
|
1751
1553
|
* @summary Créer un plan d\'abonnement pour un club
|
|
1752
|
-
* @param {
|
|
1554
|
+
* @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1753
1555
|
* @param {*} [options] Override http request option.
|
|
1754
1556
|
* @throws {RequiredError}
|
|
1755
1557
|
*/
|
|
@@ -1759,7 +1561,7 @@ export const ClubSubscriptionsApiFactory = function (configuration, basePath, ax
|
|
|
1759
1561
|
/**
|
|
1760
1562
|
*
|
|
1761
1563
|
* @summary Supprimer un plan d\'abonnement pour un club
|
|
1762
|
-
* @param {
|
|
1564
|
+
* @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1763
1565
|
* @param {*} [options] Override http request option.
|
|
1764
1566
|
* @throws {RequiredError}
|
|
1765
1567
|
*/
|
|
@@ -1769,7 +1571,7 @@ export const ClubSubscriptionsApiFactory = function (configuration, basePath, ax
|
|
|
1769
1571
|
/**
|
|
1770
1572
|
*
|
|
1771
1573
|
* @summary Réactiver un plan d\'abonnement
|
|
1772
|
-
* @param {
|
|
1574
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1773
1575
|
* @param {*} [options] Override http request option.
|
|
1774
1576
|
* @throws {RequiredError}
|
|
1775
1577
|
*/
|
|
@@ -1779,7 +1581,7 @@ export const ClubSubscriptionsApiFactory = function (configuration, basePath, ax
|
|
|
1779
1581
|
/**
|
|
1780
1582
|
*
|
|
1781
1583
|
* @summary Réactiver un prix
|
|
1782
|
-
* @param {
|
|
1584
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
|
|
1783
1585
|
* @param {*} [options] Override http request option.
|
|
1784
1586
|
* @throws {RequiredError}
|
|
1785
1587
|
*/
|
|
@@ -1789,7 +1591,7 @@ export const ClubSubscriptionsApiFactory = function (configuration, basePath, ax
|
|
|
1789
1591
|
/**
|
|
1790
1592
|
*
|
|
1791
1593
|
* @summary Mettre à jour un plan d\'abonnement
|
|
1792
|
-
* @param {
|
|
1594
|
+
* @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1793
1595
|
* @param {*} [options] Override http request option.
|
|
1794
1596
|
* @throws {RequiredError}
|
|
1795
1597
|
*/
|
|
@@ -1799,107 +1601,110 @@ export const ClubSubscriptionsApiFactory = function (configuration, basePath, ax
|
|
|
1799
1601
|
};
|
|
1800
1602
|
};
|
|
1801
1603
|
/**
|
|
1802
|
-
*
|
|
1604
|
+
* ManagerClubSubscriptionsApi - object-oriented interface
|
|
1803
1605
|
* @export
|
|
1804
|
-
* @class
|
|
1606
|
+
* @class ManagerClubSubscriptionsApi
|
|
1805
1607
|
* @extends {BaseAPI}
|
|
1806
1608
|
*/
|
|
1807
|
-
export class
|
|
1609
|
+
export class ManagerClubSubscriptionsApi extends BaseAPI {
|
|
1808
1610
|
/**
|
|
1809
1611
|
*
|
|
1810
1612
|
* @summary Archiver un prix
|
|
1811
|
-
* @param {
|
|
1613
|
+
* @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1812
1614
|
* @param {*} [options] Override http request option.
|
|
1813
1615
|
* @throws {RequiredError}
|
|
1814
|
-
* @memberof
|
|
1616
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1815
1617
|
*/
|
|
1816
1618
|
archivePriceForSubscriptionPlan(requestParameters, options) {
|
|
1817
|
-
return
|
|
1619
|
+
return ManagerClubSubscriptionsApiFp(this.configuration).archivePriceForSubscriptionPlan(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
1818
1620
|
}
|
|
1819
1621
|
/**
|
|
1820
1622
|
*
|
|
1821
1623
|
* @summary Créer un nouveau prix pour un plan
|
|
1822
|
-
* @param {
|
|
1624
|
+
* @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
1823
1625
|
* @param {*} [options] Override http request option.
|
|
1824
1626
|
* @throws {RequiredError}
|
|
1825
|
-
* @memberof
|
|
1627
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1826
1628
|
*/
|
|
1827
1629
|
createPriceForSubscriptionPlan(requestParameters, options) {
|
|
1828
|
-
return
|
|
1630
|
+
return ManagerClubSubscriptionsApiFp(this.configuration).createPriceForSubscriptionPlan(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1829
1631
|
}
|
|
1830
1632
|
/**
|
|
1831
1633
|
*
|
|
1832
1634
|
* @summary Créer un plan d\'abonnement pour un club
|
|
1833
|
-
* @param {
|
|
1635
|
+
* @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1834
1636
|
* @param {*} [options] Override http request option.
|
|
1835
1637
|
* @throws {RequiredError}
|
|
1836
|
-
* @memberof
|
|
1638
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1837
1639
|
*/
|
|
1838
1640
|
createSubscriptionPlanForClub(requestParameters, options) {
|
|
1839
|
-
return
|
|
1641
|
+
return ManagerClubSubscriptionsApiFp(this.configuration).createSubscriptionPlanForClub(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1840
1642
|
}
|
|
1841
1643
|
/**
|
|
1842
1644
|
*
|
|
1843
1645
|
* @summary Supprimer un plan d\'abonnement pour un club
|
|
1844
|
-
* @param {
|
|
1646
|
+
* @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1845
1647
|
* @param {*} [options] Override http request option.
|
|
1846
1648
|
* @throws {RequiredError}
|
|
1847
|
-
* @memberof
|
|
1649
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1848
1650
|
*/
|
|
1849
1651
|
deleteSubscriptionPlanForClub(requestParameters, options) {
|
|
1850
|
-
return
|
|
1652
|
+
return ManagerClubSubscriptionsApiFp(this.configuration).deleteSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1851
1653
|
}
|
|
1852
1654
|
/**
|
|
1853
1655
|
*
|
|
1854
1656
|
* @summary Réactiver un plan d\'abonnement
|
|
1855
|
-
* @param {
|
|
1657
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1856
1658
|
* @param {*} [options] Override http request option.
|
|
1857
1659
|
* @throws {RequiredError}
|
|
1858
|
-
* @memberof
|
|
1660
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1859
1661
|
*/
|
|
1860
1662
|
restoreSubscriptionPlanForClub(requestParameters, options) {
|
|
1861
|
-
return
|
|
1663
|
+
return ManagerClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1862
1664
|
}
|
|
1863
1665
|
/**
|
|
1864
1666
|
*
|
|
1865
1667
|
* @summary Réactiver un prix
|
|
1866
|
-
* @param {
|
|
1668
|
+
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
|
|
1867
1669
|
* @param {*} [options] Override http request option.
|
|
1868
1670
|
* @throws {RequiredError}
|
|
1869
|
-
* @memberof
|
|
1671
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1870
1672
|
*/
|
|
1871
1673
|
restoreSubscriptionPriceForClub(requestParameters, options) {
|
|
1872
|
-
return
|
|
1674
|
+
return ManagerClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPriceForClub(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
1873
1675
|
}
|
|
1874
1676
|
/**
|
|
1875
1677
|
*
|
|
1876
1678
|
* @summary Mettre à jour un plan d\'abonnement
|
|
1877
|
-
* @param {
|
|
1679
|
+
* @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
1878
1680
|
* @param {*} [options] Override http request option.
|
|
1879
1681
|
* @throws {RequiredError}
|
|
1880
|
-
* @memberof
|
|
1682
|
+
* @memberof ManagerClubSubscriptionsApi
|
|
1881
1683
|
*/
|
|
1882
1684
|
updateSubscriptionPlanForClub(requestParameters, options) {
|
|
1883
|
-
return
|
|
1685
|
+
return ManagerClubSubscriptionsApiFp(this.configuration).updateSubscriptionPlanForClub(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1884
1686
|
}
|
|
1885
1687
|
}
|
|
1886
1688
|
/**
|
|
1887
|
-
*
|
|
1689
|
+
* ManagerClubsApi - axios parameter creator
|
|
1888
1690
|
* @export
|
|
1889
1691
|
*/
|
|
1890
|
-
export const
|
|
1692
|
+
export const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
1891
1693
|
return {
|
|
1892
1694
|
/**
|
|
1893
1695
|
*
|
|
1894
|
-
* @summary
|
|
1696
|
+
* @summary Ajouter un membre à un club
|
|
1895
1697
|
* @param {string} id ID du club
|
|
1698
|
+
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
1896
1699
|
* @param {*} [options] Override http request option.
|
|
1897
1700
|
* @throws {RequiredError}
|
|
1898
1701
|
*/
|
|
1899
|
-
|
|
1702
|
+
addClubMember: (id_1, addClubMemberRequest_1, ...args_1) => __awaiter(this, [id_1, addClubMemberRequest_1, ...args_1], void 0, function* (id, addClubMemberRequest, options = {}) {
|
|
1900
1703
|
// verify required parameter 'id' is not null or undefined
|
|
1901
|
-
assertParamExists('
|
|
1902
|
-
|
|
1704
|
+
assertParamExists('addClubMember', 'id', id);
|
|
1705
|
+
// verify required parameter 'addClubMemberRequest' is not null or undefined
|
|
1706
|
+
assertParamExists('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
1707
|
+
const localVarPath = `/api/clubs/{id}/add_members`
|
|
1903
1708
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1904
1709
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1905
1710
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1907,105 +1712,65 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
1907
1712
|
if (configuration) {
|
|
1908
1713
|
baseOptions = configuration.baseOptions;
|
|
1909
1714
|
}
|
|
1910
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1715
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1911
1716
|
const localVarHeaderParameter = {};
|
|
1912
1717
|
const localVarQueryParameter = {};
|
|
1913
1718
|
// authentication bearerAuth required
|
|
1914
1719
|
// http bearer authentication required
|
|
1915
1720
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1721
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1916
1722
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1917
1723
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1918
1724
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1725
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
1919
1726
|
return {
|
|
1920
1727
|
url: toPathString(localVarUrlObj),
|
|
1921
1728
|
options: localVarRequestOptions,
|
|
1922
1729
|
};
|
|
1923
1730
|
}),
|
|
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
1731
|
/**
|
|
1934
1732
|
*
|
|
1935
|
-
* @summary
|
|
1733
|
+
* @summary Récupérer les informations d\'un club
|
|
1936
1734
|
* @param {string} id ID du club
|
|
1937
1735
|
* @param {*} [options] Override http request option.
|
|
1938
1736
|
* @throws {RequiredError}
|
|
1939
1737
|
*/
|
|
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 {
|
|
1738
|
+
getClubInfo: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1739
|
+
// verify required parameter 'id' is not null or undefined
|
|
1740
|
+
assertParamExists('getClubInfo', 'id', id);
|
|
1741
|
+
const localVarPath = `/api/clubs/{id}`
|
|
1742
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1743
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1744
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1745
|
+
let baseOptions;
|
|
1746
|
+
if (configuration) {
|
|
1747
|
+
baseOptions = configuration.baseOptions;
|
|
1748
|
+
}
|
|
1749
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1750
|
+
const localVarHeaderParameter = {};
|
|
1751
|
+
const localVarQueryParameter = {};
|
|
1752
|
+
// authentication bearerAuth required
|
|
1753
|
+
// http bearer authentication required
|
|
1754
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1755
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1756
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1757
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1758
|
+
return {
|
|
1759
|
+
url: toPathString(localVarUrlObj),
|
|
1760
|
+
options: localVarRequestOptions,
|
|
1761
|
+
};
|
|
1762
|
+
}),
|
|
1995
1763
|
/**
|
|
1996
1764
|
*
|
|
1997
|
-
* @summary
|
|
1765
|
+
* @summary Récupérer les membres d\'un club
|
|
1998
1766
|
* @param {string} id ID du club
|
|
1999
|
-
* @param {CreateCourtRequest} createCourtRequest
|
|
2000
1767
|
* @param {*} [options] Override http request option.
|
|
2001
1768
|
* @throws {RequiredError}
|
|
2002
1769
|
*/
|
|
2003
|
-
|
|
1770
|
+
getClubMembers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2004
1771
|
// verify required parameter 'id' is not null or undefined
|
|
2005
|
-
assertParamExists('
|
|
2006
|
-
|
|
2007
|
-
assertParamExists('createCourtForClub', 'createCourtRequest', createCourtRequest);
|
|
2008
|
-
const localVarPath = `/api/clubs/{id}/courts`
|
|
1772
|
+
assertParamExists('getClubMembers', 'id', id);
|
|
1773
|
+
const localVarPath = `/api/clubs/{id}/members`
|
|
2009
1774
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2010
1775
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2011
1776
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2013,17 +1778,15 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2013
1778
|
if (configuration) {
|
|
2014
1779
|
baseOptions = configuration.baseOptions;
|
|
2015
1780
|
}
|
|
2016
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1781
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2017
1782
|
const localVarHeaderParameter = {};
|
|
2018
1783
|
const localVarQueryParameter = {};
|
|
2019
1784
|
// authentication bearerAuth required
|
|
2020
1785
|
// http bearer authentication required
|
|
2021
1786
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2022
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2023
1787
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2024
1788
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2025
1789
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2026
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createCourtRequest, localVarRequestOptions, configuration);
|
|
2027
1790
|
return {
|
|
2028
1791
|
url: toPathString(localVarUrlObj),
|
|
2029
1792
|
options: localVarRequestOptions,
|
|
@@ -2031,15 +1794,15 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2031
1794
|
}),
|
|
2032
1795
|
/**
|
|
2033
1796
|
*
|
|
2034
|
-
* @summary Récupérer
|
|
1797
|
+
* @summary Récupérer les rôles d\'un club
|
|
2035
1798
|
* @param {string} id ID du club
|
|
2036
1799
|
* @param {*} [options] Override http request option.
|
|
2037
1800
|
* @throws {RequiredError}
|
|
2038
1801
|
*/
|
|
2039
|
-
|
|
1802
|
+
getClubRoles: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2040
1803
|
// verify required parameter 'id' is not null or undefined
|
|
2041
|
-
assertParamExists('
|
|
2042
|
-
const localVarPath = `/api/clubs/{id}/
|
|
1804
|
+
assertParamExists('getClubRoles', 'id', id);
|
|
1805
|
+
const localVarPath = `/api/clubs/{id}/roles`
|
|
2043
1806
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2044
1807
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2045
1808
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2061,132 +1824,275 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2061
1824
|
options: localVarRequestOptions,
|
|
2062
1825
|
};
|
|
2063
1826
|
}),
|
|
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
1827
|
/**
|
|
2074
1828
|
*
|
|
2075
|
-
* @summary
|
|
1829
|
+
* @summary Mettre à jour un club existant
|
|
2076
1830
|
* @param {string} id ID du club
|
|
2077
|
-
* @param {
|
|
1831
|
+
* @param {UpdateClubRequest} updateClubRequest
|
|
2078
1832
|
* @param {*} [options] Override http request option.
|
|
2079
1833
|
* @throws {RequiredError}
|
|
2080
1834
|
*/
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
1835
|
+
updateClub: (id_1, updateClubRequest_1, ...args_1) => __awaiter(this, [id_1, updateClubRequest_1, ...args_1], void 0, function* (id, updateClubRequest, options = {}) {
|
|
1836
|
+
// verify required parameter 'id' is not null or undefined
|
|
1837
|
+
assertParamExists('updateClub', 'id', id);
|
|
1838
|
+
// verify required parameter 'updateClubRequest' is not null or undefined
|
|
1839
|
+
assertParamExists('updateClub', 'updateClubRequest', updateClubRequest);
|
|
1840
|
+
const localVarPath = `/api/clubs/{id}`
|
|
1841
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1842
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1843
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1844
|
+
let baseOptions;
|
|
1845
|
+
if (configuration) {
|
|
1846
|
+
baseOptions = configuration.baseOptions;
|
|
1847
|
+
}
|
|
1848
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1849
|
+
const localVarHeaderParameter = {};
|
|
1850
|
+
const localVarQueryParameter = {};
|
|
1851
|
+
// authentication bearerAuth required
|
|
1852
|
+
// http bearer authentication required
|
|
1853
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1854
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1855
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1856
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1857
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1858
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubRequest, localVarRequestOptions, configuration);
|
|
1859
|
+
return {
|
|
1860
|
+
url: toPathString(localVarUrlObj),
|
|
1861
|
+
options: localVarRequestOptions,
|
|
1862
|
+
};
|
|
1863
|
+
}),
|
|
1864
|
+
};
|
|
1865
|
+
};
|
|
1866
|
+
/**
|
|
1867
|
+
* ManagerClubsApi - functional programming interface
|
|
1868
|
+
* @export
|
|
1869
|
+
*/
|
|
1870
|
+
export const ManagerClubsApiFp = function (configuration) {
|
|
1871
|
+
const localVarAxiosParamCreator = ManagerClubsApiAxiosParamCreator(configuration);
|
|
1872
|
+
return {
|
|
1873
|
+
/**
|
|
1874
|
+
*
|
|
1875
|
+
* @summary Ajouter un membre à un club
|
|
1876
|
+
* @param {string} id ID du club
|
|
1877
|
+
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
1878
|
+
* @param {*} [options] Override http request option.
|
|
2095
1879
|
* @throws {RequiredError}
|
|
2096
1880
|
*/
|
|
2097
|
-
|
|
1881
|
+
addClubMember(id, addClubMemberRequest, options) {
|
|
2098
1882
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2099
1883
|
var _a, _b, _c;
|
|
2100
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1884
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addClubMember(id, addClubMemberRequest, options);
|
|
2101
1885
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2102
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1886
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.addClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1887
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1888
|
+
});
|
|
1889
|
+
},
|
|
1890
|
+
/**
|
|
1891
|
+
*
|
|
1892
|
+
* @summary Récupérer les informations d\'un club
|
|
1893
|
+
* @param {string} id ID du club
|
|
1894
|
+
* @param {*} [options] Override http request option.
|
|
1895
|
+
* @throws {RequiredError}
|
|
1896
|
+
*/
|
|
1897
|
+
getClubInfo(id, options) {
|
|
1898
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1899
|
+
var _a, _b, _c;
|
|
1900
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfo(id, options);
|
|
1901
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1902
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.getClubInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1903
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1904
|
+
});
|
|
1905
|
+
},
|
|
1906
|
+
/**
|
|
1907
|
+
*
|
|
1908
|
+
* @summary Récupérer les membres d\'un club
|
|
1909
|
+
* @param {string} id ID du club
|
|
1910
|
+
* @param {*} [options] Override http request option.
|
|
1911
|
+
* @throws {RequiredError}
|
|
1912
|
+
*/
|
|
1913
|
+
getClubMembers(id, options) {
|
|
1914
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1915
|
+
var _a, _b, _c;
|
|
1916
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMembers(id, options);
|
|
1917
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1918
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.getClubMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1919
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1920
|
+
});
|
|
1921
|
+
},
|
|
1922
|
+
/**
|
|
1923
|
+
*
|
|
1924
|
+
* @summary Récupérer les rôles d\'un club
|
|
1925
|
+
* @param {string} id ID du club
|
|
1926
|
+
* @param {*} [options] Override http request option.
|
|
1927
|
+
* @throws {RequiredError}
|
|
1928
|
+
*/
|
|
1929
|
+
getClubRoles(id, options) {
|
|
1930
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1931
|
+
var _a, _b, _c;
|
|
1932
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoles(id, options);
|
|
1933
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1934
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.getClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1935
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1936
|
+
});
|
|
1937
|
+
},
|
|
1938
|
+
/**
|
|
1939
|
+
*
|
|
1940
|
+
* @summary Mettre à jour un club existant
|
|
1941
|
+
* @param {string} id ID du club
|
|
1942
|
+
* @param {UpdateClubRequest} updateClubRequest
|
|
1943
|
+
* @param {*} [options] Override http request option.
|
|
1944
|
+
* @throws {RequiredError}
|
|
1945
|
+
*/
|
|
1946
|
+
updateClub(id, updateClubRequest, options) {
|
|
1947
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1948
|
+
var _a, _b, _c;
|
|
1949
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClub(id, updateClubRequest, options);
|
|
1950
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1951
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.updateClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2103
1952
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2104
1953
|
});
|
|
2105
1954
|
},
|
|
2106
1955
|
};
|
|
2107
1956
|
};
|
|
2108
1957
|
/**
|
|
2109
|
-
*
|
|
1958
|
+
* ManagerClubsApi - factory interface
|
|
2110
1959
|
* @export
|
|
2111
1960
|
*/
|
|
2112
|
-
export const
|
|
2113
|
-
const localVarFp =
|
|
1961
|
+
export const ManagerClubsApiFactory = function (configuration, basePath, axios) {
|
|
1962
|
+
const localVarFp = ManagerClubsApiFp(configuration);
|
|
2114
1963
|
return {
|
|
2115
1964
|
/**
|
|
2116
1965
|
*
|
|
2117
|
-
* @summary
|
|
2118
|
-
* @param {
|
|
1966
|
+
* @summary Ajouter un membre à un club
|
|
1967
|
+
* @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
|
|
2119
1968
|
* @param {*} [options] Override http request option.
|
|
2120
1969
|
* @throws {RequiredError}
|
|
2121
1970
|
*/
|
|
2122
|
-
|
|
2123
|
-
return localVarFp.
|
|
1971
|
+
addClubMember(requestParameters, options) {
|
|
1972
|
+
return localVarFp.addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
2124
1973
|
},
|
|
2125
1974
|
/**
|
|
2126
1975
|
*
|
|
2127
|
-
* @summary Récupérer
|
|
2128
|
-
* @param {
|
|
1976
|
+
* @summary Récupérer les informations d\'un club
|
|
1977
|
+
* @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
|
|
2129
1978
|
* @param {*} [options] Override http request option.
|
|
2130
1979
|
* @throws {RequiredError}
|
|
2131
1980
|
*/
|
|
2132
|
-
|
|
2133
|
-
return localVarFp.
|
|
1981
|
+
getClubInfo(requestParameters, options) {
|
|
1982
|
+
return localVarFp.getClubInfo(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1983
|
+
},
|
|
1984
|
+
/**
|
|
1985
|
+
*
|
|
1986
|
+
* @summary Récupérer les membres d\'un club
|
|
1987
|
+
* @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
|
|
1988
|
+
* @param {*} [options] Override http request option.
|
|
1989
|
+
* @throws {RequiredError}
|
|
1990
|
+
*/
|
|
1991
|
+
getClubMembers(requestParameters, options) {
|
|
1992
|
+
return localVarFp.getClubMembers(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1993
|
+
},
|
|
1994
|
+
/**
|
|
1995
|
+
*
|
|
1996
|
+
* @summary Récupérer les rôles d\'un club
|
|
1997
|
+
* @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
|
|
1998
|
+
* @param {*} [options] Override http request option.
|
|
1999
|
+
* @throws {RequiredError}
|
|
2000
|
+
*/
|
|
2001
|
+
getClubRoles(requestParameters, options) {
|
|
2002
|
+
return localVarFp.getClubRoles(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2003
|
+
},
|
|
2004
|
+
/**
|
|
2005
|
+
*
|
|
2006
|
+
* @summary Mettre à jour un club existant
|
|
2007
|
+
* @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
|
|
2008
|
+
* @param {*} [options] Override http request option.
|
|
2009
|
+
* @throws {RequiredError}
|
|
2010
|
+
*/
|
|
2011
|
+
updateClub(requestParameters, options) {
|
|
2012
|
+
return localVarFp.updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(axios, basePath));
|
|
2134
2013
|
},
|
|
2135
2014
|
};
|
|
2136
2015
|
};
|
|
2137
2016
|
/**
|
|
2138
|
-
*
|
|
2017
|
+
* ManagerClubsApi - object-oriented interface
|
|
2139
2018
|
* @export
|
|
2140
|
-
* @class
|
|
2019
|
+
* @class ManagerClubsApi
|
|
2141
2020
|
* @extends {BaseAPI}
|
|
2142
2021
|
*/
|
|
2143
|
-
export class
|
|
2022
|
+
export class ManagerClubsApi extends BaseAPI {
|
|
2144
2023
|
/**
|
|
2145
2024
|
*
|
|
2146
|
-
* @summary
|
|
2147
|
-
* @param {
|
|
2025
|
+
* @summary Ajouter un membre à un club
|
|
2026
|
+
* @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
|
|
2148
2027
|
* @param {*} [options] Override http request option.
|
|
2149
2028
|
* @throws {RequiredError}
|
|
2150
|
-
* @memberof
|
|
2029
|
+
* @memberof ManagerClubsApi
|
|
2151
2030
|
*/
|
|
2152
|
-
|
|
2153
|
-
return
|
|
2031
|
+
addClubMember(requestParameters, options) {
|
|
2032
|
+
return ManagerClubsApiFp(this.configuration).addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2154
2033
|
}
|
|
2155
2034
|
/**
|
|
2156
2035
|
*
|
|
2157
|
-
* @summary Récupérer
|
|
2158
|
-
* @param {
|
|
2036
|
+
* @summary Récupérer les informations d\'un club
|
|
2037
|
+
* @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
|
|
2159
2038
|
* @param {*} [options] Override http request option.
|
|
2160
2039
|
* @throws {RequiredError}
|
|
2161
|
-
* @memberof
|
|
2040
|
+
* @memberof ManagerClubsApi
|
|
2162
2041
|
*/
|
|
2163
|
-
|
|
2164
|
-
return
|
|
2042
|
+
getClubInfo(requestParameters, options) {
|
|
2043
|
+
return ManagerClubsApiFp(this.configuration).getClubInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2044
|
+
}
|
|
2045
|
+
/**
|
|
2046
|
+
*
|
|
2047
|
+
* @summary Récupérer les membres d\'un club
|
|
2048
|
+
* @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
|
|
2049
|
+
* @param {*} [options] Override http request option.
|
|
2050
|
+
* @throws {RequiredError}
|
|
2051
|
+
* @memberof ManagerClubsApi
|
|
2052
|
+
*/
|
|
2053
|
+
getClubMembers(requestParameters, options) {
|
|
2054
|
+
return ManagerClubsApiFp(this.configuration).getClubMembers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2055
|
+
}
|
|
2056
|
+
/**
|
|
2057
|
+
*
|
|
2058
|
+
* @summary Récupérer les rôles d\'un club
|
|
2059
|
+
* @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
|
|
2060
|
+
* @param {*} [options] Override http request option.
|
|
2061
|
+
* @throws {RequiredError}
|
|
2062
|
+
* @memberof ManagerClubsApi
|
|
2063
|
+
*/
|
|
2064
|
+
getClubRoles(requestParameters, options) {
|
|
2065
|
+
return ManagerClubsApiFp(this.configuration).getClubRoles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2066
|
+
}
|
|
2067
|
+
/**
|
|
2068
|
+
*
|
|
2069
|
+
* @summary Mettre à jour un club existant
|
|
2070
|
+
* @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
|
|
2071
|
+
* @param {*} [options] Override http request option.
|
|
2072
|
+
* @throws {RequiredError}
|
|
2073
|
+
* @memberof ManagerClubsApi
|
|
2074
|
+
*/
|
|
2075
|
+
updateClub(requestParameters, options) {
|
|
2076
|
+
return ManagerClubsApiFp(this.configuration).updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2165
2077
|
}
|
|
2166
2078
|
}
|
|
2167
2079
|
/**
|
|
2168
|
-
*
|
|
2080
|
+
* ManagerSportsApi - axios parameter creator
|
|
2169
2081
|
* @export
|
|
2170
2082
|
*/
|
|
2171
|
-
export const
|
|
2083
|
+
export const ManagerSportsApiAxiosParamCreator = function (configuration) {
|
|
2172
2084
|
return {
|
|
2173
2085
|
/**
|
|
2174
2086
|
*
|
|
2175
|
-
* @summary Supprimer
|
|
2176
|
-
* @param {string} id ID du
|
|
2177
|
-
* @param {string} start Date de début (format ISO)
|
|
2178
|
-
* @param {string} end Date de fin (format ISO)
|
|
2087
|
+
* @summary Supprimer un sport
|
|
2088
|
+
* @param {string} id ID du sport
|
|
2179
2089
|
* @param {*} [options] Override http request option.
|
|
2180
2090
|
* @throws {RequiredError}
|
|
2181
2091
|
*/
|
|
2182
|
-
|
|
2092
|
+
deleteSport: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2183
2093
|
// verify required parameter 'id' is not null or undefined
|
|
2184
|
-
assertParamExists('
|
|
2185
|
-
|
|
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`
|
|
2094
|
+
assertParamExists('deleteSport', 'id', id);
|
|
2095
|
+
const localVarPath = `/api/sports/{id}`
|
|
2190
2096
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2191
2097
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2192
2098
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2200,16 +2106,6 @@ export const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
2200
2106
|
// authentication bearerAuth required
|
|
2201
2107
|
// http bearer authentication required
|
|
2202
2108
|
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
2109
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2214
2110
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2215
2111
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2220,17 +2116,18 @@ export const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
2220
2116
|
}),
|
|
2221
2117
|
/**
|
|
2222
2118
|
*
|
|
2223
|
-
* @summary
|
|
2224
|
-
* @param {string} id ID du
|
|
2225
|
-
* @param {
|
|
2226
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
2119
|
+
* @summary Mettre à jour un sport
|
|
2120
|
+
* @param {string} id ID du sport
|
|
2121
|
+
* @param {UpdateSportRequest} updateSportRequest
|
|
2227
2122
|
* @param {*} [options] Override http request option.
|
|
2228
2123
|
* @throws {RequiredError}
|
|
2229
2124
|
*/
|
|
2230
|
-
|
|
2125
|
+
updateSport: (id_1, updateSportRequest_1, ...args_1) => __awaiter(this, [id_1, updateSportRequest_1, ...args_1], void 0, function* (id, updateSportRequest, options = {}) {
|
|
2231
2126
|
// verify required parameter 'id' is not null or undefined
|
|
2232
|
-
assertParamExists('
|
|
2233
|
-
|
|
2127
|
+
assertParamExists('updateSport', 'id', id);
|
|
2128
|
+
// verify required parameter 'updateSportRequest' is not null or undefined
|
|
2129
|
+
assertParamExists('updateSport', 'updateSportRequest', updateSportRequest);
|
|
2130
|
+
const localVarPath = `/api/sports/{id}`
|
|
2234
2131
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2235
2132
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2236
2133
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2238,25 +2135,17 @@ export const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
2238
2135
|
if (configuration) {
|
|
2239
2136
|
baseOptions = configuration.baseOptions;
|
|
2240
2137
|
}
|
|
2241
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2138
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2242
2139
|
const localVarHeaderParameter = {};
|
|
2243
2140
|
const localVarQueryParameter = {};
|
|
2244
2141
|
// authentication bearerAuth required
|
|
2245
2142
|
// http bearer authentication required
|
|
2246
2143
|
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
|
-
}
|
|
2144
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2257
2145
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2258
2146
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2259
2147
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2148
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateSportRequest, localVarRequestOptions, configuration);
|
|
2260
2149
|
return {
|
|
2261
2150
|
url: toPathString(localVarUrlObj),
|
|
2262
2151
|
options: localVarRequestOptions,
|
|
@@ -2265,129 +2154,123 @@ export const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
2265
2154
|
};
|
|
2266
2155
|
};
|
|
2267
2156
|
/**
|
|
2268
|
-
*
|
|
2157
|
+
* ManagerSportsApi - functional programming interface
|
|
2269
2158
|
* @export
|
|
2270
2159
|
*/
|
|
2271
|
-
export const
|
|
2272
|
-
const localVarAxiosParamCreator =
|
|
2160
|
+
export const ManagerSportsApiFp = function (configuration) {
|
|
2161
|
+
const localVarAxiosParamCreator = ManagerSportsApiAxiosParamCreator(configuration);
|
|
2273
2162
|
return {
|
|
2274
2163
|
/**
|
|
2275
2164
|
*
|
|
2276
|
-
* @summary Supprimer
|
|
2277
|
-
* @param {string} id ID du
|
|
2278
|
-
* @param {string} start Date de début (format ISO)
|
|
2279
|
-
* @param {string} end Date de fin (format ISO)
|
|
2165
|
+
* @summary Supprimer un sport
|
|
2166
|
+
* @param {string} id ID du sport
|
|
2280
2167
|
* @param {*} [options] Override http request option.
|
|
2281
2168
|
* @throws {RequiredError}
|
|
2282
2169
|
*/
|
|
2283
|
-
|
|
2170
|
+
deleteSport(id, options) {
|
|
2284
2171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2285
2172
|
var _a, _b, _c;
|
|
2286
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2173
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSport(id, options);
|
|
2287
2174
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2288
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2175
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerSportsApi.deleteSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2289
2176
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2290
2177
|
});
|
|
2291
2178
|
},
|
|
2292
2179
|
/**
|
|
2293
2180
|
*
|
|
2294
|
-
* @summary
|
|
2295
|
-
* @param {string} id ID du
|
|
2296
|
-
* @param {
|
|
2297
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
2181
|
+
* @summary Mettre à jour un sport
|
|
2182
|
+
* @param {string} id ID du sport
|
|
2183
|
+
* @param {UpdateSportRequest} updateSportRequest
|
|
2298
2184
|
* @param {*} [options] Override http request option.
|
|
2299
2185
|
* @throws {RequiredError}
|
|
2300
2186
|
*/
|
|
2301
|
-
|
|
2187
|
+
updateSport(id, updateSportRequest, options) {
|
|
2302
2188
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2303
2189
|
var _a, _b, _c;
|
|
2304
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2190
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSport(id, updateSportRequest, options);
|
|
2305
2191
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2306
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2192
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerSportsApi.updateSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2307
2193
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2308
2194
|
});
|
|
2309
2195
|
},
|
|
2310
2196
|
};
|
|
2311
2197
|
};
|
|
2312
2198
|
/**
|
|
2313
|
-
*
|
|
2199
|
+
* ManagerSportsApi - factory interface
|
|
2314
2200
|
* @export
|
|
2315
2201
|
*/
|
|
2316
|
-
export const
|
|
2317
|
-
const localVarFp =
|
|
2202
|
+
export const ManagerSportsApiFactory = function (configuration, basePath, axios) {
|
|
2203
|
+
const localVarFp = ManagerSportsApiFp(configuration);
|
|
2318
2204
|
return {
|
|
2319
2205
|
/**
|
|
2320
2206
|
*
|
|
2321
|
-
* @summary Supprimer
|
|
2322
|
-
* @param {
|
|
2207
|
+
* @summary Supprimer un sport
|
|
2208
|
+
* @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
|
|
2323
2209
|
* @param {*} [options] Override http request option.
|
|
2324
2210
|
* @throws {RequiredError}
|
|
2325
2211
|
*/
|
|
2326
|
-
|
|
2327
|
-
return localVarFp.
|
|
2212
|
+
deleteSport(requestParameters, options) {
|
|
2213
|
+
return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2328
2214
|
},
|
|
2329
2215
|
/**
|
|
2330
2216
|
*
|
|
2331
|
-
* @summary
|
|
2332
|
-
* @param {
|
|
2217
|
+
* @summary Mettre à jour un sport
|
|
2218
|
+
* @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
|
|
2333
2219
|
* @param {*} [options] Override http request option.
|
|
2334
2220
|
* @throws {RequiredError}
|
|
2335
2221
|
*/
|
|
2336
|
-
|
|
2337
|
-
return localVarFp.
|
|
2222
|
+
updateSport(requestParameters, options) {
|
|
2223
|
+
return localVarFp.updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(axios, basePath));
|
|
2338
2224
|
},
|
|
2339
2225
|
};
|
|
2340
2226
|
};
|
|
2341
2227
|
/**
|
|
2342
|
-
*
|
|
2228
|
+
* ManagerSportsApi - object-oriented interface
|
|
2343
2229
|
* @export
|
|
2344
|
-
* @class
|
|
2230
|
+
* @class ManagerSportsApi
|
|
2345
2231
|
* @extends {BaseAPI}
|
|
2346
2232
|
*/
|
|
2347
|
-
export class
|
|
2233
|
+
export class ManagerSportsApi extends BaseAPI {
|
|
2348
2234
|
/**
|
|
2349
2235
|
*
|
|
2350
|
-
* @summary Supprimer
|
|
2351
|
-
* @param {
|
|
2236
|
+
* @summary Supprimer un sport
|
|
2237
|
+
* @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
|
|
2352
2238
|
* @param {*} [options] Override http request option.
|
|
2353
2239
|
* @throws {RequiredError}
|
|
2354
|
-
* @memberof
|
|
2240
|
+
* @memberof ManagerSportsApi
|
|
2355
2241
|
*/
|
|
2356
|
-
|
|
2357
|
-
return
|
|
2242
|
+
deleteSport(requestParameters, options) {
|
|
2243
|
+
return ManagerSportsApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2358
2244
|
}
|
|
2359
2245
|
/**
|
|
2360
2246
|
*
|
|
2361
|
-
* @summary
|
|
2362
|
-
* @param {
|
|
2247
|
+
* @summary Mettre à jour un sport
|
|
2248
|
+
* @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
|
|
2363
2249
|
* @param {*} [options] Override http request option.
|
|
2364
2250
|
* @throws {RequiredError}
|
|
2365
|
-
* @memberof
|
|
2251
|
+
* @memberof ManagerSportsApi
|
|
2366
2252
|
*/
|
|
2367
|
-
|
|
2368
|
-
return
|
|
2253
|
+
updateSport(requestParameters, options) {
|
|
2254
|
+
return ManagerSportsApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2369
2255
|
}
|
|
2370
2256
|
}
|
|
2371
2257
|
/**
|
|
2372
|
-
*
|
|
2258
|
+
* StaffClubAnalyticsApi - axios parameter creator
|
|
2373
2259
|
* @export
|
|
2374
2260
|
*/
|
|
2375
|
-
export const
|
|
2261
|
+
export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
2376
2262
|
return {
|
|
2377
2263
|
/**
|
|
2378
2264
|
*
|
|
2379
|
-
* @summary
|
|
2265
|
+
* @summary Get monthly turnover for the last six months
|
|
2380
2266
|
* @param {string} id ID du club
|
|
2381
|
-
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
2382
2267
|
* @param {*} [options] Override http request option.
|
|
2383
2268
|
* @throws {RequiredError}
|
|
2384
2269
|
*/
|
|
2385
|
-
|
|
2270
|
+
getLastSixMonthsTurnover: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2386
2271
|
// 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`
|
|
2272
|
+
assertParamExists('getLastSixMonthsTurnover', 'id', id);
|
|
2273
|
+
const localVarPath = `/api/clubs/{id}/turnover`
|
|
2391
2274
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2392
2275
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2393
2276
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2395,17 +2278,15 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2395
2278
|
if (configuration) {
|
|
2396
2279
|
baseOptions = configuration.baseOptions;
|
|
2397
2280
|
}
|
|
2398
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2281
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2399
2282
|
const localVarHeaderParameter = {};
|
|
2400
2283
|
const localVarQueryParameter = {};
|
|
2401
2284
|
// authentication bearerAuth required
|
|
2402
2285
|
// http bearer authentication required
|
|
2403
2286
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2404
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2405
2287
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2406
2288
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2407
2289
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2408
|
-
localVarRequestOptions.data = serializeDataIfNeeded(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
2409
2290
|
return {
|
|
2410
2291
|
url: toPathString(localVarUrlObj),
|
|
2411
2292
|
options: localVarRequestOptions,
|
|
@@ -2413,15 +2294,15 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2413
2294
|
}),
|
|
2414
2295
|
/**
|
|
2415
2296
|
*
|
|
2416
|
-
* @summary
|
|
2297
|
+
* @summary Get number of users subscribed to the club
|
|
2417
2298
|
* @param {string} id ID du club
|
|
2418
2299
|
* @param {*} [options] Override http request option.
|
|
2419
2300
|
* @throws {RequiredError}
|
|
2420
2301
|
*/
|
|
2421
|
-
|
|
2302
|
+
getNumberOfClubUsers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2422
2303
|
// verify required parameter 'id' is not null or undefined
|
|
2423
|
-
assertParamExists('
|
|
2424
|
-
const localVarPath = `/api/clubs/{id}`
|
|
2304
|
+
assertParamExists('getNumberOfClubUsers', 'id', id);
|
|
2305
|
+
const localVarPath = `/api/clubs/{id}/user-count`
|
|
2425
2306
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2426
2307
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2427
2308
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2443,84 +2324,125 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2443
2324
|
options: localVarRequestOptions,
|
|
2444
2325
|
};
|
|
2445
2326
|
}),
|
|
2327
|
+
};
|
|
2328
|
+
};
|
|
2329
|
+
/**
|
|
2330
|
+
* StaffClubAnalyticsApi - functional programming interface
|
|
2331
|
+
* @export
|
|
2332
|
+
*/
|
|
2333
|
+
export const StaffClubAnalyticsApiFp = function (configuration) {
|
|
2334
|
+
const localVarAxiosParamCreator = StaffClubAnalyticsApiAxiosParamCreator(configuration);
|
|
2335
|
+
return {
|
|
2446
2336
|
/**
|
|
2447
2337
|
*
|
|
2448
|
-
* @summary
|
|
2338
|
+
* @summary Get monthly turnover for the last six months
|
|
2449
2339
|
* @param {string} id ID du club
|
|
2450
2340
|
* @param {*} [options] Override http request option.
|
|
2451
2341
|
* @throws {RequiredError}
|
|
2452
2342
|
*/
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
baseOptions = configuration.baseOptions;
|
|
2463
|
-
}
|
|
2464
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2465
|
-
const localVarHeaderParameter = {};
|
|
2466
|
-
const localVarQueryParameter = {};
|
|
2467
|
-
// authentication bearerAuth required
|
|
2468
|
-
// http bearer authentication required
|
|
2469
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2470
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2471
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2472
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2473
|
-
return {
|
|
2474
|
-
url: toPathString(localVarUrlObj),
|
|
2475
|
-
options: localVarRequestOptions,
|
|
2476
|
-
};
|
|
2477
|
-
}),
|
|
2343
|
+
getLastSixMonthsTurnover(id, options) {
|
|
2344
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2345
|
+
var _a, _b, _c;
|
|
2346
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLastSixMonthsTurnover(id, options);
|
|
2347
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2348
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubAnalyticsApi.getLastSixMonthsTurnover']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2349
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2350
|
+
});
|
|
2351
|
+
},
|
|
2478
2352
|
/**
|
|
2479
2353
|
*
|
|
2480
|
-
* @summary
|
|
2354
|
+
* @summary Get number of users subscribed to the club
|
|
2481
2355
|
* @param {string} id ID du club
|
|
2482
2356
|
* @param {*} [options] Override http request option.
|
|
2483
2357
|
* @throws {RequiredError}
|
|
2484
2358
|
*/
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2359
|
+
getNumberOfClubUsers(id, options) {
|
|
2360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2361
|
+
var _a, _b, _c;
|
|
2362
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(id, options);
|
|
2363
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2364
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubAnalyticsApi.getNumberOfClubUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2365
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2366
|
+
});
|
|
2367
|
+
},
|
|
2368
|
+
};
|
|
2369
|
+
};
|
|
2370
|
+
/**
|
|
2371
|
+
* StaffClubAnalyticsApi - factory interface
|
|
2372
|
+
* @export
|
|
2373
|
+
*/
|
|
2374
|
+
export const StaffClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
2375
|
+
const localVarFp = StaffClubAnalyticsApiFp(configuration);
|
|
2376
|
+
return {
|
|
2377
|
+
/**
|
|
2378
|
+
*
|
|
2379
|
+
* @summary Get monthly turnover for the last six months
|
|
2380
|
+
* @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
|
|
2381
|
+
* @param {*} [options] Override http request option.
|
|
2382
|
+
* @throws {RequiredError}
|
|
2383
|
+
*/
|
|
2384
|
+
getLastSixMonthsTurnover(requestParameters, options) {
|
|
2385
|
+
return localVarFp.getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2386
|
+
},
|
|
2387
|
+
/**
|
|
2388
|
+
*
|
|
2389
|
+
* @summary Get number of users subscribed to the club
|
|
2390
|
+
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
2391
|
+
* @param {*} [options] Override http request option.
|
|
2392
|
+
* @throws {RequiredError}
|
|
2393
|
+
*/
|
|
2394
|
+
getNumberOfClubUsers(requestParameters, options) {
|
|
2395
|
+
return localVarFp.getNumberOfClubUsers(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2396
|
+
},
|
|
2397
|
+
};
|
|
2398
|
+
};
|
|
2399
|
+
/**
|
|
2400
|
+
* StaffClubAnalyticsApi - object-oriented interface
|
|
2401
|
+
* @export
|
|
2402
|
+
* @class StaffClubAnalyticsApi
|
|
2403
|
+
* @extends {BaseAPI}
|
|
2404
|
+
*/
|
|
2405
|
+
export class StaffClubAnalyticsApi extends BaseAPI {
|
|
2406
|
+
/**
|
|
2407
|
+
*
|
|
2408
|
+
* @summary Get monthly turnover for the last six months
|
|
2409
|
+
* @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
|
|
2410
|
+
* @param {*} [options] Override http request option.
|
|
2411
|
+
* @throws {RequiredError}
|
|
2412
|
+
* @memberof StaffClubAnalyticsApi
|
|
2413
|
+
*/
|
|
2414
|
+
getLastSixMonthsTurnover(requestParameters, options) {
|
|
2415
|
+
return StaffClubAnalyticsApiFp(this.configuration).getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2416
|
+
}
|
|
2417
|
+
/**
|
|
2418
|
+
*
|
|
2419
|
+
* @summary Get number of users subscribed to the club
|
|
2420
|
+
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
2421
|
+
* @param {*} [options] Override http request option.
|
|
2422
|
+
* @throws {RequiredError}
|
|
2423
|
+
* @memberof StaffClubAnalyticsApi
|
|
2424
|
+
*/
|
|
2425
|
+
getNumberOfClubUsers(requestParameters, options) {
|
|
2426
|
+
return StaffClubAnalyticsApiFp(this.configuration).getNumberOfClubUsers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2429
|
+
/**
|
|
2430
|
+
* StaffClubBookingsApi - axios parameter creator
|
|
2431
|
+
* @export
|
|
2432
|
+
*/
|
|
2433
|
+
export const StaffClubBookingsApiAxiosParamCreator = function (configuration) {
|
|
2434
|
+
return {
|
|
2510
2435
|
/**
|
|
2511
2436
|
*
|
|
2512
|
-
* @summary
|
|
2437
|
+
* @summary Get the ten next bookings for the club
|
|
2513
2438
|
* @param {string} id ID du club
|
|
2514
|
-
* @param {UpdateClubRequest} updateClubRequest
|
|
2515
2439
|
* @param {*} [options] Override http request option.
|
|
2516
2440
|
* @throws {RequiredError}
|
|
2517
2441
|
*/
|
|
2518
|
-
|
|
2442
|
+
getTenNextBookings: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2519
2443
|
// verify required parameter 'id' is not null or undefined
|
|
2520
|
-
assertParamExists('
|
|
2521
|
-
|
|
2522
|
-
assertParamExists('updateClub', 'updateClubRequest', updateClubRequest);
|
|
2523
|
-
const localVarPath = `/api/clubs/{id}`
|
|
2444
|
+
assertParamExists('getTenNextBookings', 'id', id);
|
|
2445
|
+
const localVarPath = `/api/clubs/{id}/next-bookings`
|
|
2524
2446
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2525
2447
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2526
2448
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2528,17 +2450,15 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2528
2450
|
if (configuration) {
|
|
2529
2451
|
baseOptions = configuration.baseOptions;
|
|
2530
2452
|
}
|
|
2531
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2453
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2532
2454
|
const localVarHeaderParameter = {};
|
|
2533
2455
|
const localVarQueryParameter = {};
|
|
2534
2456
|
// authentication bearerAuth required
|
|
2535
2457
|
// http bearer authentication required
|
|
2536
2458
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2537
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2538
2459
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2539
2460
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2540
2461
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2541
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateClubRequest, localVarRequestOptions, configuration);
|
|
2542
2462
|
return {
|
|
2543
2463
|
url: toPathString(localVarUrlObj),
|
|
2544
2464
|
options: localVarRequestOptions,
|
|
@@ -2547,235 +2467,189 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2547
2467
|
};
|
|
2548
2468
|
};
|
|
2549
2469
|
/**
|
|
2550
|
-
*
|
|
2470
|
+
* StaffClubBookingsApi - functional programming interface
|
|
2551
2471
|
* @export
|
|
2552
2472
|
*/
|
|
2553
|
-
export const
|
|
2554
|
-
const localVarAxiosParamCreator =
|
|
2473
|
+
export const StaffClubBookingsApiFp = function (configuration) {
|
|
2474
|
+
const localVarAxiosParamCreator = StaffClubBookingsApiAxiosParamCreator(configuration);
|
|
2555
2475
|
return {
|
|
2556
2476
|
/**
|
|
2557
2477
|
*
|
|
2558
|
-
* @summary
|
|
2559
|
-
* @param {string} id ID du club
|
|
2560
|
-
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
2561
|
-
* @param {*} [options] Override http request option.
|
|
2562
|
-
* @throws {RequiredError}
|
|
2563
|
-
*/
|
|
2564
|
-
addClubMember(id, addClubMemberRequest, options) {
|
|
2565
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2566
|
-
var _a, _b, _c;
|
|
2567
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addClubMember(id, addClubMemberRequest, options);
|
|
2568
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2569
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.addClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2570
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2571
|
-
});
|
|
2572
|
-
},
|
|
2573
|
-
/**
|
|
2574
|
-
*
|
|
2575
|
-
* @summary Récupérer les informations d\'un club
|
|
2478
|
+
* @summary Get the ten next bookings for the club
|
|
2576
2479
|
* @param {string} id ID du club
|
|
2577
2480
|
* @param {*} [options] Override http request option.
|
|
2578
2481
|
* @throws {RequiredError}
|
|
2579
2482
|
*/
|
|
2580
|
-
|
|
2483
|
+
getTenNextBookings(id, options) {
|
|
2581
2484
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2582
2485
|
var _a, _b, _c;
|
|
2583
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2486
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTenNextBookings(id, options);
|
|
2584
2487
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2585
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2488
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubBookingsApi.getTenNextBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2586
2489
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2587
2490
|
});
|
|
2588
2491
|
},
|
|
2492
|
+
};
|
|
2493
|
+
};
|
|
2494
|
+
/**
|
|
2495
|
+
* StaffClubBookingsApi - factory interface
|
|
2496
|
+
* @export
|
|
2497
|
+
*/
|
|
2498
|
+
export const StaffClubBookingsApiFactory = function (configuration, basePath, axios) {
|
|
2499
|
+
const localVarFp = StaffClubBookingsApiFp(configuration);
|
|
2500
|
+
return {
|
|
2589
2501
|
/**
|
|
2590
2502
|
*
|
|
2591
|
-
* @summary
|
|
2592
|
-
* @param {
|
|
2503
|
+
* @summary Get the ten next bookings for the club
|
|
2504
|
+
* @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
|
|
2593
2505
|
* @param {*} [options] Override http request option.
|
|
2594
2506
|
* @throws {RequiredError}
|
|
2595
2507
|
*/
|
|
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
|
-
});
|
|
2508
|
+
getTenNextBookings(requestParameters, options) {
|
|
2509
|
+
return localVarFp.getTenNextBookings(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2604
2510
|
},
|
|
2511
|
+
};
|
|
2512
|
+
};
|
|
2513
|
+
/**
|
|
2514
|
+
* StaffClubBookingsApi - object-oriented interface
|
|
2515
|
+
* @export
|
|
2516
|
+
* @class StaffClubBookingsApi
|
|
2517
|
+
* @extends {BaseAPI}
|
|
2518
|
+
*/
|
|
2519
|
+
export class StaffClubBookingsApi extends BaseAPI {
|
|
2520
|
+
/**
|
|
2521
|
+
*
|
|
2522
|
+
* @summary Get the ten next bookings for the club
|
|
2523
|
+
* @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
|
|
2524
|
+
* @param {*} [options] Override http request option.
|
|
2525
|
+
* @throws {RequiredError}
|
|
2526
|
+
* @memberof StaffClubBookingsApi
|
|
2527
|
+
*/
|
|
2528
|
+
getTenNextBookings(requestParameters, options) {
|
|
2529
|
+
return StaffClubBookingsApiFp(this.configuration).getTenNextBookings(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2530
|
+
}
|
|
2531
|
+
}
|
|
2532
|
+
/**
|
|
2533
|
+
* StaffClubSettingsApi - axios parameter creator
|
|
2534
|
+
* @export
|
|
2535
|
+
*/
|
|
2536
|
+
export const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
2537
|
+
return {
|
|
2605
2538
|
/**
|
|
2606
2539
|
*
|
|
2607
|
-
* @summary
|
|
2608
|
-
* @param {
|
|
2540
|
+
* @summary Récupère les paramètres d\'un club
|
|
2541
|
+
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
2609
2542
|
* @param {*} [options] Override http request option.
|
|
2610
2543
|
* @throws {RequiredError}
|
|
2611
2544
|
*/
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2545
|
+
getClubSettings: (getClubSettingsRequest_1, ...args_1) => __awaiter(this, [getClubSettingsRequest_1, ...args_1], void 0, function* (getClubSettingsRequest, options = {}) {
|
|
2546
|
+
// verify required parameter 'getClubSettingsRequest' is not null or undefined
|
|
2547
|
+
assertParamExists('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
|
|
2548
|
+
const localVarPath = `/api/club-settings`;
|
|
2549
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2550
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2551
|
+
let baseOptions;
|
|
2552
|
+
if (configuration) {
|
|
2553
|
+
baseOptions = configuration.baseOptions;
|
|
2554
|
+
}
|
|
2555
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2556
|
+
const localVarHeaderParameter = {};
|
|
2557
|
+
const localVarQueryParameter = {};
|
|
2558
|
+
// authentication bearerAuth required
|
|
2559
|
+
// http bearer authentication required
|
|
2560
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2561
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2562
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2563
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2564
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2565
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2566
|
+
return {
|
|
2567
|
+
url: toPathString(localVarUrlObj),
|
|
2568
|
+
options: localVarRequestOptions,
|
|
2569
|
+
};
|
|
2570
|
+
}),
|
|
2571
|
+
};
|
|
2572
|
+
};
|
|
2573
|
+
/**
|
|
2574
|
+
* StaffClubSettingsApi - functional programming interface
|
|
2575
|
+
* @export
|
|
2576
|
+
*/
|
|
2577
|
+
export const StaffClubSettingsApiFp = function (configuration) {
|
|
2578
|
+
const localVarAxiosParamCreator = StaffClubSettingsApiAxiosParamCreator(configuration);
|
|
2579
|
+
return {
|
|
2621
2580
|
/**
|
|
2622
2581
|
*
|
|
2623
|
-
* @summary
|
|
2624
|
-
* @param {
|
|
2625
|
-
* @param {UpdateClubRequest} updateClubRequest
|
|
2582
|
+
* @summary Récupère les paramètres d\'un club
|
|
2583
|
+
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
2626
2584
|
* @param {*} [options] Override http request option.
|
|
2627
2585
|
* @throws {RequiredError}
|
|
2628
2586
|
*/
|
|
2629
|
-
|
|
2587
|
+
getClubSettings(getClubSettingsRequest, options) {
|
|
2630
2588
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2631
2589
|
var _a, _b, _c;
|
|
2632
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2590
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(getClubSettingsRequest, options);
|
|
2633
2591
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2634
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2592
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubSettingsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2635
2593
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2636
2594
|
});
|
|
2637
2595
|
},
|
|
2638
2596
|
};
|
|
2639
2597
|
};
|
|
2640
2598
|
/**
|
|
2641
|
-
*
|
|
2599
|
+
* StaffClubSettingsApi - factory interface
|
|
2642
2600
|
* @export
|
|
2643
2601
|
*/
|
|
2644
|
-
export const
|
|
2645
|
-
const localVarFp =
|
|
2602
|
+
export const StaffClubSettingsApiFactory = function (configuration, basePath, axios) {
|
|
2603
|
+
const localVarFp = StaffClubSettingsApiFp(configuration);
|
|
2646
2604
|
return {
|
|
2647
2605
|
/**
|
|
2648
2606
|
*
|
|
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.
|
|
2681
|
-
* @param {*} [options] Override http request option.
|
|
2682
|
-
* @throws {RequiredError}
|
|
2683
|
-
*/
|
|
2684
|
-
getClubRoles(requestParameters, options) {
|
|
2685
|
-
return localVarFp.getClubRoles(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2686
|
-
},
|
|
2687
|
-
/**
|
|
2688
|
-
*
|
|
2689
|
-
* @summary Mettre à jour un club existant
|
|
2690
|
-
* @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
|
|
2607
|
+
* @summary Récupère les paramètres d\'un club
|
|
2608
|
+
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
2691
2609
|
* @param {*} [options] Override http request option.
|
|
2692
2610
|
* @throws {RequiredError}
|
|
2693
2611
|
*/
|
|
2694
|
-
|
|
2695
|
-
return localVarFp.
|
|
2612
|
+
getClubSettings(requestParameters, options) {
|
|
2613
|
+
return localVarFp.getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2696
2614
|
},
|
|
2697
2615
|
};
|
|
2698
2616
|
};
|
|
2699
2617
|
/**
|
|
2700
|
-
*
|
|
2618
|
+
* StaffClubSettingsApi - object-oriented interface
|
|
2701
2619
|
* @export
|
|
2702
|
-
* @class
|
|
2620
|
+
* @class StaffClubSettingsApi
|
|
2703
2621
|
* @extends {BaseAPI}
|
|
2704
2622
|
*/
|
|
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
|
-
}
|
|
2623
|
+
export class StaffClubSettingsApi extends BaseAPI {
|
|
2750
2624
|
/**
|
|
2751
2625
|
*
|
|
2752
|
-
* @summary
|
|
2753
|
-
* @param {
|
|
2626
|
+
* @summary Récupère les paramètres d\'un club
|
|
2627
|
+
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
2754
2628
|
* @param {*} [options] Override http request option.
|
|
2755
2629
|
* @throws {RequiredError}
|
|
2756
|
-
* @memberof
|
|
2630
|
+
* @memberof StaffClubSettingsApi
|
|
2757
2631
|
*/
|
|
2758
|
-
|
|
2759
|
-
return
|
|
2632
|
+
getClubSettings(requestParameters, options) {
|
|
2633
|
+
return StaffClubSettingsApiFp(this.configuration).getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2760
2634
|
}
|
|
2761
2635
|
}
|
|
2762
2636
|
/**
|
|
2763
|
-
*
|
|
2637
|
+
* StaffClubsApi - axios parameter creator
|
|
2764
2638
|
* @export
|
|
2765
2639
|
*/
|
|
2766
|
-
export const
|
|
2640
|
+
export const StaffClubsApiAxiosParamCreator = function (configuration) {
|
|
2767
2641
|
return {
|
|
2768
2642
|
/**
|
|
2769
2643
|
*
|
|
2770
|
-
* @summary
|
|
2771
|
-
* @param {string} id ID du
|
|
2644
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2645
|
+
* @param {string} id ID du club
|
|
2772
2646
|
* @param {*} [options] Override http request option.
|
|
2773
2647
|
* @throws {RequiredError}
|
|
2774
2648
|
*/
|
|
2775
|
-
|
|
2649
|
+
getClubInfos: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2776
2650
|
// verify required parameter 'id' is not null or undefined
|
|
2777
|
-
assertParamExists('
|
|
2778
|
-
const localVarPath = `/api/
|
|
2651
|
+
assertParamExists('getClubInfos', 'id', id);
|
|
2652
|
+
const localVarPath = `/api/clubs/{id}/infos`
|
|
2779
2653
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2780
2654
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2781
2655
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2783,7 +2657,7 @@ export const SportsApiAxiosParamCreator = function (configuration) {
|
|
|
2783
2657
|
if (configuration) {
|
|
2784
2658
|
baseOptions = configuration.baseOptions;
|
|
2785
2659
|
}
|
|
2786
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2660
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2787
2661
|
const localVarHeaderParameter = {};
|
|
2788
2662
|
const localVarQueryParameter = {};
|
|
2789
2663
|
// authentication bearerAuth required
|
|
@@ -2797,38 +2671,100 @@ export const SportsApiAxiosParamCreator = function (configuration) {
|
|
|
2797
2671
|
options: localVarRequestOptions,
|
|
2798
2672
|
};
|
|
2799
2673
|
}),
|
|
2674
|
+
};
|
|
2675
|
+
};
|
|
2676
|
+
/**
|
|
2677
|
+
* StaffClubsApi - functional programming interface
|
|
2678
|
+
* @export
|
|
2679
|
+
*/
|
|
2680
|
+
export const StaffClubsApiFp = function (configuration) {
|
|
2681
|
+
const localVarAxiosParamCreator = StaffClubsApiAxiosParamCreator(configuration);
|
|
2682
|
+
return {
|
|
2800
2683
|
/**
|
|
2801
2684
|
*
|
|
2802
|
-
* @summary
|
|
2803
|
-
* @param {string} id ID du
|
|
2804
|
-
* @param {UpdateSportRequest} updateSportRequest
|
|
2685
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2686
|
+
* @param {string} id ID du club
|
|
2805
2687
|
* @param {*} [options] Override http request option.
|
|
2806
2688
|
* @throws {RequiredError}
|
|
2807
2689
|
*/
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2690
|
+
getClubInfos(id, options) {
|
|
2691
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2692
|
+
var _a, _b, _c;
|
|
2693
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfos(id, options);
|
|
2694
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2695
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubsApi.getClubInfos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2696
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2697
|
+
});
|
|
2698
|
+
},
|
|
2699
|
+
};
|
|
2700
|
+
};
|
|
2701
|
+
/**
|
|
2702
|
+
* StaffClubsApi - factory interface
|
|
2703
|
+
* @export
|
|
2704
|
+
*/
|
|
2705
|
+
export const StaffClubsApiFactory = function (configuration, basePath, axios) {
|
|
2706
|
+
const localVarFp = StaffClubsApiFp(configuration);
|
|
2707
|
+
return {
|
|
2708
|
+
/**
|
|
2709
|
+
*
|
|
2710
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2711
|
+
* @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
|
|
2712
|
+
* @param {*} [options] Override http request option.
|
|
2713
|
+
* @throws {RequiredError}
|
|
2714
|
+
*/
|
|
2715
|
+
getClubInfos(requestParameters, options) {
|
|
2716
|
+
return localVarFp.getClubInfos(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2717
|
+
},
|
|
2718
|
+
};
|
|
2719
|
+
};
|
|
2720
|
+
/**
|
|
2721
|
+
* StaffClubsApi - object-oriented interface
|
|
2722
|
+
* @export
|
|
2723
|
+
* @class StaffClubsApi
|
|
2724
|
+
* @extends {BaseAPI}
|
|
2725
|
+
*/
|
|
2726
|
+
export class StaffClubsApi extends BaseAPI {
|
|
2727
|
+
/**
|
|
2728
|
+
*
|
|
2729
|
+
* @summary Get club information (name, address, email, etc.)
|
|
2730
|
+
* @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
|
|
2731
|
+
* @param {*} [options] Override http request option.
|
|
2732
|
+
* @throws {RequiredError}
|
|
2733
|
+
* @memberof StaffClubsApi
|
|
2734
|
+
*/
|
|
2735
|
+
getClubInfos(requestParameters, options) {
|
|
2736
|
+
return StaffClubsApiFp(this.configuration).getClubInfos(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2737
|
+
}
|
|
2738
|
+
}
|
|
2739
|
+
/**
|
|
2740
|
+
* StaffProfileApi - axios parameter creator
|
|
2741
|
+
* @export
|
|
2742
|
+
*/
|
|
2743
|
+
export const StaffProfileApiAxiosParamCreator = function (configuration) {
|
|
2744
|
+
return {
|
|
2745
|
+
/**
|
|
2746
|
+
*
|
|
2747
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
2748
|
+
* @param {*} [options] Override http request option.
|
|
2749
|
+
* @throws {RequiredError}
|
|
2750
|
+
*/
|
|
2751
|
+
getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2752
|
+
const localVarPath = `/api/users/me/roles`;
|
|
2815
2753
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2816
2754
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2817
2755
|
let baseOptions;
|
|
2818
2756
|
if (configuration) {
|
|
2819
2757
|
baseOptions = configuration.baseOptions;
|
|
2820
2758
|
}
|
|
2821
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2759
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2822
2760
|
const localVarHeaderParameter = {};
|
|
2823
2761
|
const localVarQueryParameter = {};
|
|
2824
2762
|
// authentication bearerAuth required
|
|
2825
2763
|
// http bearer authentication required
|
|
2826
2764
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2827
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2828
2765
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2829
2766
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2830
2767
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2831
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateSportRequest, localVarRequestOptions, configuration);
|
|
2832
2768
|
return {
|
|
2833
2769
|
url: toPathString(localVarUrlObj),
|
|
2834
2770
|
options: localVarRequestOptions,
|
|
@@ -2837,123 +2773,82 @@ export const SportsApiAxiosParamCreator = function (configuration) {
|
|
|
2837
2773
|
};
|
|
2838
2774
|
};
|
|
2839
2775
|
/**
|
|
2840
|
-
*
|
|
2776
|
+
* StaffProfileApi - functional programming interface
|
|
2841
2777
|
* @export
|
|
2842
2778
|
*/
|
|
2843
|
-
export const
|
|
2844
|
-
const localVarAxiosParamCreator =
|
|
2779
|
+
export const StaffProfileApiFp = function (configuration) {
|
|
2780
|
+
const localVarAxiosParamCreator = StaffProfileApiAxiosParamCreator(configuration);
|
|
2845
2781
|
return {
|
|
2846
2782
|
/**
|
|
2847
2783
|
*
|
|
2848
|
-
* @summary
|
|
2849
|
-
* @param {string} id ID du sport
|
|
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
|
|
2784
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
2867
2785
|
* @param {*} [options] Override http request option.
|
|
2868
2786
|
* @throws {RequiredError}
|
|
2869
2787
|
*/
|
|
2870
|
-
|
|
2788
|
+
getUserRolesInClubs(options) {
|
|
2871
2789
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2872
2790
|
var _a, _b, _c;
|
|
2873
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2791
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
|
|
2874
2792
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2875
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2793
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffProfileApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2876
2794
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2877
2795
|
});
|
|
2878
2796
|
},
|
|
2879
2797
|
};
|
|
2880
2798
|
};
|
|
2881
2799
|
/**
|
|
2882
|
-
*
|
|
2800
|
+
* StaffProfileApi - factory interface
|
|
2883
2801
|
* @export
|
|
2884
2802
|
*/
|
|
2885
|
-
export const
|
|
2886
|
-
const localVarFp =
|
|
2803
|
+
export const StaffProfileApiFactory = function (configuration, basePath, axios) {
|
|
2804
|
+
const localVarFp = StaffProfileApiFp(configuration);
|
|
2887
2805
|
return {
|
|
2888
2806
|
/**
|
|
2889
2807
|
*
|
|
2890
|
-
* @summary
|
|
2891
|
-
* @param {SportsApiDeleteSportRequest} requestParameters Request parameters.
|
|
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.
|
|
2808
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
2902
2809
|
* @param {*} [options] Override http request option.
|
|
2903
2810
|
* @throws {RequiredError}
|
|
2904
2811
|
*/
|
|
2905
|
-
|
|
2906
|
-
return localVarFp.
|
|
2812
|
+
getUserRolesInClubs(options) {
|
|
2813
|
+
return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
|
|
2907
2814
|
},
|
|
2908
2815
|
};
|
|
2909
2816
|
};
|
|
2910
2817
|
/**
|
|
2911
|
-
*
|
|
2818
|
+
* StaffProfileApi - object-oriented interface
|
|
2912
2819
|
* @export
|
|
2913
|
-
* @class
|
|
2820
|
+
* @class StaffProfileApi
|
|
2914
2821
|
* @extends {BaseAPI}
|
|
2915
2822
|
*/
|
|
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
|
-
}
|
|
2823
|
+
export class StaffProfileApi extends BaseAPI {
|
|
2928
2824
|
/**
|
|
2929
2825
|
*
|
|
2930
|
-
* @summary
|
|
2931
|
-
* @param {SportsApiUpdateSportRequest} requestParameters Request parameters.
|
|
2826
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
2932
2827
|
* @param {*} [options] Override http request option.
|
|
2933
2828
|
* @throws {RequiredError}
|
|
2934
|
-
* @memberof
|
|
2829
|
+
* @memberof StaffProfileApi
|
|
2935
2830
|
*/
|
|
2936
|
-
|
|
2937
|
-
return
|
|
2831
|
+
getUserRolesInClubs(options) {
|
|
2832
|
+
return StaffProfileApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
|
|
2938
2833
|
}
|
|
2939
2834
|
}
|
|
2940
2835
|
/**
|
|
2941
|
-
*
|
|
2836
|
+
* StaffSportsApi - axios parameter creator
|
|
2942
2837
|
* @export
|
|
2943
2838
|
*/
|
|
2944
|
-
export const
|
|
2839
|
+
export const StaffSportsApiAxiosParamCreator = function (configuration) {
|
|
2945
2840
|
return {
|
|
2946
2841
|
/**
|
|
2947
2842
|
*
|
|
2948
|
-
* @summary Récupère
|
|
2949
|
-
* @param {
|
|
2843
|
+
* @summary Récupère la liste des sports d\'un club
|
|
2844
|
+
* @param {GetAllSportsRequest} getAllSportsRequest
|
|
2950
2845
|
* @param {*} [options] Override http request option.
|
|
2951
2846
|
* @throws {RequiredError}
|
|
2952
2847
|
*/
|
|
2953
|
-
|
|
2954
|
-
// verify required parameter '
|
|
2955
|
-
assertParamExists('
|
|
2956
|
-
const localVarPath = `/api/
|
|
2848
|
+
getAllSports: (getAllSportsRequest_1, ...args_1) => __awaiter(this, [getAllSportsRequest_1, ...args_1], void 0, function* (getAllSportsRequest, options = {}) {
|
|
2849
|
+
// verify required parameter 'getAllSportsRequest' is not null or undefined
|
|
2850
|
+
assertParamExists('getAllSports', 'getAllSportsRequest', getAllSportsRequest);
|
|
2851
|
+
const localVarPath = `/api/sports`;
|
|
2957
2852
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2958
2853
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2959
2854
|
let baseOptions;
|
|
@@ -2970,7 +2865,7 @@ export const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
|
2970
2865
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2971
2866
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2972
2867
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2973
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2868
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getAllSportsRequest, localVarRequestOptions, configuration);
|
|
2974
2869
|
return {
|
|
2975
2870
|
url: toPathString(localVarUrlObj),
|
|
2976
2871
|
options: localVarRequestOptions,
|
|
@@ -2979,92 +2874,125 @@ export const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
|
2979
2874
|
};
|
|
2980
2875
|
};
|
|
2981
2876
|
/**
|
|
2982
|
-
*
|
|
2877
|
+
* StaffSportsApi - functional programming interface
|
|
2983
2878
|
* @export
|
|
2984
2879
|
*/
|
|
2985
|
-
export const
|
|
2986
|
-
const localVarAxiosParamCreator =
|
|
2880
|
+
export const StaffSportsApiFp = function (configuration) {
|
|
2881
|
+
const localVarAxiosParamCreator = StaffSportsApiAxiosParamCreator(configuration);
|
|
2987
2882
|
return {
|
|
2988
2883
|
/**
|
|
2989
2884
|
*
|
|
2990
|
-
* @summary Récupère
|
|
2991
|
-
* @param {
|
|
2885
|
+
* @summary Récupère la liste des sports d\'un club
|
|
2886
|
+
* @param {GetAllSportsRequest} getAllSportsRequest
|
|
2992
2887
|
* @param {*} [options] Override http request option.
|
|
2993
2888
|
* @throws {RequiredError}
|
|
2994
2889
|
*/
|
|
2995
|
-
|
|
2890
|
+
getAllSports(getAllSportsRequest, options) {
|
|
2996
2891
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2997
2892
|
var _a, _b, _c;
|
|
2998
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2893
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllSports(getAllSportsRequest, options);
|
|
2999
2894
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3000
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2895
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffSportsApi.getAllSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3001
2896
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3002
2897
|
});
|
|
3003
2898
|
},
|
|
3004
2899
|
};
|
|
3005
2900
|
};
|
|
3006
2901
|
/**
|
|
3007
|
-
*
|
|
2902
|
+
* StaffSportsApi - factory interface
|
|
3008
2903
|
* @export
|
|
3009
2904
|
*/
|
|
3010
|
-
export const
|
|
3011
|
-
const localVarFp =
|
|
2905
|
+
export const StaffSportsApiFactory = function (configuration, basePath, axios) {
|
|
2906
|
+
const localVarFp = StaffSportsApiFp(configuration);
|
|
3012
2907
|
return {
|
|
3013
2908
|
/**
|
|
3014
2909
|
*
|
|
3015
|
-
* @summary Récupère
|
|
3016
|
-
* @param {
|
|
2910
|
+
* @summary Récupère la liste des sports d\'un club
|
|
2911
|
+
* @param {StaffSportsApiGetAllSportsRequest} requestParameters Request parameters.
|
|
3017
2912
|
* @param {*} [options] Override http request option.
|
|
3018
2913
|
* @throws {RequiredError}
|
|
3019
2914
|
*/
|
|
3020
|
-
|
|
3021
|
-
return localVarFp.
|
|
2915
|
+
getAllSports(requestParameters, options) {
|
|
2916
|
+
return localVarFp.getAllSports(requestParameters.getAllSportsRequest, options).then((request) => request(axios, basePath));
|
|
3022
2917
|
},
|
|
3023
2918
|
};
|
|
3024
2919
|
};
|
|
3025
2920
|
/**
|
|
3026
|
-
*
|
|
2921
|
+
* StaffSportsApi - object-oriented interface
|
|
3027
2922
|
* @export
|
|
3028
|
-
* @class
|
|
2923
|
+
* @class StaffSportsApi
|
|
3029
2924
|
* @extends {BaseAPI}
|
|
3030
2925
|
*/
|
|
3031
|
-
export class
|
|
2926
|
+
export class StaffSportsApi extends BaseAPI {
|
|
3032
2927
|
/**
|
|
3033
2928
|
*
|
|
3034
|
-
* @summary Récupère
|
|
3035
|
-
* @param {
|
|
2929
|
+
* @summary Récupère la liste des sports d\'un club
|
|
2930
|
+
* @param {StaffSportsApiGetAllSportsRequest} requestParameters Request parameters.
|
|
3036
2931
|
* @param {*} [options] Override http request option.
|
|
3037
2932
|
* @throws {RequiredError}
|
|
3038
|
-
* @memberof
|
|
2933
|
+
* @memberof StaffSportsApi
|
|
3039
2934
|
*/
|
|
3040
|
-
|
|
3041
|
-
return
|
|
2935
|
+
getAllSports(requestParameters, options) {
|
|
2936
|
+
return StaffSportsApiFp(this.configuration).getAllSports(requestParameters.getAllSportsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3042
2937
|
}
|
|
3043
2938
|
}
|
|
3044
2939
|
/**
|
|
3045
|
-
*
|
|
2940
|
+
* UserApi - axios parameter creator
|
|
3046
2941
|
* @export
|
|
3047
2942
|
*/
|
|
3048
|
-
export const
|
|
2943
|
+
export const UserApiAxiosParamCreator = function (configuration) {
|
|
3049
2944
|
return {
|
|
3050
2945
|
/**
|
|
3051
2946
|
*
|
|
3052
|
-
* @summary
|
|
3053
|
-
* @param {
|
|
2947
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
2948
|
+
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
3054
2949
|
* @param {*} [options] Override http request option.
|
|
3055
2950
|
* @throws {RequiredError}
|
|
3056
2951
|
*/
|
|
3057
|
-
|
|
3058
|
-
// verify required parameter '
|
|
3059
|
-
assertParamExists('
|
|
3060
|
-
const localVarPath = `/api/
|
|
2952
|
+
subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
|
|
2953
|
+
// verify required parameter 'subscribeToClubRequestBody' is not null or undefined
|
|
2954
|
+
assertParamExists('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
|
|
2955
|
+
const localVarPath = `/api/users/me/subscribe`;
|
|
2956
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2957
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2958
|
+
let baseOptions;
|
|
2959
|
+
if (configuration) {
|
|
2960
|
+
baseOptions = configuration.baseOptions;
|
|
2961
|
+
}
|
|
2962
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2963
|
+
const localVarHeaderParameter = {};
|
|
2964
|
+
const localVarQueryParameter = {};
|
|
2965
|
+
// authentication bearerAuth required
|
|
2966
|
+
// http bearer authentication required
|
|
2967
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2968
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2969
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2970
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2971
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2972
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscribeToClubRequestBody, localVarRequestOptions, configuration);
|
|
2973
|
+
return {
|
|
2974
|
+
url: toPathString(localVarUrlObj),
|
|
2975
|
+
options: localVarRequestOptions,
|
|
2976
|
+
};
|
|
2977
|
+
}),
|
|
2978
|
+
/**
|
|
2979
|
+
*
|
|
2980
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
2981
|
+
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
2982
|
+
* @param {*} [options] Override http request option.
|
|
2983
|
+
* @throws {RequiredError}
|
|
2984
|
+
*/
|
|
2985
|
+
updateCustomer: (updateCustomerRequestBody_1, ...args_1) => __awaiter(this, [updateCustomerRequestBody_1, ...args_1], void 0, function* (updateCustomerRequestBody, options = {}) {
|
|
2986
|
+
// verify required parameter 'updateCustomerRequestBody' is not null or undefined
|
|
2987
|
+
assertParamExists('updateCustomer', 'updateCustomerRequestBody', updateCustomerRequestBody);
|
|
2988
|
+
const localVarPath = `/api/users/me/customer`;
|
|
3061
2989
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3062
2990
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3063
2991
|
let baseOptions;
|
|
3064
2992
|
if (configuration) {
|
|
3065
2993
|
baseOptions = configuration.baseOptions;
|
|
3066
2994
|
}
|
|
3067
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2995
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3068
2996
|
const localVarHeaderParameter = {};
|
|
3069
2997
|
const localVarQueryParameter = {};
|
|
3070
2998
|
// authentication bearerAuth required
|
|
@@ -3074,7 +3002,7 @@ export const StaffSportsApiAxiosParamCreator = function (configuration) {
|
|
|
3074
3002
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3075
3003
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3076
3004
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3077
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3005
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequestBody, localVarRequestOptions, configuration);
|
|
3078
3006
|
return {
|
|
3079
3007
|
url: toPathString(localVarUrlObj),
|
|
3080
3008
|
options: localVarRequestOptions,
|
|
@@ -3083,66 +3011,103 @@ export const StaffSportsApiAxiosParamCreator = function (configuration) {
|
|
|
3083
3011
|
};
|
|
3084
3012
|
};
|
|
3085
3013
|
/**
|
|
3086
|
-
*
|
|
3014
|
+
* UserApi - functional programming interface
|
|
3087
3015
|
* @export
|
|
3088
3016
|
*/
|
|
3089
|
-
export const
|
|
3090
|
-
const localVarAxiosParamCreator =
|
|
3017
|
+
export const UserApiFp = function (configuration) {
|
|
3018
|
+
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
|
|
3091
3019
|
return {
|
|
3092
3020
|
/**
|
|
3093
3021
|
*
|
|
3094
|
-
* @summary
|
|
3095
|
-
* @param {
|
|
3022
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
3023
|
+
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
3096
3024
|
* @param {*} [options] Override http request option.
|
|
3097
3025
|
* @throws {RequiredError}
|
|
3098
3026
|
*/
|
|
3099
|
-
|
|
3027
|
+
subscribeToClub(subscribeToClubRequestBody, options) {
|
|
3100
3028
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3101
3029
|
var _a, _b, _c;
|
|
3102
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3030
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
|
|
3103
3031
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3104
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3032
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.subscribeToClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3033
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3034
|
+
});
|
|
3035
|
+
},
|
|
3036
|
+
/**
|
|
3037
|
+
*
|
|
3038
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
3039
|
+
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
3040
|
+
* @param {*} [options] Override http request option.
|
|
3041
|
+
* @throws {RequiredError}
|
|
3042
|
+
*/
|
|
3043
|
+
updateCustomer(updateCustomerRequestBody, options) {
|
|
3044
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3045
|
+
var _a, _b, _c;
|
|
3046
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomer(updateCustomerRequestBody, options);
|
|
3047
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3048
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.updateCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3105
3049
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3106
3050
|
});
|
|
3107
3051
|
},
|
|
3108
3052
|
};
|
|
3109
3053
|
};
|
|
3110
3054
|
/**
|
|
3111
|
-
*
|
|
3055
|
+
* UserApi - factory interface
|
|
3112
3056
|
* @export
|
|
3113
3057
|
*/
|
|
3114
|
-
export const
|
|
3115
|
-
const localVarFp =
|
|
3058
|
+
export const UserApiFactory = function (configuration, basePath, axios) {
|
|
3059
|
+
const localVarFp = UserApiFp(configuration);
|
|
3116
3060
|
return {
|
|
3117
3061
|
/**
|
|
3118
3062
|
*
|
|
3119
|
-
* @summary
|
|
3120
|
-
* @param {
|
|
3063
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
3064
|
+
* @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
3121
3065
|
* @param {*} [options] Override http request option.
|
|
3122
3066
|
* @throws {RequiredError}
|
|
3123
3067
|
*/
|
|
3124
|
-
|
|
3125
|
-
return localVarFp.
|
|
3068
|
+
subscribeToClub(requestParameters, options) {
|
|
3069
|
+
return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
|
|
3070
|
+
},
|
|
3071
|
+
/**
|
|
3072
|
+
*
|
|
3073
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
3074
|
+
* @param {UserApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
3075
|
+
* @param {*} [options] Override http request option.
|
|
3076
|
+
* @throws {RequiredError}
|
|
3077
|
+
*/
|
|
3078
|
+
updateCustomer(requestParameters, options) {
|
|
3079
|
+
return localVarFp.updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(axios, basePath));
|
|
3126
3080
|
},
|
|
3127
3081
|
};
|
|
3128
3082
|
};
|
|
3129
3083
|
/**
|
|
3130
|
-
*
|
|
3084
|
+
* UserApi - object-oriented interface
|
|
3131
3085
|
* @export
|
|
3132
|
-
* @class
|
|
3086
|
+
* @class UserApi
|
|
3133
3087
|
* @extends {BaseAPI}
|
|
3134
3088
|
*/
|
|
3135
|
-
export class
|
|
3089
|
+
export class UserApi extends BaseAPI {
|
|
3136
3090
|
/**
|
|
3137
3091
|
*
|
|
3138
|
-
* @summary
|
|
3139
|
-
* @param {
|
|
3092
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
3093
|
+
* @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
3140
3094
|
* @param {*} [options] Override http request option.
|
|
3141
3095
|
* @throws {RequiredError}
|
|
3142
|
-
* @memberof
|
|
3096
|
+
* @memberof UserApi
|
|
3143
3097
|
*/
|
|
3144
|
-
|
|
3145
|
-
return
|
|
3098
|
+
subscribeToClub(requestParameters, options) {
|
|
3099
|
+
return UserApiFp(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3100
|
+
}
|
|
3101
|
+
/**
|
|
3102
|
+
*
|
|
3103
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
3104
|
+
* @param {UserApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
3105
|
+
* @param {*} [options] Override http request option.
|
|
3106
|
+
* @throws {RequiredError}
|
|
3107
|
+
* @memberof UserApi
|
|
3108
|
+
*/
|
|
3109
|
+
updateCustomer(requestParameters, options) {
|
|
3110
|
+
return UserApiFp(this.configuration).updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3146
3111
|
}
|
|
3147
3112
|
}
|
|
3148
3113
|
/**
|
|
@@ -3497,6 +3462,39 @@ export const UserBookingsApiAxiosParamCreator = function (configuration) {
|
|
|
3497
3462
|
options: localVarRequestOptions,
|
|
3498
3463
|
};
|
|
3499
3464
|
}),
|
|
3465
|
+
/**
|
|
3466
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3467
|
+
* @summary Créer une réservation
|
|
3468
|
+
* @param {CreateBookingRequest} createBookingRequest
|
|
3469
|
+
* @param {*} [options] Override http request option.
|
|
3470
|
+
* @throws {RequiredError}
|
|
3471
|
+
*/
|
|
3472
|
+
createBooking: (createBookingRequest_1, ...args_1) => __awaiter(this, [createBookingRequest_1, ...args_1], void 0, function* (createBookingRequest, options = {}) {
|
|
3473
|
+
// verify required parameter 'createBookingRequest' is not null or undefined
|
|
3474
|
+
assertParamExists('createBooking', 'createBookingRequest', createBookingRequest);
|
|
3475
|
+
const localVarPath = `/api/bookings`;
|
|
3476
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3477
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3478
|
+
let baseOptions;
|
|
3479
|
+
if (configuration) {
|
|
3480
|
+
baseOptions = configuration.baseOptions;
|
|
3481
|
+
}
|
|
3482
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3483
|
+
const localVarHeaderParameter = {};
|
|
3484
|
+
const localVarQueryParameter = {};
|
|
3485
|
+
// authentication bearerAuth required
|
|
3486
|
+
// http bearer authentication required
|
|
3487
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3488
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3489
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3490
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3491
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3492
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createBookingRequest, localVarRequestOptions, configuration);
|
|
3493
|
+
return {
|
|
3494
|
+
url: toPathString(localVarUrlObj),
|
|
3495
|
+
options: localVarRequestOptions,
|
|
3496
|
+
};
|
|
3497
|
+
}),
|
|
3500
3498
|
};
|
|
3501
3499
|
};
|
|
3502
3500
|
/**
|
|
@@ -3522,6 +3520,22 @@ export const UserBookingsApiFp = function (configuration) {
|
|
|
3522
3520
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3523
3521
|
});
|
|
3524
3522
|
},
|
|
3523
|
+
/**
|
|
3524
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3525
|
+
* @summary Créer une réservation
|
|
3526
|
+
* @param {CreateBookingRequest} createBookingRequest
|
|
3527
|
+
* @param {*} [options] Override http request option.
|
|
3528
|
+
* @throws {RequiredError}
|
|
3529
|
+
*/
|
|
3530
|
+
createBooking(createBookingRequest, options) {
|
|
3531
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3532
|
+
var _a, _b, _c;
|
|
3533
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBooking(createBookingRequest, options);
|
|
3534
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3535
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserBookingsApi.createBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3536
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3537
|
+
});
|
|
3538
|
+
},
|
|
3525
3539
|
};
|
|
3526
3540
|
};
|
|
3527
3541
|
/**
|
|
@@ -3541,6 +3555,16 @@ export const UserBookingsApiFactory = function (configuration, basePath, axios)
|
|
|
3541
3555
|
blockSlot(requestParameters, options) {
|
|
3542
3556
|
return localVarFp.blockSlot(requestParameters.slotId, options).then((request) => request(axios, basePath));
|
|
3543
3557
|
},
|
|
3558
|
+
/**
|
|
3559
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3560
|
+
* @summary Créer une réservation
|
|
3561
|
+
* @param {UserBookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
3562
|
+
* @param {*} [options] Override http request option.
|
|
3563
|
+
* @throws {RequiredError}
|
|
3564
|
+
*/
|
|
3565
|
+
createBooking(requestParameters, options) {
|
|
3566
|
+
return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
|
|
3567
|
+
},
|
|
3544
3568
|
};
|
|
3545
3569
|
};
|
|
3546
3570
|
/**
|
|
@@ -3561,6 +3585,17 @@ export class UserBookingsApi extends BaseAPI {
|
|
|
3561
3585
|
blockSlot(requestParameters, options) {
|
|
3562
3586
|
return UserBookingsApiFp(this.configuration).blockSlot(requestParameters.slotId, options).then((request) => request(this.axios, this.basePath));
|
|
3563
3587
|
}
|
|
3588
|
+
/**
|
|
3589
|
+
* Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
3590
|
+
* @summary Créer une réservation
|
|
3591
|
+
* @param {UserBookingsApiCreateBookingRequest} requestParameters Request parameters.
|
|
3592
|
+
* @param {*} [options] Override http request option.
|
|
3593
|
+
* @throws {RequiredError}
|
|
3594
|
+
* @memberof UserBookingsApi
|
|
3595
|
+
*/
|
|
3596
|
+
createBooking(requestParameters, options) {
|
|
3597
|
+
return UserBookingsApiFp(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3598
|
+
}
|
|
3564
3599
|
}
|
|
3565
3600
|
/**
|
|
3566
3601
|
* UserClubCourtsApi - axios parameter creator
|
|
@@ -3708,6 +3743,94 @@ export const UserClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
3708
3743
|
options: localVarRequestOptions,
|
|
3709
3744
|
};
|
|
3710
3745
|
}),
|
|
3746
|
+
/**
|
|
3747
|
+
*
|
|
3748
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
3749
|
+
* @param {string} id ID du club
|
|
3750
|
+
* @param {string} sportId ID du sport
|
|
3751
|
+
* @param {string} [start] Date de début (format ISO)
|
|
3752
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
3753
|
+
* @param {*} [options] Override http request option.
|
|
3754
|
+
* @throws {RequiredError}
|
|
3755
|
+
*/
|
|
3756
|
+
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 = {}) {
|
|
3757
|
+
// verify required parameter 'id' is not null or undefined
|
|
3758
|
+
assertParamExists('getAvailableSlotsBySports', 'id', id);
|
|
3759
|
+
// verify required parameter 'sportId' is not null or undefined
|
|
3760
|
+
assertParamExists('getAvailableSlotsBySports', 'sportId', sportId);
|
|
3761
|
+
const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots`
|
|
3762
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3763
|
+
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
|
|
3764
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3765
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3766
|
+
let baseOptions;
|
|
3767
|
+
if (configuration) {
|
|
3768
|
+
baseOptions = configuration.baseOptions;
|
|
3769
|
+
}
|
|
3770
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3771
|
+
const localVarHeaderParameter = {};
|
|
3772
|
+
const localVarQueryParameter = {};
|
|
3773
|
+
// authentication bearerAuth required
|
|
3774
|
+
// http bearer authentication required
|
|
3775
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3776
|
+
if (start !== undefined) {
|
|
3777
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
3778
|
+
start.toISOString() :
|
|
3779
|
+
start;
|
|
3780
|
+
}
|
|
3781
|
+
if (end !== undefined) {
|
|
3782
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
3783
|
+
end.toISOString() :
|
|
3784
|
+
end;
|
|
3785
|
+
}
|
|
3786
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3787
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3788
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3789
|
+
return {
|
|
3790
|
+
url: toPathString(localVarUrlObj),
|
|
3791
|
+
options: localVarRequestOptions,
|
|
3792
|
+
};
|
|
3793
|
+
}),
|
|
3794
|
+
/**
|
|
3795
|
+
*
|
|
3796
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
3797
|
+
* @param {string} id ID du club
|
|
3798
|
+
* @param {string} sportId ID du sport
|
|
3799
|
+
* @param {string} day Date du jour (format YYYY-MM-DD)
|
|
3800
|
+
* @param {*} [options] Override http request option.
|
|
3801
|
+
* @throws {RequiredError}
|
|
3802
|
+
*/
|
|
3803
|
+
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 = {}) {
|
|
3804
|
+
// verify required parameter 'id' is not null or undefined
|
|
3805
|
+
assertParamExists('getAvailableSlotsBySportsAndDay', 'id', id);
|
|
3806
|
+
// verify required parameter 'sportId' is not null or undefined
|
|
3807
|
+
assertParamExists('getAvailableSlotsBySportsAndDay', 'sportId', sportId);
|
|
3808
|
+
// verify required parameter 'day' is not null or undefined
|
|
3809
|
+
assertParamExists('getAvailableSlotsBySportsAndDay', 'day', day);
|
|
3810
|
+
const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots/{day}`
|
|
3811
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3812
|
+
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)))
|
|
3813
|
+
.replace(`{${"day"}}`, encodeURIComponent(String(day)));
|
|
3814
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3815
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3816
|
+
let baseOptions;
|
|
3817
|
+
if (configuration) {
|
|
3818
|
+
baseOptions = configuration.baseOptions;
|
|
3819
|
+
}
|
|
3820
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3821
|
+
const localVarHeaderParameter = {};
|
|
3822
|
+
const localVarQueryParameter = {};
|
|
3823
|
+
// authentication bearerAuth required
|
|
3824
|
+
// http bearer authentication required
|
|
3825
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3826
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3827
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3828
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3829
|
+
return {
|
|
3830
|
+
url: toPathString(localVarUrlObj),
|
|
3831
|
+
options: localVarRequestOptions,
|
|
3832
|
+
};
|
|
3833
|
+
}),
|
|
3711
3834
|
};
|
|
3712
3835
|
};
|
|
3713
3836
|
/**
|
|
@@ -3724,12 +3847,49 @@ export const UserClubSlotsApiFp = function (configuration) {
|
|
|
3724
3847
|
* @param {*} [options] Override http request option.
|
|
3725
3848
|
* @throws {RequiredError}
|
|
3726
3849
|
*/
|
|
3727
|
-
getAvailableSlotsByClub(clubID, options) {
|
|
3850
|
+
getAvailableSlotsByClub(clubID, options) {
|
|
3851
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3852
|
+
var _a, _b, _c;
|
|
3853
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsByClub(clubID, options);
|
|
3854
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3855
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserClubSlotsApi.getAvailableSlotsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3856
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3857
|
+
});
|
|
3858
|
+
},
|
|
3859
|
+
/**
|
|
3860
|
+
*
|
|
3861
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
3862
|
+
* @param {string} id ID du club
|
|
3863
|
+
* @param {string} sportId ID du sport
|
|
3864
|
+
* @param {string} [start] Date de début (format ISO)
|
|
3865
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
3866
|
+
* @param {*} [options] Override http request option.
|
|
3867
|
+
* @throws {RequiredError}
|
|
3868
|
+
*/
|
|
3869
|
+
getAvailableSlotsBySports(id, sportId, start, end, options) {
|
|
3870
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3871
|
+
var _a, _b, _c;
|
|
3872
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsBySports(id, sportId, start, end, options);
|
|
3873
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3874
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserClubSlotsApi.getAvailableSlotsBySports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3875
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3876
|
+
});
|
|
3877
|
+
},
|
|
3878
|
+
/**
|
|
3879
|
+
*
|
|
3880
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
3881
|
+
* @param {string} id ID du club
|
|
3882
|
+
* @param {string} sportId ID du sport
|
|
3883
|
+
* @param {string} day Date du jour (format YYYY-MM-DD)
|
|
3884
|
+
* @param {*} [options] Override http request option.
|
|
3885
|
+
* @throws {RequiredError}
|
|
3886
|
+
*/
|
|
3887
|
+
getAvailableSlotsBySportsAndDay(id, sportId, day, options) {
|
|
3728
3888
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3729
3889
|
var _a, _b, _c;
|
|
3730
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3890
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsBySportsAndDay(id, sportId, day, options);
|
|
3731
3891
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3732
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserClubSlotsApi.
|
|
3892
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserClubSlotsApi.getAvailableSlotsBySportsAndDay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3733
3893
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3734
3894
|
});
|
|
3735
3895
|
},
|
|
@@ -3752,6 +3912,26 @@ export const UserClubSlotsApiFactory = function (configuration, basePath, axios)
|
|
|
3752
3912
|
getAvailableSlotsByClub(requestParameters, options) {
|
|
3753
3913
|
return localVarFp.getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(axios, basePath));
|
|
3754
3914
|
},
|
|
3915
|
+
/**
|
|
3916
|
+
*
|
|
3917
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
3918
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
|
|
3919
|
+
* @param {*} [options] Override http request option.
|
|
3920
|
+
* @throws {RequiredError}
|
|
3921
|
+
*/
|
|
3922
|
+
getAvailableSlotsBySports(requestParameters, options) {
|
|
3923
|
+
return localVarFp.getAvailableSlotsBySports(requestParameters.id, requestParameters.sportId, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
3924
|
+
},
|
|
3925
|
+
/**
|
|
3926
|
+
*
|
|
3927
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
3928
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsAndDayRequest} requestParameters Request parameters.
|
|
3929
|
+
* @param {*} [options] Override http request option.
|
|
3930
|
+
* @throws {RequiredError}
|
|
3931
|
+
*/
|
|
3932
|
+
getAvailableSlotsBySportsAndDay(requestParameters, options) {
|
|
3933
|
+
return localVarFp.getAvailableSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(axios, basePath));
|
|
3934
|
+
},
|
|
3755
3935
|
};
|
|
3756
3936
|
};
|
|
3757
3937
|
/**
|
|
@@ -3772,6 +3952,28 @@ export class UserClubSlotsApi extends BaseAPI {
|
|
|
3772
3952
|
getAvailableSlotsByClub(requestParameters, options) {
|
|
3773
3953
|
return UserClubSlotsApiFp(this.configuration).getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(this.axios, this.basePath));
|
|
3774
3954
|
}
|
|
3955
|
+
/**
|
|
3956
|
+
*
|
|
3957
|
+
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
3958
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
|
|
3959
|
+
* @param {*} [options] Override http request option.
|
|
3960
|
+
* @throws {RequiredError}
|
|
3961
|
+
* @memberof UserClubSlotsApi
|
|
3962
|
+
*/
|
|
3963
|
+
getAvailableSlotsBySports(requestParameters, options) {
|
|
3964
|
+
return UserClubSlotsApiFp(this.configuration).getAvailableSlotsBySports(requestParameters.id, requestParameters.sportId, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
3965
|
+
}
|
|
3966
|
+
/**
|
|
3967
|
+
*
|
|
3968
|
+
* @summary Obtenir les slots disponibles pour un jour donné
|
|
3969
|
+
* @param {UserClubSlotsApiGetAvailableSlotsBySportsAndDayRequest} requestParameters Request parameters.
|
|
3970
|
+
* @param {*} [options] Override http request option.
|
|
3971
|
+
* @throws {RequiredError}
|
|
3972
|
+
* @memberof UserClubSlotsApi
|
|
3973
|
+
*/
|
|
3974
|
+
getAvailableSlotsBySportsAndDay(requestParameters, options) {
|
|
3975
|
+
return UserClubSlotsApiFp(this.configuration).getAvailableSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(this.axios, this.basePath));
|
|
3976
|
+
}
|
|
3775
3977
|
}
|
|
3776
3978
|
/**
|
|
3777
3979
|
* UserClubSportsApi - axios parameter creator
|
|
@@ -4079,34 +4281,6 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
4079
4281
|
options: localVarRequestOptions,
|
|
4080
4282
|
};
|
|
4081
4283
|
}),
|
|
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
4284
|
/**
|
|
4111
4285
|
*
|
|
4112
4286
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4198,21 +4372,6 @@ export const UserProfileApiFp = function (configuration) {
|
|
|
4198
4372
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4199
4373
|
});
|
|
4200
4374
|
},
|
|
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
4375
|
/**
|
|
4217
4376
|
*
|
|
4218
4377
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4267,15 +4426,6 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
4267
4426
|
getUserInfo(options) {
|
|
4268
4427
|
return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
|
|
4269
4428
|
},
|
|
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
4429
|
/**
|
|
4280
4430
|
*
|
|
4281
4431
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4327,16 +4477,6 @@ export class UserProfileApi extends BaseAPI {
|
|
|
4327
4477
|
getUserInfo(options) {
|
|
4328
4478
|
return UserProfileApiFp(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
|
|
4329
4479
|
}
|
|
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
4480
|
/**
|
|
4341
4481
|
*
|
|
4342
4482
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -4663,177 +4803,3 @@ export class UserSubscriptionsApi extends BaseAPI {
|
|
|
4663
4803
|
return UserSubscriptionsApiFp(this.configuration).resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
4664
4804
|
}
|
|
4665
4805
|
}
|
|
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
|
-
}
|