@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.
@@ -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
+ }
@@ -20,6 +20,7 @@ export interface GetEntitiesByRefsMutationQueryParams {
20
20
  lifecycle?: string;
21
21
  tags?: string;
22
22
  filter?: string;
23
+ resolve_placeholders?: boolean;
23
24
  }
24
25
  export interface GetEntitiesByRefsMutationHeaderParams {
25
26
  'Harness-Account'?: string;
@@ -10,6 +10,7 @@ export interface GetEntitiesQueryQueryParams {
10
10
  limit?: number;
11
11
  sort?: string;
12
12
  search_term?: string;
13
+ resolve_placeholders?: boolean;
13
14
  scopes?: string;
14
15
  entity_refs?: string;
15
16
  owned_by_me?: boolean;
@@ -14,6 +14,7 @@ export interface GetEntityQueryQueryParams {
14
14
  connector_ref?: string;
15
15
  repo_name?: string;
16
16
  load_from_fallback_branch?: boolean;
17
+ resolve_placeholders?: boolean;
17
18
  }
18
19
  export interface GetEntityQueryHeaderParams {
19
20
  'Harness-Account'?: string;
@@ -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,2 @@
1
+ import type { ChecksTags } from '../schemas/ChecksTags';
2
+ export type ChecksTagsResponseResponse = ChecksTags;
@@ -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
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ *
3
+ */
4
+ export interface ChecksTags {
5
+ tags?: string[];
6
+ }
@@ -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 {};
@@ -0,0 +1,7 @@
1
+ export interface EvaluationData {
2
+ actualValue?: string;
3
+ expectedValue?: string;
4
+ reason?: string;
5
+ ruleDescription?: string;
6
+ ruleExpression: string;
7
+ }
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.83.0",
3
+ "version": "0.84.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",