@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/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.30
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -6672,6 +6672,39 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
6672
6672
|
options: localVarRequestOptions,
|
|
6673
6673
|
};
|
|
6674
6674
|
}),
|
|
6675
|
+
/**
|
|
6676
|
+
*
|
|
6677
|
+
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
6678
|
+
* @param {AddFavoritePlayerRequestBody} addFavoritePlayerRequestBody
|
|
6679
|
+
* @param {*} [options] Override http request option.
|
|
6680
|
+
* @throws {RequiredError}
|
|
6681
|
+
*/
|
|
6682
|
+
addFavoritePlayer: (addFavoritePlayerRequestBody_1, ...args_1) => __awaiter(this, [addFavoritePlayerRequestBody_1, ...args_1], void 0, function* (addFavoritePlayerRequestBody, options = {}) {
|
|
6683
|
+
// verify required parameter 'addFavoritePlayerRequestBody' is not null or undefined
|
|
6684
|
+
assertParamExists('addFavoritePlayer', 'addFavoritePlayerRequestBody', addFavoritePlayerRequestBody);
|
|
6685
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
6686
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6687
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6688
|
+
let baseOptions;
|
|
6689
|
+
if (configuration) {
|
|
6690
|
+
baseOptions = configuration.baseOptions;
|
|
6691
|
+
}
|
|
6692
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6693
|
+
const localVarHeaderParameter = {};
|
|
6694
|
+
const localVarQueryParameter = {};
|
|
6695
|
+
// authentication bearerAuth required
|
|
6696
|
+
// http bearer authentication required
|
|
6697
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6698
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6699
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6700
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6701
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6702
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addFavoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
6703
|
+
return {
|
|
6704
|
+
url: toPathString(localVarUrlObj),
|
|
6705
|
+
options: localVarRequestOptions,
|
|
6706
|
+
};
|
|
6707
|
+
}),
|
|
6675
6708
|
/**
|
|
6676
6709
|
*
|
|
6677
6710
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -6773,6 +6806,34 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
6773
6806
|
options: localVarRequestOptions,
|
|
6774
6807
|
};
|
|
6775
6808
|
}),
|
|
6809
|
+
/**
|
|
6810
|
+
*
|
|
6811
|
+
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
6812
|
+
* @param {*} [options] Override http request option.
|
|
6813
|
+
* @throws {RequiredError}
|
|
6814
|
+
*/
|
|
6815
|
+
getFavoritesPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6816
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
6817
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6818
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6819
|
+
let baseOptions;
|
|
6820
|
+
if (configuration) {
|
|
6821
|
+
baseOptions = configuration.baseOptions;
|
|
6822
|
+
}
|
|
6823
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6824
|
+
const localVarHeaderParameter = {};
|
|
6825
|
+
const localVarQueryParameter = {};
|
|
6826
|
+
// authentication bearerAuth required
|
|
6827
|
+
// http bearer authentication required
|
|
6828
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6829
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6830
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6831
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6832
|
+
return {
|
|
6833
|
+
url: toPathString(localVarUrlObj),
|
|
6834
|
+
options: localVarRequestOptions,
|
|
6835
|
+
};
|
|
6836
|
+
}),
|
|
6776
6837
|
/**
|
|
6777
6838
|
*
|
|
6778
6839
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -6857,6 +6918,74 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
6857
6918
|
options: localVarRequestOptions,
|
|
6858
6919
|
};
|
|
6859
6920
|
}),
|
|
6921
|
+
/**
|
|
6922
|
+
*
|
|
6923
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
6924
|
+
* @param {string} id ID de l\'utilisateur
|
|
6925
|
+
* @param {*} [options] Override http request option.
|
|
6926
|
+
* @throws {RequiredError}
|
|
6927
|
+
*/
|
|
6928
|
+
getPublicUserProfile: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
6929
|
+
// verify required parameter 'id' is not null or undefined
|
|
6930
|
+
assertParamExists('getPublicUserProfile', 'id', id);
|
|
6931
|
+
const localVarPath = `/api/users/profile/{id}`
|
|
6932
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6933
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6934
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6935
|
+
let baseOptions;
|
|
6936
|
+
if (configuration) {
|
|
6937
|
+
baseOptions = configuration.baseOptions;
|
|
6938
|
+
}
|
|
6939
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6940
|
+
const localVarHeaderParameter = {};
|
|
6941
|
+
const localVarQueryParameter = {};
|
|
6942
|
+
// authentication bearerAuth required
|
|
6943
|
+
// http bearer authentication required
|
|
6944
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6945
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6946
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6947
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6948
|
+
return {
|
|
6949
|
+
url: toPathString(localVarUrlObj),
|
|
6950
|
+
options: localVarRequestOptions,
|
|
6951
|
+
};
|
|
6952
|
+
}),
|
|
6953
|
+
/**
|
|
6954
|
+
*
|
|
6955
|
+
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
6956
|
+
* @param {number} [limit] Nombre maximum de réservations à retourner
|
|
6957
|
+
* @param {number} [skip] Nombre de réservations à ignorer (pagination)
|
|
6958
|
+
* @param {*} [options] Override http request option.
|
|
6959
|
+
* @throws {RequiredError}
|
|
6960
|
+
*/
|
|
6961
|
+
getUserBookings: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
|
|
6962
|
+
const localVarPath = `/api/users/me/bookings`;
|
|
6963
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6964
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6965
|
+
let baseOptions;
|
|
6966
|
+
if (configuration) {
|
|
6967
|
+
baseOptions = configuration.baseOptions;
|
|
6968
|
+
}
|
|
6969
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6970
|
+
const localVarHeaderParameter = {};
|
|
6971
|
+
const localVarQueryParameter = {};
|
|
6972
|
+
// authentication bearerAuth required
|
|
6973
|
+
// http bearer authentication required
|
|
6974
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6975
|
+
if (limit !== undefined) {
|
|
6976
|
+
localVarQueryParameter['limit'] = limit;
|
|
6977
|
+
}
|
|
6978
|
+
if (skip !== undefined) {
|
|
6979
|
+
localVarQueryParameter['skip'] = skip;
|
|
6980
|
+
}
|
|
6981
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6982
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6983
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6984
|
+
return {
|
|
6985
|
+
url: toPathString(localVarUrlObj),
|
|
6986
|
+
options: localVarRequestOptions,
|
|
6987
|
+
};
|
|
6988
|
+
}),
|
|
6860
6989
|
/**
|
|
6861
6990
|
*
|
|
6862
6991
|
* @summary Récupère la ville de l\'utilisateur connecté
|
|
@@ -7003,6 +7132,38 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
7003
7132
|
options: localVarRequestOptions,
|
|
7004
7133
|
};
|
|
7005
7134
|
}),
|
|
7135
|
+
/**
|
|
7136
|
+
*
|
|
7137
|
+
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
7138
|
+
* @param {string} favoritePlayerId ID du joueur à retirer des favoris
|
|
7139
|
+
* @param {*} [options] Override http request option.
|
|
7140
|
+
* @throws {RequiredError}
|
|
7141
|
+
*/
|
|
7142
|
+
removeFavoritePlayer: (favoritePlayerId_1, ...args_1) => __awaiter(this, [favoritePlayerId_1, ...args_1], void 0, function* (favoritePlayerId, options = {}) {
|
|
7143
|
+
// verify required parameter 'favoritePlayerId' is not null or undefined
|
|
7144
|
+
assertParamExists('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId);
|
|
7145
|
+
const localVarPath = `/api/users/me/favoritesPlayers/{favoritePlayerId}`
|
|
7146
|
+
.replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
|
|
7147
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7148
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7149
|
+
let baseOptions;
|
|
7150
|
+
if (configuration) {
|
|
7151
|
+
baseOptions = configuration.baseOptions;
|
|
7152
|
+
}
|
|
7153
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
7154
|
+
const localVarHeaderParameter = {};
|
|
7155
|
+
const localVarQueryParameter = {};
|
|
7156
|
+
// authentication bearerAuth required
|
|
7157
|
+
// http bearer authentication required
|
|
7158
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7159
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7160
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7161
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7162
|
+
return {
|
|
7163
|
+
url: toPathString(localVarUrlObj),
|
|
7164
|
+
options: localVarRequestOptions,
|
|
7165
|
+
};
|
|
7166
|
+
}),
|
|
7006
7167
|
/**
|
|
7007
7168
|
*
|
|
7008
7169
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -7226,6 +7387,22 @@ export const UserProfileApiFp = function (configuration) {
|
|
|
7226
7387
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7227
7388
|
});
|
|
7228
7389
|
},
|
|
7390
|
+
/**
|
|
7391
|
+
*
|
|
7392
|
+
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
7393
|
+
* @param {AddFavoritePlayerRequestBody} addFavoritePlayerRequestBody
|
|
7394
|
+
* @param {*} [options] Override http request option.
|
|
7395
|
+
* @throws {RequiredError}
|
|
7396
|
+
*/
|
|
7397
|
+
addFavoritePlayer(addFavoritePlayerRequestBody, options) {
|
|
7398
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7399
|
+
var _a, _b, _c;
|
|
7400
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addFavoritePlayer(addFavoritePlayerRequestBody, options);
|
|
7401
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7402
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.addFavoritePlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7403
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7404
|
+
});
|
|
7405
|
+
},
|
|
7229
7406
|
/**
|
|
7230
7407
|
*
|
|
7231
7408
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -7275,6 +7452,21 @@ export const UserProfileApiFp = function (configuration) {
|
|
|
7275
7452
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7276
7453
|
});
|
|
7277
7454
|
},
|
|
7455
|
+
/**
|
|
7456
|
+
*
|
|
7457
|
+
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
7458
|
+
* @param {*} [options] Override http request option.
|
|
7459
|
+
* @throws {RequiredError}
|
|
7460
|
+
*/
|
|
7461
|
+
getFavoritesPlayers(options) {
|
|
7462
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7463
|
+
var _a, _b, _c;
|
|
7464
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoritesPlayers(options);
|
|
7465
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7466
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getFavoritesPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7467
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7468
|
+
});
|
|
7469
|
+
},
|
|
7278
7470
|
/**
|
|
7279
7471
|
*
|
|
7280
7472
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -7320,6 +7512,39 @@ export const UserProfileApiFp = function (configuration) {
|
|
|
7320
7512
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7321
7513
|
});
|
|
7322
7514
|
},
|
|
7515
|
+
/**
|
|
7516
|
+
*
|
|
7517
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
7518
|
+
* @param {string} id ID de l\'utilisateur
|
|
7519
|
+
* @param {*} [options] Override http request option.
|
|
7520
|
+
* @throws {RequiredError}
|
|
7521
|
+
*/
|
|
7522
|
+
getPublicUserProfile(id, options) {
|
|
7523
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7524
|
+
var _a, _b, _c;
|
|
7525
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicUserProfile(id, options);
|
|
7526
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7527
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getPublicUserProfile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7528
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7529
|
+
});
|
|
7530
|
+
},
|
|
7531
|
+
/**
|
|
7532
|
+
*
|
|
7533
|
+
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
7534
|
+
* @param {number} [limit] Nombre maximum de réservations à retourner
|
|
7535
|
+
* @param {number} [skip] Nombre de réservations à ignorer (pagination)
|
|
7536
|
+
* @param {*} [options] Override http request option.
|
|
7537
|
+
* @throws {RequiredError}
|
|
7538
|
+
*/
|
|
7539
|
+
getUserBookings(limit, skip, options) {
|
|
7540
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7541
|
+
var _a, _b, _c;
|
|
7542
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBookings(limit, skip, options);
|
|
7543
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7544
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getUserBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7545
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7546
|
+
});
|
|
7547
|
+
},
|
|
7323
7548
|
/**
|
|
7324
7549
|
*
|
|
7325
7550
|
* @summary Récupère la ville de l\'utilisateur connecté
|
|
@@ -7396,6 +7621,22 @@ export const UserProfileApiFp = function (configuration) {
|
|
|
7396
7621
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7397
7622
|
});
|
|
7398
7623
|
},
|
|
7624
|
+
/**
|
|
7625
|
+
*
|
|
7626
|
+
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
7627
|
+
* @param {string} favoritePlayerId ID du joueur à retirer des favoris
|
|
7628
|
+
* @param {*} [options] Override http request option.
|
|
7629
|
+
* @throws {RequiredError}
|
|
7630
|
+
*/
|
|
7631
|
+
removeFavoritePlayer(favoritePlayerId, options) {
|
|
7632
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7633
|
+
var _a, _b, _c;
|
|
7634
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFavoritePlayer(favoritePlayerId, options);
|
|
7635
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7636
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.removeFavoritePlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7637
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7638
|
+
});
|
|
7639
|
+
},
|
|
7399
7640
|
/**
|
|
7400
7641
|
*
|
|
7401
7642
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -7511,6 +7752,16 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
7511
7752
|
addFavoriteClub(requestParameters, options) {
|
|
7512
7753
|
return localVarFp.addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(axios, basePath));
|
|
7513
7754
|
},
|
|
7755
|
+
/**
|
|
7756
|
+
*
|
|
7757
|
+
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
7758
|
+
* @param {UserProfileApiAddFavoritePlayerRequest} requestParameters Request parameters.
|
|
7759
|
+
* @param {*} [options] Override http request option.
|
|
7760
|
+
* @throws {RequiredError}
|
|
7761
|
+
*/
|
|
7762
|
+
addFavoritePlayer(requestParameters, options) {
|
|
7763
|
+
return localVarFp.addFavoritePlayer(requestParameters.addFavoritePlayerRequestBody, options).then((request) => request(axios, basePath));
|
|
7764
|
+
},
|
|
7514
7765
|
/**
|
|
7515
7766
|
*
|
|
7516
7767
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -7540,6 +7791,15 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
7540
7791
|
getFavoriteClubs(options) {
|
|
7541
7792
|
return localVarFp.getFavoriteClubs(options).then((request) => request(axios, basePath));
|
|
7542
7793
|
},
|
|
7794
|
+
/**
|
|
7795
|
+
*
|
|
7796
|
+
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
7797
|
+
* @param {*} [options] Override http request option.
|
|
7798
|
+
* @throws {RequiredError}
|
|
7799
|
+
*/
|
|
7800
|
+
getFavoritesPlayers(options) {
|
|
7801
|
+
return localVarFp.getFavoritesPlayers(options).then((request) => request(axios, basePath));
|
|
7802
|
+
},
|
|
7543
7803
|
/**
|
|
7544
7804
|
*
|
|
7545
7805
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -7567,6 +7827,26 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
7567
7827
|
getProfilePicture(options) {
|
|
7568
7828
|
return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
|
|
7569
7829
|
},
|
|
7830
|
+
/**
|
|
7831
|
+
*
|
|
7832
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
7833
|
+
* @param {UserProfileApiGetPublicUserProfileRequest} requestParameters Request parameters.
|
|
7834
|
+
* @param {*} [options] Override http request option.
|
|
7835
|
+
* @throws {RequiredError}
|
|
7836
|
+
*/
|
|
7837
|
+
getPublicUserProfile(requestParameters, options) {
|
|
7838
|
+
return localVarFp.getPublicUserProfile(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7839
|
+
},
|
|
7840
|
+
/**
|
|
7841
|
+
*
|
|
7842
|
+
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
7843
|
+
* @param {UserProfileApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
7844
|
+
* @param {*} [options] Override http request option.
|
|
7845
|
+
* @throws {RequiredError}
|
|
7846
|
+
*/
|
|
7847
|
+
getUserBookings(requestParameters = {}, options) {
|
|
7848
|
+
return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
7849
|
+
},
|
|
7570
7850
|
/**
|
|
7571
7851
|
*
|
|
7572
7852
|
* @summary Récupère la ville de l\'utilisateur connecté
|
|
@@ -7613,6 +7893,16 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
7613
7893
|
removeFavoriteClub(requestParameters, options) {
|
|
7614
7894
|
return localVarFp.removeFavoriteClub(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
7615
7895
|
},
|
|
7896
|
+
/**
|
|
7897
|
+
*
|
|
7898
|
+
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
7899
|
+
* @param {UserProfileApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
|
|
7900
|
+
* @param {*} [options] Override http request option.
|
|
7901
|
+
* @throws {RequiredError}
|
|
7902
|
+
*/
|
|
7903
|
+
removeFavoritePlayer(requestParameters, options) {
|
|
7904
|
+
return localVarFp.removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(axios, basePath));
|
|
7905
|
+
},
|
|
7616
7906
|
/**
|
|
7617
7907
|
*
|
|
7618
7908
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -7693,6 +7983,17 @@ export class UserProfileApi extends BaseAPI {
|
|
|
7693
7983
|
addFavoriteClub(requestParameters, options) {
|
|
7694
7984
|
return UserProfileApiFp(this.configuration).addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7695
7985
|
}
|
|
7986
|
+
/**
|
|
7987
|
+
*
|
|
7988
|
+
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
7989
|
+
* @param {UserProfileApiAddFavoritePlayerRequest} requestParameters Request parameters.
|
|
7990
|
+
* @param {*} [options] Override http request option.
|
|
7991
|
+
* @throws {RequiredError}
|
|
7992
|
+
* @memberof UserProfileApi
|
|
7993
|
+
*/
|
|
7994
|
+
addFavoritePlayer(requestParameters, options) {
|
|
7995
|
+
return UserProfileApiFp(this.configuration).addFavoritePlayer(requestParameters.addFavoritePlayerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7996
|
+
}
|
|
7696
7997
|
/**
|
|
7697
7998
|
*
|
|
7698
7999
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -7725,6 +8026,16 @@ export class UserProfileApi extends BaseAPI {
|
|
|
7725
8026
|
getFavoriteClubs(options) {
|
|
7726
8027
|
return UserProfileApiFp(this.configuration).getFavoriteClubs(options).then((request) => request(this.axios, this.basePath));
|
|
7727
8028
|
}
|
|
8029
|
+
/**
|
|
8030
|
+
*
|
|
8031
|
+
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
8032
|
+
* @param {*} [options] Override http request option.
|
|
8033
|
+
* @throws {RequiredError}
|
|
8034
|
+
* @memberof UserProfileApi
|
|
8035
|
+
*/
|
|
8036
|
+
getFavoritesPlayers(options) {
|
|
8037
|
+
return UserProfileApiFp(this.configuration).getFavoritesPlayers(options).then((request) => request(this.axios, this.basePath));
|
|
8038
|
+
}
|
|
7728
8039
|
/**
|
|
7729
8040
|
*
|
|
7730
8041
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -7755,6 +8066,28 @@ export class UserProfileApi extends BaseAPI {
|
|
|
7755
8066
|
getProfilePicture(options) {
|
|
7756
8067
|
return UserProfileApiFp(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
|
|
7757
8068
|
}
|
|
8069
|
+
/**
|
|
8070
|
+
*
|
|
8071
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
8072
|
+
* @param {UserProfileApiGetPublicUserProfileRequest} requestParameters Request parameters.
|
|
8073
|
+
* @param {*} [options] Override http request option.
|
|
8074
|
+
* @throws {RequiredError}
|
|
8075
|
+
* @memberof UserProfileApi
|
|
8076
|
+
*/
|
|
8077
|
+
getPublicUserProfile(requestParameters, options) {
|
|
8078
|
+
return UserProfileApiFp(this.configuration).getPublicUserProfile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
8079
|
+
}
|
|
8080
|
+
/**
|
|
8081
|
+
*
|
|
8082
|
+
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
8083
|
+
* @param {UserProfileApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
8084
|
+
* @param {*} [options] Override http request option.
|
|
8085
|
+
* @throws {RequiredError}
|
|
8086
|
+
* @memberof UserProfileApi
|
|
8087
|
+
*/
|
|
8088
|
+
getUserBookings(requestParameters = {}, options) {
|
|
8089
|
+
return UserProfileApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
8090
|
+
}
|
|
7758
8091
|
/**
|
|
7759
8092
|
*
|
|
7760
8093
|
* @summary Récupère la ville de l\'utilisateur connecté
|
|
@@ -7806,6 +8139,17 @@ export class UserProfileApi extends BaseAPI {
|
|
|
7806
8139
|
removeFavoriteClub(requestParameters, options) {
|
|
7807
8140
|
return UserProfileApiFp(this.configuration).removeFavoriteClub(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
7808
8141
|
}
|
|
8142
|
+
/**
|
|
8143
|
+
*
|
|
8144
|
+
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
8145
|
+
* @param {UserProfileApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
|
|
8146
|
+
* @param {*} [options] Override http request option.
|
|
8147
|
+
* @throws {RequiredError}
|
|
8148
|
+
* @memberof UserProfileApi
|
|
8149
|
+
*/
|
|
8150
|
+
removeFavoritePlayer(requestParameters, options) {
|
|
8151
|
+
return UserProfileApiFp(this.configuration).removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(this.axios, this.basePath));
|
|
8152
|
+
}
|
|
7809
8153
|
/**
|
|
7810
8154
|
*
|
|
7811
8155
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
package/dist/esm/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/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.30
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/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/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.30
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.30
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.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/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.30
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.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/index.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).
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# AddFavoritePlayerRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**favoritePlayerId** | **string** | ID de l\'utilisateur à ajouter en favori | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { AddFavoritePlayerRequestBody } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: AddFavoritePlayerRequestBody = {
|
|
16
|
+
favoritePlayerId,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# FavoriteClubItem
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | ID du club | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { FavoriteClubItem } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: FavoriteClubItem = {
|
|
19
|
+
_id,
|
|
20
|
+
name,
|
|
21
|
+
address,
|
|
22
|
+
isActive,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# FavoritePlayerPublic
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**isProfileVisible** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { FavoritePlayerPublic } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: FavoritePlayerPublic = {
|
|
20
|
+
_id,
|
|
21
|
+
firstName,
|
|
22
|
+
lastName,
|
|
23
|
+
profilePicture,
|
|
24
|
+
isProfileVisible,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# FavoritePlayersIdsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { FavoritePlayersIdsResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: FavoritePlayersIdsResponse = {
|
|
17
|
+
message,
|
|
18
|
+
favoritePlayers,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|