@harnessio/react-idp-service-client 0.30.0 → 0.31.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/index.d.ts +2 -2
- package/dist/idp-service/src/services/schemas/CheckDetails.d.ts +0 -1
- 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/package.json +1 -1
- /package/dist/idp-service/src/services/schemas/{ScorecardFilters.js → ScorecardFilter.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
|
}
|
|
@@ -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';
|
|
@@ -164,7 +164,7 @@ export type { ScorecardChecksDetails } from './schemas/ScorecardChecksDetails';
|
|
|
164
164
|
export type { ScorecardDetails } from './schemas/ScorecardDetails';
|
|
165
165
|
export type { ScorecardDetailsRequest } from './schemas/ScorecardDetailsRequest';
|
|
166
166
|
export type { ScorecardDetailsResponse } from './schemas/ScorecardDetailsResponse';
|
|
167
|
-
export type {
|
|
167
|
+
export type { ScorecardFilter } from './schemas/ScorecardFilter';
|
|
168
168
|
export type { ScorecardResponse } from './schemas/ScorecardResponse';
|
|
169
169
|
export type { StatusInfo } from './schemas/StatusInfo';
|
|
170
170
|
export type { StatusInfoResponse } from './schemas/StatusInfoResponse';
|
|
@@ -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
|