@harnessio/react-dbops-service-client 0.31.0 → 0.32.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/useGetV1FlywayCustomOperationsMutation.d.ts +24 -0
- package/dist/dbops-service/src/services/hooks/useGetV1FlywayCustomOperationsMutation.js +14 -0
- package/dist/dbops-service/src/services/hooks/useV1DefaultLlmPipelineQuery.d.ts +26 -0
- package/dist/dbops-service/src/services/hooks/useV1DefaultLlmPipelineQuery.js +14 -0
- package/dist/dbops-service/src/services/hooks/useV1FetchMigrationScriptSqlQuery.d.ts +4 -2
- package/dist/dbops-service/src/services/hooks/useV1GetFlywayDeployedStateMutation.d.ts +38 -0
- package/dist/dbops-service/src/services/hooks/useV1GetFlywayDeployedStateMutation.js +14 -0
- package/dist/dbops-service/src/services/hooks/useV1GetSnapshotObjectNamesQuery.d.ts +36 -0
- package/dist/dbops-service/src/services/hooks/useV1GetSnapshotObjectNamesQuery.js +21 -0
- package/dist/dbops-service/src/services/hooks/useV1GetSnapshotObjectValuesMutation.d.ts +26 -0
- package/dist/dbops-service/src/services/hooks/useV1GetSnapshotObjectValuesMutation.js +14 -0
- package/dist/dbops-service/src/services/hooks/useV1StepFlywayMigrationScriptsQuery.d.ts +35 -0
- package/dist/dbops-service/src/services/hooks/useV1StepFlywayMigrationScriptsQuery.js +14 -0
- package/dist/dbops-service/src/services/index.d.ts +31 -0
- package/dist/dbops-service/src/services/index.js +6 -0
- package/dist/dbops-service/src/services/requestBodies/FlywayCustomOperationRequestRequestBody.d.ts +2 -0
- package/dist/dbops-service/src/services/requestBodies/FlywayCustomOperationRequestRequestBody.js +1 -0
- package/dist/dbops-service/src/services/responses/FlywayCustomOperationResponseResponse.d.ts +2 -0
- package/dist/dbops-service/src/services/responses/FlywayCustomOperationResponseResponse.js +1 -0
- package/dist/dbops-service/src/services/responses/FlywayDeployedStateResponseResponse.d.ts +4 -0
- package/dist/dbops-service/src/services/responses/FlywayDeployedStateResponseResponse.js +1 -0
- package/dist/dbops-service/src/services/responses/FlywayMigrationScriptResponseResponse.d.ts +2 -0
- package/dist/dbops-service/src/services/responses/FlywayMigrationScriptResponseResponse.js +1 -0
- package/dist/dbops-service/src/services/responses/FlywayScriptOutputResponseResponse.d.ts +2 -0
- package/dist/dbops-service/src/services/responses/FlywayScriptOutputResponseResponse.js +1 -0
- package/dist/dbops-service/src/services/responses/SnapshotObjectNamesResponseResponse.d.ts +2 -0
- package/dist/dbops-service/src/services/responses/SnapshotObjectNamesResponseResponse.js +1 -0
- package/dist/dbops-service/src/services/responses/SnapshotObjectValuesResponseResponse.d.ts +2 -0
- package/dist/dbops-service/src/services/responses/SnapshotObjectValuesResponseResponse.js +1 -0
- package/dist/dbops-service/src/services/schemas/AppliedScriptOutput.d.ts +13 -0
- package/dist/dbops-service/src/services/schemas/AppliedScriptOutput.js +4 -0
- package/dist/dbops-service/src/services/schemas/DefaultPipelineOutput.d.ts +19 -0
- package/dist/dbops-service/src/services/schemas/DefaultPipelineOutput.js +4 -0
- package/dist/dbops-service/src/services/schemas/FlywayCommandExecutionStatus.d.ts +1 -0
- package/dist/dbops-service/src/services/schemas/FlywayCommandExecutionStatus.js +4 -0
- package/dist/dbops-service/src/services/schemas/FlywayCustomOperationInput.d.ts +13 -0
- package/dist/dbops-service/src/services/schemas/FlywayCustomOperationInput.js +1 -0
- package/dist/dbops-service/src/services/schemas/FlywayCustomOperationOutput.d.ts +7 -0
- package/dist/dbops-service/src/services/schemas/FlywayCustomOperationOutput.js +4 -0
- package/dist/dbops-service/src/services/schemas/FlywayCustomOperations.d.ts +4 -0
- package/dist/dbops-service/src/services/schemas/FlywayCustomOperations.js +4 -0
- package/dist/dbops-service/src/services/schemas/FlywayDeployedStateOutput.d.ts +32 -0
- package/dist/dbops-service/src/services/schemas/FlywayDeployedStateOutput.js +1 -0
- package/dist/dbops-service/src/services/schemas/FlywayMigrationScriptOutput.d.ts +6 -0
- package/dist/dbops-service/src/services/schemas/FlywayMigrationScriptOutput.js +4 -0
- package/dist/dbops-service/src/services/schemas/SnapshotObjectNamesOutput.d.ts +9 -0
- package/dist/dbops-service/src/services/schemas/SnapshotObjectNamesOutput.js +4 -0
- package/dist/dbops-service/src/services/schemas/SnapshotObjectValue.d.ts +13 -0
- package/dist/dbops-service/src/services/schemas/SnapshotObjectValue.js +4 -0
- package/dist/dbops-service/src/services/schemas/SnapshotObjectValuesInput.d.ts +13 -0
- package/dist/dbops-service/src/services/schemas/SnapshotObjectValuesInput.js +4 -0
- package/dist/dbops-service/src/services/schemas/SnapshotObjectValuesOutput.d.ts +10 -0
- package/dist/dbops-service/src/services/schemas/SnapshotObjectValuesOutput.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FlywayCustomOperationResponseResponse } from '../responses/FlywayCustomOperationResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { FlywayCustomOperationRequestRequestBody } from '../requestBodies/FlywayCustomOperationRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetV1FlywayCustomOperationsMutationQueryParams {
|
|
8
|
+
parent_id?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetV1FlywayCustomOperationsMutationHeaderParams {
|
|
11
|
+
'Harness-Account'?: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetV1FlywayCustomOperationsRequestBody = FlywayCustomOperationRequestRequestBody;
|
|
14
|
+
export type GetV1FlywayCustomOperationsOkResponse = ResponseWithPagination<FlywayCustomOperationResponseResponse>;
|
|
15
|
+
export type GetV1FlywayCustomOperationsErrorResponse = ErrorResponseResponse;
|
|
16
|
+
export interface GetV1FlywayCustomOperationsProps extends Omit<FetcherOptions<GetV1FlywayCustomOperationsMutationQueryParams, GetV1FlywayCustomOperationsRequestBody, GetV1FlywayCustomOperationsMutationHeaderParams>, 'url'> {
|
|
17
|
+
queryParams: GetV1FlywayCustomOperationsMutationQueryParams;
|
|
18
|
+
body: GetV1FlywayCustomOperationsRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export declare function getV1FlywayCustomOperations(props: GetV1FlywayCustomOperationsProps): Promise<GetV1FlywayCustomOperationsOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Get custom operations result for db step execution
|
|
23
|
+
*/
|
|
24
|
+
export declare function useGetV1FlywayCustomOperationsMutation(options?: Omit<UseMutationOptions<GetV1FlywayCustomOperationsOkResponse, GetV1FlywayCustomOperationsErrorResponse, GetV1FlywayCustomOperationsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetV1FlywayCustomOperationsOkResponse, import("..").Error, GetV1FlywayCustomOperationsProps, 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 getV1FlywayCustomOperations(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/dbops/flyway/custom-operations`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get custom operations result for db step execution
|
|
11
|
+
*/
|
|
12
|
+
export function useGetV1FlywayCustomOperationsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => getV1FlywayCustomOperations(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { PipelineStatusResponseResponse } from '../responses/PipelineStatusResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface V1DefaultLlmPipelineQueryPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
}
|
|
10
|
+
export interface V1DefaultLlmPipelineQueryQueryParams {
|
|
11
|
+
dbSchema: string;
|
|
12
|
+
dbInstance: string;
|
|
13
|
+
}
|
|
14
|
+
export interface V1DefaultLlmPipelineQueryHeaderParams {
|
|
15
|
+
'Harness-Account'?: string;
|
|
16
|
+
}
|
|
17
|
+
export type V1DefaultLlmPipelineOkResponse = ResponseWithPagination<PipelineStatusResponseResponse>;
|
|
18
|
+
export type V1DefaultLlmPipelineErrorResponse = ErrorResponseResponse;
|
|
19
|
+
export interface V1DefaultLlmPipelineProps extends V1DefaultLlmPipelineQueryPathParams, Omit<FetcherOptions<V1DefaultLlmPipelineQueryQueryParams, unknown, V1DefaultLlmPipelineQueryHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: V1DefaultLlmPipelineQueryQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function v1DefaultLlmPipeline(props: V1DefaultLlmPipelineProps): Promise<V1DefaultLlmPipelineOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Api to get the default llm pipeline yaml
|
|
25
|
+
*/
|
|
26
|
+
export declare function useV1DefaultLlmPipelineQuery(props: V1DefaultLlmPipelineProps, options?: Omit<UseQueryOptions<V1DefaultLlmPipelineOkResponse, V1DefaultLlmPipelineErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<V1DefaultLlmPipelineOkResponse, 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 v1DefaultLlmPipeline(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/default-llm-pipeline`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Api to get the default llm pipeline yaml
|
|
11
|
+
*/
|
|
12
|
+
export function useV1DefaultLlmPipelineQuery(props, options) {
|
|
13
|
+
return useQuery(['v1-default-llm-pipeline', props.org, props.project, props.queryParams], ({ signal }) => v1DefaultLlmPipeline(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FlywayScriptOutputResponseResponse } from '../responses/FlywayScriptOutputResponseResponse';
|
|
3
3
|
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -20,11 +20,13 @@ export interface V1FetchMigrationScriptSqlQueryQueryParams {
|
|
|
20
20
|
* @default 10
|
|
21
21
|
*/
|
|
22
22
|
limit?: number;
|
|
23
|
+
pipelineExecutionId?: string;
|
|
24
|
+
stageExecutionId?: string;
|
|
23
25
|
}
|
|
24
26
|
export interface V1FetchMigrationScriptSqlQueryHeaderParams {
|
|
25
27
|
'Harness-Account'?: string;
|
|
26
28
|
}
|
|
27
|
-
export type V1FetchMigrationScriptSqlOkResponse = ResponseWithPagination<
|
|
29
|
+
export type V1FetchMigrationScriptSqlOkResponse = ResponseWithPagination<FlywayScriptOutputResponseResponse>;
|
|
28
30
|
export type V1FetchMigrationScriptSqlErrorResponse = ErrorResponseResponse;
|
|
29
31
|
export interface V1FetchMigrationScriptSqlProps extends V1FetchMigrationScriptSqlQueryPathParams, Omit<FetcherOptions<V1FetchMigrationScriptSqlQueryQueryParams, unknown, V1FetchMigrationScriptSqlQueryHeaderParams>, 'url'> {
|
|
30
32
|
queryParams: V1FetchMigrationScriptSqlQueryQueryParams;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FlywayDeployedStateResponseResponse } from '../responses/FlywayDeployedStateResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { DeployedStateInput } from '../schemas/DeployedStateInput';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface V1GetFlywayDeployedStateMutationPathParams {
|
|
8
|
+
org: string;
|
|
9
|
+
project: string;
|
|
10
|
+
dbschema: string;
|
|
11
|
+
dbinstance: string;
|
|
12
|
+
}
|
|
13
|
+
export interface V1GetFlywayDeployedStateMutationQueryParams {
|
|
14
|
+
/**
|
|
15
|
+
* @format int64
|
|
16
|
+
* @default 0
|
|
17
|
+
*/
|
|
18
|
+
page?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @default 10
|
|
21
|
+
*/
|
|
22
|
+
limit?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface V1GetFlywayDeployedStateMutationHeaderParams {
|
|
25
|
+
'Harness-Account'?: string;
|
|
26
|
+
}
|
|
27
|
+
export type V1GetFlywayDeployedStateRequestBody = DeployedStateInput;
|
|
28
|
+
export type V1GetFlywayDeployedStateOkResponse = ResponseWithPagination<FlywayDeployedStateResponseResponse>;
|
|
29
|
+
export type V1GetFlywayDeployedStateErrorResponse = ErrorResponseResponse;
|
|
30
|
+
export interface V1GetFlywayDeployedStateProps extends V1GetFlywayDeployedStateMutationPathParams, Omit<FetcherOptions<V1GetFlywayDeployedStateMutationQueryParams, V1GetFlywayDeployedStateRequestBody, V1GetFlywayDeployedStateMutationHeaderParams>, 'url'> {
|
|
31
|
+
queryParams: V1GetFlywayDeployedStateMutationQueryParams;
|
|
32
|
+
body: V1GetFlywayDeployedStateRequestBody;
|
|
33
|
+
}
|
|
34
|
+
export declare function v1GetFlywayDeployedState(props: V1GetFlywayDeployedStateProps): Promise<V1GetFlywayDeployedStateOkResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Status of migration script deployment as part of execution with comparison to earlier state.
|
|
37
|
+
*/
|
|
38
|
+
export declare function useV1GetFlywayDeployedStateMutation(options?: Omit<UseMutationOptions<V1GetFlywayDeployedStateOkResponse, V1GetFlywayDeployedStateErrorResponse, V1GetFlywayDeployedStateProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<V1GetFlywayDeployedStateOkResponse, import("..").Error, V1GetFlywayDeployedStateProps, 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 v1GetFlywayDeployedState(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/dbschema/${props.dbschema}/instance/${props.dbinstance}/flyway/deployedState`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Status of migration script deployment as part of execution with comparison to earlier state.
|
|
11
|
+
*/
|
|
12
|
+
export function useV1GetFlywayDeployedStateMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => v1GetFlywayDeployedState(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SnapshotObjectNamesResponseResponse } from '../responses/SnapshotObjectNamesResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface V1GetSnapshotObjectNamesQueryPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
dbschema: string;
|
|
10
|
+
dbinstance: string;
|
|
11
|
+
}
|
|
12
|
+
export interface V1GetSnapshotObjectNamesQueryQueryParams {
|
|
13
|
+
/**
|
|
14
|
+
* @format int64
|
|
15
|
+
* @default 0
|
|
16
|
+
*/
|
|
17
|
+
page?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @default 10
|
|
20
|
+
*/
|
|
21
|
+
limit?: number;
|
|
22
|
+
objectType: string;
|
|
23
|
+
}
|
|
24
|
+
export interface V1GetSnapshotObjectNamesQueryHeaderParams {
|
|
25
|
+
'Harness-Account'?: string;
|
|
26
|
+
}
|
|
27
|
+
export type V1GetSnapshotObjectNamesOkResponse = ResponseWithPagination<SnapshotObjectNamesResponseResponse>;
|
|
28
|
+
export type V1GetSnapshotObjectNamesErrorResponse = ErrorResponseResponse;
|
|
29
|
+
export interface V1GetSnapshotObjectNamesProps extends V1GetSnapshotObjectNamesQueryPathParams, Omit<FetcherOptions<V1GetSnapshotObjectNamesQueryQueryParams, unknown, V1GetSnapshotObjectNamesQueryHeaderParams>, 'url'> {
|
|
30
|
+
queryParams: V1GetSnapshotObjectNamesQueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export declare function v1GetSnapshotObjectNames(props: V1GetSnapshotObjectNamesProps): Promise<V1GetSnapshotObjectNamesOkResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves a paginated list of object names for the latest database snapshot of the given instance based on object type
|
|
35
|
+
*/
|
|
36
|
+
export declare function useV1GetSnapshotObjectNamesQuery(props: V1GetSnapshotObjectNamesProps, options?: Omit<UseQueryOptions<V1GetSnapshotObjectNamesOkResponse, V1GetSnapshotObjectNamesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<V1GetSnapshotObjectNamesOkResponse, 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 v1GetSnapshotObjectNames(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/dbschema/${props.dbschema}/dbinstance/${props.dbinstance}/snapshot-object-names`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a paginated list of object names for the latest database snapshot of the given instance based on object type
|
|
11
|
+
*/
|
|
12
|
+
export function useV1GetSnapshotObjectNamesQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'v1-get-snapshot-object-names',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props.dbschema,
|
|
18
|
+
props.dbinstance,
|
|
19
|
+
props.queryParams,
|
|
20
|
+
], ({ signal }) => v1GetSnapshotObjectNames(Object.assign(Object.assign({}, props), { signal })), options);
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SnapshotObjectValuesResponseResponse } from '../responses/SnapshotObjectValuesResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { SnapshotObjectValuesInput } from '../schemas/SnapshotObjectValuesInput';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface V1GetSnapshotObjectValuesMutationPathParams {
|
|
8
|
+
org: string;
|
|
9
|
+
project: string;
|
|
10
|
+
dbschema: string;
|
|
11
|
+
dbinstance: string;
|
|
12
|
+
}
|
|
13
|
+
export interface V1GetSnapshotObjectValuesMutationHeaderParams {
|
|
14
|
+
'Harness-Account'?: string;
|
|
15
|
+
}
|
|
16
|
+
export type V1GetSnapshotObjectValuesRequestBody = SnapshotObjectValuesInput;
|
|
17
|
+
export type V1GetSnapshotObjectValuesOkResponse = ResponseWithPagination<SnapshotObjectValuesResponseResponse>;
|
|
18
|
+
export type V1GetSnapshotObjectValuesErrorResponse = ErrorResponseResponse;
|
|
19
|
+
export interface V1GetSnapshotObjectValuesProps extends V1GetSnapshotObjectValuesMutationPathParams, Omit<FetcherOptions<unknown, V1GetSnapshotObjectValuesRequestBody, V1GetSnapshotObjectValuesMutationHeaderParams>, 'url'> {
|
|
20
|
+
body: V1GetSnapshotObjectValuesRequestBody;
|
|
21
|
+
}
|
|
22
|
+
export declare function v1GetSnapshotObjectValues(props: V1GetSnapshotObjectValuesProps): Promise<V1GetSnapshotObjectValuesOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves object values for a list of object names from the latest database snapshot of the given instance based on object type
|
|
25
|
+
*/
|
|
26
|
+
export declare function useV1GetSnapshotObjectValuesMutation(options?: Omit<UseMutationOptions<V1GetSnapshotObjectValuesOkResponse, V1GetSnapshotObjectValuesErrorResponse, V1GetSnapshotObjectValuesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<V1GetSnapshotObjectValuesOkResponse, import("..").Error, V1GetSnapshotObjectValuesProps, 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 v1GetSnapshotObjectValues(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/dbschema/${props.dbschema}/dbinstance/${props.dbinstance}/snapshot-object-values`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves object values for a list of object names from the latest database snapshot of the given instance based on object type
|
|
11
|
+
*/
|
|
12
|
+
export function useV1GetSnapshotObjectValuesMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => v1GetSnapshotObjectValues(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FlywayMigrationScriptResponseResponse } from '../responses/FlywayMigrationScriptResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface V1StepFlywayMigrationScriptsQueryQueryParams {
|
|
7
|
+
pipelineExecutionId: string;
|
|
8
|
+
stageExecutionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int64
|
|
11
|
+
* @default 0
|
|
12
|
+
*/
|
|
13
|
+
page?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @default 10
|
|
16
|
+
*/
|
|
17
|
+
limit?: number;
|
|
18
|
+
parent_id?: string;
|
|
19
|
+
dbSchema: string;
|
|
20
|
+
dbInstance: string;
|
|
21
|
+
command: 'Migrate' | 'Undo';
|
|
22
|
+
}
|
|
23
|
+
export interface V1StepFlywayMigrationScriptsQueryHeaderParams {
|
|
24
|
+
'Harness-Account'?: string;
|
|
25
|
+
}
|
|
26
|
+
export type V1StepFlywayMigrationScriptsOkResponse = ResponseWithPagination<FlywayMigrationScriptResponseResponse>;
|
|
27
|
+
export type V1StepFlywayMigrationScriptsErrorResponse = ErrorResponseResponse;
|
|
28
|
+
export interface V1StepFlywayMigrationScriptsProps extends Omit<FetcherOptions<V1StepFlywayMigrationScriptsQueryQueryParams, unknown, V1StepFlywayMigrationScriptsQueryHeaderParams>, 'url'> {
|
|
29
|
+
queryParams: V1StepFlywayMigrationScriptsQueryQueryParams;
|
|
30
|
+
}
|
|
31
|
+
export declare function v1StepFlywayMigrationScripts(props: V1StepFlywayMigrationScriptsProps): Promise<V1StepFlywayMigrationScriptsOkResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* get flyway migration scripts
|
|
34
|
+
*/
|
|
35
|
+
export declare function useV1StepFlywayMigrationScriptsQuery(props: V1StepFlywayMigrationScriptsProps, options?: Omit<UseQueryOptions<V1StepFlywayMigrationScriptsOkResponse, V1StepFlywayMigrationScriptsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<V1StepFlywayMigrationScriptsOkResponse, 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 v1StepFlywayMigrationScripts(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/step/flyway/migrationscripts`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* get flyway migration scripts
|
|
11
|
+
*/
|
|
12
|
+
export function useV1StepFlywayMigrationScriptsQuery(props, options) {
|
|
13
|
+
return useQuery(['v1-step-flyway-migration-scripts', props.queryParams], ({ signal }) => v1StepFlywayMigrationScripts(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -15,6 +15,8 @@ export type { CreateV1StepPluginInputsErrorResponse, CreateV1StepPluginInputsOkR
|
|
|
15
15
|
export { createV1StepPluginInputs, useCreateV1StepPluginInputsMutation, } from './hooks/useCreateV1StepPluginInputsMutation';
|
|
16
16
|
export type { GetV1CustomOperationsErrorResponse, GetV1CustomOperationsOkResponse, GetV1CustomOperationsProps, GetV1CustomOperationsRequestBody, } from './hooks/useGetV1CustomOperationsMutation';
|
|
17
17
|
export { getV1CustomOperations, useGetV1CustomOperationsMutation, } from './hooks/useGetV1CustomOperationsMutation';
|
|
18
|
+
export type { GetV1FlywayCustomOperationsErrorResponse, GetV1FlywayCustomOperationsMutationQueryParams, GetV1FlywayCustomOperationsOkResponse, GetV1FlywayCustomOperationsProps, GetV1FlywayCustomOperationsRequestBody, } from './hooks/useGetV1FlywayCustomOperationsMutation';
|
|
19
|
+
export { getV1FlywayCustomOperations, useGetV1FlywayCustomOperationsMutation, } from './hooks/useGetV1FlywayCustomOperationsMutation';
|
|
18
20
|
export type { GetV1SchemaInstanceMetadataErrorResponse, GetV1SchemaInstanceMetadataOkResponse, GetV1SchemaInstanceMetadataProps, GetV1SchemaInstanceMetadataRequestBody, } from './hooks/useGetV1SchemaInstanceMetadataMutation';
|
|
19
21
|
export { getV1SchemaInstanceMetadata, useGetV1SchemaInstanceMetadataMutation, } from './hooks/useGetV1SchemaInstanceMetadataMutation';
|
|
20
22
|
export type { PostV1DbopsDbSnapshotMetadataErrorResponse, PostV1DbopsDbSnapshotMetadataMutationPathParams, PostV1DbopsDbSnapshotMetadataMutationQueryParams, PostV1DbopsDbSnapshotMetadataOkResponse, PostV1DbopsDbSnapshotMetadataProps, PostV1DbopsDbSnapshotMetadataRequestBody, } from './hooks/usePostV1DbopsDbSnapshotMetadataMutation';
|
|
@@ -29,6 +31,8 @@ export type { V1CreateProjDbSchemaInstanceErrorResponse, V1CreateProjDbSchemaIns
|
|
|
29
31
|
export { useV1CreateProjDbSchemaInstanceMutation, v1CreateProjDbSchemaInstance, } from './hooks/useV1CreateProjDbSchemaInstanceMutation';
|
|
30
32
|
export type { V1CreateProjDbSchemaErrorResponse, V1CreateProjDbSchemaMutationPathParams, V1CreateProjDbSchemaOkResponse, V1CreateProjDbSchemaProps, V1CreateProjDbSchemaRequestBody, } from './hooks/useV1CreateProjDbSchemaMutation';
|
|
31
33
|
export { useV1CreateProjDbSchemaMutation, v1CreateProjDbSchema, } from './hooks/useV1CreateProjDbSchemaMutation';
|
|
34
|
+
export type { V1DefaultLlmPipelineErrorResponse, V1DefaultLlmPipelineOkResponse, V1DefaultLlmPipelineProps, V1DefaultLlmPipelineQueryPathParams, V1DefaultLlmPipelineQueryQueryParams, } from './hooks/useV1DefaultLlmPipelineQuery';
|
|
35
|
+
export { useV1DefaultLlmPipelineQuery, v1DefaultLlmPipeline, } from './hooks/useV1DefaultLlmPipelineQuery';
|
|
32
36
|
export type { V1DeleteDbSchemaErrorResponse, V1DeleteDbSchemaMutationQueryParams, V1DeleteDbSchemaOkResponse, V1DeleteDbSchemaProps, } from './hooks/useV1DeleteDbSchemaMutation';
|
|
33
37
|
export { useV1DeleteDbSchemaMutation, v1DeleteDbSchema } from './hooks/useV1DeleteDbSchemaMutation';
|
|
34
38
|
export type { V1DeleteExecutionConfigErrorResponse, V1DeleteExecutionConfigOkResponse, V1DeleteExecutionConfigProps, } from './hooks/useV1DeleteExecutionConfigMutation';
|
|
@@ -51,12 +55,18 @@ export type { V1GetDefaultConfigErrorResponse, V1GetDefaultConfigOkResponse, V1G
|
|
|
51
55
|
export { useV1GetDefaultConfigQuery, v1GetDefaultConfig } from './hooks/useV1GetDefaultConfigQuery';
|
|
52
56
|
export type { V1GetDeployedStateErrorResponse, V1GetDeployedStateMutationPathParams, V1GetDeployedStateMutationQueryParams, V1GetDeployedStateOkResponse, V1GetDeployedStateProps, V1GetDeployedStateRequestBody, } from './hooks/useV1GetDeployedStateMutation';
|
|
53
57
|
export { useV1GetDeployedStateMutation, v1GetDeployedState, } from './hooks/useV1GetDeployedStateMutation';
|
|
58
|
+
export type { V1GetFlywayDeployedStateErrorResponse, V1GetFlywayDeployedStateMutationPathParams, V1GetFlywayDeployedStateMutationQueryParams, V1GetFlywayDeployedStateOkResponse, V1GetFlywayDeployedStateProps, V1GetFlywayDeployedStateRequestBody, } from './hooks/useV1GetFlywayDeployedStateMutation';
|
|
59
|
+
export { useV1GetFlywayDeployedStateMutation, v1GetFlywayDeployedState, } from './hooks/useV1GetFlywayDeployedStateMutation';
|
|
54
60
|
export type { V1GetPipelineExecutionStatusErrorResponse, V1GetPipelineExecutionStatusOkResponse, V1GetPipelineExecutionStatusProps, V1GetPipelineExecutionStatusQueryPathParams, V1GetPipelineExecutionStatusQueryQueryParams, } from './hooks/useV1GetPipelineExecutionStatusQuery';
|
|
55
61
|
export { useV1GetPipelineExecutionStatusQuery, v1GetPipelineExecutionStatus, } from './hooks/useV1GetPipelineExecutionStatusQuery';
|
|
56
62
|
export type { V1GetProjDbSchemaInstanceErrorResponse, V1GetProjDbSchemaInstanceOkResponse, V1GetProjDbSchemaInstanceProps, V1GetProjDbSchemaInstanceQueryPathParams, } from './hooks/useV1GetProjDbSchemaInstanceQuery';
|
|
57
63
|
export { useV1GetProjDbSchemaInstanceQuery, v1GetProjDbSchemaInstance, } from './hooks/useV1GetProjDbSchemaInstanceQuery';
|
|
58
64
|
export type { V1GetProjDbSchemaErrorResponse, V1GetProjDbSchemaOkResponse, V1GetProjDbSchemaProps, V1GetProjDbSchemaQueryPathParams, } from './hooks/useV1GetProjDbSchemaQuery';
|
|
59
65
|
export { useV1GetProjDbSchemaQuery, v1GetProjDbSchema } from './hooks/useV1GetProjDbSchemaQuery';
|
|
66
|
+
export type { V1GetSnapshotObjectNamesErrorResponse, V1GetSnapshotObjectNamesOkResponse, V1GetSnapshotObjectNamesProps, V1GetSnapshotObjectNamesQueryPathParams, V1GetSnapshotObjectNamesQueryQueryParams, } from './hooks/useV1GetSnapshotObjectNamesQuery';
|
|
67
|
+
export { useV1GetSnapshotObjectNamesQuery, v1GetSnapshotObjectNames, } from './hooks/useV1GetSnapshotObjectNamesQuery';
|
|
68
|
+
export type { V1GetSnapshotObjectValuesErrorResponse, V1GetSnapshotObjectValuesMutationPathParams, V1GetSnapshotObjectValuesOkResponse, V1GetSnapshotObjectValuesProps, V1GetSnapshotObjectValuesRequestBody, } from './hooks/useV1GetSnapshotObjectValuesMutation';
|
|
69
|
+
export { useV1GetSnapshotObjectValuesMutation, v1GetSnapshotObjectValues, } from './hooks/useV1GetSnapshotObjectValuesMutation';
|
|
60
70
|
export type { V1IngestLogsErrorResponse, V1IngestLogsMutationPathParams, V1IngestLogsOkResponse, V1IngestLogsProps, V1IngestLogsRequestBody, } from './hooks/useV1IngestLogsMutation';
|
|
61
71
|
export { useV1IngestLogsMutation, v1IngestLogs } from './hooks/useV1IngestLogsMutation';
|
|
62
72
|
export type { V1ListDatabaseSchemaErrorResponse, V1ListDatabaseSchemaOkResponse, V1ListDatabaseSchemaProps, V1ListDatabaseSchemaQueryQueryParams, } from './hooks/useV1ListDatabaseSchemaQuery';
|
|
@@ -75,6 +85,8 @@ export type { V1MigrationStateProjDbSchemaErrorResponse, V1MigrationStateProjDbS
|
|
|
75
85
|
export { useV1MigrationStateProjDbSchemaMutation, v1MigrationStateProjDbSchema, } from './hooks/useV1MigrationStateProjDbSchemaMutation';
|
|
76
86
|
export type { V1ResetExecutionConfigErrorResponse, V1ResetExecutionConfigOkResponse, V1ResetExecutionConfigProps, V1ResetExecutionConfigRequestBody, } from './hooks/useV1ResetExecutionConfigMutation';
|
|
77
87
|
export { useV1ResetExecutionConfigMutation, v1ResetExecutionConfig, } from './hooks/useV1ResetExecutionConfigMutation';
|
|
88
|
+
export type { V1StepFlywayMigrationScriptsErrorResponse, V1StepFlywayMigrationScriptsOkResponse, V1StepFlywayMigrationScriptsProps, V1StepFlywayMigrationScriptsQueryQueryParams, } from './hooks/useV1StepFlywayMigrationScriptsQuery';
|
|
89
|
+
export { useV1StepFlywayMigrationScriptsQuery, v1StepFlywayMigrationScripts, } from './hooks/useV1StepFlywayMigrationScriptsQuery';
|
|
78
90
|
export type { V1UpdateExecutionConfigErrorResponse, V1UpdateExecutionConfigOkResponse, V1UpdateExecutionConfigProps, V1UpdateExecutionConfigRequestBody, } from './hooks/useV1UpdateExecutionConfigMutation';
|
|
79
91
|
export { useV1UpdateExecutionConfigMutation, v1UpdateExecutionConfig, } from './hooks/useV1UpdateExecutionConfigMutation';
|
|
80
92
|
export type { V1UpdateProjDbSchemaInstanceErrorResponse, V1UpdateProjDbSchemaInstanceMutationPathParams, V1UpdateProjDbSchemaInstanceOkResponse, V1UpdateProjDbSchemaInstanceProps, V1UpdateProjDbSchemaInstanceRequestBody, } from './hooks/useV1UpdateProjDbSchemaInstanceMutation';
|
|
@@ -100,6 +112,7 @@ export type { DbSnapshotMetadataCreateRequestRequestBody } from './requestBodies
|
|
|
100
112
|
export type { ExecutionConfigUpdateRequestRequestBody } from './requestBodies/ExecutionConfigUpdateRequestRequestBody';
|
|
101
113
|
export type { FailureInterruptRequestRequestBody } from './requestBodies/FailureInterruptRequestRequestBody';
|
|
102
114
|
export type { FetchSqlStatementRequestRequestBody } from './requestBodies/FetchSqlStatementRequestRequestBody';
|
|
115
|
+
export type { FlywayCustomOperationRequestRequestBody } from './requestBodies/FlywayCustomOperationRequestRequestBody';
|
|
103
116
|
export type { FlywayFailureInterruptRequestRequestBody } from './requestBodies/FlywayFailureInterruptRequestRequestBody';
|
|
104
117
|
export type { FlywayPluginInputsRequestRequestBody } from './requestBodies/FlywayPluginInputsRequestRequestBody';
|
|
105
118
|
export type { LogIngestRequestRequestBody } from './requestBodies/LogIngestRequestRequestBody';
|
|
@@ -117,9 +130,13 @@ export type { ErrorResponseResponse } from './responses/ErrorResponseResponse';
|
|
|
117
130
|
export type { ExecutionConfigSuccessResponseResponse } from './responses/ExecutionConfigSuccessResponseResponse';
|
|
118
131
|
export type { ExecutionConfigTagsResponseResponse } from './responses/ExecutionConfigTagsResponseResponse';
|
|
119
132
|
export type { FetchSqlStatementResponseResponse } from './responses/FetchSqlStatementResponseResponse';
|
|
133
|
+
export type { FlywayCustomOperationResponseResponse } from './responses/FlywayCustomOperationResponseResponse';
|
|
134
|
+
export type { FlywayDeployedStateResponseResponse } from './responses/FlywayDeployedStateResponseResponse';
|
|
120
135
|
export type { FlywayInstanceMigrationStateResponseResponse } from './responses/FlywayInstanceMigrationStateResponseResponse';
|
|
136
|
+
export type { FlywayMigrationScriptResponseResponse } from './responses/FlywayMigrationScriptResponseResponse';
|
|
121
137
|
export type { FlywayMigrationStateResponseResponse } from './responses/FlywayMigrationStateResponseResponse';
|
|
122
138
|
export type { FlywayPluginInputsResponseResponse } from './responses/FlywayPluginInputsResponseResponse';
|
|
139
|
+
export type { FlywayScriptOutputResponseResponse } from './responses/FlywayScriptOutputResponseResponse';
|
|
123
140
|
export type { InstanceMigrationStateResponseResponse } from './responses/InstanceMigrationStateResponseResponse';
|
|
124
141
|
export type { MigrationStateResponseResponse } from './responses/MigrationStateResponseResponse';
|
|
125
142
|
export type { OverviewResponseResponse } from './responses/OverviewResponseResponse';
|
|
@@ -127,6 +144,9 @@ export type { ParsedLogResponseResponse } from './responses/ParsedLogResponseRes
|
|
|
127
144
|
export type { PipelineStatusResponseResponse } from './responses/PipelineStatusResponseResponse';
|
|
128
145
|
export type { PluginInputsResponseResponse } from './responses/PluginInputsResponseResponse';
|
|
129
146
|
export type { SchemaInstanceMetadataResponseResponse } from './responses/SchemaInstanceMetadataResponseResponse';
|
|
147
|
+
export type { SnapshotObjectNamesResponseResponse } from './responses/SnapshotObjectNamesResponseResponse';
|
|
148
|
+
export type { SnapshotObjectValuesResponseResponse } from './responses/SnapshotObjectValuesResponseResponse';
|
|
149
|
+
export type { AppliedScriptOutput } from './schemas/AppliedScriptOutput';
|
|
130
150
|
export type { ChangeLogScript } from './schemas/ChangeLogScript';
|
|
131
151
|
export type { ChangeSetDeploymentStatus } from './schemas/ChangeSetDeploymentStatus';
|
|
132
152
|
export type { ChangeSetDeploymentYamlOutput } from './schemas/ChangeSetDeploymentYamlOutput';
|
|
@@ -147,6 +167,7 @@ export type { DbSchemaOut } from './schemas/DbSchemaOut';
|
|
|
147
167
|
export type { DbSchemaType } from './schemas/DbSchemaType';
|
|
148
168
|
export type { DbSnapshotMetadataIn } from './schemas/DbSnapshotMetadataIn';
|
|
149
169
|
export type { DbStepType } from './schemas/DbStepType';
|
|
170
|
+
export type { DefaultPipelineOutput } from './schemas/DefaultPipelineOutput';
|
|
150
171
|
export type { DeployedChangeSets } from './schemas/DeployedChangeSets';
|
|
151
172
|
export type { DeployedChangesetSqlOutput } from './schemas/DeployedChangesetSqlOutput';
|
|
152
173
|
export type { DeployedStateInput } from './schemas/DeployedStateInput';
|
|
@@ -157,8 +178,14 @@ export type { ExecutionConfigTags } from './schemas/ExecutionConfigTags';
|
|
|
157
178
|
export type { ExecutionMetadata } from './schemas/ExecutionMetadata';
|
|
158
179
|
export type { FlywayAppliedMigration } from './schemas/FlywayAppliedMigration';
|
|
159
180
|
export type { FlywayCommand } from './schemas/FlywayCommand';
|
|
181
|
+
export type { FlywayCommandExecutionStatus } from './schemas/FlywayCommandExecutionStatus';
|
|
182
|
+
export type { FlywayCustomOperationInput } from './schemas/FlywayCustomOperationInput';
|
|
183
|
+
export type { FlywayCustomOperationOutput } from './schemas/FlywayCustomOperationOutput';
|
|
184
|
+
export type { FlywayCustomOperations } from './schemas/FlywayCustomOperations';
|
|
185
|
+
export type { FlywayDeployedStateOutput } from './schemas/FlywayDeployedStateOutput';
|
|
160
186
|
export type { FlywayInstanceMigrationState } from './schemas/FlywayInstanceMigrationState';
|
|
161
187
|
export type { FlywayInstanceMigrationStateOutput } from './schemas/FlywayInstanceMigrationStateOutput';
|
|
188
|
+
export type { FlywayMigrationScriptOutput } from './schemas/FlywayMigrationScriptOutput';
|
|
162
189
|
export type { FlywayMigrationStateOutput } from './schemas/FlywayMigrationStateOutput';
|
|
163
190
|
export type { InstanceDetail } from './schemas/InstanceDetail';
|
|
164
191
|
export type { InstanceMigrationStateChangeSet } from './schemas/InstanceMigrationStateChangeSet';
|
|
@@ -177,4 +204,8 @@ export type { PipelineExecutionMetadata } from './schemas/PipelineExecutionMetad
|
|
|
177
204
|
export type { PipelineStatusOutput } from './schemas/PipelineStatusOutput';
|
|
178
205
|
export type { SchemaInstanceMetadataInput } from './schemas/SchemaInstanceMetadataInput';
|
|
179
206
|
export type { SchemaInstanceMetadataOutput } from './schemas/SchemaInstanceMetadataOutput';
|
|
207
|
+
export type { SnapshotObjectNamesOutput } from './schemas/SnapshotObjectNamesOutput';
|
|
208
|
+
export type { SnapshotObjectValue } from './schemas/SnapshotObjectValue';
|
|
209
|
+
export type { SnapshotObjectValuesInput } from './schemas/SnapshotObjectValuesInput';
|
|
210
|
+
export type { SnapshotObjectValuesOutput } from './schemas/SnapshotObjectValuesOutput';
|
|
180
211
|
export type { SortInstance } from './schemas/SortInstance';
|
|
@@ -6,6 +6,7 @@ export { consumeV1StepPluginResponse, useConsumeV1StepPluginResponseMutation, }
|
|
|
6
6
|
export { createV1FlywayPluginInputs, useCreateV1FlywayPluginInputsMutation, } from './hooks/useCreateV1FlywayPluginInputsMutation';
|
|
7
7
|
export { createV1StepPluginInputs, useCreateV1StepPluginInputsMutation, } from './hooks/useCreateV1StepPluginInputsMutation';
|
|
8
8
|
export { getV1CustomOperations, useGetV1CustomOperationsMutation, } from './hooks/useGetV1CustomOperationsMutation';
|
|
9
|
+
export { getV1FlywayCustomOperations, useGetV1FlywayCustomOperationsMutation, } from './hooks/useGetV1FlywayCustomOperationsMutation';
|
|
9
10
|
export { getV1SchemaInstanceMetadata, useGetV1SchemaInstanceMetadataMutation, } from './hooks/useGetV1SchemaInstanceMetadataMutation';
|
|
10
11
|
export { postV1DbopsDbSnapshotMetadata, usePostV1DbopsDbSnapshotMetadataMutation, } from './hooks/usePostV1DbopsDbSnapshotMetadataMutation';
|
|
11
12
|
export { postV1DbopsMetadataSnapshot, usePostV1DbopsMetadataSnapshotMutation, } from './hooks/usePostV1DbopsMetadataSnapshotMutation';
|
|
@@ -13,6 +14,7 @@ export { useV1ChangesetYamlProjDbInstanceQuery, v1ChangesetYamlProjDbInstance, }
|
|
|
13
14
|
export { useV1ChangesetmetadataProjDbInstanceQuery, v1ChangesetmetadataProjDbInstance, } from './hooks/useV1ChangesetmetadataProjDbInstanceQuery';
|
|
14
15
|
export { useV1CreateProjDbSchemaInstanceMutation, v1CreateProjDbSchemaInstance, } from './hooks/useV1CreateProjDbSchemaInstanceMutation';
|
|
15
16
|
export { useV1CreateProjDbSchemaMutation, v1CreateProjDbSchema, } from './hooks/useV1CreateProjDbSchemaMutation';
|
|
17
|
+
export { useV1DefaultLlmPipelineQuery, v1DefaultLlmPipeline, } from './hooks/useV1DefaultLlmPipelineQuery';
|
|
16
18
|
export { useV1DeleteDbSchemaMutation, v1DeleteDbSchema } from './hooks/useV1DeleteDbSchemaMutation';
|
|
17
19
|
export { useV1DeleteExecutionConfigMutation, v1DeleteExecutionConfig, } from './hooks/useV1DeleteExecutionConfigMutation';
|
|
18
20
|
export { useV1DeleteProjDbSchemaInstanceMutation, v1DeleteProjDbSchemaInstance, } from './hooks/useV1DeleteProjDbSchemaInstanceMutation';
|
|
@@ -24,9 +26,12 @@ export { useV1GetDbOverviewQuery, v1GetDbOverview } from './hooks/useV1GetDbOver
|
|
|
24
26
|
export { useV1GetDbinstanceLogQuery, v1GetDbinstanceLog } from './hooks/useV1GetDbinstanceLogQuery';
|
|
25
27
|
export { useV1GetDefaultConfigQuery, v1GetDefaultConfig } from './hooks/useV1GetDefaultConfigQuery';
|
|
26
28
|
export { useV1GetDeployedStateMutation, v1GetDeployedState, } from './hooks/useV1GetDeployedStateMutation';
|
|
29
|
+
export { useV1GetFlywayDeployedStateMutation, v1GetFlywayDeployedState, } from './hooks/useV1GetFlywayDeployedStateMutation';
|
|
27
30
|
export { useV1GetPipelineExecutionStatusQuery, v1GetPipelineExecutionStatus, } from './hooks/useV1GetPipelineExecutionStatusQuery';
|
|
28
31
|
export { useV1GetProjDbSchemaInstanceQuery, v1GetProjDbSchemaInstance, } from './hooks/useV1GetProjDbSchemaInstanceQuery';
|
|
29
32
|
export { useV1GetProjDbSchemaQuery, v1GetProjDbSchema } from './hooks/useV1GetProjDbSchemaQuery';
|
|
33
|
+
export { useV1GetSnapshotObjectNamesQuery, v1GetSnapshotObjectNames, } from './hooks/useV1GetSnapshotObjectNamesQuery';
|
|
34
|
+
export { useV1GetSnapshotObjectValuesMutation, v1GetSnapshotObjectValues, } from './hooks/useV1GetSnapshotObjectValuesMutation';
|
|
30
35
|
export { useV1IngestLogsMutation, v1IngestLogs } from './hooks/useV1IngestLogsMutation';
|
|
31
36
|
export { useV1ListDatabaseSchemaQuery, v1ListDatabaseSchema, } from './hooks/useV1ListDatabaseSchemaQuery';
|
|
32
37
|
export { useV1ListProjDbSchemaInstanceMutation, v1ListProjDbSchemaInstance, } from './hooks/useV1ListProjDbSchemaInstanceMutation';
|
|
@@ -36,6 +41,7 @@ export { useV1MigrationStateFlywaySchemaMutation, v1MigrationStateFlywaySchema,
|
|
|
36
41
|
export { useV1MigrationStateProjDbInstanceQuery, v1MigrationStateProjDbInstance, } from './hooks/useV1MigrationStateProjDbInstanceQuery';
|
|
37
42
|
export { useV1MigrationStateProjDbSchemaMutation, v1MigrationStateProjDbSchema, } from './hooks/useV1MigrationStateProjDbSchemaMutation';
|
|
38
43
|
export { useV1ResetExecutionConfigMutation, v1ResetExecutionConfig, } from './hooks/useV1ResetExecutionConfigMutation';
|
|
44
|
+
export { useV1StepFlywayMigrationScriptsQuery, v1StepFlywayMigrationScripts, } from './hooks/useV1StepFlywayMigrationScriptsQuery';
|
|
39
45
|
export { useV1UpdateExecutionConfigMutation, v1UpdateExecutionConfig, } from './hooks/useV1UpdateExecutionConfigMutation';
|
|
40
46
|
export { useV1UpdateProjDbSchemaInstanceMutation, v1UpdateProjDbSchemaInstance, } from './hooks/useV1UpdateProjDbSchemaInstanceMutation';
|
|
41
47
|
export { useV1UpdateProjDbSchemaMutation, v1UpdateProjDbSchema, } from './hooks/useV1UpdateProjDbSchemaMutation';
|
package/dist/dbops-service/src/services/requestBodies/FlywayCustomOperationRequestRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Body for Fetching script content for flyway
|
|
3
|
+
*/
|
|
4
|
+
export interface AppliedScriptOutput {
|
|
5
|
+
/**
|
|
6
|
+
* show message if the script is not from current pipeline execution
|
|
7
|
+
*/
|
|
8
|
+
executionMismatchMsg?: string;
|
|
9
|
+
/**
|
|
10
|
+
* migration script content for a version
|
|
11
|
+
*/
|
|
12
|
+
statements?: string[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response body for Default Pipeline for DBOPS
|
|
3
|
+
*/
|
|
4
|
+
export interface DefaultPipelineOutput {
|
|
5
|
+
/**
|
|
6
|
+
* Identifier of the pipeline
|
|
7
|
+
*/
|
|
8
|
+
identifier: string;
|
|
9
|
+
/**
|
|
10
|
+
* meta data of the api
|
|
11
|
+
*/
|
|
12
|
+
metadata?: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Yaml for the pipeline to be used, as its dynamic pipeline
|
|
17
|
+
*/
|
|
18
|
+
yaml: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type FlywayCommandExecutionStatus = 'CANCELLED' | 'FAILURE' | 'IN_PROGRESS' | 'SUCCESS' | 'SUCCESS_ROLLED_BACK';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FlywayCommand } from '../schemas/FlywayCommand';
|
|
2
|
+
import type { PipelineExecutionMetadata } from '../schemas/PipelineExecutionMetadata';
|
|
3
|
+
import type { FlywayCustomOperations } from '../schemas/FlywayCustomOperations';
|
|
4
|
+
/**
|
|
5
|
+
* Input for getting custom property result
|
|
6
|
+
*/
|
|
7
|
+
export interface FlywayCustomOperationInput {
|
|
8
|
+
command: FlywayCommand;
|
|
9
|
+
dbInstance: string;
|
|
10
|
+
dbSchema: string;
|
|
11
|
+
pipelineExecutionMetadata: PipelineExecutionMetadata;
|
|
12
|
+
properties: FlywayCustomOperations[];
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { FlywayCommand } from '../schemas/FlywayCommand';
|
|
2
|
+
import type { ExecutionMetadata } from '../schemas/ExecutionMetadata';
|
|
3
|
+
import type { FlywayCommandExecutionStatus } from '../schemas/FlywayCommandExecutionStatus';
|
|
4
|
+
/**
|
|
5
|
+
* The status of migration script deployment
|
|
6
|
+
*/
|
|
7
|
+
export interface FlywayDeployedStateOutput {
|
|
8
|
+
/**
|
|
9
|
+
* if migration script run as part of current step execution
|
|
10
|
+
*/
|
|
11
|
+
appliedInCurrentExecution: boolean;
|
|
12
|
+
command: FlywayCommand;
|
|
13
|
+
/**
|
|
14
|
+
* epoch seconds when the migration was applied
|
|
15
|
+
* @format int64
|
|
16
|
+
*/
|
|
17
|
+
deployedAt?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Description from the migration script
|
|
20
|
+
*/
|
|
21
|
+
description?: string;
|
|
22
|
+
metadata: ExecutionMetadata;
|
|
23
|
+
status: FlywayCommandExecutionStatus;
|
|
24
|
+
/**
|
|
25
|
+
* type of migration, whether baseline or actual script migration
|
|
26
|
+
*/
|
|
27
|
+
type: string;
|
|
28
|
+
/**
|
|
29
|
+
* Version of flyway migration script
|
|
30
|
+
*/
|
|
31
|
+
version: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request containing object type and list of object names
|
|
3
|
+
*/
|
|
4
|
+
export interface SnapshotObjectValuesInput {
|
|
5
|
+
/**
|
|
6
|
+
* List of object names to retrieve values for
|
|
7
|
+
*/
|
|
8
|
+
objectNames: string[];
|
|
9
|
+
/**
|
|
10
|
+
* Type of database object (e.g., Table, etc)
|
|
11
|
+
*/
|
|
12
|
+
objectType: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SnapshotObjectValue } from '../schemas/SnapshotObjectValue';
|
|
2
|
+
/**
|
|
3
|
+
* Response containing list of object values from snapshot metadata
|
|
4
|
+
*/
|
|
5
|
+
export interface SnapshotObjectValuesOutput {
|
|
6
|
+
/**
|
|
7
|
+
* List of object values for the given snapshot and object type
|
|
8
|
+
*/
|
|
9
|
+
data: SnapshotObjectValue[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED