@kipicore/dbcore 1.1.19 → 1.1.20

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.
Files changed (561) hide show
  1. package/dist/configs/aws.js +4 -4
  2. package/dist/configs/index.d.ts +2 -0
  3. package/dist/configs/index.js +18 -0
  4. package/dist/constants/app.js +13 -13
  5. package/dist/constants/index.d.ts +5 -0
  6. package/dist/constants/index.js +21 -0
  7. package/dist/constants/successMessages.d.ts +1 -1
  8. package/dist/helpers/index.d.ts +2 -0
  9. package/dist/helpers/index.js +18 -0
  10. package/dist/helpers/s3Uploader.d.ts +1 -1
  11. package/dist/helpers/s3Uploader.js +6 -6
  12. package/dist/helpers/utils.d.ts +3 -3
  13. package/dist/helpers/utils.js +4 -4
  14. package/dist/index.d.ts +17 -419
  15. package/dist/index.js +30 -755
  16. package/dist/interfaces/academicCalendarInterface.d.ts +2 -2
  17. package/dist/interfaces/accountHasReceiptDetailsInterface.d.ts +1 -1
  18. package/dist/interfaces/announcementInterface.d.ts +2 -2
  19. package/dist/interfaces/approvalRequestInterface.d.ts +2 -2
  20. package/dist/interfaces/attendanceInterface.d.ts +2 -2
  21. package/dist/interfaces/bankAccountDetailsInterface.d.ts +2 -2
  22. package/dist/interfaces/bannerInterface.d.ts +2 -2
  23. package/dist/interfaces/batchInterface.d.ts +2 -2
  24. package/dist/interfaces/batchSubjectBookAssessmentInterface.d.ts +1 -1
  25. package/dist/interfaces/batchSubjectProjectAssessmentInterface.d.ts +1 -1
  26. package/dist/interfaces/blogInterface.d.ts +2 -2
  27. package/dist/interfaces/bookAssessmentDateInterface.d.ts +2 -2
  28. package/dist/interfaces/careerInterface.d.ts +2 -2
  29. package/dist/interfaces/categoriesInterface.d.ts +2 -2
  30. package/dist/interfaces/certificatesHistoryInterface.d.ts +1 -1
  31. package/dist/interfaces/certificatesManagementInterface.d.ts +2 -2
  32. package/dist/interfaces/cityInterface.d.ts +1 -1
  33. package/dist/interfaces/classRoomInterface.d.ts +2 -2
  34. package/dist/interfaces/cloudStorageInterface.d.ts +2 -2
  35. package/dist/interfaces/coinPurchaseOfferInterface.d.ts +2 -2
  36. package/dist/interfaces/columnInterface.d.ts +2 -2
  37. package/dist/interfaces/contactFeedBackInterface.d.ts +2 -2
  38. package/dist/interfaces/countryInterface.d.ts +1 -1
  39. package/dist/interfaces/courseHasVisitorsInterface.d.ts +1 -1
  40. package/dist/interfaces/courseInterface.d.ts +2 -2
  41. package/dist/interfaces/dailyBookInterface.d.ts +1 -1
  42. package/dist/interfaces/dashboardManagementInterface.d.ts +2 -2
  43. package/dist/interfaces/driverInterface.d.ts +2 -2
  44. package/dist/interfaces/entityGroupInterface.d.ts +2 -2
  45. package/dist/interfaces/eventInterface.d.ts +2 -2
  46. package/dist/interfaces/examGroupInterface.d.ts +3 -3
  47. package/dist/interfaces/examHasAnswerSheetInterface.d.ts +2 -2
  48. package/dist/interfaces/examInterface.d.ts +2 -2
  49. package/dist/interfaces/facilityInterface.d.ts +2 -2
  50. package/dist/interfaces/featureActionInterface.d.ts +2 -2
  51. package/dist/interfaces/feeHistoryDetailsInterface.d.ts +2 -2
  52. package/dist/interfaces/feeHistoryInterface.d.ts +2 -2
  53. package/dist/interfaces/feeReminderInterface.d.ts +1 -1
  54. package/dist/interfaces/feeReminderSettingInterface.d.ts +2 -2
  55. package/dist/interfaces/feeReminderTypeInterface.d.ts +2 -2
  56. package/dist/interfaces/feeTypeHasTermsInterface.d.ts +2 -2
  57. package/dist/interfaces/feeTypeInterface.d.ts +2 -2
  58. package/dist/interfaces/feedBackInterface.d.ts +2 -2
  59. package/dist/interfaces/feesCollectionInterface.d.ts +2 -2
  60. package/dist/interfaces/fileStorageInterface.d.ts +2 -2
  61. package/dist/interfaces/floorManagementInterface.d.ts +2 -2
  62. package/dist/interfaces/generateIdCardInterface.d.ts +1 -1
  63. package/dist/interfaces/greetingsInterface.d.ts +2 -2
  64. package/dist/interfaces/holidayInterface.d.ts +2 -2
  65. package/dist/interfaces/homeworkInterface.d.ts +2 -2
  66. package/dist/interfaces/index.d.ts +137 -0
  67. package/dist/interfaces/index.js +153 -0
  68. package/dist/interfaces/informationSupportInterface.d.ts +2 -2
  69. package/dist/interfaces/inquiryInterface.d.ts +3 -3
  70. package/dist/interfaces/instituteEntityInterface.d.ts +2 -2
  71. package/dist/interfaces/instituteEntityTypeInterface.d.ts +2 -2
  72. package/dist/interfaces/instituteInterface.d.ts +2 -2
  73. package/dist/interfaces/instituteSubscriptionPlanInterface.d.ts +2 -2
  74. package/dist/interfaces/inventoryHistoryInterface.d.ts +2 -2
  75. package/dist/interfaces/inventoryInterface.d.ts +2 -2
  76. package/dist/interfaces/invoiceInterface.d.ts +2 -2
  77. package/dist/interfaces/jobApplyInterface.d.ts +2 -2
  78. package/dist/interfaces/lectureHistoryInterface.d.ts +2 -2
  79. package/dist/interfaces/lectureInterface.d.ts +2 -2
  80. package/dist/interfaces/masterLeaveInterface.d.ts +2 -2
  81. package/dist/interfaces/moduleFeatureInterface.d.ts +2 -2
  82. package/dist/interfaces/moduleInterface.d.ts +2 -2
  83. package/dist/interfaces/offersInterface.d.ts +2 -2
  84. package/dist/interfaces/paymentTermsInterface.d.ts +2 -2
  85. package/dist/interfaces/pdcChequeInterface.d.ts +2 -2
  86. package/dist/interfaces/pdcHistoryInterface.d.ts +2 -2
  87. package/dist/interfaces/photosGalleryInterface.d.ts +2 -2
  88. package/dist/interfaces/pincodeInterface.d.ts +1 -1
  89. package/dist/interfaces/plannerInterface.d.ts +2 -2
  90. package/dist/interfaces/productInterface.d.ts +2 -2
  91. package/dist/interfaces/projectAssessmentOptionInterface.d.ts +1 -1
  92. package/dist/interfaces/replaceTeacherInterface.d.ts +2 -2
  93. package/dist/interfaces/roleInterface.d.ts +4 -4
  94. package/dist/interfaces/rulesRegulationInterface.d.ts +2 -2
  95. package/dist/interfaces/schoolFeeCollectionInterface.d.ts +1 -1
  96. package/dist/interfaces/schoolFeeInterface.d.ts +2 -2
  97. package/dist/interfaces/schoolOfferInterface.d.ts +2 -2
  98. package/dist/interfaces/sendNotificationInerface.d.ts +2 -2
  99. package/dist/interfaces/slotInterface.d.ts +2 -2
  100. package/dist/interfaces/stateInterface.d.ts +1 -1
  101. package/dist/interfaces/subCategoriesInterface.d.ts +2 -2
  102. package/dist/interfaces/subjectHasFeeInterface.d.ts +1 -1
  103. package/dist/interfaces/subjectHasPayFeeHistoryInterface.d.ts +1 -1
  104. package/dist/interfaces/subjectIndexInterface.d.ts +2 -2
  105. package/dist/interfaces/subscriptionPlanInterface.d.ts +2 -2
  106. package/dist/interfaces/syllabusInterface.d.ts +2 -2
  107. package/dist/interfaces/taskManagementInterface.d.ts +2 -2
  108. package/dist/interfaces/testimonialInterface.d.ts +2 -2
  109. package/dist/interfaces/toDoInterface.d.ts +2 -2
  110. package/dist/interfaces/tokenInterface.d.ts +2 -2
  111. package/dist/interfaces/tripInterface.d.ts +2 -2
  112. package/dist/interfaces/typeManagementInterface.d.ts +2 -2
  113. package/dist/interfaces/uniqueNumberCounterInterface.d.ts +2 -2
  114. package/dist/interfaces/userBookAssessmentInterface.d.ts +2 -2
  115. package/dist/interfaces/userDetailsInterface.d.ts +2 -2
  116. package/dist/interfaces/userFeeTypeByAccountInterface.d.ts +2 -2
  117. package/dist/interfaces/userFeeTypeInterface.d.ts +2 -2
  118. package/dist/interfaces/userHasAnnouncementInterface.d.ts +2 -2
  119. package/dist/interfaces/userHasBatchInterface.d.ts +1 -1
  120. package/dist/interfaces/userHasCourseInterface.d.ts +2 -2
  121. package/dist/interfaces/userHasDeviceInterface.d.ts +2 -2
  122. package/dist/interfaces/userHasFeeTermsInterface.d.ts +2 -2
  123. package/dist/interfaces/userHasFileInterface.d.ts +2 -2
  124. package/dist/interfaces/userHasHomeWorkInterface.d.ts +2 -2
  125. package/dist/interfaces/userHasInventoryHistoryInterface.d.ts +2 -2
  126. package/dist/interfaces/userHasInventoryInterface.d.ts +2 -2
  127. package/dist/interfaces/userHasLeaveHistoryInterface.d.ts +2 -2
  128. package/dist/interfaces/userHasLeaveInterface.d.ts +2 -2
  129. package/dist/interfaces/userHasOfferInterface.d.ts +1 -1
  130. package/dist/interfaces/userHasParentInterface.d.ts +2 -2
  131. package/dist/interfaces/userHasRoleInterface.d.ts +2 -2
  132. package/dist/interfaces/userHasRollNumberInterface.d.ts +1 -1
  133. package/dist/interfaces/userHasStorageInterface.d.ts +2 -2
  134. package/dist/interfaces/userHasSubjectFeeInterface.d.ts +1 -1
  135. package/dist/interfaces/userInstituteMetaInterface.d.ts +2 -2
  136. package/dist/interfaces/userInterface.d.ts +2 -2
  137. package/dist/interfaces/userLeaveRequestInterface.d.ts +2 -2
  138. package/dist/interfaces/userMetaInterface.d.ts +2 -2
  139. package/dist/interfaces/userPayoutDetailsInterface.d.ts +2 -2
  140. package/dist/interfaces/userPayoutHistoryInterface.d.ts +2 -2
  141. package/dist/interfaces/userPayoutInterface.d.ts +2 -2
  142. package/dist/interfaces/userProjectAssessmentOptionInterface.d.ts +2 -2
  143. package/dist/interfaces/userRequiredStepsInterface.d.ts +2 -2
  144. package/dist/interfaces/userSchoolMetaInterface.d.ts +2 -2
  145. package/dist/interfaces/vehicleInterface.d.ts +2 -2
  146. package/dist/interfaces/vendorManagementInterface.d.ts +2 -2
  147. package/dist/interfaces/videoAnalystInterface.d.ts +1 -1
  148. package/dist/interfaces/walletHistoryInterface.d.ts +2 -2
  149. package/dist/interfaces/walletInterface.d.ts +2 -2
  150. package/dist/interfaces/walletTransactionInterface.d.ts +3 -3
  151. package/dist/interfaces/workingDayInterface.d.ts +2 -2
  152. package/dist/interfaces/workingShiftInterface.d.ts +2 -2
  153. package/dist/models/mongodb/approvalRequestModel.d.ts +1 -1
  154. package/dist/models/mongodb/approvalRequestModel.js +4 -4
  155. package/dist/models/mongodb/attendanceModel.d.ts +1 -1
  156. package/dist/models/mongodb/attendanceModel.js +23 -23
  157. package/dist/models/mongodb/blogModel.d.ts +1 -1
  158. package/dist/models/mongodb/blogModel.js +3 -3
  159. package/dist/models/mongodb/careerModel.d.ts +1 -1
  160. package/dist/models/mongodb/careerModel.js +3 -3
  161. package/dist/models/mongodb/certificatesHistoryModel.d.ts +1 -1
  162. package/dist/models/mongodb/certificatesManagementModel.d.ts +1 -1
  163. package/dist/models/mongodb/certificatesManagementModel.js +3 -3
  164. package/dist/models/mongodb/columnModel.d.ts +1 -1
  165. package/dist/models/mongodb/columnModel.js +5 -5
  166. package/dist/models/mongodb/dailyBookModel.d.ts +1 -1
  167. package/dist/models/mongodb/dashboardManagementModel.d.ts +1 -1
  168. package/dist/models/mongodb/dashboardManagementModel.js +6 -6
  169. package/dist/models/mongodb/eventModel.d.ts +1 -1
  170. package/dist/models/mongodb/eventModel.js +15 -15
  171. package/dist/models/mongodb/examGroupModel.d.ts +1 -1
  172. package/dist/models/mongodb/examGroupModel.js +18 -18
  173. package/dist/models/mongodb/examHasAnswerSheetModel.d.ts +1 -1
  174. package/dist/models/mongodb/examHasAnswerSheetModel.js +12 -12
  175. package/dist/models/mongodb/examModel.d.ts +1 -1
  176. package/dist/models/mongodb/examModel.js +28 -28
  177. package/dist/models/mongodb/feeReminderTypeModel.d.ts +1 -1
  178. package/dist/models/mongodb/feeReminderTypeModel.js +3 -3
  179. package/dist/models/mongodb/feedBackModel.d.ts +1 -1
  180. package/dist/models/mongodb/feedBackModel.js +3 -3
  181. package/dist/models/mongodb/generateIdCardModel.d.ts +1 -1
  182. package/dist/models/mongodb/holidayModel.d.ts +1 -1
  183. package/dist/models/mongodb/holidayModel.js +15 -15
  184. package/dist/models/mongodb/index.d.ts +36 -2
  185. package/dist/models/mongodb/index.js +60 -10
  186. package/dist/models/mongodb/informationSupportModel.d.ts +1 -1
  187. package/dist/models/mongodb/informationSupportModel.js +2 -2
  188. package/dist/models/mongodb/inquiryModel.d.ts +1 -1
  189. package/dist/models/mongodb/inquiryModel.js +18 -18
  190. package/dist/models/mongodb/invoiceModel.d.ts +1 -1
  191. package/dist/models/mongodb/invoiceModel.js +7 -7
  192. package/dist/models/mongodb/jobApplyModel.d.ts +1 -1
  193. package/dist/models/mongodb/jobApplyModel.js +7 -7
  194. package/dist/models/mongodb/photosGalleryModel.d.ts +1 -1
  195. package/dist/models/mongodb/photosGalleryModel.js +6 -6
  196. package/dist/models/mongodb/plannerModel.d.ts +1 -1
  197. package/dist/models/mongodb/plannerModel.js +3 -3
  198. package/dist/models/mongodb/replaceTeacherModel.d.ts +1 -1
  199. package/dist/models/mongodb/replaceTeacherModel.js +6 -6
  200. package/dist/models/mongodb/schoolFeeModel.d.ts +1 -1
  201. package/dist/models/mongodb/schoolFeeModel.js +12 -12
  202. package/dist/models/mongodb/subjectIndexModel.d.ts +1 -1
  203. package/dist/models/mongodb/subjectIndexModel.js +88 -88
  204. package/dist/models/mongodb/subscriptionPlanModel.d.ts +1 -1
  205. package/dist/models/mongodb/subscriptionPlanModel.js +6 -6
  206. package/dist/models/mongodb/taskManagementModel.d.ts +1 -1
  207. package/dist/models/mongodb/taskManagementModel.js +10 -10
  208. package/dist/models/mongodb/uniqueNumberCounterModel.d.ts +1 -1
  209. package/dist/models/mongodb/uniqueNumberCounterModel.js +3 -3
  210. package/dist/models/mongodb/userDetailsModel.d.ts +1 -1
  211. package/dist/models/mongodb/userDetailsModel.js +19 -19
  212. package/dist/models/mongodb/userInstituteMetaModel.d.ts +1 -1
  213. package/dist/models/mongodb/userInstituteMetaModel.js +14 -14
  214. package/dist/models/mongodb/userSchoolMetaModel.d.ts +1 -1
  215. package/dist/models/mongodb/userSchoolMetaModel.js +30 -30
  216. package/dist/models/mongodb/videoAnalystModel.d.ts +1 -1
  217. package/dist/models/mongodb/walletTransactionModel.d.ts +1 -1
  218. package/dist/models/mongodb/walletTransactionModel.js +12 -12
  219. package/dist/models/psql/SubCategoriesModel.d.ts +3 -3
  220. package/dist/models/psql/SubCategoriesModel.js +14 -14
  221. package/dist/models/psql/academicCalendarModel.d.ts +3 -3
  222. package/dist/models/psql/academicCalendarModel.js +13 -13
  223. package/dist/models/psql/accountHasReceiptDetailsModel.d.ts +2 -2
  224. package/dist/models/psql/accountHasReceiptDetailsModel.js +15 -15
  225. package/dist/models/psql/announcementModel.d.ts +3 -3
  226. package/dist/models/psql/announcementModel.js +30 -30
  227. package/dist/models/psql/areaModel.d.ts +2 -2
  228. package/dist/models/psql/areaModel.js +5 -5
  229. package/dist/models/psql/bankAccountDetailsModel.d.ts +3 -3
  230. package/dist/models/psql/bankAccountDetailsModel.js +16 -16
  231. package/dist/models/psql/bannerModel.d.ts +3 -3
  232. package/dist/models/psql/bannerModel.js +20 -20
  233. package/dist/models/psql/batchModel.d.ts +3 -3
  234. package/dist/models/psql/batchModel.js +27 -27
  235. package/dist/models/psql/batchSubjectBookAssessmentModel.d.ts +2 -2
  236. package/dist/models/psql/batchSubjectBookAssessmentModel.js +20 -20
  237. package/dist/models/psql/batchSubjectProjectAssessmentModel.d.ts +2 -2
  238. package/dist/models/psql/batchSubjectProjectAssessmentModel.js +17 -17
  239. package/dist/models/psql/bookAssessmentDateModel.d.ts +3 -3
  240. package/dist/models/psql/bookAssessmentDateModel.js +12 -12
  241. package/dist/models/psql/categoriesModel.d.ts +3 -3
  242. package/dist/models/psql/categoriesModel.js +11 -11
  243. package/dist/models/psql/cityModel.d.ts +1 -1
  244. package/dist/models/psql/cityModel.js +8 -8
  245. package/dist/models/psql/classRoomModel.d.ts +3 -3
  246. package/dist/models/psql/classRoomModel.js +18 -18
  247. package/dist/models/psql/cloudStorageModel.d.ts +3 -3
  248. package/dist/models/psql/cloudStorageModel.js +10 -10
  249. package/dist/models/psql/coinPurchaseOfferModel.d.ts +3 -3
  250. package/dist/models/psql/coinPurchaseOfferModel.js +10 -10
  251. package/dist/models/psql/contactFeedBackModel.d.ts +3 -3
  252. package/dist/models/psql/contactFeedBackModel.js +16 -16
  253. package/dist/models/psql/countryModel.d.ts +1 -1
  254. package/dist/models/psql/countryModel.js +2 -2
  255. package/dist/models/psql/courseHasVisitorsModel.d.ts +2 -2
  256. package/dist/models/psql/courseHasVisitorsModel.js +9 -9
  257. package/dist/models/psql/courseModel.d.ts +3 -3
  258. package/dist/models/psql/courseModel.js +18 -18
  259. package/dist/models/psql/driverModel.d.ts +3 -3
  260. package/dist/models/psql/driverModel.js +25 -25
  261. package/dist/models/psql/entityGroupModel.d.ts +3 -3
  262. package/dist/models/psql/entityGroupModel.js +12 -12
  263. package/dist/models/psql/facilityModel.d.ts +3 -3
  264. package/dist/models/psql/facilityModel.js +20 -20
  265. package/dist/models/psql/featureActionModel.d.ts +3 -3
  266. package/dist/models/psql/featureActionModel.js +10 -10
  267. package/dist/models/psql/feeHistoryDetailsModel.d.ts +3 -3
  268. package/dist/models/psql/feeHistoryDetailsModel.js +23 -23
  269. package/dist/models/psql/feeHistoryModel.d.ts +3 -3
  270. package/dist/models/psql/feeHistoryModel.js +49 -49
  271. package/dist/models/psql/feeReminderModel.d.ts +2 -2
  272. package/dist/models/psql/feeReminderModel.js +41 -41
  273. package/dist/models/psql/feeReminderSettingModel.d.ts +3 -3
  274. package/dist/models/psql/feeReminderSettingModel.js +14 -14
  275. package/dist/models/psql/feeTypeHasTermsModel.d.ts +3 -3
  276. package/dist/models/psql/feeTypeHasTermsModel.js +14 -14
  277. package/dist/models/psql/feeTypeModel.d.ts +3 -3
  278. package/dist/models/psql/feeTypeModel.js +24 -24
  279. package/dist/models/psql/feesCollectionModel.d.ts +3 -3
  280. package/dist/models/psql/feesCollectionModel.js +30 -30
  281. package/dist/models/psql/fileStorageModel.d.ts +2 -2
  282. package/dist/models/psql/fileStorageModel.js +8 -8
  283. package/dist/models/psql/floorManagementModel.d.ts +3 -3
  284. package/dist/models/psql/floorManagementModel.js +11 -11
  285. package/dist/models/psql/greetingsModel.d.ts +3 -3
  286. package/dist/models/psql/greetingsModel.js +17 -17
  287. package/dist/models/psql/homeWorkModel.d.ts +3 -3
  288. package/dist/models/psql/homeWorkModel.js +18 -18
  289. package/dist/models/psql/index.d.ts +101 -0
  290. package/dist/models/psql/index.js +106 -2
  291. package/dist/models/psql/instituteEntityModel.d.ts +3 -3
  292. package/dist/models/psql/instituteEntityModel.js +14 -14
  293. package/dist/models/psql/instituteEntityTypeModel.d.ts +3 -3
  294. package/dist/models/psql/instituteEntityTypeModel.js +10 -10
  295. package/dist/models/psql/instituteModel.d.ts +3 -3
  296. package/dist/models/psql/instituteModel.js +30 -30
  297. package/dist/models/psql/instituteSubscriptionPlanModel.d.ts +3 -3
  298. package/dist/models/psql/instituteSubscriptionPlanModel.js +16 -16
  299. package/dist/models/psql/inventoryHistoryModel.d.ts +3 -3
  300. package/dist/models/psql/inventoryHistoryModel.js +20 -20
  301. package/dist/models/psql/inventoryModel.d.ts +3 -3
  302. package/dist/models/psql/inventoryModel.js +16 -16
  303. package/dist/models/psql/lectureHistoryModel.d.ts +3 -3
  304. package/dist/models/psql/lectureHistoryModel.js +33 -33
  305. package/dist/models/psql/lectureModel.d.ts +3 -3
  306. package/dist/models/psql/lectureModel.js +74 -74
  307. package/dist/models/psql/masterLeaveModel.d.ts +3 -3
  308. package/dist/models/psql/masterLeaveModel.js +23 -23
  309. package/dist/models/psql/moduleFeatureModel.d.ts +3 -3
  310. package/dist/models/psql/moduleFeatureModel.js +12 -12
  311. package/dist/models/psql/moduleModel.d.ts +3 -3
  312. package/dist/models/psql/moduleModel.js +14 -14
  313. package/dist/models/psql/offerModel.d.ts +3 -3
  314. package/dist/models/psql/offerModel.js +16 -16
  315. package/dist/models/psql/paymentTermsModel.d.ts +2 -2
  316. package/dist/models/psql/paymentTermsModel.js +15 -15
  317. package/dist/models/psql/pdcChequeModel.d.ts +3 -3
  318. package/dist/models/psql/pdcChequeModel.js +19 -19
  319. package/dist/models/psql/pdcHistoryModel.d.ts +3 -3
  320. package/dist/models/psql/pdcHistoryModel.js +22 -22
  321. package/dist/models/psql/pincodeModel.d.ts +1 -1
  322. package/dist/models/psql/pincodeModel.js +8 -8
  323. package/dist/models/psql/productModel.d.ts +3 -3
  324. package/dist/models/psql/productModel.js +17 -17
  325. package/dist/models/psql/projectAssessmentOptionModel.d.ts +2 -2
  326. package/dist/models/psql/projectAssessmentOptionModel.js +9 -9
  327. package/dist/models/psql/roleModel.d.ts +3 -3
  328. package/dist/models/psql/roleModel.js +9 -9
  329. package/dist/models/psql/rulesRegulationModel.d.ts +3 -3
  330. package/dist/models/psql/rulesRegulationModel.js +8 -8
  331. package/dist/models/psql/schoolFeeCollectionModel.d.ts +2 -2
  332. package/dist/models/psql/schoolFeeCollectionModel.js +14 -14
  333. package/dist/models/psql/schoolOfferModel.d.ts +3 -3
  334. package/dist/models/psql/schoolOfferModel.js +18 -18
  335. package/dist/models/psql/sendNotificationModel.d.ts +3 -3
  336. package/dist/models/psql/sendNotificationModel.js +14 -14
  337. package/dist/models/psql/slotModel.d.ts +3 -3
  338. package/dist/models/psql/slotModel.js +14 -14
  339. package/dist/models/psql/stateModel.d.ts +1 -1
  340. package/dist/models/psql/stateModel.js +5 -5
  341. package/dist/models/psql/subjectHasFeeModel.d.ts +2 -2
  342. package/dist/models/psql/subjectHasFeeModel.js +12 -12
  343. package/dist/models/psql/subjectHasPayFeeHistoryModel.d.ts +2 -2
  344. package/dist/models/psql/subjectHasPayFeeHistoryModel.js +17 -17
  345. package/dist/models/psql/syllabusModel.d.ts +3 -3
  346. package/dist/models/psql/syllabusModel.js +17 -17
  347. package/dist/models/psql/testimonialModel.d.ts +3 -3
  348. package/dist/models/psql/testimonialModel.js +31 -31
  349. package/dist/models/psql/toDoModel.d.ts +3 -3
  350. package/dist/models/psql/toDoModel.js +19 -19
  351. package/dist/models/psql/tokenModel.d.ts +2 -2
  352. package/dist/models/psql/tokenModel.js +2 -2
  353. package/dist/models/psql/tripModel.d.ts +3 -3
  354. package/dist/models/psql/tripModel.js +16 -16
  355. package/dist/models/psql/typeManagementModel.d.ts +3 -3
  356. package/dist/models/psql/typeManagementModel.js +16 -16
  357. package/dist/models/psql/userBookAssessmentModel.d.ts +3 -3
  358. package/dist/models/psql/userBookAssessmentModel.js +20 -20
  359. package/dist/models/psql/userFeeTypeByAccountModel.d.ts +2 -2
  360. package/dist/models/psql/userFeeTypeByAccountModel.js +22 -22
  361. package/dist/models/psql/userFeeTypeModel.d.ts +3 -3
  362. package/dist/models/psql/userFeeTypeModel.js +23 -23
  363. package/dist/models/psql/userHasAnnouncementModel.d.ts +3 -3
  364. package/dist/models/psql/userHasAnnouncementModel.js +17 -17
  365. package/dist/models/psql/userHasBatchModel.d.ts +2 -2
  366. package/dist/models/psql/userHasBatchModel.js +11 -11
  367. package/dist/models/psql/userHasCourseModel.d.ts +3 -3
  368. package/dist/models/psql/userHasCourseModel.js +17 -17
  369. package/dist/models/psql/userHasDeviceModel.d.ts +3 -3
  370. package/dist/models/psql/userHasDeviceModel.js +11 -11
  371. package/dist/models/psql/userHasFeeTermsModel.d.ts +3 -3
  372. package/dist/models/psql/userHasFeeTermsModel.js +23 -23
  373. package/dist/models/psql/userHasFileModel.d.ts +2 -2
  374. package/dist/models/psql/userHasFileModel.js +15 -15
  375. package/dist/models/psql/userHasHomeWorkModel.d.ts +3 -3
  376. package/dist/models/psql/userHasHomeWorkModel.js +20 -20
  377. package/dist/models/psql/userHasInventoryHistoryModel.d.ts +3 -3
  378. package/dist/models/psql/userHasInventoryHistoryModel.js +16 -16
  379. package/dist/models/psql/userHasInventoryModel.d.ts +3 -3
  380. package/dist/models/psql/userHasInventoryModel.js +19 -19
  381. package/dist/models/psql/userHasLeaveHistoryModel.d.ts +3 -3
  382. package/dist/models/psql/userHasLeaveHistoryModel.js +20 -20
  383. package/dist/models/psql/userHasLeaveModel.d.ts +3 -3
  384. package/dist/models/psql/userHasLeaveModel.js +17 -17
  385. package/dist/models/psql/userHasOfferModel.d.ts +2 -2
  386. package/dist/models/psql/userHasOfferModel.js +20 -20
  387. package/dist/models/psql/userHasParentModel.d.ts +3 -3
  388. package/dist/models/psql/userHasParentModel.js +12 -12
  389. package/dist/models/psql/userHasRoleModel.d.ts +3 -3
  390. package/dist/models/psql/userHasRoleModel.js +13 -13
  391. package/dist/models/psql/userHasRollNumberModel.d.ts +2 -2
  392. package/dist/models/psql/userHasRollNumberModel.js +14 -14
  393. package/dist/models/psql/userHasStorageModel.d.ts +3 -3
  394. package/dist/models/psql/userHasStorageModel.js +11 -11
  395. package/dist/models/psql/userHasSubjectFeeModel.d.ts +2 -2
  396. package/dist/models/psql/userHasSubjectFeeModel.js +12 -12
  397. package/dist/models/psql/userLeaveRequestModel.d.ts +3 -3
  398. package/dist/models/psql/userLeaveRequestModel.js +23 -23
  399. package/dist/models/psql/userModel.d.ts +3 -3
  400. package/dist/models/psql/userModel.js +43 -43
  401. package/dist/models/psql/userPayoutDetailsModel.d.ts +3 -3
  402. package/dist/models/psql/userPayoutDetailsModel.js +22 -22
  403. package/dist/models/psql/userPayoutHistoryModel.d.ts +3 -3
  404. package/dist/models/psql/userPayoutHistoryModel.js +17 -17
  405. package/dist/models/psql/userPayoutModel.d.ts +3 -3
  406. package/dist/models/psql/userPayoutModel.js +31 -31
  407. package/dist/models/psql/userProjectAssessmentOptionModel.d.ts +3 -3
  408. package/dist/models/psql/userProjectAssessmentOptionModel.js +17 -17
  409. package/dist/models/psql/userRequiredStepsModel.d.ts +2 -2
  410. package/dist/models/psql/userRequiredStepsModel.js +8 -8
  411. package/dist/models/psql/vehicleModel.d.ts +3 -3
  412. package/dist/models/psql/vehicleModel.js +14 -14
  413. package/dist/models/psql/vendorManagementModel.d.ts +3 -3
  414. package/dist/models/psql/vendorManagementModel.js +20 -20
  415. package/dist/models/psql/walletHistoryModel.d.ts +3 -3
  416. package/dist/models/psql/walletHistoryModel.js +13 -13
  417. package/dist/models/psql/walletModel.d.ts +3 -3
  418. package/dist/models/psql/walletModel.js +10 -10
  419. package/dist/models/psql/workingDayModel.d.ts +3 -3
  420. package/dist/models/psql/workingDayModel.js +8 -8
  421. package/dist/models/psql/workingShiftModel.d.ts +3 -3
  422. package/dist/models/psql/workingShiftModel.js +17 -17
  423. package/dist/services/Concrete/mongooseCommonService.d.ts +2 -2
  424. package/dist/services/Concrete/mongooseCommonService.js +4 -4
  425. package/dist/services/Concrete/sequelizeCommonService.d.ts +2 -2
  426. package/dist/services/Concrete/sequelizeCommonService.js +5 -5
  427. package/dist/services/Contracts/IMongooseCommonService.d.ts +1 -1
  428. package/dist/services/Contracts/ISequelizeCommonService.d.ts +1 -1
  429. package/dist/types/academicCalendarType.d.ts +1 -1
  430. package/dist/types/accountHasReceiptDetailsType.d.ts +2 -2
  431. package/dist/types/announcementType.d.ts +1 -1
  432. package/dist/types/approveRequestType.d.ts +1 -1
  433. package/dist/types/areaType.d.ts +1 -1
  434. package/dist/types/attendanceType.d.ts +1 -1
  435. package/dist/types/bankAccountDetailsType.d.ts +1 -1
  436. package/dist/types/bannerType.d.ts +2 -2
  437. package/dist/types/batchSubjectBookAssessmentType.d.ts +2 -2
  438. package/dist/types/batchSubjectProjectAssessmentType.d.ts +2 -2
  439. package/dist/types/batchType.d.ts +2 -2
  440. package/dist/types/blogType.d.ts +1 -1
  441. package/dist/types/bookAssessmentDateType.d.ts +2 -2
  442. package/dist/types/careerType.d.ts +1 -1
  443. package/dist/types/categoriesType.d.ts +1 -1
  444. package/dist/types/certificatesHistoryType.d.ts +1 -1
  445. package/dist/types/certificatesManagementType.d.ts +1 -1
  446. package/dist/types/classRoomType.d.ts +1 -1
  447. package/dist/types/cloudStorageType.d.ts +1 -1
  448. package/dist/types/coinPurchaseOfferType.d.ts +1 -1
  449. package/dist/types/contactFeedBackType.d.ts +1 -1
  450. package/dist/types/courseHasVisitorsType.d.ts +1 -1
  451. package/dist/types/courseType.d.ts +1 -1
  452. package/dist/types/dailyBookType.d.ts +1 -1
  453. package/dist/types/dashboardManagementType.d.ts +1 -1
  454. package/dist/types/driverType.d.ts +2 -2
  455. package/dist/types/entityGroupType.d.ts +1 -1
  456. package/dist/types/eventType.d.ts +1 -1
  457. package/dist/types/examGroupType.d.ts +1 -1
  458. package/dist/types/examHasAnswerSheetType.d.ts +1 -1
  459. package/dist/types/examType.d.ts +2 -2
  460. package/dist/types/facilityType.d.ts +1 -1
  461. package/dist/types/featureActionType.d.ts +1 -1
  462. package/dist/types/feeHistoryDetailsType.d.ts +2 -2
  463. package/dist/types/feeHistoryType.d.ts +3 -3
  464. package/dist/types/feeReminderSettingType.d.ts +1 -1
  465. package/dist/types/feeReminderType.d.ts +1 -1
  466. package/dist/types/feeReminderTypeType.d.ts +1 -1
  467. package/dist/types/feeTypeHasTermsType.d.ts +1 -1
  468. package/dist/types/feeTypeType.d.ts +1 -1
  469. package/dist/types/feedBackType.d.ts +1 -1
  470. package/dist/types/feesCollectionType.d.ts +1 -1
  471. package/dist/types/fileStorageType.d.ts +1 -1
  472. package/dist/types/floormanagementType.d.ts +1 -1
  473. package/dist/types/generateIdCardType.d.ts +1 -1
  474. package/dist/types/greetingsType.d.ts +2 -2
  475. package/dist/types/holidayType.d.ts +1 -1
  476. package/dist/types/homeWorkType.d.ts +1 -1
  477. package/dist/types/index.d.ts +129 -0
  478. package/dist/types/index.js +145 -0
  479. package/dist/types/informationSupportType.d.ts +1 -1
  480. package/dist/types/inquiryType.d.ts +1 -1
  481. package/dist/types/instituteEntityType.d.ts +1 -1
  482. package/dist/types/instituteEntityTypeType.d.ts +1 -1
  483. package/dist/types/instituteSubscriptionPlanType.d.ts +1 -1
  484. package/dist/types/instituteType.d.ts +1 -1
  485. package/dist/types/inventoryHistoryType.d.ts +1 -1
  486. package/dist/types/inventoryType.d.ts +1 -1
  487. package/dist/types/jobApply.d.ts +1 -1
  488. package/dist/types/lectureHistoryType.d.ts +2 -2
  489. package/dist/types/lectureType.d.ts +2 -2
  490. package/dist/types/masterLeaveType.d.ts +1 -1
  491. package/dist/types/moduleFeatureType.d.ts +1 -1
  492. package/dist/types/moduleType.d.ts +1 -1
  493. package/dist/types/offerType.d.ts +1 -1
  494. package/dist/types/paymentTermsType.d.ts +1 -1
  495. package/dist/types/pdcChequeType.d.ts +2 -2
  496. package/dist/types/pdcHistoryType.d.ts +1 -1
  497. package/dist/types/photosGalleryType.d.ts +1 -1
  498. package/dist/types/plannerType.d.ts +1 -1
  499. package/dist/types/productType.d.ts +1 -1
  500. package/dist/types/projectAssessmentOptionType.d.ts +2 -2
  501. package/dist/types/roleType.d.ts +4 -4
  502. package/dist/types/rulesRegulationType.d.ts +1 -1
  503. package/dist/types/schoolFeeCollectionType.d.ts +1 -1
  504. package/dist/types/schoolFeeType.d.ts +1 -1
  505. package/dist/types/schoolOfferType.d.ts +1 -1
  506. package/dist/types/sendNotificationType.d.ts +1 -1
  507. package/dist/types/slotType.d.ts +1 -1
  508. package/dist/types/subCategoryType.d.ts +1 -1
  509. package/dist/types/subjectHasFeeType.d.ts +1 -1
  510. package/dist/types/subjectHasPayFeeHistoryType.d.ts +1 -1
  511. package/dist/types/subjectIndexType.d.ts +2 -2
  512. package/dist/types/subscriptionPlanType.d.ts +1 -1
  513. package/dist/types/syllabusType.d.ts +2 -2
  514. package/dist/types/taskManagementType.d.ts +1 -1
  515. package/dist/types/testimonialType.d.ts +2 -2
  516. package/dist/types/toDoType.d.ts +2 -2
  517. package/dist/types/tripType.d.ts +1 -1
  518. package/dist/types/typeManagementType.d.ts +1 -1
  519. package/dist/types/uniqueNumberCounterType.d.ts +1 -1
  520. package/dist/types/userBookAssessmentType.d.ts +2 -2
  521. package/dist/types/userDetailsType.d.ts +1 -1
  522. package/dist/types/userFeeTypeByAccountType.d.ts +1 -1
  523. package/dist/types/userFeeTypeType.d.ts +1 -1
  524. package/dist/types/userHasAnnouncementType.d.ts +1 -1
  525. package/dist/types/userHasBatchType.d.ts +3 -3
  526. package/dist/types/userHasCourseType.d.ts +1 -1
  527. package/dist/types/userHasDeviceType.d.ts +1 -1
  528. package/dist/types/userHasFeeTermsType.d.ts +1 -1
  529. package/dist/types/userHasFileType.d.ts +1 -1
  530. package/dist/types/userHasHomeWorkType.d.ts +1 -1
  531. package/dist/types/userHasInventoryHistoryType.d.ts +1 -1
  532. package/dist/types/userHasInventoryType.d.ts +1 -1
  533. package/dist/types/userHasLeaveHistoryType.d.ts +1 -1
  534. package/dist/types/userHasLeaveType.d.ts +1 -1
  535. package/dist/types/userHasOffer.d.ts +1 -1
  536. package/dist/types/userHasParentType.d.ts +1 -1
  537. package/dist/types/userHasRoleType.d.ts +1 -1
  538. package/dist/types/userHasRollNumberType.d.ts +1 -1
  539. package/dist/types/userHasStorageType.d.ts +1 -1
  540. package/dist/types/userHasSubjectFeeType.d.ts +1 -1
  541. package/dist/types/userInstituteMetaType.d.ts +1 -1
  542. package/dist/types/userLeaveRequestType.d.ts +1 -1
  543. package/dist/types/userMetaType.d.ts +2 -2
  544. package/dist/types/userPayoutDetailsType.d.ts +1 -1
  545. package/dist/types/userPayoutHistoryType.d.ts +1 -1
  546. package/dist/types/userPayoutType.d.ts +2 -2
  547. package/dist/types/userProjectAssessmentOptionType.d.ts +2 -2
  548. package/dist/types/userRequiredStepsType.d.ts +1 -1
  549. package/dist/types/userSchoolMetaType.d.ts +1 -1
  550. package/dist/types/userType.d.ts +3 -3
  551. package/dist/types/vehicleType.d.ts +1 -1
  552. package/dist/types/vendorType.d.ts +1 -1
  553. package/dist/types/videoAnalystType.d.ts +1 -1
  554. package/dist/types/walletHistoryType.d.ts +1 -1
  555. package/dist/types/walletTransactionType.d.ts +1 -1
  556. package/dist/types/walletType.d.ts +1 -1
  557. package/dist/types/workingDayType.d.ts +1 -1
  558. package/dist/types/workingShiftType.d.ts +1 -1
  559. package/package.json +2 -3
  560. /package/dist/interfaces/{commanInterface.d.ts → commonInterface.d.ts} +0 -0
  561. /package/dist/interfaces/{commanInterface.js → commonInterface.js} +0 -0
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const sequelize_1 = require("sequelize");
7
- const index_js_1 = require("./index.js");
8
- const userModel_js_1 = __importDefault(require("./userModel.js"));
9
- const walletModel_js_1 = __importDefault(require("./walletModel.js"));
7
+ const index_1 = require("./index");
8
+ const userModel_1 = __importDefault(require("./userModel"));
9
+ const walletModel_1 = __importDefault(require("./walletModel"));
10
10
  class UserHasStorageModel extends sequelize_1.Model {
11
11
  }
