TicketService class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createTicket({required String projectID, required String trackerID, required String tenantProductID, required String subject, required String statusID, String? description, String? priorityID, String? assigneeID, DateTime? startDate, DateTime? dueDate, Map<String, dynamic>? customValues, String? audioFilePath, String? audioFieldID})
→ Future<Map<String, dynamic>>
-
Create Ticket with Audio File Support
-
getAllTickets({required String projectID, required String tenantProductID, List<String>? trackerIDs})
→ Future<Map<String, dynamic>>
-
Fetch all tickets with employee profiles (for employer home screen)
-
getMyInterestedTickets({required String projectID, required String tenantProductID, int limit = 30, int offset = 0})
→ Future<Map<String, dynamic>>
-
-
getProjectTickets({required String projectID, required String tenantProductID, Map<String, dynamic>? filters})
→ Future<Map<String, dynamic>>
-
Fetch project tickets
-
getProjectTrackers({required String tenantProductID, required String projectID})
→ Future<Map<String, dynamic>>
-
Fetch all trackers from backend
-
getTrackerCustomFields({required String trackerID, required String tenantProductID, required String projectID, String? customFieldID})
→ Future<Map<String, dynamic>>
-
Fetch custom fields dynamically based on tracker
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateTicket({required String ticketID, required String projectID, required String tenantProductID, Map<String, dynamic>? customValues, String? subject, String? description, String? statusID, String? priorityID, String? assigneeID, int? doneRatio})
→ Future<Map<String, dynamic>>
-
Update existing ticket (basic - no file upload)
-
updateTicketWithMultipleLicenses({required String ticketID, required int numberOfPeople, required List<File> licenseFiles, required String employeeFieldID, required String licenseFieldID})
→ Future<Map<String, dynamic>>
-
Update ticket with MULTIPLE driving license files
PUBLIC method - called by JobService
-
updateTicketWithSingleLicense({required String ticketID, required int numberOfPeople, required File licenseFile, required String employeeFieldID, required String licenseFieldID})
→ Future<Map<String, dynamic>>
-
Update ticket with SINGLE driving license file
PUBLIC method - called by JobService