@harnessio/react-idp-service-client 0.83.0 → 0.84.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.
- package/dist/idp-service/src/services/hooks/useGetCheckTagsQuery.d.ts +20 -0
- package/dist/idp-service/src/services/hooks/useGetCheckTagsQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useGetEntitiesByRefsMutation.d.ts +1 -0
- package/dist/idp-service/src/services/hooks/useGetEntitiesQuery.d.ts +1 -0
- package/dist/idp-service/src/services/hooks/useGetEntityQuery.d.ts +1 -0
- package/dist/idp-service/src/services/index.d.ts +5 -0
- package/dist/idp-service/src/services/index.js +1 -0
- package/dist/idp-service/src/services/responses/ChecksTagsResponseResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/ChecksTagsResponseResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/CheckStatus.d.ts +6 -0
- package/dist/idp-service/src/services/schemas/CheckStatus.js +0 -3
- package/dist/idp-service/src/services/schemas/ChecksTags.d.ts +6 -0
- package/dist/idp-service/src/services/schemas/ChecksTags.js +4 -0
- package/dist/idp-service/src/services/schemas/EvaluationData.d.ts +7 -0
- package/dist/idp-service/src/services/schemas/EvaluationData.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChecksTagsResponseResponse } from '../responses/ChecksTagsResponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetCheckTagsQueryQueryParams {
|
|
6
|
+
search_term?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetCheckTagsQueryHeaderParams {
|
|
9
|
+
'Harness-Account'?: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetCheckTagsOkResponse = ResponseWithPagination<ChecksTagsResponseResponse>;
|
|
12
|
+
export type GetCheckTagsErrorResponse = unknown;
|
|
13
|
+
export interface GetCheckTagsProps extends Omit<FetcherOptions<GetCheckTagsQueryQueryParams, unknown, GetCheckTagsQueryHeaderParams>, 'url'> {
|
|
14
|
+
queryParams: GetCheckTagsQueryQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export declare function getCheckTags(props: GetCheckTagsProps): Promise<GetCheckTagsOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get tags for checks
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetCheckTagsQuery(props: GetCheckTagsProps, options?: Omit<UseQueryOptions<GetCheckTagsOkResponse, GetCheckTagsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCheckTagsOkResponse, 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 getCheckTags(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/checks/filters/tags`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get tags for checks
|
|
11
|
+
*/
|
|
12
|
+
export function useGetCheckTagsQuery(props, options) {
|
|
13
|
+
return useQuery(['get-check-tags', props.queryParams], ({ signal }) => getCheckTags(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -69,6 +69,8 @@ export type { GetCheckErrorResponse, GetCheckOkResponse, GetCheckProps, GetCheck
|
|
|
69
69
|
export { getCheck, useGetCheckQuery } from './hooks/useGetCheckQuery';
|
|
70
70
|
export type { GetCheckStatsErrorResponse, GetCheckStatsOkResponse, GetCheckStatsProps, GetCheckStatsQueryPathParams, GetCheckStatsQueryQueryParams, } from './hooks/useGetCheckStatsQuery';
|
|
71
71
|
export { getCheckStats, useGetCheckStatsQuery } from './hooks/useGetCheckStatsQuery';
|
|
72
|
+
export type { GetCheckTagsErrorResponse, GetCheckTagsOkResponse, GetCheckTagsProps, GetCheckTagsQueryQueryParams, } from './hooks/useGetCheckTagsQuery';
|
|
73
|
+
export { getCheckTags, useGetCheckTagsQuery } from './hooks/useGetCheckTagsQuery';
|
|
72
74
|
export type { GetChecksErrorResponse, GetChecksOkResponse, GetChecksProps, GetChecksQueryQueryParams, } from './hooks/useGetChecksQuery';
|
|
73
75
|
export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
|
|
74
76
|
export type { GetConnectorInfoErrorResponse, GetConnectorInfoOkResponse, GetConnectorInfoProps, } from './hooks/useGetConnectorInfoQuery';
|
|
@@ -243,6 +245,7 @@ export type { CheckDetailsResponseResponse } from './responses/CheckDetailsRespo
|
|
|
243
245
|
export type { CheckGraphResponseResponse } from './responses/CheckGraphResponseResponse';
|
|
244
246
|
export type { CheckResponseListResponse } from './responses/CheckResponseListResponse';
|
|
245
247
|
export type { CheckStatsResponseResponse } from './responses/CheckStatsResponseResponse';
|
|
248
|
+
export type { ChecksTagsResponseResponse } from './responses/ChecksTagsResponseResponse';
|
|
246
249
|
export type { ConfigurationEntitiesResponseResponse } from './responses/ConfigurationEntitiesResponseResponse';
|
|
247
250
|
export type { ConnectorInfoResponseResponse } from './responses/ConnectorInfoResponseResponse';
|
|
248
251
|
export type { CustomPluginInfoResponseResponse } from './responses/CustomPluginInfoResponseResponse';
|
|
@@ -326,6 +329,7 @@ export type { CheckResponse } from './schemas/CheckResponse';
|
|
|
326
329
|
export type { CheckStats } from './schemas/CheckStats';
|
|
327
330
|
export type { CheckStatsResponse } from './schemas/CheckStatsResponse';
|
|
328
331
|
export type { CheckStatus } from './schemas/CheckStatus';
|
|
332
|
+
export type { ChecksTags } from './schemas/ChecksTags';
|
|
329
333
|
export type { ConfigurationEntities } from './schemas/ConfigurationEntities';
|
|
330
334
|
export type { ConnectorDetails } from './schemas/ConnectorDetails';
|
|
331
335
|
export type { ConnectorInfoRequest } from './schemas/ConnectorInfoRequest';
|
|
@@ -364,6 +368,7 @@ export type { EntityUpdateRequest } from './schemas/EntityUpdateRequest';
|
|
|
364
368
|
export type { EntityVersionCreateRequest } from './schemas/EntityVersionCreateRequest';
|
|
365
369
|
export type { EntityVersionResponse } from './schemas/EntityVersionResponse';
|
|
366
370
|
export type { EntityVersionUpdateRequest } from './schemas/EntityVersionUpdateRequest';
|
|
371
|
+
export type { EvaluationData } from './schemas/EvaluationData';
|
|
367
372
|
export type { ExportDetails } from './schemas/ExportDetails';
|
|
368
373
|
export type { Exports } from './schemas/Exports';
|
|
369
374
|
export type { GenerateYamlRequest } from './schemas/GenerateYamlRequest';
|
|
@@ -33,6 +33,7 @@ export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hoo
|
|
|
33
33
|
export { getCheckGraph, useGetCheckGraphQuery } from './hooks/useGetCheckGraphQuery';
|
|
34
34
|
export { getCheck, useGetCheckQuery } from './hooks/useGetCheckQuery';
|
|
35
35
|
export { getCheckStats, useGetCheckStatsQuery } from './hooks/useGetCheckStatsQuery';
|
|
36
|
+
export { getCheckTags, useGetCheckTagsQuery } from './hooks/useGetCheckTagsQuery';
|
|
36
37
|
export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
|
|
37
38
|
export { getConnectorInfo, useGetConnectorInfoQuery } from './hooks/useGetConnectorInfoQuery';
|
|
38
39
|
export { getCustomPluginStatusLogs, useGetCustomPluginStatusLogsQuery, } from './hooks/useGetCustomPluginStatusLogsQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
import type { EvaluationData } from '../schemas/EvaluationData';
|
|
1
2
|
/**
|
|
2
3
|
* Info for single check status
|
|
3
4
|
*/
|
|
4
5
|
export interface CheckStatus {
|
|
6
|
+
checkDescription?: string;
|
|
5
7
|
custom?: boolean;
|
|
8
|
+
evaluationData?: EvaluationData[];
|
|
9
|
+
expression?: string;
|
|
10
|
+
failureSummary?: string;
|
|
6
11
|
identifier?: string;
|
|
7
12
|
name: string;
|
|
8
13
|
reason?: string;
|
|
14
|
+
ruleStrategy?: string;
|
|
9
15
|
status: 'FAIL' | 'PASS';
|
|
10
16
|
weight: number;
|
|
11
17
|
}
|