@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/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.27
7
+ * The version of the OpenAPI document: 1.0.29
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6639,6 +6639,72 @@ export class UserPaymentApi extends BaseAPI {
6639
6639
  */
6640
6640
  export const UserProfileApiAxiosParamCreator = function (configuration) {
6641
6641
  return {
6642
+ /**
6643
+ *
6644
+ * @summary Add a club to the user\'s favorite list
6645
+ * @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
6646
+ * @param {*} [options] Override http request option.
6647
+ * @throws {RequiredError}
6648
+ */
6649
+ addFavoriteClub: (addFavoriteClubRequestBody_1, ...args_1) => __awaiter(this, [addFavoriteClubRequestBody_1, ...args_1], void 0, function* (addFavoriteClubRequestBody, options = {}) {
6650
+ // verify required parameter 'addFavoriteClubRequestBody' is not null or undefined
6651
+ assertParamExists('addFavoriteClub', 'addFavoriteClubRequestBody', addFavoriteClubRequestBody);
6652
+ const localVarPath = `/api/users/me/favorite-clubs`;
6653
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6654
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6655
+ let baseOptions;
6656
+ if (configuration) {
6657
+ baseOptions = configuration.baseOptions;
6658
+ }
6659
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6660
+ const localVarHeaderParameter = {};
6661
+ const localVarQueryParameter = {};
6662
+ // authentication bearerAuth required
6663
+ // http bearer authentication required
6664
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6665
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6666
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6667
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6668
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6669
+ localVarRequestOptions.data = serializeDataIfNeeded(addFavoriteClubRequestBody, localVarRequestOptions, configuration);
6670
+ return {
6671
+ url: toPathString(localVarUrlObj),
6672
+ options: localVarRequestOptions,
6673
+ };
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
+ }),
6642
6708
  /**
6643
6709
  *
6644
6710
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -6712,6 +6778,62 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
6712
6778
  options: localVarRequestOptions,
6713
6779
  };
6714
6780
  }),
6781
+ /**
6782
+ *
6783
+ * @summary Retrieve the list of favorite clubs for the logged-in user
6784
+ * @param {*} [options] Override http request option.
6785
+ * @throws {RequiredError}
6786
+ */
6787
+ getFavoriteClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6788
+ const localVarPath = `/api/users/me/favorite-clubs`;
6789
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6790
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6791
+ let baseOptions;
6792
+ if (configuration) {
6793
+ baseOptions = configuration.baseOptions;
6794
+ }
6795
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6796
+ const localVarHeaderParameter = {};
6797
+ const localVarQueryParameter = {};
6798
+ // authentication bearerAuth required
6799
+ // http bearer authentication required
6800
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6801
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6802
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6803
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6804
+ return {
6805
+ url: toPathString(localVarUrlObj),
6806
+ options: localVarRequestOptions,
6807
+ };
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
+ }),
6715
6837
  /**
6716
6838
  *
6717
6839
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -6796,6 +6918,42 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
6796
6918
  options: localVarRequestOptions,
6797
6919
  };
6798
6920
  }),
6921
+ /**
6922
+ *
6923
+ * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
6924
+ * @param {number} [limit] Nombre maximum de réservations à retourner
6925
+ * @param {number} [skip] Nombre de réservations à ignorer (pagination)
6926
+ * @param {*} [options] Override http request option.
6927
+ * @throws {RequiredError}
6928
+ */
6929
+ getUserBookings: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
6930
+ const localVarPath = `/api/users/me/bookings`;
6931
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6932
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6933
+ let baseOptions;
6934
+ if (configuration) {
6935
+ baseOptions = configuration.baseOptions;
6936
+ }
6937
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6938
+ const localVarHeaderParameter = {};
6939
+ const localVarQueryParameter = {};
6940
+ // authentication bearerAuth required
6941
+ // http bearer authentication required
6942
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6943
+ if (limit !== undefined) {
6944
+ localVarQueryParameter['limit'] = limit;
6945
+ }
6946
+ if (skip !== undefined) {
6947
+ localVarQueryParameter['skip'] = skip;
6948
+ }
6949
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6950
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6951
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6952
+ return {
6953
+ url: toPathString(localVarUrlObj),
6954
+ options: localVarRequestOptions,
6955
+ };
6956
+ }),
6799
6957
  /**
6800
6958
  *
6801
6959
  * @summary Récupère la ville de l\'utilisateur connecté
@@ -6908,6 +7066,72 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
6908
7066
  options: localVarRequestOptions,
6909
7067
  };
6910
7068
  }),
7069
+ /**
7070
+ *
7071
+ * @summary Remove a club from the user\'s favorite list
7072
+ * @param {string} clubId ID of the club to remove from favorites
7073
+ * @param {*} [options] Override http request option.
7074
+ * @throws {RequiredError}
7075
+ */
7076
+ removeFavoriteClub: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
7077
+ // verify required parameter 'clubId' is not null or undefined
7078
+ assertParamExists('removeFavoriteClub', 'clubId', clubId);
7079
+ const localVarPath = `/api/users/me/favorite-clubs`;
7080
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7081
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7082
+ let baseOptions;
7083
+ if (configuration) {
7084
+ baseOptions = configuration.baseOptions;
7085
+ }
7086
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
7087
+ const localVarHeaderParameter = {};
7088
+ const localVarQueryParameter = {};
7089
+ // authentication bearerAuth required
7090
+ // http bearer authentication required
7091
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7092
+ if (clubId !== undefined) {
7093
+ localVarQueryParameter['clubId'] = clubId;
7094
+ }
7095
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7096
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7097
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7098
+ return {
7099
+ url: toPathString(localVarUrlObj),
7100
+ options: localVarRequestOptions,
7101
+ };
7102
+ }),
7103
+ /**
7104
+ *
7105
+ * @summary Retire un joueur des favoris de l\'utilisateur connecté
7106
+ * @param {string} favoritePlayerId ID du joueur à retirer des favoris
7107
+ * @param {*} [options] Override http request option.
7108
+ * @throws {RequiredError}
7109
+ */
7110
+ removeFavoritePlayer: (favoritePlayerId_1, ...args_1) => __awaiter(this, [favoritePlayerId_1, ...args_1], void 0, function* (favoritePlayerId, options = {}) {
7111
+ // verify required parameter 'favoritePlayerId' is not null or undefined
7112
+ assertParamExists('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId);
7113
+ const localVarPath = `/api/users/me/favoritesPlayers/{favoritePlayerId}`
7114
+ .replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
7115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7116
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7117
+ let baseOptions;
7118
+ if (configuration) {
7119
+ baseOptions = configuration.baseOptions;
7120
+ }
7121
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
7122
+ const localVarHeaderParameter = {};
7123
+ const localVarQueryParameter = {};
7124
+ // authentication bearerAuth required
7125
+ // http bearer authentication required
7126
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7127
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7129
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7130
+ return {
7131
+ url: toPathString(localVarUrlObj),
7132
+ options: localVarRequestOptions,
7133
+ };
7134
+ }),
6911
7135
  /**
6912
7136
  *
6913
7137
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -7115,6 +7339,38 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
7115
7339
  export const UserProfileApiFp = function (configuration) {
7116
7340
  const localVarAxiosParamCreator = UserProfileApiAxiosParamCreator(configuration);
7117
7341
  return {
7342
+ /**
7343
+ *
7344
+ * @summary Add a club to the user\'s favorite list
7345
+ * @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
7346
+ * @param {*} [options] Override http request option.
7347
+ * @throws {RequiredError}
7348
+ */
7349
+ addFavoriteClub(addFavoriteClubRequestBody, options) {
7350
+ return __awaiter(this, void 0, void 0, function* () {
7351
+ var _a, _b, _c;
7352
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addFavoriteClub(addFavoriteClubRequestBody, options);
7353
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7354
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.addFavoriteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7355
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7356
+ });
7357
+ },
7358
+ /**
7359
+ *
7360
+ * @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
7361
+ * @param {AddFavoritePlayerRequestBody} addFavoritePlayerRequestBody
7362
+ * @param {*} [options] Override http request option.
7363
+ * @throws {RequiredError}
7364
+ */
7365
+ addFavoritePlayer(addFavoritePlayerRequestBody, options) {
7366
+ return __awaiter(this, void 0, void 0, function* () {
7367
+ var _a, _b, _c;
7368
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addFavoritePlayer(addFavoritePlayerRequestBody, options);
7369
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7370
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.addFavoritePlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7371
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7372
+ });
7373
+ },
7118
7374
  /**
7119
7375
  *
7120
7376
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -7149,6 +7405,36 @@ export const UserProfileApiFp = function (configuration) {
7149
7405
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7150
7406
  });
7151
7407
  },
7408
+ /**
7409
+ *
7410
+ * @summary Retrieve the list of favorite clubs for the logged-in user
7411
+ * @param {*} [options] Override http request option.
7412
+ * @throws {RequiredError}
7413
+ */
7414
+ getFavoriteClubs(options) {
7415
+ return __awaiter(this, void 0, void 0, function* () {
7416
+ var _a, _b, _c;
7417
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoriteClubs(options);
7418
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7419
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getFavoriteClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7420
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7421
+ });
7422
+ },
7423
+ /**
7424
+ *
7425
+ * @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
7426
+ * @param {*} [options] Override http request option.
7427
+ * @throws {RequiredError}
7428
+ */
7429
+ getFavoritesPlayers(options) {
7430
+ return __awaiter(this, void 0, void 0, function* () {
7431
+ var _a, _b, _c;
7432
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoritesPlayers(options);
7433
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7434
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getFavoritesPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7435
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7436
+ });
7437
+ },
7152
7438
  /**
7153
7439
  *
7154
7440
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -7194,6 +7480,23 @@ export const UserProfileApiFp = function (configuration) {
7194
7480
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7195
7481
  });
7196
7482
  },
7483
+ /**
7484
+ *
7485
+ * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
7486
+ * @param {number} [limit] Nombre maximum de réservations à retourner
7487
+ * @param {number} [skip] Nombre de réservations à ignorer (pagination)
7488
+ * @param {*} [options] Override http request option.
7489
+ * @throws {RequiredError}
7490
+ */
7491
+ getUserBookings(limit, skip, options) {
7492
+ return __awaiter(this, void 0, void 0, function* () {
7493
+ var _a, _b, _c;
7494
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBookings(limit, skip, options);
7495
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7496
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getUserBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7497
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7498
+ });
7499
+ },
7197
7500
  /**
7198
7501
  *
7199
7502
  * @summary Récupère la ville de l\'utilisateur connecté
@@ -7254,6 +7557,38 @@ export const UserProfileApiFp = function (configuration) {
7254
7557
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7255
7558
  });
7256
7559
  },
7560
+ /**
7561
+ *
7562
+ * @summary Remove a club from the user\'s favorite list
7563
+ * @param {string} clubId ID of the club to remove from favorites
7564
+ * @param {*} [options] Override http request option.
7565
+ * @throws {RequiredError}
7566
+ */
7567
+ removeFavoriteClub(clubId, options) {
7568
+ return __awaiter(this, void 0, void 0, function* () {
7569
+ var _a, _b, _c;
7570
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFavoriteClub(clubId, options);
7571
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7572
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.removeFavoriteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7573
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7574
+ });
7575
+ },
7576
+ /**
7577
+ *
7578
+ * @summary Retire un joueur des favoris de l\'utilisateur connecté
7579
+ * @param {string} favoritePlayerId ID du joueur à retirer des favoris
7580
+ * @param {*} [options] Override http request option.
7581
+ * @throws {RequiredError}
7582
+ */
7583
+ removeFavoritePlayer(favoritePlayerId, options) {
7584
+ return __awaiter(this, void 0, void 0, function* () {
7585
+ var _a, _b, _c;
7586
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFavoritePlayer(favoritePlayerId, options);
7587
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7588
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.removeFavoritePlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7589
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7590
+ });
7591
+ },
7257
7592
  /**
7258
7593
  *
7259
7594
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -7359,6 +7694,26 @@ export const UserProfileApiFp = function (configuration) {
7359
7694
  export const UserProfileApiFactory = function (configuration, basePath, axios) {
7360
7695
  const localVarFp = UserProfileApiFp(configuration);
7361
7696
  return {
7697
+ /**
7698
+ *
7699
+ * @summary Add a club to the user\'s favorite list
7700
+ * @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
7701
+ * @param {*} [options] Override http request option.
7702
+ * @throws {RequiredError}
7703
+ */
7704
+ addFavoriteClub(requestParameters, options) {
7705
+ return localVarFp.addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(axios, basePath));
7706
+ },
7707
+ /**
7708
+ *
7709
+ * @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
7710
+ * @param {UserProfileApiAddFavoritePlayerRequest} requestParameters Request parameters.
7711
+ * @param {*} [options] Override http request option.
7712
+ * @throws {RequiredError}
7713
+ */
7714
+ addFavoritePlayer(requestParameters, options) {
7715
+ return localVarFp.addFavoritePlayer(requestParameters.addFavoritePlayerRequestBody, options).then((request) => request(axios, basePath));
7716
+ },
7362
7717
  /**
7363
7718
  *
7364
7719
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -7379,6 +7734,24 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
7379
7734
  getAllUsers(requestParameters = {}, options) {
7380
7735
  return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
7381
7736
  },
7737
+ /**
7738
+ *
7739
+ * @summary Retrieve the list of favorite clubs for the logged-in user
7740
+ * @param {*} [options] Override http request option.
7741
+ * @throws {RequiredError}
7742
+ */
7743
+ getFavoriteClubs(options) {
7744
+ return localVarFp.getFavoriteClubs(options).then((request) => request(axios, basePath));
7745
+ },
7746
+ /**
7747
+ *
7748
+ * @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
7749
+ * @param {*} [options] Override http request option.
7750
+ * @throws {RequiredError}
7751
+ */
7752
+ getFavoritesPlayers(options) {
7753
+ return localVarFp.getFavoritesPlayers(options).then((request) => request(axios, basePath));
7754
+ },
7382
7755
  /**
7383
7756
  *
7384
7757
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -7406,6 +7779,16 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
7406
7779
  getProfilePicture(options) {
7407
7780
  return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
7408
7781
  },
7782
+ /**
7783
+ *
7784
+ * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
7785
+ * @param {UserProfileApiGetUserBookingsRequest} requestParameters Request parameters.
7786
+ * @param {*} [options] Override http request option.
7787
+ * @throws {RequiredError}
7788
+ */
7789
+ getUserBookings(requestParameters = {}, options) {
7790
+ return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
7791
+ },
7409
7792
  /**
7410
7793
  *
7411
7794
  * @summary Récupère la ville de l\'utilisateur connecté
@@ -7442,6 +7825,26 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
7442
7825
  getUserProfileVisibility(options) {
7443
7826
  return localVarFp.getUserProfileVisibility(options).then((request) => request(axios, basePath));
7444
7827
  },
7828
+ /**
7829
+ *
7830
+ * @summary Remove a club from the user\'s favorite list
7831
+ * @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
7832
+ * @param {*} [options] Override http request option.
7833
+ * @throws {RequiredError}
7834
+ */
7835
+ removeFavoriteClub(requestParameters, options) {
7836
+ return localVarFp.removeFavoriteClub(requestParameters.clubId, options).then((request) => request(axios, basePath));
7837
+ },
7838
+ /**
7839
+ *
7840
+ * @summary Retire un joueur des favoris de l\'utilisateur connecté
7841
+ * @param {UserProfileApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
7842
+ * @param {*} [options] Override http request option.
7843
+ * @throws {RequiredError}
7844
+ */
7845
+ removeFavoritePlayer(requestParameters, options) {
7846
+ return localVarFp.removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(axios, basePath));
7847
+ },
7445
7848
  /**
7446
7849
  *
7447
7850
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -7511,6 +7914,28 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
7511
7914
  * @extends {BaseAPI}
7512
7915
  */
