@harnessio/react-har-service-client 0.0.2 → 0.0.4
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/useGetAllArtifactVersionsQuery.d.ts +28 -0
- package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactManifestQuery.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetArtifactManifestQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.d.ts +25 -0
- package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactTagSummaryQuery.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetArtifactTagSummaryQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.js +14 -0
- package/dist/har-service/src/services/index.d.ts +24 -4
- package/dist/har-service/src/services/index.js +6 -2
- package/dist/har-service/src/services/responses/ArtifactDetailResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ArtifactDetailResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ArtifactManifestResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ArtifactManifestResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ArtifactSummaryResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ArtifactSummaryResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ArtifactVersionSummaryResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ArtifactVersionSummaryResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/TagSummaryResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/TagSummaryResponseResponse.js +1 -0
- package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +18 -0
- package/dist/har-service/src/services/schemas/ArtifactDetail.js +1 -0
- package/dist/har-service/src/services/schemas/ArtifactManifest.d.ts +6 -0
- package/dist/har-service/src/services/schemas/ArtifactManifest.js +4 -0
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +2 -0
- package/dist/har-service/src/services/schemas/ArtifactMetadata.js +0 -3
- package/dist/har-service/src/services/schemas/ArtifactSummary.d.ts +12 -0
- package/dist/har-service/src/services/schemas/ArtifactSummary.js +1 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +3 -3
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.js +0 -3
- package/dist/har-service/src/services/schemas/ArtifactVersionSummary.d.ts +10 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionSummary.js +1 -0
- package/dist/har-service/src/services/schemas/LayerEntry.d.ts +7 -0
- package/dist/har-service/src/services/schemas/LayerEntry.js +4 -0
- package/dist/har-service/src/services/schemas/ManifestDetails.d.ts +12 -0
- package/dist/har-service/src/services/schemas/ManifestDetails.js +1 -0
- package/dist/har-service/src/services/schemas/RepositoryMetadata.d.ts +0 -1
- package/dist/har-service/src/services/schemas/TagSummary.d.ts +10 -0
- package/dist/har-service/src/services/schemas/TagSummary.js +1 -0
- package/package.json +1 -1
- package/dist/har-service/src/services/hooks/useGetAllArtifactsForRepositoryQuery.d.ts +0 -32
- package/dist/har-service/src/services/hooks/useGetAllArtifactsForRepositoryQuery.js +0 -14
- package/dist/har-service/src/services/hooks/useGetAllVersionsForArtifactQuery.d.ts +0 -27
- package/dist/har-service/src/services/hooks/useGetAllVersionsForArtifactQuery.js +0 -14
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListArtifactVersionResponseResponse } from '../responses/ListArtifactVersionResponseResponse';
|
|
3
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
4
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
5
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface GetAllArtifactVersionsQueryQueryParams {
|
|
10
|
+
repokey?: string;
|
|
11
|
+
artifact: string;
|
|
12
|
+
page?: number;
|
|
13
|
+
size?: number;
|
|
14
|
+
sort?: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface GetAllArtifactVersionsQueryHeaderParams {
|
|
17
|
+
'Harness-Account'?: string;
|
|
18
|
+
}
|
|
19
|
+
export type GetAllArtifactVersionsOkResponse = ResponseWithPagination<ListArtifactVersionResponseResponse>;
|
|
20
|
+
export type GetAllArtifactVersionsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
21
|
+
export interface GetAllArtifactVersionsProps extends Omit<FetcherOptions<GetAllArtifactVersionsQueryQueryParams, unknown, GetAllArtifactVersionsQueryHeaderParams>, 'url'> {
|
|
22
|
+
queryParams: GetAllArtifactVersionsQueryQueryParams;
|
|
23
|
+
}
|
|
24
|
+
export declare function getAllArtifactVersions(props: GetAllArtifactVersionsProps): Promise<GetAllArtifactVersionsOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Lists all the Artifact Versions.
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetAllArtifactVersionsQuery(props: GetAllArtifactVersionsProps, options?: Omit<UseQueryOptions<GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllArtifactVersionsOkResponse, import("..").Error>;
|
|
@@ -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 getAllArtifactVersions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/artifacts/versions`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists all the Artifact Versions.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAllArtifactVersionsQuery(props, options) {
|
|
13
|
+
return useQuery(['GetAllArtifactVersions', props.queryParams], ({ signal }) => getAllArtifactVersions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactDetailResponseResponse } from '../responses/ArtifactDetailResponseResponse';
|
|
3
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
4
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
5
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface GetArtifactDetailsQueryQueryParams {
|
|
10
|
+
repokey?: string;
|
|
11
|
+
artifact: string;
|
|
12
|
+
version: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetArtifactDetailsQueryHeaderParams {
|
|
15
|
+
'Harness-Account'?: string;
|
|
16
|
+
}
|
|
17
|
+
export type GetArtifactDetailsOkResponse = ResponseWithPagination<ArtifactDetailResponseResponse>;
|
|
18
|
+
export type GetArtifactDetailsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
+
export interface GetArtifactDetailsProps extends Omit<FetcherOptions<GetArtifactDetailsQueryQueryParams, unknown, GetArtifactDetailsQueryHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: GetArtifactDetailsQueryQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function getArtifactDetails(props: GetArtifactDetailsProps): Promise<GetArtifactDetailsOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Get Artifact Details
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetArtifactDetailsQuery(props: GetArtifactDetailsProps, options?: Omit<UseQueryOptions<GetArtifactDetailsOkResponse, GetArtifactDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactDetailsOkResponse, import("..").Error>;
|
|
@@ -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 getArtifactDetails(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/artifacts/versions/detail`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Artifact Details
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactDetailsQuery(props, options) {
|
|
13
|
+
return useQuery(['GetArtifactDetails', props.queryParams], ({ signal }) => getArtifactDetails(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactManifestResponseResponse } from '../responses/ArtifactManifestResponseResponse';
|
|
3
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
4
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
5
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface GetArtifactManifestQueryQueryParams {
|
|
10
|
+
repokey?: string;
|
|
11
|
+
artifact: string;
|
|
12
|
+
version: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetArtifactManifestQueryHeaderParams {
|
|
15
|
+
'Harness-Account'?: string;
|
|
16
|
+
}
|
|
17
|
+
export type GetArtifactManifestOkResponse = ResponseWithPagination<ArtifactManifestResponseResponse>;
|
|
18
|
+
export type GetArtifactManifestErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
+
export interface GetArtifactManifestProps extends Omit<FetcherOptions<GetArtifactManifestQueryQueryParams, unknown, GetArtifactManifestQueryHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: GetArtifactManifestQueryQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function getArtifactManifest(props: GetArtifactManifestProps): Promise<GetArtifactManifestOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Get Artifact Manifest
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetArtifactManifestQuery(props: GetArtifactManifestProps, options?: Omit<UseQueryOptions<GetArtifactManifestOkResponse, GetArtifactManifestErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactManifestOkResponse, import("..").Error>;
|
|
@@ -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 getArtifactManifest(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/artifacts/versions/manifest`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Artifact Manifest
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactManifestQuery(props, options) {
|
|
13
|
+
return useQuery(['GetArtifactManifest', props.queryParams], ({ signal }) => getArtifactManifest(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactSummaryResponseResponse } from '../responses/ArtifactSummaryResponseResponse';
|
|
3
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
4
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
5
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface GetArtifactSummaryQueryQueryParams {
|
|
10
|
+
repokey?: string;
|
|
11
|
+
artifact: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetArtifactSummaryQueryHeaderParams {
|
|
14
|
+
'Harness-Account'?: string;
|
|
15
|
+
}
|
|
16
|
+
export type GetArtifactSummaryOkResponse = ResponseWithPagination<ArtifactSummaryResponseResponse>;
|
|
17
|
+
export type GetArtifactSummaryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
18
|
+
export interface GetArtifactSummaryProps extends Omit<FetcherOptions<GetArtifactSummaryQueryQueryParams, unknown, GetArtifactSummaryQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetArtifactSummaryQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getArtifactSummary(props: GetArtifactSummaryProps): Promise<GetArtifactSummaryOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Get Artifact Summary.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetArtifactSummaryQuery(props: GetArtifactSummaryProps, options?: Omit<UseQueryOptions<GetArtifactSummaryOkResponse, GetArtifactSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactSummaryOkResponse, import("..").Error>;
|
|
@@ -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 getArtifactSummary(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/artifacts/summary`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Artifact Summary.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactSummaryQuery(props, options) {
|
|
13
|
+
return useQuery(['GetArtifactSummary', props.queryParams], ({ signal }) => getArtifactSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TagSummaryResponseResponse } from '../responses/TagSummaryResponseResponse';
|
|
3
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
4
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
5
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface GetArtifactTagSummaryQueryQueryParams {
|
|
10
|
+
repokey?: string;
|
|
11
|
+
artifact: string;
|
|
12
|
+
version: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetArtifactTagSummaryQueryHeaderParams {
|
|
15
|
+
'Harness-Account'?: string;
|
|
16
|
+
}
|
|
17
|
+
export type GetArtifactTagSummaryOkResponse = ResponseWithPagination<TagSummaryResponseResponse>;
|
|
18
|
+
export type GetArtifactTagSummaryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
+
export interface GetArtifactTagSummaryProps extends Omit<FetcherOptions<GetArtifactTagSummaryQueryQueryParams, unknown, GetArtifactTagSummaryQueryHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: GetArtifactTagSummaryQueryQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function getArtifactTagSummary(props: GetArtifactTagSummaryProps): Promise<GetArtifactTagSummaryOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Get Artifact Tag Summary
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetArtifactTagSummaryQuery(props: GetArtifactTagSummaryProps, options?: Omit<UseQueryOptions<GetArtifactTagSummaryOkResponse, GetArtifactTagSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactTagSummaryOkResponse, import("..").Error>;
|
|
@@ -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 getArtifactTagSummary(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/artifacts/versions/tagsummary`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Artifact Tag Summary
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactTagSummaryQuery(props, options) {
|
|
13
|
+
return useQuery(['GetArtifactTagSummary', props.queryParams], ({ signal }) => getArtifactTagSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactVersionSummaryResponseResponse } from '../responses/ArtifactVersionSummaryResponseResponse';
|
|
3
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
4
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
5
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface GetArtifactVersionSummaryQueryQueryParams {
|
|
10
|
+
repokey?: string;
|
|
11
|
+
artifact: string;
|
|
12
|
+
version: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetArtifactVersionSummaryQueryHeaderParams {
|
|
15
|
+
'Harness-Account'?: string;
|
|
16
|
+
}
|
|
17
|
+
export type GetArtifactVersionSummaryOkResponse = ResponseWithPagination<ArtifactVersionSummaryResponseResponse>;
|
|
18
|
+
export type GetArtifactVersionSummaryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
+
export interface GetArtifactVersionSummaryProps extends Omit<FetcherOptions<GetArtifactVersionSummaryQueryQueryParams, unknown, GetArtifactVersionSummaryQueryHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: GetArtifactVersionSummaryQueryQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function getArtifactVersionSummary(props: GetArtifactVersionSummaryProps): Promise<GetArtifactVersionSummaryOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Get Artifact Version Summary.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetArtifactVersionSummaryQuery(props: GetArtifactVersionSummaryProps, options?: Omit<UseQueryOptions<GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactVersionSummaryOkResponse, import("..").Error>;
|
|
@@ -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 getArtifactVersionSummary(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/artifacts/versions/summary`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Artifact Version Summary.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactVersionSummaryQuery(props, options) {
|
|
13
|
+
return useQuery(['GetArtifactVersionSummary', props.queryParams], ({ signal }) => getArtifactVersionSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -7,16 +7,24 @@ export type { DeleteRepositoryErrorResponse, DeleteRepositoryMutationPathParams,
|
|
|
7
7
|
export { deleteRepository, useDeleteRepositoryMutation } from './hooks/useDeleteRepositoryMutation';
|
|
8
8
|
export type { DeleteUpstreamProxyErrorResponse, DeleteUpstreamProxyMutationPathParams, DeleteUpstreamProxyMutationQueryParams, DeleteUpstreamProxyOkResponse, DeleteUpstreamProxyProps, } from './hooks/useDeleteUpstreamProxyMutation';
|
|
9
9
|
export { deleteUpstreamProxy, useDeleteUpstreamProxyMutation, } from './hooks/useDeleteUpstreamProxyMutation';
|
|
10
|
-
export type {
|
|
11
|
-
export {
|
|
10
|
+
export type { GetAllArtifactVersionsErrorResponse, GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsProps, GetAllArtifactVersionsQueryQueryParams, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
11
|
+
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
12
12
|
export type { GetAllArtifactsErrorResponse, GetAllArtifactsOkResponse, GetAllArtifactsProps, GetAllArtifactsQueryQueryParams, } from './hooks/useGetAllArtifactsQuery';
|
|
13
13
|
export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
|
|
14
14
|
export type { GetAllRepositoriesErrorResponse, GetAllRepositoriesOkResponse, GetAllRepositoriesProps, GetAllRepositoriesQueryQueryParams, } from './hooks/useGetAllRepositoriesQuery';
|
|
15
15
|
export { getAllRepositories, useGetAllRepositoriesQuery } from './hooks/useGetAllRepositoriesQuery';
|
|
16
16
|
export type { GetAllUpstreamProxiesErrorResponse, GetAllUpstreamProxiesOkResponse, GetAllUpstreamProxiesProps, GetAllUpstreamProxiesQueryQueryParams, } from './hooks/useGetAllUpstreamProxiesQuery';
|
|
17
17
|
export { getAllUpstreamProxies, useGetAllUpstreamProxiesQuery, } from './hooks/useGetAllUpstreamProxiesQuery';
|
|
18
|
-
export type {
|
|
19
|
-
export {
|
|
18
|
+
export type { GetArtifactDetailsErrorResponse, GetArtifactDetailsOkResponse, GetArtifactDetailsProps, GetArtifactDetailsQueryQueryParams, } from './hooks/useGetArtifactDetailsQuery';
|
|
19
|
+
export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
|
|
20
|
+
export type { GetArtifactManifestErrorResponse, GetArtifactManifestOkResponse, GetArtifactManifestProps, GetArtifactManifestQueryQueryParams, } from './hooks/useGetArtifactManifestQuery';
|
|
21
|
+
export { getArtifactManifest, useGetArtifactManifestQuery, } from './hooks/useGetArtifactManifestQuery';
|
|
22
|
+
export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, GetArtifactSummaryProps, GetArtifactSummaryQueryQueryParams, } from './hooks/useGetArtifactSummaryQuery';
|
|
23
|
+
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
24
|
+
export type { GetArtifactTagSummaryErrorResponse, GetArtifactTagSummaryOkResponse, GetArtifactTagSummaryProps, GetArtifactTagSummaryQueryQueryParams, } from './hooks/useGetArtifactTagSummaryQuery';
|
|
25
|
+
export { getArtifactTagSummary, useGetArtifactTagSummaryQuery, } from './hooks/useGetArtifactTagSummaryQuery';
|
|
26
|
+
export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryQueryParams, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
27
|
+
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
20
28
|
export type { GetRepositoryErrorResponse, GetRepositoryOkResponse, GetRepositoryProps, GetRepositoryQueryPathParams, GetRepositoryQueryQueryParams, } from './hooks/useGetRepositoryQuery';
|
|
21
29
|
export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
|
|
22
30
|
export type { GetUpstreamProxyErrorResponse, GetUpstreamProxyOkResponse, GetUpstreamProxyProps, GetUpstreamProxyQueryPathParams, GetUpstreamProxyQueryQueryParams, } from './hooks/useGetUpstreamProxyQuery';
|
|
@@ -27,6 +35,10 @@ export type { ModifyUpstreamProxyErrorResponse, ModifyUpstreamProxyMutationPathP
|
|
|
27
35
|
export { modifyUpstreamProxy, useModifyUpstreamProxyMutation, } from './hooks/useModifyUpstreamProxyMutation';
|
|
28
36
|
export type { RepositoryRequestRequestBody } from './requestBodies/RepositoryRequestRequestBody';
|
|
29
37
|
export type { UpstreamProxyRequestRequestBody } from './requestBodies/UpstreamProxyRequestRequestBody';
|
|
38
|
+
export type { ArtifactDetailResponseResponse } from './responses/ArtifactDetailResponseResponse';
|
|
39
|
+
export type { ArtifactManifestResponseResponse } from './responses/ArtifactManifestResponseResponse';
|
|
40
|
+
export type { ArtifactSummaryResponseResponse } from './responses/ArtifactSummaryResponseResponse';
|
|
41
|
+
export type { ArtifactVersionSummaryResponseResponse } from './responses/ArtifactVersionSummaryResponseResponse';
|
|
30
42
|
export type { BadRequestResponse } from './responses/BadRequestResponse';
|
|
31
43
|
export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
|
|
32
44
|
export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
|
|
@@ -36,19 +48,26 @@ export type { ListUpstreamProxyResponseResponse } from './responses/ListUpstream
|
|
|
36
48
|
export type { NotFoundResponse } from './responses/NotFoundResponse';
|
|
37
49
|
export type { RepositoryResponseResponse } from './responses/RepositoryResponseResponse';
|
|
38
50
|
export type { SuccessResponse } from './responses/SuccessResponse';
|
|
51
|
+
export type { TagSummaryResponseResponse } from './responses/TagSummaryResponseResponse';
|
|
39
52
|
export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
|
|
40
53
|
export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
|
|
41
54
|
export type { UpstreamProxyResponseResponse } from './responses/UpstreamProxyResponseResponse';
|
|
42
55
|
export type { Anonymous } from './schemas/Anonymous';
|
|
56
|
+
export type { ArtifactDetail } from './schemas/ArtifactDetail';
|
|
57
|
+
export type { ArtifactManifest } from './schemas/ArtifactManifest';
|
|
43
58
|
export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
|
|
59
|
+
export type { ArtifactSummary } from './schemas/ArtifactSummary';
|
|
44
60
|
export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
|
|
61
|
+
export type { ArtifactVersionSummary } from './schemas/ArtifactVersionSummary';
|
|
45
62
|
export type { AuthType } from './schemas/AuthType';
|
|
46
63
|
export type { Error } from './schemas/Error';
|
|
47
64
|
export type { Label } from './schemas/Label';
|
|
65
|
+
export type { LayerEntry } from './schemas/LayerEntry';
|
|
48
66
|
export type { ListArtifact } from './schemas/ListArtifact';
|
|
49
67
|
export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
|
|
50
68
|
export type { ListRepository } from './schemas/ListRepository';
|
|
51
69
|
export type { ListUpstreamProxy } from './schemas/ListUpstreamProxy';
|
|
70
|
+
export type { ManifestDetails } from './schemas/ManifestDetails';
|
|
52
71
|
export type { PackageType } from './schemas/PackageType';
|
|
53
72
|
export type { Repository } from './schemas/Repository';
|
|
54
73
|
export type { RepositoryCleanupPolicy } from './schemas/RepositoryCleanupPolicy';
|
|
@@ -56,6 +75,7 @@ export type { RepositoryConfig } from './schemas/RepositoryConfig';
|
|
|
56
75
|
export type { RepositoryMetadata } from './schemas/RepositoryMetadata';
|
|
57
76
|
export type { RepositoryRequest } from './schemas/RepositoryRequest';
|
|
58
77
|
export type { Status } from './schemas/Status';
|
|
78
|
+
export type { TagSummary } from './schemas/TagSummary';
|
|
59
79
|
export type { Type } from './schemas/Type';
|
|
60
80
|
export type { UpstreamProxy } from './schemas/UpstreamProxy';
|
|
61
81
|
export type { UpstreamProxyConfig } from './schemas/UpstreamProxyConfig';
|
|
@@ -2,11 +2,15 @@ export { createRepository, useCreateRepositoryMutation } from './hooks/useCreate
|
|
|
2
2
|
export { createUpstreamProxy, useCreateUpstreamProxyMutation, } from './hooks/useCreateUpstreamProxyMutation';
|
|
3
3
|
export { deleteRepository, useDeleteRepositoryMutation } from './hooks/useDeleteRepositoryMutation';
|
|
4
4
|
export { deleteUpstreamProxy, useDeleteUpstreamProxyMutation, } from './hooks/useDeleteUpstreamProxyMutation';
|
|
5
|
-
export {
|
|
5
|
+
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
6
6
|
export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
|
|
7
7
|
export { getAllRepositories, useGetAllRepositoriesQuery } from './hooks/useGetAllRepositoriesQuery';
|
|
8
8
|
export { getAllUpstreamProxies, useGetAllUpstreamProxiesQuery, } from './hooks/useGetAllUpstreamProxiesQuery';
|
|
9
|
-
export {
|
|
9
|
+
export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
|
|
10
|
+
export { getArtifactManifest, useGetArtifactManifestQuery, } from './hooks/useGetArtifactManifestQuery';
|
|
11
|
+
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
12
|
+
export { getArtifactTagSummary, useGetArtifactTagSummaryQuery, } from './hooks/useGetArtifactTagSummaryQuery';
|
|
13
|
+
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
10
14
|
export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
|
|
11
15
|
export { getUpstreamProxy, useGetUpstreamProxyQuery } from './hooks/useGetUpstreamProxyQuery';
|
|
12
16
|
export { modifyRepository, useModifyRepositoryMutation } from './hooks/useModifyRepositoryMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PackageType } from '../schemas/PackageType';
|
|
2
|
+
/**
|
|
3
|
+
* Harness Artifact Detail
|
|
4
|
+
*/
|
|
5
|
+
export interface ArtifactDetail {
|
|
6
|
+
createdAt?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
downloadsCount?: number;
|
|
9
|
+
imageName: string;
|
|
10
|
+
isLatestVersion?: boolean;
|
|
11
|
+
modifiedAt?: string;
|
|
12
|
+
packageType: PackageType;
|
|
13
|
+
pullCommand?: string;
|
|
14
|
+
repoPath: string;
|
|
15
|
+
size?: string;
|
|
16
|
+
url: string;
|
|
17
|
+
version: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PackageType } from '../schemas/PackageType';
|
|
1
2
|
/**
|
|
2
3
|
* Artifact Metadata
|
|
3
4
|
*/
|
|
@@ -6,6 +7,7 @@ export interface ArtifactMetadata {
|
|
|
6
7
|
lastModified?: string;
|
|
7
8
|
latestVersion: string;
|
|
8
9
|
name: string;
|
|
10
|
+
packageType?: PackageType;
|
|
9
11
|
repoKey: string;
|
|
10
12
|
tags?: string[];
|
|
11
13
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PackageType } from '../schemas/PackageType';
|
|
2
|
+
/**
|
|
3
|
+
* Harness Artifact Summary
|
|
4
|
+
*/
|
|
5
|
+
export interface ArtifactSummary {
|
|
6
|
+
createdAt?: string;
|
|
7
|
+
downloadsCount?: number;
|
|
8
|
+
imageName: string;
|
|
9
|
+
modifiedAt?: string;
|
|
10
|
+
packageType: PackageType;
|
|
11
|
+
tags?: string[];
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import type { PackageType } from '../schemas/PackageType';
|
|
1
2
|
/**
|
|
2
3
|
* Artifact Version Metadata
|
|
3
4
|
*/
|
|
4
5
|
export interface ArtifactVersionMetadata {
|
|
5
6
|
digestCount?: number;
|
|
6
7
|
downloadsCount?: number;
|
|
8
|
+
islatestVersion?: boolean;
|
|
7
9
|
lastModified?: string;
|
|
8
|
-
latestVersion: string;
|
|
9
10
|
name: string;
|
|
11
|
+
packageType?: PackageType;
|
|
10
12
|
pullCommand?: string;
|
|
11
|
-
repoKey: string;
|
|
12
13
|
size?: string;
|
|
13
|
-
tags?: string[];
|
|
14
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { LayerEntry } from '../schemas/LayerEntry';
|
|
2
|
+
/**
|
|
3
|
+
* Harness Artifact Layers
|
|
4
|
+
*/
|
|
5
|
+
export interface ManifestDetails {
|
|
6
|
+
createdAt?: string;
|
|
7
|
+
digest: string;
|
|
8
|
+
layers: LayerEntry[];
|
|
9
|
+
modifiedAt?: string;
|
|
10
|
+
osArch: string;
|
|
11
|
+
size?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { ListArtifactResponseResponse } from '../responses/ListArtifactResponseResponse';
|
|
3
|
-
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
4
|
-
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
5
|
-
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
6
|
-
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
-
export interface GetAllArtifactsForRepositoryQueryPathParams {
|
|
10
|
-
repokey: string;
|
|
11
|
-
}
|
|
12
|
-
export interface GetAllArtifactsForRepositoryQueryQueryParams {
|
|
13
|
-
org?: string;
|
|
14
|
-
project?: string;
|
|
15
|
-
packageType?: string[];
|
|
16
|
-
page?: number;
|
|
17
|
-
size?: number;
|
|
18
|
-
sort?: string[];
|
|
19
|
-
}
|
|
20
|
-
export interface GetAllArtifactsForRepositoryQueryHeaderParams {
|
|
21
|
-
'Harness-Account'?: string;
|
|
22
|
-
}
|
|
23
|
-
export type GetAllArtifactsForRepositoryOkResponse = ResponseWithPagination<ListArtifactResponseResponse>;
|
|
24
|
-
export type GetAllArtifactsForRepositoryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
25
|
-
export interface GetAllArtifactsForRepositoryProps extends GetAllArtifactsForRepositoryQueryPathParams, Omit<FetcherOptions<GetAllArtifactsForRepositoryQueryQueryParams, unknown, GetAllArtifactsForRepositoryQueryHeaderParams>, 'url'> {
|
|
26
|
-
queryParams: GetAllArtifactsForRepositoryQueryQueryParams;
|
|
27
|
-
}
|
|
28
|
-
export declare function getAllArtifactsForRepository(props: GetAllArtifactsForRepositoryProps): Promise<GetAllArtifactsForRepositoryOkResponse>;
|
|
29
|
-
/**
|
|
30
|
-
* Lists all the Artifacts for Repository.
|
|
31
|
-
*/
|
|
32
|
-
export declare function useGetAllArtifactsForRepositoryQuery(props: GetAllArtifactsForRepositoryProps, options?: Omit<UseQueryOptions<GetAllArtifactsForRepositoryOkResponse, GetAllArtifactsForRepositoryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllArtifactsForRepositoryOkResponse, import("..").Error>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 getAllArtifactsForRepository(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/repos/${props.repokey}/artifacts`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Lists all the Artifacts for Repository.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetAllArtifactsForRepositoryQuery(props, options) {
|
|
13
|
-
return useQuery(['GetAllArtifactsForRepository', props.repokey, props.queryParams], ({ signal }) => getAllArtifactsForRepository(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { ListArtifactVersionResponseResponse } from '../responses/ListArtifactVersionResponseResponse';
|
|
3
|
-
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
4
|
-
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
5
|
-
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
6
|
-
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
-
export interface GetAllVersionsForArtifactQueryQueryParams {
|
|
10
|
-
repokey: string;
|
|
11
|
-
page?: number;
|
|
12
|
-
size?: number;
|
|
13
|
-
sort?: string[];
|
|
14
|
-
}
|
|
15
|
-
export interface GetAllVersionsForArtifactQueryHeaderParams {
|
|
16
|
-
'Harness-Account'?: string;
|
|
17
|
-
}
|
|
18
|
-
export type GetAllVersionsForArtifactOkResponse = ResponseWithPagination<ListArtifactVersionResponseResponse>;
|
|
19
|
-
export type GetAllVersionsForArtifactErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
20
|
-
export interface GetAllVersionsForArtifactProps extends Omit<FetcherOptions<GetAllVersionsForArtifactQueryQueryParams, unknown, GetAllVersionsForArtifactQueryHeaderParams>, 'url'> {
|
|
21
|
-
queryParams: GetAllVersionsForArtifactQueryQueryParams;
|
|
22
|
-
}
|
|
23
|
-
export declare function getAllVersionsForArtifact(props: GetAllVersionsForArtifactProps): Promise<GetAllVersionsForArtifactOkResponse>;
|
|
24
|
-
/**
|
|
25
|
-
* Lists all the Versions for Artifact.
|
|
26
|
-
*/
|
|
27
|
-
export declare function useGetAllVersionsForArtifactQuery(props: GetAllVersionsForArtifactProps, options?: Omit<UseQueryOptions<GetAllVersionsForArtifactOkResponse, GetAllVersionsForArtifactErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllVersionsForArtifactOkResponse, import("..").Error>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 getAllVersionsForArtifact(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/artifacts/versions`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Lists all the Versions for Artifact.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetAllVersionsForArtifactQuery(props, options) {
|
|
13
|
-
return useQuery(['GetAllVersionsForArtifact', props.queryParams], ({ signal }) => getAllVersionsForArtifact(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|