201 Commits

Author SHA1 Message Date
0abdbab627
feat(services): add getById and delete methods in mysql.service.ts
The changes introduce two new methods in mysql.service.ts. The getById method retrieves a category from the database using its ID while the delete method will delete a category from the database using the provided category ID. Both methods return promises.

Issue: #6
Signed-off-by: Mathis <yidhra@tuta.io>
2024-04-25 12:52:42 +02:00
3328c5a1df
feat(services): add getById function to mysql.service
This commit adds a getById function to the mysql.service.ts file. The added functionality allows retrieving category data from the mysql database by id. Error handling has been included for undefined or invalid id cases.

Issue: #6
Signed-off-by: Mathis <yidhra@tuta.io>
2024-04-25 12:30:32 +02:00
ead64291df
feat(services): add getBySlug method to MysqlService and refine getAll method
Added a new method getBySlug to retrieve a category by its slug in mysql.service.ts. Also, updated the getAll method by specifying the return type to Promise<Array<IDbCategory>> for better type checking.

Issue: #6
Signed-off-by: Mathis <yidhra@tuta.io>
2024-04-25 12:27:25 +02:00
25b573d3a4
feat(others): enhance VCS XML with commit message inspection tools
This commit augments the VCS XML with "CommitMessageInspectionProfile". It enables two inspection tools: "CommitFormat" and "CommitNamingConvention", meant to enforce commit standards and conventions within the project. These tools will raise a warning when they detect a violation.

Signed-off-by: Mathis <yidhra@tuta.io>
2024-04-25 12:20:31 +02:00
02383b8c8a
feat(services): add getAll function to mysql service
This commit adds a new `getAll` function in the `mysql.service.ts` file, which retrieves all categories from the database. It executes a SQL query and includes error handling that either resolves with an array of category objects or rejects with an Error object.

BREAKING-CHANGE: #6
Signed-off-by: Mathis <yidhra@tuta.io>
2024-04-25 12:18:33 +02:00
2210280edd
feat(services): update return types and add documentation in mysql service
The return types for the 'insert' and 'update' methods in mysql.service.ts have been updated to 'Promise<unknown>'. Also, detailed JSDoc comments have been added for 'insert' and 'update' methods for both User and Category entities. No functionality changes have been made.

Signed-off-by: Mathis <yidhra@tuta.io>
2024-04-25 12:11:17 +02:00
47adae9137
feat: Update MySQL service for category operations
This update introduces changes in the 'mysql.service.ts' to allow create and update operations for categories. The 'INSERT INTO' SQL query has been adjusted from targeting `users` to `categories`. An `update` function has also been added to allow updates in category data. The import order has been rearranged for better readability.

Signed-off-by: Mathis <yidhra@tuta.io>
2024-04-25 12:01:02 +02:00
ef83ad18a4
feat(services): Db - category insert method
#6
2024-04-25 11:37:09 +02:00
adbecfa435
style(services): 🎨 Db 2024-04-25 11:36:20 +02:00
896b01f8b4
update 2024-04-24 16:57:09 +02:00
03d10ca675
fix(services): 🚑 User - multiple corrections on call of services 2024-04-24 16:56:55 +02:00
fa93b24ccc
build: 🐛 export renaming 2024-04-24 16:56:05 +02:00
95dd3f36bf
others... 2024-04-24 16:55:37 +02:00
6a54dd0afa
feat(services): Db - partial insert method for 'model' 2024-04-24 16:55:15 +02:00
956a6ca7af
build: 🐛 dependency fix 2024-04-24 16:54:22 +02:00
e995aaa970
refactor(interfaces): ♻️ Db - models 2024-04-24 16:53:49 +02:00
1ed1f018e8
fix(controllers): 🐛 auth - variables name change 2024-04-24 16:39:21 +02:00
ccee786c2f
feat(services): 🎉 db - models getters interaction
#7
2024-04-24 15:07:45 +02:00
69fae2b780
feat(services): db - user interaction
#4
2024-04-24 15:04:44 +02:00
1f984f4392
fix(services): 🐛 CredentialService missing namespace 2024-04-23 16:39:03 +02:00
3fe395cccf
feat(interfaces): Db - Vehicle 2024-04-23 16:38:13 +02:00
fb493db236
feat(interfaces): Db - User 2024-04-23 16:37:38 +02:00
9cc6ce1275
feat(interfaces): Db - Rent 2024-04-23 16:37:12 +02:00
032ecc764a
feat(interfaces): Db - Model 2024-04-23 16:36:10 +02:00
88113f1035
refactor(interfaces): ♻️ Db - Category 2024-04-23 16:35:40 +02:00
0697e330b4
feat(interfaces): Db - Brand 2024-04-23 16:34:58 +02:00
88d57f3b4c
feat(interfaces): Db - Category 2024-04-23 16:18:26 +02:00
2a33f45257
feat(services): 🚀 UserService 2024-04-23 15:13:23 +02:00
742330d6fe
refactor(services): 🏗️ var name change
#9
2024-04-23 15:12:41 +02:00
71c20c8a06
fix(services): 🐛 types on return value 2024-04-23 15:11:52 +02:00
3b41cf1c5a
feat(routes): 🚀 add controllers call on routes 2024-04-23 15:11:14 +02:00
b48b34e4e5
feat(interfaces): IReqEditUserData 2024-04-23 15:10:37 +02:00
750e36e363
refactor: AuthController
#9
2024-04-23 15:09:26 +02:00
5130e0a248
feat: 🎉 AuthController
#9
2024-04-23 14:58:49 +02:00
72d310ccfa
build: packages 2024-04-23 13:54:18 +02:00
cf548890fc
build: 🔧 tsconfig 2024-04-23 13:51:59 +02:00
580a4a4320
build: 🔧 biomejs config 2024-04-23 13:51:13 +02:00
2cb9c142c4
feat: 🥚 .env 2024-04-23 13:50:41 +02:00
92e0fd2a68
chore: gitignore 2024-04-23 13:48:21 +02:00
17cccc0c9f
fix: ✏️ Jwt type import 2024-04-23 13:47:40 +02:00
9f8582c412
feat: 🎉 App endpoint 2024-04-23 13:46:13 +02:00
ad0f30876e
feat: MySQL Service 2024-04-23 13:44:58 +02:00
db40b772f1
feat: 🚀 Jwt Service 2024-04-23 13:44:13 +02:00
ddd9a2fef4
build: 🔧 JetBrains config 2024-04-23 13:43:33 +02:00
c12439d1ed
feat: DbUserData interface 2024-04-23 13:42:55 +02:00
d6cfef2a62
feat: credential service
#8
2024-04-23 12:26:51 +02:00
a8c41b2268
feat: AdminGuard
#10
2024-04-23 12:00:52 +02:00
0a3d943ca3
feat: UserGuard
#10
2024-04-23 12:00:14 +02:00
c334b3954f
refactor: 🚀 update routes
#10
2024-04-23 11:58:28 +02:00
df9efc759c
feat: routes for auth, rent and catalog
#10
2024-04-23 11:17:38 +02:00