@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
|
@@ -4,19 +4,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const sequelize_1 = require("sequelize");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
7
|
+
const index_1 = require("./index");
|
|
8
|
+
const userModel_1 = __importDefault(require("./userModel"));
|
|
9
|
+
const instituteModel_1 = __importDefault(require("./instituteModel"));
|
|
10
|
+
const app_1 = require("../../constants/app");
|
|
11
|
+
const errorMessages_1 = require("../../constants/errorMessages");
|
|
12
|
+
const feesCollectionModel_1 = __importDefault(require("./feesCollectionModel"));
|
|
13
|
+
const fileStorageModel_1 = __importDefault(require("./fileStorageModel"));
|
|
14
|
+
const bankAccountDetailsModel_1 = __importDefault(require("./bankAccountDetailsModel"));
|
|
15
|
+
const schoolFeeCollectionModel_1 = __importDefault(require("./schoolFeeCollectionModel"));
|
|
16
|
+
const userInstituteMetaModel_1 = __importDefault(require("../mongodb/userInstituteMetaModel"));
|
|
17
|
+
const instituteEntityModel_1 = __importDefault(require("./instituteEntityModel"));
|
|
18
|
+
const userHasSubjectFeeModel_1 = __importDefault(require("./userHasSubjectFeeModel"));
|
|
19
|
+
const subjectHasPayFeeHistoryModel_1 = __importDefault(require("./subjectHasPayFeeHistoryModel"));
|
|
20
20
|
class FeeHistoryModel extends sequelize_1.Model {
|
|
21
21
|
}
|
|
22
22
|
FeeHistoryModel.init({
|
|
@@ -89,15 +89,15 @@ FeeHistoryModel.init({
|
|
|
89
89
|
},
|
|
90
90
|
paymentType: {
|
|
91
91
|
type: sequelize_1.DataTypes.ENUM,
|
|
92
|
-
values: Object.values(
|
|
92
|
+
values: Object.values(app_1.PAYMENT_TYPE),
|
|
93
93
|
allowNull: true,
|
|
94
94
|
// defaultValue: PAYMENT_TYPE.CASH,
|
|
95
95
|
},
|
|
96
96
|
status: {
|
|
97
97
|
type: sequelize_1.DataTypes.ENUM,
|
|
98
|
-
values: Object.values(
|
|
98
|
+
values: Object.values(app_1.FEE_HISTORY_STATUS),
|
|
99
99
|
allowNull: true,
|
|
100
|
-
defaultValue:
|
|
100
|
+
defaultValue: app_1.FEE_HISTORY_STATUS.PENDING,
|
|
101
101
|
},
|
|
102
102
|
bankName: {
|
|
103
103
|
type: sequelize_1.DataTypes.STRING,
|
|
@@ -115,9 +115,9 @@ FeeHistoryModel.init({
|
|
|
115
115
|
modelName: 'FeeHistoryModel',
|
|
116
116
|
tableName: 'fee_history',
|
|
117
117
|
timestamps: true,
|
|
118
|
-
sequelize:
|
|
118
|
+
sequelize: index_1.sequelize,
|
|
119
119
|
});
|
|
120
|
-
FeeHistoryModel.belongsTo(
|
|
120
|
+
FeeHistoryModel.belongsTo(feesCollectionModel_1.default, {
|
|
121
121
|
foreignKey: {
|
|
122
122
|
name: 'feeCollectionId',
|
|
123
123
|
field: 'fee_collection_id',
|
|
@@ -125,7 +125,7 @@ FeeHistoryModel.belongsTo(feesCollectionModel_js_1.default, {
|
|
|
125
125
|
},
|
|
126
126
|
as: 'feeHistoryFeeCollection',
|
|
127
127
|
});
|
|
128
|
-
|
|
128
|
+
feesCollectionModel_1.default.hasMany(FeeHistoryModel, {
|
|
129
129
|
foreignKey: {
|
|
130
130
|
name: 'feeCollectionId',
|
|
131
131
|
field: 'fee_collection_id',
|
|
@@ -133,7 +133,7 @@ feesCollectionModel_js_1.default.hasMany(FeeHistoryModel, {
|
|
|
133
133
|
},
|
|
134
134
|
as: 'feeCollectionHasFeeHistory',
|
|
135
135
|
});
|
|
136
|
-
FeeHistoryModel.belongsTo(
|
|
136
|
+
FeeHistoryModel.belongsTo(fileStorageModel_1.default, {
|
|
137
137
|
foreignKey: {
|
|
138
138
|
name: 'pdfId',
|
|
139
139
|
field: 'pdf_id',
|
|
@@ -141,7 +141,7 @@ FeeHistoryModel.belongsTo(fileStorageModel_js_1.default, {
|
|
|
141
141
|
},
|
|
142
142
|
as: 'feeHistoryFile',
|
|
143
143
|
});
|
|
144
|
-
|
|
144
|
+
fileStorageModel_1.default.hasMany(FeeHistoryModel, {
|
|
145
145
|
foreignKey: {
|
|
146
146
|
name: 'pdfId',
|
|
147
147
|
field: 'pdf_id',
|
|
@@ -149,7 +149,7 @@ fileStorageModel_js_1.default.hasMany(FeeHistoryModel, {
|
|
|
149
149
|
},
|
|
150
150
|
as: 'filesHasFeeHistory',
|
|
151
151
|
});
|
|
152
|
-
FeeHistoryModel.belongsTo(
|
|
152
|
+
FeeHistoryModel.belongsTo(bankAccountDetailsModel_1.default, {
|
|
153
153
|
foreignKey: {
|
|
154
154
|
name: 'bankAccountId',
|
|
155
155
|
field: 'bank_account_id',
|
|
@@ -157,7 +157,7 @@ FeeHistoryModel.belongsTo(bankAccountDetailsModel_js_1.default, {
|
|
|
157
157
|
},
|
|
158
158
|
as: 'feeHistoryAccount',
|
|
159
159
|
});
|
|
160
|
-
|
|
160
|
+
bankAccountDetailsModel_1.default.hasMany(FeeHistoryModel, {
|
|
161
161
|
foreignKey: {
|
|
162
162
|
name: 'bankAccountId',
|
|
163
163
|
field: 'bank_account_id',
|
|
@@ -181,7 +181,7 @@ FeeHistoryModel.hasMany(FeeHistoryModel, {
|
|
|
181
181
|
},
|
|
182
182
|
as: 'feeHistoryHas',
|
|
183
183
|
});
|
|
184
|
-
FeeHistoryModel.belongsTo(
|
|
184
|
+
FeeHistoryModel.belongsTo(schoolFeeCollectionModel_1.default, {
|
|
185
185
|
foreignKey: {
|
|
186
186
|
name: 'schoolFeeCollectionId',
|
|
187
187
|
field: 'school_fee_collection_id',
|
|
@@ -189,7 +189,7 @@ FeeHistoryModel.belongsTo(schoolFeeCollectionModel_js_1.default, {
|
|
|
189
189
|
},
|
|
190
190
|
as: 'feeHistorySchool',
|
|
191
191
|
});
|
|
192
|
-
|
|
192
|
+
schoolFeeCollectionModel_1.default.hasMany(FeeHistoryModel, {
|
|
193
193
|
foreignKey: {
|
|
194
194
|
name: 'schoolFeeCollectionId',
|
|
195
195
|
field: 'school_fee_collection_id',
|
|
@@ -197,29 +197,29 @@ schoolFeeCollectionModel_js_1.default.hasMany(FeeHistoryModel, {
|
|
|
197
197
|
},
|
|
198
198
|
as: 'feeHistoryHasSchool',
|
|
199
199
|
});
|
|
200
|
-
FeeHistoryModel.belongsTo(
|
|
200
|
+
FeeHistoryModel.belongsTo(instituteModel_1.default, {
|
|
201
201
|
foreignKey: {
|
|
202
202
|
name: 'instituteId',
|
|
203
203
|
field: 'institute_id',
|
|
204
204
|
},
|
|
205
205
|
as: 'feeHistoryInstitute',
|
|
206
206
|
});
|
|
207
|
-
|
|
207
|
+
instituteModel_1.default.hasMany(FeeHistoryModel, {
|
|
208
208
|
foreignKey: 'instituteId',
|
|
209
209
|
as: 'instituteHasFeeHistory',
|
|
210
210
|
});
|
|
211
|
-
FeeHistoryModel.belongsTo(
|
|
211
|
+
FeeHistoryModel.belongsTo(userModel_1.default, {
|
|
212
212
|
foreignKey: {
|
|
213
213
|
name: 'userId',
|
|
214
214
|
field: 'user_id',
|
|
215
215
|
},
|
|
216
216
|
as: 'feeHistoryUser',
|
|
217
217
|
});
|
|
218
|
-
|
|
218
|
+
userModel_1.default.hasMany(FeeHistoryModel, {
|
|
219
219
|
foreignKey: 'userId',
|
|
220
220
|
as: 'userHasFeeHistory',
|
|
221
221
|
});
|
|
222
|
-
FeeHistoryModel.belongsTo(
|
|
222
|
+
FeeHistoryModel.belongsTo(userModel_1.default, {
|
|
223
223
|
foreignKey: {
|
|
224
224
|
name: 'createdBy',
|
|
225
225
|
allowNull: true,
|
|
@@ -227,7 +227,7 @@ FeeHistoryModel.belongsTo(userModel_js_1.default, {
|
|
|
227
227
|
},
|
|
228
228
|
as: 'createdByUser',
|
|
229
229
|
});
|
|
230
|
-
FeeHistoryModel.belongsTo(
|
|
230
|
+
FeeHistoryModel.belongsTo(userModel_1.default, {
|
|
231
231
|
foreignKey: {
|
|
232
232
|
name: 'updatedBy',
|
|
233
233
|
allowNull: true,
|
|
@@ -235,7 +235,7 @@ FeeHistoryModel.belongsTo(userModel_js_1.default, {
|
|
|
235
235
|
},
|
|
236
236
|
as: 'updatedByUser',
|
|
237
237
|
});
|
|
238
|
-
FeeHistoryModel.belongsTo(
|
|
238
|
+
FeeHistoryModel.belongsTo(userModel_1.default, {
|
|
239
239
|
foreignKey: {
|
|
240
240
|
name: 'deletedBy',
|
|
241
241
|
allowNull: true,
|
|
@@ -245,35 +245,35 @@ FeeHistoryModel.belongsTo(userModel_js_1.default, {
|
|
|
245
245
|
});
|
|
246
246
|
const subjectWiserFeePay = async (instituteId, feeCollectionId, paidFee, userId) => {
|
|
247
247
|
try {
|
|
248
|
-
const userInstituteMeta = await
|
|
248
|
+
const userInstituteMeta = await userInstituteMetaModel_1.default.findOne({
|
|
249
249
|
userId,
|
|
250
250
|
instituteId,
|
|
251
|
-
status:
|
|
251
|
+
status: app_1.USER_INSTITUTE_META_STATUS.ACCEPTED,
|
|
252
252
|
});
|
|
253
253
|
if (!userInstituteMeta) {
|
|
254
|
-
throw new Error(
|
|
254
|
+
throw new Error(errorMessages_1.USER_INSTITUTE_META_ERROR_MESSAGES.NOT_FOUND);
|
|
255
255
|
}
|
|
256
|
-
const subjects = await
|
|
256
|
+
const subjects = await instituteEntityModel_1.default.findAll({
|
|
257
257
|
where: {
|
|
258
258
|
id: { [sequelize_1.Op.in]: userInstituteMeta.entities },
|
|
259
259
|
},
|
|
260
260
|
include: [
|
|
261
261
|
{
|
|
262
262
|
association: 'entityType',
|
|
263
|
-
where: { sequence:
|
|
263
|
+
where: { sequence: app_1.INSTITUTE_ENTITY_TYPE_SEQUENCE.LAST },
|
|
264
264
|
},
|
|
265
265
|
],
|
|
266
266
|
});
|
|
267
267
|
const subjectIds = subjects.map(subject => subject.id);
|
|
268
|
-
const fees = await
|
|
268
|
+
const fees = await userHasSubjectFeeModel_1.default.findAll({
|
|
269
269
|
where: {
|
|
270
270
|
subjectId: { [sequelize_1.Op.in]: subjectIds },
|
|
271
271
|
instituteId,
|
|
272
272
|
},
|
|
273
273
|
});
|
|
274
|
-
const feeCollection = await
|
|
274
|
+
const feeCollection = await feesCollectionModel_1.default.findByPk(feeCollectionId);
|
|
275
275
|
if (!feeCollection) {
|
|
276
|
-
throw new Error(
|
|
276
|
+
throw new Error(errorMessages_1.FEESCOLLECTION_ERROR_MESSAGES.NOT_FOUND);
|
|
277
277
|
}
|
|
278
278
|
// const totalFeeAmount = Number(fees.reduce((total, fee) => total + fee.fee, 0));
|
|
279
279
|
const feeDistribution = fees.map(fee => {
|
|
@@ -284,7 +284,7 @@ const subjectWiserFeePay = async (instituteId, feeCollectionId, paidFee, userId)
|
|
|
284
284
|
};
|
|
285
285
|
});
|
|
286
286
|
const feeHistoryEntries = await Promise.all(feeDistribution.map(async (distribution) => {
|
|
287
|
-
return
|
|
287
|
+
return subjectHasPayFeeHistoryModel_1.default.create({
|
|
288
288
|
instituteId,
|
|
289
289
|
userId,
|
|
290
290
|
subjectId: distribution.subjectId,
|
|
@@ -300,30 +300,30 @@ const subjectWiserFeePay = async (instituteId, feeCollectionId, paidFee, userId)
|
|
|
300
300
|
};
|
|
301
301
|
const beforeCreateOrUpdateHook = async (feeCollection) => {
|
|
302
302
|
if (feeCollection.paidFee) {
|
|
303
|
-
if (feeCollection.paymentType ===
|
|
303
|
+
if (feeCollection.paymentType === app_1.PAYMENT_TYPE.CHEQUE) {
|
|
304
304
|
feeCollection.upiId = null;
|
|
305
305
|
if (!feeCollection.chequeNo || !feeCollection.bankName) {
|
|
306
|
-
throw new Error(
|
|
306
|
+
throw new Error(errorMessages_1.FEESCOLLECTION_ERROR_MESSAGES.FEE_PAID_BY_CHQUE);
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
else if (feeCollection.paymentType ===
|
|
309
|
+
else if (feeCollection.paymentType === app_1.PAYMENT_TYPE.UPI) {
|
|
310
310
|
feeCollection.chequeNo = null;
|
|
311
311
|
feeCollection.bankName = null;
|
|
312
312
|
if (!feeCollection.upiId) {
|
|
313
|
-
throw new Error(
|
|
313
|
+
throw new Error(errorMessages_1.FEESCOLLECTION_ERROR_MESSAGES.FEE_PAID_BY_UPI);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
else if (feeCollection.paymentType ===
|
|
316
|
+
else if (feeCollection.paymentType === app_1.PAYMENT_TYPE.CASH) {
|
|
317
317
|
feeCollection.bankName = null;
|
|
318
318
|
feeCollection.chequeNo = null;
|
|
319
319
|
feeCollection.upiId = null;
|
|
320
320
|
}
|
|
321
321
|
else
|
|
322
|
-
throw new Error(
|
|
322
|
+
throw new Error(errorMessages_1.FEESCOLLECTION_ERROR_MESSAGES.PAYMENT_TYPE_REQUIRED);
|
|
323
323
|
if (feeCollection.pdfId) {
|
|
324
|
-
const pdfUrl = await
|
|
324
|
+
const pdfUrl = await fileStorageModel_1.default.findByPk(feeCollection.pdfId);
|
|
325
325
|
if (!pdfUrl)
|
|
326
|
-
throw new Error(
|
|
326
|
+
throw new Error(errorMessages_1.FILE_STORAGE_ERROR_MESSAGES.NOT_FOUND);
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
if ((!feeCollection.feeTypeId || feeCollection.feeTypeId.length === 0) && !feeCollection.bankAccountId)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { IFeeReminderModelAttributes } from '../../interfaces/feeReminderInterface
|
|
3
|
-
import { TFeeReminderModelCreationAttributes } from '../../types/feeReminderType
|
|
2
|
+
import { IFeeReminderModelAttributes } from '../../interfaces/feeReminderInterface';
|
|
3
|
+
import { TFeeReminderModelCreationAttributes } from '../../types/feeReminderType';
|
|
4
4
|
declare class FeeReminderModel extends Model<IFeeReminderModelAttributes, TFeeReminderModelCreationAttributes> {
|
|
5
5
|
id: string;
|
|
6
6
|
userId: string;
|
|
@@ -4,15 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const sequelize_1 = require("sequelize");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
7
|
+
const index_1 = require("./index");
|
|
8
|
+
const instituteModel_1 = __importDefault(require("./instituteModel"));
|
|
9
|
+
const userModel_1 = __importDefault(require("./userModel"));
|
|
10
|
+
const feesCollectionModel_1 = __importDefault(require("./feesCollectionModel"));
|
|
11
|
+
const feeReminderSettingModel_1 = __importDefault(require("./feeReminderSettingModel"));
|
|
12
|
+
const errorMessages_1 = require("../../constants/errorMessages");
|
|
13
|
+
const app_1 = require("../../constants/app");
|
|
14
|
+
const userHasBatchModel_1 = __importDefault(require("./userHasBatchModel"));
|
|
15
|
+
const batchModel_1 = __importDefault(require("./batchModel"));
|
|
16
16
|
class FeeReminderModel extends sequelize_1.Model {
|
|
17
17
|
}
|
|
18
18
|
FeeReminderModel.init({
|
|
@@ -64,42 +64,42 @@ FeeReminderModel.init({
|
|
|
64
64
|
modelName: 'FeeReminderModel',
|
|
65
65
|
tableName: 'fee_reminders',
|
|
66
66
|
timestamps: true,
|
|
67
|
-
sequelize:
|
|
67
|
+
sequelize: index_1.sequelize,
|
|
68
68
|
});
|
|
69
|
-
FeeReminderModel.belongsTo(
|
|
69
|
+
FeeReminderModel.belongsTo(userModel_1.default, {
|
|
70
70
|
foreignKey: {
|
|
71
71
|
name: 'userId',
|
|
72
72
|
field: 'user_id',
|
|
73
73
|
},
|
|
74
74
|
as: 'reminderUser',
|
|
75
75
|
});
|
|
76
|
-
|
|
76
|
+
userModel_1.default.hasMany(FeeReminderModel, {
|
|
77
77
|
foreignKey: 'userId',
|
|
78
78
|
as: 'userReminders',
|
|
79
79
|
});
|
|
80
|
-
FeeReminderModel.belongsTo(
|
|
80
|
+
FeeReminderModel.belongsTo(feeReminderSettingModel_1.default, {
|
|
81
81
|
foreignKey: {
|
|
82
82
|
name: 'templateId',
|
|
83
83
|
field: 'template_id',
|
|
84
84
|
},
|
|
85
85
|
as: 'reminderTemplate',
|
|
86
86
|
});
|
|
87
|
-
|
|
87
|
+
feeReminderSettingModel_1.default.hasMany(FeeReminderModel, {
|
|
88
88
|
foreignKey: 'templateId',
|
|
89
89
|
as: 'TemplateReminders',
|
|
90
90
|
});
|
|
91
|
-
FeeReminderModel.belongsTo(
|
|
91
|
+
FeeReminderModel.belongsTo(instituteModel_1.default, {
|
|
92
92
|
foreignKey: {
|
|
93
93
|
name: 'instituteId',
|
|
94
94
|
field: 'institute_id',
|
|
95
95
|
},
|
|
96
96
|
as: 'reminderInstitute',
|
|
97
97
|
});
|
|
98
|
-
|
|
98
|
+
instituteModel_1.default.hasMany(FeeReminderModel, {
|
|
99
99
|
foreignKey: 'instituteId',
|
|
100
100
|
as: 'instituteReminders',
|
|
101
101
|
});
|
|
102
|
-
FeeReminderModel.belongsTo(
|
|
102
|
+
FeeReminderModel.belongsTo(userModel_1.default, {
|
|
103
103
|
foreignKey: {
|
|
104
104
|
name: 'createdBy',
|
|
105
105
|
allowNull: true,
|
|
@@ -107,7 +107,7 @@ FeeReminderModel.belongsTo(userModel_js_1.default, {
|
|
|
107
107
|
},
|
|
108
108
|
as: 'createdByUser',
|
|
109
109
|
});
|
|
110
|
-
FeeReminderModel.belongsTo(
|
|
110
|
+
FeeReminderModel.belongsTo(userModel_1.default, {
|
|
111
111
|
foreignKey: {
|
|
112
112
|
name: 'updatedBy',
|
|
113
113
|
allowNull: true,
|
|
@@ -115,7 +115,7 @@ FeeReminderModel.belongsTo(userModel_js_1.default, {
|
|
|
115
115
|
},
|
|
116
116
|
as: 'updatedByUser',
|
|
117
117
|
});
|
|
118
|
-
FeeReminderModel.belongsTo(
|
|
118
|
+
FeeReminderModel.belongsTo(userModel_1.default, {
|
|
119
119
|
foreignKey: {
|
|
120
120
|
name: 'deletedBy',
|
|
121
121
|
allowNull: true,
|
|
@@ -123,34 +123,34 @@ FeeReminderModel.belongsTo(userModel_js_1.default, {
|
|
|
123
123
|
},
|
|
124
124
|
as: 'deletedByUser',
|
|
125
125
|
});
|
|
126
|
-
FeeReminderModel.belongsTo(
|
|
126
|
+
FeeReminderModel.belongsTo(feesCollectionModel_1.default, {
|
|
127
127
|
foreignKey: {
|
|
128
128
|
name: 'feeCollectionId',
|
|
129
129
|
field: 'fee_collection_id',
|
|
130
130
|
},
|
|
131
131
|
as: 'feeCollection',
|
|
132
132
|
});
|
|
133
|
-
|
|
133
|
+
feesCollectionModel_1.default.hasMany(FeeReminderModel, {
|
|
134
134
|
foreignKey: 'feeCollectionId',
|
|
135
135
|
as: 'feeReminders',
|
|
136
136
|
});
|
|
137
137
|
const beforeCreateHook = async (feeReminder) => {
|
|
138
138
|
if (feeReminder.userId && feeReminder.batchId && feeReminder.instituteId) {
|
|
139
139
|
const { batchId, instituteId, userId } = feeReminder;
|
|
140
|
-
const batchExists = await
|
|
140
|
+
const batchExists = await batchModel_1.default.findOne({
|
|
141
141
|
where: { id: batchId, instituteId },
|
|
142
142
|
});
|
|
143
143
|
if (!batchExists) {
|
|
144
|
-
throw new Error(
|
|
144
|
+
throw new Error(errorMessages_1.BATCH_ERROR_MESSAGES.NOT_FOUND);
|
|
145
145
|
}
|
|
146
|
-
const userInBatch = await
|
|
146
|
+
const userInBatch = await userHasBatchModel_1.default.findOne({
|
|
147
147
|
where: { userId, batchId },
|
|
148
148
|
});
|
|
149
149
|
if (!userInBatch) {
|
|
150
|
-
throw new Error(
|
|
150
|
+
throw new Error(errorMessages_1.FEEREMINDER_ERROR_MESSAGES.USER_NOT_IN_BATCH);
|
|
151
151
|
}
|
|
152
152
|
if (feeReminder.subjectId) {
|
|
153
|
-
const validSubject = await
|
|
153
|
+
const validSubject = await userHasBatchModel_1.default.findOne({
|
|
154
154
|
where: {
|
|
155
155
|
userId,
|
|
156
156
|
batchId,
|
|
@@ -158,19 +158,19 @@ const beforeCreateHook = async (feeReminder) => {
|
|
|
158
158
|
},
|
|
159
159
|
});
|
|
160
160
|
if (!validSubject) {
|
|
161
|
-
throw new Error(
|
|
161
|
+
throw new Error(errorMessages_1.FEEREMINDER_ERROR_MESSAGES.SUBJECT_INVALID);
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
if (feeReminder.feeCollectionId) {
|
|
165
|
-
const validFeeCollection = await
|
|
165
|
+
const validFeeCollection = await feesCollectionModel_1.default.findOne({
|
|
166
166
|
where: {
|
|
167
167
|
userId,
|
|
168
168
|
instituteId,
|
|
169
|
-
status: { [sequelize_1.Op.ne]:
|
|
169
|
+
status: { [sequelize_1.Op.ne]: app_1.FEE_PAYMENT_STATUS.COMPLETED },
|
|
170
170
|
},
|
|
171
171
|
});
|
|
172
172
|
if (!validFeeCollection) {
|
|
173
|
-
throw new Error(
|
|
173
|
+
throw new Error(errorMessages_1.FEEREMINDER_ERROR_MESSAGES.FEE_COLLECTION_NOT_FOUND);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -179,28 +179,28 @@ const beforeUpdateHook = async (feeReminder) => {
|
|
|
179
179
|
if (feeReminder.id) {
|
|
180
180
|
const existingReminder = await FeeReminderModel.findByPk(feeReminder.id);
|
|
181
181
|
if (!existingReminder) {
|
|
182
|
-
throw new Error(
|
|
182
|
+
throw new Error(errorMessages_1.FEEREMINDER_ERROR_MESSAGES.NOT_FOUND);
|
|
183
183
|
}
|
|
184
184
|
const batchId = feeReminder.batchId || existingReminder.batchId;
|
|
185
185
|
const instituteId = feeReminder.instituteId || existingReminder.instituteId;
|
|
186
186
|
const userId = feeReminder.userId || existingReminder.userId;
|
|
187
|
-
const batchExists = await
|
|
187
|
+
const batchExists = await batchModel_1.default.findOne({
|
|
188
188
|
where: {
|
|
189
189
|
id: batchId,
|
|
190
190
|
instituteId,
|
|
191
191
|
},
|
|
192
192
|
});
|
|
193
193
|
if (!batchExists) {
|
|
194
|
-
throw new Error(
|
|
194
|
+
throw new Error(errorMessages_1.BATCH_ERROR_MESSAGES.NOT_FOUND);
|
|
195
195
|
}
|
|
196
|
-
const userInBatch = await
|
|
196
|
+
const userInBatch = await userHasBatchModel_1.default.findOne({
|
|
197
197
|
where: { userId, batchId },
|
|
198
198
|
});
|
|
199
199
|
if (!userInBatch) {
|
|
200
|
-
throw new Error(
|
|
200
|
+
throw new Error(errorMessages_1.FEEREMINDER_ERROR_MESSAGES.USER_NOT_IN_BATCH);
|
|
201
201
|
}
|
|
202
202
|
if (feeReminder.subjectId) {
|
|
203
|
-
const validSubject = await
|
|
203
|
+
const validSubject = await userHasBatchModel_1.default.findOne({
|
|
204
204
|
where: {
|
|
205
205
|
userId,
|
|
206
206
|
batchId,
|
|
@@ -208,24 +208,24 @@ const beforeUpdateHook = async (feeReminder) => {
|
|
|
208
208
|
},
|
|
209
209
|
});
|
|
210
210
|
if (!validSubject) {
|
|
211
|
-
throw new Error(
|
|
211
|
+
throw new Error(errorMessages_1.FEEREMINDER_ERROR_MESSAGES.SUBJECT_INVALID);
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
if (feeReminder.feeCollectionId) {
|
|
215
|
-
const validFeeCollection = await
|
|
215
|
+
const validFeeCollection = await feesCollectionModel_1.default.findOne({
|
|
216
216
|
where: {
|
|
217
217
|
userId,
|
|
218
218
|
instituteId,
|
|
219
|
-
status: { [sequelize_1.Op.ne]:
|
|
219
|
+
status: { [sequelize_1.Op.ne]: app_1.FEE_PAYMENT_STATUS.COMPLETED },
|
|
220
220
|
},
|
|
221
221
|
});
|
|
222
222
|
if (!validFeeCollection) {
|
|
223
|
-
throw new Error(
|
|
223
|
+
throw new Error(errorMessages_1.FEEREMINDER_ERROR_MESSAGES.FEE_COLLECTION_NOT_FOUND);
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
else {
|
|
228
|
-
throw new Error(
|
|
228
|
+
throw new Error(errorMessages_1.FEEREMINDER_ERROR_MESSAGES.INVALID_INPUT);
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
231
|
FeeReminderModel.beforeBulkCreate(async (feeReminders) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { IFeeReminderSettingModelAttributes } from '../../interfaces/feeReminderSettingInterface
|
|
3
|
-
import { TFeeReminderSettingModelCreationAttributes } from '../../types/feeReminderSettingType
|
|
4
|
-
import { BOOLEAN_STATUS, FEE_REMINDER_SETTING_STATUS } from '../../constants/app
|
|
2
|
+
import { IFeeReminderSettingModelAttributes } from '../../interfaces/feeReminderSettingInterface';
|
|
3
|
+
import { TFeeReminderSettingModelCreationAttributes } from '../../types/feeReminderSettingType';
|
|
4
|
+
import { BOOLEAN_STATUS, FEE_REMINDER_SETTING_STATUS } from '../../constants/app';
|
|
5
5
|
declare class FeeReminderSettingModel extends Model<IFeeReminderSettingModelAttributes, TFeeReminderSettingModelCreationAttributes> {
|
|
6
6
|
id: string;
|
|
7
7
|
instituteId: string;
|
|
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const sequelize_1 = require("sequelize");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
7
|
+
const index_1 = require("./index");
|
|
8
|
+
const instituteModel_1 = __importDefault(require("./instituteModel"));
|
|
9
|
+
const userModel_1 = __importDefault(require("./userModel"));
|
|
10
|
+
const app_1 = require("../../constants/app");
|
|
11
11
|
class FeeReminderSettingModel extends sequelize_1.Model {
|
|
12
12
|
}
|
|
13
13
|
FeeReminderSettingModel.init({
|
|
@@ -26,13 +26,13 @@ FeeReminderSettingModel.init({
|
|
|
26
26
|
allowNull: false,
|
|
27
27
|
},
|
|
28
28
|
status: {
|
|
29
|
-
type: sequelize_1.DataTypes.ENUM(...Object.values(
|
|
29
|
+
type: sequelize_1.DataTypes.ENUM(...Object.values(app_1.FEE_REMINDER_SETTING_STATUS)),
|
|
30
30
|
allowNull: false,
|
|
31
|
-
defaultValue:
|
|
31
|
+
defaultValue: app_1.FEE_REMINDER_SETTING_STATUS.INACTIVE,
|
|
32
32
|
},
|
|
33
33
|
default: {
|
|
34
|
-
type: sequelize_1.DataTypes.ENUM(...Object.values(
|
|
35
|
-
defaultValue:
|
|
34
|
+
type: sequelize_1.DataTypes.ENUM(...Object.values(app_1.BOOLEAN_STATUS)),
|
|
35
|
+
defaultValue: app_1.BOOLEAN_STATUS.NO,
|
|
36
36
|
allowNull: false,
|
|
37
37
|
},
|
|
38
38
|
typeId: {
|
|
@@ -53,17 +53,17 @@ FeeReminderSettingModel.init({
|
|
|
53
53
|
modelName: 'FeeReminderSettingModel',
|
|
54
54
|
tableName: 'fee_reminder_settings',
|
|
55
55
|
timestamps: true,
|
|
56
|
-
sequelize:
|
|
56
|
+
sequelize: index_1.sequelize,
|
|
57
57
|
});
|
|
58
|
-
FeeReminderSettingModel.belongsTo(
|
|
58
|
+
FeeReminderSettingModel.belongsTo(instituteModel_1.default, {
|
|
59
59
|
foreignKey: {
|
|
60
60
|
name: 'instituteId',
|
|
61
61
|
field: 'institute_id',
|
|
62
62
|
},
|
|
63
63
|
as: 'settingInstitute',
|
|
64
64
|
});
|
|
65
|
-
|
|
66
|
-
FeeReminderSettingModel.belongsTo(
|
|
65
|
+
instituteModel_1.default.hasMany(FeeReminderSettingModel, { foreignKey: 'instituteId', as: 'instituteReminderSettings' });
|
|
66
|
+
FeeReminderSettingModel.belongsTo(userModel_1.default, {
|
|
67
67
|
foreignKey: {
|
|
68
68
|
name: 'createdBy',
|
|
69
69
|
allowNull: true,
|
|
@@ -71,7 +71,7 @@ FeeReminderSettingModel.belongsTo(userModel_js_1.default, {
|
|
|
71
71
|
},
|
|
72
72
|
as: 'createdByUser',
|
|
73
73
|
});
|
|
74
|
-
FeeReminderSettingModel.belongsTo(
|
|
74
|
+
FeeReminderSettingModel.belongsTo(userModel_1.default, {
|
|
75
75
|
foreignKey: {
|
|
76
76
|
name: 'updatedBy',
|
|
77
77
|
allowNull: true,
|
|
@@ -79,7 +79,7 @@ FeeReminderSettingModel.belongsTo(userModel_js_1.default, {
|
|
|
79
79
|
},
|
|
80
80
|
as: 'updatedByUser',
|
|
81
81
|
});
|
|
82
|
-
FeeReminderSettingModel.belongsTo(
|
|
82
|
+
FeeReminderSettingModel.belongsTo(userModel_1.default, {
|
|
83
83
|
foreignKey: {
|
|
84
84
|
name: 'deletedBy',
|
|
85
85
|
allowNull: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { IFeeTypeHasTermsModelAttributes } from '../../interfaces/feeTypeHasTermsInterface
|
|
3
|
-
import { TFeeTypeHasTermsModelCreationAttributes } from '../../types/feeTypeHasTermsType
|
|
4
|
-
import { PAYMENT_TERMS_TYPE } from '../../constants/app
|
|
2
|
+
import { IFeeTypeHasTermsModelAttributes } from '../../interfaces/feeTypeHasTermsInterface';
|
|
3
|
+
import { TFeeTypeHasTermsModelCreationAttributes } from '../../types/feeTypeHasTermsType';
|
|
4
|
+
import { PAYMENT_TERMS_TYPE } from '../../constants/app';
|
|
5
5
|
declare class FeeTypeHasTermsModel extends Model<IFeeTypeHasTermsModelAttributes, TFeeTypeHasTermsModelCreationAttributes> {
|
|
6
6
|
id: string;
|
|
7
7
|
stdId: string;
|