@harnessio/react-idp-service-client 0.51.4 → 0.51.6
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/useGetWorkflowsForAccountQuery.d.ts +6 -1
- package/dist/idp-service/src/services/hooks/useGetWorkflowsForAccountQuery.js +1 -1
- package/dist/idp-service/src/services/index.d.ts +1 -1
- package/dist/idp-service/src/services/schemas/WorkflowsInfo.d.ts +3 -2
- package/package.json +1 -1
|
@@ -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<
|
|
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';
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* Model for storing the workflows info
|
|
3
3
|
*/
|
|
4
4
|
export interface WorkflowsInfo {
|
|
5
|
-
description
|
|
5
|
+
description?: string;
|
|
6
|
+
icon?: string;
|
|
6
7
|
kind: string;
|
|
7
8
|
name: string;
|
|
8
9
|
owner: string;
|
|
9
|
-
title
|
|
10
|
+
title?: string;
|
|
10
11
|
type: string;
|
|
11
12
|
uid: string;
|
|
12
13
|
}
|