@harnessio/react-idp-service-client 0.30.0 → 0.32.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/useGetCheckQuery.d.ts +5 -1
- package/dist/idp-service/src/services/hooks/useGetCheckQuery.js +1 -1
- package/dist/idp-service/src/services/hooks/useGetChecksQuery.d.ts +1 -1
- package/dist/idp-service/src/services/hooks/useGetEntityFacetsQuery.d.ts +20 -0
- package/dist/idp-service/src/services/hooks/useGetEntityFacetsQuery.js +14 -0
- package/dist/idp-service/src/services/index.d.ts +6 -2
- package/dist/idp-service/src/services/index.js +1 -0
- package/dist/idp-service/src/services/responses/FacetsResponseResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/FacetsResponseResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/Check.d.ts +1 -0
- package/dist/idp-service/src/services/schemas/CheckDetails.d.ts +0 -2
- package/dist/idp-service/src/services/schemas/Facets.d.ts +6 -0
- package/dist/idp-service/src/services/schemas/Scorecard.d.ts +2 -0
- package/dist/idp-service/src/services/schemas/ScorecardChecks.d.ts +1 -0
- package/dist/idp-service/src/services/schemas/ScorecardDetails.d.ts +3 -2
- package/dist/idp-service/src/services/schemas/{ScorecardFilters.d.ts → ScorecardFilter.d.ts} +1 -1
- package/dist/idp-service/src/services/schemas/ScorecardFilter.js +4 -0
- package/package.json +1 -1
- /package/dist/idp-service/src/services/schemas/{ScorecardFilters.js → Facets.js} +0 -0
|
@@ -5,12 +5,16 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
5
5
|
export interface GetCheckQueryPathParams {
|
|
6
6
|
'check-id': string;
|
|
7
7
|
}
|
|
8
|
+
export interface GetCheckQueryQueryParams {
|
|
9
|
+
custom?: boolean;
|
|
10
|
+
}
|
|
8
11
|
export interface GetCheckQueryHeaderParams {
|
|
9
12
|
'Harness-Account'?: string;
|
|
10
13
|
}
|
|
11
14
|
export type GetCheckOkResponse = ResponseWithPagination<CheckDetailsResponseResponse>;
|
|
12
15
|
export type GetCheckErrorResponse = unknown;
|
|
13
|
-
export interface GetCheckProps extends GetCheckQueryPathParams, Omit<FetcherOptions<
|
|
16
|
+
export interface GetCheckProps extends GetCheckQueryPathParams, Omit<FetcherOptions<GetCheckQueryQueryParams, unknown, GetCheckQueryHeaderParams>, 'url'> {
|
|
17
|
+
queryParams: GetCheckQueryQueryParams;
|
|
14
18
|
}
|
|
15
19
|
export declare function getCheck(props: GetCheckProps): Promise<GetCheckOkResponse>;
|
|
16
20
|
/**
|
|
@@ -10,5 +10,5 @@ export function getCheck(props) {
|
|
|
10
10
|
* Get check details for given checkId
|
|
11
11
|
*/
|
|
12
12
|
export function useGetCheckQuery(props, options) {
|
|
13
|
-
return useQuery(['get-check', props['check-id']], ({ signal }) => getCheck(Object.assign(Object.assign({}, props), { signal })), options);
|
|
13
|
+
return useQuery(['get-check', props['check-id'], props.queryParams], ({ signal }) => getCheck(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -3,7 +3,7 @@ import type { CheckResponseListResponse } from '../responses/CheckResponseListRe
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetChecksQueryQueryParams {
|
|
6
|
-
custom
|
|
6
|
+
custom?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export interface GetChecksQueryHeaderParams {
|
|
9
9
|
'Harness-Account'?: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FacetsResponseResponse } from '../responses/FacetsResponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetEntityFacetsQueryQueryParams {
|
|
6
|
+
kind: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetEntityFacetsQueryHeaderParams {
|
|
9
|
+
'Harness-Account'?: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetEntityFacetsOkResponse = ResponseWithPagination<FacetsResponseResponse>;
|
|
12
|
+
export type GetEntityFacetsErrorResponse = unknown;
|
|
13
|
+
export interface GetEntityFacetsProps extends Omit<FetcherOptions<GetEntityFacetsQueryQueryParams, unknown, GetEntityFacetsQueryHeaderParams>, 'url'> {
|
|
14
|
+
queryParams: GetEntityFacetsQueryQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export declare function getEntityFacets(props: GetEntityFacetsProps): Promise<GetEntityFacetsOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get all entity facets for given kind
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetEntityFacetsQuery(props: GetEntityFacetsProps, options?: Omit<UseQueryOptions<GetEntityFacetsOkResponse, GetEntityFacetsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEntityFacetsOkResponse, 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 getEntityFacets(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entity-facets`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get all entity facets for given kind
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEntityFacetsQuery(props, options) {
|
|
13
|
+
return useQuery(['get-entity-facets', props.queryParams], ({ signal }) => getEntityFacets(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -23,7 +23,7 @@ export type { GetAuthInfoAuthIdErrorResponse, GetAuthInfoAuthIdOkResponse, GetAu
|
|
|
23
23
|
export { getAuthInfoAuthId, useGetAuthInfoAuthIdQuery } from './hooks/useGetAuthInfoAuthIdQuery';
|
|
24
24
|
export type { GetBackstagePermissionsErrorResponse, GetBackstagePermissionsOkResponse, GetBackstagePermissionsProps, } from './hooks/useGetBackstagePermissionsQuery';
|
|
25
25
|
export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
|
|
26
|
-
export type { GetCheckErrorResponse, GetCheckOkResponse, GetCheckProps, GetCheckQueryPathParams, } from './hooks/useGetCheckQuery';
|
|
26
|
+
export type { GetCheckErrorResponse, GetCheckOkResponse, GetCheckProps, GetCheckQueryPathParams, GetCheckQueryQueryParams, } from './hooks/useGetCheckQuery';
|
|
27
27
|
export { getCheck, useGetCheckQuery } from './hooks/useGetCheckQuery';
|
|
28
28
|
export type { GetChecksErrorResponse, GetChecksOkResponse, GetChecksProps, GetChecksQueryQueryParams, } from './hooks/useGetChecksQuery';
|
|
29
29
|
export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
|
|
@@ -31,6 +31,8 @@ export type { GetConnectorInfoErrorResponse, GetConnectorInfoOkResponse, GetConn
|
|
|
31
31
|
export { getConnectorInfo, useGetConnectorInfoQuery } from './hooks/useGetConnectorInfoQuery';
|
|
32
32
|
export type { GetDataPointsForDataSourceErrorResponse, GetDataPointsForDataSourceOkResponse, GetDataPointsForDataSourceProps, GetDataPointsForDataSourceQueryPathParams, } from './hooks/useGetDataPointsForDataSourceQuery';
|
|
33
33
|
export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
|
|
34
|
+
export type { GetEntityFacetsErrorResponse, GetEntityFacetsOkResponse, GetEntityFacetsProps, GetEntityFacetsQueryQueryParams, } from './hooks/useGetEntityFacetsQuery';
|
|
35
|
+
export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
|
|
34
36
|
export type { GetHarnessEntitiesCountErrorResponse, GetHarnessEntitiesCountOkResponse, GetHarnessEntitiesCountProps, } from './hooks/useGetHarnessEntitiesCountQuery';
|
|
35
37
|
export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
|
|
36
38
|
export type { GetHarnessEntitiesErrorResponse, GetHarnessEntitiesOkResponse, GetHarnessEntitiesProps, GetHarnessEntitiesQueryQueryParams, } from './hooks/useGetHarnessEntitiesQuery';
|
|
@@ -94,6 +96,7 @@ export type { ConfigurationEntitiesResponseResponse } from './responses/Configur
|
|
|
94
96
|
export type { ConnectorInfoResponseResponse } from './responses/ConnectorInfoResponseResponse';
|
|
95
97
|
export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
|
|
96
98
|
export type { DatapointResponseResponse } from './responses/DatapointResponseResponse';
|
|
99
|
+
export type { FacetsResponseResponse } from './responses/FacetsResponseResponse';
|
|
97
100
|
export type { GenerateYamlResponseResponse } from './responses/GenerateYamlResponseResponse';
|
|
98
101
|
export type { HarnessEntitiesCountResponseResponse } from './responses/HarnessEntitiesCountResponseResponse';
|
|
99
102
|
export type { HarnessEntitiesResponseResponse } from './responses/HarnessEntitiesResponseResponse';
|
|
@@ -137,6 +140,7 @@ export type { DataSourcesResponse } from './schemas/DataSourcesResponse';
|
|
|
137
140
|
export type { EntitiesForImport } from './schemas/EntitiesForImport';
|
|
138
141
|
export type { ExportDetails } from './schemas/ExportDetails';
|
|
139
142
|
export type { Exports } from './schemas/Exports';
|
|
143
|
+
export type { Facets } from './schemas/Facets';
|
|
140
144
|
export type { GenerateYamlRequest } from './schemas/GenerateYamlRequest';
|
|
141
145
|
export type { GenerateYamlResponse } from './schemas/GenerateYamlResponse';
|
|
142
146
|
export type { HarnessBackstageEntities } from './schemas/HarnessBackstageEntities';
|
|
@@ -164,7 +168,7 @@ export type { ScorecardChecksDetails } from './schemas/ScorecardChecksDetails';
|
|
|
164
168
|
export type { ScorecardDetails } from './schemas/ScorecardDetails';
|
|
165
169
|
export type { ScorecardDetailsRequest } from './schemas/ScorecardDetailsRequest';
|
|
166
170
|
export type { ScorecardDetailsResponse } from './schemas/ScorecardDetailsResponse';
|
|
167
|
-
export type {
|
|
171
|
+
export type { ScorecardFilter } from './schemas/ScorecardFilter';
|
|
168
172
|
export type { ScorecardResponse } from './schemas/ScorecardResponse';
|
|
169
173
|
export type { StatusInfo } from './schemas/StatusInfo';
|
|
170
174
|
export type { StatusInfoResponse } from './schemas/StatusInfoResponse';
|
|
@@ -14,6 +14,7 @@ export { getCheck, useGetCheckQuery } from './hooks/useGetCheckQuery';
|
|
|
14
14
|
export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
|
|
15
15
|
export { getConnectorInfo, useGetConnectorInfoQuery } from './hooks/useGetConnectorInfoQuery';
|
|
16
16
|
export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
|
|
17
|
+
export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
|
|
17
18
|
export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
|
|
18
19
|
export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
|
|
19
20
|
export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { Rule } from '../schemas/Rule';
|
|
2
2
|
import type { Check } from '../schemas/Check';
|
|
3
3
|
export interface CheckDetails extends Check {
|
|
4
|
-
custom: boolean;
|
|
5
4
|
default_behaviour: 'FAIL' | 'PASS';
|
|
6
5
|
fail_message?: string;
|
|
7
6
|
harness_managed?: boolean;
|
|
8
7
|
rule_strategy: 'ALL_OF' | 'ANY_OF';
|
|
9
8
|
rules: Rule[];
|
|
10
|
-
tags?: string[];
|
|
11
9
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ScorecardFilter } from '../schemas/ScorecardFilter';
|
|
2
2
|
export interface ScorecardDetails {
|
|
3
|
+
checks_missing?: string[];
|
|
3
4
|
description?: string;
|
|
4
|
-
|
|
5
|
+
filter: ScorecardFilter;
|
|
5
6
|
identifier: string;
|
|
6
7
|
name: string;
|
|
7
8
|
published: boolean;
|
package/package.json
CHANGED
|
File without changes
|