@harnessio/react-har-service-client 0.0.6 → 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/useGetAllRepositoriesQuery.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.js +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 +26 -23
- package/dist/har-service/src/services/index.js +6 -5
- 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/{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/{ManifestDetails.d.ts → DockerManifestDetails.d.ts} +1 -1
- 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/HelmArtifactManifest.d.ts +6 -0
- package/dist/har-service/src/services/schemas/HelmArtifactManifest.js +4 -0
- package/dist/har-service/src/services/schemas/RepositoryMetadata.d.ts +0 -1
- 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 -27
- package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.js +0 -14
- package/dist/har-service/src/services/hooks/useGetArtifactManifestQuery.d.ts +0 -26
- package/dist/har-service/src/services/hooks/useGetArtifactManifestQuery.js +0 -14
- package/dist/har-service/src/services/hooks/useGetArtifactManifestsQuery.d.ts +0 -26
- package/dist/har-service/src/services/hooks/useGetArtifactManifestsQuery.js +0 -14
- package/dist/har-service/src/services/hooks/useGetLayersQuery.d.ts +0 -26
- package/dist/har-service/src/services/hooks/useGetLayersQuery.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/LayersResponseResponse.d.ts +0 -6
- package/dist/har-service/src/services/responses/ListUpstreamProxyResponseResponse.d.ts +0 -6
- package/dist/har-service/src/services/responses/ManifestsResponseResponse.d.ts +0 -6
- package/dist/har-service/src/services/schemas/ArtifactManifest.d.ts +0 -6
- package/dist/har-service/src/services/schemas/LayersSummary.d.ts +0 -9
- package/dist/har-service/src/services/schemas/ListUpstreamProxy.d.ts +0 -30
- package/dist/har-service/src/services/schemas/Manifests.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/{LayersResponseResponse.js → DockerLayersResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/responses/{ListUpstreamProxyResponseResponse.js → DockerManifestsResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/responses/{ManifestsResponseResponse.js → HelmArtifactDetailResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/{schemas/ArtifactDetail.js → responses/HelmArtifactManifestResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/schemas/{LayersSummary.js → DockerArtifactDetail.js} +0 -0
- /package/dist/har-service/src/services/schemas/{ArtifactManifest.js → DockerArtifactManifest.js} +0 -0
- /package/dist/har-service/src/services/schemas/{LayerEntry.js → DockerLayerEntry.js} +0 -0
- /package/dist/har-service/src/services/schemas/{ListUpstreamProxy.js → DockerLayersSummary.js} +0 -0
- /package/dist/har-service/src/services/schemas/{ManifestDetails.js → DockerManifestDetails.js} +0 -0
- /package/dist/har-service/src/services/schemas/{Manifests.js → DockerManifests.js} +0 -0
- /package/dist/har-service/src/services/schemas/{UpstreamProxyMetadata.js → HelmArtifactDetail.js} +0 -0
|
@@ -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.
|
|
@@ -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,22 +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
|
-
export type { GetArtifactManifestsErrorResponse, GetArtifactManifestsOkResponse, GetArtifactManifestsProps, GetArtifactManifestsQueryQueryParams, } from './hooks/useGetArtifactManifestsQuery';
|
|
23
|
-
export { getArtifactManifests, useGetArtifactManifestsQuery, } from './hooks/useGetArtifactManifestsQuery';
|
|
24
16
|
export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, GetArtifactSummaryProps, GetArtifactSummaryQueryQueryParams, } from './hooks/useGetArtifactSummaryQuery';
|
|
25
17
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
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';
|
|
30
|
-
export type {
|
|
31
|
-
export {
|
|
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';
|
|
32
34
|
export type { GetRepositoryErrorResponse, GetRepositoryOkResponse, GetRepositoryProps, GetRepositoryQueryPathParams, GetRepositoryQueryQueryParams, } from './hooks/useGetRepositoryQuery';
|
|
33
35
|
export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
|
|
34
36
|
export type { GetUpstreamProxyErrorResponse, GetUpstreamProxyOkResponse, GetUpstreamProxyProps, GetUpstreamProxyQueryPathParams, GetUpstreamProxyQueryQueryParams, } from './hooks/useGetUpstreamProxyQuery';
|
|
@@ -39,19 +41,20 @@ export type { ModifyUpstreamProxyErrorResponse, ModifyUpstreamProxyMutationPathP
|
|
|
39
41
|
export { modifyUpstreamProxy, useModifyUpstreamProxyMutation, } from './hooks/useModifyUpstreamProxyMutation';
|
|
40
42
|
export type { RepositoryRequestRequestBody } from './requestBodies/RepositoryRequestRequestBody';
|
|
41
43
|
export type { UpstreamProxyRequestRequestBody } from './requestBodies/UpstreamProxyRequestRequestBody';
|
|
42
|
-
export type { ArtifactDetailResponseResponse } from './responses/ArtifactDetailResponseResponse';
|
|
43
|
-
export type { ArtifactManifestResponseResponse } from './responses/ArtifactManifestResponseResponse';
|
|
44
44
|
export type { ArtifactSummaryResponseResponse } from './responses/ArtifactSummaryResponseResponse';
|
|
45
45
|
export type { ArtifactVersionSummaryResponseResponse } from './responses/ArtifactVersionSummaryResponseResponse';
|
|
46
46
|
export type { BadRequestResponse } from './responses/BadRequestResponse';
|
|
47
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';
|
|
48
54
|
export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
|
|
49
|
-
export type { LayersResponseResponse } from './responses/LayersResponseResponse';
|
|
50
55
|
export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
|
|
51
56
|
export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
|
|
52
57
|
export type { ListRepositoryResponseResponse } from './responses/ListRepositoryResponseResponse';
|
|
53
|
-
export type { ListUpstreamProxyResponseResponse } from './responses/ListUpstreamProxyResponseResponse';
|
|
54
|
-
export type { ManifestsResponseResponse } from './responses/ManifestsResponseResponse';
|
|
55
58
|
export type { NotFoundResponse } from './responses/NotFoundResponse';
|
|
56
59
|
export type { RepositoryResponseResponse } from './responses/RepositoryResponseResponse';
|
|
57
60
|
export type { SuccessResponse } from './responses/SuccessResponse';
|
|
@@ -59,8 +62,6 @@ export type { UnauthenticatedResponse } from './responses/UnauthenticatedRespons
|
|
|
59
62
|
export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
|
|
60
63
|
export type { UpstreamProxyResponseResponse } from './responses/UpstreamProxyResponseResponse';
|
|
61
64
|
export type { Anonymous } from './schemas/Anonymous';
|
|
62
|
-
export type { ArtifactDetail } from './schemas/ArtifactDetail';
|
|
63
|
-
export type { ArtifactManifest } from './schemas/ArtifactManifest';
|
|
64
65
|
export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
|
|
65
66
|
export type { ArtifactSummary } from './schemas/ArtifactSummary';
|
|
66
67
|
export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
|
|
@@ -70,16 +71,19 @@ export type { CleanupPolicy } from './schemas/CleanupPolicy';
|
|
|
70
71
|
export type { ClientSetupDetails } from './schemas/ClientSetupDetails';
|
|
71
72
|
export type { ClientSetupSection } from './schemas/ClientSetupSection';
|
|
72
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';
|
|
73
80
|
export type { Error } from './schemas/Error';
|
|
81
|
+
export type { HelmArtifactDetail } from './schemas/HelmArtifactDetail';
|
|
82
|
+
export type { HelmArtifactManifest } from './schemas/HelmArtifactManifest';
|
|
74
83
|
export type { Label } from './schemas/Label';
|
|
75
|
-
export type { LayerEntry } from './schemas/LayerEntry';
|
|
76
|
-
export type { LayersSummary } from './schemas/LayersSummary';
|
|
77
84
|
export type { ListArtifact } from './schemas/ListArtifact';
|
|
78
85
|
export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
|
|
79
86
|
export type { ListRepository } from './schemas/ListRepository';
|
|
80
|
-
export type { ListUpstreamProxy } from './schemas/ListUpstreamProxy';
|
|
81
|
-
export type { ManifestDetails } from './schemas/ManifestDetails';
|
|
82
|
-
export type { Manifests } from './schemas/Manifests';
|
|
83
87
|
export type { PackageType } from './schemas/PackageType';
|
|
84
88
|
export type { Repository } from './schemas/Repository';
|
|
85
89
|
export type { RepositoryConfig } from './schemas/RepositoryConfig';
|
|
@@ -89,6 +93,5 @@ export type { Status } from './schemas/Status';
|
|
|
89
93
|
export type { Type } from './schemas/Type';
|
|
90
94
|
export type { UpstreamProxy } from './schemas/UpstreamProxy';
|
|
91
95
|
export type { UpstreamProxyConfig } from './schemas/UpstreamProxyConfig';
|
|
92
|
-
export type { UpstreamProxyMetadata } from './schemas/UpstreamProxyMetadata';
|
|
93
96
|
export type { UpstreamProxyRequest } from './schemas/UpstreamProxyRequest';
|
|
94
97
|
export type { UserPassword } from './schemas/UserPassword';
|
|
@@ -5,14 +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
|
-
export { getArtifactManifests, useGetArtifactManifestsQuery, } from './hooks/useGetArtifactManifestsQuery';
|
|
12
8
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
13
9
|
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
14
10
|
export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
|
|
15
|
-
export {
|
|
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';
|
|
16
17
|
export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
|
|
17
18
|
export { getUpstreamProxy, useGetUpstreamProxyQuery } from './hooks/useGetUpstreamProxyQuery';
|
|
18
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
|
+
}
|
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,27 +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
|
-
digest: string;
|
|
14
|
-
}
|
|
15
|
-
export interface GetArtifactDetailsQueryHeaderParams {
|
|
16
|
-
'Harness-Account'?: string;
|
|
17
|
-
}
|
|
18
|
-
export type GetArtifactDetailsOkResponse = ResponseWithPagination<ArtifactDetailResponseResponse>;
|
|
19
|
-
export type GetArtifactDetailsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
20
|
-
export interface GetArtifactDetailsProps extends Omit<FetcherOptions<GetArtifactDetailsQueryQueryParams, unknown, GetArtifactDetailsQueryHeaderParams>, 'url'> {
|
|
21
|
-
queryParams: GetArtifactDetailsQueryQueryParams;
|
|
22
|
-
}
|
|
23
|
-
export declare function getArtifactDetails(props: GetArtifactDetailsProps): Promise<GetArtifactDetailsOkResponse>;
|
|
24
|
-
/**
|
|
25
|
-
* Get Artifact Details
|
|
26
|
-
*/
|
|
27
|
-
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,26 +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
|
-
artifact: string;
|
|
12
|
-
digest: 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>;
|
|
@@ -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 { ManifestsResponseResponse } from '../responses/ManifestsResponseResponse';
|
|
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 GetArtifactManifestsQueryQueryParams {
|
|
10
|
-
repokey?: string;
|
|
11
|
-
artifact: string;
|
|
12
|
-
version: string;
|
|
13
|
-
}
|
|
14
|
-
export interface GetArtifactManifestsQueryHeaderParams {
|
|
15
|
-
'Harness-Account'?: string;
|
|
16
|
-
}
|
|
17
|
-
export type GetArtifactManifestsOkResponse = ResponseWithPagination<ManifestsResponseResponse>;
|
|
18
|
-
export type GetArtifactManifestsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
-
export interface GetArtifactManifestsProps extends Omit<FetcherOptions<GetArtifactManifestsQueryQueryParams, unknown, GetArtifactManifestsQueryHeaderParams>, 'url'> {
|
|
20
|
-
queryParams: GetArtifactManifestsQueryQueryParams;
|
|
21
|
-
}
|
|
22
|
-
export declare function getArtifactManifests(props: GetArtifactManifestsProps): Promise<GetArtifactManifestsOkResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Get Artifact Manifests
|
|
25
|
-
*/
|
|
26
|
-
export declare function useGetArtifactManifestsQuery(props: GetArtifactManifestsProps, options?: Omit<UseQueryOptions<GetArtifactManifestsOkResponse, GetArtifactManifestsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactManifestsOkResponse, 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 getArtifactManifests(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/artifacts/versions/manifests`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get Artifact Manifests
|
|
11
|
-
*/
|
|
12
|
-
export function useGetArtifactManifestsQuery(props, options) {
|
|
13
|
-
return useQuery(['GetArtifactManifests', props.queryParams], ({ signal }) => getArtifactManifests(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { LayersResponseResponse } from '../responses/LayersResponseResponse';
|
|
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 GetLayersQueryQueryParams {
|
|
10
|
-
repokey?: string;
|
|
11
|
-
artifact: string;
|
|
12
|
-
digest: string;
|
|
13
|
-
}
|
|
14
|
-
export interface GetLayersQueryHeaderParams {
|
|
15
|
-
'Harness-Account'?: string;
|
|
16
|
-
}
|
|
17
|
-
export type GetLayersOkResponse = ResponseWithPagination<LayersResponseResponse>;
|
|
18
|
-
export type GetLayersErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
-
export interface GetLayersProps extends Omit<FetcherOptions<GetLayersQueryQueryParams, unknown, GetLayersQueryHeaderParams>, 'url'> {
|
|
20
|
-
queryParams: GetLayersQueryQueryParams;
|
|
21
|
-
}
|
|
22
|
-
export declare function getLayers(props: GetLayersProps): Promise<GetLayersOkResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Get Layers
|
|
25
|
-
*/
|
|
26
|
-
export declare function useGetLayersQuery(props: GetLayersProps, options?: Omit<UseQueryOptions<GetLayersOkResponse, GetLayersErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetLayersOkResponse, 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 getLayers(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/artifacts/versions/layers`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get Layers
|
|
11
|
-
*/
|
|
12
|
-
export function useGetLayersQuery(props, options) {
|
|
13
|
-
return useQuery(['GetLayers', props.queryParams], ({ signal }) => getLayers(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
|
-
}
|
|
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/{ArtifactManifest.js → DockerArtifactManifest.js}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/har-service/src/services/schemas/{ListUpstreamProxy.js → DockerLayersSummary.js}
RENAMED
|
File without changes
|
/package/dist/har-service/src/services/schemas/{ManifestDetails.js → DockerManifestDetails.js}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/har-service/src/services/schemas/{UpstreamProxyMetadata.js → HelmArtifactDetail.js}
RENAMED
|
File without changes
|