@harnessio/react-dbops-service-client 0.29.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 (27) 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/useV1MigrationStateFlywayInstanceQuery.d.ts +36 -0
  4. package/dist/dbops-service/src/services/hooks/useV1MigrationStateFlywayInstanceQuery.js +21 -0
  5. package/dist/dbops-service/src/services/hooks/useV1MigrationStateFlywaySchemaMutation.d.ts +38 -0
  6. package/dist/dbops-service/src/services/hooks/useV1MigrationStateFlywaySchemaMutation.js +14 -0
  7. package/dist/dbops-service/src/services/index.d.ts +13 -0
  8. package/dist/dbops-service/src/services/index.js +3 -0
  9. package/dist/dbops-service/src/services/requestBodies/ConsumeFlywayPluginOutputRespRequestRequestBody.d.ts +19 -0
  10. package/dist/dbops-service/src/services/requestBodies/ConsumeFlywayPluginOutputRespRequestRequestBody.js +1 -0
  11. package/dist/dbops-service/src/services/requestBodies/ConsumePluginOutputRespRequestRequestBody.d.ts +8 -0
  12. package/dist/dbops-service/src/services/requestBodies/FlywayPluginInputsRequestRequestBody.d.ts +2 -0
  13. package/dist/dbops-service/src/services/responses/FlywayInstanceMigrationStateResponseResponse.d.ts +2 -0
  14. package/dist/dbops-service/src/services/responses/FlywayInstanceMigrationStateResponseResponse.js +1 -0
  15. package/dist/dbops-service/src/services/responses/FlywayMigrationStateResponseResponse.d.ts +2 -0
  16. package/dist/dbops-service/src/services/responses/FlywayMigrationStateResponseResponse.js +1 -0
  17. package/dist/dbops-service/src/services/schemas/Command.d.ts +1 -1
  18. package/dist/dbops-service/src/services/schemas/DbSnapshotMetadataIn.d.ts +1 -1
  19. package/dist/dbops-service/src/services/schemas/FlywayAppliedMigration.d.ts +24 -0
  20. package/dist/dbops-service/src/services/schemas/FlywayAppliedMigration.js +1 -0
  21. package/dist/dbops-service/src/services/schemas/FlywayInstanceMigrationState.d.ts +36 -0
  22. package/dist/dbops-service/src/services/schemas/FlywayInstanceMigrationState.js +1 -0
  23. package/dist/dbops-service/src/services/schemas/FlywayInstanceMigrationStateOutput.d.ts +15 -0
  24. package/dist/dbops-service/src/services/schemas/FlywayInstanceMigrationStateOutput.js +1 -0
  25. package/dist/dbops-service/src/services/schemas/FlywayMigrationStateOutput.d.ts +13 -0
  26. package/dist/dbops-service/src/services/schemas/FlywayMigrationStateOutput.js +1 -0
  27. 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,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,6 +1,8 @@
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';
@@ -59,6 +61,10 @@ export type { V1ListProjDbSchemaInstanceErrorResponse, V1ListProjDbSchemaInstanc
59
61
  export { useV1ListProjDbSchemaInstanceMutation, v1ListProjDbSchemaInstance, } from './hooks/useV1ListProjDbSchemaInstanceMutation';
60
62
  export type { V1ListProjDbSchemaErrorResponse, V1ListProjDbSchemaOkResponse, V1ListProjDbSchemaProps, V1ListProjDbSchemaQueryPathParams, V1ListProjDbSchemaQueryQueryParams, } from './hooks/useV1ListProjDbSchemaQuery';
61
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';
62
68
  export type { V1MigrationStateProjDbInstanceErrorResponse, V1MigrationStateProjDbInstanceOkResponse, V1MigrationStateProjDbInstanceProps, V1MigrationStateProjDbInstanceQueryPathParams, V1MigrationStateProjDbInstanceQueryQueryParams, } from './hooks/useV1MigrationStateProjDbInstanceQuery';
63
69
  export { useV1MigrationStateProjDbInstanceQuery, v1MigrationStateProjDbInstance, } from './hooks/useV1MigrationStateProjDbInstanceQuery';
64
70
  export type { V1MigrationStateProjDbSchemaErrorResponse, V1MigrationStateProjDbSchemaMutationPathParams, V1MigrationStateProjDbSchemaMutationQueryParams, V1MigrationStateProjDbSchemaOkResponse, V1MigrationStateProjDbSchemaProps, V1MigrationStateProjDbSchemaRequestBody, } from './hooks/useV1MigrationStateProjDbSchemaMutation';
@@ -75,6 +81,7 @@ export type { V2ListProjDbInstancesErrorResponse, V2ListProjDbInstancesMutationP
75
81
  export { useV2ListProjDbInstancesMutation, v2ListProjDbInstances, } from './hooks/useV2ListProjDbInstancesMutation';
76
82
  export type { V2ListProjDbSchemaErrorResponse, V2ListProjDbSchemaMutationPathParams, V2ListProjDbSchemaMutationQueryParams, V2ListProjDbSchemaOkResponse, V2ListProjDbSchemaProps, V2ListProjDbSchemaRequestBody, } from './hooks/useV2ListProjDbSchemaMutation';
77
83
  export { useV2ListProjDbSchemaMutation, v2ListProjDbSchema, } from './hooks/useV2ListProjDbSchemaMutation';
84
+ export type { ConsumeFlywayPluginOutputRespRequestRequestBody } from './requestBodies/ConsumeFlywayPluginOutputRespRequestRequestBody';
78
85
  export type { ConsumePluginOutputRespRequestRequestBody } from './requestBodies/ConsumePluginOutputRespRequestRequestBody';
79
86
  export type { ConsumePluginRespRequestRequestBody } from './requestBodies/ConsumePluginRespRequestRequestBody';
80
87
  export type { CustomOperationRequestRequestBody } from './requestBodies/CustomOperationRequestRequestBody';
@@ -105,6 +112,8 @@ export type { ErrorResponseResponse } from './responses/ErrorResponseResponse';
105
112
  export type { ExecutionConfigSuccessResponseResponse } from './responses/ExecutionConfigSuccessResponseResponse';
106
113
  export type { ExecutionConfigTagsResponseResponse } from './responses/ExecutionConfigTagsResponseResponse';
107
114
  export type { FetchSqlStatementResponseResponse } from './responses/FetchSqlStatementResponseResponse';
115
+ export type { FlywayInstanceMigrationStateResponseResponse } from './responses/FlywayInstanceMigrationStateResponseResponse';
116
+ export type { FlywayMigrationStateResponseResponse } from './responses/FlywayMigrationStateResponseResponse';
108
117
  export type { FlywayPluginInputsResponseResponse } from './responses/FlywayPluginInputsResponseResponse';
109
118
  export type { InstanceMigrationStateResponseResponse } from './responses/InstanceMigrationStateResponseResponse';
110
119
  export type { MigrationStateResponseResponse } from './responses/MigrationStateResponseResponse';
@@ -141,7 +150,11 @@ export type { Error } from './schemas/Error';
141
150
  export type { ExecutionConfigOperation } from './schemas/ExecutionConfigOperation';
142
151
  export type { ExecutionConfigTags } from './schemas/ExecutionConfigTags';
143
152
  export type { ExecutionMetadata } from './schemas/ExecutionMetadata';
153
+ export type { FlywayAppliedMigration } from './schemas/FlywayAppliedMigration';
144
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';
145
158
  export type { InstanceDetail } from './schemas/InstanceDetail';
146
159
  export type { InstanceMigrationStateChangeSet } from './schemas/InstanceMigrationStateChangeSet';
147
160
  export type { InstanceMigrationStateOut } from './schemas/InstanceMigrationStateOut';
@@ -1,4 +1,5 @@
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';
4
5
  export { createV1FlywayPluginInputs, useCreateV1FlywayPluginInputsMutation, } from './hooks/useCreateV1FlywayPluginInputsMutation';
@@ -28,6 +29,8 @@ export { useV1IngestLogsMutation, v1IngestLogs } from './hooks/useV1IngestLogsMu
28
29
  export { useV1ListDatabaseSchemaQuery, v1ListDatabaseSchema, } from './hooks/useV1ListDatabaseSchemaQuery';
29
30
  export { useV1ListProjDbSchemaInstanceMutation, v1ListProjDbSchemaInstance, } from './hooks/useV1ListProjDbSchemaInstanceMutation';
30
31
  export { useV1ListProjDbSchemaQuery, v1ListProjDbSchema } from './hooks/useV1ListProjDbSchemaQuery';
32
+ export { useV1MigrationStateFlywayInstanceQuery, v1MigrationStateFlywayInstance, } from './hooks/useV1MigrationStateFlywayInstanceQuery';
33
+ export { useV1MigrationStateFlywaySchemaMutation, v1MigrationStateFlywaySchema, } from './hooks/useV1MigrationStateFlywaySchemaMutation';
31
34
  export { useV1MigrationStateProjDbInstanceQuery, v1MigrationStateProjDbInstance, } from './hooks/useV1MigrationStateProjDbInstanceQuery';
32
35
  export { useV1MigrationStateProjDbSchemaMutation, v1MigrationStateProjDbSchema, } from './hooks/useV1MigrationStateProjDbSchemaMutation';
33
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;
@@ -1,4 +1,5 @@
1
1
  import type { FlywayCommand } from '../schemas/FlywayCommand';
2
+ import type { PipelineExecutionMetadata } from '../schemas/PipelineExecutionMetadata';
2
3
  export interface FlywayPluginInputsRequestRequestBody {
3
4
  command: FlywayCommand;
4
5
  /**
@@ -22,6 +23,7 @@ export interface FlywayPluginInputsRequestRequestBody {
22
23
  * parent unique id for the scope
23
24
  */
24
25
  parentId: string;
26
+ pipelineExecutionMetadata: PipelineExecutionMetadata;
25
27
  /**
26
28
  * Key value mapping of user input plugin settings
27
29
  */
@@ -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;
@@ -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';
@@ -11,5 +11,5 @@ export interface DbSnapshotMetadataIn {
11
11
  * json value of the object
12
12
  */
13
13
  objectValue: string;
14
- snapshotObjectId?: string;
14
+ snapshotObjectId: string;
15
15
  }
@@ -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,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.29.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",