Commit Graph

59 Commits

Author SHA1 Message Date
4772c320ba Enhance HostService and MinglarService to include account manager details and process profile images. Updated getAllHostActivity to retrieve account manager information and generate presigned URLs for media and profile images. Refactored media processing logic for improved clarity and consistency. 2025-12-02 17:53:19 +05:30
6b673a173d Refactor host functions and constants for improved clarity and functionality. Renamed 'getAllActivityType' to 'prePopulateNewActivity' and updated its path. Added 'submitPQQForReview' handler for submitting PQQ for review. Enhanced error handling and response structure in 'submitPQQ_Answer' and 'submitPQQForReview' methods. Updated constants to standardize PQQ-related statuses. Improved S3 file handling logic in various handlers. 2025-12-02 17:24:01 +05:30
3c4b0db39f Merge branch 'sprint1' of http://git.wdipl.com/Mayank.Mishra/MinglarBackendNestJS into mayank 2025-12-02 13:42:27 +05:30
e72c260b18 Add ActivityTrack model to schema and update User and Activities models to include activityTracks relation. Modify seed data to reflect new interest names and activity types. Implement activity reference number generation in HostService for activity creation. 2025-12-02 13:42:14 +05:30
paritosh18
9a777eb3f9 Refactor addOrUpdateCompanyDetails method in HostService to streamline host status handling and improve document management logic for both new and existing companies. 2025-12-02 13:40:41 +05:30
3f921febe0 Refactor host status determination logic in HostService to handle various submission cases, including updates and drafts. Update host suggestion review process to only mark suggestions as reviewed when not in draft state. 2025-12-01 20:25:23 +05:30
f3f0b2a81b Refactor HOST_SUGGESTION_TITLES to comments in minglar.constant.ts, update HostService to filter HostSuggestion by active and reviewed status, and modify addSuggestion handler to remove title validation against HOST_SUGGESTION_TITLES. Enhance MinglarService to include profile image handling and add city, country, and state selections in user queries. 2025-12-01 19:56:21 +05:30
c72e757bf3 Refactor Minglar admin functions: removed deprecated acceptHostApplicationMinglar handler, added editAgreementDetailsAndAccept handler, and updated related service methods for improved agreement processing. Cleaned up schema by removing isSubsidairy field and adjusted file handling logic in submitCompanyDetails. Enhanced suggestion handling by including isParent flag in addSuggestion. Updated host retrieval logic in getStepper. 2025-12-01 17:57:08 +05:30
e5861654e9 Enhance company types management: updated schema to include display order and relationships, modified validation to use company type XID, and seeded initial company types data. Updated services to reflect new structure and ensure proper data handling. 2025-12-01 13:26:06 +05:30
d1eef782a2 fixed the profileimage key 2025-11-29 19:00:50 +05:30
b1a70acfa8 sending the presigned url in getAMDetailById 2025-11-29 16:24:15 +05:30
84c4b1f2b9 sending the userrefNumber in all endpoints 2025-11-29 14:17:31 +05:30
6cac8fb163 sending the profile image in presigned url 2025-11-28 17:47:43 +05:30
6147b0f476 Refactor HostHeader and HostParent models in Prisma schema for consistency and clarity. Update submitCompanyDetails API to improve JSON field normalization and error handling. Enhance host and parent document management with presigned URL generation for S3 uploads. Implement upsert logic for host documents and parent company details, ensuring proper handling of existing records. 2025-11-28 17:20:27 +05:30
71e3f2a933 sending the user details in the getby id of host 2025-11-28 16:02:30 +05:30
80bd926e16 fixed the submit company details api 2025-11-28 15:27:28 +05:30
0cedcec109 Enhance activity status constants and update validation logic in submitCompanyDetails API. Added new statuses for PQQ and improved validation handling for draft submissions. Updated rejectPQQbyAM to reflect new status updates. 2025-11-28 12:07:45 +05:30
9e47d861a2 made the stepper updation in submit company details api 2025-11-28 11:41:35 +05:30
8ccbdc8f32 fixed the submit last pqq question api logic 2025-11-27 20:00:29 +05:30
abe512b0c2 made updateSuggestionAsReviewed lambda api 2025-11-27 19:35:24 +05:30
326ea2f96b added transaction for calculating the pqq final answer score 2025-11-27 19:16:46 +05:30
b0bae33b6e Merge branch 'paritosh' of http://git.wdipl.com/Mayank.Mishra/MinglarBackendNestJS into mayank 2025-11-27 18:56:03 +05:30
030ec9225d updating the status to under review if the pqq overall score is more than 50% 2025-11-27 18:55:25 +05:30
paritosh18
9e0f12117f Refactor host and minglaradmin handlers: update paths, rename functions, and add prepopulateRole handler for role retrieval 2025-11-27 17:26:33 +05:30
paritosh18
dcc0fbbcf6 Merge branch 'mayank' of http://git.wdipl.com/Mayank.Mishra/MinglarBackendNestJS into paritosh 2025-11-27 16:07:33 +05:30
fb392369a5 fixed the path of get score of pqq api 2025-11-27 16:07:20 +05:30
paritosh18
870aaca557 Refactor host and minglaradmin functions: rename handlers, update paths, and add new endpoints for activity and role management 2025-11-27 16:06:57 +05:30
8e25c5c4a2 made get all host applications for minglar admin and get all new host application for minglar admin 2025-11-25 12:02:15 +05:30
917a1f1ee9 made the pre populate of city and bank branch 2025-11-25 09:44:36 +05:30
7056f32e24 made get score api for pqq 2025-11-24 23:19:18 +05:30
2ab046fbd2 fixed minor issues 2025-11-24 19:19:02 +05:30
paritosh18
1c83cc5910 Add addActivity handler and createActivity method in HostService
- Implemented addActivity handler to create new activities with validation.
- Added createActivity method in HostService to handle activity creation logic.
2025-11-22 20:48:45 +05:30
d0fd8e6691 Implement validation for required fields in PQQ handlers and enhance file upload logic in submitPqqAns. Added error handling for missing activity and question IDs, and improved S3 file management with delete functionality for existing files. Updated HostService methods for better file handling and header management. 2025-11-22 20:05:43 +05:30
6d48eeb25b Add new endpoint to retrieve the latest PQQ question details and implement corresponding handler. Update HostService to include method for fetching latest question details with active status filtering. 2025-11-22 19:47:04 +05:30
5e0ba4c8e8 Merge branch 'paritosh' of http://git.wdipl.com/Mayank.Mishra/MinglarBackendNestJS into mayank 2025-11-22 19:31:40 +05:30
1377e0ba9a made the getbyid pqq question details api 2025-11-22 19:30:16 +05:30
paritosh18
d0b2de3f18 Add new endpoints for activity types and frequencies, and implement email notifications for AM assignments 2025-11-22 19:25:07 +05:30
3b1aac921f Add new handlers for accepting and rejecting host applications, including email notifications. Updated serverless configuration with new function timeouts and added missing handlers. Refactored profile update logic to improve file upload handling and added user detail retrieval methods in the Minglar service. 2025-11-22 19:22:34 +05:30
0d858f5411 made getall document country city and replacing the files on s3 when updating the company details sending mail to am or admin 2025-11-22 11:59:48 +05:30
976c9fc686 fixed the display order in PQQ getAll api and fixed the get All admin co admin and am api service 2025-11-22 08:00:59 +05:30
e21ffd08f1 made the presigned url middleware 2025-11-21 14:53:53 +05:30
926ea67e41 fixed code 2025-11-21 13:31:41 +05:30
e366bb4a70 Merge branch 'paritosh' of http://git.wdipl.com/Mayank.Mishra/MinglarBackendNestJS into mayank 2025-11-21 12:11:44 +05:30
2c3b1af754 updating stepper on company details adding 2025-11-21 11:47:29 +05:30
paritosh18
4c17e1b269 Return initial step for non-existent host records instead of throwing an error 2025-11-20 18:37:26 +05:30
13ffee5f7e made submit pqq answer for host api 2025-11-19 16:55:54 +05:30
db65abf693 fixed the add company details api 2025-11-17 19:05:26 +05:30
7ed225a3f0 made get all co admin and am details 2025-11-17 15:28:22 +05:30
8c48db854e fixed the stepper endpoint 2025-11-14 15:15:13 +05:30
43a2a1c2b1 fixed the getbyid host endpoint 2025-11-14 15:04:01 +05:30