* 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: 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
* 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
* refactor: removed unused files, dependencies and added valid callback URL
* chore: update env example
* test: fixed issue with subscription on deleteUserCollection in UserCollection module
* test: fixed time related issue with auth service methods
* chore: removed unused dependencies in auth.service file
---------
Co-authored-by: Mir Arif Hasan <arif.ishan05@gmail.com>
Co-authored-by: Balu Babu <balub997@gmail.com>
* fix: if-condition for getCollectionOfRequest func
* fix: all test cases for team request module
* fix: user collection test case
* fix: team module test case
* refactor: updated test description for last implemented changes in admin and removed commented code
---------
Co-authored-by: ankitsridhar16 <ankit.sridhar16@gmail.com>
* feat: created exportUserCollectionsToJSON mutation for UserCollection module
* chore: added comments to export functions
* chore: added type and user ownership checking to creation methods
* chore: replaced request property with spread request object instead
* chore: completed all changes requested in inital review of PR
* chore: explicitly exporting request title in export function
* chore: explicitly exporting request title in export function
* chore: added codegen folder to gitignore
* chore: removed gql-code gen file from repo
* chore: removed firebase module as a dependency from team-collection module
* chore: modified team-collection resolver file to use input-args types
* chore: modified getTeamOfCollection service method and resolver
* chore: modified getParentOfCollection service method in team-collection module
* chore: modified getChildrenOfCollection service method in team-collection module
* chore: added new fields to TeamCollection model in prisma schema file
* chore: modified getCollection service method and resolver in team-collection module
* chore: modified createCollection service method and resolver in team-collection module
* chore: created cast helper function to resolve issue with creation mutation in team-collection
* chore: modified teamCollectionRemoved subscription return types
* chore: removed return types from subscriptions in team-collection module
* chore: removed all instances of getTeamCollections service method in team-collection module
* feat: added mutation to handle moving collections and supporting subscriptions
* feat: added mutation to re-ordering team-collection order
* chore: added teacher comments to both collection modules
* test: added test cases for getTeamOfCollection service method
* test: added test cases for getParentOfCollection service method
* test: added test cases for getChildrenOfCollection service method
* test: added test cases for getTeamRootCollections service method
* test: added test cases for getCollection service method
* test: added test cases for createCollection service method
* chore: renamed renameCollection to renameUserCollection in UserCollection module
* test: added test cases for renameCollection service method
* test: added test cases for deleteCollection service method
* test: added test cases for moveCollection service method
* test: added test cases for updateCollectionOrder service method
* chore: added import and export to JSON mutations to team-collection module
* chore: created replaceCollectionsWithJSON mutation in team-collection module
* chore: moved the mutation and service method of importCollectionFromFirestore to the end of file
* chore: added helper comments to all import,export functions
* chore: exportCollectionsToJSON service method orders collections and requests in ascending order
* chore: added test cases for importCollectionsFromJSON service method
* chore: added ToDo to write test cases for exportCollectionsToJSON
* chore: removed prisma migration folder
* chore: completed all changes requested in inital PR review
* chore: completed all changes requested in second PR review
* chore: completed all changes requested in third PR review
* feat: team module added
* feat: teamEnvironment module added
* feat: teamCollection module added
* feat: team request module added
* feat: team invitation module added
* feat: selfhost auth frontend (#15)
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
* feat: bringing shortcodes from central to selfhost
* chore: added review changes in resolver
* chore: commented out subscriptions
* chore: bump backend prettier version
* feat: created new user-collections module with base files
* feat: added new models for user-collection and user-request tables in schema.prisma file
* feat: mutations to create user-collections complete
* feat: added user field resolver for userCollections
* feat: added parent field resolver for userCollections
* feat: added child field resolver with pagination for userCollections
* feat: added query to fetch root user-collections with pagination for userCollections
* feat: added query to fetch user-collections for userCollections
* feat: added mutation to rename user-collections
* feat: added mutation to delete user-collections
* feat: added mutation to delete user-collections
* refactor: changed the way we fetch root and child user-collection counts for other operations
* feat: added mutation to move user-collections between root and other child collections
* refactor: abstracted orderIndex update logic into helpert function
* chore: mutation to update order root user-collections complete
* feat: user-collections order can be updated when moving it to the end of list
* feat: user-collections order update feature complete
* feat: subscriptions for user-collection module complete
* chore: removed all console.logs from user-collection.service file
* test: added tests for all field resolvers for user-collection module
* test: test cases for getUserCollection is complete
* test: test cases for getUserRootCollections is complete
* test: test cases for createUserCollection is complete
* test: test cases for renameCollection is complete
* test: test cases for moveUserCollection is complete
* test: test cases for updateUserCollectionOrder is complete
* chore: added createdOn and updatedOn fields to userCollections and userRequests schema
* chore: created function to check if title are of valid size
* refactor: simplified user-collection creation code
* chore: made changed requested in initial PR review
* chore: added requestType enum to user-collections
* refactor: created two seperate queries to fetch root REST or GQL queries
* chore: created seperate mutations and queries for REST and GQL root/child collections
* chore: migrated all input args classess into a single file
* chore: modified createUserCollection service method to work with different creation inputs args type
* chore: rewrote all test cases for user-collections service methods with new CollType
* fix: added updated and deleted subscription changes
* fix: made all the changes requested in the initial PR review
* fix: made all the changes requested in the second PR review
* chore: removed migrations from prisma directory
* fix: made all the changes requested in the third PR review
* chore: added collection type checking to updateUserCollectionOrder service method
* chore: refactored all test cases to reflect new additions to service methods
* chore: fixed issues with pnpm-lock
* chore: removed migrations from prisma directory
* chore: hopefully fixed pnpm-lock issues
* chore: removed console logs in auth controller
---------
Co-authored-by: Mir Arif Hasan <arif.ishan05@gmail.com>
Co-authored-by: Akash K <57758277+amk-dev@users.noreply.github.com>
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
Co-authored-by: ankitsridhar16 <ankit.sridhar16@gmail.com>