@harnessio/react-dbops-service-client 0.10.0 → 0.12.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/dbops-service/src/services/hooks/useV1DeleteExecutionConfigMutation.d.ts +17 -0
- package/dist/dbops-service/src/services/hooks/useV1DeleteExecutionConfigMutation.js +14 -0
- package/dist/dbops-service/src/services/hooks/useV1GetCustomerConfigQuery.d.ts +24 -0
- package/dist/dbops-service/src/services/hooks/useV1GetCustomerConfigQuery.js +14 -0
- package/dist/dbops-service/src/services/hooks/useV1GetDefaultConfigQuery.d.ts +17 -0
- package/dist/dbops-service/src/services/hooks/useV1GetDefaultConfigQuery.js +14 -0
- package/dist/dbops-service/src/services/hooks/useV1MigrationStateProjDbInstanceQuery.d.ts +36 -0
- package/dist/dbops-service/src/services/hooks/useV1MigrationStateProjDbInstanceQuery.js +21 -0
- package/dist/dbops-service/src/services/hooks/useV1ResetExecutionConfigMutation.d.ts +19 -0
- package/dist/dbops-service/src/services/hooks/useV1ResetExecutionConfigMutation.js +14 -0
- package/dist/dbops-service/src/services/hooks/useV1UpdateExecutionConfigMutation.d.ts +20 -0
- package/dist/dbops-service/src/services/hooks/useV1UpdateExecutionConfigMutation.js +14 -0
- package/dist/dbops-service/src/services/hooks/useV2ListProjDbInstancesMutation.d.ts +45 -0
- package/dist/dbops-service/src/services/hooks/useV2ListProjDbInstancesMutation.js +14 -0
- package/dist/dbops-service/src/services/hooks/useV2ListProjDbSchemaMutation.d.ts +45 -0
- package/dist/dbops-service/src/services/hooks/useV2ListProjDbSchemaMutation.js +14 -0
- package/dist/dbops-service/src/services/index.d.ts +28 -0
- package/dist/dbops-service/src/services/index.js +8 -0
- package/dist/dbops-service/src/services/requestBodies/DbInstanceListRequestRequestBody.d.ts +2 -0
- package/dist/dbops-service/src/services/requestBodies/DbInstanceListRequestRequestBody.js +1 -0
- package/dist/dbops-service/src/services/requestBodies/DbSchemaFilterRequestRequestBody.d.ts +2 -0
- package/dist/dbops-service/src/services/requestBodies/DbSchemaFilterRequestRequestBody.js +1 -0
- package/dist/dbops-service/src/services/requestBodies/ExecutionConfigUpdateRequestRequestBody.d.ts +2 -0
- package/dist/dbops-service/src/services/requestBodies/ExecutionConfigUpdateRequestRequestBody.js +1 -0
- package/dist/dbops-service/src/services/responses/ExecutionConfigSuccessResponseResponse.d.ts +1 -0
- package/dist/dbops-service/src/services/responses/ExecutionConfigSuccessResponseResponse.js +4 -0
- package/dist/dbops-service/src/services/responses/ExecutionConfigTagsResponseResponse.d.ts +2 -0
- package/dist/dbops-service/src/services/responses/ExecutionConfigTagsResponseResponse.js +1 -0
- package/dist/dbops-service/src/services/responses/InstanceMigrationStateResponseResponse.d.ts +2 -0
- package/dist/dbops-service/src/services/responses/InstanceMigrationStateResponseResponse.js +1 -0
- package/dist/dbops-service/src/services/schemas/Command.d.ts +1 -1
- package/dist/dbops-service/src/services/schemas/DbInstanceListInput.d.ts +13 -0
- package/dist/dbops-service/src/services/schemas/DbInstanceListInput.js +4 -0
- package/dist/dbops-service/src/services/schemas/DbInstanceOut.d.ts +2 -0
- package/dist/dbops-service/src/services/schemas/DbSchemaFilterIn.d.ts +9 -0
- package/dist/dbops-service/src/services/schemas/DbSchemaFilterIn.js +4 -0
- package/dist/dbops-service/src/services/schemas/ExecutionConfigOperation.d.ts +15 -0
- package/dist/dbops-service/src/services/schemas/ExecutionConfigOperation.js +4 -0
- package/dist/dbops-service/src/services/schemas/ExecutionConfigTags.d.ts +7 -0
- package/dist/dbops-service/src/services/schemas/ExecutionConfigTags.js +4 -0
- package/dist/dbops-service/src/services/schemas/InstanceMigrationStateChangeSet.d.ts +26 -0
- package/dist/dbops-service/src/services/schemas/InstanceMigrationStateChangeSet.js +1 -0
- package/dist/dbops-service/src/services/schemas/InstanceMigrationStateOut.d.ts +15 -0
- package/dist/dbops-service/src/services/schemas/InstanceMigrationStateOut.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExecutionConfigSuccessResponseResponse } from '../responses/ExecutionConfigSuccessResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface V1DeleteExecutionConfigMutationHeaderParams {
|
|
7
|
+
'Harness-Account'?: string;
|
|
8
|
+
}
|
|
9
|
+
export type V1DeleteExecutionConfigOkResponse = ResponseWithPagination<ExecutionConfigSuccessResponseResponse>;
|
|
10
|
+
export type V1DeleteExecutionConfigErrorResponse = ErrorResponseResponse;
|
|
11
|
+
export interface V1DeleteExecutionConfigProps extends Omit<FetcherOptions<unknown, unknown, V1DeleteExecutionConfigMutationHeaderParams>, 'url'> {
|
|
12
|
+
}
|
|
13
|
+
export declare function v1DeleteExecutionConfig(props: V1DeleteExecutionConfigProps): Promise<V1DeleteExecutionConfigOkResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Delete the Execution config overrides for the customer
|
|
16
|
+
*/
|
|
17
|
+
export declare function useV1DeleteExecutionConfigMutation(options?: Omit<UseMutationOptions<V1DeleteExecutionConfigOkResponse, V1DeleteExecutionConfigErrorResponse, V1DeleteExecutionConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<V1DeleteExecutionConfigOkResponse, import("..").Error, V1DeleteExecutionConfigProps, 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 v1DeleteExecutionConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/dbops/execution-config`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete the Execution config overrides for the customer
|
|
11
|
+
*/
|
|
12
|
+
export function useV1DeleteExecutionConfigMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => v1DeleteExecutionConfig(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExecutionConfigTagsResponseResponse } from '../responses/ExecutionConfigTagsResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface V1GetCustomerConfigQueryQueryParams {
|
|
7
|
+
/**
|
|
8
|
+
* @default true
|
|
9
|
+
*/
|
|
10
|
+
overridesOnly?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface V1GetCustomerConfigQueryHeaderParams {
|
|
13
|
+
'Harness-Account'?: string;
|
|
14
|
+
}
|
|
15
|
+
export type V1GetCustomerConfigOkResponse = ResponseWithPagination<ExecutionConfigTagsResponseResponse>;
|
|
16
|
+
export type V1GetCustomerConfigErrorResponse = ErrorResponseResponse;
|
|
17
|
+
export interface V1GetCustomerConfigProps extends Omit<FetcherOptions<V1GetCustomerConfigQueryQueryParams, unknown, V1GetCustomerConfigQueryHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: V1GetCustomerConfigQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export declare function v1GetCustomerConfig(props: V1GetCustomerConfigProps): Promise<V1GetCustomerConfigOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Get Customer Execution Config overrides
|
|
23
|
+
*/
|
|
24
|
+
export declare function useV1GetCustomerConfigQuery(props: V1GetCustomerConfigProps, options?: Omit<UseQueryOptions<V1GetCustomerConfigOkResponse, V1GetCustomerConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<V1GetCustomerConfigOkResponse, 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 v1GetCustomerConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/dbops/execution-config/get-customer-config`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Customer Execution Config overrides
|
|
11
|
+
*/
|
|
12
|
+
export function useV1GetCustomerConfigQuery(props, options) {
|
|
13
|
+
return useQuery(['v1-get-customer-config', props.queryParams], ({ signal }) => v1GetCustomerConfig(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExecutionConfigTagsResponseResponse } from '../responses/ExecutionConfigTagsResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface V1GetDefaultConfigQueryHeaderParams {
|
|
7
|
+
'Harness-Account'?: string;
|
|
8
|
+
}
|
|
9
|
+
export type V1GetDefaultConfigOkResponse = ResponseWithPagination<ExecutionConfigTagsResponseResponse>;
|
|
10
|
+
export type V1GetDefaultConfigErrorResponse = ErrorResponseResponse;
|
|
11
|
+
export interface V1GetDefaultConfigProps extends Omit<FetcherOptions<unknown, unknown, V1GetDefaultConfigQueryHeaderParams>, 'url'> {
|
|
12
|
+
}
|
|
13
|
+
export declare function v1GetDefaultConfig(props: V1GetDefaultConfigProps): Promise<V1GetDefaultConfigOkResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Get list of the latest Harness Dbops images and tags
|
|
16
|
+
*/
|
|
17
|
+
export declare function useV1GetDefaultConfigQuery(props: V1GetDefaultConfigProps, options?: Omit<UseQueryOptions<V1GetDefaultConfigOkResponse, V1GetDefaultConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<V1GetDefaultConfigOkResponse, 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 v1GetDefaultConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/dbops/execution-config/get-default-config`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get list of the latest Harness Dbops images and tags
|
|
11
|
+
*/
|
|
12
|
+
export function useV1GetDefaultConfigQuery(props, options) {
|
|
13
|
+
return useQuery(['v1-get-default-config'], ({ signal }) => v1GetDefaultConfig(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { InstanceMigrationStateResponseResponse } from '../responses/InstanceMigrationStateResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface V1MigrationStateProjDbInstanceQueryPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
dbschema: string;
|
|
10
|
+
dbinstance: string;
|
|
11
|
+
}
|
|
12
|
+
export interface V1MigrationStateProjDbInstanceQueryQueryParams {
|
|
13
|
+
/**
|
|
14
|
+
* @format int64
|
|
15
|
+
* @default 0
|
|
16
|
+
*/
|
|
17
|
+
page?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @default 10
|
|
20
|
+
*/
|
|
21
|
+
limit?: number;
|
|
22
|
+
search_term?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface V1MigrationStateProjDbInstanceQueryHeaderParams {
|
|
25
|
+
'Harness-Account'?: string;
|
|
26
|
+
}
|
|
27
|
+
export type V1MigrationStateProjDbInstanceOkResponse = ResponseWithPagination<InstanceMigrationStateResponseResponse>;
|
|
28
|
+
export type V1MigrationStateProjDbInstanceErrorResponse = ErrorResponseResponse;
|
|
29
|
+
export interface V1MigrationStateProjDbInstanceProps extends V1MigrationStateProjDbInstanceQueryPathParams, Omit<FetcherOptions<V1MigrationStateProjDbInstanceQueryQueryParams, unknown, V1MigrationStateProjDbInstanceQueryHeaderParams>, 'url'> {
|
|
30
|
+
queryParams: V1MigrationStateProjDbInstanceQueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export declare function v1MigrationStateProjDbInstance(props: V1MigrationStateProjDbInstanceProps): Promise<V1MigrationStateProjDbInstanceOkResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Migration state of a instance
|
|
35
|
+
*/
|
|
36
|
+
export declare function useV1MigrationStateProjDbInstanceQuery(props: V1MigrationStateProjDbInstanceProps, options?: Omit<UseQueryOptions<V1MigrationStateProjDbInstanceOkResponse, V1MigrationStateProjDbInstanceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<V1MigrationStateProjDbInstanceOkResponse, import("..").Error>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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 v1MigrationStateProjDbInstance(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/dbschema/${props.dbschema}/dbinstance/${props.dbinstance}/migrationstate`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Migration state of a instance
|
|
11
|
+
*/
|
|
12
|
+
export function useV1MigrationStateProjDbInstanceQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'v1-migration-state-proj-db-instance',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props.dbschema,
|
|
18
|
+
props.dbinstance,
|
|
19
|
+
props.queryParams,
|
|
20
|
+
], ({ signal }) => v1MigrationStateProjDbInstance(Object.assign(Object.assign({}, props), { signal })), options);
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExecutionConfigSuccessResponseResponse } from '../responses/ExecutionConfigSuccessResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface V1ResetExecutionConfigMutationHeaderParams {
|
|
7
|
+
'Harness-Account'?: string;
|
|
8
|
+
}
|
|
9
|
+
export type V1ResetExecutionConfigRequestBody = string[];
|
|
10
|
+
export type V1ResetExecutionConfigOkResponse = ResponseWithPagination<ExecutionConfigSuccessResponseResponse>;
|
|
11
|
+
export type V1ResetExecutionConfigErrorResponse = ErrorResponseResponse;
|
|
12
|
+
export interface V1ResetExecutionConfigProps extends Omit<FetcherOptions<unknown, V1ResetExecutionConfigRequestBody, V1ResetExecutionConfigMutationHeaderParams>, 'url'> {
|
|
13
|
+
body: V1ResetExecutionConfigRequestBody;
|
|
14
|
+
}
|
|
15
|
+
export declare function v1ResetExecutionConfig(props: V1ResetExecutionConfigProps): Promise<V1ResetExecutionConfigOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* To reset one or more images to their defaults with a list of the images to reset.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useV1ResetExecutionConfigMutation(options?: Omit<UseMutationOptions<V1ResetExecutionConfigOkResponse, V1ResetExecutionConfigErrorResponse, V1ResetExecutionConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<V1ResetExecutionConfigOkResponse, import("..").Error, V1ResetExecutionConfigProps, 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 v1ResetExecutionConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/dbops/execution-config/reset-config`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* To reset one or more images to their defaults with a list of the images to reset.
|
|
11
|
+
*/
|
|
12
|
+
export function useV1ResetExecutionConfigMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => v1ResetExecutionConfig(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExecutionConfigSuccessResponseResponse } from '../responses/ExecutionConfigSuccessResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ExecutionConfigUpdateRequestRequestBody } from '../requestBodies/ExecutionConfigUpdateRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface V1UpdateExecutionConfigMutationHeaderParams {
|
|
8
|
+
'Harness-Account'?: string;
|
|
9
|
+
}
|
|
10
|
+
export type V1UpdateExecutionConfigRequestBody = ExecutionConfigUpdateRequestRequestBody;
|
|
11
|
+
export type V1UpdateExecutionConfigOkResponse = ResponseWithPagination<ExecutionConfigSuccessResponseResponse>;
|
|
12
|
+
export type V1UpdateExecutionConfigErrorResponse = ErrorResponseResponse;
|
|
13
|
+
export interface V1UpdateExecutionConfigProps extends Omit<FetcherOptions<unknown, V1UpdateExecutionConfigRequestBody, V1UpdateExecutionConfigMutationHeaderParams>, 'url'> {
|
|
14
|
+
body: V1UpdateExecutionConfigRequestBody;
|
|
15
|
+
}
|
|
16
|
+
export declare function v1UpdateExecutionConfig(props: V1UpdateExecutionConfigProps): Promise<V1UpdateExecutionConfigOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Override execution Config for DBOPs image tags
|
|
19
|
+
*/
|
|
20
|
+
export declare function useV1UpdateExecutionConfigMutation(options?: Omit<UseMutationOptions<V1UpdateExecutionConfigOkResponse, V1UpdateExecutionConfigErrorResponse, V1UpdateExecutionConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<V1UpdateExecutionConfigOkResponse, import("..").Error, V1UpdateExecutionConfigProps, 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 v1UpdateExecutionConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/dbops/execution-config/update-config`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Override execution Config for DBOPs image tags
|
|
11
|
+
*/
|
|
12
|
+
export function useV1UpdateExecutionConfigMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => v1UpdateExecutionConfig(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DbInstanceListResponseResponse } from '../responses/DbInstanceListResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { DbInstanceListRequestRequestBody } from '../requestBodies/DbInstanceListRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface V2ListProjDbInstancesMutationPathParams {
|
|
8
|
+
org: string;
|
|
9
|
+
project: string;
|
|
10
|
+
}
|
|
11
|
+
export interface V2ListProjDbInstancesMutationQueryParams {
|
|
12
|
+
/**
|
|
13
|
+
* @format int64
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
page?: number;
|
|
17
|
+
/**
|
|
18
|
+
* @default 10
|
|
19
|
+
*/
|
|
20
|
+
limit?: number;
|
|
21
|
+
search_term?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @default "DESC"
|
|
24
|
+
*/
|
|
25
|
+
order?: 'ASC' | 'DESC';
|
|
26
|
+
/**
|
|
27
|
+
* @default "created"
|
|
28
|
+
*/
|
|
29
|
+
sort?: 'created' | 'name' | 'updated';
|
|
30
|
+
}
|
|
31
|
+
export interface V2ListProjDbInstancesMutationHeaderParams {
|
|
32
|
+
'Harness-Account'?: string;
|
|
33
|
+
}
|
|
34
|
+
export type V2ListProjDbInstancesRequestBody = DbInstanceListRequestRequestBody;
|
|
35
|
+
export type V2ListProjDbInstancesOkResponse = ResponseWithPagination<DbInstanceListResponseResponse>;
|
|
36
|
+
export type V2ListProjDbInstancesErrorResponse = ErrorResponseResponse;
|
|
37
|
+
export interface V2ListProjDbInstancesProps extends V2ListProjDbInstancesMutationPathParams, Omit<FetcherOptions<V2ListProjDbInstancesMutationQueryParams, V2ListProjDbInstancesRequestBody, V2ListProjDbInstancesMutationHeaderParams>, 'url'> {
|
|
38
|
+
queryParams: V2ListProjDbInstancesMutationQueryParams;
|
|
39
|
+
body: V2ListProjDbInstancesRequestBody;
|
|
40
|
+
}
|
|
41
|
+
export declare function v2ListProjDbInstances(props: V2ListProjDbInstancesProps): Promise<V2ListProjDbInstancesOkResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* List database instances
|
|
44
|
+
*/
|
|
45
|
+
export declare function useV2ListProjDbInstancesMutation(options?: Omit<UseMutationOptions<V2ListProjDbInstancesOkResponse, V2ListProjDbInstancesErrorResponse, V2ListProjDbInstancesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<V2ListProjDbInstancesOkResponse, import("..").Error, V2ListProjDbInstancesProps, 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 v2ListProjDbInstances(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/dbinstancelist`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List database instances
|
|
11
|
+
*/
|
|
12
|
+
export function useV2ListProjDbInstancesMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => v2ListProjDbInstances(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DbSchemaListResponseResponse } from '../responses/DbSchemaListResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { DbSchemaFilterRequestRequestBody } from '../requestBodies/DbSchemaFilterRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface V2ListProjDbSchemaMutationPathParams {
|
|
8
|
+
org: string;
|
|
9
|
+
project: string;
|
|
10
|
+
}
|
|
11
|
+
export interface V2ListProjDbSchemaMutationQueryParams {
|
|
12
|
+
/**
|
|
13
|
+
* @format int64
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
page?: number;
|
|
17
|
+
/**
|
|
18
|
+
* @default 10
|
|
19
|
+
*/
|
|
20
|
+
limit?: number;
|
|
21
|
+
search_term?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @default "DESC"
|
|
24
|
+
*/
|
|
25
|
+
order?: 'ASC' | 'DESC';
|
|
26
|
+
/**
|
|
27
|
+
* @default "created"
|
|
28
|
+
*/
|
|
29
|
+
sort?: 'created' | 'name' | 'updated';
|
|
30
|
+
}
|
|
31
|
+
export interface V2ListProjDbSchemaMutationHeaderParams {
|
|
32
|
+
'Harness-Account'?: string;
|
|
33
|
+
}
|
|
34
|
+
export type V2ListProjDbSchemaRequestBody = DbSchemaFilterRequestRequestBody;
|
|
35
|
+
export type V2ListProjDbSchemaOkResponse = ResponseWithPagination<DbSchemaListResponseResponse>;
|
|
36
|
+
export type V2ListProjDbSchemaErrorResponse = ErrorResponseResponse;
|
|
37
|
+
export interface V2ListProjDbSchemaProps extends V2ListProjDbSchemaMutationPathParams, Omit<FetcherOptions<V2ListProjDbSchemaMutationQueryParams, V2ListProjDbSchemaRequestBody, V2ListProjDbSchemaMutationHeaderParams>, 'url'> {
|
|
38
|
+
queryParams: V2ListProjDbSchemaMutationQueryParams;
|
|
39
|
+
body: V2ListProjDbSchemaRequestBody;
|
|
40
|
+
}
|
|
41
|
+
export declare function v2ListProjDbSchema(props: V2ListProjDbSchemaProps): Promise<V2ListProjDbSchemaOkResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* List database schemas
|
|
44
|
+
*/
|
|
45
|
+
export declare function useV2ListProjDbSchemaMutation(options?: Omit<UseMutationOptions<V2ListProjDbSchemaOkResponse, V2ListProjDbSchemaErrorResponse, V2ListProjDbSchemaProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<V2ListProjDbSchemaOkResponse, import("..").Error, V2ListProjDbSchemaProps, 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 v2ListProjDbSchema(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/dbschemalist`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List database schemas
|
|
11
|
+
*/
|
|
12
|
+
export function useV2ListProjDbSchemaMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => v2ListProjDbSchema(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -7,14 +7,20 @@ export type { V1CreateProjDbSchemaInstanceErrorResponse, V1CreateProjDbSchemaIns
|
|
|
7
7
|
export { useV1CreateProjDbSchemaInstanceMutation, v1CreateProjDbSchemaInstance, } from './hooks/useV1CreateProjDbSchemaInstanceMutation';
|
|
8
8
|
export type { V1CreateProjDbSchemaErrorResponse, V1CreateProjDbSchemaMutationPathParams, V1CreateProjDbSchemaOkResponse, V1CreateProjDbSchemaProps, V1CreateProjDbSchemaRequestBody, } from './hooks/useV1CreateProjDbSchemaMutation';
|
|
9
9
|
export { useV1CreateProjDbSchemaMutation, v1CreateProjDbSchema, } from './hooks/useV1CreateProjDbSchemaMutation';
|
|
10
|
+
export type { V1DeleteExecutionConfigErrorResponse, V1DeleteExecutionConfigOkResponse, V1DeleteExecutionConfigProps, } from './hooks/useV1DeleteExecutionConfigMutation';
|
|
11
|
+
export { useV1DeleteExecutionConfigMutation, v1DeleteExecutionConfig, } from './hooks/useV1DeleteExecutionConfigMutation';
|
|
10
12
|
export type { V1DeleteProjDbSchemaInstanceErrorResponse, V1DeleteProjDbSchemaInstanceMutationPathParams, V1DeleteProjDbSchemaInstanceOkResponse, V1DeleteProjDbSchemaInstanceProps, } from './hooks/useV1DeleteProjDbSchemaInstanceMutation';
|
|
11
13
|
export { useV1DeleteProjDbSchemaInstanceMutation, v1DeleteProjDbSchemaInstance, } from './hooks/useV1DeleteProjDbSchemaInstanceMutation';
|
|
12
14
|
export type { V1DeleteProjDbSchemaErrorResponse, V1DeleteProjDbSchemaMutationPathParams, V1DeleteProjDbSchemaOkResponse, V1DeleteProjDbSchemaProps, } from './hooks/useV1DeleteProjDbSchemaMutation';
|
|
13
15
|
export { useV1DeleteProjDbSchemaMutation, v1DeleteProjDbSchema, } from './hooks/useV1DeleteProjDbSchemaMutation';
|
|
16
|
+
export type { V1GetCustomerConfigErrorResponse, V1GetCustomerConfigOkResponse, V1GetCustomerConfigProps, V1GetCustomerConfigQueryQueryParams, } from './hooks/useV1GetCustomerConfigQuery';
|
|
17
|
+
export { useV1GetCustomerConfigQuery, v1GetCustomerConfig, } from './hooks/useV1GetCustomerConfigQuery';
|
|
14
18
|
export type { V1GetDbOverviewErrorResponse, V1GetDbOverviewOkResponse, V1GetDbOverviewProps, V1GetDbOverviewQueryPathParams, } from './hooks/useV1GetDbOverviewQuery';
|
|
15
19
|
export { useV1GetDbOverviewQuery, v1GetDbOverview } from './hooks/useV1GetDbOverviewQuery';
|
|
16
20
|
export type { V1GetDbinstanceLogErrorResponse, V1GetDbinstanceLogOkResponse, V1GetDbinstanceLogProps, V1GetDbinstanceLogQueryPathParams, } from './hooks/useV1GetDbinstanceLogQuery';
|
|
17
21
|
export { useV1GetDbinstanceLogQuery, v1GetDbinstanceLog } from './hooks/useV1GetDbinstanceLogQuery';
|
|
22
|
+
export type { V1GetDefaultConfigErrorResponse, V1GetDefaultConfigOkResponse, V1GetDefaultConfigProps, } from './hooks/useV1GetDefaultConfigQuery';
|
|
23
|
+
export { useV1GetDefaultConfigQuery, v1GetDefaultConfig } from './hooks/useV1GetDefaultConfigQuery';
|
|
18
24
|
export type { V1GetDeployedStateErrorResponse, V1GetDeployedStateMutationPathParams, V1GetDeployedStateMutationQueryParams, V1GetDeployedStateOkResponse, V1GetDeployedStateProps, V1GetDeployedStateRequestBody, } from './hooks/useV1GetDeployedStateMutation';
|
|
19
25
|
export { useV1GetDeployedStateMutation, v1GetDeployedState, } from './hooks/useV1GetDeployedStateMutation';
|
|
20
26
|
export type { V1GetProjDbSchemaInstanceErrorResponse, V1GetProjDbSchemaInstanceOkResponse, V1GetProjDbSchemaInstanceProps, V1GetProjDbSchemaInstanceQueryPathParams, } from './hooks/useV1GetProjDbSchemaInstanceQuery';
|
|
@@ -27,18 +33,31 @@ export type { V1ListProjDbSchemaInstanceErrorResponse, V1ListProjDbSchemaInstanc
|
|
|
27
33
|
export { useV1ListProjDbSchemaInstanceMutation, v1ListProjDbSchemaInstance, } from './hooks/useV1ListProjDbSchemaInstanceMutation';
|
|
28
34
|
export type { V1ListProjDbSchemaErrorResponse, V1ListProjDbSchemaOkResponse, V1ListProjDbSchemaProps, V1ListProjDbSchemaQueryPathParams, V1ListProjDbSchemaQueryQueryParams, } from './hooks/useV1ListProjDbSchemaQuery';
|
|
29
35
|
export { useV1ListProjDbSchemaQuery, v1ListProjDbSchema } from './hooks/useV1ListProjDbSchemaQuery';
|
|
36
|
+
export type { V1MigrationStateProjDbInstanceErrorResponse, V1MigrationStateProjDbInstanceOkResponse, V1MigrationStateProjDbInstanceProps, V1MigrationStateProjDbInstanceQueryPathParams, V1MigrationStateProjDbInstanceQueryQueryParams, } from './hooks/useV1MigrationStateProjDbInstanceQuery';
|
|
37
|
+
export { useV1MigrationStateProjDbInstanceQuery, v1MigrationStateProjDbInstance, } from './hooks/useV1MigrationStateProjDbInstanceQuery';
|
|
30
38
|
export type { V1MigrationStateProjDbSchemaErrorResponse, V1MigrationStateProjDbSchemaMutationPathParams, V1MigrationStateProjDbSchemaMutationQueryParams, V1MigrationStateProjDbSchemaOkResponse, V1MigrationStateProjDbSchemaProps, V1MigrationStateProjDbSchemaRequestBody, } from './hooks/useV1MigrationStateProjDbSchemaMutation';
|
|
31
39
|
export { useV1MigrationStateProjDbSchemaMutation, v1MigrationStateProjDbSchema, } from './hooks/useV1MigrationStateProjDbSchemaMutation';
|
|
40
|
+
export type { V1ResetExecutionConfigErrorResponse, V1ResetExecutionConfigOkResponse, V1ResetExecutionConfigProps, V1ResetExecutionConfigRequestBody, } from './hooks/useV1ResetExecutionConfigMutation';
|
|
41
|
+
export { useV1ResetExecutionConfigMutation, v1ResetExecutionConfig, } from './hooks/useV1ResetExecutionConfigMutation';
|
|
42
|
+
export type { V1UpdateExecutionConfigErrorResponse, V1UpdateExecutionConfigOkResponse, V1UpdateExecutionConfigProps, V1UpdateExecutionConfigRequestBody, } from './hooks/useV1UpdateExecutionConfigMutation';
|
|
43
|
+
export { useV1UpdateExecutionConfigMutation, v1UpdateExecutionConfig, } from './hooks/useV1UpdateExecutionConfigMutation';
|
|
32
44
|
export type { V1UpdateProjDbSchemaInstanceErrorResponse, V1UpdateProjDbSchemaInstanceMutationPathParams, V1UpdateProjDbSchemaInstanceOkResponse, V1UpdateProjDbSchemaInstanceProps, V1UpdateProjDbSchemaInstanceRequestBody, } from './hooks/useV1UpdateProjDbSchemaInstanceMutation';
|
|
33
45
|
export { useV1UpdateProjDbSchemaInstanceMutation, v1UpdateProjDbSchemaInstance, } from './hooks/useV1UpdateProjDbSchemaInstanceMutation';
|
|
34
46
|
export type { V1UpdateProjDbSchemaErrorResponse, V1UpdateProjDbSchemaMutationPathParams, V1UpdateProjDbSchemaOkResponse, V1UpdateProjDbSchemaProps, V1UpdateProjDbSchemaRequestBody, } from './hooks/useV1UpdateProjDbSchemaMutation';
|
|
35
47
|
export { useV1UpdateProjDbSchemaMutation, v1UpdateProjDbSchema, } from './hooks/useV1UpdateProjDbSchemaMutation';
|
|
48
|
+
export type { V2ListProjDbInstancesErrorResponse, V2ListProjDbInstancesMutationPathParams, V2ListProjDbInstancesMutationQueryParams, V2ListProjDbInstancesOkResponse, V2ListProjDbInstancesProps, V2ListProjDbInstancesRequestBody, } from './hooks/useV2ListProjDbInstancesMutation';
|
|
49
|
+
export { useV2ListProjDbInstancesMutation, v2ListProjDbInstances, } from './hooks/useV2ListProjDbInstancesMutation';
|
|
50
|
+
export type { V2ListProjDbSchemaErrorResponse, V2ListProjDbSchemaMutationPathParams, V2ListProjDbSchemaMutationQueryParams, V2ListProjDbSchemaOkResponse, V2ListProjDbSchemaProps, V2ListProjDbSchemaRequestBody, } from './hooks/useV2ListProjDbSchemaMutation';
|
|
51
|
+
export { useV2ListProjDbSchemaMutation, v2ListProjDbSchema, } from './hooks/useV2ListProjDbSchemaMutation';
|
|
36
52
|
export type { ConsumePluginRespRequestRequestBody } from './requestBodies/ConsumePluginRespRequestRequestBody';
|
|
37
53
|
export type { DbInstanceCreateRequestRequestBody } from './requestBodies/DbInstanceCreateRequestRequestBody';
|
|
38
54
|
export type { DbInstanceFilterRequestRequestBody } from './requestBodies/DbInstanceFilterRequestRequestBody';
|
|
55
|
+
export type { DbInstanceListRequestRequestBody } from './requestBodies/DbInstanceListRequestRequestBody';
|
|
39
56
|
export type { DbInstanceUpdateRequestRequestBody } from './requestBodies/DbInstanceUpdateRequestRequestBody';
|
|
40
57
|
export type { DbSchemaCreateRequestRequestBody } from './requestBodies/DbSchemaCreateRequestRequestBody';
|
|
58
|
+
export type { DbSchemaFilterRequestRequestBody } from './requestBodies/DbSchemaFilterRequestRequestBody';
|
|
41
59
|
export type { DbSchemaUpdateRequestRequestBody } from './requestBodies/DbSchemaUpdateRequestRequestBody';
|
|
60
|
+
export type { ExecutionConfigUpdateRequestRequestBody } from './requestBodies/ExecutionConfigUpdateRequestRequestBody';
|
|
42
61
|
export type { LogIngestRequestRequestBody } from './requestBodies/LogIngestRequestRequestBody';
|
|
43
62
|
export type { MigrationStateGetRequestRequestBody } from './requestBodies/MigrationStateGetRequestRequestBody';
|
|
44
63
|
export type { PluginStepInputsRequestRequestBody } from './requestBodies/PluginStepInputsRequestRequestBody';
|
|
@@ -47,6 +66,9 @@ export type { DbInstanceResponseResponse } from './responses/DbInstanceResponseR
|
|
|
47
66
|
export type { DbSchemaListResponseResponse } from './responses/DbSchemaListResponseResponse';
|
|
48
67
|
export type { DbSchemaResponseResponse } from './responses/DbSchemaResponseResponse';
|
|
49
68
|
export type { ErrorResponseResponse } from './responses/ErrorResponseResponse';
|
|
69
|
+
export type { ExecutionConfigSuccessResponseResponse } from './responses/ExecutionConfigSuccessResponseResponse';
|
|
70
|
+
export type { ExecutionConfigTagsResponseResponse } from './responses/ExecutionConfigTagsResponseResponse';
|
|
71
|
+
export type { InstanceMigrationStateResponseResponse } from './responses/InstanceMigrationStateResponseResponse';
|
|
50
72
|
export type { MigrationStateResponseResponse } from './responses/MigrationStateResponseResponse';
|
|
51
73
|
export type { OverviewResponseResponse } from './responses/OverviewResponseResponse';
|
|
52
74
|
export type { ParsedLogResponseResponse } from './responses/ParsedLogResponseResponse';
|
|
@@ -57,15 +79,21 @@ export type { Command } from './schemas/Command';
|
|
|
57
79
|
export type { CommandExecutionStatus } from './schemas/CommandExecutionStatus';
|
|
58
80
|
export type { DbInstanceFilterIn } from './schemas/DbInstanceFilterIn';
|
|
59
81
|
export type { DbInstanceIn } from './schemas/DbInstanceIn';
|
|
82
|
+
export type { DbInstanceListInput } from './schemas/DbInstanceListInput';
|
|
60
83
|
export type { DbInstanceOut } from './schemas/DbInstanceOut';
|
|
84
|
+
export type { DbSchemaFilterIn } from './schemas/DbSchemaFilterIn';
|
|
61
85
|
export type { DbSchemaIn } from './schemas/DbSchemaIn';
|
|
62
86
|
export type { DbSchemaOut } from './schemas/DbSchemaOut';
|
|
63
87
|
export type { DbStepType } from './schemas/DbStepType';
|
|
64
88
|
export type { DeployedStateInput } from './schemas/DeployedStateInput';
|
|
65
89
|
export type { DeployedStateOutput } from './schemas/DeployedStateOutput';
|
|
66
90
|
export type { Error } from './schemas/Error';
|
|
91
|
+
export type { ExecutionConfigOperation } from './schemas/ExecutionConfigOperation';
|
|
92
|
+
export type { ExecutionConfigTags } from './schemas/ExecutionConfigTags';
|
|
67
93
|
export type { ExecutionMetadata } from './schemas/ExecutionMetadata';
|
|
68
94
|
export type { InstanceDetail } from './schemas/InstanceDetail';
|
|
95
|
+
export type { InstanceMigrationStateChangeSet } from './schemas/InstanceMigrationStateChangeSet';
|
|
96
|
+
export type { InstanceMigrationStateOut } from './schemas/InstanceMigrationStateOut';
|
|
69
97
|
export type { MigrationStateChangeSet } from './schemas/MigrationStateChangeSet';
|
|
70
98
|
export type { MigrationStateIn } from './schemas/MigrationStateIn';
|
|
71
99
|
export type { MigrationStateInstance } from './schemas/MigrationStateInstance';
|
|
@@ -2,16 +2,24 @@ export { consumeV1StepPluginResponse, useConsumeV1StepPluginResponseMutation, }
|
|
|
2
2
|
export { createV1StepPluginInputs, useCreateV1StepPluginInputsMutation, } from './hooks/useCreateV1StepPluginInputsMutation';
|
|
3
3
|
export { useV1CreateProjDbSchemaInstanceMutation, v1CreateProjDbSchemaInstance, } from './hooks/useV1CreateProjDbSchemaInstanceMutation';
|
|
4
4
|
export { useV1CreateProjDbSchemaMutation, v1CreateProjDbSchema, } from './hooks/useV1CreateProjDbSchemaMutation';
|
|
5
|
+
export { useV1DeleteExecutionConfigMutation, v1DeleteExecutionConfig, } from './hooks/useV1DeleteExecutionConfigMutation';
|
|
5
6
|
export { useV1DeleteProjDbSchemaInstanceMutation, v1DeleteProjDbSchemaInstance, } from './hooks/useV1DeleteProjDbSchemaInstanceMutation';
|
|
6
7
|
export { useV1DeleteProjDbSchemaMutation, v1DeleteProjDbSchema, } from './hooks/useV1DeleteProjDbSchemaMutation';
|
|
8
|
+
export { useV1GetCustomerConfigQuery, v1GetCustomerConfig, } from './hooks/useV1GetCustomerConfigQuery';
|
|
7
9
|
export { useV1GetDbOverviewQuery, v1GetDbOverview } from './hooks/useV1GetDbOverviewQuery';
|
|
8
10
|
export { useV1GetDbinstanceLogQuery, v1GetDbinstanceLog } from './hooks/useV1GetDbinstanceLogQuery';
|
|
11
|
+
export { useV1GetDefaultConfigQuery, v1GetDefaultConfig } from './hooks/useV1GetDefaultConfigQuery';
|
|
9
12
|
export { useV1GetDeployedStateMutation, v1GetDeployedState, } from './hooks/useV1GetDeployedStateMutation';
|
|
10
13
|
export { useV1GetProjDbSchemaInstanceQuery, v1GetProjDbSchemaInstance, } from './hooks/useV1GetProjDbSchemaInstanceQuery';
|
|
11
14
|
export { useV1GetProjDbSchemaQuery, v1GetProjDbSchema } from './hooks/useV1GetProjDbSchemaQuery';
|
|
12
15
|
export { useV1IngestLogsMutation, v1IngestLogs } from './hooks/useV1IngestLogsMutation';
|
|
13
16
|
export { useV1ListProjDbSchemaInstanceMutation, v1ListProjDbSchemaInstance, } from './hooks/useV1ListProjDbSchemaInstanceMutation';
|
|
14
17
|
export { useV1ListProjDbSchemaQuery, v1ListProjDbSchema } from './hooks/useV1ListProjDbSchemaQuery';
|
|
18
|
+
export { useV1MigrationStateProjDbInstanceQuery, v1MigrationStateProjDbInstance, } from './hooks/useV1MigrationStateProjDbInstanceQuery';
|
|
15
19
|
export { useV1MigrationStateProjDbSchemaMutation, v1MigrationStateProjDbSchema, } from './hooks/useV1MigrationStateProjDbSchemaMutation';
|
|
20
|
+
export { useV1ResetExecutionConfigMutation, v1ResetExecutionConfig, } from './hooks/useV1ResetExecutionConfigMutation';
|
|
21
|
+
export { useV1UpdateExecutionConfigMutation, v1UpdateExecutionConfig, } from './hooks/useV1UpdateExecutionConfigMutation';
|
|
16
22
|
export { useV1UpdateProjDbSchemaInstanceMutation, v1UpdateProjDbSchemaInstance, } from './hooks/useV1UpdateProjDbSchemaInstanceMutation';
|
|
17
23
|
export { useV1UpdateProjDbSchemaMutation, v1UpdateProjDbSchema, } from './hooks/useV1UpdateProjDbSchemaMutation';
|
|
24
|
+
export { useV2ListProjDbInstancesMutation, v2ListProjDbInstances, } from './hooks/useV2ListProjDbInstancesMutation';
|
|
25
|
+
export { useV2ListProjDbSchemaMutation, v2ListProjDbSchema, } from './hooks/useV2ListProjDbSchemaMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/dbops-service/src/services/requestBodies/ExecutionConfigUpdateRequestRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ExecutionConfigSuccessResponseResponse = boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Type of the plugin command to run
|
|
3
3
|
*/
|
|
4
|
-
export type Command = 'Clone' | 'Custom' | 'History' | 'ParentWrapper' | 'Rollback' | 'Tag' | 'Update' | 'UpdateSQL' | 'Validate';
|
|
4
|
+
export type Command = 'Clone' | 'Custom' | 'History' | 'ParentWrapper' | 'Rollback' | 'RollbackSQL' | 'Tag' | 'Update' | 'UpdateSQL' | 'Validate';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input for filtering instances in list API
|
|
3
|
+
*/
|
|
4
|
+
export interface DbInstanceListInput {
|
|
5
|
+
/**
|
|
6
|
+
* list of '-' separated values of schema identifier and instance identifiers
|
|
7
|
+
*/
|
|
8
|
+
instanceFQNs?: string[];
|
|
9
|
+
/**
|
|
10
|
+
* list of schema identifiers to filter instances
|
|
11
|
+
*/
|
|
12
|
+
schemaIdentifiers?: string[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Operations to set the images tag to particular version
|
|
3
|
+
*/
|
|
4
|
+
export interface ExecutionConfigOperation {
|
|
5
|
+
/**
|
|
6
|
+
* Image tag field names which can be retrieved from get-default-config
|
|
7
|
+
* @example "gitCloneTag, defaultTag, mongoTag, etc"
|
|
8
|
+
*/
|
|
9
|
+
field: string;
|
|
10
|
+
/**
|
|
11
|
+
* Value of the image tag
|
|
12
|
+
* @example "harness/drone-git:1.5.6-rootless"
|
|
13
|
+
*/
|
|
14
|
+
value: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ChangeSetDeploymentStatus } from '../schemas/ChangeSetDeploymentStatus';
|
|
2
|
+
/**
|
|
3
|
+
* Deployment info of Change Sets across instances
|
|
4
|
+
*/
|
|
5
|
+
export interface InstanceMigrationStateChangeSet {
|
|
6
|
+
author: string;
|
|
7
|
+
/**
|
|
8
|
+
* Identifier of the Change Set
|
|
9
|
+
*/
|
|
10
|
+
changeSet: string;
|
|
11
|
+
/**
|
|
12
|
+
* comment defined in changeSet
|
|
13
|
+
*/
|
|
14
|
+
comment?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @format int64
|
|
17
|
+
*/
|
|
18
|
+
deployedAt: number;
|
|
19
|
+
fileName: string;
|
|
20
|
+
/**
|
|
21
|
+
* label defined in changeSet
|
|
22
|
+
*/
|
|
23
|
+
label?: string;
|
|
24
|
+
status: ChangeSetDeploymentStatus;
|
|
25
|
+
tag?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { InstanceMigrationStateChangeSet } from '../schemas/InstanceMigrationStateChangeSet';
|
|
2
|
+
/**
|
|
3
|
+
* Change Set deployment info for a instance
|
|
4
|
+
*/
|
|
5
|
+
export interface InstanceMigrationStateOut {
|
|
6
|
+
changeSets?: InstanceMigrationStateChangeSet[];
|
|
7
|
+
/**
|
|
8
|
+
* Name of the Instance
|
|
9
|
+
*/
|
|
10
|
+
instanceName: string;
|
|
11
|
+
/**
|
|
12
|
+
* Name of the Schema
|
|
13
|
+
*/
|
|
14
|
+
schemaName: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED