@harnessio/react-idp-service-client 0.14.0 → 0.16.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.
@@ -0,0 +1,16 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { HarnessEntitiesCountResponseResponse } from '../responses/HarnessEntitiesCountResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from './../../fetcher';
5
+ export interface GetHarnessEntitiesCountQueryHeaderParams {
6
+ 'Harness-Account'?: string;
7
+ }
8
+ export type GetHarnessEntitiesCountOkResponse = ResponseWithPagination<HarnessEntitiesCountResponseResponse>;
9
+ export type GetHarnessEntitiesCountErrorResponse = unknown;
10
+ export interface GetHarnessEntitiesCountProps extends Omit<FetcherOptions<unknown, unknown, GetHarnessEntitiesCountQueryHeaderParams>, 'url'> {
11
+ }
12
+ export declare function getHarnessEntitiesCount(props: GetHarnessEntitiesCountProps): Promise<GetHarnessEntitiesCountOkResponse>;
13
+ /**
14
+ * Get Harness Entities Count
15
+ */
16
+ export declare function useGetHarnessEntitiesCountQuery(props: GetHarnessEntitiesCountProps, options?: Omit<UseQueryOptions<GetHarnessEntitiesCountOkResponse, GetHarnessEntitiesCountErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetHarnessEntitiesCountOkResponse, 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';
6
+ export function getHarnessEntitiesCount(props) {
7
+ return fetcher(Object.assign({ url: `/v1/onboarding/harness-entities-count`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Harness Entities Count
11
+ */
12
+ export function useGetHarnessEntitiesCountQuery(props, options) {
13
+ return useQuery(['get-harness-entities-count'], ({ signal }) => getHarnessEntitiesCount(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -8,6 +8,7 @@ export interface GetHarnessEntitiesQueryQueryParams {
8
8
  sort?: string;
9
9
  order?: string;
10
10
  search_term?: string;
11
+ projects_to_filter?: string[];
11
12
  }
12
13
  export interface GetHarnessEntitiesQueryHeaderParams {
13
14
  'Harness-Account'?: string;
@@ -3,7 +3,7 @@ import type { PluginDetailedInfoResponseResponse } from '../responses/PluginDeta
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from './../../fetcher';
5
5
  export interface GetPluginsInfoPluginIdQueryPathParams {
6
- 'plugin-id': 'github-pull-requests-board' | 'harness-ci-cd' | 'pager-duty' | 'snyk-security';
6
+ 'plugin-id': 'github-pull-requests-board' | 'harness-ci-cd' | 'kafka' | 'lighthouse' | 'pager-duty' | 'snyk-security' | 'todo';
7
7
  }
8
8
  export interface GetPluginsInfoPluginIdQueryHeaderParams {
9
9
  'Harness-Account'?: string;
@@ -7,6 +7,8 @@ export type { GetAllLayoutsErrorResponse, GetAllLayoutsOkResponse, GetAllLayouts
7
7
  export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
8
8
  export type { GetBackstagePermissionsErrorResponse, GetBackstagePermissionsOkResponse, GetBackstagePermissionsProps, } from './hooks/useGetBackstagePermissionsQuery';
9
9
  export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
10
+ export type { GetHarnessEntitiesCountErrorResponse, GetHarnessEntitiesCountOkResponse, GetHarnessEntitiesCountProps, } from './hooks/useGetHarnessEntitiesCountQuery';
11
+ export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
10
12
  export type { GetHarnessEntitiesErrorResponse, GetHarnessEntitiesOkResponse, GetHarnessEntitiesProps, GetHarnessEntitiesQueryQueryParams, } from './hooks/useGetHarnessEntitiesQuery';
11
13
  export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
12
14
  export type { GetLayoutErrorResponse, GetLayoutOkResponse, GetLayoutProps, GetLayoutQueryPathParams, } from './hooks/useGetLayoutQuery';
@@ -30,6 +32,7 @@ export type { BackstagePermissionsRequestRequestBody } from './requestBodies/Bac
30
32
  export type { ImportHarnessEntitiesRequestRequestBody } from './requestBodies/ImportHarnessEntitiesRequestRequestBody';
31
33
  export type { AppConfigResponseResponse } from './responses/AppConfigResponseResponse';
32
34
  export type { BackstagePermissionsResponseResponse } from './responses/BackstagePermissionsResponseResponse';
35
+ export type { HarnessEntitiesCountResponseResponse } from './responses/HarnessEntitiesCountResponseResponse';
33
36
  export type { HarnessEntitiesResponseResponse } from './responses/HarnessEntitiesResponseResponse';
34
37
  export type { ImportEntitiesResponseResponse } from './responses/ImportEntitiesResponseResponse';
35
38
  export type { LayoutResponseResponse } from './responses/LayoutResponseResponse';
@@ -2,6 +2,7 @@ export { createBackstagePermissions, useCreateBackstagePermissionsMutation, } fr
2
2
  export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
3
3
  export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
4
4
  export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
5
+ export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
5
6
  export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
6
7
  export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
7
8
  export { getPluginsInfoPluginId, useGetPluginsInfoPluginIdQuery, } from './hooks/useGetPluginsInfoPluginIdQuery';
@@ -0,0 +1,3 @@
1
+ export interface HarnessEntitiesCountResponseResponse {
2
+ id?: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -2,9 +2,4 @@ import type { HarnessBackstageEntities } from '../schemas/HarnessBackstageEntiti
2
2
  /**
3
3
  * Response for harness entities mapping with backstage entities
4
4
  */
5
- export interface HarnessEntitiesResponse {
6
- harness_backstage_entities: HarnessBackstageEntities[];
7
- org_count: number;
8
- project_count: number;
9
- service_count: number;
10
- }
5
+ export type HarnessEntitiesResponse = HarnessBackstageEntities[];
@@ -1,7 +1,10 @@
1
+ import type { BackstageEnvSecretVariable } from '../schemas/BackstageEnvSecretVariable';
1
2
  import type { Exports } from '../schemas/Exports';
2
3
  import type { PluginInfo } from '../schemas/PluginInfo';
3
4
  export interface PluginDetailedInfo {
4
5
  config: string;
6
+ env_variables: BackstageEnvSecretVariable[];
5
7
  exports: Exports;
6
8
  plugin_details: PluginInfo;
9
+ saved: boolean;
7
10
  }
@@ -1,5 +1,5 @@
1
1
  export interface PluginInfo {
2
- category: 'CI/CD' | 'Monitoring' | 'Security' | 'Source Control Mgmt';
2
+ category: 'CI/CD' | 'Discovery' | 'Monitoring' | 'Quality' | 'Security' | 'Source Control Mgmt';
3
3
  core: boolean;
4
4
  created_by: string;
5
5
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",