@harnessio/react-ssca-manager-client 0.63.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/useListIntegrationsQuery.d.ts +5 -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/CicdWorklfowPluginsResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/CicdWorklfowPluginsResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/CicdWorklfowPluginsResponse.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/CicdWorklfowPluginsResponse.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
|
+
}
|
|
@@ -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';
|
|
@@ -160,6 +162,7 @@ export type { ArtifactSourcesListingResponseResponse } from './responses/Artifac
|
|
|
160
162
|
export type { ArtifactV2ListingResponseBodyResponse } from './responses/ArtifactV2ListingResponseBodyResponse';
|
|
161
163
|
export type { BaselineResponseBodyResponse } from './responses/BaselineResponseBodyResponse';
|
|
162
164
|
export type { CicdOverviewResponseBodyResponse } from './responses/CicdOverviewResponseBodyResponse';
|
|
165
|
+
export type { CicdWorklfowPluginsResponseBodyResponse } from './responses/CicdWorklfowPluginsResponseBodyResponse';
|
|
163
166
|
export type { CodeRepositoryListingResponseBodyResponse } from './responses/CodeRepositoryListingResponseBodyResponse';
|
|
164
167
|
export type { CodeRepositoryOverviewResponseBodyResponse } from './responses/CodeRepositoryOverviewResponseBodyResponse';
|
|
165
168
|
export type { ComplianceChecksStatsResponseResponse } from './responses/ComplianceChecksStatsResponseResponse';
|
|
@@ -224,6 +227,7 @@ export type { CicdRulesEvaluation } from './schemas/CicdRulesEvaluation';
|
|
|
224
227
|
export type { CicdWorkflowListingRequest } from './schemas/CicdWorkflowListingRequest';
|
|
225
228
|
export type { CicdWorkflowListingResponse } from './schemas/CicdWorkflowListingResponse';
|
|
226
229
|
export type { CicdWorkflowSummary } from './schemas/CicdWorkflowSummary';
|
|
230
|
+
export type { CicdWorklfowPluginsResponse } from './schemas/CicdWorklfowPluginsResponse';
|
|
227
231
|
export type { CodeRepoRulesEvaluation } from './schemas/CodeRepoRulesEvaluation';
|
|
228
232
|
export type { CodeRepositoryListingRequest } from './schemas/CodeRepositoryListingRequest';
|
|
229
233
|
export type { CodeRepositoryListingResponse } from './schemas/CodeRepositoryListingResponse';
|
|
@@ -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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|