@harnessio/react-har-service-client 0.0.8 → 0.0.10
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/useCreateRegistryMutation.d.ts +23 -0
- package/dist/har-service/src/services/hooks/useCreateRegistryMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useDeleteRegistryMutation.d.ts +20 -0
- package/dist/har-service/src/services/hooks/useDeleteRegistryMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.d.ts +14 -7
- package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.d.ts +18 -9
- package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetAllRegistriesQuery.d.ts +43 -0
- package/dist/har-service/src/services/hooks/useGetAllRegistriesQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsForRegistryQuery.d.ts +25 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsForRegistryQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsForSpaceQuery.d.ts +25 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsForSpaceQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsQuery.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.d.ts +3 -7
- package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +3 -7
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.d.ts +3 -7
- package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.d.ts +5 -6
- package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.js +8 -2
- package/dist/har-service/src/services/hooks/useGetDockerArtifactLayersQuery.d.ts +6 -6
- package/dist/har-service/src/services/hooks/useGetDockerArtifactLayersQuery.js +8 -2
- package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestQuery.d.ts +6 -6
- package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestQuery.js +8 -2
- package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.d.ts +3 -7
- package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.d.ts +3 -7
- package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetHelmArtifactManifestQuery.d.ts +3 -7
- package/dist/har-service/src/services/hooks/useGetHelmArtifactManifestQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetRegistryQuery.d.ts +20 -0
- package/dist/har-service/src/services/hooks/useGetRegistryQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useListArtifactLabelsQuery.d.ts +34 -0
- package/dist/har-service/src/services/hooks/useListArtifactLabelsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useModifyRegistryMutation.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useModifyRegistryMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useUpdateArtifactLabelsMutation.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useUpdateArtifactLabelsMutation.js +14 -0
- package/dist/har-service/src/services/index.d.ts +49 -44
- package/dist/har-service/src/services/index.js +10 -9
- package/dist/har-service/src/services/requestBodies/ArtifactLabelRequestRequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/RegistryRequestRequestBody.d.ts +2 -0
- package/dist/har-service/src/services/responses/ArtifactLabelResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ArtifactStatsResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListArtifactLabelResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListRegistryResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/RegistryResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/schemas/ArtifactLabelRequest.d.ts +3 -0
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +2 -1
- package/dist/har-service/src/services/schemas/ArtifactStats.d.ts +9 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +2 -0
- package/dist/har-service/src/services/schemas/CleanupPolicy.d.ts +4 -5
- package/dist/har-service/src/services/schemas/DockerArtifactDetail.d.ts +1 -1
- package/dist/har-service/src/services/schemas/HelmArtifactDetail.d.ts +1 -1
- package/dist/har-service/src/services/schemas/ListArtifactLabel.d.ts +26 -0
- package/dist/har-service/src/services/schemas/ListArtifactLabel.js +4 -0
- package/dist/har-service/src/services/schemas/{ListRepository.d.ts → ListRegistry.d.ts} +5 -5
- package/dist/har-service/src/services/schemas/Registry.d.ts +19 -0
- package/dist/har-service/src/services/schemas/RegistryConfig.d.ts +6 -0
- package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +18 -0
- package/dist/har-service/src/services/schemas/RegistryRequest.d.ts +13 -0
- package/dist/har-service/src/services/schemas/RegistryType.d.ts +4 -0
- package/dist/har-service/src/services/schemas/RegistryType.js +4 -0
- package/dist/har-service/src/services/schemas/{UpstreamProxyConfig.d.ts → UpstreamConfig.d.ts} +3 -3
- package/dist/har-service/src/services/schemas/VirtualConfig.d.ts +6 -0
- package/dist/har-service/src/services/schemas/VirtualConfig.js +4 -0
- package/package.json +1 -1
- package/dist/har-service/src/services/hooks/useCreateRepositoryMutation.d.ts +0 -27
- package/dist/har-service/src/services/hooks/useCreateRepositoryMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useCreateUpstreamProxyMutation.d.ts +0 -27
- package/dist/har-service/src/services/hooks/useCreateUpstreamProxyMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useDeleteRepositoryMutation.d.ts +0 -28
- package/dist/har-service/src/services/hooks/useDeleteRepositoryMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useDeleteUpstreamProxyMutation.d.ts +0 -28
- package/dist/har-service/src/services/hooks/useDeleteUpstreamProxyMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useGetAllRepositoriesQuery.d.ts +0 -31
- package/dist/har-service/src/services/hooks/useGetAllRepositoriesQuery.js +0 -14
- package/dist/har-service/src/services/hooks/useGetRepositoryQuery.d.ts +0 -28
- package/dist/har-service/src/services/hooks/useGetRepositoryQuery.js +0 -14
- package/dist/har-service/src/services/hooks/useGetUpstreamProxyQuery.d.ts +0 -28
- package/dist/har-service/src/services/hooks/useGetUpstreamProxyQuery.js +0 -14
- package/dist/har-service/src/services/hooks/useModifyRepositoryMutation.d.ts +0 -32
- package/dist/har-service/src/services/hooks/useModifyRepositoryMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useModifyUpstreamProxyMutation.d.ts +0 -32
- package/dist/har-service/src/services/hooks/useModifyUpstreamProxyMutation.js +0 -14
- package/dist/har-service/src/services/requestBodies/RepositoryRequestRequestBody.d.ts +0 -2
- package/dist/har-service/src/services/requestBodies/UpstreamProxyRequestRequestBody.d.ts +0 -2
- package/dist/har-service/src/services/responses/ListRepositoryResponseResponse.d.ts +0 -6
- package/dist/har-service/src/services/responses/RepositoryResponseResponse.d.ts +0 -6
- package/dist/har-service/src/services/responses/UpstreamProxyResponseResponse.d.ts +0 -6
- package/dist/har-service/src/services/schemas/Label.d.ts +0 -6
- package/dist/har-service/src/services/schemas/Repository.d.ts +0 -20
- package/dist/har-service/src/services/schemas/RepositoryConfig.d.ts +0 -8
- package/dist/har-service/src/services/schemas/RepositoryMetadata.d.ts +0 -18
- package/dist/har-service/src/services/schemas/RepositoryRequest.d.ts +0 -14
- package/dist/har-service/src/services/schemas/Type.d.ts +0 -4
- package/dist/har-service/src/services/schemas/UpstreamProxy.d.ts +0 -15
- package/dist/har-service/src/services/schemas/UpstreamProxyRequest.d.ts +0 -10
- /package/dist/har-service/src/services/requestBodies/{RepositoryRequestRequestBody.js → ArtifactLabelRequestRequestBody.js} +0 -0
- /package/dist/har-service/src/services/requestBodies/{UpstreamProxyRequestRequestBody.js → RegistryRequestRequestBody.js} +0 -0
- /package/dist/har-service/src/services/responses/{ListRepositoryResponseResponse.js → ArtifactLabelResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/responses/{RepositoryResponseResponse.js → ArtifactStatsResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/responses/{UpstreamProxyResponseResponse.js → ListArtifactLabelResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/{schemas/ListRepository.js → responses/ListRegistryResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/{schemas/Repository.js → responses/RegistryResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/schemas/{Label.js → ArtifactLabelRequest.js} +0 -0
- /package/dist/har-service/src/services/schemas/{Type.js → ArtifactStats.js} +0 -0
- /package/dist/har-service/src/services/schemas/{RepositoryConfig.js → ListRegistry.js} +0 -0
- /package/dist/har-service/src/services/schemas/{RepositoryMetadata.js → Registry.js} +0 -0
- /package/dist/har-service/src/services/schemas/{RepositoryRequest.js → RegistryConfig.js} +0 -0
- /package/dist/har-service/src/services/schemas/{UpstreamProxy.js → RegistryMetadata.js} +0 -0
- /package/dist/har-service/src/services/schemas/{UpstreamProxyConfig.js → RegistryRequest.js} +0 -0
- /package/dist/har-service/src/services/schemas/{UpstreamProxyRequest.js → UpstreamConfig.js} +0 -0
|
@@ -4,11 +4,17 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getDockerArtifactManifest(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/manifest`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get Docker Artifact Manifest
|
|
11
11
|
*/
|
|
12
12
|
export function useGetDockerArtifactManifestQuery(props, options) {
|
|
13
|
-
return useQuery([
|
|
13
|
+
return useQuery([
|
|
14
|
+
'GetDockerArtifactManifest',
|
|
15
|
+
props.registry_ref,
|
|
16
|
+
props.artifact,
|
|
17
|
+
props.version,
|
|
18
|
+
props.queryParams,
|
|
19
|
+
], ({ signal }) => getDockerArtifactManifest(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
20
|
}
|
|
@@ -6,18 +6,14 @@ import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
|
6
6
|
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
7
|
import type { ResponseWithPagination } from '../helpers';
|
|
8
8
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
-
export interface
|
|
10
|
-
|
|
9
|
+
export interface GetDockerArtifactManifestsQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
11
|
artifact: string;
|
|
12
12
|
version: string;
|
|
13
13
|
}
|
|
14
|
-
export interface GetDockerArtifactManifestsQueryHeaderParams {
|
|
15
|
-
'Harness-Account'?: string;
|
|
16
|
-
}
|
|
17
14
|
export type GetDockerArtifactManifestsOkResponse = ResponseWithPagination<DockerManifestsResponseResponse>;
|
|
18
15
|
export type GetDockerArtifactManifestsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
-
export interface GetDockerArtifactManifestsProps extends Omit<FetcherOptions<
|
|
20
|
-
queryParams: GetDockerArtifactManifestsQueryQueryParams;
|
|
16
|
+
export interface GetDockerArtifactManifestsProps extends GetDockerArtifactManifestsQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
21
17
|
}
|
|
22
18
|
export declare function getDockerArtifactManifests(props: GetDockerArtifactManifestsProps): Promise<GetDockerArtifactManifestsOkResponse>;
|
|
23
19
|
/**
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getDockerArtifactManifests(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/manifests`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get Docker Artifact Manifests
|
|
11
11
|
*/
|
|
12
12
|
export function useGetDockerArtifactManifestsQuery(props, options) {
|
|
13
|
-
return useQuery(['GetDockerArtifactManifests', props.
|
|
13
|
+
return useQuery(['GetDockerArtifactManifests', props.registry_ref, props.artifact, props.version], ({ signal }) => getDockerArtifactManifests(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -6,18 +6,14 @@ import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
|
6
6
|
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
7
|
import type { ResponseWithPagination } from '../helpers';
|
|
8
8
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
-
export interface
|
|
10
|
-
|
|
9
|
+
export interface GetHelmArtifactDetailsQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
11
|
artifact: string;
|
|
12
12
|
version: string;
|
|
13
13
|
}
|
|
14
|
-
export interface GetHelmArtifactDetailsQueryHeaderParams {
|
|
15
|
-
'Harness-Account'?: string;
|
|
16
|
-
}
|
|
17
14
|
export type GetHelmArtifactDetailsOkResponse = ResponseWithPagination<HelmArtifactDetailResponseResponse>;
|
|
18
15
|
export type GetHelmArtifactDetailsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
-
export interface GetHelmArtifactDetailsProps extends Omit<FetcherOptions<
|
|
20
|
-
queryParams: GetHelmArtifactDetailsQueryQueryParams;
|
|
16
|
+
export interface GetHelmArtifactDetailsProps extends GetHelmArtifactDetailsQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
21
17
|
}
|
|
22
18
|
export declare function getHelmArtifactDetails(props: GetHelmArtifactDetailsProps): Promise<GetHelmArtifactDetailsOkResponse>;
|
|
23
19
|
/**
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getHelmArtifactDetails(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/helm/details`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get Helm Artifact Details
|
|
11
11
|
*/
|
|
12
12
|
export function useGetHelmArtifactDetailsQuery(props, options) {
|
|
13
|
-
return useQuery(['GetHelmArtifactDetails', props.
|
|
13
|
+
return useQuery(['GetHelmArtifactDetails', props.registry_ref, props.artifact, props.version], ({ signal }) => getHelmArtifactDetails(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -6,18 +6,14 @@ import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
|
6
6
|
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
7
|
import type { ResponseWithPagination } from '../helpers';
|
|
8
8
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
-
export interface
|
|
10
|
-
|
|
9
|
+
export interface GetHelmArtifactManifestQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
11
|
artifact: string;
|
|
12
12
|
version: string;
|
|
13
13
|
}
|
|
14
|
-
export interface GetHelmArtifactManifestQueryHeaderParams {
|
|
15
|
-
'Harness-Account'?: string;
|
|
16
|
-
}
|
|
17
14
|
export type GetHelmArtifactManifestOkResponse = ResponseWithPagination<HelmArtifactManifestResponseResponse>;
|
|
18
15
|
export type GetHelmArtifactManifestErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
-
export interface GetHelmArtifactManifestProps extends Omit<FetcherOptions<
|
|
20
|
-
queryParams: GetHelmArtifactManifestQueryQueryParams;
|
|
16
|
+
export interface GetHelmArtifactManifestProps extends GetHelmArtifactManifestQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
21
17
|
}
|
|
22
18
|
export declare function getHelmArtifactManifest(props: GetHelmArtifactManifestProps): Promise<GetHelmArtifactManifestOkResponse>;
|
|
23
19
|
/**
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getHelmArtifactManifest(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/helm/manifest`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get Helm Artifact Manifest
|
|
11
11
|
*/
|
|
12
12
|
export function useGetHelmArtifactManifestQuery(props, options) {
|
|
13
|
-
return useQuery(['GetHelmArtifactManifest', props.
|
|
13
|
+
return useQuery(['GetHelmArtifactManifest', props.registry_ref, props.artifact, props.version], ({ signal }) => getHelmArtifactManifest(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RegistryResponseResponse } from '../responses/RegistryResponseResponse';
|
|
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 GetRegistryQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetRegistryOkResponse = ResponseWithPagination<RegistryResponseResponse>;
|
|
13
|
+
export type GetRegistryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
14
|
+
export interface GetRegistryProps extends GetRegistryQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
15
|
+
}
|
|
16
|
+
export declare function getRegistry(props: GetRegistryProps): Promise<GetRegistryOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns Registry Details in the account for the given key
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetRegistryQuery(props: GetRegistryProps, options?: Omit<UseQueryOptions<GetRegistryOkResponse, GetRegistryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRegistryOkResponse, 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 getRegistry(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns Registry Details in the account for the given key
|
|
11
|
+
*/
|
|
12
|
+
export function useGetRegistryQuery(props, options) {
|
|
13
|
+
return useQuery(['GetRegistry', props.registry_ref], ({ signal }) => getRegistry(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListArtifactLabelResponseResponse } from '../responses/ListArtifactLabelResponseResponse';
|
|
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 ListArtifactLabelsQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ListArtifactLabelsQueryQueryParams {
|
|
13
|
+
/**
|
|
14
|
+
* @format int32
|
|
15
|
+
* @default 1
|
|
16
|
+
*/
|
|
17
|
+
page?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @format int32
|
|
20
|
+
* @default 20
|
|
21
|
+
*/
|
|
22
|
+
size?: number;
|
|
23
|
+
search_term?: string;
|
|
24
|
+
}
|
|
25
|
+
export type ListArtifactLabelsOkResponse = ResponseWithPagination<ListArtifactLabelResponseResponse>;
|
|
26
|
+
export type ListArtifactLabelsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
27
|
+
export interface ListArtifactLabelsProps extends ListArtifactLabelsQueryPathParams, Omit<FetcherOptions<ListArtifactLabelsQueryQueryParams, unknown>, 'url'> {
|
|
28
|
+
queryParams: ListArtifactLabelsQueryQueryParams;
|
|
29
|
+
}
|
|
30
|
+
export declare function listArtifactLabels(props: ListArtifactLabelsProps): Promise<ListArtifactLabelsOkResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* List Artifact Labels.
|
|
33
|
+
*/
|
|
34
|
+
export declare function useListArtifactLabelsQuery(props: ListArtifactLabelsProps, options?: Omit<UseQueryOptions<ListArtifactLabelsOkResponse, ListArtifactLabelsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListArtifactLabelsOkResponse, 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 listArtifactLabels(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/labels`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List Artifact Labels.
|
|
11
|
+
*/
|
|
12
|
+
export function useListArtifactLabelsQuery(props, options) {
|
|
13
|
+
return useQuery(['ListArtifactLabels', props.registry_ref, props.queryParams], ({ signal }) => listArtifactLabels(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RegistryResponseResponse } from '../responses/RegistryResponseResponse';
|
|
3
|
+
import type { BadRequestResponse } from '../responses/BadRequestResponse';
|
|
4
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
5
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
6
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
7
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
8
|
+
import type { RegistryRequestRequestBody } from '../requestBodies/RegistryRequestRequestBody';
|
|
9
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
10
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
11
|
+
export interface ModifyRegistryMutationPathParams {
|
|
12
|
+
registry_ref: string;
|
|
13
|
+
}
|
|
14
|
+
export type ModifyRegistryRequestBody = RegistryRequestRequestBody;
|
|
15
|
+
export type ModifyRegistryOkResponse = ResponseWithPagination<RegistryResponseResponse>;
|
|
16
|
+
export type ModifyRegistryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
17
|
+
export interface ModifyRegistryProps extends ModifyRegistryMutationPathParams, Omit<FetcherOptions<unknown, ModifyRegistryRequestBody>, 'url'> {
|
|
18
|
+
body: ModifyRegistryRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export declare function modifyRegistry(props: ModifyRegistryProps): Promise<ModifyRegistryOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Updates a Registry in the account for the given key
|
|
23
|
+
*/
|
|
24
|
+
export declare function useModifyRegistryMutation(options?: Omit<UseMutationOptions<ModifyRegistryOkResponse, ModifyRegistryErrorResponse, ModifyRegistryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ModifyRegistryOkResponse, import("..").Error, ModifyRegistryProps, unknown>;
|
|
@@ -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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function modifyRegistry(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Updates a Registry in the account for the given key
|
|
11
|
+
*/
|
|
12
|
+
export function useModifyRegistryMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => modifyRegistry(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactLabelResponseResponse } from '../responses/ArtifactLabelResponseResponse';
|
|
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 { ArtifactLabelRequestRequestBody } from '../requestBodies/ArtifactLabelRequestRequestBody';
|
|
8
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
9
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
10
|
+
export interface UpdateArtifactLabelsMutationPathParams {
|
|
11
|
+
registry_ref: string;
|
|
12
|
+
artifact: string;
|
|
13
|
+
}
|
|
14
|
+
export type UpdateArtifactLabelsRequestBody = ArtifactLabelRequestRequestBody;
|
|
15
|
+
export type UpdateArtifactLabelsOkResponse = ResponseWithPagination<ArtifactLabelResponseResponse>;
|
|
16
|
+
export type UpdateArtifactLabelsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
17
|
+
export interface UpdateArtifactLabelsProps extends UpdateArtifactLabelsMutationPathParams, Omit<FetcherOptions<unknown, UpdateArtifactLabelsRequestBody>, 'url'> {
|
|
18
|
+
body: UpdateArtifactLabelsRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export declare function updateArtifactLabels(props: UpdateArtifactLabelsProps): Promise<UpdateArtifactLabelsOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Update Artifact Labels.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useUpdateArtifactLabelsMutation(options?: Omit<UseMutationOptions<UpdateArtifactLabelsOkResponse, UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateArtifactLabelsOkResponse, import("..").Error, UpdateArtifactLabelsProps, unknown>;
|
|
@@ -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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function updateArtifactLabels(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/labels`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update Artifact Labels.
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateArtifactLabelsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateArtifactLabels(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -1,46 +1,50 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
|
-
export type {
|
|
3
|
-
export {
|
|
4
|
-
export type {
|
|
5
|
-
export {
|
|
6
|
-
export type {
|
|
7
|
-
export { deleteRepository, useDeleteRepositoryMutation } from './hooks/useDeleteRepositoryMutation';
|
|
8
|
-
export type { DeleteUpstreamProxyErrorResponse, DeleteUpstreamProxyMutationPathParams, DeleteUpstreamProxyMutationQueryParams, DeleteUpstreamProxyOkResponse, DeleteUpstreamProxyProps, } from './hooks/useDeleteUpstreamProxyMutation';
|
|
9
|
-
export { deleteUpstreamProxy, useDeleteUpstreamProxyMutation, } from './hooks/useDeleteUpstreamProxyMutation';
|
|
10
|
-
export type { GetAllArtifactVersionsErrorResponse, GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsProps, GetAllArtifactVersionsQueryQueryParams, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
2
|
+
export type { CreateRegistryErrorResponse, CreateRegistryMutationQueryParams, CreateRegistryOkResponse, CreateRegistryProps, CreateRegistryRequestBody, } from './hooks/useCreateRegistryMutation';
|
|
3
|
+
export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
|
|
4
|
+
export type { DeleteRegistryErrorResponse, DeleteRegistryMutationPathParams, DeleteRegistryOkResponse, DeleteRegistryProps, } from './hooks/useDeleteRegistryMutation';
|
|
5
|
+
export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
|
|
6
|
+
export type { GetAllArtifactVersionsErrorResponse, GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsProps, GetAllArtifactVersionsQueryPathParams, GetAllArtifactVersionsQueryQueryParams, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
11
7
|
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
12
|
-
export type { GetAllArtifactsErrorResponse, GetAllArtifactsOkResponse, GetAllArtifactsProps, GetAllArtifactsQueryQueryParams, } from './hooks/useGetAllArtifactsQuery';
|
|
8
|
+
export type { GetAllArtifactsErrorResponse, GetAllArtifactsOkResponse, GetAllArtifactsProps, GetAllArtifactsQueryPathParams, GetAllArtifactsQueryQueryParams, } from './hooks/useGetAllArtifactsQuery';
|
|
13
9
|
export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
|
|
14
|
-
export type {
|
|
15
|
-
export {
|
|
16
|
-
export type {
|
|
10
|
+
export type { GetAllRegistriesErrorResponse, GetAllRegistriesOkResponse, GetAllRegistriesProps, GetAllRegistriesQueryPathParams, GetAllRegistriesQueryQueryParams, } from './hooks/useGetAllRegistriesQuery';
|
|
11
|
+
export { getAllRegistries, useGetAllRegistriesQuery } from './hooks/useGetAllRegistriesQuery';
|
|
12
|
+
export type { GetArtifactStatsForRegistryErrorResponse, GetArtifactStatsForRegistryOkResponse, GetArtifactStatsForRegistryProps, GetArtifactStatsForRegistryQueryPathParams, GetArtifactStatsForRegistryQueryQueryParams, } from './hooks/useGetArtifactStatsForRegistryQuery';
|
|
13
|
+
export { getArtifactStatsForRegistry, useGetArtifactStatsForRegistryQuery, } from './hooks/useGetArtifactStatsForRegistryQuery';
|
|
14
|
+
export type { GetArtifactStatsForSpaceErrorResponse, GetArtifactStatsForSpaceOkResponse, GetArtifactStatsForSpaceProps, GetArtifactStatsForSpaceQueryPathParams, GetArtifactStatsForSpaceQueryQueryParams, } from './hooks/useGetArtifactStatsForSpaceQuery';
|
|
15
|
+
export { getArtifactStatsForSpace, useGetArtifactStatsForSpaceQuery, } from './hooks/useGetArtifactStatsForSpaceQuery';
|
|
16
|
+
export type { GetArtifactStatsErrorResponse, GetArtifactStatsOkResponse, GetArtifactStatsProps, GetArtifactStatsQueryPathParams, GetArtifactStatsQueryQueryParams, } from './hooks/useGetArtifactStatsQuery';
|
|
17
|
+
export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifactStatsQuery';
|
|
18
|
+
export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, GetArtifactSummaryProps, GetArtifactSummaryQueryPathParams, } from './hooks/useGetArtifactSummaryQuery';
|
|
17
19
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
18
|
-
export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps,
|
|
20
|
+
export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryPathParams, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
19
21
|
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
20
|
-
export type { GetClientSetupDetailsErrorResponse, GetClientSetupDetailsOkResponse, GetClientSetupDetailsProps,
|
|
22
|
+
export type { GetClientSetupDetailsErrorResponse, GetClientSetupDetailsOkResponse, GetClientSetupDetailsProps, GetClientSetupDetailsQueryPathParams, } from './hooks/useGetClientSetupDetailsQuery';
|
|
21
23
|
export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
|
|
22
|
-
export type { GetDockerArtifactDetailsErrorResponse, GetDockerArtifactDetailsOkResponse, GetDockerArtifactDetailsProps, GetDockerArtifactDetailsQueryQueryParams, } from './hooks/useGetDockerArtifactDetailsQuery';
|
|
24
|
+
export type { GetDockerArtifactDetailsErrorResponse, GetDockerArtifactDetailsOkResponse, GetDockerArtifactDetailsProps, GetDockerArtifactDetailsQueryPathParams, GetDockerArtifactDetailsQueryQueryParams, } from './hooks/useGetDockerArtifactDetailsQuery';
|
|
23
25
|
export { getDockerArtifactDetails, useGetDockerArtifactDetailsQuery, } from './hooks/useGetDockerArtifactDetailsQuery';
|
|
24
|
-
export type { GetDockerArtifactLayersErrorResponse, GetDockerArtifactLayersOkResponse, GetDockerArtifactLayersProps, GetDockerArtifactLayersQueryQueryParams, } from './hooks/useGetDockerArtifactLayersQuery';
|
|
26
|
+
export type { GetDockerArtifactLayersErrorResponse, GetDockerArtifactLayersOkResponse, GetDockerArtifactLayersProps, GetDockerArtifactLayersQueryPathParams, GetDockerArtifactLayersQueryQueryParams, } from './hooks/useGetDockerArtifactLayersQuery';
|
|
25
27
|
export { getDockerArtifactLayers, useGetDockerArtifactLayersQuery, } from './hooks/useGetDockerArtifactLayersQuery';
|
|
26
|
-
export type { GetDockerArtifactManifestErrorResponse, GetDockerArtifactManifestOkResponse, GetDockerArtifactManifestProps, GetDockerArtifactManifestQueryQueryParams, } from './hooks/useGetDockerArtifactManifestQuery';
|
|
28
|
+
export type { GetDockerArtifactManifestErrorResponse, GetDockerArtifactManifestOkResponse, GetDockerArtifactManifestProps, GetDockerArtifactManifestQueryPathParams, GetDockerArtifactManifestQueryQueryParams, } from './hooks/useGetDockerArtifactManifestQuery';
|
|
27
29
|
export { getDockerArtifactManifest, useGetDockerArtifactManifestQuery, } from './hooks/useGetDockerArtifactManifestQuery';
|
|
28
|
-
export type { GetDockerArtifactManifestsErrorResponse, GetDockerArtifactManifestsOkResponse, GetDockerArtifactManifestsProps,
|
|
30
|
+
export type { GetDockerArtifactManifestsErrorResponse, GetDockerArtifactManifestsOkResponse, GetDockerArtifactManifestsProps, GetDockerArtifactManifestsQueryPathParams, } from './hooks/useGetDockerArtifactManifestsQuery';
|
|
29
31
|
export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from './hooks/useGetDockerArtifactManifestsQuery';
|
|
30
|
-
export type { GetHelmArtifactDetailsErrorResponse, GetHelmArtifactDetailsOkResponse, GetHelmArtifactDetailsProps,
|
|
32
|
+
export type { GetHelmArtifactDetailsErrorResponse, GetHelmArtifactDetailsOkResponse, GetHelmArtifactDetailsProps, GetHelmArtifactDetailsQueryPathParams, } from './hooks/useGetHelmArtifactDetailsQuery';
|
|
31
33
|
export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
|
|
32
|
-
export type { GetHelmArtifactManifestErrorResponse, GetHelmArtifactManifestOkResponse, GetHelmArtifactManifestProps,
|
|
34
|
+
export type { GetHelmArtifactManifestErrorResponse, GetHelmArtifactManifestOkResponse, GetHelmArtifactManifestProps, GetHelmArtifactManifestQueryPathParams, } from './hooks/useGetHelmArtifactManifestQuery';
|
|
33
35
|
export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
|
|
34
|
-
export type {
|
|
35
|
-
export {
|
|
36
|
-
export type {
|
|
37
|
-
export {
|
|
38
|
-
export type {
|
|
39
|
-
export {
|
|
40
|
-
export type {
|
|
41
|
-
export {
|
|
42
|
-
export type {
|
|
43
|
-
export type {
|
|
36
|
+
export type { GetRegistryErrorResponse, GetRegistryOkResponse, GetRegistryProps, GetRegistryQueryPathParams, } from './hooks/useGetRegistryQuery';
|
|
37
|
+
export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
|
|
38
|
+
export type { ListArtifactLabelsErrorResponse, ListArtifactLabelsOkResponse, ListArtifactLabelsProps, ListArtifactLabelsQueryPathParams, ListArtifactLabelsQueryQueryParams, } from './hooks/useListArtifactLabelsQuery';
|
|
39
|
+
export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
|
|
40
|
+
export type { ModifyRegistryErrorResponse, ModifyRegistryMutationPathParams, ModifyRegistryOkResponse, ModifyRegistryProps, ModifyRegistryRequestBody, } from './hooks/useModifyRegistryMutation';
|
|
41
|
+
export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
|
|
42
|
+
export type { UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsMutationPathParams, UpdateArtifactLabelsOkResponse, UpdateArtifactLabelsProps, UpdateArtifactLabelsRequestBody, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
43
|
+
export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
44
|
+
export type { ArtifactLabelRequestRequestBody } from './requestBodies/ArtifactLabelRequestRequestBody';
|
|
45
|
+
export type { RegistryRequestRequestBody } from './requestBodies/RegistryRequestRequestBody';
|
|
46
|
+
export type { ArtifactLabelResponseResponse } from './responses/ArtifactLabelResponseResponse';
|
|
47
|
+
export type { ArtifactStatsResponseResponse } from './responses/ArtifactStatsResponseResponse';
|
|
44
48
|
export type { ArtifactSummaryResponseResponse } from './responses/ArtifactSummaryResponseResponse';
|
|
45
49
|
export type { ArtifactVersionSummaryResponseResponse } from './responses/ArtifactVersionSummaryResponseResponse';
|
|
46
50
|
export type { BadRequestResponse } from './responses/BadRequestResponse';
|
|
@@ -52,17 +56,19 @@ export type { DockerManifestsResponseResponse } from './responses/DockerManifest
|
|
|
52
56
|
export type { HelmArtifactDetailResponseResponse } from './responses/HelmArtifactDetailResponseResponse';
|
|
53
57
|
export type { HelmArtifactManifestResponseResponse } from './responses/HelmArtifactManifestResponseResponse';
|
|
54
58
|
export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
|
|
59
|
+
export type { ListArtifactLabelResponseResponse } from './responses/ListArtifactLabelResponseResponse';
|
|
55
60
|
export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
|
|
56
61
|
export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
|
|
57
|
-
export type {
|
|
62
|
+
export type { ListRegistryResponseResponse } from './responses/ListRegistryResponseResponse';
|
|
58
63
|
export type { NotFoundResponse } from './responses/NotFoundResponse';
|
|
59
|
-
export type {
|
|
64
|
+
export type { RegistryResponseResponse } from './responses/RegistryResponseResponse';
|
|
60
65
|
export type { SuccessResponse } from './responses/SuccessResponse';
|
|
61
66
|
export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
|
|
62
67
|
export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
|
|
63
|
-
export type { UpstreamProxyResponseResponse } from './responses/UpstreamProxyResponseResponse';
|
|
64
68
|
export type { Anonymous } from './schemas/Anonymous';
|
|
69
|
+
export type { ArtifactLabelRequest } from './schemas/ArtifactLabelRequest';
|
|
65
70
|
export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
|
|
71
|
+
export type { ArtifactStats } from './schemas/ArtifactStats';
|
|
66
72
|
export type { ArtifactSummary } from './schemas/ArtifactSummary';
|
|
67
73
|
export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
|
|
68
74
|
export type { ArtifactVersionSummary } from './schemas/ArtifactVersionSummary';
|
|
@@ -80,18 +86,17 @@ export type { DockerManifests } from './schemas/DockerManifests';
|
|
|
80
86
|
export type { Error } from './schemas/Error';
|
|
81
87
|
export type { HelmArtifactDetail } from './schemas/HelmArtifactDetail';
|
|
82
88
|
export type { HelmArtifactManifest } from './schemas/HelmArtifactManifest';
|
|
83
|
-
export type { Label } from './schemas/Label';
|
|
84
89
|
export type { ListArtifact } from './schemas/ListArtifact';
|
|
90
|
+
export type { ListArtifactLabel } from './schemas/ListArtifactLabel';
|
|
85
91
|
export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
|
|
86
|
-
export type {
|
|
92
|
+
export type { ListRegistry } from './schemas/ListRegistry';
|
|
87
93
|
export type { PackageType } from './schemas/PackageType';
|
|
88
|
-
export type {
|
|
89
|
-
export type {
|
|
90
|
-
export type {
|
|
91
|
-
export type {
|
|
94
|
+
export type { Registry } from './schemas/Registry';
|
|
95
|
+
export type { RegistryConfig } from './schemas/RegistryConfig';
|
|
96
|
+
export type { RegistryMetadata } from './schemas/RegistryMetadata';
|
|
97
|
+
export type { RegistryRequest } from './schemas/RegistryRequest';
|
|
98
|
+
export type { RegistryType } from './schemas/RegistryType';
|
|
92
99
|
export type { Status } from './schemas/Status';
|
|
93
|
-
export type {
|
|
94
|
-
export type { UpstreamProxy } from './schemas/UpstreamProxy';
|
|
95
|
-
export type { UpstreamProxyConfig } from './schemas/UpstreamProxyConfig';
|
|
96
|
-
export type { UpstreamProxyRequest } from './schemas/UpstreamProxyRequest';
|
|
100
|
+
export type { UpstreamConfig } from './schemas/UpstreamConfig';
|
|
97
101
|
export type { UserPassword } from './schemas/UserPassword';
|
|
102
|
+
export type { VirtualConfig } from './schemas/VirtualConfig';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { deleteRepository, useDeleteRepositoryMutation } from './hooks/useDeleteRepositoryMutation';
|
|
4
|
-
export { deleteUpstreamProxy, useDeleteUpstreamProxyMutation, } from './hooks/useDeleteUpstreamProxyMutation';
|
|
1
|
+
export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
|
|
2
|
+
export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
|
|
5
3
|
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
6
4
|
export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
|
|
7
|
-
export {
|
|
5
|
+
export { getAllRegistries, useGetAllRegistriesQuery } from './hooks/useGetAllRegistriesQuery';
|
|
6
|
+
export { getArtifactStatsForRegistry, useGetArtifactStatsForRegistryQuery, } from './hooks/useGetArtifactStatsForRegistryQuery';
|
|
7
|
+
export { getArtifactStatsForSpace, useGetArtifactStatsForSpaceQuery, } from './hooks/useGetArtifactStatsForSpaceQuery';
|
|
8
|
+
export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifactStatsQuery';
|
|
8
9
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
9
10
|
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
10
11
|
export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
|
|
@@ -14,7 +15,7 @@ export { getDockerArtifactManifest, useGetDockerArtifactManifestQuery, } from '.
|
|
|
14
15
|
export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from './hooks/useGetDockerArtifactManifestsQuery';
|
|
15
16
|
export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
|
|
16
17
|
export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
18
|
+
export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
|
|
19
|
+
export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
|
|
20
|
+
export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
|
|
21
|
+
export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Cleanup Policy for Harness Artifact
|
|
2
|
+
* Cleanup Policy for Harness Artifact Registries
|
|
3
3
|
*/
|
|
4
4
|
export interface CleanupPolicy {
|
|
5
|
-
|
|
6
|
-
filePatterns?: {
|
|
7
|
-
[key: string]: string;
|
|
8
|
-
};
|
|
5
|
+
expireDays?: number;
|
|
9
6
|
name?: string;
|
|
7
|
+
packagePrefix?: string[];
|
|
8
|
+
versionPrefix?: string[];
|
|
10
9
|
}
|