@tennac-booking/sdk 1.0.85 → 1.0.87
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 +256 -241
- package/README.md +47 -24
- package/api.ts +2443 -1287
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +2046 -1260
- package/dist/api.js +841 -270
- 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 +2046 -1260
- package/dist/esm/api.js +834 -263
- 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/{DeleteClubSettingsResponse.md → AddPaymentMethodRequestBody.md} +5 -5
- package/docs/BookingInfo.md +2 -2
- package/docs/BookingPopulated.md +3 -3
- package/docs/BookingResponse.md +0 -2
- package/docs/BookingSummary.md +2 -54
- package/docs/BookingsApi.md +0 -55
- package/docs/ClubAnalyticsStaffApi.md +173 -0
- package/docs/{BookingSportInfo.md → ClubDaySchedule.md} +7 -7
- package/docs/ClubGeneralSettingsResponse.md +32 -0
- package/docs/ClubHoursSettingsResponse.md +22 -0
- package/docs/ClubLocationSettings.md +26 -0
- package/docs/ClubPlayerBookingItem.md +36 -0
- package/docs/ClubPlayerBookingsPagination.md +28 -0
- package/docs/ClubPlayerBookingsResponse.md +24 -0
- package/docs/ClubPlayerDetailResponse.md +46 -0
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +22 -0
- package/docs/ClubPlayerStatisticsResponse.md +42 -0
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +22 -0
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +23 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +25 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +26 -0
- package/docs/ClubPlayerSubscriptionSummary.md +28 -0
- package/docs/ClubPresentationSettingsResponse.md +26 -0
- package/docs/ClubPricingPeriodResponse.md +30 -0
- package/docs/ClubReservationSettingsResponse.md +28 -0
- package/docs/ClubResponse.md +0 -8
- package/docs/ClubSettingsManagerApi.md +54 -55
- package/docs/ClubSettingsStaffApi.md +139 -0
- package/docs/ClubWeeklySchedule.md +32 -0
- package/docs/ClubsManagerApi.md +52 -0
- package/docs/ClubsStaffApi.md +44 -0
- package/docs/{BookingCourtInfo.md → ConfirmPaymentMethodRequestBody.md} +5 -7
- package/docs/{BookingPriceBody.md → ConfirmPaymentMethodResponse.md} +7 -7
- package/docs/CreateBookingRequest.md +2 -2
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventResponse.md +1 -1
- package/docs/IUserAttributes.md +12 -2
- package/docs/PartialClubResponse.md +0 -8
- package/docs/PartialClubWeeklySchedule.md +33 -0
- package/docs/PaymentMethodSetupResponse.md +24 -0
- package/docs/QuickReservationClubSummary.md +0 -4
- package/docs/{EventResponseCourtsInner.md → SetupPaymentMethodRequestBody.md} +5 -3
- package/docs/SetupPaymentMethodResponse.md +24 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/StaffUserProfileResponse.md +12 -2
- package/docs/SubscribeRequestBody.md +0 -2
- package/docs/UpdateClubGeneralSettingsRequest.md +34 -0
- package/docs/UpdateClubHoursSettingsRequest.md +22 -0
- package/docs/UpdateClubPresentationSettingsRequest.md +26 -0
- package/docs/UpdateClubReservationSettingsRequest.md +28 -0
- package/docs/UpdateEventRequest.md +1 -1
- package/docs/UserProfileResponse.md +12 -4
- package/docs/UsersApi.md +160 -4
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BookingClubInfo.md +0 -28
- package/docs/BookingPaymentStatus.md +0 -24
- package/docs/BookingPlayerPaymentSummary.md +0 -34
- package/docs/BookingSlotInfo.md +0 -30
- package/docs/ClubSettingsResponse.md +0 -39
- package/docs/CreateClubSettingsRequest.md +0 -34
- package/docs/InvoiceStatus.md +0 -22
- package/docs/PlayerPrice.md +0 -30
- package/docs/QuickReservationClubSport.md +0 -22
- package/docs/SportsPublicApi.md +0 -53
- package/docs/SubscriptionInfo.md +0 -24
- package/docs/UpdateClubSettingsRequest.md +0 -32
- package/docs/UserBookingsResponse.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.77
|
|
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.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.
|
|
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.
|
|
25
|
+
exports.BookingsApiFactory = 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.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.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.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = 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 = void 0;
|
|
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 = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -139,21 +139,6 @@ 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
|
-
};
|
|
157
142
|
/**
|
|
158
143
|
*
|
|
159
144
|
* @export
|
|
@@ -384,38 +369,6 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
384
369
|
options: localVarRequestOptions,
|
|
385
370
|
};
|
|
386
371
|
}),
|
|
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
|
-
}),
|
|
419
372
|
/**
|
|
420
373
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
421
374
|
* @param {number} [latitude]
|
|
@@ -426,13 +379,12 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
426
379
|
* @param {string} [startTime]
|
|
427
380
|
* @param {number} [priceMax]
|
|
428
381
|
* @param {string} [courtTypes]
|
|
429
|
-
* @param {string} [surfaceTypes]
|
|
430
382
|
* @param {number} [limitPerClub]
|
|
431
383
|
* @param {number} [maxClubs]
|
|
432
384
|
* @param {*} [options] Override http request option.
|
|
433
385
|
* @throws {RequiredError}
|
|
434
386
|
*/
|
|
435
|
-
getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1,
|
|
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 = {}) {
|
|
436
388
|
const localVarPath = `/api/bookings/quick-reservations`;
|
|
437
389
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
438
390
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -467,11 +419,8 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
467
419
|
if (courtTypes !== undefined) {
|
|
468
420
|
localVarQueryParameter['courtTypes'] = courtTypes;
|
|
469
421
|
}
|
|
470
|
-
if (surfaceTypes !== undefined) {
|
|
471
|
-
localVarQueryParameter['surfaceTypes'] = surfaceTypes;
|
|
472
|
-
}
|
|
473
422
|
if (limitPerClub !== undefined) {
|
|
474
|
-
localVarQueryParameter['
|
|
423
|
+
localVarQueryParameter['limitPerClub'] = limitPerClub;
|
|
475
424
|
}
|
|
476
425
|
if (maxClubs !== undefined) {
|
|
477
426
|
localVarQueryParameter['maxClubs'] = maxClubs;
|
|
@@ -509,21 +458,6 @@ const BookingsApiFp = function (configuration) {
|
|
|
509
458
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
510
459
|
});
|
|
511
460
|
},
|
|
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
|
-
},
|
|
527
461
|
/**
|
|
528
462
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
529
463
|
* @param {number} [latitude]
|
|
@@ -534,16 +468,15 @@ const BookingsApiFp = function (configuration) {
|
|
|
534
468
|
* @param {string} [startTime]
|
|
535
469
|
* @param {number} [priceMax]
|
|
536
470
|
* @param {string} [courtTypes]
|
|
537
|
-
* @param {string} [surfaceTypes]
|
|
538
471
|
* @param {number} [limitPerClub]
|
|
539
472
|
* @param {number} [maxClubs]
|
|
540
473
|
* @param {*} [options] Override http request option.
|
|
541
474
|
* @throws {RequiredError}
|
|
542
475
|
*/
|
|
543
|
-
getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes,
|
|
476
|
+
getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options) {
|
|
544
477
|
return __awaiter(this, void 0, void 0, function* () {
|
|
545
478
|
var _a, _b, _c;
|
|
546
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes,
|
|
479
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
|
|
547
480
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
548
481
|
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;
|
|
549
482
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -568,15 +501,6 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
568
501
|
getBookingHistory(requestParameters, options) {
|
|
569
502
|
return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
570
503
|
},
|
|
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
|
-
},
|
|
580
504
|
/**
|
|
581
505
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
582
506
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -584,7 +508,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
584
508
|
* @throws {RequiredError}
|
|
585
509
|
*/
|
|
586
510
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
587
|
-
return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.
|
|
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));
|
|
588
512
|
},
|
|
589
513
|
};
|
|
590
514
|
};
|
|
@@ -606,16 +530,6 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
606
530
|
getBookingHistory(requestParameters, options) {
|
|
607
531
|
return (0, exports.BookingsApiFp)(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
608
532
|
}
|
|
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
|
-
}
|
|
619
533
|
/**
|
|
620
534
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
621
535
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -624,7 +538,7 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
624
538
|
* @memberof BookingsApi
|
|
625
539
|
*/
|
|
626
540
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
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.
|
|
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));
|
|
628
542
|
}
|
|
629
543
|
}
|
|
630
544
|
exports.BookingsApi = BookingsApi;
|
|
@@ -1596,6 +1510,107 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1596
1510
|
options: localVarRequestOptions,
|
|
1597
1511
|
};
|
|
1598
1512
|
}),
|
|
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
|
+
}),
|
|
1599
1614
|
/**
|
|
1600
1615
|
* Récupère la liste des joueurs du club
|
|
1601
1616
|
* @param {*} [options] Override http request option.
|
|
@@ -1896,6 +1911,53 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
1896
1911
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1897
1912
|
});
|
|
1898
1913
|
},
|
|
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
|
+
},
|
|
1899
1961
|
/**
|
|
1900
1962
|
* Récupère la liste des joueurs du club
|
|
1901
1963
|
* @param {*} [options] Override http request option.
|
|
@@ -2047,6 +2109,33 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2047
2109
|
getAnalyticsBySport(requestParameters, options) {
|
|
2048
2110
|
return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
2049
2111
|
},
|
|
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
|
+
},
|
|
2050
2139
|
/**
|
|
2051
2140
|
* Récupère la liste des joueurs du club
|
|
2052
2141
|
* @param {*} [options] Override http request option.
|
|
@@ -2143,6 +2232,36 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2143
2232
|
getAnalyticsBySport(requestParameters, options) {
|
|
2144
2233
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
2145
2234
|
}
|
|
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
|
+
}
|
|
2146
2265
|
/**
|
|
2147
2266
|
* Récupère la liste des joueurs du club
|
|
2148
2267
|
* @param {*} [options] Override http request option.
|
|
@@ -2696,26 +2815,22 @@ exports.ClubRolesStaffApi = ClubRolesStaffApi;
|
|
|
2696
2815
|
const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
2697
2816
|
return {
|
|
2698
2817
|
/**
|
|
2699
|
-
*
|
|
2700
|
-
* @param {
|
|
2701
|
-
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
2818
|
+
*
|
|
2819
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
2702
2820
|
* @param {*} [options] Override http request option.
|
|
2703
2821
|
* @throws {RequiredError}
|
|
2704
2822
|
*/
|
|
2705
|
-
|
|
2706
|
-
// verify required parameter '
|
|
2707
|
-
(0, common_1.assertParamExists)('
|
|
2708
|
-
|
|
2709
|
-
(0, common_1.assertParamExists)('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
|
|
2710
|
-
const localVarPath = `/api/club-settings/{clubId}`
|
|
2711
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
2823
|
+
updateClubGeneralSettings: (updateClubGeneralSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubGeneralSettingsRequest_1, ...args_1], void 0, function* (updateClubGeneralSettingsRequest, options = {}) {
|
|
2824
|
+
// verify required parameter 'updateClubGeneralSettingsRequest' is not null or undefined
|
|
2825
|
+
(0, common_1.assertParamExists)('updateClubGeneralSettings', 'updateClubGeneralSettingsRequest', updateClubGeneralSettingsRequest);
|
|
2826
|
+
const localVarPath = `/api/club-settings/settings/general`;
|
|
2712
2827
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2713
2828
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2714
2829
|
let baseOptions;
|
|
2715
2830
|
if (configuration) {
|
|
2716
2831
|
baseOptions = configuration.baseOptions;
|
|
2717
2832
|
}
|
|
2718
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2833
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2719
2834
|
const localVarHeaderParameter = {};
|
|
2720
2835
|
const localVarQueryParameter = {};
|
|
2721
2836
|
// authentication bearerAuth required
|
|
@@ -2725,18 +2840,21 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
2725
2840
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2726
2841
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2727
2842
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2728
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
2843
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubGeneralSettingsRequest, localVarRequestOptions, configuration);
|
|
2729
2844
|
return {
|
|
2730
2845
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2731
2846
|
options: localVarRequestOptions,
|
|
2732
2847
|
};
|
|
2733
2848
|
}),
|
|
2734
2849
|
/**
|
|
2735
|
-
*
|
|
2850
|
+
* Met à jour les paramètres d\'un club
|
|
2851
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
2736
2852
|
* @param {*} [options] Override http request option.
|
|
2737
2853
|
* @throws {RequiredError}
|
|
2738
2854
|
*/
|
|
2739
|
-
|
|
2855
|
+
updateClubSettings: (updateClubReservationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubReservationSettingsRequest_1, ...args_1], void 0, function* (updateClubReservationSettingsRequest, options = {}) {
|
|
2856
|
+
// verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
|
|
2857
|
+
(0, common_1.assertParamExists)('updateClubSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest);
|
|
2740
2858
|
const localVarPath = `/api/club-settings`;
|
|
2741
2859
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2742
2860
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2744,57 +2862,64 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
2744
2862
|
if (configuration) {
|
|
2745
2863
|
baseOptions = configuration.baseOptions;
|
|
2746
2864
|
}
|
|
2747
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2865
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2748
2866
|
const localVarHeaderParameter = {};
|
|
2749
2867
|
const localVarQueryParameter = {};
|
|
2750
2868
|
// authentication bearerAuth required
|
|
2751
2869
|
// http bearer authentication required
|
|
2752
2870
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2871
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2753
2872
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2754
2873
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2755
2874
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2875
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
|
|
2756
2876
|
return {
|
|
2757
2877
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2758
2878
|
options: localVarRequestOptions,
|
|
2759
2879
|
};
|
|
2760
2880
|
}),
|
|
2761
2881
|
/**
|
|
2762
|
-
*
|
|
2882
|
+
*
|
|
2883
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
2763
2884
|
* @param {*} [options] Override http request option.
|
|
2764
2885
|
* @throws {RequiredError}
|
|
2765
2886
|
*/
|
|
2766
|
-
|
|
2767
|
-
|
|
2887
|
+
updateHoursSettings: (updateClubHoursSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubHoursSettingsRequest_1, ...args_1], void 0, function* (updateClubHoursSettingsRequest, options = {}) {
|
|
2888
|
+
// verify required parameter 'updateClubHoursSettingsRequest' is not null or undefined
|
|
2889
|
+
(0, common_1.assertParamExists)('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
|
|
2890
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
2768
2891
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2769
2892
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2770
2893
|
let baseOptions;
|
|
2771
2894
|
if (configuration) {
|
|
2772
2895
|
baseOptions = configuration.baseOptions;
|
|
2773
2896
|
}
|
|
2774
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2897
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2775
2898
|
const localVarHeaderParameter = {};
|
|
2776
2899
|
const localVarQueryParameter = {};
|
|
2777
2900
|
// authentication bearerAuth required
|
|
2778
2901
|
// http bearer authentication required
|
|
2779
2902
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2903
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2780
2904
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2781
2905
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2782
2906
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2907
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
|
|
2783
2908
|
return {
|
|
2784
2909
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2785
2910
|
options: localVarRequestOptions,
|
|
2786
2911
|
};
|
|
2787
2912
|
}),
|
|
2788
2913
|
/**
|
|
2789
|
-
*
|
|
2790
|
-
* @param {
|
|
2914
|
+
*
|
|
2915
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
2791
2916
|
* @param {*} [options] Override http request option.
|
|
2792
2917
|
* @throws {RequiredError}
|
|
2793
2918
|
*/
|
|
2794
|
-
|
|
2795
|
-
// verify required parameter '
|
|
2796
|
-
(0, common_1.assertParamExists)('
|
|
2797
|
-
const localVarPath = `/api/club-settings`;
|
|
2919
|
+
updateReservationSettings: (updateClubReservationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubReservationSettingsRequest_1, ...args_1], void 0, function* (updateClubReservationSettingsRequest, options = {}) {
|
|
2920
|
+
// verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
|
|
2921
|
+
(0, common_1.assertParamExists)('updateReservationSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest);
|
|
2922
|
+
const localVarPath = `/api/club-settings/reservation`;
|
|
2798
2923
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2799
2924
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2800
2925
|
let baseOptions;
|
|
@@ -2811,7 +2936,7 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
2811
2936
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2812
2937
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2813
2938
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2814
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
2939
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
|
|
2815
2940
|
return {
|
|
2816
2941
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2817
2942
|
options: localVarRequestOptions,
|
|
@@ -2828,61 +2953,62 @@ const ClubSettingsManagerApiFp = function (configuration) {
|
|
|
2828
2953
|
const localVarAxiosParamCreator = (0, exports.ClubSettingsManagerApiAxiosParamCreator)(configuration);
|
|
2829
2954
|
return {
|
|
2830
2955
|
/**
|
|
2831
|
-
*
|
|
2832
|
-
* @param {
|
|
2833
|
-
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
2956
|
+
*
|
|
2957
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
2834
2958
|
* @param {*} [options] Override http request option.
|
|
2835
2959
|
* @throws {RequiredError}
|
|
2836
2960
|
*/
|
|
2837
|
-
|
|
2961
|
+
updateClubGeneralSettings(updateClubGeneralSettingsRequest, options) {
|
|
2838
2962
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2839
2963
|
var _a, _b, _c;
|
|
2840
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2964
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
|
|
2841
2965
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2842
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.
|
|
2966
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2843
2967
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2844
2968
|
});
|
|
2845
2969
|
},
|
|
2846
2970
|
/**
|
|
2847
|
-
*
|
|
2971
|
+
* Met à jour les paramètres d\'un club
|
|
2972
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
2848
2973
|
* @param {*} [options] Override http request option.
|
|
2849
2974
|
* @throws {RequiredError}
|
|
2850
2975
|
*/
|
|
2851
|
-
|
|
2976
|
+
updateClubSettings(updateClubReservationSettingsRequest, options) {
|
|
2852
2977
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2853
2978
|
var _a, _b, _c;
|
|
2854
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2979
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubSettings(updateClubReservationSettingsRequest, options);
|
|
2855
2980
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2856
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.
|
|
2981
|
+
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;
|
|
2857
2982
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2858
2983
|
});
|
|
2859
2984
|
},
|
|
2860
2985
|
/**
|
|
2861
|
-
*
|
|
2986
|
+
*
|
|
2987
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
2862
2988
|
* @param {*} [options] Override http request option.
|
|
2863
2989
|
* @throws {RequiredError}
|
|
2864
2990
|
*/
|
|
2865
|
-
|
|
2991
|
+
updateHoursSettings(updateClubHoursSettingsRequest, options) {
|
|
2866
2992
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2867
2993
|
var _a, _b, _c;
|
|
2868
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2994
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
|
|
2869
2995
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2870
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.
|
|
2996
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2871
2997
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2872
2998
|
});
|
|
2873
2999
|
},
|
|
2874
3000
|
/**
|
|
2875
|
-
*
|
|
2876
|
-
* @param {
|
|
3001
|
+
*
|
|
3002
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
2877
3003
|
* @param {*} [options] Override http request option.
|
|
2878
3004
|
* @throws {RequiredError}
|
|
2879
3005
|
*/
|
|
2880
|
-
|
|
3006
|
+
updateReservationSettings(updateClubReservationSettingsRequest, options) {
|
|
2881
3007
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2882
3008
|
var _a, _b, _c;
|
|
2883
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3009
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
|
|
2884
3010
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2885
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.
|
|
3011
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2886
3012
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2887
3013
|
});
|
|
2888
3014
|
},
|
|
@@ -2897,38 +3023,40 @@ const ClubSettingsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
2897
3023
|
const localVarFp = (0, exports.ClubSettingsManagerApiFp)(configuration);
|
|
2898
3024
|
return {
|
|
2899
3025
|
/**
|
|
2900
|
-
*
|
|
2901
|
-
* @param {
|
|
3026
|
+
*
|
|
3027
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
2902
3028
|
* @param {*} [options] Override http request option.
|
|
2903
3029
|
* @throws {RequiredError}
|
|
2904
3030
|
*/
|
|
2905
|
-
|
|
2906
|
-
return localVarFp.
|
|
3031
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
3032
|
+
return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2907
3033
|
},
|
|
2908
3034
|
/**
|
|
2909
|
-
*
|
|
3035
|
+
* Met à jour les paramètres d\'un club
|
|
3036
|
+
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
2910
3037
|
* @param {*} [options] Override http request option.
|
|
2911
3038
|
* @throws {RequiredError}
|
|
2912
3039
|
*/
|
|
2913
|
-
|
|
2914
|
-
return localVarFp.
|
|
3040
|
+
updateClubSettings(requestParameters, options) {
|
|
3041
|
+
return localVarFp.updateClubSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2915
3042
|
},
|
|
2916
3043
|
/**
|
|
2917
|
-
*
|
|
3044
|
+
*
|
|
3045
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
2918
3046
|
* @param {*} [options] Override http request option.
|
|
2919
3047
|
* @throws {RequiredError}
|
|
2920
3048
|
*/
|
|
2921
|
-
|
|
2922
|
-
return localVarFp.
|
|
3049
|
+
updateHoursSettings(requestParameters, options) {
|
|
3050
|
+
return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2923
3051
|
},
|
|
2924
3052
|
/**
|
|
2925
|
-
*
|
|
2926
|
-
* @param {
|
|
3053
|
+
*
|
|
3054
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
2927
3055
|
* @param {*} [options] Override http request option.
|
|
2928
3056
|
* @throws {RequiredError}
|
|
2929
3057
|
*/
|
|
2930
|
-
|
|
2931
|
-
return localVarFp.
|
|
3058
|
+
updateReservationSettings(requestParameters, options) {
|
|
3059
|
+
return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2932
3060
|
},
|
|
2933
3061
|
};
|
|
2934
3062
|
};
|
|
@@ -2941,45 +3069,259 @@ exports.ClubSettingsManagerApiFactory = ClubSettingsManagerApiFactory;
|
|
|
2941
3069
|
*/
|
|
2942
3070
|
class ClubSettingsManagerApi extends base_1.BaseAPI {
|
|
2943
3071
|
/**
|
|
2944
|
-
*
|
|
2945
|
-
* @param {
|
|
3072
|
+
*
|
|
3073
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
2946
3074
|
* @param {*} [options] Override http request option.
|
|
2947
3075
|
* @throws {RequiredError}
|
|
2948
3076
|
* @memberof ClubSettingsManagerApi
|
|
2949
3077
|
*/
|
|
2950
|
-
|
|
2951
|
-
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).
|
|
3078
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
3079
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2952
3080
|
}
|
|
2953
3081
|
/**
|
|
2954
|
-
*
|
|
3082
|
+
* Met à jour les paramètres d\'un club
|
|
3083
|
+
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
2955
3084
|
* @param {*} [options] Override http request option.
|
|
2956
3085
|
* @throws {RequiredError}
|
|
2957
3086
|
* @memberof ClubSettingsManagerApi
|
|
2958
3087
|
*/
|
|
2959
|
-
|
|
2960
|
-
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).
|
|
3088
|
+
updateClubSettings(requestParameters, options) {
|
|
3089
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2961
3090
|
}
|
|
2962
3091
|
/**
|
|
2963
|
-
*
|
|
3092
|
+
*
|
|
3093
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
2964
3094
|
* @param {*} [options] Override http request option.
|
|
2965
3095
|
* @throws {RequiredError}
|
|
2966
3096
|
* @memberof ClubSettingsManagerApi
|
|
2967
3097
|
*/
|
|
2968
|
-
|
|
2969
|
-
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).
|
|
3098
|
+
updateHoursSettings(requestParameters, options) {
|
|
3099
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2970
3100
|
}
|
|
2971
3101
|
/**
|
|
2972
|
-
*
|
|
2973
|
-
* @param {
|
|
3102
|
+
*
|
|
3103
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
2974
3104
|
* @param {*} [options] Override http request option.
|
|
2975
3105
|
* @throws {RequiredError}
|
|
2976
3106
|
* @memberof ClubSettingsManagerApi
|
|
2977
3107
|
*/
|
|
2978
|
-
|
|
2979
|
-
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).
|
|
3108
|
+
updateReservationSettings(requestParameters, options) {
|
|
3109
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2980
3110
|
}
|
|
2981
3111
|
}
|
|
2982
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 {
|
|
3296
|
+
/**
|
|
3297
|
+
*
|
|
3298
|
+
* @param {*} [options] Override http request option.
|
|
3299
|
+
* @throws {RequiredError}
|
|
3300
|
+
* @memberof ClubSettingsStaffApi
|
|
3301
|
+
*/
|
|
3302
|
+
getClubGeneralSettings(options) {
|
|
3303
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3304
|
+
}
|
|
3305
|
+
/**
|
|
3306
|
+
*
|
|
3307
|
+
* @param {*} [options] Override http request option.
|
|
3308
|
+
* @throws {RequiredError}
|
|
3309
|
+
* @memberof ClubSettingsStaffApi
|
|
3310
|
+
*/
|
|
3311
|
+
getHoursSettings(options) {
|
|
3312
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3313
|
+
}
|
|
3314
|
+
/**
|
|
3315
|
+
*
|
|
3316
|
+
* @param {*} [options] Override http request option.
|
|
3317
|
+
* @throws {RequiredError}
|
|
3318
|
+
* @memberof ClubSettingsStaffApi
|
|
3319
|
+
*/
|
|
3320
|
+
getReservationSettings(options) {
|
|
3321
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3322
|
+
}
|
|
3323
|
+
}
|
|
3324
|
+
exports.ClubSettingsStaffApi = ClubSettingsStaffApi;
|
|
2983
3325
|
/**
|
|
2984
3326
|
* ClubsApi - axios parameter creator
|
|
2985
3327
|
* @export
|
|
@@ -4271,6 +4613,38 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4271
4613
|
options: localVarRequestOptions,
|
|
4272
4614
|
};
|
|
4273
4615
|
}),
|
|
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
|
+
}),
|
|
4274
4648
|
/**
|
|
4275
4649
|
*
|
|
4276
4650
|
* @param {string} courtId
|
|
@@ -4594,6 +4968,21 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
4594
4968
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4595
4969
|
});
|
|
4596
4970
|
},
|
|
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
|
+
},
|
|
4597
4986
|
/**
|
|
4598
4987
|
*
|
|
4599
4988
|
* @param {string} courtId
|
|
@@ -4779,6 +5168,15 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
4779
5168
|
updateClubInfos(requestParameters, options) {
|
|
4780
5169
|
return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
4781
5170
|
},
|
|
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
|
+
},
|
|
4782
5180
|
/**
|
|
4783
5181
|
*
|
|
4784
5182
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -4966,6 +5364,16 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
4966
5364
|
updateClubInfos(requestParameters, options) {
|
|
4967
5365
|
return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
4968
5366
|
}
|
|
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
|
+
}
|
|
4969
5377
|
/**
|
|
4970
5378
|
*
|
|
4971
5379
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -4999,8 +5407,35 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
4999
5407
|
* @param {*} [options] Override http request option.
|
|
5000
5408
|
* @throws {RequiredError}
|
|
5001
5409
|
*/
|
|
5002
|
-
getActualities: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5003
|
-
const localVarPath = `/api/clubs/staff/actualities`;
|
|
5410
|
+
getActualities: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5411
|
+
const localVarPath = `/api/clubs/staff/actualities`;
|
|
5412
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5413
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5414
|
+
let baseOptions;
|
|
5415
|
+
if (configuration) {
|
|
5416
|
+
baseOptions = configuration.baseOptions;
|
|
5417
|
+
}
|
|
5418
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5419
|
+
const localVarHeaderParameter = {};
|
|
5420
|
+
const localVarQueryParameter = {};
|
|
5421
|
+
// authentication bearerAuth required
|
|
5422
|
+
// http bearer authentication required
|
|
5423
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5424
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5425
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5426
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5427
|
+
return {
|
|
5428
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5429
|
+
options: localVarRequestOptions,
|
|
5430
|
+
};
|
|
5431
|
+
}),
|
|
5432
|
+
/**
|
|
5433
|
+
*
|
|
5434
|
+
* @param {*} [options] Override http request option.
|
|
5435
|
+
* @throws {RequiredError}
|
|
5436
|
+
*/
|
|
5437
|
+
getClubInfos: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5438
|
+
const localVarPath = `/api/clubs/infos`;
|
|
5004
5439
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5005
5440
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5006
5441
|
let baseOptions;
|
|
@@ -5022,12 +5457,12 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
5022
5457
|
};
|
|
5023
5458
|
}),
|
|
5024
5459
|
/**
|
|
5025
|
-
*
|
|
5460
|
+
* Récupère les membres d\'un club
|
|
5026
5461
|
* @param {*} [options] Override http request option.
|
|
5027
5462
|
* @throws {RequiredError}
|
|
5028
5463
|
*/
|
|
5029
|
-
|
|
5030
|
-
const localVarPath = `/api/clubs/
|
|
5464
|
+
getClubMembers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5465
|
+
const localVarPath = `/api/clubs/members`;
|
|
5031
5466
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5032
5467
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5033
5468
|
let baseOptions;
|
|
@@ -5049,12 +5484,12 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
5049
5484
|
};
|
|
5050
5485
|
}),
|
|
5051
5486
|
/**
|
|
5052
|
-
*
|
|
5487
|
+
*
|
|
5053
5488
|
* @param {*} [options] Override http request option.
|
|
5054
5489
|
* @throws {RequiredError}
|
|
5055
5490
|
*/
|
|
5056
|
-
|
|
5057
|
-
const localVarPath = `/api/clubs/
|
|
5491
|
+
getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5492
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
5058
5493
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5059
5494
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5060
5495
|
let baseOptions;
|
|
@@ -5239,6 +5674,20 @@ const ClubsStaffApiFp = function (configuration) {
|
|
|
5239
5674
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5240
5675
|
});
|
|
5241
5676
|
},
|
|
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
|
+
},
|
|
5242
5691
|
/**
|
|
5243
5692
|
* Récupère les rôles d\'un club
|
|
5244
5693
|
* @param {*} [options] Override http request option.
|
|
@@ -5330,6 +5779,14 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
5330
5779
|
getClubMembers(options) {
|
|
5331
5780
|
return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
|
|
5332
5781
|
},
|
|
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
|
+
},
|
|
5333
5790
|
/**
|
|
5334
5791
|
* Récupère les rôles d\'un club
|
|
5335
5792
|
* @param {*} [options] Override http request option.
|
|
@@ -5400,6 +5857,15 @@ class ClubsStaffApi extends base_1.BaseAPI {
|
|
|
5400
5857
|
getClubMembers(options) {
|
|
5401
5858
|
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
|
|
5402
5859
|
}
|
|
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
|
+
}
|
|
5403
5869
|
/**
|
|
5404
5870
|
* Récupère les rôles d\'un club
|
|
5405
5871
|
* @param {*} [options] Override http request option.
|
|
@@ -6574,99 +7040,6 @@ class SportsManagerApi extends base_1.BaseAPI {
|
|
|
6574
7040
|
}
|
|
6575
7041
|
}
|
|
6576
7042
|
exports.SportsManagerApi = SportsManagerApi;
|
|
6577
|
-
/**
|
|
6578
|
-
* SportsPublicApi - axios parameter creator
|
|
6579
|
-
* @export
|
|
6580
|
-
*/
|
|
6581
|
-
const SportsPublicApiAxiosParamCreator = function (configuration) {
|
|
6582
|
-
return {
|
|
6583
|
-
/**
|
|
6584
|
-
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6585
|
-
* @param {*} [options] Override http request option.
|
|
6586
|
-
* @throws {RequiredError}
|
|
6587
|
-
*/
|
|
6588
|
-
getVerifiedSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6589
|
-
const localVarPath = `/api/sports/verified`;
|
|
6590
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6591
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6592
|
-
let baseOptions;
|
|
6593
|
-
if (configuration) {
|
|
6594
|
-
baseOptions = configuration.baseOptions;
|
|
6595
|
-
}
|
|
6596
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6597
|
-
const localVarHeaderParameter = {};
|
|
6598
|
-
const localVarQueryParameter = {};
|
|
6599
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6600
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6601
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6602
|
-
return {
|
|
6603
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6604
|
-
options: localVarRequestOptions,
|
|
6605
|
-
};
|
|
6606
|
-
}),
|
|
6607
|
-
};
|
|
6608
|
-
};
|
|
6609
|
-
exports.SportsPublicApiAxiosParamCreator = SportsPublicApiAxiosParamCreator;
|
|
6610
|
-
/**
|
|
6611
|
-
* SportsPublicApi - functional programming interface
|
|
6612
|
-
* @export
|
|
6613
|
-
*/
|
|
6614
|
-
const SportsPublicApiFp = function (configuration) {
|
|
6615
|
-
const localVarAxiosParamCreator = (0, exports.SportsPublicApiAxiosParamCreator)(configuration);
|
|
6616
|
-
return {
|
|
6617
|
-
/**
|
|
6618
|
-
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6619
|
-
* @param {*} [options] Override http request option.
|
|
6620
|
-
* @throws {RequiredError}
|
|
6621
|
-
*/
|
|
6622
|
-
getVerifiedSports(options) {
|
|
6623
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6624
|
-
var _a, _b, _c;
|
|
6625
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getVerifiedSports(options);
|
|
6626
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6627
|
-
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;
|
|
6628
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6629
|
-
});
|
|
6630
|
-
},
|
|
6631
|
-
};
|
|
6632
|
-
};
|
|
6633
|
-
exports.SportsPublicApiFp = SportsPublicApiFp;
|
|
6634
|
-
/**
|
|
6635
|
-
* SportsPublicApi - factory interface
|
|
6636
|
-
* @export
|
|
6637
|
-
*/
|
|
6638
|
-
const SportsPublicApiFactory = function (configuration, basePath, axios) {
|
|
6639
|
-
const localVarFp = (0, exports.SportsPublicApiFp)(configuration);
|
|
6640
|
-
return {
|
|
6641
|
-
/**
|
|
6642
|
-
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6643
|
-
* @param {*} [options] Override http request option.
|
|
6644
|
-
* @throws {RequiredError}
|
|
6645
|
-
*/
|
|
6646
|
-
getVerifiedSports(options) {
|
|
6647
|
-
return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
|
|
6648
|
-
},
|
|
6649
|
-
};
|
|
6650
|
-
};
|
|
6651
|
-
exports.SportsPublicApiFactory = SportsPublicApiFactory;
|
|
6652
|
-
/**
|
|
6653
|
-
* SportsPublicApi - object-oriented interface
|
|
6654
|
-
* @export
|
|
6655
|
-
* @class SportsPublicApi
|
|
6656
|
-
* @extends {BaseAPI}
|
|
6657
|
-
*/
|
|
6658
|
-
class SportsPublicApi extends base_1.BaseAPI {
|
|
6659
|
-
/**
|
|
6660
|
-
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6661
|
-
* @param {*} [options] Override http request option.
|
|
6662
|
-
* @throws {RequiredError}
|
|
6663
|
-
* @memberof SportsPublicApi
|
|
6664
|
-
*/
|
|
6665
|
-
getVerifiedSports(options) {
|
|
6666
|
-
return (0, exports.SportsPublicApiFp)(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
|
|
6667
|
-
}
|
|
6668
|
-
}
|
|
6669
|
-
exports.SportsPublicApi = SportsPublicApi;
|
|
6670
7043
|
/**
|
|
6671
7044
|
* SportsStaffApi - axios parameter creator
|
|
6672
7045
|
* @export
|
|
@@ -7598,6 +7971,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7598
7971
|
options: localVarRequestOptions,
|
|
7599
7972
|
};
|
|
7600
7973
|
}),
|
|
7974
|
+
/**
|
|
7975
|
+
*
|
|
7976
|
+
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
7977
|
+
* @param {*} [options] Override http request option.
|
|
7978
|
+
* @throws {RequiredError}
|
|
7979
|
+
*/
|
|
7980
|
+
addPaymentMethodSetup: (addPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodRequestBody_1, ...args_1], void 0, function* (addPaymentMethodRequestBody, options = {}) {
|
|
7981
|
+
// verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
|
|
7982
|
+
(0, common_1.assertParamExists)('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody);
|
|
7983
|
+
const localVarPath = `/api/users/addPaymentMethodSetup`;
|
|
7984
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7985
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7986
|
+
let baseOptions;
|
|
7987
|
+
if (configuration) {
|
|
7988
|
+
baseOptions = configuration.baseOptions;
|
|
7989
|
+
}
|
|
7990
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7991
|
+
const localVarHeaderParameter = {};
|
|
7992
|
+
const localVarQueryParameter = {};
|
|
7993
|
+
// authentication bearerAuth required
|
|
7994
|
+
// http bearer authentication required
|
|
7995
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7996
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7997
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7998
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7999
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8000
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
8001
|
+
return {
|
|
8002
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8003
|
+
options: localVarRequestOptions,
|
|
8004
|
+
};
|
|
8005
|
+
}),
|
|
7601
8006
|
/**
|
|
7602
8007
|
*
|
|
7603
8008
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -7630,6 +8035,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7630
8035
|
options: localVarRequestOptions,
|
|
7631
8036
|
};
|
|
7632
8037
|
}),
|
|
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
|
+
}),
|
|
7633
8070
|
/**
|
|
7634
8071
|
*
|
|
7635
8072
|
* @param {*} [options] Override http request option.
|
|
@@ -8399,6 +8836,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8399
8836
|
options: localVarRequestOptions,
|
|
8400
8837
|
};
|
|
8401
8838
|
}),
|
|
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
|
+
}),
|
|
8402
8871
|
/**
|
|
8403
8872
|
*
|
|
8404
8873
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -8669,6 +9138,21 @@ const UsersApiFp = function (configuration) {
|
|
|
8669
9138
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8670
9139
|
});
|
|
8671
9140
|
},
|
|
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
|
+
},
|
|
8672
9156
|
/**
|
|
8673
9157
|
*
|
|
8674
9158
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -8684,6 +9168,21 @@ const UsersApiFp = function (configuration) {
|
|
|
8684
9168
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8685
9169
|
});
|
|
8686
9170
|
},
|
|
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
|
+
},
|
|
8687
9186
|
/**
|
|
8688
9187
|
*
|
|
8689
9188
|
* @param {*} [options] Override http request option.
|
|
@@ -9054,6 +9553,21 @@ const UsersApiFp = function (configuration) {
|
|
|
9054
9553
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9055
9554
|
});
|
|
9056
9555
|
},
|
|
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
|
+
},
|
|
9057
9571
|
/**
|
|
9058
9572
|
*
|
|
9059
9573
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -9196,6 +9710,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9196
9710
|
addOrganization(requestParameters, options) {
|
|
9197
9711
|
return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
9198
9712
|
},
|
|
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
|
+
},
|
|
9199
9722
|
/**
|
|
9200
9723
|
*
|
|
9201
9724
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -9205,6 +9728,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9205
9728
|
changePassword(requestParameters, options) {
|
|
9206
9729
|
return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
|
|
9207
9730
|
},
|
|
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
|
+
},
|
|
9208
9740
|
/**
|
|
9209
9741
|
*
|
|
9210
9742
|
* @param {*} [options] Override http request option.
|
|
@@ -9413,6 +9945,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9413
9945
|
resetPassword(requestParameters, options) {
|
|
9414
9946
|
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
9415
9947
|
},
|
|
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
|
+
},
|
|
9416
9957
|
/**
|
|
9417
9958
|
*
|
|
9418
9959
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
@@ -9516,6 +10057,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
9516
10057
|
addOrganization(requestParameters, options) {
|
|
9517
10058
|
return (0, exports.UsersApiFp)(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9518
10059
|
}
|
|
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
|
+
}
|
|
9519
10070
|
/**
|
|
9520
10071
|
*
|
|
9521
10072
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -9526,6 +10077,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
9526
10077
|
changePassword(requestParameters, options) {
|
|
9527
10078
|
return (0, exports.UsersApiFp)(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9528
10079
|
}
|
|
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
|
+
}
|
|
9529
10090
|
/**
|
|
9530
10091
|
*
|
|
9531
10092
|
* @param {*} [options] Override http request option.
|
|
@@ -9758,6 +10319,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
9758
10319
|
resetPassword(requestParameters, options) {
|
|
9759
10320
|
return (0, exports.UsersApiFp)(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9760
10321
|
}
|
|
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
|
+
}
|
|
9761
10332
|
/**
|
|
9762
10333
|
*
|
|
9763
10334
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|