feat: update DocumentsRepositoryImpl to include mock staff documents with detailed attributes

This commit is contained in:
Achintha Isuru
2026-01-25 10:36:45 -05:00
parent 1ef222febf
commit 0176fd9682

View File

@@ -23,6 +23,31 @@ class DocumentsRepositoryImpl implements DocumentsRepository {
throw Exception('User not authenticated'); throw Exception('User not authenticated');
} }
/// MOCK IMPLEMENTATION
/// To be replaced with real data connect query when available
return [
domain.StaffDocument(
id: 'doc1',
staffId: currentUser.uid,
documentId: 'd1',
name: 'Work Permit',
description: 'Valid work permit document',
status: domain.DocumentStatus.verified,
documentUrl: 'https://example.com/documents/work_permit.pdf',
expiryDate: DateTime.now().add(const Duration(days: 365)),
),
domain.StaffDocument(
id: 'doc2',
staffId: currentUser.uid,
documentId: 'd2',
name: 'Health and Safety Training',
description: 'Certificate of completion for health and safety training',
status: domain.DocumentStatus.pending,
documentUrl: 'https://example.com/documents/health_safety.pdf',
expiryDate: DateTime.now().add(const Duration(days: 180)),
),
];
try { try {
final QueryResult<ListStaffDocumentsByStaffIdData, final QueryResult<ListStaffDocumentsByStaffIdData,
ListStaffDocumentsByStaffIdVariables> result = ListStaffDocumentsByStaffIdVariables> result =