@tennac-booking/sdk 1.0.87 → 1.0.89
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 +247 -256
- package/README.md +30 -47
- package/api.ts +1722 -2568
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1406 -1986
- package/dist/api.js +481 -876
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1406 -1986
- package/dist/esm/api.js +472 -871
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/{ConfirmPaymentMethodRequestBody.md → AddCreditsToCustomer200Response.md} +5 -5
- package/docs/AddCreditsToCustomerRequest.md +22 -0
- package/docs/BookingClubInfo.md +28 -0
- package/docs/BookingCourtInfo.md +22 -0
- package/docs/BookingInfo.md +2 -2
- package/docs/BookingPaymentStatus.md +24 -0
- package/docs/BookingPlayerPaymentSummary.md +34 -0
- package/docs/BookingPopulated.md +3 -3
- package/docs/BookingPriceBody.md +22 -0
- package/docs/BookingPriceResponse.md +22 -0
- package/docs/BookingResponse.md +2 -0
- package/docs/BookingSlotInfo.md +30 -0
- package/docs/{ClubDaySchedule.md → BookingSportInfo.md} +7 -7
- package/docs/BookingSummary.md +54 -2
- package/docs/BookingsApi.md +55 -0
- package/docs/ClubAnalyticsStaffApi.md +0 -173
- package/docs/ClubResponse.md +8 -0
- package/docs/ClubSettingsManagerApi.md +55 -54
- package/docs/ClubSettingsResponse.md +39 -0
- package/docs/ClubsApi.md +1 -1
- package/docs/ClubsManagerApi.md +58 -52
- package/docs/ClubsStaffApi.md +0 -44
- package/docs/CreateBookingRequest.md +4 -2
- package/docs/CreateClubSettingsRequest.md +34 -0
- package/docs/CreateEventRequest.md +1 -3
- package/docs/{AddPaymentMethodRequestBody.md → DeleteClubSettingsResponse.md} +5 -5
- package/docs/EventResponse.md +1 -1
- package/docs/{SetupPaymentMethodRequestBody.md → EventResponseCourtsInner.md} +3 -5
- package/docs/IUserAttributes.md +2 -12
- package/docs/InvoiceStatus.md +22 -0
- package/docs/MyClubInfosResponse.md +26 -0
- package/docs/PartialClubResponse.md +8 -0
- package/docs/PlayerPrice.md +30 -0
- package/docs/QuickReservationClubSport.md +22 -0
- package/docs/QuickReservationClubSummary.md +4 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/SportsPublicApi.md +53 -0
- package/docs/StaffUserProfileResponse.md +2 -12
- package/docs/SubscribeRequestBody.md +2 -0
- package/docs/SubscriptionInfo.md +24 -0
- package/docs/UpdateClubSettingsRequest.md +32 -0
- package/docs/UpdateEventRequest.md +1 -1
- package/docs/UserApi.md +60 -0
- package/docs/UserBookingsResponse.md +28 -0
- package/docs/UserProfileResponse.md +4 -12
- package/docs/UsersApi.md +4 -160
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BookingDetailResponse.md +0 -46
- package/docs/ClubGeneralSettingsResponse.md +0 -32
- package/docs/ClubHoursSettingsResponse.md +0 -22
- package/docs/ClubLocationSettings.md +0 -26
- package/docs/ClubPlayerBookingItem.md +0 -36
- package/docs/ClubPlayerBookingsPagination.md +0 -28
- package/docs/ClubPlayerBookingsResponse.md +0 -24
- package/docs/ClubPlayerDetailResponse.md +0 -46
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponse.md +0 -42
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
- package/docs/ClubPlayerSubscriptionSummary.md +0 -28
- package/docs/ClubPresentationSettingsResponse.md +0 -26
- package/docs/ClubPricingPeriodResponse.md +0 -30
- package/docs/ClubReservationSettingsResponse.md +0 -28
- package/docs/ClubSettingsStaffApi.md +0 -139
- package/docs/ClubWeeklySchedule.md +0 -32
- package/docs/ConfirmPaymentMethodResponse.md +0 -22
- package/docs/PartialClubWeeklySchedule.md +0 -33
- package/docs/PaymentMethodSetupResponse.md +0 -24
- package/docs/SetupPaymentMethodResponse.md +0 -24
- package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
- package/docs/UpdateClubHoursSettingsRequest.md +0 -22
- package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
- package/docs/UpdateClubReservationSettingsRequest.md +0 -28
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.89
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -134,6 +134,21 @@ export const Gender = {
|
|
|
134
134
|
export const IUserLocationTypeEnum = {
|
|
135
135
|
Point: 'Point'
|
|
136
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @export
|
|
140
|
+
* @enum {string}
|
|
141
|
+
*/
|
|
142
|
+
export const InvoiceStatus = {
|
|
143
|
+
SetupPending: 'setup_pending',
|
|
144
|
+
SetupSuccess: 'setup_success',
|
|
145
|
+
Pending: 'pending',
|
|
146
|
+
Paid: 'paid',
|
|
147
|
+
Failed: 'failed',
|
|
148
|
+
Authorized: 'authorized',
|
|
149
|
+
Canceled: 'canceled',
|
|
150
|
+
Expired: 'expired'
|
|
151
|
+
};
|
|
137
152
|
/**
|
|
138
153
|
*
|
|
139
154
|
* @export
|
|
@@ -364,6 +379,38 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
364
379
|
options: localVarRequestOptions,
|
|
365
380
|
};
|
|
366
381
|
}),
|
|
382
|
+
/**
|
|
383
|
+
*
|
|
384
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
*/
|
|
388
|
+
getBookingPrice: (bookingPriceBody_1, ...args_1) => __awaiter(this, [bookingPriceBody_1, ...args_1], void 0, function* (bookingPriceBody, options = {}) {
|
|
389
|
+
// verify required parameter 'bookingPriceBody' is not null or undefined
|
|
390
|
+
assertParamExists('getBookingPrice', 'bookingPriceBody', bookingPriceBody);
|
|
391
|
+
const localVarPath = `/api/bookings/booking-price`;
|
|
392
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
393
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
394
|
+
let baseOptions;
|
|
395
|
+
if (configuration) {
|
|
396
|
+
baseOptions = configuration.baseOptions;
|
|
397
|
+
}
|
|
398
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
399
|
+
const localVarHeaderParameter = {};
|
|
400
|
+
const localVarQueryParameter = {};
|
|
401
|
+
// authentication bearerAuth required
|
|
402
|
+
// http bearer authentication required
|
|
403
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
404
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
405
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
406
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
407
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
408
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bookingPriceBody, localVarRequestOptions, configuration);
|
|
409
|
+
return {
|
|
410
|
+
url: toPathString(localVarUrlObj),
|
|
411
|
+
options: localVarRequestOptions,
|
|
412
|
+
};
|
|
413
|
+
}),
|
|
367
414
|
/**
|
|
368
415
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
369
416
|
* @param {number} [latitude]
|
|
@@ -374,12 +421,13 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
374
421
|
* @param {string} [startTime]
|
|
375
422
|
* @param {number} [priceMax]
|
|
376
423
|
* @param {string} [courtTypes]
|
|
424
|
+
* @param {string} [surfaceTypes]
|
|
377
425
|
* @param {number} [limitPerClub]
|
|
378
426
|
* @param {number} [maxClubs]
|
|
379
427
|
* @param {*} [options] Override http request option.
|
|
380
428
|
* @throws {RequiredError}
|
|
381
429
|
*/
|
|
382
|
-
getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options = {}) {
|
|
430
|
+
getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, surfaceTypes_1, limitPerClub_1, maxClubs_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, surfaceTypes_1, limitPerClub_1, maxClubs_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options = {}) {
|
|
383
431
|
const localVarPath = `/api/bookings/quick-reservations`;
|
|
384
432
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
385
433
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -414,8 +462,11 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
414
462
|
if (courtTypes !== undefined) {
|
|
415
463
|
localVarQueryParameter['courtTypes'] = courtTypes;
|
|
416
464
|
}
|
|
465
|
+
if (surfaceTypes !== undefined) {
|
|
466
|
+
localVarQueryParameter['surfaceTypes'] = surfaceTypes;
|
|
467
|
+
}
|
|
417
468
|
if (limitPerClub !== undefined) {
|
|
418
|
-
localVarQueryParameter['
|
|
469
|
+
localVarQueryParameter['_limitPerClub'] = limitPerClub;
|
|
419
470
|
}
|
|
420
471
|
if (maxClubs !== undefined) {
|
|
421
472
|
localVarQueryParameter['maxClubs'] = maxClubs;
|
|
@@ -452,6 +503,21 @@ export const BookingsApiFp = function (configuration) {
|
|
|
452
503
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
453
504
|
});
|
|
454
505
|
},
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
509
|
+
* @param {*} [options] Override http request option.
|
|
510
|
+
* @throws {RequiredError}
|
|
511
|
+
*/
|
|
512
|
+
getBookingPrice(bookingPriceBody, options) {
|
|
513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
514
|
+
var _a, _b, _c;
|
|
515
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
|
|
516
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
517
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
518
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
519
|
+
});
|
|
520
|
+
},
|
|
455
521
|
/**
|
|
456
522
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
457
523
|
* @param {number} [latitude]
|
|
@@ -462,15 +528,16 @@ export const BookingsApiFp = function (configuration) {
|
|
|
462
528
|
* @param {string} [startTime]
|
|
463
529
|
* @param {number} [priceMax]
|
|
464
530
|
* @param {string} [courtTypes]
|
|
531
|
+
* @param {string} [surfaceTypes]
|
|
465
532
|
* @param {number} [limitPerClub]
|
|
466
533
|
* @param {number} [maxClubs]
|
|
467
534
|
* @param {*} [options] Override http request option.
|
|
468
535
|
* @throws {RequiredError}
|
|
469
536
|
*/
|
|
470
|
-
getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options) {
|
|
537
|
+
getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options) {
|
|
471
538
|
return __awaiter(this, void 0, void 0, function* () {
|
|
472
539
|
var _a, _b, _c;
|
|
473
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
|
|
540
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options);
|
|
474
541
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
475
542
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getQuickReservationSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
476
543
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -494,6 +561,15 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
494
561
|
getBookingHistory(requestParameters, options) {
|
|
495
562
|
return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
496
563
|
},
|
|
564
|
+
/**
|
|
565
|
+
*
|
|
566
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
567
|
+
* @param {*} [options] Override http request option.
|
|
568
|
+
* @throws {RequiredError}
|
|
569
|
+
*/
|
|
570
|
+
getBookingPrice(requestParameters, options) {
|
|
571
|
+
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
572
|
+
},
|
|
497
573
|
/**
|
|
498
574
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
499
575
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -501,7 +577,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
501
577
|
* @throws {RequiredError}
|
|
502
578
|
*/
|
|
503
579
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
504
|
-
return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
|
|
580
|
+
return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
|
|
505
581
|
},
|
|
506
582
|
};
|
|
507
583
|
};
|
|
@@ -522,6 +598,16 @@ export class BookingsApi extends BaseAPI {
|
|
|
522
598
|
getBookingHistory(requestParameters, options) {
|
|
523
599
|
return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
524
600
|
}
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
604
|
+
* @param {*} [options] Override http request option.
|
|
605
|
+
* @throws {RequiredError}
|
|
606
|
+
* @memberof BookingsApi
|
|
607
|
+
*/
|
|
608
|
+
getBookingPrice(requestParameters, options) {
|
|
609
|
+
return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
610
|
+
}
|
|
525
611
|
/**
|
|
526
612
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
527
613
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -530,7 +616,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
530
616
|
* @memberof BookingsApi
|
|
531
617
|
*/
|
|
532
618
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
533
|
-
return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
|
|
619
|
+
return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
|
|
534
620
|
}
|
|
535
621
|
}
|
|
536
622
|
/**
|
|
@@ -1485,107 +1571,6 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1485
1571
|
options: localVarRequestOptions,
|
|
1486
1572
|
};
|
|
1487
1573
|
}),
|
|
1488
|
-
/**
|
|
1489
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
1490
|
-
* @param {string} playerId
|
|
1491
|
-
* @param {number} [page]
|
|
1492
|
-
* @param {number} [pageSize]
|
|
1493
|
-
* @param {*} [options] Override http request option.
|
|
1494
|
-
* @throws {RequiredError}
|
|
1495
|
-
*/
|
|
1496
|
-
getClubPlayerBookingsById: (playerId_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [playerId_1, page_1, pageSize_1, ...args_1], void 0, function* (playerId, page, pageSize, options = {}) {
|
|
1497
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
1498
|
-
assertParamExists('getClubPlayerBookingsById', 'playerId', playerId);
|
|
1499
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
1500
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1501
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1502
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1503
|
-
let baseOptions;
|
|
1504
|
-
if (configuration) {
|
|
1505
|
-
baseOptions = configuration.baseOptions;
|
|
1506
|
-
}
|
|
1507
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1508
|
-
const localVarHeaderParameter = {};
|
|
1509
|
-
const localVarQueryParameter = {};
|
|
1510
|
-
// authentication bearerAuth required
|
|
1511
|
-
// http bearer authentication required
|
|
1512
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1513
|
-
if (page !== undefined) {
|
|
1514
|
-
localVarQueryParameter['page'] = page;
|
|
1515
|
-
}
|
|
1516
|
-
if (pageSize !== undefined) {
|
|
1517
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
1518
|
-
}
|
|
1519
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1520
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1521
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1522
|
-
return {
|
|
1523
|
-
url: toPathString(localVarUrlObj),
|
|
1524
|
-
options: localVarRequestOptions,
|
|
1525
|
-
};
|
|
1526
|
-
}),
|
|
1527
|
-
/**
|
|
1528
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
1529
|
-
* @param {string} playerId
|
|
1530
|
-
* @param {*} [options] Override http request option.
|
|
1531
|
-
* @throws {RequiredError}
|
|
1532
|
-
*/
|
|
1533
|
-
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1534
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
1535
|
-
assertParamExists('getClubPlayerById', 'playerId', playerId);
|
|
1536
|
-
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
1537
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1538
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1539
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1540
|
-
let baseOptions;
|
|
1541
|
-
if (configuration) {
|
|
1542
|
-
baseOptions = configuration.baseOptions;
|
|
1543
|
-
}
|
|
1544
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1545
|
-
const localVarHeaderParameter = {};
|
|
1546
|
-
const localVarQueryParameter = {};
|
|
1547
|
-
// authentication bearerAuth required
|
|
1548
|
-
// http bearer authentication required
|
|
1549
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1550
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1551
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1552
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1553
|
-
return {
|
|
1554
|
-
url: toPathString(localVarUrlObj),
|
|
1555
|
-
options: localVarRequestOptions,
|
|
1556
|
-
};
|
|
1557
|
-
}),
|
|
1558
|
-
/**
|
|
1559
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
1560
|
-
* @param {string} playerId
|
|
1561
|
-
* @param {*} [options] Override http request option.
|
|
1562
|
-
* @throws {RequiredError}
|
|
1563
|
-
*/
|
|
1564
|
-
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1565
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
1566
|
-
assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
1567
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
1568
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1569
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1570
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1571
|
-
let baseOptions;
|
|
1572
|
-
if (configuration) {
|
|
1573
|
-
baseOptions = configuration.baseOptions;
|
|
1574
|
-
}
|
|
1575
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1576
|
-
const localVarHeaderParameter = {};
|
|
1577
|
-
const localVarQueryParameter = {};
|
|
1578
|
-
// authentication bearerAuth required
|
|
1579
|
-
// http bearer authentication required
|
|
1580
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1581
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1582
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1583
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1584
|
-
return {
|
|
1585
|
-
url: toPathString(localVarUrlObj),
|
|
1586
|
-
options: localVarRequestOptions,
|
|
1587
|
-
};
|
|
1588
|
-
}),
|
|
1589
1574
|
/**
|
|
1590
1575
|
* Récupère la liste des joueurs du club
|
|
1591
1576
|
* @param {*} [options] Override http request option.
|
|
@@ -1885,53 +1870,6 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
1885
1870
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1886
1871
|
});
|
|
1887
1872
|
},
|
|
1888
|
-
/**
|
|
1889
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
1890
|
-
* @param {string} playerId
|
|
1891
|
-
* @param {number} [page]
|
|
1892
|
-
* @param {number} [pageSize]
|
|
1893
|
-
* @param {*} [options] Override http request option.
|
|
1894
|
-
* @throws {RequiredError}
|
|
1895
|
-
*/
|
|
1896
|
-
getClubPlayerBookingsById(playerId, page, pageSize, options) {
|
|
1897
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1898
|
-
var _a, _b, _c;
|
|
1899
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, page, pageSize, options);
|
|
1900
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1901
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1902
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1903
|
-
});
|
|
1904
|
-
},
|
|
1905
|
-
/**
|
|
1906
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
1907
|
-
* @param {string} playerId
|
|
1908
|
-
* @param {*} [options] Override http request option.
|
|
1909
|
-
* @throws {RequiredError}
|
|
1910
|
-
*/
|
|
1911
|
-
getClubPlayerById(playerId, options) {
|
|
1912
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1913
|
-
var _a, _b, _c;
|
|
1914
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
|
|
1915
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1916
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1917
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1918
|
-
});
|
|
1919
|
-
},
|
|
1920
|
-
/**
|
|
1921
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
1922
|
-
* @param {string} playerId
|
|
1923
|
-
* @param {*} [options] Override http request option.
|
|
1924
|
-
* @throws {RequiredError}
|
|
1925
|
-
*/
|
|
1926
|
-
getClubPlayerStatisticsById(playerId, options) {
|
|
1927
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1928
|
-
var _a, _b, _c;
|
|
1929
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
|
|
1930
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1931
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1932
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1933
|
-
});
|
|
1934
|
-
},
|
|
1935
1873
|
/**
|
|
1936
1874
|
* Récupère la liste des joueurs du club
|
|
1937
1875
|
* @param {*} [options] Override http request option.
|
|
@@ -2082,33 +2020,6 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
|
|
|
2082
2020
|
getAnalyticsBySport(requestParameters, options) {
|
|
2083
2021
|
return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
2084
2022
|
},
|
|
2085
|
-
/**
|
|
2086
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2087
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2088
|
-
* @param {*} [options] Override http request option.
|
|
2089
|
-
* @throws {RequiredError}
|
|
2090
|
-
*/
|
|
2091
|
-
getClubPlayerBookingsById(requestParameters, options) {
|
|
2092
|
-
return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
2093
|
-
},
|
|
2094
|
-
/**
|
|
2095
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2096
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2097
|
-
* @param {*} [options] Override http request option.
|
|
2098
|
-
* @throws {RequiredError}
|
|
2099
|
-
*/
|
|
2100
|
-
getClubPlayerById(requestParameters, options) {
|
|
2101
|
-
return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2102
|
-
},
|
|
2103
|
-
/**
|
|
2104
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
2105
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2106
|
-
* @param {*} [options] Override http request option.
|
|
2107
|
-
* @throws {RequiredError}
|
|
2108
|
-
*/
|
|
2109
|
-
getClubPlayerStatisticsById(requestParameters, options) {
|
|
2110
|
-
return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2111
|
-
},
|
|
2112
2023
|
/**
|
|
2113
2024
|
* Récupère la liste des joueurs du club
|
|
2114
2025
|
* @param {*} [options] Override http request option.
|
|
@@ -2204,36 +2115,6 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
|
|
|
2204
2115
|
getAnalyticsBySport(requestParameters, options) {
|
|
2205
2116
|
return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
2206
2117
|
}
|
|
2207
|
-
/**
|
|
2208
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2209
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2210
|
-
* @param {*} [options] Override http request option.
|
|
2211
|
-
* @throws {RequiredError}
|
|
2212
|
-
* @memberof ClubAnalyticsStaffApi
|
|
2213
|
-
*/
|
|
2214
|
-
getClubPlayerBookingsById(requestParameters, options) {
|
|
2215
|
-
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
2216
|
-
}
|
|
2217
|
-
/**
|
|
2218
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2219
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2220
|
-
* @param {*} [options] Override http request option.
|
|
2221
|
-
* @throws {RequiredError}
|
|
2222
|
-
* @memberof ClubAnalyticsStaffApi
|
|
2223
|
-
*/
|
|
2224
|
-
getClubPlayerById(requestParameters, options) {
|
|
2225
|
-
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2226
|
-
}
|
|
2227
|
-
/**
|
|
2228
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
2229
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2230
|
-
* @param {*} [options] Override http request option.
|
|
2231
|
-
* @throws {RequiredError}
|
|
2232
|
-
* @memberof ClubAnalyticsStaffApi
|
|
2233
|
-
*/
|
|
2234
|
-
getClubPlayerStatisticsById(requestParameters, options) {
|
|
2235
|
-
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2236
|
-
}
|
|
2237
2118
|
/**
|
|
2238
2119
|
* Récupère la liste des joueurs du club
|
|
2239
2120
|
* @param {*} [options] Override http request option.
|
|
@@ -2778,22 +2659,26 @@ export class ClubRolesStaffApi extends BaseAPI {
|
|
|
2778
2659
|
export const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
2779
2660
|
return {
|
|
2780
2661
|
/**
|
|
2781
|
-
*
|
|
2782
|
-
* @param {
|
|
2662
|
+
* Crée les paramètres d\'un club
|
|
2663
|
+
* @param {string} clubId
|
|
2664
|
+
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
2783
2665
|
* @param {*} [options] Override http request option.
|
|
2784
2666
|
* @throws {RequiredError}
|
|
2785
2667
|
*/
|
|
2786
|
-
|
|
2787
|
-
// verify required parameter '
|
|
2788
|
-
assertParamExists('
|
|
2789
|
-
|
|
2668
|
+
createClubSettings: (clubId_1, createClubSettingsRequest_1, ...args_1) => __awaiter(this, [clubId_1, createClubSettingsRequest_1, ...args_1], void 0, function* (clubId, createClubSettingsRequest, options = {}) {
|
|
2669
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
2670
|
+
assertParamExists('createClubSettings', 'clubId', clubId);
|
|
2671
|
+
// verify required parameter 'createClubSettingsRequest' is not null or undefined
|
|
2672
|
+
assertParamExists('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
|
|
2673
|
+
const localVarPath = `/api/club-settings/{clubId}`
|
|
2674
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
2790
2675
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2791
2676
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2792
2677
|
let baseOptions;
|
|
2793
2678
|
if (configuration) {
|
|
2794
2679
|
baseOptions = configuration.baseOptions;
|
|
2795
2680
|
}
|
|
2796
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2681
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2797
2682
|
const localVarHeaderParameter = {};
|
|
2798
2683
|
const localVarQueryParameter = {};
|
|
2799
2684
|
// authentication bearerAuth required
|
|
@@ -2803,21 +2688,18 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
2803
2688
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2804
2689
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2805
2690
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2806
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2691
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2807
2692
|
return {
|
|
2808
2693
|
url: toPathString(localVarUrlObj),
|
|
2809
2694
|
options: localVarRequestOptions,
|
|
2810
2695
|
};
|
|
2811
2696
|
}),
|
|
2812
2697
|
/**
|
|
2813
|
-
*
|
|
2814
|
-
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
2698
|
+
* Supprime les paramètres d\'un club
|
|
2815
2699
|
* @param {*} [options] Override http request option.
|
|
2816
2700
|
* @throws {RequiredError}
|
|
2817
2701
|
*/
|
|
2818
|
-
|
|
2819
|
-
// verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
|
|
2820
|
-
assertParamExists('updateClubSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest);
|
|
2702
|
+
deleteClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2821
2703
|
const localVarPath = `/api/club-settings`;
|
|
2822
2704
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2823
2705
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2825,64 +2707,57 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
2825
2707
|
if (configuration) {
|
|
2826
2708
|
baseOptions = configuration.baseOptions;
|
|
2827
2709
|
}
|
|
2828
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2710
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2829
2711
|
const localVarHeaderParameter = {};
|
|
2830
2712
|
const localVarQueryParameter = {};
|
|
2831
2713
|
// authentication bearerAuth required
|
|
2832
2714
|
// http bearer authentication required
|
|
2833
2715
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2834
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2835
2716
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2836
2717
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2837
2718
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2838
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
|
|
2839
2719
|
return {
|
|
2840
2720
|
url: toPathString(localVarUrlObj),
|
|
2841
2721
|
options: localVarRequestOptions,
|
|
2842
2722
|
};
|
|
2843
2723
|
}),
|
|
2844
2724
|
/**
|
|
2845
|
-
*
|
|
2846
|
-
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
2725
|
+
* Récupère les paramètres d\'un club
|
|
2847
2726
|
* @param {*} [options] Override http request option.
|
|
2848
2727
|
* @throws {RequiredError}
|
|
2849
2728
|
*/
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
assertParamExists('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
|
|
2853
|
-
const localVarPath = `/api/club-settings/hours`;
|
|
2729
|
+
getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2730
|
+
const localVarPath = `/api/club-settings`;
|
|
2854
2731
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2855
2732
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2856
2733
|
let baseOptions;
|
|
2857
2734
|
if (configuration) {
|
|
2858
2735
|
baseOptions = configuration.baseOptions;
|
|
2859
2736
|
}
|
|
2860
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2737
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2861
2738
|
const localVarHeaderParameter = {};
|
|
2862
2739
|
const localVarQueryParameter = {};
|
|
2863
2740
|
// authentication bearerAuth required
|
|
2864
2741
|
// http bearer authentication required
|
|
2865
2742
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2866
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2867
2743
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2868
2744
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2869
2745
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2870
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
|
|
2871
2746
|
return {
|
|
2872
2747
|
url: toPathString(localVarUrlObj),
|
|
2873
2748
|
options: localVarRequestOptions,
|
|
2874
2749
|
};
|
|
2875
2750
|
}),
|
|
2876
2751
|
/**
|
|
2877
|
-
*
|
|
2878
|
-
* @param {
|
|
2752
|
+
* Met à jour les paramètres d\'un club
|
|
2753
|
+
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
2879
2754
|
* @param {*} [options] Override http request option.
|
|
2880
2755
|
* @throws {RequiredError}
|
|
2881
2756
|
*/
|
|
2882
|
-
|
|
2883
|
-
// verify required parameter '
|
|
2884
|
-
assertParamExists('
|
|
2885
|
-
const localVarPath = `/api/club-settings
|
|
2757
|
+
updateClubSettings: (updateClubSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubSettingsRequest_1, ...args_1], void 0, function* (updateClubSettingsRequest, options = {}) {
|
|
2758
|
+
// verify required parameter 'updateClubSettingsRequest' is not null or undefined
|
|
2759
|
+
assertParamExists('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
|
|
2760
|
+
const localVarPath = `/api/club-settings`;
|
|
2886
2761
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2887
2762
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2888
2763
|
let baseOptions;
|
|
@@ -2899,7 +2774,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
2899
2774
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2900
2775
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2901
2776
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2902
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2777
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2903
2778
|
return {
|
|
2904
2779
|
url: toPathString(localVarUrlObj),
|
|
2905
2780
|
options: localVarRequestOptions,
|
|
@@ -2915,62 +2790,61 @@ export const ClubSettingsManagerApiFp = function (configuration) {
|
|
|
2915
2790
|
const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration);
|
|
2916
2791
|
return {
|
|
2917
2792
|
/**
|
|
2918
|
-
*
|
|
2919
|
-
* @param {
|
|
2793
|
+
* Crée les paramètres d\'un club
|
|
2794
|
+
* @param {string} clubId
|
|
2795
|
+
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
2920
2796
|
* @param {*} [options] Override http request option.
|
|
2921
2797
|
* @throws {RequiredError}
|
|
2922
2798
|
*/
|
|
2923
|
-
|
|
2799
|
+
createClubSettings(clubId, createClubSettingsRequest, options) {
|
|
2924
2800
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2925
2801
|
var _a, _b, _c;
|
|
2926
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2802
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubSettings(clubId, createClubSettingsRequest, options);
|
|
2927
2803
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2928
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.
|
|
2804
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.createClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2929
2805
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2930
2806
|
});
|
|
2931
2807
|
},
|
|
2932
2808
|
/**
|
|
2933
|
-
*
|
|
2934
|
-
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
2809
|
+
* Supprime les paramètres d\'un club
|
|
2935
2810
|
* @param {*} [options] Override http request option.
|
|
2936
2811
|
* @throws {RequiredError}
|
|
2937
2812
|
*/
|
|
2938
|
-
|
|
2813
|
+
deleteClubSettings(options) {
|
|
2939
2814
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2940
2815
|
var _a, _b, _c;
|
|
2941
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2816
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubSettings(options);
|
|
2942
2817
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2943
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.
|
|
2818
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.deleteClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2944
2819
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2945
2820
|
});
|
|
2946
2821
|
},
|
|
2947
2822
|
/**
|
|
2948
|
-
*
|
|
2949
|
-
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
2823
|
+
* Récupère les paramètres d\'un club
|
|
2950
2824
|
* @param {*} [options] Override http request option.
|
|
2951
2825
|
* @throws {RequiredError}
|
|
2952
2826
|
*/
|
|
2953
|
-
|
|
2827
|
+
getClubSettings(options) {
|
|
2954
2828
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2955
2829
|
var _a, _b, _c;
|
|
2956
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2830
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
|
|
2957
2831
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2958
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.
|
|
2832
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2959
2833
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2960
2834
|
});
|
|
2961
2835
|
},
|
|
2962
2836
|
/**
|
|
2963
|
-
*
|
|
2964
|
-
* @param {
|
|
2837
|
+
* Met à jour les paramètres d\'un club
|
|
2838
|
+
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
2965
2839
|
* @param {*} [options] Override http request option.
|
|
2966
2840
|
* @throws {RequiredError}
|
|
2967
2841
|
*/
|
|
2968
|
-
|
|
2842
|
+
updateClubSettings(updateClubSettingsRequest, options) {
|
|
2969
2843
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2970
2844
|
var _a, _b, _c;
|
|
2971
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2845
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
|
|
2972
2846
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2973
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.
|
|
2847
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2974
2848
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2975
2849
|
});
|
|
2976
2850
|
},
|
|
@@ -2984,297 +2858,85 @@ export const ClubSettingsManagerApiFactory = function (configuration, basePath,
|
|
|
2984
2858
|
const localVarFp = ClubSettingsManagerApiFp(configuration);
|
|
2985
2859
|
return {
|
|
2986
2860
|
/**
|
|
2987
|
-
*
|
|
2988
|
-
* @param {
|
|
2861
|
+
* Crée les paramètres d\'un club
|
|
2862
|
+
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
2989
2863
|
* @param {*} [options] Override http request option.
|
|
2990
2864
|
* @throws {RequiredError}
|
|
2991
2865
|
*/
|
|
2992
|
-
|
|
2993
|
-
return localVarFp.
|
|
2866
|
+
createClubSettings(requestParameters, options) {
|
|
2867
|
+
return localVarFp.createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2994
2868
|
},
|
|
2995
2869
|
/**
|
|
2996
|
-
*
|
|
2997
|
-
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
2998
|
-
* @param {*} [options] Override http request option.
|
|
2999
|
-
* @throws {RequiredError}
|
|
3000
|
-
*/
|
|
3001
|
-
updateClubSettings(requestParameters, options) {
|
|
3002
|
-
return localVarFp.updateClubSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3003
|
-
},
|
|
3004
|
-
/**
|
|
3005
|
-
*
|
|
3006
|
-
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
2870
|
+
* Supprime les paramètres d\'un club
|
|
3007
2871
|
* @param {*} [options] Override http request option.
|
|
3008
2872
|
* @throws {RequiredError}
|
|
3009
2873
|
*/
|
|
3010
|
-
|
|
3011
|
-
return localVarFp.
|
|
2874
|
+
deleteClubSettings(options) {
|
|
2875
|
+
return localVarFp.deleteClubSettings(options).then((request) => request(axios, basePath));
|
|
3012
2876
|
},
|
|
3013
2877
|
/**
|
|
3014
|
-
*
|
|
3015
|
-
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
2878
|
+
* Récupère les paramètres d\'un club
|
|
3016
2879
|
* @param {*} [options] Override http request option.
|
|
3017
2880
|
* @throws {RequiredError}
|
|
3018
2881
|
*/
|
|
3019
|
-
|
|
3020
|
-
return localVarFp.
|
|
2882
|
+
getClubSettings(options) {
|
|
2883
|
+
return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
|
|
3021
2884
|
},
|
|
3022
|
-
};
|
|
3023
|
-
};
|
|
3024
|
-
/**
|
|
3025
|
-
* ClubSettingsManagerApi - object-oriented interface
|
|
3026
|
-
* @export
|
|
3027
|
-
* @class ClubSettingsManagerApi
|
|
3028
|
-
* @extends {BaseAPI}
|
|
3029
|
-
*/
|
|
3030
|
-
export class ClubSettingsManagerApi extends BaseAPI {
|
|
3031
|
-
/**
|
|
3032
|
-
*
|
|
3033
|
-
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
3034
|
-
* @param {*} [options] Override http request option.
|
|
3035
|
-
* @throws {RequiredError}
|
|
3036
|
-
* @memberof ClubSettingsManagerApi
|
|
3037
|
-
*/
|
|
3038
|
-
updateClubGeneralSettings(requestParameters, options) {
|
|
3039
|
-
return ClubSettingsManagerApiFp(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3040
|
-
}
|
|
3041
|
-
/**
|
|
3042
|
-
* Met à jour les paramètres d\'un club
|
|
3043
|
-
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3044
|
-
* @param {*} [options] Override http request option.
|
|
3045
|
-
* @throws {RequiredError}
|
|
3046
|
-
* @memberof ClubSettingsManagerApi
|
|
3047
|
-
*/
|
|
3048
|
-
updateClubSettings(requestParameters, options) {
|
|
3049
|
-
return ClubSettingsManagerApiFp(this.configuration).updateClubSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3050
|
-
}
|
|
3051
|
-
/**
|
|
3052
|
-
*
|
|
3053
|
-
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
3054
|
-
* @param {*} [options] Override http request option.
|
|
3055
|
-
* @throws {RequiredError}
|
|
3056
|
-
* @memberof ClubSettingsManagerApi
|
|
3057
|
-
*/
|
|
3058
|
-
updateHoursSettings(requestParameters, options) {
|
|
3059
|
-
return ClubSettingsManagerApiFp(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3060
|
-
}
|
|
3061
|
-
/**
|
|
3062
|
-
*
|
|
3063
|
-
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
3064
|
-
* @param {*} [options] Override http request option.
|
|
3065
|
-
* @throws {RequiredError}
|
|
3066
|
-
* @memberof ClubSettingsManagerApi
|
|
3067
|
-
*/
|
|
3068
|
-
updateReservationSettings(requestParameters, options) {
|
|
3069
|
-
return ClubSettingsManagerApiFp(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3070
|
-
}
|
|
3071
|
-
}
|
|
3072
|
-
/**
|
|
3073
|
-
* ClubSettingsStaffApi - axios parameter creator
|
|
3074
|
-
* @export
|
|
3075
|
-
*/
|
|
3076
|
-
export const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
|
|
3077
|
-
return {
|
|
3078
|
-
/**
|
|
3079
|
-
*
|
|
3080
|
-
* @param {*} [options] Override http request option.
|
|
3081
|
-
* @throws {RequiredError}
|
|
3082
|
-
*/
|
|
3083
|
-
getClubGeneralSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3084
|
-
const localVarPath = `/api/club-settings/settings/general`;
|
|
3085
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3086
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3087
|
-
let baseOptions;
|
|
3088
|
-
if (configuration) {
|
|
3089
|
-
baseOptions = configuration.baseOptions;
|
|
3090
|
-
}
|
|
3091
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3092
|
-
const localVarHeaderParameter = {};
|
|
3093
|
-
const localVarQueryParameter = {};
|
|
3094
|
-
// authentication bearerAuth required
|
|
3095
|
-
// http bearer authentication required
|
|
3096
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3097
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3098
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3099
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3100
|
-
return {
|
|
3101
|
-
url: toPathString(localVarUrlObj),
|
|
3102
|
-
options: localVarRequestOptions,
|
|
3103
|
-
};
|
|
3104
|
-
}),
|
|
3105
2885
|
/**
|
|
3106
|
-
*
|
|
3107
|
-
* @param {
|
|
3108
|
-
* @throws {RequiredError}
|
|
3109
|
-
*/
|
|
3110
|
-
getHoursSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3111
|
-
const localVarPath = `/api/club-settings/hours`;
|
|
3112
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3113
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3114
|
-
let baseOptions;
|
|
3115
|
-
if (configuration) {
|
|
3116
|
-
baseOptions = configuration.baseOptions;
|
|
3117
|
-
}
|
|
3118
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3119
|
-
const localVarHeaderParameter = {};
|
|
3120
|
-
const localVarQueryParameter = {};
|
|
3121
|
-
// authentication bearerAuth required
|
|
3122
|
-
// http bearer authentication required
|
|
3123
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3124
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3125
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3126
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3127
|
-
return {
|
|
3128
|
-
url: toPathString(localVarUrlObj),
|
|
3129
|
-
options: localVarRequestOptions,
|
|
3130
|
-
};
|
|
3131
|
-
}),
|
|
3132
|
-
/**
|
|
3133
|
-
*
|
|
3134
|
-
* @param {*} [options] Override http request option.
|
|
3135
|
-
* @throws {RequiredError}
|
|
3136
|
-
*/
|
|
3137
|
-
getReservationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3138
|
-
const localVarPath = `/api/club-settings/reservation`;
|
|
3139
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3140
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3141
|
-
let baseOptions;
|
|
3142
|
-
if (configuration) {
|
|
3143
|
-
baseOptions = configuration.baseOptions;
|
|
3144
|
-
}
|
|
3145
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3146
|
-
const localVarHeaderParameter = {};
|
|
3147
|
-
const localVarQueryParameter = {};
|
|
3148
|
-
// authentication bearerAuth required
|
|
3149
|
-
// http bearer authentication required
|
|
3150
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3151
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3152
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3153
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3154
|
-
return {
|
|
3155
|
-
url: toPathString(localVarUrlObj),
|
|
3156
|
-
options: localVarRequestOptions,
|
|
3157
|
-
};
|
|
3158
|
-
}),
|
|
3159
|
-
};
|
|
3160
|
-
};
|
|
3161
|
-
/**
|
|
3162
|
-
* ClubSettingsStaffApi - functional programming interface
|
|
3163
|
-
* @export
|
|
3164
|
-
*/
|
|
3165
|
-
export const ClubSettingsStaffApiFp = function (configuration) {
|
|
3166
|
-
const localVarAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator(configuration);
|
|
3167
|
-
return {
|
|
3168
|
-
/**
|
|
3169
|
-
*
|
|
3170
|
-
* @param {*} [options] Override http request option.
|
|
3171
|
-
* @throws {RequiredError}
|
|
3172
|
-
*/
|
|
3173
|
-
getClubGeneralSettings(options) {
|
|
3174
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3175
|
-
var _a, _b, _c;
|
|
3176
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubGeneralSettings(options);
|
|
3177
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3178
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3179
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3180
|
-
});
|
|
3181
|
-
},
|
|
3182
|
-
/**
|
|
3183
|
-
*
|
|
3184
|
-
* @param {*} [options] Override http request option.
|
|
3185
|
-
* @throws {RequiredError}
|
|
3186
|
-
*/
|
|
3187
|
-
getHoursSettings(options) {
|
|
3188
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3189
|
-
var _a, _b, _c;
|
|
3190
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getHoursSettings(options);
|
|
3191
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3192
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3193
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3194
|
-
});
|
|
3195
|
-
},
|
|
3196
|
-
/**
|
|
3197
|
-
*
|
|
3198
|
-
* @param {*} [options] Override http request option.
|
|
3199
|
-
* @throws {RequiredError}
|
|
3200
|
-
*/
|
|
3201
|
-
getReservationSettings(options) {
|
|
3202
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3203
|
-
var _a, _b, _c;
|
|
3204
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReservationSettings(options);
|
|
3205
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3206
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3207
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3208
|
-
});
|
|
3209
|
-
},
|
|
3210
|
-
};
|
|
3211
|
-
};
|
|
3212
|
-
/**
|
|
3213
|
-
* ClubSettingsStaffApi - factory interface
|
|
3214
|
-
* @export
|
|
3215
|
-
*/
|
|
3216
|
-
export const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
3217
|
-
const localVarFp = ClubSettingsStaffApiFp(configuration);
|
|
3218
|
-
return {
|
|
3219
|
-
/**
|
|
3220
|
-
*
|
|
3221
|
-
* @param {*} [options] Override http request option.
|
|
3222
|
-
* @throws {RequiredError}
|
|
3223
|
-
*/
|
|
3224
|
-
getClubGeneralSettings(options) {
|
|
3225
|
-
return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
|
|
3226
|
-
},
|
|
3227
|
-
/**
|
|
3228
|
-
*
|
|
3229
|
-
* @param {*} [options] Override http request option.
|
|
3230
|
-
* @throws {RequiredError}
|
|
3231
|
-
*/
|
|
3232
|
-
getHoursSettings(options) {
|
|
3233
|
-
return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
|
|
3234
|
-
},
|
|
3235
|
-
/**
|
|
3236
|
-
*
|
|
2886
|
+
* Met à jour les paramètres d\'un club
|
|
2887
|
+
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3237
2888
|
* @param {*} [options] Override http request option.
|
|
3238
2889
|
* @throws {RequiredError}
|
|
3239
2890
|
*/
|
|
3240
|
-
|
|
3241
|
-
return localVarFp.
|
|
2891
|
+
updateClubSettings(requestParameters, options) {
|
|
2892
|
+
return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3242
2893
|
},
|
|
3243
2894
|
};
|
|
3244
2895
|
};
|
|
3245
2896
|
/**
|
|
3246
|
-
*
|
|
2897
|
+
* ClubSettingsManagerApi - object-oriented interface
|
|
3247
2898
|
* @export
|
|
3248
|
-
* @class
|
|
2899
|
+
* @class ClubSettingsManagerApi
|
|
3249
2900
|
* @extends {BaseAPI}
|
|
3250
2901
|
*/
|
|
3251
|
-
export class
|
|
2902
|
+
export class ClubSettingsManagerApi extends BaseAPI {
|
|
3252
2903
|
/**
|
|
3253
|
-
*
|
|
2904
|
+
* Crée les paramètres d\'un club
|
|
2905
|
+
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
3254
2906
|
* @param {*} [options] Override http request option.
|
|
3255
2907
|
* @throws {RequiredError}
|
|
3256
|
-
* @memberof
|
|
2908
|
+
* @memberof ClubSettingsManagerApi
|
|
3257
2909
|
*/
|
|
3258
|
-
|
|
3259
|
-
return
|
|
2910
|
+
createClubSettings(requestParameters, options) {
|
|
2911
|
+
return ClubSettingsManagerApiFp(this.configuration).createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3260
2912
|
}
|
|
3261
2913
|
/**
|
|
3262
|
-
*
|
|
2914
|
+
* Supprime les paramètres d\'un club
|
|
3263
2915
|
* @param {*} [options] Override http request option.
|
|
3264
2916
|
* @throws {RequiredError}
|
|
3265
|
-
* @memberof
|
|
2917
|
+
* @memberof ClubSettingsManagerApi
|
|
3266
2918
|
*/
|
|
3267
|
-
|
|
3268
|
-
return
|
|
2919
|
+
deleteClubSettings(options) {
|
|
2920
|
+
return ClubSettingsManagerApiFp(this.configuration).deleteClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3269
2921
|
}
|
|
3270
2922
|
/**
|
|
3271
|
-
*
|
|
2923
|
+
* Récupère les paramètres d\'un club
|
|
2924
|
+
* @param {*} [options] Override http request option.
|
|
2925
|
+
* @throws {RequiredError}
|
|
2926
|
+
* @memberof ClubSettingsManagerApi
|
|
2927
|
+
*/
|
|
2928
|
+
getClubSettings(options) {
|
|
2929
|
+
return ClubSettingsManagerApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
2930
|
+
}
|
|
2931
|
+
/**
|
|
2932
|
+
* Met à jour les paramètres d\'un club
|
|
2933
|
+
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3272
2934
|
* @param {*} [options] Override http request option.
|
|
3273
2935
|
* @throws {RequiredError}
|
|
3274
|
-
* @memberof
|
|
2936
|
+
* @memberof ClubSettingsManagerApi
|
|
3275
2937
|
*/
|
|
3276
|
-
|
|
3277
|
-
return
|
|
2938
|
+
updateClubSettings(requestParameters, options) {
|
|
2939
|
+
return ClubSettingsManagerApiFp(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3278
2940
|
}
|
|
3279
2941
|
}
|
|
3280
2942
|
/**
|
|
@@ -3284,7 +2946,7 @@ export class ClubSettingsStaffApi extends BaseAPI {
|
|
|
3284
2946
|
export const ClubsApiAxiosParamCreator = function (configuration) {
|
|
3285
2947
|
return {
|
|
3286
2948
|
/**
|
|
3287
|
-
* Récupère la liste des clubs actifs
|
|
2949
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3288
2950
|
* @param {*} [options] Override http request option.
|
|
3289
2951
|
* @throws {RequiredError}
|
|
3290
2952
|
*/
|
|
@@ -3632,7 +3294,7 @@ export const ClubsApiFp = function (configuration) {
|
|
|
3632
3294
|
const localVarAxiosParamCreator = ClubsApiAxiosParamCreator(configuration);
|
|
3633
3295
|
return {
|
|
3634
3296
|
/**
|
|
3635
|
-
* Récupère la liste des clubs actifs
|
|
3297
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3636
3298
|
* @param {*} [options] Override http request option.
|
|
3637
3299
|
* @throws {RequiredError}
|
|
3638
3300
|
*/
|
|
@@ -3821,7 +3483,7 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
3821
3483
|
const localVarFp = ClubsApiFp(configuration);
|
|
3822
3484
|
return {
|
|
3823
3485
|
/**
|
|
3824
|
-
* Récupère la liste des clubs actifs
|
|
3486
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3825
3487
|
* @param {*} [options] Override http request option.
|
|
3826
3488
|
* @throws {RequiredError}
|
|
3827
3489
|
*/
|
|
@@ -3934,7 +3596,7 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
3934
3596
|
*/
|
|
3935
3597
|
export class ClubsApi extends BaseAPI {
|
|
3936
3598
|
/**
|
|
3937
|
-
* Récupère la liste des clubs actifs
|
|
3599
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3938
3600
|
* @param {*} [options] Override http request option.
|
|
3939
3601
|
* @throws {RequiredError}
|
|
3940
3602
|
* @memberof ClubsApi
|
|
@@ -4088,6 +3750,42 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4088
3750
|
options: localVarRequestOptions,
|
|
4089
3751
|
};
|
|
4090
3752
|
}),
|
|
3753
|
+
/**
|
|
3754
|
+
*
|
|
3755
|
+
* @param {string} userId
|
|
3756
|
+
* @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
|
|
3757
|
+
* @param {*} [options] Override http request option.
|
|
3758
|
+
* @throws {RequiredError}
|
|
3759
|
+
*/
|
|
3760
|
+
addCreditsToCustomer: (userId_1, addCreditsToCustomerRequest_1, ...args_1) => __awaiter(this, [userId_1, addCreditsToCustomerRequest_1, ...args_1], void 0, function* (userId, addCreditsToCustomerRequest, options = {}) {
|
|
3761
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3762
|
+
assertParamExists('addCreditsToCustomer', 'userId', userId);
|
|
3763
|
+
// verify required parameter 'addCreditsToCustomerRequest' is not null or undefined
|
|
3764
|
+
assertParamExists('addCreditsToCustomer', 'addCreditsToCustomerRequest', addCreditsToCustomerRequest);
|
|
3765
|
+
const localVarPath = `/api/clubs/customers/{userId}/credits`
|
|
3766
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
3767
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3768
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3769
|
+
let baseOptions;
|
|
3770
|
+
if (configuration) {
|
|
3771
|
+
baseOptions = configuration.baseOptions;
|
|
3772
|
+
}
|
|
3773
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3774
|
+
const localVarHeaderParameter = {};
|
|
3775
|
+
const localVarQueryParameter = {};
|
|
3776
|
+
// authentication bearerAuth required
|
|
3777
|
+
// http bearer authentication required
|
|
3778
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3779
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3780
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3781
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3782
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3783
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addCreditsToCustomerRequest, localVarRequestOptions, configuration);
|
|
3784
|
+
return {
|
|
3785
|
+
url: toPathString(localVarUrlObj),
|
|
3786
|
+
options: localVarRequestOptions,
|
|
3787
|
+
};
|
|
3788
|
+
}),
|
|
4091
3789
|
/**
|
|
4092
3790
|
*
|
|
4093
3791
|
* @param {string} priceId
|
|
@@ -4564,38 +4262,6 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4564
4262
|
options: localVarRequestOptions,
|
|
4565
4263
|
};
|
|
4566
4264
|
}),
|
|
4567
|
-
/**
|
|
4568
|
-
*
|
|
4569
|
-
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
4570
|
-
* @param {*} [options] Override http request option.
|
|
4571
|
-
* @throws {RequiredError}
|
|
4572
|
-
*/
|
|
4573
|
-
updateClubPresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
|
|
4574
|
-
// verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
|
|
4575
|
-
assertParamExists('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
|
|
4576
|
-
const localVarPath = `/api/clubs/settings/presentation`;
|
|
4577
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4578
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4579
|
-
let baseOptions;
|
|
4580
|
-
if (configuration) {
|
|
4581
|
-
baseOptions = configuration.baseOptions;
|
|
4582
|
-
}
|
|
4583
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4584
|
-
const localVarHeaderParameter = {};
|
|
4585
|
-
const localVarQueryParameter = {};
|
|
4586
|
-
// authentication bearerAuth required
|
|
4587
|
-
// http bearer authentication required
|
|
4588
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4589
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4590
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4591
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4592
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4593
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
|
|
4594
|
-
return {
|
|
4595
|
-
url: toPathString(localVarUrlObj),
|
|
4596
|
-
options: localVarRequestOptions,
|
|
4597
|
-
};
|
|
4598
|
-
}),
|
|
4599
4265
|
/**
|
|
4600
4266
|
*
|
|
4601
4267
|
* @param {string} courtId
|
|
@@ -4692,6 +4358,22 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
4692
4358
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4693
4359
|
});
|
|
4694
4360
|
},
|
|
4361
|
+
/**
|
|
4362
|
+
*
|
|
4363
|
+
* @param {string} userId
|
|
4364
|
+
* @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
|
|
4365
|
+
* @param {*} [options] Override http request option.
|
|
4366
|
+
* @throws {RequiredError}
|
|
4367
|
+
*/
|
|
4368
|
+
addCreditsToCustomer(userId, addCreditsToCustomerRequest, options) {
|
|
4369
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4370
|
+
var _a, _b, _c;
|
|
4371
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addCreditsToCustomer(userId, addCreditsToCustomerRequest, options);
|
|
4372
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4373
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.addCreditsToCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4374
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4375
|
+
});
|
|
4376
|
+
},
|
|
4695
4377
|
/**
|
|
4696
4378
|
*
|
|
4697
4379
|
* @param {string} priceId
|
|
@@ -4918,21 +4600,6 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
4918
4600
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4919
4601
|
});
|
|
4920
4602
|
},
|
|
4921
|
-
/**
|
|
4922
|
-
*
|
|
4923
|
-
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
4924
|
-
* @param {*} [options] Override http request option.
|
|
4925
|
-
* @throws {RequiredError}
|
|
4926
|
-
*/
|
|
4927
|
-
updateClubPresentationSettings(updateClubPresentationSettingsRequest, options) {
|
|
4928
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4929
|
-
var _a, _b, _c;
|
|
4930
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
|
|
4931
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4932
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.updateClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4933
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4934
|
-
});
|
|
4935
|
-
},
|
|
4936
4603
|
/**
|
|
4937
4604
|
*
|
|
4938
4605
|
* @param {string} courtId
|
|
@@ -4983,6 +4650,15 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
4983
4650
|
addClubMember(requestParameters, options) {
|
|
4984
4651
|
return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
4985
4652
|
},
|
|
4653
|
+
/**
|
|
4654
|
+
*
|
|
4655
|
+
* @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
|
|
4656
|
+
* @param {*} [options] Override http request option.
|
|
4657
|
+
* @throws {RequiredError}
|
|
4658
|
+
*/
|
|
4659
|
+
addCreditsToCustomer(requestParameters, options) {
|
|
4660
|
+
return localVarFp.addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(axios, basePath));
|
|
4661
|
+
},
|
|
4986
4662
|
/**
|
|
4987
4663
|
*
|
|
4988
4664
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5117,15 +4793,6 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
5117
4793
|
updateClubInfos(requestParameters, options) {
|
|
5118
4794
|
return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
5119
4795
|
},
|
|
5120
|
-
/**
|
|
5121
|
-
*
|
|
5122
|
-
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
5123
|
-
* @param {*} [options] Override http request option.
|
|
5124
|
-
* @throws {RequiredError}
|
|
5125
|
-
*/
|
|
5126
|
-
updateClubPresentationSettings(requestParameters, options) {
|
|
5127
|
-
return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
5128
|
-
},
|
|
5129
4796
|
/**
|
|
5130
4797
|
*
|
|
5131
4798
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5163,6 +4830,16 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
5163
4830
|
addClubMember(requestParameters, options) {
|
|
5164
4831
|
return ClubsManagerApiFp(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5165
4832
|
}
|
|
4833
|
+
/**
|
|
4834
|
+
*
|
|
4835
|
+
* @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
|
|
4836
|
+
* @param {*} [options] Override http request option.
|
|
4837
|
+
* @throws {RequiredError}
|
|
4838
|
+
* @memberof ClubsManagerApi
|
|
4839
|
+
*/
|
|
4840
|
+
addCreditsToCustomer(requestParameters, options) {
|
|
4841
|
+
return ClubsManagerApiFp(this.configuration).addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4842
|
+
}
|
|
5166
4843
|
/**
|
|
5167
4844
|
*
|
|
5168
4845
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5312,16 +4989,6 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
5312
4989
|
updateClubInfos(requestParameters, options) {
|
|
5313
4990
|
return ClubsManagerApiFp(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
5314
4991
|
}
|
|
5315
|
-
/**
|
|
5316
|
-
*
|
|
5317
|
-
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
5318
|
-
* @param {*} [options] Override http request option.
|
|
5319
|
-
* @throws {RequiredError}
|
|
5320
|
-
* @memberof ClubsManagerApi
|
|
5321
|
-
*/
|
|
5322
|
-
updateClubPresentationSettings(requestParameters, options) {
|
|
5323
|
-
return ClubsManagerApiFp(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5324
|
-
}
|
|
5325
4992
|
/**
|
|
5326
4993
|
*
|
|
5327
4994
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5430,33 +5097,6 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
5430
5097
|
options: localVarRequestOptions,
|
|
5431
5098
|
};
|
|
5432
5099
|
}),
|
|
5433
|
-
/**
|
|
5434
|
-
*
|
|
5435
|
-
* @param {*} [options] Override http request option.
|
|
5436
|
-
* @throws {RequiredError}
|
|
5437
|
-
*/
|
|
5438
|
-
getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5439
|
-
const localVarPath = `/api/clubs/settings/presentation`;
|
|
5440
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5441
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5442
|
-
let baseOptions;
|
|
5443
|
-
if (configuration) {
|
|
5444
|
-
baseOptions = configuration.baseOptions;
|
|
5445
|
-
}
|
|
5446
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5447
|
-
const localVarHeaderParameter = {};
|
|
5448
|
-
const localVarQueryParameter = {};
|
|
5449
|
-
// authentication bearerAuth required
|
|
5450
|
-
// http bearer authentication required
|
|
5451
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5452
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5453
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5454
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5455
|
-
return {
|
|
5456
|
-
url: toPathString(localVarUrlObj),
|
|
5457
|
-
options: localVarRequestOptions,
|
|
5458
|
-
};
|
|
5459
|
-
}),
|
|
5460
5100
|
/**
|
|
5461
5101
|
* Récupère les rôles d\'un club
|
|
5462
5102
|
* @param {*} [options] Override http request option.
|
|
@@ -5620,20 +5260,6 @@ export const ClubsStaffApiFp = function (configuration) {
|
|
|
5620
5260
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5621
5261
|
});
|
|
5622
5262
|
},
|
|
5623
|
-
/**
|
|
5624
|
-
*
|
|
5625
|
-
* @param {*} [options] Override http request option.
|
|
5626
|
-
* @throws {RequiredError}
|
|
5627
|
-
*/
|
|
5628
|
-
getClubPresentationSettings(options) {
|
|
5629
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5630
|
-
var _a, _b, _c;
|
|
5631
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPresentationSettings(options);
|
|
5632
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5633
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.getClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5634
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5635
|
-
});
|
|
5636
|
-
},
|
|
5637
5263
|
/**
|
|
5638
5264
|
* Récupère les rôles d\'un club
|
|
5639
5265
|
* @param {*} [options] Override http request option.
|
|
@@ -5724,14 +5350,6 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
5724
5350
|
getClubMembers(options) {
|
|
5725
5351
|
return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
|
|
5726
5352
|
},
|
|
5727
|
-
/**
|
|
5728
|
-
*
|
|
5729
|
-
* @param {*} [options] Override http request option.
|
|
5730
|
-
* @throws {RequiredError}
|
|
5731
|
-
*/
|
|
5732
|
-
getClubPresentationSettings(options) {
|
|
5733
|
-
return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
|
|
5734
|
-
},
|
|
5735
5353
|
/**
|
|
5736
5354
|
* Récupère les rôles d\'un club
|
|
5737
5355
|
* @param {*} [options] Override http request option.
|
|
@@ -5801,15 +5419,6 @@ export class ClubsStaffApi extends BaseAPI {
|
|
|
5801
5419
|
getClubMembers(options) {
|
|
5802
5420
|
return ClubsStaffApiFp(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
|
|
5803
5421
|
}
|
|
5804
|
-
/**
|
|
5805
|
-
*
|
|
5806
|
-
* @param {*} [options] Override http request option.
|
|
5807
|
-
* @throws {RequiredError}
|
|
5808
|
-
* @memberof ClubsStaffApi
|
|
5809
|
-
*/
|
|
5810
|
-
getClubPresentationSettings(options) {
|
|
5811
|
-
return ClubsStaffApiFp(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
5812
|
-
}
|
|
5813
5422
|
/**
|
|
5814
5423
|
* Récupère les rôles d\'un club
|
|
5815
5424
|
* @param {*} [options] Override http request option.
|
|
@@ -6915,52 +6524,141 @@ export const SportsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
6915
6524
|
return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6916
6525
|
},
|
|
6917
6526
|
/**
|
|
6918
|
-
* Met à jour un sport (interdit si vérifié)
|
|
6919
|
-
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
6527
|
+
* Met à jour un sport (interdit si vérifié)
|
|
6528
|
+
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
6529
|
+
* @param {*} [options] Override http request option.
|
|
6530
|
+
* @throws {RequiredError}
|
|
6531
|
+
*/
|
|
6532
|
+
updateSport(requestParameters, options) {
|
|
6533
|
+
return localVarFp.updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(axios, basePath));
|
|
6534
|
+
},
|
|
6535
|
+
};
|
|
6536
|
+
};
|
|
6537
|
+
/**
|
|
6538
|
+
* SportsManagerApi - object-oriented interface
|
|
6539
|
+
* @export
|
|
6540
|
+
* @class SportsManagerApi
|
|
6541
|
+
* @extends {BaseAPI}
|
|
6542
|
+
*/
|
|
6543
|
+
export class SportsManagerApi extends BaseAPI {
|
|
6544
|
+
/**
|
|
6545
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
6546
|
+
* @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
|
|
6547
|
+
* @param {*} [options] Override http request option.
|
|
6548
|
+
* @throws {RequiredError}
|
|
6549
|
+
* @memberof SportsManagerApi
|
|
6550
|
+
*/
|
|
6551
|
+
createSport(requestParameters, options) {
|
|
6552
|
+
return SportsManagerApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6553
|
+
}
|
|
6554
|
+
/**
|
|
6555
|
+
* Supprime un sport (interdit si vérifié)
|
|
6556
|
+
* @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
|
|
6557
|
+
* @param {*} [options] Override http request option.
|
|
6558
|
+
* @throws {RequiredError}
|
|
6559
|
+
* @memberof SportsManagerApi
|
|
6560
|
+
*/
|
|
6561
|
+
deleteSport(requestParameters, options) {
|
|
6562
|
+
return SportsManagerApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6563
|
+
}
|
|
6564
|
+
/**
|
|
6565
|
+
* Met à jour un sport (interdit si vérifié)
|
|
6566
|
+
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
6567
|
+
* @param {*} [options] Override http request option.
|
|
6568
|
+
* @throws {RequiredError}
|
|
6569
|
+
* @memberof SportsManagerApi
|
|
6570
|
+
*/
|
|
6571
|
+
updateSport(requestParameters, options) {
|
|
6572
|
+
return SportsManagerApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6573
|
+
}
|
|
6574
|
+
}
|
|
6575
|
+
/**
|
|
6576
|
+
* SportsPublicApi - axios parameter creator
|
|
6577
|
+
* @export
|
|
6578
|
+
*/
|
|
6579
|
+
export const SportsPublicApiAxiosParamCreator = function (configuration) {
|
|
6580
|
+
return {
|
|
6581
|
+
/**
|
|
6582
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6583
|
+
* @param {*} [options] Override http request option.
|
|
6584
|
+
* @throws {RequiredError}
|
|
6585
|
+
*/
|
|
6586
|
+
getVerifiedSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6587
|
+
const localVarPath = `/api/sports/verified`;
|
|
6588
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6589
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6590
|
+
let baseOptions;
|
|
6591
|
+
if (configuration) {
|
|
6592
|
+
baseOptions = configuration.baseOptions;
|
|
6593
|
+
}
|
|
6594
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6595
|
+
const localVarHeaderParameter = {};
|
|
6596
|
+
const localVarQueryParameter = {};
|
|
6597
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6598
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6599
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6600
|
+
return {
|
|
6601
|
+
url: toPathString(localVarUrlObj),
|
|
6602
|
+
options: localVarRequestOptions,
|
|
6603
|
+
};
|
|
6604
|
+
}),
|
|
6605
|
+
};
|
|
6606
|
+
};
|
|
6607
|
+
/**
|
|
6608
|
+
* SportsPublicApi - functional programming interface
|
|
6609
|
+
* @export
|
|
6610
|
+
*/
|
|
6611
|
+
export const SportsPublicApiFp = function (configuration) {
|
|
6612
|
+
const localVarAxiosParamCreator = SportsPublicApiAxiosParamCreator(configuration);
|
|
6613
|
+
return {
|
|
6614
|
+
/**
|
|
6615
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6616
|
+
* @param {*} [options] Override http request option.
|
|
6617
|
+
* @throws {RequiredError}
|
|
6618
|
+
*/
|
|
6619
|
+
getVerifiedSports(options) {
|
|
6620
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6621
|
+
var _a, _b, _c;
|
|
6622
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getVerifiedSports(options);
|
|
6623
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6624
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SportsPublicApi.getVerifiedSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6625
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6626
|
+
});
|
|
6627
|
+
},
|
|
6628
|
+
};
|
|
6629
|
+
};
|
|
6630
|
+
/**
|
|
6631
|
+
* SportsPublicApi - factory interface
|
|
6632
|
+
* @export
|
|
6633
|
+
*/
|
|
6634
|
+
export const SportsPublicApiFactory = function (configuration, basePath, axios) {
|
|
6635
|
+
const localVarFp = SportsPublicApiFp(configuration);
|
|
6636
|
+
return {
|
|
6637
|
+
/**
|
|
6638
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6920
6639
|
* @param {*} [options] Override http request option.
|
|
6921
6640
|
* @throws {RequiredError}
|
|
6922
6641
|
*/
|
|
6923
|
-
|
|
6924
|
-
return localVarFp.
|
|
6642
|
+
getVerifiedSports(options) {
|
|
6643
|
+
return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
|
|
6925
6644
|
},
|
|
6926
6645
|
};
|
|
6927
6646
|
};
|
|
6928
6647
|
/**
|
|
6929
|
-
*
|
|
6648
|
+
* SportsPublicApi - object-oriented interface
|
|
6930
6649
|
* @export
|
|
6931
|
-
* @class
|
|
6650
|
+
* @class SportsPublicApi
|
|
6932
6651
|
* @extends {BaseAPI}
|
|
6933
6652
|
*/
|
|
6934
|
-
export class
|
|
6935
|
-
/**
|
|
6936
|
-
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
6937
|
-
* @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
|
|
6938
|
-
* @param {*} [options] Override http request option.
|
|
6939
|
-
* @throws {RequiredError}
|
|
6940
|
-
* @memberof SportsManagerApi
|
|
6941
|
-
*/
|
|
6942
|
-
createSport(requestParameters, options) {
|
|
6943
|
-
return SportsManagerApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6944
|
-
}
|
|
6945
|
-
/**
|
|
6946
|
-
* Supprime un sport (interdit si vérifié)
|
|
6947
|
-
* @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
|
|
6948
|
-
* @param {*} [options] Override http request option.
|
|
6949
|
-
* @throws {RequiredError}
|
|
6950
|
-
* @memberof SportsManagerApi
|
|
6951
|
-
*/
|
|
6952
|
-
deleteSport(requestParameters, options) {
|
|
6953
|
-
return SportsManagerApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6954
|
-
}
|
|
6653
|
+
export class SportsPublicApi extends BaseAPI {
|
|
6955
6654
|
/**
|
|
6956
|
-
*
|
|
6957
|
-
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
6655
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6958
6656
|
* @param {*} [options] Override http request option.
|
|
6959
6657
|
* @throws {RequiredError}
|
|
6960
|
-
* @memberof
|
|
6658
|
+
* @memberof SportsPublicApi
|
|
6961
6659
|
*/
|
|
6962
|
-
|
|
6963
|
-
return
|
|
6660
|
+
getVerifiedSports(options) {
|
|
6661
|
+
return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
|
|
6964
6662
|
}
|
|
6965
6663
|
}
|
|
6966
6664
|
/**
|
|
@@ -7773,53 +7471,122 @@ export class SubscriptionsUserApi extends BaseAPI {
|
|
|
7773
7471
|
}
|
|
7774
7472
|
}
|
|
7775
7473
|
/**
|
|
7776
|
-
*
|
|
7474
|
+
* UserApi - axios parameter creator
|
|
7777
7475
|
* @export
|
|
7778
7476
|
*/
|
|
7779
|
-
export const
|
|
7477
|
+
export const UserApiAxiosParamCreator = function (configuration) {
|
|
7780
7478
|
return {
|
|
7781
7479
|
/**
|
|
7782
|
-
*
|
|
7783
|
-
* @param {
|
|
7480
|
+
* Récupère les informations du club de l\'utilisateur
|
|
7481
|
+
* @param {string} clubId
|
|
7784
7482
|
* @param {*} [options] Override http request option.
|
|
7785
7483
|
* @throws {RequiredError}
|
|
7786
7484
|
*/
|
|
7787
|
-
|
|
7788
|
-
// verify required parameter '
|
|
7789
|
-
assertParamExists('
|
|
7790
|
-
const localVarPath = `/api/users/me/
|
|
7485
|
+
getMyClubInfos: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
7486
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
7487
|
+
assertParamExists('getMyClubInfos', 'clubId', clubId);
|
|
7488
|
+
const localVarPath = `/api/users/me/club-infos`;
|
|
7791
7489
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7792
7490
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7793
7491
|
let baseOptions;
|
|
7794
7492
|
if (configuration) {
|
|
7795
7493
|
baseOptions = configuration.baseOptions;
|
|
7796
7494
|
}
|
|
7797
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
7495
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7798
7496
|
const localVarHeaderParameter = {};
|
|
7799
7497
|
const localVarQueryParameter = {};
|
|
7800
7498
|
// authentication bearerAuth required
|
|
7801
7499
|
// http bearer authentication required
|
|
7802
7500
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7803
|
-
|
|
7501
|
+
if (clubId !== undefined) {
|
|
7502
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
7503
|
+
}
|
|
7804
7504
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7805
7505
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7806
7506
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7807
|
-
localVarRequestOptions.data = serializeDataIfNeeded(favoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
7808
7507
|
return {
|
|
7809
7508
|
url: toPathString(localVarUrlObj),
|
|
7810
7509
|
options: localVarRequestOptions,
|
|
7811
7510
|
};
|
|
7812
7511
|
}),
|
|
7512
|
+
};
|
|
7513
|
+
};
|
|
7514
|
+
/**
|
|
7515
|
+
* UserApi - functional programming interface
|
|
7516
|
+
* @export
|
|
7517
|
+
*/
|
|
7518
|
+
export const UserApiFp = function (configuration) {
|
|
7519
|
+
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
|
|
7520
|
+
return {
|
|
7521
|
+
/**
|
|
7522
|
+
* Récupère les informations du club de l\'utilisateur
|
|
7523
|
+
* @param {string} clubId
|
|
7524
|
+
* @param {*} [options] Override http request option.
|
|
7525
|
+
* @throws {RequiredError}
|
|
7526
|
+
*/
|
|
7527
|
+
getMyClubInfos(clubId, options) {
|
|
7528
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7529
|
+
var _a, _b, _c;
|
|
7530
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClubInfos(clubId, options);
|
|
7531
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7532
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.getMyClubInfos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7533
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7534
|
+
});
|
|
7535
|
+
},
|
|
7536
|
+
};
|
|
7537
|
+
};
|
|
7538
|
+
/**
|
|
7539
|
+
* UserApi - factory interface
|
|
7540
|
+
* @export
|
|
7541
|
+
*/
|
|
7542
|
+
export const UserApiFactory = function (configuration, basePath, axios) {
|
|
7543
|
+
const localVarFp = UserApiFp(configuration);
|
|
7544
|
+
return {
|
|
7545
|
+
/**
|
|
7546
|
+
* Récupère les informations du club de l\'utilisateur
|
|
7547
|
+
* @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
|
|
7548
|
+
* @param {*} [options] Override http request option.
|
|
7549
|
+
* @throws {RequiredError}
|
|
7550
|
+
*/
|
|
7551
|
+
getMyClubInfos(requestParameters, options) {
|
|
7552
|
+
return localVarFp.getMyClubInfos(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
7553
|
+
},
|
|
7554
|
+
};
|
|
7555
|
+
};
|
|
7556
|
+
/**
|
|
7557
|
+
* UserApi - object-oriented interface
|
|
7558
|
+
* @export
|
|
7559
|
+
* @class UserApi
|
|
7560
|
+
* @extends {BaseAPI}
|
|
7561
|
+
*/
|
|
7562
|
+
export class UserApi extends BaseAPI {
|
|
7563
|
+
/**
|
|
7564
|
+
* Récupère les informations du club de l\'utilisateur
|
|
7565
|
+
* @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
|
|
7566
|
+
* @param {*} [options] Override http request option.
|
|
7567
|
+
* @throws {RequiredError}
|
|
7568
|
+
* @memberof UserApi
|
|
7569
|
+
*/
|
|
7570
|
+
getMyClubInfos(requestParameters, options) {
|
|
7571
|
+
return UserApiFp(this.configuration).getMyClubInfos(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
7572
|
+
}
|
|
7573
|
+
}
|
|
7574
|
+
/**
|
|
7575
|
+
* UsersApi - axios parameter creator
|
|
7576
|
+
* @export
|
|
7577
|
+
*/
|
|
7578
|
+
export const UsersApiAxiosParamCreator = function (configuration) {
|
|
7579
|
+
return {
|
|
7813
7580
|
/**
|
|
7814
7581
|
*
|
|
7815
|
-
* @param {
|
|
7582
|
+
* @param {FavoriteClubRequestBody} favoriteClubRequestBody
|
|
7816
7583
|
* @param {*} [options] Override http request option.
|
|
7817
7584
|
* @throws {RequiredError}
|
|
7818
7585
|
*/
|
|
7819
|
-
|
|
7820
|
-
// verify required parameter '
|
|
7821
|
-
assertParamExists('
|
|
7822
|
-
const localVarPath = `/api/users/me/
|
|
7586
|
+
addFavoriteClub: (favoriteClubRequestBody_1, ...args_1) => __awaiter(this, [favoriteClubRequestBody_1, ...args_1], void 0, function* (favoriteClubRequestBody, options = {}) {
|
|
7587
|
+
// verify required parameter 'favoriteClubRequestBody' is not null or undefined
|
|
7588
|
+
assertParamExists('addFavoriteClub', 'favoriteClubRequestBody', favoriteClubRequestBody);
|
|
7589
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
7823
7590
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7824
7591
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7825
7592
|
let baseOptions;
|
|
@@ -7836,7 +7603,7 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7836
7603
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7837
7604
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7838
7605
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7839
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
7606
|
+
localVarRequestOptions.data = serializeDataIfNeeded(favoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
7840
7607
|
return {
|
|
7841
7608
|
url: toPathString(localVarUrlObj),
|
|
7842
7609
|
options: localVarRequestOptions,
|
|
@@ -7844,14 +7611,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7844
7611
|
}),
|
|
7845
7612
|
/**
|
|
7846
7613
|
*
|
|
7847
|
-
* @param {
|
|
7614
|
+
* @param {FavoritePlayerRequestBody} favoritePlayerRequestBody
|
|
7848
7615
|
* @param {*} [options] Override http request option.
|
|
7849
7616
|
* @throws {RequiredError}
|
|
7850
7617
|
*/
|
|
7851
|
-
|
|
7852
|
-
// verify required parameter '
|
|
7853
|
-
assertParamExists('
|
|
7854
|
-
const localVarPath = `/api/users/me/
|
|
7618
|
+
addFavoritePlayer: (favoritePlayerRequestBody_1, ...args_1) => __awaiter(this, [favoritePlayerRequestBody_1, ...args_1], void 0, function* (favoritePlayerRequestBody, options = {}) {
|
|
7619
|
+
// verify required parameter 'favoritePlayerRequestBody' is not null or undefined
|
|
7620
|
+
assertParamExists('addFavoritePlayer', 'favoritePlayerRequestBody', favoritePlayerRequestBody);
|
|
7621
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
7855
7622
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7856
7623
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7857
7624
|
let baseOptions;
|
|
@@ -7868,7 +7635,7 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7868
7635
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7869
7636
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7870
7637
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7871
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
7638
|
+
localVarRequestOptions.data = serializeDataIfNeeded(favoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
7872
7639
|
return {
|
|
7873
7640
|
url: toPathString(localVarUrlObj),
|
|
7874
7641
|
options: localVarRequestOptions,
|
|
@@ -7876,14 +7643,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7876
7643
|
}),
|
|
7877
7644
|
/**
|
|
7878
7645
|
*
|
|
7879
|
-
* @param {
|
|
7646
|
+
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
7880
7647
|
* @param {*} [options] Override http request option.
|
|
7881
7648
|
* @throws {RequiredError}
|
|
7882
7649
|
*/
|
|
7883
|
-
|
|
7884
|
-
// verify required parameter '
|
|
7885
|
-
assertParamExists('
|
|
7886
|
-
const localVarPath = `/api/users/
|
|
7650
|
+
addOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
|
|
7651
|
+
// verify required parameter 'addOrganizationRequest' is not null or undefined
|
|
7652
|
+
assertParamExists('addOrganization', 'addOrganizationRequest', addOrganizationRequest);
|
|
7653
|
+
const localVarPath = `/api/users/me/add-organization`;
|
|
7887
7654
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7888
7655
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7889
7656
|
let baseOptions;
|
|
@@ -7900,7 +7667,7 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7900
7667
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7901
7668
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7902
7669
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7903
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
7670
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration);
|
|
7904
7671
|
return {
|
|
7905
7672
|
url: toPathString(localVarUrlObj),
|
|
7906
7673
|
options: localVarRequestOptions,
|
|
@@ -7938,38 +7705,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7938
7705
|
options: localVarRequestOptions,
|
|
7939
7706
|
};
|
|
7940
7707
|
}),
|
|
7941
|
-
/**
|
|
7942
|
-
*
|
|
7943
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
7944
|
-
* @param {*} [options] Override http request option.
|
|
7945
|
-
* @throws {RequiredError}
|
|
7946
|
-
*/
|
|
7947
|
-
confirmPaymentMethodSetup: (confirmPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodRequestBody, options = {}) {
|
|
7948
|
-
// verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
|
|
7949
|
-
assertParamExists('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody);
|
|
7950
|
-
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
7951
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7952
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7953
|
-
let baseOptions;
|
|
7954
|
-
if (configuration) {
|
|
7955
|
-
baseOptions = configuration.baseOptions;
|
|
7956
|
-
}
|
|
7957
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7958
|
-
const localVarHeaderParameter = {};
|
|
7959
|
-
const localVarQueryParameter = {};
|
|
7960
|
-
// authentication bearerAuth required
|
|
7961
|
-
// http bearer authentication required
|
|
7962
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7963
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7964
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7965
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7966
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7967
|
-
localVarRequestOptions.data = serializeDataIfNeeded(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
7968
|
-
return {
|
|
7969
|
-
url: toPathString(localVarUrlObj),
|
|
7970
|
-
options: localVarRequestOptions,
|
|
7971
|
-
};
|
|
7972
|
-
}),
|
|
7973
7708
|
/**
|
|
7974
7709
|
*
|
|
7975
7710
|
* @param {*} [options] Override http request option.
|
|
@@ -8739,38 +8474,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8739
8474
|
options: localVarRequestOptions,
|
|
8740
8475
|
};
|
|
8741
8476
|
}),
|
|
8742
|
-
/**
|
|
8743
|
-
*
|
|
8744
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
8745
|
-
* @param {*} [options] Override http request option.
|
|
8746
|
-
* @throws {RequiredError}
|
|
8747
|
-
*/
|
|
8748
|
-
setupOffSessionPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
8749
|
-
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
8750
|
-
assertParamExists('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
8751
|
-
const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
|
|
8752
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8753
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8754
|
-
let baseOptions;
|
|
8755
|
-
if (configuration) {
|
|
8756
|
-
baseOptions = configuration.baseOptions;
|
|
8757
|
-
}
|
|
8758
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8759
|
-
const localVarHeaderParameter = {};
|
|
8760
|
-
const localVarQueryParameter = {};
|
|
8761
|
-
// authentication bearerAuth required
|
|
8762
|
-
// http bearer authentication required
|
|
8763
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8764
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8765
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8766
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8767
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8768
|
-
localVarRequestOptions.data = serializeDataIfNeeded(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
8769
|
-
return {
|
|
8770
|
-
url: toPathString(localVarUrlObj),
|
|
8771
|
-
options: localVarRequestOptions,
|
|
8772
|
-
};
|
|
8773
|
-
}),
|
|
8774
8477
|
/**
|
|
8775
8478
|
*
|
|
8776
8479
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -9040,21 +8743,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
9040
8743
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9041
8744
|
});
|
|
9042
8745
|
},
|
|
9043
|
-
/**
|
|
9044
|
-
*
|
|
9045
|
-
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
9046
|
-
* @param {*} [options] Override http request option.
|
|
9047
|
-
* @throws {RequiredError}
|
|
9048
|
-
*/
|
|
9049
|
-
addPaymentMethodSetup(addPaymentMethodRequestBody, options) {
|
|
9050
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9051
|
-
var _a, _b, _c;
|
|
9052
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, options);
|
|
9053
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9054
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9055
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9056
|
-
});
|
|
9057
|
-
},
|
|
9058
8746
|
/**
|
|
9059
8747
|
*
|
|
9060
8748
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -9070,21 +8758,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
9070
8758
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9071
8759
|
});
|
|
9072
8760
|
},
|
|
9073
|
-
/**
|
|
9074
|
-
*
|
|
9075
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
9076
|
-
* @param {*} [options] Override http request option.
|
|
9077
|
-
* @throws {RequiredError}
|
|
9078
|
-
*/
|
|
9079
|
-
confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options) {
|
|
9080
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9081
|
-
var _a, _b, _c;
|
|
9082
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
|
|
9083
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9084
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9085
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9086
|
-
});
|
|
9087
|
-
},
|
|
9088
8761
|
/**
|
|
9089
8762
|
*
|
|
9090
8763
|
* @param {*} [options] Override http request option.
|
|
@@ -9455,21 +9128,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
9455
9128
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9456
9129
|
});
|
|
9457
9130
|
},
|
|
9458
|
-
/**
|
|
9459
|
-
*
|
|
9460
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
9461
|
-
* @param {*} [options] Override http request option.
|
|
9462
|
-
* @throws {RequiredError}
|
|
9463
|
-
*/
|
|
9464
|
-
setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
9465
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9466
|
-
var _a, _b, _c;
|
|
9467
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
9468
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9469
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.setupOffSessionPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9470
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9471
|
-
});
|
|
9472
|
-
},
|
|
9473
9131
|
/**
|
|
9474
9132
|
*
|
|
9475
9133
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -9611,15 +9269,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9611
9269
|
addOrganization(requestParameters, options) {
|
|
9612
9270
|
return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
9613
9271
|
},
|
|
9614
|
-
/**
|
|
9615
|
-
*
|
|
9616
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9617
|
-
* @param {*} [options] Override http request option.
|
|
9618
|
-
* @throws {RequiredError}
|
|
9619
|
-
*/
|
|
9620
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
9621
|
-
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9622
|
-
},
|
|
9623
9272
|
/**
|
|
9624
9273
|
*
|
|
9625
9274
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -9629,15 +9278,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9629
9278
|
changePassword(requestParameters, options) {
|
|
9630
9279
|
return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
|
|
9631
9280
|
},
|
|
9632
|
-
/**
|
|
9633
|
-
*
|
|
9634
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9635
|
-
* @param {*} [options] Override http request option.
|
|
9636
|
-
* @throws {RequiredError}
|
|
9637
|
-
*/
|
|
9638
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
9639
|
-
return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9640
|
-
},
|
|
9641
9281
|
/**
|
|
9642
9282
|
*
|
|
9643
9283
|
* @param {*} [options] Override http request option.
|
|
@@ -9846,15 +9486,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9846
9486
|
resetPassword(requestParameters, options) {
|
|
9847
9487
|
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
9848
9488
|
},
|
|
9849
|
-
/**
|
|
9850
|
-
*
|
|
9851
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
9852
|
-
* @param {*} [options] Override http request option.
|
|
9853
|
-
* @throws {RequiredError}
|
|
9854
|
-
*/
|
|
9855
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
9856
|
-
return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9857
|
-
},
|
|
9858
9489
|
/**
|
|
9859
9490
|
*
|
|
9860
9491
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
@@ -9957,16 +9588,6 @@ export class UsersApi extends BaseAPI {
|
|
|
9957
9588
|
addOrganization(requestParameters, options) {
|
|
9958
9589
|
return UsersApiFp(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9959
9590
|
}
|
|
9960
|
-
/**
|
|
9961
|
-
*
|
|
9962
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9963
|
-
* @param {*} [options] Override http request option.
|
|
9964
|
-
* @throws {RequiredError}
|
|
9965
|
-
* @memberof UsersApi
|
|
9966
|
-
*/
|
|
9967
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
9968
|
-
return UsersApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9969
|
-
}
|
|
9970
9591
|
/**
|
|
9971
9592
|
*
|
|
9972
9593
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -9977,16 +9598,6 @@ export class UsersApi extends BaseAPI {
|
|
|
9977
9598
|
changePassword(requestParameters, options) {
|
|
9978
9599
|
return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9979
9600
|
}
|
|
9980
|
-
/**
|
|
9981
|
-
*
|
|
9982
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9983
|
-
* @param {*} [options] Override http request option.
|
|
9984
|
-
* @throws {RequiredError}
|
|
9985
|
-
* @memberof UsersApi
|
|
9986
|
-
*/
|
|
9987
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
9988
|
-
return UsersApiFp(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9989
|
-
}
|
|
9990
9601
|
/**
|
|
9991
9602
|
*
|
|
9992
9603
|
* @param {*} [options] Override http request option.
|
|
@@ -10219,16 +9830,6 @@ export class UsersApi extends BaseAPI {
|
|
|
10219
9830
|
resetPassword(requestParameters, options) {
|
|
10220
9831
|
return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10221
9832
|
}
|
|
10222
|
-
/**
|
|
10223
|
-
*
|
|
10224
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
10225
|
-
* @param {*} [options] Override http request option.
|
|
10226
|
-
* @throws {RequiredError}
|
|
10227
|
-
* @memberof UsersApi
|
|
10228
|
-
*/
|
|
10229
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
10230
|
-
return UsersApiFp(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10231
|
-
}
|
|
10232
9833
|
/**
|
|
10233
9834
|
*
|
|
10234
9835
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|