@harnessio/react-idp-service-client 0.31.0 → 0.33.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/useGetCheckQuery.d.ts +1 -1
- package/dist/idp-service/src/services/hooks/useGetChecksQuery.d.ts +5 -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/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 +6 -0
- package/dist/idp-service/src/services/index.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/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 -1
- package/dist/idp-service/src/services/schemas/DefaultSaveResponse.d.ts +6 -0
- package/dist/idp-service/src/services/schemas/DefaultSaveResponse.js +4 -0
- package/dist/idp-service/src/services/schemas/Facets.d.ts +6 -0
- package/dist/idp-service/src/services/schemas/Facets.js +4 -0
- package/dist/idp-service/src/services/schemas/ScorecardDetails.d.ts +1 -1
- 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;
|
|
@@ -3,7 +3,11 @@ 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
|
+
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,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
|
+
}
|
|
@@ -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 { 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,8 @@ 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 { DefaultSaveResponseResponse } from './responses/DefaultSaveResponseResponse';
|
|
100
|
+
export type { FacetsResponseResponse } from './responses/FacetsResponseResponse';
|
|
97
101
|
export type { GenerateYamlResponseResponse } from './responses/GenerateYamlResponseResponse';
|
|
98
102
|
export type { HarnessEntitiesCountResponseResponse } from './responses/HarnessEntitiesCountResponseResponse';
|
|
99
103
|
export type { HarnessEntitiesResponseResponse } from './responses/HarnessEntitiesResponseResponse';
|
|
@@ -134,9 +138,11 @@ export type { DataPoint } from './schemas/DataPoint';
|
|
|
134
138
|
export type { DataPointsResponse } from './schemas/DataPointsResponse';
|
|
135
139
|
export type { DataSource } from './schemas/DataSource';
|
|
136
140
|
export type { DataSourcesResponse } from './schemas/DataSourcesResponse';
|
|
141
|
+
export type { DefaultSaveResponse } from './schemas/DefaultSaveResponse';
|
|
137
142
|
export type { EntitiesForImport } from './schemas/EntitiesForImport';
|
|
138
143
|
export type { ExportDetails } from './schemas/ExportDetails';
|
|
139
144
|
export type { Exports } from './schemas/Exports';
|
|
145
|
+
export type { Facets } from './schemas/Facets';
|
|
140
146
|
export type { GenerateYamlRequest } from './schemas/GenerateYamlRequest';
|
|
141
147
|
export type { GenerateYamlResponse } from './schemas/GenerateYamlResponse';
|
|
142
148
|
export type { HarnessBackstageEntities } from './schemas/HarnessBackstageEntities';
|
|
@@ -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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import type { ScorecardFilter } from '../schemas/ScorecardFilter';
|
|
|
2
2
|
export interface ScorecardDetails {
|
|
3
3
|
checks_missing?: string[];
|
|
4
4
|
description?: string;
|
|
5
|
-
filter
|
|
5
|
+
filter: ScorecardFilter;
|
|
6
6
|
identifier: string;
|
|
7
7
|
name: string;
|
|
8
8
|
published: boolean;
|