@tennac-booking/sdk 1.0.174 → 1.0.176

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.
Files changed (51) hide show
  1. package/.openapi-generator/FILES +404 -399
  2. package/README.md +30 -13
  3. package/api.ts +2072 -852
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1231 -506
  8. package/dist/api.js +2167 -1382
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +1231 -506
  16. package/dist/esm/api.js +2276 -1491
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BookingsApi.md +4 -4
  28. package/docs/BookingsUserApi.md +56 -0
  29. package/docs/ClubsManagerApi.md +6 -6
  30. package/docs/CreateOpenBookingRequest.md +4 -0
  31. package/docs/EventsApi.md +2 -2
  32. package/docs/{JoinWaitList200Response.md → JoinEventWaitList200Response.md} +3 -7
  33. package/docs/{RequestPasswordReset200Response.md → LeaveEventWaitList200Response.md} +3 -3
  34. package/docs/OpenBookingInfo.md +48 -0
  35. package/docs/OpenBookingPlayerInfo.md +26 -0
  36. package/docs/OpenBookingSlotInfo.md +24 -0
  37. package/docs/OpenBookingSportInfo.md +24 -0
  38. package/docs/{GetOpenBookings200Response.md → OpenBookingsResponse.md} +4 -4
  39. package/docs/UpdateOpenBooking200Response.md +22 -0
  40. package/docs/UpdateOpenBookingRequest.md +22 -0
  41. package/docs/UsersApi.md +69 -14
  42. package/docs/WaitListApi.md +499 -0
  43. package/docs/{GetWaitListForEvent200Response.md → WaitListListResponse.md} +5 -5
  44. package/docs/{GetUserPosition200Response.md → WaitListPositionResponse.md} +5 -5
  45. package/docs/WaitListResponse.md +12 -6
  46. package/docs/WaitListStaffApi.md +331 -0
  47. package/index.ts +1 -1
  48. package/package.json +1 -1
  49. package/docs/EventsWaitListApi.md +0 -175
  50. package/docs/EventsWaitListStaffApi.md +0 -115
  51. package/docs/JoinWaitListRequest.md +0 -22
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.172
7
+ * The version of the OpenAPI document: 1.0.176
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4589,6 +4589,18 @@ export interface CreateOpenBookingRequest {
4589
4589
  * @memberof CreateOpenBookingRequest
4590
4590
  */
4591
4591
  'maxPlayers': number;
4592
+ /**
4593
+ * Description de la réservation ouverte
4594
+ * @type {string}
4595
+ * @memberof CreateOpenBookingRequest
4596
+ */
4597
+ 'description'?: string;
4598
+ /**
4599
+ * Niveau minimal souhaité pour rejoindre
4600
+ * @type {string}
4601
+ * @memberof CreateOpenBookingRequest
4602
+ */
4603
+ 'minLevel'?: string;
4592
4604
  }
4593
4605
 
4594
4606
 
@@ -6269,19 +6281,6 @@ export interface GetInfillPercentagePerPeriod200Response {
6269
6281
  */
6270
6282
  'infillPercentage': number;
6271
6283
  }
6272
- /**
6273
- *
6274
- * @export
6275
- * @interface GetOpenBookings200Response
6276
- */
6277
- export interface GetOpenBookings200Response {
6278
- /**
6279
- *
6280
- * @type {Array<BookingInfo>}
6281
- * @memberof GetOpenBookings200Response
6282
- */
6283
- 'bookings': Array<BookingInfo>;
6284
- }
6285
6284
  /**
6286
6285
  *
6287
6286
  * @export
@@ -6346,44 +6345,6 @@ export interface GetSlotsByClubById200Response {
6346
6345
  */
6347
6346
  'slots': Array<any>;
6348
6347
  }
6349
- /**
6350
- *
6351
- * @export
6352
- * @interface GetUserPosition200Response
6353
- */
6354
- export interface GetUserPosition200Response {
6355
- /**
6356
- *
6357
- * @type {string}
6358
- * @memberof GetUserPosition200Response
6359
- */
6360
- 'message'?: string;
6361
- /**
6362
- *
6363
- * @type {number}
6364
- * @memberof GetUserPosition200Response
6365
- */
6366
- 'position': number | null;
6367
- }
6368
- /**
6369
- *
6370
- * @export
6371
- * @interface GetWaitListForEvent200Response
6372
- */
6373
- export interface GetWaitListForEvent200Response {
6374
- /**
6375
- *
6376
- * @type {number}
6377
- * @memberof GetWaitListForEvent200Response
6378
- */
6379
- 'total': number;
6380
- /**
6381
- *
6382
- * @type {Array<WaitListResponse>}
6383
- * @memberof GetWaitListForEvent200Response
6384
- */
6385
- 'waitList': Array<WaitListResponse>;
6386
- }
6387
6348
  /**
6388
6349
  *
6389
6350
  * @export
@@ -7370,6 +7331,25 @@ export interface JoinEventResponseOnsitePaymentsInner {
7370
7331
  }
7371
7332
 
7372
7333
 
7334
+ /**
7335
+ *
7336
+ * @export
7337
+ * @interface JoinEventWaitList200Response
7338
+ */
7339
+ export interface JoinEventWaitList200Response {
7340
+ /**
7341
+ *
7342
+ * @type {WaitListResponse}
7343
+ * @memberof JoinEventWaitList200Response
7344
+ */
7345
+ 'waitList': WaitListResponse;
7346
+ /**
7347
+ *
7348
+ * @type {string}
7349
+ * @memberof JoinEventWaitList200Response
7350
+ */
7351
+ 'message': string;
7352
+ }
7373
7353
  /**
7374
7354
  *
7375
7355
  * @export
@@ -7465,58 +7445,6 @@ export interface JoinOpenEventResponse {
7465
7445
  */
7466
7446
  'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
7467
7447
  }
7468
- /**
7469
- *
7470
- * @export
7471
- * @interface JoinWaitList200Response
7472
- */
7473
- export interface JoinWaitList200Response {
7474
- /**
7475
- *
7476
- * @type {boolean}
7477
- * @memberof JoinWaitList200Response
7478
- */
7479
- 'requiresSetup'?: boolean;
7480
- /**
7481
- *
7482
- * @type {string}
7483
- * @memberof JoinWaitList200Response
7484
- */
7485
- 'paymentLink'?: string;
7486
- /**
7487
- *
7488
- * @type {WaitListResponse}
7489
- * @memberof JoinWaitList200Response
7490
- */
7491
- 'waitList': WaitListResponse;
7492
- /**
7493
- *
7494
- * @type {string}
7495
- * @memberof JoinWaitList200Response
7496
- */
7497
- 'message': string;
7498
- }
7499
- /**
7500
- *
7501
- * @export
7502
- * @interface JoinWaitListRequest
7503
- */
7504
- export interface JoinWaitListRequest {
7505
- /**
7506
- *
7507
- * @type {PaymentMethod}
7508
- * @memberof JoinWaitListRequest
7509
- */
7510
- 'paymentMethod'?: PaymentMethod;
7511
- /**
7512
- *
7513
- * @type {boolean}
7514
- * @memberof JoinWaitListRequest
7515
- */
7516
- 'useDefaultPaymentMethod'?: boolean;
7517
- }
7518
-
7519
-
7520
7448
  /**
7521
7449
  *
7522
7450
  * @export
@@ -7623,6 +7551,19 @@ export interface LeastBookedWeekdayResponse {
7623
7551
  */
7624
7552
  'weekdayAverages': Array<WeekdayAverageItem>;
7625
7553
  }
7554
+ /**
7555
+ *
7556
+ * @export
7557
+ * @interface LeaveEventWaitList200Response
7558
+ */
7559
+ export interface LeaveEventWaitList200Response {
7560
+ /**
7561
+ *
7562
+ * @type {string}
7563
+ * @memberof LeaveEventWaitList200Response
7564
+ */
7565
+ 'message': string;
7566
+ }
7626
7567
  /**
7627
7568
  *
7628
7569
  * @export
@@ -7991,6 +7932,199 @@ export interface OffPeakRule {
7991
7932
  */
7992
7933
  'dayOfWeek': number;
7993
7934
  }
7935
+ /**
7936
+ *
7937
+ * @export
7938
+ * @interface OpenBookingInfo
7939
+ */
7940
+ export interface OpenBookingInfo {
7941
+ /**
7942
+ * ID de la réservation
7943
+ * @type {string}
7944
+ * @memberof OpenBookingInfo
7945
+ */
7946
+ 'id': string;
7947
+ /**
7948
+ * ID du club
7949
+ * @type {string}
7950
+ * @memberof OpenBookingInfo
7951
+ */
7952
+ 'clubId': string;
7953
+ /**
7954
+ * ID de l\'utilisateur créateur
7955
+ * @type {string}
7956
+ * @memberof OpenBookingInfo
7957
+ */
7958
+ 'userId': string;
7959
+ /**
7960
+ * Liste des joueurs avec leurs infos
7961
+ * @type {Array<OpenBookingPlayerInfo>}
7962
+ * @memberof OpenBookingInfo
7963
+ */
7964
+ 'players': Array<OpenBookingPlayerInfo>;
7965
+ /**
7966
+ *
7967
+ * @type {BookingStatus}
7968
+ * @memberof OpenBookingInfo
7969
+ */
7970
+ 'status': BookingStatus;
7971
+ /**
7972
+ * Prix total en euros
7973
+ * @type {number}
7974
+ * @memberof OpenBookingInfo
7975
+ */
7976
+ 'totalPrice': number;
7977
+ /**
7978
+ * Informations des créneaux
7979
+ * @type {Array<OpenBookingSlotInfo>}
7980
+ * @memberof OpenBookingInfo
7981
+ */
7982
+ 'slots': Array<OpenBookingSlotInfo>;
7983
+ /**
7984
+ * Indique si le créateur paie pour tous
7985
+ * @type {boolean}
7986
+ * @memberof OpenBookingInfo
7987
+ */
7988
+ 'isCreatorPayingAll': boolean;
7989
+ /**
7990
+ * Date de création
7991
+ * @type {string}
7992
+ * @memberof OpenBookingInfo
7993
+ */
7994
+ 'createdAt': string;
7995
+ /**
7996
+ * Date de mise à jour
7997
+ * @type {string}
7998
+ * @memberof OpenBookingInfo
7999
+ */
8000
+ 'updatedAt': string;
8001
+ /**
8002
+ *
8003
+ * @type {OpenBookingSportInfo}
8004
+ * @memberof OpenBookingInfo
8005
+ */
8006
+ 'sport'?: OpenBookingSportInfo;
8007
+ /**
8008
+ * Niveau minimal souhaité
8009
+ * @type {string}
8010
+ * @memberof OpenBookingInfo
8011
+ */
8012
+ 'minLevel'?: string;
8013
+ /**
8014
+ * Description de la réservation
8015
+ * @type {string}
8016
+ * @memberof OpenBookingInfo
8017
+ */
8018
+ 'description'?: string;
8019
+ /**
8020
+ * Nombre maximal de joueurs
8021
+ * @type {number}
8022
+ * @memberof OpenBookingInfo
8023
+ */
8024
+ 'maxPlayers'?: number;
8025
+ /**
8026
+ * Nombre de joueurs actuels
8027
+ * @type {number}
8028
+ * @memberof OpenBookingInfo
8029
+ */
8030
+ 'currentPlayersCount': number;
8031
+ }
8032
+
8033
+
8034
+ /**
8035
+ *
8036
+ * @export
8037
+ * @interface OpenBookingPlayerInfo
8038
+ */
8039
+ export interface OpenBookingPlayerInfo {
8040
+ /**
8041
+ * ID du joueur
8042
+ * @type {string}
8043
+ * @memberof OpenBookingPlayerInfo
8044
+ */
8045
+ 'id': string;
8046
+ /**
8047
+ * Prénom
8048
+ * @type {string}
8049
+ * @memberof OpenBookingPlayerInfo
8050
+ */
8051
+ 'firstName': string;
8052
+ /**
8053
+ * Nom
8054
+ * @type {string}
8055
+ * @memberof OpenBookingPlayerInfo
8056
+ */
8057
+ 'lastName': string;
8058
+ /**
8059
+ * Photo de profil
8060
+ * @type {string}
8061
+ * @memberof OpenBookingPlayerInfo
8062
+ */
8063
+ 'profilePicture'?: string;
8064
+ }
8065
+ /**
8066
+ *
8067
+ * @export
8068
+ * @interface OpenBookingSlotInfo
8069
+ */
8070
+ export interface OpenBookingSlotInfo {
8071
+ /**
8072
+ * ID du slot
8073
+ * @type {string}
8074
+ * @memberof OpenBookingSlotInfo
8075
+ */
8076
+ 'id': string;
8077
+ /**
8078
+ * Date de début ISO
8079
+ * @type {string}
8080
+ * @memberof OpenBookingSlotInfo
8081
+ */
8082
+ 'startDate': string;
8083
+ /**
8084
+ * Date de fin ISO
8085
+ * @type {string}
8086
+ * @memberof OpenBookingSlotInfo
8087
+ */
8088
+ 'endDate': string;
8089
+ }
8090
+ /**
8091
+ *
8092
+ * @export
8093
+ * @interface OpenBookingSportInfo
8094
+ */
8095
+ export interface OpenBookingSportInfo {
8096
+ /**
8097
+ * ID du sport
8098
+ * @type {string}
8099
+ * @memberof OpenBookingSportInfo
8100
+ */
8101
+ 'id': string;
8102
+ /**
8103
+ * Clé du sport
8104
+ * @type {string}
8105
+ * @memberof OpenBookingSportInfo
8106
+ */
8107
+ 'key': string;
8108
+ /**
8109
+ * Nom du sport
8110
+ * @type {string}
8111
+ * @memberof OpenBookingSportInfo
8112
+ */
8113
+ 'name': string;
8114
+ }
8115
+ /**
8116
+ *
8117
+ * @export
8118
+ * @interface OpenBookingsResponse
8119
+ */
8120
+ export interface OpenBookingsResponse {
8121
+ /**
8122
+ * Liste des réservations ouvertes
8123
+ * @type {Array<OpenBookingInfo>}
8124
+ * @memberof OpenBookingsResponse
8125
+ */
8126
+ 'bookings': Array<OpenBookingInfo>;
8127
+ }
7994
8128
  /**
7995
8129
  *
7996
8130
  * @export
@@ -9707,19 +9841,6 @@ export interface RequestEmailCodeResponse {
9707
9841
  */
9708
9842
  'alreadyVerified'?: boolean;
9709
9843
  }
9710
- /**
9711
- *
9712
- * @export
9713
- * @interface RequestPasswordReset200Response
9714
- */
9715
- export interface RequestPasswordReset200Response {
9716
- /**
9717
- *
9718
- * @type {string}
9719
- * @memberof RequestPasswordReset200Response
9720
- */
9721
- 'message': string;
9722
- }
9723
9844
  /**
9724
9845
  *
9725
9846
  * @export
@@ -11946,6 +12067,44 @@ export interface UpdateLevelBySportsRequestBody {
11946
12067
  */
11947
12068
  'levelBySports': Array<LevelBySportEntry>;
11948
12069
  }
12070
+ /**
12071
+ *
12072
+ * @export
12073
+ * @interface UpdateOpenBooking200Response
12074
+ */
12075
+ export interface UpdateOpenBooking200Response {
12076
+ /**
12077
+ *
12078
+ * @type {BookingInfo}
12079
+ * @memberof UpdateOpenBooking200Response
12080
+ */
12081
+ 'booking': BookingInfo;
12082
+ /**
12083
+ *
12084
+ * @type {string}
12085
+ * @memberof UpdateOpenBooking200Response
12086
+ */
12087
+ 'message': string;
12088
+ }
12089
+ /**
12090
+ *
12091
+ * @export
12092
+ * @interface UpdateOpenBookingRequest
12093
+ */
12094
+ export interface UpdateOpenBookingRequest {
12095
+ /**
12096
+ * Description de la réservation ouverte
12097
+ * @type {string}
12098
+ * @memberof UpdateOpenBookingRequest
12099
+ */
12100
+ 'description'?: string;
12101
+ /**
12102
+ * Niveau minimal souhaité pour rejoindre
12103
+ * @type {string}
12104
+ * @memberof UpdateOpenBookingRequest
12105
+ */
12106
+ 'minLevel'?: string;
12107
+ }
11949
12108
  /**
11950
12109
  *
11951
12110
  * @export
@@ -13202,6 +13361,44 @@ export const VisibilityType = {
13202
13361
  export type VisibilityType = typeof VisibilityType[keyof typeof VisibilityType];
13203
13362
 
13204
13363
 
13364
+ /**
13365
+ *
13366
+ * @export
13367
+ * @interface WaitListListResponse
13368
+ */
13369
+ export interface WaitListListResponse {
13370
+ /**
13371
+ *
13372
+ * @type {Array<WaitListResponse>}
13373
+ * @memberof WaitListListResponse
13374
+ */
13375
+ 'waitList': Array<WaitListResponse>;
13376
+ /**
13377
+ *
13378
+ * @type {number}
13379
+ * @memberof WaitListListResponse
13380
+ */
13381
+ 'total': number;
13382
+ }
13383
+ /**
13384
+ *
13385
+ * @export
13386
+ * @interface WaitListPositionResponse
13387
+ */
13388
+ export interface WaitListPositionResponse {
13389
+ /**
13390
+ *
13391
+ * @type {number}
13392
+ * @memberof WaitListPositionResponse
13393
+ */
13394
+ 'position': number | null;
13395
+ /**
13396
+ *
13397
+ * @type {string}
13398
+ * @memberof WaitListPositionResponse
13399
+ */
13400
+ 'message'?: string;
13401
+ }
13205
13402
  /**
13206
13403
  *
13207
13404
  * @export
@@ -13219,13 +13416,25 @@ export interface WaitListResponse {
13219
13416
  * @type {string}
13220
13417
  * @memberof WaitListResponse
13221
13418
  */
