@harnessio/react-har-service-client 0.0.17 → 0.0.18

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,27 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { DockerArtifactDetailIntegrationResponseResponse } from '../responses/DockerArtifactDetailIntegrationResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
+ import type { ResponseWithPagination } from '../helpers';
9
+ import { FetcherOptions } from '../../../../fetcher/index.js';
10
+ export interface GetDockerArtifactIntegrationDetailsQueryPathParams {
11
+ registry_ref: string;
12
+ artifact: string;
13
+ version: string;
14
+ }
15
+ export interface GetDockerArtifactIntegrationDetailsQueryQueryParams {
16
+ digest: string;
17
+ }
18
+ export type GetDockerArtifactIntegrationDetailsOkResponse = ResponseWithPagination<DockerArtifactDetailIntegrationResponseResponse>;
19
+ export type GetDockerArtifactIntegrationDetailsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
20
+ export interface GetDockerArtifactIntegrationDetailsProps extends GetDockerArtifactIntegrationDetailsQueryPathParams, Omit<FetcherOptions<GetDockerArtifactIntegrationDetailsQueryQueryParams, unknown>, 'url'> {
21
+ queryParams: GetDockerArtifactIntegrationDetailsQueryQueryParams;
22
+ }
23
+ export declare function getDockerArtifactIntegrationDetails(props: GetDockerArtifactIntegrationDetailsProps): Promise<GetDockerArtifactIntegrationDetailsOkResponse>;
24
+ /**
25
+ * Get Docker Artifact Integration Details
26
+ */
27
+ export declare function useGetDockerArtifactIntegrationDetailsQuery(props: GetDockerArtifactIntegrationDetailsProps, options?: Omit<UseQueryOptions<GetDockerArtifactIntegrationDetailsOkResponse, GetDockerArtifactIntegrationDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetDockerArtifactIntegrationDetailsOkResponse, import("..").Error>;
@@ -0,0 +1,20 @@
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 getDockerArtifactIntegrationDetails(props) {
7
+ return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/integrationdetails`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Docker Artifact Integration Details
11
+ */
12
+ export function useGetDockerArtifactIntegrationDetailsQuery(props, options) {
13
+ return useQuery([
14
+ 'GetDockerArtifactIntegrationDetails',
15
+ props.registry_ref,
16
+ props.artifact,
17
+ props.version,
18
+ props.queryParams,
19
+ ], ({ signal }) => getDockerArtifactIntegrationDetails(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }
@@ -33,6 +33,8 @@ export type { GetDockerArtifactDeploymentsErrorResponse, GetDockerArtifactDeploy
33
33
  export { getDockerArtifactDeployments, useGetDockerArtifactDeploymentsQuery, } from './hooks/useGetDockerArtifactDeploymentsQuery';
34
34
  export type { GetDockerArtifactDetailsErrorResponse, GetDockerArtifactDetailsOkResponse, GetDockerArtifactDetailsProps, GetDockerArtifactDetailsQueryPathParams, GetDockerArtifactDetailsQueryQueryParams, } from './hooks/useGetDockerArtifactDetailsQuery';
35
35
  export { getDockerArtifactDetails, useGetDockerArtifactDetailsQuery, } from './hooks/useGetDockerArtifactDetailsQuery';
36
+ export type { GetDockerArtifactIntegrationDetailsErrorResponse, GetDockerArtifactIntegrationDetailsOkResponse, GetDockerArtifactIntegrationDetailsProps, GetDockerArtifactIntegrationDetailsQueryPathParams, GetDockerArtifactIntegrationDetailsQueryQueryParams, } from './hooks/useGetDockerArtifactIntegrationDetailsQuery';
37
+ export { getDockerArtifactIntegrationDetails, useGetDockerArtifactIntegrationDetailsQuery, } from './hooks/useGetDockerArtifactIntegrationDetailsQuery';
36
38
  export type { GetDockerArtifactLayersErrorResponse, GetDockerArtifactLayersOkResponse, GetDockerArtifactLayersProps, GetDockerArtifactLayersQueryPathParams, GetDockerArtifactLayersQueryQueryParams, } from './hooks/useGetDockerArtifactLayersQuery';
37
39
  export { getDockerArtifactLayers, useGetDockerArtifactLayersQuery, } from './hooks/useGetDockerArtifactLayersQuery';
38
40
  export type { GetDockerArtifactManifestErrorResponse, GetDockerArtifactManifestOkResponse, GetDockerArtifactManifestProps, GetDockerArtifactManifestQueryPathParams, GetDockerArtifactManifestQueryQueryParams, } from './hooks/useGetDockerArtifactManifestQuery';
@@ -60,6 +62,7 @@ export type { ArtifactVersionSummaryResponseResponse } from './responses/Artifac
60
62
  export type { BadRequestResponse } from './responses/BadRequestResponse';
61
63
  export type { ClientSetupDetailsResponseResponse } from './responses/ClientSetupDetailsResponseResponse';
62
64
  export type { DockerArtifactDeploymentsResponseResponse } from './responses/DockerArtifactDeploymentsResponseResponse';
65
+ export type { DockerArtifactDetailIntegrationResponseResponse } from './responses/DockerArtifactDetailIntegrationResponseResponse';
63
66
  export type { DockerArtifactDetailResponseResponse } from './responses/DockerArtifactDetailResponseResponse';
64
67
  export type { DockerArtifactManifestResponseResponse } from './responses/DockerArtifactManifestResponseResponse';
65
68
  export type { DockerLayersResponseResponse } from './responses/DockerLayersResponseResponse';
@@ -87,6 +90,7 @@ export type { ArtifactSummary } from './schemas/ArtifactSummary';
87
90
  export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
88
91
  export type { ArtifactVersionSummary } from './schemas/ArtifactVersionSummary';
89
92
  export type { AuthType } from './schemas/AuthType';
93
+ export type { BuildDetails } from './schemas/BuildDetails';
90
94
  export type { CleanupPolicy } from './schemas/CleanupPolicy';
91
95
  export type { ClientSetupDetails } from './schemas/ClientSetupDetails';
92
96
  export type { ClientSetupSection } from './schemas/ClientSetupSection';
@@ -94,9 +98,11 @@ export type { ClientSetupStep } from './schemas/ClientSetupStep';
94
98
  export type { ClientSetupStepType } from './schemas/ClientSetupStepType';
95
99
  export type { DeploymentArtifactDetails } from './schemas/DeploymentArtifactDetails';
96
100
  export type { DeploymentPipeline } from './schemas/DeploymentPipeline';
101
+ export type { DeploymentsDetails } from './schemas/DeploymentsDetails';
97
102
  export type { DeploymentsStats } from './schemas/DeploymentsStats';
98
103
  export type { DockerArtifactDeploymentsDetails } from './schemas/DockerArtifactDeploymentsDetails';
99
104
  export type { DockerArtifactDetail } from './schemas/DockerArtifactDetail';
105
+ export type { DockerArtifactIntegrationDetail } from './schemas/DockerArtifactIntegrationDetail';
100
106
  export type { DockerArtifactManifest } from './schemas/DockerArtifactManifest';
101
107
  export type { DockerLayerEntry } from './schemas/DockerLayerEntry';
102
108
  export type { DockerLayersSummary } from './schemas/DockerLayersSummary';
@@ -119,8 +125,10 @@ export type { RegistryConfig } from './schemas/RegistryConfig';
119
125
  export type { RegistryMetadata } from './schemas/RegistryMetadata';
120
126
  export type { RegistryRequest } from './schemas/RegistryRequest';
121
127
  export type { RegistryType } from './schemas/RegistryType';
128
+ export type { SbomDetails } from './schemas/SbomDetails';
122
129
  export type { Service } from './schemas/Service';
123
130
  export type { Status } from './schemas/Status';
131
+ export type { StoDetails } from './schemas/StoDetails';
124
132
  export type { TriggerDetails } from './schemas/TriggerDetails';
125
133
  export type { UpstreamConfig } from './schemas/UpstreamConfig';
126
134
  export type { UserPassword } from './schemas/UserPassword';
@@ -15,6 +15,7 @@ export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from '.
15
15
  export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
16
16
  export { getDockerArtifactDeployments, useGetDockerArtifactDeploymentsQuery, } from './hooks/useGetDockerArtifactDeploymentsQuery';
17
17
  export { getDockerArtifactDetails, useGetDockerArtifactDetailsQuery, } from './hooks/useGetDockerArtifactDetailsQuery';
18
+ export { getDockerArtifactIntegrationDetails, useGetDockerArtifactIntegrationDetailsQuery, } from './hooks/useGetDockerArtifactIntegrationDetailsQuery';
18
19
  export { getDockerArtifactLayers, useGetDockerArtifactLayersQuery, } from './hooks/useGetDockerArtifactLayersQuery';
19
20
  export { getDockerArtifactManifest, useGetDockerArtifactManifestQuery, } from './hooks/useGetDockerArtifactManifestQuery';
20
21
  export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from './hooks/useGetDockerArtifactManifestsQuery';
@@ -0,0 +1,6 @@
1
+ import type { DockerArtifactIntegrationDetail } from '../schemas/DockerArtifactIntegrationDetail';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface DockerArtifactDetailIntegrationResponseResponse {
4
+ data: DockerArtifactIntegrationDetail;
5
+ status: Status;
6
+ }
@@ -0,0 +1,5 @@
1
+ export interface BuildDetails {
2
+ executionId?: string;
3
+ pipelineDisplayName?: string;
4
+ pipelineIdentifier?: string;
5
+ }
@@ -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 {};
@@ -3,5 +3,6 @@
3
3
  */
4
4
  export interface DeploymentPipeline {
5
5
  displayName: string;
6
+ executionId: string;
6
7
  id: string;
7
8
  }
@@ -0,0 +1,5 @@
1
+ export interface DeploymentsDetails {
2
+ nonProdDeployment?: number;
3
+ prodDeployment?: number;
4
+ totalDeployment?: number;
5
+ }
@@ -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 {};
@@ -0,0 +1,13 @@
1
+ import type { BuildDetails } from '../schemas/BuildDetails';
2
+ import type { DeploymentsDetails } from '../schemas/DeploymentsDetails';
3
+ import type { SbomDetails } from '../schemas/SbomDetails';
4
+ import type { StoDetails } from '../schemas/StoDetails';
5
+ /**
6
+ * Docker Artifact Detail
7
+ */
8
+ export interface DockerArtifactIntegrationDetail {
9
+ buildDetails?: BuildDetails;
10
+ deploymentsDetails?: DeploymentsDetails;
11
+ sbomDetails?: SbomDetails;
12
+ stoDetails?: StoDetails;
13
+ }
@@ -0,0 +1,10 @@
1
+ export interface SbomDetails {
2
+ allowListViolations?: number;
3
+ avgScore?: string;
4
+ componentsCount?: number;
5
+ denyListViolations?: number;
6
+ maxScore?: string;
7
+ orchestrationId?: string;
8
+ orgId?: string;
9
+ projectId?: string;
10
+ }
@@ -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 {};
@@ -0,0 +1,11 @@
1
+ export interface StoDetails {
2
+ critical?: number;
3
+ executionId?: string;
4
+ high?: number;
5
+ ignored?: number;
6
+ info?: number;
7
+ lastScanned?: string;
8
+ low?: number;
9
+ medium?: number;
10
+ total?: number;
11
+ }
@@ -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 {};
@@ -1,5 +1,6 @@
1
1
  export interface UserPassword {
2
2
  secretIdentifier?: string;
3
3
  secretSpaceId?: number;
4
+ secretSpacePath?: string;
4
5
  userName: string;
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",