@harnessio/react-ssca-manager-client 0.63.0 → 0.65.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.
@@ -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,2 @@
1
+ import type { CicdWorklfowPluginsResponse } from '../schemas/CicdWorklfowPluginsResponse';
2
+ export type CicdWorklfowPluginsResponseBodyResponse = CicdWorklfowPluginsResponse[];
@@ -0,0 +1,3 @@
1
+ export interface CicdWorklfowPluginsResponse {
2
+ plugin_name?: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -18,5 +18,6 @@ export interface FetchComplianceResultByArtifactResponseBody {
18
18
  severity?: ComplianceCheckSeverity;
19
19
  standards?: ComplianceStandardType[];
20
20
  status?: ComplianceResultStatus;
21
+ tags?: string[];
21
22
  title?: string;
22
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.63.0",
3
+ "version": "0.65.0",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",