@tennac-booking/sdk 1.0.29 → 1.0.31
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 +2 -1
- package/README.md +6 -4
- package/api.ts +195 -49
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +149 -35
- package/dist/api.js +79 -20
- 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 +149 -35
- package/dist/esm/api.js +79 -20
- 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/PublicClubUser.md +12 -0
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +28 -0
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +24 -0
- package/docs/StaffClubsApi.md +5 -13
- package/docs/UserProfileApi.md +54 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/GetClubSettingsRequest.md +0 -20
package/.openapi-generator/FILES
CHANGED
|
@@ -89,7 +89,6 @@ docs/FrequentlyVisitedClubItem.md
|
|
|
89
89
|
docs/GenerateSlotsResponse.md
|
|
90
90
|
docs/GetActiveClubs200Response.md
|
|
91
91
|
docs/GetClubInfos200Response.md
|
|
92
|
-
docs/GetClubSettingsRequest.md
|
|
93
92
|
docs/GetClubUsersById200Response.md
|
|
94
93
|
docs/GetCourtsByClubAndSport200Response.md
|
|
95
94
|
docs/GetLastSixMonthsTurnover200ResponseInner.md
|
|
@@ -130,6 +129,8 @@ docs/PriceResponse.md
|
|
|
130
129
|
docs/ProfilePictureResponse.md
|
|
131
130
|
docs/ProfileVisibilityResponse.md
|
|
132
131
|
docs/PublicClubUser.md
|
|
132
|
+
docs/PublicClubUserFrequentlyPlayedWithInner.md
|
|
133
|
+
docs/PublicClubUserFrequentlyVisitedClubsInner.md
|
|
133
134
|
docs/PublicClubUserLevelBySportsInner.md
|
|
134
135
|
docs/RefreshTokenRequestBody.md
|
|
135
136
|
docs/RefreshTokenResponse.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @tennac-booking/sdk@1.0.
|
|
1
|
+
## @tennac-booking/sdk@1.0.31
|
|
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.
|
|
39
|
+
npm install @tennac-booking/sdk@1.0.31 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -137,12 +137,13 @@ Class | Method | HTTP request | Description
|
|
|
137
137
|
*UserProfileApi* | [**getFrequentlyPlayedWith**](docs/UserProfileApi.md#getfrequentlyplayedwith) | **GET** /api/users/me/frequentlyPlayedWith | Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
138
138
|
*UserProfileApi* | [**getFrequentlyVisitedClub**](docs/UserProfileApi.md#getfrequentlyvisitedclub) | **GET** /api/users/me/frequentlyVisitedClub | Clubs les plus fréquemment visités par l\'utilisateur connecté
|
|
139
139
|
*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é
|
|
140
|
+
*UserProfileApi* | [**getPublicUserProfile**](docs/UserProfileApi.md#getpublicuserprofile) | **GET** /api/users/profile/{id} | Récupère le profil public d\'un utilisateur par son ID
|
|
140
141
|
*UserProfileApi* | [**getUserBookings**](docs/UserProfileApi.md#getuserbookings) | **GET** /api/users/me/bookings | Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
141
142
|
*UserProfileApi* | [**getUserCity**](docs/UserProfileApi.md#getusercity) | **GET** /api/users/me/city | Récupère la ville de l\'utilisateur connecté
|
|
142
143
|
*UserProfileApi* | [**getUserDescription**](docs/UserProfileApi.md#getuserdescription) | **GET** /api/users/me/description | Récupère la description de l\'utilisateur connecté
|
|
143
144
|
*UserProfileApi* | [**getUserInfo**](docs/UserProfileApi.md#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté
|
|
144
145
|
*UserProfileApi* | [**getUserProfileVisibility**](docs/UserProfileApi.md#getuserprofilevisibility) | **GET** /api/users/me/profile-visibility | Récupère la visibilité du profil de l\'utilisateur connecté
|
|
145
|
-
*UserProfileApi* | [**removeFavoriteClub**](docs/UserProfileApi.md#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs | Remove a club from the user\'s favorite list
|
|
146
|
+
*UserProfileApi* | [**removeFavoriteClub**](docs/UserProfileApi.md#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} | Remove a club from the user\'s favorite list
|
|
146
147
|
*UserProfileApi* | [**removeFavoritePlayer**](docs/UserProfileApi.md#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | Retire un joueur des favoris de l\'utilisateur connecté
|
|
147
148
|
*UserProfileApi* | [**updateLevelBySports**](docs/UserProfileApi.md#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
148
149
|
*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é
|
|
@@ -234,7 +235,6 @@ Class | Method | HTTP request | Description
|
|
|
234
235
|
- [GenerateSlotsResponse](docs/GenerateSlotsResponse.md)
|
|
235
236
|
- [GetActiveClubs200Response](docs/GetActiveClubs200Response.md)
|
|
236
237
|
- [GetClubInfos200Response](docs/GetClubInfos200Response.md)
|
|
237
|
-
- [GetClubSettingsRequest](docs/GetClubSettingsRequest.md)
|
|
238
238
|
- [GetClubUsersById200Response](docs/GetClubUsersById200Response.md)
|
|
239
239
|
- [GetCourtsByClubAndSport200Response](docs/GetCourtsByClubAndSport200Response.md)
|
|
240
240
|
- [GetLastSixMonthsTurnover200ResponseInner](docs/GetLastSixMonthsTurnover200ResponseInner.md)
|
|
@@ -267,6 +267,8 @@ Class | Method | HTTP request | Description
|
|
|
267
267
|
- [ProfilePictureResponse](docs/ProfilePictureResponse.md)
|
|
268
268
|
- [ProfileVisibilityResponse](docs/ProfileVisibilityResponse.md)
|
|
269
269
|
- [PublicClubUser](docs/PublicClubUser.md)
|
|
270
|
+
- [PublicClubUserFrequentlyPlayedWithInner](docs/PublicClubUserFrequentlyPlayedWithInner.md)
|
|
271
|
+
- [PublicClubUserFrequentlyVisitedClubsInner](docs/PublicClubUserFrequentlyVisitedClubsInner.md)
|
|
270
272
|
- [PublicClubUserLevelBySportsInner](docs/PublicClubUserLevelBySportsInner.md)
|
|
271
273
|
- [RefreshTokenRequestBody](docs/RefreshTokenRequestBody.md)
|
|
272
274
|
- [RefreshTokenResponse](docs/RefreshTokenResponse.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.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.31
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2522,19 +2522,6 @@ export interface GetClubInfos200Response {
|
|
|
2522
2522
|
*/
|
|
2523
2523
|
'websiteUrl'?: string;
|
|
2524
2524
|
}
|
|
2525
|
-
/**
|
|
2526
|
-
*
|
|
2527
|
-
* @export
|
|
2528
|
-
* @interface GetClubSettingsRequest
|
|
2529
|
-
*/
|
|
2530
|
-
export interface GetClubSettingsRequest {
|
|
2531
|
-
/**
|
|
2532
|
-
*
|
|
2533
|
-
* @type {string}
|
|
2534
|
-
* @memberof GetClubSettingsRequest
|
|
2535
|
-
*/
|
|
2536
|
-
'clubId': string;
|
|
2537
|
-
}
|
|
2538
2525
|
/**
|
|
2539
2526
|
*
|
|
2540
2527
|
* @export
|
|
@@ -3364,6 +3351,18 @@ export interface PublicClubUser {
|
|
|
3364
3351
|
* @memberof PublicClubUser
|
|
3365
3352
|
*/
|
|
3366
3353
|
'lastName'?: string;
|
|
3354
|
+
/**
|
|
3355
|
+
*
|
|
3356
|
+
* @type {string}
|
|
3357
|
+
* @memberof PublicClubUser
|
|
3358
|
+
*/
|
|
3359
|
+
'createdAt'?: string;
|
|
3360
|
+
/**
|
|
3361
|
+
*
|
|
3362
|
+
* @type {boolean}
|
|
3363
|
+
* @memberof PublicClubUser
|
|
3364
|
+
*/
|
|
3365
|
+
'isAccountVerified'?: boolean;
|
|
3367
3366
|
/**
|
|
3368
3367
|
*
|
|
3369
3368
|
* @type {string}
|
|
@@ -3394,6 +3393,92 @@ export interface PublicClubUser {
|
|
|
3394
3393
|
* @memberof PublicClubUser
|
|
3395
3394
|
*/
|
|
3396
3395
|
'city'?: string | null;
|
|
3396
|
+
/**
|
|
3397
|
+
*
|
|
3398
|
+
* @type {Array<string>}
|
|
3399
|
+
* @memberof PublicClubUser
|
|
3400
|
+
*/
|
|
3401
|
+
'favoriteClubs'?: Array<string>;
|
|
3402
|
+
/**
|
|
3403
|
+
*
|
|
3404
|
+
* @type {Array<string>}
|
|
3405
|
+
* @memberof PublicClubUser
|
|
3406
|
+
*/
|
|
3407
|
+
'favoritePlayers'?: Array<string>;
|
|
3408
|
+
/**
|
|
3409
|
+
*
|
|
3410
|
+
* @type {Array<PublicClubUserFrequentlyPlayedWithInner>}
|
|
3411
|
+
* @memberof PublicClubUser
|
|
3412
|
+
*/
|
|
3413
|
+
'frequentlyPlayedWith'?: Array<PublicClubUserFrequentlyPlayedWithInner>;
|
|
3414
|
+
/**
|
|
3415
|
+
*
|
|
3416
|
+
* @type {Array<PublicClubUserFrequentlyVisitedClubsInner>}
|
|
3417
|
+
* @memberof PublicClubUser
|
|
3418
|
+
*/
|
|
3419
|
+
'frequentlyVisitedClubs'?: Array<PublicClubUserFrequentlyVisitedClubsInner>;
|
|
3420
|
+
}
|
|
3421
|
+
/**
|
|
3422
|
+
*
|
|
3423
|
+
* @export
|
|
3424
|
+
* @interface PublicClubUserFrequentlyPlayedWithInner
|
|
3425
|
+
*/
|
|
3426
|
+
export interface PublicClubUserFrequentlyPlayedWithInner {
|
|
3427
|
+
/**
|
|
3428
|
+
*
|
|
3429
|
+
* @type {string}
|
|
3430
|
+
* @memberof PublicClubUserFrequentlyPlayedWithInner
|
|
3431
|
+
*/
|
|
3432
|
+
'userId'?: string;
|
|
3433
|
+
/**
|
|
3434
|
+
*
|
|
3435
|
+
* @type {string}
|
|
3436
|
+
* @memberof PublicClubUserFrequentlyPlayedWithInner
|
|
3437
|
+
*/
|
|
3438
|
+
'firstName'?: string;
|
|
3439
|
+
/**
|
|
3440
|
+
*
|
|
3441
|
+
* @type {string}
|
|
3442
|
+
* @memberof PublicClubUserFrequentlyPlayedWithInner
|
|
3443
|
+
*/
|
|
3444
|
+
'lastName'?: string;
|
|
3445
|
+
/**
|
|
3446
|
+
*
|
|
3447
|
+
* @type {string}
|
|
3448
|
+
* @memberof PublicClubUserFrequentlyPlayedWithInner
|
|
3449
|
+
*/
|
|
3450
|
+
'profilePicture'?: string;
|
|
3451
|
+
/**
|
|
3452
|
+
*
|
|
3453
|
+
* @type {number}
|
|
3454
|
+
* @memberof PublicClubUserFrequentlyPlayedWithInner
|
|
3455
|
+
*/
|
|
3456
|
+
'playCount'?: number;
|
|
3457
|
+
}
|
|
3458
|
+
/**
|
|
3459
|
+
*
|
|
3460
|
+
* @export
|
|
3461
|
+
* @interface PublicClubUserFrequentlyVisitedClubsInner
|
|
3462
|
+
*/
|
|
3463
|
+
export interface PublicClubUserFrequentlyVisitedClubsInner {
|
|
3464
|
+
/**
|
|
3465
|
+
*
|
|
3466
|
+
* @type {string}
|
|
3467
|
+
* @memberof PublicClubUserFrequentlyVisitedClubsInner
|
|
3468
|
+
*/
|
|
3469
|
+
'clubId'?: string;
|
|
3470
|
+
/**
|
|
3471
|
+
*
|
|
3472
|
+
* @type {string}
|
|
3473
|
+
* @memberof PublicClubUserFrequentlyVisitedClubsInner
|
|
3474
|
+
*/
|
|
3475
|
+
'name'?: string;
|
|
3476
|
+
/**
|
|
3477
|
+
*
|
|
3478
|
+
* @type {number}
|
|
3479
|
+
* @memberof PublicClubUserFrequentlyVisitedClubsInner
|
|
3480
|
+
*/
|
|
3481
|
+
'visitCount'?: number;
|
|
3397
3482
|
}
|
|
3398
3483
|
/**
|
|
3399
3484
|
*
|
|
@@ -10848,13 +10933,10 @@ export const StaffClubsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
10848
10933
|
/**
|
|
10849
10934
|
*
|
|
10850
10935
|
* @summary Récupère les paramètres d’un club
|
|
10851
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
10852
10936
|
* @param {*} [options] Override http request option.
|
|
10853
10937
|
* @throws {RequiredError}
|
|
10854
10938
|
*/
|
|
10855
|
-
getClubSettings: async (
|
|
10856
|
-
// verify required parameter 'getClubSettingsRequest' is not null or undefined
|
|
10857
|
-
assertParamExists('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest)
|
|
10939
|
+
getClubSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10858
10940
|
const localVarPath = `/api/club-settings`;
|
|
10859
10941
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10860
10942
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -10873,12 +10955,9 @@ export const StaffClubsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
10873
10955
|
|
|
10874
10956
|
|
|
10875
10957
|
|
|
10876
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10877
|
-
|
|
10878
10958
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10879
10959
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10880
10960
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10881
|
-
localVarRequestOptions.data = serializeDataIfNeeded(getClubSettingsRequest, localVarRequestOptions, configuration)
|
|
10882
10961
|
|
|
10883
10962
|
return {
|
|
10884
10963
|
url: toPathString(localVarUrlObj),
|
|
@@ -10910,12 +10989,11 @@ export const StaffClubsApiFp = function(configuration?: Configuration) {
|
|
|
10910
10989
|
/**
|
|
10911
10990
|
*
|
|
10912
10991
|
* @summary Récupère les paramètres d’un club
|
|
10913
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
10914
10992
|
* @param {*} [options] Override http request option.
|
|
10915
10993
|
* @throws {RequiredError}
|
|
10916
10994
|
*/
|
|
10917
|
-
async getClubSettings(
|
|
10918
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubSettings(
|
|
10995
|
+
async getClubSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettings>> {
|
|
10996
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubSettings(options);
|
|
10919
10997
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10920
10998
|
const localVarOperationServerBasePath = operationServerMap['StaffClubsApi.getClubSettings']?.[localVarOperationServerIndex]?.url;
|
|
10921
10999
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -10942,30 +11020,15 @@ export const StaffClubsApiFactory = function (configuration?: Configuration, bas
|
|
|
10942
11020
|
/**
|
|
10943
11021
|
*
|
|
10944
11022
|
* @summary Récupère les paramètres d’un club
|
|
10945
|
-
* @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
10946
11023
|
* @param {*} [options] Override http request option.
|
|
10947
11024
|
* @throws {RequiredError}
|
|
10948
11025
|
*/
|
|
10949
|
-
getClubSettings(
|
|
10950
|
-
return localVarFp.getClubSettings(
|
|
11026
|
+
getClubSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubSettings> {
|
|
11027
|
+
return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
|
|
10951
11028
|
},
|
|
10952
11029
|
};
|
|
10953
11030
|
};
|
|
10954
11031
|
|
|
10955
|
-
/**
|
|
10956
|
-
* Request parameters for getClubSettings operation in StaffClubsApi.
|
|
10957
|
-
* @export
|
|
10958
|
-
* @interface StaffClubsApiGetClubSettingsRequest
|
|
10959
|
-
*/
|
|
10960
|
-
export interface StaffClubsApiGetClubSettingsRequest {
|
|
10961
|
-
/**
|
|
10962
|
-
*
|
|
10963
|
-
* @type {GetClubSettingsRequest}
|
|
10964
|
-
* @memberof StaffClubsApiGetClubSettings
|
|
10965
|
-
*/
|
|
10966
|
-
readonly getClubSettingsRequest: GetClubSettingsRequest
|
|
10967
|
-
}
|
|
10968
|
-
|
|
10969
11032
|
/**
|
|
10970
11033
|
* StaffClubsApi - object-oriented interface
|
|
10971
11034
|
* @export
|
|
@@ -10987,13 +11050,12 @@ export class StaffClubsApi extends BaseAPI {
|
|
|
10987
11050
|
/**
|
|
10988
11051
|
*
|
|
10989
11052
|
* @summary Récupère les paramètres d’un club
|
|
10990
|
-
* @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
10991
11053
|
* @param {*} [options] Override http request option.
|
|
10992
11054
|
* @throws {RequiredError}
|
|
10993
11055
|
* @memberof StaffClubsApi
|
|
10994
11056
|
*/
|
|
10995
|
-
public getClubSettings(
|
|
10996
|
-
return StaffClubsApiFp(this.configuration).getClubSettings(
|
|
11057
|
+
public getClubSettings(options?: RawAxiosRequestConfig) {
|
|
11058
|
+
return StaffClubsApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
10997
11059
|
}
|
|
10998
11060
|
}
|
|
10999
11061
|
|
|
@@ -13324,6 +13386,44 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13324
13386
|
|
|
13325
13387
|
|
|
13326
13388
|
|
|
13389
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13390
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13391
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13392
|
+
|
|
13393
|
+
return {
|
|
13394
|
+
url: toPathString(localVarUrlObj),
|
|
13395
|
+
options: localVarRequestOptions,
|
|
13396
|
+
};
|
|
13397
|
+
},
|
|
13398
|
+
/**
|
|
13399
|
+
*
|
|
13400
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
13401
|
+
* @param {string} id ID de l\'utilisateur
|
|
13402
|
+
* @param {*} [options] Override http request option.
|
|
13403
|
+
* @throws {RequiredError}
|
|
13404
|
+
*/
|
|
13405
|
+
getPublicUserProfile: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13406
|
+
// verify required parameter 'id' is not null or undefined
|
|
13407
|
+
assertParamExists('getPublicUserProfile', 'id', id)
|
|
13408
|
+
const localVarPath = `/api/users/profile/{id}`
|
|
13409
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
13410
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13411
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13412
|
+
let baseOptions;
|
|
13413
|
+
if (configuration) {
|
|
13414
|
+
baseOptions = configuration.baseOptions;
|
|
13415
|
+
}
|
|
13416
|
+
|
|
13417
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13418
|
+
const localVarHeaderParameter = {} as any;
|
|
13419
|
+
const localVarQueryParameter = {} as any;
|
|
13420
|
+
|
|
13421
|
+
// authentication bearerAuth required
|
|
13422
|
+
// http bearer authentication required
|
|
13423
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13424
|
+
|
|
13425
|
+
|
|
13426
|
+
|
|
13327
13427
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13328
13428
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13329
13429
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -13523,7 +13623,8 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13523
13623
|
removeFavoriteClub: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13524
13624
|
// verify required parameter 'clubId' is not null or undefined
|
|
13525
13625
|
assertParamExists('removeFavoriteClub', 'clubId', clubId)
|
|
13526
|
-
const localVarPath = `/api/users/me/favorite-clubs
|
|
13626
|
+
const localVarPath = `/api/users/me/favorite-clubs/{clubId}`
|
|
13627
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13527
13628
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13528
13629
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13529
13630
|
let baseOptions;
|
|
@@ -13539,10 +13640,6 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13539
13640
|
// http bearer authentication required
|
|
13540
13641
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13541
13642
|
|
|
13542
|
-
if (clubId !== undefined) {
|
|
13543
|
-
localVarQueryParameter['clubId'] = clubId;
|
|
13544
|
-
}
|
|
13545
|
-
|
|
13546
13643
|
|
|
13547
13644
|
|
|
13548
13645
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -13956,6 +14053,19 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
|
13956
14053
|
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getProfilePicture']?.[localVarOperationServerIndex]?.url;
|
|
13957
14054
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13958
14055
|
},
|
|
14056
|
+
/**
|
|
14057
|
+
*
|
|
14058
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
14059
|
+
* @param {string} id ID de l\'utilisateur
|
|
14060
|
+
* @param {*} [options] Override http request option.
|
|
14061
|
+
* @throws {RequiredError}
|
|
14062
|
+
*/
|
|
14063
|
+
async getPublicUserProfile(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublicClubUser>> {
|
|
14064
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicUserProfile(id, options);
|
|
14065
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14066
|
+
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getPublicUserProfile']?.[localVarOperationServerIndex]?.url;
|
|
14067
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14068
|
+
},
|
|
13959
14069
|
/**
|
|
13960
14070
|
*
|
|
13961
14071
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -14217,6 +14327,16 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
|
|
|
14217
14327
|
getProfilePicture(options?: RawAxiosRequestConfig): AxiosPromise<ProfilePictureResponse> {
|
|
14218
14328
|
return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
|
|
14219
14329
|
},
|
|
14330
|
+
/**
|
|
14331
|
+
*
|
|
14332
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
14333
|
+
* @param {UserProfileApiGetPublicUserProfileRequest} requestParameters Request parameters.
|
|
14334
|
+
* @param {*} [options] Override http request option.
|
|
14335
|
+
* @throws {RequiredError}
|
|
14336
|
+
*/
|
|
14337
|
+
getPublicUserProfile(requestParameters: UserProfileApiGetPublicUserProfileRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicClubUser> {
|
|
14338
|
+
return localVarFp.getPublicUserProfile(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
14339
|
+
},
|
|
14220
14340
|
/**
|
|
14221
14341
|
*
|
|
14222
14342
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -14416,6 +14536,20 @@ export interface UserProfileApiGetAllUsersRequest {
|
|
|
14416
14536
|
readonly search?: string
|
|
14417
14537
|
}
|
|
14418
14538
|
|
|
14539
|
+
/**
|
|
14540
|
+
* Request parameters for getPublicUserProfile operation in UserProfileApi.
|
|
14541
|
+
* @export
|
|
14542
|
+
* @interface UserProfileApiGetPublicUserProfileRequest
|
|
14543
|
+
*/
|
|
14544
|
+
export interface UserProfileApiGetPublicUserProfileRequest {
|
|
14545
|
+
/**
|
|
14546
|
+
* ID de l\'utilisateur
|
|
14547
|
+
* @type {string}
|
|
14548
|
+
* @memberof UserProfileApiGetPublicUserProfile
|
|
14549
|
+
*/
|
|
14550
|
+
readonly id: string
|
|
14551
|
+
}
|
|
14552
|
+
|
|
14419
14553
|
/**
|
|
14420
14554
|
* Request parameters for getUserBookings operation in UserProfileApi.
|
|
14421
14555
|
* @export
|
|
@@ -14659,6 +14793,18 @@ export class UserProfileApi extends BaseAPI {
|
|
|
14659
14793
|
return UserProfileApiFp(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
|
|
14660
14794
|
}
|
|
14661
14795
|
|
|
14796
|
+
/**
|
|
14797
|
+
*
|
|
14798
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
14799
|
+
* @param {UserProfileApiGetPublicUserProfileRequest} requestParameters Request parameters.
|
|
14800
|
+
* @param {*} [options] Override http request option.
|
|
14801
|
+
* @throws {RequiredError}
|
|
14802
|
+
* @memberof UserProfileApi
|
|
14803
|
+
*/
|
|
14804
|
+
public getPublicUserProfile(requestParameters: UserProfileApiGetPublicUserProfileRequest, options?: RawAxiosRequestConfig) {
|
|
14805
|
+
return UserProfileApiFp(this.configuration).getPublicUserProfile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
14806
|
+
}
|
|
14807
|
+
|
|
14662
14808
|
/**
|
|
14663
14809
|
*
|
|
14664
14810
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.31
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.31
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.31
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|