@tennac-booking/sdk 1.0.127 → 1.0.129

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 (65) hide show
  1. package/.openapi-generator/FILES +346 -334
  2. package/README.md +24 -11
  3. package/api.ts +1006 -422
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +853 -357
  8. package/dist/api.js +317 -164
  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 +853 -357
  16. package/dist/esm/api.js +313 -160
  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/BookingsStaffApi.md +10 -10
  28. package/docs/{PlanPriceInput.md → CheckInPlayersRequest.md} +5 -7
  29. package/docs/{CheckInPlayerResponse.md → CheckInPlayersResponse.md} +5 -5
  30. package/docs/ClubPlayerSubscriptionSummary.md +3 -3
  31. package/docs/ClubsStaffApi.md +0 -54
  32. package/docs/CreatePlan201Response.md +0 -2
  33. package/docs/CreateSubscriptionPlanRequest.md +2 -2
  34. package/docs/CreateSubscriptionPlanRequestDiscount.md +0 -2
  35. package/docs/DeleteSubscriptionPlanResponse.md +0 -2
  36. package/docs/EventBookingDetailSummary.md +40 -0
  37. package/docs/EventBookingResponse.md +36 -0
  38. package/docs/EventBookingResponsePlayersInner.md +28 -0
  39. package/docs/{CheckInPlayerRequest.md → EventBookingResponsePlayersInnerInvoiceStatus.md} +3 -5
  40. package/docs/{GetClubType200Response.md → EventBookingResponseSetupStatus.md} +3 -5
  41. package/docs/EventBookingStatus.md +16 -0
  42. package/docs/EventsApi.md +4 -1
  43. package/docs/EventsManagerApi.md +110 -0
  44. package/docs/InvoiceStatusSETUPPENDING.md +8 -0
  45. package/docs/InvoiceStatusSETUPSUCCESS.md +8 -0
  46. package/docs/MonthlyTurnoverResponse.md +1 -0
  47. package/docs/OffPeakRule.md +0 -2
  48. package/docs/ParticipationType.md +10 -0
  49. package/docs/PublicSubscriptionPlanResponse.md +1 -5
  50. package/docs/PublishEventResponse.md +4 -0
  51. package/docs/RecurringDefinitionResponse.md +34 -0
  52. package/docs/SendSubscriptionInvitationRequest.md +0 -2
  53. package/docs/SubscriptionPlanResponse.md +1 -7
  54. package/docs/SubscriptionsManagerApi.md +1 -55
  55. package/docs/UpdateRecurringDefinition200Response.md +20 -0
  56. package/docs/UpdateRecurringDefinitionRequest.md +56 -0
  57. package/docs/UserEventParticipation.md +22 -0
  58. package/docs/UserEventSummary.md +44 -0
  59. package/docs/UserEventsResponse.md +28 -0
  60. package/docs/UsersApi.md +54 -0
  61. package/docs/VisibilityType.md +12 -0
  62. package/index.ts +1 -1
  63. package/package.json +1 -1
  64. package/docs/PlanPrice.md +0 -26
  65. package/docs/SubscriptionPlanDiscountResponse.md +0 -34
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.121
8
+ * The version of the OpenAPI document: 1.0.129
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,10 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = exports.AgendaPaymentStatus = void 0;
26
- exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = void 0;
27
- exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = void 0;
28
- exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = void 0;
25
+ exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.ParticipationType = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = exports.AgendaPaymentStatus = void 0;
26
+ exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.VisibilityType = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.SurfaceType = void 0;
27
+ exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = void 0;
28
+ exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = void 0;
29
29
  const axios_1 = require("axios");
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -122,6 +122,18 @@ exports.DiscountType = {
122
122
  Percentage: 'percentage',
123
123
  OffPeak: 'off_peak'
124
124
  };
