All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
2.6.1 (2024-10-02)
- fix custom claims user role mapping either flat or object userRole (308c538)
2.6.0 (2024-08-21)
- Add TemplateModule to app.module.ts (312c7ff)
2.5.0 (2024-07-22)
- Add phone verified and alter password fields in users (331f8ff)
- add POST /send-signup-otp-email endpoint (2f6171a)
- add POST /send-signup-otp-phone endpoint (6df564b)
- add sign-up otp email e2e test with auth notification sign-up template (8f6d6fb)
- add sign-up otp phone e2e test with auth notification sign-up template (6da1ce7)
- add sign-up-otp-phone and email endpoint (d9f1895)
- add signup otp templates (7257d2a)
- Drop user identifier constraint and add with phone number and country code in PostgreSQL migrations (b01d153)
- lint, format and fix duplicate roles mapping (36bc244)
2.4.2 (2024-07-05)
- fix for token custom claims (7f3a73a)
2.4.1 (2024-06-12)
2.4.0 (2024-05-30)
- Add LoginPhoneOtpProfile for mapping LoginOtpPhoneRequest (c982f88)
- Add RefreshTokenResponse to refresh token controller (8092428)
- add send login otp phone controller and its tests. (f875c63)
- create sendgrid email provider (72e752b)
- Remove LoginOtpPhoneRequest from LoginProfile (e606817)
- change send login otp phone request to adapt phone dto. (c8d1105)
- create migration to make country code and phone number to be unique together. (0a522dd)
- edit jest.setup (e110788)
- edit jest.setup.ts (239e1f0)
- fixed typo in filename. (d669005)
- unused import (9d1e7b6)
2.3.0 (2024-05-27)
- Generate random OTP result when sending OTP (f4b8322)
- Remove unused import in otp.service.ts (3db4e8e)
2.2.0 (2024-05-27)
- Add fake OTP result for user not found (f0a598f)
- Add fake OTP result for user not found (430ce04)
- Add faker library for generating fake OTP results (3fcbab6)
- Add faker library for generating fake OTP results (736fed4)
- Fix error handling in SendLoginOtpEmailController (4a8579d)
- Fix error handling in SendLoginOtpEmailController (618be7a)
- Handle invalid credentials in SendLoginOtpEmailController (3b5f639)
- Handle invalid credentials in SendLoginOtpEmailController (971eb4e)
- Refactor error classes to extend ExtendedError (3163c54)
- Refactor OTP service to support phone OTPs and create
createPhoneOtpAsync
method (7c704c2) - Refactor SendLoginOtpEmailController to handle user not found scenario (b9d1e68)
- Refactor SendLoginOtpEmailController to handle user not found scenario (fbe1e9c)
- Remove duplicate import in otp.service.ts (7cbef3e)
- Remove unused imports in otp.service.spec.ts (0cb982c)
2.1.0 (2024-05-24)
- Add login OTP SMS template and service method (543eedc)
- Add MutluCell SMS service configuration (d1a6a24)
- add MutluCellSmsService implementation (3813021)
- add otp value generator (4ff36c0)
- add phone number and country code to users table. (357bebe)
- Add phone number and country code validation to getUserAsync method (7830eb1)
- Add phone OTP created event (cc39ad4)
- add sms service (ac89f52)
- create custom validation pipe and its tests. (b4d64e9)
- expire otp function is added to otp service and used in login otp email controller. (46a6d34)
- Improve error message in getUserAsync method (4b582b7)
- refactor create otp function to work with phone channel and create createPhoneOtpAsync method. (057716d)
- Refactor getUserAsync method to include all user arguments (9f010f4)
- edit validation error fields message. (3f762c6)
- fix test case in controller login otp email. (3aa0410)
- fix typo in field name phoneNumber. (0987b38)
- fix validation error extention test case. (c58d108)
- remove html files and add folder to gitignore. (a998bba)
- remove unused import. (134ea58)
2.0.1 (2024-05-21)
- Add NotificationModule to app.module.ts (6d325f3)
2.0.0 (2024-05-20)
- changes error responses and some controller succesful reponses.
- add forgot-password endpoint (80cabe4)
- create an event handler reset-password-request-created event in notification service. (9e2e162)
- create createEmailOtpAsync method in otp service (c7ee986)
- create login otp email controller (fb38a2f)
- create notification module (08fbafa)
- create otp email template (43c6fe1)
- create otp module (4971dc3)
- create otps tables (59d206c)
- create smtp email provider (6460343)
- create-reset-password-request: add reset password env to .env.example (2af2aae)
- create-reset-password-request: createResetPasswordRequest function in reset-password service. (eb4897d)
- created response classes. (cc34c41)
- Refactor reset password controller and service (d5a02af)
- update configurations files (3c2efe5)
- update template service (512080a)
- VILLB-6: add unit test for controller. (be4e985)
- VILLB-6: create send login otp email controller and test cases. (42779da)
- VILLB-6: fix minor sonar issue (5009cd6)
- VILLB-6: make controller response snake case. (9cc6523)
- VILLB-6: removed otpvalue from response, refactored event emitter call, removed EventEmitter module import from login module decl. (4facaa1)
-
Add ActiveResetPasswordRequestExistsError class (3301176)
-
add foreign key constraints to User and Role in UserRole entity (c93ecaa)
-
add NOW() update for reset_password request expires_at before setting NOT NULL constraint (fc067a5)
-
create-reset-password-request: rename function and add expires at check to getActiveResetPasswordRequestByEmail. (9e08b1c)
-
fix for nullable constraint for expires_at column in user-reset-password-request entity (2b48072)
-
fix typo in function name. (b338694)
-
make the smtp secured. (b9ac3d7)
-
make the smtp secured. (427c7ce)
-
update reset password error handling (3f8b6ad)
-
VILLB-6: change controller and controller spec file name, change test case descriptions, change variable names. (0a236c2)
-
refactor responses. (ff9f98d)
1.14.4 (2024-04-26)
- fix e2e test for remove jest mock (3ab1953)
- fix for app module test (3de7e09)
- fixed password validation. (daac595)
1.14.3 (2024-01-23)
1.14.2 (2024-01-23)
1.14.1 (2024-01-22)
- fix subject issue for MailService.sendEmail (9727b68)
1.14.0 (2024-01-05)
- Add basePath configuration to support API versioning (8865d8c)
1.13.1 (2024-01-04)
- Update user-reset-password-request entity and migrations (fec87e8)
1.13.0 (2024-01-04)
- TS-209: add send reset password email request (f0f8ac0)
- dynamic email service environment value for e2e tests (911c722)
- format project (3c87cb9)
- mock config() in reset-password.module.spec.ts (126deec)
- remove unnecessary type for sonar issue (4148eca)
- TS-209: fix for app module test (4306812)
- TS-252: fix app module test (38fb66b)
- TS-252: fix for app and reset password test (f9ddcb6)
1.12.0 (2023-12-25)
- add user module ref in PluginModule (28b25d3)
- plugin module integrated (8fd1d38)
- TS-187: create refresh-token module (920a27c)
- TS-204: add template module tests. (d8e8845)
- TS-204: add template plugin to read me. (615ec30)
- TS-204: add test case for html. (b730b46)
- TS-204: injectData now only compiles mjml template and getResetPasswordEmailTemplate now only return html. (1a76495)
- TS-204: made service editable via plugin and inject data now accepts html. (1ee8612)
- TS-204: template service and getResetPasswordEmail method. (1375c78)
- TS-241: implemented createRefreshTokenAsync func. (8aa4158)
- TS-253: update refresh token method (3236a52)
- fix for migrations (b48fff2)
- TS-204: add property to ts-config esModuleInterop (27887f0)
- TS-204: change mjml import to require. (ba08884)
- TS-204: created dto for reset password email data. (170b7c4)
- TS-204: edit test case to make into coverage. (c6766a9)
- TS-204: made template service test working. (d5e336c)
- TS-204: made templates folder to go into dist. (81ca7a1)
- TS-204: refactored template service. (f57a32b)
- TS-204: remove getResetPasswordEmail, (670d35b)
- TS-204: removed code smell. (f076609)
- TS-204: removed code smell. (584b2ce)
- TS-204: removed unused import. (306bc47)
- TS-204: rename private method. (19b2110)
- TS-241: covered all lines for tests. (7ec9881)
- TS-241: rafactor function names also in test cases. (7d48821)
- TS-241: refactor function and variable names. (029cc68)
- TS-274: validateResetPasswordRequest function name (3243f2e)
- type (073b557)
1.11.1 (2023-11-13)
1.11.0 (2023-11-13)
- TS-205: add reset-password.mjml template (099d695)
- fix for conflict (5872e1d)
- fix for conflict (ddd547d)
- fix for conflict (e6fb7b8)
- fix for conflict file (e1f15dc)
- fix for package-lock.json (8a063b9)
- fix for reset password convert number to string for user_id (556b34b)
- TS-205: edit reset button href link (41b03e3)
1.10.0 (2023-10-30)
- email service: create aws email service, base email service (7d37977)
- TS-200: add email module (199ce9b)
- TS-212: add expire old reset requests trigger migration (75647c4)
- TS-213: add reset-password endpoint (b3e3bb4)
- TSV-30: update register user importer interface (f708a82)
- add aws config (52cdf14)
- add aws ses client to package json (bb7aab6)
- aws config, move abstract to domain folder, fix test for new config provider (7ad85bb)
- cleanup (d6a7833)
- fix email module (6b713cc)
- move aws service to providers (7d805b6)
- move env.s to docs, clean imports (8609885)
- sonar warnings (9ef3f68)
- TS-206: fix for migration name (14d4bc7)
- TS-206: fix for migration name (b2059a4)
- TS-206: random string function remove and add generate_reset_password_key function migration (bae64c0)
- TS-213: fix for reset password e2e test (e594d01)
- TS-213: fix reset password fixture path (846bc38)
- typo (fb674a5)
1.9.0 (2023-10-19)
- add profile picture column in user table (53a1080)
- TS-206: add users_reset_password_requests table as a migration (26dcd2f)
- TS-8, TS-10: the validateUser method should be customizable through plugins (1ba0026)
- TSV-26, TSV-29: appData property has been added to the SignUpDto and variable names in the auth controller have been updated. (621d253)
- TSV-30: the createUser method should be customizable through plugins (5f8da60)
- update addCustomClaim method in token service (89c1905)
- updated role column as "text" (76acd18)
1.8.1 (2023-09-04)
- fixed migrations. (9f40965)
1.8.0 (2023-08-07)
- SHBD-619: add the default role feature to the user registration (564f171)
- token expiration time has been moved to env (381f09c)
- Update README.md (ca31904)
1.7.2 (2023-06-15)
- fix for migration (20429ad)
1.7.1 (2023-06-15)
- fix for users roles model (2943533)
1.7.0 (2023-06-14)
- create cors config (5ddc206)
- fix for users roles model (a0a1216)
1.6.0 (2023-06-08)
- SHBD-637: add first_name and last_name in UserCustomClaimsImporter (bc5564d)
1.5.1 (2023-06-07)
1.5.0 (2023-06-06)
- create api key guard (13d93bc)
- SHBD-358: create hasura claims plugin. (eae0d90)
- SHBD-358: token service is defined as global (7e1fcda)
- SHBD-358: user information and role information were associated (7eb1506)
1.4.3 (2023-04-29)
- fix for data source (aa7e158)
1.4.2 (2023-04-28)
- fix for data source (c6eb26c)
1.4.1 (2023-04-28)
1.4.0 (2023-04-28)
- update data source (c25d5a8)
1.3.6 (2023-04-28)
1.3.5 (2023-04-28)
1.3.4 (2023-04-28)
1.3.3 (2023-04-28)
1.3.2 (2023-04-28)
1.3.1 (2023-04-28)
- fix for npm publish action (ca706d3)
1.3.0 (2023-04-28)
- add module tests (2348392)
- add swagger value for login and signup services (41175e5)
- SHBD-357, SHBD-356: add login and signup implement with test (df1bc56)
- fix bcrypt mock for test and e2e test to fixture variable (db7fdd5)
- fix for auth and user test mock jest (b9e288d)
- fix for auth e2e test (f9c50bb)
- fix for data source config (a5a9516)
- fix for dto transfer with automapper (c566a94)
- fix for e2e test (30bd4c0)
- fix for tests mock convert to fixture (6bf7c7f)
- fix for user service getUser method (ed0b2a9)
- remove bcrypt dependencies in testing. (be9e0a7)
1.2.1 (2023-04-25)
1.2.0 (2023-04-25)
- SHBD-302: add readme (c5d2a56)
- SHBD-309: add user service in auth module providers (0d38948)
- SHBD-309: add UserService for TokenService to providers. (caa8de9)
- SHBD-309: add validateUser in user service and auth controller (1e1df94)
- SHBD-354: Add validation for LoginDto (55f74cf)
- SHBD-355: Add sign up validation and tests (1ffe3f2)
- SHBD-365: Add Swagger (236c348)
- typeorm integration and create user tables (1188f6a)
- fix for auth controller creating module tests (08d5218)
- fix for data source config (286b8cc)
- fix for user entity (abdf1bc)
- Injected UserService. (af1dd48)
- SHBD-309: fix auth controller (2840f76)
- SHBD-309: fix token module providers (ddd7b8a)
- SHBD-309: remove token and user service in app module (42b7ad3)
- SHBD-315: fix auth controller (01ea49e)
- SHBD-315: remove auth service and test (0ccc902)
- SHBD-315: remove TokenService in app module (fd4b7a2)
- SHBD-354: fix for get password matches from config env (ea2e8fb)
- SHBD-354: fix validation code smells (f13289c)
- SHBD-365: Fix swagger integration and environment-based swagger config (f4e208e)
- SHBD-365: update swagger tittle and description (e86daf3)
- update main.ts for swagger enable and .env.example for new variable (4932bb4)
- update swagger enable control and readme.md (b8b9abf)