@kipicore/dbcore 1.0.6 → 1.0.8
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/configs/aws.ts +10 -0
- package/dist/configs/env.ts +48 -0
- package/dist/configs/postgresConfig.js +32 -0
- package/dist/constants/app.ts +1046 -0
- package/dist/constants/defaultModelAttributes.ts +26 -0
- package/dist/constants/errorMessages.ts +1109 -0
- package/dist/constants/httpStatusCode.ts +26 -0
- package/dist/constants/successMessages.ts +758 -0
- package/dist/db/mongodb.ts +19 -0
- package/dist/db/postgres.ts +24 -0
- package/dist/db/psql/index.js +108 -0
- package/dist/db/psql/migrations/20241225101052-add-deleted-by-and-deleted-at-fields.js +84 -0
- package/dist/db/psql/migrations/20250106070945-add-user-fields-and-deleted-user-fields.js +41 -0
- package/dist/db/psql/migrations/20250106080059-add-fields-and-deleted-fields.js +105 -0
- package/dist/db/psql/migrations/20250108092439-update-batch-model-fields.js +41 -0
- package/dist/db/psql/migrations/20250210102846-add-profileImage-coverImage-to-users.js +113 -0
- package/dist/db/psql/migrations/20250211071743-add-action-user-has-histroy.js +87 -0
- package/dist/db/psql/migrations/20250213140815-add-assignQuantity-user-has-histroy.js +91 -0
- package/dist/db/psql/migrations/20250214072626-add-middlename-user.js +91 -0
- package/dist/db/psql/migrations/20250224085333-add-apptype-in-user.js +89 -0
- package/dist/db/psql/migrations/20250226053006-add-brouchure-in-institute.js +91 -0
- package/dist/db/psql/migrations/20250227123530-add-defult-in-fee-reminder.js +89 -0
- package/dist/db/psql/migrations/20250304052831-add-institued-in-school-data-clm.js +159 -0
- package/dist/db/psql/migrations/20250306053557-add-shifyId-in-batch.js +97 -0
- package/dist/db/psql/migrations/20250311044606-add-institued-in-school-data-clm-subtype.js +51 -0
- package/dist/db/psql/migrations/20250402090653-add-user-area.js +104 -0
- package/dist/db/psql/migrations/20250407094125-update-type-in-typeManagement.js +88 -0
- package/dist/db/psql/migrations/20250409105229-add-user-type-in-role.js +63 -0
- package/dist/db/psql/migrations/20250417121316-make-institute-id-nullable-in-type-management.js +18 -0
- package/dist/db/psql/migrations/20250419071236-fee_histroy_add_school_clm.js +145 -0
- package/dist/db/psql/migrations/20250419085334-fee_histroy_add_school_clm.js +97 -0
- package/dist/db/psql/migrations/20250421085618-add-entityIds-field-in-announcements.js +89 -0
- package/dist/db/psql/migrations/20250422114032-add-account.js +97 -0
- package/dist/db/psql/migrations/20250423051841-add-master-leave-clm.js +78 -0
- package/dist/db/psql/migrations/20250423064522-update-calender-enum.js +42 -0
- package/dist/db/psql/migrations/20250423093827-update-institued-district.js +88 -0
- package/dist/db/psql/migrations/20250424044755-update-fee-history-feeTyps-clm.js +44 -0
- package/dist/db/psql/migrations/20250424053841-update-fee-history-key.js +40 -0
- package/dist/db/psql/migrations/20250426070309-update-banner-clm-userType.js +63 -0
- package/dist/db/psql/migrations/20250505035157-update-fee-collection-clm-add.js +97 -0
- package/dist/db/psql/migrations/20250505082924-update-banner-clm.js +22 -0
- package/dist/db/psql/migrations/20250505094616-about-as-clm-in-institued.js +19 -0
- package/dist/db/psql/migrations/20250506070110-add-dayOfWeek-clm-in-working-model.js +90 -0
- package/dist/db/psql/migrations/20250509055920-add-feecollection-isleft-clm.js +90 -0
- package/dist/db/psql/migrations/20250513061037-add-techer-clm-batch.js +99 -0
- package/dist/db/psql/migrations/20250514101801-add-slotId-workingShif.js +97 -0
- package/dist/db/psql/migrations/20250516062917-add-globalId-clm-user-model.js +90 -0
- package/dist/db/psql/migrations/20250516063542-add-globalId-clm-institute-model.js +90 -0
- package/dist/db/psql/migrations/20250520061231-add-institued_mobile_person_data.js +126 -0
- package/dist/db/psql/migrations/20250522044729-add-institued_update_add_2.js +19 -0
- package/dist/db/psql/migrations/20250526035543-add-totalQuantity_add_remainingQuantiy_clm_userHasInventoryHistory.js +108 -0
- package/dist/db/psql/migrations/20250526093322-add-appType_clm_in_module.js +90 -0
- package/dist/db/psql/migrations/20250526094030-add-appType_clm_in_action.js +90 -0
- package/dist/db/psql/migrations/20250526094233-add-appType_clm_in_module_features.js +90 -0
- package/dist/db/psql/migrations/20250527065001-add-app-type-in-role-model.js +64 -0
- package/dist/db/psql/migrations/20250528045906-add-module-type-to-notifications.js +16 -0
- package/dist/db/psql/migrations/20250602090331-add-or-update-user-model-medicalHistory.js +119 -0
- package/dist/db/psql/migrations/20250602100550-add-planner-sync-status-to-institute.js +119 -0
- package/dist/db/psql/migrations/20250603054900-add-clm-for-defult-data-add-or-not-in-ins-model.js +90 -0
- package/dist/db/psql/migrations/20250604103905-add-is-institute-default-field-in-role.js +63 -0
- package/dist/db/psql/migrations/20250604121051-update-mobile-number-opstion.js +19 -0
- package/dist/db/psql/migrations/20250617064159-update-type-management-jun-17.js +14 -0
- package/dist/db/psql/migrations/20250627065013-is-institute-default-added-type-managemente.js +15 -0
- package/dist/db/psql/migrations/20250701095321-add-clm-institute-pdfId.js +63 -0
- package/dist/db/psql/migrations/20250704102117-add-clm-isDefult-in-typeManagemet.js +15 -0
- package/dist/db/psql/migrations/20250715103324-add-academic-calendar-id-to-batches.js +15 -0
- package/dist/db/psql/migrations/20250715121047-remove-batch-id-from-academic-calendars.js +14 -0
- package/dist/db/psql/migrations/20250716131731-rename-user-id-to-primary-user-id.js +11 -0
- package/dist/db/psql/migrations/20250717092933-add-floor-id-to-class-rooms.js +97 -0
- package/dist/db/psql/migrations/20250718121251-add-clm-classroom-typeid.js +97 -0
- package/dist/db/psql/migrations/20250721065317-add-instituteId-fileSize-to-fileStorage.js +26 -0
- package/dist/db/psql/migrations/20250721100004-add-shift-slot-id-to-lectures.js +20 -0
- package/dist/db/psql/migrations/20250721105455-add-clm-classroom-add-classroomnumber.js +89 -0
- package/dist/db/psql/migrations/20250722071836-add-title-to-floor-management.js +16 -0
- package/dist/db/psql/migrations/20250723150111-add-clm-batch-slotId.js +97 -0
- package/dist/db/psql/migrations/20250724062458-update_classRoom_number_clm_to_string.js +18 -0
- package/dist/db/psql/migrations/20250725132424-add-unique-index-on-instituteId-name-type.js +27 -0
- package/dist/db/psql/migrations/20250730104844-update-unique-key-assessment-type.js +34 -0
- package/dist/db/psql/migrations/20250804090437-update_ins_in_pdf_id_string_to_uuid.js +73 -0
- package/dist/db/psql/migrations/20250805062440-remove_unique_key_into_batch_subject_project_assessments.js +25 -0
- package/dist/db/psql/migrations/20250805115805-add-descriptions-to-lectures.js +14 -0
- package/dist/db/psql/migrations/20250808100700-add_clm_contectFeed_in_ins_givenId.js +97 -0
- package/dist/db/psql/migrations/20250808101515-add-sequence-to-institute_entities.js +14 -0
- package/dist/db/psql/migrations/20250812080521-add-title-and-descriptions-to-batch-subject-project-assessments.js +20 -0
- package/dist/db/psql/migrations/20250820092836-add-sequence-number-to-institute-entities.js +18 -0
- package/dist/db/psql/migrations/20250829103203-remove-syllabus-composit-index.js +18 -0
- package/dist/db/psql/migrations/20250905132024-add-uuid-to-users.js +14 -0
- package/dist/db/psql/migrations/20250908054025-userHasOffer_model_update.js +123 -0
- package/dist/db/psql/migrations/20250908054754-offer_in_add_offertype_clm.js +81 -0
- package/dist/db/psql/migrations/20250909061117-add-instituteId-isDefault-to-entityGroup.js +21 -0
- package/dist/db/psql/migrations/20250911060106-change-wallet-history-columns-to-float.js +47 -0
- package/dist/db/psql/migrations/20250911060245-change-coin-to-float-in-wallets.js +19 -0
- package/dist/db/psql/migrations/20250917135646-change-storageInBytes-to-float.js +19 -0
- package/dist/db/psql/seeders/20240809100759-add-countries-states-cities.js +73 -0
- package/dist/db/psql/seeders/20250101122757-add-default-permissions-modules.js +188 -0
- package/dist/db/psql/seeders/Data/AcademicCalendarModule.js +25 -0
- package/dist/db/psql/seeders/Data/AdministrativeStaffModule.js +37 -0
- package/dist/db/psql/seeders/Data/AnnouncementsModule.js +51 -0
- package/dist/db/psql/seeders/Data/AssetsModule.js +37 -0
- package/dist/db/psql/seeders/Data/AttendanceModule.js +58 -0
- package/dist/db/psql/seeders/Data/BannerModule.js +25 -0
- package/dist/db/psql/seeders/Data/BatchModule.js +35 -0
- package/dist/db/psql/seeders/Data/BoardModule .js +18 -0
- package/dist/db/psql/seeders/Data/BookAssessmentsModule.js +24 -0
- package/dist/db/psql/seeders/Data/CategoriesModule.js +18 -0
- package/dist/db/psql/seeders/Data/ClassroomModule.js +38 -0
- package/dist/db/psql/seeders/Data/DivisionModule.js +26 -0
- package/dist/db/psql/seeders/Data/EventModule.js +23 -0
- package/dist/db/psql/seeders/Data/ExamsAndResultsModule.js +114 -0
- package/dist/db/psql/seeders/Data/FacilityModule.js +23 -0
- package/dist/db/psql/seeders/Data/FeeAndDiscountModule.js +241 -0
- package/dist/db/psql/seeders/Data/FeedBackModule.js +28 -0
- package/dist/db/psql/seeders/Data/FileModule.js +38 -0
- package/dist/db/psql/seeders/Data/GenerateIdModule.js +20 -0
- package/dist/db/psql/seeders/Data/HolidayModule.js +23 -0
- package/dist/db/psql/seeders/Data/HomeworkModule.js +43 -0
- package/dist/db/psql/seeders/Data/IndexModule.js +98 -0
- package/dist/db/psql/seeders/Data/InquiryModule.js +23 -0
- package/dist/db/psql/seeders/Data/InstituteModule.js +64 -0
- package/dist/db/psql/seeders/Data/InventoryModule.js +43 -0
- package/dist/db/psql/seeders/Data/JobApplyModule.js +23 -0
- package/dist/db/psql/seeders/Data/LectureModule.js +28 -0
- package/dist/db/psql/seeders/Data/ParentModule.js +38 -0
- package/dist/db/psql/seeders/Data/PayoutModule.js +18 -0
- package/dist/db/psql/seeders/Data/PdcChequesModule.js +28 -0
- package/dist/db/psql/seeders/Data/PhotosGalleryModule.js +28 -0
- package/dist/db/psql/seeders/Data/PlannerModule.js +18 -0
- package/dist/db/psql/seeders/Data/ProjectAssessmentsModule.js +24 -0
- package/dist/db/psql/seeders/Data/ReplaceTeacherModule.js +23 -0
- package/dist/db/psql/seeders/Data/RoleModule.js +54 -0
- package/dist/db/psql/seeders/Data/RollNumberModule.js +23 -0
- package/dist/db/psql/seeders/Data/SchoolFeeModule.js +38 -0
- package/dist/db/psql/seeders/Data/SchoolModule.js +64 -0
- package/dist/db/psql/seeders/Data/SchoolRegistration.js +23 -0
- package/dist/db/psql/seeders/Data/SettingsModule.js +28 -0
- package/dist/db/psql/seeders/Data/StaffTimingModule.js +23 -0
- package/dist/db/psql/seeders/Data/StudentModule.js +18 -0
- package/dist/db/psql/seeders/Data/SubjectModule.js +37 -0
- package/dist/db/psql/seeders/Data/SyllabusManagementModule.js +26 -0
- package/dist/db/psql/seeders/Data/TeacherModule.js +68 -0
- package/dist/db/psql/seeders/Data/TestimonialsModule.js +28 -0
- package/dist/db/psql/seeders/Data/TimetableModule.js +44 -0
- package/dist/db/psql/seeders/Data/To-doModule.js +28 -0
- package/dist/db/psql/seeders/Data/TypeManagementModule.js +29 -0
- package/dist/db/psql/seeders/Data/UserModule.js +268 -0
- package/dist/db/psql/seeders/Data/appType.js +7 -0
- package/dist/helpers/s3Uploader.ts +61 -0
- package/dist/helpers/utils.ts +738 -0
- package/dist/interfaces/academicCalendarInterface.ts +11 -0
- package/dist/interfaces/accountHasReceiptDetailsInterface.ts +18 -0
- package/dist/interfaces/announcementInterface.ts +20 -0
- package/dist/interfaces/approvalRequestInterface.ts +15 -0
- package/dist/interfaces/attendanceInterface.ts +23 -0
- package/dist/interfaces/bankAccountDetailsInterface.ts +15 -0
- package/dist/interfaces/bannerInterface.ts +16 -0
- package/dist/interfaces/batchInterface.ts +19 -0
- package/dist/interfaces/batchSubjectBookAssessmentInterface.ts +10 -0
- package/dist/interfaces/batchSubjectProjectAssessmentInterface.ts +13 -0
- package/dist/interfaces/blogInterface.ts +48 -0
- package/dist/interfaces/bookAssessmentDateInterface.ts +9 -0
- package/dist/interfaces/careerInterface.ts +13 -0
- package/dist/interfaces/categoriesInterface.ts +9 -0
- package/dist/interfaces/certificatesHistoryInterface.ts +10 -0
- package/dist/interfaces/certificatesManagementInterface.ts +13 -0
- package/dist/interfaces/cityInterface.ts +13 -0
- package/dist/interfaces/classRoomInterface.ts +14 -0
- package/dist/interfaces/cloudStorageInterface.ts +16 -0
- package/dist/interfaces/coinPurchaseOfferInterface.ts +17 -0
- package/dist/interfaces/columnInterface.ts +17 -0
- package/dist/interfaces/commanInterface.ts +71 -0
- package/dist/interfaces/courseHasVisitorsInterface.ts +8 -0
- package/dist/interfaces/courseInterface.ts +19 -0
- package/dist/interfaces/dailyBookInterface.ts +15 -0
- package/dist/interfaces/dashboardManagementInterface.ts +21 -0
- package/dist/interfaces/driverInterface.ts +22 -0
- package/dist/interfaces/entityGroupInterface.ts +13 -0
- package/dist/interfaces/eventInterface.ts +24 -0
- package/dist/interfaces/examGroupInterface.ts +35 -0
- package/dist/interfaces/examHasAnswerSheetInterface.ts +31 -0
- package/dist/interfaces/examInterface.ts +44 -0
- package/dist/interfaces/facilityInterface.ts +10 -0
- package/dist/interfaces/featureActionInterface.ts +19 -0
- package/dist/interfaces/feeHistoryDetailsInterface.ts +18 -0
- package/dist/interfaces/feeHistoryInterface.ts +23 -0
- package/dist/interfaces/feeReminderInterface.ts +14 -0
- package/dist/interfaces/feeReminderSettingInterface.ts +13 -0
- package/dist/interfaces/feeReminderTypeInterface.ts +11 -0
- package/dist/interfaces/feeTypeHasTermsInterface.ts +13 -0
- package/dist/interfaces/feeTypeInterface.ts +14 -0
- package/dist/interfaces/feedBackInterface.ts +21 -0
- package/dist/interfaces/feesCollectionInterface.ts +20 -0
- package/dist/interfaces/fileStorageInterface.ts +15 -0
- package/dist/interfaces/floorManagementInterface.ts +10 -0
- package/dist/interfaces/generateIdCardInterface.ts +9 -0
- package/dist/interfaces/greetingsInterface.ts +13 -0
- package/dist/interfaces/holidayInterface.ts +25 -0
- package/dist/interfaces/homeworkInterface.ts +14 -0
- package/dist/interfaces/informationSupportInterface.ts +17 -0
- package/dist/interfaces/inquiryInterface.ts +56 -0
- package/dist/interfaces/instituteEntityInterface.ts +17 -0
- package/dist/interfaces/instituteEntityTypeInterface.ts +12 -0
- package/dist/interfaces/instituteInterface.ts +36 -0
- package/dist/interfaces/instituteSubscriptionPlanInterface.ts +25 -0
- package/dist/interfaces/inventoryHistoryInterface.ts +18 -0
- package/dist/interfaces/inventoryInterface.ts +16 -0
- package/dist/interfaces/invoiceInterface.ts +35 -0
- package/dist/interfaces/jobApplyInterface.ts +39 -0
- package/dist/interfaces/lectureHistoryInterface.ts +25 -0
- package/dist/interfaces/lectureInterface.ts +27 -0
- package/dist/interfaces/masterLeaveInterface.ts +14 -0
- package/dist/interfaces/moduleFeatureInterface.ts +18 -0
- package/dist/interfaces/moduleInterface.ts +16 -0
- package/dist/interfaces/offersInterface.ts +19 -0
- package/dist/interfaces/paymentTermsInterface.ts +16 -0
- package/dist/interfaces/pdcChequeInterface.ts +17 -0
- package/dist/interfaces/pdcHistoryInterface.ts +18 -0
- package/dist/interfaces/photosGalleryInterface.ts +19 -0
- package/dist/interfaces/pincodeInterface.ts +16 -0
- package/dist/interfaces/plannerInterface.ts +35 -0
- package/dist/interfaces/productInterface.ts +11 -0
- package/dist/interfaces/projectAssessmentOptionInterface.ts +9 -0
- package/dist/interfaces/replaceTeacherInterface.ts +25 -0
- package/dist/interfaces/roleInterface.ts +27 -0
- package/dist/interfaces/rulesRegulationInterface.ts +11 -0
- package/dist/interfaces/schoolFeeCollectionInterface.ts +14 -0
- package/dist/interfaces/schoolFeeInterface.ts +26 -0
- package/dist/interfaces/schoolOfferInterface.ts +21 -0
- package/dist/interfaces/sendNotificationInerface.ts +24 -0
- package/dist/interfaces/slotInterface.ts +9 -0
- package/dist/interfaces/stateInterface.ts +12 -0
- package/dist/interfaces/subCategoriesInterface.ts +10 -0
- package/dist/interfaces/subjectHasFeeInterface.ts +8 -0
- package/dist/interfaces/subjectHasPayFeeHistoryInterface.ts +10 -0
- package/dist/interfaces/subjectIndexInterface.ts +51 -0
- package/dist/interfaces/subscriptionPlanInterface.ts +39 -0
- package/dist/interfaces/syllabusInterface.ts +11 -0
- package/dist/interfaces/taskManagementInterface.ts +26 -0
- package/dist/interfaces/testimonialInterface.ts +13 -0
- package/dist/interfaces/toDoInterface.ts +12 -0
- package/dist/interfaces/tokenInterface.ts +30 -0
- package/dist/interfaces/tripInterface.ts +14 -0
- package/dist/interfaces/typeManagementInterface.ts +12 -0
- package/dist/interfaces/uniqueNumberCounterInterface.ts +12 -0
- package/dist/interfaces/userBookAssessmentInterface.ts +11 -0
- package/dist/interfaces/userDetailsInterface.ts +138 -0
- package/dist/interfaces/userFeeTypeByAccountInterface.ts +20 -0
- package/dist/interfaces/userFeeTypeInterface.ts +17 -0
- package/dist/interfaces/userHasAnnouncementInterface.ts +10 -0
- package/dist/interfaces/userHasBatchInterface.ts +8 -0
- package/dist/interfaces/userHasCourseInterface.ts +14 -0
- package/dist/interfaces/userHasDeviceInterface.ts +11 -0
- package/dist/interfaces/userHasFeeTermsInterface.ts +39 -0
- package/dist/interfaces/userHasFileInterface.ts +12 -0
- package/dist/interfaces/userHasHomeWorkInterface.ts +12 -0
- package/dist/interfaces/userHasInventoryHistoryInterface.ts +21 -0
- package/dist/interfaces/userHasInventoryInterface.ts +22 -0
- package/dist/interfaces/userHasLeaveHistoryInterface.ts +17 -0
- package/dist/interfaces/userHasLeaveInterface.ts +13 -0
- package/dist/interfaces/userHasOfferInterface.ts +11 -0
- package/dist/interfaces/userHasParentInterface.ts +15 -0
- package/dist/interfaces/userHasRoleInterface.ts +14 -0
- package/dist/interfaces/userHasRollNumberInterface.ts +9 -0
- package/dist/interfaces/userHasStorageInterface.ts +12 -0
- package/dist/interfaces/userHasSubjectFeeInterface.ts +10 -0
- package/dist/interfaces/userInstituteMetaInterface.ts +49 -0
- package/dist/interfaces/userInterface.ts +46 -0
- package/dist/interfaces/userLeaveRequestInterface.ts +16 -0
- package/dist/interfaces/userMetaInterface.ts +14 -0
- package/dist/interfaces/userPayoutDetailsInterface.ts +15 -0
- package/dist/interfaces/userPayoutHistoryInterface.ts +19 -0
- package/dist/interfaces/userPayoutInterface.ts +13 -0
- package/dist/interfaces/userProjectAssessmentOptionInterface.ts +11 -0
- package/dist/interfaces/userRequiredStepsInterface.ts +10 -0
- package/dist/interfaces/userSchoolMetaInterface.ts +123 -0
- package/dist/interfaces/vehicleInterface.ts +12 -0
- package/dist/interfaces/vendorManagementInterface.ts +20 -0
- package/dist/interfaces/videoAnalystInterface.ts +38 -0
- package/dist/interfaces/walletHistoryInterface.ts +16 -0
- package/dist/interfaces/walletInterface.ts +11 -0
- package/dist/interfaces/walletTransactionInterface.ts +47 -0
- package/dist/interfaces/workingDayInterface.ts +12 -0
- package/dist/interfaces/workingShiftInterface.ts +13 -0
- package/dist/models/mongodb/approvalRequestModel.ts +71 -0
- package/dist/models/mongodb/attendanceModel.ts +189 -0
- package/dist/models/mongodb/blogModel.ts +78 -0
- package/dist/models/mongodb/careerModel.ts +55 -0
- package/dist/models/mongodb/certificatesHistoryModel.ts +33 -0
- package/dist/models/mongodb/certificatesManagementModel.ts +42 -0
- package/dist/models/mongodb/columnModel.ts +53 -0
- package/dist/models/mongodb/dailyBookModel.ts +60 -0
- package/dist/models/mongodb/dashboardManagementModel.ts +91 -0
- package/dist/models/mongodb/eventModel.ts +153 -0
- package/dist/models/mongodb/examGroupModel.ts +320 -0
- package/dist/models/mongodb/examHasAnswerSheetModel.ts +121 -0
- package/dist/models/mongodb/examModel.ts +268 -0
- package/dist/models/mongodb/feeReminderTypeModel.ts +48 -0
- package/dist/models/mongodb/feedBackModel.ts +87 -0
- package/dist/models/mongodb/generateIdCardModel.ts +29 -0
- package/dist/models/mongodb/holidayModel.ts +164 -0
- package/dist/models/mongodb/index.ts +21 -0
- package/dist/models/mongodb/informationSupportModel.ts +76 -0
- package/dist/models/mongodb/inquiryModel.ts +196 -0
- package/dist/models/mongodb/invoiceModel.ts +115 -0
- package/dist/models/mongodb/jobApplyModel.ts +135 -0
- package/dist/models/mongodb/photosGalleryModel.ts +63 -0
- package/dist/models/mongodb/plannerModel.ts +169 -0
- package/dist/models/mongodb/plugin/addDefaultAttributesPlugin.ts +70 -0
- package/dist/models/mongodb/plugin/transformIdInQueryPlugin.ts +67 -0
- package/dist/models/mongodb/plugin/transformIdInResponsePlugin.ts +72 -0
- package/dist/models/mongodb/replaceTeacherModel.ts +90 -0
- package/dist/models/mongodb/schoolFeeModel.ts +175 -0
- package/dist/models/mongodb/subjectIndexModel.ts +875 -0
- package/dist/models/mongodb/subscriptionPlanModel.ts +113 -0
- package/dist/models/mongodb/taskManagementModel.ts +152 -0
- package/dist/models/mongodb/uniqueNumberCounterModel.ts +57 -0
- package/dist/models/mongodb/userDetailsModel.ts +532 -0
- package/dist/models/mongodb/userDoc.ts +16 -0
- package/dist/models/mongodb/userInstituteMetaModel.ts +202 -0
- package/dist/models/mongodb/userSchoolMetaModel.ts +617 -0
- package/dist/models/mongodb/videoAnalystModel.ts +56 -0
- package/dist/models/mongodb/walletTransactionModel.ts +150 -0
- package/dist/models/psql/SubCategoriesModel.ts +122 -0
- package/dist/models/psql/academicCalendarModel.ts +117 -0
- package/dist/models/psql/accountHasReceiptDetailsModel.ts +179 -0
- package/dist/models/psql/announcementModel.ts +248 -0
- package/dist/models/psql/areaModel.ts +47 -0
- package/dist/models/psql/bankAccountDetailsModel.ts +123 -0
- package/dist/models/psql/bannerModel.ts +141 -0
- package/dist/models/psql/batchModel.ts +268 -0
- package/dist/models/psql/batchSubjectBookAssessmentModel.ts +185 -0
- package/dist/models/psql/batchSubjectProjectAssessmentModel.ts +187 -0
- package/dist/models/psql/bookAssessmentDateModel.ts +106 -0
- package/dist/models/psql/categoriesModel.ts +98 -0
- package/dist/models/psql/cityModel.ts +86 -0
- package/dist/models/psql/classRoomModel.ts +153 -0
- package/dist/models/psql/cloudStorageModel.ts +121 -0
- package/dist/models/psql/coinPurchaseOfferModel.ts +128 -0
- package/dist/models/psql/contactFeedBackModel.ts +146 -0
- package/dist/models/psql/countryModel.ts +58 -0
- package/dist/models/psql/courseHasVisitorsModel.ts +89 -0
- package/dist/models/psql/courseModel.ts +166 -0
- package/dist/models/psql/driverModel.ts +204 -0
- package/dist/models/psql/entityGroupModel.ts +124 -0
- package/dist/models/psql/facilityModel.ts +149 -0
- package/dist/models/psql/featureActionModel.ts +118 -0
- package/dist/models/psql/feeHistoryDetailsModel.ts +218 -0
- package/dist/models/psql/feeHistoryModel.ts +402 -0
- package/dist/models/psql/feeReminderModel.ts +295 -0
- package/dist/models/psql/feeReminderSettingModel.ts +115 -0
- package/dist/models/psql/feeTypeHasTermsModel.ts +127 -0
- package/dist/models/psql/feeTypeModel.ts +151 -0
- package/dist/models/psql/feesCollectionModel.ts +275 -0
- package/dist/models/psql/fileStorageModel.ts +90 -0
- package/dist/models/psql/floorManagementModel.ts +109 -0
- package/dist/models/psql/greetingsModel.ts +147 -0
- package/dist/models/psql/homeWorkModel.ts +155 -0
- package/dist/models/psql/index.ts +108 -0
- package/dist/models/psql/instituteEntityModel.ts +160 -0
- package/dist/models/psql/instituteEntityTypeModel.ts +93 -0
- package/dist/models/psql/instituteModel.ts +290 -0
- package/dist/models/psql/instituteSubscriptionPlanModel.ts +227 -0
- package/dist/models/psql/inventoryHistoryModel.ts +189 -0
- package/dist/models/psql/inventoryModel.ts +160 -0
- package/dist/models/psql/lectureHistoryModel.ts +272 -0
- package/dist/models/psql/lectureModel.ts +602 -0
- package/dist/models/psql/masterLeaveModel.ts +173 -0
- package/dist/models/psql/moduleFeatureModel.ts +121 -0
- package/dist/models/psql/moduleModel.ts +124 -0
- package/dist/models/psql/offerModel.ts +175 -0
- package/dist/models/psql/paymentTermsModel.ts +133 -0
- package/dist/models/psql/pdcChequeModel.ts +169 -0
- package/dist/models/psql/pdcHistoryModel.ts +185 -0
- package/dist/models/psql/pincodeModel.ts +103 -0
- package/dist/models/psql/productModel.ts +148 -0
- package/dist/models/psql/projectAssessmentOptionModel.ts +111 -0
- package/dist/models/psql/roleModel.ts +120 -0
- package/dist/models/psql/rulesRegulationModel.ts +92 -0
- package/dist/models/psql/schoolFeeCollectionModel.ts +177 -0
- package/dist/models/psql/schoolOfferModel.ts +202 -0
- package/dist/models/psql/sendNotificationModel.ts +146 -0
- package/dist/models/psql/slotModel.ts +122 -0
- package/dist/models/psql/stateModel.ts +70 -0
- package/dist/models/psql/subjectHasFeeModel.ts +97 -0
- package/dist/models/psql/subjectHasPayFeeHistoryModel.ts +132 -0
- package/dist/models/psql/syllabusModel.ts +149 -0
- package/dist/models/psql/testimonialModel.ts +215 -0
- package/dist/models/psql/toDoModel.ts +147 -0
- package/dist/models/psql/tokenModel.ts +53 -0
- package/dist/models/psql/tripModel.ts +141 -0
- package/dist/models/psql/typeManagementModel.ts +155 -0
- package/dist/models/psql/userBookAssessmentModel.ts +168 -0
- package/dist/models/psql/userFeeTypeByAccountModel.ts +205 -0
- package/dist/models/psql/userFeeTypeModel.ts +195 -0
- package/dist/models/psql/userHasAnnouncementModel.ts +132 -0
- package/dist/models/psql/userHasBatchModel.ts +112 -0
- package/dist/models/psql/userHasCourseModel.ts +142 -0
- package/dist/models/psql/userHasDeviceModel.ts +112 -0
- package/dist/models/psql/userHasFeeTermsModel.ts +232 -0
- package/dist/models/psql/userHasFileModel.ts +126 -0
- package/dist/models/psql/userHasHomeWorkModel.ts +145 -0
- package/dist/models/psql/userHasInventoryHistoryModel.ts +179 -0
- package/dist/models/psql/userHasInventoryModel.ts +181 -0
- package/dist/models/psql/userHasLeaveHistoryModel.ts +132 -0
- package/dist/models/psql/userHasLeaveModel.ts +147 -0
- package/dist/models/psql/userHasOfferModel.ts +190 -0
- package/dist/models/psql/userHasParentModel.ts +164 -0
- package/dist/models/psql/userHasRoleModel.ts +119 -0
- package/dist/models/psql/userHasRollNumberModel.ts +115 -0
- package/dist/models/psql/userHasStorageModel.ts +111 -0
- package/dist/models/psql/userHasSubjectFeeModel.ts +106 -0
- package/dist/models/psql/userLeaveRequestModel.ts +129 -0
- package/dist/models/psql/userModel.ts +491 -0
- package/dist/models/psql/userPayoutDetailsModel.ts +193 -0
- package/dist/models/psql/userPayoutHistoryModel.ts +188 -0
- package/dist/models/psql/userPayoutModel.ts +442 -0
- package/dist/models/psql/userProjectAssessmentOptionModel.ts +155 -0
- package/dist/models/psql/userRequiredStepsModel.ts +97 -0
- package/dist/models/psql/vehicleModel.ts +133 -0
- package/dist/models/psql/vendorManagementModel.ts +215 -0
- package/dist/models/psql/walletHistoryModel.ts +130 -0
- package/dist/models/psql/walletModel.ts +114 -0
- package/dist/models/psql/workingDayModel.ts +99 -0
- package/dist/models/psql/workingShiftModel.ts +115 -0
- package/dist/services/Concrete/mongooseCommonService.ts +194 -0
- package/dist/services/Concrete/sequelizeCommanService.ts +149 -0
- package/dist/services/Contracts/IMongooseCommonService.ts +75 -0
- package/dist/services/Contracts/ISequelizeCommonService.ts +68 -0
- package/dist/types/academicCalendarType.ts +7 -0
- package/dist/types/accountHasReceiptDetailsType.ts +9 -0
- package/dist/types/announcementType.ts +9 -0
- package/dist/types/approveRequestType.ts +3 -0
- package/dist/types/areaType.ts +4 -0
- package/dist/types/attendanceType.ts +3 -0
- package/dist/types/bankAccountDetailsType.ts +4 -0
- package/dist/types/bannerType.ts +7 -0
- package/dist/types/batchSubjectBookAssessmentType.ts +9 -0
- package/dist/types/batchSubjectProjectAssessmentType.ts +9 -0
- package/dist/types/batchType.ts +7 -0
- package/dist/types/blogType.ts +3 -0
- package/dist/types/bookAssessmentDateType.ts +9 -0
- package/dist/types/careerType.ts +3 -0
- package/dist/types/categoriesType.ts +4 -0
- package/dist/types/classRoomType.ts +4 -0
- package/dist/types/cloudStorageType.ts +4 -0
- package/dist/types/coinPurchaseOfferType.ts +4 -0
- package/dist/types/commonType.ts +10 -0
- package/dist/types/contactFeedBackType.ts +4 -0
- package/dist/types/courseHasVisitorsType.ts +3 -0
- package/dist/types/courseType.ts +3 -0
- package/dist/types/dailyBookType.ts +3 -0
- package/dist/types/dashboardManagementType.ts +3 -0
- package/dist/types/driverType.ts +8 -0
- package/dist/types/entityGroupType.ts +4 -0
- package/dist/types/eventType.ts +3 -0
- package/dist/types/examGroupType.ts +7 -0
- package/dist/types/examHasAnswerSheetType.ts +3 -0
- package/dist/types/examType.ts +6 -0
- package/dist/types/facilityType.ts +4 -0
- package/dist/types/featureActionType.ts +4 -0
- package/dist/types/feeHistoryDetailsType.ts +8 -0
- package/dist/types/feeHistoryType.ts +12 -0
- package/dist/types/feeReminderSettingType.ts +4 -0
- package/dist/types/feeReminderType.ts +4 -0
- package/dist/types/feeReminderTypeType.ts +3 -0
- package/dist/types/feeTypeHasTermsType.ts +4 -0
- package/dist/types/feeTypeType.ts +4 -0
- package/dist/types/feedBackType.ts +3 -0
- package/dist/types/feesCollectionType.ts +4 -0
- package/dist/types/fileStorageType.ts +4 -0
- package/dist/types/floormanagementType.ts +5 -0
- package/dist/types/generateIdCardType.ts +6 -0
- package/dist/types/greetingsType.ts +6 -0
- package/dist/types/holidayType.ts +6 -0
- package/dist/types/homeWorkType.ts +4 -0
- package/dist/types/ifsc.d.ts +17 -0
- package/dist/types/informationSupportType.ts +3 -0
- package/dist/types/inquiryType.ts +3 -0
- package/dist/types/instituteEntityType.ts +8 -0
- package/dist/types/instituteEntityTypeType.ts +4 -0
- package/dist/types/instituteSubscriptionPlanType.ts +4 -0
- package/dist/types/instituteType.ts +4 -0
- package/dist/types/inventoryHistoryType.ts +4 -0
- package/dist/types/inventoryType.ts +4 -0
- package/dist/types/lectureHistoryType.ts +8 -0
- package/dist/types/lectureType.ts +8 -0
- package/dist/types/masterLeaveType.ts +4 -0
- package/dist/types/moduleFeatureType.ts +4 -0
- package/dist/types/moduleType.ts +4 -0
- package/dist/types/mongoose-sequence.d.ts +21 -0
- package/dist/types/offerType.ts +4 -0
- package/dist/types/paymentTermsType.ts +6 -0
- package/dist/types/pdcChequeType.ts +8 -0
- package/dist/types/pdcHistoryType.ts +3 -0
- package/dist/types/photosGalleryType.ts +3 -0
- package/dist/types/plannerType.ts +8 -0
- package/dist/types/productType.ts +4 -0
- package/dist/types/projectAssessmentOptionType.ts +9 -0
- package/dist/types/roleType.ts +13 -0
- package/dist/types/rulesRegulationType.ts +4 -0
- package/dist/types/schoolFeeCollectionType.ts +4 -0
- package/dist/types/schoolFeeType.ts +4 -0
- package/dist/types/schoolOfferType.ts +4 -0
- package/dist/types/sendNotificationType.ts +4 -0
- package/dist/types/sequelize-extensions.d.ts +24 -0
- package/dist/types/slotType.ts +3 -0
- package/dist/types/subCategoryType.ts +4 -0
- package/dist/types/subjectHasFeeType.ts +4 -0
- package/dist/types/subjectHasPayFeeHistoryType.ts +4 -0
- package/dist/types/subjectIndexType.ts +7 -0
- package/dist/types/subscriptionPlanType.ts +3 -0
- package/dist/types/syllabusType.ts +8 -0
- package/dist/types/taskManagementType.ts +3 -0
- package/dist/types/testimonialType.ts +11 -0
- package/dist/types/toDoType.ts +8 -0
- package/dist/types/tripType.ts +3 -0
- package/dist/types/typeManagementType.ts +4 -0
- package/dist/types/uniqueNumberCounterType.ts +3 -0
- package/dist/types/userBookAssessmentType.ts +9 -0
- package/dist/types/userDetailsType.ts +3 -0
- package/dist/types/userFeeTypeByAccountType.ts +4 -0
- package/dist/types/userFeeTypeType.ts +6 -0
- package/dist/types/userHasAnnouncementType.ts +4 -0
- package/dist/types/userHasBatchType.ts +11 -0
- package/dist/types/userHasCourseType.ts +5 -0
- package/dist/types/userHasDeviceType.ts +4 -0
- package/dist/types/userHasFeeTermsType.ts +4 -0
- package/dist/types/userHasFileType.ts +4 -0
- package/dist/types/userHasHomeWorkType.ts +4 -0
- package/dist/types/userHasInventoryHistoryType.ts +4 -0
- package/dist/types/userHasInventoryType.ts +4 -0
- package/dist/types/userHasLeaveHistoryType.ts +4 -0
- package/dist/types/userHasLeaveType.ts +4 -0
- package/dist/types/userHasOffer.ts +4 -0
- package/dist/types/userHasParentType.ts +10 -0
- package/dist/types/userHasRoleType.ts +4 -0
- package/dist/types/userHasRollNumberType.ts +4 -0
- package/dist/types/userHasStorageType.ts +4 -0
- package/dist/types/userHasSubjectFeeType.ts +4 -0
- package/dist/types/userInstituteMetaType.ts +3 -0
- package/dist/types/userLeaveRequestType.ts +4 -0
- package/dist/types/userMetaType.ts +16 -0
- package/dist/types/userPayoutDetailsType.ts +4 -0
- package/dist/types/userPayoutHistoryType.ts +4 -0
- package/dist/types/userPayoutType.ts +9 -0
- package/dist/types/userProjectAssessmentOptionType.ts +9 -0
- package/dist/types/userRequiredStepsType.ts +4 -0
- package/dist/types/userSchoolMetaType.ts +4 -0
- package/dist/types/userType.ts +12 -0
- package/dist/types/vehicleType.ts +4 -0
- package/dist/types/vendorType.ts +5 -0
- package/dist/types/videoAnalystType.ts +3 -0
- package/dist/types/walletHistoryType.ts +4 -0
- package/dist/types/walletTransactionType.ts +4 -0
- package/dist/types/walletType.ts +4 -0
- package/dist/types/workingDayType.ts +4 -0
- package/dist/types/workingShiftType.ts +4 -0
- package/package.json +3 -3
- package/dist/configs/aws.d.ts +0 -2
- package/dist/configs/aws.js +0 -12
- package/dist/configs/env.d.ts +0 -15
- package/dist/configs/env.js +0 -83
- package/dist/constants/app.d.ts +0 -848
- package/dist/constants/app.js +0 -1073
- package/dist/constants/defaultModelAttributes.d.ts +0 -17
- package/dist/constants/defaultModelAttributes.js +0 -21
- package/dist/constants/errorMessages.d.ts +0 -1055
- package/dist/constants/errorMessages.js +0 -1166
- package/dist/constants/httpStatusCode.d.ts +0 -26
- package/dist/constants/httpStatusCode.js +0 -30
- package/dist/constants/successMessages.d.ts +0 -699
- package/dist/constants/successMessages.js +0 -813
- package/dist/db/mongodb.d.ts +0 -1
- package/dist/db/mongodb.js +0 -24
- package/dist/db/postgres.d.ts +0 -2
- package/dist/db/postgres.js +0 -17
- package/dist/helpers/s3Uploader.d.ts +0 -3
- package/dist/helpers/s3Uploader.js +0 -61
- package/dist/helpers/utils.d.ts +0 -173
- package/dist/helpers/utils.js +0 -682
- package/dist/index.js +0 -431
- package/dist/interfaces/academicCalendarInterface.d.ts +0 -9
- package/dist/interfaces/academicCalendarInterface.js +0 -2
- package/dist/interfaces/accountHasReceiptDetailsInterface.d.ts +0 -17
- package/dist/interfaces/accountHasReceiptDetailsInterface.js +0 -2
- package/dist/interfaces/announcementInterface.d.ts +0 -19
- package/dist/interfaces/announcementInterface.js +0 -2
- package/dist/interfaces/approvalRequestInterface.d.ts +0 -14
- package/dist/interfaces/approvalRequestInterface.js +0 -2
- package/dist/interfaces/areaInterface.js +0 -2
- package/dist/interfaces/attendanceInterface.d.ts +0 -21
- package/dist/interfaces/attendanceInterface.js +0 -2
- package/dist/interfaces/bankAccountDetailsInterface.d.ts +0 -14
- package/dist/interfaces/bankAccountDetailsInterface.js +0 -2
- package/dist/interfaces/bannerInterface.d.ts +0 -15
- package/dist/interfaces/bannerInterface.js +0 -2
- package/dist/interfaces/batchInterface.d.ts +0 -18
- package/dist/interfaces/batchInterface.js +0 -2
- package/dist/interfaces/batchSubjectBookAssessmentInterface.d.ts +0 -9
- package/dist/interfaces/batchSubjectBookAssessmentInterface.js +0 -2
- package/dist/interfaces/batchSubjectProjectAssessmentInterface.d.ts +0 -12
- package/dist/interfaces/batchSubjectProjectAssessmentInterface.js +0 -2
- package/dist/interfaces/blogInterface.d.ts +0 -46
- package/dist/interfaces/blogInterface.js +0 -2
- package/dist/interfaces/bookAssessmentDateInterface.d.ts +0 -8
- package/dist/interfaces/bookAssessmentDateInterface.js +0 -2
- package/dist/interfaces/careerInterface.d.ts +0 -12
- package/dist/interfaces/careerInterface.js +0 -2
- package/dist/interfaces/categoriesInterface.d.ts +0 -8
- package/dist/interfaces/categoriesInterface.js +0 -2
- package/dist/interfaces/certificatesHistoryInterface.d.ts +0 -9
- package/dist/interfaces/certificatesHistoryInterface.js +0 -2
- package/dist/interfaces/certificatesManagementInterface.d.ts +0 -11
- package/dist/interfaces/certificatesManagementInterface.js +0 -2
- package/dist/interfaces/cityInterface.d.ts +0 -12
- package/dist/interfaces/cityInterface.js +0 -2
- package/dist/interfaces/classRoomInterface.d.ts +0 -13
- package/dist/interfaces/classRoomInterface.js +0 -2
- package/dist/interfaces/cloudStorageInterface.d.ts +0 -15
- package/dist/interfaces/cloudStorageInterface.js +0 -2
- package/dist/interfaces/coinPurchaseOfferInterface.d.ts +0 -16
- package/dist/interfaces/coinPurchaseOfferInterface.js +0 -2
- package/dist/interfaces/columnInterface.d.ts +0 -15
- package/dist/interfaces/columnInterface.js +0 -2
- package/dist/interfaces/commanInterface.d.ts +0 -52
- package/dist/interfaces/commanInterface.js +0 -2
- package/dist/interfaces/contactFeedBackInterface.js +0 -2
- package/dist/interfaces/countryInterface.js +0 -2
- package/dist/interfaces/courseHasVisitorsInterface.d.ts +0 -7
- package/dist/interfaces/courseHasVisitorsInterface.js +0 -2
- package/dist/interfaces/courseInterface.d.ts +0 -18
- package/dist/interfaces/courseInterface.js +0 -2
- package/dist/interfaces/dailyBookInterface.d.ts +0 -14
- package/dist/interfaces/dailyBookInterface.js +0 -2
- package/dist/interfaces/dashboardManagementInterface.d.ts +0 -19
- package/dist/interfaces/dashboardManagementInterface.js +0 -2
- package/dist/interfaces/driverInterface.d.ts +0 -21
- package/dist/interfaces/driverInterface.js +0 -2
- package/dist/interfaces/entityGroupInterface.d.ts +0 -12
- package/dist/interfaces/entityGroupInterface.js +0 -2
- package/dist/interfaces/eventInterface.d.ts +0 -21
- package/dist/interfaces/eventInterface.js +0 -2
- package/dist/interfaces/examGroupInterface.d.ts +0 -30
- package/dist/interfaces/examGroupInterface.js +0 -2
- package/dist/interfaces/examHasAnswerSheetInterface.d.ts +0 -23
- package/dist/interfaces/examHasAnswerSheetInterface.js +0 -2
- package/dist/interfaces/examInterface.d.ts +0 -38
- package/dist/interfaces/examInterface.js +0 -2
- package/dist/interfaces/facilityInterface.d.ts +0 -9
- package/dist/interfaces/facilityInterface.js +0 -2
- package/dist/interfaces/featureActionInterface.d.ts +0 -17
- package/dist/interfaces/featureActionInterface.js +0 -2
- package/dist/interfaces/feeHistoryDetailsInterface.d.ts +0 -17
- package/dist/interfaces/feeHistoryDetailsInterface.js +0 -2
- package/dist/interfaces/feeHistoryInterface.d.ts +0 -21
- package/dist/interfaces/feeHistoryInterface.js +0 -2
- package/dist/interfaces/feeReminderInterface.d.ts +0 -13
- package/dist/interfaces/feeReminderInterface.js +0 -2
- package/dist/interfaces/feeReminderSettingInterface.d.ts +0 -10
- package/dist/interfaces/feeReminderSettingInterface.js +0 -2
- package/dist/interfaces/feeReminderTypeInterface.d.ts +0 -10
- package/dist/interfaces/feeReminderTypeInterface.js +0 -2
- package/dist/interfaces/feeTypeHasTermsInterface.d.ts +0 -12
- package/dist/interfaces/feeTypeHasTermsInterface.js +0 -2
- package/dist/interfaces/feeTypeInterface.d.ts +0 -13
- package/dist/interfaces/feeTypeInterface.js +0 -2
- package/dist/interfaces/feedBackInterface.d.ts +0 -19
- package/dist/interfaces/feedBackInterface.js +0 -2
- package/dist/interfaces/feesCollectionInterface.d.ts +0 -19
- package/dist/interfaces/feesCollectionInterface.js +0 -2
- package/dist/interfaces/fileStorageInterface.d.ts +0 -14
- package/dist/interfaces/fileStorageInterface.js +0 -2
- package/dist/interfaces/floorManagementInterface.d.ts +0 -9
- package/dist/interfaces/floorManagementInterface.js +0 -2
- package/dist/interfaces/generateIdCardInterface.d.ts +0 -8
- package/dist/interfaces/generateIdCardInterface.js +0 -2
- package/dist/interfaces/greetingsInterface.d.ts +0 -12
- package/dist/interfaces/greetingsInterface.js +0 -2
- package/dist/interfaces/holidayInterface.d.ts +0 -22
- package/dist/interfaces/holidayInterface.js +0 -2
- package/dist/interfaces/homeworkInterface.d.ts +0 -13
- package/dist/interfaces/homeworkInterface.js +0 -2
- package/dist/interfaces/informationSupportInterface.d.ts +0 -15
- package/dist/interfaces/informationSupportInterface.js +0 -2
- package/dist/interfaces/inquiryInterface.d.ts +0 -54
- package/dist/interfaces/inquiryInterface.js +0 -2
- package/dist/interfaces/instituteEntityInterface.d.ts +0 -16
- package/dist/interfaces/instituteEntityInterface.js +0 -2
- package/dist/interfaces/instituteEntityTypeInterface.d.ts +0 -10
- package/dist/interfaces/instituteEntityTypeInterface.js +0 -2
- package/dist/interfaces/instituteInterface.d.ts +0 -35
- package/dist/interfaces/instituteInterface.js +0 -2
- package/dist/interfaces/instituteSubscriptionPlanInterface.d.ts +0 -21
- package/dist/interfaces/instituteSubscriptionPlanInterface.js +0 -2
- package/dist/interfaces/inventoryHistoryInterface.d.ts +0 -17
- package/dist/interfaces/inventoryHistoryInterface.js +0 -2
- package/dist/interfaces/inventoryInterface.d.ts +0 -15
- package/dist/interfaces/inventoryInterface.js +0 -2
- package/dist/interfaces/invoiceInterface.d.ts +0 -31
- package/dist/interfaces/invoiceInterface.js +0 -2
- package/dist/interfaces/jobApplyInterface.d.ts +0 -35
- package/dist/interfaces/jobApplyInterface.js +0 -2
- package/dist/interfaces/lectureHistoryInterface.d.ts +0 -24
- package/dist/interfaces/lectureHistoryInterface.js +0 -2
- package/dist/interfaces/lectureInterface.d.ts +0 -26
- package/dist/interfaces/lectureInterface.js +0 -2
- package/dist/interfaces/masterLeaveInterface.d.ts +0 -13
- package/dist/interfaces/masterLeaveInterface.js +0 -2
- package/dist/interfaces/moduleFeatureInterface.d.ts +0 -16
- package/dist/interfaces/moduleFeatureInterface.js +0 -2
- package/dist/interfaces/moduleInterface.d.ts +0 -15
- package/dist/interfaces/moduleInterface.js +0 -2
- package/dist/interfaces/offersInterface.d.ts +0 -18
- package/dist/interfaces/offersInterface.js +0 -2
- package/dist/interfaces/paymentTermsInterface.d.ts +0 -15
- package/dist/interfaces/paymentTermsInterface.js +0 -2
- package/dist/interfaces/pdcChequeInterface.d.ts +0 -16
- package/dist/interfaces/pdcChequeInterface.js +0 -2
- package/dist/interfaces/pdcHistoryInterface.d.ts +0 -17
- package/dist/interfaces/pdcHistoryInterface.js +0 -2
- package/dist/interfaces/photosGalleryInterface.d.ts +0 -17
- package/dist/interfaces/photosGalleryInterface.js +0 -2
- package/dist/interfaces/pincodeInterface.d.ts +0 -15
- package/dist/interfaces/pincodeInterface.js +0 -2
- package/dist/interfaces/plannerInterface.d.ts +0 -32
- package/dist/interfaces/plannerInterface.js +0 -2
- package/dist/interfaces/productInterface.d.ts +0 -10
- package/dist/interfaces/productInterface.js +0 -2
- package/dist/interfaces/projectAssessmentOptionInterface.d.ts +0 -8
- package/dist/interfaces/projectAssessmentOptionInterface.js +0 -2
- package/dist/interfaces/replaceTeacherInterface.d.ts +0 -22
- package/dist/interfaces/replaceTeacherInterface.js +0 -2
- package/dist/interfaces/roleInterface.d.ts +0 -26
- package/dist/interfaces/roleInterface.js +0 -2
- package/dist/interfaces/rulesRegulationInterface.d.ts +0 -10
- package/dist/interfaces/rulesRegulationInterface.js +0 -2
- package/dist/interfaces/schoolFeeCollectionInterface.d.ts +0 -13
- package/dist/interfaces/schoolFeeCollectionInterface.js +0 -2
- package/dist/interfaces/schoolFeeInterface.d.ts +0 -21
- package/dist/interfaces/schoolFeeInterface.js +0 -2
- package/dist/interfaces/schoolOfferInterface.d.ts +0 -20
- package/dist/interfaces/schoolOfferInterface.js +0 -2
- package/dist/interfaces/sendNotificationInerface.d.ts +0 -20
- package/dist/interfaces/sendNotificationInerface.js +0 -2
- package/dist/interfaces/slotInterface.d.ts +0 -8
- package/dist/interfaces/slotInterface.js +0 -2
- package/dist/interfaces/stateInterface.d.ts +0 -11
- package/dist/interfaces/stateInterface.js +0 -2
- package/dist/interfaces/subCategoriesInterface.d.ts +0 -9
- package/dist/interfaces/subCategoriesInterface.js +0 -2
- package/dist/interfaces/subjectHasFeeInterface.d.ts +0 -7
- package/dist/interfaces/subjectHasFeeInterface.js +0 -2
- package/dist/interfaces/subjectHasPayFeeHistoryInterface.d.ts +0 -9
- package/dist/interfaces/subjectHasPayFeeHistoryInterface.js +0 -2
- package/dist/interfaces/subjectIndexInterface.d.ts +0 -48
- package/dist/interfaces/subjectIndexInterface.js +0 -2
- package/dist/interfaces/subscriptionPlanInterface.d.ts +0 -29
- package/dist/interfaces/subscriptionPlanInterface.js +0 -2
- package/dist/interfaces/syllabusInterface.d.ts +0 -9
- package/dist/interfaces/syllabusInterface.js +0 -2
- package/dist/interfaces/taskManagementInterface.d.ts +0 -24
- package/dist/interfaces/taskManagementInterface.js +0 -2
- package/dist/interfaces/testimonialInterface.d.ts +0 -12
- package/dist/interfaces/testimonialInterface.js +0 -2
- package/dist/interfaces/toDoInterface.d.ts +0 -11
- package/dist/interfaces/toDoInterface.js +0 -2
- package/dist/interfaces/tokenInterface.d.ts +0 -27
- package/dist/interfaces/tokenInterface.js +0 -2
- package/dist/interfaces/tripInterface.d.ts +0 -13
- package/dist/interfaces/tripInterface.js +0 -2
- package/dist/interfaces/typeManagementInterface.d.ts +0 -11
- package/dist/interfaces/typeManagementInterface.js +0 -2
- package/dist/interfaces/uniqueNumberCounterInterface.d.ts +0 -11
- package/dist/interfaces/uniqueNumberCounterInterface.js +0 -2
- package/dist/interfaces/userBookAssessmentInterface.d.ts +0 -10
- package/dist/interfaces/userBookAssessmentInterface.js +0 -2
- package/dist/interfaces/userDetailsInterface.d.ts +0 -122
- package/dist/interfaces/userDetailsInterface.js +0 -2
- package/dist/interfaces/userFeeTypeByAccountInterface.d.ts +0 -19
- package/dist/interfaces/userFeeTypeByAccountInterface.js +0 -2
- package/dist/interfaces/userFeeTypeInterface.d.ts +0 -16
- package/dist/interfaces/userFeeTypeInterface.js +0 -2
- package/dist/interfaces/userHasAnnouncementInterface.d.ts +0 -9
- package/dist/interfaces/userHasAnnouncementInterface.js +0 -2
- package/dist/interfaces/userHasBatchInterface.d.ts +0 -7
- package/dist/interfaces/userHasBatchInterface.js +0 -2
- package/dist/interfaces/userHasCourseInterface.d.ts +0 -13
- package/dist/interfaces/userHasCourseInterface.js +0 -2
- package/dist/interfaces/userHasDeviceInterface.d.ts +0 -10
- package/dist/interfaces/userHasDeviceInterface.js +0 -2
- package/dist/interfaces/userHasFeeTermsInterface.d.ts +0 -37
- package/dist/interfaces/userHasFeeTermsInterface.js +0 -2
- package/dist/interfaces/userHasFileInterface.d.ts +0 -11
- package/dist/interfaces/userHasFileInterface.js +0 -2
- package/dist/interfaces/userHasHomeWorkInterface.d.ts +0 -11
- package/dist/interfaces/userHasHomeWorkInterface.js +0 -2
- package/dist/interfaces/userHasInventoryHistoryInterface.d.ts +0 -20
- package/dist/interfaces/userHasInventoryHistoryInterface.js +0 -2
- package/dist/interfaces/userHasInventoryInterface.d.ts +0 -21
- package/dist/interfaces/userHasInventoryInterface.js +0 -2
- package/dist/interfaces/userHasLeaveHistoryInterface.d.ts +0 -16
- package/dist/interfaces/userHasLeaveHistoryInterface.js +0 -2
- package/dist/interfaces/userHasLeaveInterface.d.ts +0 -12
- package/dist/interfaces/userHasLeaveInterface.js +0 -2
- package/dist/interfaces/userHasOfferInterface.d.ts +0 -10
- package/dist/interfaces/userHasOfferInterface.js +0 -2
- package/dist/interfaces/userHasParentInterface.d.ts +0 -14
- package/dist/interfaces/userHasParentInterface.js +0 -2
- package/dist/interfaces/userHasRoleInterface.d.ts +0 -13
- package/dist/interfaces/userHasRoleInterface.js +0 -2
- package/dist/interfaces/userHasRollNumberInterface.d.ts +0 -8
- package/dist/interfaces/userHasRollNumberInterface.js +0 -2
- package/dist/interfaces/userHasStorageInterface.d.ts +0 -11
- package/dist/interfaces/userHasStorageInterface.js +0 -2
- package/dist/interfaces/userHasSubjectFeeInterface.d.ts +0 -9
- package/dist/interfaces/userHasSubjectFeeInterface.js +0 -2
- package/dist/interfaces/userInstituteMetaInterface.d.ts +0 -39
- package/dist/interfaces/userInstituteMetaInterface.js +0 -2
- package/dist/interfaces/userInterface.d.ts +0 -44
- package/dist/interfaces/userInterface.js +0 -2
- package/dist/interfaces/userLeaveRequestInterface.d.ts +0 -15
- package/dist/interfaces/userLeaveRequestInterface.js +0 -2
- package/dist/interfaces/userMetaInterface.d.ts +0 -13
- package/dist/interfaces/userMetaInterface.js +0 -2
- package/dist/interfaces/userPayoutDetailsInterface.d.ts +0 -14
- package/dist/interfaces/userPayoutDetailsInterface.js +0 -2
- package/dist/interfaces/userPayoutHistoryInterface.d.ts +0 -18
- package/dist/interfaces/userPayoutHistoryInterface.js +0 -2
- package/dist/interfaces/userPayoutInterface.d.ts +0 -12
- package/dist/interfaces/userPayoutInterface.js +0 -2
- package/dist/interfaces/userProjectAssessmentOptionInterface.d.ts +0 -10
- package/dist/interfaces/userProjectAssessmentOptionInterface.js +0 -2
- package/dist/interfaces/userRequiredStepsInterface.d.ts +0 -9
- package/dist/interfaces/userRequiredStepsInterface.js +0 -2
- package/dist/interfaces/userSchoolMetaInterface.d.ts +0 -115
- package/dist/interfaces/userSchoolMetaInterface.js +0 -2
- package/dist/interfaces/vehicleInterface.d.ts +0 -11
- package/dist/interfaces/vehicleInterface.js +0 -2
- package/dist/interfaces/vendorManagementInterface.d.ts +0 -19
- package/dist/interfaces/vendorManagementInterface.js +0 -2
- package/dist/interfaces/videoAnalystInterface.d.ts +0 -37
- package/dist/interfaces/videoAnalystInterface.js +0 -2
- package/dist/interfaces/walletHistoryInterface.d.ts +0 -15
- package/dist/interfaces/walletHistoryInterface.js +0 -2
- package/dist/interfaces/walletInterface.d.ts +0 -10
- package/dist/interfaces/walletInterface.js +0 -2
- package/dist/interfaces/walletTransactionInterface.d.ts +0 -34
- package/dist/interfaces/walletTransactionInterface.js +0 -2
- package/dist/interfaces/workingDayInterface.d.ts +0 -11
- package/dist/interfaces/workingDayInterface.js +0 -2
- package/dist/interfaces/workingShiftInterface.d.ts +0 -12
- package/dist/interfaces/workingShiftInterface.js +0 -2
- package/dist/models/mongodb/approvalRequestModel.d.ts +0 -4
- package/dist/models/mongodb/approvalRequestModel.js +0 -96
- package/dist/models/mongodb/attendanceModel.d.ts +0 -4
- package/dist/models/mongodb/attendanceModel.js +0 -178
- package/dist/models/mongodb/blogModel.d.ts +0 -4
- package/dist/models/mongodb/blogModel.js +0 -91
- package/dist/models/mongodb/careerModel.d.ts +0 -4
- package/dist/models/mongodb/careerModel.js +0 -83
- package/dist/models/mongodb/certificatesHistoryModel.d.ts +0 -4
- package/dist/models/mongodb/certificatesHistoryModel.js +0 -58
- package/dist/models/mongodb/certificatesManagementModel.d.ts +0 -4
- package/dist/models/mongodb/certificatesManagementModel.js +0 -67
- package/dist/models/mongodb/columnModel.d.ts +0 -4
- package/dist/models/mongodb/columnModel.js +0 -75
- package/dist/models/mongodb/dailyBookModel.d.ts +0 -4
- package/dist/models/mongodb/dailyBookModel.js +0 -88
- package/dist/models/mongodb/dashboardManagementModel.d.ts +0 -4
- package/dist/models/mongodb/dashboardManagementModel.js +0 -111
- package/dist/models/mongodb/eventModel.d.ts +0 -4
- package/dist/models/mongodb/eventModel.js +0 -164
- package/dist/models/mongodb/examGroupModel.d.ts +0 -4
- package/dist/models/mongodb/examGroupModel.js +0 -293
- package/dist/models/mongodb/examHasAnswerSheetModel.d.ts +0 -4
- package/dist/models/mongodb/examHasAnswerSheetModel.js +0 -133
- package/dist/models/mongodb/examModel.d.ts +0 -4
- package/dist/models/mongodb/examModel.js +0 -267
- package/dist/models/mongodb/feeReminderTypeModel.d.ts +0 -4
- package/dist/models/mongodb/feeReminderTypeModel.js +0 -73
- package/dist/models/mongodb/feedBackModel.d.ts +0 -4
- package/dist/models/mongodb/feedBackModel.js +0 -111
- package/dist/models/mongodb/generateIdCardModel.d.ts +0 -4
- package/dist/models/mongodb/generateIdCardModel.js +0 -55
- package/dist/models/mongodb/holidayModel.d.ts +0 -4
- package/dist/models/mongodb/holidayModel.js +0 -172
- package/dist/models/mongodb/index.d.ts +0 -2
- package/dist/models/mongodb/index.js +0 -24
- package/dist/models/mongodb/informationSupportModel.d.ts +0 -4
- package/dist/models/mongodb/informationSupportModel.js +0 -96
- package/dist/models/mongodb/inquiryModel.d.ts +0 -4
- package/dist/models/mongodb/inquiryModel.js +0 -186
- package/dist/models/mongodb/invoiceModel.d.ts +0 -4
- package/dist/models/mongodb/invoiceModel.js +0 -134
- package/dist/models/mongodb/jobApplyModel.d.ts +0 -4
- package/dist/models/mongodb/jobApplyModel.js +0 -151
- package/dist/models/mongodb/photosGalleryModel.d.ts +0 -4
- package/dist/models/mongodb/photosGalleryModel.js +0 -86
- package/dist/models/mongodb/plannerModel.d.ts +0 -4
- package/dist/models/mongodb/plannerModel.js +0 -174
- package/dist/models/mongodb/plugin/addDefaultAttributesPlugin.d.ts +0 -2
- package/dist/models/mongodb/plugin/addDefaultAttributesPlugin.js +0 -63
- package/dist/models/mongodb/plugin/transformIdInQueryPlugin.d.ts +0 -3
- package/dist/models/mongodb/plugin/transformIdInQueryPlugin.js +0 -61
- package/dist/models/mongodb/plugin/transformIdInResponsePlugin.d.ts +0 -3
- package/dist/models/mongodb/plugin/transformIdInResponsePlugin.js +0 -65
- package/dist/models/mongodb/replaceTeacherModel.d.ts +0 -4
- package/dist/models/mongodb/replaceTeacherModel.js +0 -110
- package/dist/models/mongodb/schoolFeeModel.d.ts +0 -4
- package/dist/models/mongodb/schoolFeeModel.js +0 -178
- package/dist/models/mongodb/subjectIndexModel.d.ts +0 -4
- package/dist/models/mongodb/subjectIndexModel.js +0 -667
- package/dist/models/mongodb/subscriptionPlanModel.d.ts +0 -4
- package/dist/models/mongodb/subscriptionPlanModel.js +0 -133
- package/dist/models/mongodb/taskManagementModel.d.ts +0 -4
- package/dist/models/mongodb/taskManagementModel.js +0 -167
- package/dist/models/mongodb/uniqueNumberCounterModel.d.ts +0 -4
- package/dist/models/mongodb/uniqueNumberCounterModel.js +0 -83
- package/dist/models/mongodb/userDetailsModel.d.ts +0 -5
- package/dist/models/mongodb/userDetailsModel.js +0 -509
- package/dist/models/mongodb/userDoc.d.ts +0 -10
- package/dist/models/mongodb/userDoc.js +0 -9
- package/dist/models/mongodb/userInstituteMetaModel.d.ts +0 -4
- package/dist/models/mongodb/userInstituteMetaModel.js +0 -212
- package/dist/models/mongodb/userSchoolMetaModel.d.ts +0 -7
- package/dist/models/mongodb/userSchoolMetaModel.js +0 -552
- package/dist/models/mongodb/videoAnalystModel.d.ts +0 -4
- package/dist/models/mongodb/videoAnalystModel.js +0 -80
- package/dist/models/mongodb/walletTransactionModel.d.ts +0 -4
- package/dist/models/mongodb/walletTransactionModel.js +0 -163
- package/dist/models/psql/SubCategoriesModel.d.ts +0 -17
- package/dist/models/psql/SubCategoriesModel.js +0 -102
- package/dist/models/psql/academicCalendarModel.d.ts +0 -18
- package/dist/models/psql/academicCalendarModel.js +0 -94
- package/dist/models/psql/accountHasReceiptDetailsModel.d.ts +0 -26
- package/dist/models/psql/accountHasReceiptDetailsModel.js +0 -145
- package/dist/models/psql/announcementModel.d.ts +0 -28
- package/dist/models/psql/announcementModel.js +0 -198
- package/dist/models/psql/areaModel.d.ts +0 -9
- package/dist/models/psql/areaModel.js +0 -40
- package/dist/models/psql/bankAccountDetailsModel.d.ts +0 -23
- package/dist/models/psql/bankAccountDetailsModel.js +0 -100
- package/dist/models/psql/bannerModel.d.ts +0 -24
- package/dist/models/psql/bannerModel.js +0 -116
- package/dist/models/psql/batchModel.d.ts +0 -27
- package/dist/models/psql/batchModel.js +0 -222
- package/dist/models/psql/batchSubjectBookAssessmentModel.d.ts +0 -18
- package/dist/models/psql/batchSubjectBookAssessmentModel.js +0 -156
- package/dist/models/psql/batchSubjectProjectAssessmentModel.d.ts +0 -21
- package/dist/models/psql/batchSubjectProjectAssessmentModel.js +0 -154
- package/dist/models/psql/bookAssessmentDateModel.d.ts +0 -17
- package/dist/models/psql/bookAssessmentDateModel.js +0 -87
- package/dist/models/psql/categoriesModel.d.ts +0 -17
- package/dist/models/psql/categoriesModel.js +0 -80
- package/dist/models/psql/cityModel.d.ts +0 -13
- package/dist/models/psql/cityModel.js +0 -72
- package/dist/models/psql/classRoomModel.d.ts +0 -22
- package/dist/models/psql/classRoomModel.js +0 -126
- package/dist/models/psql/cloudStorageModel.d.ts +0 -24
- package/dist/models/psql/cloudStorageModel.js +0 -97
- package/dist/models/psql/coinPurchaseOfferModel.d.ts +0 -25
- package/dist/models/psql/coinPurchaseOfferModel.js +0 -103
- package/dist/models/psql/contactFeedBackModel.d.ts +0 -22
- package/dist/models/psql/contactFeedBackModel.js +0 -120
- package/dist/models/psql/countryModel.d.ts +0 -14
- package/dist/models/psql/countryModel.js +0 -43
- package/dist/models/psql/courseHasVisitorsModel.d.ts +0 -16
- package/dist/models/psql/courseHasVisitorsModel.js +0 -71
- package/dist/models/psql/courseModel.d.ts +0 -27
- package/dist/models/psql/courseModel.js +0 -136
- package/dist/models/psql/driverModel.d.ts +0 -30
- package/dist/models/psql/driverModel.js +0 -163
- package/dist/models/psql/entityGroupModel.d.ts +0 -21
- package/dist/models/psql/entityGroupModel.js +0 -100
- package/dist/models/psql/facilityModel.d.ts +0 -18
- package/dist/models/psql/facilityModel.js +0 -120
- package/dist/models/psql/featureActionModel.d.ts +0 -22
- package/dist/models/psql/featureActionModel.js +0 -95
- package/dist/models/psql/feeHistoryDetailsModel.d.ts +0 -26
- package/dist/models/psql/feeHistoryDetailsModel.js +0 -186
- package/dist/models/psql/feeHistoryModel.d.ts +0 -30
- package/dist/models/psql/feeHistoryModel.js +0 -334
- package/dist/models/psql/feeReminderModel.d.ts +0 -22
- package/dist/models/psql/feeReminderModel.js +0 -239
- package/dist/models/psql/feeReminderSettingModel.d.ts +0 -19
- package/dist/models/psql/feeReminderSettingModel.js +0 -90
- package/dist/models/psql/feeTypeHasTermsModel.d.ts +0 -21
- package/dist/models/psql/feeTypeHasTermsModel.js +0 -102
- package/dist/models/psql/feeTypeModel.d.ts +0 -22
- package/dist/models/psql/feeTypeModel.js +0 -125
- package/dist/models/psql/feesCollectionModel.d.ts +0 -28
- package/dist/models/psql/feesCollectionModel.js +0 -232
- package/dist/models/psql/fileStorageModel.d.ts +0 -6
- package/dist/models/psql/fileStorageModel.js +0 -86
- package/dist/models/psql/floorManagementModel.d.ts +0 -18
- package/dist/models/psql/floorManagementModel.js +0 -90
- package/dist/models/psql/greetingsModel.d.ts +0 -21
- package/dist/models/psql/greetingsModel.js +0 -118
- package/dist/models/psql/homeWorkModel.d.ts +0 -22
- package/dist/models/psql/homeWorkModel.js +0 -128
- package/dist/models/psql/index.d.ts +0 -4
- package/dist/models/psql/index.js +0 -121
- package/dist/models/psql/instituteEntityModel.d.ts +0 -25
- package/dist/models/psql/instituteEntityModel.js +0 -131
- package/dist/models/psql/instituteEntityTypeModel.d.ts +0 -19
- package/dist/models/psql/instituteEntityTypeModel.js +0 -74
- package/dist/models/psql/instituteModel.d.ts +0 -44
- package/dist/models/psql/instituteModel.js +0 -240
- package/dist/models/psql/instituteSubscriptionPlanModel.d.ts +0 -33
- package/dist/models/psql/instituteSubscriptionPlanModel.js +0 -186
- package/dist/models/psql/inventoryHistoryModel.d.ts +0 -26
- package/dist/models/psql/inventoryHistoryModel.js +0 -159
- package/dist/models/psql/inventoryModel.d.ts +0 -24
- package/dist/models/psql/inventoryModel.js +0 -132
- package/dist/models/psql/lectureHistoryModel.d.ts +0 -32
- package/dist/models/psql/lectureHistoryModel.js +0 -223
- package/dist/models/psql/lectureModel.d.ts +0 -34
- package/dist/models/psql/lectureModel.js +0 -485
- package/dist/models/psql/masterLeaveModel.d.ts +0 -22
- package/dist/models/psql/masterLeaveModel.js +0 -132
- package/dist/models/psql/moduleFeatureModel.d.ts +0 -21
- package/dist/models/psql/moduleFeatureModel.js +0 -98
- package/dist/models/psql/moduleModel.d.ts +0 -20
- package/dist/models/psql/moduleModel.js +0 -101
- package/dist/models/psql/offerModel.d.ts +0 -27
- package/dist/models/psql/offerModel.js +0 -144
- package/dist/models/psql/paymentTermsModel.d.ts +0 -17
- package/dist/models/psql/paymentTermsModel.js +0 -114
- package/dist/models/psql/pdcChequeModel.d.ts +0 -25
- package/dist/models/psql/pdcChequeModel.js +0 -138
- package/dist/models/psql/pdcHistoryModel.d.ts +0 -26
- package/dist/models/psql/pdcHistoryModel.js +0 -152
- package/dist/models/psql/pincodeModel.d.ts +0 -23
- package/dist/models/psql/pincodeModel.js +0 -79
- package/dist/models/psql/productModel.d.ts +0 -19
- package/dist/models/psql/productModel.js +0 -124
- package/dist/models/psql/projectAssessmentOptionModel.d.ts +0 -17
- package/dist/models/psql/projectAssessmentOptionModel.js +0 -90
- package/dist/models/psql/roleModel.d.ts +0 -22
- package/dist/models/psql/roleModel.js +0 -97
- package/dist/models/psql/rulesRegulationModel.d.ts +0 -19
- package/dist/models/psql/rulesRegulationModel.js +0 -72
- package/dist/models/psql/schoolFeeCollectionModel.d.ts +0 -22
- package/dist/models/psql/schoolFeeCollectionModel.js +0 -156
- package/dist/models/psql/schoolOfferModel.d.ts +0 -29
- package/dist/models/psql/schoolOfferModel.js +0 -167
- package/dist/models/psql/sendNotificationModel.d.ts +0 -22
- package/dist/models/psql/sendNotificationModel.js +0 -117
- package/dist/models/psql/slotModel.d.ts +0 -17
- package/dist/models/psql/slotModel.js +0 -99
- package/dist/models/psql/stateModel.d.ts +0 -13
- package/dist/models/psql/stateModel.js +0 -58
- package/dist/models/psql/subjectHasFeeModel.d.ts +0 -16
- package/dist/models/psql/subjectHasFeeModel.js +0 -78
- package/dist/models/psql/subjectHasPayFeeHistoryModel.d.ts +0 -18
- package/dist/models/psql/subjectHasPayFeeHistoryModel.js +0 -109
- package/dist/models/psql/syllabusModel.d.ts +0 -18
- package/dist/models/psql/syllabusModel.js +0 -125
- package/dist/models/psql/testimonialModel.d.ts +0 -21
- package/dist/models/psql/testimonialModel.js +0 -162
- package/dist/models/psql/toDoModel.d.ts +0 -20
- package/dist/models/psql/toDoModel.js +0 -116
- package/dist/models/psql/tokenModel.d.ts +0 -15
- package/dist/models/psql/tokenModel.js +0 -37
- package/dist/models/psql/tripModel.d.ts +0 -22
- package/dist/models/psql/tripModel.js +0 -114
- package/dist/models/psql/typeManagementModel.d.ts +0 -20
- package/dist/models/psql/typeManagementModel.js +0 -122
- package/dist/models/psql/userBookAssessmentModel.d.ts +0 -19
- package/dist/models/psql/userBookAssessmentModel.js +0 -141
- package/dist/models/psql/userFeeTypeByAccountModel.d.ts +0 -22
- package/dist/models/psql/userFeeTypeByAccountModel.js +0 -184
- package/dist/models/psql/userFeeTypeModel.d.ts +0 -25
- package/dist/models/psql/userFeeTypeModel.js +0 -172
- package/dist/models/psql/userHasAnnouncementModel.d.ts +0 -18
- package/dist/models/psql/userHasAnnouncementModel.js +0 -108
- package/dist/models/psql/userHasBatchModel.d.ts +0 -16
- package/dist/models/psql/userHasBatchModel.js +0 -92
- package/dist/models/psql/userHasCourseModel.d.ts +0 -22
- package/dist/models/psql/userHasCourseModel.js +0 -116
- package/dist/models/psql/userHasDeviceModel.d.ts +0 -19
- package/dist/models/psql/userHasDeviceModel.js +0 -91
- package/dist/models/psql/userHasFeeTermsModel.d.ts +0 -27
- package/dist/models/psql/userHasFeeTermsModel.js +0 -202
- package/dist/models/psql/userHasFileModel.d.ts +0 -16
- package/dist/models/psql/userHasFileModel.js +0 -107
- package/dist/models/psql/userHasHomeWorkModel.d.ts +0 -19
- package/dist/models/psql/userHasHomeWorkModel.js +0 -119
- package/dist/models/psql/userHasInventoryHistoryModel.d.ts +0 -29
- package/dist/models/psql/userHasInventoryHistoryModel.js +0 -146
- package/dist/models/psql/userHasInventoryModel.d.ts +0 -30
- package/dist/models/psql/userHasInventoryModel.js +0 -148
- package/dist/models/psql/userHasLeaveHistoryModel.d.ts +0 -25
- package/dist/models/psql/userHasLeaveHistoryModel.js +0 -106
- package/dist/models/psql/userHasLeaveModel.d.ts +0 -21
- package/dist/models/psql/userHasLeaveModel.js +0 -121
- package/dist/models/psql/userHasOfferModel.d.ts +0 -19
- package/dist/models/psql/userHasOfferModel.js +0 -154
- package/dist/models/psql/userHasParentModel.d.ts +0 -23
- package/dist/models/psql/userHasParentModel.js +0 -135
- package/dist/models/psql/userHasRoleModel.d.ts +0 -18
- package/dist/models/psql/userHasRoleModel.js +0 -97
- package/dist/models/psql/userHasRollNumberModel.d.ts +0 -17
- package/dist/models/psql/userHasRollNumberModel.js +0 -90
- package/dist/models/psql/userHasStorageModel.d.ts +0 -20
- package/dist/models/psql/userHasStorageModel.js +0 -86
- package/dist/models/psql/userHasSubjectFeeModel.d.ts +0 -18
- package/dist/models/psql/userHasSubjectFeeModel.js +0 -86
- package/dist/models/psql/userLeaveRequestModel.d.ts +0 -24
- package/dist/models/psql/userLeaveRequestModel.js +0 -104
- package/dist/models/psql/userModel.d.ts +0 -55
- package/dist/models/psql/userModel.js +0 -392
- package/dist/models/psql/userPayoutDetailsModel.d.ts +0 -21
- package/dist/models/psql/userPayoutDetailsModel.js +0 -162
- package/dist/models/psql/userPayoutHistoryModel.d.ts +0 -27
- package/dist/models/psql/userPayoutHistoryModel.js +0 -155
- package/dist/models/psql/userPayoutModel.d.ts +0 -20
- package/dist/models/psql/userPayoutModel.js +0 -316
- package/dist/models/psql/userProjectAssessmentOptionModel.d.ts +0 -19
- package/dist/models/psql/userProjectAssessmentOptionModel.js +0 -126
- package/dist/models/psql/userRequiredStepsModel.d.ts +0 -17
- package/dist/models/psql/userRequiredStepsModel.js +0 -78
- package/dist/models/psql/vehicleModel.d.ts +0 -20
- package/dist/models/psql/vehicleModel.js +0 -110
- package/dist/models/psql/vendorManagementModel.d.ts +0 -28
- package/dist/models/psql/vendorManagementModel.js +0 -179
- package/dist/models/psql/walletHistoryModel.d.ts +0 -24
- package/dist/models/psql/walletHistoryModel.js +0 -103
- package/dist/models/psql/walletModel.d.ts +0 -19
- package/dist/models/psql/walletModel.js +0 -93
- package/dist/models/psql/workingDayModel.d.ts +0 -20
- package/dist/models/psql/workingDayModel.js +0 -79
- package/dist/models/psql/workingShiftModel.d.ts +0 -21
- package/dist/models/psql/workingShiftModel.js +0 -92
- package/dist/services/Concrete/mongooseCommonService.d.ts +0 -36
- package/dist/services/Concrete/mongooseCommonService.js +0 -108
- package/dist/services/Concrete/sequelizeCommanService.d.ts +0 -17
- package/dist/services/Concrete/sequelizeCommanService.js +0 -123
- package/dist/services/Contracts/IMongooseCommonService.d.ts +0 -36
- package/dist/services/Contracts/IMongooseCommonService.js +0 -2
- package/dist/services/Contracts/ISequelizeCommonService.d.ts +0 -21
- package/dist/services/Contracts/ISequelizeCommonService.js +0 -2
- package/dist/types/academicCalendarType.d.ts +0 -6
- package/dist/types/academicCalendarType.js +0 -2
- package/dist/types/accountHasReceiptDetailsType.d.ts +0 -7
- package/dist/types/accountHasReceiptDetailsType.js +0 -2
- package/dist/types/announcementType.d.ts +0 -6
- package/dist/types/announcementType.js +0 -2
- package/dist/types/approveRequestType.d.ts +0 -2
- package/dist/types/approveRequestType.js +0 -2
- package/dist/types/areaType.d.ts +0 -3
- package/dist/types/areaType.js +0 -2
- package/dist/types/attendanceType.d.ts +0 -2
- package/dist/types/attendanceType.js +0 -2
- package/dist/types/bankAccountDetailsType.d.ts +0 -3
- package/dist/types/bankAccountDetailsType.js +0 -2
- package/dist/types/bannerType.d.ts +0 -7
- package/dist/types/bannerType.js +0 -2
- package/dist/types/batchSubjectBookAssessmentType.d.ts +0 -7
- package/dist/types/batchSubjectBookAssessmentType.js +0 -2
- package/dist/types/batchSubjectProjectAssessmentType.d.ts +0 -7
- package/dist/types/batchSubjectProjectAssessmentType.js +0 -2
- package/dist/types/batchType.d.ts +0 -7
- package/dist/types/batchType.js +0 -2
- package/dist/types/blogType.d.ts +0 -2
- package/dist/types/blogType.js +0 -2
- package/dist/types/bookAssessmentDateType.d.ts +0 -7
- package/dist/types/bookAssessmentDateType.js +0 -2
- package/dist/types/careerType.d.ts +0 -2
- package/dist/types/careerType.js +0 -2
- package/dist/types/categoriesType.d.ts +0 -3
- package/dist/types/categoriesType.js +0 -2
- package/dist/types/certificatesHistoryType.js +0 -2
- package/dist/types/certificatesManagementType.js +0 -2
- package/dist/types/classRoomType.d.ts +0 -3
- package/dist/types/classRoomType.js +0 -2
- package/dist/types/cloudStorageType.d.ts +0 -3
- package/dist/types/cloudStorageType.js +0 -2
- package/dist/types/coinPurchaseOfferType.d.ts +0 -3
- package/dist/types/coinPurchaseOfferType.js +0 -2
- package/dist/types/commonType.d.ts +0 -9
- package/dist/types/commonType.js +0 -2
- package/dist/types/contactFeedBackType.d.ts +0 -3
- package/dist/types/contactFeedBackType.js +0 -2
- package/dist/types/courseHasVisitorsType.d.ts +0 -2
- package/dist/types/courseHasVisitorsType.js +0 -2
- package/dist/types/courseType.d.ts +0 -2
- package/dist/types/courseType.js +0 -2
- package/dist/types/dailyBookType.d.ts +0 -2
- package/dist/types/dailyBookType.js +0 -2
- package/dist/types/dashboardManagementType.d.ts +0 -2
- package/dist/types/dashboardManagementType.js +0 -2
- package/dist/types/driverType.d.ts +0 -6
- package/dist/types/driverType.js +0 -2
- package/dist/types/entityGroupType.d.ts +0 -3
- package/dist/types/entityGroupType.js +0 -2
- package/dist/types/eventType.d.ts +0 -2
- package/dist/types/eventType.js +0 -2
- package/dist/types/examGroupType.d.ts +0 -6
- package/dist/types/examGroupType.js +0 -2
- package/dist/types/examHasAnswerSheetType.d.ts +0 -2
- package/dist/types/examHasAnswerSheetType.js +0 -2
- package/dist/types/examType.d.ts +0 -6
- package/dist/types/examType.js +0 -2
- package/dist/types/facilityType.d.ts +0 -3
- package/dist/types/facilityType.js +0 -2
- package/dist/types/featureActionType.d.ts +0 -3
- package/dist/types/featureActionType.js +0 -2
- package/dist/types/feeHistoryDetailsType.d.ts +0 -6
- package/dist/types/feeHistoryDetailsType.js +0 -2
- package/dist/types/feeHistoryType.d.ts +0 -18
- package/dist/types/feeHistoryType.js +0 -2
- package/dist/types/feeReminderSettingType.d.ts +0 -3
- package/dist/types/feeReminderSettingType.js +0 -2
- package/dist/types/feeReminderType.d.ts +0 -3
- package/dist/types/feeReminderType.js +0 -2
- package/dist/types/feeReminderTypeType.d.ts +0 -2
- package/dist/types/feeReminderTypeType.js +0 -2
- package/dist/types/feeTypeHasTermsType.d.ts +0 -3
- package/dist/types/feeTypeHasTermsType.js +0 -2
- package/dist/types/feeTypeType.d.ts +0 -3
- package/dist/types/feeTypeType.js +0 -2
- package/dist/types/feedBackType.d.ts +0 -2
- package/dist/types/feedBackType.js +0 -2
- package/dist/types/feesCollectionType.d.ts +0 -3
- package/dist/types/feesCollectionType.js +0 -2
- package/dist/types/fileStorageType.d.ts +0 -3
- package/dist/types/fileStorageType.js +0 -2
- package/dist/types/floormanagementType.d.ts +0 -3
- package/dist/types/floormanagementType.js +0 -2
- package/dist/types/generateIdCardType.d.ts +0 -2
- package/dist/types/generateIdCardType.js +0 -2
- package/dist/types/greetingsType.d.ts +0 -6
- package/dist/types/greetingsType.js +0 -2
- package/dist/types/holidayType.d.ts +0 -2
- package/dist/types/holidayType.js +0 -3
- package/dist/types/homeWorkType.d.ts +0 -3
- package/dist/types/homeWorkType.js +0 -2
- package/dist/types/informationSupportType.d.ts +0 -2
- package/dist/types/informationSupportType.js +0 -2
- package/dist/types/inquiryType.d.ts +0 -2
- package/dist/types/inquiryType.js +0 -2
- package/dist/types/instituteEntityType.d.ts +0 -6
- package/dist/types/instituteEntityType.js +0 -2
- package/dist/types/instituteEntityTypeType.d.ts +0 -3
- package/dist/types/instituteEntityTypeType.js +0 -2
- package/dist/types/instituteSubscriptionPlanType.d.ts +0 -3
- package/dist/types/instituteSubscriptionPlanType.js +0 -2
- package/dist/types/instituteType.d.ts +0 -3
- package/dist/types/instituteType.js +0 -2
- package/dist/types/inventoryHistoryType.d.ts +0 -3
- package/dist/types/inventoryHistoryType.js +0 -2
- package/dist/types/inventoryType.d.ts +0 -3
- package/dist/types/inventoryType.js +0 -2
- package/dist/types/jobApply.js +0 -2
- package/dist/types/lectureHistoryType.d.ts +0 -6
- package/dist/types/lectureHistoryType.js +0 -2
- package/dist/types/lectureType.d.ts +0 -6
- package/dist/types/lectureType.js +0 -2
- package/dist/types/masterLeaveType.d.ts +0 -3
- package/dist/types/masterLeaveType.js +0 -2
- package/dist/types/moduleFeatureType.d.ts +0 -3
- package/dist/types/moduleFeatureType.js +0 -2
- package/dist/types/moduleType.d.ts +0 -3
- package/dist/types/moduleType.js +0 -2
- package/dist/types/offerType.d.ts +0 -3
- package/dist/types/offerType.js +0 -2
- package/dist/types/paymentTermsType.d.ts +0 -3
- package/dist/types/paymentTermsType.js +0 -3
- package/dist/types/pdcChequeType.d.ts +0 -6
- package/dist/types/pdcChequeType.js +0 -2
- package/dist/types/pdcHistoryType.d.ts +0 -2
- package/dist/types/pdcHistoryType.js +0 -2
- package/dist/types/photosGalleryType.d.ts +0 -2
- package/dist/types/photosGalleryType.js +0 -2
- package/dist/types/plannerType.d.ts +0 -7
- package/dist/types/plannerType.js +0 -2
- package/dist/types/productType.d.ts +0 -3
- package/dist/types/productType.js +0 -2
- package/dist/types/projectAssessmentOptionType.d.ts +0 -7
- package/dist/types/projectAssessmentOptionType.js +0 -2
- package/dist/types/roleType.d.ts +0 -11
- package/dist/types/roleType.js +0 -2
- package/dist/types/rulesRegulationType.d.ts +0 -3
- package/dist/types/rulesRegulationType.js +0 -2
- package/dist/types/schoolFeeCollectionType.d.ts +0 -3
- package/dist/types/schoolFeeCollectionType.js +0 -2
- package/dist/types/schoolFeeType.d.ts +0 -3
- package/dist/types/schoolFeeType.js +0 -2
- package/dist/types/schoolOfferType.d.ts +0 -3
- package/dist/types/schoolOfferType.js +0 -2
- package/dist/types/sendNotificationType.d.ts +0 -3
- package/dist/types/sendNotificationType.js +0 -2
- package/dist/types/slotType.d.ts +0 -2
- package/dist/types/slotType.js +0 -2
- package/dist/types/subCategoryType.d.ts +0 -3
- package/dist/types/subCategoryType.js +0 -2
- package/dist/types/subjectHasFeeType.d.ts +0 -3
- package/dist/types/subjectHasFeeType.js +0 -2
- package/dist/types/subjectHasPayFeeHistoryType.d.ts +0 -3
- package/dist/types/subjectHasPayFeeHistoryType.js +0 -2
- package/dist/types/subjectIndexType.d.ts +0 -7
- package/dist/types/subjectIndexType.js +0 -2
- package/dist/types/subscriptionPlanType.d.ts +0 -2
- package/dist/types/subscriptionPlanType.js +0 -2
- package/dist/types/syllabusType.d.ts +0 -7
- package/dist/types/syllabusType.js +0 -2
- package/dist/types/taskManagementType.d.ts +0 -2
- package/dist/types/taskManagementType.js +0 -2
- package/dist/types/testimonialType.d.ts +0 -13
- package/dist/types/testimonialType.js +0 -2
- package/dist/types/toDoType.d.ts +0 -6
- package/dist/types/toDoType.js +0 -2
- package/dist/types/tripType.d.ts +0 -2
- package/dist/types/tripType.js +0 -2
- package/dist/types/typeManagementType.d.ts +0 -3
- package/dist/types/typeManagementType.js +0 -2
- package/dist/types/uniqueNumberCounterType.d.ts +0 -2
- package/dist/types/uniqueNumberCounterType.js +0 -2
- package/dist/types/userBookAssessmentType.d.ts +0 -7
- package/dist/types/userBookAssessmentType.js +0 -2
- package/dist/types/userDetailsType.d.ts +0 -2
- package/dist/types/userDetailsType.js +0 -2
- package/dist/types/userFeeTypeByAccountType.d.ts +0 -3
- package/dist/types/userFeeTypeByAccountType.js +0 -2
- package/dist/types/userFeeTypeType.d.ts +0 -6
- package/dist/types/userFeeTypeType.js +0 -2
- package/dist/types/userHasAnnouncementType.d.ts +0 -3
- package/dist/types/userHasAnnouncementType.js +0 -2
- package/dist/types/userHasBatchType.d.ts +0 -9
- package/dist/types/userHasBatchType.js +0 -2
- package/dist/types/userHasCourseType.d.ts +0 -3
- package/dist/types/userHasCourseType.js +0 -2
- package/dist/types/userHasDeviceType.d.ts +0 -3
- package/dist/types/userHasDeviceType.js +0 -2
- package/dist/types/userHasFeeTermsType.d.ts +0 -3
- package/dist/types/userHasFeeTermsType.js +0 -2
- package/dist/types/userHasFileType.d.ts +0 -3
- package/dist/types/userHasFileType.js +0 -2
- package/dist/types/userHasHomeWorkType.d.ts +0 -3
- package/dist/types/userHasHomeWorkType.js +0 -2
- package/dist/types/userHasInventoryHistoryType.d.ts +0 -3
- package/dist/types/userHasInventoryHistoryType.js +0 -2
- package/dist/types/userHasInventoryType.d.ts +0 -3
- package/dist/types/userHasInventoryType.js +0 -2
- package/dist/types/userHasLeaveHistoryType.d.ts +0 -3
- package/dist/types/userHasLeaveHistoryType.js +0 -2
- package/dist/types/userHasLeaveType.d.ts +0 -3
- package/dist/types/userHasLeaveType.js +0 -2
- package/dist/types/userHasOffer.d.ts +0 -3
- package/dist/types/userHasOffer.js +0 -2
- package/dist/types/userHasParentType.d.ts +0 -10
- package/dist/types/userHasParentType.js +0 -2
- package/dist/types/userHasRoleType.d.ts +0 -3
- package/dist/types/userHasRoleType.js +0 -2
- package/dist/types/userHasRollNumberType.d.ts +0 -3
- package/dist/types/userHasRollNumberType.js +0 -2
- package/dist/types/userHasStorageType.d.ts +0 -3
- package/dist/types/userHasStorageType.js +0 -2
- package/dist/types/userHasSubjectFeeType.d.ts +0 -3
- package/dist/types/userHasSubjectFeeType.js +0 -2
- package/dist/types/userInstituteMetaType.d.ts +0 -2
- package/dist/types/userInstituteMetaType.js +0 -2
- package/dist/types/userLeaveRequestType.d.ts +0 -3
- package/dist/types/userLeaveRequestType.js +0 -2
- package/dist/types/userMetaType.d.ts +0 -13
- package/dist/types/userMetaType.js +0 -2
- package/dist/types/userPayoutDetailsType.d.ts +0 -3
- package/dist/types/userPayoutDetailsType.js +0 -2
- package/dist/types/userPayoutHistoryType.d.ts +0 -3
- package/dist/types/userPayoutHistoryType.js +0 -2
- package/dist/types/userPayoutType.d.ts +0 -7
- package/dist/types/userPayoutType.js +0 -2
- package/dist/types/userProjectAssessmentOptionType.d.ts +0 -7
- package/dist/types/userProjectAssessmentOptionType.js +0 -2
- package/dist/types/userRequiredStepsType.d.ts +0 -3
- package/dist/types/userRequiredStepsType.js +0 -2
- package/dist/types/userSchoolMetaType.d.ts +0 -3
- package/dist/types/userSchoolMetaType.js +0 -2
- package/dist/types/userType.d.ts +0 -12
- package/dist/types/userType.js +0 -2
- package/dist/types/vehicleType.d.ts +0 -3
- package/dist/types/vehicleType.js +0 -2
- package/dist/types/vendorType.d.ts +0 -3
- package/dist/types/vendorType.js +0 -2
- package/dist/types/videoAnalystType.d.ts +0 -2
- package/dist/types/videoAnalystType.js +0 -2
- package/dist/types/walletHistoryType.d.ts +0 -3
- package/dist/types/walletHistoryType.js +0 -2
- package/dist/types/walletTransactionType.d.ts +0 -3
- package/dist/types/walletTransactionType.js +0 -2
- package/dist/types/walletType.d.ts +0 -3
- package/dist/types/walletType.js +0 -2
- package/dist/types/workingDayType.d.ts +0 -3
- package/dist/types/workingDayType.js +0 -2
- package/dist/types/workingShiftType.d.ts +0 -3
- package/dist/types/workingShiftType.js +0 -2
- /package/dist/{index.d.ts → index.ts} +0 -0
- /package/dist/interfaces/{areaInterface.d.ts → areaInterface.ts} +0 -0
- /package/dist/interfaces/{contactFeedBackInterface.d.ts → contactFeedBackInterface.ts} +0 -0
- /package/dist/interfaces/{countryInterface.d.ts → countryInterface.ts} +0 -0
- /package/dist/types/{certificatesHistoryType.d.ts → certificatesHistoryType.ts} +0 -0
- /package/dist/types/{certificatesManagementType.d.ts → certificatesManagementType.ts} +0 -0
- /package/dist/types/{jobApply.d.ts → jobApply.ts} +0 -0
|
@@ -0,0 +1,617 @@
|
|
|
1
|
+
import { CallbackError, Schema, model } from "mongoose";
|
|
2
|
+
import {
|
|
3
|
+
IBuildingInformation,
|
|
4
|
+
ICoInfrastructureSchema,
|
|
5
|
+
ICorrespondentInformation,
|
|
6
|
+
IHscSscSchema,
|
|
7
|
+
ISchoolInformation,
|
|
8
|
+
ITrustiesInformation,
|
|
9
|
+
ITrustInformation,
|
|
10
|
+
IUserSchoolMetaModelAttributes,
|
|
11
|
+
} from "../../interfaces/userSchoolMetaInterface";
|
|
12
|
+
import {
|
|
13
|
+
BOOLEAN_STATUS,
|
|
14
|
+
DESIGNATION_OF_PERSON,
|
|
15
|
+
PROPERTY_STATUS,
|
|
16
|
+
TRUST_REGISTERED_UNDER,
|
|
17
|
+
TRUST_TYPE,
|
|
18
|
+
} from "../../constants/app";
|
|
19
|
+
import { INSTITUTE_ERROR_MESSAGES } from "../../constants/errorMessages";
|
|
20
|
+
import { HTTP_STATUS_CODE } from "../../constants/httpStatusCode";
|
|
21
|
+
import CountryModel from "../psql/countryModel";
|
|
22
|
+
import CityModel from "../psql/cityModel";
|
|
23
|
+
import StateModel from "../psql/stateModel";
|
|
24
|
+
import InstituteModel from "../psql/instituteModel";
|
|
25
|
+
|
|
26
|
+
const hscSscSchema: Schema<IHscSscSchema> = new Schema<IHscSscSchema>(
|
|
27
|
+
{
|
|
28
|
+
centerCode: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: false,
|
|
31
|
+
},
|
|
32
|
+
centerName: {
|
|
33
|
+
type: String,
|
|
34
|
+
required: false,
|
|
35
|
+
},
|
|
36
|
+
zoneCode: {
|
|
37
|
+
type: String,
|
|
38
|
+
required: false,
|
|
39
|
+
},
|
|
40
|
+
zoneName: {
|
|
41
|
+
type: String,
|
|
42
|
+
required: false,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{ _id: false }
|
|
46
|
+
);
|
|
47
|
+
const coInfrastructureSchema: Schema<ICoInfrastructureSchema> =
|
|
48
|
+
new Schema<ICoInfrastructureSchema>(
|
|
49
|
+
{
|
|
50
|
+
// id: {
|
|
51
|
+
// type: String,
|
|
52
|
+
// required: true,
|
|
53
|
+
// },
|
|
54
|
+
hostel: {
|
|
55
|
+
type: String,
|
|
56
|
+
enum: Object.values(BOOLEAN_STATUS),
|
|
57
|
+
required: false,
|
|
58
|
+
},
|
|
59
|
+
canteen: {
|
|
60
|
+
type: String,
|
|
61
|
+
enum: Object.values(BOOLEAN_STATUS),
|
|
62
|
+
required: false,
|
|
63
|
+
},
|
|
64
|
+
transport: {
|
|
65
|
+
type: String,
|
|
66
|
+
enum: Object.values(BOOLEAN_STATUS),
|
|
67
|
+
required: false,
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
{ _id: false }
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
const schoolInformationSchema: Schema<ISchoolInformation> =
|
|
74
|
+
new Schema<ISchoolInformation>(
|
|
75
|
+
{
|
|
76
|
+
description: {
|
|
77
|
+
type: String,
|
|
78
|
+
required: false,
|
|
79
|
+
},
|
|
80
|
+
landline: {
|
|
81
|
+
type: String,
|
|
82
|
+
required: false,
|
|
83
|
+
},
|
|
84
|
+
mobile: [{ type: String, required: false }],
|
|
85
|
+
country: {
|
|
86
|
+
type: Number,
|
|
87
|
+
required: false,
|
|
88
|
+
},
|
|
89
|
+
fax: {
|
|
90
|
+
type: String,
|
|
91
|
+
required: false,
|
|
92
|
+
},
|
|
93
|
+
svsName: {
|
|
94
|
+
type: String,
|
|
95
|
+
// enum: Object.values(SVA_NAME),
|
|
96
|
+
required: false,
|
|
97
|
+
},
|
|
98
|
+
qdcName: {
|
|
99
|
+
type: String,
|
|
100
|
+
// enum: Object.values(QDC_NAME),
|
|
101
|
+
required: false,
|
|
102
|
+
},
|
|
103
|
+
schoolStartYear: {
|
|
104
|
+
type: Date,
|
|
105
|
+
required: false,
|
|
106
|
+
},
|
|
107
|
+
schoolRegistrationDate: {
|
|
108
|
+
type: Date,
|
|
109
|
+
required: false,
|
|
110
|
+
},
|
|
111
|
+
schoolRegistrationNumber: {
|
|
112
|
+
type: String,
|
|
113
|
+
required: false,
|
|
114
|
+
},
|
|
115
|
+
semiCode: {
|
|
116
|
+
type: String,
|
|
117
|
+
required: false,
|
|
118
|
+
},
|
|
119
|
+
udiseCode: {
|
|
120
|
+
type: String,
|
|
121
|
+
required: false,
|
|
122
|
+
},
|
|
123
|
+
brochure: {
|
|
124
|
+
type: String,
|
|
125
|
+
required: false,
|
|
126
|
+
},
|
|
127
|
+
certificate: {
|
|
128
|
+
type: String,
|
|
129
|
+
required: false,
|
|
130
|
+
},
|
|
131
|
+
sscIndexNo: {
|
|
132
|
+
type: String,
|
|
133
|
+
required: false,
|
|
134
|
+
},
|
|
135
|
+
hscIndexNo: {
|
|
136
|
+
type: String,
|
|
137
|
+
required: false,
|
|
138
|
+
},
|
|
139
|
+
sscData: {
|
|
140
|
+
type: hscSscSchema,
|
|
141
|
+
required: false,
|
|
142
|
+
default: null,
|
|
143
|
+
},
|
|
144
|
+
hscData: {
|
|
145
|
+
type: hscSscSchema,
|
|
146
|
+
required: false,
|
|
147
|
+
default: null,
|
|
148
|
+
},
|
|
149
|
+
location: {
|
|
150
|
+
type: String,
|
|
151
|
+
required: false,
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
{ _id: false }
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
const trustInformationSchema: Schema<ITrustInformation> =
|
|
158
|
+
new Schema<ITrustInformation>(
|
|
159
|
+
{
|
|
160
|
+
// id: {
|
|
161
|
+
// type: String,
|
|
162
|
+
// required: true,
|
|
163
|
+
// },
|
|
164
|
+
registrationDate: {
|
|
165
|
+
type: Date,
|
|
166
|
+
required: false,
|
|
167
|
+
},
|
|
168
|
+
trustType: {
|
|
169
|
+
type: String,
|
|
170
|
+
enum: Object.values(TRUST_TYPE),
|
|
171
|
+
required: false,
|
|
172
|
+
},
|
|
173
|
+
trustRegisteredUnder: {
|
|
174
|
+
type: String,
|
|
175
|
+
enum: Object.values(TRUST_REGISTERED_UNDER),
|
|
176
|
+
required: false,
|
|
177
|
+
},
|
|
178
|
+
trustName: {
|
|
179
|
+
type: String,
|
|
180
|
+
required: false,
|
|
181
|
+
},
|
|
182
|
+
address1: {
|
|
183
|
+
type: String,
|
|
184
|
+
required: false,
|
|
185
|
+
},
|
|
186
|
+
area: {
|
|
187
|
+
type: String,
|
|
188
|
+
required: false,
|
|
189
|
+
},
|
|
190
|
+
address2: {
|
|
191
|
+
type: String,
|
|
192
|
+
required: false,
|
|
193
|
+
},
|
|
194
|
+
pinCode: {
|
|
195
|
+
type: String,
|
|
196
|
+
required: false,
|
|
197
|
+
},
|
|
198
|
+
country: {
|
|
199
|
+
type: Number,
|
|
200
|
+
required: false,
|
|
201
|
+
},
|
|
202
|
+
trustRegistrationNo: {
|
|
203
|
+
type: String,
|
|
204
|
+
required: false,
|
|
205
|
+
},
|
|
206
|
+
state: {
|
|
207
|
+
type: Number,
|
|
208
|
+
required: false,
|
|
209
|
+
},
|
|
210
|
+
city: {
|
|
211
|
+
type: Number,
|
|
212
|
+
required: false,
|
|
213
|
+
},
|
|
214
|
+
landline: {
|
|
215
|
+
type: String,
|
|
216
|
+
required: false,
|
|
217
|
+
},
|
|
218
|
+
mobile: [
|
|
219
|
+
{
|
|
220
|
+
type: String,
|
|
221
|
+
required: false,
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
email: {
|
|
225
|
+
type: String,
|
|
226
|
+
required: false,
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
{ _id: false }
|
|
230
|
+
);
|
|
231
|
+
const correspondentInformationSchema: Schema<ICorrespondentInformation> =
|
|
232
|
+
new Schema<ICorrespondentInformation>(
|
|
233
|
+
{
|
|
234
|
+
// correspondentId: {
|
|
235
|
+
// type: String,
|
|
236
|
+
// required: false,
|
|
237
|
+
// },
|
|
238
|
+
authorizedPerson: {
|
|
239
|
+
type: String,
|
|
240
|
+
required: false,
|
|
241
|
+
},
|
|
242
|
+
designationOfPerson: {
|
|
243
|
+
type: String,
|
|
244
|
+
// enum: Object.values(DESIGNATION_OF_PERSON),
|
|
245
|
+
required: false,
|
|
246
|
+
},
|
|
247
|
+
trustType: {
|
|
248
|
+
type: String,
|
|
249
|
+
enum: Object.values(TRUST_TYPE),
|
|
250
|
+
required: false,
|
|
251
|
+
},
|
|
252
|
+
address1: {
|
|
253
|
+
type: String,
|
|
254
|
+
required: false,
|
|
255
|
+
},
|
|
256
|
+
area: {
|
|
257
|
+
type: String,
|
|
258
|
+
required: false,
|
|
259
|
+
},
|
|
260
|
+
address2: {
|
|
261
|
+
type: String,
|
|
262
|
+
required: false,
|
|
263
|
+
},
|
|
264
|
+
pinCode: {
|
|
265
|
+
type: String,
|
|
266
|
+
required: false,
|
|
267
|
+
},
|
|
268
|
+
country: {
|
|
269
|
+
type: Number,
|
|
270
|
+
required: false,
|
|
271
|
+
},
|
|
272
|
+
state: {
|
|
273
|
+
type: Number,
|
|
274
|
+
required: false,
|
|
275
|
+
},
|
|
276
|
+
city: {
|
|
277
|
+
type: Number,
|
|
278
|
+
required: false,
|
|
279
|
+
},
|
|
280
|
+
landline: {
|
|
281
|
+
type: String,
|
|
282
|
+
required: false,
|
|
283
|
+
},
|
|
284
|
+
mobile: [
|
|
285
|
+
{
|
|
286
|
+
type: String,
|
|
287
|
+
required: false,
|
|
288
|
+
},
|
|
289
|
+
],
|
|
290
|
+
email: {
|
|
291
|
+
type: String,
|
|
292
|
+
required: false,
|
|
293
|
+
},
|
|
294
|
+
aadharCardNumber: {
|
|
295
|
+
type: String,
|
|
296
|
+
required: false,
|
|
297
|
+
},
|
|
298
|
+
panCardNumber: {
|
|
299
|
+
type: String,
|
|
300
|
+
required: false,
|
|
301
|
+
},
|
|
302
|
+
profileImage: {
|
|
303
|
+
type: String,
|
|
304
|
+
required: false,
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
{ _id: false }
|
|
308
|
+
);
|
|
309
|
+
const trustiesInformationSchema: Schema<ITrustiesInformation> =
|
|
310
|
+
new Schema<ITrustiesInformation>(
|
|
311
|
+
{
|
|
312
|
+
// correspondentId: {
|
|
313
|
+
// type: String,
|
|
314
|
+
// required: false,
|
|
315
|
+
// },
|
|
316
|
+
isCorrespondent: {
|
|
317
|
+
type: String,
|
|
318
|
+
enum: Object.values(BOOLEAN_STATUS),
|
|
319
|
+
default: BOOLEAN_STATUS.NO,
|
|
320
|
+
required: false,
|
|
321
|
+
},
|
|
322
|
+
authorizedPerson: {
|
|
323
|
+
type: String,
|
|
324
|
+
required: false,
|
|
325
|
+
},
|
|
326
|
+
designationOfPerson: {
|
|
327
|
+
type: String,
|
|
328
|
+
enum: Object.values(DESIGNATION_OF_PERSON),
|
|
329
|
+
required: false,
|
|
330
|
+
},
|
|
331
|
+
address1: {
|
|
332
|
+
type: String,
|
|
333
|
+
required: false,
|
|
334
|
+
},
|
|
335
|
+
address2: {
|
|
336
|
+
type: String,
|
|
337
|
+
required: false,
|
|
338
|
+
},
|
|
339
|
+
area: {
|
|
340
|
+
type: String,
|
|
341
|
+
required: false,
|
|
342
|
+
},
|
|
343
|
+
pinCode: {
|
|
344
|
+
type: String,
|
|
345
|
+
required: false,
|
|
346
|
+
},
|
|
347
|
+
country: {
|
|
348
|
+
type: Number,
|
|
349
|
+
required: false,
|
|
350
|
+
},
|
|
351
|
+
state: {
|
|
352
|
+
type: Number,
|
|
353
|
+
required: false,
|
|
354
|
+
},
|
|
355
|
+
city: {
|
|
356
|
+
type: Number,
|
|
357
|
+
required: false,
|
|
358
|
+
},
|
|
359
|
+
landline: {
|
|
360
|
+
type: String,
|
|
361
|
+
required: false,
|
|
362
|
+
},
|
|
363
|
+
mobile: [
|
|
364
|
+
{
|
|
365
|
+
type: String,
|
|
366
|
+
required: false,
|
|
367
|
+
},
|
|
368
|
+
],
|
|
369
|
+
email: {
|
|
370
|
+
type: String,
|
|
371
|
+
required: false,
|
|
372
|
+
},
|
|
373
|
+
aadharCardNumber: {
|
|
374
|
+
type: String,
|
|
375
|
+
required: false,
|
|
376
|
+
},
|
|
377
|
+
panCardNumber: {
|
|
378
|
+
type: String,
|
|
379
|
+
required: false,
|
|
380
|
+
},
|
|
381
|
+
profileImage: {
|
|
382
|
+
type: String,
|
|
383
|
+
required: false,
|
|
384
|
+
},
|
|
385
|
+
},
|
|
386
|
+
{ _id: false }
|
|
387
|
+
);
|
|
388
|
+
const buildingInformationSchema: Schema<IBuildingInformation> =
|
|
389
|
+
new Schema<IBuildingInformation>(
|
|
390
|
+
{
|
|
391
|
+
// id: {
|
|
392
|
+
// type: String,
|
|
393
|
+
// required: true,
|
|
394
|
+
// },
|
|
395
|
+
buildingStatus: {
|
|
396
|
+
type: String,
|
|
397
|
+
enum: Object.values(PROPERTY_STATUS),
|
|
398
|
+
required: false,
|
|
399
|
+
},
|
|
400
|
+
buildingOwnerName: {
|
|
401
|
+
type: String,
|
|
402
|
+
required: false,
|
|
403
|
+
},
|
|
404
|
+
compoundedWall: {
|
|
405
|
+
type: String,
|
|
406
|
+
enum: Object.values(BOOLEAN_STATUS),
|
|
407
|
+
required: false,
|
|
408
|
+
},
|
|
409
|
+
playGroundStatus: {
|
|
410
|
+
type: String,
|
|
411
|
+
enum: Object.values(PROPERTY_STATUS),
|
|
412
|
+
required: false,
|
|
413
|
+
},
|
|
414
|
+
playGroundOwnerName: {
|
|
415
|
+
type: String,
|
|
416
|
+
required: false,
|
|
417
|
+
},
|
|
418
|
+
playGroundArea: {
|
|
419
|
+
type: String,
|
|
420
|
+
required: false,
|
|
421
|
+
},
|
|
422
|
+
buildingPlanOfSchoolSanctioned: {
|
|
423
|
+
type: String,
|
|
424
|
+
enum: Object.values(BOOLEAN_STATUS),
|
|
425
|
+
required: false,
|
|
426
|
+
},
|
|
427
|
+
permissionTaken: {
|
|
428
|
+
type: String,
|
|
429
|
+
enum: Object.values(BOOLEAN_STATUS),
|
|
430
|
+
required: false,
|
|
431
|
+
},
|
|
432
|
+
tpNumber: {
|
|
433
|
+
type: String,
|
|
434
|
+
required: false,
|
|
435
|
+
},
|
|
436
|
+
finalPlotNumber: {
|
|
437
|
+
type: String,
|
|
438
|
+
required: false,
|
|
439
|
+
},
|
|
440
|
+
surveyNumber: {
|
|
441
|
+
type: String,
|
|
442
|
+
required: false,
|
|
443
|
+
},
|
|
444
|
+
finalPlotSize: {
|
|
445
|
+
type: String,
|
|
446
|
+
required: false,
|
|
447
|
+
},
|
|
448
|
+
},
|
|
449
|
+
{ _id: false }
|
|
450
|
+
);
|
|
451
|
+
const userSchoolMetaModelSchema = new Schema<IUserSchoolMetaModelAttributes>(
|
|
452
|
+
{
|
|
453
|
+
instituteId: {
|
|
454
|
+
type: String,
|
|
455
|
+
required: true,
|
|
456
|
+
},
|
|
457
|
+
completedPercentage: {
|
|
458
|
+
type: Number,
|
|
459
|
+
default: 0,
|
|
460
|
+
required: false,
|
|
461
|
+
},
|
|
462
|
+
isSubmitted: {
|
|
463
|
+
type: String,
|
|
464
|
+
enum: Object.values(BOOLEAN_STATUS),
|
|
465
|
+
default: BOOLEAN_STATUS.NO,
|
|
466
|
+
required: false,
|
|
467
|
+
},
|
|
468
|
+
schoolInformation: {
|
|
469
|
+
type: [schoolInformationSchema],
|
|
470
|
+
required: false,
|
|
471
|
+
default: [],
|
|
472
|
+
},
|
|
473
|
+
trustInformation: {
|
|
474
|
+
type: [trustInformationSchema],
|
|
475
|
+
required: false,
|
|
476
|
+
default: [],
|
|
477
|
+
},
|
|
478
|
+
correspondentInformation: {
|
|
479
|
+
type: [correspondentInformationSchema],
|
|
480
|
+
required: false,
|
|
481
|
+
default: [],
|
|
482
|
+
},
|
|
483
|
+
trustiesInformationSchema: {
|
|
484
|
+
type: [trustiesInformationSchema],
|
|
485
|
+
required: false,
|
|
486
|
+
default: [],
|
|
487
|
+
},
|
|
488
|
+
buildingInformation: {
|
|
489
|
+
type: [buildingInformationSchema],
|
|
490
|
+
required: false,
|
|
491
|
+
default: [],
|
|
492
|
+
},
|
|
493
|
+
coInfrastructure: {
|
|
494
|
+
type: coInfrastructureSchema,
|
|
495
|
+
required: false,
|
|
496
|
+
default: null,
|
|
497
|
+
},
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
timestamps: true,
|
|
501
|
+
versionKey: false,
|
|
502
|
+
}
|
|
503
|
+
);
|
|
504
|
+
userSchoolMetaModelSchema.pre("save", async function (next) {
|
|
505
|
+
const userSchoolMeta = this as IUserSchoolMetaModelAttributes;
|
|
506
|
+
|
|
507
|
+
try {
|
|
508
|
+
await Promise.all([
|
|
509
|
+
(async () => {
|
|
510
|
+
if (userSchoolMeta.instituteId) {
|
|
511
|
+
const institute = await InstituteModel.findByPk(
|
|
512
|
+
userSchoolMeta.instituteId
|
|
513
|
+
);
|
|
514
|
+
if (!institute) {
|
|
515
|
+
throw new Error(INSTITUTE_ERROR_MESSAGES.NOT_FOUND);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
})(),
|
|
519
|
+
|
|
520
|
+
// (async () => {
|
|
521
|
+
// const array = [userSchoolMeta.coInfrastructure];
|
|
522
|
+
// validateCorrespondentInformation(
|
|
523
|
+
// userSchoolMeta.correspondentInformation,
|
|
524
|
+
// userSchoolMeta.trustInformation,
|
|
525
|
+
// userSchoolMeta.buildingInformation,
|
|
526
|
+
// array,
|
|
527
|
+
// USER_SCHOOL_METADATA_ERROR_MESSAGES.INVALID_DATA,
|
|
528
|
+
// );
|
|
529
|
+
// })(),
|
|
530
|
+
(async () => {
|
|
531
|
+
if (userSchoolMeta.correspondentInformation?.length) {
|
|
532
|
+
await Promise.all(
|
|
533
|
+
userSchoolMeta.correspondentInformation.map(
|
|
534
|
+
async (correspondent) => {
|
|
535
|
+
if (correspondent.city) {
|
|
536
|
+
const cityExists = await CityModel.findByPk(
|
|
537
|
+
correspondent.city
|
|
538
|
+
);
|
|
539
|
+
if (!cityExists) throw new Error("City not found");
|
|
540
|
+
}
|
|
541
|
+
if (correspondent.state) {
|
|
542
|
+
const stateExists = await StateModel.findByPk(
|
|
543
|
+
correspondent.state
|
|
544
|
+
);
|
|
545
|
+
if (!stateExists) throw new Error("State not found");
|
|
546
|
+
}
|
|
547
|
+
if (correspondent.country) {
|
|
548
|
+
const countryExists = await CountryModel.findByPk(
|
|
549
|
+
correspondent.country
|
|
550
|
+
);
|
|
551
|
+
if (!countryExists) throw new Error("Country not found");
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
)
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
})(),
|
|
558
|
+
|
|
559
|
+
(async () => {
|
|
560
|
+
if (userSchoolMeta.trustInformation?.length) {
|
|
561
|
+
await Promise.all(
|
|
562
|
+
userSchoolMeta.trustInformation.map(async (trust) => {
|
|
563
|
+
if (trust.city) {
|
|
564
|
+
const cityExists = await CityModel.findByPk(trust.city);
|
|
565
|
+
if (!cityExists) throw new Error("City not found");
|
|
566
|
+
}
|
|
567
|
+
if (trust.state) {
|
|
568
|
+
const stateExists = await StateModel.findByPk(trust.state);
|
|
569
|
+
if (!stateExists) throw new Error("State not found");
|
|
570
|
+
}
|
|
571
|
+
if (trust.country) {
|
|
572
|
+
const countryExists = await CountryModel.findByPk(
|
|
573
|
+
trust.country
|
|
574
|
+
);
|
|
575
|
+
if (!countryExists) throw new Error("Country not found");
|
|
576
|
+
}
|
|
577
|
+
})
|
|
578
|
+
);
|
|
579
|
+
}
|
|
580
|
+
})(),
|
|
581
|
+
]);
|
|
582
|
+
next();
|
|
583
|
+
} catch (error: unknown) {
|
|
584
|
+
return next(error as CallbackError);
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
// function validateCorrespondentInformation(
|
|
588
|
+
// correspondentList: { correspondentId: string }[] | undefined,
|
|
589
|
+
// validIdsList1: { id: string }[] | undefined,
|
|
590
|
+
// validIdsList2: { id: string }[] | undefined,
|
|
591
|
+
// validIdsLits3: { id: string }[] | undefined,
|
|
592
|
+
// errorMessage: string,
|
|
593
|
+
// ) {
|
|
594
|
+
// if (!correspondentList || correspondentList.length === 0) return;
|
|
595
|
+
|
|
596
|
+
// const validIds = new Set([
|
|
597
|
+
// ...(validIdsList1?.map(item => item.id) || []),
|
|
598
|
+
// ...(validIdsList2?.map(item => item.id) || []),
|
|
599
|
+
// ...(validIdsLits3?.map(item => item.id) || []),
|
|
600
|
+
// ]);
|
|
601
|
+
|
|
602
|
+
// const invalidCorrespondents = correspondentList.filter(correspondent => !validIds.has(correspondent.correspondentId));
|
|
603
|
+
|
|
604
|
+
// if (invalidCorrespondents.length > 0) {
|
|
605
|
+
// throw new Error(
|
|
606
|
+
// HTTP_STATUS_CODE.NOTFOUND,
|
|
607
|
+
// `${errorMessage}: Invalid Correspondent IDs - ${invalidCorrespondents.map(c => c.correspondentId).join(', ')}`,
|
|
608
|
+
// );
|
|
609
|
+
// }
|
|
610
|
+
// }
|
|
611
|
+
|
|
612
|
+
const UserSchoolMetaModel = model<IUserSchoolMetaModelAttributes>(
|
|
613
|
+
"UserSchoolMeta",
|
|
614
|
+
userSchoolMetaModelSchema
|
|
615
|
+
);
|
|
616
|
+
|
|
617
|
+
export default UserSchoolMetaModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import mongoose, { Schema, Model } from 'mongoose';
|
|
2
|
+
import { IVideoAnalystModelAttributes } from '../../interfaces/videoAnalystInterface';
|
|
3
|
+
|
|
4
|
+
const GeoLocationSchema = new Schema(
|
|
5
|
+
{
|
|
6
|
+
country: { type: String, required: false },
|
|
7
|
+
region: { type: String, required: false },
|
|
8
|
+
city: { type: String, required: false },
|
|
9
|
+
latitude: { type: Number, required: false },
|
|
10
|
+
longitude: { type: Number, required: false },
|
|
11
|
+
},
|
|
12
|
+
{ _id: false },
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
const VideoAnalystSchema: Schema<IVideoAnalystModelAttributes> = new Schema(
|
|
16
|
+
{
|
|
17
|
+
id: { type: String, required: false },
|
|
18
|
+
appName: { type: String, required: false },
|
|
19
|
+
randomNumber: { type: Number, required: false },
|
|
20
|
+
eventType: { type: String, required: false },
|
|
21
|
+
deviceId: { type: String, required: false },
|
|
22
|
+
platformName: { type: String, required: false },
|
|
23
|
+
deviceType: { type: String, required: false },
|
|
24
|
+
deviceName: { type: String, required: false },
|
|
25
|
+
fileId: { type: String, required: false },
|
|
26
|
+
bundle: { type: String, required: false },
|
|
27
|
+
storeUrl: { type: String, required: false },
|
|
28
|
+
appVersion: { type: String, required: false },
|
|
29
|
+
width: { type: Number, required: false },
|
|
30
|
+
height: { type: Number, required: false },
|
|
31
|
+
deviceMaker: { type: String, required: false },
|
|
32
|
+
deviceConnectionType: { type: String, required: false },
|
|
33
|
+
clintIp: { type: String, required: false },
|
|
34
|
+
userId: { type: String, required: false },
|
|
35
|
+
instituteId: { type: String, required: false },
|
|
36
|
+
geoLocation: { type: GeoLocationSchema, required: false },
|
|
37
|
+
contentDuration: { type: Number, required: false },
|
|
38
|
+
contentViewDuration: { type: Number, required: false },
|
|
39
|
+
language: { type: String, required: false },
|
|
40
|
+
videoTitle: { type: String, required: false },
|
|
41
|
+
subject: { type: String, required: false },
|
|
42
|
+
keywords: { type: [String], default: [] },
|
|
43
|
+
pain: { type: String, required: false },
|
|
44
|
+
createdBy: { type: String },
|
|
45
|
+
updatedBy: { type: String },
|
|
46
|
+
deletedBy: { type: String },
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
timestamps: false,
|
|
50
|
+
versionKey: false,
|
|
51
|
+
},
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
const VideoAnalystModel: Model<IVideoAnalystModelAttributes> = mongoose.model('video_analyst', VideoAnalystSchema);
|
|
55
|
+
|
|
56
|
+
export default VideoAnalystModel;
|