@harnessio/react-idp-service-client 0.51.3 → 0.51.4

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.
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface DeleteCustomLinkCardQuickLinksMutationPathParams {
5
+ 'card-identifier': string;
6
+ 'quick-link-identifier': string;
7
+ }
8
+ export interface DeleteCustomLinkCardQuickLinksMutationHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type DeleteCustomLinkCardQuickLinksOkResponse = ResponseWithPagination<unknown>;
12
+ export type DeleteCustomLinkCardQuickLinksErrorResponse = unknown;
13
+ export interface DeleteCustomLinkCardQuickLinksProps extends DeleteCustomLinkCardQuickLinksMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteCustomLinkCardQuickLinksMutationHeaderParams>, 'url'> {
14
+ }
15
+ export declare function deleteCustomLinkCardQuickLinks(props: DeleteCustomLinkCardQuickLinksProps): Promise<DeleteCustomLinkCardQuickLinksOkResponse>;
16
+ /**
17
+ * Delete custom link card quick links icon
18
+ */
19
+ export declare function useDeleteCustomLinkCardQuickLinksMutation(options?: Omit<UseMutationOptions<DeleteCustomLinkCardQuickLinksOkResponse, DeleteCustomLinkCardQuickLinksErrorResponse, DeleteCustomLinkCardQuickLinksProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteCustomLinkCardQuickLinksOkResponse, unknown, DeleteCustomLinkCardQuickLinksProps, 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 deleteCustomLinkCardQuickLinks(props) {
7
+ return fetcher(Object.assign({ url: `/v1/home-page-layout/custom-card/${props['card-identifier']}/quick-links/${props['quick-link-identifier']}/icon`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete custom link card quick links icon
11
+ */
12
+ export function useDeleteCustomLinkCardQuickLinksMutation(options) {
13
+ return useMutation((mutateProps) => deleteCustomLinkCardQuickLinks(mutateProps), options);
14
+ }
@@ -0,0 +1,18 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface DeleteHeadersQuickLinksIconMutationPathParams {
5
+ 'quick-link-identifier': string;
6
+ }
7
+ export interface DeleteHeadersQuickLinksIconMutationHeaderParams {
8
+ 'Harness-Account'?: string;
9
+ }
10
+ export type DeleteHeadersQuickLinksIconOkResponse = ResponseWithPagination<unknown>;
11
+ export type DeleteHeadersQuickLinksIconErrorResponse = unknown;
12
+ export interface DeleteHeadersQuickLinksIconProps extends DeleteHeadersQuickLinksIconMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteHeadersQuickLinksIconMutationHeaderParams>, 'url'> {
13
+ }
14
+ export declare function deleteHeadersQuickLinksIcon(props: DeleteHeadersQuickLinksIconProps): Promise<DeleteHeadersQuickLinksIconOkResponse>;
15
+ /**
16
+ * Delete header quick links icon
17
+ */
18
+ export declare function useDeleteHeadersQuickLinksIconMutation(options?: Omit<UseMutationOptions<DeleteHeadersQuickLinksIconOkResponse, DeleteHeadersQuickLinksIconErrorResponse, DeleteHeadersQuickLinksIconProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteHeadersQuickLinksIconOkResponse, unknown, DeleteHeadersQuickLinksIconProps, 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 deleteHeadersQuickLinksIcon(props) {
7
+ return fetcher(Object.assign({ url: `/v1/home-page-layout/header/quick-links/${props['quick-link-identifier']}/icon`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete header quick links icon
11
+ */
12
+ export function useDeleteHeadersQuickLinksIconMutation(options) {
13
+ return useMutation((mutateProps) => deleteHeadersQuickLinksIcon(mutateProps), options);
14
+ }
@@ -0,0 +1,18 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface DeleteHomePageLayoutCardsIconMutationPathParams {
5
+ 'card-identifier': string;
6
+ }
7
+ export interface DeleteHomePageLayoutCardsIconMutationHeaderParams {
8
+ 'Harness-Account'?: string;
9
+ }
10
+ export type DeleteHomePageLayoutCardsIconOkResponse = ResponseWithPagination<unknown>;
11
+ export type DeleteHomePageLayoutCardsIconErrorResponse = unknown;
12
+ export interface DeleteHomePageLayoutCardsIconProps extends DeleteHomePageLayoutCardsIconMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteHomePageLayoutCardsIconMutationHeaderParams>, 'url'> {
13
+ }
14
+ export declare function deleteHomePageLayoutCardsIcon(props: DeleteHomePageLayoutCardsIconProps): Promise<DeleteHomePageLayoutCardsIconOkResponse>;
15
+ /**
16
+ * Delete card icon
17
+ */
18
+ export declare function useDeleteHomePageLayoutCardsIconMutation(options?: Omit<UseMutationOptions<DeleteHomePageLayoutCardsIconOkResponse, DeleteHomePageLayoutCardsIconErrorResponse, DeleteHomePageLayoutCardsIconProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteHomePageLayoutCardsIconOkResponse, unknown, DeleteHomePageLayoutCardsIconProps, 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 deleteHomePageLayoutCardsIcon(props) {
7
+ return fetcher(Object.assign({ url: `/v1/home-page-layout/card/${props['card-identifier']}/icon`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete card icon
11
+ */
12
+ export function useDeleteHomePageLayoutCardsIconMutation(options) {
13
+ return useMutation((mutateProps) => deleteHomePageLayoutCardsIcon(mutateProps), options);
14
+ }
@@ -19,10 +19,16 @@ export type { CustomPluginsTriggerErrorResponse, CustomPluginsTriggerMutationPat
19
19
  export { customPluginsTrigger, useCustomPluginsTriggerMutation, } from './hooks/useCustomPluginsTriggerMutation';
20
20
  export type { DeleteCheckErrorResponse, DeleteCheckMutationPathParams, DeleteCheckMutationQueryParams, DeleteCheckOkResponse, DeleteCheckProps, } from './hooks/useDeleteCheckMutation';
21
21
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
22
+ export type { DeleteCustomLinkCardQuickLinksErrorResponse, DeleteCustomLinkCardQuickLinksMutationPathParams, DeleteCustomLinkCardQuickLinksOkResponse, DeleteCustomLinkCardQuickLinksProps, } from './hooks/useDeleteCustomLinkCardQuickLinksMutation';
23
+ export { deleteCustomLinkCardQuickLinks, useDeleteCustomLinkCardQuickLinksMutation, } from './hooks/useDeleteCustomLinkCardQuickLinksMutation';
22
24
  export type { DeleteCustomPluginInfoErrorResponse, DeleteCustomPluginInfoMutationPathParams, DeleteCustomPluginInfoMutationQueryParams, DeleteCustomPluginInfoOkResponse, DeleteCustomPluginInfoProps, } from './hooks/useDeleteCustomPluginInfoMutation';
23
25
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
24
26
  export type { DeleteGroupErrorResponse, DeleteGroupMutationPathParams, DeleteGroupOkResponse, DeleteGroupProps, } from './hooks/useDeleteGroupMutation';
25
27
  export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
28
+ export type { DeleteHeadersQuickLinksIconErrorResponse, DeleteHeadersQuickLinksIconMutationPathParams, DeleteHeadersQuickLinksIconOkResponse, DeleteHeadersQuickLinksIconProps, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
29
+ export { deleteHeadersQuickLinksIcon, useDeleteHeadersQuickLinksIconMutation, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
30
+ export type { DeleteHomePageLayoutCardsIconErrorResponse, DeleteHomePageLayoutCardsIconMutationPathParams, DeleteHomePageLayoutCardsIconOkResponse, DeleteHomePageLayoutCardsIconProps, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
31
+ export { deleteHomePageLayoutCardsIcon, useDeleteHomePageLayoutCardsIconMutation, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
26
32
  export type { DeleteLayoutErrorResponse, DeleteLayoutOkResponse, DeleteLayoutProps, } from './hooks/useDeleteLayoutMutation';
27
33
  export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
28
34
  export type { DeleteScorecardErrorResponse, DeleteScorecardMutationPathParams, DeleteScorecardOkResponse, DeleteScorecardProps, } from './hooks/useDeleteScorecardMutation';
@@ -8,8 +8,11 @@ export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMu
8
8
  export { createScorecard, useCreateScorecardMutation } from './hooks/useCreateScorecardMutation';
9
9
  export { customPluginsTrigger, useCustomPluginsTriggerMutation, } from './hooks/useCustomPluginsTriggerMutation';
10
10
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
11
+ export { deleteCustomLinkCardQuickLinks, useDeleteCustomLinkCardQuickLinksMutation, } from './hooks/useDeleteCustomLinkCardQuickLinksMutation';
11
12
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
12
13
  export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
14
+ export { deleteHeadersQuickLinksIcon, useDeleteHeadersQuickLinksIconMutation, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
15
+ export { deleteHomePageLayoutCardsIcon, useDeleteHomePageLayoutCardsIconMutation, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
13
16
  export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
14
17
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
15
18
  export { generateYamlDef, useGenerateYamlDefMutation } from './hooks/useGenerateYamlDefMutation';
@@ -1,5 +1,6 @@
1
1
  import type { UploadInfo } from '../schemas/UploadInfo';
2
2
  export interface BannerInfo {
3
+ banner_enabled: boolean;
3
4
  image?: UploadInfo;
4
5
  type?: string;
5
6
  video?: UploadInfo;
@@ -1,5 +1,6 @@
1
1
  export interface LinksInfo {
2
2
  icon: string;
3
+ identifier: string;
3
4
  title: string;
4
5
  url: string;
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.51.3",
3
+ "version": "0.51.4",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",