@harnessio/react-idp-service-client 0.55.0 → 0.56.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/useConvertEntityMutation.d.ts +22 -0
- package/dist/idp-service/src/services/hooks/useConvertEntityMutation.js +14 -0
- package/dist/idp-service/src/services/hooks/useCreateEntityMutation.d.ts +24 -0
- package/dist/idp-service/src/services/hooks/useCreateEntityMutation.js +14 -0
- package/dist/idp-service/src/services/hooks/useDeleteEntityMutation.d.ts +18 -0
- package/dist/idp-service/src/services/hooks/useDeleteEntityMutation.js +14 -0
- package/dist/idp-service/src/services/hooks/useGetEntitiesFiltersByIdQuery.d.ts +30 -0
- package/dist/idp-service/src/services/hooks/useGetEntitiesFiltersByIdQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useGetEntitiesFiltersQuery.d.ts +23 -0
- package/dist/idp-service/src/services/hooks/useGetEntitiesFiltersQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useGetEntitiesKindsQuery.d.ts +22 -0
- package/dist/idp-service/src/services/hooks/useGetEntitiesKindsQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useGetEntitiesQuery.d.ts +30 -0
- package/dist/idp-service/src/services/hooks/useGetEntitiesQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useGetEntityQuery.d.ts +19 -0
- package/dist/idp-service/src/services/hooks/useGetEntityQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useUpdateEntityMutation.d.ts +22 -0
- package/dist/idp-service/src/services/hooks/useUpdateEntityMutation.js +14 -0
- package/dist/idp-service/src/services/index.d.ts +30 -0
- package/dist/idp-service/src/services/index.js +9 -0
- package/dist/idp-service/src/services/requestBodies/EntityRequestBodyRequestBody.d.ts +2 -0
- package/dist/idp-service/src/services/requestBodies/EntityRequestBodyRequestBody.js +1 -0
- package/dist/idp-service/src/services/responses/EntityConvertResponseBodyResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/EntityConvertResponseBodyResponse.js +1 -0
- package/dist/idp-service/src/services/responses/EntityFiltersResponseBodyListResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/EntityFiltersResponseBodyListResponse.js +1 -0
- package/dist/idp-service/src/services/responses/EntityFiltersResponseBodyPagedResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/EntityFiltersResponseBodyPagedResponse.js +1 -0
- package/dist/idp-service/src/services/responses/EntityKindsResponseBodyResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/EntityKindsResponseBodyResponse.js +1 -0
- package/dist/idp-service/src/services/responses/EntityResponseBodyListResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/EntityResponseBodyListResponse.js +1 -0
- package/dist/idp-service/src/services/responses/EntityResponseBodyResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/EntityResponseBodyResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/EntityConvertResponse.d.ts +6 -0
- package/dist/idp-service/src/services/schemas/EntityConvertResponse.js +4 -0
- package/dist/idp-service/src/services/schemas/EntityFiltersResponse.d.ts +7 -0
- package/dist/idp-service/src/services/schemas/EntityFiltersResponse.js +4 -0
- package/dist/idp-service/src/services/schemas/EntityKindsResponse.d.ts +9 -0
- package/dist/idp-service/src/services/schemas/EntityKindsResponse.js +4 -0
- package/dist/idp-service/src/services/schemas/EntityRequest.d.ts +9 -0
- package/dist/idp-service/src/services/schemas/EntityRequest.js +4 -0
- package/dist/idp-service/src/services/schemas/EntityResponse.d.ts +31 -0
- package/dist/idp-service/src/services/schemas/EntityResponse.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityConvertResponseBodyResponse } from '../responses/EntityConvertResponseBodyResponse';
|
|
3
|
+
import type { EntityRequestBodyRequestBody } from '../requestBodies/EntityRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ConvertEntityMutationPathParams {
|
|
7
|
+
option: 'backstage-to-harness' | 'harness-to-backstage';
|
|
8
|
+
}
|
|
9
|
+
export interface ConvertEntityMutationHeaderParams {
|
|
10
|
+
'Harness-Account'?: string;
|
|
11
|
+
}
|
|
12
|
+
export type ConvertEntityRequestBody = EntityRequestBodyRequestBody;
|
|
13
|
+
export type ConvertEntityOkResponse = ResponseWithPagination<EntityConvertResponseBodyResponse>;
|
|
14
|
+
export type ConvertEntityErrorResponse = unknown;
|
|
15
|
+
export interface ConvertEntityProps extends ConvertEntityMutationPathParams, Omit<FetcherOptions<unknown, ConvertEntityRequestBody, ConvertEntityMutationHeaderParams>, 'url'> {
|
|
16
|
+
body: ConvertEntityRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function convertEntity(props: ConvertEntityProps): Promise<ConvertEntityOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Convert an Entity.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useConvertEntityMutation(options?: Omit<UseMutationOptions<ConvertEntityOkResponse, ConvertEntityErrorResponse, ConvertEntityProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ConvertEntityOkResponse, unknown, ConvertEntityProps, 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 convertEntity(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/convert/${props.option}`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Convert an Entity.
|
|
11
|
+
*/
|
|
12
|
+
export function useConvertEntityMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => convertEntity(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityResponseBodyResponse } from '../responses/EntityResponseBodyResponse';
|
|
3
|
+
import type { EntityRequestBodyRequestBody } from '../requestBodies/EntityRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface CreateEntityMutationQueryParams {
|
|
7
|
+
force_convert?: boolean;
|
|
8
|
+
dry_run?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface CreateEntityMutationHeaderParams {
|
|
11
|
+
'Harness-Account'?: string;
|
|
12
|
+
}
|
|
13
|
+
export type CreateEntityRequestBody = EntityRequestBodyRequestBody;
|
|
14
|
+
export type CreateEntityOkResponse = ResponseWithPagination<EntityResponseBodyResponse>;
|
|
15
|
+
export type CreateEntityErrorResponse = unknown;
|
|
16
|
+
export interface CreateEntityProps extends Omit<FetcherOptions<CreateEntityMutationQueryParams, CreateEntityRequestBody, CreateEntityMutationHeaderParams>, 'url'> {
|
|
17
|
+
queryParams: CreateEntityMutationQueryParams;
|
|
18
|
+
body: CreateEntityRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export declare function createEntity(props: CreateEntityProps): Promise<CreateEntityOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Create an Entity
|
|
23
|
+
*/
|
|
24
|
+
export declare function useCreateEntityMutation(options?: Omit<UseMutationOptions<CreateEntityOkResponse, CreateEntityErrorResponse, CreateEntityProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateEntityOkResponse, unknown, CreateEntityProps, 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 createEntity(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create an Entity
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateEntityMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createEntity(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
3
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
4
|
+
export interface DeleteEntityMutationPathParams {
|
|
5
|
+
'entity-ref': string;
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteEntityMutationHeaderParams {
|
|
8
|
+
'Harness-Account'?: string;
|
|
9
|
+
}
|
|
10
|
+
export type DeleteEntityOkResponse = ResponseWithPagination<unknown>;
|
|
11
|
+
export type DeleteEntityErrorResponse = unknown;
|
|
12
|
+
export interface DeleteEntityProps extends DeleteEntityMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteEntityMutationHeaderParams>, 'url'> {
|
|
13
|
+
}
|
|
14
|
+
export declare function deleteEntity(props: DeleteEntityProps): Promise<DeleteEntityOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Delete an Entity.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useDeleteEntityMutation(options?: Omit<UseMutationOptions<DeleteEntityOkResponse, DeleteEntityErrorResponse, DeleteEntityProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteEntityOkResponse, unknown, DeleteEntityProps, 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 deleteEntity(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/${props['entity-ref']}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete an Entity.
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteEntityMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteEntity(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
limit?: number;
|
|
15
|
+
sort?: string;
|
|
16
|
+
search_term?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface GetEntitiesFiltersByIdQueryHeaderParams {
|
|
19
|
+
'Harness-Account'?: string;
|
|
20
|
+
}
|
|
21
|
+
export type GetEntitiesFiltersByIdOkResponse = ResponseWithPagination<EntityFiltersResponseBodyPagedResponse>;
|
|
22
|
+
export type GetEntitiesFiltersByIdErrorResponse = unknown;
|
|
23
|
+
export interface GetEntitiesFiltersByIdProps extends GetEntitiesFiltersByIdQueryPathParams, Omit<FetcherOptions<GetEntitiesFiltersByIdQueryQueryParams, unknown, GetEntitiesFiltersByIdQueryHeaderParams>, 'url'> {
|
|
24
|
+
queryParams: GetEntitiesFiltersByIdQueryQueryParams;
|
|
25
|
+
}
|
|
26
|
+
export declare function getEntitiesFiltersById(props: GetEntitiesFiltersByIdProps): Promise<GetEntitiesFiltersByIdOkResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Get Entities Filters By ID.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useGetEntitiesFiltersByIdQuery(props: GetEntitiesFiltersByIdProps, options?: Omit<UseQueryOptions<GetEntitiesFiltersByIdOkResponse, GetEntitiesFiltersByIdErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEntitiesFiltersByIdOkResponse, 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 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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityFiltersResponseBodyListResponse } from '../responses/EntityFiltersResponseBodyListResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetEntitiesFiltersQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
kind?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetEntitiesFiltersQueryHeaderParams {
|
|
12
|
+
'Harness-Account'?: string;
|
|
13
|
+
}
|
|
14
|
+
export type GetEntitiesFiltersOkResponse = ResponseWithPagination<EntityFiltersResponseBodyListResponse>;
|
|
15
|
+
export type GetEntitiesFiltersErrorResponse = unknown;
|
|
16
|
+
export interface GetEntitiesFiltersProps extends Omit<FetcherOptions<GetEntitiesFiltersQueryQueryParams, unknown, GetEntitiesFiltersQueryHeaderParams>, 'url'> {
|
|
17
|
+
queryParams: GetEntitiesFiltersQueryQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export declare function getEntitiesFilters(props: GetEntitiesFiltersProps): Promise<GetEntitiesFiltersOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Get Entities Filters.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useGetEntitiesFiltersQuery(props: GetEntitiesFiltersProps, options?: Omit<UseQueryOptions<GetEntitiesFiltersOkResponse, GetEntitiesFiltersErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEntitiesFiltersOkResponse, 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 getEntitiesFilters(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/get/filters`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Entities Filters.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEntitiesFiltersQuery(props, options) {
|
|
13
|
+
return useQuery(['get-entities-filters', props.queryParams], ({ signal }) => getEntitiesFilters(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityKindsResponseBodyResponse } from '../responses/EntityKindsResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetEntitiesKindsQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetEntitiesKindsQueryHeaderParams {
|
|
11
|
+
'Harness-Account'?: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetEntitiesKindsOkResponse = ResponseWithPagination<EntityKindsResponseBodyResponse>;
|
|
14
|
+
export type GetEntitiesKindsErrorResponse = unknown;
|
|
15
|
+
export interface GetEntitiesKindsProps extends Omit<FetcherOptions<GetEntitiesKindsQueryQueryParams, unknown, GetEntitiesKindsQueryHeaderParams>, 'url'> {
|
|
16
|
+
queryParams: GetEntitiesKindsQueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export declare function getEntitiesKinds(props: GetEntitiesKindsProps): Promise<GetEntitiesKindsOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get Entities Kinds.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useGetEntitiesKindsQuery(props: GetEntitiesKindsProps, options?: Omit<UseQueryOptions<GetEntitiesKindsOkResponse, GetEntitiesKindsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEntitiesKindsOkResponse, 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 getEntitiesKinds(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/get/kinds`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Entities Kinds.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEntitiesKindsQuery(props, options) {
|
|
13
|
+
return useQuery(['get-entities-kinds', props.queryParams], ({ signal }) => getEntitiesKinds(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityResponseBodyListResponse } from '../responses/EntityResponseBodyListResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetEntitiesQueryQueryParams {
|
|
6
|
+
page?: number;
|
|
7
|
+
limit?: number;
|
|
8
|
+
sort?: string;
|
|
9
|
+
search_term?: string;
|
|
10
|
+
entity_refs?: string;
|
|
11
|
+
owned_by_me?: boolean;
|
|
12
|
+
kind?: string;
|
|
13
|
+
type?: string;
|
|
14
|
+
owner?: string;
|
|
15
|
+
lifecycle?: string;
|
|
16
|
+
tags?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface GetEntitiesQueryHeaderParams {
|
|
19
|
+
'Harness-Account'?: string;
|
|
20
|
+
}
|
|
21
|
+
export type GetEntitiesOkResponse = ResponseWithPagination<EntityResponseBodyListResponse>;
|
|
22
|
+
export type GetEntitiesErrorResponse = unknown;
|
|
23
|
+
export interface GetEntitiesProps extends Omit<FetcherOptions<GetEntitiesQueryQueryParams, unknown, GetEntitiesQueryHeaderParams>, 'url'> {
|
|
24
|
+
queryParams: GetEntitiesQueryQueryParams;
|
|
25
|
+
}
|
|
26
|
+
export declare function getEntities(props: GetEntitiesProps): Promise<GetEntitiesOkResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Get Entities.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useGetEntitiesQuery(props: GetEntitiesProps, options?: Omit<UseQueryOptions<GetEntitiesOkResponse, GetEntitiesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEntitiesOkResponse, 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 getEntities(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Entities.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEntitiesQuery(props, options) {
|
|
13
|
+
return useQuery(['get-entities', props.queryParams], ({ signal }) => getEntities(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityResponseBodyResponse } from '../responses/EntityResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetEntityQueryPathParams {
|
|
6
|
+
'entity-ref': string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetEntityQueryHeaderParams {
|
|
9
|
+
'Harness-Account'?: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetEntityOkResponse = ResponseWithPagination<EntityResponseBodyResponse>;
|
|
12
|
+
export type GetEntityErrorResponse = unknown;
|
|
13
|
+
export interface GetEntityProps extends GetEntityQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetEntityQueryHeaderParams>, 'url'> {
|
|
14
|
+
}
|
|
15
|
+
export declare function getEntity(props: GetEntityProps): Promise<GetEntityOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get Entity.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGetEntityQuery(props: GetEntityProps, options?: Omit<UseQueryOptions<GetEntityOkResponse, GetEntityErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEntityOkResponse, 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 getEntity(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/${props['entity-ref']}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Entity.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEntityQuery(props, options) {
|
|
13
|
+
return useQuery(['get-entity', props['entity-ref']], ({ signal }) => getEntity(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityResponseBodyResponse } from '../responses/EntityResponseBodyResponse';
|
|
3
|
+
import type { EntityRequestBodyRequestBody } from '../requestBodies/EntityRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface UpdateEntityMutationPathParams {
|
|
7
|
+
'entity-ref': string;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateEntityMutationHeaderParams {
|
|
10
|
+
'Harness-Account'?: string;
|
|
11
|
+
}
|
|
12
|
+
export type UpdateEntityRequestBody = EntityRequestBodyRequestBody;
|
|
13
|
+
export type UpdateEntityOkResponse = ResponseWithPagination<EntityResponseBodyResponse>;
|
|
14
|
+
export type UpdateEntityErrorResponse = unknown;
|
|
15
|
+
export interface UpdateEntityProps extends UpdateEntityMutationPathParams, Omit<FetcherOptions<unknown, UpdateEntityRequestBody, UpdateEntityMutationHeaderParams>, 'url'> {
|
|
16
|
+
body: UpdateEntityRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function updateEntity(props: UpdateEntityProps): Promise<UpdateEntityOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Update an Entity.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateEntityMutation(options?: Omit<UseMutationOptions<UpdateEntityOkResponse, UpdateEntityErrorResponse, UpdateEntityProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateEntityOkResponse, unknown, UpdateEntityProps, 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 updateEntity(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/${props['entity-ref']}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update an Entity.
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateEntityMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateEntity(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -3,12 +3,16 @@ export type { CdEntitiesCountErrorResponse, CdEntitiesCountOkResponse, CdEntitie
|
|
|
3
3
|
export { cdEntitiesCount, useCdEntitiesCountQuery } from './hooks/useCdEntitiesCountQuery';
|
|
4
4
|
export type { CdEntitiesFetchErrorResponse, CdEntitiesFetchOkResponse, CdEntitiesFetchProps, CdEntitiesFetchQueryQueryParams, CdEntitiesFetchRequestBody, } from './hooks/useCdEntitiesFetchQuery';
|
|
5
5
|
export { cdEntitiesFetch, useCdEntitiesFetchQuery } from './hooks/useCdEntitiesFetchQuery';
|
|
6
|
+
export type { ConvertEntityErrorResponse, ConvertEntityMutationPathParams, ConvertEntityOkResponse, ConvertEntityProps, ConvertEntityRequestBody, } from './hooks/useConvertEntityMutation';
|
|
7
|
+
export { convertEntity, useConvertEntityMutation } from './hooks/useConvertEntityMutation';
|
|
6
8
|
export type { CreateBackstageEnvVariablesErrorResponse, CreateBackstageEnvVariablesOkResponse, CreateBackstageEnvVariablesProps, CreateBackstageEnvVariablesRequestBody, } from './hooks/useCreateBackstageEnvVariablesMutation';
|
|
7
9
|
export { createBackstageEnvVariables, useCreateBackstageEnvVariablesMutation, } from './hooks/useCreateBackstageEnvVariablesMutation';
|
|
8
10
|
export type { CreateBackstagePermissionsErrorResponse, CreateBackstagePermissionsOkResponse, CreateBackstagePermissionsProps, CreateBackstagePermissionsRequestBody, } from './hooks/useCreateBackstagePermissionsMutation';
|
|
9
11
|
export { createBackstagePermissions, useCreateBackstagePermissionsMutation, } from './hooks/useCreateBackstagePermissionsMutation';
|
|
10
12
|
export type { CreateCheckErrorResponse, CreateCheckOkResponse, CreateCheckProps, CreateCheckRequestBody, } from './hooks/useCreateCheckMutation';
|
|
11
13
|
export { createCheck, useCreateCheckMutation } from './hooks/useCreateCheckMutation';
|
|
14
|
+
export type { CreateEntityErrorResponse, CreateEntityMutationQueryParams, CreateEntityOkResponse, CreateEntityProps, CreateEntityRequestBody, } from './hooks/useCreateEntityMutation';
|
|
15
|
+
export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMutation';
|
|
12
16
|
export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParams, CreateIntegrationMutationQueryParams, CreateIntegrationOkResponse, CreateIntegrationProps, CreateIntegrationRequestBody, } from './hooks/useCreateIntegrationMutation';
|
|
13
17
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
14
18
|
export type { CreateLayoutErrorResponse, CreateLayoutOkResponse, CreateLayoutProps, CreateLayoutRequestBody, } from './hooks/useCreateLayoutMutation';
|
|
@@ -25,6 +29,8 @@ export type { DeleteCustomLinkCardQuickLinksErrorResponse, DeleteCustomLinkCardQ
|
|
|
25
29
|
export { deleteCustomLinkCardQuickLinks, useDeleteCustomLinkCardQuickLinksMutation, } from './hooks/useDeleteCustomLinkCardQuickLinksMutation';
|
|
26
30
|
export type { DeleteCustomPluginInfoErrorResponse, DeleteCustomPluginInfoMutationPathParams, DeleteCustomPluginInfoMutationQueryParams, DeleteCustomPluginInfoOkResponse, DeleteCustomPluginInfoProps, } from './hooks/useDeleteCustomPluginInfoMutation';
|
|
27
31
|
export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
|
|
32
|
+
export type { DeleteEntityErrorResponse, DeleteEntityMutationPathParams, DeleteEntityOkResponse, DeleteEntityProps, } from './hooks/useDeleteEntityMutation';
|
|
33
|
+
export { deleteEntity, useDeleteEntityMutation } from './hooks/useDeleteEntityMutation';
|
|
28
34
|
export type { DeleteGroupErrorResponse, DeleteGroupMutationPathParams, DeleteGroupOkResponse, DeleteGroupProps, } from './hooks/useDeleteGroupMutation';
|
|
29
35
|
export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
|
|
30
36
|
export type { DeleteHeadersQuickLinksIconErrorResponse, DeleteHeadersQuickLinksIconMutationPathParams, DeleteHeadersQuickLinksIconOkResponse, DeleteHeadersQuickLinksIconProps, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
|
|
@@ -69,8 +75,18 @@ export type { GetDataPointsForDataSourceErrorResponse, GetDataPointsForDataSourc
|
|
|
69
75
|
export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
|
|
70
76
|
export type { GetDataSourcesDataPointsMapErrorResponse, GetDataSourcesDataPointsMapOkResponse, GetDataSourcesDataPointsMapProps, } from './hooks/useGetDataSourcesDataPointsMapQuery';
|
|
71
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
|
+
export type { GetEntitiesFiltersErrorResponse, GetEntitiesFiltersOkResponse, GetEntitiesFiltersProps, GetEntitiesFiltersQueryQueryParams, } from './hooks/useGetEntitiesFiltersQuery';
|
|
81
|
+
export { getEntitiesFilters, useGetEntitiesFiltersQuery } from './hooks/useGetEntitiesFiltersQuery';
|
|
82
|
+
export type { GetEntitiesKindsErrorResponse, GetEntitiesKindsOkResponse, GetEntitiesKindsProps, GetEntitiesKindsQueryQueryParams, } from './hooks/useGetEntitiesKindsQuery';
|
|
83
|
+
export { getEntitiesKinds, useGetEntitiesKindsQuery } from './hooks/useGetEntitiesKindsQuery';
|
|
84
|
+
export type { GetEntitiesErrorResponse, GetEntitiesOkResponse, GetEntitiesProps, GetEntitiesQueryQueryParams, } from './hooks/useGetEntitiesQuery';
|
|
85
|
+
export { getEntities, useGetEntitiesQuery } from './hooks/useGetEntitiesQuery';
|
|
72
86
|
export type { GetEntityFacetsErrorResponse, GetEntityFacetsOkResponse, GetEntityFacetsProps, GetEntityFacetsQueryQueryParams, } from './hooks/useGetEntityFacetsQuery';
|
|
73
87
|
export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
|
|
88
|
+
export type { GetEntityErrorResponse, GetEntityOkResponse, GetEntityProps, GetEntityQueryPathParams, } from './hooks/useGetEntityQuery';
|
|
89
|
+
export { getEntity, useGetEntityQuery } from './hooks/useGetEntityQuery';
|
|
74
90
|
export type { GetEntityRefsErrorResponse, GetEntityRefsOkResponse, GetEntityRefsProps, GetEntityRefsQueryQueryParams, } from './hooks/useGetEntityRefsQuery';
|
|
75
91
|
export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQuery';
|
|
76
92
|
export type { GetGroupDetailsErrorResponse, GetGroupDetailsOkResponse, GetGroupDetailsProps, GetGroupDetailsQueryPathParams, } from './hooks/useGetGroupDetailsQuery';
|
|
@@ -149,6 +165,8 @@ export type { UpdateConfigurationEntitiesErrorResponse, UpdateConfigurationEntit
|
|
|
149
165
|
export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
|
|
150
166
|
export type { UpdateCustomPluginsInfoErrorResponse, UpdateCustomPluginsInfoMutationPathParams, UpdateCustomPluginsInfoOkResponse, UpdateCustomPluginsInfoProps, UpdateCustomPluginsInfoRequestBody, } from './hooks/useUpdateCustomPluginsInfoMutation';
|
|
151
167
|
export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
|
|
168
|
+
export type { UpdateEntityErrorResponse, UpdateEntityMutationPathParams, UpdateEntityOkResponse, UpdateEntityProps, UpdateEntityRequestBody, } from './hooks/useUpdateEntityMutation';
|
|
169
|
+
export { updateEntity, useUpdateEntityMutation } from './hooks/useUpdateEntityMutation';
|
|
152
170
|
export type { UpdateGroupsErrorResponse, UpdateGroupsOkResponse, UpdateGroupsProps, UpdateGroupsRequestBody, } from './hooks/useUpdateGroupsMutation';
|
|
153
171
|
export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
|
|
154
172
|
export type { UpdateIntegrationErrorResponse, UpdateIntegrationMutationPathParams, UpdateIntegrationMutationQueryParams, UpdateIntegrationOkResponse, UpdateIntegrationProps, UpdateIntegrationRequestBody, } from './hooks/useUpdateIntegrationMutation';
|
|
@@ -164,6 +182,7 @@ export type { ConfigurationEntitiesRequestRequestBody } from './requestBodies/Co
|
|
|
164
182
|
export type { ConnectorInfoRequestRequestBody } from './requestBodies/ConnectorInfoRequestRequestBody';
|
|
165
183
|
export type { CustomPluginCreateRequestRequestBody } from './requestBodies/CustomPluginCreateRequestRequestBody';
|
|
166
184
|
export type { CustomPluginInfoRequestRequestBody } from './requestBodies/CustomPluginInfoRequestRequestBody';
|
|
185
|
+
export type { EntityRequestBodyRequestBody } from './requestBodies/EntityRequestBodyRequestBody';
|
|
167
186
|
export type { GenerateYamlRequestRequestBody } from './requestBodies/GenerateYamlRequestRequestBody';
|
|
168
187
|
export type { GroupRequestListRequestBody } from './requestBodies/GroupRequestListRequestBody';
|
|
169
188
|
export type { GroupRequestRequestBody } from './requestBodies/GroupRequestRequestBody';
|
|
@@ -195,7 +214,13 @@ export type { DataSourceDataPointsMapResponseResponse } from './responses/DataSo
|
|
|
195
214
|
export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
|
|
196
215
|
export type { DatapointResponseResponse } from './responses/DatapointResponseResponse';
|
|
197
216
|
export type { DefaultSaveResponseResponse } from './responses/DefaultSaveResponseResponse';
|
|
217
|
+
export type { EntityConvertResponseBodyResponse } from './responses/EntityConvertResponseBodyResponse';
|
|
218
|
+
export type { EntityFiltersResponseBodyListResponse } from './responses/EntityFiltersResponseBodyListResponse';
|
|
219
|
+
export type { EntityFiltersResponseBodyPagedResponse } from './responses/EntityFiltersResponseBodyPagedResponse';
|
|
220
|
+
export type { EntityKindsResponseBodyResponse } from './responses/EntityKindsResponseBodyResponse';
|
|
198
221
|
export type { EntityRefsResponseResponse } from './responses/EntityRefsResponseResponse';
|
|
222
|
+
export type { EntityResponseBodyListResponse } from './responses/EntityResponseBodyListResponse';
|
|
223
|
+
export type { EntityResponseBodyResponse } from './responses/EntityResponseBodyResponse';
|
|
199
224
|
export type { FacetsResponseResponse } from './responses/FacetsResponseResponse';
|
|
200
225
|
export type { GenerateYamlResponseResponse } from './responses/GenerateYamlResponseResponse';
|
|
201
226
|
export type { GroupResponseListResponse } from './responses/GroupResponseListResponse';
|
|
@@ -276,7 +301,12 @@ export type { DataSourceDataPointsMapResponse } from './schemas/DataSourceDataPo
|
|
|
276
301
|
export type { DataSourcesResponse } from './schemas/DataSourcesResponse';
|
|
277
302
|
export type { DefaultSaveResponse } from './schemas/DefaultSaveResponse';
|
|
278
303
|
export type { EntitiesForImport } from './schemas/EntitiesForImport';
|
|
304
|
+
export type { EntityConvertResponse } from './schemas/EntityConvertResponse';
|
|
305
|
+
export type { EntityFiltersResponse } from './schemas/EntityFiltersResponse';
|
|
306
|
+
export type { EntityKindsResponse } from './schemas/EntityKindsResponse';
|
|
279
307
|
export type { EntityRefs } from './schemas/EntityRefs';
|
|
308
|
+
export type { EntityRequest } from './schemas/EntityRequest';
|
|
309
|
+
export type { EntityResponse } from './schemas/EntityResponse';
|
|
280
310
|
export type { ExportDetails } from './schemas/ExportDetails';
|
|
281
311
|
export type { Exports } from './schemas/Exports';
|
|
282
312
|
export type { Facets } from './schemas/Facets';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export { cdEntitiesCount, useCdEntitiesCountQuery } from './hooks/useCdEntitiesCountQuery';
|
|
2
2
|
export { cdEntitiesFetch, useCdEntitiesFetchQuery } from './hooks/useCdEntitiesFetchQuery';
|
|
3
|
+
export { convertEntity, useConvertEntityMutation } from './hooks/useConvertEntityMutation';
|
|
3
4
|
export { createBackstageEnvVariables, useCreateBackstageEnvVariablesMutation, } from './hooks/useCreateBackstageEnvVariablesMutation';
|
|
4
5
|
export { createBackstagePermissions, useCreateBackstagePermissionsMutation, } from './hooks/useCreateBackstagePermissionsMutation';
|
|
5
6
|
export { createCheck, useCreateCheckMutation } from './hooks/useCreateCheckMutation';
|
|
7
|
+
export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMutation';
|
|
6
8
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
7
9
|
export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
|
|
8
10
|
export { createPluginRequestV2, useCreatePluginRequestV2Mutation, } from './hooks/useCreatePluginRequestV2Mutation';
|
|
@@ -11,6 +13,7 @@ export { customPluginsTrigger, useCustomPluginsTriggerMutation, } from './hooks/
|
|
|
11
13
|
export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
|
|
12
14
|
export { deleteCustomLinkCardQuickLinks, useDeleteCustomLinkCardQuickLinksMutation, } from './hooks/useDeleteCustomLinkCardQuickLinksMutation';
|
|
13
15
|
export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
|
|
16
|
+
export { deleteEntity, useDeleteEntityMutation } from './hooks/useDeleteEntityMutation';
|
|
14
17
|
export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
|
|
15
18
|
export { deleteHeadersQuickLinksIcon, useDeleteHeadersQuickLinksIconMutation, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
|
|
16
19
|
export { deleteHomePageLayoutCardsIcon, useDeleteHomePageLayoutCardsIconMutation, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
|
|
@@ -33,7 +36,12 @@ export { getCustomPluginStatusLogs, useGetCustomPluginStatusLogsQuery, } from '.
|
|
|
33
36
|
export { getCustomPluginStatusPluginId, useGetCustomPluginStatusPluginIdQuery, } from './hooks/useGetCustomPluginStatusPluginIdQuery';
|
|
34
37
|
export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
|
|
35
38
|
export { getDataSourcesDataPointsMap, useGetDataSourcesDataPointsMapQuery, } from './hooks/useGetDataSourcesDataPointsMapQuery';
|
|
39
|
+
export { getEntitiesFiltersById, useGetEntitiesFiltersByIdQuery, } from './hooks/useGetEntitiesFiltersByIdQuery';
|
|
40
|
+
export { getEntitiesFilters, useGetEntitiesFiltersQuery } from './hooks/useGetEntitiesFiltersQuery';
|
|
41
|
+
export { getEntitiesKinds, useGetEntitiesKindsQuery } from './hooks/useGetEntitiesKindsQuery';
|
|
42
|
+
export { getEntities, useGetEntitiesQuery } from './hooks/useGetEntitiesQuery';
|
|
36
43
|
export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
|
|
44
|
+
export { getEntity, useGetEntityQuery } from './hooks/useGetEntityQuery';
|
|
37
45
|
export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQuery';
|
|
38
46
|
export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDetailsQuery';
|
|
39
47
|
export { getGroupsYaml, useGetGroupsYamlQuery } from './hooks/useGetGroupsYamlQuery';
|
|
@@ -73,6 +81,7 @@ export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } fr
|
|
|
73
81
|
export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutation';
|
|
74
82
|
export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
|
|
75
83
|
export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
|
|
84
|
+
export { updateEntity, useUpdateEntityMutation } from './hooks/useUpdateEntityMutation';
|
|
76
85
|
export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
|
|
77
86
|
export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
|
|
78
87
|
export { updatePluginRequestV2, useUpdatePluginRequestV2Mutation, } from './hooks/useUpdatePluginRequestV2Mutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entity Response Body
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityResponse {
|
|
5
|
+
description?: string;
|
|
6
|
+
identifier: string;
|
|
7
|
+
kind: 'api' | 'component' | 'group' | 'resource' | 'user' | 'workflow';
|
|
8
|
+
name?: string;
|
|
9
|
+
orgIdentifier?: string;
|
|
10
|
+
owner?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
referenceType: 'GIT' | 'INLINE';
|
|
13
|
+
scope: 'ACCOUNT' | 'ORGANIZATION' | 'PROJECT';
|
|
14
|
+
scorecards?: {
|
|
15
|
+
average?: number;
|
|
16
|
+
scores?: Array<{
|
|
17
|
+
passed_checks?: number;
|
|
18
|
+
score?: number;
|
|
19
|
+
scorecard?: string;
|
|
20
|
+
total_checks?: number;
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
23
|
+
status?: Array<{
|
|
24
|
+
level?: string;
|
|
25
|
+
message?: string;
|
|
26
|
+
type?: string;
|
|
27
|
+
}>;
|
|
28
|
+
tags?: string[];
|
|
29
|
+
type?: string;
|
|
30
|
+
yaml: string;
|
|
31
|
+
}
|