@harnessio/react-ssca-manager-client 0.59.0 → 0.61.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/useGetCicdOverviewQuery.d.ts +21 -0
- package/dist/ssca-manager/src/services/hooks/useGetCicdOverviewQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetCicdRulesEvaluationTrendQuery.d.ts +32 -0
- package/dist/ssca-manager/src/services/hooks/useGetCicdRulesEvaluationTrendQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetCicdWorkflowsListQuery.d.ts +42 -0
- package/dist/ssca-manager/src/services/hooks/useGetCicdWorkflowsListQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetCicdWorkflowsSummaryQuery.d.ts +20 -0
- package/dist/ssca-manager/src/services/hooks/useGetCicdWorkflowsSummaryQuery.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +16 -0
- package/dist/ssca-manager/src/services/index.js +4 -0
- package/dist/ssca-manager/src/services/responses/CicdOverviewResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/CicdOverviewResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/CicdOverviewResponseBody.d.ts +18 -0
- package/dist/ssca-manager/src/services/schemas/CicdOverviewResponseBody.js +1 -0
- package/dist/ssca-manager/src/services/schemas/CicdRulesEvaluation.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/CicdRulesEvaluation.js +4 -0
- package/dist/ssca-manager/src/services/schemas/CicdWorkflowListingRequest.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/CicdWorkflowListingRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/CicdWorkflowListingResponse.d.ts +18 -0
- package/dist/ssca-manager/src/services/schemas/CicdWorkflowListingResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/CicdWorkflowSummary.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/CicdWorkflowSummary.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceArtifactWithExecution.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceEvaluationHistory.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceOccurrenceDto.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceOccurrenceDto.js +4 -0
- package/dist/ssca-manager/src/services/schemas/FetchComplianceResultByArtifactResponseBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/LicenseUsageResponse.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/PipelineDetails.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/SbomInfo.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/WorkflowSource.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/WorkflowSource.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CicdOverviewResponseBodyResponse } from '../responses/CicdOverviewResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetCicdOverviewQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
workflow: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetCicdOverviewQueryHeaderParams {
|
|
11
|
+
'Harness-Account': string;
|
|
12
|
+
}
|
|
13
|
+
export type GetCicdOverviewOkResponse = ResponseWithPagination<CicdOverviewResponseBodyResponse>;
|
|
14
|
+
export type GetCicdOverviewErrorResponse = unknown;
|
|
15
|
+
export interface GetCicdOverviewProps extends GetCicdOverviewQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetCicdOverviewQueryHeaderParams>, 'url'> {
|
|
16
|
+
}
|
|
17
|
+
export declare function getCicdOverview(props: GetCicdOverviewProps): Promise<GetCicdOverviewOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* This API provides overview details of a Ci/Cd Workflow.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetCicdOverviewQuery(props: GetCicdOverviewProps, options?: Omit<UseQueryOptions<GetCicdOverviewOkResponse, GetCicdOverviewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCicdOverviewOkResponse, 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 getCicdOverview(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ci-cd/${props.workflow}/overview`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* This API provides overview details of a Ci/Cd Workflow.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetCicdOverviewQuery(props, options) {
|
|
13
|
+
return useQuery(['getCICDOverview', props.org, props.project, props.workflow], ({ signal }) => getCicdOverview(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CicdRulesEvaluation } from '../schemas/CicdRulesEvaluation';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetCicdRulesEvaluationTrendQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
workflow: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetCicdRulesEvaluationTrendQueryQueryParams {
|
|
11
|
+
/**
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
start_time: number;
|
|
15
|
+
/**
|
|
16
|
+
* @format int64
|
|
17
|
+
*/
|
|
18
|
+
end_time?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface GetCicdRulesEvaluationTrendQueryHeaderParams {
|
|
21
|
+
'Harness-Account': string;
|
|
22
|
+
}
|
|
23
|
+
export type GetCicdRulesEvaluationTrendOkResponse = ResponseWithPagination<CicdRulesEvaluation[]>;
|
|
24
|
+
export type GetCicdRulesEvaluationTrendErrorResponse = unknown;
|
|
25
|
+
export interface GetCicdRulesEvaluationTrendProps extends GetCicdRulesEvaluationTrendQueryPathParams, Omit<FetcherOptions<GetCicdRulesEvaluationTrendQueryQueryParams, unknown, GetCicdRulesEvaluationTrendQueryHeaderParams>, 'url'> {
|
|
26
|
+
queryParams: GetCicdRulesEvaluationTrendQueryQueryParams;
|
|
27
|
+
}
|
|
28
|
+
export declare function getCicdRulesEvaluationTrend(props: GetCicdRulesEvaluationTrendProps): Promise<GetCicdRulesEvaluationTrendOkResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* GET CI/CD Rules Evaluation Trend
|
|
31
|
+
*/
|
|
32
|
+
export declare function useGetCicdRulesEvaluationTrendQuery(props: GetCicdRulesEvaluationTrendProps, options?: Omit<UseQueryOptions<GetCicdRulesEvaluationTrendOkResponse, GetCicdRulesEvaluationTrendErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCicdRulesEvaluationTrendOkResponse, 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 getCicdRulesEvaluationTrend(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ci-cd/${props.workflow}/rules/evalution-trend`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* GET CI/CD Rules Evaluation Trend
|
|
11
|
+
*/
|
|
12
|
+
export function useGetCicdRulesEvaluationTrendQuery(props, options) {
|
|
13
|
+
return useQuery(['getCICDRulesEvaluationTrend', props.org, props.project, props.workflow, props.queryParams], ({ signal }) => getCicdRulesEvaluationTrend(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CicdWorkflowListingResponse } from '../schemas/CicdWorkflowListingResponse';
|
|
3
|
+
import type { CicdWorkflowListingRequest } from '../schemas/CicdWorkflowListingRequest';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetCicdWorkflowsListQueryPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetCicdWorkflowsListQueryQueryParams {
|
|
11
|
+
/**
|
|
12
|
+
* @default 30
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @default "ASC"
|
|
17
|
+
*/
|
|
18
|
+
order?: 'ASC' | 'DESC';
|
|
19
|
+
/**
|
|
20
|
+
* @default 0
|
|
21
|
+
*/
|
|
22
|
+
page?: number;
|
|
23
|
+
/**
|
|
24
|
+
* @default "last_scan"
|
|
25
|
+
*/
|
|
26
|
+
sort?: 'last_scan';
|
|
27
|
+
}
|
|
28
|
+
export interface GetCicdWorkflowsListQueryHeaderParams {
|
|
29
|
+
'Harness-Account': string;
|
|
30
|
+
}
|
|
31
|
+
export type GetCicdWorkflowsListRequestBody = CicdWorkflowListingRequest;
|
|
32
|
+
export type GetCicdWorkflowsListOkResponse = ResponseWithPagination<CicdWorkflowListingResponse[]>;
|
|
33
|
+
export type GetCicdWorkflowsListErrorResponse = unknown;
|
|
34
|
+
export interface GetCicdWorkflowsListProps extends GetCicdWorkflowsListQueryPathParams, Omit<FetcherOptions<GetCicdWorkflowsListQueryQueryParams, GetCicdWorkflowsListRequestBody, GetCicdWorkflowsListQueryHeaderParams>, 'url'> {
|
|
35
|
+
queryParams: GetCicdWorkflowsListQueryQueryParams;
|
|
36
|
+
body: GetCicdWorkflowsListRequestBody;
|
|
37
|
+
}
|
|
38
|
+
export declare function getCicdWorkflowsList(props: GetCicdWorkflowsListProps): Promise<GetCicdWorkflowsListOkResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* List CI/CD Workflows
|
|
41
|
+
*/
|
|
42
|
+
export declare function useGetCicdWorkflowsListQuery(props: GetCicdWorkflowsListProps, options?: Omit<UseQueryOptions<GetCicdWorkflowsListOkResponse, GetCicdWorkflowsListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCicdWorkflowsListOkResponse, 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 getCicdWorkflowsList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ci-cd/list`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List CI/CD Workflows
|
|
11
|
+
*/
|
|
12
|
+
export function useGetCicdWorkflowsListQuery(props, options) {
|
|
13
|
+
return useQuery(['getCICDWorkflowsList', props.org, props.project, props.queryParams, props.body], ({ signal }) => getCicdWorkflowsList(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CicdWorkflowSummary } from '../schemas/CicdWorkflowSummary';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetCicdWorkflowsSummaryQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetCicdWorkflowsSummaryQueryHeaderParams {
|
|
10
|
+
'Harness-Account': string;
|
|
11
|
+
}
|
|
12
|
+
export type GetCicdWorkflowsSummaryOkResponse = ResponseWithPagination<CicdWorkflowSummary>;
|
|
13
|
+
export type GetCicdWorkflowsSummaryErrorResponse = unknown;
|
|
14
|
+
export interface GetCicdWorkflowsSummaryProps extends GetCicdWorkflowsSummaryQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetCicdWorkflowsSummaryQueryHeaderParams>, 'url'> {
|
|
15
|
+
}
|
|
16
|
+
export declare function getCicdWorkflowsSummary(props: GetCicdWorkflowsSummaryProps): Promise<GetCicdWorkflowsSummaryOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get all CI/CD Workflow Summary including Number of workflows and Compliance evaluations for all workflows.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetCicdWorkflowsSummaryQuery(props: GetCicdWorkflowsSummaryProps, options?: Omit<UseQueryOptions<GetCicdWorkflowsSummaryOkResponse, GetCicdWorkflowsSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCicdWorkflowsSummaryOkResponse, 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 getCicdWorkflowsSummary(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ci-cd/summary`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get all CI/CD Workflow Summary including Number of workflows and Compliance evaluations for all workflows.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetCicdWorkflowsSummaryQuery(props, options) {
|
|
13
|
+
return useQuery(['getCICDWorkflowsSummary', props.org, props.project], ({ signal }) => getCicdWorkflowsSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -57,6 +57,14 @@ export type { GetArtifactV2OverviewErrorResponse, GetArtifactV2OverviewOkRespons
|
|
|
57
57
|
export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
|
|
58
58
|
export type { GetBaselineForArtifactErrorResponse, GetBaselineForArtifactOkResponse, GetBaselineForArtifactProps, GetBaselineForArtifactQueryPathParams, } from './hooks/useGetBaselineForArtifactQuery';
|
|
59
59
|
export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
|
|
60
|
+
export type { GetCicdOverviewErrorResponse, GetCicdOverviewOkResponse, GetCicdOverviewProps, GetCicdOverviewQueryPathParams, } from './hooks/useGetCicdOverviewQuery';
|
|
61
|
+
export { getCicdOverview, useGetCicdOverviewQuery } from './hooks/useGetCicdOverviewQuery';
|
|
62
|
+
export type { GetCicdRulesEvaluationTrendErrorResponse, GetCicdRulesEvaluationTrendOkResponse, GetCicdRulesEvaluationTrendProps, GetCicdRulesEvaluationTrendQueryPathParams, GetCicdRulesEvaluationTrendQueryQueryParams, } from './hooks/useGetCicdRulesEvaluationTrendQuery';
|
|
63
|
+
export { getCicdRulesEvaluationTrend, useGetCicdRulesEvaluationTrendQuery, } from './hooks/useGetCicdRulesEvaluationTrendQuery';
|
|
64
|
+
export type { GetCicdWorkflowsListErrorResponse, GetCicdWorkflowsListOkResponse, GetCicdWorkflowsListProps, GetCicdWorkflowsListQueryPathParams, GetCicdWorkflowsListQueryQueryParams, GetCicdWorkflowsListRequestBody, } from './hooks/useGetCicdWorkflowsListQuery';
|
|
65
|
+
export { getCicdWorkflowsList, useGetCicdWorkflowsListQuery, } from './hooks/useGetCicdWorkflowsListQuery';
|
|
66
|
+
export type { GetCicdWorkflowsSummaryErrorResponse, GetCicdWorkflowsSummaryOkResponse, GetCicdWorkflowsSummaryProps, GetCicdWorkflowsSummaryQueryPathParams, } from './hooks/useGetCicdWorkflowsSummaryQuery';
|
|
67
|
+
export { getCicdWorkflowsSummary, useGetCicdWorkflowsSummaryQuery, } from './hooks/useGetCicdWorkflowsSummaryQuery';
|
|
60
68
|
export type { GetCodeRepositoryOverviewErrorResponse, GetCodeRepositoryOverviewOkResponse, GetCodeRepositoryOverviewProps, GetCodeRepositoryOverviewQueryPathParams, } from './hooks/useGetCodeRepositoryOverviewQuery';
|
|
61
69
|
export { getCodeRepositoryOverview, useGetCodeRepositoryOverviewQuery, } from './hooks/useGetCodeRepositoryOverviewQuery';
|
|
62
70
|
export type { GetCompliaceStandardByIdErrorResponse, GetCompliaceStandardByIdOkResponse, GetCompliaceStandardByIdProps, GetCompliaceStandardByIdQueryPathParams, } from './hooks/useGetCompliaceStandardByIdQuery';
|
|
@@ -149,6 +157,7 @@ export type { ArtifactSbomResponseBodyResponse } from './responses/ArtifactSbomR
|
|
|
149
157
|
export type { ArtifactSourcesListingResponseResponse } from './responses/ArtifactSourcesListingResponseResponse';
|
|
150
158
|
export type { ArtifactV2ListingResponseBodyResponse } from './responses/ArtifactV2ListingResponseBodyResponse';
|
|
151
159
|
export type { BaselineResponseBodyResponse } from './responses/BaselineResponseBodyResponse';
|
|
160
|
+
export type { CicdOverviewResponseBodyResponse } from './responses/CicdOverviewResponseBodyResponse';
|
|
152
161
|
export type { CodeRepositoryListingResponseBodyResponse } from './responses/CodeRepositoryListingResponseBodyResponse';
|
|
153
162
|
export type { CodeRepositoryOverviewResponseBodyResponse } from './responses/CodeRepositoryOverviewResponseBodyResponse';
|
|
154
163
|
export type { ComplianceChecksStatsResponseResponse } from './responses/ComplianceChecksStatsResponseResponse';
|
|
@@ -207,6 +216,11 @@ export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
|
|
|
207
216
|
export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
|
|
208
217
|
export type { CategoryScorecard } from './schemas/CategoryScorecard';
|
|
209
218
|
export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
|
|
219
|
+
export type { CicdOverviewResponseBody } from './schemas/CicdOverviewResponseBody';
|
|
220
|
+
export type { CicdRulesEvaluation } from './schemas/CicdRulesEvaluation';
|
|
221
|
+
export type { CicdWorkflowListingRequest } from './schemas/CicdWorkflowListingRequest';
|
|
222
|
+
export type { CicdWorkflowListingResponse } from './schemas/CicdWorkflowListingResponse';
|
|
223
|
+
export type { CicdWorkflowSummary } from './schemas/CicdWorkflowSummary';
|
|
210
224
|
export type { CodeRepoRulesEvaluation } from './schemas/CodeRepoRulesEvaluation';
|
|
211
225
|
export type { CodeRepositoryListingRequest } from './schemas/CodeRepositoryListingRequest';
|
|
212
226
|
export type { CodeRepositoryListingResponse } from './schemas/CodeRepositoryListingResponse';
|
|
@@ -222,6 +236,7 @@ export type { ComplianceEvaluationSummary } from './schemas/ComplianceEvaluation
|
|
|
222
236
|
export type { ComplianceEvaluationTrend } from './schemas/ComplianceEvaluationTrend';
|
|
223
237
|
export type { ComplianceExecutionByType } from './schemas/ComplianceExecutionByType';
|
|
224
238
|
export type { ComplianceFilter } from './schemas/ComplianceFilter';
|
|
239
|
+
export type { ComplianceOccurrenceDto } from './schemas/ComplianceOccurrenceDto';
|
|
225
240
|
export type { ComplianceResultAggregationByType } from './schemas/ComplianceResultAggregationByType';
|
|
226
241
|
export type { ComplianceResultByArtifactFilter } from './schemas/ComplianceResultByArtifactFilter';
|
|
227
242
|
export type { ComplianceResultFilter } from './schemas/ComplianceResultFilter';
|
|
@@ -299,3 +314,4 @@ export type { TicketInfo } from './schemas/TicketInfo';
|
|
|
299
314
|
export type { Violations } from './schemas/Violations';
|
|
300
315
|
export type { VulnerabilityInfo } from './schemas/VulnerabilityInfo';
|
|
301
316
|
export type { VulnerabilitySeverity } from './schemas/VulnerabilitySeverity';
|
|
317
|
+
export type { WorkflowSource } from './schemas/WorkflowSource';
|
|
@@ -27,6 +27,10 @@ export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQu
|
|
|
27
27
|
export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
28
28
|
export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
|
|
29
29
|
export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
|
|
30
|
+
export { getCicdOverview, useGetCicdOverviewQuery } from './hooks/useGetCicdOverviewQuery';
|
|
31
|
+
export { getCicdRulesEvaluationTrend, useGetCicdRulesEvaluationTrendQuery, } from './hooks/useGetCicdRulesEvaluationTrendQuery';
|
|
32
|
+
export { getCicdWorkflowsList, useGetCicdWorkflowsListQuery, } from './hooks/useGetCicdWorkflowsListQuery';
|
|
33
|
+
export { getCicdWorkflowsSummary, useGetCicdWorkflowsSummaryQuery, } from './hooks/useGetCicdWorkflowsSummaryQuery';
|
|
30
34
|
export { getCodeRepositoryOverview, useGetCodeRepositoryOverviewQuery, } from './hooks/useGetCodeRepositoryOverviewQuery';
|
|
31
35
|
export { getCompliaceStandardById, useGetCompliaceStandardByIdQuery, } from './hooks/useGetCompliaceStandardByIdQuery';
|
|
32
36
|
export { getComplianceEvaluationTrends, useGetComplianceEvaluationTrendsQuery, } from './hooks/useGetComplianceEvaluationTrendsQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComplianceEvaluationSummary } from '../schemas/ComplianceEvaluationSummary';
|
|
2
|
+
import type { WorkflowSource } from '../schemas/WorkflowSource';
|
|
3
|
+
export interface CicdOverviewResponseBody {
|
|
4
|
+
compliance_summary: ComplianceEvaluationSummary;
|
|
5
|
+
/**
|
|
6
|
+
* Workflow Id
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
last_scan: number;
|
|
13
|
+
/**
|
|
14
|
+
* Workflow Name
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
source: WorkflowSource;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComplianceEvaluationSummary } from '../schemas/ComplianceEvaluationSummary';
|
|
2
|
+
import type { WorkflowSource } from '../schemas/WorkflowSource';
|
|
3
|
+
export interface CicdWorkflowListingResponse {
|
|
4
|
+
compliance_summary: ComplianceEvaluationSummary;
|
|
5
|
+
/**
|
|
6
|
+
* Workflow Id
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
last_scan: number;
|
|
13
|
+
/**
|
|
14
|
+
* Workflow Name
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
source: WorkflowSource;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComplianceEvaluationHistory } from '../schemas/ComplianceEvaluationHistory';
|
|
2
|
+
import type { ComplianceOccurrenceDto } from '../schemas/ComplianceOccurrenceDto';
|
|
2
3
|
import type { ComplianceCheckSeverity } from '../schemas/ComplianceCheckSeverity';
|
|
3
4
|
import type { ComplianceStandardType } from '../schemas/ComplianceStandardType';
|
|
4
5
|
import type { ComplianceResultStatus } from '../schemas/ComplianceResultStatus';
|
|
@@ -7,6 +8,7 @@ export interface ComplianceArtifactWithExecution {
|
|
|
7
8
|
description?: string;
|
|
8
9
|
executions?: ComplianceEvaluationHistory[];
|
|
9
10
|
name: string;
|
|
11
|
+
occurrences?: ComplianceOccurrenceDto[];
|
|
10
12
|
reason?: string;
|
|
11
13
|
remediation?: string;
|
|
12
14
|
severity: ComplianceCheckSeverity;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComplianceOccurrenceDto } from '../schemas/ComplianceOccurrenceDto';
|
|
1
2
|
import type { ComplianceResultStatus } from '../schemas/ComplianceResultStatus';
|
|
2
3
|
export interface ComplianceEvaluationHistory {
|
|
3
4
|
/**
|
|
@@ -5,6 +6,7 @@ export interface ComplianceEvaluationHistory {
|
|
|
5
6
|
*/
|
|
6
7
|
created_at?: number;
|
|
7
8
|
description?: string;
|
|
9
|
+
occurrences?: ComplianceOccurrenceDto[];
|
|
8
10
|
pipeline_execution_id?: string;
|
|
9
11
|
pipeline_id?: string;
|
|
10
12
|
reason?: string;
|
package/dist/ssca-manager/src/services/schemas/FetchComplianceResultByArtifactResponseBody.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComplianceEvaluationHistory } from '../schemas/ComplianceEvaluationHistory';
|
|
2
|
+
import type { ComplianceOccurrenceDto } from '../schemas/ComplianceOccurrenceDto';
|
|
2
3
|
import type { ComplianceCheckSeverity } from '../schemas/ComplianceCheckSeverity';
|
|
3
4
|
import type { ComplianceStandardType } from '../schemas/ComplianceStandardType';
|
|
4
5
|
import type { ComplianceResultStatus } from '../schemas/ComplianceResultStatus';
|
|
@@ -10,6 +11,7 @@ export interface FetchComplianceResultByArtifactResponseBody {
|
|
|
10
11
|
* @format int64
|
|
11
12
|
*/
|
|
12
13
|
evaluation_time?: number;
|
|
14
|
+
occurrences?: ComplianceOccurrenceDto[];
|
|
13
15
|
pipelineExecutionId?: string;
|
|
14
16
|
reason?: string;
|
|
15
17
|
remediation?: string;
|
|
@@ -19,7 +19,15 @@ export interface PipelineDetails {
|
|
|
19
19
|
* Project where pipeline is present.
|
|
20
20
|
*/
|
|
21
21
|
project_id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Execution Id for the Stage
|
|
24
|
+
*/
|
|
25
|
+
stage_execution_id?: string;
|
|
22
26
|
status?: 'FAILED' | 'PASSED' | 'UNKNOWN';
|
|
27
|
+
/**
|
|
28
|
+
* Execution Id for the step
|
|
29
|
+
*/
|
|
30
|
+
step_execution_id?: string;
|
|
23
31
|
/**
|
|
24
32
|
* Time of trigger of the deployment pipeline
|
|
25
33
|
* @format int64
|