@harnessio/react-ccm-service-client 0.4.3 → 0.4.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.
- 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/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 +60 -30
- package/dist/ccm-service/src/services/index.js +19 -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 -0
- 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 +1 -0
- package/dist/ccm-service/src/services/schemas/CcmServiceNowAttachDto.d.ts +6 -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/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/ResponseDtoManagedAccount.d.ts +9 -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/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/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/GovernanceAwsSettings.js +0 -4
- package/dist/ccm-service/src/services/schemas/GovernanceAzureSettings.d.ts +0 -3
- package/dist/ccm-service/src/services/schemas/GovernanceAzureSettings.js +0 -4
- 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 → LinkedBusinessMapping.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceSpanDto.js → LinkedPerspectives.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceFilter.js → ManagedAccount.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceFilterRequest.js → ManagedAccountStats.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceListResponse.js → ManagedAccountTimeSeriesData.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GovernanceCostSettings.js → MarginDetails.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceStringFilter.js → RecommendationApplyTimeStatsDto.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceSummaryDto.js → RecommendationGroupByEntityStats.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{ResponseDtoGenAiTraceListResponse.js → RecommendationGroupByStatsDto.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{ResponseDtoGovernanceCostSettings.js → ResponseDtoListManagedAccount.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{ResponseDtoListGenAiServiceDto.js → ResponseDtoListMarginDetails.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{ResponseDtoListGenAiTraceSpanDto.js → ResponseDtoManagedAccount.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
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoListManagedAccount } from '../schemas/ResponseDtoListManagedAccount';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface ListManagedAccountsQueryQueryParams {
|
|
8
|
+
accountIdentifier?: string;
|
|
9
|
+
}
|
|
10
|
+
export type ListManagedAccountsOkResponse = ResponseWithPagination<unknown>;
|
|
11
|
+
export type ListManagedAccountsErrorResponse = Failure | Error | ResponseDtoListManagedAccount;
|
|
12
|
+
export interface ListManagedAccountsProps extends Omit<FetcherOptions<ListManagedAccountsQueryQueryParams, unknown>, 'url'> {
|
|
13
|
+
queryParams: ListManagedAccountsQueryQueryParams;
|
|
14
|
+
}
|
|
15
|
+
export declare function listManagedAccounts(props: ListManagedAccountsProps): Promise<ListManagedAccountsOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* List managed accounts for given msp account
|
|
18
|
+
*/
|
|
19
|
+
export declare function useListManagedAccountsQuery(props: ListManagedAccountsProps, options?: Omit<UseQueryOptions<ListManagedAccountsOkResponse, ListManagedAccountsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListManagedAccountsOkResponse, ListManagedAccountsErrorResponse>;
|
|
@@ -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 listManagedAccounts(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/managed-account/list`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List managed accounts for given msp account
|
|
11
|
+
*/
|
|
12
|
+
export function useListManagedAccountsQuery(props, options) {
|
|
13
|
+
return useQuery(['listManagedAccounts', props.queryParams], ({ signal }) => listManagedAccounts(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoListMarginDetails } from '../schemas/ResponseDtoListMarginDetails';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface ListMarginDetailsQueryQueryParams {
|
|
8
|
+
accountIdentifier?: string;
|
|
9
|
+
}
|
|
10
|
+
export type ListMarginDetailsOkResponse = ResponseWithPagination<unknown>;
|
|
11
|
+
export type ListMarginDetailsErrorResponse = Failure | Error | ResponseDtoListMarginDetails;
|
|
12
|
+
export interface ListMarginDetailsProps extends Omit<FetcherOptions<ListMarginDetailsQueryQueryParams, unknown>, 'url'> {
|
|
13
|
+
queryParams: ListMarginDetailsQueryQueryParams;
|
|
14
|
+
}
|
|
15
|
+
export declare function listMarginDetails(props: ListMarginDetailsProps): Promise<ListMarginDetailsOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* List Margin details
|
|
18
|
+
*/
|
|
19
|
+
export declare function useListMarginDetailsQuery(props: ListMarginDetailsProps, options?: Omit<UseQueryOptions<ListMarginDetailsOkResponse, ListMarginDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListMarginDetailsOkResponse, ListMarginDetailsErrorResponse>;
|
|
@@ -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 listMarginDetails(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/margin-details/list`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List Margin details
|
|
11
|
+
*/
|
|
12
|
+
export function useListMarginDetailsQuery(props, options) {
|
|
13
|
+
return useQuery(['listMarginDetails', props.queryParams], ({ signal }) => listMarginDetails(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 { ResponseDtoRecommendationApplyTimeStatsDto } from '../schemas/ResponseDtoRecommendationApplyTimeStatsDto';
|
|
5
|
+
import type { CcmRecommendationFilterProperties } from '../schemas/CcmRecommendationFilterProperties';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface RecommendationApplyTimeStatsMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type RecommendationApplyTimeStatsRequestBody = CcmRecommendationFilterProperties;
|
|
12
|
+
export type RecommendationApplyTimeStatsOkResponse = ResponseWithPagination<unknown>;
|
|
13
|
+
export type RecommendationApplyTimeStatsErrorResponse = Failure | Error | ResponseDtoRecommendationApplyTimeStatsDto;
|
|
14
|
+
export interface RecommendationApplyTimeStatsProps extends Omit<FetcherOptions<RecommendationApplyTimeStatsMutationQueryParams, RecommendationApplyTimeStatsRequestBody>, 'url'> {
|
|
15
|
+
queryParams: RecommendationApplyTimeStatsMutationQueryParams;
|
|
16
|
+
body: RecommendationApplyTimeStatsRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function recommendationApplyTimeStats(props: RecommendationApplyTimeStatsProps): Promise<RecommendationApplyTimeStatsOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the average number of days between when a recommendation was generated and when it was applied, along with the count of applied recommendations, for the recommendations matching the specified filters.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useRecommendationApplyTimeStatsMutation(options?: Omit<UseMutationOptions<RecommendationApplyTimeStatsOkResponse, RecommendationApplyTimeStatsErrorResponse, RecommendationApplyTimeStatsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RecommendationApplyTimeStatsOkResponse, RecommendationApplyTimeStatsErrorResponse, RecommendationApplyTimeStatsProps, 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 recommendationApplyTimeStats(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/recommendations/v2/apply-time-stats`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the average number of days between when a recommendation was generated and when it was applied, along with the count of applied recommendations, for the recommendations matching the specified filters.
|
|
11
|
+
*/
|
|
12
|
+
export function useRecommendationApplyTimeStatsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => recommendationApplyTimeStats(mutateProps), options);
|
|
14
|
+
}
|