13222
- 'eventId': string;
13419
+ 'userId': string;
13223
13420
  /**
13224
13421
  *
13225
13422
  * @type {string}
13226
13423
  * @memberof WaitListResponse
13227
13424
  */
13228
- 'userId': string;
13425
+ 'clubId': string;
13426
+ /**
13427
+ *
13428
+ * @type {string}
13429
+ * @memberof WaitListResponse
13430
+ */
13431
+ 'targetType': WaitListResponseTargetTypeEnum;
13432
+ /**
13433
+ *
13434
+ * @type {string}
13435
+ * @memberof WaitListResponse
13436
+ */
13437
+ 'targetId': string;
13229
13438
  /**
13230
13439
  *
13231
13440
  * @type {string}
@@ -13246,22 +13455,28 @@ export interface WaitListResponse {
13246
13455
  'priceInCents': number;
13247
13456
  /**
13248
13457
  *
13249
- * @type {boolean}
13458
+ * @type {string}
13250
13459
  * @memberof WaitListResponse
13251
13460
  */
13252
- 'paymentAuthorized': boolean;
13461
+ 'joinedAt': string;
13253
13462
  /**
13254
13463
  *
13255
13464
  * @type {string}
13256
13465
  * @memberof WaitListResponse
13257
13466
  */
13258
- 'joinedAt': string;
13467
+ 'notifiedAt'?: string;
13468
+ /**
13469
+ *
13470
+ * @type {string}
13471
+ * @memberof WaitListResponse
13472
+ */
13473
+ 'paymentExpiresAt'?: string;
13259
13474
  /**
13260
13475
  *
13261
13476
  * @type {string}
13262
13477
  * @memberof WaitListResponse
13263
13478
  */
13264
- 'expiresAt'?: string;
13479
+ 'confirmedAt'?: string;
13265
13480
  /**
13266
13481
  *
13267
13482
  * @type {string}
@@ -13269,6 +13484,15 @@ export interface WaitListResponse {
13269
13484
  */
13270
13485
  'paymentLink'?: string;
13271
13486
  }
13487
+
13488
+ export const WaitListResponseTargetTypeEnum = {
13489
+ Event: 'event',
13490
+ Booking: 'booking',
13491
+ EventBooking: 'event_booking'
13492
+ } as const;
13493
+
13494
+ export type WaitListResponseTargetTypeEnum = typeof WaitListResponseTargetTypeEnum[keyof typeof WaitListResponseTargetTypeEnum];
13495
+
13272
13496
  /**
13273
13497
  *
13274
13498
  * @export
@@ -13879,7 +14103,7 @@ export const BookingsApiFp = function(configuration?: Configuration) {
13879
14103
  * @param {*} [options] Override http request option.
13880
14104
  * @throws {RequiredError}
13881
14105
  */
