@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.
- package/dist/ng-manager-swagger-service/src/services/hooks/useEnableServiceDiscoveryMutation.d.ts +25 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useEnableServiceDiscoveryMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/index.d.ts +7 -0
- package/dist/ng-manager-swagger-service/src/services/index.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ItemResult.d.ts +8 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ItemResult.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseServiceDiscoveryEnableResponseDto.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseServiceDiscoveryEnableResponseDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ServiceDiscoveryEnableRequestDto.d.ts +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ServiceDiscoveryEnableRequestDto.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ServiceDiscoveryEnableResponseDto.d.ts +6 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ServiceDiscoveryEnableResponseDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/Summary.d.ts +14 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/Summary.js +4 -0
- package/package.json +1 -1
package/dist/ng-manager-swagger-service/src/services/hooks/useEnableServiceDiscoveryMutation.d.ts
ADDED
|
@@ -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>;
|
package/dist/ng-manager-swagger-service/src/services/hooks/useEnableServiceDiscoveryMutation.js
ADDED
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
package/dist/ng-manager-swagger-service/src/services/schemas/ServiceDiscoveryEnableResponseDto.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-ng-manager-swagger-service-client",
|
|
3
|
-
"version": "1.
|
|
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",
|