@tennac-booking/sdk 1.0.219 → 1.0.220

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 (127) hide show
  1. package/.openapi-generator/FILES +47 -24
  2. package/README.md +70 -38
  3. package/api.ts +3354 -1833
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +2866 -1599
  8. package/dist/api.js +1907 -1441
  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 +2866 -1599
  16. package/dist/esm/api.js +1886 -1416
  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/AgendaBooking.md +2 -0
  28. package/docs/AuthApi.md +113 -0
  29. package/docs/BookingPopulated.md +9 -1
  30. package/docs/BookingSummary.md +4 -0
  31. package/docs/BookingsApi.md +25 -79
  32. package/docs/BookingsStaffApi.md +1 -57
  33. package/docs/BookingsUserApi.md +6 -6
  34. package/docs/ClubPageResponse.md +14 -0
  35. package/docs/ClubPageResponseClubCustomerStatus.md +27 -0
  36. package/docs/ClubPricingPeriodPayload.md +32 -0
  37. package/docs/ClubPricingPeriodResponse.md +6 -6
  38. package/docs/ClubReservationSettingsResponse.md +2 -2
  39. package/docs/ClubResponse.md +12 -2
  40. package/docs/ClubSummary.md +6 -0
  41. package/docs/ComingEventsPageResponse.md +22 -0
  42. package/docs/CourtEnvironment.md +10 -0
  43. package/docs/CreateOpenBookingRequest.md +4 -2
  44. package/docs/CreateSubscriptionPlanRequestDiscount.md +4 -0
  45. package/docs/EstimateOpenBookingJoinRequest.md +24 -0
  46. package/docs/EventBookingDetailSummary.md +2 -0
  47. package/docs/EventBookingResponse.md +2 -0
  48. package/docs/EventResponse.md +2 -0
  49. package/docs/EventsApi.md +58 -0
  50. package/docs/EventsStaffApi.md +119 -25
  51. package/docs/GetClubsWithVerificationDomains200ResponseInner.md +2 -0
  52. package/docs/{SumupReadersResponse.md → Health200Response.md} +7 -5
  53. package/docs/IUserAttributes.md +4 -0
  54. package/docs/JobResult.md +24 -0
  55. package/docs/JobsApi.md +367 -0
  56. package/docs/JoinOpenBookingRequest.md +28 -0
  57. package/docs/MarkNotificationsReadRequest.md +22 -0
  58. package/docs/{SumupPairReaderResponse.md → MarkNotificationsReadResponse.md} +5 -5
  59. package/docs/MyClubInfosResponse.md +0 -2
  60. package/docs/{PaymentStatus.md → NotificationActorType.md} +4 -6
  61. package/docs/NotificationData.md +22 -0
  62. package/docs/NotificationInitiator.md +28 -0
  63. package/docs/NotificationParticipantPreview.md +24 -0
  64. package/docs/NotificationPreview.md +78 -0
  65. package/docs/NotificationResponse.md +46 -0
  66. package/docs/NotificationResponseClub.md +24 -0
  67. package/docs/NotificationSlotPreview.md +24 -0
  68. package/docs/NotificationSportPreview.md +24 -0
  69. package/docs/{SumupPairReaderRequest.md → NotificationTargetPreview.md} +7 -7
  70. package/docs/NotificationType.md +26 -0
  71. package/docs/OpenBookingBasePriceResponse.md +24 -0
  72. package/docs/OpenBookingInfo.md +4 -2
  73. package/docs/OpenBookingJoinEstimateResponse.md +26 -0
  74. package/docs/OpenBookingPriceBody.md +26 -0
  75. package/docs/PartnerSearchItem.md +28 -0
  76. package/docs/PartnerSearchResponse.md +22 -0
  77. package/docs/PartnerSearchResponseMeta.md +26 -0
  78. package/docs/PricingPeriodDiscount.md +24 -0
  79. package/docs/PublicEmailApi.md +4 -4
  80. package/docs/QuickReservationClubSummary.md +12 -0
  81. package/docs/QuickReservationCourtType.md +10 -0
  82. package/docs/RequestOrganizationEmailCodeBody.md +22 -0
  83. package/docs/RequestOrganizationEmailCodeResponse.md +22 -0
  84. package/docs/RequestVerificationCodeBody.md +26 -0
  85. package/docs/{SumupConnectUrlResponse.md → RequestVerificationCodeResponse.md} +5 -5
  86. package/docs/SportResponse.md +2 -0
  87. package/docs/StaffEventBookingResponse.md +2 -0
  88. package/docs/StaffEventsPageResponse.md +22 -0
  89. package/docs/StaffUserProfileResponse.md +4 -0
  90. package/docs/SubscriptionPlanDiscountResponse.md +2 -0
  91. package/docs/SubscriptionPlanDiscountUpdateRequest.md +2 -0
  92. package/docs/{PaymentProviderType.md → SupportedLanguage.md} +3 -3
  93. package/docs/UpdateClubHoursSettingsRequest.md +1 -1
  94. package/docs/UpdateClubReservationSettingsRequest.md +2 -2
  95. package/docs/UserClubMembership.md +2 -0
  96. package/docs/UserNextBookingSummary.md +26 -0
  97. package/docs/UserNotificationsResponse.md +22 -0
  98. package/docs/UserNotificationsResponseMeta.md +28 -0
  99. package/docs/UserProfileResponse.md +12 -0
  100. package/docs/UsersApi.md +273 -0
  101. package/docs/VerifyOrganizationEmailCodeBody.md +24 -0
  102. package/docs/VerifyOrganizationEmailCodeResponse.md +22 -0
  103. package/docs/VerifyVerificationCodeBody.md +24 -0
  104. package/docs/{SumupCancelPaymentRequest.md → VerifyVerificationCodeResponse.md} +5 -5
  105. package/docs/WaitListEntryWithPlayer.md +44 -0
  106. package/docs/WaitListPlayer.md +28 -0
  107. package/docs/WaitListPlayersListResponse.md +22 -0
  108. package/docs/WaitListStaffApi.md +55 -0
  109. package/index.ts +1 -1
  110. package/package.json +1 -1
  111. package/docs/CheckInPlayerSumupRequest.md +0 -22
  112. package/docs/CheckInPlayerSumupResponse.md +0 -24
  113. package/docs/CheckInSumupPaymentInfo.md +0 -26
  114. package/docs/GetOpenBookingPrice200Response.md +0 -24
  115. package/docs/GetOpenBookingPriceRequest.md +0 -26
  116. package/docs/JoinPriceEstimateResponse.md +0 -38
  117. package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +0 -25
  118. package/docs/OpenBookingSlotInfo.md +0 -24
  119. package/docs/PaymentIntentResult.md +0 -28
  120. package/docs/PaymentsStaffApi.md +0 -124
  121. package/docs/StaffEventsPaginatedResponse.md +0 -26
  122. package/docs/SumUpApi.md +0 -63
  123. package/docs/SumUpManagerApi.md +0 -332
  124. package/docs/SumupAccountStatusResponse.md +0 -32
  125. package/docs/SumupCreatePaymentRequest.md +0 -32
  126. package/docs/SumupOAuthCallbackResponse.md +0 -24
  127. package/docs/SumupReaderInfo.md +0 -34
package/dist/esm/api.js 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.177
7
+ * The version of the OpenAPI document: 1.0.214
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -61,6 +61,11 @@ export const BookingStatus = {
61
61
  Canceled: 'canceled',
62
62
  NoShow: 'no-show'
63
63
  };
64
+ export const BookingSummaryUserParticipationStatusEnum = {
65
+ Participant: 'participant',
66
+ WaitingJoinPayment: 'waitingJoinPayment',
67
+ Waitlist: 'waitlist'
68
+ };
64
69
  export const CaptureResultTypeEnum = {
65
70
  CreatorPayment: 'creator_payment',
66
71
  PlayerPayment: 'player_payment'
@@ -78,6 +83,15 @@ export const ClubRoleResponseRoleEnum = {
78
83
  Manager: 'manager',
79
84
  Staff: 'staff'
80
85
  };
86
+ /**
87
+ *
88
+ * @export
89
+ * @enum {string}
90
+ */
91
+ export const CourtEnvironment = {
92
+ Indoor: 'indoor',
93
+ Outdoor: 'outdoor'
94
+ };
81
95
  /**
82
96
  *
83
97
  * @export
@@ -127,6 +141,11 @@ export const DiscountType = {
127
141
  Percentage: 'percentage',
128
142
  OffPeak: 'off_peak'
129
143
  };
144
+ export const EventBookingDetailSummaryUserParticipationStatusEnum = {
145
+ Participant: 'participant',
146
+ WaitingJoinPayment: 'waitingJoinPayment',
147
+ Waitlist: 'waitlist'
148
+ };
130
149
  /**
131
150
  *
132
151
  * @export
@@ -226,6 +245,39 @@ export const InvoiceStatusSETUPPENDING = {
226
245
  export const InvoiceStatusSETUPSUCCESS = {
227
246
  SetupSuccess: 'setup_success'
228
247
  };
248
+ /**
249
+ *
250
+ * @export
251
+ * @enum {string}
252
+ */
253
+ export const NotificationActorType = {
254
+ User: 'user',
255
+ Club: 'club',
256
+ System: 'system'
257
+ };
258
+ export const NotificationTargetPreviewTypeEnum = {
259
+ Booking: 'booking',
260
+ Event: 'event',
261
+ Waitlist: 'waitlist',
262
+ Unknown: 'unknown'
263
+ };
264
+ /**
265
+ *
266
+ * @export
267
+ * @enum {string}
268
+ */
269
+ export const NotificationType = {
270
+ BookingCreated: 'booking_created',
271
+ BookingSetupRequired: 'booking_setup_required',
272
+ BookingCancelled: 'booking_cancelled',
273
+ BookingReminder: 'booking_reminder',
274
+ EventRegistrationConfirmed: 'event_registration_confirmed',
275
+ EventReminder: 'event_reminder',
276
+ OpenBookingJoined: 'open_booking_joined',
277
+ OpenBookingJoinConfirmed: 'open_booking_join_confirmed',
278
+ WaitlistSpotAvailable: 'waitlist_spot_available',
279
+ WaitlistConfirmed: 'waitlist_confirmed'
280
+ };
229
281
  export const PartialPublicAccessSettingsPaymentModeEnum = {
230
282
  Free: 'free',
231
283
  AccessFee: 'access_fee',
@@ -252,26 +304,6 @@ export const PaymentMethod = {
252
304
  OnsiteCash: 'onsite_cash',
253
305
  Free: 'free'
254
306
  };
255
- /**
256
- *
257
- * @export
258
- * @enum {string}
259
- */
260
- export const PaymentProviderType = {
261
- Stripe: 'stripe',
262
- Sumup: 'sumup'
263
- };
264
- /**
265
- *
266
- * @export
267
- * @enum {string}
268
- */
269
- export const PaymentStatus = {
270
- Pending: 'pending',
271
- Succeeded: 'succeeded',
272
- Failed: 'failed',
273
- Cancelled: 'cancelled'
274
- };
275
307
  /**
276
308
  *
277
309
  * @export
@@ -300,6 +332,15 @@ export const PublicAccessSettingsPaymentModeEnum = {
300
332
  AccessFee: 'access_fee',
301
333
  PerCourt: 'per_court'
302
334
  };
335
+ /**
336
+ *
337
+ * @export
338
+ * @enum {string}
339
+ */
340
+ export const QuickReservationCourtType = {
341
+ Indoor: 'indoor',
342
+ Outdoor: 'outdoor'
343
+ };
303
344
  export const RecurringDefinitionResponseRecurringTypeEnum = {
304
345
  Daily: 'daily',
305
346
  Weekly: 'weekly',
@@ -337,6 +378,15 @@ export const StaffUserProfileResponseCreatedFromEnum = {
337
378
  App: 'app',
338
379
  Website: 'website'
339
380
  };
381
+ /**
382
+ *
383
+ * @export
384
+ * @enum {string}
385
+ */
386
+ export const SupportedLanguage = {
387
+ Fr: 'fr',
388
+ En: 'en'
389
+ };
340
390
  /**
341
391
  *
342
392
  * @export
@@ -425,6 +475,11 @@ export const VisibilityType = {
425
475
  Private: 'private',
426
476
  Invitation: 'invitation'
427
477
  };
478
+ export const WaitListEntryWithPlayerTargetTypeEnum = {
479
+ Event: 'event',
480
+ Booking: 'booking',
481
+ EventBooking: 'event_booking'
482
+ };
428
483
  export const WaitListResponseTargetTypeEnum = {
429
484
  Event: 'event',
430
485
  Booking: 'booking',
@@ -444,6 +499,166 @@ export const WeekdayKey = {
444
499
  Saturday: 'saturday',
445
500
  Sunday: 'sunday'
446
501
  };
502
+ /**
503
+ * AuthApi - axios parameter creator
504
+ * @export
505
+ */
506
+ export const AuthApiAxiosParamCreator = function (configuration) {
507
+ return {
508
+ /**
509
+ *
510
+ * @param {RequestVerificationCodeBody} requestVerificationCodeBody
511
+ * @param {*} [options] Override http request option.
512
+ * @throws {RequiredError}
513
+ */
514
+ requestVerificationCode: (requestVerificationCodeBody_1, ...args_1) => __awaiter(this, [requestVerificationCodeBody_1, ...args_1], void 0, function* (requestVerificationCodeBody, options = {}) {
515
+ // verify required parameter 'requestVerificationCodeBody' is not null or undefined
516
+ assertParamExists('requestVerificationCode', 'requestVerificationCodeBody', requestVerificationCodeBody);
517
+ const localVarPath = `/api/auth/verification-code`;
518
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
519
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
520
+ let baseOptions;
521
+ if (configuration) {
522
+ baseOptions = configuration.baseOptions;
523
+ }
524
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
525
+ const localVarHeaderParameter = {};
526
+ const localVarQueryParameter = {};
527
+ localVarHeaderParameter['Content-Type'] = 'application/json';
528
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
529
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
530
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
531
+ localVarRequestOptions.data = serializeDataIfNeeded(requestVerificationCodeBody, localVarRequestOptions, configuration);
532
+ return {
533
+ url: toPathString(localVarUrlObj),
534
+ options: localVarRequestOptions,
535
+ };
536
+ }),
537
+ /**
538
+ *
539
+ * @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ verifyVerificationCode: (verifyVerificationCodeBody_1, ...args_1) => __awaiter(this, [verifyVerificationCodeBody_1, ...args_1], void 0, function* (verifyVerificationCodeBody, options = {}) {
544
+ // verify required parameter 'verifyVerificationCodeBody' is not null or undefined
545
+ assertParamExists('verifyVerificationCode', 'verifyVerificationCodeBody', verifyVerificationCodeBody);
546
+ const localVarPath = `/api/auth/verification-code/verify`;
547
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
548
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
549
+ let baseOptions;
550
+ if (configuration) {
551
+ baseOptions = configuration.baseOptions;
552
+ }
553
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
554
+ const localVarHeaderParameter = {};
555
+ const localVarQueryParameter = {};
556
+ localVarHeaderParameter['Content-Type'] = 'application/json';
557
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
558
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
559
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
560
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyVerificationCodeBody, localVarRequestOptions, configuration);
561
+ return {
562
+ url: toPathString(localVarUrlObj),
563
+ options: localVarRequestOptions,
564
+ };
565
+ }),
566
+ };
567
+ };
568
+ /**
569
+ * AuthApi - functional programming interface
570
+ * @export
571
+ */
572
+ export const AuthApiFp = function (configuration) {
573
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
574
+ return {
575
+ /**
576
+ *
577
+ * @param {RequestVerificationCodeBody} requestVerificationCodeBody
578
+ * @param {*} [options] Override http request option.
579
+ * @throws {RequiredError}
580
+ */
581
+ requestVerificationCode(requestVerificationCodeBody, options) {
582
+ return __awaiter(this, void 0, void 0, function* () {
583
+ var _a, _b, _c;
584
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestVerificationCodeBody, options);
585
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
586
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
587
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
588
+ });
589
+ },
590
+ /**
591
+ *
592
+ * @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ */
596
+ verifyVerificationCode(verifyVerificationCodeBody, options) {
597
+ return __awaiter(this, void 0, void 0, function* () {
598
+ var _a, _b, _c;
599
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyVerificationCode(verifyVerificationCodeBody, options);
600
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
601
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.verifyVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
602
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
603
+ });
604
+ },
605
+ };
606
+ };
607
+ /**
608
+ * AuthApi - factory interface
609
+ * @export
610
+ */
611
+ export const AuthApiFactory = function (configuration, basePath, axios) {
612
+ const localVarFp = AuthApiFp(configuration);
613
+ return {
614
+ /**
615
+ *
616
+ * @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
617
+ * @param {*} [options] Override http request option.
618
+ * @throws {RequiredError}
619
+ */
620
+ requestVerificationCode(requestParameters, options) {
621
+ return localVarFp.requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(axios, basePath));
622
+ },
623
+ /**
624
+ *
625
+ * @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ */
629
+ verifyVerificationCode(requestParameters, options) {
630
+ return localVarFp.verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(axios, basePath));
631
+ },
632
+ };
633
+ };
634
+ /**
635
+ * AuthApi - object-oriented interface
636
+ * @export
637
+ * @class AuthApi
638
+ * @extends {BaseAPI}
639
+ */
640
+ export class AuthApi extends BaseAPI {
641
+ /**
642
+ *
643
+ * @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ * @memberof AuthApi
647
+ */
648
+ requestVerificationCode(requestParameters, options) {
649
+ return AuthApiFp(this.configuration).requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
650
+ }
651
+ /**
652
+ *
653
+ * @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ * @memberof AuthApi
657
+ */
658
+ verifyVerificationCode(requestParameters, options) {
659
+ return AuthApiFp(this.configuration).verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
660
+ }
661
+ }
447
662
  /**
448
663
  * BookingsApi - axios parameter creator
449
664
  * @export
@@ -480,16 +695,18 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
480
695
  };
481
696
  }),
482
697
  /**
483
- * Estimer le prix pour rejoindre une réservation ouverte
698
+ * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
484
699
  * @param {string} bookingId
485
- * @param {number} [creditToUseInCents]
700
+ * @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
486
701
  * @param {*} [options] Override http request option.
487
702
  * @throws {RequiredError}
488
703
  */
489
- estimateOpenBookingJoinPrice: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
704
+ estimateOpenBookingJoin: (bookingId_1, estimateOpenBookingJoinRequest_1, ...args_1) => __awaiter(this, [bookingId_1, estimateOpenBookingJoinRequest_1, ...args_1], void 0, function* (bookingId, estimateOpenBookingJoinRequest, options = {}) {
490
705
  // verify required parameter 'bookingId' is not null or undefined
491
- assertParamExists('estimateOpenBookingJoinPrice', 'bookingId', bookingId);
492
- const localVarPath = `/api/bookings/{bookingId}/open/estimate`
706
+ assertParamExists('estimateOpenBookingJoin', 'bookingId', bookingId);
707
+ // verify required parameter 'estimateOpenBookingJoinRequest' is not null or undefined
708
+ assertParamExists('estimateOpenBookingJoin', 'estimateOpenBookingJoinRequest', estimateOpenBookingJoinRequest);
709
+ const localVarPath = `/api/bookings/{bookingId}/open/estimate-join`
493
710
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
494
711
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
495
712
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -497,18 +714,17 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
497
714
  if (configuration) {
498
715
  baseOptions = configuration.baseOptions;
499
716
  }
500
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
717
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
501
718
  const localVarHeaderParameter = {};
502
719
  const localVarQueryParameter = {};
503
720
  // authentication bearerAuth required
504
721
  // http bearer authentication required
505
722
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
506
- if (creditToUseInCents !== undefined) {
507
- localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
508
- }
723
+ localVarHeaderParameter['Content-Type'] = 'application/json';
509
724
  setSearchParams(localVarUrlObj, localVarQueryParameter);
510
725
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
511
726
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
727
+ localVarRequestOptions.data = serializeDataIfNeeded(estimateOpenBookingJoinRequest, localVarRequestOptions, configuration);
512
728
  return {
513
729
  url: toPathString(localVarUrlObj),
514
730
  options: localVarRequestOptions,
@@ -607,50 +823,15 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
607
823
  };
608
824
  }),
609
825
  /**
610
- * Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
611
- * @param {string} bookingId
612
- * @param {number} [creditToUseInCents]
613
- * @param {*} [options] Override http request option.
614
- * @throws {RequiredError}
615
- */
616
- getJoinPriceEstimate: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
617
- // verify required parameter 'bookingId' is not null or undefined
618
- assertParamExists('getJoinPriceEstimate', 'bookingId', bookingId);
619
- const localVarPath = `/api/bookings/{bookingId}/join-price-estimate`
620
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
621
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
622
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
623
- let baseOptions;
624
- if (configuration) {
625
- baseOptions = configuration.baseOptions;
626
- }
627
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
628
- const localVarHeaderParameter = {};
629
- const localVarQueryParameter = {};
630
- // authentication bearerAuth required
631
- // http bearer authentication required
632
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
633
- if (creditToUseInCents !== undefined) {
634
- localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
635
- }
636
- setSearchParams(localVarUrlObj, localVarQueryParameter);
637
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
638
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
639
- return {
640
- url: toPathString(localVarUrlObj),
641
- options: localVarRequestOptions,
642
- };
643
- }),
644
- /**
645
- * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
826
+ * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
646
827
  * @param {string} bookingId
647
828
  * @param {*} [options] Override http request option.
648
829
  * @throws {RequiredError}
649
830
  */
650
- getOpenBookingJoinPrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
831
+ getOpenBookingBasePrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
651
832
  // verify required parameter 'bookingId' is not null or undefined
652
- assertParamExists('getOpenBookingJoinPrice', 'bookingId', bookingId);
653
- const localVarPath = `/api/bookings/{bookingId}/open/join-price`
833
+ assertParamExists('getOpenBookingBasePrice', 'bookingId', bookingId);
834
+ const localVarPath = `/api/bookings/{bookingId}/open/base-price`
654
835
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
655
836
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
656
837
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -774,15 +955,15 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
774
955
  /**
775
956
  *
776
957
  * @param {string} bookingId
777
- * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
958
+ * @param {JoinOpenBookingRequest} joinOpenBookingRequest
778
959
  * @param {*} [options] Override http request option.
779
960
  * @throws {RequiredError}
780
961
  */
781
- joinOpenBooking: (bookingId_1, joinOpenEventBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinOpenEventBookingRequest_1, ...args_1], void 0, function* (bookingId, joinOpenEventBookingRequest, options = {}) {
962
+ joinOpenBooking: (bookingId_1, joinOpenBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinOpenBookingRequest_1, ...args_1], void 0, function* (bookingId, joinOpenBookingRequest, options = {}) {
782
963
  // verify required parameter 'bookingId' is not null or undefined
783
964
  assertParamExists('joinOpenBooking', 'bookingId', bookingId);
784
- // verify required parameter 'joinOpenEventBookingRequest' is not null or undefined
785
- assertParamExists('joinOpenBooking', 'joinOpenEventBookingRequest', joinOpenEventBookingRequest);
965
+ // verify required parameter 'joinOpenBookingRequest' is not null or undefined
966
+ assertParamExists('joinOpenBooking', 'joinOpenBookingRequest', joinOpenBookingRequest);
786
967
  const localVarPath = `/api/bookings/{bookingId}/open/join`
787
968
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
788
969
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -801,7 +982,7 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
801
982
  setSearchParams(localVarUrlObj, localVarQueryParameter);
802
983
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
803
984
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
804
- localVarRequestOptions.data = serializeDataIfNeeded(joinOpenEventBookingRequest, localVarRequestOptions, configuration);
985
+ localVarRequestOptions.data = serializeDataIfNeeded(joinOpenBookingRequest, localVarRequestOptions, configuration);
805
986
  return {
806
987
  url: toPathString(localVarUrlObj),
807
988
  options: localVarRequestOptions,
@@ -863,18 +1044,18 @@ export const BookingsApiFp = function (configuration) {
863
1044
  });
864
1045
  },
865
1046
  /**
866
- * Estimer le prix pour rejoindre une réservation ouverte
1047
+ * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
867
1048
  * @param {string} bookingId
868
- * @param {number} [creditToUseInCents]
1049
+ * @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
869
1050
  * @param {*} [options] Override http request option.
870
1051
  * @throws {RequiredError}
871
1052
  */
872
- estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options) {
1053
+ estimateOpenBookingJoin(bookingId, estimateOpenBookingJoinRequest, options) {
873
1054
  return __awaiter(this, void 0, void 0, function* () {
874
1055
  var _a, _b, _c;
875
- const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options);
1056
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoin(bookingId, estimateOpenBookingJoinRequest, options);
876
1057
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
877
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.estimateOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1058
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.estimateOpenBookingJoin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
878
1059
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
879
1060
  });
880
1061
  },
