Update Prisma dependencies and refactor host onboarding handlers

- Updated Prisma client and adapter versions in package.json and package-lock.json.
- Refactored host onboarding handlers to improve structure and naming conventions.
- Added new handlers for onboarding processes including login, signup, and OTP verification.
- Implemented new functionality for managing bank details and company submissions.
- Enhanced error handling and validation across various handlers.
This commit is contained in:
paritosh18
2025-11-26 17:31:08 +05:30
parent a0ed3b9faa
commit abae9d9ac2
20 changed files with 1881 additions and 546 deletions

View File

@@ -17,8 +17,8 @@ getHosts:
path: /host
method: get
verifyOtp:
handler: src/modules/host/handlers/verifyOtp.handler
verifyOTP:
handler: src/modules/host/handlers/Host_Admin/onboarding/verifyOTP.handler
memorySize: 384
package:
patterns:
@@ -33,8 +33,8 @@ verifyOtp:
path: /host/verify-otp
method: post
loginForHost:
handler: src/modules/host/handlers/loginForHost.handler
login:
handler: src/modules/host/handlers/Host_Admin/onboarding/login.handler
memorySize: 384
package:
patterns:
@@ -49,8 +49,8 @@ loginForHost:
path: /host/login
method: post
registrationOfHost:
handler: src/modules/host/handlers/registration.handler
signUp:
handler: src/modules/host/handlers/Host_Admin/onboarding/signUp.handler
memorySize: 384
package:
patterns:
@@ -65,8 +65,8 @@ registrationOfHost:
path: /host/registration
method: post
createPasswordForHost:
handler: src/modules/host/handlers/createPassword.handler
createPassword:
handler: src/modules/host/handlers/Host_Admin/onboarding/createPassword.handler
memorySize: 384
package:
patterns:
@@ -81,8 +81,8 @@ createPasswordForHost:
path: /host/create-password
method: post
addPaymentDetailsForHost:
handler: src/modules/host/handlers/addPaymentDetails.handler
updateBankDetails:
handler: src/modules/host/handlers/Host_Admin/onboarding/updateBankDetails.handler
memorySize: 384
package:
patterns:
@@ -97,8 +97,8 @@ addPaymentDetailsForHost:
path: /host/add-payment-details
method: post
addActivity:
handler: src/modules/host/handlers/addActivity.handler
saveActivity_ForPQQ:
handler: src/modules/host/handlers/Activity_Hub/OnBoarding/saveActivity_ForPQQ.handler
memorySize: 384
package:
patterns:
@@ -129,8 +129,8 @@ getHostById:
path: /host/getById
method: get
getPQQQuestionDetailsById:
handler: src/modules/host/handlers/getByIdPQQ.handler
getPQQ_ByQuestionId:
handler: src/modules/host/handlers/Activity_Hub/OnBoarding/getPQQ_ByQuestionId.handler
memorySize: 384
package:
patterns:
@@ -145,8 +145,8 @@ getPQQQuestionDetailsById:
path: /host/get-pqq-question-details
method: get
getLatestPQQQuestionDetails:
handler: src/modules/host/handlers/getLatestQuestionDetailsPQQ.handler
getPQQ_LastUpdatedQuestion:
handler: src/modules/host/handlers/Activity_Hub/OnBoarding/getPQQ_LastUpdatedQuestion.handler
memorySize: 384
package:
patterns:
@@ -161,8 +161,8 @@ getLatestPQQQuestionDetails:
path: /host/get-latest-pqq-question-details
method: get
getActivityTypes:
handler: src/modules/host/handlers/getActivity.handler
getAllActivity:
handler: src/modules/host/handlers/Activity_Hub/OnBoarding/getAllActivity.handler
memorySize: 384
package:
patterns:
@@ -177,8 +177,8 @@ getActivityTypes:
path: /host/get-activity
method: get
acceptMinglarAgreement:
handler: src/modules/host/handlers/acceptAgreement.handler
acceptAggrement:
handler: src/modules/host/handlers/Host_Admin/onboarding/acceptAggrement.handler
memorySize: 384
package:
patterns:
@@ -212,8 +212,8 @@ getStepperInfo:
method: get
# Functions with S3/AWS SDK dependencies
addCompanyDetails:
handler: src/modules/host/handlers/addCompanyDetails.handler
submitCompanyDetails:
handler: src/modules/host/handlers/Host_Admin/onboarding/submitCompanyDetails.handler
memorySize: 512
timeout: 30
package:
@@ -246,8 +246,8 @@ addCompanyDetails:
path: /host/add-company-details
method: post
submitPqqAnswer:
handler: src/modules/host/handlers/submitPqqAns.handler
submitPQQ_Answer:
handler: src/modules/host/handlers/Activity_Hub/OnBoarding/submitPQQ_Answer.handler
memorySize: 384
package:
patterns:
@@ -262,8 +262,8 @@ submitPqqAnswer:
path: /host/submit-pqq-answer
method: post
submitFinalPqqAnswer:
handler: src/modules/host/handlers/submitPqqAns.handler
updatePQQ_LastAnswer:
handler: src/modules/host/handlers/Activity_Hub/OnBoarding/updatePQQ_Answer.handler
memorySize: 384
package:
patterns: