@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/.openapi-generator/FILES +1 -0
- package/README.md +6 -2
- package/api.ts +259 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +135 -1
- package/dist/api.js +204 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +135 -1
- package/dist/esm/api.js +204 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/GetFavoriteClubs200Response.md +20 -0
- package/docs/UserProfileApi.md +155 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/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.
|
|
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/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.28
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -6639,6 +6639,39 @@ 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
|
+
}),
|
|
6642
6675
|
/**
|
|
6643
6676
|
*
|
|
6644
6677
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -6712,6 +6745,34 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
6712
6745
|
options: localVarRequestOptions,
|
|
6713
6746
|
};
|
|
6714
6747
|
}),
|
|
6748
|
+
/**
|
|
6749
|
+
*
|
|
6750
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
6751
|
+
* @param {*} [options] Override http request option.
|
|
6752
|
+
* @throws {RequiredError}
|
|
6753
|
+
*/
|
|
6754
|
+
getFavoriteClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6755
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
6756
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6757
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6758
|
+
let baseOptions;
|
|
6759
|
+
if (configuration) {
|
|
6760
|
+
baseOptions = configuration.baseOptions;
|
|
6761
|
+
}
|
|
6762
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6763
|
+
const localVarHeaderParameter = {};
|
|
6764
|
+
const localVarQueryParameter = {};
|
|
6765
|
+
// authentication bearerAuth required
|
|
6766
|
+
// http bearer authentication required
|
|
6767
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6768
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6769
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6770
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6771
|
+
return {
|
|
6772
|
+
url: toPathString(localVarUrlObj),
|
|
6773
|
+
options: localVarRequestOptions,
|
|
6774
|
+
};
|
|
6775
|
+
}),
|
|
6715
6776
|
/**
|
|
6716
6777
|
*
|
|
6717
6778
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -6908,6 +6969,40 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
6908
6969
|
options: localVarRequestOptions,
|
|
6909
6970
|
};
|
|
6910
6971
|
}),
|
|
6972
|
+
/**
|
|
6973
|
+
*
|
|
6974
|
+
* @summary Remove a club from the user\'s favorite list
|
|
6975
|
+
* @param {string} clubId ID of the club to remove from favorites
|
|
6976
|
+
* @param {*} [options] Override http request option.
|
|
6977
|
+
* @throws {RequiredError}
|
|
6978
|
+
*/
|
|
6979
|
+
removeFavoriteClub: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
6980
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6981
|
+
assertParamExists('removeFavoriteClub', 'clubId', clubId);
|
|
6982
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
6983
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6984
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6985
|
+
let baseOptions;
|
|
6986
|
+
if (configuration) {
|
|
6987
|
+
baseOptions = configuration.baseOptions;
|
|
6988
|
+
}
|
|
6989
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6990
|
+
const localVarHeaderParameter = {};
|
|
6991
|
+
const localVarQueryParameter = {};
|
|
6992
|
+
// authentication bearerAuth required
|
|
6993
|
+
// http bearer authentication required
|
|
6994
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6995
|
+
if (clubId !== undefined) {
|
|
6996
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
6997
|
+
}
|
|
6998
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6999
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7000
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7001
|
+
return {
|
|
7002
|
+
url: toPathString(localVarUrlObj),
|
|
7003
|
+
options: localVarRequestOptions,
|
|
7004
|
+
};
|
|
7005
|
+
}),
|
|
6911
7006
|
/**
|
|
6912
7007
|
*
|
|
6913
7008
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -7115,6 +7210,22 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
7115
7210
|
export const UserProfileApiFp = function (configuration) {
|
|
7116
7211
|
const localVarAxiosParamCreator = UserProfileApiAxiosParamCreator(configuration);
|
|
7117
7212
|
return {
|
|
7213
|
+
/**
|
|
7214
|
+
*
|
|
7215
|
+
* @summary Add a club to the user\'s favorite list
|
|
7216
|
+
* @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
|
|
7217
|
+
* @param {*} [options] Override http request option.
|
|
7218
|
+
* @throws {RequiredError}
|
|
7219
|
+
*/
|
|
7220
|
+
addFavoriteClub(addFavoriteClubRequestBody, options) {
|
|
7221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7222
|
+
var _a, _b, _c;
|
|
7223
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addFavoriteClub(addFavoriteClubRequestBody, options);
|
|
7224
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7225
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.addFavoriteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7226
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7227
|
+
});
|
|
7228
|
+
},
|
|
7118
7229
|
/**
|
|
7119
7230
|
*
|
|
7120
7231
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -7149,6 +7260,21 @@ export const UserProfileApiFp = function (configuration) {
|
|
|
7149
7260
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7150
7261
|
});
|
|
7151
7262
|
},
|
|
7263
|
+
/**
|
|
7264
|
+
*
|
|
7265
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
7266
|
+
* @param {*} [options] Override http request option.
|
|
7267
|
+
* @throws {RequiredError}
|
|
7268
|
+
*/
|
|
7269
|
+
getFavoriteClubs(options) {
|
|
7270
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7271
|
+
var _a, _b, _c;
|
|
7272
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoriteClubs(options);
|
|
7273
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7274
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getFavoriteClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7275
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7276
|
+
});
|
|
7277
|
+
},
|
|
7152
7278
|
/**
|
|
7153
7279
|
*
|
|
7154
7280
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -7254,6 +7380,22 @@ export const UserProfileApiFp = function (configuration) {
|
|
|
7254
7380
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7255
7381
|
});
|
|
7256
7382
|
},
|
|
7383
|
+
/**
|
|
7384
|
+
*
|
|
7385
|
+
* @summary Remove a club from the user\'s favorite list
|
|
7386
|
+
* @param {string} clubId ID of the club to remove from favorites
|
|
7387
|
+
* @param {*} [options] Override http request option.
|
|
7388
|
+
* @throws {RequiredError}
|
|
7389
|
+
*/
|
|
7390
|
+
removeFavoriteClub(clubId, options) {
|
|
7391
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7392
|
+
var _a, _b, _c;
|
|
7393
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFavoriteClub(clubId, options);
|
|
7394
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7395
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.removeFavoriteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7396
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7397
|
+
});
|
|
7398
|
+
},
|
|
7257
7399
|
/**
|
|
7258
7400
|
*
|
|
7259
7401
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -7359,6 +7501,16 @@ export const UserProfileApiFp = function (configuration) {
|
|
|
7359
7501
|
export const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
7360
7502
|
const localVarFp = UserProfileApiFp(configuration);
|
|
7361
7503
|
return {
|
|
7504
|
+
/**
|
|
7505
|
+
*
|
|
7506
|
+
* @summary Add a club to the user\'s favorite list
|
|
7507
|
+
* @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
|
|
7508
|
+
* @param {*} [options] Override http request option.
|
|
7509
|
+
* @throws {RequiredError}
|
|
7510
|
+
*/
|
|
7511
|
+
addFavoriteClub(requestParameters, options) {
|
|
7512
|
+
return localVarFp.addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(axios, basePath));
|
|
7513
|
+
},
|
|
7362
7514
|
/**
|
|
7363
7515
|
*
|
|
7364
7516
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -7379,6 +7531,15 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
7379
7531
|
getAllUsers(requestParameters = {}, options) {
|
|
7380
7532
|
return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
7381
7533
|
},
|
|
7534
|
+
/**
|
|
7535
|
+
*
|
|
7536
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
7537
|
+
* @param {*} [options] Override http request option.
|
|
7538
|
+
* @throws {RequiredError}
|
|
7539
|
+
*/
|
|
7540
|
+
getFavoriteClubs(options) {
|
|
7541
|
+
return localVarFp.getFavoriteClubs(options).then((request) => request(axios, basePath));
|
|
7542
|
+
},
|
|
7382
7543
|
/**
|
|
7383
7544
|
*
|
|
7384
7545
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -7442,6 +7603,16 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
7442
7603
|
getUserProfileVisibility(options) {
|
|
7443
7604
|
return localVarFp.getUserProfileVisibility(options).then((request) => request(axios, basePath));
|
|
7444
7605
|
},
|
|
7606
|
+
/**
|
|
7607
|
+
*
|
|
7608
|
+
* @summary Remove a club from the user\'s favorite list
|
|
7609
|
+
* @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
|
7610
|
+
* @param {*} [options] Override http request option.
|
|
7611
|
+
* @throws {RequiredError}
|
|
7612
|
+
*/
|
|
7613
|
+
removeFavoriteClub(requestParameters, options) {
|
|
7614
|
+
return localVarFp.removeFavoriteClub(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
7615
|
+
},
|
|
7445
7616
|
/**
|
|
7446
7617
|
*
|
|
7447
7618
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -7511,6 +7682,17 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
7511
7682
|
* @extends {BaseAPI}
|
|
7512
7683
|
*/
|
|
7513
7684
|
export class UserProfileApi extends BaseAPI {
|
|
7685
|
+
/**
|
|
7686
|
+
*
|
|
7687
|
+
* @summary Add a club to the user\'s favorite list
|
|
7688
|
+
* @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
|
|
7689
|
+
* @param {*} [options] Override http request option.
|
|
7690
|
+
* @throws {RequiredError}
|
|
7691
|
+
* @memberof UserProfileApi
|
|
7692
|
+
*/
|
|
7693
|
+
addFavoriteClub(requestParameters, options) {
|
|
7694
|
+
return UserProfileApiFp(this.configuration).addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7695
|
+
}
|
|
7514
7696
|
/**
|
|
7515
7697
|
*
|
|
7516
7698
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -7533,6 +7715,16 @@ export class UserProfileApi extends BaseAPI {
|
|
|
7533
7715
|
getAllUsers(requestParameters = {}, options) {
|
|
7534
7716
|
return UserProfileApiFp(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
7535
7717
|
}
|
|
7718
|
+
/**
|
|
7719
|
+
*
|
|
7720
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
7721
|
+
* @param {*} [options] Override http request option.
|
|
7722
|
+
* @throws {RequiredError}
|
|
7723
|
+
* @memberof UserProfileApi
|
|
7724
|
+
*/
|
|
7725
|
+
getFavoriteClubs(options) {
|
|
7726
|
+
return UserProfileApiFp(this.configuration).getFavoriteClubs(options).then((request) => request(this.axios, this.basePath));
|
|
7727
|
+
}
|
|
7536
7728
|
/**
|
|
7537
7729
|
*
|
|
7538
7730
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -7603,6 +7795,17 @@ export class UserProfileApi extends BaseAPI {
|
|
|
7603
7795
|
getUserProfileVisibility(options) {
|
|
7604
7796
|
return UserProfileApiFp(this.configuration).getUserProfileVisibility(options).then((request) => request(this.axios, this.basePath));
|
|
7605
7797
|
}
|
|
7798
|
+
/**
|
|
7799
|
+
*
|
|
7800
|
+
* @summary Remove a club from the user\'s favorite list
|
|
7801
|
+
* @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
|
7802
|
+
* @param {*} [options] Override http request option.
|
|
7803
|
+
* @throws {RequiredError}
|
|
7804
|
+
* @memberof UserProfileApi
|
|
7805
|
+
*/
|
|
7806
|
+
removeFavoriteClub(requestParameters, options) {
|
|
7807
|
+
return UserProfileApiFp(this.configuration).removeFavoriteClub(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
7808
|
+
}
|
|
7606
7809
|
/**
|
|
7607
7810
|
*
|
|
7608
7811
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.28
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.28
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.28
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.28
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.28
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.28
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.28
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.28
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.28
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Pandook API
|
|
6
6
|
* API for managing pickle ball games and players
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.28
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GetFavoriteClubs200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { GetFavoriteClubs200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: GetFavoriteClubs200Response = {
|
|
16
|
+
favoriteClubs,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|