@tennac-booking/sdk 1.0.27 → 1.0.29

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/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.27
8
+ * The version of the OpenAPI document: 1.0.29
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6756,6 +6756,72 @@ exports.UserPaymentApi = UserPaymentApi;
6756
6756
  */
6757
6757
  const UserProfileApiAxiosParamCreator = function (configuration) {
6758
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
+ }),
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
+ }),
6759
6825
  /**
6760
6826
  *
6761
6827
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -6829,6 +6895,62 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
6829
6895
  options: localVarRequestOptions,
6830
6896
  };
6831
6897
  }),
6898
+ /**
6899
+ *
6900
+ * @summary Retrieve the list of favorite clubs for the logged-in user
6901
+ * @param {*} [options] Override http request option.
6902
+ * @throws {RequiredError}
6903
+ */
6904
+ getFavoriteClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6905
+ const localVarPath = `/api/users/me/favorite-clubs`;
6906
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6907
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6908
+ let baseOptions;
6909
+ if (configuration) {
6910
+ baseOptions = configuration.baseOptions;
6911
+ }
6912
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6913
+ const localVarHeaderParameter = {};
6914
+ const localVarQueryParameter = {};
6915
+ // authentication bearerAuth required
6916
+ // http bearer authentication required
6917
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6918
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6919
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6920
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6921
+ return {
6922
+ url: (0, common_1.toPathString)(localVarUrlObj),
6923
+ options: localVarRequestOptions,
6924
+ };
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
+ }),
6832
6954
  /**
6833
6955
  *
6834
6956
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -6913,6 +7035,42 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
6913
7035
  options: localVarRequestOptions,
6914
7036
  };
6915
7037
  }),
7038
+ /**
7039
+ *
7040
+ * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
7041
+ * @param {number} [limit] Nombre maximum de réservations à retourner
7042
+ * @param {number} [skip] Nombre de réservations à ignorer (pagination)
7043
+ * @param {*} [options] Override http request option.
7044
+ * @throws {RequiredError}
7045
+ */
7046
+ getUserBookings: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
7047
+ const localVarPath = `/api/users/me/bookings`;
7048
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7049
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7050
+ let baseOptions;
7051
+ if (configuration) {
7052
+ baseOptions = configuration.baseOptions;
7053
+ }
7054
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7055
+ const localVarHeaderParameter = {};
7056
+ const localVarQueryParameter = {};
7057
+ // authentication bearerAuth required
7058
+ // http bearer authentication required
7059
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7060
+ if (limit !== undefined) {
7061
+ localVarQueryParameter['limit'] = limit;
7062
+ }
7063
+ if (skip !== undefined) {
7064
+ localVarQueryParameter['skip'] = skip;
7065
+ }
7066
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7067
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7068
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7069
+ return {
7070
+ url: (0, common_1.toPathString)(localVarUrlObj),
7071
+ options: localVarRequestOptions,
7072
+ };
7073
+ }),
6916
7074
  /**
6917
7075
  *
6918
7076
  * @summary Récupère la ville de l\'utilisateur connecté
@@ -7025,6 +7183,72 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
7025
7183
  options: localVarRequestOptions,
7026
7184
  };
7027
7185
  }),
7186
+ /**
7187
+ *
7188
+ * @summary Remove a club from the user\'s favorite list
7189
+ * @param {string} clubId ID of the club to remove from favorites
7190
+ * @param {*} [options] Override http request option.
7191
+ * @throws {RequiredError}
7192
+ */
7193
+ removeFavoriteClub: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
7194
+ // verify required parameter 'clubId' is not null or undefined
7195
+ (0, common_1.assertParamExists)('removeFavoriteClub', 'clubId', clubId);
7196
+ const localVarPath = `/api/users/me/favorite-clubs`;
7197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7198
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7199
+ let baseOptions;
7200
+ if (configuration) {
7201
+ baseOptions = configuration.baseOptions;
7202
+ }
7203
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
7204
+ const localVarHeaderParameter = {};
7205
+ const localVarQueryParameter = {};
7206
+ // authentication bearerAuth required
7207
+ // http bearer authentication required
7208
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7209
+ if (clubId !== undefined) {
7210
+ localVarQueryParameter['clubId'] = clubId;
7211
+ }
7212
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7214
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7215
+ return {
7216
+ url: (0, common_1.toPathString)(localVarUrlObj),
7217
+ options: localVarRequestOptions,
7218
+ };
7219
+ }),
7220
+ /**
7221
+ *
7222
+ * @summary Retire un joueur des favoris de l\'utilisateur connecté
7223
+ * @param {string} favoritePlayerId ID du joueur à retirer des favoris
7224
+ * @param {*} [options] Override http request option.
7225
+ * @throws {RequiredError}
7226
+ */
7227
+ removeFavoritePlayer: (favoritePlayerId_1, ...args_1) => __awaiter(this, [favoritePlayerId_1, ...args_1], void 0, function* (favoritePlayerId, options = {}) {
7228
+ // verify required parameter 'favoritePlayerId' is not null or undefined
7229
+ (0, common_1.assertParamExists)('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId);
7230
+ const localVarPath = `/api/users/me/favoritesPlayers/{favoritePlayerId}`
7231
+ .replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
7232
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7233
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7234
+ let baseOptions;
7235
+ if (configuration) {
7236
+ baseOptions = configuration.baseOptions;
7237
+ }
7238
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
7239
+ const localVarHeaderParameter = {};
7240
+ const localVarQueryParameter = {};
7241
+ // authentication bearerAuth required
7242
+ // http bearer authentication required
7243
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7244
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7245
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7246
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7247
+ return {
7248
+ url: (0, common_1.toPathString)(localVarUrlObj),
7249
+ options: localVarRequestOptions,
7250
+ };
7251
+ }),
7028
7252
  /**
7029
7253
  *
7030
7254
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -7233,6 +7457,38 @@ exports.UserProfileApiAxiosParamCreator = UserProfileApiAxiosParamCreator;
7233
7457
  const UserProfileApiFp = function (configuration) {
7234
7458
  const localVarAxiosParamCreator = (0, exports.UserProfileApiAxiosParamCreator)(configuration);
7235
7459
  return {
7460
+ /**
7461
+ *
7462
+ * @summary Add a club to the user\'s favorite list
7463
+ * @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
7464
+ * @param {*} [options] Override http request option.
7465
+ * @throws {RequiredError}
7466
+ */
7467
+ addFavoriteClub(addFavoriteClubRequestBody, options) {
7468
+ return __awaiter(this, void 0, void 0, function* () {
7469
+ var _a, _b, _c;
7470
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addFavoriteClub(addFavoriteClubRequestBody, options);
7471
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7472
+ 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;
7473
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7474
+ });
7475
+ },
7476
+ /**
7477
+ *
7478
+ * @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
7479
+ * @param {AddFavoritePlayerRequestBody} addFavoritePlayerRequestBody
7480
+ * @param {*} [options] Override http request option.
7481
+ * @throws {RequiredError}
7482
+ */
7483
+ addFavoritePlayer(addFavoritePlayerRequestBody, options) {
7484
+ return __awaiter(this, void 0, void 0, function* () {
7485
+ var _a, _b, _c;
7486
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addFavoritePlayer(addFavoritePlayerRequestBody, options);
7487
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7488
+ 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;
7489
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7490
+ });
7491
+ },
7236
7492
  /**
7237
7493
  *
7238
7494
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -7267,6 +7523,36 @@ const UserProfileApiFp = function (configuration) {
7267
7523
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7268
7524
  });
7269
7525
  },
7526
+ /**
7527
+ *
7528
+ * @summary Retrieve the list of favorite clubs for the logged-in user
7529
+ * @param {*} [options] Override http request option.
7530
+ * @throws {RequiredError}
7531
+ */
7532
+ getFavoriteClubs(options) {
7533
+ return __awaiter(this, void 0, void 0, function* () {
7534
+ var _a, _b, _c;
7535
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoriteClubs(options);
7536
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7537
+ 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;
7538
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7539
+ });
7540
+ },
7541
+ /**
7542
+ *
7543
+ * @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
7544
+ * @param {*} [options] Override http request option.
7545
+ * @throws {RequiredError}
7546
+ */
7547
+ getFavoritesPlayers(options) {
7548
+ return __awaiter(this, void 0, void 0, function* () {
7549
+ var _a, _b, _c;
7550
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoritesPlayers(options);
7551
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7552
+ 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;
7553
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7554
+ });
7555
+ },
7270
7556
  /**
7271
7557
  *
7272
7558
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -7312,6 +7598,23 @@ const UserProfileApiFp = function (configuration) {
7312
7598
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7313
7599
  });
7314
7600
  },
7601
+ /**
7602
+ *
7603
+ * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
7604
+ * @param {number} [limit] Nombre maximum de réservations à retourner
7605
+ * @param {number} [skip] Nombre de réservations à ignorer (pagination)
7606
+ * @param {*} [options] Override http request option.
7607
+ * @throws {RequiredError}
7608
+ */
7609
+ getUserBookings(limit, skip, options) {
7610
+ return __awaiter(this, void 0, void 0, function* () {
7611
+ var _a, _b, _c;
7612
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBookings(limit, skip, options);
7613
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7614
+ 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;
7615
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7616
+ });
7617
+ },
7315
7618
  /**
7316
7619
  *
7317
7620
  * @summary Récupère la ville de l\'utilisateur connecté
@@ -7372,6 +7675,38 @@ const UserProfileApiFp = function (configuration) {
7372
7675
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7373
7676
  });
7374
7677
  },
7678
+ /**
7679
+ *
7680
+ * @summary Remove a club from the user\'s favorite list
7681
+ * @param {string} clubId ID of the club to remove from favorites
7682
+ * @param {*} [options] Override http request option.
7683
+ * @throws {RequiredError}
7684
+ */
7685
+ removeFavoriteClub(clubId, options) {
7686
+ return __awaiter(this, void 0, void 0, function* () {
7687
+ var _a, _b, _c;
7688
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFavoriteClub(clubId, options);
7689
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7690
+ 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;
7691
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7692
+ });
7693
+ },
7694
+ /**
7695
+ *
7696
+ * @summary Retire un joueur des favoris de l\'utilisateur connecté
7697
+ * @param {string} favoritePlayerId ID du joueur à retirer des favoris
7698
+ * @param {*} [options] Override http request option.
7699
+ * @throws {RequiredError}
7700
+ */
7701
+ removeFavoritePlayer(favoritePlayerId, options) {
7702
+ return __awaiter(this, void 0, void 0, function* () {
7703
+ var _a, _b, _c;
7704
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFavoritePlayer(favoritePlayerId, options);
7705
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7706
+ 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;
7707
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7708
+ });
7709
+ },
7375
7710
  /**
7376
7711
  *
7377
7712
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -7478,6 +7813,26 @@ exports.UserProfileApiFp = UserProfileApiFp;
7478
7813
  const UserProfileApiFactory = function (configuration, basePath, axios) {
7479
7814
  const localVarFp = (0, exports.UserProfileApiFp)(configuration);
7480
7815
  return {
7816
+ /**
7817
+ *
7818
+ * @summary Add a club to the user\'s favorite list
7819
+ * @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
7820
+ * @param {*} [options] Override http request option.
7821
+ * @throws {RequiredError}
7822
+ */
7823
+ addFavoriteClub(requestParameters, options) {
7824
+ return localVarFp.addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(axios, basePath));
7825
+ },
7826
+ /**
7827
+ *
7828
+ * @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
7829
+ * @param {UserProfileApiAddFavoritePlayerRequest} requestParameters Request parameters.
7830
+ * @param {*} [options] Override http request option.
7831
+ * @throws {RequiredError}
7832
+ */
7833
+ addFavoritePlayer(requestParameters, options) {
7834
+ return localVarFp.addFavoritePlayer(requestParameters.addFavoritePlayerRequestBody, options).then((request) => request(axios, basePath));
7835
+ },
7481
7836
  /**
7482
7837
  *
7483
7838
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -7498,6 +7853,24 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
7498
7853
  getAllUsers(requestParameters = {}, options) {
7499
7854
  return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
7500
7855
  },
7856
+ /**
7857
+ *
7858
+ * @summary Retrieve the list of favorite clubs for the logged-in user
7859
+ * @param {*} [options] Override http request option.
7860
+ * @throws {RequiredError}
7861
+ */
7862
+ getFavoriteClubs(options) {
7863
+ return localVarFp.getFavoriteClubs(options).then((request) => request(axios, basePath));
7864
+ },
7865
+ /**
7866
+ *
7867
+ * @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
7868
+ * @param {*} [options] Override http request option.
7869
+ * @throws {RequiredError}
7870
+ */
7871
+ getFavoritesPlayers(options) {
7872
+ return localVarFp.getFavoritesPlayers(options).then((request) => request(axios, basePath));
7873
+ },
7501
7874
  /**
7502
7875
  *
7503
7876
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -7525,6 +7898,16 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
7525
7898
  getProfilePicture(options) {
7526
7899
  return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
7527
7900
  },
7901
+ /**
7902
+ *
7903
+ * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
7904
+ * @param {UserProfileApiGetUserBookingsRequest} requestParameters Request parameters.
7905
+ * @param {*} [options] Override http request option.
7906
+ * @throws {RequiredError}
7907
+ */
7908
+ getUserBookings(requestParameters = {}, options) {
7909
+ return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
7910
+ },
7528
7911
  /**
7529
7912
  *
7530
7913
  * @summary Récupère la ville de l\'utilisateur connecté
@@ -7561,6 +7944,26 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
7561
7944
  getUserProfileVisibility(options) {
7562
7945
  return localVarFp.getUserProfileVisibility(options).then((request) => request(axios, basePath));
7563
7946
  },
7947
+ /**
7948
+ *
7949
+ * @summary Remove a club from the user\'s favorite list
7950
+ * @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
7951
+ * @param {*} [options] Override http request option.
7952
+ * @throws {RequiredError}
7953
+ */
7954
+ removeFavoriteClub(requestParameters, options) {
7955
+ return localVarFp.removeFavoriteClub(requestParameters.clubId, options).then((request) => request(axios, basePath));
7956
+ },
7957
+ /**
7958
+ *
7959
+ * @summary Retire un joueur des favoris de l\'utilisateur connecté
7960
+ * @param {UserProfileApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
7961
+ * @param {*} [options] Override http request option.
7962
+ * @throws {RequiredError}
7963
+ */
7964
+ removeFavoritePlayer(requestParameters, options) {
7965
+ return localVarFp.removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(axios, basePath));
7966
+ },
7564
7967
  /**
7565
7968
  *
7566
7969
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -7631,6 +8034,28 @@ exports.UserProfileApiFactory = UserProfileApiFactory;
7631
8034
  * @extends {BaseAPI}
7632
8035
  */
