@harnessio/react-har-service-client 0.2.0 → 0.3.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.
@@ -1,5 +1,5 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ArtifactDetailResponseResponse } from '../responses/ArtifactDetailResponseResponse';
2
+ import type { FileDetailResponseResponse } from '../responses/FileDetailResponseResponse';
3
3
  import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
@@ -12,7 +12,7 @@ export interface GetArtifactFilesQueryPathParams {
12
12
  artifact: string;
13
13
  version: string;
14
14
  }
15
- export type GetArtifactFilesOkResponse = ResponseWithPagination<ArtifactDetailResponseResponse>;
15
+ export type GetArtifactFilesOkResponse = ResponseWithPagination<FileDetailResponseResponse>;
16
16
  export type GetArtifactFilesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
17
  export interface GetArtifactFilesProps extends GetArtifactFilesQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
18
18
  }
@@ -72,6 +72,7 @@ export type { DockerArtifactDetailResponseResponse } from './responses/DockerArt
72
72
  export type { DockerArtifactManifestResponseResponse } from './responses/DockerArtifactManifestResponseResponse';
73
73
  export type { DockerLayersResponseResponse } from './responses/DockerLayersResponseResponse';
74
74
  export type { DockerManifestsResponseResponse } from './responses/DockerManifestsResponseResponse';
75
+ export type { FileDetailResponseResponse } from './responses/FileDetailResponseResponse';
75
76
  export type { HelmArtifactDetailResponseResponse } from './responses/HelmArtifactDetailResponseResponse';
76
77
  export type { HelmArtifactManifestResponseResponse } from './responses/HelmArtifactManifestResponseResponse';
77
78
  export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
@@ -118,6 +119,7 @@ export type { DockerManifestDetails } from './schemas/DockerManifestDetails';
118
119
  export type { DockerManifests } from './schemas/DockerManifests';
119
120
  export type { EnvironmentType } from './schemas/EnvironmentType';
120
121
  export type { Error } from './schemas/Error';
122
+ export type { FileDetail } from './schemas/FileDetail';
121
123
  export type { GenericArtifactDetailConfig } from './schemas/GenericArtifactDetailConfig';
122
124
  export type { HelmArtifactDetail } from './schemas/HelmArtifactDetail';
123
125
  export type { HelmArtifactDetailConfig } from './schemas/HelmArtifactDetailConfig';
@@ -0,0 +1,32 @@
1
+ import type { FileDetail } from '../schemas/FileDetail';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface FileDetailResponseResponse {
4
+ /**
5
+ * A list of Harness Artifact Files
6
+ */
7
+ files: FileDetail[];
8
+ /**
9
+ * The total number of items
10
+ * @format int64
11
+ * @example 1
12
+ */
13
+ itemCount?: number;
14
+ /**
15
+ * The total number of pages
16
+ * @format int64
17
+ * @example 100
18
+ */
19
+ pageCount?: number;
20
+ /**
21
+ * The current page
22
+ * @format int64
23
+ * @example 0
24
+ */
25
+ pageIndex?: number;
26
+ /**
27
+ * The number of items per page
28
+ * @example 1
29
+ */
30
+ pageSize?: number;
31
+ status: Status;
32
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * File Detail
3
+ */
4
+ export interface FileDetail {
5
+ checksums: string[];
6
+ createdAt: string;
7
+ downloadCommand: string;
8
+ name: string;
9
+ size: 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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",