@harnessio/react-dbops-service-client 0.27.0 → 0.29.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/useCreateV1FlywayPluginInputsMutation.d.ts +20 -0
- package/dist/dbops-service/src/services/hooks/useCreateV1FlywayPluginInputsMutation.js +14 -0
- package/dist/dbops-service/src/services/hooks/usePostV1DbopsDbSnapshotMetadataMutation.d.ts +35 -0
- package/dist/dbops-service/src/services/hooks/usePostV1DbopsDbSnapshotMetadataMutation.js +14 -0
- package/dist/dbops-service/src/services/hooks/usePostV1DbopsMetadataSnapshotMutation.d.ts +35 -0
- package/dist/dbops-service/src/services/hooks/usePostV1DbopsMetadataSnapshotMutation.js +14 -0
- package/dist/dbops-service/src/services/hooks/useV1ChangesetmetadataProjDbInstanceQuery.d.ts +1 -1
- package/dist/dbops-service/src/services/hooks/useV1ListProjDbSchemaQuery.d.ts +1 -0
- package/dist/dbops-service/src/services/index.d.ts +11 -0
- package/dist/dbops-service/src/services/index.js +3 -0
- package/dist/dbops-service/src/services/requestBodies/DbSnapshotMetadataCreateRequestRequestBody.d.ts +2 -0
- package/dist/dbops-service/src/services/requestBodies/DbSnapshotMetadataCreateRequestRequestBody.js +1 -0
- package/dist/dbops-service/src/services/requestBodies/FlywayPluginInputsRequestRequestBody.d.ts +35 -0
- package/dist/dbops-service/src/services/requestBodies/FlywayPluginInputsRequestRequestBody.js +1 -0
- package/dist/dbops-service/src/services/responses/FlywayPluginInputsResponseResponse.d.ts +30 -0
- package/dist/dbops-service/src/services/responses/FlywayPluginInputsResponseResponse.js +1 -0
- package/dist/dbops-service/src/services/schemas/Command.d.ts +1 -1
- package/dist/dbops-service/src/services/schemas/DbSnapshotMetadataIn.d.ts +15 -0
- package/dist/dbops-service/src/services/schemas/DbSnapshotMetadataIn.js +4 -0
- package/dist/dbops-service/src/services/schemas/FlywayCommand.d.ts +4 -0
- package/dist/dbops-service/src/services/schemas/FlywayCommand.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FlywayPluginInputsResponseResponse } from '../responses/FlywayPluginInputsResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { FlywayPluginInputsRequestRequestBody } from '../requestBodies/FlywayPluginInputsRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface CreateV1FlywayPluginInputsMutationHeaderParams {
|
|
8
|
+
'Harness-Account'?: string;
|
|
9
|
+
}
|
|
10
|
+
export type CreateV1FlywayPluginInputsRequestBody = FlywayPluginInputsRequestRequestBody;
|
|
11
|
+
export type CreateV1FlywayPluginInputsOkResponse = ResponseWithPagination<FlywayPluginInputsResponseResponse>;
|
|
12
|
+
export type CreateV1FlywayPluginInputsErrorResponse = ErrorResponseResponse;
|
|
13
|
+
export interface CreateV1FlywayPluginInputsProps extends Omit<FetcherOptions<unknown, CreateV1FlywayPluginInputsRequestBody, CreateV1FlywayPluginInputsMutationHeaderParams>, 'url'> {
|
|
14
|
+
body: CreateV1FlywayPluginInputsRequestBody;
|
|
15
|
+
}
|
|
16
|
+
export declare function createV1FlywayPluginInputs(props: CreateV1FlywayPluginInputsProps): Promise<CreateV1FlywayPluginInputsOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Create Flyway Plugin Inputs using Step Inputs
|
|
19
|
+
*/
|
|
20
|
+
export declare function useCreateV1FlywayPluginInputsMutation(options?: Omit<UseMutationOptions<CreateV1FlywayPluginInputsOkResponse, CreateV1FlywayPluginInputsErrorResponse, CreateV1FlywayPluginInputsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateV1FlywayPluginInputsOkResponse, import("..").Error, CreateV1FlywayPluginInputsProps, 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 createV1FlywayPluginInputs(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/step/flyway/plugin-inputs`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create Flyway Plugin Inputs using Step Inputs
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateV1FlywayPluginInputsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createV1FlywayPluginInputs(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
3
|
+
import type { DbSnapshotMetadataCreateRequestRequestBody } from '../requestBodies/DbSnapshotMetadataCreateRequestRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface PostV1DbopsDbSnapshotMetadataMutationPathParams {
|
|
7
|
+
snapshotId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface PostV1DbopsDbSnapshotMetadataMutationQueryParams {
|
|
10
|
+
/**
|
|
11
|
+
* @example "Update"
|
|
12
|
+
*/
|
|
13
|
+
harnessCommand: 'DBOPSRollbackCountSQL' | 'DBOPSRollbackSQL' | 'DBOPSSnapshot' | 'DBOPSUpdateSQL' | 'Rollback' | 'Update';
|
|
14
|
+
pipelineExecutionId: string;
|
|
15
|
+
stageExecutionId: string;
|
|
16
|
+
pipelineIdentifier: string;
|
|
17
|
+
dbInstance: string;
|
|
18
|
+
dbSchema: string;
|
|
19
|
+
parentId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface PostV1DbopsDbSnapshotMetadataMutationHeaderParams {
|
|
22
|
+
'Harness-Account'?: string;
|
|
23
|
+
}
|
|
24
|
+
export type PostV1DbopsDbSnapshotMetadataRequestBody = DbSnapshotMetadataCreateRequestRequestBody;
|
|
25
|
+
export type PostV1DbopsDbSnapshotMetadataOkResponse = ResponseWithPagination<unknown>;
|
|
26
|
+
export type PostV1DbopsDbSnapshotMetadataErrorResponse = ErrorResponseResponse;
|
|
27
|
+
export interface PostV1DbopsDbSnapshotMetadataProps extends PostV1DbopsDbSnapshotMetadataMutationPathParams, Omit<FetcherOptions<PostV1DbopsDbSnapshotMetadataMutationQueryParams, PostV1DbopsDbSnapshotMetadataRequestBody, PostV1DbopsDbSnapshotMetadataMutationHeaderParams>, 'url'> {
|
|
28
|
+
queryParams: PostV1DbopsDbSnapshotMetadataMutationQueryParams;
|
|
29
|
+
body: PostV1DbopsDbSnapshotMetadataRequestBody;
|
|
30
|
+
}
|
|
31
|
+
export declare function postV1DbopsDbSnapshotMetadata(props: PostV1DbopsDbSnapshotMetadataProps): Promise<PostV1DbopsDbSnapshotMetadataOkResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Sending DB snapshot metadata from plugin to capture current state
|
|
34
|
+
*/
|
|
35
|
+
export declare function usePostV1DbopsDbSnapshotMetadataMutation(options?: Omit<UseMutationOptions<PostV1DbopsDbSnapshotMetadataOkResponse, PostV1DbopsDbSnapshotMetadataErrorResponse, PostV1DbopsDbSnapshotMetadataProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostV1DbopsDbSnapshotMetadataOkResponse, import("..").Error, PostV1DbopsDbSnapshotMetadataProps, 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 postV1DbopsDbSnapshotMetadata(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/dbops/db-metadata/${props.snapshotId}`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Sending DB snapshot metadata from plugin to capture current state
|
|
11
|
+
*/
|
|
12
|
+
export function usePostV1DbopsDbSnapshotMetadataMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => postV1DbopsDbSnapshotMetadata(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface PostV1DbopsMetadataSnapshotMutationPathParams {
|
|
6
|
+
snapshotId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface PostV1DbopsMetadataSnapshotMutationQueryParams {
|
|
9
|
+
/**
|
|
10
|
+
* @example "Update"
|
|
11
|
+
*/
|
|
12
|
+
harnessCommand: 'DBOPSRollbackCountSQL' | 'DBOPSRollbackSQL' | 'DBOPSSnapshot' | 'DBOPSUpdateSQL' | 'Rollback' | 'Update';
|
|
13
|
+
pipelineExecutionId: string;
|
|
14
|
+
stageExecutionId: string;
|
|
15
|
+
pipelineIdentifier: string;
|
|
16
|
+
dbInstance: string;
|
|
17
|
+
dbSchema: string;
|
|
18
|
+
parentId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface PostV1DbopsMetadataSnapshotMutationHeaderParams {
|
|
21
|
+
'Harness-Account'?: string;
|
|
22
|
+
'X-Checksum-Sha256'?: string;
|
|
23
|
+
}
|
|
24
|
+
export type PostV1DbopsMetadataSnapshotRequestBody = string;
|
|
25
|
+
export type PostV1DbopsMetadataSnapshotOkResponse = ResponseWithPagination<unknown>;
|
|
26
|
+
export type PostV1DbopsMetadataSnapshotErrorResponse = ErrorResponseResponse;
|
|
27
|
+
export interface PostV1DbopsMetadataSnapshotProps extends PostV1DbopsMetadataSnapshotMutationPathParams, Omit<FetcherOptions<PostV1DbopsMetadataSnapshotMutationQueryParams, PostV1DbopsMetadataSnapshotRequestBody, PostV1DbopsMetadataSnapshotMutationHeaderParams>, 'url'> {
|
|
28
|
+
queryParams: PostV1DbopsMetadataSnapshotMutationQueryParams;
|
|
29
|
+
body: PostV1DbopsMetadataSnapshotRequestBody;
|
|
30
|
+
}
|
|
31
|
+
export declare function postV1DbopsMetadataSnapshot(props: PostV1DbopsMetadataSnapshotProps): Promise<PostV1DbopsMetadataSnapshotOkResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Sending DB snapshot file from plugin to harness for capturing current state
|
|
34
|
+
*/
|
|
35
|
+
export declare function usePostV1DbopsMetadataSnapshotMutation(options?: Omit<UseMutationOptions<PostV1DbopsMetadataSnapshotOkResponse, PostV1DbopsMetadataSnapshotErrorResponse, PostV1DbopsMetadataSnapshotProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostV1DbopsMetadataSnapshotOkResponse, import("..").Error, PostV1DbopsMetadataSnapshotProps, 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 postV1DbopsMetadataSnapshot(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/dbops/metadata-snapshot/${props.snapshotId}`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Sending DB snapshot file from plugin to harness for capturing current state
|
|
11
|
+
*/
|
|
12
|
+
export function usePostV1DbopsMetadataSnapshotMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => postV1DbopsMetadataSnapshot(mutateProps), options);
|
|
14
|
+
}
|
package/dist/dbops-service/src/services/hooks/useV1ChangesetmetadataProjDbInstanceQuery.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface V1ChangesetmetadataProjDbInstanceQueryQueryParams {
|
|
|
13
13
|
/**
|
|
14
14
|
* @example "Update"
|
|
15
15
|
*/
|
|
16
|
-
harnessCommand: 'DBOPSRollbackCountSQL' | 'DBOPSRollbackSQL' | 'DBOPSUpdateSQL' | 'Rollback' | 'Update';
|
|
16
|
+
harnessCommand: 'DBOPSRollbackCountSQL' | 'DBOPSRollbackSQL' | 'DBOPSSnapshot' | 'DBOPSUpdateSQL' | 'Rollback' | 'Update';
|
|
17
17
|
pipelineExecutionId: string;
|
|
18
18
|
stageExecutionId: string;
|
|
19
19
|
/**
|
|
@@ -5,12 +5,18 @@ export type { ConsumeV1StepPluginOutputResponseErrorResponse, ConsumeV1StepPlugi
|
|
|
5
5
|
export { consumeV1StepPluginOutputResponse, useConsumeV1StepPluginOutputResponseMutation, } from './hooks/useConsumeV1StepPluginOutputResponseMutation';
|
|
6
6
|
export type { ConsumeV1StepPluginResponseErrorResponse, ConsumeV1StepPluginResponseOkResponse, ConsumeV1StepPluginResponseProps, ConsumeV1StepPluginResponseRequestBody, } from './hooks/useConsumeV1StepPluginResponseMutation';
|
|
7
7
|
export { consumeV1StepPluginResponse, useConsumeV1StepPluginResponseMutation, } from './hooks/useConsumeV1StepPluginResponseMutation';
|
|
8
|
+
export type { CreateV1FlywayPluginInputsErrorResponse, CreateV1FlywayPluginInputsOkResponse, CreateV1FlywayPluginInputsProps, CreateV1FlywayPluginInputsRequestBody, } from './hooks/useCreateV1FlywayPluginInputsMutation';
|
|
9
|
+
export { createV1FlywayPluginInputs, useCreateV1FlywayPluginInputsMutation, } from './hooks/useCreateV1FlywayPluginInputsMutation';
|
|
8
10
|
export type { CreateV1StepPluginInputsErrorResponse, CreateV1StepPluginInputsOkResponse, CreateV1StepPluginInputsProps, CreateV1StepPluginInputsRequestBody, } from './hooks/useCreateV1StepPluginInputsMutation';
|
|
9
11
|
export { createV1StepPluginInputs, useCreateV1StepPluginInputsMutation, } from './hooks/useCreateV1StepPluginInputsMutation';
|
|
10
12
|
export type { GetV1CustomOperationsErrorResponse, GetV1CustomOperationsOkResponse, GetV1CustomOperationsProps, GetV1CustomOperationsRequestBody, } from './hooks/useGetV1CustomOperationsMutation';
|
|
11
13
|
export { getV1CustomOperations, useGetV1CustomOperationsMutation, } from './hooks/useGetV1CustomOperationsMutation';
|
|
12
14
|
export type { GetV1SchemaInstanceMetadataErrorResponse, GetV1SchemaInstanceMetadataOkResponse, GetV1SchemaInstanceMetadataProps, GetV1SchemaInstanceMetadataRequestBody, } from './hooks/useGetV1SchemaInstanceMetadataMutation';
|
|
13
15
|
export { getV1SchemaInstanceMetadata, useGetV1SchemaInstanceMetadataMutation, } from './hooks/useGetV1SchemaInstanceMetadataMutation';
|
|
16
|
+
export type { PostV1DbopsDbSnapshotMetadataErrorResponse, PostV1DbopsDbSnapshotMetadataMutationPathParams, PostV1DbopsDbSnapshotMetadataMutationQueryParams, PostV1DbopsDbSnapshotMetadataOkResponse, PostV1DbopsDbSnapshotMetadataProps, PostV1DbopsDbSnapshotMetadataRequestBody, } from './hooks/usePostV1DbopsDbSnapshotMetadataMutation';
|
|
17
|
+
export { postV1DbopsDbSnapshotMetadata, usePostV1DbopsDbSnapshotMetadataMutation, } from './hooks/usePostV1DbopsDbSnapshotMetadataMutation';
|
|
18
|
+
export type { PostV1DbopsMetadataSnapshotErrorResponse, PostV1DbopsMetadataSnapshotMutationPathParams, PostV1DbopsMetadataSnapshotMutationQueryParams, PostV1DbopsMetadataSnapshotOkResponse, PostV1DbopsMetadataSnapshotProps, PostV1DbopsMetadataSnapshotRequestBody, } from './hooks/usePostV1DbopsMetadataSnapshotMutation';
|
|
19
|
+
export { postV1DbopsMetadataSnapshot, usePostV1DbopsMetadataSnapshotMutation, } from './hooks/usePostV1DbopsMetadataSnapshotMutation';
|
|
14
20
|
export type { V1ChangesetYamlProjDbInstanceErrorResponse, V1ChangesetYamlProjDbInstanceOkResponse, V1ChangesetYamlProjDbInstanceProps, V1ChangesetYamlProjDbInstanceQueryPathParams, V1ChangesetYamlProjDbInstanceQueryQueryParams, } from './hooks/useV1ChangesetYamlProjDbInstanceQuery';
|
|
15
21
|
export { useV1ChangesetYamlProjDbInstanceQuery, v1ChangesetYamlProjDbInstance, } from './hooks/useV1ChangesetYamlProjDbInstanceQuery';
|
|
16
22
|
export type { V1ChangesetmetadataProjDbInstanceErrorResponse, V1ChangesetmetadataProjDbInstanceOkResponse, V1ChangesetmetadataProjDbInstanceProps, V1ChangesetmetadataProjDbInstanceQueryPathParams, V1ChangesetmetadataProjDbInstanceQueryQueryParams, } from './hooks/useV1ChangesetmetadataProjDbInstanceQuery';
|
|
@@ -79,9 +85,11 @@ export type { DbInstanceUpdateRequestRequestBody } from './requestBodies/DbInsta
|
|
|
79
85
|
export type { DbSchemaCreateRequestRequestBody } from './requestBodies/DbSchemaCreateRequestRequestBody';
|
|
80
86
|
export type { DbSchemaFilterRequestRequestBody } from './requestBodies/DbSchemaFilterRequestRequestBody';
|
|
81
87
|
export type { DbSchemaUpdateRequestRequestBody } from './requestBodies/DbSchemaUpdateRequestRequestBody';
|
|
88
|
+
export type { DbSnapshotMetadataCreateRequestRequestBody } from './requestBodies/DbSnapshotMetadataCreateRequestRequestBody';
|
|
82
89
|
export type { ExecutionConfigUpdateRequestRequestBody } from './requestBodies/ExecutionConfigUpdateRequestRequestBody';
|
|
83
90
|
export type { FailureInterruptRequestRequestBody } from './requestBodies/FailureInterruptRequestRequestBody';
|
|
84
91
|
export type { FetchSqlStatementRequestRequestBody } from './requestBodies/FetchSqlStatementRequestRequestBody';
|
|
92
|
+
export type { FlywayPluginInputsRequestRequestBody } from './requestBodies/FlywayPluginInputsRequestRequestBody';
|
|
85
93
|
export type { LogIngestRequestRequestBody } from './requestBodies/LogIngestRequestRequestBody';
|
|
86
94
|
export type { MigrationStateGetRequestRequestBody } from './requestBodies/MigrationStateGetRequestRequestBody';
|
|
87
95
|
export type { PluginStepInputsRequestRequestBody } from './requestBodies/PluginStepInputsRequestRequestBody';
|
|
@@ -97,6 +105,7 @@ export type { ErrorResponseResponse } from './responses/ErrorResponseResponse';
|
|
|
97
105
|
export type { ExecutionConfigSuccessResponseResponse } from './responses/ExecutionConfigSuccessResponseResponse';
|
|
98
106
|
export type { ExecutionConfigTagsResponseResponse } from './responses/ExecutionConfigTagsResponseResponse';
|
|
99
107
|
export type { FetchSqlStatementResponseResponse } from './responses/FetchSqlStatementResponseResponse';
|
|
108
|
+
export type { FlywayPluginInputsResponseResponse } from './responses/FlywayPluginInputsResponseResponse';
|
|
100
109
|
export type { InstanceMigrationStateResponseResponse } from './responses/InstanceMigrationStateResponseResponse';
|
|
101
110
|
export type { MigrationStateResponseResponse } from './responses/MigrationStateResponseResponse';
|
|
102
111
|
export type { OverviewResponseResponse } from './responses/OverviewResponseResponse';
|
|
@@ -122,6 +131,7 @@ export type { DbSchemaFilterIn } from './schemas/DbSchemaFilterIn';
|
|
|
122
131
|
export type { DbSchemaIn } from './schemas/DbSchemaIn';
|
|
123
132
|
export type { DbSchemaOut } from './schemas/DbSchemaOut';
|
|
124
133
|
export type { DbSchemaType } from './schemas/DbSchemaType';
|
|
134
|
+
export type { DbSnapshotMetadataIn } from './schemas/DbSnapshotMetadataIn';
|
|
125
135
|
export type { DbStepType } from './schemas/DbStepType';
|
|
126
136
|
export type { DeployedChangeSets } from './schemas/DeployedChangeSets';
|
|
127
137
|
export type { DeployedChangesetSqlOutput } from './schemas/DeployedChangesetSqlOutput';
|
|
@@ -131,6 +141,7 @@ export type { Error } from './schemas/Error';
|
|
|
131
141
|
export type { ExecutionConfigOperation } from './schemas/ExecutionConfigOperation';
|
|
132
142
|
export type { ExecutionConfigTags } from './schemas/ExecutionConfigTags';
|
|
133
143
|
export type { ExecutionMetadata } from './schemas/ExecutionMetadata';
|
|
144
|
+
export type { FlywayCommand } from './schemas/FlywayCommand';
|
|
134
145
|
export type { InstanceDetail } from './schemas/InstanceDetail';
|
|
135
146
|
export type { InstanceMigrationStateChangeSet } from './schemas/InstanceMigrationStateChangeSet';
|
|
136
147
|
export type { InstanceMigrationStateOut } from './schemas/InstanceMigrationStateOut';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export { consumeFailureInterrupt, useConsumeFailureInterruptMutation, } from './hooks/useConsumeFailureInterruptMutation';
|
|
2
2
|
export { consumeV1StepPluginOutputResponse, useConsumeV1StepPluginOutputResponseMutation, } from './hooks/useConsumeV1StepPluginOutputResponseMutation';
|
|
3
3
|
export { consumeV1StepPluginResponse, useConsumeV1StepPluginResponseMutation, } from './hooks/useConsumeV1StepPluginResponseMutation';
|
|
4
|
+
export { createV1FlywayPluginInputs, useCreateV1FlywayPluginInputsMutation, } from './hooks/useCreateV1FlywayPluginInputsMutation';
|
|
4
5
|
export { createV1StepPluginInputs, useCreateV1StepPluginInputsMutation, } from './hooks/useCreateV1StepPluginInputsMutation';
|
|
5
6
|
export { getV1CustomOperations, useGetV1CustomOperationsMutation, } from './hooks/useGetV1CustomOperationsMutation';
|
|
6
7
|
export { getV1SchemaInstanceMetadata, useGetV1SchemaInstanceMetadataMutation, } from './hooks/useGetV1SchemaInstanceMetadataMutation';
|
|
8
|
+
export { postV1DbopsDbSnapshotMetadata, usePostV1DbopsDbSnapshotMetadataMutation, } from './hooks/usePostV1DbopsDbSnapshotMetadataMutation';
|
|
9
|
+
export { postV1DbopsMetadataSnapshot, usePostV1DbopsMetadataSnapshotMutation, } from './hooks/usePostV1DbopsMetadataSnapshotMutation';
|
|
7
10
|
export { useV1ChangesetYamlProjDbInstanceQuery, v1ChangesetYamlProjDbInstance, } from './hooks/useV1ChangesetYamlProjDbInstanceQuery';
|
|
8
11
|
export { useV1ChangesetmetadataProjDbInstanceQuery, v1ChangesetmetadataProjDbInstance, } from './hooks/useV1ChangesetmetadataProjDbInstanceQuery';
|
|
9
12
|
export { useV1CreateProjDbSchemaInstanceMutation, v1CreateProjDbSchemaInstance, } from './hooks/useV1CreateProjDbSchemaInstanceMutation';
|
package/dist/dbops-service/src/services/requestBodies/DbSnapshotMetadataCreateRequestRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/dbops-service/src/services/requestBodies/FlywayPluginInputsRequestRequestBody.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { FlywayCommand } from '../schemas/FlywayCommand';
|
|
2
|
+
export interface FlywayPluginInputsRequestRequestBody {
|
|
3
|
+
command: FlywayCommand;
|
|
4
|
+
/**
|
|
5
|
+
* when pluginCommand type is Custom, customCommand is considered which is any string provided by the user
|
|
6
|
+
*/
|
|
7
|
+
customCommand?: string;
|
|
8
|
+
/**
|
|
9
|
+
* db instance identifier
|
|
10
|
+
* @example "myschema/prod-1-instance"
|
|
11
|
+
*/
|
|
12
|
+
dbInstance: string;
|
|
13
|
+
/**
|
|
14
|
+
* dbSchema reference
|
|
15
|
+
*/
|
|
16
|
+
dbSchema: string;
|
|
17
|
+
/**
|
|
18
|
+
* Controls whether to include JWT authentication token in the plugin settings. If true, a bearer token will be included.
|
|
19
|
+
*/
|
|
20
|
+
includeJwtAuth?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* parent unique id for the scope
|
|
23
|
+
*/
|
|
24
|
+
parentId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Key value mapping of user input plugin settings
|
|
27
|
+
*/
|
|
28
|
+
settings?: {
|
|
29
|
+
[key: string]: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* The base directory Flyway uses to resolve relative paths for migrations
|
|
33
|
+
*/
|
|
34
|
+
workingDirectory?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { DbInstanceOut } from '../schemas/DbInstanceOut';
|
|
2
|
+
import type { DbSchemaOut } from '../schemas/DbSchemaOut';
|
|
3
|
+
export interface FlywayPluginInputsResponseResponse {
|
|
4
|
+
/**
|
|
5
|
+
* DB engine images by type/version.
|
|
6
|
+
*/
|
|
7
|
+
dbImages?: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Built-in default config key-values
|
|
12
|
+
*/
|
|
13
|
+
defaultConfigs?: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Optional auxiliary images to pull
|
|
18
|
+
*/
|
|
19
|
+
downloadImages?: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
};
|
|
22
|
+
instance?: DbInstanceOut;
|
|
23
|
+
schema?: DbSchemaOut;
|
|
24
|
+
/**
|
|
25
|
+
* Computed plugin step settings/env
|
|
26
|
+
*/
|
|
27
|
+
settings?: {
|
|
28
|
+
[key: string]: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -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' | 'DBOPSRollbackCountSQL' | 'DBOPSRollbackSQL' | 'DBOPSUpdateSQL' | 'History' | 'MarkNextChangesetRan' | 'ParentWrapper' | 'Rollback' | 'RollbackCount' | 'RollbackCountSQL' | 'RollbackSQL' | 'Status' | 'Tag' | 'Update' | 'UpdateSQL' | 'Validate';
|
|
4
|
+
export type Command = 'Clone' | 'Custom' | 'DBOPSRollbackCountSQL' | 'DBOPSRollbackSQL' | 'DBOPSUpdateSQL' | 'History' | 'MarkNextChangesetRan' | 'ParentWrapper' | 'Rollback' | 'RollbackCount' | 'RollbackCountSQL' | 'RollbackSQL' | 'Snapshot' | 'Status' | 'Tag' | 'Update' | 'UpdateSQL' | 'Validate';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface DbSnapshotMetadataIn {
|
|
2
|
+
/**
|
|
3
|
+
* Name for the object, example - Customers for table objectType
|
|
4
|
+
*/
|
|
5
|
+
objectName: string;
|
|
6
|
+
/**
|
|
7
|
+
* type for the object for the metadata, example- Table
|
|
8
|
+
*/
|
|
9
|
+
objectType: string;
|
|
10
|
+
/**
|
|
11
|
+
* json value of the object
|
|
12
|
+
*/
|
|
13
|
+
objectValue: string;
|
|
14
|
+
snapshotObjectId?: string;
|
|
15
|
+
}
|
package/package.json
CHANGED