@harnessio/react-ssca-manager-client 0.40.0 → 0.41.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/useConfigureReposMutation.d.ts +2 -2
- package/dist/ssca-manager/src/services/hooks/useCreateComplianceStandardsMutation.d.ts +2 -1
- package/dist/ssca-manager/src/services/hooks/useDeleteIntegrationMutation.d.ts +20 -0
- package/dist/ssca-manager/src/services/hooks/useDeleteIntegrationMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useFetchReposInIntegrationQuery.d.ts +0 -4
- package/dist/ssca-manager/src/services/hooks/useGetComplianceStandardsMutation.d.ts +2 -2
- package/dist/ssca-manager/src/services/index.d.ts +6 -3
- package/dist/ssca-manager/src/services/index.js +1 -0
- package/dist/ssca-manager/src/services/requestBodies/ComplianceStandardsRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/{ConfigureReposRequestBodyRequestBody.d.ts → ConfigureReposRequestRequestBody.d.ts} +1 -1
- package/dist/ssca-manager/src/services/requestBodies/CreateComplianceStandardRequestBodyRequestBody.d.ts +2 -2
- package/dist/ssca-manager/src/services/responses/ComplianceStandardsResponseBodyResponse.d.ts +2 -2
- package/dist/ssca-manager/src/services/responses/ListIntegrationReposResponseBodyResponse.d.ts +2 -2
- package/dist/ssca-manager/src/services/schemas/ComplianceCheck.d.ts +5 -1
- package/dist/ssca-manager/src/services/schemas/ComplianceFilter.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceFilter.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ConfigureReposRequest.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/ListIntegrationReposResponse.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ListIntegrationReposResponse.js +1 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/requestBodies/ListComplianceStandardsRequestBodyRequestBody.d.ts +0 -5
- package/dist/ssca-manager/src/services/requestBodies/ListComplianceStandardsRequestBodyRequestBody.js +0 -4
- package/dist/ssca-manager/src/services/schemas/ComplianceStandard.d.ts +0 -12
- /package/dist/ssca-manager/src/services/requestBodies/{ConfigureReposRequestBodyRequestBody.js → ComplianceStandardsRequestBodyRequestBody.js} +0 -0
- /package/dist/ssca-manager/src/services/{schemas/ComplianceStandard.js → requestBodies/ConfigureReposRequestRequestBody.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ConfigureReposRequestRequestBody } from '../requestBodies/ConfigureReposRequestRequestBody';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface ConfigureReposMutationPathParams {
|
|
@@ -10,7 +10,7 @@ export interface ConfigureReposMutationPathParams {
|
|
|
10
10
|
export interface ConfigureReposMutationHeaderParams {
|
|
11
11
|
'Harness-Account': string;
|
|
12
12
|
}
|
|
13
|
-
export type ConfigureReposRequestBody =
|
|
13
|
+
export type ConfigureReposRequestBody = ConfigureReposRequestRequestBody;
|
|
14
14
|
export type ConfigureReposOkResponse = ResponseWithPagination<unknown>;
|
|
15
15
|
export type ConfigureReposErrorResponse = unknown;
|
|
16
16
|
export interface ConfigureReposProps extends ConfigureReposMutationPathParams, Omit<FetcherOptions<unknown, ConfigureReposRequestBody, ConfigureReposMutationHeaderParams>, 'url'> {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ComplianceCheck } from '../schemas/ComplianceCheck';
|
|
2
3
|
import type { CreateComplianceStandardRequestBodyRequestBody } from '../requestBodies/CreateComplianceStandardRequestBodyRequestBody';
|
|
3
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -10,7 +11,7 @@ export interface CreateComplianceStandardsMutationHeaderParams {
|
|
|
10
11
|
'Harness-Account': string;
|
|
11
12
|
}
|
|
12
13
|
export type CreateComplianceStandardsRequestBody = CreateComplianceStandardRequestBodyRequestBody;
|
|
13
|
-
export type CreateComplianceStandardsOkResponse = ResponseWithPagination<
|
|
14
|
+
export type CreateComplianceStandardsOkResponse = ResponseWithPagination<ComplianceCheck[]>;
|
|
14
15
|
export type CreateComplianceStandardsErrorResponse = unknown;
|
|
15
16
|
export interface CreateComplianceStandardsProps extends CreateComplianceStandardsMutationPathParams, Omit<FetcherOptions<unknown, CreateComplianceStandardsRequestBody, CreateComplianceStandardsMutationHeaderParams>, 'url'> {
|
|
16
17
|
body: CreateComplianceStandardsRequestBody;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
3
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
4
|
+
export interface DeleteIntegrationMutationPathParams {
|
|
5
|
+
org: string;
|
|
6
|
+
project: string;
|
|
7
|
+
integration: string;
|
|
8
|
+
}
|
|
9
|
+
export interface DeleteIntegrationMutationHeaderParams {
|
|
10
|
+
'Harness-Account': string;
|
|
11
|
+
}
|
|
12
|
+
export type DeleteIntegrationOkResponse = ResponseWithPagination<unknown>;
|
|
13
|
+
export type DeleteIntegrationErrorResponse = unknown;
|
|
14
|
+
export interface DeleteIntegrationProps extends DeleteIntegrationMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteIntegrationMutationHeaderParams>, 'url'> {
|
|
15
|
+
}
|
|
16
|
+
export declare function deleteIntegration(props: DeleteIntegrationProps): Promise<DeleteIntegrationOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Delete Integration
|
|
19
|
+
*/
|
|
20
|
+
export declare function useDeleteIntegrationMutation(options?: Omit<UseMutationOptions<DeleteIntegrationOkResponse, DeleteIntegrationErrorResponse, DeleteIntegrationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteIntegrationOkResponse, unknown, DeleteIntegrationProps, 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 deleteIntegration(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/integration/${props.integration}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete Integration
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteIntegrationMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteIntegration(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { ComplianceStandardsResponseBodyResponse } from '../responses/ComplianceStandardsResponseBodyResponse';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ComplianceStandardsRequestBodyRequestBody } from '../requestBodies/ComplianceStandardsRequestBodyRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface GetComplianceStandardsMutationPathParams {
|
|
@@ -20,7 +20,7 @@ export interface GetComplianceStandardsMutationQueryParams {
|
|
|
20
20
|
export interface GetComplianceStandardsMutationHeaderParams {
|
|
21
21
|
'Harness-Account': string;
|
|
22
22
|
}
|
|
23
|
-
export type GetComplianceStandardsRequestBody =
|
|
23
|
+
export type GetComplianceStandardsRequestBody = ComplianceStandardsRequestBodyRequestBody;
|
|
24
24
|
export type GetComplianceStandardsOkResponse = ResponseWithPagination<ComplianceStandardsResponseBodyResponse>;
|
|
25
25
|
export type GetComplianceStandardsErrorResponse = unknown;
|
|
26
26
|
export interface GetComplianceStandardsProps extends GetComplianceStandardsMutationPathParams, Omit<FetcherOptions<GetComplianceStandardsMutationQueryParams, GetComplianceStandardsRequestBody, GetComplianceStandardsMutationHeaderParams>, 'url'> {
|
|
@@ -17,6 +17,8 @@ export type { CreateRemediationTrackerErrorResponse, CreateRemediationTrackerMut
|
|
|
17
17
|
export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
|
|
18
18
|
export type { CreateTicketErrorResponse, CreateTicketMutationPathParams, CreateTicketOkResponse, CreateTicketProps, CreateTicketRequestBody, } from './hooks/useCreateTicketMutation';
|
|
19
19
|
export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
|
|
20
|
+
export type { DeleteIntegrationErrorResponse, DeleteIntegrationMutationPathParams, DeleteIntegrationOkResponse, DeleteIntegrationProps, } from './hooks/useDeleteIntegrationMutation';
|
|
21
|
+
export { deleteIntegration, useDeleteIntegrationMutation, } from './hooks/useDeleteIntegrationMutation';
|
|
20
22
|
export type { DownloadSbomErrorResponse, DownloadSbomOkResponse, DownloadSbomProps, DownloadSbomQueryPathParams, } from './hooks/useDownloadSbomQuery';
|
|
21
23
|
export { downloadSbom, useDownloadSbomQuery } from './hooks/useDownloadSbomQuery';
|
|
22
24
|
export type { ExcludeArtifactErrorResponse, ExcludeArtifactMutationPathParams, ExcludeArtifactOkResponse, ExcludeArtifactProps, ExcludeArtifactRequestBody, } from './hooks/useExcludeArtifactMutation';
|
|
@@ -84,12 +86,12 @@ export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from '
|
|
|
84
86
|
export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
|
|
85
87
|
export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
86
88
|
export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
|
|
87
|
-
export type {
|
|
89
|
+
export type { ComplianceStandardsRequestBodyRequestBody } from './requestBodies/ComplianceStandardsRequestBodyRequestBody';
|
|
90
|
+
export type { ConfigureReposRequestRequestBody } from './requestBodies/ConfigureReposRequestRequestBody';
|
|
88
91
|
export type { CreateComplianceStandardRequestBodyRequestBody } from './requestBodies/CreateComplianceStandardRequestBodyRequestBody';
|
|
89
92
|
export type { CreateIntegrationRequestBodyRequestBody } from './requestBodies/CreateIntegrationRequestBodyRequestBody';
|
|
90
93
|
export type { CreateTicketRequestBodyRequestBody } from './requestBodies/CreateTicketRequestBodyRequestBody';
|
|
91
94
|
export type { ExcludeArtifactRequestBodyRequestBody } from './requestBodies/ExcludeArtifactRequestBodyRequestBody';
|
|
92
|
-
export type { ListComplianceStandardsRequestBodyRequestBody } from './requestBodies/ListComplianceStandardsRequestBodyRequestBody';
|
|
93
95
|
export type { RemediationArtifactDeploymentsListingRequestBodyRequestBody } from './requestBodies/RemediationArtifactDeploymentsListingRequestBodyRequestBody';
|
|
94
96
|
export type { RemediationArtifactListingRequestBodyRequestBody } from './requestBodies/RemediationArtifactListingRequestBodyRequestBody';
|
|
95
97
|
export type { RemediationListingRequestBodyRequestBody } from './requestBodies/RemediationListingRequestBodyRequestBody';
|
|
@@ -151,7 +153,7 @@ export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
|
|
|
151
153
|
export type { ComplianceCheck } from './schemas/ComplianceCheck';
|
|
152
154
|
export type { ComplianceCheckEntity } from './schemas/ComplianceCheckEntity';
|
|
153
155
|
export type { ComplianceCheckType } from './schemas/ComplianceCheckType';
|
|
154
|
-
export type {
|
|
156
|
+
export type { ComplianceFilter } from './schemas/ComplianceFilter';
|
|
155
157
|
export type { ComponentDrift } from './schemas/ComponentDrift';
|
|
156
158
|
export type { ComponentDriftSummary } from './schemas/ComponentDriftSummary';
|
|
157
159
|
export type { ComponentDto } from './schemas/ComponentDto';
|
|
@@ -175,6 +177,7 @@ export type { LicenseDrift } from './schemas/LicenseDrift';
|
|
|
175
177
|
export type { LicenseDriftSummary } from './schemas/LicenseDriftSummary';
|
|
176
178
|
export type { LicenseFilter } from './schemas/LicenseFilter';
|
|
177
179
|
export type { LicenseUsageResponse } from './schemas/LicenseUsageResponse';
|
|
180
|
+
export type { ListIntegrationReposResponse } from './schemas/ListIntegrationReposResponse';
|
|
178
181
|
export type { NameOperator } from './schemas/NameOperator';
|
|
179
182
|
export type { Operator } from './schemas/Operator';
|
|
180
183
|
export type { OrchestrationModelPipeline } from './schemas/OrchestrationModelPipeline';
|
|
@@ -7,6 +7,7 @@ export { createComplianceStandards, useCreateComplianceStandardsMutation, } from
|
|
|
7
7
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
8
8
|
export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
|
|
9
9
|
export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
|
|
10
|
+
export { deleteIntegration, useDeleteIntegrationMutation, } from './hooks/useDeleteIntegrationMutation';
|
|
10
11
|
export { downloadSbom, useDownloadSbomQuery } from './hooks/useDownloadSbomQuery';
|
|
11
12
|
export { excludeArtifact, useExcludeArtifactMutation } from './hooks/useExcludeArtifactMutation';
|
|
12
13
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ConfigureReposRequest } from '../schemas/ConfigureReposRequest';
|
|
2
|
-
export type
|
|
2
|
+
export type ConfigureReposRequestRequestBody = ConfigureReposRequest;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type CreateComplianceStandardRequestBodyRequestBody =
|
|
1
|
+
import type { ComplianceCheck } from '../schemas/ComplianceCheck';
|
|
2
|
+
export type CreateComplianceStandardRequestBodyRequestBody = ComplianceCheck[];
|
package/dist/ssca-manager/src/services/responses/ComplianceStandardsResponseBodyResponse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type ComplianceStandardsResponseBodyResponse =
|
|
1
|
+
import type { ComplianceCheck } from '../schemas/ComplianceCheck';
|
|
2
|
+
export type ComplianceStandardsResponseBodyResponse = ComplianceCheck[];
|
package/dist/ssca-manager/src/services/responses/ListIntegrationReposResponseBodyResponse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type ListIntegrationReposResponseBodyResponse =
|
|
1
|
+
import type { ListIntegrationReposResponse } from '../schemas/ListIntegrationReposResponse';
|
|
2
|
+
export type ListIntegrationReposResponseBodyResponse = ListIntegrationReposResponse;
|
|
@@ -4,13 +4,17 @@ import type { ComplianceCheckType } from '../schemas/ComplianceCheckType';
|
|
|
4
4
|
* Represents Single SSCA Compliance Check
|
|
5
5
|
*/
|
|
6
6
|
export interface ComplianceCheck {
|
|
7
|
-
|
|
7
|
+
category?: string;
|
|
8
|
+
category_id?: string;
|
|
9
|
+
compliance_id?: string;
|
|
8
10
|
description?: string;
|
|
9
11
|
entity?: ComplianceCheckEntity;
|
|
10
12
|
remediation?: string;
|
|
11
13
|
scanner_type?: string;
|
|
12
14
|
severity?: string;
|
|
13
15
|
standards?: string[];
|
|
16
|
+
tags?: string[];
|
|
14
17
|
title?: string;
|
|
15
18
|
type?: ComplianceCheckType;
|
|
19
|
+
url?: string;
|
|
16
20
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComplianceCheckEntity } from '../schemas/ComplianceCheckEntity';
|
|
2
|
+
import type { ComplianceCheckType } from '../schemas/ComplianceCheckType';
|
|
3
|
+
export interface ComplianceFilter {
|
|
4
|
+
entity?: ComplianceCheckEntity;
|
|
5
|
+
standard?: {};
|
|
6
|
+
type?: ComplianceCheckType;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ComplianceCheck } from '../schemas/ComplianceCheck';
|
|
2
|
-
/**
|
|
3
|
-
* Represents a ssca compliance standard
|
|
4
|
-
*/
|
|
5
|
-
export interface ComplianceStandard {
|
|
6
|
-
checks?: {
|
|
7
|
-
[key: string]: ComplianceCheck;
|
|
8
|
-
};
|
|
9
|
-
id?: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
url?: string;
|
|
12
|
-
}
|
|
File without changes
|