@tennac-booking/sdk 1.0.143 → 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
@@ -1957,6 +1957,73 @@ export interface ClubAccessSettingsResponse {
1957
1957
  */
1958
1958
  'paymentRequirements': PaymentRequirementsSettings | null;
1959
1959
  }
1960
+ /**
1961
+ *
1962
+ * @export
1963
+ * @interface ClubCustomerSettingsResponse
1964
+ */
1965
+ export interface ClubCustomerSettingsResponse {
1966
+ /**
1967
+ *
1968
+ * @type {string}
1969
+ * @memberof ClubCustomerSettingsResponse
1970
+ */
1971
+ 'userId': string;
1972
+ /**
1973
+ *
1974
+ * @type {string}
1975
+ * @memberof ClubCustomerSettingsResponse
1976
+ */
1977
+ 'clubId': string;
1978
+ /**
1979
+ *
1980
+ * @type {number}
1981
+ * @memberof ClubCustomerSettingsResponse
1982
+ */
1983
+ 'credits': number;
1984
+ /**
1985
+ *
1986
+ * @type {boolean}
1987
+ * @memberof ClubCustomerSettingsResponse
1988
+ */
1989
+ 'isBanned': boolean;
1990
+ /**
1991
+ *
1992
+ * @type {boolean}
1993
+ * @memberof ClubCustomerSettingsResponse
1994
+ */
1995
+ 'isIllimited': boolean;
1996
+ /**
1997
+ *
1998
+ * @type {boolean}
1999
+ * @memberof ClubCustomerSettingsResponse
2000
+ */
2001
+ 'isFree': boolean;
2002
+ /**
2003
+ *
2004
+ * @type {boolean}
2005
+ * @memberof ClubCustomerSettingsResponse
2006
+ */
2007
+ 'isNoShowForced': boolean;
2008
+ /**
2009
+ *
2010
+ * @type {boolean}
2011
+ * @memberof ClubCustomerSettingsResponse
2012
+ */
2013
+ 'paymentMethodSetupCompleted': boolean;
2014
+ /**
2015
+ *
2016
+ * @type {string}
2017
+ * @memberof ClubCustomerSettingsResponse
2018
+ */
2019
+ 'defaultPaymentMethodId': string | null;
2020
+ /**
2021
+ *
2022
+ * @type {Array<string>}
2023
+ * @memberof ClubCustomerSettingsResponse
2024
+ */
2025
+ 'subscriptions': Array<string>;
2026
+ }
1960
2027
  /**
1961
2028
  *
1962
2029
  * @export
@@ -3787,6 +3854,18 @@ export interface CreateBookingRequest {
3787
3854
  * @memberof CreateBookingRequest
3788
3855
  */
3789
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;
3790
3869
  }
3791
3870
 
3792
3871
 
@@ -4051,6 +4130,12 @@ export interface CreateEventRequest {
4051
4130
  * @memberof CreateEventRequest
4052
4131
  */
4053
4132
  'sponsors'?: Array<EventSponsor>;
4133
+ /**
4134
+ *
4135
+ * @type {string}
4136
+ * @memberof CreateEventRequest
4137
+ */
4138
+ 'registrationOpeningDate': string;
4054
4139
  /**
4055
4140
  *
4056
4141
  * @type {string}
@@ -4190,6 +4275,45 @@ export interface CreateOnsiteInvoiceResponseInvoice {
4190
4275
  }
4191
4276
 
4192
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
+
4193
4317
  /**
4194
4318
  *
4195
4319
  * @export
@@ -5168,6 +5292,12 @@ export interface EventResponse {
5168
5292
  * @memberof EventResponse
5169
5293
  */
5170
5294
  'sponsors'?: Array<EventSponsor>;
5295
+ /**
5296
+ *
5297
+ * @type {string}
5298
+ * @memberof EventResponse
5299
+ */
5300
+ 'registrationOpeningDate': string;
5171
5301
  /**
5172
5302
  *
5173
5303
  * @type {string}
@@ -5604,6 +5734,32 @@ export interface GetInfillPercentagePerPeriod200Response {
5604
5734
  */
5605
5735
  'infillPercentage': number;
5606
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
+ }
5607
5763
  /**
5608
5764
  *
5609
5765
  * @export
@@ -6409,6 +6565,12 @@ export interface JoinEventRequest {
6409
6565
  * @memberof JoinEventRequest
6410
6566
  */
