"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.LCDQueryClient = void 0;
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _helpers = require("../helpers");
var LCDQueryClient = exports.LCDQueryClient = /*#__PURE__*/function () {
  function LCDQueryClient(_ref) {
    var requestClient = _ref.requestClient;
    (0, _classCallCheck2["default"])(this, LCDQueryClient);
    (0, _defineProperty2["default"])(this, "req", void 0);
    this.req = requestClient;
    this.params = this.params.bind(this);
    this.vestedAmount = this.vestedAmount.bind(this);
    this.task = this.task.bind(this);
    this.taskAll = this.taskAll.bind(this);
    this.branchAll = this.branchAll.bind(this);
    this.repositoryBranch = this.repositoryBranch.bind(this);
    this.repositoryBranchSha = this.repositoryBranchSha.bind(this);
    this.repositoryBranchAll = this.repositoryBranchAll.bind(this);
    this.tagAll = this.tagAll.bind(this);
    this.repositoryTag = this.repositoryTag.bind(this);
    this.repositoryTagSha = this.repositoryTagSha.bind(this);
    this.repositoryTagAll = this.repositoryTagAll.bind(this);
    this.daoMember = this.daoMember.bind(this);
    this.daoMemberAll = this.daoMemberAll.bind(this);
    this.memberAll = this.memberAll.bind(this);
    this.bounty = this.bounty.bind(this);
    this.bountyAll = this.bountyAll.bind(this);
    this.release = this.release.bind(this);
    this.releaseAll = this.releaseAll.bind(this);
    this.pullRequestAll = this.pullRequestAll.bind(this);
    this.dao = this.dao.bind(this);
    this.daoAll = this.daoAll.bind(this);
    this.issueComment = this.issueComment.bind(this);
    this.pullRequestComment = this.pullRequestComment.bind(this);
    this.commentAll = this.commentAll.bind(this);
    this.issueCommentAll = this.issueCommentAll.bind(this);
    this.pullRequestCommentAll = this.pullRequestCommentAll.bind(this);
    this.issueAll = this.issueAll.bind(this);
    this.repositoryReleaseLatest = this.repositoryReleaseLatest.bind(this);
    this.repositoryRelease = this.repositoryRelease.bind(this);
    this.repositoryReleaseAll = this.repositoryReleaseAll.bind(this);
    this.repositoryIssue = this.repositoryIssue.bind(this);
    this.repositoryIssueAll = this.repositoryIssueAll.bind(this);
    this.repositoryPullRequest = this.repositoryPullRequest.bind(this);
    this.repositoryPullRequestAll = this.repositoryPullRequestAll.bind(this);
    this.repository = this.repository.bind(this);
    this.repositoryAll = this.repositoryAll.bind(this);
    this.forkAll = this.forkAll.bind(this);
    this.user = this.user.bind(this);
    this.userDaoAll = this.userDaoAll.bind(this);
    this.userAll = this.userAll.bind(this);
    this.anyRepositoryAll = this.anyRepositoryAll.bind(this);
    this.anyRepository = this.anyRepository.bind(this);
    this.whois = this.whois.bind(this);
    this.whoisAll = this.whoisAll.bind(this);
    this.pullRequestMergePermission = this.pullRequestMergePermission.bind(this);
    this.checkGitServerAuthorization = this.checkGitServerAuthorization.bind(this);
    this.checkStorageProviderAuthorization = this.checkStorageProviderAuthorization.bind(this);
  }
  /* Params returns the total set of gitopia parameters. */
  return (0, _createClass2["default"])(LCDQueryClient, [{
    key: "params",
    value: (function () {
      var _params2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
        var _params,
          endpoint,
          _args = arguments;
        return _regenerator["default"].wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
              endpoint = "gitopia/gitopia/gitopia/params";
              _context.next = 4;
              return this.req.get(endpoint);
            case 4:
              return _context.abrupt("return", _context.sent);
            case 5:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      function params() {
        return _params2.apply(this, arguments);
      }
      return params;
    }() /* query vested amount for developer address */)
  }, {
    key: "vestedAmount",
    value: (function () {
      var _vestedAmount = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/vestedAmount/".concat(params.address);
              _context2.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context2.abrupt("return", _context2.sent);
            case 4:
            case "end":
              return _context2.stop();
          }
        }, _callee2, this);
      }));
      function vestedAmount(_x) {
        return _vestedAmount.apply(this, arguments);
      }
      return vestedAmount;
    }() /* Queries a Task by id. */)
  }, {
    key: "task",
    value: (function () {
      var _task = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee3$(_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/task/".concat(params.id);
              _context3.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context3.abrupt("return", _context3.sent);
            case 4:
            case "end":
              return _context3.stop();
          }
        }, _callee3, this);
      }));
      function task(_x2) {
        return _task.apply(this, arguments);
      }
      return task;
    }() /* Queries a list of Task items. */)
  }, {
    key: "taskAll",
    value: (function () {
      var _taskAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
        var params,
          options,
          endpoint,
          _args4 = arguments;
        return _regenerator["default"].wrap(function _callee4$(_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {
                pagination: undefined
              };
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/task";
              _context4.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context4.abrupt("return", _context4.sent);
            case 7:
            case "end":
              return _context4.stop();
          }
        }, _callee4, this);
      }));
      function taskAll() {
        return _taskAll.apply(this, arguments);
      }
      return taskAll;
    }() /* Queries a list of Branch items. */)
  }, {
    key: "branchAll",
    value: (function () {
      var _branchAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
        var params,
          options,
          endpoint,
          _args5 = arguments;
        return _regenerator["default"].wrap(function _callee5$(_context5) {
          while (1) switch (_context5.prev = _context5.next) {
            case 0:
              params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {
                pagination: undefined
              };
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/branch";
              _context5.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context5.abrupt("return", _context5.sent);
            case 7:
            case "end":
              return _context5.stop();
          }
        }, _callee5, this);
      }));
      function branchAll() {
        return _branchAll.apply(this, arguments);
      }
      return branchAll;
    }() /* Queries Repository Branch by name. */)
  }, {
    key: "repositoryBranch",
    value: (function () {
      var _repositoryBranch = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee6$(_context6) {
          while (1) switch (_context6.prev = _context6.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/".concat(params.id, "/repository/").concat(params.repositoryName, "/branch/").concat(params.branchName);
              _context6.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context6.abrupt("return", _context6.sent);
            case 4:
            case "end":
              return _context6.stop();
          }
        }, _callee6, this);
      }));
      function repositoryBranch(_x3) {
        return _repositoryBranch.apply(this, arguments);
      }
      return repositoryBranch;
    }() /* RepositoryBranchSha */)
  }, {
    key: "repositoryBranchSha",
    value: (function () {
      var _repositoryBranchSha = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee7$(_context7) {
          while (1) switch (_context7.prev = _context7.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/".concat(params.id, "/repository/").concat(params.repositoryName, "/branch/").concat(params.branchName, "/sha");
              _context7.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context7.abrupt("return", _context7.sent);
            case 4:
            case "end":
              return _context7.stop();
          }
        }, _callee7, this);
      }));
      function repositoryBranchSha(_x4) {
        return _repositoryBranchSha.apply(this, arguments);
      }
      return repositoryBranchSha;
    }() /* Queries a list of Repository Branch. */)
  }, {
    key: "repositoryBranchAll",
    value: (function () {
      var _repositoryBranchAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee8$(_context8) {
          while (1) switch (_context8.prev = _context8.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/".concat(params.id, "/repository/").concat(params.repositoryName, "/branch");
              _context8.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context8.abrupt("return", _context8.sent);
            case 6:
            case "end":
              return _context8.stop();
          }
        }, _callee8, this);
      }));
      function repositoryBranchAll(_x5) {
        return _repositoryBranchAll.apply(this, arguments);
      }
      return repositoryBranchAll;
    }() /* Queries a list of Tag items. */)
  }, {
    key: "tagAll",
    value: (function () {
      var _tagAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9() {
        var params,
          options,
          endpoint,
          _args9 = arguments;
        return _regenerator["default"].wrap(function _callee9$(_context9) {
          while (1) switch (_context9.prev = _context9.next) {
            case 0:
              params = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {
                pagination: undefined
              };
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/tag";
              _context9.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context9.abrupt("return", _context9.sent);
            case 7:
            case "end":
              return _context9.stop();
          }
        }, _callee9, this);
      }));
      function tagAll() {
        return _tagAll.apply(this, arguments);
      }
      return tagAll;
    }() /* Queries a Repository Tag by id. */)
  }, {
    key: "repositoryTag",
    value: (function () {
      var _repositoryTag = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee10$(_context10) {
          while (1) switch (_context10.prev = _context10.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/".concat(params.id, "/repository/").concat(params.repositoryName, "/tag/").concat(params.tagName);
              _context10.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context10.abrupt("return", _context10.sent);
            case 4:
            case "end":
              return _context10.stop();
          }
        }, _callee10, this);
      }));
      function repositoryTag(_x6) {
        return _repositoryTag.apply(this, arguments);
      }
      return repositoryTag;
    }() /* RepositoryTagSha */)
  }, {
    key: "repositoryTagSha",
    value: (function () {
      var _repositoryTagSha = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee11$(_context11) {
          while (1) switch (_context11.prev = _context11.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/".concat(params.id, "/repository/").concat(params.repositoryName, "/tag/").concat(params.tagName, "/sha");
              _context11.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context11.abrupt("return", _context11.sent);
            case 4:
            case "end":
              return _context11.stop();
          }
        }, _callee11, this);
      }));
      function repositoryTagSha(_x7) {
        return _repositoryTagSha.apply(this, arguments);
      }
      return repositoryTagSha;
    }() /* Queries a list of Repository Tag. */)
  }, {
    key: "repositoryTagAll",
    value: (function () {
      var _repositoryTagAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee12(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee12$(_context12) {
          while (1) switch (_context12.prev = _context12.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/".concat(params.id, "/repository/").concat(params.repositoryName, "/tag");
              _context12.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context12.abrupt("return", _context12.sent);
            case 6:
            case "end":
              return _context12.stop();
          }
        }, _callee12, this);
      }));
      function repositoryTagAll(_x8) {
        return _repositoryTagAll.apply(this, arguments);
      }
      return repositoryTagAll;
    }() /* Queries a Member by id. */)
  }, {
    key: "daoMember",
    value: (function () {
      var _daoMember = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee13$(_context13) {
          while (1) switch (_context13.prev = _context13.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/dao/".concat(params.daoId, "/member/").concat(params.userId);
              _context13.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context13.abrupt("return", _context13.sent);
            case 4:
            case "end":
              return _context13.stop();
          }
        }, _callee13, this);
      }));
      function daoMember(_x9) {
        return _daoMember.apply(this, arguments);
      }
      return daoMember;
    }() /* Queries a list of Dao Member. */)
  }, {
    key: "daoMemberAll",
    value: (function () {
      var _daoMemberAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee14(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee14$(_context14) {
          while (1) switch (_context14.prev = _context14.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/dao/".concat(params.daoId, "/member");
              _context14.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context14.abrupt("return", _context14.sent);
            case 6:
            case "end":
              return _context14.stop();
          }
        }, _callee14, this);
      }));
      function daoMemberAll(_x10) {
        return _daoMemberAll.apply(this, arguments);
      }
      return daoMemberAll;
    }() /* Queries a list of Member items. */)
  }, {
    key: "memberAll",
    value: (function () {
      var _memberAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee15() {
        var params,
          options,
          endpoint,
          _args15 = arguments;
        return _regenerator["default"].wrap(function _callee15$(_context15) {
          while (1) switch (_context15.prev = _context15.next) {
            case 0:
              params = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {
                pagination: undefined
              };
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/member";
              _context15.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context15.abrupt("return", _context15.sent);
            case 7:
            case "end":
              return _context15.stop();
          }
        }, _callee15, this);
      }));
      function memberAll() {
        return _memberAll.apply(this, arguments);
      }
      return memberAll;
    }() /* Queries a Bounty by id. */)
  }, {
    key: "bounty",
    value: (function () {
      var _bounty = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee16(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee16$(_context16) {
          while (1) switch (_context16.prev = _context16.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/bounty/".concat(params.id);
              _context16.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context16.abrupt("return", _context16.sent);
            case 4:
            case "end":
              return _context16.stop();
          }
        }, _callee16, this);
      }));
      function bounty(_x11) {
        return _bounty.apply(this, arguments);
      }
      return bounty;
    }() /* Queries a list of Bounty items. */)
  }, {
    key: "bountyAll",
    value: (function () {
      var _bountyAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee17() {
        var params,
          options,
          endpoint,
          _args17 = arguments;
        return _regenerator["default"].wrap(function _callee17$(_context17) {
          while (1) switch (_context17.prev = _context17.next) {
            case 0:
              params = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {
                pagination: undefined
              };
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/bounty";
              _context17.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context17.abrupt("return", _context17.sent);
            case 7:
            case "end":
              return _context17.stop();
          }
        }, _callee17, this);
      }));
      function bountyAll() {
        return _bountyAll.apply(this, arguments);
      }
      return bountyAll;
    }() /* Queries a release by id. */)
  }, {
    key: "release",
    value: (function () {
      var _release = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee18(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee18$(_context18) {
          while (1) switch (_context18.prev = _context18.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/release/".concat(params.id);
              _context18.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context18.abrupt("return", _context18.sent);
            case 4:
            case "end":
              return _context18.stop();
          }
        }, _callee18, this);
      }));
      function release(_x12) {
        return _release.apply(this, arguments);
      }
      return release;
    }() /* Queries a list of release items. */)
  }, {
    key: "releaseAll",
    value: (function () {
      var _releaseAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee19() {
        var params,
          options,
          endpoint,
          _args19 = arguments;
        return _regenerator["default"].wrap(function _callee19$(_context19) {
          while (1) switch (_context19.prev = _context19.next) {
            case 0:
              params = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {
                pagination: undefined
              };
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/release";
              _context19.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context19.abrupt("return", _context19.sent);
            case 7:
            case "end":
              return _context19.stop();
          }
        }, _callee19, this);
      }));
      function releaseAll() {
        return _releaseAll.apply(this, arguments);
      }
      return releaseAll;
    }() /* Queries a list of pullRequest items. */)
  }, {
    key: "pullRequestAll",
    value: (function () {
      var _pullRequestAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee20() {
        var params,
          options,
          endpoint,
          _args20 = arguments;
        return _regenerator["default"].wrap(function _callee20$(_context20) {
          while (1) switch (_context20.prev = _context20.next) {
            case 0:
              params = _args20.length > 0 && _args20[0] !== undefined ? _args20[0] : {
                pagination: undefined
              };
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/pullRequest";
              _context20.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context20.abrupt("return", _context20.sent);
            case 7:
            case "end":
              return _context20.stop();
          }
        }, _callee20, this);
      }));
      function pullRequestAll() {
        return _pullRequestAll.apply(this, arguments);
      }
      return pullRequestAll;
    }() /* Queries a Dao by id. */)
  }, {
    key: "dao",
    value: (function () {
      var _dao = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee21(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee21$(_context21) {
          while (1) switch (_context21.prev = _context21.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/dao/".concat(params.id);
              _context21.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context21.abrupt("return", _context21.sent);
            case 4:
            case "end":
              return _context21.stop();
          }
        }, _callee21, this);
      }));
      function dao(_x13) {
        return _dao.apply(this, arguments);
      }
      return dao;
    }() /* Queries a list of Dao items. */)
  }, {
    key: "daoAll",
    value: (function () {
      var _daoAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee22() {
        var params,
          options,
          endpoint,
          _args22 = arguments;
        return _regenerator["default"].wrap(function _callee22$(_context22) {
          while (1) switch (_context22.prev = _context22.next) {
            case 0:
              params = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {
                pagination: undefined
              };
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/dao";
              _context22.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context22.abrupt("return", _context22.sent);
            case 7:
            case "end":
              return _context22.stop();
          }
        }, _callee22, this);
      }));
      function daoAll() {
        return _daoAll.apply(this, arguments);
      }
      return daoAll;
    }() /* Queries a issue comment. */)
  }, {
    key: "issueComment",
    value: (function () {
      var _issueComment = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee23(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee23$(_context23) {
          while (1) switch (_context23.prev = _context23.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/repository/".concat(params.repositoryId, "/issue/").concat(params.issueIid, "/comment/").concat(params.commentIid);
              _context23.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context23.abrupt("return", _context23.sent);
            case 4:
            case "end":
              return _context23.stop();
          }
        }, _callee23, this);
      }));
      function issueComment(_x14) {
        return _issueComment.apply(this, arguments);
      }
      return issueComment;
    }() /* Queries a pullrequest comment. */)
  }, {
    key: "pullRequestComment",
    value: (function () {
      var _pullRequestComment = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee24(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee24$(_context24) {
          while (1) switch (_context24.prev = _context24.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/repository/".concat(params.repositoryId, "/pullrequest/").concat(params.pullRequestIid, "/comment/").concat(params.commentIid);
              _context24.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context24.abrupt("return", _context24.sent);
            case 4:
            case "end":
              return _context24.stop();
          }
        }, _callee24, this);
      }));
      function pullRequestComment(_x15) {
        return _pullRequestComment.apply(this, arguments);
      }
      return pullRequestComment;
    }() /* Queries a list of comment. */)
  }, {
    key: "commentAll",
    value: (function () {
      var _commentAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee25() {
        var params,
          options,
          endpoint,
          _args25 = arguments;
        return _regenerator["default"].wrap(function _callee25$(_context25) {
          while (1) switch (_context25.prev = _context25.next) {
            case 0:
              params = _args25.length > 0 && _args25[0] !== undefined ? _args25[0] : {
                pagination: undefined
              };
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/comment";
              _context25.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context25.abrupt("return", _context25.sent);
            case 7:
            case "end":
              return _context25.stop();
          }
        }, _callee25, this);
      }));
      function commentAll() {
        return _commentAll.apply(this, arguments);
      }
      return commentAll;
    }() /* Queries a list of issue comment. */)
  }, {
    key: "issueCommentAll",
    value: (function () {
      var _issueCommentAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee26(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee26$(_context26) {
          while (1) switch (_context26.prev = _context26.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/repository/".concat(params.repositoryId, "/issue/").concat(params.issueIid, "/comment");
              _context26.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context26.abrupt("return", _context26.sent);
            case 6:
            case "end":
              return _context26.stop();
          }
        }, _callee26, this);
      }));
      function issueCommentAll(_x16) {
        return _issueCommentAll.apply(this, arguments);
      }
      return issueCommentAll;
    }() /* Queries a list of pullrequest comment. */)
  }, {
    key: "pullRequestCommentAll",
    value: (function () {
      var _pullRequestCommentAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee27(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee27$(_context27) {
          while (1) switch (_context27.prev = _context27.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/repository/".concat(params.repositoryId, "/pullrequest/").concat(params.pullRequestIid, "/comment");
              _context27.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context27.abrupt("return", _context27.sent);
            case 6:
            case "end":
              return _context27.stop();
          }
        }, _callee27, this);
      }));
      function pullRequestCommentAll(_x17) {
        return _pullRequestCommentAll.apply(this, arguments);
      }
      return pullRequestCommentAll;
    }() /* Queries a list of issue items. */)
  }, {
    key: "issueAll",
    value: (function () {
      var _issueAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee28() {
        var params,
          options,
          endpoint,
          _args28 = arguments;
        return _regenerator["default"].wrap(function _callee28$(_context28) {
          while (1) switch (_context28.prev = _context28.next) {
            case 0:
              params = _args28.length > 0 && _args28[0] !== undefined ? _args28[0] : {
                pagination: undefined
              };
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/issue";
              _context28.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context28.abrupt("return", _context28.sent);
            case 7:
            case "end":
              return _context28.stop();
          }
        }, _callee28, this);
      }));
      function issueAll() {
        return _issueAll.apply(this, arguments);
      }
      return issueAll;
    }() /* RepositoryReleaseLatest */)
  }, {
    key: "repositoryReleaseLatest",
    value: (function () {
      var _repositoryReleaseLatest = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee29(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee29$(_context29) {
          while (1) switch (_context29.prev = _context29.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/".concat(params.id, "/repository/").concat(params.repositoryName, "/releases/latest");
              _context29.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context29.abrupt("return", _context29.sent);
            case 4:
            case "end":
              return _context29.stop();
          }
        }, _callee29, this);
      }));
      function repositoryReleaseLatest(_x18) {
        return _repositoryReleaseLatest.apply(this, arguments);
      }
      return repositoryReleaseLatest;
    }() /* RepositoryRelease */)
  }, {
    key: "repositoryRelease",
    value: (function () {
      var _repositoryRelease = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee30(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee30$(_context30) {
          while (1) switch (_context30.prev = _context30.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/".concat(params.id, "/repository/").concat(params.repositoryName, "/releases/tag/").concat(params.tagName);
              _context30.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context30.abrupt("return", _context30.sent);
            case 4:
            case "end":
              return _context30.stop();
          }
        }, _callee30, this);
      }));
      function repositoryRelease(_x19) {
        return _repositoryRelease.apply(this, arguments);
      }
      return repositoryRelease;
    }() /* RepositoryReleaseAll */)
  }, {
    key: "repositoryReleaseAll",
    value: (function () {
      var _repositoryReleaseAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee31(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee31$(_context31) {
          while (1) switch (_context31.prev = _context31.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/".concat(params.id, "/repository/").concat(params.repositoryName, "/releases");
              _context31.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context31.abrupt("return", _context31.sent);
            case 6:
            case "end":
              return _context31.stop();
          }
        }, _callee31, this);
      }));
      function repositoryReleaseAll(_x20) {
        return _repositoryReleaseAll.apply(this, arguments);
      }
      return repositoryReleaseAll;
    }() /* Queries a repository issue by iid. */)
  }, {
    key: "repositoryIssue",
    value: (function () {
      var _repositoryIssue = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee32(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee32$(_context32) {
          while (1) switch (_context32.prev = _context32.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/".concat(params.id, "/").concat(params.repositoryName, "/issue/").concat(params.issueIid);
              _context32.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context32.abrupt("return", _context32.sent);
            case 4:
            case "end":
              return _context32.stop();
          }
        }, _callee32, this);
      }));
      function repositoryIssue(_x21) {
        return _repositoryIssue.apply(this, arguments);
      }
      return repositoryIssue;
    }() /* Queries a list of repository issue. */)
  }, {
    key: "repositoryIssueAll",
    value: (function () {
      var _repositoryIssueAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee33(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee33$(_context33) {
          while (1) switch (_context33.prev = _context33.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.option) !== "undefined") {
                options.params.option = params.option;
              }
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/".concat(params.id, "/").concat(params.repositoryName, "/issue");
              _context33.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context33.abrupt("return", _context33.sent);
            case 7:
            case "end":
              return _context33.stop();
          }
        }, _callee33, this);
      }));
      function repositoryIssueAll(_x22) {
        return _repositoryIssueAll.apply(this, arguments);
      }
      return repositoryIssueAll;
    }() /* Queries a repository pullRequest. */)
  }, {
    key: "repositoryPullRequest",
    value: (function () {
      var _repositoryPullRequest = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee34(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee34$(_context34) {
          while (1) switch (_context34.prev = _context34.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/".concat(params.id, "/").concat(params.repositoryName, "/pull/").concat(params.pullIid);
              _context34.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context34.abrupt("return", _context34.sent);
            case 4:
            case "end":
              return _context34.stop();
          }
        }, _callee34, this);
      }));
      function repositoryPullRequest(_x23) {
        return _repositoryPullRequest.apply(this, arguments);
      }
      return repositoryPullRequest;
    }() /* Queries a list of repository pullRequest. */)
  }, {
    key: "repositoryPullRequestAll",
    value: (function () {
      var _repositoryPullRequestAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee35(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee35$(_context35) {
          while (1) switch (_context35.prev = _context35.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.option) !== "undefined") {
                options.params.option = params.option;
              }
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/".concat(params.id, "/").concat(params.repositoryName, "/pull");
              _context35.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context35.abrupt("return", _context35.sent);
            case 7:
            case "end":
              return _context35.stop();
          }
        }, _callee35, this);
      }));
      function repositoryPullRequestAll(_x24) {
        return _repositoryPullRequestAll.apply(this, arguments);
      }
      return repositoryPullRequestAll;
    }() /* Queries a repository by id. */)
  }, {
    key: "repository",
    value: (function () {
      var _repository = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee36(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee36$(_context36) {
          while (1) switch (_context36.prev = _context36.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/repository/".concat(params.id);
              _context36.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context36.abrupt("return", _context36.sent);
            case 4:
            case "end":
              return _context36.stop();
          }
        }, _callee36, this);
      }));
      function repository(_x25) {
        return _repository.apply(this, arguments);
      }
      return repository;
    }() /* Queries a list of repository items. */)
  }, {
    key: "repositoryAll",
    value: (function () {
      var _repositoryAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee37() {
        var params,
          options,
          endpoint,
          _args37 = arguments;
        return _regenerator["default"].wrap(function _callee37$(_context37) {
          while (1) switch (_context37.prev = _context37.next) {
            case 0:
              params = _args37.length > 0 && _args37[0] !== undefined ? _args37[0] : {
                pagination: undefined
              };
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/repository";
              _context37.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context37.abrupt("return", _context37.sent);
            case 7:
            case "end":
              return _context37.stop();
          }
        }, _callee37, this);
      }));
      function repositoryAll() {
        return _repositoryAll.apply(this, arguments);
      }
      return repositoryAll;
    }() /* Queries a repository forks by id. */)
  }, {
    key: "forkAll",
    value: (function () {
      var _forkAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee38(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee38$(_context38) {
          while (1) switch (_context38.prev = _context38.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/".concat(params.id, "/repository/").concat(params.repositoryName, "/forks");
              _context38.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context38.abrupt("return", _context38.sent);
            case 6:
            case "end":
              return _context38.stop();
          }
        }, _callee38, this);
      }));
      function forkAll(_x26) {
        return _forkAll.apply(this, arguments);
      }
      return forkAll;
    }() /* Queries a user by id. */)
  }, {
    key: "user",
    value: (function () {
      var _user = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee39(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee39$(_context39) {
          while (1) switch (_context39.prev = _context39.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/user/".concat(params.id);
              _context39.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context39.abrupt("return", _context39.sent);
            case 4:
            case "end":
              return _context39.stop();
          }
        }, _callee39, this);
      }));
      function user(_x27) {
        return _user.apply(this, arguments);
      }
      return user;
    }() /* Queries a list of User Dao. */)
  }, {
    key: "userDaoAll",
    value: (function () {
      var _userDaoAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee40(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee40$(_context40) {
          while (1) switch (_context40.prev = _context40.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/user/".concat(params.userId, "/dao");
              _context40.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context40.abrupt("return", _context40.sent);
            case 6:
            case "end":
              return _context40.stop();
          }
        }, _callee40, this);
      }));
      function userDaoAll(_x28) {
        return _userDaoAll.apply(this, arguments);
      }
      return userDaoAll;
    }() /* Queries a list of user items. */)
  }, {
    key: "userAll",
    value: (function () {
      var _userAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee41() {
        var params,
          options,
          endpoint,
          _args41 = arguments;
        return _regenerator["default"].wrap(function _callee41$(_context41) {
          while (1) switch (_context41.prev = _context41.next) {
            case 0:
              params = _args41.length > 0 && _args41[0] !== undefined ? _args41[0] : {
                pagination: undefined
              };
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/user";
              _context41.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context41.abrupt("return", _context41.sent);
            case 7:
            case "end":
              return _context41.stop();
          }
        }, _callee41, this);
      }));
      function userAll() {
        return _userAll.apply(this, arguments);
      }
      return userAll;
    }() /* Queries a list of user repositories. */)
  }, {
    key: "anyRepositoryAll",
    value: (function () {
      var _anyRepositoryAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee42(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee42$(_context42) {
          while (1) switch (_context42.prev = _context42.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/user/".concat(params.id, "/repository");
              _context42.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context42.abrupt("return", _context42.sent);
            case 6:
            case "end":
              return _context42.stop();
          }
        }, _callee42, this);
      }));
      function anyRepositoryAll(_x29) {
        return _anyRepositoryAll.apply(this, arguments);
      }
      return anyRepositoryAll;
    }() /* Queries a repository by user id and repository name */)
  }, {
    key: "anyRepository",
    value: (function () {
      var _anyRepository = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee43(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee43$(_context43) {
          while (1) switch (_context43.prev = _context43.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/user/".concat(params.id, "/repository/").concat(params.repositoryName);
              _context43.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context43.abrupt("return", _context43.sent);
            case 4:
            case "end":
              return _context43.stop();
          }
        }, _callee43, this);
      }));
      function anyRepository(_x30) {
        return _anyRepository.apply(this, arguments);
      }
      return anyRepository;
    }() /* Queries a whois by id. */)
  }, {
    key: "whois",
    value: (function () {
      var _whois = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee44(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee44$(_context44) {
          while (1) switch (_context44.prev = _context44.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/whois/".concat(params.name);
              _context44.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context44.abrupt("return", _context44.sent);
            case 4:
            case "end":
              return _context44.stop();
          }
        }, _callee44, this);
      }));
      function whois(_x31) {
        return _whois.apply(this, arguments);
      }
      return whois;
    }() /* Queries a list of whois items. */)
  }, {
    key: "whoisAll",
    value: (function () {
      var _whoisAll = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee45() {
        var params,
          options,
          endpoint,
          _args45 = arguments;
        return _regenerator["default"].wrap(function _callee45$(_context45) {
          while (1) switch (_context45.prev = _context45.next) {
            case 0:
              params = _args45.length > 0 && _args45[0] !== undefined ? _args45[0] : {
                pagination: undefined
              };
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
                (0, _helpers.setPaginationParams)(options, params.pagination);
              }
              endpoint = "gitopia/gitopia/gitopia/whois";
              _context45.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context45.abrupt("return", _context45.sent);
            case 7:
            case "end":
              return _context45.stop();
          }
        }, _callee45, this);
      }));
      function whoisAll() {
        return _whoisAll.apply(this, arguments);
      }
      return whoisAll;
    }() /* PullRequestMergePermission */)
  }, {
    key: "pullRequestMergePermission",
    value: (function () {
      var _pullRequestMergePermission = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee46(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee46$(_context46) {
          while (1) switch (_context46.prev = _context46.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/permissions/".concat(params.userId, "/repository/").concat(params.repositoryId, "/pull/").concat(params.pullIid, "/merge");
              _context46.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context46.abrupt("return", _context46.sent);
            case 4:
            case "end":
              return _context46.stop();
          }
        }, _callee46, this);
      }));
      function pullRequestMergePermission(_x32) {
        return _pullRequestMergePermission.apply(this, arguments);
      }
      return pullRequestMergePermission;
    }() /* CheckGitServerAuthorization */)
  }, {
    key: "checkGitServerAuthorization",
    value: (function () {
      var _checkGitServerAuthorization = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee47(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee47$(_context47) {
          while (1) switch (_context47.prev = _context47.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/authorizations/git-server/".concat(params.userAddress, "/").concat(params.providerAddress);
              _context47.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context47.abrupt("return", _context47.sent);
            case 4:
            case "end":
              return _context47.stop();
          }
        }, _callee47, this);
      }));
      function checkGitServerAuthorization(_x33) {
        return _checkGitServerAuthorization.apply(this, arguments);
      }
      return checkGitServerAuthorization;
    }() /* CheckStorageProviderAuthorization */)
  }, {
    key: "checkStorageProviderAuthorization",
    value: (function () {
      var _checkStorageProviderAuthorization = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee48(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee48$(_context48) {
          while (1) switch (_context48.prev = _context48.next) {
            case 0:
              endpoint = "gitopia/gitopia/gitopia/authorizations/storage-provider/".concat(params.userAddress, "/").concat(params.providerAddress);
              _context48.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context48.abrupt("return", _context48.sent);
            case 4:
            case "end":
              return _context48.stop();
          }
        }, _callee48, this);
      }));
      function checkStorageProviderAuthorization(_x34) {
        return _checkStorageProviderAuthorization.apply(this, arguments);
      }
      return checkStorageProviderAuthorization;
    }())
  }]);
}();