@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/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.31
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2474,19 +2474,6 @@ export interface GetClubInfos200Response {
|
|
|
2474
2474
|
*/
|
|
2475
2475
|
'websiteUrl'?: string;
|
|
2476
2476
|
}
|
|
2477
|
-
/**
|
|
2478
|
-
*
|
|
2479
|
-
* @export
|
|
2480
|
-
* @interface GetClubSettingsRequest
|
|
2481
|
-
*/
|
|
2482
|
-
export interface GetClubSettingsRequest {
|
|
2483
|
-
/**
|
|
2484
|
-
*
|
|
2485
|
-
* @type {string}
|
|
2486
|
-
* @memberof GetClubSettingsRequest
|
|
2487
|
-
*/
|
|
2488
|
-
'clubId': string;
|
|
2489
|
-
}
|
|
2490
2477
|
/**
|
|
2491
2478
|
*
|
|
2492
2479
|
* @export
|
|
@@ -3300,6 +3287,18 @@ export interface PublicClubUser {
|
|
|
3300
3287
|
* @memberof PublicClubUser
|
|
3301
3288
|
*/
|
|
3302
3289
|
'lastName'?: string;
|
|
3290
|
+
/**
|
|
3291
|
+
*
|
|
3292
|
+
* @type {string}
|
|
3293
|
+
* @memberof PublicClubUser
|
|
3294
|
+
*/
|
|
3295
|
+
'createdAt'?: string;
|
|
3296
|
+
/**
|
|
3297
|
+
*
|
|
3298
|
+
* @type {boolean}
|
|
3299
|
+
* @memberof PublicClubUser
|
|
3300
|
+
*/
|
|
3301
|
+
'isAccountVerified'?: boolean;
|
|
3303
3302
|
/**
|
|
3304
3303
|
*
|
|
3305
3304
|
* @type {string}
|
|
@@ -3330,6 +3329,92 @@ export interface PublicClubUser {
|
|
|
3330
3329
|
* @memberof PublicClubUser
|
|
3331
3330
|
*/
|
|
3332
3331
|
'city'?: string | null;
|
|
3332
|
+
/**
|
|
3333
|
+
*
|
|
3334
|
+
* @type {Array<string>}
|
|
3335
|
+
* @memberof PublicClubUser
|
|
3336
|
+
*/
|
|
3337
|
+
'favoriteClubs'?: Array<string>;
|
|
3338
|
+
/**
|
|
3339
|
+
*
|
|
3340
|
+
* @type {Array<string>}
|
|
3341
|
+
* @memberof PublicClubUser
|
|
3342
|
+
*/
|
|
3343
|
+
'favoritePlayers'?: Array<string>;
|
|
3344
|
+
/**
|
|
3345
|
+
*
|
|
3346
|
+
* @type {Array<PublicClubUserFrequentlyPlayedWithInner>}
|
|
3347
|
+
* @memberof PublicClubUser
|
|
3348
|
+
*/
|
|
3349
|
+
'frequentlyPlayedWith'?: Array<PublicClubUserFrequentlyPlayedWithInner>;
|
|
3350
|
+
/**
|
|
3351
|
+
*
|
|
3352
|
+
* @type {Array<PublicClubUserFrequentlyVisitedClubsInner>}
|
|
3353
|
+
* @memberof PublicClubUser
|
|
3354
|
+
*/
|
|
3355
|
+
'frequentlyVisitedClubs'?: Array<PublicClubUserFrequentlyVisitedClubsInner>;
|
|
3356
|
+
}
|
|
3357
|
+
/**
|
|
3358
|
+
*
|
|
3359
|
+
* @export
|
|
3360
|
+
* @interface PublicClubUserFrequentlyPlayedWithInner
|
|
3361
|
+
*/
|
|
3362
|
+
export interface PublicClubUserFrequentlyPlayedWithInner {
|
|
3363
|
+
/**
|
|
3364
|
+
*
|
|
3365
|
+
* @type {string}
|
|
3366
|
+
* @memberof PublicClubUserFrequentlyPlayedWithInner
|
|
3367
|
+
*/
|
|
3368
|
+
'userId'?: string;
|
|
3369
|
+
/**
|
|
3370
|
+
*
|
|
3371
|
+
* @type {string}
|
|
3372
|
+
* @memberof PublicClubUserFrequentlyPlayedWithInner
|
|
3373
|
+
*/
|
|
3374
|
+
'firstName'?: string;
|
|
3375
|
+
/**
|
|
3376
|
+
*
|
|
3377
|
+
* @type {string}
|
|
3378
|
+
* @memberof PublicClubUserFrequentlyPlayedWithInner
|
|
3379
|
+
*/
|
|
3380
|
+
'lastName'?: string;
|
|
3381
|
+
/**
|
|
3382
|
+
*
|
|
3383
|
+
* @type {string}
|
|
3384
|
+
* @memberof PublicClubUserFrequentlyPlayedWithInner
|
|
3385
|
+
*/
|
|
3386
|
+
'profilePicture'?: string;
|
|
3387
|
+
/**
|
|
3388
|
+
*
|
|
3389
|
+
* @type {number}
|
|
3390
|
+
* @memberof PublicClubUserFrequentlyPlayedWithInner
|
|
3391
|
+
*/
|
|
3392
|
+
'playCount'?: number;
|
|
3393
|
+
}
|
|
3394
|
+
/**
|
|
3395
|
+
*
|
|
3396
|
+
* @export
|
|
3397
|
+
* @interface PublicClubUserFrequentlyVisitedClubsInner
|
|
3398
|
+
*/
|
|
3399
|
+
export interface PublicClubUserFrequentlyVisitedClubsInner {
|
|
3400
|
+
/**
|
|
3401
|
+
*
|
|
3402
|
+
* @type {string}
|
|
3403
|
+
* @memberof PublicClubUserFrequentlyVisitedClubsInner
|
|
3404
|
+
*/
|
|
3405
|
+
'clubId'?: string;
|
|
3406
|
+
/**
|
|
3407
|
+
*
|
|
3408
|
+
* @type {string}
|
|
3409
|
+
* @memberof PublicClubUserFrequentlyVisitedClubsInner
|
|
3410
|
+
*/
|
|
3411
|
+
'name'?: string;
|
|
3412
|
+
/**
|
|
3413
|
+
*
|
|
3414
|
+
* @type {number}
|
|
3415
|
+
* @memberof PublicClubUserFrequentlyVisitedClubsInner
|
|
3416
|
+
*/
|
|
3417
|
+
'visitCount'?: number;
|
|
3333
3418
|
}
|
|
3334
3419
|
/**
|
|
3335
3420
|
*
|
|
@@ -7961,11 +8046,10 @@ export declare const StaffClubsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
7961
8046
|
/**
|
|
7962
8047
|
*
|
|
7963
8048
|
* @summary Récupère les paramètres d’un club
|
|
7964
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
7965
8049
|
* @param {*} [options] Override http request option.
|
|
7966
8050
|
* @throws {RequiredError}
|
|
7967
8051
|
*/
|
|
7968
|
-
getClubSettings: (
|
|
8052
|
+
getClubSettings: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7969
8053
|
};
|
|
7970
8054
|
/**
|
|
7971
8055
|
* StaffClubsApi - functional programming interface
|
|
@@ -7982,11 +8066,10 @@ export declare const StaffClubsApiFp: (configuration?: Configuration) => {
|
|
|
7982
8066
|
/**
|
|
7983
8067
|
*
|
|
7984
8068
|
* @summary Récupère les paramètres d’un club
|
|
7985
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
7986
8069
|
* @param {*} [options] Override http request option.
|
|
7987
8070
|
* @throws {RequiredError}
|
|
7988
8071
|
*/
|
|
7989
|
-
getClubSettings(
|
|
8072
|
+
getClubSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettings>>;
|
|
7990
8073
|
};
|
|
7991
8074
|
/**
|
|
7992
8075
|
* StaffClubsApi - factory interface
|
|
@@ -8003,25 +8086,11 @@ export declare const StaffClubsApiFactory: (configuration?: Configuration, baseP
|
|
|
8003
8086
|
/**
|
|
8004
8087
|
*
|
|
8005
8088
|
* @summary Récupère les paramètres d’un club
|
|
8006
|
-
* @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
8007
8089
|
* @param {*} [options] Override http request option.
|
|
8008
8090
|
* @throws {RequiredError}
|
|
8009
8091
|
*/
|
|
8010
|
-
getClubSettings(
|
|
8092
|
+
getClubSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubSettings>;
|
|
8011
8093
|
};
|
|
8012
|
-
/**
|
|
8013
|
-
* Request parameters for getClubSettings operation in StaffClubsApi.
|
|
8014
|
-
* @export
|
|
8015
|
-
* @interface StaffClubsApiGetClubSettingsRequest
|
|
8016
|
-
*/
|
|
8017
|
-
export interface StaffClubsApiGetClubSettingsRequest {
|
|
8018
|
-
/**
|
|
8019
|
-
*
|
|
8020
|
-
* @type {GetClubSettingsRequest}
|
|
8021
|
-
* @memberof StaffClubsApiGetClubSettings
|
|
8022
|
-
*/
|
|
8023
|
-
readonly getClubSettingsRequest: GetClubSettingsRequest;
|
|
8024
|
-
}
|
|
8025
8094
|
/**
|
|
8026
8095
|
* StaffClubsApi - object-oriented interface
|
|
8027
8096
|
* @export
|
|
@@ -8040,12 +8109,11 @@ export declare class StaffClubsApi extends BaseAPI {
|
|
|
8040
8109
|
/**
|
|
8041
8110
|
*
|
|
8042
8111
|
* @summary Récupère les paramètres d’un club
|
|
8043
|
-
* @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
8044
8112
|
* @param {*} [options] Override http request option.
|
|
8045
8113
|
* @throws {RequiredError}
|
|
8046
8114
|
* @memberof StaffClubsApi
|
|
8047
8115
|
*/
|
|
8048
|
-
getClubSettings(
|
|
8116
|
+
getClubSettings(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubSettings, any>>;
|
|
8049
8117
|
}
|
|
8050
8118
|
/**
|
|
8051
8119
|
* StaffEventsApi - axios parameter creator
|
|
@@ -9206,6 +9274,14 @@ export declare const UserProfileApiAxiosParamCreator: (configuration?: Configura
|
|
|
9206
9274
|
* @throws {RequiredError}
|
|
9207
9275
|
*/
|
|
9208
9276
|
getProfilePicture: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9277
|
+
/**
|
|
9278
|
+
*
|
|
9279
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
9280
|
+
* @param {string} id ID de l\'utilisateur
|
|
9281
|
+
* @param {*} [options] Override http request option.
|
|
9282
|
+
* @throws {RequiredError}
|
|
9283
|
+
*/
|
|
9284
|
+
getPublicUserProfile: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9209
9285
|
/**
|
|
9210
9286
|
*
|
|
9211
9287
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -9382,6 +9458,14 @@ export declare const UserProfileApiFp: (configuration?: Configuration) => {
|
|
|
9382
9458
|
* @throws {RequiredError}
|
|
9383
9459
|
*/
|
|
9384
9460
|
getProfilePicture(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfilePictureResponse>>;
|
|
9461
|
+
/**
|
|
9462
|
+
*
|
|
9463
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
9464
|
+
* @param {string} id ID de l\'utilisateur
|
|
9465
|
+
* @param {*} [options] Override http request option.
|
|
9466
|
+
* @throws {RequiredError}
|
|
9467
|
+
*/
|
|
9468
|
+
getPublicUserProfile(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublicClubUser>>;
|
|
9385
9469
|
/**
|
|
9386
9470
|
*
|
|
9387
9471
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -9556,6 +9640,14 @@ export declare const UserProfileApiFactory: (configuration?: Configuration, base
|
|
|
9556
9640
|
* @throws {RequiredError}
|
|
9557
9641
|
*/
|
|
9558
9642
|
getProfilePicture(options?: RawAxiosRequestConfig): AxiosPromise<ProfilePictureResponse>;
|
|
9643
|
+
/**
|
|
9644
|
+
*
|
|
9645
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
9646
|
+
* @param {UserProfileApiGetPublicUserProfileRequest} requestParameters Request parameters.
|
|
9647
|
+
* @param {*} [options] Override http request option.
|
|
9648
|
+
* @throws {RequiredError}
|
|
9649
|
+
*/
|
|
9650
|
+
getPublicUserProfile(requestParameters: UserProfileApiGetPublicUserProfileRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicClubUser>;
|
|
9559
9651
|
/**
|
|
9560
9652
|
*
|
|
9561
9653
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -9721,6 +9813,19 @@ export interface UserProfileApiGetAllUsersRequest {
|
|
|
9721
9813
|
*/
|
|
9722
9814
|
readonly search?: string;
|
|
9723
9815
|
}
|
|
9816
|
+
/**
|
|
9817
|
+
* Request parameters for getPublicUserProfile operation in UserProfileApi.
|
|
9818
|
+
* @export
|
|
9819
|
+
* @interface UserProfileApiGetPublicUserProfileRequest
|
|
9820
|
+
*/
|
|
9821
|
+
export interface UserProfileApiGetPublicUserProfileRequest {
|
|
9822
|
+
/**
|
|
9823
|
+
* ID de l\'utilisateur
|
|
9824
|
+
* @type {string}
|
|
9825
|
+
* @memberof UserProfileApiGetPublicUserProfile
|
|
9826
|
+
*/
|
|
9827
|
+
readonly id: string;
|
|
9828
|
+
}
|
|
9724
9829
|
/**
|
|
9725
9830
|
* Request parameters for getUserBookings operation in UserProfileApi.
|
|
9726
9831
|
* @export
|
|
@@ -9927,6 +10032,15 @@ export declare class UserProfileApi extends BaseAPI {
|
|
|
9927
10032
|
* @memberof UserProfileApi
|
|
9928
10033
|
*/
|
|
9929
10034
|
getProfilePicture(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProfilePictureResponse, any>>;
|
|
10035
|
+
/**
|
|
10036
|
+
*
|
|
10037
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
10038
|
+
* @param {UserProfileApiGetPublicUserProfileRequest} requestParameters Request parameters.
|
|
10039
|
+
* @param {*} [options] Override http request option.
|
|
10040
|
+
* @throws {RequiredError}
|
|
10041
|
+
* @memberof UserProfileApi
|
|
10042
|
+
*/
|
|
10043
|
+
getPublicUserProfile(requestParameters: UserProfileApiGetPublicUserProfileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublicClubUser, any>>;
|
|
9930
10044
|
/**
|
|
9931
10045
|
*
|
|
9932
10046
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
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.31
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4900,13 +4900,10 @@ export const StaffClubsApiAxiosParamCreator = function (configuration) {
|
|
|
4900
4900
|
/**
|
|
4901
4901
|
*
|
|
4902
4902
|
* @summary Récupère les paramètres d’un club
|
|
4903
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
4904
4903
|
* @param {*} [options] Override http request option.
|
|
4905
4904
|
* @throws {RequiredError}
|
|
4906
4905
|
*/
|
|
4907
|
-
getClubSettings: (
|
|
4908
|
-
// verify required parameter 'getClubSettingsRequest' is not null or undefined
|
|
4909
|
-
assertParamExists('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
|
|
4906
|
+
getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4910
4907
|
const localVarPath = `/api/club-settings`;
|
|
4911
4908
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4912
4909
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4920,11 +4917,9 @@ export const StaffClubsApiAxiosParamCreator = function (configuration) {
|
|
|
4920
4917
|
// authentication bearerAuth required
|
|
4921
4918
|
// http bearer authentication required
|
|
4922
4919
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4923
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4924
4920
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4925
4921
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4926
4922
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4927
|
-
localVarRequestOptions.data = serializeDataIfNeeded(getClubSettingsRequest, localVarRequestOptions, configuration);
|
|
4928
4923
|
return {
|
|
4929
4924
|
url: toPathString(localVarUrlObj),
|
|
4930
4925
|
options: localVarRequestOptions,
|
|
@@ -4957,14 +4952,13 @@ export const StaffClubsApiFp = function (configuration) {
|
|
|
4957
4952
|
/**
|
|
4958
4953
|
*
|
|
4959
4954
|
* @summary Récupère les paramètres d’un club
|
|
4960
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
4961
4955
|
* @param {*} [options] Override http request option.
|
|
4962
4956
|
* @throws {RequiredError}
|
|
4963
4957
|
*/
|
|
4964
|
-
getClubSettings(
|
|
4958
|
+
getClubSettings(options) {
|
|
4965
4959
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4966
4960
|
var _a, _b, _c;
|
|
4967
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(
|
|
4961
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
|
|
4968
4962
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4969
4963
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4970
4964
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4991,12 +4985,11 @@ export const StaffClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
4991
4985
|
/**
|
|
4992
4986
|
*
|
|
4993
4987
|
* @summary Récupère les paramètres d’un club
|
|
4994
|
-
* @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
4995
4988
|
* @param {*} [options] Override http request option.
|
|
4996
4989
|
* @throws {RequiredError}
|
|
4997
4990
|
*/
|
|
4998
|
-
getClubSettings(
|
|
4999
|
-
return localVarFp.getClubSettings(
|
|
4991
|
+
getClubSettings(options) {
|
|
4992
|
+
return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
|
|
5000
4993
|
},
|
|
5001
4994
|
};
|
|
5002
4995
|
};
|
|
@@ -5020,13 +5013,12 @@ export class StaffClubsApi extends BaseAPI {
|
|
|
5020
5013
|
/**
|
|
5021
5014
|
*
|
|
5022
5015
|
* @summary Récupère les paramètres d’un club
|
|
5023
|
-
* @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
5024
5016
|
* @param {*} [options] Override http request option.
|
|
5025
5017
|
* @throws {RequiredError}
|
|
5026
5018
|
* @memberof StaffClubsApi
|
|
5027
5019
|
*/
|
|
5028
|
-
getClubSettings(
|
|
5029
|
-
return StaffClubsApiFp(this.configuration).getClubSettings(
|
|
5020
|
+
getClubSettings(options) {
|
|
5021
|
+
return StaffClubsApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
5030
5022
|
}
|
|
5031
5023
|
}
|
|
5032
5024
|
/**
|
|
@@ -6918,6 +6910,38 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
6918
6910
|
options: localVarRequestOptions,
|
|
6919
6911
|
};
|
|
6920
6912
|
}),
|
|
6913
|
+
/**
|
|
6914
|
+
*
|
|
6915
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
6916
|
+
* @param {string} id ID de l\'utilisateur
|
|
6917
|
+
* @param {*} [options] Override http request option.
|
|
6918
|
+
* @throws {RequiredError}
|
|
6919
|
+
*/
|
|
6920
|
+
getPublicUserProfile: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
6921
|
+
// verify required parameter 'id' is not null or undefined
|
|
6922
|
+
assertParamExists('getPublicUserProfile', 'id', id);
|
|
6923
|
+
const localVarPath = `/api/users/profile/{id}`
|
|
6924
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6925
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6926
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6927
|
+
let baseOptions;
|
|
6928
|
+
if (configuration) {
|
|
6929
|
+
baseOptions = configuration.baseOptions;
|
|
6930
|
+
}
|
|
6931
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6932
|
+
const localVarHeaderParameter = {};
|
|
6933
|
+
const localVarQueryParameter = {};
|
|
6934
|
+
// authentication bearerAuth required
|
|
6935
|
+
// http bearer authentication required
|
|
6936
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6937
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6938
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6939
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6940
|
+
return {
|
|
6941
|
+
url: toPathString(localVarUrlObj),
|
|
6942
|
+
options: localVarRequestOptions,
|
|
6943
|
+
};
|
|
6944
|
+
}),
|
|
6921
6945
|
/**
|
|
6922
6946
|
*
|
|
6923
6947
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -7076,7 +7100,8 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
7076
7100
|
removeFavoriteClub: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
7077
7101
|
// verify required parameter 'clubId' is not null or undefined
|
|
7078
7102
|
assertParamExists('removeFavoriteClub', 'clubId', clubId);
|
|
7079
|
-
const localVarPath = `/api/users/me/favorite-clubs
|
|
7103
|
+
const localVarPath = `/api/users/me/favorite-clubs/{clubId}`
|
|
7104
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
7080
7105
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7081
7106
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7082
7107
|
let baseOptions;
|
|
@@ -7089,9 +7114,6 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
7089
7114
|
// authentication bearerAuth required
|
|
7090
7115
|
// http bearer authentication required
|
|
7091
7116
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7092
|
-
if (clubId !== undefined) {
|
|
7093
|
-
localVarQueryParameter['clubId'] = clubId;
|
|
7094
|
-
}
|
|
7095
7117
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7096
7118
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7097
7119
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7480,6 +7502,22 @@ export const UserProfileApiFp = function (configuration) {
|
|
|
7480
7502
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7481
7503
|
});
|
|
7482
7504
|
},
|
|
7505
|
+
/**
|
|
7506
|
+
*
|
|
7507
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
7508
|
+
* @param {string} id ID de l\'utilisateur
|
|
7509
|
+
* @param {*} [options] Override http request option.
|
|
7510
|
+
* @throws {RequiredError}
|
|
7511
|
+
*/
|
|
7512
|
+
getPublicUserProfile(id, options) {
|
|
7513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7514
|
+
var _a, _b, _c;
|
|
7515
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicUserProfile(id, options);
|
|
7516
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7517
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getPublicUserProfile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7518
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7519
|
+
});
|
|
7520
|
+
},
|
|
7483
7521
|
/**
|
|
7484
7522
|
*
|
|
7485
7523
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -7779,6 +7817,16 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
7779
7817
|
getProfilePicture(options) {
|
|
7780
7818
|
return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
|
|
7781
7819
|
},
|
|
7820
|
+
/**
|
|
7821
|
+
*
|
|
7822
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
7823
|
+
* @param {UserProfileApiGetPublicUserProfileRequest} requestParameters Request parameters.
|
|
7824
|
+
* @param {*} [options] Override http request option.
|
|
7825
|
+
* @throws {RequiredError}
|
|
7826
|
+
*/
|
|
7827
|
+
getPublicUserProfile(requestParameters, options) {
|
|
7828
|
+
return localVarFp.getPublicUserProfile(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7829
|
+
},
|
|
7782
7830
|
/**
|
|
7783
7831
|
*
|
|
7784
7832
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -8008,6 +8056,17 @@ export class UserProfileApi extends BaseAPI {
|
|
|
8008
8056
|
getProfilePicture(options) {
|
|
8009
8057
|
return UserProfileApiFp(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
|
|
8010
8058
|
}
|
|
8059
|
+
/**
|
|
8060
|
+
*
|
|
8061
|
+
* @summary Récupère le profil public d\'un utilisateur par son ID
|
|
8062
|
+
* @param {UserProfileApiGetPublicUserProfileRequest} requestParameters Request parameters.
|
|
8063
|
+
* @param {*} [options] Override http request option.
|
|
8064
|
+
* @throws {RequiredError}
|
|
8065
|
+
* @memberof UserProfileApi
|
|
8066
|
+
*/
|
|
8067
|
+
getPublicUserProfile(requestParameters, options) {
|
|
8068
|
+
return UserProfileApiFp(this.configuration).getPublicUserProfile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
8069
|
+
}
|
|
8011
8070
|
/**
|
|
8012
8071
|
*
|
|
8013
8072
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
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.31
|
|
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.31
|
|
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.31
|
|
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.31
|
|
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.31
|
|
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.31
|
|
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.31
|
|
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.31
|
|
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.31
|
|
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.31
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/PublicClubUser.md
CHANGED
|
@@ -8,11 +8,17 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**_id** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**firstName** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**lastName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**isAccountVerified** | **boolean** | | [optional] [default to undefined]
|
|
11
13
|
**email** | **string** | | [optional] [default to undefined]
|
|
12
14
|
**levelBySports** | [**Array<PublicClubUserLevelBySportsInner>**](PublicClubUserLevelBySportsInner.md) | | [optional] [default to undefined]
|
|
13
15
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
14
16
|
**description** | **string** | | [optional] [default to undefined]
|
|
15
17
|
**city** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
|
|
19
|
+
**favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
|
|
20
|
+
**frequentlyPlayedWith** | [**Array<PublicClubUserFrequentlyPlayedWithInner>**](PublicClubUserFrequentlyPlayedWithInner.md) | | [optional] [default to undefined]
|
|
21
|
+
**frequentlyVisitedClubs** | [**Array<PublicClubUserFrequentlyVisitedClubsInner>**](PublicClubUserFrequentlyVisitedClubsInner.md) | | [optional] [default to undefined]
|
|
16
22
|
|
|
17
23
|
## Example
|
|
18
24
|
|
|
@@ -23,11 +29,17 @@ const instance: PublicClubUser = {
|
|
|
23
29
|
_id,
|
|
24
30
|
firstName,
|
|
25
31
|
lastName,
|
|
32
|
+
createdAt,
|
|
33
|
+
isAccountVerified,
|
|
26
34
|
email,
|
|
27
35
|
levelBySports,
|
|
28
36
|
profilePicture,
|
|
29
37
|
description,
|
|
30
38
|
city,
|
|
39
|
+
favoriteClubs,
|
|
40
|
+
favoritePlayers,
|
|
41
|
+
frequentlyPlayedWith,
|
|
42
|
+
frequentlyVisitedClubs,
|
|
31
43
|
};
|
|
32
44
|
```
|
|
33
45
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# PublicClubUserFrequentlyPlayedWithInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**userId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**playCount** | **number** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { PublicClubUserFrequentlyPlayedWithInner } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: PublicClubUserFrequentlyPlayedWithInner = {
|
|
20
|
+
userId,
|
|
21
|
+
firstName,
|
|
22
|
+
lastName,
|
|
23
|
+
profilePicture,
|
|
24
|
+
playCount,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PublicClubUserFrequentlyVisitedClubsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**visitCount** | **number** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PublicClubUserFrequentlyVisitedClubsInner } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: PublicClubUserFrequentlyVisitedClubsInner = {
|
|
18
|
+
clubId,
|
|
19
|
+
name,
|
|
20
|
+
visitCount,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|