12
12
  UserHasStorageModel.init({
@@ -51,35 +51,35 @@ UserHasStorageModel.init({
51
51
  modelName: 'UserHasStorageModel',
52
52
  tableName: 'user_has_storage',
53
53
  timestamps: true,
54
- sequelize: index_js_1.sequelize,
54
+ sequelize: index_1.sequelize,
55
55
  });
56
56
  // Associations
57
- UserHasStorageModel.belongsTo(userModel_js_1.default, {
57
+ UserHasStorageModel.belongsTo(userModel_1.default, {
58
58
  foreignKey: { name: 'userId', allowNull: false, field: 'user_id' },
59
59
  as: 'user',
60
60
  });
61
- userModel_js_1.default.hasMany(UserHasStorageModel, {
61
+ userModel_1.default.hasMany(UserHasStorageModel, {
62
62
  foreignKey: { name: 'userId', allowNull: false, field: 'user_id' },
63
63
  as: 'userStorageList',
64
64
  });
65
- UserHasStorageModel.belongsTo(walletModel_js_1.default, {
65
+ UserHasStorageModel.belongsTo(walletModel_1.default, {
66
66
  foreignKey: { name: 'walletId', allowNull: false, field: 'wallet_id' },
67
67
  as: 'wallet',
68
68
  });
69
- walletModel_js_1.default.hasMany(UserHasStorageModel, {
69
+ walletModel_1.default.hasMany(UserHasStorageModel, {
70
70
  foreignKey: { name: 'walletId', allowNull: false, field: 'wallet_id' },
71
71
  as: 'walletStorageList',
72
72
  });
73
73
  // Created/Updated/Deleted By associations
74
- UserHasStorageModel.belongsTo(userModel_js_1.default, {
74
+ UserHasStorageModel.belongsTo(userModel_1.default, {
75
75
  foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
76
76
  as: 'createdByUser',
77
77
  });
78
- UserHasStorageModel.belongsTo(userModel_js_1.default, {
78
+ UserHasStorageModel.belongsTo(userModel_1.default, {
79
79
  foreignKey: { name: 'updatedBy', allowNull: true, field: 'updated_by' },
80
80
  as: 'updatedByUser',
81
81
  });
82
- UserHasStorageModel.belongsTo(userModel_js_1.default, {
82
+ UserHasStorageModel.belongsTo(userModel_1.default, {
83
83
  foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
84
84
  as: 'deletedByUser',
85
85
  });
@@ -1,6 +1,6 @@
1
1
  import { Model } from 'sequelize';
2
- import { IUserHasSubjectFeeModelAttributes } from '../../interfaces/userHasSubjectFeeInterface.js';
3
- import { TUserHasSubjectFeeModelCreationAttributes } from '../../types/userHasSubjectFeeType.js';
2
+ import { IUserHasSubjectFeeModelAttributes } from '../../interfaces/userHasSubjectFeeInterface';
3
+ import { TUserHasSubjectFeeModelCreationAttributes } from '../../types/userHasSubjectFeeType';
4
4
  declare class UserHasSubjectFeeModel extends Model<IUserHasSubjectFeeModelAttributes, TUserHasSubjectFeeModelCreationAttributes> {
5
5
  id: string;
6
6
  instituteId: string;
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const sequelize_1 = require("sequelize");
7
- const index_js_1 = require("./index.js");
8
- const instituteModel_js_1 = __importDefault(require("./instituteModel.js"));
9
- const userModel_js_1 = __importDefault(require("./userModel.js"));
10
- const instituteEntityModel_js_1 = __importDefault(require("./instituteEntityModel.js"));
7
+ const index_1 = require("./index");
8
+ const instituteModel_1 = __importDefault(require("./instituteModel"));
9
+ const userModel_1 = __importDefault(require("./userModel"));
10
+ const instituteEntityModel_1 = __importDefault(require("./instituteEntityModel"));
11
11
  class UserHasSubjectFeeModel extends sequelize_1.Model {
12
12
  }
13
13
  UserHasSubjectFeeModel.init({
@@ -41,25 +41,25 @@ UserHasSubjectFeeModel.init({
41
41
  modelName: 'userHasSubjectFee',
42
42
  tableName: 'user_has_subject_fee',
43
43
  timestamps: true,
44
- sequelize: index_js_1.sequelize,
44
+ sequelize: index_1.sequelize,
45
45
  });
46
- UserHasSubjectFeeModel.belongsTo(instituteModel_js_1.default, {
46
+ UserHasSubjectFeeModel.belongsTo(instituteModel_1.default, {
47
47
  foreignKey: {
48
48
  name: 'instituteId',
49
49
  field: 'institute_id',
50
50
  },
51
51
  as: 'userHasFeeInstitute',
52
52
  });
53
- instituteModel_js_1.default.hasMany(UserHasSubjectFeeModel, { foreignKey: 'instituteId', as: 'instituteHasUserSubject' });
54
- UserHasSubjectFeeModel.belongsTo(instituteEntityModel_js_1.default, {
53
+ instituteModel_1.default.hasMany(UserHasSubjectFeeModel, { foreignKey: 'instituteId', as: 'instituteHasUserSubject' });
54
+ UserHasSubjectFeeModel.belongsTo(instituteEntityModel_1.default, {
55
55
  foreignKey: {
56
56
  name: 'subjectId',
57
57
  field: 'subject_id',
58
58
  },
59
59
  as: 'subjectHasUserFee',
60
60
  });
61
- instituteEntityModel_js_1.default.hasMany(UserHasSubjectFeeModel, { foreignKey: 'subjectId', as: 'userFeeHasSubject' });
62
- UserHasSubjectFeeModel.belongsTo(userModel_js_1.default, {
61
+ instituteEntityModel_1.default.hasMany(UserHasSubjectFeeModel, { foreignKey: 'subjectId', as: 'userFeeHasSubject' });
62
+ UserHasSubjectFeeModel.belongsTo(userModel_1.default, {
63
63
  foreignKey: {
64
64
  name: 'createdBy',
65
65
  allowNull: true,
@@ -67,7 +67,7 @@ UserHasSubjectFeeModel.belongsTo(userModel_js_1.default, {
67
67
  },
68
68
  as: 'createdByUser',
69
69
  });
70
- UserHasSubjectFeeModel.belongsTo(userModel_js_1.default, {
70
+ UserHasSubjectFeeModel.belongsTo(userModel_1.default, {
71
71
  foreignKey: {
72
72
  name: 'updatedBy',
73
73
  allowNull: true,
@@ -75,7 +75,7 @@ UserHasSubjectFeeModel.belongsTo(userModel_js_1.default, {
75
75
  },
76
76
  as: 'updatedByUser',
77
77
  });
78
- UserHasSubjectFeeModel.belongsTo(userModel_js_1.default, {
78
+ UserHasSubjectFeeModel.belongsTo(userModel_1.default, {
79
79
  foreignKey: {
80
80
  name: 'deletedBy',
81
81
  allowNull: true,
@@ -1,7 +1,7 @@
1
1
  import { Model } from 'sequelize';
2
- import { IUserLeaveRequestModelAttributes } from '../../interfaces/userLeaveRequestInterface.js';
3
- import { TUserLeaveRequestModelCreationAttributes } from '../../types/userLeaveRequestType.js';
4
- import { LEAVE, LEAVE_STATUS, LEAVE_TYPE } from '../../constants/app.js';
2
+ import { IUserLeaveRequestModelAttributes } from '../../interfaces/userLeaveRequestInterface';
3
+ import { TUserLeaveRequestModelCreationAttributes } from '../../types/userLeaveRequestType';
4
+ import { LEAVE, LEAVE_STATUS, LEAVE_TYPE } from '../../constants/app';
5
5
  declare class UserLeaveRequestModel extends Model<IUserLeaveRequestModelAttributes, TUserLeaveRequestModelCreationAttributes> {
6
6
  id: string;
7
7
  userId: string;
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const sequelize_1 = require("sequelize");
7
- const index_js_1 = require("./index.js");
8
- const instituteModel_js_1 = __importDefault(require("./instituteModel.js"));
9
- const userModel_js_1 = __importDefault(require("./userModel.js"));
10
- const app_js_1 = require("../../constants/app.js");
11
- const masterLeaveModel_js_1 = __importDefault(require("./masterLeaveModel.js"));
12
- const userHasLeaveModel_js_1 = __importDefault(require("./userHasLeaveModel.js"));
7
+ const index_1 = require("./index");
8
+ const instituteModel_1 = __importDefault(require("./instituteModel"));
9
+ const userModel_1 = __importDefault(require("./userModel"));
10
+ const app_1 = require("../../constants/app");
11
+ const masterLeaveModel_1 = __importDefault(require("./masterLeaveModel"));
12
+ const userHasLeaveModel_1 = __importDefault(require("./userHasLeaveModel"));
13
13
  class UserLeaveRequestModel extends sequelize_1.Model {
14
14
  }
15
15
  UserLeaveRequestModel.init({
@@ -28,8 +28,8 @@ UserLeaveRequestModel.init({
28
28
  },
29
29
  leave: {
30
30
  type: sequelize_1.DataTypes.ENUM,
31
- values: Object.values(app_js_1.LEAVE),
32
- defaultValue: app_js_1.LEAVE.PAID,
31
+ values: Object.values(app_1.LEAVE),
32
+ defaultValue: app_1.LEAVE.PAID,
33
33
  allowNull: false,
34
34
  },
35
35
  instituteId: {
@@ -46,13 +46,13 @@ UserLeaveRequestModel.init({
46
46
  },
47
47
  leaveType: {
48
48
  type: sequelize_1.DataTypes.ENUM,
49
- values: Object.values(app_js_1.LEAVE_TYPE),
49
+ values: Object.values(app_1.LEAVE_TYPE),
50
50
  allowNull: false,
51
51
  },
52
52
  status: {
53
53
  type: sequelize_1.DataTypes.ENUM,
54
- values: Object.values(app_js_1.LEAVE_STATUS),
55
- defaultValue: app_js_1.LEAVE_STATUS.PENDING,
54
+ values: Object.values(app_1.LEAVE_STATUS),
55
+ defaultValue: app_1.LEAVE_STATUS.PENDING,
56
56
  allowNull: false,
57
57
  },
58
58
  startTime: {
@@ -67,17 +67,17 @@ UserLeaveRequestModel.init({
67
67
  modelName: 'UserLeaveRequest',
68
68
  tableName: 'user_leave_request',
69
69
  timestamps: true,
70
- sequelize: index_js_1.sequelize,
70
+ sequelize: index_1.sequelize,
71
71
  });
72
- UserLeaveRequestModel.belongsTo(userModel_js_1.default, { foreignKey: 'userId', as: 'user' });
73
- UserLeaveRequestModel.belongsTo(instituteModel_js_1.default, { foreignKey: 'instituteId', as: 'institute' });
74
- UserLeaveRequestModel.belongsTo(masterLeaveModel_js_1.default, { foreignKey: 'leaveId', as: 'leaveDetails' });
75
- UserLeaveRequestModel.belongsTo(userHasLeaveModel_js_1.default, { foreignKey: 'userHasLeaveId' });
76
- userModel_js_1.default.hasMany(UserLeaveRequestModel, { foreignKey: 'userId', as: 'leaveRequest' });
77
- instituteModel_js_1.default.hasMany(UserLeaveRequestModel, { foreignKey: 'instituteId', as: 'leaveRequest' });
78
- masterLeaveModel_js_1.default.hasMany(UserLeaveRequestModel, { foreignKey: 'leaveId', as: 'leaveDate' });
79
- userHasLeaveModel_js_1.default.belongsTo(UserLeaveRequestModel, { foreignKey: 'userHasLeaveId' });
80
- UserLeaveRequestModel.belongsTo(userModel_js_1.default, {
72
+ UserLeaveRequestModel.belongsTo(userModel_1.default, { foreignKey: 'userId', as: 'user' });
73
+ UserLeaveRequestModel.belongsTo(instituteModel_1.default, { foreignKey: 'instituteId', as: 'institute' });
74
+ UserLeaveRequestModel.belongsTo(masterLeaveModel_1.default, { foreignKey: 'leaveId', as: 'leaveDetails' });
75
+ UserLeaveRequestModel.belongsTo(userHasLeaveModel_1.default, { foreignKey: 'userHasLeaveId' });
76
+ userModel_1.default.hasMany(UserLeaveRequestModel, { foreignKey: 'userId', as: 'leaveRequest' });
77
+ instituteModel_1.default.hasMany(UserLeaveRequestModel, { foreignKey: 'instituteId', as: 'leaveRequest' });
78
+ masterLeaveModel_1.default.hasMany(UserLeaveRequestModel, { foreignKey: 'leaveId', as: 'leaveDate' });
79
+ userHasLeaveModel_1.default.belongsTo(UserLeaveRequestModel, { foreignKey: 'userHasLeaveId' });
80
+ UserLeaveRequestModel.belongsTo(userModel_1.default, {
81
81
  foreignKey: {
82
82
  name: 'createdBy',
83
83
  allowNull: true,
@@ -85,7 +85,7 @@ UserLeaveRequestModel.belongsTo(userModel_js_1.default, {
85
85
  },
86
86
  as: 'createdByUser',
87
87
  });
88
- UserLeaveRequestModel.belongsTo(userModel_js_1.default, {
88
+ UserLeaveRequestModel.belongsTo(userModel_1.default, {
89
89
  foreignKey: {
90
90
  name: 'updatedBy',
91
91
  allowNull: true,
@@ -93,7 +93,7 @@ UserLeaveRequestModel.belongsTo(userModel_js_1.default, {
93
93
  },
94
94
  as: 'updatedByUser',
95
95
  });
96
- UserLeaveRequestModel.belongsTo(userModel_js_1.default, {
96
+ UserLeaveRequestModel.belongsTo(userModel_1.default, {
97
97
  foreignKey: {
98
98
  name: 'deletedBy',
99
99
  allowNull: true,
@@ -1,7 +1,7 @@
1
1
  import { Model } from 'sequelize';
2
- import { APP_TYPE, EMAIL_VERIFICATION, MOBILE_VERIFICATION, USER_TYPES } from '../../constants/app.js';
3
- import { IUserAttributes } from '../../interfaces/userInterface.js';
4
- import { TUserCreationAttributes } from '../../types/userType.js';
2
+ import { APP_TYPE, EMAIL_VERIFICATION, MOBILE_VERIFICATION, USER_TYPES } from '../../constants/app';
3
+ import { IUserAttributes } from '../../interfaces/userInterface';
4
+ import { TUserCreationAttributes } from '../../types/userType';
5
5
  declare class UserModel extends Model<IUserAttributes, TUserCreationAttributes> implements IUserAttributes {
6
6
  id: string;
7
7
  uuid: string;
@@ -4,15 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const sequelize_1 = require("sequelize");
7
- const index_js_1 = require("./index.js");
8
- const app_js_1 = require("../../constants/app.js");
9
- const countryModel_js_1 = __importDefault(require("./countryModel.js"));
10
- const stateModel_js_1 = __importDefault(require("./stateModel.js"));
11
- const cityModel_js_1 = __importDefault(require("./cityModel.js"));
12
- const tokenModel_js_1 = __importDefault(require("./tokenModel.js"));
13
- const areaModel_js_1 = __importDefault(require("./areaModel.js"));
14
- const utils_js_1 = require("../../helpers/utils.js");
15
- const uniqueNumberCounterModel_js_1 = __importDefault(require("../mongodb/uniqueNumberCounterModel.js"));
7
+ const index_1 = require("./index");
8
+ const app_1 = require("../../constants/app");
9
+ const countryModel_1 = __importDefault(require("./countryModel"));
10
+ const stateModel_1 = __importDefault(require("./stateModel"));
11
+ const cityModel_1 = __importDefault(require("./cityModel"));
12
+ const tokenModel_1 = __importDefault(require("./tokenModel"));
13
+ const areaModel_1 = __importDefault(require("./areaModel"));
14
+ const utils_1 = require("../../helpers/utils");
15
+ const uniqueNumberCounterModel_1 = __importDefault(require("../mongodb/uniqueNumberCounterModel"));
16
16
  class UserModel extends sequelize_1.Model {
17
17
  // declare addParent: BelongsToManyAddAssociationMixin<UserModel, string>;
18
18
  // declare getParents: BelongsToManyGetAssociationsMixin<UserModel>;
@@ -65,20 +65,20 @@ UserModel.init({
65
65
  type: sequelize_1.DataTypes.STRING(30),
66
66
  allowNull: false,
67
67
  field: 'email_varification',
68
- defaultValue: app_js_1.EMAIL_VERIFICATION.PENDING,
68
+ defaultValue: app_1.EMAIL_VERIFICATION.PENDING,
69
69
  },
70
70
  mobileVerification: {
71
71
  type: sequelize_1.DataTypes.STRING(30),
72
72
  allowNull: false,
73
73
  field: 'mobile_varification',
74
- defaultValue: app_js_1.MOBILE_VERIFICATION.PENDING,
74
+ defaultValue: app_1.MOBILE_VERIFICATION.PENDING,
75
75
  },
76
76
  appType: {
77
77
  type: sequelize_1.DataTypes.ENUM,
78
- values: Object.values(app_js_1.APP_TYPE),
78
+ values: Object.values(app_1.APP_TYPE),
79
79
  allowNull: true,
80
80
  field: 'app_type',
81
- defaultValue: app_js_1.APP_TYPE.INSTITUTE_APP,
81
+ defaultValue: app_1.APP_TYPE.INSTITUTE_APP,
82
82
  },
83
83
  type: {
84
84
  type: sequelize_1.DataTypes.STRING(30),
@@ -204,12 +204,12 @@ UserModel.init({
204
204
  tableName: 'users',
205
205
  timestamps: true,
206
206
  paranoid: true,
207
- sequelize: index_js_1.sequelize,
207
+ sequelize: index_1.sequelize,
208
208
  });
209
- UserModel.belongsTo(countryModel_js_1.default, { foreignKey: 'country' });
210
- UserModel.belongsTo(stateModel_js_1.default, { foreignKey: 'state' });
211
- UserModel.belongsTo(cityModel_js_1.default, { foreignKey: 'city' });
212
- UserModel.hasMany(tokenModel_js_1.default, {
209
+ UserModel.belongsTo(countryModel_1.default, { foreignKey: 'country' });
210
+ UserModel.belongsTo(stateModel_1.default, { foreignKey: 'state' });
211
+ UserModel.belongsTo(cityModel_1.default, { foreignKey: 'city' });
212
+ UserModel.hasMany(tokenModel_1.default, {
213
213
  foreignKey: {
214
214
  name: 'userId',
215
215
  field: 'user_id',
@@ -245,16 +245,16 @@ UserModel.belongsTo(UserModel, {
245
245
  });
246
246
  const upsertArea = async (city) => {
247
247
  try {
248
- const exists = await areaModel_js_1.default.findOne({ where: { city: city } });
248
+ const exists = await areaModel_1.default.findOne({ where: { city: city } });
249
249
  if (!exists) {
250
- const cityData = await cityModel_js_1.default.findOne({ where: { id: city } });
250
+ const cityData = await cityModel_1.default.findOne({ where: { id: city } });
251
251
  if (cityData) {
252
- const areas = await (0, utils_js_1.getCityAreas)(cityData.name);
252
+ const areas = await (0, utils_1.getCityAreas)(cityData.name);
253
253
  const data = areas.map(name => ({
254
254
  area: name,
255
255
  city,
256
256
  }));
257
- await areaModel_js_1.default.bulkCreate(data);
257
+ await areaModel_1.default.bulkCreate(data);
258
258
  }
259
259
  }
260
260
  }
@@ -263,8 +263,8 @@ const upsertArea = async (city) => {
263
263
  }
264
264
  };
265
265
  const beforeUpdateHook = async (user) => {
266
- if (user.type === app_js_1.USER_TYPES.PARENTS || user.type === app_js_1.USER_TYPES.STUDENT) {
267
- user.appType = app_js_1.APP_TYPE.STUDENT_APP;
266
+ if (user.type === app_1.USER_TYPES.PARENTS || user.type === app_1.USER_TYPES.STUDENT) {
267
+ user.appType = app_1.APP_TYPE.STUDENT_APP;
268
268
  }
269
269
  if (user.city) {
270
270
  upsertArea(user.city);
@@ -275,23 +275,23 @@ const generateGlobalUniqueNumber = async (type, userType) => {
275
275
  let rollNumber = '';
276
276
  if (userType && type) {
277
277
  const USER_TYPE_PREFIXES = {
278
- [app_js_1.USER_TYPES.MASTER_ADMIN]: 'K-MA',
279
- [app_js_1.USER_TYPES.ADMIN]: 'K-ADM',
280
- [app_js_1.USER_TYPES.INSTITUTE_MASTER_ADMIN]: 'K-IMA',
281
- [app_js_1.USER_TYPES.INSTITUTE_ADMIN]: 'K-IA',
282
- [app_js_1.USER_TYPES.TEACHER]: 'K-TEA',
283
- [app_js_1.USER_TYPES.STUDENT]: 'K-STU',
284
- [app_js_1.USER_TYPES.PARENTS]: 'K-PAR',
285
- [app_js_1.USER_TYPES.DRIVER]: 'K-DRI',
278
+ [app_1.USER_TYPES.MASTER_ADMIN]: 'K-MA',
279
+ [app_1.USER_TYPES.ADMIN]: 'K-ADM',
280
+ [app_1.USER_TYPES.INSTITUTE_MASTER_ADMIN]: 'K-IMA',
281
+ [app_1.USER_TYPES.INSTITUTE_ADMIN]: 'K-IA',
282
+ [app_1.USER_TYPES.TEACHER]: 'K-TEA',
283
+ [app_1.USER_TYPES.STUDENT]: 'K-STU',
284
+ [app_1.USER_TYPES.PARENTS]: 'K-PAR',
285
+ [app_1.USER_TYPES.DRIVER]: 'K-DRI',
286
286
  };
287
287
  const prefix = USER_TYPE_PREFIXES[userType] || `K-${userType.substring(0, 3).toUpperCase()}`;
288
- let data = await uniqueNumberCounterModel_js_1.default.findOne({
288
+ let data = await uniqueNumberCounterModel_1.default.findOne({
289
289
  type: type,
290
290
  userType: userType,
291
291
  instituteId: null,
292
292
  });
293
293
  if (!data) {
294
- data = await uniqueNumberCounterModel_js_1.default.create({
294
+ data = await uniqueNumberCounterModel_1.default.create({
295
295
  type: type,
296
296
  userType: userType,
297
297
  lastRollNumber: 1,
@@ -302,12 +302,12 @@ const generateGlobalUniqueNumber = async (type, userType) => {
302
302
  data.letterCode = data.letterCode || 'A';
303
303
  if (data.lastRollNumber >= MAX_NUMBER) {
304
304
  data.lastRollNumber = 1;
305
- data.letterCode = (0, utils_js_1.getNextLetter)(data.letterCode);
305
+ data.letterCode = (0, utils_1.getNextLetter)(data.letterCode);
306
306
  }
307
307
  else {
308
308
  data.lastRollNumber += 1;
309
309
  }
310
- await uniqueNumberCounterModel_js_1.default.updateOne({ id: data.id }, {
310
+ await uniqueNumberCounterModel_1.default.updateOne({ id: data.id }, {
311
311
  $set: {
312
312
  lastRollNumber: data.lastRollNumber,
313
313
  letterCode: data.letterCode,
@@ -318,13 +318,13 @@ const generateGlobalUniqueNumber = async (type, userType) => {
318
318
  }
319
319
  if (type && !userType) {
320
320
  const prefix = `K-${type.substring(0, 3).toUpperCase()}`;
321
- let data = await uniqueNumberCounterModel_js_1.default.findOne({
321
+ let data = await uniqueNumberCounterModel_1.default.findOne({
322
322
  type: type,
323
323
  userType: null,
324
324
  instituteId: null,
325
325
  });
326
326
  if (!data) {
327
- data = await uniqueNumberCounterModel_js_1.default.create({
327
+ data = await uniqueNumberCounterModel_1.default.create({
328
328
  type: type,
329
329
  lastRollNumber: 1,
330
330
  letterCode: 'A',
@@ -334,12 +334,12 @@ const generateGlobalUniqueNumber = async (type, userType) => {
334
334
  data.letterCode = data.letterCode || 'A';
335
335
  if (data.lastRollNumber >= MAX_NUMBER) {
336
336
  data.lastRollNumber = 1;
337
- data.letterCode = (0, utils_js_1.getNextLetter)(data.letterCode);
337
+ data.letterCode = (0, utils_1.getNextLetter)(data.letterCode);
338
338
  }
339
339
  else {
340
340
  data.lastRollNumber += 1;
341
341
  }
342
- await uniqueNumberCounterModel_js_1.default.updateOne({ id: data.id }, {
342
+ await uniqueNumberCounterModel_1.default.updateOne({ id: data.id }, {
343
343
  $set: {
344
344
  lastRollNumber: data.lastRollNumber,
345
345
  letterCode: data.letterCode,
@@ -351,11 +351,11 @@ const generateGlobalUniqueNumber = async (type, userType) => {
351
351
  return rollNumber;
352
352
  };
353
353
  const userBeforeCreateHook = async (user) => {
354
- if (user.type === app_js_1.USER_TYPES.PARENTS || user.type === app_js_1.USER_TYPES.STUDENT) {
355
- user.appType = app_js_1.APP_TYPE.STUDENT_APP;
354
+ if (user.type === app_1.USER_TYPES.PARENTS || user.type === app_1.USER_TYPES.STUDENT) {
355
+ user.appType = app_1.APP_TYPE.STUDENT_APP;
356
356
  }
357
357
  if (user.type) {
358
- user.globalId = await generateGlobalUniqueNumber(app_js_1.TYPE_OF_USER.USER, user.type);
358
+ user.globalId = await generateGlobalUniqueNumber(app_1.TYPE_OF_USER.USER, user.type);
359
359
  }
360
360
  user.uuid = crypto.randomUUID();
361
361
  const where = {
@@ -1,7 +1,7 @@
1
1
  import { Model } from 'sequelize';
2
- import { IUserPayoutDetailsModelAttributes } from '../../interfaces/userPayoutDetailsInterface.js';
3
- import { TUserPayoutDetailsModelCreationAttributes } from '../../types/userPayoutDetailsType.js';
4
- import { USER_PAYOUT_TYPE } from '../../constants/app.js';
2
+ import { IUserPayoutDetailsModelAttributes } from '../../interfaces/userPayoutDetailsInterface';
3
+ import { TUserPayoutDetailsModelCreationAttributes } from '../../types/userPayoutDetailsType';
4
+ import { USER_PAYOUT_TYPE } from '../../constants/app';
5
5
  declare class UserPayoutDetailsModel extends Model<IUserPayoutDetailsModelAttributes, TUserPayoutDetailsModelCreationAttributes> {
6
6
  id: string;
7
7
  subjectId: string;
@@ -4,13 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const sequelize_1 = require("sequelize");
7
- const index_js_1 = require("./index.js");
8
- const app_js_1 = require("../../constants/app.js");
9
- const userModel_js_1 = __importDefault(require("./userModel.js"));
10
- const instituteModel_js_1 = __importDefault(require("./instituteModel.js"));
11
- const batchModel_js_1 = __importDefault(require("./batchModel.js"));
12
- const instituteEntityModel_js_1 = __importDefault(require("./instituteEntityModel.js"));
13
- const userPayoutModel_js_1 = __importDefault(require("./userPayoutModel.js"));
7
+ const index_1 = require("./index");
8
+ const app_1 = require("../../constants/app");
9
+ const userModel_1 = __importDefault(require("./userModel"));
10
+ const instituteModel_1 = __importDefault(require("./instituteModel"));
11
+ const batchModel_1 = __importDefault(require("./batchModel"));
12
+ const instituteEntityModel_1 = __importDefault(require("./instituteEntityModel"));
13
+ const userPayoutModel_1 = __importDefault(require("./userPayoutModel"));
14
14
  class UserPayoutDetailsModel extends sequelize_1.Model {
15
15
  }
16
16
  UserPayoutDetailsModel.init({
@@ -55,7 +55,7 @@ UserPayoutDetailsModel.init({
55
55
  },
56
56
  type: {
57
57
  type: sequelize_1.DataTypes.ENUM,
58
- values: Object.values(app_js_1.USER_PAYOUT_TYPE),
58
+ values: Object.values(app_1.USER_PAYOUT_TYPE),
59
59
  allowNull: false,
60
60
  },
61
61
  userId: {
@@ -73,9 +73,9 @@ UserPayoutDetailsModel.init({
73
73
  tableName: 'user_payout_details',
74
74
  timestamps: true,
75
75
  paranoid: true,
76
- sequelize: index_js_1.sequelize,
76
+ sequelize: index_1.sequelize,
77
77
  });
78
- UserPayoutDetailsModel.belongsTo(userModel_js_1.default, {
78
+ UserPayoutDetailsModel.belongsTo(userModel_1.default, {
79
79
  foreignKey: {
80
80
  name: 'createdBy',
81
81
  allowNull: true,
@@ -83,7 +83,7 @@ UserPayoutDetailsModel.belongsTo(userModel_js_1.default, {
83
83
  },
84
84
  as: 'createdByUser',
85
85
  });
86
- UserPayoutDetailsModel.belongsTo(userModel_js_1.default, {
86
+ UserPayoutDetailsModel.belongsTo(userModel_1.default, {
87
87
  foreignKey: {
88
88
  name: 'updatedBy',
89
89
  allowNull: true,
@@ -91,7 +91,7 @@ UserPayoutDetailsModel.belongsTo(userModel_js_1.default, {
91
91
  },
92
92
  as: 'updatedByUser',
93
93
  });
94
- UserPayoutDetailsModel.belongsTo(userModel_js_1.default, {
94
+ UserPayoutDetailsModel.belongsTo(userModel_1.default, {
95
95
  foreignKey: {
96
96
  name: 'deletedBy',
97
97
  allowNull: true,
@@ -99,61 +99,61 @@ UserPayoutDetailsModel.belongsTo(userModel_js_1.default, {
99
99
  },
100
100
  as: 'deletedByUser',
101
101
  });
102
- UserPayoutDetailsModel.belongsTo(instituteModel_js_1.default, {
102
+ UserPayoutDetailsModel.belongsTo(instituteModel_1.default, {
103
103
  foreignKey: {
104
104
  name: 'instituteId',
105
105
  },
106
106
  as: 'institute',
107
107
  });
108
- instituteModel_js_1.default.hasMany(UserPayoutDetailsModel, {
108
+ instituteModel_1.default.hasMany(UserPayoutDetailsModel, {
109
109
  foreignKey: {
110
110
  name: 'instituteId',
111
111
  },
112
112
  as: 'instituteHasPayoutDetailsList',
113
113
  });
114
- UserPayoutDetailsModel.belongsTo(batchModel_js_1.default, {
114
+ UserPayoutDetailsModel.belongsTo(batchModel_1.default, {
115
115
  foreignKey: {
116
116
  name: 'batchId',
117
117
  },
118
118
  as: 'batch',
119
119
  });
120
- batchModel_js_1.default.hasMany(UserPayoutDetailsModel, {
120
+ batchModel_1.default.hasMany(UserPayoutDetailsModel, {
121
121
  foreignKey: {
122
122
  name: 'batchId',
123
123
  },
124
124
  as: 'batchHasPayoutDetailsList',
125
125
  });
126
- UserPayoutDetailsModel.belongsTo(instituteEntityModel_js_1.default, {
126
+ UserPayoutDetailsModel.belongsTo(instituteEntityModel_1.default, {
127
127
  foreignKey: {
128
128
  name: 'subjectId',
129
129
  },
130
130
  as: 'subject',
131
131
  });
132
- instituteEntityModel_js_1.default.hasMany(UserPayoutDetailsModel, {
132
+ instituteEntityModel_1.default.hasMany(UserPayoutDetailsModel, {
133
133
  foreignKey: {
134
134
  name: 'subjectId',
135
135
  },
136
136
  as: 'subjectHasPayoutDetailsList',
137
137
  });
138
- UserPayoutDetailsModel.belongsTo(userModel_js_1.default, {
138
+ UserPayoutDetailsModel.belongsTo(userModel_1.default, {
139
139
  foreignKey: {
140
140
  name: 'userId',
141
141
  },
142
142
  as: 'user',
143
143
  });
144
- userModel_js_1.default.hasMany(UserPayoutDetailsModel, {
144
+ userModel_1.default.hasMany(UserPayoutDetailsModel, {
145
145
  foreignKey: {
146
146
  name: 'userId',
147
147
  },
148
148
  as: 'userHasPayoutDetailsList',
149
149
  });
150
- UserPayoutDetailsModel.belongsTo(userPayoutModel_js_1.default, {
150
+ UserPayoutDetailsModel.belongsTo(userPayoutModel_1.default, {
151
151
  foreignKey: {
152
152
  name: 'userPayoutId',
153
153
  },
154
154
  as: 'userPayout',
155
155
  });
156
- userPayoutModel_js_1.default.hasMany(UserPayoutDetailsModel, {
156
+ userPayoutModel_1.default.hasMany(UserPayoutDetailsModel, {
157
157
  foreignKey: {
158
158
  name: 'userPayoutId',
159
159
  },
@@ -1,7 +1,7 @@
1
1
  import { Model } from 'sequelize';
2
- import { IUserPayoutHistoryModelAttributes } from '../../interfaces/userPayoutHistoryInterface.js';
3
- import { TUserPayoutHistoryModelCreationAttributes } from '../../types/userPayoutHistoryType.js';
4
- import { USER_PAYOUT_TYPE, USER_TYPES } from '../../constants/app.js';
2
+ import { IUserPayoutHistoryModelAttributes } from '../../interfaces/userPayoutHistoryInterface';
3
+ import { TUserPayoutHistoryModelCreationAttributes } from '../../types/userPayoutHistoryType';
4
+ import { USER_PAYOUT_TYPE, USER_TYPES } from '../../constants/app';
5
5
  declare class UserPayoutHistoryModel extends Model<IUserPayoutHistoryModelAttributes, TUserPayoutHistoryModelCreationAttributes> {
6
6
  id: string;
7
7
  userId: string;