7513
7916
  export class UserProfileApi extends BaseAPI {
7917
+ /**
7918
+ *
7919
+ * @summary Add a club to the user\'s favorite list
7920
+ * @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
7921
+ * @param {*} [options] Override http request option.
7922
+ * @throws {RequiredError}
7923
+ * @memberof UserProfileApi
7924
+ */
7925
+ addFavoriteClub(requestParameters, options) {
7926
+ return UserProfileApiFp(this.configuration).addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(this.axios, this.basePath));
7927
+ }
7928
+ /**
7929
+ *
7930
+ * @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
7931
+ * @param {UserProfileApiAddFavoritePlayerRequest} requestParameters Request parameters.
7932
+ * @param {*} [options] Override http request option.
7933
+ * @throws {RequiredError}
7934
+ * @memberof UserProfileApi
7935
+ */
7936
+ addFavoritePlayer(requestParameters, options) {
7937
+ return UserProfileApiFp(this.configuration).addFavoritePlayer(requestParameters.addFavoritePlayerRequestBody, options).then((request) => request(this.axios, this.basePath));
7938
+ }
7514
7939
  /**
7515
7940
  *
7516
7941
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -7533,6 +7958,26 @@ export class UserProfileApi extends BaseAPI {
7533
7958
  getAllUsers(requestParameters = {}, options) {
7534
7959
  return UserProfileApiFp(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
7535
7960
  }
7961
+ /**
7962
+ *
7963
+ * @summary Retrieve the list of favorite clubs for the logged-in user
7964
+ * @param {*} [options] Override http request option.
7965
+ * @throws {RequiredError}
7966
+ * @memberof UserProfileApi
7967
+ */
7968
+ getFavoriteClubs(options) {
7969
+ return UserProfileApiFp(this.configuration).getFavoriteClubs(options).then((request) => request(this.axios, this.basePath));
7970
+ }
7971
+ /**
7972
+ *
7973
+ * @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
7974
+ * @param {*} [options] Override http request option.
7975
+ * @throws {RequiredError}
7976
+ * @memberof UserProfileApi
7977
+ */
7978
+ getFavoritesPlayers(options) {
7979
+ return UserProfileApiFp(this.configuration).getFavoritesPlayers(options).then((request) => request(this.axios, this.basePath));
7980
+ }
7536
7981
  /**
7537
7982
  *
7538
7983
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -7563,6 +8008,17 @@ export class UserProfileApi extends BaseAPI {
7563
8008
  getProfilePicture(options) {
7564
8009
  return UserProfileApiFp(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
7565
8010
  }
8011
+ /**
8012
+ *
8013
+ * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
8014
+ * @param {UserProfileApiGetUserBookingsRequest} requestParameters Request parameters.
8015
+ * @param {*} [options] Override http request option.
8016
+ * @throws {RequiredError}
8017
+ * @memberof UserProfileApi
8018
+ */
8019
+ getUserBookings(requestParameters = {}, options) {
8020
+ return UserProfileApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
8021
+ }
7566
8022
  /**
7567
8023
  *
7568
8024
  * @summary Récupère la ville de l\'utilisateur connecté
@@ -7603,6 +8059,28 @@ export class UserProfileApi extends BaseAPI {
7603
8059
  getUserProfileVisibility(options) {
7604
8060
  return UserProfileApiFp(this.configuration).getUserProfileVisibility(options).then((request) => request(this.axios, this.basePath));
7605
8061
  }
8062
+ /**
8063
+ *
8064
+ * @summary Remove a club from the user\'s favorite list
8065
+ * @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
8066
+ * @param {*} [options] Override http request option.
8067
+ * @throws {RequiredError}
8068
+ * @memberof UserProfileApi
8069
+ */
8070
+ removeFavoriteClub(requestParameters, options) {
8071
+ return UserProfileApiFp(this.configuration).removeFavoriteClub(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
8072
+ }
8073
+ /**
8074
+ *
8075
+ * @summary Retire un joueur des favoris de l\'utilisateur connecté
8076
+ * @param {UserProfileApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
8077
+ * @param {*} [options] Override http request option.
8078
+ * @throws {RequiredError}
8079
+ * @memberof UserProfileApi
8080
+ */
8081
+ removeFavoritePlayer(requestParameters, options) {
8082
+ return UserProfileApiFp(this.configuration).removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(this.axios, this.basePath));
8083
+ }
7606
8084
  /**
7607
8085
  *
7608
8086
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -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/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.27
7
+ * The version of the OpenAPI document: 1.0.29
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.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).
@@ -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.27
7
+ * The version of the OpenAPI document: 1.0.29
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.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).
@@ -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.27
7
+ * The version of the OpenAPI document: 1.0.29
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.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).