@tennac-booking/sdk 1.0.124 → 1.0.125

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 (57) hide show
  1. package/.openapi-generator/FILES +343 -333
  2. package/README.md +16 -6
  3. package/api.ts +578 -313
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +458 -224
  8. package/dist/api.js +136 -79
  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 +458 -224
  16. package/dist/esm/api.js +132 -75
  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/ClubPlayerSubscriptionSummary.md +3 -3
  28. package/docs/CreatePlan201Response.md +0 -2
  29. package/docs/CreateSubscriptionPlanRequest.md +2 -2
  30. package/docs/CreateSubscriptionPlanRequestDiscount.md +0 -2
  31. package/docs/DeleteSubscriptionPlanResponse.md +0 -2
  32. package/docs/EventBookingDetailSummary.md +40 -0
  33. package/docs/EventBookingResponse.md +36 -0
  34. package/docs/EventBookingResponsePlayersInner.md +28 -0
  35. package/docs/{PlanPriceInput.md → EventBookingResponsePlayersInnerInvoiceStatus.md} +3 -7
  36. package/docs/EventBookingResponseSetupStatus.md +18 -0
  37. package/docs/EventBookingStatus.md +16 -0
  38. package/docs/EventsApi.md +4 -1
  39. package/docs/InvoiceStatusSETUPPENDING.md +8 -0
  40. package/docs/InvoiceStatusSETUPSUCCESS.md +8 -0
  41. package/docs/MonthlyTurnoverResponse.md +1 -0
  42. package/docs/OffPeakRule.md +0 -2
  43. package/docs/ParticipationType.md +10 -0
  44. package/docs/PublicSubscriptionPlanResponse.md +1 -5
  45. package/docs/PublishEventResponse.md +2 -0
  46. package/docs/SendSubscriptionInvitationRequest.md +0 -2
  47. package/docs/SubscriptionPlanResponse.md +1 -7
  48. package/docs/SubscriptionsManagerApi.md +1 -55
  49. package/docs/UserEventParticipation.md +22 -0
  50. package/docs/UserEventSummary.md +44 -0
  51. package/docs/UserEventsResponse.md +28 -0
  52. package/docs/UsersApi.md +54 -0
  53. package/docs/VisibilityType.md +12 -0
  54. package/index.ts +1 -1
  55. package/package.json +1 -1
  56. package/docs/PlanPrice.md +0 -26
  57. 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.125
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.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.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.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.VisibilityType = exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = void 0;
27
+ 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 = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = 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 = 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
+ Paid: 'paid',
133
+ Cancelled: 'cancelled',
134
+ Expired: 'expired',
135
+ Archived: 'archived'
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
@@ -396,6 +433,16 @@ exports.UpdateEventRequestVisibilityTypeEnum = {
396
433
  exports.UserLocationSummaryTypeEnum = {
397
434
  Point: 'Point'
398
435
  };
436
+ /**
437
+ *
438
+ * @export
439
+ * @enum {string}
440
+ */
441
+ exports.VisibilityType = {
442
+ Public: 'public',
443
+ Private: 'private',
444
+ Invitation: 'invitation'
445
+ };
399
446
  /**
400
447
  * BookingsApi - axios parameter creator
401
448
  * @export
@@ -7342,10 +7389,11 @@ const EventsApiAxiosParamCreator = function (configuration) {
7342
7389
  /**
7343
7390
  * Get a specific event by ID
7344
7391
  * @param {string} eventId
7392
+ * @param {string} [userId]
7345
7393
  * @param {*} [options] Override http request option.
7346
7394
  * @throws {RequiredError}
7347
7395
  */
7348
- getEventById: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
7396
+ getEventById: (eventId_1, userId_1, ...args_1) => __awaiter(this, [eventId_1, userId_1, ...args_1], void 0, function* (eventId, userId, options = {}) {
7349
7397
  // verify required parameter 'eventId' is not null or undefined
7350
7398
  (0, common_1.assertParamExists)('getEventById', 'eventId', eventId);
7351
7399
  const localVarPath = `/api/events/{eventId}`
@@ -7359,6 +7407,9 @@ const EventsApiAxiosParamCreator = function (configuration) {
7359
7407
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7360
7408
  const localVarHeaderParameter = {};
7361
7409
  const localVarQueryParameter = {};
7410
+ if (userId !== undefined) {
7411
+ localVarQueryParameter['userId'] = userId;
7412
+ }
7362
7413
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7363
7414
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7364
7415
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7519,13 +7570,14 @@ const EventsApiFp = function (configuration) {
7519
7570
  /**
7520
7571
  * Get a specific event by ID
7521
7572
  * @param {string} eventId
7573
+ * @param {string} [userId]
7522
7574
  * @param {*} [options] Override http request option.
7523
7575
  * @throws {RequiredError}
7524
7576
  */
7525
- getEventById(eventId, options) {
7577
+ getEventById(eventId, userId, options) {
7526
7578
  return __awaiter(this, void 0, void 0, function* () {
7527
7579
  var _a, _b, _c;
7528
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, options);
7580
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, userId, options);
7529
7581
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7530
7582
  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;
7531
7583
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -7615,7 +7667,7 @@ const EventsApiFactory = function (configuration, basePath, axios) {
7615
7667
  * @throws {RequiredError}
7616
7668
  */
7617
7669
  getEventById(requestParameters, options) {
7618
- return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
7670
+ return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
7619
7671
  },
7620
7672
  /**
7621
7673
  * Get all published events for a club
@@ -7682,7 +7734,7 @@ class EventsApi extends base_1.BaseAPI {
7682
7734
  * @memberof EventsApi
7683
7735
  */
7684
7736
  getEventById(requestParameters, options) {
7685
- return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
7737
+ return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
7686
7738
  }
7687
7739
  /**
7688
7740
  * Get all published events for a club
@@ -9148,37 +9200,6 @@ exports.SportsPublicApi = SportsPublicApi;
9148
9200
  */
9149
9201
  const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
9150
9202
  return {
9151
- /**
9152
- * Supprime (archive) un plan par productId (manager)
9153
- * @param {string} productId
9154
- * @param {*} [options] Override http request option.
9155
- * @throws {RequiredError}
9156
- */
9157
- archivePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
9158
- // verify required parameter 'productId' is not null or undefined
9159
- (0, common_1.assertParamExists)('archivePlan', 'productId', productId);
9160
- const localVarPath = `/api/subscriptions/plans/{productId}/archive`
9161
- .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
9162
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
9163
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9164
- let baseOptions;
9165
- if (configuration) {
9166
- baseOptions = configuration.baseOptions;
9167
- }
9168
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
9169
- const localVarHeaderParameter = {};
9170
- const localVarQueryParameter = {};
9171
- // authentication bearerAuth required
9172
- // http bearer authentication required
9173
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
9174
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9175
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9176
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9177
- return {
9178
- url: (0, common_1.toPathString)(localVarUrlObj),
9179
- options: localVarRequestOptions,
9180
- };
9181
- }),
9182
9203
  /**
9183
9204
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9184
9205
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -9212,7 +9233,7 @@ const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
9212
9233
  };
9213
9234
  }),
9214
9235
  /**
9215
- * Supprime un plan par productId (manager)
9236
+ * Supprime (archive) un plan par productId (manager)
9216
9237
  * @param {string} productId
9217
9238
  * @param {*} [options] Override http request option.
9218
9239
  * @throws {RequiredError}
@@ -9284,21 +9305,6 @@ exports.SubscriptionsManagerApiAxiosParamCreator = SubscriptionsManagerApiAxiosP
9284
9305
  const SubscriptionsManagerApiFp = function (configuration) {
9285
9306
  const localVarAxiosParamCreator = (0, exports.SubscriptionsManagerApiAxiosParamCreator)(configuration);
9286
9307
  return {
9287
- /**
9288
- * Supprime (archive) un plan par productId (manager)
9289
- * @param {string} productId
9290
- * @param {*} [options] Override http request option.
9291
- * @throws {RequiredError}
9292
- */
9293
- archivePlan(productId, options) {
9294
- return __awaiter(this, void 0, void 0, function* () {
9295
- var _a, _b, _c;
9296
- const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePlan(productId, options);
9297
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9298
- 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;
9299
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9300
- });
9301
- },
9302
9308
  /**
9303
9309
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9304
9310
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -9315,7 +9321,7 @@ const SubscriptionsManagerApiFp = function (configuration) {
9315
9321
  });
9316
9322
  },
9317
9323
  /**
9318
- * Supprime un plan par productId (manager)
9324
+ * Supprime (archive) un plan par productId (manager)
9319
9325
  * @param {string} productId
9320
9326
  * @param {*} [options] Override http request option.
9321
9327
  * @throws {RequiredError}
@@ -9354,15 +9360,6 @@ exports.SubscriptionsManagerApiFp = SubscriptionsManagerApiFp;
9354
9360
  const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
9355
9361
  const localVarFp = (0, exports.SubscriptionsManagerApiFp)(configuration);
9356
9362
  return {
9357
- /**
9358
- * Supprime (archive) un plan par productId (manager)
9359
- * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
9360
- * @param {*} [options] Override http request option.
9361
- * @throws {RequiredError}
9362
- */
9363
- archivePlan(requestParameters, options) {
9364
- return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
9365
- },
9366
9363
  /**
9367
9364
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9368
9365
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -9373,7 +9370,7 @@ const SubscriptionsManagerApiFactory = function (configuration, basePath, axios)
9373
9370
  return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
9374
9371
  },
9375
9372
  /**
9376
- * Supprime un plan par productId (manager)
9373
+ * Supprime (archive) un plan par productId (manager)
9377
9374
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
9378
9375
  * @param {*} [options] Override http request option.
9379
9376
  * @throws {RequiredError}
@@ -9400,16 +9397,6 @@ exports.SubscriptionsManagerApiFactory = SubscriptionsManagerApiFactory;
9400
9397
  * @extends {BaseAPI}
9401
9398
  */
9402
9399
  class SubscriptionsManagerApi extends base_1.BaseAPI {
9403
- /**
9404
- * Supprime (archive) un plan par productId (manager)
9405
- * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
9406
- * @param {*} [options] Override http request option.
9407
- * @throws {RequiredError}
9408
- * @memberof SubscriptionsManagerApi
9409
- */
9410
- archivePlan(requestParameters, options) {
9411
- return (0, exports.SubscriptionsManagerApiFp)(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
9412
- }
9413
9400
  /**
9414
9401
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9415
9402
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -9421,7 +9408,7 @@ class SubscriptionsManagerApi extends base_1.BaseAPI {
9421
9408
  return (0, exports.SubscriptionsManagerApiFp)(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
9422
9409
  }
9423
9410
  /**
9424
- * Supprime un plan par productId (manager)
9411
+ * Supprime (archive) un plan par productId (manager)
9425
9412
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
9426
9413
  * @param {*} [options] Override http request option.
9427
9414
  * @throws {RequiredError}
@@ -10677,6 +10664,41 @@ const UsersApiAxiosParamCreator = function (configuration) {
10677
10664
  options: localVarRequestOptions,
10678
10665
  };
10679
10666
  }),
10667
+ /**
10668
+ *
10669
+ * @param {number} [limit]
10670
+ * @param {number} [skip]
10671
+ * @param {*} [options] Override http request option.
10672
+ * @throws {RequiredError}
10673
+ */
10674
+ getUserEvents: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
10675
+ const localVarPath = `/api/users/me/events`;
10676
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10677
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10678
+ let baseOptions;
10679
+ if (configuration) {
10680
+ baseOptions = configuration.baseOptions;
10681
+ }
10682
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10683
+ const localVarHeaderParameter = {};
10684
+ const localVarQueryParameter = {};
10685
+ // authentication bearerAuth required
10686
+ // http bearer authentication required
10687
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10688
+ if (limit !== undefined) {
10689
+ localVarQueryParameter['limit'] = limit;
10690
+ }
10691
+ if (skip !== undefined) {
10692
+ localVarQueryParameter['skip'] = skip;
10693
+ }
10694
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10695
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10696
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10697
+ return {
10698
+ url: (0, common_1.toPathString)(localVarUrlObj),
10699
+ options: localVarRequestOptions,
10700
+ };
10701
+ }),
10680
10702
  /**
10681
10703
  *
10682
10704
  * @param {string} id
@@ -11537,6 +11559,22 @@ const UsersApiFp = function (configuration) {
11537
11559
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11538
11560
  });
11539
11561
  },
11562
+ /**
11563
+ *
11564
+ * @param {number} [limit]
11565
+ * @param {number} [skip]
11566
+ * @param {*} [options] Override http request option.
11567
+ * @throws {RequiredError}
11568
+ */
11569
+ getUserEvents(limit, skip, options) {
11570
+ return __awaiter(this, void 0, void 0, function* () {
11571
+ var _a, _b, _c;
11572
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserEvents(limit, skip, options);
11573
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11574
+ 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;
11575
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11576
+ });
11577
+ },
11540
11578
  /**
11541
11579
  *
11542
11580
  * @param {string} id
@@ -11979,6 +12017,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
11979
12017
  getUserBookings(requestParameters = {}, options) {
11980
12018
  return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
11981
12019
  },
12020
+ /**
12021
+ *
12022
+ * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
12023
+ * @param {*} [options] Override http request option.
12024
+ * @throws {RequiredError}
12025
+ */
12026
+ getUserEvents(requestParameters = {}, options) {
12027
+ return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
12028
+ },
11982
12029
  /**
11983
12030
  *
11984
12031
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -12322,6 +12369,16 @@ class UsersApi extends base_1.BaseAPI {
12322
12369
  getUserBookings(requestParameters = {}, options) {
12323
12370
  return (0, exports.UsersApiFp)(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
12324
12371
  }
12372
+ /**
12373
+ *
12374
+ * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
12375
+ * @param {*} [options] Override http request option.
12376
+ * @throws {RequiredError}
12377
+ * @memberof UsersApi
12378
+ */
12379
+ getUserEvents(requestParameters = {}, options) {
12380
+ return (0, exports.UsersApiFp)(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
12381
+ }
12325
12382
  /**
12326
12383
  *
12327
12384
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.121
5
+ * The version of the OpenAPI document: 1.0.125
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.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.125
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.121
5
+ * The version of the OpenAPI document: 1.0.125
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.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.125
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.121
5
+ * The version of the OpenAPI document: 1.0.125
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.125
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).