@tennac-booking/sdk 1.0.144 → 1.0.145

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -3854,6 +3854,18 @@ export interface CreateBookingRequest {
3854
3854
  * @memberof CreateBookingRequest
3855
3855
  */
3856
3856
  'creditToUseInCents'?: number;
3857
+ /**
3858
+ * Pour créneau ouvert: nombre maximal de joueurs souhaités (incluant le créateur)
3859
+ * @type {number}
3860
+ * @memberof CreateBookingRequest
3861
+ */
3862
+ 'maxPlayersDesired'?: number;
3863
+ /**
3864
+ * Pour créneau ouvert: nombre maximal de joueurs total (incluant le créateur) - alias de maxPlayersDesired
3865
+ * @type {number}
3866
+ * @memberof CreateBookingRequest
3867
+ */
3868
+ 'maxPlayers'?: number;
3857
3869
  }
3858
3870
 
3859
3871
 
@@ -4263,6 +4275,45 @@ export interface CreateOnsiteInvoiceResponseInvoice {
4263
4275
  }
4264
4276
 
4265
4277
 
4278
+ /**
4279
+ *
4280
+ * @export
4281
+ * @interface CreateOpenBookingRequest
4282
+ */
4283
+ export interface CreateOpenBookingRequest {
4284
+ /**
4285
+ * ID du créneau à réserver
4286
+ * @type {Array<string>}
4287
+ * @memberof CreateOpenBookingRequest
4288
+ */
4289
+ 'slotIds': Array<string>;
4290
+ /**
4291
+ *
4292
+ * @type {PaymentMethod}
4293
+ * @memberof CreateOpenBookingRequest
4294
+ */
4295
+ 'paymentMethod'?: PaymentMethod;
4296
+ /**
4297
+ * Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut
4298
+ * @type {boolean}
4299
+ * @memberof CreateOpenBookingRequest
4300
+ */
4301
+ 'useDefaultPaymentMethod'?: boolean;
4302
+ /**
4303
+ * Crédit à utiliser en centimes
4304
+ * @type {number}
4305
+ * @memberof CreateOpenBookingRequest
4306
+ */
4307
+ 'creditToUseInCents'?: number;
4308
+ /**
4309
+ * Nombre maximal de joueurs souhaités (incluant le créateur)
4310
+ * @type {number}
4311
+ * @memberof CreateOpenBookingRequest
4312
+ */
4313
+ 'maxPlayers': number;
4314
+ }
4315
+
4316
+
4266
4317
  /**
4267
4318
  *
4268
4319
  * @export
@@ -5683,6 +5734,32 @@ export interface GetInfillPercentagePerPeriod200Response {
5683
5734
  */
5684
5735
  'infillPercentage': number;
5685
5736
  }
5737
+ /**
5738
+ *
5739
+ * @export
5740
+ * @interface GetOpenBookings200Response
5741
+ */
5742
+ export interface GetOpenBookings200Response {
5743
+ /**
5744
+ *
5745
+ * @type {Array<BookingInfo>}
5746
+ * @memberof GetOpenBookings200Response
5747
+ */
5748
+ 'bookings': Array<BookingInfo>;
5749
+ }
5750
+ /**
5751
+ *
5752
+ * @export
5753
+ * @interface GetOpenEventBookings200Response
5754
+ */
5755
+ export interface GetOpenEventBookings200Response {
5756
+ /**
5757
+ *
5758
+ * @type {Array<EventBookingResponse>}
5759
+ * @memberof GetOpenEventBookings200Response
5760
+ */
5761
+ 'eventBookings': Array<EventBookingResponse>;
5762
+ }
5686
5763
  /**
5687
5764
  *
5688
5765
  * @export
@@ -6488,6 +6565,12 @@ export interface JoinEventRequest {
6488
6565
  * @memberof JoinEventRequest
6489
6566
  */
6490
6567
  'players'?: Array<string>;
