@tennac-booking/sdk 1.0.129 → 1.0.131

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 (63) hide show
  1. package/.openapi-generator/FILES +17 -2
  2. package/README.md +24 -5
  3. package/api.ts +876 -74
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +685 -57
  8. package/dist/api.js +286 -29
  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 +685 -57
  16. package/dist/esm/api.js +282 -25
  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/{CheckInPlayersRequest.md → CheckInPlayerRequest.md} +5 -5
  29. package/docs/{CheckInPlayersResponse.md → CheckInPlayerResponse.md} +5 -5
  30. package/docs/ClubAccessSettingsResponse.md +26 -0
  31. package/docs/ClubPlayerSubscriptionSummary.md +3 -3
  32. package/docs/ClubSettingsManagerApi.md +52 -0
  33. package/docs/ClubSettingsStaffApi.md +44 -0
  34. package/docs/ClubsStaffApi.md +47 -0
  35. package/docs/CreatePlan201Response.md +2 -0
  36. package/docs/CreateSubscriptionPlanRequest.md +2 -2
  37. package/docs/CreateSubscriptionPlanRequestDiscount.md +2 -0
  38. package/docs/DeleteSubscriptionPlanResponse.md +2 -0
  39. package/docs/EstimateEventPrice200Response.md +0 -2
  40. package/docs/EventBookingDetailSummary.md +2 -2
  41. package/docs/EventBookingDetailSummaryPaymentPerPlayersInner.md +30 -0
  42. package/docs/GetClubType200Response.md +20 -0
  43. package/docs/HotelAccessSettings.md +26 -0
  44. package/docs/MonthlyTurnoverResponse.md +0 -1
  45. package/docs/OffPeakRule.md +2 -0
  46. package/docs/PartialHotelAccessSettings.md +27 -0
  47. package/docs/PartialPaymentRequirementsSettings.md +23 -0
  48. package/docs/PartialPublicAccessSettings.md +25 -0
  49. package/docs/PartialSchoolAccessSettings.md +25 -0
  50. package/docs/PaymentRequirementsSettings.md +22 -0
  51. package/docs/PlanPrice.md +26 -0
  52. package/docs/PlanPriceInput.md +22 -0
  53. package/docs/PublicAccessSettings.md +24 -0
  54. package/docs/PublicSubscriptionPlanResponse.md +5 -1
  55. package/docs/SchoolAccessSettings.md +24 -0
  56. package/docs/SendSubscriptionInvitationRequest.md +2 -0
  57. package/docs/SubscriptionPlanDiscountResponse.md +34 -0
  58. package/docs/SubscriptionPlanResponse.md +7 -1
  59. package/docs/SubscriptionsManagerApi.md +55 -1
  60. package/docs/UpdateClubAccessSettingsRequest.md +26 -0
  61. package/docs/UserClubSubscription.md +2 -0
  62. package/index.ts +1 -1
  63. package/package.json +1 -1
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.129
7
+ * The version of the OpenAPI document: 1.0.131
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -205,6 +205,11 @@ export const InvoiceStatusSETUPPENDING = {
205
205
  export const InvoiceStatusSETUPSUCCESS = {
206
206
  SetupSuccess: 'setup_success'
207
207
  };
208
+ export const PartialPublicAccessSettingsPaymentModeEnum = {
209
+ Free: 'free',
210
+ AccessFee: 'access_fee',
211
+ PerCourt: 'per_court'
212
+ };
208
213
  /**
209
214
  *
210
215
  * @export
@@ -249,6 +254,11 @@ export const PlayerCategoryId = {
249
254
  MostActive: 'most-active',
250
255
  Nearby: 'nearby'
251
256
  };
257
+ export const PublicAccessSettingsPaymentModeEnum = {
258
+ Free: 'free',
259
+ AccessFee: 'access_fee',
260
+ PerCourt: 'per_court'
261
+ };
252
262
  export const RecurringDefinitionResponseRecurringTypeEnum = {
253
263
  Daily: 'daily',
254
264
  Weekly: 'weekly',
@@ -916,17 +926,17 @@ export class BookingsManagerApi extends BaseAPI {
916
926
  export const BookingsStaffApiAxiosParamCreator = function (configuration) {
917
927
  return {
918
928
  /**
919
- * Check-in des joueurs only for club with payment features
929
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
920
930
  * @param {string} bookingId
921
- * @param {CheckInPlayersRequest} checkInPlayersRequest
931
+ * @param {CheckInPlayerRequest} checkInPlayerRequest
922
932
  * @param {*} [options] Override http request option.
923
933
  * @throws {RequiredError}
924
934
  */
925
- checkInPlayers: (bookingId_1, checkInPlayersRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayersRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayersRequest, options = {}) {
935
+ checkInPlayer: (bookingId_1, checkInPlayerRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerRequest, options = {}) {
926
936
  // verify required parameter 'bookingId' is not null or undefined
927
- assertParamExists('checkInPlayers', 'bookingId', bookingId);
928
- // verify required parameter 'checkInPlayersRequest' is not null or undefined
929
- assertParamExists('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest);
937
+ assertParamExists('checkInPlayer', 'bookingId', bookingId);
938
+ // verify required parameter 'checkInPlayerRequest' is not null or undefined
939
+ assertParamExists('checkInPlayer', 'checkInPlayerRequest', checkInPlayerRequest);
930
940
  const localVarPath = `/api/bookings/{bookingId}/check-in`
931
941
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
932
942
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -945,7 +955,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
945
955
  setSearchParams(localVarUrlObj, localVarQueryParameter);
946
956
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
947
957
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
948
- localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration);
958
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerRequest, localVarRequestOptions, configuration);
949
959
  return {
950
960
  url: toPathString(localVarUrlObj),
951
961
  options: localVarRequestOptions,
@@ -1195,18 +1205,18 @@ export const BookingsStaffApiFp = function (configuration) {
1195
1205
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration);
1196
1206
  return {
1197
1207
  /**
1198
- * Check-in des joueurs only for club with payment features
1208
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1199
1209
  * @param {string} bookingId
1200
- * @param {CheckInPlayersRequest} checkInPlayersRequest
1210
+ * @param {CheckInPlayerRequest} checkInPlayerRequest
1201
1211
  * @param {*} [options] Override http request option.
1202
1212
  * @throws {RequiredError}
1203
1213
  */
1204
- checkInPlayers(bookingId, checkInPlayersRequest, options) {
1214
+ checkInPlayer(bookingId, checkInPlayerRequest, options) {
1205
1215
  return __awaiter(this, void 0, void 0, function* () {
1206
1216
  var _a, _b, _c;
1207
- const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
1217
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayer(bookingId, checkInPlayerRequest, options);
1208
1218
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1209
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsStaffApi.checkInPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1219
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsStaffApi.checkInPlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1210
1220
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1211
1221
  });
1212
1222
  },
@@ -1329,13 +1339,13 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1329
1339
  const localVarFp = BookingsStaffApiFp(configuration);
1330
1340
  return {
1331
1341
  /**
1332
- * Check-in des joueurs only for club with payment features
1333
- * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
1342
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1343
+ * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1334
1344
  * @param {*} [options] Override http request option.
1335
1345
  * @throws {RequiredError}
1336
1346
  */
1337
- checkInPlayers(requestParameters, options) {
1338
- return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
1347
+ checkInPlayer(requestParameters, options) {
1348
+ return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
1339
1349
  },
1340
1350
  /**
1341
1351
  * Créer une réservation pour un joueur depuis l\'espace staff
@@ -1410,14 +1420,14 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1410
1420
  */
1411
1421
  export class BookingsStaffApi extends BaseAPI {
1412
1422
  /**
1413
- * Check-in des joueurs only for club with payment features
1414
- * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
1423
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1424
+ * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1415
1425
  * @param {*} [options] Override http request option.
1416
1426
  * @throws {RequiredError}
1417
1427
  * @memberof BookingsStaffApi
1418
1428
  */
1419
- checkInPlayers(requestParameters, options) {
1420
- return BookingsStaffApiFp(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
1429
+ checkInPlayer(requestParameters, options) {
1430
+ return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
1421
1431
  }
1422
1432
  /**
1423
1433
  * Créer une réservation pour un joueur depuis l\'espace staff
@@ -3609,6 +3619,38 @@ export class ClubRolesStaffApi extends BaseAPI {
3609
3619
  */
3610
3620
  export const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
3611
3621
  return {
3622
+ /**
3623
+ *
3624
+ * @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
3625
+ * @param {*} [options] Override http request option.
3626
+ * @throws {RequiredError}
3627
+ */
3628
+ updateAccessSettings: (updateClubAccessSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubAccessSettingsRequest_1, ...args_1], void 0, function* (updateClubAccessSettingsRequest, options = {}) {
3629
+ // verify required parameter 'updateClubAccessSettingsRequest' is not null or undefined
3630
+ assertParamExists('updateAccessSettings', 'updateClubAccessSettingsRequest', updateClubAccessSettingsRequest);
3631
+ const localVarPath = `/api/club-settings/access`;
3632
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3633
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3634
+ let baseOptions;
3635
+ if (configuration) {
3636
+ baseOptions = configuration.baseOptions;
3637
+ }
3638
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3639
+ const localVarHeaderParameter = {};
3640
+ const localVarQueryParameter = {};
3641
+ // authentication bearerAuth required
3642
+ // http bearer authentication required
3643
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3644
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3645
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3646
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3647
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3648
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubAccessSettingsRequest, localVarRequestOptions, configuration);
3649
+ return {
3650
+ url: toPathString(localVarUrlObj),
3651
+ options: localVarRequestOptions,
3652
+ };
3653
+ }),
3612
3654
  /**
3613
3655
  *
3614
3656
  * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
@@ -3746,6 +3788,21 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
3746
3788
  export const ClubSettingsManagerApiFp = function (configuration) {
3747
3789
  const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration);
3748
3790
  return {
3791
+ /**
3792
+ *
3793
+ * @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
3794
+ * @param {*} [options] Override http request option.
3795
+ * @throws {RequiredError}
3796
+ */
3797
+ updateAccessSettings(updateClubAccessSettingsRequest, options) {
3798
+ return __awaiter(this, void 0, void 0, function* () {
3799
+ var _a, _b, _c;
3800
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAccessSettings(updateClubAccessSettingsRequest, options);
3801
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3802
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateAccessSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3803
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3804
+ });
3805
+ },
3749
3806
  /**
3750
3807
  *
3751
3808
  * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
@@ -3815,6 +3872,15 @@ export const ClubSettingsManagerApiFp = function (configuration) {
3815
3872
  export const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
3816
3873
  const localVarFp = ClubSettingsManagerApiFp(configuration);
3817
3874
  return {
3875
+ /**
3876
+ *
3877
+ * @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
3878
+ * @param {*} [options] Override http request option.
3879
+ * @throws {RequiredError}
3880
+ */
3881
+ updateAccessSettings(requestParameters, options) {
3882
+ return localVarFp.updateAccessSettings(requestParameters.updateClubAccessSettingsRequest, options).then((request) => request(axios, basePath));
3883
+ },
3818
3884
  /**
3819
3885
  *
3820
3886
  * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
@@ -3860,6 +3926,16 @@ export const ClubSettingsManagerApiFactory = function (configuration, basePath,
3860
3926
  * @extends {BaseAPI}
3861
3927
  */
3862
3928
  export class ClubSettingsManagerApi extends BaseAPI {
3929
+ /**
3930
+ *
3931
+ * @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
3932
+ * @param {*} [options] Override http request option.
3933
+ * @throws {RequiredError}
3934
+ * @memberof ClubSettingsManagerApi
3935
+ */
3936
+ updateAccessSettings(requestParameters, options) {
3937
+ return ClubSettingsManagerApiFp(this.configuration).updateAccessSettings(requestParameters.updateClubAccessSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3938
+ }
3863
3939
  /**
3864
3940
  *
3865
3941
  * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
@@ -3907,6 +3983,33 @@ export class ClubSettingsManagerApi extends BaseAPI {
3907
3983
  */
3908
3984
  export const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
3909
3985
  return {
3986
+ /**
3987
+ *
3988
+ * @param {*} [options] Override http request option.
3989
+ * @throws {RequiredError}
3990
+ */
3991
+ getAccessSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3992
+ const localVarPath = `/api/club-settings/access`;
3993
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3994
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3995
+ let baseOptions;
3996
+ if (configuration) {
3997
+ baseOptions = configuration.baseOptions;
3998
+ }
3999
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4000
+ const localVarHeaderParameter = {};
4001
+ const localVarQueryParameter = {};
4002
+ // authentication bearerAuth required
4003
+ // http bearer authentication required
4004
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4005
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4006
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4007
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4008
+ return {
4009
+ url: toPathString(localVarUrlObj),
4010
+ options: localVarRequestOptions,
4011
+ };
4012
+ }),
3910
4013
  /**
3911
4014
  *
3912
4015
  * @param {*} [options] Override http request option.
@@ -4024,6 +4127,20 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
4024
4127
  export const ClubSettingsStaffApiFp = function (configuration) {
4025
4128
  const localVarAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator(configuration);
4026
4129
  return {
4130
+ /**
4131
+ *
4132
+ * @param {*} [options] Override http request option.
4133
+ * @throws {RequiredError}
4134
+ */
4135
+ getAccessSettings(options) {
4136
+ return __awaiter(this, void 0, void 0, function* () {
4137
+ var _a, _b, _c;
4138
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccessSettings(options);
4139
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4140
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getAccessSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4141
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4142
+ });
4143
+ },
4027
4144
  /**
4028
4145
  *
4029
4146
  * @param {*} [options] Override http request option.
@@ -4089,6 +4206,14 @@ export const ClubSettingsStaffApiFp = function (configuration) {
4089
4206
  export const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
4090
4207
  const localVarFp = ClubSettingsStaffApiFp(configuration);
4091
4208
  return {
4209
+ /**
4210
+ *
4211
+ * @param {*} [options] Override http request option.
4212
+ * @throws {RequiredError}
4213
+ */
4214
+ getAccessSettings(options) {
4215
+ return localVarFp.getAccessSettings(options).then((request) => request(axios, basePath));
4216
+ },
4092
4217
  /**
4093
4218
  *
4094
4219
  * @param {*} [options] Override http request option.
@@ -4130,6 +4255,15 @@ export const ClubSettingsStaffApiFactory = function (configuration, basePath, ax
4130
4255
  * @extends {BaseAPI}
4131
4256
  */
4132
4257
  export class ClubSettingsStaffApi extends BaseAPI {
4258
+ /**
4259
+ *
4260
+ * @param {*} [options] Override http request option.
4261
+ * @throws {RequiredError}
4262
+ * @memberof ClubSettingsStaffApi
4263
+ */
4264
+ getAccessSettings(options) {
4265
+ return ClubSettingsStaffApiFp(this.configuration).getAccessSettings(options).then((request) => request(this.axios, this.basePath));
4266
+ }
4133
4267
  /**
4134
4268
  *
4135
4269
  * @param {*} [options] Override http request option.
@@ -6670,6 +6804,33 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6670
6804
  options: localVarRequestOptions,
6671
6805
  };
6672
6806
  }),
6807
+ /**
6808
+ *
6809
+ * @param {*} [options] Override http request option.
6810
+ * @throws {RequiredError}
6811
+ */
6812
+ getClubType: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6813
+ const localVarPath = `/api/clubs/clubType`;
6814
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6815
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6816
+ let baseOptions;
6817
+ if (configuration) {
6818
+ baseOptions = configuration.baseOptions;
6819
+ }
6820
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6821
+ const localVarHeaderParameter = {};
6822
+ const localVarQueryParameter = {};
6823
+ // authentication bearerAuth required
6824
+ // http bearer authentication required
6825
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6826
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6827
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6828
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6829
+ return {
6830
+ url: toPathString(localVarUrlObj),
6831
+ options: localVarRequestOptions,
6832
+ };
6833
+ }),
6673
6834
  /**
6674
6835
  * Récupère les terrains d\'un club
6675
6836
  * @param {*} [options] Override http request option.
@@ -6914,6 +7075,20 @@ export const ClubsStaffApiFp = function (configuration) {
6914
7075
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6915
7076
  });
6916
7077
  },
7078
+ /**
7079
+ *
7080
+ * @param {*} [options] Override http request option.
7081
+ * @throws {RequiredError}
7082
+ */
7083
+ getClubType(options) {
7084
+ return __awaiter(this, void 0, void 0, function* () {
7085
+ var _a, _b, _c;
7086
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubType(options);
7087
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7088
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.getClubType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7089
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7090
+ });
7091
+ },
6917
7092
  /**
6918
7093
  * Récupère les terrains d\'un club
6919
7094
  * @param {*} [options] Override http request option.
@@ -7038,6 +7213,14 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
7038
7213
  getClubRoles(options) {
7039
7214
  return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
7040
7215
  },
7216
+ /**
7217
+ *
7218
+ * @param {*} [options] Override http request option.
7219
+ * @throws {RequiredError}
7220
+ */
7221
+ getClubType(options) {
7222
+ return localVarFp.getClubType(options).then((request) => request(axios, basePath));
7223
+ },
7041
7224
  /**
7042
7225
  * Récupère les terrains d\'un club
7043
7226
  * @param {*} [options] Override http request option.
@@ -7137,6 +7320,15 @@ export class ClubsStaffApi extends BaseAPI {
7137
7320
  getClubRoles(options) {
7138
7321
  return ClubsStaffApiFp(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
7139
7322
  }
7323
+ /**
7324
+ *
7325
+ * @param {*} [options] Override http request option.
7326
+ * @throws {RequiredError}
7327
+ * @memberof ClubsStaffApi
7328
+ */
7329
+ getClubType(options) {
7330
+ return ClubsStaffApiFp(this.configuration).getClubType(options).then((request) => request(this.axios, this.basePath));
7331
+ }
7140
7332
  /**
7141
7333
  * Récupère les terrains d\'un club
7142
7334
  * @param {*} [options] Override http request option.
@@ -9271,6 +9463,37 @@ export class SportsPublicApi extends BaseAPI {
9271
9463
  */
9272
9464
  export const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
9273
9465
  return {
9466
+ /**
9467
+ * Supprime (archive) un plan par productId (manager)
9468
+ * @param {string} productId
9469
+ * @param {*} [options] Override http request option.
9470
+ * @throws {RequiredError}
9471
+ */
9472
+ archivePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
9473
+ // verify required parameter 'productId' is not null or undefined
9474
+ assertParamExists('archivePlan', 'productId', productId);
9475
+ const localVarPath = `/api/subscriptions/plans/{productId}/archive`
9476
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
9477
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9478
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9479
+ let baseOptions;
9480
+ if (configuration) {
9481
+ baseOptions = configuration.baseOptions;
9482
+ }
9483
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
9484
+ const localVarHeaderParameter = {};
9485
+ const localVarQueryParameter = {};
9486
+ // authentication bearerAuth required
9487
+ // http bearer authentication required
9488
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
9489
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9490
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9491
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9492
+ return {
9493
+ url: toPathString(localVarUrlObj),
9494
+ options: localVarRequestOptions,
9495
+ };
9496
+ }),
9274
9497
  /**
9275
9498
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9276
9499
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -9304,7 +9527,7 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration)
9304
9527
  };
9305
9528
  }),
9306
9529
  /**
9307
- * Supprime (archive) un plan par productId (manager)
9530
+ * Supprime un plan par productId (manager)
9308
9531
  * @param {string} productId
9309
9532
  * @param {*} [options] Override http request option.
9310
9533
  * @throws {RequiredError}
@@ -9375,6 +9598,21 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration)
9375
9598
  export const SubscriptionsManagerApiFp = function (configuration) {
9376
9599
  const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration);
9377
9600
  return {
9601
+ /**
9602
+ * Supprime (archive) un plan par productId (manager)
9603
+ * @param {string} productId
9604
+ * @param {*} [options] Override http request option.
9605
+ * @throws {RequiredError}
9606
+ */
9607
+ archivePlan(productId, options) {
9608
+ return __awaiter(this, void 0, void 0, function* () {
9609
+ var _a, _b, _c;
9610
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePlan(productId, options);
9611
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9612
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.archivePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9613
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9614
+ });
9615
+ },
9378
9616
  /**
9379
9617
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9380
9618
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -9391,7 +9629,7 @@ export const SubscriptionsManagerApiFp = function (configuration) {
9391
9629
  });
9392
9630
  },
9393
9631
  /**
9394
- * Supprime (archive) un plan par productId (manager)
9632
+ * Supprime un plan par productId (manager)
9395
9633
  * @param {string} productId
9396
9634
  * @param {*} [options] Override http request option.
9397
9635
  * @throws {RequiredError}
@@ -9429,6 +9667,15 @@ export const SubscriptionsManagerApiFp = function (configuration) {
9429
9667
  export const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
9430
9668
  const localVarFp = SubscriptionsManagerApiFp(configuration);
9431
9669
  return {
9670
+ /**
9671
+ * Supprime (archive) un plan par productId (manager)
9672
+ * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
9673
+ * @param {*} [options] Override http request option.
9674
+ * @throws {RequiredError}
9675
+ */
9676
+ archivePlan(requestParameters, options) {
9677
+ return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
9678
+ },
9432
9679
  /**
9433
9680
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9434
9681
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -9439,7 +9686,7 @@ export const SubscriptionsManagerApiFactory = function (configuration, basePath,
9439
9686
  return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
9440
9687
  },
9441
9688
  /**
9442
- * Supprime (archive) un plan par productId (manager)
9689
+ * Supprime un plan par productId (manager)
9443
9690
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
9444
9691
  * @param {*} [options] Override http request option.
9445
9692
  * @throws {RequiredError}
@@ -9465,6 +9712,16 @@ export const SubscriptionsManagerApiFactory = function (configuration, basePath,
9465
9712
  * @extends {BaseAPI}
9466
9713
  */
9467
9714
  export class SubscriptionsManagerApi extends BaseAPI {
9715
+ /**
9716
+ * Supprime (archive) un plan par productId (manager)
9717
+ * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
9718
+ * @param {*} [options] Override http request option.
9719
+ * @throws {RequiredError}
9720
+ * @memberof SubscriptionsManagerApi
9721
+ */
9722
+ archivePlan(requestParameters, options) {
9723
+ return SubscriptionsManagerApiFp(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
9724
+ }
9468
9725
  /**
9469
9726
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9470
9727
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -9476,7 +9733,7 @@ export class SubscriptionsManagerApi extends BaseAPI {
9476
9733
  return SubscriptionsManagerApiFp(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
9477
9734
  }
9478
9735
  /**
9479
- * Supprime (archive) un plan par productId (manager)
9736
+ * Supprime un plan par productId (manager)
9480
9737
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
9481
9738
  * @param {*} [options] Override http request option.
9482
9739
  * @throws {RequiredError}
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.129
5
+ * The version of the OpenAPI document: 1.0.131
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.129
7
+ * The version of the OpenAPI document: 1.0.131
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.129
5
+ * The version of the OpenAPI document: 1.0.131
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.129
7
+ * The version of the OpenAPI document: 1.0.131
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.129
5
+ * The version of the OpenAPI document: 1.0.131
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.129
7
+ * The version of the OpenAPI document: 1.0.131
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.129
5
+ * The version of the OpenAPI document: 1.0.131
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.129
7
+ * The version of the OpenAPI document: 1.0.131
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.129
5
+ * The version of the OpenAPI document: 1.0.131
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.129
8
+ * The version of the OpenAPI document: 1.0.131
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).