@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/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.100
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -323,6 +323,11 @@ export const SurfaceType = {
|
|
|
323
323
|
Grass: 'grass',
|
|
324
324
|
Hard: 'hard'
|
|
325
325
|
};
|
|
326
|
+
export const UpdateClubMemberRequestRoleEnum = {
|
|
327
|
+
Admin: 'admin',
|
|
328
|
+
Manager: 'manager',
|
|
329
|
+
Staff: 'staff'
|
|
330
|
+
};
|
|
326
331
|
export const UpdateClubRoleRequestRoleEnum = {
|
|
327
332
|
Admin: 'admin',
|
|
328
333
|
Manager: 'manager',
|
|
@@ -1698,7 +1703,7 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1698
1703
|
* @throws {RequiredError}
|
|
1699
1704
|
*/
|
|
1700
1705
|
listAvailablePrices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1701
|
-
const localVarPath = `/client-accounts/available-prices`;
|
|
1706
|
+
const localVarPath = `/client-accounts/plans/available-prices`;
|
|
1702
1707
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1703
1708
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1704
1709
|
let baseOptions;
|
|
@@ -2252,6 +2257,107 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2252
2257
|
options: localVarRequestOptions,
|
|
2253
2258
|
};
|
|
2254
2259
|
}),
|
|
2260
|
+
/**
|
|
2261
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2262
|
+
* @param {string} playerId
|
|
2263
|
+
* @param {number} [page]
|
|
2264
|
+
* @param {number} [pageSize]
|
|
2265
|
+
* @param {*} [options] Override http request option.
|
|
2266
|
+
* @throws {RequiredError}
|
|
2267
|
+
*/
|
|
2268
|
+
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 = {}) {
|
|
2269
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
2270
|
+
assertParamExists('getClubPlayerBookingsById', 'playerId', playerId);
|
|
2271
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
2272
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2273
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2274
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2275
|
+
let baseOptions;
|
|
2276
|
+
if (configuration) {
|
|
2277
|
+
baseOptions = configuration.baseOptions;
|
|
2278
|
+
}
|
|
2279
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2280
|
+
const localVarHeaderParameter = {};
|
|
2281
|
+
const localVarQueryParameter = {};
|
|
2282
|
+
// authentication bearerAuth required
|
|
2283
|
+
// http bearer authentication required
|
|
2284
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2285
|
+
if (page !== undefined) {
|
|
2286
|
+
localVarQueryParameter['page'] = page;
|
|
2287
|
+
}
|
|
2288
|
+
if (pageSize !== undefined) {
|
|
2289
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2290
|
+
}
|
|
2291
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2293
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2294
|
+
return {
|
|
2295
|
+
url: toPathString(localVarUrlObj),
|
|
2296
|
+
options: localVarRequestOptions,
|
|
2297
|
+
};
|
|
2298
|
+
}),
|
|
2299
|
+
/**
|
|
2300
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2301
|
+
* @param {string} playerId
|
|
2302
|
+
* @param {*} [options] Override http request option.
|
|
2303
|
+
* @throws {RequiredError}
|
|
2304
|
+
*/
|
|
2305
|
+
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
2306
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
2307
|
+
assertParamExists('getClubPlayerById', 'playerId', playerId);
|
|
2308
|
+
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
2309
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2310
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2311
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2312
|
+
let baseOptions;
|
|
2313
|
+
if (configuration) {
|
|
2314
|
+
baseOptions = configuration.baseOptions;
|
|
2315
|
+
}
|
|
2316
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2317
|
+
const localVarHeaderParameter = {};
|
|
2318
|
+
const localVarQueryParameter = {};
|
|
2319
|
+
// authentication bearerAuth required
|
|
2320
|
+
// http bearer authentication required
|
|
2321
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2322
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2323
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2324
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2325
|
+
return {
|
|
2326
|
+
url: toPathString(localVarUrlObj),
|
|
2327
|
+
options: localVarRequestOptions,
|
|
2328
|
+
};
|
|
2329
|
+
}),
|
|
2330
|
+
/**
|
|
2331
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2332
|
+
* @param {string} playerId
|
|
2333
|
+
* @param {*} [options] Override http request option.
|
|
2334
|
+
* @throws {RequiredError}
|
|
2335
|
+
*/
|
|
2336
|
+
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
2337
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
2338
|
+
assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
2339
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
2340
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2341
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2342
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2343
|
+
let baseOptions;
|
|
2344
|
+
if (configuration) {
|
|
2345
|
+
baseOptions = configuration.baseOptions;
|
|
2346
|
+
}
|
|
2347
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2348
|
+
const localVarHeaderParameter = {};
|
|
2349
|
+
const localVarQueryParameter = {};
|
|
2350
|
+
// authentication bearerAuth required
|
|
2351
|
+
// http bearer authentication required
|
|
2352
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2353
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2354
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2355
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2356
|
+
return {
|
|
2357
|
+
url: toPathString(localVarUrlObj),
|
|
2358
|
+
options: localVarRequestOptions,
|
|
2359
|
+
};
|
|
2360
|
+
}),
|
|
2255
2361
|
/**
|
|
2256
2362
|
* Récupère la liste des joueurs du club
|
|
2257
2363
|
* @param {*} [options] Override http request option.
|
|
@@ -2467,6 +2573,60 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2467
2573
|
options: localVarRequestOptions,
|
|
2468
2574
|
};
|
|
2469
2575
|
}),
|
|
2576
|
+
/**
|
|
2577
|
+
* Calcule le taux de fidélisation des joueurs
|
|
2578
|
+
* @param {*} [options] Override http request option.
|
|
2579
|
+
* @throws {RequiredError}
|
|
2580
|
+
*/
|
|
2581
|
+
getRetentionRate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2582
|
+
const localVarPath = `/api/club-analytics/retention-rate`;
|
|
2583
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2584
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2585
|
+
let baseOptions;
|
|
2586
|
+
if (configuration) {
|
|
2587
|
+
baseOptions = configuration.baseOptions;
|
|
2588
|
+
}
|
|
2589
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2590
|
+
const localVarHeaderParameter = {};
|
|
2591
|
+
const localVarQueryParameter = {};
|
|
2592
|
+
// authentication bearerAuth required
|
|
2593
|
+
// http bearer authentication required
|
|
2594
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2595
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2596
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2597
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2598
|
+
return {
|
|
2599
|
+
url: toPathString(localVarUrlObj),
|
|
2600
|
+
options: localVarRequestOptions,
|
|
2601
|
+
};
|
|
2602
|
+
}),
|
|
2603
|
+
/**
|
|
2604
|
+
* Récupère le chiffre d\'affaires par sport
|
|
2605
|
+
* @param {*} [options] Override http request option.
|
|
2606
|
+
* @throws {RequiredError}
|
|
2607
|
+
*/
|
|
2608
|
+
getRevenueBySport: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2609
|
+
const localVarPath = `/api/club-analytics/revenue-by-sport`;
|
|
2610
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2611
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2612
|
+
let baseOptions;
|
|
2613
|
+
if (configuration) {
|
|
2614
|
+
baseOptions = configuration.baseOptions;
|
|
2615
|
+
}
|
|
2616
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2617
|
+
const localVarHeaderParameter = {};
|
|
2618
|
+
const localVarQueryParameter = {};
|
|
2619
|
+
// authentication bearerAuth required
|
|
2620
|
+
// http bearer authentication required
|
|
2621
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2622
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2623
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2624
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2625
|
+
return {
|
|
2626
|
+
url: toPathString(localVarUrlObj),
|
|
2627
|
+
options: localVarRequestOptions,
|
|
2628
|
+
};
|
|
2629
|
+
}),
|
|
2470
2630
|
/**
|
|
2471
2631
|
* Récupère les 10 prochaines réservations
|
|
2472
2632
|
* @param {*} [options] Override http request option.
|
|
@@ -2494,6 +2654,33 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2494
2654
|
options: localVarRequestOptions,
|
|
2495
2655
|
};
|
|
2496
2656
|
}),
|
|
2657
|
+
/**
|
|
2658
|
+
* Classement des terrains les plus réservés
|
|
2659
|
+
* @param {*} [options] Override http request option.
|
|
2660
|
+
* @throws {RequiredError}
|
|
2661
|
+
*/
|
|
2662
|
+
getTopCourtsByBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2663
|
+
const localVarPath = `/api/club-analytics/top-courts`;
|
|
2664
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2665
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2666
|
+
let baseOptions;
|
|
2667
|
+
if (configuration) {
|
|
2668
|
+
baseOptions = configuration.baseOptions;
|
|
2669
|
+
}
|
|
2670
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2671
|
+
const localVarHeaderParameter = {};
|
|
2672
|
+
const localVarQueryParameter = {};
|
|
2673
|
+
// authentication bearerAuth required
|
|
2674
|
+
// http bearer authentication required
|
|
2675
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2676
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2677
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2678
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2679
|
+
return {
|
|
2680
|
+
url: toPathString(localVarUrlObj),
|
|
2681
|
+
options: localVarRequestOptions,
|
|
2682
|
+
};
|
|
2683
|
+
}),
|
|
2497
2684
|
/**
|
|
2498
2685
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2499
2686
|
* @param {string} year
|
|
@@ -2551,6 +2738,53 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2551
2738
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2552
2739
|
});
|
|
2553
2740
|
},
|
|
2741
|
+
/**
|
|
2742
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2743
|
+
* @param {string} playerId
|
|
2744
|
+
* @param {number} [page]
|
|
2745
|
+
* @param {number} [pageSize]
|
|
2746
|
+
* @param {*} [options] Override http request option.
|
|
2747
|
+
* @throws {RequiredError}
|
|
2748
|
+
*/
|
|
2749
|
+
getClubPlayerBookingsById(playerId, page, pageSize, options) {
|
|
2750
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2751
|
+
var _a, _b, _c;
|
|
2752
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, page, pageSize, options);
|
|
2753
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2754
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2755
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2756
|
+
});
|
|
2757
|
+
},
|
|
2758
|
+
/**
|
|
2759
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2760
|
+
* @param {string} playerId
|
|
2761
|
+
* @param {*} [options] Override http request option.
|
|
2762
|
+
* @throws {RequiredError}
|
|
2763
|
+
*/
|
|
2764
|
+
getClubPlayerById(playerId, options) {
|
|
2765
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2766
|
+
var _a, _b, _c;
|
|
2767
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
|
|
2768
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2769
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2770
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2771
|
+
});
|
|
2772
|
+
},
|
|
2773
|
+
/**
|
|
2774
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2775
|
+
* @param {string} playerId
|
|
2776
|
+
* @param {*} [options] Override http request option.
|
|
2777
|
+
* @throws {RequiredError}
|
|
2778
|
+
*/
|
|
2779
|
+
getClubPlayerStatisticsById(playerId, options) {
|
|
2780
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2781
|
+
var _a, _b, _c;
|
|
2782
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
|
|
2783
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2784
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2785
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2786
|
+
});
|
|
2787
|
+
},
|
|
2554
2788
|
/**
|
|
2555
2789
|
* Récupère la liste des joueurs du club
|
|
2556
2790
|
* @param {*} [options] Override http request option.
|
|
@@ -2654,6 +2888,34 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2654
2888
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2655
2889
|
});
|
|
2656
2890
|
},
|
|
2891
|
+
/**
|
|
2892
|
+
* Calcule le taux de fidélisation des joueurs
|
|
2893
|
+
* @param {*} [options] Override http request option.
|
|
2894
|
+
* @throws {RequiredError}
|
|
2895
|
+
*/
|
|
2896
|
+
getRetentionRate(options) {
|
|
2897
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2898
|
+
var _a, _b, _c;
|
|
2899
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRetentionRate(options);
|
|
2900
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2901
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getRetentionRate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2902
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2903
|
+
});
|
|
2904
|
+
},
|
|
2905
|
+
/**
|
|
2906
|
+
* Récupère le chiffre d\'affaires par sport
|
|
2907
|
+
* @param {*} [options] Override http request option.
|
|
2908
|
+
* @throws {RequiredError}
|
|
2909
|
+
*/
|
|
2910
|
+
getRevenueBySport(options) {
|
|
2911
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2912
|
+
var _a, _b, _c;
|
|
2913
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRevenueBySport(options);
|
|
2914
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2915
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getRevenueBySport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2916
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2917
|
+
});
|
|
2918
|
+
},
|
|
2657
2919
|
/**
|
|
2658
2920
|
* Récupère les 10 prochaines réservations
|
|
2659
2921
|
* @param {*} [options] Override http request option.
|
|
@@ -2668,6 +2930,20 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2668
2930
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2669
2931
|
});
|
|
2670
2932
|
},
|
|
2933
|
+
/**
|
|
2934
|
+
* Classement des terrains les plus réservés
|
|
2935
|
+
* @param {*} [options] Override http request option.
|
|
2936
|
+
* @throws {RequiredError}
|
|
2937
|
+
*/
|
|
2938
|
+
getTopCourtsByBookings(options) {
|
|
2939
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2940
|
+
var _a, _b, _c;
|
|
2941
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTopCourtsByBookings(options);
|
|
2942
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2943
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getTopCourtsByBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2944
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2945
|
+
});
|
|
2946
|
+
},
|
|
2671
2947
|
/**
|
|
2672
2948
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2673
2949
|
* @param {string} year
|
|
@@ -2701,6 +2977,33 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
|
|
|
2701
2977
|
getAnalyticsBySport(requestParameters, options) {
|
|
2702
2978
|
return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
2703
2979
|
},
|
|
2980
|
+
/**
|
|
2981
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2982
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2983
|
+
* @param {*} [options] Override http request option.
|
|
2984
|
+
* @throws {RequiredError}
|
|
2985
|
+
*/
|
|
2986
|
+
getClubPlayerBookingsById(requestParameters, options) {
|
|
2987
|
+
return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
2988
|
+
},
|
|
2989
|
+
/**
|
|
2990
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2991
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2992
|
+
* @param {*} [options] Override http request option.
|
|
2993
|
+
* @throws {RequiredError}
|
|
2994
|
+
*/
|
|
2995
|
+
getClubPlayerById(requestParameters, options) {
|
|
2996
|
+
return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2997
|
+
},
|
|
2998
|
+
/**
|
|
2999
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
3000
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
3001
|
+
* @param {*} [options] Override http request option.
|
|
3002
|
+
* @throws {RequiredError}
|
|
3003
|
+
*/
|
|
3004
|
+
getClubPlayerStatisticsById(requestParameters, options) {
|
|
3005
|
+
return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
3006
|
+
},
|
|
2704
3007
|
/**
|
|
2705
3008
|
* Récupère la liste des joueurs du club
|
|
2706
3009
|
* @param {*} [options] Override http request option.
|
|
@@ -2760,6 +3063,22 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
|
|
|
2760
3063
|
getNumberOfClubUsers(options) {
|
|
2761
3064
|
return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
|
|
2762
3065
|
},
|
|
3066
|
+
/**
|
|
3067
|
+
* Calcule le taux de fidélisation des joueurs
|
|
3068
|
+
* @param {*} [options] Override http request option.
|
|
3069
|
+
* @throws {RequiredError}
|
|
3070
|
+
*/
|
|
3071
|
+
getRetentionRate(options) {
|
|
3072
|
+
return localVarFp.getRetentionRate(options).then((request) => request(axios, basePath));
|
|
3073
|
+
},
|
|
3074
|
+
/**
|
|
3075
|
+
* Récupère le chiffre d\'affaires par sport
|
|
3076
|
+
* @param {*} [options] Override http request option.
|
|
3077
|
+
* @throws {RequiredError}
|
|
3078
|
+
*/
|
|
3079
|
+
getRevenueBySport(options) {
|
|
3080
|
+
return localVarFp.getRevenueBySport(options).then((request) => request(axios, basePath));
|
|
3081
|
+
},
|
|
2763
3082
|
/**
|
|
2764
3083
|
* Récupère les 10 prochaines réservations
|
|
2765
3084
|
* @param {*} [options] Override http request option.
|
|
@@ -2768,6 +3087,14 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
|
|
|
2768
3087
|
getTenNextBookings(options) {
|
|
2769
3088
|
return localVarFp.getTenNextBookings(options).then((request) => request(axios, basePath));
|
|
2770
3089
|
},
|
|
3090
|
+
/**
|
|
3091
|
+
* Classement des terrains les plus réservés
|
|
3092
|
+
* @param {*} [options] Override http request option.
|
|
3093
|
+
* @throws {RequiredError}
|
|
3094
|
+
*/
|
|
3095
|
+
getTopCourtsByBookings(options) {
|
|
3096
|
+
return localVarFp.getTopCourtsByBookings(options).then((request) => request(axios, basePath));
|
|
3097
|
+
},
|
|
2771
3098
|
/**
|
|
2772
3099
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2773
3100
|
* @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -2797,43 +3124,73 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
|
|
|
2797
3124
|
return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
2798
3125
|
}
|
|
2799
3126
|
/**
|
|
2800
|
-
* Récupère
|
|
3127
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
3128
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2801
3129
|
* @param {*} [options] Override http request option.
|
|
2802
3130
|
* @throws {RequiredError}
|
|
2803
3131
|
* @memberof ClubAnalyticsStaffApi
|
|
2804
3132
|
*/
|
|
2805
|
-
|
|
2806
|
-
return ClubAnalyticsStaffApiFp(this.configuration).
|
|
3133
|
+
getClubPlayerBookingsById(requestParameters, options) {
|
|
3134
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
2807
3135
|
}
|
|
2808
3136
|
/**
|
|
2809
|
-
* Récupère
|
|
2810
|
-
* @param {
|
|
3137
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
3138
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2811
3139
|
* @param {*} [options] Override http request option.
|
|
2812
3140
|
* @throws {RequiredError}
|
|
2813
3141
|
* @memberof ClubAnalyticsStaffApi
|
|
2814
3142
|
*/
|
|
2815
|
-
|
|
2816
|
-
return ClubAnalyticsStaffApiFp(this.configuration).
|
|
3143
|
+
getClubPlayerById(requestParameters, options) {
|
|
3144
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2817
3145
|
}
|
|
2818
3146
|
/**
|
|
2819
|
-
* Récupère les
|
|
3147
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
3148
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2820
3149
|
* @param {*} [options] Override http request option.
|
|
2821
3150
|
* @throws {RequiredError}
|
|
2822
3151
|
* @memberof ClubAnalyticsStaffApi
|
|
2823
3152
|
*/
|
|
2824
|
-
|
|
2825
|
-
return ClubAnalyticsStaffApiFp(this.configuration).
|
|
3153
|
+
getClubPlayerStatisticsById(requestParameters, options) {
|
|
3154
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2826
3155
|
}
|
|
2827
3156
|
/**
|
|
2828
|
-
* Récupère
|
|
2829
|
-
* @param {ClubAnalyticsStaffApiGetInfillPercentagePerPeriodRequest} requestParameters Request parameters.
|
|
3157
|
+
* Récupère la liste des joueurs du club
|
|
2830
3158
|
* @param {*} [options] Override http request option.
|
|
2831
3159
|
* @throws {RequiredError}
|
|
2832
3160
|
* @memberof ClubAnalyticsStaffApi
|
|
2833
3161
|
*/
|
|
2834
|
-
|
|
2835
|
-
return ClubAnalyticsStaffApiFp(this.configuration).
|
|
2836
|
-
}
|
|
3162
|
+
getClubPlayers(options) {
|
|
3163
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayers(options).then((request) => request(this.axios, this.basePath));
|
|
3164
|
+
}
|
|
3165
|
+
/**
|
|
3166
|
+
* Récupère le chiffre d\'affaires quotidien
|
|
3167
|
+
* @param {ClubAnalyticsStaffApiGetDailyTurnOverRequest} requestParameters Request parameters.
|
|
3168
|
+
* @param {*} [options] Override http request option.
|
|
3169
|
+
* @throws {RequiredError}
|
|
3170
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3171
|
+
*/
|
|
3172
|
+
getDailyTurnOver(requestParameters, options) {
|
|
3173
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getDailyTurnOver(requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
3174
|
+
}
|
|
3175
|
+
/**
|
|
3176
|
+
* Récupère les pourcentages par genre
|
|
3177
|
+
* @param {*} [options] Override http request option.
|
|
3178
|
+
* @throws {RequiredError}
|
|
3179
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3180
|
+
*/
|
|
3181
|
+
getGenderPercentage(options) {
|
|
3182
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getGenderPercentage(options).then((request) => request(this.axios, this.basePath));
|
|
3183
|
+
}
|
|
3184
|
+
/**
|
|
3185
|
+
* Récupère le taux de remplissage (infill) pour une période donnée
|
|
3186
|
+
* @param {ClubAnalyticsStaffApiGetInfillPercentagePerPeriodRequest} requestParameters Request parameters.
|
|
3187
|
+
* @param {*} [options] Override http request option.
|
|
3188
|
+
* @throws {RequiredError}
|
|
3189
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3190
|
+
*/
|
|
3191
|
+
getInfillPercentagePerPeriod(requestParameters = {}, options) {
|
|
3192
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getInfillPercentagePerPeriod(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
3193
|
+
}
|
|
2837
3194
|
/**
|
|
2838
3195
|
* Récupère le chiffre d\'affaires des 6 derniers mois
|
|
2839
3196
|
* @param {*} [options] Override http request option.
|
|
@@ -2862,6 +3219,24 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
|
|
|
2862
3219
|
getNumberOfClubUsers(options) {
|
|
2863
3220
|
return ClubAnalyticsStaffApiFp(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
|
|
2864
3221
|
}
|
|
3222
|
+
/**
|
|
3223
|
+
* Calcule le taux de fidélisation des joueurs
|
|
3224
|
+
* @param {*} [options] Override http request option.
|
|
3225
|
+
* @throws {RequiredError}
|
|
3226
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3227
|
+
*/
|
|
3228
|
+
getRetentionRate(options) {
|
|
3229
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getRetentionRate(options).then((request) => request(this.axios, this.basePath));
|
|
3230
|
+
}
|
|
3231
|
+
/**
|
|
3232
|
+
* Récupère le chiffre d\'affaires par sport
|
|
3233
|
+
* @param {*} [options] Override http request option.
|
|
3234
|
+
* @throws {RequiredError}
|
|
3235
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3236
|
+
*/
|
|
3237
|
+
getRevenueBySport(options) {
|
|
3238
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getRevenueBySport(options).then((request) => request(this.axios, this.basePath));
|
|
3239
|
+
}
|
|
2865
3240
|
/**
|
|
2866
3241
|
* Récupère les 10 prochaines réservations
|
|
2867
3242
|
* @param {*} [options] Override http request option.
|
|
@@ -2871,6 +3246,15 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
|
|
|
2871
3246
|
getTenNextBookings(options) {
|
|
2872
3247
|
return ClubAnalyticsStaffApiFp(this.configuration).getTenNextBookings(options).then((request) => request(this.axios, this.basePath));
|
|
2873
3248
|
}
|
|
3249
|
+
/**
|
|
3250
|
+
* Classement des terrains les plus réservés
|
|
3251
|
+
* @param {*} [options] Override http request option.
|
|
3252
|
+
* @throws {RequiredError}
|
|
3253
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3254
|
+
*/
|
|
3255
|
+
getTopCourtsByBookings(options) {
|
|
3256
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getTopCourtsByBookings(options).then((request) => request(this.axios, this.basePath));
|
|
3257
|
+
}
|
|
2874
3258
|
/**
|
|
2875
3259
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2876
3260
|
* @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -3340,26 +3724,22 @@ export class ClubRolesStaffApi extends BaseAPI {
|
|
|
3340
3724
|
export const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
3341
3725
|
return {
|
|
3342
3726
|
/**
|
|
3343
|
-
*
|
|
3344
|
-
* @param {
|
|
3345
|
-
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
3727
|
+
*
|
|
3728
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
3346
3729
|
* @param {*} [options] Override http request option.
|
|
3347
3730
|
* @throws {RequiredError}
|
|
3348
3731
|
*/
|
|
3349
|
-
|
|
3350
|
-
// verify required parameter '
|
|
3351
|
-
assertParamExists('
|
|
3352
|
-
|
|
3353
|
-
assertParamExists('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
|
|
3354
|
-
const localVarPath = `/api/club-settings/{clubId}`
|
|
3355
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
3732
|
+
updateClubGeneralSettings: (updateClubGeneralSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubGeneralSettingsRequest_1, ...args_1], void 0, function* (updateClubGeneralSettingsRequest, options = {}) {
|
|
3733
|
+
// verify required parameter 'updateClubGeneralSettingsRequest' is not null or undefined
|
|
3734
|
+
assertParamExists('updateClubGeneralSettings', 'updateClubGeneralSettingsRequest', updateClubGeneralSettingsRequest);
|
|
3735
|
+
const localVarPath = `/api/club-settings/settings/general`;
|
|
3356
3736
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3357
3737
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3358
3738
|
let baseOptions;
|
|
3359
3739
|
if (configuration) {
|
|
3360
3740
|
baseOptions = configuration.baseOptions;
|
|
3361
3741
|
}
|
|
3362
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3742
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3363
3743
|
const localVarHeaderParameter = {};
|
|
3364
3744
|
const localVarQueryParameter = {};
|
|
3365
3745
|
// authentication bearerAuth required
|
|
@@ -3369,76 +3749,86 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
3369
3749
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3370
3750
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3371
3751
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3372
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3752
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubGeneralSettingsRequest, localVarRequestOptions, configuration);
|
|
3373
3753
|
return {
|
|
3374
3754
|
url: toPathString(localVarUrlObj),
|
|
3375
3755
|
options: localVarRequestOptions,
|
|
3376
3756
|
};
|
|
3377
3757
|
}),
|
|
3378
3758
|
/**
|
|
3379
|
-
*
|
|
3759
|
+
*
|
|
3760
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
3380
3761
|
* @param {*} [options] Override http request option.
|
|
3381
3762
|
* @throws {RequiredError}
|
|
3382
3763
|
*/
|
|
3383
|
-
|
|
3384
|
-
|
|
3764
|
+
updateHoursSettings: (updateClubHoursSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubHoursSettingsRequest_1, ...args_1], void 0, function* (updateClubHoursSettingsRequest, options = {}) {
|
|
3765
|
+
// verify required parameter 'updateClubHoursSettingsRequest' is not null or undefined
|
|
3766
|
+
assertParamExists('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
|
|
3767
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
3385
3768
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3386
3769
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3387
3770
|
let baseOptions;
|
|
3388
3771
|
if (configuration) {
|
|
3389
3772
|
baseOptions = configuration.baseOptions;
|
|
3390
3773
|
}
|
|
3391
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3774
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3392
3775
|
const localVarHeaderParameter = {};
|
|
3393
3776
|
const localVarQueryParameter = {};
|
|
3394
3777
|
// authentication bearerAuth required
|
|
3395
3778
|
// http bearer authentication required
|
|
3396
3779
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3780
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3397
3781
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3398
3782
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3399
3783
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3784
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
|
|
3400
3785
|
return {
|
|
3401
3786
|
url: toPathString(localVarUrlObj),
|
|
3402
3787
|
options: localVarRequestOptions,
|
|
3403
3788
|
};
|
|
3404
3789
|
}),
|
|
3405
3790
|
/**
|
|
3406
|
-
*
|
|
3791
|
+
*
|
|
3792
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
3407
3793
|
* @param {*} [options] Override http request option.
|
|
3408
3794
|
* @throws {RequiredError}
|
|
3409
3795
|
*/
|
|
3410
|
-
|
|
3411
|
-
|
|
3796
|
+
updatePresentationSettings: (clubPresentationSettingsResponse_1, ...args_1) => __awaiter(this, [clubPresentationSettingsResponse_1, ...args_1], void 0, function* (clubPresentationSettingsResponse, options = {}) {
|
|
3797
|
+
// verify required parameter 'clubPresentationSettingsResponse' is not null or undefined
|
|
3798
|
+
assertParamExists('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse);
|
|
3799
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
3412
3800
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3413
3801
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3414
3802
|
let baseOptions;
|
|
3415
3803
|
if (configuration) {
|
|
3416
3804
|
baseOptions = configuration.baseOptions;
|
|
3417
3805
|
}
|
|
3418
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3806
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3419
3807
|
const localVarHeaderParameter = {};
|
|
3420
3808
|
const localVarQueryParameter = {};
|
|
3421
3809
|
// authentication bearerAuth required
|
|
3422
3810
|
// http bearer authentication required
|
|
3423
3811
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3812
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3424
3813
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3425
3814
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3426
3815
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3816
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clubPresentationSettingsResponse, localVarRequestOptions, configuration);
|
|
3427
3817
|
return {
|
|
3428
3818
|
url: toPathString(localVarUrlObj),
|
|
3429
3819
|
options: localVarRequestOptions,
|
|
3430
3820
|
};
|
|
3431
3821
|
}),
|
|
3432
3822
|
/**
|
|
3433
|
-
*
|
|
3434
|
-
* @param {
|
|
3823
|
+
*
|
|
3824
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
3435
3825
|
* @param {*} [options] Override http request option.
|
|
3436
3826
|
* @throws {RequiredError}
|
|
3437
3827
|
*/
|
|
3438
|
-
|
|
3439
|
-
// verify required parameter '
|
|
3440
|
-
assertParamExists('
|
|
3441
|
-
const localVarPath = `/api/club-settings`;
|
|
3828
|
+
updateReservationSettings: (updateClubReservationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubReservationSettingsRequest_1, ...args_1], void 0, function* (updateClubReservationSettingsRequest, options = {}) {
|
|
3829
|
+
// verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
|
|
3830
|
+
assertParamExists('updateReservationSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest);
|
|
3831
|
+
const localVarPath = `/api/club-settings/reservation`;
|
|
3442
3832
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3443
3833
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3444
3834
|
let baseOptions;
|
|
@@ -3455,7 +3845,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
3455
3845
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3456
3846
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3457
3847
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3458
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3848
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
|
|
3459
3849
|
return {
|
|
3460
3850
|
url: toPathString(localVarUrlObj),
|
|
3461
3851
|
options: localVarRequestOptions,
|
|
@@ -3471,61 +3861,62 @@ export const ClubSettingsManagerApiFp = function (configuration) {
|
|
|
3471
3861
|
const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration);
|
|
3472
3862
|
return {
|
|
3473
3863
|
/**
|
|
3474
|
-
*
|
|
3475
|
-
* @param {
|
|
3476
|
-
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
3864
|
+
*
|
|
3865
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
3477
3866
|
* @param {*} [options] Override http request option.
|
|
3478
3867
|
* @throws {RequiredError}
|
|
3479
3868
|
*/
|
|
3480
|
-
|
|
3869
|
+
updateClubGeneralSettings(updateClubGeneralSettingsRequest, options) {
|
|
3481
3870
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3482
3871
|
var _a, _b, _c;
|
|
3483
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3872
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
|
|
3484
3873
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3485
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.
|
|
3874
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3486
3875
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3487
3876
|
});
|
|
3488
3877
|
},
|
|
3489
3878
|
/**
|
|
3490
|
-
*
|
|
3879
|
+
*
|
|
3880
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
3491
3881
|
* @param {*} [options] Override http request option.
|
|
3492
3882
|
* @throws {RequiredError}
|
|
3493
3883
|
*/
|
|
3494
|
-
|
|
3884
|
+
updateHoursSettings(updateClubHoursSettingsRequest, options) {
|
|
3495
3885
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3496
3886
|
var _a, _b, _c;
|
|
3497
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3887
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
|
|
3498
3888
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3499
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.
|
|
3889
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3500
3890
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3501
3891
|
});
|
|
3502
3892
|
},
|
|
3503
3893
|
/**
|
|
3504
|
-
*
|
|
3894
|
+
*
|
|
3895
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
3505
3896
|
* @param {*} [options] Override http request option.
|
|
3506
3897
|
* @throws {RequiredError}
|
|
3507
3898
|
*/
|
|
3508
|
-
|
|
3899
|
+
updatePresentationSettings(clubPresentationSettingsResponse, options) {
|
|
3509
3900
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3510
3901
|
var _a, _b, _c;
|
|
3511
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3902
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
|
|
3512
3903
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3513
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.
|
|
3904
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3514
3905
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3515
3906
|
});
|
|
3516
3907
|
},
|
|
3517
3908
|
/**
|
|
3518
|
-
*
|
|
3519
|
-
* @param {
|
|
3909
|
+
*
|
|
3910
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
3520
3911
|
* @param {*} [options] Override http request option.
|
|
3521
3912
|
* @throws {RequiredError}
|
|
3522
3913
|
*/
|
|
3523
|
-
|
|
3914
|
+
updateReservationSettings(updateClubReservationSettingsRequest, options) {
|
|
3524
3915
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3525
3916
|
var _a, _b, _c;
|
|
3526
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3917
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
|
|
3527
3918
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3528
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.
|
|
3919
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3529
3920
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3530
3921
|
});
|
|
3531
3922
|
},
|
|
@@ -3539,38 +3930,40 @@ export const ClubSettingsManagerApiFactory = function (configuration, basePath,
|
|
|
3539
3930
|
const localVarFp = ClubSettingsManagerApiFp(configuration);
|
|
3540
3931
|
return {
|
|
3541
3932
|
/**
|
|
3542
|
-
*
|
|
3543
|
-
* @param {
|
|
3933
|
+
*
|
|
3934
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
3544
3935
|
* @param {*} [options] Override http request option.
|
|
3545
3936
|
* @throws {RequiredError}
|
|
3546
3937
|
*/
|
|
3547
|
-
|
|
3548
|
-
return localVarFp.
|
|
3938
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
3939
|
+
return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3549
3940
|
},
|
|
3550
3941
|
/**
|
|
3551
|
-
*
|
|
3942
|
+
*
|
|
3943
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
3552
3944
|
* @param {*} [options] Override http request option.
|
|
3553
3945
|
* @throws {RequiredError}
|
|
3554
3946
|
*/
|
|
3555
|
-
|
|
3556
|
-
return localVarFp.
|
|
3947
|
+
updateHoursSettings(requestParameters, options) {
|
|
3948
|
+
return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3557
3949
|
},
|
|
3558
3950
|
/**
|
|
3559
|
-
*
|
|
3951
|
+
*
|
|
3952
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
3560
3953
|
* @param {*} [options] Override http request option.
|
|
3561
3954
|
* @throws {RequiredError}
|
|
3562
3955
|
*/
|
|
3563
|
-
|
|
3564
|
-
return localVarFp.
|
|
3956
|
+
updatePresentationSettings(requestParameters, options) {
|
|
3957
|
+
return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
|
|
3565
3958
|
},
|
|
3566
3959
|
/**
|
|
3567
|
-
*
|
|
3568
|
-
* @param {
|
|
3960
|
+
*
|
|
3961
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
3569
3962
|
* @param {*} [options] Override http request option.
|
|
3570
3963
|
* @throws {RequiredError}
|
|
3571
3964
|
*/
|
|
3572
|
-
|
|
3573
|
-
return localVarFp.
|
|
3965
|
+
updateReservationSettings(requestParameters, options) {
|
|
3966
|
+
return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3574
3967
|
},
|
|
3575
3968
|
};
|
|
3576
3969
|
};
|
|
@@ -3582,42 +3975,310 @@ export const ClubSettingsManagerApiFactory = function (configuration, basePath,
|
|
|
3582
3975
|
*/
|
|
3583
3976
|
export class ClubSettingsManagerApi extends BaseAPI {
|
|
3584
3977
|
/**
|
|
3585
|
-
*
|
|
3586
|
-
* @param {
|
|
3978
|
+
*
|
|
3979
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
3587
3980
|
* @param {*} [options] Override http request option.
|
|
3588
3981
|
* @throws {RequiredError}
|
|
3589
3982
|
* @memberof ClubSettingsManagerApi
|
|
3590
3983
|
*/
|
|
3591
|
-
|
|
3592
|
-
return ClubSettingsManagerApiFp(this.configuration).
|
|
3984
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
3985
|
+
return ClubSettingsManagerApiFp(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3593
3986
|
}
|
|
3594
3987
|
/**
|
|
3595
|
-
*
|
|
3988
|
+
*
|
|
3989
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
3596
3990
|
* @param {*} [options] Override http request option.
|
|
3597
3991
|
* @throws {RequiredError}
|
|
3598
3992
|
* @memberof ClubSettingsManagerApi
|
|
3599
3993
|
*/
|
|
3600
|
-
|
|
3601
|
-
return ClubSettingsManagerApiFp(this.configuration).
|
|
3994
|
+
updateHoursSettings(requestParameters, options) {
|
|
3995
|
+
return ClubSettingsManagerApiFp(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3602
3996
|
}
|
|
3603
3997
|
/**
|
|
3604
|
-
*
|
|
3998
|
+
*
|
|
3999
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
3605
4000
|
* @param {*} [options] Override http request option.
|
|
3606
4001
|
* @throws {RequiredError}
|
|
3607
4002
|
* @memberof ClubSettingsManagerApi
|
|
3608
4003
|
*/
|
|
3609
|
-
|
|
3610
|
-
return ClubSettingsManagerApiFp(this.configuration).
|
|
4004
|
+
updatePresentationSettings(requestParameters, options) {
|
|
4005
|
+
return ClubSettingsManagerApiFp(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
|
|
3611
4006
|
}
|
|
3612
4007
|
/**
|
|
3613
|
-
*
|
|
3614
|
-
* @param {
|
|
4008
|
+
*
|
|
4009
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
3615
4010
|
* @param {*} [options] Override http request option.
|
|
3616
4011
|
* @throws {RequiredError}
|
|
3617
4012
|
* @memberof ClubSettingsManagerApi
|
|
3618
4013
|
*/
|
|
3619
|
-
|
|
3620
|
-
return ClubSettingsManagerApiFp(this.configuration).
|
|
4014
|
+
updateReservationSettings(requestParameters, options) {
|
|
4015
|
+
return ClubSettingsManagerApiFp(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4016
|
+
}
|
|
4017
|
+
}
|
|
4018
|
+
/**
|
|
4019
|
+
* ClubSettingsStaffApi - axios parameter creator
|
|
4020
|
+
* @export
|
|
4021
|
+
*/
|
|
4022
|
+
export const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
|
|
4023
|
+
return {
|
|
4024
|
+
/**
|
|
4025
|
+
*
|
|
4026
|
+
* @param {*} [options] Override http request option.
|
|
4027
|
+
* @throws {RequiredError}
|
|
4028
|
+
*/
|
|
4029
|
+
getClubGeneralSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4030
|
+
const localVarPath = `/api/club-settings/settings/general`;
|
|
4031
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4032
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4033
|
+
let baseOptions;
|
|
4034
|
+
if (configuration) {
|
|
4035
|
+
baseOptions = configuration.baseOptions;
|
|
4036
|
+
}
|
|
4037
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4038
|
+
const localVarHeaderParameter = {};
|
|
4039
|
+
const localVarQueryParameter = {};
|
|
4040
|
+
// authentication bearerAuth required
|
|
4041
|
+
// http bearer authentication required
|
|
4042
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4043
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4044
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4045
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4046
|
+
return {
|
|
4047
|
+
url: toPathString(localVarUrlObj),
|
|
4048
|
+
options: localVarRequestOptions,
|
|
4049
|
+
};
|
|
4050
|
+
}),
|
|
4051
|
+
/**
|
|
4052
|
+
*
|
|
4053
|
+
* @param {*} [options] Override http request option.
|
|
4054
|
+
* @throws {RequiredError}
|
|
4055
|
+
*/
|
|
4056
|
+
getHoursSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4057
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
4058
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4059
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4060
|
+
let baseOptions;
|
|
4061
|
+
if (configuration) {
|
|
4062
|
+
baseOptions = configuration.baseOptions;
|
|
4063
|
+
}
|
|
4064
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4065
|
+
const localVarHeaderParameter = {};
|
|
4066
|
+
const localVarQueryParameter = {};
|
|
4067
|
+
// authentication bearerAuth required
|
|
4068
|
+
// http bearer authentication required
|
|
4069
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4070
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4071
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4072
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4073
|
+
return {
|
|
4074
|
+
url: toPathString(localVarUrlObj),
|
|
4075
|
+
options: localVarRequestOptions,
|
|
4076
|
+
};
|
|
4077
|
+
}),
|
|
4078
|
+
/**
|
|
4079
|
+
*
|
|
4080
|
+
* @param {*} [options] Override http request option.
|
|
4081
|
+
* @throws {RequiredError}
|
|
4082
|
+
*/
|
|
4083
|
+
getPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4084
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
4085
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4086
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4087
|
+
let baseOptions;
|
|
4088
|
+
if (configuration) {
|
|
4089
|
+
baseOptions = configuration.baseOptions;
|
|
4090
|
+
}
|
|
4091
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4092
|
+
const localVarHeaderParameter = {};
|
|
4093
|
+
const localVarQueryParameter = {};
|
|
4094
|
+
// authentication bearerAuth required
|
|
4095
|
+
// http bearer authentication required
|
|
4096
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4097
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4098
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4099
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4100
|
+
return {
|
|
4101
|
+
url: toPathString(localVarUrlObj),
|
|
4102
|
+
options: localVarRequestOptions,
|
|
4103
|
+
};
|
|
4104
|
+
}),
|
|
4105
|
+
/**
|
|
4106
|
+
*
|
|
4107
|
+
* @param {*} [options] Override http request option.
|
|
4108
|
+
* @throws {RequiredError}
|
|
4109
|
+
*/
|
|
4110
|
+
getReservationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4111
|
+
const localVarPath = `/api/club-settings/reservation`;
|
|
4112
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4113
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4114
|
+
let baseOptions;
|
|
4115
|
+
if (configuration) {
|
|
4116
|
+
baseOptions = configuration.baseOptions;
|
|
4117
|
+
}
|
|
4118
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4119
|
+
const localVarHeaderParameter = {};
|
|
4120
|
+
const localVarQueryParameter = {};
|
|
4121
|
+
// authentication bearerAuth required
|
|
4122
|
+
// http bearer authentication required
|
|
4123
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4126
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4127
|
+
return {
|
|
4128
|
+
url: toPathString(localVarUrlObj),
|
|
4129
|
+
options: localVarRequestOptions,
|
|
4130
|
+
};
|
|
4131
|
+
}),
|
|
4132
|
+
};
|
|
4133
|
+
};
|
|
4134
|
+
/**
|
|
4135
|
+
* ClubSettingsStaffApi - functional programming interface
|
|
4136
|
+
* @export
|
|
4137
|
+
*/
|
|
4138
|
+
export const ClubSettingsStaffApiFp = function (configuration) {
|
|
4139
|
+
const localVarAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator(configuration);
|
|
4140
|
+
return {
|
|
4141
|
+
/**
|
|
4142
|
+
*
|
|
4143
|
+
* @param {*} [options] Override http request option.
|
|
4144
|
+
* @throws {RequiredError}
|
|
4145
|
+
*/
|
|
4146
|
+
getClubGeneralSettings(options) {
|
|
4147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4148
|
+
var _a, _b, _c;
|
|
4149
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubGeneralSettings(options);
|
|
4150
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4151
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4152
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4153
|
+
});
|
|
4154
|
+
},
|
|
4155
|
+
/**
|
|
4156
|
+
*
|
|
4157
|
+
* @param {*} [options] Override http request option.
|
|
4158
|
+
* @throws {RequiredError}
|
|
4159
|
+
*/
|
|
4160
|
+
getHoursSettings(options) {
|
|
4161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4162
|
+
var _a, _b, _c;
|
|
4163
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getHoursSettings(options);
|
|
4164
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4165
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4166
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4167
|
+
});
|
|
4168
|
+
},
|
|
4169
|
+
/**
|
|
4170
|
+
*
|
|
4171
|
+
* @param {*} [options] Override http request option.
|
|
4172
|
+
* @throws {RequiredError}
|
|
4173
|
+
*/
|
|
4174
|
+
getPresentationSettings(options) {
|
|
4175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4176
|
+
var _a, _b, _c;
|
|
4177
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPresentationSettings(options);
|
|
4178
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4179
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4180
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4181
|
+
});
|
|
4182
|
+
},
|
|
4183
|
+
/**
|
|
4184
|
+
*
|
|
4185
|
+
* @param {*} [options] Override http request option.
|
|
4186
|
+
* @throws {RequiredError}
|
|
4187
|
+
*/
|
|
4188
|
+
getReservationSettings(options) {
|
|
4189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4190
|
+
var _a, _b, _c;
|
|
4191
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReservationSettings(options);
|
|
4192
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4193
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4194
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4195
|
+
});
|
|
4196
|
+
},
|
|
4197
|
+
};
|
|
4198
|
+
};
|
|
4199
|
+
/**
|
|
4200
|
+
* ClubSettingsStaffApi - factory interface
|
|
4201
|
+
* @export
|
|
4202
|
+
*/
|
|
4203
|
+
export const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
4204
|
+
const localVarFp = ClubSettingsStaffApiFp(configuration);
|
|
4205
|
+
return {
|
|
4206
|
+
/**
|
|
4207
|
+
*
|
|
4208
|
+
* @param {*} [options] Override http request option.
|
|
4209
|
+
* @throws {RequiredError}
|
|
4210
|
+
*/
|
|
4211
|
+
getClubGeneralSettings(options) {
|
|
4212
|
+
return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
|
|
4213
|
+
},
|
|
4214
|
+
/**
|
|
4215
|
+
*
|
|
4216
|
+
* @param {*} [options] Override http request option.
|
|
4217
|
+
* @throws {RequiredError}
|
|
4218
|
+
*/
|
|
4219
|
+
getHoursSettings(options) {
|
|
4220
|
+
return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
|
|
4221
|
+
},
|
|
4222
|
+
/**
|
|
4223
|
+
*
|
|
4224
|
+
* @param {*} [options] Override http request option.
|
|
4225
|
+
* @throws {RequiredError}
|
|
4226
|
+
*/
|
|
4227
|
+
getPresentationSettings(options) {
|
|
4228
|
+
return localVarFp.getPresentationSettings(options).then((request) => request(axios, basePath));
|
|
4229
|
+
},
|
|
4230
|
+
/**
|
|
4231
|
+
*
|
|
4232
|
+
* @param {*} [options] Override http request option.
|
|
4233
|
+
* @throws {RequiredError}
|
|
4234
|
+
*/
|
|
4235
|
+
getReservationSettings(options) {
|
|
4236
|
+
return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
|
|
4237
|
+
},
|
|
4238
|
+
};
|
|
4239
|
+
};
|
|
4240
|
+
/**
|
|
4241
|
+
* ClubSettingsStaffApi - object-oriented interface
|
|
4242
|
+
* @export
|
|
4243
|
+
* @class ClubSettingsStaffApi
|
|
4244
|
+
* @extends {BaseAPI}
|
|
4245
|
+
*/
|
|
4246
|
+
export class ClubSettingsStaffApi extends BaseAPI {
|
|
4247
|
+
/**
|
|
4248
|
+
*
|
|
4249
|
+
* @param {*} [options] Override http request option.
|
|
4250
|
+
* @throws {RequiredError}
|
|
4251
|
+
* @memberof ClubSettingsStaffApi
|
|
4252
|
+
*/
|
|
4253
|
+
getClubGeneralSettings(options) {
|
|
4254
|
+
return ClubSettingsStaffApiFp(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
|
|
4255
|
+
}
|
|
4256
|
+
/**
|
|
4257
|
+
*
|
|
4258
|
+
* @param {*} [options] Override http request option.
|
|
4259
|
+
* @throws {RequiredError}
|
|
4260
|
+
* @memberof ClubSettingsStaffApi
|
|
4261
|
+
*/
|
|
4262
|
+
getHoursSettings(options) {
|
|
4263
|
+
return ClubSettingsStaffApiFp(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
|
|
4264
|
+
}
|
|
4265
|
+
/**
|
|
4266
|
+
*
|
|
4267
|
+
* @param {*} [options] Override http request option.
|
|
4268
|
+
* @throws {RequiredError}
|
|
4269
|
+
* @memberof ClubSettingsStaffApi
|
|
4270
|
+
*/
|
|
4271
|
+
getPresentationSettings(options) {
|
|
4272
|
+
return ClubSettingsStaffApiFp(this.configuration).getPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
4273
|
+
}
|
|
4274
|
+
/**
|
|
4275
|
+
*
|
|
4276
|
+
* @param {*} [options] Override http request option.
|
|
4277
|
+
* @throws {RequiredError}
|
|
4278
|
+
* @memberof ClubSettingsStaffApi
|
|
4279
|
+
*/
|
|
4280
|
+
getReservationSettings(options) {
|
|
4281
|
+
return ClubSettingsStaffApiFp(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3621
4282
|
}
|
|
3622
4283
|
}
|
|
3623
4284
|
/**
|
|
@@ -4396,55 +5057,19 @@ export class ClubsApi extends BaseAPI {
|
|
|
4396
5057
|
/**
|
|
4397
5058
|
* ClubsManagerApi - axios parameter creator
|
|
4398
5059
|
* @export
|
|
4399
|
-
*/
|
|
4400
|
-
export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
4401
|
-
return {
|
|
4402
|
-
/**
|
|
4403
|
-
* Ajoute un membre à un club
|
|
4404
|
-
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
4405
|
-
* @param {*} [options] Override http request option.
|
|
4406
|
-
* @throws {RequiredError}
|
|
4407
|
-
*/
|
|
4408
|
-
addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
|
|
4409
|
-
// verify required parameter 'addClubMemberRequest' is not null or undefined
|
|
4410
|
-
assertParamExists('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
4411
|
-
const localVarPath = `/api/clubs/members`;
|
|
4412
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4413
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4414
|
-
let baseOptions;
|
|
4415
|
-
if (configuration) {
|
|
4416
|
-
baseOptions = configuration.baseOptions;
|
|
4417
|
-
}
|
|
4418
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4419
|
-
const localVarHeaderParameter = {};
|
|
4420
|
-
const localVarQueryParameter = {};
|
|
4421
|
-
// authentication bearerAuth required
|
|
4422
|
-
// http bearer authentication required
|
|
4423
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4424
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4425
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4426
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4427
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4428
|
-
localVarRequestOptions.data = serializeDataIfNeeded(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
4429
|
-
return {
|
|
4430
|
-
url: toPathString(localVarUrlObj),
|
|
4431
|
-
options: localVarRequestOptions,
|
|
4432
|
-
};
|
|
4433
|
-
}),
|
|
5060
|
+
*/
|
|
5061
|
+
export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
5062
|
+
return {
|
|
4434
5063
|
/**
|
|
4435
|
-
*
|
|
4436
|
-
* @param {
|
|
4437
|
-
* @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
|
|
5064
|
+
* Ajoute un membre à un club
|
|
5065
|
+
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
4438
5066
|
* @param {*} [options] Override http request option.
|
|
4439
5067
|
* @throws {RequiredError}
|
|
4440
5068
|
*/
|
|
4441
|
-
|
|
4442
|
-
// verify required parameter '
|
|
4443
|
-
assertParamExists('
|
|
4444
|
-
|
|
4445
|
-
assertParamExists('addCreditsToCustomer', 'addCreditsToCustomerRequest', addCreditsToCustomerRequest);
|
|
4446
|
-
const localVarPath = `/api/clubs/customers/{userId}/credits`
|
|
4447
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
5069
|
+
addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
|
|
5070
|
+
// verify required parameter 'addClubMemberRequest' is not null or undefined
|
|
5071
|
+
assertParamExists('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
5072
|
+
const localVarPath = `/api/clubs/members`;
|
|
4448
5073
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4449
5074
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4450
5075
|
let baseOptions;
|
|
@@ -4461,7 +5086,7 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4461
5086
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4462
5087
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4463
5088
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4464
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
5089
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
4465
5090
|
return {
|
|
4466
5091
|
url: toPathString(localVarUrlObj),
|
|
4467
5092
|
options: localVarRequestOptions,
|
|
@@ -4943,6 +5568,74 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4943
5568
|
options: localVarRequestOptions,
|
|
4944
5569
|
};
|
|
4945
5570
|
}),
|
|
5571
|
+
/**
|
|
5572
|
+
* Met à jour un membre d\'un club
|
|
5573
|
+
* @param {string} userId
|
|
5574
|
+
* @param {UpdateClubMemberRequest} updateClubMemberRequest
|
|
5575
|
+
* @param {*} [options] Override http request option.
|
|
5576
|
+
* @throws {RequiredError}
|
|
5577
|
+
*/
|
|
5578
|
+
updateClubMember: (userId_1, updateClubMemberRequest_1, ...args_1) => __awaiter(this, [userId_1, updateClubMemberRequest_1, ...args_1], void 0, function* (userId, updateClubMemberRequest, options = {}) {
|
|
5579
|
+
// verify required parameter 'userId' is not null or undefined
|
|
5580
|
+
assertParamExists('updateClubMember', 'userId', userId);
|
|
5581
|
+
// verify required parameter 'updateClubMemberRequest' is not null or undefined
|
|
5582
|
+
assertParamExists('updateClubMember', 'updateClubMemberRequest', updateClubMemberRequest);
|
|
5583
|
+
const localVarPath = `/api/clubs/members/{userId}`
|
|
5584
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
5585
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5586
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5587
|
+
let baseOptions;
|
|
5588
|
+
if (configuration) {
|
|
5589
|
+
baseOptions = configuration.baseOptions;
|
|
5590
|
+
}
|
|
5591
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
5592
|
+
const localVarHeaderParameter = {};
|
|
5593
|
+
const localVarQueryParameter = {};
|
|
5594
|
+
// authentication bearerAuth required
|
|
5595
|
+
// http bearer authentication required
|
|
5596
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5597
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5598
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5599
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5600
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5601
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubMemberRequest, localVarRequestOptions, configuration);
|
|
5602
|
+
return {
|
|
5603
|
+
url: toPathString(localVarUrlObj),
|
|
5604
|
+
options: localVarRequestOptions,
|
|
5605
|
+
};
|
|
5606
|
+
}),
|
|
5607
|
+
/**
|
|
5608
|
+
*
|
|
5609
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
5610
|
+
* @param {*} [options] Override http request option.
|
|
5611
|
+
* @throws {RequiredError}
|
|
5612
|
+
*/
|
|
5613
|
+
updateClubPresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
|
|
5614
|
+
// verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
|
|
5615
|
+
assertParamExists('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
|
|
5616
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
5617
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5618
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5619
|
+
let baseOptions;
|
|
5620
|
+
if (configuration) {
|
|
5621
|
+
baseOptions = configuration.baseOptions;
|
|
5622
|
+
}
|
|
5623
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
5624
|
+
const localVarHeaderParameter = {};
|
|
5625
|
+
const localVarQueryParameter = {};
|
|
5626
|
+
// authentication bearerAuth required
|
|
5627
|
+
// http bearer authentication required
|
|
5628
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5629
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5630
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5631
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5632
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5633
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
|
|
5634
|
+
return {
|
|
5635
|
+
url: toPathString(localVarUrlObj),
|
|
5636
|
+
options: localVarRequestOptions,
|
|
5637
|
+
};
|
|
5638
|
+
}),
|
|
4946
5639
|
/**
|
|
4947
5640
|
*
|
|
4948
5641
|
* @param {string} courtId
|
|
@@ -5039,22 +5732,6 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
5039
5732
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5040
5733
|
});
|
|
5041
5734
|
},
|
|
5042
|
-
/**
|
|
5043
|
-
*
|
|
5044
|
-
* @param {string} userId
|
|
5045
|
-
* @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
|
|
5046
|
-
* @param {*} [options] Override http request option.
|
|
5047
|
-
* @throws {RequiredError}
|
|
5048
|
-
*/
|
|
5049
|
-
addCreditsToCustomer(userId, addCreditsToCustomerRequest, options) {
|
|
5050
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5051
|
-
var _a, _b, _c;
|
|
5052
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addCreditsToCustomer(userId, addCreditsToCustomerRequest, options);
|
|
5053
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5054
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.addCreditsToCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5055
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5056
|
-
});
|
|
5057
|
-
},
|
|
5058
5735
|
/**
|
|
5059
5736
|
*
|
|
5060
5737
|
* @param {string} priceId
|
|
@@ -5281,6 +5958,37 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
5281
5958
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5282
5959
|
});
|
|
5283
5960
|
},
|
|
5961
|
+
/**
|
|
5962
|
+
* Met à jour un membre d\'un club
|
|
5963
|
+
* @param {string} userId
|
|
5964
|
+
* @param {UpdateClubMemberRequest} updateClubMemberRequest
|
|
5965
|
+
* @param {*} [options] Override http request option.
|
|
5966
|
+
* @throws {RequiredError}
|
|
5967
|
+
*/
|
|
5968
|
+
updateClubMember(userId, updateClubMemberRequest, options) {
|
|
5969
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5970
|
+
var _a, _b, _c;
|
|
5971
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubMember(userId, updateClubMemberRequest, options);
|
|
5972
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5973
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.updateClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5974
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5975
|
+
});
|
|
5976
|
+
},
|
|
5977
|
+
/**
|
|
5978
|
+
*
|
|
5979
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
5980
|
+
* @param {*} [options] Override http request option.
|
|
5981
|
+
* @throws {RequiredError}
|
|
5982
|
+
*/
|
|
5983
|
+
updateClubPresentationSettings(updateClubPresentationSettingsRequest, options) {
|
|
5984
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5985
|
+
var _a, _b, _c;
|
|
5986
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
|
|
5987
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5988
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.updateClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5989
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5990
|
+
});
|
|
5991
|
+
},
|
|
5284
5992
|
/**
|
|
5285
5993
|
*
|
|
5286
5994
|
* @param {string} courtId
|
|
@@ -5331,15 +6039,6 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
5331
6039
|
addClubMember(requestParameters, options) {
|
|
5332
6040
|
return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
5333
6041
|
},
|
|
5334
|
-
/**
|
|
5335
|
-
*
|
|
5336
|
-
* @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
|
|
5337
|
-
* @param {*} [options] Override http request option.
|
|
5338
|
-
* @throws {RequiredError}
|
|
5339
|
-
*/
|
|
5340
|
-
addCreditsToCustomer(requestParameters, options) {
|
|
5341
|
-
return localVarFp.addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(axios, basePath));
|
|
5342
|
-
},
|
|
5343
6042
|
/**
|
|
5344
6043
|
*
|
|
5345
6044
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5474,6 +6173,24 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
5474
6173
|
updateClubInfos(requestParameters, options) {
|
|
5475
6174
|
return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
5476
6175
|
},
|
|
6176
|
+
/**
|
|
6177
|
+
* Met à jour un membre d\'un club
|
|
6178
|
+
* @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
|
|
6179
|
+
* @param {*} [options] Override http request option.
|
|
6180
|
+
* @throws {RequiredError}
|
|
6181
|
+
*/
|
|
6182
|
+
updateClubMember(requestParameters, options) {
|
|
6183
|
+
return localVarFp.updateClubMember(requestParameters.userId, requestParameters.updateClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
6184
|
+
},
|
|
6185
|
+
/**
|
|
6186
|
+
*
|
|
6187
|
+
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
6188
|
+
* @param {*} [options] Override http request option.
|
|
6189
|
+
* @throws {RequiredError}
|
|
6190
|
+
*/
|
|
6191
|
+
updateClubPresentationSettings(requestParameters, options) {
|
|
6192
|
+
return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
6193
|
+
},
|
|
5477
6194
|
/**
|
|
5478
6195
|
*
|
|
5479
6196
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5511,16 +6228,6 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
5511
6228
|
addClubMember(requestParameters, options) {
|
|
5512
6229
|
return ClubsManagerApiFp(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5513
6230
|
}
|
|
5514
|
-
/**
|
|
5515
|
-
*
|
|
5516
|
-
* @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
|
|
5517
|
-
* @param {*} [options] Override http request option.
|
|
5518
|
-
* @throws {RequiredError}
|
|
5519
|
-
* @memberof ClubsManagerApi
|
|
5520
|
-
*/
|
|
5521
|
-
addCreditsToCustomer(requestParameters, options) {
|
|
5522
|
-
return ClubsManagerApiFp(this.configuration).addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5523
|
-
}
|
|
5524
6231
|
/**
|
|
5525
6232
|
*
|
|
5526
6233
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5670,6 +6377,26 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
5670
6377
|
updateClubInfos(requestParameters, options) {
|
|
5671
6378
|
return ClubsManagerApiFp(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
5672
6379
|
}
|
|
6380
|
+
/**
|
|
6381
|
+
* Met à jour un membre d\'un club
|
|
6382
|
+
* @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
|
|
6383
|
+
* @param {*} [options] Override http request option.
|
|
6384
|
+
* @throws {RequiredError}
|
|
6385
|
+
* @memberof ClubsManagerApi
|
|
6386
|
+
*/
|
|
6387
|
+
updateClubMember(requestParameters, options) {
|
|
6388
|
+
return ClubsManagerApiFp(this.configuration).updateClubMember(requestParameters.userId, requestParameters.updateClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6389
|
+
}
|
|
6390
|
+
/**
|
|
6391
|
+
*
|
|
6392
|
+
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
6393
|
+
* @param {*} [options] Override http request option.
|
|
6394
|
+
* @throws {RequiredError}
|
|
6395
|
+
* @memberof ClubsManagerApi
|
|
6396
|
+
*/
|
|
6397
|
+
updateClubPresentationSettings(requestParameters, options) {
|
|
6398
|
+
return ClubsManagerApiFp(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6399
|
+
}
|
|
5673
6400
|
/**
|
|
5674
6401
|
*
|
|
5675
6402
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5778,6 +6505,33 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
5778
6505
|
options: localVarRequestOptions,
|
|
5779
6506
|
};
|
|
5780
6507
|
}),
|
|
6508
|
+
/**
|
|
6509
|
+
*
|
|
6510
|
+
* @param {*} [options] Override http request option.
|
|
6511
|
+
* @throws {RequiredError}
|
|
6512
|
+
*/
|
|
6513
|
+
getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6514
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
6515
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6516
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6517
|
+
let baseOptions;
|
|
6518
|
+
if (configuration) {
|
|
6519
|
+
baseOptions = configuration.baseOptions;
|
|
6520
|
+
}
|
|
6521
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6522
|
+
const localVarHeaderParameter = {};
|
|
6523
|
+
const localVarQueryParameter = {};
|
|
6524
|
+
// authentication bearerAuth required
|
|
6525
|
+
// http bearer authentication required
|
|
6526
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6527
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6528
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6529
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6530
|
+
return {
|
|
6531
|
+
url: toPathString(localVarUrlObj),
|
|
6532
|
+
options: localVarRequestOptions,
|
|
6533
|
+
};
|
|
6534
|
+
}),
|
|
5781
6535
|
/**
|
|
5782
6536
|
* Récupère les rôles d\'un club
|
|
5783
6537
|
* @param {*} [options] Override http request option.
|
|
@@ -5941,6 +6695,20 @@ export const ClubsStaffApiFp = function (configuration) {
|
|
|
5941
6695
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5942
6696
|
});
|
|
5943
6697
|
},
|
|
6698
|
+
/**
|
|
6699
|
+
*
|
|
6700
|
+
* @param {*} [options] Override http request option.
|
|
6701
|
+
* @throws {RequiredError}
|
|
6702
|
+
*/
|
|
6703
|
+
getClubPresentationSettings(options) {
|
|
6704
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6705
|
+
var _a, _b, _c;
|
|
6706
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPresentationSettings(options);
|
|
6707
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6708
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.getClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6709
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6710
|
+
});
|
|
6711
|
+
},
|
|
5944
6712
|
/**
|
|
5945
6713
|
* Récupère les rôles d\'un club
|
|
5946
6714
|
* @param {*} [options] Override http request option.
|
|
@@ -6031,6 +6799,14 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
6031
6799
|
getClubMembers(options) {
|
|
6032
6800
|
return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
|
|
6033
6801
|
},
|
|
6802
|
+
/**
|
|
6803
|
+
*
|
|
6804
|
+
* @param {*} [options] Override http request option.
|
|
6805
|
+
* @throws {RequiredError}
|
|
6806
|
+
*/
|
|
6807
|
+
getClubPresentationSettings(options) {
|
|
6808
|
+
return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
|
|
6809
|
+
},
|
|
6034
6810
|
/**
|
|
6035
6811
|
* Récupère les rôles d\'un club
|
|
6036
6812
|
* @param {*} [options] Override http request option.
|
|
@@ -6100,6 +6876,15 @@ export class ClubsStaffApi extends BaseAPI {
|
|
|
6100
6876
|
getClubMembers(options) {
|
|
6101
6877
|
return ClubsStaffApiFp(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
|
|
6102
6878
|
}
|
|
6879
|
+
/**
|
|
6880
|
+
*
|
|
6881
|
+
* @param {*} [options] Override http request option.
|
|
6882
|
+
* @throws {RequiredError}
|
|
6883
|
+
* @memberof ClubsStaffApi
|
|
6884
|
+
*/
|
|
6885
|
+
getClubPresentationSettings(options) {
|
|
6886
|
+
return ClubsStaffApiFp(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
6887
|
+
}
|
|
6103
6888
|
/**
|
|
6104
6889
|
* Récupère les rôles d\'un club
|
|
6105
6890
|
* @param {*} [options] Override http request option.
|
|
@@ -7342,98 +8127,6 @@ export class SportsPublicApi extends BaseAPI {
|
|
|
7342
8127
|
return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
|
|
7343
8128
|
}
|
|
7344
8129
|
}
|
|
7345
|
-
/**
|
|
7346
|
-
* SportsStaffApi - axios parameter creator
|
|
7347
|
-
* @export
|
|
7348
|
-
*/
|
|
7349
|
-
export const SportsStaffApiAxiosParamCreator = function (configuration) {
|
|
7350
|
-
return {
|
|
7351
|
-
/**
|
|
7352
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
7353
|
-
* @param {*} [options] Override http request option.
|
|
7354
|
-
* @throws {RequiredError}
|
|
7355
|
-
*/
|
|
7356
|
-
getAllSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7357
|
-
const localVarPath = `/api/sports`;
|
|
7358
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7359
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7360
|
-
let baseOptions;
|
|
7361
|
-
if (configuration) {
|
|
7362
|
-
baseOptions = configuration.baseOptions;
|
|
7363
|
-
}
|
|
7364
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7365
|
-
const localVarHeaderParameter = {};
|
|
7366
|
-
const localVarQueryParameter = {};
|
|
7367
|
-
// authentication bearerAuth required
|
|
7368
|
-
// http bearer authentication required
|
|
7369
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7370
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7371
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7372
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7373
|
-
return {
|
|
7374
|
-
url: toPathString(localVarUrlObj),
|
|
7375
|
-
options: localVarRequestOptions,
|
|
7376
|
-
};
|
|
7377
|
-
}),
|
|
7378
|
-
};
|
|
7379
|
-
};
|
|
7380
|
-
/**
|
|
7381
|
-
* SportsStaffApi - functional programming interface
|
|
7382
|
-
* @export
|
|
7383
|
-
*/
|
|
7384
|
-
export const SportsStaffApiFp = function (configuration) {
|
|
7385
|
-
const localVarAxiosParamCreator = SportsStaffApiAxiosParamCreator(configuration);
|
|
7386
|
-
return {
|
|
7387
|
-
/**
|
|
7388
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
7389
|
-
* @param {*} [options] Override http request option.
|
|
7390
|
-
* @throws {RequiredError}
|
|
7391
|
-
*/
|
|
7392
|
-
getAllSports(options) {
|
|
7393
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7394
|
-
var _a, _b, _c;
|
|
7395
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllSports(options);
|
|
7396
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7397
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SportsStaffApi.getAllSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7398
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7399
|
-
});
|
|
7400
|
-
},
|
|
7401
|
-
};
|
|
7402
|
-
};
|
|
7403
|
-
/**
|
|
7404
|
-
* SportsStaffApi - factory interface
|
|
7405
|
-
* @export
|
|
7406
|
-
*/
|
|
7407
|
-
export const SportsStaffApiFactory = function (configuration, basePath, axios) {
|
|
7408
|
-
const localVarFp = SportsStaffApiFp(configuration);
|
|
7409
|
-
return {
|
|
7410
|
-
/**
|
|
7411
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
7412
|
-
* @param {*} [options] Override http request option.
|
|
7413
|
-
* @throws {RequiredError}
|
|
7414
|
-
*/
|
|
7415
|
-
getAllSports(options) {
|
|
7416
|
-
return localVarFp.getAllSports(options).then((request) => request(axios, basePath));
|
|
7417
|
-
},
|
|
7418
|
-
};
|
|
7419
|
-
};
|
|
7420
|
-
/**
|
|
7421
|
-
* SportsStaffApi - object-oriented interface
|
|
7422
|
-
* @export
|
|
7423
|
-
* @class SportsStaffApi
|
|
7424
|
-
* @extends {BaseAPI}
|
|
7425
|
-
*/
|
|
7426
|
-
export class SportsStaffApi extends BaseAPI {
|
|
7427
|
-
/**
|
|
7428
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
7429
|
-
* @param {*} [options] Override http request option.
|
|
7430
|
-
* @throws {RequiredError}
|
|
7431
|
-
* @memberof SportsStaffApi
|
|
7432
|
-
*/
|
|
7433
|
-
getAllSports(options) {
|
|
7434
|
-
return SportsStaffApiFp(this.configuration).getAllSports(options).then((request) => request(this.axios, this.basePath));
|
|
7435
|
-
}
|
|
7436
|
-
}
|
|
7437
8130
|
/**
|
|
7438
8131
|
* SubscriptionsManagerApi - axios parameter creator
|
|
7439
8132
|
* @export
|