@harnessio/react-dbops-service-client 0.11.0 → 0.12.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 (32) hide show
  1. package/dist/dbops-service/src/services/hooks/useV1DeleteExecutionConfigMutation.d.ts +17 -0
  2. package/dist/dbops-service/src/services/hooks/useV1DeleteExecutionConfigMutation.js +14 -0
  3. package/dist/dbops-service/src/services/hooks/useV1GetCustomerConfigQuery.d.ts +24 -0
  4. package/dist/dbops-service/src/services/hooks/useV1GetCustomerConfigQuery.js +14 -0
  5. package/dist/dbops-service/src/services/hooks/useV1GetDefaultConfigQuery.d.ts +17 -0
  6. package/dist/dbops-service/src/services/hooks/useV1GetDefaultConfigQuery.js +14 -0
  7. package/dist/dbops-service/src/services/hooks/useV1MigrationStateProjDbInstanceQuery.d.ts +36 -0
  8. package/dist/dbops-service/src/services/hooks/useV1MigrationStateProjDbInstanceQuery.js +21 -0
  9. package/dist/dbops-service/src/services/hooks/useV1ResetExecutionConfigMutation.d.ts +19 -0
  10. package/dist/dbops-service/src/services/hooks/useV1ResetExecutionConfigMutation.js +14 -0
  11. package/dist/dbops-service/src/services/hooks/useV1UpdateExecutionConfigMutation.d.ts +20 -0
  12. package/dist/dbops-service/src/services/hooks/useV1UpdateExecutionConfigMutation.js +14 -0
  13. package/dist/dbops-service/src/services/index.d.ts +20 -0
  14. package/dist/dbops-service/src/services/index.js +6 -0
  15. package/dist/dbops-service/src/services/requestBodies/ExecutionConfigUpdateRequestRequestBody.d.ts +2 -0
  16. package/dist/dbops-service/src/services/requestBodies/ExecutionConfigUpdateRequestRequestBody.js +1 -0
  17. package/dist/dbops-service/src/services/responses/ExecutionConfigSuccessResponseResponse.d.ts +1 -0
  18. package/dist/dbops-service/src/services/responses/ExecutionConfigSuccessResponseResponse.js +4 -0
  19. package/dist/dbops-service/src/services/responses/ExecutionConfigTagsResponseResponse.d.ts +2 -0
  20. package/dist/dbops-service/src/services/responses/ExecutionConfigTagsResponseResponse.js +1 -0
  21. package/dist/dbops-service/src/services/responses/InstanceMigrationStateResponseResponse.d.ts +2 -0
  22. package/dist/dbops-service/src/services/responses/InstanceMigrationStateResponseResponse.js +1 -0
  23. package/dist/dbops-service/src/services/schemas/Command.d.ts +1 -1
  24. package/dist/dbops-service/src/services/schemas/ExecutionConfigOperation.d.ts +15 -0
  25. package/dist/dbops-service/src/services/schemas/ExecutionConfigOperation.js +4 -0
  26. package/dist/dbops-service/src/services/schemas/ExecutionConfigTags.d.ts +7 -0
  27. package/dist/dbops-service/src/services/schemas/ExecutionConfigTags.js +4 -0
  28. package/dist/dbops-service/src/services/schemas/InstanceMigrationStateChangeSet.d.ts +26 -0
  29. package/dist/dbops-service/src/services/schemas/InstanceMigrationStateChangeSet.js +1 -0
  30. package/dist/dbops-service/src/services/schemas/InstanceMigrationStateOut.d.ts +15 -0
  31. package/dist/dbops-service/src/services/schemas/InstanceMigrationStateOut.js +1 -0
  32. package/package.json +1 -1
