@harnessio/react-idp-service-client 0.59.0 → 0.61.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/useCreateEntityMutation.d.ts +3 -1
- package/dist/idp-service/src/services/hooks/useDeleteEntityMutation.d.ts +9 -2
- package/dist/idp-service/src/services/hooks/useDeleteEntityMutation.js +1 -1
- package/dist/idp-service/src/services/hooks/useGetEntitiesFiltersQuery.d.ts +1 -2
- package/dist/idp-service/src/services/hooks/useGetEntitiesFiltersQuery.js +1 -1
- package/dist/idp-service/src/services/hooks/useGetEntitiesGroupsQuery.d.ts +29 -0
- package/dist/idp-service/src/services/hooks/useGetEntitiesGroupsQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useGetEntitiesKindsQuery.js +1 -1
- package/dist/idp-service/src/services/hooks/useGetEntitiesQuery.d.ts +3 -0
- package/dist/idp-service/src/services/hooks/useGetEntityQuery.d.ts +9 -2
- package/dist/idp-service/src/services/hooks/useGetEntityQuery.js +2 -2
- package/dist/idp-service/src/services/hooks/useUpdateEntityMutation.d.ts +9 -2
- package/dist/idp-service/src/services/hooks/useUpdateEntityMutation.js +1 -1
- package/dist/idp-service/src/services/index.d.ts +8 -6
- package/dist/idp-service/src/services/index.js +1 -1
- package/dist/idp-service/src/services/responses/EntitiesGroupsResponseBodyResponse.d.ts +2 -0
- package/dist/idp-service/src/services/schemas/EntitiesGroups.d.ts +16 -0
- package/dist/idp-service/src/services/schemas/EntitiesGroups.js +1 -0
- package/dist/idp-service/src/services/schemas/EntitiesGroupsResponse.d.ts +36 -0
- package/dist/idp-service/src/services/schemas/EntitiesGroupsResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/EntityFiltersResponse.d.ts +3 -1
- package/dist/idp-service/src/services/schemas/EntityResponse.d.ts +13 -0
- package/package.json +1 -1
- package/dist/idp-service/src/services/hooks/useGetEntitiesFiltersByIdQuery.d.ts +0 -33
- package/dist/idp-service/src/services/hooks/useGetEntitiesFiltersByIdQuery.js +0 -14
- package/dist/idp-service/src/services/responses/EntityFiltersResponseBodyPagedResponse.d.ts +0 -2
- /package/dist/idp-service/src/services/responses/{EntityFiltersResponseBodyPagedResponse.js → EntitiesGroupsResponseBodyResponse.js} +0 -0
|
@@ -4,7 +4,9 @@ import type { EntityRequestBodyRequestBody } from '../requestBodies/EntityReques
|
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface CreateEntityMutationQueryParams {
|
|
7
|
-
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
convert?: boolean;
|
|
8
10
|
dry_run?: boolean;
|
|
9
11
|
}
|
|
10
12
|
export interface CreateEntityMutationHeaderParams {
|
|
@@ -2,14 +2,21 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ResponseWithPagination } from '../helpers';
|
|
3
3
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
4
4
|
export interface DeleteEntityMutationPathParams {
|
|
5
|
-
|
|
5
|
+
kind: string;
|
|
6
|
+
scope: string;
|
|
7
|
+
identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface DeleteEntityMutationQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
6
12
|
}
|
|
7
13
|
export interface DeleteEntityMutationHeaderParams {
|
|
8
14
|
'Harness-Account'?: string;
|
|
9
15
|
}
|
|
10
16
|
export type DeleteEntityOkResponse = ResponseWithPagination<unknown>;
|
|
11
17
|
export type DeleteEntityErrorResponse = unknown;
|
|
12
|
-
export interface DeleteEntityProps extends DeleteEntityMutationPathParams, Omit<FetcherOptions<
|
|
18
|
+
export interface DeleteEntityProps extends DeleteEntityMutationPathParams, Omit<FetcherOptions<DeleteEntityMutationQueryParams, unknown, DeleteEntityMutationHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: DeleteEntityMutationQueryParams;
|
|
13
20
|
}
|
|
14
21
|
export declare function deleteEntity(props: DeleteEntityProps): Promise<DeleteEntityOkResponse>;
|
|
15
22
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function deleteEntity(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/entities/${props
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/${props.scope}/${props.kind}/${props.identifier}`, method: 'DELETE' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Delete an Entity.
|
|
@@ -4,9 +4,8 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetEntitiesFiltersQueryQueryParams {
|
|
6
6
|
accountIdentifier: string;
|
|
7
|
-
orgIdentifier?: string;
|
|
8
|
-
projectIdentifier?: string;
|
|
9
7
|
kind?: string;
|
|
8
|
+
scopes?: string;
|
|
10
9
|
}
|
|
11
10
|
export interface GetEntitiesFiltersQueryHeaderParams {
|
|
12
11
|
'Harness-Account'?: string;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getEntitiesFilters(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/entities/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/filters`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get Entities Filters.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntitiesGroupsResponseBodyResponse } from '../responses/EntitiesGroupsResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetEntitiesGroupsQueryQueryParams {
|
|
6
|
+
search_on_entities?: string;
|
|
7
|
+
search_on_groups?: string;
|
|
8
|
+
scopes?: string;
|
|
9
|
+
kind?: string;
|
|
10
|
+
owned_by_me?: boolean;
|
|
11
|
+
favorites?: boolean;
|
|
12
|
+
type?: string;
|
|
13
|
+
owner?: string;
|
|
14
|
+
lifecycle?: string;
|
|
15
|
+
tags?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface GetEntitiesGroupsQueryHeaderParams {
|
|
18
|
+
'Harness-Account'?: string;
|
|
19
|
+
}
|
|
20
|
+
export type GetEntitiesGroupsOkResponse = ResponseWithPagination<EntitiesGroupsResponseBodyResponse>;
|
|
21
|
+
export type GetEntitiesGroupsErrorResponse = unknown;
|
|
22
|
+
export interface GetEntitiesGroupsProps extends Omit<FetcherOptions<GetEntitiesGroupsQueryQueryParams, unknown, GetEntitiesGroupsQueryHeaderParams>, 'url'> {
|
|
23
|
+
queryParams: GetEntitiesGroupsQueryQueryParams;
|
|
24
|
+
}
|
|
25
|
+
export declare function getEntitiesGroups(props: GetEntitiesGroupsProps): Promise<GetEntitiesGroupsOkResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Get Entities Groups.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useGetEntitiesGroupsQuery(props: GetEntitiesGroupsProps, options?: Omit<UseQueryOptions<GetEntitiesGroupsOkResponse, GetEntitiesGroupsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEntitiesGroupsOkResponse, 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 getEntitiesGroups(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/groups`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Entities Groups.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEntitiesGroupsQuery(props, options) {
|
|
13
|
+
return useQuery(['get-entities-groups', props.queryParams], ({ signal }) => getEntitiesGroups(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getEntitiesKinds(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/entities/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/kinds`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get Entities Kinds.
|
|
@@ -3,6 +3,8 @@ import type { EntityResponseBodyListResponse } from '../responses/EntityResponse
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetEntitiesQueryQueryParams {
|
|
6
|
+
orgIdentifier?: string;
|
|
7
|
+
projectIdentifier?: string;
|
|
6
8
|
page?: number;
|
|
7
9
|
/**
|
|
8
10
|
* @default 10
|
|
@@ -10,6 +12,7 @@ export interface GetEntitiesQueryQueryParams {
|
|
|
10
12
|
limit?: number;
|
|
11
13
|
sort?: string;
|
|
12
14
|
search_term?: string;
|
|
15
|
+
scopes?: string;
|
|
13
16
|
entity_refs?: string;
|
|
14
17
|
owned_by_me?: boolean;
|
|
15
18
|
favorites?: boolean;
|
|
@@ -3,14 +3,21 @@ import type { EntityResponseBodyResponse } from '../responses/EntityResponseBody
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetEntityQueryPathParams {
|
|
6
|
-
|
|
6
|
+
kind: string;
|
|
7
|
+
scope: string;
|
|
8
|
+
identifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetEntityQueryQueryParams {
|
|
11
|
+
orgIdentifier?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
7
13
|
}
|
|
8
14
|
export interface GetEntityQueryHeaderParams {
|
|
9
15
|
'Harness-Account'?: string;
|
|
10
16
|
}
|
|
11
17
|
export type GetEntityOkResponse = ResponseWithPagination<EntityResponseBodyResponse>;
|
|
12
18
|
export type GetEntityErrorResponse = unknown;
|
|
13
|
-
export interface GetEntityProps extends GetEntityQueryPathParams, Omit<FetcherOptions<
|
|
19
|
+
export interface GetEntityProps extends GetEntityQueryPathParams, Omit<FetcherOptions<GetEntityQueryQueryParams, unknown, GetEntityQueryHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: GetEntityQueryQueryParams;
|
|
14
21
|
}
|
|
15
22
|
export declare function getEntity(props: GetEntityProps): Promise<GetEntityOkResponse>;
|
|
16
23
|
/**
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getEntity(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/entities/${props
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/${props.scope}/${props.kind}/${props.identifier}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get Entity.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetEntityQuery(props, options) {
|
|
13
|
-
return useQuery(['get-entity', props
|
|
13
|
+
return useQuery(['get-entity', props.kind, props.scope, props.identifier, props.queryParams], ({ signal }) => getEntity(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -4,7 +4,13 @@ import type { EntityRequestBodyRequestBody } from '../requestBodies/EntityReques
|
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface UpdateEntityMutationPathParams {
|
|
7
|
-
|
|
7
|
+
kind: string;
|
|
8
|
+
scope: string;
|
|
9
|
+
identifier: string;
|
|
10
|
+
}
|
|
11
|
+
export interface UpdateEntityMutationQueryParams {
|
|
12
|
+
orgIdentifier?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
8
14
|
}
|
|
9
15
|
export interface UpdateEntityMutationHeaderParams {
|
|
10
16
|
'Harness-Account'?: string;
|
|
@@ -12,7 +18,8 @@ export interface UpdateEntityMutationHeaderParams {
|
|
|
12
18
|
export type UpdateEntityRequestBody = EntityRequestBodyRequestBody;
|
|
13
19
|
export type UpdateEntityOkResponse = ResponseWithPagination<EntityResponseBodyResponse>;
|
|
14
20
|
export type UpdateEntityErrorResponse = unknown;
|
|
15
|
-
export interface UpdateEntityProps extends UpdateEntityMutationPathParams, Omit<FetcherOptions<
|
|
21
|
+
export interface UpdateEntityProps extends UpdateEntityMutationPathParams, Omit<FetcherOptions<UpdateEntityMutationQueryParams, UpdateEntityRequestBody, UpdateEntityMutationHeaderParams>, 'url'> {
|
|
22
|
+
queryParams: UpdateEntityMutationQueryParams;
|
|
16
23
|
body: UpdateEntityRequestBody;
|
|
17
24
|
}
|
|
18
25
|
export declare function updateEntity(props: UpdateEntityProps): Promise<UpdateEntityOkResponse>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function updateEntity(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/entities/${props
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/${props.scope}/${props.kind}/${props.identifier}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Update an Entity.
|
|
@@ -29,7 +29,7 @@ export type { DeleteCustomLinkCardQuickLinksErrorResponse, DeleteCustomLinkCardQ
|
|
|
29
29
|
export { deleteCustomLinkCardQuickLinks, useDeleteCustomLinkCardQuickLinksMutation, } from './hooks/useDeleteCustomLinkCardQuickLinksMutation';
|
|
30
30
|
export type { DeleteCustomPluginInfoErrorResponse, DeleteCustomPluginInfoMutationPathParams, DeleteCustomPluginInfoMutationQueryParams, DeleteCustomPluginInfoOkResponse, DeleteCustomPluginInfoProps, } from './hooks/useDeleteCustomPluginInfoMutation';
|
|
31
31
|
export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
|
|
32
|
-
export type { DeleteEntityErrorResponse, DeleteEntityMutationPathParams, DeleteEntityOkResponse, DeleteEntityProps, } from './hooks/useDeleteEntityMutation';
|
|
32
|
+
export type { DeleteEntityErrorResponse, DeleteEntityMutationPathParams, DeleteEntityMutationQueryParams, DeleteEntityOkResponse, DeleteEntityProps, } from './hooks/useDeleteEntityMutation';
|
|
33
33
|
export { deleteEntity, useDeleteEntityMutation } from './hooks/useDeleteEntityMutation';
|
|
34
34
|
export type { DeleteGroupErrorResponse, DeleteGroupMutationPathParams, DeleteGroupOkResponse, DeleteGroupProps, } from './hooks/useDeleteGroupMutation';
|
|
35
35
|
export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
|
|
@@ -75,17 +75,17 @@ export type { GetDataPointsForDataSourceErrorResponse, GetDataPointsForDataSourc
|
|
|
75
75
|
export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
|
|
76
76
|
export type { GetDataSourcesDataPointsMapErrorResponse, GetDataSourcesDataPointsMapOkResponse, GetDataSourcesDataPointsMapProps, } from './hooks/useGetDataSourcesDataPointsMapQuery';
|
|
77
77
|
export { getDataSourcesDataPointsMap, useGetDataSourcesDataPointsMapQuery, } from './hooks/useGetDataSourcesDataPointsMapQuery';
|
|
78
|
-
export type { GetEntitiesFiltersByIdErrorResponse, GetEntitiesFiltersByIdOkResponse, GetEntitiesFiltersByIdProps, GetEntitiesFiltersByIdQueryPathParams, GetEntitiesFiltersByIdQueryQueryParams, } from './hooks/useGetEntitiesFiltersByIdQuery';
|
|
79
|
-
export { getEntitiesFiltersById, useGetEntitiesFiltersByIdQuery, } from './hooks/useGetEntitiesFiltersByIdQuery';
|
|
80
78
|
export type { GetEntitiesFiltersErrorResponse, GetEntitiesFiltersOkResponse, GetEntitiesFiltersProps, GetEntitiesFiltersQueryQueryParams, } from './hooks/useGetEntitiesFiltersQuery';
|
|
81
79
|
export { getEntitiesFilters, useGetEntitiesFiltersQuery } from './hooks/useGetEntitiesFiltersQuery';
|
|
80
|
+
export type { GetEntitiesGroupsErrorResponse, GetEntitiesGroupsOkResponse, GetEntitiesGroupsProps, GetEntitiesGroupsQueryQueryParams, } from './hooks/useGetEntitiesGroupsQuery';
|
|
81
|
+
export { getEntitiesGroups, useGetEntitiesGroupsQuery } from './hooks/useGetEntitiesGroupsQuery';
|
|
82
82
|
export type { GetEntitiesKindsErrorResponse, GetEntitiesKindsOkResponse, GetEntitiesKindsProps, GetEntitiesKindsQueryQueryParams, } from './hooks/useGetEntitiesKindsQuery';
|
|
83
83
|
export { getEntitiesKinds, useGetEntitiesKindsQuery } from './hooks/useGetEntitiesKindsQuery';
|
|
84
84
|
export type { GetEntitiesErrorResponse, GetEntitiesOkResponse, GetEntitiesProps, GetEntitiesQueryQueryParams, } from './hooks/useGetEntitiesQuery';
|
|
85
85
|
export { getEntities, useGetEntitiesQuery } from './hooks/useGetEntitiesQuery';
|
|
86
86
|
export type { GetEntityFacetsErrorResponse, GetEntityFacetsOkResponse, GetEntityFacetsProps, GetEntityFacetsQueryQueryParams, } from './hooks/useGetEntityFacetsQuery';
|
|
87
87
|
export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
|
|
88
|
-
export type { GetEntityErrorResponse, GetEntityOkResponse, GetEntityProps, GetEntityQueryPathParams, } from './hooks/useGetEntityQuery';
|
|
88
|
+
export type { GetEntityErrorResponse, GetEntityOkResponse, GetEntityProps, GetEntityQueryPathParams, GetEntityQueryQueryParams, } from './hooks/useGetEntityQuery';
|
|
89
89
|
export { getEntity, useGetEntityQuery } from './hooks/useGetEntityQuery';
|
|
90
90
|
export type { GetEntityRefsErrorResponse, GetEntityRefsOkResponse, GetEntityRefsProps, GetEntityRefsQueryQueryParams, } from './hooks/useGetEntityRefsQuery';
|
|
91
91
|
export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQuery';
|
|
@@ -165,7 +165,7 @@ export type { UpdateConfigurationEntitiesErrorResponse, UpdateConfigurationEntit
|
|
|
165
165
|
export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
|
|
166
166
|
export type { UpdateCustomPluginsInfoErrorResponse, UpdateCustomPluginsInfoMutationPathParams, UpdateCustomPluginsInfoOkResponse, UpdateCustomPluginsInfoProps, UpdateCustomPluginsInfoRequestBody, } from './hooks/useUpdateCustomPluginsInfoMutation';
|
|
167
167
|
export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
|
|
168
|
-
export type { UpdateEntityErrorResponse, UpdateEntityMutationPathParams, UpdateEntityOkResponse, UpdateEntityProps, UpdateEntityRequestBody, } from './hooks/useUpdateEntityMutation';
|
|
168
|
+
export type { UpdateEntityErrorResponse, UpdateEntityMutationPathParams, UpdateEntityMutationQueryParams, UpdateEntityOkResponse, UpdateEntityProps, UpdateEntityRequestBody, } from './hooks/useUpdateEntityMutation';
|
|
169
169
|
export { updateEntity, useUpdateEntityMutation } from './hooks/useUpdateEntityMutation';
|
|
170
170
|
export type { UpdateGroupsErrorResponse, UpdateGroupsOkResponse, UpdateGroupsProps, UpdateGroupsRequestBody, } from './hooks/useUpdateGroupsMutation';
|
|
171
171
|
export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
|
|
@@ -214,9 +214,9 @@ export type { DataSourceDataPointsMapResponseResponse } from './responses/DataSo
|
|
|
214
214
|
export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
|
|
215
215
|
export type { DatapointResponseResponse } from './responses/DatapointResponseResponse';
|
|
216
216
|
export type { DefaultSaveResponseResponse } from './responses/DefaultSaveResponseResponse';
|
|
217
|
+
export type { EntitiesGroupsResponseBodyResponse } from './responses/EntitiesGroupsResponseBodyResponse';
|
|
217
218
|
export type { EntityConvertResponseBodyResponse } from './responses/EntityConvertResponseBodyResponse';
|
|
218
219
|
export type { EntityFiltersResponseBodyListResponse } from './responses/EntityFiltersResponseBodyListResponse';
|
|
219
|
-
export type { EntityFiltersResponseBodyPagedResponse } from './responses/EntityFiltersResponseBodyPagedResponse';
|
|
220
220
|
export type { EntityKindsResponseBodyResponse } from './responses/EntityKindsResponseBodyResponse';
|
|
221
221
|
export type { EntityRefsResponseResponse } from './responses/EntityRefsResponseResponse';
|
|
222
222
|
export type { EntityResponseBodyListResponse } from './responses/EntityResponseBodyListResponse';
|
|
@@ -300,6 +300,8 @@ export type { DataSourceDataPointsMapResponse } from './schemas/DataSourceDataPo
|
|
|
300
300
|
export type { DataSourcesResponse } from './schemas/DataSourcesResponse';
|
|
301
301
|
export type { DefaultSaveResponse } from './schemas/DefaultSaveResponse';
|
|
302
302
|
export type { EntitiesForImport } from './schemas/EntitiesForImport';
|
|
303
|
+
export type { EntitiesGroups } from './schemas/EntitiesGroups';
|
|
304
|
+
export type { EntitiesGroupsResponse } from './schemas/EntitiesGroupsResponse';
|
|
303
305
|
export type { EntityConvertResponse } from './schemas/EntityConvertResponse';
|
|
304
306
|
export type { EntityFiltersResponse } from './schemas/EntityFiltersResponse';
|
|
305
307
|
export type { EntityKindsResponse } from './schemas/EntityKindsResponse';
|
|
@@ -36,8 +36,8 @@ export { getCustomPluginStatusLogs, useGetCustomPluginStatusLogsQuery, } from '.
|
|
|
36
36
|
export { getCustomPluginStatusPluginId, useGetCustomPluginStatusPluginIdQuery, } from './hooks/useGetCustomPluginStatusPluginIdQuery';
|
|
37
37
|
export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
|
|
38
38
|
export { getDataSourcesDataPointsMap, useGetDataSourcesDataPointsMapQuery, } from './hooks/useGetDataSourcesDataPointsMapQuery';
|
|
39
|
-
export { getEntitiesFiltersById, useGetEntitiesFiltersByIdQuery, } from './hooks/useGetEntitiesFiltersByIdQuery';
|
|
40
39
|
export { getEntitiesFilters, useGetEntitiesFiltersQuery } from './hooks/useGetEntitiesFiltersQuery';
|
|
40
|
+
export { getEntitiesGroups, useGetEntitiesGroupsQuery } from './hooks/useGetEntitiesGroupsQuery';
|
|
41
41
|
export { getEntitiesKinds, useGetEntitiesKindsQuery } from './hooks/useGetEntitiesKindsQuery';
|
|
42
42
|
export { getEntities, useGetEntitiesQuery } from './hooks/useGetEntitiesQuery';
|
|
43
43
|
export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { EntityResponse } from '../schemas/EntityResponse';
|
|
2
|
+
/**
|
|
3
|
+
* Entities Groups
|
|
4
|
+
*/
|
|
5
|
+
export interface EntitiesGroups {
|
|
6
|
+
entities?: EntityResponse[];
|
|
7
|
+
group_description?: string;
|
|
8
|
+
group_icon?: string;
|
|
9
|
+
group_identifier?: string;
|
|
10
|
+
group_name?: string;
|
|
11
|
+
org_identifier?: string;
|
|
12
|
+
org_name?: string;
|
|
13
|
+
project_identifier?: string;
|
|
14
|
+
project_name?: string;
|
|
15
|
+
total?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { EntitiesGroups } from '../schemas/EntitiesGroups';
|
|
2
|
+
/**
|
|
3
|
+
* Entity Groups Response Body
|
|
4
|
+
*/
|
|
5
|
+
export interface EntitiesGroupsResponse {
|
|
6
|
+
count?: {
|
|
7
|
+
account?: EntitiesGroups[];
|
|
8
|
+
org?: Array<{
|
|
9
|
+
groups?: EntitiesGroups[];
|
|
10
|
+
org_identifier?: string;
|
|
11
|
+
org_name?: string;
|
|
12
|
+
}>;
|
|
13
|
+
project?: Array<{
|
|
14
|
+
groups?: EntitiesGroups[];
|
|
15
|
+
org_identifier?: string;
|
|
16
|
+
org_name?: string;
|
|
17
|
+
project_identifier?: string;
|
|
18
|
+
project_name?: string;
|
|
19
|
+
}>;
|
|
20
|
+
total?: number;
|
|
21
|
+
};
|
|
22
|
+
data?: {
|
|
23
|
+
account?: {
|
|
24
|
+
with_group?: EntitiesGroups[];
|
|
25
|
+
without_group?: EntitiesGroups[];
|
|
26
|
+
};
|
|
27
|
+
org?: {
|
|
28
|
+
with_group?: EntitiesGroups[];
|
|
29
|
+
without_group?: EntitiesGroups[];
|
|
30
|
+
};
|
|
31
|
+
project?: {
|
|
32
|
+
with_group?: EntitiesGroups[];
|
|
33
|
+
without_group?: EntitiesGroups[];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,6 +4,17 @@
|
|
|
4
4
|
export interface EntityResponse {
|
|
5
5
|
description?: string;
|
|
6
6
|
entity_ref: string;
|
|
7
|
+
groups?: Array<{
|
|
8
|
+
group_description?: string;
|
|
9
|
+
group_icon?: string;
|
|
10
|
+
group_identifier?: string;
|
|
11
|
+
group_name?: string;
|
|
12
|
+
org_identifier?: string;
|
|
13
|
+
org_name?: string;
|
|
14
|
+
project_identifier?: string;
|
|
15
|
+
project_name?: string;
|
|
16
|
+
scope?: 'ACCOUNT' | 'ORGANIZATION' | 'PROJECT';
|
|
17
|
+
}>;
|
|
7
18
|
identifier: string;
|
|
8
19
|
kind: 'api' | 'component' | 'group' | 'resource' | 'user' | 'workflow';
|
|
9
20
|
lifecycle?: string;
|
|
@@ -12,8 +23,10 @@ export interface EntityResponse {
|
|
|
12
23
|
};
|
|
13
24
|
name?: string;
|
|
14
25
|
orgIdentifier?: string;
|
|
26
|
+
org_name?: string;
|
|
15
27
|
owner?: string;
|
|
16
28
|
projectIdentifier?: string;
|
|
29
|
+
project_name?: string;
|
|
17
30
|
referenceType: 'GIT' | 'INLINE';
|
|
18
31
|
scope: 'ACCOUNT' | 'ORGANIZATION' | 'PROJECT';
|
|
19
32
|
scorecards?: {
|
package/package.json
CHANGED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { EntityFiltersResponseBodyPagedResponse } from '../responses/EntityFiltersResponseBodyPagedResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface GetEntitiesFiltersByIdQueryPathParams {
|
|
6
|
-
identifier: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetEntitiesFiltersByIdQueryQueryParams {
|
|
9
|
-
accountIdentifier: string;
|
|
10
|
-
orgIdentifier?: string;
|
|
11
|
-
projectIdentifier?: string;
|
|
12
|
-
kind?: string;
|
|
13
|
-
page?: number;
|
|
14
|
-
/**
|
|
15
|
-
* @default 10
|
|
16
|
-
*/
|
|
17
|
-
limit?: number;
|
|
18
|
-
sort?: string;
|
|
19
|
-
search_term?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface GetEntitiesFiltersByIdQueryHeaderParams {
|
|
22
|
-
'Harness-Account'?: string;
|
|
23
|
-
}
|
|
24
|
-
export type GetEntitiesFiltersByIdOkResponse = ResponseWithPagination<EntityFiltersResponseBodyPagedResponse>;
|
|
25
|
-
export type GetEntitiesFiltersByIdErrorResponse = unknown;
|
|
26
|
-
export interface GetEntitiesFiltersByIdProps extends GetEntitiesFiltersByIdQueryPathParams, Omit<FetcherOptions<GetEntitiesFiltersByIdQueryQueryParams, unknown, GetEntitiesFiltersByIdQueryHeaderParams>, 'url'> {
|
|
27
|
-
queryParams: GetEntitiesFiltersByIdQueryQueryParams;
|
|
28
|
-
}
|
|
29
|
-
export declare function getEntitiesFiltersById(props: GetEntitiesFiltersByIdProps): Promise<GetEntitiesFiltersByIdOkResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* Get Entities Filters By ID.
|
|
32
|
-
*/
|
|
33
|
-
export declare function useGetEntitiesFiltersByIdQuery(props: GetEntitiesFiltersByIdProps, options?: Omit<UseQueryOptions<GetEntitiesFiltersByIdOkResponse, GetEntitiesFiltersByIdErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEntitiesFiltersByIdOkResponse, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 getEntitiesFiltersById(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/entities/get/filters/${props.identifier}`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get Entities Filters By ID.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetEntitiesFiltersByIdQuery(props, options) {
|
|
13
|
-
return useQuery(['get-entities-filters-by-id', props.identifier, props.queryParams], ({ signal }) => getEntitiesFiltersById(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|