File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { Project } from './project.api-model' ;
2+ import { mockProject } from './project.mock-data' ;
3+
4+ export const getProjectById = async ( id : string ) : Promise < Project > => {
5+ return mockProject ;
6+ } ;
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ export interface Project {
44 externalId ?: string ;
55 comments ?: string ;
66 isActive : boolean ;
7- emplyees : ProloyeeSummary [ ] ;
7+ emplyees : EmployeeSummary [ ] ;
88}
99
10- export interface ProloyeeSummary {
10+ export interface EmployeeSummary {
1111 id : string ;
1212 isAssigned ?: boolean ;
1313 employeeName : string ;
Original file line number Diff line number Diff line change 1+ import { Project , EmployeeSummary } from './project.api-model' ;
2+
3+ const mockEmployeeSummaryList : EmployeeSummary [ ] = [
4+ {
5+ id : '1' ,
6+ employeeName : 'Daniel Perez' ,
7+ isAssigned : true ,
8+ } ,
9+ {
10+ id : '2' ,
11+ employeeName : 'Jose Sanchez' ,
12+ isAssigned : false ,
13+ } ,
14+ {
15+ id : '3' ,
16+ employeeName : 'Javier Benitez' ,
17+ isAssigned : false ,
18+ } ,
19+ {
20+ id : '4' ,
21+ employeeName : 'María Peña' ,
22+ isAssigned : true ,
23+ } ,
24+ ] ;
25+
26+ export const mockProject : Project = {
27+ id : '1' ,
28+ name : 'Nombre' ,
29+ isActive : true ,
30+ comments : 'Comentario' ,
31+ externalId : '1234' ,
32+ emplyees : mockEmployeeSummaryList ,
33+ } ;
You can’t perform that action at this time.
0 commit comments