@harnessio/react-idp-service-client 0.33.0 → 0.35.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/useGetDataSourcesDataPointsMapQuery.d.ts +16 -0
- package/dist/idp-service/src/services/hooks/useGetDataSourcesDataPointsMapQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useGetRecalibratedScoreForScorecardQuery.d.ts +21 -0
- package/dist/idp-service/src/services/hooks/useGetRecalibratedScoreForScorecardQuery.js +14 -0
- package/dist/idp-service/src/services/index.d.ts +11 -0
- package/dist/idp-service/src/services/index.js +2 -0
- package/dist/idp-service/src/services/responses/DataSourceDataPointsMapResponseResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/DataSourceDataPointsMapResponseResponse.js +1 -0
- package/dist/idp-service/src/services/responses/ScorecardRecalibrateReponseResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/ScorecardRecalibrateReponseResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/CheckStatus.d.ts +8 -0
- package/dist/idp-service/src/services/schemas/CheckStatus.js +4 -0
- package/dist/idp-service/src/services/schemas/DataSourceDataPointsMap.d.ts +9 -0
- package/dist/idp-service/src/services/schemas/DataSourceDataPointsMap.js +1 -0
- package/dist/idp-service/src/services/schemas/DataSourceDataPointsMapResponse.d.ts +7 -0
- package/dist/idp-service/src/services/schemas/DataSourceDataPointsMapResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/ScorecardRecalibrateResponse.d.ts +4 -0
- package/dist/idp-service/src/services/schemas/ScorecardRecalibrateResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/ScorecardSummaryInfo.d.ts +14 -0
- package/dist/idp-service/src/services/schemas/ScorecardSummaryInfo.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DataSourceDataPointsMapResponseResponse } from '../responses/DataSourceDataPointsMapResponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetDataSourcesDataPointsMapQueryHeaderParams {
|
|
6
|
+
'Harness-Account'?: string;
|
|
7
|
+
}
|
|
8
|
+
export type GetDataSourcesDataPointsMapOkResponse = ResponseWithPagination<DataSourceDataPointsMapResponseResponse>;
|
|
9
|
+
export type GetDataSourcesDataPointsMapErrorResponse = unknown;
|
|
10
|
+
export interface GetDataSourcesDataPointsMapProps extends Omit<FetcherOptions<unknown, unknown, GetDataSourcesDataPointsMapQueryHeaderParams>, 'url'> {
|
|
11
|
+
}
|
|
12
|
+
export declare function getDataSourcesDataPointsMap(props: GetDataSourcesDataPointsMapProps): Promise<GetDataSourcesDataPointsMapOkResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* API for getting the map of data sources and data points for account
|
|
15
|
+
*/
|
|
16
|
+
export declare function useGetDataSourcesDataPointsMapQuery(props: GetDataSourcesDataPointsMapProps, options?: Omit<UseQueryOptions<GetDataSourcesDataPointsMapOkResponse, GetDataSourcesDataPointsMapErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetDataSourcesDataPointsMapOkResponse, 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 getDataSourcesDataPointsMap(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/data-sources/data-points/map`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* API for getting the map of data sources and data points for account
|
|
11
|
+
*/
|
|
12
|
+
export function useGetDataSourcesDataPointsMapQuery(props, options) {
|
|
13
|
+
return useQuery(['get-data-sources-data-points-map'], ({ signal }) => getDataSourcesDataPointsMap(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ScorecardRecalibrateReponseResponse } from '../responses/ScorecardRecalibrateReponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetRecalibratedScoreForScorecardQueryQueryParams {
|
|
6
|
+
entity_identifier: string;
|
|
7
|
+
scorecard_identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetRecalibratedScoreForScorecardQueryHeaderParams {
|
|
10
|
+
'Harness-Account'?: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetRecalibratedScoreForScorecardOkResponse = ResponseWithPagination<ScorecardRecalibrateReponseResponse>;
|
|
13
|
+
export type GetRecalibratedScoreForScorecardErrorResponse = unknown;
|
|
14
|
+
export interface GetRecalibratedScoreForScorecardProps extends Omit<FetcherOptions<GetRecalibratedScoreForScorecardQueryQueryParams, unknown, GetRecalibratedScoreForScorecardQueryHeaderParams>, 'url'> {
|
|
15
|
+
queryParams: GetRecalibratedScoreForScorecardQueryQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export declare function getRecalibratedScoreForScorecard(props: GetRecalibratedScoreForScorecardProps): Promise<GetRecalibratedScoreForScorecardOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* API for Recalibrating the score for scorecard of entity
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetRecalibratedScoreForScorecardQuery(props: GetRecalibratedScoreForScorecardProps, options?: Omit<UseQueryOptions<GetRecalibratedScoreForScorecardOkResponse, GetRecalibratedScoreForScorecardErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRecalibratedScoreForScorecardOkResponse, 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 getRecalibratedScoreForScorecard(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/scores/recaliberate`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* API for Recalibrating the score for scorecard of entity
|
|
11
|
+
*/
|
|
12
|
+
export function useGetRecalibratedScoreForScorecardQuery(props, options) {
|
|
13
|
+
return useQuery(['get-recalibrated-score-for-scorecard', props.queryParams], ({ signal }) => getRecalibratedScoreForScorecard(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -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 { GetDataSourcesDataPointsMapErrorResponse, GetDataSourcesDataPointsMapOkResponse, GetDataSourcesDataPointsMapProps, } from './hooks/useGetDataSourcesDataPointsMapQuery';
|
|
35
|
+
export { getDataSourcesDataPointsMap, useGetDataSourcesDataPointsMapQuery, } from './hooks/useGetDataSourcesDataPointsMapQuery';
|
|
34
36
|
export type { GetEntityFacetsErrorResponse, GetEntityFacetsOkResponse, GetEntityFacetsProps, GetEntityFacetsQueryQueryParams, } from './hooks/useGetEntityFacetsQuery';
|
|
35
37
|
export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
|
|
36
38
|
export type { GetHarnessEntitiesCountErrorResponse, GetHarnessEntitiesCountOkResponse, GetHarnessEntitiesCountProps, } from './hooks/useGetHarnessEntitiesCountQuery';
|
|
@@ -45,6 +47,8 @@ export type { GetPluginsInfoPluginIdErrorResponse, GetPluginsInfoPluginIdOkRespo
|
|
|
45
47
|
export { getPluginsInfoPluginId, useGetPluginsInfoPluginIdQuery, } from './hooks/useGetPluginsInfoPluginIdQuery';
|
|
46
48
|
export type { GetPluginsErrorResponse, GetPluginsOkResponse, GetPluginsProps, } from './hooks/useGetPluginsQuery';
|
|
47
49
|
export { getPlugins, useGetPluginsQuery } from './hooks/useGetPluginsQuery';
|
|
50
|
+
export type { GetRecalibratedScoreForScorecardErrorResponse, GetRecalibratedScoreForScorecardOkResponse, GetRecalibratedScoreForScorecardProps, GetRecalibratedScoreForScorecardQueryQueryParams, } from './hooks/useGetRecalibratedScoreForScorecardQuery';
|
|
51
|
+
export { getRecalibratedScoreForScorecard, useGetRecalibratedScoreForScorecardQuery, } from './hooks/useGetRecalibratedScoreForScorecardQuery';
|
|
48
52
|
export type { GetScorecardErrorResponse, GetScorecardOkResponse, GetScorecardProps, GetScorecardQueryPathParams, } from './hooks/useGetScorecardQuery';
|
|
49
53
|
export { getScorecard, useGetScorecardQuery } from './hooks/useGetScorecardQuery';
|
|
50
54
|
export type { GetScorecardsErrorResponse, GetScorecardsOkResponse, GetScorecardsProps, } from './hooks/useGetScorecardsQuery';
|
|
@@ -94,6 +98,7 @@ export type { CheckDetailsResponseResponse } from './responses/CheckDetailsRespo
|
|
|
94
98
|
export type { CheckResponseListResponse } from './responses/CheckResponseListResponse';
|
|
95
99
|
export type { ConfigurationEntitiesResponseResponse } from './responses/ConfigurationEntitiesResponseResponse';
|
|
96
100
|
export type { ConnectorInfoResponseResponse } from './responses/ConnectorInfoResponseResponse';
|
|
101
|
+
export type { DataSourceDataPointsMapResponseResponse } from './responses/DataSourceDataPointsMapResponseResponse';
|
|
97
102
|
export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
|
|
98
103
|
export type { DatapointResponseResponse } from './responses/DatapointResponseResponse';
|
|
99
104
|
export type { DefaultSaveResponseResponse } from './responses/DefaultSaveResponseResponse';
|
|
@@ -107,6 +112,7 @@ export type { MergedPluginConfigResponseResponse } from './responses/MergedPlugi
|
|
|
107
112
|
export type { PluginDetailedInfoResponseResponse } from './responses/PluginDetailedInfoResponseResponse';
|
|
108
113
|
export type { PluginInfoResponseListResponse } from './responses/PluginInfoResponseListResponse';
|
|
109
114
|
export type { ScorecardDetailsResponseResponse } from './responses/ScorecardDetailsResponseResponse';
|
|
115
|
+
export type { ScorecardRecalibrateReponseResponse } from './responses/ScorecardRecalibrateReponseResponse';
|
|
110
116
|
export type { ScorecardResponseListResponse } from './responses/ScorecardResponseListResponse';
|
|
111
117
|
export type { StatusInfoResponseResponse } from './responses/StatusInfoResponseResponse';
|
|
112
118
|
export type { AllowListRequest } from './schemas/AllowListRequest';
|
|
@@ -130,6 +136,7 @@ export type { CheckDetailsRequest } from './schemas/CheckDetailsRequest';
|
|
|
130
136
|
export type { CheckDetailsResponse } from './schemas/CheckDetailsResponse';
|
|
131
137
|
export type { CheckListItem } from './schemas/CheckListItem';
|
|
132
138
|
export type { CheckResponse } from './schemas/CheckResponse';
|
|
139
|
+
export type { CheckStatus } from './schemas/CheckStatus';
|
|
133
140
|
export type { ConfigurationEntities } from './schemas/ConfigurationEntities';
|
|
134
141
|
export type { ConnectorDetails } from './schemas/ConnectorDetails';
|
|
135
142
|
export type { ConnectorInfoRequest } from './schemas/ConnectorInfoRequest';
|
|
@@ -137,6 +144,8 @@ export type { ConnectorInfoResponse } from './schemas/ConnectorInfoResponse';
|
|
|
137
144
|
export type { DataPoint } from './schemas/DataPoint';
|
|
138
145
|
export type { DataPointsResponse } from './schemas/DataPointsResponse';
|
|
139
146
|
export type { DataSource } from './schemas/DataSource';
|
|
147
|
+
export type { DataSourceDataPointsMap } from './schemas/DataSourceDataPointsMap';
|
|
148
|
+
export type { DataSourceDataPointsMapResponse } from './schemas/DataSourceDataPointsMapResponse';
|
|
140
149
|
export type { DataSourcesResponse } from './schemas/DataSourcesResponse';
|
|
141
150
|
export type { DefaultSaveResponse } from './schemas/DefaultSaveResponse';
|
|
142
151
|
export type { EntitiesForImport } from './schemas/EntitiesForImport';
|
|
@@ -171,6 +180,8 @@ export type { ScorecardDetails } from './schemas/ScorecardDetails';
|
|
|
171
180
|
export type { ScorecardDetailsRequest } from './schemas/ScorecardDetailsRequest';
|
|
172
181
|
export type { ScorecardDetailsResponse } from './schemas/ScorecardDetailsResponse';
|
|
173
182
|
export type { ScorecardFilter } from './schemas/ScorecardFilter';
|
|
183
|
+
export type { ScorecardRecalibrateResponse } from './schemas/ScorecardRecalibrateResponse';
|
|
174
184
|
export type { ScorecardResponse } from './schemas/ScorecardResponse';
|
|
185
|
+
export type { ScorecardSummaryInfo } from './schemas/ScorecardSummaryInfo';
|
|
175
186
|
export type { StatusInfo } from './schemas/StatusInfo';
|
|
176
187
|
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 { getDataSourcesDataPointsMap, useGetDataSourcesDataPointsMapQuery, } from './hooks/useGetDataSourcesDataPointsMapQuery';
|
|
17
18
|
export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
|
|
18
19
|
export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
|
|
19
20
|
export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
|
|
@@ -21,6 +22,7 @@ export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
|
|
|
21
22
|
export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
|
|
22
23
|
export { getPluginsInfoPluginId, useGetPluginsInfoPluginIdQuery, } from './hooks/useGetPluginsInfoPluginIdQuery';
|
|
23
24
|
export { getPlugins, useGetPluginsQuery } from './hooks/useGetPluginsQuery';
|
|
25
|
+
export { getRecalibratedScoreForScorecard, useGetRecalibratedScoreForScorecardQuery, } from './hooks/useGetRecalibratedScoreForScorecardQuery';
|
|
24
26
|
export { getScorecard, useGetScorecardQuery } from './hooks/useGetScorecardQuery';
|
|
25
27
|
export { getScorecards, useGetScorecardsQuery } from './hooks/useGetScorecardsQuery';
|
|
26
28
|
export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DataPoint } from '../schemas/DataPoint';
|
|
2
|
+
import type { DataSource } from '../schemas/DataSource';
|
|
3
|
+
/**
|
|
4
|
+
* Mapping of data source with data points
|
|
5
|
+
*/
|
|
6
|
+
export interface DataSourceDataPointsMap {
|
|
7
|
+
data_points: DataPoint[];
|
|
8
|
+
data_source: DataSource;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DataSourceDataPointsMap } from '../schemas/DataSourceDataPointsMap';
|
|
2
|
+
/**
|
|
3
|
+
* Response for getting the data sources and data points map
|
|
4
|
+
*/
|
|
5
|
+
export interface DataSourceDataPointsMapResponse {
|
|
6
|
+
data_source_data_points_map: DataSourceDataPointsMap[];
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CheckStatus } from '../schemas/CheckStatus';
|
|
2
|
+
/**
|
|
3
|
+
* Scorecard score calculation summary info
|
|
4
|
+
*/
|
|
5
|
+
export interface ScorecardSummaryInfo {
|
|
6
|
+
checks_statuses: CheckStatus[];
|
|
7
|
+
entity_identifier: string;
|
|
8
|
+
score: number;
|
|
9
|
+
scorecard_name: string;
|
|
10
|
+
/**
|
|
11
|
+
* @format int64
|
|
12
|
+
*/
|
|
13
|
+
timestamp: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|