@harnessio/react-dbops-service-client 0.30.0 → 0.31.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/useConsumeFlywayFailureInterruptMutation.d.ts +19 -0
- package/dist/dbops-service/src/services/hooks/useConsumeFlywayFailureInterruptMutation.js +14 -0
- package/dist/dbops-service/src/services/hooks/useV1FetchMigrationScriptSqlQuery.d.ts +36 -0
- package/dist/dbops-service/src/services/hooks/useV1FetchMigrationScriptSqlQuery.js +21 -0
- package/dist/dbops-service/src/services/index.d.ts +5 -0
- package/dist/dbops-service/src/services/index.js +2 -0
- package/dist/dbops-service/src/services/requestBodies/FlywayFailureInterruptRequestRequestBody.d.ts +10 -0
- package/dist/dbops-service/src/services/requestBodies/FlywayFailureInterruptRequestRequestBody.js +1 -0
- 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 { FlywayFailureInterruptRequestRequestBody } from '../requestBodies/FlywayFailureInterruptRequestRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ConsumeFlywayFailureInterruptMutationHeaderParams {
|
|
7
|
+
'Harness-Account'?: string;
|
|
8
|
+
}
|
|
9
|
+
export type ConsumeFlywayFailureInterruptRequestBody = FlywayFailureInterruptRequestRequestBody;
|
|
10
|
+
export type ConsumeFlywayFailureInterruptOkResponse = ResponseWithPagination<unknown>;
|
|
11
|
+
export type ConsumeFlywayFailureInterruptErrorResponse = ErrorResponseResponse;
|
|
12
|
+
export interface ConsumeFlywayFailureInterruptProps extends Omit<FetcherOptions<unknown, ConsumeFlywayFailureInterruptRequestBody, ConsumeFlywayFailureInterruptMutationHeaderParams>, 'url'> {
|
|
13
|
+
body: ConsumeFlywayFailureInterruptRequestBody;
|
|
14
|
+
}
|
|
15
|
+
export declare function consumeFlywayFailureInterrupt(props: ConsumeFlywayFailureInterruptProps): Promise<ConsumeFlywayFailureInterruptOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Consume Flyway Failure interrupt
|
|
18
|
+
*/
|
|
19
|
+
export declare function useConsumeFlywayFailureInterruptMutation(options?: Omit<UseMutationOptions<ConsumeFlywayFailureInterruptOkResponse, ConsumeFlywayFailureInterruptErrorResponse, ConsumeFlywayFailureInterruptProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ConsumeFlywayFailureInterruptOkResponse, import("..").Error, ConsumeFlywayFailureInterruptProps, 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 consumeFlywayFailureInterrupt(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/dbops/flyway/failure-interrupt`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Consume Flyway Failure interrupt
|
|
11
|
+
*/
|
|
12
|
+
export function useConsumeFlywayFailureInterruptMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => consumeFlywayFailureInterrupt(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FetchSqlStatementResponseResponse } from '../responses/FetchSqlStatementResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface V1FetchMigrationScriptSqlQueryPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
dbschema: string;
|
|
10
|
+
dbinstance: string;
|
|
11
|
+
}
|
|
12
|
+
export interface V1FetchMigrationScriptSqlQueryQueryParams {
|
|
13
|
+
flywayVersion: string;
|
|
14
|
+
/**
|
|
15
|
+
* @format int64
|
|
16
|
+
* @default 0
|
|
17
|
+
*/
|
|
18
|
+
page?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @default 10
|
|
21
|
+
*/
|
|
22
|
+
limit?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface V1FetchMigrationScriptSqlQueryHeaderParams {
|
|
25
|
+
'Harness-Account'?: string;
|
|
26
|
+
}
|
|
27
|
+
export type V1FetchMigrationScriptSqlOkResponse = ResponseWithPagination<FetchSqlStatementResponseResponse>;
|
|
28
|
+
export type V1FetchMigrationScriptSqlErrorResponse = ErrorResponseResponse;
|
|
29
|
+
export interface V1FetchMigrationScriptSqlProps extends V1FetchMigrationScriptSqlQueryPathParams, Omit<FetcherOptions<V1FetchMigrationScriptSqlQueryQueryParams, unknown, V1FetchMigrationScriptSqlQueryHeaderParams>, 'url'> {
|
|
30
|
+
queryParams: V1FetchMigrationScriptSqlQueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export declare function v1FetchMigrationScriptSql(props: V1FetchMigrationScriptSqlProps): Promise<V1FetchMigrationScriptSqlOkResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Fetch flyway migration script SQL
|
|
35
|
+
*/
|
|
36
|
+
export declare function useV1FetchMigrationScriptSqlQuery(props: V1FetchMigrationScriptSqlProps, options?: Omit<UseQueryOptions<V1FetchMigrationScriptSqlOkResponse, V1FetchMigrationScriptSqlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<V1FetchMigrationScriptSqlOkResponse, 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 v1FetchMigrationScriptSql(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/dbschema/${props.dbschema}/dbinstance/${props.dbinstance}/migration/scripts`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Fetch flyway migration script SQL
|
|
11
|
+
*/
|
|
12
|
+
export function useV1FetchMigrationScriptSqlQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'v1-fetch-migration-script-sql',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props.dbschema,
|
|
18
|
+
props.dbinstance,
|
|
19
|
+
props.queryParams,
|
|
20
|
+
], ({ signal }) => v1FetchMigrationScriptSql(Object.assign(Object.assign({}, props), { signal })), options);
|
|
21
|
+
}
|
|
@@ -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 { ConsumeFlywayFailureInterruptErrorResponse, ConsumeFlywayFailureInterruptOkResponse, ConsumeFlywayFailureInterruptProps, ConsumeFlywayFailureInterruptRequestBody, } from './hooks/useConsumeFlywayFailureInterruptMutation';
|
|
5
|
+
export { consumeFlywayFailureInterrupt, useConsumeFlywayFailureInterruptMutation, } from './hooks/useConsumeFlywayFailureInterruptMutation';
|
|
4
6
|
export type { ConsumeV1FlywayStepPluginOutputResponseErrorResponse, ConsumeV1FlywayStepPluginOutputResponseOkResponse, ConsumeV1FlywayStepPluginOutputResponseProps, ConsumeV1FlywayStepPluginOutputResponseRequestBody, } from './hooks/useConsumeV1FlywayStepPluginOutputResponseMutation';
|
|
5
7
|
export { consumeV1FlywayStepPluginOutputResponse, useConsumeV1FlywayStepPluginOutputResponseMutation, } from './hooks/useConsumeV1FlywayStepPluginOutputResponseMutation';
|
|
6
8
|
export type { ConsumeV1StepPluginOutputResponseErrorResponse, ConsumeV1StepPluginOutputResponseOkResponse, ConsumeV1StepPluginOutputResponseProps, ConsumeV1StepPluginOutputResponseRequestBody, } from './hooks/useConsumeV1StepPluginOutputResponseMutation';
|
|
@@ -37,6 +39,8 @@ export type { V1DeleteProjDbSchemaErrorResponse, V1DeleteProjDbSchemaMutationPat
|
|
|
37
39
|
export { useV1DeleteProjDbSchemaMutation, v1DeleteProjDbSchema, } from './hooks/useV1DeleteProjDbSchemaMutation';
|
|
38
40
|
export type { V1FetchDeployedChangesetSqlErrorResponse, V1FetchDeployedChangesetSqlMutationPathParams, V1FetchDeployedChangesetSqlMutationQueryParams, V1FetchDeployedChangesetSqlOkResponse, V1FetchDeployedChangesetSqlProps, V1FetchDeployedChangesetSqlRequestBody, } from './hooks/useV1FetchDeployedChangesetSqlMutation';
|
|
39
41
|
export { useV1FetchDeployedChangesetSqlMutation, v1FetchDeployedChangesetSql, } from './hooks/useV1FetchDeployedChangesetSqlMutation';
|
|
42
|
+
export type { V1FetchMigrationScriptSqlErrorResponse, V1FetchMigrationScriptSqlOkResponse, V1FetchMigrationScriptSqlProps, V1FetchMigrationScriptSqlQueryPathParams, V1FetchMigrationScriptSqlQueryQueryParams, } from './hooks/useV1FetchMigrationScriptSqlQuery';
|
|
43
|
+
export { useV1FetchMigrationScriptSqlQuery, v1FetchMigrationScriptSql, } from './hooks/useV1FetchMigrationScriptSqlQuery';
|
|
40
44
|
export type { V1GetCustomerConfigErrorResponse, V1GetCustomerConfigOkResponse, V1GetCustomerConfigProps, V1GetCustomerConfigQueryQueryParams, } from './hooks/useV1GetCustomerConfigQuery';
|
|
41
45
|
export { useV1GetCustomerConfigQuery, v1GetCustomerConfig, } from './hooks/useV1GetCustomerConfigQuery';
|
|
42
46
|
export type { V1GetDbOverviewErrorResponse, V1GetDbOverviewOkResponse, V1GetDbOverviewProps, V1GetDbOverviewQueryPathParams, } from './hooks/useV1GetDbOverviewQuery';
|
|
@@ -96,6 +100,7 @@ export type { DbSnapshotMetadataCreateRequestRequestBody } from './requestBodies
|
|
|
96
100
|
export type { ExecutionConfigUpdateRequestRequestBody } from './requestBodies/ExecutionConfigUpdateRequestRequestBody';
|
|
97
101
|
export type { FailureInterruptRequestRequestBody } from './requestBodies/FailureInterruptRequestRequestBody';
|
|
98
102
|
export type { FetchSqlStatementRequestRequestBody } from './requestBodies/FetchSqlStatementRequestRequestBody';
|
|
103
|
+
export type { FlywayFailureInterruptRequestRequestBody } from './requestBodies/FlywayFailureInterruptRequestRequestBody';
|
|
99
104
|
export type { FlywayPluginInputsRequestRequestBody } from './requestBodies/FlywayPluginInputsRequestRequestBody';
|
|
100
105
|
export type { LogIngestRequestRequestBody } from './requestBodies/LogIngestRequestRequestBody';
|
|
101
106
|
export type { MigrationStateGetRequestRequestBody } from './requestBodies/MigrationStateGetRequestRequestBody';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { consumeFailureInterrupt, useConsumeFailureInterruptMutation, } from './hooks/useConsumeFailureInterruptMutation';
|
|
2
|
+
export { consumeFlywayFailureInterrupt, useConsumeFlywayFailureInterruptMutation, } from './hooks/useConsumeFlywayFailureInterruptMutation';
|
|
2
3
|
export { consumeV1FlywayStepPluginOutputResponse, useConsumeV1FlywayStepPluginOutputResponseMutation, } from './hooks/useConsumeV1FlywayStepPluginOutputResponseMutation';
|
|
3
4
|
export { consumeV1StepPluginOutputResponse, useConsumeV1StepPluginOutputResponseMutation, } from './hooks/useConsumeV1StepPluginOutputResponseMutation';
|
|
4
5
|
export { consumeV1StepPluginResponse, useConsumeV1StepPluginResponseMutation, } from './hooks/useConsumeV1StepPluginResponseMutation';
|
|
@@ -17,6 +18,7 @@ export { useV1DeleteExecutionConfigMutation, v1DeleteExecutionConfig, } from './
|
|
|
17
18
|
export { useV1DeleteProjDbSchemaInstanceMutation, v1DeleteProjDbSchemaInstance, } from './hooks/useV1DeleteProjDbSchemaInstanceMutation';
|
|
18
19
|
export { useV1DeleteProjDbSchemaMutation, v1DeleteProjDbSchema, } from './hooks/useV1DeleteProjDbSchemaMutation';
|
|
19
20
|
export { useV1FetchDeployedChangesetSqlMutation, v1FetchDeployedChangesetSql, } from './hooks/useV1FetchDeployedChangesetSqlMutation';
|
|
21
|
+
export { useV1FetchMigrationScriptSqlQuery, v1FetchMigrationScriptSql, } from './hooks/useV1FetchMigrationScriptSqlQuery';
|
|
20
22
|
export { useV1GetCustomerConfigQuery, v1GetCustomerConfig, } from './hooks/useV1GetCustomerConfigQuery';
|
|
21
23
|
export { useV1GetDbOverviewQuery, v1GetDbOverview } from './hooks/useV1GetDbOverviewQuery';
|
|
22
24
|
export { useV1GetDbinstanceLogQuery, v1GetDbinstanceLog } from './hooks/useV1GetDbinstanceLogQuery';
|
package/dist/dbops-service/src/services/requestBodies/FlywayFailureInterruptRequestRequestBody.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FlywayCommand } from '../schemas/FlywayCommand';
|
|
2
|
+
export interface FlywayFailureInterruptRequestRequestBody {
|
|
3
|
+
harnessCommand: FlywayCommand;
|
|
4
|
+
instanceIdentifier: string;
|
|
5
|
+
interruptType: string;
|
|
6
|
+
parentId: string;
|
|
7
|
+
pipelineExecutionId: string;
|
|
8
|
+
schemaIdentifier: string;
|
|
9
|
+
stageExecutionId: string;
|
|
10
|
+
}
|
package/dist/dbops-service/src/services/requestBodies/FlywayFailureInterruptRequestRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED