@tennac-booking/sdk 1.0.125 → 1.0.127

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 (61) hide show
  1. package/.openapi-generator/FILES +334 -343
  2. package/README.md +11 -19
  3. package/api.ts +422 -591
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +317 -496
  8. package/dist/api.js +164 -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 +317 -496
  16. package/dist/esm/api.js +160 -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/{EventBookingResponsePlayersInnerInvoiceStatus.md → CheckInPlayerRequest.md} +5 -3
  29. package/docs/{CheckInPlayersResponse.md → CheckInPlayerResponse.md} +5 -5
  30. package/docs/ClubPlayerSubscriptionSummary.md +3 -3
  31. package/docs/ClubsStaffApi.md +54 -0
  32. package/docs/CreatePlan201Response.md +2 -0
  33. package/docs/CreateSubscriptionPlanRequest.md +2 -2
  34. package/docs/CreateSubscriptionPlanRequestDiscount.md +2 -0
  35. package/docs/DeleteSubscriptionPlanResponse.md +2 -0
  36. package/docs/EventsApi.md +1 -4
  37. package/docs/{EventBookingResponseSetupStatus.md → GetClubType200Response.md} +5 -3
  38. package/docs/MonthlyTurnoverResponse.md +0 -1
  39. package/docs/OffPeakRule.md +2 -0
  40. package/docs/PlanPrice.md +26 -0
  41. package/docs/{CheckInPlayersRequest.md → PlanPriceInput.md} +7 -5
  42. package/docs/PublicSubscriptionPlanResponse.md +5 -1
  43. package/docs/PublishEventResponse.md +0 -2
  44. package/docs/SendSubscriptionInvitationRequest.md +2 -0
  45. package/docs/SubscriptionPlanDiscountResponse.md +34 -0
  46. package/docs/SubscriptionPlanResponse.md +7 -1
  47. package/docs/SubscriptionsManagerApi.md +55 -1
  48. package/docs/UsersApi.md +0 -54
  49. package/index.ts +1 -1
  50. package/package.json +1 -1
  51. package/docs/EventBookingDetailSummary.md +0 -40
  52. package/docs/EventBookingResponse.md +0 -36
  53. package/docs/EventBookingResponsePlayersInner.md +0 -28
  54. package/docs/EventBookingStatus.md +0 -16
  55. package/docs/InvoiceStatusSETUPPENDING.md +0 -8
  56. package/docs/InvoiceStatusSETUPSUCCESS.md +0 -8
  57. package/docs/ParticipationType.md +0 -10
  58. package/docs/UserEventParticipation.md +0 -22
  59. package/docs/UserEventSummary.md +0 -44
  60. package/docs/UserEventsResponse.md +0 -28
  61. package/docs/VisibilityType.md +0 -12
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.125
7
+ * The version of the OpenAPI document: 1.0.121
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -116,18 +116,6 @@ export const DiscountType = {
116
116
  Percentage: 'percentage',
117
117
  OffPeak: 'off_peak'
118
118
  };
119
- /**
120
- *
121
- * @export
122
- * @enum {string}
123
- */
124
- export const EventBookingStatus = {
125
- Pending: 'pending',
126
- Paid: 'paid',
127
- Cancelled: 'cancelled',
128
- Expired: 'expired',
129
- Archived: 'archived'
130
- };
131
119
  export const EventResponseTypeEnum = {
132
120
  Event: 'event',
133
121
  Closure: 'closure'
@@ -189,31 +177,6 @@ export const InvoiceStatus = {
189
177
  Canceled: 'canceled',
190
178
  Expired: 'expired'
191
179
  };
192
- /**
193
- *
194
- * @export
195
- * @enum {string}
196
- */
197
- export const InvoiceStatusSETUPPENDING = {
198
- SetupPending: 'setup_pending'
199
- };
200
- /**
201
- *
202
- * @export
203
- * @enum {string}
204
- */
205
- export const InvoiceStatusSETUPSUCCESS = {
206
- SetupSuccess: 'setup_success'
207
- };
208
- /**
209
- *
210
- * @export
211
- * @enum {string}
212
- */
213
- export const ParticipationType = {
214
- Solo: 'solo',
215
- Team: 'team'
216
- };
217
180
  /**
218
181
  *
219
182
  * @export
@@ -427,16 +390,6 @@ export const UpdateEventRequestVisibilityTypeEnum = {
427
390
  export const UserLocationSummaryTypeEnum = {
428
391
  Point: 'Point'
429
392
  };
430
- /**
431
- *
432
- * @export
433
- * @enum {string}
434
- */
435
- export const VisibilityType = {
436
- Public: 'public',
437
- Private: 'private',
438
- Invitation: 'invitation'
439
- };
440
393
  /**
441
394
  * BookingsApi - axios parameter creator
442
395
  * @export
@@ -891,17 +844,17 @@ export class BookingsManagerApi extends BaseAPI {
891
844
  export const BookingsStaffApiAxiosParamCreator = function (configuration) {
892
845
  return {
893
846
  /**
894
- * Check-in des joueurs only for club with payment features
847
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
895
848
  * @param {string} bookingId
896
- * @param {CheckInPlayersRequest} checkInPlayersRequest
849
+ * @param {CheckInPlayerRequest} checkInPlayerRequest
897
850
  * @param {*} [options] Override http request option.
898
851
  * @throws {RequiredError}
899
852
  */
900
- checkInPlayers: (bookingId_1, checkInPlayersRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayersRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayersRequest, options = {}) {
853
+ checkInPlayer: (bookingId_1, checkInPlayerRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerRequest, options = {}) {
901
854
  // verify required parameter 'bookingId' is not null or undefined
902
- assertParamExists('checkInPlayers', 'bookingId', bookingId);
903
- // verify required parameter 'checkInPlayersRequest' is not null or undefined
904
- assertParamExists('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest);
855
+ assertParamExists('checkInPlayer', 'bookingId', bookingId);
856
+ // verify required parameter 'checkInPlayerRequest' is not null or undefined
857
+ assertParamExists('checkInPlayer', 'checkInPlayerRequest', checkInPlayerRequest);
905
858
  const localVarPath = `/api/bookings/{bookingId}/check-in`
906
859
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
907
860
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -920,7 +873,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
920
873
  setSearchParams(localVarUrlObj, localVarQueryParameter);
921
874
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
922
875
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
923
- localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration);
876
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerRequest, localVarRequestOptions, configuration);
924
877
  return {
925
878
  url: toPathString(localVarUrlObj),
926
879
  options: localVarRequestOptions,
@@ -1170,18 +1123,18 @@ export const BookingsStaffApiFp = function (configuration) {
1170
1123
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration);
1171
1124
  return {
1172
1125
  /**
1173
- * Check-in des joueurs only for club with payment features
1126
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1174
1127
  * @param {string} bookingId
1175
- * @param {CheckInPlayersRequest} checkInPlayersRequest
1128
+ * @param {CheckInPlayerRequest} checkInPlayerRequest
1176
1129
  * @param {*} [options] Override http request option.
1177
1130
  * @throws {RequiredError}
1178
1131
  */
1179
- checkInPlayers(bookingId, checkInPlayersRequest, options) {
1132
+ checkInPlayer(bookingId, checkInPlayerRequest, options) {
1180
1133
  return __awaiter(this, void 0, void 0, function* () {
1181
1134
  var _a, _b, _c;
1182
- const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
1135
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayer(bookingId, checkInPlayerRequest, options);
1183
1136
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1184
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsStaffApi.checkInPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1137
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsStaffApi.checkInPlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1185
1138
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1186
1139
  });
1187
1140
  },
@@ -1304,13 +1257,13 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1304
1257
  const localVarFp = BookingsStaffApiFp(configuration);
1305
1258
  return {
1306
1259
  /**
1307
- * Check-in des joueurs only for club with payment features
1308
- * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
1260
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1261
+ * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1309
1262
  * @param {*} [options] Override http request option.
1310
1263
  * @throws {RequiredError}
1311
1264
  */
1312
- checkInPlayers(requestParameters, options) {
1313
- return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
1265
+ checkInPlayer(requestParameters, options) {
1266
+ return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
1314
1267
  },
1315
1268
  /**
1316
1269
  * Créer une réservation pour un joueur depuis l\'espace staff
@@ -1385,14 +1338,14 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1385
1338
  */
1386
1339
  export class BookingsStaffApi extends BaseAPI {
1387
1340
  /**
1388
- * Check-in des joueurs only for club with payment features
1389
- * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
1341
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1342
+ * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1390
1343
  * @param {*} [options] Override http request option.
1391
1344
  * @throws {RequiredError}
1392
1345
  * @memberof BookingsStaffApi
1393
1346
  */
1394
- checkInPlayers(requestParameters, options) {
1395
- return BookingsStaffApiFp(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
1347
+ checkInPlayer(requestParameters, options) {
1348
+ return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
1396
1349
  }
1397
1350
  /**
1398
1351
  * Créer une réservation pour un joueur depuis l\'espace staff
@@ -6645,6 +6598,37 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6645
6598
  options: localVarRequestOptions,
6646
6599
  };
6647
6600
  }),
6601
+ /**
6602
+ *
6603
+ * @param {string} clubId
6604
+ * @param {*} [options] Override http request option.
6605
+ * @throws {RequiredError}
6606
+ */
6607
+ getClubType: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
6608
+ // verify required parameter 'clubId' is not null or undefined
6609
+ assertParamExists('getClubType', 'clubId', clubId);
6610
+ const localVarPath = `/api/clubs/{clubId}/clubType`
6611
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
6612
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6613
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6614
+ let baseOptions;
6615
+ if (configuration) {
6616
+ baseOptions = configuration.baseOptions;
6617
+ }
6618
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6619
+ const localVarHeaderParameter = {};
6620
+ const localVarQueryParameter = {};
6621
+ // authentication bearerAuth required
6622
+ // http bearer authentication required
6623
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6624
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6625
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6626
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6627
+ return {
6628
+ url: toPathString(localVarUrlObj),
6629
+ options: localVarRequestOptions,
6630
+ };
6631
+ }),
6648
6632
  /**
6649
6633
  * Récupère les terrains d\'un club
6650
6634
  * @param {*} [options] Override http request option.
@@ -6889,6 +6873,21 @@ export const ClubsStaffApiFp = function (configuration) {
6889
6873
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6890
6874
  });
6891
6875
  },
6876
+ /**
6877
+ *
6878
+ * @param {string} clubId
6879
+ * @param {*} [options] Override http request option.
6880
+ * @throws {RequiredError}
6881
+ */
6882
+ getClubType(clubId, options) {
6883
+ return __awaiter(this, void 0, void 0, function* () {
6884
+ var _a, _b, _c;
6885
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubType(clubId, options);
6886
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6887
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.getClubType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6888
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6889
+ });
6890
+ },
6892
6891
  /**
6893
6892
  * Récupère les terrains d\'un club
6894
6893
  * @param {*} [options] Override http request option.
@@ -7013,6 +7012,15 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
7013
7012
  getClubRoles(options) {
7014
7013
  return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
7015
7014
  },
7015
+ /**
7016
+ *
7017
+ * @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
7018
+ * @param {*} [options] Override http request option.
7019
+ * @throws {RequiredError}
7020
+ */
7021
+ getClubType(requestParameters, options) {
7022
+ return localVarFp.getClubType(requestParameters.clubId, options).then((request) => request(axios, basePath));
7023
+ },
7016
7024
  /**
7017
7025
  * Récupère les terrains d\'un club
7018
7026
  * @param {*} [options] Override http request option.
@@ -7112,6 +7120,16 @@ export class ClubsStaffApi extends BaseAPI {
7112
7120
  getClubRoles(options) {
7113
7121
  return ClubsStaffApiFp(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
7114
7122
  }
7123
+ /**
7124
+ *
7125
+ * @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
7126
+ * @param {*} [options] Override http request option.
7127
+ * @throws {RequiredError}
7128
+ * @memberof ClubsStaffApi
7129
+ */
7130
+ getClubType(requestParameters, options) {
7131
+ return ClubsStaffApiFp(this.configuration).getClubType(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
7132
+ }
7115
7133
  /**
7116
7134
  * Récupère les terrains d\'un club
7117
7135
  * @param {*} [options] Override http request option.
@@ -7323,11 +7341,10 @@ export const EventsApiAxiosParamCreator = function (configuration) {
7323
7341
  /**
7324
7342
  * Get a specific event by ID
7325
7343
  * @param {string} eventId
7326
- * @param {string} [userId]
7327
7344
  * @param {*} [options] Override http request option.
7328
7345
  * @throws {RequiredError}
7329
7346
  */
7330
- getEventById: (eventId_1, userId_1, ...args_1) => __awaiter(this, [eventId_1, userId_1, ...args_1], void 0, function* (eventId, userId, options = {}) {
7347
+ getEventById: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
7331
7348
  // verify required parameter 'eventId' is not null or undefined
7332
7349
  assertParamExists('getEventById', 'eventId', eventId);
7333
7350
  const localVarPath = `/api/events/{eventId}`
@@ -7341,9 +7358,6 @@ export const EventsApiAxiosParamCreator = function (configuration) {
7341
7358
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7342
7359
  const localVarHeaderParameter = {};
7343
7360
  const localVarQueryParameter = {};
7344
- if (userId !== undefined) {
7345
- localVarQueryParameter['userId'] = userId;
7346
- }
7347
7361
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7348
7362
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7349
7363
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7503,14 +7517,13 @@ export const EventsApiFp = function (configuration) {
7503
7517
  /**
7504
7518
  * Get a specific event by ID
7505
7519
  * @param {string} eventId
7506
- * @param {string} [userId]
7507
7520
  * @param {*} [options] Override http request option.
7508
7521
  * @throws {RequiredError}
7509
7522
  */
7510
- getEventById(eventId, userId, options) {
7523
+ getEventById(eventId, options) {
7511
7524
  return __awaiter(this, void 0, void 0, function* () {
7512
7525
  var _a, _b, _c;
7513
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, userId, options);
7526
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, options);
7514
7527
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7515
7528
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getEventById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7516
7529
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -7599,7 +7612,7 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
7599
7612
  * @throws {RequiredError}
7600
7613
  */
7601
7614
  getEventById(requestParameters, options) {
7602
- return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
7615
+ return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
7603
7616
  },
7604
7617
  /**
7605
7618
  * Get all published events for a club
@@ -7665,7 +7678,7 @@ export class EventsApi extends BaseAPI {
7665
7678
  * @memberof EventsApi
7666
7679
  */
7667
7680
  getEventById(requestParameters, options) {
7668
- return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
7681
+ return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
7669
7682
  }
7670
7683
  /**
7671
7684
  * Get all published events for a club
@@ -9110,6 +9123,37 @@ export class SportsPublicApi extends BaseAPI {
9110
9123
  */
9111
9124
  export const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
9112
9125
  return {
9126
+ /**
9127
+ * Supprime (archive) un plan par productId (manager)
9128
+ * @param {string} productId
9129
+ * @param {*} [options] Override http request option.
9130
+ * @throws {RequiredError}
9131
+ */
9132
+ archivePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
9133
+ // verify required parameter 'productId' is not null or undefined
9134
+ assertParamExists('archivePlan', 'productId', productId);
9135
+ const localVarPath = `/api/subscriptions/plans/{productId}/archive`
9136
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
9137
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9138
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9139
+ let baseOptions;
9140
+ if (configuration) {
9141
+ baseOptions = configuration.baseOptions;
9142
+ }
9143
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
9144
+ const localVarHeaderParameter = {};
9145
+ const localVarQueryParameter = {};
9146
+ // authentication bearerAuth required
9147
+ // http bearer authentication required
9148
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
9149
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9150
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9151
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9152
+ return {
9153
+ url: toPathString(localVarUrlObj),
9154
+ options: localVarRequestOptions,
9155
+ };
9156
+ }),
9113
9157
  /**
9114
9158
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9115
9159
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -9143,7 +9187,7 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration)
9143
9187
  };
9144
9188
  }),
9145
9189
  /**
9146
- * Supprime (archive) un plan par productId (manager)
9190
+ * Supprime un plan par productId (manager)
9147
9191
  * @param {string} productId
9148
9192
  * @param {*} [options] Override http request option.
9149
9193
  * @throws {RequiredError}
@@ -9214,6 +9258,21 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration)
9214
9258
  export const SubscriptionsManagerApiFp = function (configuration) {
9215
9259
  const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration);
9216
9260
  return {
9261
+ /**
9262
+ * Supprime (archive) un plan par productId (manager)
9263
+ * @param {string} productId
9264
+ * @param {*} [options] Override http request option.
9265
+ * @throws {RequiredError}
9266
+ */
9267
+ archivePlan(productId, options) {
9268
+ return __awaiter(this, void 0, void 0, function* () {
9269
+ var _a, _b, _c;
9270
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePlan(productId, options);
9271
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9272
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.archivePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9273
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9274
+ });
9275
+ },
9217
9276
  /**
9218
9277
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9219
9278
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -9230,7 +9289,7 @@ export const SubscriptionsManagerApiFp = function (configuration) {
9230
9289
  });
9231
9290
  },
9232
9291
  /**
9233
- * Supprime (archive) un plan par productId (manager)
9292
+ * Supprime un plan par productId (manager)
9234
9293
  * @param {string} productId
9235
9294
  * @param {*} [options] Override http request option.
9236
9295
  * @throws {RequiredError}
@@ -9268,6 +9327,15 @@ export const SubscriptionsManagerApiFp = function (configuration) {
9268
9327
  export const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
9269
9328
  const localVarFp = SubscriptionsManagerApiFp(configuration);
9270
9329
  return {
9330
+ /**
9331
+ * Supprime (archive) un plan par productId (manager)
9332
+ * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
9333
+ * @param {*} [options] Override http request option.
9334
+ * @throws {RequiredError}
9335
+ */
9336
+ archivePlan(requestParameters, options) {
9337
+ return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
9338
+ },
9271
9339
  /**
9272
9340
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9273
9341
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -9278,7 +9346,7 @@ export const SubscriptionsManagerApiFactory = function (configuration, basePath,
9278
9346
  return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
9279
9347
  },
9280
9348
  /**
9281
- * Supprime (archive) un plan par productId (manager)
9349
+ * Supprime un plan par productId (manager)
9282
9350
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
9283
9351
  * @param {*} [options] Override http request option.
9284
9352
  * @throws {RequiredError}
@@ -9304,6 +9372,16 @@ export const SubscriptionsManagerApiFactory = function (configuration, basePath,
9304
9372
  * @extends {BaseAPI}
9305
9373
  */
9306
9374
  export class SubscriptionsManagerApi extends BaseAPI {
9375
+ /**
9376
+ * Supprime (archive) un plan par productId (manager)
9377
+ * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
9378
+ * @param {*} [options] Override http request option.
9379
+ * @throws {RequiredError}
9380
+ * @memberof SubscriptionsManagerApi
9381
+ */
9382
+ archivePlan(requestParameters, options) {
9383
+ return SubscriptionsManagerApiFp(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
9384
+ }
9307
9385
  /**
9308
9386
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9309
9387
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -9315,7 +9393,7 @@ export class SubscriptionsManagerApi extends BaseAPI {
9315
9393
  return SubscriptionsManagerApiFp(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
9316
9394
  }
9317
9395
  /**
9318
- * Supprime (archive) un plan par productId (manager)
9396
+ * Supprime un plan par productId (manager)
9319
9397
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
9320
9398
  * @param {*} [options] Override http request option.
9321
9399
  * @throws {RequiredError}
@@ -10554,41 +10632,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
10554
10632
  options: localVarRequestOptions,
10555
10633
  };
10556
10634
  }),
10557
- /**
10558
- *
10559
- * @param {number} [limit]
10560
- * @param {number} [skip]
10561
- * @param {*} [options] Override http request option.
10562
- * @throws {RequiredError}
10563
- */
10564
- getUserEvents: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
10565
- const localVarPath = `/api/users/me/events`;
10566
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
10567
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10568
- let baseOptions;
10569
- if (configuration) {
10570
- baseOptions = configuration.baseOptions;
10571
- }
10572
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10573
- const localVarHeaderParameter = {};
10574
- const localVarQueryParameter = {};
10575
- // authentication bearerAuth required
10576
- // http bearer authentication required
10577
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
10578
- if (limit !== undefined) {
10579
- localVarQueryParameter['limit'] = limit;
10580
- }
10581
- if (skip !== undefined) {
10582
- localVarQueryParameter['skip'] = skip;
10583
- }
10584
- setSearchParams(localVarUrlObj, localVarQueryParameter);
10585
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10586
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10587
- return {
10588
- url: toPathString(localVarUrlObj),
10589
- options: localVarRequestOptions,
10590
- };
10591
- }),
10592
10635
  /**
10593
10636
  *
10594
10637
  * @param {string} id
@@ -11448,22 +11491,6 @@ export const UsersApiFp = function (configuration) {
11448
11491
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11449
11492
  });
11450
11493
  },
11451
- /**
11452
- *
11453
- * @param {number} [limit]
11454
- * @param {number} [skip]
11455
- * @param {*} [options] Override http request option.
11456
- * @throws {RequiredError}
11457
- */
11458
- getUserEvents(limit, skip, options) {
11459
- return __awaiter(this, void 0, void 0, function* () {
11460
- var _a, _b, _c;
11461
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserEvents(limit, skip, options);
11462
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11463
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11464
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11465
- });
11466
- },
11467
11494
  /**
11468
11495
  *
11469
11496
  * @param {string} id
@@ -11905,15 +11932,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
11905
11932
  getUserBookings(requestParameters = {}, options) {
11906
11933
  return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
11907
11934
  },
11908
- /**
11909
- *
11910
- * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
11911
- * @param {*} [options] Override http request option.
11912
- * @throws {RequiredError}
11913
- */
11914
- getUserEvents(requestParameters = {}, options) {
11915
- return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
11916
- },
11917
11935
  /**
11918
11936
  *
11919
11937
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -12256,16 +12274,6 @@ export class UsersApi extends BaseAPI {
12256
12274
  getUserBookings(requestParameters = {}, options) {
12257
12275
  return UsersApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
12258
12276
  }
12259
- /**
12260
- *
12261
- * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
12262
- * @param {*} [options] Override http request option.
12263
- * @throws {RequiredError}
12264
- * @memberof UsersApi
12265
- */
12266
- getUserEvents(requestParameters = {}, options) {
12267
- return UsersApiFp(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
12268
- }
12269
12277
  /**
12270
12278
  *
12271
12279
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -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/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.125
7
+ * The version of the OpenAPI document: 1.0.121
8
8
  *
9
9
  *
10
10
  * 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).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.125
7
+ * The version of the OpenAPI document: 1.0.121
8
8
  *
9
9
  *
10
10
  * 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).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.125
7
+ * The version of the OpenAPI document: 1.0.121
8
8
  *
9
9
  *
10
10
  * 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).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.125
7
+ * The version of the OpenAPI document: 1.0.121
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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/index.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).