@harnessio/react-idp-service-client 0.81.0 → 0.82.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/idp-service/src/services/hooks/useGetEntitiesByRefsMutation.d.ts +1 -0
- package/dist/idp-service/src/services/hooks/useGetEntitiesQuery.d.ts +1 -0
- package/dist/idp-service/src/services/hooks/useGetEntityTablesQuery.d.ts +20 -0
- package/dist/idp-service/src/services/hooks/useGetEntityTablesQuery.js +14 -0
- package/dist/idp-service/src/services/index.d.ts +5 -0
- package/dist/idp-service/src/services/index.js +1 -0
- package/dist/idp-service/src/services/responses/EntityTableResponseBodyListResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/EntityTableResponseBodyListResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/Check.d.ts +1 -0
- package/dist/idp-service/src/services/schemas/CheckDetails.d.ts +2 -2
- package/dist/idp-service/src/services/schemas/EntityColumnDetails.d.ts +14 -0
- package/dist/idp-service/src/services/schemas/EntityColumnDetails.js +4 -0
- package/dist/idp-service/src/services/schemas/EntityTableResponse.d.ts +19 -0
- package/dist/idp-service/src/services/schemas/EntityTableResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/Rule.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityTableResponseBodyListResponse } from '../responses/EntityTableResponseBodyListResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetEntityTablesQueryQueryParams {
|
|
6
|
+
kind?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetEntityTablesQueryHeaderParams {
|
|
9
|
+
'Harness-Account'?: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetEntityTablesOkResponse = ResponseWithPagination<EntityTableResponseBodyListResponse>;
|
|
12
|
+
export type GetEntityTablesErrorResponse = unknown;
|
|
13
|
+
export interface GetEntityTablesProps extends Omit<FetcherOptions<GetEntityTablesQueryQueryParams, unknown, GetEntityTablesQueryHeaderParams>, 'url'> {
|
|
14
|
+
queryParams: GetEntityTablesQueryQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export declare function getEntityTables(props: GetEntityTablesProps): Promise<GetEntityTablesOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get Entity Tables.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetEntityTablesQuery(props: GetEntityTablesProps, options?: Omit<UseQueryOptions<GetEntityTablesOkResponse, GetEntityTablesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEntityTablesOkResponse, 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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getEntityTables(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/tables`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Entity Tables.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEntityTablesQuery(props, options) {
|
|
13
|
+
return useQuery(['get-entity-tables', props.queryParams], ({ signal }) => getEntityTables(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -95,6 +95,8 @@ export type { GetEntityErrorResponse, GetEntityOkResponse, GetEntityProps, GetEn
|
|
|
95
95
|
export { getEntity, useGetEntityQuery } from './hooks/useGetEntityQuery';
|
|
96
96
|
export type { GetEntityRefsErrorResponse, GetEntityRefsOkResponse, GetEntityRefsProps, GetEntityRefsQueryQueryParams, } from './hooks/useGetEntityRefsQuery';
|
|
97
97
|
export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQuery';
|
|
98
|
+
export type { GetEntityTablesErrorResponse, GetEntityTablesOkResponse, GetEntityTablesProps, GetEntityTablesQueryQueryParams, } from './hooks/useGetEntityTablesQuery';
|
|
99
|
+
export { getEntityTables, useGetEntityTablesQuery } from './hooks/useGetEntityTablesQuery';
|
|
98
100
|
export type { GetEntityVersionErrorResponse, GetEntityVersionOkResponse, GetEntityVersionProps, GetEntityVersionQueryPathParams, GetEntityVersionQueryQueryParams, } from './hooks/useGetEntityVersionQuery';
|
|
99
101
|
export { getEntityVersion, useGetEntityVersionQuery } from './hooks/useGetEntityVersionQuery';
|
|
100
102
|
export type { GetEntityVersionsErrorResponse, GetEntityVersionsOkResponse, GetEntityVersionsProps, GetEntityVersionsQueryPathParams, GetEntityVersionsQueryQueryParams, } from './hooks/useGetEntityVersionsQuery';
|
|
@@ -249,6 +251,7 @@ export type { EntityKindsResponseBodyResponse } from './responses/EntityKindsRes
|
|
|
249
251
|
export type { EntityRefsResponseResponse } from './responses/EntityRefsResponseResponse';
|
|
250
252
|
export type { EntityResponseBodyListResponse } from './responses/EntityResponseBodyListResponse';
|
|
251
253
|
export type { EntityResponseBodyResponse } from './responses/EntityResponseBodyResponse';
|
|
254
|
+
export type { EntityTableResponseBodyListResponse } from './responses/EntityTableResponseBodyListResponse';
|
|
252
255
|
export type { EntityVersionResponseBodyListResponse } from './responses/EntityVersionResponseBodyListResponse';
|
|
253
256
|
export type { EntityVersionResponseBodyResponse } from './responses/EntityVersionResponseBodyResponse';
|
|
254
257
|
export type { GenerateYamlResponseResponse } from './responses/GenerateYamlResponseResponse';
|
|
@@ -333,6 +336,7 @@ export type { EntitiesByRefsRequest } from './schemas/EntitiesByRefsRequest';
|
|
|
333
336
|
export type { EntitiesForImport } from './schemas/EntitiesForImport';
|
|
334
337
|
export type { EntitiesGroups } from './schemas/EntitiesGroups';
|
|
335
338
|
export type { EntitiesGroupsResponse } from './schemas/EntitiesGroupsResponse';
|
|
339
|
+
export type { EntityColumnDetails } from './schemas/EntityColumnDetails';
|
|
336
340
|
export type { EntityConvertResponse } from './schemas/EntityConvertResponse';
|
|
337
341
|
export type { EntityCreateRequest } from './schemas/EntityCreateRequest';
|
|
338
342
|
export type { EntityFilterQueryRequest } from './schemas/EntityFilterQueryRequest';
|
|
@@ -344,6 +348,7 @@ export type { EntityMoveRequest } from './schemas/EntityMoveRequest';
|
|
|
344
348
|
export type { EntityRefs } from './schemas/EntityRefs';
|
|
345
349
|
export type { EntityRequest } from './schemas/EntityRequest';
|
|
346
350
|
export type { EntityResponse } from './schemas/EntityResponse';
|
|
351
|
+
export type { EntityTableResponse } from './schemas/EntityTableResponse';
|
|
347
352
|
export type { EntityUpdateRequest } from './schemas/EntityUpdateRequest';
|
|
348
353
|
export type { EntityVersionCreateRequest } from './schemas/EntityVersionCreateRequest';
|
|
349
354
|
export type { EntityVersionResponse } from './schemas/EntityVersionResponse';
|
|
@@ -46,6 +46,7 @@ export { getEntities, useGetEntitiesQuery } from './hooks/useGetEntitiesQuery';
|
|
|
46
46
|
export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
|
|
47
47
|
export { getEntity, useGetEntityQuery } from './hooks/useGetEntityQuery';
|
|
48
48
|
export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQuery';
|
|
49
|
+
export { getEntityTables, useGetEntityTablesQuery } from './hooks/useGetEntityTablesQuery';
|
|
49
50
|
export { getEntityVersion, useGetEntityVersionQuery } from './hooks/useGetEntityVersionQuery';
|
|
50
51
|
export { getEntityVersions, useGetEntityVersionsQuery } from './hooks/useGetEntityVersionsQuery';
|
|
51
52
|
export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDetailsQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface EntityColumnDetails {
|
|
2
|
+
accessor_key: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
harness_managed?: boolean;
|
|
5
|
+
header_name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
pinned?: string;
|
|
8
|
+
properties?: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
size: number;
|
|
12
|
+
type: string;
|
|
13
|
+
visible?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { EntityColumnDetails } from '../schemas/EntityColumnDetails';
|
|
2
|
+
/**
|
|
3
|
+
* Entity Table Response
|
|
4
|
+
*/
|
|
5
|
+
export interface EntityTableResponse {
|
|
6
|
+
column_details?: EntityColumnDetails[];
|
|
7
|
+
/**
|
|
8
|
+
* Identifier of the entity table.
|
|
9
|
+
*/
|
|
10
|
+
identifier?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Kind of the entity table.
|
|
13
|
+
*/
|
|
14
|
+
kind?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name of the entity table.
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|