@tennac-booking/sdk 1.0.26 → 1.0.27

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.
@@ -49,6 +49,7 @@ docs/ClubRole.md
49
49
  docs/ClubRoleResponse.md
50
50
  docs/ClubRolesResponse.md
51
51
  docs/ClubSettings.md
52
+ docs/ClubsApi.md
52
53
  docs/ClubsResponse.md
53
54
  docs/ConfirmPaymentMethodSetupRequestBody.md
54
55
  docs/ConfirmPaymentMethodSetupResponse.md
@@ -84,6 +85,7 @@ docs/GenerateSlotsResponse.md
84
85
  docs/GetActiveClubs200Response.md
85
86
  docs/GetClubInfos200Response.md
86
87
  docs/GetClubSettingsRequest.md
88
+ docs/GetClubUsersById200Response.md
87
89
  docs/GetCourtsByClubAndSport200Response.md
88
90
  docs/GetLastSixMonthsTurnover200ResponseInner.md
89
91
  docs/GetNumberOfClubUsers200Response.md
@@ -122,6 +124,8 @@ docs/PlayerWithPaymentMethod.md
122
124
  docs/PriceResponse.md
123
125
  docs/ProfilePictureResponse.md
124
126
  docs/ProfileVisibilityResponse.md
127
+ docs/PublicClubUser.md
128
+ docs/PublicClubUserLevelBySportsInner.md
125
129
  docs/RefreshTokenRequestBody.md
126
130
  docs/RefreshTokenResponse.md
127
131
  docs/RegisterForEvent201Response.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @tennac-booking/sdk@1.0.26
