@harnessio/react-ssca-manager-client 0.83.2 → 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 +5 -2
- package/dist/ssca-manager/src/services/index.js +2 -1
- package/dist/ssca-manager/src/services/responses/TicketResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/TicketResponseBodyResponse.js +1 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ChainOfCustodyQuery.d.ts +0 -21
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ChainOfCustodyQuery.js +0 -14
|
@@ -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';
|
|
@@ -43,8 +45,6 @@ export type { GetArtifactInRemediationDetailsErrorResponse, GetArtifactInRemedia
|
|
|
43
45
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
44
46
|
export type { GetArtifactListForRemediationErrorResponse, GetArtifactListForRemediationOkResponse, GetArtifactListForRemediationProps, GetArtifactListForRemediationQueryPathParams, GetArtifactListForRemediationQueryQueryParams, GetArtifactListForRemediationRequestBody, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
45
47
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
46
|
-
export type { GetArtifactV2ChainOfCustodyErrorResponse, GetArtifactV2ChainOfCustodyOkResponse, GetArtifactV2ChainOfCustodyProps, GetArtifactV2ChainOfCustodyQueryPathParams, } from './hooks/useGetArtifactV2ChainOfCustodyQuery';
|
|
47
|
-
export { getArtifactV2ChainOfCustody, useGetArtifactV2ChainOfCustodyQuery, } from './hooks/useGetArtifactV2ChainOfCustodyQuery';
|
|
48
48
|
export type { GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewProps, GetArtifactV2DetailComponentViewQueryPathParams, GetArtifactV2DetailComponentViewQueryQueryParams, GetArtifactV2DetailComponentViewRequestBody, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
49
49
|
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
50
50
|
export type { GetArtifactV2DetailDeploymentViewErrorResponse, GetArtifactV2DetailDeploymentViewOkResponse, GetArtifactV2DetailDeploymentViewProps, GetArtifactV2DetailDeploymentViewQueryPathParams, GetArtifactV2DetailDeploymentViewQueryQueryParams, GetArtifactV2DetailDeploymentViewRequestBody, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
@@ -75,6 +75,8 @@ export type { GetComplianceStandardsErrorResponse, GetComplianceStandardsMutatio
|
|
|
75
75
|
export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
|
|
76
76
|
export type { GetComponentDriftErrorResponse, GetComponentDriftOkResponse, GetComponentDriftProps, GetComponentDriftQueryPathParams, GetComponentDriftQueryQueryParams, } from './hooks/useGetComponentDriftQuery';
|
|
77
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';
|
|
78
80
|
export type { GetComponentsErrorResponse, GetComponentsOkResponse, GetComponentsProps, GetComponentsQueryPathParams, GetComponentsQueryQueryParams, } from './hooks/useGetComponentsQuery';
|
|
79
81
|
export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
|
|
80
82
|
export type { GetDeploymentsListForArtifactInRemediationErrorResponse, GetDeploymentsListForArtifactInRemediationOkResponse, GetDeploymentsListForArtifactInRemediationProps, GetDeploymentsListForArtifactInRemediationQueryPathParams, GetDeploymentsListForArtifactInRemediationQueryQueryParams, GetDeploymentsListForArtifactInRemediationRequestBody, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
@@ -231,6 +233,7 @@ export type { SaveOrchestrationResponseBodyResponse } from './responses/SaveOrch
|
|
|
231
233
|
export type { SaveResponseResponse } from './responses/SaveResponseResponse';
|
|
232
234
|
export type { SbomProcessResponseBodyResponse } from './responses/SbomProcessResponseBodyResponse';
|
|
233
235
|
export type { SbomScorecardResponseBodyResponse } from './responses/SbomScorecardResponseBodyResponse';
|
|
236
|
+
export type { TicketResponseBodyResponse } from './responses/TicketResponseBodyResponse';
|
|
234
237
|
export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueResponseBodyResponse';
|
|
235
238
|
export type { UpdateIntegrationResponseBodyResponse } from './responses/UpdateIntegrationResponseBodyResponse';
|
|
236
239
|
export type { VersionResponseBodyResponse } from './responses/VersionResponseBodyResponse';
|
|
@@ -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';
|
|
@@ -20,7 +21,6 @@ export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from '.
|
|
|
20
21
|
export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
21
22
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
22
23
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
23
|
-
export { getArtifactV2ChainOfCustody, useGetArtifactV2ChainOfCustodyQuery, } from './hooks/useGetArtifactV2ChainOfCustodyQuery';
|
|
24
24
|
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
25
25
|
export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
26
26
|
export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
|
|
@@ -36,6 +36,7 @@ export { getComplianceResultStatsByComplianceChecks, useGetComplianceResultStats
|
|
|
36
36
|
export { getComplianceStandardsFilters, useGetComplianceStandardsFiltersQuery, } from './hooks/useGetComplianceStandardsFiltersQuery';
|
|
37
37
|
export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
|
|
38
38
|
export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
|
|
39
|
+
export { getComponentTicket, useGetComponentTicketQuery } from './hooks/useGetComponentTicketQuery';
|
|
39
40
|
export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
|
|
40
41
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
41
42
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -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
|
-
}
|