Issue:
feat(disputes): add support for disputes aggregate

1. Support for disputes aggregate 
2. Support for disputes aggregate in profile level

Resolution:
<think>
PR Context:
- Title: feat(disputes): add support for disputes aggregate
- Merged: 2024-09-18T07:25:25Z
- Files changed: 11 files
- Commits: 15 commits

Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [X] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
<!-- Describe your changes in detail -->
- Add support for disputes aggregate 
- Add support for profile level disputes aggregate 
- For now it will have list of intent status along with the their count for a given time range.


### Additional Changes

- [X] This PR modifies t
</think>

To implement this, you'll need to modify:


**Detailed Implementation:**


**Commit 1:** feat(disputes): add support for disputes aggregate (#5896)
Co-authored-by: hyperswitch-bot[bot] <148
Files to modify:


**crates/api_models/src/disputes.rs**
  Add:
    - struct: pub::DisputesAggregateResponse

**crates/api_models/src/events/dispute.rs**
  Add:
    - function: private::get_api_event_type
    - impl: impl ApiEventMetric for DisputesAggregateResponse

**crates/common_enums/src/enums.rs**
  Modify existing code

**crates/router/src/core/disputes.rs**
  Add:
    - function: pub::get_aggregates_for_disputes

**crates/router/src/db/dispute.rs**
  Add:
    - function: private::get_dispute_status_with_count
    - function: private::get_dispute_status_with_count

**crates/router/src/db/kafka_store.rs**
  Add:
    - function: private::get_dispute_status_with_count

**crates/router/src/routes/app.rs**
  Modify existing code

**crates/router/src/routes/disputes.rs**
  Add:
    - function: pub::get_disputes_aggregate
    - function: pub::get_disputes_aggregate_profile

**crates/router/src/routes/lock_utils.rs**
  Modify existing code

**crates/router/src/types/storage/dispute.rs**
  Add:
    - function: private::get_dispute_status_with_count

**crates/router_env/src/logger/types.rs**
  Modify existing code