6411
6567
  'players'?: Array<string>;
6568
+ /**
6569
+ *
6570
+ * @type {boolean}
6571
+ * @memberof JoinEventRequest
6572
+ */
6573
+ 'isOpen'?: boolean;
6412
6574
  /**
6413
6575
  *
6414
6576
  * @type {boolean}
@@ -6557,6 +6719,101 @@ export interface JoinEventResponseOnsitePaymentsInner {
6557
6719
  }
6558
6720
 
6559
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
+ }
6560
6817
  /**
6561
6818
  *
6562
6819
  * @export
@@ -10544,6 +10801,12 @@ export interface UpdateEventRequest {
10544
10801
  * @memberof UpdateEventRequest
10545
10802
  */
10546
10803
  'levels'?: Array<string | null>;
10804
+ /**
10805
+ *
10806
+ * @type {string}
10807
+ * @memberof UpdateEventRequest
10808
+ */
10809
+ 'registrationOpeningDate'?: string;
10547
10810
  /**
10548
10811
  *
10549
10812
  * @type {Array<EventSponsor>}
@@ -11932,6 +12195,44 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
11932
12195
  options: localVarRequestOptions,
11933
12196
  };
11934
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
+ },
11935
12236
  /**
11936
12237
  * Recherche des créneaux disponibles pour une réservation rapide
11937
12238
  * @param {number} [latitude]
@@ -12016,30 +12317,110 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
12016
12317
  options: localVarRequestOptions,
12017
12318
  };
12018
12319
  },
12019
- }
12020
- };
12021
-
12022
- /**
12023
- * BookingsApi - functional programming interface
12024
- * @export
12025
- */
12026
- export const BookingsApiFp = function(configuration?: Configuration) {
12027
- const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
12028
- return {
12029
12320
  /**
12030
- * Obtenir l\'historique d\'une réservation par ID
12321
+ *
12031
12322
  * @param {string} bookingId
12323
+ * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
12032
12324
  * @param {*} [options] Override http request option.
12033
12325
  * @throws {RequiredError}
12034
12326
  */
12035
- async getBookingHistory(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingHistoryPopulated>> {
12036
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingHistory(bookingId, options);
12037
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12038
- const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingHistory']?.[localVarOperationServerIndex]?.url;
12039
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12040
- },
12041
- /**
12042
- *
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
+
12391
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12392
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12393
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12394
+
12395
+ return {
12396
+ url: toPathString(localVarUrlObj),
12397
+ options: localVarRequestOptions,
12398
+ };
12399
+ },
12400
+ }
12401
+ };
12402
+
12403
+ /**
12404
+ * BookingsApi - functional programming interface
12405
+ * @export
12406
+ */
12407
+ export const BookingsApiFp = function(configuration?: Configuration) {
12408
+ const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
12409
+ return {
12410
+ /**
12411
+ * Obtenir l\'historique d\'une réservation par ID
12412
+ * @param {string} bookingId
12413
+ * @param {*} [options] Override http request option.
12414
+ * @throws {RequiredError}
12415
+ */
12416
+ async getBookingHistory(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingHistoryPopulated>> {
12417
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingHistory(bookingId, options);
12418
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12419
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingHistory']?.[localVarOperationServerIndex]?.url;
12420
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12421
+ },
12422
+ /**
12423
+ *
12043
12424
  * @param {BookingPriceBody} bookingPriceBody
12044
12425
  * @param {*} [options] Override http request option.
12045
12426
  * @throws {RequiredError}
@@ -12050,6 +12431,18 @@ export const BookingsApiFp = function(configuration?: Configuration) {
12050
12431
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingPrice']?.[localVarOperationServerIndex]?.url;
12051
12432
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12052
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
+ },
12053
12446
  /**
12054
12447
  * Recherche des créneaux disponibles pour une réservation rapide
12055
12448
  * @param {number} [latitude]
@@ -12072,6 +12465,31 @@ export const BookingsApiFp = function(configuration?: Configuration) {
12072
12465
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getQuickReservationSlots']?.[localVarOperationServerIndex]?.url;
12073
12466
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12074
12467
  },
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
+ },
12075
12493
  }
12076
12494
  };
12077
12495
 
@@ -12100,6 +12518,15 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
12100
12518
  getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse> {
12101
12519
  return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
12102
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
+ },
12103
12530
  /**
12104
12531
  * Recherche des créneaux disponibles pour une réservation rapide
12105
12532
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -12109,6 +12536,24 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
12109
12536
  getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<QuickReservationResponse> {
12110
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));
12111
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
+ },
12112
12557
  };
12113
12558
  };
12114
12559
 
@@ -12140,6 +12585,20 @@ export interface BookingsApiGetBookingPriceRequest {
12140
12585
  readonly bookingPriceBody: BookingPriceBody
12141
12586
  }
12142
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
+
12143
12602
  /**
12144
12603
  * Request parameters for getQuickReservationSlots operation in BookingsApi.
12145
12604
  * @export
@@ -12224,6 +12683,41 @@ export interface BookingsApiGetQuickReservationSlotsRequest {
12224
12683
  readonly maxClubs?: number
12225
12684
  }
12226
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
+
12227
12721
  /**
12228
12722
  * BookingsApi - object-oriented interface
12229
12723
  * @export
@@ -12253,6 +12747,17 @@ export class BookingsApi extends BaseAPI {
12253
12747
  return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
12254
12748
  }
12255
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
+
12256
12761
  /**
12257
12762
  * Recherche des créneaux disponibles pour une réservation rapide
12258
12763
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -12263,6 +12768,28 @@ export class BookingsApi extends BaseAPI {
12263
12768
  public getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig) {
12264
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));
12265
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
+ }
12266
12793
  }
12267
12794
 
12268
12795
 
@@ -13335,6 +13862,45 @@ export const BookingsUserApiAxiosParamCreator = function (configuration?: Config
13335
13862
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13336
13863
  localVarRequestOptions.data = serializeDataIfNeeded(createBookingRequest, localVarRequestOptions, configuration)
13337
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
+
13338
13904
  return {
13339
13905
  url: toPathString(localVarUrlObj),
13340
13906
  options: localVarRequestOptions,
@@ -13374,6 +13940,18 @@ export const BookingsUserApiFp = function(configuration?: Configuration) {
13374
13940
  const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.createBooking']?.[localVarOperationServerIndex]?.url;
13375
13941
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13376
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
+ },
13377
13955
  }
13378
13956
  };
13379
13957
 
@@ -13402,6 +13980,15 @@ export const BookingsUserApiFactory = function (configuration?: Configuration, b
13402
13980
  createBooking(requestParameters: BookingsUserApiCreateBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse> {
13403
13981
  return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
13404
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
+ },
13405
13992
  };
13406
13993
  };
13407
13994
 
@@ -13433,6 +14020,20 @@ export interface BookingsUserApiCreateBookingRequest {
13433
14020
  readonly createBookingRequest: CreateBookingRequest
13434
14021
  }
13435
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
+
13436
14037
  /**
13437
14038
  * BookingsUserApi - object-oriented interface
13438
14039
  * @export
@@ -13461,6 +14062,17 @@ export class BookingsUserApi extends BaseAPI {
13461
14062
  public createBooking(requestParameters: BookingsUserApiCreateBookingRequest, options?: RawAxiosRequestConfig) {
13462
14063
  return BookingsUserApiFp(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
13463
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
+ }
13464
14076
  }
13465
14077
 
13466
14078
 
@@ -15913,18 +16525,338 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
15913
16525
 
15914
16526
 
15915
16527
  /**
15916
- * ClubRolesManagerApi - axios parameter creator
16528
+ * ClubCustomerMeApi - axios parameter creator
15917
16529
  * @export
15918
16530
  */
15919
- export const ClubRolesManagerApiAxiosParamCreator = function (configuration?: Configuration) {
16531
+ export const ClubCustomerMeApiAxiosParamCreator = function (configuration?: Configuration) {
15920
16532
  return {
15921
16533
  /**
15922
- * Crée un rôle de club
15923
- * @param {CreateClubRoleRequest} createClubRoleRequest
16534
+ *
15924
16535
  * @param {*} [options] Override http request option.
15925
16536
  * @throws {RequiredError}
15926
16537
  */
15927
- createClubRole: async (createClubRoleRequest: CreateClubRoleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
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
+
16628
+ /**
16629
+ * ClubCustomerStaffApi - axios parameter creator
16630
+ * @export
16631
+ */
16632
+ export const ClubCustomerStaffApiAxiosParamCreator = function (configuration?: Configuration) {
16633
+ return {
16634
+ /**
16635
+ *
16636
+ * @param {string} userId
16637
+ * @param {*} [options] Override http request option.
16638
+ * @throws {RequiredError}
16639
+ */
16640
+ getClubCustomerSettings: async (userId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16641
+ // verify required parameter 'userId' is not null or undefined
16642
+ assertParamExists('getClubCustomerSettings', 'userId', userId)
16643
+ const localVarPath = `/api/clubCustomers/clubCustomer/{userId}/settings`
16644
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
16645
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16646
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16647
+ let baseOptions;
16648
+ if (configuration) {
16649
+ baseOptions = configuration.baseOptions;
16650
+ }
16651
+
16652
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16653
+ const localVarHeaderParameter = {} as any;
16654
+ const localVarQueryParameter = {} as any;
16655
+
16656
+ // authentication bearerAuth required
16657
+ // http bearer authentication required
16658
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16659
+
16660
+
16661
+
16662
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16663
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16664
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16665
+
16666
+ return {
16667
+ url: toPathString(localVarUrlObj),
16668
+ options: localVarRequestOptions,
16669
+ };
16670
+ },
16671
+ /**
16672
+ *
16673
+ * @param {string} userId
16674
+ * @param {ClubCustomerSettingsResponse} clubCustomerSettingsResponse
16675
+ * @param {*} [options] Override http request option.
16676
+ * @throws {RequiredError}
16677
+ */
16678
+ updateClubCustomerSettings: async (userId: string, clubCustomerSettingsResponse: ClubCustomerSettingsResponse, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16679
+ // verify required parameter 'userId' is not null or undefined
16680
+ assertParamExists('updateClubCustomerSettings', 'userId', userId)
16681
+ // verify required parameter 'clubCustomerSettingsResponse' is not null or undefined
16682
+ assertParamExists('updateClubCustomerSettings', 'clubCustomerSettingsResponse', clubCustomerSettingsResponse)
16683
+ const localVarPath = `/api/clubCustomers/clubCustomer/{userId}/settings`
16684
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
16685
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16686
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16687
+ let baseOptions;
16688
+ if (configuration) {
16689
+ baseOptions = configuration.baseOptions;
16690
+ }
16691
+
16692
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
16693
+ const localVarHeaderParameter = {} as any;
16694
+ const localVarQueryParameter = {} as any;
16695
+
16696
+ // authentication bearerAuth required
16697
+ // http bearer authentication required
16698
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16699
+
16700
+
16701
+
16702
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16703
+
16704
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16705
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16706
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16707
+ localVarRequestOptions.data = serializeDataIfNeeded(clubCustomerSettingsResponse, localVarRequestOptions, configuration)
16708
+
16709
+ return {
16710
+ url: toPathString(localVarUrlObj),
16711
+ options: localVarRequestOptions,
16712
+ };
16713
+ },
16714
+ }
16715
+ };
16716
+
16717
+ /**
16718
+ * ClubCustomerStaffApi - functional programming interface
16719
+ * @export
16720
+ */
16721
+ export const ClubCustomerStaffApiFp = function(configuration?: Configuration) {
16722
+ const localVarAxiosParamCreator = ClubCustomerStaffApiAxiosParamCreator(configuration)
16723
+ return {
16724
+ /**
16725
+ *
16726
+ * @param {string} userId
16727
+ * @param {*} [options] Override http request option.
16728
+ * @throws {RequiredError}
16729
+ */
16730
+ async getClubCustomerSettings(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubCustomerSettingsResponse>> {
16731
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubCustomerSettings(userId, options);
16732
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16733
+ const localVarOperationServerBasePath = operationServerMap['ClubCustomerStaffApi.getClubCustomerSettings']?.[localVarOperationServerIndex]?.url;
16734
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16735
+ },
16736
+ /**
16737
+ *
16738
+ * @param {string} userId
16739
+ * @param {ClubCustomerSettingsResponse} clubCustomerSettingsResponse
16740
+ * @param {*} [options] Override http request option.
16741
+ * @throws {RequiredError}
16742
+ */
16743
+ async updateClubCustomerSettings(userId: string, clubCustomerSettingsResponse: ClubCustomerSettingsResponse, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubCustomerSettingsResponse>> {
16744
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateClubCustomerSettings(userId, clubCustomerSettingsResponse, options);
16745
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16746
+ const localVarOperationServerBasePath = operationServerMap['ClubCustomerStaffApi.updateClubCustomerSettings']?.[localVarOperationServerIndex]?.url;
16747
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16748
+ },
16749
+ }
16750
+ };
16751
+
16752
+ /**
16753
+ * ClubCustomerStaffApi - factory interface
16754
+ * @export
16755
+ */
16756
+ export const ClubCustomerStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
16757
+ const localVarFp = ClubCustomerStaffApiFp(configuration)
16758
+ return {
16759
+ /**
16760
+ *
16761
+ * @param {ClubCustomerStaffApiGetClubCustomerSettingsRequest} requestParameters Request parameters.
16762
+ * @param {*} [options] Override http request option.
16763
+ * @throws {RequiredError}
16764
+ */
16765
+ getClubCustomerSettings(requestParameters: ClubCustomerStaffApiGetClubCustomerSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubCustomerSettingsResponse> {
16766
+ return localVarFp.getClubCustomerSettings(requestParameters.userId, options).then((request) => request(axios, basePath));
16767
+ },
16768
+ /**
16769
+ *
16770
+ * @param {ClubCustomerStaffApiUpdateClubCustomerSettingsRequest} requestParameters Request parameters.
16771
+ * @param {*} [options] Override http request option.
16772
+ * @throws {RequiredError}
16773
+ */
16774
+ updateClubCustomerSettings(requestParameters: ClubCustomerStaffApiUpdateClubCustomerSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubCustomerSettingsResponse> {
16775
+ return localVarFp.updateClubCustomerSettings(requestParameters.userId, requestParameters.clubCustomerSettingsResponse, options).then((request) => request(axios, basePath));
16776
+ },
16777
+ };
16778
+ };
16779
+
16780
+ /**
16781
+ * Request parameters for getClubCustomerSettings operation in ClubCustomerStaffApi.
16782
+ * @export
16783
+ * @interface ClubCustomerStaffApiGetClubCustomerSettingsRequest
16784
+ */
16785
+ export interface ClubCustomerStaffApiGetClubCustomerSettingsRequest {
16786
+ /**
16787
+ *
16788
+ * @type {string}
16789
+ * @memberof ClubCustomerStaffApiGetClubCustomerSettings
16790
+ */
16791
+ readonly userId: string
16792
+ }
16793
+
16794
+ /**
16795
+ * Request parameters for updateClubCustomerSettings operation in ClubCustomerStaffApi.
16796
+ * @export
16797
+ * @interface ClubCustomerStaffApiUpdateClubCustomerSettingsRequest
16798
+ */
16799
+ export interface ClubCustomerStaffApiUpdateClubCustomerSettingsRequest {
16800
+ /**
16801
+ *
16802
+ * @type {string}
16803
+ * @memberof ClubCustomerStaffApiUpdateClubCustomerSettings
16804
+ */
16805
+ readonly userId: string
16806
+
16807
+ /**
16808
+ *
16809
+ * @type {ClubCustomerSettingsResponse}
16810
+ * @memberof ClubCustomerStaffApiUpdateClubCustomerSettings
16811
+ */
16812
+ readonly clubCustomerSettingsResponse: ClubCustomerSettingsResponse
16813
+ }
16814
+
16815
+ /**
16816
+ * ClubCustomerStaffApi - object-oriented interface
16817
+ * @export
16818
+ * @class ClubCustomerStaffApi
16819
+ * @extends {BaseAPI}
16820
+ */
16821
+ export class ClubCustomerStaffApi extends BaseAPI {
16822
+ /**
16823
+ *
16824
+ * @param {ClubCustomerStaffApiGetClubCustomerSettingsRequest} requestParameters Request parameters.
16825
+ * @param {*} [options] Override http request option.
16826
+ * @throws {RequiredError}
16827
+ * @memberof ClubCustomerStaffApi
16828
+ */
16829
+ public getClubCustomerSettings(requestParameters: ClubCustomerStaffApiGetClubCustomerSettingsRequest, options?: RawAxiosRequestConfig) {
16830
+ return ClubCustomerStaffApiFp(this.configuration).getClubCustomerSettings(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
16831
+ }
16832
+
16833
+ /**
16834
+ *
16835
+ * @param {ClubCustomerStaffApiUpdateClubCustomerSettingsRequest} requestParameters Request parameters.
16836
+ * @param {*} [options] Override http request option.
16837
+ * @throws {RequiredError}
16838
+ * @memberof ClubCustomerStaffApi
16839
+ */
16840
+ public updateClubCustomerSettings(requestParameters: ClubCustomerStaffApiUpdateClubCustomerSettingsRequest, options?: RawAxiosRequestConfig) {
16841
+ return ClubCustomerStaffApiFp(this.configuration).updateClubCustomerSettings(requestParameters.userId, requestParameters.clubCustomerSettingsResponse, options).then((request) => request(this.axios, this.basePath));
16842
+ }
16843
+ }
16844
+
16845
+
16846
+
16847
+ /**
16848
+ * ClubRolesManagerApi - axios parameter creator
16849
+ * @export
16850
+ */
16851
+ export const ClubRolesManagerApiAxiosParamCreator = function (configuration?: Configuration) {
16852
+ return {
16853
+ /**
16854
+ * Crée un rôle de club
16855
+ * @param {CreateClubRoleRequest} createClubRoleRequest
16856
+ * @param {*} [options] Override http request option.
16857
+ * @throws {RequiredError}
16858
+ */
16859
+ createClubRole: async (createClubRoleRequest: CreateClubRoleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15928
16860
  // verify required parameter 'createClubRoleRequest' is not null or undefined
15929
16861
  assertParamExists('createClubRole', 'createClubRoleRequest', createClubRoleRequest)
15930
16862
  const localVarPath = `/api/club-roles`;
@@ -17794,20 +18726,53 @@ export const ClubsApiAxiosParamCreator = function (configuration?: Configuration
17794
18726
  };
17795
18727
  },
17796
18728
  /**
17797
- *
17798
- * @param {string} id
17799
- * @param {string} sportId
18729
+ *
18730
+ * @param {string} id
18731
+ * @param {string} sportId
18732
+ * @param {*} [options] Override http request option.
18733
+ * @throws {RequiredError}
18734
+ */
18735
+ getCourtsByClubAndSportById: async (id: string, sportId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18736
+ // verify required parameter 'id' is not null or undefined
18737
+ assertParamExists('getCourtsByClubAndSportById', 'id', id)
18738
+ // verify required parameter 'sportId' is not null or undefined
18739
+ assertParamExists('getCourtsByClubAndSportById', 'sportId', sportId)
18740
+ const localVarPath = `/api/clubs/{id}/sports/{sportId}/courts`
18741
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18742
+ .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
18743
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18744
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18745
+ let baseOptions;
18746
+ if (configuration) {
18747
+ baseOptions = configuration.baseOptions;
18748
+ }
18749
+
18750
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18751
+ const localVarHeaderParameter = {} as any;
18752
+ const localVarQueryParameter = {} as any;
18753
+
18754
+
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
17800
18768
  * @param {*} [options] Override http request option.
17801
18769
  * @throws {RequiredError}
17802
18770
  */
17803
- getCourtsByClubAndSportById: async (id: string, sportId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17804
- // verify required parameter 'id' is not null or undefined
17805
- assertParamExists('getCourtsByClubAndSportById', 'id', id)
17806
- // verify required parameter 'sportId' is not null or undefined
17807
- assertParamExists('getCourtsByClubAndSportById', 'sportId', sportId)
17808
- const localVarPath = `/api/clubs/{id}/sports/{sportId}/courts`
17809
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
17810
- .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
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)));
17811
18776
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17812
18777
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17813
18778
  let baseOptions;
@@ -18071,6 +19036,18 @@ export const ClubsApiFp = function(configuration?: Configuration) {
18071
19036
  const localVarOperationServerBasePath = operationServerMap['ClubsApi.getCourtsByClubAndSportById']?.[localVarOperationServerIndex]?.url;
18072
19037
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18073
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
+ },
18074
19051
  /**
18075
19052
  *
18076
19053
  * @param {string} id
@@ -18212,6 +19189,15 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
18212
19189
  getCourtsByClubAndSportById(requestParameters: ClubsApiGetCourtsByClubAndSportByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetCourtsByClubAndSportById200Response> {
18213
19190
  return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(axios, basePath));
18214
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
+ },
18215
19201
  /**
18216
19202
  *
18217
19203
  * @param {ClubsApiGetPublishedActualitiesRequest} requestParameters Request parameters.
@@ -18368,6 +19354,20 @@ export interface ClubsApiGetCourtsByClubAndSportByIdRequest {
18368
19354
  readonly sportId: string
18369
19355
  }
18370
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
+
18371
19371
  /**
18372
19372
  * Request parameters for getPublishedActualities operation in ClubsApi.
18373
19373
  * @export
@@ -18534,6 +19534,17 @@ export class ClubsApi extends BaseAPI {
18534
19534
  return ClubsApiFp(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
18535
19535
  }
18536
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
+
18537
19548
  /**
18538
19549
  *
18539
19550
  * @param {ClubsApiGetPublishedActualitiesRequest} requestParameters Request parameters.
@@ -21559,6 +22570,45 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
21559
22570
 
21560
22571
 
21561
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
+
21562
22612
  setSearchParams(localVarUrlObj, localVarQueryParameter);
21563
22613
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21564
22614
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -21660,6 +22710,49 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
21660
22710
  options: localVarRequestOptions,
21661
22711
  };
21662
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
+ },
21663
22756
  /**
21664
22757
  * Leave an event (user)
21665
22758
  * @param {string} eventId
@@ -21688,6 +22781,43 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
21688
22781
 
21689
22782
 
21690
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
+
21691
22821
  setSearchParams(localVarUrlObj, localVarQueryParameter);
21692
22822
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21693
22823
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -21746,6 +22876,19 @@ export const EventsApiFp = function(configuration?: Configuration) {
21746
22876
  const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventById']?.[localVarOperationServerIndex]?.url;
21747
22877
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21748
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
+ },
21749
22892
  /**
21750
22893
  * Get all published events for a club
21751
22894
  * @param {string} [clubId]
@@ -21774,6 +22917,19 @@ export const EventsApiFp = function(configuration?: Configuration) {
21774
22917
  const localVarOperationServerBasePath = operationServerMap['EventsApi.joinEvent']?.[localVarOperationServerIndex]?.url;
21775
22918
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21776
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
+ },
21777
22933
  /**
21778
22934
  * Leave an event (user)
21779
22935
  * @param {string} eventId
@@ -21786,6 +22942,18 @@ export const EventsApiFp = function(configuration?: Configuration) {
21786
22942
  const localVarOperationServerBasePath = operationServerMap['EventsApi.leaveEvent']?.[localVarOperationServerIndex]?.url;
21787
22943
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21788
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
+ },
21789
22957
  }
21790
22958
  };
21791
22959
 
@@ -21823,6 +22991,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
21823
22991
  getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
21824
22992
  return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
21825
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
+ },
21826
23003
  /**
21827
23004
  * Get all published events for a club
21828
23005
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -21841,6 +23018,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
21841
23018
  joinEvent(requestParameters: EventsApiJoinEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventResponse> {
21842
23019
  return localVarFp.joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(axios, basePath));
21843
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
+ },
21844
23030
  /**
21845
23031
  * Leave an event (user)
21846
23032
  * @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
@@ -21850,6 +23036,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
21850
23036
  leaveEvent(requestParameters: EventsApiLeaveEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventResponse> {
21851
23037
  return localVarFp.leaveEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
21852
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
+ },
21853
23048
  };
21854
23049
  };
21855
23050
 
@@ -21916,6 +23111,27 @@ export interface EventsApiGetEventByIdRequest {
21916
23111
  readonly userId?: string
21917
23112
  }
21918
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
+
21919
23135
  /**
21920
23136
  * Request parameters for getPublishedEventsByClubId operation in EventsApi.
21921
23137
  * @export
@@ -21972,6 +23188,27 @@ export interface EventsApiJoinEventRequest {
21972
23188
  readonly joinEventRequest: JoinEventRequest
21973
23189
  }
21974
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
+
21975
23212
  /**
21976
23213
  * Request parameters for leaveEvent operation in EventsApi.
21977
23214
  * @export
@@ -21986,6 +23223,20 @@ export interface EventsApiLeaveEventRequest {
21986
23223
  readonly eventId: string
21987
23224
  }
21988
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
+
21989
23240
  /**
21990
23241
  * EventsApi - object-oriented interface
21991
23242
  * @export
@@ -22026,6 +23277,17 @@ export class EventsApi extends BaseAPI {
22026
23277
  return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
22027
23278
  }
22028
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
+
22029
23291
  /**
22030
23292
  * Get all published events for a club
22031
23293
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -22048,6 +23310,17 @@ export class EventsApi extends BaseAPI {
22048
23310
  return EventsApiFp(this.configuration).joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(this.axios, this.basePath));
22049
23311
  }
22050
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
+
22051
23324
  /**
22052
23325
  * Leave an event (user)
22053
23326
  * @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
@@ -22058,6 +23331,17 @@ export class EventsApi extends BaseAPI {
22058
23331
  public leaveEvent(requestParameters: EventsApiLeaveEventRequest, options?: RawAxiosRequestConfig) {
22059
23332
  return EventsApiFp(this.configuration).leaveEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
22060
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
+ }
22061
23345
  }
22062
23346
 
22063
23347
  /**
@@ -23020,7 +24304,7 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
23020
24304
  };
23021
24305
  },
23022
24306
  /**
23023
- * 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 );
23024
24308
  * @param {*} [options] Override http request option.
23025
24309
  * @throws {RequiredError}
23026
24310
  */
@@ -23208,7 +24492,7 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
23208
24492
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23209
24493
  },
23210
24494
  /**
23211
- * 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 );
23212
24496
  * @param {*} [options] Override http request option.
23213
24497
  * @throws {RequiredError}
23214
24498
  */
@@ -23279,7 +24563,7 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
23279
24563
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
23280
24564
  },
23281
24565
  /**
23282
- * 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 );
23283
24567
  * @param {*} [options] Override http request option.
23284
24568
  * @throws {RequiredError}
23285
24569
  */
@@ -23484,7 +24768,7 @@ export class EventsStaffApi extends BaseAPI {
23484
24768
  }
23485
24769
 
23486
24770
  /**
23487
- * 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 );
23488
24772
  * @param {*} [options] Override http request option.
23489
24773
  * @throws {RequiredError}
23490
24774
  * @memberof EventsStaffApi