@harnessio/react-idp-service-client 0.56.0 → 0.58.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/useGetEntityFacetsQuery.d.ts +2 -2
- 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/index.d.ts +0 -2
- package/dist/idp-service/src/services/schemas/EntityResponse.d.ts +3 -0
- package/package.json +1 -1
- package/dist/idp-service/src/services/responses/FacetsResponseResponse.d.ts +0 -2
- package/dist/idp-service/src/services/responses/FacetsResponseResponse.js +0 -1
- package/dist/idp-service/src/services/schemas/Facets.d.ts +0 -6
- package/dist/idp-service/src/services/schemas/Facets.js +0 -4
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { EntityFiltersResponseBodyListResponse } from '../responses/EntityFiltersResponseBodyListResponse';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetEntityFacetsQueryQueryParams {
|
|
@@ -8,7 +8,7 @@ export interface GetEntityFacetsQueryQueryParams {
|
|
|
8
8
|
export interface GetEntityFacetsQueryHeaderParams {
|
|
9
9
|
'Harness-Account'?: string;
|
|
10
10
|
}
|
|
11
|
-
export type GetEntityFacetsOkResponse = ResponseWithPagination<
|
|
11
|
+
export type GetEntityFacetsOkResponse = ResponseWithPagination<EntityFiltersResponseBodyListResponse>;
|
|
12
12
|
export type GetEntityFacetsErrorResponse = unknown;
|
|
13
13
|
export interface GetEntityFacetsProps extends Omit<FetcherOptions<GetEntityFacetsQueryQueryParams, unknown, GetEntityFacetsQueryHeaderParams>, 'url'> {
|
|
14
14
|
queryParams: GetEntityFacetsQueryQueryParams;
|
|
@@ -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 {
|
|
@@ -221,7 +221,6 @@ export type { EntityKindsResponseBodyResponse } from './responses/EntityKindsRes
|
|
|
221
221
|
export type { EntityRefsResponseResponse } from './responses/EntityRefsResponseResponse';
|
|
222
222
|
export type { EntityResponseBodyListResponse } from './responses/EntityResponseBodyListResponse';
|
|
223
223
|
export type { EntityResponseBodyResponse } from './responses/EntityResponseBodyResponse';
|
|
224
|
-
export type { FacetsResponseResponse } from './responses/FacetsResponseResponse';
|
|
225
224
|
export type { GenerateYamlResponseResponse } from './responses/GenerateYamlResponseResponse';
|
|
226
225
|
export type { GroupResponseListResponse } from './responses/GroupResponseListResponse';
|
|
227
226
|
export type { GroupResponseResponse } from './responses/GroupResponseResponse';
|
|
@@ -309,7 +308,6 @@ export type { EntityRequest } from './schemas/EntityRequest';
|
|
|
309
308
|
export type { EntityResponse } from './schemas/EntityResponse';
|
|
310
309
|
export type { ExportDetails } from './schemas/ExportDetails';
|
|
311
310
|
export type { Exports } from './schemas/Exports';
|
|
312
|
-
export type { Facets } from './schemas/Facets';
|
|
313
311
|
export type { GenerateYamlRequest } from './schemas/GenerateYamlRequest';
|
|
314
312
|
export type { GenerateYamlResponse } from './schemas/GenerateYamlResponse';
|
|
315
313
|
export type { GitIntegrationRequest } from './schemas/GitIntegrationRequest';
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|