* chore: added query to export single TeamCollection data
* chore: added query to export single UserCollection data
* chore: fixed typo
* chore: completed requested changes in PR review
* feat: encryption added on onMuduleInit
* feat: encryption changes added on sh admin mutations and query
* chore: fetch minimum column from DB
* feat: data encryption added on account table
* test: infra config test case update
* chore: env example modified
* chore: update variable name
* chore: refactor the code
* feat: client-ids made encrypted
* chore: encrypted auth client id's
---------
Co-authored-by: Balu Babu <balub997@gmail.com>
* feat: added route to delete users in user management api's
* chore: added lastLoggedOn and lastActiveOn fields to user response type
* chore: changed return type
* chore: changed target to prod for hopp-old-backend service
* feat: infra token module added
* feat: infra token guard added
* feat: token prefix removed
* feat: get pending invites api added
* docs: swagger doc added for get user invites api
* feat: delete user invitation api added
* feat: get users api added
* feat: update user api added
* feat: update admin status api added
* feat: create invitation api added
* chore: swagger doc update for create user invite
* feat: interceptor added to track last used on
* feat: change db schema
* chore: readonly tag added
* feat: get user by id api added
* fix: return type of a function
* feat: controller name change
* chore: improve token extractino
* chore: added email validation logic
---------
Co-authored-by: Balu Babu <balub997@gmail.com>
* chore: created new mutation for team-collection duplication
* feat: completed duplication function in TeamCollection module
* feat: user-collection duplication complete
* chore: changed duplicated title suffix for collections
* chore: added return type to argument for duplication mutation in user-collections
* chore: capitalized duplicate in duplicate collection service4 methods
* chore: changed target of hopp-old-backend service to prod
* feat: added new env variable
* feat: made http secure cookie conditional
* chore: added comments to env files
* chore: changed target of hopp-old-backend service to prod
* feat: env variable added in infra-config for smtp enable status
* feat: event emitter added
* feat: added advance mailer configurations from infra config
* test: fix test cases
* feat: added query to see is smtp enabled or not
* feat: email auth provider disabled on smtp disable
* chore: restrict on update directly instead of dedicated mutation
* fix: feedback resolved
* chore: modify mailer module
* chore: error handle in mailer functions
* chore: removed unused imports
* chore: remove event-emit
* chore: update env example
* test: fix broken test cases
* chore: feedback resolved
* chore: isSMTPEnabled moved to infra config resolver
* fix: email can not reenable if smtp not enabled
* feat: userLastActiveOnInterceptor added and update func added in userService
* chore: changed user model parameter description
* chore: commented out docker volume for hopp-old-service
* chore: changed backend to work with secure cookies
---------
Co-authored-by: Balu Babu <balub997@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
* 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
* feat: added new columns into the TeamCollections and UserCollections models
* feat: completed addition of new data field in TeamCollection
* feat: completed addition of new data field in UserCollections
* chore: updated all tests in team-collection module
* chore: added tests for updateTeamCollection method in team-collection module
* chore: refactored all existing testcases in user-collection to reflect new changes
* chore: added new testcases for updateUserCollection method in user-collection module
* chore: made data field optional in team and user collections
* chore: fixed edgecases for data being null
* chore: resolved issue with team-request testcases
* chore: completed changes requested in PR review
* chore: changed target to prod in hoppscotch-old-backend service
* feat: added query in infra to fetch all shortcodes
* feat: added mutation in admin to delete shortcode
* chore: added new tests for methods in shortcode module
* chore: removed .vscode file
* chore: added a new ShortcodeCreator type to output of fetchAllShortcodes query
* chore: shortcodeCreator type is now nullable
* chore: added type defs to fetchAllShortcodes method in admin module
* docs: update code comments
* chore: changed target to prod in hoppscotch-old-backend
---------
Co-authored-by: Mir Arif Hasan <arif.ishan05@gmail.com>
* feat: added new property to existing shortcode model in prisma schema
* chore: created shared-requests module
* chore: created shared-request model
* chore: complete sharedRequest query
* chore: completed mutation to create a SharedRequest
* chore: completed subscription to create a SharedRequest
* chore: completed query to fetch all user created shared-requests
* chore: completed mutation to delete a SharedRequest
* chore: completed subscription to delete a SharedRequest
* chore: removed unused dependncues in share-requests module
* chore: added shared-requests into user deletion spec
* test: added all testcases for shared-request module
* test: modified all relevant tests in shortcode module
* chore: added deprecated label to all queries,mutations and subscriptions in the shortcode module
* chore: resolved all comments raised in review
* feat: added ability to update and listen to updates of shared-requests
* chore: added updatedOn field to shortcode model
* chore: fixed issue with updateSharedRequest method
* chore: fixed incorrect value getting updated
* chore: added all test-cases for updateSharedRequest method
* chore: created migration for shared-requests
* chore: moved shared-requests into shortcode module
* chore: added missing import in shortcode tests
* chore: changed properties to embedProperties in shortcode model
* feat: generated migrations file for new schema changes to Shortcodes table
* chore: changed target of old-backend service in docker-compose file
* chore: fixed issue with updatedOn field in shortcodes model
* chore: removed unused dependencies
* fix: handle invalid input for shortcode properties
* Revert "fix: handle invalid input for shortcode properties"
This reverts commit 4dcb0afb18.
* chore: changed updateShortcode method name to updateEmbedProperties
* chore: changed target of hoppscotch-old-backend service to prod
---------
Co-authored-by: Mir Arif Hasan <arif.ishan05@gmail.com>
* feat: infra type added in admin module
* feat: infra-resolver added in admin module
* feat: feedback resolved
* feat: deprecated tag added in some admin ResolveFields
* build: update pnpm-lock file
* feat: add field in infra type
* feat: admin extends user partially
* feat: admin extends user with omitting some fields
* chore: remove unused imports
* build: conflict resolve in pnpm lock file
* chore: removed rejectOnNotFound property from prisma query in team-enviroment method
* chore: fixed issues with test cases in team-environment module
* chore: changed target of hoppscotch-old-backend service back to prod