@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/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.89
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1571,6 +1571,107 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1571
1571
|
options: localVarRequestOptions,
|
|
1572
1572
|
};
|
|
1573
1573
|
}),
|
|
1574
|
+
/**
|
|
1575
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
1576
|
+
* @param {string} playerId
|
|
1577
|
+
* @param {number} [page]
|
|
1578
|
+
* @param {number} [pageSize]
|
|
1579
|
+
* @param {*} [options] Override http request option.
|
|
1580
|
+
* @throws {RequiredError}
|
|
1581
|
+
*/
|
|
1582
|
+
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 = {}) {
|
|
1583
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
1584
|
+
assertParamExists('getClubPlayerBookingsById', 'playerId', playerId);
|
|
1585
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
1586
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1587
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1588
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1589
|
+
let baseOptions;
|
|
1590
|
+
if (configuration) {
|
|
1591
|
+
baseOptions = configuration.baseOptions;
|
|
1592
|
+
}
|
|
1593
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1594
|
+
const localVarHeaderParameter = {};
|
|
1595
|
+
const localVarQueryParameter = {};
|
|
1596
|
+
// authentication bearerAuth required
|
|
1597
|
+
// http bearer authentication required
|
|
1598
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1599
|
+
if (page !== undefined) {
|
|
1600
|
+
localVarQueryParameter['page'] = page;
|
|
1601
|
+
}
|
|
1602
|
+
if (pageSize !== undefined) {
|
|
1603
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
1604
|
+
}
|
|
1605
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1606
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1607
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1608
|
+
return {
|
|
1609
|
+
url: toPathString(localVarUrlObj),
|
|
1610
|
+
options: localVarRequestOptions,
|
|
1611
|
+
};
|
|
1612
|
+
}),
|
|
1613
|
+
/**
|
|
1614
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
1615
|
+
* @param {string} playerId
|
|
1616
|
+
* @param {*} [options] Override http request option.
|
|
1617
|
+
* @throws {RequiredError}
|
|
1618
|
+
*/
|
|
1619
|
+
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1620
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
1621
|
+
assertParamExists('getClubPlayerById', 'playerId', playerId);
|
|
1622
|
+
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
1623
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1624
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1625
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1626
|
+
let baseOptions;
|
|
1627
|
+
if (configuration) {
|
|
1628
|
+
baseOptions = configuration.baseOptions;
|
|
1629
|
+
}
|
|
1630
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1631
|
+
const localVarHeaderParameter = {};
|
|
1632
|
+
const localVarQueryParameter = {};
|
|
1633
|
+
// authentication bearerAuth required
|
|
1634
|
+
// http bearer authentication required
|
|
1635
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1636
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1637
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1638
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1639
|
+
return {
|
|
1640
|
+
url: toPathString(localVarUrlObj),
|
|
1641
|
+
options: localVarRequestOptions,
|
|
1642
|
+
};
|
|
1643
|
+
}),
|
|
1644
|
+
/**
|
|
1645
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
1646
|
+
* @param {string} playerId
|
|
1647
|
+
* @param {*} [options] Override http request option.
|
|
1648
|
+
* @throws {RequiredError}
|
|
1649
|
+
*/
|
|
1650
|
+
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1651
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
1652
|
+
assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
1653
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
1654
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1655
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1656
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1657
|
+
let baseOptions;
|
|
1658
|
+
if (configuration) {
|
|
1659
|
+
baseOptions = configuration.baseOptions;
|
|
1660
|
+
}
|
|
1661
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1662
|
+
const localVarHeaderParameter = {};
|
|
1663
|
+
const localVarQueryParameter = {};
|
|
1664
|
+
// authentication bearerAuth required
|
|
1665
|
+
// http bearer authentication required
|
|
1666
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1667
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1668
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1669
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1670
|
+
return {
|
|
1671
|
+
url: toPathString(localVarUrlObj),
|
|
1672
|
+
options: localVarRequestOptions,
|
|
1673
|
+
};
|
|
1674
|
+
}),
|
|
1574
1675
|
/**
|
|
1575
1676
|
* Récupère la liste des joueurs du club
|
|
1576
1677
|
* @param {*} [options] Override http request option.
|
|
@@ -1786,6 +1887,60 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1786
1887
|
options: localVarRequestOptions,
|
|
1787
1888
|
};
|
|
1788
1889
|
}),
|
|
1890
|
+
/**
|
|
1891
|
+
* Calcule le taux de fidélisation des joueurs
|
|
1892
|
+
* @param {*} [options] Override http request option.
|
|
1893
|
+
* @throws {RequiredError}
|
|
1894
|
+
*/
|
|
1895
|
+
getRetentionRate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1896
|
+
const localVarPath = `/api/club-analytics/retention-rate`;
|
|
1897
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1898
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1899
|
+
let baseOptions;
|
|
1900
|
+
if (configuration) {
|
|
1901
|
+
baseOptions = configuration.baseOptions;
|
|
1902
|
+
}
|
|
1903
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1904
|
+
const localVarHeaderParameter = {};
|
|
1905
|
+
const localVarQueryParameter = {};
|
|
1906
|
+
// authentication bearerAuth required
|
|
1907
|
+
// http bearer authentication required
|
|
1908
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1909
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1910
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1911
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1912
|
+
return {
|
|
1913
|
+
url: toPathString(localVarUrlObj),
|
|
1914
|
+
options: localVarRequestOptions,
|
|
1915
|
+
};
|
|
1916
|
+
}),
|
|
1917
|
+
/**
|
|
1918
|
+
* Récupère le chiffre d\'affaires par sport
|
|
1919
|
+
* @param {*} [options] Override http request option.
|
|
1920
|
+
* @throws {RequiredError}
|
|
1921
|
+
*/
|
|
1922
|
+
getRevenueBySport: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1923
|
+
const localVarPath = `/api/club-analytics/revenue-by-sport`;
|
|
1924
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1925
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1926
|
+
let baseOptions;
|
|
1927
|
+
if (configuration) {
|
|
1928
|
+
baseOptions = configuration.baseOptions;
|
|
1929
|
+
}
|
|
1930
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1931
|
+
const localVarHeaderParameter = {};
|
|
1932
|
+
const localVarQueryParameter = {};
|
|
1933
|
+
// authentication bearerAuth required
|
|
1934
|
+
// http bearer authentication required
|
|
1935
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1936
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1937
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1938
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1939
|
+
return {
|
|
1940
|
+
url: toPathString(localVarUrlObj),
|
|
1941
|
+
options: localVarRequestOptions,
|
|
1942
|
+
};
|
|
1943
|
+
}),
|
|
1789
1944
|
/**
|
|
1790
1945
|
* Récupère les 10 prochaines réservations
|
|
1791
1946
|
* @param {*} [options] Override http request option.
|
|
@@ -1813,6 +1968,33 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1813
1968
|
options: localVarRequestOptions,
|
|
1814
1969
|
};
|
|
1815
1970
|
}),
|
|
1971
|
+
/**
|
|
1972
|
+
* Classement des terrains les plus réservés
|
|
1973
|
+
* @param {*} [options] Override http request option.
|
|
1974
|
+
* @throws {RequiredError}
|
|
1975
|
+
*/
|
|
1976
|
+
getTopCourtsByBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1977
|
+
const localVarPath = `/api/club-analytics/top-courts`;
|
|
1978
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1979
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1980
|
+
let baseOptions;
|
|
1981
|
+
if (configuration) {
|
|
1982
|
+
baseOptions = configuration.baseOptions;
|
|
1983
|
+
}
|
|
1984
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1985
|
+
const localVarHeaderParameter = {};
|
|
1986
|
+
const localVarQueryParameter = {};
|
|
1987
|
+
// authentication bearerAuth required
|
|
1988
|
+
// http bearer authentication required
|
|
1989
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1990
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1991
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1992
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1993
|
+
return {
|
|
1994
|
+
url: toPathString(localVarUrlObj),
|
|
1995
|
+
options: localVarRequestOptions,
|
|
1996
|
+
};
|
|
1997
|
+
}),
|
|
1816
1998
|
/**
|
|
1817
1999
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
1818
2000
|
* @param {string} year
|
|
@@ -1870,6 +2052,53 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
1870
2052
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1871
2053
|
});
|
|
1872
2054
|
},
|
|
2055
|
+
/**
|
|
2056
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2057
|
+
* @param {string} playerId
|
|
2058
|
+
* @param {number} [page]
|
|
2059
|
+
* @param {number} [pageSize]
|
|
2060
|
+
* @param {*} [options] Override http request option.
|
|
2061
|
+
* @throws {RequiredError}
|
|
2062
|
+
*/
|
|
2063
|
+
getClubPlayerBookingsById(playerId, page, pageSize, options) {
|
|
2064
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2065
|
+
var _a, _b, _c;
|
|
2066
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, page, pageSize, options);
|
|
2067
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2068
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2069
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2070
|
+
});
|
|
2071
|
+
},
|
|
2072
|
+
/**
|
|
2073
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2074
|
+
* @param {string} playerId
|
|
2075
|
+
* @param {*} [options] Override http request option.
|
|
2076
|
+
* @throws {RequiredError}
|
|
2077
|
+
*/
|
|
2078
|
+
getClubPlayerById(playerId, options) {
|
|
2079
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2080
|
+
var _a, _b, _c;
|
|
2081
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
|
|
2082
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2083
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2084
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2085
|
+
});
|
|
2086
|
+
},
|
|
2087
|
+
/**
|
|
2088
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2089
|
+
* @param {string} playerId
|
|
2090
|
+
* @param {*} [options] Override http request option.
|
|
2091
|
+
* @throws {RequiredError}
|
|
2092
|
+
*/
|
|
2093
|
+
getClubPlayerStatisticsById(playerId, options) {
|
|
2094
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2095
|
+
var _a, _b, _c;
|
|
2096
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
|
|
2097
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2098
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2099
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2100
|
+
});
|
|
2101
|
+
},
|
|
1873
2102
|
/**
|
|
1874
2103
|
* Récupère la liste des joueurs du club
|
|
1875
2104
|
* @param {*} [options] Override http request option.
|
|
@@ -1973,6 +2202,34 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
1973
2202
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1974
2203
|
});
|
|
1975
2204
|
},
|
|
2205
|
+
/**
|
|
2206
|
+
* Calcule le taux de fidélisation des joueurs
|
|
2207
|
+
* @param {*} [options] Override http request option.
|
|
2208
|
+
* @throws {RequiredError}
|
|
2209
|
+
*/
|
|
2210
|
+
getRetentionRate(options) {
|
|
2211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2212
|
+
var _a, _b, _c;
|
|
2213
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRetentionRate(options);
|
|
2214
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2215
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getRetentionRate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2216
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2217
|
+
});
|
|
2218
|
+
},
|
|
2219
|
+
/**
|
|
2220
|
+
* Récupère le chiffre d\'affaires par sport
|
|
2221
|
+
* @param {*} [options] Override http request option.
|
|
2222
|
+
* @throws {RequiredError}
|
|
2223
|
+
*/
|
|
2224
|
+
getRevenueBySport(options) {
|
|
2225
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2226
|
+
var _a, _b, _c;
|
|
2227
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRevenueBySport(options);
|
|
2228
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2229
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getRevenueBySport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2230
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2231
|
+
});
|
|
2232
|
+
},
|
|
1976
2233
|
/**
|
|
1977
2234
|
* Récupère les 10 prochaines réservations
|
|
1978
2235
|
* @param {*} [options] Override http request option.
|
|
@@ -1987,6 +2244,20 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
1987
2244
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1988
2245
|
});
|
|
1989
2246
|
},
|
|
2247
|
+
/**
|
|
2248
|
+
* Classement des terrains les plus réservés
|
|
2249
|
+
* @param {*} [options] Override http request option.
|
|
2250
|
+
* @throws {RequiredError}
|
|
2251
|
+
*/
|
|
2252
|
+
getTopCourtsByBookings(options) {
|
|
2253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2254
|
+
var _a, _b, _c;
|
|
2255
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTopCourtsByBookings(options);
|
|
2256
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2257
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getTopCourtsByBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2258
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2259
|
+
});
|
|
2260
|
+
},
|
|
1990
2261
|
/**
|
|
1991
2262
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
1992
2263
|
* @param {string} year
|
|
@@ -2020,6 +2291,33 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
|
|
|
2020
2291
|
getAnalyticsBySport(requestParameters, options) {
|
|
2021
2292
|
return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
2022
2293
|
},
|
|
2294
|
+
/**
|
|
2295
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2296
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2297
|
+
* @param {*} [options] Override http request option.
|
|
2298
|
+
* @throws {RequiredError}
|
|
2299
|
+
*/
|
|
2300
|
+
getClubPlayerBookingsById(requestParameters, options) {
|
|
2301
|
+
return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
2302
|
+
},
|
|
2303
|
+
/**
|
|
2304
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2305
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2306
|
+
* @param {*} [options] Override http request option.
|
|
2307
|
+
* @throws {RequiredError}
|
|
2308
|
+
*/
|
|
2309
|
+
getClubPlayerById(requestParameters, options) {
|
|
2310
|
+
return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2311
|
+
},
|
|
2312
|
+
/**
|
|
2313
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2314
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2315
|
+
* @param {*} [options] Override http request option.
|
|
2316
|
+
* @throws {RequiredError}
|
|
2317
|
+
*/
|
|
2318
|
+
getClubPlayerStatisticsById(requestParameters, options) {
|
|
2319
|
+
return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2320
|
+
},
|
|
2023
2321
|
/**
|
|
2024
2322
|
* Récupère la liste des joueurs du club
|
|
2025
2323
|
* @param {*} [options] Override http request option.
|
|
@@ -2079,6 +2377,22 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
|
|
|
2079
2377
|
getNumberOfClubUsers(options) {
|
|
2080
2378
|
return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
|
|
2081
2379
|
},
|
|
2380
|
+
/**
|
|
2381
|
+
* Calcule le taux de fidélisation des joueurs
|
|
2382
|
+
* @param {*} [options] Override http request option.
|
|
2383
|
+
* @throws {RequiredError}
|
|
2384
|
+
*/
|
|
2385
|
+
getRetentionRate(options) {
|
|
2386
|
+
return localVarFp.getRetentionRate(options).then((request) => request(axios, basePath));
|
|
2387
|
+
},
|
|
2388
|
+
/**
|
|
2389
|
+
* Récupère le chiffre d\'affaires par sport
|
|
2390
|
+
* @param {*} [options] Override http request option.
|
|
2391
|
+
* @throws {RequiredError}
|
|
2392
|
+
*/
|
|
2393
|
+
getRevenueBySport(options) {
|
|
2394
|
+
return localVarFp.getRevenueBySport(options).then((request) => request(axios, basePath));
|
|
2395
|
+
},
|
|
2082
2396
|
/**
|
|
2083
2397
|
* Récupère les 10 prochaines réservations
|
|
2084
2398
|
* @param {*} [options] Override http request option.
|
|
@@ -2087,6 +2401,14 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
|
|
|
2087
2401
|
getTenNextBookings(options) {
|
|
2088
2402
|
return localVarFp.getTenNextBookings(options).then((request) => request(axios, basePath));
|
|
2089
2403
|
},
|
|
2404
|
+
/**
|
|
2405
|
+
* Classement des terrains les plus réservés
|
|
2406
|
+
* @param {*} [options] Override http request option.
|
|
2407
|
+
* @throws {RequiredError}
|
|
2408
|
+
*/
|
|
2409
|
+
getTopCourtsByBookings(options) {
|
|
2410
|
+
return localVarFp.getTopCourtsByBookings(options).then((request) => request(axios, basePath));
|
|
2411
|
+
},
|
|
2090
2412
|
/**
|
|
2091
2413
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2092
2414
|
* @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -2115,6 +2437,36 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
|
|
|
2115
2437
|
getAnalyticsBySport(requestParameters, options) {
|
|
2116
2438
|
return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
2117
2439
|
}
|
|
2440
|
+
/**
|
|
2441
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2442
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2443
|
+
* @param {*} [options] Override http request option.
|
|
2444
|
+
* @throws {RequiredError}
|
|
2445
|
+
* @memberof ClubAnalyticsStaffApi
|
|
2446
|
+
*/
|
|
2447
|
+
getClubPlayerBookingsById(requestParameters, options) {
|
|
2448
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
2449
|
+
}
|
|
2450
|
+
/**
|
|
2451
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2452
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2453
|
+
* @param {*} [options] Override http request option.
|
|
2454
|
+
* @throws {RequiredError}
|
|
2455
|
+
* @memberof ClubAnalyticsStaffApi
|
|
2456
|
+
*/
|
|
2457
|
+
getClubPlayerById(requestParameters, options) {
|
|
2458
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2459
|
+
}
|
|
2460
|
+
/**
|
|
2461
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2462
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2463
|
+
* @param {*} [options] Override http request option.
|
|
2464
|
+
* @throws {RequiredError}
|
|
2465
|
+
* @memberof ClubAnalyticsStaffApi
|
|
2466
|
+
*/
|
|
2467
|
+
getClubPlayerStatisticsById(requestParameters, options) {
|
|
2468
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2469
|
+
}
|
|
2118
2470
|
/**
|
|
2119
2471
|
* Récupère la liste des joueurs du club
|
|
2120
2472
|
* @param {*} [options] Override http request option.
|
|
@@ -2181,6 +2533,24 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
|
|
|
2181
2533
|
getNumberOfClubUsers(options) {
|
|
2182
2534
|
return ClubAnalyticsStaffApiFp(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
|
|
2183
2535
|
}
|
|
2536
|
+
/**
|
|
2537
|
+
* Calcule le taux de fidélisation des joueurs
|
|
2538
|
+
* @param {*} [options] Override http request option.
|
|
2539
|
+
* @throws {RequiredError}
|
|
2540
|
+
* @memberof ClubAnalyticsStaffApi
|
|
2541
|
+
*/
|
|
2542
|
+
getRetentionRate(options) {
|
|
2543
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getRetentionRate(options).then((request) => request(this.axios, this.basePath));
|
|
2544
|
+
}
|
|
2545
|
+
/**
|
|
2546
|
+
* Récupère le chiffre d\'affaires par sport
|
|
2547
|
+
* @param {*} [options] Override http request option.
|
|
2548
|
+
* @throws {RequiredError}
|
|
2549
|
+
* @memberof ClubAnalyticsStaffApi
|
|
2550
|
+
*/
|
|
2551
|
+
getRevenueBySport(options) {
|
|
2552
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getRevenueBySport(options).then((request) => request(this.axios, this.basePath));
|
|
2553
|
+
}
|
|
2184
2554
|
/**
|
|
2185
2555
|
* Récupère les 10 prochaines réservations
|
|
2186
2556
|
* @param {*} [options] Override http request option.
|
|
@@ -2190,6 +2560,15 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
|
|
|
2190
2560
|
getTenNextBookings(options) {
|
|
2191
2561
|
return ClubAnalyticsStaffApiFp(this.configuration).getTenNextBookings(options).then((request) => request(this.axios, this.basePath));
|
|
2192
2562
|
}
|
|
2563
|
+
/**
|
|
2564
|
+
* Classement des terrains les plus réservés
|
|
2565
|
+
* @param {*} [options] Override http request option.
|
|
2566
|
+
* @throws {RequiredError}
|
|
2567
|
+
* @memberof ClubAnalyticsStaffApi
|
|
2568
|
+
*/
|
|
2569
|
+
getTopCourtsByBookings(options) {
|
|
2570
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getTopCourtsByBookings(options).then((request) => request(this.axios, this.basePath));
|
|
2571
|
+
}
|
|
2193
2572
|
/**
|
|
2194
2573
|
* Récupère le chiffre d\'affaires annuel avec détail mensuel
|
|
2195
2574
|
* @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -2402,100 +2781,321 @@ export const ClubRolesManagerApiFactory = function (configuration, basePath, axi
|
|
|
2402
2781
|
/**
|
|
2403
2782
|
* ClubRolesManagerApi - object-oriented interface
|
|
2404
2783
|
* @export
|
|
2405
|
-
* @class ClubRolesManagerApi
|
|
2784
|
+
* @class ClubRolesManagerApi
|
|
2785
|
+
* @extends {BaseAPI}
|
|
2786
|
+
*/
|
|
2787
|
+
export class ClubRolesManagerApi extends BaseAPI {
|
|
2788
|
+
/**
|
|
2789
|
+
* Crée un rôle de club
|
|
2790
|
+
* @param {ClubRolesManagerApiCreateClubRoleRequest} requestParameters Request parameters.
|
|
2791
|
+
* @param {*} [options] Override http request option.
|
|
2792
|
+
* @throws {RequiredError}
|
|
2793
|
+
* @memberof ClubRolesManagerApi
|
|
2794
|
+
*/
|
|
2795
|
+
createClubRole(requestParameters, options) {
|
|
2796
|
+
return ClubRolesManagerApiFp(this.configuration).createClubRole(requestParameters.createClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2797
|
+
}
|
|
2798
|
+
/**
|
|
2799
|
+
* Supprime un rôle de club
|
|
2800
|
+
* @param {ClubRolesManagerApiDeleteClubRoleRequest} requestParameters Request parameters.
|
|
2801
|
+
* @param {*} [options] Override http request option.
|
|
2802
|
+
* @throws {RequiredError}
|
|
2803
|
+
* @memberof ClubRolesManagerApi
|
|
2804
|
+
*/
|
|
2805
|
+
deleteClubRole(requestParameters, options) {
|
|
2806
|
+
return ClubRolesManagerApiFp(this.configuration).deleteClubRole(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2807
|
+
}
|
|
2808
|
+
/**
|
|
2809
|
+
* Met à jour un rôle de club
|
|
2810
|
+
* @param {ClubRolesManagerApiUpdateClubRoleRequest} requestParameters Request parameters.
|
|
2811
|
+
* @param {*} [options] Override http request option.
|
|
2812
|
+
* @throws {RequiredError}
|
|
2813
|
+
* @memberof ClubRolesManagerApi
|
|
2814
|
+
*/
|
|
2815
|
+
updateClubRole(requestParameters, options) {
|
|
2816
|
+
return ClubRolesManagerApiFp(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2817
|
+
}
|
|
2818
|
+
}
|
|
2819
|
+
/**
|
|
2820
|
+
* ClubRolesStaffApi - axios parameter creator
|
|
2821
|
+
* @export
|
|
2822
|
+
*/
|
|
2823
|
+
export const ClubRolesStaffApiAxiosParamCreator = function (configuration) {
|
|
2824
|
+
return {
|
|
2825
|
+
/**
|
|
2826
|
+
* Récupère la liste des rôles d\'un club
|
|
2827
|
+
* @param {*} [options] Override http request option.
|
|
2828
|
+
* @throws {RequiredError}
|
|
2829
|
+
*/
|
|
2830
|
+
getAllClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2831
|
+
const localVarPath = `/api/club-roles`;
|
|
2832
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2833
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2834
|
+
let baseOptions;
|
|
2835
|
+
if (configuration) {
|
|
2836
|
+
baseOptions = configuration.baseOptions;
|
|
2837
|
+
}
|
|
2838
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2839
|
+
const localVarHeaderParameter = {};
|
|
2840
|
+
const localVarQueryParameter = {};
|
|
2841
|
+
// authentication bearerAuth required
|
|
2842
|
+
// http bearer authentication required
|
|
2843
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2844
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2845
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2846
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2847
|
+
return {
|
|
2848
|
+
url: toPathString(localVarUrlObj),
|
|
2849
|
+
options: localVarRequestOptions,
|
|
2850
|
+
};
|
|
2851
|
+
}),
|
|
2852
|
+
/**
|
|
2853
|
+
* Récupère un rôle de club par ID
|
|
2854
|
+
* @param {string} id
|
|
2855
|
+
* @param {*} [options] Override http request option.
|
|
2856
|
+
* @throws {RequiredError}
|
|
2857
|
+
*/
|
|
2858
|
+
getClubRoleById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2859
|
+
// verify required parameter 'id' is not null or undefined
|
|
2860
|
+
assertParamExists('getClubRoleById', 'id', id);
|
|
2861
|
+
const localVarPath = `/api/club-roles/{id}`
|
|
2862
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2863
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2864
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2865
|
+
let baseOptions;
|
|
2866
|
+
if (configuration) {
|
|
2867
|
+
baseOptions = configuration.baseOptions;
|
|
2868
|
+
}
|
|
2869
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2870
|
+
const localVarHeaderParameter = {};
|
|
2871
|
+
const localVarQueryParameter = {};
|
|
2872
|
+
// authentication bearerAuth required
|
|
2873
|
+
// http bearer authentication required
|
|
2874
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2875
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2876
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2877
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2878
|
+
return {
|
|
2879
|
+
url: toPathString(localVarUrlObj),
|
|
2880
|
+
options: localVarRequestOptions,
|
|
2881
|
+
};
|
|
2882
|
+
}),
|
|
2883
|
+
/**
|
|
2884
|
+
*
|
|
2885
|
+
* @param {*} [options] Override http request option.
|
|
2886
|
+
* @throws {RequiredError}
|
|
2887
|
+
*/
|
|
2888
|
+
getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2889
|
+
const localVarPath = `/api/club-roles/me/roles`;
|
|
2890
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2891
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2892
|
+
let baseOptions;
|
|
2893
|
+
if (configuration) {
|
|
2894
|
+
baseOptions = configuration.baseOptions;
|
|
2895
|
+
}
|
|
2896
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2897
|
+
const localVarHeaderParameter = {};
|
|
2898
|
+
const localVarQueryParameter = {};
|
|
2899
|
+
// authentication bearerAuth required
|
|
2900
|
+
// http bearer authentication required
|
|
2901
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2902
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2903
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2904
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2905
|
+
return {
|
|
2906
|
+
url: toPathString(localVarUrlObj),
|
|
2907
|
+
options: localVarRequestOptions,
|
|
2908
|
+
};
|
|
2909
|
+
}),
|
|
2910
|
+
};
|
|
2911
|
+
};
|
|
2912
|
+
/**
|
|
2913
|
+
* ClubRolesStaffApi - functional programming interface
|
|
2914
|
+
* @export
|
|
2915
|
+
*/
|
|
2916
|
+
export const ClubRolesStaffApiFp = function (configuration) {
|
|
2917
|
+
const localVarAxiosParamCreator = ClubRolesStaffApiAxiosParamCreator(configuration);
|
|
2918
|
+
return {
|
|
2919
|
+
/**
|
|
2920
|
+
* Récupère la liste des rôles d\'un club
|
|
2921
|
+
* @param {*} [options] Override http request option.
|
|
2922
|
+
* @throws {RequiredError}
|
|
2923
|
+
*/
|
|
2924
|
+
getAllClubRoles(options) {
|
|
2925
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2926
|
+
var _a, _b, _c;
|
|
2927
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubRoles(options);
|
|
2928
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2929
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubRolesStaffApi.getAllClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2930
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2931
|
+
});
|
|
2932
|
+
},
|
|
2933
|
+
/**
|
|
2934
|
+
* Récupère un rôle de club par ID
|
|
2935
|
+
* @param {string} id
|
|
2936
|
+
* @param {*} [options] Override http request option.
|
|
2937
|
+
* @throws {RequiredError}
|
|
2938
|
+
*/
|
|
2939
|
+
getClubRoleById(id, options) {
|
|
2940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2941
|
+
var _a, _b, _c;
|
|
2942
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoleById(id, options);
|
|
2943
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2944
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubRolesStaffApi.getClubRoleById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2945
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2946
|
+
});
|
|
2947
|
+
},
|
|
2948
|
+
/**
|
|
2949
|
+
*
|
|
2950
|
+
* @param {*} [options] Override http request option.
|
|
2951
|
+
* @throws {RequiredError}
|
|
2952
|
+
*/
|
|
2953
|
+
getUserRolesInClubs(options) {
|
|
2954
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2955
|
+
var _a, _b, _c;
|
|
2956
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
|
|
2957
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2958
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubRolesStaffApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2959
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2960
|
+
});
|
|
2961
|
+
},
|
|
2962
|
+
};
|
|
2963
|
+
};
|
|
2964
|
+
/**
|
|
2965
|
+
* ClubRolesStaffApi - factory interface
|
|
2966
|
+
* @export
|
|
2967
|
+
*/
|
|
2968
|
+
export const ClubRolesStaffApiFactory = function (configuration, basePath, axios) {
|
|
2969
|
+
const localVarFp = ClubRolesStaffApiFp(configuration);
|
|
2970
|
+
return {
|
|
2971
|
+
/**
|
|
2972
|
+
* Récupère la liste des rôles d\'un club
|
|
2973
|
+
* @param {*} [options] Override http request option.
|
|
2974
|
+
* @throws {RequiredError}
|
|
2975
|
+
*/
|
|
2976
|
+
getAllClubRoles(options) {
|
|
2977
|
+
return localVarFp.getAllClubRoles(options).then((request) => request(axios, basePath));
|
|
2978
|
+
},
|
|
2979
|
+
/**
|
|
2980
|
+
* Récupère un rôle de club par ID
|
|
2981
|
+
* @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
|
|
2982
|
+
* @param {*} [options] Override http request option.
|
|
2983
|
+
* @throws {RequiredError}
|
|
2984
|
+
*/
|
|
2985
|
+
getClubRoleById(requestParameters, options) {
|
|
2986
|
+
return localVarFp.getClubRoleById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2987
|
+
},
|
|
2988
|
+
/**
|
|
2989
|
+
*
|
|
2990
|
+
* @param {*} [options] Override http request option.
|
|
2991
|
+
* @throws {RequiredError}
|
|
2992
|
+
*/
|
|
2993
|
+
getUserRolesInClubs(options) {
|
|
2994
|
+
return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
|
|
2995
|
+
},
|
|
2996
|
+
};
|
|
2997
|
+
};
|
|
2998
|
+
/**
|
|
2999
|
+
* ClubRolesStaffApi - object-oriented interface
|
|
3000
|
+
* @export
|
|
3001
|
+
* @class ClubRolesStaffApi
|
|
2406
3002
|
* @extends {BaseAPI}
|
|
2407
3003
|
*/
|
|
2408
|
-
export class
|
|
3004
|
+
export class ClubRolesStaffApi extends BaseAPI {
|
|
2409
3005
|
/**
|
|
2410
|
-
*
|
|
2411
|
-
* @param {ClubRolesManagerApiCreateClubRoleRequest} requestParameters Request parameters.
|
|
3006
|
+
* Récupère la liste des rôles d\'un club
|
|
2412
3007
|
* @param {*} [options] Override http request option.
|
|
2413
3008
|
* @throws {RequiredError}
|
|
2414
|
-
* @memberof
|
|
3009
|
+
* @memberof ClubRolesStaffApi
|
|
2415
3010
|
*/
|
|
2416
|
-
|
|
2417
|
-
return
|
|
3011
|
+
getAllClubRoles(options) {
|
|
3012
|
+
return ClubRolesStaffApiFp(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
2418
3013
|
}
|
|
2419
3014
|
/**
|
|
2420
|
-
*
|
|
2421
|
-
* @param {
|
|
3015
|
+
* Récupère un rôle de club par ID
|
|
3016
|
+
* @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
|
|
2422
3017
|
* @param {*} [options] Override http request option.
|
|
2423
3018
|
* @throws {RequiredError}
|
|
2424
|
-
* @memberof
|
|
3019
|
+
* @memberof ClubRolesStaffApi
|
|
2425
3020
|
*/
|
|
2426
|
-
|
|
2427
|
-
return
|
|
3021
|
+
getClubRoleById(requestParameters, options) {
|
|
3022
|
+
return ClubRolesStaffApiFp(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2428
3023
|
}
|
|
2429
3024
|
/**
|
|
2430
|
-
*
|
|
2431
|
-
* @param {ClubRolesManagerApiUpdateClubRoleRequest} requestParameters Request parameters.
|
|
3025
|
+
*
|
|
2432
3026
|
* @param {*} [options] Override http request option.
|
|
2433
3027
|
* @throws {RequiredError}
|
|
2434
|
-
* @memberof
|
|
3028
|
+
* @memberof ClubRolesStaffApi
|
|
2435
3029
|
*/
|
|
2436
|
-
|
|
2437
|
-
return
|
|
3030
|
+
getUserRolesInClubs(options) {
|
|
3031
|
+
return ClubRolesStaffApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
|
|
2438
3032
|
}
|
|
2439
3033
|
}
|
|
2440
3034
|
/**
|
|
2441
|
-
*
|
|
3035
|
+
* ClubSettingsManagerApi - axios parameter creator
|
|
2442
3036
|
* @export
|
|
2443
3037
|
*/
|
|
2444
|
-
export const
|
|
3038
|
+
export const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
2445
3039
|
return {
|
|
2446
3040
|
/**
|
|
2447
|
-
*
|
|
3041
|
+
*
|
|
3042
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
2448
3043
|
* @param {*} [options] Override http request option.
|
|
2449
3044
|
* @throws {RequiredError}
|
|
2450
3045
|
*/
|
|
2451
|
-
|
|
2452
|
-
|
|
3046
|
+
updateClubGeneralSettings: (updateClubGeneralSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubGeneralSettingsRequest_1, ...args_1], void 0, function* (updateClubGeneralSettingsRequest, options = {}) {
|
|
3047
|
+
// verify required parameter 'updateClubGeneralSettingsRequest' is not null or undefined
|
|
3048
|
+
assertParamExists('updateClubGeneralSettings', 'updateClubGeneralSettingsRequest', updateClubGeneralSettingsRequest);
|
|
3049
|
+
const localVarPath = `/api/club-settings/settings/general`;
|
|
2453
3050
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2454
3051
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2455
3052
|
let baseOptions;
|
|
2456
3053
|
if (configuration) {
|
|
2457
3054
|
baseOptions = configuration.baseOptions;
|
|
2458
3055
|
}
|
|
2459
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3056
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2460
3057
|
const localVarHeaderParameter = {};
|
|
2461
3058
|
const localVarQueryParameter = {};
|
|
2462
3059
|
// authentication bearerAuth required
|
|
2463
3060
|
// http bearer authentication required
|
|
2464
3061
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3062
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2465
3063
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2466
3064
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2467
3065
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3066
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubGeneralSettingsRequest, localVarRequestOptions, configuration);
|
|
2468
3067
|
return {
|
|
2469
3068
|
url: toPathString(localVarUrlObj),
|
|
2470
3069
|
options: localVarRequestOptions,
|
|
2471
3070
|
};
|
|
2472
3071
|
}),
|
|
2473
3072
|
/**
|
|
2474
|
-
*
|
|
2475
|
-
* @param {
|
|
3073
|
+
*
|
|
3074
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
2476
3075
|
* @param {*} [options] Override http request option.
|
|
2477
3076
|
* @throws {RequiredError}
|
|
2478
3077
|
*/
|
|
2479
|
-
|
|
2480
|
-
// verify required parameter '
|
|
2481
|
-
assertParamExists('
|
|
2482
|
-
const localVarPath = `/api/club-
|
|
2483
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3078
|
+
updateHoursSettings: (updateClubHoursSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubHoursSettingsRequest_1, ...args_1], void 0, function* (updateClubHoursSettingsRequest, options = {}) {
|
|
3079
|
+
// verify required parameter 'updateClubHoursSettingsRequest' is not null or undefined
|
|
3080
|
+
assertParamExists('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
|
|
3081
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
2484
3082
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2485
3083
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2486
3084
|
let baseOptions;
|
|
2487
3085
|
if (configuration) {
|
|
2488
3086
|
baseOptions = configuration.baseOptions;
|
|
2489
3087
|
}
|
|
2490
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3088
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2491
3089
|
const localVarHeaderParameter = {};
|
|
2492
3090
|
const localVarQueryParameter = {};
|
|
2493
3091
|
// authentication bearerAuth required
|
|
2494
3092
|
// http bearer authentication required
|
|
2495
3093
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3094
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2496
3095
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2497
3096
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2498
3097
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3098
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
|
|
2499
3099
|
return {
|
|
2500
3100
|
url: toPathString(localVarUrlObj),
|
|
2501
3101
|
options: localVarRequestOptions,
|
|
@@ -2503,26 +3103,63 @@ export const ClubRolesStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2503
3103
|
}),
|
|
2504
3104
|
/**
|
|
2505
3105
|
*
|
|
3106
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
2506
3107
|
* @param {*} [options] Override http request option.
|
|
2507
3108
|
* @throws {RequiredError}
|
|
2508
3109
|
*/
|
|
2509
|
-
|
|
2510
|
-
|
|
3110
|
+
updatePresentationSettings: (clubPresentationSettingsResponse_1, ...args_1) => __awaiter(this, [clubPresentationSettingsResponse_1, ...args_1], void 0, function* (clubPresentationSettingsResponse, options = {}) {
|
|
3111
|
+
// verify required parameter 'clubPresentationSettingsResponse' is not null or undefined
|
|
3112
|
+
assertParamExists('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse);
|
|
3113
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
2511
3114
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2512
3115
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2513
3116
|
let baseOptions;
|
|
2514
3117
|
if (configuration) {
|
|
2515
3118
|
baseOptions = configuration.baseOptions;
|
|
2516
3119
|
}
|
|
2517
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3120
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3121
|
+
const localVarHeaderParameter = {};
|
|
3122
|
+
const localVarQueryParameter = {};
|
|
3123
|
+
// authentication bearerAuth required
|
|
3124
|
+
// http bearer authentication required
|
|
3125
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3126
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3127
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3128
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3129
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3130
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clubPresentationSettingsResponse, localVarRequestOptions, configuration);
|
|
3131
|
+
return {
|
|
3132
|
+
url: toPathString(localVarUrlObj),
|
|
3133
|
+
options: localVarRequestOptions,
|
|
3134
|
+
};
|
|
3135
|
+
}),
|
|
3136
|
+
/**
|
|
3137
|
+
*
|
|
3138
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
3139
|
+
* @param {*} [options] Override http request option.
|
|
3140
|
+
* @throws {RequiredError}
|
|
3141
|
+
*/
|
|
3142
|
+
updateReservationSettings: (updateClubReservationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubReservationSettingsRequest_1, ...args_1], void 0, function* (updateClubReservationSettingsRequest, options = {}) {
|
|
3143
|
+
// verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
|
|
3144
|
+
assertParamExists('updateReservationSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest);
|
|
3145
|
+
const localVarPath = `/api/club-settings/reservation`;
|
|
3146
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3147
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3148
|
+
let baseOptions;
|
|
3149
|
+
if (configuration) {
|
|
3150
|
+
baseOptions = configuration.baseOptions;
|
|
3151
|
+
}
|
|
3152
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2518
3153
|
const localVarHeaderParameter = {};
|
|
2519
3154
|
const localVarQueryParameter = {};
|
|
2520
3155
|
// authentication bearerAuth required
|
|
2521
3156
|
// http bearer authentication required
|
|
2522
3157
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3158
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2523
3159
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2524
3160
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2525
3161
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3162
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
|
|
2526
3163
|
return {
|
|
2527
3164
|
url: toPathString(localVarUrlObj),
|
|
2528
3165
|
options: localVarRequestOptions,
|
|
@@ -2531,183 +3168,214 @@ export const ClubRolesStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2531
3168
|
};
|
|
2532
3169
|
};
|
|
2533
3170
|
/**
|
|
2534
|
-
*
|
|
3171
|
+
* ClubSettingsManagerApi - functional programming interface
|
|
2535
3172
|
* @export
|
|
2536
3173
|
*/
|
|
2537
|
-
export const
|
|
2538
|
-
const localVarAxiosParamCreator =
|
|
3174
|
+
export const ClubSettingsManagerApiFp = function (configuration) {
|
|
3175
|
+
const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration);
|
|
2539
3176
|
return {
|
|
2540
3177
|
/**
|
|
2541
|
-
*
|
|
3178
|
+
*
|
|
3179
|
+
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
2542
3180
|
* @param {*} [options] Override http request option.
|
|
2543
3181
|
* @throws {RequiredError}
|
|
2544
3182
|
*/
|
|
2545
|
-
|
|
3183
|
+
updateClubGeneralSettings(updateClubGeneralSettingsRequest, options) {
|
|
2546
3184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2547
3185
|
var _a, _b, _c;
|
|
2548
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3186
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
|
|
2549
3187
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2550
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3188
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2551
3189
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2552
3190
|
});
|
|
2553
3191
|
},
|
|
2554
3192
|
/**
|
|
2555
|
-
*
|
|
2556
|
-
* @param {
|
|
3193
|
+
*
|
|
3194
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
2557
3195
|
* @param {*} [options] Override http request option.
|
|
2558
3196
|
* @throws {RequiredError}
|
|
2559
3197
|
*/
|
|
2560
|
-
|
|
3198
|
+
updateHoursSettings(updateClubHoursSettingsRequest, options) {
|
|
2561
3199
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2562
3200
|
var _a, _b, _c;
|
|
2563
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3201
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
|
|
2564
3202
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2565
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3203
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2566
3204
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2567
3205
|
});
|
|
2568
3206
|
},
|
|
2569
3207
|
/**
|
|
2570
3208
|
*
|
|
3209
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
2571
3210
|
* @param {*} [options] Override http request option.
|
|
2572
3211
|
* @throws {RequiredError}
|
|
2573
3212
|
*/
|
|
2574
|
-
|
|
3213
|
+
updatePresentationSettings(clubPresentationSettingsResponse, options) {
|
|
2575
3214
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2576
3215
|
var _a, _b, _c;
|
|
2577
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3216
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
|
|
2578
3217
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2579
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3218
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3219
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3220
|
+
});
|
|
3221
|
+
},
|
|
3222
|
+
/**
|
|
3223
|
+
*
|
|
3224
|
+
* @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
|
|
3225
|
+
* @param {*} [options] Override http request option.
|
|
3226
|
+
* @throws {RequiredError}
|
|
3227
|
+
*/
|
|
3228
|
+
updateReservationSettings(updateClubReservationSettingsRequest, options) {
|
|
3229
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3230
|
+
var _a, _b, _c;
|
|
3231
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
|
|
3232
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3233
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2580
3234
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2581
3235
|
});
|
|
2582
3236
|
},
|
|
2583
3237
|
};
|
|
2584
3238
|
};
|
|
2585
3239
|
/**
|
|
2586
|
-
*
|
|
3240
|
+
* ClubSettingsManagerApi - factory interface
|
|
2587
3241
|
* @export
|
|
2588
3242
|
*/
|
|
2589
|
-
export const
|
|
2590
|
-
const localVarFp =
|
|
3243
|
+
export const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
|
|
3244
|
+
const localVarFp = ClubSettingsManagerApiFp(configuration);
|
|
2591
3245
|
return {
|
|
2592
3246
|
/**
|
|
2593
|
-
*
|
|
3247
|
+
*
|
|
3248
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
2594
3249
|
* @param {*} [options] Override http request option.
|
|
2595
3250
|
* @throws {RequiredError}
|
|
2596
3251
|
*/
|
|
2597
|
-
|
|
2598
|
-
return localVarFp.
|
|
3252
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
3253
|
+
return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2599
3254
|
},
|
|
2600
3255
|
/**
|
|
2601
|
-
*
|
|
2602
|
-
* @param {
|
|
3256
|
+
*
|
|
3257
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
2603
3258
|
* @param {*} [options] Override http request option.
|
|
2604
3259
|
* @throws {RequiredError}
|
|
2605
3260
|
*/
|
|
2606
|
-
|
|
2607
|
-
return localVarFp.
|
|
3261
|
+
updateHoursSettings(requestParameters, options) {
|
|
3262
|
+
return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2608
3263
|
},
|
|
2609
3264
|
/**
|
|
2610
3265
|
*
|
|
3266
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
2611
3267
|
* @param {*} [options] Override http request option.
|
|
2612
3268
|
* @throws {RequiredError}
|
|
2613
3269
|
*/
|
|
2614
|
-
|
|
2615
|
-
return localVarFp.
|
|
3270
|
+
updatePresentationSettings(requestParameters, options) {
|
|
3271
|
+
return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
|
|
3272
|
+
},
|
|
3273
|
+
/**
|
|
3274
|
+
*
|
|
3275
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
3276
|
+
* @param {*} [options] Override http request option.
|
|
3277
|
+
* @throws {RequiredError}
|
|
3278
|
+
*/
|
|
3279
|
+
updateReservationSettings(requestParameters, options) {
|
|
3280
|
+
return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2616
3281
|
},
|
|
2617
3282
|
};
|
|
2618
3283
|
};
|
|
2619
3284
|
/**
|
|
2620
|
-
*
|
|
3285
|
+
* ClubSettingsManagerApi - object-oriented interface
|
|
2621
3286
|
* @export
|
|
2622
|
-
* @class
|
|
3287
|
+
* @class ClubSettingsManagerApi
|
|
2623
3288
|
* @extends {BaseAPI}
|
|
2624
3289
|
*/
|
|
2625
|
-
export class
|
|
3290
|
+
export class ClubSettingsManagerApi extends BaseAPI {
|
|
2626
3291
|
/**
|
|
2627
|
-
*
|
|
3292
|
+
*
|
|
3293
|
+
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
2628
3294
|
* @param {*} [options] Override http request option.
|
|
2629
3295
|
* @throws {RequiredError}
|
|
2630
|
-
* @memberof
|
|
3296
|
+
* @memberof ClubSettingsManagerApi
|
|
2631
3297
|
*/
|
|
2632
|
-
|
|
2633
|
-
return
|
|
3298
|
+
updateClubGeneralSettings(requestParameters, options) {
|
|
3299
|
+
return ClubSettingsManagerApiFp(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2634
3300
|
}
|
|
2635
3301
|
/**
|
|
2636
|
-
*
|
|
2637
|
-
* @param {
|
|
3302
|
+
*
|
|
3303
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
2638
3304
|
* @param {*} [options] Override http request option.
|
|
2639
3305
|
* @throws {RequiredError}
|
|
2640
|
-
* @memberof
|
|
3306
|
+
* @memberof ClubSettingsManagerApi
|
|
2641
3307
|
*/
|
|
2642
|
-
|
|
2643
|
-
return
|
|
3308
|
+
updateHoursSettings(requestParameters, options) {
|
|
3309
|
+
return ClubSettingsManagerApiFp(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2644
3310
|
}
|
|
2645
3311
|
/**
|
|
2646
3312
|
*
|
|
3313
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
2647
3314
|
* @param {*} [options] Override http request option.
|
|
2648
3315
|
* @throws {RequiredError}
|
|
2649
|
-
* @memberof
|
|
3316
|
+
* @memberof ClubSettingsManagerApi
|
|
2650
3317
|
*/
|
|
2651
|
-
|
|
2652
|
-
return
|
|
3318
|
+
updatePresentationSettings(requestParameters, options) {
|
|
3319
|
+
return ClubSettingsManagerApiFp(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
|
|
3320
|
+
}
|
|
3321
|
+
/**
|
|
3322
|
+
*
|
|
3323
|
+
* @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
|
|
3324
|
+
* @param {*} [options] Override http request option.
|
|
3325
|
+
* @throws {RequiredError}
|
|
3326
|
+
* @memberof ClubSettingsManagerApi
|
|
3327
|
+
*/
|
|
3328
|
+
updateReservationSettings(requestParameters, options) {
|
|
3329
|
+
return ClubSettingsManagerApiFp(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2653
3330
|
}
|
|
2654
3331
|
}
|
|
2655
3332
|
/**
|
|
2656
|
-
*
|
|
3333
|
+
* ClubSettingsStaffApi - axios parameter creator
|
|
2657
3334
|
* @export
|
|
2658
3335
|
*/
|
|
2659
|
-
export const
|
|
3336
|
+
export const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
|
|
2660
3337
|
return {
|
|
2661
3338
|
/**
|
|
2662
|
-
*
|
|
2663
|
-
* @param {string} clubId
|
|
2664
|
-
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
3339
|
+
*
|
|
2665
3340
|
* @param {*} [options] Override http request option.
|
|
2666
3341
|
* @throws {RequiredError}
|
|
2667
3342
|
*/
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
assertParamExists('createClubSettings', 'clubId', clubId);
|
|
2671
|
-
// verify required parameter 'createClubSettingsRequest' is not null or undefined
|
|
2672
|
-
assertParamExists('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
|
|
2673
|
-
const localVarPath = `/api/club-settings/{clubId}`
|
|
2674
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
3343
|
+
getClubGeneralSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3344
|
+
const localVarPath = `/api/club-settings/settings/general`;
|
|
2675
3345
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2676
3346
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2677
3347
|
let baseOptions;
|
|
2678
3348
|
if (configuration) {
|
|
2679
3349
|
baseOptions = configuration.baseOptions;
|
|
2680
3350
|
}
|
|
2681
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3351
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2682
3352
|
const localVarHeaderParameter = {};
|
|
2683
3353
|
const localVarQueryParameter = {};
|
|
2684
3354
|
// authentication bearerAuth required
|
|
2685
3355
|
// http bearer authentication required
|
|
2686
3356
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2687
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2688
3357
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2689
3358
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2690
3359
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2691
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2692
3360
|
return {
|
|
2693
3361
|
url: toPathString(localVarUrlObj),
|
|
2694
3362
|
options: localVarRequestOptions,
|
|
2695
3363
|
};
|
|
2696
3364
|
}),
|
|
2697
3365
|
/**
|
|
2698
|
-
*
|
|
3366
|
+
*
|
|
2699
3367
|
* @param {*} [options] Override http request option.
|
|
2700
3368
|
* @throws {RequiredError}
|
|
2701
3369
|
*/
|
|
2702
|
-
|
|
2703
|
-
const localVarPath = `/api/club-settings`;
|
|
3370
|
+
getHoursSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3371
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
2704
3372
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2705
3373
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2706
3374
|
let baseOptions;
|
|
2707
3375
|
if (configuration) {
|
|
2708
3376
|
baseOptions = configuration.baseOptions;
|
|
2709
3377
|
}
|
|
2710
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3378
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2711
3379
|
const localVarHeaderParameter = {};
|
|
2712
3380
|
const localVarQueryParameter = {};
|
|
2713
3381
|
// authentication bearerAuth required
|
|
@@ -2722,12 +3390,12 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
2722
3390
|
};
|
|
2723
3391
|
}),
|
|
2724
3392
|
/**
|
|
2725
|
-
*
|
|
3393
|
+
*
|
|
2726
3394
|
* @param {*} [options] Override http request option.
|
|
2727
3395
|
* @throws {RequiredError}
|
|
2728
3396
|
*/
|
|
2729
|
-
|
|
2730
|
-
const localVarPath = `/api/club-settings`;
|
|
3397
|
+
getPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3398
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
2731
3399
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2732
3400
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2733
3401
|
let baseOptions;
|
|
@@ -2749,32 +3417,27 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
2749
3417
|
};
|
|
2750
3418
|
}),
|
|
2751
3419
|
/**
|
|
2752
|
-
*
|
|
2753
|
-
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
3420
|
+
*
|
|
2754
3421
|
* @param {*} [options] Override http request option.
|
|
2755
3422
|
* @throws {RequiredError}
|
|
2756
3423
|
*/
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
assertParamExists('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
|
|
2760
|
-
const localVarPath = `/api/club-settings`;
|
|
3424
|
+
getReservationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3425
|
+
const localVarPath = `/api/club-settings/reservation`;
|
|
2761
3426
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2762
3427
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2763
3428
|
let baseOptions;
|
|
2764
3429
|
if (configuration) {
|
|
2765
3430
|
baseOptions = configuration.baseOptions;
|
|
2766
3431
|
}
|
|
2767
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3432
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2768
3433
|
const localVarHeaderParameter = {};
|
|
2769
3434
|
const localVarQueryParameter = {};
|
|
2770
3435
|
// authentication bearerAuth required
|
|
2771
3436
|
// http bearer authentication required
|
|
2772
3437
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2773
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2774
3438
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2775
3439
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2776
3440
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2777
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2778
3441
|
return {
|
|
2779
3442
|
url: toPathString(localVarUrlObj),
|
|
2780
3443
|
options: localVarRequestOptions,
|
|
@@ -2783,160 +3446,153 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
2783
3446
|
};
|
|
2784
3447
|
};
|
|
2785
3448
|
/**
|
|
2786
|
-
*
|
|
3449
|
+
* ClubSettingsStaffApi - functional programming interface
|
|
2787
3450
|
* @export
|
|
2788
3451
|
*/
|
|
2789
|
-
export const
|
|
2790
|
-
const localVarAxiosParamCreator =
|
|
3452
|
+
export const ClubSettingsStaffApiFp = function (configuration) {
|
|
3453
|
+
const localVarAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator(configuration);
|
|
2791
3454
|
return {
|
|
2792
3455
|
/**
|
|
2793
|
-
*
|
|
2794
|
-
* @param {string} clubId
|
|
2795
|
-
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
3456
|
+
*
|
|
2796
3457
|
* @param {*} [options] Override http request option.
|
|
2797
3458
|
* @throws {RequiredError}
|
|
2798
3459
|
*/
|
|
2799
|
-
|
|
3460
|
+
getClubGeneralSettings(options) {
|
|
2800
3461
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2801
3462
|
var _a, _b, _c;
|
|
2802
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3463
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubGeneralSettings(options);
|
|
2803
3464
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2804
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3465
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2805
3466
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2806
3467
|
});
|
|
2807
3468
|
},
|
|
2808
3469
|
/**
|
|
2809
|
-
*
|
|
3470
|
+
*
|
|
2810
3471
|
* @param {*} [options] Override http request option.
|
|
2811
3472
|
* @throws {RequiredError}
|
|
2812
3473
|
*/
|
|
2813
|
-
|
|
3474
|
+
getHoursSettings(options) {
|
|
2814
3475
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2815
3476
|
var _a, _b, _c;
|
|
2816
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3477
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getHoursSettings(options);
|
|
2817
3478
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2818
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3479
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2819
3480
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2820
3481
|
});
|
|
2821
3482
|
},
|
|
2822
3483
|
/**
|
|
2823
|
-
*
|
|
3484
|
+
*
|
|
2824
3485
|
* @param {*} [options] Override http request option.
|
|
2825
3486
|
* @throws {RequiredError}
|
|
2826
3487
|
*/
|
|
2827
|
-
|
|
3488
|
+
getPresentationSettings(options) {
|
|
2828
3489
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2829
3490
|
var _a, _b, _c;
|
|
2830
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3491
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPresentationSettings(options);
|
|
2831
3492
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2832
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3493
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2833
3494
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2834
3495
|
});
|
|
2835
3496
|
},
|
|
2836
3497
|
/**
|
|
2837
|
-
*
|
|
2838
|
-
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
3498
|
+
*
|
|
2839
3499
|
* @param {*} [options] Override http request option.
|
|
2840
3500
|
* @throws {RequiredError}
|
|
2841
3501
|
*/
|
|
2842
|
-
|
|
3502
|
+
getReservationSettings(options) {
|
|
2843
3503
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2844
3504
|
var _a, _b, _c;
|
|
2845
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3505
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReservationSettings(options);
|
|
2846
3506
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2847
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3507
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2848
3508
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2849
3509
|
});
|
|
2850
3510
|
},
|
|
2851
3511
|
};
|
|
2852
3512
|
};
|
|
2853
3513
|
/**
|
|
2854
|
-
*
|
|
3514
|
+
* ClubSettingsStaffApi - factory interface
|
|
2855
3515
|
* @export
|
|
2856
3516
|
*/
|
|
2857
|
-
export const
|
|
2858
|
-
const localVarFp =
|
|
3517
|
+
export const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
3518
|
+
const localVarFp = ClubSettingsStaffApiFp(configuration);
|
|
2859
3519
|
return {
|
|
2860
3520
|
/**
|
|
2861
|
-
*
|
|
2862
|
-
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
3521
|
+
*
|
|
2863
3522
|
* @param {*} [options] Override http request option.
|
|
2864
3523
|
* @throws {RequiredError}
|
|
2865
3524
|
*/
|
|
2866
|
-
|
|
2867
|
-
return localVarFp.
|
|
3525
|
+
getClubGeneralSettings(options) {
|
|
3526
|
+
return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
|
|
2868
3527
|
},
|
|
2869
3528
|
/**
|
|
2870
|
-
*
|
|
3529
|
+
*
|
|
2871
3530
|
* @param {*} [options] Override http request option.
|
|
2872
3531
|
* @throws {RequiredError}
|
|
2873
3532
|
*/
|
|
2874
|
-
|
|
2875
|
-
return localVarFp.
|
|
3533
|
+
getHoursSettings(options) {
|
|
3534
|
+
return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
|
|
2876
3535
|
},
|
|
2877
3536
|
/**
|
|
2878
|
-
*
|
|
3537
|
+
*
|
|
2879
3538
|
* @param {*} [options] Override http request option.
|
|
2880
3539
|
* @throws {RequiredError}
|
|
2881
3540
|
*/
|
|
2882
|
-
|
|
2883
|
-
return localVarFp.
|
|
3541
|
+
getPresentationSettings(options) {
|
|
3542
|
+
return localVarFp.getPresentationSettings(options).then((request) => request(axios, basePath));
|
|
2884
3543
|
},
|
|
2885
3544
|
/**
|
|
2886
|
-
*
|
|
2887
|
-
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3545
|
+
*
|
|
2888
3546
|
* @param {*} [options] Override http request option.
|
|
2889
3547
|
* @throws {RequiredError}
|
|
2890
3548
|
*/
|
|
2891
|
-
|
|
2892
|
-
return localVarFp.
|
|
3549
|
+
getReservationSettings(options) {
|
|
3550
|
+
return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
|
|
2893
3551
|
},
|
|
2894
3552
|
};
|
|
2895
3553
|
};
|
|
2896
3554
|
/**
|
|
2897
|
-
*
|
|
3555
|
+
* ClubSettingsStaffApi - object-oriented interface
|
|
2898
3556
|
* @export
|
|
2899
|
-
* @class
|
|
3557
|
+
* @class ClubSettingsStaffApi
|
|
2900
3558
|
* @extends {BaseAPI}
|
|
2901
3559
|
*/
|
|
2902
|
-
export class
|
|
3560
|
+
export class ClubSettingsStaffApi extends BaseAPI {
|
|
2903
3561
|
/**
|
|
2904
|
-
*
|
|
2905
|
-
* @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
3562
|
+
*
|
|
2906
3563
|
* @param {*} [options] Override http request option.
|
|
2907
3564
|
* @throws {RequiredError}
|
|
2908
|
-
* @memberof
|
|
3565
|
+
* @memberof ClubSettingsStaffApi
|
|
2909
3566
|
*/
|
|
2910
|
-
|
|
2911
|
-
return
|
|
3567
|
+
getClubGeneralSettings(options) {
|
|
3568
|
+
return ClubSettingsStaffApiFp(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
|
|
2912
3569
|
}
|
|
2913
3570
|
/**
|
|
2914
|
-
*
|
|
3571
|
+
*
|
|
2915
3572
|
* @param {*} [options] Override http request option.
|
|
2916
3573
|
* @throws {RequiredError}
|
|
2917
|
-
* @memberof
|
|
3574
|
+
* @memberof ClubSettingsStaffApi
|
|
2918
3575
|
*/
|
|
2919
|
-
|
|
2920
|
-
return
|
|
3576
|
+
getHoursSettings(options) {
|
|
3577
|
+
return ClubSettingsStaffApiFp(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
|
|
2921
3578
|
}
|
|
2922
3579
|
/**
|
|
2923
|
-
*
|
|
3580
|
+
*
|
|
2924
3581
|
* @param {*} [options] Override http request option.
|
|
2925
3582
|
* @throws {RequiredError}
|
|
2926
|
-
* @memberof
|
|
3583
|
+
* @memberof ClubSettingsStaffApi
|
|
2927
3584
|
*/
|
|
2928
|
-
|
|
2929
|
-
return
|
|
3585
|
+
getPresentationSettings(options) {
|
|
3586
|
+
return ClubSettingsStaffApiFp(this.configuration).getPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
2930
3587
|
}
|
|
2931
3588
|
/**
|
|
2932
|
-
*
|
|
2933
|
-
* @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
3589
|
+
*
|
|
2934
3590
|
* @param {*} [options] Override http request option.
|
|
2935
3591
|
* @throws {RequiredError}
|
|
2936
|
-
* @memberof
|
|
3592
|
+
* @memberof ClubSettingsStaffApi
|
|
2937
3593
|
*/
|
|
2938
|
-
|
|
2939
|
-
return
|
|
3594
|
+
getReservationSettings(options) {
|
|
3595
|
+
return ClubSettingsStaffApiFp(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
2940
3596
|
}
|
|
2941
3597
|
}
|
|
2942
3598
|
/**
|
|
@@ -3706,64 +4362,28 @@ export class ClubsApi extends BaseAPI {
|
|
|
3706
4362
|
* @param {ClubsApiGetSportsByClubByIdRequest} requestParameters Request parameters.
|
|
3707
4363
|
* @param {*} [options] Override http request option.
|
|
3708
4364
|
* @throws {RequiredError}
|
|
3709
|
-
* @memberof ClubsApi
|
|
3710
|
-
*/
|
|
3711
|
-
getSportsByClubById(requestParameters, options) {
|
|
3712
|
-
return ClubsApiFp(this.configuration).getSportsByClubById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
3713
|
-
}
|
|
3714
|
-
}
|
|
3715
|
-
/**
|
|
3716
|
-
* ClubsManagerApi - axios parameter creator
|
|
3717
|
-
* @export
|
|
3718
|
-
*/
|
|
3719
|
-
export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
3720
|
-
return {
|
|
3721
|
-
/**
|
|
3722
|
-
* Ajoute un membre à un club
|
|
3723
|
-
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
3724
|
-
* @param {*} [options] Override http request option.
|
|
3725
|
-
* @throws {RequiredError}
|
|
3726
|
-
*/
|
|
3727
|
-
addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
|
|
3728
|
-
// verify required parameter 'addClubMemberRequest' is not null or undefined
|
|
3729
|
-
assertParamExists('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
3730
|
-
const localVarPath = `/api/clubs/members`;
|
|
3731
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3732
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3733
|
-
let baseOptions;
|
|
3734
|
-
if (configuration) {
|
|
3735
|
-
baseOptions = configuration.baseOptions;
|
|
3736
|
-
}
|
|
3737
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3738
|
-
const localVarHeaderParameter = {};
|
|
3739
|
-
const localVarQueryParameter = {};
|
|
3740
|
-
// authentication bearerAuth required
|
|
3741
|
-
// http bearer authentication required
|
|
3742
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3743
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3744
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3745
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3746
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3747
|
-
localVarRequestOptions.data = serializeDataIfNeeded(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
3748
|
-
return {
|
|
3749
|
-
url: toPathString(localVarUrlObj),
|
|
3750
|
-
options: localVarRequestOptions,
|
|
3751
|
-
};
|
|
3752
|
-
}),
|
|
4365
|
+
* @memberof ClubsApi
|
|
4366
|
+
*/
|
|
4367
|
+
getSportsByClubById(requestParameters, options) {
|
|
4368
|
+
return ClubsApiFp(this.configuration).getSportsByClubById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
4369
|
+
}
|
|
4370
|
+
}
|
|
4371
|
+
/**
|
|
4372
|
+
* ClubsManagerApi - axios parameter creator
|
|
4373
|
+
* @export
|
|
4374
|
+
*/
|
|
4375
|
+
export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
4376
|
+
return {
|
|
3753
4377
|
/**
|
|
3754
|
-
*
|
|
3755
|
-
* @param {
|
|
3756
|
-
* @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
|
|
4378
|
+
* Ajoute un membre à un club
|
|
4379
|
+
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
3757
4380
|
* @param {*} [options] Override http request option.
|
|
3758
4381
|
* @throws {RequiredError}
|
|
3759
4382
|
*/
|
|
3760
|
-
|
|
3761
|
-
// verify required parameter '
|
|
3762
|
-
assertParamExists('
|
|
3763
|
-
|
|
3764
|
-
assertParamExists('addCreditsToCustomer', 'addCreditsToCustomerRequest', addCreditsToCustomerRequest);
|
|
3765
|
-
const localVarPath = `/api/clubs/customers/{userId}/credits`
|
|
3766
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
4383
|
+
addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
|
|
4384
|
+
// verify required parameter 'addClubMemberRequest' is not null or undefined
|
|
4385
|
+
assertParamExists('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
4386
|
+
const localVarPath = `/api/clubs/members`;
|
|
3767
4387
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3768
4388
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3769
4389
|
let baseOptions;
|
|
@@ -3780,7 +4400,7 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3780
4400
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3781
4401
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3782
4402
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3783
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
4403
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addClubMemberRequest, localVarRequestOptions, configuration);
|
|
3784
4404
|
return {
|
|
3785
4405
|
url: toPathString(localVarUrlObj),
|
|
3786
4406
|
options: localVarRequestOptions,
|
|
@@ -4262,6 +4882,38 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4262
4882
|
options: localVarRequestOptions,
|
|
4263
4883
|
};
|
|
4264
4884
|
}),
|
|
4885
|
+
/**
|
|
4886
|
+
*
|
|
4887
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
4888
|
+
* @param {*} [options] Override http request option.
|
|
4889
|
+
* @throws {RequiredError}
|
|
4890
|
+
*/
|
|
4891
|
+
updateClubPresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
|
|
4892
|
+
// verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
|
|
4893
|
+
assertParamExists('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
|
|
4894
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
4895
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4896
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4897
|
+
let baseOptions;
|
|
4898
|
+
if (configuration) {
|
|
4899
|
+
baseOptions = configuration.baseOptions;
|
|
4900
|
+
}
|
|
4901
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4902
|
+
const localVarHeaderParameter = {};
|
|
4903
|
+
const localVarQueryParameter = {};
|
|
4904
|
+
// authentication bearerAuth required
|
|
4905
|
+
// http bearer authentication required
|
|
4906
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4907
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4908
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4909
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4910
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4911
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
|
|
4912
|
+
return {
|
|
4913
|
+
url: toPathString(localVarUrlObj),
|
|
4914
|
+
options: localVarRequestOptions,
|
|
4915
|
+
};
|
|
4916
|
+
}),
|
|
4265
4917
|
/**
|
|
4266
4918
|
*
|
|
4267
4919
|
* @param {string} courtId
|
|
@@ -4358,22 +5010,6 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
4358
5010
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4359
5011
|
});
|
|
4360
5012
|
},
|
|
4361
|
-
/**
|
|
4362
|
-
*
|
|
4363
|
-
* @param {string} userId
|
|
4364
|
-
* @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
|
|
4365
|
-
* @param {*} [options] Override http request option.
|
|
4366
|
-
* @throws {RequiredError}
|
|
4367
|
-
*/
|
|
4368
|
-
addCreditsToCustomer(userId, addCreditsToCustomerRequest, options) {
|
|
4369
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4370
|
-
var _a, _b, _c;
|
|
4371
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addCreditsToCustomer(userId, addCreditsToCustomerRequest, options);
|
|
4372
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4373
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.addCreditsToCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4374
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4375
|
-
});
|
|
4376
|
-
},
|
|
4377
5013
|
/**
|
|
4378
5014
|
*
|
|
4379
5015
|
* @param {string} priceId
|
|
@@ -4600,6 +5236,21 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
4600
5236
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4601
5237
|
});
|
|
4602
5238
|
},
|
|
5239
|
+
/**
|
|
5240
|
+
*
|
|
5241
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
5242
|
+
* @param {*} [options] Override http request option.
|
|
5243
|
+
* @throws {RequiredError}
|
|
5244
|
+
*/
|
|
5245
|
+
updateClubPresentationSettings(updateClubPresentationSettingsRequest, options) {
|
|
5246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5247
|
+
var _a, _b, _c;
|
|
5248
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
|
|
5249
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5250
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.updateClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5251
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5252
|
+
});
|
|
5253
|
+
},
|
|
4603
5254
|
/**
|
|
4604
5255
|
*
|
|
4605
5256
|
* @param {string} courtId
|
|
@@ -4650,15 +5301,6 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
4650
5301
|
addClubMember(requestParameters, options) {
|
|
4651
5302
|
return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
4652
5303
|
},
|
|
4653
|
-
/**
|
|
4654
|
-
*
|
|
4655
|
-
* @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
|
|
4656
|
-
* @param {*} [options] Override http request option.
|
|
4657
|
-
* @throws {RequiredError}
|
|
4658
|
-
*/
|
|
4659
|
-
addCreditsToCustomer(requestParameters, options) {
|
|
4660
|
-
return localVarFp.addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(axios, basePath));
|
|
4661
|
-
},
|
|
4662
5304
|
/**
|
|
4663
5305
|
*
|
|
4664
5306
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -4793,6 +5435,15 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
4793
5435
|
updateClubInfos(requestParameters, options) {
|
|
4794
5436
|
return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
4795
5437
|
},
|
|
5438
|
+
/**
|
|
5439
|
+
*
|
|
5440
|
+
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
5441
|
+
* @param {*} [options] Override http request option.
|
|
5442
|
+
* @throws {RequiredError}
|
|
5443
|
+
*/
|
|
5444
|
+
updateClubPresentationSettings(requestParameters, options) {
|
|
5445
|
+
return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
5446
|
+
},
|
|
4796
5447
|
/**
|
|
4797
5448
|
*
|
|
4798
5449
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -4830,16 +5481,6 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
4830
5481
|
addClubMember(requestParameters, options) {
|
|
4831
5482
|
return ClubsManagerApiFp(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4832
5483
|
}
|
|
4833
|
-
/**
|
|
4834
|
-
*
|
|
4835
|
-
* @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
|
|
4836
|
-
* @param {*} [options] Override http request option.
|
|
4837
|
-
* @throws {RequiredError}
|
|
4838
|
-
* @memberof ClubsManagerApi
|
|
4839
|
-
*/
|
|
4840
|
-
addCreditsToCustomer(requestParameters, options) {
|
|
4841
|
-
return ClubsManagerApiFp(this.configuration).addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4842
|
-
}
|
|
4843
5484
|
/**
|
|
4844
5485
|
*
|
|
4845
5486
|
* @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
@@ -4989,6 +5630,16 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
4989
5630
|
updateClubInfos(requestParameters, options) {
|
|
4990
5631
|
return ClubsManagerApiFp(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
4991
5632
|
}
|
|
5633
|
+
/**
|
|
5634
|
+
*
|
|
5635
|
+
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
5636
|
+
* @param {*} [options] Override http request option.
|
|
5637
|
+
* @throws {RequiredError}
|
|
5638
|
+
* @memberof ClubsManagerApi
|
|
5639
|
+
*/
|
|
5640
|
+
updateClubPresentationSettings(requestParameters, options) {
|
|
5641
|
+
return ClubsManagerApiFp(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5642
|
+
}
|
|
4992
5643
|
/**
|
|
4993
5644
|
*
|
|
4994
5645
|
* @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
|
|
@@ -5097,6 +5748,33 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
5097
5748
|
options: localVarRequestOptions,
|
|
5098
5749
|
};
|
|
5099
5750
|
}),
|
|
5751
|
+
/**
|
|
5752
|
+
*
|
|
5753
|
+
* @param {*} [options] Override http request option.
|
|
5754
|
+
* @throws {RequiredError}
|
|
5755
|
+
*/
|
|
5756
|
+
getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5757
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
5758
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5759
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5760
|
+
let baseOptions;
|
|
5761
|
+
if (configuration) {
|
|
5762
|
+
baseOptions = configuration.baseOptions;
|
|
5763
|
+
}
|
|
5764
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5765
|
+
const localVarHeaderParameter = {};
|
|
5766
|
+
const localVarQueryParameter = {};
|
|
5767
|
+
// authentication bearerAuth required
|
|
5768
|
+
// http bearer authentication required
|
|
5769
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5770
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5771
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5772
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5773
|
+
return {
|
|
5774
|
+
url: toPathString(localVarUrlObj),
|
|
5775
|
+
options: localVarRequestOptions,
|
|
5776
|
+
};
|
|
5777
|
+
}),
|
|
5100
5778
|
/**
|
|
5101
5779
|
* Récupère les rôles d\'un club
|
|
5102
5780
|
* @param {*} [options] Override http request option.
|
|
@@ -5260,6 +5938,20 @@ export const ClubsStaffApiFp = function (configuration) {
|
|
|
5260
5938
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5261
5939
|
});
|
|
5262
5940
|
},
|
|
5941
|
+
/**
|
|
5942
|
+
*
|
|
5943
|
+
* @param {*} [options] Override http request option.
|
|
5944
|
+
* @throws {RequiredError}
|
|
5945
|
+
*/
|
|
5946
|
+
getClubPresentationSettings(options) {
|
|
5947
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5948
|
+
var _a, _b, _c;
|
|
5949
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPresentationSettings(options);
|
|
5950
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5951
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.getClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5952
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5953
|
+
});
|
|
5954
|
+
},
|
|
5263
5955
|
/**
|
|
5264
5956
|
* Récupère les rôles d\'un club
|
|
5265
5957
|
* @param {*} [options] Override http request option.
|
|
@@ -5350,6 +6042,14 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
5350
6042
|
getClubMembers(options) {
|
|
5351
6043
|
return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
|
|
5352
6044
|
},
|
|
6045
|
+
/**
|
|
6046
|
+
*
|
|
6047
|
+
* @param {*} [options] Override http request option.
|
|
6048
|
+
* @throws {RequiredError}
|
|
6049
|
+
*/
|
|
6050
|
+
getClubPresentationSettings(options) {
|
|
6051
|
+
return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
|
|
6052
|
+
},
|
|
5353
6053
|
/**
|
|
5354
6054
|
* Récupère les rôles d\'un club
|
|
5355
6055
|
* @param {*} [options] Override http request option.
|
|
@@ -5419,6 +6119,15 @@ export class ClubsStaffApi extends BaseAPI {
|
|
|
5419
6119
|
getClubMembers(options) {
|
|
5420
6120
|
return ClubsStaffApiFp(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
|
|
5421
6121
|
}
|
|
6122
|
+
/**
|
|
6123
|
+
*
|
|
6124
|
+
* @param {*} [options] Override http request option.
|
|
6125
|
+
* @throws {RequiredError}
|
|
6126
|
+
* @memberof ClubsStaffApi
|
|
6127
|
+
*/
|
|
6128
|
+
getClubPresentationSettings(options) {
|
|
6129
|
+
return ClubsStaffApiFp(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
6130
|
+
}
|
|
5422
6131
|
/**
|
|
5423
6132
|
* Récupère les rôles d\'un club
|
|
5424
6133
|
* @param {*} [options] Override http request option.
|
|
@@ -6661,98 +7370,6 @@ export class SportsPublicApi extends BaseAPI {
|
|
|
6661
7370
|
return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
|
|
6662
7371
|
}
|
|
6663
7372
|
}
|
|
6664
|
-
/**
|
|
6665
|
-
* SportsStaffApi - axios parameter creator
|
|
6666
|
-
* @export
|
|
6667
|
-
*/
|
|
6668
|
-
export const SportsStaffApiAxiosParamCreator = function (configuration) {
|
|
6669
|
-
return {
|
|
6670
|
-
/**
|
|
6671
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6672
|
-
* @param {*} [options] Override http request option.
|
|
6673
|
-
* @throws {RequiredError}
|
|
6674
|
-
*/
|
|
6675
|
-
getAllSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6676
|
-
const localVarPath = `/api/sports`;
|
|
6677
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6678
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6679
|
-
let baseOptions;
|
|
6680
|
-
if (configuration) {
|
|
6681
|
-
baseOptions = configuration.baseOptions;
|
|
6682
|
-
}
|
|
6683
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6684
|
-
const localVarHeaderParameter = {};
|
|
6685
|
-
const localVarQueryParameter = {};
|
|
6686
|
-
// authentication bearerAuth required
|
|
6687
|
-
// http bearer authentication required
|
|
6688
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6689
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6690
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6691
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6692
|
-
return {
|
|
6693
|
-
url: toPathString(localVarUrlObj),
|
|
6694
|
-
options: localVarRequestOptions,
|
|
6695
|
-
};
|
|
6696
|
-
}),
|
|
6697
|
-
};
|
|
6698
|
-
};
|
|
6699
|
-
/**
|
|
6700
|
-
* SportsStaffApi - functional programming interface
|
|
6701
|
-
* @export
|
|
6702
|
-
*/
|
|
6703
|
-
export const SportsStaffApiFp = function (configuration) {
|
|
6704
|
-
const localVarAxiosParamCreator = SportsStaffApiAxiosParamCreator(configuration);
|
|
6705
|
-
return {
|
|
6706
|
-
/**
|
|
6707
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6708
|
-
* @param {*} [options] Override http request option.
|
|
6709
|
-
* @throws {RequiredError}
|
|
6710
|
-
*/
|
|
6711
|
-
getAllSports(options) {
|
|
6712
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6713
|
-
var _a, _b, _c;
|
|
6714
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllSports(options);
|
|
6715
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6716
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SportsStaffApi.getAllSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6717
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6718
|
-
});
|
|
6719
|
-
},
|
|
6720
|
-
};
|
|
6721
|
-
};
|
|
6722
|
-
/**
|
|
6723
|
-
* SportsStaffApi - factory interface
|
|
6724
|
-
* @export
|
|
6725
|
-
*/
|
|
6726
|
-
export const SportsStaffApiFactory = function (configuration, basePath, axios) {
|
|
6727
|
-
const localVarFp = SportsStaffApiFp(configuration);
|
|
6728
|
-
return {
|
|
6729
|
-
/**
|
|
6730
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6731
|
-
* @param {*} [options] Override http request option.
|
|
6732
|
-
* @throws {RequiredError}
|
|
6733
|
-
*/
|
|
6734
|
-
getAllSports(options) {
|
|
6735
|
-
return localVarFp.getAllSports(options).then((request) => request(axios, basePath));
|
|
6736
|
-
},
|
|
6737
|
-
};
|
|
6738
|
-
};
|
|
6739
|
-
/**
|
|
6740
|
-
* SportsStaffApi - object-oriented interface
|
|
6741
|
-
* @export
|
|
6742
|
-
* @class SportsStaffApi
|
|
6743
|
-
* @extends {BaseAPI}
|
|
6744
|
-
*/
|
|
6745
|
-
export class SportsStaffApi extends BaseAPI {
|
|
6746
|
-
/**
|
|
6747
|
-
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6748
|
-
* @param {*} [options] Override http request option.
|
|
6749
|
-
* @throws {RequiredError}
|
|
6750
|
-
* @memberof SportsStaffApi
|
|
6751
|
-
*/
|
|
6752
|
-
getAllSports(options) {
|
|
6753
|
-
return SportsStaffApiFp(this.configuration).getAllSports(options).then((request) => request(this.axios, this.basePath));
|
|
6754
|
-
}
|
|
6755
|
-
}
|
|
6756
7373
|
/**
|
|
6757
7374
|
* SubscriptionsManagerApi - axios parameter creator
|
|
6758
7375
|
* @export
|
|
@@ -7898,33 +8515,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7898
8515
|
options: localVarRequestOptions,
|
|
7899
8516
|
};
|
|
7900
8517
|
}),
|
|
7901
|
-
/**
|
|
7902
|
-
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
7903
|
-
* @param {*} [options] Override http request option.
|
|
7904
|
-
* @throws {RequiredError}
|
|
7905
|
-
*/
|
|
7906
|
-
getMyClubMemberships: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7907
|
-
const localVarPath = `/api/users/me/club-memberships`;
|
|
7908
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7909
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7910
|
-
let baseOptions;
|
|
7911
|
-
if (configuration) {
|
|
7912
|
-
baseOptions = configuration.baseOptions;
|
|
7913
|
-
}
|
|
7914
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7915
|
-
const localVarHeaderParameter = {};
|
|
7916
|
-
const localVarQueryParameter = {};
|
|
7917
|
-
// authentication bearerAuth required
|
|
7918
|
-
// http bearer authentication required
|
|
7919
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7920
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7921
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7922
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7923
|
-
return {
|
|
7924
|
-
url: toPathString(localVarUrlObj),
|
|
7925
|
-
options: localVarRequestOptions,
|
|
7926
|
-
};
|
|
7927
|
-
}),
|
|
7928
8518
|
/**
|
|
7929
8519
|
*
|
|
7930
8520
|
* @param {number} [radiusInKm]
|
|
@@ -8884,20 +9474,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
8884
9474
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8885
9475
|
});
|
|
8886
9476
|
},
|
|
8887
|
-
/**
|
|
8888
|
-
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
8889
|
-
* @param {*} [options] Override http request option.
|
|
8890
|
-
* @throws {RequiredError}
|
|
8891
|
-
*/
|
|
8892
|
-
getMyClubMemberships(options) {
|
|
8893
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8894
|
-
var _a, _b, _c;
|
|
8895
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClubMemberships(options);
|
|
8896
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8897
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getMyClubMemberships']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8898
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8899
|
-
});
|
|
8900
|
-
},
|
|
8901
9477
|
/**
|
|
8902
9478
|
*
|
|
8903
9479
|
* @param {number} [radiusInKm]
|
|
@@ -9376,14 +9952,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9376
9952
|
getMe(options) {
|
|
9377
9953
|
return localVarFp.getMe(options).then((request) => request(axios, basePath));
|
|
9378
9954
|
},
|
|
9379
|
-
/**
|
|
9380
|
-
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
9381
|
-
* @param {*} [options] Override http request option.
|
|
9382
|
-
* @throws {RequiredError}
|
|
9383
|
-
*/
|
|
9384
|
-
getMyClubMemberships(options) {
|
|
9385
|
-
return localVarFp.getMyClubMemberships(options).then((request) => request(axios, basePath));
|
|
9386
|
-
},
|
|
9387
9955
|
/**
|
|
9388
9956
|
*
|
|
9389
9957
|
* @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
|
|
@@ -9711,15 +10279,6 @@ export class UsersApi extends BaseAPI {
|
|
|
9711
10279
|
getMe(options) {
|
|
9712
10280
|
return UsersApiFp(this.configuration).getMe(options).then((request) => request(this.axios, this.basePath));
|
|
9713
10281
|
}
|
|
9714
|
-
/**
|
|
9715
|
-
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
9716
|
-
* @param {*} [options] Override http request option.
|
|
9717
|
-
* @throws {RequiredError}
|
|
9718
|
-
* @memberof UsersApi
|
|
9719
|
-
*/
|
|
9720
|
-
getMyClubMemberships(options) {
|
|
9721
|
-
return UsersApiFp(this.configuration).getMyClubMemberships(options).then((request) => request(this.axios, this.basePath));
|
|
9722
|
-
}
|
|
9723
10282
|
/**
|
|
9724
10283
|
*
|
|
9725
10284
|
* @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
|