@tennac-booking/sdk 1.0.28 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +9 -1
- package/README.md +16 -3
- package/api.ts +699 -27
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +480 -17
- package/dist/api.js +345 -1
- 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 +480 -17
- package/dist/esm/api.js +345 -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/AddFavoritePlayerRequestBody.md +20 -0
- package/docs/FavoriteClubItem.md +26 -0
- package/docs/FavoritePlayerPublic.md +28 -0
- package/docs/FavoritePlayersIdsResponse.md +22 -0
- package/docs/FavoritePlayersResponse.md +20 -0
- package/docs/PublicClubUser.md +12 -0
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +28 -0
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +24 -0
- package/docs/UserBookingsResponse.md +26 -0
- package/docs/{GetFavoriteClubs200Response.md → UserFavoriteClubsResponse.md} +4 -4
- package/docs/UserProfileApi.md +268 -2
- 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.30
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -6789,6 +6789,39 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
6789
6789
|
options: localVarRequestOptions,
|
|
6790
6790
|
};
|
|
6791
6791
|
}),
|
|
6792
|
+
/**
|
|
6793
|
+
*
|
|
6794
|
+
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
6795
|
+
* @param {AddFavoritePlayerRequestBody} addFavoritePlayerRequestBody
|
|
6796
|
+
* @param {*} [options] Override http request option.
|
|
6797
|
+
* @throws {RequiredError}
|
|
6798
|
+
*/
|
|
6799
|
+
addFavoritePlayer: (addFavoritePlayerRequestBody_1, ...args_1) => __awaiter(this, [addFavoritePlayerRequestBody_1, ...args_1], void 0, function* (addFavoritePlayerRequestBody, options = {}) {
|
|
6800
|
+
// verify required parameter 'addFavoritePlayerRequestBody' is not null or undefined
|
|
6801
|
+
(0, common_1.assertParamExists)('addFavoritePlayer', 'addFavoritePlayerRequestBody', addFavoritePlayerRequestBody);
|
|
6802
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
6803
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6804
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6805
|
+
let baseOptions;
|
|
6806
|
+
if (configuration) {
|
|
6807
|
+
baseOptions = configuration.baseOptions;
|
|
6808
|
+
}
|
|
6809
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6810
|
+
const localVarHeaderParameter = {};
|
|
6811
|
+
const localVarQueryParameter = {};
|
|
6812
|
+
// authentication bearerAuth required
|
|
6813
|
+
// http bearer authentication required
|
|
6814
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6815
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6816
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6817
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6818
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6819
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addFavoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
6820
|
+
return {
|
|
6821
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6822
|
+
options: localVarRequestOptions,
|
|
6823
|
+
};
|
|
6824
|
+
}),
|
|
6792
6825
|
/**
|
|
6793
6826
|
*
|
|
6794
6827
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -6890,6 +6923,34 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
6890
6923
|
options: localVarRequestOptions,
|
|
6891
6924
|
};
|
|
6892
6925
|
}),
|
|
6926
|
+
/**
|
|
6927
|
+
*
|
|
6928
|
+
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
6929
|
+
* @param {*} [options] Override http request option.
|
|
6930
|
+
* @throws {RequiredError}
|
|
6931
|
+
*/
|
|
6932
|
+
getFavoritesPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6933
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
6934
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6935
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6936
|
+
let baseOptions;
|
|
6937
|
+
if (configuration) {
|
|
6938
|
+
baseOptions = configuration.baseOptions;
|
|
6939
|
+
}
|
|
6940
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6941
|
+
const localVarHeaderParameter = {};
|
|
6942
|
+
const localVarQueryParameter = {};
|
|
6943
|
+
// authentication bearerAuth required
|
|
6944
|
+
// http bearer authentication required
|
|
6945
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6946
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6947
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6948
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6949
|
+
return {
|
|
6950
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6951
|
+
options: localVarRequestOptions,
|
|
6952
|
+
};
|
|
6953
|
+
}),
|
|
6893
6954
|
/**
|
|
6894
6955
|
*
|
|
6895
6956
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -6974,6 +7035,74 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
6974
7035
|
options: localVarRequestOptions,
|
|
6975
7036
|
};
|
|
6976
7037
|
}),
|
|
7038
|
+
/**
|
|
7039
|
+
*
|
|
7040
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
7041
|
+
* @param {string} id ID de l\'utilisateur
|
|
7042
|
+
* @param {*} [options] Override http request option.
|
|
7043
|
+
* @throws {RequiredError}
|
|
7044
|
+
*/
|
|
7045
|
+
getPublicUserProfile: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
7046
|
+
// verify required parameter 'id' is not null or undefined
|
|
7047
|
+
(0, common_1.assertParamExists)('getPublicUserProfile', 'id', id);
|
|
7048
|
+
const localVarPath = `/api/users/profile/{id}`
|
|
7049
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7050
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7051
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7052
|
+
let baseOptions;
|
|
7053
|
+
if (configuration) {
|
|
7054
|
+
baseOptions = configuration.baseOptions;
|
|
7055
|
+
}
|
|
7056
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7057
|
+
const localVarHeaderParameter = {};
|
|
7058
|
+
const localVarQueryParameter = {};
|
|
7059
|
+
// authentication bearerAuth required
|
|
7060
|
+
// http bearer authentication required
|
|
7061
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7062
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7063
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7064
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7065
|
+
return {
|
|
7066
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7067
|
+
options: localVarRequestOptions,
|
|
7068
|
+
};
|
|
7069
|
+
}),
|
|
7070
|
+
/**
|
|
7071
|
+
*
|
|
7072
|
+
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
7073
|
+
* @param {number} [limit] Nombre maximum de réservations à retourner
|
|
7074
|
+
* @param {number} [skip] Nombre de réservations à ignorer (pagination)
|
|
7075
|
+
* @param {*} [options] Override http request option.
|
|
7076
|
+
* @throws {RequiredError}
|
|
7077
|
+
*/
|
|
7078
|
+
getUserBookings: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
|
|
7079
|
+
const localVarPath = `/api/users/me/bookings`;
|
|
7080
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7081
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7082
|
+
let baseOptions;
|
|
7083
|
+
if (configuration) {
|
|
7084
|
+
baseOptions = configuration.baseOptions;
|
|
7085
|
+
}
|
|
7086
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7087
|
+
const localVarHeaderParameter = {};
|
|
7088
|
+
const localVarQueryParameter = {};
|
|
7089
|
+
// authentication bearerAuth required
|
|
7090
|
+
// http bearer authentication required
|
|
7091
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7092
|
+
if (limit !== undefined) {
|
|
7093
|
+
localVarQueryParameter['limit'] = limit;
|
|
7094
|
+
}
|
|
7095
|
+
if (skip !== undefined) {
|
|
7096
|
+
localVarQueryParameter['skip'] = skip;
|
|
7097
|
+
}
|
|
7098
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7099
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7100
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7101
|
+
return {
|
|
7102
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7103
|
+
options: localVarRequestOptions,
|
|
7104
|
+
};
|
|
7105
|
+
}),
|
|
6977
7106
|
/**
|
|
6978
7107
|
*
|
|
6979
7108
|
* @summary Récupère la ville de l\'utilisateur connecté
|
|
@@ -7120,6 +7249,38 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
7120
7249
|
options: localVarRequestOptions,
|
|
7121
7250
|
};
|
|
7122
7251
|
}),
|
|
7252
|
+
/**
|
|
7253
|
+
*
|
|
7254
|
+
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
7255
|
+
* @param {string} favoritePlayerId ID du joueur à retirer des favoris
|
|
7256
|
+
* @param {*} [options] Override http request option.
|
|
7257
|
+
* @throws {RequiredError}
|
|
7258
|
+
*/
|
|
7259
|
+
removeFavoritePlayer: (favoritePlayerId_1, ...args_1) => __awaiter(this, [favoritePlayerId_1, ...args_1], void 0, function* (favoritePlayerId, options = {}) {
|
|
7260
|
+
// verify required parameter 'favoritePlayerId' is not null or undefined
|
|
7261
|
+
(0, common_1.assertParamExists)('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId);
|
|
7262
|
+
const localVarPath = `/api/users/me/favoritesPlayers/{favoritePlayerId}`
|
|
7263
|
+
.replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
|
|
7264
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7265
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7266
|
+
let baseOptions;
|
|
7267
|
+
if (configuration) {
|
|
7268
|
+
baseOptions = configuration.baseOptions;
|
|
7269
|
+
}
|
|
7270
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
7271
|
+
const localVarHeaderParameter = {};
|
|
7272
|
+
const localVarQueryParameter = {};
|
|
7273
|
+
// authentication bearerAuth required
|
|
7274
|
+
// http bearer authentication required
|
|
7275
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7276
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7277
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7278
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7279
|
+
return {
|
|
7280
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7281
|
+
options: localVarRequestOptions,
|
|
7282
|
+
};
|
|
7283
|
+
}),
|
|
7123
7284
|
/**
|
|
7124
7285
|
*
|
|
7125
7286
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -7344,6 +7505,22 @@ const UserProfileApiFp = function (configuration) {
|
|
|
7344
7505
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7345
7506
|
});
|
|
7346
7507
|
},
|
|
7508
|
+
/**
|
|
7509
|
+
*
|
|
7510
|
+
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
7511
|
+
* @param {AddFavoritePlayerRequestBody} addFavoritePlayerRequestBody
|
|
7512
|
+
* @param {*} [options] Override http request option.
|
|
7513
|
+
* @throws {RequiredError}
|
|
7514
|
+
*/
|
|
7515
|
+
addFavoritePlayer(addFavoritePlayerRequestBody, options) {
|
|
7516
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7517
|
+
var _a, _b, _c;
|
|
7518
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addFavoritePlayer(addFavoritePlayerRequestBody, options);
|
|
7519
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7520
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.addFavoritePlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7521
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7522
|
+
});
|
|
7523
|
+
},
|
|
7347
7524
|
/**
|
|
7348
7525
|
*
|
|
7349
7526
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -7393,6 +7570,21 @@ const UserProfileApiFp = function (configuration) {
|
|
|
7393
7570
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7394
7571
|
});
|
|
7395
7572
|
},
|
|
7573
|
+
/**
|
|
7574
|
+
*
|
|
7575
|
+
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
7576
|
+
* @param {*} [options] Override http request option.
|
|
7577
|
+
* @throws {RequiredError}
|
|
7578
|
+
*/
|
|
7579
|
+
getFavoritesPlayers(options) {
|
|
7580
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7581
|
+
var _a, _b, _c;
|
|
7582
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoritesPlayers(options);
|
|
7583
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7584
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getFavoritesPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7585
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7586
|
+
});
|
|
7587
|
+
},
|
|
7396
7588
|
/**
|
|
7397
7589
|
*
|
|
7398
7590
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -7438,6 +7630,39 @@ const UserProfileApiFp = function (configuration) {
|
|
|
7438
7630
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7439
7631
|
});
|
|
7440
7632
|
},
|
|
7633
|
+
/**
|
|
7634
|
+
*
|
|
7635
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
7636
|
+
* @param {string} id ID de l\'utilisateur
|
|
7637
|
+
* @param {*} [options] Override http request option.
|
|
7638
|
+
* @throws {RequiredError}
|
|
7639
|
+
*/
|
|
7640
|
+
getPublicUserProfile(id, options) {
|
|
7641
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7642
|
+
var _a, _b, _c;
|
|
7643
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicUserProfile(id, options);
|
|
7644
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7645
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getPublicUserProfile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7646
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7647
|
+
});
|
|
7648
|
+
},
|
|
7649
|
+
/**
|
|
7650
|
+
*
|
|
7651
|
+
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
7652
|
+
* @param {number} [limit] Nombre maximum de réservations à retourner
|
|
7653
|
+
* @param {number} [skip] Nombre de réservations à ignorer (pagination)
|
|
7654
|
+
* @param {*} [options] Override http request option.
|
|
7655
|
+
* @throws {RequiredError}
|
|
7656
|
+
*/
|
|
7657
|
+
getUserBookings(limit, skip, options) {
|
|
7658
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7659
|
+
var _a, _b, _c;
|
|
7660
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBookings(limit, skip, options);
|
|
7661
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7662
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getUserBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7663
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7664
|
+
});
|
|
7665
|
+
},
|
|
7441
7666
|
/**
|
|
7442
7667
|
*
|
|
7443
7668
|
* @summary Récupère la ville de l\'utilisateur connecté
|
|
@@ -7514,6 +7739,22 @@ const UserProfileApiFp = function (configuration) {
|
|
|
7514
7739
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7515
7740
|
});
|
|
7516
7741
|
},
|
|
7742
|
+
/**
|
|
7743
|
+
*
|
|
7744
|
+
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
7745
|
+
* @param {string} favoritePlayerId ID du joueur à retirer des favoris
|
|
7746
|
+
* @param {*} [options] Override http request option.
|
|
7747
|
+
* @throws {RequiredError}
|
|
7748
|
+
*/
|
|
7749
|
+
removeFavoritePlayer(favoritePlayerId, options) {
|
|
7750
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7751
|
+
var _a, _b, _c;
|
|
7752
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFavoritePlayer(favoritePlayerId, options);
|
|
7753
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7754
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.removeFavoritePlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7755
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7756
|
+
});
|
|
7757
|
+
},
|
|
7517
7758
|
/**
|
|
7518
7759
|
*
|
|
7519
7760
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -7630,6 +7871,16 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
7630
7871
|
addFavoriteClub(requestParameters, options) {
|
|
7631
7872
|
return localVarFp.addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(axios, basePath));
|
|
7632
7873
|
},
|
|
7874
|
+
/**
|
|
7875
|
+
*
|
|
7876
|
+
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
7877
|
+
* @param {UserProfileApiAddFavoritePlayerRequest} requestParameters Request parameters.
|
|
7878
|
+
* @param {*} [options] Override http request option.
|
|
7879
|
+
* @throws {RequiredError}
|
|
7880
|
+
*/
|
|
7881
|
+
addFavoritePlayer(requestParameters, options) {
|
|
7882
|
+
return localVarFp.addFavoritePlayer(requestParameters.addFavoritePlayerRequestBody, options).then((request) => request(axios, basePath));
|
|
7883
|
+
},
|
|
7633
7884
|
/**
|
|
7634
7885
|
*
|
|
7635
7886
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -7659,6 +7910,15 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
7659
7910
|
getFavoriteClubs(options) {
|
|
7660
7911
|
return localVarFp.getFavoriteClubs(options).then((request) => request(axios, basePath));
|
|
7661
7912
|
},
|
|
7913
|
+
/**
|
|
7914
|
+
*
|
|
7915
|
+
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
7916
|
+
* @param {*} [options] Override http request option.
|
|
7917
|
+
* @throws {RequiredError}
|
|
7918
|
+
*/
|
|
7919
|
+
getFavoritesPlayers(options) {
|
|
7920
|
+
return localVarFp.getFavoritesPlayers(options).then((request) => request(axios, basePath));
|
|
7921
|
+
},
|
|
7662
7922
|
/**
|
|
7663
7923
|
*
|
|
7664
7924
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -7686,6 +7946,26 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
7686
7946
|
getProfilePicture(options) {
|
|
7687
7947
|
return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
|
|
7688
7948
|
},
|
|
7949
|
+
/**
|
|
7950
|
+
*
|
|
7951
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
7952
|
+
* @param {UserProfileApiGetPublicUserProfileRequest} requestParameters Request parameters.
|
|
7953
|
+
* @param {*} [options] Override http request option.
|
|
7954
|
+
* @throws {RequiredError}
|
|
7955
|
+
*/
|
|
7956
|
+
getPublicUserProfile(requestParameters, options) {
|
|
7957
|
+
return localVarFp.getPublicUserProfile(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7958
|
+
},
|
|
7959
|
+
/**
|
|
7960
|
+
*
|
|
7961
|
+
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
7962
|
+
* @param {UserProfileApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
7963
|
+
* @param {*} [options] Override http request option.
|
|
7964
|
+
* @throws {RequiredError}
|
|
7965
|
+
*/
|
|
7966
|
+
getUserBookings(requestParameters = {}, options) {
|
|
7967
|
+
return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
7968
|
+
},
|
|
7689
7969
|
/**
|
|
7690
7970
|
*
|
|
7691
7971
|
* @summary Récupère la ville de l\'utilisateur connecté
|
|
@@ -7732,6 +8012,16 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
7732
8012
|
removeFavoriteClub(requestParameters, options) {
|
|
7733
8013
|
return localVarFp.removeFavoriteClub(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
7734
8014
|
},
|
|
8015
|
+
/**
|
|
8016
|
+
*
|
|
8017
|
+
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
8018
|
+
* @param {UserProfileApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
|
|
8019
|
+
* @param {*} [options] Override http request option.
|
|
8020
|
+
* @throws {RequiredError}
|
|
8021
|
+
*/
|
|
8022
|
+
removeFavoritePlayer(requestParameters, options) {
|
|
8023
|
+
return localVarFp.removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(axios, basePath));
|
|
8024
|
+
},
|
|
7735
8025
|
/**
|
|
7736
8026
|
*
|
|
7737
8027
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -7813,6 +8103,17 @@ class UserProfileApi extends base_1.BaseAPI {
|
|
|
7813
8103
|
addFavoriteClub(requestParameters, options) {
|
|
7814
8104
|
return (0, exports.UserProfileApiFp)(this.configuration).addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7815
8105
|
}
|
|
8106
|
+
/**
|
|
8107
|
+
*
|
|
8108
|
+
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
8109
|
+
* @param {UserProfileApiAddFavoritePlayerRequest} requestParameters Request parameters.
|
|
8110
|
+
* @param {*} [options] Override http request option.
|
|
8111
|
+
* @throws {RequiredError}
|
|
8112
|
+
* @memberof UserProfileApi
|
|
8113
|
+
*/
|
|
8114
|
+
addFavoritePlayer(requestParameters, options) {
|
|
8115
|
+
return (0, exports.UserProfileApiFp)(this.configuration).addFavoritePlayer(requestParameters.addFavoritePlayerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8116
|
+
}
|
|
7816
8117
|
/**
|
|
7817
8118
|
*
|
|
7818
8119
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -7845,6 +8146,16 @@ class UserProfileApi extends base_1.BaseAPI {
|
|
|
7845
8146
|
getFavoriteClubs(options) {
|
|
7846
8147
|
return (0, exports.UserProfileApiFp)(this.configuration).getFavoriteClubs(options).then((request) => request(this.axios, this.basePath));
|
|
7847
8148
|
}
|
|
8149
|
+
/**
|
|
8150
|
+
*
|
|
8151
|
+
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
8152
|
+
* @param {*} [options] Override http request option.
|
|
8153
|
+
* @throws {RequiredError}
|
|
8154
|
+
* @memberof UserProfileApi
|
|
8155
|
+
*/
|
|
8156
|
+
getFavoritesPlayers(options) {
|
|
8157
|
+
return (0, exports.UserProfileApiFp)(this.configuration).getFavoritesPlayers(options).then((request) => request(this.axios, this.basePath));
|
|
8158
|
+
}
|
|
7848
8159
|
/**
|
|
7849
8160
|
*
|
|
7850
8161
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -7875,6 +8186,28 @@ class UserProfileApi extends base_1.BaseAPI {
|
|
|
7875
8186
|
getProfilePicture(options) {
|
|
7876
8187
|
return (0, exports.UserProfileApiFp)(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
|
|
7877
8188
|
}
|
|
8189
|
+
/**
|
|
8190
|
+
*
|
|
8191
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
8192
|
+
* @param {UserProfileApiGetPublicUserProfileRequest} requestParameters Request parameters.
|
|
8193
|
+
* @param {*} [options] Override http request option.
|
|
8194
|
+
* @throws {RequiredError}
|
|
8195
|
+
* @memberof UserProfileApi
|
|
8196
|
+
*/
|
|
8197
|
+
getPublicUserProfile(requestParameters, options) {
|
|
8198
|
+
return (0, exports.UserProfileApiFp)(this.configuration).getPublicUserProfile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
8199
|
+
}
|
|
8200
|
+
/**
|
|
8201
|
+
*
|
|
8202
|
+
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
8203
|
+
* @param {UserProfileApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
8204
|
+
* @param {*} [options] Override http request option.
|
|
8205
|
+
* @throws {RequiredError}
|
|
8206
|
+
* @memberof UserProfileApi
|
|
8207
|
+
*/
|
|
8208
|
+
getUserBookings(requestParameters = {}, options) {
|
|
8209
|
+
return (0, exports.UserProfileApiFp)(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
8210
|
+
}
|
|
7878
8211
|
/**
|
|
7879
8212
|
*
|
|
7880
8213
|
* @summary Récupère la ville de l\'utilisateur connecté
|
|
@@ -7926,6 +8259,17 @@ class UserProfileApi extends base_1.BaseAPI {
|
|
|
7926
8259
|
removeFavoriteClub(requestParameters, options) {
|
|
7927
8260
|
return (0, exports.UserProfileApiFp)(this.configuration).removeFavoriteClub(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
7928
8261
|
}
|
|
8262
|
+
/**
|
|
8263
|
+
*
|
|
8264
|
+
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
8265
|
+
* @param {UserProfileApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
|
|
8266
|
+
* @param {*} [options] Override http request option.
|
|
8267
|
+
* @throws {RequiredError}
|
|
8268
|
+
* @memberof UserProfileApi
|
|
8269
|
+
*/
|
|
8270
|
+
removeFavoritePlayer(requestParameters, options) {
|
|
8271
|
+
return (0, exports.UserProfileApiFp)(this.configuration).removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(this.axios, this.basePath));
|
|
8272
|
+
}
|
|
7929
8273
|
/**
|
|
7930
8274
|
*
|
|
7931
8275
|
* @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.30
|
|
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.30
|
|
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.30
|
|
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.30
|
|
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.30
|
|
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.30
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|