api-client/packages/hoppscotch-backend/prisma/migrations
Balu Babu 4bd23a8f4c
feat: adding support for hopp-cli in self-host Hoppscotch (#4079)
* 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>
2024-05-28 16:39:50 +05:30
..
20230406064219_init fix: refactor related to checklist observation (#73) 2023-04-07 22:22:41 +05:30
20231106120154_embeds_addition feat: introduction of shared-requests (#3476) 2023-11-07 17:57:51 +05:30
20231124104640_infra_config HBE-326 feature: server configuration through GraphQL API (#3591) 2023-12-12 16:42:58 +06:00
20231130082054_collection_headers feat: addition of data field into User and Team Collections (#3614) 2023-12-05 20:12:37 +05:30
20240226053141_full_text_search_additions refactor: use trigram search index instead of full text search (#3900) 2024-03-15 20:10:12 +05:30
20240519093155_add_last_logged_on_to_user HSB-445 feature: storing user last login timestamp (#4074) 2024-05-27 21:49:42 +05:30
20240520091033_personal_access_tokens feat: adding support for hopp-cli in self-host Hoppscotch (#4079) 2024-05-28 16:39:50 +05:30
migration_lock.toml fix: refactor related to checklist observation (#73) 2023-04-07 22:22:41 +05:30