@harnessio/react-ssca-manager-client 0.62.0 → 0.63.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/useGetHarnessPipelineIntegrationQuery.d.ts +20 -0
- package/dist/ssca-manager/src/services/hooks/useGetHarnessPipelineIntegrationQuery.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +4 -0
- package/dist/ssca-manager/src/services/index.js +1 -0
- package/dist/ssca-manager/src/services/responses/HarnessPipelineIntegrationResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/HarnessPipelineIntegrationResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComplianceMetrics.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/ComplianceArtifactWithExecution.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceExecutionByType.d.ts +1 -2
- package/dist/ssca-manager/src/services/schemas/ComplianceExecutionByType.js +3 -0
- package/dist/ssca-manager/src/services/schemas/HarnessPipelineIntegrationResponse.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/HarnessPipelineIntegrationResponse.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { HarnessPipelineIntegrationResponseBodyResponse } from '../responses/HarnessPipelineIntegrationResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetHarnessPipelineIntegrationQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetHarnessPipelineIntegrationQueryHeaderParams {
|
|
10
|
+
'Harness-Account': string;
|
|
11
|
+
}
|
|
12
|
+
export type GetHarnessPipelineIntegrationOkResponse = ResponseWithPagination<HarnessPipelineIntegrationResponseBodyResponse>;
|
|
13
|
+
export type GetHarnessPipelineIntegrationErrorResponse = unknown;
|
|
14
|
+
export interface GetHarnessPipelineIntegrationProps extends GetHarnessPipelineIntegrationQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetHarnessPipelineIntegrationQueryHeaderParams>, 'url'> {
|
|
15
|
+
}
|
|
16
|
+
export declare function getHarnessPipelineIntegration(props: GetHarnessPipelineIntegrationProps): Promise<GetHarnessPipelineIntegrationOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get Harness Pipeline Integration
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetHarnessPipelineIntegrationQuery(props: GetHarnessPipelineIntegrationProps, options?: Omit<UseQueryOptions<GetHarnessPipelineIntegrationOkResponse, GetHarnessPipelineIntegrationErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetHarnessPipelineIntegrationOkResponse, 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 getHarnessPipelineIntegration(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/integration/harness-pipeline`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Harness Pipeline Integration
|
|
11
|
+
*/
|
|
12
|
+
export function useGetHarnessPipelineIntegrationQuery(props, options) {
|
|
13
|
+
return useQuery(['getHarnessPipelineIntegration', props.org, props.project], ({ signal }) => getHarnessPipelineIntegration(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -83,6 +83,8 @@ export type { GetDeploymentsListForArtifactInRemediationErrorResponse, GetDeploy
|
|
|
83
83
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
84
84
|
export type { GetEnvironmentListForRemediationErrorResponse, GetEnvironmentListForRemediationOkResponse, GetEnvironmentListForRemediationProps, GetEnvironmentListForRemediationQueryPathParams, GetEnvironmentListForRemediationQueryQueryParams, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
85
85
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
86
|
+
export type { GetHarnessPipelineIntegrationErrorResponse, GetHarnessPipelineIntegrationOkResponse, GetHarnessPipelineIntegrationProps, GetHarnessPipelineIntegrationQueryPathParams, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
87
|
+
export { getHarnessPipelineIntegration, useGetHarnessPipelineIntegrationQuery, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
86
88
|
export type { GetIntegrationReposErrorResponse, GetIntegrationReposOkResponse, GetIntegrationReposProps, GetIntegrationReposQueryPathParams, } from './hooks/useGetIntegrationReposQuery';
|
|
87
89
|
export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
|
|
88
90
|
export type { GetIntegrationsConfigErrorResponse, GetIntegrationsConfigOkResponse, GetIntegrationsConfigProps, GetIntegrationsConfigQueryQueryParams, } from './hooks/useGetIntegrationsConfigQuery';
|
|
@@ -174,6 +176,7 @@ export type { CreateTicketResponseBodyResponse } from './responses/CreateTicketR
|
|
|
174
176
|
export type { FetchArtifactsByComplianceIdResponseBodyResponse } from './responses/FetchArtifactsByComplianceIdResponseBodyResponse';
|
|
175
177
|
export type { FetchComplianceResultByArtifactResponseResponse } from './responses/FetchComplianceResultByArtifactResponseResponse';
|
|
176
178
|
export type { FetchIntegrationReposResponseBodyResponse } from './responses/FetchIntegrationReposResponseBodyResponse';
|
|
179
|
+
export type { HarnessPipelineIntegrationResponseBodyResponse } from './responses/HarnessPipelineIntegrationResponseBodyResponse';
|
|
177
180
|
export type { IntegrationListingResponseBodyResponse } from './responses/IntegrationListingResponseBodyResponse';
|
|
178
181
|
export type { LicenseDriftResponseBodyResponse } from './responses/LicenseDriftResponseBodyResponse';
|
|
179
182
|
export type { ListIntegrationReposResponseBodyResponse } from './responses/ListIntegrationReposResponseBodyResponse';
|
|
@@ -262,6 +265,7 @@ export type { EnvironmentType } from './schemas/EnvironmentType';
|
|
|
262
265
|
export type { EnvironmentTypeFilter } from './schemas/EnvironmentTypeFilter';
|
|
263
266
|
export type { ExcludeArtifactRequest } from './schemas/ExcludeArtifactRequest';
|
|
264
267
|
export type { FetchComplianceResultByArtifactResponseBody } from './schemas/FetchComplianceResultByArtifactResponseBody';
|
|
268
|
+
export type { HarnessPipelineIntegrationResponse } from './schemas/HarnessPipelineIntegrationResponse';
|
|
265
269
|
export type { Integration } from './schemas/Integration';
|
|
266
270
|
export type { IntegrationConfig } from './schemas/IntegrationConfig';
|
|
267
271
|
export type { IntegrationType } from './schemas/IntegrationType';
|
|
@@ -40,6 +40,7 @@ export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComp
|
|
|
40
40
|
export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
|
|
41
41
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
42
42
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
43
|
+
export { getHarnessPipelineIntegration, useGetHarnessPipelineIntegrationQuery, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
43
44
|
export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
|
|
44
45
|
export { getIntegrationsConfig, useGetIntegrationsConfigQuery, } from './hooks/useGetIntegrationsConfigQuery';
|
|
45
46
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
package/dist/ssca-manager/src/services/responses/HarnessPipelineIntegrationResponseBodyResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|