@tennac-booking/sdk 1.0.102 → 1.0.104
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 +31 -8
- package/README.md +50 -16
- package/api.ts +3941 -2237
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1785 -531
- package/dist/api.js +965 -272
- 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 +1785 -531
- package/dist/esm/api.js +957 -264
- 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/BookingsStaffApi.md +4 -4
- package/docs/BookingsWithTimeBoundsResponse.md +22 -0
- 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 +112 -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/{DeleteClubSettingsResponse.md → TimeBounds.md} +7 -5
- package/docs/UpdateClubGeneralSettingsRequest.md +34 -0
- package/docs/UpdateClubHoursSettingsRequest.md +22 -0
- package/docs/UpdateClubMemberRequest.md +22 -0
- package/docs/UpdateClubPresentationSettingsRequest.md +26 -0
- package/docs/UpdateClubReservationSettingsRequest.md +28 -0
- package/docs/UpdateEventRequest.md +1 -1
- 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/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).
|
|
@@ -22,10 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = void 0;
|
|
25
|
+
exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = 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.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 = exports.UserLocationSummaryTypeEnum = void 0;
|
|
27
|
+
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 = exports.ClubsApiFp = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -329,6 +329,11 @@ exports.SurfaceType = {
|
|
|
329
329
|
Grass: 'grass',
|
|
330
330
|
Hard: 'hard'
|
|
331
331
|
};
|
|
332
|
+
exports.UpdateClubMemberRequestRoleEnum = {
|
|
333
|
+
Admin: 'admin',
|
|
334
|
+
Manager: 'manager',
|
|
335
|
+
Staff: 'staff'
|
|
336
|
+
};
|
|
332
337
|
exports.UpdateClubRoleRequestRoleEnum = {
|
|
333
338
|
Admin: 'admin',
|
|
334
339
|
Manager: 'manager',
|
|
@@ -1724,7 +1729,7 @@ const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1724
1729
|
* @throws {RequiredError}
|
|
1725
1730
|
*/
|
|
1726
1731
|
listAvailablePrices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1727
|
-
const localVarPath = `/client-accounts/available-prices`;
|
|
1732
|
+
const localVarPath = `/client-accounts/plans/available-prices`;
|
|
1728
1733
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1729
1734
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1730
1735
|
let baseOptions;
|
|
@@ -2286,6 +2291,107 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2286
2291
|
options: localVarRequestOptions,
|
|
2287
2292
|
};
|
|
2288
2293
|
}),
|
|
2294
|
+
/**
|
|
2295
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2296
|
+
* @param {string} playerId
|
|
2297
|
+
* @param {number} [page]
|
|
2298
|
+
* @param {number} [pageSize]
|
|
2299
|
+
* @param {*} [options] Override http request option.
|
|
2300
|
+
* @throws {RequiredError}
|
|
2301
|
+
*/
|
|
2302
|
+
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 = {}) {
|
|
2303
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
2304
|
+
(0, common_1.assertParamExists)('getClubPlayerBookingsById', 'playerId', playerId);
|
|
2305
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
2306
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2307
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2308
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2309
|
+
let baseOptions;
|
|
2310
|
+
if (configuration) {
|
|
2311
|
+
baseOptions = configuration.baseOptions;
|
|
2312
|
+
}
|
|
2313
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2314
|
+
const localVarHeaderParameter = {};
|
|
2315
|
+
const localVarQueryParameter = {};
|
|
2316
|
+
// authentication bearerAuth required
|
|
2317
|
+
// http bearer authentication required
|
|
2318
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2319
|
+
if (page !== undefined) {
|
|
2320
|
+
localVarQueryParameter['page'] = page;
|
|
2321
|
+
}
|
|
2322
|
+
if (pageSize !== undefined) {
|
|
2323
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2324
|
+
}
|
|
2325
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2326
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2327
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2328
|
+
return {
|
|
2329
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2330
|
+
options: localVarRequestOptions,
|
|
2331
|
+
};
|
|
2332
|
+
}),
|
|
2333
|
+
/**
|
|
2334
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2335
|
+
* @param {string} playerId
|
|
2336
|
+
* @param {*} [options] Override http request option.
|
|
2337
|
+
* @throws {RequiredError}
|
|
2338
|
+
*/
|
|
2339
|
+
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
2340
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
2341
|
+
(0, common_1.assertParamExists)('getClubPlayerById', 'playerId', playerId);
|
|
2342
|
+
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
2343
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2344
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2345
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2346
|
+
let baseOptions;
|
|
2347
|
+
if (configuration) {
|
|
2348
|
+
baseOptions = configuration.baseOptions;
|
|
2349
|
+
}
|
|
2350
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2351
|
+
const localVarHeaderParameter = {};
|
|
2352
|
+
const localVarQueryParameter = {};
|
|
2353
|
+
// authentication bearerAuth required
|
|
2354
|
+
// http bearer authentication required
|
|
2355
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2356
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2357
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2358
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2359
|
+
return {
|
|
2360
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2361
|
+
options: localVarRequestOptions,
|
|
2362
|
+
};
|
|
2363
|
+
}),
|
|
2364
|
+
/**
|
|
2365
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2366
|
+
* @param {string} playerId
|
|
2367
|
+
* @param {*} [options] Override http request option.
|
|
2368
|
+
* @throws {RequiredError}
|
|
2369
|
+
*/
|
|
2370
|
+
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
2371
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
2372
|
+
(0, common_1.assertParamExists)('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
2373
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
2374
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2375
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2376
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2377
|
+
let baseOptions;
|
|
2378
|
+
if (configuration) {
|
|
2379
|
+
baseOptions = configuration.baseOptions;
|
|
2380
|
+
}
|
|
2381
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2382
|
+
const localVarHeaderParameter = {};
|
|
2383
|
+
const localVarQueryParameter = {};
|
|
2384
|
+
// authentication bearerAuth required
|
|
2385
|
+
// http bearer authentication required
|
|
2386
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2387
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2388
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2389
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2390
|
+
return {
|
|
2391
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2392
|
+
options: localVarRequestOptions,
|
|
2393
|
+
};
|
|
2394
|
+
}),
|
|
2289
2395
|
/**
|
|
2290
2396
|
* Récupère la liste des joueurs du club
|
|
2291
2397
|
* @param {*} [options] Override http request option.
|
|
@@ -2501,6 +2607,60 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2501
2607
|
options: localVarRequestOptions,
|
|
2502
2608
|
};
|
|
2503
2609
|
}),
|
|
2610
|
+
/**
|
|
2611
|
+
* Calcule le taux de fidélisation des joueurs
|
|
2612
|
+
* @param {*} [options] Override http request option.
|
|
2613
|
+
* @throws {RequiredError}
|
|
2614
|
+
*/
|
|
2615
|
+
getRetentionRate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2616
|
+
const localVarPath = `/api/club-analytics/retention-rate`;
|
|
2617
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2618
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2619
|
+
let baseOptions;
|
|
2620
|
+
if (configuration) {
|
|
2621
|
+
baseOptions = configuration.baseOptions;
|
|
2622
|
+
}
|
|
2623
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2624
|
+
const localVarHeaderParameter = {};
|
|
2625
|
+
const localVarQueryParameter = {};
|
|
2626
|
+
// authentication bearerAuth required
|
|
2627
|
+
// http bearer authentication required
|
|
2628
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2629
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2630
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2631
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2632
|
+
return {
|
|
2633
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2634
|
+
options: localVarRequestOptions,
|
|
2635
|
+
};
|
|
2636
|
+
}),
|
|
2637
|
+
/**
|
|
2638
|
+
* Récupère le chiffre d\'affaires par sport
|
|
2639
|
+
* @param {*} [options] Override http request option.
|
|
2640
|
+
* @throws {RequiredError}
|
|
2641
|
+
*/
|
|
2642
|
+
getRevenueBySport: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2643
|
+
const localVarPath = `/api/club-analytics/revenue-by-sport`;
|
|
2644
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2645
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2646
|
+
let baseOptions;
|
|
2647
|
+
if (configuration) {
|
|
2648
|
+
baseOptions = configuration.baseOptions;
|
|
2649
|
+
}
|
|
2650
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2651
|
+
const localVarHeaderParameter = {};
|
|
2652
|
+
const localVarQueryParameter = {};
|
|
2653
|
+
// authentication bearerAuth required
|
|
2654
|
+
// http bearer authentication required
|
|
2655
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2656
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2657
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2658
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2659
|
+
return {
|
|
2660
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2661
|
+
options: localVarRequestOptions,
|
|
2662
|
+
};
|
|
2663
|
+
}),
|
|
2504
2664
|
/**
|
|
2505
2665
|
* Récupère les 10 prochaines réservations
|
|
2506
2666
|
* @param {*} [options] Override http request option.
|
|
@@ -2528,6 +2688,33 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2528
2688
|
options: localVarRequestOptions,
|
|
2529
2689
|
};
|
|
2530
2690
|
}),
|
|
2691
|
+
/**
|
|
2692
|
+
* Classement des terrains les plus réservés
|
|
2693
|
+
* @param {*} [options] Override http request option.
|
|
2694
|
+
* @throws {RequiredError}
|
|
2695
|
+
*/
|
|
2696
|
+
getTopCourtsByBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2697
|
+
const localVarPath = `/api/club-analytics/top-courts`;
|
|
2698
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2699
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2700
|
+
let baseOptions;
|
|
2701
|
+
if (configuration) {
|
|
2702
|
+
baseOptions = configuration.baseOptions;
|
|
2703
|
+
}
|
|
2704
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2705
|
+
const localVarHeaderParameter = {};
|
|
2706
|
+
const localVarQueryParameter = {};
|
|
2707
|
+
// authentication bearerAuth required
|
|
2708
|
+
// http bearer authentication required
|
|
2709
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2710
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2711
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2712
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2713
|
+
return {
|
|
2714
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2715
|
+
options: localVarRequestOptions,
|
|
2716
|
+
};
|
|
2717
|
+
}),
|
|
2531
2718
|
/**
|
|
2532
2719
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2533
2720
|
* @param {string} year
|
|
@@ -2586,6 +2773,53 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2586
2773
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2587
2774
|
});
|
|
2588
2775
|
},
|
|
2776
|
+
/**
|
|
2777
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2778
|
+
* @param {string} playerId
|
|
2779
|
+
* @param {number} [page]
|
|
2780
|
+
* @param {number} [pageSize]
|
|
2781
|
+
* @param {*} [options] Override http request option.
|
|
2782
|
+
* @throws {RequiredError}
|
|
2783
|
+
*/
|
|
2784
|
+
getClubPlayerBookingsById(playerId, page, pageSize, options) {
|
|
2785
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2786
|
+
var _a, _b, _c;
|
|
2787
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, page, pageSize, options);
|
|
2788
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2789
|
+
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;
|
|
2790
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2791
|
+
});
|
|
2792
|
+
},
|
|
2793
|
+
/**
|
|
2794
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2795
|
+
* @param {string} playerId
|
|
2796
|
+
* @param {*} [options] Override http request option.
|
|
2797
|
+
* @throws {RequiredError}
|
|
2798
|
+
*/
|
|
2799
|
+
getClubPlayerById(playerId, options) {
|
|
2800
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2801
|
+
var _a, _b, _c;
|
|
2802
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
|
|
2803
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2804
|
+
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;
|
|
2805
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2806
|
+
});
|
|
2807
|
+
},
|
|
2808
|
+
/**
|
|
2809
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2810
|
+
* @param {string} playerId
|
|
2811
|
+
* @param {*} [options] Override http request option.
|
|
2812
|
+
* @throws {RequiredError}
|
|
2813
|
+
*/
|
|
2814
|
+
getClubPlayerStatisticsById(playerId, options) {
|
|
2815
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2816
|
+
var _a, _b, _c;
|
|
2817
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
|
|
2818
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2819
|
+
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;
|
|
2820
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2821
|
+
});
|
|
2822
|
+
},
|
|
2589
2823
|
/**
|
|
2590
2824
|
* Récupère la liste des joueurs du club
|
|
2591
2825
|
* @param {*} [options] Override http request option.
|
|
@@ -2689,6 +2923,34 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2689
2923
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2690
2924
|
});
|
|
2691
2925
|
},
|
|
2926
|
+
/**
|
|
2927
|
+
* Calcule le taux de fidélisation des joueurs
|
|
2928
|
+
* @param {*} [options] Override http request option.
|
|
2929
|
+
* @throws {RequiredError}
|
|
2930
|
+
*/
|
|
2931
|
+
getRetentionRate(options) {
|
|
2932
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2933
|
+
var _a, _b, _c;
|
|
2934
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRetentionRate(options);
|
|
2935
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2936
|
+
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;
|
|
2937
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2938
|
+
});
|
|
2939
|
+
},
|
|
2940
|
+
/**
|
|
2941
|
+
* Récupère le chiffre d\'affaires par sport
|
|
2942
|
+
* @param {*} [options] Override http request option.
|
|
2943
|
+
* @throws {RequiredError}
|
|
2944
|
+
*/
|
|
2945
|
+
getRevenueBySport(options) {
|
|
2946
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2947
|
+
var _a, _b, _c;
|
|
2948
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRevenueBySport(options);
|
|
2949
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2950
|
+
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;
|
|
2951
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2952
|
+
});
|
|
2953
|
+
},
|
|
2692
2954
|
/**
|
|
2693
2955
|
* Récupère les 10 prochaines réservations
|
|
2694
2956
|
* @param {*} [options] Override http request option.
|
|
@@ -2703,6 +2965,20 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2703
2965
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2704
2966
|
});
|
|
2705
2967
|
},
|
|
2968
|
+
/**
|
|
2969
|
+
* Classement des terrains les plus réservés
|
|
2970
|
+
* @param {*} [options] Override http request option.
|
|
2971
|
+
* @throws {RequiredError}
|
|
2972
|
+
*/
|
|
2973
|
+
getTopCourtsByBookings(options) {
|
|
2974
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2975
|
+
var _a, _b, _c;
|
|
2976
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTopCourtsByBookings(options);
|
|
2977
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2978
|
+
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;
|
|
2979
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2980
|
+
});
|
|
2981
|
+
},
|
|
2706
2982
|
/**
|
|
2707
2983
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2708
2984
|
* @param {string} year
|
|
@@ -2737,6 +3013,33 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2737
3013
|
getAnalyticsBySport(requestParameters, options) {
|
|
2738
3014
|
return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
2739
3015
|
},
|
|
3016
|
+
/**
|
|
3017
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
3018
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
3019
|
+
* @param {*} [options] Override http request option.
|
|
3020
|
+
* @throws {RequiredError}
|
|
3021
|
+
*/
|
|
3022
|
+
getClubPlayerBookingsById(requestParameters, options) {
|
|
3023
|
+
return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
3024
|
+
},
|
|
3025
|
+
/**
|
|
3026
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
3027
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
3028
|
+
* @param {*} [options] Override http request option.
|
|
3029
|
+
* @throws {RequiredError}
|
|
3030
|
+
*/
|
|
3031
|
+
getClubPlayerById(requestParameters, options) {
|
|
3032
|
+
return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
3033
|
+
},
|
|
3034
|
+
/**
|
|
3035
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
3036
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
3037
|
+
* @param {*} [options] Override http request option.
|
|
3038
|
+
* @throws {RequiredError}
|
|
3039
|
+
*/
|
|
3040
|
+
getClubPlayerStatisticsById(requestParameters, options) {
|
|
3041
|
+
return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
3042
|
+
},
|
|
2740
3043
|
/**
|
|
2741
3044
|
* Récupère la liste des joueurs du club
|
|
2742
3045
|
* @param {*} [options] Override http request option.
|
|
@@ -2796,6 +3099,22 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2796
3099
|
getNumberOfClubUsers(options) {
|
|
2797
3100
|
return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
|
|
2798
3101
|
},
|
|
3102
|
+
/**
|
|
3103
|
+
* Calcule le taux de fidélisation des joueurs
|
|
3104
|
+
* @param {*} [options] Override http request option.
|
|
3105
|
+
* @throws {RequiredError}
|
|
3106
|
+
*/
|
|
3107
|
+
getRetentionRate(options) {
|
|
3108
|
+
return localVarFp.getRetentionRate(options).then((request) => request(axios, basePath));
|
|
3109
|
+
},
|
|
3110
|
+
/**
|
|
3111
|
+
* Récupère le chiffre d\'affaires par sport
|
|
3112
|
+
* @param {*} [options] Override http request option.
|
|
3113
|
+
* @throws {RequiredError}
|
|
3114
|
+
*/
|
|
3115
|
+
getRevenueBySport(options) {
|
|
3116
|
+
return localVarFp.getRevenueBySport(options).then((request) => request(axios, basePath));
|
|
3117
|
+
},
|
|
2799
3118
|
/**
|
|
2800
3119
|
* Récupère les 10 prochaines réservations
|
|
2801
3120
|
* @param {*} [options] Override http request option.
|
|
@@ -2804,6 +3123,14 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2804
3123
|
getTenNextBookings(options) {
|
|
2805
3124
|
return localVarFp.getTenNextBookings(options).then((request) => request(axios, basePath));
|
|
2806
3125
|
},
|
|
3126
|
+
/**
|
|
3127
|
+
* Classement des terrains les plus réservés
|
|
3128
|
+
* @param {*} [options] Override http request option.
|
|
3129
|
+
* @throws {RequiredError}
|
|
3130
|
+
*/
|
|
3131
|
+
getTopCourtsByBookings(options) {
|
|
3132
|
+
return localVarFp.getTopCourtsByBookings(options).then((request) => request(axios, basePath));
|
|
3133
|
+
},
|
|
2807
3134
|
/**
|
|
2808
3135
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2809
3136
|
* @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -2834,43 +3161,73 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2834
3161
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
2835
3162
|
}
|
|
2836
3163
|
/**
|
|
2837
|
-
* Récupère
|
|
3164
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
3165
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2838
3166
|
* @param {*} [options] Override http request option.
|
|
2839
3167
|
* @throws {RequiredError}
|
|
2840
3168
|
* @memberof ClubAnalyticsStaffApi
|
|
2841
3169
|
*/
|
|
2842
|
-
|
|
2843
|
-
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).
|
|
3170
|
+
getClubPlayerBookingsById(requestParameters, options) {
|
|
3171
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
2844
3172
|
}
|
|
2845
3173
|
/**
|
|
2846
|
-
* Récupère
|
|
2847
|
-
* @param {
|
|
3174
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
3175
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2848
3176
|
* @param {*} [options] Override http request option.
|
|
2849
3177
|
* @throws {RequiredError}
|
|
2850
3178
|
* @memberof ClubAnalyticsStaffApi
|
|
2851
3179
|
*/
|
|
2852
|
-
|
|
2853
|
-
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).
|
|
3180
|
+
getClubPlayerById(requestParameters, options) {
|
|
3181
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2854
3182
|
}
|
|
2855
3183
|
/**
|
|
2856
|
-
* Récupère les
|
|
3184
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
3185
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2857
3186
|
* @param {*} [options] Override http request option.
|
|
2858
3187
|
* @throws {RequiredError}
|
|
2859
3188
|
* @memberof ClubAnalyticsStaffApi
|
|
2860
3189
|
*/
|
|
2861
|
-
|
|
2862
|
-
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).
|
|
3190
|
+
getClubPlayerStatisticsById(requestParameters, options) {
|
|
3191
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2863
3192
|
}
|
|
2864
3193
|
/**
|
|
2865
|
-
* Récupère
|
|
2866
|
-
* @param {ClubAnalyticsStaffApiGetInfillPercentagePerPeriodRequest} requestParameters Request parameters.
|
|
3194
|
+
* Récupère la liste des joueurs du club
|
|
2867
3195
|
* @param {*} [options] Override http request option.
|
|
2868
3196
|
* @throws {RequiredError}
|
|
2869
3197
|
* @memberof ClubAnalyticsStaffApi
|
|
2870
3198
|
*/
|
|
2871
|
-
|
|
2872
|
-
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).
|
|
2873
|
-
}
|
|
3199
|
+
getClubPlayers(options) {
|
|
3200
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayers(options).then((request) => request(this.axios, this.basePath));
|
|
3201
|
+
}
|
|
3202
|
+
/**
|
|
3203
|
+
* Récupère le chiffre d\'affaires quotidien
|
|
3204
|
+
* @param {ClubAnalyticsStaffApiGetDailyTurnOverRequest} requestParameters Request parameters.
|
|
3205
|
+
* @param {*} [options] Override http request option.
|
|
3206
|
+
* @throws {RequiredError}
|
|
3207
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3208
|
+
*/
|
|
3209
|
+
getDailyTurnOver(requestParameters, options) {
|
|
3210
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getDailyTurnOver(requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
3211
|
+
}
|
|
3212
|
+
/**
|
|
3213
|
+
* Récupère les pourcentages par genre
|
|
3214
|
+
* @param {*} [options] Override http request option.
|
|
3215
|
+
* @throws {RequiredError}
|
|
3216
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3217
|
+
*/
|
|
3218
|
+
getGenderPercentage(options) {
|
|
3219
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getGenderPercentage(options).then((request) => request(this.axios, this.basePath));
|
|
3220
|
+
}
|
|
3221
|
+
/**
|
|
3222
|
+
* Récupère le taux de remplissage (infill) pour une période donnée
|
|
3223
|
+
* @param {ClubAnalyticsStaffApiGetInfillPercentagePerPeriodRequest} requestParameters Request parameters.
|
|
3224
|
+
* @param {*} [options] Override http request option.
|
|
3225
|
+
* @throws {RequiredError}
|
|
3226
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3227
|
+
*/
|
|
3228
|
+
getInfillPercentagePerPeriod(requestParameters = {}, options) {
|
|
3229
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getInfillPercentagePerPeriod(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
3230
|
+
}
|
|
2874
3231
|
/**
|
|
2875
3232
|
* Récupère le chiffre d\'affaires des 6 derniers mois
|
|
2876
3233
|
* @param {*} [options] Override http request option.
|
|
@@ -2899,6 +3256,24 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2899
3256
|
getNumberOfClubUsers(options) {
|
|
2900
3257
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
|
|
2901
3258
|
}
|
|
3259
|
+
/**
|
|
3260
|
+
* Calcule le taux de fidélisation des joueurs
|
|
3261
|
+
* @param {*} [options] Override http request option.
|
|
3262
|
+
* @throws {RequiredError}
|
|
3263
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3264
|
+
*/
|
|
3265
|
+
getRetentionRate(options) {
|
|
3266
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getRetentionRate(options).then((request) => request(this.axios, this.basePath));
|
|
3267
|
+
}
|
|
3268
|
+
/**
|
|
3269
|
+
* Récupère le chiffre d\'affaires par sport
|
|
3270
|
+
* @param {*} [options] Override http request option.
|
|
3271
|
+
* @throws {RequiredError}
|
|
3272
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3273
|
+
*/
|
|
3274
|
+
getRevenueBySport(options) {
|
|
3275
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getRevenueBySport(options).then((request) => request(this.axios, this.basePath));
|
|
3276
|
+
}
|
|
2902
3277
|
/**
|
|
2903
3278
|
* Récupère les 10 prochaines réservations
|
|
2904
3279
|
* @param {*} [options] Override http request option.
|
|
@@ -2908,6 +3283,15 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2908
3283
|
getTenNextBookings(options) {
|
|
2909
3284
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getTenNextBookings(options).then((request) => request(this.axios, this.basePath));
|
|
2910
3285
|
}
|
|
3286
|
+
/**
|
|
3287
|
+
* Classement des terrains les plus réservés
|
|
3288
|
+
* @param {*} [options] Override http request option.
|
|
3289
|
+
* @throws {RequiredError}
|
|
3290
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3291
|
+
*/
|
|
3292
|
+
getTopCourtsByBookings(options) {
|
|
3293
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getTopCourtsByBookings(options).then((request) => request(this.axios, this.basePath));
|
|
3294
|
+
}
|
|
2911
3295
|
/**
|
|
2912
3296
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2913
3297
|
* @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -3386,26 +3770,22 @@ exports.ClubRolesStaffApi = ClubRolesStaffApi;
|
|
|
3386
3770
|
const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
3387
3771
|
return {
|
|
3388
3772
|
/**
|
|
3389
|
-
*
|
|
3390
|
-
* @param {
|
|
3391
|
-
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
3773
|
+
*
|
|
3774
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
3392
3775
|
* @param {*} [options] Override http request option.
|
|
3393
3776
|
* @throws {RequiredError}
|
|
3394
3777
|
*/
|
|
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)));
|
|
3778
|
+
updateClubGeneralSettings: (updateClubGeneralSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubGeneralSettingsRequest_1, ...args_1], void 0, function* (updateClubGeneralSettingsRequest, options = {}) {
|
|
3779
|
+
// verify required parameter 'updateClubGeneralSettingsRequest' is not null or undefined
|
|
3780
|
+
(0, common_1.assertParamExists)('updateClubGeneralSettings', 'updateClubGeneralSettingsRequest', updateClubGeneralSettingsRequest);
|
|
3781
|
+
const localVarPath = `/api/club-settings/settings/general`;
|
|
3402
3782
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3403
3783
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3404
3784
|
let baseOptions;
|
|
3405
3785
|
if (configuration) {
|
|
3406
3786
|
baseOptions = configuration.baseOptions;
|
|
3407
3787
|
}
|
|
3408
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3788
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3409
3789
|
const localVarHeaderParameter = {};
|
|
3410
3790
|
const localVarQueryParameter = {};
|
|
3411
3791
|
// authentication bearerAuth required
|
|
@@ -3415,76 +3795,86 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3415
3795
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3416
3796
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3417
3797
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3418
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
3798
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubGeneralSettingsRequest, localVarRequestOptions, configuration);
|
|
3419
3799
|
return {
|
|
3420
3800
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3421
3801
|
options: localVarRequestOptions,
|
|
3422
3802
|
};
|
|
3423
3803
|
}),
|
|
3424
3804
|
/**
|
|
3425
|
-
*
|
|
3805
|
+
*
|
|
3806
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
3426
3807
|
* @param {*} [options] Override http request option.
|
|
3427
3808
|
* @throws {RequiredError}
|
|
3428
3809
|
*/
|
|
3429
|
-
|
|
3430
|
-
|
|
3810
|
+
updateHoursSettings: (updateClubHoursSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubHoursSettingsRequest_1, ...args_1], void 0, function* (updateClubHoursSettingsRequest, options = {}) {
|
|
3811
|
+
// verify required parameter 'updateClubHoursSettingsRequest' is not null or undefined
|
|
3812
|
+
(0, common_1.assertParamExists)('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
|
|
3813
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
3431
3814
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3432
3815
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3433
3816
|
let baseOptions;
|
|
3434
3817
|
if (configuration) {
|
|
3435
3818
|
baseOptions = configuration.baseOptions;
|
|
3436
3819
|
}
|
|
3437
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3820
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3438
3821
|
const localVarHeaderParameter = {};
|
|
3439
3822
|
const localVarQueryParameter = {};
|
|
3440
3823
|
// authentication bearerAuth required
|
|
3441
3824
|
// http bearer authentication required
|
|
3442
3825
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3826
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3443
3827
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3444
3828
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3445
3829
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3830
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
|
|
3446
3831
|
return {
|
|
3447
3832
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3448
3833
|
options: localVarRequestOptions,
|
|
3449
3834
|
};
|
|
3450
3835
|
}),
|
|
3451
3836
|
/**
|
|
3452
|
-
*
|
|
3837
|
+
*
|
|
3838
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
3453
3839
|
* @param {*} [options] Override http request option.
|
|
3454
3840
|
* @throws {RequiredError}
|
|
3455
3841
|
*/
|
|
3456
|
-
|
|
3457
|
-
|
|
3842
|
+
updatePresentationSettings: (clubPresentationSettingsResponse_1, ...args_1) => __awaiter(this, [clubPresentationSettingsResponse_1, ...args_1], void 0, function* (clubPresentationSettingsResponse, options = {}) {
|
|
3843
|
+
// verify required parameter 'clubPresentationSettingsResponse' is not null or undefined
|
|
3844
|
+
(0, common_1.assertParamExists)('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse);
|
|
3845
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
3458
3846
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3459
3847
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3460
3848
|
let baseOptions;
|
|
3461
3849
|
if (configuration) {
|
|
3462
3850
|
baseOptions = configuration.baseOptions;
|
|
3463
3851
|
}
|
|
3464
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3852
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3465
3853
|
const localVarHeaderParameter = {};
|
|
3466
3854
|
const localVarQueryParameter = {};
|
|
3467
3855
|
// authentication bearerAuth required
|
|
3468
3856
|
// http bearer authentication required
|
|
3469
3857
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3858
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3470
3859
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3471
3860
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3472
3861
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3862
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clubPresentationSettingsResponse, localVarRequestOptions, configuration);
|
|
3473
3863
|
return {
|
|
3474
3864
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3475
3865
|
options: localVarRequestOptions,
|
|
3476
3866
|
};
|
|
3477
3867
|
}),
|
|
3478
3868
|
/**
|
|
3479
|
-
*
|
|
3480
|
-
* @param {
|
|
3869
|
+
*
|
|
3870
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
3481
3871
|
* @param {*} [options] Override http request option.
|
|
3482
3872
|
* @throws {RequiredError}
|
|
3483
3873
|
*/
|
|
3484
|
-
|
|
3485
|
-
// verify required parameter '
|
|
3486
|
-
(0, common_1.assertParamExists)('
|
|
3487
|
-
const localVarPath = `/api/club-settings`;
|
|
3874
|
+
updateReservationSettings: (updateClubReservationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubReservationSettingsRequest_1, ...args_1], void 0, function* (updateClubReservationSettingsRequest, options = {}) {
|
|
3875
|
+
// verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
|
|
3876
|
+
(0, common_1.assertParamExists)('updateReservationSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest);
|
|
3877
|
+
const localVarPath = `/api/club-settings/reservation`;
|
|
3488
3878
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3489
3879
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3490
3880
|
let baseOptions;
|
|
@@ -3501,7 +3891,7 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3501
3891
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3502
3892
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3503
3893
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3504
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
3894
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
|
|
3505
3895
|
return {
|
|
3506
3896
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3507
3897
|
options: localVarRequestOptions,
|
|
@@ -3518,61 +3908,62 @@ const ClubSettingsManagerApiFp = function (configuration) {
|
|
|
3518
3908
|
const localVarAxiosParamCreator = (0, exports.ClubSettingsManagerApiAxiosParamCreator)(configuration);
|
|
3519
3909
|
return {
|
|
3520
3910
|
/**
|
|
3521
|
-
*
|
|
3522
|
-
* @param {
|
|
3523
|
-
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
3911
|
+
*
|
|
3912
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
3524
3913
|
* @param {*} [options] Override http request option.
|
|
3525
3914
|
* @throws {RequiredError}
|
|
3526
3915
|
*/
|
|
3527
|
-
|
|
3916
|
+
updateClubGeneralSettings(updateClubGeneralSettingsRequest, options) {
|
|
3528
3917
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3529
3918
|
var _a, _b, _c;
|
|
3530
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3919
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
|
|
3531
3920
|
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['ClubSettingsManagerApi.
|
|
3921
|
+
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;
|
|
3533
3922
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3534
3923
|
});
|
|
3535
3924
|
},
|
|
3536
3925
|
/**
|
|
3537
|
-
*
|
|
3926
|
+
*
|
|
3927
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
3538
3928
|
* @param {*} [options] Override http request option.
|
|
3539
3929
|
* @throws {RequiredError}
|
|
3540
3930
|
*/
|
|
3541
|
-
|
|
3931
|
+
updateHoursSettings(updateClubHoursSettingsRequest, options) {
|
|
3542
3932
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3543
3933
|
var _a, _b, _c;
|
|
3544
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3934
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
|
|
3545
3935
|
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['ClubSettingsManagerApi.
|
|
3936
|
+
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;
|
|
3547
3937
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3548
3938
|
});
|
|
3549
3939
|
},
|
|
3550
3940
|
/**
|
|
3551
|
-
*
|
|
3941
|
+
*
|
|
3942
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
3552
3943
|
* @param {*} [options] Override http request option.
|
|
3553
3944
|
* @throws {RequiredError}
|
|
3554
3945
|
*/
|
|
3555
|
-
|
|
3946
|
+
updatePresentationSettings(clubPresentationSettingsResponse, options) {
|
|
3556
3947
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3557
3948
|
var _a, _b, _c;
|
|
3558
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3949
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
|
|
3559
3950
|
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['ClubSettingsManagerApi.
|
|
3951
|
+
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;
|
|
3561
3952
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3562
3953
|
});
|
|
3563
3954
|
},
|
|
3564
3955
|
/**
|
|
3565
|
-
*
|
|
3566
|
-
* @param {
|
|
3956
|
+
*
|
|
3957
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
3567
3958
|
* @param {*} [options] Override http request option.
|
|
3568
3959
|
* @throws {RequiredError}
|
|
3569
3960
|
*/
|
|
3570
|
-
|
|
3961
|
+
updateReservationSettings(updateClubReservationSettingsRequest, options) {
|
|
3571
3962
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3572
3963
|
var _a, _b, _c;
|
|
3573
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3964
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
|
|
3574
3965
|
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['ClubSettingsManagerApi.
|
|
3966
|
+
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;
|
|
3576
3967
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3577
3968
|
});
|
|
3578
3969
|
},
|
|
@@ -3587,38 +3978,40 @@ const ClubSettingsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
3587
3978
|
const localVarFp = (0, exports.ClubSettingsManagerApiFp)(configuration);
|
|
3588
3979
|
return {
|
|
3589
3980
|
/**
|
|
3590
|
-
*
|
|
3591
|
-
* @param {
|
|
3981
|
+
*
|
|
3982
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
3592
3983
|
* @param {*} [options] Override http request option.
|
|
3593
3984
|
* @throws {RequiredError}
|
|
3594
3985
|
*/
|
|
3595
|
-
|
|
3596
|
-
return localVarFp.
|
|
3986
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
3987
|
+
return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3597
3988
|
},
|
|
3598
3989
|
/**
|
|
3599
|
-
*
|
|
3990
|
+
*
|
|
3991
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
3600
3992
|
* @param {*} [options] Override http request option.
|
|
3601
3993
|
* @throws {RequiredError}
|
|
3602
3994
|
*/
|
|
3603
|
-
|
|
3604
|
-
return localVarFp.
|
|
3995
|
+
updateHoursSettings(requestParameters, options) {
|
|
3996
|
+
return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3605
3997
|
},
|
|
3606
3998
|
/**
|
|
3607
|
-
*
|
|
3999
|
+
*
|
|
4000
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
3608
4001
|
* @param {*} [options] Override http request option.
|
|
3609
4002
|
* @throws {RequiredError}
|
|
3610
4003
|
*/
|
|
3611
|
-
|
|
3612
|
-
return localVarFp.
|
|
4004
|
+
updatePresentationSettings(requestParameters, options) {
|
|
4005
|
+
return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
|
|
3613
4006
|
},
|
|
3614
4007
|
/**
|
|
3615
|
-
*
|
|
3616
|
-
* @param {
|
|
4008
|
+
*
|
|
4009
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
3617
4010
|
* @param {*} [options] Override http request option.
|
|
3618
4011
|
* @throws {RequiredError}
|
|
3619
4012
|
*/
|
|
3620
|
-
|
|
3621
|
-
return localVarFp.
|
|
4013
|
+
updateReservationSettings(requestParameters, options) {
|
|
4014
|
+
return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3622
4015
|
},
|
|
3623
4016
|
};
|
|
3624
4017
|
};
|
|
@@ -3631,45 +4024,317 @@ exports.ClubSettingsManagerApiFactory = ClubSettingsManagerApiFactory;
|
|
|
3631
4024
|
*/
|
|
3632
4025
|
class ClubSettingsManagerApi extends base_1.BaseAPI {
|
|
3633
4026
|
/**
|
|
3634
|
-
*
|
|
3635
|
-
* @param {
|
|
4027
|
+
*
|
|
4028
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
3636
4029
|
* @param {*} [options] Override http request option.
|
|
3637
4030
|
* @throws {RequiredError}
|
|
3638
4031
|
* @memberof ClubSettingsManagerApi
|
|
3639
4032
|
*/
|
|
3640
|
-
|
|
3641
|
-
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).
|
|
4033
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
4034
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3642
4035
|
}
|
|
3643
4036
|
/**
|
|
3644
|
-
*
|
|
4037
|
+
*
|
|
4038
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
3645
4039
|
* @param {*} [options] Override http request option.
|
|
3646
4040
|
* @throws {RequiredError}
|
|
3647
4041
|
* @memberof ClubSettingsManagerApi
|
|
3648
4042
|
*/
|
|
3649
|
-
|
|
3650
|
-
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).
|
|
4043
|
+
updateHoursSettings(requestParameters, options) {
|
|
4044
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3651
4045
|
}
|
|
3652
4046
|
/**
|
|
3653
|
-
*
|
|
4047
|
+
*
|
|
4048
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
3654
4049
|
* @param {*} [options] Override http request option.
|
|
3655
4050
|
* @throws {RequiredError}
|
|
3656
4051
|
* @memberof ClubSettingsManagerApi
|
|
3657
4052
|
*/
|
|
3658
|
-
|
|
3659
|
-
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).
|
|
4053
|
+
updatePresentationSettings(requestParameters, options) {
|
|
4054
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
|
|
3660
4055
|
}
|
|
3661
4056
|
/**
|
|
3662
|
-
*
|
|
3663
|
-
* @param {
|
|
4057
|
+
*
|
|
4058
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
3664
4059
|
* @param {*} [options] Override http request option.
|
|
3665
4060
|
* @throws {RequiredError}
|
|
3666
4061
|
* @memberof ClubSettingsManagerApi
|
|
3667
4062
|
*/
|
|
3668
|
-
|
|
3669
|
-
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).
|
|
4063
|
+
updateReservationSettings(requestParameters, options) {
|
|
4064
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3670
4065
|
}
|
|
3671
4066
|
}
|
|
3672
4067
|
exports.ClubSettingsManagerApi = ClubSettingsManagerApi;
|
|
4068
|
+
/**
|
|
4069
|
+
* ClubSettingsStaffApi - axios parameter creator
|
|
4070
|
+
* @export
|
|
4071
|
+
*/
|
|
4072
|
+
const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
|
|
4073
|
+
return {
|
|
4074
|
+
/**
|
|
4075
|
+
*
|
|
4076
|
+
* @param {*} [options] Override http request option.
|
|
4077
|
+
* @throws {RequiredError}
|
|
4078
|
+
*/
|
|
4079
|
+
getClubGeneralSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4080
|
+
const localVarPath = `/api/club-settings/settings/general`;
|
|
4081
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4082
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4083
|
+
let baseOptions;
|
|
4084
|
+
if (configuration) {
|
|
4085
|
+
baseOptions = configuration.baseOptions;
|
|
4086
|
+
}
|
|
4087
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4088
|
+
const localVarHeaderParameter = {};
|
|
4089
|
+
const localVarQueryParameter = {};
|
|
4090
|
+
// authentication bearerAuth required
|
|
4091
|
+
// http bearer authentication required
|
|
4092
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4093
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4094
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4095
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4096
|
+
return {
|
|
4097
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4098
|
+
options: localVarRequestOptions,
|
|
4099
|
+
};
|
|
4100
|
+
}),
|
|
4101
|
+
/**
|
|
4102
|
+
*
|
|
4103
|
+
* @param {*} [options] Override http request option.
|
|
4104
|
+
* @throws {RequiredError}
|
|
4105
|
+
*/
|
|
4106
|
+
getHoursSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4107
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
4108
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4109
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4110
|
+
let baseOptions;
|
|
4111
|
+
if (configuration) {
|
|
4112
|
+
baseOptions = configuration.baseOptions;
|
|
4113
|
+
}
|
|
4114
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4115
|
+
const localVarHeaderParameter = {};
|
|
4116
|
+
const localVarQueryParameter = {};
|
|
4117
|
+
// authentication bearerAuth required
|
|
4118
|
+
// http bearer authentication required
|
|
4119
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4120
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4121
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4122
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4123
|
+
return {
|
|
4124
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4125
|
+
options: localVarRequestOptions,
|
|
4126
|
+
};
|
|
4127
|
+
}),
|
|
4128
|
+
/**
|
|
4129
|
+
*
|
|
4130
|
+
* @param {*} [options] Override http request option.
|
|
4131
|
+
* @throws {RequiredError}
|
|
4132
|
+
*/
|
|
4133
|
+
getPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4134
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
4135
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4136
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4137
|
+
let baseOptions;
|
|
4138
|
+
if (configuration) {
|
|
4139
|
+
baseOptions = configuration.baseOptions;
|
|
4140
|
+
}
|
|
4141
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4142
|
+
const localVarHeaderParameter = {};
|
|
4143
|
+
const localVarQueryParameter = {};
|
|
4144
|
+
// authentication bearerAuth required
|
|
4145
|
+
// http bearer authentication required
|
|
4146
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4147
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4148
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4149
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4150
|
+
return {
|
|
4151
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4152
|
+
options: localVarRequestOptions,
|
|
4153
|
+
};
|
|
4154
|
+
}),
|
|
4155
|
+
/**
|
|
4156
|
+
*
|
|
4157
|
+
* @param {*} [options] Override http request option.
|
|
4158
|
+
* @throws {RequiredError}
|
|
4159
|
+
*/
|
|
4160
|
+
getReservationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4161
|
+
const localVarPath = `/api/club-settings/reservation`;
|
|
4162
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4163
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4164
|
+
let baseOptions;
|
|
4165
|
+
if (configuration) {
|
|
4166
|
+
baseOptions = configuration.baseOptions;
|
|
4167
|
+
}
|
|
4168
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4169
|
+
const localVarHeaderParameter = {};
|
|
4170
|
+
const localVarQueryParameter = {};
|
|
4171
|
+
// authentication bearerAuth required
|
|
4172
|
+
// http bearer authentication required
|
|
4173
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4174
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4175
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4176
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4177
|
+
return {
|
|
4178
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4179
|
+
options: localVarRequestOptions,
|
|
4180
|
+
};
|
|
4181
|
+
}),
|
|
4182
|
+
};
|
|
4183
|
+
};
|
|
4184
|
+
exports.ClubSettingsStaffApiAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator;
|
|
4185
|
+
/**
|
|
4186
|
+
* ClubSettingsStaffApi - functional programming interface
|
|
4187
|
+
* @export
|
|
4188
|
+
*/
|
|
4189
|
+
const ClubSettingsStaffApiFp = function (configuration) {
|
|
4190
|
+
const localVarAxiosParamCreator = (0, exports.ClubSettingsStaffApiAxiosParamCreator)(configuration);
|
|
4191
|
+
return {
|
|
4192
|
+
/**
|
|
4193
|
+
*
|
|
4194
|
+
* @param {*} [options] Override http request option.
|
|
4195
|
+
* @throws {RequiredError}
|
|
4196
|
+
*/
|
|
4197
|
+
getClubGeneralSettings(options) {
|
|
4198
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4199
|
+
var _a, _b, _c;
|
|
4200
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubGeneralSettings(options);
|
|
4201
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4202
|
+
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;
|
|
4203
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4204
|
+
});
|
|
4205
|
+
},
|
|
4206
|
+
/**
|
|
4207
|
+
*
|
|
4208
|
+
* @param {*} [options] Override http request option.
|
|
4209
|
+
* @throws {RequiredError}
|
|
4210
|
+
*/
|
|
4211
|
+
getHoursSettings(options) {
|
|
4212
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4213
|
+
var _a, _b, _c;
|
|
4214
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getHoursSettings(options);
|
|
4215
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4216
|
+
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;
|
|
4217
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4218
|
+
});
|
|
4219
|
+
},
|
|
4220
|
+
/**
|
|
4221
|
+
*
|
|
4222
|
+
* @param {*} [options] Override http request option.
|
|
4223
|
+
* @throws {RequiredError}
|
|
4224
|
+
*/
|
|
4225
|
+
getPresentationSettings(options) {
|
|
4226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4227
|
+
var _a, _b, _c;
|
|
4228
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPresentationSettings(options);
|
|
4229
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4230
|
+
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;
|
|
4231
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4232
|
+
});
|
|
4233
|
+
},
|
|
4234
|
+
/**
|
|
4235
|
+
*
|
|
4236
|
+
* @param {*} [options] Override http request option.
|
|
4237
|
+
* @throws {RequiredError}
|
|
4238
|
+
*/
|
|
4239
|
+
getReservationSettings(options) {
|
|
4240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4241
|
+
var _a, _b, _c;
|
|
4242
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReservationSettings(options);
|
|
4243
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4244
|
+
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;
|
|
4245
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4246
|
+
});
|
|
4247
|
+
},
|
|
4248
|
+
};
|
|
4249
|
+
};
|
|
4250
|
+
exports.ClubSettingsStaffApiFp = ClubSettingsStaffApiFp;
|
|
4251
|
+
/**
|
|
4252
|
+
* ClubSettingsStaffApi - factory interface
|
|
4253
|
+
* @export
|
|
4254
|
+
*/
|
|
4255
|
+
const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
4256
|
+
const localVarFp = (0, exports.ClubSettingsStaffApiFp)(configuration);
|
|
4257
|
+
return {
|
|
4258
|
+
/**
|
|
4259
|
+
*
|
|
4260
|
+
* @param {*} [options] Override http request option.
|
|
4261
|
+
* @throws {RequiredError}
|
|
4262
|
+
*/
|
|
4263
|
+
getClubGeneralSettings(options) {
|
|
4264
|
+
return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
|
|
4265
|
+
},
|
|
4266
|
+
/**
|
|
4267
|
+
*
|
|
4268
|
+
* @param {*} [options] Override http request option.
|
|
4269
|
+
* @throws {RequiredError}
|
|
4270
|
+
*/
|
|
4271
|
+
getHoursSettings(options) {
|
|
4272
|
+
return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
|
|
4273
|
+
},
|
|
4274
|
+
/**
|
|
4275
|
+
*
|
|
4276
|
+
* @param {*} [options] Override http request option.
|
|
4277
|
+
* @throws {RequiredError}
|
|
4278
|
+
*/
|
|
4279
|
+
getPresentationSettings(options) {
|
|
4280
|
+
return localVarFp.getPresentationSettings(options).then((request) => request(axios, basePath));
|
|
4281
|
+
},
|
|
4282
|
+
/**
|
|
4283
|
+
*
|
|
4284
|
+
* @param {*} [options] Override http request option.
|
|
4285
|
+
* @throws {RequiredError}
|
|
4286
|
+
*/
|
|
4287
|
+
getReservationSettings(options) {
|
|
4288
|
+
return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
|
|
4289
|
+
},
|
|
4290
|
+
};
|
|
4291
|
+
};
|
|
4292
|
+
exports.ClubSettingsStaffApiFactory = ClubSettingsStaffApiFactory;
|
|
4293
|
+
/**
|
|
4294
|
+
* ClubSettingsStaffApi - object-oriented interface
|
|
4295
|
+
* @export
|
|
4296
|
+
* @class ClubSettingsStaffApi
|
|
4297
|
+
* @extends {BaseAPI}
|
|
4298
|
+
*/
|
|
4299
|
+
class ClubSettingsStaffApi extends base_1.BaseAPI {
|
|
4300
|
+
/**
|
|
4301
|
+
*
|
|
4302
|
+
* @param {*} [options] Override http request option.
|
|
4303
|
+
* @throws {RequiredError}
|
|
4304
|
+
* @memberof ClubSettingsStaffApi
|
|
4305
|
+
*/
|
|
4306
|
+
getClubGeneralSettings(options) {
|
|
4307
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
|
|
4308
|
+
}
|
|
4309
|
+
/**
|
|
4310
|
+
*
|
|
4311
|
+
* @param {*} [options] Override http request option.
|
|
4312
|
+
* @throws {RequiredError}
|
|
4313
|
+
* @memberof ClubSettingsStaffApi
|
|
4314
|
+
*/
|
|
4315
|
+
getHoursSettings(options) {
|
|
4316
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
|
|
4317
|
+
}
|
|
4318
|
+
/**
|
|
4319
|
+
*
|
|
4320
|
+
* @param {*} [options] Override http request option.
|
|
4321
|
+
* @throws {RequiredError}
|
|
4322
|
+
* @memberof ClubSettingsStaffApi
|
|
4323
|
+
*/
|
|
4324
|
+
getPresentationSettings(options) {
|
|
4325
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
4326
|
+
}
|
|
4327
|
+
/**
|
|
4328
|
+
*
|
|
4329
|
+
* @param {*} [options] Override http request option.
|
|
4330
|
+
* @throws {RequiredError}
|
|
4331
|
+
* @memberof ClubSettingsStaffApi
|
|
4332
|
+
*/
|
|
4333
|
+
getReservationSettings(options) {
|
|
4334
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
4335
|
+
}
|
|
4336
|
+
}
|
|
4337
|
+
exports.ClubSettingsStaffApi = ClubSettingsStaffApi;
|
|
3673
4338
|
/**
|
|
3674
4339
|
* ClubsApi - axios parameter creator
|
|
3675
4340
|
* @export
|
|
@@ -4450,55 +5115,19 @@ exports.ClubsApi = ClubsApi;
|
|
|
4450
5115
|
/**
|
|
4451
5116
|
* ClubsManagerApi - axios parameter creator
|
|
4452
5117
|
* @export
|
|
4453
|
-
*/
|
|
4454
|
-
const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
4455
|
-
return {
|
|
4456
|
-
/**
|
|
4457
|
-
* Ajoute un membre à un club
|
|
4458
|
-
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
4459
|
-
* @param {*} [options] Override http request option.
|
|
4460
|
-
* @throws {RequiredError}
|
|
4461
|
-
*/
|
|
4462
|
-
addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
|
|
4463
|
-
// verify required parameter 'addClubMemberRequest' is not null or undefined
|
|
4464
|
-
(0, common_1.assertParamExists)('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
4465
|
-
const localVarPath = `/api/clubs/members`;
|
|
4466
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4467
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4468
|
-
let baseOptions;
|
|
4469
|
-
if (configuration) {
|
|
4470
|
-
baseOptions = configuration.baseOptions;
|
|
4471
|
-
}
|
|
4472
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4473
|
-
const localVarHeaderParameter = {};
|
|
4474
|
-
const localVarQueryParameter = {};
|
|
4475
|
-
// authentication bearerAuth required
|
|
4476
|
-
// http bearer authentication required
|
|
4477
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4478
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4479
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4480
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4481
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4482
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
4483
|
-
return {
|
|
4484
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4485
|
-
options: localVarRequestOptions,
|
|
4486
|
-
};
|
|
4487
|
-
}),
|
|
5118
|
+
*/
|
|
5119
|
+
const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
5120
|
+
return {
|
|
4488
5121
|
/**
|
|
4489
|
-
*
|
|
4490
|
-
* @param {
|
|
4491
|
-
* @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
|
|
5122
|
+
* Ajoute un membre à un club
|
|
5123
|
+
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
4492
5124
|
* @param {*} [options] Override http request option.
|
|
4493
5125
|
* @throws {RequiredError}
|
|
4494
5126
|
*/
|
|
4495
|
-
|
|
4496
|
-
// verify required parameter '
|
|
4497
|
-
(0, common_1.assertParamExists)('
|
|
4498
|
-
|
|
4499
|
-
(0, common_1.assertParamExists)('addCreditsToCustomer', 'addCreditsToCustomerRequest', addCreditsToCustomerRequest);
|
|
4500
|
-
const localVarPath = `/api/clubs/customers/{userId}/credits`
|
|
4501
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
5127
|
+
addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
|
|
5128
|
+
// verify required parameter 'addClubMemberRequest' is not null or undefined
|
|
5129
|
+
(0, common_1.assertParamExists)('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
5130
|
+
const localVarPath = `/api/clubs/members`;
|
|
4502
5131
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4503
5132
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4504
5133
|
let baseOptions;
|
|
@@ -4515,7 +5144,7 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4515
5144
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4516
5145
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4517
5146
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4518
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
5147
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
4519
5148
|
return {
|
|
4520
5149
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4521
5150
|
options: localVarRequestOptions,
|
|
@@ -4997,6 +5626,74 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4997
5626
|
options: localVarRequestOptions,
|
|
4998
5627
|
};
|
|
4999
5628
|
}),
|
|
5629
|
+
/**
|
|
5630
|
+
* Met à jour un membre d\'un club
|
|
5631
|
+
* @param {string} userId
|
|
5632
|
+
* @param {UpdateClubMemberRequest} updateClubMemberRequest
|
|
5633
|
+
* @param {*} [options] Override http request option.
|
|
5634
|
+
* @throws {RequiredError}
|
|
5635
|
+
*/
|
|
5636
|
+
updateClubMember: (userId_1, updateClubMemberRequest_1, ...args_1) => __awaiter(this, [userId_1, updateClubMemberRequest_1, ...args_1], void 0, function* (userId, updateClubMemberRequest, options = {}) {
|
|
5637
|
+
// verify required parameter 'userId' is not null or undefined
|
|
5638
|
+
(0, common_1.assertParamExists)('updateClubMember', 'userId', userId);
|
|
5639
|
+
// verify required parameter 'updateClubMemberRequest' is not null or undefined
|
|
5640
|
+
(0, common_1.assertParamExists)('updateClubMember', 'updateClubMemberRequest', updateClubMemberRequest);
|
|
5641
|
+
const localVarPath = `/api/clubs/members/{userId}`
|
|
5642
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
5643
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5644
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5645
|
+
let baseOptions;
|
|
5646
|
+
if (configuration) {
|
|
5647
|
+
baseOptions = configuration.baseOptions;
|
|
5648
|
+
}
|
|
5649
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
5650
|
+
const localVarHeaderParameter = {};
|
|
5651
|
+
const localVarQueryParameter = {};
|
|
5652
|
+
// authentication bearerAuth required
|
|
5653
|
+
// http bearer authentication required
|
|
5654
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5655
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5656
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5657
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5658
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5659
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubMemberRequest, localVarRequestOptions, configuration);
|
|
5660
|
+
return {
|
|
5661
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5662
|
+
options: localVarRequestOptions,
|
|
5663
|
+
};
|
|
5664
|
+
}),
|
|
5665
|
+
/**
|
|
5666
|
+
*
|
|
5667
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
5668
|
+
* @param {*} [options] Override http request option.
|
|
5669
|
+
* @throws {RequiredError}
|
|
5670
|
+
*/
|
|
5671
|
+
updateClubPresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
|
|
5672
|
+
// verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
|
|
5673
|
+
(0, common_1.assertParamExists)('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
|
|
5674
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
5675
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5676
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5677
|
+
let baseOptions;
|
|
5678
|
+
if (configuration) {
|
|
5679
|
+
baseOptions = configuration.baseOptions;
|
|
5680
|
+
}
|
|
5681
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
5682
|
+
const localVarHeaderParameter = {};
|
|
5683
|
+
const localVarQueryParameter = {};
|
|
5684
|
+
// authentication bearerAuth required
|
|
5685
|
+
// http bearer authentication required
|
|
5686
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5687
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5688
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5689
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5690
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5691
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
|
|
5692
|
+
return {
|
|
5693
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5694
|
+
options: localVarRequestOptions,
|
|
5695
|
+
};
|
|
5696
|
+
}),
|
|
5000
5697
|
/**
|
|
5001
5698
|
*
|
|
5002
5699
|
* @param {string} courtId
|
|
@@ -5094,22 +5791,6 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
5094
5791
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5095
5792
|
});
|
|
5096
5793
|
},
|
|
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
5794
|
/**
|
|
5114
5795
|
*
|
|
5115
5796
|
* @param {string} priceId
|
|
@@ -5336,6 +6017,37 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
5336
6017
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5337
6018
|
});
|
|
5338
6019
|
},
|
|
6020
|
+
/**
|
|
6021
|
+
* Met à jour un membre d\'un club
|
|
6022
|
+
* @param {string} userId
|
|
6023
|
+
* @param {UpdateClubMemberRequest} updateClubMemberRequest
|
|
6024
|
+
* @param {*} [options] Override http request option.
|
|
6025
|
+
* @throws {RequiredError}
|
|
6026
|
+
*/
|
|
6027
|
+
updateClubMember(userId, updateClubMemberRequest, options) {
|
|
6028
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6029
|
+
var _a, _b, _c;
|
|
6030
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubMember(userId, updateClubMemberRequest, options);
|
|
6031
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6032
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.updateClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6033
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6034
|
+
});
|
|
6035
|
+
},
|
|
6036
|
+
/**
|
|
6037
|
+
*
|
|
6038
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
6039
|
+
* @param {*} [options] Override http request option.
|
|
6040
|
+
* @throws {RequiredError}
|
|
6041
|
+
*/
|
|
6042
|
+
updateClubPresentationSettings(updateClubPresentationSettingsRequest, options) {
|
|
6043
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6044
|
+
var _a, _b, _c;
|
|
6045
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
|
|
6046
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6047
|
+
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;
|
|
6048
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6049
|
+
});
|
|
6050
|
+
},
|
|
5339
6051
|
/**
|
|
5340
6052
|
*
|
|
5341
6053
|
* @param {string} courtId
|
|
@@ -5387,15 +6099,6 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
5387
6099
|
addClubMember(requestParameters, options) {
|
|
5388
6100
|
return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
5389
6101
|
},
|
|
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
6102
|
/**
|
|
5400
6103
|
*
|
|
5401
6104
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5530,6 +6233,24 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
5530
6233
|
updateClubInfos(requestParameters, options) {
|
|
5531
6234
|
return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
5532
6235
|
},
|
|
6236
|
+
/**
|
|
6237
|
+
* Met à jour un membre d\'un club
|
|
6238
|
+
* @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
|
|
6239
|
+
* @param {*} [options] Override http request option.
|
|
6240
|
+
* @throws {RequiredError}
|
|
6241
|
+
*/
|
|
6242
|
+
updateClubMember(requestParameters, options) {
|
|
6243
|
+
return localVarFp.updateClubMember(requestParameters.userId, requestParameters.updateClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
6244
|
+
},
|
|
6245
|
+
/**
|
|
6246
|
+
*
|
|
6247
|
+
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
6248
|
+
* @param {*} [options] Override http request option.
|
|
6249
|
+
* @throws {RequiredError}
|
|
6250
|
+
*/
|
|
6251
|
+
updateClubPresentationSettings(requestParameters, options) {
|
|
6252
|
+
return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
6253
|
+
},
|
|
5533
6254
|
/**
|
|
5534
6255
|
*
|
|
5535
6256
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5568,16 +6289,6 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
5568
6289
|
addClubMember(requestParameters, options) {
|
|
5569
6290
|
return (0, exports.ClubsManagerApiFp)(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5570
6291
|
}
|
|
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
6292
|
/**
|
|
5582
6293
|
*
|
|
5583
6294
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5727,6 +6438,26 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
5727
6438
|
updateClubInfos(requestParameters, options) {
|
|
5728
6439
|
return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
5729
6440
|
}
|
|
6441
|
+
/**
|
|
6442
|
+
* Met à jour un membre d\'un club
|
|
6443
|
+
* @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
|
|
6444
|
+
* @param {*} [options] Override http request option.
|
|
6445
|
+
* @throws {RequiredError}
|
|
6446
|
+
* @memberof ClubsManagerApi
|
|
6447
|
+
*/
|
|
6448
|
+
updateClubMember(requestParameters, options) {
|
|
6449
|
+
return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubMember(requestParameters.userId, requestParameters.updateClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6450
|
+
}
|
|
6451
|
+
/**
|
|
6452
|
+
*
|
|
6453
|
+
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
6454
|
+
* @param {*} [options] Override http request option.
|
|
6455
|
+
* @throws {RequiredError}
|
|
6456
|
+
* @memberof ClubsManagerApi
|
|
6457
|
+
*/
|
|
6458
|
+
updateClubPresentationSettings(requestParameters, options) {
|
|
6459
|
+
return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6460
|
+
}
|
|
5730
6461
|
/**
|
|
5731
6462
|
*
|
|
5732
6463
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5836,6 +6567,33 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
5836
6567
|
options: localVarRequestOptions,
|
|
5837
6568
|
};
|
|
5838
6569
|
}),
|
|
6570
|
+
/**
|
|
6571
|
+
*
|
|
6572
|
+
* @param {*} [options] Override http request option.
|
|
6573
|
+
* @throws {RequiredError}
|
|
6574
|
+
*/
|
|
6575
|
+
getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6576
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
6577
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6578
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6579
|
+
let baseOptions;
|
|
6580
|
+
if (configuration) {
|
|
6581
|
+
baseOptions = configuration.baseOptions;
|
|
6582
|
+
}
|
|
6583
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6584
|
+
const localVarHeaderParameter = {};
|
|
6585
|
+
const localVarQueryParameter = {};
|
|
6586
|
+
// authentication bearerAuth required
|
|
6587
|
+
// http bearer authentication required
|
|
6588
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6589
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6590
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6591
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6592
|
+
return {
|
|
6593
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6594
|
+
options: localVarRequestOptions,
|
|
6595
|
+
};
|
|
6596
|
+
}),
|
|
5839
6597
|
/**
|
|
5840
6598
|
* Récupère les rôles d\'un club
|
|
5841
6599
|
* @param {*} [options] Override http request option.
|
|
@@ -6000,6 +6758,20 @@ const ClubsStaffApiFp = function (configuration) {
|
|
|
6000
6758
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6001
6759
|
});
|
|
6002
6760
|
},
|
|
6761
|
+
/**
|
|
6762
|
+
*
|
|
6763
|
+
* @param {*} [options] Override http request option.
|
|
6764
|
+
* @throws {RequiredError}
|
|
6765
|
+
*/
|
|
6766
|
+
getClubPresentationSettings(options) {
|
|
6767
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6768
|
+
var _a, _b, _c;
|
|
6769
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPresentationSettings(options);
|
|
6770
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6771
|
+
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;
|
|
6772
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6773
|
+
});
|
|
6774
|
+
},
|
|
6003
6775
|
/**
|
|
6004
6776
|
* Récupère les rôles d\'un club
|
|
6005
6777
|
* @param {*} [options] Override http request option.
|
|
@@ -6091,6 +6863,14 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
6091
6863
|
getClubMembers(options) {
|
|
6092
6864
|
return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
|
|
6093
6865
|
},
|
|
6866
|
+
/**
|
|
6867
|
+
*
|
|
6868
|
+
* @param {*} [options] Override http request option.
|
|
6869
|
+
* @throws {RequiredError}
|
|
6870
|
+
*/
|
|
6871
|
+
getClubPresentationSettings(options) {
|
|
6872
|
+
return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
|
|
6873
|
+
},
|
|
6094
6874
|
/**
|
|
6095
6875
|
* Récupère les rôles d\'un club
|
|
6096
6876
|
* @param {*} [options] Override http request option.
|
|
@@ -6161,6 +6941,15 @@ class ClubsStaffApi extends base_1.BaseAPI {
|
|
|
6161
6941
|
getClubMembers(options) {
|
|
6162
6942
|
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
|
|
6163
6943
|
}
|
|
6944
|
+
/**
|
|
6945
|
+
*
|
|
6946
|
+
* @param {*} [options] Override http request option.
|
|
6947
|
+
* @throws {RequiredError}
|
|
6948
|
+
* @memberof ClubsStaffApi
|
|
6949
|
+
*/
|
|
6950
|
+
getClubPresentationSettings(options) {
|
|
6951
|
+
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
6952
|
+
}
|
|
6164
6953
|
/**
|
|
6165
6954
|
* Récupère les rôles d\'un club
|
|
6166
6955
|
* @param {*} [options] Override http request option.
|
|
@@ -7428,102 +8217,6 @@ class SportsPublicApi extends base_1.BaseAPI {
|
|
|
7428
8217
|
}
|
|
7429
8218
|
}
|
|
7430
8219
|
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
8220
|
/**
|
|
7528
8221
|
* SubscriptionsManagerApi - axios parameter creator
|
|
7529
8222
|
* @export
|