function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var ReportsApis = /*#__PURE__*/function () {
  function ReportsApis() {
    _classCallCheck(this, ReportsApis);
  }

  _createClass(ReportsApis, null, [{
    key: "getAllPipeline",
    value: function getAllPipeline(projectId) {
      return "devops/v1/projects/".concat(projectId, "/cicd_pipelines/devops/pipeline");
    }
  }, {
    key: "getPipelineDurationChart",
    value: function getPipelineDurationChart(projectId, startTime, endTime) {
      return "/devops/v1/projects/".concat(projectId, "/cicd_pipelines/execute/time?start_time=").concat(startTime, "&end_time=").concat(endTime);
    }
  }, {
    key: "getPipelineDurationTable",
    value: function getPipelineDurationTable(projectId, startTime, endTime) {
      return "/devops/v1/projects/".concat(projectId, "/cicd_pipelines/execute/time/page?start_time=").concat(startTime, "&end_time=").concat(endTime);
    }
  }]);

  return ReportsApis;
}();

export { ReportsApis as default };