@harnessio/react-ssca-manager-client 0.83.1 → 0.83.3
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/useCreateComponentTicketMutation.d.ts +28 -0
- package/dist/ssca-manager/src/services/hooks/useCreateComponentTicketMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetComponentTicketQuery.d.ts +25 -0
- package/dist/ssca-manager/src/services/hooks/useGetComponentTicketQuery.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +6 -10
- package/dist/ssca-manager/src/services/index.js +2 -3
- package/dist/ssca-manager/src/services/responses/TicketResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewResponse.d.ts +18 -0
- package/dist/ssca-manager/src/services/schemas/OwaspFilter.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/hooks/useFetchRuntimeSecurityAlertsByArtifactQuery.d.ts +0 -40
- package/dist/ssca-manager/src/services/hooks/useFetchRuntimeSecurityAlertsByArtifactQuery.js +0 -21
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ChainOfCustodyQuery.d.ts +0 -21
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ChainOfCustodyQuery.js +0 -14
- package/dist/ssca-manager/src/services/hooks/useGetPipelineAlertListQuery.d.ts +0 -25
- package/dist/ssca-manager/src/services/hooks/useGetPipelineAlertListQuery.js +0 -14
- package/dist/ssca-manager/src/services/requestBodies/EbpfRequestBodyRequestBody.d.ts +0 -2
- package/dist/ssca-manager/src/services/schemas/AlertListingPipelineRequestBody.d.ts +0 -3
- package/dist/ssca-manager/src/services/schemas/AlertListingPipelineResponse.d.ts +0 -10
- package/dist/ssca-manager/src/services/schemas/AlertListingPipelineResponse.js +0 -4
- package/dist/ssca-manager/src/services/schemas/EbpfRequestBody.d.ts +0 -1
- package/dist/ssca-manager/src/services/schemas/EbpfRequestBody.js +0 -4
- /package/dist/ssca-manager/src/services/{requestBodies/EbpfRequestBodyRequestBody.js → responses/TicketResponseBodyResponse.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{AlertListingPipelineRequestBody.js → OwaspFilter.js} +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CreateTicketResponseBodyResponse } from '../responses/CreateTicketResponseBodyResponse';
|
|
3
|
+
import type { CreateTicketRequestBodyRequestBody } from '../requestBodies/CreateTicketRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface CreateComponentTicketMutationPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
artifact: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CreateComponentTicketMutationQueryParams {
|
|
12
|
+
purl: string;
|
|
13
|
+
}
|
|
14
|
+
export interface CreateComponentTicketMutationHeaderParams {
|
|
15
|
+
'Harness-Account': string;
|
|
16
|
+
}
|
|
17
|
+
export type CreateComponentTicketRequestBody = CreateTicketRequestBodyRequestBody;
|
|
18
|
+
export type CreateComponentTicketOkResponse = ResponseWithPagination<CreateTicketResponseBodyResponse>;
|
|
19
|
+
export type CreateComponentTicketErrorResponse = unknown;
|
|
20
|
+
export interface CreateComponentTicketProps extends CreateComponentTicketMutationPathParams, Omit<FetcherOptions<CreateComponentTicketMutationQueryParams, CreateComponentTicketRequestBody, CreateComponentTicketMutationHeaderParams>, 'url'> {
|
|
21
|
+
queryParams: CreateComponentTicketMutationQueryParams;
|
|
22
|
+
body: CreateComponentTicketRequestBody;
|
|
23
|
+
}
|
|
24
|
+
export declare function createComponentTicket(props: CreateComponentTicketProps): Promise<CreateComponentTicketOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Create Ticket For Components
|
|
27
|
+
*/
|
|
28
|
+
export declare function useCreateComponentTicketMutation(options?: Omit<UseMutationOptions<CreateComponentTicketOkResponse, CreateComponentTicketErrorResponse, CreateComponentTicketProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateComponentTicketOkResponse, unknown, CreateComponentTicketProps, 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 createComponentTicket(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/components/ticket`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create Ticket For Components
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateComponentTicketMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createComponentTicket(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TicketResponseBodyResponse } from '../responses/TicketResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetComponentTicketQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
artifact: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetComponentTicketQueryQueryParams {
|
|
11
|
+
purl: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetComponentTicketQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetComponentTicketOkResponse = ResponseWithPagination<TicketResponseBodyResponse>;
|
|
17
|
+
export type GetComponentTicketErrorResponse = unknown;
|
|
18
|
+
export interface GetComponentTicketProps extends GetComponentTicketQueryPathParams, Omit<FetcherOptions<GetComponentTicketQueryQueryParams, unknown, GetComponentTicketQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetComponentTicketQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getComponentTicket(props: GetComponentTicketProps): Promise<GetComponentTicketOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Get Ticket For Component
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetComponentTicketQuery(props: GetComponentTicketProps, options?: Omit<UseQueryOptions<GetComponentTicketOkResponse, GetComponentTicketErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetComponentTicketOkResponse, 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 getComponentTicket(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/components/ticket`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Ticket For Component
|
|
11
|
+
*/
|
|
12
|
+
export function useGetComponentTicketQuery(props, options) {
|
|
13
|
+
return useQuery(['getComponentTicket', props.org, props.project, props.artifact, props.queryParams], ({ signal }) => getComponentTicket(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -13,6 +13,8 @@ export type { ConfigureReposErrorResponse, ConfigureReposMutationPathParams, Con
|
|
|
13
13
|
export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureReposMutation';
|
|
14
14
|
export type { CreateComplianceStandardsErrorResponse, CreateComplianceStandardsMutationPathParams, CreateComplianceStandardsOkResponse, CreateComplianceStandardsProps, CreateComplianceStandardsRequestBody, } from './hooks/useCreateComplianceStandardsMutation';
|
|
15
15
|
export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
|
|
16
|
+
export type { CreateComponentTicketErrorResponse, CreateComponentTicketMutationPathParams, CreateComponentTicketMutationQueryParams, CreateComponentTicketOkResponse, CreateComponentTicketProps, CreateComponentTicketRequestBody, } from './hooks/useCreateComponentTicketMutation';
|
|
17
|
+
export { createComponentTicket, useCreateComponentTicketMutation, } from './hooks/useCreateComponentTicketMutation';
|
|
16
18
|
export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParams, CreateIntegrationOkResponse, CreateIntegrationProps, CreateIntegrationRequestBody, } from './hooks/useCreateIntegrationMutation';
|
|
17
19
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
18
20
|
export type { CreateRemediationTrackerErrorResponse, CreateRemediationTrackerMutationPathParams, CreateRemediationTrackerOkResponse, CreateRemediationTrackerProps, CreateRemediationTrackerRequestBody, } from './hooks/useCreateRemediationTrackerMutation';
|
|
@@ -35,8 +37,6 @@ export type { FetchPluginsForWorkflowErrorResponse, FetchPluginsForWorkflowOkRes
|
|
|
35
37
|
export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
|
|
36
38
|
export type { FetchReposInIntegrationErrorResponse, FetchReposInIntegrationOkResponse, FetchReposInIntegrationProps, FetchReposInIntegrationQueryPathParams, FetchReposInIntegrationQueryQueryParams, } from './hooks/useFetchReposInIntegrationQuery';
|
|
37
39
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
38
|
-
export type { FetchRuntimeSecurityAlertsByArtifactErrorResponse, FetchRuntimeSecurityAlertsByArtifactOkResponse, FetchRuntimeSecurityAlertsByArtifactProps, FetchRuntimeSecurityAlertsByArtifactQueryPathParams, FetchRuntimeSecurityAlertsByArtifactQueryQueryParams, FetchRuntimeSecurityAlertsByArtifactRequestBody, } from './hooks/useFetchRuntimeSecurityAlertsByArtifactQuery';
|
|
39
|
-
export { fetchRuntimeSecurityAlertsByArtifact, useFetchRuntimeSecurityAlertsByArtifactQuery, } from './hooks/useFetchRuntimeSecurityAlertsByArtifactQuery';
|
|
40
40
|
export type { GetAllRepositoriesSummaryErrorResponse, GetAllRepositoriesSummaryOkResponse, GetAllRepositoriesSummaryProps, GetAllRepositoriesSummaryQueryPathParams, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
41
41
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
42
42
|
export type { GetArtifactChainOfCustodyV2ErrorResponse, GetArtifactChainOfCustodyV2OkResponse, GetArtifactChainOfCustodyV2Props, GetArtifactChainOfCustodyV2QueryPathParams, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
@@ -45,8 +45,6 @@ export type { GetArtifactInRemediationDetailsErrorResponse, GetArtifactInRemedia
|
|
|
45
45
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
46
46
|
export type { GetArtifactListForRemediationErrorResponse, GetArtifactListForRemediationOkResponse, GetArtifactListForRemediationProps, GetArtifactListForRemediationQueryPathParams, GetArtifactListForRemediationQueryQueryParams, GetArtifactListForRemediationRequestBody, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
47
47
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
48
|
-
export type { GetArtifactV2ChainOfCustodyErrorResponse, GetArtifactV2ChainOfCustodyOkResponse, GetArtifactV2ChainOfCustodyProps, GetArtifactV2ChainOfCustodyQueryPathParams, } from './hooks/useGetArtifactV2ChainOfCustodyQuery';
|
|
49
|
-
export { getArtifactV2ChainOfCustody, useGetArtifactV2ChainOfCustodyQuery, } from './hooks/useGetArtifactV2ChainOfCustodyQuery';
|
|
50
48
|
export type { GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewProps, GetArtifactV2DetailComponentViewQueryPathParams, GetArtifactV2DetailComponentViewQueryQueryParams, GetArtifactV2DetailComponentViewRequestBody, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
51
49
|
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
52
50
|
export type { GetArtifactV2DetailDeploymentViewErrorResponse, GetArtifactV2DetailDeploymentViewOkResponse, GetArtifactV2DetailDeploymentViewProps, GetArtifactV2DetailDeploymentViewQueryPathParams, GetArtifactV2DetailDeploymentViewQueryQueryParams, GetArtifactV2DetailDeploymentViewRequestBody, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
@@ -77,6 +75,8 @@ export type { GetComplianceStandardsErrorResponse, GetComplianceStandardsMutatio
|
|
|
77
75
|
export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
|
|
78
76
|
export type { GetComponentDriftErrorResponse, GetComponentDriftOkResponse, GetComponentDriftProps, GetComponentDriftQueryPathParams, GetComponentDriftQueryQueryParams, } from './hooks/useGetComponentDriftQuery';
|
|
79
77
|
export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
|
|
78
|
+
export type { GetComponentTicketErrorResponse, GetComponentTicketOkResponse, GetComponentTicketProps, GetComponentTicketQueryPathParams, GetComponentTicketQueryQueryParams, } from './hooks/useGetComponentTicketQuery';
|
|
79
|
+
export { getComponentTicket, useGetComponentTicketQuery } from './hooks/useGetComponentTicketQuery';
|
|
80
80
|
export type { GetComponentsErrorResponse, GetComponentsOkResponse, GetComponentsProps, GetComponentsQueryPathParams, GetComponentsQueryQueryParams, } from './hooks/useGetComponentsQuery';
|
|
81
81
|
export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
|
|
82
82
|
export type { GetDeploymentsListForArtifactInRemediationErrorResponse, GetDeploymentsListForArtifactInRemediationOkResponse, GetDeploymentsListForArtifactInRemediationProps, GetDeploymentsListForArtifactInRemediationQueryPathParams, GetDeploymentsListForArtifactInRemediationQueryQueryParams, GetDeploymentsListForArtifactInRemediationRequestBody, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
@@ -93,8 +93,6 @@ export type { GetLicenseDriftErrorResponse, GetLicenseDriftOkResponse, GetLicens
|
|
|
93
93
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
94
94
|
export type { GetOverallSummaryErrorResponse, GetOverallSummaryOkResponse, GetOverallSummaryProps, GetOverallSummaryQueryPathParams, } from './hooks/useGetOverallSummaryQuery';
|
|
95
95
|
export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
|
|
96
|
-
export type { GetPipelineAlertListErrorResponse, GetPipelineAlertListOkResponse, GetPipelineAlertListProps, GetPipelineAlertListQueryPathParams, GetPipelineAlertListRequestBody, } from './hooks/useGetPipelineAlertListQuery';
|
|
97
|
-
export { getPipelineAlertList, useGetPipelineAlertListQuery, } from './hooks/useGetPipelineAlertListQuery';
|
|
98
96
|
export type { GetPipelineArtifactListErrorResponse, GetPipelineArtifactListOkResponse, GetPipelineArtifactListProps, GetPipelineArtifactListQueryPathParams, GetPipelineArtifactListRequestBody, } from './hooks/useGetPipelineArtifactListQuery';
|
|
99
97
|
export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
|
|
100
98
|
export type { GetPolicyViolationsErrorResponse, GetPolicyViolationsOkResponse, GetPolicyViolationsProps, GetPolicyViolationsQueryPathParams, GetPolicyViolationsQueryQueryParams, } from './hooks/useGetPolicyViolationsQuery';
|
|
@@ -143,7 +141,6 @@ export type { CreateComplianceStandardRequestBodyRequestBody } from './requestBo
|
|
|
143
141
|
export type { CreateIntegrationRequestBodyRequestBody } from './requestBodies/CreateIntegrationRequestBodyRequestBody';
|
|
144
142
|
export type { CreateTicketRequestBodyRequestBody } from './requestBodies/CreateTicketRequestBodyRequestBody';
|
|
145
143
|
export type { DownloadSbomRequestBodyRequestBody } from './requestBodies/DownloadSbomRequestBodyRequestBody';
|
|
146
|
-
export type { EbpfRequestBodyRequestBody } from './requestBodies/EbpfRequestBodyRequestBody';
|
|
147
144
|
export type { EnforceSbomRequestBodyRequestBody } from './requestBodies/EnforceSbomRequestBodyRequestBody';
|
|
148
145
|
export type { EnforceSbomRequestBodyV2RequestBody } from './requestBodies/EnforceSbomRequestBodyV2RequestBody';
|
|
149
146
|
export type { ExcludeArtifactRequestBodyRequestBody } from './requestBodies/ExcludeArtifactRequestBodyRequestBody';
|
|
@@ -236,12 +233,11 @@ export type { SaveOrchestrationResponseBodyResponse } from './responses/SaveOrch
|
|
|
236
233
|
export type { SaveResponseResponse } from './responses/SaveResponseResponse';
|
|
237
234
|
export type { SbomProcessResponseBodyResponse } from './responses/SbomProcessResponseBodyResponse';
|
|
238
235
|
export type { SbomScorecardResponseBodyResponse } from './responses/SbomScorecardResponseBodyResponse';
|
|
236
|
+
export type { TicketResponseBodyResponse } from './responses/TicketResponseBodyResponse';
|
|
239
237
|
export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueResponseBodyResponse';
|
|
240
238
|
export type { UpdateIntegrationResponseBodyResponse } from './responses/UpdateIntegrationResponseBodyResponse';
|
|
241
239
|
export type { VersionResponseBodyResponse } from './responses/VersionResponseBodyResponse';
|
|
242
240
|
export type { ActivityDetails } from './schemas/ActivityDetails';
|
|
243
|
-
export type { AlertListingPipelineRequestBody } from './schemas/AlertListingPipelineRequestBody';
|
|
244
|
-
export type { AlertListingPipelineResponse } from './schemas/AlertListingPipelineResponse';
|
|
245
241
|
export type { Artifact } from './schemas/Artifact';
|
|
246
242
|
export type { ArtifactAndDeploymentsResponseBody } from './schemas/ArtifactAndDeploymentsResponseBody';
|
|
247
243
|
export type { ArtifactChainOfCustody } from './schemas/ArtifactChainOfCustody';
|
|
@@ -338,7 +334,6 @@ export type { DeploymentsCount } from './schemas/DeploymentsCount';
|
|
|
338
334
|
export type { DownloadSbomRequest } from './schemas/DownloadSbomRequest';
|
|
339
335
|
export type { DownloadSignatureResponseBody } from './schemas/DownloadSignatureResponseBody';
|
|
340
336
|
export type { DriftDetailsDto } from './schemas/DriftDetailsDto';
|
|
341
|
-
export type { EbpfRequestBody } from './schemas/EbpfRequestBody';
|
|
342
337
|
export type { EnforceSbomRequestBody } from './schemas/EnforceSbomRequestBody';
|
|
343
338
|
export type { EnforceSbomRequestBodyV2 } from './schemas/EnforceSbomRequestBodyV2';
|
|
344
339
|
export type { EnforceSbomResponseBody } from './schemas/EnforceSbomResponseBody';
|
|
@@ -396,6 +391,7 @@ export type { OrchestrationModelPipeline } from './schemas/OrchestrationModelPip
|
|
|
396
391
|
export type { OrchestrationScorecardSummary } from './schemas/OrchestrationScorecardSummary';
|
|
397
392
|
export type { OrchestrationStepDriftRequestBody } from './schemas/OrchestrationStepDriftRequestBody';
|
|
398
393
|
export type { OrchestrationSummaryResponse } from './schemas/OrchestrationSummaryResponse';
|
|
394
|
+
export type { OwaspFilter } from './schemas/OwaspFilter';
|
|
399
395
|
export type { PipelineConfigUpdateRequest } from './schemas/PipelineConfigUpdateRequest';
|
|
400
396
|
export type { PipelineDetails } from './schemas/PipelineDetails';
|
|
401
397
|
export type { PipelineInfo } from './schemas/PipelineInfo';
|
|
@@ -5,6 +5,7 @@ export { closeRemediationTracker, useCloseRemediationTrackerMutation, } from './
|
|
|
5
5
|
export { codeRepositoriesList, useCodeRepositoriesListQuery, } from './hooks/useCodeRepositoriesListQuery';
|
|
6
6
|
export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureReposMutation';
|
|
7
7
|
export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
|
|
8
|
+
export { createComponentTicket, useCreateComponentTicketMutation, } from './hooks/useCreateComponentTicketMutation';
|
|
8
9
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
9
10
|
export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
|
|
10
11
|
export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
|
|
@@ -16,12 +17,10 @@ export { fetchComplianceResultsByComplianceId, useFetchComplianceResultsByCompli
|
|
|
16
17
|
export { fetchComplianceResultsGroupById, useFetchComplianceResultsGroupByIdMutation, } from './hooks/useFetchComplianceResultsGroupByIdMutation';
|
|
17
18
|
export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
|
|
18
19
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
19
|
-
export { fetchRuntimeSecurityAlertsByArtifact, useFetchRuntimeSecurityAlertsByArtifactQuery, } from './hooks/useFetchRuntimeSecurityAlertsByArtifactQuery';
|
|
20
20
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
21
21
|
export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
22
22
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
23
23
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
24
|
-
export { getArtifactV2ChainOfCustody, useGetArtifactV2ChainOfCustodyQuery, } from './hooks/useGetArtifactV2ChainOfCustodyQuery';
|
|
25
24
|
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
26
25
|
export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
27
26
|
export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
|
|
@@ -37,6 +36,7 @@ export { getComplianceResultStatsByComplianceChecks, useGetComplianceResultStats
|
|
|
37
36
|
export { getComplianceStandardsFilters, useGetComplianceStandardsFiltersQuery, } from './hooks/useGetComplianceStandardsFiltersQuery';
|
|
38
37
|
export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
|
|
39
38
|
export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
|
|
39
|
+
export { getComponentTicket, useGetComponentTicketQuery } from './hooks/useGetComponentTicketQuery';
|
|
40
40
|
export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
|
|
41
41
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
42
42
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
@@ -45,7 +45,6 @@ export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGe
|
|
|
45
45
|
export { getIntegrationsConfig, useGetIntegrationsConfigQuery, } from './hooks/useGetIntegrationsConfigQuery';
|
|
46
46
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
47
47
|
export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
|
|
48
|
-
export { getPipelineAlertList, useGetPipelineAlertListQuery, } from './hooks/useGetPipelineAlertListQuery';
|
|
49
48
|
export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
|
|
50
49
|
export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
|
|
51
50
|
export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { ComponentFilter } from '../schemas/ComponentFilter';
|
|
2
2
|
import type { LayerType } from '../schemas/LayerType';
|
|
3
3
|
import type { LicenseFilter } from '../schemas/LicenseFilter';
|
|
4
|
+
import type { OwaspFilter } from '../schemas/OwaspFilter';
|
|
4
5
|
export interface ArtifactComponentViewRequestBody {
|
|
5
6
|
component_filter?: ComponentFilter[];
|
|
6
7
|
image_layer?: LayerType;
|
|
7
8
|
license_filter?: LicenseFilter;
|
|
9
|
+
owasp_filter?: OwaspFilter;
|
|
8
10
|
package_manager?: string;
|
|
9
11
|
package_supplier?: string;
|
|
10
12
|
}
|
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
import type { LayerType } from '../schemas/LayerType';
|
|
2
2
|
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
3
|
+
import type { TicketInfo } from '../schemas/TicketInfo';
|
|
3
4
|
export interface ArtifactComponentViewResponse {
|
|
5
|
+
/**
|
|
6
|
+
* details of the component
|
|
7
|
+
*/
|
|
8
|
+
description?: string;
|
|
4
9
|
exemption_status?: 'FULLY_EXEMPTED' | 'NOT_EXEMPTED' | 'PARTIALLY_EXEMPTED';
|
|
5
10
|
filter_tags?: LayerType[];
|
|
11
|
+
/**
|
|
12
|
+
* boolean field to indicate whether a particular component is outdated or not.
|
|
13
|
+
*/
|
|
14
|
+
is_outdated?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* boolean field to indicate whether a component is deprecated or not.
|
|
17
|
+
*/
|
|
18
|
+
is_unmaintained?: boolean;
|
|
6
19
|
issue_count?: StoIssueCount;
|
|
20
|
+
/**
|
|
21
|
+
* latest version available of a component
|
|
22
|
+
*/
|
|
23
|
+
latest_version?: string;
|
|
7
24
|
package_license?: string;
|
|
8
25
|
package_manager?: string;
|
|
9
26
|
package_name?: string;
|
|
10
27
|
package_supplier?: string;
|
|
11
28
|
package_version?: string;
|
|
12
29
|
purl?: string;
|
|
30
|
+
ticket?: TicketInfo;
|
|
13
31
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type OwaspFilter = 'OUTDATED_COMPONENT' | 'UNMAINTAINED_COMPONENT' | 'VULNERABLE_COMPONENT';
|
package/package.json
CHANGED
package/dist/ssca-manager/src/services/hooks/useFetchRuntimeSecurityAlertsByArtifactQuery.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { AlertListingPipelineResponse } from '../schemas/AlertListingPipelineResponse';
|
|
3
|
-
import type { AlertListingPipelineRequestBody } from '../schemas/AlertListingPipelineRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface FetchRuntimeSecurityAlertsByArtifactQueryPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
artifact: string;
|
|
10
|
-
}
|
|
11
|
-
export interface FetchRuntimeSecurityAlertsByArtifactQueryQueryParams {
|
|
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 FetchRuntimeSecurityAlertsByArtifactQueryHeaderParams {
|
|
27
|
-
'Harness-Account': string;
|
|
28
|
-
}
|
|
29
|
-
export type FetchRuntimeSecurityAlertsByArtifactRequestBody = AlertListingPipelineRequestBody;
|
|
30
|
-
export type FetchRuntimeSecurityAlertsByArtifactOkResponse = ResponseWithPagination<AlertListingPipelineResponse[]>;
|
|
31
|
-
export type FetchRuntimeSecurityAlertsByArtifactErrorResponse = unknown;
|
|
32
|
-
export interface FetchRuntimeSecurityAlertsByArtifactProps extends FetchRuntimeSecurityAlertsByArtifactQueryPathParams, Omit<FetcherOptions<FetchRuntimeSecurityAlertsByArtifactQueryQueryParams, FetchRuntimeSecurityAlertsByArtifactRequestBody, FetchRuntimeSecurityAlertsByArtifactQueryHeaderParams>, 'url'> {
|
|
33
|
-
queryParams: FetchRuntimeSecurityAlertsByArtifactQueryQueryParams;
|
|
34
|
-
body: FetchRuntimeSecurityAlertsByArtifactRequestBody;
|
|
35
|
-
}
|
|
36
|
-
export declare function fetchRuntimeSecurityAlertsByArtifact(props: FetchRuntimeSecurityAlertsByArtifactProps): Promise<FetchRuntimeSecurityAlertsByArtifactOkResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* Fetch Runtime Security Alerts by artifact
|
|
39
|
-
*/
|
|
40
|
-
export declare function useFetchRuntimeSecurityAlertsByArtifactQuery(props: FetchRuntimeSecurityAlertsByArtifactProps, options?: Omit<UseQueryOptions<FetchRuntimeSecurityAlertsByArtifactOkResponse, FetchRuntimeSecurityAlertsByArtifactErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<FetchRuntimeSecurityAlertsByArtifactOkResponse, unknown>;
|
package/dist/ssca-manager/src/services/hooks/useFetchRuntimeSecurityAlertsByArtifactQuery.js
DELETED
|
@@ -1,21 +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 fetchRuntimeSecurityAlertsByArtifact(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifact/${props.artifact}/runtime-security-alerts/list`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Fetch Runtime Security Alerts by artifact
|
|
11
|
-
*/
|
|
12
|
-
export function useFetchRuntimeSecurityAlertsByArtifactQuery(props, options) {
|
|
13
|
-
return useQuery([
|
|
14
|
-
'fetchRuntimeSecurityAlertsByArtifact',
|
|
15
|
-
props.org,
|
|
16
|
-
props.project,
|
|
17
|
-
props.artifact,
|
|
18
|
-
props.queryParams,
|
|
19
|
-
props.body,
|
|
20
|
-
], ({ signal }) => fetchRuntimeSecurityAlertsByArtifact(Object.assign(Object.assign({}, props), { signal })), options);
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { ArtifactChainOfCustody } from '../schemas/ArtifactChainOfCustody';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface GetArtifactV2ChainOfCustodyQueryPathParams {
|
|
6
|
-
org: string;
|
|
7
|
-
project: string;
|
|
8
|
-
artifact: string;
|
|
9
|
-
}
|
|
10
|
-
export interface GetArtifactV2ChainOfCustodyQueryHeaderParams {
|
|
11
|
-
'Harness-Account': string;
|
|
12
|
-
}
|
|
13
|
-
export type GetArtifactV2ChainOfCustodyOkResponse = ResponseWithPagination<ArtifactChainOfCustody[]>;
|
|
14
|
-
export type GetArtifactV2ChainOfCustodyErrorResponse = unknown;
|
|
15
|
-
export interface GetArtifactV2ChainOfCustodyProps extends GetArtifactV2ChainOfCustodyQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetArtifactV2ChainOfCustodyQueryHeaderParams>, 'url'> {
|
|
16
|
-
}
|
|
17
|
-
export declare function getArtifactV2ChainOfCustody(props: GetArtifactV2ChainOfCustodyProps): Promise<GetArtifactV2ChainOfCustodyOkResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* get artifactV2 chain of custody
|
|
20
|
-
*/
|
|
21
|
-
export declare function useGetArtifactV2ChainOfCustodyQuery(props: GetArtifactV2ChainOfCustodyProps, options?: Omit<UseQueryOptions<GetArtifactV2ChainOfCustodyOkResponse, GetArtifactV2ChainOfCustodyErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactV2ChainOfCustodyOkResponse, 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 getArtifactV2ChainOfCustody(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/chain-of-custody`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* get artifactV2 chain of custody
|
|
11
|
-
*/
|
|
12
|
-
export function useGetArtifactV2ChainOfCustodyQuery(props, options) {
|
|
13
|
-
return useQuery(['getArtifactV2ChainOfCustody', props.org, props.project, props.artifact], ({ signal }) => getArtifactV2ChainOfCustody(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { AlertListingPipelineResponse } from '../schemas/AlertListingPipelineResponse';
|
|
3
|
-
import type { AlertListingPipelineRequestBody } from '../schemas/AlertListingPipelineRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface GetPipelineAlertListQueryPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
pipeline: string;
|
|
10
|
-
execution: string;
|
|
11
|
-
}
|
|
12
|
-
export interface GetPipelineAlertListQueryHeaderParams {
|
|
13
|
-
'Harness-Account': string;
|
|
14
|
-
}
|
|
15
|
-
export type GetPipelineAlertListRequestBody = AlertListingPipelineRequestBody;
|
|
16
|
-
export type GetPipelineAlertListOkResponse = ResponseWithPagination<AlertListingPipelineResponse[]>;
|
|
17
|
-
export type GetPipelineAlertListErrorResponse = unknown;
|
|
18
|
-
export interface GetPipelineAlertListProps extends GetPipelineAlertListQueryPathParams, Omit<FetcherOptions<unknown, GetPipelineAlertListRequestBody, GetPipelineAlertListQueryHeaderParams>, 'url'> {
|
|
19
|
-
body: GetPipelineAlertListRequestBody;
|
|
20
|
-
}
|
|
21
|
-
export declare function getPipelineAlertList(props: GetPipelineAlertListProps): Promise<GetPipelineAlertListOkResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Get Alert List for Pipeline View
|
|
24
|
-
*/
|
|
25
|
-
export declare function useGetPipelineAlertListQuery(props: GetPipelineAlertListProps, options?: Omit<UseQueryOptions<GetPipelineAlertListOkResponse, GetPipelineAlertListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetPipelineAlertListOkResponse, 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 getPipelineAlertList(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/pipelines/${props.pipeline}/executions/${props.execution}/alerts`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get Alert List for Pipeline View
|
|
11
|
-
*/
|
|
12
|
-
export function useGetPipelineAlertListQuery(props, options) {
|
|
13
|
-
return useQuery(['getPipelineAlertList', props.org, props.project, props.pipeline, props.execution, props.body], ({ signal }) => getPipelineAlertList(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type EbpfRequestBody = string;
|
|
File without changes
|
|
File without changes
|