@harnessio/react-ssca-manager-client 0.38.1 → 0.40.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 +23 -0
- package/dist/ssca-manager/src/services/hooks/useConfigureReposMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useCreateComplianceStandardsMutation.d.ts +22 -0
- package/dist/ssca-manager/src/services/hooks/useCreateComplianceStandardsMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useCreateIntegrationMutation.d.ts +23 -0
- package/dist/ssca-manager/src/services/hooks/useCreateIntegrationMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useFetchReposInIntegrationQuery.d.ts +36 -0
- package/dist/ssca-manager/src/services/hooks/useFetchReposInIntegrationQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2DetailComponentViewMutation.d.ts +40 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2DetailComponentViewMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetComplianceStandardsMutation.d.ts +34 -0
- package/dist/ssca-manager/src/services/hooks/useGetComplianceStandardsMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetIntegrationReposQuery.d.ts +21 -0
- package/dist/ssca-manager/src/services/hooks/useGetIntegrationReposQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useListArtifactSourcesMutation.d.ts +42 -0
- package/dist/ssca-manager/src/services/hooks/useListArtifactSourcesMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useListIntegrationsQuery.d.ts +36 -0
- package/dist/ssca-manager/src/services/hooks/useListIntegrationsQuery.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +38 -0
- package/dist/ssca-manager/src/services/index.js +9 -0
- package/dist/ssca-manager/src/services/requestBodies/ConfigureReposRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/ConfigureReposRequestBodyRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/requestBodies/CreateComplianceStandardRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/CreateComplianceStandardRequestBodyRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/requestBodies/CreateIntegrationRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/CreateIntegrationRequestBodyRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/requestBodies/ListComplianceStandardsRequestBodyRequestBody.d.ts +5 -0
- package/dist/ssca-manager/src/services/requestBodies/ListComplianceStandardsRequestBodyRequestBody.js +4 -0
- package/dist/ssca-manager/src/services/responses/ArtifactSourcesListingResponseResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/ArtifactSourcesListingResponseResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/ComplianceStandardsResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/ComplianceStandardsResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/CreateIntegrationResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/CreateIntegrationResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/FetchIntegrationReposResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/FetchIntegrationReposResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/IntegrationListingResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/IntegrationListingResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/ListIntegrationReposResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/ListIntegrationReposResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactModelPipeline.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactSourcesListingResponse.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactSourcesListingResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceCheck.d.ts +16 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceCheck.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceCheckEntity.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceCheckEntity.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceCheckType.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceCheckType.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceStandard.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceStandard.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ConfigureReposRequest.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ConfigureReposRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/CreateIntegrationRequest.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/CreateIntegrationRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/Integration.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/Integration.js +4 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationType.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationType.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RepoDetailsDto.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/RepoDetailsDto.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ConfigureReposRequestBodyRequestBody } from '../requestBodies/ConfigureReposRequestBodyRequestBody';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface ConfigureReposMutationPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
integration: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ConfigureReposMutationHeaderParams {
|
|
11
|
+
'Harness-Account': string;
|
|
12
|
+
}
|
|
13
|
+
export type ConfigureReposRequestBody = ConfigureReposRequestBodyRequestBody;
|
|
14
|
+
export type ConfigureReposOkResponse = ResponseWithPagination<unknown>;
|
|
15
|
+
export type ConfigureReposErrorResponse = unknown;
|
|
16
|
+
export interface ConfigureReposProps extends ConfigureReposMutationPathParams, Omit<FetcherOptions<unknown, ConfigureReposRequestBody, ConfigureReposMutationHeaderParams>, 'url'> {
|
|
17
|
+
body: ConfigureReposRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function configureRepos(props: ConfigureReposProps): Promise<ConfigureReposOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Configure repos in your integration
|
|
22
|
+
*/
|
|
23
|
+
export declare function useConfigureReposMutation(options?: Omit<UseMutationOptions<ConfigureReposOkResponse, ConfigureReposErrorResponse, ConfigureReposProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ConfigureReposOkResponse, unknown, ConfigureReposProps, 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 configureRepos(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/integration/${props.integration}/repos`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Configure repos in your integration
|
|
11
|
+
*/
|
|
12
|
+
export function useConfigureReposMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => configureRepos(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CreateComplianceStandardRequestBodyRequestBody } from '../requestBodies/CreateComplianceStandardRequestBodyRequestBody';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface CreateComplianceStandardsMutationPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
}
|
|
9
|
+
export interface CreateComplianceStandardsMutationHeaderParams {
|
|
10
|
+
'Harness-Account': string;
|
|
11
|
+
}
|
|
12
|
+
export type CreateComplianceStandardsRequestBody = CreateComplianceStandardRequestBodyRequestBody;
|
|
13
|
+
export type CreateComplianceStandardsOkResponse = ResponseWithPagination<unknown>;
|
|
14
|
+
export type CreateComplianceStandardsErrorResponse = unknown;
|
|
15
|
+
export interface CreateComplianceStandardsProps extends CreateComplianceStandardsMutationPathParams, Omit<FetcherOptions<unknown, CreateComplianceStandardsRequestBody, CreateComplianceStandardsMutationHeaderParams>, 'url'> {
|
|
16
|
+
body: CreateComplianceStandardsRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function createComplianceStandards(props: CreateComplianceStandardsProps): Promise<CreateComplianceStandardsOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Create Compliance Standards
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateComplianceStandardsMutation(options?: Omit<UseMutationOptions<CreateComplianceStandardsOkResponse, CreateComplianceStandardsErrorResponse, CreateComplianceStandardsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateComplianceStandardsOkResponse, unknown, CreateComplianceStandardsProps, 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 createComplianceStandards(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/compliance-standards`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create Compliance Standards
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateComplianceStandardsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createComplianceStandards(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CreateIntegrationResponseBodyResponse } from '../responses/CreateIntegrationResponseBodyResponse';
|
|
3
|
+
import type { CreateIntegrationRequestBodyRequestBody } from '../requestBodies/CreateIntegrationRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface CreateIntegrationMutationPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CreateIntegrationMutationHeaderParams {
|
|
11
|
+
'Harness-Account': string;
|
|
12
|
+
}
|
|
13
|
+
export type CreateIntegrationRequestBody = CreateIntegrationRequestBodyRequestBody;
|
|
14
|
+
export type CreateIntegrationOkResponse = ResponseWithPagination<CreateIntegrationResponseBodyResponse>;
|
|
15
|
+
export type CreateIntegrationErrorResponse = unknown;
|
|
16
|
+
export interface CreateIntegrationProps extends CreateIntegrationMutationPathParams, Omit<FetcherOptions<unknown, CreateIntegrationRequestBody, CreateIntegrationMutationHeaderParams>, 'url'> {
|
|
17
|
+
body: CreateIntegrationRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function createIntegration(props: CreateIntegrationProps): Promise<CreateIntegrationOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Create Integration
|
|
22
|
+
*/
|
|
23
|
+
export declare function useCreateIntegrationMutation(options?: Omit<UseMutationOptions<CreateIntegrationOkResponse, CreateIntegrationErrorResponse, CreateIntegrationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationOkResponse, unknown, CreateIntegrationProps, 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 createIntegration(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/integration`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create Integration
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateIntegrationMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createIntegration(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FetchIntegrationReposResponseBodyResponse } from '../responses/FetchIntegrationReposResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface FetchReposInIntegrationQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
integration: string;
|
|
9
|
+
}
|
|
10
|
+
export interface FetchReposInIntegrationQueryQueryParams {
|
|
11
|
+
/**
|
|
12
|
+
* @default 30
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @default "ASC"
|
|
17
|
+
*/
|
|
18
|
+
order?: 'ASC' | 'DESC';
|
|
19
|
+
/**
|
|
20
|
+
* @default 0
|
|
21
|
+
*/
|
|
22
|
+
page?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface FetchReposInIntegrationQueryHeaderParams {
|
|
25
|
+
'Harness-Account': string;
|
|
26
|
+
}
|
|
27
|
+
export type FetchReposInIntegrationOkResponse = ResponseWithPagination<FetchIntegrationReposResponseBodyResponse>;
|
|
28
|
+
export type FetchReposInIntegrationErrorResponse = unknown;
|
|
29
|
+
export interface FetchReposInIntegrationProps extends FetchReposInIntegrationQueryPathParams, Omit<FetcherOptions<FetchReposInIntegrationQueryQueryParams, unknown, FetchReposInIntegrationQueryHeaderParams>, 'url'> {
|
|
30
|
+
queryParams: FetchReposInIntegrationQueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export declare function fetchReposInIntegration(props: FetchReposInIntegrationProps): Promise<FetchReposInIntegrationOkResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Get all repos from github app
|
|
35
|
+
*/
|
|
36
|
+
export declare function useFetchReposInIntegrationQuery(props: FetchReposInIntegrationProps, options?: Omit<UseQueryOptions<FetchReposInIntegrationOkResponse, FetchReposInIntegrationErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<FetchReposInIntegrationOkResponse, 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 fetchReposInIntegration(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/integration/${props.integration}/fetch-repos`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get all repos from github app
|
|
11
|
+
*/
|
|
12
|
+
export function useFetchReposInIntegrationQuery(props, options) {
|
|
13
|
+
return useQuery(['fetchReposInIntegration', props.org, props.project, props.integration, props.queryParams], ({ signal }) => fetchReposInIntegration(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactComponentViewResponseBodyResponse } from '../responses/ArtifactComponentViewResponseBodyResponse';
|
|
3
|
+
import type { ArtifactComponentViewRequestBody } from '../schemas/ArtifactComponentViewRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetArtifactV2DetailComponentViewMutationPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
artifact: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetArtifactV2DetailComponentViewMutationQueryParams {
|
|
12
|
+
/**
|
|
13
|
+
* @default 30
|
|
14
|
+
*/
|
|
15
|
+
limit?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @default "ASC"
|
|
18
|
+
*/
|
|
19
|
+
order?: 'ASC' | 'DESC';
|
|
20
|
+
/**
|
|
21
|
+
* @default 0
|
|
22
|
+
*/
|
|
23
|
+
page?: number;
|
|
24
|
+
sort?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface GetArtifactV2DetailComponentViewMutationHeaderParams {
|
|
27
|
+
'Harness-Account': string;
|
|
28
|
+
}
|
|
29
|
+
export type GetArtifactV2DetailComponentViewRequestBody = ArtifactComponentViewRequestBody;
|
|
30
|
+
export type GetArtifactV2DetailComponentViewOkResponse = ResponseWithPagination<ArtifactComponentViewResponseBodyResponse>;
|
|
31
|
+
export type GetArtifactV2DetailComponentViewErrorResponse = unknown;
|
|
32
|
+
export interface GetArtifactV2DetailComponentViewProps extends GetArtifactV2DetailComponentViewMutationPathParams, Omit<FetcherOptions<GetArtifactV2DetailComponentViewMutationQueryParams, GetArtifactV2DetailComponentViewRequestBody, GetArtifactV2DetailComponentViewMutationHeaderParams>, 'url'> {
|
|
33
|
+
queryParams: GetArtifactV2DetailComponentViewMutationQueryParams;
|
|
34
|
+
body: GetArtifactV2DetailComponentViewRequestBody;
|
|
35
|
+
}
|
|
36
|
+
export declare function getArtifactV2DetailComponentView(props: GetArtifactV2DetailComponentViewProps): Promise<GetArtifactV2DetailComponentViewOkResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Get artifactV2 detail component view
|
|
39
|
+
*/
|
|
40
|
+
export declare function useGetArtifactV2DetailComponentViewMutation(options?: Omit<UseMutationOptions<GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2DetailComponentViewProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetArtifactV2DetailComponentViewOkResponse, unknown, GetArtifactV2DetailComponentViewProps, 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 getArtifactV2DetailComponentView(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/components`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get artifactV2 detail component view
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactV2DetailComponentViewMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => getArtifactV2DetailComponentView(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ComplianceStandardsResponseBodyResponse } from '../responses/ComplianceStandardsResponseBodyResponse';
|
|
3
|
+
import type { ListComplianceStandardsRequestBodyRequestBody } from '../requestBodies/ListComplianceStandardsRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetComplianceStandardsMutationPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetComplianceStandardsMutationQueryParams {
|
|
11
|
+
/**
|
|
12
|
+
* @default 30
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @default 0
|
|
17
|
+
*/
|
|
18
|
+
page?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface GetComplianceStandardsMutationHeaderParams {
|
|
21
|
+
'Harness-Account': string;
|
|
22
|
+
}
|
|
23
|
+
export type GetComplianceStandardsRequestBody = ListComplianceStandardsRequestBodyRequestBody;
|
|
24
|
+
export type GetComplianceStandardsOkResponse = ResponseWithPagination<ComplianceStandardsResponseBodyResponse>;
|
|
25
|
+
export type GetComplianceStandardsErrorResponse = unknown;
|
|
26
|
+
export interface GetComplianceStandardsProps extends GetComplianceStandardsMutationPathParams, Omit<FetcherOptions<GetComplianceStandardsMutationQueryParams, GetComplianceStandardsRequestBody, GetComplianceStandardsMutationHeaderParams>, 'url'> {
|
|
27
|
+
queryParams: GetComplianceStandardsMutationQueryParams;
|
|
28
|
+
body: GetComplianceStandardsRequestBody;
|
|
29
|
+
}
|
|
30
|
+
export declare function getComplianceStandards(props: GetComplianceStandardsProps): Promise<GetComplianceStandardsOkResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Fetch Compliance Standards
|
|
33
|
+
*/
|
|
34
|
+
export declare function useGetComplianceStandardsMutation(options?: Omit<UseMutationOptions<GetComplianceStandardsOkResponse, GetComplianceStandardsErrorResponse, GetComplianceStandardsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetComplianceStandardsOkResponse, unknown, GetComplianceStandardsProps, 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 getComplianceStandards(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/compliance-standards/list`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Fetch Compliance Standards
|
|
11
|
+
*/
|
|
12
|
+
export function useGetComplianceStandardsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => getComplianceStandards(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListIntegrationReposResponseBodyResponse } from '../responses/ListIntegrationReposResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetIntegrationReposQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
integration: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetIntegrationReposQueryHeaderParams {
|
|
11
|
+
'Harness-Account': string;
|
|
12
|
+
}
|
|
13
|
+
export type GetIntegrationReposOkResponse = ResponseWithPagination<ListIntegrationReposResponseBodyResponse>;
|
|
14
|
+
export type GetIntegrationReposErrorResponse = unknown;
|
|
15
|
+
export interface GetIntegrationReposProps extends GetIntegrationReposQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetIntegrationReposQueryHeaderParams>, 'url'> {
|
|
16
|
+
}
|
|
17
|
+
export declare function getIntegrationRepos(props: GetIntegrationReposProps): Promise<GetIntegrationReposOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get configured repos in the integration
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetIntegrationReposQuery(props: GetIntegrationReposProps, options?: Omit<UseQueryOptions<GetIntegrationReposOkResponse, GetIntegrationReposErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetIntegrationReposOkResponse, 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 getIntegrationRepos(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/integration/${props.integration}/repos`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get configured repos in the integration
|
|
11
|
+
*/
|
|
12
|
+
export function useGetIntegrationReposQuery(props, options) {
|
|
13
|
+
return useQuery(['getIntegrationRepos', props.org, props.project, props.integration], ({ signal }) => getIntegrationRepos(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactSourcesListingResponseResponse } from '../responses/ArtifactSourcesListingResponseResponse';
|
|
3
|
+
import type { ArtifactListingRequestBodyRequestBody } from '../requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListArtifactSourcesMutationPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ListArtifactSourcesMutationQueryParams {
|
|
11
|
+
/**
|
|
12
|
+
* @default 30
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @default "ASC"
|
|
17
|
+
*/
|
|
18
|
+
order?: 'ASC' | 'DESC';
|
|
19
|
+
/**
|
|
20
|
+
* @default 0
|
|
21
|
+
*/
|
|
22
|
+
page?: number;
|
|
23
|
+
/**
|
|
24
|
+
* @default "name"
|
|
25
|
+
*/
|
|
26
|
+
sort?: {};
|
|
27
|
+
}
|
|
28
|
+
export interface ListArtifactSourcesMutationHeaderParams {
|
|
29
|
+
'Harness-Account': string;
|
|
30
|
+
}
|
|
31
|
+
export type ListArtifactSourcesRequestBody = ArtifactListingRequestBodyRequestBody;
|
|
32
|
+
export type ListArtifactSourcesOkResponse = ResponseWithPagination<ArtifactSourcesListingResponseResponse>;
|
|
33
|
+
export type ListArtifactSourcesErrorResponse = unknown;
|
|
34
|
+
export interface ListArtifactSourcesProps extends ListArtifactSourcesMutationPathParams, Omit<FetcherOptions<ListArtifactSourcesMutationQueryParams, ListArtifactSourcesRequestBody, ListArtifactSourcesMutationHeaderParams>, 'url'> {
|
|
35
|
+
queryParams: ListArtifactSourcesMutationQueryParams;
|
|
36
|
+
body: ListArtifactSourcesRequestBody;
|
|
37
|
+
}
|
|
38
|
+
export declare function listArtifactSources(props: ListArtifactSourcesProps): Promise<ListArtifactSourcesOkResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* List Artifact Sources and associated artifacts count
|
|
41
|
+
*/
|
|
42
|
+
export declare function useListArtifactSourcesMutation(options?: Omit<UseMutationOptions<ListArtifactSourcesOkResponse, ListArtifactSourcesErrorResponse, ListArtifactSourcesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ListArtifactSourcesOkResponse, unknown, ListArtifactSourcesProps, 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 listArtifactSources(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifact-sources`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List Artifact Sources and associated artifacts count
|
|
11
|
+
*/
|
|
12
|
+
export function useListArtifactSourcesMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => listArtifactSources(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationListingResponseBodyResponse } from '../responses/IntegrationListingResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface ListIntegrationsQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ListIntegrationsQueryQueryParams {
|
|
10
|
+
/**
|
|
11
|
+
* @default 30
|
|
12
|
+
*/
|
|
13
|
+
limit?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @default "ASC"
|
|
16
|
+
*/
|
|
17
|
+
order?: 'ASC' | 'DESC';
|
|
18
|
+
/**
|
|
19
|
+
* @default 0
|
|
20
|
+
*/
|
|
21
|
+
page?: number;
|
|
22
|
+
status?: 'ACTIVE' | 'INACTIVE';
|
|
23
|
+
}
|
|
24
|
+
export interface ListIntegrationsQueryHeaderParams {
|
|
25
|
+
'Harness-Account': string;
|
|
26
|
+
}
|
|
27
|
+
export type ListIntegrationsOkResponse = ResponseWithPagination<IntegrationListingResponseBodyResponse>;
|
|
28
|
+
export type ListIntegrationsErrorResponse = unknown;
|
|
29
|
+
export interface ListIntegrationsProps extends ListIntegrationsQueryPathParams, Omit<FetcherOptions<ListIntegrationsQueryQueryParams, unknown, ListIntegrationsQueryHeaderParams>, 'url'> {
|
|
30
|
+
queryParams: ListIntegrationsQueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export declare function listIntegrations(props: ListIntegrationsProps): Promise<ListIntegrationsOkResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* List Integrations
|
|
35
|
+
*/
|
|
36
|
+
export declare function useListIntegrationsQuery(props: ListIntegrationsProps, options?: Omit<UseQueryOptions<ListIntegrationsOkResponse, ListIntegrationsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListIntegrationsOkResponse, 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 listIntegrations(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/integration`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List Integrations
|
|
11
|
+
*/
|
|
12
|
+
export function useListIntegrationsQuery(props, options) {
|
|
13
|
+
return useQuery(['listIntegrations', props.org, props.project, props.queryParams], ({ signal }) => listIntegrations(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -7,6 +7,12 @@ export type { CheckArtifactAndDeploymentsErrorResponse, CheckArtifactAndDeployme
|
|
|
7
7
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
8
8
|
export type { CloseRemediationTrackerErrorResponse, CloseRemediationTrackerMutationPathParams, CloseRemediationTrackerOkResponse, CloseRemediationTrackerProps, } from './hooks/useCloseRemediationTrackerMutation';
|
|
9
9
|
export { closeRemediationTracker, useCloseRemediationTrackerMutation, } from './hooks/useCloseRemediationTrackerMutation';
|
|
10
|
+
export type { ConfigureReposErrorResponse, ConfigureReposMutationPathParams, ConfigureReposOkResponse, ConfigureReposProps, ConfigureReposRequestBody, } from './hooks/useConfigureReposMutation';
|
|
11
|
+
export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureReposMutation';
|
|
12
|
+
export type { CreateComplianceStandardsErrorResponse, CreateComplianceStandardsMutationPathParams, CreateComplianceStandardsOkResponse, CreateComplianceStandardsProps, CreateComplianceStandardsRequestBody, } from './hooks/useCreateComplianceStandardsMutation';
|
|
13
|
+
export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
|
|
14
|
+
export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParams, CreateIntegrationOkResponse, CreateIntegrationProps, CreateIntegrationRequestBody, } from './hooks/useCreateIntegrationMutation';
|
|
15
|
+
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
10
16
|
export type { CreateRemediationTrackerErrorResponse, CreateRemediationTrackerMutationPathParams, CreateRemediationTrackerOkResponse, CreateRemediationTrackerProps, CreateRemediationTrackerRequestBody, } from './hooks/useCreateRemediationTrackerMutation';
|
|
11
17
|
export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
|
|
12
18
|
export type { CreateTicketErrorResponse, CreateTicketMutationPathParams, CreateTicketOkResponse, CreateTicketProps, CreateTicketRequestBody, } from './hooks/useCreateTicketMutation';
|
|
@@ -15,6 +21,8 @@ export type { DownloadSbomErrorResponse, DownloadSbomOkResponse, DownloadSbomPro
|
|
|
15
21
|
export { downloadSbom, useDownloadSbomQuery } from './hooks/useDownloadSbomQuery';
|
|
16
22
|
export type { ExcludeArtifactErrorResponse, ExcludeArtifactMutationPathParams, ExcludeArtifactOkResponse, ExcludeArtifactProps, ExcludeArtifactRequestBody, } from './hooks/useExcludeArtifactMutation';
|
|
17
23
|
export { excludeArtifact, useExcludeArtifactMutation } from './hooks/useExcludeArtifactMutation';
|
|
24
|
+
export type { FetchReposInIntegrationErrorResponse, FetchReposInIntegrationOkResponse, FetchReposInIntegrationProps, FetchReposInIntegrationQueryPathParams, FetchReposInIntegrationQueryQueryParams, } from './hooks/useFetchReposInIntegrationQuery';
|
|
25
|
+
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
18
26
|
export type { GetArtifactDetailComponentViewErrorResponse, GetArtifactDetailComponentViewOkResponse, GetArtifactDetailComponentViewProps, GetArtifactDetailComponentViewQueryPathParams, GetArtifactDetailComponentViewQueryQueryParams, GetArtifactDetailComponentViewRequestBody, } from './hooks/useGetArtifactDetailComponentViewQuery';
|
|
19
27
|
export { getArtifactDetailComponentView, useGetArtifactDetailComponentViewQuery, } from './hooks/useGetArtifactDetailComponentViewQuery';
|
|
20
28
|
export type { GetArtifactDetailDeploymentViewErrorResponse, GetArtifactDetailDeploymentViewOkResponse, GetArtifactDetailDeploymentViewProps, GetArtifactDetailDeploymentViewQueryPathParams, GetArtifactDetailDeploymentViewQueryQueryParams, GetArtifactDetailDeploymentViewRequestBody, } from './hooks/useGetArtifactDetailDeploymentViewQuery';
|
|
@@ -25,8 +33,12 @@ export type { GetArtifactInRemediationDetailsErrorResponse, GetArtifactInRemedia
|
|
|
25
33
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
26
34
|
export type { GetArtifactListForRemediationErrorResponse, GetArtifactListForRemediationOkResponse, GetArtifactListForRemediationProps, GetArtifactListForRemediationQueryPathParams, GetArtifactListForRemediationQueryQueryParams, GetArtifactListForRemediationRequestBody, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
27
35
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
36
|
+
export type { GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2DetailComponentViewMutationPathParams, GetArtifactV2DetailComponentViewMutationQueryParams, GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewProps, GetArtifactV2DetailComponentViewRequestBody, } from './hooks/useGetArtifactV2DetailComponentViewMutation';
|
|
37
|
+
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewMutation, } from './hooks/useGetArtifactV2DetailComponentViewMutation';
|
|
28
38
|
export type { GetBaselineForArtifactErrorResponse, GetBaselineForArtifactOkResponse, GetBaselineForArtifactProps, GetBaselineForArtifactQueryPathParams, } from './hooks/useGetBaselineForArtifactQuery';
|
|
29
39
|
export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
|
|
40
|
+
export type { GetComplianceStandardsErrorResponse, GetComplianceStandardsMutationPathParams, GetComplianceStandardsMutationQueryParams, GetComplianceStandardsOkResponse, GetComplianceStandardsProps, GetComplianceStandardsRequestBody, } from './hooks/useGetComplianceStandardsMutation';
|
|
41
|
+
export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
|
|
30
42
|
export type { GetComponentDriftErrorResponse, GetComponentDriftOkResponse, GetComponentDriftProps, GetComponentDriftQueryPathParams, GetComponentDriftQueryQueryParams, } from './hooks/useGetComponentDriftQuery';
|
|
31
43
|
export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
|
|
32
44
|
export type { GetComponentsErrorResponse, GetComponentsOkResponse, GetComponentsProps, GetComponentsQueryPathParams, GetComponentsQueryQueryParams, } from './hooks/useGetComponentsQuery';
|
|
@@ -35,6 +47,8 @@ export type { GetDeploymentsListForArtifactInRemediationErrorResponse, GetDeploy
|
|
|
35
47
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
36
48
|
export type { GetEnvironmentListForRemediationErrorResponse, GetEnvironmentListForRemediationOkResponse, GetEnvironmentListForRemediationProps, GetEnvironmentListForRemediationQueryPathParams, GetEnvironmentListForRemediationQueryQueryParams, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
37
49
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
50
|
+
export type { GetIntegrationReposErrorResponse, GetIntegrationReposOkResponse, GetIntegrationReposProps, GetIntegrationReposQueryPathParams, } from './hooks/useGetIntegrationReposQuery';
|
|
51
|
+
export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
|
|
38
52
|
export type { GetLicenseDriftErrorResponse, GetLicenseDriftOkResponse, GetLicenseDriftProps, GetLicenseDriftQueryPathParams, GetLicenseDriftQueryQueryParams, } from './hooks/useGetLicenseDriftQuery';
|
|
39
53
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
40
54
|
export type { GetOverallSummaryErrorResponse, GetOverallSummaryOkResponse, GetOverallSummaryProps, GetOverallSummaryQueryPathParams, } from './hooks/useGetOverallSummaryQuery';
|
|
@@ -51,8 +65,12 @@ export type { GetSbomScorecardErrorResponse, GetSbomScorecardOkResponse, GetSbom
|
|
|
51
65
|
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
52
66
|
export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSummaryProps, GetSscaSummaryQueryPathParams, } from './hooks/useGetSscaSummaryQuery';
|
|
53
67
|
export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
|
|
68
|
+
export type { ListArtifactSourcesErrorResponse, ListArtifactSourcesMutationPathParams, ListArtifactSourcesMutationQueryParams, ListArtifactSourcesOkResponse, ListArtifactSourcesProps, ListArtifactSourcesRequestBody, } from './hooks/useListArtifactSourcesMutation';
|
|
69
|
+
export { listArtifactSources, useListArtifactSourcesMutation, } from './hooks/useListArtifactSourcesMutation';
|
|
54
70
|
export type { ListArtifactsErrorResponse, ListArtifactsOkResponse, ListArtifactsProps, ListArtifactsQueryPathParams, ListArtifactsQueryQueryParams, ListArtifactsRequestBody, } from './hooks/useListArtifactsQuery';
|
|
55
71
|
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
72
|
+
export type { ListIntegrationsErrorResponse, ListIntegrationsOkResponse, ListIntegrationsProps, ListIntegrationsQueryPathParams, ListIntegrationsQueryQueryParams, } from './hooks/useListIntegrationsQuery';
|
|
73
|
+
export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
|
|
56
74
|
export type { ListLatestArtifactsErrorResponse, ListLatestArtifactsOkResponse, ListLatestArtifactsProps, ListLatestArtifactsQueryPathParams, ListLatestArtifactsQueryQueryParams, } from './hooks/useListLatestArtifactsQuery';
|
|
57
75
|
export { listLatestArtifacts, useListLatestArtifactsQuery, } from './hooks/useListLatestArtifactsQuery';
|
|
58
76
|
export type { ListRemediationsErrorResponse, ListRemediationsOkResponse, ListRemediationsProps, ListRemediationsQueryPathParams, ListRemediationsQueryQueryParams, ListRemediationsRequestBody, } from './hooks/useListRemediationsQuery';
|
|
@@ -66,8 +84,12 @@ export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from '
|
|
|
66
84
|
export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
|
|
67
85
|
export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
68
86
|
export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
|
|
87
|
+
export type { ConfigureReposRequestBodyRequestBody } from './requestBodies/ConfigureReposRequestBodyRequestBody';
|
|
88
|
+
export type { CreateComplianceStandardRequestBodyRequestBody } from './requestBodies/CreateComplianceStandardRequestBodyRequestBody';
|
|
89
|
+
export type { CreateIntegrationRequestBodyRequestBody } from './requestBodies/CreateIntegrationRequestBodyRequestBody';
|
|
69
90
|
export type { CreateTicketRequestBodyRequestBody } from './requestBodies/CreateTicketRequestBodyRequestBody';
|
|
70
91
|
export type { ExcludeArtifactRequestBodyRequestBody } from './requestBodies/ExcludeArtifactRequestBodyRequestBody';
|
|
92
|
+
export type { ListComplianceStandardsRequestBodyRequestBody } from './requestBodies/ListComplianceStandardsRequestBodyRequestBody';
|
|
71
93
|
export type { RemediationArtifactDeploymentsListingRequestBodyRequestBody } from './requestBodies/RemediationArtifactDeploymentsListingRequestBodyRequestBody';
|
|
72
94
|
export type { RemediationArtifactListingRequestBodyRequestBody } from './requestBodies/RemediationArtifactListingRequestBodyRequestBody';
|
|
73
95
|
export type { RemediationListingRequestBodyRequestBody } from './requestBodies/RemediationListingRequestBodyRequestBody';
|
|
@@ -81,11 +103,17 @@ export type { ArtifactListingResponseBodyV2Response } from './responses/Artifact
|
|
|
81
103
|
export type { ArtifactListingResponsePipelineBodyResponse } from './responses/ArtifactListingResponsePipelineBodyResponse';
|
|
82
104
|
export type { ArtifactSbomDriftResponseBodyResponse } from './responses/ArtifactSbomDriftResponseBodyResponse';
|
|
83
105
|
export type { ArtifactSbomResponseBodyResponse } from './responses/ArtifactSbomResponseBodyResponse';
|
|
106
|
+
export type { ArtifactSourcesListingResponseResponse } from './responses/ArtifactSourcesListingResponseResponse';
|
|
84
107
|
export type { BaselineResponseBodyResponse } from './responses/BaselineResponseBodyResponse';
|
|
108
|
+
export type { ComplianceStandardsResponseBodyResponse } from './responses/ComplianceStandardsResponseBodyResponse';
|
|
85
109
|
export type { ComponentDriftResponseBodyResponse } from './responses/ComponentDriftResponseBodyResponse';
|
|
86
110
|
export type { ComponentListResponseBodyResponse } from './responses/ComponentListResponseBodyResponse';
|
|
111
|
+
export type { CreateIntegrationResponseBodyResponse } from './responses/CreateIntegrationResponseBodyResponse';
|
|
87
112
|
export type { CreateTicketResponseBodyResponse } from './responses/CreateTicketResponseBodyResponse';
|
|
113
|
+
export type { FetchIntegrationReposResponseBodyResponse } from './responses/FetchIntegrationReposResponseBodyResponse';
|
|
114
|
+
export type { IntegrationListingResponseBodyResponse } from './responses/IntegrationListingResponseBodyResponse';
|
|
88
115
|
export type { LicenseDriftResponseBodyResponse } from './responses/LicenseDriftResponseBodyResponse';
|
|
116
|
+
export type { ListIntegrationReposResponseBodyResponse } from './responses/ListIntegrationReposResponseBodyResponse';
|
|
89
117
|
export type { PolicyViolationResponseResponse } from './responses/PolicyViolationResponseResponse';
|
|
90
118
|
export type { ProvenanceResponseBodyResponse } from './responses/ProvenanceResponseBodyResponse';
|
|
91
119
|
export type { RemediationArtifactDeploymentsListingResponseBodyResponse } from './responses/RemediationArtifactDeploymentsListingResponseBodyResponse';
|
|
@@ -114,17 +142,24 @@ export type { ArtifactModelPipeline } from './schemas/ArtifactModelPipeline';
|
|
|
114
142
|
export type { ArtifactSbomDriftRequestBody } from './schemas/ArtifactSbomDriftRequestBody';
|
|
115
143
|
export type { ArtifactSbomDriftResponse } from './schemas/ArtifactSbomDriftResponse';
|
|
116
144
|
export type { ArtifactSbomResponseBody } from './schemas/ArtifactSbomResponseBody';
|
|
145
|
+
export type { ArtifactSourcesListingResponse } from './schemas/ArtifactSourcesListingResponse';
|
|
117
146
|
export type { ArtifactVariant } from './schemas/ArtifactVariant';
|
|
118
147
|
export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
|
|
119
148
|
export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
|
|
120
149
|
export type { CategoryScorecard } from './schemas/CategoryScorecard';
|
|
121
150
|
export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
|
|
151
|
+
export type { ComplianceCheck } from './schemas/ComplianceCheck';
|
|
152
|
+
export type { ComplianceCheckEntity } from './schemas/ComplianceCheckEntity';
|
|
153
|
+
export type { ComplianceCheckType } from './schemas/ComplianceCheckType';
|
|
154
|
+
export type { ComplianceStandard } from './schemas/ComplianceStandard';
|
|
122
155
|
export type { ComponentDrift } from './schemas/ComponentDrift';
|
|
123
156
|
export type { ComponentDriftSummary } from './schemas/ComponentDriftSummary';
|
|
124
157
|
export type { ComponentDto } from './schemas/ComponentDto';
|
|
125
158
|
export type { ComponentFilter } from './schemas/ComponentFilter';
|
|
126
159
|
export type { ComponentSummary } from './schemas/ComponentSummary';
|
|
160
|
+
export type { ConfigureReposRequest } from './schemas/ConfigureReposRequest';
|
|
127
161
|
export type { ContactInfo } from './schemas/ContactInfo';
|
|
162
|
+
export type { CreateIntegrationRequest } from './schemas/CreateIntegrationRequest';
|
|
128
163
|
export type { CreateTicketRequest } from './schemas/CreateTicketRequest';
|
|
129
164
|
export type { CreateTicketResponse } from './schemas/CreateTicketResponse';
|
|
130
165
|
export type { DeploymentsCount } from './schemas/DeploymentsCount';
|
|
@@ -133,6 +168,8 @@ export type { EnvironmentInfo } from './schemas/EnvironmentInfo';
|
|
|
133
168
|
export type { EnvironmentType } from './schemas/EnvironmentType';
|
|
134
169
|
export type { EnvironmentTypeFilter } from './schemas/EnvironmentTypeFilter';
|
|
135
170
|
export type { ExcludeArtifactRequest } from './schemas/ExcludeArtifactRequest';
|
|
171
|
+
export type { Integration } from './schemas/Integration';
|
|
172
|
+
export type { IntegrationType } from './schemas/IntegrationType';
|
|
136
173
|
export type { LayerType } from './schemas/LayerType';
|
|
137
174
|
export type { LicenseDrift } from './schemas/LicenseDrift';
|
|
138
175
|
export type { LicenseDriftSummary } from './schemas/LicenseDriftSummary';
|
|
@@ -160,6 +197,7 @@ export type { RemediationTrackerCreateResponseBody } from './schemas/Remediation
|
|
|
160
197
|
export type { RemediationTrackerUpdateRequestBody } from './schemas/RemediationTrackerUpdateRequestBody';
|
|
161
198
|
export type { RemediationTrackerUpdateResponseBody } from './schemas/RemediationTrackerUpdateResponseBody';
|
|
162
199
|
export type { RemediationTrackersOverallSummaryResponseBody } from './schemas/RemediationTrackersOverallSummaryResponseBody';
|
|
200
|
+
export type { RepoDetailsDto } from './schemas/RepoDetailsDto';
|
|
163
201
|
export type { SaveResponse } from './schemas/SaveResponse';
|
|
164
202
|
export type { SbomDetailsForScorecard } from './schemas/SbomDetailsForScorecard';
|
|
165
203
|
export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
|
|
@@ -2,20 +2,27 @@ export { artifactList, useArtifactListQuery } from './hooks/useArtifactListQuery
|
|
|
2
2
|
export { calculateDriftForArtifact, useCalculateDriftForArtifactMutation, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
3
3
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
4
4
|
export { closeRemediationTracker, useCloseRemediationTrackerMutation, } from './hooks/useCloseRemediationTrackerMutation';
|
|
5
|
+
export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureReposMutation';
|
|
6
|
+
export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
|
|
7
|
+
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
5
8
|
export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
|
|
6
9
|
export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
|
|
7
10
|
export { downloadSbom, useDownloadSbomQuery } from './hooks/useDownloadSbomQuery';
|
|
8
11
|
export { excludeArtifact, useExcludeArtifactMutation } from './hooks/useExcludeArtifactMutation';
|
|
12
|
+
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
9
13
|
export { getArtifactDetailComponentView, useGetArtifactDetailComponentViewQuery, } from './hooks/useGetArtifactDetailComponentViewQuery';
|
|
10
14
|
export { getArtifactDetailDeploymentView, useGetArtifactDetailDeploymentViewQuery, } from './hooks/useGetArtifactDetailDeploymentViewQuery';
|
|
11
15
|
export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
|
|
12
16
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
13
17
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
18
|
+
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewMutation, } from './hooks/useGetArtifactV2DetailComponentViewMutation';
|
|
14
19
|
export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
|
|
20
|
+
export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
|
|
15
21
|
export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
|
|
16
22
|
export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
|
|
17
23
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
18
24
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
25
|
+
export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
|
|
19
26
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
20
27
|
export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
|
|
21
28
|
export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
|
|
@@ -24,7 +31,9 @@ export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQu
|
|
|
24
31
|
export { getRemediationDetails, useGetRemediationDetailsQuery, } from './hooks/useGetRemediationDetailsQuery';
|
|
25
32
|
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
26
33
|
export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
|
|
34
|
+
export { listArtifactSources, useListArtifactSourcesMutation, } from './hooks/useListArtifactSourcesMutation';
|
|
27
35
|
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
36
|
+
export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
|
|
28
37
|
export { listLatestArtifacts, useListLatestArtifactsQuery, } from './hooks/useListLatestArtifactsQuery';
|
|
29
38
|
export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
|
|
30
39
|
export { setBaselineForArtifact, useSetBaselineForArtifactMutation, } from './hooks/useSetBaselineForArtifactMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/ssca-manager/src/services/requestBodies/CreateIntegrationRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ComplianceCheckEntity } from '../schemas/ComplianceCheckEntity';
|
|
2
|
+
import type { ComplianceCheckType } from '../schemas/ComplianceCheckType';
|
|
3
|
+
/**
|
|
4
|
+
* Represents Single SSCA Compliance Check
|
|
5
|
+
*/
|
|
6
|
+
export interface ComplianceCheck {
|
|
7
|
+
checks?: string[];
|
|
8
|
+
description?: string;
|
|
9
|
+
entity?: ComplianceCheckEntity;
|
|
10
|
+
remediation?: string;
|
|
11
|
+
scanner_type?: string;
|
|
12
|
+
severity?: string;
|
|
13
|
+
standards?: string[];
|
|
14
|
+
title?: string;
|
|
15
|
+
type?: ComplianceCheckType;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|