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
f12950757c
Merge branch 'main' of git.targo.ca:Targo/targo_backend
2025-12-01 11:39:31 -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
c7f92ed46c
Merge branch 'main' of git.targo.ca:Targo/targo_backend
2025-12-01 11:31:36 -05:00
57dc4eeb66
refactor(preferences): add id to response for easier frontend state management
2025-12-01 11:30:23 -05:00
Matthieu Haineault
50ecd12aa8
feat(migration): autoincrement to external payroll ids
2025-12-01 11:30:06 -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
f499abbb78
fix(userModuleAccess): small return fixes
2025-11-28 10:01:59 -05:00
Matthieu Haineault
42060ad9b4
fix(prefs): small fix
2025-11-27 15:24:03 -05:00
Matthieu Haineault
822763db2b
fix(prefs): small fix
2025-11-27 15:23:19 -05:00
Matthieu Haineault
83804b4008
fix(preferences): modified returns to match needs
2025-11-27 15:22:01 -05:00
Matthieu Haineault
7cddd84e23
fix(preferences): removed user data from update return
2025-11-27 15:13:02 -05:00
Matthieu Haineault
b714a460f0
feat(migration): reset DB to match new schema
2025-11-27 12:24:47 -05:00
Matthieu Haineault
eeaf8daf4a
fix(schema): small fix to userModuleAccess model
2025-11-27 09:28:11 -05:00
Matthieu Haineault
58c550103f
Merge branch 'main' of git.targo.ca:Targo/targo_backend
2025-11-27 08:47:51 -05:00
Matthieu Haineault
e76f2a9a72
feat(preferences): added validation pipes to DTO, commented migration scripts
2025-11-27 08:47:47 -05:00
e7213c62ed
Merge branch 'main' of git.targo.ca:Targo/targo_backend
2025-11-27 08:40:47 -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
7c9f3cda65
feat(preferences): small update on prefrences table
2025-11-26 16:32:56 -05:00
Matthieu Haineault
d7b1bab68f
fix(preferences): minor type fix to dto
2025-11-26 15:33:10 -05:00
Matthieu Haineault
5f7f639c62
feat(preferences): added a getter function and modified schema to use boolean
2025-11-26 15:31:50 -05:00
Matthieu Haineault
439e005936
fix(user_module_access): fix imports and file naming
2025-11-26 15:10:02 -05:00
Matthieu Haineault
26ea84cf1a
feat(user_module_access): created user_module_access model and module. implemented update, revoke and get methods.
2025-11-26 15:05:22 -05:00
Matthieu Haineault
c5c96cce22
feat(schedulePresets): ajusted the create function. added validation of the name and overlaps checking
2025-11-25 16:32:20 -05:00
Matthieu Haineault
35665d49dd
fix(migration): commented extractionOldExpenses from main.ts
2025-11-24 16:42:27 -05:00
Matthieu Haineault
58c4b22f0f
fix(migration): minor fixes and modifications to DB scripts
2025-11-24 16:36:30 -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
fc323a393b
merge
2025-11-24 09:14:06 -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
ddb6fa2ada
feat(pay_periods): added Result Pattern to pay-period module
2025-11-19 10:41:49 -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
3ceb2e0955
refactor(presets): refactor module to use Result Pattern commented to work on plugging error names
2025-11-18 13:49:18 -05:00
Matthieu Haineault
5bfeaaf4de
fix(expenses): small fix update
2025-11-18 08:56:40 -05:00
Matthieu Haineault
2958403f08
fix(expenses): fix date update and make sure the timesheet_id is updated when the date changes week
2025-11-18 08:46:39 -05:00
Matthieu Haineault
194a12d7ab
fix(expenses): fix Prisma query select
2025-11-18 08:24:51 -05:00
Matthieu Haineault
7863a15562
fix(expenses): fixes to prisma create request
2025-11-17 16:04:36 -05:00
Matthieu Haineault
fc88b3a032
fix(expenses): fixes to prisma create request
2025-11-17 15:45:49 -05:00
Matthieu Haineault
db78c70eb0
fix(expenses): fixes to dto
2025-11-17 15:43:18 -05:00
Matthieu Haineault
6e52bdb4e4
fix(expenses): fixes to dto
2025-11-17 15:27:46 -05:00
Matthieu Haineault
e43cb489cf
fix(typing): removed validation on ExpenseDto
2025-11-17 15:05:32 -05:00
Matthieu Haineault
99cb5da69d
fix(imports): small import fix
2025-11-17 14:55:12 -05:00
Matthieu Haineault
7fbcc29b8a
fix(expenses): ajusted return values (added type)
2025-11-17 14:54:10 -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