7633
8036
  class UserProfileApi extends base_1.BaseAPI {
8037
+ /**
8038
+ *
8039
+ * @summary Add a club to the user\'s favorite list
8040
+ * @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
8041
+ * @param {*} [options] Override http request option.
8042
+ * @throws {RequiredError}
8043
+ * @memberof UserProfileApi
8044
+ */
8045
+ addFavoriteClub(requestParameters, options) {
8046
+ return (0, exports.UserProfileApiFp)(this.configuration).addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(this.axios, this.basePath));
8047
+ }
8048
+ /**
8049
+ *
8050
+ * @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
8051
+ * @param {UserProfileApiAddFavoritePlayerRequest} requestParameters Request parameters.
8052
+ * @param {*} [options] Override http request option.
8053
+ * @throws {RequiredError}
8054
+ * @memberof UserProfileApi
8055
+ */
8056
+ addFavoritePlayer(requestParameters, options) {
8057
+ return (0, exports.UserProfileApiFp)(this.configuration).addFavoritePlayer(requestParameters.addFavoritePlayerRequestBody, options).then((request) => request(this.axios, this.basePath));
8058
+ }
7634
8059
  /**
7635
8060
  *
7636
8061
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -7653,6 +8078,26 @@ class UserProfileApi extends base_1.BaseAPI {
7653
8078
  getAllUsers(requestParameters = {}, options) {
7654
8079
  return (0, exports.UserProfileApiFp)(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
7655
8080
  }
8081
+ /**
8082
+ *
8083
+ * @summary Retrieve the list of favorite clubs for the logged-in user
8084
+ * @param {*} [options] Override http request option.
8085
+ * @throws {RequiredError}
8086
+ * @memberof UserProfileApi
8087
+ */
8088
+ getFavoriteClubs(options) {
8089
+ return (0, exports.UserProfileApiFp)(this.configuration).getFavoriteClubs(options).then((request) => request(this.axios, this.basePath));
8090
+ }
8091
+ /**
8092
+ *
8093
+ * @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
8094
+ * @param {*} [options] Override http request option.
8095
+ * @throws {RequiredError}
8096
+ * @memberof UserProfileApi
8097
+ */
8098
+ getFavoritesPlayers(options) {
8099
+ return (0, exports.UserProfileApiFp)(this.configuration).getFavoritesPlayers(options).then((request) => request(this.axios, this.basePath));
8100
+ }
7656
8101
  /**
7657
8102
  *
7658
8103
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -7683,6 +8128,17 @@ class UserProfileApi extends base_1.BaseAPI {
7683
8128
  getProfilePicture(options) {
7684
8129
  return (0, exports.UserProfileApiFp)(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
7685
8130
  }
8131
+ /**
8132
+ *
8133
+ * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
8134
+ * @param {UserProfileApiGetUserBookingsRequest} requestParameters Request parameters.
8135
+ * @param {*} [options] Override http request option.
8136
+ * @throws {RequiredError}
8137
+ * @memberof UserProfileApi
8138
+ */
8139
+ getUserBookings(requestParameters = {}, options) {
8140
+ return (0, exports.UserProfileApiFp)(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
8141
+ }
7686
8142
  /**
7687
8143
  *
7688
8144
  * @summary Récupère la ville de l\'utilisateur connecté
@@ -7723,6 +8179,28 @@ class UserProfileApi extends base_1.BaseAPI {
7723
8179
  getUserProfileVisibility(options) {
7724
8180
  return (0, exports.UserProfileApiFp)(this.configuration).getUserProfileVisibility(options).then((request) => request(this.axios, this.basePath));
7725
8181
  }
8182
+ /**
8183
+ *
8184
+ * @summary Remove a club from the user\'s favorite list
8185
+ * @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
8186
+ * @param {*} [options] Override http request option.
8187
+ * @throws {RequiredError}
8188
+ * @memberof UserProfileApi
8189
+ */
8190
+ removeFavoriteClub(requestParameters, options) {
8191
+ return (0, exports.UserProfileApiFp)(this.configuration).removeFavoriteClub(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
8192
+ }
8193
+ /**
8194
+ *
8195
+ * @summary Retire un joueur des favoris de l\'utilisateur connecté
8196
+ * @param {UserProfileApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
8197
+ * @param {*} [options] Override http request option.
8198
+ * @throws {RequiredError}
8199
+ * @memberof UserProfileApi
8200
+ */
8201
+ removeFavoritePlayer(requestParameters, options) {
8202
+ return (0, exports.UserProfileApiFp)(this.configuration).removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(this.axios, this.basePath));
8203
+ }
7726
8204
  /**
7727
8205
  *
7728
8206
  * @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.27
5
+ * The version of the OpenAPI document: 1.0.29
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.27
8
+ * The version of the OpenAPI document: 1.0.29
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.27
5
+ * The version of the OpenAPI document: 1.0.29
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.27
8
+ * The version of the OpenAPI document: 1.0.29
9
9
  *
10
10
  *
11
11
  * 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.27
5
+ * The version of the OpenAPI document: 1.0.29
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.27
8
+ * The version of the OpenAPI document: 1.0.29
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).