@harnessio/react-har-service-client 0.65.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.
- package/dist/har-service/src/services/hooks/useCopyMutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useDeleteArtifactVersionMutation.d.ts +1 -4
- package/dist/har-service/src/services/hooks/useDeleteQuarantineFilePathMutation.d.ts +1 -4
- package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.d.ts +1 -4
- package/dist/har-service/src/services/hooks/useGetArtifactFileQuery.d.ts +1 -4
- package/dist/har-service/src/services/hooks/useGetArtifactFilesQuery.d.ts +1 -4
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +1 -4
- package/dist/har-service/src/services/hooks/useGetMetadataQuery.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useListRegistryFilesV3Query.d.ts +36 -0
- package/dist/har-service/src/services/hooks/useListRegistryFilesV3Query.js +14 -0
- package/dist/har-service/src/services/index.d.ts +3 -0
- package/dist/har-service/src/services/index.js +1 -0
- package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +2 -1
- package/dist/har-service/src/services/schemas/DebianArtifactDetailConfig.d.ts +8 -0
- package/dist/har-service/src/services/schemas/DebianArtifactDetailConfig.js +4 -0
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ export interface CopyMutationQueryParams {
|
|
|
18
18
|
target_project_identifier?: string;
|
|
19
19
|
target_registry_identifier: string;
|
|
20
20
|
artifact_type?: 'dataset' | 'model';
|
|
21
|
-
filters?: string;
|
|
21
|
+
filters?: string[];
|
|
22
22
|
}
|
|
23
23
|
export type CopyOkResponse = ResponseWithPagination<CopyResponseResponse>;
|
|
24
24
|
export type CopyErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
@@ -14,10 +14,7 @@ export interface DeleteArtifactVersionMutationPathParams {
|
|
|
14
14
|
}
|
|
15
15
|
export interface DeleteArtifactVersionMutationQueryParams {
|
|
16
16
|
artifact_type?: 'dataset' | 'model';
|
|
17
|
-
|
|
18
|
-
* @example "architecture:amd64,distribution:ubuntu"
|
|
19
|
-
*/
|
|
20
|
-
filters?: string;
|
|
17
|
+
filters?: string[];
|
|
21
18
|
}
|
|
22
19
|
export type DeleteArtifactVersionOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
23
20
|
export type DeleteArtifactVersionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
@@ -14,10 +14,7 @@ export interface DeleteQuarantineFilePathMutationQueryParams {
|
|
|
14
14
|
version?: string;
|
|
15
15
|
file_path?: string;
|
|
16
16
|
artifact_type?: 'dataset' | 'model';
|
|
17
|
-
|
|
18
|
-
* @example "architecture:amd64,distribution:ubuntu"
|
|
19
|
-
*/
|
|
20
|
-
filters?: string;
|
|
17
|
+
filters?: string[];
|
|
21
18
|
}
|
|
22
19
|
export type DeleteQuarantineFilePathOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
23
20
|
export type DeleteQuarantineFilePathErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
|
|
@@ -15,10 +15,7 @@ export interface GetArtifactDetailsQueryPathParams {
|
|
|
15
15
|
export interface GetArtifactDetailsQueryQueryParams {
|
|
16
16
|
artifact_type?: 'dataset' | 'model';
|
|
17
17
|
childVersion?: string;
|
|
18
|
-
|
|
19
|
-
* @example "architecture:amd64,distribution:ubuntu"
|
|
20
|
-
*/
|
|
21
|
-
filters?: string;
|
|
18
|
+
filters?: string[];
|
|
22
19
|
}
|
|
23
20
|
export type GetArtifactDetailsOkResponse = ResponseWithPagination<ArtifactDetailResponseResponse>;
|
|
24
21
|
export type GetArtifactDetailsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
@@ -15,10 +15,7 @@ export interface GetArtifactFileQueryPathParams {
|
|
|
15
15
|
}
|
|
16
16
|
export interface GetArtifactFileQueryQueryParams {
|
|
17
17
|
artifact_type?: 'dataset' | 'model';
|
|
18
|
-
|
|
19
|
-
* @example "architecture:amd64,distribution:ubuntu"
|
|
20
|
-
*/
|
|
21
|
-
filters?: string;
|
|
18
|
+
filters?: string[];
|
|
22
19
|
}
|
|
23
20
|
export type GetArtifactFileOkResponse = ResponseWithPagination<ArtifactFileResponseResponse>;
|
|
24
21
|
export type GetArtifactFileErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
@@ -27,10 +27,7 @@ export interface GetArtifactFilesQueryQueryParams {
|
|
|
27
27
|
sort_order?: string;
|
|
28
28
|
sort_field?: string;
|
|
29
29
|
search_term?: string;
|
|
30
|
-
|
|
31
|
-
* @example "architecture:amd64,distribution:ubuntu"
|
|
32
|
-
*/
|
|
33
|
-
filters?: string;
|
|
30
|
+
filters?: string[];
|
|
34
31
|
}
|
|
35
32
|
export type GetArtifactFilesOkResponse = ResponseWithPagination<FileDetailResponseResponse>;
|
|
36
33
|
export type GetArtifactFilesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
@@ -15,10 +15,7 @@ export interface GetArtifactVersionSummaryQueryPathParams {
|
|
|
15
15
|
export interface GetArtifactVersionSummaryQueryQueryParams {
|
|
16
16
|
artifact_type?: 'dataset' | 'model';
|
|
17
17
|
digest?: string;
|
|
18
|
-
|
|
19
|
-
* @example "architecture:amd64,distribution:ubuntu"
|
|
20
|
-
*/
|
|
21
|
-
filters?: string;
|
|
18
|
+
filters?: string[];
|
|
22
19
|
}
|
|
23
20
|
export type GetArtifactVersionSummaryOkResponse = ResponseWithPagination<ArtifactVersionSummaryResponseResponse>;
|
|
24
21
|
export type GetArtifactVersionSummaryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
@@ -13,7 +13,7 @@ export interface GetMetadataQueryQueryParams {
|
|
|
13
13
|
path?: string;
|
|
14
14
|
package?: string;
|
|
15
15
|
version?: string;
|
|
16
|
-
filters?: string;
|
|
16
|
+
filters?: string[];
|
|
17
17
|
}
|
|
18
18
|
export type GetMetadataOkResponse = ResponseWithPagination<MetadataResponseResponse>;
|
|
19
19
|
export type GetMetadataErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
@@ -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';
|
|
@@ -439,6 +441,7 @@ export type { CopyTargetRefV3 } from './schemas/CopyTargetRefV3';
|
|
|
439
441
|
export type { CreateBulkDownloadRequestResponseOutput } from './schemas/CreateBulkDownloadRequestResponseOutput';
|
|
440
442
|
export type { CreatedAtMsV3 } from './schemas/CreatedAtMsV3';
|
|
441
443
|
export type { DartArtifactDetailConfig } from './schemas/DartArtifactDetailConfig';
|
|
444
|
+
export type { DebianArtifactDetailConfig } from './schemas/DebianArtifactDetailConfig';
|
|
442
445
|
export type { DeletedAtMsV3 } from './schemas/DeletedAtMsV3';
|
|
443
446
|
export type { DeploymentDetails } from './schemas/DeploymentDetails';
|
|
444
447
|
export type { DeploymentMetadata } from './schemas/DeploymentMetadata';
|
|
@@ -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';
|
|
@@ -14,13 +14,14 @@ import type { DartArtifactDetailConfig } from '../schemas/DartArtifactDetailConf
|
|
|
14
14
|
import type { ComposerArtifactDetailConfig } from '../schemas/ComposerArtifactDetailConfig';
|
|
15
15
|
import type { SwiftArtifactDetailConfig } from '../schemas/SwiftArtifactDetailConfig';
|
|
16
16
|
import type { PuppetArtifactDetailConfig } from '../schemas/PuppetArtifactDetailConfig';
|
|
17
|
+
import type { DebianArtifactDetailConfig } from '../schemas/DebianArtifactDetailConfig';
|
|
17
18
|
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
18
19
|
import type { UserInfo } from '../schemas/UserInfo';
|
|
19
20
|
import type { PackageType } from '../schemas/PackageType';
|
|
20
21
|
/**
|
|
21
22
|
* Artifact Detail
|
|
22
23
|
*/
|
|
23
|
-
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig) & {
|
|
24
|
+
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig | DebianArtifactDetailConfig) & {
|
|
24
25
|
artifactKey?: {
|
|
25
26
|
[key: string]: string;
|
|
26
27
|
};
|