@kipicore/dbcore 1.1.19 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.sequelizerc +13 -0
- package/dist/.sequelizerc +13 -0
- package/dist/configs/aws.js +4 -4
- package/dist/configs/index.d.ts +2 -0
- package/dist/configs/index.js +18 -0
- package/dist/constants/app.js +13 -13
- package/dist/constants/index.d.ts +5 -0
- package/dist/constants/index.js +21 -0
- package/dist/constants/successMessages.d.ts +1 -1
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.js +18 -0
- package/dist/helpers/s3Uploader.d.ts +1 -1
- package/dist/helpers/s3Uploader.js +6 -6
- package/dist/helpers/utils.d.ts +3 -3
- package/dist/helpers/utils.js +4 -4
- package/dist/index.d.ts +17 -419
- package/dist/index.js +30 -755
- package/dist/interfaces/academicCalendarInterface.d.ts +2 -2
- package/dist/interfaces/accountHasReceiptDetailsInterface.d.ts +1 -1
- package/dist/interfaces/announcementInterface.d.ts +2 -2
- package/dist/interfaces/approvalRequestInterface.d.ts +2 -2
- package/dist/interfaces/attendanceInterface.d.ts +2 -2
- package/dist/interfaces/bankAccountDetailsInterface.d.ts +2 -2
- package/dist/interfaces/bannerInterface.d.ts +2 -2
- package/dist/interfaces/batchInterface.d.ts +2 -2
- package/dist/interfaces/batchSubjectBookAssessmentInterface.d.ts +1 -1
- package/dist/interfaces/batchSubjectProjectAssessmentInterface.d.ts +1 -1
- package/dist/interfaces/blogInterface.d.ts +2 -2
- package/dist/interfaces/bookAssessmentDateInterface.d.ts +2 -2
- package/dist/interfaces/careerInterface.d.ts +2 -2
- package/dist/interfaces/categoriesInterface.d.ts +2 -2
- package/dist/interfaces/certificatesHistoryInterface.d.ts +1 -1
- package/dist/interfaces/certificatesManagementInterface.d.ts +2 -2
- package/dist/interfaces/cityInterface.d.ts +1 -1
- package/dist/interfaces/classRoomInterface.d.ts +2 -2
- package/dist/interfaces/cloudStorageInterface.d.ts +2 -2
- package/dist/interfaces/coinPurchaseOfferInterface.d.ts +2 -2
- package/dist/interfaces/columnInterface.d.ts +2 -2
- package/dist/interfaces/contactFeedBackInterface.d.ts +2 -2
- package/dist/interfaces/countryInterface.d.ts +1 -1
- package/dist/interfaces/courseHasVisitorsInterface.d.ts +1 -1
- package/dist/interfaces/courseInterface.d.ts +2 -2
- package/dist/interfaces/dailyBookInterface.d.ts +1 -1
- package/dist/interfaces/dashboardManagementInterface.d.ts +2 -2
- package/dist/interfaces/driverInterface.d.ts +2 -2
- package/dist/interfaces/entityGroupInterface.d.ts +2 -2
- package/dist/interfaces/eventInterface.d.ts +2 -2
- package/dist/interfaces/examGroupInterface.d.ts +3 -3
- package/dist/interfaces/examHasAnswerSheetInterface.d.ts +2 -2
- package/dist/interfaces/examInterface.d.ts +2 -2
- package/dist/interfaces/facilityInterface.d.ts +2 -2
- package/dist/interfaces/featureActionInterface.d.ts +2 -2
- package/dist/interfaces/feeHistoryDetailsInterface.d.ts +2 -2
- package/dist/interfaces/feeHistoryInterface.d.ts +2 -2
- package/dist/interfaces/feeReminderInterface.d.ts +1 -1
- package/dist/interfaces/feeReminderSettingInterface.d.ts +2 -2
- package/dist/interfaces/feeReminderTypeInterface.d.ts +2 -2
- package/dist/interfaces/feeTypeHasTermsInterface.d.ts +2 -2
- package/dist/interfaces/feeTypeInterface.d.ts +2 -2
- package/dist/interfaces/feedBackInterface.d.ts +2 -2
- package/dist/interfaces/feesCollectionInterface.d.ts +2 -2
- package/dist/interfaces/fileStorageInterface.d.ts +2 -2
- package/dist/interfaces/floorManagementInterface.d.ts +2 -2
- package/dist/interfaces/generateIdCardInterface.d.ts +1 -1
- package/dist/interfaces/greetingsInterface.d.ts +2 -2
- package/dist/interfaces/holidayInterface.d.ts +2 -2
- package/dist/interfaces/homeworkInterface.d.ts +2 -2
- package/dist/interfaces/index.d.ts +137 -0
- package/dist/interfaces/index.js +153 -0
- package/dist/interfaces/informationSupportInterface.d.ts +2 -2
- package/dist/interfaces/inquiryInterface.d.ts +3 -3
- package/dist/interfaces/instituteEntityInterface.d.ts +2 -2
- package/dist/interfaces/instituteEntityTypeInterface.d.ts +2 -2
- package/dist/interfaces/instituteInterface.d.ts +2 -2
- package/dist/interfaces/instituteSubscriptionPlanInterface.d.ts +2 -2
- package/dist/interfaces/inventoryHistoryInterface.d.ts +2 -2
- package/dist/interfaces/inventoryInterface.d.ts +2 -2
- package/dist/interfaces/invoiceInterface.d.ts +2 -2
- package/dist/interfaces/jobApplyInterface.d.ts +2 -2
- package/dist/interfaces/lectureHistoryInterface.d.ts +2 -2
- package/dist/interfaces/lectureInterface.d.ts +2 -2
- package/dist/interfaces/masterLeaveInterface.d.ts +2 -2
- package/dist/interfaces/moduleFeatureInterface.d.ts +2 -2
- package/dist/interfaces/moduleInterface.d.ts +2 -2
- package/dist/interfaces/offersInterface.d.ts +2 -2
- package/dist/interfaces/paymentTermsInterface.d.ts +2 -2
- package/dist/interfaces/pdcChequeInterface.d.ts +2 -2
- package/dist/interfaces/pdcHistoryInterface.d.ts +2 -2
- package/dist/interfaces/photosGalleryInterface.d.ts +2 -2
- package/dist/interfaces/pincodeInterface.d.ts +1 -1
- package/dist/interfaces/plannerInterface.d.ts +2 -2
- package/dist/interfaces/productInterface.d.ts +2 -2
- package/dist/interfaces/projectAssessmentOptionInterface.d.ts +1 -1
- package/dist/interfaces/replaceTeacherInterface.d.ts +2 -2
- package/dist/interfaces/roleInterface.d.ts +4 -4
- package/dist/interfaces/rulesRegulationInterface.d.ts +2 -2
- package/dist/interfaces/schoolFeeCollectionInterface.d.ts +1 -1
- package/dist/interfaces/schoolFeeInterface.d.ts +2 -2
- package/dist/interfaces/schoolOfferInterface.d.ts +2 -2
- package/dist/interfaces/sendNotificationInerface.d.ts +2 -2
- package/dist/interfaces/slotInterface.d.ts +2 -2
- package/dist/interfaces/stateInterface.d.ts +1 -1
- package/dist/interfaces/subCategoriesInterface.d.ts +2 -2
- package/dist/interfaces/subjectHasFeeInterface.d.ts +1 -1
- package/dist/interfaces/subjectHasPayFeeHistoryInterface.d.ts +1 -1
- package/dist/interfaces/subjectIndexInterface.d.ts +2 -2
- package/dist/interfaces/subscriptionPlanInterface.d.ts +2 -2
- package/dist/interfaces/syllabusInterface.d.ts +2 -2
- package/dist/interfaces/taskManagementInterface.d.ts +2 -2
- package/dist/interfaces/testimonialInterface.d.ts +2 -2
- package/dist/interfaces/toDoInterface.d.ts +2 -2
- package/dist/interfaces/tokenInterface.d.ts +2 -2
- package/dist/interfaces/tripInterface.d.ts +2 -2
- package/dist/interfaces/typeManagementInterface.d.ts +2 -2
- package/dist/interfaces/uniqueNumberCounterInterface.d.ts +2 -2
- package/dist/interfaces/userBookAssessmentInterface.d.ts +2 -2
- package/dist/interfaces/userDetailsInterface.d.ts +2 -2
- package/dist/interfaces/userFeeTypeByAccountInterface.d.ts +2 -2
- package/dist/interfaces/userFeeTypeInterface.d.ts +2 -2
- package/dist/interfaces/userHasAnnouncementInterface.d.ts +2 -2
- package/dist/interfaces/userHasBatchInterface.d.ts +1 -1
- package/dist/interfaces/userHasCourseInterface.d.ts +2 -2
- package/dist/interfaces/userHasDeviceInterface.d.ts +2 -2
- package/dist/interfaces/userHasFeeTermsInterface.d.ts +2 -2
- package/dist/interfaces/userHasFileInterface.d.ts +2 -2
- package/dist/interfaces/userHasHomeWorkInterface.d.ts +2 -2
- package/dist/interfaces/userHasInventoryHistoryInterface.d.ts +2 -2
- package/dist/interfaces/userHasInventoryInterface.d.ts +2 -2
- package/dist/interfaces/userHasLeaveHistoryInterface.d.ts +2 -2
- package/dist/interfaces/userHasLeaveInterface.d.ts +2 -2
- package/dist/interfaces/userHasOfferInterface.d.ts +1 -1
- package/dist/interfaces/userHasParentInterface.d.ts +2 -2
- package/dist/interfaces/userHasRoleInterface.d.ts +2 -2
- package/dist/interfaces/userHasRollNumberInterface.d.ts +1 -1
- package/dist/interfaces/userHasStorageInterface.d.ts +2 -2
- package/dist/interfaces/userHasSubjectFeeInterface.d.ts +1 -1
- package/dist/interfaces/userInstituteMetaInterface.d.ts +2 -2
- package/dist/interfaces/userInterface.d.ts +2 -2
- package/dist/interfaces/userLeaveRequestInterface.d.ts +2 -2
- package/dist/interfaces/userMetaInterface.d.ts +2 -2
- package/dist/interfaces/userPayoutDetailsInterface.d.ts +2 -2
- package/dist/interfaces/userPayoutHistoryInterface.d.ts +2 -2
- package/dist/interfaces/userPayoutInterface.d.ts +2 -2
- package/dist/interfaces/userProjectAssessmentOptionInterface.d.ts +2 -2
- package/dist/interfaces/userRequiredStepsInterface.d.ts +2 -2
- package/dist/interfaces/userSchoolMetaInterface.d.ts +2 -2
- package/dist/interfaces/vehicleInterface.d.ts +2 -2
- package/dist/interfaces/vendorManagementInterface.d.ts +2 -2
- package/dist/interfaces/videoAnalystInterface.d.ts +1 -1
- package/dist/interfaces/walletHistoryInterface.d.ts +2 -2
- package/dist/interfaces/walletInterface.d.ts +2 -2
- package/dist/interfaces/walletTransactionInterface.d.ts +3 -3
- package/dist/interfaces/workingDayInterface.d.ts +2 -2
- package/dist/interfaces/workingShiftInterface.d.ts +2 -2
- package/dist/models/mongodb/approvalRequestModel.d.ts +1 -1
- package/dist/models/mongodb/approvalRequestModel.js +4 -4
- package/dist/models/mongodb/attendanceModel.d.ts +1 -1
- package/dist/models/mongodb/attendanceModel.js +23 -23
- package/dist/models/mongodb/blogModel.d.ts +1 -1
- package/dist/models/mongodb/blogModel.js +3 -3
- package/dist/models/mongodb/careerModel.d.ts +1 -1
- package/dist/models/mongodb/careerModel.js +3 -3
- package/dist/models/mongodb/certificatesHistoryModel.d.ts +1 -1
- package/dist/models/mongodb/certificatesManagementModel.d.ts +1 -1
- package/dist/models/mongodb/certificatesManagementModel.js +3 -3
- package/dist/models/mongodb/columnModel.d.ts +1 -1
- package/dist/models/mongodb/columnModel.js +5 -5
- package/dist/models/mongodb/dailyBookModel.d.ts +1 -1
- package/dist/models/mongodb/dashboardManagementModel.d.ts +1 -1
- package/dist/models/mongodb/dashboardManagementModel.js +6 -6
- package/dist/models/mongodb/eventModel.d.ts +1 -1
- package/dist/models/mongodb/eventModel.js +15 -15
- package/dist/models/mongodb/examGroupModel.d.ts +1 -1
- package/dist/models/mongodb/examGroupModel.js +18 -18
- package/dist/models/mongodb/examHasAnswerSheetModel.d.ts +1 -1
- package/dist/models/mongodb/examHasAnswerSheetModel.js +12 -12
- package/dist/models/mongodb/examModel.d.ts +1 -1
- package/dist/models/mongodb/examModel.js +28 -28
- package/dist/models/mongodb/feeReminderTypeModel.d.ts +1 -1
- package/dist/models/mongodb/feeReminderTypeModel.js +3 -3
- package/dist/models/mongodb/feedBackModel.d.ts +1 -1
- package/dist/models/mongodb/feedBackModel.js +3 -3
- package/dist/models/mongodb/generateIdCardModel.d.ts +1 -1
- package/dist/models/mongodb/holidayModel.d.ts +1 -1
- package/dist/models/mongodb/holidayModel.js +15 -15
- package/dist/models/mongodb/index.d.ts +36 -2
- package/dist/models/mongodb/index.js +60 -10
- package/dist/models/mongodb/informationSupportModel.d.ts +1 -1
- package/dist/models/mongodb/informationSupportModel.js +2 -2
- package/dist/models/mongodb/inquiryModel.d.ts +1 -1
- package/dist/models/mongodb/inquiryModel.js +18 -18
- package/dist/models/mongodb/invoiceModel.d.ts +1 -1
- package/dist/models/mongodb/invoiceModel.js +7 -7
- package/dist/models/mongodb/jobApplyModel.d.ts +1 -1
- package/dist/models/mongodb/jobApplyModel.js +7 -7
- package/dist/models/mongodb/photosGalleryModel.d.ts +1 -1
- package/dist/models/mongodb/photosGalleryModel.js +6 -6
- package/dist/models/mongodb/plannerModel.d.ts +1 -1
- package/dist/models/mongodb/plannerModel.js +3 -3
- package/dist/models/mongodb/replaceTeacherModel.d.ts +1 -1
- package/dist/models/mongodb/replaceTeacherModel.js +6 -6
- package/dist/models/mongodb/schoolFeeModel.d.ts +1 -1
- package/dist/models/mongodb/schoolFeeModel.js +12 -12
- package/dist/models/mongodb/subjectIndexModel.d.ts +1 -1
- package/dist/models/mongodb/subjectIndexModel.js +88 -88
- package/dist/models/mongodb/subscriptionPlanModel.d.ts +1 -1
- package/dist/models/mongodb/subscriptionPlanModel.js +6 -6
- package/dist/models/mongodb/taskManagementModel.d.ts +1 -1
- package/dist/models/mongodb/taskManagementModel.js +10 -10
- package/dist/models/mongodb/uniqueNumberCounterModel.d.ts +1 -1
- package/dist/models/mongodb/uniqueNumberCounterModel.js +3 -3
- package/dist/models/mongodb/userDetailsModel.d.ts +1 -1
- package/dist/models/mongodb/userDetailsModel.js +19 -19
- package/dist/models/mongodb/userInstituteMetaModel.d.ts +1 -1
- package/dist/models/mongodb/userInstituteMetaModel.js +14 -14
- package/dist/models/mongodb/userSchoolMetaModel.d.ts +1 -1
- package/dist/models/mongodb/userSchoolMetaModel.js +30 -30
- package/dist/models/mongodb/videoAnalystModel.d.ts +1 -1
- package/dist/models/mongodb/walletTransactionModel.d.ts +1 -1
- package/dist/models/mongodb/walletTransactionModel.js +12 -12
- package/dist/models/psql/SubCategoriesModel.d.ts +3 -3
- package/dist/models/psql/SubCategoriesModel.js +14 -14
- package/dist/models/psql/academicCalendarModel.d.ts +3 -3
- package/dist/models/psql/academicCalendarModel.js +13 -13
- package/dist/models/psql/accountHasReceiptDetailsModel.d.ts +2 -2
- package/dist/models/psql/accountHasReceiptDetailsModel.js +15 -15
- package/dist/models/psql/announcementModel.d.ts +3 -3
- package/dist/models/psql/announcementModel.js +30 -30
- package/dist/models/psql/areaModel.d.ts +2 -2
- package/dist/models/psql/areaModel.js +5 -5
- package/dist/models/psql/bankAccountDetailsModel.d.ts +3 -3
- package/dist/models/psql/bankAccountDetailsModel.js +16 -16
- package/dist/models/psql/bannerModel.d.ts +3 -3
- package/dist/models/psql/bannerModel.js +20 -20
- package/dist/models/psql/batchModel.d.ts +3 -3
- package/dist/models/psql/batchModel.js +27 -27
- package/dist/models/psql/batchSubjectBookAssessmentModel.d.ts +2 -2
- package/dist/models/psql/batchSubjectBookAssessmentModel.js +20 -20
- package/dist/models/psql/batchSubjectProjectAssessmentModel.d.ts +2 -2
- package/dist/models/psql/batchSubjectProjectAssessmentModel.js +17 -17
- package/dist/models/psql/bookAssessmentDateModel.d.ts +3 -3
- package/dist/models/psql/bookAssessmentDateModel.js +12 -12
- package/dist/models/psql/categoriesModel.d.ts +3 -3
- package/dist/models/psql/categoriesModel.js +11 -11
- package/dist/models/psql/cityModel.d.ts +1 -1
- package/dist/models/psql/cityModel.js +8 -8
- package/dist/models/psql/classRoomModel.d.ts +3 -3
- package/dist/models/psql/classRoomModel.js +18 -18
- package/dist/models/psql/cloudStorageModel.d.ts +3 -3
- package/dist/models/psql/cloudStorageModel.js +10 -10
- package/dist/models/psql/coinPurchaseOfferModel.d.ts +3 -3
- package/dist/models/psql/coinPurchaseOfferModel.js +10 -10
- package/dist/models/psql/contactFeedBackModel.d.ts +3 -3
- package/dist/models/psql/contactFeedBackModel.js +16 -16
- package/dist/models/psql/countryModel.d.ts +1 -1
- package/dist/models/psql/countryModel.js +2 -2
- package/dist/models/psql/courseHasVisitorsModel.d.ts +2 -2
- package/dist/models/psql/courseHasVisitorsModel.js +9 -9
- package/dist/models/psql/courseModel.d.ts +3 -3
- package/dist/models/psql/courseModel.js +18 -18
- package/dist/models/psql/driverModel.d.ts +3 -3
- package/dist/models/psql/driverModel.js +25 -25
- package/dist/models/psql/entityGroupModel.d.ts +3 -3
- package/dist/models/psql/entityGroupModel.js +12 -12
- package/dist/models/psql/facilityModel.d.ts +3 -3
- package/dist/models/psql/facilityModel.js +20 -20
- package/dist/models/psql/featureActionModel.d.ts +3 -3
- package/dist/models/psql/featureActionModel.js +10 -10
- package/dist/models/psql/feeHistoryDetailsModel.d.ts +3 -3
- package/dist/models/psql/feeHistoryDetailsModel.js +23 -23
- package/dist/models/psql/feeHistoryModel.d.ts +3 -3
- package/dist/models/psql/feeHistoryModel.js +49 -49
- package/dist/models/psql/feeReminderModel.d.ts +2 -2
- package/dist/models/psql/feeReminderModel.js +41 -41
- package/dist/models/psql/feeReminderSettingModel.d.ts +3 -3
- package/dist/models/psql/feeReminderSettingModel.js +14 -14
- package/dist/models/psql/feeTypeHasTermsModel.d.ts +3 -3
- package/dist/models/psql/feeTypeHasTermsModel.js +14 -14
- package/dist/models/psql/feeTypeModel.d.ts +3 -3
- package/dist/models/psql/feeTypeModel.js +24 -24
- package/dist/models/psql/feesCollectionModel.d.ts +3 -3
- package/dist/models/psql/feesCollectionModel.js +30 -30
- package/dist/models/psql/fileStorageModel.d.ts +2 -2
- package/dist/models/psql/fileStorageModel.js +8 -8
- package/dist/models/psql/floorManagementModel.d.ts +3 -3
- package/dist/models/psql/floorManagementModel.js +11 -11
- package/dist/models/psql/greetingsModel.d.ts +3 -3
- package/dist/models/psql/greetingsModel.js +17 -17
- package/dist/models/psql/homeWorkModel.d.ts +3 -3
- package/dist/models/psql/homeWorkModel.js +18 -18
- package/dist/models/psql/index.js +2 -2
- package/dist/models/psql/instituteEntityModel.d.ts +3 -3
- package/dist/models/psql/instituteEntityModel.js +14 -14
- package/dist/models/psql/instituteEntityTypeModel.d.ts +3 -3
- package/dist/models/psql/instituteEntityTypeModel.js +10 -10
- package/dist/models/psql/instituteModel.d.ts +3 -3
- package/dist/models/psql/instituteModel.js +30 -30
- package/dist/models/psql/instituteSubscriptionPlanModel.d.ts +3 -3
- package/dist/models/psql/instituteSubscriptionPlanModel.js +16 -16
- package/dist/models/psql/inventoryHistoryModel.d.ts +3 -3
- package/dist/models/psql/inventoryHistoryModel.js +20 -20
- package/dist/models/psql/inventoryModel.d.ts +3 -3
- package/dist/models/psql/inventoryModel.js +16 -16
- package/dist/models/psql/lectureHistoryModel.d.ts +3 -3
- package/dist/models/psql/lectureHistoryModel.js +33 -33
- package/dist/models/psql/lectureModel.d.ts +3 -3
- package/dist/models/psql/lectureModel.js +74 -74
- package/dist/models/psql/masterLeaveModel.d.ts +3 -3
- package/dist/models/psql/masterLeaveModel.js +23 -23
- package/dist/models/psql/modelIndex.d.ts +101 -0
- package/dist/models/psql/modelIndex.js +117 -0
- package/dist/models/psql/moduleFeatureModel.d.ts +3 -3
- package/dist/models/psql/moduleFeatureModel.js +12 -12
- package/dist/models/psql/moduleModel.d.ts +3 -3
- package/dist/models/psql/moduleModel.js +14 -14
- package/dist/models/psql/offerModel.d.ts +3 -3
- package/dist/models/psql/offerModel.js +16 -16
- package/dist/models/psql/paymentTermsModel.d.ts +2 -2
- package/dist/models/psql/paymentTermsModel.js +15 -15
- package/dist/models/psql/pdcChequeModel.d.ts +3 -3
- package/dist/models/psql/pdcChequeModel.js +19 -19
- package/dist/models/psql/pdcHistoryModel.d.ts +3 -3
- package/dist/models/psql/pdcHistoryModel.js +22 -22
- package/dist/models/psql/pincodeModel.d.ts +1 -1
- package/dist/models/psql/pincodeModel.js +8 -8
- package/dist/models/psql/productModel.d.ts +3 -3
- package/dist/models/psql/productModel.js +17 -17
- package/dist/models/psql/projectAssessmentOptionModel.d.ts +2 -2
- package/dist/models/psql/projectAssessmentOptionModel.js +9 -9
- package/dist/models/psql/roleModel.d.ts +3 -3
- package/dist/models/psql/roleModel.js +9 -9
- package/dist/models/psql/rulesRegulationModel.d.ts +3 -3
- package/dist/models/psql/rulesRegulationModel.js +8 -8
- package/dist/models/psql/schoolFeeCollectionModel.d.ts +2 -2
- package/dist/models/psql/schoolFeeCollectionModel.js +14 -14
- package/dist/models/psql/schoolOfferModel.d.ts +3 -3
- package/dist/models/psql/schoolOfferModel.js +18 -18
- package/dist/models/psql/sendNotificationModel.d.ts +3 -3
- package/dist/models/psql/sendNotificationModel.js +14 -14
- package/dist/models/psql/slotModel.d.ts +3 -3
- package/dist/models/psql/slotModel.js +14 -14
- package/dist/models/psql/stateModel.d.ts +1 -1
- package/dist/models/psql/stateModel.js +5 -5
- package/dist/models/psql/subjectHasFeeModel.d.ts +2 -2
- package/dist/models/psql/subjectHasFeeModel.js +12 -12
- package/dist/models/psql/subjectHasPayFeeHistoryModel.d.ts +2 -2
- package/dist/models/psql/subjectHasPayFeeHistoryModel.js +17 -17
- package/dist/models/psql/syllabusModel.d.ts +3 -3
- package/dist/models/psql/syllabusModel.js +17 -17
- package/dist/models/psql/testimonialModel.d.ts +3 -3
- package/dist/models/psql/testimonialModel.js +31 -31
- package/dist/models/psql/toDoModel.d.ts +3 -3
- package/dist/models/psql/toDoModel.js +19 -19
- package/dist/models/psql/tokenModel.d.ts +2 -2
- package/dist/models/psql/tokenModel.js +2 -2
- package/dist/models/psql/tripModel.d.ts +3 -3
- package/dist/models/psql/tripModel.js +16 -16
- package/dist/models/psql/typeManagementModel.d.ts +3 -3
- package/dist/models/psql/typeManagementModel.js +16 -16
- package/dist/models/psql/userBookAssessmentModel.d.ts +3 -3
- package/dist/models/psql/userBookAssessmentModel.js +20 -20
- package/dist/models/psql/userFeeTypeByAccountModel.d.ts +2 -2
- package/dist/models/psql/userFeeTypeByAccountModel.js +22 -22
- package/dist/models/psql/userFeeTypeModel.d.ts +3 -3
- package/dist/models/psql/userFeeTypeModel.js +23 -23
- package/dist/models/psql/userHasAnnouncementModel.d.ts +3 -3
- package/dist/models/psql/userHasAnnouncementModel.js +17 -17
- package/dist/models/psql/userHasBatchModel.d.ts +2 -2
- package/dist/models/psql/userHasBatchModel.js +11 -11
- package/dist/models/psql/userHasCourseModel.d.ts +3 -3
- package/dist/models/psql/userHasCourseModel.js +17 -17
- package/dist/models/psql/userHasDeviceModel.d.ts +3 -3
- package/dist/models/psql/userHasDeviceModel.js +11 -11
- package/dist/models/psql/userHasFeeTermsModel.d.ts +3 -3
- package/dist/models/psql/userHasFeeTermsModel.js +23 -23
- package/dist/models/psql/userHasFileModel.d.ts +2 -2
- package/dist/models/psql/userHasFileModel.js +15 -15
- package/dist/models/psql/userHasHomeWorkModel.d.ts +3 -3
- package/dist/models/psql/userHasHomeWorkModel.js +20 -20
- package/dist/models/psql/userHasInventoryHistoryModel.d.ts +3 -3
- package/dist/models/psql/userHasInventoryHistoryModel.js +16 -16
- package/dist/models/psql/userHasInventoryModel.d.ts +3 -3
- package/dist/models/psql/userHasInventoryModel.js +19 -19
- package/dist/models/psql/userHasLeaveHistoryModel.d.ts +3 -3
- package/dist/models/psql/userHasLeaveHistoryModel.js +20 -20
- package/dist/models/psql/userHasLeaveModel.d.ts +3 -3
- package/dist/models/psql/userHasLeaveModel.js +17 -17
- package/dist/models/psql/userHasOfferModel.d.ts +2 -2
- package/dist/models/psql/userHasOfferModel.js +20 -20
- package/dist/models/psql/userHasParentModel.d.ts +3 -3
- package/dist/models/psql/userHasParentModel.js +12 -12
- package/dist/models/psql/userHasRoleModel.d.ts +3 -3
- package/dist/models/psql/userHasRoleModel.js +13 -13
- package/dist/models/psql/userHasRollNumberModel.d.ts +2 -2
- package/dist/models/psql/userHasRollNumberModel.js +14 -14
- package/dist/models/psql/userHasStorageModel.d.ts +3 -3
- package/dist/models/psql/userHasStorageModel.js +11 -11
- package/dist/models/psql/userHasSubjectFeeModel.d.ts +2 -2
- package/dist/models/psql/userHasSubjectFeeModel.js +12 -12
- package/dist/models/psql/userLeaveRequestModel.d.ts +3 -3
- package/dist/models/psql/userLeaveRequestModel.js +23 -23
- package/dist/models/psql/userModel.d.ts +3 -3
- package/dist/models/psql/userModel.js +43 -43
- package/dist/models/psql/userPayoutDetailsModel.d.ts +3 -3
- package/dist/models/psql/userPayoutDetailsModel.js +22 -22
- package/dist/models/psql/userPayoutHistoryModel.d.ts +3 -3
- package/dist/models/psql/userPayoutHistoryModel.js +17 -17
- package/dist/models/psql/userPayoutModel.d.ts +3 -3
- package/dist/models/psql/userPayoutModel.js +31 -31
- package/dist/models/psql/userProjectAssessmentOptionModel.d.ts +3 -3
- package/dist/models/psql/userProjectAssessmentOptionModel.js +17 -17
- package/dist/models/psql/userRequiredStepsModel.d.ts +2 -2
- package/dist/models/psql/userRequiredStepsModel.js +8 -8
- package/dist/models/psql/vehicleModel.d.ts +3 -3
- package/dist/models/psql/vehicleModel.js +14 -14
- package/dist/models/psql/vendorManagementModel.d.ts +3 -3
- package/dist/models/psql/vendorManagementModel.js +20 -20
- package/dist/models/psql/walletHistoryModel.d.ts +3 -3
- package/dist/models/psql/walletHistoryModel.js +13 -13
- package/dist/models/psql/walletModel.d.ts +3 -3
- package/dist/models/psql/walletModel.js +10 -10
- package/dist/models/psql/workingDayModel.d.ts +3 -3
- package/dist/models/psql/workingDayModel.js +8 -8
- package/dist/models/psql/workingShiftModel.d.ts +3 -3
- package/dist/models/psql/workingShiftModel.js +17 -17
- package/dist/services/Concrete/mongooseCommonService.d.ts +2 -2
- package/dist/services/Concrete/mongooseCommonService.js +4 -4
- package/dist/services/Concrete/sequelizeCommonService.d.ts +2 -2
- package/dist/services/Concrete/sequelizeCommonService.js +5 -5
- package/dist/services/Contracts/IMongooseCommonService.d.ts +1 -1
- package/dist/services/Contracts/ISequelizeCommonService.d.ts +1 -1
- package/dist/types/academicCalendarType.d.ts +1 -1
- package/dist/types/accountHasReceiptDetailsType.d.ts +2 -2
- package/dist/types/announcementType.d.ts +1 -1
- package/dist/types/approveRequestType.d.ts +1 -1
- package/dist/types/areaType.d.ts +1 -1
- package/dist/types/attendanceType.d.ts +1 -1
- package/dist/types/bankAccountDetailsType.d.ts +1 -1
- package/dist/types/bannerType.d.ts +2 -2
- package/dist/types/batchSubjectBookAssessmentType.d.ts +2 -2
- package/dist/types/batchSubjectProjectAssessmentType.d.ts +2 -2
- package/dist/types/batchType.d.ts +2 -2
- package/dist/types/blogType.d.ts +1 -1
- package/dist/types/bookAssessmentDateType.d.ts +2 -2
- package/dist/types/careerType.d.ts +1 -1
- package/dist/types/categoriesType.d.ts +1 -1
- package/dist/types/certificatesHistoryType.d.ts +1 -1
- package/dist/types/certificatesManagementType.d.ts +1 -1
- package/dist/types/classRoomType.d.ts +1 -1
- package/dist/types/cloudStorageType.d.ts +1 -1
- package/dist/types/coinPurchaseOfferType.d.ts +1 -1
- package/dist/types/contactFeedBackType.d.ts +1 -1
- package/dist/types/courseHasVisitorsType.d.ts +1 -1
- package/dist/types/courseType.d.ts +1 -1
- package/dist/types/dailyBookType.d.ts +1 -1
- package/dist/types/dashboardManagementType.d.ts +1 -1
- package/dist/types/driverType.d.ts +2 -2
- package/dist/types/entityGroupType.d.ts +1 -1
- package/dist/types/eventType.d.ts +1 -1
- package/dist/types/examGroupType.d.ts +1 -1
- package/dist/types/examHasAnswerSheetType.d.ts +1 -1
- package/dist/types/examType.d.ts +2 -2
- package/dist/types/facilityType.d.ts +1 -1
- package/dist/types/featureActionType.d.ts +1 -1
- package/dist/types/feeHistoryDetailsType.d.ts +2 -2
- package/dist/types/feeHistoryType.d.ts +3 -3
- package/dist/types/feeReminderSettingType.d.ts +1 -1
- package/dist/types/feeReminderType.d.ts +1 -1
- package/dist/types/feeReminderTypeType.d.ts +1 -1
- package/dist/types/feeTypeHasTermsType.d.ts +1 -1
- package/dist/types/feeTypeType.d.ts +1 -1
- package/dist/types/feedBackType.d.ts +1 -1
- package/dist/types/feesCollectionType.d.ts +1 -1
- package/dist/types/fileStorageType.d.ts +1 -1
- package/dist/types/floormanagementType.d.ts +1 -1
- package/dist/types/generateIdCardType.d.ts +1 -1
- package/dist/types/greetingsType.d.ts +2 -2
- package/dist/types/holidayType.d.ts +1 -1
- package/dist/types/homeWorkType.d.ts +1 -1
- package/dist/types/index.d.ts +129 -0
- package/dist/types/index.js +145 -0
- package/dist/types/informationSupportType.d.ts +1 -1
- package/dist/types/inquiryType.d.ts +1 -1
- package/dist/types/instituteEntityType.d.ts +1 -1
- package/dist/types/instituteEntityTypeType.d.ts +1 -1
- package/dist/types/instituteSubscriptionPlanType.d.ts +1 -1
- package/dist/types/instituteType.d.ts +1 -1
- package/dist/types/inventoryHistoryType.d.ts +1 -1
- package/dist/types/inventoryType.d.ts +1 -1
- package/dist/types/jobApply.d.ts +1 -1
- package/dist/types/lectureHistoryType.d.ts +2 -2
- package/dist/types/lectureType.d.ts +2 -2
- package/dist/types/masterLeaveType.d.ts +1 -1
- package/dist/types/moduleFeatureType.d.ts +1 -1
- package/dist/types/moduleType.d.ts +1 -1
- package/dist/types/offerType.d.ts +1 -1
- package/dist/types/paymentTermsType.d.ts +1 -1
- package/dist/types/pdcChequeType.d.ts +2 -2
- package/dist/types/pdcHistoryType.d.ts +1 -1
- package/dist/types/photosGalleryType.d.ts +1 -1
- package/dist/types/plannerType.d.ts +1 -1
- package/dist/types/productType.d.ts +1 -1
- package/dist/types/projectAssessmentOptionType.d.ts +2 -2
- package/dist/types/roleType.d.ts +4 -4
- package/dist/types/rulesRegulationType.d.ts +1 -1
- package/dist/types/schoolFeeCollectionType.d.ts +1 -1
- package/dist/types/schoolFeeType.d.ts +1 -1
- package/dist/types/schoolOfferType.d.ts +1 -1
- package/dist/types/sendNotificationType.d.ts +1 -1
- package/dist/types/slotType.d.ts +1 -1
- package/dist/types/subCategoryType.d.ts +1 -1
- package/dist/types/subjectHasFeeType.d.ts +1 -1
- package/dist/types/subjectHasPayFeeHistoryType.d.ts +1 -1
- package/dist/types/subjectIndexType.d.ts +2 -2
- package/dist/types/subscriptionPlanType.d.ts +1 -1
- package/dist/types/syllabusType.d.ts +2 -2
- package/dist/types/taskManagementType.d.ts +1 -1
- package/dist/types/testimonialType.d.ts +2 -2
- package/dist/types/toDoType.d.ts +2 -2
- package/dist/types/tripType.d.ts +1 -1
- package/dist/types/typeManagementType.d.ts +1 -1
- package/dist/types/uniqueNumberCounterType.d.ts +1 -1
- package/dist/types/userBookAssessmentType.d.ts +2 -2
- package/dist/types/userDetailsType.d.ts +1 -1
- package/dist/types/userFeeTypeByAccountType.d.ts +1 -1
- package/dist/types/userFeeTypeType.d.ts +1 -1
- package/dist/types/userHasAnnouncementType.d.ts +1 -1
- package/dist/types/userHasBatchType.d.ts +3 -3
- package/dist/types/userHasCourseType.d.ts +1 -1
- package/dist/types/userHasDeviceType.d.ts +1 -1
- package/dist/types/userHasFeeTermsType.d.ts +1 -1
- package/dist/types/userHasFileType.d.ts +1 -1
- package/dist/types/userHasHomeWorkType.d.ts +1 -1
- package/dist/types/userHasInventoryHistoryType.d.ts +1 -1
- package/dist/types/userHasInventoryType.d.ts +1 -1
- package/dist/types/userHasLeaveHistoryType.d.ts +1 -1
- package/dist/types/userHasLeaveType.d.ts +1 -1
- package/dist/types/userHasOffer.d.ts +1 -1
- package/dist/types/userHasParentType.d.ts +1 -1
- package/dist/types/userHasRoleType.d.ts +1 -1
- package/dist/types/userHasRollNumberType.d.ts +1 -1
- package/dist/types/userHasStorageType.d.ts +1 -1
- package/dist/types/userHasSubjectFeeType.d.ts +1 -1
- package/dist/types/userInstituteMetaType.d.ts +1 -1
- package/dist/types/userLeaveRequestType.d.ts +1 -1
- package/dist/types/userMetaType.d.ts +2 -2
- package/dist/types/userPayoutDetailsType.d.ts +1 -1
- package/dist/types/userPayoutHistoryType.d.ts +1 -1
- package/dist/types/userPayoutType.d.ts +2 -2
- package/dist/types/userProjectAssessmentOptionType.d.ts +2 -2
- package/dist/types/userRequiredStepsType.d.ts +1 -1
- package/dist/types/userSchoolMetaType.d.ts +1 -1
- package/dist/types/userType.d.ts +3 -3
- package/dist/types/vehicleType.d.ts +1 -1
- package/dist/types/vendorType.d.ts +1 -1
- package/dist/types/videoAnalystType.d.ts +1 -1
- package/dist/types/walletHistoryType.d.ts +1 -1
- package/dist/types/walletTransactionType.d.ts +1 -1
- package/dist/types/walletType.d.ts +1 -1
- package/dist/types/workingDayType.d.ts +1 -1
- package/dist/types/workingShiftType.d.ts +1 -1
- package/package.json +5 -4
- /package/dist/interfaces/{commanInterface.d.ts → commonInterface.d.ts} +0 -0
- /package/dist/interfaces/{commanInterface.js → commonInterface.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
|
-
import { IDashboardManagementAttributes } from '../../interfaces/dashboardManagementInterface
|
|
2
|
+
import { IDashboardManagementAttributes } from '../../interfaces/dashboardManagementInterface';
|
|
3
3
|
declare const DashboardManagement: Model<IDashboardManagementAttributes>;
|
|
4
4
|
export default DashboardManagement;
|
|
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
const mongoose_1 = __importStar(require("mongoose"));
|
|
37
|
-
const
|
|
37
|
+
const app_1 = require("../../constants/app");
|
|
38
38
|
const DashboardManagementSchema = new mongoose_1.Schema({
|
|
39
39
|
sequenceNumber: {
|
|
40
40
|
type: Number,
|
|
@@ -54,14 +54,14 @@ const DashboardManagementSchema = new mongoose_1.Schema({
|
|
|
54
54
|
},
|
|
55
55
|
webStatus: {
|
|
56
56
|
type: String,
|
|
57
|
-
enum: Object.values(
|
|
58
|
-
default:
|
|
57
|
+
enum: Object.values(app_1.COMMAN_STATUS),
|
|
58
|
+
default: app_1.COMMAN_STATUS.ACTIVE,
|
|
59
59
|
required: false,
|
|
60
60
|
},
|
|
61
61
|
mobileStatus: {
|
|
62
62
|
type: String,
|
|
63
|
-
enum: Object.values(
|
|
64
|
-
default:
|
|
63
|
+
enum: Object.values(app_1.COMMAN_STATUS),
|
|
64
|
+
default: app_1.COMMAN_STATUS.ACTIVE,
|
|
65
65
|
required: false,
|
|
66
66
|
},
|
|
67
67
|
}, { _id: false });
|
|
@@ -80,7 +80,7 @@ const DashboardManagementModelSchema = new mongoose_1.Schema({
|
|
|
80
80
|
},
|
|
81
81
|
userType: {
|
|
82
82
|
type: String,
|
|
83
|
-
enum: Object.values(
|
|
83
|
+
enum: Object.values(app_1.USER_TYPES),
|
|
84
84
|
required: false,
|
|
85
85
|
},
|
|
86
86
|
moduleList: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
|
-
import { IEventModelAttributes } from '../../interfaces/eventInterface
|
|
2
|
+
import { IEventModelAttributes } from '../../interfaces/eventInterface';
|
|
3
3
|
declare const EventModel: Model<IEventModelAttributes>;
|
|
4
4
|
export default EventModel;
|
|
@@ -37,10 +37,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
const mongoose_1 = __importStar(require("mongoose"));
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
40
|
+
const app_1 = require("../../constants/app");
|
|
41
|
+
const errorMessages_1 = require("../../constants/errorMessages");
|
|
42
|
+
const instituteModel_1 = __importDefault(require("../psql/instituteModel"));
|
|
43
|
+
const batchModel_1 = __importDefault(require("../psql/batchModel"));
|
|
44
44
|
const EventHasBatchSchema = new mongoose_1.Schema({
|
|
45
45
|
batchId: {
|
|
46
46
|
type: String,
|
|
@@ -78,8 +78,8 @@ const eventModelSchema = new mongoose_1.Schema({
|
|
|
78
78
|
},
|
|
79
79
|
type: {
|
|
80
80
|
type: String,
|
|
81
|
-
enum: Object.values(
|
|
82
|
-
default:
|
|
81
|
+
enum: Object.values(app_1.ACADEMIC_CALENDARS_TYPE),
|
|
82
|
+
default: app_1.ACADEMIC_CALENDARS_TYPE.INSTITUTE,
|
|
83
83
|
required: true,
|
|
84
84
|
},
|
|
85
85
|
startTime: {
|
|
@@ -92,8 +92,8 @@ const eventModelSchema = new mongoose_1.Schema({
|
|
|
92
92
|
},
|
|
93
93
|
status: {
|
|
94
94
|
type: String,
|
|
95
|
-
enum: Object.values(
|
|
96
|
-
default:
|
|
95
|
+
enum: Object.values(app_1.COMMAN_STATUS),
|
|
96
|
+
default: app_1.COMMAN_STATUS.INACTIVE,
|
|
97
97
|
required: true,
|
|
98
98
|
},
|
|
99
99
|
instituteId: {
|
|
@@ -114,7 +114,7 @@ const eventModelSchema = new mongoose_1.Schema({
|
|
|
114
114
|
},
|
|
115
115
|
plannerSyncStatus: {
|
|
116
116
|
type: String,
|
|
117
|
-
default:
|
|
117
|
+
default: app_1.PLANNER_SYNC_STATUS.PENDING,
|
|
118
118
|
},
|
|
119
119
|
}, {
|
|
120
120
|
timestamps: true,
|
|
@@ -124,28 +124,28 @@ eventModelSchema.pre('save', async function (next) {
|
|
|
124
124
|
const event = this;
|
|
125
125
|
try {
|
|
126
126
|
// If type is BATCH, ensure instituteId and batches exist
|
|
127
|
-
if (event.type ===
|
|
127
|
+
if (event.type === app_1.ACADEMIC_CALENDARS_TYPE.BATCH) {
|
|
128
128
|
if (!event.instituteId || !event.batches || event.batches.length === 0) {
|
|
129
|
-
return next(new Error(
|
|
129
|
+
return next(new Error(errorMessages_1.BATCH_ERROR_MESSAGES.INSTITUTED_BATCHES_REQUIRED));
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
for (const batch of event.batches || []) {
|
|
133
133
|
// Validate subjectId if provided
|
|
134
134
|
if (batch.subjectId) {
|
|
135
|
-
const subject = await
|
|
135
|
+
const subject = await instituteModel_1.default.findOne({
|
|
136
136
|
where: { id: batch.subjectId },
|
|
137
137
|
});
|
|
138
138
|
if (!subject) {
|
|
139
|
-
return next(new Error(
|
|
139
|
+
return next(new Error(errorMessages_1.BATCH_ERROR_MESSAGES.INVALID_SELECTED));
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
// Validate batchId if provided
|
|
143
143
|
if (batch.batchId) {
|
|
144
|
-
const batchExists = await
|
|
144
|
+
const batchExists = await batchModel_1.default.findOne({
|
|
145
145
|
where: { id: batch.batchId },
|
|
146
146
|
});
|
|
147
147
|
if (!batchExists) {
|
|
148
|
-
return next(new Error(
|
|
148
|
+
return next(new Error(errorMessages_1.BATCH_ERROR_MESSAGES.INVALID_SELECTED));
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
|
-
import { IExamGroupModelAttributes } from '../../interfaces/examGroupInterface
|
|
2
|
+
import { IExamGroupModelAttributes } from '../../interfaces/examGroupInterface';
|
|
3
3
|
declare const ExamGroupModel: Model<IExamGroupModelAttributes>;
|
|
4
4
|
export default ExamGroupModel;
|
|
@@ -37,13 +37,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
const mongoose_1 = __importStar(require("mongoose"));
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
40
|
+
const app_1 = require("../../constants/app");
|
|
41
|
+
const errorMessages_1 = require("../../constants/errorMessages");
|
|
42
|
+
const instituteModel_1 = __importDefault(require("../psql/instituteModel"));
|
|
43
|
+
const instituteEntityModel_1 = __importDefault(require("../psql/instituteEntityModel"));
|
|
44
44
|
const sequelize_1 = require("sequelize");
|
|
45
|
-
const
|
|
46
|
-
const
|
|
45
|
+
const userInstituteMetaModel_1 = __importDefault(require("./userInstituteMetaModel"));
|
|
46
|
+
const utils_1 = require("../../helpers/utils");
|
|
47
47
|
const date_fns_1 = require("date-fns");
|
|
48
48
|
const examGroupDaysSchema = new mongoose_1.Schema({
|
|
49
49
|
date: {
|
|
@@ -94,8 +94,8 @@ const examGroupStandardByDaysSchema = new mongoose_1.Schema({
|
|
|
94
94
|
},
|
|
95
95
|
result: {
|
|
96
96
|
type: String,
|
|
97
|
-
enum:
|
|
98
|
-
default:
|
|
97
|
+
enum: app_1.EXAM_GROUP_STANDARD_RESULT,
|
|
98
|
+
default: app_1.EXAM_GROUP_STANDARD_RESULT.PENDING,
|
|
99
99
|
},
|
|
100
100
|
}, { _id: false });
|
|
101
101
|
const examGroupModelSchema = new mongoose_1.Schema({
|
|
@@ -135,8 +135,8 @@ const examGroupModelSchema = new mongoose_1.Schema({
|
|
|
135
135
|
},
|
|
136
136
|
status: {
|
|
137
137
|
type: String,
|
|
138
|
-
enum:
|
|
139
|
-
default:
|
|
138
|
+
enum: app_1.EXAM_GROUP_STATUS,
|
|
139
|
+
default: app_1.EXAM_GROUP_STATUS.PENDING,
|
|
140
140
|
},
|
|
141
141
|
}, {
|
|
142
142
|
timestamps: true,
|
|
@@ -145,23 +145,23 @@ const examGroupModelSchema = new mongoose_1.Schema({
|
|
|
145
145
|
const createOrUpdateHook = async (examGroup) => {
|
|
146
146
|
try {
|
|
147
147
|
if (examGroup.instituteId) {
|
|
148
|
-
const institute = await
|
|
148
|
+
const institute = await instituteModel_1.default.findOne({
|
|
149
149
|
where: {
|
|
150
150
|
id: examGroup.instituteId,
|
|
151
151
|
},
|
|
152
152
|
});
|
|
153
153
|
if (!institute)
|
|
154
|
-
throw new Error(
|
|
154
|
+
throw new Error(errorMessages_1.INSTITUTE_ERROR_MESSAGES.NOT_FOUND);
|
|
155
155
|
}
|
|
156
156
|
if (examGroup.standards) {
|
|
157
157
|
examGroup.standards = [...new Set(examGroup.standards)];
|
|
158
|
-
const standardCount = await
|
|
158
|
+
const standardCount = await instituteEntityModel_1.default.count({
|
|
159
159
|
where: {
|
|
160
160
|
id: { [sequelize_1.Op.in]: examGroup.standards },
|
|
161
161
|
},
|
|
162
162
|
});
|
|
163
163
|
if (standardCount !== examGroup.standards.length)
|
|
164
|
-
throw new Error(
|
|
164
|
+
throw new Error(errorMessages_1.INSTITUTE_ENTITY_TYPE_ERROR_MESSAGES.NOT_FOUND);
|
|
165
165
|
}
|
|
166
166
|
if (examGroup.isNew) {
|
|
167
167
|
examGroup.standardByDays = examGroup.standardByDays = [];
|
|
@@ -169,11 +169,11 @@ const createOrUpdateHook = async (examGroup) => {
|
|
|
169
169
|
}
|
|
170
170
|
if (examGroup.standardByDays) {
|
|
171
171
|
examGroup.standardByDays = examGroup.standardByDays.filter(standardByDays => examGroup.standards.includes(standardByDays.standardId));
|
|
172
|
-
const userInstituteMeta = await
|
|
172
|
+
const userInstituteMeta = await userInstituteMetaModel_1.default.findOne({
|
|
173
173
|
userId: examGroup.instituteId,
|
|
174
174
|
instituteId: examGroup.instituteId,
|
|
175
175
|
});
|
|
176
|
-
let subjectList = await
|
|
176
|
+
let subjectList = await instituteEntityModel_1.default.findAll({
|
|
177
177
|
where: {
|
|
178
178
|
entityId: { [sequelize_1.Op.in]: userInstituteMeta?.entities },
|
|
179
179
|
},
|
|
@@ -181,7 +181,7 @@ const createOrUpdateHook = async (examGroup) => {
|
|
|
181
181
|
subjectList = subjectList.filter(subject => examGroup.standards.includes(subject.entityId));
|
|
182
182
|
subjectList = subjectList.filter(subject => userInstituteMeta?.entities?.includes(subject.id));
|
|
183
183
|
examGroup.subjects = subjectList.map(subject => subject.id);
|
|
184
|
-
const subjectListByStandardId = (0,
|
|
184
|
+
const subjectListByStandardId = (0, utils_1.groupByFieldOrFields)(subjectList, 'entityId');
|
|
185
185
|
const dateList = [];
|
|
186
186
|
let startDate = examGroup.startDate;
|
|
187
187
|
while (new Date(startDate).getTime() < new Date(examGroup.endDate).getTime()) {
|
|
@@ -226,7 +226,7 @@ const createOrUpdateHook = async (examGroup) => {
|
|
|
226
226
|
examGroup.standardByDays[existStandardByDaysIndex] = existStandardByDays;
|
|
227
227
|
const isNotValidHoliday = examGroup.standardByDays[existStandardByDaysIndex].days.some(day => day.isHoliday && day.subjectId.length > 1);
|
|
228
228
|
if (isNotValidHoliday)
|
|
229
|
-
throw new Error(
|
|
229
|
+
throw new Error(errorMessages_1.EXAM_GROUP_ERROR_MESSAGES.INVALID_HOLIDAY);
|
|
230
230
|
standardByDays = { ...existStandardByDays };
|
|
231
231
|
}
|
|
232
232
|
else {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
|
-
import { IExamHasAnswerSheetModelAttributes } from '../../interfaces/examHasAnswerSheetInterface
|
|
2
|
+
import { IExamHasAnswerSheetModelAttributes } from '../../interfaces/examHasAnswerSheetInterface';
|
|
3
3
|
declare const ExamHasAnswerSheetModel: Model<IExamHasAnswerSheetModelAttributes>;
|
|
4
4
|
export default ExamHasAnswerSheetModel;
|
|
@@ -37,9 +37,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
const mongoose_1 = __importStar(require("mongoose"));
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
40
|
+
const app_1 = require("../../constants/app");
|
|
41
|
+
const examModel_1 = __importDefault(require("./examModel"));
|
|
42
|
+
const errorMessages_1 = require("../../constants/errorMessages");
|
|
43
43
|
// Define the schema for IAnswerSheetQuestion
|
|
44
44
|
const AnswerSheetQuestionSchema = new mongoose_1.Schema({
|
|
45
45
|
index: {
|
|
@@ -60,8 +60,8 @@ const AnswerSheetQuestionSchema = new mongoose_1.Schema({
|
|
|
60
60
|
},
|
|
61
61
|
result: {
|
|
62
62
|
type: String,
|
|
63
|
-
enum: Object.values(
|
|
64
|
-
default:
|
|
63
|
+
enum: Object.values(app_1.EXAM_ANSWER_SHEET_QUESTION_RESULT),
|
|
64
|
+
default: app_1.EXAM_ANSWER_SHEET_QUESTION_RESULT.NOT_ATTENDED,
|
|
65
65
|
required: false,
|
|
66
66
|
},
|
|
67
67
|
}, { _id: false });
|
|
@@ -83,18 +83,18 @@ const examHasAnswerSheetSchema = new mongoose_1.Schema({
|
|
|
83
83
|
},
|
|
84
84
|
userType: {
|
|
85
85
|
type: String,
|
|
86
|
-
enum: Object.values(
|
|
86
|
+
enum: Object.values(app_1.USER_TYPES),
|
|
87
87
|
required: true,
|
|
88
88
|
},
|
|
89
89
|
type: {
|
|
90
90
|
type: String,
|
|
91
|
-
enum: Object.values(
|
|
91
|
+
enum: Object.values(app_1.EXAM_ANSWER_SHEET_RESULT_TYPE),
|
|
92
92
|
required: true,
|
|
93
93
|
},
|
|
94
94
|
status: {
|
|
95
95
|
type: String,
|
|
96
|
-
enum: Object.values(
|
|
97
|
-
default:
|
|
96
|
+
enum: Object.values(app_1.EXAM_ANSWER_SHEET_STATUS),
|
|
97
|
+
default: app_1.EXAM_ANSWER_SHEET_STATUS.PENDING,
|
|
98
98
|
required: true,
|
|
99
99
|
},
|
|
100
100
|
obtainedMarks: {
|
|
@@ -103,7 +103,7 @@ const examHasAnswerSheetSchema = new mongoose_1.Schema({
|
|
|
103
103
|
},
|
|
104
104
|
resultStatus: {
|
|
105
105
|
type: String,
|
|
106
|
-
enum: Object.values(
|
|
106
|
+
enum: Object.values(app_1.EXAM_ANSWER_SHEET_RESULT_STATUS),
|
|
107
107
|
required: false,
|
|
108
108
|
},
|
|
109
109
|
isInProgress: {
|
|
@@ -122,9 +122,9 @@ const examHasAnswerSheetSchema = new mongoose_1.Schema({
|
|
|
122
122
|
});
|
|
123
123
|
// Add a pre-save hook to validate examId existence
|
|
124
124
|
examHasAnswerSheetSchema.pre('save', async function (next) {
|
|
125
|
-
const examExists = await
|
|
125
|
+
const examExists = await examModel_1.default.findOne({ where: { id: this.examId } });
|
|
126
126
|
if (!examExists) {
|
|
127
|
-
return next(new Error(
|
|
127
|
+
return next(new Error(errorMessages_1.EXAM_ERROR_MESSAGES.NOT_FOUND));
|
|
128
128
|
}
|
|
129
129
|
next();
|
|
130
130
|
});
|
|
@@ -37,15 +37,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
const mongoose_1 = __importStar(require("mongoose"));
|
|
40
|
-
const
|
|
40
|
+
const app_1 = require("../../constants/app");
|
|
41
41
|
const sequelize_1 = require("sequelize");
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
42
|
+
const errorMessages_1 = require("../../constants/errorMessages");
|
|
43
|
+
const instituteEntityModel_1 = __importDefault(require("../psql/instituteEntityModel"));
|
|
44
|
+
const classRoomModel_1 = __importDefault(require("../psql/classRoomModel"));
|
|
45
|
+
const instituteModel_1 = __importDefault(require("../psql/instituteModel"));
|
|
46
|
+
const fileStorageModel_1 = __importDefault(require("../psql/fileStorageModel"));
|
|
47
|
+
const typeManagementModel_1 = __importDefault(require("../psql/typeManagementModel"));
|
|
48
|
+
const batchModel_1 = __importDefault(require("../psql/batchModel"));
|
|
49
49
|
const ExamHasBatchSchema = new mongoose_1.Schema({
|
|
50
50
|
batchId: {
|
|
51
51
|
type: String,
|
|
@@ -91,7 +91,7 @@ const examModelSchema = new mongoose_1.Schema({
|
|
|
91
91
|
},
|
|
92
92
|
mode: {
|
|
93
93
|
type: String,
|
|
94
|
-
enum: Object.values(
|
|
94
|
+
enum: Object.values(app_1.EXAM_MODE),
|
|
95
95
|
required: true,
|
|
96
96
|
},
|
|
97
97
|
type: {
|
|
@@ -112,8 +112,8 @@ const examModelSchema = new mongoose_1.Schema({
|
|
|
112
112
|
},
|
|
113
113
|
status: {
|
|
114
114
|
type: String,
|
|
115
|
-
enum: Object.values(
|
|
116
|
-
default:
|
|
115
|
+
enum: Object.values(app_1.EXAM_STATUS),
|
|
116
|
+
default: app_1.EXAM_STATUS.PENDING,
|
|
117
117
|
required: false,
|
|
118
118
|
},
|
|
119
119
|
nagativeMarksPerQuestion: {
|
|
@@ -146,12 +146,12 @@ const examModelSchema = new mongoose_1.Schema({
|
|
|
146
146
|
},
|
|
147
147
|
ansSelectionType: {
|
|
148
148
|
type: String,
|
|
149
|
-
enum: Object.values(
|
|
149
|
+
enum: Object.values(app_1.EXAM_ANSWER_SELECTION_TYPE),
|
|
150
150
|
required: false,
|
|
151
151
|
},
|
|
152
152
|
validAnsType: {
|
|
153
153
|
type: String,
|
|
154
|
-
enum: Object.values(
|
|
154
|
+
enum: Object.values(app_1.EXAM_VALID_ANSWER_TYPE),
|
|
155
155
|
required: false,
|
|
156
156
|
},
|
|
157
157
|
standard: {
|
|
@@ -184,7 +184,7 @@ const examModelSchema = new mongoose_1.Schema({
|
|
|
184
184
|
},
|
|
185
185
|
plannerSyncStatus: {
|
|
186
186
|
type: String,
|
|
187
|
-
default:
|
|
187
|
+
default: app_1.PLANNER_SYNC_STATUS.PENDING,
|
|
188
188
|
},
|
|
189
189
|
}, {
|
|
190
190
|
timestamps: true,
|
|
@@ -197,50 +197,50 @@ examModelSchema.pre('save', async function (next) {
|
|
|
197
197
|
let where = {
|
|
198
198
|
id: exam.subject,
|
|
199
199
|
};
|
|
200
|
-
const subject = await
|
|
200
|
+
const subject = await instituteEntityModel_1.default.findOne({ where });
|
|
201
201
|
if (!subject) {
|
|
202
|
-
return next(new Error(
|
|
202
|
+
return next(new Error(errorMessages_1.BATCH_ERROR_MESSAGES.INVALID_SELECTED));
|
|
203
203
|
}
|
|
204
204
|
where = {
|
|
205
205
|
id: { [sequelize_1.Op.in]: exam.batches.map(batch => batch.batchId) },
|
|
206
206
|
subjects: { [sequelize_1.Op.overlap]: [exam.subject] },
|
|
207
207
|
};
|
|
208
|
-
const batchesList = await
|
|
208
|
+
const batchesList = await batchModel_1.default.findAll({ where });
|
|
209
209
|
if (batchesList.length !== exam.batches.length) {
|
|
210
|
-
return next(new Error(
|
|
210
|
+
return next(new Error(errorMessages_1.BATCH_ERROR_MESSAGES.INVALID_SELECTED));
|
|
211
211
|
}
|
|
212
|
-
if (exam.mode ===
|
|
212
|
+
if (exam.mode === app_1.EXAM_MODE.OFFLINE && !exam.groupId) {
|
|
213
213
|
where = {
|
|
214
214
|
id: { [sequelize_1.Op.in]: exam.batches.map(batch => batch.classroomId) },
|
|
215
215
|
};
|
|
216
|
-
const classroomCount = await
|
|
216
|
+
const classroomCount = await classRoomModel_1.default.count({ where });
|
|
217
217
|
const classroomDataount = [...new Set(exam.batches.map(val => val.classroomId))].length;
|
|
218
218
|
if (classroomCount !== classroomDataount) {
|
|
219
|
-
return next(new Error(
|
|
219
|
+
return next(new Error(errorMessages_1.CLASSROOM_ERROR_MESSAGES.INVALID_SELECTED));
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
if (exam.instituteId) {
|
|
224
|
-
const institute = await
|
|
224
|
+
const institute = await instituteModel_1.default.findByPk(exam.instituteId);
|
|
225
225
|
if (!institute) {
|
|
226
|
-
return next(new Error(
|
|
226
|
+
return next(new Error(errorMessages_1.INSTITUTE_ERROR_MESSAGES.NOT_FOUND));
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
if (exam.fileId) {
|
|
230
|
-
const file = await
|
|
230
|
+
const file = await fileStorageModel_1.default.findByPk(exam.fileId);
|
|
231
231
|
if (!file) {
|
|
232
|
-
return next(new Error(
|
|
232
|
+
return next(new Error(errorMessages_1.FILE_STORAGE_ERROR_MESSAGES.NOT_FOUND));
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
if (exam.type) {
|
|
236
|
-
const type = await
|
|
236
|
+
const type = await typeManagementModel_1.default.findOne({
|
|
237
237
|
where: {
|
|
238
238
|
id: exam.type,
|
|
239
|
-
type:
|
|
239
|
+
type: app_1.TYPE_MANAGEMENT_TYPE.EXAM,
|
|
240
240
|
},
|
|
241
241
|
});
|
|
242
242
|
if (!type) {
|
|
243
|
-
return next(new Error(
|
|
243
|
+
return next(new Error(errorMessages_1.TYPE_MANAGEMENT_ERROR_MESSAGES.NOT_FOUND));
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
next(); // Proceed with the save operation
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
|
-
import { IFeeReminderTypeModelAttributes } from '../../interfaces/feeReminderTypeInterface
|
|
2
|
+
import { IFeeReminderTypeModelAttributes } from '../../interfaces/feeReminderTypeInterface';
|
|
3
3
|
declare const FeeReminderTypeModel: Model<IFeeReminderTypeModelAttributes>;
|
|
4
4
|
export default FeeReminderTypeModel;
|
|
@@ -34,11 +34,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
const mongoose_1 = __importStar(require("mongoose"));
|
|
37
|
-
const
|
|
37
|
+
const app_1 = require("../../constants/app");
|
|
38
38
|
const feeReminderTypeModelSchema = new mongoose_1.Schema({
|
|
39
39
|
type: {
|
|
40
40
|
type: String,
|
|
41
|
-
enum: Object.values(
|
|
41
|
+
enum: Object.values(app_1.FEE_REMINDER_SETTING_TYPE),
|
|
42
42
|
required: true,
|
|
43
43
|
},
|
|
44
44
|
day: {
|
|
@@ -47,7 +47,7 @@ const feeReminderTypeModelSchema = new mongoose_1.Schema({
|
|
|
47
47
|
},
|
|
48
48
|
frequency: {
|
|
49
49
|
type: String,
|
|
50
|
-
enum: Object.values(
|
|
50
|
+
enum: Object.values(app_1.FEE_REMINDER_SETTING_FREQUENCY),
|
|
51
51
|
},
|
|
52
52
|
instituteId: {
|
|
53
53
|
type: String,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
|
-
import { IFeedBackModelAttributes } from '../../interfaces/feedBackInterface
|
|
2
|
+
import { IFeedBackModelAttributes } from '../../interfaces/feedBackInterface';
|
|
3
3
|
declare const FeedBackModel: Model<IFeedBackModelAttributes>;
|
|
4
4
|
export default FeedBackModel;
|
|
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
const mongoose_1 = __importStar(require("mongoose"));
|
|
37
|
-
const
|
|
37
|
+
const app_1 = require("../../constants/app");
|
|
38
38
|
const ConversationSchema = new mongoose_1.Schema({
|
|
39
39
|
userId: {
|
|
40
40
|
type: String,
|
|
@@ -67,12 +67,12 @@ const FeedBackSchema = new mongoose_1.Schema({
|
|
|
67
67
|
},
|
|
68
68
|
type: {
|
|
69
69
|
type: String,
|
|
70
|
-
enum: Object.values(
|
|
70
|
+
enum: Object.values(app_1.FEED_BACK_TYPE),
|
|
71
71
|
required: true,
|
|
72
72
|
},
|
|
73
73
|
status: {
|
|
74
74
|
type: String,
|
|
75
|
-
enum: Object.values(
|
|
75
|
+
enum: Object.values(app_1.FEED_BACK_STATUS),
|
|
76
76
|
required: true,
|
|
77
77
|
},
|
|
78
78
|
conversation: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
|
-
import { IGenarateIdCardModelAttributes } from '../../interfaces/generateIdCardInterface
|
|
2
|
+
import { IGenarateIdCardModelAttributes } from '../../interfaces/generateIdCardInterface';
|
|
3
3
|
declare const GenerateIdCardModel: Model<IGenarateIdCardModelAttributes>;
|
|
4
4
|
export default GenerateIdCardModel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
|
-
import { IHolidayModelAttributes } from '../../interfaces/holidayInterface
|
|
2
|
+
import { IHolidayModelAttributes } from '../../interfaces/holidayInterface';
|
|
3
3
|
declare const HolidayModel: Model<IHolidayModelAttributes>;
|
|
4
4
|
export default HolidayModel;
|
|
@@ -37,10 +37,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
const mongoose_1 = __importStar(require("mongoose"));
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
40
|
+
const app_1 = require("../../constants/app");
|
|
41
|
+
const errorMessages_1 = require("../../constants/errorMessages");
|
|
42
|
+
const instituteEntityModel_1 = __importDefault(require("../psql/instituteEntityModel"));
|
|
43
|
+
const batchModel_1 = __importDefault(require("../psql/batchModel"));
|
|
44
44
|
const HolidayHasBatchSchema = new mongoose_1.Schema({
|
|
45
45
|
batchId: {
|
|
46
46
|
type: String,
|
|
@@ -78,14 +78,14 @@ const holidayModelSchema = new mongoose_1.Schema({
|
|
|
78
78
|
},
|
|
79
79
|
type: {
|
|
80
80
|
type: String,
|
|
81
|
-
enum: Object.values(
|
|
82
|
-
default:
|
|
81
|
+
enum: Object.values(app_1.ACADEMIC_CALENDARS_TYPE),
|
|
82
|
+
default: app_1.ACADEMIC_CALENDARS_TYPE.INSTITUTE,
|
|
83
83
|
required: true,
|
|
84
84
|
},
|
|
85
85
|
status: {
|
|
86
86
|
type: String,
|
|
87
|
-
enum: Object.values(
|
|
88
|
-
default:
|
|
87
|
+
enum: Object.values(app_1.COMMAN_STATUS),
|
|
88
|
+
default: app_1.COMMAN_STATUS.INACTIVE,
|
|
89
89
|
required: true,
|
|
90
90
|
},
|
|
91
91
|
instituteId: {
|
|
@@ -118,7 +118,7 @@ const holidayModelSchema = new mongoose_1.Schema({
|
|
|
118
118
|
},
|
|
119
119
|
plannerSyncStatus: {
|
|
120
120
|
type: String,
|
|
121
|
-
default:
|
|
121
|
+
default: app_1.PLANNER_SYNC_STATUS.PENDING,
|
|
122
122
|
},
|
|
123
123
|
}, {
|
|
124
124
|
timestamps: true,
|
|
@@ -128,30 +128,30 @@ holidayModelSchema.pre('save', async function (next) {
|
|
|
128
128
|
const holiday = this;
|
|
129
129
|
try {
|
|
130
130
|
// If type is BATCH, ensure instituteId and batches exist
|
|
131
|
-
if (holiday.type ===
|
|
131
|
+
if (holiday.type === app_1.ACADEMIC_CALENDARS_TYPE.BATCH) {
|
|
132
132
|
if (!holiday.instituteId || !holiday.batches || holiday.batches.length === 0) {
|
|
133
|
-
return next(new Error(
|
|
133
|
+
return next(new Error(errorMessages_1.BATCH_ERROR_MESSAGES.INSTITUTED_BATCHES_REQUIRED));
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
for (const batch of holiday.batches || []) {
|
|
137
137
|
// Validate subjectId if provided
|
|
138
138
|
if (batch.subjectId) {
|
|
139
|
-
const subject = await
|
|
139
|
+
const subject = await instituteEntityModel_1.default.findOne({
|
|
140
140
|
where: {
|
|
141
141
|
id: batch.subjectId,
|
|
142
142
|
},
|
|
143
143
|
});
|
|
144
144
|
if (!subject) {
|
|
145
|
-
return next(new Error(
|
|
145
|
+
return next(new Error(errorMessages_1.BATCH_ERROR_MESSAGES.INVALID_SELECTED));
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
// Validate batchId if provided
|
|
149
149
|
if (batch.batchId) {
|
|
150
|
-
const batchExists = await
|
|
150
|
+
const batchExists = await batchModel_1.default.findOne({
|
|
151
151
|
where: { id: batch.batchId },
|
|
152
152
|
});
|
|
153
153
|
if (!batchExists) {
|
|
154
|
-
return next(new Error(
|
|
154
|
+
return next(new Error(errorMessages_1.BATCH_ERROR_MESSAGES.INVALID_SELECTED));
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
}
|