@harnessio/react-dbops-service-client 0.28.0 → 0.30.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.
Files changed (40) hide show
  1. package/dist/dbops-service/src/services/hooks/useConsumeV1FlywayStepPluginOutputResponseMutation.d.ts +19 -0
  2. package/dist/dbops-service/src/services/hooks/useConsumeV1FlywayStepPluginOutputResponseMutation.js +14 -0
  3. package/dist/dbops-service/src/services/hooks/useCreateV1FlywayPluginInputsMutation.d.ts +20 -0
  4. package/dist/dbops-service/src/services/hooks/useCreateV1FlywayPluginInputsMutation.js +14 -0
  5. package/dist/dbops-service/src/services/hooks/usePostV1DbopsDbSnapshotMetadataMutation.d.ts +17 -1
  6. package/dist/dbops-service/src/services/hooks/usePostV1DbopsDbSnapshotMetadataMutation.js +1 -1
  7. package/dist/dbops-service/src/services/hooks/usePostV1DbopsMetadataSnapshotMutation.d.ts +35 -0
  8. package/dist/dbops-service/src/services/hooks/usePostV1DbopsMetadataSnapshotMutation.js +14 -0
  9. package/dist/dbops-service/src/services/hooks/useV1ChangesetmetadataProjDbInstanceQuery.d.ts +1 -1
  10. package/dist/dbops-service/src/services/hooks/useV1MigrationStateFlywayInstanceQuery.d.ts +36 -0
  11. package/dist/dbops-service/src/services/hooks/useV1MigrationStateFlywayInstanceQuery.js +21 -0
  12. package/dist/dbops-service/src/services/hooks/useV1MigrationStateFlywaySchemaMutation.d.ts +38 -0
  13. package/dist/dbops-service/src/services/hooks/useV1MigrationStateFlywaySchemaMutation.js +14 -0
  14. package/dist/dbops-service/src/services/index.d.ts +21 -1
  15. package/dist/dbops-service/src/services/index.js +5 -0
  16. package/dist/dbops-service/src/services/requestBodies/ConsumeFlywayPluginOutputRespRequestRequestBody.d.ts +19 -0
  17. package/dist/dbops-service/src/services/requestBodies/ConsumeFlywayPluginOutputRespRequestRequestBody.js +1 -0
  18. package/dist/dbops-service/src/services/requestBodies/ConsumePluginOutputRespRequestRequestBody.d.ts +8 -0
  19. package/dist/dbops-service/src/services/requestBodies/FlywayPluginInputsRequestRequestBody.d.ts +37 -0
  20. package/dist/dbops-service/src/services/requestBodies/FlywayPluginInputsRequestRequestBody.js +1 -0
  21. package/dist/dbops-service/src/services/responses/FlywayInstanceMigrationStateResponseResponse.d.ts +2 -0
  22. package/dist/dbops-service/src/services/responses/FlywayInstanceMigrationStateResponseResponse.js +1 -0
  23. package/dist/dbops-service/src/services/responses/FlywayMigrationStateResponseResponse.d.ts +2 -0
  24. package/dist/dbops-service/src/services/responses/FlywayMigrationStateResponseResponse.js +1 -0
  25. package/dist/dbops-service/src/services/responses/FlywayPluginInputsResponseResponse.d.ts +30 -0
  26. package/dist/dbops-service/src/services/responses/FlywayPluginInputsResponseResponse.js +1 -0
  27. package/dist/dbops-service/src/services/schemas/Command.d.ts +1 -1
  28. package/dist/dbops-service/src/services/schemas/DbSnapshotMetadataIn.d.ts +1 -11
  29. package/dist/dbops-service/src/services/schemas/DbSnapshotMetadataIn.js +3 -0
  30. package/dist/dbops-service/src/services/schemas/FlywayAppliedMigration.d.ts +24 -0
  31. package/dist/dbops-service/src/services/schemas/FlywayAppliedMigration.js +1 -0
  32. package/dist/dbops-service/src/services/schemas/FlywayCommand.d.ts +4 -0
  33. package/dist/dbops-service/src/services/schemas/FlywayCommand.js +4 -0
  34. package/dist/dbops-service/src/services/schemas/FlywayInstanceMigrationState.d.ts +36 -0
  35. package/dist/dbops-service/src/services/schemas/FlywayInstanceMigrationState.js +1 -0
  36. package/dist/dbops-service/src/services/schemas/FlywayInstanceMigrationStateOutput.d.ts +15 -0
  37. package/dist/dbops-service/src/services/schemas/FlywayInstanceMigrationStateOutput.js +1 -0
  38. package/dist/dbops-service/src/services/schemas/FlywayMigrationStateOutput.d.ts +13 -0
  39. package/dist/dbops-service/src/services/schemas/FlywayMigrationStateOutput.js +1 -0
  40. package/package.json +1 -1
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
3
+ import type { ConsumeFlywayPluginOutputRespRequestRequestBody } from '../requestBodies/ConsumeFlywayPluginOutputRespRequestRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ConsumeV1FlywayStepPluginOutputResponseMutationHeaderParams {
7
+ 'Harness-Account'?: string;
8
+ }
9
+ export type ConsumeV1FlywayStepPluginOutputResponseRequestBody = ConsumeFlywayPluginOutputRespRequestRequestBody;
10
+ export type ConsumeV1FlywayStepPluginOutputResponseOkResponse = ResponseWithPagination<unknown>;
11
+ export type ConsumeV1FlywayStepPluginOutputResponseErrorResponse = ErrorResponseResponse;
12
+ export interface ConsumeV1FlywayStepPluginOutputResponseProps extends Omit<FetcherOptions<unknown, ConsumeV1FlywayStepPluginOutputResponseRequestBody, ConsumeV1FlywayStepPluginOutputResponseMutationHeaderParams>, 'url'> {
13
+ body: ConsumeV1FlywayStepPluginOutputResponseRequestBody;
14
+ }
15
+ export declare function consumeV1FlywayStepPluginOutputResponse(props: ConsumeV1FlywayStepPluginOutputResponseProps): Promise<ConsumeV1FlywayStepPluginOutputResponseOkResponse>;
16
+ /**
17
+ * Consume Flyway Plugin Output Response
18
+ */
19
+ export declare function useConsumeV1FlywayStepPluginOutputResponseMutation(options?: Omit<UseMutationOptions<ConsumeV1FlywayStepPluginOutputResponseOkResponse, ConsumeV1FlywayStepPluginOutputResponseErrorResponse, ConsumeV1FlywayStepPluginOutputResponseProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ConsumeV1FlywayStepPluginOutputResponseOkResponse, import("..").Error, ConsumeV1FlywayStepPluginOutputResponseProps, 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 consumeV1FlywayStepPluginOutputResponse(props) {
7
+ return fetcher(Object.assign({ url: `/v1/dbops/flyway/plugin-output-response`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Consume Flyway Plugin Output Response
11
+ */
12
+ export function useConsumeV1FlywayStepPluginOutputResponseMutation(options) {
13
+ return useMutation((mutateProps) => consumeV1FlywayStepPluginOutputResponse(mutateProps), options);
14
+ }
@@ -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
+ }
@@ -3,13 +3,29 @@ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
3
3
  import type { DbSnapshotMetadataCreateRequestRequestBody } from '../requestBodies/DbSnapshotMetadataCreateRequestRequestBody';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
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
+ }
6
21
  export interface PostV1DbopsDbSnapshotMetadataMutationHeaderParams {
7
22
  'Harness-Account'?: string;
8
23
  }
9
24
  export type PostV1DbopsDbSnapshotMetadataRequestBody = DbSnapshotMetadataCreateRequestRequestBody;
10
25
  export type PostV1DbopsDbSnapshotMetadataOkResponse = ResponseWithPagination<unknown>;
11
26
  export type PostV1DbopsDbSnapshotMetadataErrorResponse = ErrorResponseResponse;
12
- export interface PostV1DbopsDbSnapshotMetadataProps extends Omit<FetcherOptions<unknown, PostV1DbopsDbSnapshotMetadataRequestBody, PostV1DbopsDbSnapshotMetadataMutationHeaderParams>, 'url'> {
27
+ export interface PostV1DbopsDbSnapshotMetadataProps extends PostV1DbopsDbSnapshotMetadataMutationPathParams, Omit<FetcherOptions<PostV1DbopsDbSnapshotMetadataMutationQueryParams, PostV1DbopsDbSnapshotMetadataRequestBody, PostV1DbopsDbSnapshotMetadataMutationHeaderParams>, 'url'> {
28
+ queryParams: PostV1DbopsDbSnapshotMetadataMutationQueryParams;
13
29
  body: PostV1DbopsDbSnapshotMetadataRequestBody;
14
30
  }
15
31
  export declare function postV1DbopsDbSnapshotMetadata(props: PostV1DbopsDbSnapshotMetadataProps): Promise<PostV1DbopsDbSnapshotMetadataOkResponse>;
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function postV1DbopsDbSnapshotMetadata(props) {
7
- return fetcher(Object.assign({ url: `/v1/dbops/db-metadata`, method: 'POST' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/dbops/db-metadata/${props.snapshotId}`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Sending DB snapshot metadata from plugin to capture current state
@@ -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
+ }
@@ -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
  /**
@@ -0,0 +1,36 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { FlywayInstanceMigrationStateResponseResponse } from '../responses/FlywayInstanceMigrationStateResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface V1MigrationStateFlywayInstanceQueryPathParams {
7
+ org: string;
8
+ project: string;
9
+ dbschema: string;
10
+ dbinstance: string;
11
+ }
12
+ export interface V1MigrationStateFlywayInstanceQueryQueryParams {
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 V1MigrationStateFlywayInstanceQueryHeaderParams {
25
+ 'Harness-Account'?: string;
26
+ }
27
+ export type V1MigrationStateFlywayInstanceOkResponse = ResponseWithPagination<FlywayInstanceMigrationStateResponseResponse>;
28
+ export type V1MigrationStateFlywayInstanceErrorResponse = ErrorResponseResponse;
29
+ export interface V1MigrationStateFlywayInstanceProps extends V1MigrationStateFlywayInstanceQueryPathParams, Omit<FetcherOptions<V1MigrationStateFlywayInstanceQueryQueryParams, unknown, V1MigrationStateFlywayInstanceQueryHeaderParams>, 'url'> {
30
+ queryParams: V1MigrationStateFlywayInstanceQueryQueryParams;
31
+ }
32
+ export declare function v1MigrationStateFlywayInstance(props: V1MigrationStateFlywayInstanceProps): Promise<V1MigrationStateFlywayInstanceOkResponse>;
33
+ /**
34
+ * Flyway Migration state of an instance
35
+ */
36
+ export declare function useV1MigrationStateFlywayInstanceQuery(props: V1MigrationStateFlywayInstanceProps, options?: Omit<UseQueryOptions<V1MigrationStateFlywayInstanceOkResponse, V1MigrationStateFlywayInstanceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<V1MigrationStateFlywayInstanceOkResponse, 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 v1MigrationStateFlywayInstance(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/dbschema/${props.dbschema}/dbinstance/${props.dbinstance}/flyway/migrationstate`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Flyway Migration state of an instance
11
+ */
12
+ export function useV1MigrationStateFlywayInstanceQuery(props, options) {
13
+ return useQuery([
14
+ 'v1-migration-state-flyway-instance',
15
+ props.org,
16
+ props.project,
17
+ props.dbschema,
18
+ props.dbinstance,
19
+ props.queryParams,
20
+ ], ({ signal }) => v1MigrationStateFlywayInstance(Object.assign(Object.assign({}, props), { signal })), options);
21
+ }
@@ -0,0 +1,38 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { FlywayMigrationStateResponseResponse } from '../responses/FlywayMigrationStateResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { MigrationStateGetRequestRequestBody } from '../requestBodies/MigrationStateGetRequestRequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface V1MigrationStateFlywaySchemaMutationPathParams {
8
+ org: string;
9
+ project: string;
10
+ dbschema: string;
11
+ }
12
+ export interface V1MigrationStateFlywaySchemaMutationQueryParams {
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 V1MigrationStateFlywaySchemaMutationHeaderParams {
25
+ 'Harness-Account'?: string;
26
+ }
27
+ export type V1MigrationStateFlywaySchemaRequestBody = MigrationStateGetRequestRequestBody;
28
+ export type V1MigrationStateFlywaySchemaOkResponse = ResponseWithPagination<FlywayMigrationStateResponseResponse>;
29
+ export type V1MigrationStateFlywaySchemaErrorResponse = ErrorResponseResponse;
30
+ export interface V1MigrationStateFlywaySchemaProps extends V1MigrationStateFlywaySchemaMutationPathParams, Omit<FetcherOptions<V1MigrationStateFlywaySchemaMutationQueryParams, V1MigrationStateFlywaySchemaRequestBody, V1MigrationStateFlywaySchemaMutationHeaderParams>, 'url'> {
31
+ queryParams: V1MigrationStateFlywaySchemaMutationQueryParams;
32
+ body: V1MigrationStateFlywaySchemaRequestBody;
33
+ }
34
+ export declare function v1MigrationStateFlywaySchema(props: V1MigrationStateFlywaySchemaProps): Promise<V1MigrationStateFlywaySchemaOkResponse>;
35
+ /**
36
+ * Migration state of a flyway schema
37
+ */
38
+ export declare function useV1MigrationStateFlywaySchemaMutation(options?: Omit<UseMutationOptions<V1MigrationStateFlywaySchemaOkResponse, V1MigrationStateFlywaySchemaErrorResponse, V1MigrationStateFlywaySchemaProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<V1MigrationStateFlywaySchemaOkResponse, import("..").Error, V1MigrationStateFlywaySchemaProps, 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 v1MigrationStateFlywaySchema(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/dbschema/${props.dbschema}/flyway/migrationstate`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Migration state of a flyway schema
11
+ */
12
+ export function useV1MigrationStateFlywaySchemaMutation(options) {
13
+ return useMutation((mutateProps) => v1MigrationStateFlywaySchema(mutateProps), options);
14
+ }
@@ -1,18 +1,24 @@
1
1
  export type { GetPathParamsType, ResponseWithPagination } from './helpers';
2
2
  export type { ConsumeFailureInterruptErrorResponse, ConsumeFailureInterruptOkResponse, ConsumeFailureInterruptProps, ConsumeFailureInterruptRequestBody, } from './hooks/useConsumeFailureInterruptMutation';
3
3
  export { consumeFailureInterrupt, useConsumeFailureInterruptMutation, } from './hooks/useConsumeFailureInterruptMutation';
4
+ export type { ConsumeV1FlywayStepPluginOutputResponseErrorResponse, ConsumeV1FlywayStepPluginOutputResponseOkResponse, ConsumeV1FlywayStepPluginOutputResponseProps, ConsumeV1FlywayStepPluginOutputResponseRequestBody, } from './hooks/useConsumeV1FlywayStepPluginOutputResponseMutation';
5
+ export { consumeV1FlywayStepPluginOutputResponse, useConsumeV1FlywayStepPluginOutputResponseMutation, } from './hooks/useConsumeV1FlywayStepPluginOutputResponseMutation';
4
6
  export type { ConsumeV1StepPluginOutputResponseErrorResponse, ConsumeV1StepPluginOutputResponseOkResponse, ConsumeV1StepPluginOutputResponseProps, ConsumeV1StepPluginOutputResponseRequestBody, } from './hooks/useConsumeV1StepPluginOutputResponseMutation';
5
7
  export { consumeV1StepPluginOutputResponse, useConsumeV1StepPluginOutputResponseMutation, } from './hooks/useConsumeV1StepPluginOutputResponseMutation';
6
8
  export type { ConsumeV1StepPluginResponseErrorResponse, ConsumeV1StepPluginResponseOkResponse, ConsumeV1StepPluginResponseProps, ConsumeV1StepPluginResponseRequestBody, } from './hooks/useConsumeV1StepPluginResponseMutation';
7
9
  export { consumeV1StepPluginResponse, useConsumeV1StepPluginResponseMutation, } from './hooks/useConsumeV1StepPluginResponseMutation';
10
+ export type { CreateV1FlywayPluginInputsErrorResponse, CreateV1FlywayPluginInputsOkResponse, CreateV1FlywayPluginInputsProps, CreateV1FlywayPluginInputsRequestBody, } from './hooks/useCreateV1FlywayPluginInputsMutation';
11
+ export { createV1FlywayPluginInputs, useCreateV1FlywayPluginInputsMutation, } from './hooks/useCreateV1FlywayPluginInputsMutation';
8
12
  export type { CreateV1StepPluginInputsErrorResponse, CreateV1StepPluginInputsOkResponse, CreateV1StepPluginInputsProps, CreateV1StepPluginInputsRequestBody, } from './hooks/useCreateV1StepPluginInputsMutation';
9
13
  export { createV1StepPluginInputs, useCreateV1StepPluginInputsMutation, } from './hooks/useCreateV1StepPluginInputsMutation';
10
14
  export type { GetV1CustomOperationsErrorResponse, GetV1CustomOperationsOkResponse, GetV1CustomOperationsProps, GetV1CustomOperationsRequestBody, } from './hooks/useGetV1CustomOperationsMutation';
11
15
  export { getV1CustomOperations, useGetV1CustomOperationsMutation, } from './hooks/useGetV1CustomOperationsMutation';
12
16
  export type { GetV1SchemaInstanceMetadataErrorResponse, GetV1SchemaInstanceMetadataOkResponse, GetV1SchemaInstanceMetadataProps, GetV1SchemaInstanceMetadataRequestBody, } from './hooks/useGetV1SchemaInstanceMetadataMutation';
13
17
  export { getV1SchemaInstanceMetadata, useGetV1SchemaInstanceMetadataMutation, } from './hooks/useGetV1SchemaInstanceMetadataMutation';
14
- export type { PostV1DbopsDbSnapshotMetadataErrorResponse, PostV1DbopsDbSnapshotMetadataOkResponse, PostV1DbopsDbSnapshotMetadataProps, PostV1DbopsDbSnapshotMetadataRequestBody, } from './hooks/usePostV1DbopsDbSnapshotMetadataMutation';
18
+ export type { PostV1DbopsDbSnapshotMetadataErrorResponse, PostV1DbopsDbSnapshotMetadataMutationPathParams, PostV1DbopsDbSnapshotMetadataMutationQueryParams, PostV1DbopsDbSnapshotMetadataOkResponse, PostV1DbopsDbSnapshotMetadataProps, PostV1DbopsDbSnapshotMetadataRequestBody, } from './hooks/usePostV1DbopsDbSnapshotMetadataMutation';
15
19
  export { postV1DbopsDbSnapshotMetadata, usePostV1DbopsDbSnapshotMetadataMutation, } from './hooks/usePostV1DbopsDbSnapshotMetadataMutation';
20
+ export type { PostV1DbopsMetadataSnapshotErrorResponse, PostV1DbopsMetadataSnapshotMutationPathParams, PostV1DbopsMetadataSnapshotMutationQueryParams, PostV1DbopsMetadataSnapshotOkResponse, PostV1DbopsMetadataSnapshotProps, PostV1DbopsMetadataSnapshotRequestBody, } from './hooks/usePostV1DbopsMetadataSnapshotMutation';
21
+ export { postV1DbopsMetadataSnapshot, usePostV1DbopsMetadataSnapshotMutation, } from './hooks/usePostV1DbopsMetadataSnapshotMutation';
16
22
  export type { V1ChangesetYamlProjDbInstanceErrorResponse, V1ChangesetYamlProjDbInstanceOkResponse, V1ChangesetYamlProjDbInstanceProps, V1ChangesetYamlProjDbInstanceQueryPathParams, V1ChangesetYamlProjDbInstanceQueryQueryParams, } from './hooks/useV1ChangesetYamlProjDbInstanceQuery';
17
23
  export { useV1ChangesetYamlProjDbInstanceQuery, v1ChangesetYamlProjDbInstance, } from './hooks/useV1ChangesetYamlProjDbInstanceQuery';
18
24
  export type { V1ChangesetmetadataProjDbInstanceErrorResponse, V1ChangesetmetadataProjDbInstanceOkResponse, V1ChangesetmetadataProjDbInstanceProps, V1ChangesetmetadataProjDbInstanceQueryPathParams, V1ChangesetmetadataProjDbInstanceQueryQueryParams, } from './hooks/useV1ChangesetmetadataProjDbInstanceQuery';
@@ -55,6 +61,10 @@ export type { V1ListProjDbSchemaInstanceErrorResponse, V1ListProjDbSchemaInstanc
55
61
  export { useV1ListProjDbSchemaInstanceMutation, v1ListProjDbSchemaInstance, } from './hooks/useV1ListProjDbSchemaInstanceMutation';
56
62
  export type { V1ListProjDbSchemaErrorResponse, V1ListProjDbSchemaOkResponse, V1ListProjDbSchemaProps, V1ListProjDbSchemaQueryPathParams, V1ListProjDbSchemaQueryQueryParams, } from './hooks/useV1ListProjDbSchemaQuery';
57
63
  export { useV1ListProjDbSchemaQuery, v1ListProjDbSchema } from './hooks/useV1ListProjDbSchemaQuery';
64
+ export type { V1MigrationStateFlywayInstanceErrorResponse, V1MigrationStateFlywayInstanceOkResponse, V1MigrationStateFlywayInstanceProps, V1MigrationStateFlywayInstanceQueryPathParams, V1MigrationStateFlywayInstanceQueryQueryParams, } from './hooks/useV1MigrationStateFlywayInstanceQuery';
65
+ export { useV1MigrationStateFlywayInstanceQuery, v1MigrationStateFlywayInstance, } from './hooks/useV1MigrationStateFlywayInstanceQuery';
66
+ export type { V1MigrationStateFlywaySchemaErrorResponse, V1MigrationStateFlywaySchemaMutationPathParams, V1MigrationStateFlywaySchemaMutationQueryParams, V1MigrationStateFlywaySchemaOkResponse, V1MigrationStateFlywaySchemaProps, V1MigrationStateFlywaySchemaRequestBody, } from './hooks/useV1MigrationStateFlywaySchemaMutation';
67
+ export { useV1MigrationStateFlywaySchemaMutation, v1MigrationStateFlywaySchema, } from './hooks/useV1MigrationStateFlywaySchemaMutation';
58
68
  export type { V1MigrationStateProjDbInstanceErrorResponse, V1MigrationStateProjDbInstanceOkResponse, V1MigrationStateProjDbInstanceProps, V1MigrationStateProjDbInstanceQueryPathParams, V1MigrationStateProjDbInstanceQueryQueryParams, } from './hooks/useV1MigrationStateProjDbInstanceQuery';
59
69
  export { useV1MigrationStateProjDbInstanceQuery, v1MigrationStateProjDbInstance, } from './hooks/useV1MigrationStateProjDbInstanceQuery';
60
70
  export type { V1MigrationStateProjDbSchemaErrorResponse, V1MigrationStateProjDbSchemaMutationPathParams, V1MigrationStateProjDbSchemaMutationQueryParams, V1MigrationStateProjDbSchemaOkResponse, V1MigrationStateProjDbSchemaProps, V1MigrationStateProjDbSchemaRequestBody, } from './hooks/useV1MigrationStateProjDbSchemaMutation';
@@ -71,6 +81,7 @@ export type { V2ListProjDbInstancesErrorResponse, V2ListProjDbInstancesMutationP
71
81
  export { useV2ListProjDbInstancesMutation, v2ListProjDbInstances, } from './hooks/useV2ListProjDbInstancesMutation';
72
82
  export type { V2ListProjDbSchemaErrorResponse, V2ListProjDbSchemaMutationPathParams, V2ListProjDbSchemaMutationQueryParams, V2ListProjDbSchemaOkResponse, V2ListProjDbSchemaProps, V2ListProjDbSchemaRequestBody, } from './hooks/useV2ListProjDbSchemaMutation';
73
83
  export { useV2ListProjDbSchemaMutation, v2ListProjDbSchema, } from './hooks/useV2ListProjDbSchemaMutation';
84
+ export type { ConsumeFlywayPluginOutputRespRequestRequestBody } from './requestBodies/ConsumeFlywayPluginOutputRespRequestRequestBody';
74
85
  export type { ConsumePluginOutputRespRequestRequestBody } from './requestBodies/ConsumePluginOutputRespRequestRequestBody';
75
86
  export type { ConsumePluginRespRequestRequestBody } from './requestBodies/ConsumePluginRespRequestRequestBody';
76
87
  export type { CustomOperationRequestRequestBody } from './requestBodies/CustomOperationRequestRequestBody';
@@ -85,6 +96,7 @@ export type { DbSnapshotMetadataCreateRequestRequestBody } from './requestBodies
85
96
  export type { ExecutionConfigUpdateRequestRequestBody } from './requestBodies/ExecutionConfigUpdateRequestRequestBody';
86
97
  export type { FailureInterruptRequestRequestBody } from './requestBodies/FailureInterruptRequestRequestBody';
87
98
  export type { FetchSqlStatementRequestRequestBody } from './requestBodies/FetchSqlStatementRequestRequestBody';
99
+ export type { FlywayPluginInputsRequestRequestBody } from './requestBodies/FlywayPluginInputsRequestRequestBody';
88
100
  export type { LogIngestRequestRequestBody } from './requestBodies/LogIngestRequestRequestBody';
89
101
  export type { MigrationStateGetRequestRequestBody } from './requestBodies/MigrationStateGetRequestRequestBody';
90
102
  export type { PluginStepInputsRequestRequestBody } from './requestBodies/PluginStepInputsRequestRequestBody';
@@ -100,6 +112,9 @@ export type { ErrorResponseResponse } from './responses/ErrorResponseResponse';
100
112
  export type { ExecutionConfigSuccessResponseResponse } from './responses/ExecutionConfigSuccessResponseResponse';
101
113
  export type { ExecutionConfigTagsResponseResponse } from './responses/ExecutionConfigTagsResponseResponse';
102
114
  export type { FetchSqlStatementResponseResponse } from './responses/FetchSqlStatementResponseResponse';
115
+ export type { FlywayInstanceMigrationStateResponseResponse } from './responses/FlywayInstanceMigrationStateResponseResponse';
116
+ export type { FlywayMigrationStateResponseResponse } from './responses/FlywayMigrationStateResponseResponse';
117
+ export type { FlywayPluginInputsResponseResponse } from './responses/FlywayPluginInputsResponseResponse';
103
118
  export type { InstanceMigrationStateResponseResponse } from './responses/InstanceMigrationStateResponseResponse';
104
119
  export type { MigrationStateResponseResponse } from './responses/MigrationStateResponseResponse';
105
120
  export type { OverviewResponseResponse } from './responses/OverviewResponseResponse';
@@ -135,6 +150,11 @@ export type { Error } from './schemas/Error';
135
150
  export type { ExecutionConfigOperation } from './schemas/ExecutionConfigOperation';
136
151
  export type { ExecutionConfigTags } from './schemas/ExecutionConfigTags';
137
152
  export type { ExecutionMetadata } from './schemas/ExecutionMetadata';
153
+ export type { FlywayAppliedMigration } from './schemas/FlywayAppliedMigration';
154
+ export type { FlywayCommand } from './schemas/FlywayCommand';
155
+ export type { FlywayInstanceMigrationState } from './schemas/FlywayInstanceMigrationState';
156
+ export type { FlywayInstanceMigrationStateOutput } from './schemas/FlywayInstanceMigrationStateOutput';
157
+ export type { FlywayMigrationStateOutput } from './schemas/FlywayMigrationStateOutput';
138
158
  export type { InstanceDetail } from './schemas/InstanceDetail';
139
159
  export type { InstanceMigrationStateChangeSet } from './schemas/InstanceMigrationStateChangeSet';
140
160
  export type { InstanceMigrationStateOut } from './schemas/InstanceMigrationStateOut';
@@ -1,10 +1,13 @@
1
1
  export { consumeFailureInterrupt, useConsumeFailureInterruptMutation, } from './hooks/useConsumeFailureInterruptMutation';
2
+ export { consumeV1FlywayStepPluginOutputResponse, useConsumeV1FlywayStepPluginOutputResponseMutation, } from './hooks/useConsumeV1FlywayStepPluginOutputResponseMutation';
2
3
  export { consumeV1StepPluginOutputResponse, useConsumeV1StepPluginOutputResponseMutation, } from './hooks/useConsumeV1StepPluginOutputResponseMutation';
3
4
  export { consumeV1StepPluginResponse, useConsumeV1StepPluginResponseMutation, } from './hooks/useConsumeV1StepPluginResponseMutation';
5
+ export { createV1FlywayPluginInputs, useCreateV1FlywayPluginInputsMutation, } from './hooks/useCreateV1FlywayPluginInputsMutation';
4
6
  export { createV1StepPluginInputs, useCreateV1StepPluginInputsMutation, } from './hooks/useCreateV1StepPluginInputsMutation';
5
7
  export { getV1CustomOperations, useGetV1CustomOperationsMutation, } from './hooks/useGetV1CustomOperationsMutation';
6
8
  export { getV1SchemaInstanceMetadata, useGetV1SchemaInstanceMetadataMutation, } from './hooks/useGetV1SchemaInstanceMetadataMutation';
7
9
  export { postV1DbopsDbSnapshotMetadata, usePostV1DbopsDbSnapshotMetadataMutation, } from './hooks/usePostV1DbopsDbSnapshotMetadataMutation';
10
+ export { postV1DbopsMetadataSnapshot, usePostV1DbopsMetadataSnapshotMutation, } from './hooks/usePostV1DbopsMetadataSnapshotMutation';
8
11
  export { useV1ChangesetYamlProjDbInstanceQuery, v1ChangesetYamlProjDbInstance, } from './hooks/useV1ChangesetYamlProjDbInstanceQuery';
9
12
  export { useV1ChangesetmetadataProjDbInstanceQuery, v1ChangesetmetadataProjDbInstance, } from './hooks/useV1ChangesetmetadataProjDbInstanceQuery';
10
13
  export { useV1CreateProjDbSchemaInstanceMutation, v1CreateProjDbSchemaInstance, } from './hooks/useV1CreateProjDbSchemaInstanceMutation';
@@ -26,6 +29,8 @@ export { useV1IngestLogsMutation, v1IngestLogs } from './hooks/useV1IngestLogsMu
26
29
  export { useV1ListDatabaseSchemaQuery, v1ListDatabaseSchema, } from './hooks/useV1ListDatabaseSchemaQuery';
27
30
  export { useV1ListProjDbSchemaInstanceMutation, v1ListProjDbSchemaInstance, } from './hooks/useV1ListProjDbSchemaInstanceMutation';
28
31
  export { useV1ListProjDbSchemaQuery, v1ListProjDbSchema } from './hooks/useV1ListProjDbSchemaQuery';
32
+ export { useV1MigrationStateFlywayInstanceQuery, v1MigrationStateFlywayInstance, } from './hooks/useV1MigrationStateFlywayInstanceQuery';
33
+ export { useV1MigrationStateFlywaySchemaMutation, v1MigrationStateFlywaySchema, } from './hooks/useV1MigrationStateFlywaySchemaMutation';
29
34
  export { useV1MigrationStateProjDbInstanceQuery, v1MigrationStateProjDbInstance, } from './hooks/useV1MigrationStateProjDbInstanceQuery';
30
35
  export { useV1MigrationStateProjDbSchemaMutation, v1MigrationStateProjDbSchema, } from './hooks/useV1MigrationStateProjDbSchemaMutation';
31
36
  export { useV1ResetExecutionConfigMutation, v1ResetExecutionConfig, } from './hooks/useV1ResetExecutionConfigMutation';
@@ -0,0 +1,19 @@
1
+ import type { FlywayCommand } from '../schemas/FlywayCommand';
2
+ export interface ConsumeFlywayPluginOutputRespRequestRequestBody {
3
+ command?: string;
4
+ harnessCommand: FlywayCommand;
5
+ instanceIdentifier: string;
6
+ /**
7
+ * if sync is paginated, whether this is the last chunk
8
+ */
9
+ lastChunk: boolean;
10
+ parentId: string;
11
+ pipelineExecutionId: string;
12
+ pipelineIdentifier: string;
13
+ schemaIdentifier: string;
14
+ stageExecutionId: string;
15
+ /**
16
+ * base-64 encoded compressed step response from plugin extension based on command
17
+ */
18
+ stepResponse: string;
19
+ }
@@ -3,6 +3,14 @@ export interface ConsumePluginOutputRespRequestRequestBody {
3
3
  command?: string;
4
4
  harnessCommand: Command;
5
5
  instanceIdentifier: string;
6
+ /**
7
+ * Indicates if this is the first page of paginated results
8
+ */
9
+ isFirstPage?: boolean;
10
+ /**
11
+ * Indicates if this is the last page of paginated results
12
+ */
13
+ isLastPage?: boolean;
6
14
  orgId: string;
7
15
  pipelineExecutionId: string;
8
16
  pipelineIdentifier: string;
@@ -0,0 +1,37 @@
1
+ import type { FlywayCommand } from '../schemas/FlywayCommand';
2
+ import type { PipelineExecutionMetadata } from '../schemas/PipelineExecutionMetadata';
3
+ export interface FlywayPluginInputsRequestRequestBody {
4
+ command: FlywayCommand;
5
+ /**
6
+ * when pluginCommand type is Custom, customCommand is considered which is any string provided by the user
7
+ */
8
+ customCommand?: string;
9
+ /**
10
+ * db instance identifier
11
+ * @example "myschema/prod-1-instance"
12
+ */
13
+ dbInstance: string;
14
+ /**
15
+ * dbSchema reference
16
+ */
17
+ dbSchema: string;
18
+ /**
19
+ * Controls whether to include JWT authentication token in the plugin settings. If true, a bearer token will be included.
20
+ */
21
+ includeJwtAuth?: boolean;
22
+ /**
23
+ * parent unique id for the scope
24
+ */
25
+ parentId: string;
26
+ pipelineExecutionMetadata: PipelineExecutionMetadata;
27
+ /**
28
+ * Key value mapping of user input plugin settings
29
+ */
30
+ settings?: {
31
+ [key: string]: string;
32
+ };
33
+ /**
34
+ * The base directory Flyway uses to resolve relative paths for migrations
35
+ */
36
+ workingDirectory?: string;
37
+ }
@@ -0,0 +1,2 @@
1
+ import type { FlywayInstanceMigrationStateOutput } from '../schemas/FlywayInstanceMigrationStateOutput';
2
+ export type FlywayInstanceMigrationStateResponseResponse = FlywayInstanceMigrationStateOutput;
@@ -0,0 +1,2 @@
1
+ import type { FlywayMigrationStateOutput } from '../schemas/FlywayMigrationStateOutput';
2
+ export type FlywayMigrationStateResponseResponse = FlywayMigrationStateOutput;
@@ -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
+ }
@@ -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' | 'Snapshot' | 'Status' | 'Tag' | 'Update' | 'UpdateSQL' | 'Validate';
4
+ export type Command = 'Clone' | 'Custom' | 'DBOPSRollbackCountSQL' | 'DBOPSRollbackSQL' | 'DBOPSSnapshot' | 'DBOPSUpdateSQL' | 'History' | 'MarkNextChangesetRan' | 'ParentWrapper' | 'Rollback' | 'RollbackCount' | 'RollbackCountSQL' | 'RollbackSQL' | 'Status' | 'Tag' | 'Update' | 'UpdateSQL' | 'Validate';
@@ -1,8 +1,4 @@
1
- import type { Command } from '../schemas/Command';
2
1
  export interface DbSnapshotMetadataIn {
3
- command: string;
4
- harnessCommand: Command;
5
- instanceIdentifier: string;
6
2
  /**
7
3
  * Name for the object, example - Customers for table objectType
8
4
  */
@@ -15,11 +11,5 @@ export interface DbSnapshotMetadataIn {
15
11
  * json value of the object
16
12
  */
17
13
  objectValue: string;
18
- parentId: string;
19
- pipelineExecutionId: string;
20
- pipelineIdentifier: string;
21
- schemaIdentifier: string;
22
- snapshotId: string;
23
- snapshotObjectId?: string;
24
- stageExecutionId: string;
14
+ snapshotObjectId: string;
25
15
  }
@@ -1 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
1
4
  export {};
@@ -0,0 +1,24 @@
1
+ import type { MigrationStateInstance } from '../schemas/MigrationStateInstance';
2
+ /**
3
+ * Flyway Migration Applied across instances
4
+ */
5
+ export interface FlywayAppliedMigration {
6
+ /**
7
+ * epoch seconds when the migration was applied
8
+ * @format int64
9
+ */
10
+ deployedAt: number;
11
+ /**
12
+ * Description from the migration script
13
+ */
14
+ description?: string;
15
+ instances: MigrationStateInstance[];
16
+ /**
17
+ * type of migration, whether baseline or actual script migration
18
+ */
19
+ type: string;
20
+ /**
21
+ * version of flyway migration script
22
+ */
23
+ version: string;
24
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Type of the plugin command to run
3
+ */
4
+ export type FlywayCommand = 'Clone' | 'Custom' | 'Info' | 'Migrate' | 'MigrateSQL' | 'ParentWrapper' | 'Repair' | 'Undo' | 'UndoSQL';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,36 @@
1
+ import type { ChangeSetDeploymentStatus } from '../schemas/ChangeSetDeploymentStatus';
2
+ /**
3
+ * Flyway Migration info across instances
4
+ */
5
+ export interface FlywayInstanceMigrationState {
6
+ /**
7
+ * epoch seconds when the migration was applied
8
+ * @format int64
9
+ */
10
+ deployedAt: number;
11
+ /**
12
+ * description from the migration script
13
+ */
14
+ description?: string;
15
+ /**
16
+ * pipeline execution Id of the pipeline execution
17
+ */
18
+ pipelineExecutionId: string;
19
+ /**
20
+ * Pipeline Identifier of the pipeline
21
+ */
22
+ pipelineIdentifier: string;
23
+ /**
24
+ * stage execution id of the pipeline execution
25
+ */
26
+ stageExecutionId: string;
27
+ status: ChangeSetDeploymentStatus;
28
+ /**
29
+ * type of migration, whether baseline or actual script migration
30
+ */
31
+ type: string;
32
+ /**
33
+ * version of flyway migration script
34
+ */
35
+ version: string;
36
+ }
@@ -0,0 +1,15 @@
1
+ import type { FlywayInstanceMigrationState } from '../schemas/FlywayInstanceMigrationState';
2
+ /**
3
+ * Flyway Migration info across schema and instance
4
+ */
5
+ export interface FlywayInstanceMigrationStateOutput {
6
+ /**
7
+ * Name of the Instance
8
+ */
9
+ instanceName: string;
10
+ migrations?: FlywayInstanceMigrationState[];
11
+ /**
12
+ * Name of the Schema
13
+ */
14
+ schemaName: string;
15
+ }
@@ -0,0 +1,13 @@
1
+ import type { InstanceDetail } from '../schemas/InstanceDetail';
2
+ import type { FlywayAppliedMigration } from '../schemas/FlywayAppliedMigration';
3
+ /**
4
+ * Flyway Migration Applied for a schema information
5
+ */
6
+ export interface FlywayMigrationStateOutput {
7
+ instances?: InstanceDetail[];
8
+ migrations?: FlywayAppliedMigration[];
9
+ /**
10
+ * Identifier of the Schema
11
+ */
12
+ schema: string;
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-dbops-service-client",
3
- "version": "0.28.0",
3
+ "version": "0.30.0",
4
4
  "description": "Harness React DB Devops service client - DB Devops APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",