@tennac-booking/sdk 1.0.26 → 1.0.28
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 +5 -0
- package/README.md +10 -2
- package/api.ts +472 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +294 -1
- package/dist/api.js +314 -4
- 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 +294 -1
- package/dist/esm/api.js +307 -1
- 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/ClubsApi.md +61 -0
- package/docs/GetClubUsersById200Response.md +20 -0
- package/docs/GetFavoriteClubs200Response.md +20 -0
- package/docs/PublicClubUser.md +34 -0
- package/docs/PublicClubUserLevelBySportsInner.md +22 -0
- package/docs/UserProfileApi.md +155 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Pandook API
|
|
6
6
|
* API for managing pickle ball games and players
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.28
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = void 0;
|
|
25
|
+
exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.AdminClubsApi = exports.AdminClubsApiFactory = exports.AdminClubsApiFp = exports.AdminClubsApiAxiosParamCreator = exports.AdminClubSubscriptionsApi = exports.AdminClubSubscriptionsApiFactory = exports.AdminClubSubscriptionsApiFp = exports.AdminClubSubscriptionsApiAxiosParamCreator = exports.AdminClubSlotsApi = exports.AdminClubSlotsApiFactory = exports.AdminClubSlotsApiFp = exports.AdminClubSlotsApiAxiosParamCreator = exports.GetInvoicesAdminStatusEnum = exports.AdminClubAnalyticsApi = exports.AdminClubAnalyticsApiFactory = exports.AdminClubAnalyticsApiFp = exports.AdminClubAnalyticsApiAxiosParamCreator = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.EventBookingStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = exports.BookingPopulatedStatusEnum = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
|
|
26
|
+
exports.UserApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffEventsApi = exports.StaffEventsApiFactory = exports.StaffEventsApiFp = exports.StaffEventsApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerEventsApi = exports.ManagerEventsApiFactory = exports.ManagerEventsApiFp = exports.ManagerEventsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = void 0;
|
|
27
|
+
exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -1980,6 +1980,113 @@ exports.GetInvoicesStatusEnum = {
|
|
|
1980
1980
|
Canceled: 'canceled',
|
|
1981
1981
|
Expired: 'expired'
|
|
1982
1982
|
};
|
|
1983
|
+
/**
|
|
1984
|
+
* ClubsApi - axios parameter creator
|
|
1985
|
+
* @export
|
|
1986
|
+
*/
|
|
1987
|
+
const ClubsApiAxiosParamCreator = function (configuration) {
|
|
1988
|
+
return {
|
|
1989
|
+
/**
|
|
1990
|
+
* Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
|
|
1991
|
+
* @summary Récupérer la liste publique des utilisateurs d\'un club
|
|
1992
|
+
* @param {string} id ID du club
|
|
1993
|
+
* @param {*} [options] Override http request option.
|
|
1994
|
+
* @throws {RequiredError}
|
|
1995
|
+
*/
|
|
1996
|
+
getClubUsersById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1997
|
+
// verify required parameter 'id' is not null or undefined
|
|
1998
|
+
(0, common_1.assertParamExists)('getClubUsersById', 'id', id);
|
|
1999
|
+
const localVarPath = `/api/clubs/{id}/clubUsers`
|
|
2000
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2001
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2002
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2003
|
+
let baseOptions;
|
|
2004
|
+
if (configuration) {
|
|
2005
|
+
baseOptions = configuration.baseOptions;
|
|
2006
|
+
}
|
|
2007
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2008
|
+
const localVarHeaderParameter = {};
|
|
2009
|
+
const localVarQueryParameter = {};
|
|
2010
|
+
// authentication bearerAuth required
|
|
2011
|
+
// http bearer authentication required
|
|
2012
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2013
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2014
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2015
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2016
|
+
return {
|
|
2017
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2018
|
+
options: localVarRequestOptions,
|
|
2019
|
+
};
|
|
2020
|
+
}),
|
|
2021
|
+
};
|
|
2022
|
+
};
|
|
2023
|
+
exports.ClubsApiAxiosParamCreator = ClubsApiAxiosParamCreator;
|
|
2024
|
+
/**
|
|
2025
|
+
* ClubsApi - functional programming interface
|
|
2026
|
+
* @export
|
|
2027
|
+
*/
|
|
2028
|
+
const ClubsApiFp = function (configuration) {
|
|
2029
|
+
const localVarAxiosParamCreator = (0, exports.ClubsApiAxiosParamCreator)(configuration);
|
|
2030
|
+
return {
|
|
2031
|
+
/**
|
|
2032
|
+
* Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
|
|
2033
|
+
* @summary Récupérer la liste publique des utilisateurs d\'un club
|
|
2034
|
+
* @param {string} id ID du club
|
|
2035
|
+
* @param {*} [options] Override http request option.
|
|
2036
|
+
* @throws {RequiredError}
|
|
2037
|
+
*/
|
|
2038
|
+
getClubUsersById(id, options) {
|
|
2039
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2040
|
+
var _a, _b, _c;
|
|
2041
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubUsersById(id, options);
|
|
2042
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2043
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.getClubUsersById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2044
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2045
|
+
});
|
|
2046
|
+
},
|
|
2047
|
+
};
|
|
2048
|
+
};
|
|
2049
|
+
exports.ClubsApiFp = ClubsApiFp;
|
|
2050
|
+
/**
|
|
2051
|
+
* ClubsApi - factory interface
|
|
2052
|
+
* @export
|
|
2053
|
+
*/
|
|
2054
|
+
const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
2055
|
+
const localVarFp = (0, exports.ClubsApiFp)(configuration);
|
|
2056
|
+
return {
|
|
2057
|
+
/**
|
|
2058
|
+
* Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
|
|
2059
|
+
* @summary Récupérer la liste publique des utilisateurs d\'un club
|
|
2060
|
+
* @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
|
|
2061
|
+
* @param {*} [options] Override http request option.
|
|
2062
|
+
* @throws {RequiredError}
|
|
2063
|
+
*/
|
|
2064
|
+
getClubUsersById(requestParameters, options) {
|
|
2065
|
+
return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2066
|
+
},
|
|
2067
|
+
};
|
|
2068
|
+
};
|
|
2069
|
+
exports.ClubsApiFactory = ClubsApiFactory;
|
|
2070
|
+
/**
|
|
2071
|
+
* ClubsApi - object-oriented interface
|
|
2072
|
+
* @export
|
|
2073
|
+
* @class ClubsApi
|
|
2074
|
+
* @extends {BaseAPI}
|
|
2075
|
+
*/
|
|
2076
|
+
class ClubsApi extends base_1.BaseAPI {
|
|
2077
|
+
/**
|
|
2078
|
+
* Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
|
|
2079
|
+
* @summary Récupérer la liste publique des utilisateurs d\'un club
|
|
2080
|
+
* @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
|
|
2081
|
+
* @param {*} [options] Override http request option.
|
|
2082
|
+
* @throws {RequiredError}
|
|
2083
|
+
* @memberof ClubsApi
|
|
2084
|
+
*/
|
|
2085
|
+
getClubUsersById(requestParameters, options) {
|
|
2086
|
+
return (0, exports.ClubsApiFp)(this.configuration).getClubUsersById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
exports.ClubsApi = ClubsApi;
|
|
1983
2090
|
/**
|
|
1984
2091
|
* EventsApi - axios parameter creator
|
|
1985
2092
|
* @export
|
|
@@ -6649,6 +6756,39 @@ exports.UserPaymentApi = UserPaymentApi;
|
|
|
6649
6756
|
*/
|
|
6650
6757
|
const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
6651
6758
|
return {
|
|
6759
|
+
/**
|
|
6760
|
+
*
|
|
6761
|
+
* @summary Add a club to the user\'s favorite list
|
|
6762
|
+
* @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
|
|
6763
|
+
* @param {*} [options] Override http request option.
|
|
6764
|
+
* @throws {RequiredError}
|
|
6765
|
+
*/
|
|
6766
|
+
addFavoriteClub: (addFavoriteClubRequestBody_1, ...args_1) => __awaiter(this, [addFavoriteClubRequestBody_1, ...args_1], void 0, function* (addFavoriteClubRequestBody, options = {}) {
|
|
6767
|
+
// verify required parameter 'addFavoriteClubRequestBody' is not null or undefined
|
|
6768
|
+
(0, common_1.assertParamExists)('addFavoriteClub', 'addFavoriteClubRequestBody', addFavoriteClubRequestBody);
|
|
6769
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
6770
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6771
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6772
|
+
let baseOptions;
|
|
6773
|
+
if (configuration) {
|
|
6774
|
+
baseOptions = configuration.baseOptions;
|
|
6775
|
+
}
|
|
6776
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6777
|
+
const localVarHeaderParameter = {};
|
|
6778
|
+
const localVarQueryParameter = {};
|
|
6779
|
+
// authentication bearerAuth required
|
|
6780
|
+
// http bearer authentication required
|
|
6781
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6782
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6783
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6784
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6785
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6786
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addFavoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
6787
|
+
return {
|
|
6788
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6789
|
+
options: localVarRequestOptions,
|
|
6790
|
+
};
|
|
6791
|
+
}),
|
|
6652
6792
|
/**
|
|
6653
6793
|
*
|
|
6654
6794
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -6722,6 +6862,34 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
6722
6862
|
options: localVarRequestOptions,
|
|
6723
6863
|
};
|
|
6724
6864
|
}),
|
|
6865
|
+
/**
|
|
6866
|
+
*
|
|
6867
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
6868
|
+
* @param {*} [options] Override http request option.
|
|
6869
|
+
* @throws {RequiredError}
|
|
6870
|
+
*/
|
|
6871
|
+
getFavoriteClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6872
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
6873
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6874
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6875
|
+
let baseOptions;
|
|
6876
|
+
if (configuration) {
|
|
6877
|
+
baseOptions = configuration.baseOptions;
|
|
6878
|
+
}
|
|
6879
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6880
|
+
const localVarHeaderParameter = {};
|
|
6881
|
+
const localVarQueryParameter = {};
|
|
6882
|
+
// authentication bearerAuth required
|
|
6883
|
+
// http bearer authentication required
|
|
6884
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6885
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6886
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6887
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6888
|
+
return {
|
|
6889
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6890
|
+
options: localVarRequestOptions,
|
|
6891
|
+
};
|
|
6892
|
+
}),
|
|
6725
6893
|
/**
|
|
6726
6894
|
*
|
|
6727
6895
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -6918,6 +7086,40 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
6918
7086
|
options: localVarRequestOptions,
|
|
6919
7087
|
};
|
|
6920
7088
|
}),
|
|
7089
|
+
/**
|
|
7090
|
+
*
|
|
7091
|
+
* @summary Remove a club from the user\'s favorite list
|
|
7092
|
+
* @param {string} clubId ID of the club to remove from favorites
|
|
7093
|
+
* @param {*} [options] Override http request option.
|
|
7094
|
+
* @throws {RequiredError}
|
|
7095
|
+
*/
|
|
7096
|
+
removeFavoriteClub: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
7097
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
7098
|
+
(0, common_1.assertParamExists)('removeFavoriteClub', 'clubId', clubId);
|
|
7099
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
7100
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7101
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7102
|
+
let baseOptions;
|
|
7103
|
+
if (configuration) {
|
|
7104
|
+
baseOptions = configuration.baseOptions;
|
|
7105
|
+
}
|
|
7106
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
7107
|
+
const localVarHeaderParameter = {};
|
|
7108
|
+
const localVarQueryParameter = {};
|
|
7109
|
+
// authentication bearerAuth required
|
|
7110
|
+
// http bearer authentication required
|
|
7111
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7112
|
+
if (clubId !== undefined) {
|
|
7113
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
7114
|
+
}
|
|
7115
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7116
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7117
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7118
|
+
return {
|
|
7119
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7120
|
+
options: localVarRequestOptions,
|
|
7121
|
+
};
|
|
7122
|
+
}),
|
|
6921
7123
|
/**
|
|
6922
7124
|
*
|
|
6923
7125
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -7126,6 +7328,22 @@ exports.UserProfileApiAxiosParamCreator = UserProfileApiAxiosParamCreator;
|
|
|
7126
7328
|
const UserProfileApiFp = function (configuration) {
|
|
7127
7329
|
const localVarAxiosParamCreator = (0, exports.UserProfileApiAxiosParamCreator)(configuration);
|
|
7128
7330
|
return {
|
|
7331
|
+
/**
|
|
7332
|
+
*
|
|
7333
|
+
* @summary Add a club to the user\'s favorite list
|
|
7334
|
+
* @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
|
|
7335
|
+
* @param {*} [options] Override http request option.
|
|
7336
|
+
* @throws {RequiredError}
|
|
7337
|
+
*/
|
|
7338
|
+
addFavoriteClub(addFavoriteClubRequestBody, options) {
|
|
7339
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7340
|
+
var _a, _b, _c;
|
|
7341
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addFavoriteClub(addFavoriteClubRequestBody, options);
|
|
7342
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7343
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.addFavoriteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7344
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7345
|
+
});
|
|
7346
|
+
},
|
|
7129
7347
|
/**
|
|
7130
7348
|
*
|
|
7131
7349
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -7160,6 +7378,21 @@ const UserProfileApiFp = function (configuration) {
|
|
|
7160
7378
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7161
7379
|
});
|
|
7162
7380
|
},
|
|
7381
|
+
/**
|
|
7382
|
+
*
|
|
7383
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
7384
|
+
* @param {*} [options] Override http request option.
|
|
7385
|
+
* @throws {RequiredError}
|
|
7386
|
+
*/
|
|
7387
|
+
getFavoriteClubs(options) {
|
|
7388
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7389
|
+
var _a, _b, _c;
|
|
7390
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoriteClubs(options);
|
|
7391
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7392
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getFavoriteClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7393
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7394
|
+
});
|
|
7395
|
+
},
|
|
7163
7396
|
/**
|
|
7164
7397
|
*
|
|
7165
7398
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -7265,6 +7498,22 @@ const UserProfileApiFp = function (configuration) {
|
|
|
7265
7498
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7266
7499
|
});
|
|
7267
7500
|
},
|
|
7501
|
+
/**
|
|
7502
|
+
*
|
|
7503
|
+
* @summary Remove a club from the user\'s favorite list
|
|
7504
|
+
* @param {string} clubId ID of the club to remove from favorites
|
|
7505
|
+
* @param {*} [options] Override http request option.
|
|
7506
|
+
* @throws {RequiredError}
|
|
7507
|
+
*/
|
|
7508
|
+
removeFavoriteClub(clubId, options) {
|
|
7509
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7510
|
+
var _a, _b, _c;
|
|
7511
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFavoriteClub(clubId, options);
|
|
7512
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7513
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.removeFavoriteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7514
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7515
|
+
});
|
|
7516
|
+
},
|
|
7268
7517
|
/**
|
|
7269
7518
|
*
|
|
7270
7519
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -7371,6 +7620,16 @@ exports.UserProfileApiFp = UserProfileApiFp;
|
|
|
7371
7620
|
const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
7372
7621
|
const localVarFp = (0, exports.UserProfileApiFp)(configuration);
|
|
7373
7622
|
return {
|
|
7623
|
+
/**
|
|
7624
|
+
*
|
|
7625
|
+
* @summary Add a club to the user\'s favorite list
|
|
7626
|
+
* @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
|
|
7627
|
+
* @param {*} [options] Override http request option.
|
|
7628
|
+
* @throws {RequiredError}
|
|
7629
|
+
*/
|
|
7630
|
+
addFavoriteClub(requestParameters, options) {
|
|
7631
|
+
return localVarFp.addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(axios, basePath));
|
|
7632
|
+
},
|
|
7374
7633
|
/**
|
|
7375
7634
|
*
|
|
7376
7635
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -7391,6 +7650,15 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
7391
7650
|
getAllUsers(requestParameters = {}, options) {
|
|
7392
7651
|
return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
7393
7652
|
},
|
|
7653
|
+
/**
|
|
7654
|
+
*
|
|
7655
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
7656
|
+
* @param {*} [options] Override http request option.
|
|
7657
|
+
* @throws {RequiredError}
|
|
7658
|
+
*/
|
|
7659
|
+
getFavoriteClubs(options) {
|
|
7660
|
+
return localVarFp.getFavoriteClubs(options).then((request) => request(axios, basePath));
|
|
7661
|
+
},
|
|
7394
7662
|
/**
|
|
7395
7663
|
*
|
|
7396
7664
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -7454,6 +7722,16 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
7454
7722
|
getUserProfileVisibility(options) {
|
|
7455
7723
|
return localVarFp.getUserProfileVisibility(options).then((request) => request(axios, basePath));
|
|
7456
7724
|
},
|
|
7725
|
+
/**
|
|
7726
|
+
*
|
|
7727
|
+
* @summary Remove a club from the user\'s favorite list
|
|
7728
|
+
* @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
|
7729
|
+
* @param {*} [options] Override http request option.
|
|
7730
|
+
* @throws {RequiredError}
|
|
7731
|
+
*/
|
|
7732
|
+
removeFavoriteClub(requestParameters, options) {
|
|
7733
|
+
return localVarFp.removeFavoriteClub(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
7734
|
+
},
|
|
7457
7735
|
/**
|
|
7458
7736
|
*
|
|
7459
7737
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -7524,6 +7802,17 @@ exports.UserProfileApiFactory = UserProfileApiFactory;
|
|
|
7524
7802
|
* @extends {BaseAPI}
|
|
7525
7803
|
*/
|
|
7526
7804
|
class UserProfileApi extends base_1.BaseAPI {
|
|
7805
|
+
/**
|
|
7806
|
+
*
|
|
7807
|
+
* @summary Add a club to the user\'s favorite list
|
|
7808
|
+
* @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
|
|
7809
|
+
* @param {*} [options] Override http request option.
|
|
7810
|
+
* @throws {RequiredError}
|
|
7811
|
+
* @memberof UserProfileApi
|
|
7812
|
+
*/
|
|
7813
|
+
addFavoriteClub(requestParameters, options) {
|
|
7814
|
+
return (0, exports.UserProfileApiFp)(this.configuration).addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7815
|
+
}
|
|
7527
7816
|
/**
|
|
7528
7817
|
*
|
|
7529
7818
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -7546,6 +7835,16 @@ class UserProfileApi extends base_1.BaseAPI {
|
|
|
7546
7835
|
getAllUsers(requestParameters = {}, options) {
|
|
7547
7836
|
return (0, exports.UserProfileApiFp)(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
7548
7837
|
}
|
|
7838
|
+
/**
|
|
7839
|
+
*
|
|
7840
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
7841
|
+
* @param {*} [options] Override http request option.
|
|
7842
|
+
* @throws {RequiredError}
|
|
7843
|
+
* @memberof UserProfileApi
|
|
7844
|
+
*/
|
|
7845
|
+
getFavoriteClubs(options) {
|
|
7846
|
+
return (0, exports.UserProfileApiFp)(this.configuration).getFavoriteClubs(options).then((request) => request(this.axios, this.basePath));
|
|
7847
|
+
}
|
|
7549
7848
|
/**
|
|
7550
7849
|
*
|
|
7551
7850
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -7616,6 +7915,17 @@ class UserProfileApi extends base_1.BaseAPI {
|
|
|
7616
7915
|
getUserProfileVisibility(options) {
|
|
7617
7916
|
return (0, exports.UserProfileApiFp)(this.configuration).getUserProfileVisibility(options).then((request) => request(this.axios, this.basePath));
|
|
7618
7917
|
}
|
|
7918
|
+
/**
|
|
7919
|
+
*
|
|
7920
|
+
* @summary Remove a club from the user\'s favorite list
|
|
7921
|
+
* @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
|
7922
|
+
* @param {*} [options] Override http request option.
|
|
7923
|
+
* @throws {RequiredError}
|
|
7924
|
+
* @memberof UserProfileApi
|
|
7925
|
+
*/
|
|
7926
|
+
removeFavoriteClub(requestParameters, options) {
|
|
7927
|
+
return (0, exports.UserProfileApiFp)(this.configuration).removeFavoriteClub(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
7928
|
+
}
|
|
7619
7929
|
/**
|
|
7620
7930
|
*
|
|
7621
7931
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.28
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Pandook API
|
|
6
6
|
* API for managing pickle ball games and players
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.28
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.28
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Pandook API
|
|
6
6
|
* API for managing pickle ball games and players
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.28
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.28
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Pandook API
|
|
6
6
|
* API for managing pickle ball games and players
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.28
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|