Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/customer-portal/backend/modules/entity/types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,8 @@ public type ProjectCaseStatsResponse record {|
int activeCount;
# Outstanding case count (cases that are not solution proposed or closed)
int outstandingCount;
# Action required from customer case count
int actionRequiredCount;
# Average response time
decimal averageResponseTime;
# Resolved case count breakdown
Expand Down Expand Up @@ -2132,6 +2134,8 @@ public type ProjectChangeRequestStatsResponse record {|
int activeCount;
# Outstanding change request count
int outstandingCount;
# Action required from customer change request count
int actionRequiredCount;
# Count of change requests by state
ChoiceListItem[] stateCount;
json...;
Expand Down
4 changes: 4 additions & 0 deletions apps/customer-portal/backend/modules/types/types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ public type ProjectCaseStats record {|
int activeCount;
# Outstanding case count (cases that are not solution proposed or closed)
int outstandingCount;
# Action required from customer case count
int actionRequiredCount;
# Average response time
decimal averageResponseTime;
# Resolved case count breakdown
Expand Down Expand Up @@ -1516,6 +1518,8 @@ public type ProjectChangeRequestStatsResponse record {|
int activeCount;
# Outstanding change request count
int outstandingCount;
# Action required from customer change request count
int actionRequiredCount;
# Count of change requests by state
ReferenceItem[] stateCount;
|};
Expand Down
10 changes: 10 additions & 0 deletions apps/customer-portal/backend/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4731,6 +4731,7 @@ components:
format: int64
ProjectCaseStats:
required:
- actionRequiredCount
- activeCount
- averageResponseTime
- caseTypeCount
Expand Down Expand Up @@ -4759,6 +4760,10 @@ components:
description: Outstanding case count (cases that are not solution proposed
or closed)
format: int64
actionRequiredCount:
type: integer
description: Action required from customer case count
format: int64
averageResponseTime:
type: number
description: Average response time
Expand Down Expand Up @@ -4837,6 +4842,7 @@ components:
description: Case statistics for a project.
ProjectChangeRequestStatsResponse:
required:
- actionRequiredCount
- activeCount
- outstandingCount
- stateCount
Expand All @@ -4856,6 +4862,10 @@ components:
type: integer
description: Outstanding change request count
format: int64
actionRequiredCount:
type: integer
description: Action required from customer change request count
format: int64
stateCount:
type: array
description: Count of change requests by state
Expand Down
2 changes: 2 additions & 0 deletions apps/customer-portal/backend/utils.bal
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ public isolated function mapCaseStats(entity:ProjectCaseStatsResponse response)
changeRate: response.changeRate,
activeCount: response.activeCount,
outstandingCount: response.outstandingCount,
actionRequiredCount: response.actionRequiredCount,
stateCount,
severityCount,
outstandingSeverityCount,
Expand Down Expand Up @@ -868,6 +869,7 @@ public isolated function mapProjectChangeRequestStatsResponse(entity:ProjectChan
totalCount: response.totalCount,
activeCount: response.activeCount,
outstandingCount: response.outstandingCount,
actionRequiredCount: response.actionRequiredCount,
stateCount
};
}
Expand Down