6568
+ /**
6569
+ *
6570
+ * @type {boolean}
6571
+ * @memberof JoinEventRequest
6572
+ */
6573
+ 'isOpen'?: boolean;
6491
6574
  /**
6492
6575
  *
6493
6576
  * @type {boolean}
@@ -6636,6 +6719,101 @@ export interface JoinEventResponseOnsitePaymentsInner {
6636
6719
  }
6637
6720
 
6638
6721
 
6722
+ /**
6723
+ *
6724
+ * @export
6725
+ * @interface JoinOpenBookingResponse
6726
+ */
6727
+ export interface JoinOpenBookingResponse {
6728
+ /**
6729
+ *
6730
+ * @type {string}
6731
+ * @memberof JoinOpenBookingResponse
6732
+ */
6733
+ 'message': string;
6734
+ /**
6735
+ *
6736
+ * @type {string}
6737
+ * @memberof JoinOpenBookingResponse
6738
+ */
6739
+ 'invoiceUrl'?: string;
6740
+ /**
6741
+ * Construct a type with a set of properties K of type T
6742
+ * @type {{ [key: string]: string; }}
6743
+ * @memberof JoinOpenBookingResponse
6744
+ */
6745
+ 'paymentLinks'?: { [key: string]: string; };
6746
+ /**
6747
+ *
6748
+ * @type {Array<BookingResponseOnsitePaymentsInner>}
6749
+ * @memberof JoinOpenBookingResponse
6750
+ */
6751
+ 'onsitePayments'?: Array<BookingResponseOnsitePaymentsInner>;
6752
+ /**
6753
+ *
6754
+ * @type {Array<CheckInEventParticipants200ResponseInvoicesInner>}
6755
+ * @memberof JoinOpenBookingResponse
6756
+ */
6757
+ 'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
6758
+ }
6759
+ /**
6760
+ *
6761
+ * @export
6762
+ * @interface JoinOpenEventBookingRequest
6763
+ */
6764
+ export interface JoinOpenEventBookingRequest {
6765
+ /**
6766
+ *
6767
+ * @type {number}
6768
+ * @memberof JoinOpenEventBookingRequest
6769
+ */
6770
+ 'creditToUseInCents'?: number;
6771
+ /**
6772
+ *
6773
+ * @type {boolean}
6774
+ * @memberof JoinOpenEventBookingRequest
6775
+ */
6776
+ 'useDefaultPaymentMethod'?: boolean;
6777
+ /**
6778
+ *
6779
+ * @type {PaymentMethod}
6780
+ * @memberof JoinOpenEventBookingRequest
6781
+ */
6782
+ 'paymentMethod'?: PaymentMethod;
6783
+ }
6784
+
6785
+
6786
+ /**
6787
+ *
6788
+ * @export
6789
+ * @interface JoinOpenEventResponse
6790
+ */
6791
+ export interface JoinOpenEventResponse {
6792
+ /**
6793
+ *
6794
+ * @type {string}
6795
+ * @memberof JoinOpenEventResponse
6796
+ */
6797
+ 'message': string;
6798
+ /**
6799
+ *
6800
+ * @type {EventResponse}
6801
+ * @memberof JoinOpenEventResponse
6802
+ */
6803
+ 'event': EventResponse;
6804
+ /**
6805
+ * Construct a type with a set of properties K of type T
6806
+ * @type {{ [key: string]: string; }}
6807
+ * @memberof JoinOpenEventResponse
6808
+ */
6809
+ 'paymentLinks'?: { [key: string]: string; };
6810
+ /**
6811
+ *
6812
+ * @type {Array<CheckInEventParticipants200ResponseInvoicesInner>}
6813
+ * @memberof JoinOpenEventResponse
6814
+ */
6815
+ 'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
6816
+ }
6639
6817
  /**
6640
6818
  *
6641
6819
  * @export
@@ -12017,6 +12195,44 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
12017
12195
  options: localVarRequestOptions,
12018
12196
  };
12019
12197
  },
12198
+ /**
12199
+ *
12200
+ * @param {string} [clubId]
12201
+ * @param {*} [options] Override http request option.
12202
+ * @throws {RequiredError}
12203
+ */
12204
+ getOpenBookings: async (clubId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12205
+ const localVarPath = `/api/bookings/open`;
12206
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12207
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12208
+ let baseOptions;
12209
+ if (configuration) {
12210
+ baseOptions = configuration.baseOptions;
12211
+ }
12212
+
12213
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12214
+ const localVarHeaderParameter = {} as any;
12215
+ const localVarQueryParameter = {} as any;
12216
+
12217
+ // authentication bearerAuth required
12218
+ // http bearer authentication required
12219
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12220
+
12221
+ if (clubId !== undefined) {
12222
+ localVarQueryParameter['clubId'] = clubId;
12223
+ }
12224
+
12225
+
12226
+
12227
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12228
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12229
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12230
+
12231
+ return {
12232
+ url: toPathString(localVarUrlObj),
12233
+ options: localVarRequestOptions,
12234
+ };
12235
+ },
12020
12236
  /**
12021
12237
  * Recherche des créneaux disponibles pour une réservation rapide
12022
12238
  * @param {number} [latitude]
@@ -12092,6 +12308,86 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
12092
12308
 
12093
12309
 
12094
12310
 
12311
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12312
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12313
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12314
+
12315
+ return {
12316
+ url: toPathString(localVarUrlObj),
12317
+ options: localVarRequestOptions,
12318
+ };
12319
+ },
12320
+ /**
12321
+ *
12322
+ * @param {string} bookingId
12323
+ * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
12324
+ * @param {*} [options] Override http request option.
12325
+ * @throws {RequiredError}
12326
+ */
12327
+ joinOpenBooking: async (bookingId: string, joinOpenEventBookingRequest: JoinOpenEventBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12328
+ // verify required parameter 'bookingId' is not null or undefined
12329
+ assertParamExists('joinOpenBooking', 'bookingId', bookingId)
12330
+ // verify required parameter 'joinOpenEventBookingRequest' is not null or undefined
12331
+ assertParamExists('joinOpenBooking', 'joinOpenEventBookingRequest', joinOpenEventBookingRequest)
12332
+ const localVarPath = `/api/bookings/{bookingId}/open/join`
12333
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
12334
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12335
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12336
+ let baseOptions;
12337
+ if (configuration) {
12338
+ baseOptions = configuration.baseOptions;
12339
+ }
12340
+
12341
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12342
+ const localVarHeaderParameter = {} as any;
12343
+ const localVarQueryParameter = {} as any;
12344
+
12345
+ // authentication bearerAuth required
12346
+ // http bearer authentication required
12347
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12348
+
12349
+
12350
+
12351
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12352
+
12353
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12354
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12355
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12356
+ localVarRequestOptions.data = serializeDataIfNeeded(joinOpenEventBookingRequest, localVarRequestOptions, configuration)
12357
+
12358
+ return {
12359
+ url: toPathString(localVarUrlObj),
12360
+ options: localVarRequestOptions,
12361
+ };
12362
+ },
12363
+ /**
12364
+ *
12365
+ * @param {string} bookingId
12366
+ * @param {*} [options] Override http request option.
12367
+ * @throws {RequiredError}
12368
+ */
12369
+ leaveOpenBooking: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12370
+ // verify required parameter 'bookingId' is not null or undefined
12371
+ assertParamExists('leaveOpenBooking', 'bookingId', bookingId)
12372
+ const localVarPath = `/api/bookings/{bookingId}/open/leave`
12373
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
12374
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12375
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12376
+ let baseOptions;
12377
+ if (configuration) {
12378
+ baseOptions = configuration.baseOptions;
12379
+ }
12380
+
12381
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
12382
+ const localVarHeaderParameter = {} as any;
12383
+ const localVarQueryParameter = {} as any;
12384
+
12385
+ // authentication bearerAuth required
12386
+ // http bearer authentication required
12387
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12388
+
12389
+
12390
+
12095
12391
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12096
12392
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12097
12393
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -12135,6 +12431,18 @@ export const BookingsApiFp = function(configuration?: Configuration) {
12135
12431
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingPrice']?.[localVarOperationServerIndex]?.url;
12136
12432
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12137
12433
  },
