@harnessio/react-idp-service-client 0.32.0 → 0.34.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/useCreateCheckMutation.d.ts +2 -1
- package/dist/idp-service/src/services/hooks/useCreateScorecardMutation.d.ts +2 -1
- package/dist/idp-service/src/services/hooks/useGetChecksQuery.d.ts +4 -0
- 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/useUpdateCheckMutation.d.ts +2 -1
- package/dist/idp-service/src/services/hooks/useUpdateScorecardMutation.d.ts +2 -1
- package/dist/idp-service/src/services/index.d.ts +7 -0
- package/dist/idp-service/src/services/index.js +1 -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/DefaultSaveResponseResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/DefaultSaveResponseResponse.js +1 -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/DefaultSaveResponse.d.ts +6 -0
- package/dist/idp-service/src/services/schemas/DefaultSaveResponse.js +4 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DefaultSaveResponseResponse } from '../responses/DefaultSaveResponseResponse';
|
|
2
3
|
import type { CheckDetailsRequest } from '../schemas/CheckDetailsRequest';
|
|
3
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -6,7 +7,7 @@ export interface CreateCheckMutationHeaderParams {
|
|
|
6
7
|
'Harness-Account'?: string;
|
|
7
8
|
}
|
|
8
9
|
export type CreateCheckRequestBody = CheckDetailsRequest;
|
|
9
|
-
export type CreateCheckOkResponse = ResponseWithPagination<
|
|
10
|
+
export type CreateCheckOkResponse = ResponseWithPagination<DefaultSaveResponseResponse>;
|
|
10
11
|
export type CreateCheckErrorResponse = unknown;
|
|
11
12
|
export interface CreateCheckProps extends Omit<FetcherOptions<unknown, CreateCheckRequestBody, CreateCheckMutationHeaderParams>, 'url'> {
|
|
12
13
|
body: CreateCheckRequestBody;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DefaultSaveResponseResponse } from '../responses/DefaultSaveResponseResponse';
|
|
2
3
|
import type { ScorecardDetailsRequest } from '../schemas/ScorecardDetailsRequest';
|
|
3
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -6,7 +7,7 @@ export interface CreateScorecardMutationHeaderParams {
|
|
|
6
7
|
'Harness-Account'?: string;
|
|
7
8
|
}
|
|
8
9
|
export type CreateScorecardRequestBody = ScorecardDetailsRequest;
|
|
9
|
-
export type CreateScorecardOkResponse = ResponseWithPagination<
|
|
10
|
+
export type CreateScorecardOkResponse = ResponseWithPagination<DefaultSaveResponseResponse>;
|
|
10
11
|
export type CreateScorecardErrorResponse = unknown;
|
|
11
12
|
export interface CreateScorecardProps extends Omit<FetcherOptions<unknown, CreateScorecardRequestBody, CreateScorecardMutationHeaderParams>, 'url'> {
|
|
12
13
|
body: CreateScorecardRequestBody;
|
|
@@ -4,6 +4,10 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetChecksQueryQueryParams {
|
|
6
6
|
custom?: boolean;
|
|
7
|
+
page?: number;
|
|
8
|
+
limit?: number;
|
|
9
|
+
sort?: string;
|
|
10
|
+
search_term?: string;
|
|
7
11
|
}
|
|
8
12
|
export interface GetChecksQueryHeaderParams {
|
|
9
13
|
'Harness-Account'?: string;
|
|
@@ -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
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DefaultSaveResponseResponse } from '../responses/DefaultSaveResponseResponse';
|
|
2
3
|
import type { CheckDetailsRequest } from '../schemas/CheckDetailsRequest';
|
|
3
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -9,7 +10,7 @@ export interface UpdateCheckMutationHeaderParams {
|
|
|
9
10
|
'Harness-Account'?: string;
|
|
10
11
|
}
|
|
11
12
|
export type UpdateCheckRequestBody = CheckDetailsRequest;
|
|
12
|
-
export type UpdateCheckOkResponse = ResponseWithPagination<
|
|
13
|
+
export type UpdateCheckOkResponse = ResponseWithPagination<DefaultSaveResponseResponse>;
|
|
13
14
|
export type UpdateCheckErrorResponse = unknown;
|
|
14
15
|
export interface UpdateCheckProps extends UpdateCheckMutationPathParams, Omit<FetcherOptions<unknown, UpdateCheckRequestBody, UpdateCheckMutationHeaderParams>, 'url'> {
|
|
15
16
|
body: UpdateCheckRequestBody;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DefaultSaveResponseResponse } from '../responses/DefaultSaveResponseResponse';
|
|
2
3
|
import type { ScorecardDetailsRequest } from '../schemas/ScorecardDetailsRequest';
|
|
3
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -9,7 +10,7 @@ export interface UpdateScorecardMutationHeaderParams {
|
|
|
9
10
|
'Harness-Account'?: string;
|
|
10
11
|
}
|
|
11
12
|
export type UpdateScorecardRequestBody = ScorecardDetailsRequest;
|
|
12
|
-
export type UpdateScorecardOkResponse = ResponseWithPagination<
|
|
13
|
+
export type UpdateScorecardOkResponse = ResponseWithPagination<DefaultSaveResponseResponse>;
|
|
13
14
|
export type UpdateScorecardErrorResponse = unknown;
|
|
14
15
|
export interface UpdateScorecardProps extends UpdateScorecardMutationPathParams, Omit<FetcherOptions<unknown, UpdateScorecardRequestBody, UpdateScorecardMutationHeaderParams>, 'url'> {
|
|
15
16
|
body: UpdateScorecardRequestBody;
|
|
@@ -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';
|
|
@@ -94,8 +96,10 @@ export type { CheckDetailsResponseResponse } from './responses/CheckDetailsRespo
|
|
|
94
96
|
export type { CheckResponseListResponse } from './responses/CheckResponseListResponse';
|
|
95
97
|
export type { ConfigurationEntitiesResponseResponse } from './responses/ConfigurationEntitiesResponseResponse';
|
|
96
98
|
export type { ConnectorInfoResponseResponse } from './responses/ConnectorInfoResponseResponse';
|
|
99
|
+
export type { DataSourceDataPointsMapResponseResponse } from './responses/DataSourceDataPointsMapResponseResponse';
|
|
97
100
|
export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
|
|
98
101
|
export type { DatapointResponseResponse } from './responses/DatapointResponseResponse';
|
|
102
|
+
export type { DefaultSaveResponseResponse } from './responses/DefaultSaveResponseResponse';
|
|
99
103
|
export type { FacetsResponseResponse } from './responses/FacetsResponseResponse';
|
|
100
104
|
export type { GenerateYamlResponseResponse } from './responses/GenerateYamlResponseResponse';
|
|
101
105
|
export type { HarnessEntitiesCountResponseResponse } from './responses/HarnessEntitiesCountResponseResponse';
|
|
@@ -136,7 +140,10 @@ export type { ConnectorInfoResponse } from './schemas/ConnectorInfoResponse';
|
|
|
136
140
|
export type { DataPoint } from './schemas/DataPoint';
|
|
137
141
|
export type { DataPointsResponse } from './schemas/DataPointsResponse';
|
|
138
142
|
export type { DataSource } from './schemas/DataSource';
|
|
143
|
+
export type { DataSourceDataPointsMap } from './schemas/DataSourceDataPointsMap';
|
|
144
|
+
export type { DataSourceDataPointsMapResponse } from './schemas/DataSourceDataPointsMapResponse';
|
|
139
145
|
export type { DataSourcesResponse } from './schemas/DataSourcesResponse';
|
|
146
|
+
export type { DefaultSaveResponse } from './schemas/DefaultSaveResponse';
|
|
140
147
|
export type { EntitiesForImport } from './schemas/EntitiesForImport';
|
|
141
148
|
export type { ExportDetails } from './schemas/ExportDetails';
|
|
142
149
|
export type { Exports } from './schemas/Exports';
|
|
@@ -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';
|
|
@@ -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 {};
|