@harnessio/react-har-service-client 0.0.7 → 0.0.9
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/README.md +2 -2
- 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/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/useModifyRegistryMutation.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useModifyRegistryMutation.js +14 -0
- package/dist/har-service/src/services/index.d.ts +32 -43
- package/dist/har-service/src/services/index.js +5 -9
- package/dist/har-service/src/services/requestBodies/RegistryRequestRequestBody.d.ts +2 -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/ArtifactMetadata.d.ts +2 -1
- 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/{ListRepository.d.ts → ListRegistry.d.ts} +5 -5
- package/dist/har-service/src/services/schemas/Registry.d.ts +20 -0
- package/dist/har-service/src/services/schemas/RegistryConfig.d.ts +6 -0
- package/dist/har-service/src/services/schemas/{RepositoryMetadata.d.ts → RegistryMetadata.d.ts} +7 -6
- package/dist/har-service/src/services/schemas/RegistryRequest.d.ts +14 -0
- package/dist/har-service/src/services/schemas/RegistryType.d.ts +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/Repository.d.ts +0 -20
- package/dist/har-service/src/services/schemas/RepositoryConfig.d.ts +0 -8
- package/dist/har-service/src/services/schemas/RepositoryRequest.d.ts +0 -14
- package/dist/har-service/src/services/schemas/RepositoryRequest.js +0 -1
- 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/UpstreamProxy.js +0 -1
- package/dist/har-service/src/services/schemas/UpstreamProxyConfig.js +0 -1
- package/dist/har-service/src/services/schemas/UpstreamProxyRequest.d.ts +0 -10
- package/dist/har-service/src/services/schemas/UpstreamProxyRequest.js +0 -1
- /package/dist/har-service/src/services/requestBodies/{RepositoryRequestRequestBody.js → RegistryRequestRequestBody.js} +0 -0
- /package/dist/har-service/src/services/{requestBodies/UpstreamProxyRequestRequestBody.js → responses/ListRegistryResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/responses/{ListRepositoryResponseResponse.js → RegistryResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/{responses/RepositoryResponseResponse.js → schemas/ListRegistry.js} +0 -0
- /package/dist/har-service/src/services/{responses/UpstreamProxyResponseResponse.js → schemas/Registry.js} +0 -0
- /package/dist/har-service/src/services/schemas/{ListRepository.js → RegistryConfig.js} +0 -0
- /package/dist/har-service/src/services/schemas/{Repository.js → RegistryMetadata.js} +0 -0
- /package/dist/har-service/src/services/schemas/{RepositoryConfig.js → RegistryRequest.js} +0 -0
- /package/dist/har-service/src/services/schemas/{Type.js → RegistryType.js} +0 -0
- /package/dist/har-service/src/services/schemas/{RepositoryMetadata.js → UpstreamConfig.js} +0 -0
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**OpenAPI + TypeScript -> OATS**
|
|
8
8
|
|
|
9
|
-
This React API client will store a collection of Harness
|
|
9
|
+
This React API client will store a collection of Harness HAR Service APIs and Interfaces contracts generated from Open API Spec using `OATS CLI` internally.
|
|
10
10
|
APIs are using hooks from `@tanstack/react-query`
|
|
11
11
|
|
|
12
12
|
## Steps To Generate API Client build as dist folder
|
|
@@ -30,7 +30,7 @@ Example:
|
|
|
30
30
|
|
|
31
31
|
## Versioning
|
|
32
32
|
|
|
33
|
-

|
|
34
34
|
|
|
35
35
|
Once development phase is completed, this repo will have changes and versioning driven by API spec only.
|
|
36
36
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } 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 { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
6
|
+
import type { RegistryRequestRequestBody } from '../requestBodies/RegistryRequestRequestBody';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface CreateRegistryMutationQueryParams {
|
|
10
|
+
parent_ref: string;
|
|
11
|
+
}
|
|
12
|
+
export type CreateRegistryRequestBody = RegistryRequestRequestBody;
|
|
13
|
+
export type CreateRegistryOkResponse = ResponseWithPagination<RegistryResponseResponse>;
|
|
14
|
+
export type CreateRegistryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
|
|
15
|
+
export interface CreateRegistryProps extends Omit<FetcherOptions<CreateRegistryMutationQueryParams, CreateRegistryRequestBody>, 'url'> {
|
|
16
|
+
queryParams: CreateRegistryMutationQueryParams;
|
|
17
|
+
body: CreateRegistryRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function createRegistry(props: CreateRegistryProps): Promise<CreateRegistryOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Create a Registry.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useCreateRegistryMutation(options?: Omit<UseMutationOptions<CreateRegistryOkResponse, CreateRegistryErrorResponse, CreateRegistryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRegistryOkResponse, import("..").Error, CreateRegistryProps, 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 createRegistry(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create a Registry.
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateRegistryMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createRegistry(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SuccessResponse } from '../responses/SuccessResponse';
|
|
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 DeleteRegistryMutationPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
|
+
}
|
|
12
|
+
export type DeleteRegistryOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
13
|
+
export type DeleteRegistryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
14
|
+
export interface DeleteRegistryProps extends DeleteRegistryMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
15
|
+
}
|
|
16
|
+
export declare function deleteRegistry(props: DeleteRegistryProps): Promise<DeleteRegistryOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Delete a Registry in the account for the given key
|
|
19
|
+
*/
|
|
20
|
+
export declare function useDeleteRegistryMutation(options?: Omit<UseMutationOptions<DeleteRegistryOkResponse, DeleteRegistryErrorResponse, DeleteRegistryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRegistryOkResponse, import("..").Error, DeleteRegistryProps, 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 deleteRegistry(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete a Registry in the account for the given key
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteRegistryMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteRegistry(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -6,20 +6,27 @@ 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 GetAllArtifactVersionsQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
11
|
artifact: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetAllArtifactVersionsQueryQueryParams {
|
|
14
|
+
/**
|
|
15
|
+
* @format int32
|
|
16
|
+
* @default 1
|
|
17
|
+
*/
|
|
12
18
|
page?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @format int32
|
|
21
|
+
* @default 20
|
|
22
|
+
*/
|
|
13
23
|
size?: number;
|
|
14
24
|
sort?: string;
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
export interface GetAllArtifactVersionsQueryHeaderParams {
|
|
18
|
-
'Harness-Account'?: string;
|
|
25
|
+
search_term?: string;
|
|
19
26
|
}
|
|
20
27
|
export type GetAllArtifactVersionsOkResponse = ResponseWithPagination<ListArtifactVersionResponseResponse>;
|
|
21
28
|
export type GetAllArtifactVersionsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
22
|
-
export interface GetAllArtifactVersionsProps extends Omit<FetcherOptions<GetAllArtifactVersionsQueryQueryParams, unknown
|
|
29
|
+
export interface GetAllArtifactVersionsProps extends GetAllArtifactVersionsQueryPathParams, Omit<FetcherOptions<GetAllArtifactVersionsQueryQueryParams, unknown>, 'url'> {
|
|
23
30
|
queryParams: GetAllArtifactVersionsQueryQueryParams;
|
|
24
31
|
}
|
|
25
32
|
export declare function getAllArtifactVersions(props: GetAllArtifactVersionsProps): Promise<GetAllArtifactVersionsOkResponse>;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getAllArtifactVersions(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/versions`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Lists all the Artifact Versions.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetAllArtifactVersionsQuery(props, options) {
|
|
13
|
-
return useQuery(['GetAllArtifactVersions', props.queryParams], ({ signal }) => getAllArtifactVersions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
13
|
+
return useQuery(['GetAllArtifactVersions', props.registry_ref, props.artifact, props.queryParams], ({ signal }) => getAllArtifactVersions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -6,22 +6,31 @@ 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 GetAllArtifactsQueryPathParams {
|
|
10
|
+
space_ref: string;
|
|
11
|
+
}
|
|
9
12
|
export interface GetAllArtifactsQueryQueryParams {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* refers to package
|
|
15
|
+
*/
|
|
16
|
+
package_types?: 'DOCKER' | 'GENERIC' | 'HELM' | 'MAVEN';
|
|
17
|
+
reg_identifier?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @format int32
|
|
20
|
+
* @default 1
|
|
21
|
+
*/
|
|
14
22
|
page?: number;
|
|
23
|
+
/**
|
|
24
|
+
* @format int32
|
|
25
|
+
* @default 20
|
|
26
|
+
*/
|
|
15
27
|
size?: number;
|
|
16
28
|
sort?: string;
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
export interface GetAllArtifactsQueryHeaderParams {
|
|
20
|
-
'Harness-Account'?: string;
|
|
29
|
+
search_term?: string;
|
|
21
30
|
}
|
|
22
31
|
export type GetAllArtifactsOkResponse = ResponseWithPagination<ListArtifactResponseResponse>;
|
|
23
32
|
export type GetAllArtifactsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
24
|
-
export interface GetAllArtifactsProps extends Omit<FetcherOptions<GetAllArtifactsQueryQueryParams, unknown
|
|
33
|
+
export interface GetAllArtifactsProps extends GetAllArtifactsQueryPathParams, Omit<FetcherOptions<GetAllArtifactsQueryQueryParams, unknown>, 'url'> {
|
|
25
34
|
queryParams: GetAllArtifactsQueryQueryParams;
|
|
26
35
|
}
|
|
27
36
|
export declare function getAllArtifacts(props: GetAllArtifactsProps): Promise<GetAllArtifactsOkResponse>;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getAllArtifacts(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/artifacts`, method: 'GET' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/artifacts`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Lists all the Artifacts.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetAllArtifactsQuery(props, options) {
|
|
13
|
-
return useQuery(['GetAllArtifacts', props.queryParams], ({ signal }) => getAllArtifacts(Object.assign(Object.assign({}, props), { signal })), options);
|
|
13
|
+
return useQuery(['GetAllArtifacts', props.space_ref, props.queryParams], ({ signal }) => getAllArtifacts(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListRegistryResponseResponse } from '../responses/ListRegistryResponseResponse';
|
|
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 GetAllRegistriesQueryPathParams {
|
|
10
|
+
space_ref: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetAllRegistriesQueryQueryParams {
|
|
13
|
+
/**
|
|
14
|
+
* refers to package
|
|
15
|
+
*/
|
|
16
|
+
package_types?: 'DOCKER' | 'GENERIC' | 'HELM' | 'MAVEN';
|
|
17
|
+
/**
|
|
18
|
+
* refers to type of registry i.e virtual or upstream
|
|
19
|
+
*/
|
|
20
|
+
type?: 'UPSTREAM' | 'VIRTUAL';
|
|
21
|
+
/**
|
|
22
|
+
* @format int32
|
|
23
|
+
* @default 1
|
|
24
|
+
*/
|
|
25
|
+
page?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @format int32
|
|
28
|
+
* @default 20
|
|
29
|
+
*/
|
|
30
|
+
size?: number;
|
|
31
|
+
sort?: string;
|
|
32
|
+
search_term?: string;
|
|
33
|
+
}
|
|
34
|
+
export type GetAllRegistriesOkResponse = ResponseWithPagination<ListRegistryResponseResponse>;
|
|
35
|
+
export type GetAllRegistriesErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
36
|
+
export interface GetAllRegistriesProps extends GetAllRegistriesQueryPathParams, Omit<FetcherOptions<GetAllRegistriesQueryQueryParams, unknown>, 'url'> {
|
|
37
|
+
queryParams: GetAllRegistriesQueryQueryParams;
|
|
38
|
+
}
|
|
39
|
+
export declare function getAllRegistries(props: GetAllRegistriesProps): Promise<GetAllRegistriesOkResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Lists all the Registries.
|
|
42
|
+
*/
|
|
43
|
+
export declare function useGetAllRegistriesQuery(props: GetAllRegistriesProps, options?: Omit<UseQueryOptions<GetAllRegistriesOkResponse, GetAllRegistriesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllRegistriesOkResponse, 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 getAllRegistries(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/registries`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists all the Registries.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAllRegistriesQuery(props, options) {
|
|
13
|
+
return useQuery(['GetAllRegistries', props.space_ref, props.queryParams], ({ signal }) => getAllRegistries(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -6,17 +6,13 @@ 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 GetArtifactSummaryQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
11
|
artifact: string;
|
|
12
12
|
}
|
|
13
|
-
export interface GetArtifactSummaryQueryHeaderParams {
|
|
14
|
-
'Harness-Account'?: string;
|
|
15
|
-
}
|
|
16
13
|
export type GetArtifactSummaryOkResponse = ResponseWithPagination<ArtifactSummaryResponseResponse>;
|
|
17
14
|
export type GetArtifactSummaryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
18
|
-
export interface GetArtifactSummaryProps extends Omit<FetcherOptions<
|
|
19
|
-
queryParams: GetArtifactSummaryQueryQueryParams;
|
|
15
|
+
export interface GetArtifactSummaryProps extends GetArtifactSummaryQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
20
16
|
}
|
|
21
17
|
export declare function getArtifactSummary(props: GetArtifactSummaryProps): Promise<GetArtifactSummaryOkResponse>;
|
|
22
18
|
/**
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getArtifactSummary(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/summary`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get Artifact Summary.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetArtifactSummaryQuery(props, options) {
|
|
13
|
-
return useQuery(['GetArtifactSummary', props.
|
|
13
|
+
return useQuery(['GetArtifactSummary', props.registry_ref, props.artifact], ({ signal }) => getArtifactSummary(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 GetArtifactVersionSummaryQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
11
|
artifact: string;
|
|
12
12
|
version: string;
|
|
13
13
|
}
|
|
14
|
-
export interface GetArtifactVersionSummaryQueryHeaderParams {
|
|
15
|
-
'Harness-Account'?: string;
|
|
16
|
-
}
|
|
17
14
|
export type GetArtifactVersionSummaryOkResponse = ResponseWithPagination<ArtifactVersionSummaryResponseResponse>;
|
|
18
15
|
export type GetArtifactVersionSummaryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
-
export interface GetArtifactVersionSummaryProps extends Omit<FetcherOptions<
|
|
20
|
-
queryParams: GetArtifactVersionSummaryQueryQueryParams;
|
|
16
|
+
export interface GetArtifactVersionSummaryProps extends GetArtifactVersionSummaryQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
21
17
|
}
|
|
22
18
|
export declare function getArtifactVersionSummary(props: GetArtifactVersionSummaryProps): Promise<GetArtifactVersionSummaryOkResponse>;
|
|
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 getArtifactVersionSummary(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/summary`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get Artifact Version Summary.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetArtifactVersionSummaryQuery(props, options) {
|
|
13
|
-
return useQuery(['GetArtifactVersionSummary', props.
|
|
13
|
+
return useQuery(['GetArtifactVersionSummary', props.registry_ref, props.artifact, props.version], ({ signal }) => getArtifactVersionSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -6,16 +6,12 @@ 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
|
-
|
|
11
|
-
}
|
|
12
|
-
export interface GetClientSetupDetailsQueryHeaderParams {
|
|
13
|
-
'Harness-Account'?: string;
|
|
9
|
+
export interface GetClientSetupDetailsQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
14
11
|
}
|
|
15
12
|
export type GetClientSetupDetailsOkResponse = ResponseWithPagination<ClientSetupDetailsResponseResponse>;
|
|
16
13
|
export type GetClientSetupDetailsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
17
|
-
export interface GetClientSetupDetailsProps extends Omit<FetcherOptions<
|
|
18
|
-
queryParams: GetClientSetupDetailsQueryQueryParams;
|
|
14
|
+
export interface GetClientSetupDetailsProps extends GetClientSetupDetailsQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
19
15
|
}
|
|
20
16
|
export declare function getClientSetupDetails(props: GetClientSetupDetailsProps): Promise<GetClientSetupDetailsOkResponse>;
|
|
21
17
|
/**
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getClientSetupDetails(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/client-setup-details`, method: 'GET' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/client-setup-details`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Returns CLI Client Setup Details based on package type
|
|
11
11
|
*/
|
|
12
12
|
export function useGetClientSetupDetailsQuery(props, options) {
|
|
13
|
-
return useQuery(['GetClientSetupDetails', props.
|
|
13
|
+
return useQuery(['GetClientSetupDetails', props.registry_ref], ({ signal }) => getClientSetupDetails(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -6,18 +6,17 @@ 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 GetDockerArtifactDetailsQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
11
|
artifact: string;
|
|
12
12
|
version: string;
|
|
13
|
-
digest: string;
|
|
14
13
|
}
|
|
15
|
-
export interface
|
|
16
|
-
|
|
14
|
+
export interface GetDockerArtifactDetailsQueryQueryParams {
|
|
15
|
+
digest: string;
|
|
17
16
|
}
|
|
18
17
|
export type GetDockerArtifactDetailsOkResponse = ResponseWithPagination<DockerArtifactDetailResponseResponse>;
|
|
19
18
|
export type GetDockerArtifactDetailsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
20
|
-
export interface GetDockerArtifactDetailsProps extends Omit<FetcherOptions<GetDockerArtifactDetailsQueryQueryParams, unknown
|
|
19
|
+
export interface GetDockerArtifactDetailsProps extends GetDockerArtifactDetailsQueryPathParams, Omit<FetcherOptions<GetDockerArtifactDetailsQueryQueryParams, unknown>, 'url'> {
|
|
21
20
|
queryParams: GetDockerArtifactDetailsQueryQueryParams;
|
|
22
21
|
}
|
|
23
22
|
export declare function getDockerArtifactDetails(props: GetDockerArtifactDetailsProps): Promise<GetDockerArtifactDetailsOkResponse>;
|
|
@@ -4,11 +4,17 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getDockerArtifactDetails(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/details`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get Docker Artifact Details
|
|
11
11
|
*/
|
|
12
12
|
export function useGetDockerArtifactDetailsQuery(props, options) {
|
|
13
|
-
return useQuery([
|
|
13
|
+
return useQuery([
|
|
14
|
+
'GetDockerArtifactDetails',
|
|
15
|
+
props.registry_ref,
|
|
16
|
+
props.artifact,
|
|
17
|
+
props.version,
|
|
18
|
+
props.queryParams,
|
|
19
|
+
], ({ signal }) => getDockerArtifactDetails(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
20
|
}
|
|
@@ -6,17 +6,17 @@ 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 GetDockerArtifactLayersQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
11
|
artifact: string;
|
|
12
|
-
|
|
12
|
+
version: string;
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
15
|
-
|
|
14
|
+
export interface GetDockerArtifactLayersQueryQueryParams {
|
|
15
|
+
digest: string;
|
|
16
16
|
}
|
|
17
17
|
export type GetDockerArtifactLayersOkResponse = ResponseWithPagination<DockerLayersResponseResponse>;
|
|
18
18
|
export type GetDockerArtifactLayersErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
-
export interface GetDockerArtifactLayersProps extends Omit<FetcherOptions<GetDockerArtifactLayersQueryQueryParams, unknown
|
|
19
|
+
export interface GetDockerArtifactLayersProps extends GetDockerArtifactLayersQueryPathParams, Omit<FetcherOptions<GetDockerArtifactLayersQueryQueryParams, unknown>, 'url'> {
|
|
20
20
|
queryParams: GetDockerArtifactLayersQueryQueryParams;
|
|
21
21
|
}
|
|
22
22
|
export declare function getDockerArtifactLayers(props: GetDockerArtifactLayersProps): Promise<GetDockerArtifactLayersOkResponse>;
|
|
@@ -4,11 +4,17 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getDockerArtifactLayers(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/layers`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get Docker Artifact Layers
|
|
11
11
|
*/
|
|
12
12
|
export function useGetDockerArtifactLayersQuery(props, options) {
|
|
13
|
-
return useQuery([
|
|
13
|
+
return useQuery([
|
|
14
|
+
'GetDockerArtifactLayers',
|
|
15
|
+
props.registry_ref,
|
|
16
|
+
props.artifact,
|
|
17
|
+
props.version,
|
|
18
|
+
props.queryParams,
|
|
19
|
+
], ({ signal }) => getDockerArtifactLayers(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
20
|
}
|
|
@@ -6,17 +6,17 @@ 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 GetDockerArtifactManifestQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
11
|
artifact: string;
|
|
12
|
-
|
|
12
|
+
version: string;
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
15
|
-
|
|
14
|
+
export interface GetDockerArtifactManifestQueryQueryParams {
|
|
15
|
+
digest: string;
|
|
16
16
|
}
|
|
17
17
|
export type GetDockerArtifactManifestOkResponse = ResponseWithPagination<DockerArtifactManifestResponseResponse>;
|
|
18
18
|
export type GetDockerArtifactManifestErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
-
export interface GetDockerArtifactManifestProps extends Omit<FetcherOptions<GetDockerArtifactManifestQueryQueryParams, unknown
|
|
19
|
+
export interface GetDockerArtifactManifestProps extends GetDockerArtifactManifestQueryPathParams, Omit<FetcherOptions<GetDockerArtifactManifestQueryQueryParams, unknown>, 'url'> {
|
|
20
20
|
queryParams: GetDockerArtifactManifestQueryQueryParams;
|
|
21
21
|
}
|
|
22
22
|
export declare function getDockerArtifactManifest(props: GetDockerArtifactManifestProps): Promise<GetDockerArtifactManifestOkResponse>;
|
|
@@ -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
|
/**
|