@tennac-booking/sdk 1.0.125 → 1.0.126

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 (60) hide show
  1. package/.openapi-generator/FILES +333 -343
  2. package/README.md +9 -19
  3. package/api.ts +354 -619
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +256 -490
  8. package/dist/api.js +99 -156
  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 +256 -490
  16. package/dist/esm/api.js +95 -152
  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/{EventBookingResponseSetupStatus.md → CheckInPlayerRequest.md} +5 -3
  29. package/docs/{CheckInPlayersResponse.md → CheckInPlayerResponse.md} +5 -5
  30. package/docs/ClubPlayerSubscriptionSummary.md +3 -3
  31. package/docs/CreatePlan201Response.md +2 -0
  32. package/docs/CreateSubscriptionPlanRequest.md +2 -2
  33. package/docs/CreateSubscriptionPlanRequestDiscount.md +2 -0
  34. package/docs/DeleteSubscriptionPlanResponse.md +2 -0
  35. package/docs/EventsApi.md +1 -4
  36. package/docs/MonthlyTurnoverResponse.md +0 -1
  37. package/docs/OffPeakRule.md +2 -0
  38. package/docs/PlanPrice.md +26 -0
  39. package/docs/{CheckInPlayersRequest.md → PlanPriceInput.md} +7 -5
  40. package/docs/PublicSubscriptionPlanResponse.md +5 -1
  41. package/docs/PublishEventResponse.md +0 -2
  42. package/docs/SendSubscriptionInvitationRequest.md +2 -0
  43. package/docs/SubscriptionPlanDiscountResponse.md +34 -0
  44. package/docs/SubscriptionPlanResponse.md +7 -1
  45. package/docs/SubscriptionsManagerApi.md +55 -1
  46. package/docs/UsersApi.md +0 -54
  47. package/index.ts +1 -1
  48. package/package.json +1 -1
  49. package/docs/EventBookingDetailSummary.md +0 -40
  50. package/docs/EventBookingResponse.md +0 -36
  51. package/docs/EventBookingResponsePlayersInner.md +0 -28
  52. package/docs/EventBookingResponsePlayersInnerInvoiceStatus.md +0 -18
  53. package/docs/EventBookingStatus.md +0 -16
  54. package/docs/InvoiceStatusSETUPPENDING.md +0 -8
  55. package/docs/InvoiceStatusSETUPSUCCESS.md +0 -8
  56. package/docs/ParticipationType.md +0 -10
  57. package/docs/UserEventParticipation.md +0 -22
  58. package/docs/UserEventSummary.md +0 -44
  59. package/docs/UserEventsResponse.md +0 -28
  60. package/docs/VisibilityType.md +0 -12
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.125
8
+ * The version of the OpenAPI document: 1.0.121
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.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;
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;
29
29
  const axios_1 = require("axios");
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -122,18 +122,6 @@ 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
- };
137
125
  exports.EventResponseTypeEnum = {
138
126
  Event: 'event',
139
127
  Closure: 'closure'
@@ -195,31 +183,6 @@ exports.InvoiceStatus = {
195
183
  Canceled: 'canceled',
196
184
  Expired: 'expired'
197
185
  };
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
- };
223
186
  /**
224
187
  *
225
188
  * @export
@@ -433,16 +396,6 @@ exports.UpdateEventRequestVisibilityTypeEnum = {
433
396
  exports.UserLocationSummaryTypeEnum = {
434
397
  Point: 'Point'
435
398
  };
436
- /**
437
- *
438
- * @export
439
- * @enum {string}
440
- */
441
- exports.VisibilityType = {
442
- Public: 'public',
443
- Private: 'private',
444
- Invitation: 'invitation'
445
- };
446
399
  /**
447
400
  * BookingsApi - axios parameter creator
448
401
  * @export
@@ -905,17 +858,17 @@ exports.BookingsManagerApi = BookingsManagerApi;
905
858
  const BookingsStaffApiAxiosParamCreator = function (configuration) {
906
859
  return {
907
860
  /**
908
- * Check-in des joueurs only for club with payment features
861
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
909
862
  * @param {string} bookingId
910
- * @param {CheckInPlayersRequest} checkInPlayersRequest
863
+ * @param {CheckInPlayerRequest} checkInPlayerRequest
911
864
  * @param {*} [options] Override http request option.
912
865
  * @throws {RequiredError}
913
866
  */
