@harnessio/react-ssca-manager-client 0.46.0 → 0.48.0
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/hooks/useFetchComplianceResultsByArtifactQuery.d.ts +40 -0
- package/dist/ssca-manager/src/services/hooks/useFetchComplianceResultsByArtifactQuery.js +21 -0
- package/dist/ssca-manager/src/services/hooks/useFetchComplianceResultsGroupByIdMutation.js +1 -1
- package/dist/ssca-manager/src/services/hooks/useGetAllRepositoriesSummaryQuery.d.ts +20 -0
- package/dist/ssca-manager/src/services/hooks/useGetAllRepositoriesSummaryQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation.d.ts +28 -0
- package/dist/ssca-manager/src/services/hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/usePostComplianceResultStatsOverviewMutation.d.ts +4 -4
- package/dist/ssca-manager/src/services/hooks/usePostComplianceResultStatsOverviewMutation.js +1 -1
- package/dist/ssca-manager/src/services/index.d.ts +14 -8
- package/dist/ssca-manager/src/services/index.js +3 -1
- package/dist/ssca-manager/src/services/requestBodies/ComplianceResultsEvaluationBreakdownByArtifactsRequestRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/ComplianceResultsEvaluationBreakdownByArtifactsResponseResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/ComplianceResultsEvaluationBreakdownResponseResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/FetchComplianceResultByArtifactResponseResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComplianceMetrics.d.ts +1 -2
- package/dist/ssca-manager/src/services/schemas/ArtifactComplianceMetrics.js +3 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceCheckEntityType.d.ts +1 -2
- package/dist/ssca-manager/src/services/schemas/ComplianceCheckSeverity.d.ts +1 -2
- package/dist/ssca-manager/src/services/schemas/ComplianceCheckType.d.ts +1 -2
- package/dist/ssca-manager/src/services/schemas/ComplianceEvaluationHistory.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceResultStatus.d.ts +1 -2
- package/dist/ssca-manager/src/services/schemas/ComplianceResultsEvaluationBreakdown.d.ts +9 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceStandardType.d.ts +1 -2
- package/dist/ssca-manager/src/services/schemas/FetchComplianceResultByArtifactResponseBody.d.ts +13 -0
- package/dist/ssca-manager/src/services/schemas/FetchComplianceResultByArtifactResponseBody.js +1 -0
- package/dist/ssca-manager/src/services/schemas/RepositoriesSummary.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/RepositoriesSummary.js +1 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/hooks/useFetchArtifactByComplianceIdQuery.d.ts +0 -38
- package/dist/ssca-manager/src/services/hooks/useFetchArtifactByComplianceIdQuery.js +0 -14
- package/dist/ssca-manager/src/services/responses/ComplianceResultsOverviewResponseResponse.d.ts +0 -2
- package/dist/ssca-manager/src/services/responses/FetchArtifactsByComplianceIdResponseBodyResponse.d.ts +0 -2
- package/dist/ssca-manager/src/services/schemas/ComplianceArtifactType.d.ts +0 -3
- package/dist/ssca-manager/src/services/schemas/ComplianceArtifactWithExecution.d.ts +0 -29
- package/dist/ssca-manager/src/services/schemas/ComplianceResult.d.ts +0 -21
- package/dist/ssca-manager/src/services/schemas/ComplianceResultsOverview.d.ts +0 -11
- /package/dist/ssca-manager/src/services/{responses/ComplianceResultsOverviewResponseResponse.js → requestBodies/ComplianceResultsEvaluationBreakdownByArtifactsRequestRequestBody.js} +0 -0
- /package/dist/ssca-manager/src/services/responses/{FetchArtifactsByComplianceIdResponseBodyResponse.js → ComplianceResultsEvaluationBreakdownByArtifactsResponseResponse.js} +0 -0
- /package/dist/ssca-manager/src/services/{schemas/ComplianceArtifactWithExecution.js → responses/ComplianceResultsEvaluationBreakdownResponseResponse.js} +0 -0
- /package/dist/ssca-manager/src/services/{schemas/ComplianceResult.js → responses/FetchComplianceResultByArtifactResponseResponse.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{ComplianceArtifactType.js → ComplianceEvaluationHistory.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{ComplianceResultsOverview.js → ComplianceResultsEvaluationBreakdown.js} +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FetchComplianceResultByArtifactResponseResponse } from '../responses/FetchComplianceResultByArtifactResponseResponse';
|
|
3
|
+
import type { FetchComplianceResultRequestBodyRequestBody } from '../requestBodies/FetchComplianceResultRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface FetchComplianceResultsByArtifactQueryPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
artifact: string;
|
|
10
|
+
}
|
|
11
|
+
export interface FetchComplianceResultsByArtifactQueryQueryParams {
|
|
12
|
+
/**
|
|
13
|
+
* @default 0
|
|
14
|
+
*/
|
|
15
|
+
page?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @default 30
|
|
18
|
+
*/
|
|
19
|
+
limit?: number;
|
|
20
|
+
/**
|
|
21
|
+
* @default "ASC"
|
|
22
|
+
*/
|
|
23
|
+
order?: 'ASC' | 'DESC';
|
|
24
|
+
sort?: 'severity' | 'title';
|
|
25
|
+
}
|
|
26
|
+
export interface FetchComplianceResultsByArtifactQueryHeaderParams {
|
|
27
|
+
'Harness-Account': string;
|
|
28
|
+
}
|
|
29
|
+
export type FetchComplianceResultsByArtifactRequestBody = FetchComplianceResultRequestBodyRequestBody;
|
|
30
|
+
export type FetchComplianceResultsByArtifactOkResponse = ResponseWithPagination<FetchComplianceResultByArtifactResponseResponse>;
|
|
31
|
+
export type FetchComplianceResultsByArtifactErrorResponse = unknown;
|
|
32
|
+
export interface FetchComplianceResultsByArtifactProps extends FetchComplianceResultsByArtifactQueryPathParams, Omit<FetcherOptions<FetchComplianceResultsByArtifactQueryQueryParams, FetchComplianceResultsByArtifactRequestBody, FetchComplianceResultsByArtifactQueryHeaderParams>, 'url'> {
|
|
33
|
+
queryParams: FetchComplianceResultsByArtifactQueryQueryParams;
|
|
34
|
+
body: FetchComplianceResultsByArtifactRequestBody;
|
|
35
|
+
}
|
|
36
|
+
export declare function fetchComplianceResultsByArtifact(props: FetchComplianceResultsByArtifactProps): Promise<FetchComplianceResultsByArtifactOkResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Fetch compliance result by artifact
|
|
39
|
+
*/
|
|
40
|
+
export declare function useFetchComplianceResultsByArtifactQuery(props: FetchComplianceResultsByArtifactProps, options?: Omit<UseQueryOptions<FetchComplianceResultsByArtifactOkResponse, FetchComplianceResultsByArtifactErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<FetchComplianceResultsByArtifactOkResponse, unknown>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function fetchComplianceResultsByArtifact(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifact/${props.artifact}/compliance-results/list`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Fetch compliance result by artifact
|
|
11
|
+
*/
|
|
12
|
+
export function useFetchComplianceResultsByArtifactQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'fetchComplianceResultsByArtifact',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props.artifact,
|
|
18
|
+
props.queryParams,
|
|
19
|
+
props.body,
|
|
20
|
+
], ({ signal }) => fetchComplianceResultsByArtifact(Object.assign(Object.assign({}, props), { signal })), options);
|
|
21
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function fetchComplianceResultsGroupById(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/compliance-results/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/compliance-results/compliances`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* fetch Compliance Results GroupById
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RepositoriesSummary } from '../schemas/RepositoriesSummary';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetAllRepositoriesSummaryQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetAllRepositoriesSummaryQueryHeaderParams {
|
|
10
|
+
'Harness-Account': string;
|
|
11
|
+
}
|
|
12
|
+
export type GetAllRepositoriesSummaryOkResponse = ResponseWithPagination<RepositoriesSummary>;
|
|
13
|
+
export type GetAllRepositoriesSummaryErrorResponse = unknown;
|
|
14
|
+
export interface GetAllRepositoriesSummaryProps extends GetAllRepositoriesSummaryQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetAllRepositoriesSummaryQueryHeaderParams>, 'url'> {
|
|
15
|
+
}
|
|
16
|
+
export declare function getAllRepositoriesSummary(props: GetAllRepositoriesSummaryProps): Promise<GetAllRepositoriesSummaryOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* GET All Repositories Summary
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetAllRepositoriesSummaryQuery(props: GetAllRepositoriesSummaryProps, options?: Omit<UseQueryOptions<GetAllRepositoriesSummaryOkResponse, GetAllRepositoriesSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllRepositoriesSummaryOkResponse, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getAllRepositoriesSummary(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/code-repos/summary`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* GET All Repositories Summary
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAllRepositoriesSummaryQuery(props, options) {
|
|
13
|
+
return useQuery(['getAllRepositoriesSummary', props.org, props.project], ({ signal }) => getAllRepositoriesSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ComplianceResultsEvaluationBreakdownByArtifactsResponseResponse } from '../responses/ComplianceResultsEvaluationBreakdownByArtifactsResponseResponse';
|
|
3
|
+
import type { ComplianceResultsEvaluationBreakdownByArtifactsRequestRequestBody } from '../requestBodies/ComplianceResultsEvaluationBreakdownByArtifactsRequestRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationQueryParams {
|
|
11
|
+
start_time?: string;
|
|
12
|
+
end_time?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationHeaderParams {
|
|
15
|
+
'Harness-Account': string;
|
|
16
|
+
}
|
|
17
|
+
export type PostComplianceResultStatsEvaluationBreakdownArtifactTypeRequestBody = ComplianceResultsEvaluationBreakdownByArtifactsRequestRequestBody;
|
|
18
|
+
export type PostComplianceResultStatsEvaluationBreakdownArtifactTypeOkResponse = ResponseWithPagination<ComplianceResultsEvaluationBreakdownByArtifactsResponseResponse>;
|
|
19
|
+
export type PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorResponse = unknown;
|
|
20
|
+
export interface PostComplianceResultStatsEvaluationBreakdownArtifactTypeProps extends PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationPathParams, Omit<FetcherOptions<PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationQueryParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeRequestBody, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationHeaderParams>, 'url'> {
|
|
21
|
+
queryParams: PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationQueryParams;
|
|
22
|
+
body: PostComplianceResultStatsEvaluationBreakdownArtifactTypeRequestBody;
|
|
23
|
+
}
|
|
24
|
+
export declare function postComplianceResultStatsEvaluationBreakdownArtifactType(props: PostComplianceResultStatsEvaluationBreakdownArtifactTypeProps): Promise<PostComplianceResultStatsEvaluationBreakdownArtifactTypeOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Compliance Results Stats Overview Evaluation Breakdown Artifacts
|
|
27
|
+
*/
|
|
28
|
+
export declare function usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation(options?: Omit<UseMutationOptions<PostComplianceResultStatsEvaluationBreakdownArtifactTypeOkResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostComplianceResultStatsEvaluationBreakdownArtifactTypeOkResponse, unknown, PostComplianceResultStatsEvaluationBreakdownArtifactTypeProps, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 postComplianceResultStatsEvaluationBreakdownArtifactType(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/compliance-stats/evaluation-breakdown/artifacts`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Compliance Results Stats Overview Evaluation Breakdown Artifacts
|
|
11
|
+
*/
|
|
12
|
+
export function usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => postComplianceResultStatsEvaluationBreakdownArtifactType(mutateProps), options);
|
|
14
|
+
}
|
package/dist/ssca-manager/src/services/hooks/usePostComplianceResultStatsOverviewMutation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ComplianceResultsEvaluationBreakdownResponseResponse } from '../responses/ComplianceResultsEvaluationBreakdownResponseResponse';
|
|
3
3
|
import type { ComplianceResultsOverviewRequestBodyRequestBody } from '../requestBodies/ComplianceResultsOverviewRequestBodyRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -15,8 +15,8 @@ export interface PostComplianceResultStatsOverviewMutationHeaderParams {
|
|
|
15
15
|
'Harness-Account': string;
|
|
16
16
|
}
|
|
17
17
|
export type PostComplianceResultStatsOverviewRequestBody = ComplianceResultsOverviewRequestBodyRequestBody;
|
|
18
|
-
export type PostComplianceResultStatsOverviewOkResponse = ResponseWithPagination<
|
|
19
|
-
export type PostComplianceResultStatsOverviewErrorResponse =
|
|
18
|
+
export type PostComplianceResultStatsOverviewOkResponse = ResponseWithPagination<ComplianceResultsEvaluationBreakdownResponseResponse>;
|
|
19
|
+
export type PostComplianceResultStatsOverviewErrorResponse = unknown;
|
|
20
20
|
export interface PostComplianceResultStatsOverviewProps extends PostComplianceResultStatsOverviewMutationPathParams, Omit<FetcherOptions<PostComplianceResultStatsOverviewMutationQueryParams, PostComplianceResultStatsOverviewRequestBody, PostComplianceResultStatsOverviewMutationHeaderParams>, 'url'> {
|
|
21
21
|
queryParams: PostComplianceResultStatsOverviewMutationQueryParams;
|
|
22
22
|
body: PostComplianceResultStatsOverviewRequestBody;
|
|
@@ -25,4 +25,4 @@ export declare function postComplianceResultStatsOverview(props: PostComplianceR
|
|
|
25
25
|
/**
|
|
26
26
|
* Post call to show Compliance Results for Compliance Dashboard Overview
|
|
27
27
|
*/
|
|
28
|
-
export declare function usePostComplianceResultStatsOverviewMutation(options?: Omit<UseMutationOptions<PostComplianceResultStatsOverviewOkResponse, PostComplianceResultStatsOverviewErrorResponse, PostComplianceResultStatsOverviewProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostComplianceResultStatsOverviewOkResponse,
|
|
28
|
+
export declare function usePostComplianceResultStatsOverviewMutation(options?: Omit<UseMutationOptions<PostComplianceResultStatsOverviewOkResponse, PostComplianceResultStatsOverviewErrorResponse, PostComplianceResultStatsOverviewProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostComplianceResultStatsOverviewOkResponse, unknown, PostComplianceResultStatsOverviewProps, unknown>;
|
package/dist/ssca-manager/src/services/hooks/usePostComplianceResultStatsOverviewMutation.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function postComplianceResultStatsOverview(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/compliance-stats/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/compliance-stats/evaluation-breakdown`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Post call to show Compliance Results for Compliance Dashboard Overview
|
|
@@ -27,12 +27,14 @@ export type { DownloadSbomErrorResponse, DownloadSbomOkResponse, DownloadSbomPro
|
|
|
27
27
|
export { downloadSbom, useDownloadSbomQuery } from './hooks/useDownloadSbomQuery';
|
|
28
28
|
export type { ExcludeArtifactErrorResponse, ExcludeArtifactMutationPathParams, ExcludeArtifactOkResponse, ExcludeArtifactProps, ExcludeArtifactRequestBody, } from './hooks/useExcludeArtifactMutation';
|
|
29
29
|
export { excludeArtifact, useExcludeArtifactMutation } from './hooks/useExcludeArtifactMutation';
|
|
30
|
-
export type {
|
|
31
|
-
export {
|
|
30
|
+
export type { FetchComplianceResultsByArtifactErrorResponse, FetchComplianceResultsByArtifactOkResponse, FetchComplianceResultsByArtifactProps, FetchComplianceResultsByArtifactQueryPathParams, FetchComplianceResultsByArtifactQueryQueryParams, FetchComplianceResultsByArtifactRequestBody, } from './hooks/useFetchComplianceResultsByArtifactQuery';
|
|
31
|
+
export { fetchComplianceResultsByArtifact, useFetchComplianceResultsByArtifactQuery, } from './hooks/useFetchComplianceResultsByArtifactQuery';
|
|
32
32
|
export type { FetchComplianceResultsGroupByIdErrorResponse, FetchComplianceResultsGroupByIdMutationPathParams, FetchComplianceResultsGroupByIdMutationQueryParams, FetchComplianceResultsGroupByIdOkResponse, FetchComplianceResultsGroupByIdProps, FetchComplianceResultsGroupByIdRequestBody, } from './hooks/useFetchComplianceResultsGroupByIdMutation';
|
|
33
33
|
export { fetchComplianceResultsGroupById, useFetchComplianceResultsGroupByIdMutation, } from './hooks/useFetchComplianceResultsGroupByIdMutation';
|
|
34
34
|
export type { FetchReposInIntegrationErrorResponse, FetchReposInIntegrationOkResponse, FetchReposInIntegrationProps, FetchReposInIntegrationQueryPathParams, FetchReposInIntegrationQueryQueryParams, } from './hooks/useFetchReposInIntegrationQuery';
|
|
35
35
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
36
|
+
export type { GetAllRepositoriesSummaryErrorResponse, GetAllRepositoriesSummaryOkResponse, GetAllRepositoriesSummaryProps, GetAllRepositoriesSummaryQueryPathParams, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
37
|
+
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
36
38
|
export type { GetArtifactDetailComponentViewErrorResponse, GetArtifactDetailComponentViewOkResponse, GetArtifactDetailComponentViewProps, GetArtifactDetailComponentViewQueryPathParams, GetArtifactDetailComponentViewQueryQueryParams, GetArtifactDetailComponentViewRequestBody, } from './hooks/useGetArtifactDetailComponentViewQuery';
|
|
37
39
|
export { getArtifactDetailComponentView, useGetArtifactDetailComponentViewQuery, } from './hooks/useGetArtifactDetailComponentViewQuery';
|
|
38
40
|
export type { GetArtifactDetailDeploymentViewErrorResponse, GetArtifactDetailDeploymentViewOkResponse, GetArtifactDetailDeploymentViewProps, GetArtifactDetailDeploymentViewQueryPathParams, GetArtifactDetailDeploymentViewQueryQueryParams, GetArtifactDetailDeploymentViewRequestBody, } from './hooks/useGetArtifactDetailDeploymentViewQuery';
|
|
@@ -95,6 +97,8 @@ export type { ListLatestArtifactsErrorResponse, ListLatestArtifactsOkResponse, L
|
|
|
95
97
|
export { listLatestArtifacts, useListLatestArtifactsQuery, } from './hooks/useListLatestArtifactsQuery';
|
|
96
98
|
export type { ListRemediationsErrorResponse, ListRemediationsOkResponse, ListRemediationsProps, ListRemediationsQueryPathParams, ListRemediationsQueryQueryParams, ListRemediationsRequestBody, } from './hooks/useListRemediationsQuery';
|
|
97
99
|
export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
|
|
100
|
+
export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationPathParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationQueryParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeOkResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeProps, PostComplianceResultStatsEvaluationBreakdownArtifactTypeRequestBody, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
|
|
101
|
+
export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
|
|
98
102
|
export type { PostComplianceResultStatsOverviewErrorResponse, PostComplianceResultStatsOverviewMutationPathParams, PostComplianceResultStatsOverviewMutationQueryParams, PostComplianceResultStatsOverviewOkResponse, PostComplianceResultStatsOverviewProps, PostComplianceResultStatsOverviewRequestBody, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
99
103
|
export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
100
104
|
export type { SetBaselineForArtifactErrorResponse, SetBaselineForArtifactMutationPathParams, SetBaselineForArtifactOkResponse, SetBaselineForArtifactProps, SetBaselineForArtifactRequestBody, } from './hooks/useSetBaselineForArtifactMutation';
|
|
@@ -107,6 +111,7 @@ export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBod
|
|
|
107
111
|
export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
108
112
|
export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
|
|
109
113
|
export type { CodeRepositoryListingRequestBodyRequestBody } from './requestBodies/CodeRepositoryListingRequestBodyRequestBody';
|
|
114
|
+
export type { ComplianceResultsEvaluationBreakdownByArtifactsRequestRequestBody } from './requestBodies/ComplianceResultsEvaluationBreakdownByArtifactsRequestRequestBody';
|
|
110
115
|
export type { ComplianceResultsOverviewRequestBodyRequestBody } from './requestBodies/ComplianceResultsOverviewRequestBodyRequestBody';
|
|
111
116
|
export type { ComplianceStandardsRequestBodyRequestBody } from './requestBodies/ComplianceStandardsRequestBodyRequestBody';
|
|
112
117
|
export type { ConfigureReposRequestRequestBody } from './requestBodies/ConfigureReposRequestRequestBody';
|
|
@@ -135,14 +140,15 @@ export type { BaselineResponseBodyResponse } from './responses/BaselineResponseB
|
|
|
135
140
|
export type { CodeRepositoryListingResponseBodyResponse } from './responses/CodeRepositoryListingResponseBodyResponse';
|
|
136
141
|
export type { CodeRepositoryOverviewResponseBodyResponse } from './responses/CodeRepositoryOverviewResponseBodyResponse';
|
|
137
142
|
export type { ComplianceChecksStatsResponseResponse } from './responses/ComplianceChecksStatsResponseResponse';
|
|
143
|
+
export type { ComplianceResultsEvaluationBreakdownByArtifactsResponseResponse } from './responses/ComplianceResultsEvaluationBreakdownByArtifactsResponseResponse';
|
|
144
|
+
export type { ComplianceResultsEvaluationBreakdownResponseResponse } from './responses/ComplianceResultsEvaluationBreakdownResponseResponse';
|
|
138
145
|
export type { ComplianceResultsGroupByComplianceIdResponseBodyResponse } from './responses/ComplianceResultsGroupByComplianceIdResponseBodyResponse';
|
|
139
|
-
export type { ComplianceResultsOverviewResponseResponse } from './responses/ComplianceResultsOverviewResponseResponse';
|
|
140
146
|
export type { ComplianceStandardsResponseBodyResponse } from './responses/ComplianceStandardsResponseBodyResponse';
|
|
141
147
|
export type { ComponentDriftResponseBodyResponse } from './responses/ComponentDriftResponseBodyResponse';
|
|
142
148
|
export type { ComponentListResponseBodyResponse } from './responses/ComponentListResponseBodyResponse';
|
|
143
149
|
export type { CreateIntegrationResponseBodyResponse } from './responses/CreateIntegrationResponseBodyResponse';
|
|
144
150
|
export type { CreateTicketResponseBodyResponse } from './responses/CreateTicketResponseBodyResponse';
|
|
145
|
-
export type {
|
|
151
|
+
export type { FetchComplianceResultByArtifactResponseResponse } from './responses/FetchComplianceResultByArtifactResponseResponse';
|
|
146
152
|
export type { FetchIntegrationReposResponseBodyResponse } from './responses/FetchIntegrationReposResponseBodyResponse';
|
|
147
153
|
export type { IntegrationListingResponseBodyResponse } from './responses/IntegrationListingResponseBodyResponse';
|
|
148
154
|
export type { LicenseDriftResponseBodyResponse } from './responses/LicenseDriftResponseBodyResponse';
|
|
@@ -188,21 +194,19 @@ export type { CodeRepoRulesEvaluation } from './schemas/CodeRepoRulesEvaluation'
|
|
|
188
194
|
export type { CodeRepositoryListingRequest } from './schemas/CodeRepositoryListingRequest';
|
|
189
195
|
export type { CodeRepositoryListingResponse } from './schemas/CodeRepositoryListingResponse';
|
|
190
196
|
export type { CodeRepositoryOverview } from './schemas/CodeRepositoryOverview';
|
|
191
|
-
export type { ComplianceArtifactType } from './schemas/ComplianceArtifactType';
|
|
192
|
-
export type { ComplianceArtifactWithExecution } from './schemas/ComplianceArtifactWithExecution';
|
|
193
197
|
export type { ComplianceCheck } from './schemas/ComplianceCheck';
|
|
194
198
|
export type { ComplianceCheckEntityType } from './schemas/ComplianceCheckEntityType';
|
|
195
199
|
export type { ComplianceCheckSeverity } from './schemas/ComplianceCheckSeverity';
|
|
196
200
|
export type { ComplianceCheckType } from './schemas/ComplianceCheckType';
|
|
197
201
|
export type { ComplianceChecksMetrics } from './schemas/ComplianceChecksMetrics';
|
|
202
|
+
export type { ComplianceEvaluationHistory } from './schemas/ComplianceEvaluationHistory';
|
|
198
203
|
export type { ComplianceEvaluationSummary } from './schemas/ComplianceEvaluationSummary';
|
|
199
204
|
export type { ComplianceExecutionByType } from './schemas/ComplianceExecutionByType';
|
|
200
205
|
export type { ComplianceFilter } from './schemas/ComplianceFilter';
|
|
201
|
-
export type { ComplianceResult } from './schemas/ComplianceResult';
|
|
202
206
|
export type { ComplianceResultAggregationByType } from './schemas/ComplianceResultAggregationByType';
|
|
203
207
|
export type { ComplianceResultFilter } from './schemas/ComplianceResultFilter';
|
|
204
208
|
export type { ComplianceResultStatus } from './schemas/ComplianceResultStatus';
|
|
205
|
-
export type {
|
|
209
|
+
export type { ComplianceResultsEvaluationBreakdown } from './schemas/ComplianceResultsEvaluationBreakdown';
|
|
206
210
|
export type { ComplianceStandardType } from './schemas/ComplianceStandardType';
|
|
207
211
|
export type { ComponentDrift } from './schemas/ComponentDrift';
|
|
208
212
|
export type { ComponentDriftSummary } from './schemas/ComponentDriftSummary';
|
|
@@ -222,6 +226,7 @@ export type { EnvironmentInfo } from './schemas/EnvironmentInfo';
|
|
|
222
226
|
export type { EnvironmentType } from './schemas/EnvironmentType';
|
|
223
227
|
export type { EnvironmentTypeFilter } from './schemas/EnvironmentTypeFilter';
|
|
224
228
|
export type { ExcludeArtifactRequest } from './schemas/ExcludeArtifactRequest';
|
|
229
|
+
export type { FetchComplianceResultByArtifactResponseBody } from './schemas/FetchComplianceResultByArtifactResponseBody';
|
|
225
230
|
export type { Integration } from './schemas/Integration';
|
|
226
231
|
export type { IntegrationType } from './schemas/IntegrationType';
|
|
227
232
|
export type { LayerType } from './schemas/LayerType';
|
|
@@ -255,6 +260,7 @@ export type { RemediationTrackerUpdateRequestBody } from './schemas/RemediationT
|
|
|
255
260
|
export type { RemediationTrackerUpdateResponseBody } from './schemas/RemediationTrackerUpdateResponseBody';
|
|
256
261
|
export type { RemediationTrackersOverallSummaryResponseBody } from './schemas/RemediationTrackersOverallSummaryResponseBody';
|
|
257
262
|
export type { RepoDetailsDto } from './schemas/RepoDetailsDto';
|
|
263
|
+
export type { RepositoriesSummary } from './schemas/RepositoriesSummary';
|
|
258
264
|
export type { RiskAndCompliance } from './schemas/RiskAndCompliance';
|
|
259
265
|
export type { SaveResponse } from './schemas/SaveResponse';
|
|
260
266
|
export type { SbomDetailsForScorecard } from './schemas/SbomDetailsForScorecard';
|
|
@@ -12,9 +12,10 @@ export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMu
|
|
|
12
12
|
export { deleteIntegration, useDeleteIntegrationMutation, } from './hooks/useDeleteIntegrationMutation';
|
|
13
13
|
export { downloadSbom, useDownloadSbomQuery } from './hooks/useDownloadSbomQuery';
|
|
14
14
|
export { excludeArtifact, useExcludeArtifactMutation } from './hooks/useExcludeArtifactMutation';
|
|
15
|
-
export {
|
|
15
|
+
export { fetchComplianceResultsByArtifact, useFetchComplianceResultsByArtifactQuery, } from './hooks/useFetchComplianceResultsByArtifactQuery';
|
|
16
16
|
export { fetchComplianceResultsGroupById, useFetchComplianceResultsGroupByIdMutation, } from './hooks/useFetchComplianceResultsGroupByIdMutation';
|
|
17
17
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
18
|
+
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
18
19
|
export { getArtifactDetailComponentView, useGetArtifactDetailComponentViewQuery, } from './hooks/useGetArtifactDetailComponentViewQuery';
|
|
19
20
|
export { getArtifactDetailDeploymentView, useGetArtifactDetailDeploymentViewQuery, } from './hooks/useGetArtifactDetailDeploymentViewQuery';
|
|
20
21
|
export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
|
|
@@ -46,6 +47,7 @@ export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQu
|
|
|
46
47
|
export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
|
|
47
48
|
export { listLatestArtifacts, useListLatestArtifactsQuery, } from './hooks/useListLatestArtifactsQuery';
|
|
48
49
|
export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
|
|
50
|
+
export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
|
|
49
51
|
export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
50
52
|
export { setBaselineForArtifact, useSetBaselineForArtifactMutation, } from './hooks/useSetBaselineForArtifactMutation';
|
|
51
53
|
export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { ComplianceCheckType } from '../schemas/ComplianceCheckType';
|
|
2
1
|
/**
|
|
3
2
|
* Stores artifact type vs passed failed count
|
|
4
3
|
*/
|
|
5
4
|
export interface ArtifactComplianceMetrics {
|
|
6
|
-
artifactType?:
|
|
5
|
+
artifactType?: string;
|
|
7
6
|
failed?: number;
|
|
8
7
|
passed?: number;
|
|
9
8
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
}
|
|
1
|
+
export type ComplianceCheckSeverity = 'CRITICAL' | 'HIGH' | 'LOW' | 'MEDIUM';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
}
|
|
1
|
+
export type ComplianceResultStatus = 'FAILED' | 'PASSED' | 'UNKNOWN';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SeverityComplianceMetrics } from '../schemas/SeverityComplianceMetrics';
|
|
2
|
+
/**
|
|
3
|
+
* Powers Compliance Result EvaluationBreakdown
|
|
4
|
+
*/
|
|
5
|
+
export interface ComplianceResultsEvaluationBreakdown {
|
|
6
|
+
failed?: number;
|
|
7
|
+
passed?: number;
|
|
8
|
+
severity_breakdown?: SeverityComplianceMetrics[];
|
|
9
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
}
|
|
1
|
+
export type ComplianceStandardType = 'CIS' | 'OWASP';
|
package/dist/ssca-manager/src/services/schemas/FetchComplianceResultByArtifactResponseBody.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ComplianceEvaluationHistory } from '../schemas/ComplianceEvaluationHistory';
|
|
2
|
+
export interface FetchComplianceResultByArtifactResponseBody {
|
|
3
|
+
compliance_id?: string;
|
|
4
|
+
evaluation_history?: ComplianceEvaluationHistory[];
|
|
5
|
+
/**
|
|
6
|
+
* @format int64
|
|
7
|
+
*/
|
|
8
|
+
evaluation_time?: number;
|
|
9
|
+
severity?: string;
|
|
10
|
+
standards?: string[];
|
|
11
|
+
status?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComplianceEvaluationSummary } from '../schemas/ComplianceEvaluationSummary';
|
|
2
|
+
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
3
|
+
export interface RepositoriesSummary {
|
|
4
|
+
evaluation_summary?: ComplianceEvaluationSummary;
|
|
5
|
+
total?: number;
|
|
6
|
+
vulnerabilities?: StoIssueCount;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { FetchArtifactsByComplianceIdResponseBodyResponse } from '../responses/FetchArtifactsByComplianceIdResponseBodyResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface FetchArtifactByComplianceIdQueryPathParams {
|
|
6
|
-
org: string;
|
|
7
|
-
check: string;
|
|
8
|
-
project: string;
|
|
9
|
-
}
|
|
10
|
-
export interface FetchArtifactByComplianceIdQueryQueryParams {
|
|
11
|
-
/**
|
|
12
|
-
* @default 0
|
|
13
|
-
*/
|
|
14
|
-
page?: number;
|
|
15
|
-
/**
|
|
16
|
-
* @default 30
|
|
17
|
-
*/
|
|
18
|
-
limit?: number;
|
|
19
|
-
/**
|
|
20
|
-
* @default "ASC"
|
|
21
|
-
*/
|
|
22
|
-
order?: 'ASC' | 'DESC';
|
|
23
|
-
sort?: 'repo_name' | 'status' | 'updated';
|
|
24
|
-
search_term?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface FetchArtifactByComplianceIdQueryHeaderParams {
|
|
27
|
-
'Harness-Account': string;
|
|
28
|
-
}
|
|
29
|
-
export type FetchArtifactByComplianceIdOkResponse = ResponseWithPagination<FetchArtifactsByComplianceIdResponseBodyResponse>;
|
|
30
|
-
export type FetchArtifactByComplianceIdErrorResponse = unknown;
|
|
31
|
-
export interface FetchArtifactByComplianceIdProps extends FetchArtifactByComplianceIdQueryPathParams, Omit<FetcherOptions<FetchArtifactByComplianceIdQueryQueryParams, unknown, FetchArtifactByComplianceIdQueryHeaderParams>, 'url'> {
|
|
32
|
-
queryParams: FetchArtifactByComplianceIdQueryQueryParams;
|
|
33
|
-
}
|
|
34
|
-
export declare function fetchArtifactByComplianceId(props: FetchArtifactByComplianceIdProps): Promise<FetchArtifactByComplianceIdOkResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* Fetch Artifact By Compliance Id
|
|
37
|
-
*/
|
|
38
|
-
export declare function useFetchArtifactByComplianceIdQuery(props: FetchArtifactByComplianceIdProps, options?: Omit<UseQueryOptions<FetchArtifactByComplianceIdOkResponse, FetchArtifactByComplianceIdErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<FetchArtifactByComplianceIdOkResponse, 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 { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
-
export function fetchArtifactByComplianceId(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/compliance-results/checks/${props.check}/list`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Fetch Artifact By Compliance Id
|
|
11
|
-
*/
|
|
12
|
-
export function useFetchArtifactByComplianceIdQuery(props, options) {
|
|
13
|
-
return useQuery(['fetchArtifactByComplianceId', props.org, props.check, props.project, props.queryParams], ({ signal }) => fetchArtifactByComplianceId(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { ComplianceResultStatus } from '../schemas/ComplianceResultStatus';
|
|
2
|
-
import type { ComplianceCheckSeverity } from '../schemas/ComplianceCheckSeverity';
|
|
3
|
-
import type { ComplianceStandardType } from '../schemas/ComplianceStandardType';
|
|
4
|
-
import type { ComplianceResult } from '../schemas/ComplianceResult';
|
|
5
|
-
import type { ComplianceArtifactType } from '../schemas/ComplianceArtifactType';
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
export interface ComplianceArtifactWithExecution {
|
|
10
|
-
compliance_id: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
executions?: {
|
|
13
|
-
pipeline_excution_id: string;
|
|
14
|
-
pipeline_id: string;
|
|
15
|
-
stage_execution_id: string;
|
|
16
|
-
status?: ComplianceResultStatus;
|
|
17
|
-
step_execution_id: string;
|
|
18
|
-
};
|
|
19
|
-
name: string;
|
|
20
|
-
reason?: string;
|
|
21
|
-
remediation?: string;
|
|
22
|
-
severity: ComplianceCheckSeverity;
|
|
23
|
-
standards: ComplianceStandardType[];
|
|
24
|
-
status?: ComplianceResult;
|
|
25
|
-
tags: string[];
|
|
26
|
-
title?: string;
|
|
27
|
-
type: ComplianceArtifactType;
|
|
28
|
-
updatedAt?: string;
|
|
29
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { ComplianceCheckEntityType } from '../schemas/ComplianceCheckEntityType';
|
|
2
|
-
import type { ComplianceCheckSeverity } from '../schemas/ComplianceCheckSeverity';
|
|
3
|
-
import type { ComplianceStandardType } from '../schemas/ComplianceStandardType';
|
|
4
|
-
import type { ComplianceResultStatus } from '../schemas/ComplianceResultStatus';
|
|
5
|
-
export interface ComplianceResult {
|
|
6
|
-
category: string;
|
|
7
|
-
category_id: string;
|
|
8
|
-
compliance_id: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
entity: ComplianceCheckEntityType;
|
|
11
|
-
reason: string;
|
|
12
|
-
remediation: string;
|
|
13
|
-
severity: ComplianceCheckSeverity;
|
|
14
|
-
standards: ComplianceStandardType[];
|
|
15
|
-
status: ComplianceResultStatus;
|
|
16
|
-
sub_category: string;
|
|
17
|
-
sub_category_id: string;
|
|
18
|
-
tags?: string[];
|
|
19
|
-
title?: string;
|
|
20
|
-
url?: string;
|
|
21
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ArtifactComplianceMetrics } from '../schemas/ArtifactComplianceMetrics';
|
|
2
|
-
import type { SeverityComplianceMetrics } from '../schemas/SeverityComplianceMetrics';
|
|
3
|
-
/**
|
|
4
|
-
* Powers Compliance Result Overview
|
|
5
|
-
*/
|
|
6
|
-
export interface ComplianceResultsOverview {
|
|
7
|
-
artifact_breakdown?: ArtifactComplianceMetrics[];
|
|
8
|
-
failed?: number;
|
|
9
|
-
passed?: number;
|
|
10
|
-
severity_breakdown?: SeverityComplianceMetrics[];
|
|
11
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|