@harnessio/react-har-service-client 0.8.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.
- package/dist/har-service/src/services/hooks/useGetArtifactFilesQuery.d.ts +17 -1
- package/dist/har-service/src/services/hooks/useGetArtifactFilesQuery.js +1 -1
- package/dist/har-service/src/services/index.d.ts +1 -1
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +4 -0
- package/dist/har-service/src/services/schemas/Webhook.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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<
|
|
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';
|