@harnessio/react-idp-service-client 0.51.2 → 0.51.3
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/useGetHomePageLayoutInfoQuery.d.ts +16 -0
- package/dist/idp-service/src/services/hooks/useGetHomePageLayoutInfoQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useSaveHomePageLayoutInfoMutation.d.ts +19 -0
- package/dist/idp-service/src/services/hooks/useSaveHomePageLayoutInfoMutation.js +14 -0
- package/dist/idp-service/src/services/index.d.ts +14 -0
- package/dist/idp-service/src/services/index.js +2 -0
- package/dist/idp-service/src/services/requestBodies/HomePageLayoutRequestRequestBody.d.ts +2 -0
- package/dist/idp-service/src/services/requestBodies/HomePageLayoutRequestRequestBody.js +1 -0
- package/dist/idp-service/src/services/responses/HomePageLayoutResponseResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/HomePageLayoutResponseResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/BannerInfo.d.ts +6 -0
- package/dist/idp-service/src/services/schemas/BannerInfo.js +1 -0
- package/dist/idp-service/src/services/schemas/Card.d.ts +11 -0
- package/dist/idp-service/src/services/schemas/Card.js +4 -0
- package/dist/idp-service/src/services/schemas/HeaderInfo.d.ts +5 -0
- package/dist/idp-service/src/services/schemas/HeaderInfo.js +1 -0
- package/dist/idp-service/src/services/schemas/HomePageLayoutInfo.d.ts +8 -0
- package/dist/idp-service/src/services/schemas/HomePageLayoutInfo.js +1 -0
- package/dist/idp-service/src/services/schemas/HomePageLayoutRequest.d.ts +4 -0
- package/dist/idp-service/src/services/schemas/HomePageLayoutRequest.js +1 -0
- package/dist/idp-service/src/services/schemas/HomePageLayoutResponse.d.ts +4 -0
- package/dist/idp-service/src/services/schemas/HomePageLayoutResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/LinksInfo.d.ts +5 -0
- package/dist/idp-service/src/services/schemas/LinksInfo.js +4 -0
- package/dist/idp-service/src/services/schemas/UploadInfo.d.ts +5 -0
- package/dist/idp-service/src/services/schemas/UploadInfo.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { HomePageLayoutResponseResponse } from '../responses/HomePageLayoutResponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetHomePageLayoutInfoQueryHeaderParams {
|
|
6
|
+
'Harness-Account'?: string;
|
|
7
|
+
}
|
|
8
|
+
export type GetHomePageLayoutInfoOkResponse = ResponseWithPagination<HomePageLayoutResponseResponse>;
|
|
9
|
+
export type GetHomePageLayoutInfoErrorResponse = unknown;
|
|
10
|
+
export interface GetHomePageLayoutInfoProps extends Omit<FetcherOptions<unknown, unknown, GetHomePageLayoutInfoQueryHeaderParams>, 'url'> {
|
|
11
|
+
}
|
|
12
|
+
export declare function getHomePageLayoutInfo(props: GetHomePageLayoutInfoProps): Promise<GetHomePageLayoutInfoOkResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get Home Page Layout Details
|
|
15
|
+
*/
|
|
16
|
+
export declare function useGetHomePageLayoutInfoQuery(props: GetHomePageLayoutInfoProps, options?: Omit<UseQueryOptions<GetHomePageLayoutInfoOkResponse, GetHomePageLayoutInfoErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetHomePageLayoutInfoOkResponse, 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 getHomePageLayoutInfo(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/home-page-layout`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Home Page Layout Details
|
|
11
|
+
*/
|
|
12
|
+
export function useGetHomePageLayoutInfoQuery(props, options) {
|
|
13
|
+
return useQuery(['get-home-page-layout-info'], ({ signal }) => getHomePageLayoutInfo(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { HomePageLayoutResponseResponse } from '../responses/HomePageLayoutResponseResponse';
|
|
3
|
+
import type { HomePageLayoutRequestRequestBody } from '../requestBodies/HomePageLayoutRequestRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface SaveHomePageLayoutInfoMutationHeaderParams {
|
|
7
|
+
'Harness-Account'?: string;
|
|
8
|
+
}
|
|
9
|
+
export type SaveHomePageLayoutInfoRequestBody = HomePageLayoutRequestRequestBody;
|
|
10
|
+
export type SaveHomePageLayoutInfoOkResponse = ResponseWithPagination<HomePageLayoutResponseResponse>;
|
|
11
|
+
export type SaveHomePageLayoutInfoErrorResponse = unknown;
|
|
12
|
+
export interface SaveHomePageLayoutInfoProps extends Omit<FetcherOptions<unknown, SaveHomePageLayoutInfoRequestBody, SaveHomePageLayoutInfoMutationHeaderParams>, 'url'> {
|
|
13
|
+
body: SaveHomePageLayoutInfoRequestBody;
|
|
14
|
+
}
|
|
15
|
+
export declare function saveHomePageLayoutInfo(props: SaveHomePageLayoutInfoProps): Promise<SaveHomePageLayoutInfoOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Save Home Page Layout Details
|
|
18
|
+
*/
|
|
19
|
+
export declare function useSaveHomePageLayoutInfoMutation(options?: Omit<UseMutationOptions<SaveHomePageLayoutInfoOkResponse, SaveHomePageLayoutInfoErrorResponse, SaveHomePageLayoutInfoProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveHomePageLayoutInfoOkResponse, unknown, SaveHomePageLayoutInfoProps, 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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function saveHomePageLayoutInfo(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/home-page-layout`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Save Home Page Layout Details
|
|
11
|
+
*/
|
|
12
|
+
export function useSaveHomePageLayoutInfoMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => saveHomePageLayoutInfo(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -71,6 +71,8 @@ export type { GetHarnessEntitiesCountErrorResponse, GetHarnessEntitiesCountOkRes
|
|
|
71
71
|
export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
|
|
72
72
|
export type { GetHarnessEntitiesErrorResponse, GetHarnessEntitiesOkResponse, GetHarnessEntitiesProps, GetHarnessEntitiesQueryQueryParams, } from './hooks/useGetHarnessEntitiesQuery';
|
|
73
73
|
export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
|
|
74
|
+
export type { GetHomePageLayoutInfoErrorResponse, GetHomePageLayoutInfoOkResponse, GetHomePageLayoutInfoProps, } from './hooks/useGetHomePageLayoutInfoQuery';
|
|
75
|
+
export { getHomePageLayoutInfo, useGetHomePageLayoutInfoQuery, } from './hooks/useGetHomePageLayoutInfoQuery';
|
|
74
76
|
export type { GetIntegrationErrorResponse, GetIntegrationOkResponse, GetIntegrationProps, GetIntegrationQueryPathParams, } from './hooks/useGetIntegrationQuery';
|
|
75
77
|
export { getIntegration, useGetIntegrationQuery } from './hooks/useGetIntegrationQuery';
|
|
76
78
|
export type { GetIntegrationsErrorResponse, GetIntegrationsOkResponse, GetIntegrationsProps, GetIntegrationsQueryPathParams, GetIntegrationsQueryQueryParams, } from './hooks/useGetIntegrationsQuery';
|
|
@@ -119,6 +121,8 @@ export type { SaveCustomPluginsInfoErrorResponse, SaveCustomPluginsInfoOkRespons
|
|
|
119
121
|
export { saveCustomPluginsInfo, useSaveCustomPluginsInfoMutation, } from './hooks/useSaveCustomPluginsInfoMutation';
|
|
120
122
|
export type { SaveGroupErrorResponse, SaveGroupOkResponse, SaveGroupProps, SaveGroupRequestBody, } from './hooks/useSaveGroupMutation';
|
|
121
123
|
export { saveGroup, useSaveGroupMutation } from './hooks/useSaveGroupMutation';
|
|
124
|
+
export type { SaveHomePageLayoutInfoErrorResponse, SaveHomePageLayoutInfoOkResponse, SaveHomePageLayoutInfoProps, SaveHomePageLayoutInfoRequestBody, } from './hooks/useSaveHomePageLayoutInfoMutation';
|
|
125
|
+
export { saveHomePageLayoutInfo, useSaveHomePageLayoutInfoMutation, } from './hooks/useSaveHomePageLayoutInfoMutation';
|
|
122
126
|
export type { SaveOrUpdatePluginAppConfigErrorResponse, SaveOrUpdatePluginAppConfigOkResponse, SaveOrUpdatePluginAppConfigProps, SaveOrUpdatePluginAppConfigRequestBody, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
|
|
123
127
|
export { saveOrUpdatePluginAppConfig, useSaveOrUpdatePluginAppConfigMutation, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
|
|
124
128
|
export type { ScorecardRecalibrateErrorResponse, ScorecardRecalibrateOkResponse, ScorecardRecalibrateProps, ScorecardRecalibrateRequestBody, } from './hooks/useScorecardRecalibrateMutation';
|
|
@@ -149,6 +153,7 @@ export type { CustomPluginInfoRequestRequestBody } from './requestBodies/CustomP
|
|
|
149
153
|
export type { GenerateYamlRequestRequestBody } from './requestBodies/GenerateYamlRequestRequestBody';
|
|
150
154
|
export type { GroupRequestListRequestBody } from './requestBodies/GroupRequestListRequestBody';
|
|
151
155
|
export type { GroupRequestRequestBody } from './requestBodies/GroupRequestRequestBody';
|
|
156
|
+
export type { HomePageLayoutRequestRequestBody } from './requestBodies/HomePageLayoutRequestRequestBody';
|
|
152
157
|
export type { ImportHarnessEntitiesRequestRequestBody } from './requestBodies/ImportHarnessEntitiesRequestRequestBody';
|
|
153
158
|
export type { IntegrationRequestRequestBody } from './requestBodies/IntegrationRequestRequestBody';
|
|
154
159
|
export type { OnboardingCdEntitiesFetchRequestRequestBody } from './requestBodies/OnboardingCdEntitiesFetchRequestRequestBody';
|
|
@@ -181,6 +186,7 @@ export type { GroupResponseResponse } from './responses/GroupResponseResponse';
|
|
|
181
186
|
export type { GroupsYamlResponseResponse } from './responses/GroupsYamlResponseResponse';
|
|
182
187
|
export type { HarnessEntitiesCountResponseResponse } from './responses/HarnessEntitiesCountResponseResponse';
|
|
183
188
|
export type { HarnessEntitiesResponseResponse } from './responses/HarnessEntitiesResponseResponse';
|
|
189
|
+
export type { HomePageLayoutResponseResponse } from './responses/HomePageLayoutResponseResponse';
|
|
184
190
|
export type { ImportEntitiesResponseResponse } from './responses/ImportEntitiesResponseResponse';
|
|
185
191
|
export type { IntegrationResponseListResponse } from './responses/IntegrationResponseListResponse';
|
|
186
192
|
export type { IntegrationResponseResponse } from './responses/IntegrationResponseResponse';
|
|
@@ -218,8 +224,10 @@ export type { BackstageEnvVariableResponse } from './schemas/BackstageEnvVariabl
|
|
|
218
224
|
export type { BackstagePermissions } from './schemas/BackstagePermissions';
|
|
219
225
|
export type { BackstagePermissionsRequest } from './schemas/BackstagePermissionsRequest';
|
|
220
226
|
export type { BackstagePermissionsResponse } from './schemas/BackstagePermissionsResponse';
|
|
227
|
+
export type { BannerInfo } from './schemas/BannerInfo';
|
|
221
228
|
export type { BaseIntegrationRequest } from './schemas/BaseIntegrationRequest';
|
|
222
229
|
export type { BaseIntegrationResponse } from './schemas/BaseIntegrationResponse';
|
|
230
|
+
export type { Card } from './schemas/Card';
|
|
223
231
|
export type { CatalogConnectorInfo } from './schemas/CatalogConnectorInfo';
|
|
224
232
|
export type { CdEntityAsIdpEntity } from './schemas/CdEntityAsIdpEntity';
|
|
225
233
|
export type { Check } from './schemas/Check';
|
|
@@ -262,6 +270,10 @@ export type { GroupsYamlResponse } from './schemas/GroupsYamlResponse';
|
|
|
262
270
|
export type { HarnessBackstageEntities } from './schemas/HarnessBackstageEntities';
|
|
263
271
|
export type { HarnessEntitiesCountResponse } from './schemas/HarnessEntitiesCountResponse';
|
|
264
272
|
export type { HarnessEntitiesResponse } from './schemas/HarnessEntitiesResponse';
|
|
273
|
+
export type { HeaderInfo } from './schemas/HeaderInfo';
|
|
274
|
+
export type { HomePageLayoutInfo } from './schemas/HomePageLayoutInfo';
|
|
275
|
+
export type { HomePageLayoutRequest } from './schemas/HomePageLayoutRequest';
|
|
276
|
+
export type { HomePageLayoutResponse } from './schemas/HomePageLayoutResponse';
|
|
265
277
|
export type { HostInfo } from './schemas/HostInfo';
|
|
266
278
|
export type { ImportEntitiesBase } from './schemas/ImportEntitiesBase';
|
|
267
279
|
export type { ImportEntitiesResponse } from './schemas/ImportEntitiesResponse';
|
|
@@ -270,6 +282,7 @@ export type { InputValue } from './schemas/InputValue';
|
|
|
270
282
|
export type { LayoutIngestRequest } from './schemas/LayoutIngestRequest';
|
|
271
283
|
export type { LayoutRequest } from './schemas/LayoutRequest';
|
|
272
284
|
export type { LayoutResponse } from './schemas/LayoutResponse';
|
|
285
|
+
export type { LinksInfo } from './schemas/LinksInfo';
|
|
273
286
|
export type { MergedPluginConfigResponse } from './schemas/MergedPluginConfigResponse';
|
|
274
287
|
export type { MergedPluginConfigs } from './schemas/MergedPluginConfigs';
|
|
275
288
|
export type { OnboardingCdEntitiesCountResponse } from './schemas/OnboardingCdEntitiesCountResponse';
|
|
@@ -309,6 +322,7 @@ export type { ScorecardSummaryInfo } from './schemas/ScorecardSummaryInfo';
|
|
|
309
322
|
export type { StatusInfo } from './schemas/StatusInfo';
|
|
310
323
|
export type { StatusInfoResponse } from './schemas/StatusInfoResponse';
|
|
311
324
|
export type { StatusInfoV2 } from './schemas/StatusInfoV2';
|
|
325
|
+
export type { UploadInfo } from './schemas/UploadInfo';
|
|
312
326
|
export type { User } from './schemas/User';
|
|
313
327
|
export type { WorkflowsInfo } from './schemas/WorkflowsInfo';
|
|
314
328
|
export type { WorkflowsInfoResponse } from './schemas/WorkflowsInfoResponse';
|
|
@@ -34,6 +34,7 @@ export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDet
|
|
|
34
34
|
export { getGroupsYaml, useGetGroupsYamlQuery } from './hooks/useGetGroupsYamlQuery';
|
|
35
35
|
export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
|
|
36
36
|
export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
|
|
37
|
+
export { getHomePageLayoutInfo, useGetHomePageLayoutInfoQuery, } from './hooks/useGetHomePageLayoutInfoQuery';
|
|
37
38
|
export { getIntegration, useGetIntegrationQuery } from './hooks/useGetIntegrationQuery';
|
|
38
39
|
export { getIntegrations, useGetIntegrationsQuery } from './hooks/useGetIntegrationsQuery';
|
|
39
40
|
export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
|
|
@@ -58,6 +59,7 @@ export { saveAuthInfoAuthId, useSaveAuthInfoAuthIdMutation, } from './hooks/useS
|
|
|
58
59
|
export { saveConnectorInfo, useSaveConnectorInfoMutation, } from './hooks/useSaveConnectorInfoMutation';
|
|
59
60
|
export { saveCustomPluginsInfo, useSaveCustomPluginsInfoMutation, } from './hooks/useSaveCustomPluginsInfoMutation';
|
|
60
61
|
export { saveGroup, useSaveGroupMutation } from './hooks/useSaveGroupMutation';
|
|
62
|
+
export { saveHomePageLayoutInfo, useSaveHomePageLayoutInfoMutation, } from './hooks/useSaveHomePageLayoutInfoMutation';
|
|
61
63
|
export { saveOrUpdatePluginAppConfig, useSaveOrUpdatePluginAppConfigMutation, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
|
|
62
64
|
export { scorecardRecalibrate, useScorecardRecalibrateMutation, } from './hooks/useScorecardRecalibrateMutation';
|
|
63
65
|
export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Home Page Layout Cards
|
|
3
|
+
*/
|
|
4
|
+
export interface Card {
|
|
5
|
+
default_card: boolean;
|
|
6
|
+
draft: boolean;
|
|
7
|
+
icon_url?: string;
|
|
8
|
+
identifier?: string;
|
|
9
|
+
title: string;
|
|
10
|
+
type: 'CUSTOM_LINK' | 'LEARN_MORE' | 'MARKDOWN' | 'RECENTLY_VISITED' | 'SELF_SERVICE' | 'STARRED_ENTITIES' | 'TOP_VISITED' | 'VIDEO';
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BannerInfo } from '../schemas/BannerInfo';
|
|
2
|
+
import type { Card } from '../schemas/Card';
|
|
3
|
+
import type { HeaderInfo } from '../schemas/HeaderInfo';
|
|
4
|
+
export interface HomePageLayoutInfo {
|
|
5
|
+
banner: BannerInfo;
|
|
6
|
+
cards: Card[];
|
|
7
|
+
header: HeaderInfo;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|