@harnessio/react-ccm-service-client 0.4.3 → 0.4.5
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/ccm-service/src/services/hooks/useAttachRecommendationServicenowTicketMutation.d.ts +22 -0
- package/dist/ccm-service/src/services/hooks/useAttachRecommendationServicenowTicketMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useClonePerspectiveMutation.d.ts +24 -0
- package/dist/ccm-service/src/services/hooks/useClonePerspectiveMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useCreateManagedAccountMutation.d.ts +20 -0
- package/dist/ccm-service/src/services/hooks/useCreateManagedAccountMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useCreateMarginDetailsMutation.d.ts +22 -0
- package/dist/ccm-service/src/services/hooks/useCreateMarginDetailsMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useDeleteManagedAccountMutation.d.ts +20 -0
- package/dist/ccm-service/src/services/hooks/useDeleteManagedAccountMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useDetachRecommendationServicenowTicketMutation.d.ts +22 -0
- package/dist/ccm-service/src/services/hooks/useDetachRecommendationServicenowTicketMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useGetBusinessMappingQuery.d.ts +1 -1
- package/dist/ccm-service/src/services/hooks/useGetBusinessMappingQuery.js +1 -1
- package/dist/ccm-service/src/services/hooks/useGetEc2RecommendationPreferenceQuery.d.ts +21 -0
- package/dist/ccm-service/src/services/hooks/useGetEc2RecommendationPreferenceQuery.js +14 -0
- package/dist/ccm-service/src/services/hooks/useGetEntityListQuery.d.ts +33 -0
- package/dist/ccm-service/src/services/hooks/useGetEntityListQuery.js +14 -0
- package/dist/ccm-service/src/services/hooks/useGetLinkedBusinessMappingMutation.d.ts +22 -0
- package/dist/ccm-service/src/services/hooks/useGetLinkedBusinessMappingMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useGetManagedAccountQuery.d.ts +20 -0
- package/dist/ccm-service/src/services/hooks/useGetManagedAccountQuery.js +14 -0
- package/dist/ccm-service/src/services/hooks/useGetManagedAccountTimeSeriesDataQuery.d.ts +28 -0
- package/dist/ccm-service/src/services/hooks/useGetManagedAccountTimeSeriesDataQuery.js +14 -0
- package/dist/ccm-service/src/services/hooks/useGetMarginDetailsQuery.d.ts +20 -0
- package/dist/ccm-service/src/services/hooks/useGetMarginDetailsQuery.js +14 -0
- package/dist/ccm-service/src/services/hooks/useGetPerspectivesGivenBusinessMappingIdsMutation.d.ts +21 -0
- package/dist/ccm-service/src/services/hooks/useGetPerspectivesGivenBusinessMappingIdsMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useGetTotalMarkupAndSpendQuery.d.ts +28 -0
- package/dist/ccm-service/src/services/hooks/useGetTotalMarkupAndSpendQuery.js +14 -0
- package/dist/ccm-service/src/services/hooks/useListCloudAccountsQuery.d.ts +1 -1
- package/dist/ccm-service/src/services/hooks/useListManagedAccountsQuery.d.ts +19 -0
- package/dist/ccm-service/src/services/hooks/useListManagedAccountsQuery.js +14 -0
- package/dist/ccm-service/src/services/hooks/useListMarginDetailsQuery.d.ts +19 -0
- package/dist/ccm-service/src/services/hooks/useListMarginDetailsQuery.js +14 -0
- package/dist/ccm-service/src/services/hooks/useRecommendationApplyTimeStatsMutation.d.ts +22 -0
- package/dist/ccm-service/src/services/hooks/useRecommendationApplyTimeStatsMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useRecommendationGroupByStatsMutation.d.ts +28 -0
- package/dist/ccm-service/src/services/hooks/useRecommendationGroupByStatsMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useUnsetMarginDetailsMutation.d.ts +20 -0
- package/dist/ccm-service/src/services/hooks/useUnsetMarginDetailsMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useUpdateManagedAccountMutation.d.ts +22 -0
- package/dist/ccm-service/src/services/hooks/useUpdateManagedAccountMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useUpdateMarginDetailsMutation.d.ts +22 -0
- package/dist/ccm-service/src/services/hooks/useUpdateMarginDetailsMutation.js +14 -0
- package/dist/ccm-service/src/services/index.d.ts +69 -30
- package/dist/ccm-service/src/services/index.js +21 -6
- package/dist/ccm-service/src/services/schemas/AmountDetails.d.ts +18 -0
- package/dist/ccm-service/src/services/schemas/AmountTrendStats.d.ts +14 -0
- package/dist/ccm-service/src/services/schemas/AzureNodepoolPreferences.d.ts +1 -0
- package/dist/ccm-service/src/services/schemas/AzurePreferences.d.ts +1 -1
- package/dist/ccm-service/src/services/schemas/BaseRecommendationFilterProperties.d.ts +1 -1
- package/dist/ccm-service/src/services/schemas/BudgetCostData.d.ts +4 -0
- package/dist/ccm-service/src/services/schemas/BusinessMapping.d.ts +4 -0
- package/dist/ccm-service/src/services/schemas/CcmJiraAttachDto.d.ts +0 -1
- package/dist/ccm-service/src/services/schemas/CcmJiraCreateDto.d.ts +3 -4
- package/dist/ccm-service/src/services/schemas/CcmServiceNowAttachDto.d.ts +5 -0
- package/dist/ccm-service/src/services/schemas/CcmServiceNowCreateDto.d.ts +3 -4
- package/dist/ccm-service/src/services/schemas/CcmServiceNowDetachDto.d.ts +6 -0
- package/dist/ccm-service/src/services/schemas/CeView.d.ts +4 -0
- package/dist/ccm-service/src/services/schemas/CostBucketOverlapStatDto.d.ts +17 -0
- package/dist/ccm-service/src/services/schemas/CostBucketRef.d.ts +5 -0
- package/dist/ccm-service/src/services/schemas/CreateRuleExecutionFilterDto.d.ts +1 -1
- package/dist/ccm-service/src/services/schemas/CreateRuleSetDto.d.ts +1 -1
- package/dist/ccm-service/src/services/schemas/DataPoint.d.ts +1 -0
- package/dist/ccm-service/src/services/schemas/Ec2RecommendationV2Preset.d.ts +5 -0
- package/dist/ccm-service/src/services/schemas/EnforcementCountDto.d.ts +1 -1
- package/dist/ccm-service/src/services/schemas/GovernanceJobEnqueueDto.d.ts +1 -0
- package/dist/ccm-service/src/services/schemas/K8sRecommendationFilterProperties.d.ts +1 -1
- package/dist/ccm-service/src/services/schemas/LinkedBusinessMapping.d.ts +6 -0
- package/dist/ccm-service/src/services/schemas/LinkedPerspectives.d.ts +6 -0
- package/dist/ccm-service/src/services/schemas/ManagedAccount.d.ts +17 -0
- package/dist/ccm-service/src/services/schemas/ManagedAccountStats.d.ts +5 -0
- package/dist/ccm-service/src/services/schemas/ManagedAccountTimeSeriesData.d.ts +5 -0
- package/dist/ccm-service/src/services/schemas/MarginDetails.d.ts +22 -0
- package/dist/ccm-service/src/services/schemas/NodepoolPreferences.d.ts +1 -0
- package/dist/ccm-service/src/services/schemas/QlceViewEntityStatsDataPoint.d.ts +10 -0
- package/dist/ccm-service/src/services/schemas/RecommendationApplyTimeStatsDto.d.ts +10 -0
- package/dist/ccm-service/src/services/schemas/RecommendationCostSettings.d.ts +0 -2
- package/dist/ccm-service/src/services/schemas/RecommendationGroupByEntityStats.d.ts +11 -0
- package/dist/ccm-service/src/services/schemas/RecommendationGroupByStatsDto.d.ts +5 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoListManagedAccount.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoListMarginDetails.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoListMarginDetails.js +1 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoManagedAccount.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoManagedAccount.js +1 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoManagedAccountStats.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoManagedAccountStats.js +1 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoManagedAccountTimeSeriesData.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoManagedAccountTimeSeriesData.js +1 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoMarginDetails.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoMarginDetails.js +1 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoRecommendationApplyTimeStatsDto.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoRecommendationApplyTimeStatsDto.js +1 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoRecommendationGroupByStatsDto.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoRecommendationGroupByStatsDto.js +1 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoec2RecommendationV2Preset.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoec2RecommendationV2Preset.js +1 -0
- package/dist/ccm-service/src/services/schemas/RestResponseLinkedBusinessMapping.d.ts +11 -0
- package/dist/ccm-service/src/services/schemas/RestResponseLinkedBusinessMapping.js +1 -0
- package/dist/ccm-service/src/services/schemas/RestResponseListLinkedPerspectives.d.ts +11 -0
- package/dist/ccm-service/src/services/schemas/RestResponseListLinkedPerspectives.js +1 -0
- package/dist/ccm-service/src/services/schemas/TotalResourceUsage.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ccm-service/src/services/hooks/useDeleteJiraFromRecommendationsMutation.d.ts +0 -21
- package/dist/ccm-service/src/services/hooks/useDeleteJiraFromRecommendationsMutation.js +0 -14
- package/dist/ccm-service/src/services/hooks/useGetGenAiTraceSpansQuery.d.ts +0 -30
- package/dist/ccm-service/src/services/hooks/useGetGenAiTraceSpansQuery.js +0 -14
- package/dist/ccm-service/src/services/hooks/useGetGovernanceCostSettingsQuery.d.ts +0 -19
- package/dist/ccm-service/src/services/hooks/useGetGovernanceCostSettingsQuery.js +0 -14
- package/dist/ccm-service/src/services/hooks/useListGenAiTraceServicesQuery.d.ts +0 -19
- package/dist/ccm-service/src/services/hooks/useListGenAiTraceServicesQuery.js +0 -14
- package/dist/ccm-service/src/services/hooks/useListGenAiTraceSummariesMutation.d.ts +0 -30
- package/dist/ccm-service/src/services/hooks/useListGenAiTraceSummariesMutation.js +0 -14
- package/dist/ccm-service/src/services/hooks/useUpdateGovernanceCostSettingsMutation.d.ts +0 -22
- package/dist/ccm-service/src/services/hooks/useUpdateGovernanceCostSettingsMutation.js +0 -14
- package/dist/ccm-service/src/services/schemas/EcsPreferences.d.ts +0 -3
- package/dist/ccm-service/src/services/schemas/GenAiServiceDto.d.ts +0 -8
- package/dist/ccm-service/src/services/schemas/GenAiTraceFilter.d.ts +0 -8
- package/dist/ccm-service/src/services/schemas/GenAiTraceFilterRequest.d.ts +0 -8
- package/dist/ccm-service/src/services/schemas/GenAiTraceListResponse.d.ts +0 -8
- package/dist/ccm-service/src/services/schemas/GenAiTraceNumberFilter.d.ts +0 -8
- package/dist/ccm-service/src/services/schemas/GenAiTraceSort.d.ts +0 -4
- package/dist/ccm-service/src/services/schemas/GenAiTraceSpanDto.d.ts +0 -48
- package/dist/ccm-service/src/services/schemas/GenAiTraceStringFilter.d.ts +0 -8
- package/dist/ccm-service/src/services/schemas/GenAiTraceSummaryDto.d.ts +0 -42
- package/dist/ccm-service/src/services/schemas/GovernanceAwsSettings.d.ts +0 -3
- package/dist/ccm-service/src/services/schemas/GovernanceAzureSettings.d.ts +0 -3
- package/dist/ccm-service/src/services/schemas/GovernanceCostSettings.d.ts +0 -18
- package/dist/ccm-service/src/services/schemas/GovernanceGcpSettings.d.ts +0 -12
- package/dist/ccm-service/src/services/schemas/GovernanceGcpSettings.js +0 -4
- package/dist/ccm-service/src/services/schemas/ResponseDtoGenAiTraceListResponse.d.ts +0 -9
- package/dist/ccm-service/src/services/schemas/ResponseDtoGovernanceCostSettings.d.ts +0 -9
- package/dist/ccm-service/src/services/schemas/ResponseDtoListGenAiServiceDto.d.ts +0 -9
- package/dist/ccm-service/src/services/schemas/ResponseDtoListGenAiTraceSpanDto.d.ts +0 -9
- /package/dist/ccm-service/src/services/schemas/{EcsPreferences.js → AmountDetails.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiServiceDto.js → AmountTrendStats.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceNumberFilter.js → CcmServiceNowAttachDto.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceSort.js → CcmServiceNowDetachDto.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceFilter.js → CostBucketOverlapStatDto.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceSpanDto.js → CostBucketRef.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceFilterRequest.js → Ec2RecommendationV2Preset.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceStringFilter.js → LinkedBusinessMapping.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceSummaryDto.js → LinkedPerspectives.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceListResponse.js → ManagedAccount.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GovernanceCostSettings.js → ManagedAccountStats.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{ResponseDtoGenAiTraceListResponse.js → ManagedAccountTimeSeriesData.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{ResponseDtoGovernanceCostSettings.js → MarginDetails.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GovernanceAwsSettings.js → RecommendationApplyTimeStatsDto.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GovernanceAzureSettings.js → RecommendationGroupByEntityStats.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{ResponseDtoListGenAiServiceDto.js → RecommendationGroupByStatsDto.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{ResponseDtoListGenAiTraceSpanDto.js → ResponseDtoListManagedAccount.js} +0 -0
package/dist/ccm-service/src/services/hooks/useAttachRecommendationServicenowTicketMutation.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoccmServiceNowDetails } from '../schemas/ResponseDtoccmServiceNowDetails';
|
|
5
|
+
import type { CcmServiceNowAttachDto } from '../schemas/CcmServiceNowAttachDto';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface AttachRecommendationServicenowTicketMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type AttachRecommendationServicenowTicketRequestBody = CcmServiceNowAttachDto;
|
|
12
|
+
export type AttachRecommendationServicenowTicketOkResponse = ResponseWithPagination<unknown>;
|
|
13
|
+
export type AttachRecommendationServicenowTicketErrorResponse = Failure | Error | ResponseDtoccmServiceNowDetails;
|
|
14
|
+
export interface AttachRecommendationServicenowTicketProps extends Omit<FetcherOptions<AttachRecommendationServicenowTicketMutationQueryParams, AttachRecommendationServicenowTicketRequestBody>, 'url'> {
|
|
15
|
+
queryParams: AttachRecommendationServicenowTicketMutationQueryParams;
|
|
16
|
+
body: AttachRecommendationServicenowTicketRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function attachRecommendationServicenowTicket(props: AttachRecommendationServicenowTicketProps): Promise<AttachRecommendationServicenowTicketOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Attach an existing ServiceNow ticket to a recommendation
|
|
21
|
+
*/
|
|
22
|
+
export declare function useAttachRecommendationServicenowTicketMutation(options?: Omit<UseMutationOptions<AttachRecommendationServicenowTicketOkResponse, AttachRecommendationServicenowTicketErrorResponse, AttachRecommendationServicenowTicketProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AttachRecommendationServicenowTicketOkResponse, AttachRecommendationServicenowTicketErrorResponse, AttachRecommendationServicenowTicketProps, unknown>;
|
package/dist/ccm-service/src/services/hooks/useAttachRecommendationServicenowTicketMutation.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 attachRecommendationServicenowTicket(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/recommendation/servicenow/attach`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Attach an existing ServiceNow ticket to a recommendation
|
|
11
|
+
*/
|
|
12
|
+
export function useAttachRecommendationServicenowTicketMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => attachRecommendationServicenowTicket(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoceView } from '../schemas/ResponseDtoceView';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface ClonePerspectiveMutationPathParams {
|
|
8
|
+
perspectiveId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ClonePerspectiveMutationQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
cloneName: string;
|
|
13
|
+
destinationFolderId?: string;
|
|
14
|
+
}
|
|
15
|
+
export type ClonePerspectiveOkResponse = ResponseWithPagination<unknown>;
|
|
16
|
+
export type ClonePerspectiveErrorResponse = Failure | Error | ResponseDtoceView;
|
|
17
|
+
export interface ClonePerspectiveProps extends ClonePerspectiveMutationPathParams, Omit<FetcherOptions<ClonePerspectiveMutationQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: ClonePerspectiveMutationQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export declare function clonePerspective(props: ClonePerspectiveProps): Promise<ClonePerspectiveOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Clone the Perspective corresponding to the identifier.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useClonePerspectiveMutation(options?: Omit<UseMutationOptions<ClonePerspectiveOkResponse, ClonePerspectiveErrorResponse, ClonePerspectiveProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ClonePerspectiveOkResponse, ClonePerspectiveErrorResponse, ClonePerspectiveProps, 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 clonePerspective(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/perspective/clone/${props.perspectiveId}`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Clone the Perspective corresponding to the identifier.
|
|
11
|
+
*/
|
|
12
|
+
export function useClonePerspectiveMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => clonePerspective(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoString } from '../schemas/ResponseDtoString';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface CreateManagedAccountMutationQueryParams {
|
|
8
|
+
accountIdentifier?: string;
|
|
9
|
+
managedAccountId?: string;
|
|
10
|
+
}
|
|
11
|
+
export type CreateManagedAccountOkResponse = ResponseWithPagination<unknown>;
|
|
12
|
+
export type CreateManagedAccountErrorResponse = Failure | Error | ResponseDtoString;
|
|
13
|
+
export interface CreateManagedAccountProps extends Omit<FetcherOptions<CreateManagedAccountMutationQueryParams, unknown>, 'url'> {
|
|
14
|
+
queryParams: CreateManagedAccountMutationQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export declare function createManagedAccount(props: CreateManagedAccountProps): Promise<CreateManagedAccountOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Create managed account record
|
|
19
|
+
*/
|
|
20
|
+
export declare function useCreateManagedAccountMutation(options?: Omit<UseMutationOptions<CreateManagedAccountOkResponse, CreateManagedAccountErrorResponse, CreateManagedAccountProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateManagedAccountOkResponse, CreateManagedAccountErrorResponse, CreateManagedAccountProps, 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 createManagedAccount(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/managed-account`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create managed account record
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateManagedAccountMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createManagedAccount(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoString } from '../schemas/ResponseDtoString';
|
|
5
|
+
import type { MarginDetails } from '../schemas/MarginDetails';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface CreateMarginDetailsMutationQueryParams {
|
|
9
|
+
accountIdentifier?: string;
|
|
10
|
+
}
|
|
11
|
+
export type CreateMarginDetailsRequestBody = MarginDetails;
|
|
12
|
+
export type CreateMarginDetailsOkResponse = ResponseWithPagination<unknown>;
|
|
13
|
+
export type CreateMarginDetailsErrorResponse = Failure | Error | ResponseDtoString;
|
|
14
|
+
export interface CreateMarginDetailsProps extends Omit<FetcherOptions<CreateMarginDetailsMutationQueryParams, CreateMarginDetailsRequestBody>, 'url'> {
|
|
15
|
+
queryParams: CreateMarginDetailsMutationQueryParams;
|
|
16
|
+
body: CreateMarginDetailsRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function createMarginDetails(props: CreateMarginDetailsProps): Promise<CreateMarginDetailsOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Create Margin details
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateMarginDetailsMutation(options?: Omit<UseMutationOptions<CreateMarginDetailsOkResponse, CreateMarginDetailsErrorResponse, CreateMarginDetailsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateMarginDetailsOkResponse, CreateMarginDetailsErrorResponse, CreateMarginDetailsProps, 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 createMarginDetails(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/margin-details`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create Margin details
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateMarginDetailsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createMarginDetails(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoBoolean } from '../schemas/ResponseDtoBoolean';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface DeleteManagedAccountMutationQueryParams {
|
|
8
|
+
accountIdentifier?: string;
|
|
9
|
+
managedAccountId?: string;
|
|
10
|
+
}
|
|
11
|
+
export type DeleteManagedAccountOkResponse = ResponseWithPagination<unknown>;
|
|
12
|
+
export type DeleteManagedAccountErrorResponse = Failure | Error | ResponseDtoBoolean;
|
|
13
|
+
export interface DeleteManagedAccountProps extends Omit<FetcherOptions<DeleteManagedAccountMutationQueryParams, unknown>, 'url'> {
|
|
14
|
+
queryParams: DeleteManagedAccountMutationQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export declare function deleteManagedAccount(props: DeleteManagedAccountProps): Promise<DeleteManagedAccountOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Delete managed account record
|
|
19
|
+
*/
|
|
20
|
+
export declare function useDeleteManagedAccountMutation(options?: Omit<UseMutationOptions<DeleteManagedAccountOkResponse, DeleteManagedAccountErrorResponse, DeleteManagedAccountProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteManagedAccountOkResponse, DeleteManagedAccountErrorResponse, DeleteManagedAccountProps, 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 deleteManagedAccount(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/managed-account`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete managed account record
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteManagedAccountMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteManagedAccount(mutateProps), options);
|
|
14
|
+
}
|
package/dist/ccm-service/src/services/hooks/useDetachRecommendationServicenowTicketMutation.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoBoolean } from '../schemas/ResponseDtoBoolean';
|
|
5
|
+
import type { CcmServiceNowDetachDto } from '../schemas/CcmServiceNowDetachDto';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface DetachRecommendationServicenowTicketMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type DetachRecommendationServicenowTicketRequestBody = CcmServiceNowDetachDto;
|
|
12
|
+
export type DetachRecommendationServicenowTicketOkResponse = ResponseWithPagination<unknown>;
|
|
13
|
+
export type DetachRecommendationServicenowTicketErrorResponse = Failure | Error | ResponseDtoBoolean;
|
|
14
|
+
export interface DetachRecommendationServicenowTicketProps extends Omit<FetcherOptions<DetachRecommendationServicenowTicketMutationQueryParams, DetachRecommendationServicenowTicketRequestBody>, 'url'> {
|
|
15
|
+
queryParams: DetachRecommendationServicenowTicketMutationQueryParams;
|
|
16
|
+
body: DetachRecommendationServicenowTicketRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function detachRecommendationServicenowTicket(props: DetachRecommendationServicenowTicketProps): Promise<DetachRecommendationServicenowTicketOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Detach ServiceNow details from a recommendation, optionally updating ticket fields first
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDetachRecommendationServicenowTicketMutation(options?: Omit<UseMutationOptions<DetachRecommendationServicenowTicketOkResponse, DetachRecommendationServicenowTicketErrorResponse, DetachRecommendationServicenowTicketProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DetachRecommendationServicenowTicketOkResponse, DetachRecommendationServicenowTicketErrorResponse, DetachRecommendationServicenowTicketProps, unknown>;
|
package/dist/ccm-service/src/services/hooks/useDetachRecommendationServicenowTicketMutation.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 detachRecommendationServicenowTicket(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/recommendation/servicenow/detach`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Detach ServiceNow details from a recommendation, optionally updating ticket fields first
|
|
11
|
+
*/
|
|
12
|
+
export function useDetachRecommendationServicenowTicketMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => detachRecommendationServicenowTicket(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -17,6 +17,6 @@ export interface GetBusinessMappingProps extends GetBusinessMappingQueryPathPara
|
|
|
17
17
|
}
|
|
18
18
|
export declare function getBusinessMapping(props: GetBusinessMappingProps): Promise<GetBusinessMappingOkResponse>;
|
|
19
19
|
/**
|
|
20
|
-
* Retrieve a specific Cost Category by its unique identifier. Returns the complete Cost Category configuration including all cost buckets, shared costs, and rule definitions.
|
|
20
|
+
* Retrieve a specific Cost Category by its unique identifier. Returns the complete Cost Category configuration including all cost buckets, shared costs, and rule definitions. When overlap validation is COMPLETE, costBucketOverlapStats lists per-bucket cost, row count, overlap cost, and overlapping buckets. Those stats are not embedded on the cost buckets.
|
|
21
21
|
*/
|
|
22
22
|
export declare function useGetBusinessMappingQuery(props: GetBusinessMappingProps, options?: Omit<UseQueryOptions<GetBusinessMappingOkResponse, GetBusinessMappingErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetBusinessMappingOkResponse, GetBusinessMappingErrorResponse>;
|
|
@@ -7,7 +7,7 @@ export function getBusinessMapping(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/business-mapping/${props.id}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Retrieve a specific Cost Category by its unique identifier. Returns the complete Cost Category configuration including all cost buckets, shared costs, and rule definitions.
|
|
10
|
+
* Retrieve a specific Cost Category by its unique identifier. Returns the complete Cost Category configuration including all cost buckets, shared costs, and rule definitions. When overlap validation is COMPLETE, costBucketOverlapStats lists per-bucket cost, row count, overlap cost, and overlapping buckets. Those stats are not embedded on the cost buckets.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetBusinessMappingQuery(props, options) {
|
|
13
13
|
return useQuery(['getBusinessMapping', props.id, props.queryParams], ({ signal }) => getBusinessMapping(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoec2RecommendationV2Preset } from '../schemas/ResponseDtoec2RecommendationV2Preset';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetEc2RecommendationPreferenceQueryQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
resourceId: string;
|
|
10
|
+
awsAccountId: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetEc2RecommendationPreferenceOkResponse = ResponseWithPagination<unknown>;
|
|
13
|
+
export type GetEc2RecommendationPreferenceErrorResponse = Failure | Error | ResponseDtoec2RecommendationV2Preset;
|
|
14
|
+
export interface GetEc2RecommendationPreferenceProps extends Omit<FetcherOptions<GetEc2RecommendationPreferenceQueryQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: GetEc2RecommendationPreferenceQueryQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export declare function getEc2RecommendationPreference(props: GetEc2RecommendationPreferenceProps): Promise<GetEc2RecommendationPreferenceOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get EC2 recommendation preference for a specific instance. Checks AWS Compute Optimizer for resource-level preferences first, then falls back to Harness preset.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetEc2RecommendationPreferenceQuery(props: GetEc2RecommendationPreferenceProps, options?: Omit<UseQueryOptions<GetEc2RecommendationPreferenceOkResponse, GetEc2RecommendationPreferenceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEc2RecommendationPreferenceOkResponse, GetEc2RecommendationPreferenceErrorResponse>;
|
|
@@ -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 getEc2RecommendationPreference(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/recommendation/preference/ec2`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get EC2 recommendation preference for a specific instance. Checks AWS Compute Optimizer for resource-level preferences first, then falls back to Harness preset.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEc2RecommendationPreferenceQuery(props, options) {
|
|
13
|
+
return useQuery(['getEC2RecommendationPreference', props.queryParams], ({ signal }) => getEc2RecommendationPreference(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoListString } from '../schemas/ResponseDtoListString';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetEntityListQueryQueryParams {
|
|
8
|
+
accountIdentifier?: string;
|
|
9
|
+
managedAccountId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* List of all possible Fields
|
|
12
|
+
*/
|
|
13
|
+
entity?: 'ACTUAL_AMOUNT' | 'ACTUAL_COST' | 'ALL' | 'ANOMALOUS_SPEND' | 'ANOMALOUS_SPEND_PERCENTAGE' | 'ANOMALY_ID' | 'ANOMALY_STATUS' | 'ANOMALY_TIME' | 'ANTHROPIC_MODEL' | 'ANTHROPIC_PROJECT_ID' | 'ANTHROPIC_USAGE_TYPE' | 'AWS_ACCOUNT' | 'AWS_BILLING_ENTITY' | 'AWS_INSTANCE_TYPE' | 'AWS_LINE_ITEM_TYPE' | 'AWS_RESOURCE_ID' | 'AWS_SERVICE' | 'AWS_USAGE_TYPE' | 'AZURE_BENEFIT_NAME' | 'AZURE_CHARGE_TYPE' | 'AZURE_FREQUENCY' | 'AZURE_INSTANCE_ID' | 'AZURE_METER_CATEGORY' | 'AZURE_METER_NAME' | 'AZURE_METER_SUBCATEGORY' | 'AZURE_PRICING_MODEL' | 'AZURE_PUBLISHER_NAME' | 'AZURE_PUBLISHER_TYPE' | 'AZURE_RESERVATION_ID' | 'AZURE_RESERVATION_NAME' | 'AZURE_RESOURCE' | 'AZURE_RESOURCE_GROUP_NAME' | 'AZURE_RESOURCE_ID' | 'AZURE_RESOURCE_NAME' | 'AZURE_RESOURCE_TYPE' | 'AZURE_SERVICE_NAME' | 'AZURE_SERVICE_TIER' | 'AZURE_SUBSCRIPTION_GUID' | 'AZURE_SUBSCRIPTION_NAME' | 'CLOUD_PROVIDER' | 'CLUSTER_APPLICATION' | 'CLUSTER_CLOUD_PROVIDER' | 'CLUSTER_ECS_LAUNCH_TYPE' | 'CLUSTER_ECS_LAUNCH_TYPE_ID' | 'CLUSTER_ECS_SERVICE' | 'CLUSTER_ECS_SERVICE_ID' | 'CLUSTER_ECS_TASK' | 'CLUSTER_ECS_TASK_ID' | 'CLUSTER_ENVIRONMENT' | 'CLUSTER_ID' | 'CLUSTER_NAME' | 'CLUSTER_NAMESPACE' | 'CLUSTER_NAMESPACE_ID' | 'CLUSTER_NODE' | 'CLUSTER_PARENT_INSTANCE_ID' | 'CLUSTER_POD' | 'CLUSTER_SERVICE' | 'CLUSTER_STORAGE' | 'CLUSTER_WORKLOAD' | 'CLUSTER_WORKLOAD_ID' | 'COMMON_NONE' | 'COMMON_PRODUCT' | 'COMMON_REGION' | 'COST_BUCKET_NAME' | 'COST_CATEGORY_NAME' | 'COST_IMPACT' | 'CRITICALITY' | 'DURATION' | 'EXPECTED_COST' | 'GCP_PRODUCT' | 'GCP_PROJECT' | 'GCP_RESOURCE_GLOBAL_NAME' | 'GCP_SKU_DESCRIPTION' | 'GCP_SKU_ID' | 'IDLE_COST' | 'LAST_EVALUATED_AT' | 'NAMESPACE' | 'OPENAI_MODEL' | 'OPENAI_PROJECT_ID' | 'OPENAI_USAGE_TYPE' | 'PERSPECTIVE_ID' | 'POTENTIAL_SAVINGS' | 'RECOMMENDATIONS_COUNT' | 'REGION' | 'REPORTED_BY' | 'RULE_NAME' | 'RULE_SET_NAME' | 'SERVICE' | 'SERVICE_NAME' | 'STATUS' | 'TOTAL_COST' | 'UNALLOCATED_COST' | 'UNIT_METRIC_NAME' | 'UPDATED_AT' | 'UPDATED_AT_RELATIVE' | 'UPDATED_BY' | 'WORKLOAD' | 'WORKLOAD_TYPE';
|
|
14
|
+
searchParam?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @format int32
|
|
17
|
+
*/
|
|
18
|
+
limit?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @format int32
|
|
21
|
+
*/
|
|
22
|
+
offset?: number;
|
|
23
|
+
}
|
|
24
|
+
export type GetEntityListOkResponse = ResponseWithPagination<unknown>;
|
|
25
|
+
export type GetEntityListErrorResponse = Failure | Error | ResponseDtoListString;
|
|
26
|
+
export interface GetEntityListProps extends Omit<FetcherOptions<GetEntityListQueryQueryParams, unknown>, 'url'> {
|
|
27
|
+
queryParams: GetEntityListQueryQueryParams;
|
|
28
|
+
}
|
|
29
|
+
export declare function getEntityList(props: GetEntityListProps): Promise<GetEntityListOkResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Get Entity list
|
|
32
|
+
*/
|
|
33
|
+
export declare function useGetEntityListQuery(props: GetEntityListProps, options?: Omit<UseQueryOptions<GetEntityListOkResponse, GetEntityListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEntityListOkResponse, GetEntityListErrorResponse>;
|
|
@@ -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 getEntityList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/managed-account-data/entity-values`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Entity list
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEntityListQuery(props, options) {
|
|
13
|
+
return useQuery(['getEntityList', props.queryParams], ({ signal }) => getEntityList(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { RestResponseLinkedBusinessMapping } from '../schemas/RestResponseLinkedBusinessMapping';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetLinkedBusinessMappingMutationPathParams {
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetLinkedBusinessMappingMutationQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetLinkedBusinessMappingOkResponse = ResponseWithPagination<unknown>;
|
|
14
|
+
export type GetLinkedBusinessMappingErrorResponse = Failure | Error | RestResponseLinkedBusinessMapping;
|
|
15
|
+
export interface GetLinkedBusinessMappingProps extends GetLinkedBusinessMappingMutationPathParams, Omit<FetcherOptions<GetLinkedBusinessMappingMutationQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: GetLinkedBusinessMappingMutationQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export declare function getLinkedBusinessMapping(props: GetLinkedBusinessMappingProps): Promise<GetLinkedBusinessMappingOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Given a Cost Category Id, find all Cost Categories that reference it in their rules
|
|
21
|
+
*/
|
|
22
|
+
export declare function useGetLinkedBusinessMappingMutation(options?: Omit<UseMutationOptions<GetLinkedBusinessMappingOkResponse, GetLinkedBusinessMappingErrorResponse, GetLinkedBusinessMappingProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetLinkedBusinessMappingOkResponse, GetLinkedBusinessMappingErrorResponse, GetLinkedBusinessMappingProps, 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 getLinkedBusinessMapping(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/business-mapping/linkedBusinessMapping/${props.id}`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Given a Cost Category Id, find all Cost Categories that reference it in their rules
|
|
11
|
+
*/
|
|
12
|
+
export function useGetLinkedBusinessMappingMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => getLinkedBusinessMapping(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoManagedAccount } from '../schemas/ResponseDtoManagedAccount';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetManagedAccountQueryQueryParams {
|
|
8
|
+
accountIdentifier?: string;
|
|
9
|
+
managedAccountId?: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetManagedAccountOkResponse = ResponseWithPagination<unknown>;
|
|
12
|
+
export type GetManagedAccountErrorResponse = Failure | Error | ResponseDtoManagedAccount;
|
|
13
|
+
export interface GetManagedAccountProps extends Omit<FetcherOptions<GetManagedAccountQueryQueryParams, unknown>, 'url'> {
|
|
14
|
+
queryParams: GetManagedAccountQueryQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export declare function getManagedAccount(props: GetManagedAccountProps): Promise<GetManagedAccountOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get managed account details for given managed account id
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetManagedAccountQuery(props: GetManagedAccountProps, options?: Omit<UseQueryOptions<GetManagedAccountOkResponse, GetManagedAccountErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetManagedAccountOkResponse, GetManagedAccountErrorResponse>;
|
|
@@ -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 getManagedAccount(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/managed-account`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get managed account details for given managed account id
|
|
11
|
+
*/
|
|
12
|
+
export function useGetManagedAccountQuery(props, options) {
|
|
13
|
+
return useQuery(['getManagedAccount', props.queryParams], ({ signal }) => getManagedAccount(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoManagedAccountTimeSeriesData } from '../schemas/ResponseDtoManagedAccountTimeSeriesData';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetManagedAccountTimeSeriesDataQueryQueryParams {
|
|
8
|
+
accountIdentifier?: string;
|
|
9
|
+
managedAccountId: string;
|
|
10
|
+
/**
|
|
11
|
+
* @format int64
|
|
12
|
+
*/
|
|
13
|
+
startTime: number;
|
|
14
|
+
/**
|
|
15
|
+
* @format int64
|
|
16
|
+
*/
|
|
17
|
+
endTime: number;
|
|
18
|
+
}
|
|
19
|
+
export type GetManagedAccountTimeSeriesDataOkResponse = ResponseWithPagination<unknown>;
|
|
20
|
+
export type GetManagedAccountTimeSeriesDataErrorResponse = Failure | Error | ResponseDtoManagedAccountTimeSeriesData;
|
|
21
|
+
export interface GetManagedAccountTimeSeriesDataProps extends Omit<FetcherOptions<GetManagedAccountTimeSeriesDataQueryQueryParams, unknown>, 'url'> {
|
|
22
|
+
queryParams: GetManagedAccountTimeSeriesDataQueryQueryParams;
|
|
23
|
+
}
|
|
24
|
+
export declare function getManagedAccountTimeSeriesData(props: GetManagedAccountTimeSeriesDataProps): Promise<GetManagedAccountTimeSeriesDataOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Get timeseries data related to total spend and markup for managed account
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetManagedAccountTimeSeriesDataQuery(props: GetManagedAccountTimeSeriesDataProps, options?: Omit<UseQueryOptions<GetManagedAccountTimeSeriesDataOkResponse, GetManagedAccountTimeSeriesDataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetManagedAccountTimeSeriesDataOkResponse, GetManagedAccountTimeSeriesDataErrorResponse>;
|
|
@@ -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 getManagedAccountTimeSeriesData(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/managed-account-data/timeseries`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get timeseries data related to total spend and markup for managed account
|
|
11
|
+
*/
|
|
12
|
+
export function useGetManagedAccountTimeSeriesDataQuery(props, options) {
|
|
13
|
+
return useQuery(['getManagedAccountTimeSeriesData', props.queryParams], ({ signal }) => getManagedAccountTimeSeriesData(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoMarginDetails } from '../schemas/ResponseDtoMarginDetails';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetMarginDetailsQueryQueryParams {
|
|
8
|
+
accountIdentifier?: string;
|
|
9
|
+
managedAccountId?: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetMarginDetailsOkResponse = ResponseWithPagination<unknown>;
|
|
12
|
+
export type GetMarginDetailsErrorResponse = Failure | Error | ResponseDtoMarginDetails;
|
|
13
|
+
export interface GetMarginDetailsProps extends Omit<FetcherOptions<GetMarginDetailsQueryQueryParams, unknown>, 'url'> {
|
|
14
|
+
queryParams: GetMarginDetailsQueryQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export declare function getMarginDetails(props: GetMarginDetailsProps): Promise<GetMarginDetailsOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get Margin details
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetMarginDetailsQuery(props: GetMarginDetailsProps, options?: Omit<UseQueryOptions<GetMarginDetailsOkResponse, GetMarginDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMarginDetailsOkResponse, GetMarginDetailsErrorResponse>;
|
|
@@ -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 getMarginDetails(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/margin-details`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Margin details
|
|
11
|
+
*/
|
|
12
|
+
export function useGetMarginDetailsQuery(props, options) {
|
|
13
|
+
return useQuery(['getMarginDetails', props.queryParams], ({ signal }) => getMarginDetails(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/ccm-service/src/services/hooks/useGetPerspectivesGivenBusinessMappingIdsMutation.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { RestResponseListLinkedPerspectives } from '../schemas/RestResponseListLinkedPerspectives';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetPerspectivesGivenBusinessMappingIdsMutationQueryParams {
|
|
8
|
+
accountIdentifier?: string;
|
|
9
|
+
}
|
|
10
|
+
export type GetPerspectivesGivenBusinessMappingIdsRequestBody = string[];
|
|
11
|
+
export type GetPerspectivesGivenBusinessMappingIdsOkResponse = ResponseWithPagination<unknown>;
|
|
12
|
+
export type GetPerspectivesGivenBusinessMappingIdsErrorResponse = Failure | Error | RestResponseListLinkedPerspectives;
|
|
13
|
+
export interface GetPerspectivesGivenBusinessMappingIdsProps extends Omit<FetcherOptions<GetPerspectivesGivenBusinessMappingIdsMutationQueryParams, GetPerspectivesGivenBusinessMappingIdsRequestBody>, 'url'> {
|
|
14
|
+
queryParams: GetPerspectivesGivenBusinessMappingIdsMutationQueryParams;
|
|
15
|
+
body: GetPerspectivesGivenBusinessMappingIdsRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export declare function getPerspectivesGivenBusinessMappingIds(props: GetPerspectivesGivenBusinessMappingIdsProps): Promise<GetPerspectivesGivenBusinessMappingIdsOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Given Cost Category Id, find out Perspectives where Cost Category is present in Rules or Group By
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetPerspectivesGivenBusinessMappingIdsMutation(options?: Omit<UseMutationOptions<GetPerspectivesGivenBusinessMappingIdsOkResponse, GetPerspectivesGivenBusinessMappingIdsErrorResponse, GetPerspectivesGivenBusinessMappingIdsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetPerspectivesGivenBusinessMappingIdsOkResponse, GetPerspectivesGivenBusinessMappingIdsErrorResponse, GetPerspectivesGivenBusinessMappingIdsProps, unknown>;
|
package/dist/ccm-service/src/services/hooks/useGetPerspectivesGivenBusinessMappingIdsMutation.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 getPerspectivesGivenBusinessMappingIds(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/business-mapping/linkedPerspectives`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Given Cost Category Id, find out Perspectives where Cost Category is present in Rules or Group By
|
|
11
|
+
*/
|
|
12
|
+
export function useGetPerspectivesGivenBusinessMappingIdsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => getPerspectivesGivenBusinessMappingIds(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoManagedAccountStats } from '../schemas/ResponseDtoManagedAccountStats';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetTotalMarkupAndSpendQueryQueryParams {
|
|
8
|
+
accountIdentifier?: string;
|
|
9
|
+
managedAccountId: string;
|
|
10
|
+
/**
|
|
11
|
+
* @format int64
|
|
12
|
+
*/
|
|
13
|
+
startTime: number;
|
|
14
|
+
/**
|
|
15
|
+
* @format int64
|
|
16
|
+
*/
|
|
17
|
+
endTime: number;
|
|
18
|
+
}
|
|
19
|
+
export type GetTotalMarkupAndSpendOkResponse = ResponseWithPagination<unknown>;
|
|
20
|
+
export type GetTotalMarkupAndSpendErrorResponse = Failure | Error | ResponseDtoManagedAccountStats;
|
|
21
|
+
export interface GetTotalMarkupAndSpendProps extends Omit<FetcherOptions<GetTotalMarkupAndSpendQueryQueryParams, unknown>, 'url'> {
|
|
22
|
+
queryParams: GetTotalMarkupAndSpendQueryQueryParams;
|
|
23
|
+
}
|
|
24
|
+
export declare function getTotalMarkupAndSpend(props: GetTotalMarkupAndSpendProps): Promise<GetTotalMarkupAndSpendOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Get total markup and spend for MSP managed accounts
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetTotalMarkupAndSpendQuery(props: GetTotalMarkupAndSpendProps, options?: Omit<UseQueryOptions<GetTotalMarkupAndSpendOkResponse, GetTotalMarkupAndSpendErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTotalMarkupAndSpendOkResponse, GetTotalMarkupAndSpendErrorResponse>;
|
|
@@ -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 getTotalMarkupAndSpend(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/managed-account-data/stats`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get total markup and spend for MSP managed accounts
|
|
11
|
+
*/
|
|
12
|
+
export function useGetTotalMarkupAndSpendQuery(props, options) {
|
|
13
|
+
return useQuery(['getTotalMarkupAndSpend', props.queryParams], ({ signal }) => getTotalMarkupAndSpend(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -6,7 +6,7 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
6
6
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
7
|
export interface ListCloudAccountsQueryQueryParams {
|
|
8
8
|
accountIdentifier: string;
|
|
9
|
-
cloudProvider: 'ANTHROPIC' | 'AWS' | 'AZURE' | 'CLUSTER' | 'EXTERNAL_DATA' | 'GCP' | 'IBM' | 'ON_PREM' | 'OPENAI' | 'UNKNOWN';
|
|
9
|
+
cloudProvider: 'ANTHROPIC' | 'AWS' | 'AZURE' | 'CLAUDE_ENTERPRISE' | 'CLUSTER' | 'CURSOR' | 'DEVIN' | 'EXTERNAL_DATA' | 'GCP' | 'GITHUB_COPILOT' | 'IBM' | 'ON_PREM' | 'OPENAI' | 'UNKNOWN';
|
|
10
10
|
}
|
|
11
11
|
export type ListCloudAccountsOkResponse = ResponseWithPagination<unknown>;
|
|
12
12
|
export type ListCloudAccountsErrorResponse = Failure | Error | ResponseDtoListCcmCloudAccount;
|