@tennac-booking/sdk 1.0.102 → 1.0.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +28 -8
- package/README.md +46 -16
- package/api.ts +7999 -6458
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1689 -548
- package/dist/api.js +883 -266
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1689 -548
- package/dist/esm/api.js +871 -254
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AddClubMemberRequest.md +7 -1
- package/docs/BookingPopulated.md +3 -3
- package/docs/ClientAccountOnboardingRequest.md +2 -2
- package/docs/ClientAccountsApi.md +1 -1
- package/docs/ClubAnalyticsStaffApi.md +314 -0
- package/docs/{AddCreditsToCustomer200Response.md → ClubDaySchedule.md} +7 -5
- package/docs/ClubGeneralSettingsResponse.md +32 -0
- package/docs/ClubHoursSettingsResponse.md +22 -0
- package/docs/ClubLocationSettings.md +26 -0
- package/docs/ClubPlayerBookingItem.md +36 -0
- package/docs/ClubPlayerBookingsPagination.md +28 -0
- package/docs/ClubPlayerBookingsResponse.md +24 -0
- package/docs/ClubPlayerDetailResponse.md +46 -0
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +22 -0
- package/docs/ClubPlayerStatisticsResponse.md +42 -0
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +22 -0
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +23 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +25 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +26 -0
- package/docs/ClubPlayerSubscriptionSummary.md +28 -0
- package/docs/ClubPresentationSettingsResponse.md +26 -0
- package/docs/ClubPricingPeriodResponse.md +30 -0
- package/docs/ClubReservationSettingsResponse.md +26 -0
- package/docs/ClubResponse.md +2 -0
- package/docs/ClubSettingsManagerApi.md +54 -60
- package/docs/ClubSettingsStaffApi.md +183 -0
- package/docs/ClubWeeklySchedule.md +32 -0
- package/docs/ClubsManagerApi.md +52 -58
- package/docs/ClubsStaffApi.md +44 -0
- package/docs/CourtBookingShareItem.md +26 -0
- package/docs/CourtResponse.md +1 -1
- package/docs/CreateCourtRequest.md +1 -1
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventResponse.md +1 -1
- package/docs/PartialClubResponse.md +2 -0
- package/docs/PartialClubWeeklySchedule.md +33 -0
- package/docs/RetentionRateResponse.md +24 -0
- package/docs/RevenueBySportItem.md +24 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/UpdateClubGeneralSettingsRequest.md +34 -0
- package/docs/UpdateClubHoursSettingsRequest.md +22 -0
- package/docs/UpdateClubPresentationSettingsRequest.md +26 -0
- package/docs/UpdateClubReservationSettingsRequest.md +28 -0
- package/docs/UpdateEventRequest.md +1 -1
- package/docs/UserInfo.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AddCreditsToCustomerRequest.md +0 -22
- package/docs/ClubSettingsResponse.md +0 -39
- package/docs/CreateClubSettingsRequest.md +0 -34
- package/docs/DeleteClubSettingsResponse.md +0 -20
- package/docs/EventResponseCourtsInner.md +0 -18
- package/docs/SportsStaffApi.md +0 -55
- package/docs/UpdateClubSettingsRequest.md +0 -32
package/dist/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).
|
|
@@ -1698,7 +1698,7 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1698
1698
|
* @throws {RequiredError}
|
|
1699
1699
|
*/
|
|
1700
1700
|
listAvailablePrices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1701
|
-
const localVarPath = `/client-accounts/available-prices`;
|
|
1701
|
+
const localVarPath = `/client-accounts/plans/available-prices`;
|
|
1702
1702
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1703
1703
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1704
1704
|
let baseOptions;
|
|
@@ -2252,6 +2252,107 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2252
2252
|
options: localVarRequestOptions,
|
|
2253
2253
|
};
|
|
2254
2254
|
}),
|
|
2255
|
+
/**
|
|
2256
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2257
|
+
* @param {string} playerId
|
|
2258
|
+
* @param {number} [page]
|
|
2259
|
+
* @param {number} [pageSize]
|
|
2260
|
+
* @param {*} [options] Override http request option.
|
|
2261
|
+
* @throws {RequiredError}
|
|
2262
|
+
*/
|
|
2263
|
+
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 = {}) {
|
|
2264
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
2265
|
+
assertParamExists('getClubPlayerBookingsById', 'playerId', playerId);
|
|
2266
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
2267
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2268
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2269
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2270
|
+
let baseOptions;
|
|
2271
|
+
if (configuration) {
|
|
2272
|
+
baseOptions = configuration.baseOptions;
|
|
2273
|
+
}
|
|
2274
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2275
|
+
const localVarHeaderParameter = {};
|
|
2276
|
+
const localVarQueryParameter = {};
|
|
2277
|
+
// authentication bearerAuth required
|
|
2278
|
+
// http bearer authentication required
|
|
2279
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2280
|
+
if (page !== undefined) {
|
|
2281
|
+
localVarQueryParameter['page'] = page;
|
|
2282
|
+
}
|
|
2283
|
+
if (pageSize !== undefined) {
|
|
2284
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2285
|
+
}
|
|
2286
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2287
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2288
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2289
|
+
return {
|
|
2290
|
+
url: toPathString(localVarUrlObj),
|
|
2291
|
+
options: localVarRequestOptions,
|
|
2292
|
+
};
|
|
2293
|
+
}),
|
|
2294
|
+
/**
|
|
2295
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2296
|
+
* @param {string} playerId
|
|
2297
|
+
* @param {*} [options] Override http request option.
|
|
2298
|
+
* @throws {RequiredError}
|
|
2299
|
+
*/
|
|
2300
|
+
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
2301
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
2302
|
+
assertParamExists('getClubPlayerById', 'playerId', playerId);
|
|
2303
|
+
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
2304
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2305
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2306
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2307
|
+
let baseOptions;
|
|
2308
|
+
if (configuration) {
|
|
2309
|
+
baseOptions = configuration.baseOptions;
|
|
2310
|
+
}
|
|
2311
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2312
|
+
const localVarHeaderParameter = {};
|
|
2313
|
+
const localVarQueryParameter = {};
|
|
2314
|
+
// authentication bearerAuth required
|
|
2315
|
+
// http bearer authentication required
|
|
2316
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2317
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2318
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2319
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2320
|
+
return {
|
|
2321
|
+
url: toPathString(localVarUrlObj),
|
|
2322
|
+
options: localVarRequestOptions,
|
|
2323
|
+
};
|
|
2324
|
+
}),
|
|
2325
|
+
/**
|
|
2326
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2327
|
+
* @param {string} playerId
|
|
2328
|
+
* @param {*} [options] Override http request option.
|
|
2329
|
+
* @throws {RequiredError}
|
|
2330
|
+
*/
|
|
2331
|
+
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
2332
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
2333
|
+
assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
2334
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
2335
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2336
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2337
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2338
|
+
let baseOptions;
|
|
2339
|
+
if (configuration) {
|
|
2340
|
+
baseOptions = configuration.baseOptions;
|
|
2341
|
+
}
|
|
2342
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2343
|
+
const localVarHeaderParameter = {};
|
|
2344
|
+
const localVarQueryParameter = {};
|
|
2345
|
+
// authentication bearerAuth required
|
|
2346
|
+
// http bearer authentication required
|
|
2347
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2348
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2349
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2350
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2351
|
+
return {
|
|
2352
|
+
url: toPathString(localVarUrlObj),
|
|
2353
|
+
options: localVarRequestOptions,
|
|
2354
|
+
};
|
|
2355
|
+
}),
|
|
2255
2356
|
/**
|
|
2256
2357
|
* Récupère la liste des joueurs du club
|
|
2257
2358
|
* @param {*} [options] Override http request option.
|
|
@@ -2467,6 +2568,60 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2467
2568
|
options: localVarRequestOptions,
|
|
2468
2569
|
};
|
|
2469
2570
|
}),
|
|
2571
|
+
/**
|
|
2572
|
+
* Calcule le taux de fidélisation des joueurs
|
|
2573
|
+
* @param {*} [options] Override http request option.
|
|
2574
|
+
* @throws {RequiredError}
|
|
2575
|
+
*/
|
|
2576
|
+
getRetentionRate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2577
|
+
const localVarPath = `/api/club-analytics/retention-rate`;
|
|
2578
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2579
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2580
|
+
let baseOptions;
|
|
2581
|
+
if (configuration) {
|
|
2582
|
+
baseOptions = configuration.baseOptions;
|
|
2583
|
+
}
|
|
2584
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2585
|
+
const localVarHeaderParameter = {};
|
|
2586
|
+
const localVarQueryParameter = {};
|
|
2587
|
+
// authentication bearerAuth required
|
|
2588
|
+
// http bearer authentication required
|
|
2589
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2590
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2591
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2592
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2593
|
+
return {
|
|
2594
|
+
url: toPathString(localVarUrlObj),
|
|
2595
|
+
options: localVarRequestOptions,
|
|
2596
|
+
};
|
|
2597
|
+
}),
|
|
2598
|
+
/**
|
|
2599
|
+
* Récupère le chiffre d\'affaires par sport
|
|
2600
|
+
* @param {*} [options] Override http request option.
|
|
2601
|
+
* @throws {RequiredError}
|
|
2602
|
+
*/
|
|
2603
|
+
getRevenueBySport: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2604
|
+
const localVarPath = `/api/club-analytics/revenue-by-sport`;
|
|
2605
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2606
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2607
|
+
let baseOptions;
|
|
2608
|
+
if (configuration) {
|
|
2609
|
+
baseOptions = configuration.baseOptions;
|
|
2610
|
+
}
|
|
2611
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2612
|
+
const localVarHeaderParameter = {};
|
|
2613
|
+
const localVarQueryParameter = {};
|
|
2614
|
+
// authentication bearerAuth required
|
|
2615
|
+
// http bearer authentication required
|
|
2616
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2617
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2618
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2619
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2620
|
+
return {
|
|
2621
|
+
url: toPathString(localVarUrlObj),
|
|
2622
|
+
options: localVarRequestOptions,
|
|
2623
|
+
};
|
|
2624
|
+
}),
|
|
2470
2625
|
/**
|
|
2471
2626
|
* Récupère les 10 prochaines réservations
|
|
2472
2627
|
* @param {*} [options] Override http request option.
|
|
@@ -2494,6 +2649,33 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2494
2649
|
options: localVarRequestOptions,
|
|
2495
2650
|
};
|
|
2496
2651
|
}),
|
|
2652
|
+
/**
|
|
2653
|
+
* Classement des terrains les plus réservés
|
|
2654
|
+
* @param {*} [options] Override http request option.
|
|
2655
|
+
* @throws {RequiredError}
|
|
2656
|
+
*/
|
|
2657
|
+
getTopCourtsByBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2658
|
+
const localVarPath = `/api/club-analytics/top-courts`;
|
|
2659
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2660
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2661
|
+
let baseOptions;
|
|
2662
|
+
if (configuration) {
|
|
2663
|
+
baseOptions = configuration.baseOptions;
|
|
2664
|
+
}
|
|
2665
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2666
|
+
const localVarHeaderParameter = {};
|
|
2667
|
+
const localVarQueryParameter = {};
|
|
2668
|
+
// authentication bearerAuth required
|
|
2669
|
+
// http bearer authentication required
|
|
2670
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2671
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2672
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2673
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2674
|
+
return {
|
|
2675
|
+
url: toPathString(localVarUrlObj),
|
|
2676
|
+
options: localVarRequestOptions,
|
|
2677
|
+
};
|
|
2678
|
+
}),
|
|
2497
2679
|
/**
|
|
2498
2680
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2499
2681
|
* @param {string} year
|
|
@@ -2551,6 +2733,53 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2551
2733
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2552
2734
|
});
|
|
2553
2735
|
},
|
|
2736
|
+
/**
|
|
2737
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2738
|
+
* @param {string} playerId
|
|
2739
|
+
* @param {number} [page]
|
|
2740
|
+
* @param {number} [pageSize]
|
|
2741
|
+
* @param {*} [options] Override http request option.
|
|
2742
|
+
* @throws {RequiredError}
|
|
2743
|
+
*/
|
|
2744
|
+
getClubPlayerBookingsById(playerId, page, pageSize, options) {
|
|
2745
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2746
|
+
var _a, _b, _c;
|
|
2747
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, page, pageSize, options);
|
|
2748
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2749
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2750
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2751
|
+
});
|
|
2752
|
+
},
|
|
2753
|
+
/**
|
|
2754
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2755
|
+
* @param {string} playerId
|
|
2756
|
+
* @param {*} [options] Override http request option.
|
|
2757
|
+
* @throws {RequiredError}
|
|
2758
|
+
*/
|
|
2759
|
+
getClubPlayerById(playerId, options) {
|
|
2760
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2761
|
+
var _a, _b, _c;
|
|
2762
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
|
|
2763
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2764
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2765
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2766
|
+
});
|
|
2767
|
+
},
|
|
2768
|
+
/**
|
|
2769
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2770
|
+
* @param {string} playerId
|
|
2771
|
+
* @param {*} [options] Override http request option.
|
|
2772
|
+
* @throws {RequiredError}
|
|
2773
|
+
*/
|
|
2774
|
+
getClubPlayerStatisticsById(playerId, options) {
|
|
2775
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2776
|
+
var _a, _b, _c;
|
|
2777
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
|
|
2778
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2779
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2780
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2781
|
+
});
|
|
2782
|
+
},
|
|
2554
2783
|
/**
|
|
2555
2784
|
* Récupère la liste des joueurs du club
|
|
2556
2785
|
* @param {*} [options] Override http request option.
|
|
@@ -2654,6 +2883,34 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2654
2883
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2655
2884
|
});
|
|
2656
2885
|
},
|
|
2886
|
+
/**
|
|
2887
|
+
* Calcule le taux de fidélisation des joueurs
|
|
2888
|
+
* @param {*} [options] Override http request option.
|
|
2889
|
+
* @throws {RequiredError}
|
|
2890
|
+
*/
|
|
2891
|
+
getRetentionRate(options) {
|
|
2892
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2893
|
+
var _a, _b, _c;
|
|
2894
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRetentionRate(options);
|
|
2895
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2896
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getRetentionRate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2897
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2898
|
+
});
|
|
2899
|
+
},
|
|
2900
|
+
/**
|
|
2901
|
+
* Récupère le chiffre d\'affaires par sport
|
|
2902
|
+
* @param {*} [options] Override http request option.
|
|
2903
|
+
* @throws {RequiredError}
|
|
2904
|
+
*/
|
|
2905
|
+
getRevenueBySport(options) {
|
|
2906
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2907
|
+
var _a, _b, _c;
|
|
2908
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRevenueBySport(options);
|
|
2909
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2910
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getRevenueBySport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2911
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2912
|
+
});
|
|
2913
|
+
},
|
|
2657
2914
|
/**
|
|
2658
2915
|
* Récupère les 10 prochaines réservations
|
|
2659
2916
|
* @param {*} [options] Override http request option.
|
|
@@ -2668,6 +2925,20 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2668
2925
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2669
2926
|
});
|
|
2670
2927
|
},
|
|
2928
|
+
/**
|
|
2929
|
+
* Classement des terrains les plus réservés
|
|
2930
|
+
* @param {*} [options] Override http request option.
|
|
2931
|
+
* @throws {RequiredError}
|
|
2932
|
+
*/
|
|
2933
|
+
getTopCourtsByBookings(options) {
|
|
2934
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2935
|
+
var _a, _b, _c;
|
|
2936
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTopCourtsByBookings(options);
|
|
2937
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2938
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getTopCourtsByBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2939
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2940
|
+
});
|
|
2941
|
+
},
|
|
2671
2942
|
/**
|
|
2672
2943
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2673
2944
|
* @param {string} year
|
|
@@ -2701,6 +2972,33 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
|
|
|
2701
2972
|
getAnalyticsBySport(requestParameters, options) {
|
|
2702
2973
|
return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
2703
2974
|
},
|
|
2975
|
+
/**
|
|
2976
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2977
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2978
|
+
* @param {*} [options] Override http request option.
|
|
2979
|
+
* @throws {RequiredError}
|
|
2980
|
+
*/
|
|
2981
|
+
getClubPlayerBookingsById(requestParameters, options) {
|
|
2982
|
+
return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
2983
|
+
},
|
|
2984
|
+
/**
|
|
2985
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2986
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2987
|
+
* @param {*} [options] Override http request option.
|
|
2988
|
+
* @throws {RequiredError}
|
|
2989
|
+
*/
|
|
2990
|
+
getClubPlayerById(requestParameters, options) {
|
|
2991
|
+
return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2992
|
+
},
|
|
2993
|
+
/**
|
|
2994
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2995
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2996
|
+
* @param {*} [options] Override http request option.
|
|
2997
|
+
* @throws {RequiredError}
|
|
2998
|
+
*/
|
|
2999
|
+
getClubPlayerStatisticsById(requestParameters, options) {
|
|
3000
|
+
return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
3001
|
+
},
|
|
2704
3002
|
/**
|
|
2705
3003
|
* Récupère la liste des joueurs du club
|
|
2706
3004
|
* @param {*} [options] Override http request option.
|
|
@@ -2760,6 +3058,22 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
|
|
|
2760
3058
|
getNumberOfClubUsers(options) {
|
|
2761
3059
|
return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
|
|
2762
3060
|
},
|
|
3061
|
+
/**
|
|
3062
|
+
* Calcule le taux de fidélisation des joueurs
|
|
3063
|
+
* @param {*} [options] Override http request option.
|
|
3064
|
+
* @throws {RequiredError}
|
|
3065
|
+
*/
|
|
3066
|
+
getRetentionRate(options) {
|
|
3067
|
+
return localVarFp.getRetentionRate(options).then((request) => request(axios, basePath));
|
|
3068
|
+
},
|
|
3069
|
+
/**
|
|
3070
|
+
* Récupère le chiffre d\'affaires par sport
|
|
3071
|
+
* @param {*} [options] Override http request option.
|
|
3072
|
+
* @throws {RequiredError}
|
|
3073
|
+
*/
|
|
3074
|
+
getRevenueBySport(options) {
|
|
3075
|
+
return localVarFp.getRevenueBySport(options).then((request) => request(axios, basePath));
|
|
3076
|
+
},
|
|
2763
3077
|
/**
|
|
2764
3078
|
* Récupère les 10 prochaines réservations
|
|
2765
3079
|
* @param {*} [options] Override http request option.
|
|
@@ -2768,6 +3082,14 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
|
|
|
2768
3082
|
getTenNextBookings(options) {
|
|
2769
3083
|
return localVarFp.getTenNextBookings(options).then((request) => request(axios, basePath));
|
|
2770
3084
|
},
|
|
3085
|
+
/**
|
|
3086
|
+
* Classement des terrains les plus réservés
|
|
3087
|
+
* @param {*} [options] Override http request option.
|
|
3088
|
+
* @throws {RequiredError}
|
|
3089
|
+
*/
|
|
3090
|
+
getTopCourtsByBookings(options) {
|
|
3091
|
+
return localVarFp.getTopCourtsByBookings(options).then((request) => request(axios, basePath));
|
|
3092
|
+
},
|
|
2771
3093
|
/**
|
|
2772
3094
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2773
3095
|
* @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -2796,6 +3118,36 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
|
|
|
2796
3118
|
getAnalyticsBySport(requestParameters, options) {
|
|
2797
3119
|
return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
2798
3120
|
}
|
|
3121
|
+
/**
|
|
3122
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
3123
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
3124
|
+
* @param {*} [options] Override http request option.
|
|
3125
|
+
* @throws {RequiredError}
|
|
3126
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3127
|
+
*/
|
|
3128
|
+
getClubPlayerBookingsById(requestParameters, options) {
|
|
3129
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
3130
|
+
}
|
|
3131
|
+
/**
|
|
3132
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
3133
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
3134
|
+
* @param {*} [options] Override http request option.
|
|
3135
|
+
* @throws {RequiredError}
|
|
3136
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3137
|
+
*/
|
|
3138
|
+
getClubPlayerById(requestParameters, options) {
|
|
3139
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
3140
|
+
}
|
|
3141
|
+
/**
|
|
3142
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
3143
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
3144
|
+
* @param {*} [options] Override http request option.
|
|
3145
|
+
* @throws {RequiredError}
|
|
3146
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3147
|
+
*/
|
|
3148
|
+
getClubPlayerStatisticsById(requestParameters, options) {
|
|
3149
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
3150
|
+
}
|
|
2799
3151
|
/**
|
|
2800
3152
|
* Récupère la liste des joueurs du club
|
|
2801
3153
|
* @param {*} [options] Override http request option.
|
|
@@ -2862,6 +3214,24 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
|
|
|
2862
3214
|
getNumberOfClubUsers(options) {
|
|
2863
3215
|
return ClubAnalyticsStaffApiFp(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
|
|
2864
3216
|
}
|
|
3217
|
+
/**
|
|
3218
|
+
* Calcule le taux de fidélisation des joueurs
|
|
3219
|
+
* @param {*} [options] Override http request option.
|
|
3220
|
+
* @throws {RequiredError}
|
|
3221
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3222
|
+
*/
|
|
3223
|
+
getRetentionRate(options) {
|
|
3224
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getRetentionRate(options).then((request) => request(this.axios, this.basePath));
|
|
3225
|
+
}
|
|
3226
|
+
/**
|
|
3227
|
+
* Récupère le chiffre d\'affaires par sport
|
|
3228
|
+
* @param {*} [options] Override http request option.
|
|
3229
|
+
* @throws {RequiredError}
|
|
3230
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3231
|
+
*/
|
|
3232
|
+
getRevenueBySport(options) {
|
|
3233
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getRevenueBySport(options).then((request) => request(this.axios, this.basePath));
|
|
3234
|
+
}
|
|
2865
3235
|
/**
|
|
2866
3236
|
* Récupère les 10 prochaines réservations
|
|
2867
3237
|
* @param {*} [options] Override http request option.
|
|
@@ -2871,6 +3241,15 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
|
|
|
2871
3241
|
getTenNextBookings(options) {
|
|
2872
3242
|
return ClubAnalyticsStaffApiFp(this.configuration).getTenNextBookings(options).then((request) => request(this.axios, this.basePath));
|
|
2873
3243
|
}
|
|
3244
|
+
/**
|
|
3245
|
+
* Classement des terrains les plus réservés
|
|
3246
|
+
* @param {*} [options] Override http request option.
|
|
3247
|
+
* @throws {RequiredError}
|
|
3248
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3249
|
+
*/
|
|
3250
|
+
getTopCourtsByBookings(options) {
|
|
3251
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getTopCourtsByBookings(options).then((request) => request(this.axios, this.basePath));
|
|
3252
|
+
}
|
|
2874
3253
|
/**
|
|
2875
3254
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2876
3255
|
* @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -3340,55 +3719,344 @@ export class ClubRolesStaffApi extends BaseAPI {
|
|
|
3340
3719
|
export const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
3341
3720
|
return {
|
|
3342
3721
|
/**
|
|
3343
|
-
*
|
|
3344
|
-
* @param {
|
|
3345
|
-
* @param {
|
|
3722
|
+
*
|
|
3723
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
3724
|
+
* @param {*} [options] Override http request option.
|
|
3725
|
+
* @throws {RequiredError}
|
|
3726
|
+
*/
|
|
3727
|
+
updateClubGeneralSettings: (updateClubGeneralSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubGeneralSettingsRequest_1, ...args_1], void 0, function* (updateClubGeneralSettingsRequest, options = {}) {
|
|
3728
|
+
// verify required parameter 'updateClubGeneralSettingsRequest' is not null or undefined
|
|
3729
|
+
assertParamExists('updateClubGeneralSettings', 'updateClubGeneralSettingsRequest', updateClubGeneralSettingsRequest);
|
|
3730
|
+
const localVarPath = `/api/club-settings/settings/general`;
|
|
3731
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3732
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3733
|
+
let baseOptions;
|
|
3734
|
+
if (configuration) {
|
|
3735
|
+
baseOptions = configuration.baseOptions;
|
|
3736
|
+
}
|
|
3737
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3738
|
+
const localVarHeaderParameter = {};
|
|
3739
|
+
const localVarQueryParameter = {};
|
|
3740
|
+
// authentication bearerAuth required
|
|
3741
|
+
// http bearer authentication required
|
|
3742
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3743
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3744
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3745
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3746
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3747
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubGeneralSettingsRequest, localVarRequestOptions, configuration);
|
|
3748
|
+
return {
|
|
3749
|
+
url: toPathString(localVarUrlObj),
|
|
3750
|
+
options: localVarRequestOptions,
|
|
3751
|
+
};
|
|
3752
|
+
}),
|
|
3753
|
+
/**
|
|
3754
|
+
*
|
|
3755
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
3756
|
+
* @param {*} [options] Override http request option.
|
|
3757
|
+
* @throws {RequiredError}
|
|
3758
|
+
*/
|
|
3759
|
+
updateHoursSettings: (updateClubHoursSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubHoursSettingsRequest_1, ...args_1], void 0, function* (updateClubHoursSettingsRequest, options = {}) {
|
|
3760
|
+
// verify required parameter 'updateClubHoursSettingsRequest' is not null or undefined
|
|
3761
|
+
assertParamExists('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
|
|
3762
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
3763
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3764
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3765
|
+
let baseOptions;
|
|
3766
|
+
if (configuration) {
|
|
3767
|
+
baseOptions = configuration.baseOptions;
|
|
3768
|
+
}
|
|
3769
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3770
|
+
const localVarHeaderParameter = {};
|
|
3771
|
+
const localVarQueryParameter = {};
|
|
3772
|
+
// authentication bearerAuth required
|
|
3773
|
+
// http bearer authentication required
|
|
3774
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3775
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3776
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3777
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3778
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3779
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
|
|
3780
|
+
return {
|
|
3781
|
+
url: toPathString(localVarUrlObj),
|
|
3782
|
+
options: localVarRequestOptions,
|
|
3783
|
+
};
|
|
3784
|
+
}),
|
|
3785
|
+
/**
|
|
3786
|
+
*
|
|
3787
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
3788
|
+
* @param {*} [options] Override http request option.
|
|
3789
|
+
* @throws {RequiredError}
|
|
3790
|
+
*/
|
|
3791
|
+
updatePresentationSettings: (clubPresentationSettingsResponse_1, ...args_1) => __awaiter(this, [clubPresentationSettingsResponse_1, ...args_1], void 0, function* (clubPresentationSettingsResponse, options = {}) {
|
|
3792
|
+
// verify required parameter 'clubPresentationSettingsResponse' is not null or undefined
|
|
3793
|
+
assertParamExists('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse);
|
|
3794
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
3795
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3796
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3797
|
+
let baseOptions;
|
|
3798
|
+
if (configuration) {
|
|
3799
|
+
baseOptions = configuration.baseOptions;
|
|
3800
|
+
}
|
|
3801
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3802
|
+
const localVarHeaderParameter = {};
|
|
3803
|
+
const localVarQueryParameter = {};
|
|
3804
|
+
// authentication bearerAuth required
|
|
3805
|
+
// http bearer authentication required
|
|
3806
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3807
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3808
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3809
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3810
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3811
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clubPresentationSettingsResponse, localVarRequestOptions, configuration);
|
|
3812
|
+
return {
|
|
3813
|
+
url: toPathString(localVarUrlObj),
|
|
3814
|
+
options: localVarRequestOptions,
|
|
3815
|
+
};
|
|
3816
|
+
}),
|
|
3817
|
+
/**
|
|
3818
|
+
*
|
|
3819
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
3820
|
+
* @param {*} [options] Override http request option.
|
|
3821
|
+
* @throws {RequiredError}
|
|
3822
|
+
*/
|
|
3823
|
+
updateReservationSettings: (updateClubReservationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubReservationSettingsRequest_1, ...args_1], void 0, function* (updateClubReservationSettingsRequest, options = {}) {
|
|
3824
|
+
// verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
|
|
3825
|
+
assertParamExists('updateReservationSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest);
|
|
3826
|
+
const localVarPath = `/api/club-settings/reservation`;
|
|
3827
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3828
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3829
|
+
let baseOptions;
|
|
3830
|
+
if (configuration) {
|
|
3831
|
+
baseOptions = configuration.baseOptions;
|
|
3832
|
+
}
|
|
3833
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3834
|
+
const localVarHeaderParameter = {};
|
|
3835
|
+
const localVarQueryParameter = {};
|
|
3836
|
+
// authentication bearerAuth required
|
|
3837
|
+
// http bearer authentication required
|
|
3838
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3839
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3840
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3841
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3842
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3843
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
|
|
3844
|
+
return {
|
|
3845
|
+
url: toPathString(localVarUrlObj),
|
|
3846
|
+
options: localVarRequestOptions,
|
|
3847
|
+
};
|
|
3848
|
+
}),
|
|
3849
|
+
};
|
|
3850
|
+
};
|
|
3851
|
+
/**
|
|
3852
|
+
* ClubSettingsManagerApi - functional programming interface
|
|
3853
|
+
* @export
|
|
3854
|
+
*/
|
|
3855
|
+
export const ClubSettingsManagerApiFp = function (configuration) {
|
|
3856
|
+
const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration);
|
|
3857
|
+
return {
|
|
3858
|
+
/**
|
|
3859
|
+
*
|
|
3860
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
3861
|
+
* @param {*} [options] Override http request option.
|
|
3862
|
+
* @throws {RequiredError}
|
|
3863
|
+
*/
|
|
3864
|
+
updateClubGeneralSettings(updateClubGeneralSettingsRequest, options) {
|
|
3865
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3866
|
+
var _a, _b, _c;
|
|
3867
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
|
|
3868
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3869
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3870
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3871
|
+
});
|
|
3872
|
+
},
|
|
3873
|
+
/**
|
|
3874
|
+
*
|
|
3875
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
3876
|
+
* @param {*} [options] Override http request option.
|
|
3877
|
+
* @throws {RequiredError}
|
|
3878
|
+
*/
|
|
3879
|
+
updateHoursSettings(updateClubHoursSettingsRequest, options) {
|
|
3880
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3881
|
+
var _a, _b, _c;
|
|
3882
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
|
|
3883
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3884
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3885
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3886
|
+
});
|
|
3887
|
+
},
|
|
3888
|
+
/**
|
|
3889
|
+
*
|
|
3890
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
3891
|
+
* @param {*} [options] Override http request option.
|
|
3892
|
+
* @throws {RequiredError}
|
|
3893
|
+
*/
|
|
3894
|
+
updatePresentationSettings(clubPresentationSettingsResponse, options) {
|
|
3895
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3896
|
+
var _a, _b, _c;
|
|
3897
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
|
|
3898
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3899
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3900
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3901
|
+
});
|
|
3902
|
+
},
|
|
3903
|
+
/**
|
|
3904
|
+
*
|
|
3905
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
3906
|
+
* @param {*} [options] Override http request option.
|
|
3907
|
+
* @throws {RequiredError}
|
|
3908
|
+
*/
|
|
3909
|
+
updateReservationSettings(updateClubReservationSettingsRequest, options) {
|
|
3910
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3911
|
+
var _a, _b, _c;
|
|
3912
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
|
|
3913
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3914
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3915
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3916
|
+
});
|
|
3917
|
+
},
|
|
3918
|
+
};
|
|
3919
|
+
};
|
|
3920
|
+
/**
|
|
3921
|
+
* ClubSettingsManagerApi - factory interface
|
|
3922
|
+
* @export
|
|
3923
|
+
*/
|
|
3924
|
+
export const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
|
|
3925
|
+
const localVarFp = ClubSettingsManagerApiFp(configuration);
|
|
3926
|
+
return {
|
|
3927
|
+
/**
|
|
3928
|
+
*
|
|
3929
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
3930
|
+
* @param {*} [options] Override http request option.
|
|
3931
|
+
* @throws {RequiredError}
|
|
3932
|
+
*/
|
|
3933
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
3934
|
+
return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3935
|
+
},
|
|
3936
|
+
/**
|
|
3937
|
+
*
|
|
3938
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
3939
|
+
* @param {*} [options] Override http request option.
|
|
3940
|
+
* @throws {RequiredError}
|
|
3941
|
+
*/
|
|
3942
|
+
updateHoursSettings(requestParameters, options) {
|
|
3943
|
+
return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3944
|
+
},
|
|
3945
|
+
/**
|
|
3946
|
+
*
|
|
3947
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
3948
|
+
* @param {*} [options] Override http request option.
|
|
3949
|
+
* @throws {RequiredError}
|
|
3950
|
+
*/
|
|
3951
|
+
updatePresentationSettings(requestParameters, options) {
|
|
3952
|
+
return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
|
|
3953
|
+
},
|
|
3954
|
+
/**
|
|
3955
|
+
*
|
|
3956
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
3957
|
+
* @param {*} [options] Override http request option.
|
|
3958
|
+
* @throws {RequiredError}
|
|
3959
|
+
*/
|
|
3960
|
+
updateReservationSettings(requestParameters, options) {
|
|
3961
|
+
return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3962
|
+
},
|
|
3963
|
+
};
|
|
3964
|
+
};
|
|
3965
|
+
/**
|
|
3966
|
+
* ClubSettingsManagerApi - object-oriented interface
|
|
3967
|
+
* @export
|
|
3968
|
+
* @class ClubSettingsManagerApi
|
|
3969
|
+
* @extends {BaseAPI}
|
|
3970
|
+
*/
|
|
3971
|
+
export class ClubSettingsManagerApi extends BaseAPI {
|
|
3972
|
+
/**
|
|
3973
|
+
*
|
|
3974
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
3975
|
+
* @param {*} [options] Override http request option.
|
|
3976
|
+
* @throws {RequiredError}
|
|
3977
|
+
* @memberof ClubSettingsManagerApi
|
|
3978
|
+
*/
|
|
3979
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
3980
|
+
return ClubSettingsManagerApiFp(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3981
|
+
}
|
|
3982
|
+
/**
|
|
3983
|
+
*
|
|
3984
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
3985
|
+
* @param {*} [options] Override http request option.
|
|
3986
|
+
* @throws {RequiredError}
|
|
3987
|
+
* @memberof ClubSettingsManagerApi
|
|
3988
|
+
*/
|
|
3989
|
+
updateHoursSettings(requestParameters, options) {
|
|
3990
|
+
return ClubSettingsManagerApiFp(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3991
|
+
}
|
|
3992
|
+
/**
|
|
3993
|
+
*
|
|
3994
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
3995
|
+
* @param {*} [options] Override http request option.
|
|
3996
|
+
* @throws {RequiredError}
|
|
3997
|
+
* @memberof ClubSettingsManagerApi
|
|
3998
|
+
*/
|
|
3999
|
+
updatePresentationSettings(requestParameters, options) {
|
|
4000
|
+
return ClubSettingsManagerApiFp(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
|
|
4001
|
+
}
|
|
4002
|
+
/**
|
|
4003
|
+
*
|
|
4004
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
4005
|
+
* @param {*} [options] Override http request option.
|
|
4006
|
+
* @throws {RequiredError}
|
|
4007
|
+
* @memberof ClubSettingsManagerApi
|
|
4008
|
+
*/
|
|
4009
|
+
updateReservationSettings(requestParameters, options) {
|
|
4010
|
+
return ClubSettingsManagerApiFp(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4011
|
+
}
|
|
4012
|
+
}
|
|
4013
|
+
/**
|
|
4014
|
+
* ClubSettingsStaffApi - axios parameter creator
|
|
4015
|
+
* @export
|
|
4016
|
+
*/
|
|
4017
|
+
export const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
|
|
4018
|
+
return {
|
|
4019
|
+
/**
|
|
4020
|
+
*
|
|
3346
4021
|
* @param {*} [options] Override http request option.
|
|
3347
4022
|
* @throws {RequiredError}
|
|
3348
4023
|
*/
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
assertParamExists('createClubSettings', 'clubId', clubId);
|
|
3352
|
-
// verify required parameter 'createClubSettingsRequest' is not null or undefined
|
|
3353
|
-
assertParamExists('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
|
|
3354
|
-
const localVarPath = `/api/club-settings/{clubId}`
|
|
3355
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
4024
|
+
getClubGeneralSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4025
|
+
const localVarPath = `/api/club-settings/settings/general`;
|
|
3356
4026
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3357
4027
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3358
4028
|
let baseOptions;
|
|
3359
4029
|
if (configuration) {
|
|
3360
4030
|
baseOptions = configuration.baseOptions;
|
|
3361
4031
|
}
|
|
3362
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4032
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3363
4033
|
const localVarHeaderParameter = {};
|
|
3364
4034
|
const localVarQueryParameter = {};
|
|
3365
4035
|
// authentication bearerAuth required
|
|
3366
4036
|
// http bearer authentication required
|
|
3367
4037
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3368
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3369
4038
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3370
4039
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3371
4040
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3372
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createClubSettingsRequest, localVarRequestOptions, configuration);
|
|
3373
4041
|
return {
|
|
3374
4042
|
url: toPathString(localVarUrlObj),
|
|
3375
4043
|
options: localVarRequestOptions,
|
|
3376
4044
|
};
|
|
3377
4045
|
}),
|
|
3378
4046
|
/**
|
|
3379
|
-
*
|
|
4047
|
+
*
|
|
3380
4048
|
* @param {*} [options] Override http request option.
|
|
3381
4049
|
* @throws {RequiredError}
|
|
3382
4050
|
*/
|
|
3383
|
-
|
|
3384
|
-
const localVarPath = `/api/club-settings`;
|
|
4051
|
+
getHoursSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4052
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
3385
4053
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3386
4054
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3387
4055
|
let baseOptions;
|
|
3388
4056
|
if (configuration) {
|
|
3389
4057
|
baseOptions = configuration.baseOptions;
|
|
3390
4058
|
}
|
|
3391
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4059
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3392
4060
|
const localVarHeaderParameter = {};
|
|
3393
4061
|
const localVarQueryParameter = {};
|
|
3394
4062
|
// authentication bearerAuth required
|
|
@@ -3403,12 +4071,12 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
3403
4071
|
};
|
|
3404
4072
|
}),
|
|
3405
4073
|
/**
|
|
3406
|
-
*
|
|
4074
|
+
*
|
|
3407
4075
|
* @param {*} [options] Override http request option.
|
|
3408
4076
|
* @throws {RequiredError}
|
|
3409
4077
|
*/
|
|
3410
|
-
|
|
3411
|
-
const localVarPath = `/api/club-settings`;
|
|
4078
|
+
getPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4079
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
3412
4080
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3413
4081
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3414
4082
|
let baseOptions;
|
|
@@ -3430,32 +4098,27 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
3430
4098
|
};
|
|
3431
4099
|
}),
|
|
3432
4100
|
/**
|
|
3433
|
-
*
|
|
3434
|
-
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
4101
|
+
*
|
|
3435
4102
|
* @param {*} [options] Override http request option.
|
|
3436
4103
|
* @throws {RequiredError}
|
|
3437
4104
|
*/
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
assertParamExists('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
|
|
3441
|
-
const localVarPath = `/api/club-settings`;
|
|
4105
|
+
getReservationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4106
|
+
const localVarPath = `/api/club-settings/reservation`;
|
|
3442
4107
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3443
4108
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3444
4109
|
let baseOptions;
|
|
3445
4110
|
if (configuration) {
|
|
3446
4111
|
baseOptions = configuration.baseOptions;
|
|
3447
4112
|
}
|
|
3448
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4113
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3449
4114
|
const localVarHeaderParameter = {};
|
|
3450
4115
|
const localVarQueryParameter = {};
|
|
3451
4116
|
// authentication bearerAuth required
|
|
3452
4117
|
// http bearer authentication required
|
|
3453
4118
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3454
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3455
4119
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3456
4120
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3457
4121
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3458
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateClubSettingsRequest, localVarRequestOptions, configuration);
|
|
3459
4122
|
return {
|
|
3460
4123
|
url: toPathString(localVarUrlObj),
|
|
3461
4124
|
options: localVarRequestOptions,
|
|
@@ -3464,160 +4127,153 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
3464
4127
|
};
|
|
3465
4128
|
};
|
|
3466
4129
|
/**
|
|
3467
|
-
*
|
|
4130
|
+
* ClubSettingsStaffApi - functional programming interface
|
|
3468
4131
|
* @export
|
|
3469
4132
|
*/
|
|
3470
|
-
export const
|
|
3471
|
-
const localVarAxiosParamCreator =
|
|
4133
|
+
export const ClubSettingsStaffApiFp = function (configuration) {
|
|
4134
|
+
const localVarAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator(configuration);
|
|
3472
4135
|
return {
|
|
3473
4136
|
/**
|
|
3474
|
-
*
|
|
3475
|
-
* @param {string} clubId
|
|
3476
|
-
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
4137
|
+
*
|
|
3477
4138
|
* @param {*} [options] Override http request option.
|
|
3478
4139
|
* @throws {RequiredError}
|
|
3479
4140
|
*/
|
|
3480
|
-
|
|
4141
|
+
getClubGeneralSettings(options) {
|
|
3481
4142
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3482
4143
|
var _a, _b, _c;
|
|
3483
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4144
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubGeneralSettings(options);
|
|
3484
4145
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3485
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
4146
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3486
4147
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3487
4148
|
});
|
|
3488
4149
|
},
|
|
3489
4150
|
/**
|
|
3490
|
-
*
|
|
4151
|
+
*
|
|
3491
4152
|
* @param {*} [options] Override http request option.
|
|
3492
4153
|
* @throws {RequiredError}
|
|
3493
4154
|
*/
|
|
3494
|
-
|
|
4155
|
+
getHoursSettings(options) {
|
|
3495
4156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3496
4157
|
var _a, _b, _c;
|
|
3497
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4158
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getHoursSettings(options);
|
|
3498
4159
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3499
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
4160
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3500
4161
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3501
4162
|
});
|
|
3502
4163
|
},
|
|
3503
4164
|
/**
|
|
3504
|
-
*
|
|
4165
|
+
*
|
|
3505
4166
|
* @param {*} [options] Override http request option.
|
|
3506
4167
|
* @throws {RequiredError}
|
|
3507
4168
|
*/
|
|
3508
|
-
|
|
4169
|
+
getPresentationSettings(options) {
|
|
3509
4170
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3510
4171
|
var _a, _b, _c;
|
|
3511
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4172
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPresentationSettings(options);
|
|
3512
4173
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3513
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
4174
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3514
4175
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3515
4176
|
});
|
|
3516
4177
|
},
|
|
3517
4178
|
/**
|
|
3518
|
-
*
|
|
3519
|
-
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
4179
|
+
*
|
|
3520
4180
|
* @param {*} [options] Override http request option.
|
|
3521
4181
|
* @throws {RequiredError}
|
|
3522
4182
|
*/
|
|
3523
|
-
|
|
4183
|
+
getReservationSettings(options) {
|
|
3524
4184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3525
4185
|
var _a, _b, _c;
|
|
3526
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4186
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReservationSettings(options);
|
|
3527
4187
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3528
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
4188
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3529
4189
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3530
4190
|
});
|
|
3531
4191
|
},
|
|
3532
4192
|
};
|
|
3533
4193
|
};
|
|
3534
4194
|
/**
|
|
3535
|
-
*
|
|
4195
|
+
* ClubSettingsStaffApi - factory interface
|
|
3536
4196
|
* @export
|
|
3537
4197
|
*/
|
|
3538
|
-
export const
|
|
3539
|
-
const localVarFp =
|
|
4198
|
+
export const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
4199
|
+
const localVarFp = ClubSettingsStaffApiFp(configuration);
|
|
3540
4200
|
return {
|
|
3541
4201
|
/**
|
|
3542
|
-
*
|
|
3543
|
-
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
4202
|
+
*
|
|
3544
4203
|
* @param {*} [options] Override http request option.
|
|
3545
4204
|
* @throws {RequiredError}
|
|
3546
4205
|
*/
|
|
3547
|
-
|
|
3548
|
-
return localVarFp.
|
|
4206
|
+
getClubGeneralSettings(options) {
|
|
4207
|
+
return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
|
|
3549
4208
|
},
|
|
3550
4209
|
/**
|
|
3551
|
-
*
|
|
4210
|
+
*
|
|
3552
4211
|
* @param {*} [options] Override http request option.
|
|
3553
4212
|
* @throws {RequiredError}
|
|
3554
4213
|
*/
|
|
3555
|
-
|
|
3556
|
-
return localVarFp.
|
|
4214
|
+
getHoursSettings(options) {
|
|
4215
|
+
return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
|
|
3557
4216
|
},
|
|
3558
4217
|
/**
|
|
3559
|
-
*
|
|
4218
|
+
*
|
|
3560
4219
|
* @param {*} [options] Override http request option.
|
|
3561
4220
|
* @throws {RequiredError}
|
|
3562
4221
|
*/
|
|
3563
|
-
|
|
3564
|
-
return localVarFp.
|
|
4222
|
+
getPresentationSettings(options) {
|
|
4223
|
+
return localVarFp.getPresentationSettings(options).then((request) => request(axios, basePath));
|
|
3565
4224
|
},
|
|
3566
4225
|
/**
|
|
3567
|
-
*
|
|
3568
|
-
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
4226
|
+
*
|
|
3569
4227
|
* @param {*} [options] Override http request option.
|
|
3570
4228
|
* @throws {RequiredError}
|
|
3571
4229
|
*/
|
|
3572
|
-
|
|
3573
|
-
return localVarFp.
|
|
4230
|
+
getReservationSettings(options) {
|
|
4231
|
+
return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
|
|
3574
4232
|
},
|
|
3575
4233
|
};
|
|
3576
4234
|
};
|
|
3577
4235
|
/**
|
|
3578
|
-
*
|
|
4236
|
+
* ClubSettingsStaffApi - object-oriented interface
|
|
3579
4237
|
* @export
|
|
3580
|
-
* @class
|
|
4238
|
+
* @class ClubSettingsStaffApi
|
|
3581
4239
|
* @extends {BaseAPI}
|
|
3582
4240
|
*/
|
|
3583
|
-
export class
|
|
4241
|
+
export class ClubSettingsStaffApi extends BaseAPI {
|
|
3584
4242
|
/**
|
|
3585
|
-
*
|
|
3586
|
-
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
4243
|
+
*
|
|
3587
4244
|
* @param {*} [options] Override http request option.
|
|
3588
4245
|
* @throws {RequiredError}
|
|
3589
|
-
* @memberof
|
|
4246
|
+
* @memberof ClubSettingsStaffApi
|
|
3590
4247
|
*/
|
|
3591
|
-
|
|
3592
|
-
return
|
|
4248
|
+
getClubGeneralSettings(options) {
|
|
4249
|
+
return ClubSettingsStaffApiFp(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3593
4250
|
}
|
|
3594
4251
|
/**
|
|
3595
|
-
*
|
|
4252
|
+
*
|
|
3596
4253
|
* @param {*} [options] Override http request option.
|
|
3597
4254
|
* @throws {RequiredError}
|
|
3598
|
-
* @memberof
|
|
4255
|
+
* @memberof ClubSettingsStaffApi
|
|
3599
4256
|
*/
|
|
3600
|
-
|
|
3601
|
-
return
|
|
4257
|
+
getHoursSettings(options) {
|
|
4258
|
+
return ClubSettingsStaffApiFp(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3602
4259
|
}
|
|
3603
4260
|
/**
|
|
3604
|
-
*
|
|
4261
|
+
*
|
|
3605
4262
|
* @param {*} [options] Override http request option.
|
|
3606
4263
|
* @throws {RequiredError}
|
|
3607
|
-
* @memberof
|
|
4264
|
+
* @memberof ClubSettingsStaffApi
|
|
3608
4265
|
*/
|
|
3609
|
-
|
|
3610
|
-
return
|
|
4266
|
+
getPresentationSettings(options) {
|
|
4267
|
+
return ClubSettingsStaffApiFp(this.configuration).getPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3611
4268
|
}
|
|
3612
4269
|
/**
|
|
3613
|
-
*
|
|
3614
|
-
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
4270
|
+
*
|
|
3615
4271
|
* @param {*} [options] Override http request option.
|
|
3616
4272
|
* @throws {RequiredError}
|
|
3617
|
-
* @memberof
|
|
4273
|
+
* @memberof ClubSettingsStaffApi
|
|
3618
4274
|
*/
|
|
3619
|
-
|
|
3620
|
-
return
|
|
4275
|
+
getReservationSettings(options) {
|
|
4276
|
+
return ClubSettingsStaffApiFp(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3621
4277
|
}
|
|
3622
4278
|
}
|
|
3623
4279
|
/**
|
|
@@ -4431,42 +5087,6 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4431
5087
|
options: localVarRequestOptions,
|
|
4432
5088
|
};
|
|
4433
5089
|
}),
|
|
4434
|
-
/**
|
|
4435
|
-
*
|
|
4436
|
-
* @param {string} userId
|
|
4437
|
-
* @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
|
|
4438
|
-
* @param {*} [options] Override http request option.
|
|
4439
|
-
* @throws {RequiredError}
|
|
4440
|
-
*/
|
|
4441
|
-
addCreditsToCustomer: (userId_1, addCreditsToCustomerRequest_1, ...args_1) => __awaiter(this, [userId_1, addCreditsToCustomerRequest_1, ...args_1], void 0, function* (userId, addCreditsToCustomerRequest, options = {}) {
|
|
4442
|
-
// verify required parameter 'userId' is not null or undefined
|
|
4443
|
-
assertParamExists('addCreditsToCustomer', 'userId', userId);
|
|
4444
|
-
// verify required parameter 'addCreditsToCustomerRequest' is not null or undefined
|
|
4445
|
-
assertParamExists('addCreditsToCustomer', 'addCreditsToCustomerRequest', addCreditsToCustomerRequest);
|
|
4446
|
-
const localVarPath = `/api/clubs/customers/{userId}/credits`
|
|
4447
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
4448
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4449
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4450
|
-
let baseOptions;
|
|
4451
|
-
if (configuration) {
|
|
4452
|
-
baseOptions = configuration.baseOptions;
|
|
4453
|
-
}
|
|
4454
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4455
|
-
const localVarHeaderParameter = {};
|
|
4456
|
-
const localVarQueryParameter = {};
|
|
4457
|
-
// authentication bearerAuth required
|
|
4458
|
-
// http bearer authentication required
|
|
4459
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4460
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4461
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4462
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4463
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4464
|
-
localVarRequestOptions.data = serializeDataIfNeeded(addCreditsToCustomerRequest, localVarRequestOptions, configuration);
|
|
4465
|
-
return {
|
|
4466
|
-
url: toPathString(localVarUrlObj),
|
|
4467
|
-
options: localVarRequestOptions,
|
|
4468
|
-
};
|
|
4469
|
-
}),
|
|
4470
5090
|
/**
|
|
4471
5091
|
*
|
|
4472
5092
|
* @param {string} priceId
|
|
@@ -4943,6 +5563,38 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4943
5563
|
options: localVarRequestOptions,
|
|
4944
5564
|
};
|
|
4945
5565
|
}),
|
|
5566
|
+
/**
|
|
5567
|
+
*
|
|
5568
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
5569
|
+
* @param {*} [options] Override http request option.
|
|
5570
|
+
* @throws {RequiredError}
|
|
5571
|
+
*/
|
|
5572
|
+
updateClubPresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
|
|
5573
|
+
// verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
|
|
5574
|
+
assertParamExists('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
|
|
5575
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
5576
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5577
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5578
|
+
let baseOptions;
|
|
5579
|
+
if (configuration) {
|
|
5580
|
+
baseOptions = configuration.baseOptions;
|
|
5581
|
+
}
|
|
5582
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
5583
|
+
const localVarHeaderParameter = {};
|
|
5584
|
+
const localVarQueryParameter = {};
|
|
5585
|
+
// authentication bearerAuth required
|
|
5586
|
+
// http bearer authentication required
|
|
5587
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5588
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5589
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5590
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5591
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5592
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
|
|
5593
|
+
return {
|
|
5594
|
+
url: toPathString(localVarUrlObj),
|
|
5595
|
+
options: localVarRequestOptions,
|
|
5596
|
+
};
|
|
5597
|
+
}),
|
|
4946
5598
|
/**
|
|
4947
5599
|
*
|
|
4948
5600
|
* @param {string} courtId
|
|
@@ -5039,22 +5691,6 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
5039
5691
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5040
5692
|
});
|
|
5041
5693
|
},
|
|
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
5694
|
/**
|
|
5059
5695
|
*
|
|
5060
5696
|
* @param {string} priceId
|
|
@@ -5281,6 +5917,21 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
5281
5917
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5282
5918
|
});
|
|
5283
5919
|
},
|
|
5920
|
+
/**
|
|
5921
|
+
*
|
|
5922
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
5923
|
+
* @param {*} [options] Override http request option.
|
|
5924
|
+
* @throws {RequiredError}
|
|
5925
|
+
*/
|
|
5926
|
+
updateClubPresentationSettings(updateClubPresentationSettingsRequest, options) {
|
|
5927
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5928
|
+
var _a, _b, _c;
|
|
5929
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
|
|
5930
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5931
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.updateClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5932
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5933
|
+
});
|
|
5934
|
+
},
|
|
5284
5935
|
/**
|
|
5285
5936
|
*
|
|
5286
5937
|
* @param {string} courtId
|
|
@@ -5331,15 +5982,6 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
5331
5982
|
addClubMember(requestParameters, options) {
|
|
5332
5983
|
return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
5333
5984
|
},
|
|
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
5985
|
/**
|
|
5344
5986
|
*
|
|
5345
5987
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5474,6 +6116,15 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
5474
6116
|
updateClubInfos(requestParameters, options) {
|
|
5475
6117
|
return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
5476
6118
|
},
|
|
6119
|
+
/**
|
|
6120
|
+
*
|
|
6121
|
+
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
6122
|
+
* @param {*} [options] Override http request option.
|
|
6123
|
+
* @throws {RequiredError}
|
|
6124
|
+
*/
|
|
6125
|
+
updateClubPresentationSettings(requestParameters, options) {
|
|
6126
|
+
return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
6127
|
+
},
|
|
5477
6128
|
/**
|
|
5478
6129
|
*
|
|
5479
6130
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5511,16 +6162,6 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
5511
6162
|
addClubMember(requestParameters, options) {
|
|
5512
6163
|
return ClubsManagerApiFp(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5513
6164
|
}
|
|
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
6165
|
/**
|
|
5525
6166
|
*
|
|
5526
6167
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5670,6 +6311,16 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
5670
6311
|
updateClubInfos(requestParameters, options) {
|
|
5671
6312
|
return ClubsManagerApiFp(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
5672
6313
|
}
|
|
6314
|
+
/**
|
|
6315
|
+
*
|
|
6316
|
+
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
6317
|
+
* @param {*} [options] Override http request option.
|
|
6318
|
+
* @throws {RequiredError}
|
|
6319
|
+
* @memberof ClubsManagerApi
|
|
6320
|
+
*/
|
|
6321
|
+
updateClubPresentationSettings(requestParameters, options) {
|
|
6322
|
+
return ClubsManagerApiFp(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6323
|
+
}
|
|
5673
6324
|
/**
|
|
5674
6325
|
*
|
|
5675
6326
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5778,6 +6429,33 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
5778
6429
|
options: localVarRequestOptions,
|
|
5779
6430
|
};
|
|
5780
6431
|
}),
|
|
6432
|
+
/**
|
|
6433
|
+
*
|
|
6434
|
+
* @param {*} [options] Override http request option.
|
|
6435
|
+
* @throws {RequiredError}
|
|
6436
|
+
*/
|
|
6437
|
+
getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6438
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
6439
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6440
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6441
|
+
let baseOptions;
|
|
6442
|
+
if (configuration) {
|
|
6443
|
+
baseOptions = configuration.baseOptions;
|
|
6444
|
+
}
|
|
6445
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6446
|
+
const localVarHeaderParameter = {};
|
|
6447
|
+
const localVarQueryParameter = {};
|
|
6448
|
+
// authentication bearerAuth required
|
|
6449
|
+
// http bearer authentication required
|
|
6450
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6451
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6452
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6453
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6454
|
+
return {
|
|
6455
|
+
url: toPathString(localVarUrlObj),
|
|
6456
|
+
options: localVarRequestOptions,
|
|
6457
|
+
};
|
|
6458
|
+
}),
|
|
5781
6459
|
/**
|
|
5782
6460
|
* Récupère les rôles d\'un club
|
|
5783
6461
|
* @param {*} [options] Override http request option.
|
|
@@ -5941,6 +6619,20 @@ export const ClubsStaffApiFp = function (configuration) {
|
|
|
5941
6619
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5942
6620
|
});
|
|
5943
6621
|
},
|
|
6622
|
+
/**
|
|
6623
|
+
*
|
|
6624
|
+
* @param {*} [options] Override http request option.
|
|
6625
|
+
* @throws {RequiredError}
|
|
6626
|
+
*/
|
|
6627
|
+
getClubPresentationSettings(options) {
|
|
6628
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6629
|
+
var _a, _b, _c;
|
|
6630
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPresentationSettings(options);
|
|
6631
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6632
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.getClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6633
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6634
|
+
});
|
|
6635
|
+
},
|
|
5944
6636
|
/**
|
|
5945
6637
|
* Récupère les rôles d\'un club
|
|
5946
6638
|
* @param {*} [options] Override http request option.
|
|
@@ -6031,6 +6723,14 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
6031
6723
|
getClubMembers(options) {
|
|
6032
6724
|
return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
|
|
6033
6725
|
},
|
|
6726
|
+
/**
|
|
6727
|
+
*
|
|
6728
|
+
* @param {*} [options] Override http request option.
|
|
6729
|
+
* @throws {RequiredError}
|
|
6730
|
+
*/
|
|
6731
|
+
getClubPresentationSettings(options) {
|
|
6732
|
+
return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
|
|
6733
|
+
},
|
|
6034
6734
|
/**
|
|
6035
6735
|
* Récupère les rôles d\'un club
|
|
6036
6736
|
* @param {*} [options] Override http request option.
|
|
@@ -6100,6 +6800,15 @@ export class ClubsStaffApi extends BaseAPI {
|
|
|
6100
6800
|
getClubMembers(options) {
|
|
6101
6801
|
return ClubsStaffApiFp(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
|
|
6102
6802
|
}
|
|
6803
|
+
/**
|
|
6804
|
+
*
|
|
6805
|
+
* @param {*} [options] Override http request option.
|
|
6806
|
+
* @throws {RequiredError}
|
|
6807
|
+
* @memberof ClubsStaffApi
|
|
6808
|
+
*/
|
|
6809
|
+
getClubPresentationSettings(options) {
|
|
6810
|
+
return ClubsStaffApiFp(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
6811
|
+
}
|
|
6103
6812
|
/**
|
|
6104
6813
|
* Récupère les rôles d\'un club
|
|
6105
6814
|
* @param {*} [options] Override http request option.
|
|
@@ -7342,98 +8051,6 @@ export class SportsPublicApi extends BaseAPI {
|
|
|
7342
8051
|
return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
|
|
7343
8052
|
}
|
|
7344
8053
|
}
|
|
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
8054
|
/**
|
|
7438
8055
|
* SubscriptionsManagerApi - axios parameter creator
|
|
7439
8056
|
* @export
|