@tennac-booking/sdk 1.0.27 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,6 +87,7 @@ docs/GetClubInfos200Response.md
87
87
  docs/GetClubSettingsRequest.md
88
88
  docs/GetClubUsersById200Response.md
89
89
  docs/GetCourtsByClubAndSport200Response.md
90
+ docs/GetFavoriteClubs200Response.md
90
91
  docs/GetLastSixMonthsTurnover200ResponseInner.md
91
92
  docs/GetNumberOfClubUsers200Response.md
92
93
  docs/GetPublishedEventsByClubId200Response.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @tennac-booking/sdk@1.0.27
1
+ ## @tennac-booking/sdk@1.0.28
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @tennac-booking/sdk@1.0.27 --save
39
+ npm install @tennac-booking/sdk@1.0.28 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -128,8 +128,10 @@ Class | Method | HTTP request | Description
128
128
  *UserPaymentApi* | [**addPaymentMethodSetup**](docs/UserPaymentApi.md#addpaymentmethodsetup) | **POST** /api/users/addPaymentMethodSetup | Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
129
129
  *UserPaymentApi* | [**confirmPaymentMethodSetup**](docs/UserPaymentApi.md#confirmpaymentmethodsetup) | **POST** /api/users/confirmPaymentMethodSetup | Confirme la configuration d\'une méthode de paiement
130
130
  *UserPaymentApi* | [**setupPaymentMethod**](docs/UserPaymentApi.md#setuppaymentmethod) | **POST** /api/users/setupPaymentMethod | Configure une méthode de paiement pour un utilisateur
131
+ *UserProfileApi* | [**addFavoriteClub**](docs/UserProfileApi.md#addfavoriteclub) | **POST** /api/users/me/favorite-clubs | Add a club to the user\'s favorite list
131
132
  *UserProfileApi* | [**changePassword**](docs/UserProfileApi.md#changepassword) | **PUT** /api/users/me/password | Modifie le mot de passe de l\'utilisateur connecté
132
133
  *UserProfileApi* | [**getAllUsers**](docs/UserProfileApi.md#getallusers) | **GET** /api/users | Récupère la liste des utilisateurs avec filtres et pagination
134
+ *UserProfileApi* | [**getFavoriteClubs**](docs/UserProfileApi.md#getfavoriteclubs) | **GET** /api/users/me/favorite-clubs | Retrieve the list of favorite clubs for the logged-in user
133
135
  *UserProfileApi* | [**getFrequentlyPlayedWith**](docs/UserProfileApi.md#getfrequentlyplayedwith) | **GET** /api/users/me/frequentlyPlayedWith | Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
134
136
  *UserProfileApi* | [**getFrequentlyVisitedClub**](docs/UserProfileApi.md#getfrequentlyvisitedclub) | **GET** /api/users/me/frequentlyVisitedClub | Clubs les plus fréquemment visités par l\'utilisateur connecté
135
137
  *UserProfileApi* | [**getProfilePicture**](docs/UserProfileApi.md#getprofilepicture) | **GET** /api/users/me/profile-picture | Récupère l\'URL de la photo de profil de l\'utilisateur connecté
@@ -137,6 +139,7 @@ Class | Method | HTTP request | Description
137
139
  *UserProfileApi* | [**getUserDescription**](docs/UserProfileApi.md#getuserdescription) | **GET** /api/users/me/description | Récupère la description de l\'utilisateur connecté
138
140
  *UserProfileApi* | [**getUserInfo**](docs/UserProfileApi.md#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté
139
141
  *UserProfileApi* | [**getUserProfileVisibility**](docs/UserProfileApi.md#getuserprofilevisibility) | **GET** /api/users/me/profile-visibility | Récupère la visibilité du profil de l\'utilisateur connecté
142
+ *UserProfileApi* | [**removeFavoriteClub**](docs/UserProfileApi.md#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs | Remove a club from the user\'s favorite list
140
143
  *UserProfileApi* | [**updateLevelBySports**](docs/UserProfileApi.md#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | Met à jour le tableau levelBySports de l\'utilisateur connecté
141
144
  *UserProfileApi* | [**updateProfilePicture**](docs/UserProfileApi.md#updateprofilepicture) | **PUT** /api/users/me/profile-picture | Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
142
145
  *UserProfileApi* | [**updateProfileVisibility**](docs/UserProfileApi.md#updateprofilevisibility) | **PUT** /api/users/me/profile-visibility | Met à jour la visibilité du profil de l\'utilisateur connecté
@@ -225,6 +228,7 @@ Class | Method | HTTP request | Description
225
228
  - [GetClubSettingsRequest](docs/GetClubSettingsRequest.md)
226
229
  - [GetClubUsersById200Response](docs/GetClubUsersById200Response.md)
227
230
  - [GetCourtsByClubAndSport200Response](docs/GetCourtsByClubAndSport200Response.md)
231
+ - [GetFavoriteClubs200Response](docs/GetFavoriteClubs200Response.md)
228
232
  - [GetLastSixMonthsTurnover200ResponseInner](docs/GetLastSixMonthsTurnover200ResponseInner.md)
229
233
  - [GetNumberOfClubUsers200Response](docs/GetNumberOfClubUsers200Response.md)
230
234
  - [GetPublishedEventsByClubId200Response](docs/GetPublishedEventsByClubId200Response.md)
package/api.ts 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.28
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2466,6 +2466,19 @@ export interface GetCourtsByClubAndSport200Response {
2466
2466
  */
2467
2467
  'sportId'?: string;
2468
2468
  }
2469
+ /**
2470
+ *
2471
+ * @export
2472
+ * @interface GetFavoriteClubs200Response
2473
+ */
2474
+ export interface GetFavoriteClubs200Response {
2475
+ /**
2476
+ *
2477
+ * @type {Array<string>}
2478
+ * @memberof GetFavoriteClubs200Response
2479
+ */
2480
+ 'favoriteClubs'?: Array<string>;
2481
+ }
2469
2482
  /**
2470
2483
  *
2471
2484
  * @export
@@ -12837,6 +12850,46 @@ export class UserPaymentApi extends BaseAPI {
12837
12850
  */
12838
12851
  export const UserProfileApiAxiosParamCreator = function (configuration?: Configuration) {
12839
12852
  return {
12853
+ /**
12854
+ *
12855
+ * @summary Add a club to the user\'s favorite list
12856
+ * @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
12857
+ * @param {*} [options] Override http request option.
12858
+ * @throws {RequiredError}
12859
+ */
12860
+ addFavoriteClub: async (addFavoriteClubRequestBody: AddFavoriteClubRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12861
+ // verify required parameter 'addFavoriteClubRequestBody' is not null or undefined
12862
+ assertParamExists('addFavoriteClub', 'addFavoriteClubRequestBody', addFavoriteClubRequestBody)
12863
+ const localVarPath = `/api/users/me/favorite-clubs`;
12864
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12865
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12866
+ let baseOptions;
12867
+ if (configuration) {
12868
+ baseOptions = configuration.baseOptions;
12869
+ }
12870
+
12871
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12872
+ const localVarHeaderParameter = {} as any;
12873
+ const localVarQueryParameter = {} as any;
12874
+
12875
+ // authentication bearerAuth required
12876
+ // http bearer authentication required
12877
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12878
+
12879
+
12880
+
12881
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12882
+
12883
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12884
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12885
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12886
+ localVarRequestOptions.data = serializeDataIfNeeded(addFavoriteClubRequestBody, localVarRequestOptions, configuration)
12887
+
12888
+ return {
12889
+ url: toPathString(localVarUrlObj),
12890
+ options: localVarRequestOptions,
12891
+ };
12892
+ },
12840
12893
  /**
12841
12894
  *
12842
12895
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -12917,6 +12970,40 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
12917
12970
 
12918
12971
 
12919
12972
 
12973
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12974
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12975
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12976
+
12977
+ return {
12978
+ url: toPathString(localVarUrlObj),
12979
+ options: localVarRequestOptions,
12980
+ };
12981
+ },
12982
+ /**
12983
+ *
12984
+ * @summary Retrieve the list of favorite clubs for the logged-in user
12985
+ * @param {*} [options] Override http request option.
12986
+ * @throws {RequiredError}
12987
+ */
12988
+ getFavoriteClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12989
+ const localVarPath = `/api/users/me/favorite-clubs`;
12990
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12991
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12992
+ let baseOptions;
12993
+ if (configuration) {
12994
+ baseOptions = configuration.baseOptions;
12995
+ }
12996
+
12997
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12998
+ const localVarHeaderParameter = {} as any;
12999
+ const localVarQueryParameter = {} as any;
13000
+
13001
+ // authentication bearerAuth required
13002
+ // http bearer authentication required
13003
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13004
+
13005
+
13006
+
12920
13007
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12921
13008
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12922
13009
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -13155,6 +13242,47 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
13155
13242
 
13156
13243
 
13157
13244
 
13245
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13246
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13247
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13248
+
13249
+ return {
13250
+ url: toPathString(localVarUrlObj),
13251
+ options: localVarRequestOptions,
13252
+ };
13253
+ },
13254
+ /**
13255
+ *
13256
+ * @summary Remove a club from the user\'s favorite list
13257
+ * @param {string} clubId ID of the club to remove from favorites
13258
+ * @param {*} [options] Override http request option.
13259
+ * @throws {RequiredError}
13260
+ */
13261
+ removeFavoriteClub: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13262
+ // verify required parameter 'clubId' is not null or undefined
13263
+ assertParamExists('removeFavoriteClub', 'clubId', clubId)
13264
+ const localVarPath = `/api/users/me/favorite-clubs`;
13265
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13266
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13267
+ let baseOptions;
13268
+ if (configuration) {
13269
+ baseOptions = configuration.baseOptions;
13270
+ }
13271
+
13272
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
13273
+ const localVarHeaderParameter = {} as any;
13274
+ const localVarQueryParameter = {} as any;
13275
+
13276
+ // authentication bearerAuth required
13277
+ // http bearer authentication required
13278
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13279
+
13280
+ if (clubId !== undefined) {
13281
+ localVarQueryParameter['clubId'] = clubId;
13282
+ }
13283
+
13284
+
13285
+
13158
13286
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13159
13287
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13160
13288
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -13414,6 +13542,19 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
13414
13542
  export const UserProfileApiFp = function(configuration?: Configuration) {
13415
13543
  const localVarAxiosParamCreator = UserProfileApiAxiosParamCreator(configuration)
13416
13544
  return {
13545
+ /**
13546
+ *
13547
+ * @summary Add a club to the user\'s favorite list
13548
+ * @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
13549
+ * @param {*} [options] Override http request option.
13550
+ * @throws {RequiredError}
13551
+ */
13552
+ async addFavoriteClub(addFavoriteClubRequestBody: AddFavoriteClubRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoriteClubResponse>> {
13553
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addFavoriteClub(addFavoriteClubRequestBody, options);
13554
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13555
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.addFavoriteClub']?.[localVarOperationServerIndex]?.url;
13556
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13557
+ },
13417
13558
  /**
13418
13559
  *
13419
13560
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -13442,6 +13583,18 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
13442
13583
  const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getAllUsers']?.[localVarOperationServerIndex]?.url;
13443
13584
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13444
13585
  },
13586
+ /**
13587
+ *
13588
+ * @summary Retrieve the list of favorite clubs for the logged-in user
13589
+ * @param {*} [options] Override http request option.
13590
+ * @throws {RequiredError}
13591
+ */
13592
+ async getFavoriteClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFavoriteClubs200Response>> {
13593
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFavoriteClubs(options);
13594
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13595
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getFavoriteClubs']?.[localVarOperationServerIndex]?.url;
13596
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13597
+ },
13445
13598
  /**
13446
13599
  *
13447
13600
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -13526,6 +13679,19 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
13526
13679
  const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getUserProfileVisibility']?.[localVarOperationServerIndex]?.url;
13527
13680
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13528
13681
  },
13682
+ /**
13683
+ *
13684
+ * @summary Remove a club from the user\'s favorite list
13685
+ * @param {string} clubId ID of the club to remove from favorites
13686
+ * @param {*} [options] Override http request option.
13687
+ * @throws {RequiredError}
13688
+ */
13689
+ async removeFavoriteClub(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoriteClubResponse>> {
13690
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeFavoriteClub(clubId, options);
13691
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13692
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.removeFavoriteClub']?.[localVarOperationServerIndex]?.url;
13693
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13694
+ },
13529
13695
  /**
13530
13696
  *
13531
13697
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -13614,6 +13780,16 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
13614
13780
  export const UserProfileApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
13615
13781
  const localVarFp = UserProfileApiFp(configuration)
13616
13782
  return {
13783
+ /**
13784
+ *
13785
+ * @summary Add a club to the user\'s favorite list
13786
+ * @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
13787
+ * @param {*} [options] Override http request option.
13788
+ * @throws {RequiredError}
13789
+ */
13790
+ addFavoriteClub(requestParameters: UserProfileApiAddFavoriteClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoriteClubResponse> {
13791
+ return localVarFp.addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(axios, basePath));
13792
+ },
13617
13793
  /**
13618
13794
  *
13619
13795
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -13634,6 +13810,15 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
13634
13810
  getAllUsers(requestParameters: UserProfileApiGetAllUsersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserResponse>> {
13635
13811
  return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
13636
13812
  },
13813
+ /**
13814
+ *
13815
+ * @summary Retrieve the list of favorite clubs for the logged-in user
13816
+ * @param {*} [options] Override http request option.
13817
+ * @throws {RequiredError}
13818
+ */
13819
+ getFavoriteClubs(options?: RawAxiosRequestConfig): AxiosPromise<GetFavoriteClubs200Response> {
13820
+ return localVarFp.getFavoriteClubs(options).then((request) => request(axios, basePath));
13821
+ },
13637
13822
  /**
13638
13823
  *
13639
13824
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -13697,6 +13882,16 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
13697
13882
  getUserProfileVisibility(options?: RawAxiosRequestConfig): AxiosPromise<ProfileVisibilityResponse> {
13698
13883
  return localVarFp.getUserProfileVisibility(options).then((request) => request(axios, basePath));
13699
13884
  },
13885
+ /**
13886
+ *
13887
+ * @summary Remove a club from the user\'s favorite list
13888
+ * @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
13889
+ * @param {*} [options] Override http request option.
13890
+ * @throws {RequiredError}
13891
+ */
13892
+ removeFavoriteClub(requestParameters: UserProfileApiRemoveFavoriteClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoriteClubResponse> {
13893
+ return localVarFp.removeFavoriteClub(requestParameters.clubId, options).then((request) => request(axios, basePath));
13894
+ },
13700
13895
  /**
13701
13896
  *
13702
13897
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -13760,6 +13955,20 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
13760
13955
  };
13761
13956
  };
13762
13957
 
13958
+ /**
13959
+ * Request parameters for addFavoriteClub operation in UserProfileApi.
13960
+ * @export
13961
+ * @interface UserProfileApiAddFavoriteClubRequest
13962
+ */
13963
+ export interface UserProfileApiAddFavoriteClubRequest {
13964
+ /**
13965
+ *
13966
+ * @type {AddFavoriteClubRequestBody}
13967
+ * @memberof UserProfileApiAddFavoriteClub
13968
+ */
13969
+ readonly addFavoriteClubRequestBody: AddFavoriteClubRequestBody
13970
+ }
13971
+
13763
13972
  /**
13764
13973
  * Request parameters for changePassword operation in UserProfileApi.
13765
13974
  * @export
@@ -13802,6 +14011,20 @@ export interface UserProfileApiGetAllUsersRequest {
13802
14011
  readonly search?: string
13803
14012
  }
13804
14013
 
14014
+ /**
14015
+ * Request parameters for removeFavoriteClub operation in UserProfileApi.
14016
+ * @export
14017
+ * @interface UserProfileApiRemoveFavoriteClubRequest
14018
+ */
14019
+ export interface UserProfileApiRemoveFavoriteClubRequest {
14020
+ /**
14021
+ * ID of the club to remove from favorites
14022
+ * @type {string}
14023
+ * @memberof UserProfileApiRemoveFavoriteClub
14024
+ */
14025
+ readonly clubId: string
14026
+ }
14027
+
13805
14028
  /**
13806
14029
  * Request parameters for updateLevelBySports operation in UserProfileApi.
13807
14030
  * @export
@@ -13893,6 +14116,18 @@ export interface UserProfileApiUpdateUserDescriptionRequest {
13893
14116
  * @extends {BaseAPI}
13894
14117
  */
13895
14118
  export class UserProfileApi extends BaseAPI {
14119
+ /**
14120
+ *
14121
+ * @summary Add a club to the user\'s favorite list
14122
+ * @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
14123
+ * @param {*} [options] Override http request option.
14124
+ * @throws {RequiredError}
14125
+ * @memberof UserProfileApi
14126
+ */
14127
+ public addFavoriteClub(requestParameters: UserProfileApiAddFavoriteClubRequest, options?: RawAxiosRequestConfig) {
14128
+ return UserProfileApiFp(this.configuration).addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(this.axios, this.basePath));
14129
+ }
14130
+
13896
14131
  /**
13897
14132
  *
13898
14133
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -13917,6 +14152,17 @@ export class UserProfileApi extends BaseAPI {
13917
14152
  return UserProfileApiFp(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
13918
14153
  }
13919
14154
 
14155
+ /**
14156
+ *
14157
+ * @summary Retrieve the list of favorite clubs for the logged-in user
14158
+ * @param {*} [options] Override http request option.
14159
+ * @throws {RequiredError}
14160
+ * @memberof UserProfileApi
14161
+ */
14162
+ public getFavoriteClubs(options?: RawAxiosRequestConfig) {
14163
+ return UserProfileApiFp(this.configuration).getFavoriteClubs(options).then((request) => request(this.axios, this.basePath));
14164
+ }
14165
+
13920
14166
  /**
13921
14167
  *
13922
14168
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -13994,6 +14240,18 @@ export class UserProfileApi extends BaseAPI {
13994
14240
  return UserProfileApiFp(this.configuration).getUserProfileVisibility(options).then((request) => request(this.axios, this.basePath));
13995
14241
  }
13996
14242
 
14243
+ /**
14244
+ *
14245
+ * @summary Remove a club from the user\'s favorite list
14246
+ * @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
14247
+ * @param {*} [options] Override http request option.
14248
+ * @throws {RequiredError}
14249
+ * @memberof UserProfileApi
14250
+ */
14251
+ public removeFavoriteClub(requestParameters: UserProfileApiRemoveFavoriteClubRequest, options?: RawAxiosRequestConfig) {
14252
+ return UserProfileApiFp(this.configuration).removeFavoriteClub(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
14253
+ }
14254
+
13997
14255
  /**
13998
14256
  *
13999
14257
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
package/base.ts 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.28
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts 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.28
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts 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.28
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).