@tennac-booking/sdk 1.0.89 → 1.0.91

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.
package/dist/api.js CHANGED
@@ -7999,6 +7999,33 @@ const UsersApiAxiosParamCreator = function (configuration) {
7999
7999
  options: localVarRequestOptions,
8000
8000
  };
8001
8001
  }),
8002
+ /**
8003
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
8004
+ * @param {*} [options] Override http request option.
8005
+ * @throws {RequiredError}
8006
+ */
8007
+ getMyClubMemberships: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
8008
+ const localVarPath = `/api/users/me/club-memberships`;
8009
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8010
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8011
+ let baseOptions;
8012
+ if (configuration) {
8013
+ baseOptions = configuration.baseOptions;
8014
+ }
8015
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8016
+ const localVarHeaderParameter = {};
8017
+ const localVarQueryParameter = {};
8018
+ // authentication bearerAuth required
8019
+ // http bearer authentication required
8020
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8021
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8022
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8023
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8024
+ return {
8025
+ url: (0, common_1.toPathString)(localVarUrlObj),
8026
+ options: localVarRequestOptions,
8027
+ };
8028
+ }),
8002
8029
  /**
8003
8030
  *
8004
8031
  * @param {number} [radiusInKm]
@@ -8959,6 +8986,20 @@ const UsersApiFp = function (configuration) {
8959
8986
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8960
8987
  });
8961
8988
  },
8989
+ /**
8990
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
8991
+ * @param {*} [options] Override http request option.
8992
+ * @throws {RequiredError}
8993
+ */
8994
+ getMyClubMemberships(options) {
8995
+ return __awaiter(this, void 0, void 0, function* () {
8996
+ var _a, _b, _c;
8997
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClubMemberships(options);
8998
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8999
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getMyClubMemberships']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9000
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9001
+ });
9002
+ },
8962
9003
  /**
8963
9004
  *
8964
9005
  * @param {number} [radiusInKm]
@@ -9438,6 +9479,14 @@ const UsersApiFactory = function (configuration, basePath, axios) {
9438
9479
  getMe(options) {
9439
9480
  return localVarFp.getMe(options).then((request) => request(axios, basePath));
9440
9481
  },
9482
+ /**
9483
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
9484
+ * @param {*} [options] Override http request option.
9485
+ * @throws {RequiredError}
9486
+ */
9487
+ getMyClubMemberships(options) {
9488
+ return localVarFp.getMyClubMemberships(options).then((request) => request(axios, basePath));
9489
+ },
9441
9490
  /**
9442
9491
  *
9443
9492
  * @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
@@ -9766,6 +9815,15 @@ class UsersApi extends base_1.BaseAPI {
9766
9815
  getMe(options) {
9767
9816
  return (0, exports.UsersApiFp)(this.configuration).getMe(options).then((request) => request(this.axios, this.basePath));
9768
9817
  }
9818
+ /**
9819
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
9820
+ * @param {*} [options] Override http request option.
9821
+ * @throws {RequiredError}
9822
+ * @memberof UsersApi
9823
+ */
9824
+ getMyClubMemberships(options) {
9825
+ return (0, exports.UsersApiFp)(this.configuration).getMyClubMemberships(options).then((request) => request(this.axios, this.basePath));
9826
+ }
9769
9827
  /**
9770
9828
  *
9771
9829
  * @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.