@harnessio/react-ng-manager-swagger-service-client 1.50.0 → 1.51.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,25 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseServiceDiscoveryEnableResponseDto } from '../schemas/ResponseServiceDiscoveryEnableResponseDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ServiceDiscoveryEnableRequestDto } from '../schemas/ServiceDiscoveryEnableRequestDto';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface EnableServiceDiscoveryMutationQueryParams {
9
+ accountIdentifier: string;
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ environmentIdentifier: string;
13
+ }
14
+ export type EnableServiceDiscoveryRequestBody = ServiceDiscoveryEnableRequestDto;
15
+ export type EnableServiceDiscoveryOkResponse = ResponseWithPagination<ResponseServiceDiscoveryEnableResponseDto>;
16
+ export type EnableServiceDiscoveryErrorResponse = Failure | Error;
17
+ export interface EnableServiceDiscoveryProps extends Omit<FetcherOptions<EnableServiceDiscoveryMutationQueryParams, EnableServiceDiscoveryRequestBody>, 'url'> {
18
+ queryParams: EnableServiceDiscoveryMutationQueryParams;
19
+ body: EnableServiceDiscoveryRequestBody;
20
+ }
21
+ export declare function enableServiceDiscovery(props: EnableServiceDiscoveryProps): Promise<EnableServiceDiscoveryOkResponse>;
22
+ /**
23
+ *
24
+ */
25
+ export declare function useEnableServiceDiscoveryMutation(options?: Omit<UseMutationOptions<EnableServiceDiscoveryOkResponse, EnableServiceDiscoveryErrorResponse, EnableServiceDiscoveryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<EnableServiceDiscoveryOkResponse, EnableServiceDiscoveryErrorResponse, EnableServiceDiscoveryProps, 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 enableServiceDiscovery(props) {
7
+ return fetcher(Object.assign({ url: `/infrastructures/service-discovery/enable`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useEnableServiceDiscoveryMutation(options) {
13
+ return useMutation((mutateProps) => enableServiceDiscovery(mutateProps), options);
14
+ }
@@ -63,6 +63,8 @@ export type { DisableTwoFactorAuthErrorResponse, DisableTwoFactorAuthMutationQue
63
63
  export { disableTwoFactorAuth, useDisableTwoFactorAuthMutation, } from './hooks/useDisableTwoFactorAuthMutation';
64
64
  export type { DiscoverAiAgentsErrorResponse, DiscoverAiAgentsMutationQueryParams, DiscoverAiAgentsOkResponse, DiscoverAiAgentsProps, DiscoverAiAgentsRequestBody, } from './hooks/useDiscoverAiAgentsMutation';
65
65
  export { discoverAiAgents, useDiscoverAiAgentsMutation } from './hooks/useDiscoverAiAgentsMutation';
66
+ export type { EnableServiceDiscoveryErrorResponse, EnableServiceDiscoveryMutationQueryParams, EnableServiceDiscoveryOkResponse, EnableServiceDiscoveryProps, EnableServiceDiscoveryRequestBody, } from './hooks/useEnableServiceDiscoveryMutation';
67
+ export { enableServiceDiscovery, useEnableServiceDiscoveryMutation, } from './hooks/useEnableServiceDiscoveryMutation';
66
68
  export type { EnableTwoFactorAuthErrorResponse, EnableTwoFactorAuthMutationQueryParams, EnableTwoFactorAuthOkResponse, EnableTwoFactorAuthProps, EnableTwoFactorAuthRequestBody, } from './hooks/useEnableTwoFactorAuthMutation';
67
69
  export { enableTwoFactorAuth, useEnableTwoFactorAuthMutation, } from './hooks/useEnableTwoFactorAuthMutation';
68
70
  export type { ExecuteOnboardingErrorResponse, ExecuteOnboardingMutationQueryParams, ExecuteOnboardingOkResponse, ExecuteOnboardingProps, ExecuteOnboardingRequestBody, } from './hooks/useExecuteOnboardingMutation';
@@ -627,6 +629,7 @@ export type { InfrastructureYamlMetadata } from './schemas/InfrastructureYamlMet
627
629
  export type { InfrastructureYamlMetadataApiInputV2 } from './schemas/InfrastructureYamlMetadataApiInputV2';
628
630
  export type { InfrastructureYamlMetadataDto } from './schemas/InfrastructureYamlMetadataDto';
629
631
  export type { InputsMetadata } from './schemas/InputsMetadata';
632
+ export type { ItemResult } from './schemas/ItemResult';
630
633
  export type { JenkinsJobDetailsDto } from './schemas/JenkinsJobDetailsDto';
631
634
  export type { JiraAddCommentBody } from './schemas/JiraAddCommentBody';
632
635
  export type { JiraCreateIssueBody } from './schemas/JiraCreateIssueBody';
@@ -834,6 +837,7 @@ export type { ResponsePageVariableResponseDto } from './schemas/ResponsePageVari
834
837
  export type { ResponsePasswordChangeResponse } from './schemas/ResponsePasswordChangeResponse';
835
838
  export type { ResponseProjectResponse } from './schemas/ResponseProjectResponse';
836
839
  export type { ResponseSecretResponseWrapper } from './schemas/ResponseSecretResponseWrapper';
840
+ export type { ResponseServiceDiscoveryEnableResponseDto } from './schemas/ResponseServiceDiscoveryEnableResponseDto';
837
841
  export type { ResponseServiceOverridesResponseDtov2 } from './schemas/ResponseServiceOverridesResponseDtov2';
838
842
  export type { ResponseServiceResponse } from './schemas/ResponseServiceResponse';
839
843
  export type { ResponseServicesV2YamlMetadataDto } from './schemas/ResponseServicesV2YamlMetadataDto';
@@ -878,6 +882,8 @@ export type { ServiceAccountAggregateDto } from './schemas/ServiceAccountAggrega
878
882
  export type { ServiceAccountDto } from './schemas/ServiceAccountDto';
879
883
  export type { ServiceCloneRequestDto } from './schemas/ServiceCloneRequestDto';
880
884
  export type { ServiceDashboardResponseDto } from './schemas/ServiceDashboardResponseDto';
885
+ export type { ServiceDiscoveryEnableRequestDto } from './schemas/ServiceDiscoveryEnableRequestDto';
886
+ export type { ServiceDiscoveryEnableResponseDto } from './schemas/ServiceDiscoveryEnableResponseDto';
881
887
  export type { ServiceNowFieldAllowedValueNg } from './schemas/ServiceNowFieldAllowedValueNg';
882
888
  export type { ServiceNowFieldNg } from './schemas/ServiceNowFieldNg';
883
889
  export type { ServiceNowFieldSchemaNg } from './schemas/ServiceNowFieldSchemaNg';
@@ -902,6 +908,7 @@ export type { SsoSettingsDto } from './schemas/SsoSettingsDto';
902
908
  export type { StackTraceElement } from './schemas/StackTraceElement';
903
909
  export type { StoreConfig } from './schemas/StoreConfig';
904
910
  export type { StoreConfigWrapper } from './schemas/StoreConfigWrapper';
911
+ export type { Summary } from './schemas/Summary';
905
912
  export type { TaskSelectorYaml } from './schemas/TaskSelectorYaml';
906
913
  export type { Throwable } from './schemas/Throwable';
907
914
  export type { TokenAggregateDto } from './schemas/TokenAggregateDto';
@@ -30,6 +30,7 @@ export { deleteUserSourceCodeManager, useDeleteUserSourceCodeManagerMutation, }
30
30
  export { deleteVariable, useDeleteVariableMutation } from './hooks/useDeleteVariableMutation';
31
31
  export { disableTwoFactorAuth, useDisableTwoFactorAuthMutation, } from './hooks/useDisableTwoFactorAuthMutation';
32
32
  export { discoverAiAgents, useDiscoverAiAgentsMutation } from './hooks/useDiscoverAiAgentsMutation';
33
+ export { enableServiceDiscovery, useEnableServiceDiscoveryMutation, } from './hooks/useEnableServiceDiscoveryMutation';
33
34
  export { enableTwoFactorAuth, useEnableTwoFactorAuthMutation, } from './hooks/useEnableTwoFactorAuthMutation';
34
35
  export { executeOnboarding, useExecuteOnboardingMutation, } from './hooks/useExecuteOnboardingMutation';
35
36
  export { forceImportOverride, useForceImportOverrideMutation, } from './hooks/useForceImportOverrideMutation';
@@ -0,0 +1,8 @@
1
+ import type { DiscoveryStatusDto } from '../schemas/DiscoveryStatusDto';
2
+ export interface ItemResult {
3
+ agent?: DiscoveryStatusDto;
4
+ clusterKey?: string;
5
+ error?: string;
6
+ infraIdentifier?: string;
7
+ status?: string;
8
+ }
@@ -0,0 +1,9 @@
1
+ import type { ServiceDiscoveryEnableResponseDto } from '../schemas/ServiceDiscoveryEnableResponseDto';
2
+ export interface ResponseServiceDiscoveryEnableResponseDto {
3
+ correlationId?: string;
4
+ data?: ServiceDiscoveryEnableResponseDto;
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,4 @@
1
+ export interface ServiceDiscoveryEnableRequestDto {
2
+ clusterKeys?: string[];
3
+ infraIdentifiers?: string[];
4
+ }
@@ -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 {};
@@ -0,0 +1,6 @@
1
+ import type { ItemResult } from '../schemas/ItemResult';
2
+ import type { Summary } from '../schemas/Summary';
3
+ export interface ServiceDiscoveryEnableResponseDto {
4
+ results?: ItemResult[];
5
+ summary?: Summary;
6
+ }
@@ -0,0 +1,14 @@
1
+ export interface Summary {
2
+ /**
3
+ * @format int32
4
+ */
5
+ failed?: number;
6
+ /**
7
+ * @format int32
8
+ */
9
+ requested?: number;
10
+ /**
11
+ * @format int32
12
+ */
13
+ succeeded?: number;
14
+ }
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ng-manager-swagger-service-client",
3
- "version": "1.50.0",
3
+ "version": "1.51.0",
4
4
  "description": "Harness React NG Manager Swagger service client - NG Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",