@harnessio/react-har-service-client 0.17.0 → 0.19.0
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/useCreateReplicationRuleMutation.d.ts +25 -0
- package/dist/har-service/src/services/hooks/useCreateReplicationRuleMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useDeleteReplicationRuleMutation.d.ts +21 -0
- package/dist/har-service/src/services/hooks/useDeleteReplicationRuleMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useGetMigrationLogsForImageQuery.d.ts +22 -0
- package/dist/har-service/src/services/hooks/useGetMigrationLogsForImageQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetReplicationRuleQuery.d.ts +21 -0
- package/dist/har-service/src/services/hooks/useGetReplicationRuleQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useListMigrationImagesQuery.d.ts +36 -0
- package/dist/har-service/src/services/hooks/useListMigrationImagesQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useListReplicationRulesQuery.d.ts +22 -0
- package/dist/har-service/src/services/hooks/useListReplicationRulesQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useStartMigrationMutation.d.ts +21 -0
- package/dist/har-service/src/services/hooks/useStartMigrationMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useStopMigrationMutation.d.ts +21 -0
- package/dist/har-service/src/services/hooks/useStopMigrationMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useUpdateReplicationRuleMutation.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useUpdateReplicationRuleMutation.js +14 -0
- package/dist/har-service/src/services/index.d.ts +32 -0
- package/dist/har-service/src/services/index.js +9 -0
- package/dist/har-service/src/services/requestBodies/ReplicationRuleRequestRequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/ReplicationRuleRequestRequestBody.js +1 -0
- package/dist/har-service/src/services/responses/ListMigrationImageResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListMigrationImageResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ListReplicationRuleResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListReplicationRuleResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/PlainTextResponseResponse.d.ts +1 -0
- package/dist/har-service/src/services/responses/PlainTextResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ReplicationRuleResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ReplicationRuleResponseResponse.js +1 -0
- package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +2 -1
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +0 -10
- package/dist/har-service/src/services/schemas/JfrogReplicationRegistry.d.ts +10 -0
- package/dist/har-service/src/services/schemas/JfrogReplicationRegistry.js +4 -0
- package/dist/har-service/src/services/schemas/ListMigrationImage.d.ts +33 -0
- package/dist/har-service/src/services/schemas/ListMigrationImage.js +1 -0
- package/dist/har-service/src/services/schemas/ListReplicationRule.d.ts +33 -0
- package/dist/har-service/src/services/schemas/ListReplicationRule.js +1 -0
- package/dist/har-service/src/services/schemas/LocalReplicationRegistry.d.ts +3 -0
- package/dist/har-service/src/services/schemas/LocalReplicationRegistry.js +4 -0
- package/dist/har-service/src/services/schemas/MigrationImage.d.ts +6 -0
- package/dist/har-service/src/services/schemas/MigrationImage.js +4 -0
- package/dist/har-service/src/services/schemas/NugetArtifactDetailConfig.d.ts +3 -4
- package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
- package/dist/har-service/src/services/schemas/ReplicationRegistry.d.ts +3 -0
- package/dist/har-service/src/services/schemas/ReplicationRegistry.js +1 -0
- package/dist/har-service/src/services/schemas/ReplicationRule.d.ts +13 -0
- package/dist/har-service/src/services/schemas/ReplicationRule.js +1 -0
- package/dist/har-service/src/services/schemas/ReplicationRuleRequest.d.ts +9 -0
- package/dist/har-service/src/services/schemas/ReplicationRuleRequest.js +1 -0
- package/dist/har-service/src/services/schemas/RpmArtifactDetailConfig.d.ts +8 -0
- package/dist/har-service/src/services/schemas/RpmArtifactDetailConfig.js +4 -0
- package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ReplicationRuleResponseResponse } from '../responses/ReplicationRuleResponseResponse';
|
|
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 { ReplicationRuleRequestRequestBody } from '../requestBodies/ReplicationRuleRequestRequestBody';
|
|
9
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
10
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
11
|
+
export interface CreateReplicationRuleMutationQueryParams {
|
|
12
|
+
space_ref?: string;
|
|
13
|
+
}
|
|
14
|
+
export type CreateReplicationRuleRequestBody = ReplicationRuleRequestRequestBody;
|
|
15
|
+
export type CreateReplicationRuleOkResponse = ResponseWithPagination<ReplicationRuleResponseResponse>;
|
|
16
|
+
export type CreateReplicationRuleErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
17
|
+
export interface CreateReplicationRuleProps extends Omit<FetcherOptions<CreateReplicationRuleMutationQueryParams, CreateReplicationRuleRequestBody>, 'url'> {
|
|
18
|
+
queryParams: CreateReplicationRuleMutationQueryParams;
|
|
19
|
+
body: CreateReplicationRuleRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export declare function createReplicationRule(props: CreateReplicationRuleProps): Promise<CreateReplicationRuleOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Create a replication rule
|
|
24
|
+
*/
|
|
25
|
+
export declare function useCreateReplicationRuleMutation(options?: Omit<UseMutationOptions<CreateReplicationRuleOkResponse, CreateReplicationRuleErrorResponse, CreateReplicationRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateReplicationRuleOkResponse, import("..").Error, CreateReplicationRuleProps, 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 createReplicationRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/replication/rules`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create a replication rule
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateReplicationRuleMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createReplicationRule(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SuccessResponse } from '../responses/SuccessResponse';
|
|
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 { ResponseWithPagination } from '../helpers';
|
|
9
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
10
|
+
export interface DeleteReplicationRuleMutationPathParams {
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
export type DeleteReplicationRuleOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
14
|
+
export type DeleteReplicationRuleErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
15
|
+
export interface DeleteReplicationRuleProps extends DeleteReplicationRuleMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
16
|
+
}
|
|
17
|
+
export declare function deleteReplicationRule(props: DeleteReplicationRuleProps): Promise<DeleteReplicationRuleOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Delete a replication rule
|
|
20
|
+
*/
|
|
21
|
+
export declare function useDeleteReplicationRuleMutation(options?: Omit<UseMutationOptions<DeleteReplicationRuleOkResponse, DeleteReplicationRuleErrorResponse, DeleteReplicationRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteReplicationRuleOkResponse, import("..").Error, DeleteReplicationRuleProps, 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 deleteReplicationRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/replication/rules/${props.id}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete a replication rule
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteReplicationRuleMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteReplicationRule(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { PlainTextResponseResponse } from '../responses/PlainTextResponseResponse';
|
|
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 { ResponseWithPagination } from '../helpers';
|
|
9
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
10
|
+
export interface GetMigrationLogsForImageQueryPathParams {
|
|
11
|
+
id: string;
|
|
12
|
+
image_id: string;
|
|
13
|
+
}
|
|
14
|
+
export type GetMigrationLogsForImageOkResponse = ResponseWithPagination<PlainTextResponseResponse>;
|
|
15
|
+
export type GetMigrationLogsForImageErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
16
|
+
export interface GetMigrationLogsForImageProps extends GetMigrationLogsForImageQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
17
|
+
}
|
|
18
|
+
export declare function getMigrationLogsForImage(props: GetMigrationLogsForImageProps): Promise<GetMigrationLogsForImageOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get migration logs for an image
|
|
21
|
+
*/
|
|
22
|
+
export declare function useGetMigrationLogsForImageQuery(props: GetMigrationLogsForImageProps, options?: Omit<UseQueryOptions<GetMigrationLogsForImageOkResponse, GetMigrationLogsForImageErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMigrationLogsForImageOkResponse, 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 getMigrationLogsForImage(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/replication/rules/${props.id}/migration/images/${props.image_id}/logs`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get migration logs for an image
|
|
11
|
+
*/
|
|
12
|
+
export function useGetMigrationLogsForImageQuery(props, options) {
|
|
13
|
+
return useQuery(['getMigrationLogsForImage', props.id, props.image_id], ({ signal }) => getMigrationLogsForImage(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ReplicationRuleResponseResponse } from '../responses/ReplicationRuleResponseResponse';
|
|
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 { ResponseWithPagination } from '../helpers';
|
|
9
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
10
|
+
export interface GetReplicationRuleQueryPathParams {
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetReplicationRuleOkResponse = ResponseWithPagination<ReplicationRuleResponseResponse>;
|
|
14
|
+
export type GetReplicationRuleErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
15
|
+
export interface GetReplicationRuleProps extends GetReplicationRuleQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
16
|
+
}
|
|
17
|
+
export declare function getReplicationRule(props: GetReplicationRuleProps): Promise<GetReplicationRuleOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get a replication rule
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetReplicationRuleQuery(props: GetReplicationRuleProps, options?: Omit<UseQueryOptions<GetReplicationRuleOkResponse, GetReplicationRuleErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetReplicationRuleOkResponse, 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 getReplicationRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/replication/rules/${props.id}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get a replication rule
|
|
11
|
+
*/
|
|
12
|
+
export function useGetReplicationRuleQuery(props, options) {
|
|
13
|
+
return useQuery(['getReplicationRule', props.id], ({ signal }) => getReplicationRule(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListMigrationImageResponseResponse } from '../responses/ListMigrationImageResponseResponse';
|
|
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 { ResponseWithPagination } from '../helpers';
|
|
9
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
10
|
+
export interface ListMigrationImagesQueryPathParams {
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ListMigrationImagesQueryQueryParams {
|
|
14
|
+
/**
|
|
15
|
+
* @format int64
|
|
16
|
+
* @default 1
|
|
17
|
+
*/
|
|
18
|
+
page?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @format int64
|
|
21
|
+
* @default 20
|
|
22
|
+
*/
|
|
23
|
+
size?: number;
|
|
24
|
+
sort_order?: string;
|
|
25
|
+
sort_field?: string;
|
|
26
|
+
}
|
|
27
|
+
export type ListMigrationImagesOkResponse = ResponseWithPagination<ListMigrationImageResponseResponse>;
|
|
28
|
+
export type ListMigrationImagesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
29
|
+
export interface ListMigrationImagesProps extends ListMigrationImagesQueryPathParams, Omit<FetcherOptions<ListMigrationImagesQueryQueryParams, unknown>, 'url'> {
|
|
30
|
+
queryParams: ListMigrationImagesQueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export declare function listMigrationImages(props: ListMigrationImagesProps): Promise<ListMigrationImagesOkResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* List migration images given an id
|
|
35
|
+
*/
|
|
36
|
+
export declare function useListMigrationImagesQuery(props: ListMigrationImagesProps, options?: Omit<UseQueryOptions<ListMigrationImagesOkResponse, ListMigrationImagesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListMigrationImagesOkResponse, 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 listMigrationImages(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/replication/rules/${props.id}/migration/images`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List migration images given an id
|
|
11
|
+
*/
|
|
12
|
+
export function useListMigrationImagesQuery(props, options) {
|
|
13
|
+
return useQuery(['listMigrationImages', props.id, props.queryParams], ({ signal }) => listMigrationImages(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListReplicationRuleResponseResponse } from '../responses/ListReplicationRuleResponseResponse';
|
|
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 { ResponseWithPagination } from '../helpers';
|
|
9
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
10
|
+
export interface ListReplicationRulesQueryQueryParams {
|
|
11
|
+
space_ref?: string;
|
|
12
|
+
}
|
|
13
|
+
export type ListReplicationRulesOkResponse = ResponseWithPagination<ListReplicationRuleResponseResponse>;
|
|
14
|
+
export type ListReplicationRulesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
15
|
+
export interface ListReplicationRulesProps extends Omit<FetcherOptions<ListReplicationRulesQueryQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: ListReplicationRulesQueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export declare function listReplicationRules(props: ListReplicationRulesProps): Promise<ListReplicationRulesOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* List all replication rules
|
|
21
|
+
*/
|
|
22
|
+
export declare function useListReplicationRulesQuery(props: ListReplicationRulesProps, options?: Omit<UseQueryOptions<ListReplicationRulesOkResponse, ListReplicationRulesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListReplicationRulesOkResponse, 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 listReplicationRules(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/replication/rules`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List all replication rules
|
|
11
|
+
*/
|
|
12
|
+
export function useListReplicationRulesQuery(props, options) {
|
|
13
|
+
return useQuery(['listReplicationRules', props.queryParams], ({ signal }) => listReplicationRules(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SuccessResponse } from '../responses/SuccessResponse';
|
|
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 { ResponseWithPagination } from '../helpers';
|
|
9
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
10
|
+
export interface StartMigrationMutationPathParams {
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
export type StartMigrationOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
14
|
+
export type StartMigrationErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
15
|
+
export interface StartMigrationProps extends StartMigrationMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
16
|
+
}
|
|
17
|
+
export declare function startMigration(props: StartMigrationProps): Promise<StartMigrationOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Start migration given an id
|
|
20
|
+
*/
|
|
21
|
+
export declare function useStartMigrationMutation(options?: Omit<UseMutationOptions<StartMigrationOkResponse, StartMigrationErrorResponse, StartMigrationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<StartMigrationOkResponse, import("..").Error, StartMigrationProps, 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 startMigration(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/replication/rules/${props.id}/migration/start`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Start migration given an id
|
|
11
|
+
*/
|
|
12
|
+
export function useStartMigrationMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => startMigration(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SuccessResponse } from '../responses/SuccessResponse';
|
|
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 { ResponseWithPagination } from '../helpers';
|
|
9
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
10
|
+
export interface StopMigrationMutationPathParams {
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
export type StopMigrationOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
14
|
+
export type StopMigrationErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
15
|
+
export interface StopMigrationProps extends StopMigrationMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
16
|
+
}
|
|
17
|
+
export declare function stopMigration(props: StopMigrationProps): Promise<StopMigrationOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Stop migration given an id
|
|
20
|
+
*/
|
|
21
|
+
export declare function useStopMigrationMutation(options?: Omit<UseMutationOptions<StopMigrationOkResponse, StopMigrationErrorResponse, StopMigrationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<StopMigrationOkResponse, import("..").Error, StopMigrationProps, 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 stopMigration(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/replication/rules/${props.id}/migration/stop`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Stop migration given an id
|
|
11
|
+
*/
|
|
12
|
+
export function useStopMigrationMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => stopMigration(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ReplicationRuleResponseResponse } from '../responses/ReplicationRuleResponseResponse';
|
|
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 { ReplicationRuleRequestRequestBody } from '../requestBodies/ReplicationRuleRequestRequestBody';
|
|
9
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
10
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
11
|
+
export interface UpdateReplicationRuleMutationPathParams {
|
|
12
|
+
id: string;
|
|
13
|
+
}
|
|
14
|
+
export type UpdateReplicationRuleRequestBody = ReplicationRuleRequestRequestBody;
|
|
15
|
+
export type UpdateReplicationRuleOkResponse = ResponseWithPagination<ReplicationRuleResponseResponse>;
|
|
16
|
+
export type UpdateReplicationRuleErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
17
|
+
export interface UpdateReplicationRuleProps extends UpdateReplicationRuleMutationPathParams, Omit<FetcherOptions<unknown, UpdateReplicationRuleRequestBody>, 'url'> {
|
|
18
|
+
body: UpdateReplicationRuleRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export declare function updateReplicationRule(props: UpdateReplicationRuleProps): Promise<UpdateReplicationRuleOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Update a replication rule
|
|
23
|
+
*/
|
|
24
|
+
export declare function useUpdateReplicationRuleMutation(options?: Omit<UseMutationOptions<UpdateReplicationRuleOkResponse, UpdateReplicationRuleErrorResponse, UpdateReplicationRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateReplicationRuleOkResponse, import("..").Error, UpdateReplicationRuleProps, 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 updateReplicationRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/replication/rules/${props.id}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update a replication rule
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateReplicationRuleMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateReplicationRule(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
2
|
export type { CreateRegistryErrorResponse, CreateRegistryMutationQueryParams, CreateRegistryOkResponse, CreateRegistryProps, CreateRegistryRequestBody, } from './hooks/useCreateRegistryMutation';
|
|
3
3
|
export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
|
|
4
|
+
export type { CreateReplicationRuleErrorResponse, CreateReplicationRuleMutationQueryParams, CreateReplicationRuleOkResponse, CreateReplicationRuleProps, CreateReplicationRuleRequestBody, } from './hooks/useCreateReplicationRuleMutation';
|
|
5
|
+
export { createReplicationRule, useCreateReplicationRuleMutation, } from './hooks/useCreateReplicationRuleMutation';
|
|
4
6
|
export type { CreateWebhookErrorResponse, CreateWebhookMutationPathParams, CreateWebhookOkResponse, CreateWebhookProps, CreateWebhookRequestBody, } from './hooks/useCreateWebhookMutation';
|
|
5
7
|
export { createWebhook, useCreateWebhookMutation } from './hooks/useCreateWebhookMutation';
|
|
6
8
|
export type { DeleteArtifactErrorResponse, DeleteArtifactMutationPathParams, DeleteArtifactOkResponse, DeleteArtifactProps, } from './hooks/useDeleteArtifactMutation';
|
|
@@ -9,6 +11,8 @@ export type { DeleteArtifactVersionErrorResponse, DeleteArtifactVersionMutationP
|
|
|
9
11
|
export { deleteArtifactVersion, useDeleteArtifactVersionMutation, } from './hooks/useDeleteArtifactVersionMutation';
|
|
10
12
|
export type { DeleteRegistryErrorResponse, DeleteRegistryMutationPathParams, DeleteRegistryOkResponse, DeleteRegistryProps, } from './hooks/useDeleteRegistryMutation';
|
|
11
13
|
export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
|
|
14
|
+
export type { DeleteReplicationRuleErrorResponse, DeleteReplicationRuleMutationPathParams, DeleteReplicationRuleOkResponse, DeleteReplicationRuleProps, } from './hooks/useDeleteReplicationRuleMutation';
|
|
15
|
+
export { deleteReplicationRule, useDeleteReplicationRuleMutation, } from './hooks/useDeleteReplicationRuleMutation';
|
|
12
16
|
export type { DeleteWebhookErrorResponse, DeleteWebhookMutationPathParams, DeleteWebhookOkResponse, DeleteWebhookProps, } from './hooks/useDeleteWebhookMutation';
|
|
13
17
|
export { deleteWebhook, useDeleteWebhookMutation } from './hooks/useDeleteWebhookMutation';
|
|
14
18
|
export type { GetAllArtifactVersionsErrorResponse, GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsProps, GetAllArtifactVersionsQueryPathParams, GetAllArtifactVersionsQueryQueryParams, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
@@ -51,8 +55,12 @@ export type { GetHelmArtifactDetailsErrorResponse, GetHelmArtifactDetailsOkRespo
|
|
|
51
55
|
export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
|
|
52
56
|
export type { GetHelmArtifactManifestErrorResponse, GetHelmArtifactManifestOkResponse, GetHelmArtifactManifestProps, GetHelmArtifactManifestQueryPathParams, } from './hooks/useGetHelmArtifactManifestQuery';
|
|
53
57
|
export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
|
|
58
|
+
export type { GetMigrationLogsForImageErrorResponse, GetMigrationLogsForImageOkResponse, GetMigrationLogsForImageProps, GetMigrationLogsForImageQueryPathParams, } from './hooks/useGetMigrationLogsForImageQuery';
|
|
59
|
+
export { getMigrationLogsForImage, useGetMigrationLogsForImageQuery, } from './hooks/useGetMigrationLogsForImageQuery';
|
|
54
60
|
export type { GetRegistryErrorResponse, GetRegistryOkResponse, GetRegistryProps, GetRegistryQueryPathParams, } from './hooks/useGetRegistryQuery';
|
|
55
61
|
export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
|
|
62
|
+
export type { GetReplicationRuleErrorResponse, GetReplicationRuleOkResponse, GetReplicationRuleProps, GetReplicationRuleQueryPathParams, } from './hooks/useGetReplicationRuleQuery';
|
|
63
|
+
export { getReplicationRule, useGetReplicationRuleQuery } from './hooks/useGetReplicationRuleQuery';
|
|
56
64
|
export type { GetStorageDetailsErrorResponse, GetStorageDetailsOkResponse, GetStorageDetailsProps, GetStorageDetailsQueryPathParams, } from './hooks/useGetStorageDetailsQuery';
|
|
57
65
|
export { getStorageDetails, useGetStorageDetailsQuery } from './hooks/useGetStorageDetailsQuery';
|
|
58
66
|
export type { GetWebhookExecutionErrorResponse, GetWebhookExecutionOkResponse, GetWebhookExecutionProps, GetWebhookExecutionQueryPathParams, } from './hooks/useGetWebhookExecutionQuery';
|
|
@@ -61,6 +69,10 @@ export type { GetWebhookErrorResponse, GetWebhookOkResponse, GetWebhookProps, Ge
|
|
|
61
69
|
export { getWebhook, useGetWebhookQuery } from './hooks/useGetWebhookQuery';
|
|
62
70
|
export type { ListArtifactLabelsErrorResponse, ListArtifactLabelsOkResponse, ListArtifactLabelsProps, ListArtifactLabelsQueryPathParams, ListArtifactLabelsQueryQueryParams, } from './hooks/useListArtifactLabelsQuery';
|
|
63
71
|
export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
|
|
72
|
+
export type { ListMigrationImagesErrorResponse, ListMigrationImagesOkResponse, ListMigrationImagesProps, ListMigrationImagesQueryPathParams, ListMigrationImagesQueryQueryParams, } from './hooks/useListMigrationImagesQuery';
|
|
73
|
+
export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useListMigrationImagesQuery';
|
|
74
|
+
export type { ListReplicationRulesErrorResponse, ListReplicationRulesOkResponse, ListReplicationRulesProps, ListReplicationRulesQueryQueryParams, } from './hooks/useListReplicationRulesQuery';
|
|
75
|
+
export { listReplicationRules, useListReplicationRulesQuery, } from './hooks/useListReplicationRulesQuery';
|
|
64
76
|
export type { ListWebhookExecutionsErrorResponse, ListWebhookExecutionsOkResponse, ListWebhookExecutionsProps, ListWebhookExecutionsQueryPathParams, ListWebhookExecutionsQueryQueryParams, } from './hooks/useListWebhookExecutionsQuery';
|
|
65
77
|
export { listWebhookExecutions, useListWebhookExecutionsQuery, } from './hooks/useListWebhookExecutionsQuery';
|
|
66
78
|
export type { ListWebhooksErrorResponse, ListWebhooksOkResponse, ListWebhooksProps, ListWebhooksQueryPathParams, ListWebhooksQueryQueryParams, } from './hooks/useListWebhooksQuery';
|
|
@@ -71,12 +83,19 @@ export type { ReTriggerWebhookExecutionErrorResponse, ReTriggerWebhookExecutionO
|
|
|
71
83
|
export { reTriggerWebhookExecution, useReTriggerWebhookExecutionQuery, } from './hooks/useReTriggerWebhookExecutionQuery';
|
|
72
84
|
export type { RedirectHarnessArtifactErrorResponse, RedirectHarnessArtifactOkResponse, RedirectHarnessArtifactProps, RedirectHarnessArtifactQueryPathParams, RedirectHarnessArtifactQueryQueryParams, } from './hooks/useRedirectHarnessArtifactQuery';
|
|
73
85
|
export { redirectHarnessArtifact, useRedirectHarnessArtifactQuery, } from './hooks/useRedirectHarnessArtifactQuery';
|
|
86
|
+
export type { StartMigrationErrorResponse, StartMigrationMutationPathParams, StartMigrationOkResponse, StartMigrationProps, } from './hooks/useStartMigrationMutation';
|
|
87
|
+
export { startMigration, useStartMigrationMutation } from './hooks/useStartMigrationMutation';
|
|
88
|
+
export type { StopMigrationErrorResponse, StopMigrationMutationPathParams, StopMigrationOkResponse, StopMigrationProps, } from './hooks/useStopMigrationMutation';
|
|
89
|
+
export { stopMigration, useStopMigrationMutation } from './hooks/useStopMigrationMutation';
|
|
74
90
|
export type { UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsMutationPathParams, UpdateArtifactLabelsOkResponse, UpdateArtifactLabelsProps, UpdateArtifactLabelsRequestBody, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
75
91
|
export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
92
|
+
export type { UpdateReplicationRuleErrorResponse, UpdateReplicationRuleMutationPathParams, UpdateReplicationRuleOkResponse, UpdateReplicationRuleProps, UpdateReplicationRuleRequestBody, } from './hooks/useUpdateReplicationRuleMutation';
|
|
93
|
+
export { updateReplicationRule, useUpdateReplicationRuleMutation, } from './hooks/useUpdateReplicationRuleMutation';
|
|
76
94
|
export type { UpdateWebhookErrorResponse, UpdateWebhookMutationPathParams, UpdateWebhookOkResponse, UpdateWebhookProps, UpdateWebhookRequestBody, } from './hooks/useUpdateWebhookMutation';
|
|
77
95
|
export { updateWebhook, useUpdateWebhookMutation } from './hooks/useUpdateWebhookMutation';
|
|
78
96
|
export type { ArtifactLabelRequestRequestBody } from './requestBodies/ArtifactLabelRequestRequestBody';
|
|
79
97
|
export type { RegistryRequestRequestBody } from './requestBodies/RegistryRequestRequestBody';
|
|
98
|
+
export type { ReplicationRuleRequestRequestBody } from './requestBodies/ReplicationRuleRequestRequestBody';
|
|
80
99
|
export type { WebhookRequestRequestBody } from './requestBodies/WebhookRequestRequestBody';
|
|
81
100
|
export type { ArtifactDeploymentsResponseResponse } from './responses/ArtifactDeploymentsResponseResponse';
|
|
82
101
|
export type { ArtifactDetailResponseResponse } from './responses/ArtifactDetailResponseResponse';
|
|
@@ -98,13 +117,17 @@ export type { InternalServerErrorResponse } from './responses/InternalServerErro
|
|
|
98
117
|
export type { ListArtifactLabelResponseResponse } from './responses/ListArtifactLabelResponseResponse';
|
|
99
118
|
export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
|
|
100
119
|
export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
|
|
120
|
+
export type { ListMigrationImageResponseResponse } from './responses/ListMigrationImageResponseResponse';
|
|
101
121
|
export type { ListRegistryArtifactResponseResponse } from './responses/ListRegistryArtifactResponseResponse';
|
|
102
122
|
export type { ListRegistryResponseResponse } from './responses/ListRegistryResponseResponse';
|
|
123
|
+
export type { ListReplicationRuleResponseResponse } from './responses/ListReplicationRuleResponseResponse';
|
|
103
124
|
export type { ListWebhooksExecutionResponseResponse } from './responses/ListWebhooksExecutionResponseResponse';
|
|
104
125
|
export type { ListWebhooksResponseResponse } from './responses/ListWebhooksResponseResponse';
|
|
105
126
|
export type { NotFoundResponse } from './responses/NotFoundResponse';
|
|
127
|
+
export type { PlainTextResponseResponse } from './responses/PlainTextResponseResponse';
|
|
106
128
|
export type { RedirectResponse } from './responses/RedirectResponse';
|
|
107
129
|
export type { RegistryResponseResponse } from './responses/RegistryResponseResponse';
|
|
130
|
+
export type { ReplicationRuleResponseResponse } from './responses/ReplicationRuleResponseResponse';
|
|
108
131
|
export type { StorageDetailsResponseResponse } from './responses/StorageDetailsResponseResponse';
|
|
109
132
|
export type { SuccessResponse } from './responses/SuccessResponse';
|
|
110
133
|
export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
|
|
@@ -151,14 +174,19 @@ export type { GenericArtifactDetailConfig } from './schemas/GenericArtifactDetai
|
|
|
151
174
|
export type { HelmArtifactDetail } from './schemas/HelmArtifactDetail';
|
|
152
175
|
export type { HelmArtifactDetailConfig } from './schemas/HelmArtifactDetailConfig';
|
|
153
176
|
export type { HelmArtifactManifest } from './schemas/HelmArtifactManifest';
|
|
177
|
+
export type { JfrogReplicationRegistry } from './schemas/JfrogReplicationRegistry';
|
|
154
178
|
export type { ListArtifact } from './schemas/ListArtifact';
|
|
155
179
|
export type { ListArtifactLabel } from './schemas/ListArtifactLabel';
|
|
156
180
|
export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
|
|
181
|
+
export type { ListMigrationImage } from './schemas/ListMigrationImage';
|
|
157
182
|
export type { ListRegistry } from './schemas/ListRegistry';
|
|
158
183
|
export type { ListRegistryArtifact } from './schemas/ListRegistryArtifact';
|
|
184
|
+
export type { ListReplicationRule } from './schemas/ListReplicationRule';
|
|
159
185
|
export type { ListWebhooks } from './schemas/ListWebhooks';
|
|
160
186
|
export type { ListWebhooksExecutions } from './schemas/ListWebhooksExecutions';
|
|
187
|
+
export type { LocalReplicationRegistry } from './schemas/LocalReplicationRegistry';
|
|
161
188
|
export type { MavenArtifactDetailConfig } from './schemas/MavenArtifactDetailConfig';
|
|
189
|
+
export type { MigrationImage } from './schemas/MigrationImage';
|
|
162
190
|
export type { NpmArtifactDetailConfig } from './schemas/NpmArtifactDetailConfig';
|
|
163
191
|
export type { NugetArtifactDetailConfig } from './schemas/NugetArtifactDetailConfig';
|
|
164
192
|
export type { PackageType } from './schemas/PackageType';
|
|
@@ -169,6 +197,10 @@ export type { RegistryConfig } from './schemas/RegistryConfig';
|
|
|
169
197
|
export type { RegistryMetadata } from './schemas/RegistryMetadata';
|
|
170
198
|
export type { RegistryRequest } from './schemas/RegistryRequest';
|
|
171
199
|
export type { RegistryType } from './schemas/RegistryType';
|
|
200
|
+
export type { ReplicationRegistry } from './schemas/ReplicationRegistry';
|
|
201
|
+
export type { ReplicationRule } from './schemas/ReplicationRule';
|
|
202
|
+
export type { ReplicationRuleRequest } from './schemas/ReplicationRuleRequest';
|
|
203
|
+
export type { RpmArtifactDetailConfig } from './schemas/RpmArtifactDetailConfig';
|
|
172
204
|
export type { SbomDetails } from './schemas/SbomDetails';
|
|
173
205
|
export type { Scanner } from './schemas/Scanner';
|
|
174
206
|
export type { SectionType } from './schemas/SectionType';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
|
|
2
|
+
export { createReplicationRule, useCreateReplicationRuleMutation, } from './hooks/useCreateReplicationRuleMutation';
|
|
2
3
|
export { createWebhook, useCreateWebhookMutation } from './hooks/useCreateWebhookMutation';
|
|
3
4
|
export { deleteArtifact, useDeleteArtifactMutation } from './hooks/useDeleteArtifactMutation';
|
|
4
5
|
export { deleteArtifactVersion, useDeleteArtifactVersionMutation, } from './hooks/useDeleteArtifactVersionMutation';
|
|
5
6
|
export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
|
|
7
|
+
export { deleteReplicationRule, useDeleteReplicationRuleMutation, } from './hooks/useDeleteReplicationRuleMutation';
|
|
6
8
|
export { deleteWebhook, useDeleteWebhookMutation } from './hooks/useDeleteWebhookMutation';
|
|
7
9
|
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
8
10
|
export { getAllArtifactsByRegistry, useGetAllArtifactsByRegistryQuery, } from './hooks/useGetAllArtifactsByRegistryQuery';
|
|
@@ -24,15 +26,22 @@ export { getDockerArtifactManifest, useGetDockerArtifactManifestQuery, } from '.
|
|
|
24
26
|
export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from './hooks/useGetDockerArtifactManifestsQuery';
|
|
25
27
|
export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
|
|
26
28
|
export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
|
|
29
|
+
export { getMigrationLogsForImage, useGetMigrationLogsForImageQuery, } from './hooks/useGetMigrationLogsForImageQuery';
|
|
27
30
|
export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
|
|
31
|
+
export { getReplicationRule, useGetReplicationRuleQuery } from './hooks/useGetReplicationRuleQuery';
|
|
28
32
|
export { getStorageDetails, useGetStorageDetailsQuery } from './hooks/useGetStorageDetailsQuery';
|
|
29
33
|
export { getWebhookExecution, useGetWebhookExecutionQuery, } from './hooks/useGetWebhookExecutionQuery';
|
|
30
34
|
export { getWebhook, useGetWebhookQuery } from './hooks/useGetWebhookQuery';
|
|
31
35
|
export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
|
|
36
|
+
export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useListMigrationImagesQuery';
|
|
37
|
+
export { listReplicationRules, useListReplicationRulesQuery, } from './hooks/useListReplicationRulesQuery';
|
|
32
38
|
export { listWebhookExecutions, useListWebhookExecutionsQuery, } from './hooks/useListWebhookExecutionsQuery';
|
|
33
39
|
export { listWebhooks, useListWebhooksQuery } from './hooks/useListWebhooksQuery';
|
|
34
40
|
export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
|
|
35
41
|
export { reTriggerWebhookExecution, useReTriggerWebhookExecutionQuery, } from './hooks/useReTriggerWebhookExecutionQuery';
|
|
36
42
|
export { redirectHarnessArtifact, useRedirectHarnessArtifactQuery, } from './hooks/useRedirectHarnessArtifactQuery';
|
|
43
|
+
export { startMigration, useStartMigrationMutation } from './hooks/useStartMigrationMutation';
|
|
44
|
+
export { stopMigration, useStopMigrationMutation } from './hooks/useStopMigrationMutation';
|
|
37
45
|
export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
46
|
+
export { updateReplicationRule, useUpdateReplicationRuleMutation, } from './hooks/useUpdateReplicationRuleMutation';
|
|
38
47
|
export { updateWebhook, useUpdateWebhookMutation } from './hooks/useUpdateWebhookMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type PlainTextResponseResponse = unknown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,11 +5,12 @@ import type { MavenArtifactDetailConfig } from '../schemas/MavenArtifactDetailCo
|
|
|
5
5
|
import type { NpmArtifactDetailConfig } from '../schemas/NpmArtifactDetailConfig';
|
|
6
6
|
import type { PythonArtifactDetailConfig } from '../schemas/PythonArtifactDetailConfig';
|
|
7
7
|
import type { NugetArtifactDetailConfig } from '../schemas/NugetArtifactDetailConfig';
|
|
8
|
+
import type { RpmArtifactDetailConfig } from '../schemas/RpmArtifactDetailConfig';
|
|
8
9
|
import type { PackageType } from '../schemas/PackageType';
|
|
9
10
|
/**
|
|
10
11
|
* Artifact Detail
|
|
11
12
|
*/
|
|
12
|
-
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | NpmArtifactDetailConfig | PythonArtifactDetailConfig | NugetArtifactDetailConfig) & {
|
|
13
|
+
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | NpmArtifactDetailConfig | PythonArtifactDetailConfig | NugetArtifactDetailConfig | RpmArtifactDetailConfig) & {
|
|
13
14
|
createdAt?: string;
|
|
14
15
|
createdBy?: string;
|
|
15
16
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { DeploymentMetadata } from '../schemas/DeploymentMetadata';
|
|
2
2
|
import type { PackageType } from '../schemas/PackageType';
|
|
3
|
-
import type { StoDigestMetadata } from '../schemas/StoDigestMetadata';
|
|
4
3
|
import type { StoMetadata } from '../schemas/StoMetadata';
|
|
5
4
|
/**
|
|
6
5
|
* Artifact Metadata
|
|
@@ -19,15 +18,6 @@ export interface ArtifactMetadata {
|
|
|
19
18
|
pullCommand?: string;
|
|
20
19
|
registryIdentifier: string;
|
|
21
20
|
registryPath: string;
|
|
22
|
-
scannedDigest?: StoDigestMetadata[];
|
|
23
|
-
/**
|
|
24
|
-
* @format int64
|
|
25
|
-
*/
|
|
26
|
-
scannedDigestCount?: number;
|
|
27
21
|
stoMetadata?: StoMetadata;
|
|
28
|
-
/**
|
|
29
|
-
* @format int64
|
|
30
|
-
*/
|
|
31
|
-
totalDigestCount?: number;
|
|
32
22
|
version: string;
|
|
33
23
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { MigrationImage } from '../schemas/MigrationImage';
|
|
2
|
+
/**
|
|
3
|
+
* A list of migration images
|
|
4
|
+
*/
|
|
5
|
+
export interface ListMigrationImage {
|
|
6
|
+
/**
|
|
7
|
+
* A list of Artifact versions
|
|
8
|
+
*/
|
|
9
|
+
images: MigrationImage[];
|
|
10
|
+
/**
|
|
11
|
+
* The total number of items
|
|
12
|
+
* @format int64
|
|
13
|
+
* @example 1
|
|
14
|
+
*/
|
|
15
|
+
itemCount: number;
|
|
16
|
+
/**
|
|
17
|
+
* The total number of pages
|
|
18
|
+
* @format int64
|
|
19
|
+
* @example 100
|
|
20
|
+
*/
|
|
21
|
+
pageCount: number;
|
|
22
|
+
/**
|
|
23
|
+
* The current page
|
|
24
|
+
* @format int64
|
|
25
|
+
* @example 0
|
|
26
|
+
*/
|
|
27
|
+
pageIndex: number;
|
|
28
|
+
/**
|
|
29
|
+
* The number of items per page
|
|
30
|
+
* @example 1
|
|
31
|
+
*/
|
|
32
|
+
pageSize: number;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ReplicationRule } from '../schemas/ReplicationRule';
|
|
2
|
+
/**
|
|
3
|
+
* A list of replication rules
|
|
4
|
+
*/
|
|
5
|
+
export interface ListReplicationRule {
|
|
6
|
+
/**
|
|
7
|
+
* The total number of items
|
|
8
|
+
* @format int64
|
|
9
|
+
* @example 1
|
|
10
|
+
*/
|
|
11
|
+
itemCount: number;
|
|
12
|
+
/**
|
|
13
|
+
* The total number of pages
|
|
14
|
+
* @format int64
|
|
15
|
+
* @example 100
|
|
16
|
+
*/
|
|
17
|
+
pageCount: number;
|
|
18
|
+
/**
|
|
19
|
+
* The current page
|
|
20
|
+
* @format int64
|
|
21
|
+
* @example 0
|
|
22
|
+
*/
|
|
23
|
+
pageIndex: number;
|
|
24
|
+
/**
|
|
25
|
+
* The number of items per page
|
|
26
|
+
* @example 10
|
|
27
|
+
*/
|
|
28
|
+
pageSize: number;
|
|
29
|
+
/**
|
|
30
|
+
* A list of Replication Rules
|
|
31
|
+
*/
|
|
32
|
+
rules: ReplicationRule[];
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReplicationRegistry } from '../schemas/ReplicationRegistry';
|
|
2
|
+
export interface ReplicationRule {
|
|
3
|
+
allowedPatterns: string[];
|
|
4
|
+
blockedPatterns: string[];
|
|
5
|
+
createdAt: string;
|
|
6
|
+
destination: ReplicationRegistry;
|
|
7
|
+
destinationType: 'GCP' | 'Jfrog' | 'Local';
|
|
8
|
+
identifier: string;
|
|
9
|
+
modifiedAt: string;
|
|
10
|
+
parentRef: string;
|
|
11
|
+
source: ReplicationRegistry;
|
|
12
|
+
sourceType: 'GCP' | 'Jfrog' | 'Local';
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReplicationRegistry } from '../schemas/ReplicationRegistry';
|
|
2
|
+
export interface ReplicationRuleRequest {
|
|
3
|
+
allowedPatterns: string[];
|
|
4
|
+
blockedPatterns: string[];
|
|
5
|
+
destination: ReplicationRegistry;
|
|
6
|
+
destinationType: 'GCP' | 'Jfrog' | 'Local';
|
|
7
|
+
source: ReplicationRegistry;
|
|
8
|
+
sourceType: 'GCP' | 'Jfrog' | 'Local';
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,6 +8,6 @@ import type { AuthType } from '../schemas/AuthType';
|
|
|
8
8
|
export interface UpstreamConfig {
|
|
9
9
|
auth?: UserPassword | Anonymous | AccessKeySecretKey;
|
|
10
10
|
authType: AuthType;
|
|
11
|
-
source?: 'AwsEcr' | 'Custom' | 'Dockerhub' | 'MavenCentral' | 'NpmJs' | '
|
|
11
|
+
source?: 'AwsEcr' | 'Custom' | 'Dockerhub' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'PyPi';
|
|
12
12
|
url?: string;
|
|
13
13
|
}
|