@harnessio/react-har-service-client 0.0.2
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 +39 -0
- package/dist/fetcher/index.d.ts +17 -0
- package/dist/fetcher/index.js +65 -0
- package/dist/har-service/src/index.d.ts +6 -0
- package/dist/har-service/src/index.js +10 -0
- package/dist/har-service/src/services/helpers.d.ts +14 -0
- package/dist/har-service/src/services/helpers.js +1 -0
- package/dist/har-service/src/services/hooks/useCreateRepositoryMutation.d.ts +27 -0
- package/dist/har-service/src/services/hooks/useCreateRepositoryMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useCreateUpstreamProxyMutation.d.ts +27 -0
- package/dist/har-service/src/services/hooks/useCreateUpstreamProxyMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useDeleteRepositoryMutation.d.ts +28 -0
- package/dist/har-service/src/services/hooks/useDeleteRepositoryMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useDeleteUpstreamProxyMutation.d.ts +28 -0
- package/dist/har-service/src/services/hooks/useDeleteUpstreamProxyMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useGetAllArtifactsForRepositoryQuery.d.ts +32 -0
- package/dist/har-service/src/services/hooks/useGetAllArtifactsForRepositoryQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.d.ts +29 -0
- package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetAllRepositoriesQuery.d.ts +29 -0
- package/dist/har-service/src/services/hooks/useGetAllRepositoriesQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetAllUpstreamProxiesQuery.d.ts +29 -0
- package/dist/har-service/src/services/hooks/useGetAllUpstreamProxiesQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetAllVersionsForArtifactQuery.d.ts +27 -0
- package/dist/har-service/src/services/hooks/useGetAllVersionsForArtifactQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetRepositoryQuery.d.ts +28 -0
- package/dist/har-service/src/services/hooks/useGetRepositoryQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetUpstreamProxyQuery.d.ts +28 -0
- package/dist/har-service/src/services/hooks/useGetUpstreamProxyQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useModifyRepositoryMutation.d.ts +32 -0
- package/dist/har-service/src/services/hooks/useModifyRepositoryMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useModifyUpstreamProxyMutation.d.ts +32 -0
- package/dist/har-service/src/services/hooks/useModifyUpstreamProxyMutation.js +14 -0
- package/dist/har-service/src/services/index.d.ts +64 -0
- package/dist/har-service/src/services/index.js +13 -0
- package/dist/har-service/src/services/requestBodies/RepositoryRequestRequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/RepositoryRequestRequestBody.js +1 -0
- package/dist/har-service/src/services/requestBodies/UpstreamProxyRequestRequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/UpstreamProxyRequestRequestBody.js +1 -0
- package/dist/har-service/src/services/responses/BadRequestResponse.d.ts +2 -0
- package/dist/har-service/src/services/responses/BadRequestResponse.js +1 -0
- package/dist/har-service/src/services/responses/InternalServerErrorResponse.d.ts +2 -0
- package/dist/har-service/src/services/responses/InternalServerErrorResponse.js +1 -0
- package/dist/har-service/src/services/responses/ListArtifactResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListArtifactResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ListArtifactVersionResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListArtifactVersionResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ListRepositoryResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListRepositoryResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ListUpstreamProxyResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListUpstreamProxyResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/NotFoundResponse.d.ts +2 -0
- package/dist/har-service/src/services/responses/NotFoundResponse.js +1 -0
- package/dist/har-service/src/services/responses/RepositoryResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/RepositoryResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/SuccessResponse.d.ts +4 -0
- package/dist/har-service/src/services/responses/SuccessResponse.js +1 -0
- package/dist/har-service/src/services/responses/UnauthenticatedResponse.d.ts +2 -0
- package/dist/har-service/src/services/responses/UnauthenticatedResponse.js +1 -0
- package/dist/har-service/src/services/responses/UnauthorizedResponse.d.ts +2 -0
- package/dist/har-service/src/services/responses/UnauthorizedResponse.js +1 -0
- package/dist/har-service/src/services/responses/UpstreamProxyResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/UpstreamProxyResponseResponse.js +1 -0
- package/dist/har-service/src/services/schemas/Anonymous.d.ts +2 -0
- package/dist/har-service/src/services/schemas/Anonymous.js +4 -0
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +11 -0
- package/dist/har-service/src/services/schemas/ArtifactMetadata.js +4 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +14 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.js +4 -0
- package/dist/har-service/src/services/schemas/AuthType.d.ts +4 -0
- package/dist/har-service/src/services/schemas/AuthType.js +4 -0
- package/dist/har-service/src/services/schemas/Error.d.ts +17 -0
- package/dist/har-service/src/services/schemas/Error.js +4 -0
- package/dist/har-service/src/services/schemas/Label.d.ts +6 -0
- package/dist/har-service/src/services/schemas/Label.js +4 -0
- package/dist/har-service/src/services/schemas/ListArtifact.d.ts +30 -0
- package/dist/har-service/src/services/schemas/ListArtifact.js +1 -0
- package/dist/har-service/src/services/schemas/ListArtifactVersion.d.ts +30 -0
- package/dist/har-service/src/services/schemas/ListArtifactVersion.js +1 -0
- package/dist/har-service/src/services/schemas/ListRepository.d.ts +30 -0
- package/dist/har-service/src/services/schemas/ListRepository.js +1 -0
- package/dist/har-service/src/services/schemas/ListUpstreamProxy.d.ts +30 -0
- package/dist/har-service/src/services/schemas/ListUpstreamProxy.js +1 -0
- package/dist/har-service/src/services/schemas/PackageType.d.ts +4 -0
- package/dist/har-service/src/services/schemas/PackageType.js +4 -0
- package/dist/har-service/src/services/schemas/Repository.d.ts +20 -0
- package/dist/har-service/src/services/schemas/Repository.js +1 -0
- package/dist/har-service/src/services/schemas/RepositoryCleanupPolicy.d.ts +8 -0
- package/dist/har-service/src/services/schemas/RepositoryCleanupPolicy.js +4 -0
- package/dist/har-service/src/services/schemas/RepositoryConfig.d.ts +9 -0
- package/dist/har-service/src/services/schemas/RepositoryConfig.js +1 -0
- package/dist/har-service/src/services/schemas/RepositoryMetadata.d.ts +18 -0
- package/dist/har-service/src/services/schemas/RepositoryMetadata.js +1 -0
- package/dist/har-service/src/services/schemas/RepositoryRequest.d.ts +14 -0
- package/dist/har-service/src/services/schemas/RepositoryRequest.js +1 -0
- package/dist/har-service/src/services/schemas/Status.d.ts +4 -0
- package/dist/har-service/src/services/schemas/Status.js +4 -0
- package/dist/har-service/src/services/schemas/Type.d.ts +4 -0
- package/dist/har-service/src/services/schemas/Type.js +4 -0
- package/dist/har-service/src/services/schemas/UpstreamProxy.d.ts +15 -0
- package/dist/har-service/src/services/schemas/UpstreamProxy.js +1 -0
- package/dist/har-service/src/services/schemas/UpstreamProxyConfig.d.ts +10 -0
- package/dist/har-service/src/services/schemas/UpstreamProxyConfig.js +1 -0
- package/dist/har-service/src/services/schemas/UpstreamProxyMetadata.d.ts +10 -0
- package/dist/har-service/src/services/schemas/UpstreamProxyMetadata.js +1 -0
- package/dist/har-service/src/services/schemas/UpstreamProxyRequest.d.ts +10 -0
- package/dist/har-service/src/services/schemas/UpstreamProxyRequest.js +1 -0
- package/dist/har-service/src/services/schemas/UserPassword.d.ts +4 -0
- package/dist/har-service/src/services/schemas/UserPassword.js +4 -0
- package/package.json +31 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { UpstreamProxyResponseResponse } from '../responses/UpstreamProxyResponseResponse';
|
|
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 GetUpstreamProxyQueryPathParams {
|
|
10
|
+
repokey: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetUpstreamProxyQueryQueryParams {
|
|
13
|
+
org?: string;
|
|
14
|
+
project?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface GetUpstreamProxyQueryHeaderParams {
|
|
17
|
+
'Harness-Account'?: string;
|
|
18
|
+
}
|
|
19
|
+
export type GetUpstreamProxyOkResponse = ResponseWithPagination<UpstreamProxyResponseResponse>;
|
|
20
|
+
export type GetUpstreamProxyErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
21
|
+
export interface GetUpstreamProxyProps extends GetUpstreamProxyQueryPathParams, Omit<FetcherOptions<GetUpstreamProxyQueryQueryParams, unknown, GetUpstreamProxyQueryHeaderParams>, 'url'> {
|
|
22
|
+
queryParams: GetUpstreamProxyQueryQueryParams;
|
|
23
|
+
}
|
|
24
|
+
export declare function getUpstreamProxy(props: GetUpstreamProxyProps): Promise<GetUpstreamProxyOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Returns UpstreamProxy Details in the account for the given key
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetUpstreamProxyQuery(props: GetUpstreamProxyProps, options?: Omit<UseQueryOptions<GetUpstreamProxyOkResponse, GetUpstreamProxyErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetUpstreamProxyOkResponse, 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 getUpstreamProxy(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/upstreamproxies/${props.repokey}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns UpstreamProxy Details in the account for the given key
|
|
11
|
+
*/
|
|
12
|
+
export function useGetUpstreamProxyQuery(props, options) {
|
|
13
|
+
return useQuery(['GetUpstreamProxy', props.repokey, props.queryParams], ({ signal }) => getUpstreamProxy(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RepositoryResponseResponse } from '../responses/RepositoryResponseResponse';
|
|
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 { RepositoryRequestRequestBody } from '../requestBodies/RepositoryRequestRequestBody';
|
|
9
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
10
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
11
|
+
export interface ModifyRepositoryMutationPathParams {
|
|
12
|
+
repokey: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ModifyRepositoryMutationQueryParams {
|
|
15
|
+
org?: string;
|
|
16
|
+
project?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ModifyRepositoryMutationHeaderParams {
|
|
19
|
+
'Harness-Account'?: string;
|
|
20
|
+
}
|
|
21
|
+
export type ModifyRepositoryRequestBody = RepositoryRequestRequestBody;
|
|
22
|
+
export type ModifyRepositoryOkResponse = ResponseWithPagination<RepositoryResponseResponse>;
|
|
23
|
+
export type ModifyRepositoryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
24
|
+
export interface ModifyRepositoryProps extends ModifyRepositoryMutationPathParams, Omit<FetcherOptions<ModifyRepositoryMutationQueryParams, ModifyRepositoryRequestBody, ModifyRepositoryMutationHeaderParams>, 'url'> {
|
|
25
|
+
queryParams: ModifyRepositoryMutationQueryParams;
|
|
26
|
+
body: ModifyRepositoryRequestBody;
|
|
27
|
+
}
|
|
28
|
+
export declare function modifyRepository(props: ModifyRepositoryProps): Promise<ModifyRepositoryOkResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Updates a Repository in the account for the given key
|
|
31
|
+
*/
|
|
32
|
+
export declare function useModifyRepositoryMutation(options?: Omit<UseMutationOptions<ModifyRepositoryOkResponse, ModifyRepositoryErrorResponse, ModifyRepositoryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ModifyRepositoryOkResponse, import("..").Error, ModifyRepositoryProps, 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 modifyRepository(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/repos/${props.repokey}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Updates a Repository in the account for the given key
|
|
11
|
+
*/
|
|
12
|
+
export function useModifyRepositoryMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => modifyRepository(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { UpstreamProxyResponseResponse } from '../responses/UpstreamProxyResponseResponse';
|
|
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 { UpstreamProxyRequestRequestBody } from '../requestBodies/UpstreamProxyRequestRequestBody';
|
|
9
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
10
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
11
|
+
export interface ModifyUpstreamProxyMutationPathParams {
|
|
12
|
+
repokey: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ModifyUpstreamProxyMutationQueryParams {
|
|
15
|
+
org?: string;
|
|
16
|
+
project?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ModifyUpstreamProxyMutationHeaderParams {
|
|
19
|
+
'Harness-Account'?: string;
|
|
20
|
+
}
|
|
21
|
+
export type ModifyUpstreamProxyRequestBody = UpstreamProxyRequestRequestBody;
|
|
22
|
+
export type ModifyUpstreamProxyOkResponse = ResponseWithPagination<UpstreamProxyResponseResponse>;
|
|
23
|
+
export type ModifyUpstreamProxyErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
24
|
+
export interface ModifyUpstreamProxyProps extends ModifyUpstreamProxyMutationPathParams, Omit<FetcherOptions<ModifyUpstreamProxyMutationQueryParams, ModifyUpstreamProxyRequestBody, ModifyUpstreamProxyMutationHeaderParams>, 'url'> {
|
|
25
|
+
queryParams: ModifyUpstreamProxyMutationQueryParams;
|
|
26
|
+
body: ModifyUpstreamProxyRequestBody;
|
|
27
|
+
}
|
|
28
|
+
export declare function modifyUpstreamProxy(props: ModifyUpstreamProxyProps): Promise<ModifyUpstreamProxyOkResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Updates a UpstreamProxy in the account for the given key
|
|
31
|
+
*/
|
|
32
|
+
export declare function useModifyUpstreamProxyMutation(options?: Omit<UseMutationOptions<ModifyUpstreamProxyOkResponse, ModifyUpstreamProxyErrorResponse, ModifyUpstreamProxyProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ModifyUpstreamProxyOkResponse, import("..").Error, ModifyUpstreamProxyProps, 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 modifyUpstreamProxy(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/upstreamproxies/${props.repokey}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Updates a UpstreamProxy in the account for the given key
|
|
11
|
+
*/
|
|
12
|
+
export function useModifyUpstreamProxyMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => modifyUpstreamProxy(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
|
+
export type { CreateRepositoryErrorResponse, CreateRepositoryMutationQueryParams, CreateRepositoryOkResponse, CreateRepositoryProps, CreateRepositoryRequestBody, } from './hooks/useCreateRepositoryMutation';
|
|
3
|
+
export { createRepository, useCreateRepositoryMutation } from './hooks/useCreateRepositoryMutation';
|
|
4
|
+
export type { CreateUpstreamProxyErrorResponse, CreateUpstreamProxyMutationQueryParams, CreateUpstreamProxyOkResponse, CreateUpstreamProxyProps, CreateUpstreamProxyRequestBody, } from './hooks/useCreateUpstreamProxyMutation';
|
|
5
|
+
export { createUpstreamProxy, useCreateUpstreamProxyMutation, } from './hooks/useCreateUpstreamProxyMutation';
|
|
6
|
+
export type { DeleteRepositoryErrorResponse, DeleteRepositoryMutationPathParams, DeleteRepositoryMutationQueryParams, DeleteRepositoryOkResponse, DeleteRepositoryProps, } from './hooks/useDeleteRepositoryMutation';
|
|
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 { GetAllArtifactsForRepositoryErrorResponse, GetAllArtifactsForRepositoryOkResponse, GetAllArtifactsForRepositoryProps, GetAllArtifactsForRepositoryQueryPathParams, GetAllArtifactsForRepositoryQueryQueryParams, } from './hooks/useGetAllArtifactsForRepositoryQuery';
|
|
11
|
+
export { getAllArtifactsForRepository, useGetAllArtifactsForRepositoryQuery, } from './hooks/useGetAllArtifactsForRepositoryQuery';
|
|
12
|
+
export type { GetAllArtifactsErrorResponse, GetAllArtifactsOkResponse, GetAllArtifactsProps, GetAllArtifactsQueryQueryParams, } from './hooks/useGetAllArtifactsQuery';
|
|
13
|
+
export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
|
|
14
|
+
export type { GetAllRepositoriesErrorResponse, GetAllRepositoriesOkResponse, GetAllRepositoriesProps, GetAllRepositoriesQueryQueryParams, } from './hooks/useGetAllRepositoriesQuery';
|
|
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 { GetAllVersionsForArtifactErrorResponse, GetAllVersionsForArtifactOkResponse, GetAllVersionsForArtifactProps, GetAllVersionsForArtifactQueryQueryParams, } from './hooks/useGetAllVersionsForArtifactQuery';
|
|
19
|
+
export { getAllVersionsForArtifact, useGetAllVersionsForArtifactQuery, } from './hooks/useGetAllVersionsForArtifactQuery';
|
|
20
|
+
export type { GetRepositoryErrorResponse, GetRepositoryOkResponse, GetRepositoryProps, GetRepositoryQueryPathParams, GetRepositoryQueryQueryParams, } from './hooks/useGetRepositoryQuery';
|
|
21
|
+
export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
|
|
22
|
+
export type { GetUpstreamProxyErrorResponse, GetUpstreamProxyOkResponse, GetUpstreamProxyProps, GetUpstreamProxyQueryPathParams, GetUpstreamProxyQueryQueryParams, } from './hooks/useGetUpstreamProxyQuery';
|
|
23
|
+
export { getUpstreamProxy, useGetUpstreamProxyQuery } from './hooks/useGetUpstreamProxyQuery';
|
|
24
|
+
export type { ModifyRepositoryErrorResponse, ModifyRepositoryMutationPathParams, ModifyRepositoryMutationQueryParams, ModifyRepositoryOkResponse, ModifyRepositoryProps, ModifyRepositoryRequestBody, } from './hooks/useModifyRepositoryMutation';
|
|
25
|
+
export { modifyRepository, useModifyRepositoryMutation } from './hooks/useModifyRepositoryMutation';
|
|
26
|
+
export type { ModifyUpstreamProxyErrorResponse, ModifyUpstreamProxyMutationPathParams, ModifyUpstreamProxyMutationQueryParams, ModifyUpstreamProxyOkResponse, ModifyUpstreamProxyProps, ModifyUpstreamProxyRequestBody, } from './hooks/useModifyUpstreamProxyMutation';
|
|
27
|
+
export { modifyUpstreamProxy, useModifyUpstreamProxyMutation, } from './hooks/useModifyUpstreamProxyMutation';
|
|
28
|
+
export type { RepositoryRequestRequestBody } from './requestBodies/RepositoryRequestRequestBody';
|
|
29
|
+
export type { UpstreamProxyRequestRequestBody } from './requestBodies/UpstreamProxyRequestRequestBody';
|
|
30
|
+
export type { BadRequestResponse } from './responses/BadRequestResponse';
|
|
31
|
+
export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
|
|
32
|
+
export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
|
|
33
|
+
export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
|
|
34
|
+
export type { ListRepositoryResponseResponse } from './responses/ListRepositoryResponseResponse';
|
|
35
|
+
export type { ListUpstreamProxyResponseResponse } from './responses/ListUpstreamProxyResponseResponse';
|
|
36
|
+
export type { NotFoundResponse } from './responses/NotFoundResponse';
|
|
37
|
+
export type { RepositoryResponseResponse } from './responses/RepositoryResponseResponse';
|
|
38
|
+
export type { SuccessResponse } from './responses/SuccessResponse';
|
|
39
|
+
export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
|
|
40
|
+
export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
|
|
41
|
+
export type { UpstreamProxyResponseResponse } from './responses/UpstreamProxyResponseResponse';
|
|
42
|
+
export type { Anonymous } from './schemas/Anonymous';
|
|
43
|
+
export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
|
|
44
|
+
export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
|
|
45
|
+
export type { AuthType } from './schemas/AuthType';
|
|
46
|
+
export type { Error } from './schemas/Error';
|
|
47
|
+
export type { Label } from './schemas/Label';
|
|
48
|
+
export type { ListArtifact } from './schemas/ListArtifact';
|
|
49
|
+
export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
|
|
50
|
+
export type { ListRepository } from './schemas/ListRepository';
|
|
51
|
+
export type { ListUpstreamProxy } from './schemas/ListUpstreamProxy';
|
|
52
|
+
export type { PackageType } from './schemas/PackageType';
|
|
53
|
+
export type { Repository } from './schemas/Repository';
|
|
54
|
+
export type { RepositoryCleanupPolicy } from './schemas/RepositoryCleanupPolicy';
|
|
55
|
+
export type { RepositoryConfig } from './schemas/RepositoryConfig';
|
|
56
|
+
export type { RepositoryMetadata } from './schemas/RepositoryMetadata';
|
|
57
|
+
export type { RepositoryRequest } from './schemas/RepositoryRequest';
|
|
58
|
+
export type { Status } from './schemas/Status';
|
|
59
|
+
export type { Type } from './schemas/Type';
|
|
60
|
+
export type { UpstreamProxy } from './schemas/UpstreamProxy';
|
|
61
|
+
export type { UpstreamProxyConfig } from './schemas/UpstreamProxyConfig';
|
|
62
|
+
export type { UpstreamProxyMetadata } from './schemas/UpstreamProxyMetadata';
|
|
63
|
+
export type { UpstreamProxyRequest } from './schemas/UpstreamProxyRequest';
|
|
64
|
+
export type { UserPassword } from './schemas/UserPassword';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { createRepository, useCreateRepositoryMutation } from './hooks/useCreateRepositoryMutation';
|
|
2
|
+
export { createUpstreamProxy, useCreateUpstreamProxyMutation, } from './hooks/useCreateUpstreamProxyMutation';
|
|
3
|
+
export { deleteRepository, useDeleteRepositoryMutation } from './hooks/useDeleteRepositoryMutation';
|
|
4
|
+
export { deleteUpstreamProxy, useDeleteUpstreamProxyMutation, } from './hooks/useDeleteUpstreamProxyMutation';
|
|
5
|
+
export { getAllArtifactsForRepository, useGetAllArtifactsForRepositoryQuery, } from './hooks/useGetAllArtifactsForRepositoryQuery';
|
|
6
|
+
export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
|
|
7
|
+
export { getAllRepositories, useGetAllRepositoriesQuery } from './hooks/useGetAllRepositoriesQuery';
|
|
8
|
+
export { getAllUpstreamProxies, useGetAllUpstreamProxiesQuery, } from './hooks/useGetAllUpstreamProxiesQuery';
|
|
9
|
+
export { getAllVersionsForArtifact, useGetAllVersionsForArtifactQuery, } from './hooks/useGetAllVersionsForArtifactQuery';
|
|
10
|
+
export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
|
|
11
|
+
export { getUpstreamProxy, useGetUpstreamProxyQuery } from './hooks/useGetUpstreamProxyQuery';
|
|
12
|
+
export { modifyRepository, useModifyRepositoryMutation } from './hooks/useModifyRepositoryMutation';
|
|
13
|
+
export { modifyUpstreamProxy, useModifyUpstreamProxyMutation, } from './hooks/useModifyUpstreamProxyMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Artifact Version Metadata
|
|
3
|
+
*/
|
|
4
|
+
export interface ArtifactVersionMetadata {
|
|
5
|
+
digestCount?: number;
|
|
6
|
+
downloadsCount?: number;
|
|
7
|
+
lastModified?: string;
|
|
8
|
+
latestVersion: string;
|
|
9
|
+
name: string;
|
|
10
|
+
pullCommand?: string;
|
|
11
|
+
repoKey: string;
|
|
12
|
+
size?: string;
|
|
13
|
+
tags?: string[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface Error {
|
|
2
|
+
/**
|
|
3
|
+
* The http error code
|
|
4
|
+
* @example 404
|
|
5
|
+
*/
|
|
6
|
+
code: string;
|
|
7
|
+
/**
|
|
8
|
+
* Additional details about the error
|
|
9
|
+
*/
|
|
10
|
+
details?: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The reason the request failed
|
|
15
|
+
*/
|
|
16
|
+
message: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ArtifactMetadata } from '../schemas/ArtifactMetadata';
|
|
2
|
+
/**
|
|
3
|
+
* A list of Artifacts
|
|
4
|
+
*/
|
|
5
|
+
export interface ListArtifact {
|
|
6
|
+
/**
|
|
7
|
+
* A list of Artifact
|
|
8
|
+
*/
|
|
9
|
+
artifacts: ArtifactMetadata[];
|
|
10
|
+
/**
|
|
11
|
+
* The total number of items
|
|
12
|
+
* @example 1
|
|
13
|
+
*/
|
|
14
|
+
itemCount?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The total number of pages
|
|
17
|
+
* @example 100
|
|
18
|
+
*/
|
|
19
|
+
pageCount?: number;
|
|
20
|
+
/**
|
|
21
|
+
* The current page
|
|
22
|
+
* @example 0
|
|
23
|
+
*/
|
|
24
|
+
pageIndex?: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @example 1
|
|
28
|
+
*/
|
|
29
|
+
pageSize?: number;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ArtifactVersionMetadata } from '../schemas/ArtifactVersionMetadata';
|
|
2
|
+
/**
|
|
3
|
+
* A list of Artifact versions
|
|
4
|
+
*/
|
|
5
|
+
export interface ListArtifactVersion {
|
|
6
|
+
/**
|
|
7
|
+
* A list of Artifact versions
|
|
8
|
+
*/
|
|
9
|
+
artifactVersions?: ArtifactVersionMetadata[];
|
|
10
|
+
/**
|
|
11
|
+
* The total number of items
|
|
12
|
+
* @example 1
|
|
13
|
+
*/
|
|
14
|
+
itemCount?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The total number of pages
|
|
17
|
+
* @example 100
|
|
18
|
+
*/
|
|
19
|
+
pageCount?: number;
|
|
20
|
+
/**
|
|
21
|
+
* The current page
|
|
22
|
+
* @example 0
|
|
23
|
+
*/
|
|
24
|
+
pageIndex?: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @example 1
|
|
28
|
+
*/
|
|
29
|
+
pageSize?: number;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { RepositoryMetadata } from '../schemas/RepositoryMetadata';
|
|
2
|
+
/**
|
|
3
|
+
* A list of Harness Artifact Repositories
|
|
4
|
+
*/
|
|
5
|
+
export interface ListRepository {
|
|
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 Repositories
|
|
28
|
+
*/
|
|
29
|
+
repositories: RepositoryMetadata[];
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|