@harnessio/react-ssca-manager-client 0.61.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.
@@ -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';
@@ -0,0 +1,2 @@
1
+ import type { HarnessPipelineIntegrationResponse } from '../schemas/HarnessPipelineIntegrationResponse';
2
+ export type HarnessPipelineIntegrationResponseBodyResponse = HarnessPipelineIntegrationResponse;
@@ -2,7 +2,7 @@
2
2
  * Stores artifact type vs passed failed count
3
3
  */
4
4
  export interface ArtifactComplianceMetrics {
5
- artifactType?: string;
5
+ artifactType?: 'REPOSITORY' | 'WORKFLOW';
6
6
  failed?: number;
7
7
  passed?: number;
8
8
  }
@@ -26,6 +26,7 @@ export interface ArtifactV2Overview {
26
26
  sbom_details?: SbomInfo;
27
27
  scorecard?: Scorecard;
28
28
  slsa_details?: SlsaDetails;
29
+ source_id?: string;
29
30
  sto_issue_count?: StoIssueCount;
30
31
  tags?: string[];
31
32
  /**
@@ -18,4 +18,5 @@ export interface ComplianceArtifactWithExecution {
18
18
  title?: string;
19
19
  type: string;
20
20
  updatedAt?: string;
21
+ url?: string;
21
22
  }
@@ -1,7 +1,6 @@
1
- import type { ComplianceCheckEntityType } from '../schemas/ComplianceCheckEntityType';
2
1
  export interface ComplianceExecutionByType {
3
2
  count?: number;
4
3
  failed?: number;
5
4
  passed?: number;
6
- type?: ComplianceCheckEntityType;
5
+ type?: 'CICD' | 'REPOSITORY';
7
6
  }
@@ -1 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
1
4
  export {};
@@ -0,0 +1,3 @@
1
+ export interface HarnessPipelineIntegrationResponse {
2
+ enabled: boolean;
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 {};
@@ -7,5 +7,5 @@ export interface Integration {
7
7
  last_scan_at?: number;
8
8
  org?: string;
9
9
  status?: 'ACTIVE' | 'INACTIVE';
10
- type?: 'GITHUB';
10
+ type?: 'GITHUB' | 'HARNESS';
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.61.0",
3
+ "version": "0.63.0",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",