12434
+ /**
12435
+ *
12436
+ * @param {string} [clubId]
12437
+ * @param {*} [options] Override http request option.
12438
+ * @throws {RequiredError}
12439
+ */
12440
+ async getOpenBookings(clubId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOpenBookings200Response>> {
12441
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookings(clubId, options);
12442
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12443
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.getOpenBookings']?.[localVarOperationServerIndex]?.url;
12444
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12445
+ },
12138
12446
  /**
12139
12447
  * Recherche des créneaux disponibles pour une réservation rapide
12140
12448
  * @param {number} [latitude]
@@ -12157,11 +12465,36 @@ export const BookingsApiFp = function(configuration?: Configuration) {
12157
12465
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getQuickReservationSlots']?.[localVarOperationServerIndex]?.url;
12158
12466
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12159
12467
  },
12160
- }
12161
- };
12162
-
12163
- /**
12164
- * BookingsApi - factory interface
12468
+ /**
12469
+ *
12470
+ * @param {string} bookingId
12471
+ * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
12472
+ * @param {*} [options] Override http request option.
12473
+ * @throws {RequiredError}
12474
+ */
12475
+ async joinOpenBooking(bookingId: string, joinOpenEventBookingRequest: JoinOpenEventBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinOpenBookingResponse>> {
12476
+ const localVarAxiosArgs = await localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenEventBookingRequest, options);
12477
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12478
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.joinOpenBooking']?.[localVarOperationServerIndex]?.url;
12479
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12480
+ },
12481
+ /**
12482
+ *
12483
+ * @param {string} bookingId
12484
+ * @param {*} [options] Override http request option.
12485
+ * @throws {RequiredError}
12486
+ */
12487
+ async leaveOpenBooking(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
12488
+ const localVarAxiosArgs = await localVarAxiosParamCreator.leaveOpenBooking(bookingId, options);
12489
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12490
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.leaveOpenBooking']?.[localVarOperationServerIndex]?.url;
12491
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12492
+ },
12493
+ }
12494
+ };
12495
+
12496
+ /**
12497
+ * BookingsApi - factory interface
12165
12498
  * @export
12166
12499
  */
12167
12500
  export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
@@ -12185,6 +12518,15 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
12185
12518
  getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse> {
12186
12519
  return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
12187
12520
  },
12521
+ /**
12522
+ *
12523
+ * @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
12524
+ * @param {*} [options] Override http request option.
12525
+ * @throws {RequiredError}
12526
+ */
12527
+ getOpenBookings(requestParameters: BookingsApiGetOpenBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetOpenBookings200Response> {
12528
+ return localVarFp.getOpenBookings(requestParameters.clubId, options).then((request) => request(axios, basePath));
12529
+ },
12188
12530
  /**
12189
12531
  * Recherche des créneaux disponibles pour une réservation rapide
12190
12532
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -12194,6 +12536,24 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
12194
12536
  getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<QuickReservationResponse> {
12195
12537
  return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
12196
12538
  },
12539
+ /**
12540
+ *
12541
+ * @param {BookingsApiJoinOpenBookingRequest} requestParameters Request parameters.
12542
+ * @param {*} [options] Override http request option.
12543
+ * @throws {RequiredError}
12544
+ */
12545
+ joinOpenBooking(requestParameters: BookingsApiJoinOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinOpenBookingResponse> {
12546
+ return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(axios, basePath));
12547
+ },
12548
+ /**
12549
+ *
12550
+ * @param {BookingsApiLeaveOpenBookingRequest} requestParameters Request parameters.
12551
+ * @param {*} [options] Override http request option.
12552
+ * @throws {RequiredError}
12553
+ */
12554
+ leaveOpenBooking(requestParameters: BookingsApiLeaveOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
12555
+ return localVarFp.leaveOpenBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
12556
+ },
12197
12557
  };
12198
12558
  };
12199
12559
 
@@ -12225,6 +12585,20 @@ export interface BookingsApiGetBookingPriceRequest {
12225
12585
  readonly bookingPriceBody: BookingPriceBody
12226
12586
  }
12227
12587
 
12588
+ /**
12589
+ * Request parameters for getOpenBookings operation in BookingsApi.
12590
+ * @export
12591
+ * @interface BookingsApiGetOpenBookingsRequest
12592
+ */
12593
+ export interface BookingsApiGetOpenBookingsRequest {
12594
+ /**
12595
+ *
12596
+ * @type {string}
12597
+ * @memberof BookingsApiGetOpenBookings
12598
+ */
12599
+ readonly clubId?: string
12600
+ }
12601
+
12228
12602
  /**
12229
12603
  * Request parameters for getQuickReservationSlots operation in BookingsApi.
12230
12604
  * @export
@@ -12309,6 +12683,41 @@ export interface BookingsApiGetQuickReservationSlotsRequest {
12309
12683
  readonly maxClubs?: number
12310
12684
  }
12311
12685
 
12686
+ /**
12687
+ * Request parameters for joinOpenBooking operation in BookingsApi.
12688
+ * @export
12689
+ * @interface BookingsApiJoinOpenBookingRequest
12690
+ */
12691
+ export interface BookingsApiJoinOpenBookingRequest {
12692
+ /**
12693
+ *
12694
+ * @type {string}
12695
+ * @memberof BookingsApiJoinOpenBooking
12696
+ */
12697
+ readonly bookingId: string
12698
+
12699
+ /**
12700
+ *
12701
+ * @type {JoinOpenEventBookingRequest}
12702
+ * @memberof BookingsApiJoinOpenBooking
12703
+ */
12704
+ readonly joinOpenEventBookingRequest: JoinOpenEventBookingRequest
12705
+ }
12706
+
12707
+ /**
12708
+ * Request parameters for leaveOpenBooking operation in BookingsApi.
12709
+ * @export
12710
+ * @interface BookingsApiLeaveOpenBookingRequest
12711
+ */
12712
+ export interface BookingsApiLeaveOpenBookingRequest {
12713
+ /**
12714
+ *
12715
+ * @type {string}
12716
+ * @memberof BookingsApiLeaveOpenBooking
12717
+ */
12718
+ readonly bookingId: string
12719
+ }
12720
+
12312
12721
  /**
12313
12722
  * BookingsApi - object-oriented interface
12314
12723
  * @export
@@ -12338,6 +12747,17 @@ export class BookingsApi extends BaseAPI {
12338
12747
  return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
12339
12748
  }
12340
12749
 
12750
+ /**
12751
+ *
12752
+ * @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
12753
+ * @param {*} [options] Override http request option.
12754
+ * @throws {RequiredError}
12755
+ * @memberof BookingsApi
12756
+ */
12757
+ public getOpenBookings(requestParameters: BookingsApiGetOpenBookingsRequest = {}, options?: RawAxiosRequestConfig) {
12758
+ return BookingsApiFp(this.configuration).getOpenBookings(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
12759
+ }
12760
+
12341
12761
  /**
12342
12762
  * Recherche des créneaux disponibles pour une réservation rapide
12343
12763
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -12348,6 +12768,28 @@ export class BookingsApi extends BaseAPI {
12348
12768
  public getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig) {
12349
12769
  return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
12350
12770
  }
12771
+
12772
+ /**
12773
+ *
12774
+ * @param {BookingsApiJoinOpenBookingRequest} requestParameters Request parameters.
12775
+ * @param {*} [options] Override http request option.
12776
+ * @throws {RequiredError}
12777
+ * @memberof BookingsApi
12778
+ */
12779
+ public joinOpenBooking(requestParameters: BookingsApiJoinOpenBookingRequest, options?: RawAxiosRequestConfig) {
12780
+ return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(this.axios, this.basePath));
12781
+ }
12782
+
12783
+ /**
12784
+ *
12785
+ * @param {BookingsApiLeaveOpenBookingRequest} requestParameters Request parameters.
12786
+ * @param {*} [options] Override http request option.
12787
+ * @throws {RequiredError}
12788
+ * @memberof BookingsApi
12789
+ */
12790
+ public leaveOpenBooking(requestParameters: BookingsApiLeaveOpenBookingRequest, options?: RawAxiosRequestConfig) {
12791
+ return BookingsApiFp(this.configuration).leaveOpenBooking(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
12792
+ }
12351
12793
  }
