@react-pakistan/util-functions 1.25.90 → 2.0.0

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 (412) hide show
  1. package/README.md +74 -315
  2. package/constants/api-methods.d.ts +3 -1
  3. package/constants/api-methods.js +1 -15
  4. package/constants/cache-time.d.ts +7 -5
  5. package/constants/cache-time.js +1 -8
  6. package/constants/countries-timezones.d.ts +4 -2
  7. package/constants/countries-timezones.js +1 -1411
  8. package/constants/currencies.d.ts +4 -2
  9. package/constants/currencies.js +1 -1076
  10. package/constants/dial-codes.d.ts +5 -3
  11. package/constants/dial-codes.js +1 -1216
  12. package/constants/layout-direction.d.ts +3 -1
  13. package/constants/layout-direction.js +1 -8
  14. package/constants/react-pakistan-meta.d.ts +4 -2
  15. package/constants/react-pakistan-meta.js +1 -35
  16. package/constants/react-pakistan.d.ts +5 -3
  17. package/constants/react-pakistan.js +12 -104
  18. package/constants/select-value-delimiter.d.ts +3 -1
  19. package/constants/select-value-delimiter.js +1 -13
  20. package/constants/social-media-colors.d.ts +3 -1
  21. package/constants/social-media-colors.js +1 -42
  22. package/constants/social-media-sizes.d.ts +6 -4
  23. package/constants/social-media-sizes.js +1 -327
  24. package/constants/user-roles.d.ts +3 -1
  25. package/constants/user-roles.js +1 -9
  26. package/edu-pilot-pro/types/academics.d.ts +2 -266
  27. package/edu-pilot-pro/types/academics.js +1 -9
  28. package/edu-pilot-pro/types/admission.d.ts +803 -10
  29. package/edu-pilot-pro/types/admission.js +1 -7
  30. package/edu-pilot-pro/types/communication.d.ts +2 -165
  31. package/edu-pilot-pro/types/communication.js +1 -8
  32. package/edu-pilot-pro/types/enums.d.ts +30 -28
  33. package/edu-pilot-pro/types/enums.js +1 -445
  34. package/edu-pilot-pro/types/finance.d.ts +2 -128
  35. package/edu-pilot-pro/types/finance.js +1 -8
  36. package/edu-pilot-pro/types/index.d.ts +2 -12
  37. package/edu-pilot-pro/types/index.js +1 -28
  38. package/edu-pilot-pro/types/user-management.d.ts +2 -236
  39. package/edu-pilot-pro/types/user-management.js +1 -8
  40. package/factory/generic-component-factory.d.ts +12 -9
  41. package/factory/generic-component-factory.js +1 -131
  42. package/factory/generic-module-factory.d.ts +14 -10
  43. package/factory/generic-module-factory.js +1 -190
  44. package/general/basic-get.d.ts +8 -1
  45. package/general/basic-get.js +1 -83
  46. package/general/basic-post.d.ts +8 -1
  47. package/general/basic-post.js +1 -70
  48. package/general/calculate-pages.d.ts +9 -1
  49. package/general/calculate-pages.js +1 -7
  50. package/general/camel-to-sentence-case.d.ts +3 -1
  51. package/general/camel-to-sentence-case.js +1 -20
  52. package/general/check-even-odd-length.d.ts +3 -1
  53. package/general/check-even-odd-length.js +1 -17
  54. package/general/clear-cache.d.ts +7 -2
  55. package/general/clear-cache.js +1 -12
  56. package/general/cnic-formatter.d.ts +16 -3
  57. package/general/cnic-formatter.js +1 -53
  58. package/general/convert-url-to-base64.d.ts +8 -6
  59. package/general/convert-url-to-base64.js +1 -231
  60. package/general/countries.d.ts +5 -3
  61. package/general/countries.js +1 -514
  62. package/general/create-date.d.ts +3 -1
  63. package/general/create-date.js +1 -22
  64. package/general/crypto.d.ts +4 -2
  65. package/general/crypto.js +1 -45
  66. package/general/currencies.d.ts +2 -0
  67. package/general/currencies.js +0 -1077
  68. package/general/delete-image-from-private-supabase.d.ts +10 -2
  69. package/general/delete-image-from-private-supabase.js +1 -66
  70. package/general/delete-image-from-public-supabase.d.ts +10 -2
  71. package/general/delete-image-from-public-supabase.js +1 -66
  72. package/general/download-from-url.d.ts +8 -1
  73. package/general/download-from-url.js +1 -82
  74. package/general/dynamic-page-limit.d.ts +9 -3
  75. package/general/dynamic-page-limit.js +1 -7
  76. package/general/enum-to-text.d.ts +8 -1
  77. package/general/enum-to-text.js +1 -11
  78. package/general/fetch-data.d.ts +16 -4
  79. package/general/fetch-data.js +1 -95
  80. package/general/fetch-supabase-image.d.ts +11 -2
  81. package/general/fetch-supabase-image.js +1 -67
  82. package/general/fetch-supabase-private-assets.d.ts +11 -2
  83. package/general/fetch-supabase-private-assets.js +1 -69
  84. package/general/format-date.d.ts +10 -2
  85. package/general/format-date.js +1 -49
  86. package/general/format-number.d.ts +12 -2
  87. package/general/format-number.js +1 -35
  88. package/general/format-phone-display.d.ts +9 -1
  89. package/general/format-phone-display.js +1 -32
  90. package/general/format-phone.d.ts +10 -2
  91. package/general/format-phone.js +1 -20
  92. package/general/format-pricing.d.ts +8 -1
  93. package/general/format-pricing.js +1 -23
  94. package/general/format-secs.d.ts +8 -1
  95. package/general/format-secs.js +1 -21
  96. package/general/format-time.d.ts +8 -2
  97. package/general/format-time.js +1 -38
  98. package/general/format-value.d.ts +8 -1
  99. package/general/format-value.js +1 -7
  100. package/general/full-month-range.d.ts +3 -2
  101. package/general/full-month-range.js +1 -24
  102. package/general/full-year-range.d.ts +3 -2
  103. package/general/full-year-range.js +1 -20
  104. package/general/generate-article-schema.d.ts +3 -2
  105. package/general/generate-article-schema.js +1 -100
  106. package/general/generate-blog-schema.d.ts +3 -2
  107. package/general/generate-blog-schema.js +1 -32
  108. package/general/generate-book-schema.d.ts +3 -2
  109. package/general/generate-book-schema.js +1 -109
  110. package/general/generate-breadcrumb-schema.d.ts +3 -2
  111. package/general/generate-breadcrumb-schema.js +1 -34
  112. package/general/generate-carousel-schema.d.ts +3 -2
  113. package/general/generate-carousel-schema.js +1 -172
  114. package/general/generate-course-schema.d.ts +3 -2
  115. package/general/generate-course-schema.js +1 -124
  116. package/general/generate-dataset-schema.d.ts +3 -2
  117. package/general/generate-dataset-schema.js +1 -156
  118. package/general/generate-discussion-forum-schema.d.ts +3 -2
  119. package/general/generate-discussion-forum-schema.js +1 -67
  120. package/general/generate-education-schema.d.ts +3 -2
  121. package/general/generate-education-schema.js +1 -137
  122. package/general/generate-employer-aggregate-rating-schema.d.ts +3 -2
  123. package/general/generate-employer-aggregate-rating-schema.js +1 -64
  124. package/general/generate-event-schema.d.ts +3 -2
  125. package/general/generate-event-schema.js +1 -214
  126. package/general/generate-faq-schema.d.ts +3 -2
  127. package/general/generate-faq-schema.js +1 -43
  128. package/general/generate-grid.d.ts +3 -2
  129. package/general/generate-grid.js +1 -55
  130. package/general/generate-image-metadata-schema.d.ts +3 -2
  131. package/general/generate-image-metadata-schema.js +1 -73
  132. package/general/generate-job-posting-schema.d.ts +3 -2
  133. package/general/generate-job-posting-schema.js +1 -120
  134. package/general/generate-local-business-schema.d.ts +3 -2
  135. package/general/generate-local-business-schema.js +1 -75
  136. package/general/generate-math-solver-schema.d.ts +3 -2
  137. package/general/generate-math-solver-schema.js +1 -83
  138. package/general/generate-movie-carousel-schema.d.ts +3 -2
  139. package/general/generate-movie-carousel-schema.js +1 -160
  140. package/general/generate-organization-schema.d.ts +3 -2
  141. package/general/generate-organization-schema.js +1 -39
  142. package/general/generate-profile-page-schema.d.ts +3 -2
  143. package/general/generate-profile-page-schema.js +1 -82
  144. package/general/generate-qa-page-schema.d.ts +3 -2
  145. package/general/generate-qa-page-schema.js +1 -67
  146. package/general/generate-recipe-schema.d.ts +3 -2
  147. package/general/generate-recipe-schema.js +1 -104
  148. package/general/generate-ref.d.ts +8 -2
  149. package/general/generate-ref.js +1 -12
  150. package/general/generate-review-snippet-schema.d.ts +3 -2
  151. package/general/generate-review-snippet-schema.js +1 -137
  152. package/general/generate-shopping-loyalty-program-schema.d.ts +3 -2
  153. package/general/generate-shopping-loyalty-program-schema.js +1 -59
  154. package/general/generate-shopping-merchant-listing-schema.d.ts +3 -2
  155. package/general/generate-shopping-merchant-listing-schema.js +1 -153
  156. package/general/generate-shopping-merchant-return-policy-schema.d.ts +3 -2
  157. package/general/generate-shopping-merchant-return-policy-schema.js +1 -68
  158. package/general/generate-shopping-merchant-shipping-policy-schema.d.ts +3 -2
  159. package/general/generate-shopping-merchant-shipping-policy-schema.js +1 -74
  160. package/general/generate-shopping-overview-schema.d.ts +3 -2
  161. package/general/generate-shopping-overview-schema.js +1 -157
  162. package/general/generate-shopping-product-snippet-schema.d.ts +3 -2
  163. package/general/generate-shopping-product-snippet-schema.js +1 -167
  164. package/general/generate-shopping-variants-schema.d.ts +3 -2
  165. package/general/generate-shopping-variants-schema.js +1 -143
  166. package/general/generate-software-app-schema.d.ts +3 -2
  167. package/general/generate-software-app-schema.js +1 -143
  168. package/general/generate-speakable-schema.d.ts +3 -2
  169. package/general/generate-speakable-schema.js +1 -139
  170. package/general/generate-subscription-schema.d.ts +3 -2
  171. package/general/generate-subscription-schema.js +1 -133
  172. package/general/generate-vacation-rental-schema.d.ts +3 -2
  173. package/general/generate-vacation-rental-schema.js +1 -135
  174. package/general/generate-video-schema.d.ts +3 -2
  175. package/general/generate-video-schema.js +1 -163
  176. package/general/generic-cache.d.ts +17 -15
  177. package/general/generic-cache.js +1 -659
  178. package/general/get-available-page-limit.d.ts +8 -2
  179. package/general/get-available-page-limit.js +1 -31
  180. package/general/get-calendar-current-month.d.ts +11 -3
  181. package/general/get-calendar-current-month.js +1 -31
  182. package/general/get-calendar-dates.d.ts +11 -3
  183. package/general/get-calendar-dates.js +1 -42
  184. package/general/get-calendar-next-month.d.ts +12 -3
  185. package/general/get-calendar-next-month.js +1 -32
  186. package/general/get-calendar-previous-month.d.ts +12 -3
  187. package/general/get-calendar-previous-month.js +1 -36
  188. package/general/get-current-year.d.ts +7 -1
  189. package/general/get-current-year.js +1 -5
  190. package/general/get-day-name.d.ts +5 -3
  191. package/general/get-day-name.js +1 -14
  192. package/general/get-dial-code.d.ts +8 -1
  193. package/general/get-dial-code.js +1 -8
  194. package/general/get-full-name.d.ts +9 -2
  195. package/general/get-full-name.js +1 -8
  196. package/general/get-href.d.ts +3 -1
  197. package/general/get-href.js +1 -13
  198. package/general/get-month-name.d.ts +5 -3
  199. package/general/get-month-name.js +1 -19
  200. package/general/get-month-number.d.ts +5 -3
  201. package/general/get-month-number.js +1 -29
  202. package/general/get-number-of-days-in-month.d.ts +9 -2
  203. package/general/get-number-of-days-in-month.js +1 -12
  204. package/general/get-pathname.d.ts +3 -1
  205. package/general/get-pathname.js +1 -16
  206. package/general/get-week-day.d.ts +8 -1
  207. package/general/get-week-day.js +1 -9
  208. package/general/image-url-to-base64.d.ts +3 -1
  209. package/general/image-url-to-base64.js +1 -80
  210. package/general/is-created-or-updated.d.ts +3 -1
  211. package/general/is-created-or-updated.js +1 -26
  212. package/general/is-next-button-disabled.d.ts +9 -1
  213. package/general/is-next-button-disabled.js +1 -5
  214. package/general/is-odd.d.ts +3 -1
  215. package/general/is-odd.js +1 -13
  216. package/general/is-previous-button-disabled.d.ts +8 -1
  217. package/general/is-previous-button-disabled.js +1 -7
  218. package/general/linear-gradients.d.ts +4 -2
  219. package/general/linear-gradients.js +1 -52
  220. package/general/multi-part-search.d.ts +10 -2
  221. package/general/multi-part-search.js +1 -16
  222. package/general/normalize-phone.d.ts +15 -2
  223. package/general/normalize-phone.js +1 -40
  224. package/general/parse-frontmatter.d.ts +11 -4
  225. package/general/parse-frontmatter.js +2 -35
  226. package/general/remove-data-image-prefix.d.ts +8 -1
  227. package/general/remove-data-image-prefix.js +1 -7
  228. package/general/repeat-times.d.ts +3 -1
  229. package/general/repeat-times.js +1 -21
  230. package/general/resolve-anchor-link.d.ts +3 -1
  231. package/general/resolve-anchor-link.js +1 -26
  232. package/general/resolve-current-date.d.ts +3 -1
  233. package/general/resolve-current-date.js +1 -22
  234. package/general/resolve-grid.d.ts +3 -1
  235. package/general/resolve-grid.js +1 -18
  236. package/general/resolve-initials.d.ts +3 -1
  237. package/general/resolve-initials.js +1 -17
  238. package/general/set-timezone.d.ts +11 -1
  239. package/general/set-timezone.js +1 -12
  240. package/general/slugify.d.ts +3 -1
  241. package/general/slugify.js +1 -24
  242. package/general/text-to-enum.d.ts +8 -1
  243. package/general/text-to-enum.js +1 -10
  244. package/general/text-to-sentence-case.d.ts +3 -1
  245. package/general/text-to-sentence-case.js +1 -16
  246. package/general/time-out.d.ts +3 -1
  247. package/general/time-out.js +1 -16
  248. package/general/time-zones.d.ts +3 -1
  249. package/general/time-zones.js +1 -437
  250. package/general/truncate-text.d.ts +3 -1
  251. package/general/truncate-text.js +1 -18
  252. package/general/type.d.ts +3 -1
  253. package/general/type.js +1 -2
  254. package/general/upload-blob-to-private-supabase.d.ts +14 -2
  255. package/general/upload-blob-to-private-supabase.js +1 -62
  256. package/general/upload-blob-to-public-supabase.d.ts +14 -2
  257. package/general/upload-blob-to-public-supabase.js +1 -62
  258. package/general/upload-image-to-private-supabase.d.ts +15 -3
  259. package/general/upload-image-to-private-supabase.js +1 -66
  260. package/general/upload-image-to-public-supabase.d.ts +15 -3
  261. package/general/upload-image-to-public-supabase.js +1 -66
  262. package/general/url-to-sentence-case.d.ts +3 -1
  263. package/general/url-to-sentence-case.js +1 -19
  264. package/general/validate-comment.d.ts +3 -1
  265. package/general/validate-comment.js +1 -21
  266. package/general/validate-email.d.ts +3 -1
  267. package/general/validate-email.js +1 -24
  268. package/general/validate-form.d.ts +12 -3
  269. package/general/validate-form.js +1 -29
  270. package/general/validate-name.d.ts +3 -1
  271. package/general/validate-name.js +1 -21
  272. package/hooks/use-change.d.ts +11 -2
  273. package/hooks/use-change.js +1 -23
  274. package/hooks/use-debounce.d.ts +10 -1
  275. package/hooks/use-debounce.js +1 -14
  276. package/hooks/use-fetch.d.ts +7 -5
  277. package/hooks/use-fetch.js +1 -239
  278. package/hooks/use-force-render.d.ts +6 -2
  279. package/hooks/use-force-render.js +1 -17
  280. package/hooks/use-ip-geo-location.d.ts +8 -1
  281. package/hooks/use-ip-geo-location.js +1 -79
  282. package/hooks/use-is-mobile.d.ts +8 -1
  283. package/hooks/use-is-mobile.js +1 -22
  284. package/hooks/use-module-entity-v2.d.ts +7 -4
  285. package/hooks/use-module-entity-v2.js +1 -188
  286. package/hooks/use-module-entity.d.ts +7 -4
  287. package/hooks/use-module-entity.js +1 -177
  288. package/hooks/use-phone-formatter.d.ts +10 -2
  289. package/hooks/use-phone-formatter.js +1 -23
  290. package/hooks/use-position.d.ts +6 -3
  291. package/hooks/use-position.js +1 -43
  292. package/hooks/use-rtl.d.ts +4 -2
  293. package/hooks/use-rtl.js +1 -84
  294. package/hooks/use-sticky.d.ts +3 -1
  295. package/hooks/use-sticky.js +1 -39
  296. package/hooks/use-toggle-state.d.ts +3 -2
  297. package/hooks/use-toggle-state.js +1 -26
  298. package/hooks/use-window-event-listener.d.ts +9 -1
  299. package/hooks/use-window-event-listener.js +1 -11
  300. package/hooks/with-seo.d.ts +11 -2
  301. package/hooks/with-seo.js +1 -37
  302. package/local-storage/get-storage-value.d.ts +5 -2
  303. package/local-storage/get-storage-value.js +1 -20
  304. package/local-storage/remove-storage-value.d.ts +3 -1
  305. package/local-storage/remove-storage-value.js +1 -14
  306. package/local-storage/set-storage-value.d.ts +3 -1
  307. package/local-storage/set-storage-value.js +1 -14
  308. package/local-storage/type.d.ts +3 -1
  309. package/local-storage/type.js +1 -2
  310. package/npm.d.d.ts +2 -0
  311. package/npm.d.js +0 -0
  312. package/package.json +20 -18
  313. package/storybook/generate-sitemap.d.ts +3 -1
  314. package/storybook/generate-sitemap.js +17 -26
  315. package/storybook/preview.d.ts +4 -2
  316. package/storybook/preview.js +1 -62
  317. package/storybook/react-design-story-script.d.ts +3 -1
  318. package/storybook/react-design-story-script.js +5 -27
  319. package/storybook/react-emoji-collection.d.ts +3 -1
  320. package/storybook/react-emoji-collection.js +10 -55
  321. package/storybook/react-emoji-story-script.d.ts +3 -1
  322. package/storybook/react-emoji-story-script.js +5 -31
  323. package/storybook/react-emoji-story-template.d.ts +3 -1
  324. package/storybook/react-emoji-story-template.js +45 -15
  325. package/storybook/react-icon-collection.d.ts +3 -1
  326. package/storybook/react-icon-collection.js +10 -42
  327. package/storybook/react-icon-story-script.d.ts +3 -1
  328. package/storybook/react-icon-story-script.js +5 -27
  329. package/storybook/react-icon-story-template.d.ts +3 -1
  330. package/storybook/react-icon-story-template.js +45 -14
  331. package/storybook/react-logo-collection.d.ts +3 -1
  332. package/storybook/react-logo-collection.js +10 -42
  333. package/storybook/react-logo-story-script.d.ts +3 -1
  334. package/storybook/react-logo-story-script.js +5 -27
  335. package/storybook/react-logo-story-template.d.ts +3 -1
  336. package/storybook/react-logo-story-template.js +45 -14
  337. package/storybook/react-pakistan-theme.d.ts +3 -1
  338. package/storybook/react-pakistan-theme.js +1 -31
  339. package/storybook/responsive-args.d.ts +11 -10
  340. package/storybook/responsive-args.js +1 -19
  341. package/storybook/responsive-component.d.ts +4 -2
  342. package/storybook/responsive-component.js +37 -23
  343. package/storybook/responsive-screens.d.ts +3 -1
  344. package/storybook/responsive-screens.js +1 -109
  345. package/storybook/theme.d.ts +17 -15
  346. package/storybook/theme.js +1 -1022
  347. package/api/stellar-solutions/app-user/index.d.ts +0 -51
  348. package/api/stellar-solutions/app-user/index.js +0 -210
  349. package/api/stellar-solutions/bank/index.d.ts +0 -59
  350. package/api/stellar-solutions/bank/index.js +0 -210
  351. package/api/stellar-solutions/branch/index.d.ts +0 -58
  352. package/api/stellar-solutions/branch/index.js +0 -220
  353. package/api/stellar-solutions/company/index.d.ts +0 -57
  354. package/api/stellar-solutions/company/index.js +0 -218
  355. package/api/stellar-solutions/company-report/index.d.ts +0 -15
  356. package/api/stellar-solutions/company-report/index.js +0 -74
  357. package/api/stellar-solutions/constants.d.ts +0 -19
  358. package/api/stellar-solutions/constants.js +0 -22
  359. package/api/stellar-solutions/contact/index.d.ts +0 -56
  360. package/api/stellar-solutions/contact/index.js +0 -217
  361. package/api/stellar-solutions/currency/index.d.ts +0 -55
  362. package/api/stellar-solutions/currency/index.js +0 -212
  363. package/api/stellar-solutions/customer/index.d.ts +0 -68
  364. package/api/stellar-solutions/customer/index.js +0 -249
  365. package/api/stellar-solutions/expense/index.d.ts +0 -58
  366. package/api/stellar-solutions/expense/index.js +0 -229
  367. package/api/stellar-solutions/expense-category/index.d.ts +0 -53
  368. package/api/stellar-solutions/expense-category/index.js +0 -214
  369. package/api/stellar-solutions/lead/index.d.ts +0 -51
  370. package/api/stellar-solutions/lead/index.js +0 -206
  371. package/api/stellar-solutions/menu-order/index.d.ts +0 -53
  372. package/api/stellar-solutions/menu-order/index.js +0 -202
  373. package/api/stellar-solutions/payment/index.d.ts +0 -65
  374. package/api/stellar-solutions/payment/index.js +0 -230
  375. package/api/stellar-solutions/payment-mode/index.d.ts +0 -53
  376. package/api/stellar-solutions/payment-mode/index.js +0 -191
  377. package/api/stellar-solutions/preference/index.d.ts +0 -25
  378. package/api/stellar-solutions/preference/index.js +0 -114
  379. package/api/stellar-solutions/product/index.d.ts +0 -64
  380. package/api/stellar-solutions/product/index.js +0 -235
  381. package/api/stellar-solutions/product-category/index.d.ts +0 -51
  382. package/api/stellar-solutions/product-category/index.js +0 -212
  383. package/api/stellar-solutions/profile/index.d.ts +0 -78
  384. package/api/stellar-solutions/profile/index.js +0 -234
  385. package/api/stellar-solutions/quote-invoice/index.d.ts +0 -97
  386. package/api/stellar-solutions/quote-invoice/index.js +0 -369
  387. package/api/stellar-solutions/quote-invoice-report/index.d.ts +0 -15
  388. package/api/stellar-solutions/quote-invoice-report/index.js +0 -74
  389. package/api/stellar-solutions/tax/index.d.ts +0 -55
  390. package/api/stellar-solutions/tax/index.js +0 -224
  391. package/api/stellar-solutions/types/common.d.ts +0 -24
  392. package/api/stellar-solutions/types/common.js +0 -22
  393. package/api/stellar-solutions/types/erp.d.ts +0 -302
  394. package/api/stellar-solutions/types/erp.js +0 -73
  395. package/api/stellar-solutions/types/index.d.ts +0 -3
  396. package/api/stellar-solutions/types/index.js +0 -19
  397. package/api/stellar-solutions/types/pos.d.ts +0 -176
  398. package/api/stellar-solutions/types/pos.js +0 -61
  399. package/constants/index.d.ts +0 -12
  400. package/constants/index.js +0 -28
  401. package/factory/index.d.ts +0 -2
  402. package/factory/index.js +0 -18
  403. package/general/index.d.ts +0 -95
  404. package/general/index.js +0 -111
  405. package/index.d.ts +0 -28
  406. package/index.js +0 -44
  407. package/local-storage/index.d.ts +0 -4
  408. package/local-storage/index.js +0 -20
  409. package/setupTests.d.ts +0 -1
  410. package/setupTests.js +0 -52
  411. package/storybook/index.d.ts +0 -17
  412. package/storybook/index.js +0 -33
