@harnessio/react-idp-service-client 0.56.0 → 0.57.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/useCdEntitiesFetchQuery.d.ts +3 -0
- package/dist/idp-service/src/services/hooks/useCreateEntityMutation.d.ts +1 -1
- package/dist/idp-service/src/services/hooks/useCreateEntityMutation.js +1 -1
- package/dist/idp-service/src/services/hooks/useGetChecksQuery.d.ts +3 -0
- package/dist/idp-service/src/services/hooks/useGetEntitiesFiltersByIdQuery.d.ts +3 -0
- package/dist/idp-service/src/services/hooks/useGetEntitiesQuery.d.ts +4 -0
- package/dist/idp-service/src/services/hooks/useGetHarnessEntitiesQuery.d.ts +3 -0
- package/dist/idp-service/src/services/hooks/useGetIntegrationsQuery.d.ts +3 -0
- package/dist/idp-service/src/services/hooks/useGetPluginRequestV2Query.d.ts +3 -0
- package/dist/idp-service/src/services/hooks/useGetWorkflowsForAccountQuery.d.ts +3 -0
- package/dist/idp-service/src/services/schemas/EntityResponse.d.ts +3 -0
- package/package.json +1 -1
|
@@ -5,6 +5,9 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface CdEntitiesFetchQueryQueryParams {
|
|
7
7
|
page?: number;
|
|
8
|
+
/**
|
|
9
|
+
* @default 10
|
|
10
|
+
*/
|
|
8
11
|
limit?: number;
|
|
9
12
|
search_term?: string;
|
|
10
13
|
}
|
|
@@ -19,6 +19,6 @@ export interface CreateEntityProps extends Omit<FetcherOptions<CreateEntityMutat
|
|
|
19
19
|
}
|
|
20
20
|
export declare function createEntity(props: CreateEntityProps): Promise<CreateEntityOkResponse>;
|
|
21
21
|
/**
|
|
22
|
-
* Create an Entity
|
|
22
|
+
* Create an Entity.
|
|
23
23
|
*/
|
|
24
24
|
export declare function useCreateEntityMutation(options?: Omit<UseMutationOptions<CreateEntityOkResponse, CreateEntityErrorResponse, CreateEntityProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateEntityOkResponse, unknown, CreateEntityProps, unknown>;
|
|
@@ -7,7 +7,7 @@ export function createEntity(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/entities`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Create an Entity
|
|
10
|
+
* Create an Entity.
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateEntityMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => createEntity(mutateProps), options);
|
|
@@ -4,11 +4,15 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetEntitiesQueryQueryParams {
|
|
6
6
|
page?: number;
|
|
7
|
+
/**
|
|
8
|
+
* @default 10
|
|
9
|
+
*/
|
|
7
10
|
limit?: number;
|
|
8
11
|
sort?: string;
|
|
9
12
|
search_term?: string;
|
|
10
13
|
entity_refs?: string;
|
|
11
14
|
owned_by_me?: boolean;
|
|
15
|
+
favorites?: boolean;
|
|
12
16
|
kind?: string;
|
|
13
17
|
type?: string;
|
|
14
18
|
owner?: string;
|
|
@@ -4,6 +4,9 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetHarnessEntitiesQueryQueryParams {
|
|
6
6
|
page?: number;
|
|
7
|
+
/**
|
|
8
|
+
* @default 10
|
|
9
|
+
*/
|
|
7
10
|
limit?: number;
|
|
8
11
|
sort?: string;
|
|
9
12
|
order?: string;
|
|
@@ -4,6 +4,9 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetPluginRequestV2QueryQueryParams {
|
|
6
6
|
page?: number;
|
|
7
|
+
/**
|
|
8
|
+
* @default 10
|
|
9
|
+
*/
|
|
7
10
|
limit?: number;
|
|
8
11
|
}
|
|
9
12
|
export interface GetPluginRequestV2QueryHeaderParams {
|
|
@@ -4,6 +4,9 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetWorkflowsForAccountQueryQueryParams {
|
|
6
6
|
page?: number;
|
|
7
|
+
/**
|
|
8
|
+
* @default 10
|
|
9
|
+
*/
|
|
7
10
|
limit?: number;
|
|
8
11
|
}
|
|
9
12
|
export interface GetWorkflowsForAccountQueryHeaderParams {
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface EntityResponse {
|
|
5
5
|
description?: string;
|
|
6
|
+
entity_ref: string;
|
|
6
7
|
identifier: string;
|
|
7
8
|
kind: 'api' | 'component' | 'group' | 'resource' | 'user' | 'workflow';
|
|
9
|
+
lifecycle?: string;
|
|
8
10
|
name?: string;
|
|
9
11
|
orgIdentifier?: string;
|
|
10
12
|
owner?: string;
|
|
@@ -20,6 +22,7 @@ export interface EntityResponse {
|
|
|
20
22
|
total_checks?: number;
|
|
21
23
|
}>;
|
|
22
24
|
};
|
|
25
|
+
starred?: boolean;
|
|
23
26
|
status?: Array<{
|
|
24
27
|
level?: string;
|
|
25
28
|
message?: string;
|