1
+ ## @tennac-booking/sdk@1.0.27
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.26 --save
39
+ npm install @tennac-booking/sdk@1.0.27 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -72,6 +72,7 @@ Class | Method | HTTP request | Description
72
72
  *ClubAnalyticsApi* | [**getInvoices**](docs/ClubAnalyticsApi.md#getinvoices) | **GET** /api/clubs/invoices | Récupérer les factures du club courant
73
73
  *ClubAnalyticsApi* | [**getMonthlyTurnOver**](docs/ClubAnalyticsApi.md#getmonthlyturnover) | **GET** /api/analytics/monthlyTurnover | Chiffre d\'affaires mensuel (club courant)
74
74
  *ClubAnalyticsApi* | [**getYearlyTurnOver**](docs/ClubAnalyticsApi.md#getyearlyturnover) | **GET** /api/analytics/yearlyTurnover | Chiffre d\'affaires annuel (club courant)
75
+ *ClubsApi* | [**getClubUsersById**](docs/ClubsApi.md#getclubusersbyid) | **GET** /api/clubs/{id}/clubUsers | Récupérer la liste publique des utilisateurs d\'un club
75
76
  *EventsApi* | [**getPublishedEventsByClubId**](docs/EventsApi.md#getpublishedeventsbyclubid) | **GET** /api/events | Get all published events for a club
76
77
  *EventsApi* | [**registerForEvent**](docs/EventsApi.md#registerforevent) | **POST** /api/events/{eventId}/register | Register for an event
77
78
  *ManagerBookingsApi* | [**applyNoShowFee**](docs/ManagerBookingsApi.md#applynoshowfee) | **POST** /api/bookings/{bookingId}/apply-noshow-fee | Appliquer les frais de no-show
@@ -222,6 +223,7 @@ Class | Method | HTTP request | Description
222
223
  - [GetActiveClubs200Response](docs/GetActiveClubs200Response.md)
223
224
  - [GetClubInfos200Response](docs/GetClubInfos200Response.md)
224
225
  - [GetClubSettingsRequest](docs/GetClubSettingsRequest.md)
226
+ - [GetClubUsersById200Response](docs/GetClubUsersById200Response.md)
225
227
  - [GetCourtsByClubAndSport200Response](docs/GetCourtsByClubAndSport200Response.md)
226
228
  - [GetLastSixMonthsTurnover200ResponseInner](docs/GetLastSixMonthsTurnover200ResponseInner.md)
227
229
  - [GetNumberOfClubUsers200Response](docs/GetNumberOfClubUsers200Response.md)
@@ -252,6 +254,8 @@ Class | Method | HTTP request | Description
252
254
  - [PriceResponse](docs/PriceResponse.md)
253
255
  - [ProfilePictureResponse](docs/ProfilePictureResponse.md)
254
256
  - [ProfileVisibilityResponse](docs/ProfileVisibilityResponse.md)
257
+ - [PublicClubUser](docs/PublicClubUser.md)
258
+ - [PublicClubUserLevelBySportsInner](docs/PublicClubUserLevelBySportsInner.md)
255
259
  - [RefreshTokenRequestBody](docs/RefreshTokenRequestBody.md)
256
260
  - [RefreshTokenResponse](docs/RefreshTokenResponse.md)
257
261
  - [RegisterForEvent201Response](docs/RegisterForEvent201Response.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.26
7
+ * The version of the OpenAPI document: 1.0.27
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
@@ -3214,6 +3227,80 @@ export interface ProfileVisibilityResponse {
3214
3227
  */
3215
3228
  'isProfileVisible'?: boolean;
3216
3229
  }
3230
+ /**
3231
+ *
3232
+ * @export
3233
+ * @interface PublicClubUser
3234
+ */
3235
+ export interface PublicClubUser {
3236
+ /**
3237
+ *
3238
+ * @type {string}
3239
+ * @memberof PublicClubUser
3240
+ */
3241
+ '_id'?: string;
3242
+ /**
3243
+ *
3244
+ * @type {string}
3245
+ * @memberof PublicClubUser
3246
+ */
3247
+ 'firstName'?: string;
3248
+ /**
3249
+ *
3250
+ * @type {string}
3251
+ * @memberof PublicClubUser
3252
+ */
3253
+ 'lastName'?: string;
3254
+ /**
3255
+ *
3256
+ * @type {string}
3257
+ * @memberof PublicClubUser
3258
+ */
3259
+ 'email'?: string;
3260
+ /**
3261
+ *
3262
+ * @type {Array<PublicClubUserLevelBySportsInner>}
3263
+ * @memberof PublicClubUser
3264
+ */
3265
+ 'levelBySports'?: Array<PublicClubUserLevelBySportsInner>;
3266
+ /**
3267
+ *
3268
+ * @type {string}
3269
+ * @memberof PublicClubUser
3270
+ */
3271
+ 'profilePicture'?: string | null;
3272
+ /**
3273
+ *
3274
+ * @type {string}
3275
+ * @memberof PublicClubUser
3276
+ */
3277
+ 'description'?: string | null;
3278
+ /**
3279
+ *
3280
+ * @type {string}
3281
+ * @memberof PublicClubUser
3282
+ */
3283
+ 'city'?: string | null;
3284
+ }
3285
+ /**
3286
+ *
3287
+ * @export
3288
+ * @interface PublicClubUserLevelBySportsInner
3289
+ */
3290
+ export interface PublicClubUserLevelBySportsInner {
3291
+ /**
3292
+ *
3293
+ * @type {string}
3294
+ * @memberof PublicClubUserLevelBySportsInner
3295
+ */
3296
+ 'sport'?: string;
3297
+ /**
3298
+ *
3299
+ * @type {string}
3300
+ * @memberof PublicClubUserLevelBySportsInner
3301
+ */
3302
+ 'level'?: string;
3303
+ }
3217
3304
  /**
3218
3305
  *
3219
3306
  * @export
@@ -6969,6 +7056,132 @@ export const GetInvoicesStatusEnum = {
6969
7056
  export type GetInvoicesStatusEnum = typeof GetInvoicesStatusEnum[keyof typeof GetInvoicesStatusEnum];
6970
7057
 
6971
7058
 
7059
+ /**
7060
+ * ClubsApi - axios parameter creator
7061
+ * @export
7062
+ */
7063
+ export const ClubsApiAxiosParamCreator = function (configuration?: Configuration) {
7064
+ return {
7065
+ /**
7066
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
7067
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
7068
+ * @param {string} id ID du club
7069
+ * @param {*} [options] Override http request option.
7070
+ * @throws {RequiredError}
7071
+ */
7072
+ getClubUsersById: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7073
+ // verify required parameter 'id' is not null or undefined
7074
+ assertParamExists('getClubUsersById', 'id', id)
7075
+ const localVarPath = `/api/clubs/{id}/clubUsers`
7076
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7077
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7078
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7079
+ let baseOptions;
7080
+ if (configuration) {
7081
+ baseOptions = configuration.baseOptions;
7082
+ }
7083
+
7084
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7085
+ const localVarHeaderParameter = {} as any;
7086
+ const localVarQueryParameter = {} as any;
7087
+
7088
+ // authentication bearerAuth required
7089
+ // http bearer authentication required
7090
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7091
+
7092
+
7093
+
7094
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7095
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7096
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7097
+
7098
+ return {
7099
+ url: toPathString(localVarUrlObj),
7100
+ options: localVarRequestOptions,
7101
+ };
7102
+ },
7103
+ }
7104
+ };
7105
+
7106
+ /**
7107
+ * ClubsApi - functional programming interface
7108
+ * @export
7109
+ */
7110
+ export const ClubsApiFp = function(configuration?: Configuration) {
7111
+ const localVarAxiosParamCreator = ClubsApiAxiosParamCreator(configuration)
7112
+ return {
7113
+ /**
7114
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
7115
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
7116
+ * @param {string} id ID du club
7117
+ * @param {*} [options] Override http request option.
7118
+ * @throws {RequiredError}
7119
+ */
7120
+ async getClubUsersById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubUsersById200Response>> {
7121
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubUsersById(id, options);
7122
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7123
+ const localVarOperationServerBasePath = operationServerMap['ClubsApi.getClubUsersById']?.[localVarOperationServerIndex]?.url;
7124
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7125
+ },
7126
+ }
7127
+ };
7128
+
7129
+ /**
7130
+ * ClubsApi - factory interface
7131
+ * @export
7132
+ */
7133
+ export const ClubsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7134
+ const localVarFp = ClubsApiFp(configuration)
7135
+ return {
7136
+ /**
7137
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
7138
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
7139
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
7140
+ * @param {*} [options] Override http request option.
7141
+ * @throws {RequiredError}
7142
+ */
7143
+ getClubUsersById(requestParameters: ClubsApiGetClubUsersByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetClubUsersById200Response> {
7144
+ return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
7145
+ },
7146
+ };
7147
+ };
7148
+
7149
+ /**
7150
+ * Request parameters for getClubUsersById operation in ClubsApi.
7151
+ * @export
7152
+ * @interface ClubsApiGetClubUsersByIdRequest
7153
+ */
7154
+ export interface ClubsApiGetClubUsersByIdRequest {
7155
+ /**
7156
+ * ID du club
7157
+ * @type {string}
7158
+ * @memberof ClubsApiGetClubUsersById
7159
+ */
7160
+ readonly id: string
7161
+ }
7162
+
7163
+ /**
7164
+ * ClubsApi - object-oriented interface
7165
+ * @export
7166
+ * @class ClubsApi
7167
+ * @extends {BaseAPI}
7168
+ */
7169
+ export class ClubsApi extends BaseAPI {
7170
+ /**
7171
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
7172
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
7173
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
7174
+ * @param {*} [options] Override http request option.
7175
+ * @throws {RequiredError}
7176
+ * @memberof ClubsApi
7177
+ */
7178
+ public getClubUsersById(requestParameters: ClubsApiGetClubUsersByIdRequest, options?: RawAxiosRequestConfig) {
7179
+ return ClubsApiFp(this.configuration).getClubUsersById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
7180
+ }
7181
+ }
7182
+
7183
+
7184
+
6972
7185
  /**
6973
7186
  * EventsApi - axios parameter creator
6974
7187
  * @export
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.26
7
+ * The version of the OpenAPI document: 1.0.27
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.26
7
+ * The version of the OpenAPI document: 1.0.27
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.26
7
+ * The version of the OpenAPI document: 1.0.27
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.26
5
+ * The version of the OpenAPI document: 1.0.27
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2374,6 +2374,19 @@ export interface GetClubSettingsRequest {
2374
2374
  */
2375
2375
  'clubId': string;
2376
2376
  }
2377
+ /**
2378
+ *
2379
+ * @export
2380
+ * @interface GetClubUsersById200Response
2381
+ */
2382
+ export interface GetClubUsersById200Response {
2383
+ /**
2384
+ *
2385
+ * @type {Array<PublicClubUser>}
2386
+ * @memberof GetClubUsersById200Response
2387
+ */
2388
+ 'users'?: Array<PublicClubUser>;
2389
+ }
2377
2390
  /**
2378
2391
  *
2379
2392
  * @export
@@ -3150,6 +3163,80 @@ export interface ProfileVisibilityResponse {
3150
3163
  */
3151
3164
  'isProfileVisible'?: boolean;
3152
3165
  }
3166
+ /**
3167
+ *
3168
+ * @export
3169
+ * @interface PublicClubUser
3170
+ */
3171
+ export interface PublicClubUser {
3172
+ /**
3173
+ *
3174
+ * @type {string}
3175
+ * @memberof PublicClubUser
3176
+ */
3177
+ '_id'?: string;
3178
+ /**
3179
+ *
3180
+ * @type {string}
3181
+ * @memberof PublicClubUser
3182
+ */
3183
+ 'firstName'?: string;
3184
+ /**
3185
+ *
3186
+ * @type {string}
3187
+ * @memberof PublicClubUser
3188
+ */
3189
+ 'lastName'?: string;
3190
+ /**
3191
+ *
3192
+ * @type {string}
3193
+ * @memberof PublicClubUser
3194
+ */
3195
+ 'email'?: string;
3196
+ /**
3197
+ *
3198
+ * @type {Array<PublicClubUserLevelBySportsInner>}
3199
+ * @memberof PublicClubUser
3200
+ */
3201
+ 'levelBySports'?: Array<PublicClubUserLevelBySportsInner>;
3202
+ /**
3203
+ *
3204
+ * @type {string}
3205
+ * @memberof PublicClubUser
3206
+ */
3207
+ 'profilePicture'?: string | null;
3208
+ /**
3209
+ *
3210
+ * @type {string}
3211
+ * @memberof PublicClubUser
3212
+ */
3213
+ 'description'?: string | null;
3214
+ /**
3215
+ *
3216
+ * @type {string}
3217
+ * @memberof PublicClubUser
3218
+ */
3219
+ 'city'?: string | null;
3220
+ }
3221
+ /**
3222
+ *
3223
+ * @export
3224
+ * @interface PublicClubUserLevelBySportsInner
3225
+ */
3226
+ export interface PublicClubUserLevelBySportsInner {
3227
+ /**
3228
+ *
3229
+ * @type {string}
3230
+ * @memberof PublicClubUserLevelBySportsInner
3231
+ */
3232
+ 'sport'?: string;
3233
+ /**
3234
+ *
3235
+ * @type {string}
3236
+ * @memberof PublicClubUserLevelBySportsInner
3237
+ */
3238
+ 'level'?: string;
3239
+ }
3153
3240
  /**
3154
3241
  *
3155
3242
  * @export
@@ -5789,6 +5876,78 @@ export declare const GetInvoicesStatusEnum: {
5789
5876
  readonly Expired: "expired";
5790
5877
  };
5791
5878
  export type GetInvoicesStatusEnum = typeof GetInvoicesStatusEnum[keyof typeof GetInvoicesStatusEnum];
5879
+ /**
5880
+ * ClubsApi - axios parameter creator
5881
+ * @export
5882
+ */
5883
+ export declare const ClubsApiAxiosParamCreator: (configuration?: Configuration) => {
5884
+ /**
5885
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
5886
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
5887
+ * @param {string} id ID du club
5888
+ * @param {*} [options] Override http request option.
5889
+ * @throws {RequiredError}
5890
+ */
5891
+ getClubUsersById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5892
+ };
5893
+ /**
5894
+ * ClubsApi - functional programming interface
5895
+ * @export
5896
+ */
5897
+ export declare const ClubsApiFp: (configuration?: Configuration) => {
5898
+ /**
5899
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
5900
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
5901
+ * @param {string} id ID du club
5902
+ * @param {*} [options] Override http request option.
5903
+ * @throws {RequiredError}
5904
+ */
5905
+ getClubUsersById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubUsersById200Response>>;
5906
+ };
5907
+ /**
5908
+ * ClubsApi - factory interface
5909
+ * @export
5910
+ */
5911
+ export declare const ClubsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5912
+ /**
5913
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
5914
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
5915
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
5916
+ * @param {*} [options] Override http request option.
5917
+ * @throws {RequiredError}
5918
+ */
5919
+ getClubUsersById(requestParameters: ClubsApiGetClubUsersByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetClubUsersById200Response>;
5920
+ };
5921
+ /**
5922
+ * Request parameters for getClubUsersById operation in ClubsApi.
5923
+ * @export
5924
+ * @interface ClubsApiGetClubUsersByIdRequest
5925
+ */
5926
+ export interface ClubsApiGetClubUsersByIdRequest {
5927
+ /**
5928
+ * ID du club
5929
+ * @type {string}
5930
+ * @memberof ClubsApiGetClubUsersById
5931
+ */
5932
+ readonly id: string;
5933
+ }
5934
+ /**
5935
+ * ClubsApi - object-oriented interface
5936
+ * @export
5937
+ * @class ClubsApi
5938
+ * @extends {BaseAPI}
5939
+ */
5940
+ export declare class ClubsApi extends BaseAPI {
5941
+ /**
5942
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
5943
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
5944
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
5945
+ * @param {*} [options] Override http request option.
5946
+ * @throws {RequiredError}
5947
+ * @memberof ClubsApi
5948
+ */
5949
+ getClubUsersById(requestParameters: ClubsApiGetClubUsersByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetClubUsersById200Response, any>>;
5950
+ }
5792
5951
  /**
5793
5952
  * EventsApi - axios parameter creator
5794
5953
  * @export
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Pandook API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.26
8
+ * The version of the OpenAPI document: 1.0.27
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.AdminClubsApi = exports.AdminClubsApiFactory = exports.AdminClubsApiFp = exports.AdminClubsApiAxiosParamCreator = exports.AdminClubSubscriptionsApi = exports.AdminClubSubscriptionsApiFactory = exports.AdminClubSubscriptionsApiFp = exports.AdminClubSubscriptionsApiAxiosParamCreator = exports.AdminClubSlotsApi = exports.AdminClubSlotsApiFactory = exports.AdminClubSlotsApiFp = exports.AdminClubSlotsApiAxiosParamCreator = exports.GetInvoicesAdminStatusEnum = exports.AdminClubAnalyticsApi = exports.AdminClubAnalyticsApiFactory = exports.AdminClubAnalyticsApiFp = exports.AdminClubAnalyticsApiAxiosParamCreator = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.EventBookingStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = exports.BookingPopulatedStatusEnum = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
26
- exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffEventsApi = exports.StaffEventsApiFactory = exports.StaffEventsApiFp = exports.StaffEventsApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerEventsApi = exports.ManagerEventsApiFactory = exports.ManagerEventsApiFp = exports.ManagerEventsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = void 0;
27
- exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = void 0;
25
+ exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.AdminClubsApi = exports.AdminClubsApiFactory = exports.AdminClubsApiFp = exports.AdminClubsApiAxiosParamCreator = exports.AdminClubSubscriptionsApi = exports.AdminClubSubscriptionsApiFactory = exports.AdminClubSubscriptionsApiFp = exports.AdminClubSubscriptionsApiAxiosParamCreator = exports.AdminClubSlotsApi = exports.AdminClubSlotsApiFactory = exports.AdminClubSlotsApiFp = exports.AdminClubSlotsApiAxiosParamCreator = exports.GetInvoicesAdminStatusEnum = exports.AdminClubAnalyticsApi = exports.AdminClubAnalyticsApiFactory = exports.AdminClubAnalyticsApiFp = exports.AdminClubAnalyticsApiAxiosParamCreator = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.EventBookingStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = exports.BookingPopulatedStatusEnum = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
26
+ exports.UserApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffEventsApi = exports.StaffEventsApiFactory = exports.StaffEventsApiFp = exports.StaffEventsApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerEventsApi = exports.ManagerEventsApiFactory = exports.ManagerEventsApiFp = exports.ManagerEventsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = void 0;
27
+ exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = void 0;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
@@ -1980,6 +1980,113 @@ exports.GetInvoicesStatusEnum = {
1980
1980
  Canceled: 'canceled',
1981
1981
  Expired: 'expired'
1982
1982
  };
1983
+ /**
1984
+ * ClubsApi - axios parameter creator
1985
+ * @export
1986
+ */
1987
+ const ClubsApiAxiosParamCreator = function (configuration) {
1988
+ return {
1989
+ /**
1990
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
1991
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
1992
+ * @param {string} id ID du club
1993
+ * @param {*} [options] Override http request option.
1994
+ * @throws {RequiredError}
1995
+ */
1996
+ getClubUsersById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1997
+ // verify required parameter 'id' is not null or undefined
1998
+ (0, common_1.assertParamExists)('getClubUsersById', 'id', id);
1999
+ const localVarPath = `/api/clubs/{id}/clubUsers`
2000
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2001
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2002
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2003
+ let baseOptions;
2004
+ if (configuration) {
2005
+ baseOptions = configuration.baseOptions;
2006
+ }
2007
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2008
+ const localVarHeaderParameter = {};
2009
+ const localVarQueryParameter = {};
2010
+ // authentication bearerAuth required
2011
+ // http bearer authentication required
2012
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2013
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2014
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2015
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2016
+ return {
2017
+ url: (0, common_1.toPathString)(localVarUrlObj),
2018
+ options: localVarRequestOptions,
2019
+ };
2020
+ }),
2021
+ };
2022
+ };
2023
+ exports.ClubsApiAxiosParamCreator = ClubsApiAxiosParamCreator;
2024
+ /**
2025
+ * ClubsApi - functional programming interface
2026
+ * @export
2027
+ */
2028
+ const ClubsApiFp = function (configuration) {
2029
+ const localVarAxiosParamCreator = (0, exports.ClubsApiAxiosParamCreator)(configuration);
2030
+ return {
2031
+ /**
2032
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
2033
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
2034
+ * @param {string} id ID du club
2035
+ * @param {*} [options] Override http request option.
2036
+ * @throws {RequiredError}
2037
+ */
2038
+ getClubUsersById(id, options) {
2039
+ return __awaiter(this, void 0, void 0, function* () {
2040
+ var _a, _b, _c;
2041
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubUsersById(id, options);
2042
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2043
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.getClubUsersById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2044
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2045
+ });
2046
+ },
2047
+ };
2048
+ };
2049
+ exports.ClubsApiFp = ClubsApiFp;
2050
+ /**
2051
+ * ClubsApi - factory interface
2052
+ * @export
2053
+ */
2054
+ const ClubsApiFactory = function (configuration, basePath, axios) {
2055
+ const localVarFp = (0, exports.ClubsApiFp)(configuration);
2056
+ return {
2057
+ /**
2058
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
2059
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
2060
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
2061
+ * @param {*} [options] Override http request option.
2062
+ * @throws {RequiredError}
2063
+ */
2064
+ getClubUsersById(requestParameters, options) {
2065
+ return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
2066
+ },
2067
+ };
2068
+ };
2069
+ exports.ClubsApiFactory = ClubsApiFactory;
2070
+ /**
2071
+ * ClubsApi - object-oriented interface
2072
+ * @export
2073
+ * @class ClubsApi
2074
+ * @extends {BaseAPI}
2075
+ */
2076
+ class ClubsApi extends base_1.BaseAPI {
2077
+ /**
2078
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
2079
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
2080
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
2081
+ * @param {*} [options] Override http request option.
2082
+ * @throws {RequiredError}
2083
+ * @memberof ClubsApi
2084
+ */
2085
+ getClubUsersById(requestParameters, options) {
2086
+ return (0, exports.ClubsApiFp)(this.configuration).getClubUsersById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2087
+ }
2088
+ }
2089
+ exports.ClubsApi = ClubsApi;
1983
2090
  /**
1984
2091
  * EventsApi - axios parameter creator
1985
2092
  * @export
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.26
5
+ * The version of the OpenAPI document: 1.0.27
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Pandook API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.26
8
+ * The version of the OpenAPI document: 1.0.27
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.26
5
+ * The version of the OpenAPI document: 1.0.27
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Pandook API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.26
8
+ * The version of the OpenAPI document: 1.0.27
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.26
5
+ * The version of the OpenAPI document: 1.0.27
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Pandook API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.26
8
+ * The version of the OpenAPI document: 1.0.27
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.26
5
+ * The version of the OpenAPI document: 1.0.27
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2374,6 +2374,19 @@ export interface GetClubSettingsRequest {
2374
2374
  */
2375
2375
  'clubId': string;
2376
2376
  }
2377
+ /**
2378
+ *
2379
+ * @export
2380
+ * @interface GetClubUsersById200Response
2381
+ */
2382
+ export interface GetClubUsersById200Response {
2383
+ /**
2384
+ *
2385
+ * @type {Array<PublicClubUser>}
2386
+ * @memberof GetClubUsersById200Response
2387
+ */
2388
+ 'users'?: Array<PublicClubUser>;
2389
+ }
2377
2390
  /**
2378
2391
  *
2379
2392
  * @export
@@ -3150,6 +3163,80 @@ export interface ProfileVisibilityResponse {
3150
3163
  */
3151
3164
  'isProfileVisible'?: boolean;
3152
3165
  }
3166
+ /**
3167
+ *
3168
+ * @export
3169
+ * @interface PublicClubUser
3170
+ */
3171
+ export interface PublicClubUser {
3172
+ /**
3173
+ *
3174
+ * @type {string}
3175
+ * @memberof PublicClubUser
3176
+ */
3177
+ '_id'?: string;
3178
+ /**
3179
+ *
3180
+ * @type {string}
3181
+ * @memberof PublicClubUser
3182
+ */
3183
+ 'firstName'?: string;
3184
+ /**
3185
+ *
3186
+ * @type {string}
3187
+ * @memberof PublicClubUser
3188
+ */
3189
+ 'lastName'?: string;
3190
+ /**
3191
+ *
3192
+ * @type {string}
3193
+ * @memberof PublicClubUser
3194
+ */
3195
+ 'email'?: string;
3196
+ /**
3197
+ *
3198
+ * @type {Array<PublicClubUserLevelBySportsInner>}
3199
+ * @memberof PublicClubUser
3200
+ */
3201
+ 'levelBySports'?: Array<PublicClubUserLevelBySportsInner>;
3202
+ /**
3203
+ *
3204
+ * @type {string}
3205
+ * @memberof PublicClubUser
3206
+ */
3207
+ 'profilePicture'?: string | null;
3208
+ /**
3209
+ *
3210
+ * @type {string}
3211
+ * @memberof PublicClubUser
3212
+ */
3213
+ 'description'?: string | null;
3214
+ /**
3215
+ *
3216
+ * @type {string}
3217
+ * @memberof PublicClubUser
3218
+ */
3219
+ 'city'?: string | null;
3220
+ }
3221
+ /**
3222
+ *
3223
+ * @export
3224
+ * @interface PublicClubUserLevelBySportsInner
3225
+ */
3226
+ export interface PublicClubUserLevelBySportsInner {
3227
+ /**
3228
+ *
3229
+ * @type {string}
3230
+ * @memberof PublicClubUserLevelBySportsInner
3231
+ */
3232
+ 'sport'?: string;
3233
+ /**
3234
+ *
3235
+ * @type {string}
3236
+ * @memberof PublicClubUserLevelBySportsInner
3237
+ */
3238
+ 'level'?: string;
3239
+ }
3153
3240
  /**
3154
3241
  *
3155
3242
  * @export
@@ -5789,6 +5876,78 @@ export declare const GetInvoicesStatusEnum: {
5789
5876
  readonly Expired: "expired";
5790
5877
  };
5791
5878
  export type GetInvoicesStatusEnum = typeof GetInvoicesStatusEnum[keyof typeof GetInvoicesStatusEnum];
5879
+ /**
5880
+ * ClubsApi - axios parameter creator
5881
+ * @export
5882
+ */
5883
+ export declare const ClubsApiAxiosParamCreator: (configuration?: Configuration) => {
5884
+ /**
5885
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
5886
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
5887
+ * @param {string} id ID du club
5888
+ * @param {*} [options] Override http request option.
5889
+ * @throws {RequiredError}
5890
+ */
5891
+ getClubUsersById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5892
+ };
5893
+ /**
5894
+ * ClubsApi - functional programming interface
5895
+ * @export
5896
+ */
5897
+ export declare const ClubsApiFp: (configuration?: Configuration) => {
5898
+ /**
5899
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
5900
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
5901
+ * @param {string} id ID du club
5902
+ * @param {*} [options] Override http request option.
5903
+ * @throws {RequiredError}
5904
+ */
5905
+ getClubUsersById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubUsersById200Response>>;
5906
+ };
5907
+ /**
5908
+ * ClubsApi - factory interface
5909
+ * @export
5910
+ */
5911
+ export declare const ClubsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5912
+ /**
5913
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
5914
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
5915
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
5916
+ * @param {*} [options] Override http request option.
5917
+ * @throws {RequiredError}
5918
+ */
5919
+ getClubUsersById(requestParameters: ClubsApiGetClubUsersByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetClubUsersById200Response>;
5920
+ };
5921
+ /**
5922
+ * Request parameters for getClubUsersById operation in ClubsApi.
5923
+ * @export
5924
+ * @interface ClubsApiGetClubUsersByIdRequest
5925
+ */
5926
+ export interface ClubsApiGetClubUsersByIdRequest {
5927
+ /**
5928
+ * ID du club
5929
+ * @type {string}
5930
+ * @memberof ClubsApiGetClubUsersById
5931
+ */
5932
+ readonly id: string;
5933
+ }
5934
+ /**
5935
+ * ClubsApi - object-oriented interface
5936
+ * @export
5937
+ * @class ClubsApi
5938
+ * @extends {BaseAPI}
5939
+ */
5940
+ export declare class ClubsApi extends BaseAPI {
5941
+ /**
5942
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
5943
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
5944
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
5945
+ * @param {*} [options] Override http request option.
5946
+ * @throws {RequiredError}
5947
+ * @memberof ClubsApi
5948
+ */
5949
+ getClubUsersById(requestParameters: ClubsApiGetClubUsersByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetClubUsersById200Response, any>>;
5950
+ }
5792
5951
  /**
5793
5952
  * EventsApi - axios parameter creator
5794
5953
  * @export
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.26
7
+ * The version of the OpenAPI document: 1.0.27
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1955,6 +1955,109 @@ export const GetInvoicesStatusEnum = {
1955
1955
  Canceled: 'canceled',
1956
1956
  Expired: 'expired'
1957
1957
  };
1958
+ /**
1959
+ * ClubsApi - axios parameter creator
1960
+ * @export
1961
+ */
1962
+ export const ClubsApiAxiosParamCreator = function (configuration) {
1963
+ return {
1964
+ /**
1965
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
1966
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
1967
+ * @param {string} id ID du club
1968
+ * @param {*} [options] Override http request option.
1969
+ * @throws {RequiredError}
1970
+ */
1971
+ getClubUsersById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1972
+ // verify required parameter 'id' is not null or undefined
1973
+ assertParamExists('getClubUsersById', 'id', id);
1974
+ const localVarPath = `/api/clubs/{id}/clubUsers`
1975
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1976
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1977
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1978
+ let baseOptions;
1979
+ if (configuration) {
1980
+ baseOptions = configuration.baseOptions;
1981
+ }
1982
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1983
+ const localVarHeaderParameter = {};
1984
+ const localVarQueryParameter = {};
1985
+ // authentication bearerAuth required
1986
+ // http bearer authentication required
1987
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1988
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1989
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1990
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1991
+ return {
1992
+ url: toPathString(localVarUrlObj),
1993
+ options: localVarRequestOptions,
1994
+ };
1995
+ }),
1996
+ };
1997
+ };
1998
+ /**
1999
+ * ClubsApi - functional programming interface
2000
+ * @export
2001
+ */
2002
+ export const ClubsApiFp = function (configuration) {
2003
+ const localVarAxiosParamCreator = ClubsApiAxiosParamCreator(configuration);
2004
+ return {
2005
+ /**
2006
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
2007
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
2008
+ * @param {string} id ID du club
2009
+ * @param {*} [options] Override http request option.
2010
+ * @throws {RequiredError}
2011
+ */
2012
+ getClubUsersById(id, options) {
2013
+ return __awaiter(this, void 0, void 0, function* () {
2014
+ var _a, _b, _c;
2015
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubUsersById(id, options);
2016
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2017
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsApi.getClubUsersById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2018
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2019
+ });
2020
+ },
2021
+ };
2022
+ };
2023
+ /**
2024
+ * ClubsApi - factory interface
2025
+ * @export
2026
+ */
2027
+ export const ClubsApiFactory = function (configuration, basePath, axios) {
2028
+ const localVarFp = ClubsApiFp(configuration);
2029
+ return {
2030
+ /**
2031
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
2032
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
2033
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
2034
+ * @param {*} [options] Override http request option.
2035
+ * @throws {RequiredError}
2036
+ */
2037
+ getClubUsersById(requestParameters, options) {
2038
+ return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
2039
+ },
2040
+ };
2041
+ };
2042
+ /**
2043
+ * ClubsApi - object-oriented interface
2044
+ * @export
2045
+ * @class ClubsApi
2046
+ * @extends {BaseAPI}
2047
+ */
2048
+ export class ClubsApi extends BaseAPI {
2049
+ /**
2050
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
2051
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
2052
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
2053
+ * @param {*} [options] Override http request option.
2054
+ * @throws {RequiredError}
2055
+ * @memberof ClubsApi
2056
+ */
2057
+ getClubUsersById(requestParameters, options) {
2058
+ return ClubsApiFp(this.configuration).getClubUsersById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2059
+ }
2060
+ }
1958
2061
  /**
1959
2062
  * EventsApi - axios parameter creator
1960
2063
  * @export
@@ -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.26
5
+ * The version of the OpenAPI document: 1.0.27
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.26
7
+ * The version of the OpenAPI document: 1.0.27
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.26
5
+ * The version of the OpenAPI document: 1.0.27
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.26
7
+ * The version of the OpenAPI document: 1.0.27
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.26
5
+ * The version of the OpenAPI document: 1.0.27
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.26
7
+ * The version of the OpenAPI document: 1.0.27
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.26
5
+ * The version of the OpenAPI document: 1.0.27
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.26
7
+ * The version of the OpenAPI document: 1.0.27
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.26
5
+ * The version of the OpenAPI document: 1.0.27
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.26
8
+ * The version of the OpenAPI document: 1.0.27
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,61 @@
1
+ # ClubsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getClubUsersById**](#getclubusersbyid) | **GET** /api/clubs/{id}/clubUsers | Récupérer la liste publique des utilisateurs d\&#39;un club|
8
+
9
+ # **getClubUsersById**
10
+ > GetClubUsersById200Response getClubUsersById()
11
+
12
+ Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ ClubsApi,
19
+ Configuration
20
+ } from '@tennac-booking/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new ClubsApi(configuration);
24
+
25
+ let id: string; //ID du club (default to undefined)
26
+
27
+ const { status, data } = await apiInstance.getClubUsersById(
28
+ id
29
+ );
30
+ ```
31
+
32
+ ### Parameters
33
+
34
+ |Name | Type | Description | Notes|
35
+ |------------- | ------------- | ------------- | -------------|
36
+ | **id** | [**string**] | ID du club | defaults to undefined|
37
+
38
+
39
+ ### Return type
40
+
41
+ **GetClubUsersById200Response**
42
+
43
+ ### Authorization
44
+
45
+ [bearerAuth](../README.md#bearerAuth)
46
+
47
+ ### HTTP request headers
48
+
49
+ - **Content-Type**: Not defined
50
+ - **Accept**: application/json
51
+
52
+
53
+ ### HTTP response details
54
+ | Status code | Description | Response headers |
55
+ |-------------|-------------|------------------|
56
+ |**200** | Liste des utilisateurs publics du club | - |
57
+ |**400** | Requête invalide | - |
58
+ |**500** | Erreur serveur interne | - |
59
+
60
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
61
+
@@ -0,0 +1,20 @@
1
+ # GetClubUsersById200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **users** | [**Array&lt;PublicClubUser&gt;**](PublicClubUser.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { GetClubUsersById200Response } from '@tennac-booking/sdk';
14
+
15
+ const instance: GetClubUsersById200Response = {
16
+ users,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,34 @@
1
+ # PublicClubUser
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **_id** | **string** | | [optional] [default to undefined]
9
+ **firstName** | **string** | | [optional] [default to undefined]
10
+ **lastName** | **string** | | [optional] [default to undefined]
11
+ **email** | **string** | | [optional] [default to undefined]
12
+ **levelBySports** | [**Array&lt;PublicClubUserLevelBySportsInner&gt;**](PublicClubUserLevelBySportsInner.md) | | [optional] [default to undefined]
13
+ **profilePicture** | **string** | | [optional] [default to undefined]
14
+ **description** | **string** | | [optional] [default to undefined]
15
+ **city** | **string** | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { PublicClubUser } from '@tennac-booking/sdk';
21
+
22
+ const instance: PublicClubUser = {
23
+ _id,
24
+ firstName,
25
+ lastName,
26
+ email,
27
+ levelBySports,
28
+ profilePicture,
29
+ description,
30
+ city,
31
+ };
32
+ ```
33
+
34
+ [[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,22 @@
1
+ # PublicClubUserLevelBySportsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sport** | **string** | | [optional] [default to undefined]
9
+ **level** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PublicClubUserLevelBySportsInner } from '@tennac-booking/sdk';
15
+
16
+ const instance: PublicClubUserLevelBySportsInner = {
17
+ sport,
18
+ level,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.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.26
7
+ * The version of the OpenAPI document: 1.0.27
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {