@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
|
@@ -35,16 +35,16 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.UserSchoolInfoSchema = void 0;
|
|
37
37
|
const mongoose_1 = __importStar(require("mongoose"));
|
|
38
|
-
const
|
|
38
|
+
const app_1 = require("../../constants/app");
|
|
39
39
|
const UserHasFilesSchema = new mongoose_1.Schema({
|
|
40
40
|
fileType: {
|
|
41
41
|
type: String,
|
|
42
|
-
enum: Object.values(
|
|
42
|
+
enum: Object.values(app_1.FILE_TYPE),
|
|
43
43
|
required: true,
|
|
44
44
|
},
|
|
45
45
|
status: {
|
|
46
46
|
type: String,
|
|
47
|
-
enum: Object.values(
|
|
47
|
+
enum: Object.values(app_1.COMMAN_STATUS),
|
|
48
48
|
required: true,
|
|
49
49
|
},
|
|
50
50
|
fileName: {
|
|
@@ -125,17 +125,17 @@ exports.UserSchoolInfoSchema = new mongoose_1.Schema({
|
|
|
125
125
|
},
|
|
126
126
|
category: {
|
|
127
127
|
type: String,
|
|
128
|
-
enum: Object.values(
|
|
128
|
+
enum: Object.values(app_1.CATEGORY),
|
|
129
129
|
required: false,
|
|
130
130
|
},
|
|
131
131
|
nationality: {
|
|
132
132
|
type: String,
|
|
133
|
-
enum: Object.values(
|
|
133
|
+
enum: Object.values(app_1.NATIONALITY),
|
|
134
134
|
required: false,
|
|
135
135
|
},
|
|
136
136
|
religionCaste: {
|
|
137
137
|
type: String,
|
|
138
|
-
enum: Object.values(
|
|
138
|
+
enum: Object.values(app_1.RELIGION_CASTE),
|
|
139
139
|
required: false,
|
|
140
140
|
},
|
|
141
141
|
caste: {
|
|
@@ -170,18 +170,18 @@ const ExperienceSchema = new mongoose_1.Schema({
|
|
|
170
170
|
},
|
|
171
171
|
employmentType: {
|
|
172
172
|
type: String,
|
|
173
|
-
enum: Object.values(
|
|
173
|
+
enum: Object.values(app_1.EMPLOYMENT_TYPE),
|
|
174
174
|
required: true,
|
|
175
175
|
},
|
|
176
176
|
status: {
|
|
177
177
|
type: String,
|
|
178
|
-
enum: Object.values(
|
|
179
|
-
default:
|
|
178
|
+
enum: Object.values(app_1.USER_INSTITUTE_META_STATUS),
|
|
179
|
+
default: app_1.USER_INSTITUTE_META_STATUS.LEFT,
|
|
180
180
|
required: true,
|
|
181
181
|
},
|
|
182
182
|
isPrincipal: {
|
|
183
183
|
type: String,
|
|
184
|
-
enum: Object.values(
|
|
184
|
+
enum: Object.values(app_1.IS_PRINCIPAL),
|
|
185
185
|
required: true,
|
|
186
186
|
},
|
|
187
187
|
startTime: {
|
|
@@ -194,7 +194,7 @@ const ExperienceSchema = new mongoose_1.Schema({
|
|
|
194
194
|
},
|
|
195
195
|
userType: {
|
|
196
196
|
type: String,
|
|
197
|
-
enum: Object.values(
|
|
197
|
+
enum: Object.values(app_1.USER_TYPES),
|
|
198
198
|
required: false,
|
|
199
199
|
},
|
|
200
200
|
isSchool: {
|
|
@@ -316,12 +316,12 @@ const EmergencyContactSchema = new mongoose_1.Schema({
|
|
|
316
316
|
const WorkingDesignationsSchema = new mongoose_1.Schema({
|
|
317
317
|
workCategory: {
|
|
318
318
|
type: String,
|
|
319
|
-
enum: Object.values(
|
|
319
|
+
enum: Object.values(app_1.WORK_CATEGORY),
|
|
320
320
|
required: false,
|
|
321
321
|
},
|
|
322
322
|
workType: {
|
|
323
323
|
type: String,
|
|
324
|
-
enum: Object.values(
|
|
324
|
+
enum: Object.values(app_1.WORK_TYPE),
|
|
325
325
|
required: false,
|
|
326
326
|
},
|
|
327
327
|
occupation: {
|
|
@@ -412,17 +412,17 @@ const userDetailsSchema = new mongoose_1.Schema({
|
|
|
412
412
|
},
|
|
413
413
|
category: {
|
|
414
414
|
type: String,
|
|
415
|
-
enum: Object.values(
|
|
415
|
+
enum: Object.values(app_1.CATEGORY),
|
|
416
416
|
required: false,
|
|
417
417
|
},
|
|
418
418
|
nationality: {
|
|
419
419
|
type: String,
|
|
420
|
-
enum: Object.values(
|
|
420
|
+
enum: Object.values(app_1.NATIONALITY),
|
|
421
421
|
required: false,
|
|
422
422
|
},
|
|
423
423
|
religionCaste: {
|
|
424
424
|
type: String,
|
|
425
|
-
enum: Object.values(
|
|
425
|
+
enum: Object.values(app_1.RELIGION_CASTE),
|
|
426
426
|
required: false,
|
|
427
427
|
},
|
|
428
428
|
caste: {
|
|
@@ -439,7 +439,7 @@ const userDetailsSchema = new mongoose_1.Schema({
|
|
|
439
439
|
},
|
|
440
440
|
numberType: {
|
|
441
441
|
type: String,
|
|
442
|
-
enum: Object.values(
|
|
442
|
+
enum: Object.values(app_1.NO_TYPE),
|
|
443
443
|
required: false,
|
|
444
444
|
},
|
|
445
445
|
workingDetails: {
|
|
@@ -449,12 +449,12 @@ const userDetailsSchema = new mongoose_1.Schema({
|
|
|
449
449
|
},
|
|
450
450
|
userDetailsType: {
|
|
451
451
|
type: String,
|
|
452
|
-
enum: Object.values(
|
|
452
|
+
enum: Object.values(app_1.USER_DETAILS),
|
|
453
453
|
required: false,
|
|
454
454
|
},
|
|
455
455
|
userDetails: {
|
|
456
456
|
type: String,
|
|
457
|
-
enum: Object.values(
|
|
457
|
+
enum: Object.values(app_1.DISABILITY_TYPE),
|
|
458
458
|
required: false,
|
|
459
459
|
},
|
|
460
460
|
uidNo: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
|
-
import { IUserInstituteMetaAttributes } from '../../interfaces/userInstituteMetaInterface
|
|
2
|
+
import { IUserInstituteMetaAttributes } from '../../interfaces/userInstituteMetaInterface';
|
|
3
3
|
declare const UserInstituteMeta: Model<IUserInstituteMetaAttributes>;
|
|
4
4
|
export default UserInstituteMeta;
|
|
@@ -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 userInstituteMetaService = container.resolve<IUserInstituteMetaService>(delay(() => UserInstituteMetaService));
|
|
39
39
|
const userInstituteMetaSlotsSchema = new mongoose_1.Schema({
|
|
40
40
|
slotId: {
|
|
@@ -67,8 +67,8 @@ const userInstituteMetaSchema = new mongoose_1.Schema({
|
|
|
67
67
|
// },
|
|
68
68
|
isPrincipal: {
|
|
69
69
|
type: String,
|
|
70
|
-
enum: Object.values(
|
|
71
|
-
default:
|
|
70
|
+
enum: Object.values(app_1.IS_PRINCIPAL),
|
|
71
|
+
default: app_1.BOOLEAN_STATUS.NO,
|
|
72
72
|
required: false,
|
|
73
73
|
},
|
|
74
74
|
userId: {
|
|
@@ -77,7 +77,7 @@ const userInstituteMetaSchema = new mongoose_1.Schema({
|
|
|
77
77
|
},
|
|
78
78
|
userType: {
|
|
79
79
|
type: String,
|
|
80
|
-
enum: Object.values(
|
|
80
|
+
enum: Object.values(app_1.USER_TYPES),
|
|
81
81
|
required: true,
|
|
82
82
|
},
|
|
83
83
|
joiningDate: {
|
|
@@ -114,27 +114,27 @@ const userInstituteMetaSchema = new mongoose_1.Schema({
|
|
|
114
114
|
},
|
|
115
115
|
employmentType: {
|
|
116
116
|
type: String,
|
|
117
|
-
enum: Object.values(
|
|
117
|
+
enum: Object.values(app_1.EMPLOYMENT_TYPE),
|
|
118
118
|
required: false,
|
|
119
119
|
},
|
|
120
120
|
status: {
|
|
121
121
|
type: String,
|
|
122
|
-
enum: Object.values(
|
|
123
|
-
default:
|
|
122
|
+
enum: Object.values(app_1.USER_INSTITUTE_META_STATUS),
|
|
123
|
+
default: app_1.USER_INSTITUTE_META_STATUS.PENDING,
|
|
124
124
|
},
|
|
125
125
|
admissionType: {
|
|
126
126
|
type: String,
|
|
127
|
-
enum: Object.values(
|
|
127
|
+
enum: Object.values(app_1.ADMISSION_TYPE),
|
|
128
128
|
},
|
|
129
129
|
details: {
|
|
130
130
|
type: String,
|
|
131
|
-
enum: Object.values(
|
|
132
|
-
default:
|
|
131
|
+
enum: Object.values(app_1.BOOLEAN_STATUS),
|
|
132
|
+
default: app_1.BOOLEAN_STATUS.NO,
|
|
133
133
|
},
|
|
134
134
|
isNewAdmission: {
|
|
135
135
|
type: String,
|
|
136
|
-
enum: Object.values(
|
|
137
|
-
default:
|
|
136
|
+
enum: Object.values(app_1.BOOLEAN_STATUS),
|
|
137
|
+
default: app_1.BOOLEAN_STATUS.NO,
|
|
138
138
|
},
|
|
139
139
|
startTime: {
|
|
140
140
|
type: Date,
|
|
@@ -156,8 +156,8 @@ const userInstituteMetaSchema = new mongoose_1.Schema({
|
|
|
156
156
|
},
|
|
157
157
|
isActive: {
|
|
158
158
|
type: String,
|
|
159
|
-
enum: Object.values(
|
|
160
|
-
default:
|
|
159
|
+
enum: Object.values(app_1.COMMAN_STATUS),
|
|
160
|
+
default: app_1.COMMAN_STATUS.ACTIVE,
|
|
161
161
|
},
|
|
162
162
|
rejectedDate: {
|
|
163
163
|
type: Date,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUserSchoolMetaModelAttributes } from '../../interfaces/userSchoolMetaInterface
|
|
1
|
+
import { IUserSchoolMetaModelAttributes } from '../../interfaces/userSchoolMetaInterface';
|
|
2
2
|
declare const UserSchoolMetaModel: import("mongoose").Model<IUserSchoolMetaModelAttributes, {}, {}, {}, import("mongoose").Document<unknown, {}, IUserSchoolMetaModelAttributes, {}, {}> & IUserSchoolMetaModelAttributes & Required<{
|
|
3
3
|
_id: unknown;
|
|
4
4
|
}> & {
|
|
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const mongoose_1 = require("mongoose");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
7
|
+
const app_1 = require("../../constants/app");
|
|
8
|
+
const errorMessages_1 = require("../../constants/errorMessages");
|
|
9
|
+
const countryModel_1 = __importDefault(require("../psql/countryModel"));
|
|
10
|
+
const cityModel_1 = __importDefault(require("../psql/cityModel"));
|
|
11
|
+
const stateModel_1 = __importDefault(require("../psql/stateModel"));
|
|
12
|
+
const instituteModel_1 = __importDefault(require("../psql/instituteModel"));
|
|
13
13
|
const hscSscSchema = new mongoose_1.Schema({
|
|
14
14
|
centerCode: {
|
|
15
15
|
type: String,
|
|
@@ -35,17 +35,17 @@ const coInfrastructureSchema = new mongoose_1.Schema({
|
|
|
35
35
|
// },
|
|
36
36
|
hostel: {
|
|
37
37
|
type: String,
|
|
38
|
-
enum: Object.values(
|
|
38
|
+
enum: Object.values(app_1.BOOLEAN_STATUS),
|
|
39
39
|
required: false,
|
|
40
40
|
},
|
|
41
41
|
canteen: {
|
|
42
42
|
type: String,
|
|
43
|
-
enum: Object.values(
|
|
43
|
+
enum: Object.values(app_1.BOOLEAN_STATUS),
|
|
44
44
|
required: false,
|
|
45
45
|
},
|
|
46
46
|
transport: {
|
|
47
47
|
type: String,
|
|
48
|
-
enum: Object.values(
|
|
48
|
+
enum: Object.values(app_1.BOOLEAN_STATUS),
|
|
49
49
|
required: false,
|
|
50
50
|
},
|
|
51
51
|
}, { _id: false });
|
|
@@ -139,12 +139,12 @@ const trustInformationSchema = new mongoose_1.Schema({
|
|
|
139
139
|
},
|
|
140
140
|
trustType: {
|
|
141
141
|
type: String,
|
|
142
|
-
enum: Object.values(
|
|
142
|
+
enum: Object.values(app_1.TRUST_TYPE),
|
|
143
143
|
required: false,
|
|
144
144
|
},
|
|
145
145
|
trustRegisteredUnder: {
|
|
146
146
|
type: String,
|
|
147
|
-
enum: Object.values(
|
|
147
|
+
enum: Object.values(app_1.TRUST_REGISTERED_UNDER),
|
|
148
148
|
required: false,
|
|
149
149
|
},
|
|
150
150
|
trustName: {
|
|
@@ -214,7 +214,7 @@ const correspondentInformationSchema = new mongoose_1.Schema({
|
|
|
214
214
|
},
|
|
215
215
|
trustType: {
|
|
216
216
|
type: String,
|
|
217
|
-
enum: Object.values(
|
|
217
|
+
enum: Object.values(app_1.TRUST_TYPE),
|
|
218
218
|
required: false,
|
|
219
219
|
},
|
|
220
220
|
address1: {
|
|
@@ -279,8 +279,8 @@ const trustiesInformationSchema = new mongoose_1.Schema({
|
|
|
279
279
|
// },
|
|
280
280
|
isCorrespondent: {
|
|
281
281
|
type: String,
|
|
282
|
-
enum: Object.values(
|
|
283
|
-
default:
|
|
282
|
+
enum: Object.values(app_1.BOOLEAN_STATUS),
|
|
283
|
+
default: app_1.BOOLEAN_STATUS.NO,
|
|
284
284
|
required: false,
|
|
285
285
|
},
|
|
286
286
|
authorizedPerson: {
|
|
@@ -289,7 +289,7 @@ const trustiesInformationSchema = new mongoose_1.Schema({
|
|
|
289
289
|
},
|
|
290
290
|
designationOfPerson: {
|
|
291
291
|
type: String,
|
|
292
|
-
enum: Object.values(
|
|
292
|
+
enum: Object.values(app_1.DESIGNATION_OF_PERSON),
|
|
293
293
|
required: false,
|
|
294
294
|
},
|
|
295
295
|
address1: {
|
|
@@ -354,7 +354,7 @@ const buildingInformationSchema = new mongoose_1.Schema({
|
|
|
354
354
|
// },
|
|
355
355
|
buildingStatus: {
|
|
356
356
|
type: String,
|
|
357
|
-
enum: Object.values(
|
|
357
|
+
enum: Object.values(app_1.PROPERTY_STATUS),
|
|
358
358
|
required: false,
|
|
359
359
|
},
|
|
360
360
|
buildingOwnerName: {
|
|
@@ -363,12 +363,12 @@ const buildingInformationSchema = new mongoose_1.Schema({
|
|
|
363
363
|
},
|
|
364
364
|
compoundedWall: {
|
|
365
365
|
type: String,
|
|
366
|
-
enum: Object.values(
|
|
366
|
+
enum: Object.values(app_1.BOOLEAN_STATUS),
|
|
367
367
|
required: false,
|
|
368
368
|
},
|
|
369
369
|
playGroundStatus: {
|
|
370
370
|
type: String,
|
|
371
|
-
enum: Object.values(
|
|
371
|
+
enum: Object.values(app_1.PROPERTY_STATUS),
|
|
372
372
|
required: false,
|
|
373
373
|
},
|
|
374
374
|
playGroundOwnerName: {
|
|
@@ -381,12 +381,12 @@ const buildingInformationSchema = new mongoose_1.Schema({
|
|
|
381
381
|
},
|
|
382
382
|
buildingPlanOfSchoolSanctioned: {
|
|
383
383
|
type: String,
|
|
384
|
-
enum: Object.values(
|
|
384
|
+
enum: Object.values(app_1.BOOLEAN_STATUS),
|
|
385
385
|
required: false,
|
|
386
386
|
},
|
|
387
387
|
permissionTaken: {
|
|
388
388
|
type: String,
|
|
389
|
-
enum: Object.values(
|
|
389
|
+
enum: Object.values(app_1.BOOLEAN_STATUS),
|
|
390
390
|
required: false,
|
|
391
391
|
},
|
|
392
392
|
tpNumber: {
|
|
@@ -418,8 +418,8 @@ const userSchoolMetaModelSchema = new mongoose_1.Schema({
|
|
|
418
418
|
},
|
|
419
419
|
isSubmitted: {
|
|
420
420
|
type: String,
|
|
421
|
-
enum: Object.values(
|
|
422
|
-
default:
|
|
421
|
+
enum: Object.values(app_1.BOOLEAN_STATUS),
|
|
422
|
+
default: app_1.BOOLEAN_STATUS.NO,
|
|
423
423
|
required: false,
|
|
424
424
|
},
|
|
425
425
|
schoolInformation: {
|
|
@@ -462,9 +462,9 @@ userSchoolMetaModelSchema.pre('save', async function (next) {
|
|
|
462
462
|
await Promise.all([
|
|
463
463
|
(async () => {
|
|
464
464
|
if (userSchoolMeta.instituteId) {
|
|
465
|
-
const institute = await
|
|
465
|
+
const institute = await instituteModel_1.default.findByPk(userSchoolMeta.instituteId);
|
|
466
466
|
if (!institute) {
|
|
467
|
-
throw new Error(
|
|
467
|
+
throw new Error(errorMessages_1.INSTITUTE_ERROR_MESSAGES.NOT_FOUND);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
})(),
|
|
@@ -482,17 +482,17 @@ userSchoolMetaModelSchema.pre('save', async function (next) {
|
|
|
482
482
|
if (userSchoolMeta.correspondentInformation?.length) {
|
|
483
483
|
await Promise.all(userSchoolMeta.correspondentInformation.map(async (correspondent) => {
|
|
484
484
|
if (correspondent.city) {
|
|
485
|
-
const cityExists = await
|
|
485
|
+
const cityExists = await cityModel_1.default.findByPk(correspondent.city);
|
|
486
486
|
if (!cityExists)
|
|
487
487
|
throw new Error('City not found');
|
|
488
488
|
}
|
|
489
489
|
if (correspondent.state) {
|
|
490
|
-
const stateExists = await
|
|
490
|
+
const stateExists = await stateModel_1.default.findByPk(correspondent.state);
|
|
491
491
|
if (!stateExists)
|
|
492
492
|
throw new Error('State not found');
|
|
493
493
|
}
|
|
494
494
|
if (correspondent.country) {
|
|
495
|
-
const countryExists = await
|
|
495
|
+
const countryExists = await countryModel_1.default.findByPk(correspondent.country);
|
|
496
496
|
if (!countryExists)
|
|
497
497
|
throw new Error('Country not found');
|
|
498
498
|
}
|
|
@@ -503,17 +503,17 @@ userSchoolMetaModelSchema.pre('save', async function (next) {
|
|
|
503
503
|
if (userSchoolMeta.trustInformation?.length) {
|
|
504
504
|
await Promise.all(userSchoolMeta.trustInformation.map(async (trust) => {
|
|
505
505
|
if (trust.city) {
|
|
506
|
-
const cityExists = await
|
|
506
|
+
const cityExists = await cityModel_1.default.findByPk(trust.city);
|
|
507
507
|
if (!cityExists)
|
|
508
508
|
throw new Error('City not found');
|
|
509
509
|
}
|
|
510
510
|
if (trust.state) {
|
|
511
|
-
const stateExists = await
|
|
511
|
+
const stateExists = await stateModel_1.default.findByPk(trust.state);
|
|
512
512
|
if (!stateExists)
|
|
513
513
|
throw new Error('State not found');
|
|
514
514
|
}
|
|
515
515
|
if (trust.country) {
|
|
516
|
-
const countryExists = await
|
|
516
|
+
const countryExists = await countryModel_1.default.findByPk(trust.country);
|
|
517
517
|
if (!countryExists)
|
|
518
518
|
throw new Error('Country not found');
|
|
519
519
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
|
-
import { IVideoAnalystModelAttributes } from '../../interfaces/videoAnalystInterface
|
|
2
|
+
import { IVideoAnalystModelAttributes } from '../../interfaces/videoAnalystInterface';
|
|
3
3
|
declare const VideoAnalystModel: Model<IVideoAnalystModelAttributes>;
|
|
4
4
|
export default VideoAnalystModel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
|
-
import { IWalletTransactionModelAttributes } from '../../interfaces/walletTransactionInterface
|
|
2
|
+
import { IWalletTransactionModelAttributes } from '../../interfaces/walletTransactionInterface';
|
|
3
3
|
declare const WalletTransactionModel: Model<IWalletTransactionModelAttributes>;
|
|
4
4
|
export default WalletTransactionModel;
|
|
@@ -34,8 +34,8 @@ 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
|
|
38
|
-
const
|
|
37
|
+
const app_1 = require("../../constants/app");
|
|
38
|
+
const utils_1 = require("../../helpers/utils");
|
|
39
39
|
const date_fns_1 = require("date-fns");
|
|
40
40
|
// --- Sub-schema for users in transaction ---
|
|
41
41
|
const walletTransactionUsersSchema = new mongoose_1.Schema({
|
|
@@ -49,12 +49,12 @@ const walletTransactionUsersSchema = new mongoose_1.Schema({
|
|
|
49
49
|
},
|
|
50
50
|
type: {
|
|
51
51
|
type: String,
|
|
52
|
-
enum: Object.values(
|
|
52
|
+
enum: Object.values(app_1.WALLET_TRANSACTION_USERS_TYPE),
|
|
53
53
|
required: true,
|
|
54
54
|
},
|
|
55
55
|
action: {
|
|
56
56
|
type: String,
|
|
57
|
-
enum: Object.values(
|
|
57
|
+
enum: Object.values(app_1.WALLET_HISTORY_ACTION),
|
|
58
58
|
required: true,
|
|
59
59
|
},
|
|
60
60
|
walletHistoryId: {
|
|
@@ -73,7 +73,7 @@ const walletTransactionSchema = new mongoose_1.Schema({
|
|
|
73
73
|
type: String,
|
|
74
74
|
required: true,
|
|
75
75
|
unique: true,
|
|
76
|
-
default: () => (0,
|
|
76
|
+
default: () => (0, utils_1.generateUuidToNumber)(),
|
|
77
77
|
},
|
|
78
78
|
ptId: {
|
|
79
79
|
type: String,
|
|
@@ -86,7 +86,7 @@ const walletTransactionSchema = new mongoose_1.Schema({
|
|
|
86
86
|
},
|
|
87
87
|
type: {
|
|
88
88
|
type: String,
|
|
89
|
-
enum: Object.values(
|
|
89
|
+
enum: Object.values(app_1.WALLET_HISTORY_TYPE),
|
|
90
90
|
required: true,
|
|
91
91
|
},
|
|
92
92
|
// userType: {
|
|
@@ -104,7 +104,7 @@ const walletTransactionSchema = new mongoose_1.Schema({
|
|
|
104
104
|
},
|
|
105
105
|
itemType: {
|
|
106
106
|
type: String,
|
|
107
|
-
enum: Object.values(
|
|
107
|
+
enum: Object.values(app_1.WALLET_HISTORY_ITEM_TYPE),
|
|
108
108
|
required: true,
|
|
109
109
|
},
|
|
110
110
|
item: {
|
|
@@ -113,8 +113,8 @@ const walletTransactionSchema = new mongoose_1.Schema({
|
|
|
113
113
|
},
|
|
114
114
|
status: {
|
|
115
115
|
type: String,
|
|
116
|
-
enum: Object.values(
|
|
117
|
-
default:
|
|
116
|
+
enum: Object.values(app_1.WALLET_HISTORY_STATUS),
|
|
117
|
+
default: app_1.WALLET_HISTORY_STATUS.PENDING,
|
|
118
118
|
required: true,
|
|
119
119
|
},
|
|
120
120
|
orderDetails: {
|
|
@@ -128,7 +128,7 @@ const walletTransactionSchema = new mongoose_1.Schema({
|
|
|
128
128
|
},
|
|
129
129
|
validDate: {
|
|
130
130
|
type: Date,
|
|
131
|
-
default: (0, date_fns_1.addMinutes)(new Date(),
|
|
131
|
+
default: (0, date_fns_1.addMinutes)(new Date(), app_1.WALLET_TRANSACTION_VALID_DATE_IN_MINUTES),
|
|
132
132
|
required: false,
|
|
133
133
|
},
|
|
134
134
|
isOtpVerified: {
|
|
@@ -142,9 +142,9 @@ const walletTransactionSchema = new mongoose_1.Schema({
|
|
|
142
142
|
},
|
|
143
143
|
paymentGateWayType: {
|
|
144
144
|
type: String,
|
|
145
|
-
enum: Object.values(
|
|
145
|
+
enum: Object.values(app_1.PAYMENT_GATEWAY_TYPES),
|
|
146
146
|
required: false,
|
|
147
|
-
default:
|
|
147
|
+
default: app_1.PAYMENT_GATEWAY_TYPES.COIN,
|
|
148
148
|
},
|
|
149
149
|
token: {
|
|
150
150
|
type: String,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { ISubCategoriesModelAttributes } from '../../interfaces/subCategoriesInterface
|
|
3
|
-
import { TSubCategoriesModelCreationAttributes } from '../../types/subCategoryType
|
|
4
|
-
import { COMMAN_STATUS } from '../../constants/app
|
|
2
|
+
import { ISubCategoriesModelAttributes } from '../../interfaces/subCategoriesInterface';
|
|
3
|
+
import { TSubCategoriesModelCreationAttributes } from '../../types/subCategoryType';
|
|
4
|
+
import { COMMAN_STATUS } from '../../constants/app';
|
|
5
5
|
declare class SubCategoriesModel extends Model<ISubCategoriesModelAttributes, TSubCategoriesModelCreationAttributes> {
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
@@ -4,11 +4,11 @@ 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
|
|
7
|
+
const app_1 = require("../../constants/app");
|
|
8
|
+
const instituteModel_1 = __importDefault(require("./instituteModel"));
|
|
9
|
+
const index_1 = require("./index");
|
|
10
|
+
const userModel_1 = __importDefault(require("./userModel"));
|
|
11
|
+
const categoriesModel_1 = __importDefault(require("./categoriesModel"));
|
|
12
12
|
class SubCategoriesModel extends sequelize_1.Model {
|
|
13
13
|
}
|
|
14
14
|
SubCategoriesModel.init({
|
|
@@ -35,15 +35,15 @@ SubCategoriesModel.init({
|
|
|
35
35
|
status: {
|
|
36
36
|
type: sequelize_1.DataTypes.STRING(30),
|
|
37
37
|
allowNull: true,
|
|
38
|
-
defaultValue:
|
|
38
|
+
defaultValue: app_1.COMMAN_STATUS.ACTIVE,
|
|
39
39
|
},
|
|
40
40
|
}, {
|
|
41
41
|
modelName: 'SubCategoriesModel',
|
|
42
42
|
tableName: 'sub_categories',
|
|
43
43
|
timestamps: true,
|
|
44
|
-
sequelize:
|
|
44
|
+
sequelize: index_1.sequelize,
|
|
45
45
|
});
|
|
46
|
-
SubCategoriesModel.belongsTo(
|
|
46
|
+
SubCategoriesModel.belongsTo(userModel_1.default, {
|
|
47
47
|
foreignKey: {
|
|
48
48
|
name: 'createdBy',
|
|
49
49
|
allowNull: true,
|
|
@@ -51,7 +51,7 @@ SubCategoriesModel.belongsTo(userModel_js_1.default, {
|
|
|
51
51
|
},
|
|
52
52
|
as: 'createdByUser',
|
|
53
53
|
});
|
|
54
|
-
SubCategoriesModel.belongsTo(
|
|
54
|
+
SubCategoriesModel.belongsTo(userModel_1.default, {
|
|
55
55
|
foreignKey: {
|
|
56
56
|
name: 'updatedBy',
|
|
57
57
|
allowNull: true,
|
|
@@ -59,7 +59,7 @@ SubCategoriesModel.belongsTo(userModel_js_1.default, {
|
|
|
59
59
|
},
|
|
60
60
|
as: 'updatedByUser',
|
|
61
61
|
});
|
|
62
|
-
SubCategoriesModel.belongsTo(
|
|
62
|
+
SubCategoriesModel.belongsTo(userModel_1.default, {
|
|
63
63
|
foreignKey: {
|
|
64
64
|
name: 'deletedBy',
|
|
65
65
|
allowNull: true,
|
|
@@ -67,7 +67,7 @@ SubCategoriesModel.belongsTo(userModel_js_1.default, {
|
|
|
67
67
|
},
|
|
68
68
|
as: 'deletedByUser',
|
|
69
69
|
});
|
|
70
|
-
SubCategoriesModel.belongsTo(
|
|
70
|
+
SubCategoriesModel.belongsTo(instituteModel_1.default, {
|
|
71
71
|
foreignKey: {
|
|
72
72
|
name: 'instituteId',
|
|
73
73
|
field: 'institute_id',
|
|
@@ -75,7 +75,7 @@ SubCategoriesModel.belongsTo(instituteModel_js_1.default, {
|
|
|
75
75
|
},
|
|
76
76
|
as: 'instituteSubCategory',
|
|
77
77
|
});
|
|
78
|
-
|
|
78
|
+
instituteModel_1.default.hasMany(SubCategoriesModel, {
|
|
79
79
|
foreignKey: {
|
|
80
80
|
name: 'instituteId',
|
|
81
81
|
field: 'institute_id',
|
|
@@ -83,7 +83,7 @@ instituteModel_js_1.default.hasMany(SubCategoriesModel, {
|
|
|
83
83
|
},
|
|
84
84
|
as: 'categoriesInstitute',
|
|
85
85
|
});
|
|
86
|
-
SubCategoriesModel.belongsTo(
|
|
86
|
+
SubCategoriesModel.belongsTo(categoriesModel_1.default, {
|
|
87
87
|
foreignKey: {
|
|
88
88
|
name: 'categoryId',
|
|
89
89
|
field: 'category_id',
|
|
@@ -91,7 +91,7 @@ SubCategoriesModel.belongsTo(categoriesModel_js_1.default, {
|
|
|
91
91
|
},
|
|
92
92
|
as: 'categories',
|
|
93
93
|
});
|
|
94
|
-
|
|
94
|
+
categoriesModel_1.default.hasMany(SubCategoriesModel, {
|
|
95
95
|
foreignKey: {
|
|
96
96
|
name: 'categoryId',
|
|
97
97
|
field: 'category_id',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { IAcademicCalendarModelAttributes } from '../../interfaces/academicCalendarInterface
|
|
3
|
-
import { TAcademicCalendarModelCreationAttributes } from '../../types/academicCalendarType
|
|
4
|
-
import { ACADEMIC_CALENDARS_STATUS } from '../../constants/app
|
|
2
|
+
import { IAcademicCalendarModelAttributes } from '../../interfaces/academicCalendarInterface';
|
|
3
|
+
import { TAcademicCalendarModelCreationAttributes } from '../../types/academicCalendarType';
|
|
4
|
+
import { ACADEMIC_CALENDARS_STATUS } from '../../constants/app';
|
|
5
5
|
declare class AcademicCalendarModel extends Model<IAcademicCalendarModelAttributes, TAcademicCalendarModelCreationAttributes> {
|
|
6
6
|
id: string;
|
|
7
7
|
instituteId: string;
|