914
- checkInPlayers: (bookingId_1, checkInPlayersRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayersRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayersRequest, options = {}) {
867
+ checkInPlayer: (bookingId_1, checkInPlayerRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerRequest, options = {}) {
915
868
  // verify required parameter 'bookingId' is not null or undefined
916
- (0, common_1.assertParamExists)('checkInPlayers', 'bookingId', bookingId);
917
- // verify required parameter 'checkInPlayersRequest' is not null or undefined
918
- (0, common_1.assertParamExists)('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest);
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);
919
872
  const localVarPath = `/api/bookings/{bookingId}/check-in`
920
873
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
921
874
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -934,7 +887,7 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
934
887
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
935
888
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
936
889
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
937
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayersRequest, localVarRequestOptions, configuration);
890
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayerRequest, localVarRequestOptions, configuration);
938
891
  return {
939
892
  url: (0, common_1.toPathString)(localVarUrlObj),
940
893
  options: localVarRequestOptions,
@@ -1185,18 +1138,18 @@ const BookingsStaffApiFp = function (configuration) {
1185
1138
  const localVarAxiosParamCreator = (0, exports.BookingsStaffApiAxiosParamCreator)(configuration);
1186
1139
  return {
1187
1140
  /**
1188
- * Check-in des joueurs only for club with payment features
1141
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1189
1142
  * @param {string} bookingId
1190
- * @param {CheckInPlayersRequest} checkInPlayersRequest
1143
+ * @param {CheckInPlayerRequest} checkInPlayerRequest
1191
1144
  * @param {*} [options] Override http request option.
1192
1145
  * @throws {RequiredError}
1193
1146
  */
1194
- checkInPlayers(bookingId, checkInPlayersRequest, options) {
1147
+ checkInPlayer(bookingId, checkInPlayerRequest, options) {
1195
1148
  return __awaiter(this, void 0, void 0, function* () {
1196
1149
  var _a, _b, _c;
1197
- const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
1150
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayer(bookingId, checkInPlayerRequest, options);
1198
1151
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1199
- 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;
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;
1200
1153
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1201
1154
  });
1202
1155
  },
@@ -1320,13 +1273,13 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
1320
1273
  const localVarFp = (0, exports.BookingsStaffApiFp)(configuration);
1321
1274
  return {
1322
1275
  /**
1323
- * Check-in des joueurs only for club with payment features
1324
- * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
1276
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1277
+ * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1325
1278
  * @param {*} [options] Override http request option.
1326
1279
  * @throws {RequiredError}
1327
1280
  */
1328
- checkInPlayers(requestParameters, options) {
1329
- return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
1281
+ checkInPlayer(requestParameters, options) {
1282
+ return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
1330
1283
  },
1331
1284
  /**
1332
1285
  * Créer une réservation pour un joueur depuis l\'espace staff
@@ -1402,14 +1355,14 @@ exports.BookingsStaffApiFactory = BookingsStaffApiFactory;
1402
1355
  */
1403
1356
  class BookingsStaffApi extends base_1.BaseAPI {
1404
1357
  /**
1405
- * Check-in des joueurs only for club with payment features
1406
- * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
1358
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1359
+ * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1407
1360
  * @param {*} [options] Override http request option.
1408
1361
  * @throws {RequiredError}
1409
1362
  * @memberof BookingsStaffApi
1410
1363
  */
1411
- checkInPlayers(requestParameters, options) {
1412
- return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
1364
+ checkInPlayer(requestParameters, options) {
1365
+ return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
1413
1366
  }
1414
1367
  /**
1415
1368
  * Créer une réservation pour un joueur depuis l\'espace staff
@@ -7389,11 +7342,10 @@ const EventsApiAxiosParamCreator = function (configuration) {
7389
7342
  /**
7390
7343
  * Get a specific event by ID
7391
7344
  * @param {string} eventId
7392
- * @param {string} [userId]
7393
7345
  * @param {*} [options] Override http request option.
7394
7346
  * @throws {RequiredError}
7395
7347
  */
7396
- getEventById: (eventId_1, userId_1, ...args_1) => __awaiter(this, [eventId_1, userId_1, ...args_1], void 0, function* (eventId, userId, options = {}) {
7348
+ getEventById: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
7397
7349
  // verify required parameter 'eventId' is not null or undefined
7398
7350
  (0, common_1.assertParamExists)('getEventById', 'eventId', eventId);
7399
7351
  const localVarPath = `/api/events/{eventId}`
@@ -7407,9 +7359,6 @@ const EventsApiAxiosParamCreator = function (configuration) {
7407
7359
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7408
7360
  const localVarHeaderParameter = {};
7409
7361
  const localVarQueryParameter = {};
7410
- if (userId !== undefined) {
7411
- localVarQueryParameter['userId'] = userId;
7412
- }
7413
7362
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7414
7363
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7415
7364
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7570,14 +7519,13 @@ const EventsApiFp = function (configuration) {
7570
7519
  /**
7571
7520
  * Get a specific event by ID
7572
7521
  * @param {string} eventId
7573
- * @param {string} [userId]
7574
7522
  * @param {*} [options] Override http request option.
7575
7523
  * @throws {RequiredError}
7576
7524
  */
7577
- getEventById(eventId, userId, options) {
7525
+ getEventById(eventId, options) {
7578
7526
  return __awaiter(this, void 0, void 0, function* () {
7579
7527
  var _a, _b, _c;
7580
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, userId, options);
7528
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, options);
7581
7529
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7582
7530
  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;
7583
7531
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -7667,7 +7615,7 @@ const EventsApiFactory = function (configuration, basePath, axios) {
7667
7615
  * @throws {RequiredError}
7668
7616
  */
7669
7617
  getEventById(requestParameters, options) {
7670
- return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
7618
+ return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
7671
7619
  },
7672
7620
  /**
7673
7621
  * Get all published events for a club
@@ -7734,7 +7682,7 @@ class EventsApi extends base_1.BaseAPI {
7734
7682
  * @memberof EventsApi
7735
7683
  */
7736
7684
  getEventById(requestParameters, options) {
7737
- return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
7685
+ return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
7738
7686
  }
7739
7687
  /**
7740
7688
  * Get all published events for a club
@@ -9200,6 +9148,37 @@ exports.SportsPublicApi = SportsPublicApi;
9200
9148
  */
9201
9149
  const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
9202
9150
  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
+ }),
9203
9182
  /**
9204
9183
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9205
9184
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -9233,7 +9212,7 @@ const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
9233
9212
  };
9234
9213
  }),
9235
9214
  /**
9236
- * Supprime (archive) un plan par productId (manager)
9215
+ * Supprime un plan par productId (manager)
9237
9216
  * @param {string} productId
9238
9217
  * @param {*} [options] Override http request option.
9239
9218
  * @throws {RequiredError}
@@ -9305,6 +9284,21 @@ exports.SubscriptionsManagerApiAxiosParamCreator = SubscriptionsManagerApiAxiosP
9305
9284
  const SubscriptionsManagerApiFp = function (configuration) {
9306
9285
  const localVarAxiosParamCreator = (0, exports.SubscriptionsManagerApiAxiosParamCreator)(configuration);
9307
9286
  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
+ },
9308
9302
  /**
9309
9303
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9310
9304
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -9321,7 +9315,7 @@ const SubscriptionsManagerApiFp = function (configuration) {
9321
9315
  });
9322
9316
  },
9323
9317
  /**
9324
- * Supprime (archive) un plan par productId (manager)
9318
+ * Supprime un plan par productId (manager)
9325
9319
  * @param {string} productId
9326
9320
  * @param {*} [options] Override http request option.
9327
9321
  * @throws {RequiredError}
@@ -9360,6 +9354,15 @@ exports.SubscriptionsManagerApiFp = SubscriptionsManagerApiFp;
9360
9354
  const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
9361
9355
  const localVarFp = (0, exports.SubscriptionsManagerApiFp)(configuration);
9362
9356
  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
+ },
9363
9366
  /**
9364
9367
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9365
9368
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -9370,7 +9373,7 @@ const SubscriptionsManagerApiFactory = function (configuration, basePath, axios)
9370
9373
  return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
9371
9374
  },
9372
9375
  /**
9373
- * Supprime (archive) un plan par productId (manager)
9376
+ * Supprime un plan par productId (manager)
9374
9377
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
9375
9378
  * @param {*} [options] Override http request option.
9376
9379
  * @throws {RequiredError}
@@ -9397,6 +9400,16 @@ exports.SubscriptionsManagerApiFactory = SubscriptionsManagerApiFactory;
9397
9400
  * @extends {BaseAPI}
9398
9401
  */
9399
9402
  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
+ }
9400
9413
  /**
9401
9414
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9402
9415
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -9408,7 +9421,7 @@ class SubscriptionsManagerApi extends base_1.BaseAPI {
9408
9421
  return (0, exports.SubscriptionsManagerApiFp)(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
9409
9422
  }
9410
9423
  /**
9411
- * Supprime (archive) un plan par productId (manager)
9424
+ * Supprime un plan par productId (manager)
9412
9425
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
9413
9426
  * @param {*} [options] Override http request option.
9414
9427
  * @throws {RequiredError}
@@ -10664,41 +10677,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
10664
10677
  options: localVarRequestOptions,
10665
10678
  };
10666
10679
  }),
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
- }),
10702
10680
  /**
10703
10681
  *
10704
10682
  * @param {string} id
@@ -11559,22 +11537,6 @@ const UsersApiFp = function (configuration) {
11559
11537
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11560
11538
  });
11561
11539
  },
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
- },
11578
11540
  /**
11579
11541
  *
11580
11542
  * @param {string} id
@@ -12017,15 +11979,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
12017
11979
  getUserBookings(requestParameters = {}, options) {
12018
11980
  return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
12019
11981
  },
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
- },
12029
11982
  /**
12030
11983
  *
12031
11984
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -12369,16 +12322,6 @@ class UsersApi extends base_1.BaseAPI {
12369
12322
  getUserBookings(requestParameters = {}, options) {
12370
12323
  return (0, exports.UsersApiFp)(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
12371
12324
  }
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
- }
12382
12325
  /**
12383
12326
  *
12384
12327
  * @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.125
5
+ * The version of the OpenAPI document: 1.0.121
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.125
8
+ * The version of the OpenAPI document: 1.0.121
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.125
5
+ * The version of the OpenAPI document: 1.0.121
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.125
8
+ * The version of the OpenAPI document: 1.0.121
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.125
5
+ * The version of the OpenAPI document: 1.0.121
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.125
8
+ * The version of the OpenAPI document: 1.0.121
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).