Commit Graph

36 Commits

Author SHA1 Message Date
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
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
Matthieu Haineault
cdf7dac6a3 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-11-24 14:59:24 -05:00
Matthieu Haineault
5452641f19 feat(migration): added a split prismaModule to manage legacy DB, created scripts to fetch old data, transform to match the new structure and creates new items in the new DB 2025-11-24 14:59:16 -05:00
6d1ac6c634 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-11-24 09:12:55 -05:00
7912695b8f fix(payperiods): refactor general overview method to return all employee overviews. 2025-11-24 09:02:31 -05:00
Matthieu Haineault
48f1220a4e clean(modules): cleaned unused dto files and added validation. Changed error messages to match i18n 2025-11-18 14:55:42 -05:00
Matthieu Haineault
194a12d7ab fix(expenses): fix Prisma query select 2025-11-18 08:24:51 -05:00
Matthieu Haineault
6936ac39fa refactor(leave-requests): refactor the logic of the module leave-requests and modified naming in timesheet GET function 2025-11-17 14:13:38 -05:00
Matthieu Haineault
8c816da286 cleaning(): more cleaning and imports ajustements 2025-11-14 09:39:15 -05:00
Matthieu Haineault
8df3becbb5 clean(modules): clean module imports and clean utils files 2025-11-13 15:30:29 -05:00
Matthieu Haineault
1d9eaeab30 feat(Result): ajusted return values to match Result pattern. 2025-11-12 09:16:37 -05:00
Matthieu Haineault
383a01639a feat(Result): added the result pattern to handle errors at any level. Ajusted modules 2025-11-11 14:51:50 -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
6adb614931 refactor(shifts): modified return and switched bank_code_id for types 2025-11-04 08:31:38 -05:00
Matthieu Haineault
f9931f99c8 feat(validationPipe): Global Exception Filter basic setup using APP_FILTER and APP_PIPE 2025-09-11 16:48:05 -04:00
Matthieu Haineault
93cf2d571b feat(timesheet): added getTimesheetByEmail 2025-09-02 14:29:00 -04:00
Matthieu Haineault
3c8c999bfe feat(approval): selected approval by bulk for pay-period using crew view. renamed variables to use snake_case 2025-08-20 15:33:17 -04:00
Matthieu Haineault
7a9adeec69 refactor(module): refactor employees, archives and pay-period to use email instead of id and switch pay-period's requests to transaction 2025-08-19 08:34:35 -04:00
Matthieu Haineault
91ef6685b4 Merge branch 'main' of git.targo.ca:Targo/targo_backend into dev/setup/modules/MatthieuH 2025-08-08 14:48:44 -04:00
Matthieu Haineault
1e4ec836d3 fix(notify): fixes and setup notify for daily overtime 2025-08-08 14:47:47 -04:00
f4c69c4620 fix(merge): conflicts resolved 2025-08-08 13:44:24 -04:00
a27276f3ae fix(guards)clean up superfluous files in auth module. Remove wrong guard from controllers in other modules. Needs to be role guard and not auth guard. 2025-08-08 13:40:12 -04:00
Matthieu Haineault
44da99e7c1 feat(module): search and filter querries for shifts, expenses, timesheets, leave-requests 2025-08-07 09:11:50 -04:00
Matthieu Haineault
c23da925e7 feat(approval): clean up Approval services. creation of a "shared" folder 2025-08-06 14:17:52 -04:00
Matthieu Haineault
50c3bca11b feat(utils): added date-utils.ts and refactor services to use it 2025-08-05 11:39:34 -04:00
75910e377d feat(Oauth2): implement full Oauth2 authentication handshake with Authentik IdP. Authorization (authentik-auth.service) is disconnected for now. 2025-07-24 16:22:26 -04:00
ab8587e769 Merge branch 'main' of git.targo.ca:Targo/targo_backend into origin/dev/setup/AuthMiddleware/NicolasD
pulling updated backend additions from MatthieuH
2025-07-18 15:09:35 -04:00
Matthieu Haineault
cc567b2b26 feat(Roles): role guards et setup ownship(not implemented, yet) 2025-07-18 10:20:52 -04:00
58287dcac3 build(authentication): Add Authentik strategy, import new passport oidc module, add swagger desc for roles guard, remove index for auth modules 2025-07-17 17:06:43 -04:00
Matthieu Haineault
4f91412404 fix(setup): fix 2025-07-16 09:05:49 -04:00
Matthieu Haineault
bff8fdf178 feat(jwt): roleguards et jwt auth 2025-07-16 08:00:41 -04:00