12352
12794
 
12353
12795
 
@@ -13420,6 +13862,45 @@ export const BookingsUserApiAxiosParamCreator = function (configuration?: Config
13420
13862
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13421
13863
  localVarRequestOptions.data = serializeDataIfNeeded(createBookingRequest, localVarRequestOptions, configuration)
13422
13864
 
13865
+ return {
13866
+ url: toPathString(localVarUrlObj),
13867
+ options: localVarRequestOptions,
13868
+ };
13869
+ },
13870
+ /**
13871
+ * Créer une réservation ouverte (open slot)
13872
+ * @param {CreateOpenBookingRequest} createOpenBookingRequest
13873
+ * @param {*} [options] Override http request option.
13874
+ * @throws {RequiredError}
13875
+ */
13876
+ createOpenBooking: async (createOpenBookingRequest: CreateOpenBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13877
+ // verify required parameter 'createOpenBookingRequest' is not null or undefined
13878
+ assertParamExists('createOpenBooking', 'createOpenBookingRequest', createOpenBookingRequest)
13879
+ const localVarPath = `/api/bookings/open`;
13880
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13881
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13882
+ let baseOptions;
13883
+ if (configuration) {
13884
+ baseOptions = configuration.baseOptions;
13885
+ }
13886
+
13887
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13888
+ const localVarHeaderParameter = {} as any;
13889
+ const localVarQueryParameter = {} as any;
13890
+
13891
+ // authentication bearerAuth required
13892
+ // http bearer authentication required
13893
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13894
+
13895
+
13896
+
13897
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13898
+
13899
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13900
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13901
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13902
+ localVarRequestOptions.data = serializeDataIfNeeded(createOpenBookingRequest, localVarRequestOptions, configuration)
13903
+
13423
13904
  return {
13424
13905
  url: toPathString(localVarUrlObj),
13425
13906
  options: localVarRequestOptions,
@@ -13459,6 +13940,18 @@ export const BookingsUserApiFp = function(configuration?: Configuration) {
13459
13940
  const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.createBooking']?.[localVarOperationServerIndex]?.url;
13460
13941
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13461
13942
  },
13943
+ /**
13944
+ * Créer une réservation ouverte (open slot)
13945
+ * @param {CreateOpenBookingRequest} createOpenBookingRequest
13946
+ * @param {*} [options] Override http request option.
13947
+ * @throws {RequiredError}
13948
+ */
13949
+ async createOpenBooking(createOpenBookingRequest: CreateOpenBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingResponse>> {
13950
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenBooking(createOpenBookingRequest, options);
13951
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13952
+ const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.createOpenBooking']?.[localVarOperationServerIndex]?.url;
13953
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13954
+ },
13462
13955
  }
13463
13956
  };
13464
13957
 
@@ -13487,6 +13980,15 @@ export const BookingsUserApiFactory = function (configuration?: Configuration, b
13487
13980
  createBooking(requestParameters: BookingsUserApiCreateBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse> {
13488
13981
  return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
13489
13982
  },
13983
+ /**
13984
+ * Créer une réservation ouverte (open slot)
13985
+ * @param {BookingsUserApiCreateOpenBookingRequest} requestParameters Request parameters.
13986
+ * @param {*} [options] Override http request option.
13987
+ * @throws {RequiredError}
13988
+ */
13989
+ createOpenBooking(requestParameters: BookingsUserApiCreateOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse> {
13990
+ return localVarFp.createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(axios, basePath));
13991
+ },
13490
13992
  };
13491
13993
  };
13492
13994
 
@@ -13518,6 +14020,20 @@ export interface BookingsUserApiCreateBookingRequest {
13518
14020
  readonly createBookingRequest: CreateBookingRequest
13519
14021
  }
13520
14022
 
14023
+ /**
14024
+ * Request parameters for createOpenBooking operation in BookingsUserApi.
14025
+ * @export
14026
+ * @interface BookingsUserApiCreateOpenBookingRequest
14027
+ */
14028
+ export interface BookingsUserApiCreateOpenBookingRequest {
14029
+ /**
14030
+ *
14031
+ * @type {CreateOpenBookingRequest}
14032
+ * @memberof BookingsUserApiCreateOpenBooking
14033
+ */
14034
+ readonly createOpenBookingRequest: CreateOpenBookingRequest
14035
+ }
14036
+
13521
14037
  /**
13522
14038
  * BookingsUserApi - object-oriented interface
13523
14039
  * @export
@@ -13546,6 +14062,17 @@ export class BookingsUserApi extends BaseAPI {
13546
14062
  public createBooking(requestParameters: BookingsUserApiCreateBookingRequest, options?: RawAxiosRequestConfig) {
13547
14063
  return BookingsUserApiFp(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
13548
14064
  }
14065
+
14066
+ /**
14067
+ * Créer une réservation ouverte (open slot)
14068
+ * @param {BookingsUserApiCreateOpenBookingRequest} requestParameters Request parameters.
14069
+ * @param {*} [options] Override http request option.
14070
+ * @throws {RequiredError}
14071
+ * @memberof BookingsUserApi
14072
+ */
14073
+ public createOpenBooking(requestParameters: BookingsUserApiCreateOpenBookingRequest, options?: RawAxiosRequestConfig) {
14074
+ return BookingsUserApiFp(this.configuration).createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
14075
+ }
13549
14076
  }
