@kipicore/dbcore 1.1.0 → 1.1.1
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/dist/scripts/fix-import-extensions.js +12 -7
- package/dist/scripts/generate-index.js +12 -7
- package/dist/src/configs/aws.js +9 -6
- package/dist/src/configs/env.js +56 -17
- package/dist/src/configs/postgresConfig.js +1 -1
- package/dist/src/constants/app.js +318 -312
- package/dist/src/constants/defaultModelAttributes.js +12 -9
- package/dist/src/constants/errorMessages.js +219 -214
- package/dist/src/constants/httpStatusCode.js +5 -2
- package/dist/src/constants/successMessages.js +223 -217
- package/dist/src/db/mongodb.js +10 -3
- package/dist/src/db/postgres.js +5 -2
- package/dist/src/db/psql/index.js +1 -1
- package/dist/src/db/psql/migrations/20241225101052-add-deleted-by-and-deleted-at-fields.js +0 -1
- package/dist/src/db/psql/migrations/20250106070945-add-user-fields-and-deleted-user-fields.js +0 -1
- package/dist/src/db/psql/migrations/20250106080059-add-fields-and-deleted-fields.js +0 -1
- package/dist/src/db/psql/migrations/20250108092439-update-batch-model-fields.js +0 -1
- package/dist/src/db/psql/migrations/20250210102846-add-profileImage-coverImage-to-users.js +0 -1
- package/dist/src/db/psql/migrations/20250211071743-add-action-user-has-histroy.js +0 -1
- package/dist/src/db/psql/migrations/20250213140815-add-assignQuantity-user-has-histroy.js +0 -1
- package/dist/src/db/psql/migrations/20250214072626-add-middlename-user.js +0 -1
- package/dist/src/db/psql/migrations/20250224085333-add-apptype-in-user.js +0 -1
- package/dist/src/db/psql/migrations/20250226053006-add-brouchure-in-institute.js +0 -1
- package/dist/src/db/psql/migrations/20250227123530-add-defult-in-fee-reminder.js +0 -1
- package/dist/src/db/psql/migrations/20250304052831-add-institued-in-school-data-clm.js +0 -1
- package/dist/src/db/psql/migrations/20250306053557-add-shifyId-in-batch.js +0 -1
- package/dist/src/db/psql/migrations/20250311044606-add-institued-in-school-data-clm-subtype.js +0 -1
- package/dist/src/db/psql/migrations/20250402090653-add-user-area.js +0 -1
- package/dist/src/db/psql/migrations/20250407094125-update-type-in-typeManagement.js +0 -1
- package/dist/src/db/psql/migrations/20250409105229-add-user-type-in-role.js +0 -1
- package/dist/src/db/psql/migrations/20250417121316-make-institute-id-nullable-in-type-management.js +0 -1
- package/dist/src/db/psql/migrations/20250419071236-fee_histroy_add_school_clm.js +0 -1
- package/dist/src/db/psql/migrations/20250419085334-fee_histroy_add_school_clm.js +0 -1
- package/dist/src/db/psql/migrations/20250421085618-add-entityIds-field-in-announcements.js +0 -1
- package/dist/src/db/psql/migrations/20250422114032-add-account.js +0 -1
- package/dist/src/db/psql/migrations/20250423051841-add-master-leave-clm.js +0 -1
- package/dist/src/db/psql/migrations/20250423064522-update-calender-enum.js +0 -1
- package/dist/src/db/psql/migrations/20250423093827-update-institued-district.js +0 -1
- package/dist/src/db/psql/migrations/20250424044755-update-fee-history-feeTyps-clm.js +0 -1
- package/dist/src/db/psql/migrations/20250424053841-update-fee-history-key.js +1 -1
- package/dist/src/db/psql/migrations/20250426070309-update-banner-clm-userType.js +0 -1
- package/dist/src/db/psql/migrations/20250505035157-update-fee-collection-clm-add.js +0 -1
- package/dist/src/db/psql/migrations/20250505082924-update-banner-clm.js +0 -1
- package/dist/src/db/psql/migrations/20250505094616-about-as-clm-in-institued.js +0 -1
- package/dist/src/db/psql/migrations/20250506070110-add-dayOfWeek-clm-in-working-model.js +0 -1
- package/dist/src/db/psql/migrations/20250509055920-add-feecollection-isleft-clm.js +0 -1
- package/dist/src/db/psql/migrations/20250513061037-add-techer-clm-batch.js +0 -1
- package/dist/src/db/psql/migrations/20250514101801-add-slotId-workingShif.js +0 -1
- package/dist/src/db/psql/migrations/20250516062917-add-globalId-clm-user-model.js +0 -1
- package/dist/src/db/psql/migrations/20250516063542-add-globalId-clm-institute-model.js +0 -1
- package/dist/src/db/psql/migrations/20250520061231-add-institued_mobile_person_data.js +0 -1
- package/dist/src/db/psql/migrations/20250522044729-add-institued_update_add_2.js +0 -1
- package/dist/src/db/psql/migrations/20250526035543-add-totalQuantity_add_remainingQuantiy_clm_userHasInventoryHistory.js +0 -1
- package/dist/src/db/psql/migrations/20250526093322-add-appType_clm_in_module.js +0 -1
- package/dist/src/db/psql/migrations/20250526094030-add-appType_clm_in_action.js +0 -1
- package/dist/src/db/psql/migrations/20250526094233-add-appType_clm_in_module_features.js +0 -1
- package/dist/src/db/psql/migrations/20250527065001-add-app-type-in-role-model.js +0 -1
- package/dist/src/db/psql/migrations/20250528045906-add-module-type-to-notifications.js +0 -1
- package/dist/src/db/psql/migrations/20250602090331-add-or-update-user-model-medicalHistory.js +0 -1
- package/dist/src/db/psql/migrations/20250602100550-add-planner-sync-status-to-institute.js +0 -1
- package/dist/src/db/psql/migrations/20250603054900-add-clm-for-defult-data-add-or-not-in-ins-model.js +0 -1
- package/dist/src/db/psql/migrations/20250604103905-add-is-institute-default-field-in-role.js +0 -1
- package/dist/src/db/psql/migrations/20250604121051-update-mobile-number-opstion.js +0 -1
- package/dist/src/db/psql/migrations/20250617064159-update-type-management-jun-17.js +0 -1
- package/dist/src/db/psql/migrations/20250627065013-is-institute-default-added-type-managemente.js +0 -1
- package/dist/src/db/psql/migrations/20250701095321-add-clm-institute-pdfId.js +0 -1
- package/dist/src/db/psql/migrations/20250704102117-add-clm-isDefult-in-typeManagemet.js +0 -1
- package/dist/src/db/psql/migrations/20250715103324-add-academic-calendar-id-to-batches.js +0 -1
- package/dist/src/db/psql/migrations/20250715121047-remove-batch-id-from-academic-calendars.js +0 -1
- package/dist/src/db/psql/migrations/20250716131731-rename-user-id-to-primary-user-id.js +0 -1
- package/dist/src/db/psql/migrations/20250717092933-add-floor-id-to-class-rooms.js +0 -1
- package/dist/src/db/psql/migrations/20250718121251-add-clm-classroom-typeid.js +0 -1
- package/dist/src/db/psql/migrations/20250721065317-add-instituteId-fileSize-to-fileStorage.js +0 -1
- package/dist/src/db/psql/migrations/20250721100004-add-shift-slot-id-to-lectures.js +0 -1
- package/dist/src/db/psql/migrations/20250721105455-add-clm-classroom-add-classroomnumber.js +0 -1
- package/dist/src/db/psql/migrations/20250722071836-add-title-to-floor-management.js +0 -1
- package/dist/src/db/psql/migrations/20250723150111-add-clm-batch-slotId.js +0 -1
- package/dist/src/db/psql/migrations/20250724062458-update_classRoom_number_clm_to_string.js +0 -1
- package/dist/src/db/psql/migrations/20250725132424-add-unique-index-on-instituteId-name-type.js +0 -1
- package/dist/src/db/psql/migrations/20250730104844-update-unique-key-assessment-type.js +0 -1
- package/dist/src/db/psql/migrations/20250804090437-update_ins_in_pdf_id_string_to_uuid.js +0 -1
- package/dist/src/db/psql/migrations/20250805062440-remove_unique_key_into_batch_subject_project_assessments.js +0 -1
- package/dist/src/db/psql/migrations/20250805115805-add-descriptions-to-lectures.js +0 -1
- package/dist/src/db/psql/migrations/20250808100700-add_clm_contectFeed_in_ins_givenId.js +0 -1
- package/dist/src/db/psql/migrations/20250808101515-add-sequence-to-institute_entities.js +0 -1
- package/dist/src/db/psql/migrations/20250812080521-add-title-and-descriptions-to-batch-subject-project-assessments.js +0 -1
- package/dist/src/db/psql/migrations/20250820092836-add-sequence-number-to-institute-entities.js +0 -1
- package/dist/src/db/psql/migrations/20250829103203-remove-syllabus-composit-index.js +0 -1
- package/dist/src/db/psql/migrations/20250905132024-add-uuid-to-users.js +0 -1
- package/dist/src/db/psql/migrations/20250908054025-userHasOffer_model_update.js +0 -1
- package/dist/src/db/psql/migrations/20250908054754-offer_in_add_offertype_clm.js +0 -1
- package/dist/src/db/psql/migrations/20250909061117-add-instituteId-isDefault-to-entityGroup.js +0 -1
- package/dist/src/db/psql/migrations/20250911060106-change-wallet-history-columns-to-float.js +0 -1
- package/dist/src/db/psql/migrations/20250911060245-change-coin-to-float-in-wallets.js +0 -1
- package/dist/src/db/psql/migrations/20250917135646-change-storageInBytes-to-float.js +0 -1
- package/dist/src/db/psql/seeders/20240809100759-add-countries-states-cities.js +1 -1
- package/dist/src/db/psql/seeders/20250101122757-add-default-permissions-modules.js +0 -1
- package/dist/src/db/psql/seeders/Data/AcademicCalendarModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/AdministrativeStaffModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/AnnouncementsModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/AssetsModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/AttendanceModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/BannerModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/BatchModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/BoardModule .js +1 -1
- package/dist/src/db/psql/seeders/Data/BookAssessmentsModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/CategoriesModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/ClassroomModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/DivisionModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/EventModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/ExamsAndResultsModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/FacilityModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/FeeAndDiscountModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/FeedBackModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/FileModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/GenerateIdModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/HolidayModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/HomeworkModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/IndexModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/InquiryModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/InstituteModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/InventoryModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/JobApplyModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/LectureModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/ParentModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/PayoutModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/PdcChequesModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/PhotosGalleryModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/PlannerModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/ProjectAssessmentsModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/ReplaceTeacherModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/RoleModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/RollNumberModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/SchoolFeeModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/SchoolModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/SchoolRegistration.js +1 -1
- package/dist/src/db/psql/seeders/Data/SettingsModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/StaffTimingModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/StudentModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/SubjectModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/SyllabusManagementModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/TeacherModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/TestimonialsModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/TimetableModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/To-doModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/TypeManagementModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/UserModule.js +1 -1
- package/dist/src/db/psql/seeders/Data/appType.js +1 -1
- package/dist/src/helpers/s3Uploader.js +25 -17
- package/dist/src/helpers/utils.js +148 -69
- package/dist/src/index.js +431 -415
- package/dist/src/interfaces/academicCalendarInterface.js +2 -1
- package/dist/src/interfaces/accountHasReceiptDetailsInterface.js +2 -1
- package/dist/src/interfaces/announcementInterface.js +2 -1
- package/dist/src/interfaces/approvalRequestInterface.js +2 -1
- package/dist/src/interfaces/areaInterface.js +2 -1
- package/dist/src/interfaces/attendanceInterface.js +2 -1
- package/dist/src/interfaces/bankAccountDetailsInterface.js +2 -1
- package/dist/src/interfaces/bannerInterface.js +2 -1
- package/dist/src/interfaces/batchInterface.js +2 -1
- package/dist/src/interfaces/batchSubjectBookAssessmentInterface.js +2 -1
- package/dist/src/interfaces/batchSubjectProjectAssessmentInterface.js +2 -1
- package/dist/src/interfaces/blogInterface.js +2 -1
- package/dist/src/interfaces/bookAssessmentDateInterface.js +2 -1
- package/dist/src/interfaces/careerInterface.js +2 -1
- package/dist/src/interfaces/categoriesInterface.js +2 -1
- package/dist/src/interfaces/certificatesHistoryInterface.js +2 -1
- package/dist/src/interfaces/certificatesManagementInterface.js +2 -1
- package/dist/src/interfaces/cityInterface.js +2 -1
- package/dist/src/interfaces/classRoomInterface.js +2 -1
- package/dist/src/interfaces/cloudStorageInterface.js +2 -1
- package/dist/src/interfaces/coinPurchaseOfferInterface.js +2 -1
- package/dist/src/interfaces/columnInterface.js +2 -1
- package/dist/src/interfaces/commanInterface.js +2 -1
- package/dist/src/interfaces/contactFeedBackInterface.js +2 -1
- package/dist/src/interfaces/countryInterface.js +2 -1
- package/dist/src/interfaces/courseHasVisitorsInterface.js +2 -1
- package/dist/src/interfaces/courseInterface.js +2 -1
- package/dist/src/interfaces/dailyBookInterface.js +2 -1
- package/dist/src/interfaces/dashboardManagementInterface.js +2 -1
- package/dist/src/interfaces/driverInterface.js +2 -1
- package/dist/src/interfaces/entityGroupInterface.js +2 -1
- package/dist/src/interfaces/eventInterface.js +2 -1
- package/dist/src/interfaces/examGroupInterface.js +2 -1
- package/dist/src/interfaces/examHasAnswerSheetInterface.js +2 -1
- package/dist/src/interfaces/examInterface.js +2 -1
- package/dist/src/interfaces/facilityInterface.js +2 -1
- package/dist/src/interfaces/featureActionInterface.js +2 -1
- package/dist/src/interfaces/feeHistoryDetailsInterface.js +2 -1
- package/dist/src/interfaces/feeHistoryInterface.js +2 -1
- package/dist/src/interfaces/feeReminderInterface.js +2 -1
- package/dist/src/interfaces/feeReminderSettingInterface.js +2 -1
- package/dist/src/interfaces/feeReminderTypeInterface.js +2 -1
- package/dist/src/interfaces/feeTypeHasTermsInterface.js +2 -1
- package/dist/src/interfaces/feeTypeInterface.js +2 -1
- package/dist/src/interfaces/feedBackInterface.js +2 -1
- package/dist/src/interfaces/feesCollectionInterface.js +2 -1
- package/dist/src/interfaces/fileStorageInterface.js +2 -1
- package/dist/src/interfaces/floorManagementInterface.js +2 -1
- package/dist/src/interfaces/generateIdCardInterface.js +2 -1
- package/dist/src/interfaces/greetingsInterface.js +2 -1
- package/dist/src/interfaces/holidayInterface.js +2 -1
- package/dist/src/interfaces/homeworkInterface.js +2 -1
- package/dist/src/interfaces/informationSupportInterface.js +2 -1
- package/dist/src/interfaces/inquiryInterface.js +2 -1
- package/dist/src/interfaces/instituteEntityInterface.js +2 -1
- package/dist/src/interfaces/instituteEntityTypeInterface.js +2 -1
- package/dist/src/interfaces/instituteInterface.js +2 -1
- package/dist/src/interfaces/instituteSubscriptionPlanInterface.js +2 -1
- package/dist/src/interfaces/inventoryHistoryInterface.js +2 -1
- package/dist/src/interfaces/inventoryInterface.js +2 -1
- package/dist/src/interfaces/invoiceInterface.js +2 -1
- package/dist/src/interfaces/jobApplyInterface.js +2 -1
- package/dist/src/interfaces/lectureHistoryInterface.js +2 -1
- package/dist/src/interfaces/lectureInterface.js +2 -1
- package/dist/src/interfaces/masterLeaveInterface.js +2 -1
- package/dist/src/interfaces/moduleFeatureInterface.js +2 -1
- package/dist/src/interfaces/moduleInterface.js +2 -1
- package/dist/src/interfaces/offersInterface.js +2 -1
- package/dist/src/interfaces/paymentTermsInterface.js +2 -1
- package/dist/src/interfaces/pdcChequeInterface.js +2 -1
- package/dist/src/interfaces/pdcHistoryInterface.js +2 -1
- package/dist/src/interfaces/photosGalleryInterface.js +2 -1
- package/dist/src/interfaces/pincodeInterface.js +2 -1
- package/dist/src/interfaces/plannerInterface.js +2 -1
- package/dist/src/interfaces/productInterface.js +2 -1
- package/dist/src/interfaces/projectAssessmentOptionInterface.js +2 -1
- package/dist/src/interfaces/replaceTeacherInterface.js +2 -1
- package/dist/src/interfaces/roleInterface.js +2 -1
- package/dist/src/interfaces/rulesRegulationInterface.js +2 -1
- package/dist/src/interfaces/schoolFeeCollectionInterface.js +2 -1
- package/dist/src/interfaces/schoolFeeInterface.js +2 -1
- package/dist/src/interfaces/schoolOfferInterface.js +2 -1
- package/dist/src/interfaces/sendNotificationInerface.js +2 -1
- package/dist/src/interfaces/slotInterface.js +2 -1
- package/dist/src/interfaces/stateInterface.js +2 -1
- package/dist/src/interfaces/subCategoriesInterface.js +2 -1
- package/dist/src/interfaces/subjectHasFeeInterface.js +2 -1
- package/dist/src/interfaces/subjectHasPayFeeHistoryInterface.js +2 -1
- package/dist/src/interfaces/subjectIndexInterface.js +2 -1
- package/dist/src/interfaces/subscriptionPlanInterface.js +2 -1
- package/dist/src/interfaces/syllabusInterface.js +2 -1
- package/dist/src/interfaces/taskManagementInterface.js +2 -1
- package/dist/src/interfaces/testimonialInterface.js +2 -1
- package/dist/src/interfaces/toDoInterface.js +2 -1
- package/dist/src/interfaces/tokenInterface.js +2 -1
- package/dist/src/interfaces/tripInterface.js +2 -1
- package/dist/src/interfaces/typeManagementInterface.js +2 -1
- package/dist/src/interfaces/uniqueNumberCounterInterface.js +2 -1
- package/dist/src/interfaces/userBookAssessmentInterface.js +2 -1
- package/dist/src/interfaces/userDetailsInterface.js +2 -1
- package/dist/src/interfaces/userFeeTypeByAccountInterface.js +2 -1
- package/dist/src/interfaces/userFeeTypeInterface.js +2 -1
- package/dist/src/interfaces/userHasAnnouncementInterface.js +2 -1
- package/dist/src/interfaces/userHasBatchInterface.js +2 -1
- package/dist/src/interfaces/userHasCourseInterface.js +2 -1
- package/dist/src/interfaces/userHasDeviceInterface.js +2 -1
- package/dist/src/interfaces/userHasFeeTermsInterface.js +2 -1
- package/dist/src/interfaces/userHasFileInterface.js +2 -1
- package/dist/src/interfaces/userHasHomeWorkInterface.js +2 -1
- package/dist/src/interfaces/userHasInventoryHistoryInterface.js +2 -1
- package/dist/src/interfaces/userHasInventoryInterface.js +2 -1
- package/dist/src/interfaces/userHasLeaveHistoryInterface.js +2 -1
- package/dist/src/interfaces/userHasLeaveInterface.js +2 -1
- package/dist/src/interfaces/userHasOfferInterface.js +2 -1
- package/dist/src/interfaces/userHasParentInterface.js +2 -1
- package/dist/src/interfaces/userHasRoleInterface.js +2 -1
- package/dist/src/interfaces/userHasRollNumberInterface.js +2 -1
- package/dist/src/interfaces/userHasStorageInterface.js +2 -1
- package/dist/src/interfaces/userHasSubjectFeeInterface.js +2 -1
- package/dist/src/interfaces/userInstituteMetaInterface.js +2 -1
- package/dist/src/interfaces/userInterface.js +2 -1
- package/dist/src/interfaces/userLeaveRequestInterface.js +2 -1
- package/dist/src/interfaces/userMetaInterface.js +2 -1
- package/dist/src/interfaces/userPayoutDetailsInterface.js +2 -1
- package/dist/src/interfaces/userPayoutHistoryInterface.js +2 -1
- package/dist/src/interfaces/userPayoutInterface.js +2 -1
- package/dist/src/interfaces/userProjectAssessmentOptionInterface.js +2 -1
- package/dist/src/interfaces/userRequiredStepsInterface.js +2 -1
- package/dist/src/interfaces/userSchoolMetaInterface.js +2 -1
- package/dist/src/interfaces/vehicleInterface.js +2 -1
- package/dist/src/interfaces/vendorManagementInterface.js +2 -1
- package/dist/src/interfaces/videoAnalystInterface.js +2 -1
- package/dist/src/interfaces/walletHistoryInterface.js +2 -1
- package/dist/src/interfaces/walletInterface.js +2 -1
- package/dist/src/interfaces/walletTransactionInterface.js +2 -1
- package/dist/src/interfaces/workingDayInterface.js +2 -1
- package/dist/src/interfaces/workingShiftInterface.js +2 -1
- package/dist/src/models/mongodb/approvalRequestModel.js +43 -8
- package/dist/src/models/mongodb/attendanceModel.js +68 -30
- package/dist/src/models/mongodb/blogModel.js +46 -11
- package/dist/src/models/mongodb/careerModel.js +42 -7
- package/dist/src/models/mongodb/certificatesHistoryModel.js +39 -4
- package/dist/src/models/mongodb/certificatesManagementModel.js +42 -7
- package/dist/src/models/mongodb/columnModel.js +45 -10
- package/dist/src/models/mongodb/dailyBookModel.js +39 -4
- package/dist/src/models/mongodb/dashboardManagementModel.js +46 -11
- package/dist/src/models/mongodb/eventModel.js +58 -20
- package/dist/src/models/mongodb/examGroupModel.js +69 -31
- package/dist/src/models/mongodb/examHasAnswerSheetModel.js +56 -18
- package/dist/src/models/mongodb/examModel.js +76 -38
- package/dist/src/models/mongodb/feeReminderTypeModel.js +42 -7
- package/dist/src/models/mongodb/feedBackModel.js +43 -8
- package/dist/src/models/mongodb/generateIdCardModel.js +39 -4
- package/dist/src/models/mongodb/holidayModel.js +58 -20
- package/dist/src/models/mongodb/index.js +16 -11
- package/dist/src/models/mongodb/informationSupportModel.js +42 -7
- package/dist/src/models/mongodb/inquiryModel.js +67 -29
- package/dist/src/models/mongodb/invoiceModel.js +48 -13
- package/dist/src/models/mongodb/jobApplyModel.js +49 -14
- package/dist/src/models/mongodb/photosGalleryModel.js +46 -11
- package/dist/src/models/mongodb/plannerModel.js +45 -10
- package/dist/src/models/mongodb/plugin/addDefaultAttributesPlugin.js +4 -1
- package/dist/src/models/mongodb/plugin/transformIdInQueryPlugin.js +3 -1
- package/dist/src/models/mongodb/plugin/transformIdInResponsePlugin.js +8 -3
- package/dist/src/models/mongodb/replaceTeacherModel.js +46 -11
- package/dist/src/models/mongodb/schoolFeeModel.js +56 -18
- package/dist/src/models/mongodb/subjectIndexModel.js +152 -114
- package/dist/src/models/mongodb/subscriptionPlanModel.js +49 -14
- package/dist/src/models/mongodb/taskManagementModel.js +58 -20
- package/dist/src/models/mongodb/uniqueNumberCounterModel.js +42 -7
- package/dist/src/models/mongodb/userDetailsModel.js +68 -32
- package/dist/src/models/mongodb/userDoc.js +6 -3
- package/dist/src/models/mongodb/userInstituteMetaModel.js +54 -19
- package/dist/src/models/mongodb/userSchoolMetaModel.js +46 -41
- package/dist/src/models/mongodb/videoAnalystModel.js +40 -5
- package/dist/src/models/mongodb/walletTransactionModel.js +56 -21
- package/dist/src/models/psql/SubCategoriesModel.js +28 -23
- package/dist/src/models/psql/academicCalendarModel.js +26 -21
- package/dist/src/models/psql/accountHasReceiptDetailsModel.js +38 -33
- package/dist/src/models/psql/announcementModel.js +58 -53
- package/dist/src/models/psql/areaModel.js +17 -12
- package/dist/src/models/psql/bankAccountDetailsModel.js +35 -30
- package/dist/src/models/psql/bannerModel.js +40 -35
- package/dist/src/models/psql/batchModel.js +53 -48
- package/dist/src/models/psql/batchSubjectBookAssessmentModel.js +35 -30
- package/dist/src/models/psql/batchSubjectProjectAssessmentModel.js +35 -30
- package/dist/src/models/psql/bookAssessmentDateModel.js +25 -20
- package/dist/src/models/psql/categoriesModel.js +24 -19
- package/dist/src/models/psql/cityModel.js +21 -16
- package/dist/src/models/psql/classRoomModel.js +36 -31
- package/dist/src/models/psql/cloudStorageModel.js +30 -25
- package/dist/src/models/psql/coinPurchaseOfferModel.js +31 -26
- package/dist/src/models/psql/contactFeedBackModel.js +34 -29
- package/dist/src/models/psql/countryModel.js +13 -11
- package/dist/src/models/psql/courseHasVisitorsModel.js +22 -17
- package/dist/src/models/psql/courseModel.js +41 -36
- package/dist/src/models/psql/driverModel.js +51 -46
- package/dist/src/models/psql/entityGroupModel.js +29 -24
- package/dist/src/models/psql/facilityModel.js +34 -29
- package/dist/src/models/psql/featureActionModel.js +28 -23
- package/dist/src/models/psql/feeHistoryDetailsModel.js +45 -40
- package/dist/src/models/psql/feeHistoryModel.js +78 -73
- package/dist/src/models/psql/feeReminderModel.js +63 -58
- package/dist/src/models/psql/feeReminderSettingModel.js +27 -22
- package/dist/src/models/psql/feeTypeHasTermsModel.js +31 -26
- package/dist/src/models/psql/feeTypeModel.js +42 -37
- package/dist/src/models/psql/feesCollectionModel.js +55 -50
- package/dist/src/models/psql/fileStorageModel.js +26 -21
- package/dist/src/models/psql/floorManagementModel.js +25 -20
- package/dist/src/models/psql/greetingsModel.js +34 -29
- package/dist/src/models/psql/homeWorkModel.js +36 -31
- package/dist/src/models/psql/index.js +48 -7
- package/dist/src/models/psql/instituteEntityModel.js +34 -29
- package/dist/src/models/psql/instituteEntityTypeModel.js +25 -20
- package/dist/src/models/psql/instituteModel.js +70 -65
- package/dist/src/models/psql/instituteSubscriptionPlanModel.js +42 -37
- package/dist/src/models/psql/inventoryHistoryModel.js +42 -37
- package/dist/src/models/psql/inventoryModel.js +36 -31
- package/dist/src/models/psql/lectureHistoryModel.js +62 -57
- package/dist/src/models/psql/lectureModel.js +117 -112
- package/dist/src/models/psql/masterLeaveModel.js +41 -36
- package/dist/src/models/psql/moduleFeatureModel.js +29 -24
- package/dist/src/models/psql/moduleModel.js +30 -25
- package/dist/src/models/psql/offerModel.js +39 -34
- package/dist/src/models/psql/paymentTermsModel.js +35 -30
- package/dist/src/models/psql/pdcChequeModel.js +40 -35
- package/dist/src/models/psql/pdcHistoryModel.js +44 -39
- package/dist/src/models/psql/pincodeModel.js +28 -23
- package/dist/src/models/psql/productModel.js +32 -27
- package/dist/src/models/psql/projectAssessmentOptionModel.js +23 -18
- package/dist/src/models/psql/roleModel.js +26 -21
- package/dist/src/models/psql/rulesRegulationModel.js +23 -18
- package/dist/src/models/psql/schoolFeeCollectionModel.js +34 -29
- package/dist/src/models/psql/schoolOfferModel.js +43 -38
- package/dist/src/models/psql/sendNotificationModel.js +32 -27
- package/dist/src/models/psql/slotModel.js +27 -22
- package/dist/src/models/psql/stateModel.js +18 -13
- package/dist/src/models/psql/subjectHasFeeModel.js +25 -20
- package/dist/src/models/psql/subjectHasPayFeeHistoryModel.js +32 -27
- package/dist/src/models/psql/syllabusModel.js +31 -26
- package/dist/src/models/psql/testimonialModel.js +52 -47
- package/dist/src/models/psql/toDoModel.js +35 -30
- package/dist/src/models/psql/tokenModel.js +12 -10
- package/dist/src/models/psql/tripModel.js +34 -29
- package/dist/src/models/psql/typeManagementModel.js +32 -27
- package/dist/src/models/psql/userBookAssessmentModel.js +34 -29
- package/dist/src/models/psql/userFeeTypeByAccountModel.js +41 -36
- package/dist/src/models/psql/userFeeTypeModel.js +44 -39
- package/dist/src/models/psql/userHasAnnouncementModel.js +31 -26
- package/dist/src/models/psql/userHasBatchModel.js +24 -19
- package/dist/src/models/psql/userHasCourseModel.js +35 -30
- package/dist/src/models/psql/userHasDeviceModel.js +26 -21
- package/dist/src/models/psql/userHasFeeTermsModel.js +45 -40
- package/dist/src/models/psql/userHasFileModel.js +29 -24
- package/dist/src/models/psql/userHasHomeWorkModel.js +36 -31
- package/dist/src/models/psql/userHasInventoryHistoryModel.js +41 -36
- package/dist/src/models/psql/userHasInventoryModel.js +45 -40
- package/dist/src/models/psql/userHasLeaveHistoryModel.js +41 -36
- package/dist/src/models/psql/userHasLeaveModel.js +34 -29
- package/dist/src/models/psql/userHasOfferModel.js +36 -31
- package/dist/src/models/psql/userHasParentModel.js +31 -26
- package/dist/src/models/psql/userHasRoleModel.js +27 -22
- package/dist/src/models/psql/userHasRollNumberModel.js +28 -23
- package/dist/src/models/psql/userHasStorageModel.js +27 -22
- package/dist/src/models/psql/userHasSubjectFeeModel.js +27 -22
- package/dist/src/models/psql/userLeaveRequestModel.js +43 -38
- package/dist/src/models/psql/userModel.js +94 -89
- package/dist/src/models/psql/userPayoutDetailsModel.js +41 -36
- package/dist/src/models/psql/userPayoutHistoryModel.js +40 -35
- package/dist/src/models/psql/userPayoutModel.js +63 -58
- package/dist/src/models/psql/userProjectAssessmentOptionModel.js +31 -26
- package/dist/src/models/psql/userRequiredStepsModel.js +22 -17
- package/dist/src/models/psql/vehicleModel.js +30 -25
- package/dist/src/models/psql/vendorManagementModel.js +44 -39
- package/dist/src/models/psql/walletHistoryModel.js +34 -28
- package/dist/src/models/psql/walletModel.js +25 -20
- package/dist/src/models/psql/workingDayModel.js +24 -19
- package/dist/src/models/psql/workingShiftModel.js +34 -29
- package/dist/src/services/Concrete/mongooseCommonService.js +9 -5
- package/dist/src/services/Concrete/sequelizeCommanService.js +9 -6
- package/dist/src/services/Contracts/IMongooseCommonService.js +2 -1
- package/dist/src/services/Contracts/ISequelizeCommonService.js +2 -1
- package/dist/src/types/academicCalendarType.js +2 -1
- package/dist/src/types/accountHasReceiptDetailsType.js +2 -1
- package/dist/src/types/announcementType.js +2 -1
- package/dist/src/types/approveRequestType.js +2 -1
- package/dist/src/types/areaType.js +2 -1
- package/dist/src/types/attendanceType.js +2 -1
- package/dist/src/types/bankAccountDetailsType.js +2 -1
- package/dist/src/types/bannerType.js +2 -1
- package/dist/src/types/batchSubjectBookAssessmentType.js +2 -1
- package/dist/src/types/batchSubjectProjectAssessmentType.js +2 -1
- package/dist/src/types/batchType.js +2 -1
- package/dist/src/types/blogType.js +2 -1
- package/dist/src/types/bookAssessmentDateType.js +2 -1
- package/dist/src/types/careerType.js +2 -1
- package/dist/src/types/categoriesType.js +2 -1
- package/dist/src/types/certificatesHistoryType.js +2 -1
- package/dist/src/types/certificatesManagementType.js +2 -1
- package/dist/src/types/classRoomType.js +2 -1
- package/dist/src/types/cloudStorageType.js +2 -1
- package/dist/src/types/coinPurchaseOfferType.js +2 -1
- package/dist/src/types/commonType.js +2 -1
- package/dist/src/types/contactFeedBackType.js +2 -1
- package/dist/src/types/courseHasVisitorsType.js +2 -1
- package/dist/src/types/courseType.js +2 -1
- package/dist/src/types/dailyBookType.js +2 -1
- package/dist/src/types/dashboardManagementType.js +2 -1
- package/dist/src/types/driverType.js +2 -1
- package/dist/src/types/entityGroupType.js +2 -1
- package/dist/src/types/eventType.js +2 -1
- package/dist/src/types/examGroupType.js +2 -1
- package/dist/src/types/examHasAnswerSheetType.js +2 -1
- package/dist/src/types/examType.js +2 -1
- package/dist/src/types/facilityType.js +2 -1
- package/dist/src/types/featureActionType.js +2 -1
- package/dist/src/types/feeHistoryDetailsType.js +2 -1
- package/dist/src/types/feeHistoryType.js +2 -1
- package/dist/src/types/feeReminderSettingType.js +2 -1
- package/dist/src/types/feeReminderType.js +2 -1
- package/dist/src/types/feeReminderTypeType.js +2 -1
- package/dist/src/types/feeTypeHasTermsType.js +2 -1
- package/dist/src/types/feeTypeType.js +2 -1
- package/dist/src/types/feedBackType.js +2 -1
- package/dist/src/types/feesCollectionType.js +2 -1
- package/dist/src/types/fileStorageType.js +2 -1
- package/dist/src/types/floormanagementType.js +2 -1
- package/dist/src/types/generateIdCardType.js +2 -1
- package/dist/src/types/greetingsType.js +2 -1
- package/dist/src/types/holidayType.js +2 -1
- package/dist/src/types/homeWorkType.js +2 -1
- package/dist/src/types/informationSupportType.js +2 -1
- package/dist/src/types/inquiryType.js +2 -1
- package/dist/src/types/instituteEntityType.js +2 -1
- package/dist/src/types/instituteEntityTypeType.js +2 -1
- package/dist/src/types/instituteSubscriptionPlanType.js +2 -1
- package/dist/src/types/instituteType.js +2 -1
- package/dist/src/types/inventoryHistoryType.js +2 -1
- package/dist/src/types/inventoryType.js +2 -1
- package/dist/src/types/jobApply.js +2 -1
- package/dist/src/types/lectureHistoryType.js +2 -1
- package/dist/src/types/lectureType.js +2 -1
- package/dist/src/types/masterLeaveType.js +2 -1
- package/dist/src/types/moduleFeatureType.js +2 -1
- package/dist/src/types/moduleType.js +2 -1
- package/dist/src/types/offerType.js +2 -1
- package/dist/src/types/paymentTermsType.js +2 -1
- package/dist/src/types/pdcChequeType.js +2 -1
- package/dist/src/types/pdcHistoryType.js +2 -1
- package/dist/src/types/photosGalleryType.js +2 -1
- package/dist/src/types/plannerType.js +2 -1
- package/dist/src/types/productType.js +2 -1
- package/dist/src/types/projectAssessmentOptionType.js +2 -1
- package/dist/src/types/roleType.js +2 -1
- package/dist/src/types/rulesRegulationType.js +2 -1
- package/dist/src/types/schoolFeeCollectionType.js +2 -1
- package/dist/src/types/schoolFeeType.js +2 -1
- package/dist/src/types/schoolOfferType.js +2 -1
- package/dist/src/types/sendNotificationType.js +2 -1
- package/dist/src/types/slotType.js +2 -1
- package/dist/src/types/subCategoryType.js +2 -1
- package/dist/src/types/subjectHasFeeType.js +2 -1
- package/dist/src/types/subjectHasPayFeeHistoryType.js +2 -1
- package/dist/src/types/subjectIndexType.js +2 -1
- package/dist/src/types/subscriptionPlanType.js +2 -1
- package/dist/src/types/syllabusType.js +2 -1
- package/dist/src/types/taskManagementType.js +2 -1
- package/dist/src/types/testimonialType.js +2 -1
- package/dist/src/types/toDoType.js +2 -1
- package/dist/src/types/tripType.js +2 -1
- package/dist/src/types/typeManagementType.js +2 -1
- package/dist/src/types/uniqueNumberCounterType.js +2 -1
- package/dist/src/types/userBookAssessmentType.js +2 -1
- package/dist/src/types/userDetailsType.js +2 -1
- package/dist/src/types/userFeeTypeByAccountType.js +2 -1
- package/dist/src/types/userFeeTypeType.js +2 -1
- package/dist/src/types/userHasAnnouncementType.js +2 -1
- package/dist/src/types/userHasBatchType.js +2 -1
- package/dist/src/types/userHasCourseType.js +2 -1
- package/dist/src/types/userHasDeviceType.js +2 -1
- package/dist/src/types/userHasFeeTermsType.js +2 -1
- package/dist/src/types/userHasFileType.js +2 -1
- package/dist/src/types/userHasHomeWorkType.js +2 -1
- package/dist/src/types/userHasInventoryHistoryType.js +2 -1
- package/dist/src/types/userHasInventoryType.js +2 -1
- package/dist/src/types/userHasLeaveHistoryType.js +2 -1
- package/dist/src/types/userHasLeaveType.js +2 -1
- package/dist/src/types/userHasOffer.js +2 -1
- package/dist/src/types/userHasParentType.js +2 -1
- package/dist/src/types/userHasRoleType.js +2 -1
- package/dist/src/types/userHasRollNumberType.js +2 -1
- package/dist/src/types/userHasStorageType.js +2 -1
- package/dist/src/types/userHasSubjectFeeType.js +2 -1
- package/dist/src/types/userInstituteMetaType.js +2 -1
- package/dist/src/types/userLeaveRequestType.js +2 -1
- package/dist/src/types/userMetaType.js +2 -1
- package/dist/src/types/userPayoutDetailsType.js +2 -1
- package/dist/src/types/userPayoutHistoryType.js +2 -1
- package/dist/src/types/userPayoutType.js +2 -1
- package/dist/src/types/userProjectAssessmentOptionType.js +2 -1
- package/dist/src/types/userRequiredStepsType.js +2 -1
- package/dist/src/types/userSchoolMetaType.js +2 -1
- package/dist/src/types/userType.js +2 -1
- package/dist/src/types/vehicleType.js +2 -1
- package/dist/src/types/vendorType.js +2 -1
- package/dist/src/types/videoAnalystType.js +2 -1
- package/dist/src/types/walletHistoryType.js +2 -1
- package/dist/src/types/walletTransactionType.js +2 -1
- package/dist/src/types/walletType.js +2 -1
- package/dist/src/types/workingDayType.js +2 -1
- package/dist/src/types/workingShiftType.js +2 -1
- package/package.json +1 -1
|
@@ -1,14 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
40
|
+
const uuid_1 = require("uuid");
|
|
41
|
+
const app_js_1 = require("../../constants/app.js");
|
|
42
|
+
const sequelize_1 = require("sequelize");
|
|
43
|
+
const errorMessages_js_1 = require("../../constants/errorMessages.js");
|
|
44
|
+
const instituteModel_js_1 = __importDefault(require("../psql/instituteModel.js"));
|
|
45
|
+
const userModel_js_1 = __importDefault(require("../psql/userModel.js"));
|
|
46
|
+
const TaskConversationsSchema = new mongoose_1.Schema({
|
|
9
47
|
messageId: {
|
|
10
48
|
type: String,
|
|
11
|
-
default:
|
|
49
|
+
default: uuid_1.v4,
|
|
12
50
|
},
|
|
13
51
|
userId: {
|
|
14
52
|
type: String,
|
|
@@ -19,7 +57,7 @@ const TaskConversationsSchema = new Schema({
|
|
|
19
57
|
required: true,
|
|
20
58
|
},
|
|
21
59
|
parentId: {
|
|
22
|
-
type:
|
|
60
|
+
type: mongoose_1.default.Types.ObjectId,
|
|
23
61
|
required: false,
|
|
24
62
|
},
|
|
25
63
|
createdAt: {
|
|
@@ -29,7 +67,7 @@ const TaskConversationsSchema = new Schema({
|
|
|
29
67
|
type: Date,
|
|
30
68
|
},
|
|
31
69
|
}, { _id: false });
|
|
32
|
-
const TaskManagementModelSchema = new Schema({
|
|
70
|
+
const TaskManagementModelSchema = new mongoose_1.Schema({
|
|
33
71
|
title: {
|
|
34
72
|
type: String,
|
|
35
73
|
required: true,
|
|
@@ -59,9 +97,9 @@ const TaskManagementModelSchema = new Schema({
|
|
|
59
97
|
},
|
|
60
98
|
status: {
|
|
61
99
|
type: String,
|
|
62
|
-
enum: Object.values(TASK_MANAGEMENT_STATUS),
|
|
100
|
+
enum: Object.values(app_js_1.TASK_MANAGEMENT_STATUS),
|
|
63
101
|
required: true,
|
|
64
|
-
default: TASK_MANAGEMENT_STATUS.PENDING,
|
|
102
|
+
default: app_js_1.TASK_MANAGEMENT_STATUS.PENDING,
|
|
65
103
|
},
|
|
66
104
|
instituteId: {
|
|
67
105
|
type: String,
|
|
@@ -80,9 +118,9 @@ const TaskManagementModelSchema = new Schema({
|
|
|
80
118
|
const creatOrUpdateHook = async (task) => {
|
|
81
119
|
try {
|
|
82
120
|
if (task.instituteId) {
|
|
83
|
-
const institute = await
|
|
121
|
+
const institute = await instituteModel_js_1.default.findByPk(task.instituteId);
|
|
84
122
|
if (!institute)
|
|
85
|
-
throw new Error(INSTITUTE_ERROR_MESSAGES.NOT_FOUND);
|
|
123
|
+
throw new Error(errorMessages_js_1.INSTITUTE_ERROR_MESSAGES.NOT_FOUND);
|
|
86
124
|
}
|
|
87
125
|
let users = [
|
|
88
126
|
...(task.assignedUsers || []),
|
|
@@ -91,13 +129,13 @@ const creatOrUpdateHook = async (task) => {
|
|
|
91
129
|
];
|
|
92
130
|
users = [...new Set(users)];
|
|
93
131
|
if (users.length) {
|
|
94
|
-
const userCount = await
|
|
132
|
+
const userCount = await userModel_js_1.default.count({
|
|
95
133
|
where: {
|
|
96
|
-
id: { [Op.in]: users },
|
|
134
|
+
id: { [sequelize_1.Op.in]: users },
|
|
97
135
|
},
|
|
98
136
|
});
|
|
99
137
|
if (userCount !== users.length) {
|
|
100
|
-
throw new Error(USER_ERROR_MESSAGES.NOT_FOUND);
|
|
138
|
+
throw new Error(errorMessages_js_1.USER_ERROR_MESSAGES.NOT_FOUND);
|
|
101
139
|
}
|
|
102
140
|
}
|
|
103
141
|
}
|
|
@@ -125,5 +163,5 @@ TaskManagementModelSchema.pre("updateMany", async function (next) {
|
|
|
125
163
|
throw error;
|
|
126
164
|
}
|
|
127
165
|
});
|
|
128
|
-
const TaskManagementModel =
|
|
129
|
-
|
|
166
|
+
const TaskManagementModel = mongoose_1.default.model("task_managements", TaskManagementModelSchema);
|
|
167
|
+
exports.default = TaskManagementModel;
|
|
@@ -1,6 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
37
|
+
const app_js_1 = require("../../constants/app.js");
|
|
38
|
+
const uniqueNumberCounterSchema = new mongoose_1.Schema({
|
|
4
39
|
instituteId: {
|
|
5
40
|
type: String,
|
|
6
41
|
default: null,
|
|
@@ -13,13 +48,13 @@ const uniqueNumberCounterSchema = new Schema({
|
|
|
13
48
|
},
|
|
14
49
|
userType: {
|
|
15
50
|
type: String,
|
|
16
|
-
enum: Object.values(USER_TYPES),
|
|
51
|
+
enum: Object.values(app_js_1.USER_TYPES),
|
|
17
52
|
default: null,
|
|
18
53
|
required: false,
|
|
19
54
|
},
|
|
20
55
|
type: {
|
|
21
56
|
type: String,
|
|
22
|
-
enum: Object.values(TYPE_OF_USER),
|
|
57
|
+
enum: Object.values(app_js_1.TYPE_OF_USER),
|
|
23
58
|
default: null,
|
|
24
59
|
required: false,
|
|
25
60
|
},
|
|
@@ -44,5 +79,5 @@ const uniqueNumberCounterSchema = new Schema({
|
|
|
44
79
|
timestamps: true,
|
|
45
80
|
versionKey: false,
|
|
46
81
|
});
|
|
47
|
-
const UniqueNumberCounterModel =
|
|
48
|
-
|
|
82
|
+
const UniqueNumberCounterModel = mongoose_1.default.model('uniqueNumberCounter', uniqueNumberCounterSchema);
|
|
83
|
+
exports.default = UniqueNumberCounterModel;
|
|
@@ -1,14 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.UserSchoolInfoSchema = void 0;
|
|
37
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
38
|
+
const app_js_1 = require("../../constants/app.js");
|
|
39
|
+
const UserHasFilesSchema = new mongoose_1.Schema({
|
|
4
40
|
fileType: {
|
|
5
41
|
type: String,
|
|
6
|
-
enum: Object.values(FILE_TYPE),
|
|
42
|
+
enum: Object.values(app_js_1.FILE_TYPE),
|
|
7
43
|
required: true,
|
|
8
44
|
},
|
|
9
45
|
status: {
|
|
10
46
|
type: String,
|
|
11
|
-
enum: Object.values(COMMAN_STATUS),
|
|
47
|
+
enum: Object.values(app_js_1.COMMAN_STATUS),
|
|
12
48
|
required: true,
|
|
13
49
|
},
|
|
14
50
|
fileName: {
|
|
@@ -20,7 +56,7 @@ const UserHasFilesSchema = new Schema({
|
|
|
20
56
|
required: true,
|
|
21
57
|
},
|
|
22
58
|
}, { _id: false });
|
|
23
|
-
const UserHasQulificationSchema = new Schema({
|
|
59
|
+
const UserHasQulificationSchema = new mongoose_1.Schema({
|
|
24
60
|
degree: {
|
|
25
61
|
type: String,
|
|
26
62
|
required: false,
|
|
@@ -38,7 +74,7 @@ const UserHasQulificationSchema = new Schema({
|
|
|
38
74
|
required: false,
|
|
39
75
|
},
|
|
40
76
|
}, { _id: false });
|
|
41
|
-
|
|
77
|
+
exports.UserSchoolInfoSchema = new mongoose_1.Schema({
|
|
42
78
|
firstName: {
|
|
43
79
|
type: String,
|
|
44
80
|
required: false,
|
|
@@ -89,17 +125,17 @@ export const UserSchoolInfoSchema = new Schema({
|
|
|
89
125
|
},
|
|
90
126
|
category: {
|
|
91
127
|
type: String,
|
|
92
|
-
enum: Object.values(CATEGORY),
|
|
128
|
+
enum: Object.values(app_js_1.CATEGORY),
|
|
93
129
|
required: false,
|
|
94
130
|
},
|
|
95
131
|
nationality: {
|
|
96
132
|
type: String,
|
|
97
|
-
enum: Object.values(NATIONALITY),
|
|
133
|
+
enum: Object.values(app_js_1.NATIONALITY),
|
|
98
134
|
required: false,
|
|
99
135
|
},
|
|
100
136
|
religionCaste: {
|
|
101
137
|
type: String,
|
|
102
|
-
enum: Object.values(RELIGION_CASTE),
|
|
138
|
+
enum: Object.values(app_js_1.RELIGION_CASTE),
|
|
103
139
|
required: false,
|
|
104
140
|
},
|
|
105
141
|
caste: {
|
|
@@ -107,7 +143,7 @@ export const UserSchoolInfoSchema = new Schema({
|
|
|
107
143
|
required: false,
|
|
108
144
|
},
|
|
109
145
|
}, { _id: false });
|
|
110
|
-
const ExperienceSchema = new Schema({
|
|
146
|
+
const ExperienceSchema = new mongoose_1.Schema({
|
|
111
147
|
institutedName: {
|
|
112
148
|
type: String,
|
|
113
149
|
required: false,
|
|
@@ -134,18 +170,18 @@ const ExperienceSchema = new Schema({
|
|
|
134
170
|
},
|
|
135
171
|
employmentType: {
|
|
136
172
|
type: String,
|
|
137
|
-
enum: Object.values(EMPLOYMENT_TYPE),
|
|
173
|
+
enum: Object.values(app_js_1.EMPLOYMENT_TYPE),
|
|
138
174
|
required: true,
|
|
139
175
|
},
|
|
140
176
|
status: {
|
|
141
177
|
type: String,
|
|
142
|
-
enum: Object.values(USER_INSTITUTE_META_STATUS),
|
|
143
|
-
default: USER_INSTITUTE_META_STATUS.LEFT,
|
|
178
|
+
enum: Object.values(app_js_1.USER_INSTITUTE_META_STATUS),
|
|
179
|
+
default: app_js_1.USER_INSTITUTE_META_STATUS.LEFT,
|
|
144
180
|
required: true,
|
|
145
181
|
},
|
|
146
182
|
isPrincipal: {
|
|
147
183
|
type: String,
|
|
148
|
-
enum: Object.values(IS_PRINCIPAL),
|
|
184
|
+
enum: Object.values(app_js_1.IS_PRINCIPAL),
|
|
149
185
|
required: true,
|
|
150
186
|
},
|
|
151
187
|
startTime: {
|
|
@@ -158,7 +194,7 @@ const ExperienceSchema = new Schema({
|
|
|
158
194
|
},
|
|
159
195
|
userType: {
|
|
160
196
|
type: String,
|
|
161
|
-
enum: Object.values(USER_TYPES),
|
|
197
|
+
enum: Object.values(app_js_1.USER_TYPES),
|
|
162
198
|
required: false,
|
|
163
199
|
},
|
|
164
200
|
isSchool: {
|
|
@@ -166,7 +202,7 @@ const ExperienceSchema = new Schema({
|
|
|
166
202
|
required: false,
|
|
167
203
|
},
|
|
168
204
|
}, { _id: false });
|
|
169
|
-
const LastSchoolSchema = new Schema({
|
|
205
|
+
const LastSchoolSchema = new mongoose_1.Schema({
|
|
170
206
|
name: {
|
|
171
207
|
type: String,
|
|
172
208
|
required: false,
|
|
@@ -229,7 +265,7 @@ const LastSchoolSchema = new Schema({
|
|
|
229
265
|
required: false,
|
|
230
266
|
},
|
|
231
267
|
}, { _id: false });
|
|
232
|
-
const AddressSchema = new Schema({
|
|
268
|
+
const AddressSchema = new mongoose_1.Schema({
|
|
233
269
|
pinCode: {
|
|
234
270
|
type: String,
|
|
235
271
|
required: false,
|
|
@@ -263,7 +299,7 @@ const AddressSchema = new Schema({
|
|
|
263
299
|
required: false,
|
|
264
300
|
},
|
|
265
301
|
}, { _id: false });
|
|
266
|
-
const EmergencyContactSchema = new Schema({
|
|
302
|
+
const EmergencyContactSchema = new mongoose_1.Schema({
|
|
267
303
|
name: {
|
|
268
304
|
type: String,
|
|
269
305
|
required: false,
|
|
@@ -277,15 +313,15 @@ const EmergencyContactSchema = new Schema({
|
|
|
277
313
|
required: false,
|
|
278
314
|
},
|
|
279
315
|
}, { _id: false });
|
|
280
|
-
const WorkingDesignationsSchema = new Schema({
|
|
316
|
+
const WorkingDesignationsSchema = new mongoose_1.Schema({
|
|
281
317
|
workCategory: {
|
|
282
318
|
type: String,
|
|
283
|
-
enum: Object.values(WORK_CATEGORY),
|
|
319
|
+
enum: Object.values(app_js_1.WORK_CATEGORY),
|
|
284
320
|
required: false,
|
|
285
321
|
},
|
|
286
322
|
workType: {
|
|
287
323
|
type: String,
|
|
288
|
-
enum: Object.values(WORK_TYPE),
|
|
324
|
+
enum: Object.values(app_js_1.WORK_TYPE),
|
|
289
325
|
required: false,
|
|
290
326
|
},
|
|
291
327
|
occupation: {
|
|
@@ -301,7 +337,7 @@ const WorkingDesignationsSchema = new Schema({
|
|
|
301
337
|
required: false,
|
|
302
338
|
},
|
|
303
339
|
}, { _id: false });
|
|
304
|
-
const userDetailsSchema = new Schema({
|
|
340
|
+
const userDetailsSchema = new mongoose_1.Schema({
|
|
305
341
|
intersetedEntities: {
|
|
306
342
|
type: [{ type: String }],
|
|
307
343
|
default: [],
|
|
@@ -376,17 +412,17 @@ const userDetailsSchema = new Schema({
|
|
|
376
412
|
},
|
|
377
413
|
category: {
|
|
378
414
|
type: String,
|
|
379
|
-
enum: Object.values(CATEGORY),
|
|
415
|
+
enum: Object.values(app_js_1.CATEGORY),
|
|
380
416
|
required: false,
|
|
381
417
|
},
|
|
382
418
|
nationality: {
|
|
383
419
|
type: String,
|
|
384
|
-
enum: Object.values(NATIONALITY),
|
|
420
|
+
enum: Object.values(app_js_1.NATIONALITY),
|
|
385
421
|
required: false,
|
|
386
422
|
},
|
|
387
423
|
religionCaste: {
|
|
388
424
|
type: String,
|
|
389
|
-
enum: Object.values(RELIGION_CASTE),
|
|
425
|
+
enum: Object.values(app_js_1.RELIGION_CASTE),
|
|
390
426
|
required: false,
|
|
391
427
|
},
|
|
392
428
|
caste: {
|
|
@@ -398,12 +434,12 @@ const userDetailsSchema = new Schema({
|
|
|
398
434
|
required: false,
|
|
399
435
|
},
|
|
400
436
|
userSchoolInfo: {
|
|
401
|
-
type: UserSchoolInfoSchema,
|
|
437
|
+
type: exports.UserSchoolInfoSchema,
|
|
402
438
|
required: false,
|
|
403
439
|
},
|
|
404
440
|
numberType: {
|
|
405
441
|
type: String,
|
|
406
|
-
enum: Object.values(NO_TYPE),
|
|
442
|
+
enum: Object.values(app_js_1.NO_TYPE),
|
|
407
443
|
required: false,
|
|
408
444
|
},
|
|
409
445
|
workingDetails: {
|
|
@@ -413,12 +449,12 @@ const userDetailsSchema = new Schema({
|
|
|
413
449
|
},
|
|
414
450
|
userDetailsType: {
|
|
415
451
|
type: String,
|
|
416
|
-
enum: Object.values(USER_DETAILS),
|
|
452
|
+
enum: Object.values(app_js_1.USER_DETAILS),
|
|
417
453
|
required: false,
|
|
418
454
|
},
|
|
419
455
|
userDetails: {
|
|
420
456
|
type: String,
|
|
421
|
-
enum: Object.values(DISABILITY_TYPE),
|
|
457
|
+
enum: Object.values(app_js_1.DISABILITY_TYPE),
|
|
422
458
|
required: false,
|
|
423
459
|
},
|
|
424
460
|
uidNo: {
|
|
@@ -466,8 +502,8 @@ const userDetailsSchema = new Schema({
|
|
|
466
502
|
userDetailsSchema.index({
|
|
467
503
|
userId: 1,
|
|
468
504
|
});
|
|
469
|
-
const userDetails =
|
|
505
|
+
const userDetails = mongoose_1.default.model('userDetails', userDetailsSchema);
|
|
470
506
|
// (async () => {
|
|
471
507
|
// await userDetails.syncIndexes();
|
|
472
508
|
// })();
|
|
473
|
-
|
|
509
|
+
exports.default = userDetails;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserDoc = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const UserSchema = new mongoose_1.Schema({
|
|
3
6
|
name: { type: String, required: true },
|
|
4
7
|
email: { type: String, required: true, unique: true },
|
|
5
8
|
}, { timestamps: true });
|
|
6
|
-
|
|
9
|
+
exports.UserDoc = (0, mongoose_1.model)("User", UserSchema);
|
|
@@ -1,7 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
37
|
+
const app_js_1 = require("../../constants/app.js");
|
|
3
38
|
// const userInstituteMetaService = container.resolve<IUserInstituteMetaService>(delay(() => UserInstituteMetaService));
|
|
4
|
-
const userInstituteMetaSlotsSchema = new Schema({
|
|
39
|
+
const userInstituteMetaSlotsSchema = new mongoose_1.Schema({
|
|
5
40
|
slotId: {
|
|
6
41
|
type: String,
|
|
7
42
|
required: false,
|
|
@@ -20,7 +55,7 @@ const userInstituteMetaSlotsSchema = new Schema({
|
|
|
20
55
|
required: false,
|
|
21
56
|
},
|
|
22
57
|
}, { _id: false });
|
|
23
|
-
const userInstituteMetaSchema = new Schema({
|
|
58
|
+
const userInstituteMetaSchema = new mongoose_1.Schema({
|
|
24
59
|
entities: {
|
|
25
60
|
type: [{ type: String }],
|
|
26
61
|
},
|
|
@@ -32,8 +67,8 @@ const userInstituteMetaSchema = new Schema({
|
|
|
32
67
|
// },
|
|
33
68
|
isPrincipal: {
|
|
34
69
|
type: String,
|
|
35
|
-
enum: Object.values(IS_PRINCIPAL),
|
|
36
|
-
default: BOOLEAN_STATUS.NO,
|
|
70
|
+
enum: Object.values(app_js_1.IS_PRINCIPAL),
|
|
71
|
+
default: app_js_1.BOOLEAN_STATUS.NO,
|
|
37
72
|
required: false,
|
|
38
73
|
},
|
|
39
74
|
userId: {
|
|
@@ -42,7 +77,7 @@ const userInstituteMetaSchema = new Schema({
|
|
|
42
77
|
},
|
|
43
78
|
userType: {
|
|
44
79
|
type: String,
|
|
45
|
-
enum: Object.values(USER_TYPES),
|
|
80
|
+
enum: Object.values(app_js_1.USER_TYPES),
|
|
46
81
|
required: true,
|
|
47
82
|
},
|
|
48
83
|
joiningDate: {
|
|
@@ -79,27 +114,27 @@ const userInstituteMetaSchema = new Schema({
|
|
|
79
114
|
},
|
|
80
115
|
employmentType: {
|
|
81
116
|
type: String,
|
|
82
|
-
enum: Object.values(EMPLOYMENT_TYPE),
|
|
117
|
+
enum: Object.values(app_js_1.EMPLOYMENT_TYPE),
|
|
83
118
|
required: false,
|
|
84
119
|
},
|
|
85
120
|
status: {
|
|
86
121
|
type: String,
|
|
87
|
-
enum: Object.values(USER_INSTITUTE_META_STATUS),
|
|
88
|
-
default: USER_INSTITUTE_META_STATUS.PENDING,
|
|
122
|
+
enum: Object.values(app_js_1.USER_INSTITUTE_META_STATUS),
|
|
123
|
+
default: app_js_1.USER_INSTITUTE_META_STATUS.PENDING,
|
|
89
124
|
},
|
|
90
125
|
admissionType: {
|
|
91
126
|
type: String,
|
|
92
|
-
enum: Object.values(ADMISSION_TYPE),
|
|
127
|
+
enum: Object.values(app_js_1.ADMISSION_TYPE),
|
|
93
128
|
},
|
|
94
129
|
details: {
|
|
95
130
|
type: String,
|
|
96
|
-
enum: Object.values(BOOLEAN_STATUS),
|
|
97
|
-
default: BOOLEAN_STATUS.NO,
|
|
131
|
+
enum: Object.values(app_js_1.BOOLEAN_STATUS),
|
|
132
|
+
default: app_js_1.BOOLEAN_STATUS.NO,
|
|
98
133
|
},
|
|
99
134
|
isNewAdmission: {
|
|
100
135
|
type: String,
|
|
101
|
-
enum: Object.values(BOOLEAN_STATUS),
|
|
102
|
-
default: BOOLEAN_STATUS.NO,
|
|
136
|
+
enum: Object.values(app_js_1.BOOLEAN_STATUS),
|
|
137
|
+
default: app_js_1.BOOLEAN_STATUS.NO,
|
|
103
138
|
},
|
|
104
139
|
startTime: {
|
|
105
140
|
type: Date,
|
|
@@ -121,8 +156,8 @@ const userInstituteMetaSchema = new Schema({
|
|
|
121
156
|
},
|
|
122
157
|
isActive: {
|
|
123
158
|
type: String,
|
|
124
|
-
enum: Object.values(COMMAN_STATUS),
|
|
125
|
-
default: COMMAN_STATUS.ACTIVE,
|
|
159
|
+
enum: Object.values(app_js_1.COMMAN_STATUS),
|
|
160
|
+
default: app_js_1.COMMAN_STATUS.ACTIVE,
|
|
126
161
|
},
|
|
127
162
|
rejectedDate: {
|
|
128
163
|
type: Date,
|
|
@@ -170,8 +205,8 @@ userInstituteMetaSchema.index({
|
|
|
170
205
|
status: 1,
|
|
171
206
|
// entities: 1,
|
|
172
207
|
});
|
|
173
|
-
const UserInstituteMeta =
|
|
208
|
+
const UserInstituteMeta = mongoose_1.default.model('userInstituteMeta', userInstituteMetaSchema);
|
|
174
209
|
// (async () => {
|
|
175
210
|
// await UserInstituteMeta.syncIndexes();
|
|
176
211
|
// })(); // Rebuilds indexes in DB based on schema
|
|
177
|
-
|
|
212
|
+
exports.default = UserInstituteMeta;
|