@harnessio/react-idp-service-client 0.49.9 → 0.50.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.
@@ -0,0 +1,15 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface DeleteLayoutMutationHeaderParams {
5
+ 'Harness-Account'?: string;
6
+ }
7
+ export type DeleteLayoutOkResponse = ResponseWithPagination<unknown>;
8
+ export type DeleteLayoutErrorResponse = unknown;
9
+ export interface DeleteLayoutProps extends Omit<FetcherOptions<unknown, unknown, DeleteLayoutMutationHeaderParams>, 'url'> {
10
+ }
11
+ export declare function deleteLayout(props: DeleteLayoutProps): Promise<DeleteLayoutOkResponse>;
12
+ /**
13
+ * Delete layout
14
+ */
15
+ export declare function useDeleteLayoutMutation(options?: Omit<UseMutationOptions<DeleteLayoutOkResponse, DeleteLayoutErrorResponse, DeleteLayoutProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteLayoutOkResponse, unknown, DeleteLayoutProps, 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 deleteLayout(props) {
7
+ return fetcher(Object.assign({ url: `/v1/layout`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete layout
11
+ */
12
+ export function useDeleteLayoutMutation(options) {
13
+ return useMutation((mutateProps) => deleteLayout(mutateProps), options);
14
+ }
@@ -19,6 +19,8 @@ export type { DeleteCheckErrorResponse, DeleteCheckMutationPathParams, DeleteChe
19
19
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
20
20
  export type { DeleteCustomPluginInfoErrorResponse, DeleteCustomPluginInfoMutationPathParams, DeleteCustomPluginInfoMutationQueryParams, DeleteCustomPluginInfoOkResponse, DeleteCustomPluginInfoProps, } from './hooks/useDeleteCustomPluginInfoMutation';
21
21
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
22
+ export type { DeleteLayoutErrorResponse, DeleteLayoutOkResponse, DeleteLayoutProps, } from './hooks/useDeleteLayoutMutation';
23
+ export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
22
24
  export type { DeleteScorecardErrorResponse, DeleteScorecardMutationPathParams, DeleteScorecardOkResponse, DeleteScorecardProps, } from './hooks/useDeleteScorecardMutation';
23
25
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
24
26
  export type { GenerateYamlDefErrorResponse, GenerateYamlDefOkResponse, GenerateYamlDefProps, GenerateYamlDefRequestBody, } from './hooks/useGenerateYamlDefMutation';
@@ -192,6 +194,7 @@ export type { BackstagePermissionsResponse } from './schemas/BackstagePermission
192
194
  export type { BaseIntegrationRequest } from './schemas/BaseIntegrationRequest';
193
195
  export type { BaseIntegrationResponse } from './schemas/BaseIntegrationResponse';
194
196
  export type { CatalogConnectorInfo } from './schemas/CatalogConnectorInfo';
197
+ export type { CdEntityAsIdpEntity } from './schemas/CdEntityAsIdpEntity';
195
198
  export type { Check } from './schemas/Check';
196
199
  export type { CheckDetails } from './schemas/CheckDetails';
197
200
  export type { CheckDetailsRequest } from './schemas/CheckDetailsRequest';
@@ -8,6 +8,7 @@ export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMu
8
8
  export { createScorecard, useCreateScorecardMutation } from './hooks/useCreateScorecardMutation';
9
9
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
10
10
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
11
+ export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
11
12
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
12
13
  export { generateYamlDef, useGenerateYamlDefMutation } from './hooks/useGenerateYamlDefMutation';
13
14
  export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
@@ -0,0 +1,9 @@
1
+ export interface CdEntityAsIdpEntity {
2
+ domain: string;
3
+ harness_absolute_identifier: string;
4
+ harness_type: string;
5
+ name: string;
6
+ owner: string;
7
+ system: string;
8
+ type: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,12 +1,6 @@
1
+ import type { CdEntityAsIdpEntity } from '../schemas/CdEntityAsIdpEntity';
1
2
  export interface OnboardingCdEntitiesFetchResponse {
2
- cd_entities_as_idp_entities: Array<{
3
- harness_absolute_identifier: string;
4
- harness_type: string;
5
- name: string;
6
- owner: string;
7
- system: string;
8
- type: string;
9
- }>;
3
+ entities: CdEntityAsIdpEntity[];
10
4
  organizations_count: number;
11
5
  projects_count: number;
12
6
  services_count: number;
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.49.9",
3
+ "version": "0.50.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",