@harnessio/react-ssca-manager-client 0.83.6 → 0.83.7
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/ssca-manager/src/services/index.d.ts +3 -2
- package/dist/ssca-manager/src/services/index.js +0 -1
- package/dist/ssca-manager/src/services/responses/GetIntegrationSummaryResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/GetIntegrationSummaryResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/DownloadSignatureResponseBody.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/GetIntegrationSummaryResponse.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/GetIntegrationSummaryResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/OrchestrationOssRisksSummary.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/OrchestrationOssRisksSummary.js +4 -0
- package/dist/ssca-manager/src/services/schemas/OrchestrationSummaryResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/StoIssueCount.d.ts +4 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/hooks/useCalculateDriftForArtifactMutation.d.ts +0 -24
- package/dist/ssca-manager/src/services/hooks/useCalculateDriftForArtifactMutation.js +0 -14
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
2
|
export type { ArtifactListV2ErrorResponse, ArtifactListV2OkResponse, ArtifactListV2Props, ArtifactListV2QueryPathParams, ArtifactListV2QueryQueryParams, ArtifactListV2RequestBody, } from './hooks/useArtifactListV2Query';
|
|
3
3
|
export { artifactListV2, useArtifactListV2Query } from './hooks/useArtifactListV2Query';
|
|
4
|
-
export type { CalculateDriftForArtifactErrorResponse, CalculateDriftForArtifactMutationPathParams, CalculateDriftForArtifactOkResponse, CalculateDriftForArtifactProps, CalculateDriftForArtifactRequestBody, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
5
|
-
export { calculateDriftForArtifact, useCalculateDriftForArtifactMutation, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
6
4
|
export type { CheckArtifactAndDeploymentsErrorResponse, CheckArtifactAndDeploymentsMutationPathParams, CheckArtifactAndDeploymentsOkResponse, CheckArtifactAndDeploymentsProps, CheckArtifactAndDeploymentsRequestBody, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
7
5
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
8
6
|
export type { CloseRemediationTrackerErrorResponse, CloseRemediationTrackerMutationPathParams, CloseRemediationTrackerOkResponse, CloseRemediationTrackerProps, } from './hooks/useCloseRemediationTrackerMutation';
|
|
@@ -208,6 +206,7 @@ export type { FetchArtifactsByComplianceIdResponseBodyResponse } from './respons
|
|
|
208
206
|
export type { FetchComplianceResultByArtifactResponseResponse } from './responses/FetchComplianceResultByArtifactResponseResponse';
|
|
209
207
|
export type { FetchComplianceResultResponseBodyResponse } from './responses/FetchComplianceResultResponseBodyResponse';
|
|
210
208
|
export type { FetchIntegrationReposResponseBodyResponse } from './responses/FetchIntegrationReposResponseBodyResponse';
|
|
209
|
+
export type { GetIntegrationSummaryResponseBodyResponse } from './responses/GetIntegrationSummaryResponseBodyResponse';
|
|
211
210
|
export type { HarnessPipelineIntegrationResponseBodyResponse } from './responses/HarnessPipelineIntegrationResponseBodyResponse';
|
|
212
211
|
export type { IntegrationListingResponseBodyResponse } from './responses/IntegrationListingResponseBodyResponse';
|
|
213
212
|
export type { IntegrationStepConfigResponseBodyResponse } from './responses/IntegrationStepConfigResponseBodyResponse';
|
|
@@ -355,6 +354,7 @@ export type { ExecutionLimitRequestBody } from './schemas/ExecutionLimitRequestB
|
|
|
355
354
|
export type { ExecutionLimitResponseBody } from './schemas/ExecutionLimitResponseBody';
|
|
356
355
|
export type { ExecutionType } from './schemas/ExecutionType';
|
|
357
356
|
export type { FetchComplianceResultByArtifactResponseBody } from './schemas/FetchComplianceResultByArtifactResponseBody';
|
|
357
|
+
export type { GetIntegrationSummaryResponse } from './schemas/GetIntegrationSummaryResponse';
|
|
358
358
|
export type { GithubExecutionContext } from './schemas/GithubExecutionContext';
|
|
359
359
|
export type { GithubExecutionDetail } from './schemas/GithubExecutionDetail';
|
|
360
360
|
export type { GithubRunner } from './schemas/GithubRunner';
|
|
@@ -389,6 +389,7 @@ export type { Operator } from './schemas/Operator';
|
|
|
389
389
|
export type { OrchestrationActivity } from './schemas/OrchestrationActivity';
|
|
390
390
|
export type { OrchestrationDriftSummary } from './schemas/OrchestrationDriftSummary';
|
|
391
391
|
export type { OrchestrationModelPipeline } from './schemas/OrchestrationModelPipeline';
|
|
392
|
+
export type { OrchestrationOssRisksSummary } from './schemas/OrchestrationOssRisksSummary';
|
|
392
393
|
export type { OrchestrationScorecardSummary } from './schemas/OrchestrationScorecardSummary';
|
|
393
394
|
export type { OrchestrationStepDriftRequestBody } from './schemas/OrchestrationStepDriftRequestBody';
|
|
394
395
|
export type { OrchestrationSummaryResponse } from './schemas/OrchestrationSummaryResponse';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { artifactListV2, useArtifactListV2Query } from './hooks/useArtifactListV2Query';
|
|
2
|
-
export { calculateDriftForArtifact, useCalculateDriftForArtifactMutation, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
3
2
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
4
3
|
export { closeRemediationTracker, useCloseRemediationTrackerMutation, } from './hooks/useCloseRemediationTrackerMutation';
|
|
5
4
|
export { codeRepositoriesList, useCodeRepositoriesListQuery, } from './hooks/useCodeRepositoriesListQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface OrchestrationOssRisksSummary {
|
|
2
|
+
close_to_eol_component_count?: number;
|
|
3
|
+
definite_eol_component_count?: number;
|
|
4
|
+
derived_eol_component_count?: number;
|
|
5
|
+
outdated_component_count?: number;
|
|
6
|
+
total_eol_component_count?: number;
|
|
7
|
+
unmaintained_component_count?: number;
|
|
8
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { Artifact } from '../schemas/Artifact';
|
|
2
2
|
import type { OrchestrationDriftSummary } from '../schemas/OrchestrationDriftSummary';
|
|
3
|
+
import type { OrchestrationOssRisksSummary } from '../schemas/OrchestrationOssRisksSummary';
|
|
3
4
|
import type { SbomDetails } from '../schemas/SbomDetails';
|
|
4
5
|
import type { OrchestrationScorecardSummary } from '../schemas/OrchestrationScorecardSummary';
|
|
5
6
|
export interface OrchestrationSummaryResponse {
|
|
6
7
|
artifact?: Artifact;
|
|
7
8
|
drift_summary?: OrchestrationDriftSummary;
|
|
8
9
|
is_attested?: boolean;
|
|
10
|
+
oss_risks_summary?: OrchestrationOssRisksSummary;
|
|
9
11
|
sbom?: SbomDetails;
|
|
10
12
|
scorecard_summary?: OrchestrationScorecardSummary;
|
|
11
13
|
step_execution_id?: string;
|
|
@@ -23,6 +23,10 @@ export interface StoIssueCount {
|
|
|
23
23
|
* The number of Informational Issues
|
|
24
24
|
*/
|
|
25
25
|
info?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Identifier used in sto module to identify an issue.
|
|
28
|
+
*/
|
|
29
|
+
issue_id?: string;
|
|
26
30
|
/**
|
|
27
31
|
* Timestamp at which the target variant was last scanned
|
|
28
32
|
*/
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { ArtifactSbomDriftResponseBodyResponse } from '../responses/ArtifactSbomDriftResponseBodyResponse';
|
|
3
|
-
import type { ArtifactSbomDriftRequestBody } from '../schemas/ArtifactSbomDriftRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface CalculateDriftForArtifactMutationPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
artifact: string;
|
|
10
|
-
}
|
|
11
|
-
export interface CalculateDriftForArtifactMutationHeaderParams {
|
|
12
|
-
'Harness-Account': string;
|
|
13
|
-
}
|
|
14
|
-
export type CalculateDriftForArtifactRequestBody = ArtifactSbomDriftRequestBody;
|
|
15
|
-
export type CalculateDriftForArtifactOkResponse = ResponseWithPagination<ArtifactSbomDriftResponseBodyResponse>;
|
|
16
|
-
export type CalculateDriftForArtifactErrorResponse = unknown;
|
|
17
|
-
export interface CalculateDriftForArtifactProps extends CalculateDriftForArtifactMutationPathParams, Omit<FetcherOptions<unknown, CalculateDriftForArtifactRequestBody, CalculateDriftForArtifactMutationHeaderParams>, 'url'> {
|
|
18
|
-
body: CalculateDriftForArtifactRequestBody;
|
|
19
|
-
}
|
|
20
|
-
export declare function calculateDriftForArtifact(props: CalculateDriftForArtifactProps): Promise<CalculateDriftForArtifactOkResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* This API calculates and stores drift between 2 versions of an artifact with TTL of 1 hour.
|
|
23
|
-
*/
|
|
24
|
-
export declare function useCalculateDriftForArtifactMutation(options?: Omit<UseMutationOptions<CalculateDriftForArtifactOkResponse, CalculateDriftForArtifactErrorResponse, CalculateDriftForArtifactProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CalculateDriftForArtifactOkResponse, unknown, CalculateDriftForArtifactProps, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
-
// Please do not modify this code directly.
|
|
4
|
-
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
-
export function calculateDriftForArtifact(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifact/${props.artifact}/sbom-drift`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* This API calculates and stores drift between 2 versions of an artifact with TTL of 1 hour.
|
|
11
|
-
*/
|
|
12
|
-
export function useCalculateDriftForArtifactMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => calculateDriftForArtifact(mutateProps), options);
|
|
14
|
-
}
|