@harnessio/react-idp-service-client 0.81.0 → 0.82.1
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/useCreateOrUpdateEntityTableMutation.d.ts +23 -0
- package/dist/idp-service/src/services/hooks/useCreateOrUpdateEntityTableMutation.js +14 -0
- 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 +10 -0
- package/dist/idp-service/src/services/index.js +2 -0
- package/dist/idp-service/src/services/requestBodies/EntityTableCreateOrUpdateRequestBodyRequestBody.d.ts +2 -0
- package/dist/idp-service/src/services/requestBodies/EntityTableCreateOrUpdateRequestBodyRequestBody.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/responses/EntityTableResponseBodyResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/EntityTableResponseBodyResponse.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/EntityTableCreateOrUpdateRequest.d.ts +7 -0
- package/dist/idp-service/src/services/schemas/EntityTableCreateOrUpdateRequest.js +1 -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,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityTableResponseBodyResponse } from '../responses/EntityTableResponseBodyResponse';
|
|
3
|
+
import type { EntityTableCreateOrUpdateRequestBodyRequestBody } from '../requestBodies/EntityTableCreateOrUpdateRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface CreateOrUpdateEntityTableMutationQueryParams {
|
|
7
|
+
kind?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface CreateOrUpdateEntityTableMutationHeaderParams {
|
|
10
|
+
'Harness-Account'?: string;
|
|
11
|
+
}
|
|
12
|
+
export type CreateOrUpdateEntityTableRequestBody = EntityTableCreateOrUpdateRequestBodyRequestBody;
|
|
13
|
+
export type CreateOrUpdateEntityTableOkResponse = ResponseWithPagination<EntityTableResponseBodyResponse>;
|
|
14
|
+
export type CreateOrUpdateEntityTableErrorResponse = unknown;
|
|
15
|
+
export interface CreateOrUpdateEntityTableProps extends Omit<FetcherOptions<CreateOrUpdateEntityTableMutationQueryParams, CreateOrUpdateEntityTableRequestBody, CreateOrUpdateEntityTableMutationHeaderParams>, 'url'> {
|
|
16
|
+
queryParams: CreateOrUpdateEntityTableMutationQueryParams;
|
|
17
|
+
body: CreateOrUpdateEntityTableRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function createOrUpdateEntityTable(props: CreateOrUpdateEntityTableProps): Promise<CreateOrUpdateEntityTableOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Create or Update an Entity Table.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useCreateOrUpdateEntityTableMutation(options?: Omit<UseMutationOptions<CreateOrUpdateEntityTableOkResponse, CreateOrUpdateEntityTableErrorResponse, CreateOrUpdateEntityTableProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateOrUpdateEntityTableOkResponse, unknown, CreateOrUpdateEntityTableProps, 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 createOrUpdateEntityTable(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/tables`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create or Update an Entity Table.
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateOrUpdateEntityTableMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createOrUpdateEntityTable(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -19,6 +19,8 @@ export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParam
|
|
|
19
19
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
20
20
|
export type { CreateLayoutErrorResponse, CreateLayoutOkResponse, CreateLayoutProps, CreateLayoutRequestBody, } from './hooks/useCreateLayoutMutation';
|
|
21
21
|
export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
|
|
22
|
+
export type { CreateOrUpdateEntityTableErrorResponse, CreateOrUpdateEntityTableMutationQueryParams, CreateOrUpdateEntityTableOkResponse, CreateOrUpdateEntityTableProps, CreateOrUpdateEntityTableRequestBody, } from './hooks/useCreateOrUpdateEntityTableMutation';
|
|
23
|
+
export { createOrUpdateEntityTable, useCreateOrUpdateEntityTableMutation, } from './hooks/useCreateOrUpdateEntityTableMutation';
|
|
22
24
|
export type { CreatePluginRequestV2ErrorResponse, CreatePluginRequestV2OkResponse, CreatePluginRequestV2Props, CreatePluginRequestV2RequestBody, } from './hooks/useCreatePluginRequestV2Mutation';
|
|
23
25
|
export { createPluginRequestV2, useCreatePluginRequestV2Mutation, } from './hooks/useCreatePluginRequestV2Mutation';
|
|
24
26
|
export type { CreateScorecardErrorResponse, CreateScorecardOkResponse, CreateScorecardProps, CreateScorecardRequestBody, } from './hooks/useCreateScorecardMutation';
|
|
@@ -95,6 +97,8 @@ export type { GetEntityErrorResponse, GetEntityOkResponse, GetEntityProps, GetEn
|
|
|
95
97
|
export { getEntity, useGetEntityQuery } from './hooks/useGetEntityQuery';
|
|
96
98
|
export type { GetEntityRefsErrorResponse, GetEntityRefsOkResponse, GetEntityRefsProps, GetEntityRefsQueryQueryParams, } from './hooks/useGetEntityRefsQuery';
|
|
97
99
|
export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQuery';
|
|
100
|
+
export type { GetEntityTablesErrorResponse, GetEntityTablesOkResponse, GetEntityTablesProps, GetEntityTablesQueryQueryParams, } from './hooks/useGetEntityTablesQuery';
|
|
101
|
+
export { getEntityTables, useGetEntityTablesQuery } from './hooks/useGetEntityTablesQuery';
|
|
98
102
|
export type { GetEntityVersionErrorResponse, GetEntityVersionOkResponse, GetEntityVersionProps, GetEntityVersionQueryPathParams, GetEntityVersionQueryQueryParams, } from './hooks/useGetEntityVersionQuery';
|
|
99
103
|
export { getEntityVersion, useGetEntityVersionQuery } from './hooks/useGetEntityVersionQuery';
|
|
100
104
|
export type { GetEntityVersionsErrorResponse, GetEntityVersionsOkResponse, GetEntityVersionsProps, GetEntityVersionsQueryPathParams, GetEntityVersionsQueryQueryParams, } from './hooks/useGetEntityVersionsQuery';
|
|
@@ -205,6 +209,7 @@ export type { EntityCreateRequestBodyRequestBody } from './requestBodies/EntityC
|
|
|
205
209
|
export type { EntityFilterQueryRequestRequestBody } from './requestBodies/EntityFilterQueryRequestRequestBody';
|
|
206
210
|
export type { EntityMoveRequestBodyRequestBody } from './requestBodies/EntityMoveRequestBodyRequestBody';
|
|
207
211
|
export type { EntityRequestBodyRequestBody } from './requestBodies/EntityRequestBodyRequestBody';
|
|
212
|
+
export type { EntityTableCreateOrUpdateRequestBodyRequestBody } from './requestBodies/EntityTableCreateOrUpdateRequestBodyRequestBody';
|
|
208
213
|
export type { EntityUpdateRequestBodyRequestBody } from './requestBodies/EntityUpdateRequestBodyRequestBody';
|
|
209
214
|
export type { EntityVersionCreateRequestBodyRequestBody } from './requestBodies/EntityVersionCreateRequestBodyRequestBody';
|
|
210
215
|
export type { EntityVersionUpdateRequestBodyRequestBody } from './requestBodies/EntityVersionUpdateRequestBodyRequestBody';
|
|
@@ -249,6 +254,8 @@ export type { EntityKindsResponseBodyResponse } from './responses/EntityKindsRes
|
|
|
249
254
|
export type { EntityRefsResponseResponse } from './responses/EntityRefsResponseResponse';
|
|
250
255
|
export type { EntityResponseBodyListResponse } from './responses/EntityResponseBodyListResponse';
|
|
251
256
|
export type { EntityResponseBodyResponse } from './responses/EntityResponseBodyResponse';
|
|
257
|
+
export type { EntityTableResponseBodyListResponse } from './responses/EntityTableResponseBodyListResponse';
|
|
258
|
+
export type { EntityTableResponseBodyResponse } from './responses/EntityTableResponseBodyResponse';
|
|
252
259
|
export type { EntityVersionResponseBodyListResponse } from './responses/EntityVersionResponseBodyListResponse';
|
|
253
260
|
export type { EntityVersionResponseBodyResponse } from './responses/EntityVersionResponseBodyResponse';
|
|
254
261
|
export type { GenerateYamlResponseResponse } from './responses/GenerateYamlResponseResponse';
|
|
@@ -333,6 +340,7 @@ export type { EntitiesByRefsRequest } from './schemas/EntitiesByRefsRequest';
|
|
|
333
340
|
export type { EntitiesForImport } from './schemas/EntitiesForImport';
|
|
334
341
|
export type { EntitiesGroups } from './schemas/EntitiesGroups';
|
|
335
342
|
export type { EntitiesGroupsResponse } from './schemas/EntitiesGroupsResponse';
|
|
343
|
+
export type { EntityColumnDetails } from './schemas/EntityColumnDetails';
|
|
336
344
|
export type { EntityConvertResponse } from './schemas/EntityConvertResponse';
|
|
337
345
|
export type { EntityCreateRequest } from './schemas/EntityCreateRequest';
|
|
338
346
|
export type { EntityFilterQueryRequest } from './schemas/EntityFilterQueryRequest';
|
|
@@ -344,6 +352,8 @@ export type { EntityMoveRequest } from './schemas/EntityMoveRequest';
|
|
|
344
352
|
export type { EntityRefs } from './schemas/EntityRefs';
|
|
345
353
|
export type { EntityRequest } from './schemas/EntityRequest';
|
|
346
354
|
export type { EntityResponse } from './schemas/EntityResponse';
|
|
355
|
+
export type { EntityTableCreateOrUpdateRequest } from './schemas/EntityTableCreateOrUpdateRequest';
|
|
356
|
+
export type { EntityTableResponse } from './schemas/EntityTableResponse';
|
|
347
357
|
export type { EntityUpdateRequest } from './schemas/EntityUpdateRequest';
|
|
348
358
|
export type { EntityVersionCreateRequest } from './schemas/EntityVersionCreateRequest';
|
|
349
359
|
export type { EntityVersionResponse } from './schemas/EntityVersionResponse';
|
|
@@ -8,6 +8,7 @@ export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMu
|
|
|
8
8
|
export { createEntityVersion, useCreateEntityVersionMutation, } from './hooks/useCreateEntityVersionMutation';
|
|
9
9
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
10
10
|
export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
|
|
11
|
+
export { createOrUpdateEntityTable, useCreateOrUpdateEntityTableMutation, } from './hooks/useCreateOrUpdateEntityTableMutation';
|
|
11
12
|
export { createPluginRequestV2, useCreatePluginRequestV2Mutation, } from './hooks/useCreatePluginRequestV2Mutation';
|
|
12
13
|
export { createScorecard, useCreateScorecardMutation } from './hooks/useCreateScorecardMutation';
|
|
13
14
|
export { customPluginsTrigger, useCustomPluginsTriggerMutation, } from './hooks/useCustomPluginsTriggerMutation';
|
|
@@ -46,6 +47,7 @@ export { getEntities, useGetEntitiesQuery } from './hooks/useGetEntitiesQuery';
|
|
|
46
47
|
export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
|
|
47
48
|
export { getEntity, useGetEntityQuery } from './hooks/useGetEntityQuery';
|
|
48
49
|
export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQuery';
|
|
50
|
+
export { getEntityTables, useGetEntityTablesQuery } from './hooks/useGetEntityTablesQuery';
|
|
49
51
|
export { getEntityVersion, useGetEntityVersionQuery } from './hooks/useGetEntityVersionQuery';
|
|
50
52
|
export { getEntityVersions, useGetEntityVersionsQuery } from './hooks/useGetEntityVersionsQuery';
|
|
51
53
|
export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDetailsQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|