@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.
@@ -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);
@@ -5,6 +5,9 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface GetChecksQueryQueryParams {
6
6
  custom?: boolean;
7
7
  page?: number;
8
+ /**
9
+ * @default 10
10
+ */
8
11
  limit?: number;
9
12
  sort?: string;
10
13
  search_term?: string;
@@ -11,6 +11,9 @@ export interface GetEntitiesFiltersByIdQueryQueryParams {
11
11
  projectIdentifier?: string;
12
12
  kind?: string;
13
13
  page?: number;
14
+ /**
15
+ * @default 10
16
+ */
14
17
  limit?: number;
15
18
  sort?: string;
16
19
  search_term?: string;
@@ -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 { FacetsResponseResponse } from '../responses/FacetsResponseResponse';
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<FacetsResponseResponse>;
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;
@@ -7,6 +7,9 @@ export interface GetIntegrationsQueryPathParams {
7
7
  }
8
8
  export interface GetIntegrationsQueryQueryParams {
9
9
  page?: number;
10
+ /**
11
+ * @default 10
12
+ */
10
13
  limit?: number;
11
14
  sort?: string;
12
15
  search_term?: 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.56.0",
3
+ "version": "0.58.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,2 +0,0 @@
1
- import type { Facets } from '../schemas/Facets';
2
- export type FacetsResponseResponse = Facets;
@@ -1,6 +0,0 @@
1
- export interface Facets {
2
- lifecycle: string[];
3
- owners: string[];
4
- tags: string[];
5
- type: string[];
6
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};