@harnessio/react-har-service-client 0.66.0 → 0.67.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,36 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListFilesResponseV3Response } from '../responses/ListFilesResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListRegistryFilesV3QueryPathParams {
7
+ registry_name: string;
8
+ }
9
+ export interface ListRegistryFilesV3QueryQueryParams {
10
+ account_identifier: string;
11
+ package_name?: string;
12
+ version?: string;
13
+ file_path?: string;
14
+ /**
15
+ * @format int64
16
+ * @default 0
17
+ */
18
+ page?: number;
19
+ /**
20
+ * @format int64
21
+ * @default 20
22
+ */
23
+ size?: number;
24
+ sort?: string;
25
+ search_term?: string;
26
+ }
27
+ export type ListRegistryFilesV3OkResponse = ResponseWithPagination<ListFilesResponseV3Response>;
28
+ export type ListRegistryFilesV3ErrorResponse = ErrorV3;
29
+ export interface ListRegistryFilesV3Props extends ListRegistryFilesV3QueryPathParams, Omit<FetcherOptions<ListRegistryFilesV3QueryQueryParams, unknown>, 'url'> {
30
+ queryParams: ListRegistryFilesV3QueryQueryParams;
31
+ }
32
+ export declare function listRegistryFilesV3(props: ListRegistryFilesV3Props): Promise<ListRegistryFilesV3OkResponse>;
33
+ /**
34
+ * List files belonging to a registry.
35
+ */
36
+ export declare function useListRegistryFilesV3Query(props: ListRegistryFilesV3Props, options?: Omit<UseQueryOptions<ListRegistryFilesV3OkResponse, ListRegistryFilesV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRegistryFilesV3OkResponse, ErrorV3>;
@@ -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 listRegistryFilesV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/internal/registries/${props.registry_name}/files`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List files belonging to a registry.
11
+ */
12
+ export function useListRegistryFilesV3Query(props, options) {
13
+ return useQuery(['ListRegistryFilesV3', props.registry_name, props.queryParams], ({ signal }) => listRegistryFilesV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -195,6 +195,8 @@ export type { ListRegistriesErrorResponse, ListRegistriesOkResponse, ListRegistr
195
195
  export { listRegistries, useListRegistriesQuery } from './hooks/useListRegistriesQuery';
196
196
  export type { ListRegistriesV3ErrorResponse, ListRegistriesV3OkResponse, ListRegistriesV3Props, ListRegistriesV3QueryQueryParams, } from './hooks/useListRegistriesV3Query';
197
197
  export { listRegistriesV3, useListRegistriesV3Query } from './hooks/useListRegistriesV3Query';
198
+ export type { ListRegistryFilesV3ErrorResponse, ListRegistryFilesV3OkResponse, ListRegistryFilesV3Props, ListRegistryFilesV3QueryPathParams, ListRegistryFilesV3QueryQueryParams, } from './hooks/useListRegistryFilesV3Query';
199
+ export { listRegistryFilesV3, useListRegistryFilesV3Query, } from './hooks/useListRegistryFilesV3Query';
198
200
  export type { ListReplicationRulesErrorResponse, ListReplicationRulesOkResponse, ListReplicationRulesProps, ListReplicationRulesQueryQueryParams, } from './hooks/useListReplicationRulesQuery';
199
201
  export { listReplicationRules, useListReplicationRulesQuery, } from './hooks/useListReplicationRulesQuery';
200
202
  export type { ListSpaceLabelValuesErrorResponse, ListSpaceLabelValuesOkResponse, ListSpaceLabelValuesProps, ListSpaceLabelValuesQueryPathParams, } from './hooks/useListSpaceLabelValuesQuery';
@@ -96,6 +96,7 @@ export { listPackagesV3, useListPackagesV3Query } from './hooks/useListPackagesV
96
96
  export { listPipelineBuildInfoDetailsV3, useListPipelineBuildInfoDetailsV3Query, } from './hooks/useListPipelineBuildInfoDetailsV3Query';
97
97
  export { listRegistries, useListRegistriesQuery } from './hooks/useListRegistriesQuery';
98
98
  export { listRegistriesV3, useListRegistriesV3Query } from './hooks/useListRegistriesV3Query';
99
+ export { listRegistryFilesV3, useListRegistryFilesV3Query, } from './hooks/useListRegistryFilesV3Query';
99
100
  export { listReplicationRules, useListReplicationRulesQuery, } from './hooks/useListReplicationRulesQuery';
100
101
  export { listSpaceLabelValues, useListSpaceLabelValuesQuery, } from './hooks/useListSpaceLabelValuesQuery';
101
102
  export { listSpaceLabels, useListSpaceLabelsQuery } from './hooks/useListSpaceLabelsQuery';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.66.0",
3
+ "version": "0.67.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",