838189ae1f
fix(employee) change dto so that module access is typesafe, modify update route to exclude session email
2025-12-03 16:59:03 -05:00
Matthieu Haineault
fb0187c117
feat(employees): ajusted employees module, added an update method and route
2025-12-02 12:57:49 -05:00
Matthieu Haineault
0180fa3fdd
Merge branch 'main' of git.targo.ca:Targo/targo_backend
2025-12-02 09:17:30 -05:00
Matthieu Haineault
68477c17b7
fix(controller): added ModuleAccess tag
2025-12-02 09:17:25 -05:00
e6c949e40b
fix(modules): moduleguards properly compare user_module_access to module_list, rather than user_roles to module_list
...
Optimize toStringFromBoolean mmethod to immediately return an array of Module strings rather than an object of string-string objects that needs to be filtered and manipulated further.
2025-12-02 09:06:08 -05:00
Matthieu Haineault
ebc1cd77d8
refactor(controllers): added ModuleAccessAllowed and Access decorators
2025-12-01 16:03:48 -05:00
Matthieu Haineault
0f509a920f
fix(employees): added optional employee_email to findDetailedProfile
2025-12-01 15:17:19 -05:00
Matthieu Haineault
6b0763f277
refactor(module_access): changed the dto to use string instead of boolean for module_access and made a mapper to switch between boolean and string.
2025-12-01 14:44:25 -05:00
Matthieu Haineault
1afd74b0e5
fix(employees): small return fix
2025-12-01 12:37:46 -05:00
Matthieu Haineault
c155df14da
fix(employees): added phone, adress and 1st work day to findOwnProfil function
2025-12-01 11:39:27 -05:00
Matthieu Haineault
98180dd16b
refactor(employees): adapted logics to match new userModuleAccess and cleaned module of unused methods
2025-12-01 11:28:42 -05:00
Matthieu Haineault
ddb469cd8e
feat(decorator): create a new Access decorator and added external_payroll_id to findEmployee
2025-12-01 08:34:08 -05:00
5a28630c21
refactor(employees): added functionality to take an optional employee email to retrieve profile data
2025-11-27 08:40:41 -05:00
Matthieu Haineault
1589df979f
clean(): file cleaning
2025-11-14 09:35:05 -05:00
Matthieu Haineault
8df3becbb5
clean(modules): clean module imports and clean utils files
2025-11-13 15:30:29 -05:00
Matthieu Haineault
e067e15bb1
fix(timesheets): added type to expense in return
2025-11-12 13:30:51 -05:00
Matthieu Haineault
809209533a
fix(employee): setting up the profil section
2025-11-06 14:00:19 -05:00
Matthieu Haineault
c0189dc61d
fix(shifts): rework update and create to match ShiftEntity
2025-11-06 11:04:55 -05:00
Matthieu Haineault
1a0532846f
feat(role-guards): added role-guards group and added role check to controllers
2025-11-05 14:27:54 -05:00
Matthieu Haineault
02ebb23d7a
refactor(employees): uncomment module and comment archival parts(needs refactoring)
2025-11-05 08:36:24 -05:00
Matthieu Haineault
6c44bb5ad2
refactor(modules): moved some module to change the structure to domain oriented
2025-10-27 09:50:22 -04:00
Matthieu Haineault
1289aed720
reafactor(time-and-attendance): organized files and folders and centralize module files
2025-10-24 16:38:18 -04:00