13550
14077
 
13551
14078
 
@@ -15997,6 +16524,107 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
15997
16524
 
15998
16525
 
15999
16526
 
16527
+ /**
16528
+ * ClubCustomerMeApi - axios parameter creator
16529
+ * @export
16530
+ */
16531
+ export const ClubCustomerMeApiAxiosParamCreator = function (configuration?: Configuration) {
16532
+ return {
16533
+ /**
16534
+ *
16535
+ * @param {*} [options] Override http request option.
16536
+ * @throws {RequiredError}
16537
+ */
16538
+ getClubCustomerSettingsByPlayerId: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16539
+ const localVarPath = `/api/clubCustomers/club-customer/me/settings`;
16540
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16541
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16542
+ let baseOptions;
16543
+ if (configuration) {
16544
+ baseOptions = configuration.baseOptions;
16545
+ }
16546
+
16547
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16548
+ const localVarHeaderParameter = {} as any;
16549
+ const localVarQueryParameter = {} as any;
16550
+
16551
+ // authentication bearerAuth required
16552
+ // http bearer authentication required
16553
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16554
+
16555
+
16556
+
16557
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16558
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16559
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16560
+
16561
+ return {
16562
+ url: toPathString(localVarUrlObj),
16563
+ options: localVarRequestOptions,
16564
+ };
16565
+ },
16566
+ }
16567
+ };
16568
+
16569
+ /**
16570
+ * ClubCustomerMeApi - functional programming interface
16571
+ * @export
16572
+ */
16573
+ export const ClubCustomerMeApiFp = function(configuration?: Configuration) {
16574
+ const localVarAxiosParamCreator = ClubCustomerMeApiAxiosParamCreator(configuration)
16575
+ return {
16576
+ /**
16577
+ *
16578
+ * @param {*} [options] Override http request option.
16579
+ * @throws {RequiredError}
16580
+ */
16581
+ async getClubCustomerSettingsByPlayerId(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubCustomerSettingsResponse>> {
16582
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubCustomerSettingsByPlayerId(options);
16583
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16584
+ const localVarOperationServerBasePath = operationServerMap['ClubCustomerMeApi.getClubCustomerSettingsByPlayerId']?.[localVarOperationServerIndex]?.url;
16585
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16586
+ },
16587
+ }
16588
+ };
16589
+
16590
+ /**
16591
+ * ClubCustomerMeApi - factory interface
16592
+ * @export
16593
+ */
16594
+ export const ClubCustomerMeApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
16595
+ const localVarFp = ClubCustomerMeApiFp(configuration)
16596
+ return {
16597
+ /**
16598
+ *
16599
+ * @param {*} [options] Override http request option.
16600
+ * @throws {RequiredError}
16601
+ */
16602
+ getClubCustomerSettingsByPlayerId(options?: RawAxiosRequestConfig): AxiosPromise<ClubCustomerSettingsResponse> {
16603
+ return localVarFp.getClubCustomerSettingsByPlayerId(options).then((request) => request(axios, basePath));
16604
+ },
16605
+ };
16606
+ };
16607
+
16608
+ /**
16609
+ * ClubCustomerMeApi - object-oriented interface
16610
+ * @export
16611
+ * @class ClubCustomerMeApi
16612
+ * @extends {BaseAPI}
16613
+ */
16614
+ export class ClubCustomerMeApi extends BaseAPI {
16615
+ /**
16616
+ *
16617
+ * @param {*} [options] Override http request option.
16618
+ * @throws {RequiredError}
16619
+ * @memberof ClubCustomerMeApi
16620
+ */
16621
+ public getClubCustomerSettingsByPlayerId(options?: RawAxiosRequestConfig) {
16622
+ return ClubCustomerMeApiFp(this.configuration).getClubCustomerSettingsByPlayerId(options).then((request) => request(this.axios, this.basePath));
16623
+ }
16624
+ }
16625
+
16626
+
16627
+
16000
16628
  /**
16001
16629
  * ClubCustomerStaffApi - axios parameter creator
16002
16630
  * @export
@@ -18125,6 +18753,39 @@ export const ClubsApiAxiosParamCreator = function (configuration?: Configuration
18125
18753
 
18126
18754
 
18127
18755
 
18756
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18757
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18758
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18759
+
18760
+ return {
18761
+ url: toPathString(localVarUrlObj),
18762
+ options: localVarRequestOptions,
18763
+ };
18764
+ },
18765
+ /**
18766
+ * Récupère les informations publiques d\'un club en fonction de son ID
18767
+ * @param {string} clubId
18768
+ * @param {*} [options] Override http request option.
18769
+ * @throws {RequiredError}
18770
+ */
18771
+ getPublicClubInfo: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18772
+ // verify required parameter 'clubId' is not null or undefined
18773
+ assertParamExists('getPublicClubInfo', 'clubId', clubId)
18774
+ const localVarPath = `/api/clubs/{clubId}`
18775
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
18776
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18777
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18778
+ let baseOptions;
18779
+ if (configuration) {
18780
+ baseOptions = configuration.baseOptions;
18781
+ }
18782
+
18783
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18784
+ const localVarHeaderParameter = {} as any;
18785
+ const localVarQueryParameter = {} as any;
18786
+
18787
+
18788
+
18128
18789
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18129
18790
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18130
18791
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -18375,6 +19036,18 @@ export const ClubsApiFp = function(configuration?: Configuration) {
18375
19036
  const localVarOperationServerBasePath = operationServerMap['ClubsApi.getCourtsByClubAndSportById']?.[localVarOperationServerIndex]?.url;
18376
19037
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18377
19038
  },
