@tennac-booking/sdk 1.0.103 → 1.0.104

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.
@@ -34,6 +34,7 @@ docs/BookingsApi.md
34
34
  docs/BookingsManagerApi.md
35
35
  docs/BookingsStaffApi.md
36
36
  docs/BookingsUserApi.md
37
+ docs/BookingsWithTimeBoundsResponse.md
37
38
  docs/CancelBookingResponse.md
38
39
  docs/CaptureResult.md
39
40
  docs/ChangePasswordRequestBody.md
@@ -246,9 +247,11 @@ docs/SubscriptionsStaffApi.md
246
247
  docs/SubscriptionsUserApi.md
247
248
  docs/SurfaceType.md
248
249
  docs/Team.md
250
+ docs/TimeBounds.md
249
251
  docs/UpdateActuality200Response.md
250
252
  docs/UpdateClubGeneralSettingsRequest.md
251
253
  docs/UpdateClubHoursSettingsRequest.md
254
+ docs/UpdateClubMemberRequest.md
252
255
  docs/UpdateClubPresentationSettingsRequest.md
253
256
  docs/UpdateClubRequest.md
254
257
  docs/UpdateClubRequestLocation.md
package/README.md CHANGED
@@ -134,6 +134,7 @@ Class | Method | HTTP request | Description
134
134
  *ClubsManagerApi* | [**updateActuality**](docs/ClubsManagerApi.md#updateactuality) | **PUT** /api/clubs/actualities/{actualityId} |
135
135
  *ClubsManagerApi* | [**updateClub**](docs/ClubsManagerApi.md#updateclub) | **PUT** /api/clubs |
136
136
  *ClubsManagerApi* | [**updateClubInfos**](docs/ClubsManagerApi.md#updateclubinfos) | **PUT** /api/clubs/infos |
137
+ *ClubsManagerApi* | [**updateClubMember**](docs/ClubsManagerApi.md#updateclubmember) | **PATCH** /api/clubs/members/{userId} |
137
138
  *ClubsManagerApi* | [**updateClubPresentationSettings**](docs/ClubsManagerApi.md#updateclubpresentationsettings) | **PUT** /api/clubs/settings/presentation |
138
139
  *ClubsManagerApi* | [**updateCourt**](docs/ClubsManagerApi.md#updatecourt) | **PUT** /api/clubs/courts/{courtId} |
139
140
  *ClubsManagerApi* | [**updateSubscriptionPlanForClub**](docs/ClubsManagerApi.md#updatesubscriptionplanforclub) | **PUT** /api/clubs/subscription-plans/{priceId} |
@@ -234,6 +235,7 @@ Class | Method | HTTP request | Description
234
235
  - [BookingStatus](docs/BookingStatus.md)
235
236
  - [BookingSummary](docs/BookingSummary.md)
236
237
  - [BookingSummaryClubAddress](docs/BookingSummaryClubAddress.md)
238
+ - [BookingsWithTimeBoundsResponse](docs/BookingsWithTimeBoundsResponse.md)
237
239
  - [CancelBookingResponse](docs/CancelBookingResponse.md)
238
240
  - [CaptureResult](docs/CaptureResult.md)
239
241
  - [ChangePasswordRequestBody](docs/ChangePasswordRequestBody.md)
@@ -425,9 +427,11 @@ Class | Method | HTTP request | Description
425
427
  - [SubscriptionPlanResponse](docs/SubscriptionPlanResponse.md)
426
428
  - [SurfaceType](docs/SurfaceType.md)
427
429
  - [Team](docs/Team.md)
430
+ - [TimeBounds](docs/TimeBounds.md)
428
431
  - [UpdateActuality200Response](docs/UpdateActuality200Response.md)
429
432
  - [UpdateClubGeneralSettingsRequest](docs/UpdateClubGeneralSettingsRequest.md)
430
433
  - [UpdateClubHoursSettingsRequest](docs/UpdateClubHoursSettingsRequest.md)
434
+ - [UpdateClubMemberRequest](docs/UpdateClubMemberRequest.md)
431
435
  - [UpdateClubPresentationSettingsRequest](docs/UpdateClubPresentationSettingsRequest.md)
432
436
  - [UpdateClubRequest](docs/UpdateClubRequest.md)
433
437
  - [UpdateClubRequestLocation](docs/UpdateClubRequestLocation.md)
package/api.ts CHANGED
@@ -1142,6 +1142,25 @@ export interface BookingSummary {
1142
1142
  */
1143
1143
  export interface BookingSummaryClubAddress {
1144
1144
  }
1145
+ /**
1146
+ *
1147
+ * @export
1148
+ * @interface BookingsWithTimeBoundsResponse
1149
+ */
1150
+ export interface BookingsWithTimeBoundsResponse {
1151
+ /**
1152
+ *
1153
+ * @type {Array<BookingPopulated>}
1154
+ * @memberof BookingsWithTimeBoundsResponse
1155
+ */
1156
+ 'bookings': Array<BookingPopulated>;
1157
+ /**
1158
+ *
1159
+ * @type {TimeBounds}
1160
+ * @memberof BookingsWithTimeBoundsResponse
1161
+ */
1162
+ 'timeBounds': TimeBounds;
1163
+ }
1145
1164
  /**
1146
1165
  *
1147
1166
  * @export
@@ -8359,6 +8378,25 @@ export interface Team {
8359
8378
  */
8360
8379
  'players': Array<string>;
8361
8380
  }
8381
+ /**
8382
+ *
8383
+ * @export
8384
+ * @interface TimeBounds
8385
+ */
8386
+ export interface TimeBounds {
8387
+ /**
8388
+ * Heure de début au format HH:mm
8389
+ * @type {string}
8390
+ * @memberof TimeBounds
8391
+ */
8392
+ 'start': string;
8393
+ /**
8394
+ * Heure de fin au format HH:mm
8395
+ * @type {string}
8396
+ * @memberof TimeBounds
8397
+ */
8398
+ 'end': string;
8399
+ }
8362
8400
  /**
8363
8401
  *
8364
8402
  * @export
@@ -8446,6 +8484,34 @@ export interface UpdateClubHoursSettingsRequest {
8446
8484
  */
8447
8485
  'pricingPeriods'?: Array<ClubPricingPeriodResponse>;
8448
8486
  }
8487
+ /**
8488
+ *
8489
+ * @export
8490
+ * @interface UpdateClubMemberRequest
8491
+ */
8492
+ export interface UpdateClubMemberRequest {
8493
+ /**
8494
+ * Rôle du membre dans le club
8495
+ * @type {string}
8496
+ * @memberof UpdateClubMemberRequest
8497
+ */
8498
+ 'role'?: UpdateClubMemberRequestRoleEnum;
8499
+ /**
8500
+ * Droits du membre dans le club
8501
+ * @type {Array<string>}
8502
+ * @memberof UpdateClubMemberRequest
8503
+ */
8504
+ 'rights'?: Array<string>;
8505
+ }
8506
+
8507
+ export const UpdateClubMemberRequestRoleEnum = {
8508
+ Admin: 'admin',
8509
+ Manager: 'manager',
8510
+ Staff: 'staff'
8511
+ } as const;
8512
+
8513
+ export type UpdateClubMemberRequestRoleEnum = typeof UpdateClubMemberRequestRoleEnum[keyof typeof UpdateClubMemberRequestRoleEnum];
8514
+
8449
8515
  /**
8450
8516
  *
8451
8517
  * @export
@@ -10563,7 +10629,7 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
10563
10629
  * @param {*} [options] Override http request option.
10564
10630
  * @throws {RequiredError}
10565
10631
  */
10566
- async getDailyBookings(date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BookingPopulated>>> {
10632
+ async getDailyBookings(date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsWithTimeBoundsResponse>> {
10567
10633
  const localVarAxiosArgs = await localVarAxiosParamCreator.getDailyBookings(date, options);
10568
10634
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10569
10635
  const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.getDailyBookings']?.[localVarOperationServerIndex]?.url;
@@ -10575,7 +10641,7 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
10575
10641
  * @param {*} [options] Override http request option.
10576
10642
  * @throws {RequiredError}
10577
10643
  */
10578
- async getWeeklyBookings(weekId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BookingPopulated>>> {
10644
+ async getWeeklyBookings(weekId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsWithTimeBoundsResponse>> {
10579
10645
  const localVarAxiosArgs = await localVarAxiosParamCreator.getWeeklyBookings(weekId, options);
10580
10646
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10581
10647
  const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.getWeeklyBookings']?.[localVarOperationServerIndex]?.url;
@@ -10633,7 +10699,7 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
10633
10699
  * @param {*} [options] Override http request option.
10634
10700
  * @throws {RequiredError}
10635
10701
  */
10636
- getDailyBookings(requestParameters: BookingsStaffApiGetDailyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<BookingPopulated>> {
10702
+ getDailyBookings(requestParameters: BookingsStaffApiGetDailyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsWithTimeBoundsResponse> {
10637
10703
  return localVarFp.getDailyBookings(requestParameters.date, options).then((request) => request(axios, basePath));
10638
10704
  },
10639
10705
  /**
@@ -10642,7 +10708,7 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
10642
10708
  * @param {*} [options] Override http request option.
10643
10709
  * @throws {RequiredError}
10644
10710
  */
10645
- getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<BookingPopulated>> {
10711
+ getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsWithTimeBoundsResponse> {
10646
10712
  return localVarFp.getWeeklyBookings(requestParameters.weekId, options).then((request) => request(axios, basePath));
10647
10713
  },
10648
10714
  };
@@ -16017,6 +16083,49 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration?: Config
16017
16083
  options: localVarRequestOptions,
16018
16084
  };
16019
16085
  },
16086
+ /**
16087
+ * Met à jour un membre d\'un club
16088
+ * @param {string} userId
16089
+ * @param {UpdateClubMemberRequest} updateClubMemberRequest
16090
+ * @param {*} [options] Override http request option.
16091
+ * @throws {RequiredError}
16092
+ */
16093
+ updateClubMember: async (userId: string, updateClubMemberRequest: UpdateClubMemberRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16094
+ // verify required parameter 'userId' is not null or undefined
16095
+ assertParamExists('updateClubMember', 'userId', userId)
16096
+ // verify required parameter 'updateClubMemberRequest' is not null or undefined
16097
+ assertParamExists('updateClubMember', 'updateClubMemberRequest', updateClubMemberRequest)
16098
+ const localVarPath = `/api/clubs/members/{userId}`
16099
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
16100
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16101
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16102
+ let baseOptions;
16103
+ if (configuration) {
16104
+ baseOptions = configuration.baseOptions;
16105
+ }
16106
+
16107
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
16108
+ const localVarHeaderParameter = {} as any;
16109
+ const localVarQueryParameter = {} as any;
16110
+
16111
+ // authentication bearerAuth required
16112
+ // http bearer authentication required
16113
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16114
+
16115
+
16116
+
16117
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16118
+
16119
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16120
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16121
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16122
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubMemberRequest, localVarRequestOptions, configuration)
16123
+
16124
+ return {
16125
+ url: toPathString(localVarUrlObj),
16126
+ options: localVarRequestOptions,
16127
+ };
16128
+ },
16020
16129
  /**
16021
16130
  *
16022
16131
  * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
@@ -16345,6 +16454,19 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
16345
16454
  const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.updateClubInfos']?.[localVarOperationServerIndex]?.url;
16346
16455
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16347
16456
  },
16457
+ /**
16458
+ * Met à jour un membre d\'un club
16459
+ * @param {string} userId
16460
+ * @param {UpdateClubMemberRequest} updateClubMemberRequest
16461
+ * @param {*} [options] Override http request option.
16462
+ * @throws {RequiredError}
16463
+ */
16464
+ async updateClubMember(userId: string, updateClubMemberRequest: UpdateClubMemberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddClubMember201Response>> {
16465
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateClubMember(userId, updateClubMemberRequest, options);
16466
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16467
+ const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.updateClubMember']?.[localVarOperationServerIndex]?.url;
16468
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16469
+ },
16348
16470
  /**
16349
16471
  *
16350
16472
  * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
@@ -16536,6 +16658,15 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
16536
16658
  updateClubInfos(requestParameters: ClubsManagerApiUpdateClubInfosRequest, options?: RawAxiosRequestConfig): AxiosPromise<any> {
16537
16659
  return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
16538
16660
  },
16661
+ /**
16662
+ * Met à jour un membre d\'un club
16663
+ * @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
16664
+ * @param {*} [options] Override http request option.
16665
+ * @throws {RequiredError}
16666
+ */
16667
+ updateClubMember(requestParameters: ClubsManagerApiUpdateClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddClubMember201Response> {
16668
+ return localVarFp.updateClubMember(requestParameters.userId, requestParameters.updateClubMemberRequest, options).then((request) => request(axios, basePath));
16669
+ },
16539
16670
  /**
16540
16671
  *
16541
16672
  * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
@@ -16790,6 +16921,27 @@ export interface ClubsManagerApiUpdateClubInfosRequest {
16790
16921
  readonly body: any
16791
16922
  }
16792
16923
 
16924
+ /**
16925
+ * Request parameters for updateClubMember operation in ClubsManagerApi.
16926
+ * @export
16927
+ * @interface ClubsManagerApiUpdateClubMemberRequest
16928
+ */
16929
+ export interface ClubsManagerApiUpdateClubMemberRequest {
16930
+ /**
16931
+ *
16932
+ * @type {string}
16933
+ * @memberof ClubsManagerApiUpdateClubMember
16934
+ */
16935
+ readonly userId: string
16936
+
16937
+ /**
16938
+ *
16939
+ * @type {UpdateClubMemberRequest}
16940
+ * @memberof ClubsManagerApiUpdateClubMember
16941
+ */
16942
+ readonly updateClubMemberRequest: UpdateClubMemberRequest
16943
+ }
16944
+
16793
16945
  /**
16794
16946
  * Request parameters for updateClubPresentationSettings operation in ClubsManagerApi.
16795
16947
  * @export
@@ -17028,6 +17180,17 @@ export class ClubsManagerApi extends BaseAPI {
17028
17180
  return ClubsManagerApiFp(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
17029
17181
  }
17030
17182
 
17183
+ /**
17184
+ * Met à jour un membre d\'un club
17185
+ * @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
17186
+ * @param {*} [options] Override http request option.
17187
+ * @throws {RequiredError}
17188
+ * @memberof ClubsManagerApi
17189
+ */
17190
+ public updateClubMember(requestParameters: ClubsManagerApiUpdateClubMemberRequest, options?: RawAxiosRequestConfig) {
17191
+ return ClubsManagerApiFp(this.configuration).updateClubMember(requestParameters.userId, requestParameters.updateClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
17192
+ }
17193
+
17031
17194
  /**
17032
17195
  *
17033
17196
  * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
package/dist/api.d.ts CHANGED
@@ -1117,6 +1117,25 @@ export interface BookingSummary {
1117
1117
  */
1118
1118
  export interface BookingSummaryClubAddress {
1119
1119
  }
1120
+ /**
1121
+ *
1122
+ * @export
1123
+ * @interface BookingsWithTimeBoundsResponse
1124
+ */
1125
+ export interface BookingsWithTimeBoundsResponse {
1126
+ /**
1127
+ *
1128
+ * @type {Array<BookingPopulated>}
1129
+ * @memberof BookingsWithTimeBoundsResponse
1130
+ */
1131
+ 'bookings': Array<BookingPopulated>;
1132
+ /**
1133
+ *
1134
+ * @type {TimeBounds}
1135
+ * @memberof BookingsWithTimeBoundsResponse
1136
+ */
1137
+ 'timeBounds': TimeBounds;
1138
+ }
1120
1139
  /**
1121
1140
  *
1122
1141
  * @export
@@ -8204,6 +8223,25 @@ export interface Team {
8204
8223
  */
8205
8224
  'players': Array<string>;
8206
8225
  }
8226
+ /**
8227
+ *
8228
+ * @export
8229
+ * @interface TimeBounds
8230
+ */
8231
+ export interface TimeBounds {
8232
+ /**
8233
+ * Heure de début au format HH:mm
8234
+ * @type {string}
8235
+ * @memberof TimeBounds
8236
+ */
8237
+ 'start': string;
8238
+ /**
8239
+ * Heure de fin au format HH:mm
8240
+ * @type {string}
8241
+ * @memberof TimeBounds
8242
+ */
8243
+ 'end': string;
8244
+ }
8207
8245
  /**
8208
8246
  *
8209
8247
  * @export
@@ -8291,6 +8329,31 @@ export interface UpdateClubHoursSettingsRequest {
8291
8329
  */
8292
8330
  'pricingPeriods'?: Array<ClubPricingPeriodResponse>;
8293
8331
  }
8332
+ /**
8333
+ *
8334
+ * @export
8335
+ * @interface UpdateClubMemberRequest
8336
+ */
8337
+ export interface UpdateClubMemberRequest {
8338
+ /**
8339
+ * Rôle du membre dans le club
8340
+ * @type {string}
8341
+ * @memberof UpdateClubMemberRequest
8342
+ */
8343
+ 'role'?: UpdateClubMemberRequestRoleEnum;
8344
+ /**
8345
+ * Droits du membre dans le club
8346
+ * @type {Array<string>}
8347
+ * @memberof UpdateClubMemberRequest
8348
+ */
8349
+ 'rights'?: Array<string>;
8350
+ }
8351
+ export declare const UpdateClubMemberRequestRoleEnum: {
8352
+ readonly Admin: "admin";
8353
+ readonly Manager: "manager";
8354
+ readonly Staff: "staff";
8355
+ };
8356
+ export type UpdateClubMemberRequestRoleEnum = typeof UpdateClubMemberRequestRoleEnum[keyof typeof UpdateClubMemberRequestRoleEnum];
8294
8357
  /**
8295
8358
  *
8296
8359
  * @export
@@ -9905,14 +9968,14 @@ export declare const BookingsStaffApiFp: (configuration?: Configuration) => {
9905
9968
  * @param {*} [options] Override http request option.
9906
9969
  * @throws {RequiredError}
9907
9970
  */
9908
- getDailyBookings(date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BookingPopulated>>>;
9971
+ getDailyBookings(date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsWithTimeBoundsResponse>>;
9909
9972
  /**
9910
9973
  * Obtenir les réservations hebdomadaires
9911
9974
  * @param {string} weekId
9912
9975
  * @param {*} [options] Override http request option.
9913
9976
  * @throws {RequiredError}
9914
9977
  */
9915
- getWeeklyBookings(weekId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BookingPopulated>>>;
9978
+ getWeeklyBookings(weekId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsWithTimeBoundsResponse>>;
9916
9979
  };
9917
9980
  /**
9918
9981
  * BookingsStaffApi - factory interface
@@ -9953,14 +10016,14 @@ export declare const BookingsStaffApiFactory: (configuration?: Configuration, ba
9953
10016
  * @param {*} [options] Override http request option.
9954
10017
  * @throws {RequiredError}
9955
10018
  */
9956
- getDailyBookings(requestParameters: BookingsStaffApiGetDailyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<BookingPopulated>>;
10019
+ getDailyBookings(requestParameters: BookingsStaffApiGetDailyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsWithTimeBoundsResponse>;
9957
10020
  /**
9958
10021
  * Obtenir les réservations hebdomadaires
9959
10022
  * @param {BookingsStaffApiGetWeeklyBookingsRequest} requestParameters Request parameters.
9960
10023
  * @param {*} [options] Override http request option.
9961
10024
  * @throws {RequiredError}
9962
10025
  */
9963
- getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<BookingPopulated>>;
10026
+ getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsWithTimeBoundsResponse>;
9964
10027
  };
9965
10028
  /**
9966
10029
  * Request parameters for checkInPlayers operation in BookingsStaffApi.
@@ -10092,7 +10155,7 @@ export declare class BookingsStaffApi extends BaseAPI {
10092
10155
  * @throws {RequiredError}
10093
10156
  * @memberof BookingsStaffApi
10094
10157
  */
10095
- getDailyBookings(requestParameters: BookingsStaffApiGetDailyBookingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingPopulated[], any, {}>>;
10158
+ getDailyBookings(requestParameters: BookingsStaffApiGetDailyBookingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingsWithTimeBoundsResponse, any, {}>>;
10096
10159
  /**
10097
10160
  * Obtenir les réservations hebdomadaires
10098
10161
  * @param {BookingsStaffApiGetWeeklyBookingsRequest} requestParameters Request parameters.
@@ -10100,7 +10163,7 @@ export declare class BookingsStaffApi extends BaseAPI {
10100
10163
  * @throws {RequiredError}
10101
10164
  * @memberof BookingsStaffApi
10102
10165
  */
10103
- getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingPopulated[], any, {}>>;
10166
+ getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingsWithTimeBoundsResponse, any, {}>>;
10104
10167
  }
10105
10168
  /**
10106
10169
  * BookingsUserApi - axios parameter creator
@@ -12462,6 +12525,14 @@ export declare const ClubsManagerApiAxiosParamCreator: (configuration?: Configur
12462
12525
  * @throws {RequiredError}
12463
12526
  */
12464
12527
  updateClubInfos: (body: any, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12528
+ /**
12529
+ * Met à jour un membre d\'un club
12530
+ * @param {string} userId
12531
+ * @param {UpdateClubMemberRequest} updateClubMemberRequest
12532
+ * @param {*} [options] Override http request option.
12533
+ * @throws {RequiredError}
12534
+ */
12535
+ updateClubMember: (userId: string, updateClubMemberRequest: UpdateClubMemberRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12465
12536
  /**
12466
12537
  *
12467
12538
  * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
@@ -12604,6 +12675,14 @@ export declare const ClubsManagerApiFp: (configuration?: Configuration) => {
12604
12675
  * @throws {RequiredError}
12605
12676
  */
12606
12677
  updateClubInfos(body: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
12678
+ /**
12679
+ * Met à jour un membre d\'un club
12680
+ * @param {string} userId
12681
+ * @param {UpdateClubMemberRequest} updateClubMemberRequest
12682
+ * @param {*} [options] Override http request option.
12683
+ * @throws {RequiredError}
12684
+ */
12685
+ updateClubMember(userId: string, updateClubMemberRequest: UpdateClubMemberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddClubMember201Response>>;
12607
12686
  /**
12608
12687
  *
12609
12688
  * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
@@ -12744,6 +12823,13 @@ export declare const ClubsManagerApiFactory: (configuration?: Configuration, bas
12744
12823
  * @throws {RequiredError}
12745
12824
  */
12746
12825
  updateClubInfos(requestParameters: ClubsManagerApiUpdateClubInfosRequest, options?: RawAxiosRequestConfig): AxiosPromise<any>;
12826
+ /**
12827
+ * Met à jour un membre d\'un club
12828
+ * @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
12829
+ * @param {*} [options] Override http request option.
12830
+ * @throws {RequiredError}
12831
+ */
12832
+ updateClubMember(requestParameters: ClubsManagerApiUpdateClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddClubMember201Response>;
12747
12833
  /**
12748
12834
  *
12749
12835
  * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
@@ -12973,6 +13059,25 @@ export interface ClubsManagerApiUpdateClubInfosRequest {
12973
13059
  */
12974
13060
  readonly body: any;
12975
13061
  }
13062
+ /**
13063
+ * Request parameters for updateClubMember operation in ClubsManagerApi.
13064
+ * @export
13065
+ * @interface ClubsManagerApiUpdateClubMemberRequest
13066
+ */
13067
+ export interface ClubsManagerApiUpdateClubMemberRequest {
13068
+ /**
13069
+ *
13070
+ * @type {string}
13071
+ * @memberof ClubsManagerApiUpdateClubMember
13072
+ */
13073
+ readonly userId: string;
13074
+ /**
13075
+ *
13076
+ * @type {UpdateClubMemberRequest}
13077
+ * @memberof ClubsManagerApiUpdateClubMember
13078
+ */
13079
+ readonly updateClubMemberRequest: UpdateClubMemberRequest;
13080
+ }
12976
13081
  /**
12977
13082
  * Request parameters for updateClubPresentationSettings operation in ClubsManagerApi.
12978
13083
  * @export
@@ -13158,6 +13263,14 @@ export declare class ClubsManagerApi extends BaseAPI {
13158
13263
  * @memberof ClubsManagerApi
13159
13264
  */
13160
13265
  updateClubInfos(requestParameters: ClubsManagerApiUpdateClubInfosRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
13266
+ /**
13267
+ * Met à jour un membre d\'un club
13268
+ * @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
13269
+ * @param {*} [options] Override http request option.
13270
+ * @throws {RequiredError}
13271
+ * @memberof ClubsManagerApi
13272
+ */
13273
+ updateClubMember(requestParameters: ClubsManagerApiUpdateClubMemberRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AddClubMember201Response, any, {}>>;
13161
13274
  /**
13162
13275
  *
13163
13276
  * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
package/dist/api.js CHANGED
@@ -22,10 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientAccountOnboardingRequestSubscriptionTypeEnum = exports.ClientAccountOnboardingRequestBusinessTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
26
- exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientAccountsApi = exports.ClientAccountsApiFactory = exports.ClientAccountsApiFp = exports.ClientAccountsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = void 0;
27
- exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = void 0;
28
- exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = void 0;
25
+ exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientAccountOnboardingRequestSubscriptionTypeEnum = exports.ClientAccountOnboardingRequestBusinessTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
26
+ exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientAccountsApi = exports.ClientAccountsApiFactory = exports.ClientAccountsApiFp = exports.ClientAccountsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = void 0;
27
+ exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = void 0;
28
+ exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = void 0;
29
29
  const axios_1 = require("axios");
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -329,6 +329,11 @@ exports.SurfaceType = {
329
329
  Grass: 'grass',
330
330
  Hard: 'hard'
331
331
  };
332
+ exports.UpdateClubMemberRequestRoleEnum = {
333
+ Admin: 'admin',
334
+ Manager: 'manager',
335
+ Staff: 'staff'
336
+ };
332
337
  exports.UpdateClubRoleRequestRoleEnum = {
333
338
  Admin: 'admin',
334
339
  Manager: 'manager',
@@ -5621,6 +5626,42 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
5621
5626
  options: localVarRequestOptions,
5622
5627
  };
5623
5628
  }),
5629
+ /**
5630
+ * Met à jour un membre d\'un club
5631
+ * @param {string} userId
5632
+ * @param {UpdateClubMemberRequest} updateClubMemberRequest
5633
+ * @param {*} [options] Override http request option.
5634
+ * @throws {RequiredError}
5635
+ */
5636
+ updateClubMember: (userId_1, updateClubMemberRequest_1, ...args_1) => __awaiter(this, [userId_1, updateClubMemberRequest_1, ...args_1], void 0, function* (userId, updateClubMemberRequest, options = {}) {
5637
+ // verify required parameter 'userId' is not null or undefined
5638
+ (0, common_1.assertParamExists)('updateClubMember', 'userId', userId);
5639
+ // verify required parameter 'updateClubMemberRequest' is not null or undefined
5640
+ (0, common_1.assertParamExists)('updateClubMember', 'updateClubMemberRequest', updateClubMemberRequest);
5641
+ const localVarPath = `/api/clubs/members/{userId}`
5642
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
5643
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5644
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5645
+ let baseOptions;
5646
+ if (configuration) {
5647
+ baseOptions = configuration.baseOptions;
5648
+ }
5649
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
5650
+ const localVarHeaderParameter = {};
5651
+ const localVarQueryParameter = {};
5652
+ // authentication bearerAuth required
5653
+ // http bearer authentication required
5654
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5655
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5656
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5657
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5658
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5659
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubMemberRequest, localVarRequestOptions, configuration);
5660
+ return {
5661
+ url: (0, common_1.toPathString)(localVarUrlObj),
5662
+ options: localVarRequestOptions,
5663
+ };
5664
+ }),
5624
5665
  /**
5625
5666
  *
5626
5667
  * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
@@ -5976,6 +6017,22 @@ const ClubsManagerApiFp = function (configuration) {
5976
6017
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5977
6018
  });
5978
6019
  },
6020
+ /**
6021
+ * Met à jour un membre d\'un club
6022
+ * @param {string} userId
6023
+ * @param {UpdateClubMemberRequest} updateClubMemberRequest
6024
+ * @param {*} [options] Override http request option.
6025
+ * @throws {RequiredError}
6026
+ */
6027
+ updateClubMember(userId, updateClubMemberRequest, options) {
6028
+ return __awaiter(this, void 0, void 0, function* () {
6029
+ var _a, _b, _c;
6030
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubMember(userId, updateClubMemberRequest, options);
6031
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6032
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.updateClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6033
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6034
+ });
6035
+ },
5979
6036
  /**
5980
6037
  *
5981
6038
  * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
@@ -6176,6 +6233,15 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
6176
6233
  updateClubInfos(requestParameters, options) {
6177
6234
  return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
6178
6235
  },
6236
+ /**
6237
+ * Met à jour un membre d\'un club
6238
+ * @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
6239
+ * @param {*} [options] Override http request option.
6240
+ * @throws {RequiredError}
6241
+ */
6242
+ updateClubMember(requestParameters, options) {
6243
+ return localVarFp.updateClubMember(requestParameters.userId, requestParameters.updateClubMemberRequest, options).then((request) => request(axios, basePath));
6244
+ },
6179
6245
  /**
6180
6246
  *
6181
6247
  * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
@@ -6372,6 +6438,16 @@ class ClubsManagerApi extends base_1.BaseAPI {
6372
6438
  updateClubInfos(requestParameters, options) {
6373
6439
  return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
6374
6440
  }
6441
+ /**
6442
+ * Met à jour un membre d\'un club
6443
+ * @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
6444
+ * @param {*} [options] Override http request option.
6445
+ * @throws {RequiredError}
6446
+ * @memberof ClubsManagerApi
6447
+ */
6448
+ updateClubMember(requestParameters, options) {
6449
+ return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubMember(requestParameters.userId, requestParameters.updateClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
6450
+ }
6375
6451
  /**
6376
6452
  *
6377
6453
  * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
package/dist/esm/api.d.ts CHANGED
@@ -1117,6 +1117,25 @@ export interface BookingSummary {
1117
1117
  */
1118
1118
  export interface BookingSummaryClubAddress {
1119
1119
  }
1120
+ /**
1121
+ *
1122
+ * @export
1123
+ * @interface BookingsWithTimeBoundsResponse
1124
+ */
1125
+ export interface BookingsWithTimeBoundsResponse {
1126
+ /**
1127
+ *
1128
+ * @type {Array<BookingPopulated>}
1129
+ * @memberof BookingsWithTimeBoundsResponse
1130
+ */
1131
+ 'bookings': Array<BookingPopulated>;
1132
+ /**
1133
+ *
1134
+ * @type {TimeBounds}
1135
+ * @memberof BookingsWithTimeBoundsResponse
1136
+ */
1137
+ 'timeBounds': TimeBounds;
1138
+ }
1120
1139
  /**
1121
1140
  *
1122
1141
  * @export
@@ -8204,6 +8223,25 @@ export interface Team {
8204
8223
  */
8205
8224
  'players': Array<string>;
8206
8225
  }
8226
+ /**
8227
+ *
8228
+ * @export
8229
+ * @interface TimeBounds
8230
+ */
8231
+ export interface TimeBounds {
8232
+ /**
8233
+ * Heure de début au format HH:mm
8234
+ * @type {string}
8235
+ * @memberof TimeBounds
8236
+ */
8237
+ 'start': string;
8238
+ /**
8239
+ * Heure de fin au format HH:mm
8240
+ * @type {string}
8241
+ * @memberof TimeBounds
8242
+ */
8243
+ 'end': string;
8244
+ }
8207
8245
  /**
8208
8246
  *
8209
8247
  * @export
@@ -8291,6 +8329,31 @@ export interface UpdateClubHoursSettingsRequest {
8291
8329
  */
8292
8330
  'pricingPeriods'?: Array<ClubPricingPeriodResponse>;
8293
8331
  }
8332
+ /**
8333
+ *
8334
+ * @export
8335
+ * @interface UpdateClubMemberRequest
8336
+ */
8337
+ export interface UpdateClubMemberRequest {
8338
+ /**
8339
+ * Rôle du membre dans le club
8340
+ * @type {string}
8341
+ * @memberof UpdateClubMemberRequest
8342
+ */
8343
+ 'role'?: UpdateClubMemberRequestRoleEnum;
8344
+ /**
8345
+ * Droits du membre dans le club
8346
+ * @type {Array<string>}
8347
+ * @memberof UpdateClubMemberRequest
8348
+ */
8349
+ 'rights'?: Array<string>;
8350
+ }
8351
+ export declare const UpdateClubMemberRequestRoleEnum: {
8352
+ readonly Admin: "admin";
8353
+ readonly Manager: "manager";
8354
+ readonly Staff: "staff";
8355
+ };
8356
+ export type UpdateClubMemberRequestRoleEnum = typeof UpdateClubMemberRequestRoleEnum[keyof typeof UpdateClubMemberRequestRoleEnum];
8294
8357
  /**
8295
8358
  *
8296
8359
  * @export
@@ -9905,14 +9968,14 @@ export declare const BookingsStaffApiFp: (configuration?: Configuration) => {
9905
9968
  * @param {*} [options] Override http request option.
9906
9969
  * @throws {RequiredError}
9907
9970
  */
9908
- getDailyBookings(date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BookingPopulated>>>;
9971
+ getDailyBookings(date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsWithTimeBoundsResponse>>;
9909
9972
  /**
9910
9973
  * Obtenir les réservations hebdomadaires
9911
9974
  * @param {string} weekId
9912
9975
  * @param {*} [options] Override http request option.
9913
9976
  * @throws {RequiredError}
9914
9977
  */
9915
- getWeeklyBookings(weekId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BookingPopulated>>>;
9978
+ getWeeklyBookings(weekId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsWithTimeBoundsResponse>>;
9916
9979
  };
9917
9980
  /**
9918
9981
  * BookingsStaffApi - factory interface
@@ -9953,14 +10016,14 @@ export declare const BookingsStaffApiFactory: (configuration?: Configuration, ba
9953
10016
  * @param {*} [options] Override http request option.
9954
10017
  * @throws {RequiredError}
9955
10018
  */
9956
- getDailyBookings(requestParameters: BookingsStaffApiGetDailyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<BookingPopulated>>;
10019
+ getDailyBookings(requestParameters: BookingsStaffApiGetDailyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsWithTimeBoundsResponse>;
9957
10020
  /**
9958
10021
  * Obtenir les réservations hebdomadaires
9959
10022
  * @param {BookingsStaffApiGetWeeklyBookingsRequest} requestParameters Request parameters.
9960
10023
  * @param {*} [options] Override http request option.
9961
10024
  * @throws {RequiredError}
9962
10025
  */
9963
- getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<BookingPopulated>>;
10026
+ getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsWithTimeBoundsResponse>;
9964
10027
  };
9965
10028
  /**
9966
10029
  * Request parameters for checkInPlayers operation in BookingsStaffApi.
@@ -10092,7 +10155,7 @@ export declare class BookingsStaffApi extends BaseAPI {
10092
10155
  * @throws {RequiredError}
10093
10156
  * @memberof BookingsStaffApi
10094
10157
  */
10095
- getDailyBookings(requestParameters: BookingsStaffApiGetDailyBookingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingPopulated[], any, {}>>;
10158
+ getDailyBookings(requestParameters: BookingsStaffApiGetDailyBookingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingsWithTimeBoundsResponse, any, {}>>;
10096
10159
  /**
10097
10160
  * Obtenir les réservations hebdomadaires
10098
10161
  * @param {BookingsStaffApiGetWeeklyBookingsRequest} requestParameters Request parameters.
@@ -10100,7 +10163,7 @@ export declare class BookingsStaffApi extends BaseAPI {
10100
10163
  * @throws {RequiredError}
10101
10164
  * @memberof BookingsStaffApi
10102
10165
  */
10103
- getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingPopulated[], any, {}>>;
10166
+ getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingsWithTimeBoundsResponse, any, {}>>;
10104
10167
  }
10105
10168
  /**
10106
10169
  * BookingsUserApi - axios parameter creator
@@ -12462,6 +12525,14 @@ export declare const ClubsManagerApiAxiosParamCreator: (configuration?: Configur
12462
12525
  * @throws {RequiredError}
12463
12526
  */
12464
12527
  updateClubInfos: (body: any, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12528
+ /**
12529
+ * Met à jour un membre d\'un club
12530
+ * @param {string} userId
12531
+ * @param {UpdateClubMemberRequest} updateClubMemberRequest
12532
+ * @param {*} [options] Override http request option.
12533
+ * @throws {RequiredError}
12534
+ */
12535
+ updateClubMember: (userId: string, updateClubMemberRequest: UpdateClubMemberRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12465
12536
  /**
12466
12537
  *
12467
12538
  * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
@@ -12604,6 +12675,14 @@ export declare const ClubsManagerApiFp: (configuration?: Configuration) => {
12604
12675
  * @throws {RequiredError}
12605
12676
  */
12606
12677
  updateClubInfos(body: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
12678
+ /**
12679
+ * Met à jour un membre d\'un club
12680
+ * @param {string} userId
12681
+ * @param {UpdateClubMemberRequest} updateClubMemberRequest
12682
+ * @param {*} [options] Override http request option.
12683
+ * @throws {RequiredError}
12684
+ */
12685
+ updateClubMember(userId: string, updateClubMemberRequest: UpdateClubMemberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddClubMember201Response>>;
12607
12686
  /**
12608
12687
  *
12609
12688
  * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
@@ -12744,6 +12823,13 @@ export declare const ClubsManagerApiFactory: (configuration?: Configuration, bas
12744
12823
  * @throws {RequiredError}
12745
12824
  */
12746
12825
  updateClubInfos(requestParameters: ClubsManagerApiUpdateClubInfosRequest, options?: RawAxiosRequestConfig): AxiosPromise<any>;
12826
+ /**
12827
+ * Met à jour un membre d\'un club
12828
+ * @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
12829
+ * @param {*} [options] Override http request option.
12830
+ * @throws {RequiredError}
12831
+ */
12832
+ updateClubMember(requestParameters: ClubsManagerApiUpdateClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddClubMember201Response>;
12747
12833
  /**
12748
12834
  *
12749
12835
  * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
@@ -12973,6 +13059,25 @@ export interface ClubsManagerApiUpdateClubInfosRequest {
12973
13059
  */
12974
13060
  readonly body: any;
12975
13061
  }
13062
+ /**
13063
+ * Request parameters for updateClubMember operation in ClubsManagerApi.
13064
+ * @export
13065
+ * @interface ClubsManagerApiUpdateClubMemberRequest
13066
+ */
13067
+ export interface ClubsManagerApiUpdateClubMemberRequest {
13068
+ /**
13069
+ *
13070
+ * @type {string}
13071
+ * @memberof ClubsManagerApiUpdateClubMember
13072
+ */
13073
+ readonly userId: string;
13074
+ /**
13075
+ *
13076
+ * @type {UpdateClubMemberRequest}
13077
+ * @memberof ClubsManagerApiUpdateClubMember
13078
+ */
13079
+ readonly updateClubMemberRequest: UpdateClubMemberRequest;
13080
+ }
12976
13081
  /**
12977
13082
  * Request parameters for updateClubPresentationSettings operation in ClubsManagerApi.
12978
13083
  * @export
@@ -13158,6 +13263,14 @@ export declare class ClubsManagerApi extends BaseAPI {
13158
13263
  * @memberof ClubsManagerApi
13159
13264
  */
13160
13265
  updateClubInfos(requestParameters: ClubsManagerApiUpdateClubInfosRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
13266
+ /**
13267
+ * Met à jour un membre d\'un club
13268
+ * @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
13269
+ * @param {*} [options] Override http request option.
13270
+ * @throws {RequiredError}
13271
+ * @memberof ClubsManagerApi
13272
+ */
13273
+ updateClubMember(requestParameters: ClubsManagerApiUpdateClubMemberRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AddClubMember201Response, any, {}>>;
13161
13274
  /**
13162
13275
  *
13163
13276
  * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
package/dist/esm/api.js CHANGED
@@ -323,6 +323,11 @@ export const SurfaceType = {
323
323
  Grass: 'grass',
324
324
  Hard: 'hard'
325
325
  };
326
+ export const UpdateClubMemberRequestRoleEnum = {
327
+ Admin: 'admin',
328
+ Manager: 'manager',
329
+ Staff: 'staff'
330
+ };
326
331
  export const UpdateClubRoleRequestRoleEnum = {
327
332
  Admin: 'admin',
328
333
  Manager: 'manager',
@@ -5563,6 +5568,42 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
5563
5568
  options: localVarRequestOptions,
5564
5569
  };
5565
5570
  }),
5571
+ /**
5572
+ * Met à jour un membre d\'un club
5573
+ * @param {string} userId
5574
+ * @param {UpdateClubMemberRequest} updateClubMemberRequest
5575
+ * @param {*} [options] Override http request option.
5576
+ * @throws {RequiredError}
5577
+ */
5578
+ updateClubMember: (userId_1, updateClubMemberRequest_1, ...args_1) => __awaiter(this, [userId_1, updateClubMemberRequest_1, ...args_1], void 0, function* (userId, updateClubMemberRequest, options = {}) {
5579
+ // verify required parameter 'userId' is not null or undefined
5580
+ assertParamExists('updateClubMember', 'userId', userId);
5581
+ // verify required parameter 'updateClubMemberRequest' is not null or undefined
5582
+ assertParamExists('updateClubMember', 'updateClubMemberRequest', updateClubMemberRequest);
5583
+ const localVarPath = `/api/clubs/members/{userId}`
5584
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
5585
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5586
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5587
+ let baseOptions;
5588
+ if (configuration) {
5589
+ baseOptions = configuration.baseOptions;
5590
+ }
5591
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
5592
+ const localVarHeaderParameter = {};
5593
+ const localVarQueryParameter = {};
5594
+ // authentication bearerAuth required
5595
+ // http bearer authentication required
5596
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5597
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5598
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5599
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5600
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5601
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubMemberRequest, localVarRequestOptions, configuration);
5602
+ return {
5603
+ url: toPathString(localVarUrlObj),
5604
+ options: localVarRequestOptions,
5605
+ };
5606
+ }),
5566
5607
  /**
5567
5608
  *
5568
5609
  * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
@@ -5917,6 +5958,22 @@ export const ClubsManagerApiFp = function (configuration) {
5917
5958
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5918
5959
  });
5919
5960
  },
5961
+ /**
5962
+ * Met à jour un membre d\'un club
5963
+ * @param {string} userId
5964
+ * @param {UpdateClubMemberRequest} updateClubMemberRequest
5965
+ * @param {*} [options] Override http request option.
5966
+ * @throws {RequiredError}
5967
+ */
5968
+ updateClubMember(userId, updateClubMemberRequest, options) {
5969
+ return __awaiter(this, void 0, void 0, function* () {
5970
+ var _a, _b, _c;
5971
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubMember(userId, updateClubMemberRequest, options);
5972
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5973
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.updateClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5974
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5975
+ });
5976
+ },
5920
5977
  /**
5921
5978
  *
5922
5979
  * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
@@ -6116,6 +6173,15 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
6116
6173
  updateClubInfos(requestParameters, options) {
6117
6174
  return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
6118
6175
  },
6176
+ /**
6177
+ * Met à jour un membre d\'un club
6178
+ * @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
6179
+ * @param {*} [options] Override http request option.
6180
+ * @throws {RequiredError}
6181
+ */
6182
+ updateClubMember(requestParameters, options) {
6183
+ return localVarFp.updateClubMember(requestParameters.userId, requestParameters.updateClubMemberRequest, options).then((request) => request(axios, basePath));
6184
+ },
6119
6185
  /**
6120
6186
  *
6121
6187
  * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
@@ -6311,6 +6377,16 @@ export class ClubsManagerApi extends BaseAPI {
6311
6377
  updateClubInfos(requestParameters, options) {
6312
6378
  return ClubsManagerApiFp(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
6313
6379
  }
6380
+ /**
6381
+ * Met à jour un membre d\'un club
6382
+ * @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
6383
+ * @param {*} [options] Override http request option.
6384
+ * @throws {RequiredError}
6385
+ * @memberof ClubsManagerApi
6386
+ */
6387
+ updateClubMember(requestParameters, options) {
6388
+ return ClubsManagerApiFp(this.configuration).updateClubMember(requestParameters.userId, requestParameters.updateClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
6389
+ }
6314
6390
  /**
6315
6391
  *
6316
6392
  * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
@@ -220,7 +220,7 @@ const { status, data } = await apiInstance.getBookingPaymentStatus(
220
220
  [[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)
221
221
 
222
222
  # **getDailyBookings**
223
- > Array<BookingPopulated> getDailyBookings()
223
+ > BookingsWithTimeBoundsResponse getDailyBookings()
224
224
 
225
225
  Obtenir les réservations journalières
226
226
 
@@ -251,7 +251,7 @@ const { status, data } = await apiInstance.getDailyBookings(
251
251
 
252
252
  ### Return type
253
253
 
254
- **Array<BookingPopulated>**
254
+ **BookingsWithTimeBoundsResponse**
255
255
 
256
256
  ### Authorization
257
257
 
@@ -271,7 +271,7 @@ const { status, data } = await apiInstance.getDailyBookings(
271
271
  [[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)
272
272
 
273
273
  # **getWeeklyBookings**
274
- > Array<BookingPopulated> getWeeklyBookings()
274
+ > BookingsWithTimeBoundsResponse getWeeklyBookings()
275
275
 
276
276
  Obtenir les réservations hebdomadaires
277
277
 
@@ -302,7 +302,7 @@ const { status, data } = await apiInstance.getWeeklyBookings(
302
302
 
303
303
  ### Return type
304
304
 
305
- **Array<BookingPopulated>**
305
+ **BookingsWithTimeBoundsResponse**
306
306
 
307
307
  ### Authorization
308
308
 
@@ -0,0 +1,22 @@
1
+ # BookingsWithTimeBoundsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **bookings** | [**Array&lt;BookingPopulated&gt;**](BookingPopulated.md) | | [default to undefined]
9
+ **timeBounds** | [**TimeBounds**](TimeBounds.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { BookingsWithTimeBoundsResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: BookingsWithTimeBoundsResponse = {
17
+ bookings,
18
+ timeBounds,
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)
@@ -20,6 +20,7 @@ All URIs are relative to *http://localhost*
20
20
  |[**updateActuality**](#updateactuality) | **PUT** /api/clubs/actualities/{actualityId} | |
21
21
  |[**updateClub**](#updateclub) | **PUT** /api/clubs | |
22
22
  |[**updateClubInfos**](#updateclubinfos) | **PUT** /api/clubs/infos | |
23
+ |[**updateClubMember**](#updateclubmember) | **PATCH** /api/clubs/members/{userId} | |
23
24
  |[**updateClubPresentationSettings**](#updateclubpresentationsettings) | **PUT** /api/clubs/settings/presentation | |
24
25
  |[**updateCourt**](#updatecourt) | **PUT** /api/clubs/courts/{courtId} | |
25
26
  |[**updateSubscriptionPlanForClub**](#updatesubscriptionplanforclub) | **PUT** /api/clubs/subscription-plans/{priceId} | |
@@ -843,6 +844,65 @@ const { status, data } = await apiInstance.updateClubInfos(
843
844
 
844
845
  [[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)
845
846
 
847
+ # **updateClubMember**
848
+ > AddClubMember201Response updateClubMember(updateClubMemberRequest)
849
+
850
+ Met à jour un membre d\'un club
851
+
852
+ ### Example
853
+
854
+ ```typescript
855
+ import {
856
+ ClubsManagerApi,
857
+ Configuration,
858
+ UpdateClubMemberRequest
859
+ } from '@tennac-booking/sdk';
860
+
861
+ const configuration = new Configuration();
862
+ const apiInstance = new ClubsManagerApi(configuration);
863
+
864
+ let userId: string; // (default to undefined)
865
+ let updateClubMemberRequest: UpdateClubMemberRequest; //
866
+
867
+ const { status, data } = await apiInstance.updateClubMember(
868
+ userId,
869
+ updateClubMemberRequest
870
+ );
871
+ ```
872
+
873
+ ### Parameters
874
+
875
+ |Name | Type | Description | Notes|
876
+ |------------- | ------------- | ------------- | -------------|
877
+ | **updateClubMemberRequest** | **UpdateClubMemberRequest**| | |
878
+ | **userId** | [**string**] | | defaults to undefined|
879
+
880
+
881
+ ### Return type
882
+
883
+ **AddClubMember201Response**
884
+
885
+ ### Authorization
886
+
887
+ [bearerAuth](../README.md#bearerAuth)
888
+
889
+ ### HTTP request headers
890
+
891
+ - **Content-Type**: application/json
892
+ - **Accept**: application/json
893
+
894
+
895
+ ### HTTP response details
896
+ | Status code | Description | Response headers |
897
+ |-------------|-------------|------------------|
898
+ |**200** | Membre mis à jour | - |
899
+ |**400** | Bad Request | - |
900
+ |**403** | Forbidden | - |
901
+ |**404** | Membre introuvable | - |
902
+ |**500** | Server Error | - |
903
+
904
+ [[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)
905
+
846
906
  # **updateClubPresentationSettings**
847
907
  > ClubPresentationSettingsResponse updateClubPresentationSettings(updateClubPresentationSettingsRequest)
848
908
 
@@ -0,0 +1,22 @@
1
+ # TimeBounds
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **start** | **string** | Heure de début au format HH:mm | [default to undefined]
9
+ **end** | **string** | Heure de fin au format HH:mm | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { TimeBounds } from '@tennac-booking/sdk';
15
+
16
+ const instance: TimeBounds = {
17
+ start,
18
+ end,
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)
@@ -0,0 +1,22 @@
1
+ # UpdateClubMemberRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **role** | **string** | Rôle du membre dans le club | [optional] [default to undefined]
9
+ **rights** | **Array&lt;string&gt;** | Droits du membre dans le club | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { UpdateClubMemberRequest } from '@tennac-booking/sdk';
15
+
16
+ const instance: UpdateClubMemberRequest = {
17
+ role,
18
+ rights,
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.103",
3
+ "version": "1.0.104",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {