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
5 changes: 5 additions & 0 deletions apps/customer-portal/backend/modules/entity/enums.bal
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,8 @@ public enum TimeCardState {
public enum StatsFilter {
ME = "me"
}

# Valid product class values.
public enum ProductClass {
PRODUCT_MODEL = "product_model"
}
11 changes: 11 additions & 0 deletions apps/customer-portal/backend/modules/entity/types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,8 @@ public type CallRequestSearchPayload record {|
public type CallRequest record {|
# ID
IdString id;
# Number of the call request
string number;
# Associated case information
ReferenceTableItem case;
# Reason for the call request
Expand All @@ -1436,6 +1438,8 @@ public type CallRequest record {|
int durationMin;
# Scheduled time for the call
string? scheduleTime;
# Meeting link for the scheduled call
string? meetingLink;
# Created date and time
string createdOn;
# Updated date and time
Expand Down Expand Up @@ -1567,6 +1571,11 @@ public type UpdatedDeployment record {|

# Request payload for searching products.
public type ProductSearchPayload record {|
# Filter criteria
record {|
# Product class to filter by
ProductClass 'class?;
|} filters?;
# Pagination details
Pagination pagination?;
|};
Expand All @@ -1577,6 +1586,8 @@ public type Product record {|
IdString id;
# Name
string name;
# Product class (Product Model)
string 'class;
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 @@ -987,6 +987,8 @@ public type CallRequestSearchPayload record {|
public type CallRequest record {|
# ID
string id;
# Number of the call request
string number;
# Associated case information
ReferenceItem case;
# Reason for the call request
Expand All @@ -997,6 +999,8 @@ public type CallRequest record {|
int durationMin;
# Scheduled time for the call
string? scheduleTime;
# Meeting link for the scheduled call
string? meetingLink;
# Created date and time
string createdOn;
# Updated date and time
Expand Down
8 changes: 4 additions & 4 deletions apps/customer-portal/backend/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2840,10 +2840,6 @@ components:
description: New preferred UTC times for the call
items:
$ref: '#/components/schemas/DateTime'
durationInMinutes:
type: integer
description: New duration in minutes for the call
format: int64
additionalProperties: false
description: Request payload for updating a call request.
Case:
Expand Down Expand Up @@ -4329,6 +4325,7 @@ components:
description: Pagination information.
Product:
required:
- class
- id
- name
type: object
Expand All @@ -4338,6 +4335,9 @@ components:
name:
type: string
description: Name
class:
type: string
description: "Product class (product_model)"
description: Product data.
ProductUpdate:
required:
Expand Down
4 changes: 3 additions & 1 deletion apps/customer-portal/backend/utils.bal
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,9 @@ public isolated function mapSearchCallRequestResponse(entity:CallRequestsRespons
createdOn: callRequest.createdOn,
updatedOn: callRequest.updatedOn,
case: {id: case.id, label: case.name},
state: {id: state.id.toString(), label: state.label}
state: {id: state.id.toString(), label: state.label},
number: callRequest.number,
meetingLink: callRequest.meetingLink
};

return {callRequests, totalRecords: response.totalRecords, 'limit: response.'limit, offset: response.offset};
Expand Down