@tennac-booking/sdk 1.0.89 → 1.0.90
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 +265 -247
- package/README.md +37 -12
- package/api.ts +2709 -1368
- package/dist/api.d.ts +1563 -557
- package/dist/api.js +739 -199
- package/dist/esm/api.d.ts +1563 -557
- package/dist/esm/api.js +734 -199
- package/docs/BookingPopulated.md +3 -3
- package/docs/ClubAnalyticsStaffApi.md +173 -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 +28 -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/CreateEventRequest.md +3 -1
- package/docs/EventResponse.md +1 -1
- package/docs/PartialClubWeeklySchedule.md +33 -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/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/UpdateClubSettingsRequest.md +0 -32
package/dist/api.js
CHANGED
|
@@ -23,8 +23,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
26
|
+
exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = void 0;
|
|
27
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = void 0;
|
|
28
29
|
const axios_1 = require("axios");
|
|
29
30
|
// Some imports not used depending on template conditions
|
|
30
31
|
// @ts-ignore
|
|
@@ -1596,6 +1597,107 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1596
1597
|
options: localVarRequestOptions,
|
|
1597
1598
|
};
|
|
1598
1599
|
}),
|
|
1600
|
+
/**
|
|
1601
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
1602
|
+
* @param {string} playerId
|
|
1603
|
+
* @param {number} [page]
|
|
1604
|
+
* @param {number} [pageSize]
|
|
1605
|
+
* @param {*} [options] Override http request option.
|
|
1606
|
+
* @throws {RequiredError}
|
|
1607
|
+
*/
|
|
1608
|
+
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 = {}) {
|
|
1609
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
1610
|
+
(0, common_1.assertParamExists)('getClubPlayerBookingsById', 'playerId', playerId);
|
|
1611
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
1612
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1613
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1614
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1615
|
+
let baseOptions;
|
|
1616
|
+
if (configuration) {
|
|
1617
|
+
baseOptions = configuration.baseOptions;
|
|
1618
|
+
}
|
|
1619
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1620
|
+
const localVarHeaderParameter = {};
|
|
1621
|
+
const localVarQueryParameter = {};
|
|
1622
|
+
// authentication bearerAuth required
|
|
1623
|
+
// http bearer authentication required
|
|
1624
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1625
|
+
if (page !== undefined) {
|
|
1626
|
+
localVarQueryParameter['page'] = page;
|
|
1627
|
+
}
|
|
1628
|
+
if (pageSize !== undefined) {
|
|
1629
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
1630
|
+
}
|
|
1631
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1632
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1633
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1634
|
+
return {
|
|
1635
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1636
|
+
options: localVarRequestOptions,
|
|
1637
|
+
};
|
|
1638
|
+
}),
|
|
1639
|
+
/**
|
|
1640
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
1641
|
+
* @param {string} playerId
|
|
1642
|
+
* @param {*} [options] Override http request option.
|
|
1643
|
+
* @throws {RequiredError}
|
|
1644
|
+
*/
|
|
1645
|
+
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1646
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
1647
|
+
(0, common_1.assertParamExists)('getClubPlayerById', 'playerId', playerId);
|
|
1648
|
+
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
1649
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1650
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1651
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1652
|
+
let baseOptions;
|
|
1653
|
+
if (configuration) {
|
|
1654
|
+
baseOptions = configuration.baseOptions;
|
|
1655
|
+
}
|
|
1656
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1657
|
+
const localVarHeaderParameter = {};
|
|
1658
|
+
const localVarQueryParameter = {};
|
|
1659
|
+
// authentication bearerAuth required
|
|
1660
|
+
// http bearer authentication required
|
|
1661
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1662
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1663
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1664
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1665
|
+
return {
|
|
1666
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1667
|
+
options: localVarRequestOptions,
|
|
1668
|
+
};
|
|
1669
|
+
}),
|
|
1670
|
+
/**
|
|
1671
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
1672
|
+
* @param {string} playerId
|
|
1673
|
+
* @param {*} [options] Override http request option.
|
|
1674
|
+
* @throws {RequiredError}
|
|
1675
|
+
*/
|
|
1676
|
+
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1677
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
1678
|
+
(0, common_1.assertParamExists)('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
1679
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
1680
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1681
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1682
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1683
|
+
let baseOptions;
|
|
1684
|
+
if (configuration) {
|
|
1685
|
+
baseOptions = configuration.baseOptions;
|
|
1686
|
+
}
|
|
1687
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1688
|
+
const localVarHeaderParameter = {};
|
|
1689
|
+
const localVarQueryParameter = {};
|
|
1690
|
+
// authentication bearerAuth required
|
|
1691
|
+
// http bearer authentication required
|
|
1692
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1693
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1694
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1695
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1696
|
+
return {
|
|
1697
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1698
|
+
options: localVarRequestOptions,
|
|
1699
|
+
};
|
|
1700
|
+
}),
|
|
1599
1701
|
/**
|
|
1600
1702
|
* Récupère la liste des joueurs du club
|
|
1601
1703
|
* @param {*} [options] Override http request option.
|
|
@@ -1896,6 +1998,53 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
1896
1998
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1897
1999
|
});
|
|
1898
2000
|
},
|
|
2001
|
+
/**
|
|
2002
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2003
|
+
* @param {string} playerId
|
|
2004
|
+
* @param {number} [page]
|
|
2005
|
+
* @param {number} [pageSize]
|
|
2006
|
+
* @param {*} [options] Override http request option.
|
|
2007
|
+
* @throws {RequiredError}
|
|
2008
|
+
*/
|
|
2009
|
+
getClubPlayerBookingsById(playerId, page, pageSize, options) {
|
|
2010
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2011
|
+
var _a, _b, _c;
|
|
2012
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, page, pageSize, options);
|
|
2013
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2014
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2015
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2016
|
+
});
|
|
2017
|
+
},
|
|
2018
|
+
/**
|
|
2019
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2020
|
+
* @param {string} playerId
|
|
2021
|
+
* @param {*} [options] Override http request option.
|
|
2022
|
+
* @throws {RequiredError}
|
|
2023
|
+
*/
|
|
2024
|
+
getClubPlayerById(playerId, options) {
|
|
2025
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2026
|
+
var _a, _b, _c;
|
|
2027
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
|
|
2028
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2029
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2030
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2031
|
+
});
|
|
2032
|
+
},
|
|
2033
|
+
/**
|
|
2034
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2035
|
+
* @param {string} playerId
|
|
2036
|
+
* @param {*} [options] Override http request option.
|
|
2037
|
+
* @throws {RequiredError}
|
|
2038
|
+
*/
|
|
2039
|
+
getClubPlayerStatisticsById(playerId, options) {
|
|
2040
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2041
|
+
var _a, _b, _c;
|
|
2042
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
|
|
2043
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2044
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2045
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2046
|
+
});
|
|
2047
|
+
},
|
|
1899
2048
|
/**
|
|
1900
2049
|
* Récupère la liste des joueurs du club
|
|
1901
2050
|
* @param {*} [options] Override http request option.
|
|
@@ -2047,6 +2196,33 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2047
2196
|
getAnalyticsBySport(requestParameters, options) {
|
|
2048
2197
|
return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
2049
2198
|
},
|
|
2199
|
+
/**
|
|
2200
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2201
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2202
|
+
* @param {*} [options] Override http request option.
|
|
2203
|
+
* @throws {RequiredError}
|
|
2204
|
+
*/
|
|
2205
|
+
getClubPlayerBookingsById(requestParameters, options) {
|
|
2206
|
+
return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
2207
|
+
},
|
|
2208
|
+
/**
|
|
2209
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2210
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2211
|
+
* @param {*} [options] Override http request option.
|
|
2212
|
+
* @throws {RequiredError}
|
|
2213
|
+
*/
|
|
2214
|
+
getClubPlayerById(requestParameters, options) {
|
|
2215
|
+
return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2216
|
+
},
|
|
2217
|
+
/**
|
|
2218
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2219
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2220
|
+
* @param {*} [options] Override http request option.
|
|
2221
|
+
* @throws {RequiredError}
|
|
2222
|
+
*/
|
|
2223
|
+
getClubPlayerStatisticsById(requestParameters, options) {
|
|
2224
|
+
return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2225
|
+
},
|
|
2050
2226
|
/**
|
|
2051
2227
|
* Récupère la liste des joueurs du club
|
|
2052
2228
|
* @param {*} [options] Override http request option.
|
|
@@ -2143,6 +2319,36 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2143
2319
|
getAnalyticsBySport(requestParameters, options) {
|
|
2144
2320
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
2145
2321
|
}
|
|
2322
|
+
/**
|
|
2323
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2324
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2325
|
+
* @param {*} [options] Override http request option.
|
|
2326
|
+
* @throws {RequiredError}
|
|
2327
|
+
* @memberof ClubAnalyticsStaffApi
|
|
2328
|
+
*/
|
|
2329
|
+
getClubPlayerBookingsById(requestParameters, options) {
|
|
2330
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
2331
|
+
}
|
|
2332
|
+
/**
|
|
2333
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2334
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2335
|
+
* @param {*} [options] Override http request option.
|
|
2336
|
+
* @throws {RequiredError}
|
|
2337
|
+
* @memberof ClubAnalyticsStaffApi
|
|
2338
|
+
*/
|
|
2339
|
+
getClubPlayerById(requestParameters, options) {
|
|
2340
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2341
|
+
}
|
|
2342
|
+
/**
|
|
2343
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2344
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2345
|
+
* @param {*} [options] Override http request option.
|
|
2346
|
+
* @throws {RequiredError}
|
|
2347
|
+
* @memberof ClubAnalyticsStaffApi
|
|
2348
|
+
*/
|
|
2349
|
+
getClubPlayerStatisticsById(requestParameters, options) {
|
|
2350
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2351
|
+
}
|
|
2146
2352
|
/**
|
|
2147
2353
|
* Récupère la liste des joueurs du club
|
|
2148
2354
|
* @param {*} [options] Override http request option.
|
|
@@ -2610,141 +2816,434 @@ const ClubRolesStaffApiFp = function (configuration) {
|
|
|
2610
2816
|
var _a, _b, _c;
|
|
2611
2817
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
|
|
2612
2818
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2613
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubRolesStaffApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2819
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubRolesStaffApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2820
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2821
|
+
});
|
|
2822
|
+
},
|
|
2823
|
+
};
|
|
2824
|
+
};
|
|
2825
|
+
exports.ClubRolesStaffApiFp = ClubRolesStaffApiFp;
|
|
2826
|
+
/**
|
|
2827
|
+
* ClubRolesStaffApi - factory interface
|
|
2828
|
+
* @export
|
|
2829
|
+
*/
|
|
2830
|
+
const ClubRolesStaffApiFactory = function (configuration, basePath, axios) {
|
|
2831
|
+
const localVarFp = (0, exports.ClubRolesStaffApiFp)(configuration);
|
|
2832
|
+
return {
|
|
2833
|
+
/**
|
|
2834
|
+
* Récupère la liste des rôles d\'un club
|
|
2835
|
+
* @param {*} [options] Override http request option.
|
|
2836
|
+
* @throws {RequiredError}
|
|
2837
|
+
*/
|
|
2838
|
+
getAllClubRoles(options) {
|
|
2839
|
+
return localVarFp.getAllClubRoles(options).then((request) => request(axios, basePath));
|
|
2840
|
+
},
|
|
2841
|
+
/**
|
|
2842
|
+
* Récupère un rôle de club par ID
|
|
2843
|
+
* @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
|
|
2844
|
+
* @param {*} [options] Override http request option.
|
|
2845
|
+
* @throws {RequiredError}
|
|
2846
|
+
*/
|
|
2847
|
+
getClubRoleById(requestParameters, options) {
|
|
2848
|
+
return localVarFp.getClubRoleById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2849
|
+
},
|
|
2850
|
+
/**
|
|
2851
|
+
*
|
|
2852
|
+
* @param {*} [options] Override http request option.
|
|
2853
|
+
* @throws {RequiredError}
|
|
2854
|
+
*/
|
|
2855
|
+
getUserRolesInClubs(options) {
|
|
2856
|
+
return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
|
|
2857
|
+
},
|
|
2858
|
+
};
|
|
2859
|
+
};
|
|
2860
|
+
exports.ClubRolesStaffApiFactory = ClubRolesStaffApiFactory;
|
|
2861
|
+
/**
|
|
2862
|
+
* ClubRolesStaffApi - object-oriented interface
|
|
2863
|
+
* @export
|
|
2864
|
+
* @class ClubRolesStaffApi
|
|
2865
|
+
* @extends {BaseAPI}
|
|
2866
|
+
*/
|
|
2867
|
+
class ClubRolesStaffApi extends base_1.BaseAPI {
|
|
2868
|
+
/**
|
|
2869
|
+
* Récupère la liste des rôles d\'un club
|
|
2870
|
+
* @param {*} [options] Override http request option.
|
|
2871
|
+
* @throws {RequiredError}
|
|
2872
|
+
* @memberof ClubRolesStaffApi
|
|
2873
|
+
*/
|
|
2874
|
+
getAllClubRoles(options) {
|
|
2875
|
+
return (0, exports.ClubRolesStaffApiFp)(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
2876
|
+
}
|
|
2877
|
+
/**
|
|
2878
|
+
* Récupère un rôle de club par ID
|
|
2879
|
+
* @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
|
|
2880
|
+
* @param {*} [options] Override http request option.
|
|
2881
|
+
* @throws {RequiredError}
|
|
2882
|
+
* @memberof ClubRolesStaffApi
|
|
2883
|
+
*/
|
|
2884
|
+
getClubRoleById(requestParameters, options) {
|
|
2885
|
+
return (0, exports.ClubRolesStaffApiFp)(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2886
|
+
}
|
|
2887
|
+
/**
|
|
2888
|
+
*
|
|
2889
|
+
* @param {*} [options] Override http request option.
|
|
2890
|
+
* @throws {RequiredError}
|
|
2891
|
+
* @memberof ClubRolesStaffApi
|
|
2892
|
+
*/
|
|
2893
|
+
getUserRolesInClubs(options) {
|
|
2894
|
+
return (0, exports.ClubRolesStaffApiFp)(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2897
|
+
exports.ClubRolesStaffApi = ClubRolesStaffApi;
|
|
2898
|
+
/**
|
|
2899
|
+
* ClubSettingsManagerApi - axios parameter creator
|
|
2900
|
+
* @export
|
|
2901
|
+
*/
|
|
2902
|
+
const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
2903
|
+
return {
|
|
2904
|
+
/**
|
|
2905
|
+
*
|
|
2906
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
2907
|
+
* @param {*} [options] Override http request option.
|
|
2908
|
+
* @throws {RequiredError}
|
|
2909
|
+
*/
|
|
2910
|
+
updateClubGeneralSettings: (updateClubGeneralSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubGeneralSettingsRequest_1, ...args_1], void 0, function* (updateClubGeneralSettingsRequest, options = {}) {
|
|
2911
|
+
// verify required parameter 'updateClubGeneralSettingsRequest' is not null or undefined
|
|
2912
|
+
(0, common_1.assertParamExists)('updateClubGeneralSettings', 'updateClubGeneralSettingsRequest', updateClubGeneralSettingsRequest);
|
|
2913
|
+
const localVarPath = `/api/club-settings/settings/general`;
|
|
2914
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2915
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2916
|
+
let baseOptions;
|
|
2917
|
+
if (configuration) {
|
|
2918
|
+
baseOptions = configuration.baseOptions;
|
|
2919
|
+
}
|
|
2920
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2921
|
+
const localVarHeaderParameter = {};
|
|
2922
|
+
const localVarQueryParameter = {};
|
|
2923
|
+
// authentication bearerAuth required
|
|
2924
|
+
// http bearer authentication required
|
|
2925
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2926
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2927
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2928
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2929
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2930
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubGeneralSettingsRequest, localVarRequestOptions, configuration);
|
|
2931
|
+
return {
|
|
2932
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2933
|
+
options: localVarRequestOptions,
|
|
2934
|
+
};
|
|
2935
|
+
}),
|
|
2936
|
+
/**
|
|
2937
|
+
*
|
|
2938
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
2939
|
+
* @param {*} [options] Override http request option.
|
|
2940
|
+
* @throws {RequiredError}
|
|
2941
|
+
*/
|
|
2942
|
+
updateHoursSettings: (updateClubHoursSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubHoursSettingsRequest_1, ...args_1], void 0, function* (updateClubHoursSettingsRequest, options = {}) {
|
|
2943
|
+
// verify required parameter 'updateClubHoursSettingsRequest' is not null or undefined
|
|
2944
|
+
(0, common_1.assertParamExists)('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
|
|
2945
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
2946
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2947
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2948
|
+
let baseOptions;
|
|
2949
|
+
if (configuration) {
|
|
2950
|
+
baseOptions = configuration.baseOptions;
|
|
2951
|
+
}
|
|
2952
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2953
|
+
const localVarHeaderParameter = {};
|
|
2954
|
+
const localVarQueryParameter = {};
|
|
2955
|
+
// authentication bearerAuth required
|
|
2956
|
+
// http bearer authentication required
|
|
2957
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2958
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2959
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2960
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2961
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2962
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
|
|
2963
|
+
return {
|
|
2964
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2965
|
+
options: localVarRequestOptions,
|
|
2966
|
+
};
|
|
2967
|
+
}),
|
|
2968
|
+
/**
|
|
2969
|
+
*
|
|
2970
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
2971
|
+
* @param {*} [options] Override http request option.
|
|
2972
|
+
* @throws {RequiredError}
|
|
2973
|
+
*/
|
|
2974
|
+
updatePresentationSettings: (clubPresentationSettingsResponse_1, ...args_1) => __awaiter(this, [clubPresentationSettingsResponse_1, ...args_1], void 0, function* (clubPresentationSettingsResponse, options = {}) {
|
|
2975
|
+
// verify required parameter 'clubPresentationSettingsResponse' is not null or undefined
|
|
2976
|
+
(0, common_1.assertParamExists)('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse);
|
|
2977
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
2978
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2979
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2980
|
+
let baseOptions;
|
|
2981
|
+
if (configuration) {
|
|
2982
|
+
baseOptions = configuration.baseOptions;
|
|
2983
|
+
}
|
|
2984
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2985
|
+
const localVarHeaderParameter = {};
|
|
2986
|
+
const localVarQueryParameter = {};
|
|
2987
|
+
// authentication bearerAuth required
|
|
2988
|
+
// http bearer authentication required
|
|
2989
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2990
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2991
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2992
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2993
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2994
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clubPresentationSettingsResponse, localVarRequestOptions, configuration);
|
|
2995
|
+
return {
|
|
2996
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2997
|
+
options: localVarRequestOptions,
|
|
2998
|
+
};
|
|
2999
|
+
}),
|
|
3000
|
+
/**
|
|
3001
|
+
*
|
|
3002
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
3003
|
+
* @param {*} [options] Override http request option.
|
|
3004
|
+
* @throws {RequiredError}
|
|
3005
|
+
*/
|
|
3006
|
+
updateReservationSettings: (updateClubReservationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubReservationSettingsRequest_1, ...args_1], void 0, function* (updateClubReservationSettingsRequest, options = {}) {
|
|
3007
|
+
// verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
|
|
3008
|
+
(0, common_1.assertParamExists)('updateReservationSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest);
|
|
3009
|
+
const localVarPath = `/api/club-settings/reservation`;
|
|
3010
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3011
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3012
|
+
let baseOptions;
|
|
3013
|
+
if (configuration) {
|
|
3014
|
+
baseOptions = configuration.baseOptions;
|
|
3015
|
+
}
|
|
3016
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3017
|
+
const localVarHeaderParameter = {};
|
|
3018
|
+
const localVarQueryParameter = {};
|
|
3019
|
+
// authentication bearerAuth required
|
|
3020
|
+
// http bearer authentication required
|
|
3021
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3022
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3023
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3024
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3025
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3026
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
|
|
3027
|
+
return {
|
|
3028
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3029
|
+
options: localVarRequestOptions,
|
|
3030
|
+
};
|
|
3031
|
+
}),
|
|
3032
|
+
};
|
|
3033
|
+
};
|
|
3034
|
+
exports.ClubSettingsManagerApiAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator;
|
|
3035
|
+
/**
|
|
3036
|
+
* ClubSettingsManagerApi - functional programming interface
|
|
3037
|
+
* @export
|
|
3038
|
+
*/
|
|
3039
|
+
const ClubSettingsManagerApiFp = function (configuration) {
|
|
3040
|
+
const localVarAxiosParamCreator = (0, exports.ClubSettingsManagerApiAxiosParamCreator)(configuration);
|
|
3041
|
+
return {
|
|
3042
|
+
/**
|
|
3043
|
+
*
|
|
3044
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
3045
|
+
* @param {*} [options] Override http request option.
|
|
3046
|
+
* @throws {RequiredError}
|
|
3047
|
+
*/
|
|
3048
|
+
updateClubGeneralSettings(updateClubGeneralSettingsRequest, options) {
|
|
3049
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3050
|
+
var _a, _b, _c;
|
|
3051
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
|
|
3052
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3053
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3054
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3055
|
+
});
|
|
3056
|
+
},
|
|
3057
|
+
/**
|
|
3058
|
+
*
|
|
3059
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
3060
|
+
* @param {*} [options] Override http request option.
|
|
3061
|
+
* @throws {RequiredError}
|
|
3062
|
+
*/
|
|
3063
|
+
updateHoursSettings(updateClubHoursSettingsRequest, options) {
|
|
3064
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3065
|
+
var _a, _b, _c;
|
|
3066
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
|
|
3067
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3068
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3069
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3070
|
+
});
|
|
3071
|
+
},
|
|
3072
|
+
/**
|
|
3073
|
+
*
|
|
3074
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
3075
|
+
* @param {*} [options] Override http request option.
|
|
3076
|
+
* @throws {RequiredError}
|
|
3077
|
+
*/
|
|
3078
|
+
updatePresentationSettings(clubPresentationSettingsResponse, options) {
|
|
3079
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3080
|
+
var _a, _b, _c;
|
|
3081
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
|
|
3082
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3083
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3084
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3085
|
+
});
|
|
3086
|
+
},
|
|
3087
|
+
/**
|
|
3088
|
+
*
|
|
3089
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
3090
|
+
* @param {*} [options] Override http request option.
|
|
3091
|
+
* @throws {RequiredError}
|
|
3092
|
+
*/
|
|
3093
|
+
updateReservationSettings(updateClubReservationSettingsRequest, options) {
|
|
3094
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3095
|
+
var _a, _b, _c;
|
|
3096
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
|
|
3097
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3098
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2614
3099
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2615
3100
|
});
|
|
2616
3101
|
},
|
|
2617
3102
|
};
|
|
2618
3103
|
};
|
|
2619
|
-
exports.
|
|
3104
|
+
exports.ClubSettingsManagerApiFp = ClubSettingsManagerApiFp;
|
|
2620
3105
|
/**
|
|
2621
|
-
*
|
|
3106
|
+
* ClubSettingsManagerApi - factory interface
|
|
2622
3107
|
* @export
|
|
2623
3108
|
*/
|
|
2624
|
-
const
|
|
2625
|
-
const localVarFp = (0, exports.
|
|
3109
|
+
const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
|
|
3110
|
+
const localVarFp = (0, exports.ClubSettingsManagerApiFp)(configuration);
|
|
2626
3111
|
return {
|
|
2627
3112
|
/**
|
|
2628
|
-
*
|
|
3113
|
+
*
|
|
3114
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
2629
3115
|
* @param {*} [options] Override http request option.
|
|
2630
3116
|
* @throws {RequiredError}
|
|
2631
3117
|
*/
|
|
2632
|
-
|
|
2633
|
-
return localVarFp.
|
|
3118
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
3119
|
+
return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2634
3120
|
},
|
|
2635
3121
|
/**
|
|
2636
|
-
*
|
|
2637
|
-
* @param {
|
|
3122
|
+
*
|
|
3123
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
2638
3124
|
* @param {*} [options] Override http request option.
|
|
2639
3125
|
* @throws {RequiredError}
|
|
2640
3126
|
*/
|
|
2641
|
-
|
|
2642
|
-
return localVarFp.
|
|
3127
|
+
updateHoursSettings(requestParameters, options) {
|
|
3128
|
+
return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2643
3129
|
},
|
|
2644
3130
|
/**
|
|
2645
3131
|
*
|
|
3132
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
2646
3133
|
* @param {*} [options] Override http request option.
|
|
2647
3134
|
* @throws {RequiredError}
|
|
2648
3135
|
*/
|
|
2649
|
-
|
|
2650
|
-
return localVarFp.
|
|
3136
|
+
updatePresentationSettings(requestParameters, options) {
|
|
3137
|
+
return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
|
|
3138
|
+
},
|
|
3139
|
+
/**
|
|
3140
|
+
*
|
|
3141
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
3142
|
+
* @param {*} [options] Override http request option.
|
|
3143
|
+
* @throws {RequiredError}
|
|
3144
|
+
*/
|
|
3145
|
+
updateReservationSettings(requestParameters, options) {
|
|
3146
|
+
return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2651
3147
|
},
|
|
2652
3148
|
};
|
|
2653
3149
|
};
|
|
2654
|
-
exports.
|
|
3150
|
+
exports.ClubSettingsManagerApiFactory = ClubSettingsManagerApiFactory;
|
|
2655
3151
|
/**
|
|
2656
|
-
*
|
|
3152
|
+
* ClubSettingsManagerApi - object-oriented interface
|
|
2657
3153
|
* @export
|
|
2658
|
-
* @class
|
|
3154
|
+
* @class ClubSettingsManagerApi
|
|
2659
3155
|
* @extends {BaseAPI}
|
|
2660
3156
|
*/
|
|
2661
|
-
class
|
|
3157
|
+
class ClubSettingsManagerApi extends base_1.BaseAPI {
|
|
2662
3158
|
/**
|
|
2663
|
-
*
|
|
3159
|
+
*
|
|
3160
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
2664
3161
|
* @param {*} [options] Override http request option.
|
|
2665
3162
|
* @throws {RequiredError}
|
|
2666
|
-
* @memberof
|
|
3163
|
+
* @memberof ClubSettingsManagerApi
|
|
2667
3164
|
*/
|
|
2668
|
-
|
|
2669
|
-
return (0, exports.
|
|
3165
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
3166
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2670
3167
|
}
|
|
2671
3168
|
/**
|
|
2672
|
-
*
|
|
2673
|
-
* @param {
|
|
3169
|
+
*
|
|
3170
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
2674
3171
|
* @param {*} [options] Override http request option.
|
|
2675
3172
|
* @throws {RequiredError}
|
|
2676
|
-
* @memberof
|
|
3173
|
+
* @memberof ClubSettingsManagerApi
|
|
2677
3174
|
*/
|
|
2678
|
-
|
|
2679
|
-
return (0, exports.
|
|
3175
|
+
updateHoursSettings(requestParameters, options) {
|
|
3176
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2680
3177
|
}
|
|
2681
3178
|
/**
|
|
2682
3179
|
*
|
|
3180
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
2683
3181
|
* @param {*} [options] Override http request option.
|
|
2684
3182
|
* @throws {RequiredError}
|
|
2685
|
-
* @memberof
|
|
3183
|
+
* @memberof ClubSettingsManagerApi
|
|
2686
3184
|
*/
|
|
2687
|
-
|
|
2688
|
-
return (0, exports.
|
|
3185
|
+
updatePresentationSettings(requestParameters, options) {
|
|
3186
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
|
|
3187
|
+
}
|
|
3188
|
+
/**
|
|
3189
|
+
*
|
|
3190
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
3191
|
+
* @param {*} [options] Override http request option.
|
|
3192
|
+
* @throws {RequiredError}
|
|
3193
|
+
* @memberof ClubSettingsManagerApi
|
|
3194
|
+
*/
|
|
3195
|
+
updateReservationSettings(requestParameters, options) {
|
|
3196
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2689
3197
|
}
|
|
2690
3198
|
}
|
|
2691
|
-
exports.
|
|
3199
|
+
exports.ClubSettingsManagerApi = ClubSettingsManagerApi;
|
|
2692
3200
|
/**
|
|
2693
|
-
*
|
|
3201
|
+
* ClubSettingsStaffApi - axios parameter creator
|
|
2694
3202
|
* @export
|
|
2695
3203
|
*/
|
|
2696
|
-
const
|
|
3204
|
+
const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
|
|
2697
3205
|
return {
|
|
2698
3206
|
/**
|
|
2699
|
-
*
|
|
2700
|
-
* @param {string} clubId
|
|
2701
|
-
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
3207
|
+
*
|
|
2702
3208
|
* @param {*} [options] Override http request option.
|
|
2703
3209
|
* @throws {RequiredError}
|
|
2704
3210
|
*/
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
(0, common_1.assertParamExists)('createClubSettings', 'clubId', clubId);
|
|
2708
|
-
// verify required parameter 'createClubSettingsRequest' is not null or undefined
|
|
2709
|
-
(0, common_1.assertParamExists)('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
|
|
2710
|
-
const localVarPath = `/api/club-settings/{clubId}`
|
|
2711
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
3211
|
+
getClubGeneralSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3212
|
+
const localVarPath = `/api/club-settings/settings/general`;
|
|
2712
3213
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2713
3214
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2714
3215
|
let baseOptions;
|
|
2715
3216
|
if (configuration) {
|
|
2716
3217
|
baseOptions = configuration.baseOptions;
|
|
2717
3218
|
}
|
|
2718
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3219
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2719
3220
|
const localVarHeaderParameter = {};
|
|
2720
3221
|
const localVarQueryParameter = {};
|
|
2721
3222
|
// authentication bearerAuth required
|
|
2722
3223
|
// http bearer authentication required
|
|
2723
3224
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2724
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2725
3225
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2726
3226
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2727
3227
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2728
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2729
3228
|
return {
|
|
2730
3229
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2731
3230
|
options: localVarRequestOptions,
|
|
2732
3231
|
};
|
|
2733
3232
|
}),
|
|
2734
3233
|
/**
|
|
2735
|
-
*
|
|
3234
|
+
*
|
|
2736
3235
|
* @param {*} [options] Override http request option.
|
|
2737
3236
|
* @throws {RequiredError}
|
|
2738
3237
|
*/
|
|
2739
|
-
|
|
2740
|
-
const localVarPath = `/api/club-settings`;
|
|
3238
|
+
getHoursSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3239
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
2741
3240
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2742
3241
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2743
3242
|
let baseOptions;
|
|
2744
3243
|
if (configuration) {
|
|
2745
3244
|
baseOptions = configuration.baseOptions;
|
|
2746
3245
|
}
|
|
2747
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3246
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2748
3247
|
const localVarHeaderParameter = {};
|
|
2749
3248
|
const localVarQueryParameter = {};
|
|
2750
3249
|
// authentication bearerAuth required
|
|
@@ -2759,12 +3258,12 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
2759
3258
|
};
|
|
2760
3259
|
}),
|
|
2761
3260
|
/**
|
|
2762
|
-
*
|
|
3261
|
+
*
|
|
2763
3262
|
* @param {*} [options] Override http request option.
|
|
2764
3263
|
* @throws {RequiredError}
|
|
2765
3264
|
*/
|
|
2766
|
-
|
|
2767
|
-
const localVarPath = `/api/club-settings`;
|
|
3265
|
+
getPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3266
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
2768
3267
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2769
3268
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2770
3269
|
let baseOptions;
|
|
@@ -2786,32 +3285,27 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
2786
3285
|
};
|
|
2787
3286
|
}),
|
|
2788
3287
|
/**
|
|
2789
|
-
*
|
|
2790
|
-
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
3288
|
+
*
|
|
2791
3289
|
* @param {*} [options] Override http request option.
|
|
2792
3290
|
* @throws {RequiredError}
|
|
2793
3291
|
*/
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
(0, common_1.assertParamExists)('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
|
|
2797
|
-
const localVarPath = `/api/club-settings`;
|
|
3292
|
+
getReservationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3293
|
+
const localVarPath = `/api/club-settings/reservation`;
|
|
2798
3294
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2799
3295
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2800
3296
|
let baseOptions;
|
|
2801
3297
|
if (configuration) {
|
|
2802
3298
|
baseOptions = configuration.baseOptions;
|
|
2803
3299
|
}
|
|
2804
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3300
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2805
3301
|
const localVarHeaderParameter = {};
|
|
2806
3302
|
const localVarQueryParameter = {};
|
|
2807
3303
|
// authentication bearerAuth required
|
|
2808
3304
|
// http bearer authentication required
|
|
2809
3305
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2810
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2811
3306
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2812
3307
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2813
3308
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2814
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2815
3309
|
return {
|
|
2816
3310
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2817
3311
|
options: localVarRequestOptions,
|
|
@@ -2819,167 +3313,160 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
2819
3313
|
}),
|
|
2820
3314
|
};
|
|
2821
3315
|
};
|
|
2822
|
-
exports.
|
|
3316
|
+
exports.ClubSettingsStaffApiAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator;
|
|
2823
3317
|
/**
|
|
2824
|
-
*
|
|
3318
|
+
* ClubSettingsStaffApi - functional programming interface
|
|
2825
3319
|
* @export
|
|
2826
3320
|
*/
|
|
2827
|
-
const
|
|
2828
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
3321
|
+
const ClubSettingsStaffApiFp = function (configuration) {
|
|
3322
|
+
const localVarAxiosParamCreator = (0, exports.ClubSettingsStaffApiAxiosParamCreator)(configuration);
|
|
2829
3323
|
return {
|
|
2830
3324
|
/**
|
|
2831
|
-
*
|
|
2832
|
-
* @param {string} clubId
|
|
2833
|
-
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
3325
|
+
*
|
|
2834
3326
|
* @param {*} [options] Override http request option.
|
|
2835
3327
|
* @throws {RequiredError}
|
|
2836
3328
|
*/
|
|
2837
|
-
|
|
3329
|
+
getClubGeneralSettings(options) {
|
|
2838
3330
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2839
3331
|
var _a, _b, _c;
|
|
2840
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3332
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubGeneralSettings(options);
|
|
2841
3333
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2842
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
3334
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2843
3335
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2844
3336
|
});
|
|
2845
3337
|
},
|
|
2846
3338
|
/**
|
|
2847
|
-
*
|
|
3339
|
+
*
|
|
2848
3340
|
* @param {*} [options] Override http request option.
|
|
2849
3341
|
* @throws {RequiredError}
|
|
2850
3342
|
*/
|
|
2851
|
-
|
|
3343
|
+
getHoursSettings(options) {
|
|
2852
3344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2853
3345
|
var _a, _b, _c;
|
|
2854
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3346
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getHoursSettings(options);
|
|
2855
3347
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2856
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
3348
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2857
3349
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2858
3350
|
});
|
|
2859
3351
|
},
|
|
2860
3352
|
/**
|
|
2861
|
-
*
|
|
3353
|
+
*
|
|
2862
3354
|
* @param {*} [options] Override http request option.
|
|
2863
3355
|
* @throws {RequiredError}
|
|
2864
3356
|
*/
|
|
2865
|
-
|
|
3357
|
+
getPresentationSettings(options) {
|
|
2866
3358
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2867
3359
|
var _a, _b, _c;
|
|
2868
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3360
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPresentationSettings(options);
|
|
2869
3361
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2870
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
3362
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2871
3363
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2872
3364
|
});
|
|
2873
3365
|
},
|
|
2874
3366
|
/**
|
|
2875
|
-
*
|
|
2876
|
-
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
3367
|
+
*
|
|
2877
3368
|
* @param {*} [options] Override http request option.
|
|
2878
3369
|
* @throws {RequiredError}
|
|
2879
3370
|
*/
|
|
2880
|
-
|
|
3371
|
+
getReservationSettings(options) {
|
|
2881
3372
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2882
3373
|
var _a, _b, _c;
|
|
2883
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3374
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReservationSettings(options);
|
|
2884
3375
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2885
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
3376
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2886
3377
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2887
3378
|
});
|
|
2888
3379
|
},
|
|
2889
3380
|
};
|
|
2890
3381
|
};
|
|
2891
|
-
exports.
|
|
3382
|
+
exports.ClubSettingsStaffApiFp = ClubSettingsStaffApiFp;
|
|
2892
3383
|
/**
|
|
2893
|
-
*
|
|
3384
|
+
* ClubSettingsStaffApi - factory interface
|
|
2894
3385
|
* @export
|
|
2895
3386
|
*/
|
|
2896
|
-
const
|
|
2897
|
-
const localVarFp = (0, exports.
|
|
3387
|
+
const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
3388
|
+
const localVarFp = (0, exports.ClubSettingsStaffApiFp)(configuration);
|
|
2898
3389
|
return {
|
|
2899
3390
|
/**
|
|
2900
|
-
*
|
|
2901
|
-
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
3391
|
+
*
|
|
2902
3392
|
* @param {*} [options] Override http request option.
|
|
2903
3393
|
* @throws {RequiredError}
|
|
2904
3394
|
*/
|
|
2905
|
-
|
|
2906
|
-
return localVarFp.
|
|
3395
|
+
getClubGeneralSettings(options) {
|
|
3396
|
+
return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
|
|
2907
3397
|
},
|
|
2908
3398
|
/**
|
|
2909
|
-
*
|
|
3399
|
+
*
|
|
2910
3400
|
* @param {*} [options] Override http request option.
|
|
2911
3401
|
* @throws {RequiredError}
|
|
2912
3402
|
*/
|
|
2913
|
-
|
|
2914
|
-
return localVarFp.
|
|
3403
|
+
getHoursSettings(options) {
|
|
3404
|
+
return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
|
|
2915
3405
|
},
|
|
2916
3406
|
/**
|
|
2917
|
-
*
|
|
3407
|
+
*
|
|
2918
3408
|
* @param {*} [options] Override http request option.
|
|
2919
3409
|
* @throws {RequiredError}
|
|
2920
3410
|
*/
|
|
2921
|
-
|
|
2922
|
-
return localVarFp.
|
|
3411
|
+
getPresentationSettings(options) {
|
|
3412
|
+
return localVarFp.getPresentationSettings(options).then((request) => request(axios, basePath));
|
|
2923
3413
|
},
|
|
2924
3414
|
/**
|
|
2925
|
-
*
|
|
2926
|
-
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3415
|
+
*
|
|
2927
3416
|
* @param {*} [options] Override http request option.
|
|
2928
3417
|
* @throws {RequiredError}
|
|
2929
3418
|
*/
|
|
2930
|
-
|
|
2931
|
-
return localVarFp.
|
|
3419
|
+
getReservationSettings(options) {
|
|
3420
|
+
return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
|
|
2932
3421
|
},
|
|
2933
3422
|
};
|
|
2934
3423
|
};
|
|
2935
|
-
exports.
|
|
3424
|
+
exports.ClubSettingsStaffApiFactory = ClubSettingsStaffApiFactory;
|
|
2936
3425
|
/**
|
|
2937
|
-
*
|
|
3426
|
+
* ClubSettingsStaffApi - object-oriented interface
|
|
2938
3427
|
* @export
|
|
2939
|
-
* @class
|
|
3428
|
+
* @class ClubSettingsStaffApi
|
|
2940
3429
|
* @extends {BaseAPI}
|
|
2941
3430
|
*/
|
|
2942
|
-
class
|
|
3431
|
+
class ClubSettingsStaffApi extends base_1.BaseAPI {
|
|
2943
3432
|
/**
|
|
2944
|
-
*
|
|
2945
|
-
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
3433
|
+
*
|
|
2946
3434
|
* @param {*} [options] Override http request option.
|
|
2947
3435
|
* @throws {RequiredError}
|
|
2948
|
-
* @memberof
|
|
3436
|
+
* @memberof ClubSettingsStaffApi
|
|
2949
3437
|
*/
|
|
2950
|
-
|
|
2951
|
-
return (0, exports.
|
|
3438
|
+
getClubGeneralSettings(options) {
|
|
3439
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
|
|
2952
3440
|
}
|
|
2953
3441
|
/**
|
|
2954
|
-
*
|
|
3442
|
+
*
|
|
2955
3443
|
* @param {*} [options] Override http request option.
|
|
2956
3444
|
* @throws {RequiredError}
|
|
2957
|
-
* @memberof
|
|
3445
|
+
* @memberof ClubSettingsStaffApi
|
|
2958
3446
|
*/
|
|
2959
|
-
|
|
2960
|
-
return (0, exports.
|
|
3447
|
+
getHoursSettings(options) {
|
|
3448
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
|
|
2961
3449
|
}
|
|
2962
3450
|
/**
|
|
2963
|
-
*
|
|
3451
|
+
*
|
|
2964
3452
|
* @param {*} [options] Override http request option.
|
|
2965
3453
|
* @throws {RequiredError}
|
|
2966
|
-
* @memberof
|
|
3454
|
+
* @memberof ClubSettingsStaffApi
|
|
2967
3455
|
*/
|
|
2968
|
-
|
|
2969
|
-
return (0, exports.
|
|
3456
|
+
getPresentationSettings(options) {
|
|
3457
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
2970
3458
|
}
|
|
2971
3459
|
/**
|
|
2972
|
-
*
|
|
2973
|
-
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3460
|
+
*
|
|
2974
3461
|
* @param {*} [options] Override http request option.
|
|
2975
3462
|
* @throws {RequiredError}
|
|
2976
|
-
* @memberof
|
|
3463
|
+
* @memberof ClubSettingsStaffApi
|
|
2977
3464
|
*/
|
|
2978
|
-
|
|
2979
|
-
return (0, exports.
|
|
3465
|
+
getReservationSettings(options) {
|
|
3466
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
2980
3467
|
}
|
|
2981
3468
|
}
|
|
2982
|
-
exports.
|
|
3469
|
+
exports.ClubSettingsStaffApi = ClubSettingsStaffApi;
|
|
2983
3470
|
/**
|
|
2984
3471
|
* ClubsApi - axios parameter creator
|
|
2985
3472
|
* @export
|
|
@@ -3795,42 +4282,6 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3795
4282
|
options: localVarRequestOptions,
|
|
3796
4283
|
};
|
|
3797
4284
|
}),
|
|
3798
|
-
/**
|
|
3799
|
-
*
|
|
3800
|
-
* @param {string} userId
|
|
3801
|
-
* @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
|
|
3802
|
-
* @param {*} [options] Override http request option.
|
|
3803
|
-
* @throws {RequiredError}
|
|
3804
|
-
*/
|
|
3805
|
-
addCreditsToCustomer: (userId_1, addCreditsToCustomerRequest_1, ...args_1) => __awaiter(this, [userId_1, addCreditsToCustomerRequest_1, ...args_1], void 0, function* (userId, addCreditsToCustomerRequest, options = {}) {
|
|
3806
|
-
// verify required parameter 'userId' is not null or undefined
|
|
3807
|
-
(0, common_1.assertParamExists)('addCreditsToCustomer', 'userId', userId);
|
|
3808
|
-
// verify required parameter 'addCreditsToCustomerRequest' is not null or undefined
|
|
3809
|
-
(0, common_1.assertParamExists)('addCreditsToCustomer', 'addCreditsToCustomerRequest', addCreditsToCustomerRequest);
|
|
3810
|
-
const localVarPath = `/api/clubs/customers/{userId}/credits`
|
|
3811
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
3812
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3813
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3814
|
-
let baseOptions;
|
|
3815
|
-
if (configuration) {
|
|
3816
|
-
baseOptions = configuration.baseOptions;
|
|
3817
|
-
}
|
|
3818
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3819
|
-
const localVarHeaderParameter = {};
|
|
3820
|
-
const localVarQueryParameter = {};
|
|
3821
|
-
// authentication bearerAuth required
|
|
3822
|
-
// http bearer authentication required
|
|
3823
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3824
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3825
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3826
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3827
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3828
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addCreditsToCustomerRequest, localVarRequestOptions, configuration);
|
|
3829
|
-
return {
|
|
3830
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3831
|
-
options: localVarRequestOptions,
|
|
3832
|
-
};
|
|
3833
|
-
}),
|
|
3834
4285
|
/**
|
|
3835
4286
|
*
|
|
3836
4287
|
* @param {string} priceId
|
|
@@ -4307,6 +4758,38 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4307
4758
|
options: localVarRequestOptions,
|
|
4308
4759
|
};
|
|
4309
4760
|
}),
|
|
4761
|
+
/**
|
|
4762
|
+
*
|
|
4763
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
4764
|
+
* @param {*} [options] Override http request option.
|
|
4765
|
+
* @throws {RequiredError}
|
|
4766
|
+
*/
|
|
4767
|
+
updateClubPresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
|
|
4768
|
+
// verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
|
|
4769
|
+
(0, common_1.assertParamExists)('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
|
|
4770
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
4771
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4772
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4773
|
+
let baseOptions;
|
|
4774
|
+
if (configuration) {
|
|
4775
|
+
baseOptions = configuration.baseOptions;
|
|
4776
|
+
}
|
|
4777
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4778
|
+
const localVarHeaderParameter = {};
|
|
4779
|
+
const localVarQueryParameter = {};
|
|
4780
|
+
// authentication bearerAuth required
|
|
4781
|
+
// http bearer authentication required
|
|
4782
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4783
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4784
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4785
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4786
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4787
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
|
|
4788
|
+
return {
|
|
4789
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4790
|
+
options: localVarRequestOptions,
|
|
4791
|
+
};
|
|
4792
|
+
}),
|
|
4310
4793
|
/**
|
|
4311
4794
|
*
|
|
4312
4795
|
* @param {string} courtId
|
|
@@ -4404,22 +4887,6 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
4404
4887
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4405
4888
|
});
|
|
4406
4889
|
},
|
|
4407
|
-
/**
|
|
4408
|
-
*
|
|
4409
|
-
* @param {string} userId
|
|
4410
|
-
* @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
|
|
4411
|
-
* @param {*} [options] Override http request option.
|
|
4412
|
-
* @throws {RequiredError}
|
|
4413
|
-
*/
|
|
4414
|
-
addCreditsToCustomer(userId, addCreditsToCustomerRequest, options) {
|
|
4415
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4416
|
-
var _a, _b, _c;
|
|
4417
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addCreditsToCustomer(userId, addCreditsToCustomerRequest, options);
|
|
4418
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4419
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.addCreditsToCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4420
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4421
|
-
});
|
|
4422
|
-
},
|
|
4423
4890
|
/**
|
|
4424
4891
|
*
|
|
4425
4892
|
* @param {string} priceId
|
|
@@ -4646,6 +5113,21 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
4646
5113
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4647
5114
|
});
|
|
4648
5115
|
},
|
|
5116
|
+
/**
|
|
5117
|
+
*
|
|
5118
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
5119
|
+
* @param {*} [options] Override http request option.
|
|
5120
|
+
* @throws {RequiredError}
|
|
5121
|
+
*/
|
|
5122
|
+
updateClubPresentationSettings(updateClubPresentationSettingsRequest, options) {
|
|
5123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5124
|
+
var _a, _b, _c;
|
|
5125
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
|
|
5126
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5127
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.updateClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5128
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5129
|
+
});
|
|
5130
|
+
},
|
|
4649
5131
|
/**
|
|
4650
5132
|
*
|
|
4651
5133
|
* @param {string} courtId
|
|
@@ -4697,15 +5179,6 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
4697
5179
|
addClubMember(requestParameters, options) {
|
|
4698
5180
|
return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
4699
5181
|
},
|
|
4700
|
-
/**
|
|
4701
|
-
*
|
|
4702
|
-
* @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
|
|
4703
|
-
* @param {*} [options] Override http request option.
|
|
4704
|
-
* @throws {RequiredError}
|
|
4705
|
-
*/
|
|
4706
|
-
addCreditsToCustomer(requestParameters, options) {
|
|
4707
|
-
return localVarFp.addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(axios, basePath));
|
|
4708
|
-
},
|
|
4709
5182
|
/**
|
|
4710
5183
|
*
|
|
4711
5184
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -4840,6 +5313,15 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
4840
5313
|
updateClubInfos(requestParameters, options) {
|
|
4841
5314
|
return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
4842
5315
|
},
|
|
5316
|
+
/**
|
|
5317
|
+
*
|
|
5318
|
+
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
5319
|
+
* @param {*} [options] Override http request option.
|
|
5320
|
+
* @throws {RequiredError}
|
|
5321
|
+
*/
|
|
5322
|
+
updateClubPresentationSettings(requestParameters, options) {
|
|
5323
|
+
return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
5324
|
+
},
|
|
4843
5325
|
/**
|
|
4844
5326
|
*
|
|
4845
5327
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -4878,16 +5360,6 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
4878
5360
|
addClubMember(requestParameters, options) {
|
|
4879
5361
|
return (0, exports.ClubsManagerApiFp)(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4880
5362
|
}
|
|
4881
|
-
/**
|
|
4882
|
-
*
|
|
4883
|
-
* @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
|
|
4884
|
-
* @param {*} [options] Override http request option.
|
|
4885
|
-
* @throws {RequiredError}
|
|
4886
|
-
* @memberof ClubsManagerApi
|
|
4887
|
-
*/
|
|
4888
|
-
addCreditsToCustomer(requestParameters, options) {
|
|
4889
|
-
return (0, exports.ClubsManagerApiFp)(this.configuration).addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4890
|
-
}
|
|
4891
5363
|
/**
|
|
4892
5364
|
*
|
|
4893
5365
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5037,6 +5509,16 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
5037
5509
|
updateClubInfos(requestParameters, options) {
|
|
5038
5510
|
return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
5039
5511
|
}
|
|
5512
|
+
/**
|
|
5513
|
+
*
|
|
5514
|
+
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
5515
|
+
* @param {*} [options] Override http request option.
|
|
5516
|
+
* @throws {RequiredError}
|
|
5517
|
+
* @memberof ClubsManagerApi
|
|
5518
|
+
*/
|
|
5519
|
+
updateClubPresentationSettings(requestParameters, options) {
|
|
5520
|
+
return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5521
|
+
}
|
|
5040
5522
|
/**
|
|
5041
5523
|
*
|
|
5042
5524
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5146,6 +5628,33 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
5146
5628
|
options: localVarRequestOptions,
|
|
5147
5629
|
};
|
|
5148
5630
|
}),
|
|
5631
|
+
/**
|
|
5632
|
+
*
|
|
5633
|
+
* @param {*} [options] Override http request option.
|
|
5634
|
+
* @throws {RequiredError}
|
|
5635
|
+
*/
|
|
5636
|
+
getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5637
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
5638
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5639
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5640
|
+
let baseOptions;
|
|
5641
|
+
if (configuration) {
|
|
5642
|
+
baseOptions = configuration.baseOptions;
|
|
5643
|
+
}
|
|
5644
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5645
|
+
const localVarHeaderParameter = {};
|
|
5646
|
+
const localVarQueryParameter = {};
|
|
5647
|
+
// authentication bearerAuth required
|
|
5648
|
+
// http bearer authentication required
|
|
5649
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5650
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5651
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5652
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5653
|
+
return {
|
|
5654
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5655
|
+
options: localVarRequestOptions,
|
|
5656
|
+
};
|
|
5657
|
+
}),
|
|
5149
5658
|
/**
|
|
5150
5659
|
* Récupère les rôles d\'un club
|
|
5151
5660
|
* @param {*} [options] Override http request option.
|
|
@@ -5310,6 +5819,20 @@ const ClubsStaffApiFp = function (configuration) {
|
|
|
5310
5819
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5311
5820
|
});
|
|
5312
5821
|
},
|
|
5822
|
+
/**
|
|
5823
|
+
*
|
|
5824
|
+
* @param {*} [options] Override http request option.
|
|
5825
|
+
* @throws {RequiredError}
|
|
5826
|
+
*/
|
|
5827
|
+
getClubPresentationSettings(options) {
|
|
5828
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5829
|
+
var _a, _b, _c;
|
|
5830
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPresentationSettings(options);
|
|
5831
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5832
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.getClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5833
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5834
|
+
});
|
|
5835
|
+
},
|
|
5313
5836
|
/**
|
|
5314
5837
|
* Récupère les rôles d\'un club
|
|
5315
5838
|
* @param {*} [options] Override http request option.
|
|
@@ -5401,6 +5924,14 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
5401
5924
|
getClubMembers(options) {
|
|
5402
5925
|
return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
|
|
5403
5926
|
},
|
|
5927
|
+
/**
|
|
5928
|
+
*
|
|
5929
|
+
* @param {*} [options] Override http request option.
|
|
5930
|
+
* @throws {RequiredError}
|
|
5931
|
+
*/
|
|
5932
|
+
getClubPresentationSettings(options) {
|
|
5933
|
+
return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
|
|
5934
|
+
},
|
|
5404
5935
|
/**
|
|
5405
5936
|
* Récupère les rôles d\'un club
|
|
5406
5937
|
* @param {*} [options] Override http request option.
|
|
@@ -5471,6 +6002,15 @@ class ClubsStaffApi extends base_1.BaseAPI {
|
|
|
5471
6002
|
getClubMembers(options) {
|
|
5472
6003
|
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
|
|
5473
6004
|
}
|
|
6005
|
+
/**
|
|
6006
|
+
*
|
|
6007
|
+
* @param {*} [options] Override http request option.
|
|
6008
|
+
* @throws {RequiredError}
|
|
6009
|
+
* @memberof ClubsStaffApi
|
|
6010
|
+
*/
|
|
6011
|
+
getClubPresentationSettings(options) {
|
|
6012
|
+
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
6013
|
+
}
|
|
5474
6014
|
/**
|
|
5475
6015
|
* Récupère les rôles d\'un club
|
|
5476
6016
|
* @param {*} [options] Override http request option.
|