@harnessio/react-idp-service-client 0.88.4 → 0.88.5

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,29 @@
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 GetBlueprintEnvironmentsQueryPathParams {
6
+ identifier: string;
7
+ }
8
+ export interface GetBlueprintEnvironmentsQueryQueryParams {
9
+ page?: number;
10
+ /**
11
+ * @default 10
12
+ */
13
+ limit?: number;
14
+ sort?: string;
15
+ search_term?: string;
16
+ }
17
+ export interface GetBlueprintEnvironmentsQueryHeaderParams {
18
+ 'Harness-Account'?: string;
19
+ }
20
+ export type GetBlueprintEnvironmentsOkResponse = ResponseWithPagination<EntityResponseBodyListResponse>;
21
+ export type GetBlueprintEnvironmentsErrorResponse = unknown;
22
+ export interface GetBlueprintEnvironmentsProps extends GetBlueprintEnvironmentsQueryPathParams, Omit<FetcherOptions<GetBlueprintEnvironmentsQueryQueryParams, unknown, GetBlueprintEnvironmentsQueryHeaderParams>, 'url'> {
23
+ queryParams: GetBlueprintEnvironmentsQueryQueryParams;
24
+ }
25
+ export declare function getBlueprintEnvironments(props: GetBlueprintEnvironmentsProps): Promise<GetBlueprintEnvironmentsOkResponse>;
26
+ /**
27
+ * Returns a paginated list of environments that reference the specified environment blueprint
28
+ */
29
+ export declare function useGetBlueprintEnvironmentsQuery(props: GetBlueprintEnvironmentsProps, options?: Omit<UseQueryOptions<GetBlueprintEnvironmentsOkResponse, GetBlueprintEnvironmentsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetBlueprintEnvironmentsOkResponse, 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 getBlueprintEnvironments(props) {
7
+ return fetcher(Object.assign({ url: `/v1/environment-blueprints/${props.identifier}/environments`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns a paginated list of environments that reference the specified environment blueprint
11
+ */
12
+ export function useGetBlueprintEnvironmentsQuery(props, options) {
13
+ return useQuery(['get-blueprint-environments', props.identifier, props.queryParams], ({ signal }) => getBlueprintEnvironments(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -73,6 +73,8 @@ export type { GetAuthInfoAuthIdErrorResponse, GetAuthInfoAuthIdOkResponse, GetAu
73
73
  export { getAuthInfoAuthId, useGetAuthInfoAuthIdQuery } from './hooks/useGetAuthInfoAuthIdQuery';
74
74
  export type { GetBackstagePermissionsErrorResponse, GetBackstagePermissionsOkResponse, GetBackstagePermissionsProps, } from './hooks/useGetBackstagePermissionsQuery';
75
75
  export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
76
+ export type { GetBlueprintEnvironmentsErrorResponse, GetBlueprintEnvironmentsOkResponse, GetBlueprintEnvironmentsProps, GetBlueprintEnvironmentsQueryPathParams, GetBlueprintEnvironmentsQueryQueryParams, } from './hooks/useGetBlueprintEnvironmentsQuery';
77
+ export { getBlueprintEnvironments, useGetBlueprintEnvironmentsQuery, } from './hooks/useGetBlueprintEnvironmentsQuery';
76
78
  export type { GetCheckGraphErrorResponse, GetCheckGraphOkResponse, GetCheckGraphProps, GetCheckGraphQueryPathParams, GetCheckGraphQueryQueryParams, } from './hooks/useGetCheckGraphQuery';
77
79
  export { getCheckGraph, useGetCheckGraphQuery } from './hooks/useGetCheckGraphQuery';
78
80
  export type { GetCheckErrorResponse, GetCheckOkResponse, GetCheckProps, GetCheckQueryPathParams, GetCheckQueryQueryParams, } from './hooks/useGetCheckQuery';
@@ -35,6 +35,7 @@ export { getAllLayoutsV2, useGetAllLayoutsV2Query } from './hooks/useGetAllLayou
35
35
  export { getAllowList, useGetAllowListQuery } from './hooks/useGetAllowListQuery';
36
36
  export { getAuthInfoAuthId, useGetAuthInfoAuthIdQuery } from './hooks/useGetAuthInfoAuthIdQuery';
37
37
  export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
38
+ export { getBlueprintEnvironments, useGetBlueprintEnvironmentsQuery, } from './hooks/useGetBlueprintEnvironmentsQuery';
38
39
  export { getCheckGraph, useGetCheckGraphQuery } from './hooks/useGetCheckGraphQuery';
39
40
  export { getCheck, useGetCheckQuery } from './hooks/useGetCheckQuery';
40
41
  export { getCheckStats, useGetCheckStatsQuery } from './hooks/useGetCheckStatsQuery';
@@ -1 +1 @@
1
- export type AggFormula = 'AVG' | 'COUNT' | 'MAX' | 'MIN' | 'SUM';
1
+ export type AggFormula = 'AVG' | 'COUNT' | 'MAX' | 'MEDIAN' | 'MIN' | 'SUM';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.88.4",
3
+ "version": "0.88.5",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",