@@ -0,0 +1,17 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ExecutionConfigSuccessResponseResponse } from '../responses/ExecutionConfigSuccessResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface V1DeleteExecutionConfigMutationHeaderParams {
7
+ 'Harness-Account'?: string;
8
+ }
9
+ export type V1DeleteExecutionConfigOkResponse = ResponseWithPagination<ExecutionConfigSuccessResponseResponse>;
10
+ export type V1DeleteExecutionConfigErrorResponse = ErrorResponseResponse;
11
+ export interface V1DeleteExecutionConfigProps extends Omit<FetcherOptions<unknown, unknown, V1DeleteExecutionConfigMutationHeaderParams>, 'url'> {
12
+ }
13
+ export declare function v1DeleteExecutionConfig(props: V1DeleteExecutionConfigProps): Promise<V1DeleteExecutionConfigOkResponse>;
14
+ /**
15
+ * Delete the Execution config overrides for the customer
16
+ */
17
+ export declare function useV1DeleteExecutionConfigMutation(options?: Omit<UseMutationOptions<V1DeleteExecutionConfigOkResponse, V1DeleteExecutionConfigErrorResponse, V1DeleteExecutionConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<V1DeleteExecutionConfigOkResponse, import("..").Error, V1DeleteExecutionConfigProps, 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 v1DeleteExecutionConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/dbops/execution-config`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete the Execution config overrides for the customer
11
+ */
12
+ export function useV1DeleteExecutionConfigMutation(options) {
13
+ return useMutation((mutateProps) => v1DeleteExecutionConfig(mutateProps), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ExecutionConfigTagsResponseResponse } from '../responses/ExecutionConfigTagsResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface V1GetCustomerConfigQueryQueryParams {
7
+ /**
8
+ * @default true
9
+ */
10
+ overridesOnly?: boolean;
11
+ }
12
+ export interface V1GetCustomerConfigQueryHeaderParams {
13
+ 'Harness-Account'?: string;
14
+ }
15
+ export type V1GetCustomerConfigOkResponse = ResponseWithPagination<ExecutionConfigTagsResponseResponse>;
16
+ export type V1GetCustomerConfigErrorResponse = ErrorResponseResponse;
17
+ export interface V1GetCustomerConfigProps extends Omit<FetcherOptions<V1GetCustomerConfigQueryQueryParams, unknown, V1GetCustomerConfigQueryHeaderParams>, 'url'> {
18
+ queryParams: V1GetCustomerConfigQueryQueryParams;
19
+ }
20
+ export declare function v1GetCustomerConfig(props: V1GetCustomerConfigProps): Promise<V1GetCustomerConfigOkResponse>;
21
+ /**
22
+ * Get Customer Execution Config overrides
23
+ */
24
+ export declare function useV1GetCustomerConfigQuery(props: V1GetCustomerConfigProps, options?: Omit<UseQueryOptions<V1GetCustomerConfigOkResponse, V1GetCustomerConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<V1GetCustomerConfigOkResponse, import("..").Error>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function v1GetCustomerConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/dbops/execution-config/get-customer-config`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Customer Execution Config overrides
11
+ */
12
+ export function useV1GetCustomerConfigQuery(props, options) {
13
+ return useQuery(['v1-get-customer-config', props.queryParams], ({ signal }) => v1GetCustomerConfig(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,17 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ExecutionConfigTagsResponseResponse } from '../responses/ExecutionConfigTagsResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface V1GetDefaultConfigQueryHeaderParams {
7
+ 'Harness-Account'?: string;
8
+ }
9
+ export type V1GetDefaultConfigOkResponse = ResponseWithPagination<ExecutionConfigTagsResponseResponse>;
10
+ export type V1GetDefaultConfigErrorResponse = ErrorResponseResponse;
11
+ export interface V1GetDefaultConfigProps extends Omit<FetcherOptions<unknown, unknown, V1GetDefaultConfigQueryHeaderParams>, 'url'> {
12
+ }
13
+ export declare function v1GetDefaultConfig(props: V1GetDefaultConfigProps): Promise<V1GetDefaultConfigOkResponse>;
14
+ /**
15
+ * Get list of the latest Harness Dbops images and tags
16
+ */
17
+ export declare function useV1GetDefaultConfigQuery(props: V1GetDefaultConfigProps, options?: Omit<UseQueryOptions<V1GetDefaultConfigOkResponse, V1GetDefaultConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<V1GetDefaultConfigOkResponse, import("..").Error>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function v1GetDefaultConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/dbops/execution-config/get-default-config`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get list of the latest Harness Dbops images and tags
11
+ */
12
+ export function useV1GetDefaultConfigQuery(props, options) {
13
+ return useQuery(['v1-get-default-config'], ({ signal }) => v1GetDefaultConfig(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,36 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { InstanceMigrationStateResponseResponse } from '../responses/InstanceMigrationStateResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface V1MigrationStateProjDbInstanceQueryPathParams {
7
+ org: string;
8
+ project: string;
9
+ dbschema: string;
10
+ dbinstance: string;
11
+ }
12
+ export interface V1MigrationStateProjDbInstanceQueryQueryParams {
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 V1MigrationStateProjDbInstanceQueryHeaderParams {
25
+ 'Harness-Account'?: string;
26
+ }
27
+ export type V1MigrationStateProjDbInstanceOkResponse = ResponseWithPagination<InstanceMigrationStateResponseResponse>;
28
+ export type V1MigrationStateProjDbInstanceErrorResponse = ErrorResponseResponse;
29
+ export interface V1MigrationStateProjDbInstanceProps extends V1MigrationStateProjDbInstanceQueryPathParams, Omit<FetcherOptions<V1MigrationStateProjDbInstanceQueryQueryParams, unknown, V1MigrationStateProjDbInstanceQueryHeaderParams>, 'url'> {
30
+ queryParams: V1MigrationStateProjDbInstanceQueryQueryParams;
31
+ }
32
+ export declare function v1MigrationStateProjDbInstance(props: V1MigrationStateProjDbInstanceProps): Promise<V1MigrationStateProjDbInstanceOkResponse>;
33
+ /**
34
+ * Migration state of a instance
35
+ */
36
+ export declare function useV1MigrationStateProjDbInstanceQuery(props: V1MigrationStateProjDbInstanceProps, options?: Omit<UseQueryOptions<V1MigrationStateProjDbInstanceOkResponse, V1MigrationStateProjDbInstanceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<V1MigrationStateProjDbInstanceOkResponse, 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 v1MigrationStateProjDbInstance(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/dbschema/${props.dbschema}/dbinstance/${props.dbinstance}/migrationstate`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Migration state of a instance
11
+ */
12
+ export function useV1MigrationStateProjDbInstanceQuery(props, options) {
13
+ return useQuery([
14
+ 'v1-migration-state-proj-db-instance',
15
+ props.org,
16
+ props.project,
17
+ props.dbschema,
18
+ props.dbinstance,
19
+ props.queryParams,
20
+ ], ({ signal }) => v1MigrationStateProjDbInstance(Object.assign(Object.assign({}, props), { signal })), options);
21
+ }
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ExecutionConfigSuccessResponseResponse } from '../responses/ExecutionConfigSuccessResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface V1ResetExecutionConfigMutationHeaderParams {
7
+ 'Harness-Account'?: string;
8
+ }
9
+ export type V1ResetExecutionConfigRequestBody = string[];
10
+ export type V1ResetExecutionConfigOkResponse = ResponseWithPagination<ExecutionConfigSuccessResponseResponse>;
11
+ export type V1ResetExecutionConfigErrorResponse = ErrorResponseResponse;
12
+ export interface V1ResetExecutionConfigProps extends Omit<FetcherOptions<unknown, V1ResetExecutionConfigRequestBody, V1ResetExecutionConfigMutationHeaderParams>, 'url'> {
13
+ body: V1ResetExecutionConfigRequestBody;
14
+ }
15
+ export declare function v1ResetExecutionConfig(props: V1ResetExecutionConfigProps): Promise<V1ResetExecutionConfigOkResponse>;
16
+ /**
17
+ * To reset one or more images to their defaults with a list of the images to reset.
18
+ */
19
+ export declare function useV1ResetExecutionConfigMutation(options?: Omit<UseMutationOptions<V1ResetExecutionConfigOkResponse, V1ResetExecutionConfigErrorResponse, V1ResetExecutionConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<V1ResetExecutionConfigOkResponse, import("..").Error, V1ResetExecutionConfigProps, 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 v1ResetExecutionConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/dbops/execution-config/reset-config`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * To reset one or more images to their defaults with a list of the images to reset.
11
+ */
12
+ export function useV1ResetExecutionConfigMutation(options) {
13
+ return useMutation((mutateProps) => v1ResetExecutionConfig(mutateProps), options);
14
+ }
@@ -0,0 +1,20 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ExecutionConfigSuccessResponseResponse } from '../responses/ExecutionConfigSuccessResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ExecutionConfigUpdateRequestRequestBody } from '../requestBodies/ExecutionConfigUpdateRequestRequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface V1UpdateExecutionConfigMutationHeaderParams {
8
+ 'Harness-Account'?: string;
9
+ }
10
+ export type V1UpdateExecutionConfigRequestBody = ExecutionConfigUpdateRequestRequestBody;
11
+ export type V1UpdateExecutionConfigOkResponse = ResponseWithPagination<ExecutionConfigSuccessResponseResponse>;
12
+ export type V1UpdateExecutionConfigErrorResponse = ErrorResponseResponse;
13
+ export interface V1UpdateExecutionConfigProps extends Omit<FetcherOptions<unknown, V1UpdateExecutionConfigRequestBody, V1UpdateExecutionConfigMutationHeaderParams>, 'url'> {
14
+ body: V1UpdateExecutionConfigRequestBody;
15
+ }
16
+ export declare function v1UpdateExecutionConfig(props: V1UpdateExecutionConfigProps): Promise<V1UpdateExecutionConfigOkResponse>;
17
+ /**
18
+ * Override execution Config for DBOPs image tags
19
+ */
20
+ export declare function useV1UpdateExecutionConfigMutation(options?: Omit<UseMutationOptions<V1UpdateExecutionConfigOkResponse, V1UpdateExecutionConfigErrorResponse, V1UpdateExecutionConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<V1UpdateExecutionConfigOkResponse, import("..").Error, V1UpdateExecutionConfigProps, 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 v1UpdateExecutionConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/dbops/execution-config/update-config`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Override execution Config for DBOPs image tags
11
+ */
12
+ export function useV1UpdateExecutionConfigMutation(options) {
13
+ return useMutation((mutateProps) => v1UpdateExecutionConfig(mutateProps), options);
14
+ }
@@ -7,14 +7,20 @@ export type { V1CreateProjDbSchemaInstanceErrorResponse, V1CreateProjDbSchemaIns
7
7
  export { useV1CreateProjDbSchemaInstanceMutation, v1CreateProjDbSchemaInstance, } from './hooks/useV1CreateProjDbSchemaInstanceMutation';
8
8
  export type { V1CreateProjDbSchemaErrorResponse, V1CreateProjDbSchemaMutationPathParams, V1CreateProjDbSchemaOkResponse, V1CreateProjDbSchemaProps, V1CreateProjDbSchemaRequestBody, } from './hooks/useV1CreateProjDbSchemaMutation';
9
9
  export { useV1CreateProjDbSchemaMutation, v1CreateProjDbSchema, } from './hooks/useV1CreateProjDbSchemaMutation';
10
+ export type { V1DeleteExecutionConfigErrorResponse, V1DeleteExecutionConfigOkResponse, V1DeleteExecutionConfigProps, } from './hooks/useV1DeleteExecutionConfigMutation';
11
+ export { useV1DeleteExecutionConfigMutation, v1DeleteExecutionConfig, } from './hooks/useV1DeleteExecutionConfigMutation';
10
12
  export type { V1DeleteProjDbSchemaInstanceErrorResponse, V1DeleteProjDbSchemaInstanceMutationPathParams, V1DeleteProjDbSchemaInstanceOkResponse, V1DeleteProjDbSchemaInstanceProps, } from './hooks/useV1DeleteProjDbSchemaInstanceMutation';
11
13
  export { useV1DeleteProjDbSchemaInstanceMutation, v1DeleteProjDbSchemaInstance, } from './hooks/useV1DeleteProjDbSchemaInstanceMutation';
12
14
  export type { V1DeleteProjDbSchemaErrorResponse, V1DeleteProjDbSchemaMutationPathParams, V1DeleteProjDbSchemaOkResponse, V1DeleteProjDbSchemaProps, } from './hooks/useV1DeleteProjDbSchemaMutation';
13
15
  export { useV1DeleteProjDbSchemaMutation, v1DeleteProjDbSchema, } from './hooks/useV1DeleteProjDbSchemaMutation';
16
+ export type { V1GetCustomerConfigErrorResponse, V1GetCustomerConfigOkResponse, V1GetCustomerConfigProps, V1GetCustomerConfigQueryQueryParams, } from './hooks/useV1GetCustomerConfigQuery';
17
+ export { useV1GetCustomerConfigQuery, v1GetCustomerConfig, } from './hooks/useV1GetCustomerConfigQuery';
14
18
  export type { V1GetDbOverviewErrorResponse, V1GetDbOverviewOkResponse, V1GetDbOverviewProps, V1GetDbOverviewQueryPathParams, } from './hooks/useV1GetDbOverviewQuery';
15
19
  export { useV1GetDbOverviewQuery, v1GetDbOverview } from './hooks/useV1GetDbOverviewQuery';
16
20
  export type { V1GetDbinstanceLogErrorResponse, V1GetDbinstanceLogOkResponse, V1GetDbinstanceLogProps, V1GetDbinstanceLogQueryPathParams, } from './hooks/useV1GetDbinstanceLogQuery';
17
21
  export { useV1GetDbinstanceLogQuery, v1GetDbinstanceLog } from './hooks/useV1GetDbinstanceLogQuery';
22
+ export type { V1GetDefaultConfigErrorResponse, V1GetDefaultConfigOkResponse, V1GetDefaultConfigProps, } from './hooks/useV1GetDefaultConfigQuery';
23
+ export { useV1GetDefaultConfigQuery, v1GetDefaultConfig } from './hooks/useV1GetDefaultConfigQuery';
18
24
  export type { V1GetDeployedStateErrorResponse, V1GetDeployedStateMutationPathParams, V1GetDeployedStateMutationQueryParams, V1GetDeployedStateOkResponse, V1GetDeployedStateProps, V1GetDeployedStateRequestBody, } from './hooks/useV1GetDeployedStateMutation';
19
25
  export { useV1GetDeployedStateMutation, v1GetDeployedState, } from './hooks/useV1GetDeployedStateMutation';
20
26
  export type { V1GetProjDbSchemaInstanceErrorResponse, V1GetProjDbSchemaInstanceOkResponse, V1GetProjDbSchemaInstanceProps, V1GetProjDbSchemaInstanceQueryPathParams, } from './hooks/useV1GetProjDbSchemaInstanceQuery';
@@ -27,8 +33,14 @@ export type { V1ListProjDbSchemaInstanceErrorResponse, V1ListProjDbSchemaInstanc
27
33
  export { useV1ListProjDbSchemaInstanceMutation, v1ListProjDbSchemaInstance, } from './hooks/useV1ListProjDbSchemaInstanceMutation';
28
34
  export type { V1ListProjDbSchemaErrorResponse, V1ListProjDbSchemaOkResponse, V1ListProjDbSchemaProps, V1ListProjDbSchemaQueryPathParams, V1ListProjDbSchemaQueryQueryParams, } from './hooks/useV1ListProjDbSchemaQuery';
29
35
  export { useV1ListProjDbSchemaQuery, v1ListProjDbSchema } from './hooks/useV1ListProjDbSchemaQuery';
36
+ export type { V1MigrationStateProjDbInstanceErrorResponse, V1MigrationStateProjDbInstanceOkResponse, V1MigrationStateProjDbInstanceProps, V1MigrationStateProjDbInstanceQueryPathParams, V1MigrationStateProjDbInstanceQueryQueryParams, } from './hooks/useV1MigrationStateProjDbInstanceQuery';
37
+ export { useV1MigrationStateProjDbInstanceQuery, v1MigrationStateProjDbInstance, } from './hooks/useV1MigrationStateProjDbInstanceQuery';
30
38
  export type { V1MigrationStateProjDbSchemaErrorResponse, V1MigrationStateProjDbSchemaMutationPathParams, V1MigrationStateProjDbSchemaMutationQueryParams, V1MigrationStateProjDbSchemaOkResponse, V1MigrationStateProjDbSchemaProps, V1MigrationStateProjDbSchemaRequestBody, } from './hooks/useV1MigrationStateProjDbSchemaMutation';
31
39
  export { useV1MigrationStateProjDbSchemaMutation, v1MigrationStateProjDbSchema, } from './hooks/useV1MigrationStateProjDbSchemaMutation';
40
+ export type { V1ResetExecutionConfigErrorResponse, V1ResetExecutionConfigOkResponse, V1ResetExecutionConfigProps, V1ResetExecutionConfigRequestBody, } from './hooks/useV1ResetExecutionConfigMutation';
41
+ export { useV1ResetExecutionConfigMutation, v1ResetExecutionConfig, } from './hooks/useV1ResetExecutionConfigMutation';
42
+ export type { V1UpdateExecutionConfigErrorResponse, V1UpdateExecutionConfigOkResponse, V1UpdateExecutionConfigProps, V1UpdateExecutionConfigRequestBody, } from './hooks/useV1UpdateExecutionConfigMutation';
43
+ export { useV1UpdateExecutionConfigMutation, v1UpdateExecutionConfig, } from './hooks/useV1UpdateExecutionConfigMutation';
32
44
  export type { V1UpdateProjDbSchemaInstanceErrorResponse, V1UpdateProjDbSchemaInstanceMutationPathParams, V1UpdateProjDbSchemaInstanceOkResponse, V1UpdateProjDbSchemaInstanceProps, V1UpdateProjDbSchemaInstanceRequestBody, } from './hooks/useV1UpdateProjDbSchemaInstanceMutation';
33
45
  export { useV1UpdateProjDbSchemaInstanceMutation, v1UpdateProjDbSchemaInstance, } from './hooks/useV1UpdateProjDbSchemaInstanceMutation';
34
46
  export type { V1UpdateProjDbSchemaErrorResponse, V1UpdateProjDbSchemaMutationPathParams, V1UpdateProjDbSchemaOkResponse, V1UpdateProjDbSchemaProps, V1UpdateProjDbSchemaRequestBody, } from './hooks/useV1UpdateProjDbSchemaMutation';
@@ -45,6 +57,7 @@ export type { DbInstanceUpdateRequestRequestBody } from './requestBodies/DbInsta
45
57
  export type { DbSchemaCreateRequestRequestBody } from './requestBodies/DbSchemaCreateRequestRequestBody';
46
58
  export type { DbSchemaFilterRequestRequestBody } from './requestBodies/DbSchemaFilterRequestRequestBody';
47
59
  export type { DbSchemaUpdateRequestRequestBody } from './requestBodies/DbSchemaUpdateRequestRequestBody';
60
+ export type { ExecutionConfigUpdateRequestRequestBody } from './requestBodies/ExecutionConfigUpdateRequestRequestBody';
48
61
  export type { LogIngestRequestRequestBody } from './requestBodies/LogIngestRequestRequestBody';
49
62
  export type { MigrationStateGetRequestRequestBody } from './requestBodies/MigrationStateGetRequestRequestBody';
50
63
  export type { PluginStepInputsRequestRequestBody } from './requestBodies/PluginStepInputsRequestRequestBody';
@@ -53,6 +66,9 @@ export type { DbInstanceResponseResponse } from './responses/DbInstanceResponseR
53
66
  export type { DbSchemaListResponseResponse } from './responses/DbSchemaListResponseResponse';
54
67
  export type { DbSchemaResponseResponse } from './responses/DbSchemaResponseResponse';
55
68
  export type { ErrorResponseResponse } from './responses/ErrorResponseResponse';
69
+ export type { ExecutionConfigSuccessResponseResponse } from './responses/ExecutionConfigSuccessResponseResponse';
70
+ export type { ExecutionConfigTagsResponseResponse } from './responses/ExecutionConfigTagsResponseResponse';
71
+ export type { InstanceMigrationStateResponseResponse } from './responses/InstanceMigrationStateResponseResponse';
56
72
  export type { MigrationStateResponseResponse } from './responses/MigrationStateResponseResponse';
57
73
  export type { OverviewResponseResponse } from './responses/OverviewResponseResponse';
58
74
  export type { ParsedLogResponseResponse } from './responses/ParsedLogResponseResponse';
@@ -72,8 +88,12 @@ export type { DbStepType } from './schemas/DbStepType';
72
88
  export type { DeployedStateInput } from './schemas/DeployedStateInput';
73
89
  export type { DeployedStateOutput } from './schemas/DeployedStateOutput';
74
90
  export type { Error } from './schemas/Error';
91
+ export type { ExecutionConfigOperation } from './schemas/ExecutionConfigOperation';
92
+ export type { ExecutionConfigTags } from './schemas/ExecutionConfigTags';
75
93
  export type { ExecutionMetadata } from './schemas/ExecutionMetadata';
76
94
  export type { InstanceDetail } from './schemas/InstanceDetail';
95
+ export type { InstanceMigrationStateChangeSet } from './schemas/InstanceMigrationStateChangeSet';
96
+ export type { InstanceMigrationStateOut } from './schemas/InstanceMigrationStateOut';
77
97
  export type { MigrationStateChangeSet } from './schemas/MigrationStateChangeSet';
78
98
  export type { MigrationStateIn } from './schemas/MigrationStateIn';
79
99
  export type { MigrationStateInstance } from './schemas/MigrationStateInstance';
@@ -2,17 +2,23 @@ export { consumeV1StepPluginResponse, useConsumeV1StepPluginResponseMutation, }
2
2
  export { createV1StepPluginInputs, useCreateV1StepPluginInputsMutation, } from './hooks/useCreateV1StepPluginInputsMutation';
3
3
  export { useV1CreateProjDbSchemaInstanceMutation, v1CreateProjDbSchemaInstance, } from './hooks/useV1CreateProjDbSchemaInstanceMutation';
4
4
  export { useV1CreateProjDbSchemaMutation, v1CreateProjDbSchema, } from './hooks/useV1CreateProjDbSchemaMutation';
5
+ export { useV1DeleteExecutionConfigMutation, v1DeleteExecutionConfig, } from './hooks/useV1DeleteExecutionConfigMutation';
5
6
  export { useV1DeleteProjDbSchemaInstanceMutation, v1DeleteProjDbSchemaInstance, } from './hooks/useV1DeleteProjDbSchemaInstanceMutation';
6
7
  export { useV1DeleteProjDbSchemaMutation, v1DeleteProjDbSchema, } from './hooks/useV1DeleteProjDbSchemaMutation';
8
+ export { useV1GetCustomerConfigQuery, v1GetCustomerConfig, } from './hooks/useV1GetCustomerConfigQuery';
7
9
  export { useV1GetDbOverviewQuery, v1GetDbOverview } from './hooks/useV1GetDbOverviewQuery';
8
10
  export { useV1GetDbinstanceLogQuery, v1GetDbinstanceLog } from './hooks/useV1GetDbinstanceLogQuery';
11
+ export { useV1GetDefaultConfigQuery, v1GetDefaultConfig } from './hooks/useV1GetDefaultConfigQuery';
9
12
  export { useV1GetDeployedStateMutation, v1GetDeployedState, } from './hooks/useV1GetDeployedStateMutation';
10
13
  export { useV1GetProjDbSchemaInstanceQuery, v1GetProjDbSchemaInstance, } from './hooks/useV1GetProjDbSchemaInstanceQuery';
11
14
  export { useV1GetProjDbSchemaQuery, v1GetProjDbSchema } from './hooks/useV1GetProjDbSchemaQuery';
12
15
  export { useV1IngestLogsMutation, v1IngestLogs } from './hooks/useV1IngestLogsMutation';
13
16
  export { useV1ListProjDbSchemaInstanceMutation, v1ListProjDbSchemaInstance, } from './hooks/useV1ListProjDbSchemaInstanceMutation';
14
17
  export { useV1ListProjDbSchemaQuery, v1ListProjDbSchema } from './hooks/useV1ListProjDbSchemaQuery';
18
+ export { useV1MigrationStateProjDbInstanceQuery, v1MigrationStateProjDbInstance, } from './hooks/useV1MigrationStateProjDbInstanceQuery';
15
19
  export { useV1MigrationStateProjDbSchemaMutation, v1MigrationStateProjDbSchema, } from './hooks/useV1MigrationStateProjDbSchemaMutation';
20
+ export { useV1ResetExecutionConfigMutation, v1ResetExecutionConfig, } from './hooks/useV1ResetExecutionConfigMutation';
21
+ export { useV1UpdateExecutionConfigMutation, v1UpdateExecutionConfig, } from './hooks/useV1UpdateExecutionConfigMutation';
16
22
  export { useV1UpdateProjDbSchemaInstanceMutation, v1UpdateProjDbSchemaInstance, } from './hooks/useV1UpdateProjDbSchemaInstanceMutation';
17
23
  export { useV1UpdateProjDbSchemaMutation, v1UpdateProjDbSchema, } from './hooks/useV1UpdateProjDbSchemaMutation';
18
24
  export { useV2ListProjDbInstancesMutation, v2ListProjDbInstances, } from './hooks/useV2ListProjDbInstancesMutation';
@@ -0,0 +1,2 @@
1
+ import type { ExecutionConfigOperation } from '../schemas/ExecutionConfigOperation';
2
+ export type ExecutionConfigUpdateRequestRequestBody = ExecutionConfigOperation[];
@@ -0,0 +1 @@
1
+ export type ExecutionConfigSuccessResponseResponse = boolean;
@@ -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,2 @@
1
+ import type { ExecutionConfigTags } from '../schemas/ExecutionConfigTags';
2
+ export type ExecutionConfigTagsResponseResponse = ExecutionConfigTags;
@@ -0,0 +1,2 @@
1
+ import type { InstanceMigrationStateOut } from '../schemas/InstanceMigrationStateOut';
2
+ export type InstanceMigrationStateResponseResponse = InstanceMigrationStateOut;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Type of the plugin command to run
3
3
  */
4
- export type Command = 'Clone' | 'Custom' | 'History' | 'ParentWrapper' | 'Rollback' | 'Tag' | 'Update' | 'UpdateSQL' | 'Validate';
4
+ export type Command = 'Clone' | 'Custom' | 'History' | 'ParentWrapper' | 'Rollback' | 'RollbackSQL' | 'Tag' | 'Update' | 'UpdateSQL' | 'Validate';
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Operations to set the images tag to particular version
3
+ */
4
+ export interface ExecutionConfigOperation {
5
+ /**
6
+ * Image tag field names which can be retrieved from get-default-config
7
+ * @example "gitCloneTag, defaultTag, mongoTag, etc"
8
+ */
9
+ field: string;
10
+ /**
11
+ * Value of the image tag
12
+ * @example "harness/drone-git:1.5.6-rootless"
13
+ */
14
+ value: string;
15
+ }
@@ -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,7 @@
1
+ export interface ExecutionConfigTags {
2
+ artifactoryTag?: string;
3
+ defaultTag?: string;
4
+ gitCloneTag?: string;
5
+ mongoTag?: string;
6
+ spannerTag?: string;
7
+ }
@@ -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,26 @@
1
+ import type { ChangeSetDeploymentStatus } from '../schemas/ChangeSetDeploymentStatus';
2
+ /**
3
+ * Deployment info of Change Sets across instances
4
+ */
5
+ export interface InstanceMigrationStateChangeSet {
6
+ author: string;
7
+ /**
8
+ * Identifier of the Change Set
9
+ */
10
+ changeSet: string;
11
+ /**
12
+ * comment defined in changeSet
13
+ */
14
+ comment?: string;
15
+ /**
16
+ * @format int64
17
+ */
18
+ deployedAt: number;
19
+ fileName: string;
20
+ /**
21
+ * label defined in changeSet
22
+ */
23
+ label?: string;
24
+ status: ChangeSetDeploymentStatus;
25
+ tag?: string;
26
+ }
@@ -0,0 +1,15 @@
1
+ import type { InstanceMigrationStateChangeSet } from '../schemas/InstanceMigrationStateChangeSet';
2
+ /**
3
+ * Change Set deployment info for a instance
4
+ */
5
+ export interface InstanceMigrationStateOut {
6
+ changeSets?: InstanceMigrationStateChangeSet[];
7
+ /**
8
+ * Name of the Instance
9
+ */
10
+ instanceName: string;
11
+ /**
12
+ * Name of the Schema
13
+ */
14
+ schemaName: string;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-dbops-service-client",
3
- "version": "0.11.0",
3
+ "version": "0.12.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",