@harnessio/react-ssca-manager-client 0.84.18 → 0.84.19
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/useCreateEolArtifactSourceComponentTicketMutation.d.ts +30 -0
- package/dist/ssca-manager/src/services/hooks/useCreateEolArtifactSourceComponentTicketMutation.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +2 -0
- package/dist/ssca-manager/src/services/index.js +1 -0
- package/package.json +1 -1
package/dist/ssca-manager/src/services/hooks/useCreateEolArtifactSourceComponentTicketMutation.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CreateTicketResponseBodyResponse } from '../responses/CreateTicketResponseBodyResponse';
|
|
3
|
+
import type { CreateTicketRequest } from '../schemas/CreateTicketRequest';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface CreateEolArtifactSourceComponentTicketMutationPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
artifactSource: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CreateEolArtifactSourceComponentTicketMutationQueryParams {
|
|
12
|
+
purl: string;
|
|
13
|
+
artifactId: string;
|
|
14
|
+
orchestrationId?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CreateEolArtifactSourceComponentTicketMutationHeaderParams {
|
|
17
|
+
'Harness-Account': string;
|
|
18
|
+
}
|
|
19
|
+
export type CreateEolArtifactSourceComponentTicketRequestBody = CreateTicketRequest;
|
|
20
|
+
export type CreateEolArtifactSourceComponentTicketOkResponse = ResponseWithPagination<CreateTicketResponseBodyResponse>;
|
|
21
|
+
export type CreateEolArtifactSourceComponentTicketErrorResponse = unknown;
|
|
22
|
+
export interface CreateEolArtifactSourceComponentTicketProps extends CreateEolArtifactSourceComponentTicketMutationPathParams, Omit<FetcherOptions<CreateEolArtifactSourceComponentTicketMutationQueryParams, CreateEolArtifactSourceComponentTicketRequestBody, CreateEolArtifactSourceComponentTicketMutationHeaderParams>, 'url'> {
|
|
23
|
+
queryParams: CreateEolArtifactSourceComponentTicketMutationQueryParams;
|
|
24
|
+
body: CreateEolArtifactSourceComponentTicketRequestBody;
|
|
25
|
+
}
|
|
26
|
+
export declare function createEolArtifactSourceComponentTicket(props: CreateEolArtifactSourceComponentTicketProps): Promise<CreateEolArtifactSourceComponentTicketOkResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Creates a ticket for an EOL component identified by artifact source and purl. Stores the ticket mapping in eolComponentTickets for future reference. Requires artifactId to lookup component enrichment data from componentEnrichment collection.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useCreateEolArtifactSourceComponentTicketMutation(options?: Omit<UseMutationOptions<CreateEolArtifactSourceComponentTicketOkResponse, CreateEolArtifactSourceComponentTicketErrorResponse, CreateEolArtifactSourceComponentTicketProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateEolArtifactSourceComponentTicketOkResponse, unknown, CreateEolArtifactSourceComponentTicketProps, unknown>;
|
package/dist/ssca-manager/src/services/hooks/useCreateEolArtifactSourceComponentTicketMutation.js
ADDED
|
@@ -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 createEolArtifactSourceComponentTicket(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifact-source/${props.artifactSource}/ticket`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates a ticket for an EOL component identified by artifact source and purl. Stores the ticket mapping in eolComponentTickets for future reference. Requires artifactId to lookup component enrichment data from componentEnrichment collection.
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateEolArtifactSourceComponentTicketMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createEolArtifactSourceComponentTicket(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -15,6 +15,8 @@ export type { CreateComplianceStandardsErrorResponse, CreateComplianceStandardsM
|
|
|
15
15
|
export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
|
|
16
16
|
export type { CreateComponentTicketErrorResponse, CreateComponentTicketMutationPathParams, CreateComponentTicketMutationQueryParams, CreateComponentTicketOkResponse, CreateComponentTicketProps, CreateComponentTicketRequestBody, } from './hooks/useCreateComponentTicketMutation';
|
|
17
17
|
export { createComponentTicket, useCreateComponentTicketMutation, } from './hooks/useCreateComponentTicketMutation';
|
|
18
|
+
export type { CreateEolArtifactSourceComponentTicketErrorResponse, CreateEolArtifactSourceComponentTicketMutationPathParams, CreateEolArtifactSourceComponentTicketMutationQueryParams, CreateEolArtifactSourceComponentTicketOkResponse, CreateEolArtifactSourceComponentTicketProps, CreateEolArtifactSourceComponentTicketRequestBody, } from './hooks/useCreateEolArtifactSourceComponentTicketMutation';
|
|
19
|
+
export { createEolArtifactSourceComponentTicket, useCreateEolArtifactSourceComponentTicketMutation, } from './hooks/useCreateEolArtifactSourceComponentTicketMutation';
|
|
18
20
|
export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParams, CreateIntegrationOkResponse, CreateIntegrationProps, CreateIntegrationRequestBody, } from './hooks/useCreateIntegrationMutation';
|
|
19
21
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
20
22
|
export type { CreateRemediationPullRequestErrorResponse, CreateRemediationPullRequestMutationPathParams, CreateRemediationPullRequestOkResponse, CreateRemediationPullRequestProps, CreateRemediationPullRequestRequestBody, } from './hooks/useCreateRemediationPullRequestMutation';
|
|
@@ -6,6 +6,7 @@ export { codeRepositoriesList, useCodeRepositoriesListQuery, } from './hooks/use
|
|
|
6
6
|
export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureReposMutation';
|
|
7
7
|
export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
|
|
8
8
|
export { createComponentTicket, useCreateComponentTicketMutation, } from './hooks/useCreateComponentTicketMutation';
|
|
9
|
+
export { createEolArtifactSourceComponentTicket, useCreateEolArtifactSourceComponentTicketMutation, } from './hooks/useCreateEolArtifactSourceComponentTicketMutation';
|
|
9
10
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
10
11
|
export { createRemediationPullRequest, useCreateRemediationPullRequestMutation, } from './hooks/useCreateRemediationPullRequestMutation';
|
|
11
12
|
export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
|