@harnessio/react-ssca-manager-client 0.62.0 → 0.64.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/useFetchPluginsForWorkflowQuery.d.ts +41 -0
- package/dist/ssca-manager/src/services/hooks/useFetchPluginsForWorkflowQuery.js +14 -0
- 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/hooks/useListIntegrationsQuery.d.ts +5 -0
- package/dist/ssca-manager/src/services/index.d.ts +8 -0
- package/dist/ssca-manager/src/services/index.js +2 -0
- package/dist/ssca-manager/src/services/responses/CicdWorklfowPluginsResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/CicdWorklfowPluginsResponseBodyResponse.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/CicdWorklfowPluginsResponse.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/CicdWorklfowPluginsResponse.js +4 -0
- 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,41 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CicdWorklfowPluginsResponseBodyResponse } from '../responses/CicdWorklfowPluginsResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface FetchPluginsForWorkflowQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
workflow: string;
|
|
9
|
+
}
|
|
10
|
+
export interface FetchPluginsForWorkflowQueryQueryParams {
|
|
11
|
+
/**
|
|
12
|
+
* @default 0
|
|
13
|
+
*/
|
|
14
|
+
page?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @default 30
|
|
17
|
+
*/
|
|
18
|
+
limit?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @default "ASC"
|
|
21
|
+
*/
|
|
22
|
+
order?: 'ASC' | 'DESC';
|
|
23
|
+
/**
|
|
24
|
+
* @default "name"
|
|
25
|
+
*/
|
|
26
|
+
sort?: 'name';
|
|
27
|
+
search_term?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface FetchPluginsForWorkflowQueryHeaderParams {
|
|
30
|
+
'Harness-Account': string;
|
|
31
|
+
}
|
|
32
|
+
export type FetchPluginsForWorkflowOkResponse = ResponseWithPagination<CicdWorklfowPluginsResponseBodyResponse>;
|
|
33
|
+
export type FetchPluginsForWorkflowErrorResponse = unknown;
|
|
34
|
+
export interface FetchPluginsForWorkflowProps extends FetchPluginsForWorkflowQueryPathParams, Omit<FetcherOptions<FetchPluginsForWorkflowQueryQueryParams, unknown, FetchPluginsForWorkflowQueryHeaderParams>, 'url'> {
|
|
35
|
+
queryParams: FetchPluginsForWorkflowQueryQueryParams;
|
|
36
|
+
}
|
|
37
|
+
export declare function fetchPluginsForWorkflow(props: FetchPluginsForWorkflowProps): Promise<FetchPluginsForWorkflowOkResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Fetch List of plugins for a workflow
|
|
40
|
+
*/
|
|
41
|
+
export declare function useFetchPluginsForWorkflowQuery(props: FetchPluginsForWorkflowProps, options?: Omit<UseQueryOptions<FetchPluginsForWorkflowOkResponse, FetchPluginsForWorkflowErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<FetchPluginsForWorkflowOkResponse, 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 fetchPluginsForWorkflow(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ci-cd/${props.workflow}/plugins`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Fetch List of plugins for a workflow
|
|
11
|
+
*/
|
|
12
|
+
export function useFetchPluginsForWorkflowQuery(props, options) {
|
|
13
|
+
return useQuery(['fetchPluginsForWorkflow', props.org, props.project, props.workflow, props.queryParams], ({ signal }) => fetchPluginsForWorkflow(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -20,6 +20,11 @@ export interface ListIntegrationsQueryQueryParams {
|
|
|
20
20
|
*/
|
|
21
21
|
page?: number;
|
|
22
22
|
status?: 'ACTIVE' | 'INACTIVE';
|
|
23
|
+
search_term?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @default "last_scan"
|
|
26
|
+
*/
|
|
27
|
+
sort?: 'last_scan';
|
|
23
28
|
}
|
|
24
29
|
export interface ListIntegrationsQueryHeaderParams {
|
|
25
30
|
'Harness-Account': string;
|
|
@@ -33,6 +33,8 @@ export type { FetchComplianceResultsByComplianceIdErrorResponse, FetchCompliance
|
|
|
33
33
|
export { fetchComplianceResultsByComplianceId, useFetchComplianceResultsByComplianceIdQuery, } from './hooks/useFetchComplianceResultsByComplianceIdQuery';
|
|
34
34
|
export type { FetchComplianceResultsGroupByIdErrorResponse, FetchComplianceResultsGroupByIdMutationPathParams, FetchComplianceResultsGroupByIdMutationQueryParams, FetchComplianceResultsGroupByIdOkResponse, FetchComplianceResultsGroupByIdProps, FetchComplianceResultsGroupByIdRequestBody, } from './hooks/useFetchComplianceResultsGroupByIdMutation';
|
|
35
35
|
export { fetchComplianceResultsGroupById, useFetchComplianceResultsGroupByIdMutation, } from './hooks/useFetchComplianceResultsGroupByIdMutation';
|
|
36
|
+
export type { FetchPluginsForWorkflowErrorResponse, FetchPluginsForWorkflowOkResponse, FetchPluginsForWorkflowProps, FetchPluginsForWorkflowQueryPathParams, FetchPluginsForWorkflowQueryQueryParams, } from './hooks/useFetchPluginsForWorkflowQuery';
|
|
37
|
+
export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
|
|
36
38
|
export type { FetchReposInIntegrationErrorResponse, FetchReposInIntegrationOkResponse, FetchReposInIntegrationProps, FetchReposInIntegrationQueryPathParams, FetchReposInIntegrationQueryQueryParams, } from './hooks/useFetchReposInIntegrationQuery';
|
|
37
39
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
38
40
|
export type { GetAllRepositoriesSummaryErrorResponse, GetAllRepositoriesSummaryOkResponse, GetAllRepositoriesSummaryProps, GetAllRepositoriesSummaryQueryPathParams, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
@@ -83,6 +85,8 @@ export type { GetDeploymentsListForArtifactInRemediationErrorResponse, GetDeploy
|
|
|
83
85
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
84
86
|
export type { GetEnvironmentListForRemediationErrorResponse, GetEnvironmentListForRemediationOkResponse, GetEnvironmentListForRemediationProps, GetEnvironmentListForRemediationQueryPathParams, GetEnvironmentListForRemediationQueryQueryParams, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
85
87
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
88
|
+
export type { GetHarnessPipelineIntegrationErrorResponse, GetHarnessPipelineIntegrationOkResponse, GetHarnessPipelineIntegrationProps, GetHarnessPipelineIntegrationQueryPathParams, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
89
|
+
export { getHarnessPipelineIntegration, useGetHarnessPipelineIntegrationQuery, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
86
90
|
export type { GetIntegrationReposErrorResponse, GetIntegrationReposOkResponse, GetIntegrationReposProps, GetIntegrationReposQueryPathParams, } from './hooks/useGetIntegrationReposQuery';
|
|
87
91
|
export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
|
|
88
92
|
export type { GetIntegrationsConfigErrorResponse, GetIntegrationsConfigOkResponse, GetIntegrationsConfigProps, GetIntegrationsConfigQueryQueryParams, } from './hooks/useGetIntegrationsConfigQuery';
|
|
@@ -158,6 +162,7 @@ export type { ArtifactSourcesListingResponseResponse } from './responses/Artifac
|
|
|
158
162
|
export type { ArtifactV2ListingResponseBodyResponse } from './responses/ArtifactV2ListingResponseBodyResponse';
|
|
159
163
|
export type { BaselineResponseBodyResponse } from './responses/BaselineResponseBodyResponse';
|
|
160
164
|
export type { CicdOverviewResponseBodyResponse } from './responses/CicdOverviewResponseBodyResponse';
|
|
165
|
+
export type { CicdWorklfowPluginsResponseBodyResponse } from './responses/CicdWorklfowPluginsResponseBodyResponse';
|
|
161
166
|
export type { CodeRepositoryListingResponseBodyResponse } from './responses/CodeRepositoryListingResponseBodyResponse';
|
|
162
167
|
export type { CodeRepositoryOverviewResponseBodyResponse } from './responses/CodeRepositoryOverviewResponseBodyResponse';
|
|
163
168
|
export type { ComplianceChecksStatsResponseResponse } from './responses/ComplianceChecksStatsResponseResponse';
|
|
@@ -174,6 +179,7 @@ export type { CreateTicketResponseBodyResponse } from './responses/CreateTicketR
|
|
|
174
179
|
export type { FetchArtifactsByComplianceIdResponseBodyResponse } from './responses/FetchArtifactsByComplianceIdResponseBodyResponse';
|
|
175
180
|
export type { FetchComplianceResultByArtifactResponseResponse } from './responses/FetchComplianceResultByArtifactResponseResponse';
|
|
176
181
|
export type { FetchIntegrationReposResponseBodyResponse } from './responses/FetchIntegrationReposResponseBodyResponse';
|
|
182
|
+
export type { HarnessPipelineIntegrationResponseBodyResponse } from './responses/HarnessPipelineIntegrationResponseBodyResponse';
|
|
177
183
|
export type { IntegrationListingResponseBodyResponse } from './responses/IntegrationListingResponseBodyResponse';
|
|
178
184
|
export type { LicenseDriftResponseBodyResponse } from './responses/LicenseDriftResponseBodyResponse';
|
|
179
185
|
export type { ListIntegrationReposResponseBodyResponse } from './responses/ListIntegrationReposResponseBodyResponse';
|
|
@@ -221,6 +227,7 @@ export type { CicdRulesEvaluation } from './schemas/CicdRulesEvaluation';
|
|
|
221
227
|
export type { CicdWorkflowListingRequest } from './schemas/CicdWorkflowListingRequest';
|
|
222
228
|
export type { CicdWorkflowListingResponse } from './schemas/CicdWorkflowListingResponse';
|
|
223
229
|
export type { CicdWorkflowSummary } from './schemas/CicdWorkflowSummary';
|
|
230
|
+
export type { CicdWorklfowPluginsResponse } from './schemas/CicdWorklfowPluginsResponse';
|
|
224
231
|
export type { CodeRepoRulesEvaluation } from './schemas/CodeRepoRulesEvaluation';
|
|
225
232
|
export type { CodeRepositoryListingRequest } from './schemas/CodeRepositoryListingRequest';
|
|
226
233
|
export type { CodeRepositoryListingResponse } from './schemas/CodeRepositoryListingResponse';
|
|
@@ -262,6 +269,7 @@ export type { EnvironmentType } from './schemas/EnvironmentType';
|
|
|
262
269
|
export type { EnvironmentTypeFilter } from './schemas/EnvironmentTypeFilter';
|
|
263
270
|
export type { ExcludeArtifactRequest } from './schemas/ExcludeArtifactRequest';
|
|
264
271
|
export type { FetchComplianceResultByArtifactResponseBody } from './schemas/FetchComplianceResultByArtifactResponseBody';
|
|
272
|
+
export type { HarnessPipelineIntegrationResponse } from './schemas/HarnessPipelineIntegrationResponse';
|
|
265
273
|
export type { Integration } from './schemas/Integration';
|
|
266
274
|
export type { IntegrationConfig } from './schemas/IntegrationConfig';
|
|
267
275
|
export type { IntegrationType } from './schemas/IntegrationType';
|
|
@@ -15,6 +15,7 @@ export { excludeArtifact, useExcludeArtifactMutation } from './hooks/useExcludeA
|
|
|
15
15
|
export { fetchComplianceResultsByArtifact, useFetchComplianceResultsByArtifactQuery, } from './hooks/useFetchComplianceResultsByArtifactQuery';
|
|
16
16
|
export { fetchComplianceResultsByComplianceId, useFetchComplianceResultsByComplianceIdQuery, } from './hooks/useFetchComplianceResultsByComplianceIdQuery';
|
|
17
17
|
export { fetchComplianceResultsGroupById, useFetchComplianceResultsGroupByIdMutation, } from './hooks/useFetchComplianceResultsGroupByIdMutation';
|
|
18
|
+
export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
|
|
18
19
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
19
20
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
20
21
|
export { getArtifactDetailComponentView, useGetArtifactDetailComponentViewQuery, } from './hooks/useGetArtifactDetailComponentViewQuery';
|
|
@@ -40,6 +41,7 @@ export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComp
|
|
|
40
41
|
export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
|
|
41
42
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
42
43
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
44
|
+
export { getHarnessPipelineIntegration, useGetHarnessPipelineIntegrationQuery, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
43
45
|
export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
|
|
44
46
|
export { getIntegrationsConfig, useGetIntegrationsConfigQuery, } from './hooks/useGetIntegrationsConfigQuery';
|
|
45
47
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/ssca-manager/src/services/responses/HarnessPipelineIntegrationResponseBodyResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|