@tennac-booking/sdk 1.0.95 → 1.0.97
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 +267 -250
- package/README.md +45 -19
- package/api.ts +3406 -2044
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1811 -812
- package/dist/api.js +973 -414
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1811 -812
- package/dist/esm/api.js +967 -408
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AddClubMemberRequest.md +7 -1
- package/docs/BookingPopulated.md +3 -3
- package/docs/BookingPriceBody.md +2 -2
- package/docs/BookingSummary.md +0 -4
- package/docs/ClubAnalyticsStaffApi.md +314 -0
- package/docs/{AddCreditsToCustomer200Response.md → ClubDaySchedule.md} +7 -5
- package/docs/ClubGeneralSettingsResponse.md +32 -0
- package/docs/ClubHoursSettingsResponse.md +22 -0
- package/docs/ClubLocationSettings.md +26 -0
- package/docs/ClubPlayerBookingItem.md +36 -0
- package/docs/ClubPlayerBookingsPagination.md +28 -0
- package/docs/ClubPlayerBookingsResponse.md +24 -0
- package/docs/ClubPlayerDetailResponse.md +46 -0
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +22 -0
- package/docs/ClubPlayerStatisticsResponse.md +42 -0
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +22 -0
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +23 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +25 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +26 -0
- package/docs/ClubPlayerSubscriptionSummary.md +28 -0
- package/docs/ClubPresentationSettingsResponse.md +26 -0
- package/docs/ClubPricingPeriodResponse.md +30 -0
- package/docs/ClubReservationSettingsResponse.md +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/CourtBookingShareItem.md +26 -0
- package/docs/CourtResponse.md +1 -1
- package/docs/CreateBookingRequest.md +0 -2
- package/docs/CreateCourtRequest.md +1 -1
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventResponse.md +1 -1
- package/docs/PartialClubWeeklySchedule.md +33 -0
- package/docs/PlayerWithPaymentMethod.md +0 -2
- package/docs/RetentionRateResponse.md +24 -0
- package/docs/RevenueBySportItem.md +24 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/UpdateClubGeneralSettingsRequest.md +34 -0
- package/docs/UpdateClubHoursSettingsRequest.md +22 -0
- package/docs/UpdateClubPresentationSettingsRequest.md +26 -0
- package/docs/UpdateClubReservationSettingsRequest.md +28 -0
- package/docs/UpdateEventRequest.md +1 -1
- package/docs/UserInfo.md +2 -0
- package/docs/UsersApi.md +0 -46
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AddCreditsToCustomerRequest.md +0 -22
- package/docs/ClubSettingsResponse.md +0 -39
- package/docs/CreateClubSettingsRequest.md +0 -34
- package/docs/DeleteClubSettingsResponse.md +0 -20
- package/docs/EventResponseCourtsInner.md +0 -18
- package/docs/PlayerShare.md +0 -22
- package/docs/SportsStaffApi.md +0 -55
- package/docs/UpdateClubSettingsRequest.md +0 -32
- package/docs/UserClubMembership.md +0 -34
- package/docs/UserClubMembershipsResponse.md +0 -20
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.89
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,8 +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.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.
|
|
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.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.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
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -1596,6 +1596,107 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1596
1596
|
options: localVarRequestOptions,
|
|
1597
1597
|
};
|
|
1598
1598
|
}),
|
|
1599
|
+
/**
|
|
1600
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
1601
|
+
* @param {string} playerId
|
|
1602
|
+
* @param {number} [page]
|
|
1603
|
+
* @param {number} [pageSize]
|
|
1604
|
+
* @param {*} [options] Override http request option.
|
|
1605
|
+
* @throws {RequiredError}
|
|
1606
|
+
*/
|
|
1607
|
+
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 = {}) {
|
|
1608
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
1609
|
+
(0, common_1.assertParamExists)('getClubPlayerBookingsById', 'playerId', playerId);
|
|
1610
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
1611
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1612
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1613
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1614
|
+
let baseOptions;
|
|
1615
|
+
if (configuration) {
|
|
1616
|
+
baseOptions = configuration.baseOptions;
|
|
1617
|
+
}
|
|
1618
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1619
|
+
const localVarHeaderParameter = {};
|
|
1620
|
+
const localVarQueryParameter = {};
|
|
1621
|
+
// authentication bearerAuth required
|
|
1622
|
+
// http bearer authentication required
|
|
1623
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1624
|
+
if (page !== undefined) {
|
|
1625
|
+
localVarQueryParameter['page'] = page;
|
|
1626
|
+
}
|
|
1627
|
+
if (pageSize !== undefined) {
|
|
1628
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
1629
|
+
}
|
|
1630
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1631
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1632
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1633
|
+
return {
|
|
1634
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1635
|
+
options: localVarRequestOptions,
|
|
1636
|
+
};
|
|
1637
|
+
}),
|
|
1638
|
+
/**
|
|
1639
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
1640
|
+
* @param {string} playerId
|
|
1641
|
+
* @param {*} [options] Override http request option.
|
|
1642
|
+
* @throws {RequiredError}
|
|
1643
|
+
*/
|
|
1644
|
+
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1645
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
1646
|
+
(0, common_1.assertParamExists)('getClubPlayerById', 'playerId', playerId);
|
|
1647
|
+
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
1648
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1649
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1650
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1651
|
+
let baseOptions;
|
|
1652
|
+
if (configuration) {
|
|
1653
|
+
baseOptions = configuration.baseOptions;
|
|
1654
|
+
}
|
|
1655
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1656
|
+
const localVarHeaderParameter = {};
|
|
1657
|
+
const localVarQueryParameter = {};
|
|
1658
|
+
// authentication bearerAuth required
|
|
1659
|
+
// http bearer authentication required
|
|
1660
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1661
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1662
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1663
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1664
|
+
return {
|
|
1665
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1666
|
+
options: localVarRequestOptions,
|
|
1667
|
+
};
|
|
1668
|
+
}),
|
|
1669
|
+
/**
|
|
1670
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
1671
|
+
* @param {string} playerId
|
|
1672
|
+
* @param {*} [options] Override http request option.
|
|
1673
|
+
* @throws {RequiredError}
|
|
1674
|
+
*/
|
|
1675
|
+
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1676
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
1677
|
+
(0, common_1.assertParamExists)('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
1678
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
1679
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1680
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1681
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1682
|
+
let baseOptions;
|
|
1683
|
+
if (configuration) {
|
|
1684
|
+
baseOptions = configuration.baseOptions;
|
|
1685
|
+
}
|
|
1686
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1687
|
+
const localVarHeaderParameter = {};
|
|
1688
|
+
const localVarQueryParameter = {};
|
|
1689
|
+
// authentication bearerAuth required
|
|
1690
|
+
// http bearer authentication required
|
|
1691
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1692
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1693
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1694
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1695
|
+
return {
|
|
1696
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1697
|
+
options: localVarRequestOptions,
|
|
1698
|
+
};
|
|
1699
|
+
}),
|
|
1599
1700
|
/**
|
|
1600
1701
|
* Récupère la liste des joueurs du club
|
|
1601
1702
|
* @param {*} [options] Override http request option.
|
|
@@ -1811,6 +1912,60 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1811
1912
|
options: localVarRequestOptions,
|
|
1812
1913
|
};
|
|
1813
1914
|
}),
|
|
1915
|
+
/**
|
|
1916
|
+
* Calcule le taux de fidélisation des joueurs
|
|
1917
|
+
* @param {*} [options] Override http request option.
|
|
1918
|
+
* @throws {RequiredError}
|
|
1919
|
+
*/
|
|
1920
|
+
getRetentionRate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1921
|
+
const localVarPath = `/api/club-analytics/retention-rate`;
|
|
1922
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1923
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1924
|
+
let baseOptions;
|
|
1925
|
+
if (configuration) {
|
|
1926
|
+
baseOptions = configuration.baseOptions;
|
|
1927
|
+
}
|
|
1928
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1929
|
+
const localVarHeaderParameter = {};
|
|
1930
|
+
const localVarQueryParameter = {};
|
|
1931
|
+
// authentication bearerAuth required
|
|
1932
|
+
// http bearer authentication required
|
|
1933
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1934
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1935
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1936
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1937
|
+
return {
|
|
1938
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1939
|
+
options: localVarRequestOptions,
|
|
1940
|
+
};
|
|
1941
|
+
}),
|
|
1942
|
+
/**
|
|
1943
|
+
* Récupère le chiffre d\'affaires par sport
|
|
1944
|
+
* @param {*} [options] Override http request option.
|
|
1945
|
+
* @throws {RequiredError}
|
|
1946
|
+
*/
|
|
1947
|
+
getRevenueBySport: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1948
|
+
const localVarPath = `/api/club-analytics/revenue-by-sport`;
|
|
1949
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1950
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1951
|
+
let baseOptions;
|
|
1952
|
+
if (configuration) {
|
|
1953
|
+
baseOptions = configuration.baseOptions;
|
|
1954
|
+
}
|
|
1955
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1956
|
+
const localVarHeaderParameter = {};
|
|
1957
|
+
const localVarQueryParameter = {};
|
|
1958
|
+
// authentication bearerAuth required
|
|
1959
|
+
// http bearer authentication required
|
|
1960
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1961
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1962
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1963
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1964
|
+
return {
|
|
1965
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1966
|
+
options: localVarRequestOptions,
|
|
1967
|
+
};
|
|
1968
|
+
}),
|
|
1814
1969
|
/**
|
|
1815
1970
|
* Récupère les 10 prochaines réservations
|
|
1816
1971
|
* @param {*} [options] Override http request option.
|
|
@@ -1838,6 +1993,33 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1838
1993
|
options: localVarRequestOptions,
|
|
1839
1994
|
};
|
|
1840
1995
|
}),
|
|
1996
|
+
/**
|
|
1997
|
+
* Classement des terrains les plus réservés
|
|
1998
|
+
* @param {*} [options] Override http request option.
|
|
1999
|
+
* @throws {RequiredError}
|
|
2000
|
+
*/
|
|
2001
|
+
getTopCourtsByBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2002
|
+
const localVarPath = `/api/club-analytics/top-courts`;
|
|
2003
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2004
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2005
|
+
let baseOptions;
|
|
2006
|
+
if (configuration) {
|
|
2007
|
+
baseOptions = configuration.baseOptions;
|
|
2008
|
+
}
|
|
2009
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2010
|
+
const localVarHeaderParameter = {};
|
|
2011
|
+
const localVarQueryParameter = {};
|
|
2012
|
+
// authentication bearerAuth required
|
|
2013
|
+
// http bearer authentication required
|
|
2014
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2015
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2016
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2017
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2018
|
+
return {
|
|
2019
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2020
|
+
options: localVarRequestOptions,
|
|
2021
|
+
};
|
|
2022
|
+
}),
|
|
1841
2023
|
/**
|
|
1842
2024
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
1843
2025
|
* @param {string} year
|
|
@@ -1896,6 +2078,53 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
1896
2078
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1897
2079
|
});
|
|
1898
2080
|
},
|
|
2081
|
+
/**
|
|
2082
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2083
|
+
* @param {string} playerId
|
|
2084
|
+
* @param {number} [page]
|
|
2085
|
+
* @param {number} [pageSize]
|
|
2086
|
+
* @param {*} [options] Override http request option.
|
|
2087
|
+
* @throws {RequiredError}
|
|
2088
|
+
*/
|
|
2089
|
+
getClubPlayerBookingsById(playerId, page, pageSize, options) {
|
|
2090
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2091
|
+
var _a, _b, _c;
|
|
2092
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, page, pageSize, options);
|
|
2093
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2094
|
+
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;
|
|
2095
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2096
|
+
});
|
|
2097
|
+
},
|
|
2098
|
+
/**
|
|
2099
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2100
|
+
* @param {string} playerId
|
|
2101
|
+
* @param {*} [options] Override http request option.
|
|
2102
|
+
* @throws {RequiredError}
|
|
2103
|
+
*/
|
|
2104
|
+
getClubPlayerById(playerId, options) {
|
|
2105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2106
|
+
var _a, _b, _c;
|
|
2107
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
|
|
2108
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2109
|
+
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;
|
|
2110
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2111
|
+
});
|
|
2112
|
+
},
|
|
2113
|
+
/**
|
|
2114
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2115
|
+
* @param {string} playerId
|
|
2116
|
+
* @param {*} [options] Override http request option.
|
|
2117
|
+
* @throws {RequiredError}
|
|
2118
|
+
*/
|
|
2119
|
+
getClubPlayerStatisticsById(playerId, options) {
|
|
2120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2121
|
+
var _a, _b, _c;
|
|
2122
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
|
|
2123
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2124
|
+
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;
|
|
2125
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2126
|
+
});
|
|
2127
|
+
},
|
|
1899
2128
|
/**
|
|
1900
2129
|
* Récupère la liste des joueurs du club
|
|
1901
2130
|
* @param {*} [options] Override http request option.
|
|
@@ -1999,6 +2228,34 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
1999
2228
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2000
2229
|
});
|
|
2001
2230
|
},
|
|
2231
|
+
/**
|
|
2232
|
+
* Calcule le taux de fidélisation des joueurs
|
|
2233
|
+
* @param {*} [options] Override http request option.
|
|
2234
|
+
* @throws {RequiredError}
|
|
2235
|
+
*/
|
|
2236
|
+
getRetentionRate(options) {
|
|
2237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2238
|
+
var _a, _b, _c;
|
|
2239
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRetentionRate(options);
|
|
2240
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2241
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getRetentionRate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2242
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2243
|
+
});
|
|
2244
|
+
},
|
|
2245
|
+
/**
|
|
2246
|
+
* Récupère le chiffre d\'affaires par sport
|
|
2247
|
+
* @param {*} [options] Override http request option.
|
|
2248
|
+
* @throws {RequiredError}
|
|
2249
|
+
*/
|
|
2250
|
+
getRevenueBySport(options) {
|
|
2251
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2252
|
+
var _a, _b, _c;
|
|
2253
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRevenueBySport(options);
|
|
2254
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2255
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getRevenueBySport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2256
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2257
|
+
});
|
|
2258
|
+
},
|
|
2002
2259
|
/**
|
|
2003
2260
|
* Récupère les 10 prochaines réservations
|
|
2004
2261
|
* @param {*} [options] Override http request option.
|
|
@@ -2013,6 +2270,20 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2013
2270
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2014
2271
|
});
|
|
2015
2272
|
},
|
|
2273
|
+
/**
|
|
2274
|
+
* Classement des terrains les plus réservés
|
|
2275
|
+
* @param {*} [options] Override http request option.
|
|
2276
|
+
* @throws {RequiredError}
|
|
2277
|
+
*/
|
|
2278
|
+
getTopCourtsByBookings(options) {
|
|
2279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2280
|
+
var _a, _b, _c;
|
|
2281
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTopCourtsByBookings(options);
|
|
2282
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2283
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getTopCourtsByBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2284
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2285
|
+
});
|
|
2286
|
+
},
|
|
2016
2287
|
/**
|
|
2017
2288
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2018
2289
|
* @param {string} year
|
|
@@ -2047,6 +2318,33 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2047
2318
|
getAnalyticsBySport(requestParameters, options) {
|
|
2048
2319
|
return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
2049
2320
|
},
|
|
2321
|
+
/**
|
|
2322
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2323
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2324
|
+
* @param {*} [options] Override http request option.
|
|
2325
|
+
* @throws {RequiredError}
|
|
2326
|
+
*/
|
|
2327
|
+
getClubPlayerBookingsById(requestParameters, options) {
|
|
2328
|
+
return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
2329
|
+
},
|
|
2330
|
+
/**
|
|
2331
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2332
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2333
|
+
* @param {*} [options] Override http request option.
|
|
2334
|
+
* @throws {RequiredError}
|
|
2335
|
+
*/
|
|
2336
|
+
getClubPlayerById(requestParameters, options) {
|
|
2337
|
+
return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2338
|
+
},
|
|
2339
|
+
/**
|
|
2340
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2341
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2342
|
+
* @param {*} [options] Override http request option.
|
|
2343
|
+
* @throws {RequiredError}
|
|
2344
|
+
*/
|
|
2345
|
+
getClubPlayerStatisticsById(requestParameters, options) {
|
|
2346
|
+
return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2347
|
+
},
|
|
2050
2348
|
/**
|
|
2051
2349
|
* Récupère la liste des joueurs du club
|
|
2052
2350
|
* @param {*} [options] Override http request option.
|
|
@@ -2106,6 +2404,22 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2106
2404
|
getNumberOfClubUsers(options) {
|
|
2107
2405
|
return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
|
|
2108
2406
|
},
|
|
2407
|
+
/**
|
|
2408
|
+
* Calcule le taux de fidélisation des joueurs
|
|
2409
|
+
* @param {*} [options] Override http request option.
|
|
2410
|
+
* @throws {RequiredError}
|
|
2411
|
+
*/
|
|
2412
|
+
getRetentionRate(options) {
|
|
2413
|
+
return localVarFp.getRetentionRate(options).then((request) => request(axios, basePath));
|
|
2414
|
+
},
|
|
2415
|
+
/**
|
|
2416
|
+
* Récupère le chiffre d\'affaires par sport
|
|
2417
|
+
* @param {*} [options] Override http request option.
|
|
2418
|
+
* @throws {RequiredError}
|
|
2419
|
+
*/
|
|
2420
|
+
getRevenueBySport(options) {
|
|
2421
|
+
return localVarFp.getRevenueBySport(options).then((request) => request(axios, basePath));
|
|
2422
|
+
},
|
|
2109
2423
|
/**
|
|
2110
2424
|
* Récupère les 10 prochaines réservations
|
|
2111
2425
|
* @param {*} [options] Override http request option.
|
|
@@ -2114,6 +2428,14 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2114
2428
|
getTenNextBookings(options) {
|
|
2115
2429
|
return localVarFp.getTenNextBookings(options).then((request) => request(axios, basePath));
|
|
2116
2430
|
},
|
|
2431
|
+
/**
|
|
2432
|
+
* Classement des terrains les plus réservés
|
|
2433
|
+
* @param {*} [options] Override http request option.
|
|
2434
|
+
* @throws {RequiredError}
|
|
2435
|
+
*/
|
|
2436
|
+
getTopCourtsByBookings(options) {
|
|
2437
|
+
return localVarFp.getTopCourtsByBookings(options).then((request) => request(axios, basePath));
|
|
2438
|
+
},
|
|
2117
2439
|
/**
|
|
2118
2440
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2119
2441
|
* @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -2143,6 +2465,36 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2143
2465
|
getAnalyticsBySport(requestParameters, options) {
|
|
2144
2466
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
2145
2467
|
}
|
|
2468
|
+
/**
|
|
2469
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2470
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2471
|
+
* @param {*} [options] Override http request option.
|
|
2472
|
+
* @throws {RequiredError}
|
|
2473
|
+
* @memberof ClubAnalyticsStaffApi
|
|
2474
|
+
*/
|
|
2475
|
+
getClubPlayerBookingsById(requestParameters, options) {
|
|
2476
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
2477
|
+
}
|
|
2478
|
+
/**
|
|
2479
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2480
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2481
|
+
* @param {*} [options] Override http request option.
|
|
2482
|
+
* @throws {RequiredError}
|
|
2483
|
+
* @memberof ClubAnalyticsStaffApi
|
|
2484
|
+
*/
|
|
2485
|
+
getClubPlayerById(requestParameters, options) {
|
|
2486
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2487
|
+
}
|
|
2488
|
+
/**
|
|
2489
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2490
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2491
|
+
* @param {*} [options] Override http request option.
|
|
2492
|
+
* @throws {RequiredError}
|
|
2493
|
+
* @memberof ClubAnalyticsStaffApi
|
|
2494
|
+
*/
|
|
2495
|
+
getClubPlayerStatisticsById(requestParameters, options) {
|
|
2496
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2497
|
+
}
|
|
2146
2498
|
/**
|
|
2147
2499
|
* Récupère la liste des joueurs du club
|
|
2148
2500
|
* @param {*} [options] Override http request option.
|
|
@@ -2209,6 +2561,24 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2209
2561
|
getNumberOfClubUsers(options) {
|
|
2210
2562
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
|
|
2211
2563
|
}
|
|
2564
|
+
/**
|
|
2565
|
+
* Calcule le taux de fidélisation des joueurs
|
|
2566
|
+
* @param {*} [options] Override http request option.
|
|
2567
|
+
* @throws {RequiredError}
|
|
2568
|
+
* @memberof ClubAnalyticsStaffApi
|
|
2569
|
+
*/
|
|
2570
|
+
getRetentionRate(options) {
|
|
2571
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getRetentionRate(options).then((request) => request(this.axios, this.basePath));
|
|
2572
|
+
}
|
|
2573
|
+
/**
|
|
2574
|
+
* Récupère le chiffre d\'affaires par sport
|
|
2575
|
+
* @param {*} [options] Override http request option.
|
|
2576
|
+
* @throws {RequiredError}
|
|
2577
|
+
* @memberof ClubAnalyticsStaffApi
|
|
2578
|
+
*/
|
|
2579
|
+
getRevenueBySport(options) {
|
|
2580
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getRevenueBySport(options).then((request) => request(this.axios, this.basePath));
|
|
2581
|
+
}
|
|
2212
2582
|
/**
|
|
2213
2583
|
* Récupère les 10 prochaines réservations
|
|
2214
2584
|
* @param {*} [options] Override http request option.
|
|
@@ -2218,6 +2588,15 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2218
2588
|
getTenNextBookings(options) {
|
|
2219
2589
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getTenNextBookings(options).then((request) => request(this.axios, this.basePath));
|
|
2220
2590
|
}
|
|
2591
|
+
/**
|
|
2592
|
+
* Classement des terrains les plus réservés
|
|
2593
|
+
* @param {*} [options] Override http request option.
|
|
2594
|
+
* @throws {RequiredError}
|
|
2595
|
+
* @memberof ClubAnalyticsStaffApi
|
|
2596
|
+
*/
|
|
2597
|
+
getTopCourtsByBookings(options) {
|
|
2598
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getTopCourtsByBookings(options).then((request) => request(this.axios, this.basePath));
|
|
2599
|
+
}
|
|
2221
2600
|
/**
|
|
2222
2601
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2223
2602
|
* @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -2453,82 +2832,307 @@ class ClubRolesManagerApi extends base_1.BaseAPI {
|
|
|
2453
2832
|
* @param {ClubRolesManagerApiDeleteClubRoleRequest} requestParameters Request parameters.
|
|
2454
2833
|
* @param {*} [options] Override http request option.
|
|
2455
2834
|
* @throws {RequiredError}
|
|
2456
|
-
* @memberof ClubRolesManagerApi
|
|
2835
|
+
* @memberof ClubRolesManagerApi
|
|
2836
|
+
*/
|
|
2837
|
+
deleteClubRole(requestParameters, options) {
|
|
2838
|
+
return (0, exports.ClubRolesManagerApiFp)(this.configuration).deleteClubRole(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2839
|
+
}
|
|
2840
|
+
/**
|
|
2841
|
+
* Met à jour un rôle de club
|
|
2842
|
+
* @param {ClubRolesManagerApiUpdateClubRoleRequest} requestParameters Request parameters.
|
|
2843
|
+
* @param {*} [options] Override http request option.
|
|
2844
|
+
* @throws {RequiredError}
|
|
2845
|
+
* @memberof ClubRolesManagerApi
|
|
2846
|
+
*/
|
|
2847
|
+
updateClubRole(requestParameters, options) {
|
|
2848
|
+
return (0, exports.ClubRolesManagerApiFp)(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
exports.ClubRolesManagerApi = ClubRolesManagerApi;
|
|
2852
|
+
/**
|
|
2853
|
+
* ClubRolesStaffApi - axios parameter creator
|
|
2854
|
+
* @export
|
|
2855
|
+
*/
|
|
2856
|
+
const ClubRolesStaffApiAxiosParamCreator = function (configuration) {
|
|
2857
|
+
return {
|
|
2858
|
+
/**
|
|
2859
|
+
* Récupère la liste des rôles d\'un club
|
|
2860
|
+
* @param {*} [options] Override http request option.
|
|
2861
|
+
* @throws {RequiredError}
|
|
2862
|
+
*/
|
|
2863
|
+
getAllClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2864
|
+
const localVarPath = `/api/club-roles`;
|
|
2865
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2866
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2867
|
+
let baseOptions;
|
|
2868
|
+
if (configuration) {
|
|
2869
|
+
baseOptions = configuration.baseOptions;
|
|
2870
|
+
}
|
|
2871
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2872
|
+
const localVarHeaderParameter = {};
|
|
2873
|
+
const localVarQueryParameter = {};
|
|
2874
|
+
// authentication bearerAuth required
|
|
2875
|
+
// http bearer authentication required
|
|
2876
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2877
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2878
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2879
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2880
|
+
return {
|
|
2881
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2882
|
+
options: localVarRequestOptions,
|
|
2883
|
+
};
|
|
2884
|
+
}),
|
|
2885
|
+
/**
|
|
2886
|
+
* Récupère un rôle de club par ID
|
|
2887
|
+
* @param {string} id
|
|
2888
|
+
* @param {*} [options] Override http request option.
|
|
2889
|
+
* @throws {RequiredError}
|
|
2890
|
+
*/
|
|
2891
|
+
getClubRoleById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2892
|
+
// verify required parameter 'id' is not null or undefined
|
|
2893
|
+
(0, common_1.assertParamExists)('getClubRoleById', 'id', id);
|
|
2894
|
+
const localVarPath = `/api/club-roles/{id}`
|
|
2895
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2896
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2897
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2898
|
+
let baseOptions;
|
|
2899
|
+
if (configuration) {
|
|
2900
|
+
baseOptions = configuration.baseOptions;
|
|
2901
|
+
}
|
|
2902
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2903
|
+
const localVarHeaderParameter = {};
|
|
2904
|
+
const localVarQueryParameter = {};
|
|
2905
|
+
// authentication bearerAuth required
|
|
2906
|
+
// http bearer authentication required
|
|
2907
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2908
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2909
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2910
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2911
|
+
return {
|
|
2912
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2913
|
+
options: localVarRequestOptions,
|
|
2914
|
+
};
|
|
2915
|
+
}),
|
|
2916
|
+
/**
|
|
2917
|
+
*
|
|
2918
|
+
* @param {*} [options] Override http request option.
|
|
2919
|
+
* @throws {RequiredError}
|
|
2920
|
+
*/
|
|
2921
|
+
getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2922
|
+
const localVarPath = `/api/club-roles/me/roles`;
|
|
2923
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2924
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2925
|
+
let baseOptions;
|
|
2926
|
+
if (configuration) {
|
|
2927
|
+
baseOptions = configuration.baseOptions;
|
|
2928
|
+
}
|
|
2929
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2930
|
+
const localVarHeaderParameter = {};
|
|
2931
|
+
const localVarQueryParameter = {};
|
|
2932
|
+
// authentication bearerAuth required
|
|
2933
|
+
// http bearer authentication required
|
|
2934
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2935
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2936
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2937
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2938
|
+
return {
|
|
2939
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2940
|
+
options: localVarRequestOptions,
|
|
2941
|
+
};
|
|
2942
|
+
}),
|
|
2943
|
+
};
|
|
2944
|
+
};
|
|
2945
|
+
exports.ClubRolesStaffApiAxiosParamCreator = ClubRolesStaffApiAxiosParamCreator;
|
|
2946
|
+
/**
|
|
2947
|
+
* ClubRolesStaffApi - functional programming interface
|
|
2948
|
+
* @export
|
|
2949
|
+
*/
|
|
2950
|
+
const ClubRolesStaffApiFp = function (configuration) {
|
|
2951
|
+
const localVarAxiosParamCreator = (0, exports.ClubRolesStaffApiAxiosParamCreator)(configuration);
|
|
2952
|
+
return {
|
|
2953
|
+
/**
|
|
2954
|
+
* Récupère la liste des rôles d\'un club
|
|
2955
|
+
* @param {*} [options] Override http request option.
|
|
2956
|
+
* @throws {RequiredError}
|
|
2957
|
+
*/
|
|
2958
|
+
getAllClubRoles(options) {
|
|
2959
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2960
|
+
var _a, _b, _c;
|
|
2961
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubRoles(options);
|
|
2962
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2963
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubRolesStaffApi.getAllClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2964
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2965
|
+
});
|
|
2966
|
+
},
|
|
2967
|
+
/**
|
|
2968
|
+
* Récupère un rôle de club par ID
|
|
2969
|
+
* @param {string} id
|
|
2970
|
+
* @param {*} [options] Override http request option.
|
|
2971
|
+
* @throws {RequiredError}
|
|
2972
|
+
*/
|
|
2973
|
+
getClubRoleById(id, options) {
|
|
2974
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2975
|
+
var _a, _b, _c;
|
|
2976
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoleById(id, options);
|
|
2977
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2978
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubRolesStaffApi.getClubRoleById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2979
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2980
|
+
});
|
|
2981
|
+
},
|
|
2982
|
+
/**
|
|
2983
|
+
*
|
|
2984
|
+
* @param {*} [options] Override http request option.
|
|
2985
|
+
* @throws {RequiredError}
|
|
2986
|
+
*/
|
|
2987
|
+
getUserRolesInClubs(options) {
|
|
2988
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2989
|
+
var _a, _b, _c;
|
|
2990
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
|
|
2991
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2992
|
+
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;
|
|
2993
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2994
|
+
});
|
|
2995
|
+
},
|
|
2996
|
+
};
|
|
2997
|
+
};
|
|
2998
|
+
exports.ClubRolesStaffApiFp = ClubRolesStaffApiFp;
|
|
2999
|
+
/**
|
|
3000
|
+
* ClubRolesStaffApi - factory interface
|
|
3001
|
+
* @export
|
|
3002
|
+
*/
|
|
3003
|
+
const ClubRolesStaffApiFactory = function (configuration, basePath, axios) {
|
|
3004
|
+
const localVarFp = (0, exports.ClubRolesStaffApiFp)(configuration);
|
|
3005
|
+
return {
|
|
3006
|
+
/**
|
|
3007
|
+
* Récupère la liste des rôles d\'un club
|
|
3008
|
+
* @param {*} [options] Override http request option.
|
|
3009
|
+
* @throws {RequiredError}
|
|
3010
|
+
*/
|
|
3011
|
+
getAllClubRoles(options) {
|
|
3012
|
+
return localVarFp.getAllClubRoles(options).then((request) => request(axios, basePath));
|
|
3013
|
+
},
|
|
3014
|
+
/**
|
|
3015
|
+
* Récupère un rôle de club par ID
|
|
3016
|
+
* @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
|
|
3017
|
+
* @param {*} [options] Override http request option.
|
|
3018
|
+
* @throws {RequiredError}
|
|
3019
|
+
*/
|
|
3020
|
+
getClubRoleById(requestParameters, options) {
|
|
3021
|
+
return localVarFp.getClubRoleById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
3022
|
+
},
|
|
3023
|
+
/**
|
|
3024
|
+
*
|
|
3025
|
+
* @param {*} [options] Override http request option.
|
|
3026
|
+
* @throws {RequiredError}
|
|
3027
|
+
*/
|
|
3028
|
+
getUserRolesInClubs(options) {
|
|
3029
|
+
return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
|
|
3030
|
+
},
|
|
3031
|
+
};
|
|
3032
|
+
};
|
|
3033
|
+
exports.ClubRolesStaffApiFactory = ClubRolesStaffApiFactory;
|
|
3034
|
+
/**
|
|
3035
|
+
* ClubRolesStaffApi - object-oriented interface
|
|
3036
|
+
* @export
|
|
3037
|
+
* @class ClubRolesStaffApi
|
|
3038
|
+
* @extends {BaseAPI}
|
|
3039
|
+
*/
|
|
3040
|
+
class ClubRolesStaffApi extends base_1.BaseAPI {
|
|
3041
|
+
/**
|
|
3042
|
+
* Récupère la liste des rôles d\'un club
|
|
3043
|
+
* @param {*} [options] Override http request option.
|
|
3044
|
+
* @throws {RequiredError}
|
|
3045
|
+
* @memberof ClubRolesStaffApi
|
|
3046
|
+
*/
|
|
3047
|
+
getAllClubRoles(options) {
|
|
3048
|
+
return (0, exports.ClubRolesStaffApiFp)(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
3049
|
+
}
|
|
3050
|
+
/**
|
|
3051
|
+
* Récupère un rôle de club par ID
|
|
3052
|
+
* @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
|
|
3053
|
+
* @param {*} [options] Override http request option.
|
|
3054
|
+
* @throws {RequiredError}
|
|
3055
|
+
* @memberof ClubRolesStaffApi
|
|
2457
3056
|
*/
|
|
2458
|
-
|
|
2459
|
-
return (0, exports.
|
|
3057
|
+
getClubRoleById(requestParameters, options) {
|
|
3058
|
+
return (0, exports.ClubRolesStaffApiFp)(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2460
3059
|
}
|
|
2461
3060
|
/**
|
|
2462
|
-
*
|
|
2463
|
-
* @param {ClubRolesManagerApiUpdateClubRoleRequest} requestParameters Request parameters.
|
|
3061
|
+
*
|
|
2464
3062
|
* @param {*} [options] Override http request option.
|
|
2465
3063
|
* @throws {RequiredError}
|
|
2466
|
-
* @memberof
|
|
3064
|
+
* @memberof ClubRolesStaffApi
|
|
2467
3065
|
*/
|
|
2468
|
-
|
|
2469
|
-
return (0, exports.
|
|
3066
|
+
getUserRolesInClubs(options) {
|
|
3067
|
+
return (0, exports.ClubRolesStaffApiFp)(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
|
|
2470
3068
|
}
|
|
2471
3069
|
}
|
|
2472
|
-
exports.
|
|
3070
|
+
exports.ClubRolesStaffApi = ClubRolesStaffApi;
|
|
2473
3071
|
/**
|
|
2474
|
-
*
|
|
3072
|
+
* ClubSettingsManagerApi - axios parameter creator
|
|
2475
3073
|
* @export
|
|
2476
3074
|
*/
|
|
2477
|
-
const
|
|
3075
|
+
const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
2478
3076
|
return {
|
|
2479
3077
|
/**
|
|
2480
|
-
*
|
|
3078
|
+
*
|
|
3079
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
2481
3080
|
* @param {*} [options] Override http request option.
|
|
2482
3081
|
* @throws {RequiredError}
|
|
2483
3082
|
*/
|
|
2484
|
-
|
|
2485
|
-
|
|
3083
|
+
updateClubGeneralSettings: (updateClubGeneralSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubGeneralSettingsRequest_1, ...args_1], void 0, function* (updateClubGeneralSettingsRequest, options = {}) {
|
|
3084
|
+
// verify required parameter 'updateClubGeneralSettingsRequest' is not null or undefined
|
|
3085
|
+
(0, common_1.assertParamExists)('updateClubGeneralSettings', 'updateClubGeneralSettingsRequest', updateClubGeneralSettingsRequest);
|
|
3086
|
+
const localVarPath = `/api/club-settings/settings/general`;
|
|
2486
3087
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2487
3088
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2488
3089
|
let baseOptions;
|
|
2489
3090
|
if (configuration) {
|
|
2490
3091
|
baseOptions = configuration.baseOptions;
|
|
2491
3092
|
}
|
|
2492
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3093
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2493
3094
|
const localVarHeaderParameter = {};
|
|
2494
3095
|
const localVarQueryParameter = {};
|
|
2495
3096
|
// authentication bearerAuth required
|
|
2496
3097
|
// http bearer authentication required
|
|
2497
3098
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3099
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2498
3100
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2499
3101
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2500
3102
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3103
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubGeneralSettingsRequest, localVarRequestOptions, configuration);
|
|
2501
3104
|
return {
|
|
2502
3105
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2503
3106
|
options: localVarRequestOptions,
|
|
2504
3107
|
};
|
|
2505
3108
|
}),
|
|
2506
3109
|
/**
|
|
2507
|
-
*
|
|
2508
|
-
* @param {
|
|
3110
|
+
*
|
|
3111
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
2509
3112
|
* @param {*} [options] Override http request option.
|
|
2510
3113
|
* @throws {RequiredError}
|
|
2511
3114
|
*/
|
|
2512
|
-
|
|
2513
|
-
// verify required parameter '
|
|
2514
|
-
(0, common_1.assertParamExists)('
|
|
2515
|
-
const localVarPath = `/api/club-
|
|
2516
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3115
|
+
updateHoursSettings: (updateClubHoursSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubHoursSettingsRequest_1, ...args_1], void 0, function* (updateClubHoursSettingsRequest, options = {}) {
|
|
3116
|
+
// verify required parameter 'updateClubHoursSettingsRequest' is not null or undefined
|
|
3117
|
+
(0, common_1.assertParamExists)('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
|
|
3118
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
2517
3119
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2518
3120
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2519
3121
|
let baseOptions;
|
|
2520
3122
|
if (configuration) {
|
|
2521
3123
|
baseOptions = configuration.baseOptions;
|
|
2522
3124
|
}
|
|
2523
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3125
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2524
3126
|
const localVarHeaderParameter = {};
|
|
2525
3127
|
const localVarQueryParameter = {};
|
|
2526
3128
|
// authentication bearerAuth required
|
|
2527
3129
|
// http bearer authentication required
|
|
2528
3130
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3131
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2529
3132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2530
3133
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2531
3134
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3135
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
|
|
2532
3136
|
return {
|
|
2533
3137
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2534
3138
|
options: localVarRequestOptions,
|
|
@@ -2536,26 +3140,63 @@ const ClubRolesStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2536
3140
|
}),
|
|
2537
3141
|
/**
|
|
2538
3142
|
*
|
|
3143
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
2539
3144
|
* @param {*} [options] Override http request option.
|
|
2540
3145
|
* @throws {RequiredError}
|
|
2541
3146
|
*/
|
|
2542
|
-
|
|
2543
|
-
|
|
3147
|
+
updatePresentationSettings: (clubPresentationSettingsResponse_1, ...args_1) => __awaiter(this, [clubPresentationSettingsResponse_1, ...args_1], void 0, function* (clubPresentationSettingsResponse, options = {}) {
|
|
3148
|
+
// verify required parameter 'clubPresentationSettingsResponse' is not null or undefined
|
|
3149
|
+
(0, common_1.assertParamExists)('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse);
|
|
3150
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
2544
3151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2545
3152
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2546
3153
|
let baseOptions;
|
|
2547
3154
|
if (configuration) {
|
|
2548
3155
|
baseOptions = configuration.baseOptions;
|
|
2549
3156
|
}
|
|
2550
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3157
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3158
|
+
const localVarHeaderParameter = {};
|
|
3159
|
+
const localVarQueryParameter = {};
|
|
3160
|
+
// authentication bearerAuth required
|
|
3161
|
+
// http bearer authentication required
|
|
3162
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3163
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3164
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3165
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3166
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3167
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clubPresentationSettingsResponse, localVarRequestOptions, configuration);
|
|
3168
|
+
return {
|
|
3169
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3170
|
+
options: localVarRequestOptions,
|
|
3171
|
+
};
|
|
3172
|
+
}),
|
|
3173
|
+
/**
|
|
3174
|
+
*
|
|
3175
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
3176
|
+
* @param {*} [options] Override http request option.
|
|
3177
|
+
* @throws {RequiredError}
|
|
3178
|
+
*/
|
|
3179
|
+
updateReservationSettings: (updateClubReservationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubReservationSettingsRequest_1, ...args_1], void 0, function* (updateClubReservationSettingsRequest, options = {}) {
|
|
3180
|
+
// verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
|
|
3181
|
+
(0, common_1.assertParamExists)('updateReservationSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest);
|
|
3182
|
+
const localVarPath = `/api/club-settings/reservation`;
|
|
3183
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3184
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3185
|
+
let baseOptions;
|
|
3186
|
+
if (configuration) {
|
|
3187
|
+
baseOptions = configuration.baseOptions;
|
|
3188
|
+
}
|
|
3189
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2551
3190
|
const localVarHeaderParameter = {};
|
|
2552
3191
|
const localVarQueryParameter = {};
|
|
2553
3192
|
// authentication bearerAuth required
|
|
2554
3193
|
// http bearer authentication required
|
|
2555
3194
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3195
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2556
3196
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2557
3197
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2558
3198
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3199
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
|
|
2559
3200
|
return {
|
|
2560
3201
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2561
3202
|
options: localVarRequestOptions,
|
|
@@ -2563,188 +3204,219 @@ const ClubRolesStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2563
3204
|
}),
|
|
2564
3205
|
};
|
|
2565
3206
|
};
|
|
2566
|
-
exports.
|
|
3207
|
+
exports.ClubSettingsManagerApiAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator;
|
|
2567
3208
|
/**
|
|
2568
|
-
*
|
|
3209
|
+
* ClubSettingsManagerApi - functional programming interface
|
|
2569
3210
|
* @export
|
|
2570
3211
|
*/
|
|
2571
|
-
const
|
|
2572
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
3212
|
+
const ClubSettingsManagerApiFp = function (configuration) {
|
|
3213
|
+
const localVarAxiosParamCreator = (0, exports.ClubSettingsManagerApiAxiosParamCreator)(configuration);
|
|
2573
3214
|
return {
|
|
2574
3215
|
/**
|
|
2575
|
-
*
|
|
3216
|
+
*
|
|
3217
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
2576
3218
|
* @param {*} [options] Override http request option.
|
|
2577
3219
|
* @throws {RequiredError}
|
|
2578
3220
|
*/
|
|
2579
|
-
|
|
3221
|
+
updateClubGeneralSettings(updateClubGeneralSettingsRequest, options) {
|
|
2580
3222
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2581
3223
|
var _a, _b, _c;
|
|
2582
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3224
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
|
|
2583
3225
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2584
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
3226
|
+
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;
|
|
2585
3227
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2586
3228
|
});
|
|
2587
3229
|
},
|
|
2588
3230
|
/**
|
|
2589
|
-
*
|
|
2590
|
-
* @param {
|
|
3231
|
+
*
|
|
3232
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
2591
3233
|
* @param {*} [options] Override http request option.
|
|
2592
3234
|
* @throws {RequiredError}
|
|
2593
3235
|
*/
|
|
2594
|
-
|
|
3236
|
+
updateHoursSettings(updateClubHoursSettingsRequest, options) {
|
|
2595
3237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2596
3238
|
var _a, _b, _c;
|
|
2597
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3239
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
|
|
2598
3240
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2599
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
3241
|
+
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;
|
|
2600
3242
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2601
3243
|
});
|
|
2602
3244
|
},
|
|
2603
3245
|
/**
|
|
2604
3246
|
*
|
|
3247
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
2605
3248
|
* @param {*} [options] Override http request option.
|
|
2606
3249
|
* @throws {RequiredError}
|
|
2607
3250
|
*/
|
|
2608
|
-
|
|
3251
|
+
updatePresentationSettings(clubPresentationSettingsResponse, options) {
|
|
2609
3252
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2610
3253
|
var _a, _b, _c;
|
|
2611
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3254
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
|
|
2612
3255
|
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['
|
|
3256
|
+
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;
|
|
3257
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3258
|
+
});
|
|
3259
|
+
},
|
|
3260
|
+
/**
|
|
3261
|
+
*
|
|
3262
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
3263
|
+
* @param {*} [options] Override http request option.
|
|
3264
|
+
* @throws {RequiredError}
|
|
3265
|
+
*/
|
|
3266
|
+
updateReservationSettings(updateClubReservationSettingsRequest, options) {
|
|
3267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3268
|
+
var _a, _b, _c;
|
|
3269
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
|
|
3270
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3271
|
+
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
3272
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2615
3273
|
});
|
|
2616
3274
|
},
|
|
2617
3275
|
};
|
|
2618
3276
|
};
|
|
2619
|
-
exports.
|
|
3277
|
+
exports.ClubSettingsManagerApiFp = ClubSettingsManagerApiFp;
|
|
2620
3278
|
/**
|
|
2621
|
-
*
|
|
3279
|
+
* ClubSettingsManagerApi - factory interface
|
|
2622
3280
|
* @export
|
|
2623
3281
|
*/
|
|
2624
|
-
const
|
|
2625
|
-
const localVarFp = (0, exports.
|
|
3282
|
+
const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
|
|
3283
|
+
const localVarFp = (0, exports.ClubSettingsManagerApiFp)(configuration);
|
|
2626
3284
|
return {
|
|
2627
3285
|
/**
|
|
2628
|
-
*
|
|
3286
|
+
*
|
|
3287
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
2629
3288
|
* @param {*} [options] Override http request option.
|
|
2630
3289
|
* @throws {RequiredError}
|
|
2631
3290
|
*/
|
|
2632
|
-
|
|
2633
|
-
return localVarFp.
|
|
3291
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
3292
|
+
return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2634
3293
|
},
|
|
2635
3294
|
/**
|
|
2636
|
-
*
|
|
2637
|
-
* @param {
|
|
3295
|
+
*
|
|
3296
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
2638
3297
|
* @param {*} [options] Override http request option.
|
|
2639
3298
|
* @throws {RequiredError}
|
|
2640
3299
|
*/
|
|
2641
|
-
|
|
2642
|
-
return localVarFp.
|
|
3300
|
+
updateHoursSettings(requestParameters, options) {
|
|
3301
|
+
return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2643
3302
|
},
|
|
2644
3303
|
/**
|
|
2645
3304
|
*
|
|
3305
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
2646
3306
|
* @param {*} [options] Override http request option.
|
|
2647
3307
|
* @throws {RequiredError}
|
|
2648
3308
|
*/
|
|
2649
|
-
|
|
2650
|
-
return localVarFp.
|
|
3309
|
+
updatePresentationSettings(requestParameters, options) {
|
|
3310
|
+
return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
|
|
3311
|
+
},
|
|
3312
|
+
/**
|
|
3313
|
+
*
|
|
3314
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
3315
|
+
* @param {*} [options] Override http request option.
|
|
3316
|
+
* @throws {RequiredError}
|
|
3317
|
+
*/
|
|
3318
|
+
updateReservationSettings(requestParameters, options) {
|
|
3319
|
+
return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2651
3320
|
},
|
|
2652
3321
|
};
|
|
2653
3322
|
};
|
|
2654
|
-
exports.
|
|
3323
|
+
exports.ClubSettingsManagerApiFactory = ClubSettingsManagerApiFactory;
|
|
2655
3324
|
/**
|
|
2656
|
-
*
|
|
3325
|
+
* ClubSettingsManagerApi - object-oriented interface
|
|
2657
3326
|
* @export
|
|
2658
|
-
* @class
|
|
3327
|
+
* @class ClubSettingsManagerApi
|
|
2659
3328
|
* @extends {BaseAPI}
|
|
2660
3329
|
*/
|
|
2661
|
-
class
|
|
3330
|
+
class ClubSettingsManagerApi extends base_1.BaseAPI {
|
|
2662
3331
|
/**
|
|
2663
|
-
*
|
|
3332
|
+
*
|
|
3333
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
2664
3334
|
* @param {*} [options] Override http request option.
|
|
2665
3335
|
* @throws {RequiredError}
|
|
2666
|
-
* @memberof
|
|
3336
|
+
* @memberof ClubSettingsManagerApi
|
|
2667
3337
|
*/
|
|
2668
|
-
|
|
2669
|
-
return (0, exports.
|
|
3338
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
3339
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2670
3340
|
}
|
|
2671
3341
|
/**
|
|
2672
|
-
*
|
|
2673
|
-
* @param {
|
|
3342
|
+
*
|
|
3343
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
2674
3344
|
* @param {*} [options] Override http request option.
|
|
2675
3345
|
* @throws {RequiredError}
|
|
2676
|
-
* @memberof
|
|
3346
|
+
* @memberof ClubSettingsManagerApi
|
|
2677
3347
|
*/
|
|
2678
|
-
|
|
2679
|
-
return (0, exports.
|
|
3348
|
+
updateHoursSettings(requestParameters, options) {
|
|
3349
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2680
3350
|
}
|
|
2681
3351
|
/**
|
|
2682
3352
|
*
|
|
3353
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
2683
3354
|
* @param {*} [options] Override http request option.
|
|
2684
3355
|
* @throws {RequiredError}
|
|
2685
|
-
* @memberof
|
|
3356
|
+
* @memberof ClubSettingsManagerApi
|
|
2686
3357
|
*/
|
|
2687
|
-
|
|
2688
|
-
return (0, exports.
|
|
3358
|
+
updatePresentationSettings(requestParameters, options) {
|
|
3359
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
|
|
3360
|
+
}
|
|
3361
|
+
/**
|
|
3362
|
+
*
|
|
3363
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
3364
|
+
* @param {*} [options] Override http request option.
|
|
3365
|
+
* @throws {RequiredError}
|
|
3366
|
+
* @memberof ClubSettingsManagerApi
|
|
3367
|
+
*/
|
|
3368
|
+
updateReservationSettings(requestParameters, options) {
|
|
3369
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2689
3370
|
}
|
|
2690
3371
|
}
|
|
2691
|
-
exports.
|
|
3372
|
+
exports.ClubSettingsManagerApi = ClubSettingsManagerApi;
|
|
2692
3373
|
/**
|
|
2693
|
-
*
|
|
3374
|
+
* ClubSettingsStaffApi - axios parameter creator
|
|
2694
3375
|
* @export
|
|
2695
3376
|
*/
|
|
2696
|
-
const
|
|
3377
|
+
const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
|
|
2697
3378
|
return {
|
|
2698
3379
|
/**
|
|
2699
|
-
*
|
|
2700
|
-
* @param {string} clubId
|
|
2701
|
-
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
3380
|
+
*
|
|
2702
3381
|
* @param {*} [options] Override http request option.
|
|
2703
3382
|
* @throws {RequiredError}
|
|
2704
3383
|
*/
|
|
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)));
|
|
3384
|
+
getClubGeneralSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3385
|
+
const localVarPath = `/api/club-settings/settings/general`;
|
|
2712
3386
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2713
3387
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2714
3388
|
let baseOptions;
|
|
2715
3389
|
if (configuration) {
|
|
2716
3390
|
baseOptions = configuration.baseOptions;
|
|
2717
3391
|
}
|
|
2718
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3392
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2719
3393
|
const localVarHeaderParameter = {};
|
|
2720
3394
|
const localVarQueryParameter = {};
|
|
2721
3395
|
// authentication bearerAuth required
|
|
2722
3396
|
// http bearer authentication required
|
|
2723
3397
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2724
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2725
3398
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2726
3399
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2727
3400
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2728
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2729
3401
|
return {
|
|
2730
3402
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2731
3403
|
options: localVarRequestOptions,
|
|
2732
3404
|
};
|
|
2733
3405
|
}),
|
|
2734
3406
|
/**
|
|
2735
|
-
*
|
|
3407
|
+
*
|
|
2736
3408
|
* @param {*} [options] Override http request option.
|
|
2737
3409
|
* @throws {RequiredError}
|
|
2738
3410
|
*/
|
|
2739
|
-
|
|
2740
|
-
const localVarPath = `/api/club-settings`;
|
|
3411
|
+
getHoursSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3412
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
2741
3413
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2742
3414
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2743
3415
|
let baseOptions;
|
|
2744
3416
|
if (configuration) {
|
|
2745
3417
|
baseOptions = configuration.baseOptions;
|
|
2746
3418
|
}
|
|
2747
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3419
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2748
3420
|
const localVarHeaderParameter = {};
|
|
2749
3421
|
const localVarQueryParameter = {};
|
|
2750
3422
|
// authentication bearerAuth required
|
|
@@ -2759,12 +3431,12 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
2759
3431
|
};
|
|
2760
3432
|
}),
|
|
2761
3433
|
/**
|
|
2762
|
-
*
|
|
3434
|
+
*
|
|
2763
3435
|
* @param {*} [options] Override http request option.
|
|
2764
3436
|
* @throws {RequiredError}
|
|
2765
3437
|
*/
|
|
2766
|
-
|
|
2767
|
-
const localVarPath = `/api/club-settings`;
|
|
3438
|
+
getPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3439
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
2768
3440
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2769
3441
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2770
3442
|
let baseOptions;
|
|
@@ -2786,32 +3458,27 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
2786
3458
|
};
|
|
2787
3459
|
}),
|
|
2788
3460
|
/**
|
|
2789
|
-
*
|
|
2790
|
-
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
3461
|
+
*
|
|
2791
3462
|
* @param {*} [options] Override http request option.
|
|
2792
3463
|
* @throws {RequiredError}
|
|
2793
3464
|
*/
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
(0, common_1.assertParamExists)('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
|
|
2797
|
-
const localVarPath = `/api/club-settings`;
|
|
3465
|
+
getReservationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3466
|
+
const localVarPath = `/api/club-settings/reservation`;
|
|
2798
3467
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2799
3468
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2800
3469
|
let baseOptions;
|
|
2801
3470
|
if (configuration) {
|
|
2802
3471
|
baseOptions = configuration.baseOptions;
|
|
2803
3472
|
}
|
|
2804
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3473
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2805
3474
|
const localVarHeaderParameter = {};
|
|
2806
3475
|
const localVarQueryParameter = {};
|
|
2807
3476
|
// authentication bearerAuth required
|
|
2808
3477
|
// http bearer authentication required
|
|
2809
3478
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2810
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2811
3479
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2812
3480
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2813
3481
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2814
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2815
3482
|
return {
|
|
2816
3483
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2817
3484
|
options: localVarRequestOptions,
|
|
@@ -2819,167 +3486,160 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
2819
3486
|
}),
|
|
2820
3487
|
};
|
|
2821
3488
|
};
|
|
2822
|
-
exports.
|
|
3489
|
+
exports.ClubSettingsStaffApiAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator;
|
|
2823
3490
|
/**
|
|
2824
|
-
*
|
|
3491
|
+
* ClubSettingsStaffApi - functional programming interface
|
|
2825
3492
|
* @export
|
|
2826
3493
|
*/
|
|
2827
|
-
const
|
|
2828
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
3494
|
+
const ClubSettingsStaffApiFp = function (configuration) {
|
|
3495
|
+
const localVarAxiosParamCreator = (0, exports.ClubSettingsStaffApiAxiosParamCreator)(configuration);
|
|
2829
3496
|
return {
|
|
2830
3497
|
/**
|
|
2831
|
-
*
|
|
2832
|
-
* @param {string} clubId
|
|
2833
|
-
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
3498
|
+
*
|
|
2834
3499
|
* @param {*} [options] Override http request option.
|
|
2835
3500
|
* @throws {RequiredError}
|
|
2836
3501
|
*/
|
|
2837
|
-
|
|
3502
|
+
getClubGeneralSettings(options) {
|
|
2838
3503
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2839
3504
|
var _a, _b, _c;
|
|
2840
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3505
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubGeneralSettings(options);
|
|
2841
3506
|
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['
|
|
3507
|
+
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
3508
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2844
3509
|
});
|
|
2845
3510
|
},
|
|
2846
3511
|
/**
|
|
2847
|
-
*
|
|
3512
|
+
*
|
|
2848
3513
|
* @param {*} [options] Override http request option.
|
|
2849
3514
|
* @throws {RequiredError}
|
|
2850
3515
|
*/
|
|
2851
|
-
|
|
3516
|
+
getHoursSettings(options) {
|
|
2852
3517
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2853
3518
|
var _a, _b, _c;
|
|
2854
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3519
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getHoursSettings(options);
|
|
2855
3520
|
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['
|
|
3521
|
+
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
3522
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2858
3523
|
});
|
|
2859
3524
|
},
|
|
2860
3525
|
/**
|
|
2861
|
-
*
|
|
3526
|
+
*
|
|
2862
3527
|
* @param {*} [options] Override http request option.
|
|
2863
3528
|
* @throws {RequiredError}
|
|
2864
3529
|
*/
|
|
2865
|
-
|
|
3530
|
+
getPresentationSettings(options) {
|
|
2866
3531
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2867
3532
|
var _a, _b, _c;
|
|
2868
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3533
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPresentationSettings(options);
|
|
2869
3534
|
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['
|
|
3535
|
+
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
3536
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2872
3537
|
});
|
|
2873
3538
|
},
|
|
2874
3539
|
/**
|
|
2875
|
-
*
|
|
2876
|
-
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
3540
|
+
*
|
|
2877
3541
|
* @param {*} [options] Override http request option.
|
|
2878
3542
|
* @throws {RequiredError}
|
|
2879
3543
|
*/
|
|
2880
|
-
|
|
3544
|
+
getReservationSettings(options) {
|
|
2881
3545
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2882
3546
|
var _a, _b, _c;
|
|
2883
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3547
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReservationSettings(options);
|
|
2884
3548
|
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['
|
|
3549
|
+
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
3550
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2887
3551
|
});
|
|
2888
3552
|
},
|
|
2889
3553
|
};
|
|
2890
3554
|
};
|
|
2891
|
-
exports.
|
|
3555
|
+
exports.ClubSettingsStaffApiFp = ClubSettingsStaffApiFp;
|
|
2892
3556
|
/**
|
|
2893
|
-
*
|
|
3557
|
+
* ClubSettingsStaffApi - factory interface
|
|
2894
3558
|
* @export
|
|
2895
3559
|
*/
|
|
2896
|
-
const
|
|
2897
|
-
const localVarFp = (0, exports.
|
|
3560
|
+
const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
3561
|
+
const localVarFp = (0, exports.ClubSettingsStaffApiFp)(configuration);
|
|
2898
3562
|
return {
|
|
2899
3563
|
/**
|
|
2900
|
-
*
|
|
2901
|
-
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
3564
|
+
*
|
|
2902
3565
|
* @param {*} [options] Override http request option.
|
|
2903
3566
|
* @throws {RequiredError}
|
|
2904
3567
|
*/
|
|
2905
|
-
|
|
2906
|
-
return localVarFp.
|
|
3568
|
+
getClubGeneralSettings(options) {
|
|
3569
|
+
return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
|
|
2907
3570
|
},
|
|
2908
3571
|
/**
|
|
2909
|
-
*
|
|
3572
|
+
*
|
|
2910
3573
|
* @param {*} [options] Override http request option.
|
|
2911
3574
|
* @throws {RequiredError}
|
|
2912
3575
|
*/
|
|
2913
|
-
|
|
2914
|
-
return localVarFp.
|
|
3576
|
+
getHoursSettings(options) {
|
|
3577
|
+
return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
|
|
2915
3578
|
},
|
|
2916
3579
|
/**
|
|
2917
|
-
*
|
|
3580
|
+
*
|
|
2918
3581
|
* @param {*} [options] Override http request option.
|
|
2919
3582
|
* @throws {RequiredError}
|
|
2920
3583
|
*/
|
|
2921
|
-
|
|
2922
|
-
return localVarFp.
|
|
3584
|
+
getPresentationSettings(options) {
|
|
3585
|
+
return localVarFp.getPresentationSettings(options).then((request) => request(axios, basePath));
|
|
2923
3586
|
},
|
|
2924
3587
|
/**
|
|
2925
|
-
*
|
|
2926
|
-
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3588
|
+
*
|
|
2927
3589
|
* @param {*} [options] Override http request option.
|
|
2928
3590
|
* @throws {RequiredError}
|
|
2929
3591
|
*/
|
|
2930
|
-
|
|
2931
|
-
return localVarFp.
|
|
3592
|
+
getReservationSettings(options) {
|
|
3593
|
+
return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
|
|
2932
3594
|
},
|
|
2933
3595
|
};
|
|
2934
3596
|
};
|
|
2935
|
-
exports.
|
|
3597
|
+
exports.ClubSettingsStaffApiFactory = ClubSettingsStaffApiFactory;
|
|
2936
3598
|
/**
|
|
2937
|
-
*
|
|
3599
|
+
* ClubSettingsStaffApi - object-oriented interface
|
|
2938
3600
|
* @export
|
|
2939
|
-
* @class
|
|
3601
|
+
* @class ClubSettingsStaffApi
|
|
2940
3602
|
* @extends {BaseAPI}
|
|
2941
3603
|
*/
|
|
2942
|
-
class
|
|
3604
|
+
class ClubSettingsStaffApi extends base_1.BaseAPI {
|
|
2943
3605
|
/**
|
|
2944
|
-
*
|
|
2945
|
-
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
3606
|
+
*
|
|
2946
3607
|
* @param {*} [options] Override http request option.
|
|
2947
3608
|
* @throws {RequiredError}
|
|
2948
|
-
* @memberof
|
|
3609
|
+
* @memberof ClubSettingsStaffApi
|
|
2949
3610
|
*/
|
|
2950
|
-
|
|
2951
|
-
return (0, exports.
|
|
3611
|
+
getClubGeneralSettings(options) {
|
|
3612
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
|
|
2952
3613
|
}
|
|
2953
3614
|
/**
|
|
2954
|
-
*
|
|
3615
|
+
*
|
|
2955
3616
|
* @param {*} [options] Override http request option.
|
|
2956
3617
|
* @throws {RequiredError}
|
|
2957
|
-
* @memberof
|
|
3618
|
+
* @memberof ClubSettingsStaffApi
|
|
2958
3619
|
*/
|
|
2959
|
-
|
|
2960
|
-
return (0, exports.
|
|
3620
|
+
getHoursSettings(options) {
|
|
3621
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
|
|
2961
3622
|
}
|
|
2962
3623
|
/**
|
|
2963
|
-
*
|
|
3624
|
+
*
|
|
2964
3625
|
* @param {*} [options] Override http request option.
|
|
2965
3626
|
* @throws {RequiredError}
|
|
2966
|
-
* @memberof
|
|
3627
|
+
* @memberof ClubSettingsStaffApi
|
|
2967
3628
|
*/
|
|
2968
|
-
|
|
2969
|
-
return (0, exports.
|
|
3629
|
+
getPresentationSettings(options) {
|
|
3630
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
2970
3631
|
}
|
|
2971
3632
|
/**
|
|
2972
|
-
*
|
|
2973
|
-
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3633
|
+
*
|
|
2974
3634
|
* @param {*} [options] Override http request option.
|
|
2975
3635
|
* @throws {RequiredError}
|
|
2976
|
-
* @memberof
|
|
3636
|
+
* @memberof ClubSettingsStaffApi
|
|
2977
3637
|
*/
|
|
2978
|
-
|
|
2979
|
-
return (0, exports.
|
|
3638
|
+
getReservationSettings(options) {
|
|
3639
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
2980
3640
|
}
|
|
2981
3641
|
}
|
|
2982
|
-
exports.
|
|
3642
|
+
exports.ClubSettingsStaffApi = ClubSettingsStaffApi;
|
|
2983
3643
|
/**
|
|
2984
3644
|
* ClubsApi - axios parameter creator
|
|
2985
3645
|
* @export
|
|
@@ -3751,64 +4411,28 @@ class ClubsApi extends base_1.BaseAPI {
|
|
|
3751
4411
|
* @param {*} [options] Override http request option.
|
|
3752
4412
|
* @throws {RequiredError}
|
|
3753
4413
|
* @memberof ClubsApi
|
|
3754
|
-
*/
|
|
3755
|
-
getSportsByClubById(requestParameters, options) {
|
|
3756
|
-
return (0, exports.ClubsApiFp)(this.configuration).getSportsByClubById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
3757
|
-
}
|
|
3758
|
-
}
|
|
3759
|
-
exports.ClubsApi = ClubsApi;
|
|
3760
|
-
/**
|
|
3761
|
-
* ClubsManagerApi - axios parameter creator
|
|
3762
|
-
* @export
|
|
3763
|
-
*/
|
|
3764
|
-
const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
3765
|
-
return {
|
|
3766
|
-
/**
|
|
3767
|
-
* Ajoute un membre à un club
|
|
3768
|
-
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
3769
|
-
* @param {*} [options] Override http request option.
|
|
3770
|
-
* @throws {RequiredError}
|
|
3771
|
-
*/
|
|
3772
|
-
addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
|
|
3773
|
-
// verify required parameter 'addClubMemberRequest' is not null or undefined
|
|
3774
|
-
(0, common_1.assertParamExists)('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
3775
|
-
const localVarPath = `/api/clubs/members`;
|
|
3776
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3777
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3778
|
-
let baseOptions;
|
|
3779
|
-
if (configuration) {
|
|
3780
|
-
baseOptions = configuration.baseOptions;
|
|
3781
|
-
}
|
|
3782
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3783
|
-
const localVarHeaderParameter = {};
|
|
3784
|
-
const localVarQueryParameter = {};
|
|
3785
|
-
// authentication bearerAuth required
|
|
3786
|
-
// http bearer authentication required
|
|
3787
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3788
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3789
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3790
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3791
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3792
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
3793
|
-
return {
|
|
3794
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3795
|
-
options: localVarRequestOptions,
|
|
3796
|
-
};
|
|
3797
|
-
}),
|
|
4414
|
+
*/
|
|
4415
|
+
getSportsByClubById(requestParameters, options) {
|
|
4416
|
+
return (0, exports.ClubsApiFp)(this.configuration).getSportsByClubById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
4417
|
+
}
|
|
4418
|
+
}
|
|
4419
|
+
exports.ClubsApi = ClubsApi;
|
|
4420
|
+
/**
|
|
4421
|
+
* ClubsManagerApi - axios parameter creator
|
|
4422
|
+
* @export
|
|
4423
|
+
*/
|
|
4424
|
+
const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
4425
|
+
return {
|
|
3798
4426
|
/**
|
|
3799
|
-
*
|
|
3800
|
-
* @param {
|
|
3801
|
-
* @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
|
|
4427
|
+
* Ajoute un membre à un club
|
|
4428
|
+
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
3802
4429
|
* @param {*} [options] Override http request option.
|
|
3803
4430
|
* @throws {RequiredError}
|
|
3804
4431
|
*/
|
|
3805
|
-
|
|
3806
|
-
// verify required parameter '
|
|
3807
|
-
(0, common_1.assertParamExists)('
|
|
3808
|
-
|
|
3809
|
-
(0, common_1.assertParamExists)('addCreditsToCustomer', 'addCreditsToCustomerRequest', addCreditsToCustomerRequest);
|
|
3810
|
-
const localVarPath = `/api/clubs/customers/{userId}/credits`
|
|
3811
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
4432
|
+
addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
|
|
4433
|
+
// verify required parameter 'addClubMemberRequest' is not null or undefined
|
|
4434
|
+
(0, common_1.assertParamExists)('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
4435
|
+
const localVarPath = `/api/clubs/members`;
|
|
3812
4436
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3813
4437
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3814
4438
|
let baseOptions;
|
|
@@ -3825,7 +4449,7 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3825
4449
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3826
4450
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3827
4451
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3828
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
4452
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
3829
4453
|
return {
|
|
3830
4454
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3831
4455
|
options: localVarRequestOptions,
|
|
@@ -4307,6 +4931,38 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4307
4931
|
options: localVarRequestOptions,
|
|
4308
4932
|
};
|
|
4309
4933
|
}),
|
|
4934
|
+
/**
|
|
4935
|
+
*
|
|
4936
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
4937
|
+
* @param {*} [options] Override http request option.
|
|
4938
|
+
* @throws {RequiredError}
|
|
4939
|
+
*/
|
|
4940
|
+
updateClubPresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
|
|
4941
|
+
// verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
|
|
4942
|
+
(0, common_1.assertParamExists)('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
|
|
4943
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
4944
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4945
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4946
|
+
let baseOptions;
|
|
4947
|
+
if (configuration) {
|
|
4948
|
+
baseOptions = configuration.baseOptions;
|
|
4949
|
+
}
|
|
4950
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4951
|
+
const localVarHeaderParameter = {};
|
|
4952
|
+
const localVarQueryParameter = {};
|
|
4953
|
+
// authentication bearerAuth required
|
|
4954
|
+
// http bearer authentication required
|
|
4955
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4956
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4957
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4958
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4959
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4960
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
|
|
4961
|
+
return {
|
|
4962
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4963
|
+
options: localVarRequestOptions,
|
|
4964
|
+
};
|
|
4965
|
+
}),
|
|
4310
4966
|
/**
|
|
4311
4967
|
*
|
|
4312
4968
|
* @param {string} courtId
|
|
@@ -4404,22 +5060,6 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
4404
5060
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4405
5061
|
});
|
|
4406
5062
|
},
|
|
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
5063
|
/**
|
|
4424
5064
|
*
|
|
4425
5065
|
* @param {string} priceId
|
|
@@ -4646,6 +5286,21 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
4646
5286
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4647
5287
|
});
|
|
4648
5288
|
},
|
|
5289
|
+
/**
|
|
5290
|
+
*
|
|
5291
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
5292
|
+
* @param {*} [options] Override http request option.
|
|
5293
|
+
* @throws {RequiredError}
|
|
5294
|
+
*/
|
|
5295
|
+
updateClubPresentationSettings(updateClubPresentationSettingsRequest, options) {
|
|
5296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5297
|
+
var _a, _b, _c;
|
|
5298
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
|
|
5299
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5300
|
+
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;
|
|
5301
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5302
|
+
});
|
|
5303
|
+
},
|
|
4649
5304
|
/**
|
|
4650
5305
|
*
|
|
4651
5306
|
* @param {string} courtId
|
|
@@ -4697,15 +5352,6 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
4697
5352
|
addClubMember(requestParameters, options) {
|
|
4698
5353
|
return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
4699
5354
|
},
|
|
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
5355
|
/**
|
|
4710
5356
|
*
|
|
4711
5357
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -4840,6 +5486,15 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
4840
5486
|
updateClubInfos(requestParameters, options) {
|
|
4841
5487
|
return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
4842
5488
|
},
|
|
5489
|
+
/**
|
|
5490
|
+
*
|
|
5491
|
+
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
5492
|
+
* @param {*} [options] Override http request option.
|
|
5493
|
+
* @throws {RequiredError}
|
|
5494
|
+
*/
|
|
5495
|
+
updateClubPresentationSettings(requestParameters, options) {
|
|
5496
|
+
return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
5497
|
+
},
|
|
4843
5498
|
/**
|
|
4844
5499
|
*
|
|
4845
5500
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -4878,16 +5533,6 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
4878
5533
|
addClubMember(requestParameters, options) {
|
|
4879
5534
|
return (0, exports.ClubsManagerApiFp)(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4880
5535
|
}
|
|
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
5536
|
/**
|
|
4892
5537
|
*
|
|
4893
5538
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -5037,6 +5682,16 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
5037
5682
|
updateClubInfos(requestParameters, options) {
|
|
5038
5683
|
return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
5039
5684
|
}
|
|
5685
|
+
/**
|
|
5686
|
+
*
|
|
5687
|
+
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
5688
|
+
* @param {*} [options] Override http request option.
|
|
5689
|
+
* @throws {RequiredError}
|
|
5690
|
+
* @memberof ClubsManagerApi
|
|
5691
|
+
*/
|
|
5692
|
+
updateClubPresentationSettings(requestParameters, options) {
|
|
5693
|
+
return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5694
|
+
}
|
|
5040
5695
|
/**
|
|
5041
5696
|
*
|
|
5042
5697
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5146,6 +5801,33 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
5146
5801
|
options: localVarRequestOptions,
|
|
5147
5802
|
};
|
|
5148
5803
|
}),
|
|
5804
|
+
/**
|
|
5805
|
+
*
|
|
5806
|
+
* @param {*} [options] Override http request option.
|
|
5807
|
+
* @throws {RequiredError}
|
|
5808
|
+
*/
|
|
5809
|
+
getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5810
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
5811
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5812
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5813
|
+
let baseOptions;
|
|
5814
|
+
if (configuration) {
|
|
5815
|
+
baseOptions = configuration.baseOptions;
|
|
5816
|
+
}
|
|
5817
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5818
|
+
const localVarHeaderParameter = {};
|
|
5819
|
+
const localVarQueryParameter = {};
|
|
5820
|
+
// authentication bearerAuth required
|
|
5821
|
+
// http bearer authentication required
|
|
5822
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5823
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5824
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5825
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5826
|
+
return {
|
|
5827
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5828
|
+
options: localVarRequestOptions,
|
|
5829
|
+
};
|
|
5830
|
+
}),
|
|
5149
5831
|
/**
|
|
5150
5832
|
* Récupère les rôles d\'un club
|
|
5151
5833
|
* @param {*} [options] Override http request option.
|
|
@@ -5310,6 +5992,20 @@ const ClubsStaffApiFp = function (configuration) {
|
|
|
5310
5992
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5311
5993
|
});
|
|
5312
5994
|
},
|
|
5995
|
+
/**
|
|
5996
|
+
*
|
|
5997
|
+
* @param {*} [options] Override http request option.
|
|
5998
|
+
* @throws {RequiredError}
|
|
5999
|
+
*/
|
|
6000
|
+
getClubPresentationSettings(options) {
|
|
6001
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6002
|
+
var _a, _b, _c;
|
|
6003
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPresentationSettings(options);
|
|
6004
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6005
|
+
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;
|
|
6006
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6007
|
+
});
|
|
6008
|
+
},
|
|
5313
6009
|
/**
|
|
5314
6010
|
* Récupère les rôles d\'un club
|
|
5315
6011
|
* @param {*} [options] Override http request option.
|
|
@@ -5401,6 +6097,14 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
5401
6097
|
getClubMembers(options) {
|
|
5402
6098
|
return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
|
|
5403
6099
|
},
|
|
6100
|
+
/**
|
|
6101
|
+
*
|
|
6102
|
+
* @param {*} [options] Override http request option.
|
|
6103
|
+
* @throws {RequiredError}
|
|
6104
|
+
*/
|
|
6105
|
+
getClubPresentationSettings(options) {
|
|
6106
|
+
return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
|
|
6107
|
+
},
|
|
5404
6108
|
/**
|
|
5405
6109
|
* Récupère les rôles d\'un club
|
|
5406
6110
|
* @param {*} [options] Override http request option.
|
|
@@ -5471,6 +6175,15 @@ class ClubsStaffApi extends base_1.BaseAPI {
|
|
|
5471
6175
|
getClubMembers(options) {
|
|
5472
6176
|
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
|
|
5473
6177
|
}
|
|
6178
|
+
/**
|
|
6179
|
+
*
|
|
6180
|
+
* @param {*} [options] Override http request option.
|
|
6181
|
+
* @throws {RequiredError}
|
|
6182
|
+
* @memberof ClubsStaffApi
|
|
6183
|
+
*/
|
|
6184
|
+
getClubPresentationSettings(options) {
|
|
6185
|
+
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
6186
|
+
}
|
|
5474
6187
|
/**
|
|
5475
6188
|
* Récupère les rôles d\'un club
|
|
5476
6189
|
* @param {*} [options] Override http request option.
|
|
@@ -6738,102 +7451,6 @@ class SportsPublicApi extends base_1.BaseAPI {
|
|
|
6738
7451
|
}
|
|
6739
7452
|
}
|
|
6740
7453
|
exports.SportsPublicApi = SportsPublicApi;
|
|
6741
|
-
/**
|
|
6742
|
-
* SportsStaffApi - axios parameter creator
|
|
6743
|
-
* @export
|
|
6744
|
-
*/
|
|
6745
|
-
const SportsStaffApiAxiosParamCreator = function (configuration) {
|
|
6746
|
-
return {
|
|
6747
|
-
/**
|
|
6748
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6749
|
-
* @param {*} [options] Override http request option.
|
|
6750
|
-
* @throws {RequiredError}
|
|
6751
|
-
*/
|
|
6752
|
-
getAllSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6753
|
-
const localVarPath = `/api/sports`;
|
|
6754
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6755
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6756
|
-
let baseOptions;
|
|
6757
|
-
if (configuration) {
|
|
6758
|
-
baseOptions = configuration.baseOptions;
|
|
6759
|
-
}
|
|
6760
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6761
|
-
const localVarHeaderParameter = {};
|
|
6762
|
-
const localVarQueryParameter = {};
|
|
6763
|
-
// authentication bearerAuth required
|
|
6764
|
-
// http bearer authentication required
|
|
6765
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6766
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6767
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6768
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6769
|
-
return {
|
|
6770
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6771
|
-
options: localVarRequestOptions,
|
|
6772
|
-
};
|
|
6773
|
-
}),
|
|
6774
|
-
};
|
|
6775
|
-
};
|
|
6776
|
-
exports.SportsStaffApiAxiosParamCreator = SportsStaffApiAxiosParamCreator;
|
|
6777
|
-
/**
|
|
6778
|
-
* SportsStaffApi - functional programming interface
|
|
6779
|
-
* @export
|
|
6780
|
-
*/
|
|
6781
|
-
const SportsStaffApiFp = function (configuration) {
|
|
6782
|
-
const localVarAxiosParamCreator = (0, exports.SportsStaffApiAxiosParamCreator)(configuration);
|
|
6783
|
-
return {
|
|
6784
|
-
/**
|
|
6785
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6786
|
-
* @param {*} [options] Override http request option.
|
|
6787
|
-
* @throws {RequiredError}
|
|
6788
|
-
*/
|
|
6789
|
-
getAllSports(options) {
|
|
6790
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6791
|
-
var _a, _b, _c;
|
|
6792
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllSports(options);
|
|
6793
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6794
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SportsStaffApi.getAllSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6795
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6796
|
-
});
|
|
6797
|
-
},
|
|
6798
|
-
};
|
|
6799
|
-
};
|
|
6800
|
-
exports.SportsStaffApiFp = SportsStaffApiFp;
|
|
6801
|
-
/**
|
|
6802
|
-
* SportsStaffApi - factory interface
|
|
6803
|
-
* @export
|
|
6804
|
-
*/
|
|
6805
|
-
const SportsStaffApiFactory = function (configuration, basePath, axios) {
|
|
6806
|
-
const localVarFp = (0, exports.SportsStaffApiFp)(configuration);
|
|
6807
|
-
return {
|
|
6808
|
-
/**
|
|
6809
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6810
|
-
* @param {*} [options] Override http request option.
|
|
6811
|
-
* @throws {RequiredError}
|
|
6812
|
-
*/
|
|
6813
|
-
getAllSports(options) {
|
|
6814
|
-
return localVarFp.getAllSports(options).then((request) => request(axios, basePath));
|
|
6815
|
-
},
|
|
6816
|
-
};
|
|
6817
|
-
};
|
|
6818
|
-
exports.SportsStaffApiFactory = SportsStaffApiFactory;
|
|
6819
|
-
/**
|
|
6820
|
-
* SportsStaffApi - object-oriented interface
|
|
6821
|
-
* @export
|
|
6822
|
-
* @class SportsStaffApi
|
|
6823
|
-
* @extends {BaseAPI}
|
|
6824
|
-
*/
|
|
6825
|
-
class SportsStaffApi extends base_1.BaseAPI {
|
|
6826
|
-
/**
|
|
6827
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6828
|
-
* @param {*} [options] Override http request option.
|
|
6829
|
-
* @throws {RequiredError}
|
|
6830
|
-
* @memberof SportsStaffApi
|
|
6831
|
-
*/
|
|
6832
|
-
getAllSports(options) {
|
|
6833
|
-
return (0, exports.SportsStaffApiFp)(this.configuration).getAllSports(options).then((request) => request(this.axios, this.basePath));
|
|
6834
|
-
}
|
|
6835
|
-
}
|
|
6836
|
-
exports.SportsStaffApi = SportsStaffApi;
|
|
6837
7454
|
/**
|
|
6838
7455
|
* SubscriptionsManagerApi - axios parameter creator
|
|
6839
7456
|
* @export
|
|
@@ -7999,33 +8616,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7999
8616
|
options: localVarRequestOptions,
|
|
8000
8617
|
};
|
|
8001
8618
|
}),
|
|
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
|
-
}),
|
|
8029
8619
|
/**
|
|
8030
8620
|
*
|
|
8031
8621
|
* @param {number} [radiusInKm]
|
|
@@ -8986,20 +9576,6 @@ const UsersApiFp = function (configuration) {
|
|
|
8986
9576
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8987
9577
|
});
|
|
8988
9578
|
},
|
|
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
|
-
},
|
|
9003
9579
|
/**
|
|
9004
9580
|
*
|
|
9005
9581
|
* @param {number} [radiusInKm]
|
|
@@ -9479,14 +10055,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9479
10055
|
getMe(options) {
|
|
9480
10056
|
return localVarFp.getMe(options).then((request) => request(axios, basePath));
|
|
9481
10057
|
},
|
|
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
|
-
},
|
|
9490
10058
|
/**
|
|
9491
10059
|
*
|
|
9492
10060
|
* @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
|
|
@@ -9815,15 +10383,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
9815
10383
|
getMe(options) {
|
|
9816
10384
|
return (0, exports.UsersApiFp)(this.configuration).getMe(options).then((request) => request(this.axios, this.basePath));
|
|
9817
10385
|
}
|
|
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
|
-
}
|
|
9827
10386
|
/**
|
|
9828
10387
|
*
|
|
9829
10388
|
* @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
|