@harnessio/react-ccm-service-client 0.4.4 → 0.4.6

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.
Files changed (33) hide show
  1. package/dist/ccm-service/src/services/hooks/useDetachRecommendationServicenowTicketMutation.d.ts +22 -0
  2. package/dist/ccm-service/src/services/hooks/useDetachRecommendationServicenowTicketMutation.js +14 -0
  3. package/dist/ccm-service/src/services/hooks/useGetBusinessMappingQuery.d.ts +1 -1
  4. package/dist/ccm-service/src/services/hooks/useGetBusinessMappingQuery.js +1 -1
  5. package/dist/ccm-service/src/services/hooks/useGetEc2RecommendationPreferenceQuery.d.ts +21 -0
  6. package/dist/ccm-service/src/services/hooks/useGetEc2RecommendationPreferenceQuery.js +14 -0
  7. package/dist/ccm-service/src/services/hooks/useValidateOverlapInCostCategoryMutation.d.ts +21 -0
  8. package/dist/ccm-service/src/services/hooks/useValidateOverlapInCostCategoryMutation.js +14 -0
  9. package/dist/ccm-service/src/services/index.d.ts +13 -0
  10. package/dist/ccm-service/src/services/index.js +3 -0
  11. package/dist/ccm-service/src/services/schemas/AzurePreferences.d.ts +0 -1
  12. package/dist/ccm-service/src/services/schemas/BusinessMapping.d.ts +3 -0
  13. package/dist/ccm-service/src/services/schemas/BusinessMappingValidationRequestDto.d.ts +19 -0
  14. package/dist/ccm-service/src/services/schemas/BusinessMappingValidationRequestDto.js +4 -0
  15. package/dist/ccm-service/src/services/schemas/BusinessMappingValidationResponseDto.d.ts +17 -0
  16. package/dist/ccm-service/src/services/schemas/BusinessMappingValidationResponseDto.js +1 -0
  17. package/dist/ccm-service/src/services/schemas/CcmJiraAttachDto.d.ts +0 -1
  18. package/dist/ccm-service/src/services/schemas/CcmJiraCreateDto.d.ts +3 -4
  19. package/dist/ccm-service/src/services/schemas/CcmServiceNowAttachDto.d.ts +0 -1
  20. package/dist/ccm-service/src/services/schemas/CcmServiceNowCreateDto.d.ts +3 -4
  21. package/dist/ccm-service/src/services/schemas/CcmServiceNowDetachDto.d.ts +6 -0
  22. package/dist/ccm-service/src/services/schemas/CcmServiceNowDetachDto.js +4 -0
  23. package/dist/ccm-service/src/services/schemas/CeView.d.ts +4 -0
  24. package/dist/ccm-service/src/services/schemas/CostBucketOverlapStatDto.d.ts +17 -0
  25. package/dist/ccm-service/src/services/schemas/CostBucketOverlapStatDto.js +1 -0
  26. package/dist/ccm-service/src/services/schemas/CostBucketRef.d.ts +5 -0
  27. package/dist/ccm-service/src/services/schemas/CostBucketRef.js +4 -0
  28. package/dist/ccm-service/src/services/schemas/Ec2RecommendationV2Preset.d.ts +5 -0
  29. package/dist/ccm-service/src/services/schemas/Ec2RecommendationV2Preset.js +1 -0
  30. package/dist/ccm-service/src/services/schemas/ResponseDtoec2RecommendationV2Preset.d.ts +9 -0
  31. package/dist/ccm-service/src/services/schemas/ResponseDtoec2RecommendationV2Preset.js +1 -0
  32. package/dist/ccm-service/src/services/schemas/TotalResourceUsage.d.ts +1 -0
  33. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { Failure } from '../schemas/Failure';
