@tennac-booking/sdk 1.0.87 → 1.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +247 -256
- package/README.md +30 -47
- package/api.ts +1722 -2568
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1406 -1986
- package/dist/api.js +481 -876
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1406 -1986
- package/dist/esm/api.js +472 -871
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/{ConfirmPaymentMethodRequestBody.md → AddCreditsToCustomer200Response.md} +5 -5
- package/docs/AddCreditsToCustomerRequest.md +22 -0
- package/docs/BookingClubInfo.md +28 -0
- package/docs/BookingCourtInfo.md +22 -0
- package/docs/BookingInfo.md +2 -2
- package/docs/BookingPaymentStatus.md +24 -0
- package/docs/BookingPlayerPaymentSummary.md +34 -0
- package/docs/BookingPopulated.md +3 -3
- package/docs/BookingPriceBody.md +22 -0
- package/docs/BookingPriceResponse.md +22 -0
- package/docs/BookingResponse.md +2 -0
- package/docs/BookingSlotInfo.md +30 -0
- package/docs/{ClubDaySchedule.md → BookingSportInfo.md} +7 -7
- package/docs/BookingSummary.md +54 -2
- package/docs/BookingsApi.md +55 -0
- package/docs/ClubAnalyticsStaffApi.md +0 -173
- package/docs/ClubResponse.md +8 -0
- package/docs/ClubSettingsManagerApi.md +55 -54
- package/docs/ClubSettingsResponse.md +39 -0
- package/docs/ClubsApi.md +1 -1
- package/docs/ClubsManagerApi.md +58 -52
- package/docs/ClubsStaffApi.md +0 -44
- package/docs/CreateBookingRequest.md +4 -2
- package/docs/CreateClubSettingsRequest.md +34 -0
- package/docs/CreateEventRequest.md +1 -3
- package/docs/{AddPaymentMethodRequestBody.md → DeleteClubSettingsResponse.md} +5 -5
- package/docs/EventResponse.md +1 -1
- package/docs/{SetupPaymentMethodRequestBody.md → EventResponseCourtsInner.md} +3 -5
- package/docs/IUserAttributes.md +2 -12
- package/docs/InvoiceStatus.md +22 -0
- package/docs/MyClubInfosResponse.md +26 -0
- package/docs/PartialClubResponse.md +8 -0
- package/docs/PlayerPrice.md +30 -0
- package/docs/QuickReservationClubSport.md +22 -0
- package/docs/QuickReservationClubSummary.md +4 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/SportsPublicApi.md +53 -0
- package/docs/StaffUserProfileResponse.md +2 -12
- package/docs/SubscribeRequestBody.md +2 -0
- package/docs/SubscriptionInfo.md +24 -0
- package/docs/UpdateClubSettingsRequest.md +32 -0
- package/docs/UpdateEventRequest.md +1 -1
- package/docs/UserApi.md +60 -0
- package/docs/UserBookingsResponse.md +28 -0
- package/docs/UserProfileResponse.md +4 -12
- package/docs/UsersApi.md +4 -160
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BookingDetailResponse.md +0 -46
- package/docs/ClubGeneralSettingsResponse.md +0 -32
- package/docs/ClubHoursSettingsResponse.md +0 -22
- package/docs/ClubLocationSettings.md +0 -26
- package/docs/ClubPlayerBookingItem.md +0 -36
- package/docs/ClubPlayerBookingsPagination.md +0 -28
- package/docs/ClubPlayerBookingsResponse.md +0 -24
- package/docs/ClubPlayerDetailResponse.md +0 -46
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponse.md +0 -42
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
- package/docs/ClubPlayerSubscriptionSummary.md +0 -28
- package/docs/ClubPresentationSettingsResponse.md +0 -26
- package/docs/ClubPricingPeriodResponse.md +0 -30
- package/docs/ClubReservationSettingsResponse.md +0 -28
- package/docs/ClubSettingsStaffApi.md +0 -139
- package/docs/ClubWeeklySchedule.md +0 -32
- package/docs/ConfirmPaymentMethodResponse.md +0 -22
- package/docs/PartialClubWeeklySchedule.md +0 -33
- package/docs/PaymentMethodSetupResponse.md +0 -24
- package/docs/SetupPaymentMethodResponse.md +0 -24
- package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
- package/docs/UpdateClubHoursSettingsRequest.md +0 -22
- package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
- package/docs/UpdateClubReservationSettingsRequest.md +0 -28
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.89
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator =
|
|
25
|
+
exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = void 0;
|
|
27
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -139,6 +139,21 @@ exports.Gender = {
|
|
|
139
139
|
exports.IUserLocationTypeEnum = {
|
|
140
140
|
Point: 'Point'
|
|
141
141
|
};
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @export
|
|
145
|
+
* @enum {string}
|
|
146
|
+
*/
|
|
147
|
+
exports.InvoiceStatus = {
|
|
148
|
+
SetupPending: 'setup_pending',
|
|
149
|
+
SetupSuccess: 'setup_success',
|
|
150
|
+
Pending: 'pending',
|
|
151
|
+
Paid: 'paid',
|
|
152
|
+
Failed: 'failed',
|
|
153
|
+
Authorized: 'authorized',
|
|
154
|
+
Canceled: 'canceled',
|
|
155
|
+
Expired: 'expired'
|
|
156
|
+
};
|
|
142
157
|
/**
|
|
143
158
|
*
|
|
144
159
|
* @export
|
|
@@ -369,6 +384,38 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
369
384
|
options: localVarRequestOptions,
|
|
370
385
|
};
|
|
371
386
|
}),
|
|
387
|
+
/**
|
|
388
|
+
*
|
|
389
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
390
|
+
* @param {*} [options] Override http request option.
|
|
391
|
+
* @throws {RequiredError}
|
|
392
|
+
*/
|
|
393
|
+
getBookingPrice: (bookingPriceBody_1, ...args_1) => __awaiter(this, [bookingPriceBody_1, ...args_1], void 0, function* (bookingPriceBody, options = {}) {
|
|
394
|
+
// verify required parameter 'bookingPriceBody' is not null or undefined
|
|
395
|
+
(0, common_1.assertParamExists)('getBookingPrice', 'bookingPriceBody', bookingPriceBody);
|
|
396
|
+
const localVarPath = `/api/bookings/booking-price`;
|
|
397
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
398
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
399
|
+
let baseOptions;
|
|
400
|
+
if (configuration) {
|
|
401
|
+
baseOptions = configuration.baseOptions;
|
|
402
|
+
}
|
|
403
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
404
|
+
const localVarHeaderParameter = {};
|
|
405
|
+
const localVarQueryParameter = {};
|
|
406
|
+
// authentication bearerAuth required
|
|
407
|
+
// http bearer authentication required
|
|
408
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
409
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
410
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
411
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
412
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
413
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bookingPriceBody, localVarRequestOptions, configuration);
|
|
414
|
+
return {
|
|
415
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
416
|
+
options: localVarRequestOptions,
|
|
417
|
+
};
|
|
418
|
+
}),
|
|
372
419
|
/**
|
|
373
420
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
374
421
|
* @param {number} [latitude]
|
|
@@ -379,12 +426,13 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
379
426
|
* @param {string} [startTime]
|
|
380
427
|
* @param {number} [priceMax]
|
|
381
428
|
* @param {string} [courtTypes]
|
|
429
|
+
* @param {string} [surfaceTypes]
|
|
382
430
|
* @param {number} [limitPerClub]
|
|
383
431
|
* @param {number} [maxClubs]
|
|
384
432
|
* @param {*} [options] Override http request option.
|
|
385
433
|
* @throws {RequiredError}
|
|
386
434
|
*/
|
|
387
|
-
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 = {}) {
|
|
435
|
+
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 = {}) {
|
|
388
436
|
const localVarPath = `/api/bookings/quick-reservations`;
|
|
389
437
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
390
438
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -419,8 +467,11 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
419
467
|
if (courtTypes !== undefined) {
|
|
420
468
|
localVarQueryParameter['courtTypes'] = courtTypes;
|
|
421
469
|
}
|
|
470
|
+
if (surfaceTypes !== undefined) {
|
|
471
|
+
localVarQueryParameter['surfaceTypes'] = surfaceTypes;
|
|
472
|
+
}
|
|
422
473
|
if (limitPerClub !== undefined) {
|
|
423
|
-
localVarQueryParameter['
|
|
474
|
+
localVarQueryParameter['_limitPerClub'] = limitPerClub;
|
|
424
475
|
}
|
|
425
476
|
if (maxClubs !== undefined) {
|
|
426
477
|
localVarQueryParameter['maxClubs'] = maxClubs;
|
|
@@ -458,6 +509,21 @@ const BookingsApiFp = function (configuration) {
|
|
|
458
509
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
459
510
|
});
|
|
460
511
|
},
|
|
512
|
+
/**
|
|
513
|
+
*
|
|
514
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
515
|
+
* @param {*} [options] Override http request option.
|
|
516
|
+
* @throws {RequiredError}
|
|
517
|
+
*/
|
|
518
|
+
getBookingPrice(bookingPriceBody, options) {
|
|
519
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
520
|
+
var _a, _b, _c;
|
|
521
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
|
|
522
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
523
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
524
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
525
|
+
});
|
|
526
|
+
},
|
|
461
527
|
/**
|
|
462
528
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
463
529
|
* @param {number} [latitude]
|
|
@@ -468,15 +534,16 @@ const BookingsApiFp = function (configuration) {
|
|
|
468
534
|
* @param {string} [startTime]
|
|
469
535
|
* @param {number} [priceMax]
|
|
470
536
|
* @param {string} [courtTypes]
|
|
537
|
+
* @param {string} [surfaceTypes]
|
|
471
538
|
* @param {number} [limitPerClub]
|
|
472
539
|
* @param {number} [maxClubs]
|
|
473
540
|
* @param {*} [options] Override http request option.
|
|
474
541
|
* @throws {RequiredError}
|
|
475
542
|
*/
|
|
476
|
-
getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options) {
|
|
543
|
+
getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options) {
|
|
477
544
|
return __awaiter(this, void 0, void 0, function* () {
|
|
478
545
|
var _a, _b, _c;
|
|
479
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
|
|
546
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options);
|
|
480
547
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
481
548
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getQuickReservationSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
482
549
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -501,6 +568,15 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
501
568
|
getBookingHistory(requestParameters, options) {
|
|
502
569
|
return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
503
570
|
},
|
|
571
|
+
/**
|
|
572
|
+
*
|
|
573
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
574
|
+
* @param {*} [options] Override http request option.
|
|
575
|
+
* @throws {RequiredError}
|
|
576
|
+
*/
|
|
577
|
+
getBookingPrice(requestParameters, options) {
|
|
578
|
+
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
579
|
+
},
|
|
504
580
|
/**
|
|
505
581
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
506
582
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -508,7 +584,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
508
584
|
* @throws {RequiredError}
|
|
509
585
|
*/
|
|
510
586
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
511
|
-
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));
|
|
587
|
+
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));
|
|
512
588
|
},
|
|
513
589
|
};
|
|
514
590
|
};
|
|
@@ -530,6 +606,16 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
530
606
|
getBookingHistory(requestParameters, options) {
|
|
531
607
|
return (0, exports.BookingsApiFp)(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
532
608
|
}
|
|
609
|
+
/**
|
|
610
|
+
*
|
|
611
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
* @memberof BookingsApi
|
|
615
|
+
*/
|
|
616
|
+
getBookingPrice(requestParameters, options) {
|
|
617
|
+
return (0, exports.BookingsApiFp)(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
618
|
+
}
|
|
533
619
|
/**
|
|
534
620
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
535
621
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -538,7 +624,7 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
538
624
|
* @memberof BookingsApi
|
|
539
625
|
*/
|
|
540
626
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
541
|
-
return (0, exports.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));
|
|
627
|
+
return (0, exports.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));
|
|
542
628
|
}
|
|
543
629
|
}
|
|
544
630
|
exports.BookingsApi = BookingsApi;
|
|
@@ -1510,107 +1596,6 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1510
1596
|
options: localVarRequestOptions,
|
|
1511
1597
|
};
|
|
1512
1598
|
}),
|
|
1513
|
-
/**
|
|
1514
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
1515
|
-
* @param {string} playerId
|
|
1516
|
-
* @param {number} [page]
|
|
1517
|
-
* @param {number} [pageSize]
|
|
1518
|
-
* @param {*} [options] Override http request option.
|
|
1519
|
-
* @throws {RequiredError}
|
|
1520
|
-
*/
|
|
1521
|
-
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 = {}) {
|
|
1522
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
1523
|
-
(0, common_1.assertParamExists)('getClubPlayerBookingsById', 'playerId', playerId);
|
|
1524
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
1525
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1526
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1527
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1528
|
-
let baseOptions;
|
|
1529
|
-
if (configuration) {
|
|
1530
|
-
baseOptions = configuration.baseOptions;
|
|
1531
|
-
}
|
|
1532
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1533
|
-
const localVarHeaderParameter = {};
|
|
1534
|
-
const localVarQueryParameter = {};
|
|
1535
|
-
// authentication bearerAuth required
|
|
1536
|
-
// http bearer authentication required
|
|
1537
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1538
|
-
if (page !== undefined) {
|
|
1539
|
-
localVarQueryParameter['page'] = page;
|
|
1540
|
-
}
|
|
1541
|
-
if (pageSize !== undefined) {
|
|
1542
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
1543
|
-
}
|
|
1544
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1545
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1546
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1547
|
-
return {
|
|
1548
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1549
|
-
options: localVarRequestOptions,
|
|
1550
|
-
};
|
|
1551
|
-
}),
|
|
1552
|
-
/**
|
|
1553
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
1554
|
-
* @param {string} playerId
|
|
1555
|
-
* @param {*} [options] Override http request option.
|
|
1556
|
-
* @throws {RequiredError}
|
|
1557
|
-
*/
|
|
1558
|
-
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1559
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
1560
|
-
(0, common_1.assertParamExists)('getClubPlayerById', 'playerId', playerId);
|
|
1561
|
-
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
1562
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1563
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1564
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1565
|
-
let baseOptions;
|
|
1566
|
-
if (configuration) {
|
|
1567
|
-
baseOptions = configuration.baseOptions;
|
|
1568
|
-
}
|
|
1569
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1570
|
-
const localVarHeaderParameter = {};
|
|
1571
|
-
const localVarQueryParameter = {};
|
|
1572
|
-
// authentication bearerAuth required
|
|
1573
|
-
// http bearer authentication required
|
|
1574
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1575
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1576
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1577
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1578
|
-
return {
|
|
1579
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1580
|
-
options: localVarRequestOptions,
|
|
1581
|
-
};
|
|
1582
|
-
}),
|
|
1583
|
-
/**
|
|
1584
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
1585
|
-
* @param {string} playerId
|
|
1586
|
-
* @param {*} [options] Override http request option.
|
|
1587
|
-
* @throws {RequiredError}
|
|
1588
|
-
*/
|
|
1589
|
-
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1590
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
1591
|
-
(0, common_1.assertParamExists)('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
1592
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
1593
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1594
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1595
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1596
|
-
let baseOptions;
|
|
1597
|
-
if (configuration) {
|
|
1598
|
-
baseOptions = configuration.baseOptions;
|
|
1599
|
-
}
|
|
1600
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1601
|
-
const localVarHeaderParameter = {};
|
|
1602
|
-
const localVarQueryParameter = {};
|
|
1603
|
-
// authentication bearerAuth required
|
|
1604
|
-
// http bearer authentication required
|
|
1605
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1606
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1607
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1608
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1609
|
-
return {
|
|
1610
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1611
|
-
options: localVarRequestOptions,
|
|
1612
|
-
};
|
|
1613
|
-
}),
|
|
1614
1599
|
/**
|
|
1615
1600
|
* Récupère la liste des joueurs du club
|
|
1616
1601
|
* @param {*} [options] Override http request option.
|
|
@@ -1911,53 +1896,6 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
1911
1896
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1912
1897
|
});
|
|
1913
1898
|
},
|
|
1914
|
-
/**
|
|
1915
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
1916
|
-
* @param {string} playerId
|
|
1917
|
-
* @param {number} [page]
|
|
1918
|
-
* @param {number} [pageSize]
|
|
1919
|
-
* @param {*} [options] Override http request option.
|
|
1920
|
-
* @throws {RequiredError}
|
|
1921
|
-
*/
|
|
1922
|
-
getClubPlayerBookingsById(playerId, page, pageSize, options) {
|
|
1923
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1924
|
-
var _a, _b, _c;
|
|
1925
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, page, pageSize, options);
|
|
1926
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1927
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1928
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1929
|
-
});
|
|
1930
|
-
},
|
|
1931
|
-
/**
|
|
1932
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
1933
|
-
* @param {string} playerId
|
|
1934
|
-
* @param {*} [options] Override http request option.
|
|
1935
|
-
* @throws {RequiredError}
|
|
1936
|
-
*/
|
|
1937
|
-
getClubPlayerById(playerId, options) {
|
|
1938
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1939
|
-
var _a, _b, _c;
|
|
1940
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
|
|
1941
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1942
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1943
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1944
|
-
});
|
|
1945
|
-
},
|
|
1946
|
-
/**
|
|
1947
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
1948
|
-
* @param {string} playerId
|
|
1949
|
-
* @param {*} [options] Override http request option.
|
|
1950
|
-
* @throws {RequiredError}
|
|
1951
|
-
*/
|
|
1952
|
-
getClubPlayerStatisticsById(playerId, options) {
|
|
1953
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1954
|
-
var _a, _b, _c;
|
|
1955
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
|
|
1956
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1957
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1958
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1959
|
-
});
|
|
1960
|
-
},
|
|
1961
1899
|
/**
|
|
1962
1900
|
* Récupère la liste des joueurs du club
|
|
1963
1901
|
* @param {*} [options] Override http request option.
|
|
@@ -2109,33 +2047,6 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2109
2047
|
getAnalyticsBySport(requestParameters, options) {
|
|
2110
2048
|
return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
2111
2049
|
},
|
|
2112
|
-
/**
|
|
2113
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2114
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2115
|
-
* @param {*} [options] Override http request option.
|
|
2116
|
-
* @throws {RequiredError}
|
|
2117
|
-
*/
|
|
2118
|
-
getClubPlayerBookingsById(requestParameters, options) {
|
|
2119
|
-
return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
2120
|
-
},
|
|
2121
|
-
/**
|
|
2122
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2123
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2124
|
-
* @param {*} [options] Override http request option.
|
|
2125
|
-
* @throws {RequiredError}
|
|
2126
|
-
*/
|
|
2127
|
-
getClubPlayerById(requestParameters, options) {
|
|
2128
|
-
return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2129
|
-
},
|
|
2130
|
-
/**
|
|
2131
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
2132
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2133
|
-
* @param {*} [options] Override http request option.
|
|
2134
|
-
* @throws {RequiredError}
|
|
2135
|
-
*/
|
|
2136
|
-
getClubPlayerStatisticsById(requestParameters, options) {
|
|
2137
|
-
return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2138
|
-
},
|
|
2139
2050
|
/**
|
|
2140
2051
|
* Récupère la liste des joueurs du club
|
|
2141
2052
|
* @param {*} [options] Override http request option.
|
|
@@ -2232,36 +2143,6 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2232
2143
|
getAnalyticsBySport(requestParameters, options) {
|
|
2233
2144
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
2234
2145
|
}
|
|
2235
|
-
/**
|
|
2236
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2237
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2238
|
-
* @param {*} [options] Override http request option.
|
|
2239
|
-
* @throws {RequiredError}
|
|
2240
|
-
* @memberof ClubAnalyticsStaffApi
|
|
2241
|
-
*/
|
|
2242
|
-
getClubPlayerBookingsById(requestParameters, options) {
|
|
2243
|
-
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
2244
|
-
}
|
|
2245
|
-
/**
|
|
2246
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2247
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2248
|
-
* @param {*} [options] Override http request option.
|
|
2249
|
-
* @throws {RequiredError}
|
|
2250
|
-
* @memberof ClubAnalyticsStaffApi
|
|
2251
|
-
*/
|
|
2252
|
-
getClubPlayerById(requestParameters, options) {
|
|
2253
|
-
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2254
|
-
}
|
|
2255
|
-
/**
|
|
2256
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
2257
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2258
|
-
* @param {*} [options] Override http request option.
|
|
2259
|
-
* @throws {RequiredError}
|
|
2260
|
-
* @memberof ClubAnalyticsStaffApi
|
|
2261
|
-
*/
|
|
2262
|
-
getClubPlayerStatisticsById(requestParameters, options) {
|
|
2263
|
-
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2264
|
-
}
|
|
2265
2146
|
/**
|
|
2266
2147
|
* Récupère la liste des joueurs du club
|
|
2267
2148
|
* @param {*} [options] Override http request option.
|
|
@@ -2815,22 +2696,26 @@ exports.ClubRolesStaffApi = ClubRolesStaffApi;
|
|
|
2815
2696
|
const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
2816
2697
|
return {
|
|
2817
2698
|
/**
|
|
2818
|
-
*
|
|
2819
|
-
* @param {
|
|
2699
|
+
* Crée les paramètres d\'un club
|
|
2700
|
+
* @param {string} clubId
|
|
2701
|
+
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
2820
2702
|
* @param {*} [options] Override http request option.
|
|
2821
2703
|
* @throws {RequiredError}
|
|
2822
2704
|
*/
|
|
2823
|
-
|
|
2824
|
-
// verify required parameter '
|
|
2825
|
-
(0, common_1.assertParamExists)('
|
|
2826
|
-
|
|
2705
|
+
createClubSettings: (clubId_1, createClubSettingsRequest_1, ...args_1) => __awaiter(this, [clubId_1, createClubSettingsRequest_1, ...args_1], void 0, function* (clubId, createClubSettingsRequest, options = {}) {
|
|
2706
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
2707
|
+
(0, common_1.assertParamExists)('createClubSettings', 'clubId', clubId);
|
|
2708
|
+
// verify required parameter 'createClubSettingsRequest' is not null or undefined
|
|
2709
|
+
(0, common_1.assertParamExists)('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
|
|
2710
|
+
const localVarPath = `/api/club-settings/{clubId}`
|
|
2711
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
2827
2712
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2828
2713
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2829
2714
|
let baseOptions;
|
|
2830
2715
|
if (configuration) {
|
|
2831
2716
|
baseOptions = configuration.baseOptions;
|
|
2832
2717
|
}
|
|
2833
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2718
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2834
2719
|
const localVarHeaderParameter = {};
|
|
2835
2720
|
const localVarQueryParameter = {};
|
|
2836
2721
|
// authentication bearerAuth required
|
|
@@ -2840,21 +2725,18 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
2840
2725
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2841
2726
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2842
2727
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2843
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
2728
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2844
2729
|
return {
|
|
2845
2730
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2846
2731
|
options: localVarRequestOptions,
|
|
2847
2732
|
};
|
|
2848
2733
|
}),
|
|
2849
2734
|
/**
|
|
2850
|
-
*
|
|
2851
|
-
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
2735
|
+
* Supprime les paramètres d\'un club
|
|
2852
2736
|
* @param {*} [options] Override http request option.
|
|
2853
2737
|
* @throws {RequiredError}
|
|
2854
2738
|
*/
|
|
2855
|
-
|
|
2856
|
-
// verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
|
|
2857
|
-
(0, common_1.assertParamExists)('updateClubSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest);
|
|
2739
|
+
deleteClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2858
2740
|
const localVarPath = `/api/club-settings`;
|
|
2859
2741
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2860
2742
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2862,64 +2744,57 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
2862
2744
|
if (configuration) {
|
|
2863
2745
|
baseOptions = configuration.baseOptions;
|
|
2864
2746
|
}
|
|
2865
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2747
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2866
2748
|
const localVarHeaderParameter = {};
|
|
2867
2749
|
const localVarQueryParameter = {};
|
|
2868
2750
|
// authentication bearerAuth required
|
|
2869
2751
|
// http bearer authentication required
|
|
2870
2752
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2871
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2872
2753
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2873
2754
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2874
2755
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2875
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
|
|
2876
2756
|
return {
|
|
2877
2757
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2878
2758
|
options: localVarRequestOptions,
|
|
2879
2759
|
};
|
|
2880
2760
|
}),
|
|
2881
2761
|
/**
|
|
2882
|
-
*
|
|
2883
|
-
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
2762
|
+
* Récupère les paramètres d\'un club
|
|
2884
2763
|
* @param {*} [options] Override http request option.
|
|
2885
2764
|
* @throws {RequiredError}
|
|
2886
2765
|
*/
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
(0, common_1.assertParamExists)('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
|
|
2890
|
-
const localVarPath = `/api/club-settings/hours`;
|
|
2766
|
+
getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2767
|
+
const localVarPath = `/api/club-settings`;
|
|
2891
2768
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2892
2769
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2893
2770
|
let baseOptions;
|
|
2894
2771
|
if (configuration) {
|
|
2895
2772
|
baseOptions = configuration.baseOptions;
|
|
2896
2773
|
}
|
|
2897
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2774
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2898
2775
|
const localVarHeaderParameter = {};
|
|
2899
2776
|
const localVarQueryParameter = {};
|
|
2900
2777
|
// authentication bearerAuth required
|
|
2901
2778
|
// http bearer authentication required
|
|
2902
2779
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2903
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2904
2780
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2905
2781
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2906
2782
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2907
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
|
|
2908
2783
|
return {
|
|
2909
2784
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2910
2785
|
options: localVarRequestOptions,
|
|
2911
2786
|
};
|
|
2912
2787
|
}),
|
|
2913
2788
|
/**
|
|
2914
|
-
*
|
|
2915
|
-
* @param {
|
|
2789
|
+
* Met à jour les paramètres d\'un club
|
|
2790
|
+
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
2916
2791
|
* @param {*} [options] Override http request option.
|
|
2917
2792
|
* @throws {RequiredError}
|
|
2918
2793
|
*/
|
|
2919
|
-
|
|
2920
|
-
// verify required parameter '
|
|
2921
|
-
(0, common_1.assertParamExists)('
|
|
2922
|
-
const localVarPath = `/api/club-settings
|
|
2794
|
+
updateClubSettings: (updateClubSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubSettingsRequest_1, ...args_1], void 0, function* (updateClubSettingsRequest, options = {}) {
|
|
2795
|
+
// verify required parameter 'updateClubSettingsRequest' is not null or undefined
|
|
2796
|
+
(0, common_1.assertParamExists)('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
|
|
2797
|
+
const localVarPath = `/api/club-settings`;
|
|
2923
2798
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2924
2799
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2925
2800
|
let baseOptions;
|
|
@@ -2936,7 +2811,7 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
2936
2811
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2937
2812
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2938
2813
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2939
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
2814
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2940
2815
|
return {
|
|
2941
2816
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2942
2817
|
options: localVarRequestOptions,
|
|
@@ -2953,62 +2828,61 @@ const ClubSettingsManagerApiFp = function (configuration) {
|
|
|
2953
2828
|
const localVarAxiosParamCreator = (0, exports.ClubSettingsManagerApiAxiosParamCreator)(configuration);
|
|
2954
2829
|
return {
|
|
2955
2830
|
/**
|
|
2956
|
-
*
|
|
2957
|
-
* @param {
|
|
2831
|
+
* Crée les paramètres d\'un club
|
|
2832
|
+
* @param {string} clubId
|
|
2833
|
+
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
2958
2834
|
* @param {*} [options] Override http request option.
|
|
2959
2835
|
* @throws {RequiredError}
|
|
2960
2836
|
*/
|
|
2961
|
-
|
|
2837
|
+
createClubSettings(clubId, createClubSettingsRequest, options) {
|
|
2962
2838
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2963
2839
|
var _a, _b, _c;
|
|
2964
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2840
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubSettings(clubId, createClubSettingsRequest, options);
|
|
2965
2841
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2966
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.
|
|
2842
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.createClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2967
2843
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2968
2844
|
});
|
|
2969
2845
|
},
|
|
2970
2846
|
/**
|
|
2971
|
-
*
|
|
2972
|
-
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
2847
|
+
* Supprime les paramètres d\'un club
|
|
2973
2848
|
* @param {*} [options] Override http request option.
|
|
2974
2849
|
* @throws {RequiredError}
|
|
2975
2850
|
*/
|
|
2976
|
-
|
|
2851
|
+
deleteClubSettings(options) {
|
|
2977
2852
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2978
2853
|
var _a, _b, _c;
|
|
2979
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2854
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubSettings(options);
|
|
2980
2855
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2981
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.
|
|
2856
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.deleteClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2982
2857
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2983
2858
|
});
|
|
2984
2859
|
},
|
|
2985
2860
|
/**
|
|
2986
|
-
*
|
|
2987
|
-
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
2861
|
+
* Récupère les paramètres d\'un club
|
|
2988
2862
|
* @param {*} [options] Override http request option.
|
|
2989
2863
|
* @throws {RequiredError}
|
|
2990
2864
|
*/
|
|
2991
|
-
|
|
2865
|
+
getClubSettings(options) {
|
|
2992
2866
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2993
2867
|
var _a, _b, _c;
|
|
2994
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2868
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
|
|
2995
2869
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2996
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.
|
|
2870
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2997
2871
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2998
2872
|
});
|
|
2999
2873
|
},
|
|
3000
2874
|
/**
|
|
3001
|
-
*
|
|
3002
|
-
* @param {
|
|
2875
|
+
* Met à jour les paramètres d\'un club
|
|
2876
|
+
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
3003
2877
|
* @param {*} [options] Override http request option.
|
|
3004
2878
|
* @throws {RequiredError}
|
|
3005
2879
|
*/
|
|
3006
|
-
|
|
2880
|
+
updateClubSettings(updateClubSettingsRequest, options) {
|
|
3007
2881
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3008
2882
|
var _a, _b, _c;
|
|
3009
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2883
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
|
|
3010
2884
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3011
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.
|
|
2885
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3012
2886
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3013
2887
|
});
|
|
3014
2888
|
},
|
|
@@ -3023,40 +2897,38 @@ const ClubSettingsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
3023
2897
|
const localVarFp = (0, exports.ClubSettingsManagerApiFp)(configuration);
|
|
3024
2898
|
return {
|
|
3025
2899
|
/**
|
|
3026
|
-
*
|
|
3027
|
-
* @param {
|
|
2900
|
+
* Crée les paramètres d\'un club
|
|
2901
|
+
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
3028
2902
|
* @param {*} [options] Override http request option.
|
|
3029
2903
|
* @throws {RequiredError}
|
|
3030
2904
|
*/
|
|
3031
|
-
|
|
3032
|
-
return localVarFp.
|
|
2905
|
+
createClubSettings(requestParameters, options) {
|
|
2906
|
+
return localVarFp.createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3033
2907
|
},
|
|
3034
2908
|
/**
|
|
3035
|
-
*
|
|
3036
|
-
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
2909
|
+
* Supprime les paramètres d\'un club
|
|
3037
2910
|
* @param {*} [options] Override http request option.
|
|
3038
2911
|
* @throws {RequiredError}
|
|
3039
2912
|
*/
|
|
3040
|
-
|
|
3041
|
-
return localVarFp.
|
|
2913
|
+
deleteClubSettings(options) {
|
|
2914
|
+
return localVarFp.deleteClubSettings(options).then((request) => request(axios, basePath));
|
|
3042
2915
|
},
|
|
3043
2916
|
/**
|
|
3044
|
-
*
|
|
3045
|
-
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
2917
|
+
* Récupère les paramètres d\'un club
|
|
3046
2918
|
* @param {*} [options] Override http request option.
|
|
3047
2919
|
* @throws {RequiredError}
|
|
3048
2920
|
*/
|
|
3049
|
-
|
|
3050
|
-
return localVarFp.
|
|
2921
|
+
getClubSettings(options) {
|
|
2922
|
+
return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
|
|
3051
2923
|
},
|
|
3052
2924
|
/**
|
|
3053
|
-
*
|
|
3054
|
-
* @param {
|
|
2925
|
+
* Met à jour les paramètres d\'un club
|
|
2926
|
+
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3055
2927
|
* @param {*} [options] Override http request option.
|
|
3056
2928
|
* @throws {RequiredError}
|
|
3057
2929
|
*/
|
|
3058
|
-
|
|
3059
|
-
return localVarFp.
|
|
2930
|
+
updateClubSettings(requestParameters, options) {
|
|
2931
|
+
return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3060
2932
|
},
|
|
3061
2933
|
};
|
|
3062
2934
|
};
|
|
@@ -3069,259 +2941,45 @@ exports.ClubSettingsManagerApiFactory = ClubSettingsManagerApiFactory;
|
|
|
3069
2941
|
*/
|
|
3070
2942
|
class ClubSettingsManagerApi extends base_1.BaseAPI {
|
|
3071
2943
|
/**
|
|
3072
|
-
*
|
|
3073
|
-
* @param {
|
|
3074
|
-
* @param {*} [options] Override http request option.
|
|
3075
|
-
* @throws {RequiredError}
|
|
3076
|
-
* @memberof ClubSettingsManagerApi
|
|
3077
|
-
*/
|
|
3078
|
-
updateClubGeneralSettings(requestParameters, options) {
|
|
3079
|
-
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3080
|
-
}
|
|
3081
|
-
/**
|
|
3082
|
-
* Met à jour les paramètres d\'un club
|
|
3083
|
-
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3084
|
-
* @param {*} [options] Override http request option.
|
|
3085
|
-
* @throws {RequiredError}
|
|
3086
|
-
* @memberof ClubSettingsManagerApi
|
|
3087
|
-
*/
|
|
3088
|
-
updateClubSettings(requestParameters, options) {
|
|
3089
|
-
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3090
|
-
}
|
|
3091
|
-
/**
|
|
3092
|
-
*
|
|
3093
|
-
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
2944
|
+
* Crée les paramètres d\'un club
|
|
2945
|
+
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
3094
2946
|
* @param {*} [options] Override http request option.
|
|
3095
|
-
* @throws {RequiredError}
|
|
3096
|
-
* @memberof ClubSettingsManagerApi
|
|
3097
|
-
*/
|
|
3098
|
-
|
|
3099
|
-
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).
|
|
3100
|
-
}
|
|
3101
|
-
/**
|
|
3102
|
-
*
|
|
3103
|
-
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
3104
|
-
* @param {*} [options] Override http request option.
|
|
3105
|
-
* @throws {RequiredError}
|
|
3106
|
-
* @memberof ClubSettingsManagerApi
|
|
3107
|
-
*/
|
|
3108
|
-
updateReservationSettings(requestParameters, options) {
|
|
3109
|
-
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3110
|
-
}
|
|
3111
|
-
}
|
|
3112
|
-
exports.ClubSettingsManagerApi = ClubSettingsManagerApi;
|
|
3113
|
-
/**
|
|
3114
|
-
* ClubSettingsStaffApi - axios parameter creator
|
|
3115
|
-
* @export
|
|
3116
|
-
*/
|
|
3117
|
-
const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
|
|
3118
|
-
return {
|
|
3119
|
-
/**
|
|
3120
|
-
*
|
|
3121
|
-
* @param {*} [options] Override http request option.
|
|
3122
|
-
* @throws {RequiredError}
|
|
3123
|
-
*/
|
|
3124
|
-
getClubGeneralSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3125
|
-
const localVarPath = `/api/club-settings/settings/general`;
|
|
3126
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3127
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3128
|
-
let baseOptions;
|
|
3129
|
-
if (configuration) {
|
|
3130
|
-
baseOptions = configuration.baseOptions;
|
|
3131
|
-
}
|
|
3132
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3133
|
-
const localVarHeaderParameter = {};
|
|
3134
|
-
const localVarQueryParameter = {};
|
|
3135
|
-
// authentication bearerAuth required
|
|
3136
|
-
// http bearer authentication required
|
|
3137
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3138
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3139
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3140
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3141
|
-
return {
|
|
3142
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3143
|
-
options: localVarRequestOptions,
|
|
3144
|
-
};
|
|
3145
|
-
}),
|
|
3146
|
-
/**
|
|
3147
|
-
*
|
|
3148
|
-
* @param {*} [options] Override http request option.
|
|
3149
|
-
* @throws {RequiredError}
|
|
3150
|
-
*/
|
|
3151
|
-
getHoursSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3152
|
-
const localVarPath = `/api/club-settings/hours`;
|
|
3153
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3154
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3155
|
-
let baseOptions;
|
|
3156
|
-
if (configuration) {
|
|
3157
|
-
baseOptions = configuration.baseOptions;
|
|
3158
|
-
}
|
|
3159
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3160
|
-
const localVarHeaderParameter = {};
|
|
3161
|
-
const localVarQueryParameter = {};
|
|
3162
|
-
// authentication bearerAuth required
|
|
3163
|
-
// http bearer authentication required
|
|
3164
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3165
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3166
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3167
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3168
|
-
return {
|
|
3169
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3170
|
-
options: localVarRequestOptions,
|
|
3171
|
-
};
|
|
3172
|
-
}),
|
|
3173
|
-
/**
|
|
3174
|
-
*
|
|
3175
|
-
* @param {*} [options] Override http request option.
|
|
3176
|
-
* @throws {RequiredError}
|
|
3177
|
-
*/
|
|
3178
|
-
getReservationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3179
|
-
const localVarPath = `/api/club-settings/reservation`;
|
|
3180
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3181
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3182
|
-
let baseOptions;
|
|
3183
|
-
if (configuration) {
|
|
3184
|
-
baseOptions = configuration.baseOptions;
|
|
3185
|
-
}
|
|
3186
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3187
|
-
const localVarHeaderParameter = {};
|
|
3188
|
-
const localVarQueryParameter = {};
|
|
3189
|
-
// authentication bearerAuth required
|
|
3190
|
-
// http bearer authentication required
|
|
3191
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3192
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3193
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3194
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3195
|
-
return {
|
|
3196
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3197
|
-
options: localVarRequestOptions,
|
|
3198
|
-
};
|
|
3199
|
-
}),
|
|
3200
|
-
};
|
|
3201
|
-
};
|
|
3202
|
-
exports.ClubSettingsStaffApiAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator;
|
|
3203
|
-
/**
|
|
3204
|
-
* ClubSettingsStaffApi - functional programming interface
|
|
3205
|
-
* @export
|
|
3206
|
-
*/
|
|
3207
|
-
const ClubSettingsStaffApiFp = function (configuration) {
|
|
3208
|
-
const localVarAxiosParamCreator = (0, exports.ClubSettingsStaffApiAxiosParamCreator)(configuration);
|
|
3209
|
-
return {
|
|
3210
|
-
/**
|
|
3211
|
-
*
|
|
3212
|
-
* @param {*} [options] Override http request option.
|
|
3213
|
-
* @throws {RequiredError}
|
|
3214
|
-
*/
|
|
3215
|
-
getClubGeneralSettings(options) {
|
|
3216
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3217
|
-
var _a, _b, _c;
|
|
3218
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubGeneralSettings(options);
|
|
3219
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3220
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3221
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3222
|
-
});
|
|
3223
|
-
},
|
|
3224
|
-
/**
|
|
3225
|
-
*
|
|
3226
|
-
* @param {*} [options] Override http request option.
|
|
3227
|
-
* @throws {RequiredError}
|
|
3228
|
-
*/
|
|
3229
|
-
getHoursSettings(options) {
|
|
3230
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3231
|
-
var _a, _b, _c;
|
|
3232
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getHoursSettings(options);
|
|
3233
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3234
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3235
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3236
|
-
});
|
|
3237
|
-
},
|
|
3238
|
-
/**
|
|
3239
|
-
*
|
|
3240
|
-
* @param {*} [options] Override http request option.
|
|
3241
|
-
* @throws {RequiredError}
|
|
3242
|
-
*/
|
|
3243
|
-
getReservationSettings(options) {
|
|
3244
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3245
|
-
var _a, _b, _c;
|
|
3246
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReservationSettings(options);
|
|
3247
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3248
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3249
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3250
|
-
});
|
|
3251
|
-
},
|
|
3252
|
-
};
|
|
3253
|
-
};
|
|
3254
|
-
exports.ClubSettingsStaffApiFp = ClubSettingsStaffApiFp;
|
|
3255
|
-
/**
|
|
3256
|
-
* ClubSettingsStaffApi - factory interface
|
|
3257
|
-
* @export
|
|
3258
|
-
*/
|
|
3259
|
-
const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
3260
|
-
const localVarFp = (0, exports.ClubSettingsStaffApiFp)(configuration);
|
|
3261
|
-
return {
|
|
3262
|
-
/**
|
|
3263
|
-
*
|
|
3264
|
-
* @param {*} [options] Override http request option.
|
|
3265
|
-
* @throws {RequiredError}
|
|
3266
|
-
*/
|
|
3267
|
-
getClubGeneralSettings(options) {
|
|
3268
|
-
return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
|
|
3269
|
-
},
|
|
3270
|
-
/**
|
|
3271
|
-
*
|
|
3272
|
-
* @param {*} [options] Override http request option.
|
|
3273
|
-
* @throws {RequiredError}
|
|
3274
|
-
*/
|
|
3275
|
-
getHoursSettings(options) {
|
|
3276
|
-
return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
|
|
3277
|
-
},
|
|
3278
|
-
/**
|
|
3279
|
-
*
|
|
3280
|
-
* @param {*} [options] Override http request option.
|
|
3281
|
-
* @throws {RequiredError}
|
|
3282
|
-
*/
|
|
3283
|
-
getReservationSettings(options) {
|
|
3284
|
-
return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
|
|
3285
|
-
},
|
|
3286
|
-
};
|
|
3287
|
-
};
|
|
3288
|
-
exports.ClubSettingsStaffApiFactory = ClubSettingsStaffApiFactory;
|
|
3289
|
-
/**
|
|
3290
|
-
* ClubSettingsStaffApi - object-oriented interface
|
|
3291
|
-
* @export
|
|
3292
|
-
* @class ClubSettingsStaffApi
|
|
3293
|
-
* @extends {BaseAPI}
|
|
3294
|
-
*/
|
|
3295
|
-
class ClubSettingsStaffApi extends base_1.BaseAPI {
|
|
2947
|
+
* @throws {RequiredError}
|
|
2948
|
+
* @memberof ClubSettingsManagerApi
|
|
2949
|
+
*/
|
|
2950
|
+
createClubSettings(requestParameters, options) {
|
|
2951
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2952
|
+
}
|
|
3296
2953
|
/**
|
|
3297
|
-
*
|
|
2954
|
+
* Supprime les paramètres d\'un club
|
|
3298
2955
|
* @param {*} [options] Override http request option.
|
|
3299
2956
|
* @throws {RequiredError}
|
|
3300
|
-
* @memberof
|
|
2957
|
+
* @memberof ClubSettingsManagerApi
|
|
3301
2958
|
*/
|
|
3302
|
-
|
|
3303
|
-
return (0, exports.
|
|
2959
|
+
deleteClubSettings(options) {
|
|
2960
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).deleteClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3304
2961
|
}
|
|
3305
2962
|
/**
|
|
3306
|
-
*
|
|
2963
|
+
* Récupère les paramètres d\'un club
|
|
3307
2964
|
* @param {*} [options] Override http request option.
|
|
3308
2965
|
* @throws {RequiredError}
|
|
3309
|
-
* @memberof
|
|
2966
|
+
* @memberof ClubSettingsManagerApi
|
|
3310
2967
|
*/
|
|
3311
|
-
|
|
3312
|
-
return (0, exports.
|
|
2968
|
+
getClubSettings(options) {
|
|
2969
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3313
2970
|
}
|
|
3314
2971
|
/**
|
|
3315
|
-
*
|
|
2972
|
+
* Met à jour les paramètres d\'un club
|
|
2973
|
+
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3316
2974
|
* @param {*} [options] Override http request option.
|
|
3317
2975
|
* @throws {RequiredError}
|
|
3318
|
-
* @memberof
|
|
2976
|
+
* @memberof ClubSettingsManagerApi
|
|
3319
2977
|
*/
|
|
3320
|
-
|
|
3321
|
-
return (0, exports.
|
|
2978
|
+
updateClubSettings(requestParameters, options) {
|
|
2979
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3322
2980
|
}
|
|
3323
2981
|
}
|
|
3324
|
-
exports.
|
|
2982
|
+
exports.ClubSettingsManagerApi = ClubSettingsManagerApi;
|
|
3325
2983
|
/**
|
|
3326
2984
|
* ClubsApi - axios parameter creator
|
|
3327
2985
|
* @export
|
|
@@ -3329,7 +2987,7 @@ exports.ClubSettingsStaffApi = ClubSettingsStaffApi;
|
|
|
3329
2987
|
const ClubsApiAxiosParamCreator = function (configuration) {
|
|
3330
2988
|
return {
|
|
3331
2989
|
/**
|
|
3332
|
-
* Récupère la liste des clubs actifs
|
|
2990
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3333
2991
|
* @param {*} [options] Override http request option.
|
|
3334
2992
|
* @throws {RequiredError}
|
|
3335
2993
|
*/
|
|
@@ -3678,7 +3336,7 @@ const ClubsApiFp = function (configuration) {
|
|
|
3678
3336
|
const localVarAxiosParamCreator = (0, exports.ClubsApiAxiosParamCreator)(configuration);
|
|
3679
3337
|
return {
|
|
3680
3338
|
/**
|
|
3681
|
-
* Récupère la liste des clubs actifs
|
|
3339
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3682
3340
|
* @param {*} [options] Override http request option.
|
|
3683
3341
|
* @throws {RequiredError}
|
|
3684
3342
|
*/
|
|
@@ -3868,7 +3526,7 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
3868
3526
|
const localVarFp = (0, exports.ClubsApiFp)(configuration);
|
|
3869
3527
|
return {
|
|
3870
3528
|
/**
|
|
3871
|
-
* Récupère la liste des clubs actifs
|
|
3529
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3872
3530
|
* @param {*} [options] Override http request option.
|
|
3873
3531
|
* @throws {RequiredError}
|
|
3874
3532
|
*/
|
|
@@ -3982,7 +3640,7 @@ exports.ClubsApiFactory = ClubsApiFactory;
|
|
|
3982
3640
|
*/
|
|
3983
3641
|
class ClubsApi extends base_1.BaseAPI {
|
|
3984
3642
|
/**
|
|
3985
|
-
* Récupère la liste des clubs actifs
|
|
3643
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3986
3644
|
* @param {*} [options] Override http request option.
|
|
3987
3645
|
* @throws {RequiredError}
|
|
3988
3646
|
* @memberof ClubsApi
|
|
@@ -4137,6 +3795,42 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4137
3795
|
options: localVarRequestOptions,
|
|
4138
3796
|
};
|
|
4139
3797
|
}),
|
|
3798
|
+
/**
|
|
3799
|
+
*
|
|
3800
|
+
* @param {string} userId
|
|
3801
|
+
* @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
|
|
3802
|
+
* @param {*} [options] Override http request option.
|
|
3803
|
+
* @throws {RequiredError}
|
|
3804
|
+
*/
|
|
3805
|
+
addCreditsToCustomer: (userId_1, addCreditsToCustomerRequest_1, ...args_1) => __awaiter(this, [userId_1, addCreditsToCustomerRequest_1, ...args_1], void 0, function* (userId, addCreditsToCustomerRequest, options = {}) {
|
|
3806
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3807
|
+
(0, common_1.assertParamExists)('addCreditsToCustomer', 'userId', userId);
|
|
3808
|
+
// verify required parameter 'addCreditsToCustomerRequest' is not null or undefined
|
|
3809
|
+
(0, common_1.assertParamExists)('addCreditsToCustomer', 'addCreditsToCustomerRequest', addCreditsToCustomerRequest);
|
|
3810
|
+
const localVarPath = `/api/clubs/customers/{userId}/credits`
|
|
3811
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
3812
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3813
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3814
|
+
let baseOptions;
|
|
3815
|
+
if (configuration) {
|
|
3816
|
+
baseOptions = configuration.baseOptions;
|
|
3817
|
+
}
|
|
3818
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3819
|
+
const localVarHeaderParameter = {};
|
|
3820
|
+
const localVarQueryParameter = {};
|
|
3821
|
+
// authentication bearerAuth required
|
|
3822
|
+
// http bearer authentication required
|
|
3823
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3824
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3825
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3826
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3827
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3828
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addCreditsToCustomerRequest, localVarRequestOptions, configuration);
|
|
3829
|
+
return {
|
|
3830
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3831
|
+
options: localVarRequestOptions,
|
|
3832
|
+
};
|
|
3833
|
+
}),
|
|
4140
3834
|
/**
|
|
4141
3835
|
*
|
|
4142
3836
|
* @param {string} priceId
|
|
@@ -4613,38 +4307,6 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4613
4307
|
options: localVarRequestOptions,
|
|
4614
4308
|
};
|
|
4615
4309
|
}),
|
|
4616
|
-
/**
|
|
4617
|
-
*
|
|
4618
|
-
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
4619
|
-
* @param {*} [options] Override http request option.
|
|
4620
|
-
* @throws {RequiredError}
|
|
4621
|
-
*/
|
|
4622
|
-
updateClubPresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
|
|
4623
|
-
// verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
|
|
4624
|
-
(0, common_1.assertParamExists)('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
|
|
4625
|
-
const localVarPath = `/api/clubs/settings/presentation`;
|
|
4626
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4627
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4628
|
-
let baseOptions;
|
|
4629
|
-
if (configuration) {
|
|
4630
|
-
baseOptions = configuration.baseOptions;
|
|
4631
|
-
}
|
|
4632
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4633
|
-
const localVarHeaderParameter = {};
|
|
4634
|
-
const localVarQueryParameter = {};
|
|
4635
|
-
// authentication bearerAuth required
|
|
4636
|
-
// http bearer authentication required
|
|
4637
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4638
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4639
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4640
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4641
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4642
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
|
|
4643
|
-
return {
|
|
4644
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4645
|
-
options: localVarRequestOptions,
|
|
4646
|
-
};
|
|
4647
|
-
}),
|
|
4648
4310
|
/**
|
|
4649
4311
|
*
|
|
4650
4312
|
* @param {string} courtId
|
|
@@ -4742,6 +4404,22 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
4742
4404
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4743
4405
|
});
|
|
4744
4406
|
},
|
|
4407
|
+
/**
|
|
4408
|
+
*
|
|
4409
|
+
* @param {string} userId
|
|
4410
|
+
* @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
|
|
4411
|
+
* @param {*} [options] Override http request option.
|
|
4412
|
+
* @throws {RequiredError}
|
|
4413
|
+
*/
|
|
4414
|
+
addCreditsToCustomer(userId, addCreditsToCustomerRequest, options) {
|
|
4415
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4416
|
+
var _a, _b, _c;
|
|
4417
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addCreditsToCustomer(userId, addCreditsToCustomerRequest, options);
|
|
4418
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4419
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.addCreditsToCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4420
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4421
|
+
});
|
|
4422
|
+
},
|
|
4745
4423
|
/**
|
|
4746
4424
|
*
|
|
4747
4425
|
* @param {string} priceId
|
|
@@ -4968,21 +4646,6 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
4968
4646
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4969
4647
|
});
|
|
4970
4648
|
},
|
|
4971
|
-
/**
|
|
4972
|
-
*
|
|
4973
|
-
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
4974
|
-
* @param {*} [options] Override http request option.
|
|
4975
|
-
* @throws {RequiredError}
|
|
4976
|
-
*/
|
|
4977
|
-
updateClubPresentationSettings(updateClubPresentationSettingsRequest, options) {
|
|
4978
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4979
|
-
var _a, _b, _c;
|
|
4980
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
|
|
4981
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4982
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.updateClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4983
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4984
|
-
});
|
|
4985
|
-
},
|
|
4986
4649
|
/**
|
|
4987
4650
|
*
|
|
4988
4651
|
* @param {string} courtId
|
|
@@ -5034,6 +4697,15 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
5034
4697
|
addClubMember(requestParameters, options) {
|
|
5035
4698
|
return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
5036
4699
|
},
|
|
4700
|
+
/**
|
|
4701
|
+
*
|
|
4702
|
+
* @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
|
|
4703
|
+
* @param {*} [options] Override http request option.
|
|
4704
|
+
* @throws {RequiredError}
|
|
4705
|
+
*/
|
|
4706
|
+
addCreditsToCustomer(requestParameters, options) {
|
|
4707
|
+
return localVarFp.addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(axios, basePath));
|
|
4708
|
+
},
|
|
5037
4709
|
/**
|
|
5038
4710
|
*
|
|
5039
4711
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5168,15 +4840,6 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
5168
4840
|
updateClubInfos(requestParameters, options) {
|
|
5169
4841
|
return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
5170
4842
|
},
|
|
5171
|
-
/**
|
|
5172
|
-
*
|
|
5173
|
-
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
5174
|
-
* @param {*} [options] Override http request option.
|
|
5175
|
-
* @throws {RequiredError}
|
|
5176
|
-
*/
|
|
5177
|
-
updateClubPresentationSettings(requestParameters, options) {
|
|
5178
|
-
return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
5179
|
-
},
|
|
5180
4843
|
/**
|
|
5181
4844
|
*
|
|
5182
4845
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5215,6 +4878,16 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
5215
4878
|
addClubMember(requestParameters, options) {
|
|
5216
4879
|
return (0, exports.ClubsManagerApiFp)(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5217
4880
|
}
|
|
4881
|
+
/**
|
|
4882
|
+
*
|
|
4883
|
+
* @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
|
|
4884
|
+
* @param {*} [options] Override http request option.
|
|
4885
|
+
* @throws {RequiredError}
|
|
4886
|
+
* @memberof ClubsManagerApi
|
|
4887
|
+
*/
|
|
4888
|
+
addCreditsToCustomer(requestParameters, options) {
|
|
4889
|
+
return (0, exports.ClubsManagerApiFp)(this.configuration).addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4890
|
+
}
|
|
5218
4891
|
/**
|
|
5219
4892
|
*
|
|
5220
4893
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5364,16 +5037,6 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
5364
5037
|
updateClubInfos(requestParameters, options) {
|
|
5365
5038
|
return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
5366
5039
|
}
|
|
5367
|
-
/**
|
|
5368
|
-
*
|
|
5369
|
-
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
5370
|
-
* @param {*} [options] Override http request option.
|
|
5371
|
-
* @throws {RequiredError}
|
|
5372
|
-
* @memberof ClubsManagerApi
|
|
5373
|
-
*/
|
|
5374
|
-
updateClubPresentationSettings(requestParameters, options) {
|
|
5375
|
-
return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5376
|
-
}
|
|
5377
5040
|
/**
|
|
5378
5041
|
*
|
|
5379
5042
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5483,33 +5146,6 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
5483
5146
|
options: localVarRequestOptions,
|
|
5484
5147
|
};
|
|
5485
5148
|
}),
|
|
5486
|
-
/**
|
|
5487
|
-
*
|
|
5488
|
-
* @param {*} [options] Override http request option.
|
|
5489
|
-
* @throws {RequiredError}
|
|
5490
|
-
*/
|
|
5491
|
-
getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5492
|
-
const localVarPath = `/api/clubs/settings/presentation`;
|
|
5493
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5494
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5495
|
-
let baseOptions;
|
|
5496
|
-
if (configuration) {
|
|
5497
|
-
baseOptions = configuration.baseOptions;
|
|
5498
|
-
}
|
|
5499
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5500
|
-
const localVarHeaderParameter = {};
|
|
5501
|
-
const localVarQueryParameter = {};
|
|
5502
|
-
// authentication bearerAuth required
|
|
5503
|
-
// http bearer authentication required
|
|
5504
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5505
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5506
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5507
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5508
|
-
return {
|
|
5509
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5510
|
-
options: localVarRequestOptions,
|
|
5511
|
-
};
|
|
5512
|
-
}),
|
|
5513
5149
|
/**
|
|
5514
5150
|
* Récupère les rôles d\'un club
|
|
5515
5151
|
* @param {*} [options] Override http request option.
|
|
@@ -5674,20 +5310,6 @@ const ClubsStaffApiFp = function (configuration) {
|
|
|
5674
5310
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5675
5311
|
});
|
|
5676
5312
|
},
|
|
5677
|
-
/**
|
|
5678
|
-
*
|
|
5679
|
-
* @param {*} [options] Override http request option.
|
|
5680
|
-
* @throws {RequiredError}
|
|
5681
|
-
*/
|
|
5682
|
-
getClubPresentationSettings(options) {
|
|
5683
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5684
|
-
var _a, _b, _c;
|
|
5685
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPresentationSettings(options);
|
|
5686
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5687
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.getClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5688
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5689
|
-
});
|
|
5690
|
-
},
|
|
5691
5313
|
/**
|
|
5692
5314
|
* Récupère les rôles d\'un club
|
|
5693
5315
|
* @param {*} [options] Override http request option.
|
|
@@ -5779,14 +5401,6 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
5779
5401
|
getClubMembers(options) {
|
|
5780
5402
|
return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
|
|
5781
5403
|
},
|
|
5782
|
-
/**
|
|
5783
|
-
*
|
|
5784
|
-
* @param {*} [options] Override http request option.
|
|
5785
|
-
* @throws {RequiredError}
|
|
5786
|
-
*/
|
|
5787
|
-
getClubPresentationSettings(options) {
|
|
5788
|
-
return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
|
|
5789
|
-
},
|
|
5790
5404
|
/**
|
|
5791
5405
|
* Récupère les rôles d\'un club
|
|
5792
5406
|
* @param {*} [options] Override http request option.
|
|
@@ -5857,15 +5471,6 @@ class ClubsStaffApi extends base_1.BaseAPI {
|
|
|
5857
5471
|
getClubMembers(options) {
|
|
5858
5472
|
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
|
|
5859
5473
|
}
|
|
5860
|
-
/**
|
|
5861
|
-
*
|
|
5862
|
-
* @param {*} [options] Override http request option.
|
|
5863
|
-
* @throws {RequiredError}
|
|
5864
|
-
* @memberof ClubsStaffApi
|
|
5865
|
-
*/
|
|
5866
|
-
getClubPresentationSettings(options) {
|
|
5867
|
-
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
5868
|
-
}
|
|
5869
5474
|
/**
|
|
5870
5475
|
* Récupère les rôles d\'un club
|
|
5871
5476
|
* @param {*} [options] Override http request option.
|
|
@@ -6990,56 +6595,149 @@ const SportsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
6990
6595
|
return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6991
6596
|
},
|
|
6992
6597
|
/**
|
|
6993
|
-
* Met à jour un sport (interdit si vérifié)
|
|
6994
|
-
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
6598
|
+
* Met à jour un sport (interdit si vérifié)
|
|
6599
|
+
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
6600
|
+
* @param {*} [options] Override http request option.
|
|
6601
|
+
* @throws {RequiredError}
|
|
6602
|
+
*/
|
|
6603
|
+
updateSport(requestParameters, options) {
|
|
6604
|
+
return localVarFp.updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(axios, basePath));
|
|
6605
|
+
},
|
|
6606
|
+
};
|
|
6607
|
+
};
|
|
6608
|
+
exports.SportsManagerApiFactory = SportsManagerApiFactory;
|
|
6609
|
+
/**
|
|
6610
|
+
* SportsManagerApi - object-oriented interface
|
|
6611
|
+
* @export
|
|
6612
|
+
* @class SportsManagerApi
|
|
6613
|
+
* @extends {BaseAPI}
|
|
6614
|
+
*/
|
|
6615
|
+
class SportsManagerApi extends base_1.BaseAPI {
|
|
6616
|
+
/**
|
|
6617
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
6618
|
+
* @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
|
|
6619
|
+
* @param {*} [options] Override http request option.
|
|
6620
|
+
* @throws {RequiredError}
|
|
6621
|
+
* @memberof SportsManagerApi
|
|
6622
|
+
*/
|
|
6623
|
+
createSport(requestParameters, options) {
|
|
6624
|
+
return (0, exports.SportsManagerApiFp)(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6625
|
+
}
|
|
6626
|
+
/**
|
|
6627
|
+
* Supprime un sport (interdit si vérifié)
|
|
6628
|
+
* @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
|
|
6629
|
+
* @param {*} [options] Override http request option.
|
|
6630
|
+
* @throws {RequiredError}
|
|
6631
|
+
* @memberof SportsManagerApi
|
|
6632
|
+
*/
|
|
6633
|
+
deleteSport(requestParameters, options) {
|
|
6634
|
+
return (0, exports.SportsManagerApiFp)(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6635
|
+
}
|
|
6636
|
+
/**
|
|
6637
|
+
* Met à jour un sport (interdit si vérifié)
|
|
6638
|
+
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
6639
|
+
* @param {*} [options] Override http request option.
|
|
6640
|
+
* @throws {RequiredError}
|
|
6641
|
+
* @memberof SportsManagerApi
|
|
6642
|
+
*/
|
|
6643
|
+
updateSport(requestParameters, options) {
|
|
6644
|
+
return (0, exports.SportsManagerApiFp)(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6645
|
+
}
|
|
6646
|
+
}
|
|
6647
|
+
exports.SportsManagerApi = SportsManagerApi;
|
|
6648
|
+
/**
|
|
6649
|
+
* SportsPublicApi - axios parameter creator
|
|
6650
|
+
* @export
|
|
6651
|
+
*/
|
|
6652
|
+
const SportsPublicApiAxiosParamCreator = function (configuration) {
|
|
6653
|
+
return {
|
|
6654
|
+
/**
|
|
6655
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6656
|
+
* @param {*} [options] Override http request option.
|
|
6657
|
+
* @throws {RequiredError}
|
|
6658
|
+
*/
|
|
6659
|
+
getVerifiedSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6660
|
+
const localVarPath = `/api/sports/verified`;
|
|
6661
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6662
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6663
|
+
let baseOptions;
|
|
6664
|
+
if (configuration) {
|
|
6665
|
+
baseOptions = configuration.baseOptions;
|
|
6666
|
+
}
|
|
6667
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6668
|
+
const localVarHeaderParameter = {};
|
|
6669
|
+
const localVarQueryParameter = {};
|
|
6670
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6671
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6672
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6673
|
+
return {
|
|
6674
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6675
|
+
options: localVarRequestOptions,
|
|
6676
|
+
};
|
|
6677
|
+
}),
|
|
6678
|
+
};
|
|
6679
|
+
};
|
|
6680
|
+
exports.SportsPublicApiAxiosParamCreator = SportsPublicApiAxiosParamCreator;
|
|
6681
|
+
/**
|
|
6682
|
+
* SportsPublicApi - functional programming interface
|
|
6683
|
+
* @export
|
|
6684
|
+
*/
|
|
6685
|
+
const SportsPublicApiFp = function (configuration) {
|
|
6686
|
+
const localVarAxiosParamCreator = (0, exports.SportsPublicApiAxiosParamCreator)(configuration);
|
|
6687
|
+
return {
|
|
6688
|
+
/**
|
|
6689
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6690
|
+
* @param {*} [options] Override http request option.
|
|
6691
|
+
* @throws {RequiredError}
|
|
6692
|
+
*/
|
|
6693
|
+
getVerifiedSports(options) {
|
|
6694
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6695
|
+
var _a, _b, _c;
|
|
6696
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getVerifiedSports(options);
|
|
6697
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6698
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SportsPublicApi.getVerifiedSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6699
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6700
|
+
});
|
|
6701
|
+
},
|
|
6702
|
+
};
|
|
6703
|
+
};
|
|
6704
|
+
exports.SportsPublicApiFp = SportsPublicApiFp;
|
|
6705
|
+
/**
|
|
6706
|
+
* SportsPublicApi - factory interface
|
|
6707
|
+
* @export
|
|
6708
|
+
*/
|
|
6709
|
+
const SportsPublicApiFactory = function (configuration, basePath, axios) {
|
|
6710
|
+
const localVarFp = (0, exports.SportsPublicApiFp)(configuration);
|
|
6711
|
+
return {
|
|
6712
|
+
/**
|
|
6713
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6995
6714
|
* @param {*} [options] Override http request option.
|
|
6996
6715
|
* @throws {RequiredError}
|
|
6997
6716
|
*/
|
|
6998
|
-
|
|
6999
|
-
return localVarFp.
|
|
6717
|
+
getVerifiedSports(options) {
|
|
6718
|
+
return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
|
|
7000
6719
|
},
|
|
7001
6720
|
};
|
|
7002
6721
|
};
|
|
7003
|
-
exports.
|
|
6722
|
+
exports.SportsPublicApiFactory = SportsPublicApiFactory;
|
|
7004
6723
|
/**
|
|
7005
|
-
*
|
|
6724
|
+
* SportsPublicApi - object-oriented interface
|
|
7006
6725
|
* @export
|
|
7007
|
-
* @class
|
|
6726
|
+
* @class SportsPublicApi
|
|
7008
6727
|
* @extends {BaseAPI}
|
|
7009
6728
|
*/
|
|
7010
|
-
class
|
|
7011
|
-
/**
|
|
7012
|
-
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
7013
|
-
* @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
|
|
7014
|
-
* @param {*} [options] Override http request option.
|
|
7015
|
-
* @throws {RequiredError}
|
|
7016
|
-
* @memberof SportsManagerApi
|
|
7017
|
-
*/
|
|
7018
|
-
createSport(requestParameters, options) {
|
|
7019
|
-
return (0, exports.SportsManagerApiFp)(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7020
|
-
}
|
|
7021
|
-
/**
|
|
7022
|
-
* Supprime un sport (interdit si vérifié)
|
|
7023
|
-
* @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
|
|
7024
|
-
* @param {*} [options] Override http request option.
|
|
7025
|
-
* @throws {RequiredError}
|
|
7026
|
-
* @memberof SportsManagerApi
|
|
7027
|
-
*/
|
|
7028
|
-
deleteSport(requestParameters, options) {
|
|
7029
|
-
return (0, exports.SportsManagerApiFp)(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7030
|
-
}
|
|
6729
|
+
class SportsPublicApi extends base_1.BaseAPI {
|
|
7031
6730
|
/**
|
|
7032
|
-
*
|
|
7033
|
-
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
6731
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
7034
6732
|
* @param {*} [options] Override http request option.
|
|
7035
6733
|
* @throws {RequiredError}
|
|
7036
|
-
* @memberof
|
|
6734
|
+
* @memberof SportsPublicApi
|
|
7037
6735
|
*/
|
|
7038
|
-
|
|
7039
|
-
return (0, exports.
|
|
6736
|
+
getVerifiedSports(options) {
|
|
6737
|
+
return (0, exports.SportsPublicApiFp)(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
|
|
7040
6738
|
}
|
|
7041
6739
|
}
|
|
7042
|
-
exports.
|
|
6740
|
+
exports.SportsPublicApi = SportsPublicApi;
|
|
7043
6741
|
/**
|
|
7044
6742
|
* SportsStaffApi - axios parameter creator
|
|
7045
6743
|
* @export
|
|
@@ -7870,53 +7568,126 @@ class SubscriptionsUserApi extends base_1.BaseAPI {
|
|
|
7870
7568
|
}
|
|
7871
7569
|
exports.SubscriptionsUserApi = SubscriptionsUserApi;
|
|
7872
7570
|
/**
|
|
7873
|
-
*
|
|
7571
|
+
* UserApi - axios parameter creator
|
|
7874
7572
|
* @export
|
|
7875
7573
|
*/
|
|
7876
|
-
const
|
|
7574
|
+
const UserApiAxiosParamCreator = function (configuration) {
|
|
7877
7575
|
return {
|
|
7878
7576
|
/**
|
|
7879
|
-
*
|
|
7880
|
-
* @param {
|
|
7577
|
+
* Récupère les informations du club de l\'utilisateur
|
|
7578
|
+
* @param {string} clubId
|
|
7881
7579
|
* @param {*} [options] Override http request option.
|
|
7882
7580
|
* @throws {RequiredError}
|
|
7883
7581
|
*/
|
|
7884
|
-
|
|
7885
|
-
// verify required parameter '
|
|
7886
|
-
(0, common_1.assertParamExists)('
|
|
7887
|
-
const localVarPath = `/api/users/me/
|
|
7582
|
+
getMyClubInfos: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
7583
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
7584
|
+
(0, common_1.assertParamExists)('getMyClubInfos', 'clubId', clubId);
|
|
7585
|
+
const localVarPath = `/api/users/me/club-infos`;
|
|
7888
7586
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7889
7587
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7890
7588
|
let baseOptions;
|
|
7891
7589
|
if (configuration) {
|
|
7892
7590
|
baseOptions = configuration.baseOptions;
|
|
7893
7591
|
}
|
|
7894
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
7592
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7895
7593
|
const localVarHeaderParameter = {};
|
|
7896
7594
|
const localVarQueryParameter = {};
|
|
7897
7595
|
// authentication bearerAuth required
|
|
7898
7596
|
// http bearer authentication required
|
|
7899
7597
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7900
|
-
|
|
7598
|
+
if (clubId !== undefined) {
|
|
7599
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
7600
|
+
}
|
|
7901
7601
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7902
7602
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7903
7603
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7904
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
7905
7604
|
return {
|
|
7906
7605
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7907
7606
|
options: localVarRequestOptions,
|
|
7908
7607
|
};
|
|
7909
7608
|
}),
|
|
7609
|
+
};
|
|
7610
|
+
};
|
|
7611
|
+
exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
|
|
7612
|
+
/**
|
|
7613
|
+
* UserApi - functional programming interface
|
|
7614
|
+
* @export
|
|
7615
|
+
*/
|
|
7616
|
+
const UserApiFp = function (configuration) {
|
|
7617
|
+
const localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
|
|
7618
|
+
return {
|
|
7619
|
+
/**
|
|
7620
|
+
* Récupère les informations du club de l\'utilisateur
|
|
7621
|
+
* @param {string} clubId
|
|
7622
|
+
* @param {*} [options] Override http request option.
|
|
7623
|
+
* @throws {RequiredError}
|
|
7624
|
+
*/
|
|
7625
|
+
getMyClubInfos(clubId, options) {
|
|
7626
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7627
|
+
var _a, _b, _c;
|
|
7628
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClubInfos(clubId, options);
|
|
7629
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7630
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.getMyClubInfos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7631
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7632
|
+
});
|
|
7633
|
+
},
|
|
7634
|
+
};
|
|
7635
|
+
};
|
|
7636
|
+
exports.UserApiFp = UserApiFp;
|
|
7637
|
+
/**
|
|
7638
|
+
* UserApi - factory interface
|
|
7639
|
+
* @export
|
|
7640
|
+
*/
|
|
7641
|
+
const UserApiFactory = function (configuration, basePath, axios) {
|
|
7642
|
+
const localVarFp = (0, exports.UserApiFp)(configuration);
|
|
7643
|
+
return {
|
|
7644
|
+
/**
|
|
7645
|
+
* Récupère les informations du club de l\'utilisateur
|
|
7646
|
+
* @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
|
|
7647
|
+
* @param {*} [options] Override http request option.
|
|
7648
|
+
* @throws {RequiredError}
|
|
7649
|
+
*/
|
|
7650
|
+
getMyClubInfos(requestParameters, options) {
|
|
7651
|
+
return localVarFp.getMyClubInfos(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
7652
|
+
},
|
|
7653
|
+
};
|
|
7654
|
+
};
|
|
7655
|
+
exports.UserApiFactory = UserApiFactory;
|
|
7656
|
+
/**
|
|
7657
|
+
* UserApi - object-oriented interface
|
|
7658
|
+
* @export
|
|
7659
|
+
* @class UserApi
|
|
7660
|
+
* @extends {BaseAPI}
|
|
7661
|
+
*/
|
|
7662
|
+
class UserApi extends base_1.BaseAPI {
|
|
7663
|
+
/**
|
|
7664
|
+
* Récupère les informations du club de l\'utilisateur
|
|
7665
|
+
* @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
|
|
7666
|
+
* @param {*} [options] Override http request option.
|
|
7667
|
+
* @throws {RequiredError}
|
|
7668
|
+
* @memberof UserApi
|
|
7669
|
+
*/
|
|
7670
|
+
getMyClubInfos(requestParameters, options) {
|
|
7671
|
+
return (0, exports.UserApiFp)(this.configuration).getMyClubInfos(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
7672
|
+
}
|
|
7673
|
+
}
|
|
7674
|
+
exports.UserApi = UserApi;
|
|
7675
|
+
/**
|
|
7676
|
+
* UsersApi - axios parameter creator
|
|
7677
|
+
* @export
|
|
7678
|
+
*/
|
|
7679
|
+
const UsersApiAxiosParamCreator = function (configuration) {
|
|
7680
|
+
return {
|
|
7910
7681
|
/**
|
|
7911
7682
|
*
|
|
7912
|
-
* @param {
|
|
7683
|
+
* @param {FavoriteClubRequestBody} favoriteClubRequestBody
|
|
7913
7684
|
* @param {*} [options] Override http request option.
|
|
7914
7685
|
* @throws {RequiredError}
|
|
7915
7686
|
*/
|
|
7916
|
-
|
|
7917
|
-
// verify required parameter '
|
|
7918
|
-
(0, common_1.assertParamExists)('
|
|
7919
|
-
const localVarPath = `/api/users/me/
|
|
7687
|
+
addFavoriteClub: (favoriteClubRequestBody_1, ...args_1) => __awaiter(this, [favoriteClubRequestBody_1, ...args_1], void 0, function* (favoriteClubRequestBody, options = {}) {
|
|
7688
|
+
// verify required parameter 'favoriteClubRequestBody' is not null or undefined
|
|
7689
|
+
(0, common_1.assertParamExists)('addFavoriteClub', 'favoriteClubRequestBody', favoriteClubRequestBody);
|
|
7690
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
7920
7691
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7921
7692
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7922
7693
|
let baseOptions;
|
|
@@ -7933,7 +7704,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7933
7704
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7934
7705
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7935
7706
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7936
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
7707
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
7937
7708
|
return {
|
|
7938
7709
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7939
7710
|
options: localVarRequestOptions,
|
|
@@ -7941,14 +7712,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7941
7712
|
}),
|
|
7942
7713
|
/**
|
|
7943
7714
|
*
|
|
7944
|
-
* @param {
|
|
7715
|
+
* @param {FavoritePlayerRequestBody} favoritePlayerRequestBody
|
|
7945
7716
|
* @param {*} [options] Override http request option.
|
|
7946
7717
|
* @throws {RequiredError}
|
|
7947
7718
|
*/
|
|
7948
|
-
|
|
7949
|
-
// verify required parameter '
|
|
7950
|
-
(0, common_1.assertParamExists)('
|
|
7951
|
-
const localVarPath = `/api/users/me/
|
|
7719
|
+
addFavoritePlayer: (favoritePlayerRequestBody_1, ...args_1) => __awaiter(this, [favoritePlayerRequestBody_1, ...args_1], void 0, function* (favoritePlayerRequestBody, options = {}) {
|
|
7720
|
+
// verify required parameter 'favoritePlayerRequestBody' is not null or undefined
|
|
7721
|
+
(0, common_1.assertParamExists)('addFavoritePlayer', 'favoritePlayerRequestBody', favoritePlayerRequestBody);
|
|
7722
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
7952
7723
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7953
7724
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7954
7725
|
let baseOptions;
|
|
@@ -7965,7 +7736,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7965
7736
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7966
7737
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7967
7738
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7968
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
7739
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
7969
7740
|
return {
|
|
7970
7741
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7971
7742
|
options: localVarRequestOptions,
|
|
@@ -7973,14 +7744,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7973
7744
|
}),
|
|
7974
7745
|
/**
|
|
7975
7746
|
*
|
|
7976
|
-
* @param {
|
|
7747
|
+
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
7977
7748
|
* @param {*} [options] Override http request option.
|
|
7978
7749
|
* @throws {RequiredError}
|
|
7979
7750
|
*/
|
|
7980
|
-
|
|
7981
|
-
// verify required parameter '
|
|
7982
|
-
(0, common_1.assertParamExists)('
|
|
7983
|
-
const localVarPath = `/api/users/
|
|
7751
|
+
addOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
|
|
7752
|
+
// verify required parameter 'addOrganizationRequest' is not null or undefined
|
|
7753
|
+
(0, common_1.assertParamExists)('addOrganization', 'addOrganizationRequest', addOrganizationRequest);
|
|
7754
|
+
const localVarPath = `/api/users/me/add-organization`;
|
|
7984
7755
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7985
7756
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7986
7757
|
let baseOptions;
|
|
@@ -7997,7 +7768,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7997
7768
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7998
7769
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7999
7770
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8000
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
7771
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addOrganizationRequest, localVarRequestOptions, configuration);
|
|
8001
7772
|
return {
|
|
8002
7773
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8003
7774
|
options: localVarRequestOptions,
|
|
@@ -8035,38 +7806,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8035
7806
|
options: localVarRequestOptions,
|
|
8036
7807
|
};
|
|
8037
7808
|
}),
|
|
8038
|
-
/**
|
|
8039
|
-
*
|
|
8040
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
8041
|
-
* @param {*} [options] Override http request option.
|
|
8042
|
-
* @throws {RequiredError}
|
|
8043
|
-
*/
|
|
8044
|
-
confirmPaymentMethodSetup: (confirmPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodRequestBody, options = {}) {
|
|
8045
|
-
// verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
|
|
8046
|
-
(0, common_1.assertParamExists)('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody);
|
|
8047
|
-
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
8048
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8049
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8050
|
-
let baseOptions;
|
|
8051
|
-
if (configuration) {
|
|
8052
|
-
baseOptions = configuration.baseOptions;
|
|
8053
|
-
}
|
|
8054
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8055
|
-
const localVarHeaderParameter = {};
|
|
8056
|
-
const localVarQueryParameter = {};
|
|
8057
|
-
// authentication bearerAuth required
|
|
8058
|
-
// http bearer authentication required
|
|
8059
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8060
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8061
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8062
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8063
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8064
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
8065
|
-
return {
|
|
8066
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8067
|
-
options: localVarRequestOptions,
|
|
8068
|
-
};
|
|
8069
|
-
}),
|
|
8070
7809
|
/**
|
|
8071
7810
|
*
|
|
8072
7811
|
* @param {*} [options] Override http request option.
|
|
@@ -8836,38 +8575,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8836
8575
|
options: localVarRequestOptions,
|
|
8837
8576
|
};
|
|
8838
8577
|
}),
|
|
8839
|
-
/**
|
|
8840
|
-
*
|
|
8841
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
8842
|
-
* @param {*} [options] Override http request option.
|
|
8843
|
-
* @throws {RequiredError}
|
|
8844
|
-
*/
|
|
8845
|
-
setupOffSessionPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
8846
|
-
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
8847
|
-
(0, common_1.assertParamExists)('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
8848
|
-
const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
|
|
8849
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8850
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8851
|
-
let baseOptions;
|
|
8852
|
-
if (configuration) {
|
|
8853
|
-
baseOptions = configuration.baseOptions;
|
|
8854
|
-
}
|
|
8855
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8856
|
-
const localVarHeaderParameter = {};
|
|
8857
|
-
const localVarQueryParameter = {};
|
|
8858
|
-
// authentication bearerAuth required
|
|
8859
|
-
// http bearer authentication required
|
|
8860
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8861
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8862
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8863
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8864
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8865
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
8866
|
-
return {
|
|
8867
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8868
|
-
options: localVarRequestOptions,
|
|
8869
|
-
};
|
|
8870
|
-
}),
|
|
8871
8578
|
/**
|
|
8872
8579
|
*
|
|
8873
8580
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -9138,21 +8845,6 @@ const UsersApiFp = function (configuration) {
|
|
|
9138
8845
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9139
8846
|
});
|
|
9140
8847
|
},
|
|
9141
|
-
/**
|
|
9142
|
-
*
|
|
9143
|
-
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
9144
|
-
* @param {*} [options] Override http request option.
|
|
9145
|
-
* @throws {RequiredError}
|
|
9146
|
-
*/
|
|
9147
|
-
addPaymentMethodSetup(addPaymentMethodRequestBody, options) {
|
|
9148
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9149
|
-
var _a, _b, _c;
|
|
9150
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, options);
|
|
9151
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9152
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9153
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9154
|
-
});
|
|
9155
|
-
},
|
|
9156
8848
|
/**
|
|
9157
8849
|
*
|
|
9158
8850
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -9168,21 +8860,6 @@ const UsersApiFp = function (configuration) {
|
|
|
9168
8860
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9169
8861
|
});
|
|
9170
8862
|
},
|
|
9171
|
-
/**
|
|
9172
|
-
*
|
|
9173
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
9174
|
-
* @param {*} [options] Override http request option.
|
|
9175
|
-
* @throws {RequiredError}
|
|
9176
|
-
*/
|
|
9177
|
-
confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options) {
|
|
9178
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9179
|
-
var _a, _b, _c;
|
|
9180
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
|
|
9181
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9182
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9183
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9184
|
-
});
|
|
9185
|
-
},
|
|
9186
8863
|
/**
|
|
9187
8864
|
*
|
|
9188
8865
|
* @param {*} [options] Override http request option.
|
|
@@ -9553,21 +9230,6 @@ const UsersApiFp = function (configuration) {
|
|
|
9553
9230
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9554
9231
|
});
|
|
9555
9232
|
},
|
|
9556
|
-
/**
|
|
9557
|
-
*
|
|
9558
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
9559
|
-
* @param {*} [options] Override http request option.
|
|
9560
|
-
* @throws {RequiredError}
|
|
9561
|
-
*/
|
|
9562
|
-
setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
9563
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9564
|
-
var _a, _b, _c;
|
|
9565
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
9566
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9567
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.setupOffSessionPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9568
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9569
|
-
});
|
|
9570
|
-
},
|
|
9571
9233
|
/**
|
|
9572
9234
|
*
|
|
9573
9235
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -9710,15 +9372,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9710
9372
|
addOrganization(requestParameters, options) {
|
|
9711
9373
|
return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
9712
9374
|
},
|
|
9713
|
-
/**
|
|
9714
|
-
*
|
|
9715
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9716
|
-
* @param {*} [options] Override http request option.
|
|
9717
|
-
* @throws {RequiredError}
|
|
9718
|
-
*/
|
|
9719
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
9720
|
-
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9721
|
-
},
|
|
9722
9375
|
/**
|
|
9723
9376
|
*
|
|
9724
9377
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -9728,15 +9381,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9728
9381
|
changePassword(requestParameters, options) {
|
|
9729
9382
|
return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
|
|
9730
9383
|
},
|
|
9731
|
-
/**
|
|
9732
|
-
*
|
|
9733
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9734
|
-
* @param {*} [options] Override http request option.
|
|
9735
|
-
* @throws {RequiredError}
|
|
9736
|
-
*/
|
|
9737
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
9738
|
-
return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9739
|
-
},
|
|
9740
9384
|
/**
|
|
9741
9385
|
*
|
|
9742
9386
|
* @param {*} [options] Override http request option.
|
|
@@ -9945,15 +9589,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9945
9589
|
resetPassword(requestParameters, options) {
|
|
9946
9590
|
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
9947
9591
|
},
|
|
9948
|
-
/**
|
|
9949
|
-
*
|
|
9950
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
9951
|
-
* @param {*} [options] Override http request option.
|
|
9952
|
-
* @throws {RequiredError}
|
|
9953
|
-
*/
|
|
9954
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
9955
|
-
return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9956
|
-
},
|
|
9957
9592
|
/**
|
|
9958
9593
|
*
|
|
9959
9594
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
@@ -10057,16 +9692,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
10057
9692
|
addOrganization(requestParameters, options) {
|
|
10058
9693
|
return (0, exports.UsersApiFp)(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10059
9694
|
}
|
|
10060
|
-
/**
|
|
10061
|
-
*
|
|
10062
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
10063
|
-
* @param {*} [options] Override http request option.
|
|
10064
|
-
* @throws {RequiredError}
|
|
10065
|
-
* @memberof UsersApi
|
|
10066
|
-
*/
|
|
10067
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
10068
|
-
return (0, exports.UsersApiFp)(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10069
|
-
}
|
|
10070
9695
|
/**
|
|
10071
9696
|
*
|
|
10072
9697
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -10077,16 +9702,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
10077
9702
|
changePassword(requestParameters, options) {
|
|
10078
9703
|
return (0, exports.UsersApiFp)(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10079
9704
|
}
|
|
10080
|
-
/**
|
|
10081
|
-
*
|
|
10082
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
10083
|
-
* @param {*} [options] Override http request option.
|
|
10084
|
-
* @throws {RequiredError}
|
|
10085
|
-
* @memberof UsersApi
|
|
10086
|
-
*/
|
|
10087
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
10088
|
-
return (0, exports.UsersApiFp)(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10089
|
-
}
|
|
10090
9705
|
/**
|
|
10091
9706
|
*
|
|
10092
9707
|
* @param {*} [options] Override http request option.
|
|
@@ -10319,16 +9934,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
10319
9934
|
resetPassword(requestParameters, options) {
|
|
10320
9935
|
return (0, exports.UsersApiFp)(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10321
9936
|
}
|
|
10322
|
-
/**
|
|
10323
|
-
*
|
|
10324
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
10325
|
-
* @param {*} [options] Override http request option.
|
|
10326
|
-
* @throws {RequiredError}
|
|
10327
|
-
* @memberof UsersApi
|
|
10328
|
-
*/
|
|
10329
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
10330
|
-
return (0, exports.UsersApiFp)(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10331
|
-
}
|
|
10332
9937
|
/**
|
|
10333
9938
|
*
|
|
10334
9939
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|