@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.
@@ -19,6 +19,7 @@ export interface GetEntitiesByRefsMutationQueryParams {
19
19
  owner?: string;
20
20
  lifecycle?: string;
21
21
  tags?: string;
22
+ filter?: string;
22
23
  }
23
24
  export interface GetEntitiesByRefsMutationHeaderParams {
24
25
  'Harness-Account'?: string;
@@ -19,6 +19,7 @@ export interface GetEntitiesQueryQueryParams {
19
19
  owner?: string;
20
20
  lifecycle?: string;
21
21
  tags?: string;
22
+ filter?: string;
22
23
  }
23
24
  export interface GetEntitiesQueryHeaderParams {
24
25
  'Harness-Account'?: string;
@@ -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,2 @@
1
+ import type { EntityTableResponse } from '../schemas/EntityTableResponse';
2
+ export type EntityTableResponseBodyListResponse = EntityTableResponse[];
@@ -7,5 +7,6 @@ export interface Check {
7
7
  expression?: string;
8
8
  identifier: string;
9
9
  name: string;
10
+ rule_description?: string;
10
11
  tags?: string[];
11
12
  }
@@ -8,6 +8,6 @@ export interface CheckDetails extends Check {
8
8
  * @format double
9
9
  */
10
10
  percentage?: number;
11
- rule_strategy: 'ALL_OF' | 'ANY_OF';
12
- rules: Rule[];
11
+ rule_strategy: 'ADVANCED' | 'ALL_OF' | 'ANY_OF';
12
+ rules?: Rule[];
13
13
  }
@@ -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,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,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
+ }
@@ -5,5 +5,6 @@ export interface Rule {
5
5
  identifier?: string;
6
6
  input_values?: InputValue[];
7
7
  operator: string;
8
+ rule_description?: string;
8
9
  value?: string;
9
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.81.0",
3
+ "version": "0.82.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",