@harnessio/react-idp-service-client 0.51.4 → 0.51.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.
@@ -2,12 +2,17 @@ import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { WorkflowsInfoResponseResponse } from '../responses/WorkflowsInfoResponseResponse';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetWorkflowsForAccountQueryQueryParams {
6
+ page?: number;
7
+ limit?: number;
8
+ }
5
9
  export interface GetWorkflowsForAccountQueryHeaderParams {
6
10
  'Harness-Account'?: string;
7
11
  }
8
12
  export type GetWorkflowsForAccountOkResponse = ResponseWithPagination<WorkflowsInfoResponseResponse>;
9
13
  export type GetWorkflowsForAccountErrorResponse = unknown;
10
- export interface GetWorkflowsForAccountProps extends Omit<FetcherOptions<unknown, unknown, GetWorkflowsForAccountQueryHeaderParams>, 'url'> {
14
+ export interface GetWorkflowsForAccountProps extends Omit<FetcherOptions<GetWorkflowsForAccountQueryQueryParams, unknown, GetWorkflowsForAccountQueryHeaderParams>, 'url'> {
15
+ queryParams: GetWorkflowsForAccountQueryQueryParams;
11
16
  }
12
17
  export declare function getWorkflowsForAccount(props: GetWorkflowsForAccountProps): Promise<GetWorkflowsForAccountOkResponse>;
13
18
  /**
@@ -10,5 +10,5 @@ export function getWorkflowsForAccount(props) {
10
10
  * Get workflows for account
11
11
  */
12
12
  export function useGetWorkflowsForAccountQuery(props, options) {
13
- return useQuery(['get-workflows-for-account'], ({ signal }) => getWorkflowsForAccount(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['get-workflows-for-account', props.queryParams], ({ signal }) => getWorkflowsForAccount(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -103,7 +103,7 @@ export type { GetStatusInfoByTypeErrorResponse, GetStatusInfoByTypeOkResponse, G
103
103
  export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
104
104
  export type { GetStatusInfoTypeV2ErrorResponse, GetStatusInfoTypeV2OkResponse, GetStatusInfoTypeV2Props, GetStatusInfoTypeV2QueryPathParams, } from './hooks/useGetStatusInfoTypeV2Query';
105
105
  export { getStatusInfoTypeV2, useGetStatusInfoTypeV2Query, } from './hooks/useGetStatusInfoTypeV2Query';
106
- export type { GetWorkflowsForAccountErrorResponse, GetWorkflowsForAccountOkResponse, GetWorkflowsForAccountProps, } from './hooks/useGetWorkflowsForAccountQuery';
106
+ export type { GetWorkflowsForAccountErrorResponse, GetWorkflowsForAccountOkResponse, GetWorkflowsForAccountProps, GetWorkflowsForAccountQueryQueryParams, } from './hooks/useGetWorkflowsForAccountQuery';
107
107
  export { getWorkflowsForAccount, useGetWorkflowsForAccountQuery, } from './hooks/useGetWorkflowsForAccountQuery';
108
108
  export type { ImportCdEntitiesErrorResponse, ImportCdEntitiesOkResponse, ImportCdEntitiesProps, ImportCdEntitiesRequestBody, } from './hooks/useImportCdEntitiesMutation';
109
109
  export { importCdEntities, useImportCdEntitiesMutation } from './hooks/useImportCdEntitiesMutation';
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export interface WorkflowsInfo {
5
5
  description: string;
6
+ icon?: string;
6
7
  kind: string;
7
8
  name: string;
8
9
  owner: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.51.4",
3
+ "version": "0.51.5",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",