@soos-io/api-client
Advanced tools
Comparing version 0.1.3-pre.7 to 0.1.3-pre.8
@@ -47,3 +47,3 @@ import FormData from "form-data"; | ||
interface IScanStatusRequest { | ||
reportStatusUrl: string; | ||
scanStatusUrl: string; | ||
} | ||
@@ -118,4 +118,4 @@ interface IScanStatusResponse extends Pick<ICheckAnalysisScanStatusReturn, "status"> { | ||
updateScanStatus({ clientId, projectHash, branchHash, scanType, scanId, status, message, }: IUpdateScanStatusRequest): Promise<void>; | ||
getScanStatus({ reportStatusUrl }: IScanStatusRequest): Promise<IScanStatusResponse>; | ||
getScanStatus({ scanStatusUrl }: IScanStatusRequest): Promise<IScanStatusResponse>; | ||
} | ||
export default SOOSAnalysisApiClient; |
@@ -73,6 +73,6 @@ "use strict"; | ||
} | ||
getScanStatus({ reportStatusUrl }) { | ||
getScanStatus({ scanStatusUrl }) { | ||
var _a, _b, _c, _d, _e; | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const response = yield this.client.get(reportStatusUrl); | ||
const response = yield this.client.get(scanStatusUrl); | ||
const violationCount = (_b = (_a = response.data.violations) === null || _a === void 0 ? void 0 : _a.count) !== null && _b !== void 0 ? _b : 0; | ||
@@ -79,0 +79,0 @@ const vulnerabilityCount = (_d = (_c = response.data.vulnerabilities) === null || _c === void 0 ? void 0 : _c.count) !== null && _d !== void 0 ? _d : 0; |
{ | ||
"name": "@soos-io/api-client", | ||
"version": "0.1.3-pre.7", | ||
"version": "0.1.3-pre.8", | ||
"description": "This is the SOOS API Client for registered clients leveraging the various integrations to the SOOS platform.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
29339