@kipicore/dbcore 1.0.3
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/README.md +1 -0
- package/dist/configs/aws.d.ts +2 -0
- package/dist/configs/aws.js +12 -0
- package/dist/configs/env.d.ts +15 -0
- package/dist/configs/env.js +83 -0
- package/dist/constants/app.d.ts +848 -0
- package/dist/constants/app.js +1073 -0
- package/dist/constants/defaultModelAttributes.d.ts +17 -0
- package/dist/constants/defaultModelAttributes.js +21 -0
- package/dist/constants/errorMessages.d.ts +1055 -0
- package/dist/constants/errorMessages.js +1166 -0
- package/dist/constants/httpStatusCode.d.ts +26 -0
- package/dist/constants/httpStatusCode.js +30 -0
- package/dist/constants/successMessages.d.ts +699 -0
- package/dist/constants/successMessages.js +813 -0
- package/dist/db/mongodb.d.ts +1 -0
- package/dist/db/mongodb.js +24 -0
- package/dist/db/postgres.d.ts +2 -0
- package/dist/db/postgres.js +17 -0
- package/dist/helpers/s3Uploader.d.ts +3 -0
- package/dist/helpers/s3Uploader.js +61 -0
- package/dist/helpers/utils.d.ts +173 -0
- package/dist/helpers/utils.js +682 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +12 -0
- package/dist/interfaces/PaymentProcessorInterface.d.ts +0 -0
- package/dist/interfaces/PaymentProcessorInterface.js +1 -0
- package/dist/interfaces/academicCalendarInterface.d.ts +9 -0
- package/dist/interfaces/academicCalendarInterface.js +2 -0
- package/dist/interfaces/accountHasReceiptDetailsInterface.d.ts +17 -0
- package/dist/interfaces/accountHasReceiptDetailsInterface.js +2 -0
- package/dist/interfaces/announcementInterface.d.ts +19 -0
- package/dist/interfaces/announcementInterface.js +2 -0
- package/dist/interfaces/approvalRequestInterface.d.ts +14 -0
- package/dist/interfaces/approvalRequestInterface.js +2 -0
- package/dist/interfaces/areaInterface.d.ts +5 -0
- package/dist/interfaces/areaInterface.js +2 -0
- package/dist/interfaces/attendanceInterface.d.ts +21 -0
- package/dist/interfaces/attendanceInterface.js +2 -0
- package/dist/interfaces/bankAccountDetailsInterface.d.ts +14 -0
- package/dist/interfaces/bankAccountDetailsInterface.js +2 -0
- package/dist/interfaces/bannerInterface.d.ts +15 -0
- package/dist/interfaces/bannerInterface.js +2 -0
- package/dist/interfaces/batchInterface.d.ts +18 -0
- package/dist/interfaces/batchInterface.js +2 -0
- package/dist/interfaces/batchSubjectBookAssessmentInterface.d.ts +9 -0
- package/dist/interfaces/batchSubjectBookAssessmentInterface.js +2 -0
- package/dist/interfaces/batchSubjectProjectAssessmentInterface.d.ts +12 -0
- package/dist/interfaces/batchSubjectProjectAssessmentInterface.js +2 -0
- package/dist/interfaces/blogInterface.d.ts +46 -0
- package/dist/interfaces/blogInterface.js +2 -0
- package/dist/interfaces/bookAssessmentDateInterface.d.ts +8 -0
- package/dist/interfaces/bookAssessmentDateInterface.js +2 -0
- package/dist/interfaces/careerInterface.d.ts +12 -0
- package/dist/interfaces/careerInterface.js +2 -0
- package/dist/interfaces/categoriesInterface.d.ts +8 -0
- package/dist/interfaces/categoriesInterface.js +2 -0
- package/dist/interfaces/certificatesHistoryInterface.d.ts +9 -0
- package/dist/interfaces/certificatesHistoryInterface.js +2 -0
- package/dist/interfaces/certificatesManagementInterface.d.ts +11 -0
- package/dist/interfaces/certificatesManagementInterface.js +2 -0
- package/dist/interfaces/cityInterface.d.ts +12 -0
- package/dist/interfaces/cityInterface.js +2 -0
- package/dist/interfaces/classRoomInterface.d.ts +13 -0
- package/dist/interfaces/classRoomInterface.js +2 -0
- package/dist/interfaces/cloudStorageInterface.d.ts +15 -0
- package/dist/interfaces/cloudStorageInterface.js +2 -0
- package/dist/interfaces/coinPurchaseOfferInterface.d.ts +16 -0
- package/dist/interfaces/coinPurchaseOfferInterface.js +2 -0
- package/dist/interfaces/columnInterface.d.ts +15 -0
- package/dist/interfaces/columnInterface.js +2 -0
- package/dist/interfaces/commanInterface.d.ts +52 -0
- package/dist/interfaces/commanInterface.js +2 -0
- package/dist/interfaces/contactFeedBackInterface.d.ts +13 -0
- package/dist/interfaces/contactFeedBackInterface.js +2 -0
- package/dist/interfaces/countryInterface.d.ts +11 -0
- package/dist/interfaces/countryInterface.js +2 -0
- package/dist/interfaces/courseHasVisitorsInterface.d.ts +7 -0
- package/dist/interfaces/courseHasVisitorsInterface.js +2 -0
- package/dist/interfaces/courseInterface.d.ts +18 -0
- package/dist/interfaces/courseInterface.js +2 -0
- package/dist/interfaces/dailyBookInterface.d.ts +14 -0
- package/dist/interfaces/dailyBookInterface.js +2 -0
- package/dist/interfaces/dashboardManagementInterface.d.ts +19 -0
- package/dist/interfaces/dashboardManagementInterface.js +2 -0
- package/dist/interfaces/driverInterface.d.ts +21 -0
- package/dist/interfaces/driverInterface.js +2 -0
- package/dist/interfaces/entityGroupInterface.d.ts +12 -0
- package/dist/interfaces/entityGroupInterface.js +2 -0
- package/dist/interfaces/eventInterface.d.ts +21 -0
- package/dist/interfaces/eventInterface.js +2 -0
- package/dist/interfaces/examGroupInterface.d.ts +30 -0
- package/dist/interfaces/examGroupInterface.js +2 -0
- package/dist/interfaces/examHasAnswerSheetInterface.d.ts +23 -0
- package/dist/interfaces/examHasAnswerSheetInterface.js +2 -0
- package/dist/interfaces/examInterface.d.ts +38 -0
- package/dist/interfaces/examInterface.js +2 -0
- package/dist/interfaces/facilityInterface.d.ts +9 -0
- package/dist/interfaces/facilityInterface.js +2 -0
- package/dist/interfaces/featureActionInterface.d.ts +17 -0
- package/dist/interfaces/featureActionInterface.js +2 -0
- package/dist/interfaces/feeHistoryDetailsInterface.d.ts +17 -0
- package/dist/interfaces/feeHistoryDetailsInterface.js +2 -0
- package/dist/interfaces/feeHistoryInterface.d.ts +21 -0
- package/dist/interfaces/feeHistoryInterface.js +2 -0
- package/dist/interfaces/feeReminderInterface.d.ts +13 -0
- package/dist/interfaces/feeReminderInterface.js +2 -0
- package/dist/interfaces/feeReminderSettingInterface.d.ts +10 -0
- package/dist/interfaces/feeReminderSettingInterface.js +2 -0
- package/dist/interfaces/feeReminderTypeInterface.d.ts +10 -0
- package/dist/interfaces/feeReminderTypeInterface.js +2 -0
- package/dist/interfaces/feeTypeHasTermsInterface.d.ts +12 -0
- package/dist/interfaces/feeTypeHasTermsInterface.js +2 -0
- package/dist/interfaces/feeTypeInterface.d.ts +13 -0
- package/dist/interfaces/feeTypeInterface.js +2 -0
- package/dist/interfaces/feedBackInterface.d.ts +19 -0
- package/dist/interfaces/feedBackInterface.js +2 -0
- package/dist/interfaces/feesCollectionInterface.d.ts +19 -0
- package/dist/interfaces/feesCollectionInterface.js +2 -0
- package/dist/interfaces/fileStorageInterface.d.ts +14 -0
- package/dist/interfaces/fileStorageInterface.js +2 -0
- package/dist/interfaces/floorManagementInterface.d.ts +9 -0
- package/dist/interfaces/floorManagementInterface.js +2 -0
- package/dist/interfaces/generateIdCardInterface.d.ts +8 -0
- package/dist/interfaces/generateIdCardInterface.js +2 -0
- package/dist/interfaces/greetingsInterface.d.ts +12 -0
- package/dist/interfaces/greetingsInterface.js +2 -0
- package/dist/interfaces/holidayInterface.d.ts +22 -0
- package/dist/interfaces/holidayInterface.js +2 -0
- package/dist/interfaces/homeworkInterface.d.ts +13 -0
- package/dist/interfaces/homeworkInterface.js +2 -0
- package/dist/interfaces/informationSupportInterface.d.ts +15 -0
- package/dist/interfaces/informationSupportInterface.js +2 -0
- package/dist/interfaces/inquiryInterface.d.ts +54 -0
- package/dist/interfaces/inquiryInterface.js +2 -0
- package/dist/interfaces/instituteEntityInterface.d.ts +16 -0
- package/dist/interfaces/instituteEntityInterface.js +2 -0
- package/dist/interfaces/instituteEntityTypeInterface.d.ts +10 -0
- package/dist/interfaces/instituteEntityTypeInterface.js +2 -0
- package/dist/interfaces/instituteInterface.d.ts +35 -0
- package/dist/interfaces/instituteInterface.js +2 -0
- package/dist/interfaces/instituteSubscriptionPlanInterface.d.ts +21 -0
- package/dist/interfaces/instituteSubscriptionPlanInterface.js +2 -0
- package/dist/interfaces/inventoryHistoryInterface.d.ts +17 -0
- package/dist/interfaces/inventoryHistoryInterface.js +2 -0
- package/dist/interfaces/inventoryInterface.d.ts +15 -0
- package/dist/interfaces/inventoryInterface.js +2 -0
- package/dist/interfaces/invoiceInterface.d.ts +31 -0
- package/dist/interfaces/invoiceInterface.js +2 -0
- package/dist/interfaces/jobApplyInterface.d.ts +35 -0
- package/dist/interfaces/jobApplyInterface.js +2 -0
- package/dist/interfaces/lectureHistoryInterface.d.ts +24 -0
- package/dist/interfaces/lectureHistoryInterface.js +2 -0
- package/dist/interfaces/lectureInterface.d.ts +26 -0
- package/dist/interfaces/lectureInterface.js +2 -0
- package/dist/interfaces/masterLeaveInterface.d.ts +13 -0
- package/dist/interfaces/masterLeaveInterface.js +2 -0
- package/dist/interfaces/moduleFeatureInterface.d.ts +16 -0
- package/dist/interfaces/moduleFeatureInterface.js +2 -0
- package/dist/interfaces/moduleInterface.d.ts +15 -0
- package/dist/interfaces/moduleInterface.js +2 -0
- package/dist/interfaces/offersInterface.d.ts +18 -0
- package/dist/interfaces/offersInterface.js +2 -0
- package/dist/interfaces/paymentTermsInterface.d.ts +15 -0
- package/dist/interfaces/paymentTermsInterface.js +2 -0
- package/dist/interfaces/pdcChequeInterface.d.ts +16 -0
- package/dist/interfaces/pdcChequeInterface.js +2 -0
- package/dist/interfaces/pdcHistoryInterface.d.ts +17 -0
- package/dist/interfaces/pdcHistoryInterface.js +2 -0
- package/dist/interfaces/photosGalleryInterface.d.ts +17 -0
- package/dist/interfaces/photosGalleryInterface.js +2 -0
- package/dist/interfaces/pincodeInterface.d.ts +15 -0
- package/dist/interfaces/pincodeInterface.js +2 -0
- package/dist/interfaces/plannerInterface.d.ts +32 -0
- package/dist/interfaces/plannerInterface.js +2 -0
- package/dist/interfaces/productInterface.d.ts +10 -0
- package/dist/interfaces/productInterface.js +2 -0
- package/dist/interfaces/projectAssessmentOptionInterface.d.ts +8 -0
- package/dist/interfaces/projectAssessmentOptionInterface.js +2 -0
- package/dist/interfaces/replaceTeacherInterface.d.ts +22 -0
- package/dist/interfaces/replaceTeacherInterface.js +2 -0
- package/dist/interfaces/roleInterface.d.ts +26 -0
- package/dist/interfaces/roleInterface.js +2 -0
- package/dist/interfaces/rulesRegulationInterface.d.ts +10 -0
- package/dist/interfaces/rulesRegulationInterface.js +2 -0
- package/dist/interfaces/schoolFeeCollectionInterface.d.ts +13 -0
- package/dist/interfaces/schoolFeeCollectionInterface.js +2 -0
- package/dist/interfaces/schoolFeeInterface.d.ts +21 -0
- package/dist/interfaces/schoolFeeInterface.js +2 -0
- package/dist/interfaces/schoolOfferInterface.d.ts +20 -0
- package/dist/interfaces/schoolOfferInterface.js +2 -0
- package/dist/interfaces/sendNotificationInerface.d.ts +20 -0
- package/dist/interfaces/sendNotificationInerface.js +2 -0
- package/dist/interfaces/slotInterface.d.ts +8 -0
- package/dist/interfaces/slotInterface.js +2 -0
- package/dist/interfaces/stateInterface.d.ts +11 -0
- package/dist/interfaces/stateInterface.js +2 -0
- package/dist/interfaces/subCategoriesInterface.d.ts +9 -0
- package/dist/interfaces/subCategoriesInterface.js +2 -0
- package/dist/interfaces/subjectHasFeeInterface.d.ts +7 -0
- package/dist/interfaces/subjectHasFeeInterface.js +2 -0
- package/dist/interfaces/subjectHasPayFeeHistoryInterface.d.ts +9 -0
- package/dist/interfaces/subjectHasPayFeeHistoryInterface.js +2 -0
- package/dist/interfaces/subjectIndexInterface.d.ts +48 -0
- package/dist/interfaces/subjectIndexInterface.js +2 -0
- package/dist/interfaces/subscriptionPlanInterface.d.ts +29 -0
- package/dist/interfaces/subscriptionPlanInterface.js +2 -0
- package/dist/interfaces/syllabusInterface.d.ts +9 -0
- package/dist/interfaces/syllabusInterface.js +2 -0
- package/dist/interfaces/taskManagementInterface.d.ts +24 -0
- package/dist/interfaces/taskManagementInterface.js +2 -0
- package/dist/interfaces/testimonialInterface.d.ts +12 -0
- package/dist/interfaces/testimonialInterface.js +2 -0
- package/dist/interfaces/toDoInterface.d.ts +11 -0
- package/dist/interfaces/toDoInterface.js +2 -0
- package/dist/interfaces/tokenInterface.d.ts +27 -0
- package/dist/interfaces/tokenInterface.js +2 -0
- package/dist/interfaces/tripInterface.d.ts +13 -0
- package/dist/interfaces/tripInterface.js +2 -0
- package/dist/interfaces/typeManagementInterface.d.ts +11 -0
- package/dist/interfaces/typeManagementInterface.js +2 -0
- package/dist/interfaces/uniqueNumberCounterInterface.d.ts +11 -0
- package/dist/interfaces/uniqueNumberCounterInterface.js +2 -0
- package/dist/interfaces/userBookAssessmentInterface.d.ts +10 -0
- package/dist/interfaces/userBookAssessmentInterface.js +2 -0
- package/dist/interfaces/userDetailsInterface.d.ts +122 -0
- package/dist/interfaces/userDetailsInterface.js +2 -0
- package/dist/interfaces/userFeeTypeByAccountInterface.d.ts +19 -0
- package/dist/interfaces/userFeeTypeByAccountInterface.js +2 -0
- package/dist/interfaces/userFeeTypeInterface.d.ts +16 -0
- package/dist/interfaces/userFeeTypeInterface.js +2 -0
- package/dist/interfaces/userHasAnnouncementInterface.d.ts +9 -0
- package/dist/interfaces/userHasAnnouncementInterface.js +2 -0
- package/dist/interfaces/userHasBatchInterface.d.ts +7 -0
- package/dist/interfaces/userHasBatchInterface.js +2 -0
- package/dist/interfaces/userHasCourseInterface.d.ts +13 -0
- package/dist/interfaces/userHasCourseInterface.js +2 -0
- package/dist/interfaces/userHasDeviceInterface.d.ts +10 -0
- package/dist/interfaces/userHasDeviceInterface.js +2 -0
- package/dist/interfaces/userHasFeeTermsInterface.d.ts +37 -0
- package/dist/interfaces/userHasFeeTermsInterface.js +2 -0
- package/dist/interfaces/userHasFileInterface.d.ts +11 -0
- package/dist/interfaces/userHasFileInterface.js +2 -0
- package/dist/interfaces/userHasHomeWorkInterface.d.ts +11 -0
- package/dist/interfaces/userHasHomeWorkInterface.js +2 -0
- package/dist/interfaces/userHasInventoryHistoryInterface.d.ts +20 -0
- package/dist/interfaces/userHasInventoryHistoryInterface.js +2 -0
- package/dist/interfaces/userHasInventoryInterface.d.ts +21 -0
- package/dist/interfaces/userHasInventoryInterface.js +2 -0
- package/dist/interfaces/userHasLeaveHistoryInterface.d.ts +16 -0
- package/dist/interfaces/userHasLeaveHistoryInterface.js +2 -0
- package/dist/interfaces/userHasLeaveInterface.d.ts +12 -0
- package/dist/interfaces/userHasLeaveInterface.js +2 -0
- package/dist/interfaces/userHasOffer.d.ts +10 -0
- package/dist/interfaces/userHasOffer.js +2 -0
- package/dist/interfaces/userHasParentInterface.d.ts +14 -0
- package/dist/interfaces/userHasParentInterface.js +2 -0
- package/dist/interfaces/userHasRoleInterface.d.ts +13 -0
- package/dist/interfaces/userHasRoleInterface.js +2 -0
- package/dist/interfaces/userHasRollNumberInterface.d.ts +8 -0
- package/dist/interfaces/userHasRollNumberInterface.js +2 -0
- package/dist/interfaces/userHasStorageInterface.d.ts +11 -0
- package/dist/interfaces/userHasStorageInterface.js +2 -0
- package/dist/interfaces/userHasSubjectFeeInterface.d.ts +9 -0
- package/dist/interfaces/userHasSubjectFeeInterface.js +2 -0
- package/dist/interfaces/userInstituteMetaInterface.d.ts +39 -0
- package/dist/interfaces/userInstituteMetaInterface.js +2 -0
- package/dist/interfaces/userInterface.d.ts +44 -0
- package/dist/interfaces/userInterface.js +2 -0
- package/dist/interfaces/userLeaveRequestInterface.d.ts +15 -0
- package/dist/interfaces/userLeaveRequestInterface.js +2 -0
- package/dist/interfaces/userMetaInterface.d.ts +13 -0
- package/dist/interfaces/userMetaInterface.js +2 -0
- package/dist/interfaces/userPayoutDetailsInterface.d.ts +14 -0
- package/dist/interfaces/userPayoutDetailsInterface.js +2 -0
- package/dist/interfaces/userPayoutHistoryInterface.d.ts +18 -0
- package/dist/interfaces/userPayoutHistoryInterface.js +2 -0
- package/dist/interfaces/userPayoutInterface.d.ts +12 -0
- package/dist/interfaces/userPayoutInterface.js +2 -0
- package/dist/interfaces/userProjectAssessmentOptionInterface.d.ts +10 -0
- package/dist/interfaces/userProjectAssessmentOptionInterface.js +2 -0
- package/dist/interfaces/userRequiredStepsInterface.d.ts +9 -0
- package/dist/interfaces/userRequiredStepsInterface.js +2 -0
- package/dist/interfaces/userSchoolMetaInterface.d.ts +115 -0
- package/dist/interfaces/userSchoolMetaInterface.js +2 -0
- package/dist/interfaces/vehicleInterface.d.ts +11 -0
- package/dist/interfaces/vehicleInterface.js +2 -0
- package/dist/interfaces/vendorManagementInterface.d.ts +19 -0
- package/dist/interfaces/vendorManagementInterface.js +2 -0
- package/dist/interfaces/videoAnalystInterface.d.ts +37 -0
- package/dist/interfaces/videoAnalystInterface.js +2 -0
- package/dist/interfaces/walletHistoryInterface.d.ts +15 -0
- package/dist/interfaces/walletHistoryInterface.js +2 -0
- package/dist/interfaces/walletInterface.d.ts +10 -0
- package/dist/interfaces/walletInterface.js +2 -0
- package/dist/interfaces/walletTransactionInterface.d.ts +34 -0
- package/dist/interfaces/walletTransactionInterface.js +2 -0
- package/dist/interfaces/workingDayInterface.d.ts +11 -0
- package/dist/interfaces/workingDayInterface.js +2 -0
- package/dist/interfaces/workingShiftInterface.d.ts +12 -0
- package/dist/interfaces/workingShiftInterface.js +2 -0
- package/dist/models/mongodb/approvalRequestModel.d.ts +4 -0
- package/dist/models/mongodb/approvalRequestModel.js +96 -0
- package/dist/models/mongodb/attendanceModel.d.ts +4 -0
- package/dist/models/mongodb/attendanceModel.js +178 -0
- package/dist/models/mongodb/blogModel.d.ts +4 -0
- package/dist/models/mongodb/blogModel.js +91 -0
- package/dist/models/mongodb/careerModel.d.ts +4 -0
- package/dist/models/mongodb/careerModel.js +83 -0
- package/dist/models/mongodb/certificatesHistoryModel.d.ts +4 -0
- package/dist/models/mongodb/certificatesHistoryModel.js +58 -0
- package/dist/models/mongodb/certificatesManagementModel.d.ts +4 -0
- package/dist/models/mongodb/certificatesManagementModel.js +67 -0
- package/dist/models/mongodb/columnModel.d.ts +4 -0
- package/dist/models/mongodb/columnModel.js +75 -0
- package/dist/models/mongodb/dailyBookModel.d.ts +4 -0
- package/dist/models/mongodb/dailyBookModel.js +88 -0
- package/dist/models/mongodb/dashboardManagementModel.d.ts +4 -0
- package/dist/models/mongodb/dashboardManagementModel.js +111 -0
- package/dist/models/mongodb/eventModel.d.ts +4 -0
- package/dist/models/mongodb/eventModel.js +164 -0
- package/dist/models/mongodb/examGroupModel.d.ts +4 -0
- package/dist/models/mongodb/examGroupModel.js +293 -0
- package/dist/models/mongodb/examHasAnswerSheetModel.d.ts +4 -0
- package/dist/models/mongodb/examHasAnswerSheetModel.js +133 -0
- package/dist/models/mongodb/examModel.d.ts +4 -0
- package/dist/models/mongodb/examModel.js +267 -0
- package/dist/models/mongodb/feeReminderTypeModel.d.ts +4 -0
- package/dist/models/mongodb/feeReminderTypeModel.js +73 -0
- package/dist/models/mongodb/feedBackModel.d.ts +4 -0
- package/dist/models/mongodb/feedBackModel.js +111 -0
- package/dist/models/mongodb/generateIdCardModel.d.ts +4 -0
- package/dist/models/mongodb/generateIdCardModel.js +55 -0
- package/dist/models/mongodb/holidayModel.d.ts +4 -0
- package/dist/models/mongodb/holidayModel.js +172 -0
- package/dist/models/mongodb/index.d.ts +2 -0
- package/dist/models/mongodb/index.js +24 -0
- package/dist/models/mongodb/informationSupportModel.d.ts +4 -0
- package/dist/models/mongodb/informationSupportModel.js +96 -0
- package/dist/models/mongodb/inquiryModel.d.ts +4 -0
- package/dist/models/mongodb/inquiryModel.js +186 -0
- package/dist/models/mongodb/invoiceModel.d.ts +4 -0
- package/dist/models/mongodb/invoiceModel.js +134 -0
- package/dist/models/mongodb/jobApplyModel.d.ts +4 -0
- package/dist/models/mongodb/jobApplyModel.js +151 -0
- package/dist/models/mongodb/photosGalleryModel.d.ts +4 -0
- package/dist/models/mongodb/photosGalleryModel.js +86 -0
- package/dist/models/mongodb/plannerModel.d.ts +4 -0
- package/dist/models/mongodb/plannerModel.js +174 -0
- package/dist/models/mongodb/plugin/addDefaultAttributesPlugin.d.ts +2 -0
- package/dist/models/mongodb/plugin/addDefaultAttributesPlugin.js +63 -0
- package/dist/models/mongodb/plugin/transformIdInQueryPlugin.d.ts +3 -0
- package/dist/models/mongodb/plugin/transformIdInQueryPlugin.js +61 -0
- package/dist/models/mongodb/plugin/transformIdInResponsePlugin.d.ts +3 -0
- package/dist/models/mongodb/plugin/transformIdInResponsePlugin.js +65 -0
- package/dist/models/mongodb/replaceTeacherModel.d.ts +4 -0
- package/dist/models/mongodb/replaceTeacherModel.js +110 -0
- package/dist/models/mongodb/schoolFeeModel.d.ts +4 -0
- package/dist/models/mongodb/schoolFeeModel.js +178 -0
- package/dist/models/mongodb/subjectIndexModel.d.ts +4 -0
- package/dist/models/mongodb/subjectIndexModel.js +667 -0
- package/dist/models/mongodb/subscriptionPlanModel.d.ts +4 -0
- package/dist/models/mongodb/subscriptionPlanModel.js +133 -0
- package/dist/models/mongodb/taskManagementModel.d.ts +4 -0
- package/dist/models/mongodb/taskManagementModel.js +167 -0
- package/dist/models/mongodb/uniqueNumberCounterModel.d.ts +4 -0
- package/dist/models/mongodb/uniqueNumberCounterModel.js +83 -0
- package/dist/models/mongodb/userDetailsModel.d.ts +5 -0
- package/dist/models/mongodb/userDetailsModel.js +509 -0
- package/dist/models/mongodb/userDoc.d.ts +10 -0
- package/dist/models/mongodb/userDoc.js +9 -0
- package/dist/models/mongodb/userInstituteMetaModel.d.ts +4 -0
- package/dist/models/mongodb/userInstituteMetaModel.js +212 -0
- package/dist/models/mongodb/userSchoolMetaModel.d.ts +7 -0
- package/dist/models/mongodb/userSchoolMetaModel.js +552 -0
- package/dist/models/mongodb/videoAnalystModel.d.ts +4 -0
- package/dist/models/mongodb/videoAnalystModel.js +80 -0
- package/dist/models/mongodb/walletTransactionModel.d.ts +4 -0
- package/dist/models/mongodb/walletTransactionModel.js +163 -0
- package/dist/models/psql/SubCategoriesModel.d.ts +17 -0
- package/dist/models/psql/SubCategoriesModel.js +102 -0
- package/dist/models/psql/academicCalendarModel.d.ts +18 -0
- package/dist/models/psql/academicCalendarModel.js +94 -0
- package/dist/models/psql/accountHasReceiptDetailsModel.d.ts +26 -0
- package/dist/models/psql/accountHasReceiptDetailsModel.js +145 -0
- package/dist/models/psql/announcementModel.d.ts +28 -0
- package/dist/models/psql/announcementModel.js +198 -0
- package/dist/models/psql/areaModel.d.ts +9 -0
- package/dist/models/psql/areaModel.js +40 -0
- package/dist/models/psql/bankAccountDetailsModel.d.ts +23 -0
- package/dist/models/psql/bankAccountDetailsModel.js +100 -0
- package/dist/models/psql/bannerModel.d.ts +24 -0
- package/dist/models/psql/bannerModel.js +116 -0
- package/dist/models/psql/batchModel.d.ts +27 -0
- package/dist/models/psql/batchModel.js +222 -0
- package/dist/models/psql/batchSubjectBookAssessmentModel.d.ts +18 -0
- package/dist/models/psql/batchSubjectBookAssessmentModel.js +156 -0
- package/dist/models/psql/batchSubjectProjectAssessmentModel.d.ts +21 -0
- package/dist/models/psql/batchSubjectProjectAssessmentModel.js +154 -0
- package/dist/models/psql/bookAssessmentDateModel.d.ts +17 -0
- package/dist/models/psql/bookAssessmentDateModel.js +87 -0
- package/dist/models/psql/categoriesModel.d.ts +17 -0
- package/dist/models/psql/categoriesModel.js +80 -0
- package/dist/models/psql/cityModel.d.ts +13 -0
- package/dist/models/psql/cityModel.js +72 -0
- package/dist/models/psql/classRoomModel.d.ts +22 -0
- package/dist/models/psql/classRoomModel.js +126 -0
- package/dist/models/psql/cloudStorageModel.d.ts +24 -0
- package/dist/models/psql/cloudStorageModel.js +97 -0
- package/dist/models/psql/coinPurchaseOfferModel.d.ts +25 -0
- package/dist/models/psql/coinPurchaseOfferModel.js +103 -0
- package/dist/models/psql/contactFeedBackModel.d.ts +22 -0
- package/dist/models/psql/contactFeedBackModel.js +120 -0
- package/dist/models/psql/countryModel.d.ts +14 -0
- package/dist/models/psql/countryModel.js +43 -0
- package/dist/models/psql/courseHasVisitorsModel.d.ts +16 -0
- package/dist/models/psql/courseHasVisitorsModel.js +71 -0
- package/dist/models/psql/courseModel.d.ts +27 -0
- package/dist/models/psql/courseModel.js +136 -0
- package/dist/models/psql/driverModel.d.ts +30 -0
- package/dist/models/psql/driverModel.js +163 -0
- package/dist/models/psql/entityGroupModel.d.ts +21 -0
- package/dist/models/psql/entityGroupModel.js +100 -0
- package/dist/models/psql/facilityModel.d.ts +18 -0
- package/dist/models/psql/facilityModel.js +120 -0
- package/dist/models/psql/featureActionModel.d.ts +22 -0
- package/dist/models/psql/featureActionModel.js +95 -0
- package/dist/models/psql/feeHistoryDetailsModel.d.ts +26 -0
- package/dist/models/psql/feeHistoryDetailsModel.js +186 -0
- package/dist/models/psql/feeHistoryModel.d.ts +30 -0
- package/dist/models/psql/feeHistoryModel.js +334 -0
- package/dist/models/psql/feeReminderModel.d.ts +22 -0
- package/dist/models/psql/feeReminderModel.js +239 -0
- package/dist/models/psql/feeReminderSettingModel.d.ts +19 -0
- package/dist/models/psql/feeReminderSettingModel.js +90 -0
- package/dist/models/psql/feeTypeHasTermsModel.d.ts +21 -0
- package/dist/models/psql/feeTypeHasTermsModel.js +102 -0
- package/dist/models/psql/feeTypeModel.d.ts +22 -0
- package/dist/models/psql/feeTypeModel.js +125 -0
- package/dist/models/psql/feesCollectionModel.d.ts +28 -0
- package/dist/models/psql/feesCollectionModel.js +232 -0
- package/dist/models/psql/fileStorageModel.d.ts +6 -0
- package/dist/models/psql/fileStorageModel.js +86 -0
- package/dist/models/psql/floorManagementModel.d.ts +18 -0
- package/dist/models/psql/floorManagementModel.js +90 -0
- package/dist/models/psql/greetingsModel.d.ts +21 -0
- package/dist/models/psql/greetingsModel.js +118 -0
- package/dist/models/psql/homeWorkModel.d.ts +22 -0
- package/dist/models/psql/homeWorkModel.js +128 -0
- package/dist/models/psql/index.d.ts +4 -0
- package/dist/models/psql/index.js +121 -0
- package/dist/models/psql/instituteEntityModel.d.ts +25 -0
- package/dist/models/psql/instituteEntityModel.js +131 -0
- package/dist/models/psql/instituteEntityTypeModel.d.ts +19 -0
- package/dist/models/psql/instituteEntityTypeModel.js +74 -0
- package/dist/models/psql/instituteModel.d.ts +44 -0
- package/dist/models/psql/instituteModel.js +240 -0
- package/dist/models/psql/instituteSubscriptionPlanModel.d.ts +33 -0
- package/dist/models/psql/instituteSubscriptionPlanModel.js +186 -0
- package/dist/models/psql/inventoryHistoryModel.d.ts +26 -0
- package/dist/models/psql/inventoryHistoryModel.js +159 -0
- package/dist/models/psql/inventoryModel.d.ts +24 -0
- package/dist/models/psql/inventoryModel.js +132 -0
- package/dist/models/psql/lectureHistoryModel.d.ts +32 -0
- package/dist/models/psql/lectureHistoryModel.js +223 -0
- package/dist/models/psql/lectureModel.d.ts +34 -0
- package/dist/models/psql/lectureModel.js +485 -0
- package/dist/models/psql/masterLeaveModel.d.ts +22 -0
- package/dist/models/psql/masterLeaveModel.js +132 -0
- package/dist/models/psql/moduleFeatureModel.d.ts +21 -0
- package/dist/models/psql/moduleFeatureModel.js +98 -0
- package/dist/models/psql/moduleModel.d.ts +20 -0
- package/dist/models/psql/moduleModel.js +101 -0
- package/dist/models/psql/offerModel.d.ts +27 -0
- package/dist/models/psql/offerModel.js +144 -0
- package/dist/models/psql/paymentTermsModel.d.ts +17 -0
- package/dist/models/psql/paymentTermsModel.js +114 -0
- package/dist/models/psql/pdcChequeModel.d.ts +25 -0
- package/dist/models/psql/pdcChequeModel.js +138 -0
- package/dist/models/psql/pdcHistoryModel.d.ts +26 -0
- package/dist/models/psql/pdcHistoryModel.js +152 -0
- package/dist/models/psql/pincodeModel.d.ts +23 -0
- package/dist/models/psql/pincodeModel.js +79 -0
- package/dist/models/psql/productModel.d.ts +19 -0
- package/dist/models/psql/productModel.js +124 -0
- package/dist/models/psql/projectAssessmentOptionModel.d.ts +17 -0
- package/dist/models/psql/projectAssessmentOptionModel.js +90 -0
- package/dist/models/psql/roleModel.d.ts +22 -0
- package/dist/models/psql/roleModel.js +97 -0
- package/dist/models/psql/rulesRegulationModel.d.ts +19 -0
- package/dist/models/psql/rulesRegulationModel.js +72 -0
- package/dist/models/psql/schoolFeeCollectionModel.d.ts +22 -0
- package/dist/models/psql/schoolFeeCollectionModel.js +156 -0
- package/dist/models/psql/schoolOfferModel.d.ts +29 -0
- package/dist/models/psql/schoolOfferModel.js +167 -0
- package/dist/models/psql/sendNotificationModel.d.ts +22 -0
- package/dist/models/psql/sendNotificationModel.js +117 -0
- package/dist/models/psql/slotModel.d.ts +17 -0
- package/dist/models/psql/slotModel.js +99 -0
- package/dist/models/psql/stateModel.d.ts +13 -0
- package/dist/models/psql/stateModel.js +58 -0
- package/dist/models/psql/subjectHasFeeModel.d.ts +16 -0
- package/dist/models/psql/subjectHasFeeModel.js +78 -0
- package/dist/models/psql/subjectHasPayFeeHistoryModel.d.ts +18 -0
- package/dist/models/psql/subjectHasPayFeeHistoryModel.js +109 -0
- package/dist/models/psql/syllabusModel.d.ts +18 -0
- package/dist/models/psql/syllabusModel.js +125 -0
- package/dist/models/psql/testimonialModel.d.ts +21 -0
- package/dist/models/psql/testimonialModel.js +162 -0
- package/dist/models/psql/toDoModel.d.ts +20 -0
- package/dist/models/psql/toDoModel.js +116 -0
- package/dist/models/psql/tokenModel.d.ts +15 -0
- package/dist/models/psql/tokenModel.js +37 -0
- package/dist/models/psql/tripModel.d.ts +22 -0
- package/dist/models/psql/tripModel.js +114 -0
- package/dist/models/psql/typeManagementModel.d.ts +20 -0
- package/dist/models/psql/typeManagementModel.js +122 -0
- package/dist/models/psql/userBookAssessmentModel.d.ts +19 -0
- package/dist/models/psql/userBookAssessmentModel.js +141 -0
- package/dist/models/psql/userFeeTypeByAccountModel.d.ts +22 -0
- package/dist/models/psql/userFeeTypeByAccountModel.js +184 -0
- package/dist/models/psql/userFeeTypeModel.d.ts +25 -0
- package/dist/models/psql/userFeeTypeModel.js +172 -0
- package/dist/models/psql/userHasAnnouncementModel.d.ts +18 -0
- package/dist/models/psql/userHasAnnouncementModel.js +108 -0
- package/dist/models/psql/userHasBatchModel.d.ts +16 -0
- package/dist/models/psql/userHasBatchModel.js +92 -0
- package/dist/models/psql/userHasCourseModel.d.ts +22 -0
- package/dist/models/psql/userHasCourseModel.js +116 -0
- package/dist/models/psql/userHasDeviceModel.d.ts +19 -0
- package/dist/models/psql/userHasDeviceModel.js +91 -0
- package/dist/models/psql/userHasFeeTermsModel.d.ts +27 -0
- package/dist/models/psql/userHasFeeTermsModel.js +202 -0
- package/dist/models/psql/userHasFileModel.d.ts +16 -0
- package/dist/models/psql/userHasFileModel.js +107 -0
- package/dist/models/psql/userHasHomeWorkModel.d.ts +19 -0
- package/dist/models/psql/userHasHomeWorkModel.js +119 -0
- package/dist/models/psql/userHasInventoryHistoryModel.d.ts +29 -0
- package/dist/models/psql/userHasInventoryHistoryModel.js +146 -0
- package/dist/models/psql/userHasInventoryModel.d.ts +30 -0
- package/dist/models/psql/userHasInventoryModel.js +148 -0
- package/dist/models/psql/userHasLeaveHistoryModel.d.ts +25 -0
- package/dist/models/psql/userHasLeaveHistoryModel.js +106 -0
- package/dist/models/psql/userHasLeaveModel.d.ts +21 -0
- package/dist/models/psql/userHasLeaveModel.js +121 -0
- package/dist/models/psql/userHasOfferModel.d.ts +19 -0
- package/dist/models/psql/userHasOfferModel.js +154 -0
- package/dist/models/psql/userHasParentModel.d.ts +23 -0
- package/dist/models/psql/userHasParentModel.js +135 -0
- package/dist/models/psql/userHasRoleModel.d.ts +18 -0
- package/dist/models/psql/userHasRoleModel.js +97 -0
- package/dist/models/psql/userHasRollNumberModel.d.ts +17 -0
- package/dist/models/psql/userHasRollNumberModel.js +90 -0
- package/dist/models/psql/userHasStorageModel.d.ts +20 -0
- package/dist/models/psql/userHasStorageModel.js +86 -0
- package/dist/models/psql/userHasSubjectFeeModel.d.ts +18 -0
- package/dist/models/psql/userHasSubjectFeeModel.js +86 -0
- package/dist/models/psql/userLeaveRequestModel.d.ts +24 -0
- package/dist/models/psql/userLeaveRequestModel.js +104 -0
- package/dist/models/psql/userModel.d.ts +55 -0
- package/dist/models/psql/userModel.js +392 -0
- package/dist/models/psql/userPayoutDetailsModel.d.ts +21 -0
- package/dist/models/psql/userPayoutDetailsModel.js +162 -0
- package/dist/models/psql/userPayoutHistoryModel.d.ts +27 -0
- package/dist/models/psql/userPayoutHistoryModel.js +155 -0
- package/dist/models/psql/userPayoutModel.d.ts +20 -0
- package/dist/models/psql/userPayoutModel.js +316 -0
- package/dist/models/psql/userProjectAssessmentOptionModel.d.ts +19 -0
- package/dist/models/psql/userProjectAssessmentOptionModel.js +126 -0
- package/dist/models/psql/userRequiredStepsModel.d.ts +17 -0
- package/dist/models/psql/userRequiredStepsModel.js +78 -0
- package/dist/models/psql/vehicleModel.d.ts +20 -0
- package/dist/models/psql/vehicleModel.js +110 -0
- package/dist/models/psql/vendorManagementModel.d.ts +28 -0
- package/dist/models/psql/vendorManagementModel.js +179 -0
- package/dist/models/psql/walletHistoryModel.d.ts +24 -0
- package/dist/models/psql/walletHistoryModel.js +103 -0
- package/dist/models/psql/walletModel.d.ts +19 -0
- package/dist/models/psql/walletModel.js +93 -0
- package/dist/models/psql/workingDayModel.d.ts +20 -0
- package/dist/models/psql/workingDayModel.js +79 -0
- package/dist/models/psql/workingShiftModel.d.ts +21 -0
- package/dist/models/psql/workingShiftModel.js +92 -0
- package/dist/services/Concrete/mongooseCommonService.d.ts +36 -0
- package/dist/services/Concrete/mongooseCommonService.js +108 -0
- package/dist/services/Concrete/sequelizeCommanService.d.ts +17 -0
- package/dist/services/Concrete/sequelizeCommanService.js +123 -0
- package/dist/services/Contracts/IMongooseCommonService.d.ts +35 -0
- package/dist/services/Contracts/IMongooseCommonService.js +2 -0
- package/dist/services/Contracts/ISequelizeCommonService.d.ts +20 -0
- package/dist/services/Contracts/ISequelizeCommonService.js +2 -0
- package/dist/types/academicCalendarType.d.ts +6 -0
- package/dist/types/academicCalendarType.js +2 -0
- package/dist/types/accountHasReceiptDetailsType.d.ts +7 -0
- package/dist/types/accountHasReceiptDetailsType.js +2 -0
- package/dist/types/announcementType.d.ts +6 -0
- package/dist/types/announcementType.js +2 -0
- package/dist/types/approveRequestType.d.ts +2 -0
- package/dist/types/approveRequestType.js +2 -0
- package/dist/types/areaType.d.ts +3 -0
- package/dist/types/areaType.js +2 -0
- package/dist/types/attendanceType.d.ts +2 -0
- package/dist/types/attendanceType.js +2 -0
- package/dist/types/bankAccountDetailsType.d.ts +3 -0
- package/dist/types/bankAccountDetailsType.js +2 -0
- package/dist/types/bannerType.d.ts +7 -0
- package/dist/types/bannerType.js +2 -0
- package/dist/types/batchSubjectBookAssessmentType.d.ts +7 -0
- package/dist/types/batchSubjectBookAssessmentType.js +2 -0
- package/dist/types/batchSubjectProjectAssessmentType.d.ts +7 -0
- package/dist/types/batchSubjectProjectAssessmentType.js +2 -0
- package/dist/types/batchType.d.ts +7 -0
- package/dist/types/batchType.js +2 -0
- package/dist/types/blogType.d.ts +2 -0
- package/dist/types/blogType.js +2 -0
- package/dist/types/bookAssessmentDateType.d.ts +7 -0
- package/dist/types/bookAssessmentDateType.js +2 -0
- package/dist/types/careerType.d.ts +2 -0
- package/dist/types/careerType.js +2 -0
- package/dist/types/categoriesType.d.ts +3 -0
- package/dist/types/categoriesType.js +2 -0
- package/dist/types/certificatesHistoryType.d.ts +2 -0
- package/dist/types/certificatesHistoryType.js +2 -0
- package/dist/types/certificatesManagementType.d.ts +2 -0
- package/dist/types/certificatesManagementType.js +2 -0
- package/dist/types/classRoomType.d.ts +3 -0
- package/dist/types/classRoomType.js +2 -0
- package/dist/types/cloudStorageType.d.ts +3 -0
- package/dist/types/cloudStorageType.js +2 -0
- package/dist/types/coinPurchaseOfferType.d.ts +3 -0
- package/dist/types/coinPurchaseOfferType.js +2 -0
- package/dist/types/commonType.d.ts +9 -0
- package/dist/types/commonType.js +2 -0
- package/dist/types/contactFeedBackType.d.ts +3 -0
- package/dist/types/contactFeedBackType.js +2 -0
- package/dist/types/courseHasVisitorsType.d.ts +2 -0
- package/dist/types/courseHasVisitorsType.js +2 -0
- package/dist/types/courseType.d.ts +2 -0
- package/dist/types/courseType.js +2 -0
- package/dist/types/dailyBookType.d.ts +2 -0
- package/dist/types/dailyBookType.js +2 -0
- package/dist/types/dashboardManagementType.d.ts +2 -0
- package/dist/types/dashboardManagementType.js +2 -0
- package/dist/types/driverType.d.ts +6 -0
- package/dist/types/driverType.js +2 -0
- package/dist/types/entityGroupType.d.ts +3 -0
- package/dist/types/entityGroupType.js +2 -0
- package/dist/types/eventType.d.ts +2 -0
- package/dist/types/eventType.js +2 -0
- package/dist/types/examGroupType.d.ts +6 -0
- package/dist/types/examGroupType.js +2 -0
- package/dist/types/examHasAnswerSheetType.d.ts +2 -0
- package/dist/types/examHasAnswerSheetType.js +2 -0
- package/dist/types/examType.d.ts +6 -0
- package/dist/types/examType.js +2 -0
- package/dist/types/facilityType.d.ts +3 -0
- package/dist/types/facilityType.js +2 -0
- package/dist/types/featureActionType.d.ts +3 -0
- package/dist/types/featureActionType.js +2 -0
- package/dist/types/feeHistoryDetailsType.d.ts +6 -0
- package/dist/types/feeHistoryDetailsType.js +2 -0
- package/dist/types/feeHistoryType.d.ts +18 -0
- package/dist/types/feeHistoryType.js +2 -0
- package/dist/types/feeReminderSettingType.d.ts +3 -0
- package/dist/types/feeReminderSettingType.js +2 -0
- package/dist/types/feeReminderType.d.ts +3 -0
- package/dist/types/feeReminderType.js +2 -0
- package/dist/types/feeReminderTypeType.d.ts +2 -0
- package/dist/types/feeReminderTypeType.js +2 -0
- package/dist/types/feeTypeHasTermsType.d.ts +3 -0
- package/dist/types/feeTypeHasTermsType.js +2 -0
- package/dist/types/feeTypeType.d.ts +3 -0
- package/dist/types/feeTypeType.js +2 -0
- package/dist/types/feedBackType.d.ts +2 -0
- package/dist/types/feedBackType.js +2 -0
- package/dist/types/feesCollectionType.d.ts +3 -0
- package/dist/types/feesCollectionType.js +2 -0
- package/dist/types/fileStorageType.d.ts +3 -0
- package/dist/types/fileStorageType.js +2 -0
- package/dist/types/floormanagementType.d.ts +3 -0
- package/dist/types/floormanagementType.js +2 -0
- package/dist/types/generateIdCardType.d.ts +2 -0
- package/dist/types/generateIdCardType.js +2 -0
- package/dist/types/greetingsType.d.ts +6 -0
- package/dist/types/greetingsType.js +2 -0
- package/dist/types/holidayType.d.ts +2 -0
- package/dist/types/holidayType.js +3 -0
- package/dist/types/homeWorkType.d.ts +3 -0
- package/dist/types/homeWorkType.js +2 -0
- package/dist/types/informationSupportType.d.ts +2 -0
- package/dist/types/informationSupportType.js +2 -0
- package/dist/types/inquiryType.d.ts +2 -0
- package/dist/types/inquiryType.js +2 -0
- package/dist/types/instituteEntityType.d.ts +6 -0
- package/dist/types/instituteEntityType.js +2 -0
- package/dist/types/instituteEntityTypeType.d.ts +3 -0
- package/dist/types/instituteEntityTypeType.js +2 -0
- package/dist/types/instituteSubscriptionPlanType.d.ts +3 -0
- package/dist/types/instituteSubscriptionPlanType.js +2 -0
- package/dist/types/instituteType.d.ts +3 -0
- package/dist/types/instituteType.js +2 -0
- package/dist/types/inventoryHistoryType.d.ts +3 -0
- package/dist/types/inventoryHistoryType.js +2 -0
- package/dist/types/inventoryType.d.ts +3 -0
- package/dist/types/inventoryType.js +2 -0
- package/dist/types/jobApply.d.ts +2 -0
- package/dist/types/jobApply.js +2 -0
- package/dist/types/lectureHistoryType.d.ts +6 -0
- package/dist/types/lectureHistoryType.js +2 -0
- package/dist/types/lectureType.d.ts +6 -0
- package/dist/types/lectureType.js +2 -0
- package/dist/types/masterLeaveType.d.ts +3 -0
- package/dist/types/masterLeaveType.js +2 -0
- package/dist/types/moduleFeatureType.d.ts +3 -0
- package/dist/types/moduleFeatureType.js +2 -0
- package/dist/types/moduleType.d.ts +3 -0
- package/dist/types/moduleType.js +2 -0
- package/dist/types/offerType.d.ts +3 -0
- package/dist/types/offerType.js +2 -0
- package/dist/types/paymentTermsType.d.ts +3 -0
- package/dist/types/paymentTermsType.js +3 -0
- package/dist/types/pdcChequeType.d.ts +6 -0
- package/dist/types/pdcChequeType.js +2 -0
- package/dist/types/pdcHistoryType.d.ts +2 -0
- package/dist/types/pdcHistoryType.js +2 -0
- package/dist/types/photosGalleryType.d.ts +2 -0
- package/dist/types/photosGalleryType.js +2 -0
- package/dist/types/plannerType.d.ts +7 -0
- package/dist/types/plannerType.js +2 -0
- package/dist/types/productType.d.ts +3 -0
- package/dist/types/productType.js +2 -0
- package/dist/types/projectAssessmentOptionType.d.ts +7 -0
- package/dist/types/projectAssessmentOptionType.js +2 -0
- package/dist/types/roleType.d.ts +11 -0
- package/dist/types/roleType.js +2 -0
- package/dist/types/rulesRegulationType.d.ts +3 -0
- package/dist/types/rulesRegulationType.js +2 -0
- package/dist/types/schoolFeeCollectionType.d.ts +3 -0
- package/dist/types/schoolFeeCollectionType.js +2 -0
- package/dist/types/schoolFeeType.d.ts +3 -0
- package/dist/types/schoolFeeType.js +2 -0
- package/dist/types/schoolOfferType.d.ts +3 -0
- package/dist/types/schoolOfferType.js +2 -0
- package/dist/types/sendNotificationType.d.ts +3 -0
- package/dist/types/sendNotificationType.js +2 -0
- package/dist/types/slotType.d.ts +2 -0
- package/dist/types/slotType.js +2 -0
- package/dist/types/subCategoryType.d.ts +3 -0
- package/dist/types/subCategoryType.js +2 -0
- package/dist/types/subjectHasFeeType.d.ts +3 -0
- package/dist/types/subjectHasFeeType.js +2 -0
- package/dist/types/subjectHasPayFeeHistoryType.d.ts +3 -0
- package/dist/types/subjectHasPayFeeHistoryType.js +2 -0
- package/dist/types/subjectIndexType.d.ts +7 -0
- package/dist/types/subjectIndexType.js +2 -0
- package/dist/types/subscriptionPlanType.d.ts +2 -0
- package/dist/types/subscriptionPlanType.js +2 -0
- package/dist/types/syllabusType.d.ts +7 -0
- package/dist/types/syllabusType.js +2 -0
- package/dist/types/taskManagementType.d.ts +2 -0
- package/dist/types/taskManagementType.js +2 -0
- package/dist/types/testimonialType.d.ts +13 -0
- package/dist/types/testimonialType.js +2 -0
- package/dist/types/toDoType.d.ts +6 -0
- package/dist/types/toDoType.js +2 -0
- package/dist/types/tripType.d.ts +2 -0
- package/dist/types/tripType.js +2 -0
- package/dist/types/typeManagementType.d.ts +3 -0
- package/dist/types/typeManagementType.js +2 -0
- package/dist/types/uniqueNumberCounterType.d.ts +2 -0
- package/dist/types/uniqueNumberCounterType.js +2 -0
- package/dist/types/userBookAssessmentType.d.ts +7 -0
- package/dist/types/userBookAssessmentType.js +2 -0
- package/dist/types/userDetailsType.d.ts +2 -0
- package/dist/types/userDetailsType.js +2 -0
- package/dist/types/userFeeTypeByAccountType.d.ts +3 -0
- package/dist/types/userFeeTypeByAccountType.js +2 -0
- package/dist/types/userFeeTypeType.d.ts +6 -0
- package/dist/types/userFeeTypeType.js +2 -0
- package/dist/types/userHasAnnouncementType.d.ts +3 -0
- package/dist/types/userHasAnnouncementType.js +2 -0
- package/dist/types/userHasBatchType.d.ts +9 -0
- package/dist/types/userHasBatchType.js +2 -0
- package/dist/types/userHasCourseType.d.ts +3 -0
- package/dist/types/userHasCourseType.js +2 -0
- package/dist/types/userHasDeviceType.d.ts +3 -0
- package/dist/types/userHasDeviceType.js +2 -0
- package/dist/types/userHasFeeTermsType.d.ts +3 -0
- package/dist/types/userHasFeeTermsType.js +2 -0
- package/dist/types/userHasFileType.d.ts +3 -0
- package/dist/types/userHasFileType.js +2 -0
- package/dist/types/userHasHomeWorkType.d.ts +3 -0
- package/dist/types/userHasHomeWorkType.js +2 -0
- package/dist/types/userHasInventoryHistoryType.d.ts +3 -0
- package/dist/types/userHasInventoryHistoryType.js +2 -0
- package/dist/types/userHasInventoryType.d.ts +3 -0
- package/dist/types/userHasInventoryType.js +2 -0
- package/dist/types/userHasLeaveHistoryType.d.ts +3 -0
- package/dist/types/userHasLeaveHistoryType.js +2 -0
- package/dist/types/userHasLeaveType.d.ts +3 -0
- package/dist/types/userHasLeaveType.js +2 -0
- package/dist/types/userHasOffer.d.ts +3 -0
- package/dist/types/userHasOffer.js +2 -0
- package/dist/types/userHasParentType.d.ts +10 -0
- package/dist/types/userHasParentType.js +2 -0
- package/dist/types/userHasRoleType.d.ts +3 -0
- package/dist/types/userHasRoleType.js +2 -0
- package/dist/types/userHasRollNumberType.d.ts +3 -0
- package/dist/types/userHasRollNumberType.js +2 -0
- package/dist/types/userHasStorageType.d.ts +3 -0
- package/dist/types/userHasStorageType.js +2 -0
- package/dist/types/userHasSubjectFeeType.d.ts +3 -0
- package/dist/types/userHasSubjectFeeType.js +2 -0
- package/dist/types/userInstituteMetaType.d.ts +2 -0
- package/dist/types/userInstituteMetaType.js +2 -0
- package/dist/types/userLeaveRequestType.d.ts +3 -0
- package/dist/types/userLeaveRequestType.js +2 -0
- package/dist/types/userMetaType.d.ts +13 -0
- package/dist/types/userMetaType.js +2 -0
- package/dist/types/userPayoutDetailsType.d.ts +3 -0
- package/dist/types/userPayoutDetailsType.js +2 -0
- package/dist/types/userPayoutHistoryType.d.ts +3 -0
- package/dist/types/userPayoutHistoryType.js +2 -0
- package/dist/types/userPayoutType.d.ts +7 -0
- package/dist/types/userPayoutType.js +2 -0
- package/dist/types/userProjectAssessmentOptionType.d.ts +7 -0
- package/dist/types/userProjectAssessmentOptionType.js +2 -0
- package/dist/types/userRequiredStepsType.d.ts +3 -0
- package/dist/types/userRequiredStepsType.js +2 -0
- package/dist/types/userSchoolMetaType.d.ts +3 -0
- package/dist/types/userSchoolMetaType.js +2 -0
- package/dist/types/userType.d.ts +12 -0
- package/dist/types/userType.js +2 -0
- package/dist/types/vehicleType.d.ts +3 -0
- package/dist/types/vehicleType.js +2 -0
- package/dist/types/vendorType.d.ts +3 -0
- package/dist/types/vendorType.js +2 -0
- package/dist/types/videoAnalystType.d.ts +2 -0
- package/dist/types/videoAnalystType.js +2 -0
- package/dist/types/walletHistoryType.d.ts +3 -0
- package/dist/types/walletHistoryType.js +2 -0
- package/dist/types/walletTransactionType.d.ts +3 -0
- package/dist/types/walletTransactionType.js +2 -0
- package/dist/types/walletType.d.ts +3 -0
- package/dist/types/walletType.js +2 -0
- package/dist/types/workingDayType.d.ts +3 -0
- package/dist/types/workingDayType.js +2 -0
- package/dist/types/workingShiftType.d.ts +3 -0
- package/dist/types/workingShiftType.js +2 -0
- package/package.json +48 -0
|
@@ -0,0 +1,682 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.getNextLetter = exports.getCityAreas = exports.generateVoucherCode = exports.verifyHmacSHA256 = exports.generateHmacSHA256 = exports.customPagination = exports.uuidIdAlternatives = exports.objectIdAlternatives = exports.enumAlternatives = exports.fromSnakeCaseToNormalText = exports.normalizeToArray = exports.capitalizeFirst = exports.parseOrderOptions = exports.isValidUUID = exports.removeFalsyValues = exports.flattenNestedStructure = exports.buildNestedStructure = exports.getParentsByChildrenId = exports.getChildrenByParentId = exports.sortArray = exports.groupByFields = exports.endOfDay = exports.generateUuidToNumber = exports.startOfDay = exports.isDateWithinRange = exports.isTimeWithinRange = exports.keyByFieldOrFields = exports.getUniqueArrayByFields = exports.generateTempPassword = exports.generateAlphaNumericCode = exports.generateOtp = exports.ensureDirectoryExists = exports.omit = exports.isValidMongoDbId = exports.pick = void 0;
|
|
40
|
+
exports.groupByFieldOrFields = groupByFieldOrFields;
|
|
41
|
+
exports.slugify = slugify;
|
|
42
|
+
exports.assignNonNull = assignNonNull;
|
|
43
|
+
exports.isUserSchoolInfoUpdate = isUserSchoolInfoUpdate;
|
|
44
|
+
exports.chunkArray = chunkArray;
|
|
45
|
+
exports.extractFromObject = extractFromObject;
|
|
46
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
47
|
+
const fs_1 = __importDefault(require("fs"));
|
|
48
|
+
const dateFunction = __importStar(require("date-fns"));
|
|
49
|
+
const app_1 = require("../constants/app");
|
|
50
|
+
const joi_1 = __importDefault(require("joi"));
|
|
51
|
+
const uuid_1 = require("uuid");
|
|
52
|
+
const crypto_1 = __importDefault(require("crypto"));
|
|
53
|
+
const sequelize_1 = require("sequelize");
|
|
54
|
+
const axios_1 = __importDefault(require("axios"));
|
|
55
|
+
const PASSWORD_REGEX = new RegExp('^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!.@#$%^&*])(?=.{8,})');
|
|
56
|
+
const pick = (objOrArray, keys) => {
|
|
57
|
+
const pickObject = (obj) => keys.reduce((acc, key) => {
|
|
58
|
+
if (key in obj) {
|
|
59
|
+
acc[key] = obj[key];
|
|
60
|
+
}
|
|
61
|
+
return acc;
|
|
62
|
+
}, {});
|
|
63
|
+
// Check if input is an array
|
|
64
|
+
if (Array.isArray(objOrArray)) {
|
|
65
|
+
return objOrArray.map(obj => pickObject(obj));
|
|
66
|
+
}
|
|
67
|
+
// Otherwise, it's a single object
|
|
68
|
+
return pickObject(objOrArray);
|
|
69
|
+
};
|
|
70
|
+
exports.pick = pick;
|
|
71
|
+
exports.isValidMongoDbId = joi_1.default.string()
|
|
72
|
+
.trim()
|
|
73
|
+
.pattern(/^[0-9a-fA-F]{24}$/)
|
|
74
|
+
.messages({
|
|
75
|
+
'string.pattern.base': `"id" must be a valid MongoDB ObjectId`,
|
|
76
|
+
});
|
|
77
|
+
const omit = (objOrArray, keys) => {
|
|
78
|
+
const omitObject = (obj) => Object.keys(obj).reduce((acc, key) => {
|
|
79
|
+
// Check if the key is not in the list of keys to omit
|
|
80
|
+
if (!keys.includes(key)) {
|
|
81
|
+
// Assert the correct key type and assign the value
|
|
82
|
+
acc[key] = obj[key];
|
|
83
|
+
}
|
|
84
|
+
return acc;
|
|
85
|
+
}, {});
|
|
86
|
+
// Check if the input is an array
|
|
87
|
+
if (Array.isArray(objOrArray)) {
|
|
88
|
+
return objOrArray.map(item => omitObject(item));
|
|
89
|
+
}
|
|
90
|
+
// Otherwise, it's a single object
|
|
91
|
+
return omitObject(objOrArray);
|
|
92
|
+
};
|
|
93
|
+
exports.omit = omit;
|
|
94
|
+
const ensureDirectoryExists = (directory) => {
|
|
95
|
+
if (!fs_1.default.existsSync(directory)) {
|
|
96
|
+
fs_1.default.mkdirSync(directory, { recursive: true });
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
exports.ensureDirectoryExists = ensureDirectoryExists;
|
|
100
|
+
const generateOtp = (length = 6) => {
|
|
101
|
+
const digits = '0123456789';
|
|
102
|
+
let otp = '';
|
|
103
|
+
for (let i = 0; i < length; i++) {
|
|
104
|
+
otp += digits[Math.floor(Math.random() * 10)];
|
|
105
|
+
}
|
|
106
|
+
return otp;
|
|
107
|
+
};
|
|
108
|
+
exports.generateOtp = generateOtp;
|
|
109
|
+
const generateAlphaNumericCode = (length = 8) => {
|
|
110
|
+
const chars = {
|
|
111
|
+
lowercase: 'abcdefghijklmnopqrstuvwxyz',
|
|
112
|
+
uppercase: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
|
|
113
|
+
numbers: '0123456789',
|
|
114
|
+
};
|
|
115
|
+
// Ensure password contains at least one character from each required group
|
|
116
|
+
let password = [
|
|
117
|
+
chars.lowercase[Math.floor(Math.random() * chars.lowercase.length)],
|
|
118
|
+
chars.uppercase[Math.floor(Math.random() * chars.uppercase.length)],
|
|
119
|
+
chars.numbers[Math.floor(Math.random() * chars.numbers.length)],
|
|
120
|
+
];
|
|
121
|
+
// Fill the rest of the password to reach the minimum length of 8
|
|
122
|
+
const allChars = chars.lowercase + chars.uppercase + chars.numbers;
|
|
123
|
+
while (password.length < length) {
|
|
124
|
+
password.push(allChars[Math.floor(Math.random() * allChars.length)]);
|
|
125
|
+
}
|
|
126
|
+
// Shuffle password array and join it as a string
|
|
127
|
+
password = password.sort(() => 0.5 - Math.random());
|
|
128
|
+
const tempPassword = password.join('');
|
|
129
|
+
return tempPassword;
|
|
130
|
+
};
|
|
131
|
+
exports.generateAlphaNumericCode = generateAlphaNumericCode;
|
|
132
|
+
const generateTempPassword = (length = 8) => {
|
|
133
|
+
const chars = {
|
|
134
|
+
lowercase: 'abcdefghijklmnopqrstuvwxyz',
|
|
135
|
+
uppercase: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
|
|
136
|
+
numbers: '0123456789',
|
|
137
|
+
symbols: '.@#',
|
|
138
|
+
};
|
|
139
|
+
// Ensure password contains at least one character from each required group
|
|
140
|
+
let password = [
|
|
141
|
+
chars.lowercase[Math.floor(Math.random() * chars.lowercase.length)],
|
|
142
|
+
chars.uppercase[Math.floor(Math.random() * chars.uppercase.length)],
|
|
143
|
+
chars.numbers[Math.floor(Math.random() * chars.numbers.length)],
|
|
144
|
+
chars.symbols[Math.floor(Math.random() * chars.symbols.length)],
|
|
145
|
+
];
|
|
146
|
+
// Fill the rest of the password to reach the minimum length of 8
|
|
147
|
+
const allChars = chars.lowercase + chars.uppercase + chars.numbers + chars.symbols;
|
|
148
|
+
while (password.length < length) {
|
|
149
|
+
password.push(allChars[Math.floor(Math.random() * allChars.length)]);
|
|
150
|
+
}
|
|
151
|
+
// Shuffle password array and join it as a string
|
|
152
|
+
password = password.sort(() => 0.5 - Math.random());
|
|
153
|
+
const tempPassword = password.join('');
|
|
154
|
+
// Verify if the password meets the regex requirement
|
|
155
|
+
return PASSWORD_REGEX.test(tempPassword) ? tempPassword : (0, exports.generateTempPassword)();
|
|
156
|
+
};
|
|
157
|
+
exports.generateTempPassword = generateTempPassword;
|
|
158
|
+
const getUniqueArrayByFields = (array, fields) => {
|
|
159
|
+
const uniqueMap = new Map();
|
|
160
|
+
array.forEach(item => {
|
|
161
|
+
const key = fields.map(field => item[field]).join('-');
|
|
162
|
+
if (!uniqueMap.has(key)) {
|
|
163
|
+
uniqueMap.set(key, item);
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
return Array.from(uniqueMap.values());
|
|
167
|
+
};
|
|
168
|
+
exports.getUniqueArrayByFields = getUniqueArrayByFields;
|
|
169
|
+
const keyByFieldOrFields = (array, fields) => {
|
|
170
|
+
return array.reduce((result, item) => {
|
|
171
|
+
const key = Array.isArray(fields)
|
|
172
|
+
? fields.map(field => item[field]).join('-') // Composite key for multiple fields
|
|
173
|
+
: item[fields]; // Single field key
|
|
174
|
+
result[key] = item; // Type assertion to ensure the key is string
|
|
175
|
+
return result;
|
|
176
|
+
}, {});
|
|
177
|
+
};
|
|
178
|
+
exports.keyByFieldOrFields = keyByFieldOrFields;
|
|
179
|
+
/**
|
|
180
|
+
* Groups an array of objects by a specified field or multiple fields.
|
|
181
|
+
*
|
|
182
|
+
* @param array - The array of objects to group.
|
|
183
|
+
* @param fields - A single field or an array of fields to group by.
|
|
184
|
+
* @returns An object where keys are the grouped field values and values are arrays of grouped objects.
|
|
185
|
+
*/
|
|
186
|
+
function groupByFieldOrFields(array, fields) {
|
|
187
|
+
return array.reduce((result, item) => {
|
|
188
|
+
const key = Array.isArray(fields)
|
|
189
|
+
? fields.map(field => item[field]).join('-') // Composite key for multiple fields
|
|
190
|
+
: item[fields]; // Single field key
|
|
191
|
+
const groupKey = String(key); // Ensuring the key is always a string
|
|
192
|
+
if (!result[groupKey]) {
|
|
193
|
+
result[groupKey] = [];
|
|
194
|
+
}
|
|
195
|
+
result[groupKey].push(item);
|
|
196
|
+
return result;
|
|
197
|
+
}, {});
|
|
198
|
+
}
|
|
199
|
+
const isTimeWithinRange = (time, rangeStart, rangeEnd) => {
|
|
200
|
+
const getTimeMs = (date) => date.getUTCHours() * 3600000 + date.getUTCMinutes() * 60000 + date.getUTCSeconds() * 1000 + date.getUTCMilliseconds();
|
|
201
|
+
const timeMs = getTimeMs(time);
|
|
202
|
+
const startMs = getTimeMs(rangeStart);
|
|
203
|
+
const endMs = getTimeMs(rangeEnd);
|
|
204
|
+
// If the time range does not cross midnight
|
|
205
|
+
if (startMs <= endMs) {
|
|
206
|
+
return timeMs >= startMs && timeMs <= endMs;
|
|
207
|
+
}
|
|
208
|
+
// If the time range crosses midnight
|
|
209
|
+
return timeMs >= startMs || timeMs <= endMs;
|
|
210
|
+
};
|
|
211
|
+
exports.isTimeWithinRange = isTimeWithinRange;
|
|
212
|
+
// export const isTimeWithinRange = (time: string | Date, rangeStart: string | Date, rangeEnd: string | Date): boolean => {
|
|
213
|
+
// const extractTime = (isoString: string) => {
|
|
214
|
+
// const date = parseISO(new Date(isoString).toISOString());
|
|
215
|
+
// return getHours(date) * 3600 + getMinutes(date) * 60 + getSeconds(date); // Convert to total seconds
|
|
216
|
+
// };
|
|
217
|
+
// const timeSeconds = extractTime(time as string);
|
|
218
|
+
// const startSeconds = extractTime(rangeStart as string);
|
|
219
|
+
// const endSeconds = extractTime(rangeEnd as string);
|
|
220
|
+
// return timeSeconds >= startSeconds && timeSeconds <= endSeconds;
|
|
221
|
+
// };
|
|
222
|
+
const isDateWithinRange = (date, rangeStart, rangeEnd) => {
|
|
223
|
+
const dateValue = new Date(date).getTime();
|
|
224
|
+
const startValue = new Date(rangeStart).getTime();
|
|
225
|
+
const endValue = new Date(rangeEnd).getTime();
|
|
226
|
+
return dateValue >= startValue && dateValue <= endValue;
|
|
227
|
+
};
|
|
228
|
+
exports.isDateWithinRange = isDateWithinRange;
|
|
229
|
+
const startOfDay = (date) => {
|
|
230
|
+
return dateFunction.startOfDay(dateFunction.parseISO(new Date(date).toISOString()));
|
|
231
|
+
};
|
|
232
|
+
exports.startOfDay = startOfDay;
|
|
233
|
+
const generateUuidToNumber = (uuid) => {
|
|
234
|
+
if (!uuid)
|
|
235
|
+
uuid = (0, uuid_1.v4)();
|
|
236
|
+
// Remove dashes from the UUID
|
|
237
|
+
let numericId = uuid.replace(/-/g, '');
|
|
238
|
+
// Convert hex characters to numbers (keeping only digits)
|
|
239
|
+
numericId = BigInt('0x' + numericId).toString();
|
|
240
|
+
return numericId;
|
|
241
|
+
};
|
|
242
|
+
exports.generateUuidToNumber = generateUuidToNumber;
|
|
243
|
+
const endOfDay = (date) => {
|
|
244
|
+
return dateFunction.endOfDay(dateFunction.parseISO(new Date(date).toISOString()));
|
|
245
|
+
};
|
|
246
|
+
exports.endOfDay = endOfDay;
|
|
247
|
+
const groupByFields = (array, fields) => {
|
|
248
|
+
const groupedObject = {};
|
|
249
|
+
array.forEach(item => {
|
|
250
|
+
// Normalize `fields` to always be an array
|
|
251
|
+
const fieldArray = Array.isArray(fields) ? fields : [fields];
|
|
252
|
+
// Create a key based on the specified fields
|
|
253
|
+
const key = fieldArray.map(field => item[field]).join('-');
|
|
254
|
+
// If the key doesn't exist, initialize it with an empty array
|
|
255
|
+
if (!groupedObject[key]) {
|
|
256
|
+
groupedObject[key] = [];
|
|
257
|
+
}
|
|
258
|
+
// Add the current item to the corresponding group
|
|
259
|
+
groupedObject[key].push(item);
|
|
260
|
+
});
|
|
261
|
+
return groupedObject;
|
|
262
|
+
};
|
|
263
|
+
exports.groupByFields = groupByFields;
|
|
264
|
+
/**
|
|
265
|
+
* Sorts an array of objects based on specified fields and order.
|
|
266
|
+
*
|
|
267
|
+
* @param array - The array to be sorted.
|
|
268
|
+
* @param fields - A single sort field or an array of sort fields.
|
|
269
|
+
* @returns A new sorted array.
|
|
270
|
+
*/
|
|
271
|
+
const sortArray = (array, fields) => {
|
|
272
|
+
const fieldArray = Array.isArray(fields) ? fields : [fields]; // Normalize to an array
|
|
273
|
+
return [...array].sort((a, b) => {
|
|
274
|
+
for (const { key, order = 'asc' } of fieldArray) {
|
|
275
|
+
const valueA = a[key];
|
|
276
|
+
const valueB = b[key];
|
|
277
|
+
// Handle undefined or null values safely
|
|
278
|
+
if (valueA == null && valueB == null)
|
|
279
|
+
continue;
|
|
280
|
+
if (valueA == null)
|
|
281
|
+
return order === 'asc' ? 1 : -1;
|
|
282
|
+
if (valueB == null)
|
|
283
|
+
return order === 'asc' ? -1 : 1;
|
|
284
|
+
// Compare values (handling numbers and strings properly)
|
|
285
|
+
const comparison = typeof valueA === 'string' && typeof valueB === 'string' ? valueA.localeCompare(valueB) : valueA > valueB ? 1 : -1;
|
|
286
|
+
if (comparison !== 0)
|
|
287
|
+
return order === 'asc' ? comparison : -comparison;
|
|
288
|
+
}
|
|
289
|
+
return 0; // All fields are equal
|
|
290
|
+
});
|
|
291
|
+
};
|
|
292
|
+
exports.sortArray = sortArray;
|
|
293
|
+
/**
|
|
294
|
+
* Gets all nested children for a given parent ID.
|
|
295
|
+
*
|
|
296
|
+
* @param array - Array of nodes representing the flat hierarchy.
|
|
297
|
+
* @param parentIds - The ID of the parent node.
|
|
298
|
+
* @param parentIdKey - The key used to reference the parent ID.
|
|
299
|
+
* @returns A flattened list of all children.
|
|
300
|
+
*/
|
|
301
|
+
const getChildrenByParentId = (array, parentIds, parentIdKey) => {
|
|
302
|
+
const parentIdList = Array.isArray(parentIds) ? parentIds : [parentIds]; // Normalize parentIds to an array
|
|
303
|
+
const result = array.filter(one => parentIds.includes(one.id));
|
|
304
|
+
//all id list that are included in result array
|
|
305
|
+
const includedIds = [...parentIdList];
|
|
306
|
+
/**
|
|
307
|
+
* Recursively collects all children for the given parent IDs.
|
|
308
|
+
*
|
|
309
|
+
* @param currentParentIds - The current parent IDs being processed.
|
|
310
|
+
*/
|
|
311
|
+
const collectChildren = (currentParentIds) => {
|
|
312
|
+
for (const node of array) {
|
|
313
|
+
if (currentParentIds.includes(node[parentIdKey])) {
|
|
314
|
+
if (!includedIds.includes(node.id)) {
|
|
315
|
+
result.push(node);
|
|
316
|
+
includedIds.push(node.id);
|
|
317
|
+
}
|
|
318
|
+
collectChildren([node.id]); // Recursively collect children of this node
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
collectChildren(parentIdList); // Start collecting from the given parent IDs
|
|
323
|
+
return result;
|
|
324
|
+
};
|
|
325
|
+
exports.getChildrenByParentId = getChildrenByParentId;
|
|
326
|
+
/**
|
|
327
|
+
* Gets all nested children for a given parent ID.
|
|
328
|
+
*
|
|
329
|
+
* @param array - Array of nodes representing the flat hierarchy.
|
|
330
|
+
* @param childIds - The ID of the parent node.
|
|
331
|
+
* @param parentIdKey - The key used to reference the parent ID..
|
|
332
|
+
* @returns A flattened list of all parents.
|
|
333
|
+
*/
|
|
334
|
+
const getParentsByChildrenId = (array, childIds, parentIdKey) => {
|
|
335
|
+
const childIdList = Array.isArray(childIds) ? childIds : [childIds]; // Normalize childIds to an array
|
|
336
|
+
const result = [];
|
|
337
|
+
const includedIds = new Set(); // Track included IDs to avoid duplicates
|
|
338
|
+
/**
|
|
339
|
+
* Recursively collects all parent nodes for the given child IDs.
|
|
340
|
+
*
|
|
341
|
+
* @param currentChildIds - The current child IDs being processed.
|
|
342
|
+
*/
|
|
343
|
+
const collectParents = (currentChildIds) => {
|
|
344
|
+
for (const childId of currentChildIds) {
|
|
345
|
+
const childNode = array.find(node => node.id === childId);
|
|
346
|
+
if (childNode && !includedIds.has(childNode.id)) {
|
|
347
|
+
result.push(childNode); // Add the current child node to the result
|
|
348
|
+
includedIds.add(childNode.id);
|
|
349
|
+
// Recursively find parents if `parentIdKey` exists
|
|
350
|
+
if (childNode[parentIdKey]) {
|
|
351
|
+
collectParents([childNode[parentIdKey]]);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
collectParents(childIdList); // Start collecting from the provided child IDs
|
|
357
|
+
return result;
|
|
358
|
+
};
|
|
359
|
+
exports.getParentsByChildrenId = getParentsByChildrenId;
|
|
360
|
+
/**
|
|
361
|
+
* Builds a nested structure from a flat array of items based on a parent-child relationship.
|
|
362
|
+
*
|
|
363
|
+
* @param items - The array of items that need to be organized.
|
|
364
|
+
* @param parentIdKey - The key that refers to the parent ID in each item.
|
|
365
|
+
* @param nestedListKey - The key that will store the nested child items for each parent.
|
|
366
|
+
*
|
|
367
|
+
* @returns An array of root-level items, each containing its nested children in the `nestedListKey`.
|
|
368
|
+
*/
|
|
369
|
+
const buildNestedStructure = (items, parentIdKey, nestedListKey) => {
|
|
370
|
+
// Clone the items to avoid modifying the original array
|
|
371
|
+
const clonedItems = JSON.parse(JSON.stringify(items));
|
|
372
|
+
const map = new Map(); // Map to associate items by their `id`
|
|
373
|
+
const roots = []; // Array to hold root-level items
|
|
374
|
+
const orphans = []; // Array to hold orphaned items
|
|
375
|
+
// Populate the map and initialize the nested list
|
|
376
|
+
clonedItems.forEach((item) => {
|
|
377
|
+
map.set(item.id, item);
|
|
378
|
+
item[nestedListKey] = []; // Initialize children array
|
|
379
|
+
});
|
|
380
|
+
// Build the nested structure
|
|
381
|
+
clonedItems.forEach((item) => {
|
|
382
|
+
const parentId = item[parentIdKey];
|
|
383
|
+
if (!parentId) {
|
|
384
|
+
// Root-level item (no parentId)
|
|
385
|
+
roots.push(item);
|
|
386
|
+
}
|
|
387
|
+
else {
|
|
388
|
+
// Find parent and add this item as a child
|
|
389
|
+
const parent = map.get(parentId);
|
|
390
|
+
if (parent) {
|
|
391
|
+
parent[nestedListKey].push(item);
|
|
392
|
+
}
|
|
393
|
+
else {
|
|
394
|
+
orphans.push(item); // Add to orphaned items if parent is missing
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
// Append orphaned items to the roots array or process them differently if required
|
|
399
|
+
if (orphans.length > 0) {
|
|
400
|
+
roots.push(...orphans); // Add orphaned items to the roots array
|
|
401
|
+
}
|
|
402
|
+
return roots; // Return the root-level items, each containing its nested children
|
|
403
|
+
};
|
|
404
|
+
exports.buildNestedStructure = buildNestedStructure;
|
|
405
|
+
/**
|
|
406
|
+
* Flattens a nested structure into a flat array while preserving the parent-child relationship.
|
|
407
|
+
*
|
|
408
|
+
* @param items - The nested array of items to be flattened.
|
|
409
|
+
* @param parentIdKey - The key that will store the parent ID in each flattened item.
|
|
410
|
+
* @param nestedListKey - The key that contains the nested child items.
|
|
411
|
+
*
|
|
412
|
+
* @returns A flat array of items, each containing a reference to its parent ID.
|
|
413
|
+
*/
|
|
414
|
+
const flattenNestedStructure = (items, parentIdKey, nestedListKey) => {
|
|
415
|
+
const flatArray = [];
|
|
416
|
+
const processItems = (items, parentId) => {
|
|
417
|
+
items.forEach(item => {
|
|
418
|
+
// Create a shallow copy without the nested list key
|
|
419
|
+
const { [nestedListKey]: children, ...rest } = item;
|
|
420
|
+
// Assign the parent ID
|
|
421
|
+
const flattenedItem = { ...rest, [parentIdKey]: parentId };
|
|
422
|
+
flatArray.push(flattenedItem);
|
|
423
|
+
// Recursively process children if they exist
|
|
424
|
+
if (Array.isArray(children) && children.length > 0) {
|
|
425
|
+
processItems(children, String(item.id));
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
};
|
|
429
|
+
processItems(items);
|
|
430
|
+
return flatArray;
|
|
431
|
+
};
|
|
432
|
+
exports.flattenNestedStructure = flattenNestedStructure;
|
|
433
|
+
/**
|
|
434
|
+
* Removes all falsy values from an object.
|
|
435
|
+
*
|
|
436
|
+
* A falsy value in JavaScript/TypeScript includes:
|
|
437
|
+
* - false
|
|
438
|
+
* - 0 (zero)
|
|
439
|
+
* - "" (empty string)
|
|
440
|
+
* - null
|
|
441
|
+
* - undefined
|
|
442
|
+
* - NaN (Not-a-Number)
|
|
443
|
+
*
|
|
444
|
+
* This function iterates through the object's properties and removes any key-value pairs
|
|
445
|
+
* where the value is falsy. Only truthy values remain in the final object.
|
|
446
|
+
*
|
|
447
|
+
* @param obj - The input object containing key-value pairs.
|
|
448
|
+
* @returns A new object with all falsy values removed.
|
|
449
|
+
*
|
|
450
|
+
* @example
|
|
451
|
+
* const data = {
|
|
452
|
+
* name: "Alice",
|
|
453
|
+
* age: 25,
|
|
454
|
+
* isAdmin: false,
|
|
455
|
+
* score: 0,
|
|
456
|
+
* city: "",
|
|
457
|
+
* country: "USA",
|
|
458
|
+
* email: null,
|
|
459
|
+
* phone: undefined,
|
|
460
|
+
* balance: NaN,
|
|
461
|
+
* };
|
|
462
|
+
*
|
|
463
|
+
* const cleanedData = removeFalsyValues(data);
|
|
464
|
+
* console.log(cleanedData);
|
|
465
|
+
* // Output: { name: 'Alice', age: 25, country: 'USA' }
|
|
466
|
+
*/
|
|
467
|
+
const removeFalsyValues = (obj) => {
|
|
468
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
469
|
+
return Object.fromEntries(Object.entries(obj).filter(([_, value]) => Boolean(value)));
|
|
470
|
+
};
|
|
471
|
+
exports.removeFalsyValues = removeFalsyValues;
|
|
472
|
+
const isValidUUID = (id, expectedVersion) => {
|
|
473
|
+
if (!(0, uuid_1.validate)(id))
|
|
474
|
+
return false;
|
|
475
|
+
if (expectedVersion && (0, uuid_1.version)(id) !== expectedVersion)
|
|
476
|
+
return false;
|
|
477
|
+
return true;
|
|
478
|
+
};
|
|
479
|
+
exports.isValidUUID = isValidUUID;
|
|
480
|
+
/**
|
|
481
|
+
* Parses ordering input and returns Sequelize-compatible order array.
|
|
482
|
+
*
|
|
483
|
+
* @param inputOrder - Array like [["columnName", "ASC"], ...]
|
|
484
|
+
* @param defaultOrder - Fallback or additional default order (e.g. [['createdAt', 'DESC']])
|
|
485
|
+
*/
|
|
486
|
+
const parseOrderOptions = (inputOrder, defaultOrder = [['createdAt', 'DESC']]) => {
|
|
487
|
+
const order = [];
|
|
488
|
+
if (Array.isArray(inputOrder)) {
|
|
489
|
+
for (const item of inputOrder) {
|
|
490
|
+
if (Array.isArray(item) && item.length === 2) {
|
|
491
|
+
const [column, direction] = item;
|
|
492
|
+
if (typeof column === 'string' && typeof direction === 'string' && ['ASC', 'DESC'].includes(direction.toUpperCase())) {
|
|
493
|
+
// const normalizedColumn = toSnakeCase(column);
|
|
494
|
+
// order.push([Sequelize.literal(`"${normalizedColumn}"`), direction.toUpperCase()]);
|
|
495
|
+
// order.push([Sequelize.literal(`"${column}"`), direction.toUpperCase()]);
|
|
496
|
+
order.push([sequelize_1.Sequelize.literal(`"${column}"`), direction.toUpperCase()]);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
// Ensure defaultOrder is always applied at the end if not already present
|
|
502
|
+
const defaultKey = JSON.stringify(defaultOrder[0]);
|
|
503
|
+
const hasDefault = order.some(o => JSON.stringify(o) === defaultKey);
|
|
504
|
+
if (!hasDefault) {
|
|
505
|
+
order.push(...defaultOrder);
|
|
506
|
+
}
|
|
507
|
+
return order;
|
|
508
|
+
};
|
|
509
|
+
exports.parseOrderOptions = parseOrderOptions;
|
|
510
|
+
const capitalizeFirst = (str) => str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
511
|
+
exports.capitalizeFirst = capitalizeFirst;
|
|
512
|
+
const normalizeToArray = (value) => value ? (Array.isArray(value) ? value : [value]) : undefined;
|
|
513
|
+
exports.normalizeToArray = normalizeToArray;
|
|
514
|
+
/**
|
|
515
|
+
* Converts a snake_case string to Normal Text
|
|
516
|
+
* @param {string} input - The snake_case string
|
|
517
|
+
* @returns {string} - The converted Normal Text
|
|
518
|
+
*/
|
|
519
|
+
const fromSnakeCaseToNormalText = (input) => {
|
|
520
|
+
if (typeof input !== 'string')
|
|
521
|
+
return '';
|
|
522
|
+
return input
|
|
523
|
+
.toLowerCase()
|
|
524
|
+
.split('_')
|
|
525
|
+
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
|
|
526
|
+
.join(' ');
|
|
527
|
+
};
|
|
528
|
+
exports.fromSnakeCaseToNormalText = fromSnakeCaseToNormalText;
|
|
529
|
+
function slugify(text) {
|
|
530
|
+
return text
|
|
531
|
+
.toLowerCase()
|
|
532
|
+
.trim()
|
|
533
|
+
.replace(/[^a-z0-9\s-]/g, '')
|
|
534
|
+
.replace(/\s+/g, '-')
|
|
535
|
+
.replace(/-+/g, '-');
|
|
536
|
+
}
|
|
537
|
+
function assignNonNull(target, source) {
|
|
538
|
+
Object.entries(source).forEach(([key, value]) => {
|
|
539
|
+
if (value !== null && value !== undefined) {
|
|
540
|
+
target[key] = value;
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
function isUserSchoolInfoUpdate(institute, reqUser) {
|
|
545
|
+
return (!!(institute.type || institute.subType) &&
|
|
546
|
+
(reqUser.isAddDetails || reqUser.type === app_1.USER_TYPES.INSTITUTE_MASTER_ADMIN || reqUser.type === app_1.USER_TYPES.INSTITUTE_ADMIN));
|
|
547
|
+
}
|
|
548
|
+
function chunkArray(array, size) {
|
|
549
|
+
const chunks = [];
|
|
550
|
+
for (let i = 0; i < array.length; i += size) {
|
|
551
|
+
chunks.push(array.slice(i, i + size));
|
|
552
|
+
}
|
|
553
|
+
return chunks;
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* Safely gets a nested value from an object using a dot-separated path.
|
|
557
|
+
*/
|
|
558
|
+
function getNestedValue(obj, path) {
|
|
559
|
+
return path.split('.').reduce((acc, part) => (acc && acc[part] !== undefined ? acc[part] : '-'), obj);
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* Prepares userdata for EJS template based on dynamic columns config.
|
|
563
|
+
* @param data Array of objects
|
|
564
|
+
* @param columnsConfig Array of columns with { title, field }
|
|
565
|
+
* @returns { userdata: any[], columns: string[] }
|
|
566
|
+
*/
|
|
567
|
+
function extractFromObject(data, config) {
|
|
568
|
+
const columns = config.columns.map(col => col.title);
|
|
569
|
+
const userdata = data.map(item => {
|
|
570
|
+
const row = {};
|
|
571
|
+
config.columns.forEach(col => {
|
|
572
|
+
row[col.title] = getNestedValue(item, col.field);
|
|
573
|
+
});
|
|
574
|
+
return row;
|
|
575
|
+
});
|
|
576
|
+
return { tableTitle: config.tableTitle, userdata, columns };
|
|
577
|
+
}
|
|
578
|
+
const enumAlternatives = (enumObj, isRequired = false, allowArray = true) => {
|
|
579
|
+
const base = joi_1.default.string().valid(...Object.values(enumObj));
|
|
580
|
+
if (allowArray) {
|
|
581
|
+
const alt = joi_1.default.alternatives().try(base, joi_1.default.array().items(base));
|
|
582
|
+
return isRequired ? alt.required() : alt.optional();
|
|
583
|
+
}
|
|
584
|
+
return isRequired ? base.required() : base.optional();
|
|
585
|
+
};
|
|
586
|
+
exports.enumAlternatives = enumAlternatives;
|
|
587
|
+
const objectIdAlternatives = (isRequired = false, allowArray = true) => {
|
|
588
|
+
const base = joi_1.default.string()
|
|
589
|
+
.pattern(/^[0-9a-fA-F]{24}$/)
|
|
590
|
+
.message('Invalid ObjectId format');
|
|
591
|
+
if (allowArray) {
|
|
592
|
+
const alt = joi_1.default.alternatives().try(base, joi_1.default.array().items(base));
|
|
593
|
+
return isRequired ? alt.required() : alt.optional();
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
exports.objectIdAlternatives = objectIdAlternatives;
|
|
597
|
+
const uuidIdAlternatives = (isRequired = false, allowArray = true) => {
|
|
598
|
+
const base = joi_1.default.string().uuid().message('Invalid Uuid format');
|
|
599
|
+
if (allowArray) {
|
|
600
|
+
const alt = joi_1.default.alternatives().try(base, joi_1.default.array().items(base));
|
|
601
|
+
return isRequired ? alt.required() : alt.optional();
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
exports.uuidIdAlternatives = uuidIdAlternatives;
|
|
605
|
+
const customPagination = async (data, page, limit, totalRecords) => {
|
|
606
|
+
page = Math.max(1, page || app_1.PAGINATION.PAGE);
|
|
607
|
+
limit = Math.max(1, limit || app_1.PAGINATION.LIMIT);
|
|
608
|
+
const startIndex = (page - 1) * limit;
|
|
609
|
+
const endIndex = page * limit;
|
|
610
|
+
const paginatedData = data.slice(startIndex, endIndex);
|
|
611
|
+
const totalPages = Math.ceil(totalRecords / limit);
|
|
612
|
+
const currentPage = page;
|
|
613
|
+
const hasPreviousPage = page > 1;
|
|
614
|
+
const hasNextPage = page < totalPages;
|
|
615
|
+
const recordList = paginatedData;
|
|
616
|
+
const paginatedDataWithPagination = {
|
|
617
|
+
limit,
|
|
618
|
+
totalRecords,
|
|
619
|
+
totalPages,
|
|
620
|
+
hasPreviousPage,
|
|
621
|
+
currentPage,
|
|
622
|
+
hasNextPage,
|
|
623
|
+
recordList,
|
|
624
|
+
};
|
|
625
|
+
return paginatedDataWithPagination;
|
|
626
|
+
};
|
|
627
|
+
exports.customPagination = customPagination;
|
|
628
|
+
const generateHmacSHA256 = (data, secret) => {
|
|
629
|
+
return crypto_1.default.createHmac('sha256', secret).update(data).digest('hex');
|
|
630
|
+
};
|
|
631
|
+
exports.generateHmacSHA256 = generateHmacSHA256;
|
|
632
|
+
const verifyHmacSHA256 = (data, secret, signature) => {
|
|
633
|
+
const generated = (0, exports.generateHmacSHA256)(data, secret);
|
|
634
|
+
return generated === signature;
|
|
635
|
+
};
|
|
636
|
+
exports.verifyHmacSHA256 = verifyHmacSHA256;
|
|
637
|
+
const generateVoucherCode = (format = 'XXXX-XXXX-XXXX-XXXX') => {
|
|
638
|
+
const generateSegment = (length) => {
|
|
639
|
+
return crypto_1.default.randomBytes(length).toString('hex').toUpperCase().slice(0, length);
|
|
640
|
+
};
|
|
641
|
+
return format
|
|
642
|
+
.split('-')
|
|
643
|
+
.map(part => generateSegment(part.length))
|
|
644
|
+
.join('-');
|
|
645
|
+
};
|
|
646
|
+
exports.generateVoucherCode = generateVoucherCode;
|
|
647
|
+
const getCityAreas = async (cityName = '') => {
|
|
648
|
+
if (!cityName)
|
|
649
|
+
throw new Error('City name is required.');
|
|
650
|
+
const query = `
|
|
651
|
+
[out:json];
|
|
652
|
+
area["name"="${cityName}"]["boundary"="administrative"]->.searchArea;
|
|
653
|
+
(
|
|
654
|
+
node["place"~"suburb|neighbourhood"](area.searchArea);
|
|
655
|
+
way["place"~"suburb|neighbourhood"](area.searchArea);
|
|
656
|
+
relation["place"~"suburb|neighbourhood"](area.searchArea);
|
|
657
|
+
);
|
|
658
|
+
out body;
|
|
659
|
+
>;
|
|
660
|
+
out skel qt;
|
|
661
|
+
`;
|
|
662
|
+
const url = 'https://overpass-api.de/api/interpreter';
|
|
663
|
+
try {
|
|
664
|
+
const response = await axios_1.default.post(url, `data=${encodeURIComponent(query)}`, {
|
|
665
|
+
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
666
|
+
});
|
|
667
|
+
const elements = response.data.elements;
|
|
668
|
+
const areas = elements.filter((el) => el.tags && el.tags.name).map((el) => el.tags.name.trim());
|
|
669
|
+
return [...new Set(areas)]; // Remove duplicates
|
|
670
|
+
// return [...new Set(areas)]; // Remove duplicates
|
|
671
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
672
|
+
}
|
|
673
|
+
catch (error) {
|
|
674
|
+
return [];
|
|
675
|
+
}
|
|
676
|
+
};
|
|
677
|
+
exports.getCityAreas = getCityAreas;
|
|
678
|
+
const getNextLetter = (current) => {
|
|
679
|
+
const code = current.charCodeAt(0);
|
|
680
|
+
return code >= 90 ? 'A' : String.fromCharCode(code + 1);
|
|
681
|
+
};
|
|
682
|
+
exports.getNextLetter = getNextLetter;
|
package/dist/index.d.ts
ADDED
|
File without changes
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// // DB
|
|
3
|
+
// export * from "./db/postgres";
|
|
4
|
+
// export * from "./db/mongodb";
|
|
5
|
+
// // Models
|
|
6
|
+
// export * from "./models/psql/userModel";
|
|
7
|
+
// export * from "./models/mongodb/userDoc";
|
|
8
|
+
// // Services
|
|
9
|
+
// export * from "./services/userService";
|
|
10
|
+
// // Types / Interfaces
|
|
11
|
+
// export * from "./interfaces";
|
|
12
|
+
// export * from "./types";
|