@soos-io/api-client
Advanced tools
Comparing version 0.1.3-pre.6 to 0.1.3-pre.7
@@ -35,2 +35,13 @@ import FormData from "form-data"; | ||
} | ||
interface IGetSupportedManifestsRequest { | ||
clientId: string; | ||
} | ||
interface IGetSupportedManifestsResponsePackageManagerManifestPatterns { | ||
packageManager: string; | ||
manifests: Array<{ | ||
pattern: string; | ||
isLockFile: boolean; | ||
}>; | ||
} | ||
type IGetSupportedManifestsResponse = Array<IGetSupportedManifestsResponsePackageManagerManifestPatterns>; | ||
interface IScanStatusRequest { | ||
@@ -103,2 +114,3 @@ reportStatusUrl: string; | ||
createScan({ clientId, projectName, commitHash, branch, buildVersion, buildUri, branchUri, integrationType, operatingEnvironment, integrationName, scanType, appVersion, scriptVersion, contributingDeveloperAudit, }: ICreateScanRequest): Promise<ICreateScanResponse>; | ||
getSupportedManifests({ clientId, }: IGetSupportedManifestsRequest): Promise<IGetSupportedManifestsResponse>; | ||
uploadManifestFiles({ clientId, projectHash, analysisId, manifestFiles, }: IUploadManifestFilesRequest): Promise<IUploadManifestFilesResponse>; | ||
@@ -105,0 +117,0 @@ startScan({ clientId, projectHash, analysisId }: IStartScanRequest): Promise<void>; |
@@ -43,2 +43,8 @@ "use strict"; | ||
} | ||
getSupportedManifests({ clientId, }) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const response = yield this.client.get(`clients/${clientId}/manifests`); | ||
return response.data; | ||
}); | ||
} | ||
uploadManifestFiles({ clientId, projectHash, analysisId, manifestFiles, }) { | ||
@@ -45,0 +51,0 @@ return tslib_1.__awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "@soos-io/api-client", | ||
"version": "0.1.3-pre.6", | ||
"version": "0.1.3-pre.7", | ||
"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", |
29347
636