@harnessio/react-har-service-client 0.0.5 → 0.0.7
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 +1 -1
- package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.d.ts +2 -2
- package/dist/har-service/src/services/hooks/useGetAllRepositoriesQuery.d.ts +3 -2
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.d.ts +27 -0
- package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetDockerArtifactLayersQuery.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetDockerArtifactLayersQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestQuery.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetHelmArtifactManifestQuery.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetHelmArtifactManifestQuery.js +14 -0
- package/dist/har-service/src/services/index.d.ts +27 -20
- package/dist/har-service/src/services/index.js +6 -4
- package/dist/har-service/src/services/responses/DockerArtifactDetailResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/DockerArtifactManifestResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/DockerLayersResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/DockerManifestsResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/HelmArtifactDetailResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/HelmArtifactManifestResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionSummary.d.ts +1 -1
- package/dist/har-service/src/services/schemas/CleanupPolicy.d.ts +10 -0
- package/dist/har-service/src/services/schemas/{ArtifactDetail.d.ts → DockerArtifactDetail.d.ts} +2 -3
- package/dist/har-service/src/services/schemas/DockerArtifactManifest.d.ts +6 -0
- package/dist/har-service/src/services/schemas/{LayerEntry.d.ts → DockerLayerEntry.d.ts} +1 -1
- package/dist/har-service/src/services/schemas/DockerLayersSummary.d.ts +9 -0
- package/dist/har-service/src/services/schemas/DockerManifestDetails.d.ts +9 -0
- package/dist/har-service/src/services/schemas/DockerManifestDetails.js +4 -0
- package/dist/har-service/src/services/schemas/DockerManifests.d.ts +10 -0
- package/dist/har-service/src/services/schemas/HelmArtifactDetail.d.ts +17 -0
- package/dist/har-service/src/services/schemas/HelmArtifactDetail.js +1 -0
- package/dist/har-service/src/services/schemas/HelmArtifactManifest.d.ts +6 -0
- package/dist/har-service/src/services/schemas/HelmArtifactManifest.js +4 -0
- package/dist/har-service/src/services/schemas/RepositoryConfig.d.ts +2 -3
- package/dist/har-service/src/services/schemas/RepositoryMetadata.d.ts +0 -1
- package/dist/har-service/src/services/schemas/UpstreamProxyConfig.d.ts +2 -0
- package/package.json +1 -1
- package/dist/har-service/src/services/hooks/useGetAllUpstreamProxiesQuery.d.ts +0 -30
- package/dist/har-service/src/services/hooks/useGetAllUpstreamProxiesQuery.js +0 -14
- package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.d.ts +0 -26
- package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.js +0 -14
- package/dist/har-service/src/services/hooks/useGetArtifactManifestQuery.d.ts +0 -25
- package/dist/har-service/src/services/hooks/useGetArtifactManifestQuery.js +0 -14
- package/dist/har-service/src/services/hooks/useGetArtifactTagSummaryQuery.d.ts +0 -26
- package/dist/har-service/src/services/hooks/useGetArtifactTagSummaryQuery.js +0 -14
- package/dist/har-service/src/services/responses/ArtifactDetailResponseResponse.d.ts +0 -6
- package/dist/har-service/src/services/responses/ArtifactManifestResponseResponse.d.ts +0 -6
- package/dist/har-service/src/services/responses/ListUpstreamProxyResponseResponse.d.ts +0 -6
- package/dist/har-service/src/services/responses/TagSummaryResponseResponse.d.ts +0 -6
- package/dist/har-service/src/services/schemas/ArtifactManifest.d.ts +0 -6
- package/dist/har-service/src/services/schemas/ListUpstreamProxy.d.ts +0 -30
- package/dist/har-service/src/services/schemas/ManifestDetails.d.ts +0 -12
- package/dist/har-service/src/services/schemas/RepositoryCleanupPolicy.d.ts +0 -8
- package/dist/har-service/src/services/schemas/TagSummary.d.ts +0 -10
- package/dist/har-service/src/services/schemas/UpstreamProxyMetadata.d.ts +0 -10
- /package/dist/har-service/src/services/responses/{ArtifactDetailResponseResponse.js → DockerArtifactDetailResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/responses/{ArtifactManifestResponseResponse.js → DockerArtifactManifestResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/responses/{ListUpstreamProxyResponseResponse.js → DockerLayersResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/responses/{TagSummaryResponseResponse.js → DockerManifestsResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/{schemas/ArtifactDetail.js → responses/HelmArtifactDetailResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/{schemas/ListUpstreamProxy.js → responses/HelmArtifactManifestResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/schemas/{ArtifactManifest.js → CleanupPolicy.js} +0 -0
- /package/dist/har-service/src/services/schemas/{ManifestDetails.js → DockerArtifactDetail.js} +0 -0
- /package/dist/har-service/src/services/schemas/{LayerEntry.js → DockerArtifactManifest.js} +0 -0
- /package/dist/har-service/src/services/schemas/{RepositoryCleanupPolicy.js → DockerLayerEntry.js} +0 -0
- /package/dist/har-service/src/services/schemas/{TagSummary.js → DockerLayersSummary.js} +0 -0
- /package/dist/har-service/src/services/schemas/{UpstreamProxyMetadata.js → DockerManifests.js} +0 -0
|
@@ -9,11 +9,11 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
9
9
|
export interface GetAllArtifactsQueryQueryParams {
|
|
10
10
|
org?: string;
|
|
11
11
|
project?: string;
|
|
12
|
-
packageTypes?: string
|
|
12
|
+
packageTypes?: string;
|
|
13
13
|
repokey?: string;
|
|
14
14
|
page?: number;
|
|
15
15
|
size?: number;
|
|
16
|
-
sort?: string
|
|
16
|
+
sort?: string;
|
|
17
17
|
searchTerm?: string;
|
|
18
18
|
}
|
|
19
19
|
export interface GetAllArtifactsQueryHeaderParams {
|
|
@@ -9,10 +9,11 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
9
9
|
export interface GetAllRepositoriesQueryQueryParams {
|
|
10
10
|
org?: string;
|
|
11
11
|
project?: string;
|
|
12
|
-
packageTypes?: string
|
|
12
|
+
packageTypes?: string;
|
|
13
|
+
type?: string;
|
|
13
14
|
page?: number;
|
|
14
15
|
size?: number;
|
|
15
|
-
sort?: string
|
|
16
|
+
sort?: string;
|
|
16
17
|
searchTerm?: string;
|
|
17
18
|
}
|
|
18
19
|
export interface GetAllRepositoriesQueryHeaderParams {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getArtifactVersionSummary(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/artifacts/versions/summary`, method: 'GET' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/artifacts/versions/docker/summary`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get Artifact Version Summary.
|
|
@@ -7,7 +7,7 @@ import type { InternalServerErrorResponse } from '../responses/InternalServerErr
|
|
|
7
7
|
import type { ResponseWithPagination } from '../helpers';
|
|
8
8
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
9
|
export interface GetClientSetupDetailsQueryQueryParams {
|
|
10
|
-
|
|
10
|
+
packageTypes?: string;
|
|
11
11
|
}
|
|
12
12
|
export interface GetClientSetupDetailsQueryHeaderParams {
|
|
13
13
|
'Harness-Account'?: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DockerArtifactDetailResponseResponse } from '../responses/DockerArtifactDetailResponseResponse';
|
|
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 GetDockerArtifactDetailsQueryQueryParams {
|
|
10
|
+
repokey?: string;
|
|
11
|
+
artifact: string;
|
|
12
|
+
version: string;
|
|
13
|
+
digest: string;
|
|
14
|
+
}
|
|
15
|
+
export interface GetDockerArtifactDetailsQueryHeaderParams {
|
|
16
|
+
'Harness-Account'?: string;
|
|
17
|
+
}
|
|
18
|
+
export type GetDockerArtifactDetailsOkResponse = ResponseWithPagination<DockerArtifactDetailResponseResponse>;
|
|
19
|
+
export type GetDockerArtifactDetailsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
20
|
+
export interface GetDockerArtifactDetailsProps extends Omit<FetcherOptions<GetDockerArtifactDetailsQueryQueryParams, unknown, GetDockerArtifactDetailsQueryHeaderParams>, 'url'> {
|
|
21
|
+
queryParams: GetDockerArtifactDetailsQueryQueryParams;
|
|
22
|
+
}
|
|
23
|
+
export declare function getDockerArtifactDetails(props: GetDockerArtifactDetailsProps): Promise<GetDockerArtifactDetailsOkResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Get Docker Artifact Details
|
|
26
|
+
*/
|
|
27
|
+
export declare function useGetDockerArtifactDetailsQuery(props: GetDockerArtifactDetailsProps, options?: Omit<UseQueryOptions<GetDockerArtifactDetailsOkResponse, GetDockerArtifactDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetDockerArtifactDetailsOkResponse, 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 getDockerArtifactDetails(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/artifacts/versions/docker/detail`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Docker Artifact Details
|
|
11
|
+
*/
|
|
12
|
+
export function useGetDockerArtifactDetailsQuery(props, options) {
|
|
13
|
+
return useQuery(['GetDockerArtifactDetails', props.queryParams], ({ signal }) => getDockerArtifactDetails(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DockerLayersResponseResponse } from '../responses/DockerLayersResponseResponse';
|
|
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 GetDockerArtifactLayersQueryQueryParams {
|
|
10
|
+
repokey?: string;
|
|
11
|
+
artifact: string;
|
|
12
|
+
digest: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetDockerArtifactLayersQueryHeaderParams {
|
|
15
|
+
'Harness-Account'?: string;
|
|
16
|
+
}
|
|
17
|
+
export type GetDockerArtifactLayersOkResponse = ResponseWithPagination<DockerLayersResponseResponse>;
|
|
18
|
+
export type GetDockerArtifactLayersErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
+
export interface GetDockerArtifactLayersProps extends Omit<FetcherOptions<GetDockerArtifactLayersQueryQueryParams, unknown, GetDockerArtifactLayersQueryHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: GetDockerArtifactLayersQueryQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function getDockerArtifactLayers(props: GetDockerArtifactLayersProps): Promise<GetDockerArtifactLayersOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Get Docker Artifact Layers
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetDockerArtifactLayersQuery(props: GetDockerArtifactLayersProps, options?: Omit<UseQueryOptions<GetDockerArtifactLayersOkResponse, GetDockerArtifactLayersErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetDockerArtifactLayersOkResponse, 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 getDockerArtifactLayers(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/artifacts/versions/docker/layers`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Docker Artifact Layers
|
|
11
|
+
*/
|
|
12
|
+
export function useGetDockerArtifactLayersQuery(props, options) {
|
|
13
|
+
return useQuery(['GetDockerArtifactLayers', props.queryParams], ({ signal }) => getDockerArtifactLayers(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DockerArtifactManifestResponseResponse } from '../responses/DockerArtifactManifestResponseResponse';
|
|
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 GetDockerArtifactManifestQueryQueryParams {
|
|
10
|
+
repokey?: string;
|
|
11
|
+
artifact: string;
|
|
12
|
+
digest: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetDockerArtifactManifestQueryHeaderParams {
|
|
15
|
+
'Harness-Account'?: string;
|
|
16
|
+
}
|
|
17
|
+
export type GetDockerArtifactManifestOkResponse = ResponseWithPagination<DockerArtifactManifestResponseResponse>;
|
|
18
|
+
export type GetDockerArtifactManifestErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
+
export interface GetDockerArtifactManifestProps extends Omit<FetcherOptions<GetDockerArtifactManifestQueryQueryParams, unknown, GetDockerArtifactManifestQueryHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: GetDockerArtifactManifestQueryQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function getDockerArtifactManifest(props: GetDockerArtifactManifestProps): Promise<GetDockerArtifactManifestOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Get Docker Artifact Manifest
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetDockerArtifactManifestQuery(props: GetDockerArtifactManifestProps, options?: Omit<UseQueryOptions<GetDockerArtifactManifestOkResponse, GetDockerArtifactManifestErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetDockerArtifactManifestOkResponse, 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 getDockerArtifactManifest(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/artifacts/versions/docker/manifest`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Docker Artifact Manifest
|
|
11
|
+
*/
|
|
12
|
+
export function useGetDockerArtifactManifestQuery(props, options) {
|
|
13
|
+
return useQuery(['GetDockerArtifactManifest', props.queryParams], ({ signal }) => getDockerArtifactManifest(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DockerManifestsResponseResponse } from '../responses/DockerManifestsResponseResponse';
|
|
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 GetDockerArtifactManifestsQueryQueryParams {
|
|
10
|
+
repokey?: string;
|
|
11
|
+
artifact: string;
|
|
12
|
+
version: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetDockerArtifactManifestsQueryHeaderParams {
|
|
15
|
+
'Harness-Account'?: string;
|
|
16
|
+
}
|
|
17
|
+
export type GetDockerArtifactManifestsOkResponse = ResponseWithPagination<DockerManifestsResponseResponse>;
|
|
18
|
+
export type GetDockerArtifactManifestsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
+
export interface GetDockerArtifactManifestsProps extends Omit<FetcherOptions<GetDockerArtifactManifestsQueryQueryParams, unknown, GetDockerArtifactManifestsQueryHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: GetDockerArtifactManifestsQueryQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function getDockerArtifactManifests(props: GetDockerArtifactManifestsProps): Promise<GetDockerArtifactManifestsOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Get Docker Artifact Manifests
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetDockerArtifactManifestsQuery(props: GetDockerArtifactManifestsProps, options?: Omit<UseQueryOptions<GetDockerArtifactManifestsOkResponse, GetDockerArtifactManifestsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetDockerArtifactManifestsOkResponse, 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 getDockerArtifactManifests(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/artifacts/versions/docker/manifests`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Docker Artifact Manifests
|
|
11
|
+
*/
|
|
12
|
+
export function useGetDockerArtifactManifestsQuery(props, options) {
|
|
13
|
+
return useQuery(['GetDockerArtifactManifests', props.queryParams], ({ signal }) => getDockerArtifactManifests(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { HelmArtifactDetailResponseResponse } from '../responses/HelmArtifactDetailResponseResponse';
|
|
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 GetHelmArtifactDetailsQueryQueryParams {
|
|
10
|
+
repokey?: string;
|
|
11
|
+
artifact: string;
|
|
12
|
+
version: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetHelmArtifactDetailsQueryHeaderParams {
|
|
15
|
+
'Harness-Account'?: string;
|
|
16
|
+
}
|
|
17
|
+
export type GetHelmArtifactDetailsOkResponse = ResponseWithPagination<HelmArtifactDetailResponseResponse>;
|
|
18
|
+
export type GetHelmArtifactDetailsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
+
export interface GetHelmArtifactDetailsProps extends Omit<FetcherOptions<GetHelmArtifactDetailsQueryQueryParams, unknown, GetHelmArtifactDetailsQueryHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: GetHelmArtifactDetailsQueryQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function getHelmArtifactDetails(props: GetHelmArtifactDetailsProps): Promise<GetHelmArtifactDetailsOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Get Helm Artifact Details
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetHelmArtifactDetailsQuery(props: GetHelmArtifactDetailsProps, options?: Omit<UseQueryOptions<GetHelmArtifactDetailsOkResponse, GetHelmArtifactDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetHelmArtifactDetailsOkResponse, 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 getHelmArtifactDetails(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/artifacts/versions/helm/detail`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Helm Artifact Details
|
|
11
|
+
*/
|
|
12
|
+
export function useGetHelmArtifactDetailsQuery(props, options) {
|
|
13
|
+
return useQuery(['GetHelmArtifactDetails', props.queryParams], ({ signal }) => getHelmArtifactDetails(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { HelmArtifactManifestResponseResponse } from '../responses/HelmArtifactManifestResponseResponse';
|
|
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 GetHelmArtifactManifestQueryQueryParams {
|
|
10
|
+
repokey?: string;
|
|
11
|
+
artifact: string;
|
|
12
|
+
version: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetHelmArtifactManifestQueryHeaderParams {
|
|
15
|
+
'Harness-Account'?: string;
|
|
16
|
+
}
|
|
17
|
+
export type GetHelmArtifactManifestOkResponse = ResponseWithPagination<HelmArtifactManifestResponseResponse>;
|
|
18
|
+
export type GetHelmArtifactManifestErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
+
export interface GetHelmArtifactManifestProps extends Omit<FetcherOptions<GetHelmArtifactManifestQueryQueryParams, unknown, GetHelmArtifactManifestQueryHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: GetHelmArtifactManifestQueryQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function getHelmArtifactManifest(props: GetHelmArtifactManifestProps): Promise<GetHelmArtifactManifestOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Get Helm Artifact Manifest
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetHelmArtifactManifestQuery(props: GetHelmArtifactManifestProps, options?: Omit<UseQueryOptions<GetHelmArtifactManifestOkResponse, GetHelmArtifactManifestErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetHelmArtifactManifestOkResponse, 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 getHelmArtifactManifest(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/artifacts/versions/helm/manifest`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Helm Artifact Manifest
|
|
11
|
+
*/
|
|
12
|
+
export function useGetHelmArtifactManifestQuery(props, options) {
|
|
13
|
+
return useQuery(['GetHelmArtifactManifest', props.queryParams], ({ signal }) => getHelmArtifactManifest(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -13,20 +13,24 @@ export type { GetAllArtifactsErrorResponse, GetAllArtifactsOkResponse, GetAllArt
|
|
|
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
|
-
export type { GetAllUpstreamProxiesErrorResponse, GetAllUpstreamProxiesOkResponse, GetAllUpstreamProxiesProps, GetAllUpstreamProxiesQueryQueryParams, } from './hooks/useGetAllUpstreamProxiesQuery';
|
|
17
|
-
export { getAllUpstreamProxies, useGetAllUpstreamProxiesQuery, } from './hooks/useGetAllUpstreamProxiesQuery';
|
|
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
16
|
export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, GetArtifactSummaryProps, GetArtifactSummaryQueryQueryParams, } from './hooks/useGetArtifactSummaryQuery';
|
|
23
17
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
24
|
-
export type { GetArtifactTagSummaryErrorResponse, GetArtifactTagSummaryOkResponse, GetArtifactTagSummaryProps, GetArtifactTagSummaryQueryQueryParams, } from './hooks/useGetArtifactTagSummaryQuery';
|
|
25
|
-
export { getArtifactTagSummary, useGetArtifactTagSummaryQuery, } from './hooks/useGetArtifactTagSummaryQuery';
|
|
26
18
|
export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryQueryParams, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
27
19
|
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
28
20
|
export type { GetClientSetupDetailsErrorResponse, GetClientSetupDetailsOkResponse, GetClientSetupDetailsProps, GetClientSetupDetailsQueryQueryParams, } from './hooks/useGetClientSetupDetailsQuery';
|
|
29
21
|
export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
|
|
22
|
+
export type { GetDockerArtifactDetailsErrorResponse, GetDockerArtifactDetailsOkResponse, GetDockerArtifactDetailsProps, GetDockerArtifactDetailsQueryQueryParams, } from './hooks/useGetDockerArtifactDetailsQuery';
|
|
23
|
+
export { getDockerArtifactDetails, useGetDockerArtifactDetailsQuery, } from './hooks/useGetDockerArtifactDetailsQuery';
|
|
24
|
+
export type { GetDockerArtifactLayersErrorResponse, GetDockerArtifactLayersOkResponse, GetDockerArtifactLayersProps, GetDockerArtifactLayersQueryQueryParams, } from './hooks/useGetDockerArtifactLayersQuery';
|
|
25
|
+
export { getDockerArtifactLayers, useGetDockerArtifactLayersQuery, } from './hooks/useGetDockerArtifactLayersQuery';
|
|
26
|
+
export type { GetDockerArtifactManifestErrorResponse, GetDockerArtifactManifestOkResponse, GetDockerArtifactManifestProps, GetDockerArtifactManifestQueryQueryParams, } from './hooks/useGetDockerArtifactManifestQuery';
|
|
27
|
+
export { getDockerArtifactManifest, useGetDockerArtifactManifestQuery, } from './hooks/useGetDockerArtifactManifestQuery';
|
|
28
|
+
export type { GetDockerArtifactManifestsErrorResponse, GetDockerArtifactManifestsOkResponse, GetDockerArtifactManifestsProps, GetDockerArtifactManifestsQueryQueryParams, } from './hooks/useGetDockerArtifactManifestsQuery';
|
|
29
|
+
export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from './hooks/useGetDockerArtifactManifestsQuery';
|
|
30
|
+
export type { GetHelmArtifactDetailsErrorResponse, GetHelmArtifactDetailsOkResponse, GetHelmArtifactDetailsProps, GetHelmArtifactDetailsQueryQueryParams, } from './hooks/useGetHelmArtifactDetailsQuery';
|
|
31
|
+
export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
|
|
32
|
+
export type { GetHelmArtifactManifestErrorResponse, GetHelmArtifactManifestOkResponse, GetHelmArtifactManifestProps, GetHelmArtifactManifestQueryQueryParams, } from './hooks/useGetHelmArtifactManifestQuery';
|
|
33
|
+
export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
|
|
30
34
|
export type { GetRepositoryErrorResponse, GetRepositoryOkResponse, GetRepositoryProps, GetRepositoryQueryPathParams, GetRepositoryQueryQueryParams, } from './hooks/useGetRepositoryQuery';
|
|
31
35
|
export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
|
|
32
36
|
export type { GetUpstreamProxyErrorResponse, GetUpstreamProxyOkResponse, GetUpstreamProxyProps, GetUpstreamProxyQueryPathParams, GetUpstreamProxyQueryQueryParams, } from './hooks/useGetUpstreamProxyQuery';
|
|
@@ -37,54 +41,57 @@ export type { ModifyUpstreamProxyErrorResponse, ModifyUpstreamProxyMutationPathP
|
|
|
37
41
|
export { modifyUpstreamProxy, useModifyUpstreamProxyMutation, } from './hooks/useModifyUpstreamProxyMutation';
|
|
38
42
|
export type { RepositoryRequestRequestBody } from './requestBodies/RepositoryRequestRequestBody';
|
|
39
43
|
export type { UpstreamProxyRequestRequestBody } from './requestBodies/UpstreamProxyRequestRequestBody';
|
|
40
|
-
export type { ArtifactDetailResponseResponse } from './responses/ArtifactDetailResponseResponse';
|
|
41
|
-
export type { ArtifactManifestResponseResponse } from './responses/ArtifactManifestResponseResponse';
|
|
42
44
|
export type { ArtifactSummaryResponseResponse } from './responses/ArtifactSummaryResponseResponse';
|
|
43
45
|
export type { ArtifactVersionSummaryResponseResponse } from './responses/ArtifactVersionSummaryResponseResponse';
|
|
44
46
|
export type { BadRequestResponse } from './responses/BadRequestResponse';
|
|
45
47
|
export type { ClientSetupDetailsResponseResponse } from './responses/ClientSetupDetailsResponseResponse';
|
|
48
|
+
export type { DockerArtifactDetailResponseResponse } from './responses/DockerArtifactDetailResponseResponse';
|
|
49
|
+
export type { DockerArtifactManifestResponseResponse } from './responses/DockerArtifactManifestResponseResponse';
|
|
50
|
+
export type { DockerLayersResponseResponse } from './responses/DockerLayersResponseResponse';
|
|
51
|
+
export type { DockerManifestsResponseResponse } from './responses/DockerManifestsResponseResponse';
|
|
52
|
+
export type { HelmArtifactDetailResponseResponse } from './responses/HelmArtifactDetailResponseResponse';
|
|
53
|
+
export type { HelmArtifactManifestResponseResponse } from './responses/HelmArtifactManifestResponseResponse';
|
|
46
54
|
export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
|
|
47
55
|
export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
|
|
48
56
|
export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
|
|
49
57
|
export type { ListRepositoryResponseResponse } from './responses/ListRepositoryResponseResponse';
|
|
50
|
-
export type { ListUpstreamProxyResponseResponse } from './responses/ListUpstreamProxyResponseResponse';
|
|
51
58
|
export type { NotFoundResponse } from './responses/NotFoundResponse';
|
|
52
59
|
export type { RepositoryResponseResponse } from './responses/RepositoryResponseResponse';
|
|
53
60
|
export type { SuccessResponse } from './responses/SuccessResponse';
|
|
54
|
-
export type { TagSummaryResponseResponse } from './responses/TagSummaryResponseResponse';
|
|
55
61
|
export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
|
|
56
62
|
export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
|
|
57
63
|
export type { UpstreamProxyResponseResponse } from './responses/UpstreamProxyResponseResponse';
|
|
58
64
|
export type { Anonymous } from './schemas/Anonymous';
|
|
59
|
-
export type { ArtifactDetail } from './schemas/ArtifactDetail';
|
|
60
|
-
export type { ArtifactManifest } from './schemas/ArtifactManifest';
|
|
61
65
|
export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
|
|
62
66
|
export type { ArtifactSummary } from './schemas/ArtifactSummary';
|
|
63
67
|
export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
|
|
64
68
|
export type { ArtifactVersionSummary } from './schemas/ArtifactVersionSummary';
|
|
65
69
|
export type { AuthType } from './schemas/AuthType';
|
|
70
|
+
export type { CleanupPolicy } from './schemas/CleanupPolicy';
|
|
66
71
|
export type { ClientSetupDetails } from './schemas/ClientSetupDetails';
|
|
67
72
|
export type { ClientSetupSection } from './schemas/ClientSetupSection';
|
|
68
73
|
export type { ClientSetupStep } from './schemas/ClientSetupStep';
|
|
74
|
+
export type { DockerArtifactDetail } from './schemas/DockerArtifactDetail';
|
|
75
|
+
export type { DockerArtifactManifest } from './schemas/DockerArtifactManifest';
|
|
76
|
+
export type { DockerLayerEntry } from './schemas/DockerLayerEntry';
|
|
77
|
+
export type { DockerLayersSummary } from './schemas/DockerLayersSummary';
|
|
78
|
+
export type { DockerManifestDetails } from './schemas/DockerManifestDetails';
|
|
79
|
+
export type { DockerManifests } from './schemas/DockerManifests';
|
|
69
80
|
export type { Error } from './schemas/Error';
|
|
81
|
+
export type { HelmArtifactDetail } from './schemas/HelmArtifactDetail';
|
|
82
|
+
export type { HelmArtifactManifest } from './schemas/HelmArtifactManifest';
|
|
70
83
|
export type { Label } from './schemas/Label';
|
|
71
|
-
export type { LayerEntry } from './schemas/LayerEntry';
|
|
72
84
|
export type { ListArtifact } from './schemas/ListArtifact';
|
|
73
85
|
export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
|
|
74
86
|
export type { ListRepository } from './schemas/ListRepository';
|
|
75
|
-
export type { ListUpstreamProxy } from './schemas/ListUpstreamProxy';
|
|
76
|
-
export type { ManifestDetails } from './schemas/ManifestDetails';
|
|
77
87
|
export type { PackageType } from './schemas/PackageType';
|
|
78
88
|
export type { Repository } from './schemas/Repository';
|
|
79
|
-
export type { RepositoryCleanupPolicy } from './schemas/RepositoryCleanupPolicy';
|
|
80
89
|
export type { RepositoryConfig } from './schemas/RepositoryConfig';
|
|
81
90
|
export type { RepositoryMetadata } from './schemas/RepositoryMetadata';
|
|
82
91
|
export type { RepositoryRequest } from './schemas/RepositoryRequest';
|
|
83
92
|
export type { Status } from './schemas/Status';
|
|
84
|
-
export type { TagSummary } from './schemas/TagSummary';
|
|
85
93
|
export type { Type } from './schemas/Type';
|
|
86
94
|
export type { UpstreamProxy } from './schemas/UpstreamProxy';
|
|
87
95
|
export type { UpstreamProxyConfig } from './schemas/UpstreamProxyConfig';
|
|
88
|
-
export type { UpstreamProxyMetadata } from './schemas/UpstreamProxyMetadata';
|
|
89
96
|
export type { UpstreamProxyRequest } from './schemas/UpstreamProxyRequest';
|
|
90
97
|
export type { UserPassword } from './schemas/UserPassword';
|
|
@@ -5,13 +5,15 @@ export { deleteUpstreamProxy, useDeleteUpstreamProxyMutation, } from './hooks/us
|
|
|
5
5
|
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
6
6
|
export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
|
|
7
7
|
export { getAllRepositories, useGetAllRepositoriesQuery } from './hooks/useGetAllRepositoriesQuery';
|
|
8
|
-
export { getAllUpstreamProxies, useGetAllUpstreamProxiesQuery, } from './hooks/useGetAllUpstreamProxiesQuery';
|
|
9
|
-
export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
|
|
10
|
-
export { getArtifactManifest, useGetArtifactManifestQuery, } from './hooks/useGetArtifactManifestQuery';
|
|
11
8
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
12
|
-
export { getArtifactTagSummary, useGetArtifactTagSummaryQuery, } from './hooks/useGetArtifactTagSummaryQuery';
|
|
13
9
|
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
14
10
|
export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
|
|
11
|
+
export { getDockerArtifactDetails, useGetDockerArtifactDetailsQuery, } from './hooks/useGetDockerArtifactDetailsQuery';
|
|
12
|
+
export { getDockerArtifactLayers, useGetDockerArtifactLayersQuery, } from './hooks/useGetDockerArtifactLayersQuery';
|
|
13
|
+
export { getDockerArtifactManifest, useGetDockerArtifactManifestQuery, } from './hooks/useGetDockerArtifactManifestQuery';
|
|
14
|
+
export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from './hooks/useGetDockerArtifactManifestsQuery';
|
|
15
|
+
export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
|
|
16
|
+
export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
|
|
15
17
|
export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
|
|
16
18
|
export { getUpstreamProxy, useGetUpstreamProxyQuery } from './hooks/useGetUpstreamProxyQuery';
|
|
17
19
|
export { modifyRepository, useModifyRepositoryMutation } from './hooks/useModifyRepositoryMutation';
|
package/dist/har-service/src/services/schemas/{ArtifactDetail.d.ts → DockerArtifactDetail.d.ts}
RENAMED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { PackageType } from '../schemas/PackageType';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Docker Artifact Detail
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface DockerArtifactDetail {
|
|
6
6
|
createdAt?: string;
|
|
7
|
-
description?: string;
|
|
8
7
|
downloadsCount?: number;
|
|
9
8
|
imageName: string;
|
|
10
9
|
isLatestVersion?: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DockerManifestDetails } from '../schemas/DockerManifestDetails';
|
|
2
|
+
/**
|
|
3
|
+
* Harness Manifests
|
|
4
|
+
*/
|
|
5
|
+
export interface DockerManifests {
|
|
6
|
+
imageName: string;
|
|
7
|
+
isLatestVersion?: boolean;
|
|
8
|
+
manifests?: DockerManifestDetails[];
|
|
9
|
+
version: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PackageType } from '../schemas/PackageType';
|
|
2
|
+
/**
|
|
3
|
+
* Helm Artifact Detail
|
|
4
|
+
*/
|
|
5
|
+
export interface HelmArtifactDetail {
|
|
6
|
+
artifact?: string;
|
|
7
|
+
createdAt?: string;
|
|
8
|
+
downloadsCount?: number;
|
|
9
|
+
isLatestVersion?: boolean;
|
|
10
|
+
modifiedAt?: string;
|
|
11
|
+
packageType: PackageType;
|
|
12
|
+
pullCommand?: string;
|
|
13
|
+
repoPath: string;
|
|
14
|
+
size?: string;
|
|
15
|
+
url: string;
|
|
16
|
+
version: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CleanupPolicy } from '../schemas/CleanupPolicy';
|
|
2
2
|
/**
|
|
3
3
|
* Configuration for Harness Local Artifact Repositories
|
|
4
4
|
*/
|
|
5
5
|
export interface RepositoryConfig {
|
|
6
|
-
|
|
7
|
-
cleanupPolicy?: RepositoryCleanupPolicy;
|
|
6
|
+
cleanupPolicy?: CleanupPolicy[];
|
|
8
7
|
upstreamProxies?: string[];
|
|
9
8
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { UserPassword } from '../schemas/UserPassword';
|
|
2
2
|
import type { Anonymous } from '../schemas/Anonymous';
|
|
3
3
|
import type { AuthType } from '../schemas/AuthType';
|
|
4
|
+
import type { CleanupPolicy } from '../schemas/CleanupPolicy';
|
|
4
5
|
/**
|
|
5
6
|
* Configuration for Harness Artifact UpstreamProxies
|
|
6
7
|
*/
|
|
7
8
|
export interface UpstreamProxyConfig {
|
|
8
9
|
auth?: UserPassword & Anonymous;
|
|
9
10
|
authType: AuthType;
|
|
11
|
+
cleanupPolicy?: CleanupPolicy[];
|
|
10
12
|
}
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { ListUpstreamProxyResponseResponse } from '../responses/ListUpstreamProxyResponseResponse';
|
|
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 GetAllUpstreamProxiesQueryQueryParams {
|
|
10
|
-
org?: string;
|
|
11
|
-
project?: string;
|
|
12
|
-
packageTypes?: string[];
|
|
13
|
-
page?: number;
|
|
14
|
-
size?: number;
|
|
15
|
-
sort?: string[];
|
|
16
|
-
searchTerm?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface GetAllUpstreamProxiesQueryHeaderParams {
|
|
19
|
-
'Harness-Account'?: string;
|
|
20
|
-
}
|
|
21
|
-
export type GetAllUpstreamProxiesOkResponse = ResponseWithPagination<ListUpstreamProxyResponseResponse>;
|
|
22
|
-
export type GetAllUpstreamProxiesErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
23
|
-
export interface GetAllUpstreamProxiesProps extends Omit<FetcherOptions<GetAllUpstreamProxiesQueryQueryParams, unknown, GetAllUpstreamProxiesQueryHeaderParams>, 'url'> {
|
|
24
|
-
queryParams: GetAllUpstreamProxiesQueryQueryParams;
|
|
25
|
-
}
|
|
26
|
-
export declare function getAllUpstreamProxies(props: GetAllUpstreamProxiesProps): Promise<GetAllUpstreamProxiesOkResponse>;
|
|
27
|
-
/**
|
|
28
|
-
* Lists all the UpstreamProxies.
|
|
29
|
-
*/
|
|
30
|
-
export declare function useGetAllUpstreamProxiesQuery(props: GetAllUpstreamProxiesProps, options?: Omit<UseQueryOptions<GetAllUpstreamProxiesOkResponse, GetAllUpstreamProxiesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllUpstreamProxiesOkResponse, 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 getAllUpstreamProxies(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/upstreamproxies`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Lists all the UpstreamProxies.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetAllUpstreamProxiesQuery(props, options) {
|
|
13
|
-
return useQuery(['GetAllUpstreamProxies', props.queryParams], ({ signal }) => getAllUpstreamProxies(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
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>;
|
|
@@ -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 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
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
digest: string;
|
|
12
|
-
}
|
|
13
|
-
export interface GetArtifactManifestQueryHeaderParams {
|
|
14
|
-
'Harness-Account'?: string;
|
|
15
|
-
}
|
|
16
|
-
export type GetArtifactManifestOkResponse = ResponseWithPagination<ArtifactManifestResponseResponse>;
|
|
17
|
-
export type GetArtifactManifestErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
18
|
-
export interface GetArtifactManifestProps extends Omit<FetcherOptions<GetArtifactManifestQueryQueryParams, unknown, GetArtifactManifestQueryHeaderParams>, 'url'> {
|
|
19
|
-
queryParams: GetArtifactManifestQueryQueryParams;
|
|
20
|
-
}
|
|
21
|
-
export declare function getArtifactManifest(props: GetArtifactManifestProps): Promise<GetArtifactManifestOkResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Get Artifact Manifest
|
|
24
|
-
*/
|
|
25
|
-
export declare function useGetArtifactManifestQuery(props: GetArtifactManifestProps, options?: Omit<UseQueryOptions<GetArtifactManifestOkResponse, GetArtifactManifestErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactManifestOkResponse, 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 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
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
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>;
|
|
@@ -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 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
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { UpstreamProxyMetadata } from '../schemas/UpstreamProxyMetadata';
|
|
2
|
-
/**
|
|
3
|
-
* A list of Harness Artifact UpstreamProxies
|
|
4
|
-
*/
|
|
5
|
-
export interface ListUpstreamProxy {
|
|
6
|
-
/**
|
|
7
|
-
* The total number of items
|
|
8
|
-
* @example 1
|
|
9
|
-
*/
|
|
10
|
-
itemCount?: number;
|
|
11
|
-
/**
|
|
12
|
-
* The total number of pages
|
|
13
|
-
* @example 100
|
|
14
|
-
*/
|
|
15
|
-
pageCount?: number;
|
|
16
|
-
/**
|
|
17
|
-
* The current page
|
|
18
|
-
* @example 0
|
|
19
|
-
*/
|
|
20
|
-
pageIndex?: number;
|
|
21
|
-
/**
|
|
22
|
-
* The number of items per page
|
|
23
|
-
* @example 1
|
|
24
|
-
*/
|
|
25
|
-
pageSize?: number;
|
|
26
|
-
/**
|
|
27
|
-
* A list of Harness Artifact UpstreamProxies
|
|
28
|
-
*/
|
|
29
|
-
upstreamProxies: UpstreamProxyMetadata[];
|
|
30
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/har-service/src/services/schemas/{ManifestDetails.js → DockerArtifactDetail.js}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/har-service/src/services/schemas/{RepositoryCleanupPolicy.js → DockerLayerEntry.js}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/har-service/src/services/schemas/{UpstreamProxyMetadata.js → DockerManifests.js}
RENAMED
|
File without changes
|