125
+ /**
126
+ *
127
+ * @export
128
+ * @enum {string}
129
+ */
130
+ exports.EventBookingStatus = {
131
+ Pending: 'pending',
132
+ Active: 'active',
133
+ Paid: 'paid',
134
+ Cancelled: 'cancelled',
135
+ Expired: 'expired'
136
+ };
125
137
  exports.EventResponseTypeEnum = {
126
138
  Event: 'event',
127
139
  Closure: 'closure'
@@ -183,6 +195,31 @@ exports.InvoiceStatus = {
183
195
  Canceled: 'canceled',
184
196
  Expired: 'expired'
185
197
  };
198
+ /**
199
+ *
200
+ * @export
201
+ * @enum {string}
202
+ */
203
+ exports.InvoiceStatusSETUPPENDING = {
204
+ SetupPending: 'setup_pending'
205
+ };
206
+ /**
207
+ *
208
+ * @export
209
+ * @enum {string}
210
+ */
211
+ exports.InvoiceStatusSETUPSUCCESS = {
212
+ SetupSuccess: 'setup_success'
213
+ };
214
+ /**
215
+ *
216
+ * @export
217
+ * @enum {string}
218
+ */
219
+ exports.ParticipationType = {
220
+ Solo: 'solo',
221
+ Team: 'team'
222
+ };
186
223
  /**
187
224
  *
188
225
  * @export
@@ -218,6 +255,12 @@ exports.PlayerCategoryId = {
218
255
  MostActive: 'most-active',
219
256
  Nearby: 'nearby'
220
257
  };
258
+ exports.RecurringDefinitionResponseRecurringTypeEnum = {
259
+ Daily: 'daily',
260
+ Weekly: 'weekly',
261
+ Monthly: 'monthly',
262
+ Unique: 'unique'
263
+ };
221
264
  exports.RegisterRequestBodyLocationTypeEnum = {
222
265
  Point: 'Point'
223
266
  };
@@ -393,9 +436,38 @@ exports.UpdateEventRequestVisibilityTypeEnum = {
393
436
  Private: 'private',
394
437
  Invitation: 'invitation'
395
438
  };
439
+ exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = {
440
+ Public: 'public',
441
+ Private: 'private',
442
+ Invitation: 'invitation'
443
+ };
444
+ exports.UpdateRecurringDefinitionRequestTypeEnum = {
445
+ Event: 'event',
446
+ Closure: 'closure'
447
+ };
448
+ exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = {
449
+ Solo: 'solo',
450
+ Team: 'team'
451
+ };
452
+ exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = {
453
+ Daily: 'daily',
454
+ Weekly: 'weekly',
455
+ Monthly: 'monthly',
456
+ Unique: 'unique'
457
+ };
396
458
  exports.UserLocationSummaryTypeEnum = {
397
459
  Point: 'Point'
398
460
  };
461
+ /**
462
+ *
463
+ * @export
464
+ * @enum {string}
465
+ */
466
+ exports.VisibilityType = {
467
+ Public: 'public',
468
+ Private: 'private',
469
+ Invitation: 'invitation'
470
+ };
399
471
  /**
400
472
  * BookingsApi - axios parameter creator
401
473
  * @export
@@ -858,17 +930,17 @@ exports.BookingsManagerApi = BookingsManagerApi;
858
930
  const BookingsStaffApiAxiosParamCreator = function (configuration) {
859
931
  return {
860
932
  /**
861
- * Check-in d\'un joueur (paiement en ligne ou sur place)
933
+ * Check-in des joueurs only for club with payment features
862
934
  * @param {string} bookingId
863
- * @param {CheckInPlayerRequest} checkInPlayerRequest
935
+ * @param {CheckInPlayersRequest} checkInPlayersRequest
864
936
  * @param {*} [options] Override http request option.
865
937
  * @throws {RequiredError}
866
938
  */
867
- checkInPlayer: (bookingId_1, checkInPlayerRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerRequest, options = {}) {
939
+ checkInPlayers: (bookingId_1, checkInPlayersRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayersRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayersRequest, options = {}) {
868
940
  // verify required parameter 'bookingId' is not null or undefined
869
- (0, common_1.assertParamExists)('checkInPlayer', 'bookingId', bookingId);
870
- // verify required parameter 'checkInPlayerRequest' is not null or undefined
871
- (0, common_1.assertParamExists)('checkInPlayer', 'checkInPlayerRequest', checkInPlayerRequest);
941
+ (0, common_1.assertParamExists)('checkInPlayers', 'bookingId', bookingId);
942
+ // verify required parameter 'checkInPlayersRequest' is not null or undefined
943
+ (0, common_1.assertParamExists)('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest);
872
944
  const localVarPath = `/api/bookings/{bookingId}/check-in`
873
945
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
874
946
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -887,7 +959,7 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
887
959
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
888
960
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
889
961
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
890
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayerRequest, localVarRequestOptions, configuration);
962
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayersRequest, localVarRequestOptions, configuration);
891
963
  return {
892
964
  url: (0, common_1.toPathString)(localVarUrlObj),
893
965
  options: localVarRequestOptions,
@@ -1138,18 +1210,18 @@ const BookingsStaffApiFp = function (configuration) {
1138
1210
  const localVarAxiosParamCreator = (0, exports.BookingsStaffApiAxiosParamCreator)(configuration);
1139
1211
  return {
1140
1212
  /**
1141
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1213
+ * Check-in des joueurs only for club with payment features
1142
1214
  * @param {string} bookingId
1143
- * @param {CheckInPlayerRequest} checkInPlayerRequest
1215
+ * @param {CheckInPlayersRequest} checkInPlayersRequest
1144
1216
  * @param {*} [options] Override http request option.
1145
1217
  * @throws {RequiredError}
1146
1218
  */
1147
- checkInPlayer(bookingId, checkInPlayerRequest, options) {
1219
+ checkInPlayers(bookingId, checkInPlayersRequest, options) {
1148
1220
  return __awaiter(this, void 0, void 0, function* () {
1149
1221
  var _a, _b, _c;
1150
- const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayer(bookingId, checkInPlayerRequest, options);
1222
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
1151
1223
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1152
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsStaffApi.checkInPlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1224
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsStaffApi.checkInPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1153
1225
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1154
1226
  });
1155
1227
  },
@@ -1273,13 +1345,13 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
1273
1345
  const localVarFp = (0, exports.BookingsStaffApiFp)(configuration);
1274
1346
  return {
1275
1347
  /**
1276
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1277
- * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1348
+ * Check-in des joueurs only for club with payment features
1349
+ * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
1278
1350
  * @param {*} [options] Override http request option.
1279
1351
  * @throws {RequiredError}
1280
1352
  */
1281
- checkInPlayer(requestParameters, options) {
1282
- return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
1353
+ checkInPlayers(requestParameters, options) {
1354
+ return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
1283
1355
  },
1284
1356
  /**
1285
1357
  * Créer une réservation pour un joueur depuis l\'espace staff
@@ -1355,14 +1427,14 @@ exports.BookingsStaffApiFactory = BookingsStaffApiFactory;
1355
1427
  */
1356
1428
  class BookingsStaffApi extends base_1.BaseAPI {
1357
1429
  /**
1358
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1359
- * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1430
+ * Check-in des joueurs only for club with payment features
1431
+ * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
1360
1432
  * @param {*} [options] Override http request option.
1361
1433
  * @throws {RequiredError}
1362
1434
  * @memberof BookingsStaffApi
1363
1435
  */
1364
- checkInPlayer(requestParameters, options) {
1365
- return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
1436
+ checkInPlayers(requestParameters, options) {
1437
+ return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
1366
1438
  }
1367
1439
  /**
1368
1440
  * Créer une réservation pour un joueur depuis l\'espace staff
@@ -6656,37 +6728,6 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
6656
6728
  options: localVarRequestOptions,
6657
6729
  };
6658
6730
  }),
6659
- /**
6660
- *
6661
- * @param {string} clubId
6662
- * @param {*} [options] Override http request option.
6663
- * @throws {RequiredError}
6664
- */
6665
- getClubType: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
6666
- // verify required parameter 'clubId' is not null or undefined
6667
- (0, common_1.assertParamExists)('getClubType', 'clubId', clubId);
6668
- const localVarPath = `/api/clubs/{clubId}/clubType`
6669
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
6670
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6671
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6672
- let baseOptions;
6673
- if (configuration) {
6674
- baseOptions = configuration.baseOptions;
6675
- }
6676
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6677
- const localVarHeaderParameter = {};
6678
- const localVarQueryParameter = {};
6679
- // authentication bearerAuth required
6680
- // http bearer authentication required
6681
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6682
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6683
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6684
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6685
- return {
6686
- url: (0, common_1.toPathString)(localVarUrlObj),
6687
- options: localVarRequestOptions,
6688
- };
6689
- }),
6690
6731
  /**
6691
6732
  * Récupère les terrains d\'un club
6692
6733
  * @param {*} [options] Override http request option.
@@ -6932,21 +6973,6 @@ const ClubsStaffApiFp = function (configuration) {
6932
6973
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6933
6974
  });
6934
6975
  },
6935
- /**
6936
- *
6937
- * @param {string} clubId
6938
- * @param {*} [options] Override http request option.
6939
- * @throws {RequiredError}
6940
- */
6941
- getClubType(clubId, options) {
6942
- return __awaiter(this, void 0, void 0, function* () {
6943
- var _a, _b, _c;
6944
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubType(clubId, options);
6945
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6946
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.getClubType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6947
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6948
- });
6949
- },
6950
6976
  /**
6951
6977
  * Récupère les terrains d\'un club
6952
6978
  * @param {*} [options] Override http request option.
@@ -7072,15 +7098,6 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
7072
7098
  getClubRoles(options) {
7073
7099
  return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
7074
7100
  },
7075
- /**
7076
- *
7077
- * @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
7078
- * @param {*} [options] Override http request option.
7079
- * @throws {RequiredError}
7080
- */
7081
- getClubType(requestParameters, options) {
7082
- return localVarFp.getClubType(requestParameters.clubId, options).then((request) => request(axios, basePath));
7083
- },
7084
7101
  /**
7085
7102
  * Récupère les terrains d\'un club
7086
7103
  * @param {*} [options] Override http request option.
@@ -7181,16 +7198,6 @@ class ClubsStaffApi extends base_1.BaseAPI {
7181
7198
  getClubRoles(options) {
7182
7199
  return (0, exports.ClubsStaffApiFp)(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
7183
7200
  }
7184
- /**
7185
- *
7186
- * @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
7187
- * @param {*} [options] Override http request option.
7188
- * @throws {RequiredError}
7189
- * @memberof ClubsStaffApi
7190
- */
7191
- getClubType(requestParameters, options) {
7192
- return (0, exports.ClubsStaffApiFp)(this.configuration).getClubType(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
7193
- }
7194
7201
  /**
7195
7202
  * Récupère les terrains d\'un club
7196
7203
  * @param {*} [options] Override http request option.
@@ -7407,10 +7414,11 @@ const EventsApiAxiosParamCreator = function (configuration) {
7407
7414
  /**
7408
7415
  * Get a specific event by ID
7409
7416
  * @param {string} eventId
7417
+ * @param {string} [userId]
7410
7418
  * @param {*} [options] Override http request option.
7411
7419
  * @throws {RequiredError}
7412
7420
  */
7413
- getEventById: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
7421
+ getEventById: (eventId_1, userId_1, ...args_1) => __awaiter(this, [eventId_1, userId_1, ...args_1], void 0, function* (eventId, userId, options = {}) {
7414
7422
  // verify required parameter 'eventId' is not null or undefined
7415
7423
  (0, common_1.assertParamExists)('getEventById', 'eventId', eventId);
7416
7424
  const localVarPath = `/api/events/{eventId}`
@@ -7424,6 +7432,9 @@ const EventsApiAxiosParamCreator = function (configuration) {
7424
7432
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7425
7433
  const localVarHeaderParameter = {};
7426
7434
  const localVarQueryParameter = {};
7435
+ if (userId !== undefined) {
7436
+ localVarQueryParameter['userId'] = userId;
7437
+ }
7427
7438
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7428
7439
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7429
7440
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7584,13 +7595,14 @@ const EventsApiFp = function (configuration) {
7584
7595
  /**
7585
7596
  * Get a specific event by ID
7586
7597
  * @param {string} eventId
7598
+ * @param {string} [userId]
7587
7599
  * @param {*} [options] Override http request option.
7588
7600
  * @throws {RequiredError}
7589
7601
  */
7590
- getEventById(eventId, options) {
7602
+ getEventById(eventId, userId, options) {
7591
7603
  return __awaiter(this, void 0, void 0, function* () {
7592
7604
  var _a, _b, _c;
7593
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, options);
7605
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, userId, options);
7594
7606
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7595
7607
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.getEventById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7596
7608
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -7680,7 +7692,7 @@ const EventsApiFactory = function (configuration, basePath, axios) {
7680
7692
  * @throws {RequiredError}
7681
7693
  */
7682
7694
  getEventById(requestParameters, options) {
7683
- return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
7695
+ return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
7684
7696
  },
7685
7697
  /**
7686
7698
  * Get all published events for a club
@@ -7747,7 +7759,7 @@ class EventsApi extends base_1.BaseAPI {
7747
7759
  * @memberof EventsApi
7748
7760
  */
7749
7761
  getEventById(requestParameters, options) {
7750
- return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
7762
+ return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
7751
7763
  }
7752
7764
  /**
7753
7765
  * Get all published events for a club
@@ -7897,6 +7909,37 @@ const EventsManagerApiAxiosParamCreator = function (configuration) {
7897
7909
  options: localVarRequestOptions,
7898
7910
  };
7899
7911
  }),
7912
+ /**
7913
+ * List recurring definitions about to expire within `days` (manager)
7914
+ * @param {number} [days]
7915
+ * @param {*} [options] Override http request option.
7916
+ * @throws {RequiredError}
7917
+ */
7918
+ getExpiringRecurringDefinitions: (days_1, ...args_1) => __awaiter(this, [days_1, ...args_1], void 0, function* (days, options = {}) {
7919
+ const localVarPath = `/api/events/manager/recurring/expiring`;
7920
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7921
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7922
+ let baseOptions;
7923
+ if (configuration) {
7924
+ baseOptions = configuration.baseOptions;
7925
+ }
7926
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7927
+ const localVarHeaderParameter = {};
7928
+ const localVarQueryParameter = {};
7929
+ // authentication bearerAuth required
7930
+ // http bearer authentication required
7931
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7932
+ if (days !== undefined) {
7933
+ localVarQueryParameter['days'] = days;
7934
+ }
7935
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7936
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7937
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7938
+ return {
7939
+ url: (0, common_1.toPathString)(localVarUrlObj),
7940
+ options: localVarRequestOptions,
7941
+ };
7942
+ }),
7900
7943
  /**
7901
7944
  * Publish an event (manager)
7902
7945
  * @param {string} eventId
@@ -8031,6 +8074,42 @@ const EventsManagerApiAxiosParamCreator = function (configuration) {
8031
8074
  options: localVarRequestOptions,
8032
8075
  };
8033
8076
  }),
8077
+ /**
8078
+ * Update a recurring event definition (manager) and propagate changes to generated Events
8079
+ * @param {string} definitionId
8080
+ * @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
8081
+ * @param {*} [options] Override http request option.
8082
+ * @throws {RequiredError}
8083
+ */
8084
+ updateRecurringDefinition: (definitionId_1, updateRecurringDefinitionRequest_1, ...args_1) => __awaiter(this, [definitionId_1, updateRecurringDefinitionRequest_1, ...args_1], void 0, function* (definitionId, updateRecurringDefinitionRequest, options = {}) {
8085
+ // verify required parameter 'definitionId' is not null or undefined
8086
+ (0, common_1.assertParamExists)('updateRecurringDefinition', 'definitionId', definitionId);
8087
+ // verify required parameter 'updateRecurringDefinitionRequest' is not null or undefined
8088
+ (0, common_1.assertParamExists)('updateRecurringDefinition', 'updateRecurringDefinitionRequest', updateRecurringDefinitionRequest);
8089
+ const localVarPath = `/api/events/manager/recurring/{definitionId}`
8090
+ .replace(`{${"definitionId"}}`, encodeURIComponent(String(definitionId)));
8091
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8092
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8093
+ let baseOptions;
8094
+ if (configuration) {
8095
+ baseOptions = configuration.baseOptions;
8096
+ }
8097
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
8098
+ const localVarHeaderParameter = {};
8099
+ const localVarQueryParameter = {};
8100
+ // authentication bearerAuth required
8101
+ // http bearer authentication required
8102
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8103
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8104
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8105
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8106
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8107
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateRecurringDefinitionRequest, localVarRequestOptions, configuration);
8108
+ return {
8109
+ url: (0, common_1.toPathString)(localVarUrlObj),
8110
+ options: localVarRequestOptions,
8111
+ };
8112
+ }),
8034
8113
  };
8035
8114
  };
8036
8115
  exports.EventsManagerApiAxiosParamCreator = EventsManagerApiAxiosParamCreator;
@@ -8086,6 +8165,21 @@ const EventsManagerApiFp = function (configuration) {
8086
8165
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8087
8166
  });
8088
8167
  },
8168
+ /**
8169
+ * List recurring definitions about to expire within `days` (manager)
8170
+ * @param {number} [days]
8171
+ * @param {*} [options] Override http request option.
8172
+ * @throws {RequiredError}
8173
+ */
8174
+ getExpiringRecurringDefinitions(days, options) {
8175
+ return __awaiter(this, void 0, void 0, function* () {
8176
+ var _a, _b, _c;
8177
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getExpiringRecurringDefinitions(days, options);
8178
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8179
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsManagerApi.getExpiringRecurringDefinitions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8180
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8181
+ });
8182
+ },
8089
8183
  /**
8090
8184
  * Publish an event (manager)
8091
8185
  * @param {string} eventId
@@ -8148,6 +8242,22 @@ const EventsManagerApiFp = function (configuration) {
8148
8242
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8149
8243
  });
8150
8244
  },
8245
+ /**
8246
+ * Update a recurring event definition (manager) and propagate changes to generated Events
8247
+ * @param {string} definitionId
8248
+ * @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
8249
+ * @param {*} [options] Override http request option.
8250
+ * @throws {RequiredError}
8251
+ */
8252
+ updateRecurringDefinition(definitionId, updateRecurringDefinitionRequest, options) {
8253
+ return __awaiter(this, void 0, void 0, function* () {
8254
+ var _a, _b, _c;
8255
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateRecurringDefinition(definitionId, updateRecurringDefinitionRequest, options);
8256
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8257
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsManagerApi.updateRecurringDefinition']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8258
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8259
+ });
8260
+ },
8151
8261
  };
8152
8262
  };
8153
8263
  exports.EventsManagerApiFp = EventsManagerApiFp;
@@ -8185,6 +8295,15 @@ const EventsManagerApiFactory = function (configuration, basePath, axios) {
8185
8295
  deleteEvent(requestParameters, options) {
8186
8296
  return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
8187
8297
  },
8298
+ /**
8299
+ * List recurring definitions about to expire within `days` (manager)
8300
+ * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
8301
+ * @param {*} [options] Override http request option.
8302
+ * @throws {RequiredError}
8303
+ */
8304
+ getExpiringRecurringDefinitions(requestParameters = {}, options) {
8305
+ return localVarFp.getExpiringRecurringDefinitions(requestParameters.days, options).then((request) => request(axios, basePath));
8306
+ },
8188
8307
  /**
8189
8308
  * Publish an event (manager)
8190
8309
  * @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
@@ -8221,6 +8340,15 @@ const EventsManagerApiFactory = function (configuration, basePath, axios) {
8221
8340
  updatePublishedEvent(requestParameters, options) {
8222
8341
  return localVarFp.updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
8223
8342
  },
8343
+ /**
8344
+ * Update a recurring event definition (manager) and propagate changes to generated Events
8345
+ * @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
8346
+ * @param {*} [options] Override http request option.
8347
+ * @throws {RequiredError}
8348
+ */
8349
+ updateRecurringDefinition(requestParameters, options) {
8350
+ return localVarFp.updateRecurringDefinition(requestParameters.definitionId, requestParameters.updateRecurringDefinitionRequest, options).then((request) => request(axios, basePath));
8351
+ },
8224
8352
  };
8225
8353
  };
8226
8354
  exports.EventsManagerApiFactory = EventsManagerApiFactory;
@@ -8261,6 +8389,16 @@ class EventsManagerApi extends base_1.BaseAPI {
8261
8389
  deleteEvent(requestParameters, options) {
8262
8390
  return (0, exports.EventsManagerApiFp)(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
8263
8391
  }
8392
+ /**
8393
+ * List recurring definitions about to expire within `days` (manager)
8394
+ * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
8395
+ * @param {*} [options] Override http request option.
8396
+ * @throws {RequiredError}
8397
+ * @memberof EventsManagerApi
8398
+ */
8399
+ getExpiringRecurringDefinitions(requestParameters = {}, options) {
8400
+ return (0, exports.EventsManagerApiFp)(this.configuration).getExpiringRecurringDefinitions(requestParameters.days, options).then((request) => request(this.axios, this.basePath));
8401
+ }
8264
8402
  /**
8265
8403
  * Publish an event (manager)
8266
8404
  * @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
@@ -8301,6 +8439,16 @@ class EventsManagerApi extends base_1.BaseAPI {
8301
8439
  updatePublishedEvent(requestParameters, options) {
8302
8440
  return (0, exports.EventsManagerApiFp)(this.configuration).updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
8303
8441
  }
8442
+ /**
8443
+ * Update a recurring event definition (manager) and propagate changes to generated Events
8444
+ * @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
8445
+ * @param {*} [options] Override http request option.
8446
+ * @throws {RequiredError}
8447
+ * @memberof EventsManagerApi
8448
+ */
8449
+ updateRecurringDefinition(requestParameters, options) {
8450
+ return (0, exports.EventsManagerApiFp)(this.configuration).updateRecurringDefinition(requestParameters.definitionId, requestParameters.updateRecurringDefinitionRequest, options).then((request) => request(this.axios, this.basePath));
8451
+ }
8304
8452
  }
8305
8453
  exports.EventsManagerApi = EventsManagerApi;
8306
8454
  /**
@@ -9213,37 +9361,6 @@ exports.SportsPublicApi = SportsPublicApi;
9213
9361
  */
9214
9362
  const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
9215
9363
  return {
9216
- /**
9217
- * Supprime (archive) un plan par productId (manager)
9218
- * @param {string} productId
9219
- * @param {*} [options] Override http request option.
9220
- * @throws {RequiredError}
9221
- */
9222
- archivePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
9223
- // verify required parameter 'productId' is not null or undefined
9224
- (0, common_1.assertParamExists)('archivePlan', 'productId', productId);
9225
- const localVarPath = `/api/subscriptions/plans/{productId}/archive`
9226
- .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
9227
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
9228
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9229
- let baseOptions;
9230
- if (configuration) {
9231
- baseOptions = configuration.baseOptions;
9232
- }
9233
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
9234
- const localVarHeaderParameter = {};
9235
- const localVarQueryParameter = {};
9236
- // authentication bearerAuth required
9237
- // http bearer authentication required
9238
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
9239
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9240
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9241
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9242
- return {
9243
- url: (0, common_1.toPathString)(localVarUrlObj),
9244
- options: localVarRequestOptions,
9245
- };
9246
- }),
9247
9364
  /**
9248
9365
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9249
9366
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -9277,7 +9394,7 @@ const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
9277
9394
  };
9278
9395
  }),
9279
9396
  /**
9280
- * Supprime un plan par productId (manager)
9397
+ * Supprime (archive) un plan par productId (manager)
9281
9398
  * @param {string} productId
9282
9399
  * @param {*} [options] Override http request option.
9283
9400
  * @throws {RequiredError}
@@ -9349,21 +9466,6 @@ exports.SubscriptionsManagerApiAxiosParamCreator = SubscriptionsManagerApiAxiosP
9349
9466
  const SubscriptionsManagerApiFp = function (configuration) {
9350
9467
  const localVarAxiosParamCreator = (0, exports.SubscriptionsManagerApiAxiosParamCreator)(configuration);
9351
9468
  return {
9352
- /**
9353
- * Supprime (archive) un plan par productId (manager)
9354
- * @param {string} productId
9355
- * @param {*} [options] Override http request option.
9356
- * @throws {RequiredError}
9357
- */
9358
- archivePlan(productId, options) {
9359
- return __awaiter(this, void 0, void 0, function* () {
9360
- var _a, _b, _c;
9361
- const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePlan(productId, options);
9362
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9363
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsManagerApi.archivePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9364
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9365
- });
9366
- },
9367
9469
  /**
9368
9470
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9369
9471
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -9380,7 +9482,7 @@ const SubscriptionsManagerApiFp = function (configuration) {
9380
9482
  });
9381
9483
  },
9382
9484
  /**
9383
- * Supprime un plan par productId (manager)
9485
+ * Supprime (archive) un plan par productId (manager)
9384
9486
  * @param {string} productId
9385
9487
  * @param {*} [options] Override http request option.
9386
9488
  * @throws {RequiredError}
@@ -9419,15 +9521,6 @@ exports.SubscriptionsManagerApiFp = SubscriptionsManagerApiFp;
9419
9521
  const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
9420
9522
  const localVarFp = (0, exports.SubscriptionsManagerApiFp)(configuration);
9421
9523
  return {
9422
- /**
9423
- * Supprime (archive) un plan par productId (manager)
9424
- * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
9425
- * @param {*} [options] Override http request option.
9426
- * @throws {RequiredError}
9427
- */
9428
- archivePlan(requestParameters, options) {
9429
- return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
9430
- },
9431
9524
  /**
9432
9525
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9433
9526
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -9438,7 +9531,7 @@ const SubscriptionsManagerApiFactory = function (configuration, basePath, axios)
9438
9531
  return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
9439
9532
  },
9440
9533
  /**
9441
- * Supprime un plan par productId (manager)
9534
+ * Supprime (archive) un plan par productId (manager)
9442
9535
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
9443
9536
  * @param {*} [options] Override http request option.
9444
9537
  * @throws {RequiredError}
@@ -9465,16 +9558,6 @@ exports.SubscriptionsManagerApiFactory = SubscriptionsManagerApiFactory;
9465
9558
  * @extends {BaseAPI}
9466
9559
  */
9467
9560
  class SubscriptionsManagerApi extends base_1.BaseAPI {
9468
- /**
9469
- * Supprime (archive) un plan par productId (manager)
9470
- * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
9471
- * @param {*} [options] Override http request option.
9472
- * @throws {RequiredError}
9473
- * @memberof SubscriptionsManagerApi
9474
- */
9475
- archivePlan(requestParameters, options) {
9476
- return (0, exports.SubscriptionsManagerApiFp)(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
9477
- }
9478
9561
  /**
9479
9562
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9480
9563
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -9486,7 +9569,7 @@ class SubscriptionsManagerApi extends base_1.BaseAPI {
9486
9569
  return (0, exports.SubscriptionsManagerApiFp)(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
9487
9570
  }
9488
9571
  /**
9489
- * Supprime un plan par productId (manager)
9572
+ * Supprime (archive) un plan par productId (manager)
9490
9573
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
9491
9574
  * @param {*} [options] Override http request option.
9492
9575
  * @throws {RequiredError}
@@ -10742,6 +10825,41 @@ const UsersApiAxiosParamCreator = function (configuration) {
10742
10825
  options: localVarRequestOptions,
10743
10826
  };
10744
10827
  }),
10828
+ /**
10829
+ *
10830
+ * @param {number} [limit]
10831
+ * @param {number} [skip]
10832
+ * @param {*} [options] Override http request option.
10833
+ * @throws {RequiredError}
10834
+ */
10835
+ getUserEvents: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
10836
+ const localVarPath = `/api/users/me/events`;
10837
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10838
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10839
+ let baseOptions;
10840
+ if (configuration) {
10841
+ baseOptions = configuration.baseOptions;
10842
+ }
10843
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10844
+ const localVarHeaderParameter = {};
10845
+ const localVarQueryParameter = {};
10846
+ // authentication bearerAuth required
10847
+ // http bearer authentication required
10848
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10849
+ if (limit !== undefined) {
10850
+ localVarQueryParameter['limit'] = limit;
10851
+ }
10852
+ if (skip !== undefined) {
10853
+ localVarQueryParameter['skip'] = skip;
10854
+ }
10855
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10856
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10857
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10858
+ return {
10859
+ url: (0, common_1.toPathString)(localVarUrlObj),
10860
+ options: localVarRequestOptions,
10861
+ };
10862
+ }),
10745
10863
  /**
10746
10864
  *
10747
10865
  * @param {string} id
@@ -11602,6 +11720,22 @@ const UsersApiFp = function (configuration) {
11602
11720
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11603
11721
  });
11604
11722
  },
11723
+ /**
11724
+ *
11725
+ * @param {number} [limit]
11726
+ * @param {number} [skip]
11727
+ * @param {*} [options] Override http request option.
11728
+ * @throws {RequiredError}
11729
+ */
11730
+ getUserEvents(limit, skip, options) {
11731
+ return __awaiter(this, void 0, void 0, function* () {
11732
+ var _a, _b, _c;
11733
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserEvents(limit, skip, options);
11734
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11735
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getUserEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11736
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11737
+ });
11738
+ },
11605
11739
  /**
11606
11740
  *
11607
11741
  * @param {string} id
@@ -12044,6 +12178,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
12044
12178
  getUserBookings(requestParameters = {}, options) {
12045
12179
  return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
12046
12180
  },
12181
+ /**
12182
+ *
12183
+ * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
12184
+ * @param {*} [options] Override http request option.
12185
+ * @throws {RequiredError}
12186
+ */
12187
+ getUserEvents(requestParameters = {}, options) {
12188
+ return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
12189
+ },
12047
12190
  /**
12048
12191
  *
12049
12192
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -12387,6 +12530,16 @@ class UsersApi extends base_1.BaseAPI {
12387
12530
  getUserBookings(requestParameters = {}, options) {
12388
12531
  return (0, exports.UsersApiFp)(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
12389
12532
  }
12533
+ /**
12534
+ *
12535
+ * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
12536
+ * @param {*} [options] Override http request option.
12537
+ * @throws {RequiredError}
12538
+ * @memberof UsersApi
12539
+ */
12540
+ getUserEvents(requestParameters = {}, options) {
12541
+ return (0, exports.UsersApiFp)(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
12542
+ }
12390
12543
  /**
12391
12544
  *
12392
12545
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.