@@ -1,327 +1 @@
1
- "use strict";
2
- var _a, _b;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.MOBILE_PLATFORM_MEDIA_SIZES = exports.MOBILE_PLATFORM_TYPES = exports.SOCIAL_MEDIA_POST_SIZES = exports.SOCIAL_MEDIA_POST_TYPES = void 0;
5
- var SOCIAL_MEDIA_POST_TYPES;
6
- (function (SOCIAL_MEDIA_POST_TYPES) {
7
- SOCIAL_MEDIA_POST_TYPES["FACEBOOK_COVER_PHOTO"] = "FACEBOOK_COVER_PHOTO";
8
- SOCIAL_MEDIA_POST_TYPES["FACEBOOK_EVENT_COVER"] = "FACEBOOK_EVENT_COVER";
9
- SOCIAL_MEDIA_POST_TYPES["FACEBOOK_PROFILE_PHOTO"] = "FACEBOOK_PROFILE_PHOTO";
10
- SOCIAL_MEDIA_POST_TYPES["FACEBOOK_POST_SHARE"] = "FACEBOOK_POST_SHARE";
11
- SOCIAL_MEDIA_POST_TYPES["FACEBOOK_STORIES"] = "FACEBOOK_STORIES";
12
- SOCIAL_MEDIA_POST_TYPES["INSTAGRAM_PROFILE_PHOTO"] = "INSTAGRAM_PROFILE_PHOTO";
13
- SOCIAL_MEDIA_POST_TYPES["INSTAGRAM_PHOTO_SHARE"] = "INSTAGRAM_PHOTO_SHARE";
14
- SOCIAL_MEDIA_POST_TYPES["INSTAGRAM_STORIES"] = "INSTAGRAM_STORIES";
15
- SOCIAL_MEDIA_POST_TYPES["LINKEDIN_PROFILE_PHOTO"] = "LINKEDIN_PROFILE_PHOTO";
16
- SOCIAL_MEDIA_POST_TYPES["LINKEDIN_PROFILE_BACKGROUND"] = "LINKEDIN_PROFILE_BACKGROUND";
17
- SOCIAL_MEDIA_POST_TYPES["LINKEDIN_COMPANY_LOGO"] = "LINKEDIN_COMPANY_LOGO";
18
- SOCIAL_MEDIA_POST_TYPES["LINKEDIN_COMPANY_COVER"] = "LINKEDIN_COMPANY_COVER";
19
- SOCIAL_MEDIA_POST_TYPES["LINKEDIN_SHARED_IMAGE"] = "LINKEDIN_SHARED_IMAGE";
20
- SOCIAL_MEDIA_POST_TYPES["LINKEDIN_SHARED_IMAGE_LINK"] = "LINKEDIN_SHARED_IMAGE_LINK";
21
- SOCIAL_MEDIA_POST_TYPES["PINTEREST_PROFILE_PHOTO"] = "PINTEREST_PROFILE_PHOTO";
22
- SOCIAL_MEDIA_POST_TYPES["PINTEREST_BOARD_COVER"] = "PINTEREST_BOARD_COVER";
23
- SOCIAL_MEDIA_POST_TYPES["PINTEREST_SHARED_PIN"] = "PINTEREST_SHARED_PIN";
24
- SOCIAL_MEDIA_POST_TYPES["PINTEREST_PROFILE_COVER"] = "PINTEREST_PROFILE_COVER";
25
- SOCIAL_MEDIA_POST_TYPES["SNAPCHAT_SHARED_IMAGE"] = "SNAPCHAT_SHARED_IMAGE";
26
- SOCIAL_MEDIA_POST_TYPES["TWITTER_HEADER"] = "TWITTER_HEADER";
27
- SOCIAL_MEDIA_POST_TYPES["TWITTER_PROFILE_PHOTO"] = "TWITTER_PROFILE_PHOTO";
28
- SOCIAL_MEDIA_POST_TYPES["TWITTER_POST_SHARE"] = "TWITTER_POST_SHARE";
29
- SOCIAL_MEDIA_POST_TYPES["YOUTUBE_CHANNEL_PROFILE"] = "YOUTUBE_CHANNEL_PROFILE";
30
- SOCIAL_MEDIA_POST_TYPES["YOUTUBE_CHANNEL_COVER"] = "YOUTUBE_CHANNEL_COVER";
31
- })(SOCIAL_MEDIA_POST_TYPES || (exports.SOCIAL_MEDIA_POST_TYPES = SOCIAL_MEDIA_POST_TYPES = {}));
32
- exports.SOCIAL_MEDIA_POST_SIZES = (_a = {},
33
- _a[SOCIAL_MEDIA_POST_TYPES.FACEBOOK_COVER_PHOTO] = {
34
- height: '360px',
35
- width: '820px',
36
- },
37
- _a[SOCIAL_MEDIA_POST_TYPES.FACEBOOK_EVENT_COVER] = {
38
- height: '1080px',
39
- width: '1920px',
40
- },
41
- _a[SOCIAL_MEDIA_POST_TYPES.FACEBOOK_PROFILE_PHOTO] = {
42
- height: '400px',
43
- width: '400px',
44
- },
45
- _a[SOCIAL_MEDIA_POST_TYPES.FACEBOOK_POST_SHARE] = {
46
- height: '630px',
47
- width: '1200px',
48
- },
49
- _a[SOCIAL_MEDIA_POST_TYPES.FACEBOOK_STORIES] = {
50
- height: '1920px',
51
- width: '1080px',
52
- },
53
- _a[SOCIAL_MEDIA_POST_TYPES.INSTAGRAM_PROFILE_PHOTO] = {
54
- height: '400px',
55
- width: '400px',
56
- },
57
- _a[SOCIAL_MEDIA_POST_TYPES.INSTAGRAM_PHOTO_SHARE] = {
58
- height: '1080px',
59
- width: '1080px',
60
- },
61
- _a[SOCIAL_MEDIA_POST_TYPES.INSTAGRAM_STORIES] = {
62
- height: '1920px',
63
- width: '1080px',
64
- },
65
- _a[SOCIAL_MEDIA_POST_TYPES.LINKEDIN_PROFILE_PHOTO] = {
66
- height: '400px',
67
- width: '400px',
68
- },
69
- _a[SOCIAL_MEDIA_POST_TYPES.LINKEDIN_PROFILE_BACKGROUND] = {
70
- height: '396px',
71
- width: '1584px',
72
- },
73
- _a[SOCIAL_MEDIA_POST_TYPES.LINKEDIN_COMPANY_LOGO] = {
74
- height: '300px',
75
- width: '300px',
76
- },
77
- _a[SOCIAL_MEDIA_POST_TYPES.LINKEDIN_COMPANY_COVER] = {
78
- height: '768px',
79
- width: '1536px',
80
- },
81
- _a[SOCIAL_MEDIA_POST_TYPES.LINKEDIN_SHARED_IMAGE] = {
82
- height: '736px',
83
- width: '1200px',
84
- },
85
- _a[SOCIAL_MEDIA_POST_TYPES.LINKEDIN_SHARED_IMAGE_LINK] = {
86
- height: '628px',
87
- width: '1200px',
88
- },
89
- _a[SOCIAL_MEDIA_POST_TYPES.PINTEREST_PROFILE_PHOTO] = {
90
- height: '400px',
91
- width: '400px',
92
- },
93
- _a[SOCIAL_MEDIA_POST_TYPES.PINTEREST_BOARD_COVER] = {
94
- height: '600px',
95
- width: '600px',
96
- },
97
- _a[SOCIAL_MEDIA_POST_TYPES.PINTEREST_SHARED_PIN] = {
98
- height: '900px',
99
- width: '600px',
100
- },
101
- _a[SOCIAL_MEDIA_POST_TYPES.PINTEREST_PROFILE_COVER] = {
102
- height: '1080px',
103
- width: '1920px',
104
- },
105
- _a[SOCIAL_MEDIA_POST_TYPES.SNAPCHAT_SHARED_IMAGE] = {
106
- height: '1920px',
107
- width: '1080px',
108
- },
109
- _a[SOCIAL_MEDIA_POST_TYPES.TWITTER_HEADER] = {
110
- height: '500px',
111
- width: '1500px',
112
- },
113
- _a[SOCIAL_MEDIA_POST_TYPES.TWITTER_PROFILE_PHOTO] = {
114
- height: '400px',
115
- width: '400px',
116
- },
117
- _a[SOCIAL_MEDIA_POST_TYPES.TWITTER_POST_SHARE] = {
118
- height: '630px',
119
- width: '1200px',
120
- },
121
- _a[SOCIAL_MEDIA_POST_TYPES.YOUTUBE_CHANNEL_PROFILE] = {
122
- height: '800px',
123
- width: '800px',
124
- },
125
- _a[SOCIAL_MEDIA_POST_TYPES.YOUTUBE_CHANNEL_COVER] = {
126
- height: '423px',
127
- width: '1546px',
128
- },
129
- _a);
130
- var MOBILE_PLATFORM_TYPES;
131
- (function (MOBILE_PLATFORM_TYPES) {
132
- MOBILE_PLATFORM_TYPES["ANDROID"] = "android";
133
- MOBILE_PLATFORM_TYPES["IOS"] = "ios";
134
- MOBILE_PLATFORM_TYPES["WINDOWS"] = "windows";
135
- })(MOBILE_PLATFORM_TYPES || (exports.MOBILE_PLATFORM_TYPES = MOBILE_PLATFORM_TYPES = {}));
136
- exports.MOBILE_PLATFORM_MEDIA_SIZES = (_b = {},
137
- _b[MOBILE_PLATFORM_TYPES.ANDROID] = {
138
- appIcons: {
139
- googlePlay: {
140
- height: '512px',
141
- width: '512px',
142
- },
143
- xxhdpi: {
144
- height: '144px',
145
- width: '144px',
146
- },
147
- xhdpi: {
148
- height: '96px',
149
- width: '96px',
150
- },
151
- hdpi: {
152
- height: '72px',
153
- width: '72px',
154
- },
155
- mdpi: {
156
- height: '48px',
157
- width: '48px',
158
- },
159
- },
160
- actionBarIcons: {
161
- xxhdpi: {
162
- height: '96px',
163
- width: '96px',
164
- },
165
- xhdpi: {
166
- height: '64px',
167
- width: '64px',
168
- },
169
- hdpi: {
170
- height: '48px',
171
- width: '48px',
172
- },
173
- mdpi: {
174
- height: '32px',
175
- width: '32px',
176
- },
177
- },
178
- smallContextualIcons: {
179
- xxhdpi: {
180
- height: '48px',
181
- width: '48px',
182
- },
183
- xhdpi: {
184
- height: '32px',
185
- width: '32px',
186
- },
187
- hdpi: {
188
- height: '24px',
189
- width: '24px',
190
- },
191
- mdpi: {
192
- height: '16px',
193
- width: '16px',
194
- },
195
- },
196
- notificationIcons: {
197
- xxhdpi: {
198
- height: '72px',
199
- width: '72px',
200
- },
201
- xhdpi: {
202
- height: '48px',
203
- width: '48px',
204
- },
205
- hdpi: {
206
- height: '36px',
207
- width: '36px',
208
- },
209
- mdpi: {
210
- height: '24px',
211
- width: '24px',
212
- },
213
- },
214
- },
215
- _b[MOBILE_PLATFORM_TYPES.IOS] = {
216
- appIcons: {
217
- xxxxxlarge: {
218
- height: '1024px',
219
- width: '1024px',
220
- },
221
- xxxxlarge: {
222
- height: '512px',
223
- width: '512px',
224
- },
225
- xxxlarge: {
226
- height: '228px',
227
- width: '228px',
228
- },
229
- xxlarge: {
230
- height: '180px',
231
- width: '180px',
232
- },
233
- xlarge: {
234
- height: '152px',
235
- width: '152px',
236
- },
237
- large: {
238
- height: '120px',
239
- width: '120px',
240
- },
241
- medium: {
242
- height: '87px',
243
- width: '87px',
244
- },
245
- small: {
246
- height: '80px',
247
- width: '80px',
248
- },
249
- xsmall: {
250
- height: '76px',
251
- width: '76px',
252
- },
253
- xxsmall: {
254
- height: '58px',
255
- width: '58px',
256
- },
257
- xxxsmall: {
258
- height: '40px',
259
- width: '40px',
260
- },
261
- xxxxsmall: {
262
- height: '29px',
263
- width: '29px',
264
- },
265
- },
266
- toolBarNavBarIcons: {
267
- large: {
268
- height: '44px',
269
- width: '44px',
270
- },
271
- small: {
272
- height: '22px',
273
- width: '22px',
274
- },
275
- },
276
- tabBarIcons: {
277
- large: {
278
- height: '50px',
279
- width: '50px',
280
- },
281
- small: {
282
- height: '25px',
283
- width: '25px',
284
- },
285
- },
286
- appleWatchNotificationCenterIcons: {
287
- large: {
288
- height: '36px',
289
- width: '36px',
290
- },
291
- small: {
292
- height: '29px',
293
- width: '29px',
294
- },
295
- },
296
- appleWatchLongLookNotificationIcons: {
297
- largeWatch: {
298
- height: '196px',
299
- width: '196px',
300
- },
301
- smallWatch: {
302
- height: '172px',
303
- width: '172px',
304
- },
305
- },
306
- },
307
- _b.appleWatchMenuIcons = {
308
- largeWatch: {
309
- height: '80px',
310
- width: '80px',
311
- },
312
- smallWatch: {
313
- height: '70px',
314
- width: '70px',
315
- },
316
- },
317
- _b.appleWatchCompanionIcons = {
318
- large: {
319
- height: '87px',
320
- width: '87px',
321
- },
322
- small: {
323
- height: '58px',
324
- width: '58px',
325
- },
326
- },
327
- _b);
1
+ var t=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var A=(E,x)=>{for(var O in x)t(E,O,{get:x[O],enumerable:!0})},e=(E,x,O,p)=>{if(x&&typeof x=="object"||typeof x=="function")for(let i of T(x))!N.call(E,i)&&i!==O&&t(E,i,{get:()=>x[i],enumerable:!(p=R(x,i))||p.enumerable});return E};var d=E=>e(t({},"__esModule",{value:!0}),E);var S={};A(S,{MOBILE_PLATFORM_MEDIA_SIZES:()=>P,MOBILE_PLATFORM_TYPES:()=>I,SOCIAL_MEDIA_POST_SIZES:()=>g,SOCIAL_MEDIA_POST_TYPES:()=>_});module.exports=d(S);var _=(h=>(h.FACEBOOK_COVER_PHOTO="FACEBOOK_COVER_PHOTO",h.FACEBOOK_EVENT_COVER="FACEBOOK_EVENT_COVER",h.FACEBOOK_PROFILE_PHOTO="FACEBOOK_PROFILE_PHOTO",h.FACEBOOK_POST_SHARE="FACEBOOK_POST_SHARE",h.FACEBOOK_STORIES="FACEBOOK_STORIES",h.INSTAGRAM_PROFILE_PHOTO="INSTAGRAM_PROFILE_PHOTO",h.INSTAGRAM_PHOTO_SHARE="INSTAGRAM_PHOTO_SHARE",h.INSTAGRAM_STORIES="INSTAGRAM_STORIES",h.LINKEDIN_PROFILE_PHOTO="LINKEDIN_PROFILE_PHOTO",h.LINKEDIN_PROFILE_BACKGROUND="LINKEDIN_PROFILE_BACKGROUND",h.LINKEDIN_COMPANY_LOGO="LINKEDIN_COMPANY_LOGO",h.LINKEDIN_COMPANY_COVER="LINKEDIN_COMPANY_COVER",h.LINKEDIN_SHARED_IMAGE="LINKEDIN_SHARED_IMAGE",h.LINKEDIN_SHARED_IMAGE_LINK="LINKEDIN_SHARED_IMAGE_LINK",h.PINTEREST_PROFILE_PHOTO="PINTEREST_PROFILE_PHOTO",h.PINTEREST_BOARD_COVER="PINTEREST_BOARD_COVER",h.PINTEREST_SHARED_PIN="PINTEREST_SHARED_PIN",h.PINTEREST_PROFILE_COVER="PINTEREST_PROFILE_COVER",h.SNAPCHAT_SHARED_IMAGE="SNAPCHAT_SHARED_IMAGE",h.TWITTER_HEADER="TWITTER_HEADER",h.TWITTER_PROFILE_PHOTO="TWITTER_PROFILE_PHOTO",h.TWITTER_POST_SHARE="TWITTER_POST_SHARE",h.YOUTUBE_CHANNEL_PROFILE="YOUTUBE_CHANNEL_PROFILE",h.YOUTUBE_CHANNEL_COVER="YOUTUBE_CHANNEL_COVER",h))(_||{});const g={FACEBOOK_COVER_PHOTO:{height:"360px",width:"820px"},FACEBOOK_EVENT_COVER:{height:"1080px",width:"1920px"},FACEBOOK_PROFILE_PHOTO:{height:"400px",width:"400px"},FACEBOOK_POST_SHARE:{height:"630px",width:"1200px"},FACEBOOK_STORIES:{height:"1920px",width:"1080px"},INSTAGRAM_PROFILE_PHOTO:{height:"400px",width:"400px"},INSTAGRAM_PHOTO_SHARE:{height:"1080px",width:"1080px"},INSTAGRAM_STORIES:{height:"1920px",width:"1080px"},LINKEDIN_PROFILE_PHOTO:{height:"400px",width:"400px"},LINKEDIN_PROFILE_BACKGROUND:{height:"396px",width:"1584px"},LINKEDIN_COMPANY_LOGO:{height:"300px",width:"300px"},LINKEDIN_COMPANY_COVER:{height:"768px",width:"1536px"},LINKEDIN_SHARED_IMAGE:{height:"736px",width:"1200px"},LINKEDIN_SHARED_IMAGE_LINK:{height:"628px",width:"1200px"},PINTEREST_PROFILE_PHOTO:{height:"400px",width:"400px"},PINTEREST_BOARD_COVER:{height:"600px",width:"600px"},PINTEREST_SHARED_PIN:{height:"900px",width:"600px"},PINTEREST_PROFILE_COVER:{height:"1080px",width:"1920px"},SNAPCHAT_SHARED_IMAGE:{height:"1920px",width:"1080px"},TWITTER_HEADER:{height:"500px",width:"1500px"},TWITTER_PROFILE_PHOTO:{height:"400px",width:"400px"},TWITTER_POST_SHARE:{height:"630px",width:"1200px"},YOUTUBE_CHANNEL_PROFILE:{height:"800px",width:"800px"},YOUTUBE_CHANNEL_COVER:{height:"423px",width:"1546px"}};var I=(p=>(p.ANDROID="android",p.IOS="ios",p.WINDOWS="windows",p))(I||{});const P={android:{appIcons:{googlePlay:{height:"512px",width:"512px"},xxhdpi:{height:"144px",width:"144px"},xhdpi:{height:"96px",width:"96px"},hdpi:{height:"72px",width:"72px"},mdpi:{height:"48px",width:"48px"}},actionBarIcons:{xxhdpi:{height:"96px",width:"96px"},xhdpi:{height:"64px",width:"64px"},hdpi:{height:"48px",width:"48px"},mdpi:{height:"32px",width:"32px"}},smallContextualIcons:{xxhdpi:{height:"48px",width:"48px"},xhdpi:{height:"32px",width:"32px"},hdpi:{height:"24px",width:"24px"},mdpi:{height:"16px",width:"16px"}},notificationIcons:{xxhdpi:{height:"72px",width:"72px"},xhdpi:{height:"48px",width:"48px"},hdpi:{height:"36px",width:"36px"},mdpi:{height:"24px",width:"24px"}}},ios:{appIcons:{xxxxxlarge:{height:"1024px",width:"1024px"},xxxxlarge:{height:"512px",width:"512px"},xxxlarge:{height:"228px",width:"228px"},xxlarge:{height:"180px",width:"180px"},xlarge:{height:"152px",width:"152px"},large:{height:"120px",width:"120px"},medium:{height:"87px",width:"87px"},small:{height:"80px",width:"80px"},xsmall:{height:"76px",width:"76px"},xxsmall:{height:"58px",width:"58px"},xxxsmall:{height:"40px",width:"40px"},xxxxsmall:{height:"29px",width:"29px"}},toolBarNavBarIcons:{large:{height:"44px",width:"44px"},small:{height:"22px",width:"22px"}},tabBarIcons:{large:{height:"50px",width:"50px"},small:{height:"25px",width:"25px"}},appleWatchNotificationCenterIcons:{large:{height:"36px",width:"36px"},small:{height:"29px",width:"29px"}},appleWatchLongLookNotificationIcons:{largeWatch:{height:"196px",width:"196px"},smallWatch:{height:"172px",width:"172px"}}},appleWatchMenuIcons:{largeWatch:{height:"80px",width:"80px"},smallWatch:{height:"70px",width:"70px"}},appleWatchCompanionIcons:{large:{height:"87px",width:"87px"},small:{height:"58px",width:"58px"}}};0&&(module.exports={MOBILE_PLATFORM_MEDIA_SIZES,MOBILE_PLATFORM_TYPES,SOCIAL_MEDIA_POST_SIZES,SOCIAL_MEDIA_POST_TYPES});
@@ -1,5 +1,7 @@
1
- export declare enum USER_ROLES {
1
+ declare enum USER_ROLES {
2
2
  ADMIN = "Admin",
3
3
  MANAGER = "Manager",
4
4
  USER = "User"
5
5
  }
6
+
7
+ export { USER_ROLES };
@@ -1,9 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.USER_ROLES = void 0;
4
- var USER_ROLES;
5
- (function (USER_ROLES) {
6
- USER_ROLES["ADMIN"] = "Admin";
7
- USER_ROLES["MANAGER"] = "Manager";
8
- USER_ROLES["USER"] = "User";
9
- })(USER_ROLES || (exports.USER_ROLES = USER_ROLES = {}));
1
+ var a=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var i=(A,e)=>{for(var M in e)a(A,M,{get:e[M],enumerable:!0})},o=(A,e,M,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of d(e))!g.call(A,r)&&r!==M&&a(A,r,{get:()=>e[r],enumerable:!(n=N(e,r))||n.enumerable});return A};var p=A=>o(a({},"__esModule",{value:!0}),A);var s={};i(s,{USER_ROLES:()=>m});module.exports=p(s);var m=(n=>(n.ADMIN="Admin",n.MANAGER="Manager",n.USER="User",n))(m||{});0&&(module.exports={USER_ROLES});
@@ -1,266 +1,2 @@
1
- /**
2
- * TypeScript Types Generated from Prisma Schema - Academics
3
- *
4
- * This file contains TypeScript interfaces for class, section, subject, course,
5
- * teacher, enrollment, attendance, grade, schedule, student profile, family,
6
- * and family member domain models.
7
- */
8
- import { GENDER, FAMILY_MEMBER_ROLE, STUDENT_STATUS, ATTENDANCE_STATUS, GRADE_TYPE, DAY_OF_WEEK } from './enums';
9
- import type { SchoolBE, CampusBE, UserBE } from './user-management';
10
- import type { FeeStructureBE, StudentFeeBE } from './finance';
11
- /**
12
- * Family represents a household sharing a single user account
13
- * Contains parents and students using the same login credentials
14
- */
15
- export interface FamilyBE {
16
- address: string | null;
17
- city: string | null;
18
- country: string | null;
19
- createdAt: string;
20
- enabled: boolean;
21
- familyCode: string;
22
- id: string;
23
- postalCode: string | null;
24
- schoolId: string;
25
- state: string | null;
26
- updatedAt: string;
27
- members?: FamilyMemberBE[];
28
- school?: SchoolBE;
29
- studentFees?: StudentFeeBE[];
30
- }
31
- /**
32
- * FamilyMember represents individuals within a family
33
- * Multiple members (parents + students) share the family's user account
34
- */
35
- export interface FamilyMemberBE {
36
- avatar: string | null;
37
- bloodGroup: string | null;
38
- createdAt: string;
39
- dateOfBirth: Date | string | null;
40
- email: string | null;
41
- emergencyPhone: string | null;
42
- enabled: boolean;
43
- familyId: string;
44
- firstName: string;
45
- gender: GENDER;
46
- id: string;
47
- idNumber: string;
48
- isPrimary: boolean;
49
- lastName: string;
50
- occupation: string | null;
51
- organization: string | null;
52
- phone: string | null;
53
- relationship: string;
54
- role: FAMILY_MEMBER_ROLE;
55
- updatedAt: string;
56
- family?: FamilyBE;
57
- studentProfile?: StudentProfileBE;
58
- }
59
- /**
60
- * StudentProfile extends FamilyMember with student-specific data
61
- */
62
- export interface StudentProfileBE {
63
- campusId: string | null;
64
- computerNumber: string;
65
- createdAt: string;
66
- discountCodeId: string | null;
67
- enabled: boolean;
68
- familyMemberId: string;
69
- hafiz: boolean;
70
- id: string;
71
- notes: string | null;
72
- orphan: boolean;
73
- previousSchool: string | null;
74
- remarks: string | null;
75
- schoolId: string;
76
- status: STUDENT_STATUS;
77
- studentCode: string;
78
- updatedAt: string;
79
- attendances?: AttendanceBE[];
80
- campus?: CampusBE;
81
- enrollments?: EnrollmentBE[];
82
- familyMember?: FamilyMemberBE;
83
- grades?: GradeBE[];
84
- studentFees?: StudentFeeBE[];
85
- }
86
- /**
87
- * Class represents grade levels (e.g., Grade 1, Grade 2, Grade 10)
88
- */
89
- export interface ClassBE {
90
- campusId: string | null;
91
- code: string;
92
- createdAt: string;
93
- description: string | null;
94
- enabled: boolean;
95
- id: string;
96
- name: string;
97
- schoolId: string;
98
- updatedAt: string;
99
- campus?: CampusBE;
100
- feeStructures?: FeeStructureBE[];
101
- school?: SchoolBE;
102
- sections?: SectionBE[];
103
- }
104
- /**
105
- * Section represents a named division within a school (school-wide pool).
106
- */
107
- export interface SectionBE {
108
- capacity: number | null;
109
- createdAt: string;
110
- enabled: boolean;
111
- id: string;
112
- name: string;
113
- schoolId: string;
114
- updatedAt: string;
115
- class?: ClassBE;
116
- courses?: CourseBE[];
117
- enrollments?: EnrollmentBE[];
118
- school?: SchoolBE;
119
- }
120
- /**
121
- * Subject represents academic subjects (e.g., Mathematics, English, Science)
122
- */
123
- export interface SubjectBE {
124
- code: string;
125
- createdAt: string;
126
- description: string | null;
127
- enabled: boolean;
128
- id: string;
129
- name: string;
130
- schoolId: string;
131
- updatedAt: string;
132
- courses?: CourseBE[];
133
- school?: SchoolBE;
134
- }
135
- /**
136
- * Course represents a subject taught in a specific section by a teacher
137
- */
138
- export interface CourseBE {
139
- classId: string;
140
- code: string;
141
- createdAt: string;
142
- enabled: boolean;
143
- id: string;
144
- schoolId: string;
145
- sectionId: string;
146
- subjectId: string;
147
- teacherId: string;
148
- updatedAt: Date;
149
- class?: ClassBE;
150
- grades?: GradeBE[];
151
- schedules?: ScheduleBE[];
152
- school?: SchoolBE;
153
- section?: SectionBE;
154
- subject?: SubjectBE;
155
- teacher?: TeacherBE;
156
- }
157
- /**
158
- * Teacher represents teaching staff
159
- */
160
- export interface TeacherBE {
161
- address: string | null;
162
- avatar: string | null;
163
- bio: string | null;
164
- campusId: string | null;
165
- city: string | null;
166
- country: string | null;
167
- createdAt: string;
168
- dateOfBirth: Date | string | null;
169
- emergencyPhone: string | null;
170
- enabled: boolean;
171
- experience: number | null;
172
- firstName: string;
173
- gender: GENDER | null;
174
- id: string;
175
- joiningDate: Date | string;
176
- lastName: string;
177
- phone: string | null;
178
- postalCode: string | null;
179
- qualification: string | null;
180
- schoolId: string;
181
- specialization: string | null;
182
- state: string | null;
183
- teacherCode: string;
184
- updatedAt: Date;
185
- userId: string | null;
186
- campus?: CampusBE;
187
- courses?: CourseBE[];
188
- school?: SchoolBE;
189
- user?: UserBE | null;
190
- }
191
- /**
192
- * Enrollment represents a student enrolled in a section.
193
- * All courses taught in that section are implied.
194
- */
195
- export interface EnrollmentBE {
196
- createdAt: string;
197
- enabled: boolean;
198
- enrollmentDate: Date | string;
199
- id: string;
200
- classId: string;
201
- sectionId: string;
202
- studentProfileId: string;
203
- updatedAt: string;
204
- class?: ClassBE;
205
- grades?: GradeBE[];
206
- section?: SectionBE;
207
- studentProfile?: StudentProfileBE;
208
- }
209
- /**
210
- * Attendance tracks daily student presence in courses
211
- */
212
- export interface AttendanceBE {
213
- createdAt: string;
214
- date: Date | string;
215
- enabled: boolean;
216
- id: string;
217
- remarks: string | null;
218
- schoolId: string;
219
- status: ATTENDANCE_STATUS;
220
- studentProfileId: string;
221
- updatedAt: string;
222
- school?: SchoolBE;
223
- studentProfile?: StudentProfileBE;
224
- }
225
- /**
226
- * Grade represents student assessment results
227
- */
228
- export interface GradeBE {
229
- assessmentDate: Date | string;
230
- courseId: string;
231
- createdAt: Date;
232
- enabled: boolean;
233
- enrollmentId: string;
234
- grade: string | null;
235
- gradeType: GRADE_TYPE;
236
- id: string;
237
- marksObtained: number;
238
- maxMarks: number;
239
- percentage: number | null;
240
- remarks: string | null;
241
- schoolId: string;
242
- studentProfileId: string;
243
- title: string;
244
- updatedAt: Date;
245
- course?: CourseBE;
246
- enrollment?: EnrollmentBE;
247
- school?: SchoolBE;
248
- studentProfile?: StudentProfileBE;
249
- }
250
- /**
251
- * Schedule represents class timetable
252
- */
253
- export interface ScheduleBE {
254
- courseId: string;
255
- createdAt: string;
256
- dayOfWeek: DAY_OF_WEEK;
257
- enabled: boolean;
258
- endTime: string;
259
- id: string;
260
- room: string | null;
261
- schoolId: string;
262
- startTime: string;
263
- updatedAt: string;
264
- course?: CourseBE;
265
- school?: SchoolBE;
266
- }
1
+ import './enums.js';
2
+ export { A as AttendanceBE, o as ClassBE, p as CourseBE, q as EnrollmentBE, r as FamilyBE, s as FamilyMemberBE, G as GradeBE, t as ScheduleBE, u as SectionBE, v as StudentProfileBE, w as SubjectBE, T as TeacherBE } from './admission.js';
@@ -1,9 +1 @@
1
- "use strict";
2
- /**
3
- * TypeScript Types Generated from Prisma Schema - Academics
4
- *
5
- * This file contains TypeScript interfaces for class, section, subject, course,
6
- * teacher, enrollment, attendance, grade, schedule, student profile, family,
7
- * and family member domain models.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ var s=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var d=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of o(e))!a.call(t,n)&&n!==i&&s(t,n,{get:()=>e[n],enumerable:!(r=l(e,n))||r.enumerable});return t};var g=t=>d(s({},"__esModule",{value:!0}),t);var u={};module.exports=g(u);