@harnessio/react-dbops-service-client 0.10.0 → 0.11.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/useV2ListProjDbInstancesMutation.d.ts +45 -0
- package/dist/dbops-service/src/services/hooks/useV2ListProjDbInstancesMutation.js +14 -0
- package/dist/dbops-service/src/services/hooks/useV2ListProjDbSchemaMutation.d.ts +45 -0
- package/dist/dbops-service/src/services/hooks/useV2ListProjDbSchemaMutation.js +14 -0
- package/dist/dbops-service/src/services/index.d.ts +8 -0
- package/dist/dbops-service/src/services/index.js +2 -0
- package/dist/dbops-service/src/services/requestBodies/DbInstanceListRequestRequestBody.d.ts +2 -0
- package/dist/dbops-service/src/services/requestBodies/DbInstanceListRequestRequestBody.js +1 -0
- package/dist/dbops-service/src/services/requestBodies/DbSchemaFilterRequestRequestBody.d.ts +2 -0
- package/dist/dbops-service/src/services/requestBodies/DbSchemaFilterRequestRequestBody.js +1 -0
- package/dist/dbops-service/src/services/schemas/DbInstanceListInput.d.ts +13 -0
- package/dist/dbops-service/src/services/schemas/DbInstanceListInput.js +4 -0
- package/dist/dbops-service/src/services/schemas/DbInstanceOut.d.ts +2 -0
- package/dist/dbops-service/src/services/schemas/DbSchemaFilterIn.d.ts +9 -0
- package/dist/dbops-service/src/services/schemas/DbSchemaFilterIn.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DbInstanceListResponseResponse } from '../responses/DbInstanceListResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { DbInstanceListRequestRequestBody } from '../requestBodies/DbInstanceListRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface V2ListProjDbInstancesMutationPathParams {
|
|
8
|
+
org: string;
|
|
9
|
+
project: string;
|
|
10
|
+
}
|
|
11
|
+
export interface V2ListProjDbInstancesMutationQueryParams {
|
|
12
|
+
/**
|
|
13
|
+
* @format int64
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
page?: number;
|
|
17
|
+
/**
|
|
18
|
+
* @default 10
|
|
19
|
+
*/
|
|
20
|
+
limit?: number;
|
|
21
|
+
search_term?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @default "DESC"
|
|
24
|
+
*/
|
|
25
|
+
order?: 'ASC' | 'DESC';
|
|
26
|
+
/**
|
|
27
|
+
* @default "created"
|
|
28
|
+
*/
|
|
29
|
+
sort?: 'created' | 'name' | 'updated';
|
|
30
|
+
}
|
|
31
|
+
export interface V2ListProjDbInstancesMutationHeaderParams {
|
|
32
|
+
'Harness-Account'?: string;
|
|
33
|
+
}
|
|
34
|
+
export type V2ListProjDbInstancesRequestBody = DbInstanceListRequestRequestBody;
|
|
35
|
+
export type V2ListProjDbInstancesOkResponse = ResponseWithPagination<DbInstanceListResponseResponse>;
|
|
36
|
+
export type V2ListProjDbInstancesErrorResponse = ErrorResponseResponse;
|
|
37
|
+
export interface V2ListProjDbInstancesProps extends V2ListProjDbInstancesMutationPathParams, Omit<FetcherOptions<V2ListProjDbInstancesMutationQueryParams, V2ListProjDbInstancesRequestBody, V2ListProjDbInstancesMutationHeaderParams>, 'url'> {
|
|
38
|
+
queryParams: V2ListProjDbInstancesMutationQueryParams;
|
|
39
|
+
body: V2ListProjDbInstancesRequestBody;
|
|
40
|
+
}
|
|
41
|
+
export declare function v2ListProjDbInstances(props: V2ListProjDbInstancesProps): Promise<V2ListProjDbInstancesOkResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* List database instances
|
|
44
|
+
*/
|
|
45
|
+
export declare function useV2ListProjDbInstancesMutation(options?: Omit<UseMutationOptions<V2ListProjDbInstancesOkResponse, V2ListProjDbInstancesErrorResponse, V2ListProjDbInstancesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<V2ListProjDbInstancesOkResponse, import("..").Error, V2ListProjDbInstancesProps, 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 v2ListProjDbInstances(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/dbinstancelist`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List database instances
|
|
11
|
+
*/
|
|
12
|
+
export function useV2ListProjDbInstancesMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => v2ListProjDbInstances(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DbSchemaListResponseResponse } from '../responses/DbSchemaListResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { DbSchemaFilterRequestRequestBody } from '../requestBodies/DbSchemaFilterRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface V2ListProjDbSchemaMutationPathParams {
|
|
8
|
+
org: string;
|
|
9
|
+
project: string;
|
|
10
|
+
}
|
|
11
|
+
export interface V2ListProjDbSchemaMutationQueryParams {
|
|
12
|
+
/**
|
|
13
|
+
* @format int64
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
page?: number;
|
|
17
|
+
/**
|
|
18
|
+
* @default 10
|
|
19
|
+
*/
|
|
20
|
+
limit?: number;
|
|
21
|
+
search_term?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @default "DESC"
|
|
24
|
+
*/
|
|
25
|
+
order?: 'ASC' | 'DESC';
|
|
26
|
+
/**
|
|
27
|
+
* @default "created"
|
|
28
|
+
*/
|
|
29
|
+
sort?: 'created' | 'name' | 'updated';
|
|
30
|
+
}
|
|
31
|
+
export interface V2ListProjDbSchemaMutationHeaderParams {
|
|
32
|
+
'Harness-Account'?: string;
|
|
33
|
+
}
|
|
34
|
+
export type V2ListProjDbSchemaRequestBody = DbSchemaFilterRequestRequestBody;
|
|
35
|
+
export type V2ListProjDbSchemaOkResponse = ResponseWithPagination<DbSchemaListResponseResponse>;
|
|
36
|
+
export type V2ListProjDbSchemaErrorResponse = ErrorResponseResponse;
|
|
37
|
+
export interface V2ListProjDbSchemaProps extends V2ListProjDbSchemaMutationPathParams, Omit<FetcherOptions<V2ListProjDbSchemaMutationQueryParams, V2ListProjDbSchemaRequestBody, V2ListProjDbSchemaMutationHeaderParams>, 'url'> {
|
|
38
|
+
queryParams: V2ListProjDbSchemaMutationQueryParams;
|
|
39
|
+
body: V2ListProjDbSchemaRequestBody;
|
|
40
|
+
}
|
|
41
|
+
export declare function v2ListProjDbSchema(props: V2ListProjDbSchemaProps): Promise<V2ListProjDbSchemaOkResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* List database schemas
|
|
44
|
+
*/
|
|
45
|
+
export declare function useV2ListProjDbSchemaMutation(options?: Omit<UseMutationOptions<V2ListProjDbSchemaOkResponse, V2ListProjDbSchemaErrorResponse, V2ListProjDbSchemaProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<V2ListProjDbSchemaOkResponse, import("..").Error, V2ListProjDbSchemaProps, 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 v2ListProjDbSchema(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/dbschemalist`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List database schemas
|
|
11
|
+
*/
|
|
12
|
+
export function useV2ListProjDbSchemaMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => v2ListProjDbSchema(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -33,11 +33,17 @@ export type { V1UpdateProjDbSchemaInstanceErrorResponse, V1UpdateProjDbSchemaIns
|
|
|
33
33
|
export { useV1UpdateProjDbSchemaInstanceMutation, v1UpdateProjDbSchemaInstance, } from './hooks/useV1UpdateProjDbSchemaInstanceMutation';
|
|
34
34
|
export type { V1UpdateProjDbSchemaErrorResponse, V1UpdateProjDbSchemaMutationPathParams, V1UpdateProjDbSchemaOkResponse, V1UpdateProjDbSchemaProps, V1UpdateProjDbSchemaRequestBody, } from './hooks/useV1UpdateProjDbSchemaMutation';
|
|
35
35
|
export { useV1UpdateProjDbSchemaMutation, v1UpdateProjDbSchema, } from './hooks/useV1UpdateProjDbSchemaMutation';
|
|
36
|
+
export type { V2ListProjDbInstancesErrorResponse, V2ListProjDbInstancesMutationPathParams, V2ListProjDbInstancesMutationQueryParams, V2ListProjDbInstancesOkResponse, V2ListProjDbInstancesProps, V2ListProjDbInstancesRequestBody, } from './hooks/useV2ListProjDbInstancesMutation';
|
|
37
|
+
export { useV2ListProjDbInstancesMutation, v2ListProjDbInstances, } from './hooks/useV2ListProjDbInstancesMutation';
|
|
38
|
+
export type { V2ListProjDbSchemaErrorResponse, V2ListProjDbSchemaMutationPathParams, V2ListProjDbSchemaMutationQueryParams, V2ListProjDbSchemaOkResponse, V2ListProjDbSchemaProps, V2ListProjDbSchemaRequestBody, } from './hooks/useV2ListProjDbSchemaMutation';
|
|
39
|
+
export { useV2ListProjDbSchemaMutation, v2ListProjDbSchema, } from './hooks/useV2ListProjDbSchemaMutation';
|
|
36
40
|
export type { ConsumePluginRespRequestRequestBody } from './requestBodies/ConsumePluginRespRequestRequestBody';
|
|
37
41
|
export type { DbInstanceCreateRequestRequestBody } from './requestBodies/DbInstanceCreateRequestRequestBody';
|
|
38
42
|
export type { DbInstanceFilterRequestRequestBody } from './requestBodies/DbInstanceFilterRequestRequestBody';
|
|
43
|
+
export type { DbInstanceListRequestRequestBody } from './requestBodies/DbInstanceListRequestRequestBody';
|
|
39
44
|
export type { DbInstanceUpdateRequestRequestBody } from './requestBodies/DbInstanceUpdateRequestRequestBody';
|
|
40
45
|
export type { DbSchemaCreateRequestRequestBody } from './requestBodies/DbSchemaCreateRequestRequestBody';
|
|
46
|
+
export type { DbSchemaFilterRequestRequestBody } from './requestBodies/DbSchemaFilterRequestRequestBody';
|
|
41
47
|
export type { DbSchemaUpdateRequestRequestBody } from './requestBodies/DbSchemaUpdateRequestRequestBody';
|
|
42
48
|
export type { LogIngestRequestRequestBody } from './requestBodies/LogIngestRequestRequestBody';
|
|
43
49
|
export type { MigrationStateGetRequestRequestBody } from './requestBodies/MigrationStateGetRequestRequestBody';
|
|
@@ -57,7 +63,9 @@ export type { Command } from './schemas/Command';
|
|
|
57
63
|
export type { CommandExecutionStatus } from './schemas/CommandExecutionStatus';
|
|
58
64
|
export type { DbInstanceFilterIn } from './schemas/DbInstanceFilterIn';
|
|
59
65
|
export type { DbInstanceIn } from './schemas/DbInstanceIn';
|
|
66
|
+
export type { DbInstanceListInput } from './schemas/DbInstanceListInput';
|
|
60
67
|
export type { DbInstanceOut } from './schemas/DbInstanceOut';
|
|
68
|
+
export type { DbSchemaFilterIn } from './schemas/DbSchemaFilterIn';
|
|
61
69
|
export type { DbSchemaIn } from './schemas/DbSchemaIn';
|
|
62
70
|
export type { DbSchemaOut } from './schemas/DbSchemaOut';
|
|
63
71
|
export type { DbStepType } from './schemas/DbStepType';
|
|
@@ -15,3 +15,5 @@ export { useV1ListProjDbSchemaQuery, v1ListProjDbSchema } from './hooks/useV1Lis
|
|
|
15
15
|
export { useV1MigrationStateProjDbSchemaMutation, v1MigrationStateProjDbSchema, } from './hooks/useV1MigrationStateProjDbSchemaMutation';
|
|
16
16
|
export { useV1UpdateProjDbSchemaInstanceMutation, v1UpdateProjDbSchemaInstance, } from './hooks/useV1UpdateProjDbSchemaInstanceMutation';
|
|
17
17
|
export { useV1UpdateProjDbSchemaMutation, v1UpdateProjDbSchema, } from './hooks/useV1UpdateProjDbSchemaMutation';
|
|
18
|
+
export { useV2ListProjDbInstancesMutation, v2ListProjDbInstances, } from './hooks/useV2ListProjDbInstancesMutation';
|
|
19
|
+
export { useV2ListProjDbSchemaMutation, v2ListProjDbSchema, } from './hooks/useV2ListProjDbSchemaMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input for filtering instances in list API
|
|
3
|
+
*/
|
|
4
|
+
export interface DbInstanceListInput {
|
|
5
|
+
/**
|
|
6
|
+
* list of '-' separated values of schema identifier and instance identifiers
|
|
7
|
+
*/
|
|
8
|
+
instanceFQNs?: string[];
|
|
9
|
+
/**
|
|
10
|
+
* list of schema identifiers to filter instances
|
|
11
|
+
*/
|
|
12
|
+
schemaIdentifiers?: string[];
|
|
13
|
+
}
|
package/package.json
CHANGED