@tennac-booking/sdk 1.0.90 → 1.0.92
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 +9 -25
- package/README.md +15 -37
- package/api.ts +791 -1990
- package/dist/api.d.ts +527 -1428
- package/dist/api.js +237 -719
- package/dist/esm/api.d.ts +527 -1428
- package/dist/esm/api.js +234 -711
- package/docs/{ClubDaySchedule.md → AddCreditsToCustomer200Response.md} +5 -7
- package/docs/AddCreditsToCustomerRequest.md +22 -0
- package/docs/BookingPlayerPaymentSummary.md +2 -0
- package/docs/BookingPopulated.md +3 -3
- package/docs/BookingSummary.md +2 -0
- package/docs/ClubAnalyticsStaffApi.md +0 -173
- package/docs/ClubSettingsManagerApi.md +60 -54
- package/docs/ClubSettingsResponse.md +39 -0
- package/docs/ClubsManagerApi.md +58 -52
- package/docs/ClubsStaffApi.md +0 -44
- package/docs/CreateClubSettingsRequest.md +34 -0
- package/docs/CreateEventRequest.md +1 -3
- package/docs/DeleteClubSettingsResponse.md +20 -0
- package/docs/EventResponse.md +1 -1
- package/docs/EventResponseCourtsInner.md +18 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/UpdateClubSettingsRequest.md +32 -0
- package/docs/UpdateEventRequest.md +1 -1
- package/docs/UserClubMembership.md +34 -0
- package/docs/UserClubMembershipsResponse.md +20 -0
- package/docs/UsersApi.md +46 -0
- package/package.json +1 -1
- package/docs/ClubGeneralSettingsResponse.md +0 -32
- package/docs/ClubHoursSettingsResponse.md +0 -22
- package/docs/ClubLocationSettings.md +0 -26
- package/docs/ClubPlayerBookingItem.md +0 -36
- package/docs/ClubPlayerBookingsPagination.md +0 -28
- package/docs/ClubPlayerBookingsResponse.md +0 -24
- package/docs/ClubPlayerDetailResponse.md +0 -46
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponse.md +0 -42
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
- package/docs/ClubPlayerSubscriptionSummary.md +0 -28
- package/docs/ClubPresentationSettingsResponse.md +0 -26
- package/docs/ClubPricingPeriodResponse.md +0 -30
- package/docs/ClubReservationSettingsResponse.md +0 -28
- package/docs/ClubSettingsStaffApi.md +0 -183
- package/docs/ClubWeeklySchedule.md +0 -32
- package/docs/PartialClubWeeklySchedule.md +0 -33
- package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
- package/docs/UpdateClubHoursSettingsRequest.md +0 -22
- package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
- package/docs/UpdateClubReservationSettingsRequest.md +0 -28
package/dist/api.js
CHANGED
|
@@ -23,9 +23,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.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.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 =
|
|
28
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = void 0;
|
|
26
|
+
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = 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.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = 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 = void 0;
|
|
29
28
|
const axios_1 = require("axios");
|
|
30
29
|
// Some imports not used depending on template conditions
|
|
31
30
|
// @ts-ignore
|
|
@@ -1597,107 +1596,6 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1597
1596
|
options: localVarRequestOptions,
|
|
1598
1597
|
};
|
|
1599
1598
|
}),
|
|
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
|
-
}),
|
|
1701
1599
|
/**
|
|
1702
1600
|
* Récupère la liste des joueurs du club
|
|
1703
1601
|
* @param {*} [options] Override http request option.
|
|
@@ -1998,53 +1896,6 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
1998
1896
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1999
1897
|
});
|
|
2000
1898
|
},
|
|
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
|
-
},
|
|
2048
1899
|
/**
|
|
2049
1900
|
* Récupère la liste des joueurs du club
|
|
2050
1901
|
* @param {*} [options] Override http request option.
|
|
@@ -2196,33 +2047,6 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2196
2047
|
getAnalyticsBySport(requestParameters, options) {
|
|
2197
2048
|
return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
2198
2049
|
},
|
|
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
|
-
},
|
|
2226
2050
|
/**
|
|
2227
2051
|
* Récupère la liste des joueurs du club
|
|
2228
2052
|
* @param {*} [options] Override http request option.
|
|
@@ -2319,36 +2143,6 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2319
2143
|
getAnalyticsBySport(requestParameters, options) {
|
|
2320
2144
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
2321
2145
|
}
|
|
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
|
-
}
|
|
2352
2146
|
/**
|
|
2353
2147
|
* Récupère la liste des joueurs du club
|
|
2354
2148
|
* @param {*} [options] Override http request option.
|
|
@@ -2871,379 +2665,86 @@ class ClubRolesStaffApi extends base_1.BaseAPI {
|
|
|
2871
2665
|
* @throws {RequiredError}
|
|
2872
2666
|
* @memberof ClubRolesStaffApi
|
|
2873
2667
|
*/
|
|
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;
|
|
3099
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3100
|
-
});
|
|
3101
|
-
},
|
|
3102
|
-
};
|
|
3103
|
-
};
|
|
3104
|
-
exports.ClubSettingsManagerApiFp = ClubSettingsManagerApiFp;
|
|
3105
|
-
/**
|
|
3106
|
-
* ClubSettingsManagerApi - factory interface
|
|
3107
|
-
* @export
|
|
3108
|
-
*/
|
|
3109
|
-
const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
|
|
3110
|
-
const localVarFp = (0, exports.ClubSettingsManagerApiFp)(configuration);
|
|
3111
|
-
return {
|
|
3112
|
-
/**
|
|
3113
|
-
*
|
|
3114
|
-
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
3115
|
-
* @param {*} [options] Override http request option.
|
|
3116
|
-
* @throws {RequiredError}
|
|
3117
|
-
*/
|
|
3118
|
-
updateClubGeneralSettings(requestParameters, options) {
|
|
3119
|
-
return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3120
|
-
},
|
|
3121
|
-
/**
|
|
3122
|
-
*
|
|
3123
|
-
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
3124
|
-
* @param {*} [options] Override http request option.
|
|
3125
|
-
* @throws {RequiredError}
|
|
3126
|
-
*/
|
|
3127
|
-
updateHoursSettings(requestParameters, options) {
|
|
3128
|
-
return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3129
|
-
},
|
|
3130
|
-
/**
|
|
3131
|
-
*
|
|
3132
|
-
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
3133
|
-
* @param {*} [options] Override http request option.
|
|
3134
|
-
* @throws {RequiredError}
|
|
3135
|
-
*/
|
|
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));
|
|
3147
|
-
},
|
|
3148
|
-
};
|
|
3149
|
-
};
|
|
3150
|
-
exports.ClubSettingsManagerApiFactory = ClubSettingsManagerApiFactory;
|
|
3151
|
-
/**
|
|
3152
|
-
* ClubSettingsManagerApi - object-oriented interface
|
|
3153
|
-
* @export
|
|
3154
|
-
* @class ClubSettingsManagerApi
|
|
3155
|
-
* @extends {BaseAPI}
|
|
3156
|
-
*/
|
|
3157
|
-
class ClubSettingsManagerApi extends base_1.BaseAPI {
|
|
3158
|
-
/**
|
|
3159
|
-
*
|
|
3160
|
-
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
3161
|
-
* @param {*} [options] Override http request option.
|
|
3162
|
-
* @throws {RequiredError}
|
|
3163
|
-
* @memberof ClubSettingsManagerApi
|
|
3164
|
-
*/
|
|
3165
|
-
updateClubGeneralSettings(requestParameters, options) {
|
|
3166
|
-
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3167
|
-
}
|
|
3168
|
-
/**
|
|
3169
|
-
*
|
|
3170
|
-
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
3171
|
-
* @param {*} [options] Override http request option.
|
|
3172
|
-
* @throws {RequiredError}
|
|
3173
|
-
* @memberof ClubSettingsManagerApi
|
|
3174
|
-
*/
|
|
3175
|
-
updateHoursSettings(requestParameters, options) {
|
|
3176
|
-
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2668
|
+
getAllClubRoles(options) {
|
|
2669
|
+
return (0, exports.ClubRolesStaffApiFp)(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
3177
2670
|
}
|
|
3178
2671
|
/**
|
|
3179
|
-
*
|
|
3180
|
-
* @param {
|
|
2672
|
+
* Récupère un rôle de club par ID
|
|
2673
|
+
* @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
|
|
3181
2674
|
* @param {*} [options] Override http request option.
|
|
3182
2675
|
* @throws {RequiredError}
|
|
3183
|
-
* @memberof
|
|
2676
|
+
* @memberof ClubRolesStaffApi
|
|
3184
2677
|
*/
|
|
3185
|
-
|
|
3186
|
-
return (0, exports.
|
|
2678
|
+
getClubRoleById(requestParameters, options) {
|
|
2679
|
+
return (0, exports.ClubRolesStaffApiFp)(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
3187
2680
|
}
|
|
3188
2681
|
/**
|
|
3189
2682
|
*
|
|
3190
|
-
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
3191
2683
|
* @param {*} [options] Override http request option.
|
|
3192
2684
|
* @throws {RequiredError}
|
|
3193
|
-
* @memberof
|
|
2685
|
+
* @memberof ClubRolesStaffApi
|
|
3194
2686
|
*/
|
|
3195
|
-
|
|
3196
|
-
return (0, exports.
|
|
2687
|
+
getUserRolesInClubs(options) {
|
|
2688
|
+
return (0, exports.ClubRolesStaffApiFp)(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
|
|
3197
2689
|
}
|
|
3198
2690
|
}
|
|
3199
|
-
exports.
|
|
2691
|
+
exports.ClubRolesStaffApi = ClubRolesStaffApi;
|
|
3200
2692
|
/**
|
|
3201
|
-
*
|
|
2693
|
+
* ClubSettingsManagerApi - axios parameter creator
|
|
3202
2694
|
* @export
|
|
3203
2695
|
*/
|
|
3204
|
-
const
|
|
2696
|
+
const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
3205
2697
|
return {
|
|
3206
2698
|
/**
|
|
3207
|
-
*
|
|
2699
|
+
* Crée les paramètres d\'un club
|
|
2700
|
+
* @param {string} clubId
|
|
2701
|
+
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
3208
2702
|
* @param {*} [options] Override http request option.
|
|
3209
2703
|
* @throws {RequiredError}
|
|
3210
2704
|
*/
|
|
3211
|
-
|
|
3212
|
-
|
|
2705
|
+
createClubSettings: (clubId_1, createClubSettingsRequest_1, ...args_1) => __awaiter(this, [clubId_1, createClubSettingsRequest_1, ...args_1], void 0, function* (clubId, createClubSettingsRequest, options = {}) {
|
|
2706
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
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)));
|
|
3213
2712
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3214
2713
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3215
2714
|
let baseOptions;
|
|
3216
2715
|
if (configuration) {
|
|
3217
2716
|
baseOptions = configuration.baseOptions;
|
|
3218
2717
|
}
|
|
3219
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2718
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3220
2719
|
const localVarHeaderParameter = {};
|
|
3221
2720
|
const localVarQueryParameter = {};
|
|
3222
2721
|
// authentication bearerAuth required
|
|
3223
2722
|
// http bearer authentication required
|
|
3224
2723
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2724
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3225
2725
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3226
2726
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3227
2727
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2728
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubSettingsRequest, localVarRequestOptions, configuration);
|
|
3228
2729
|
return {
|
|
3229
2730
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3230
2731
|
options: localVarRequestOptions,
|
|
3231
2732
|
};
|
|
3232
2733
|
}),
|
|
3233
2734
|
/**
|
|
3234
|
-
*
|
|
2735
|
+
* Supprime les paramètres d\'un club
|
|
3235
2736
|
* @param {*} [options] Override http request option.
|
|
3236
2737
|
* @throws {RequiredError}
|
|
3237
2738
|
*/
|
|
3238
|
-
|
|
3239
|
-
const localVarPath = `/api/club-settings
|
|
2739
|
+
deleteClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2740
|
+
const localVarPath = `/api/club-settings`;
|
|
3240
2741
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3241
2742
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3242
2743
|
let baseOptions;
|
|
3243
2744
|
if (configuration) {
|
|
3244
2745
|
baseOptions = configuration.baseOptions;
|
|
3245
2746
|
}
|
|
3246
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2747
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3247
2748
|
const localVarHeaderParameter = {};
|
|
3248
2749
|
const localVarQueryParameter = {};
|
|
3249
2750
|
// authentication bearerAuth required
|
|
@@ -3258,12 +2759,12 @@ const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
3258
2759
|
};
|
|
3259
2760
|
}),
|
|
3260
2761
|
/**
|
|
3261
|
-
*
|
|
2762
|
+
* Récupère les paramètres d\'un club
|
|
3262
2763
|
* @param {*} [options] Override http request option.
|
|
3263
2764
|
* @throws {RequiredError}
|
|
3264
2765
|
*/
|
|
3265
|
-
|
|
3266
|
-
const localVarPath = `/api/club-settings
|
|
2766
|
+
getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2767
|
+
const localVarPath = `/api/club-settings`;
|
|
3267
2768
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3268
2769
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3269
2770
|
let baseOptions;
|
|
@@ -3285,27 +2786,32 @@ const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
3285
2786
|
};
|
|
3286
2787
|
}),
|
|
3287
2788
|
/**
|
|
3288
|
-
*
|
|
2789
|
+
* Met à jour les paramètres d\'un club
|
|
2790
|
+
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
3289
2791
|
* @param {*} [options] Override http request option.
|
|
3290
2792
|
* @throws {RequiredError}
|
|
3291
2793
|
*/
|
|
3292
|
-
|
|
3293
|
-
|
|
2794
|
+
updateClubSettings: (updateClubSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubSettingsRequest_1, ...args_1], void 0, function* (updateClubSettingsRequest, options = {}) {
|
|
2795
|
+
// verify required parameter 'updateClubSettingsRequest' is not null or undefined
|
|
2796
|
+
(0, common_1.assertParamExists)('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
|
|
2797
|
+
const localVarPath = `/api/club-settings`;
|
|
3294
2798
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3295
2799
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3296
2800
|
let baseOptions;
|
|
3297
2801
|
if (configuration) {
|
|
3298
2802
|
baseOptions = configuration.baseOptions;
|
|
3299
2803
|
}
|
|
3300
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2804
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3301
2805
|
const localVarHeaderParameter = {};
|
|
3302
2806
|
const localVarQueryParameter = {};
|
|
3303
2807
|
// authentication bearerAuth required
|
|
3304
2808
|
// http bearer authentication required
|
|
3305
2809
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2810
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3306
2811
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3307
2812
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3308
2813
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2814
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubSettingsRequest, localVarRequestOptions, configuration);
|
|
3309
2815
|
return {
|
|
3310
2816
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3311
2817
|
options: localVarRequestOptions,
|
|
@@ -3313,160 +2819,167 @@ const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
3313
2819
|
}),
|
|
3314
2820
|
};
|
|
3315
2821
|
};
|
|
3316
|
-
exports.
|
|
2822
|
+
exports.ClubSettingsManagerApiAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator;
|
|
3317
2823
|
/**
|
|
3318
|
-
*
|
|
2824
|
+
* ClubSettingsManagerApi - functional programming interface
|
|
3319
2825
|
* @export
|
|
3320
2826
|
*/
|
|
3321
|
-
const
|
|
3322
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
2827
|
+
const ClubSettingsManagerApiFp = function (configuration) {
|
|
2828
|
+
const localVarAxiosParamCreator = (0, exports.ClubSettingsManagerApiAxiosParamCreator)(configuration);
|
|
3323
2829
|
return {
|
|
3324
2830
|
/**
|
|
3325
|
-
*
|
|
2831
|
+
* Crée les paramètres d\'un club
|
|
2832
|
+
* @param {string} clubId
|
|
2833
|
+
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
3326
2834
|
* @param {*} [options] Override http request option.
|
|
3327
2835
|
* @throws {RequiredError}
|
|
3328
2836
|
*/
|
|
3329
|
-
|
|
2837
|
+
createClubSettings(clubId, createClubSettingsRequest, options) {
|
|
3330
2838
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3331
2839
|
var _a, _b, _c;
|
|
3332
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2840
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubSettings(clubId, createClubSettingsRequest, options);
|
|
3333
2841
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3334
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2842
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.createClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3335
2843
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3336
2844
|
});
|
|
3337
2845
|
},
|
|
3338
2846
|
/**
|
|
3339
|
-
*
|
|
2847
|
+
* Supprime les paramètres d\'un club
|
|
3340
2848
|
* @param {*} [options] Override http request option.
|
|
3341
2849
|
* @throws {RequiredError}
|
|
3342
2850
|
*/
|
|
3343
|
-
|
|
2851
|
+
deleteClubSettings(options) {
|
|
3344
2852
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3345
2853
|
var _a, _b, _c;
|
|
3346
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2854
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubSettings(options);
|
|
3347
2855
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3348
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2856
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.deleteClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3349
2857
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3350
2858
|
});
|
|
3351
2859
|
},
|
|
3352
2860
|
/**
|
|
3353
|
-
*
|
|
2861
|
+
* Récupère les paramètres d\'un club
|
|
3354
2862
|
* @param {*} [options] Override http request option.
|
|
3355
2863
|
* @throws {RequiredError}
|
|
3356
2864
|
*/
|
|
3357
|
-
|
|
2865
|
+
getClubSettings(options) {
|
|
3358
2866
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3359
2867
|
var _a, _b, _c;
|
|
3360
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2868
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
|
|
3361
2869
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3362
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2870
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3363
2871
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3364
2872
|
});
|
|
3365
2873
|
},
|
|
3366
2874
|
/**
|
|
3367
|
-
*
|
|
2875
|
+
* Met à jour les paramètres d\'un club
|
|
2876
|
+
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
3368
2877
|
* @param {*} [options] Override http request option.
|
|
3369
2878
|
* @throws {RequiredError}
|
|
3370
2879
|
*/
|
|
3371
|
-
|
|
2880
|
+
updateClubSettings(updateClubSettingsRequest, options) {
|
|
3372
2881
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3373
2882
|
var _a, _b, _c;
|
|
3374
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2883
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
|
|
3375
2884
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3376
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2885
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3377
2886
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3378
2887
|
});
|
|
3379
2888
|
},
|
|
3380
2889
|
};
|
|
3381
2890
|
};
|
|
3382
|
-
exports.
|
|
2891
|
+
exports.ClubSettingsManagerApiFp = ClubSettingsManagerApiFp;
|
|
3383
2892
|
/**
|
|
3384
|
-
*
|
|
2893
|
+
* ClubSettingsManagerApi - factory interface
|
|
3385
2894
|
* @export
|
|
3386
2895
|
*/
|
|
3387
|
-
const
|
|
3388
|
-
const localVarFp = (0, exports.
|
|
2896
|
+
const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
|
|
2897
|
+
const localVarFp = (0, exports.ClubSettingsManagerApiFp)(configuration);
|
|
3389
2898
|
return {
|
|
3390
2899
|
/**
|
|
3391
|
-
*
|
|
2900
|
+
* Crée les paramètres d\'un club
|
|
2901
|
+
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
3392
2902
|
* @param {*} [options] Override http request option.
|
|
3393
2903
|
* @throws {RequiredError}
|
|
3394
2904
|
*/
|
|
3395
|
-
|
|
3396
|
-
return localVarFp.
|
|
2905
|
+
createClubSettings(requestParameters, options) {
|
|
2906
|
+
return localVarFp.createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3397
2907
|
},
|
|
3398
2908
|
/**
|
|
3399
|
-
*
|
|
2909
|
+
* Supprime les paramètres d\'un club
|
|
3400
2910
|
* @param {*} [options] Override http request option.
|
|
3401
2911
|
* @throws {RequiredError}
|
|
3402
2912
|
*/
|
|
3403
|
-
|
|
3404
|
-
return localVarFp.
|
|
2913
|
+
deleteClubSettings(options) {
|
|
2914
|
+
return localVarFp.deleteClubSettings(options).then((request) => request(axios, basePath));
|
|
3405
2915
|
},
|
|
3406
2916
|
/**
|
|
3407
|
-
*
|
|
2917
|
+
* Récupère les paramètres d\'un club
|
|
3408
2918
|
* @param {*} [options] Override http request option.
|
|
3409
2919
|
* @throws {RequiredError}
|
|
3410
2920
|
*/
|
|
3411
|
-
|
|
3412
|
-
return localVarFp.
|
|
2921
|
+
getClubSettings(options) {
|
|
2922
|
+
return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
|
|
3413
2923
|
},
|
|
3414
2924
|
/**
|
|
3415
|
-
*
|
|
2925
|
+
* Met à jour les paramètres d\'un club
|
|
2926
|
+
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3416
2927
|
* @param {*} [options] Override http request option.
|
|
3417
2928
|
* @throws {RequiredError}
|
|
3418
2929
|
*/
|
|
3419
|
-
|
|
3420
|
-
return localVarFp.
|
|
2930
|
+
updateClubSettings(requestParameters, options) {
|
|
2931
|
+
return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3421
2932
|
},
|
|
3422
2933
|
};
|
|
3423
2934
|
};
|
|
3424
|
-
exports.
|
|
2935
|
+
exports.ClubSettingsManagerApiFactory = ClubSettingsManagerApiFactory;
|
|
3425
2936
|
/**
|
|
3426
|
-
*
|
|
2937
|
+
* ClubSettingsManagerApi - object-oriented interface
|
|
3427
2938
|
* @export
|
|
3428
|
-
* @class
|
|
2939
|
+
* @class ClubSettingsManagerApi
|
|
3429
2940
|
* @extends {BaseAPI}
|
|
3430
2941
|
*/
|
|
3431
|
-
class
|
|
2942
|
+
class ClubSettingsManagerApi extends base_1.BaseAPI {
|
|
3432
2943
|
/**
|
|
3433
|
-
*
|
|
2944
|
+
* Crée les paramètres d\'un club
|
|
2945
|
+
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
3434
2946
|
* @param {*} [options] Override http request option.
|
|
3435
2947
|
* @throws {RequiredError}
|
|
3436
|
-
* @memberof
|
|
2948
|
+
* @memberof ClubSettingsManagerApi
|
|
3437
2949
|
*/
|
|
3438
|
-
|
|
3439
|
-
return (0, exports.
|
|
2950
|
+
createClubSettings(requestParameters, options) {
|
|
2951
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3440
2952
|
}
|
|
3441
2953
|
/**
|
|
3442
|
-
*
|
|
2954
|
+
* Supprime les paramètres d\'un club
|
|
3443
2955
|
* @param {*} [options] Override http request option.
|
|
3444
2956
|
* @throws {RequiredError}
|
|
3445
|
-
* @memberof
|
|
2957
|
+
* @memberof ClubSettingsManagerApi
|
|
3446
2958
|
*/
|
|
3447
|
-
|
|
3448
|
-
return (0, exports.
|
|
2959
|
+
deleteClubSettings(options) {
|
|
2960
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).deleteClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3449
2961
|
}
|
|
3450
2962
|
/**
|
|
3451
|
-
*
|
|
2963
|
+
* Récupère les paramètres d\'un club
|
|
3452
2964
|
* @param {*} [options] Override http request option.
|
|
3453
2965
|
* @throws {RequiredError}
|
|
3454
|
-
* @memberof
|
|
2966
|
+
* @memberof ClubSettingsManagerApi
|
|
3455
2967
|
*/
|
|
3456
|
-
|
|
3457
|
-
return (0, exports.
|
|
2968
|
+
getClubSettings(options) {
|
|
2969
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3458
2970
|
}
|
|
3459
2971
|
/**
|
|
3460
|
-
*
|
|
2972
|
+
* Met à jour les paramètres d\'un club
|
|
2973
|
+
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3461
2974
|
* @param {*} [options] Override http request option.
|
|
3462
2975
|
* @throws {RequiredError}
|
|
3463
|
-
* @memberof
|
|
2976
|
+
* @memberof ClubSettingsManagerApi
|
|
3464
2977
|
*/
|
|
3465
|
-
|
|
3466
|
-
return (0, exports.
|
|
2978
|
+
updateClubSettings(requestParameters, options) {
|
|
2979
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3467
2980
|
}
|
|
3468
2981
|
}
|
|
3469
|
-
exports.
|
|
2982
|
+
exports.ClubSettingsManagerApi = ClubSettingsManagerApi;
|
|
3470
2983
|
/**
|
|
3471
2984
|
* ClubsApi - axios parameter creator
|
|
3472
2985
|
* @export
|
|
@@ -4282,6 +3795,42 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4282
3795
|
options: localVarRequestOptions,
|
|
4283
3796
|
};
|
|
4284
3797
|
}),
|
|
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
|
+
}),
|
|
4285
3834
|
/**
|
|
4286
3835
|
*
|
|
4287
3836
|
* @param {string} priceId
|
|
@@ -4758,38 +4307,6 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4758
4307
|
options: localVarRequestOptions,
|
|
4759
4308
|
};
|
|
4760
4309
|
}),
|
|
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
|
-
}),
|
|
4793
4310
|
/**
|
|
4794
4311
|
*
|
|
4795
4312
|
* @param {string} courtId
|
|
@@ -4887,6 +4404,22 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
4887
4404
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4888
4405
|
});
|
|
4889
4406
|
},
|
|
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
|
+
},
|
|
4890
4423
|
/**
|
|
4891
4424
|
*
|
|
4892
4425
|
* @param {string} priceId
|
|
@@ -5113,21 +4646,6 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
5113
4646
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5114
4647
|
});
|
|
5115
4648
|
},
|
|
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
|
-
},
|
|
5131
4649
|
/**
|
|
5132
4650
|
*
|
|
5133
4651
|
* @param {string} courtId
|
|
@@ -5179,6 +4697,15 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
5179
4697
|
addClubMember(requestParameters, options) {
|
|
5180
4698
|
return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
5181
4699
|
},
|
|
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
|
+
},
|
|
5182
4709
|
/**
|
|
5183
4710
|
*
|
|
5184
4711
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5313,15 +4840,6 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
5313
4840
|
updateClubInfos(requestParameters, options) {
|
|
5314
4841
|
return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
5315
4842
|
},
|
|
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
|
-
},
|
|
5325
4843
|
/**
|
|
5326
4844
|
*
|
|
5327
4845
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5360,6 +4878,16 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
5360
4878
|
addClubMember(requestParameters, options) {
|
|
5361
4879
|
return (0, exports.ClubsManagerApiFp)(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5362
4880
|
}
|
|
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
|
+
}
|
|
5363
4891
|
/**
|
|
5364
4892
|
*
|
|
5365
4893
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5509,16 +5037,6 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
5509
5037
|
updateClubInfos(requestParameters, options) {
|
|
5510
5038
|
return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
5511
5039
|
}
|
|
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
|
-
}
|
|
5522
5040
|
/**
|
|
5523
5041
|
*
|
|
5524
5042
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5628,33 +5146,6 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
5628
5146
|
options: localVarRequestOptions,
|
|
5629
5147
|
};
|
|
5630
5148
|
}),
|
|
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
|
-
}),
|
|
5658
5149
|
/**
|
|
5659
5150
|
* Récupère les rôles d\'un club
|
|
5660
5151
|
* @param {*} [options] Override http request option.
|
|
@@ -5819,20 +5310,6 @@ const ClubsStaffApiFp = function (configuration) {
|
|
|
5819
5310
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5820
5311
|
});
|
|
5821
5312
|
},
|
|
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
|
-
},
|
|
5836
5313
|
/**
|
|
5837
5314
|
* Récupère les rôles d\'un club
|
|
5838
5315
|
* @param {*} [options] Override http request option.
|
|
@@ -5924,14 +5401,6 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
5924
5401
|
getClubMembers(options) {
|
|
5925
5402
|
return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
|
|
5926
5403
|
},
|
|
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
|
-
},
|
|
5935
5404
|
/**
|
|
5936
5405
|
* Récupère les rôles d\'un club
|
|
5937
5406
|
* @param {*} [options] Override http request option.
|
|
@@ -6002,15 +5471,6 @@ class ClubsStaffApi extends base_1.BaseAPI {
|
|
|
6002
5471
|
getClubMembers(options) {
|
|
6003
5472
|
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
|
|
6004
5473
|
}
|
|
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
|
-
}
|
|
6014
5474
|
/**
|
|
6015
5475
|
* Récupère les rôles d\'un club
|
|
6016
5476
|
* @param {*} [options] Override http request option.
|
|
@@ -8539,6 +7999,33 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8539
7999
|
options: localVarRequestOptions,
|
|
8540
8000
|
};
|
|
8541
8001
|
}),
|
|
8002
|
+
/**
|
|
8003
|
+
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
8004
|
+
* @param {*} [options] Override http request option.
|
|
8005
|
+
* @throws {RequiredError}
|
|
8006
|
+
*/
|
|
8007
|
+
getMyClubMemberships: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
8008
|
+
const localVarPath = `/api/users/me/club-memberships`;
|
|
8009
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8010
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8011
|
+
let baseOptions;
|
|
8012
|
+
if (configuration) {
|
|
8013
|
+
baseOptions = configuration.baseOptions;
|
|
8014
|
+
}
|
|
8015
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8016
|
+
const localVarHeaderParameter = {};
|
|
8017
|
+
const localVarQueryParameter = {};
|
|
8018
|
+
// authentication bearerAuth required
|
|
8019
|
+
// http bearer authentication required
|
|
8020
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8021
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8022
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8023
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8024
|
+
return {
|
|
8025
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8026
|
+
options: localVarRequestOptions,
|
|
8027
|
+
};
|
|
8028
|
+
}),
|
|
8542
8029
|
/**
|
|
8543
8030
|
*
|
|
8544
8031
|
* @param {number} [radiusInKm]
|
|
@@ -9499,6 +8986,20 @@ const UsersApiFp = function (configuration) {
|
|
|
9499
8986
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9500
8987
|
});
|
|
9501
8988
|
},
|
|
8989
|
+
/**
|
|
8990
|
+
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
8991
|
+
* @param {*} [options] Override http request option.
|
|
8992
|
+
* @throws {RequiredError}
|
|
8993
|
+
*/
|
|
8994
|
+
getMyClubMemberships(options) {
|
|
8995
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8996
|
+
var _a, _b, _c;
|
|
8997
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClubMemberships(options);
|
|
8998
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8999
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getMyClubMemberships']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9000
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9001
|
+
});
|
|
9002
|
+
},
|
|
9502
9003
|
/**
|
|
9503
9004
|
*
|
|
9504
9005
|
* @param {number} [radiusInKm]
|
|
@@ -9978,6 +9479,14 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9978
9479
|
getMe(options) {
|
|
9979
9480
|
return localVarFp.getMe(options).then((request) => request(axios, basePath));
|
|
9980
9481
|
},
|
|
9482
|
+
/**
|
|
9483
|
+
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
9484
|
+
* @param {*} [options] Override http request option.
|
|
9485
|
+
* @throws {RequiredError}
|
|
9486
|
+
*/
|
|
9487
|
+
getMyClubMemberships(options) {
|
|
9488
|
+
return localVarFp.getMyClubMemberships(options).then((request) => request(axios, basePath));
|
|
9489
|
+
},
|
|
9981
9490
|
/**
|
|
9982
9491
|
*
|
|
9983
9492
|
* @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
|
|
@@ -10306,6 +9815,15 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
10306
9815
|
getMe(options) {
|
|
10307
9816
|
return (0, exports.UsersApiFp)(this.configuration).getMe(options).then((request) => request(this.axios, this.basePath));
|
|
10308
9817
|
}
|
|
9818
|
+
/**
|
|
9819
|
+
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
9820
|
+
* @param {*} [options] Override http request option.
|
|
9821
|
+
* @throws {RequiredError}
|
|
9822
|
+
* @memberof UsersApi
|
|
9823
|
+
*/
|
|
9824
|
+
getMyClubMemberships(options) {
|
|
9825
|
+
return (0, exports.UsersApiFp)(this.configuration).getMyClubMemberships(options).then((request) => request(this.axios, this.basePath));
|
|
9826
|
+
}
|
|
10309
9827
|
/**
|
|
10310
9828
|
*
|
|
10311
9829
|
* @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
|