@harnessio/react-ssca-manager-client 0.46.0 → 0.47.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/usePostComplianceResultStatsOverviewMutation.d.ts +2 -2
- package/dist/ssca-manager/src/services/index.d.ts +8 -6
- package/dist/ssca-manager/src/services/index.js +2 -1
- package/dist/ssca-manager/src/services/responses/FetchComplianceResultByArtifactResponseResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceEvaluationHistory.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/FetchComplianceResultByArtifactResponseBody.d.ts +13 -0
- package/dist/ssca-manager/src/services/schemas/RepositoriesSummary.d.ts +7 -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/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/responses/{FetchArtifactsByComplianceIdResponseBodyResponse.js → FetchComplianceResultByArtifactResponseResponse.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{ComplianceArtifactType.js → ComplianceEvaluationHistory.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{ComplianceArtifactWithExecution.js → FetchComplianceResultByArtifactResponseBody.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{ComplianceResult.js → RepositoriesSummary.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
|
+
}
|
package/dist/ssca-manager/src/services/hooks/usePostComplianceResultStatsOverviewMutation.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface PostComplianceResultStatsOverviewMutationHeaderParams {
|
|
|
16
16
|
}
|
|
17
17
|
export type PostComplianceResultStatsOverviewRequestBody = ComplianceResultsOverviewRequestBodyRequestBody;
|
|
18
18
|
export type PostComplianceResultStatsOverviewOkResponse = ResponseWithPagination<ComplianceResultsOverviewResponseResponse>;
|
|
19
|
-
export type PostComplianceResultStatsOverviewErrorResponse =
|
|
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>;
|
|
@@ -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';
|
|
@@ -142,7 +144,7 @@ export type { ComponentDriftResponseBodyResponse } from './responses/ComponentDr
|
|
|
142
144
|
export type { ComponentListResponseBodyResponse } from './responses/ComponentListResponseBodyResponse';
|
|
143
145
|
export type { CreateIntegrationResponseBodyResponse } from './responses/CreateIntegrationResponseBodyResponse';
|
|
144
146
|
export type { CreateTicketResponseBodyResponse } from './responses/CreateTicketResponseBodyResponse';
|
|
145
|
-
export type {
|
|
147
|
+
export type { FetchComplianceResultByArtifactResponseResponse } from './responses/FetchComplianceResultByArtifactResponseResponse';
|
|
146
148
|
export type { FetchIntegrationReposResponseBodyResponse } from './responses/FetchIntegrationReposResponseBodyResponse';
|
|
147
149
|
export type { IntegrationListingResponseBodyResponse } from './responses/IntegrationListingResponseBodyResponse';
|
|
148
150
|
export type { LicenseDriftResponseBodyResponse } from './responses/LicenseDriftResponseBodyResponse';
|
|
@@ -188,17 +190,15 @@ export type { CodeRepoRulesEvaluation } from './schemas/CodeRepoRulesEvaluation'
|
|
|
188
190
|
export type { CodeRepositoryListingRequest } from './schemas/CodeRepositoryListingRequest';
|
|
189
191
|
export type { CodeRepositoryListingResponse } from './schemas/CodeRepositoryListingResponse';
|
|
190
192
|
export type { CodeRepositoryOverview } from './schemas/CodeRepositoryOverview';
|
|
191
|
-
export type { ComplianceArtifactType } from './schemas/ComplianceArtifactType';
|
|
192
|
-
export type { ComplianceArtifactWithExecution } from './schemas/ComplianceArtifactWithExecution';
|
|
193
193
|
export type { ComplianceCheck } from './schemas/ComplianceCheck';
|
|
194
194
|
export type { ComplianceCheckEntityType } from './schemas/ComplianceCheckEntityType';
|
|
195
195
|
export type { ComplianceCheckSeverity } from './schemas/ComplianceCheckSeverity';
|
|
196
196
|
export type { ComplianceCheckType } from './schemas/ComplianceCheckType';
|
|
197
197
|
export type { ComplianceChecksMetrics } from './schemas/ComplianceChecksMetrics';
|
|
198
|
+
export type { ComplianceEvaluationHistory } from './schemas/ComplianceEvaluationHistory';
|
|
198
199
|
export type { ComplianceEvaluationSummary } from './schemas/ComplianceEvaluationSummary';
|
|
199
200
|
export type { ComplianceExecutionByType } from './schemas/ComplianceExecutionByType';
|
|
200
201
|
export type { ComplianceFilter } from './schemas/ComplianceFilter';
|
|
201
|
-
export type { ComplianceResult } from './schemas/ComplianceResult';
|
|
202
202
|
export type { ComplianceResultAggregationByType } from './schemas/ComplianceResultAggregationByType';
|
|
203
203
|
export type { ComplianceResultFilter } from './schemas/ComplianceResultFilter';
|
|
204
204
|
export type { ComplianceResultStatus } from './schemas/ComplianceResultStatus';
|
|
@@ -222,6 +222,7 @@ export type { EnvironmentInfo } from './schemas/EnvironmentInfo';
|
|
|
222
222
|
export type { EnvironmentType } from './schemas/EnvironmentType';
|
|
223
223
|
export type { EnvironmentTypeFilter } from './schemas/EnvironmentTypeFilter';
|
|
224
224
|
export type { ExcludeArtifactRequest } from './schemas/ExcludeArtifactRequest';
|
|
225
|
+
export type { FetchComplianceResultByArtifactResponseBody } from './schemas/FetchComplianceResultByArtifactResponseBody';
|
|
225
226
|
export type { Integration } from './schemas/Integration';
|
|
226
227
|
export type { IntegrationType } from './schemas/IntegrationType';
|
|
227
228
|
export type { LayerType } from './schemas/LayerType';
|
|
@@ -255,6 +256,7 @@ export type { RemediationTrackerUpdateRequestBody } from './schemas/RemediationT
|
|
|
255
256
|
export type { RemediationTrackerUpdateResponseBody } from './schemas/RemediationTrackerUpdateResponseBody';
|
|
256
257
|
export type { RemediationTrackersOverallSummaryResponseBody } from './schemas/RemediationTrackersOverallSummaryResponseBody';
|
|
257
258
|
export type { RepoDetailsDto } from './schemas/RepoDetailsDto';
|
|
259
|
+
export type { RepositoriesSummary } from './schemas/RepositoriesSummary';
|
|
258
260
|
export type { RiskAndCompliance } from './schemas/RiskAndCompliance';
|
|
259
261
|
export type { SaveResponse } from './schemas/SaveResponse';
|
|
260
262
|
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';
|
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,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
|
+
}
|
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
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/ssca-manager/src/services/schemas/{ComplianceResult.js → RepositoriesSummary.js}
RENAMED
|
File without changes
|