@harnessio/react-har-service-client 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/har-service/src/services/hooks/useCreateRegistryMutation.d.ts +23 -0
- package/dist/har-service/src/services/hooks/useCreateRegistryMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useDeleteRegistryMutation.d.ts +20 -0
- package/dist/har-service/src/services/hooks/useDeleteRegistryMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.d.ts +14 -7
- package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.d.ts +18 -9
- package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetAllRegistriesQuery.d.ts +43 -0
- package/dist/har-service/src/services/hooks/useGetAllRegistriesQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsForRegistryQuery.d.ts +25 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsForRegistryQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsForSpaceQuery.d.ts +25 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsForSpaceQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsQuery.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.d.ts +3 -7
- package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +3 -7
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.d.ts +3 -7
- package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.d.ts +5 -6
- package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.js +8 -2
- package/dist/har-service/src/services/hooks/useGetDockerArtifactLayersQuery.d.ts +6 -6
- package/dist/har-service/src/services/hooks/useGetDockerArtifactLayersQuery.js +8 -2
- package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestQuery.d.ts +6 -6
- package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestQuery.js +8 -2
- package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.d.ts +3 -7
- package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.d.ts +3 -7
- package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetHelmArtifactManifestQuery.d.ts +3 -7
- package/dist/har-service/src/services/hooks/useGetHelmArtifactManifestQuery.js +2 -2
- package/dist/har-service/src/services/hooks/useGetRegistryQuery.d.ts +20 -0
- package/dist/har-service/src/services/hooks/useGetRegistryQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useListArtifactLabelsQuery.d.ts +34 -0
- package/dist/har-service/src/services/hooks/useListArtifactLabelsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useModifyRegistryMutation.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useModifyRegistryMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useUpdateArtifactLabelsMutation.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useUpdateArtifactLabelsMutation.js +14 -0
- package/dist/har-service/src/services/index.d.ts +49 -44
- package/dist/har-service/src/services/index.js +10 -9
- package/dist/har-service/src/services/requestBodies/ArtifactLabelRequestRequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/RegistryRequestRequestBody.d.ts +2 -0
- package/dist/har-service/src/services/responses/ArtifactLabelResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ArtifactStatsResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListArtifactLabelResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListRegistryResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/RegistryResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/schemas/ArtifactLabelRequest.d.ts +3 -0
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +2 -1
- package/dist/har-service/src/services/schemas/ArtifactStats.d.ts +9 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +2 -0
- package/dist/har-service/src/services/schemas/CleanupPolicy.d.ts +4 -5
- package/dist/har-service/src/services/schemas/DockerArtifactDetail.d.ts +1 -1
- package/dist/har-service/src/services/schemas/HelmArtifactDetail.d.ts +1 -1
- package/dist/har-service/src/services/schemas/ListArtifactLabel.d.ts +26 -0
- package/dist/har-service/src/services/schemas/ListArtifactLabel.js +4 -0
- package/dist/har-service/src/services/schemas/{ListRepository.d.ts → ListRegistry.d.ts} +5 -5
- package/dist/har-service/src/services/schemas/Registry.d.ts +19 -0
- package/dist/har-service/src/services/schemas/RegistryConfig.d.ts +6 -0
- package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +18 -0
- package/dist/har-service/src/services/schemas/RegistryRequest.d.ts +13 -0
- package/dist/har-service/src/services/schemas/RegistryType.d.ts +4 -0
- package/dist/har-service/src/services/schemas/RegistryType.js +4 -0
- package/dist/har-service/src/services/schemas/{UpstreamProxyConfig.d.ts → UpstreamConfig.d.ts} +3 -3
- package/dist/har-service/src/services/schemas/VirtualConfig.d.ts +6 -0
- package/dist/har-service/src/services/schemas/VirtualConfig.js +4 -0
- package/package.json +1 -1
- package/dist/har-service/src/services/hooks/useCreateRepositoryMutation.d.ts +0 -27
- package/dist/har-service/src/services/hooks/useCreateRepositoryMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useCreateUpstreamProxyMutation.d.ts +0 -27
- package/dist/har-service/src/services/hooks/useCreateUpstreamProxyMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useDeleteRepositoryMutation.d.ts +0 -28
- package/dist/har-service/src/services/hooks/useDeleteRepositoryMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useDeleteUpstreamProxyMutation.d.ts +0 -28
- package/dist/har-service/src/services/hooks/useDeleteUpstreamProxyMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useGetAllRepositoriesQuery.d.ts +0 -31
- package/dist/har-service/src/services/hooks/useGetAllRepositoriesQuery.js +0 -14
- package/dist/har-service/src/services/hooks/useGetRepositoryQuery.d.ts +0 -28
- package/dist/har-service/src/services/hooks/useGetRepositoryQuery.js +0 -14
- package/dist/har-service/src/services/hooks/useGetUpstreamProxyQuery.d.ts +0 -28
- package/dist/har-service/src/services/hooks/useGetUpstreamProxyQuery.js +0 -14
- package/dist/har-service/src/services/hooks/useModifyRepositoryMutation.d.ts +0 -32
- package/dist/har-service/src/services/hooks/useModifyRepositoryMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useModifyUpstreamProxyMutation.d.ts +0 -32
- package/dist/har-service/src/services/hooks/useModifyUpstreamProxyMutation.js +0 -14
- package/dist/har-service/src/services/requestBodies/RepositoryRequestRequestBody.d.ts +0 -2
- package/dist/har-service/src/services/requestBodies/UpstreamProxyRequestRequestBody.d.ts +0 -2
- package/dist/har-service/src/services/responses/ListRepositoryResponseResponse.d.ts +0 -6
- package/dist/har-service/src/services/responses/RepositoryResponseResponse.d.ts +0 -6
- package/dist/har-service/src/services/responses/UpstreamProxyResponseResponse.d.ts +0 -6
- package/dist/har-service/src/services/schemas/Label.d.ts +0 -6
- package/dist/har-service/src/services/schemas/Repository.d.ts +0 -20
- package/dist/har-service/src/services/schemas/RepositoryConfig.d.ts +0 -8
- package/dist/har-service/src/services/schemas/RepositoryMetadata.d.ts +0 -18
- package/dist/har-service/src/services/schemas/RepositoryRequest.d.ts +0 -14
- package/dist/har-service/src/services/schemas/Type.d.ts +0 -4
- package/dist/har-service/src/services/schemas/UpstreamProxy.d.ts +0 -15
- package/dist/har-service/src/services/schemas/UpstreamProxyRequest.d.ts +0 -10
- /package/dist/har-service/src/services/requestBodies/{RepositoryRequestRequestBody.js → ArtifactLabelRequestRequestBody.js} +0 -0
- /package/dist/har-service/src/services/requestBodies/{UpstreamProxyRequestRequestBody.js → RegistryRequestRequestBody.js} +0 -0
- /package/dist/har-service/src/services/responses/{ListRepositoryResponseResponse.js → ArtifactLabelResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/responses/{RepositoryResponseResponse.js → ArtifactStatsResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/responses/{UpstreamProxyResponseResponse.js → ListArtifactLabelResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/{schemas/ListRepository.js → responses/ListRegistryResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/{schemas/Repository.js → responses/RegistryResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/schemas/{Label.js → ArtifactLabelRequest.js} +0 -0
- /package/dist/har-service/src/services/schemas/{Type.js → ArtifactStats.js} +0 -0
- /package/dist/har-service/src/services/schemas/{RepositoryConfig.js → ListRegistry.js} +0 -0
- /package/dist/har-service/src/services/schemas/{RepositoryMetadata.js → Registry.js} +0 -0
- /package/dist/har-service/src/services/schemas/{RepositoryRequest.js → RegistryConfig.js} +0 -0
- /package/dist/har-service/src/services/schemas/{UpstreamProxy.js → RegistryMetadata.js} +0 -0
- /package/dist/har-service/src/services/schemas/{UpstreamProxyConfig.js → RegistryRequest.js} +0 -0
- /package/dist/har-service/src/services/schemas/{UpstreamProxyRequest.js → UpstreamConfig.js} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A list of Harness Artifact Labels
|
|
3
|
+
*/
|
|
4
|
+
export interface ListArtifactLabel {
|
|
5
|
+
/**
|
|
6
|
+
* The total number of items
|
|
7
|
+
* @example 1
|
|
8
|
+
*/
|
|
9
|
+
itemCount?: number;
|
|
10
|
+
labels: string[];
|
|
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
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RegistryMetadata } from '../schemas/RegistryMetadata';
|
|
2
2
|
/**
|
|
3
|
-
* A list of Harness Artifact
|
|
3
|
+
* A list of Harness Artifact Registries
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface ListRegistry {
|
|
6
6
|
/**
|
|
7
7
|
* The total number of items
|
|
8
8
|
* @example 1
|
|
@@ -24,7 +24,7 @@ export interface ListRepository {
|
|
|
24
24
|
*/
|
|
25
25
|
pageSize?: number;
|
|
26
26
|
/**
|
|
27
|
-
* A list of Harness Artifact
|
|
27
|
+
* A list of Harness Artifact Registries
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
registries: RegistryMetadata[];
|
|
30
30
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { CleanupPolicy } from '../schemas/CleanupPolicy';
|
|
2
|
+
import type { RegistryConfig } from '../schemas/RegistryConfig';
|
|
3
|
+
import type { PackageType } from '../schemas/PackageType';
|
|
4
|
+
/**
|
|
5
|
+
* Harness Artifact Registry
|
|
6
|
+
*/
|
|
7
|
+
export interface Registry<T0 extends RegistryConfig = RegistryConfig> {
|
|
8
|
+
allowedPattern?: string[];
|
|
9
|
+
blockedPattern?: string[];
|
|
10
|
+
cleanupPolicy?: CleanupPolicy[];
|
|
11
|
+
config?: T0;
|
|
12
|
+
createdAt?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
identifier: string;
|
|
15
|
+
labels?: string[];
|
|
16
|
+
modifiedAt?: string;
|
|
17
|
+
packageType: PackageType;
|
|
18
|
+
url: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PackageType } from '../schemas/PackageType';
|
|
2
|
+
import type { RegistryType } from '../schemas/RegistryType';
|
|
3
|
+
/**
|
|
4
|
+
* Harness Artifact Registry Metadata
|
|
5
|
+
*/
|
|
6
|
+
export interface RegistryMetadata {
|
|
7
|
+
artifactsCount?: number;
|
|
8
|
+
description?: string;
|
|
9
|
+
downloadsCount?: number;
|
|
10
|
+
identifier: string;
|
|
11
|
+
labels?: string[];
|
|
12
|
+
lastModified?: string;
|
|
13
|
+
packageType: PackageType;
|
|
14
|
+
path?: string;
|
|
15
|
+
registrySize?: string;
|
|
16
|
+
type: RegistryType;
|
|
17
|
+
url: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CleanupPolicy } from '../schemas/CleanupPolicy';
|
|
2
|
+
import type { RegistryConfig } from '../schemas/RegistryConfig';
|
|
3
|
+
import type { PackageType } from '../schemas/PackageType';
|
|
4
|
+
export interface RegistryRequest<T0 extends RegistryConfig = RegistryConfig> {
|
|
5
|
+
allowedPattern?: string[];
|
|
6
|
+
blockedPattern?: string[];
|
|
7
|
+
cleanupPolicy?: CleanupPolicy[];
|
|
8
|
+
config?: T0;
|
|
9
|
+
description?: string;
|
|
10
|
+
identifier: string;
|
|
11
|
+
labels?: string[];
|
|
12
|
+
packageType: PackageType;
|
|
13
|
+
}
|
package/dist/har-service/src/services/schemas/{UpstreamProxyConfig.d.ts → UpstreamConfig.d.ts}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { UserPassword } from '../schemas/UserPassword';
|
|
2
2
|
import type { Anonymous } from '../schemas/Anonymous';
|
|
3
3
|
import type { AuthType } from '../schemas/AuthType';
|
|
4
|
-
import type { CleanupPolicy } from '../schemas/CleanupPolicy';
|
|
5
4
|
/**
|
|
6
5
|
* Configuration for Harness Artifact UpstreamProxies
|
|
7
6
|
*/
|
|
8
|
-
export interface
|
|
7
|
+
export interface UpstreamConfig {
|
|
9
8
|
auth?: UserPassword & Anonymous;
|
|
10
9
|
authType: AuthType;
|
|
11
|
-
|
|
10
|
+
source?: 'Custom' | 'Dockerhub';
|
|
11
|
+
url?: string;
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } 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 { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
6
|
-
import type { RepositoryRequestRequestBody } from '../requestBodies/RepositoryRequestRequestBody';
|
|
7
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
-
export interface CreateRepositoryMutationQueryParams {
|
|
10
|
-
org?: string;
|
|
11
|
-
project?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface CreateRepositoryMutationHeaderParams {
|
|
14
|
-
'Harness-Account'?: string;
|
|
15
|
-
}
|
|
16
|
-
export type CreateRepositoryRequestBody = RepositoryRequestRequestBody;
|
|
17
|
-
export type CreateRepositoryOkResponse = ResponseWithPagination<RepositoryResponseResponse>;
|
|
18
|
-
export type CreateRepositoryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
|
|
19
|
-
export interface CreateRepositoryProps extends Omit<FetcherOptions<CreateRepositoryMutationQueryParams, CreateRepositoryRequestBody, CreateRepositoryMutationHeaderParams>, 'url'> {
|
|
20
|
-
queryParams: CreateRepositoryMutationQueryParams;
|
|
21
|
-
body: CreateRepositoryRequestBody;
|
|
22
|
-
}
|
|
23
|
-
export declare function createRepository(props: CreateRepositoryProps): Promise<CreateRepositoryOkResponse>;
|
|
24
|
-
/**
|
|
25
|
-
* Create a Repository.
|
|
26
|
-
*/
|
|
27
|
-
export declare function useCreateRepositoryMutation(options?: Omit<UseMutationOptions<CreateRepositoryOkResponse, CreateRepositoryErrorResponse, CreateRepositoryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRepositoryOkResponse, import("..").Error, CreateRepositoryProps, 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 createRepository(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/repos`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Create a Repository.
|
|
11
|
-
*/
|
|
12
|
-
export function useCreateRepositoryMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => createRepository(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } 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 { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
6
|
-
import type { UpstreamProxyRequestRequestBody } from '../requestBodies/UpstreamProxyRequestRequestBody';
|
|
7
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
-
export interface CreateUpstreamProxyMutationQueryParams {
|
|
10
|
-
org?: string;
|
|
11
|
-
project?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface CreateUpstreamProxyMutationHeaderParams {
|
|
14
|
-
'Harness-Account'?: string;
|
|
15
|
-
}
|
|
16
|
-
export type CreateUpstreamProxyRequestBody = UpstreamProxyRequestRequestBody;
|
|
17
|
-
export type CreateUpstreamProxyOkResponse = ResponseWithPagination<UpstreamProxyResponseResponse>;
|
|
18
|
-
export type CreateUpstreamProxyErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
|
|
19
|
-
export interface CreateUpstreamProxyProps extends Omit<FetcherOptions<CreateUpstreamProxyMutationQueryParams, CreateUpstreamProxyRequestBody, CreateUpstreamProxyMutationHeaderParams>, 'url'> {
|
|
20
|
-
queryParams: CreateUpstreamProxyMutationQueryParams;
|
|
21
|
-
body: CreateUpstreamProxyRequestBody;
|
|
22
|
-
}
|
|
23
|
-
export declare function createUpstreamProxy(props: CreateUpstreamProxyProps): Promise<CreateUpstreamProxyOkResponse>;
|
|
24
|
-
/**
|
|
25
|
-
* Create a UpstreamProxy.
|
|
26
|
-
*/
|
|
27
|
-
export declare function useCreateUpstreamProxyMutation(options?: Omit<UseMutationOptions<CreateUpstreamProxyOkResponse, CreateUpstreamProxyErrorResponse, CreateUpstreamProxyProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateUpstreamProxyOkResponse, import("..").Error, CreateUpstreamProxyProps, 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 createUpstreamProxy(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/upstreamproxies`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Create a UpstreamProxy.
|
|
11
|
-
*/
|
|
12
|
-
export function useCreateUpstreamProxyMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => createUpstreamProxy(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
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 DeleteRepositoryMutationPathParams {
|
|
10
|
-
repokey: string;
|
|
11
|
-
}
|
|
12
|
-
export interface DeleteRepositoryMutationQueryParams {
|
|
13
|
-
org?: string;
|
|
14
|
-
project?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface DeleteRepositoryMutationHeaderParams {
|
|
17
|
-
'Harness-Account'?: string;
|
|
18
|
-
}
|
|
19
|
-
export type DeleteRepositoryOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
20
|
-
export type DeleteRepositoryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
21
|
-
export interface DeleteRepositoryProps extends DeleteRepositoryMutationPathParams, Omit<FetcherOptions<DeleteRepositoryMutationQueryParams, unknown, DeleteRepositoryMutationHeaderParams>, 'url'> {
|
|
22
|
-
queryParams: DeleteRepositoryMutationQueryParams;
|
|
23
|
-
}
|
|
24
|
-
export declare function deleteRepository(props: DeleteRepositoryProps): Promise<DeleteRepositoryOkResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* Delete a Repository in the account for the given key
|
|
27
|
-
*/
|
|
28
|
-
export declare function useDeleteRepositoryMutation(options?: Omit<UseMutationOptions<DeleteRepositoryOkResponse, DeleteRepositoryErrorResponse, DeleteRepositoryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRepositoryOkResponse, import("..").Error, DeleteRepositoryProps, 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 deleteRepository(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/repos/${props.repokey}`, method: 'DELETE' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Delete a Repository in the account for the given key
|
|
11
|
-
*/
|
|
12
|
-
export function useDeleteRepositoryMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => deleteRepository(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
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 DeleteUpstreamProxyMutationPathParams {
|
|
10
|
-
repokey: string;
|
|
11
|
-
}
|
|
12
|
-
export interface DeleteUpstreamProxyMutationQueryParams {
|
|
13
|
-
org?: string;
|
|
14
|
-
project?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface DeleteUpstreamProxyMutationHeaderParams {
|
|
17
|
-
'Harness-Account'?: string;
|
|
18
|
-
}
|
|
19
|
-
export type DeleteUpstreamProxyOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
20
|
-
export type DeleteUpstreamProxyErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
21
|
-
export interface DeleteUpstreamProxyProps extends DeleteUpstreamProxyMutationPathParams, Omit<FetcherOptions<DeleteUpstreamProxyMutationQueryParams, unknown, DeleteUpstreamProxyMutationHeaderParams>, 'url'> {
|
|
22
|
-
queryParams: DeleteUpstreamProxyMutationQueryParams;
|
|
23
|
-
}
|
|
24
|
-
export declare function deleteUpstreamProxy(props: DeleteUpstreamProxyProps): Promise<DeleteUpstreamProxyOkResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* Delete a UpstreamProxy in the account for the given key
|
|
27
|
-
*/
|
|
28
|
-
export declare function useDeleteUpstreamProxyMutation(options?: Omit<UseMutationOptions<DeleteUpstreamProxyOkResponse, DeleteUpstreamProxyErrorResponse, DeleteUpstreamProxyProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteUpstreamProxyOkResponse, import("..").Error, DeleteUpstreamProxyProps, 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 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
|
-
}
|