@tennac-booking/sdk 1.0.101 → 1.0.103
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 +28 -8
- package/README.md +46 -16
- package/api.ts +8004 -6457
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1692 -545
- package/dist/api.js +883 -266
- 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 +1692 -545
- package/dist/esm/api.js +871 -254
- 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/AddClubMemberRequest.md +7 -1
- package/docs/BookingPopulated.md +3 -3
- package/docs/ClientAccountOnboardingRequest.md +2 -2
- package/docs/ClientAccountsApi.md +1 -1
- package/docs/ClubAnalyticsStaffApi.md +314 -0
- package/docs/{AddCreditsToCustomer200Response.md → ClubDaySchedule.md} +7 -5
- 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 +26 -0
- package/docs/ClubResponse.md +2 -0
- package/docs/ClubSettingsManagerApi.md +54 -60
- package/docs/ClubSettingsStaffApi.md +183 -0
- package/docs/ClubWeeklySchedule.md +32 -0
- package/docs/ClubsManagerApi.md +52 -58
- package/docs/ClubsStaffApi.md +44 -0
- package/docs/CourtBookingShareItem.md +26 -0
- package/docs/CourtResponse.md +1 -1
- package/docs/CreateCourtRequest.md +1 -1
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventResponse.md +1 -1
- package/docs/PartialClubResponse.md +2 -0
- package/docs/PartialClubWeeklySchedule.md +33 -0
- package/docs/RetentionRateResponse.md +24 -0
- package/docs/RevenueBySportItem.md +24 -0
- package/docs/SlotInfo.md +2 -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/UserClubMembership.md +2 -0
- package/docs/UserInfo.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AddCreditsToCustomerRequest.md +0 -22
- package/docs/ClubSettingsResponse.md +0 -39
- package/docs/CreateClubSettingsRequest.md +0 -34
- package/docs/DeleteClubSettingsResponse.md +0 -20
- package/docs/EventResponseCourtsInner.md +0 -18
- package/docs/SportsStaffApi.md +0 -55
- package/docs/UpdateClubSettingsRequest.md +0 -32
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.100
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,8 +23,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientAccountOnboardingRequestSubscriptionTypeEnum = exports.ClientAccountOnboardingRequestBusinessTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
-
exports.
|
|
27
|
-
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.
|
|
26
|
+
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.ClientAccountsApi = exports.ClientAccountsApiFactory = exports.ClientAccountsApiFp = exports.ClientAccountsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = void 0;
|
|
27
|
+
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.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = void 0;
|
|
28
28
|
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
@@ -1724,7 +1724,7 @@ const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1724
1724
|
* @throws {RequiredError}
|
|
1725
1725
|
*/
|
|
1726
1726
|
listAvailablePrices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1727
|
-
const localVarPath = `/client-accounts/available-prices`;
|
|
1727
|
+
const localVarPath = `/client-accounts/plans/available-prices`;
|
|
1728
1728
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1729
1729
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1730
1730
|
let baseOptions;
|
|
@@ -2286,6 +2286,107 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2286
2286
|
options: localVarRequestOptions,
|
|
2287
2287
|
};
|
|
2288
2288
|
}),
|
|
2289
|
+
/**
|
|
2290
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2291
|
+
* @param {string} playerId
|
|
2292
|
+
* @param {number} [page]
|
|
2293
|
+
* @param {number} [pageSize]
|
|
2294
|
+
* @param {*} [options] Override http request option.
|
|
2295
|
+
* @throws {RequiredError}
|
|
2296
|
+
*/
|
|
2297
|
+
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 = {}) {
|
|
2298
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
2299
|
+
(0, common_1.assertParamExists)('getClubPlayerBookingsById', 'playerId', playerId);
|
|
2300
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
2301
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2302
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2303
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2304
|
+
let baseOptions;
|
|
2305
|
+
if (configuration) {
|
|
2306
|
+
baseOptions = configuration.baseOptions;
|
|
2307
|
+
}
|
|
2308
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2309
|
+
const localVarHeaderParameter = {};
|
|
2310
|
+
const localVarQueryParameter = {};
|
|
2311
|
+
// authentication bearerAuth required
|
|
2312
|
+
// http bearer authentication required
|
|
2313
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2314
|
+
if (page !== undefined) {
|
|
2315
|
+
localVarQueryParameter['page'] = page;
|
|
2316
|
+
}
|
|
2317
|
+
if (pageSize !== undefined) {
|
|
2318
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2319
|
+
}
|
|
2320
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2321
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2322
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2323
|
+
return {
|
|
2324
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2325
|
+
options: localVarRequestOptions,
|
|
2326
|
+
};
|
|
2327
|
+
}),
|
|
2328
|
+
/**
|
|
2329
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2330
|
+
* @param {string} playerId
|
|
2331
|
+
* @param {*} [options] Override http request option.
|
|
2332
|
+
* @throws {RequiredError}
|
|
2333
|
+
*/
|
|
2334
|
+
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
2335
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
2336
|
+
(0, common_1.assertParamExists)('getClubPlayerById', 'playerId', playerId);
|
|
2337
|
+
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
2338
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2339
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2340
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2341
|
+
let baseOptions;
|
|
2342
|
+
if (configuration) {
|
|
2343
|
+
baseOptions = configuration.baseOptions;
|
|
2344
|
+
}
|
|
2345
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2346
|
+
const localVarHeaderParameter = {};
|
|
2347
|
+
const localVarQueryParameter = {};
|
|
2348
|
+
// authentication bearerAuth required
|
|
2349
|
+
// http bearer authentication required
|
|
2350
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2351
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2352
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2353
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2354
|
+
return {
|
|
2355
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2356
|
+
options: localVarRequestOptions,
|
|
2357
|
+
};
|
|
2358
|
+
}),
|
|
2359
|
+
/**
|
|
2360
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2361
|
+
* @param {string} playerId
|
|
2362
|
+
* @param {*} [options] Override http request option.
|
|
2363
|
+
* @throws {RequiredError}
|
|
2364
|
+
*/
|
|
2365
|
+
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
2366
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
2367
|
+
(0, common_1.assertParamExists)('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
2368
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
2369
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2370
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2371
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2372
|
+
let baseOptions;
|
|
2373
|
+
if (configuration) {
|
|
2374
|
+
baseOptions = configuration.baseOptions;
|
|
2375
|
+
}
|
|
2376
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2377
|
+
const localVarHeaderParameter = {};
|
|
2378
|
+
const localVarQueryParameter = {};
|
|
2379
|
+
// authentication bearerAuth required
|
|
2380
|
+
// http bearer authentication required
|
|
2381
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2382
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2383
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2384
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2385
|
+
return {
|
|
2386
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2387
|
+
options: localVarRequestOptions,
|
|
2388
|
+
};
|
|
2389
|
+
}),
|
|
2289
2390
|
/**
|
|
2290
2391
|
* Récupère la liste des joueurs du club
|
|
2291
2392
|
* @param {*} [options] Override http request option.
|
|
@@ -2501,6 +2602,60 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2501
2602
|
options: localVarRequestOptions,
|
|
2502
2603
|
};
|
|
2503
2604
|
}),
|
|
2605
|
+
/**
|
|
2606
|
+
* Calcule le taux de fidélisation des joueurs
|
|
2607
|
+
* @param {*} [options] Override http request option.
|
|
2608
|
+
* @throws {RequiredError}
|
|
2609
|
+
*/
|
|
2610
|
+
getRetentionRate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2611
|
+
const localVarPath = `/api/club-analytics/retention-rate`;
|
|
2612
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2613
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2614
|
+
let baseOptions;
|
|
2615
|
+
if (configuration) {
|
|
2616
|
+
baseOptions = configuration.baseOptions;
|
|
2617
|
+
}
|
|
2618
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2619
|
+
const localVarHeaderParameter = {};
|
|
2620
|
+
const localVarQueryParameter = {};
|
|
2621
|
+
// authentication bearerAuth required
|
|
2622
|
+
// http bearer authentication required
|
|
2623
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2624
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2625
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2626
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2627
|
+
return {
|
|
2628
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2629
|
+
options: localVarRequestOptions,
|
|
2630
|
+
};
|
|
2631
|
+
}),
|
|
2632
|
+
/**
|
|
2633
|
+
* Récupère le chiffre d\'affaires par sport
|
|
2634
|
+
* @param {*} [options] Override http request option.
|
|
2635
|
+
* @throws {RequiredError}
|
|
2636
|
+
*/
|
|
2637
|
+
getRevenueBySport: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2638
|
+
const localVarPath = `/api/club-analytics/revenue-by-sport`;
|
|
2639
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2640
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2641
|
+
let baseOptions;
|
|
2642
|
+
if (configuration) {
|
|
2643
|
+
baseOptions = configuration.baseOptions;
|
|
2644
|
+
}
|
|
2645
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2646
|
+
const localVarHeaderParameter = {};
|
|
2647
|
+
const localVarQueryParameter = {};
|
|
2648
|
+
// authentication bearerAuth required
|
|
2649
|
+
// http bearer authentication required
|
|
2650
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2651
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2652
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2653
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2654
|
+
return {
|
|
2655
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2656
|
+
options: localVarRequestOptions,
|
|
2657
|
+
};
|
|
2658
|
+
}),
|
|
2504
2659
|
/**
|
|
2505
2660
|
* Récupère les 10 prochaines réservations
|
|
2506
2661
|
* @param {*} [options] Override http request option.
|
|
@@ -2528,6 +2683,33 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2528
2683
|
options: localVarRequestOptions,
|
|
2529
2684
|
};
|
|
2530
2685
|
}),
|
|
2686
|
+
/**
|
|
2687
|
+
* Classement des terrains les plus réservés
|
|
2688
|
+
* @param {*} [options] Override http request option.
|
|
2689
|
+
* @throws {RequiredError}
|
|
2690
|
+
*/
|
|
2691
|
+
getTopCourtsByBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2692
|
+
const localVarPath = `/api/club-analytics/top-courts`;
|
|
2693
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2694
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2695
|
+
let baseOptions;
|
|
2696
|
+
if (configuration) {
|
|
2697
|
+
baseOptions = configuration.baseOptions;
|
|
2698
|
+
}
|
|
2699
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2700
|
+
const localVarHeaderParameter = {};
|
|
2701
|
+
const localVarQueryParameter = {};
|
|
2702
|
+
// authentication bearerAuth required
|
|
2703
|
+
// http bearer authentication required
|
|
2704
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2705
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2706
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2707
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2708
|
+
return {
|
|
2709
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2710
|
+
options: localVarRequestOptions,
|
|
2711
|
+
};
|
|
2712
|
+
}),
|
|
2531
2713
|
/**
|
|
2532
2714
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2533
2715
|
* @param {string} year
|
|
@@ -2586,6 +2768,53 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2586
2768
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2587
2769
|
});
|
|
2588
2770
|
},
|
|
2771
|
+
/**
|
|
2772
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2773
|
+
* @param {string} playerId
|
|
2774
|
+
* @param {number} [page]
|
|
2775
|
+
* @param {number} [pageSize]
|
|
2776
|
+
* @param {*} [options] Override http request option.
|
|
2777
|
+
* @throws {RequiredError}
|
|
2778
|
+
*/
|
|
2779
|
+
getClubPlayerBookingsById(playerId, page, pageSize, options) {
|
|
2780
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2781
|
+
var _a, _b, _c;
|
|
2782
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, page, pageSize, options);
|
|
2783
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2784
|
+
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;
|
|
2785
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2786
|
+
});
|
|
2787
|
+
},
|
|
2788
|
+
/**
|
|
2789
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2790
|
+
* @param {string} playerId
|
|
2791
|
+
* @param {*} [options] Override http request option.
|
|
2792
|
+
* @throws {RequiredError}
|
|
2793
|
+
*/
|
|
2794
|
+
getClubPlayerById(playerId, options) {
|
|
2795
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2796
|
+
var _a, _b, _c;
|
|
2797
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
|
|
2798
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2799
|
+
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;
|
|
2800
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2801
|
+
});
|
|
2802
|
+
},
|
|
2803
|
+
/**
|
|
2804
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2805
|
+
* @param {string} playerId
|
|
2806
|
+
* @param {*} [options] Override http request option.
|
|
2807
|
+
* @throws {RequiredError}
|
|
2808
|
+
*/
|
|
2809
|
+
getClubPlayerStatisticsById(playerId, options) {
|
|
2810
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2811
|
+
var _a, _b, _c;
|
|
2812
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
|
|
2813
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2814
|
+
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;
|
|
2815
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2816
|
+
});
|
|
2817
|
+
},
|
|
2589
2818
|
/**
|
|
2590
2819
|
* Récupère la liste des joueurs du club
|
|
2591
2820
|
* @param {*} [options] Override http request option.
|
|
@@ -2689,6 +2918,34 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2689
2918
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2690
2919
|
});
|
|
2691
2920
|
},
|
|
2921
|
+
/**
|
|
2922
|
+
* Calcule le taux de fidélisation des joueurs
|
|
2923
|
+
* @param {*} [options] Override http request option.
|
|
2924
|
+
* @throws {RequiredError}
|
|
2925
|
+
*/
|
|
2926
|
+
getRetentionRate(options) {
|
|
2927
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2928
|
+
var _a, _b, _c;
|
|
2929
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRetentionRate(options);
|
|
2930
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2931
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getRetentionRate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2932
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2933
|
+
});
|
|
2934
|
+
},
|
|
2935
|
+
/**
|
|
2936
|
+
* Récupère le chiffre d\'affaires par sport
|
|
2937
|
+
* @param {*} [options] Override http request option.
|
|
2938
|
+
* @throws {RequiredError}
|
|
2939
|
+
*/
|
|
2940
|
+
getRevenueBySport(options) {
|
|
2941
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2942
|
+
var _a, _b, _c;
|
|
2943
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRevenueBySport(options);
|
|
2944
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2945
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getRevenueBySport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2946
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2947
|
+
});
|
|
2948
|
+
},
|
|
2692
2949
|
/**
|
|
2693
2950
|
* Récupère les 10 prochaines réservations
|
|
2694
2951
|
* @param {*} [options] Override http request option.
|
|
@@ -2703,6 +2960,20 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2703
2960
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2704
2961
|
});
|
|
2705
2962
|
},
|
|
2963
|
+
/**
|
|
2964
|
+
* Classement des terrains les plus réservés
|
|
2965
|
+
* @param {*} [options] Override http request option.
|
|
2966
|
+
* @throws {RequiredError}
|
|
2967
|
+
*/
|
|
2968
|
+
getTopCourtsByBookings(options) {
|
|
2969
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2970
|
+
var _a, _b, _c;
|
|
2971
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTopCourtsByBookings(options);
|
|
2972
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2973
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getTopCourtsByBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2974
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2975
|
+
});
|
|
2976
|
+
},
|
|
2706
2977
|
/**
|
|
2707
2978
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2708
2979
|
* @param {string} year
|
|
@@ -2737,6 +3008,33 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2737
3008
|
getAnalyticsBySport(requestParameters, options) {
|
|
2738
3009
|
return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
2739
3010
|
},
|
|
3011
|
+
/**
|
|
3012
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
3013
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
3014
|
+
* @param {*} [options] Override http request option.
|
|
3015
|
+
* @throws {RequiredError}
|
|
3016
|
+
*/
|
|
3017
|
+
getClubPlayerBookingsById(requestParameters, options) {
|
|
3018
|
+
return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
3019
|
+
},
|
|
3020
|
+
/**
|
|
3021
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
3022
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
3023
|
+
* @param {*} [options] Override http request option.
|
|
3024
|
+
* @throws {RequiredError}
|
|
3025
|
+
*/
|
|
3026
|
+
getClubPlayerById(requestParameters, options) {
|
|
3027
|
+
return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
3028
|
+
},
|
|
3029
|
+
/**
|
|
3030
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
3031
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
3032
|
+
* @param {*} [options] Override http request option.
|
|
3033
|
+
* @throws {RequiredError}
|
|
3034
|
+
*/
|
|
3035
|
+
getClubPlayerStatisticsById(requestParameters, options) {
|
|
3036
|
+
return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
3037
|
+
},
|
|
2740
3038
|
/**
|
|
2741
3039
|
* Récupère la liste des joueurs du club
|
|
2742
3040
|
* @param {*} [options] Override http request option.
|
|
@@ -2796,6 +3094,22 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2796
3094
|
getNumberOfClubUsers(options) {
|
|
2797
3095
|
return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
|
|
2798
3096
|
},
|
|
3097
|
+
/**
|
|
3098
|
+
* Calcule le taux de fidélisation des joueurs
|
|
3099
|
+
* @param {*} [options] Override http request option.
|
|
3100
|
+
* @throws {RequiredError}
|
|
3101
|
+
*/
|
|
3102
|
+
getRetentionRate(options) {
|
|
3103
|
+
return localVarFp.getRetentionRate(options).then((request) => request(axios, basePath));
|
|
3104
|
+
},
|
|
3105
|
+
/**
|
|
3106
|
+
* Récupère le chiffre d\'affaires par sport
|
|
3107
|
+
* @param {*} [options] Override http request option.
|
|
3108
|
+
* @throws {RequiredError}
|
|
3109
|
+
*/
|
|
3110
|
+
getRevenueBySport(options) {
|
|
3111
|
+
return localVarFp.getRevenueBySport(options).then((request) => request(axios, basePath));
|
|
3112
|
+
},
|
|
2799
3113
|
/**
|
|
2800
3114
|
* Récupère les 10 prochaines réservations
|
|
2801
3115
|
* @param {*} [options] Override http request option.
|
|
@@ -2804,6 +3118,14 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2804
3118
|
getTenNextBookings(options) {
|
|
2805
3119
|
return localVarFp.getTenNextBookings(options).then((request) => request(axios, basePath));
|
|
2806
3120
|
},
|
|
3121
|
+
/**
|
|
3122
|
+
* Classement des terrains les plus réservés
|
|
3123
|
+
* @param {*} [options] Override http request option.
|
|
3124
|
+
* @throws {RequiredError}
|
|
3125
|
+
*/
|
|
3126
|
+
getTopCourtsByBookings(options) {
|
|
3127
|
+
return localVarFp.getTopCourtsByBookings(options).then((request) => request(axios, basePath));
|
|
3128
|
+
},
|
|
2807
3129
|
/**
|
|
2808
3130
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2809
3131
|
* @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -2833,6 +3155,36 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2833
3155
|
getAnalyticsBySport(requestParameters, options) {
|
|
2834
3156
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
2835
3157
|
}
|
|
3158
|
+
/**
|
|
3159
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
3160
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
3161
|
+
* @param {*} [options] Override http request option.
|
|
3162
|
+
* @throws {RequiredError}
|
|
3163
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3164
|
+
*/
|
|
3165
|
+
getClubPlayerBookingsById(requestParameters, options) {
|
|
3166
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
3167
|
+
}
|
|
3168
|
+
/**
|
|
3169
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
3170
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
3171
|
+
* @param {*} [options] Override http request option.
|
|
3172
|
+
* @throws {RequiredError}
|
|
3173
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3174
|
+
*/
|
|
3175
|
+
getClubPlayerById(requestParameters, options) {
|
|
3176
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
3177
|
+
}
|
|
3178
|
+
/**
|
|
3179
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
3180
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
3181
|
+
* @param {*} [options] Override http request option.
|
|
3182
|
+
* @throws {RequiredError}
|
|
3183
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3184
|
+
*/
|
|
3185
|
+
getClubPlayerStatisticsById(requestParameters, options) {
|
|
3186
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
3187
|
+
}
|
|
2836
3188
|
/**
|
|
2837
3189
|
* Récupère la liste des joueurs du club
|
|
2838
3190
|
* @param {*} [options] Override http request option.
|
|
@@ -2900,14 +3252,41 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2900
3252
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
|
|
2901
3253
|
}
|
|
2902
3254
|
/**
|
|
2903
|
-
*
|
|
3255
|
+
* Calcule le taux de fidélisation des joueurs
|
|
2904
3256
|
* @param {*} [options] Override http request option.
|
|
2905
3257
|
* @throws {RequiredError}
|
|
2906
3258
|
* @memberof ClubAnalyticsStaffApi
|
|
2907
3259
|
*/
|
|
2908
|
-
|
|
3260
|
+
getRetentionRate(options) {
|
|
3261
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getRetentionRate(options).then((request) => request(this.axios, this.basePath));
|
|
3262
|
+
}
|
|
3263
|
+
/**
|
|
3264
|
+
* Récupère le chiffre d\'affaires par sport
|
|
3265
|
+
* @param {*} [options] Override http request option.
|
|
3266
|
+
* @throws {RequiredError}
|
|
3267
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3268
|
+
*/
|
|
3269
|
+
getRevenueBySport(options) {
|
|
3270
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getRevenueBySport(options).then((request) => request(this.axios, this.basePath));
|
|
3271
|
+
}
|
|
3272
|
+
/**
|
|
3273
|
+
* Récupère les 10 prochaines réservations
|
|
3274
|
+
* @param {*} [options] Override http request option.
|
|
3275
|
+
* @throws {RequiredError}
|
|
3276
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3277
|
+
*/
|
|
3278
|
+
getTenNextBookings(options) {
|
|
2909
3279
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getTenNextBookings(options).then((request) => request(this.axios, this.basePath));
|
|
2910
3280
|
}
|
|
3281
|
+
/**
|
|
3282
|
+
* Classement des terrains les plus réservés
|
|
3283
|
+
* @param {*} [options] Override http request option.
|
|
3284
|
+
* @throws {RequiredError}
|
|
3285
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3286
|
+
*/
|
|
3287
|
+
getTopCourtsByBookings(options) {
|
|
3288
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getTopCourtsByBookings(options).then((request) => request(this.axios, this.basePath));
|
|
3289
|
+
}
|
|
2911
3290
|
/**
|
|
2912
3291
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2913
3292
|
* @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -3386,55 +3765,348 @@ exports.ClubRolesStaffApi = ClubRolesStaffApi;
|
|
|
3386
3765
|
const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
3387
3766
|
return {
|
|
3388
3767
|
/**
|
|
3389
|
-
*
|
|
3390
|
-
* @param {
|
|
3391
|
-
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
3768
|
+
*
|
|
3769
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
3392
3770
|
* @param {*} [options] Override http request option.
|
|
3393
3771
|
* @throws {RequiredError}
|
|
3394
3772
|
*/
|
|
3395
|
-
|
|
3396
|
-
// verify required parameter '
|
|
3397
|
-
(0, common_1.assertParamExists)('
|
|
3398
|
-
|
|
3399
|
-
(0, common_1.assertParamExists)('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
|
|
3400
|
-
const localVarPath = `/api/club-settings/{clubId}`
|
|
3401
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
3773
|
+
updateClubGeneralSettings: (updateClubGeneralSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubGeneralSettingsRequest_1, ...args_1], void 0, function* (updateClubGeneralSettingsRequest, options = {}) {
|
|
3774
|
+
// verify required parameter 'updateClubGeneralSettingsRequest' is not null or undefined
|
|
3775
|
+
(0, common_1.assertParamExists)('updateClubGeneralSettings', 'updateClubGeneralSettingsRequest', updateClubGeneralSettingsRequest);
|
|
3776
|
+
const localVarPath = `/api/club-settings/settings/general`;
|
|
3402
3777
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3403
3778
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3404
3779
|
let baseOptions;
|
|
3405
3780
|
if (configuration) {
|
|
3406
3781
|
baseOptions = configuration.baseOptions;
|
|
3407
3782
|
}
|
|
3408
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3783
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3784
|
+
const localVarHeaderParameter = {};
|
|
3785
|
+
const localVarQueryParameter = {};
|
|
3786
|
+
// authentication bearerAuth required
|
|
3787
|
+
// http bearer authentication required
|
|
3788
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3789
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3790
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3791
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3792
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3793
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubGeneralSettingsRequest, localVarRequestOptions, configuration);
|
|
3794
|
+
return {
|
|
3795
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3796
|
+
options: localVarRequestOptions,
|
|
3797
|
+
};
|
|
3798
|
+
}),
|
|
3799
|
+
/**
|
|
3800
|
+
*
|
|
3801
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
3802
|
+
* @param {*} [options] Override http request option.
|
|
3803
|
+
* @throws {RequiredError}
|
|
3804
|
+
*/
|
|
3805
|
+
updateHoursSettings: (updateClubHoursSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubHoursSettingsRequest_1, ...args_1], void 0, function* (updateClubHoursSettingsRequest, options = {}) {
|
|
3806
|
+
// verify required parameter 'updateClubHoursSettingsRequest' is not null or undefined
|
|
3807
|
+
(0, common_1.assertParamExists)('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
|
|
3808
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
3809
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3810
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3811
|
+
let baseOptions;
|
|
3812
|
+
if (configuration) {
|
|
3813
|
+
baseOptions = configuration.baseOptions;
|
|
3814
|
+
}
|
|
3815
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3816
|
+
const localVarHeaderParameter = {};
|
|
3817
|
+
const localVarQueryParameter = {};
|
|
3818
|
+
// authentication bearerAuth required
|
|
3819
|
+
// http bearer authentication required
|
|
3820
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3821
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3822
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3823
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3824
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3825
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
|
|
3826
|
+
return {
|
|
3827
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3828
|
+
options: localVarRequestOptions,
|
|
3829
|
+
};
|
|
3830
|
+
}),
|
|
3831
|
+
/**
|
|
3832
|
+
*
|
|
3833
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
3834
|
+
* @param {*} [options] Override http request option.
|
|
3835
|
+
* @throws {RequiredError}
|
|
3836
|
+
*/
|
|
3837
|
+
updatePresentationSettings: (clubPresentationSettingsResponse_1, ...args_1) => __awaiter(this, [clubPresentationSettingsResponse_1, ...args_1], void 0, function* (clubPresentationSettingsResponse, options = {}) {
|
|
3838
|
+
// verify required parameter 'clubPresentationSettingsResponse' is not null or undefined
|
|
3839
|
+
(0, common_1.assertParamExists)('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse);
|
|
3840
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
3841
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3842
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3843
|
+
let baseOptions;
|
|
3844
|
+
if (configuration) {
|
|
3845
|
+
baseOptions = configuration.baseOptions;
|
|
3846
|
+
}
|
|
3847
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3848
|
+
const localVarHeaderParameter = {};
|
|
3849
|
+
const localVarQueryParameter = {};
|
|
3850
|
+
// authentication bearerAuth required
|
|
3851
|
+
// http bearer authentication required
|
|
3852
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3853
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3854
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3855
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3856
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3857
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clubPresentationSettingsResponse, localVarRequestOptions, configuration);
|
|
3858
|
+
return {
|
|
3859
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3860
|
+
options: localVarRequestOptions,
|
|
3861
|
+
};
|
|
3862
|
+
}),
|
|
3863
|
+
/**
|
|
3864
|
+
*
|
|
3865
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
3866
|
+
* @param {*} [options] Override http request option.
|
|
3867
|
+
* @throws {RequiredError}
|
|
3868
|
+
*/
|
|
3869
|
+
updateReservationSettings: (updateClubReservationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubReservationSettingsRequest_1, ...args_1], void 0, function* (updateClubReservationSettingsRequest, options = {}) {
|
|
3870
|
+
// verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
|
|
3871
|
+
(0, common_1.assertParamExists)('updateReservationSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest);
|
|
3872
|
+
const localVarPath = `/api/club-settings/reservation`;
|
|
3873
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3874
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3875
|
+
let baseOptions;
|
|
3876
|
+
if (configuration) {
|
|
3877
|
+
baseOptions = configuration.baseOptions;
|
|
3878
|
+
}
|
|
3879
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3880
|
+
const localVarHeaderParameter = {};
|
|
3881
|
+
const localVarQueryParameter = {};
|
|
3882
|
+
// authentication bearerAuth required
|
|
3883
|
+
// http bearer authentication required
|
|
3884
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3885
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3886
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3887
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3888
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3889
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
|
|
3890
|
+
return {
|
|
3891
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3892
|
+
options: localVarRequestOptions,
|
|
3893
|
+
};
|
|
3894
|
+
}),
|
|
3895
|
+
};
|
|
3896
|
+
};
|
|
3897
|
+
exports.ClubSettingsManagerApiAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator;
|
|
3898
|
+
/**
|
|
3899
|
+
* ClubSettingsManagerApi - functional programming interface
|
|
3900
|
+
* @export
|
|
3901
|
+
*/
|
|
3902
|
+
const ClubSettingsManagerApiFp = function (configuration) {
|
|
3903
|
+
const localVarAxiosParamCreator = (0, exports.ClubSettingsManagerApiAxiosParamCreator)(configuration);
|
|
3904
|
+
return {
|
|
3905
|
+
/**
|
|
3906
|
+
*
|
|
3907
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
3908
|
+
* @param {*} [options] Override http request option.
|
|
3909
|
+
* @throws {RequiredError}
|
|
3910
|
+
*/
|
|
3911
|
+
updateClubGeneralSettings(updateClubGeneralSettingsRequest, options) {
|
|
3912
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3913
|
+
var _a, _b, _c;
|
|
3914
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
|
|
3915
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3916
|
+
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;
|
|
3917
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3918
|
+
});
|
|
3919
|
+
},
|
|
3920
|
+
/**
|
|
3921
|
+
*
|
|
3922
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
3923
|
+
* @param {*} [options] Override http request option.
|
|
3924
|
+
* @throws {RequiredError}
|
|
3925
|
+
*/
|
|
3926
|
+
updateHoursSettings(updateClubHoursSettingsRequest, options) {
|
|
3927
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3928
|
+
var _a, _b, _c;
|
|
3929
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
|
|
3930
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3931
|
+
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;
|
|
3932
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3933
|
+
});
|
|
3934
|
+
},
|
|
3935
|
+
/**
|
|
3936
|
+
*
|
|
3937
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
3938
|
+
* @param {*} [options] Override http request option.
|
|
3939
|
+
* @throws {RequiredError}
|
|
3940
|
+
*/
|
|
3941
|
+
updatePresentationSettings(clubPresentationSettingsResponse, options) {
|
|
3942
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3943
|
+
var _a, _b, _c;
|
|
3944
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
|
|
3945
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3946
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3947
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3948
|
+
});
|
|
3949
|
+
},
|
|
3950
|
+
/**
|
|
3951
|
+
*
|
|
3952
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
3953
|
+
* @param {*} [options] Override http request option.
|
|
3954
|
+
* @throws {RequiredError}
|
|
3955
|
+
*/
|
|
3956
|
+
updateReservationSettings(updateClubReservationSettingsRequest, options) {
|
|
3957
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3958
|
+
var _a, _b, _c;
|
|
3959
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
|
|
3960
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3961
|
+
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;
|
|
3962
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3963
|
+
});
|
|
3964
|
+
},
|
|
3965
|
+
};
|
|
3966
|
+
};
|
|
3967
|
+
exports.ClubSettingsManagerApiFp = ClubSettingsManagerApiFp;
|
|
3968
|
+
/**
|
|
3969
|
+
* ClubSettingsManagerApi - factory interface
|
|
3970
|
+
* @export
|
|
3971
|
+
*/
|
|
3972
|
+
const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
|
|
3973
|
+
const localVarFp = (0, exports.ClubSettingsManagerApiFp)(configuration);
|
|
3974
|
+
return {
|
|
3975
|
+
/**
|
|
3976
|
+
*
|
|
3977
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
3978
|
+
* @param {*} [options] Override http request option.
|
|
3979
|
+
* @throws {RequiredError}
|
|
3980
|
+
*/
|
|
3981
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
3982
|
+
return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3983
|
+
},
|
|
3984
|
+
/**
|
|
3985
|
+
*
|
|
3986
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
3987
|
+
* @param {*} [options] Override http request option.
|
|
3988
|
+
* @throws {RequiredError}
|
|
3989
|
+
*/
|
|
3990
|
+
updateHoursSettings(requestParameters, options) {
|
|
3991
|
+
return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3992
|
+
},
|
|
3993
|
+
/**
|
|
3994
|
+
*
|
|
3995
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
3996
|
+
* @param {*} [options] Override http request option.
|
|
3997
|
+
* @throws {RequiredError}
|
|
3998
|
+
*/
|
|
3999
|
+
updatePresentationSettings(requestParameters, options) {
|
|
4000
|
+
return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
|
|
4001
|
+
},
|
|
4002
|
+
/**
|
|
4003
|
+
*
|
|
4004
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
4005
|
+
* @param {*} [options] Override http request option.
|
|
4006
|
+
* @throws {RequiredError}
|
|
4007
|
+
*/
|
|
4008
|
+
updateReservationSettings(requestParameters, options) {
|
|
4009
|
+
return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
4010
|
+
},
|
|
4011
|
+
};
|
|
4012
|
+
};
|
|
4013
|
+
exports.ClubSettingsManagerApiFactory = ClubSettingsManagerApiFactory;
|
|
4014
|
+
/**
|
|
4015
|
+
* ClubSettingsManagerApi - object-oriented interface
|
|
4016
|
+
* @export
|
|
4017
|
+
* @class ClubSettingsManagerApi
|
|
4018
|
+
* @extends {BaseAPI}
|
|
4019
|
+
*/
|
|
4020
|
+
class ClubSettingsManagerApi extends base_1.BaseAPI {
|
|
4021
|
+
/**
|
|
4022
|
+
*
|
|
4023
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
4024
|
+
* @param {*} [options] Override http request option.
|
|
4025
|
+
* @throws {RequiredError}
|
|
4026
|
+
* @memberof ClubSettingsManagerApi
|
|
4027
|
+
*/
|
|
4028
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
4029
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4030
|
+
}
|
|
4031
|
+
/**
|
|
4032
|
+
*
|
|
4033
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
4034
|
+
* @param {*} [options] Override http request option.
|
|
4035
|
+
* @throws {RequiredError}
|
|
4036
|
+
* @memberof ClubSettingsManagerApi
|
|
4037
|
+
*/
|
|
4038
|
+
updateHoursSettings(requestParameters, options) {
|
|
4039
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4040
|
+
}
|
|
4041
|
+
/**
|
|
4042
|
+
*
|
|
4043
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
4044
|
+
* @param {*} [options] Override http request option.
|
|
4045
|
+
* @throws {RequiredError}
|
|
4046
|
+
* @memberof ClubSettingsManagerApi
|
|
4047
|
+
*/
|
|
4048
|
+
updatePresentationSettings(requestParameters, options) {
|
|
4049
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
|
|
4050
|
+
}
|
|
4051
|
+
/**
|
|
4052
|
+
*
|
|
4053
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
4054
|
+
* @param {*} [options] Override http request option.
|
|
4055
|
+
* @throws {RequiredError}
|
|
4056
|
+
* @memberof ClubSettingsManagerApi
|
|
4057
|
+
*/
|
|
4058
|
+
updateReservationSettings(requestParameters, options) {
|
|
4059
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4060
|
+
}
|
|
4061
|
+
}
|
|
4062
|
+
exports.ClubSettingsManagerApi = ClubSettingsManagerApi;
|
|
4063
|
+
/**
|
|
4064
|
+
* ClubSettingsStaffApi - axios parameter creator
|
|
4065
|
+
* @export
|
|
4066
|
+
*/
|
|
4067
|
+
const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
|
|
4068
|
+
return {
|
|
4069
|
+
/**
|
|
4070
|
+
*
|
|
4071
|
+
* @param {*} [options] Override http request option.
|
|
4072
|
+
* @throws {RequiredError}
|
|
4073
|
+
*/
|
|
4074
|
+
getClubGeneralSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4075
|
+
const localVarPath = `/api/club-settings/settings/general`;
|
|
4076
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4077
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4078
|
+
let baseOptions;
|
|
4079
|
+
if (configuration) {
|
|
4080
|
+
baseOptions = configuration.baseOptions;
|
|
4081
|
+
}
|
|
4082
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3409
4083
|
const localVarHeaderParameter = {};
|
|
3410
4084
|
const localVarQueryParameter = {};
|
|
3411
4085
|
// authentication bearerAuth required
|
|
3412
4086
|
// http bearer authentication required
|
|
3413
4087
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3414
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3415
4088
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3416
4089
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3417
4090
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3418
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubSettingsRequest, localVarRequestOptions, configuration);
|
|
3419
4091
|
return {
|
|
3420
4092
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3421
4093
|
options: localVarRequestOptions,
|
|
3422
4094
|
};
|
|
3423
4095
|
}),
|
|
3424
4096
|
/**
|
|
3425
|
-
*
|
|
4097
|
+
*
|
|
3426
4098
|
* @param {*} [options] Override http request option.
|
|
3427
4099
|
* @throws {RequiredError}
|
|
3428
4100
|
*/
|
|
3429
|
-
|
|
3430
|
-
const localVarPath = `/api/club-settings`;
|
|
4101
|
+
getHoursSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4102
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
3431
4103
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3432
4104
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3433
4105
|
let baseOptions;
|
|
3434
4106
|
if (configuration) {
|
|
3435
4107
|
baseOptions = configuration.baseOptions;
|
|
3436
4108
|
}
|
|
3437
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4109
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3438
4110
|
const localVarHeaderParameter = {};
|
|
3439
4111
|
const localVarQueryParameter = {};
|
|
3440
4112
|
// authentication bearerAuth required
|
|
@@ -3449,12 +4121,12 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3449
4121
|
};
|
|
3450
4122
|
}),
|
|
3451
4123
|
/**
|
|
3452
|
-
*
|
|
4124
|
+
*
|
|
3453
4125
|
* @param {*} [options] Override http request option.
|
|
3454
4126
|
* @throws {RequiredError}
|
|
3455
4127
|
*/
|
|
3456
|
-
|
|
3457
|
-
const localVarPath = `/api/club-settings`;
|
|
4128
|
+
getPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4129
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
3458
4130
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3459
4131
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3460
4132
|
let baseOptions;
|
|
@@ -3476,32 +4148,27 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3476
4148
|
};
|
|
3477
4149
|
}),
|
|
3478
4150
|
/**
|
|
3479
|
-
*
|
|
3480
|
-
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
4151
|
+
*
|
|
3481
4152
|
* @param {*} [options] Override http request option.
|
|
3482
4153
|
* @throws {RequiredError}
|
|
3483
4154
|
*/
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
(0, common_1.assertParamExists)('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
|
|
3487
|
-
const localVarPath = `/api/club-settings`;
|
|
4155
|
+
getReservationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4156
|
+
const localVarPath = `/api/club-settings/reservation`;
|
|
3488
4157
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3489
4158
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3490
4159
|
let baseOptions;
|
|
3491
4160
|
if (configuration) {
|
|
3492
4161
|
baseOptions = configuration.baseOptions;
|
|
3493
4162
|
}
|
|
3494
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4163
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3495
4164
|
const localVarHeaderParameter = {};
|
|
3496
4165
|
const localVarQueryParameter = {};
|
|
3497
4166
|
// authentication bearerAuth required
|
|
3498
4167
|
// http bearer authentication required
|
|
3499
4168
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3500
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3501
4169
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3502
4170
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3503
4171
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3504
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubSettingsRequest, localVarRequestOptions, configuration);
|
|
3505
4172
|
return {
|
|
3506
4173
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3507
4174
|
options: localVarRequestOptions,
|
|
@@ -3509,167 +4176,160 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3509
4176
|
}),
|
|
3510
4177
|
};
|
|
3511
4178
|
};
|
|
3512
|
-
exports.
|
|
4179
|
+
exports.ClubSettingsStaffApiAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator;
|
|
3513
4180
|
/**
|
|
3514
|
-
*
|
|
4181
|
+
* ClubSettingsStaffApi - functional programming interface
|
|
3515
4182
|
* @export
|
|
3516
4183
|
*/
|
|
3517
|
-
const
|
|
3518
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
4184
|
+
const ClubSettingsStaffApiFp = function (configuration) {
|
|
4185
|
+
const localVarAxiosParamCreator = (0, exports.ClubSettingsStaffApiAxiosParamCreator)(configuration);
|
|
3519
4186
|
return {
|
|
3520
4187
|
/**
|
|
3521
|
-
*
|
|
3522
|
-
* @param {string} clubId
|
|
3523
|
-
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
4188
|
+
*
|
|
3524
4189
|
* @param {*} [options] Override http request option.
|
|
3525
4190
|
* @throws {RequiredError}
|
|
3526
4191
|
*/
|
|
3527
|
-
|
|
4192
|
+
getClubGeneralSettings(options) {
|
|
3528
4193
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3529
4194
|
var _a, _b, _c;
|
|
3530
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4195
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubGeneralSettings(options);
|
|
3531
4196
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3532
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
4197
|
+
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;
|
|
3533
4198
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3534
4199
|
});
|
|
3535
4200
|
},
|
|
3536
4201
|
/**
|
|
3537
|
-
*
|
|
4202
|
+
*
|
|
3538
4203
|
* @param {*} [options] Override http request option.
|
|
3539
4204
|
* @throws {RequiredError}
|
|
3540
4205
|
*/
|
|
3541
|
-
|
|
4206
|
+
getHoursSettings(options) {
|
|
3542
4207
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3543
4208
|
var _a, _b, _c;
|
|
3544
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4209
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getHoursSettings(options);
|
|
3545
4210
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3546
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
4211
|
+
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;
|
|
3547
4212
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3548
4213
|
});
|
|
3549
4214
|
},
|
|
3550
4215
|
/**
|
|
3551
|
-
*
|
|
4216
|
+
*
|
|
3552
4217
|
* @param {*} [options] Override http request option.
|
|
3553
4218
|
* @throws {RequiredError}
|
|
3554
4219
|
*/
|
|
3555
|
-
|
|
4220
|
+
getPresentationSettings(options) {
|
|
3556
4221
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3557
4222
|
var _a, _b, _c;
|
|
3558
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4223
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPresentationSettings(options);
|
|
3559
4224
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3560
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
4225
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3561
4226
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3562
4227
|
});
|
|
3563
4228
|
},
|
|
3564
4229
|
/**
|
|
3565
|
-
*
|
|
3566
|
-
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
4230
|
+
*
|
|
3567
4231
|
* @param {*} [options] Override http request option.
|
|
3568
4232
|
* @throws {RequiredError}
|
|
3569
4233
|
*/
|
|
3570
|
-
|
|
4234
|
+
getReservationSettings(options) {
|
|
3571
4235
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3572
4236
|
var _a, _b, _c;
|
|
3573
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4237
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReservationSettings(options);
|
|
3574
4238
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3575
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
4239
|
+
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;
|
|
3576
4240
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3577
4241
|
});
|
|
3578
4242
|
},
|
|
3579
4243
|
};
|
|
3580
4244
|
};
|
|
3581
|
-
exports.
|
|
4245
|
+
exports.ClubSettingsStaffApiFp = ClubSettingsStaffApiFp;
|
|
3582
4246
|
/**
|
|
3583
|
-
*
|
|
4247
|
+
* ClubSettingsStaffApi - factory interface
|
|
3584
4248
|
* @export
|
|
3585
4249
|
*/
|
|
3586
|
-
const
|
|
3587
|
-
const localVarFp = (0, exports.
|
|
4250
|
+
const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
4251
|
+
const localVarFp = (0, exports.ClubSettingsStaffApiFp)(configuration);
|
|
3588
4252
|
return {
|
|
3589
4253
|
/**
|
|
3590
|
-
*
|
|
3591
|
-
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
4254
|
+
*
|
|
3592
4255
|
* @param {*} [options] Override http request option.
|
|
3593
4256
|
* @throws {RequiredError}
|
|
3594
4257
|
*/
|
|
3595
|
-
|
|
3596
|
-
return localVarFp.
|
|
4258
|
+
getClubGeneralSettings(options) {
|
|
4259
|
+
return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
|
|
3597
4260
|
},
|
|
3598
4261
|
/**
|
|
3599
|
-
*
|
|
4262
|
+
*
|
|
3600
4263
|
* @param {*} [options] Override http request option.
|
|
3601
4264
|
* @throws {RequiredError}
|
|
3602
4265
|
*/
|
|
3603
|
-
|
|
3604
|
-
return localVarFp.
|
|
4266
|
+
getHoursSettings(options) {
|
|
4267
|
+
return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
|
|
3605
4268
|
},
|
|
3606
4269
|
/**
|
|
3607
|
-
*
|
|
4270
|
+
*
|
|
3608
4271
|
* @param {*} [options] Override http request option.
|
|
3609
4272
|
* @throws {RequiredError}
|
|
3610
4273
|
*/
|
|
3611
|
-
|
|
3612
|
-
return localVarFp.
|
|
4274
|
+
getPresentationSettings(options) {
|
|
4275
|
+
return localVarFp.getPresentationSettings(options).then((request) => request(axios, basePath));
|
|
3613
4276
|
},
|
|
3614
4277
|
/**
|
|
3615
|
-
*
|
|
3616
|
-
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
4278
|
+
*
|
|
3617
4279
|
* @param {*} [options] Override http request option.
|
|
3618
4280
|
* @throws {RequiredError}
|
|
3619
4281
|
*/
|
|
3620
|
-
|
|
3621
|
-
return localVarFp.
|
|
4282
|
+
getReservationSettings(options) {
|
|
4283
|
+
return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
|
|
3622
4284
|
},
|
|
3623
4285
|
};
|
|
3624
4286
|
};
|
|
3625
|
-
exports.
|
|
4287
|
+
exports.ClubSettingsStaffApiFactory = ClubSettingsStaffApiFactory;
|
|
3626
4288
|
/**
|
|
3627
|
-
*
|
|
4289
|
+
* ClubSettingsStaffApi - object-oriented interface
|
|
3628
4290
|
* @export
|
|
3629
|
-
* @class
|
|
4291
|
+
* @class ClubSettingsStaffApi
|
|
3630
4292
|
* @extends {BaseAPI}
|
|
3631
4293
|
*/
|
|
3632
|
-
class
|
|
4294
|
+
class ClubSettingsStaffApi extends base_1.BaseAPI {
|
|
3633
4295
|
/**
|
|
3634
|
-
*
|
|
3635
|
-
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
4296
|
+
*
|
|
3636
4297
|
* @param {*} [options] Override http request option.
|
|
3637
4298
|
* @throws {RequiredError}
|
|
3638
|
-
* @memberof
|
|
4299
|
+
* @memberof ClubSettingsStaffApi
|
|
3639
4300
|
*/
|
|
3640
|
-
|
|
3641
|
-
return (0, exports.
|
|
4301
|
+
getClubGeneralSettings(options) {
|
|
4302
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3642
4303
|
}
|
|
3643
4304
|
/**
|
|
3644
|
-
*
|
|
4305
|
+
*
|
|
3645
4306
|
* @param {*} [options] Override http request option.
|
|
3646
4307
|
* @throws {RequiredError}
|
|
3647
|
-
* @memberof
|
|
4308
|
+
* @memberof ClubSettingsStaffApi
|
|
3648
4309
|
*/
|
|
3649
|
-
|
|
3650
|
-
return (0, exports.
|
|
4310
|
+
getHoursSettings(options) {
|
|
4311
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3651
4312
|
}
|
|
3652
4313
|
/**
|
|
3653
|
-
*
|
|
4314
|
+
*
|
|
3654
4315
|
* @param {*} [options] Override http request option.
|
|
3655
4316
|
* @throws {RequiredError}
|
|
3656
|
-
* @memberof
|
|
4317
|
+
* @memberof ClubSettingsStaffApi
|
|
3657
4318
|
*/
|
|
3658
|
-
|
|
3659
|
-
return (0, exports.
|
|
4319
|
+
getPresentationSettings(options) {
|
|
4320
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3660
4321
|
}
|
|
3661
4322
|
/**
|
|
3662
|
-
*
|
|
3663
|
-
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
4323
|
+
*
|
|
3664
4324
|
* @param {*} [options] Override http request option.
|
|
3665
4325
|
* @throws {RequiredError}
|
|
3666
|
-
* @memberof
|
|
4326
|
+
* @memberof ClubSettingsStaffApi
|
|
3667
4327
|
*/
|
|
3668
|
-
|
|
3669
|
-
return (0, exports.
|
|
4328
|
+
getReservationSettings(options) {
|
|
4329
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3670
4330
|
}
|
|
3671
4331
|
}
|
|
3672
|
-
exports.
|
|
4332
|
+
exports.ClubSettingsStaffApi = ClubSettingsStaffApi;
|
|
3673
4333
|
/**
|
|
3674
4334
|
* ClubsApi - axios parameter creator
|
|
3675
4335
|
* @export
|
|
@@ -4485,42 +5145,6 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4485
5145
|
options: localVarRequestOptions,
|
|
4486
5146
|
};
|
|
4487
5147
|
}),
|
|
4488
|
-
/**
|
|
4489
|
-
*
|
|
4490
|
-
* @param {string} userId
|
|
4491
|
-
* @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
|
|
4492
|
-
* @param {*} [options] Override http request option.
|
|
4493
|
-
* @throws {RequiredError}
|
|
4494
|
-
*/
|
|
4495
|
-
addCreditsToCustomer: (userId_1, addCreditsToCustomerRequest_1, ...args_1) => __awaiter(this, [userId_1, addCreditsToCustomerRequest_1, ...args_1], void 0, function* (userId, addCreditsToCustomerRequest, options = {}) {
|
|
4496
|
-
// verify required parameter 'userId' is not null or undefined
|
|
4497
|
-
(0, common_1.assertParamExists)('addCreditsToCustomer', 'userId', userId);
|
|
4498
|
-
// verify required parameter 'addCreditsToCustomerRequest' is not null or undefined
|
|
4499
|
-
(0, common_1.assertParamExists)('addCreditsToCustomer', 'addCreditsToCustomerRequest', addCreditsToCustomerRequest);
|
|
4500
|
-
const localVarPath = `/api/clubs/customers/{userId}/credits`
|
|
4501
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
4502
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4503
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4504
|
-
let baseOptions;
|
|
4505
|
-
if (configuration) {
|
|
4506
|
-
baseOptions = configuration.baseOptions;
|
|
4507
|
-
}
|
|
4508
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4509
|
-
const localVarHeaderParameter = {};
|
|
4510
|
-
const localVarQueryParameter = {};
|
|
4511
|
-
// authentication bearerAuth required
|
|
4512
|
-
// http bearer authentication required
|
|
4513
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4514
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4515
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4516
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4517
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4518
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addCreditsToCustomerRequest, localVarRequestOptions, configuration);
|
|
4519
|
-
return {
|
|
4520
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4521
|
-
options: localVarRequestOptions,
|
|
4522
|
-
};
|
|
4523
|
-
}),
|
|
4524
5148
|
/**
|
|
4525
5149
|
*
|
|
4526
5150
|
* @param {string} priceId
|
|
@@ -4997,6 +5621,38 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4997
5621
|
options: localVarRequestOptions,
|
|
4998
5622
|
};
|
|
4999
5623
|
}),
|
|
5624
|
+
/**
|
|
5625
|
+
*
|
|
5626
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
5627
|
+
* @param {*} [options] Override http request option.
|
|
5628
|
+
* @throws {RequiredError}
|
|
5629
|
+
*/
|
|
5630
|
+
updateClubPresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
|
|
5631
|
+
// verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
|
|
5632
|
+
(0, common_1.assertParamExists)('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
|
|
5633
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
5634
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5635
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5636
|
+
let baseOptions;
|
|
5637
|
+
if (configuration) {
|
|
5638
|
+
baseOptions = configuration.baseOptions;
|
|
5639
|
+
}
|
|
5640
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
5641
|
+
const localVarHeaderParameter = {};
|
|
5642
|
+
const localVarQueryParameter = {};
|
|
5643
|
+
// authentication bearerAuth required
|
|
5644
|
+
// http bearer authentication required
|
|
5645
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5646
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5647
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5648
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5649
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5650
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
|
|
5651
|
+
return {
|
|
5652
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5653
|
+
options: localVarRequestOptions,
|
|
5654
|
+
};
|
|
5655
|
+
}),
|
|
5000
5656
|
/**
|
|
5001
5657
|
*
|
|
5002
5658
|
* @param {string} courtId
|
|
@@ -5094,22 +5750,6 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
5094
5750
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5095
5751
|
});
|
|
5096
5752
|
},
|
|
5097
|
-
/**
|
|
5098
|
-
*
|
|
5099
|
-
* @param {string} userId
|
|
5100
|
-
* @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
|
|
5101
|
-
* @param {*} [options] Override http request option.
|
|
5102
|
-
* @throws {RequiredError}
|
|
5103
|
-
*/
|
|
5104
|
-
addCreditsToCustomer(userId, addCreditsToCustomerRequest, options) {
|
|
5105
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5106
|
-
var _a, _b, _c;
|
|
5107
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addCreditsToCustomer(userId, addCreditsToCustomerRequest, options);
|
|
5108
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5109
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.addCreditsToCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5110
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5111
|
-
});
|
|
5112
|
-
},
|
|
5113
5753
|
/**
|
|
5114
5754
|
*
|
|
5115
5755
|
* @param {string} priceId
|
|
@@ -5336,6 +5976,21 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
5336
5976
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5337
5977
|
});
|
|
5338
5978
|
},
|
|
5979
|
+
/**
|
|
5980
|
+
*
|
|
5981
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
5982
|
+
* @param {*} [options] Override http request option.
|
|
5983
|
+
* @throws {RequiredError}
|
|
5984
|
+
*/
|
|
5985
|
+
updateClubPresentationSettings(updateClubPresentationSettingsRequest, options) {
|
|
5986
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5987
|
+
var _a, _b, _c;
|
|
5988
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
|
|
5989
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5990
|
+
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;
|
|
5991
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5992
|
+
});
|
|
5993
|
+
},
|
|
5339
5994
|
/**
|
|
5340
5995
|
*
|
|
5341
5996
|
* @param {string} courtId
|
|
@@ -5387,15 +6042,6 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
5387
6042
|
addClubMember(requestParameters, options) {
|
|
5388
6043
|
return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
5389
6044
|
},
|
|
5390
|
-
/**
|
|
5391
|
-
*
|
|
5392
|
-
* @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
|
|
5393
|
-
* @param {*} [options] Override http request option.
|
|
5394
|
-
* @throws {RequiredError}
|
|
5395
|
-
*/
|
|
5396
|
-
addCreditsToCustomer(requestParameters, options) {
|
|
5397
|
-
return localVarFp.addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(axios, basePath));
|
|
5398
|
-
},
|
|
5399
6045
|
/**
|
|
5400
6046
|
*
|
|
5401
6047
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5530,6 +6176,15 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
5530
6176
|
updateClubInfos(requestParameters, options) {
|
|
5531
6177
|
return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
5532
6178
|
},
|
|
6179
|
+
/**
|
|
6180
|
+
*
|
|
6181
|
+
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
6182
|
+
* @param {*} [options] Override http request option.
|
|
6183
|
+
* @throws {RequiredError}
|
|
6184
|
+
*/
|
|
6185
|
+
updateClubPresentationSettings(requestParameters, options) {
|
|
6186
|
+
return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
6187
|
+
},
|
|
5533
6188
|
/**
|
|
5534
6189
|
*
|
|
5535
6190
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5568,16 +6223,6 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
5568
6223
|
addClubMember(requestParameters, options) {
|
|
5569
6224
|
return (0, exports.ClubsManagerApiFp)(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5570
6225
|
}
|
|
5571
|
-
/**
|
|
5572
|
-
*
|
|
5573
|
-
* @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
|
|
5574
|
-
* @param {*} [options] Override http request option.
|
|
5575
|
-
* @throws {RequiredError}
|
|
5576
|
-
* @memberof ClubsManagerApi
|
|
5577
|
-
*/
|
|
5578
|
-
addCreditsToCustomer(requestParameters, options) {
|
|
5579
|
-
return (0, exports.ClubsManagerApiFp)(this.configuration).addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5580
|
-
}
|
|
5581
6226
|
/**
|
|
5582
6227
|
*
|
|
5583
6228
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5727,6 +6372,16 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
5727
6372
|
updateClubInfos(requestParameters, options) {
|
|
5728
6373
|
return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
5729
6374
|
}
|
|
6375
|
+
/**
|
|
6376
|
+
*
|
|
6377
|
+
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
6378
|
+
* @param {*} [options] Override http request option.
|
|
6379
|
+
* @throws {RequiredError}
|
|
6380
|
+
* @memberof ClubsManagerApi
|
|
6381
|
+
*/
|
|
6382
|
+
updateClubPresentationSettings(requestParameters, options) {
|
|
6383
|
+
return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6384
|
+
}
|
|
5730
6385
|
/**
|
|
5731
6386
|
*
|
|
5732
6387
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5836,6 +6491,33 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
5836
6491
|
options: localVarRequestOptions,
|
|
5837
6492
|
};
|
|
5838
6493
|
}),
|
|
6494
|
+
/**
|
|
6495
|
+
*
|
|
6496
|
+
* @param {*} [options] Override http request option.
|
|
6497
|
+
* @throws {RequiredError}
|
|
6498
|
+
*/
|
|
6499
|
+
getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6500
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
6501
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6502
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6503
|
+
let baseOptions;
|
|
6504
|
+
if (configuration) {
|
|
6505
|
+
baseOptions = configuration.baseOptions;
|
|
6506
|
+
}
|
|
6507
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6508
|
+
const localVarHeaderParameter = {};
|
|
6509
|
+
const localVarQueryParameter = {};
|
|
6510
|
+
// authentication bearerAuth required
|
|
6511
|
+
// http bearer authentication required
|
|
6512
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6513
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6514
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6515
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6516
|
+
return {
|
|
6517
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6518
|
+
options: localVarRequestOptions,
|
|
6519
|
+
};
|
|
6520
|
+
}),
|
|
5839
6521
|
/**
|
|
5840
6522
|
* Récupère les rôles d\'un club
|
|
5841
6523
|
* @param {*} [options] Override http request option.
|
|
@@ -6000,6 +6682,20 @@ const ClubsStaffApiFp = function (configuration) {
|
|
|
6000
6682
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6001
6683
|
});
|
|
6002
6684
|
},
|
|
6685
|
+
/**
|
|
6686
|
+
*
|
|
6687
|
+
* @param {*} [options] Override http request option.
|
|
6688
|
+
* @throws {RequiredError}
|
|
6689
|
+
*/
|
|
6690
|
+
getClubPresentationSettings(options) {
|
|
6691
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6692
|
+
var _a, _b, _c;
|
|
6693
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPresentationSettings(options);
|
|
6694
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6695
|
+
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;
|
|
6696
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6697
|
+
});
|
|
6698
|
+
},
|
|
6003
6699
|
/**
|
|
6004
6700
|
* Récupère les rôles d\'un club
|
|
6005
6701
|
* @param {*} [options] Override http request option.
|
|
@@ -6091,6 +6787,14 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
6091
6787
|
getClubMembers(options) {
|
|
6092
6788
|
return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
|
|
6093
6789
|
},
|
|
6790
|
+
/**
|
|
6791
|
+
*
|
|
6792
|
+
* @param {*} [options] Override http request option.
|
|
6793
|
+
* @throws {RequiredError}
|
|
6794
|
+
*/
|
|
6795
|
+
getClubPresentationSettings(options) {
|
|
6796
|
+
return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
|
|
6797
|
+
},
|
|
6094
6798
|
/**
|
|
6095
6799
|
* Récupère les rôles d\'un club
|
|
6096
6800
|
* @param {*} [options] Override http request option.
|
|
@@ -6161,6 +6865,15 @@ class ClubsStaffApi extends base_1.BaseAPI {
|
|
|
6161
6865
|
getClubMembers(options) {
|
|
6162
6866
|
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
|
|
6163
6867
|
}
|
|
6868
|
+
/**
|
|
6869
|
+
*
|
|
6870
|
+
* @param {*} [options] Override http request option.
|
|
6871
|
+
* @throws {RequiredError}
|
|
6872
|
+
* @memberof ClubsStaffApi
|
|
6873
|
+
*/
|
|
6874
|
+
getClubPresentationSettings(options) {
|
|
6875
|
+
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
6876
|
+
}
|
|
6164
6877
|
/**
|
|
6165
6878
|
* Récupère les rôles d\'un club
|
|
6166
6879
|
* @param {*} [options] Override http request option.
|
|
@@ -7428,102 +8141,6 @@ class SportsPublicApi extends base_1.BaseAPI {
|
|
|
7428
8141
|
}
|
|
7429
8142
|
}
|
|
7430
8143
|
exports.SportsPublicApi = SportsPublicApi;
|
|
7431
|
-
/**
|
|
7432
|
-
* SportsStaffApi - axios parameter creator
|
|
7433
|
-
* @export
|
|
7434
|
-
*/
|
|
7435
|
-
const SportsStaffApiAxiosParamCreator = function (configuration) {
|
|
7436
|
-
return {
|
|
7437
|
-
/**
|
|
7438
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
7439
|
-
* @param {*} [options] Override http request option.
|
|
7440
|
-
* @throws {RequiredError}
|
|
7441
|
-
*/
|
|
7442
|
-
getAllSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7443
|
-
const localVarPath = `/api/sports`;
|
|
7444
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7445
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7446
|
-
let baseOptions;
|
|
7447
|
-
if (configuration) {
|
|
7448
|
-
baseOptions = configuration.baseOptions;
|
|
7449
|
-
}
|
|
7450
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7451
|
-
const localVarHeaderParameter = {};
|
|
7452
|
-
const localVarQueryParameter = {};
|
|
7453
|
-
// authentication bearerAuth required
|
|
7454
|
-
// http bearer authentication required
|
|
7455
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7456
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7457
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7458
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7459
|
-
return {
|
|
7460
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7461
|
-
options: localVarRequestOptions,
|
|
7462
|
-
};
|
|
7463
|
-
}),
|
|
7464
|
-
};
|
|
7465
|
-
};
|
|
7466
|
-
exports.SportsStaffApiAxiosParamCreator = SportsStaffApiAxiosParamCreator;
|
|
7467
|
-
/**
|
|
7468
|
-
* SportsStaffApi - functional programming interface
|
|
7469
|
-
* @export
|
|
7470
|
-
*/
|
|
7471
|
-
const SportsStaffApiFp = function (configuration) {
|
|
7472
|
-
const localVarAxiosParamCreator = (0, exports.SportsStaffApiAxiosParamCreator)(configuration);
|
|
7473
|
-
return {
|
|
7474
|
-
/**
|
|
7475
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
7476
|
-
* @param {*} [options] Override http request option.
|
|
7477
|
-
* @throws {RequiredError}
|
|
7478
|
-
*/
|
|
7479
|
-
getAllSports(options) {
|
|
7480
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7481
|
-
var _a, _b, _c;
|
|
7482
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllSports(options);
|
|
7483
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7484
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SportsStaffApi.getAllSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7485
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7486
|
-
});
|
|
7487
|
-
},
|
|
7488
|
-
};
|
|
7489
|
-
};
|
|
7490
|
-
exports.SportsStaffApiFp = SportsStaffApiFp;
|
|
7491
|
-
/**
|
|
7492
|
-
* SportsStaffApi - factory interface
|
|
7493
|
-
* @export
|
|
7494
|
-
*/
|
|
7495
|
-
const SportsStaffApiFactory = function (configuration, basePath, axios) {
|
|
7496
|
-
const localVarFp = (0, exports.SportsStaffApiFp)(configuration);
|
|
7497
|
-
return {
|
|
7498
|
-
/**
|
|
7499
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
7500
|
-
* @param {*} [options] Override http request option.
|
|
7501
|
-
* @throws {RequiredError}
|
|
7502
|
-
*/
|
|
7503
|
-
getAllSports(options) {
|
|
7504
|
-
return localVarFp.getAllSports(options).then((request) => request(axios, basePath));
|
|
7505
|
-
},
|
|
7506
|
-
};
|
|
7507
|
-
};
|
|
7508
|
-
exports.SportsStaffApiFactory = SportsStaffApiFactory;
|
|
7509
|
-
/**
|
|
7510
|
-
* SportsStaffApi - object-oriented interface
|
|
7511
|
-
* @export
|
|
7512
|
-
* @class SportsStaffApi
|
|
7513
|
-
* @extends {BaseAPI}
|
|
7514
|
-
*/
|
|
7515
|
-
class SportsStaffApi extends base_1.BaseAPI {
|
|
7516
|
-
/**
|
|
7517
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
7518
|
-
* @param {*} [options] Override http request option.
|
|
7519
|
-
* @throws {RequiredError}
|
|
7520
|
-
* @memberof SportsStaffApi
|
|
7521
|
-
*/
|
|
7522
|
-
getAllSports(options) {
|
|
7523
|
-
return (0, exports.SportsStaffApiFp)(this.configuration).getAllSports(options).then((request) => request(this.axios, this.basePath));
|
|
7524
|
-
}
|
|
7525
|
-
}
|
|
7526
|
-
exports.SportsStaffApi = SportsStaffApi;
|
|
7527
8144
|
/**
|
|
7528
8145
|
* SubscriptionsManagerApi - axios parameter creator
|
|
7529
8146
|
* @export
|