19039
+ /**
19040
+ * Récupère les informations publiques d\'un club en fonction de son ID
19041
+ * @param {string} clubId
19042
+ * @param {*} [options] Override http request option.
19043
+ * @throws {RequiredError}
19044
+ */
19045
+ async getPublicClubInfo(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubResponse>> {
19046
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicClubInfo(clubId, options);
19047
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19048
+ const localVarOperationServerBasePath = operationServerMap['ClubsApi.getPublicClubInfo']?.[localVarOperationServerIndex]?.url;
19049
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19050
+ },
18378
19051
  /**
18379
19052
  *
18380
19053
  * @param {string} id
@@ -18516,6 +19189,15 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
18516
19189
  getCourtsByClubAndSportById(requestParameters: ClubsApiGetCourtsByClubAndSportByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetCourtsByClubAndSportById200Response> {
18517
19190
  return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(axios, basePath));
18518
19191
  },
19192
+ /**
19193
+ * Récupère les informations publiques d\'un club en fonction de son ID
19194
+ * @param {ClubsApiGetPublicClubInfoRequest} requestParameters Request parameters.
19195
+ * @param {*} [options] Override http request option.
19196
+ * @throws {RequiredError}
19197
+ */
19198
+ getPublicClubInfo(requestParameters: ClubsApiGetPublicClubInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubResponse> {
19199
+ return localVarFp.getPublicClubInfo(requestParameters.clubId, options).then((request) => request(axios, basePath));
19200
+ },
18519
19201
  /**
18520
19202
  *
18521
19203
  * @param {ClubsApiGetPublishedActualitiesRequest} requestParameters Request parameters.
@@ -18672,6 +19354,20 @@ export interface ClubsApiGetCourtsByClubAndSportByIdRequest {
18672
19354
  readonly sportId: string
18673
19355
  }
18674
19356
 
19357
+ /**
19358
+ * Request parameters for getPublicClubInfo operation in ClubsApi.
19359
+ * @export
19360
+ * @interface ClubsApiGetPublicClubInfoRequest
19361
+ */
19362
+ export interface ClubsApiGetPublicClubInfoRequest {
19363
+ /**
19364
+ *
19365
+ * @type {string}
19366
+ * @memberof ClubsApiGetPublicClubInfo
19367
+ */
19368
+ readonly clubId: string
19369
+ }
19370
+
18675
19371
  /**
18676
19372
  * Request parameters for getPublishedActualities operation in ClubsApi.
18677
19373
  * @export
@@ -18838,6 +19534,17 @@ export class ClubsApi extends BaseAPI {
18838
19534
  return ClubsApiFp(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
18839
19535
  }
18840
19536
 
19537
+ /**
19538
+ * Récupère les informations publiques d\'un club en fonction de son ID
19539
+ * @param {ClubsApiGetPublicClubInfoRequest} requestParameters Request parameters.
19540
+ * @param {*} [options] Override http request option.
19541
+ * @throws {RequiredError}
19542
+ * @memberof ClubsApi
19543
+ */
19544
+ public getPublicClubInfo(requestParameters: ClubsApiGetPublicClubInfoRequest, options?: RawAxiosRequestConfig) {
19545
+ return ClubsApiFp(this.configuration).getPublicClubInfo(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
19546
+ }
19547
+
18841
19548
  /**
18842
19549
  *
18843
19550
  * @param {ClubsApiGetPublishedActualitiesRequest} requestParameters Request parameters.
@@ -21863,6 +22570,45 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
21863
22570
 
21864
22571
 
21865
22572
 
22573
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22574
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22575
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22576
+
22577
+ return {
22578
+ url: toPathString(localVarUrlObj),
22579
+ options: localVarRequestOptions,
22580
+ };
22581
+ },
22582
+ /**
22583
+ *
22584
+ * @param {string} [clubId]
22585
+ * @param {string} [eventId]
22586
+ * @param {*} [options] Override http request option.
22587
+ * @throws {RequiredError}
22588
+ */
22589
+ getOpenEventBookings: async (clubId?: string, eventId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22590
+ const localVarPath = `/api/events/open`;
22591
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22592
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22593
+ let baseOptions;
22594
+ if (configuration) {
22595
+ baseOptions = configuration.baseOptions;
22596
+ }
22597
+
22598
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
22599
+ const localVarHeaderParameter = {} as any;
22600
+ const localVarQueryParameter = {} as any;
22601
+
22602
+ if (clubId !== undefined) {
22603
+ localVarQueryParameter['clubId'] = clubId;
22604
+ }
22605
+
22606
+ if (eventId !== undefined) {
22607
+ localVarQueryParameter['eventId'] = eventId;
22608
+ }
22609
+
22610
+
22611
+
21866
22612
  setSearchParams(localVarUrlObj, localVarQueryParameter);
21867
22613
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21868
22614
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -21964,6 +22710,49 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
21964
22710
  options: localVarRequestOptions,
21965
22711
  };
21966
22712
  },
22713
+ /**
22714
+ *
22715
+ * @param {string} eventBookingId
22716
+ * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
22717
+ * @param {*} [options] Override http request option.
22718
+ * @throws {RequiredError}
22719
+ */
22720
+ joinOpenEventBooking: async (eventBookingId: string, joinOpenEventBookingRequest: JoinOpenEventBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22721
+ // verify required parameter 'eventBookingId' is not null or undefined
22722
+ assertParamExists('joinOpenEventBooking', 'eventBookingId', eventBookingId)
22723
+ // verify required parameter 'joinOpenEventBookingRequest' is not null or undefined
22724
+ assertParamExists('joinOpenEventBooking', 'joinOpenEventBookingRequest', joinOpenEventBookingRequest)
22725
+ const localVarPath = `/api/events/{eventBookingId}/open/join`
22726
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
22727
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22728
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22729
+ let baseOptions;
22730
+ if (configuration) {
22731
+ baseOptions = configuration.baseOptions;
22732
+ }
22733
+
22734
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
22735
+ const localVarHeaderParameter = {} as any;
22736
+ const localVarQueryParameter = {} as any;
22737
+
22738
+ // authentication bearerAuth required
22739
+ // http bearer authentication required
22740
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
22741
+
22742
+
22743
+
22744
+ localVarHeaderParameter['Content-Type'] = 'application/json';
22745
+
22746
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22747
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22748
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22749
+ localVarRequestOptions.data = serializeDataIfNeeded(joinOpenEventBookingRequest, localVarRequestOptions, configuration)
22750
+
22751
+ return {
22752
+ url: toPathString(localVarUrlObj),
22753
+ options: localVarRequestOptions,
22754
+ };
22755
+ },
21967
22756
  /**
21968
22757
  * Leave an event (user)
21969
22758
  * @param {string} eventId
@@ -21992,6 +22781,43 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
21992
22781
 
21993
22782
 
21994
22783
 
22784
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22785
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22786
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22787
+
22788
+ return {
22789
+ url: toPathString(localVarUrlObj),
22790
+ options: localVarRequestOptions,
22791
+ };
22792
+ },
22793
+ /**
22794
+ *
22795
+ * @param {string} eventBookingId
22796
+ * @param {*} [options] Override http request option.
22797
+ * @throws {RequiredError}
22798
+ */
22799
+ leaveOpenEventBooking: async (eventBookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22800
+ // verify required parameter 'eventBookingId' is not null or undefined
22801
+ assertParamExists('leaveOpenEventBooking', 'eventBookingId', eventBookingId)
22802
+ const localVarPath = `/api/events/{eventBookingId}/open/leave`
22803
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
22804
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22805
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22806
+ let baseOptions;
22807
+ if (configuration) {
22808
+ baseOptions = configuration.baseOptions;
22809
+ }
22810
+
22811
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
22812
+ const localVarHeaderParameter = {} as any;
22813
+ const localVarQueryParameter = {} as any;
22814
+
22815
+ // authentication bearerAuth required
22816
+ // http bearer authentication required
22817
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
22818
+
22819
+
22820
+
21995
22821
  setSearchParams(localVarUrlObj, localVarQueryParameter);
21996
22822
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21997
22823
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -22050,6 +22876,19 @@ export const EventsApiFp = function(configuration?: Configuration) {
22050
22876
  const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventById']?.[localVarOperationServerIndex]?.url;
22051
22877
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22052
22878
  },
22879
+ /**
22880
+ *
22881
+ * @param {string} [clubId]
22882
+ * @param {string} [eventId]
22883
+ * @param {*} [options] Override http request option.
22884
+ * @throws {RequiredError}
22885
+ */
22886
+ async getOpenEventBookings(clubId?: string, eventId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOpenEventBookings200Response>> {
22887
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenEventBookings(clubId, eventId, options);
22888
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22889
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.getOpenEventBookings']?.[localVarOperationServerIndex]?.url;
22890
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22891
+ },
22053
22892
  /**
22054
22893
  * Get all published events for a club
22055
22894
  * @param {string} [clubId]
@@ -22078,6 +22917,19 @@ export const EventsApiFp = function(configuration?: Configuration) {
22078
22917
  const localVarOperationServerBasePath = operationServerMap['EventsApi.joinEvent']?.[localVarOperationServerIndex]?.url;
22079
22918
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22080
22919
  },
22920
+ /**
22921
+ *
22922
+ * @param {string} eventBookingId
22923
+ * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
22924
+ * @param {*} [options] Override http request option.
22925
+ * @throws {RequiredError}
22926
+ */
22927
+ async joinOpenEventBooking(eventBookingId: string, joinOpenEventBookingRequest: JoinOpenEventBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinOpenEventResponse>> {
22928
+ const localVarAxiosArgs = await localVarAxiosParamCreator.joinOpenEventBooking(eventBookingId, joinOpenEventBookingRequest, options);
22929
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22930
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.joinOpenEventBooking']?.[localVarOperationServerIndex]?.url;
22931
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22932
+ },
22081
22933
  /**
22082
22934
  * Leave an event (user)
22083
22935
  * @param {string} eventId
@@ -22090,6 +22942,18 @@ export const EventsApiFp = function(configuration?: Configuration) {
22090
22942
  const localVarOperationServerBasePath = operationServerMap['EventsApi.leaveEvent']?.[localVarOperationServerIndex]?.url;
22091
22943
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22092
22944
  },
22945
+ /**
22946
+ *
22947
+ * @param {string} eventBookingId
22948
+ * @param {*} [options] Override http request option.
22949
+ * @throws {RequiredError}
22950
+ */
22951
+ async leaveOpenEventBooking(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
22952
+ const localVarAxiosArgs = await localVarAxiosParamCreator.leaveOpenEventBooking(eventBookingId, options);
22953
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22954
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.leaveOpenEventBooking']?.[localVarOperationServerIndex]?.url;
22955
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22956
+ },
22093
22957
  }
22094
22958
  };
22095
22959
 
@@ -22127,6 +22991,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
22127
22991
  getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
22128
22992
  return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
22129
22993
  },
22994
+ /**
22995
+ *
22996
+ * @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
22997
+ * @param {*} [options] Override http request option.
22998
+ * @throws {RequiredError}
22999
+ */
23000
+ getOpenEventBookings(requestParameters: EventsApiGetOpenEventBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetOpenEventBookings200Response> {
23001
+ return localVarFp.getOpenEventBookings(requestParameters.clubId, requestParameters.eventId, options).then((request) => request(axios, basePath));
23002
+ },
22130
23003
  /**
22131
23004
  * Get all published events for a club
22132
23005
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -22145,6 +23018,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
22145
23018
  joinEvent(requestParameters: EventsApiJoinEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventResponse> {
22146
23019
  return localVarFp.joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(axios, basePath));
22147
23020
  },
23021
+ /**
23022
+ *
23023
+ * @param {EventsApiJoinOpenEventBookingRequest} requestParameters Request parameters.
23024
+ * @param {*} [options] Override http request option.
23025
+ * @throws {RequiredError}
23026
+ */
23027
+ joinOpenEventBooking(requestParameters: EventsApiJoinOpenEventBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinOpenEventResponse> {
23028
+ return localVarFp.joinOpenEventBooking(requestParameters.eventBookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(axios, basePath));
23029
+ },
22148
23030
  /**
22149
23031
  * Leave an event (user)
22150
23032
  * @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
@@ -22154,6 +23036,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
22154
23036
  leaveEvent(requestParameters: EventsApiLeaveEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventResponse> {
22155
23037
  return localVarFp.leaveEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
22156
23038
  },
23039
+ /**
23040
+ *
23041
+ * @param {EventsApiLeaveOpenEventBookingRequest} requestParameters Request parameters.
23042
+ * @param {*} [options] Override http request option.
23043
+ * @throws {RequiredError}
23044
+ */
23045
+ leaveOpenEventBooking(requestParameters: EventsApiLeaveOpenEventBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
23046
+ return localVarFp.leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
23047
+ },
22157
23048
  };
22158
23049
  };
22159
23050
 
@@ -22220,6 +23111,27 @@ export interface EventsApiGetEventByIdRequest {
22220
23111
  readonly userId?: string
22221
23112
  }
22222
23113
 
23114
+ /**
23115
+ * Request parameters for getOpenEventBookings operation in EventsApi.
23116
+ * @export
23117
+ * @interface EventsApiGetOpenEventBookingsRequest
23118
+ */
23119
+ export interface EventsApiGetOpenEventBookingsRequest {
23120
+ /**
23121
+ *
23122
+ * @type {string}
23123
+ * @memberof EventsApiGetOpenEventBookings
23124
+ */
23125
+ readonly clubId?: string
23126
+
23127
+ /**
23128
+ *
23129
+ * @type {string}
23130
+ * @memberof EventsApiGetOpenEventBookings
23131
+ */
23132
+ readonly eventId?: string
23133
+ }
23134
+
22223
23135
  /**
22224
23136
  * Request parameters for getPublishedEventsByClubId operation in EventsApi.
22225
23137
  * @export
@@ -22276,6 +23188,27 @@ export interface EventsApiJoinEventRequest {
22276
23188
  readonly joinEventRequest: JoinEventRequest
22277
23189
  }
22278
23190
 
23191
+ /**
23192
+ * Request parameters for joinOpenEventBooking operation in EventsApi.
23193
+ * @export
23194
+ * @interface EventsApiJoinOpenEventBookingRequest
23195
+ */
23196
+ export interface EventsApiJoinOpenEventBookingRequest {
23197
+ /**
23198
+ *
23199
+ * @type {string}
23200
+ * @memberof EventsApiJoinOpenEventBooking
23201
+ */
23202
+ readonly eventBookingId: string
23203
+
23204
+ /**
23205
+ *
23206
+ * @type {JoinOpenEventBookingRequest}
23207
+ * @memberof EventsApiJoinOpenEventBooking
23208
+ */
23209
+ readonly joinOpenEventBookingRequest: JoinOpenEventBookingRequest
23210
+ }
23211
+
22279
23212
  /**
22280
23213
  * Request parameters for leaveEvent operation in EventsApi.
22281
23214
  * @export
@@ -22290,6 +23223,20 @@ export interface EventsApiLeaveEventRequest {
22290
23223
  readonly eventId: string
22291
23224
  }
22292
23225
 
23226
+ /**
23227
+ * Request parameters for leaveOpenEventBooking operation in EventsApi.
23228
+ * @export
23229
+ * @interface EventsApiLeaveOpenEventBookingRequest
23230
+ */
23231
+ export interface EventsApiLeaveOpenEventBookingRequest {
23232
+ /**
23233
+ *
23234
+ * @type {string}
23235
+ * @memberof EventsApiLeaveOpenEventBooking
23236
+ */
23237
+ readonly eventBookingId: string
23238
+ }
23239
+
22293
23240
  /**
22294
23241
  * EventsApi - object-oriented interface
22295
23242
  * @export
@@ -22330,6 +23277,17 @@ export class EventsApi extends BaseAPI {
22330
23277
  return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
22331
23278
  }
22332
23279
 
23280
+ /**
23281
+ *
23282
+ * @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
23283
+ * @param {*} [options] Override http request option.
23284
+ * @throws {RequiredError}
23285
+ * @memberof EventsApi
23286
+ */
23287
+ public getOpenEventBookings(requestParameters: EventsApiGetOpenEventBookingsRequest = {}, options?: RawAxiosRequestConfig) {
23288
+ return EventsApiFp(this.configuration).getOpenEventBookings(requestParameters.clubId, requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
23289
+ }
23290
+
22333
23291
  /**
22334
23292
  * Get all published events for a club
22335
23293
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -22352,6 +23310,17 @@ export class EventsApi extends BaseAPI {
22352
23310
  return EventsApiFp(this.configuration).joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(this.axios, this.basePath));
22353
23311
  }
22354
23312
 
23313
+ /**
23314
+ *
23315
+ * @param {EventsApiJoinOpenEventBookingRequest} requestParameters Request parameters.
23316
+ * @param {*} [options] Override http request option.
23317
+ * @throws {RequiredError}
23318
+ * @memberof EventsApi
23319
+ */
23320
+ public joinOpenEventBooking(requestParameters: EventsApiJoinOpenEventBookingRequest, options?: RawAxiosRequestConfig) {
23321
+ return EventsApiFp(this.configuration).joinOpenEventBooking(requestParameters.eventBookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(this.axios, this.basePath));
23322
+ }
23323
+
22355
23324
  /**
22356
23325
  * Leave an event (user)
22357
23326
  * @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
@@ -22362,6 +23331,17 @@ export class EventsApi extends BaseAPI {
22362
23331
  public leaveEvent(requestParameters: EventsApiLeaveEventRequest, options?: RawAxiosRequestConfig) {
22363
23332
  return EventsApiFp(this.configuration).leaveEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
22364
23333
  }
23334
+
23335
+ /**
23336
+ *
23337
+ * @param {EventsApiLeaveOpenEventBookingRequest} requestParameters Request parameters.
23338
+ * @param {*} [options] Override http request option.
23339
+ * @throws {RequiredError}
23340
+ * @memberof EventsApi
23341
+ */
23342
+ public leaveOpenEventBooking(requestParameters: EventsApiLeaveOpenEventBookingRequest, options?: RawAxiosRequestConfig) {
23343
+ return EventsApiFp(this.configuration).leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
23344
+ }
22365
23345
  }
22366
23346
 
22367
23347
  /**
@@ -23324,7 +24304,7 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
23324
24304
  };
23325
24305
  },
23326
24306
  /**
23327
- * Get all events for a club (staff only)
24307
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
23328
24308
  * @param {*} [options] Override http request option.
23329
24309
  * @throws {RequiredError}
23330
24310
  */
@@ -23512,7 +24492,7 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
23512
24492
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23513
24493
  },
23514
24494
  /**
23515
- * Get all events for a club (staff only)
24495
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
23516
24496
  * @param {*} [options] Override http request option.
23517
24497
  * @throws {RequiredError}
23518
24498
  */
@@ -23583,7 +24563,7 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
23583
24563
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
23584
24564
  },
23585
24565
  /**
23586
- * Get all events for a club (staff only)
24566
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
23587
24567
  * @param {*} [options] Override http request option.
23588
24568
  * @throws {RequiredError}
23589
24569
  */
@@ -23788,7 +24768,7 @@ export class EventsStaffApi extends BaseAPI {
23788
24768
  }
23789
24769
 
23790
24770
  /**
23791
- * Get all events for a club (staff only)
24771
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
23792
24772
  * @param {*} [options] Override http request option.
23793
24773
  * @throws {RequiredError}
23794
24774
  * @memberof EventsStaffApi