@@ -924,33 +1105,17 @@ export const BookingsApiFp = function (configuration) {
924
1105
  });
925
1106
  },
926
1107
  /**
927
- * Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
928
- * @param {string} bookingId
929
- * @param {number} [creditToUseInCents]
930
- * @param {*} [options] Override http request option.
931
- * @throws {RequiredError}
932
- */
933
- getJoinPriceEstimate(bookingId, creditToUseInCents, options) {
934
- return __awaiter(this, void 0, void 0, function* () {
935
- var _a, _b, _c;
936
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getJoinPriceEstimate(bookingId, creditToUseInCents, options);
937
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
938
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getJoinPriceEstimate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
939
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
940
- });
941
- },
942
- /**
943
- * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
1108
+ * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
944
1109
  * @param {string} bookingId
945
1110
  * @param {*} [options] Override http request option.
946
1111
  * @throws {RequiredError}
947
1112
  */
948
- getOpenBookingJoinPrice(bookingId, options) {
1113
+ getOpenBookingBasePrice(bookingId, options) {
949
1114
  return __awaiter(this, void 0, void 0, function* () {
950
1115
  var _a, _b, _c;
951
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
1116
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingBasePrice(bookingId, options);
952
1117
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
953
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1118
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getOpenBookingBasePrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
954
1119
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
955
1120
  });
956
1121
  },
@@ -997,14 +1162,14 @@ export const BookingsApiFp = function (configuration) {
997
1162
  /**
998
1163
  *
999
1164
  * @param {string} bookingId
1000
- * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
1165
+ * @param {JoinOpenBookingRequest} joinOpenBookingRequest
1001
1166
  * @param {*} [options] Override http request option.
1002
1167
  * @throws {RequiredError}
1003
1168
  */
1004
- joinOpenBooking(bookingId, joinOpenEventBookingRequest, options) {
1169
+ joinOpenBooking(bookingId, joinOpenBookingRequest, options) {
1005
1170
  return __awaiter(this, void 0, void 0, function* () {
1006
1171
  var _a, _b, _c;
1007
- const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenEventBookingRequest, options);
1172
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenBookingRequest, options);
1008
1173
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1009
1174
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.joinOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1010
1175
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1044,13 +1209,13 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
1044
1209
  return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
1045
1210
  },
1046
1211
  /**
1047
- * Estimer le prix pour rejoindre une réservation ouverte
1048
- * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
1212
+ * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
1213
+ * @param {BookingsApiEstimateOpenBookingJoinRequest} requestParameters Request parameters.
1049
1214
  * @param {*} [options] Override http request option.
1050
1215
  * @throws {RequiredError}
1051
1216
  */
1052
- estimateOpenBookingJoinPrice(requestParameters, options) {
1053
- return localVarFp.estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
1217
+ estimateOpenBookingJoin(requestParameters, options) {
1218
+ return localVarFp.estimateOpenBookingJoin(requestParameters.bookingId, requestParameters.estimateOpenBookingJoinRequest, options).then((request) => request(axios, basePath));
1054
1219
  },
1055
1220
  /**
1056
1221
  * Obtenir l\'historique d\'une réservation par ID
@@ -1080,22 +1245,13 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
1080
1245
  return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
1081
1246
  },
1082
1247
  /**
1083
- * Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
1084
- * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
1085
- * @param {*} [options] Override http request option.
1086
- * @throws {RequiredError}
1087
- */
1088
- getJoinPriceEstimate(requestParameters, options) {
1089
- return localVarFp.getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
1090
- },
1091
- /**
1092
- * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
1093
- * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
1248
+ * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
1249
+ * @param {BookingsApiGetOpenBookingBasePriceRequest} requestParameters Request parameters.
1094
1250
  * @param {*} [options] Override http request option.
1095
1251
  * @throws {RequiredError}
1096
1252
  */
1097
- getOpenBookingJoinPrice(requestParameters, options) {
1098
- return localVarFp.getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
1253
+ getOpenBookingBasePrice(requestParameters, options) {
1254
+ return localVarFp.getOpenBookingBasePrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
1099
1255
  },
1100
1256
  /**
1101
1257
  *
@@ -1122,7 +1278,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
1122
1278
  * @throws {RequiredError}
1123
1279
  */
1124
1280
  joinOpenBooking(requestParameters, options) {
1125
- return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(axios, basePath));
1281
+ return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(axios, basePath));
1126
1282
  },
1127
1283
  /**
1128
1284
  *
@@ -1153,14 +1309,14 @@ export class BookingsApi extends BaseAPI {
1153
1309
  return BookingsApiFp(this.configuration).createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(this.axios, this.basePath));
1154
1310
  }
1155
1311
  /**
1156
- * Estimer le prix pour rejoindre une réservation ouverte
1157
- * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
1312
+ * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
1313
+ * @param {BookingsApiEstimateOpenBookingJoinRequest} requestParameters Request parameters.
1158
1314
  * @param {*} [options] Override http request option.
1159
1315
  * @throws {RequiredError}
1160
1316
  * @memberof BookingsApi
1161
1317
  */
1162
- estimateOpenBookingJoinPrice(requestParameters, options) {
1163
- return BookingsApiFp(this.configuration).estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
1318
+ estimateOpenBookingJoin(requestParameters, options) {
1319
+ return BookingsApiFp(this.configuration).estimateOpenBookingJoin(requestParameters.bookingId, requestParameters.estimateOpenBookingJoinRequest, options).then((request) => request(this.axios, this.basePath));
1164
1320
  }
1165
1321
  /**
1166
1322
  * Obtenir l\'historique d\'une réservation par ID
@@ -1193,24 +1349,14 @@ export class BookingsApi extends BaseAPI {
1193
1349
  return BookingsApiFp(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
1194
1350
  }
1195
1351
  /**
1196
- * Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
1197
- * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
1352
+ * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
1353
+ * @param {BookingsApiGetOpenBookingBasePriceRequest} requestParameters Request parameters.
1198
1354
  * @param {*} [options] Override http request option.
1199
1355
  * @throws {RequiredError}
1200
1356
  * @memberof BookingsApi
1201
1357
  */
1202
- getJoinPriceEstimate(requestParameters, options) {
1203
- return BookingsApiFp(this.configuration).getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
1204
- }
1205
- /**
1206
- * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
1207
- * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
1208
- * @param {*} [options] Override http request option.
1209
- * @throws {RequiredError}
1210
- * @memberof BookingsApi
1211
- */
1212
- getOpenBookingJoinPrice(requestParameters, options) {
1213
- return BookingsApiFp(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
1358
+ getOpenBookingBasePrice(requestParameters, options) {
1359
+ return BookingsApiFp(this.configuration).getOpenBookingBasePrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
1214
1360
  }
1215
1361
  /**
1216
1362
  *
@@ -1240,7 +1386,7 @@ export class BookingsApi extends BaseAPI {
1240
1386
  * @memberof BookingsApi
1241
1387
  */
1242
1388
  joinOpenBooking(requestParameters, options) {
1243
- return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(this.axios, this.basePath));
1389
+ return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
1244
1390
  }
1245
1391
  /**
1246
1392
  *
@@ -1430,7 +1576,7 @@ export class BookingsManagerApi extends BaseAPI {
1430
1576
  export const BookingsStaffApiAxiosParamCreator = function (configuration) {
1431
1577
  return {
1432
1578
  /**
1433
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1579
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1434
1580
  * @param {string} bookingId
1435
1581
  * @param {CheckInPlayerRequest} checkInPlayerRequest
1436
1582
  * @param {*} [options] Override http request option.
@@ -1466,19 +1612,15 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
1466
1612
  };
1467
1613
  }),
1468
1614
  /**
1469
- * Check-in d\'un joueur avec création d\'un checkout SumUp
1470
- * @param {string} bookingId
1471
- * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
1615
+ * Créer une réservation pour un joueur depuis l\'espace staff
1616
+ * @param {StaffCreateBookingRequest} staffCreateBookingRequest
1472
1617
  * @param {*} [options] Override http request option.
1473
1618
  * @throws {RequiredError}
1474
1619
  */
1475
- checkInPlayerWithSumup: (bookingId_1, checkInPlayerSumupRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerSumupRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerSumupRequest, options = {}) {
1476
- // verify required parameter 'bookingId' is not null or undefined
1477
- assertParamExists('checkInPlayerWithSumup', 'bookingId', bookingId);
1478
- // verify required parameter 'checkInPlayerSumupRequest' is not null or undefined
1479
- assertParamExists('checkInPlayerWithSumup', 'checkInPlayerSumupRequest', checkInPlayerSumupRequest);
1480
- const localVarPath = `/api/bookings/{bookingId}/check-in/sumup`
1481
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
1620
+ createStaffBooking: (staffCreateBookingRequest_1, ...args_1) => __awaiter(this, [staffCreateBookingRequest_1, ...args_1], void 0, function* (staffCreateBookingRequest, options = {}) {
1621
+ // verify required parameter 'staffCreateBookingRequest' is not null or undefined
1622
+ assertParamExists('createStaffBooking', 'staffCreateBookingRequest', staffCreateBookingRequest);
1623
+ const localVarPath = `/api/bookings/staff`;
1482
1624
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1483
1625
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1484
1626
  let baseOptions;
@@ -1495,47 +1637,15 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
1495
1637
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1496
1638
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1497
1639
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1498
- localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerSumupRequest, localVarRequestOptions, configuration);
1640
+ localVarRequestOptions.data = serializeDataIfNeeded(staffCreateBookingRequest, localVarRequestOptions, configuration);
1499
1641
  return {
1500
1642
  url: toPathString(localVarUrlObj),
1501
1643
  options: localVarRequestOptions,
1502
1644
  };
1503
1645
  }),
1504
1646
  /**
1505
- * Créer une réservation pour un joueur depuis l\'espace staff
1506
- * @param {StaffCreateBookingRequest} staffCreateBookingRequest
1507
- * @param {*} [options] Override http request option.
1508
- * @throws {RequiredError}
1509
- */
1510
- createStaffBooking: (staffCreateBookingRequest_1, ...args_1) => __awaiter(this, [staffCreateBookingRequest_1, ...args_1], void 0, function* (staffCreateBookingRequest, options = {}) {
1511
- // verify required parameter 'staffCreateBookingRequest' is not null or undefined
1512
- assertParamExists('createStaffBooking', 'staffCreateBookingRequest', staffCreateBookingRequest);
1513
- const localVarPath = `/api/bookings/staff`;
1514
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1515
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1516
- let baseOptions;
1517
- if (configuration) {
1518
- baseOptions = configuration.baseOptions;
1519
- }
1520
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1521
- const localVarHeaderParameter = {};
1522
- const localVarQueryParameter = {};
1523
- // authentication bearerAuth required
1524
- // http bearer authentication required
1525
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1526
- localVarHeaderParameter['Content-Type'] = 'application/json';
1527
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1528
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1529
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1530
- localVarRequestOptions.data = serializeDataIfNeeded(staffCreateBookingRequest, localVarRequestOptions, configuration);
1531
- return {
1532
- url: toPathString(localVarUrlObj),
1533
- options: localVarRequestOptions,
1534
- };
1535
- }),
1536
- /**
1537
- * Obtenir une réservation par ID
1538
- * @param {string} bookingId
1647
+ * Obtenir une réservation par ID
1648
+ * @param {string} bookingId
1539
1649
  * @param {*} [options] Override http request option.
1540
1650
  * @throws {RequiredError}
1541
1651
  */
@@ -1745,7 +1855,7 @@ export const BookingsStaffApiFp = function (configuration) {
1745
1855
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration);
1746
1856
  return {
1747
1857
  /**
1748
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1858
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1749
1859
  * @param {string} bookingId
1750
1860
  * @param {CheckInPlayerRequest} checkInPlayerRequest
1751
1861
  * @param {*} [options] Override http request option.
@@ -1760,22 +1870,6 @@ export const BookingsStaffApiFp = function (configuration) {
1760
1870
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1761
1871
  });
1762
1872
  },
1763
- /**
1764
- * Check-in d\'un joueur avec création d\'un checkout SumUp
1765
- * @param {string} bookingId
1766
- * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
1767
- * @param {*} [options] Override http request option.
1768
- * @throws {RequiredError}
1769
- */
1770
- checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options) {
1771
- return __awaiter(this, void 0, void 0, function* () {
1772
- var _a, _b, _c;
1773
- const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options);
1774
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1775
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsStaffApi.checkInPlayerWithSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1776
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1777
- });
1778
- },
1779
1873
  /**
1780
1874
  * Créer une réservation pour un joueur depuis l\'espace staff
1781
1875
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -1895,7 +1989,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1895
1989
  const localVarFp = BookingsStaffApiFp(configuration);
1896
1990
  return {
1897
1991
  /**
1898
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1992
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1899
1993
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1900
1994
  * @param {*} [options] Override http request option.
1901
1995
  * @throws {RequiredError}
@@ -1903,15 +1997,6 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1903
1997
  checkInPlayer(requestParameters, options) {
1904
1998
  return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
1905
1999
  },
1906
- /**
1907
- * Check-in d\'un joueur avec création d\'un checkout SumUp
1908
- * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
1909
- * @param {*} [options] Override http request option.
1910
- * @throws {RequiredError}
1911
- */
1912
- checkInPlayerWithSumup(requestParameters, options) {
1913
- return localVarFp.checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(axios, basePath));
1914
- },
1915
2000
  /**
1916
2001
  * Créer une réservation pour un joueur depuis l\'espace staff
1917
2002
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -1985,7 +2070,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1985
2070
  */
1986
2071
  export class BookingsStaffApi extends BaseAPI {
1987
2072
  /**
1988
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
2073
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1989
2074
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1990
2075
  * @param {*} [options] Override http request option.
1991
2076
  * @throws {RequiredError}
@@ -1994,16 +2079,6 @@ export class BookingsStaffApi extends BaseAPI {
1994
2079
  checkInPlayer(requestParameters, options) {
1995
2080
  return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
1996
2081
  }
1997
- /**
1998
- * Check-in d\'un joueur avec création d\'un checkout SumUp
1999
- * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
2000
- * @param {*} [options] Override http request option.
2001
- * @throws {RequiredError}
2002
- * @memberof BookingsStaffApi
2003
- */
2004
- checkInPlayerWithSumup(requestParameters, options) {
2005
- return BookingsStaffApiFp(this.configuration).checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(this.axios, this.basePath));
2006
- }
2007
2082
  /**
2008
2083
  * Créer une réservation pour un joueur depuis l\'espace staff
2009
2084
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -2178,13 +2253,13 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
2178
2253
  }),
2179
2254
  /**
2180
2255
  * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
2181
- * @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
2256
+ * @param {OpenBookingPriceBody} openBookingPriceBody
2182
2257
  * @param {*} [options] Override http request option.
2183
2258
  * @throws {RequiredError}
2184
2259
  */
2185
- getOpenBookingPrice: (getOpenBookingPriceRequest_1, ...args_1) => __awaiter(this, [getOpenBookingPriceRequest_1, ...args_1], void 0, function* (getOpenBookingPriceRequest, options = {}) {
2186
- // verify required parameter 'getOpenBookingPriceRequest' is not null or undefined
2187
- assertParamExists('getOpenBookingPrice', 'getOpenBookingPriceRequest', getOpenBookingPriceRequest);
2260
+ getOpenBookingPrice: (openBookingPriceBody_1, ...args_1) => __awaiter(this, [openBookingPriceBody_1, ...args_1], void 0, function* (openBookingPriceBody, options = {}) {
2261
+ // verify required parameter 'openBookingPriceBody' is not null or undefined
2262
+ assertParamExists('getOpenBookingPrice', 'openBookingPriceBody', openBookingPriceBody);
2188
2263
  const localVarPath = `/api/bookings/open/booking-price`;
2189
2264
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2190
2265
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2202,7 +2277,7 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
2202
2277
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2203
2278
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2204
2279
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2205
- localVarRequestOptions.data = serializeDataIfNeeded(getOpenBookingPriceRequest, localVarRequestOptions, configuration);
2280
+ localVarRequestOptions.data = serializeDataIfNeeded(openBookingPriceBody, localVarRequestOptions, configuration);
2206
2281
  return {
2207
2282
  url: toPathString(localVarUrlObj),
2208
2283
  options: localVarRequestOptions,
@@ -2300,14 +2375,14 @@ export const BookingsUserApiFp = function (configuration) {
2300
2375
  },
2301
2376
  /**
2302
2377
  * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
2303
- * @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
2378
+ * @param {OpenBookingPriceBody} openBookingPriceBody
2304
2379
  * @param {*} [options] Override http request option.
2305
2380
  * @throws {RequiredError}
2306
2381
  */
2307
- getOpenBookingPrice(getOpenBookingPriceRequest, options) {
2382
+ getOpenBookingPrice(openBookingPriceBody, options) {
2308
2383
  return __awaiter(this, void 0, void 0, function* () {
2309
2384
  var _a, _b, _c;
2310
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(getOpenBookingPriceRequest, options);
2385
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(openBookingPriceBody, options);
2311
2386
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2312
2387
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsUserApi.getOpenBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2313
2388
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2372,7 +2447,7 @@ export const BookingsUserApiFactory = function (configuration, basePath, axios)
2372
2447
  * @throws {RequiredError}
2373
2448
  */
2374
2449
  getOpenBookingPrice(requestParameters, options) {
2375
- return localVarFp.getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(axios, basePath));
2450
+ return localVarFp.getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(axios, basePath));
2376
2451
  },
2377
2452
  /**
2378
2453
  * Mettre à jour une réservation ouverte (description et niveau minimal)
@@ -2430,7 +2505,7 @@ export class BookingsUserApi extends BaseAPI {
2430
2505
  * @memberof BookingsUserApi
2431
2506
  */
2432
2507
  getOpenBookingPrice(requestParameters, options) {
2433
- return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
2508
+ return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(this.axios, this.basePath));
2434
2509
  }
2435
2510
  /**
2436
2511
  * Mettre à jour une réservation ouverte (description et niveau minimal)
@@ -9460,6 +9535,41 @@ export const EventsApiAxiosParamCreator = function (configuration) {
9460
9535
  options: localVarRequestOptions,
9461
9536
  };
9462
9537
  }),
9538
+ /**
9539
+ * Get upcoming events for a club with pagination (max 10 per page)
9540
+ * @param {string} [clubId]
9541
+ * @param {number} [page]
9542
+ * @param {*} [options] Override http request option.
9543
+ * @throws {RequiredError}
9544
+ */
9545
+ getComingEvent: (clubId_1, page_1, ...args_1) => __awaiter(this, [clubId_1, page_1, ...args_1], void 0, function* (clubId, page, options = {}) {
9546
+ const localVarPath = `/api/events/coming`;
9547
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9548
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9549
+ let baseOptions;
9550
+ if (configuration) {
9551
+ baseOptions = configuration.baseOptions;
9552
+ }
9553
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
9554
+ const localVarHeaderParameter = {};
9555
+ const localVarQueryParameter = {};
9556
+ // authentication bearerAuth required
9557
+ // http bearer authentication required
9558
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
9559
+ if (clubId !== undefined) {
9560
+ localVarQueryParameter['clubId'] = clubId;
9561
+ }
9562
+ if (page !== undefined) {
9563
+ localVarQueryParameter['page'] = page;
9564
+ }
9565
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9566
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9567
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9568
+ return {
9569
+ url: toPathString(localVarUrlObj),
9570
+ options: localVarRequestOptions,
9571
+ };
9572
+ }),
9463
9573
  /**
9464
9574
  * Get a specific event by ID
9465
9575
  * @param {string} eventId
@@ -9786,6 +9896,22 @@ export const EventsApiFp = function (configuration) {
9786
9896
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9787
9897
  });
9788
9898
  },
9899
+ /**
9900
+ * Get upcoming events for a club with pagination (max 10 per page)
9901
+ * @param {string} [clubId]
9902
+ * @param {number} [page]
9903
+ * @param {*} [options] Override http request option.
9904
+ * @throws {RequiredError}
9905
+ */
9906
+ getComingEvent(clubId, page, options) {
9907
+ return __awaiter(this, void 0, void 0, function* () {
9908
+ var _a, _b, _c;
9909
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getComingEvent(clubId, page, options);
9910
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9911
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getComingEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9912
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9913
+ });
9914
+ },
9789
9915
  /**
9790
9916
  * Get a specific event by ID
9791
9917
  * @param {string} eventId
@@ -9949,6 +10075,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
9949
10075
  estimateOpenEventBookingJoinPrice(requestParameters, options) {
9950
10076
  return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
9951
10077
  },
10078
+ /**
10079
+ * Get upcoming events for a club with pagination (max 10 per page)
10080
+ * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
10081
+ * @param {*} [options] Override http request option.
10082
+ * @throws {RequiredError}
10083
+ */
10084
+ getComingEvent(requestParameters = {}, options) {
10085
+ return localVarFp.getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(axios, basePath));
10086
+ },
9952
10087
  /**
9953
10088
  * Get a specific event by ID
9954
10089
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -10060,6 +10195,16 @@ export class EventsApi extends BaseAPI {
10060
10195
  estimateOpenEventBookingJoinPrice(requestParameters, options) {
10061
10196
  return EventsApiFp(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
10062
10197
  }
10198
+ /**
10199
+ * Get upcoming events for a club with pagination (max 10 per page)
10200
+ * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
10201
+ * @param {*} [options] Override http request option.
10202
+ * @throws {RequiredError}
10203
+ * @memberof EventsApi
10204
+ */
10205
+ getComingEvent(requestParameters = {}, options) {
10206
+ return EventsApiFp(this.configuration).getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
10207
+ }
10063
10208
  /**
10064
10209
  * Get a specific event by ID
10065
10210
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -10885,16 +11030,12 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
10885
11030
  };
10886
11031
  }),
10887
11032
  /**
10888
- * Get a specific event by ID (staff)
10889
- * @param {string} eventId
11033
+ *
10890
11034
  * @param {*} [options] Override http request option.
10891
11035
  * @throws {RequiredError}
10892
11036
  */
10893
- getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
10894
- // verify required parameter 'eventId' is not null or undefined
10895
- assertParamExists('getEventByIdForStaff', 'eventId', eventId);
10896
- const localVarPath = `/api/events/staff/{eventId}`
10897
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
11037
+ getDraftEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11038
+ const localVarPath = `/api/events/staff/getEvents/drafts`;
10898
11039
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10899
11040
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10900
11041
  let baseOptions;
@@ -10916,12 +11057,16 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
10916
11057
  };
10917
11058
  }),
10918
11059
  /**
10919
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11060
+ * Get a specific event by ID (staff)
11061
+ * @param {string} eventId
10920
11062
  * @param {*} [options] Override http request option.
10921
11063
  * @throws {RequiredError}
10922
11064
  */
10923
- getEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10924
- const localVarPath = `/api/events/staff/getEvents`;
11065
+ getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
11066
+ // verify required parameter 'eventId' is not null or undefined
11067
+ assertParamExists('getEventByIdForStaff', 'eventId', eventId);
11068
+ const localVarPath = `/api/events/staff/{eventId}`
11069
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
10925
11070
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10926
11071
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10927
11072
  let baseOptions;
@@ -10989,6 +11134,60 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
10989
11134
  options: localVarRequestOptions,
10990
11135
  };
10991
11136
  }),
11137
+ /**
11138
+ *
11139
+ * @param {*} [options] Override http request option.
11140
+ * @throws {RequiredError}
11141
+ */
11142
+ getPastEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11143
+ const localVarPath = `/api/events/staff/getEvents/past`;
11144
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11145
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11146
+ let baseOptions;
11147
+ if (configuration) {
11148
+ baseOptions = configuration.baseOptions;
11149
+ }
11150
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11151
+ const localVarHeaderParameter = {};
11152
+ const localVarQueryParameter = {};
11153
+ // authentication bearerAuth required
11154
+ // http bearer authentication required
11155
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11156
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11157
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11158
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11159
+ return {
11160
+ url: toPathString(localVarUrlObj),
11161
+ options: localVarRequestOptions,
11162
+ };
11163
+ }),
11164
+ /**
11165
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11166
+ * @param {*} [options] Override http request option.
11167
+ * @throws {RequiredError}
11168
+ */
11169
+ getUpcomingEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11170
+ const localVarPath = `/api/events/staff/getEvents/upcoming`;
11171
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11172
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11173
+ let baseOptions;
11174
+ if (configuration) {
11175
+ baseOptions = configuration.baseOptions;
11176
+ }
11177
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11178
+ const localVarHeaderParameter = {};
11179
+ const localVarQueryParameter = {};
11180
+ // authentication bearerAuth required
11181
+ // http bearer authentication required
11182
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11183
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11184
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11185
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11186
+ return {
11187
+ url: toPathString(localVarUrlObj),
11188
+ options: localVarRequestOptions,
11189
+ };
11190
+ }),
10992
11191
  /**
10993
11192
  * Get events for the week view (30 day sliding window)
10994
11193
  * @param {string} [clubId]
@@ -11081,31 +11280,31 @@ export const EventsStaffApiFp = function (configuration) {
11081
11280
  });
11082
11281
  },
11083
11282
  /**
11084
- * Get a specific event by ID (staff)
11085
- * @param {string} eventId
11283
+ *
11086
11284
  * @param {*} [options] Override http request option.
11087
11285
  * @throws {RequiredError}
11088
11286
  */
