@harnessio/react-har-service-client 0.9.0 → 0.10.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.
@@ -12,9 +12,25 @@ export interface GetArtifactFilesQueryPathParams {
12
12
  artifact: string;
13
13
  version: string;
14
14
  }
15
+ export interface GetArtifactFilesQueryQueryParams {
16
+ /**
17
+ * @format int64
18
+ * @default 1
19
+ */
20
+ page?: number;
21
+ /**
22
+ * @format int64
23
+ * @default 20
24
+ */
25
+ size?: number;
26
+ sort_order?: string;
27
+ sort_field?: string;
28
+ search_term?: string;
29
+ }
15
30
  export type GetArtifactFilesOkResponse = ResponseWithPagination<FileDetailResponseResponse>;
16
31
  export type GetArtifactFilesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
- export interface GetArtifactFilesProps extends GetArtifactFilesQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
32
+ export interface GetArtifactFilesProps extends GetArtifactFilesQueryPathParams, Omit<FetcherOptions<GetArtifactFilesQueryQueryParams, unknown>, 'url'> {
33
+ queryParams: GetArtifactFilesQueryQueryParams;
18
34
  }
19
35
  export declare function getArtifactFiles(props: GetArtifactFilesProps): Promise<GetArtifactFilesOkResponse>;
20
36
  /**
@@ -10,5 +10,5 @@ export function getArtifactFiles(props) {
10
10
  * Get Artifact files
11
11
  */
12
12
  export function useGetArtifactFilesQuery(props, options) {
13
- return useQuery(['GetArtifactFiles', props.registry_ref, props.artifact, props.version], ({ signal }) => getArtifactFiles(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['GetArtifactFiles', props.registry_ref, props.artifact, props.version, props.queryParams], ({ signal }) => getArtifactFiles(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -23,7 +23,7 @@ export type { GetArtifactDeploymentsErrorResponse, GetArtifactDeploymentsOkRespo
23
23
  export { getArtifactDeployments, useGetArtifactDeploymentsQuery, } from './hooks/useGetArtifactDeploymentsQuery';
24
24
  export type { GetArtifactDetailsErrorResponse, GetArtifactDetailsOkResponse, GetArtifactDetailsProps, GetArtifactDetailsQueryPathParams, GetArtifactDetailsQueryQueryParams, } from './hooks/useGetArtifactDetailsQuery';
25
25
  export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
26
- export type { GetArtifactFilesErrorResponse, GetArtifactFilesOkResponse, GetArtifactFilesProps, GetArtifactFilesQueryPathParams, } from './hooks/useGetArtifactFilesQuery';
26
+ export type { GetArtifactFilesErrorResponse, GetArtifactFilesOkResponse, GetArtifactFilesProps, GetArtifactFilesQueryPathParams, GetArtifactFilesQueryQueryParams, } from './hooks/useGetArtifactFilesQuery';
27
27
  export { getArtifactFiles, useGetArtifactFilesQuery } from './hooks/useGetArtifactFilesQuery';
28
28
  export type { GetArtifactStatsForRegistryErrorResponse, GetArtifactStatsForRegistryOkResponse, GetArtifactStatsForRegistryProps, GetArtifactStatsForRegistryQueryPathParams, GetArtifactStatsForRegistryQueryQueryParams, } from './hooks/useGetArtifactStatsForRegistryQuery';
29
29
  export { getArtifactStatsForRegistry, useGetArtifactStatsForRegistryQuery, } from './hooks/useGetArtifactStatsForRegistryQuery';
@@ -13,6 +13,10 @@ export interface ArtifactVersionMetadata {
13
13
  * @format int64
14
14
  */
15
15
  downloadsCount?: number;
16
+ /**
17
+ * @format int64
18
+ */
19
+ fileCount?: number;
16
20
  islatestVersion?: boolean;
17
21
  lastModified?: string;
18
22
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",