@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.
package/dist/api.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.28
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2418,6 +2418,19 @@ export interface GetCourtsByClubAndSport200Response {
2418
2418
  */
2419
2419
  'sportId'?: string;
2420
2420
  }
2421
+ /**
2422
+ *
2423
+ * @export
2424
+ * @interface GetFavoriteClubs200Response
2425
+ */
2426
+ export interface GetFavoriteClubs200Response {
2427
+ /**
2428
+ *
2429
+ * @type {Array<string>}
2430
+ * @memberof GetFavoriteClubs200Response
2431
+ */
2432
+ 'favoriteClubs'?: Array<string>;
2433
+ }
2421
2434
  /**
2422
2435
  *
2423
2436
  * @export
@@ -8980,6 +8993,14 @@ export declare class UserPaymentApi extends BaseAPI {
8980
8993
  * @export
8981
8994
  */
8982
8995
  export declare const UserProfileApiAxiosParamCreator: (configuration?: Configuration) => {
8996
+ /**
8997
+ *
8998
+ * @summary Add a club to the user\'s favorite list
8999
+ * @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
9000
+ * @param {*} [options] Override http request option.
9001
+ * @throws {RequiredError}
9002
+ */
9003
+ addFavoriteClub: (addFavoriteClubRequestBody: AddFavoriteClubRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8983
9004
  /**
8984
9005
  *
8985
9006
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -8998,6 +9019,13 @@ export declare const UserProfileApiAxiosParamCreator: (configuration?: Configura
8998
9019
  * @throws {RequiredError}
8999
9020
  */
9000
9021
  getAllUsers: (limit?: number, skip?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9022
+ /**
9023
+ *
9024
+ * @summary Retrieve the list of favorite clubs for the logged-in user
9025
+ * @param {*} [options] Override http request option.
9026
+ * @throws {RequiredError}
9027
+ */
9028
+ getFavoriteClubs: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9001
9029
  /**
9002
9030
  *
9003
9031
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -9047,6 +9075,14 @@ export declare const UserProfileApiAxiosParamCreator: (configuration?: Configura
9047
9075
  * @throws {RequiredError}
9048
9076
  */
9049
9077
  getUserProfileVisibility: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9078
+ /**
9079
+ *
9080
+ * @summary Remove a club from the user\'s favorite list
9081
+ * @param {string} clubId ID of the club to remove from favorites
9082
+ * @param {*} [options] Override http request option.
9083
+ * @throws {RequiredError}
9084
+ */
9085
+ removeFavoriteClub: (clubId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9050
9086
  /**
9051
9087
  *
9052
9088
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -9101,6 +9137,14 @@ export declare const UserProfileApiAxiosParamCreator: (configuration?: Configura
9101
9137
  * @export
9102
9138
  */
9103
9139
  export declare const UserProfileApiFp: (configuration?: Configuration) => {
9140
+ /**
9141
+ *
9142
+ * @summary Add a club to the user\'s favorite list
9143
+ * @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
9144
+ * @param {*} [options] Override http request option.
9145
+ * @throws {RequiredError}
9146
+ */
9147
+ addFavoriteClub(addFavoriteClubRequestBody: AddFavoriteClubRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoriteClubResponse>>;
9104
9148
  /**
9105
9149
  *
9106
9150
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -9119,6 +9163,13 @@ export declare const UserProfileApiFp: (configuration?: Configuration) => {
9119
9163
  * @throws {RequiredError}
9120
9164
  */
9121
9165
  getAllUsers(limit?: number, skip?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponse>>>;
9166
+ /**
9167
+ *
9168
+ * @summary Retrieve the list of favorite clubs for the logged-in user
9169
+ * @param {*} [options] Override http request option.
9170
+ * @throws {RequiredError}
9171
+ */
9172
+ getFavoriteClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFavoriteClubs200Response>>;
9122
9173
  /**
9123
9174
  *
9124
9175
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -9168,6 +9219,14 @@ export declare const UserProfileApiFp: (configuration?: Configuration) => {
9168
9219
  * @throws {RequiredError}
9169
9220
  */
9170
9221
  getUserProfileVisibility(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfileVisibilityResponse>>;
9222
+ /**
9223
+ *
9224
+ * @summary Remove a club from the user\'s favorite list
9225
+ * @param {string} clubId ID of the club to remove from favorites
9226
+ * @param {*} [options] Override http request option.
9227
+ * @throws {RequiredError}
9228
+ */
9229
+ removeFavoriteClub(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoriteClubResponse>>;
9171
9230
  /**
9172
9231
  *
9173
9232
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -9222,6 +9281,14 @@ export declare const UserProfileApiFp: (configuration?: Configuration) => {
9222
9281
  * @export
9223
9282
  */
9224
9283
  export declare const UserProfileApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
9284
+ /**
9285
+ *
9286
+ * @summary Add a club to the user\'s favorite list
9287
+ * @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
9288
+ * @param {*} [options] Override http request option.
9289
+ * @throws {RequiredError}
9290
+ */
9291
+ addFavoriteClub(requestParameters: UserProfileApiAddFavoriteClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoriteClubResponse>;
9225
9292
  /**
9226
9293
  *
9227
9294
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -9238,6 +9305,13 @@ export declare const UserProfileApiFactory: (configuration?: Configuration, base
9238
9305
  * @throws {RequiredError}
9239
9306
  */
9240
9307
  getAllUsers(requestParameters?: UserProfileApiGetAllUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserResponse>>;
9308
+ /**
9309
+ *
9310
+ * @summary Retrieve the list of favorite clubs for the logged-in user
9311
+ * @param {*} [options] Override http request option.
9312
+ * @throws {RequiredError}
9313
+ */
9314
+ getFavoriteClubs(options?: RawAxiosRequestConfig): AxiosPromise<GetFavoriteClubs200Response>;
9241
9315
  /**
9242
9316
  *
9243
9317
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -9287,6 +9361,14 @@ export declare const UserProfileApiFactory: (configuration?: Configuration, base
9287
9361
  * @throws {RequiredError}
9288
9362
  */
9289
9363
  getUserProfileVisibility(options?: RawAxiosRequestConfig): AxiosPromise<ProfileVisibilityResponse>;
9364
+ /**
9365
+ *
9366
+ * @summary Remove a club from the user\'s favorite list
9367
+ * @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
9368
+ * @param {*} [options] Override http request option.
9369
+ * @throws {RequiredError}
9370
+ */
9371
+ removeFavoriteClub(requestParameters: UserProfileApiRemoveFavoriteClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoriteClubResponse>;
9290
9372
  /**
9291
9373
  *
9292
9374
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -9336,6 +9418,19 @@ export declare const UserProfileApiFactory: (configuration?: Configuration, base
9336
9418
  */
9337
9419
  updateUserDescription(requestParameters: UserProfileApiUpdateUserDescriptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserResponse>;
9338
9420
  };
9421
+ /**
9422
+ * Request parameters for addFavoriteClub operation in UserProfileApi.
9423
+ * @export
9424
+ * @interface UserProfileApiAddFavoriteClubRequest
9425
+ */
9426
+ export interface UserProfileApiAddFavoriteClubRequest {
9427
+ /**
9428
+ *
9429
+ * @type {AddFavoriteClubRequestBody}
9430
+ * @memberof UserProfileApiAddFavoriteClub
9431
+ */
9432
+ readonly addFavoriteClubRequestBody: AddFavoriteClubRequestBody;
9433
+ }
9339
9434
  /**
9340
9435
  * Request parameters for changePassword operation in UserProfileApi.
9341
9436
  * @export
@@ -9374,6 +9469,19 @@ export interface UserProfileApiGetAllUsersRequest {
9374
9469
  */
9375
9470
  readonly search?: string;
9376
9471
  }
9472
+ /**
9473
+ * Request parameters for removeFavoriteClub operation in UserProfileApi.
9474
+ * @export
9475
+ * @interface UserProfileApiRemoveFavoriteClubRequest
9476
+ */
9477
+ export interface UserProfileApiRemoveFavoriteClubRequest {
9478
+ /**
9479
+ * ID of the club to remove from favorites
9480
+ * @type {string}
9481
+ * @memberof UserProfileApiRemoveFavoriteClub
9482
+ */
9483
+ readonly clubId: string;
9484
+ }
9377
9485
  /**
9378
9486
  * Request parameters for updateLevelBySports operation in UserProfileApi.
9379
9487
  * @export
@@ -9459,6 +9567,15 @@ export interface UserProfileApiUpdateUserDescriptionRequest {
9459
9567
  * @extends {BaseAPI}
9460
9568
  */
9461
9569
  export declare class UserProfileApi extends BaseAPI {
9570
+ /**
9571
+ *
9572
+ * @summary Add a club to the user\'s favorite list
9573
+ * @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
9574
+ * @param {*} [options] Override http request option.
9575
+ * @throws {RequiredError}
9576
+ * @memberof UserProfileApi
9577
+ */
9578
+ addFavoriteClub(requestParameters: UserProfileApiAddFavoriteClubRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FavoriteClubResponse, any>>;
9462
9579
  /**
9463
9580
  *
9464
9581
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -9477,6 +9594,14 @@ export declare class UserProfileApi extends BaseAPI {
9477
9594
  * @memberof UserProfileApi
9478
9595
  */
9479
9596
  getAllUsers(requestParameters?: UserProfileApiGetAllUsersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserResponse[], any>>;
9597
+ /**
9598
+ *
9599
+ * @summary Retrieve the list of favorite clubs for the logged-in user
9600
+ * @param {*} [options] Override http request option.
9601
+ * @throws {RequiredError}
9602
+ * @memberof UserProfileApi
9603
+ */
9604
+ getFavoriteClubs(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFavoriteClubs200Response, any>>;
9480
9605
  /**
9481
9606
  *
9482
9607
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -9533,6 +9658,15 @@ export declare class UserProfileApi extends BaseAPI {
9533
9658
  * @memberof UserProfileApi
9534
9659
  */
9535
9660
  getUserProfileVisibility(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProfileVisibilityResponse, any>>;
9661
+ /**
9662
+ *
9663
+ * @summary Remove a club from the user\'s favorite list
9664
+ * @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
9665
+ * @param {*} [options] Override http request option.
9666
+ * @throws {RequiredError}
9667
+ * @memberof UserProfileApi
9668
+ */
9669
+ removeFavoriteClub(requestParameters: UserProfileApiRemoveFavoriteClubRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FavoriteClubResponse, any>>;
9536
9670
  /**
9537
9671
  *
9538
9672
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
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.28
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6756,6 +6756,39 @@ 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
+ }),
6759
6792
  /**
6760
6793
  *
6761
6794
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -6829,6 +6862,34 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
6829
6862
  options: localVarRequestOptions,
6830
6863
  };
6831
6864
  }),
6865
+ /**
6866
+ *
6867
+ * @summary Retrieve the list of favorite clubs for the logged-in user
6868
+ * @param {*} [options] Override http request option.
6869
+ * @throws {RequiredError}
6870
+ */
6871
+ getFavoriteClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6872
+ const localVarPath = `/api/users/me/favorite-clubs`;
6873
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6874
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6875
+ let baseOptions;
6876
+ if (configuration) {
6877
+ baseOptions = configuration.baseOptions;
6878
+ }
6879
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6880
+ const localVarHeaderParameter = {};
6881
+ const localVarQueryParameter = {};
6882
+ // authentication bearerAuth required
6883
+ // http bearer authentication required
6884
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6885
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6886
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6887
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6888
+ return {
6889
+ url: (0, common_1.toPathString)(localVarUrlObj),
6890
+ options: localVarRequestOptions,
6891
+ };
6892
+ }),
6832
6893
  /**
6833
6894
  *
6834
6895
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -7025,6 +7086,40 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
7025
7086
  options: localVarRequestOptions,
7026
7087
  };
7027
7088
  }),
7089
+ /**
7090
+ *
7091
+ * @summary Remove a club from the user\'s favorite list
7092
+ * @param {string} clubId ID of the club to remove from favorites
7093
+ * @param {*} [options] Override http request option.
7094
+ * @throws {RequiredError}
7095
+ */
7096
+ removeFavoriteClub: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
7097
+ // verify required parameter 'clubId' is not null or undefined
7098
+ (0, common_1.assertParamExists)('removeFavoriteClub', 'clubId', clubId);
7099
+ const localVarPath = `/api/users/me/favorite-clubs`;
7100
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7101
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7102
+ let baseOptions;
7103
+ if (configuration) {
7104
+ baseOptions = configuration.baseOptions;
7105
+ }
7106
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
7107
+ const localVarHeaderParameter = {};
7108
+ const localVarQueryParameter = {};
7109
+ // authentication bearerAuth required
7110
+ // http bearer authentication required
7111
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7112
+ if (clubId !== undefined) {
7113
+ localVarQueryParameter['clubId'] = clubId;
7114
+ }
7115
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7116
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7117
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7118
+ return {
7119
+ url: (0, common_1.toPathString)(localVarUrlObj),
7120
+ options: localVarRequestOptions,
7121
+ };
7122
+ }),
7028
7123
  /**
7029
7124
  *
7030
7125
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -7233,6 +7328,22 @@ exports.UserProfileApiAxiosParamCreator = UserProfileApiAxiosParamCreator;
7233
7328
  const UserProfileApiFp = function (configuration) {
7234
7329
  const localVarAxiosParamCreator = (0, exports.UserProfileApiAxiosParamCreator)(configuration);
7235
7330
  return {
7331
+ /**
7332
+ *
7333
+ * @summary Add a club to the user\'s favorite list
7334
+ * @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
7335
+ * @param {*} [options] Override http request option.
7336
+ * @throws {RequiredError}
7337
+ */
7338
+ addFavoriteClub(addFavoriteClubRequestBody, options) {
7339
+ return __awaiter(this, void 0, void 0, function* () {
7340
+ var _a, _b, _c;
7341
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addFavoriteClub(addFavoriteClubRequestBody, options);
7342
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7343
+ 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;
7344
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7345
+ });
7346
+ },
7236
7347
  /**
7237
7348
  *
7238
7349
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -7267,6 +7378,21 @@ const UserProfileApiFp = function (configuration) {
7267
7378
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7268
7379
  });
7269
7380
  },
7381
+ /**
7382
+ *
7383
+ * @summary Retrieve the list of favorite clubs for the logged-in user
7384
+ * @param {*} [options] Override http request option.
7385
+ * @throws {RequiredError}
7386
+ */
7387
+ getFavoriteClubs(options) {
7388
+ return __awaiter(this, void 0, void 0, function* () {
7389
+ var _a, _b, _c;
7390
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoriteClubs(options);
7391
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7392
+ 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;
7393
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7394
+ });
7395
+ },
7270
7396
  /**
7271
7397
  *
7272
7398
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -7372,6 +7498,22 @@ const UserProfileApiFp = function (configuration) {
7372
7498
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7373
7499
  });
7374
7500
  },
7501
+ /**
7502
+ *
7503
+ * @summary Remove a club from the user\'s favorite list
7504
+ * @param {string} clubId ID of the club to remove from favorites
7505
+ * @param {*} [options] Override http request option.
7506
+ * @throws {RequiredError}
7507
+ */
7508
+ removeFavoriteClub(clubId, options) {
7509
+ return __awaiter(this, void 0, void 0, function* () {
7510
+ var _a, _b, _c;
7511
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFavoriteClub(clubId, options);
7512
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7513
+ 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;
7514
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7515
+ });
7516
+ },
7375
7517
  /**
7376
7518
  *
7377
7519
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -7478,6 +7620,16 @@ exports.UserProfileApiFp = UserProfileApiFp;
7478
7620
  const UserProfileApiFactory = function (configuration, basePath, axios) {
7479
7621
  const localVarFp = (0, exports.UserProfileApiFp)(configuration);
7480
7622
  return {
7623
+ /**
7624
+ *
7625
+ * @summary Add a club to the user\'s favorite list
7626
+ * @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
7627
+ * @param {*} [options] Override http request option.
7628
+ * @throws {RequiredError}
7629
+ */
7630
+ addFavoriteClub(requestParameters, options) {
7631
+ return localVarFp.addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(axios, basePath));
7632
+ },
7481
7633
  /**
7482
7634
  *
7483
7635
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -7498,6 +7650,15 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
7498
7650
  getAllUsers(requestParameters = {}, options) {
7499
7651
  return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
7500
7652
  },
7653
+ /**
7654
+ *
7655
+ * @summary Retrieve the list of favorite clubs for the logged-in user
7656
+ * @param {*} [options] Override http request option.
7657
+ * @throws {RequiredError}
7658
+ */
7659
+ getFavoriteClubs(options) {
7660
+ return localVarFp.getFavoriteClubs(options).then((request) => request(axios, basePath));
7661
+ },
7501
7662
  /**
7502
7663
  *
7503
7664
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -7561,6 +7722,16 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
7561
7722
  getUserProfileVisibility(options) {
7562
7723
  return localVarFp.getUserProfileVisibility(options).then((request) => request(axios, basePath));
7563
7724
  },
7725
+ /**
7726
+ *
7727
+ * @summary Remove a club from the user\'s favorite list
7728
+ * @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
7729
+ * @param {*} [options] Override http request option.
7730
+ * @throws {RequiredError}
7731
+ */
7732
+ removeFavoriteClub(requestParameters, options) {
7733
+ return localVarFp.removeFavoriteClub(requestParameters.clubId, options).then((request) => request(axios, basePath));
7734
+ },
7564
7735
  /**
7565
7736
  *
7566
7737
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -7631,6 +7802,17 @@ exports.UserProfileApiFactory = UserProfileApiFactory;
7631
7802
  * @extends {BaseAPI}
7632
7803
  */
7633
7804
  class UserProfileApi extends base_1.BaseAPI {
7805
+ /**
7806
+ *
7807
+ * @summary Add a club to the user\'s favorite list
7808
+ * @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
7809
+ * @param {*} [options] Override http request option.
7810
+ * @throws {RequiredError}
7811
+ * @memberof UserProfileApi
7812
+ */
7813
+ addFavoriteClub(requestParameters, options) {
7814
+ return (0, exports.UserProfileApiFp)(this.configuration).addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(this.axios, this.basePath));
7815
+ }
7634
7816
  /**
7635
7817
  *
7636
7818
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -7653,6 +7835,16 @@ class UserProfileApi extends base_1.BaseAPI {
7653
7835
  getAllUsers(requestParameters = {}, options) {
7654
7836
  return (0, exports.UserProfileApiFp)(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
7655
7837
  }
7838
+ /**
7839
+ *
7840
+ * @summary Retrieve the list of favorite clubs for the logged-in user
7841
+ * @param {*} [options] Override http request option.
7842
+ * @throws {RequiredError}
7843
+ * @memberof UserProfileApi
7844
+ */
7845
+ getFavoriteClubs(options) {
7846
+ return (0, exports.UserProfileApiFp)(this.configuration).getFavoriteClubs(options).then((request) => request(this.axios, this.basePath));
7847
+ }
7656
7848
  /**
7657
7849
  *
7658
7850
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -7723,6 +7915,17 @@ class UserProfileApi extends base_1.BaseAPI {
7723
7915
  getUserProfileVisibility(options) {
7724
7916
  return (0, exports.UserProfileApiFp)(this.configuration).getUserProfileVisibility(options).then((request) => request(this.axios, this.basePath));
7725
7917
  }
7918
+ /**
7919
+ *
7920
+ * @summary Remove a club from the user\'s favorite list
7921
+ * @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
7922
+ * @param {*} [options] Override http request option.
7923
+ * @throws {RequiredError}
7924
+ * @memberof UserProfileApi
7925
+ */
7926
+ removeFavoriteClub(requestParameters, options) {
7927
+ return (0, exports.UserProfileApiFp)(this.configuration).removeFavoriteClub(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
7928
+ }
7726
7929
  /**
7727
7930
  *
7728
7931
  * @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.28
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.28
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.28
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.28
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.28
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.28
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).