11089
- getEventByIdForStaff(eventId, options) {
11287
+ getDraftEventsByClub(options) {
11090
11288
  return __awaiter(this, void 0, void 0, function* () {
11091
11289
  var _a, _b, _c;
11092
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
11290
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDraftEventsByClub(options);
11093
11291
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11094
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11292
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getDraftEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11095
11293
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11096
11294
  });
11097
11295
  },
11098
11296
  /**
11099
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11297
+ * Get a specific event by ID (staff)
11298
+ * @param {string} eventId
11100
11299
  * @param {*} [options] Override http request option.
11101
11300
  * @throws {RequiredError}
11102
11301
  */
11103
- getEventsByClub(options) {
11302
+ getEventByIdForStaff(eventId, options) {
11104
11303
  return __awaiter(this, void 0, void 0, function* () {
11105
11304
  var _a, _b, _c;
11106
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventsByClub(options);
11305
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
11107
11306
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11108
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11307
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11109
11308
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11110
11309
  });
11111
11310
  },
@@ -11128,6 +11327,34 @@ export const EventsStaffApiFp = function (configuration) {
11128
11327
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11129
11328
  });
11130
11329
  },
11330
+ /**
11331
+ *
11332
+ * @param {*} [options] Override http request option.
11333
+ * @throws {RequiredError}
11334
+ */
11335
+ getPastEventsByClub(options) {
11336
+ return __awaiter(this, void 0, void 0, function* () {
11337
+ var _a, _b, _c;
11338
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastEventsByClub(options);
11339
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11340
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getPastEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11341
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11342
+ });
11343
+ },
11344
+ /**
11345
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11346
+ * @param {*} [options] Override http request option.
11347
+ * @throws {RequiredError}
11348
+ */
11349
+ getUpcomingEventsByClub(options) {
11350
+ return __awaiter(this, void 0, void 0, function* () {
11351
+ var _a, _b, _c;
11352
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpcomingEventsByClub(options);
11353
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11354
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getUpcomingEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11355
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11356
+ });
11357
+ },
11131
11358
  /**
11132
11359
  * Get events for the week view (30 day sliding window)
11133
11360
  * @param {string} [clubId]
@@ -11175,21 +11402,21 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
11175
11402
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
11176
11403
  },
11177
11404
  /**
11178
- * Get a specific event by ID (staff)
11179
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11405
+ *
11180
11406
  * @param {*} [options] Override http request option.
11181
11407
  * @throws {RequiredError}
11182
11408
  */
11183
- getEventByIdForStaff(requestParameters, options) {
11184
- return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
11409
+ getDraftEventsByClub(options) {
11410
+ return localVarFp.getDraftEventsByClub(options).then((request) => request(axios, basePath));
11185
11411
  },
11186
11412
  /**
11187
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11413
+ * Get a specific event by ID (staff)
11414
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11188
11415
  * @param {*} [options] Override http request option.
11189
11416
  * @throws {RequiredError}
11190
11417
  */
11191
- getEventsByClub(options) {
11192
- return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
11418
+ getEventByIdForStaff(requestParameters, options) {
11419
+ return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
11193
11420
  },
11194
11421
  /**
11195
11422
  * Get events for the entire month view (including recurring occurrences)
@@ -11200,6 +11427,22 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
11200
11427
  getMonthlyEvents(requestParameters = {}, options) {
11201
11428
  return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
11202
11429
  },
11430
+ /**
11431
+ *
11432
+ * @param {*} [options] Override http request option.
11433
+ * @throws {RequiredError}
11434
+ */
11435
+ getPastEventsByClub(options) {
11436
+ return localVarFp.getPastEventsByClub(options).then((request) => request(axios, basePath));
11437
+ },
11438
+ /**
11439
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11440
+ * @param {*} [options] Override http request option.
11441
+ * @throws {RequiredError}
11442
+ */
11443
+ getUpcomingEventsByClub(options) {
11444
+ return localVarFp.getUpcomingEventsByClub(options).then((request) => request(axios, basePath));
11445
+ },
11203
11446
  /**
11204
11447
  * Get events for the week view (30 day sliding window)
11205
11448
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
@@ -11239,23 +11482,23 @@ export class EventsStaffApi extends BaseAPI {
11239
11482
  return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11240
11483
  }
11241
11484
  /**
11242
- * Get a specific event by ID (staff)
11243
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11485
+ *
11244
11486
  * @param {*} [options] Override http request option.
11245
11487
  * @throws {RequiredError}
11246
11488
  * @memberof EventsStaffApi
11247
11489
  */
11248
- getEventByIdForStaff(requestParameters, options) {
11249
- return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
11490
+ getDraftEventsByClub(options) {
11491
+ return EventsStaffApiFp(this.configuration).getDraftEventsByClub(options).then((request) => request(this.axios, this.basePath));
11250
11492
  }
11251
11493
  /**
11252
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11494
+ * Get a specific event by ID (staff)
11495
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11253
11496
  * @param {*} [options] Override http request option.
11254
11497
  * @throws {RequiredError}
11255
11498
  * @memberof EventsStaffApi
11256
11499
  */
11257
- getEventsByClub(options) {
11258
- return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
11500
+ getEventByIdForStaff(requestParameters, options) {
11501
+ return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
11259
11502
  }
11260
11503
  /**
11261
11504
  * Get events for the entire month view (including recurring occurrences)
@@ -11267,6 +11510,24 @@ export class EventsStaffApi extends BaseAPI {
11267
11510
  getMonthlyEvents(requestParameters = {}, options) {
11268
11511
  return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11269
11512
  }
11513
+ /**
11514
+ *
11515
+ * @param {*} [options] Override http request option.
11516
+ * @throws {RequiredError}
11517
+ * @memberof EventsStaffApi
11518
+ */
11519
+ getPastEventsByClub(options) {
11520
+ return EventsStaffApiFp(this.configuration).getPastEventsByClub(options).then((request) => request(this.axios, this.basePath));
11521
+ }
11522
+ /**
11523
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11524
+ * @param {*} [options] Override http request option.
11525
+ * @throws {RequiredError}
11526
+ * @memberof EventsStaffApi
11527
+ */
11528
+ getUpcomingEventsByClub(options) {
11529
+ return EventsStaffApiFp(this.configuration).getUpcomingEventsByClub(options).then((request) => request(this.axios, this.basePath));
11530
+ }
11270
11531
  /**
11271
11532
  * Get events for the week view (30 day sliding window)
11272
11533
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
@@ -11424,272 +11685,206 @@ export class ImagesApi extends BaseAPI {
11424
11685
  }
11425
11686
  }
11426
11687
  /**
11427
- * PaymentsStaffApi - axios parameter creator
11688
+ * JobsApi - axios parameter creator
11428
11689
  * @export
11429
11690
  */
11430
- export const PaymentsStaffApiAxiosParamCreator = function (configuration) {
11691
+ export const JobsApiAxiosParamCreator = function (configuration) {
11431
11692
  return {
11432
11693
  /**
11433
- * Cancel a SumUp reader checkout.
11434
- * @param {string} clubId
11435
- * @param {string} paymentId
11436
- * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
11694
+ * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
11695
+ * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
11437
11696
  * @param {*} [options] Override http request option.
11438
11697
  * @throws {RequiredError}
11439
11698
  */
11440
- cancelSumupPayment: (clubId_1, paymentId_1, sumupCancelPaymentRequest_1, ...args_1) => __awaiter(this, [clubId_1, paymentId_1, sumupCancelPaymentRequest_1, ...args_1], void 0, function* (clubId, paymentId, sumupCancelPaymentRequest, options = {}) {
11441
- // verify required parameter 'clubId' is not null or undefined
11442
- assertParamExists('cancelSumupPayment', 'clubId', clubId);
11443
- // verify required parameter 'paymentId' is not null or undefined
11444
- assertParamExists('cancelSumupPayment', 'paymentId', paymentId);
11445
- const localVarPath = `/api/clubs/{clubId}/payments/sumup/{paymentId}/cancel`
11446
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
11447
- .replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
11699
+ captureExpiringAuthorizations: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11700
+ const localVarPath = `/api/jobs/capture-expiring-authorizations`;
11448
11701
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11449
11702
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11450
11703
  let baseOptions;
11451
11704
  if (configuration) {
11452
11705
  baseOptions = configuration.baseOptions;
11453
11706
  }
11454
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11707
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11455
11708
  const localVarHeaderParameter = {};
11456
11709
  const localVarQueryParameter = {};
11457
- // authentication bearerAuth required
11458
- // http bearer authentication required
11459
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11460
- localVarHeaderParameter['Content-Type'] = 'application/json';
11461
11710
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11462
11711
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11463
11712
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11464
- localVarRequestOptions.data = serializeDataIfNeeded(sumupCancelPaymentRequest, localVarRequestOptions, configuration);
11465
11713
  return {
11466
11714
  url: toPathString(localVarUrlObj),
11467
11715
  options: localVarRequestOptions,
11468
11716
  };
11469
11717
  }),
11470
11718
  /**
11471
- * Start a SumUp reader checkout (manual payment trigger).
11472
- * @param {string} clubId
11473
- * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
11719
+ * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
11720
+ * @summary Capture les paiements autorisés pour les réservations passées
11474
11721
  * @param {*} [options] Override http request option.
11475
11722
  * @throws {RequiredError}
11476
11723
  */
11477
- createSumupPayment: (clubId_1, sumupCreatePaymentRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupCreatePaymentRequest_1, ...args_1], void 0, function* (clubId, sumupCreatePaymentRequest, options = {}) {
11478
- // verify required parameter 'clubId' is not null or undefined
11479
- assertParamExists('createSumupPayment', 'clubId', clubId);
11480
- // verify required parameter 'sumupCreatePaymentRequest' is not null or undefined
11481
- assertParamExists('createSumupPayment', 'sumupCreatePaymentRequest', sumupCreatePaymentRequest);
11482
- const localVarPath = `/api/clubs/{clubId}/payments/sumup`
11483
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
11724
+ capturePastReservations: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11725
+ const localVarPath = `/api/jobs/capture-past-reservations`;
11484
11726
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11485
11727
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11486
11728
  let baseOptions;
11487
11729
  if (configuration) {
11488
11730
  baseOptions = configuration.baseOptions;
11489
11731
  }
11490
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11732
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11491
11733
  const localVarHeaderParameter = {};
11492
11734
  const localVarQueryParameter = {};
11493
- // authentication bearerAuth required
11494
- // http bearer authentication required
11495
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11496
- localVarHeaderParameter['Content-Type'] = 'application/json';
11497
11735
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11498
11736
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11499
11737
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11500
- localVarRequestOptions.data = serializeDataIfNeeded(sumupCreatePaymentRequest, localVarRequestOptions, configuration);
11501
11738
  return {
11502
11739
  url: toPathString(localVarUrlObj),
11503
11740
  options: localVarRequestOptions,
11504
11741
  };
11505
11742
  }),
11506
- };
11507
- };
11508
- /**
11509
- * PaymentsStaffApi - functional programming interface
11510
- * @export
11511
- */
11512
- export const PaymentsStaffApiFp = function (configuration) {
11513
- const localVarAxiosParamCreator = PaymentsStaffApiAxiosParamCreator(configuration);
11514
- return {
11515
- /**
11516
- * Cancel a SumUp reader checkout.
11517
- * @param {string} clubId
11518
- * @param {string} paymentId
11519
- * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
11520
- * @param {*} [options] Override http request option.
11521
- * @throws {RequiredError}
11522
- */
11523
- cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options) {
11524
- return __awaiter(this, void 0, void 0, function* () {
11525
- var _a, _b, _c;
11526
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
11527
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11528
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsStaffApi.cancelSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11529
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11530
- });
11531
- },
11532
11743
  /**
11533
- * Start a SumUp reader checkout (manual payment trigger).
11534
- * @param {string} clubId
11535
- * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
11744
+ * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
11745
+ * @summary Expire les réservations en attente de paiement
11536
11746
  * @param {*} [options] Override http request option.
11537
11747
  * @throws {RequiredError}
11538
11748
  */
11539
- createSumupPayment(clubId, sumupCreatePaymentRequest, options) {
11540
- return __awaiter(this, void 0, void 0, function* () {
11541
- var _a, _b, _c;
11542
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
11543
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11544
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsStaffApi.createSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11545
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11546
- });
11547
- },
11548
- };
11549
- };
11550
- /**
11551
- * PaymentsStaffApi - factory interface
11552
- * @export
11553
- */
11554
- export const PaymentsStaffApiFactory = function (configuration, basePath, axios) {
11555
- const localVarFp = PaymentsStaffApiFp(configuration);
11556
- return {
11749
+ expireBookingWaitingPayments: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11750
+ const localVarPath = `/api/jobs/expire-booking-waiting-payments`;
11751
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11752
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11753
+ let baseOptions;
11754
+ if (configuration) {
11755
+ baseOptions = configuration.baseOptions;
11756
+ }
11757
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11758
+ const localVarHeaderParameter = {};
11759
+ const localVarQueryParameter = {};
11760
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11761
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11762
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11763
+ return {
11764
+ url: toPathString(localVarUrlObj),
11765
+ options: localVarRequestOptions,
11766
+ };
11767
+ }),
11557
11768
  /**
11558
- * Cancel a SumUp reader checkout.
11559
- * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
11769
+ * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
11770
+ * @summary Expire les paiements en attente sur la waitlist
11560
11771
  * @param {*} [options] Override http request option.
11561
11772
  * @throws {RequiredError}
11562
11773
  */
11563
- cancelSumupPayment(requestParameters, options) {
11564
- return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
11565
- },
11774
+ expireWaitlistPayments: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11775
+ const localVarPath = `/api/jobs/expire-waitlist-payments`;
11776
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11777
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11778
+ let baseOptions;
11779
+ if (configuration) {
11780
+ baseOptions = configuration.baseOptions;
11781
+ }
11782
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11783
+ const localVarHeaderParameter = {};
11784
+ const localVarQueryParameter = {};
11785
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11786
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11787
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11788
+ return {
11789
+ url: toPathString(localVarUrlObj),
11790
+ options: localVarRequestOptions,
11791
+ };
11792
+ }),
11566
11793
  /**
11567
- * Start a SumUp reader checkout (manual payment trigger).
11568
- * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
11794
+ * Route de santé pour vérifier que le service jobs est opérationnel
11795
+ * @summary Health check pour les jobs
11569
11796
  * @param {*} [options] Override http request option.
11570
11797
  * @throws {RequiredError}
11571
11798
  */
11572
- createSumupPayment(requestParameters, options) {
11573
- return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
11574
- },
11575
- };
11576
- };
11577
- /**
11578
- * PaymentsStaffApi - object-oriented interface
11579
- * @export
11580
- * @class PaymentsStaffApi
11581
- * @extends {BaseAPI}
11582
- */
11583
- export class PaymentsStaffApi extends BaseAPI {
11584
- /**
11585
- * Cancel a SumUp reader checkout.
11586
- * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
11587
- * @param {*} [options] Override http request option.
11588
- * @throws {RequiredError}
11589
- * @memberof PaymentsStaffApi
11590
- */
11591
- cancelSumupPayment(requestParameters, options) {
11592
- return PaymentsStaffApiFp(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
11593
- }
11594
- /**
11595
- * Start a SumUp reader checkout (manual payment trigger).
11596
- * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
11597
- * @param {*} [options] Override http request option.
11598
- * @throws {RequiredError}
11599
- * @memberof PaymentsStaffApi
11600
- */
11601
- createSumupPayment(requestParameters, options) {
11602
- return PaymentsStaffApiFp(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
11603
- }
11604
- }
11605
- /**
11606
- * PublicEmailApi - axios parameter creator
11607
- * @export
11608
- */
11609
- export const PublicEmailApiAxiosParamCreator = function (configuration) {
11610
- return {
11799
+ health: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11800
+ const localVarPath = `/api/jobs/health`;
11801
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11802
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11803
+ let baseOptions;
11804
+ if (configuration) {
11805
+ baseOptions = configuration.baseOptions;
11806
+ }
11807
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11808
+ const localVarHeaderParameter = {};
11809
+ const localVarQueryParameter = {};
11810
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11811
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11812
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11813
+ return {
11814
+ url: toPathString(localVarUrlObj),
11815
+ options: localVarRequestOptions,
11816
+ };
11817
+ }),
11611
11818
  /**
11612
- *
11613
- * @param {EmailExistsRequestBody} emailExistsRequestBody
11819
+ * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
11820
+ * @summary Génère les créneaux futurs et nettoie les anciens
11614
11821
  * @param {*} [options] Override http request option.
11615
11822
  * @throws {RequiredError}
11616
11823
  */
11617
- authEmailExists: (emailExistsRequestBody_1, ...args_1) => __awaiter(this, [emailExistsRequestBody_1, ...args_1], void 0, function* (emailExistsRequestBody, options = {}) {
11618
- // verify required parameter 'emailExistsRequestBody' is not null or undefined
11619
- assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody);
11620
- const localVarPath = `/api/public-email/auth-email-exists`;
11824
+ maintainSlots: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11825
+ const localVarPath = `/api/jobs/maintain-slots`;
11621
11826
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11622
11827
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11623
11828
  let baseOptions;
11624
11829
  if (configuration) {
11625
11830
  baseOptions = configuration.baseOptions;
11626
11831
  }
11627
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11832
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11628
11833
  const localVarHeaderParameter = {};
11629
11834
  const localVarQueryParameter = {};
11630
- localVarHeaderParameter['Content-Type'] = 'application/json';
11631
11835
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11632
11836
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11633
11837
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11634
- localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration);
11635
11838
  return {
11636
11839
  url: toPathString(localVarUrlObj),
11637
11840
  options: localVarRequestOptions,
11638
11841
  };
11639
11842
  }),
11640
11843
  /**
11641
- *
11642
- * @param {RequestEmailCodeBody} requestEmailCodeBody
11844
+ * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
11845
+ * @summary Libère les anciennes réservations terminées
11643
11846
  * @param {*} [options] Override http request option.
11644
11847
  * @throws {RequiredError}
11645
11848
  */
11646
- requestVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
11647
- // verify required parameter 'requestEmailCodeBody' is not null or undefined
11648
- assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
11649
- const localVarPath = `/api/public-email/request-verification-code`;
11849
+ releaseOldBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11850
+ const localVarPath = `/api/jobs/release-old-bookings`;
11650
11851
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11651
11852
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11652
11853
  let baseOptions;
11653
11854
  if (configuration) {
11654
11855
  baseOptions = configuration.baseOptions;
11655
11856
  }
11656
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11857
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11657
11858
  const localVarHeaderParameter = {};
11658
11859
  const localVarQueryParameter = {};
11659
- localVarHeaderParameter['Content-Type'] = 'application/json';
11660
11860
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11661
11861
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11662
11862
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11663
- localVarRequestOptions.data = serializeDataIfNeeded(requestEmailCodeBody, localVarRequestOptions, configuration);
11664
11863
  return {
11665
11864
  url: toPathString(localVarUrlObj),
11666
11865
  options: localVarRequestOptions,
11667
11866
  };
11668
11867
  }),
11669
11868
  /**
11670
- *
11671
- * @param {VerifyEmailCodeBody} verifyEmailCodeBody
11869
+ * Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
11870
+ * @summary Envoie des emails de rappel 24h avant les réservations et événements
11672
11871
  * @param {*} [options] Override http request option.
11673
11872
  * @throws {RequiredError}
11674
11873
  */
11675
- verifyCode: (verifyEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyEmailCodeBody_1, ...args_1], void 0, function* (verifyEmailCodeBody, options = {}) {
11676
- // verify required parameter 'verifyEmailCodeBody' is not null or undefined
11677
- assertParamExists('verifyCode', 'verifyEmailCodeBody', verifyEmailCodeBody);
11678
- const localVarPath = `/api/public-email/verify-code`;
11874
+ sendBookingReminders: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11875
+ const localVarPath = `/api/jobs/send-booking-reminders`;
11679
11876
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11680
11877
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11681
11878
  let baseOptions;
11682
11879
  if (configuration) {
11683
11880
  baseOptions = configuration.baseOptions;
11684
11881
  }
11685
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11882
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11686
11883
  const localVarHeaderParameter = {};
11687
11884
  const localVarQueryParameter = {};
11688
- localVarHeaderParameter['Content-Type'] = 'application/json';
11689
11885
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11690
11886
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11691
11887
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11692
- localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailCodeBody, localVarRequestOptions, configuration);
11693
11888
  return {
11694
11889
  url: toPathString(localVarUrlObj),
11695
11890
  options: localVarRequestOptions,
@@ -11698,121 +11893,514 @@ export const PublicEmailApiAxiosParamCreator = function (configuration) {
11698
11893
  };
11699
11894
  };
11700
11895
  /**
11701
- * PublicEmailApi - functional programming interface
11896
+ * JobsApi - functional programming interface
11702
11897
  * @export
11703
11898
  */
