@harnessio/react-ccm-service-client 0.4.2 → 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/useAttachRecommendationJiraMutation.d.ts +22 -0
- package/dist/ccm-service/src/services/hooks/useAttachRecommendationJiraMutation.js +14 -0
- 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/useAwsaccountconnectiondetailQuery.d.ts +21 -0
- package/dist/ccm-service/src/services/hooks/useAwsaccountconnectiondetailQuery.js +14 -0
- package/dist/ccm-service/src/services/hooks/useAzureappclientidQuery.d.ts +15 -0
- package/dist/ccm-service/src/services/hooks/useAzureappclientidQuery.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/useDetachJiraFromRecommendationMutation.d.ts +22 -0
- package/dist/ccm-service/src/services/hooks/{useDeleteJiraFromRecommendationsMutation.js → useDetachJiraFromRecommendationMutation.js} +5 -5
- package/dist/ccm-service/src/services/hooks/useGcpserviceaccountQuery.d.ts +19 -0
- package/dist/ccm-service/src/services/hooks/useGcpserviceaccountQuery.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/useGetRecommendationJiraTransitionsQuery.d.ts +20 -0
- package/dist/ccm-service/src/services/hooks/useGetRecommendationJiraTransitionsQuery.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 +80 -30
- package/dist/ccm-service/src/services/index.js +25 -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/AwsAccountConnectionDetail.d.ts +6 -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/CcmJiraAttachDto.d.ts +5 -0
- package/dist/ccm-service/src/services/schemas/CcmJiraDetachDto.d.ts +4 -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/JiraIssueTransitionNg.d.ts +12 -0
- package/dist/ccm-service/src/services/schemas/JiraStatusCategoryNg.d.ts +8 -0
- package/dist/ccm-service/src/services/schemas/JiraStatusNg.d.ts +6 -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/RecommendationGroupByEntityStats.js +4 -0
- package/dist/ccm-service/src/services/schemas/RecommendationGroupByStatsDto.d.ts +5 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoAwsAccountConnectionDetail.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoListJiraIssueTransitionNg.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoListJiraIssueTransitionNg.js +1 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoListManagedAccount.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoListManagedAccount.js +1 -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/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/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/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 → AwsAccountConnectionDetail.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceSort.js → CcmJiraAttachDto.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceSpanDto.js → CcmJiraDetachDto.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceStringFilter.js → CcmServiceNowAttachDto.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceFilter.js → JiraIssueTransitionNg.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceSummaryDto.js → JiraStatusCategoryNg.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GenAiTraceFilterRequest.js → JiraStatusNg.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GovernanceAwsSettings.js → LinkedBusinessMapping.js} +0 -0
- /package/dist/ccm-service/src/services/schemas/{GovernanceAzureSettings.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/{GovernanceGcpSettings.js → RecommendationApplyTimeStatsDto.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 → ResponseDtoAwsAccountConnectionDetail.js} +0 -0
|
@@ -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 { ResponseDtoccmJiraDetails } from '../schemas/ResponseDtoccmJiraDetails';
|
|
5
|
+
import type { CcmJiraAttachDto } from '../schemas/CcmJiraAttachDto';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface AttachRecommendationJiraMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type AttachRecommendationJiraRequestBody = CcmJiraAttachDto;
|
|
12
|
+
export type AttachRecommendationJiraOkResponse = ResponseWithPagination<unknown>;
|
|
13
|
+
export type AttachRecommendationJiraErrorResponse = Failure | Error | ResponseDtoccmJiraDetails;
|
|
14
|
+
export interface AttachRecommendationJiraProps extends Omit<FetcherOptions<AttachRecommendationJiraMutationQueryParams, AttachRecommendationJiraRequestBody>, 'url'> {
|
|
15
|
+
queryParams: AttachRecommendationJiraMutationQueryParams;
|
|
16
|
+
body: AttachRecommendationJiraRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function attachRecommendationJira(props: AttachRecommendationJiraProps): Promise<AttachRecommendationJiraOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Attach an existing Jira ticket to a recommendation
|
|
21
|
+
*/
|
|
22
|
+
export declare function useAttachRecommendationJiraMutation(options?: Omit<UseMutationOptions<AttachRecommendationJiraOkResponse, AttachRecommendationJiraErrorResponse, AttachRecommendationJiraProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AttachRecommendationJiraOkResponse, AttachRecommendationJiraErrorResponse, AttachRecommendationJiraProps, 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 attachRecommendationJira(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/recommendation/jira/attach`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Attach an existing Jira ticket to a recommendation
|
|
11
|
+
*/
|
|
12
|
+
export function useAttachRecommendationJiraMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => attachRecommendationJira(mutateProps), options);
|
|
14
|
+
}
|
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,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 { ResponseDtoAwsAccountConnectionDetail } from '../schemas/ResponseDtoAwsAccountConnectionDetail';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface AwsaccountconnectiondetailQueryQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
is_gov?: boolean;
|
|
10
|
+
isOidc?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export type AwsaccountconnectiondetailOkResponse = ResponseWithPagination<unknown>;
|
|
13
|
+
export type AwsaccountconnectiondetailErrorResponse = Failure | Error | ResponseDtoAwsAccountConnectionDetail;
|
|
14
|
+
export interface AwsaccountconnectiondetailProps extends Omit<FetcherOptions<AwsaccountconnectiondetailQueryQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: AwsaccountconnectiondetailQueryQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export declare function awsaccountconnectiondetail(props: AwsaccountconnectiondetailProps): Promise<AwsaccountconnectiondetailOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Fetch AWS account connection details required for CCM connector setup, including external Id, Harness AWS account Id, CloudFormation template link, and stack launch template link.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useAwsaccountconnectiondetailQuery(props: AwsaccountconnectiondetailProps, options?: Omit<UseQueryOptions<AwsaccountconnectiondetailOkResponse, AwsaccountconnectiondetailErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AwsaccountconnectiondetailOkResponse, AwsaccountconnectiondetailErrorResponse>;
|
|
@@ -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 awsaccountconnectiondetail(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/connector/awsaccountconnectiondetail`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Fetch AWS account connection details required for CCM connector setup, including external Id, Harness AWS account Id, CloudFormation template link, and stack launch template link.
|
|
11
|
+
*/
|
|
12
|
+
export function useAwsaccountconnectiondetailQuery(props, options) {
|
|
13
|
+
return useQuery(['awsaccountconnectiondetail', props.queryParams], ({ signal }) => awsaccountconnectiondetail(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UseQueryOptions } 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 type AzureappclientidOkResponse = ResponseWithPagination<unknown>;
|
|
8
|
+
export type AzureappclientidErrorResponse = Failure | Error | ResponseDtoString;
|
|
9
|
+
export interface AzureappclientidProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
10
|
+
}
|
|
11
|
+
export declare function azureappclientid(props: AzureappclientidProps): Promise<AzureappclientidOkResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Fetch the Azure application client Id used for CCM connector setup.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useAzureappclientidQuery(props: AzureappclientidProps, options?: Omit<UseQueryOptions<AzureappclientidOkResponse, AzureappclientidErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AzureappclientidOkResponse, AzureappclientidErrorResponse>;
|
|
@@ -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 azureappclientid(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/connector/azureappclientid`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Fetch the Azure application client Id used for CCM connector setup.
|
|
11
|
+
*/
|
|
12
|
+
export function useAzureappclientidQuery(props, options) {
|
|
13
|
+
return useQuery(['azureappclientid'], ({ signal }) => azureappclientid(Object.assign(Object.assign({}, props), { signal })), 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,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 { CcmJiraDetachDto } from '../schemas/CcmJiraDetachDto';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface DetachJiraFromRecommendationMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type DetachJiraFromRecommendationRequestBody = CcmJiraDetachDto;
|
|
12
|
+
export type DetachJiraFromRecommendationOkResponse = ResponseWithPagination<unknown>;
|
|
13
|
+
export type DetachJiraFromRecommendationErrorResponse = Failure | Error | ResponseDtoBoolean;
|
|
14
|
+
export interface DetachJiraFromRecommendationProps extends Omit<FetcherOptions<DetachJiraFromRecommendationMutationQueryParams, DetachJiraFromRecommendationRequestBody>, 'url'> {
|
|
15
|
+
queryParams: DetachJiraFromRecommendationMutationQueryParams;
|
|
16
|
+
body: DetachJiraFromRecommendationRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function detachJiraFromRecommendation(props: DetachJiraFromRecommendationProps): Promise<DetachJiraFromRecommendationOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Detach Jira details from a recommendation
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDetachJiraFromRecommendationMutation(options?: Omit<UseMutationOptions<DetachJiraFromRecommendationOkResponse, DetachJiraFromRecommendationErrorResponse, DetachJiraFromRecommendationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DetachJiraFromRecommendationOkResponse, DetachJiraFromRecommendationErrorResponse, DetachJiraFromRecommendationProps, unknown>;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
-
export function
|
|
7
|
-
return fetcher(Object.assign({ url: `/recommendation/jira/
|
|
6
|
+
export function detachJiraFromRecommendation(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/recommendation/jira/detach`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Detach Jira details from a recommendation
|
|
11
11
|
*/
|
|
12
|
-
export function
|
|
13
|
-
return useMutation((mutateProps) =>
|
|
12
|
+
export function useDetachJiraFromRecommendationMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => detachJiraFromRecommendation(mutateProps), options);
|
|
14
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 { ResponseDtoString } from '../schemas/ResponseDtoString';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GcpserviceaccountQueryQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type GcpserviceaccountOkResponse = ResponseWithPagination<unknown>;
|
|
11
|
+
export type GcpserviceaccountErrorResponse = Failure | Error | ResponseDtoString;
|
|
12
|
+
export interface GcpserviceaccountProps extends Omit<FetcherOptions<GcpserviceaccountQueryQueryParams, unknown>, 'url'> {
|
|
13
|
+
queryParams: GcpserviceaccountQueryQueryParams;
|
|
14
|
+
}
|
|
15
|
+
export declare function gcpserviceaccount(props: GcpserviceaccountProps): Promise<GcpserviceaccountOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Provision (if needed) and return the GCP service account email used for CCM connector setup.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGcpserviceaccountQuery(props: GcpserviceaccountProps, options?: Omit<UseQueryOptions<GcpserviceaccountOkResponse, GcpserviceaccountErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GcpserviceaccountOkResponse, GcpserviceaccountErrorResponse>;
|
|
@@ -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 gcpserviceaccount(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/connector/gcpserviceaccount`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Provision (if needed) and return the GCP service account email used for CCM connector setup.
|
|
11
|
+
*/
|
|
12
|
+
export function useGcpserviceaccountQuery(props, options) {
|
|
13
|
+
return useQuery(['gcpserviceaccount', props.queryParams], ({ signal }) => gcpserviceaccount(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
|
+
}
|