@tennac-booking/sdk 1.0.88 → 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 +31 -49
- package/api.ts +4761 -5669
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1405 -2010
- package/dist/api.js +483 -936
- 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 +1405 -2010
- package/dist/esm/api.js +471 -928
- 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 +60 -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 -183
- 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,86 +2688,76 @@ 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 {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
2698
|
+
* Supprime les paramètres d\'un club
|
|
2815
2699
|
* @param {*} [options] Override http request option.
|
|
2816
2700
|
* @throws {RequiredError}
|
|
2817
2701
|
*/
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
assertParamExists('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
|
|
2821
|
-
const localVarPath = `/api/club-settings/hours`;
|
|
2702
|
+
deleteClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
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);
|
|
2824
2706
|
let baseOptions;
|
|
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(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
|
|
2839
2719
|
return {
|
|
2840
2720
|
url: toPathString(localVarUrlObj),
|
|
2841
2721
|
options: localVarRequestOptions,
|
|
2842
2722
|
};
|
|
2843
2723
|
}),
|
|
2844
2724
|
/**
|
|
2845
|
-
*
|
|
2846
|
-
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
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('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse);
|
|
2853
|
-
const localVarPath = `/api/club-settings/presentation`;
|
|
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(clubPresentationSettingsResponse, 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,424 +2790,153 @@ export const ClubSettingsManagerApiFp = function (configuration) {
|
|
|
2915
2790
|
const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration);
|
|
2916
2791
|
return {
|
|
2917
2792
|
/**
|
|
2918
|
-
*
|
|
2919
|
-
* @param {
|
|
2920
|
-
* @param {
|
|
2921
|
-
* @throws {RequiredError}
|
|
2922
|
-
*/
|
|
2923
|
-
updateClubGeneralSettings(updateClubGeneralSettingsRequest, options) {
|
|
2924
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2925
|
-
var _a, _b, _c;
|
|
2926
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
|
|
2927
|
-
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.updateClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2929
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2930
|
-
});
|
|
2931
|
-
},
|
|
2932
|
-
/**
|
|
2933
|
-
*
|
|
2934
|
-
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
2935
|
-
* @param {*} [options] Override http request option.
|
|
2936
|
-
* @throws {RequiredError}
|
|
2937
|
-
*/
|
|
2938
|
-
updateHoursSettings(updateClubHoursSettingsRequest, options) {
|
|
2939
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2940
|
-
var _a, _b, _c;
|
|
2941
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
|
|
2942
|
-
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.updateHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2944
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2945
|
-
});
|
|
2946
|
-
},
|
|
2947
|
-
/**
|
|
2948
|
-
*
|
|
2949
|
-
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
2950
|
-
* @param {*} [options] Override http request option.
|
|
2951
|
-
* @throws {RequiredError}
|
|
2952
|
-
*/
|
|
2953
|
-
updatePresentationSettings(clubPresentationSettingsResponse, options) {
|
|
2954
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2955
|
-
var _a, _b, _c;
|
|
2956
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
|
|
2957
|
-
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.updatePresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2959
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2960
|
-
});
|
|
2961
|
-
},
|
|
2962
|
-
/**
|
|
2963
|
-
*
|
|
2964
|
-
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
2965
|
-
* @param {*} [options] Override http request option.
|
|
2966
|
-
* @throws {RequiredError}
|
|
2967
|
-
*/
|
|
2968
|
-
updateReservationSettings(updateClubReservationSettingsRequest, options) {
|
|
2969
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2970
|
-
var _a, _b, _c;
|
|
2971
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
|
|
2972
|
-
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.updateReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2974
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2975
|
-
});
|
|
2976
|
-
},
|
|
2977
|
-
};
|
|
2978
|
-
};
|
|
2979
|
-
/**
|
|
2980
|
-
* ClubSettingsManagerApi - factory interface
|
|
2981
|
-
* @export
|
|
2982
|
-
*/
|
|
2983
|
-
export const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
|
|
2984
|
-
const localVarFp = ClubSettingsManagerApiFp(configuration);
|
|
2985
|
-
return {
|
|
2986
|
-
/**
|
|
2987
|
-
*
|
|
2988
|
-
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
2989
|
-
* @param {*} [options] Override http request option.
|
|
2990
|
-
* @throws {RequiredError}
|
|
2991
|
-
*/
|
|
2992
|
-
updateClubGeneralSettings(requestParameters, options) {
|
|
2993
|
-
return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2994
|
-
},
|
|
2995
|
-
/**
|
|
2996
|
-
*
|
|
2997
|
-
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
2998
|
-
* @param {*} [options] Override http request option.
|
|
2999
|
-
* @throws {RequiredError}
|
|
3000
|
-
*/
|
|
3001
|
-
updateHoursSettings(requestParameters, options) {
|
|
3002
|
-
return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3003
|
-
},
|
|
3004
|
-
/**
|
|
3005
|
-
*
|
|
3006
|
-
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
3007
|
-
* @param {*} [options] Override http request option.
|
|
3008
|
-
* @throws {RequiredError}
|
|
3009
|
-
*/
|
|
3010
|
-
updatePresentationSettings(requestParameters, options) {
|
|
3011
|
-
return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
|
|
3012
|
-
},
|
|
3013
|
-
/**
|
|
3014
|
-
*
|
|
3015
|
-
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
3016
|
-
* @param {*} [options] Override http request option.
|
|
3017
|
-
* @throws {RequiredError}
|
|
3018
|
-
*/
|
|
3019
|
-
updateReservationSettings(requestParameters, options) {
|
|
3020
|
-
return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3021
|
-
},
|
|
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
|
-
*
|
|
3043
|
-
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
3044
|
-
* @param {*} [options] Override http request option.
|
|
3045
|
-
* @throws {RequiredError}
|
|
3046
|
-
* @memberof ClubSettingsManagerApi
|
|
3047
|
-
*/
|
|
3048
|
-
updateHoursSettings(requestParameters, options) {
|
|
3049
|
-
return ClubSettingsManagerApiFp(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3050
|
-
}
|
|
3051
|
-
/**
|
|
3052
|
-
*
|
|
3053
|
-
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
3054
|
-
* @param {*} [options] Override http request option.
|
|
3055
|
-
* @throws {RequiredError}
|
|
3056
|
-
* @memberof ClubSettingsManagerApi
|
|
3057
|
-
*/
|
|
3058
|
-
updatePresentationSettings(requestParameters, options) {
|
|
3059
|
-
return ClubSettingsManagerApiFp(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, 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
|
-
/**
|
|
3106
|
-
*
|
|
3107
|
-
* @param {*} [options] Override http request option.
|
|
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
|
-
getPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3138
|
-
const localVarPath = `/api/club-settings/presentation`;
|
|
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
|
-
* @param {*} [options] Override http request option.
|
|
3162
|
-
* @throws {RequiredError}
|
|
3163
|
-
*/
|
|
3164
|
-
getReservationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3165
|
-
const localVarPath = `/api/club-settings/reservation`;
|
|
3166
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3167
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3168
|
-
let baseOptions;
|
|
3169
|
-
if (configuration) {
|
|
3170
|
-
baseOptions = configuration.baseOptions;
|
|
3171
|
-
}
|
|
3172
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3173
|
-
const localVarHeaderParameter = {};
|
|
3174
|
-
const localVarQueryParameter = {};
|
|
3175
|
-
// authentication bearerAuth required
|
|
3176
|
-
// http bearer authentication required
|
|
3177
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3178
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3179
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3180
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3181
|
-
return {
|
|
3182
|
-
url: toPathString(localVarUrlObj),
|
|
3183
|
-
options: localVarRequestOptions,
|
|
3184
|
-
};
|
|
3185
|
-
}),
|
|
3186
|
-
};
|
|
3187
|
-
};
|
|
3188
|
-
/**
|
|
3189
|
-
* ClubSettingsStaffApi - functional programming interface
|
|
3190
|
-
* @export
|
|
3191
|
-
*/
|
|
3192
|
-
export const ClubSettingsStaffApiFp = function (configuration) {
|
|
3193
|
-
const localVarAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator(configuration);
|
|
3194
|
-
return {
|
|
3195
|
-
/**
|
|
3196
|
-
*
|
|
2793
|
+
* Crée les paramètres d\'un club
|
|
2794
|
+
* @param {string} clubId
|
|
2795
|
+
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
3197
2796
|
* @param {*} [options] Override http request option.
|
|
3198
2797
|
* @throws {RequiredError}
|
|
3199
2798
|
*/
|
|
3200
|
-
|
|
2799
|
+
createClubSettings(clubId, createClubSettingsRequest, options) {
|
|
3201
2800
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3202
2801
|
var _a, _b, _c;
|
|
3203
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2802
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubSettings(clubId, createClubSettingsRequest, options);
|
|
3204
2803
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3205
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2804
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.createClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3206
2805
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3207
2806
|
});
|
|
3208
2807
|
},
|
|
3209
2808
|
/**
|
|
3210
|
-
*
|
|
2809
|
+
* Supprime les paramètres d\'un club
|
|
3211
2810
|
* @param {*} [options] Override http request option.
|
|
3212
2811
|
* @throws {RequiredError}
|
|
3213
2812
|
*/
|
|
3214
|
-
|
|
2813
|
+
deleteClubSettings(options) {
|
|
3215
2814
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3216
2815
|
var _a, _b, _c;
|
|
3217
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2816
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubSettings(options);
|
|
3218
2817
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3219
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2818
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.deleteClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3220
2819
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3221
2820
|
});
|
|
3222
2821
|
},
|
|
3223
2822
|
/**
|
|
3224
|
-
*
|
|
2823
|
+
* Récupère les paramètres d\'un club
|
|
3225
2824
|
* @param {*} [options] Override http request option.
|
|
3226
2825
|
* @throws {RequiredError}
|
|
3227
2826
|
*/
|
|
3228
|
-
|
|
2827
|
+
getClubSettings(options) {
|
|
3229
2828
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3230
2829
|
var _a, _b, _c;
|
|
3231
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2830
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
|
|
3232
2831
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3233
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2832
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3234
2833
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3235
2834
|
});
|
|
3236
2835
|
},
|
|
3237
2836
|
/**
|
|
3238
|
-
*
|
|
2837
|
+
* Met à jour les paramètres d\'un club
|
|
2838
|
+
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
3239
2839
|
* @param {*} [options] Override http request option.
|
|
3240
2840
|
* @throws {RequiredError}
|
|
3241
2841
|
*/
|
|
3242
|
-
|
|
2842
|
+
updateClubSettings(updateClubSettingsRequest, options) {
|
|
3243
2843
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3244
2844
|
var _a, _b, _c;
|
|
3245
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2845
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
|
|
3246
2846
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3247
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2847
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3248
2848
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3249
2849
|
});
|
|
3250
2850
|
},
|
|
3251
2851
|
};
|
|
3252
2852
|
};
|
|
3253
2853
|
/**
|
|
3254
|
-
*
|
|
2854
|
+
* ClubSettingsManagerApi - factory interface
|
|
3255
2855
|
* @export
|
|
3256
2856
|
*/
|
|
3257
|
-
export const
|
|
3258
|
-
const localVarFp =
|
|
2857
|
+
export const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
|
|
2858
|
+
const localVarFp = ClubSettingsManagerApiFp(configuration);
|
|
3259
2859
|
return {
|
|
3260
2860
|
/**
|
|
3261
|
-
*
|
|
2861
|
+
* Crée les paramètres d\'un club
|
|
2862
|
+
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
3262
2863
|
* @param {*} [options] Override http request option.
|
|
3263
2864
|
* @throws {RequiredError}
|
|
3264
2865
|
*/
|
|
3265
|
-
|
|
3266
|
-
return localVarFp.
|
|
2866
|
+
createClubSettings(requestParameters, options) {
|
|
2867
|
+
return localVarFp.createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3267
2868
|
},
|
|
3268
2869
|
/**
|
|
3269
|
-
*
|
|
2870
|
+
* Supprime les paramètres d\'un club
|
|
3270
2871
|
* @param {*} [options] Override http request option.
|
|
3271
2872
|
* @throws {RequiredError}
|
|
3272
2873
|
*/
|
|
3273
|
-
|
|
3274
|
-
return localVarFp.
|
|
2874
|
+
deleteClubSettings(options) {
|
|
2875
|
+
return localVarFp.deleteClubSettings(options).then((request) => request(axios, basePath));
|
|
3275
2876
|
},
|
|
3276
2877
|
/**
|
|
3277
|
-
*
|
|
2878
|
+
* Récupère les paramètres d\'un club
|
|
3278
2879
|
* @param {*} [options] Override http request option.
|
|
3279
2880
|
* @throws {RequiredError}
|
|
3280
2881
|
*/
|
|
3281
|
-
|
|
3282
|
-
return localVarFp.
|
|
2882
|
+
getClubSettings(options) {
|
|
2883
|
+
return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
|
|
3283
2884
|
},
|
|
3284
2885
|
/**
|
|
3285
|
-
*
|
|
2886
|
+
* Met à jour les paramètres d\'un club
|
|
2887
|
+
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3286
2888
|
* @param {*} [options] Override http request option.
|
|
3287
2889
|
* @throws {RequiredError}
|
|
3288
2890
|
*/
|
|
3289
|
-
|
|
3290
|
-
return localVarFp.
|
|
2891
|
+
updateClubSettings(requestParameters, options) {
|
|
2892
|
+
return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3291
2893
|
},
|
|
3292
2894
|
};
|
|
3293
2895
|
};
|
|
3294
2896
|
/**
|
|
3295
|
-
*
|
|
2897
|
+
* ClubSettingsManagerApi - object-oriented interface
|
|
3296
2898
|
* @export
|
|
3297
|
-
* @class
|
|
2899
|
+
* @class ClubSettingsManagerApi
|
|
3298
2900
|
* @extends {BaseAPI}
|
|
3299
2901
|
*/
|
|
3300
|
-
export class
|
|
2902
|
+
export class ClubSettingsManagerApi extends BaseAPI {
|
|
3301
2903
|
/**
|
|
3302
|
-
*
|
|
2904
|
+
* Crée les paramètres d\'un club
|
|
2905
|
+
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
3303
2906
|
* @param {*} [options] Override http request option.
|
|
3304
2907
|
* @throws {RequiredError}
|
|
3305
|
-
* @memberof
|
|
2908
|
+
* @memberof ClubSettingsManagerApi
|
|
3306
2909
|
*/
|
|
3307
|
-
|
|
3308
|
-
return
|
|
2910
|
+
createClubSettings(requestParameters, options) {
|
|
2911
|
+
return ClubSettingsManagerApiFp(this.configuration).createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3309
2912
|
}
|
|
3310
2913
|
/**
|
|
3311
|
-
*
|
|
2914
|
+
* Supprime les paramètres d\'un club
|
|
3312
2915
|
* @param {*} [options] Override http request option.
|
|
3313
2916
|
* @throws {RequiredError}
|
|
3314
|
-
* @memberof
|
|
2917
|
+
* @memberof ClubSettingsManagerApi
|
|
3315
2918
|
*/
|
|
3316
|
-
|
|
3317
|
-
return
|
|
2919
|
+
deleteClubSettings(options) {
|
|
2920
|
+
return ClubSettingsManagerApiFp(this.configuration).deleteClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3318
2921
|
}
|
|
3319
2922
|
/**
|
|
3320
|
-
*
|
|
2923
|
+
* Récupère les paramètres d\'un club
|
|
3321
2924
|
* @param {*} [options] Override http request option.
|
|
3322
2925
|
* @throws {RequiredError}
|
|
3323
|
-
* @memberof
|
|
2926
|
+
* @memberof ClubSettingsManagerApi
|
|
3324
2927
|
*/
|
|
3325
|
-
|
|
3326
|
-
return
|
|
2928
|
+
getClubSettings(options) {
|
|
2929
|
+
return ClubSettingsManagerApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3327
2930
|
}
|
|
3328
2931
|
/**
|
|
3329
|
-
*
|
|
2932
|
+
* Met à jour les paramètres d\'un club
|
|
2933
|
+
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3330
2934
|
* @param {*} [options] Override http request option.
|
|
3331
2935
|
* @throws {RequiredError}
|
|
3332
|
-
* @memberof
|
|
2936
|
+
* @memberof ClubSettingsManagerApi
|
|
3333
2937
|
*/
|
|
3334
|
-
|
|
3335
|
-
return
|
|
2938
|
+
updateClubSettings(requestParameters, options) {
|
|
2939
|
+
return ClubSettingsManagerApiFp(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3336
2940
|
}
|
|
3337
2941
|
}
|
|
3338
2942
|
/**
|
|
@@ -3342,7 +2946,7 @@ export class ClubSettingsStaffApi extends BaseAPI {
|
|
|
3342
2946
|
export const ClubsApiAxiosParamCreator = function (configuration) {
|
|
3343
2947
|
return {
|
|
3344
2948
|
/**
|
|
3345
|
-
* 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
|
|
3346
2950
|
* @param {*} [options] Override http request option.
|
|
3347
2951
|
* @throws {RequiredError}
|
|
3348
2952
|
*/
|
|
@@ -3690,7 +3294,7 @@ export const ClubsApiFp = function (configuration) {
|
|
|
3690
3294
|
const localVarAxiosParamCreator = ClubsApiAxiosParamCreator(configuration);
|
|
3691
3295
|
return {
|
|
3692
3296
|
/**
|
|
3693
|
-
* 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
|
|
3694
3298
|
* @param {*} [options] Override http request option.
|
|
3695
3299
|
* @throws {RequiredError}
|
|
3696
3300
|
*/
|
|
@@ -3879,7 +3483,7 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
3879
3483
|
const localVarFp = ClubsApiFp(configuration);
|
|
3880
3484
|
return {
|
|
3881
3485
|
/**
|
|
3882
|
-
* 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
|
|
3883
3487
|
* @param {*} [options] Override http request option.
|
|
3884
3488
|
* @throws {RequiredError}
|
|
3885
3489
|
*/
|
|
@@ -3992,7 +3596,7 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
3992
3596
|
*/
|
|
3993
3597
|
export class ClubsApi extends BaseAPI {
|
|
3994
3598
|
/**
|
|
3995
|
-
* 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
|
|
3996
3600
|
* @param {*} [options] Override http request option.
|
|
3997
3601
|
* @throws {RequiredError}
|
|
3998
3602
|
* @memberof ClubsApi
|
|
@@ -4146,6 +3750,42 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4146
3750
|
options: localVarRequestOptions,
|
|
4147
3751
|
};
|
|
4148
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
|
+
}),
|
|
4149
3789
|
/**
|
|
4150
3790
|
*
|
|
4151
3791
|
* @param {string} priceId
|
|
@@ -4622,38 +4262,6 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4622
4262
|
options: localVarRequestOptions,
|
|
4623
4263
|
};
|
|
4624
4264
|
}),
|
|
4625
|
-
/**
|
|
4626
|
-
*
|
|
4627
|
-
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
4628
|
-
* @param {*} [options] Override http request option.
|
|
4629
|
-
* @throws {RequiredError}
|
|
4630
|
-
*/
|
|
4631
|
-
updateClubPresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
|
|
4632
|
-
// verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
|
|
4633
|
-
assertParamExists('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
|
|
4634
|
-
const localVarPath = `/api/clubs/settings/presentation`;
|
|
4635
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4636
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4637
|
-
let baseOptions;
|
|
4638
|
-
if (configuration) {
|
|
4639
|
-
baseOptions = configuration.baseOptions;
|
|
4640
|
-
}
|
|
4641
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4642
|
-
const localVarHeaderParameter = {};
|
|
4643
|
-
const localVarQueryParameter = {};
|
|
4644
|
-
// authentication bearerAuth required
|
|
4645
|
-
// http bearer authentication required
|
|
4646
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4647
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4648
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4649
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4650
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4651
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
|
|
4652
|
-
return {
|
|
4653
|
-
url: toPathString(localVarUrlObj),
|
|
4654
|
-
options: localVarRequestOptions,
|
|
4655
|
-
};
|
|
4656
|
-
}),
|
|
4657
4265
|
/**
|
|
4658
4266
|
*
|
|
4659
4267
|
* @param {string} courtId
|
|
@@ -4750,6 +4358,22 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
4750
4358
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4751
4359
|
});
|
|
4752
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
|
+
},
|
|
4753
4377
|
/**
|
|
4754
4378
|
*
|
|
4755
4379
|
* @param {string} priceId
|
|
@@ -4976,21 +4600,6 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
4976
4600
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4977
4601
|
});
|
|
4978
4602
|
},
|
|
4979
|
-
/**
|
|
4980
|
-
*
|
|
4981
|
-
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
4982
|
-
* @param {*} [options] Override http request option.
|
|
4983
|
-
* @throws {RequiredError}
|
|
4984
|
-
*/
|
|
4985
|
-
updateClubPresentationSettings(updateClubPresentationSettingsRequest, options) {
|
|
4986
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4987
|
-
var _a, _b, _c;
|
|
4988
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
|
|
4989
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4990
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.updateClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4991
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4992
|
-
});
|
|
4993
|
-
},
|
|
4994
4603
|
/**
|
|
4995
4604
|
*
|
|
4996
4605
|
* @param {string} courtId
|
|
@@ -5041,6 +4650,15 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
5041
4650
|
addClubMember(requestParameters, options) {
|
|
5042
4651
|
return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
5043
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
|
+
},
|
|
5044
4662
|
/**
|
|
5045
4663
|
*
|
|
5046
4664
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5175,15 +4793,6 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
5175
4793
|
updateClubInfos(requestParameters, options) {
|
|
5176
4794
|
return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
5177
4795
|
},
|
|
5178
|
-
/**
|
|
5179
|
-
*
|
|
5180
|
-
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
5181
|
-
* @param {*} [options] Override http request option.
|
|
5182
|
-
* @throws {RequiredError}
|
|
5183
|
-
*/
|
|
5184
|
-
updateClubPresentationSettings(requestParameters, options) {
|
|
5185
|
-
return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
5186
|
-
},
|
|
5187
4796
|
/**
|
|
5188
4797
|
*
|
|
5189
4798
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5221,6 +4830,16 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
5221
4830
|
addClubMember(requestParameters, options) {
|
|
5222
4831
|
return ClubsManagerApiFp(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5223
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
|
+
}
|
|
5224
4843
|
/**
|
|
5225
4844
|
*
|
|
5226
4845
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5370,16 +4989,6 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
5370
4989
|
updateClubInfos(requestParameters, options) {
|
|
5371
4990
|
return ClubsManagerApiFp(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
5372
4991
|
}
|
|
5373
|
-
/**
|
|
5374
|
-
*
|
|
5375
|
-
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
5376
|
-
* @param {*} [options] Override http request option.
|
|
5377
|
-
* @throws {RequiredError}
|
|
5378
|
-
* @memberof ClubsManagerApi
|
|
5379
|
-
*/
|
|
5380
|
-
updateClubPresentationSettings(requestParameters, options) {
|
|
5381
|
-
return ClubsManagerApiFp(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5382
|
-
}
|
|
5383
4992
|
/**
|
|
5384
4993
|
*
|
|
5385
4994
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5488,33 +5097,6 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
5488
5097
|
options: localVarRequestOptions,
|
|
5489
5098
|
};
|
|
5490
5099
|
}),
|
|
5491
|
-
/**
|
|
5492
|
-
*
|
|
5493
|
-
* @param {*} [options] Override http request option.
|
|
5494
|
-
* @throws {RequiredError}
|
|
5495
|
-
*/
|
|
5496
|
-
getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5497
|
-
const localVarPath = `/api/clubs/settings/presentation`;
|
|
5498
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5499
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5500
|
-
let baseOptions;
|
|
5501
|
-
if (configuration) {
|
|
5502
|
-
baseOptions = configuration.baseOptions;
|
|
5503
|
-
}
|
|
5504
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5505
|
-
const localVarHeaderParameter = {};
|
|
5506
|
-
const localVarQueryParameter = {};
|
|
5507
|
-
// authentication bearerAuth required
|
|
5508
|
-
// http bearer authentication required
|
|
5509
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5510
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5511
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5512
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5513
|
-
return {
|
|
5514
|
-
url: toPathString(localVarUrlObj),
|
|
5515
|
-
options: localVarRequestOptions,
|
|
5516
|
-
};
|
|
5517
|
-
}),
|
|
5518
5100
|
/**
|
|
5519
5101
|
* Récupère les rôles d\'un club
|
|
5520
5102
|
* @param {*} [options] Override http request option.
|
|
@@ -5678,20 +5260,6 @@ export const ClubsStaffApiFp = function (configuration) {
|
|
|
5678
5260
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5679
5261
|
});
|
|
5680
5262
|
},
|
|
5681
|
-
/**
|
|
5682
|
-
*
|
|
5683
|
-
* @param {*} [options] Override http request option.
|
|
5684
|
-
* @throws {RequiredError}
|
|
5685
|
-
*/
|
|
5686
|
-
getClubPresentationSettings(options) {
|
|
5687
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5688
|
-
var _a, _b, _c;
|
|
5689
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPresentationSettings(options);
|
|
5690
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5691
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.getClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5692
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5693
|
-
});
|
|
5694
|
-
},
|
|
5695
5263
|
/**
|
|
5696
5264
|
* Récupère les rôles d\'un club
|
|
5697
5265
|
* @param {*} [options] Override http request option.
|
|
@@ -5782,14 +5350,6 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
5782
5350
|
getClubMembers(options) {
|
|
5783
5351
|
return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
|
|
5784
5352
|
},
|
|
5785
|
-
/**
|
|
5786
|
-
*
|
|
5787
|
-
* @param {*} [options] Override http request option.
|
|
5788
|
-
* @throws {RequiredError}
|
|
5789
|
-
*/
|
|
5790
|
-
getClubPresentationSettings(options) {
|
|
5791
|
-
return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
|
|
5792
|
-
},
|
|
5793
5353
|
/**
|
|
5794
5354
|
* Récupère les rôles d\'un club
|
|
5795
5355
|
* @param {*} [options] Override http request option.
|
|
@@ -5859,15 +5419,6 @@ export class ClubsStaffApi extends BaseAPI {
|
|
|
5859
5419
|
getClubMembers(options) {
|
|
5860
5420
|
return ClubsStaffApiFp(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
|
|
5861
5421
|
}
|
|
5862
|
-
/**
|
|
5863
|
-
*
|
|
5864
|
-
* @param {*} [options] Override http request option.
|
|
5865
|
-
* @throws {RequiredError}
|
|
5866
|
-
* @memberof ClubsStaffApi
|
|
5867
|
-
*/
|
|
5868
|
-
getClubPresentationSettings(options) {
|
|
5869
|
-
return ClubsStaffApiFp(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
5870
|
-
}
|
|
5871
5422
|
/**
|
|
5872
5423
|
* Récupère les rôles d\'un club
|
|
5873
5424
|
* @param {*} [options] Override http request option.
|
|
@@ -6973,52 +6524,141 @@ export const SportsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
6973
6524
|
return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6974
6525
|
},
|
|
6975
6526
|
/**
|
|
6976
|
-
* Met à jour un sport (interdit si vérifié)
|
|
6977
|
-
* @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
|
|
6978
6639
|
* @param {*} [options] Override http request option.
|
|
6979
6640
|
* @throws {RequiredError}
|
|
6980
6641
|
*/
|
|
6981
|
-
|
|
6982
|
-
return localVarFp.
|
|
6642
|
+
getVerifiedSports(options) {
|
|
6643
|
+
return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
|
|
6983
6644
|
},
|
|
6984
6645
|
};
|
|
6985
6646
|
};
|
|
6986
6647
|
/**
|
|
6987
|
-
*
|
|
6648
|
+
* SportsPublicApi - object-oriented interface
|
|
6988
6649
|
* @export
|
|
6989
|
-
* @class
|
|
6650
|
+
* @class SportsPublicApi
|
|
6990
6651
|
* @extends {BaseAPI}
|
|
6991
6652
|
*/
|
|
6992
|
-
export class
|
|
6993
|
-
/**
|
|
6994
|
-
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
6995
|
-
* @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
|
|
6996
|
-
* @param {*} [options] Override http request option.
|
|
6997
|
-
* @throws {RequiredError}
|
|
6998
|
-
* @memberof SportsManagerApi
|
|
6999
|
-
*/
|
|
7000
|
-
createSport(requestParameters, options) {
|
|
7001
|
-
return SportsManagerApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7002
|
-
}
|
|
7003
|
-
/**
|
|
7004
|
-
* Supprime un sport (interdit si vérifié)
|
|
7005
|
-
* @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
|
|
7006
|
-
* @param {*} [options] Override http request option.
|
|
7007
|
-
* @throws {RequiredError}
|
|
7008
|
-
* @memberof SportsManagerApi
|
|
7009
|
-
*/
|
|
7010
|
-
deleteSport(requestParameters, options) {
|
|
7011
|
-
return SportsManagerApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7012
|
-
}
|
|
6653
|
+
export class SportsPublicApi extends BaseAPI {
|
|
7013
6654
|
/**
|
|
7014
|
-
*
|
|
7015
|
-
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
6655
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
7016
6656
|
* @param {*} [options] Override http request option.
|
|
7017
6657
|
* @throws {RequiredError}
|
|
7018
|
-
* @memberof
|
|
6658
|
+
* @memberof SportsPublicApi
|
|
7019
6659
|
*/
|
|
7020
|
-
|
|
7021
|
-
return
|
|
6660
|
+
getVerifiedSports(options) {
|
|
6661
|
+
return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
|
|
7022
6662
|
}
|
|
7023
6663
|
}
|
|
7024
6664
|
/**
|
|
@@ -7831,53 +7471,122 @@ export class SubscriptionsUserApi extends BaseAPI {
|
|
|
7831
7471
|
}
|
|
7832
7472
|
}
|
|
7833
7473
|
/**
|
|
7834
|
-
*
|
|
7474
|
+
* UserApi - axios parameter creator
|
|
7835
7475
|
* @export
|
|
7836
7476
|
*/
|
|
7837
|
-
export const
|
|
7477
|
+
export const UserApiAxiosParamCreator = function (configuration) {
|
|
7838
7478
|
return {
|
|
7839
7479
|
/**
|
|
7840
|
-
*
|
|
7841
|
-
* @param {
|
|
7480
|
+
* Récupère les informations du club de l\'utilisateur
|
|
7481
|
+
* @param {string} clubId
|
|
7842
7482
|
* @param {*} [options] Override http request option.
|
|
7843
7483
|
* @throws {RequiredError}
|
|
7844
7484
|
*/
|
|
7845
|
-
|
|
7846
|
-
// verify required parameter '
|
|
7847
|
-
assertParamExists('
|
|
7848
|
-
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`;
|
|
7849
7489
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7850
7490
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7851
7491
|
let baseOptions;
|
|
7852
7492
|
if (configuration) {
|
|
7853
7493
|
baseOptions = configuration.baseOptions;
|
|
7854
7494
|
}
|
|
7855
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
7495
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7856
7496
|
const localVarHeaderParameter = {};
|
|
7857
7497
|
const localVarQueryParameter = {};
|
|
7858
7498
|
// authentication bearerAuth required
|
|
7859
7499
|
// http bearer authentication required
|
|
7860
7500
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7861
|
-
|
|
7501
|
+
if (clubId !== undefined) {
|
|
7502
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
7503
|
+
}
|
|
7862
7504
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7863
7505
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7864
7506
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7865
|
-
localVarRequestOptions.data = serializeDataIfNeeded(favoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
7866
7507
|
return {
|
|
7867
7508
|
url: toPathString(localVarUrlObj),
|
|
7868
7509
|
options: localVarRequestOptions,
|
|
7869
7510
|
};
|
|
7870
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 {
|
|
7871
7580
|
/**
|
|
7872
7581
|
*
|
|
7873
|
-
* @param {
|
|
7582
|
+
* @param {FavoriteClubRequestBody} favoriteClubRequestBody
|
|
7874
7583
|
* @param {*} [options] Override http request option.
|
|
7875
7584
|
* @throws {RequiredError}
|
|
7876
7585
|
*/
|
|
7877
|
-
|
|
7878
|
-
// verify required parameter '
|
|
7879
|
-
assertParamExists('
|
|
7880
|
-
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`;
|
|
7881
7590
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7882
7591
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7883
7592
|
let baseOptions;
|
|
@@ -7894,7 +7603,7 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7894
7603
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7895
7604
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7896
7605
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7897
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
7606
|
+
localVarRequestOptions.data = serializeDataIfNeeded(favoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
7898
7607
|
return {
|
|
7899
7608
|
url: toPathString(localVarUrlObj),
|
|
7900
7609
|
options: localVarRequestOptions,
|
|
@@ -7902,14 +7611,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7902
7611
|
}),
|
|
7903
7612
|
/**
|
|
7904
7613
|
*
|
|
7905
|
-
* @param {
|
|
7614
|
+
* @param {FavoritePlayerRequestBody} favoritePlayerRequestBody
|
|
7906
7615
|
* @param {*} [options] Override http request option.
|
|
7907
7616
|
* @throws {RequiredError}
|
|
7908
7617
|
*/
|
|
7909
|
-
|
|
7910
|
-
// verify required parameter '
|
|
7911
|
-
assertParamExists('
|
|
7912
|
-
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`;
|
|
7913
7622
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7914
7623
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7915
7624
|
let baseOptions;
|
|
@@ -7926,7 +7635,7 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7926
7635
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7927
7636
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7928
7637
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7929
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
7638
|
+
localVarRequestOptions.data = serializeDataIfNeeded(favoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
7930
7639
|
return {
|
|
7931
7640
|
url: toPathString(localVarUrlObj),
|
|
7932
7641
|
options: localVarRequestOptions,
|
|
@@ -7934,14 +7643,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7934
7643
|
}),
|
|
7935
7644
|
/**
|
|
7936
7645
|
*
|
|
7937
|
-
* @param {
|
|
7646
|
+
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
7938
7647
|
* @param {*} [options] Override http request option.
|
|
7939
7648
|
* @throws {RequiredError}
|
|
7940
7649
|
*/
|
|
7941
|
-
|
|
7942
|
-
// verify required parameter '
|
|
7943
|
-
assertParamExists('
|
|
7944
|
-
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`;
|
|
7945
7654
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7946
7655
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7947
7656
|
let baseOptions;
|
|
@@ -7958,7 +7667,7 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7958
7667
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7959
7668
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7960
7669
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7961
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
7670
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration);
|
|
7962
7671
|
return {
|
|
7963
7672
|
url: toPathString(localVarUrlObj),
|
|
7964
7673
|
options: localVarRequestOptions,
|
|
@@ -7996,38 +7705,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7996
7705
|
options: localVarRequestOptions,
|
|
7997
7706
|
};
|
|
7998
7707
|
}),
|
|
7999
|
-
/**
|
|
8000
|
-
*
|
|
8001
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
8002
|
-
* @param {*} [options] Override http request option.
|
|
8003
|
-
* @throws {RequiredError}
|
|
8004
|
-
*/
|
|
8005
|
-
confirmPaymentMethodSetup: (confirmPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodRequestBody, options = {}) {
|
|
8006
|
-
// verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
|
|
8007
|
-
assertParamExists('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody);
|
|
8008
|
-
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
8009
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8010
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8011
|
-
let baseOptions;
|
|
8012
|
-
if (configuration) {
|
|
8013
|
-
baseOptions = configuration.baseOptions;
|
|
8014
|
-
}
|
|
8015
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8016
|
-
const localVarHeaderParameter = {};
|
|
8017
|
-
const localVarQueryParameter = {};
|
|
8018
|
-
// authentication bearerAuth required
|
|
8019
|
-
// http bearer authentication required
|
|
8020
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8021
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8022
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8023
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8024
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8025
|
-
localVarRequestOptions.data = serializeDataIfNeeded(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
8026
|
-
return {
|
|
8027
|
-
url: toPathString(localVarUrlObj),
|
|
8028
|
-
options: localVarRequestOptions,
|
|
8029
|
-
};
|
|
8030
|
-
}),
|
|
8031
7708
|
/**
|
|
8032
7709
|
*
|
|
8033
7710
|
* @param {*} [options] Override http request option.
|
|
@@ -8797,38 +8474,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8797
8474
|
options: localVarRequestOptions,
|
|
8798
8475
|
};
|
|
8799
8476
|
}),
|
|
8800
|
-
/**
|
|
8801
|
-
*
|
|
8802
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
8803
|
-
* @param {*} [options] Override http request option.
|
|
8804
|
-
* @throws {RequiredError}
|
|
8805
|
-
*/
|
|
8806
|
-
setupOffSessionPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
8807
|
-
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
8808
|
-
assertParamExists('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
8809
|
-
const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
|
|
8810
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8811
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8812
|
-
let baseOptions;
|
|
8813
|
-
if (configuration) {
|
|
8814
|
-
baseOptions = configuration.baseOptions;
|
|
8815
|
-
}
|
|
8816
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8817
|
-
const localVarHeaderParameter = {};
|
|
8818
|
-
const localVarQueryParameter = {};
|
|
8819
|
-
// authentication bearerAuth required
|
|
8820
|
-
// http bearer authentication required
|
|
8821
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8822
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8823
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8824
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8825
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8826
|
-
localVarRequestOptions.data = serializeDataIfNeeded(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
8827
|
-
return {
|
|
8828
|
-
url: toPathString(localVarUrlObj),
|
|
8829
|
-
options: localVarRequestOptions,
|
|
8830
|
-
};
|
|
8831
|
-
}),
|
|
8832
8477
|
/**
|
|
8833
8478
|
*
|
|
8834
8479
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -9098,21 +8743,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
9098
8743
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9099
8744
|
});
|
|
9100
8745
|
},
|
|
9101
|
-
/**
|
|
9102
|
-
*
|
|
9103
|
-
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
9104
|
-
* @param {*} [options] Override http request option.
|
|
9105
|
-
* @throws {RequiredError}
|
|
9106
|
-
*/
|
|
9107
|
-
addPaymentMethodSetup(addPaymentMethodRequestBody, options) {
|
|
9108
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9109
|
-
var _a, _b, _c;
|
|
9110
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, options);
|
|
9111
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9112
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9113
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9114
|
-
});
|
|
9115
|
-
},
|
|
9116
8746
|
/**
|
|
9117
8747
|
*
|
|
9118
8748
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -9128,21 +8758,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
9128
8758
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9129
8759
|
});
|
|
9130
8760
|
},
|
|
9131
|
-
/**
|
|
9132
|
-
*
|
|
9133
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
9134
|
-
* @param {*} [options] Override http request option.
|
|
9135
|
-
* @throws {RequiredError}
|
|
9136
|
-
*/
|
|
9137
|
-
confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options) {
|
|
9138
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9139
|
-
var _a, _b, _c;
|
|
9140
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
|
|
9141
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9142
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9143
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9144
|
-
});
|
|
9145
|
-
},
|
|
9146
8761
|
/**
|
|
9147
8762
|
*
|
|
9148
8763
|
* @param {*} [options] Override http request option.
|
|
@@ -9513,21 +9128,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
9513
9128
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9514
9129
|
});
|
|
9515
9130
|
},
|
|
9516
|
-
/**
|
|
9517
|
-
*
|
|
9518
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
9519
|
-
* @param {*} [options] Override http request option.
|
|
9520
|
-
* @throws {RequiredError}
|
|
9521
|
-
*/
|
|
9522
|
-
setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
9523
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9524
|
-
var _a, _b, _c;
|
|
9525
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
9526
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9527
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.setupOffSessionPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9528
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9529
|
-
});
|
|
9530
|
-
},
|
|
9531
9131
|
/**
|
|
9532
9132
|
*
|
|
9533
9133
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -9669,15 +9269,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9669
9269
|
addOrganization(requestParameters, options) {
|
|
9670
9270
|
return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
9671
9271
|
},
|
|
9672
|
-
/**
|
|
9673
|
-
*
|
|
9674
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9675
|
-
* @param {*} [options] Override http request option.
|
|
9676
|
-
* @throws {RequiredError}
|
|
9677
|
-
*/
|
|
9678
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
9679
|
-
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9680
|
-
},
|
|
9681
9272
|
/**
|
|
9682
9273
|
*
|
|
9683
9274
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -9687,15 +9278,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9687
9278
|
changePassword(requestParameters, options) {
|
|
9688
9279
|
return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
|
|
9689
9280
|
},
|
|
9690
|
-
/**
|
|
9691
|
-
*
|
|
9692
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9693
|
-
* @param {*} [options] Override http request option.
|
|
9694
|
-
* @throws {RequiredError}
|
|
9695
|
-
*/
|
|
9696
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
9697
|
-
return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9698
|
-
},
|
|
9699
9281
|
/**
|
|
9700
9282
|
*
|
|
9701
9283
|
* @param {*} [options] Override http request option.
|
|
@@ -9904,15 +9486,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9904
9486
|
resetPassword(requestParameters, options) {
|
|
9905
9487
|
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
9906
9488
|
},
|
|
9907
|
-
/**
|
|
9908
|
-
*
|
|
9909
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
9910
|
-
* @param {*} [options] Override http request option.
|
|
9911
|
-
* @throws {RequiredError}
|
|
9912
|
-
*/
|
|
9913
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
9914
|
-
return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9915
|
-
},
|
|
9916
9489
|
/**
|
|
9917
9490
|
*
|
|
9918
9491
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
@@ -10015,16 +9588,6 @@ export class UsersApi extends BaseAPI {
|
|
|
10015
9588
|
addOrganization(requestParameters, options) {
|
|
10016
9589
|
return UsersApiFp(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10017
9590
|
}
|
|
10018
|
-
/**
|
|
10019
|
-
*
|
|
10020
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
10021
|
-
* @param {*} [options] Override http request option.
|
|
10022
|
-
* @throws {RequiredError}
|
|
10023
|
-
* @memberof UsersApi
|
|
10024
|
-
*/
|
|
10025
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
10026
|
-
return UsersApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10027
|
-
}
|
|
10028
9591
|
/**
|
|
10029
9592
|
*
|
|
10030
9593
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -10035,16 +9598,6 @@ export class UsersApi extends BaseAPI {
|
|
|
10035
9598
|
changePassword(requestParameters, options) {
|
|
10036
9599
|
return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10037
9600
|
}
|
|
10038
|
-
/**
|
|
10039
|
-
*
|
|
10040
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
10041
|
-
* @param {*} [options] Override http request option.
|
|
10042
|
-
* @throws {RequiredError}
|
|
10043
|
-
* @memberof UsersApi
|
|
10044
|
-
*/
|
|
10045
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
10046
|
-
return UsersApiFp(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10047
|
-
}
|
|
10048
9601
|
/**
|
|
10049
9602
|
*
|
|
10050
9603
|
* @param {*} [options] Override http request option.
|
|
@@ -10277,16 +9830,6 @@ export class UsersApi extends BaseAPI {
|
|
|
10277
9830
|
resetPassword(requestParameters, options) {
|
|
10278
9831
|
return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10279
9832
|
}
|
|
10280
|
-
/**
|
|
10281
|
-
*
|
|
10282
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
10283
|
-
* @param {*} [options] Override http request option.
|
|
10284
|
-
* @throws {RequiredError}
|
|
10285
|
-
* @memberof UsersApi
|
|
10286
|
-
*/
|
|
10287
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
10288
|
-
return UsersApiFp(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10289
|
-
}
|
|
10290
9833
|
/**
|
|
10291
9834
|
*
|
|
10292
9835
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|