@tennac-booking/sdk 1.0.26 → 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 +5 -0
- package/README.md +10 -2
- package/api.ts +472 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +294 -1
- package/dist/api.js +314 -4
- 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 +294 -1
- package/dist/esm/api.js +307 -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/ClubsApi.md +61 -0
- package/docs/GetClubUsersById200Response.md +20 -0
- package/docs/GetFavoriteClubs200Response.md +20 -0
- package/docs/PublicClubUser.md +34 -0
- package/docs/PublicClubUserLevelBySportsInner.md +22 -0
- package/docs/UserProfileApi.md +155 -0
- package/index.ts +1 -1
- package/package.json +1 -1
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.28
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2422,6 +2422,19 @@ export interface GetClubSettingsRequest {
|
|
|
2422
2422
|
*/
|
|
2423
2423
|
'clubId': string;
|
|
2424
2424
|
}
|
|
2425
|
+
/**
|
|
2426
|
+
*
|
|
2427
|
+
* @export
|
|
2428
|
+
* @interface GetClubUsersById200Response
|
|
2429
|
+
*/
|
|
2430
|
+
export interface GetClubUsersById200Response {
|
|
2431
|
+
/**
|
|
2432
|
+
*
|
|
2433
|
+
* @type {Array<PublicClubUser>}
|
|
2434
|
+
* @memberof GetClubUsersById200Response
|
|
2435
|
+
*/
|
|
2436
|
+
'users'?: Array<PublicClubUser>;
|
|
2437
|
+
}
|
|
2425
2438
|
/**
|
|
2426
2439
|
*
|
|
2427
2440
|
* @export
|
|
@@ -2453,6 +2466,19 @@ export interface GetCourtsByClubAndSport200Response {
|
|
|
2453
2466
|
*/
|
|
2454
2467
|
'sportId'?: string;
|
|
2455
2468
|
}
|
|
2469
|
+
/**
|
|
2470
|
+
*
|
|
2471
|
+
* @export
|
|
2472
|
+
* @interface GetFavoriteClubs200Response
|
|
2473
|
+
*/
|
|
2474
|
+
export interface GetFavoriteClubs200Response {
|
|
2475
|
+
/**
|
|
2476
|
+
*
|
|
2477
|
+
* @type {Array<string>}
|
|
2478
|
+
* @memberof GetFavoriteClubs200Response
|
|
2479
|
+
*/
|
|
2480
|
+
'favoriteClubs'?: Array<string>;
|
|
2481
|
+
}
|
|
2456
2482
|
/**
|
|
2457
2483
|
*
|
|
2458
2484
|
* @export
|
|
@@ -3214,6 +3240,80 @@ export interface ProfileVisibilityResponse {
|
|
|
3214
3240
|
*/
|
|
3215
3241
|
'isProfileVisible'?: boolean;
|
|
3216
3242
|
}
|
|
3243
|
+
/**
|
|
3244
|
+
*
|
|
3245
|
+
* @export
|
|
3246
|
+
* @interface PublicClubUser
|
|
3247
|
+
*/
|
|
3248
|
+
export interface PublicClubUser {
|
|
3249
|
+
/**
|
|
3250
|
+
*
|
|
3251
|
+
* @type {string}
|
|
3252
|
+
* @memberof PublicClubUser
|
|
3253
|
+
*/
|
|
3254
|
+
'_id'?: string;
|
|
3255
|
+
/**
|
|
3256
|
+
*
|
|
3257
|
+
* @type {string}
|
|
3258
|
+
* @memberof PublicClubUser
|
|
3259
|
+
*/
|
|
3260
|
+
'firstName'?: string;
|
|
3261
|
+
/**
|
|
3262
|
+
*
|
|
3263
|
+
* @type {string}
|
|
3264
|
+
* @memberof PublicClubUser
|
|
3265
|
+
*/
|
|
3266
|
+
'lastName'?: string;
|
|
3267
|
+
/**
|
|
3268
|
+
*
|
|
3269
|
+
* @type {string}
|
|
3270
|
+
* @memberof PublicClubUser
|
|
3271
|
+
*/
|
|
3272
|
+
'email'?: string;
|
|
3273
|
+
/**
|
|
3274
|
+
*
|
|
3275
|
+
* @type {Array<PublicClubUserLevelBySportsInner>}
|
|
3276
|
+
* @memberof PublicClubUser
|
|
3277
|
+
*/
|
|
3278
|
+
'levelBySports'?: Array<PublicClubUserLevelBySportsInner>;
|
|
3279
|
+
/**
|
|
3280
|
+
*
|
|
3281
|
+
* @type {string}
|
|
3282
|
+
* @memberof PublicClubUser
|
|
3283
|
+
*/
|
|
3284
|
+
'profilePicture'?: string | null;
|
|
3285
|
+
/**
|
|
3286
|
+
*
|
|
3287
|
+
* @type {string}
|
|
3288
|
+
* @memberof PublicClubUser
|
|
3289
|
+
*/
|
|
3290
|
+
'description'?: string | null;
|
|
3291
|
+
/**
|
|
3292
|
+
*
|
|
3293
|
+
* @type {string}
|
|
3294
|
+
* @memberof PublicClubUser
|
|
3295
|
+
*/
|
|
3296
|
+
'city'?: string | null;
|
|
3297
|
+
}
|
|
3298
|
+
/**
|
|
3299
|
+
*
|
|
3300
|
+
* @export
|
|
3301
|
+
* @interface PublicClubUserLevelBySportsInner
|
|
3302
|
+
*/
|
|
3303
|
+
export interface PublicClubUserLevelBySportsInner {
|
|
3304
|
+
/**
|
|
3305
|
+
*
|
|
3306
|
+
* @type {string}
|
|
3307
|
+
* @memberof PublicClubUserLevelBySportsInner
|
|
3308
|
+
*/
|
|
3309
|
+
'sport'?: string;
|
|
3310
|
+
/**
|
|
3311
|
+
*
|
|
3312
|
+
* @type {string}
|
|
3313
|
+
* @memberof PublicClubUserLevelBySportsInner
|
|
3314
|
+
*/
|
|
3315
|
+
'level'?: string;
|
|
3316
|
+
}
|
|
3217
3317
|
/**
|
|
3218
3318
|
*
|
|
3219
3319
|
* @export
|
|
@@ -6969,6 +7069,132 @@ export const GetInvoicesStatusEnum = {
|
|
|
6969
7069
|
export type GetInvoicesStatusEnum = typeof GetInvoicesStatusEnum[keyof typeof GetInvoicesStatusEnum];
|
|
6970
7070
|
|
|
6971
7071
|
|
|
7072
|
+
/**
|
|
7073
|
+
* ClubsApi - axios parameter creator
|
|
7074
|
+
* @export
|
|
7075
|
+
*/
|
|
7076
|
+
export const ClubsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7077
|
+
return {
|
|
7078
|
+
/**
|
|
7079
|
+
* Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
|
|
7080
|
+
* @summary Récupérer la liste publique des utilisateurs d\'un club
|
|
7081
|
+
* @param {string} id ID du club
|
|
7082
|
+
* @param {*} [options] Override http request option.
|
|
7083
|
+
* @throws {RequiredError}
|
|
7084
|
+
*/
|
|
7085
|
+
getClubUsersById: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7086
|
+
// verify required parameter 'id' is not null or undefined
|
|
7087
|
+
assertParamExists('getClubUsersById', 'id', id)
|
|
7088
|
+
const localVarPath = `/api/clubs/{id}/clubUsers`
|
|
7089
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7090
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7091
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7092
|
+
let baseOptions;
|
|
7093
|
+
if (configuration) {
|
|
7094
|
+
baseOptions = configuration.baseOptions;
|
|
7095
|
+
}
|
|
7096
|
+
|
|
7097
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
7098
|
+
const localVarHeaderParameter = {} as any;
|
|
7099
|
+
const localVarQueryParameter = {} as any;
|
|
7100
|
+
|
|
7101
|
+
// authentication bearerAuth required
|
|
7102
|
+
// http bearer authentication required
|
|
7103
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7104
|
+
|
|
7105
|
+
|
|
7106
|
+
|
|
7107
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7108
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7109
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7110
|
+
|
|
7111
|
+
return {
|
|
7112
|
+
url: toPathString(localVarUrlObj),
|
|
7113
|
+
options: localVarRequestOptions,
|
|
7114
|
+
};
|
|
7115
|
+
},
|
|
7116
|
+
}
|
|
7117
|
+
};
|
|
7118
|
+
|
|
7119
|
+
/**
|
|
7120
|
+
* ClubsApi - functional programming interface
|
|
7121
|
+
* @export
|
|
7122
|
+
*/
|
|
7123
|
+
export const ClubsApiFp = function(configuration?: Configuration) {
|
|
7124
|
+
const localVarAxiosParamCreator = ClubsApiAxiosParamCreator(configuration)
|
|
7125
|
+
return {
|
|
7126
|
+
/**
|
|
7127
|
+
* Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
|
|
7128
|
+
* @summary Récupérer la liste publique des utilisateurs d\'un club
|
|
7129
|
+
* @param {string} id ID du club
|
|
7130
|
+
* @param {*} [options] Override http request option.
|
|
7131
|
+
* @throws {RequiredError}
|
|
7132
|
+
*/
|
|
7133
|
+
async getClubUsersById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubUsersById200Response>> {
|
|
7134
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubUsersById(id, options);
|
|
7135
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7136
|
+
const localVarOperationServerBasePath = operationServerMap['ClubsApi.getClubUsersById']?.[localVarOperationServerIndex]?.url;
|
|
7137
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7138
|
+
},
|
|
7139
|
+
}
|
|
7140
|
+
};
|
|
7141
|
+
|
|
7142
|
+
/**
|
|
7143
|
+
* ClubsApi - factory interface
|
|
7144
|
+
* @export
|
|
7145
|
+
*/
|
|
7146
|
+
export const ClubsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7147
|
+
const localVarFp = ClubsApiFp(configuration)
|
|
7148
|
+
return {
|
|
7149
|
+
/**
|
|
7150
|
+
* Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
|
|
7151
|
+
* @summary Récupérer la liste publique des utilisateurs d\'un club
|
|
7152
|
+
* @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
|
|
7153
|
+
* @param {*} [options] Override http request option.
|
|
7154
|
+
* @throws {RequiredError}
|
|
7155
|
+
*/
|
|
7156
|
+
getClubUsersById(requestParameters: ClubsApiGetClubUsersByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetClubUsersById200Response> {
|
|
7157
|
+
return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7158
|
+
},
|
|
7159
|
+
};
|
|
7160
|
+
};
|
|
7161
|
+
|
|
7162
|
+
/**
|
|
7163
|
+
* Request parameters for getClubUsersById operation in ClubsApi.
|
|
7164
|
+
* @export
|
|
7165
|
+
* @interface ClubsApiGetClubUsersByIdRequest
|
|
7166
|
+
*/
|
|
7167
|
+
export interface ClubsApiGetClubUsersByIdRequest {
|
|
7168
|
+
/**
|
|
7169
|
+
* ID du club
|
|
7170
|
+
* @type {string}
|
|
7171
|
+
* @memberof ClubsApiGetClubUsersById
|
|
7172
|
+
*/
|
|
7173
|
+
readonly id: string
|
|
7174
|
+
}
|
|
7175
|
+
|
|
7176
|
+
/**
|
|
7177
|
+
* ClubsApi - object-oriented interface
|
|
7178
|
+
* @export
|
|
7179
|
+
* @class ClubsApi
|
|
7180
|
+
* @extends {BaseAPI}
|
|
7181
|
+
*/
|
|
7182
|
+
export class ClubsApi extends BaseAPI {
|
|
7183
|
+
/**
|
|
7184
|
+
* Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
|
|
7185
|
+
* @summary Récupérer la liste publique des utilisateurs d\'un club
|
|
7186
|
+
* @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
|
|
7187
|
+
* @param {*} [options] Override http request option.
|
|
7188
|
+
* @throws {RequiredError}
|
|
7189
|
+
* @memberof ClubsApi
|
|
7190
|
+
*/
|
|
7191
|
+
public getClubUsersById(requestParameters: ClubsApiGetClubUsersByIdRequest, options?: RawAxiosRequestConfig) {
|
|
7192
|
+
return ClubsApiFp(this.configuration).getClubUsersById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7193
|
+
}
|
|
7194
|
+
}
|
|
7195
|
+
|
|
7196
|
+
|
|
7197
|
+
|
|
6972
7198
|
/**
|
|
6973
7199
|
* EventsApi - axios parameter creator
|
|
6974
7200
|
* @export
|
|
@@ -12624,6 +12850,46 @@ export class UserPaymentApi extends BaseAPI {
|
|
|
12624
12850
|
*/
|
|
12625
12851
|
export const UserProfileApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
12626
12852
|
return {
|
|
12853
|
+
/**
|
|
12854
|
+
*
|
|
12855
|
+
* @summary Add a club to the user\'s favorite list
|
|
12856
|
+
* @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
|
|
12857
|
+
* @param {*} [options] Override http request option.
|
|
12858
|
+
* @throws {RequiredError}
|
|
12859
|
+
*/
|
|
12860
|
+
addFavoriteClub: async (addFavoriteClubRequestBody: AddFavoriteClubRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12861
|
+
// verify required parameter 'addFavoriteClubRequestBody' is not null or undefined
|
|
12862
|
+
assertParamExists('addFavoriteClub', 'addFavoriteClubRequestBody', addFavoriteClubRequestBody)
|
|
12863
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
12864
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12865
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12866
|
+
let baseOptions;
|
|
12867
|
+
if (configuration) {
|
|
12868
|
+
baseOptions = configuration.baseOptions;
|
|
12869
|
+
}
|
|
12870
|
+
|
|
12871
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
12872
|
+
const localVarHeaderParameter = {} as any;
|
|
12873
|
+
const localVarQueryParameter = {} as any;
|
|
12874
|
+
|
|
12875
|
+
// authentication bearerAuth required
|
|
12876
|
+
// http bearer authentication required
|
|
12877
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
12878
|
+
|
|
12879
|
+
|
|
12880
|
+
|
|
12881
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12882
|
+
|
|
12883
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12884
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12885
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12886
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addFavoriteClubRequestBody, localVarRequestOptions, configuration)
|
|
12887
|
+
|
|
12888
|
+
return {
|
|
12889
|
+
url: toPathString(localVarUrlObj),
|
|
12890
|
+
options: localVarRequestOptions,
|
|
12891
|
+
};
|
|
12892
|
+
},
|
|
12627
12893
|
/**
|
|
12628
12894
|
*
|
|
12629
12895
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -12704,6 +12970,40 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
12704
12970
|
|
|
12705
12971
|
|
|
12706
12972
|
|
|
12973
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12974
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12975
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12976
|
+
|
|
12977
|
+
return {
|
|
12978
|
+
url: toPathString(localVarUrlObj),
|
|
12979
|
+
options: localVarRequestOptions,
|
|
12980
|
+
};
|
|
12981
|
+
},
|
|
12982
|
+
/**
|
|
12983
|
+
*
|
|
12984
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
12985
|
+
* @param {*} [options] Override http request option.
|
|
12986
|
+
* @throws {RequiredError}
|
|
12987
|
+
*/
|
|
12988
|
+
getFavoriteClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12989
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
12990
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12991
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12992
|
+
let baseOptions;
|
|
12993
|
+
if (configuration) {
|
|
12994
|
+
baseOptions = configuration.baseOptions;
|
|
12995
|
+
}
|
|
12996
|
+
|
|
12997
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
12998
|
+
const localVarHeaderParameter = {} as any;
|
|
12999
|
+
const localVarQueryParameter = {} as any;
|
|
13000
|
+
|
|
13001
|
+
// authentication bearerAuth required
|
|
13002
|
+
// http bearer authentication required
|
|
13003
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13004
|
+
|
|
13005
|
+
|
|
13006
|
+
|
|
12707
13007
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12708
13008
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12709
13009
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -12942,6 +13242,47 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
12942
13242
|
|
|
12943
13243
|
|
|
12944
13244
|
|
|
13245
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13246
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13247
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13248
|
+
|
|
13249
|
+
return {
|
|
13250
|
+
url: toPathString(localVarUrlObj),
|
|
13251
|
+
options: localVarRequestOptions,
|
|
13252
|
+
};
|
|
13253
|
+
},
|
|
13254
|
+
/**
|
|
13255
|
+
*
|
|
13256
|
+
* @summary Remove a club from the user\'s favorite list
|
|
13257
|
+
* @param {string} clubId ID of the club to remove from favorites
|
|
13258
|
+
* @param {*} [options] Override http request option.
|
|
13259
|
+
* @throws {RequiredError}
|
|
13260
|
+
*/
|
|
13261
|
+
removeFavoriteClub: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13262
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13263
|
+
assertParamExists('removeFavoriteClub', 'clubId', clubId)
|
|
13264
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
13265
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13266
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13267
|
+
let baseOptions;
|
|
13268
|
+
if (configuration) {
|
|
13269
|
+
baseOptions = configuration.baseOptions;
|
|
13270
|
+
}
|
|
13271
|
+
|
|
13272
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
13273
|
+
const localVarHeaderParameter = {} as any;
|
|
13274
|
+
const localVarQueryParameter = {} as any;
|
|
13275
|
+
|
|
13276
|
+
// authentication bearerAuth required
|
|
13277
|
+
// http bearer authentication required
|
|
13278
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13279
|
+
|
|
13280
|
+
if (clubId !== undefined) {
|
|
13281
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
13282
|
+
}
|
|
13283
|
+
|
|
13284
|
+
|
|
13285
|
+
|
|
12945
13286
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12946
13287
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12947
13288
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -13201,6 +13542,19 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13201
13542
|
export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
13202
13543
|
const localVarAxiosParamCreator = UserProfileApiAxiosParamCreator(configuration)
|
|
13203
13544
|
return {
|
|
13545
|
+
/**
|
|
13546
|
+
*
|
|
13547
|
+
* @summary Add a club to the user\'s favorite list
|
|
13548
|
+
* @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
|
|
13549
|
+
* @param {*} [options] Override http request option.
|
|
13550
|
+
* @throws {RequiredError}
|
|
13551
|
+
*/
|
|
13552
|
+
async addFavoriteClub(addFavoriteClubRequestBody: AddFavoriteClubRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoriteClubResponse>> {
|
|
13553
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addFavoriteClub(addFavoriteClubRequestBody, options);
|
|
13554
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13555
|
+
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.addFavoriteClub']?.[localVarOperationServerIndex]?.url;
|
|
13556
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13557
|
+
},
|
|
13204
13558
|
/**
|
|
13205
13559
|
*
|
|
13206
13560
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -13229,6 +13583,18 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
|
13229
13583
|
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getAllUsers']?.[localVarOperationServerIndex]?.url;
|
|
13230
13584
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13231
13585
|
},
|
|
13586
|
+
/**
|
|
13587
|
+
*
|
|
13588
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
13589
|
+
* @param {*} [options] Override http request option.
|
|
13590
|
+
* @throws {RequiredError}
|
|
13591
|
+
*/
|
|
13592
|
+
async getFavoriteClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFavoriteClubs200Response>> {
|
|
13593
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFavoriteClubs(options);
|
|
13594
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13595
|
+
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getFavoriteClubs']?.[localVarOperationServerIndex]?.url;
|
|
13596
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13597
|
+
},
|
|
13232
13598
|
/**
|
|
13233
13599
|
*
|
|
13234
13600
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -13313,6 +13679,19 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
|
13313
13679
|
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getUserProfileVisibility']?.[localVarOperationServerIndex]?.url;
|
|
13314
13680
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13315
13681
|
},
|
|
13682
|
+
/**
|
|
13683
|
+
*
|
|
13684
|
+
* @summary Remove a club from the user\'s favorite list
|
|
13685
|
+
* @param {string} clubId ID of the club to remove from favorites
|
|
13686
|
+
* @param {*} [options] Override http request option.
|
|
13687
|
+
* @throws {RequiredError}
|
|
13688
|
+
*/
|
|
13689
|
+
async removeFavoriteClub(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoriteClubResponse>> {
|
|
13690
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeFavoriteClub(clubId, options);
|
|
13691
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13692
|
+
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.removeFavoriteClub']?.[localVarOperationServerIndex]?.url;
|
|
13693
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13694
|
+
},
|
|
13316
13695
|
/**
|
|
13317
13696
|
*
|
|
13318
13697
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -13401,6 +13780,16 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
|
13401
13780
|
export const UserProfileApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
13402
13781
|
const localVarFp = UserProfileApiFp(configuration)
|
|
13403
13782
|
return {
|
|
13783
|
+
/**
|
|
13784
|
+
*
|
|
13785
|
+
* @summary Add a club to the user\'s favorite list
|
|
13786
|
+
* @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
|
|
13787
|
+
* @param {*} [options] Override http request option.
|
|
13788
|
+
* @throws {RequiredError}
|
|
13789
|
+
*/
|
|
13790
|
+
addFavoriteClub(requestParameters: UserProfileApiAddFavoriteClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoriteClubResponse> {
|
|
13791
|
+
return localVarFp.addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(axios, basePath));
|
|
13792
|
+
},
|
|
13404
13793
|
/**
|
|
13405
13794
|
*
|
|
13406
13795
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -13421,6 +13810,15 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
|
|
|
13421
13810
|
getAllUsers(requestParameters: UserProfileApiGetAllUsersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserResponse>> {
|
|
13422
13811
|
return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
13423
13812
|
},
|
|
13813
|
+
/**
|
|
13814
|
+
*
|
|
13815
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
13816
|
+
* @param {*} [options] Override http request option.
|
|
13817
|
+
* @throws {RequiredError}
|
|
13818
|
+
*/
|
|
13819
|
+
getFavoriteClubs(options?: RawAxiosRequestConfig): AxiosPromise<GetFavoriteClubs200Response> {
|
|
13820
|
+
return localVarFp.getFavoriteClubs(options).then((request) => request(axios, basePath));
|
|
13821
|
+
},
|
|
13424
13822
|
/**
|
|
13425
13823
|
*
|
|
13426
13824
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -13484,6 +13882,16 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
|
|
|
13484
13882
|
getUserProfileVisibility(options?: RawAxiosRequestConfig): AxiosPromise<ProfileVisibilityResponse> {
|
|
13485
13883
|
return localVarFp.getUserProfileVisibility(options).then((request) => request(axios, basePath));
|
|
13486
13884
|
},
|
|
13885
|
+
/**
|
|
13886
|
+
*
|
|
13887
|
+
* @summary Remove a club from the user\'s favorite list
|
|
13888
|
+
* @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
|
13889
|
+
* @param {*} [options] Override http request option.
|
|
13890
|
+
* @throws {RequiredError}
|
|
13891
|
+
*/
|
|
13892
|
+
removeFavoriteClub(requestParameters: UserProfileApiRemoveFavoriteClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoriteClubResponse> {
|
|
13893
|
+
return localVarFp.removeFavoriteClub(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13894
|
+
},
|
|
13487
13895
|
/**
|
|
13488
13896
|
*
|
|
13489
13897
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -13547,6 +13955,20 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
|
|
|
13547
13955
|
};
|
|
13548
13956
|
};
|
|
13549
13957
|
|
|
13958
|
+
/**
|
|
13959
|
+
* Request parameters for addFavoriteClub operation in UserProfileApi.
|
|
13960
|
+
* @export
|
|
13961
|
+
* @interface UserProfileApiAddFavoriteClubRequest
|
|
13962
|
+
*/
|
|
13963
|
+
export interface UserProfileApiAddFavoriteClubRequest {
|
|
13964
|
+
/**
|
|
13965
|
+
*
|
|
13966
|
+
* @type {AddFavoriteClubRequestBody}
|
|
13967
|
+
* @memberof UserProfileApiAddFavoriteClub
|
|
13968
|
+
*/
|
|
13969
|
+
readonly addFavoriteClubRequestBody: AddFavoriteClubRequestBody
|
|
13970
|
+
}
|
|
13971
|
+
|
|
13550
13972
|
/**
|
|
13551
13973
|
* Request parameters for changePassword operation in UserProfileApi.
|
|
13552
13974
|
* @export
|
|
@@ -13589,6 +14011,20 @@ export interface UserProfileApiGetAllUsersRequest {
|
|
|
13589
14011
|
readonly search?: string
|
|
13590
14012
|
}
|
|
13591
14013
|
|
|
14014
|
+
/**
|
|
14015
|
+
* Request parameters for removeFavoriteClub operation in UserProfileApi.
|
|
14016
|
+
* @export
|
|
14017
|
+
* @interface UserProfileApiRemoveFavoriteClubRequest
|
|
14018
|
+
*/
|
|
14019
|
+
export interface UserProfileApiRemoveFavoriteClubRequest {
|
|
14020
|
+
/**
|
|
14021
|
+
* ID of the club to remove from favorites
|
|
14022
|
+
* @type {string}
|
|
14023
|
+
* @memberof UserProfileApiRemoveFavoriteClub
|
|
14024
|
+
*/
|
|
14025
|
+
readonly clubId: string
|
|
14026
|
+
}
|
|
14027
|
+
|
|
13592
14028
|
/**
|
|
13593
14029
|
* Request parameters for updateLevelBySports operation in UserProfileApi.
|
|
13594
14030
|
* @export
|
|
@@ -13680,6 +14116,18 @@ export interface UserProfileApiUpdateUserDescriptionRequest {
|
|
|
13680
14116
|
* @extends {BaseAPI}
|
|
13681
14117
|
*/
|
|
13682
14118
|
export class UserProfileApi extends BaseAPI {
|
|
14119
|
+
/**
|
|
14120
|
+
*
|
|
14121
|
+
* @summary Add a club to the user\'s favorite list
|
|
14122
|
+
* @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
|
|
14123
|
+
* @param {*} [options] Override http request option.
|
|
14124
|
+
* @throws {RequiredError}
|
|
14125
|
+
* @memberof UserProfileApi
|
|
14126
|
+
*/
|
|
14127
|
+
public addFavoriteClub(requestParameters: UserProfileApiAddFavoriteClubRequest, options?: RawAxiosRequestConfig) {
|
|
14128
|
+
return UserProfileApiFp(this.configuration).addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
14129
|
+
}
|
|
14130
|
+
|
|
13683
14131
|
/**
|
|
13684
14132
|
*
|
|
13685
14133
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -13704,6 +14152,17 @@ export class UserProfileApi extends BaseAPI {
|
|
|
13704
14152
|
return UserProfileApiFp(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
13705
14153
|
}
|
|
13706
14154
|
|
|
14155
|
+
/**
|
|
14156
|
+
*
|
|
14157
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
14158
|
+
* @param {*} [options] Override http request option.
|
|
14159
|
+
* @throws {RequiredError}
|
|
14160
|
+
* @memberof UserProfileApi
|
|
14161
|
+
*/
|
|
14162
|
+
public getFavoriteClubs(options?: RawAxiosRequestConfig) {
|
|
14163
|
+
return UserProfileApiFp(this.configuration).getFavoriteClubs(options).then((request) => request(this.axios, this.basePath));
|
|
14164
|
+
}
|
|
14165
|
+
|
|
13707
14166
|
/**
|
|
13708
14167
|
*
|
|
13709
14168
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -13781,6 +14240,18 @@ export class UserProfileApi extends BaseAPI {
|
|
|
13781
14240
|
return UserProfileApiFp(this.configuration).getUserProfileVisibility(options).then((request) => request(this.axios, this.basePath));
|
|
13782
14241
|
}
|
|
13783
14242
|
|
|
14243
|
+
/**
|
|
14244
|
+
*
|
|
14245
|
+
* @summary Remove a club from the user\'s favorite list
|
|
14246
|
+
* @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
|
14247
|
+
* @param {*} [options] Override http request option.
|
|
14248
|
+
* @throws {RequiredError}
|
|
14249
|
+
* @memberof UserProfileApi
|
|
14250
|
+
*/
|
|
14251
|
+
public removeFavoriteClub(requestParameters: UserProfileApiRemoveFavoriteClubRequest, options?: RawAxiosRequestConfig) {
|
|
14252
|
+
return UserProfileApiFp(this.configuration).removeFavoriteClub(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
14253
|
+
}
|
|
14254
|
+
|
|
13784
14255
|
/**
|
|
13785
14256
|
*
|
|
13786
14257
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.28
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.28
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
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).
|