11704
- export const PublicEmailApiFp = function (configuration) {
11705
- const localVarAxiosParamCreator = PublicEmailApiAxiosParamCreator(configuration);
11899
+ export const JobsApiFp = function (configuration) {
11900
+ const localVarAxiosParamCreator = JobsApiAxiosParamCreator(configuration);
11706
11901
  return {
11707
11902
  /**
11708
- *
11709
- * @param {EmailExistsRequestBody} emailExistsRequestBody
11903
+ * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
11904
+ * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
11710
11905
  * @param {*} [options] Override http request option.
11711
11906
  * @throws {RequiredError}
11712
11907
  */
11713
- authEmailExists(emailExistsRequestBody, options) {
11908
+ captureExpiringAuthorizations(options) {
11714
11909
  return __awaiter(this, void 0, void 0, function* () {
11715
11910
  var _a, _b, _c;
11716
- const localVarAxiosArgs = yield localVarAxiosParamCreator.authEmailExists(emailExistsRequestBody, options);
11911
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.captureExpiringAuthorizations(options);
11717
11912
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11718
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.authEmailExists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11913
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.captureExpiringAuthorizations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11719
11914
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11720
11915
  });
11721
11916
  },
11722
11917
  /**
11723
- *
11724
- * @param {RequestEmailCodeBody} requestEmailCodeBody
11918
+ * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
11919
+ * @summary Capture les paiements autorisés pour les réservations passées
11725
11920
  * @param {*} [options] Override http request option.
11726
11921
  * @throws {RequiredError}
11727
11922
  */
11728
- requestVerificationCode(requestEmailCodeBody, options) {
11923
+ capturePastReservations(options) {
11729
11924
  return __awaiter(this, void 0, void 0, function* () {
11730
11925
  var _a, _b, _c;
11731
- const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestEmailCodeBody, options);
11926
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.capturePastReservations(options);
11732
11927
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11733
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11928
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.capturePastReservations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11734
11929
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11735
11930
  });
11736
11931
  },
11737
11932
  /**
11738
- *
11739
- * @param {VerifyEmailCodeBody} verifyEmailCodeBody
11933
+ * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
11934
+ * @summary Expire les réservations en attente de paiement
11740
11935
  * @param {*} [options] Override http request option.
11741
11936
  * @throws {RequiredError}
11742
11937
  */
11743
- verifyCode(verifyEmailCodeBody, options) {
11938
+ expireBookingWaitingPayments(options) {
11744
11939
  return __awaiter(this, void 0, void 0, function* () {
11745
11940
  var _a, _b, _c;
11746
- const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyCode(verifyEmailCodeBody, options);
11941
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.expireBookingWaitingPayments(options);
11747
11942
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11748
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.verifyCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11943
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.expireBookingWaitingPayments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11944
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11945
+ });
11946
+ },
11947
+ /**
11948
+ * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
11949
+ * @summary Expire les paiements en attente sur la waitlist
11950
+ * @param {*} [options] Override http request option.
11951
+ * @throws {RequiredError}
11952
+ */
11953
+ expireWaitlistPayments(options) {
11954
+ return __awaiter(this, void 0, void 0, function* () {
11955
+ var _a, _b, _c;
11956
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.expireWaitlistPayments(options);
11957
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11958
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.expireWaitlistPayments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11959
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11960
+ });
11961
+ },
11962
+ /**
11963
+ * Route de santé pour vérifier que le service jobs est opérationnel
11964
+ * @summary Health check pour les jobs
11965
+ * @param {*} [options] Override http request option.
11966
+ * @throws {RequiredError}
11967
+ */
11968
+ health(options) {
11969
+ return __awaiter(this, void 0, void 0, function* () {
11970
+ var _a, _b, _c;
11971
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.health(options);
11972
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11973
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.health']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11974
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11975
+ });
11976
+ },
11977
+ /**
11978
+ * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
11979
+ * @summary Génère les créneaux futurs et nettoie les anciens
11980
+ * @param {*} [options] Override http request option.
11981
+ * @throws {RequiredError}
11982
+ */
11983
+ maintainSlots(options) {
11984
+ return __awaiter(this, void 0, void 0, function* () {
11985
+ var _a, _b, _c;
11986
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.maintainSlots(options);
11987
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11988
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.maintainSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11989
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11990
+ });
11991
+ },
11992
+ /**
11993
+ * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
11994
+ * @summary Libère les anciennes réservations terminées
11995
+ * @param {*} [options] Override http request option.
11996
+ * @throws {RequiredError}
11997
+ */
11998
+ releaseOldBookings(options) {
11999
+ return __awaiter(this, void 0, void 0, function* () {
12000
+ var _a, _b, _c;
12001
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.releaseOldBookings(options);
12002
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12003
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.releaseOldBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12004
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12005
+ });
12006
+ },
12007
+ /**
12008
+ * Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
12009
+ * @summary Envoie des emails de rappel 24h avant les réservations et événements
12010
+ * @param {*} [options] Override http request option.
12011
+ * @throws {RequiredError}
12012
+ */
12013
+ sendBookingReminders(options) {
12014
+ return __awaiter(this, void 0, void 0, function* () {
12015
+ var _a, _b, _c;
12016
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendBookingReminders(options);
12017
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12018
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.sendBookingReminders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11749
12019
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11750
12020
  });
11751
12021
  },
11752
12022
  };
11753
12023
  };
11754
12024
  /**
11755
- * PublicEmailApi - factory interface
12025
+ * JobsApi - factory interface
11756
12026
  * @export
11757
12027
  */
11758
- export const PublicEmailApiFactory = function (configuration, basePath, axios) {
11759
- const localVarFp = PublicEmailApiFp(configuration);
12028
+ export const JobsApiFactory = function (configuration, basePath, axios) {
12029
+ const localVarFp = JobsApiFp(configuration);
11760
12030
  return {
11761
12031
  /**
11762
- *
11763
- * @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
12032
+ * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
12033
+ * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
11764
12034
  * @param {*} [options] Override http request option.
11765
12035
  * @throws {RequiredError}
11766
12036
  */
11767
- authEmailExists(requestParameters, options) {
11768
- return localVarFp.authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(axios, basePath));
12037
+ captureExpiringAuthorizations(options) {
12038
+ return localVarFp.captureExpiringAuthorizations(options).then((request) => request(axios, basePath));
11769
12039
  },
11770
12040
  /**
11771
- *
11772
- * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
12041
+ * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
12042
+ * @summary Capture les paiements autorisés pour les réservations passées
11773
12043
  * @param {*} [options] Override http request option.
11774
12044
  * @throws {RequiredError}
11775
12045
  */
11776
- requestVerificationCode(requestParameters, options) {
11777
- return localVarFp.requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
12046
+ capturePastReservations(options) {
12047
+ return localVarFp.capturePastReservations(options).then((request) => request(axios, basePath));
11778
12048
  },
11779
12049
  /**
11780
- *
11781
- * @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
12050
+ * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
12051
+ * @summary Expire les réservations en attente de paiement
11782
12052
  * @param {*} [options] Override http request option.
11783
12053
  * @throws {RequiredError}
11784
12054
  */
11785
- verifyCode(requestParameters, options) {
11786
- return localVarFp.verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(axios, basePath));
12055
+ expireBookingWaitingPayments(options) {
12056
+ return localVarFp.expireBookingWaitingPayments(options).then((request) => request(axios, basePath));
12057
+ },
12058
+ /**
12059
+ * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
12060
+ * @summary Expire les paiements en attente sur la waitlist
12061
+ * @param {*} [options] Override http request option.
12062
+ * @throws {RequiredError}
12063
+ */
12064
+ expireWaitlistPayments(options) {
12065
+ return localVarFp.expireWaitlistPayments(options).then((request) => request(axios, basePath));
12066
+ },
12067
+ /**
12068
+ * Route de santé pour vérifier que le service jobs est opérationnel
12069
+ * @summary Health check pour les jobs
12070
+ * @param {*} [options] Override http request option.
12071
+ * @throws {RequiredError}
12072
+ */
12073
+ health(options) {
12074
+ return localVarFp.health(options).then((request) => request(axios, basePath));
12075
+ },
12076
+ /**
12077
+ * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
12078
+ * @summary Génère les créneaux futurs et nettoie les anciens
12079
+ * @param {*} [options] Override http request option.
12080
+ * @throws {RequiredError}
12081
+ */
12082
+ maintainSlots(options) {
12083
+ return localVarFp.maintainSlots(options).then((request) => request(axios, basePath));
12084
+ },
12085
+ /**
12086
+ * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
12087
+ * @summary Libère les anciennes réservations terminées
12088
+ * @param {*} [options] Override http request option.
12089
+ * @throws {RequiredError}
12090
+ */
12091
+ releaseOldBookings(options) {
12092
+ return localVarFp.releaseOldBookings(options).then((request) => request(axios, basePath));
12093
+ },
12094
+ /**
12095
+ * Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
12096
+ * @summary Envoie des emails de rappel 24h avant les réservations et événements
12097
+ * @param {*} [options] Override http request option.
12098
+ * @throws {RequiredError}
12099
+ */
12100
+ sendBookingReminders(options) {
12101
+ return localVarFp.sendBookingReminders(options).then((request) => request(axios, basePath));
11787
12102
  },
11788
12103
  };
11789
12104
  };
11790
12105
  /**
11791
- * PublicEmailApi - object-oriented interface
12106
+ * JobsApi - object-oriented interface
11792
12107
  * @export
11793
- * @class PublicEmailApi
12108
+ * @class JobsApi
11794
12109
  * @extends {BaseAPI}
11795
12110
  */
11796
- export class PublicEmailApi extends BaseAPI {
12111
+ export class JobsApi extends BaseAPI {
11797
12112
  /**
11798
- *
11799
- * @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
12113
+ * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
12114
+ * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
11800
12115
  * @param {*} [options] Override http request option.
11801
12116
  * @throws {RequiredError}
11802
- * @memberof PublicEmailApi
12117
+ * @memberof JobsApi
12118
+ */
12119
+ captureExpiringAuthorizations(options) {
12120
+ return JobsApiFp(this.configuration).captureExpiringAuthorizations(options).then((request) => request(this.axios, this.basePath));
12121
+ }
12122
+ /**
12123
+ * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
12124
+ * @summary Capture les paiements autorisés pour les réservations passées
12125
+ * @param {*} [options] Override http request option.
12126
+ * @throws {RequiredError}
12127
+ * @memberof JobsApi
12128
+ */
12129
+ capturePastReservations(options) {
12130
+ return JobsApiFp(this.configuration).capturePastReservations(options).then((request) => request(this.axios, this.basePath));
12131
+ }
12132
+ /**
12133
+ * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
12134
+ * @summary Expire les réservations en attente de paiement
12135
+ * @param {*} [options] Override http request option.
12136
+ * @throws {RequiredError}
12137
+ * @memberof JobsApi
12138
+ */
12139
+ expireBookingWaitingPayments(options) {
12140
+ return JobsApiFp(this.configuration).expireBookingWaitingPayments(options).then((request) => request(this.axios, this.basePath));
12141
+ }
12142
+ /**
12143
+ * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
12144
+ * @summary Expire les paiements en attente sur la waitlist
12145
+ * @param {*} [options] Override http request option.
12146
+ * @throws {RequiredError}
12147
+ * @memberof JobsApi
12148
+ */
12149
+ expireWaitlistPayments(options) {
12150
+ return JobsApiFp(this.configuration).expireWaitlistPayments(options).then((request) => request(this.axios, this.basePath));
12151
+ }
12152
+ /**
12153
+ * Route de santé pour vérifier que le service jobs est opérationnel
12154
+ * @summary Health check pour les jobs
12155
+ * @param {*} [options] Override http request option.
12156
+ * @throws {RequiredError}
12157
+ * @memberof JobsApi
12158
+ */
12159
+ health(options) {
12160
+ return JobsApiFp(this.configuration).health(options).then((request) => request(this.axios, this.basePath));
12161
+ }
12162
+ /**
12163
+ * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
12164
+ * @summary Génère les créneaux futurs et nettoie les anciens
12165
+ * @param {*} [options] Override http request option.
12166
+ * @throws {RequiredError}
12167
+ * @memberof JobsApi
12168
+ */
12169
+ maintainSlots(options) {
12170
+ return JobsApiFp(this.configuration).maintainSlots(options).then((request) => request(this.axios, this.basePath));
12171
+ }
12172
+ /**
12173
+ * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
12174
+ * @summary Libère les anciennes réservations terminées
12175
+ * @param {*} [options] Override http request option.
12176
+ * @throws {RequiredError}
12177
+ * @memberof JobsApi
12178
+ */
12179
+ releaseOldBookings(options) {
12180
+ return JobsApiFp(this.configuration).releaseOldBookings(options).then((request) => request(this.axios, this.basePath));
12181
+ }
12182
+ /**
12183
+ * Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
12184
+ * @summary Envoie des emails de rappel 24h avant les réservations et événements
12185
+ * @param {*} [options] Override http request option.
12186
+ * @throws {RequiredError}
12187
+ * @memberof JobsApi
12188
+ */
12189
+ sendBookingReminders(options) {
12190
+ return JobsApiFp(this.configuration).sendBookingReminders(options).then((request) => request(this.axios, this.basePath));
12191
+ }
12192
+ }
12193
+ /**
12194
+ * PublicEmailApi - axios parameter creator
12195
+ * @export
12196
+ */
12197
+ export const PublicEmailApiAxiosParamCreator = function (configuration) {
12198
+ return {
12199
+ /**
12200
+ *
12201
+ * @param {EmailExistsRequestBody} emailExistsRequestBody
12202
+ * @param {*} [options] Override http request option.
12203
+ * @throws {RequiredError}
12204
+ */
12205
+ authEmailExists: (emailExistsRequestBody_1, ...args_1) => __awaiter(this, [emailExistsRequestBody_1, ...args_1], void 0, function* (emailExistsRequestBody, options = {}) {
12206
+ // verify required parameter 'emailExistsRequestBody' is not null or undefined
12207
+ assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody);
12208
+ const localVarPath = `/api/public-email/auth-email-exists`;
12209
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12210
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12211
+ let baseOptions;
12212
+ if (configuration) {
12213
+ baseOptions = configuration.baseOptions;
12214
+ }
12215
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12216
+ const localVarHeaderParameter = {};
12217
+ const localVarQueryParameter = {};
12218
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12219
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12220
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12221
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12222
+ localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration);
12223
+ return {
12224
+ url: toPathString(localVarUrlObj),
12225
+ options: localVarRequestOptions,
12226
+ };
12227
+ }),
12228
+ /**
12229
+ *
12230
+ * @param {RequestEmailCodeBody} requestEmailCodeBody
12231
+ * @param {*} [options] Override http request option.
12232
+ * @throws {RequiredError}
12233
+ */
12234
+ requestPublicEmailVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
12235
+ // verify required parameter 'requestEmailCodeBody' is not null or undefined
12236
+ assertParamExists('requestPublicEmailVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
12237
+ const localVarPath = `/api/public-email/request-verification-code`;
12238
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12239
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12240
+ let baseOptions;
12241
+ if (configuration) {
12242
+ baseOptions = configuration.baseOptions;
12243
+ }
12244
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12245
+ const localVarHeaderParameter = {};
12246
+ const localVarQueryParameter = {};
12247
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12248
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12249
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12250
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12251
+ localVarRequestOptions.data = serializeDataIfNeeded(requestEmailCodeBody, localVarRequestOptions, configuration);
12252
+ return {
12253
+ url: toPathString(localVarUrlObj),
12254
+ options: localVarRequestOptions,
12255
+ };
12256
+ }),
12257
+ /**
12258
+ *
12259
+ * @param {VerifyEmailCodeBody} verifyEmailCodeBody
12260
+ * @param {*} [options] Override http request option.
12261
+ * @throws {RequiredError}
12262
+ */
12263
+ verifyCode: (verifyEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyEmailCodeBody_1, ...args_1], void 0, function* (verifyEmailCodeBody, options = {}) {
12264
+ // verify required parameter 'verifyEmailCodeBody' is not null or undefined
12265
+ assertParamExists('verifyCode', 'verifyEmailCodeBody', verifyEmailCodeBody);
12266
+ const localVarPath = `/api/public-email/verify-code`;
12267
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12268
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12269
+ let baseOptions;
12270
+ if (configuration) {
12271
+ baseOptions = configuration.baseOptions;
12272
+ }
12273
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12274
+ const localVarHeaderParameter = {};
12275
+ const localVarQueryParameter = {};
12276
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12277
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12278
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12279
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12280
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailCodeBody, localVarRequestOptions, configuration);
12281
+ return {
12282
+ url: toPathString(localVarUrlObj),
12283
+ options: localVarRequestOptions,
12284
+ };
12285
+ }),
12286
+ };
12287
+ };
12288
+ /**
12289
+ * PublicEmailApi - functional programming interface
12290
+ * @export
12291
+ */
12292
+ export const PublicEmailApiFp = function (configuration) {
12293
+ const localVarAxiosParamCreator = PublicEmailApiAxiosParamCreator(configuration);
12294
+ return {
12295
+ /**
12296
+ *
12297
+ * @param {EmailExistsRequestBody} emailExistsRequestBody
12298
+ * @param {*} [options] Override http request option.
12299
+ * @throws {RequiredError}
12300
+ */
12301
+ authEmailExists(emailExistsRequestBody, options) {
12302
+ return __awaiter(this, void 0, void 0, function* () {
12303
+ var _a, _b, _c;
12304
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authEmailExists(emailExistsRequestBody, options);
12305
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12306
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.authEmailExists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12307
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12308
+ });
12309
+ },
12310
+ /**
12311
+ *
12312
+ * @param {RequestEmailCodeBody} requestEmailCodeBody
12313
+ * @param {*} [options] Override http request option.
12314
+ * @throws {RequiredError}
12315
+ */
12316
+ requestPublicEmailVerificationCode(requestEmailCodeBody, options) {
12317
+ return __awaiter(this, void 0, void 0, function* () {
12318
+ var _a, _b, _c;
12319
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestPublicEmailVerificationCode(requestEmailCodeBody, options);
12320
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12321
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.requestPublicEmailVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12322
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12323
+ });
12324
+ },
12325
+ /**
12326
+ *
12327
+ * @param {VerifyEmailCodeBody} verifyEmailCodeBody
12328
+ * @param {*} [options] Override http request option.
12329
+ * @throws {RequiredError}
12330
+ */
12331
+ verifyCode(verifyEmailCodeBody, options) {
12332
+ return __awaiter(this, void 0, void 0, function* () {
12333
+ var _a, _b, _c;
12334
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyCode(verifyEmailCodeBody, options);
12335
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12336
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.verifyCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12337
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12338
+ });
12339
+ },
12340
+ };
12341
+ };
12342
+ /**
12343
+ * PublicEmailApi - factory interface
12344
+ * @export
12345
+ */
12346
+ export const PublicEmailApiFactory = function (configuration, basePath, axios) {
12347
+ const localVarFp = PublicEmailApiFp(configuration);
12348
+ return {
12349
+ /**
12350
+ *
12351
+ * @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
12352
+ * @param {*} [options] Override http request option.
12353
+ * @throws {RequiredError}
12354
+ */
12355
+ authEmailExists(requestParameters, options) {
12356
+ return localVarFp.authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(axios, basePath));
12357
+ },
12358
+ /**
12359
+ *
12360
+ * @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
12361
+ * @param {*} [options] Override http request option.
12362
+ * @throws {RequiredError}
12363
+ */
12364
+ requestPublicEmailVerificationCode(requestParameters, options) {
12365
+ return localVarFp.requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
12366
+ },
12367
+ /**
12368
+ *
12369
+ * @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
12370
+ * @param {*} [options] Override http request option.
12371
+ * @throws {RequiredError}
12372
+ */
12373
+ verifyCode(requestParameters, options) {
12374
+ return localVarFp.verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(axios, basePath));
12375
+ },
12376
+ };
12377
+ };
12378
+ /**
12379
+ * PublicEmailApi - object-oriented interface
12380
+ * @export
12381
+ * @class PublicEmailApi
12382
+ * @extends {BaseAPI}
12383
+ */
12384
+ export class PublicEmailApi extends BaseAPI {
12385
+ /**
12386
+ *
12387
+ * @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
12388
+ * @param {*} [options] Override http request option.
12389
+ * @throws {RequiredError}
12390
+ * @memberof PublicEmailApi
11803
12391
  */
11804
12392
  authEmailExists(requestParameters, options) {
11805
12393
  return PublicEmailApiFp(this.configuration).authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(this.axios, this.basePath));
11806
12394
  }
11807
12395
  /**
11808
12396
  *
11809
- * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
12397
+ * @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
11810
12398
  * @param {*} [options] Override http request option.
11811
12399
  * @throws {RequiredError}
11812
12400
  * @memberof PublicEmailApi
11813
12401
  */
