@harnessio/react-idp-service-client 0.45.0 → 0.45.1
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/useGetStatusInfoByTypeQuery.d.ts +1 -1
- package/dist/idp-service/src/services/hooks/useGetStatusInfoTypeV2Query.d.ts +19 -0
- package/dist/idp-service/src/services/hooks/useGetStatusInfoTypeV2Query.js +14 -0
- 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/CheckStatsResponseResponse.d.ts +2 -2
- package/dist/idp-service/src/services/responses/ScorecardStatsResponseResponse.d.ts +2 -2
- package/dist/idp-service/src/services/responses/StatusInfoResponseV2Response.d.ts +2 -0
- package/dist/idp-service/src/services/responses/StatusInfoResponseV2Response.js +1 -0
- package/dist/idp-service/src/services/schemas/CheckStatsResponse.d.ts +8 -0
- package/dist/idp-service/src/services/schemas/CheckStatsResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/ScorecardStatsResponse.d.ts +8 -0
- package/dist/idp-service/src/services/schemas/ScorecardStatsResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/StatusInfoV2.d.ts +4 -0
- package/dist/idp-service/src/services/schemas/StatusInfoV2.js +1 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import type { StatusInfoResponseResponse } from '../responses/StatusInfoResponse
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetStatusInfoByTypeQueryPathParams {
|
|
6
|
-
type: 'infra' | 'onboarding';
|
|
6
|
+
type: 'infra' | 'infra_onboarding' | 'onboarding';
|
|
7
7
|
}
|
|
8
8
|
export interface GetStatusInfoByTypeQueryHeaderParams {
|
|
9
9
|
'Harness-Account'?: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { StatusInfoResponseV2Response } from '../responses/StatusInfoResponseV2Response';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetStatusInfoTypeV2QueryPathParams {
|
|
6
|
+
type: 'infra' | 'infra_onboarding' | 'onboarding';
|
|
7
|
+
}
|
|
8
|
+
export interface GetStatusInfoTypeV2QueryHeaderParams {
|
|
9
|
+
'Harness-Account'?: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetStatusInfoTypeV2OkResponse = ResponseWithPagination<StatusInfoResponseV2Response>;
|
|
12
|
+
export type GetStatusInfoTypeV2ErrorResponse = unknown;
|
|
13
|
+
export interface GetStatusInfoTypeV2Props extends GetStatusInfoTypeV2QueryPathParams, Omit<FetcherOptions<unknown, unknown, GetStatusInfoTypeV2QueryHeaderParams>, 'url'> {
|
|
14
|
+
}
|
|
15
|
+
export declare function getStatusInfoTypeV2(props: GetStatusInfoTypeV2Props): Promise<GetStatusInfoTypeV2OkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get Status Info for the given type
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGetStatusInfoTypeV2Query(props: GetStatusInfoTypeV2Props, options?: Omit<UseQueryOptions<GetStatusInfoTypeV2OkResponse, GetStatusInfoTypeV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetStatusInfoTypeV2OkResponse, 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 getStatusInfoTypeV2(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/status-info/${props.type}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Status Info for the given type
|
|
11
|
+
*/
|
|
12
|
+
export function useGetStatusInfoTypeV2Query(props, options) {
|
|
13
|
+
return useQuery(['get-status-info-type-v2', props.type], ({ signal }) => getStatusInfoTypeV2(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -59,6 +59,8 @@ export type { GetScorecardsErrorResponse, GetScorecardsOkResponse, GetScorecards
|
|
|
59
59
|
export { getScorecards, useGetScorecardsQuery } from './hooks/useGetScorecardsQuery';
|
|
60
60
|
export type { GetStatusInfoByTypeErrorResponse, GetStatusInfoByTypeOkResponse, GetStatusInfoByTypeProps, GetStatusInfoByTypeQueryPathParams, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
61
61
|
export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
62
|
+
export type { GetStatusInfoTypeV2ErrorResponse, GetStatusInfoTypeV2OkResponse, GetStatusInfoTypeV2Props, GetStatusInfoTypeV2QueryPathParams, } from './hooks/useGetStatusInfoTypeV2Query';
|
|
63
|
+
export { getStatusInfoTypeV2, useGetStatusInfoTypeV2Query, } from './hooks/useGetStatusInfoTypeV2Query';
|
|
62
64
|
export type { ImportHarnessEntitiesErrorResponse, ImportHarnessEntitiesOkResponse, ImportHarnessEntitiesProps, ImportHarnessEntitiesRequestBody, } from './hooks/useImportHarnessEntitiesMutation';
|
|
63
65
|
export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
|
|
64
66
|
export type { LayoutIngestErrorResponse, LayoutIngestOkResponse, LayoutIngestProps, LayoutIngestRequestBody, } from './hooks/useLayoutIngestMutation';
|
|
@@ -125,6 +127,7 @@ export type { ScorecardRecalibrateResponseResponse } from './responses/Scorecard
|
|
|
125
127
|
export type { ScorecardResponseListResponse } from './responses/ScorecardResponseListResponse';
|
|
126
128
|
export type { ScorecardStatsResponseResponse } from './responses/ScorecardStatsResponseResponse';
|
|
127
129
|
export type { StatusInfoResponseResponse } from './responses/StatusInfoResponseResponse';
|
|
130
|
+
export type { StatusInfoResponseV2Response } from './responses/StatusInfoResponseV2Response';
|
|
128
131
|
export type { AllowListRequest } from './schemas/AllowListRequest';
|
|
129
132
|
export type { AllowListResponse } from './schemas/AllowListResponse';
|
|
130
133
|
export type { AppConfig } from './schemas/AppConfig';
|
|
@@ -148,6 +151,7 @@ export type { CheckGraph } from './schemas/CheckGraph';
|
|
|
148
151
|
export type { CheckListItem } from './schemas/CheckListItem';
|
|
149
152
|
export type { CheckResponse } from './schemas/CheckResponse';
|
|
150
153
|
export type { CheckStats } from './schemas/CheckStats';
|
|
154
|
+
export type { CheckStatsResponse } from './schemas/CheckStatsResponse';
|
|
151
155
|
export type { CheckStatus } from './schemas/CheckStatus';
|
|
152
156
|
export type { ConfigurationEntities } from './schemas/ConfigurationEntities';
|
|
153
157
|
export type { ConnectorDetails } from './schemas/ConnectorDetails';
|
|
@@ -199,6 +203,8 @@ export type { ScorecardRecalibrateRequest } from './schemas/ScorecardRecalibrate
|
|
|
199
203
|
export type { ScorecardRecalibrateResponse } from './schemas/ScorecardRecalibrateResponse';
|
|
200
204
|
export type { ScorecardResponse } from './schemas/ScorecardResponse';
|
|
201
205
|
export type { ScorecardStats } from './schemas/ScorecardStats';
|
|
206
|
+
export type { ScorecardStatsResponse } from './schemas/ScorecardStatsResponse';
|
|
202
207
|
export type { ScorecardSummaryInfo } from './schemas/ScorecardSummaryInfo';
|
|
203
208
|
export type { StatusInfo } from './schemas/StatusInfo';
|
|
204
209
|
export type { StatusInfoResponse } from './schemas/StatusInfoResponse';
|
|
210
|
+
export type { StatusInfoV2 } from './schemas/StatusInfoV2';
|
|
@@ -28,6 +28,7 @@ export { getScorecard, useGetScorecardQuery } from './hooks/useGetScorecardQuery
|
|
|
28
28
|
export { getScorecardStats, useGetScorecardStatsQuery } from './hooks/useGetScorecardStatsQuery';
|
|
29
29
|
export { getScorecards, useGetScorecardsQuery } from './hooks/useGetScorecardsQuery';
|
|
30
30
|
export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
31
|
+
export { getStatusInfoTypeV2, useGetStatusInfoTypeV2Query, } from './hooks/useGetStatusInfoTypeV2Query';
|
|
31
32
|
export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
|
|
32
33
|
export { layoutIngest, useLayoutIngestMutation } from './hooks/useLayoutIngestMutation';
|
|
33
34
|
export { onboardingGenerateYaml, useOnboardingGenerateYamlMutation, } from './hooks/useOnboardingGenerateYamlMutation';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type CheckStatsResponseResponse =
|
|
1
|
+
import type { CheckStatsResponse } from '../schemas/CheckStatsResponse';
|
|
2
|
+
export type CheckStatsResponseResponse = CheckStatsResponse[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type ScorecardStatsResponseResponse =
|
|
1
|
+
import type { ScorecardStatsResponse } from '../schemas/ScorecardStatsResponse';
|
|
2
|
+
export type ScorecardStatsResponseResponse = ScorecardStatsResponse[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|