13882
- async getOpenBookings(clubId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOpenBookings200Response>> {
14106
+ async getOpenBookings(clubId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpenBookingsResponse>> {
13883
14107
  const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookings(clubId, options);
13884
14108
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13885
14109
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getOpenBookings']?.[localVarOperationServerIndex]?.url;
@@ -13926,7 +14150,7 @@ export const BookingsApiFp = function(configuration?: Configuration) {
13926
14150
  * @param {*} [options] Override http request option.
13927
14151
  * @throws {RequiredError}
13928
14152
  */
13929
- async leaveOpenBooking(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
14153
+ async leaveOpenBooking(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
13930
14154
  const localVarAxiosArgs = await localVarAxiosParamCreator.leaveOpenBooking(bookingId, options);
13931
14155
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13932
14156
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.leaveOpenBooking']?.[localVarOperationServerIndex]?.url;
@@ -14002,7 +14226,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
14002
14226
  * @param {*} [options] Override http request option.
14003
14227
  * @throws {RequiredError}
14004
14228
  */
14005
- getOpenBookings(requestParameters: BookingsApiGetOpenBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetOpenBookings200Response> {
14229
+ getOpenBookings(requestParameters: BookingsApiGetOpenBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<OpenBookingsResponse> {
14006
14230
  return localVarFp.getOpenBookings(requestParameters.clubId, options).then((request) => request(axios, basePath));
14007
14231
  },
14008
14232
  /**
@@ -14029,7 +14253,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
14029
14253
  * @param {*} [options] Override http request option.
14030
14254
  * @throws {RequiredError}
14031
14255
  */
14032
- leaveOpenBooking(requestParameters: BookingsApiLeaveOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
14256
+ leaveOpenBooking(requestParameters: BookingsApiLeaveOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
14033
14257
  return localVarFp.leaveOpenBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
14034
14258
  },
14035
14259
  };
@@ -15486,6 +15710,49 @@ export const BookingsUserApiAxiosParamCreator = function (configuration?: Config
15486
15710
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15487
15711
  localVarRequestOptions.data = serializeDataIfNeeded(createOpenBookingRequest, localVarRequestOptions, configuration)
15488
15712
 
15713
+ return {
15714
+ url: toPathString(localVarUrlObj),
15715
+ options: localVarRequestOptions,
15716
+ };
15717
+ },
15718
+ /**
15719
+ * Mettre à jour une réservation ouverte (description et niveau minimal)
15720
+ * @param {string} bookingId
15721
+ * @param {UpdateOpenBookingRequest} updateOpenBookingRequest
15722
+ * @param {*} [options] Override http request option.
15723
+ * @throws {RequiredError}
15724
+ */
15725
+ updateOpenBooking: async (bookingId: string, updateOpenBookingRequest: UpdateOpenBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15726
+ // verify required parameter 'bookingId' is not null or undefined
15727
+ assertParamExists('updateOpenBooking', 'bookingId', bookingId)
15728
+ // verify required parameter 'updateOpenBookingRequest' is not null or undefined
15729
+ assertParamExists('updateOpenBooking', 'updateOpenBookingRequest', updateOpenBookingRequest)
15730
+ const localVarPath = `/api/bookings/{bookingId}/open`
15731
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
15732
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15733
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15734
+ let baseOptions;
15735
+ if (configuration) {
15736
+ baseOptions = configuration.baseOptions;
15737
+ }
15738
+
15739
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
15740
+ const localVarHeaderParameter = {} as any;
15741
+ const localVarQueryParameter = {} as any;
15742
+
15743
+ // authentication bearerAuth required
15744
+ // http bearer authentication required
15745
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15746
+
15747
+
15748
+
15749
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15750
+
15751
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15752
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15753
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15754
+ localVarRequestOptions.data = serializeDataIfNeeded(updateOpenBookingRequest, localVarRequestOptions, configuration)
15755
+
15489
15756
  return {
15490
15757
  url: toPathString(localVarUrlObj),
15491
15758
  options: localVarRequestOptions,
@@ -15537,6 +15804,19 @@ export const BookingsUserApiFp = function(configuration?: Configuration) {
15537
15804
  const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.createOpenBooking']?.[localVarOperationServerIndex]?.url;
15538
15805
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15539
15806
  },
15807
+ /**
15808
+ * Mettre à jour une réservation ouverte (description et niveau minimal)
15809
+ * @param {string} bookingId
15810
+ * @param {UpdateOpenBookingRequest} updateOpenBookingRequest
15811
+ * @param {*} [options] Override http request option.
15812
+ * @throws {RequiredError}
15813
+ */
15814
+ async updateOpenBooking(bookingId: string, updateOpenBookingRequest: UpdateOpenBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateOpenBooking200Response>> {
15815
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenBooking(bookingId, updateOpenBookingRequest, options);
15816
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15817
+ const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.updateOpenBooking']?.[localVarOperationServerIndex]?.url;
15818
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15819
+ },
15540
15820
  }
15541
15821
  };
15542
15822
 
@@ -15574,6 +15854,15 @@ export const BookingsUserApiFactory = function (configuration?: Configuration, b
15574
15854
  createOpenBooking(requestParameters: BookingsUserApiCreateOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse> {
15575
15855
  return localVarFp.createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(axios, basePath));
15576
15856
  },
15857
+ /**
15858
+ * Mettre à jour une réservation ouverte (description et niveau minimal)
15859
+ * @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
15860
+ * @param {*} [options] Override http request option.
15861
+ * @throws {RequiredError}
15862
+ */
15863
+ updateOpenBooking(requestParameters: BookingsUserApiUpdateOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateOpenBooking200Response> {
15864
+ return localVarFp.updateOpenBooking(requestParameters.bookingId, requestParameters.updateOpenBookingRequest, options).then((request) => request(axios, basePath));
15865
+ },
15577
15866
  };
15578
15867
  };
15579
15868
 
@@ -15619,6 +15908,27 @@ export interface BookingsUserApiCreateOpenBookingRequest {
15619
15908
  readonly createOpenBookingRequest: CreateOpenBookingRequest
15620
15909
  }
15621
15910
 
15911
+ /**
15912
+ * Request parameters for updateOpenBooking operation in BookingsUserApi.
15913
+ * @export
15914
+ * @interface BookingsUserApiUpdateOpenBookingRequest
15915
+ */
15916
+ export interface BookingsUserApiUpdateOpenBookingRequest {
15917
+ /**
15918
+ *
15919
+ * @type {string}
15920
+ * @memberof BookingsUserApiUpdateOpenBooking
15921
+ */
15922
+ readonly bookingId: string
15923
+
15924
+ /**
15925
+ *
15926
+ * @type {UpdateOpenBookingRequest}
15927
+ * @memberof BookingsUserApiUpdateOpenBooking
15928
+ */
15929
+ readonly updateOpenBookingRequest: UpdateOpenBookingRequest
15930
+ }
15931
+
15622
15932
  /**
15623
15933
  * BookingsUserApi - object-oriented interface
15624
15934
  * @export
@@ -15658,6 +15968,17 @@ export class BookingsUserApi extends BaseAPI {
15658
15968
  public createOpenBooking(requestParameters: BookingsUserApiCreateOpenBookingRequest, options?: RawAxiosRequestConfig) {
15659
15969
  return BookingsUserApiFp(this.configuration).createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
15660
15970
  }
15971
+
15972
+ /**
15973
+ * Mettre à jour une réservation ouverte (description et niveau minimal)
15974
+ * @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
15975
+ * @param {*} [options] Override http request option.
15976
+ * @throws {RequiredError}
15977
+ * @memberof BookingsUserApi
15978
+ */
15979
+ public updateOpenBooking(requestParameters: BookingsUserApiUpdateOpenBookingRequest, options?: RawAxiosRequestConfig) {
15980
+ return BookingsUserApiFp(this.configuration).updateOpenBooking(requestParameters.bookingId, requestParameters.updateOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
15981
+ }
15661
15982
  }
15662
15983
 
15663
15984
 
@@ -22204,7 +22525,7 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
22204
22525
  * @param {*} [options] Override http request option.
22205
22526
  * @throws {RequiredError}
22206
22527
  */
22207
- async deleteActuality(actualityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
22528
+ async deleteActuality(actualityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
22208
22529
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActuality(actualityId, options);
22209
22530
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22210
22531
  const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.deleteActuality']?.[localVarOperationServerIndex]?.url;
@@ -22239,7 +22560,7 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
22239
22560
  * @param {*} [options] Override http request option.
22240
22561
  * @throws {RequiredError}
22241
22562
  */
22242
- async deleteSlotsByClubInRange(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
22563
+ async deleteSlotsByClubInRange(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
22243
22564
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSlotsByClubInRange(options);
22244
22565
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22245
22566
  const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.deleteSlotsByClubInRange']?.[localVarOperationServerIndex]?.url;
@@ -22275,7 +22596,7 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
22275
22596
  * @param {*} [options] Override http request option.
22276
22597
  * @throws {RequiredError}
22277
22598
  */
22278
- async restoreSubscriptionPlanForClub(productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
22599
+ async restoreSubscriptionPlanForClub(productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
22279
22600
  const localVarAxiosArgs = await localVarAxiosParamCreator.restoreSubscriptionPlanForClub(productId, options);
22280
22601
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22281
22602
  const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.restoreSubscriptionPlanForClub']?.[localVarOperationServerIndex]?.url;
@@ -22451,7 +22772,7 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
22451
22772
  * @param {*} [options] Override http request option.
22452
22773
  * @throws {RequiredError}
22453
22774
  */
22454
- deleteActuality(requestParameters: ClubsManagerApiDeleteActualityRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
22775
+ deleteActuality(requestParameters: ClubsManagerApiDeleteActualityRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
22455
22776
  return localVarFp.deleteActuality(requestParameters.actualityId, options).then((request) => request(axios, basePath));
22456
22777
  },
22457
22778
  /**
@@ -22477,7 +22798,7 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
22477
22798
  * @param {*} [options] Override http request option.
22478
22799
  * @throws {RequiredError}
22479
22800
  */
22480
- deleteSlotsByClubInRange(options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
22801
+ deleteSlotsByClubInRange(options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
22481
22802
  return localVarFp.deleteSlotsByClubInRange(options).then((request) => request(axios, basePath));
22482
22803
  },
22483
22804
  /**
@@ -22504,7 +22825,7 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
22504
22825
  * @param {*} [options] Override http request option.
22505
22826
  * @throws {RequiredError}
22506
22827
  */
22507
- restoreSubscriptionPlanForClub(requestParameters: ClubsManagerApiRestoreSubscriptionPlanForClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
22828
+ restoreSubscriptionPlanForClub(requestParameters: ClubsManagerApiRestoreSubscriptionPlanForClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
22508
22829
  return localVarFp.restoreSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(axios, basePath));
22509
22830
  },
22510
22831
  /**
@@ -24883,7 +25204,7 @@ export const EventsApiFp = function(configuration?: Configuration) {
24883
25204
  * @param {*} [options] Override http request option.
24884
25205
  * @throws {RequiredError}
24885
25206
  */
24886
- async leaveOpenEventBooking(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
25207
+ async leaveOpenEventBooking(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
24887
25208
  const localVarAxiosArgs = await localVarAxiosParamCreator.leaveOpenEventBooking(eventBookingId, options);
24888
25209
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
24889
25210
  const localVarOperationServerBasePath = operationServerMap['EventsApi.leaveOpenEventBooking']?.[localVarOperationServerIndex]?.url;
@@ -24995,7 +25316,7 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
24995
25316
  * @param {*} [options] Override http request option.
24996
25317
  * @throws {RequiredError}
24997
25318
  */
24998
- leaveOpenEventBooking(requestParameters: EventsApiLeaveOpenEventBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
25319
+ leaveOpenEventBooking(requestParameters: EventsApiLeaveOpenEventBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
24999
25320
  return localVarFp.leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
25000
25321
  },
25001
25322
  };
@@ -26947,62 +27268,21 @@ export type GetWeeklyEventsTypeEnum = typeof GetWeeklyEventsTypeEnum[keyof typeo
26947
27268
 
26948
27269
 
26949
27270
  /**
26950
- * EventsWaitListApi - axios parameter creator
27271
+ * ImagesApi - axios parameter creator
26951
27272
  * @export
26952
27273
  */
26953
- export const EventsWaitListApiAxiosParamCreator = function (configuration?: Configuration) {
27274
+ export const ImagesApiAxiosParamCreator = function (configuration?: Configuration) {
26954
27275
  return {
26955
27276
  /**
26956
- * Obtenir la position actuelle dans la file d\'attente
26957
- * @param {string} eventId
26958
- * @param {*} [options] Override http request option.
26959
- * @throws {RequiredError}
26960
- */
26961
- getUserPosition: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26962
- // verify required parameter 'eventId' is not null or undefined
26963
- assertParamExists('getUserPosition', 'eventId', eventId)
26964
- const localVarPath = `/api/events/waitlist/{eventId}/position`
26965
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
26966
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
26967
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26968
- let baseOptions;
26969
- if (configuration) {
26970
- baseOptions = configuration.baseOptions;
26971
- }
26972
-
26973
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26974
- const localVarHeaderParameter = {} as any;
26975
- const localVarQueryParameter = {} as any;
26976
-
26977
- // authentication bearerAuth required
26978
- // http bearer authentication required
26979
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
26980
-
26981
-
26982
-
26983
- setSearchParams(localVarUrlObj, localVarQueryParameter);
26984
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26985
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26986
-
26987
- return {
26988
- url: toPathString(localVarUrlObj),
26989
- options: localVarRequestOptions,
26990
- };
26991
- },
26992
- /**
26993
- * Rejoindre la file d\'attente pour un événement
26994
- * @param {string} eventId
26995
- * @param {JoinWaitListRequest} joinWaitListRequest
27277
+ *
27278
+ * @param {ImageCleanupRequestBody} imageCleanupRequestBody
26996
27279
  * @param {*} [options] Override http request option.
26997
27280
  * @throws {RequiredError}
26998
27281
  */
26999
- joinWaitList: async (eventId: string, joinWaitListRequest: JoinWaitListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27000
- // verify required parameter 'eventId' is not null or undefined
27001
- assertParamExists('joinWaitList', 'eventId', eventId)
27002
- // verify required parameter 'joinWaitListRequest' is not null or undefined
27003
- assertParamExists('joinWaitList', 'joinWaitListRequest', joinWaitListRequest)
27004
- const localVarPath = `/api/events/waitlist/{eventId}/join`
27005
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
27282
+ cleanupImages: async (imageCleanupRequestBody: ImageCleanupRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27283
+ // verify required parameter 'imageCleanupRequestBody' is not null or undefined
27284
+ assertParamExists('cleanupImages', 'imageCleanupRequestBody', imageCleanupRequestBody)
27285
+ const localVarPath = `/api/images/cleanup`;
27006
27286
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27007
27287
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27008
27288
  let baseOptions;
@@ -27025,44 +27305,7 @@ export const EventsWaitListApiAxiosParamCreator = function (configuration?: Conf
27025
27305
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27026
27306
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27027
27307
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27028
- localVarRequestOptions.data = serializeDataIfNeeded(joinWaitListRequest, localVarRequestOptions, configuration)
27029
-
27030
- return {
27031
- url: toPathString(localVarUrlObj),
27032
- options: localVarRequestOptions,
27033
- };
27034
- },
27035
- /**
27036
- * Quitter la file d\'attente
27037
- * @param {string} eventId
27038
- * @param {*} [options] Override http request option.
27039
- * @throws {RequiredError}
27040
- */
27041
- leaveWaitList: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27042
- // verify required parameter 'eventId' is not null or undefined
27043
- assertParamExists('leaveWaitList', 'eventId', eventId)
27044
- const localVarPath = `/api/events/waitlist/{eventId}/leave`
27045
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
27046
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
27047
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27048
- let baseOptions;
27049
- if (configuration) {
27050
- baseOptions = configuration.baseOptions;
27051
- }
27052
-
27053
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
27054
- const localVarHeaderParameter = {} as any;
27055
- const localVarQueryParameter = {} as any;
27056
-
27057
- // authentication bearerAuth required
27058
- // http bearer authentication required
27059
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
27060
-
27061
-
27062
-
27063
- setSearchParams(localVarUrlObj, localVarQueryParameter);
27064
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27065
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27308
+ localVarRequestOptions.data = serializeDataIfNeeded(imageCleanupRequestBody, localVarRequestOptions, configuration)
27066
27309
 
27067
27310
  return {
27068
27311
  url: toPathString(localVarUrlObj),
@@ -27073,198 +27316,97 @@ export const EventsWaitListApiAxiosParamCreator = function (configuration?: Conf
27073
27316
  };
27074
27317
 
27075
27318
  /**
27076
- * EventsWaitListApi - functional programming interface
27319
+ * ImagesApi - functional programming interface
27077
27320
  * @export
27078
27321
  */
27079
- export const EventsWaitListApiFp = function(configuration?: Configuration) {
27080
- const localVarAxiosParamCreator = EventsWaitListApiAxiosParamCreator(configuration)
27322
+ export const ImagesApiFp = function(configuration?: Configuration) {
27323
+ const localVarAxiosParamCreator = ImagesApiAxiosParamCreator(configuration)
27081
27324
  return {
27082
27325
  /**
27083
- * Obtenir la position actuelle dans la file d\'attente
27084
- * @param {string} eventId
27085
- * @param {*} [options] Override http request option.
27086
- * @throws {RequiredError}
27087
- */
27088
- async getUserPosition(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserPosition200Response>> {
27089
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUserPosition(eventId, options);
27090
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27091
- const localVarOperationServerBasePath = operationServerMap['EventsWaitListApi.getUserPosition']?.[localVarOperationServerIndex]?.url;
27092
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27093
- },
27094
- /**
27095
- * Rejoindre la file d\'attente pour un événement
27096
- * @param {string} eventId
27097
- * @param {JoinWaitListRequest} joinWaitListRequest
27098
- * @param {*} [options] Override http request option.
27099
- * @throws {RequiredError}
27100
- */
27101
- async joinWaitList(eventId: string, joinWaitListRequest: JoinWaitListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinWaitList200Response>> {
27102
- const localVarAxiosArgs = await localVarAxiosParamCreator.joinWaitList(eventId, joinWaitListRequest, options);
27103
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27104
- const localVarOperationServerBasePath = operationServerMap['EventsWaitListApi.joinWaitList']?.[localVarOperationServerIndex]?.url;
27105
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27106
- },
27107
- /**
27108
- * Quitter la file d\'attente
27109
- * @param {string} eventId
27326
+ *
27327
+ * @param {ImageCleanupRequestBody} imageCleanupRequestBody
27110
27328
  * @param {*} [options] Override http request option.
27111
27329
  * @throws {RequiredError}
27112
27330
  */
27113
- async leaveWaitList(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
27114
- const localVarAxiosArgs = await localVarAxiosParamCreator.leaveWaitList(eventId, options);
27331
+ async cleanupImages(imageCleanupRequestBody: ImageCleanupRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageCleanupResponse>> {
27332
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cleanupImages(imageCleanupRequestBody, options);
27115
27333
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27116
- const localVarOperationServerBasePath = operationServerMap['EventsWaitListApi.leaveWaitList']?.[localVarOperationServerIndex]?.url;
27334
+ const localVarOperationServerBasePath = operationServerMap['ImagesApi.cleanupImages']?.[localVarOperationServerIndex]?.url;
27117
27335
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27118
27336
  },
27119
27337
  }
27120
27338
  };
27121
27339
 
27122
27340
  /**
27123
- * EventsWaitListApi - factory interface
27341
+ * ImagesApi - factory interface
27124
27342
  * @export
27125
27343
  */
27126
- export const EventsWaitListApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27127
- const localVarFp = EventsWaitListApiFp(configuration)
27344
+ export const ImagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27345
+ const localVarFp = ImagesApiFp(configuration)
27128
27346
  return {
27129
27347
  /**
27130
- * Obtenir la position actuelle dans la file d\'attente
27131
- * @param {EventsWaitListApiGetUserPositionRequest} requestParameters Request parameters.
27132
- * @param {*} [options] Override http request option.
27133
- * @throws {RequiredError}
27134
- */
27135
- getUserPosition(requestParameters: EventsWaitListApiGetUserPositionRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetUserPosition200Response> {
27136
- return localVarFp.getUserPosition(requestParameters.eventId, options).then((request) => request(axios, basePath));
27137
- },
27138
- /**
27139
- * Rejoindre la file d\'attente pour un événement
27140
- * @param {EventsWaitListApiJoinWaitListRequest} requestParameters Request parameters.
27141
- * @param {*} [options] Override http request option.
27142
- * @throws {RequiredError}
27143
- */
27144
- joinWaitList(requestParameters: EventsWaitListApiJoinWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinWaitList200Response> {
27145
- return localVarFp.joinWaitList(requestParameters.eventId, requestParameters.joinWaitListRequest, options).then((request) => request(axios, basePath));
27146
- },
27147
- /**
27148
- * Quitter la file d\'attente
27149
- * @param {EventsWaitListApiLeaveWaitListRequest} requestParameters Request parameters.
27348
+ *
27349
+ * @param {ImagesApiCleanupImagesRequest} requestParameters Request parameters.
27150
27350
  * @param {*} [options] Override http request option.
27151
27351
  * @throws {RequiredError}
27152
27352
  */
27153
- leaveWaitList(requestParameters: EventsWaitListApiLeaveWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
27154
- return localVarFp.leaveWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
27353
+ cleanupImages(requestParameters: ImagesApiCleanupImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImageCleanupResponse> {
27354
+ return localVarFp.cleanupImages(requestParameters.imageCleanupRequestBody, options).then((request) => request(axios, basePath));
27155
27355
  },
27156
27356
  };
27157
27357
  };
27158
27358
 
27159
27359
  /**
27160
- * Request parameters for getUserPosition operation in EventsWaitListApi.
27161
- * @export
27162
- * @interface EventsWaitListApiGetUserPositionRequest
27163
- */
27164
- export interface EventsWaitListApiGetUserPositionRequest {
27165
- /**
27166
- *
27167
- * @type {string}
27168
- * @memberof EventsWaitListApiGetUserPosition
27169
- */
27170
- readonly eventId: string
27171
- }
27172
-
27173
- /**
27174
- * Request parameters for joinWaitList operation in EventsWaitListApi.
27175
- * @export
27176
- * @interface EventsWaitListApiJoinWaitListRequest
27177
- */
27178
- export interface EventsWaitListApiJoinWaitListRequest {
27179
- /**
27180
- *
27181
- * @type {string}
27182
- * @memberof EventsWaitListApiJoinWaitList
27183
- */
27184
- readonly eventId: string
27185
-
27186
- /**
27187
- *
27188
- * @type {JoinWaitListRequest}
27189
- * @memberof EventsWaitListApiJoinWaitList
27190
- */
27191
- readonly joinWaitListRequest: JoinWaitListRequest
27192
- }
27193
-
27194
- /**
27195
- * Request parameters for leaveWaitList operation in EventsWaitListApi.
27360
+ * Request parameters for cleanupImages operation in ImagesApi.
27196
27361
  * @export
27197
- * @interface EventsWaitListApiLeaveWaitListRequest
27362
+ * @interface ImagesApiCleanupImagesRequest
27198
27363
  */
27199
- export interface EventsWaitListApiLeaveWaitListRequest {
27364
+ export interface ImagesApiCleanupImagesRequest {
27200
27365
  /**
27201
27366
  *
27202
- * @type {string}
27203
- * @memberof EventsWaitListApiLeaveWaitList
27367
+ * @type {ImageCleanupRequestBody}
27368
+ * @memberof ImagesApiCleanupImages
27204
27369
  */
27205
- readonly eventId: string
27370
+ readonly imageCleanupRequestBody: ImageCleanupRequestBody
27206
27371
  }
27207
27372
 
27208
27373
  /**
27209
- * EventsWaitListApi - object-oriented interface
27374
+ * ImagesApi - object-oriented interface
27210
27375
  * @export
27211
- * @class EventsWaitListApi
27376
+ * @class ImagesApi
27212
27377
  * @extends {BaseAPI}
27213
27378
  */
27214
- export class EventsWaitListApi extends BaseAPI {
27215
- /**
27216
- * Obtenir la position actuelle dans la file d\'attente
27217
- * @param {EventsWaitListApiGetUserPositionRequest} requestParameters Request parameters.
27218
- * @param {*} [options] Override http request option.
27219
- * @throws {RequiredError}
27220
- * @memberof EventsWaitListApi
27221
- */
27222
- public getUserPosition(requestParameters: EventsWaitListApiGetUserPositionRequest, options?: RawAxiosRequestConfig) {
27223
- return EventsWaitListApiFp(this.configuration).getUserPosition(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
27224
- }
27225
-
27226
- /**
27227
- * Rejoindre la file d\'attente pour un événement
27228
- * @param {EventsWaitListApiJoinWaitListRequest} requestParameters Request parameters.
27229
- * @param {*} [options] Override http request option.
27230
- * @throws {RequiredError}
27231
- * @memberof EventsWaitListApi
27232
- */
27233
- public joinWaitList(requestParameters: EventsWaitListApiJoinWaitListRequest, options?: RawAxiosRequestConfig) {
27234
- return EventsWaitListApiFp(this.configuration).joinWaitList(requestParameters.eventId, requestParameters.joinWaitListRequest, options).then((request) => request(this.axios, this.basePath));
27235
- }
27236
-
27379
+ export class ImagesApi extends BaseAPI {
27237
27380
  /**
27238
- * Quitter la file d\'attente
27239
- * @param {EventsWaitListApiLeaveWaitListRequest} requestParameters Request parameters.
27381
+ *
27382
+ * @param {ImagesApiCleanupImagesRequest} requestParameters Request parameters.
27240
27383
  * @param {*} [options] Override http request option.
27241
27384
  * @throws {RequiredError}
27242
- * @memberof EventsWaitListApi
27385
+ * @memberof ImagesApi
27243
27386
  */
27244
- public leaveWaitList(requestParameters: EventsWaitListApiLeaveWaitListRequest, options?: RawAxiosRequestConfig) {
27245
- return EventsWaitListApiFp(this.configuration).leaveWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
27387
+ public cleanupImages(requestParameters: ImagesApiCleanupImagesRequest, options?: RawAxiosRequestConfig) {
27388
+ return ImagesApiFp(this.configuration).cleanupImages(requestParameters.imageCleanupRequestBody, options).then((request) => request(this.axios, this.basePath));
27246
27389
  }
27247
27390
  }
27248
27391
 
27249
27392
 
27250
27393
 
27251
27394
  /**
27252
- * EventsWaitListStaffApi - axios parameter creator
27395
+ * PublicEmailApi - axios parameter creator
27253
27396
  * @export
27254
27397
  */
27255
- export const EventsWaitListStaffApiAxiosParamCreator = function (configuration?: Configuration) {
27398
+ export const PublicEmailApiAxiosParamCreator = function (configuration?: Configuration) {
27256
27399
  return {
27257
27400
  /**
27258
- * Obtenir la liste complète de la file d\'attente (staff only)
27259
- * @param {string} eventId
27401
+ *
27402
+ * @param {EmailExistsRequestBody} emailExistsRequestBody
27260
27403
  * @param {*} [options] Override http request option.
27261
27404
  * @throws {RequiredError}
27262
27405
  */
27263
- getWaitListForEvent: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27264
- // verify required parameter 'eventId' is not null or undefined
27265
- assertParamExists('getWaitListForEvent', 'eventId', eventId)
27266
- const localVarPath = `/api/events/waitlist/{eventId}`
27267
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
27406
+ authEmailExists: async (emailExistsRequestBody: EmailExistsRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27407
+ // verify required parameter 'emailExistsRequestBody' is not null or undefined
27408
+ assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody)
27409
+ const localVarPath = `/api/public-email/auth-email-exists`;
27268
27410
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27269
27411
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27270
27412
  let baseOptions;
@@ -27272,19 +27414,18 @@ export const EventsWaitListStaffApiAxiosParamCreator = function (configuration?:
27272
27414
  baseOptions = configuration.baseOptions;
27273
27415
  }
27274
27416
 
27275
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27417
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27276
27418
  const localVarHeaderParameter = {} as any;
27277
27419
  const localVarQueryParameter = {} as any;
27278
27420
 
27279
- // authentication bearerAuth required
27280
- // http bearer authentication required
27281
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
27282
-
27283
27421
 
27284
27422
 
27423
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27424
+
27285
27425
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27286
27426
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27287
27427
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27428
+ localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration)
27288
27429
 
27289
27430
  return {
27290
27431
  url: toPathString(localVarUrlObj),
@@ -27292,16 +27433,15 @@ export const EventsWaitListStaffApiAxiosParamCreator = function (configuration?:
27292
27433
  };
27293
27434
  },
27294
27435
  /**
27295
- * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
27296
- * @param {string} eventId
27436
+ *
27437
+ * @param {RequestEmailCodeBody} requestEmailCodeBody
27297
27438
  * @param {*} [options] Override http request option.
27298
27439
  * @throws {RequiredError}
27299
27440
  */
27300
- processWaitList: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27301
- // verify required parameter 'eventId' is not null or undefined
27302
- assertParamExists('processWaitList', 'eventId', eventId)
27303
- const localVarPath = `/api/events/waitlist/{eventId}/process`
27304
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
27441
+ requestVerificationCode: async (requestEmailCodeBody: RequestEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27442
+ // verify required parameter 'requestEmailCodeBody' is not null or undefined
27443
+ assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody)
27444
+ const localVarPath = `/api/public-email/request-verification-code`;
27305
27445
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27306
27446
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27307
27447
  let baseOptions;
@@ -27313,15 +27453,49 @@ export const EventsWaitListStaffApiAxiosParamCreator = function (configuration?:
27313
27453
  const localVarHeaderParameter = {} as any;
27314
27454
  const localVarQueryParameter = {} as any;
27315
27455
 
27316
- // authentication bearerAuth required
27317
- // http bearer authentication required
27318
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
27456
+
27457
+
27458
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27459
+
27460
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27461
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27462
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27463
+ localVarRequestOptions.data = serializeDataIfNeeded(requestEmailCodeBody, localVarRequestOptions, configuration)
27464
+
27465
+ return {
27466
+ url: toPathString(localVarUrlObj),
27467
+ options: localVarRequestOptions,
27468
+ };
27469
+ },
27470
+ /**
27471
+ *
27472
+ * @param {VerifyEmailCodeBody} verifyEmailCodeBody
27473
+ * @param {*} [options] Override http request option.
27474
+ * @throws {RequiredError}
27475
+ */
27476
+ verifyCode: async (verifyEmailCodeBody: VerifyEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27477
+ // verify required parameter 'verifyEmailCodeBody' is not null or undefined
27478
+ assertParamExists('verifyCode', 'verifyEmailCodeBody', verifyEmailCodeBody)
27479
+ const localVarPath = `/api/public-email/verify-code`;
27480
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27481
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27482
+ let baseOptions;
27483
+ if (configuration) {
27484
+ baseOptions = configuration.baseOptions;
27485
+ }
27486
+
27487
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27488
+ const localVarHeaderParameter = {} as any;
27489
+ const localVarQueryParameter = {} as any;
27319
27490
 
27320
27491
 
27321
27492
 
27493
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27494
+
27322
27495
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27323
27496
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27324
27497
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27498
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailCodeBody, localVarRequestOptions, configuration)
27325
27499
 
27326
27500
  return {
27327
27501
  url: toPathString(localVarUrlObj),
@@ -27332,549 +27506,189 @@ export const EventsWaitListStaffApiAxiosParamCreator = function (configuration?:
27332
27506
  };
27333
27507
 
27334
27508
  /**
27335
- * EventsWaitListStaffApi - functional programming interface
27509
+ * PublicEmailApi - functional programming interface
27336
27510
  * @export
27337
27511
  */
27338
- export const EventsWaitListStaffApiFp = function(configuration?: Configuration) {
27339
- const localVarAxiosParamCreator = EventsWaitListStaffApiAxiosParamCreator(configuration)
27512
+ export const PublicEmailApiFp = function(configuration?: Configuration) {
27513
+ const localVarAxiosParamCreator = PublicEmailApiAxiosParamCreator(configuration)
27340
27514
  return {
27341
27515
  /**
27342
- * Obtenir la liste complète de la file d\'attente (staff only)
27343
- * @param {string} eventId
27516
+ *
27517
+ * @param {EmailExistsRequestBody} emailExistsRequestBody
27344
27518
  * @param {*} [options] Override http request option.
27345
27519
  * @throws {RequiredError}
27346
27520
  */
27347
- async getWaitListForEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetWaitListForEvent200Response>> {
27348
- const localVarAxiosArgs = await localVarAxiosParamCreator.getWaitListForEvent(eventId, options);
27521
+ async authEmailExists(emailExistsRequestBody: EmailExistsRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailExistsResponse>> {
27522
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authEmailExists(emailExistsRequestBody, options);
27349
27523
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27350
- const localVarOperationServerBasePath = operationServerMap['EventsWaitListStaffApi.getWaitListForEvent']?.[localVarOperationServerIndex]?.url;
27524
+ const localVarOperationServerBasePath = operationServerMap['PublicEmailApi.authEmailExists']?.[localVarOperationServerIndex]?.url;
27351
27525
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27352
27526
  },
27353
27527
  /**
27354
- * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
27355
- * @param {string} eventId
27528
+ *
27529
+ * @param {RequestEmailCodeBody} requestEmailCodeBody
27530
+ * @param {*} [options] Override http request option.
27531
+ * @throws {RequiredError}
27532
+ */
27533
+ async requestVerificationCode(requestEmailCodeBody: RequestEmailCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestEmailCodeResponse>> {
27534
+ const localVarAxiosArgs = await localVarAxiosParamCreator.requestVerificationCode(requestEmailCodeBody, options);
27535
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27536
+ const localVarOperationServerBasePath = operationServerMap['PublicEmailApi.requestVerificationCode']?.[localVarOperationServerIndex]?.url;
27537
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27538
+ },
27539
+ /**
27540
+ *
27541
+ * @param {VerifyEmailCodeBody} verifyEmailCodeBody
27356
27542
  * @param {*} [options] Override http request option.
27357
27543
  * @throws {RequiredError}
27358
27544
  */
27359
- async processWaitList(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
27360
- const localVarAxiosArgs = await localVarAxiosParamCreator.processWaitList(eventId, options);
27545
+ async verifyCode(verifyEmailCodeBody: VerifyEmailCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyEmailCodeResponse>> {
27546
+ const localVarAxiosArgs = await localVarAxiosParamCreator.verifyCode(verifyEmailCodeBody, options);
27361
27547
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27362
- const localVarOperationServerBasePath = operationServerMap['EventsWaitListStaffApi.processWaitList']?.[localVarOperationServerIndex]?.url;
27548
+ const localVarOperationServerBasePath = operationServerMap['PublicEmailApi.verifyCode']?.[localVarOperationServerIndex]?.url;
27363
27549
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27364
27550
  },
27365
27551
  }
27366
27552
  };
27367
27553
 
27368
27554
  /**
27369
- * EventsWaitListStaffApi - factory interface
27555
+ * PublicEmailApi - factory interface
27370
27556
  * @export
27371
27557
  */
27372
- export const EventsWaitListStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27373
- const localVarFp = EventsWaitListStaffApiFp(configuration)
27558
+ export const PublicEmailApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27559
+ const localVarFp = PublicEmailApiFp(configuration)
27374
27560
  return {
27375
27561
  /**
27376
- * Obtenir la liste complète de la file d\'attente (staff only)
27377
- * @param {EventsWaitListStaffApiGetWaitListForEventRequest} requestParameters Request parameters.
27562
+ *
27563
+ * @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
27564
+ * @param {*} [options] Override http request option.
27565
+ * @throws {RequiredError}
27566
+ */
27567
+ authEmailExists(requestParameters: PublicEmailApiAuthEmailExistsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EmailExistsResponse> {
27568
+ return localVarFp.authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(axios, basePath));
27569
+ },
27570
+ /**
27571
+ *
27572
+ * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
27378
27573
  * @param {*} [options] Override http request option.
27379
27574
  * @throws {RequiredError}
27380
27575
  */
27381
- getWaitListForEvent(requestParameters: EventsWaitListStaffApiGetWaitListForEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetWaitListForEvent200Response> {
27382
- return localVarFp.getWaitListForEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
27576
+ requestVerificationCode(requestParameters: PublicEmailApiRequestVerificationCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestEmailCodeResponse> {
27577
+ return localVarFp.requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
27383
27578
  },
27384
27579
  /**
27385
- * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
27386
- * @param {EventsWaitListStaffApiProcessWaitListRequest} requestParameters Request parameters.
27580
+ *
27581
+ * @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
27387
27582
  * @param {*} [options] Override http request option.
27388
27583
  * @throws {RequiredError}
27389
27584
  */
27390
- processWaitList(requestParameters: EventsWaitListStaffApiProcessWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
27391
- return localVarFp.processWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
27585
+ verifyCode(requestParameters: PublicEmailApiVerifyCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<VerifyEmailCodeResponse> {
27586
+ return localVarFp.verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(axios, basePath));
27392
27587
  },
27393
27588
  };
27394
27589
  };
27395
27590
 
27396
27591
  /**
27397
- * Request parameters for getWaitListForEvent operation in EventsWaitListStaffApi.
27592
+ * Request parameters for authEmailExists operation in PublicEmailApi.
27398
27593
  * @export
27399
- * @interface EventsWaitListStaffApiGetWaitListForEventRequest
27594
+ * @interface PublicEmailApiAuthEmailExistsRequest
27400
27595
  */
27401
- export interface EventsWaitListStaffApiGetWaitListForEventRequest {
27596
+ export interface PublicEmailApiAuthEmailExistsRequest {
27402
27597
  /**
27403
27598
  *
27404
- * @type {string}
27405
- * @memberof EventsWaitListStaffApiGetWaitListForEvent
27599
+ * @type {EmailExistsRequestBody}
27600
+ * @memberof PublicEmailApiAuthEmailExists
27406
27601
  */
27407
- readonly eventId: string
27602
+ readonly emailExistsRequestBody: EmailExistsRequestBody
27408
27603
  }
27409
27604
 
27410
27605
  /**
27411
- * Request parameters for processWaitList operation in EventsWaitListStaffApi.
27606
+ * Request parameters for requestVerificationCode operation in PublicEmailApi.
27412
27607
  * @export
27413
- * @interface EventsWaitListStaffApiProcessWaitListRequest
27608
+ * @interface PublicEmailApiRequestVerificationCodeRequest
27414
27609
  */
27415
- export interface EventsWaitListStaffApiProcessWaitListRequest {
27610
+ export interface PublicEmailApiRequestVerificationCodeRequest {
27416
27611
  /**
27417
27612
  *
27418
- * @type {string}
27419
- * @memberof EventsWaitListStaffApiProcessWaitList
27613
+ * @type {RequestEmailCodeBody}
27614
+ * @memberof PublicEmailApiRequestVerificationCode
27420
27615
  */
27421
- readonly eventId: string
27616
+ readonly requestEmailCodeBody: RequestEmailCodeBody
27617
+ }
27618
+
27619
+ /**
27620
+ * Request parameters for verifyCode operation in PublicEmailApi.
27621
+ * @export
27622
+ * @interface PublicEmailApiVerifyCodeRequest
27623
+ */
27624
+ export interface PublicEmailApiVerifyCodeRequest {
27625
+ /**
27626
+ *
27627
+ * @type {VerifyEmailCodeBody}
27628
+ * @memberof PublicEmailApiVerifyCode
27629
+ */
27630
+ readonly verifyEmailCodeBody: VerifyEmailCodeBody
27422
27631
  }
27423
27632
 
27424
27633
  /**
27425
- * EventsWaitListStaffApi - object-oriented interface
27634
+ * PublicEmailApi - object-oriented interface
27426
27635
  * @export
27427
- * @class EventsWaitListStaffApi
27636
+ * @class PublicEmailApi
27428
27637
  * @extends {BaseAPI}
27429
27638
  */
27430
- export class EventsWaitListStaffApi extends BaseAPI {
27639
+ export class PublicEmailApi extends BaseAPI {
27640
+ /**
27641
+ *
27642
+ * @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
27643
+ * @param {*} [options] Override http request option.
27644
+ * @throws {RequiredError}
27645
+ * @memberof PublicEmailApi
27646
+ */
27647
+ public authEmailExists(requestParameters: PublicEmailApiAuthEmailExistsRequest, options?: RawAxiosRequestConfig) {
27648
+ return PublicEmailApiFp(this.configuration).authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(this.axios, this.basePath));
27649
+ }
27650
+
27431
27651
  /**
27432
- * Obtenir la liste complète de la file d\'attente (staff only)
27433
- * @param {EventsWaitListStaffApiGetWaitListForEventRequest} requestParameters Request parameters.
27652
+ *
27653
+ * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
27434
27654
  * @param {*} [options] Override http request option.
27435
27655
  * @throws {RequiredError}
27436
- * @memberof EventsWaitListStaffApi
27656
+ * @memberof PublicEmailApi
27437
27657
  */
27438
- public getWaitListForEvent(requestParameters: EventsWaitListStaffApiGetWaitListForEventRequest, options?: RawAxiosRequestConfig) {
27439
- return EventsWaitListStaffApiFp(this.configuration).getWaitListForEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
27658
+ public requestVerificationCode(requestParameters: PublicEmailApiRequestVerificationCodeRequest, options?: RawAxiosRequestConfig) {
27659
+ return PublicEmailApiFp(this.configuration).requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
27440
27660
  }
27441
27661
 
27442
27662
  /**
27443
- * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
27444
- * @param {EventsWaitListStaffApiProcessWaitListRequest} requestParameters Request parameters.
27663
+ *
27664
+ * @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
27445
27665
  * @param {*} [options] Override http request option.
27446
27666
  * @throws {RequiredError}
27447
- * @memberof EventsWaitListStaffApi
27667
+ * @memberof PublicEmailApi
27448
27668
  */
27449
- public processWaitList(requestParameters: EventsWaitListStaffApiProcessWaitListRequest, options?: RawAxiosRequestConfig) {
27450
- return EventsWaitListStaffApiFp(this.configuration).processWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
27669
+ public verifyCode(requestParameters: PublicEmailApiVerifyCodeRequest, options?: RawAxiosRequestConfig) {
27670
+ return PublicEmailApiFp(this.configuration).verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
27451
27671
  }
27452
27672
  }
27453
27673
 
27454
27674
 
27455
27675
 
27456
27676
  /**
27457
- * ImagesApi - axios parameter creator
27677
+ * SportsManagerApi - axios parameter creator
27458
27678
  * @export
27459
27679
  */
27460
- export const ImagesApiAxiosParamCreator = function (configuration?: Configuration) {
27680
+ export const SportsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
27461
27681
  return {
27462
27682
  /**
27463
- *
27464
- * @param {ImageCleanupRequestBody} imageCleanupRequestBody
27683
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
27684
+ * @param {CreateSportRequest} createSportRequest
27465
27685
  * @param {*} [options] Override http request option.
27466
27686
  * @throws {RequiredError}
27467
27687
  */
27468
- cleanupImages: async (imageCleanupRequestBody: ImageCleanupRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27469
- // verify required parameter 'imageCleanupRequestBody' is not null or undefined
27470
- assertParamExists('cleanupImages', 'imageCleanupRequestBody', imageCleanupRequestBody)
27471
- const localVarPath = `/api/images/cleanup`;
27472
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
27473
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27474
- let baseOptions;
27475
- if (configuration) {
27476
- baseOptions = configuration.baseOptions;
27477
- }
27478
-
27479
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27480
- const localVarHeaderParameter = {} as any;
27481
- const localVarQueryParameter = {} as any;
27482
-
27483
- // authentication bearerAuth required
27484
- // http bearer authentication required
27485
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
27486
-
27487
-
27488
-
27489
- localVarHeaderParameter['Content-Type'] = 'application/json';
27490
-
27491
- setSearchParams(localVarUrlObj, localVarQueryParameter);
27492
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27493
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27494
- localVarRequestOptions.data = serializeDataIfNeeded(imageCleanupRequestBody, localVarRequestOptions, configuration)
27495
-
27496
- return {
27497
- url: toPathString(localVarUrlObj),
27498
- options: localVarRequestOptions,
27499
- };
27500
- },
27501
- }
27502
- };
27503
-
27504
- /**
27505
- * ImagesApi - functional programming interface
27506
- * @export
27507
- */
27508
- export const ImagesApiFp = function(configuration?: Configuration) {
27509
- const localVarAxiosParamCreator = ImagesApiAxiosParamCreator(configuration)
27510
- return {
27511
- /**
27512
- *
27513
- * @param {ImageCleanupRequestBody} imageCleanupRequestBody
27514
- * @param {*} [options] Override http request option.
27515
- * @throws {RequiredError}
27516
- */
27517
- async cleanupImages(imageCleanupRequestBody: ImageCleanupRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageCleanupResponse>> {
27518
- const localVarAxiosArgs = await localVarAxiosParamCreator.cleanupImages(imageCleanupRequestBody, options);
27519
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27520
- const localVarOperationServerBasePath = operationServerMap['ImagesApi.cleanupImages']?.[localVarOperationServerIndex]?.url;
27521
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27522
- },
27523
- }
27524
- };
27525
-
27526
- /**
27527
- * ImagesApi - factory interface
27528
- * @export
27529
- */
27530
- export const ImagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27531
- const localVarFp = ImagesApiFp(configuration)
27532
- return {
27533
- /**
27534
- *
27535
- * @param {ImagesApiCleanupImagesRequest} requestParameters Request parameters.
27536
- * @param {*} [options] Override http request option.
27537
- * @throws {RequiredError}
27538
- */
27539
- cleanupImages(requestParameters: ImagesApiCleanupImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImageCleanupResponse> {
27540
- return localVarFp.cleanupImages(requestParameters.imageCleanupRequestBody, options).then((request) => request(axios, basePath));
27541
- },
27542
- };
27543
- };
27544
-
27545
- /**
27546
- * Request parameters for cleanupImages operation in ImagesApi.
27547
- * @export
27548
- * @interface ImagesApiCleanupImagesRequest
27549
- */
27550
- export interface ImagesApiCleanupImagesRequest {
27551
- /**
27552
- *
27553
- * @type {ImageCleanupRequestBody}
27554
- * @memberof ImagesApiCleanupImages
27555
- */
27556
- readonly imageCleanupRequestBody: ImageCleanupRequestBody
27557
- }
27558
-
27559
- /**
27560
- * ImagesApi - object-oriented interface
27561
- * @export
27562
- * @class ImagesApi
27563
- * @extends {BaseAPI}
27564
- */
27565
- export class ImagesApi extends BaseAPI {
27566
- /**
27567
- *
27568
- * @param {ImagesApiCleanupImagesRequest} requestParameters Request parameters.
27569
- * @param {*} [options] Override http request option.
27570
- * @throws {RequiredError}
27571
- * @memberof ImagesApi
27572
- */
27573
- public cleanupImages(requestParameters: ImagesApiCleanupImagesRequest, options?: RawAxiosRequestConfig) {
27574
- return ImagesApiFp(this.configuration).cleanupImages(requestParameters.imageCleanupRequestBody, options).then((request) => request(this.axios, this.basePath));
27575
- }
27576
- }
27577
-
27578
-
27579
-
27580
- /**
27581
- * PublicEmailApi - axios parameter creator
27582
- * @export
27583
- */
27584
- export const PublicEmailApiAxiosParamCreator = function (configuration?: Configuration) {
27585
- return {
27586
- /**
27587
- *
27588
- * @param {EmailExistsRequestBody} emailExistsRequestBody
27589
- * @param {*} [options] Override http request option.
27590
- * @throws {RequiredError}
27591
- */
27592
- authEmailExists: async (emailExistsRequestBody: EmailExistsRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27593
- // verify required parameter 'emailExistsRequestBody' is not null or undefined
27594
- assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody)
27595
- const localVarPath = `/api/public-email/auth-email-exists`;
27596
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
27597
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27598
- let baseOptions;
27599
- if (configuration) {
27600
- baseOptions = configuration.baseOptions;
27601
- }
27602
-
27603
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27604
- const localVarHeaderParameter = {} as any;
27605
- const localVarQueryParameter = {} as any;
27606
-
27607
-
27608
-
27609
- localVarHeaderParameter['Content-Type'] = 'application/json';
27610
-
27611
- setSearchParams(localVarUrlObj, localVarQueryParameter);
27612
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27613
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27614
- localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration)
27615
-
27616
- return {
27617
- url: toPathString(localVarUrlObj),
27618
- options: localVarRequestOptions,
27619
- };
27620
- },
27621
- /**
27622
- *
27623
- * @param {RequestEmailCodeBody} requestEmailCodeBody
27624
- * @param {*} [options] Override http request option.
27625
- * @throws {RequiredError}
27626
- */
27627
- requestVerificationCode: async (requestEmailCodeBody: RequestEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27628
- // verify required parameter 'requestEmailCodeBody' is not null or undefined
27629
- assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody)
27630
- const localVarPath = `/api/public-email/request-verification-code`;
27631
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
27632
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27633
- let baseOptions;
27634
- if (configuration) {
27635
- baseOptions = configuration.baseOptions;
27636
- }
27637
-
27638
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27639
- const localVarHeaderParameter = {} as any;
27640
- const localVarQueryParameter = {} as any;
27641
-
27642
-
27643
-
27644
- localVarHeaderParameter['Content-Type'] = 'application/json';
27645
-
27646
- setSearchParams(localVarUrlObj, localVarQueryParameter);
27647
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27648
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27649
- localVarRequestOptions.data = serializeDataIfNeeded(requestEmailCodeBody, localVarRequestOptions, configuration)
27650
-
27651
- return {
27652
- url: toPathString(localVarUrlObj),
27653
- options: localVarRequestOptions,
27654
- };
27655
- },
27656
- /**
27657
- *
27658
- * @param {VerifyEmailCodeBody} verifyEmailCodeBody
27659
- * @param {*} [options] Override http request option.
27660
- * @throws {RequiredError}
27661
- */
27662
- verifyCode: async (verifyEmailCodeBody: VerifyEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27663
- // verify required parameter 'verifyEmailCodeBody' is not null or undefined
27664
- assertParamExists('verifyCode', 'verifyEmailCodeBody', verifyEmailCodeBody)
27665
- const localVarPath = `/api/public-email/verify-code`;
27666
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
27667
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27668
- let baseOptions;
27669
- if (configuration) {
27670
- baseOptions = configuration.baseOptions;
27671
- }
27672
-
27673
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27674
- const localVarHeaderParameter = {} as any;
27675
- const localVarQueryParameter = {} as any;
27676
-
27677
-
27678
-
27679
- localVarHeaderParameter['Content-Type'] = 'application/json';
27680
-
27681
- setSearchParams(localVarUrlObj, localVarQueryParameter);
27682
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27683
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27684
- localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailCodeBody, localVarRequestOptions, configuration)
27685
-
27686
- return {
27687
- url: toPathString(localVarUrlObj),
27688
- options: localVarRequestOptions,
27689
- };
27690
- },
27691
- }
27692
- };
27693
-
27694
- /**
27695
- * PublicEmailApi - functional programming interface
27696
- * @export
27697
- */
27698
- export const PublicEmailApiFp = function(configuration?: Configuration) {
27699
- const localVarAxiosParamCreator = PublicEmailApiAxiosParamCreator(configuration)
27700
- return {
27701
- /**
27702
- *
27703
- * @param {EmailExistsRequestBody} emailExistsRequestBody
27704
- * @param {*} [options] Override http request option.
27705
- * @throws {RequiredError}
27706
- */
27707
- async authEmailExists(emailExistsRequestBody: EmailExistsRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailExistsResponse>> {
27708
- const localVarAxiosArgs = await localVarAxiosParamCreator.authEmailExists(emailExistsRequestBody, options);
27709
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27710
- const localVarOperationServerBasePath = operationServerMap['PublicEmailApi.authEmailExists']?.[localVarOperationServerIndex]?.url;
27711
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27712
- },
27713
- /**
27714
- *
27715
- * @param {RequestEmailCodeBody} requestEmailCodeBody
27716
- * @param {*} [options] Override http request option.
27717
- * @throws {RequiredError}
27718
- */
27719
- async requestVerificationCode(requestEmailCodeBody: RequestEmailCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestEmailCodeResponse>> {
27720
- const localVarAxiosArgs = await localVarAxiosParamCreator.requestVerificationCode(requestEmailCodeBody, options);
27721
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27722
- const localVarOperationServerBasePath = operationServerMap['PublicEmailApi.requestVerificationCode']?.[localVarOperationServerIndex]?.url;
27723
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27724
- },
27725
- /**
27726
- *
27727
- * @param {VerifyEmailCodeBody} verifyEmailCodeBody
27728
- * @param {*} [options] Override http request option.
27729
- * @throws {RequiredError}
27730
- */
27731
- async verifyCode(verifyEmailCodeBody: VerifyEmailCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyEmailCodeResponse>> {
27732
- const localVarAxiosArgs = await localVarAxiosParamCreator.verifyCode(verifyEmailCodeBody, options);
27733
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27734
- const localVarOperationServerBasePath = operationServerMap['PublicEmailApi.verifyCode']?.[localVarOperationServerIndex]?.url;
27735
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27736
- },
27737
- }
27738
- };
27739
-
27740
- /**
27741
- * PublicEmailApi - factory interface
27742
- * @export
27743
- */
27744
- export const PublicEmailApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27745
- const localVarFp = PublicEmailApiFp(configuration)
27746
- return {
27747
- /**
27748
- *
27749
- * @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
27750
- * @param {*} [options] Override http request option.
27751
- * @throws {RequiredError}
27752
- */
27753
- authEmailExists(requestParameters: PublicEmailApiAuthEmailExistsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EmailExistsResponse> {
27754
- return localVarFp.authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(axios, basePath));
27755
- },
27756
- /**
27757
- *
27758
- * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
27759
- * @param {*} [options] Override http request option.
27760
- * @throws {RequiredError}
27761
- */
27762
- requestVerificationCode(requestParameters: PublicEmailApiRequestVerificationCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestEmailCodeResponse> {
27763
- return localVarFp.requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
27764
- },
27765
- /**
27766
- *
27767
- * @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
27768
- * @param {*} [options] Override http request option.
27769
- * @throws {RequiredError}
27770
- */
27771
- verifyCode(requestParameters: PublicEmailApiVerifyCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<VerifyEmailCodeResponse> {
27772
- return localVarFp.verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(axios, basePath));
27773
- },
27774
- };
27775
- };
27776
-
27777
- /**
27778
- * Request parameters for authEmailExists operation in PublicEmailApi.
27779
- * @export
27780
- * @interface PublicEmailApiAuthEmailExistsRequest
27781
- */
27782
- export interface PublicEmailApiAuthEmailExistsRequest {
27783
- /**
27784
- *
27785
- * @type {EmailExistsRequestBody}
27786
- * @memberof PublicEmailApiAuthEmailExists
27787
- */
27788
- readonly emailExistsRequestBody: EmailExistsRequestBody
27789
- }
27790
-
27791
- /**
27792
- * Request parameters for requestVerificationCode operation in PublicEmailApi.
27793
- * @export
27794
- * @interface PublicEmailApiRequestVerificationCodeRequest
27795
- */
27796
- export interface PublicEmailApiRequestVerificationCodeRequest {
27797
- /**
27798
- *
27799
- * @type {RequestEmailCodeBody}
27800
- * @memberof PublicEmailApiRequestVerificationCode
27801
- */
27802
- readonly requestEmailCodeBody: RequestEmailCodeBody
27803
- }
27804
-
27805
- /**
27806
- * Request parameters for verifyCode operation in PublicEmailApi.
27807
- * @export
27808
- * @interface PublicEmailApiVerifyCodeRequest
27809
- */
27810
- export interface PublicEmailApiVerifyCodeRequest {
27811
- /**
27812
- *
27813
- * @type {VerifyEmailCodeBody}
27814
- * @memberof PublicEmailApiVerifyCode
27815
- */
27816
- readonly verifyEmailCodeBody: VerifyEmailCodeBody
27817
- }
27818
-
27819
- /**
27820
- * PublicEmailApi - object-oriented interface
27821
- * @export
27822
- * @class PublicEmailApi
27823
- * @extends {BaseAPI}
27824
- */
27825
- export class PublicEmailApi extends BaseAPI {
27826
- /**
27827
- *
27828
- * @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
27829
- * @param {*} [options] Override http request option.
27830
- * @throws {RequiredError}
27831
- * @memberof PublicEmailApi
27832
- */
27833
- public authEmailExists(requestParameters: PublicEmailApiAuthEmailExistsRequest, options?: RawAxiosRequestConfig) {
27834
- return PublicEmailApiFp(this.configuration).authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(this.axios, this.basePath));
27835
- }
27836
-
27837
- /**
27838
- *
27839
- * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
27840
- * @param {*} [options] Override http request option.
27841
- * @throws {RequiredError}
27842
- * @memberof PublicEmailApi
27843
- */
27844
- public requestVerificationCode(requestParameters: PublicEmailApiRequestVerificationCodeRequest, options?: RawAxiosRequestConfig) {
27845
- return PublicEmailApiFp(this.configuration).requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
27846
- }
27847
-
27848
- /**
27849
- *
27850
- * @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
27851
- * @param {*} [options] Override http request option.
27852
- * @throws {RequiredError}
27853
- * @memberof PublicEmailApi
27854
- */
27855
- public verifyCode(requestParameters: PublicEmailApiVerifyCodeRequest, options?: RawAxiosRequestConfig) {
27856
- return PublicEmailApiFp(this.configuration).verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
27857
- }
27858
- }
27859
-
27860
-
27861
-
27862
- /**
27863
- * SportsManagerApi - axios parameter creator
27864
- * @export
27865
- */
27866
- export const SportsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
27867
- return {
27868
- /**
27869
- * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
27870
- * @param {CreateSportRequest} createSportRequest
27871
- * @param {*} [options] Override http request option.
27872
- * @throws {RequiredError}
27873
- */
27874
- createSport: async (createSportRequest: CreateSportRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27875
- // verify required parameter 'createSportRequest' is not null or undefined
27876
- assertParamExists('createSport', 'createSportRequest', createSportRequest)
27877
- const localVarPath = `/api/sports`;
27688
+ createSport: async (createSportRequest: CreateSportRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27689
+ // verify required parameter 'createSportRequest' is not null or undefined
27690
+ assertParamExists('createSport', 'createSportRequest', createSportRequest)
27691
+ const localVarPath = `/api/sports`;
27878
27692
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27879
27693
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27880
27694
  let baseOptions;
@@ -30240,6 +30054,43 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
30240
30054
 
30241
30055
 
30242
30056
 
30057
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30058
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30059
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30060
+
30061
+ return {
30062
+ url: toPathString(localVarUrlObj),
30063
+ options: localVarRequestOptions,
30064
+ };
30065
+ },
30066
+ /**
30067
+ * Quitter une réservation
30068
+ * @param {string} bookingId
30069
+ * @param {*} [options] Override http request option.
30070
+ * @throws {RequiredError}
30071
+ */
30072
+ leaveBooking: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30073
+ // verify required parameter 'bookingId' is not null or undefined
30074
+ assertParamExists('leaveBooking', 'bookingId', bookingId)
30075
+ const localVarPath = `/api/users/me/bookings/{bookingId}/leave`
30076
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
30077
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30078
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30079
+ let baseOptions;
30080
+ if (configuration) {
30081
+ baseOptions = configuration.baseOptions;
30082
+ }
30083
+
30084
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
30085
+ const localVarHeaderParameter = {} as any;
30086
+ const localVarQueryParameter = {} as any;
30087
+
30088
+ // authentication bearerAuth required
30089
+ // http bearer authentication required
30090
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
30091
+
30092
+
30093
+
30243
30094
  setSearchParams(localVarUrlObj, localVarQueryParameter);
30244
30095
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30245
30096
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -31024,7 +30875,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
31024
30875
  * @param {*} [options] Override http request option.
31025
30876
  * @throws {RequiredError}
31026
30877
  */
31027
- async addOrganization(addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
30878
+ async addOrganization(addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
31028
30879
  const localVarAxiosArgs = await localVarAxiosParamCreator.addOrganization(addOrganizationRequest, options);
31029
30880
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31030
30881
  const localVarOperationServerBasePath = operationServerMap['UsersApi.addOrganization']?.[localVarOperationServerIndex]?.url;
@@ -31248,6 +31099,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
31248
31099
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserProfileById']?.[localVarOperationServerIndex]?.url;
31249
31100
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31250
31101
  },
31102
+ /**
31103
+ * Quitter une réservation
31104
+ * @param {string} bookingId
31105
+ * @param {*} [options] Override http request option.
31106
+ * @throws {RequiredError}
31107
+ */
31108
+ async leaveBooking(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
31109
+ const localVarAxiosArgs = await localVarAxiosParamCreator.leaveBooking(bookingId, options);
31110
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31111
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.leaveBooking']?.[localVarOperationServerIndex]?.url;
31112
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31113
+ },
31251
31114
  /**
31252
31115
  *
31253
31116
  * @param {PlayerCategoryId} [category]
@@ -31359,7 +31222,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
31359
31222
  * @param {*} [options] Override http request option.
31360
31223
  * @throws {RequiredError}
31361
31224
  */
31362
- async removeOrganization(addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
31225
+ async removeOrganization(addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
31363
31226
  const localVarAxiosArgs = await localVarAxiosParamCreator.removeOrganization(addOrganizationRequest, options);
31364
31227
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31365
31228
  const localVarOperationServerBasePath = operationServerMap['UsersApi.removeOrganization']?.[localVarOperationServerIndex]?.url;
@@ -31370,7 +31233,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
31370
31233
  * @param {*} [options] Override http request option.
31371
31234
  * @throws {RequiredError}
31372
31235
  */
31373
- async requestEmailVerification(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
31236
+ async requestEmailVerification(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
31374
31237
  const localVarAxiosArgs = await localVarAxiosParamCreator.requestEmailVerification(options);
31375
31238
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31376
31239
  const localVarOperationServerBasePath = operationServerMap['UsersApi.requestEmailVerification']?.[localVarOperationServerIndex]?.url;
@@ -31382,7 +31245,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
31382
31245
  * @param {*} [options] Override http request option.
31383
31246
  * @throws {RequiredError}
31384
31247
  */
31385
- async requestPasswordReset(passwordResetRequestBody: PasswordResetRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
31248
+ async requestPasswordReset(passwordResetRequestBody: PasswordResetRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
31386
31249
  const localVarAxiosArgs = await localVarAxiosParamCreator.requestPasswordReset(passwordResetRequestBody, options);
31387
31250
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31388
31251
  const localVarOperationServerBasePath = operationServerMap['UsersApi.requestPasswordReset']?.[localVarOperationServerIndex]?.url;
@@ -31394,7 +31257,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
31394
31257
  * @param {*} [options] Override http request option.
31395
31258
  * @throws {RequiredError}
31396
31259
  */
31397
- async resetPassword(resetPasswordRequest: ResetPasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
31260
+ async resetPassword(resetPasswordRequest: ResetPasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
31398
31261
  const localVarAxiosArgs = await localVarAxiosParamCreator.resetPassword(resetPasswordRequest, options);
31399
31262
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31400
31263
  const localVarOperationServerBasePath = operationServerMap['UsersApi.resetPassword']?.[localVarOperationServerIndex]?.url;
@@ -31466,7 +31329,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
31466
31329
  * @param {*} [options] Override http request option.
31467
31330
  * @throws {RequiredError}
31468
31331
  */
31469
- async verifyEmail(verifyEmailRequest: VerifyEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
31332
+ async verifyEmail(verifyEmailRequest: VerifyEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
31470
31333
  const localVarAxiosArgs = await localVarAxiosParamCreator.verifyEmail(verifyEmailRequest, options);
31471
31334
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31472
31335
  const localVarOperationServerBasePath = operationServerMap['UsersApi.verifyEmail']?.[localVarOperationServerIndex]?.url;
@@ -31478,7 +31341,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
31478
31341
  * @param {*} [options] Override http request option.
31479
31342
  * @throws {RequiredError}
31480
31343
  */
31481
- async verifyOrganization(verifyEmailRequest: VerifyEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
31344
+ async verifyOrganization(verifyEmailRequest: VerifyEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
31482
31345
  const localVarAxiosArgs = await localVarAxiosParamCreator.verifyOrganization(verifyEmailRequest, options);
31483
31346
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31484
31347
  const localVarOperationServerBasePath = operationServerMap['UsersApi.verifyOrganization']?.[localVarOperationServerIndex]?.url;
@@ -31518,7 +31381,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
31518
31381
  * @param {*} [options] Override http request option.
31519
31382
  * @throws {RequiredError}
31520
31383
  */
31521
- addOrganization(requestParameters: UsersApiAddOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
31384
+ addOrganization(requestParameters: UsersApiAddOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
31522
31385
  return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
31523
31386
  },
31524
31387
  /**
@@ -31675,6 +31538,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
31675
31538
  getUserProfileById(requestParameters: UsersApiGetUserProfileByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicUserProfileResponse> {
31676
31539
  return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
31677
31540
  },
31541
+ /**
31542
+ * Quitter une réservation
31543
+ * @param {UsersApiLeaveBookingRequest} requestParameters Request parameters.
31544
+ * @param {*} [options] Override http request option.
31545
+ * @throws {RequiredError}
31546
+ */
31547
+ leaveBooking(requestParameters: UsersApiLeaveBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
31548
+ return localVarFp.leaveBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
31549
+ },
31678
31550
  /**
31679
31551
  *
31680
31552
  * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
@@ -31753,7 +31625,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
31753
31625
  * @param {*} [options] Override http request option.
31754
31626
  * @throws {RequiredError}
31755
31627
  */
31756
- removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
31628
+ removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
31757
31629
  return localVarFp.removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
31758
31630
  },
31759
31631
  /**
@@ -31761,7 +31633,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
31761
31633
  * @param {*} [options] Override http request option.
31762
31634
  * @throws {RequiredError}
31763
31635
  */
31764
- requestEmailVerification(options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
31636
+ requestEmailVerification(options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
31765
31637
  return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
31766
31638
  },
31767
31639
  /**
@@ -31770,7 +31642,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
31770
31642
  * @param {*} [options] Override http request option.
31771
31643
  * @throws {RequiredError}
31772
31644
  */
31773
- requestPasswordReset(requestParameters: UsersApiRequestPasswordResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
31645
+ requestPasswordReset(requestParameters: UsersApiRequestPasswordResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
31774
31646
  return localVarFp.requestPasswordReset(requestParameters.passwordResetRequestBody, options).then((request) => request(axios, basePath));
31775
31647
  },
31776
31648
  /**
@@ -31779,7 +31651,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
31779
31651
  * @param {*} [options] Override http request option.
31780
31652
  * @throws {RequiredError}
31781
31653
  */
31782
- resetPassword(requestParameters: UsersApiResetPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
31654
+ resetPassword(requestParameters: UsersApiResetPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
31783
31655
  return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
31784
31656
  },
31785
31657
  /**
@@ -31833,7 +31705,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
31833
31705
  * @param {*} [options] Override http request option.
31834
31706
  * @throws {RequiredError}
31835
31707
  */
31836
- verifyEmail(requestParameters: UsersApiVerifyEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
31708
+ verifyEmail(requestParameters: UsersApiVerifyEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
31837
31709
  return localVarFp.verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
31838
31710
  },
31839
31711
  /**
@@ -31842,7 +31714,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
31842
31714
  * @param {*} [options] Override http request option.
31843
31715
  * @throws {RequiredError}
31844
31716
  */
31845
- verifyOrganization(requestParameters: UsersApiVerifyOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
31717
+ verifyOrganization(requestParameters: UsersApiVerifyOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
31846
31718
  return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
31847
31719
  },
31848
31720
  };
@@ -32100,6 +31972,20 @@ export interface UsersApiGetUserProfileByIdRequest {
32100
31972
  readonly id: string
32101
31973
  }
32102
31974
 
31975
+ /**
31976
+ * Request parameters for leaveBooking operation in UsersApi.
31977
+ * @export
31978
+ * @interface UsersApiLeaveBookingRequest
31979
+ */
31980
+ export interface UsersApiLeaveBookingRequest {
31981
+ /**
31982
+ *
31983
+ * @type {string}
31984
+ * @memberof UsersApiLeaveBooking
31985
+ */
31986
+ readonly bookingId: string
31987
+ }
31988
+
32103
31989
  /**
32104
31990
  * Request parameters for listPlayers operation in UsersApi.
32105
31991
  * @export
@@ -32645,6 +32531,17 @@ export class UsersApi extends BaseAPI {
32645
32531
  return UsersApiFp(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
32646
32532
  }
32647
32533
 
32534
+ /**
32535
+ * Quitter une réservation
32536
+ * @param {UsersApiLeaveBookingRequest} requestParameters Request parameters.
32537
+ * @param {*} [options] Override http request option.
32538
+ * @throws {RequiredError}
32539
+ * @memberof UsersApi
32540
+ */
32541
+ public leaveBooking(requestParameters: UsersApiLeaveBookingRequest, options?: RawAxiosRequestConfig) {
32542
+ return UsersApiFp(this.configuration).leaveBooking(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
32543
+ }
32544
+
32648
32545
  /**
32649
32546
  *
32650
32547
  * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
@@ -32856,3 +32753,1326 @@ export class UsersApi extends BaseAPI {
32856
32753
 
32857
32754
 
32858
32755
 
32756
+ /**
32757
+ * WaitListApi - axios parameter creator
32758
+ * @export
32759
+ */
32760
+ export const WaitListApiAxiosParamCreator = function (configuration?: Configuration) {
32761
+ return {
32762
+ /**
32763
+ * Obtenir la position actuelle dans la file d\'attente d\'un booking
32764
+ * @param {string} bookingId
32765
+ * @param {*} [options] Override http request option.
32766
+ * @throws {RequiredError}
32767
+ */
32768
+ getBookingPosition: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32769
+ // verify required parameter 'bookingId' is not null or undefined
32770
+ assertParamExists('getBookingPosition', 'bookingId', bookingId)
32771
+ const localVarPath = `/api/waitlist/booking/{bookingId}/position`
32772
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
32773
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32774
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32775
+ let baseOptions;
32776
+ if (configuration) {
32777
+ baseOptions = configuration.baseOptions;
32778
+ }
32779
+
32780
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
32781
+ const localVarHeaderParameter = {} as any;
32782
+ const localVarQueryParameter = {} as any;
32783
+
32784
+ // authentication bearerAuth required
32785
+ // http bearer authentication required
32786
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
32787
+
32788
+
32789
+
32790
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32791
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32792
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32793
+
32794
+ return {
32795
+ url: toPathString(localVarUrlObj),
32796
+ options: localVarRequestOptions,
32797
+ };
32798
+ },
32799
+ /**
32800
+ * Obtenir la position actuelle dans la file d\'attente d\'un eventBooking
32801
+ * @param {string} eventBookingId
32802
+ * @param {*} [options] Override http request option.
32803
+ * @throws {RequiredError}
32804
+ */
32805
+ getEventBookingPosition: async (eventBookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32806
+ // verify required parameter 'eventBookingId' is not null or undefined
32807
+ assertParamExists('getEventBookingPosition', 'eventBookingId', eventBookingId)
32808
+ const localVarPath = `/api/waitlist/event-booking/{eventBookingId}/position`
32809
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
32810
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32811
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32812
+ let baseOptions;
32813
+ if (configuration) {
32814
+ baseOptions = configuration.baseOptions;
32815
+ }
32816
+
32817
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
32818
+ const localVarHeaderParameter = {} as any;
32819
+ const localVarQueryParameter = {} as any;
32820
+
32821
+ // authentication bearerAuth required
32822
+ // http bearer authentication required
32823
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
32824
+
32825
+
32826
+
32827
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32828
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32829
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32830
+
32831
+ return {
32832
+ url: toPathString(localVarUrlObj),
32833
+ options: localVarRequestOptions,
32834
+ };
32835
+ },
32836
+ /**
32837
+ * Obtenir la position actuelle dans la file d\'attente d\'un event
32838
+ * @param {string} eventId
32839
+ * @param {*} [options] Override http request option.
32840
+ * @throws {RequiredError}
32841
+ */
32842
+ getEventPosition: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32843
+ // verify required parameter 'eventId' is not null or undefined
32844
+ assertParamExists('getEventPosition', 'eventId', eventId)
32845
+ const localVarPath = `/api/waitlist/event/{eventId}/position`
32846
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
32847
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32848
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32849
+ let baseOptions;
32850
+ if (configuration) {
32851
+ baseOptions = configuration.baseOptions;
32852
+ }
32853
+
32854
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
32855
+ const localVarHeaderParameter = {} as any;
32856
+ const localVarQueryParameter = {} as any;
32857
+
32858
+ // authentication bearerAuth required
32859
+ // http bearer authentication required
32860
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
32861
+
32862
+
32863
+
32864
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32865
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32866
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32867
+
32868
+ return {
32869
+ url: toPathString(localVarUrlObj),
32870
+ options: localVarRequestOptions,
32871
+ };
32872
+ },
32873
+ /**
32874
+ * Rejoindre la file d\'attente pour un booking (créneau ouvert)
32875
+ * @param {string} bookingId
32876
+ * @param {*} [options] Override http request option.
32877
+ * @throws {RequiredError}
32878
+ */
32879
+ joinBookingWaitList: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32880
+ // verify required parameter 'bookingId' is not null or undefined
32881
+ assertParamExists('joinBookingWaitList', 'bookingId', bookingId)
32882
+ const localVarPath = `/api/waitlist/booking/{bookingId}/join`
32883
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
32884
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32885
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32886
+ let baseOptions;
32887
+ if (configuration) {
32888
+ baseOptions = configuration.baseOptions;
32889
+ }
32890
+
32891
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
32892
+ const localVarHeaderParameter = {} as any;
32893
+ const localVarQueryParameter = {} as any;
32894
+
32895
+ // authentication bearerAuth required
32896
+ // http bearer authentication required
32897
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
32898
+
32899
+
32900
+
32901
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32902
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32903
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32904
+
32905
+ return {
32906
+ url: toPathString(localVarUrlObj),
32907
+ options: localVarRequestOptions,
32908
+ };
32909
+ },
32910
+ /**
32911
+ * Rejoindre la file d\'attente pour un eventBooking (event en équipe avec créneau ouvert)
32912
+ * @param {string} eventBookingId
32913
+ * @param {*} [options] Override http request option.
32914
+ * @throws {RequiredError}
32915
+ */
32916
+ joinEventBookingWaitList: async (eventBookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32917
+ // verify required parameter 'eventBookingId' is not null or undefined
32918
+ assertParamExists('joinEventBookingWaitList', 'eventBookingId', eventBookingId)
32919
+ const localVarPath = `/api/waitlist/event-booking/{eventBookingId}/join`
32920
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
32921
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32922
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32923
+ let baseOptions;
32924
+ if (configuration) {
32925
+ baseOptions = configuration.baseOptions;
32926
+ }
32927
+
32928
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
32929
+ const localVarHeaderParameter = {} as any;
32930
+ const localVarQueryParameter = {} as any;
32931
+
32932
+ // authentication bearerAuth required
32933
+ // http bearer authentication required
32934
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
32935
+
32936
+
32937
+
32938
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32939
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32940
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32941
+
32942
+ return {
32943
+ url: toPathString(localVarUrlObj),
32944
+ options: localVarRequestOptions,
32945
+ };
32946
+ },
32947
+ /**
32948
+ * Rejoindre la file d\'attente pour un event (participation solo)
32949
+ * @param {string} eventId
32950
+ * @param {*} [options] Override http request option.
32951
+ * @throws {RequiredError}
32952
+ */
32953
+ joinEventWaitList: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32954
+ // verify required parameter 'eventId' is not null or undefined
32955
+ assertParamExists('joinEventWaitList', 'eventId', eventId)
32956
+ const localVarPath = `/api/waitlist/event/{eventId}/join`
32957
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
32958
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32959
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32960
+ let baseOptions;
32961
+ if (configuration) {
32962
+ baseOptions = configuration.baseOptions;
32963
+ }
32964
+
32965
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
32966
+ const localVarHeaderParameter = {} as any;
32967
+ const localVarQueryParameter = {} as any;
32968
+
32969
+ // authentication bearerAuth required
32970
+ // http bearer authentication required
32971
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
32972
+
32973
+
32974
+
32975
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32976
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32977
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32978
+
32979
+ return {
32980
+ url: toPathString(localVarUrlObj),
32981
+ options: localVarRequestOptions,
32982
+ };
32983
+ },
32984
+ /**
32985
+ * Quitter la file d\'attente d\'un booking
32986
+ * @param {string} bookingId
32987
+ * @param {*} [options] Override http request option.
32988
+ * @throws {RequiredError}
32989
+ */
32990
+ leaveBookingWaitList: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32991
+ // verify required parameter 'bookingId' is not null or undefined
32992
+ assertParamExists('leaveBookingWaitList', 'bookingId', bookingId)
32993
+ const localVarPath = `/api/waitlist/booking/{bookingId}/leave`
32994
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
32995
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32996
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32997
+ let baseOptions;
32998
+ if (configuration) {
32999
+ baseOptions = configuration.baseOptions;
33000
+ }
33001
+
33002
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
33003
+ const localVarHeaderParameter = {} as any;
33004
+ const localVarQueryParameter = {} as any;
33005
+
33006
+ // authentication bearerAuth required
33007
+ // http bearer authentication required
33008
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33009
+
33010
+
33011
+
33012
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33013
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33014
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33015
+
33016
+ return {
33017
+ url: toPathString(localVarUrlObj),
33018
+ options: localVarRequestOptions,
33019
+ };
33020
+ },
33021
+ /**
33022
+ * Quitter la file d\'attente d\'un eventBooking
33023
+ * @param {string} eventBookingId
33024
+ * @param {*} [options] Override http request option.
33025
+ * @throws {RequiredError}
33026
+ */
33027
+ leaveEventBookingWaitList: async (eventBookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33028
+ // verify required parameter 'eventBookingId' is not null or undefined
33029
+ assertParamExists('leaveEventBookingWaitList', 'eventBookingId', eventBookingId)
33030
+ const localVarPath = `/api/waitlist/event-booking/{eventBookingId}/leave`
33031
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
33032
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33033
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33034
+ let baseOptions;
33035
+ if (configuration) {
33036
+ baseOptions = configuration.baseOptions;
33037
+ }
33038
+
33039
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
33040
+ const localVarHeaderParameter = {} as any;
33041
+ const localVarQueryParameter = {} as any;
33042
+
33043
+ // authentication bearerAuth required
33044
+ // http bearer authentication required
33045
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33046
+
33047
+
33048
+
33049
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33050
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33051
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33052
+
33053
+ return {
33054
+ url: toPathString(localVarUrlObj),
33055
+ options: localVarRequestOptions,
33056
+ };
33057
+ },
33058
+ /**
33059
+ * Quitter la file d\'attente d\'un event
33060
+ * @param {string} eventId
33061
+ * @param {*} [options] Override http request option.
33062
+ * @throws {RequiredError}
33063
+ */
33064
+ leaveEventWaitList: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33065
+ // verify required parameter 'eventId' is not null or undefined
33066
+ assertParamExists('leaveEventWaitList', 'eventId', eventId)
33067
+ const localVarPath = `/api/waitlist/event/{eventId}/leave`
33068
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
33069
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33070
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33071
+ let baseOptions;
33072
+ if (configuration) {
33073
+ baseOptions = configuration.baseOptions;
33074
+ }
33075
+
33076
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
33077
+ const localVarHeaderParameter = {} as any;
33078
+ const localVarQueryParameter = {} as any;
33079
+
33080
+ // authentication bearerAuth required
33081
+ // http bearer authentication required
33082
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33083
+
33084
+
33085
+
33086
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33087
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33088
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33089
+
33090
+ return {
33091
+ url: toPathString(localVarUrlObj),
33092
+ options: localVarRequestOptions,
33093
+ };
33094
+ },
33095
+ }
33096
+ };
33097
+
33098
+ /**
33099
+ * WaitListApi - functional programming interface
33100
+ * @export
33101
+ */
33102
+ export const WaitListApiFp = function(configuration?: Configuration) {
33103
+ const localVarAxiosParamCreator = WaitListApiAxiosParamCreator(configuration)
33104
+ return {
33105
+ /**
33106
+ * Obtenir la position actuelle dans la file d\'attente d\'un booking
33107
+ * @param {string} bookingId
33108
+ * @param {*} [options] Override http request option.
33109
+ * @throws {RequiredError}
33110
+ */
33111
+ async getBookingPosition(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WaitListPositionResponse>> {
33112
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingPosition(bookingId, options);
33113
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33114
+ const localVarOperationServerBasePath = operationServerMap['WaitListApi.getBookingPosition']?.[localVarOperationServerIndex]?.url;
33115
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33116
+ },
33117
+ /**
33118
+ * Obtenir la position actuelle dans la file d\'attente d\'un eventBooking
33119
+ * @param {string} eventBookingId
33120
+ * @param {*} [options] Override http request option.
33121
+ * @throws {RequiredError}
33122
+ */
33123
+ async getEventBookingPosition(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WaitListPositionResponse>> {
33124
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventBookingPosition(eventBookingId, options);
33125
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33126
+ const localVarOperationServerBasePath = operationServerMap['WaitListApi.getEventBookingPosition']?.[localVarOperationServerIndex]?.url;
33127
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33128
+ },
33129
+ /**
33130
+ * Obtenir la position actuelle dans la file d\'attente d\'un event
33131
+ * @param {string} eventId
33132
+ * @param {*} [options] Override http request option.
33133
+ * @throws {RequiredError}
33134
+ */
33135
+ async getEventPosition(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WaitListPositionResponse>> {
33136
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventPosition(eventId, options);
33137
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33138
+ const localVarOperationServerBasePath = operationServerMap['WaitListApi.getEventPosition']?.[localVarOperationServerIndex]?.url;
33139
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33140
+ },
33141
+ /**
33142
+ * Rejoindre la file d\'attente pour un booking (créneau ouvert)
33143
+ * @param {string} bookingId
33144
+ * @param {*} [options] Override http request option.
33145
+ * @throws {RequiredError}
33146
+ */
33147
+ async joinBookingWaitList(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventWaitList200Response>> {
33148
+ const localVarAxiosArgs = await localVarAxiosParamCreator.joinBookingWaitList(bookingId, options);
33149
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33150
+ const localVarOperationServerBasePath = operationServerMap['WaitListApi.joinBookingWaitList']?.[localVarOperationServerIndex]?.url;
33151
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33152
+ },
33153
+ /**
33154
+ * Rejoindre la file d\'attente pour un eventBooking (event en équipe avec créneau ouvert)
33155
+ * @param {string} eventBookingId
33156
+ * @param {*} [options] Override http request option.
33157
+ * @throws {RequiredError}
33158
+ */
33159
+ async joinEventBookingWaitList(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventWaitList200Response>> {
33160
+ const localVarAxiosArgs = await localVarAxiosParamCreator.joinEventBookingWaitList(eventBookingId, options);
33161
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33162
+ const localVarOperationServerBasePath = operationServerMap['WaitListApi.joinEventBookingWaitList']?.[localVarOperationServerIndex]?.url;
33163
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33164
+ },
33165
+ /**
33166
+ * Rejoindre la file d\'attente pour un event (participation solo)
33167
+ * @param {string} eventId
33168
+ * @param {*} [options] Override http request option.
33169
+ * @throws {RequiredError}
33170
+ */
33171
+ async joinEventWaitList(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventWaitList200Response>> {
33172
+ const localVarAxiosArgs = await localVarAxiosParamCreator.joinEventWaitList(eventId, options);
33173
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33174
+ const localVarOperationServerBasePath = operationServerMap['WaitListApi.joinEventWaitList']?.[localVarOperationServerIndex]?.url;
33175
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33176
+ },
33177
+ /**
33178
+ * Quitter la file d\'attente d\'un booking
33179
+ * @param {string} bookingId
33180
+ * @param {*} [options] Override http request option.
33181
+ * @throws {RequiredError}
33182
+ */
33183
+ async leaveBookingWaitList(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
33184
+ const localVarAxiosArgs = await localVarAxiosParamCreator.leaveBookingWaitList(bookingId, options);
33185
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33186
+ const localVarOperationServerBasePath = operationServerMap['WaitListApi.leaveBookingWaitList']?.[localVarOperationServerIndex]?.url;
33187
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33188
+ },
33189
+ /**
33190
+ * Quitter la file d\'attente d\'un eventBooking
33191
+ * @param {string} eventBookingId
33192
+ * @param {*} [options] Override http request option.
33193
+ * @throws {RequiredError}
33194
+ */
33195
+ async leaveEventBookingWaitList(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
33196
+ const localVarAxiosArgs = await localVarAxiosParamCreator.leaveEventBookingWaitList(eventBookingId, options);
33197
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33198
+ const localVarOperationServerBasePath = operationServerMap['WaitListApi.leaveEventBookingWaitList']?.[localVarOperationServerIndex]?.url;
33199
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33200
+ },
33201
+ /**
33202
+ * Quitter la file d\'attente d\'un event
33203
+ * @param {string} eventId
33204
+ * @param {*} [options] Override http request option.
33205
+ * @throws {RequiredError}
33206
+ */
33207
+ async leaveEventWaitList(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
33208
+ const localVarAxiosArgs = await localVarAxiosParamCreator.leaveEventWaitList(eventId, options);
33209
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33210
+ const localVarOperationServerBasePath = operationServerMap['WaitListApi.leaveEventWaitList']?.[localVarOperationServerIndex]?.url;
33211
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33212
+ },
33213
+ }
33214
+ };
33215
+
33216
+ /**
33217
+ * WaitListApi - factory interface
33218
+ * @export
33219
+ */
33220
+ export const WaitListApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
33221
+ const localVarFp = WaitListApiFp(configuration)
33222
+ return {
33223
+ /**
33224
+ * Obtenir la position actuelle dans la file d\'attente d\'un booking
33225
+ * @param {WaitListApiGetBookingPositionRequest} requestParameters Request parameters.
33226
+ * @param {*} [options] Override http request option.
33227
+ * @throws {RequiredError}
33228
+ */
33229
+ getBookingPosition(requestParameters: WaitListApiGetBookingPositionRequest, options?: RawAxiosRequestConfig): AxiosPromise<WaitListPositionResponse> {
33230
+ return localVarFp.getBookingPosition(requestParameters.bookingId, options).then((request) => request(axios, basePath));
33231
+ },
33232
+ /**
33233
+ * Obtenir la position actuelle dans la file d\'attente d\'un eventBooking
33234
+ * @param {WaitListApiGetEventBookingPositionRequest} requestParameters Request parameters.
33235
+ * @param {*} [options] Override http request option.
33236
+ * @throws {RequiredError}
33237
+ */
33238
+ getEventBookingPosition(requestParameters: WaitListApiGetEventBookingPositionRequest, options?: RawAxiosRequestConfig): AxiosPromise<WaitListPositionResponse> {
33239
+ return localVarFp.getEventBookingPosition(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
33240
+ },
33241
+ /**
33242
+ * Obtenir la position actuelle dans la file d\'attente d\'un event
33243
+ * @param {WaitListApiGetEventPositionRequest} requestParameters Request parameters.
33244
+ * @param {*} [options] Override http request option.
33245
+ * @throws {RequiredError}
33246
+ */
33247
+ getEventPosition(requestParameters: WaitListApiGetEventPositionRequest, options?: RawAxiosRequestConfig): AxiosPromise<WaitListPositionResponse> {
33248
+ return localVarFp.getEventPosition(requestParameters.eventId, options).then((request) => request(axios, basePath));
33249
+ },
33250
+ /**
33251
+ * Rejoindre la file d\'attente pour un booking (créneau ouvert)
33252
+ * @param {WaitListApiJoinBookingWaitListRequest} requestParameters Request parameters.
33253
+ * @param {*} [options] Override http request option.
33254
+ * @throws {RequiredError}
33255
+ */
33256
+ joinBookingWaitList(requestParameters: WaitListApiJoinBookingWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventWaitList200Response> {
33257
+ return localVarFp.joinBookingWaitList(requestParameters.bookingId, options).then((request) => request(axios, basePath));
33258
+ },
33259
+ /**
33260
+ * Rejoindre la file d\'attente pour un eventBooking (event en équipe avec créneau ouvert)
33261
+ * @param {WaitListApiJoinEventBookingWaitListRequest} requestParameters Request parameters.
33262
+ * @param {*} [options] Override http request option.
33263
+ * @throws {RequiredError}
33264
+ */
33265
+ joinEventBookingWaitList(requestParameters: WaitListApiJoinEventBookingWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventWaitList200Response> {
33266
+ return localVarFp.joinEventBookingWaitList(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
33267
+ },
33268
+ /**
33269
+ * Rejoindre la file d\'attente pour un event (participation solo)
33270
+ * @param {WaitListApiJoinEventWaitListRequest} requestParameters Request parameters.
33271
+ * @param {*} [options] Override http request option.
33272
+ * @throws {RequiredError}
33273
+ */
33274
+ joinEventWaitList(requestParameters: WaitListApiJoinEventWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventWaitList200Response> {
33275
+ return localVarFp.joinEventWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
33276
+ },
33277
+ /**
33278
+ * Quitter la file d\'attente d\'un booking
33279
+ * @param {WaitListApiLeaveBookingWaitListRequest} requestParameters Request parameters.
33280
+ * @param {*} [options] Override http request option.
33281
+ * @throws {RequiredError}
33282
+ */
33283
+ leaveBookingWaitList(requestParameters: WaitListApiLeaveBookingWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
33284
+ return localVarFp.leaveBookingWaitList(requestParameters.bookingId, options).then((request) => request(axios, basePath));
33285
+ },
33286
+ /**
33287
+ * Quitter la file d\'attente d\'un eventBooking
33288
+ * @param {WaitListApiLeaveEventBookingWaitListRequest} requestParameters Request parameters.
33289
+ * @param {*} [options] Override http request option.
33290
+ * @throws {RequiredError}
33291
+ */
33292
+ leaveEventBookingWaitList(requestParameters: WaitListApiLeaveEventBookingWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
33293
+ return localVarFp.leaveEventBookingWaitList(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
33294
+ },
33295
+ /**
33296
+ * Quitter la file d\'attente d\'un event
33297
+ * @param {WaitListApiLeaveEventWaitListRequest} requestParameters Request parameters.
33298
+ * @param {*} [options] Override http request option.
33299
+ * @throws {RequiredError}
33300
+ */
33301
+ leaveEventWaitList(requestParameters: WaitListApiLeaveEventWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
33302
+ return localVarFp.leaveEventWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
33303
+ },
33304
+ };
33305
+ };
33306
+
33307
+ /**
33308
+ * Request parameters for getBookingPosition operation in WaitListApi.
33309
+ * @export
33310
+ * @interface WaitListApiGetBookingPositionRequest
33311
+ */
33312
+ export interface WaitListApiGetBookingPositionRequest {
33313
+ /**
33314
+ *
33315
+ * @type {string}
33316
+ * @memberof WaitListApiGetBookingPosition
33317
+ */
33318
+ readonly bookingId: string
33319
+ }
33320
+
33321
+ /**
33322
+ * Request parameters for getEventBookingPosition operation in WaitListApi.
33323
+ * @export
33324
+ * @interface WaitListApiGetEventBookingPositionRequest
33325
+ */
33326
+ export interface WaitListApiGetEventBookingPositionRequest {
33327
+ /**
33328
+ *
33329
+ * @type {string}
33330
+ * @memberof WaitListApiGetEventBookingPosition
33331
+ */
33332
+ readonly eventBookingId: string
33333
+ }
33334
+
33335
+ /**
33336
+ * Request parameters for getEventPosition operation in WaitListApi.
33337
+ * @export
33338
+ * @interface WaitListApiGetEventPositionRequest
33339
+ */
33340
+ export interface WaitListApiGetEventPositionRequest {
33341
+ /**
33342
+ *
33343
+ * @type {string}
33344
+ * @memberof WaitListApiGetEventPosition
33345
+ */
33346
+ readonly eventId: string
33347
+ }
33348
+
33349
+ /**
33350
+ * Request parameters for joinBookingWaitList operation in WaitListApi.
33351
+ * @export
33352
+ * @interface WaitListApiJoinBookingWaitListRequest
33353
+ */
33354
+ export interface WaitListApiJoinBookingWaitListRequest {
33355
+ /**
33356
+ *
33357
+ * @type {string}
33358
+ * @memberof WaitListApiJoinBookingWaitList
33359
+ */
33360
+ readonly bookingId: string
33361
+ }
33362
+
33363
+ /**
33364
+ * Request parameters for joinEventBookingWaitList operation in WaitListApi.
33365
+ * @export
33366
+ * @interface WaitListApiJoinEventBookingWaitListRequest
33367
+ */
33368
+ export interface WaitListApiJoinEventBookingWaitListRequest {
33369
+ /**
33370
+ *
33371
+ * @type {string}
33372
+ * @memberof WaitListApiJoinEventBookingWaitList
33373
+ */
33374
+ readonly eventBookingId: string
33375
+ }
33376
+
33377
+ /**
33378
+ * Request parameters for joinEventWaitList operation in WaitListApi.
33379
+ * @export
33380
+ * @interface WaitListApiJoinEventWaitListRequest
33381
+ */
33382
+ export interface WaitListApiJoinEventWaitListRequest {
33383
+ /**
33384
+ *
33385
+ * @type {string}
33386
+ * @memberof WaitListApiJoinEventWaitList
33387
+ */
33388
+ readonly eventId: string
33389
+ }
33390
+
33391
+ /**
33392
+ * Request parameters for leaveBookingWaitList operation in WaitListApi.
33393
+ * @export
33394
+ * @interface WaitListApiLeaveBookingWaitListRequest
33395
+ */
33396
+ export interface WaitListApiLeaveBookingWaitListRequest {
33397
+ /**
33398
+ *
33399
+ * @type {string}
33400
+ * @memberof WaitListApiLeaveBookingWaitList
33401
+ */
33402
+ readonly bookingId: string
33403
+ }
33404
+
33405
+ /**
33406
+ * Request parameters for leaveEventBookingWaitList operation in WaitListApi.
33407
+ * @export
33408
+ * @interface WaitListApiLeaveEventBookingWaitListRequest
33409
+ */
33410
+ export interface WaitListApiLeaveEventBookingWaitListRequest {
33411
+ /**
33412
+ *
33413
+ * @type {string}
33414
+ * @memberof WaitListApiLeaveEventBookingWaitList
33415
+ */
33416
+ readonly eventBookingId: string
33417
+ }
33418
+
33419
+ /**
33420
+ * Request parameters for leaveEventWaitList operation in WaitListApi.
33421
+ * @export
33422
+ * @interface WaitListApiLeaveEventWaitListRequest
33423
+ */
33424
+ export interface WaitListApiLeaveEventWaitListRequest {
33425
+ /**
33426
+ *
33427
+ * @type {string}
33428
+ * @memberof WaitListApiLeaveEventWaitList
33429
+ */
33430
+ readonly eventId: string
33431
+ }
33432
+
33433
+ /**
33434
+ * WaitListApi - object-oriented interface
33435
+ * @export
33436
+ * @class WaitListApi
33437
+ * @extends {BaseAPI}
33438
+ */
33439
+ export class WaitListApi extends BaseAPI {
33440
+ /**
33441
+ * Obtenir la position actuelle dans la file d\'attente d\'un booking
33442
+ * @param {WaitListApiGetBookingPositionRequest} requestParameters Request parameters.
33443
+ * @param {*} [options] Override http request option.
33444
+ * @throws {RequiredError}
33445
+ * @memberof WaitListApi
33446
+ */
33447
+ public getBookingPosition(requestParameters: WaitListApiGetBookingPositionRequest, options?: RawAxiosRequestConfig) {
33448
+ return WaitListApiFp(this.configuration).getBookingPosition(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
33449
+ }
33450
+
33451
+ /**
33452
+ * Obtenir la position actuelle dans la file d\'attente d\'un eventBooking
33453
+ * @param {WaitListApiGetEventBookingPositionRequest} requestParameters Request parameters.
33454
+ * @param {*} [options] Override http request option.
33455
+ * @throws {RequiredError}
33456
+ * @memberof WaitListApi
33457
+ */
33458
+ public getEventBookingPosition(requestParameters: WaitListApiGetEventBookingPositionRequest, options?: RawAxiosRequestConfig) {
33459
+ return WaitListApiFp(this.configuration).getEventBookingPosition(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
33460
+ }
33461
+
33462
+ /**
33463
+ * Obtenir la position actuelle dans la file d\'attente d\'un event
33464
+ * @param {WaitListApiGetEventPositionRequest} requestParameters Request parameters.
33465
+ * @param {*} [options] Override http request option.
33466
+ * @throws {RequiredError}
33467
+ * @memberof WaitListApi
33468
+ */
33469
+ public getEventPosition(requestParameters: WaitListApiGetEventPositionRequest, options?: RawAxiosRequestConfig) {
33470
+ return WaitListApiFp(this.configuration).getEventPosition(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
33471
+ }
33472
+
33473
+ /**
33474
+ * Rejoindre la file d\'attente pour un booking (créneau ouvert)
33475
+ * @param {WaitListApiJoinBookingWaitListRequest} requestParameters Request parameters.
33476
+ * @param {*} [options] Override http request option.
33477
+ * @throws {RequiredError}
33478
+ * @memberof WaitListApi
33479
+ */
33480
+ public joinBookingWaitList(requestParameters: WaitListApiJoinBookingWaitListRequest, options?: RawAxiosRequestConfig) {
33481
+ return WaitListApiFp(this.configuration).joinBookingWaitList(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
33482
+ }
33483
+
33484
+ /**
33485
+ * Rejoindre la file d\'attente pour un eventBooking (event en équipe avec créneau ouvert)
33486
+ * @param {WaitListApiJoinEventBookingWaitListRequest} requestParameters Request parameters.
33487
+ * @param {*} [options] Override http request option.
33488
+ * @throws {RequiredError}
33489
+ * @memberof WaitListApi
33490
+ */
33491
+ public joinEventBookingWaitList(requestParameters: WaitListApiJoinEventBookingWaitListRequest, options?: RawAxiosRequestConfig) {
33492
+ return WaitListApiFp(this.configuration).joinEventBookingWaitList(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
33493
+ }
33494
+
33495
+ /**
33496
+ * Rejoindre la file d\'attente pour un event (participation solo)
33497
+ * @param {WaitListApiJoinEventWaitListRequest} requestParameters Request parameters.
33498
+ * @param {*} [options] Override http request option.
33499
+ * @throws {RequiredError}
33500
+ * @memberof WaitListApi
33501
+ */
33502
+ public joinEventWaitList(requestParameters: WaitListApiJoinEventWaitListRequest, options?: RawAxiosRequestConfig) {
33503
+ return WaitListApiFp(this.configuration).joinEventWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
33504
+ }
33505
+
33506
+ /**
33507
+ * Quitter la file d\'attente d\'un booking
33508
+ * @param {WaitListApiLeaveBookingWaitListRequest} requestParameters Request parameters.
33509
+ * @param {*} [options] Override http request option.
33510
+ * @throws {RequiredError}
33511
+ * @memberof WaitListApi
33512
+ */
33513
+ public leaveBookingWaitList(requestParameters: WaitListApiLeaveBookingWaitListRequest, options?: RawAxiosRequestConfig) {
33514
+ return WaitListApiFp(this.configuration).leaveBookingWaitList(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
33515
+ }
33516
+
33517
+ /**
33518
+ * Quitter la file d\'attente d\'un eventBooking
33519
+ * @param {WaitListApiLeaveEventBookingWaitListRequest} requestParameters Request parameters.
33520
+ * @param {*} [options] Override http request option.
33521
+ * @throws {RequiredError}
33522
+ * @memberof WaitListApi
33523
+ */
33524
+ public leaveEventBookingWaitList(requestParameters: WaitListApiLeaveEventBookingWaitListRequest, options?: RawAxiosRequestConfig) {
33525
+ return WaitListApiFp(this.configuration).leaveEventBookingWaitList(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
33526
+ }
33527
+
33528
+ /**
33529
+ * Quitter la file d\'attente d\'un event
33530
+ * @param {WaitListApiLeaveEventWaitListRequest} requestParameters Request parameters.
33531
+ * @param {*} [options] Override http request option.
33532
+ * @throws {RequiredError}
33533
+ * @memberof WaitListApi
33534
+ */
33535
+ public leaveEventWaitList(requestParameters: WaitListApiLeaveEventWaitListRequest, options?: RawAxiosRequestConfig) {
33536
+ return WaitListApiFp(this.configuration).leaveEventWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
33537
+ }
33538
+ }
33539
+
33540
+
33541
+
33542
+ /**
33543
+ * WaitListStaffApi - axios parameter creator
33544
+ * @export
33545
+ */
33546
+ export const WaitListStaffApiAxiosParamCreator = function (configuration?: Configuration) {
33547
+ return {
33548
+ /**
33549
+ * Obtenir la liste complète de la file d\'attente pour un booking (staff only)
33550
+ * @param {string} bookingId
33551
+ * @param {*} [options] Override http request option.
33552
+ * @throws {RequiredError}
33553
+ */
33554
+ getBookingWaitList: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33555
+ // verify required parameter 'bookingId' is not null or undefined
33556
+ assertParamExists('getBookingWaitList', 'bookingId', bookingId)
33557
+ const localVarPath = `/api/waitlist/booking/{bookingId}/list`
33558
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
33559
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33560
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33561
+ let baseOptions;
33562
+ if (configuration) {
33563
+ baseOptions = configuration.baseOptions;
33564
+ }
33565
+
33566
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33567
+ const localVarHeaderParameter = {} as any;
33568
+ const localVarQueryParameter = {} as any;
33569
+
33570
+ // authentication bearerAuth required
33571
+ // http bearer authentication required
33572
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33573
+
33574
+
33575
+
33576
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33577
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33578
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33579
+
33580
+ return {
33581
+ url: toPathString(localVarUrlObj),
33582
+ options: localVarRequestOptions,
33583
+ };
33584
+ },
33585
+ /**
33586
+ * Obtenir la liste complète de la file d\'attente pour un eventBooking (staff only)
33587
+ * @param {string} eventBookingId
33588
+ * @param {*} [options] Override http request option.
33589
+ * @throws {RequiredError}
33590
+ */
33591
+ getEventBookingWaitList: async (eventBookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33592
+ // verify required parameter 'eventBookingId' is not null or undefined
33593
+ assertParamExists('getEventBookingWaitList', 'eventBookingId', eventBookingId)
33594
+ const localVarPath = `/api/waitlist/event-booking/{eventBookingId}/list`
33595
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
33596
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33597
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33598
+ let baseOptions;
33599
+ if (configuration) {
33600
+ baseOptions = configuration.baseOptions;
33601
+ }
33602
+
33603
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33604
+ const localVarHeaderParameter = {} as any;
33605
+ const localVarQueryParameter = {} as any;
33606
+
33607
+ // authentication bearerAuth required
33608
+ // http bearer authentication required
33609
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33610
+
33611
+
33612
+
33613
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33614
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33615
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33616
+
33617
+ return {
33618
+ url: toPathString(localVarUrlObj),
33619
+ options: localVarRequestOptions,
33620
+ };
33621
+ },
33622
+ /**
33623
+ * Obtenir la liste complète de la file d\'attente pour un event (staff only)
33624
+ * @param {string} eventId
33625
+ * @param {*} [options] Override http request option.
33626
+ * @throws {RequiredError}
33627
+ */
33628
+ getEventWaitList: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33629
+ // verify required parameter 'eventId' is not null or undefined
33630
+ assertParamExists('getEventWaitList', 'eventId', eventId)
33631
+ const localVarPath = `/api/waitlist/event/{eventId}/list`
33632
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
33633
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33634
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33635
+ let baseOptions;
33636
+ if (configuration) {
33637
+ baseOptions = configuration.baseOptions;
33638
+ }
33639
+
33640
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33641
+ const localVarHeaderParameter = {} as any;
33642
+ const localVarQueryParameter = {} as any;
33643
+
33644
+ // authentication bearerAuth required
33645
+ // http bearer authentication required
33646
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33647
+
33648
+
33649
+
33650
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33651
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33652
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33653
+
33654
+ return {
33655
+ url: toPathString(localVarUrlObj),
33656
+ options: localVarRequestOptions,
33657
+ };
33658
+ },
33659
+ /**
33660
+ * Forcer le traitement de la waitlist pour un booking (staff only)
33661
+ * @param {string} bookingId
33662
+ * @param {*} [options] Override http request option.
33663
+ * @throws {RequiredError}
33664
+ */
33665
+ processBookingWaitList: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33666
+ // verify required parameter 'bookingId' is not null or undefined
33667
+ assertParamExists('processBookingWaitList', 'bookingId', bookingId)
33668
+ const localVarPath = `/api/waitlist/booking/{bookingId}/process`
33669
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
33670
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33671
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33672
+ let baseOptions;
33673
+ if (configuration) {
33674
+ baseOptions = configuration.baseOptions;
33675
+ }
33676
+
33677
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
33678
+ const localVarHeaderParameter = {} as any;
33679
+ const localVarQueryParameter = {} as any;
33680
+
33681
+ // authentication bearerAuth required
33682
+ // http bearer authentication required
33683
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33684
+
33685
+
33686
+
33687
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33688
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33689
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33690
+
33691
+ return {
33692
+ url: toPathString(localVarUrlObj),
33693
+ options: localVarRequestOptions,
33694
+ };
33695
+ },
33696
+ /**
33697
+ * Forcer le traitement de la waitlist pour un eventBooking (staff only)
33698
+ * @param {string} eventBookingId
33699
+ * @param {*} [options] Override http request option.
33700
+ * @throws {RequiredError}
33701
+ */
33702
+ processEventBookingWaitList: async (eventBookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33703
+ // verify required parameter 'eventBookingId' is not null or undefined
33704
+ assertParamExists('processEventBookingWaitList', 'eventBookingId', eventBookingId)
33705
+ const localVarPath = `/api/waitlist/event-booking/{eventBookingId}/process`
33706
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
33707
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33708
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33709
+ let baseOptions;
33710
+ if (configuration) {
33711
+ baseOptions = configuration.baseOptions;
33712
+ }
33713
+
33714
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
33715
+ const localVarHeaderParameter = {} as any;
33716
+ const localVarQueryParameter = {} as any;
33717
+
33718
+ // authentication bearerAuth required
33719
+ // http bearer authentication required
33720
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33721
+
33722
+
33723
+
33724
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33725
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33726
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33727
+
33728
+ return {
33729
+ url: toPathString(localVarUrlObj),
33730
+ options: localVarRequestOptions,
33731
+ };
33732
+ },
33733
+ /**
33734
+ * Forcer le traitement de la waitlist pour un event (staff only)
33735
+ * @param {string} eventId
33736
+ * @param {*} [options] Override http request option.
33737
+ * @throws {RequiredError}
33738
+ */
33739
+ processEventWaitList: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33740
+ // verify required parameter 'eventId' is not null or undefined
33741
+ assertParamExists('processEventWaitList', 'eventId', eventId)
33742
+ const localVarPath = `/api/waitlist/event/{eventId}/process`
33743
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
33744
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33745
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33746
+ let baseOptions;
33747
+ if (configuration) {
33748
+ baseOptions = configuration.baseOptions;
33749
+ }
33750
+
33751
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
33752
+ const localVarHeaderParameter = {} as any;
33753
+ const localVarQueryParameter = {} as any;
33754
+
33755
+ // authentication bearerAuth required
33756
+ // http bearer authentication required
33757
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33758
+
33759
+
33760
+
33761
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33762
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33763
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33764
+
33765
+ return {
33766
+ url: toPathString(localVarUrlObj),
33767
+ options: localVarRequestOptions,
33768
+ };
33769
+ },
33770
+ }
33771
+ };
33772
+
33773
+ /**
33774
+ * WaitListStaffApi - functional programming interface
33775
+ * @export
33776
+ */
33777
+ export const WaitListStaffApiFp = function(configuration?: Configuration) {
33778
+ const localVarAxiosParamCreator = WaitListStaffApiAxiosParamCreator(configuration)
33779
+ return {
33780
+ /**
33781
+ * Obtenir la liste complète de la file d\'attente pour un booking (staff only)
33782
+ * @param {string} bookingId
33783
+ * @param {*} [options] Override http request option.
33784
+ * @throws {RequiredError}
33785
+ */
33786
+ async getBookingWaitList(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WaitListListResponse>> {
33787
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingWaitList(bookingId, options);
33788
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33789
+ const localVarOperationServerBasePath = operationServerMap['WaitListStaffApi.getBookingWaitList']?.[localVarOperationServerIndex]?.url;
33790
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33791
+ },
33792
+ /**
33793
+ * Obtenir la liste complète de la file d\'attente pour un eventBooking (staff only)
33794
+ * @param {string} eventBookingId
33795
+ * @param {*} [options] Override http request option.
33796
+ * @throws {RequiredError}
33797
+ */
33798
+ async getEventBookingWaitList(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WaitListListResponse>> {
33799
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventBookingWaitList(eventBookingId, options);
33800
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33801
+ const localVarOperationServerBasePath = operationServerMap['WaitListStaffApi.getEventBookingWaitList']?.[localVarOperationServerIndex]?.url;
33802
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33803
+ },
33804
+ /**
33805
+ * Obtenir la liste complète de la file d\'attente pour un event (staff only)
33806
+ * @param {string} eventId
33807
+ * @param {*} [options] Override http request option.
33808
+ * @throws {RequiredError}
33809
+ */
33810
+ async getEventWaitList(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WaitListListResponse>> {
33811
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventWaitList(eventId, options);
33812
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33813
+ const localVarOperationServerBasePath = operationServerMap['WaitListStaffApi.getEventWaitList']?.[localVarOperationServerIndex]?.url;
33814
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33815
+ },
33816
+ /**
33817
+ * Forcer le traitement de la waitlist pour un booking (staff only)
33818
+ * @param {string} bookingId
33819
+ * @param {*} [options] Override http request option.
33820
+ * @throws {RequiredError}
33821
+ */
33822
+ async processBookingWaitList(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
33823
+ const localVarAxiosArgs = await localVarAxiosParamCreator.processBookingWaitList(bookingId, options);
33824
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33825
+ const localVarOperationServerBasePath = operationServerMap['WaitListStaffApi.processBookingWaitList']?.[localVarOperationServerIndex]?.url;
33826
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33827
+ },
33828
+ /**
33829
+ * Forcer le traitement de la waitlist pour un eventBooking (staff only)
33830
+ * @param {string} eventBookingId
33831
+ * @param {*} [options] Override http request option.
33832
+ * @throws {RequiredError}
33833
+ */
33834
+ async processEventBookingWaitList(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
33835
+ const localVarAxiosArgs = await localVarAxiosParamCreator.processEventBookingWaitList(eventBookingId, options);
33836
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33837
+ const localVarOperationServerBasePath = operationServerMap['WaitListStaffApi.processEventBookingWaitList']?.[localVarOperationServerIndex]?.url;
33838
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33839
+ },
33840
+ /**
33841
+ * Forcer le traitement de la waitlist pour un event (staff only)
33842
+ * @param {string} eventId
33843
+ * @param {*} [options] Override http request option.
33844
+ * @throws {RequiredError}
33845
+ */
33846
+ async processEventWaitList(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
33847
+ const localVarAxiosArgs = await localVarAxiosParamCreator.processEventWaitList(eventId, options);
33848
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33849
+ const localVarOperationServerBasePath = operationServerMap['WaitListStaffApi.processEventWaitList']?.[localVarOperationServerIndex]?.url;
33850
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33851
+ },
33852
+ }
33853
+ };
33854
+
33855
+ /**
33856
+ * WaitListStaffApi - factory interface
33857
+ * @export
33858
+ */
33859
+ export const WaitListStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
33860
+ const localVarFp = WaitListStaffApiFp(configuration)
33861
+ return {
33862
+ /**
33863
+ * Obtenir la liste complète de la file d\'attente pour un booking (staff only)
33864
+ * @param {WaitListStaffApiGetBookingWaitListRequest} requestParameters Request parameters.
33865
+ * @param {*} [options] Override http request option.
33866
+ * @throws {RequiredError}
33867
+ */
33868
+ getBookingWaitList(requestParameters: WaitListStaffApiGetBookingWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<WaitListListResponse> {
33869
+ return localVarFp.getBookingWaitList(requestParameters.bookingId, options).then((request) => request(axios, basePath));
33870
+ },
33871
+ /**
33872
+ * Obtenir la liste complète de la file d\'attente pour un eventBooking (staff only)
33873
+ * @param {WaitListStaffApiGetEventBookingWaitListRequest} requestParameters Request parameters.
33874
+ * @param {*} [options] Override http request option.
33875
+ * @throws {RequiredError}
33876
+ */
33877
+ getEventBookingWaitList(requestParameters: WaitListStaffApiGetEventBookingWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<WaitListListResponse> {
33878
+ return localVarFp.getEventBookingWaitList(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
33879
+ },
33880
+ /**
33881
+ * Obtenir la liste complète de la file d\'attente pour un event (staff only)
33882
+ * @param {WaitListStaffApiGetEventWaitListRequest} requestParameters Request parameters.
33883
+ * @param {*} [options] Override http request option.
33884
+ * @throws {RequiredError}
33885
+ */
33886
+ getEventWaitList(requestParameters: WaitListStaffApiGetEventWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<WaitListListResponse> {
33887
+ return localVarFp.getEventWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
33888
+ },
33889
+ /**
33890
+ * Forcer le traitement de la waitlist pour un booking (staff only)
33891
+ * @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.
33892
+ * @param {*} [options] Override http request option.
33893
+ * @throws {RequiredError}
33894
+ */
33895
+ processBookingWaitList(requestParameters: WaitListStaffApiProcessBookingWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
33896
+ return localVarFp.processBookingWaitList(requestParameters.bookingId, options).then((request) => request(axios, basePath));
33897
+ },
33898
+ /**
33899
+ * Forcer le traitement de la waitlist pour un eventBooking (staff only)
33900
+ * @param {WaitListStaffApiProcessEventBookingWaitListRequest} requestParameters Request parameters.
33901
+ * @param {*} [options] Override http request option.
33902
+ * @throws {RequiredError}
33903
+ */
33904
+ processEventBookingWaitList(requestParameters: WaitListStaffApiProcessEventBookingWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
33905
+ return localVarFp.processEventBookingWaitList(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
33906
+ },
33907
+ /**
33908
+ * Forcer le traitement de la waitlist pour un event (staff only)
33909
+ * @param {WaitListStaffApiProcessEventWaitListRequest} requestParameters Request parameters.
33910
+ * @param {*} [options] Override http request option.
33911
+ * @throws {RequiredError}
33912
+ */
33913
+ processEventWaitList(requestParameters: WaitListStaffApiProcessEventWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
33914
+ return localVarFp.processEventWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
33915
+ },
33916
+ };
33917
+ };
33918
+
33919
+ /**
33920
+ * Request parameters for getBookingWaitList operation in WaitListStaffApi.
33921
+ * @export
33922
+ * @interface WaitListStaffApiGetBookingWaitListRequest
33923
+ */
33924
+ export interface WaitListStaffApiGetBookingWaitListRequest {
33925
+ /**
33926
+ *
33927
+ * @type {string}
33928
+ * @memberof WaitListStaffApiGetBookingWaitList
33929
+ */
33930
+ readonly bookingId: string
33931
+ }
33932
+
33933
+ /**
33934
+ * Request parameters for getEventBookingWaitList operation in WaitListStaffApi.
33935
+ * @export
33936
+ * @interface WaitListStaffApiGetEventBookingWaitListRequest
33937
+ */
33938
+ export interface WaitListStaffApiGetEventBookingWaitListRequest {
33939
+ /**
33940
+ *
33941
+ * @type {string}
33942
+ * @memberof WaitListStaffApiGetEventBookingWaitList
33943
+ */
33944
+ readonly eventBookingId: string
33945
+ }
33946
+
33947
+ /**
33948
+ * Request parameters for getEventWaitList operation in WaitListStaffApi.
33949
+ * @export
33950
+ * @interface WaitListStaffApiGetEventWaitListRequest
33951
+ */
33952
+ export interface WaitListStaffApiGetEventWaitListRequest {
33953
+ /**
33954
+ *
33955
+ * @type {string}
33956
+ * @memberof WaitListStaffApiGetEventWaitList
33957
+ */
33958
+ readonly eventId: string
33959
+ }
33960
+
33961
+ /**
33962
+ * Request parameters for processBookingWaitList operation in WaitListStaffApi.
33963
+ * @export
33964
+ * @interface WaitListStaffApiProcessBookingWaitListRequest
33965
+ */
33966
+ export interface WaitListStaffApiProcessBookingWaitListRequest {
33967
+ /**
33968
+ *
33969
+ * @type {string}
33970
+ * @memberof WaitListStaffApiProcessBookingWaitList
33971
+ */
33972
+ readonly bookingId: string
33973
+ }
33974
+
33975
+ /**
33976
+ * Request parameters for processEventBookingWaitList operation in WaitListStaffApi.
33977
+ * @export
33978
+ * @interface WaitListStaffApiProcessEventBookingWaitListRequest
33979
+ */
33980
+ export interface WaitListStaffApiProcessEventBookingWaitListRequest {
33981
+ /**
33982
+ *
33983
+ * @type {string}
33984
+ * @memberof WaitListStaffApiProcessEventBookingWaitList
33985
+ */
33986
+ readonly eventBookingId: string
33987
+ }
33988
+
33989
+ /**
33990
+ * Request parameters for processEventWaitList operation in WaitListStaffApi.
33991
+ * @export
33992
+ * @interface WaitListStaffApiProcessEventWaitListRequest
33993
+ */
33994
+ export interface WaitListStaffApiProcessEventWaitListRequest {
33995
+ /**
33996
+ *
33997
+ * @type {string}
33998
+ * @memberof WaitListStaffApiProcessEventWaitList
33999
+ */
34000
+ readonly eventId: string
34001
+ }
34002
+
34003
+ /**
34004
+ * WaitListStaffApi - object-oriented interface
34005
+ * @export
34006
+ * @class WaitListStaffApi
34007
+ * @extends {BaseAPI}
34008
+ */
34009
+ export class WaitListStaffApi extends BaseAPI {
34010
+ /**
34011
+ * Obtenir la liste complète de la file d\'attente pour un booking (staff only)
34012
+ * @param {WaitListStaffApiGetBookingWaitListRequest} requestParameters Request parameters.
34013
+ * @param {*} [options] Override http request option.
34014
+ * @throws {RequiredError}
34015
+ * @memberof WaitListStaffApi
34016
+ */
34017
+ public getBookingWaitList(requestParameters: WaitListStaffApiGetBookingWaitListRequest, options?: RawAxiosRequestConfig) {
34018
+ return WaitListStaffApiFp(this.configuration).getBookingWaitList(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
34019
+ }
34020
+
34021
+ /**
34022
+ * Obtenir la liste complète de la file d\'attente pour un eventBooking (staff only)
34023
+ * @param {WaitListStaffApiGetEventBookingWaitListRequest} requestParameters Request parameters.
34024
+ * @param {*} [options] Override http request option.
34025
+ * @throws {RequiredError}
34026
+ * @memberof WaitListStaffApi
34027
+ */
34028
+ public getEventBookingWaitList(requestParameters: WaitListStaffApiGetEventBookingWaitListRequest, options?: RawAxiosRequestConfig) {
34029
+ return WaitListStaffApiFp(this.configuration).getEventBookingWaitList(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
34030
+ }
34031
+
34032
+ /**
34033
+ * Obtenir la liste complète de la file d\'attente pour un event (staff only)
34034
+ * @param {WaitListStaffApiGetEventWaitListRequest} requestParameters Request parameters.
34035
+ * @param {*} [options] Override http request option.
34036
+ * @throws {RequiredError}
34037
+ * @memberof WaitListStaffApi
34038
+ */
34039
+ public getEventWaitList(requestParameters: WaitListStaffApiGetEventWaitListRequest, options?: RawAxiosRequestConfig) {
34040
+ return WaitListStaffApiFp(this.configuration).getEventWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
34041
+ }
34042
+
34043
+ /**
34044
+ * Forcer le traitement de la waitlist pour un booking (staff only)
34045
+ * @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.
34046
+ * @param {*} [options] Override http request option.
34047
+ * @throws {RequiredError}
34048
+ * @memberof WaitListStaffApi
34049
+ */
34050
+ public processBookingWaitList(requestParameters: WaitListStaffApiProcessBookingWaitListRequest, options?: RawAxiosRequestConfig) {
34051
+ return WaitListStaffApiFp(this.configuration).processBookingWaitList(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
34052
+ }
34053
+
34054
+ /**
34055
+ * Forcer le traitement de la waitlist pour un eventBooking (staff only)
34056
+ * @param {WaitListStaffApiProcessEventBookingWaitListRequest} requestParameters Request parameters.
34057
+ * @param {*} [options] Override http request option.
34058
+ * @throws {RequiredError}
34059
+ * @memberof WaitListStaffApi
34060
+ */
34061
+ public processEventBookingWaitList(requestParameters: WaitListStaffApiProcessEventBookingWaitListRequest, options?: RawAxiosRequestConfig) {
34062
+ return WaitListStaffApiFp(this.configuration).processEventBookingWaitList(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
34063
+ }
34064
+
34065
+ /**
34066
+ * Forcer le traitement de la waitlist pour un event (staff only)
34067
+ * @param {WaitListStaffApiProcessEventWaitListRequest} requestParameters Request parameters.
34068
+ * @param {*} [options] Override http request option.
34069
+ * @throws {RequiredError}
34070
+ * @memberof WaitListStaffApi
34071
+ */
34072
+ public processEventWaitList(requestParameters: WaitListStaffApiProcessEventWaitListRequest, options?: RawAxiosRequestConfig) {
34073
+ return WaitListStaffApiFp(this.configuration).processEventWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
34074
+ }
34075
+ }
34076
+
34077
+
34078
+