@harnessio/react-har-service-client 0.0.8 → 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.
Files changed (95) hide show
  1. package/dist/har-service/src/services/hooks/useCreateRegistryMutation.d.ts +23 -0
  2. package/dist/har-service/src/services/hooks/useCreateRegistryMutation.js +14 -0
  3. package/dist/har-service/src/services/hooks/useDeleteRegistryMutation.d.ts +20 -0
  4. package/dist/har-service/src/services/hooks/useDeleteRegistryMutation.js +14 -0
  5. package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.d.ts +14 -7
  6. package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.js +2 -2
  7. package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.d.ts +18 -9
  8. package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.js +2 -2
  9. package/dist/har-service/src/services/hooks/useGetAllRegistriesQuery.d.ts +43 -0
  10. package/dist/har-service/src/services/hooks/useGetAllRegistriesQuery.js +14 -0
  11. package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.d.ts +3 -7
  12. package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.js +2 -2
  13. package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +3 -7
  14. package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.js +2 -2
  15. package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.d.ts +3 -7
  16. package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.js +2 -2
  17. package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.d.ts +5 -6
  18. package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.js +8 -2
  19. package/dist/har-service/src/services/hooks/useGetDockerArtifactLayersQuery.d.ts +6 -6
  20. package/dist/har-service/src/services/hooks/useGetDockerArtifactLayersQuery.js +8 -2
  21. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestQuery.d.ts +6 -6
  22. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestQuery.js +8 -2
  23. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.d.ts +3 -7
  24. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.js +2 -2
  25. package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.d.ts +3 -7
  26. package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.js +2 -2
  27. package/dist/har-service/src/services/hooks/useGetHelmArtifactManifestQuery.d.ts +3 -7
  28. package/dist/har-service/src/services/hooks/useGetHelmArtifactManifestQuery.js +2 -2
  29. package/dist/har-service/src/services/hooks/useGetRegistryQuery.d.ts +20 -0
  30. package/dist/har-service/src/services/hooks/useGetRegistryQuery.js +14 -0
  31. package/dist/har-service/src/services/hooks/useModifyRegistryMutation.d.ts +24 -0
  32. package/dist/har-service/src/services/hooks/useModifyRegistryMutation.js +14 -0
  33. package/dist/har-service/src/services/index.d.ts +32 -43
  34. package/dist/har-service/src/services/index.js +5 -9
  35. package/dist/har-service/src/services/requestBodies/RegistryRequestRequestBody.d.ts +2 -0
  36. package/dist/har-service/src/services/responses/ListRegistryResponseResponse.d.ts +6 -0
  37. package/dist/har-service/src/services/responses/RegistryResponseResponse.d.ts +6 -0
  38. package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +2 -1
  39. package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +2 -0
  40. package/dist/har-service/src/services/schemas/CleanupPolicy.d.ts +4 -5
  41. package/dist/har-service/src/services/schemas/DockerArtifactDetail.d.ts +1 -1
  42. package/dist/har-service/src/services/schemas/HelmArtifactDetail.d.ts +1 -1
  43. package/dist/har-service/src/services/schemas/{ListRepository.d.ts → ListRegistry.d.ts} +5 -5
  44. package/dist/har-service/src/services/schemas/Registry.d.ts +20 -0
  45. package/dist/har-service/src/services/schemas/RegistryConfig.d.ts +6 -0
  46. package/dist/har-service/src/services/schemas/{RepositoryMetadata.d.ts → RegistryMetadata.d.ts} +7 -6
  47. package/dist/har-service/src/services/schemas/RegistryRequest.d.ts +14 -0
  48. package/dist/har-service/src/services/schemas/RegistryType.d.ts +4 -0
  49. package/dist/har-service/src/services/schemas/{UpstreamProxyConfig.d.ts → UpstreamConfig.d.ts} +3 -3
  50. package/dist/har-service/src/services/schemas/VirtualConfig.d.ts +6 -0
  51. package/dist/har-service/src/services/schemas/VirtualConfig.js +4 -0
  52. package/package.json +1 -1
  53. package/dist/har-service/src/services/hooks/useCreateRepositoryMutation.d.ts +0 -27
  54. package/dist/har-service/src/services/hooks/useCreateRepositoryMutation.js +0 -14
  55. package/dist/har-service/src/services/hooks/useCreateUpstreamProxyMutation.d.ts +0 -27
  56. package/dist/har-service/src/services/hooks/useCreateUpstreamProxyMutation.js +0 -14
  57. package/dist/har-service/src/services/hooks/useDeleteRepositoryMutation.d.ts +0 -28
  58. package/dist/har-service/src/services/hooks/useDeleteRepositoryMutation.js +0 -14
  59. package/dist/har-service/src/services/hooks/useDeleteUpstreamProxyMutation.d.ts +0 -28
  60. package/dist/har-service/src/services/hooks/useDeleteUpstreamProxyMutation.js +0 -14
  61. package/dist/har-service/src/services/hooks/useGetAllRepositoriesQuery.d.ts +0 -31
  62. package/dist/har-service/src/services/hooks/useGetAllRepositoriesQuery.js +0 -14
  63. package/dist/har-service/src/services/hooks/useGetRepositoryQuery.d.ts +0 -28
  64. package/dist/har-service/src/services/hooks/useGetRepositoryQuery.js +0 -14
  65. package/dist/har-service/src/services/hooks/useGetUpstreamProxyQuery.d.ts +0 -28
  66. package/dist/har-service/src/services/hooks/useGetUpstreamProxyQuery.js +0 -14
  67. package/dist/har-service/src/services/hooks/useModifyRepositoryMutation.d.ts +0 -32
  68. package/dist/har-service/src/services/hooks/useModifyRepositoryMutation.js +0 -14
  69. package/dist/har-service/src/services/hooks/useModifyUpstreamProxyMutation.d.ts +0 -32
  70. package/dist/har-service/src/services/hooks/useModifyUpstreamProxyMutation.js +0 -14
  71. package/dist/har-service/src/services/requestBodies/RepositoryRequestRequestBody.d.ts +0 -2
  72. package/dist/har-service/src/services/requestBodies/UpstreamProxyRequestRequestBody.d.ts +0 -2
  73. package/dist/har-service/src/services/responses/ListRepositoryResponseResponse.d.ts +0 -6
  74. package/dist/har-service/src/services/responses/RepositoryResponseResponse.d.ts +0 -6
  75. package/dist/har-service/src/services/responses/UpstreamProxyResponseResponse.d.ts +0 -6
  76. package/dist/har-service/src/services/schemas/Repository.d.ts +0 -20
  77. package/dist/har-service/src/services/schemas/RepositoryConfig.d.ts +0 -8
  78. package/dist/har-service/src/services/schemas/RepositoryRequest.d.ts +0 -14
  79. package/dist/har-service/src/services/schemas/RepositoryRequest.js +0 -1
  80. package/dist/har-service/src/services/schemas/Type.d.ts +0 -4
  81. package/dist/har-service/src/services/schemas/UpstreamProxy.d.ts +0 -15
  82. package/dist/har-service/src/services/schemas/UpstreamProxy.js +0 -1
  83. package/dist/har-service/src/services/schemas/UpstreamProxyConfig.js +0 -1
  84. package/dist/har-service/src/services/schemas/UpstreamProxyRequest.d.ts +0 -10
  85. package/dist/har-service/src/services/schemas/UpstreamProxyRequest.js +0 -1
  86. /package/dist/har-service/src/services/requestBodies/{RepositoryRequestRequestBody.js → RegistryRequestRequestBody.js} +0 -0
  87. /package/dist/har-service/src/services/{requestBodies/UpstreamProxyRequestRequestBody.js → responses/ListRegistryResponseResponse.js} +0 -0
  88. /package/dist/har-service/src/services/responses/{ListRepositoryResponseResponse.js → RegistryResponseResponse.js} +0 -0
  89. /package/dist/har-service/src/services/{responses/RepositoryResponseResponse.js → schemas/ListRegistry.js} +0 -0
  90. /package/dist/har-service/src/services/{responses/UpstreamProxyResponseResponse.js → schemas/Registry.js} +0 -0
  91. /package/dist/har-service/src/services/schemas/{ListRepository.js → RegistryConfig.js} +0 -0
  92. /package/dist/har-service/src/services/schemas/{Repository.js → RegistryMetadata.js} +0 -0
  93. /package/dist/har-service/src/services/schemas/{RepositoryConfig.js → RegistryRequest.js} +0 -0
  94. /package/dist/har-service/src/services/schemas/{Type.js → RegistryType.js} +0 -0
  95. /package/dist/har-service/src/services/schemas/{RepositoryMetadata.js → UpstreamConfig.js} +0 -0
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function deleteUpstreamProxy(props) {
7
- return fetcher(Object.assign({ url: `/upstreamproxies/${props.repokey}`, method: 'DELETE' }, props));
8
- }
9
- /**
10
- * Delete a UpstreamProxy in the account for the given key
11
- */
12
- export function useDeleteUpstreamProxyMutation(options) {
13
- return useMutation((mutateProps) => deleteUpstreamProxy(mutateProps), options);
14
- }
@@ -1,31 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ListRepositoryResponseResponse } from '../responses/ListRepositoryResponseResponse';
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 GetAllRepositoriesQueryQueryParams {
10
- org?: string;
11
- project?: string;
12
- packageTypes?: string;
13
- type?: string;
14
- page?: number;
15
- size?: number;
16
- sort?: string;
17
- searchTerm?: string;
18
- }
19
- export interface GetAllRepositoriesQueryHeaderParams {
20
- 'Harness-Account'?: string;
21
- }
22
- export type GetAllRepositoriesOkResponse = ResponseWithPagination<ListRepositoryResponseResponse>;
23
- export type GetAllRepositoriesErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
24
- export interface GetAllRepositoriesProps extends Omit<FetcherOptions<GetAllRepositoriesQueryQueryParams, unknown, GetAllRepositoriesQueryHeaderParams>, 'url'> {
25
- queryParams: GetAllRepositoriesQueryQueryParams;
26
- }
27
- export declare function getAllRepositories(props: GetAllRepositoriesProps): Promise<GetAllRepositoriesOkResponse>;
28
- /**
29
- * Lists all the Repositories.
30
- */
31
- export declare function useGetAllRepositoriesQuery(props: GetAllRepositoriesProps, options?: Omit<UseQueryOptions<GetAllRepositoriesOkResponse, GetAllRepositoriesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllRepositoriesOkResponse, import("..").Error>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getAllRepositories(props) {
7
- return fetcher(Object.assign({ url: `/repos`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Lists all the Repositories.
11
- */
12
- export function useGetAllRepositoriesQuery(props, options) {
13
- return useQuery(['GetAllRepositories', props.queryParams], ({ signal }) => getAllRepositories(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,28 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { RepositoryResponseResponse } from '../responses/RepositoryResponseResponse';
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 GetRepositoryQueryPathParams {
10
- repokey: string;
11
- }
12
- export interface GetRepositoryQueryQueryParams {
13
- org?: string;
14
- project?: string;
15
- }
16
- export interface GetRepositoryQueryHeaderParams {
17
- 'Harness-Account'?: string;
18
- }
19
- export type GetRepositoryOkResponse = ResponseWithPagination<RepositoryResponseResponse>;
20
- export type GetRepositoryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
21
- export interface GetRepositoryProps extends GetRepositoryQueryPathParams, Omit<FetcherOptions<GetRepositoryQueryQueryParams, unknown, GetRepositoryQueryHeaderParams>, 'url'> {
22
- queryParams: GetRepositoryQueryQueryParams;
23
- }
24
- export declare function getRepository(props: GetRepositoryProps): Promise<GetRepositoryOkResponse>;
25
- /**
26
- * Returns Repository Details in the account for the given key
27
- */
28
- export declare function useGetRepositoryQuery(props: GetRepositoryProps, options?: Omit<UseQueryOptions<GetRepositoryOkResponse, GetRepositoryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRepositoryOkResponse, import("..").Error>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getRepository(props) {
7
- return fetcher(Object.assign({ url: `/repos/${props.repokey}`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Returns Repository Details in the account for the given key
11
- */
12
- export function useGetRepositoryQuery(props, options) {
13
- return useQuery(['GetRepository', props.repokey, props.queryParams], ({ signal }) => getRepository(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,28 +0,0 @@
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>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function 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
- }
@@ -1,32 +0,0 @@
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>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { 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
- }
@@ -1,32 +0,0 @@
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>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { 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
- }
@@ -1,2 +0,0 @@
1
- import type { RepositoryRequest } from '../schemas/RepositoryRequest';
2
- export type RepositoryRequestRequestBody = RepositoryRequest;
@@ -1,2 +0,0 @@
1
- import type { UpstreamProxyRequest } from '../schemas/UpstreamProxyRequest';
2
- export type UpstreamProxyRequestRequestBody = UpstreamProxyRequest;
@@ -1,6 +0,0 @@
1
- import type { ListRepository } from '../schemas/ListRepository';
2
- import type { Status } from '../schemas/Status';
3
- export interface ListRepositoryResponseResponse {
4
- data: ListRepository;
5
- status: Status;
6
- }
@@ -1,6 +0,0 @@
1
- import type { Repository } from '../schemas/Repository';
2
- import type { Status } from '../schemas/Status';
3
- export interface RepositoryResponseResponse {
4
- data: Repository;
5
- status: Status;
6
- }
@@ -1,6 +0,0 @@
1
- import type { UpstreamProxy } from '../schemas/UpstreamProxy';
2
- import type { Status } from '../schemas/Status';
3
- export interface UpstreamProxyResponseResponse {
4
- data: UpstreamProxy;
5
- status: Status;
6
- }
@@ -1,20 +0,0 @@
1
- import type { RepositoryConfig } from '../schemas/RepositoryConfig';
2
- import type { Label } from '../schemas/Label';
3
- import type { PackageType } from '../schemas/PackageType';
4
- import type { Type } from '../schemas/Type';
5
- /**
6
- * Harness Artifact Repository
7
- */
8
- export interface Repository {
9
- config?: RepositoryConfig;
10
- createdAt?: string;
11
- description?: string;
12
- excludesPattern?: string[];
13
- includesPattern?: string[];
14
- labels?: Label;
15
- modifiedAt?: string;
16
- packageType: PackageType;
17
- repoKey: string;
18
- type: Type;
19
- url: string;
20
- }
@@ -1,8 +0,0 @@
1
- import type { CleanupPolicy } from '../schemas/CleanupPolicy';
2
- /**
3
- * Configuration for Harness Local Artifact Repositories
4
- */
5
- export interface RepositoryConfig {
6
- cleanupPolicy?: CleanupPolicy[];
7
- upstreamProxies?: string[];
8
- }
@@ -1,14 +0,0 @@
1
- import type { RepositoryConfig } from '../schemas/RepositoryConfig';
2
- import type { Label } from '../schemas/Label';
3
- import type { PackageType } from '../schemas/PackageType';
4
- import type { Type } from '../schemas/Type';
5
- export interface RepositoryRequest {
6
- config?: RepositoryConfig;
7
- description?: string;
8
- excludesPattern?: string[];
9
- includesPattern?: string[];
10
- labels?: Label;
11
- packageType: PackageType;
12
- repoKey: string;
13
- type: Type;
14
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * refers to type of repo i.e local, remote or virtual
3
- */
4
- export type Type = 'LOCAL' | 'REMOTE' | 'VIRTUAL';
@@ -1,15 +0,0 @@
1
- import type { UpstreamProxyConfig } from '../schemas/UpstreamProxyConfig';
2
- import type { PackageType } from '../schemas/PackageType';
3
- /**
4
- * Harness Artifact UpstreamProxy
5
- */
6
- export interface UpstreamProxy {
7
- config: UpstreamProxyConfig;
8
- createdAt?: string;
9
- excludesPattern?: string[];
10
- includesPattern?: string[];
11
- modifiedAt?: string;
12
- packageType: PackageType;
13
- repoKey: string;
14
- url: string;
15
- }
@@ -1,10 +0,0 @@
1
- import type { UpstreamProxyConfig } from '../schemas/UpstreamProxyConfig';
2
- import type { PackageType } from '../schemas/PackageType';
3
- export interface UpstreamProxyRequest {
4
- config: UpstreamProxyConfig;
5
- excludesPattern?: string[];
6
- includesPattern?: string[];
7
- packageType: PackageType;
8
- repoKey: string;
9
- url: string;
10
- }