3
+ import type { Error } from '../schemas/Error';
4
+ import type { ResponseDtoBoolean } from '../schemas/ResponseDtoBoolean';
5
+ import type { CcmServiceNowDetachDto } from '../schemas/CcmServiceNowDetachDto';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface DetachRecommendationServicenowTicketMutationQueryParams {
9
+ accountIdentifier: string;
10
+ }
11
+ export type DetachRecommendationServicenowTicketRequestBody = CcmServiceNowDetachDto;
12
+ export type DetachRecommendationServicenowTicketOkResponse = ResponseWithPagination<unknown>;
13
+ export type DetachRecommendationServicenowTicketErrorResponse = Failure | Error | ResponseDtoBoolean;
14
+ export interface DetachRecommendationServicenowTicketProps extends Omit<FetcherOptions<DetachRecommendationServicenowTicketMutationQueryParams, DetachRecommendationServicenowTicketRequestBody>, 'url'> {
15
+ queryParams: DetachRecommendationServicenowTicketMutationQueryParams;
16
+ body: DetachRecommendationServicenowTicketRequestBody;
17
+ }
18
+ export declare function detachRecommendationServicenowTicket(props: DetachRecommendationServicenowTicketProps): Promise<DetachRecommendationServicenowTicketOkResponse>;
19
+ /**
20
+ * Detach ServiceNow details from a recommendation, optionally updating ticket fields first
21
+ */
22
+ export declare function useDetachRecommendationServicenowTicketMutation(options?: Omit<UseMutationOptions<DetachRecommendationServicenowTicketOkResponse, DetachRecommendationServicenowTicketErrorResponse, DetachRecommendationServicenowTicketProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DetachRecommendationServicenowTicketOkResponse, DetachRecommendationServicenowTicketErrorResponse, DetachRecommendationServicenowTicketProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function detachRecommendationServicenowTicket(props) {
7
+ return fetcher(Object.assign({ url: `/recommendation/servicenow/detach`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Detach ServiceNow details from a recommendation, optionally updating ticket fields first
11
+ */
12
+ export function useDetachRecommendationServicenowTicketMutation(options) {
13
+ return useMutation((mutateProps) => detachRecommendationServicenowTicket(mutateProps), options);
14
+ }
@@ -17,6 +17,6 @@ export interface GetBusinessMappingProps extends GetBusinessMappingQueryPathPara
17
17
  }
18
18
  export declare function getBusinessMapping(props: GetBusinessMappingProps): Promise<GetBusinessMappingOkResponse>;
19
19
  /**
20
- * Retrieve a specific Cost Category by its unique identifier. Returns the complete Cost Category configuration including all cost buckets, shared costs, and rule definitions.
20
+ * Retrieve a specific Cost Category by its unique identifier. Returns the complete Cost Category configuration including all cost buckets, shared costs, and rule definitions. When overlap validation is COMPLETE, costBucketOverlapStats lists per-bucket cost, row count, overlap cost, and overlapping buckets. Those stats are not embedded on the cost buckets.
21
21
  */
22
22
  export declare function useGetBusinessMappingQuery(props: GetBusinessMappingProps, options?: Omit<UseQueryOptions<GetBusinessMappingOkResponse, GetBusinessMappingErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetBusinessMappingOkResponse, GetBusinessMappingErrorResponse>;
@@ -7,7 +7,7 @@ export function getBusinessMapping(props) {
7
7
  return fetcher(Object.assign({ url: `/business-mapping/${props.id}`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Retrieve a specific Cost Category by its unique identifier. Returns the complete Cost Category configuration including all cost buckets, shared costs, and rule definitions.
10
+ * Retrieve a specific Cost Category by its unique identifier. Returns the complete Cost Category configuration including all cost buckets, shared costs, and rule definitions. When overlap validation is COMPLETE, costBucketOverlapStats lists per-bucket cost, row count, overlap cost, and overlapping buckets. Those stats are not embedded on the cost buckets.
11
11
  */
12
12
  export function useGetBusinessMappingQuery(props, options) {
13
13
  return useQuery(['getBusinessMapping', props.id, props.queryParams], ({ signal }) => getBusinessMapping(Object.assign(Object.assign({}, props), { signal })), options);
@@ -0,0 +1,21 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { Failure } from '../schemas/Failure';
3
+ import type { Error } from '../schemas/Error';
4
+ import type { ResponseDtoec2RecommendationV2Preset } from '../schemas/ResponseDtoec2RecommendationV2Preset';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface GetEc2RecommendationPreferenceQueryQueryParams {
8
+ accountIdentifier: string;
9
+ resourceId: string;
10
+ awsAccountId: string;
11
+ }
12
+ export type GetEc2RecommendationPreferenceOkResponse = ResponseWithPagination<unknown>;
13
+ export type GetEc2RecommendationPreferenceErrorResponse = Failure | Error | ResponseDtoec2RecommendationV2Preset;
14
+ export interface GetEc2RecommendationPreferenceProps extends Omit<FetcherOptions<GetEc2RecommendationPreferenceQueryQueryParams, unknown>, 'url'> {
15
+ queryParams: GetEc2RecommendationPreferenceQueryQueryParams;
16
+ }
17
+ export declare function getEc2RecommendationPreference(props: GetEc2RecommendationPreferenceProps): Promise<GetEc2RecommendationPreferenceOkResponse>;
18
+ /**
19
+ * Get EC2 recommendation preference for a specific instance. Checks AWS Compute Optimizer for resource-level preferences first, then falls back to Harness preset.
20
+ */
21
+ export declare function useGetEc2RecommendationPreferenceQuery(props: GetEc2RecommendationPreferenceProps, options?: Omit<UseQueryOptions<GetEc2RecommendationPreferenceOkResponse, GetEc2RecommendationPreferenceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEc2RecommendationPreferenceOkResponse, GetEc2RecommendationPreferenceErrorResponse>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getEc2RecommendationPreference(props) {
7
+ return fetcher(Object.assign({ url: `/recommendation/preference/ec2`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get EC2 recommendation preference for a specific instance. Checks AWS Compute Optimizer for resource-level preferences first, then falls back to Harness preset.
11
+ */
12
+ export function useGetEc2RecommendationPreferenceQuery(props, options) {
13
+ return useQuery(['getEC2RecommendationPreference', props.queryParams], ({ signal }) => getEc2RecommendationPreference(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { BusinessMappingValidationResponseDto } from '../schemas/BusinessMappingValidationResponseDto';
3
+ import type { Error } from '../schemas/Error';
4
+ import type { BusinessMappingValidationRequestDto } from '../schemas/BusinessMappingValidationRequestDto';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface ValidateOverlapInCostCategoryMutationQueryParams {
8
+ accountIdentifier?: string;
9
+ }
10
+ export type ValidateOverlapInCostCategoryRequestBody = BusinessMappingValidationRequestDto;
11
+ export type ValidateOverlapInCostCategoryOkResponse = ResponseWithPagination<BusinessMappingValidationResponseDto>;
12
+ export type ValidateOverlapInCostCategoryErrorResponse = unknown | Error;
13
+ export interface ValidateOverlapInCostCategoryProps extends Omit<FetcherOptions<ValidateOverlapInCostCategoryMutationQueryParams, ValidateOverlapInCostCategoryRequestBody>, 'url'> {
14
+ queryParams: ValidateOverlapInCostCategoryMutationQueryParams;
15
+ body: ValidateOverlapInCostCategoryRequestBody;
16
+ }
17
+ export declare function validateOverlapInCostCategory(props: ValidateOverlapInCostCategoryProps): Promise<ValidateOverlapInCostCategoryOkResponse>;
18
+ /**
19
+ * Detect overlapping cost-bucket rules on an already-saved Cost Category over a window of billing data, defaulting to the last 30 days when startTime and endTime are omitted. The window must be at most 31 days. Persists per-bucket cost, row count, and overlapping cost, and marks overlapValidationState as COMPLETE on success or FAILED on failure.
20
+ */
21
+ export declare function useValidateOverlapInCostCategoryMutation(options?: Omit<UseMutationOptions<ValidateOverlapInCostCategoryOkResponse, ValidateOverlapInCostCategoryErrorResponse, ValidateOverlapInCostCategoryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ValidateOverlapInCostCategoryOkResponse, unknown, ValidateOverlapInCostCategoryProps, 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 validateOverlapInCostCategory(props) {
7
+ return fetcher(Object.assign({ url: `/business-mapping/validate-overlap`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Detect overlapping cost-bucket rules on an already-saved Cost Category over a window of billing data, defaulting to the last 30 days when startTime and endTime are omitted. The window must be at most 31 days. Persists per-bucket cost, row count, and overlapping cost, and marks overlapValidationState as COMPLETE on success or FAILED on failure.
11
+ */
12
+ export function useValidateOverlapInCostCategoryMutation(options) {
13
+ return useMutation((mutateProps) => validateOverlapInCostCategory(mutateProps), options);
14
+ }
@@ -145,6 +145,8 @@ export type { DeleteUnitMetricErrorResponse, DeleteUnitMetricMutationQueryParams
145
145
  export { deleteUnitMetric, useDeleteUnitMetricMutation } from './hooks/useDeleteUnitMetricMutation';
146
146
  export type { DetachJiraFromRecommendationErrorResponse, DetachJiraFromRecommendationMutationQueryParams, DetachJiraFromRecommendationOkResponse, DetachJiraFromRecommendationProps, DetachJiraFromRecommendationRequestBody, } from './hooks/useDetachJiraFromRecommendationMutation';
147
147
  export { detachJiraFromRecommendation, useDetachJiraFromRecommendationMutation, } from './hooks/useDetachJiraFromRecommendationMutation';
148
+ export type { DetachRecommendationServicenowTicketErrorResponse, DetachRecommendationServicenowTicketMutationQueryParams, DetachRecommendationServicenowTicketOkResponse, DetachRecommendationServicenowTicketProps, DetachRecommendationServicenowTicketRequestBody, } from './hooks/useDetachRecommendationServicenowTicketMutation';
149
+ export { detachRecommendationServicenowTicket, useDetachRecommendationServicenowTicketMutation, } from './hooks/useDetachRecommendationServicenowTicketMutation';
148
150
  export type { DismissEnforcementRecommendationsErrorResponse, DismissEnforcementRecommendationsMutationQueryParams, DismissEnforcementRecommendationsOkResponse, DismissEnforcementRecommendationsProps, } from './hooks/useDismissEnforcementRecommendationsMutation';
149
151
  export { dismissEnforcementRecommendations, useDismissEnforcementRecommendationsMutation, } from './hooks/useDismissEnforcementRecommendationsMutation';
150
152
  export type { Ec2RecommendationDetailErrorResponse, Ec2RecommendationDetailOkResponse, Ec2RecommendationDetailProps, Ec2RecommendationDetailQueryQueryParams, } from './hooks/useEc2RecommendationDetailQuery';
@@ -237,6 +239,8 @@ export type { GetDistinctExecutionMonthsErrorResponse, GetDistinctExecutionMonth
237
239
  export { getDistinctExecutionMonths, useGetDistinctExecutionMonthsQuery, } from './hooks/useGetDistinctExecutionMonthsQuery';
238
240
  export type { GetDistinctJobKindsErrorResponse, GetDistinctJobKindsOkResponse, GetDistinctJobKindsProps, GetDistinctJobKindsQueryQueryParams, } from './hooks/useGetDistinctJobKindsQuery';
239
241
  export { getDistinctJobKinds, useGetDistinctJobKindsQuery, } from './hooks/useGetDistinctJobKindsQuery';
242
+ export type { GetEc2RecommendationPreferenceErrorResponse, GetEc2RecommendationPreferenceOkResponse, GetEc2RecommendationPreferenceProps, GetEc2RecommendationPreferenceQueryQueryParams, } from './hooks/useGetEc2RecommendationPreferenceQuery';
243
+ export { getEc2RecommendationPreference, useGetEc2RecommendationPreferenceQuery, } from './hooks/useGetEc2RecommendationPreferenceQuery';
240
244
  export type { GetEntityListErrorResponse, GetEntityListOkResponse, GetEntityListProps, GetEntityListQueryQueryParams, } from './hooks/useGetEntityListQuery';
241
245
  export { getEntityList, useGetEntityListQuery } from './hooks/useGetEntityListQuery';
242
246
  export type { GetFilterListErrorResponse, GetFilterListOkResponse, GetFilterListProps, GetFilterListQueryQueryParams, } from './hooks/useGetFilterListQuery';
@@ -533,6 +537,8 @@ export type { UpsertJiraFieldMappingErrorResponse, UpsertJiraFieldMappingMutatio
533
537
  export { upsertJiraFieldMapping, useUpsertJiraFieldMappingMutation, } from './hooks/useUpsertJiraFieldMappingMutation';
534
538
  export type { ValidateGovernanceRuleErrorResponse, ValidateGovernanceRuleMutationQueryParams, ValidateGovernanceRuleOkResponse, ValidateGovernanceRuleProps, ValidateGovernanceRuleRequestBody, } from './hooks/useValidateGovernanceRuleMutation';
535
539
  export { useValidateGovernanceRuleMutation, validateGovernanceRule, } from './hooks/useValidateGovernanceRuleMutation';
540
+ export type { ValidateOverlapInCostCategoryErrorResponse, ValidateOverlapInCostCategoryMutationQueryParams, ValidateOverlapInCostCategoryOkResponse, ValidateOverlapInCostCategoryProps, ValidateOverlapInCostCategoryRequestBody, } from './hooks/useValidateOverlapInCostCategoryMutation';
541
+ export { useValidateOverlapInCostCategoryMutation, validateOverlapInCostCategory, } from './hooks/useValidateOverlapInCostCategoryMutation';
536
542
  export type { WorkloadRecommendationDetailErrorResponse, WorkloadRecommendationDetailOkResponse, WorkloadRecommendationDetailProps, WorkloadRecommendationDetailQueryQueryParams, } from './hooks/useWorkloadRecommendationDetailQuery';
537
543
  export { useWorkloadRecommendationDetailQuery, workloadRecommendationDetail, } from './hooks/useWorkloadRecommendationDetailQuery';
538
544
  export type { AccountScopedPreference } from './schemas/AccountScopedPreference';
@@ -584,6 +590,8 @@ export type { BudgetScope } from './schemas/BudgetScope';
584
590
  export type { BudgetSummary } from './schemas/BudgetSummary';
585
591
  export type { BusinessMapping } from './schemas/BusinessMapping';
586
592
  export type { BusinessMappingListDto } from './schemas/BusinessMappingListDto';
593
+ export type { BusinessMappingValidationRequestDto } from './schemas/BusinessMappingValidationRequestDto';
594
+ export type { BusinessMappingValidationResponseDto } from './schemas/BusinessMappingValidationResponseDto';
587
595
  export type { CcmAggregation } from './schemas/CcmAggregation';
588
596
  export type { CcmBudgetFilterProperties } from './schemas/CcmBudgetFilterProperties';
589
597
  export type { CcmCloudAccount } from './schemas/CcmCloudAccount';
@@ -605,6 +613,7 @@ export type { CcmOverview } from './schemas/CcmOverview';
605
613
  export type { CcmRecommendationFilterProperties } from './schemas/CcmRecommendationFilterProperties';
606
614
  export type { CcmServiceNowAttachDto } from './schemas/CcmServiceNowAttachDto';
607
615
  export type { CcmServiceNowCreateDto } from './schemas/CcmServiceNowCreateDto';
616
+ export type { CcmServiceNowDetachDto } from './schemas/CcmServiceNowDetachDto';
608
617
  export type { CcmServiceNowDetails } from './schemas/CcmServiceNowDetails';
609
618
  export type { CcmSort } from './schemas/CcmSort';
610
619
  export type { CcmTagDto } from './schemas/CcmTagDto';
@@ -630,6 +639,8 @@ export type { ContainerHistogramDto } from './schemas/ContainerHistogramDto';
630
639
  export type { ContainerRecommendation } from './schemas/ContainerRecommendation';
631
640
  export type { ContainerRecommendationFilterProperties } from './schemas/ContainerRecommendationFilterProperties';
632
641
  export type { Cost } from './schemas/Cost';
642
+ export type { CostBucketOverlapStatDto } from './schemas/CostBucketOverlapStatDto';
643
+ export type { CostBucketRef } from './schemas/CostBucketRef';
633
644
  export type { CostCategoryDeleteDto } from './schemas/CostCategoryDeleteDto';
634
645
  export type { CostCategoryJiraMapping } from './schemas/CostCategoryJiraMapping';
635
646
  export type { CostDetailsQueryParams } from './schemas/CostDetailsQueryParams';
@@ -653,6 +664,7 @@ export type { DataJobStatusOverviewDto } from './schemas/DataJobStatusOverviewDt
653
664
  export type { DataJobStatusResponseDto } from './schemas/DataJobStatusResponseDto';
654
665
  export type { DataPoint } from './schemas/DataPoint';
655
666
  export type { DeleteBudgetRequest } from './schemas/DeleteBudgetRequest';
667
+ export type { Ec2RecommendationV2Preset } from './schemas/Ec2RecommendationV2Preset';
656
668
  export type { EcsRecommendationDto } from './schemas/EcsRecommendationDto';
657
669
  export type { EcsRecommendationSnapshot } from './schemas/EcsRecommendationSnapshot';
658
670
  export type { EmbeddedUser } from './schemas/EmbeddedUser';
@@ -910,6 +922,7 @@ export type { ResponseDtoccmServiceNowDetails } from './schemas/ResponseDtoccmSe
910
922
  export type { ResponseDtoceReportScheduleResponseDto } from './schemas/ResponseDtoceReportScheduleResponseDto';
911
923
  export type { ResponseDtoceView } from './schemas/ResponseDtoceView';
912
924
  export type { ResponseDtoceViewFolder } from './schemas/ResponseDtoceViewFolder';
925
+ export type { ResponseDtoec2RecommendationV2Preset } from './schemas/ResponseDtoec2RecommendationV2Preset';
913
926
  export type { ResponseDtoecsRecommendationDto } from './schemas/ResponseDtoecsRecommendationDto';
914
927
  export type { ResponseMessage } from './schemas/ResponseMessage';
915
928
  export type { RestResponseBusinessMapping } from './schemas/RestResponseBusinessMapping';
@@ -71,6 +71,7 @@ export { deleteRule, useDeleteRuleMutation } from './hooks/useDeleteRuleMutation
71
71
  export { deleteRuleSet, useDeleteRuleSetMutation } from './hooks/useDeleteRuleSetMutation';
72
72
  export { deleteUnitMetric, useDeleteUnitMetricMutation } from './hooks/useDeleteUnitMetricMutation';
73
73
  export { detachJiraFromRecommendation, useDetachJiraFromRecommendationMutation, } from './hooks/useDetachJiraFromRecommendationMutation';
74
+ export { detachRecommendationServicenowTicket, useDetachRecommendationServicenowTicketMutation, } from './hooks/useDetachRecommendationServicenowTicketMutation';
74
75
  export { dismissEnforcementRecommendations, useDismissEnforcementRecommendationsMutation, } from './hooks/useDismissEnforcementRecommendationsMutation';
75
76
  export { ec2RecommendationDetail, useEc2RecommendationDetailQuery, } from './hooks/useEc2RecommendationDetailQuery';
76
77
  export { ecsRecommendationDetail, useEcsRecommendationDetailQuery, } from './hooks/useEcsRecommendationDetailQuery';
@@ -117,6 +118,7 @@ export { getDataJobsDashboard, useGetDataJobsDashboardQuery, } from './hooks/use
117
118
  export { getDistinctBillingPeriods, useGetDistinctBillingPeriodsQuery, } from './hooks/useGetDistinctBillingPeriodsQuery';
118
119
  export { getDistinctExecutionMonths, useGetDistinctExecutionMonthsQuery, } from './hooks/useGetDistinctExecutionMonthsQuery';
119
120
  export { getDistinctJobKinds, useGetDistinctJobKindsQuery, } from './hooks/useGetDistinctJobKindsQuery';
121
+ export { getEc2RecommendationPreference, useGetEc2RecommendationPreferenceQuery, } from './hooks/useGetEc2RecommendationPreferenceQuery';
120
122
  export { getEntityList, useGetEntityListQuery } from './hooks/useGetEntityListQuery';
121
123
  export { getFilterList, useGetFilterListQuery } from './hooks/useGetFilterListQuery';
122
124
  export { getFilter, useGetFilterQuery } from './hooks/useGetFilterQuery';
@@ -265,4 +267,5 @@ export { updateRuleSet, useUpdateRuleSetMutation } from './hooks/useUpdateRuleSe
265
267
  export { updateUnitMetric, useUpdateUnitMetricMutation } from './hooks/useUpdateUnitMetricMutation';
266
268
  export { upsertJiraFieldMapping, useUpsertJiraFieldMappingMutation, } from './hooks/useUpsertJiraFieldMappingMutation';
267
269
  export { useValidateGovernanceRuleMutation, validateGovernanceRule, } from './hooks/useValidateGovernanceRuleMutation';
270
+ export { useValidateOverlapInCostCategoryMutation, validateOverlapInCostCategory, } from './hooks/useValidateOverlapInCostCategoryMutation';
268
271
  export { useWorkloadRecommendationDetailQuery, workloadRecommendationDetail, } from './hooks/useWorkloadRecommendationDetailQuery';
@@ -1,4 +1,3 @@
1
1
  export interface AzurePreferences {
2
2
  costSource?: 'FOLLOW_DEFAULT_COST_SETTINGS' | 'PUBLIC_ON_DEMAND';
3
- costType?: 'ACTUAL' | 'AMORTIZED' | 'LIST_PRICE';
4
3
  }
@@ -1,9 +1,11 @@
1
+ import type { CostBucketOverlapStatDto } from '../schemas/CostBucketOverlapStatDto';
1
2
  import type { CostTarget } from '../schemas/CostTarget';
2
3
  import type { EmbeddedUser } from '../schemas/EmbeddedUser';
3
4
  import type { SharedCost } from '../schemas/SharedCost';
4
5
  import type { UnallocatedCost } from '../schemas/UnallocatedCost';
5
6
  export interface BusinessMapping {
6
7
  accountId: string;
8
+ costBucketOverlapStats?: CostBucketOverlapStatDto[];
7
9
  costTargets?: CostTarget[];
8
10
  costTargetsWithUUID?: CostTarget[];
9
11
  /**
@@ -18,6 +20,7 @@ export interface BusinessMapping {
18
20
  lastUpdatedAt?: number;
19
21
  lastUpdatedBy?: EmbeddedUser;
20
22
  name: string;
23
+ overlapValidationState?: 'COMPLETE' | 'FAILED' | 'NOT_VALIDATED';
21
24
  sharedCosts?: SharedCost[];
22
25
  sharedCostsWithUUID?: SharedCost[];
23
26
  supportsTagNormalization?: boolean;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Request to validate overlap in an existing Cost Category
3
+ */
4
+ export interface BusinessMappingValidationRequestDto {
5
+ /**
6
+ * Identifier of the Cost Category (Business Mapping) to validate for overlap
7
+ */
8
+ businessMappingId: string;
9
+ /**
10
+ * Inclusive end of the billing-data window as epoch millis. Must be sent together with startTime, must be after startTime, and must be within 31 days of it.
11
+ * @format int64
12
+ */
13
+ endTime?: number;
14
+ /**
15
+ * Inclusive start of the billing-data window as epoch millis. Must be sent together with endTime; when both are omitted the last 30 days are used. The window must be at most 31 days.
16
+ * @format int64
17
+ */
18
+ startTime?: number;
19
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,17 @@
1
+ import type { CostBucketOverlapStatDto } from '../schemas/CostBucketOverlapStatDto';
2
+ /**
3
+ * Response body for the Cost Category overlap-validate action. Returns the validation outcome, scored window, and per-bucket overlap stats without echoing the full Cost Category definition.
4
+ */
5
+ export interface BusinessMappingValidationResponseDto {
6
+ businessMappingId?: string;
7
+ costBucketOverlapStats?: CostBucketOverlapStatDto[];
8
+ overlapValidationState?: 'COMPLETE' | 'FAILED' | 'NOT_VALIDATED';
9
+ /**
10
+ * @format int64
11
+ */
12
+ windowEnd?: number;
13
+ /**
14
+ * @format int64
15
+ */
16
+ windowStart?: number;
17
+ }
@@ -1,5 +1,4 @@
1
1
  export interface CcmJiraAttachDto {
2
- connectorRef: string;
3
2
  issueKey: string;
4
3
  recommendationId: string;
5
4
  }
@@ -1,10 +1,9 @@
1
1
  export interface CcmJiraCreateDto {
2
- connectorRef?: string;
3
- fields?: {
2
+ fields: {
4
3
  [key: string]: string;
5
4
  };
6
- issueType?: string;
7
- projectKey?: string;
5
+ issueType: string;
6
+ projectKey: string;
8
7
  recommendationId: string;
9
8
  resourceType: 'AZURE_APP_SERVICE' | 'AZURE_DATABASE' | 'AZURE_FILES' | 'AZURE_INSTANCE' | 'AZURE_STORAGE' | 'AZURE_VM' | 'AZURE_VMSS' | 'EBS_VOLUME' | 'EC2_AUTO_SCALING_GROUP' | 'EC2_INSTANCE' | 'EC2_INSTANCE_V2' | 'ECS_SERVICE' | 'GOVERNANCE' | 'NODE_POOL' | 'RDS_DB_INSTANCE' | 'RDS_DB_INSTANCE_STORAGE' | 'WORKLOAD';
10
9
  }
@@ -1,5 +1,4 @@
1
1
  export interface CcmServiceNowAttachDto {
2
- connectorRef: string;
3
2
  recommendationId: string;
4
3
  ticketNumber: string;
5
4
  ticketType: string;
@@ -1,9 +1,8 @@
1
1
  export interface CcmServiceNowCreateDto {
2
- connectorRef?: string;
3
- fields?: {
2
+ fields: {
4
3
  [key: string]: string;
5
4
  };
6
5
  recommendationId: string;
7
- resourceType?: 'AZURE_APP_SERVICE' | 'AZURE_DATABASE' | 'AZURE_FILES' | 'AZURE_INSTANCE' | 'AZURE_STORAGE' | 'AZURE_VM' | 'AZURE_VMSS' | 'EBS_VOLUME' | 'EC2_AUTO_SCALING_GROUP' | 'EC2_INSTANCE' | 'EC2_INSTANCE_V2' | 'ECS_SERVICE' | 'GOVERNANCE' | 'NODE_POOL' | 'RDS_DB_INSTANCE' | 'RDS_DB_INSTANCE_STORAGE' | 'WORKLOAD';
8
- ticketType?: string;
6
+ resourceType: 'AZURE_APP_SERVICE' | 'AZURE_DATABASE' | 'AZURE_FILES' | 'AZURE_INSTANCE' | 'AZURE_STORAGE' | 'AZURE_VM' | 'AZURE_VMSS' | 'EBS_VOLUME' | 'EC2_AUTO_SCALING_GROUP' | 'EC2_INSTANCE' | 'EC2_INSTANCE_V2' | 'ECS_SERVICE' | 'GOVERNANCE' | 'NODE_POOL' | 'RDS_DB_INSTANCE' | 'RDS_DB_INSTANCE_STORAGE' | 'WORKLOAD';
7
+ ticketType: string;
9
8
  }
@@ -0,0 +1,6 @@
1
+ export interface CcmServiceNowDetachDto {
2
+ fields?: {
3
+ [key: string]: string;
4
+ };
5
+ recommendationId: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -29,6 +29,10 @@ export interface CeView {
29
29
  unitMetricInfo?: UnitMetricInfo[];
30
30
  uuid?: string;
31
31
  viewPreferences?: ViewPreferences;
32
+ /**
33
+ * Product/domain context of a perspective. Null for legacy cloud cost perspectives
34
+ */
35
+ viewProductModule?: 'AI_TRACES' | 'ENG_EFFICIENCY' | 'HSU' | 'WORKER_AGENT';
32
36
  viewRules?: ViewRule[];
33
37
  viewState?: 'COMPLETED' | 'DRAFT';
34
38
  viewTimeRange?: ViewTimeRange;
@@ -0,0 +1,17 @@
1
+ import type { CostBucketRef } from '../schemas/CostBucketRef';
2
+ export interface CostBucketOverlapStatDto {
3
+ /**
4
+ * @format double
5
+ */
6
+ cost?: number;
7
+ costBucketRef?: CostBucketRef;
8
+ /**
9
+ * @format double
10
+ */
11
+ overlapCost?: number;
12
+ overlappingBuckets?: CostBucketRef[];
13
+ /**
14
+ * @format int64
15
+ */
16
+ rows?: number;
17
+ }
@@ -0,0 +1,5 @@
1
+ export interface CostBucketRef {
2
+ name?: string;
3
+ shared?: boolean;
4
+ uuid?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { RecommendationPreset } from '../schemas/RecommendationPreset';
2
+ export interface Ec2RecommendationV2Preset extends RecommendationPreset {
3
+ lookBackPeriod?: 'DAYS_14' | 'DAYS_32';
4
+ preferredInstanceTypes?: string[];
5
+ }
@@ -0,0 +1,9 @@
1
+ import type { Ec2RecommendationV2Preset } from '../schemas/Ec2RecommendationV2Preset';
2
+ export interface ResponseDtoec2RecommendationV2Preset {
3
+ correlationId?: string;
4
+ data?: Ec2RecommendationV2Preset;
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -1,4 +1,5 @@
1
1
  export interface TotalResourceUsage {
2
+ allZero?: boolean;
2
3
  /**
3
4
  * @format double
4
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ccm-service-client",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "Harness CCM Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",