* fix: resolved an issue with server restart component
* refactor: early return if any mutation fails when initiating server restart
* fix: ensure further attempts go through after a failed reset configs action
---------
Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>
* feat: created a new table to store user PATs
* chore: renamed UserTokens table name to PersonalAccessToken
* chore: added unique property to token column
* chore: made expiresOn field optional
* chore: created access-token module
* feat: created access-token rest routes
* chore: created a new auth guard for PATs
* chore: scaffolded routes in team collection and environments modules for CLI
* chore: created method to update lastUsedOn property for accessTokens
* chore: created interceptor to update lastUsedOn property of PAT
* feat: interceptor to update lastUpdatedOn property complete
* chore: removed unused imports in access-token interceptor
* chore: moved routes to fetch collection and environment into access-token module
* feat: added routes to fetch collections and environments for CLI
* chore: modified access-token interceptor
* chore: removed log statement from interceptor
* chore: added team member checking logic to ForCLI methods in team collection and environments module
* chore: changed return error messages to those defined in spec
* chore: added comments to all service methods
* chore: removed unused imports
* chore: updated testcases for team-environments module service file
* chore: added and updated testcases
* chore: removed unneseccary SQL from auto-generated migration sql for PAT
* chore: remobed JWTAuthGuard from relevant routes in PAT controllers file
* chore: modified token for auth in PATAuthGuard
* chore: changed error codes in some certain service methods in access-token module
* feat: worked on feedback for PR review
* chore: renamed service method in access-token module
* chore: removed console log statements
* chore: modified cli error type
* test: fix broken test case
* chore: changed target of hopp-old-backend to prod
---------
Co-authored-by: mirarifhasan <arif.ishan05@gmail.com>
* feat: lastLoggedOn added in schema and service function
* feat: add lastLoggedOn logic for magic link
* test: update test cases
* feat: add lastLoggedOn in gql model
* fix: nullable allowed in model attribute
* fix: resolve feedback
* feat: user last login interceptor added
Co-authored-by: Dmitry Mukovkin <d.mukovkin@cft.ru>
Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
Co-authored-by: Joel Jacob Stephen <70131076+JoelJacobStephen@users.noreply.github.com>
* chore: installed terminus package and scaffolded the health module
* feat: added healthcheck for database with prisma
* chore: renamed label from prisma to database in health check route
* chore: reverted target of hopp-old-backend service to prod