feat: Implement full certificate management with upload, upsert, delete, and new domain models for staff certificates and their statuses.

This commit is contained in:
Achintha Isuru
2026-02-26 23:28:59 -05:00
parent ca0ba258e2
commit 425bf19a9b
27 changed files with 1525 additions and 210 deletions

View File

@@ -172,6 +172,9 @@ class StaffPaths {
/// Manage professional certificates (e.g., food handling, CPR, etc.).
static const String certificates = '/worker-main/certificates/';
/// Certificate upload page.
static const String certificateUpload = '/worker-main/certificates/upload/';
// ==========================================================================
// FINANCIAL INFORMATION
// ==========================================================================

View File

@@ -17,6 +17,7 @@ class VerificationService extends BaseCoreService {
required String subjectType,
required String subjectId,
required String fileUri,
String? category,
Map<String, dynamic>? rules,
}) async {
final ApiResponse res = await action(() async {
@@ -27,6 +28,7 @@ class VerificationService extends BaseCoreService {
'subjectType': subjectType,
'subjectId': subjectId,
'fileUri': fileUri,
if (category != null) 'category': category,
if (rules != null) 'rules': rules,
},
);