11814
- requestVerificationCode(requestParameters, options) {
11815
- return PublicEmailApiFp(this.configuration).requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
12402
+ requestPublicEmailVerificationCode(requestParameters, options) {
12403
+ return PublicEmailApiFp(this.configuration).requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
11816
12404
  }
11817
12405
  /**
11818
12406
  *
@@ -12005,556 +12593,75 @@ export const SportsManagerApiFactory = function (configuration, basePath, axios)
12005
12593
  },
12006
12594
  /**
12007
12595
  * Supprime un sport (interdit si vérifié)
12008
- * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
12009
- * @param {*} [options] Override http request option.
12010
- * @throws {RequiredError}
12011
- */
12012
- deleteSport(requestParameters, options) {
12013
- return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
12014
- },
12015
- /**
12016
- * Met à jour un sport (interdit si vérifié)
12017
- * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
12018
- * @param {*} [options] Override http request option.
12019
- * @throws {RequiredError}
12020
- */
12021
- updateSport(requestParameters, options) {
12022
- return localVarFp.updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(axios, basePath));
12023
- },
12024
- };
12025
- };
12026
- /**
12027
- * SportsManagerApi - object-oriented interface
12028
- * @export
12029
- * @class SportsManagerApi
12030
- * @extends {BaseAPI}
12031
- */
12032
- export class SportsManagerApi extends BaseAPI {
12033
- /**
12034
- * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
12035
- * @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
12036
- * @param {*} [options] Override http request option.
12037
- * @throws {RequiredError}
12038
- * @memberof SportsManagerApi
12039
- */
12040
- createSport(requestParameters, options) {
12041
- return SportsManagerApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
12042
- }
12043
- /**
12044
- * Supprime un sport (interdit si vérifié)
12045
- * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
12046
- * @param {*} [options] Override http request option.
12047
- * @throws {RequiredError}
12048
- * @memberof SportsManagerApi
12049
- */
12050
- deleteSport(requestParameters, options) {
12051
- return SportsManagerApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
12052
- }
12053
- /**
12054
- * Met à jour un sport (interdit si vérifié)
12055
- * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
12056
- * @param {*} [options] Override http request option.
12057
- * @throws {RequiredError}
12058
- * @memberof SportsManagerApi
12059
- */
12060
- updateSport(requestParameters, options) {
12061
- return SportsManagerApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
12062
- }
12063
- }
12064
- /**
12065
- * SportsPublicApi - axios parameter creator
12066
- * @export
12067
- */
12068
- export const SportsPublicApiAxiosParamCreator = function (configuration) {
12069
- return {
12070
- /**
12071
- * Récupère tous les sports vérifiés, accessibles publiquement
12072
- * @param {*} [options] Override http request option.
12073
- * @throws {RequiredError}
12074
- */
12075
- getVerifiedSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
12076
- const localVarPath = `/api/sports/verified`;
12077
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12078
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12079
- let baseOptions;
12080
- if (configuration) {
12081
- baseOptions = configuration.baseOptions;
12082
- }
12083
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12084
- const localVarHeaderParameter = {};
12085
- const localVarQueryParameter = {};
12086
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12087
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12088
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12089
- return {
12090
- url: toPathString(localVarUrlObj),
12091
- options: localVarRequestOptions,
12092
- };
12093
- }),
12094
- };
12095
- };
12096
- /**
12097
- * SportsPublicApi - functional programming interface
12098
- * @export
12099
- */
12100
- export const SportsPublicApiFp = function (configuration) {
12101
- const localVarAxiosParamCreator = SportsPublicApiAxiosParamCreator(configuration);
12102
- return {
12103
- /**
12104
- * Récupère tous les sports vérifiés, accessibles publiquement
12105
- * @param {*} [options] Override http request option.
12106
- * @throws {RequiredError}
12107
- */
12108
- getVerifiedSports(options) {
12109
- return __awaiter(this, void 0, void 0, function* () {
12110
- var _a, _b, _c;
12111
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getVerifiedSports(options);
12112
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12113
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SportsPublicApi.getVerifiedSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12114
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12115
- });
12116
- },
12117
- };
12118
- };
12119
- /**
12120
- * SportsPublicApi - factory interface
12121
- * @export
12122
- */
12123
- export const SportsPublicApiFactory = function (configuration, basePath, axios) {
12124
- const localVarFp = SportsPublicApiFp(configuration);
12125
- return {
12126
- /**
12127
- * Récupère tous les sports vérifiés, accessibles publiquement
12128
- * @param {*} [options] Override http request option.
12129
- * @throws {RequiredError}
12130
- */
12131
- getVerifiedSports(options) {
12132
- return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
12133
- },
12134
- };
12135
- };
12136
- /**
12137
- * SportsPublicApi - object-oriented interface
12138
- * @export
12139
- * @class SportsPublicApi
12140
- * @extends {BaseAPI}
12141
- */
12142
- export class SportsPublicApi extends BaseAPI {
12143
- /**
12144
- * Récupère tous les sports vérifiés, accessibles publiquement
12145
- * @param {*} [options] Override http request option.
12146
- * @throws {RequiredError}
12147
- * @memberof SportsPublicApi
12148
- */
12149
- getVerifiedSports(options) {
12150
- return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
12151
- }
12152
- }
12153
- /**
12154
- * SubscriptionsManagerApi - axios parameter creator
12155
- * @export
12156
- */
12157
- export const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
12158
- return {
12159
- /**
12160
- * Supprime (archive) un plan par productId (manager)
12161
- * @param {string} productId
12162
- * @param {*} [options] Override http request option.
12163
- * @throws {RequiredError}
12164
- */
12165
- archivePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
12166
- // verify required parameter 'productId' is not null or undefined
12167
- assertParamExists('archivePlan', 'productId', productId);
12168
- const localVarPath = `/api/subscriptions/plans/{productId}/archive`
12169
- .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
12170
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12171
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12172
- let baseOptions;
12173
- if (configuration) {
12174
- baseOptions = configuration.baseOptions;
12175
- }
12176
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12177
- const localVarHeaderParameter = {};
12178
- const localVarQueryParameter = {};
12179
- // authentication bearerAuth required
12180
- // http bearer authentication required
12181
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12182
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12183
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12184
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12185
- return {
12186
- url: toPathString(localVarUrlObj),
12187
- options: localVarRequestOptions,
12188
- };
12189
- }),
12190
- /**
12191
- * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
12192
- * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
12193
- * @param {*} [options] Override http request option.
12194
- * @throws {RequiredError}
12195
- */
12196
- createPlan: (createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [createSubscriptionPlanRequest_1, ...args_1], void 0, function* (createSubscriptionPlanRequest, options = {}) {
12197
- // verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
12198
- assertParamExists('createPlan', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
12199
- const localVarPath = `/api/subscriptions/plans`;
12200
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12201
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12202
- let baseOptions;
12203
- if (configuration) {
12204
- baseOptions = configuration.baseOptions;
12205
- }
12206
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12207
- const localVarHeaderParameter = {};
12208
- const localVarQueryParameter = {};
12209
- // authentication bearerAuth required
12210
- // http bearer authentication required
12211
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12212
- localVarHeaderParameter['Content-Type'] = 'application/json';
12213
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12214
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12215
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12216
- localVarRequestOptions.data = serializeDataIfNeeded(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
12217
- return {
12218
- url: toPathString(localVarUrlObj),
12219
- options: localVarRequestOptions,
12220
- };
12221
- }),
12222
- /**
12223
- * Supprime un plan par productId (manager)
12224
- * @param {string} productId
12225
- * @param {*} [options] Override http request option.
12226
- * @throws {RequiredError}
12227
- */
12228
- deletePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
12229
- // verify required parameter 'productId' is not null or undefined
12230
- assertParamExists('deletePlan', 'productId', productId);
12231
- const localVarPath = `/api/subscriptions/plans/{productId}`
12232
- .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
12233
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12234
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12235
- let baseOptions;
12236
- if (configuration) {
12237
- baseOptions = configuration.baseOptions;
12238
- }
12239
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
12240
- const localVarHeaderParameter = {};
12241
- const localVarQueryParameter = {};
12242
- // authentication bearerAuth required
12243
- // http bearer authentication required
12244
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12245
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12246
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12247
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12248
- return {
12249
- url: toPathString(localVarUrlObj),
12250
- options: localVarRequestOptions,
12251
- };
12252
- }),
12253
- /**
12254
- * Met à jour un plan en annotant ses métadonnées et, si demandé, son prix (manager)
12255
- * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
12256
- * @param {*} [options] Override http request option.
12257
- * @throws {RequiredError}
12258
- */
12259
- updatePlan: (updateSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [updateSubscriptionPlanRequest_1, ...args_1], void 0, function* (updateSubscriptionPlanRequest, options = {}) {
12260
- // verify required parameter 'updateSubscriptionPlanRequest' is not null or undefined
12261
- assertParamExists('updatePlan', 'updateSubscriptionPlanRequest', updateSubscriptionPlanRequest);
12262
- const localVarPath = `/api/subscriptions/plans`;
12263
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12264
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12265
- let baseOptions;
12266
- if (configuration) {
12267
- baseOptions = configuration.baseOptions;
12268
- }
12269
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
12270
- const localVarHeaderParameter = {};
12271
- const localVarQueryParameter = {};
12272
- // authentication bearerAuth required
12273
- // http bearer authentication required
12274
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12275
- localVarHeaderParameter['Content-Type'] = 'application/json';
12276
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12277
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12278
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12279
- localVarRequestOptions.data = serializeDataIfNeeded(updateSubscriptionPlanRequest, localVarRequestOptions, configuration);
12280
- return {
12281
- url: toPathString(localVarUrlObj),
12282
- options: localVarRequestOptions,
12283
- };
12284
- }),
12285
- };
12286
- };
12287
- /**
12288
- * SubscriptionsManagerApi - functional programming interface
12289
- * @export
12290
- */
12291
- export const SubscriptionsManagerApiFp = function (configuration) {
12292
- const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration);
12293
- return {
12294
- /**
12295
- * Supprime (archive) un plan par productId (manager)
12296
- * @param {string} productId
12297
- * @param {*} [options] Override http request option.
12298
- * @throws {RequiredError}
12299
- */
12300
- archivePlan(productId, options) {
12301
- return __awaiter(this, void 0, void 0, function* () {
12302
- var _a, _b, _c;
12303
- const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePlan(productId, options);
12304
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12305
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.archivePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12306
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12307
- });
12308
- },
12309
- /**
12310
- * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
12311
- * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
12312
- * @param {*} [options] Override http request option.
12313
- * @throws {RequiredError}
12314
- */
12315
- createPlan(createSubscriptionPlanRequest, options) {
12316
- return __awaiter(this, void 0, void 0, function* () {
12317
- var _a, _b, _c;
12318
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createPlan(createSubscriptionPlanRequest, options);
12319
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12320
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.createPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12321
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12322
- });
12323
- },
12324
- /**
12325
- * Supprime un plan par productId (manager)
12326
- * @param {string} productId
12327
- * @param {*} [options] Override http request option.
12328
- * @throws {RequiredError}
12329
- */
12330
- deletePlan(productId, options) {
12331
- return __awaiter(this, void 0, void 0, function* () {
12332
- var _a, _b, _c;
12333
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePlan(productId, options);
12334
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12335
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.deletePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12336
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12337
- });
12338
- },
12339
- /**
12340
- * Met à jour un plan en annotant ses métadonnées et, si demandé, son prix (manager)
12341
- * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
12342
- * @param {*} [options] Override http request option.
12343
- * @throws {RequiredError}
12344
- */
12345
- updatePlan(updateSubscriptionPlanRequest, options) {
12346
- return __awaiter(this, void 0, void 0, function* () {
12347
- var _a, _b, _c;
12348
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlan(updateSubscriptionPlanRequest, options);
12349
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12350
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.updatePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12351
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12352
- });
12353
- },
12354
- };
12355
- };
12356
- /**
12357
- * SubscriptionsManagerApi - factory interface
12358
- * @export
12359
- */
12360
- export const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
12361
- const localVarFp = SubscriptionsManagerApiFp(configuration);
12362
- return {
12363
- /**
12364
- * Supprime (archive) un plan par productId (manager)
12365
- * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
12366
- * @param {*} [options] Override http request option.
12367
- * @throws {RequiredError}
12368
- */
12369
- archivePlan(requestParameters, options) {
12370
- return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
12371
- },
12372
- /**
12373
- * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
12374
- * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
12375
- * @param {*} [options] Override http request option.
12376
- * @throws {RequiredError}
12377
- */
12378
- createPlan(requestParameters, options) {
12379
- return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
12380
- },
12381
- /**
12382
- * Supprime un plan par productId (manager)
12383
- * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
12384
- * @param {*} [options] Override http request option.
12385
- * @throws {RequiredError}
12386
- */
12387
- deletePlan(requestParameters, options) {
12388
- return localVarFp.deletePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
12389
- },
12390
- /**
12391
- * Met à jour un plan en annotant ses métadonnées et, si demandé, son prix (manager)
12392
- * @param {SubscriptionsManagerApiUpdatePlanRequest} requestParameters Request parameters.
12393
- * @param {*} [options] Override http request option.
12394
- * @throws {RequiredError}
12395
- */
12396
- updatePlan(requestParameters, options) {
12397
- return localVarFp.updatePlan(requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
12398
- },
12399
- };
12400
- };
12401
- /**
12402
- * SubscriptionsManagerApi - object-oriented interface
12403
- * @export
12404
- * @class SubscriptionsManagerApi
12405
- * @extends {BaseAPI}
12406
- */
12407
- export class SubscriptionsManagerApi extends BaseAPI {
12408
- /**
12409
- * Supprime (archive) un plan par productId (manager)
12410
- * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
12411
- * @param {*} [options] Override http request option.
12412
- * @throws {RequiredError}
12413
- * @memberof SubscriptionsManagerApi
12414
- */
12415
- archivePlan(requestParameters, options) {
12416
- return SubscriptionsManagerApiFp(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
12417
- }
12418
- /**
12419
- * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
12420
- * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
12421
- * @param {*} [options] Override http request option.
12422
- * @throws {RequiredError}
12423
- * @memberof SubscriptionsManagerApi
12424
- */
12425
- createPlan(requestParameters, options) {
12426
- return SubscriptionsManagerApiFp(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
12427
- }
12428
- /**
12429
- * Supprime un plan par productId (manager)
12430
- * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
12431
- * @param {*} [options] Override http request option.
12432
- * @throws {RequiredError}
12433
- * @memberof SubscriptionsManagerApi
12434
- */
12435
- deletePlan(requestParameters, options) {
12436
- return SubscriptionsManagerApiFp(this.configuration).deletePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
12437
- }
12438
- /**
12439
- * Met à jour un plan en annotant ses métadonnées et, si demandé, son prix (manager)
12440
- * @param {SubscriptionsManagerApiUpdatePlanRequest} requestParameters Request parameters.
12441
- * @param {*} [options] Override http request option.
12442
- * @throws {RequiredError}
12443
- * @memberof SubscriptionsManagerApi
12444
- */
12445
- updatePlan(requestParameters, options) {
12446
- return SubscriptionsManagerApiFp(this.configuration).updatePlan(requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
12447
- }
12448
- }
12449
- /**
12450
- * SubscriptionsPublicApi - axios parameter creator
12451
- * @export
12452
- */
12453
- export const SubscriptionsPublicApiAxiosParamCreator = function (configuration) {
12454
- return {
12455
- /**
12456
- * Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
12457
- * @param {string} clubId
12458
- * @param {*} [options] Override http request option.
12459
- * @throws {RequiredError}
12460
- */
12461
- getPublicPlans: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
12462
- // verify required parameter 'clubId' is not null or undefined
12463
- assertParamExists('getPublicPlans', 'clubId', clubId);
12464
- const localVarPath = `/api/subscriptions/plans/{clubId}`
12465
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
12466
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12467
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12468
- let baseOptions;
12469
- if (configuration) {
12470
- baseOptions = configuration.baseOptions;
12471
- }
12472
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12473
- const localVarHeaderParameter = {};
12474
- const localVarQueryParameter = {};
12475
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12476
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12477
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12478
- return {
12479
- url: toPathString(localVarUrlObj),
12480
- options: localVarRequestOptions,
12481
- };
12482
- }),
12483
- };
12484
- };
12485
- /**
12486
- * SubscriptionsPublicApi - functional programming interface
12487
- * @export
12488
- */
12489
- export const SubscriptionsPublicApiFp = function (configuration) {
12490
- const localVarAxiosParamCreator = SubscriptionsPublicApiAxiosParamCreator(configuration);
12491
- return {
12492
- /**
12493
- * Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
12494
- * @param {string} clubId
12495
- * @param {*} [options] Override http request option.
12496
- * @throws {RequiredError}
12497
- */
12498
- getPublicPlans(clubId, options) {
12499
- return __awaiter(this, void 0, void 0, function* () {
12500
- var _a, _b, _c;
12501
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicPlans(clubId, options);
12502
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12503
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsPublicApi.getPublicPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12504
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12505
- });
12596
+ * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
12597
+ * @param {*} [options] Override http request option.
12598
+ * @throws {RequiredError}
12599
+ */
12600
+ deleteSport(requestParameters, options) {
12601
+ return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
12506
12602
  },
12507
- };
12508
- };
12509
- /**
12510
- * SubscriptionsPublicApi - factory interface
12511
- * @export
12512
- */
12513
- export const SubscriptionsPublicApiFactory = function (configuration, basePath, axios) {
12514
- const localVarFp = SubscriptionsPublicApiFp(configuration);
12515
- return {
12516
12603
  /**
12517
- * Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
12518
- * @param {SubscriptionsPublicApiGetPublicPlansRequest} requestParameters Request parameters.
12604
+ * Met à jour un sport (interdit si vérifié)
12605
+ * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
12519
12606
  * @param {*} [options] Override http request option.
12520
12607
  * @throws {RequiredError}
12521
12608
  */
12522
- getPublicPlans(requestParameters, options) {
12523
- return localVarFp.getPublicPlans(requestParameters.clubId, options).then((request) => request(axios, basePath));
12609
+ updateSport(requestParameters, options) {
12610
+ return localVarFp.updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(axios, basePath));
12524
12611
  },
12525
12612
  };
12526
12613
  };
12527
12614
  /**
12528
- * SubscriptionsPublicApi - object-oriented interface
12615
+ * SportsManagerApi - object-oriented interface
12529
12616
  * @export
12530
- * @class SubscriptionsPublicApi
12617
+ * @class SportsManagerApi
12531
12618
  * @extends {BaseAPI}
12532
12619
  */
12533
- export class SubscriptionsPublicApi extends BaseAPI {
12620
+ export class SportsManagerApi extends BaseAPI {
12534
12621
  /**
12535
- * Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
12536
- * @param {SubscriptionsPublicApiGetPublicPlansRequest} requestParameters Request parameters.
12622
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
12623
+ * @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
12537
12624
  * @param {*} [options] Override http request option.
12538
12625
  * @throws {RequiredError}
12539
- * @memberof SubscriptionsPublicApi
12626
+ * @memberof SportsManagerApi
12540
12627
  */
12541
- getPublicPlans(requestParameters, options) {
12542
- return SubscriptionsPublicApiFp(this.configuration).getPublicPlans(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
12628
+ createSport(requestParameters, options) {
12629
+ return SportsManagerApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
12630
+ }
12631
+ /**
12632
+ * Supprime un sport (interdit si vérifié)
12633
+ * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
12634
+ * @param {*} [options] Override http request option.
12635
+ * @throws {RequiredError}
12636
+ * @memberof SportsManagerApi
12637
+ */
12638
+ deleteSport(requestParameters, options) {
12639
+ return SportsManagerApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
12640
+ }
12641
+ /**
12642
+ * Met à jour un sport (interdit si vérifié)
12643
+ * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
12644
+ * @param {*} [options] Override http request option.
12645
+ * @throws {RequiredError}
12646
+ * @memberof SportsManagerApi
12647
+ */
12648
+ updateSport(requestParameters, options) {
12649
+ return SportsManagerApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
12543
12650
  }
12544
12651
  }
12545
12652
  /**
12546
- * SubscriptionsStaffApi - axios parameter creator
12653
+ * SportsPublicApi - axios parameter creator
12547
12654
  * @export
12548
12655
  */
12549
- export const SubscriptionsStaffApiAxiosParamCreator = function (configuration) {
12656
+ export const SportsPublicApiAxiosParamCreator = function (configuration) {
12550
12657
  return {
12551
12658
  /**
12552
- * Liste détaillée des plans (actifs/inactifs) du club courant (staff)
12659
+ * Récupère tous les sports vérifiés, accessibles publiquement
12553
12660
  * @param {*} [options] Override http request option.
12554
12661
  * @throws {RequiredError}
12555
12662
  */
12556
- getClubPlans: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
12557
- const localVarPath = `/api/subscriptions/plans`;
12663
+ getVerifiedSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
12664
+ const localVarPath = `/api/sports/verified`;
12558
12665
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12559
12666
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12560
12667
  let baseOptions;
@@ -12564,44 +12671,9 @@ export const SubscriptionsStaffApiAxiosParamCreator = function (configuration) {
12564
12671
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12565
12672
  const localVarHeaderParameter = {};
12566
12673
  const localVarQueryParameter = {};
12567
- // authentication bearerAuth required
12568
- // http bearer authentication required
12569
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12570
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12571
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12572
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12573
- return {
12574
- url: toPathString(localVarUrlObj),
12575
- options: localVarRequestOptions,
12576
- };
12577
- }),
12578
- /**
12579
- * Envoie une invitation d\'abonnement à un joueur (staff)
12580
- * @param {SendSubscriptionInvitationRequest} sendSubscriptionInvitationRequest
12581
- * @param {*} [options] Override http request option.
12582
- * @throws {RequiredError}
12583
- */
12584
- sendSubscriptionInvitation: (sendSubscriptionInvitationRequest_1, ...args_1) => __awaiter(this, [sendSubscriptionInvitationRequest_1, ...args_1], void 0, function* (sendSubscriptionInvitationRequest, options = {}) {
12585
- // verify required parameter 'sendSubscriptionInvitationRequest' is not null or undefined
12586
- assertParamExists('sendSubscriptionInvitation', 'sendSubscriptionInvitationRequest', sendSubscriptionInvitationRequest);
12587
- const localVarPath = `/api/subscriptions/invitations`;
12588
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12589
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12590
- let baseOptions;
12591
- if (configuration) {
12592
- baseOptions = configuration.baseOptions;
12593
- }
12594
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12595
- const localVarHeaderParameter = {};
12596
- const localVarQueryParameter = {};
12597
- // authentication bearerAuth required
12598
- // http bearer authentication required
12599
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12600
- localVarHeaderParameter['Content-Type'] = 'application/json';
12601
12674
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12602
12675
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12603
12676
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12604
- localVarRequestOptions.data = serializeDataIfNeeded(sendSubscriptionInvitationRequest, localVarRequestOptions, configuration);
12605
12677
  return {
12606
12678
  url: toPathString(localVarUrlObj),
12607
12679
  options: localVarRequestOptions,
@@ -12610,124 +12682,86 @@ export const SubscriptionsStaffApiAxiosParamCreator = function (configuration) {
12610
12682
  };
12611
12683
  };
12612
12684
  /**
12613
- * SubscriptionsStaffApi - functional programming interface
12685
+ * SportsPublicApi - functional programming interface
12614
12686
  * @export
12615
12687
  */
12616
- export const SubscriptionsStaffApiFp = function (configuration) {
12617
- const localVarAxiosParamCreator = SubscriptionsStaffApiAxiosParamCreator(configuration);
12688
+ export const SportsPublicApiFp = function (configuration) {
12689
+ const localVarAxiosParamCreator = SportsPublicApiAxiosParamCreator(configuration);
12618
12690
  return {
12619
12691
  /**
12620
- * Liste détaillée des plans (actifs/inactifs) du club courant (staff)
12621
- * @param {*} [options] Override http request option.
12622
- * @throws {RequiredError}
12623
- */
12624
- getClubPlans(options) {
12625
- return __awaiter(this, void 0, void 0, function* () {
12626
- var _a, _b, _c;
12627
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlans(options);
12628
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12629
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsStaffApi.getClubPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12630
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12631
- });
12632
- },
12633
- /**
12634
- * Envoie une invitation d\'abonnement à un joueur (staff)
12635
- * @param {SendSubscriptionInvitationRequest} sendSubscriptionInvitationRequest
12692
+ * Récupère tous les sports vérifiés, accessibles publiquement
12636
12693
  * @param {*} [options] Override http request option.
12637
12694
  * @throws {RequiredError}
12638
12695
  */
12639
- sendSubscriptionInvitation(sendSubscriptionInvitationRequest, options) {
12696
+ getVerifiedSports(options) {
12640
12697
  return __awaiter(this, void 0, void 0, function* () {
12641
12698
  var _a, _b, _c;
12642
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendSubscriptionInvitation(sendSubscriptionInvitationRequest, options);
12699
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getVerifiedSports(options);
12643
12700
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12644
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsStaffApi.sendSubscriptionInvitation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12701
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SportsPublicApi.getVerifiedSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12645
12702
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12646
12703
  });
12647
12704
  },
12648
12705
  };
12649
12706
  };
12650
12707
  /**
12651
- * SubscriptionsStaffApi - factory interface
12708
+ * SportsPublicApi - factory interface
12652
12709
  * @export
12653
12710
  */
12654
- export const SubscriptionsStaffApiFactory = function (configuration, basePath, axios) {
12655
- const localVarFp = SubscriptionsStaffApiFp(configuration);
12711
+ export const SportsPublicApiFactory = function (configuration, basePath, axios) {
12712
+ const localVarFp = SportsPublicApiFp(configuration);
12656
12713
  return {
12657
12714
  /**
12658
- * Liste détaillée des plans (actifs/inactifs) du club courant (staff)
12659
- * @param {*} [options] Override http request option.
12660
- * @throws {RequiredError}
12661
- */
12662
- getClubPlans(options) {
12663
- return localVarFp.getClubPlans(options).then((request) => request(axios, basePath));
12664
- },
12665
- /**
12666
- * Envoie une invitation d\'abonnement à un joueur (staff)
12667
- * @param {SubscriptionsStaffApiSendSubscriptionInvitationRequest} requestParameters Request parameters.
12715
+ * Récupère tous les sports vérifiés, accessibles publiquement
12668
12716
  * @param {*} [options] Override http request option.
12669
12717
  * @throws {RequiredError}
12670
12718
  */
12671
- sendSubscriptionInvitation(requestParameters, options) {
12672
- return localVarFp.sendSubscriptionInvitation(requestParameters.sendSubscriptionInvitationRequest, options).then((request) => request(axios, basePath));
12719
+ getVerifiedSports(options) {
12720
+ return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
12673
12721
  },
12674
12722
  };
12675
12723
  };
12676
12724
  /**
12677
- * SubscriptionsStaffApi - object-oriented interface
12725
+ * SportsPublicApi - object-oriented interface
12678
12726
  * @export
12679
- * @class SubscriptionsStaffApi
12727
+ * @class SportsPublicApi
12680
12728
  * @extends {BaseAPI}
12681
12729
  */
12682
- export class SubscriptionsStaffApi extends BaseAPI {
12683
- /**
12684
- * Liste détaillée des plans (actifs/inactifs) du club courant (staff)
12685
- * @param {*} [options] Override http request option.
12686
- * @throws {RequiredError}
12687
- * @memberof SubscriptionsStaffApi
12688
- */
12689
- getClubPlans(options) {
12690
- return SubscriptionsStaffApiFp(this.configuration).getClubPlans(options).then((request) => request(this.axios, this.basePath));
12691
- }
12730
+ export class SportsPublicApi extends BaseAPI {
12692
12731
  /**
12693
- * Envoie une invitation d\'abonnement à un joueur (staff)
12694
- * @param {SubscriptionsStaffApiSendSubscriptionInvitationRequest} requestParameters Request parameters.
12732
+ * Récupère tous les sports vérifiés, accessibles publiquement
12695
12733
  * @param {*} [options] Override http request option.
12696
12734
  * @throws {RequiredError}
12697
- * @memberof SubscriptionsStaffApi
12735
+ * @memberof SportsPublicApi
12698
12736
  */
12699
- sendSubscriptionInvitation(requestParameters, options) {
12700
- return SubscriptionsStaffApiFp(this.configuration).sendSubscriptionInvitation(requestParameters.sendSubscriptionInvitationRequest, options).then((request) => request(this.axios, this.basePath));
12737
+ getVerifiedSports(options) {
12738
+ return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
12701
12739
  }
12702
12740
  }
12703
12741
  /**
12704
- * SubscriptionsUserApi - axios parameter creator
12742
+ * SubscriptionsManagerApi - axios parameter creator
12705
12743
  * @export
12706
12744
  */
12707
- export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
12745
+ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
12708
12746
  return {
12709
12747
  /**
12710
- * Annuler un abonnement à la fin de la période (auth classique)
12711
- * @param {string} clubId
12712
- * @param {string} subscriptionId
12748
+ * Supprime (archive) un plan par productId (manager)
12749
+ * @param {string} productId
12713
12750
  * @param {*} [options] Override http request option.
12714
12751
  * @throws {RequiredError}
12715
12752
  */
12716
- cancel: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
12717
- // verify required parameter 'clubId' is not null or undefined
12718
- assertParamExists('cancel', 'clubId', clubId);
12719
- // verify required parameter 'subscriptionId' is not null or undefined
12720
- assertParamExists('cancel', 'subscriptionId', subscriptionId);
12721
- const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}`
12722
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
12723
- .replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
12753
+ archivePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
12754
+ // verify required parameter 'productId' is not null or undefined
12755
+ assertParamExists('archivePlan', 'productId', productId);
12756
+ const localVarPath = `/api/subscriptions/plans/{productId}/archive`
12757
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
12724
12758
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12725
12759
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12726
12760
  let baseOptions;
12727
12761
  if (configuration) {
12728
12762
  baseOptions = configuration.baseOptions;
12729
12763
  }
12730
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
12764
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12731
12765
  const localVarHeaderParameter = {};
12732
12766
  const localVarQueryParameter = {};
12733
12767
  // authentication bearerAuth required
@@ -12742,54 +12776,55 @@ export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
12742
12776
  };
12743
12777
  }),
12744
12778
  /**
12745
- * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
12779
+ * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
12780
+ * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
12746
12781
  * @param {*} [options] Override http request option.
12747
12782
  * @throws {RequiredError}
12748
12783
  */
12749
- mySubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
12750
- const localVarPath = `/api/subscriptions/me`;
12784
+ createPlan: (createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [createSubscriptionPlanRequest_1, ...args_1], void 0, function* (createSubscriptionPlanRequest, options = {}) {
12785
+ // verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
12786
+ assertParamExists('createPlan', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
12787
+ const localVarPath = `/api/subscriptions/plans`;
12751
12788
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12752
12789
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12753
12790
  let baseOptions;
12754
12791
  if (configuration) {
12755
12792
  baseOptions = configuration.baseOptions;
12756
12793
  }
12757
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12794
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12758
12795
  const localVarHeaderParameter = {};
12759
12796
  const localVarQueryParameter = {};
12760
12797
  // authentication bearerAuth required
12761
12798
  // http bearer authentication required
12762
12799
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12800
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12763
12801
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12764
12802
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12765
12803
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12804
+ localVarRequestOptions.data = serializeDataIfNeeded(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
12766
12805
  return {
12767
12806
  url: toPathString(localVarUrlObj),
12768
12807
  options: localVarRequestOptions,
12769
12808
  };
12770
12809
  }),
12771
12810
  /**
12772
- * Reprendre un abonnement annulé en fin de période (auth classique)
12773
- * @param {string} clubId
12774
- * @param {string} subscriptionId
12811
+ * Supprime un plan par productId (manager)
12812
+ * @param {string} productId
12775
12813
  * @param {*} [options] Override http request option.
12776
12814
  * @throws {RequiredError}
12777
12815
  */
12778
- resume: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
12779
- // verify required parameter 'clubId' is not null or undefined
12780
- assertParamExists('resume', 'clubId', clubId);
12781
- // verify required parameter 'subscriptionId' is not null or undefined
12782
- assertParamExists('resume', 'subscriptionId', subscriptionId);
12783
- const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}/resume`
12784
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
12785
- .replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
12816
+ deletePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
12817
+ // verify required parameter 'productId' is not null or undefined
12818
+ assertParamExists('deletePlan', 'productId', productId);
12819
+ const localVarPath = `/api/subscriptions/plans/{productId}`
12820
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
12786
12821
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12787
12822
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12788
12823
  let baseOptions;
12789
12824
  if (configuration) {
12790
12825
  baseOptions = configuration.baseOptions;
12791
12826
  }
12792
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12827
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
12793
12828
  const localVarHeaderParameter = {};
12794
12829
  const localVarQueryParameter = {};
12795
12830
  // authentication bearerAuth required
@@ -12804,22 +12839,22 @@ export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
12804
12839
  };
12805
12840
  }),
12806
12841
  /**
12807
- * S\'abonner à un plan (auth classique)
12808
- * @param {SubscribeRequestBody} subscribeRequestBody
12842
+ * Met à jour un plan en annotant ses métadonnées et, si demandé, son prix (manager)
12843
+ * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
12809
12844
  * @param {*} [options] Override http request option.
12810
12845
  * @throws {RequiredError}
12811
12846
  */
12812
- subscribe: (subscribeRequestBody_1, ...args_1) => __awaiter(this, [subscribeRequestBody_1, ...args_1], void 0, function* (subscribeRequestBody, options = {}) {
12813
- // verify required parameter 'subscribeRequestBody' is not null or undefined
12814
- assertParamExists('subscribe', 'subscribeRequestBody', subscribeRequestBody);
12815
- const localVarPath = `/api/subscriptions/subscribe`;
12847
+ updatePlan: (updateSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [updateSubscriptionPlanRequest_1, ...args_1], void 0, function* (updateSubscriptionPlanRequest, options = {}) {
12848
+ // verify required parameter 'updateSubscriptionPlanRequest' is not null or undefined
12849
+ assertParamExists('updatePlan', 'updateSubscriptionPlanRequest', updateSubscriptionPlanRequest);
12850
+ const localVarPath = `/api/subscriptions/plans`;
12816
12851
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12817
12852
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12818
12853
  let baseOptions;
12819
12854
  if (configuration) {
12820
12855
  baseOptions = configuration.baseOptions;
12821
12856
  }
12822
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12857
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
12823
12858
  const localVarHeaderParameter = {};
12824
12859
  const localVarQueryParameter = {};
12825
12860
  // authentication bearerAuth required
@@ -12829,7 +12864,7 @@ export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
12829
12864
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12830
12865
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12831
12866
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12832
- localVarRequestOptions.data = serializeDataIfNeeded(subscribeRequestBody, localVarRequestOptions, configuration);
12867
+ localVarRequestOptions.data = serializeDataIfNeeded(updateSubscriptionPlanRequest, localVarRequestOptions, configuration);
12833
12868
  return {
12834
12869
  url: toPathString(localVarUrlObj),
12835
12870
  options: localVarRequestOptions,
@@ -12838,185 +12873,184 @@ export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
12838
12873
  };
12839
12874
  };
12840
12875
  /**
12841
- * SubscriptionsUserApi - functional programming interface
12876
+ * SubscriptionsManagerApi - functional programming interface
12842
12877
  * @export
12843
- */
12844
- export const SubscriptionsUserApiFp = function (configuration) {
12845
- const localVarAxiosParamCreator = SubscriptionsUserApiAxiosParamCreator(configuration);
12878
+ */
12879
+ export const SubscriptionsManagerApiFp = function (configuration) {
12880
+ const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration);
12846
12881
  return {
12847
12882
  /**
12848
- * Annuler un abonnement à la fin de la période (auth classique)
12849
- * @param {string} clubId
12850
- * @param {string} subscriptionId
12883
+ * Supprime (archive) un plan par productId (manager)
12884
+ * @param {string} productId
12851
12885
  * @param {*} [options] Override http request option.
12852
12886
  * @throws {RequiredError}
12853
12887
  */
12854
- cancel(clubId, subscriptionId, options) {
12888
+ archivePlan(productId, options) {
12855
12889
  return __awaiter(this, void 0, void 0, function* () {
12856
12890
  var _a, _b, _c;
12857
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancel(clubId, subscriptionId, options);
12891
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePlan(productId, options);
12858
12892
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12859
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.cancel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12893
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.archivePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12860
12894
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12861
12895
  });
12862
12896
  },
12863
12897
  /**
12864
- * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
12898
+ * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
12899
+ * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
12865
12900
  * @param {*} [options] Override http request option.
12866
12901
  * @throws {RequiredError}
12867
12902
  */
12868
- mySubscriptions(options) {
12903
+ createPlan(createSubscriptionPlanRequest, options) {
12869
12904
  return __awaiter(this, void 0, void 0, function* () {
12870
12905
  var _a, _b, _c;
12871
- const localVarAxiosArgs = yield localVarAxiosParamCreator.mySubscriptions(options);
12906
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPlan(createSubscriptionPlanRequest, options);
12872
12907
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12873
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.mySubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12908
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.createPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12874
12909
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12875
12910
  });
12876
12911
  },
12877
12912
  /**
12878
- * Reprendre un abonnement annulé en fin de période (auth classique)
12879
- * @param {string} clubId
12880
- * @param {string} subscriptionId
12913
+ * Supprime un plan par productId (manager)
12914
+ * @param {string} productId
12881
12915
  * @param {*} [options] Override http request option.
12882
12916
  * @throws {RequiredError}
12883
12917
  */
12884
- resume(clubId, subscriptionId, options) {
12918
+ deletePlan(productId, options) {
12885
12919
  return __awaiter(this, void 0, void 0, function* () {
12886
12920
  var _a, _b, _c;
12887
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resume(clubId, subscriptionId, options);
12921
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePlan(productId, options);
12888
12922
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12889
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.resume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12923
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.deletePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12890
12924
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12891
12925
  });
12892
12926
  },
12893
12927
  /**
12894
- * S\'abonner à un plan (auth classique)
12895
- * @param {SubscribeRequestBody} subscribeRequestBody
12928
+ * Met à jour un plan en annotant ses métadonnées et, si demandé, son prix (manager)
12929
+ * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
12896
12930
  * @param {*} [options] Override http request option.
12897
12931
  * @throws {RequiredError}
12898
12932
  */
12899
- subscribe(subscribeRequestBody, options) {
12933
+ updatePlan(updateSubscriptionPlanRequest, options) {
12900
12934
  return __awaiter(this, void 0, void 0, function* () {
12901
12935
  var _a, _b, _c;
12902
- const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribe(subscribeRequestBody, options);
12936
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlan(updateSubscriptionPlanRequest, options);
12903
12937
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12904
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.subscribe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12938
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.updatePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12905
12939
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12906
12940
  });
12907
12941
  },
12908
12942
  };
12909
12943
  };
12910
12944
  /**
12911
- * SubscriptionsUserApi - factory interface
12945
+ * SubscriptionsManagerApi - factory interface
12912
12946
  * @export
12913
12947
  */
12914
- export const SubscriptionsUserApiFactory = function (configuration, basePath, axios) {
12915
- const localVarFp = SubscriptionsUserApiFp(configuration);
12948
+ export const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
12949
+ const localVarFp = SubscriptionsManagerApiFp(configuration);
12916
12950
  return {
12917
12951
  /**
12918
- * Annuler un abonnement à la fin de la période (auth classique)
12919
- * @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
12952
+ * Supprime (archive) un plan par productId (manager)
12953
+ * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
12920
12954
  * @param {*} [options] Override http request option.
12921
12955
  * @throws {RequiredError}
12922
12956
  */
12923
- cancel(requestParameters, options) {
12924
- return localVarFp.cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
12957
+ archivePlan(requestParameters, options) {
12958
+ return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
12925
12959
  },
12926
12960
  /**
12927
- * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
12961
+ * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
12962
+ * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
12928
12963
  * @param {*} [options] Override http request option.
12929
12964
  * @throws {RequiredError}
12930
12965
  */
12931
- mySubscriptions(options) {
12932
- return localVarFp.mySubscriptions(options).then((request) => request(axios, basePath));
12966
+ createPlan(requestParameters, options) {
12967
+ return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
12933
12968
  },
12934
12969
  /**
12935
- * Reprendre un abonnement annulé en fin de période (auth classique)
12936
- * @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
12970
+ * Supprime un plan par productId (manager)
12971
+ * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
12937
12972
  * @param {*} [options] Override http request option.
12938
12973
  * @throws {RequiredError}
12939
12974
  */
12940
- resume(requestParameters, options) {
12941
- return localVarFp.resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
12975
+ deletePlan(requestParameters, options) {
12976
+ return localVarFp.deletePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
12942
12977
  },
12943
12978
  /**
12944
- * S\'abonner à un plan (auth classique)
12945
- * @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
12979
+ * Met à jour un plan en annotant ses métadonnées et, si demandé, son prix (manager)
12980
+ * @param {SubscriptionsManagerApiUpdatePlanRequest} requestParameters Request parameters.
12946
12981
  * @param {*} [options] Override http request option.
12947
12982
  * @throws {RequiredError}
12948
12983
  */
12949
- subscribe(requestParameters, options) {
12950
- return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
12984
+ updatePlan(requestParameters, options) {
12985
+ return localVarFp.updatePlan(requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
12951
12986
  },
12952
12987
  };
12953
12988
  };
12954
12989
  /**
12955
- * SubscriptionsUserApi - object-oriented interface
12990
+ * SubscriptionsManagerApi - object-oriented interface
12956
12991
  * @export
12957
- * @class SubscriptionsUserApi
12992
+ * @class SubscriptionsManagerApi
12958
12993
  * @extends {BaseAPI}
12959
12994
  */
12960
- export class SubscriptionsUserApi extends BaseAPI {
12995
+ export class SubscriptionsManagerApi extends BaseAPI {
12961
12996
  /**
12962
- * Annuler un abonnement à la fin de la période (auth classique)
12963
- * @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
12997
+ * Supprime (archive) un plan par productId (manager)
12998
+ * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
12964
12999
  * @param {*} [options] Override http request option.
12965
13000
  * @throws {RequiredError}
12966
- * @memberof SubscriptionsUserApi
13001
+ * @memberof SubscriptionsManagerApi
12967
13002
  */
12968
- cancel(requestParameters, options) {
12969
- return SubscriptionsUserApiFp(this.configuration).cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
13003
+ archivePlan(requestParameters, options) {
13004
+ return SubscriptionsManagerApiFp(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
12970
13005
  }
12971
13006
  /**
12972
- * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
13007
+ * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
13008
+ * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
12973
13009
  * @param {*} [options] Override http request option.
12974
13010
  * @throws {RequiredError}
12975
- * @memberof SubscriptionsUserApi
13011
+ * @memberof SubscriptionsManagerApi
12976
13012
  */
12977
- mySubscriptions(options) {
12978
- return SubscriptionsUserApiFp(this.configuration).mySubscriptions(options).then((request) => request(this.axios, this.basePath));
13013
+ createPlan(requestParameters, options) {
13014
+ return SubscriptionsManagerApiFp(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
12979
13015
  }
12980
13016
  /**
12981
- * Reprendre un abonnement annulé en fin de période (auth classique)
12982
- * @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
13017
+ * Supprime un plan par productId (manager)
13018
+ * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
12983
13019
  * @param {*} [options] Override http request option.
12984
13020
  * @throws {RequiredError}
12985
- * @memberof SubscriptionsUserApi
13021
+ * @memberof SubscriptionsManagerApi
12986
13022
  */
12987
- resume(requestParameters, options) {
12988
- return SubscriptionsUserApiFp(this.configuration).resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
13023
+ deletePlan(requestParameters, options) {
13024
+ return SubscriptionsManagerApiFp(this.configuration).deletePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
12989
13025
  }
12990
13026
  /**
12991
- * S\'abonner à un plan (auth classique)
12992
- * @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
13027
+ * Met à jour un plan en annotant ses métadonnées et, si demandé, son prix (manager)
13028
+ * @param {SubscriptionsManagerApiUpdatePlanRequest} requestParameters Request parameters.
12993
13029
  * @param {*} [options] Override http request option.
12994
13030
  * @throws {RequiredError}
12995
- * @memberof SubscriptionsUserApi
13031
+ * @memberof SubscriptionsManagerApi
12996
13032
  */
12997
- subscribe(requestParameters, options) {
12998
- return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
13033
+ updatePlan(requestParameters, options) {
13034
+ return SubscriptionsManagerApiFp(this.configuration).updatePlan(requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
12999
13035
  }
13000
13036
  }
13001
13037
  /**
13002
- * SumUpApi - axios parameter creator
13038
+ * SubscriptionsPublicApi - axios parameter creator
13003
13039
  * @export
13004
13040
  */
13005
- export const SumUpApiAxiosParamCreator = function (configuration) {
13041
+ export const SubscriptionsPublicApiAxiosParamCreator = function (configuration) {
13006
13042
  return {
13007
13043
  /**
13008
- * OAuth callback for SumUp.
13009
- * @param {string} code
13010
- * @param {string} state
13044
+ * Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
13045
+ * @param {string} clubId
13011
13046
  * @param {*} [options] Override http request option.
13012
13047
  * @throws {RequiredError}
13013
13048
  */
13014
- sumupOauthCallback: (code_1, state_1, ...args_1) => __awaiter(this, [code_1, state_1, ...args_1], void 0, function* (code, state, options = {}) {
13015
- // verify required parameter 'code' is not null or undefined
13016
- assertParamExists('sumupOauthCallback', 'code', code);
13017
- // verify required parameter 'state' is not null or undefined
13018
- assertParamExists('sumupOauthCallback', 'state', state);
13019
- const localVarPath = `/api/sumup/oauth/callback`;
13049
+ getPublicPlans: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13050
+ // verify required parameter 'clubId' is not null or undefined
13051
+ assertParamExists('getPublicPlans', 'clubId', clubId);
13052
+ const localVarPath = `/api/subscriptions/plans/{clubId}`
13053
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13020
13054
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13021
13055
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13022
13056
  let baseOptions;
@@ -13026,12 +13060,6 @@ export const SumUpApiAxiosParamCreator = function (configuration) {
13026
13060
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13027
13061
  const localVarHeaderParameter = {};
13028
13062
  const localVarQueryParameter = {};
13029
- if (code !== undefined) {
13030
- localVarQueryParameter['code'] = code;
13031
- }
13032
- if (state !== undefined) {
13033
- localVarQueryParameter['state'] = state;
13034
- }
13035
13063
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13036
13064
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13037
13065
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -13043,90 +13071,85 @@ export const SumUpApiAxiosParamCreator = function (configuration) {
13043
13071
  };
13044
13072
  };
13045
13073
  /**
13046
- * SumUpApi - functional programming interface
13074
+ * SubscriptionsPublicApi - functional programming interface
13047
13075
  * @export
13048
13076
  */
13049
- export const SumUpApiFp = function (configuration) {
13050
- const localVarAxiosParamCreator = SumUpApiAxiosParamCreator(configuration);
13077
+ export const SubscriptionsPublicApiFp = function (configuration) {
13078
+ const localVarAxiosParamCreator = SubscriptionsPublicApiAxiosParamCreator(configuration);
13051
13079
  return {
13052
13080
  /**
13053
- * OAuth callback for SumUp.
13054
- * @param {string} code
13055
- * @param {string} state
13081
+ * Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
13082
+ * @param {string} clubId
13056
13083
  * @param {*} [options] Override http request option.
13057
13084
  * @throws {RequiredError}
13058
13085
  */
13059
- sumupOauthCallback(code, state, options) {
13086
+ getPublicPlans(clubId, options) {
13060
13087
  return __awaiter(this, void 0, void 0, function* () {
13061
13088
  var _a, _b, _c;
13062
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sumupOauthCallback(code, state, options);
13089
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicPlans(clubId, options);
13063
13090
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13064
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpApi.sumupOauthCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13091
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsPublicApi.getPublicPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13065
13092
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13066
13093
  });
13067
13094
  },
13068
13095
  };
13069
13096
  };
13070
13097
  /**
13071
- * SumUpApi - factory interface
13098
+ * SubscriptionsPublicApi - factory interface
13072
13099
  * @export
13073
13100
  */
13074
- export const SumUpApiFactory = function (configuration, basePath, axios) {
13075
- const localVarFp = SumUpApiFp(configuration);
13101
+ export const SubscriptionsPublicApiFactory = function (configuration, basePath, axios) {
13102
+ const localVarFp = SubscriptionsPublicApiFp(configuration);
13076
13103
  return {
13077
13104
  /**
13078
- * OAuth callback for SumUp.
13079
- * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
13105
+ * Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
13106
+ * @param {SubscriptionsPublicApiGetPublicPlansRequest} requestParameters Request parameters.
13080
13107
  * @param {*} [options] Override http request option.
13081
13108
  * @throws {RequiredError}
13082
13109
  */
13083
- sumupOauthCallback(requestParameters, options) {
13084
- return localVarFp.sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(axios, basePath));
13110
+ getPublicPlans(requestParameters, options) {
13111
+ return localVarFp.getPublicPlans(requestParameters.clubId, options).then((request) => request(axios, basePath));
13085
13112
  },
13086
13113
  };
13087
13114
  };
13088
13115
  /**
13089
- * SumUpApi - object-oriented interface
13116
+ * SubscriptionsPublicApi - object-oriented interface
13090
13117
  * @export
13091
- * @class SumUpApi
13118
+ * @class SubscriptionsPublicApi
13092
13119
  * @extends {BaseAPI}
13093
13120
  */
13094
- export class SumUpApi extends BaseAPI {
13121
+ export class SubscriptionsPublicApi extends BaseAPI {
13095
13122
  /**
13096
- * OAuth callback for SumUp.
13097
- * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
13123
+ * Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
13124
+ * @param {SubscriptionsPublicApiGetPublicPlansRequest} requestParameters Request parameters.
13098
13125
  * @param {*} [options] Override http request option.
13099
13126
  * @throws {RequiredError}
13100
- * @memberof SumUpApi
13127
+ * @memberof SubscriptionsPublicApi
13101
13128
  */
13102
- sumupOauthCallback(requestParameters, options) {
13103
- return SumUpApiFp(this.configuration).sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
13129
+ getPublicPlans(requestParameters, options) {
13130
+ return SubscriptionsPublicApiFp(this.configuration).getPublicPlans(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13104
13131
  }
13105
13132
  }
13106
13133
  /**
13107
- * SumUpManagerApi - axios parameter creator
13134
+ * SubscriptionsStaffApi - axios parameter creator
13108
13135
  * @export
13109
13136
  */
13110
- export const SumUpManagerApiAxiosParamCreator = function (configuration) {
13137
+ export const SubscriptionsStaffApiAxiosParamCreator = function (configuration) {
13111
13138
  return {
13112
13139
  /**
13113
- * Disconnect SumUp account for a club.
13114
- * @param {string} clubId
13140
+ * Liste détaillée des plans (actifs/inactifs) du club courant (staff)
13115
13141
  * @param {*} [options] Override http request option.
13116
13142
  * @throws {RequiredError}
13117
13143
  */
13118
- disconnectSumup: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13119
- // verify required parameter 'clubId' is not null or undefined
13120
- assertParamExists('disconnectSumup', 'clubId', clubId);
13121
- const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
13122
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13144
+ getClubPlans: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
13145
+ const localVarPath = `/api/subscriptions/plans`;
13123
13146
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13124
13147
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13125
13148
  let baseOptions;
13126
13149
  if (configuration) {
13127
13150
  baseOptions = configuration.baseOptions;
13128
13151
  }
13129
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13152
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13130
13153
  const localVarHeaderParameter = {};
13131
13154
  const localVarQueryParameter = {};
13132
13155
  // authentication bearerAuth required
@@ -13141,54 +13164,158 @@ export const SumUpManagerApiAxiosParamCreator = function (configuration) {
13141
13164
  };
13142
13165
  }),
13143
13166
  /**
13144
- * Start SumUp OAuth connection for a club.
13145
- * @param {string} clubId
13167
+ * Envoie une invitation d\'abonnement à un joueur (staff)
13168
+ * @param {SendSubscriptionInvitationRequest} sendSubscriptionInvitationRequest
13146
13169
  * @param {*} [options] Override http request option.
13147
13170
  * @throws {RequiredError}
13148
13171
  */
13149
- getSumupConnectUrl: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13150
- // verify required parameter 'clubId' is not null or undefined
13151
- assertParamExists('getSumupConnectUrl', 'clubId', clubId);
13152
- const localVarPath = `/api/clubs/{clubId}/sumup/connect`
13153
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13172
+ sendSubscriptionInvitation: (sendSubscriptionInvitationRequest_1, ...args_1) => __awaiter(this, [sendSubscriptionInvitationRequest_1, ...args_1], void 0, function* (sendSubscriptionInvitationRequest, options = {}) {
13173
+ // verify required parameter 'sendSubscriptionInvitationRequest' is not null or undefined
13174
+ assertParamExists('sendSubscriptionInvitation', 'sendSubscriptionInvitationRequest', sendSubscriptionInvitationRequest);
13175
+ const localVarPath = `/api/subscriptions/invitations`;
13154
13176
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13155
13177
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13156
13178
  let baseOptions;
13157
13179
  if (configuration) {
13158
13180
  baseOptions = configuration.baseOptions;
13159
13181
  }
13160
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13182
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13161
13183
  const localVarHeaderParameter = {};
13162
13184
  const localVarQueryParameter = {};
13163
13185
  // authentication bearerAuth required
13164
13186
  // http bearer authentication required
13165
13187
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13188
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13166
13189
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13167
13190
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13168
13191
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13192
+ localVarRequestOptions.data = serializeDataIfNeeded(sendSubscriptionInvitationRequest, localVarRequestOptions, configuration);
13169
13193
  return {
13170
13194
  url: toPathString(localVarUrlObj),
13171
13195
  options: localVarRequestOptions,
13172
13196
  };
13173
13197
  }),
13198
+ };
13199
+ };
13200
+ /**
13201
+ * SubscriptionsStaffApi - functional programming interface
13202
+ * @export
13203
+ */
13204
+ export const SubscriptionsStaffApiFp = function (configuration) {
13205
+ const localVarAxiosParamCreator = SubscriptionsStaffApiAxiosParamCreator(configuration);
13206
+ return {
13207
+ /**
13208
+ * Liste détaillée des plans (actifs/inactifs) du club courant (staff)
13209
+ * @param {*} [options] Override http request option.
13210
+ * @throws {RequiredError}
13211
+ */
13212
+ getClubPlans(options) {
13213
+ return __awaiter(this, void 0, void 0, function* () {
13214
+ var _a, _b, _c;
13215
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlans(options);
13216
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13217
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsStaffApi.getClubPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13218
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13219
+ });
13220
+ },
13221
+ /**
13222
+ * Envoie une invitation d\'abonnement à un joueur (staff)
13223
+ * @param {SendSubscriptionInvitationRequest} sendSubscriptionInvitationRequest
13224
+ * @param {*} [options] Override http request option.
13225
+ * @throws {RequiredError}
13226
+ */
13227
+ sendSubscriptionInvitation(sendSubscriptionInvitationRequest, options) {
13228
+ return __awaiter(this, void 0, void 0, function* () {
13229
+ var _a, _b, _c;
13230
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendSubscriptionInvitation(sendSubscriptionInvitationRequest, options);
13231
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13232
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsStaffApi.sendSubscriptionInvitation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13233
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13234
+ });
13235
+ },
13236
+ };
13237
+ };
13238
+ /**
13239
+ * SubscriptionsStaffApi - factory interface
13240
+ * @export
13241
+ */
13242
+ export const SubscriptionsStaffApiFactory = function (configuration, basePath, axios) {
13243
+ const localVarFp = SubscriptionsStaffApiFp(configuration);
13244
+ return {
13245
+ /**
13246
+ * Liste détaillée des plans (actifs/inactifs) du club courant (staff)
13247
+ * @param {*} [options] Override http request option.
13248
+ * @throws {RequiredError}
13249
+ */
13250
+ getClubPlans(options) {
13251
+ return localVarFp.getClubPlans(options).then((request) => request(axios, basePath));
13252
+ },
13253
+ /**
13254
+ * Envoie une invitation d\'abonnement à un joueur (staff)
13255
+ * @param {SubscriptionsStaffApiSendSubscriptionInvitationRequest} requestParameters Request parameters.
13256
+ * @param {*} [options] Override http request option.
13257
+ * @throws {RequiredError}
13258
+ */
13259
+ sendSubscriptionInvitation(requestParameters, options) {
13260
+ return localVarFp.sendSubscriptionInvitation(requestParameters.sendSubscriptionInvitationRequest, options).then((request) => request(axios, basePath));
13261
+ },
13262
+ };
13263
+ };
13264
+ /**
13265
+ * SubscriptionsStaffApi - object-oriented interface
13266
+ * @export
13267
+ * @class SubscriptionsStaffApi
13268
+ * @extends {BaseAPI}
13269
+ */
13270
+ export class SubscriptionsStaffApi extends BaseAPI {
13271
+ /**
13272
+ * Liste détaillée des plans (actifs/inactifs) du club courant (staff)
13273
+ * @param {*} [options] Override http request option.
13274
+ * @throws {RequiredError}
13275
+ * @memberof SubscriptionsStaffApi
13276
+ */
13277
+ getClubPlans(options) {
13278
+ return SubscriptionsStaffApiFp(this.configuration).getClubPlans(options).then((request) => request(this.axios, this.basePath));
13279
+ }
13280
+ /**
13281
+ * Envoie une invitation d\'abonnement à un joueur (staff)
13282
+ * @param {SubscriptionsStaffApiSendSubscriptionInvitationRequest} requestParameters Request parameters.
13283
+ * @param {*} [options] Override http request option.
13284
+ * @throws {RequiredError}
13285
+ * @memberof SubscriptionsStaffApi
13286
+ */
13287
+ sendSubscriptionInvitation(requestParameters, options) {
13288
+ return SubscriptionsStaffApiFp(this.configuration).sendSubscriptionInvitation(requestParameters.sendSubscriptionInvitationRequest, options).then((request) => request(this.axios, this.basePath));
13289
+ }
13290
+ }
13291
+ /**
13292
+ * SubscriptionsUserApi - axios parameter creator
13293
+ * @export
13294
+ */
13295
+ export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
13296
+ return {
13174
13297
  /**
13175
- * Get SumUp connection status for a club.
13298
+ * Annuler un abonnement à la fin de la période (auth classique)
13176
13299
  * @param {string} clubId
13300
+ * @param {string} subscriptionId
13177
13301
  * @param {*} [options] Override http request option.
13178
13302
  * @throws {RequiredError}
13179
13303
  */
13180
- getSumupStatus: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13304
+ cancel: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
13181
13305
  // verify required parameter 'clubId' is not null or undefined
13182
- assertParamExists('getSumupStatus', 'clubId', clubId);
13183
- const localVarPath = `/api/clubs/{clubId}/sumup/status`
13184
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13306
+ assertParamExists('cancel', 'clubId', clubId);
13307
+ // verify required parameter 'subscriptionId' is not null or undefined
13308
+ assertParamExists('cancel', 'subscriptionId', subscriptionId);
13309
+ const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}`
13310
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
13311
+ .replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
13185
13312
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13186
13313
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13187
13314
  let baseOptions;
13188
13315
  if (configuration) {
13189
13316
  baseOptions = configuration.baseOptions;
13190
13317
  }
13191
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13318
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
13192
13319
  const localVarHeaderParameter = {};
13193
13320
  const localVarQueryParameter = {};
13194
13321
  // authentication bearerAuth required
@@ -13203,16 +13330,12 @@ export const SumUpManagerApiAxiosParamCreator = function (configuration) {
13203
13330
  };
13204
13331
  }),
13205
13332
  /**
13206
- * List SumUp readers for a club.
13207
- * @param {string} clubId
13333
+ * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
13208
13334
  * @param {*} [options] Override http request option.
13209
13335
  * @throws {RequiredError}
13210
13336
  */
13211
- listSumupReaders: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13212
- // verify required parameter 'clubId' is not null or undefined
13213
- assertParamExists('listSumupReaders', 'clubId', clubId);
13214
- const localVarPath = `/api/clubs/{clubId}/sumup/readers`
13215
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13337
+ mySubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
13338
+ const localVarPath = `/api/subscriptions/me`;
13216
13339
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13217
13340
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13218
13341
  let baseOptions;
@@ -13234,19 +13357,20 @@ export const SumUpManagerApiAxiosParamCreator = function (configuration) {
13234
13357
  };
13235
13358
  }),
13236
13359
  /**
13237
- * Pair a SumUp reader with a club.
13360
+ * Reprendre un abonnement annulé en fin de période (auth classique)
13238
13361
  * @param {string} clubId
13239
- * @param {SumupPairReaderRequest} sumupPairReaderRequest
13362
+ * @param {string} subscriptionId
13240
13363
  * @param {*} [options] Override http request option.
13241
13364
  * @throws {RequiredError}
13242
13365
  */
13243
- pairSumupReader: (clubId_1, sumupPairReaderRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupPairReaderRequest_1, ...args_1], void 0, function* (clubId, sumupPairReaderRequest, options = {}) {
13366
+ resume: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
13244
13367
  // verify required parameter 'clubId' is not null or undefined
13245
- assertParamExists('pairSumupReader', 'clubId', clubId);
13246
- // verify required parameter 'sumupPairReaderRequest' is not null or undefined
13247
- assertParamExists('pairSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest);
13248
- const localVarPath = `/api/clubs/{clubId}/sumup/readers/pair`
13249
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13368
+ assertParamExists('resume', 'clubId', clubId);
13369
+ // verify required parameter 'subscriptionId' is not null or undefined
13370
+ assertParamExists('resume', 'subscriptionId', subscriptionId);
13371
+ const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}/resume`
13372
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
13373
+ .replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
13250
13374
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13251
13375
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13252
13376
  let baseOptions;
@@ -13259,31 +13383,24 @@ export const SumUpManagerApiAxiosParamCreator = function (configuration) {
13259
13383
  // authentication bearerAuth required
13260
13384
  // http bearer authentication required
13261
13385
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13262
- localVarHeaderParameter['Content-Type'] = 'application/json';
13263
13386
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13264
13387
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13265
13388
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13266
- localVarRequestOptions.data = serializeDataIfNeeded(sumupPairReaderRequest, localVarRequestOptions, configuration);
13267
13389
  return {
13268
13390
  url: toPathString(localVarUrlObj),
13269
13391
  options: localVarRequestOptions,
13270
13392
  };
13271
13393
  }),
13272
13394
  /**
13273
- * Select a SumUp reader for a club.
13274
- * @param {string} clubId
13275
- * @param {string} readerId
13395
+ * S\'abonner à un plan (auth classique)
13396
+ * @param {SubscribeRequestBody} subscribeRequestBody
13276
13397
  * @param {*} [options] Override http request option.
13277
13398
  * @throws {RequiredError}
13278
13399
  */
13279
- selectSumupReader: (clubId_1, readerId_1, ...args_1) => __awaiter(this, [clubId_1, readerId_1, ...args_1], void 0, function* (clubId, readerId, options = {}) {
13280
- // verify required parameter 'clubId' is not null or undefined
13281
- assertParamExists('selectSumupReader', 'clubId', clubId);
13282
- // verify required parameter 'readerId' is not null or undefined
13283
- assertParamExists('selectSumupReader', 'readerId', readerId);
13284
- const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
13285
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
13286
- .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
13400
+ subscribe: (subscribeRequestBody_1, ...args_1) => __awaiter(this, [subscribeRequestBody_1, ...args_1], void 0, function* (subscribeRequestBody, options = {}) {
13401
+ // verify required parameter 'subscribeRequestBody' is not null or undefined
13402
+ assertParamExists('subscribe', 'subscribeRequestBody', subscribeRequestBody);
13403
+ const localVarPath = `/api/subscriptions/subscribe`;
13287
13404
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13288
13405
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13289
13406
  let baseOptions;
@@ -13296,9 +13413,11 @@ export const SumUpManagerApiAxiosParamCreator = function (configuration) {
13296
13413
  // authentication bearerAuth required
13297
13414
  // http bearer authentication required
13298
13415
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13416
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13299
13417
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13300
13418
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13301
13419
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13420
+ localVarRequestOptions.data = serializeDataIfNeeded(subscribeRequestBody, localVarRequestOptions, configuration);
13302
13421
  return {
13303
13422
  url: toPathString(localVarUrlObj),
13304
13423
  options: localVarRequestOptions,
@@ -13307,235 +13426,164 @@ export const SumUpManagerApiAxiosParamCreator = function (configuration) {
13307
13426
  };
13308
13427
  };
13309
13428
  /**
13310
- * SumUpManagerApi - functional programming interface
13429
+ * SubscriptionsUserApi - functional programming interface
13311
13430
  * @export
13312
13431
  */
13313
- export const SumUpManagerApiFp = function (configuration) {
13314
- const localVarAxiosParamCreator = SumUpManagerApiAxiosParamCreator(configuration);
13432
+ export const SubscriptionsUserApiFp = function (configuration) {
13433
+ const localVarAxiosParamCreator = SubscriptionsUserApiAxiosParamCreator(configuration);
13315
13434
  return {
13316
13435
  /**
13317
- * Disconnect SumUp account for a club.
13318
- * @param {string} clubId
13319
- * @param {*} [options] Override http request option.
13320
- * @throws {RequiredError}
13321
- */
13322
- disconnectSumup(clubId, options) {
13323
- return __awaiter(this, void 0, void 0, function* () {
13324
- var _a, _b, _c;
13325
- const localVarAxiosArgs = yield localVarAxiosParamCreator.disconnectSumup(clubId, options);
13326
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13327
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.disconnectSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13328
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13329
- });
13330
- },
13331
- /**
13332
- * Start SumUp OAuth connection for a club.
13333
- * @param {string} clubId
13334
- * @param {*} [options] Override http request option.
13335
- * @throws {RequiredError}
13336
- */
13337
- getSumupConnectUrl(clubId, options) {
13338
- return __awaiter(this, void 0, void 0, function* () {
13339
- var _a, _b, _c;
13340
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
13341
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13342
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.getSumupConnectUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13343
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13344
- });
13345
- },
13346
- /**
13347
- * Get SumUp connection status for a club.
13436
+ * Annuler un abonnement à la fin de la période (auth classique)
13348
13437
  * @param {string} clubId
13438
+ * @param {string} subscriptionId
13349
13439
  * @param {*} [options] Override http request option.
13350
13440
  * @throws {RequiredError}
13351
13441
  */
13352
- getSumupStatus(clubId, options) {
13442
+ cancel(clubId, subscriptionId, options) {
13353
13443
  return __awaiter(this, void 0, void 0, function* () {
13354
13444
  var _a, _b, _c;
13355
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupStatus(clubId, options);
13445
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancel(clubId, subscriptionId, options);
13356
13446
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13357
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.getSumupStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13447
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.cancel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13358
13448
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13359
13449
  });
13360
13450
  },
13361
13451
  /**
13362
- * List SumUp readers for a club.
13363
- * @param {string} clubId
13452
+ * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
13364
13453
  * @param {*} [options] Override http request option.
13365
13454
  * @throws {RequiredError}
13366
13455
  */
13367
- listSumupReaders(clubId, options) {
13456
+ mySubscriptions(options) {
13368
13457
  return __awaiter(this, void 0, void 0, function* () {
13369
13458
  var _a, _b, _c;
13370
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listSumupReaders(clubId, options);
13459
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.mySubscriptions(options);
13371
13460
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13372
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.listSumupReaders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13461
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.mySubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13373
13462
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13374
13463
  });
13375
13464
  },
13376
13465
  /**
13377
- * Pair a SumUp reader with a club.
13466
+ * Reprendre un abonnement annulé en fin de période (auth classique)
13378
13467
  * @param {string} clubId
13379
- * @param {SumupPairReaderRequest} sumupPairReaderRequest
13468
+ * @param {string} subscriptionId
13380
13469
  * @param {*} [options] Override http request option.
13381
13470
  * @throws {RequiredError}
13382
13471
  */
13383
- pairSumupReader(clubId, sumupPairReaderRequest, options) {
13472
+ resume(clubId, subscriptionId, options) {
13384
13473
  return __awaiter(this, void 0, void 0, function* () {
13385
13474
  var _a, _b, _c;
13386
- const localVarAxiosArgs = yield localVarAxiosParamCreator.pairSumupReader(clubId, sumupPairReaderRequest, options);
13475
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resume(clubId, subscriptionId, options);
13387
13476
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13388
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.pairSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13477
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.resume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13389
13478
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13390
13479
  });
13391
13480
  },
13392
13481
  /**
13393
- * Select a SumUp reader for a club.
13394
- * @param {string} clubId
13395
- * @param {string} readerId
13482
+ * S\'abonner à un plan (auth classique)
13483
+ * @param {SubscribeRequestBody} subscribeRequestBody
13396
13484
  * @param {*} [options] Override http request option.
13397
13485
  * @throws {RequiredError}
13398
13486
  */
13399
- selectSumupReader(clubId, readerId, options) {
13487
+ subscribe(subscribeRequestBody, options) {
13400
13488
  return __awaiter(this, void 0, void 0, function* () {
13401
13489
  var _a, _b, _c;
13402
- const localVarAxiosArgs = yield localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
13490
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribe(subscribeRequestBody, options);
13403
13491
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13404
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.selectSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13492
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.subscribe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13405
13493
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13406
13494
  });
13407
13495
  },
13408
13496
  };
13409
13497
  };
13410
13498
  /**
13411
- * SumUpManagerApi - factory interface
13499
+ * SubscriptionsUserApi - factory interface
13412
13500
  * @export
13413
13501
  */
13414
- export const SumUpManagerApiFactory = function (configuration, basePath, axios) {
13415
- const localVarFp = SumUpManagerApiFp(configuration);
13502
+ export const SubscriptionsUserApiFactory = function (configuration, basePath, axios) {
13503
+ const localVarFp = SubscriptionsUserApiFp(configuration);
13416
13504
  return {
13417
13505
  /**
13418
- * Disconnect SumUp account for a club.
13419
- * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
13420
- * @param {*} [options] Override http request option.
13421
- * @throws {RequiredError}
13422
- */
13423
- disconnectSumup(requestParameters, options) {
13424
- return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
13425
- },
13426
- /**
13427
- * Start SumUp OAuth connection for a club.
13428
- * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
13429
- * @param {*} [options] Override http request option.
13430
- * @throws {RequiredError}
13431
- */
13432
- getSumupConnectUrl(requestParameters, options) {
13433
- return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
13434
- },
13435
- /**
13436
- * Get SumUp connection status for a club.
13437
- * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
13506
+ * Annuler un abonnement à la fin de la période (auth classique)
13507
+ * @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
13438
13508
  * @param {*} [options] Override http request option.
13439
13509
  * @throws {RequiredError}
13440
13510
  */
13441
- getSumupStatus(requestParameters, options) {
13442
- return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
13511
+ cancel(requestParameters, options) {
13512
+ return localVarFp.cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
13443
13513
  },
13444
13514
  /**
13445
- * List SumUp readers for a club.
13446
- * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
13515
+ * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
13447
13516
  * @param {*} [options] Override http request option.
13448
13517
  * @throws {RequiredError}
13449
13518
  */
13450
- listSumupReaders(requestParameters, options) {
13451
- return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
13519
+ mySubscriptions(options) {
13520
+ return localVarFp.mySubscriptions(options).then((request) => request(axios, basePath));
13452
13521
  },
13453
13522
  /**
13454
- * Pair a SumUp reader with a club.
13455
- * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
13523
+ * Reprendre un abonnement annulé en fin de période (auth classique)
13524
+ * @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
13456
13525
  * @param {*} [options] Override http request option.
13457
13526
  * @throws {RequiredError}
13458
13527
  */
13459
- pairSumupReader(requestParameters, options) {
13460
- return localVarFp.pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
13528
+ resume(requestParameters, options) {
13529
+ return localVarFp.resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
13461
13530
  },
13462
13531
  /**
13463
- * Select a SumUp reader for a club.
13464
- * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
13532
+ * S\'abonner à un plan (auth classique)
13533
+ * @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
13465
13534
  * @param {*} [options] Override http request option.
13466
13535
  * @throws {RequiredError}
13467
13536
  */
13468
- selectSumupReader(requestParameters, options) {
13469
- return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
13537
+ subscribe(requestParameters, options) {
13538
+ return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
13470
13539
  },
13471
13540
  };
13472
13541
  };
13473
13542
  /**
13474
- * SumUpManagerApi - object-oriented interface
13543
+ * SubscriptionsUserApi - object-oriented interface
13475
13544
  * @export
13476
- * @class SumUpManagerApi
13545
+ * @class SubscriptionsUserApi
13477
13546
  * @extends {BaseAPI}
13478
13547
  */
13479
- export class SumUpManagerApi extends BaseAPI {
13480
- /**
13481
- * Disconnect SumUp account for a club.
13482
- * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
13483
- * @param {*} [options] Override http request option.
13484
- * @throws {RequiredError}
13485
- * @memberof SumUpManagerApi
13486
- */
13487
- disconnectSumup(requestParameters, options) {
13488
- return SumUpManagerApiFp(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13489
- }
13490
- /**
13491
- * Start SumUp OAuth connection for a club.
13492
- * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
13493
- * @param {*} [options] Override http request option.
13494
- * @throws {RequiredError}
13495
- * @memberof SumUpManagerApi
13496
- */
13497
- getSumupConnectUrl(requestParameters, options) {
13498
- return SumUpManagerApiFp(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13499
- }
13548
+ export class SubscriptionsUserApi extends BaseAPI {
13500
13549
  /**
13501
- * Get SumUp connection status for a club.
13502
- * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
13550
+ * Annuler un abonnement à la fin de la période (auth classique)
13551
+ * @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
13503
13552
  * @param {*} [options] Override http request option.
13504
13553
  * @throws {RequiredError}
13505
- * @memberof SumUpManagerApi
13554
+ * @memberof SubscriptionsUserApi
13506
13555
  */
13507
- getSumupStatus(requestParameters, options) {
13508
- return SumUpManagerApiFp(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13556
+ cancel(requestParameters, options) {
13557
+ return SubscriptionsUserApiFp(this.configuration).cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
13509
13558
  }
13510
13559
  /**
13511
- * List SumUp readers for a club.
13512
- * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
13560
+ * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
13513
13561
  * @param {*} [options] Override http request option.
13514
13562
  * @throws {RequiredError}
13515
- * @memberof SumUpManagerApi
13563
+ * @memberof SubscriptionsUserApi
13516
13564
  */
13517
- listSumupReaders(requestParameters, options) {
13518
- return SumUpManagerApiFp(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13565
+ mySubscriptions(options) {
13566
+ return SubscriptionsUserApiFp(this.configuration).mySubscriptions(options).then((request) => request(this.axios, this.basePath));
13519
13567
  }
13520
13568
  /**
13521
- * Pair a SumUp reader with a club.
13522
- * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
13569
+ * Reprendre un abonnement annulé en fin de période (auth classique)
13570
+ * @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
13523
13571
  * @param {*} [options] Override http request option.
13524
13572
  * @throws {RequiredError}
13525
- * @memberof SumUpManagerApi
13573
+ * @memberof SubscriptionsUserApi
13526
13574
  */
13527
- pairSumupReader(requestParameters, options) {
13528
- return SumUpManagerApiFp(this.configuration).pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
13575
+ resume(requestParameters, options) {
13576
+ return SubscriptionsUserApiFp(this.configuration).resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
13529
13577
  }
13530
13578
  /**
13531
- * Select a SumUp reader for a club.
13532
- * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
13579
+ * S\'abonner à un plan (auth classique)
13580
+ * @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
13533
13581
  * @param {*} [options] Override http request option.
13534
13582
  * @throws {RequiredError}
13535
- * @memberof SumUpManagerApi
13583
+ * @memberof SubscriptionsUserApi
13536
13584
  */
13537
- selectSumupReader(requestParameters, options) {
13538
- return SumUpManagerApiFp(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
13585
+ subscribe(requestParameters, options) {
13586
+ return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
13539
13587
  }
13540
13588
  }
13541
13589
  /**
@@ -14272,6 +14320,47 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14272
14320
  options: localVarRequestOptions,
14273
14321
  };
14274
14322
  }),
14323
+ /**
14324
+ *
14325
+ * @param {number} [limit]
14326
+ * @param {number} [skip]
14327
+ * @param {any} [includeRead]
14328
+ * @param {*} [options] Override http request option.
14329
+ * @throws {RequiredError}
14330
+ */
14331
+ getUserNotifications: (limit_1, skip_1, includeRead_1, ...args_1) => __awaiter(this, [limit_1, skip_1, includeRead_1, ...args_1], void 0, function* (limit, skip, includeRead, options = {}) {
14332
+ const localVarPath = `/api/users/me/notifications`;
14333
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14334
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14335
+ let baseOptions;
14336
+ if (configuration) {
14337
+ baseOptions = configuration.baseOptions;
14338
+ }
14339
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14340
+ const localVarHeaderParameter = {};
14341
+ const localVarQueryParameter = {};
14342
+ // authentication bearerAuth required
14343
+ // http bearer authentication required
14344
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14345
+ if (limit !== undefined) {
14346
+ localVarQueryParameter['limit'] = limit;
14347
+ }
14348
+ if (skip !== undefined) {
14349
+ localVarQueryParameter['skip'] = skip;
14350
+ }
14351
+ if (includeRead !== undefined) {
14352
+ for (const [key, value] of Object.entries(includeRead)) {
14353
+ localVarQueryParameter[key] = value;
14354
+ }
14355
+ }
14356
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14357
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14358
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14359
+ return {
14360
+ url: toPathString(localVarUrlObj),
14361
+ options: localVarRequestOptions,
14362
+ };
14363
+ }),
14275
14364
  /**
14276
14365
  *
14277
14366
  * @param {string} id
@@ -14459,6 +14548,38 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14459
14548
  options: localVarRequestOptions,
14460
14549
  };
14461
14550
  }),
14551
+ /**
14552
+ *
14553
+ * @param {MarkNotificationsReadRequest} markNotificationsReadRequest
14554
+ * @param {*} [options] Override http request option.
14555
+ * @throws {RequiredError}
14556
+ */
14557
+ markNotificationsRead: (markNotificationsReadRequest_1, ...args_1) => __awaiter(this, [markNotificationsReadRequest_1, ...args_1], void 0, function* (markNotificationsReadRequest, options = {}) {
14558
+ // verify required parameter 'markNotificationsReadRequest' is not null or undefined
14559
+ assertParamExists('markNotificationsRead', 'markNotificationsReadRequest', markNotificationsReadRequest);
14560
+ const localVarPath = `/api/users/me/notifications/read`;
14561
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14562
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14563
+ let baseOptions;
14564
+ if (configuration) {
14565
+ baseOptions = configuration.baseOptions;
14566
+ }
14567
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14568
+ const localVarHeaderParameter = {};
14569
+ const localVarQueryParameter = {};
14570
+ // authentication bearerAuth required
14571
+ // http bearer authentication required
14572
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14573
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14574
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14575
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14576
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14577
+ localVarRequestOptions.data = serializeDataIfNeeded(markNotificationsReadRequest, localVarRequestOptions, configuration);
14578
+ return {
14579
+ url: toPathString(localVarUrlObj),
14580
+ options: localVarRequestOptions,
14581
+ };
14582
+ }),
14462
14583
  /**
14463
14584
  *
14464
14585
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -14594,15 +14715,47 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14594
14715
  if (configuration) {
14595
14716
  baseOptions = configuration.baseOptions;
14596
14717
  }
14597
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
14718
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
14719
+ const localVarHeaderParameter = {};
14720
+ const localVarQueryParameter = {};
14721
+ // authentication bearerAuth required
14722
+ // http bearer authentication required
14723
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14724
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14725
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14726
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14727
+ return {
14728
+ url: toPathString(localVarUrlObj),
14729
+ options: localVarRequestOptions,
14730
+ };
14731
+ }),
14732
+ /**
14733
+ *
14734
+ * @param {AddOrganizationRequest} addOrganizationRequest
14735
+ * @param {*} [options] Override http request option.
14736
+ * @throws {RequiredError}
14737
+ */
14738
+ removeOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
14739
+ // verify required parameter 'addOrganizationRequest' is not null or undefined
14740
+ assertParamExists('removeOrganization', 'addOrganizationRequest', addOrganizationRequest);
14741
+ const localVarPath = `/api/users/me/remove-organization`;
14742
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14743
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14744
+ let baseOptions;
14745
+ if (configuration) {
14746
+ baseOptions = configuration.baseOptions;
14747
+ }
14748
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14598
14749
  const localVarHeaderParameter = {};
14599
14750
  const localVarQueryParameter = {};
14600
14751
  // authentication bearerAuth required
14601
14752
  // http bearer authentication required
14602
14753
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14754
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14603
14755
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14604
14756
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14605
14757
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14758
+ localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration);
14606
14759
  return {
14607
14760
  url: toPathString(localVarUrlObj),
14608
14761
  options: localVarRequestOptions,
@@ -14610,14 +14763,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14610
14763
  }),
14611
14764
  /**
14612
14765
  *
14613
- * @param {AddOrganizationRequest} addOrganizationRequest
14614
14766
  * @param {*} [options] Override http request option.
14615
14767
  * @throws {RequiredError}
14616
14768
  */
14617
- removeOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
14618
- // verify required parameter 'addOrganizationRequest' is not null or undefined
14619
- assertParamExists('removeOrganization', 'addOrganizationRequest', addOrganizationRequest);
14620
- const localVarPath = `/api/users/me/remove-organization`;
14769
+ requestEmailVerification: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
14770
+ const localVarPath = `/api/users/me/request-email-verification`;
14621
14771
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14622
14772
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14623
14773
  let baseOptions;
@@ -14630,11 +14780,9 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14630
14780
  // authentication bearerAuth required
14631
14781
  // http bearer authentication required
14632
14782
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14633
- localVarHeaderParameter['Content-Type'] = 'application/json';
14634
14783
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14635
14784
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14636
14785
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14637
- localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration);
14638
14786
  return {
14639
14787
  url: toPathString(localVarUrlObj),
14640
14788
  options: localVarRequestOptions,
@@ -14642,11 +14790,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14642
14790
  }),
14643
14791
  /**
14644
14792
  *
14793
+ * @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
14645
14794
  * @param {*} [options] Override http request option.
14646
14795
  * @throws {RequiredError}
14647
14796
  */
14648
- requestEmailVerification: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
14649
- const localVarPath = `/api/users/me/request-email-verification`;
14797
+ requestOrganizationCode: (requestOrganizationEmailCodeBody_1, ...args_1) => __awaiter(this, [requestOrganizationEmailCodeBody_1, ...args_1], void 0, function* (requestOrganizationEmailCodeBody, options = {}) {
14798
+ // verify required parameter 'requestOrganizationEmailCodeBody' is not null or undefined
14799
+ assertParamExists('requestOrganizationCode', 'requestOrganizationEmailCodeBody', requestOrganizationEmailCodeBody);
14800
+ const localVarPath = `/api/users/me/request-organization-code`;
14650
14801
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14651
14802
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14652
14803
  let baseOptions;
@@ -14659,9 +14810,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14659
14810
  // authentication bearerAuth required
14660
14811
  // http bearer authentication required
14661
14812
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14813
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14662
14814
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14663
14815
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14664
14816
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14817
+ localVarRequestOptions.data = serializeDataIfNeeded(requestOrganizationEmailCodeBody, localVarRequestOptions, configuration);
14665
14818
  return {
14666
14819
  url: toPathString(localVarUrlObj),
14667
14820
  options: localVarRequestOptions,
@@ -14725,6 +14878,51 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14725
14878
  options: localVarRequestOptions,
14726
14879
  };
14727
14880
  }),
14881
+ /**
14882
+ *
14883
+ * @param {string} q
14884
+ * @param {number} [page]
14885
+ * @param {number} [limit]
14886
+ * @param {Array<string>} [excludeIds]
14887
+ * @param {*} [options] Override http request option.
14888
+ * @throws {RequiredError}
14889
+ */
14890
+ searchPartner: (q_1, page_1, limit_1, excludeIds_1, ...args_1) => __awaiter(this, [q_1, page_1, limit_1, excludeIds_1, ...args_1], void 0, function* (q, page, limit, excludeIds, options = {}) {
14891
+ // verify required parameter 'q' is not null or undefined
14892
+ assertParamExists('searchPartner', 'q', q);
14893
+ const localVarPath = `/api/users/searchPartner`;
14894
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14895
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14896
+ let baseOptions;
14897
+ if (configuration) {
14898
+ baseOptions = configuration.baseOptions;
14899
+ }
14900
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14901
+ const localVarHeaderParameter = {};
14902
+ const localVarQueryParameter = {};
14903
+ // authentication bearerAuth required
14904
+ // http bearer authentication required
14905
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14906
+ if (q !== undefined) {
14907
+ localVarQueryParameter['q'] = q;
14908
+ }
14909
+ if (page !== undefined) {
14910
+ localVarQueryParameter['page'] = page;
14911
+ }
14912
+ if (limit !== undefined) {
14913
+ localVarQueryParameter['limit'] = limit;
14914
+ }
14915
+ if (excludeIds) {
14916
+ localVarQueryParameter['excludeIds'] = excludeIds;
14917
+ }
14918
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14919
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14920
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14921
+ return {
14922
+ url: toPathString(localVarUrlObj),
14923
+ options: localVarRequestOptions,
14924
+ };
14925
+ }),
14728
14926
  /**
14729
14927
  *
14730
14928
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -14940,6 +15138,38 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14940
15138
  options: localVarRequestOptions,
14941
15139
  };
14942
15140
  }),
15141
+ /**
15142
+ *
15143
+ * @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
15144
+ * @param {*} [options] Override http request option.
15145
+ * @throws {RequiredError}
15146
+ */
15147
+ verifyOrganizationCode: (verifyOrganizationEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyOrganizationEmailCodeBody_1, ...args_1], void 0, function* (verifyOrganizationEmailCodeBody, options = {}) {
15148
+ // verify required parameter 'verifyOrganizationEmailCodeBody' is not null or undefined
15149
+ assertParamExists('verifyOrganizationCode', 'verifyOrganizationEmailCodeBody', verifyOrganizationEmailCodeBody);
15150
+ const localVarPath = `/api/users/me/verify-organization-code`;
15151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15152
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15153
+ let baseOptions;
15154
+ if (configuration) {
15155
+ baseOptions = configuration.baseOptions;
15156
+ }
15157
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15158
+ const localVarHeaderParameter = {};
15159
+ const localVarQueryParameter = {};
15160
+ // authentication bearerAuth required
15161
+ // http bearer authentication required
15162
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
15163
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15164
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15165
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15166
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15167
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyOrganizationEmailCodeBody, localVarRequestOptions, configuration);
15168
+ return {
15169
+ url: toPathString(localVarUrlObj),
15170
+ options: localVarRequestOptions,
15171
+ };
15172
+ }),
14943
15173
  };
14944
15174
  };
14945
15175
  /**
@@ -15251,6 +15481,23 @@ export const UsersApiFp = function (configuration) {
15251
15481
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15252
15482
  });
15253
15483
  },
15484
+ /**
15485
+ *
15486
+ * @param {number} [limit]
15487
+ * @param {number} [skip]
15488
+ * @param {any} [includeRead]
15489
+ * @param {*} [options] Override http request option.
15490
+ * @throws {RequiredError}
15491
+ */
15492
+ getUserNotifications(limit, skip, includeRead, options) {
15493
+ return __awaiter(this, void 0, void 0, function* () {
15494
+ var _a, _b, _c;
15495
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserNotifications(limit, skip, includeRead, options);
15496
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15497
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserNotifications']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15498
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15499
+ });
15500
+ },
15254
15501
  /**
15255
15502
  *
15256
15503
  * @param {string} id
@@ -15335,6 +15582,21 @@ export const UsersApiFp = function (configuration) {
15335
15582
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15336
15583
  });
15337
15584
  },
15585
+ /**
15586
+ *
15587
+ * @param {MarkNotificationsReadRequest} markNotificationsReadRequest
15588
+ * @param {*} [options] Override http request option.
15589
+ * @throws {RequiredError}
15590
+ */
15591
+ markNotificationsRead(markNotificationsReadRequest, options) {
15592
+ return __awaiter(this, void 0, void 0, function* () {
15593
+ var _a, _b, _c;
15594
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.markNotificationsRead(markNotificationsReadRequest, options);
15595
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15596
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.markNotificationsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15597
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15598
+ });
15599
+ },
15338
15600
  /**
15339
15601
  *
15340
15602
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -15439,6 +15701,21 @@ export const UsersApiFp = function (configuration) {
15439
15701
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15440
15702
  });
15441
15703
  },
15704
+ /**
15705
+ *
15706
+ * @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
15707
+ * @param {*} [options] Override http request option.
15708
+ * @throws {RequiredError}
15709
+ */
15710
+ requestOrganizationCode(requestOrganizationEmailCodeBody, options) {
15711
+ return __awaiter(this, void 0, void 0, function* () {
15712
+ var _a, _b, _c;
15713
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestOrganizationCode(requestOrganizationEmailCodeBody, options);
15714
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15715
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.requestOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15716
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15717
+ });
15718
+ },
15442
15719
  /**
15443
15720
  *
15444
15721
  * @param {PasswordResetRequestBody} passwordResetRequestBody
@@ -15469,6 +15746,24 @@ export const UsersApiFp = function (configuration) {
15469
15746
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15470
15747
  });
15471
15748
  },
15749
+ /**
15750
+ *
15751
+ * @param {string} q
15752
+ * @param {number} [page]
15753
+ * @param {number} [limit]
15754
+ * @param {Array<string>} [excludeIds]
15755
+ * @param {*} [options] Override http request option.
15756
+ * @throws {RequiredError}
15757
+ */
15758
+ searchPartner(q, page, limit, excludeIds, options) {
15759
+ return __awaiter(this, void 0, void 0, function* () {
15760
+ var _a, _b, _c;
15761
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.searchPartner(q, page, limit, excludeIds, options);
15762
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15763
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.searchPartner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15764
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15765
+ });
15766
+ },
15472
15767
  /**
15473
15768
  *
15474
15769
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -15574,6 +15869,21 @@ export const UsersApiFp = function (configuration) {
15574
15869
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15575
15870
  });
15576
15871
  },
15872
+ /**
15873
+ *
15874
+ * @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
15875
+ * @param {*} [options] Override http request option.
15876
+ * @throws {RequiredError}
15877
+ */
15878
+ verifyOrganizationCode(verifyOrganizationEmailCodeBody, options) {
15879
+ return __awaiter(this, void 0, void 0, function* () {
15880
+ var _a, _b, _c;
15881
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyOrganizationCode(verifyOrganizationEmailCodeBody, options);
15882
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15883
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.verifyOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15884
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15885
+ });
15886
+ },
15577
15887
  };
15578
15888
  };
15579
15889
  /**
@@ -15755,6 +16065,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
15755
16065
  getUserEvents(requestParameters = {}, options) {
15756
16066
  return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
15757
16067
  },
16068
+ /**
16069
+ *
16070
+ * @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
16071
+ * @param {*} [options] Override http request option.
16072
+ * @throws {RequiredError}
16073
+ */
16074
+ getUserNotifications(requestParameters = {}, options) {
16075
+ return localVarFp.getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(axios, basePath));
16076
+ },
15758
16077
  /**
15759
16078
  *
15760
16079
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -15800,6 +16119,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
15800
16119
  loginClubMember(requestParameters, options) {
15801
16120
  return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
15802
16121
  },
16122
+ /**
16123
+ *
16124
+ * @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
16125
+ * @param {*} [options] Override http request option.
16126
+ * @throws {RequiredError}
16127
+ */
16128
+ markNotificationsRead(requestParameters, options) {
16129
+ return localVarFp.markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(axios, basePath));
16130
+ },
15803
16131
  /**
15804
16132
  *
15805
16133
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
@@ -15862,6 +16190,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
15862
16190
  requestEmailVerification(options) {
15863
16191
  return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
15864
16192
  },
16193
+ /**
16194
+ *
16195
+ * @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
16196
+ * @param {*} [options] Override http request option.
16197
+ * @throws {RequiredError}
16198
+ */
16199
+ requestOrganizationCode(requestParameters, options) {
16200
+ return localVarFp.requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
16201
+ },
15865
16202
  /**
15866
16203
  *
15867
16204
  * @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
@@ -15880,6 +16217,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
15880
16217
  resetPassword(requestParameters, options) {
15881
16218
  return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
15882
16219
  },
16220
+ /**
16221
+ *
16222
+ * @param {UsersApiSearchPartnerRequest} requestParameters Request parameters.
16223
+ * @param {*} [options] Override http request option.
16224
+ * @throws {RequiredError}
16225
+ */
16226
+ searchPartner(requestParameters, options) {
16227
+ return localVarFp.searchPartner(requestParameters.q, requestParameters.page, requestParameters.limit, requestParameters.excludeIds, options).then((request) => request(axios, basePath));
16228
+ },
15883
16229
  /**
15884
16230
  *
15885
16231
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
@@ -15943,6 +16289,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
15943
16289
  verifyOrganization(requestParameters, options) {
15944
16290
  return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
15945
16291
  },
16292
+ /**
16293
+ *
16294
+ * @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
16295
+ * @param {*} [options] Override http request option.
16296
+ * @throws {RequiredError}
16297
+ */
16298
+ verifyOrganizationCode(requestParameters, options) {
16299
+ return localVarFp.verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
16300
+ },
15946
16301
  };
15947
16302
  };
15948
16303
  /**
@@ -16144,6 +16499,16 @@ export class UsersApi extends BaseAPI {
16144
16499
  getUserEvents(requestParameters = {}, options) {
16145
16500
  return UsersApiFp(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
16146
16501
  }
16502
+ /**
16503
+ *
16504
+ * @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
16505
+ * @param {*} [options] Override http request option.
16506
+ * @throws {RequiredError}
16507
+ * @memberof UsersApi
16508
+ */
16509
+ getUserNotifications(requestParameters = {}, options) {
16510
+ return UsersApiFp(this.configuration).getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(this.axios, this.basePath));
16511
+ }
16147
16512
  /**
16148
16513
  *
16149
16514
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -16194,6 +16559,16 @@ export class UsersApi extends BaseAPI {
16194
16559
  loginClubMember(requestParameters, options) {
16195
16560
  return UsersApiFp(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
16196
16561
  }
16562
+ /**
16563
+ *
16564
+ * @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
16565
+ * @param {*} [options] Override http request option.
16566
+ * @throws {RequiredError}
16567
+ * @memberof UsersApi
16568
+ */
16569
+ markNotificationsRead(requestParameters, options) {
16570
+ return UsersApiFp(this.configuration).markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(this.axios, this.basePath));
16571
+ }
16197
16572
  /**
16198
16573
  *
16199
16574
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
@@ -16263,6 +16638,16 @@ export class UsersApi extends BaseAPI {
16263
16638
  requestEmailVerification(options) {
16264
16639
  return UsersApiFp(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
16265
16640
  }
16641
+ /**
16642
+ *
16643
+ * @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
16644
+ * @param {*} [options] Override http request option.
16645
+ * @throws {RequiredError}
16646
+ * @memberof UsersApi
16647
+ */
16648
+ requestOrganizationCode(requestParameters, options) {
16649
+ return UsersApiFp(this.configuration).requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
16650
+ }
16266
16651
  /**
16267
16652
  *
16268
16653
  * @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
@@ -16283,6 +16668,16 @@ export class UsersApi extends BaseAPI {
16283
16668
  resetPassword(requestParameters, options) {
16284
16669
  return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
16285
16670
  }
16671
+ /**
16672
+ *
16673
+ * @param {UsersApiSearchPartnerRequest} requestParameters Request parameters.
16674
+ * @param {*} [options] Override http request option.
16675
+ * @throws {RequiredError}
16676
+ * @memberof UsersApi
16677
+ */
16678
+ searchPartner(requestParameters, options) {
16679
+ return UsersApiFp(this.configuration).searchPartner(requestParameters.q, requestParameters.page, requestParameters.limit, requestParameters.excludeIds, options).then((request) => request(this.axios, this.basePath));
16680
+ }
16286
16681
  /**
16287
16682
  *
16288
16683
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
@@ -16353,6 +16748,16 @@ export class UsersApi extends BaseAPI {
16353
16748
  verifyOrganization(requestParameters, options) {
16354
16749
  return UsersApiFp(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
16355
16750
  }
16751
+ /**
16752
+ *
16753
+ * @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
16754
+ * @param {*} [options] Override http request option.
16755
+ * @throws {RequiredError}
16756
+ * @memberof UsersApi
16757
+ */
16758
+ verifyOrganizationCode(requestParameters, options) {
16759
+ return UsersApiFp(this.configuration).verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
16760
+ }
16356
16761
  }
16357
16762
  /**
16358
16763
  * WaitListApi - axios parameter creator
@@ -17072,6 +17477,37 @@ export const WaitListStaffApiAxiosParamCreator = function (configuration) {
17072
17477
  options: localVarRequestOptions,
17073
17478
  };
17074
17479
  }),
17480
+ /**
17481
+ * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
17482
+ * @param {string} eventId
17483
+ * @param {*} [options] Override http request option.
17484
+ * @throws {RequiredError}
17485
+ */
17486
+ getEventWaitListPlayers: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
17487
+ // verify required parameter 'eventId' is not null or undefined
17488
+ assertParamExists('getEventWaitListPlayers', 'eventId', eventId);
17489
+ const localVarPath = `/api/waitlist/event/{eventId}/players`
17490
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
17491
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17492
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17493
+ let baseOptions;
17494
+ if (configuration) {
17495
+ baseOptions = configuration.baseOptions;
17496
+ }
17497
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
17498
+ const localVarHeaderParameter = {};
17499
+ const localVarQueryParameter = {};
17500
+ // authentication bearerAuth required
17501
+ // http bearer authentication required
17502
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
17503
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17504
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17505
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17506
+ return {
17507
+ url: toPathString(localVarUrlObj),
17508
+ options: localVarRequestOptions,
17509
+ };
17510
+ }),
17075
17511
  /**
17076
17512
  * Forcer le traitement de la waitlist pour un booking (staff only)
17077
17513
  * @param {string} bookingId
@@ -17219,6 +17655,21 @@ export const WaitListStaffApiFp = function (configuration) {
17219
17655
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17220
17656
  });
17221
17657
  },
17658
+ /**
17659
+ * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
17660
+ * @param {string} eventId
17661
+ * @param {*} [options] Override http request option.
17662
+ * @throws {RequiredError}
17663
+ */
17664
+ getEventWaitListPlayers(eventId, options) {
17665
+ return __awaiter(this, void 0, void 0, function* () {
17666
+ var _a, _b, _c;
17667
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventWaitListPlayers(eventId, options);
17668
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17669
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WaitListStaffApi.getEventWaitListPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17670
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17671
+ });
17672
+ },
17222
17673
  /**
17223
17674
  * Forcer le traitement de la waitlist pour un booking (staff only)
17224
17675
  * @param {string} bookingId
@@ -17300,6 +17751,15 @@ export const WaitListStaffApiFactory = function (configuration, basePath, axios)
17300
17751
  getEventWaitList(requestParameters, options) {
17301
17752
  return localVarFp.getEventWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
17302
17753
  },
17754
+ /**
17755
+ * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
17756
+ * @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
17757
+ * @param {*} [options] Override http request option.
17758
+ * @throws {RequiredError}
17759
+ */
17760
+ getEventWaitListPlayers(requestParameters, options) {
17761
+ return localVarFp.getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(axios, basePath));
17762
+ },
17303
17763
  /**
17304
17764
  * Forcer le traitement de la waitlist pour un booking (staff only)
17305
17765
  * @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.
@@ -17366,6 +17826,16 @@ export class WaitListStaffApi extends BaseAPI {
17366
17826
  getEventWaitList(requestParameters, options) {
17367
17827
  return WaitListStaffApiFp(this.configuration).getEventWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
17368
17828
  }
17829
+ /**
17830
+ * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
17831
+ * @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
17832
+ * @param {*} [options] Override http request option.
17833
+ * @throws {RequiredError}
17834
+ * @memberof WaitListStaffApi
17835
+ */
17836
+ getEventWaitListPlayers(requestParameters, options) {
17837
+ return WaitListStaffApiFp(this.configuration).getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
17838
+ }
17369
17839
  /**
17370
17840
  * Forcer le traitement de la waitlist pour un booking (staff only)
17371
17841
  * @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.