@harnessio/react-ssca-manager-client 0.84.46 → 0.85.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/useCreateExemptionMutation.d.ts +6 -5
- package/dist/ssca-manager/src/services/hooks/useCreateExemptionMutation.js +2 -2
- package/dist/ssca-manager/src/services/index.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/AiBomComponentViewRequestBody.d.ts +4 -0
- package/package.json +1 -1
|
@@ -3,9 +3,9 @@ import type { ExemptionIdResponse } from '../schemas/ExemptionIdResponse';
|
|
|
3
3
|
import type { ExemptionCreateRequestBody } from '../schemas/ExemptionCreateRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
export interface CreateExemptionMutationQueryParams {
|
|
7
|
+
orgId: string;
|
|
8
|
+
projectId: string;
|
|
9
9
|
}
|
|
10
10
|
export interface CreateExemptionMutationHeaderParams {
|
|
11
11
|
'Harness-Account': string;
|
|
@@ -13,11 +13,12 @@ export interface CreateExemptionMutationHeaderParams {
|
|
|
13
13
|
export type CreateExemptionRequestBody = ExemptionCreateRequestBody;
|
|
14
14
|
export type CreateExemptionOkResponse = ResponseWithPagination<ExemptionIdResponse>;
|
|
15
15
|
export type CreateExemptionErrorResponse = unknown;
|
|
16
|
-
export interface CreateExemptionProps extends
|
|
16
|
+
export interface CreateExemptionProps extends Omit<FetcherOptions<CreateExemptionMutationQueryParams, CreateExemptionRequestBody, CreateExemptionMutationHeaderParams>, 'url'> {
|
|
17
|
+
queryParams: CreateExemptionMutationQueryParams;
|
|
17
18
|
body: CreateExemptionRequestBody;
|
|
18
19
|
}
|
|
19
20
|
export declare function createExemption(props: CreateExemptionProps): Promise<CreateExemptionOkResponse>;
|
|
20
21
|
/**
|
|
21
|
-
* File a new exemption request for an SBOM component.
|
|
22
|
+
* File a new exemption request for an SBOM component. A request is always filed at a concrete project, so orgId and projectId are required query params. The exemption is created in PENDING status.
|
|
22
23
|
*/
|
|
23
24
|
export declare function useCreateExemptionMutation(options?: Omit<UseMutationOptions<CreateExemptionOkResponse, CreateExemptionErrorResponse, CreateExemptionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateExemptionOkResponse, unknown, CreateExemptionProps, unknown>;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function createExemption(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/exemptions`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* File a new exemption request for an SBOM component.
|
|
10
|
+
* File a new exemption request for an SBOM component. A request is always filed at a concrete project, so orgId and projectId are required query params. The exemption is created in PENDING status.
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateExemptionMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => createExemption(mutateProps), options);
|
|
@@ -19,7 +19,7 @@ export type { CreateComponentTicketErrorResponse, CreateComponentTicketMutationP
|
|
|
19
19
|
export { createComponentTicket, useCreateComponentTicketMutation, } from './hooks/useCreateComponentTicketMutation';
|
|
20
20
|
export type { CreateEolArtifactSourceComponentTicketErrorResponse, CreateEolArtifactSourceComponentTicketMutationPathParams, CreateEolArtifactSourceComponentTicketMutationQueryParams, CreateEolArtifactSourceComponentTicketOkResponse, CreateEolArtifactSourceComponentTicketProps, CreateEolArtifactSourceComponentTicketRequestBody, } from './hooks/useCreateEolArtifactSourceComponentTicketMutation';
|
|
21
21
|
export { createEolArtifactSourceComponentTicket, useCreateEolArtifactSourceComponentTicketMutation, } from './hooks/useCreateEolArtifactSourceComponentTicketMutation';
|
|
22
|
-
export type { CreateExemptionErrorResponse,
|
|
22
|
+
export type { CreateExemptionErrorResponse, CreateExemptionMutationQueryParams, CreateExemptionOkResponse, CreateExemptionProps, CreateExemptionRequestBody, } from './hooks/useCreateExemptionMutation';
|
|
23
23
|
export { createExemption, useCreateExemptionMutation } from './hooks/useCreateExemptionMutation';
|
|
24
24
|
export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParams, CreateIntegrationOkResponse, CreateIntegrationProps, CreateIntegrationRequestBody, } from './hooks/useCreateIntegrationMutation';
|
|
25
25
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
@@ -7,6 +7,10 @@ export interface AiBomComponentViewRequestBody {
|
|
|
7
7
|
* Filter by component type (e.g. model, pkg, agent, framework)
|
|
8
8
|
*/
|
|
9
9
|
ai_component_type?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Filter by SPDX license identifier (e.g. proprietary, apache-2.0)
|
|
12
|
+
*/
|
|
13
|
+
license_filter?: AiBomStringFilter;
|
|
10
14
|
name_filter?: AiBomStringFilter;
|
|
11
15
|
provider_filter?: AiBomStringFilter;
|
|
12
16
|
}
|