@tudopz/model 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/dist/libs/model/libs/model/README.md +364 -0
  2. package/package.json +7 -0
  3. package/src/constant/audience-list.d.ts +2 -0
  4. package/src/constant/audience-list.js +6 -0
  5. package/src/constant/audience-list.js.map +1 -0
  6. package/src/constant/campaign.d.ts +2 -0
  7. package/src/constant/campaign.js +6 -0
  8. package/src/constant/campaign.js.map +1 -0
  9. package/src/constant/conversion-table.d.ts +1 -0
  10. package/src/constant/conversion-table.js +17 -0
  11. package/src/constant/conversion-table.js.map +1 -0
  12. package/src/constant/country.d.ts +1 -0
  13. package/src/constant/country.js +234 -0
  14. package/src/constant/country.js.map +1 -0
  15. package/src/constant/dimension.d.ts +2 -0
  16. package/src/constant/dimension.js +6 -0
  17. package/src/constant/dimension.js.map +1 -0
  18. package/src/constant/event.d.ts +158 -0
  19. package/src/constant/event.js +230 -0
  20. package/src/constant/event.js.map +1 -0
  21. package/src/constant/extracurricular-activity.d.ts +1 -0
  22. package/src/constant/extracurricular-activity.js +11 -0
  23. package/src/constant/extracurricular-activity.js.map +1 -0
  24. package/src/constant/guardian.d.ts +1 -0
  25. package/src/constant/guardian.js +5 -0
  26. package/src/constant/guardian.js.map +1 -0
  27. package/src/constant/lead-form.d.ts +7 -0
  28. package/src/constant/lead-form.js +35 -0
  29. package/src/constant/lead-form.js.map +1 -0
  30. package/src/constant/lead.d.ts +1 -0
  31. package/src/constant/lead.js +14 -0
  32. package/src/constant/lead.js.map +1 -0
  33. package/src/constant/location.d.ts +2 -0
  34. package/src/constant/location.js +24 -0
  35. package/src/constant/location.js.map +1 -0
  36. package/src/constant/nationality.d.ts +1 -0
  37. package/src/constant/nationality.js +200 -0
  38. package/src/constant/nationality.js.map +1 -0
  39. package/src/constant/neo-test.d.ts +7 -0
  40. package/src/constant/neo-test.js +11 -0
  41. package/src/constant/neo-test.js.map +1 -0
  42. package/src/constant/refund.d.ts +1 -0
  43. package/src/constant/refund.js +8 -0
  44. package/src/constant/refund.js.map +1 -0
  45. package/src/constant/sale.d.ts +103 -0
  46. package/src/constant/sale.js +247 -0
  47. package/src/constant/sale.js.map +1 -0
  48. package/src/constant/school.d.ts +10 -0
  49. package/src/constant/school.js +671 -0
  50. package/src/constant/school.js.map +1 -0
  51. package/src/constant/service-course.d.ts +1 -0
  52. package/src/constant/service-course.js +5 -0
  53. package/src/constant/service-course.js.map +1 -0
  54. package/src/constant/student-assignment.d.ts +1 -0
  55. package/src/constant/student-assignment.js +5 -0
  56. package/src/constant/student-assignment.js.map +1 -0
  57. package/src/constant/student-service.d.ts +21 -0
  58. package/src/constant/student-service.js +147 -0
  59. package/src/constant/student-service.js.map +1 -0
  60. package/src/constant/subject.d.ts +33 -0
  61. package/src/constant/subject.js +155 -0
  62. package/src/constant/subject.js.map +1 -0
  63. package/src/constant/task.d.ts +2 -0
  64. package/src/constant/task.js +6 -0
  65. package/src/constant/task.js.map +1 -0
  66. package/src/constant/university-preference.d.ts +3 -0
  67. package/src/constant/university-preference.js +11 -0
  68. package/src/constant/university-preference.js.map +1 -0
  69. package/src/constant/user.d.ts +2 -0
  70. package/src/constant/user.js +16 -0
  71. package/src/constant/user.js.map +1 -0
  72. package/src/constants.d.ts +23 -0
  73. package/src/constants.js +27 -0
  74. package/src/constants.js.map +1 -0
  75. package/src/index.d.ts +2 -0
  76. package/src/index.js +8 -0
  77. package/src/index.js.map +1 -0
  78. package/src/model/access-token.d.ts +12 -0
  79. package/src/model/access-token.js +49 -0
  80. package/src/model/access-token.js.map +1 -0
  81. package/src/model/answer-key.d.ts +7 -0
  82. package/src/model/answer-key.js +30 -0
  83. package/src/model/answer-key.js.map +1 -0
  84. package/src/model/audience-list.d.ts +24 -0
  85. package/src/model/audience-list.js +69 -0
  86. package/src/model/audience-list.js.map +1 -0
  87. package/src/model/audit-log.d.ts +12 -0
  88. package/src/model/audit-log.js +50 -0
  89. package/src/model/audit-log.js.map +1 -0
  90. package/src/model/campaign-signature.d.ts +9 -0
  91. package/src/model/campaign-signature.js +37 -0
  92. package/src/model/campaign-signature.js.map +1 -0
  93. package/src/model/campaign.d.ts +29 -0
  94. package/src/model/campaign.js +94 -0
  95. package/src/model/campaign.js.map +1 -0
  96. package/src/model/case-study.d.ts +7 -0
  97. package/src/model/case-study.js +29 -0
  98. package/src/model/case-study.js.map +1 -0
  99. package/src/model/conversion-table.d.ts +25 -0
  100. package/src/model/conversion-table.js +59 -0
  101. package/src/model/conversion-table.js.map +1 -0
  102. package/src/model/course-template-event.d.ts +12 -0
  103. package/src/model/course-template-event.js +47 -0
  104. package/src/model/course-template-event.js.map +1 -0
  105. package/src/model/course-template.d.ts +14 -0
  106. package/src/model/course-template.js +52 -0
  107. package/src/model/course-template.js.map +1 -0
  108. package/src/model/dimension.d.ts +20 -0
  109. package/src/model/dimension.js +53 -0
  110. package/src/model/dimension.js.map +1 -0
  111. package/src/model/education-system.d.ts +4 -0
  112. package/src/model/education-system.js +20 -0
  113. package/src/model/education-system.js.map +1 -0
  114. package/src/model/event-log.d.ts +11 -0
  115. package/src/model/event-log.js +44 -0
  116. package/src/model/event-log.js.map +1 -0
  117. package/src/model/event-registration.d.ts +10 -0
  118. package/src/model/event-registration.js +41 -0
  119. package/src/model/event-registration.js.map +1 -0
  120. package/src/model/event-to-user.d.ts +9 -0
  121. package/src/model/event-to-user.js +34 -0
  122. package/src/model/event-to-user.js.map +1 -0
  123. package/src/model/event.d.ts +94 -0
  124. package/src/model/event.js +210 -0
  125. package/src/model/event.js.map +1 -0
  126. package/src/model/extracurricular-activity.d.ts +22 -0
  127. package/src/model/extracurricular-activity.js +70 -0
  128. package/src/model/extracurricular-activity.js.map +1 -0
  129. package/src/model/file-access.d.ts +13 -0
  130. package/src/model/file-access.js +50 -0
  131. package/src/model/file-access.js.map +1 -0
  132. package/src/model/file-category.d.ts +8 -0
  133. package/src/model/file-category.js +33 -0
  134. package/src/model/file-category.js.map +1 -0
  135. package/src/model/file.d.ts +22 -0
  136. package/src/model/file.js +83 -0
  137. package/src/model/file.js.map +1 -0
  138. package/src/model/gmail-message-email-index.d.ts +15 -0
  139. package/src/model/gmail-message-email-index.js +47 -0
  140. package/src/model/gmail-message-email-index.js.map +1 -0
  141. package/src/model/gmail-message.d.ts +17 -0
  142. package/src/model/gmail-message.js +69 -0
  143. package/src/model/gmail-message.js.map +1 -0
  144. package/src/model/google-user.d.ts +9 -0
  145. package/src/model/google-user.js +40 -0
  146. package/src/model/google-user.js.map +1 -0
  147. package/src/model/guardian.d.ts +17 -0
  148. package/src/model/guardian.js +66 -0
  149. package/src/model/guardian.js.map +1 -0
  150. package/src/model/high-school-record.d.ts +18 -0
  151. package/src/model/high-school-record.js +70 -0
  152. package/src/model/high-school-record.js.map +1 -0
  153. package/src/model/holiday.d.ts +9 -0
  154. package/src/model/holiday.js +38 -0
  155. package/src/model/holiday.js.map +1 -0
  156. package/src/model/invoice.d.ts +14 -0
  157. package/src/model/invoice.js +55 -0
  158. package/src/model/invoice.js.map +1 -0
  159. package/src/model/journey-stage.d.ts +9 -0
  160. package/src/model/journey-stage.js +38 -0
  161. package/src/model/journey-stage.js.map +1 -0
  162. package/src/model/journey-to-student.d.ts +12 -0
  163. package/src/model/journey-to-student.js +46 -0
  164. package/src/model/journey-to-student.js.map +1 -0
  165. package/src/model/journey.d.ts +12 -0
  166. package/src/model/journey.js +44 -0
  167. package/src/model/journey.js.map +1 -0
  168. package/src/model/lead-assignment.d.ts +9 -0
  169. package/src/model/lead-assignment.js +38 -0
  170. package/src/model/lead-assignment.js.map +1 -0
  171. package/src/model/lead-form-field.d.ts +34 -0
  172. package/src/model/lead-form-field.js +83 -0
  173. package/src/model/lead-form-field.js.map +1 -0
  174. package/src/model/lead-form.d.ts +47 -0
  175. package/src/model/lead-form.js +131 -0
  176. package/src/model/lead-form.js.map +1 -0
  177. package/src/model/lead-ip-ban.d.ts +6 -0
  178. package/src/model/lead-ip-ban.js +28 -0
  179. package/src/model/lead-ip-ban.js.map +1 -0
  180. package/src/model/lead-queue.d.ts +5 -0
  181. package/src/model/lead-queue.js +24 -0
  182. package/src/model/lead-queue.js.map +1 -0
  183. package/src/model/lead.d.ts +46 -0
  184. package/src/model/lead.js +159 -0
  185. package/src/model/lead.js.map +1 -0
  186. package/src/model/log.d.ts +21 -0
  187. package/src/model/log.js +63 -0
  188. package/src/model/log.js.map +1 -0
  189. package/src/model/neo-tag.d.ts +12 -0
  190. package/src/model/neo-tag.js +38 -0
  191. package/src/model/neo-tag.js.map +1 -0
  192. package/src/model/neo-test-flow.d.ts +28 -0
  193. package/src/model/neo-test-flow.js +17 -0
  194. package/src/model/neo-test-flow.js.map +1 -0
  195. package/src/model/neo-test-question-answer.d.ts +8 -0
  196. package/src/model/neo-test-question-answer.js +34 -0
  197. package/src/model/neo-test-question-answer.js.map +1 -0
  198. package/src/model/neo-test-question-category.d.ts +8 -0
  199. package/src/model/neo-test-question-category.js +33 -0
  200. package/src/model/neo-test-question-category.js.map +1 -0
  201. package/src/model/neo-test-question.d.ts +30 -0
  202. package/src/model/neo-test-question.js +99 -0
  203. package/src/model/neo-test-question.js.map +1 -0
  204. package/src/model/neo-test-section-to-question.d.ts +9 -0
  205. package/src/model/neo-test-section-to-question.js +36 -0
  206. package/src/model/neo-test-section-to-question.js.map +1 -0
  207. package/src/model/neo-test-section.d.ts +10 -0
  208. package/src/model/neo-test-section.js +39 -0
  209. package/src/model/neo-test-section.js.map +1 -0
  210. package/src/model/neo-test.d.ts +19 -0
  211. package/src/model/neo-test.js +59 -0
  212. package/src/model/neo-test.js.map +1 -0
  213. package/src/model/pd-pipeline.d.ts +7 -0
  214. package/src/model/pd-pipeline.js +30 -0
  215. package/src/model/pd-pipeline.js.map +1 -0
  216. package/src/model/pd-user.d.ts +8 -0
  217. package/src/model/pd-user.js +34 -0
  218. package/src/model/pd-user.js.map +1 -0
  219. package/src/model/profile.d.ts +469 -0
  220. package/src/model/profile.js +588 -0
  221. package/src/model/profile.js.map +1 -0
  222. package/src/model/pup-lead.d.ts +49 -0
  223. package/src/model/pup-lead.js +164 -0
  224. package/src/model/pup-lead.js.map +1 -0
  225. package/src/model/refund.d.ts +23 -0
  226. package/src/model/refund.js +81 -0
  227. package/src/model/refund.js.map +1 -0
  228. package/src/model/sale-payment.d.ts +18 -0
  229. package/src/model/sale-payment.js +75 -0
  230. package/src/model/sale-payment.js.map +1 -0
  231. package/src/model/sale-split.d.ts +10 -0
  232. package/src/model/sale-split.js +41 -0
  233. package/src/model/sale-split.js.map +1 -0
  234. package/src/model/sale-sub-type-to-service.d.ts +8 -0
  235. package/src/model/sale-sub-type-to-service.js +31 -0
  236. package/src/model/sale-sub-type-to-service.js.map +1 -0
  237. package/src/model/sale-sub-type.d.ts +12 -0
  238. package/src/model/sale-sub-type.js +46 -0
  239. package/src/model/sale-sub-type.js.map +1 -0
  240. package/src/model/sale-to-event.d.ts +10 -0
  241. package/src/model/sale-to-event.js +38 -0
  242. package/src/model/sale-to-event.js.map +1 -0
  243. package/src/model/sale.d.ts +138 -0
  244. package/src/model/sale.js +322 -0
  245. package/src/model/sale.js.map +1 -0
  246. package/src/model/school.d.ts +14 -0
  247. package/src/model/school.js +40 -0
  248. package/src/model/school.js.map +1 -0
  249. package/src/model/service-course-session.d.ts +21 -0
  250. package/src/model/service-course-session.js +69 -0
  251. package/src/model/service-course-session.js.map +1 -0
  252. package/src/model/service-course.d.ts +12 -0
  253. package/src/model/service-course.js +49 -0
  254. package/src/model/service-course.js.map +1 -0
  255. package/src/model/service-prompt.d.ts +8 -0
  256. package/src/model/service-prompt.js +33 -0
  257. package/src/model/service-prompt.js.map +1 -0
  258. package/src/model/service-rate.d.ts +8 -0
  259. package/src/model/service-rate.js +36 -0
  260. package/src/model/service-rate.js.map +1 -0
  261. package/src/model/staff-availability.d.ts +15 -0
  262. package/src/model/staff-availability.js +45 -0
  263. package/src/model/staff-availability.js.map +1 -0
  264. package/src/model/staff-hour-log.d.ts +24 -0
  265. package/src/model/staff-hour-log.js +70 -0
  266. package/src/model/staff-hour-log.js.map +1 -0
  267. package/src/model/staff-hour.d.ts +116 -0
  268. package/src/model/staff-hour.js +568 -0
  269. package/src/model/staff-hour.js.map +1 -0
  270. package/src/model/staff-subject-tag.d.ts +9 -0
  271. package/src/model/staff-subject-tag.js +38 -0
  272. package/src/model/staff-subject-tag.js.map +1 -0
  273. package/src/model/student-answer.d.ts +12 -0
  274. package/src/model/student-answer.js +49 -0
  275. package/src/model/student-answer.js.map +1 -0
  276. package/src/model/student-assignment.d.ts +15 -0
  277. package/src/model/student-assignment.js +46 -0
  278. package/src/model/student-assignment.js.map +1 -0
  279. package/src/model/student-extra.d.ts +17 -0
  280. package/src/model/student-extra.js +70 -0
  281. package/src/model/student-extra.js.map +1 -0
  282. package/src/model/student-goal.d.ts +12 -0
  283. package/src/model/student-goal.js +47 -0
  284. package/src/model/student-goal.js.map +1 -0
  285. package/src/model/student-note-checklist-item.d.ts +8 -0
  286. package/src/model/student-note-checklist-item.js +34 -0
  287. package/src/model/student-note-checklist-item.js.map +1 -0
  288. package/src/model/student-note.d.ts +28 -0
  289. package/src/model/student-note.js +96 -0
  290. package/src/model/student-note.js.map +1 -0
  291. package/src/model/student-service-deadline.d.ts +8 -0
  292. package/src/model/student-service-deadline.js +33 -0
  293. package/src/model/student-service-deadline.js.map +1 -0
  294. package/src/model/student-service-membership-log.d.ts +27 -0
  295. package/src/model/student-service-membership-log.js +73 -0
  296. package/src/model/student-service-membership-log.js.map +1 -0
  297. package/src/model/student-service-membership.d.ts +19 -0
  298. package/src/model/student-service-membership.js +81 -0
  299. package/src/model/student-service-membership.js.map +1 -0
  300. package/src/model/student-service.d.ts +77 -0
  301. package/src/model/student-service.js +124 -0
  302. package/src/model/student-service.js.map +1 -0
  303. package/src/model/student-session-attendance.d.ts +17 -0
  304. package/src/model/student-session-attendance.js +64 -0
  305. package/src/model/student-session-attendance.js.map +1 -0
  306. package/src/model/student-target.d.ts +21 -0
  307. package/src/model/student-target.js +80 -0
  308. package/src/model/student-target.js.map +1 -0
  309. package/src/model/task-attachment.d.ts +17 -0
  310. package/src/model/task-attachment.js +68 -0
  311. package/src/model/task-attachment.js.map +1 -0
  312. package/src/model/task-comment.d.ts +13 -0
  313. package/src/model/task-comment.js +52 -0
  314. package/src/model/task-comment.js.map +1 -0
  315. package/src/model/task.d.ts +33 -0
  316. package/src/model/task.js +98 -0
  317. package/src/model/task.js.map +1 -0
  318. package/src/model/test-attempt.d.ts +27 -0
  319. package/src/model/test-attempt.js +90 -0
  320. package/src/model/test-attempt.js.map +1 -0
  321. package/src/model/test-category.d.ts +10 -0
  322. package/src/model/test-category.js +38 -0
  323. package/src/model/test-category.js.map +1 -0
  324. package/src/model/test-question.d.ts +28 -0
  325. package/src/model/test-question.js +88 -0
  326. package/src/model/test-question.js.map +1 -0
  327. package/src/model/test-report.d.ts +123 -0
  328. package/src/model/test-report.js +40 -0
  329. package/src/model/test-report.js.map +1 -0
  330. package/src/model/test-score.d.ts +12 -0
  331. package/src/model/test-score.js +50 -0
  332. package/src/model/test-score.js.map +1 -0
  333. package/src/model/test-section.d.ts +11 -0
  334. package/src/model/test-section.js +43 -0
  335. package/src/model/test-section.js.map +1 -0
  336. package/src/model/test.d.ts +18 -0
  337. package/src/model/test.js +62 -0
  338. package/src/model/test.js.map +1 -0
  339. package/src/model/timeline.d.ts +24 -0
  340. package/src/model/timeline.js +10 -0
  341. package/src/model/timeline.js.map +1 -0
  342. package/src/model/university-preference.d.ts +15 -0
  343. package/src/model/university-preference.js +62 -0
  344. package/src/model/university-preference.js.map +1 -0
  345. package/src/model/user-preference.d.ts +10 -0
  346. package/src/model/user-preference.js +41 -0
  347. package/src/model/user-preference.js.map +1 -0
  348. package/src/model/user-to-guardian.d.ts +21 -0
  349. package/src/model/user-to-guardian.js +67 -0
  350. package/src/model/user-to-guardian.js.map +1 -0
  351. package/src/model/user.d.ts +91 -0
  352. package/src/model/user.js +248 -0
  353. package/src/model/user.js.map +1 -0
  354. package/src/model/wa-message.d.ts +21 -0
  355. package/src/model/wa-message.js +74 -0
  356. package/src/model/wa-message.js.map +1 -0
  357. package/src/model/zoom-info.d.ts +9 -0
  358. package/src/model/zoom-info.js +37 -0
  359. package/src/model/zoom-info.js.map +1 -0
  360. package/src/models.d.ts +94 -0
  361. package/src/models.js +98 -0
  362. package/src/models.js.map +1 -0
@@ -0,0 +1,33 @@
1
+ import { TaskAttachment } from './task-attachment';
2
+ import { TaskComment } from './task-comment';
3
+ import { User } from './user';
4
+ export declare enum TASK_STATUS {
5
+ TODO = 1,
6
+ IN_PROGRESS = 2,
7
+ COMPLETED = 3,
8
+ CANCELLED = 4
9
+ }
10
+ export declare enum TASK_PRIORITY {
11
+ URGENT = 1,
12
+ HIGH = 2,
13
+ MEDIUM = 3,
14
+ LOW = 4
15
+ }
16
+ export declare class Task {
17
+ id: number;
18
+ title: string;
19
+ description?: string;
20
+ dueDate?: Date;
21
+ priority: TASK_PRIORITY;
22
+ status: TASK_STATUS;
23
+ creator: User;
24
+ creatorId: number;
25
+ student?: User;
26
+ studentId?: number;
27
+ assignees: User[];
28
+ comments: TaskComment[];
29
+ attachments: TaskAttachment[];
30
+ createdAt: Date;
31
+ updatedAt: Date;
32
+ deletedAt?: Date;
33
+ }
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Task = exports.TASK_PRIORITY = exports.TASK_STATUS = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const typeorm_1 = require("typeorm");
6
+ const user_1 = require("./user");
7
+ var TASK_STATUS;
8
+ (function (TASK_STATUS) {
9
+ TASK_STATUS[TASK_STATUS["TODO"] = 1] = "TODO";
10
+ TASK_STATUS[TASK_STATUS["IN_PROGRESS"] = 2] = "IN_PROGRESS";
11
+ TASK_STATUS[TASK_STATUS["COMPLETED"] = 3] = "COMPLETED";
12
+ TASK_STATUS[TASK_STATUS["CANCELLED"] = 4] = "CANCELLED";
13
+ })(TASK_STATUS || (exports.TASK_STATUS = TASK_STATUS = {}));
14
+ var TASK_PRIORITY;
15
+ (function (TASK_PRIORITY) {
16
+ TASK_PRIORITY[TASK_PRIORITY["URGENT"] = 1] = "URGENT";
17
+ TASK_PRIORITY[TASK_PRIORITY["HIGH"] = 2] = "HIGH";
18
+ TASK_PRIORITY[TASK_PRIORITY["MEDIUM"] = 3] = "MEDIUM";
19
+ TASK_PRIORITY[TASK_PRIORITY["LOW"] = 4] = "LOW";
20
+ })(TASK_PRIORITY || (exports.TASK_PRIORITY = TASK_PRIORITY = {}));
21
+ let Task = class Task {
22
+ };
23
+ exports.Task = Task;
24
+ tslib_1.__decorate([
25
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
26
+ tslib_1.__metadata("design:type", Number)
27
+ ], Task.prototype, "id", void 0);
28
+ tslib_1.__decorate([
29
+ (0, typeorm_1.Column)({ type: 'varchar', length: 256 }),
30
+ tslib_1.__metadata("design:type", String)
31
+ ], Task.prototype, "title", void 0);
32
+ tslib_1.__decorate([
33
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
34
+ tslib_1.__metadata("design:type", String)
35
+ ], Task.prototype, "description", void 0);
36
+ tslib_1.__decorate([
37
+ (0, typeorm_1.Column)({ type: 'date', nullable: true }),
38
+ tslib_1.__metadata("design:type", Date)
39
+ ], Task.prototype, "dueDate", void 0);
40
+ tslib_1.__decorate([
41
+ (0, typeorm_1.Column)({ type: 'int', default: TASK_PRIORITY.LOW }),
42
+ tslib_1.__metadata("design:type", Number)
43
+ ], Task.prototype, "priority", void 0);
44
+ tslib_1.__decorate([
45
+ (0, typeorm_1.Column)({ type: 'int', default: TASK_STATUS.TODO }),
46
+ tslib_1.__metadata("design:type", Number)
47
+ ], Task.prototype, "status", void 0);
48
+ tslib_1.__decorate([
49
+ (0, typeorm_1.ManyToOne)(() => user_1.User, { onDelete: 'CASCADE' }),
50
+ (0, typeorm_1.JoinColumn)(),
51
+ tslib_1.__metadata("design:type", user_1.User)
52
+ ], Task.prototype, "creator", void 0);
53
+ tslib_1.__decorate([
54
+ (0, typeorm_1.Column)({ type: 'int' }),
55
+ tslib_1.__metadata("design:type", Number)
56
+ ], Task.prototype, "creatorId", void 0);
57
+ tslib_1.__decorate([
58
+ (0, typeorm_1.ManyToOne)(() => user_1.User, { nullable: true, onDelete: 'SET NULL' }),
59
+ (0, typeorm_1.JoinColumn)(),
60
+ tslib_1.__metadata("design:type", user_1.User)
61
+ ], Task.prototype, "student", void 0);
62
+ tslib_1.__decorate([
63
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
64
+ tslib_1.__metadata("design:type", Number)
65
+ ], Task.prototype, "studentId", void 0);
66
+ tslib_1.__decorate([
67
+ (0, typeorm_1.ManyToMany)(() => user_1.User, { cascade: true }),
68
+ (0, typeorm_1.JoinTable)({
69
+ name: 'task_assignees',
70
+ joinColumn: { name: 'taskId', referencedColumnName: 'id' },
71
+ inverseJoinColumn: { name: 'assigneeId', referencedColumnName: 'id' },
72
+ }),
73
+ tslib_1.__metadata("design:type", Array)
74
+ ], Task.prototype, "assignees", void 0);
75
+ tslib_1.__decorate([
76
+ (0, typeorm_1.OneToMany)('TaskComment', 'task'),
77
+ tslib_1.__metadata("design:type", Array)
78
+ ], Task.prototype, "comments", void 0);
79
+ tslib_1.__decorate([
80
+ (0, typeorm_1.OneToMany)('TaskAttachment', 'task'),
81
+ tslib_1.__metadata("design:type", Array)
82
+ ], Task.prototype, "attachments", void 0);
83
+ tslib_1.__decorate([
84
+ (0, typeorm_1.CreateDateColumn)(),
85
+ tslib_1.__metadata("design:type", Date)
86
+ ], Task.prototype, "createdAt", void 0);
87
+ tslib_1.__decorate([
88
+ (0, typeorm_1.UpdateDateColumn)(),
89
+ tslib_1.__metadata("design:type", Date)
90
+ ], Task.prototype, "updatedAt", void 0);
91
+ tslib_1.__decorate([
92
+ (0, typeorm_1.DeleteDateColumn)(),
93
+ tslib_1.__metadata("design:type", Date)
94
+ ], Task.prototype, "deletedAt", void 0);
95
+ exports.Task = Task = tslib_1.__decorate([
96
+ (0, typeorm_1.Entity)({ name: 'tasks' })
97
+ ], Task);
98
+ //# sourceMappingURL=task.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/task.ts"],"names":[],"mappings":";;;;AAAA,qCAYiB;AAIjB,iCAA8B;AAE9B,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,6CAAQ,CAAA;IACR,2DAAe,CAAA;IACf,uDAAa,CAAA;IACb,uDAAa,CAAA;AACf,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,qDAAU,CAAA;IACV,iDAAQ,CAAA;IACR,qDAAU,CAAA;IACV,+CAAO,CAAA;AACT,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAGM,IAAM,IAAI,GAAV,MAAM,IAAI;CAuDhB,CAAA;AAvDY,oBAAI;AAEf;IADC,IAAA,gCAAsB,GAAE;;gCACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;mCAC3B;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACpB;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC/B,IAAI;qCAAC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,GAAG,EAAE,CAAC;;sCAC5B;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC;;oCAC/B;AAIpB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9C,IAAA,oBAAU,GAAE;sCACJ,WAAI;qCAAC;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;uCACN;AAIlB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IAC/D,IAAA,oBAAU,GAAE;sCACH,WAAI;qCAAC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACrB;AAQnB;IANC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,WAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACzC,IAAA,mBAAS,EAAC;QACT,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE;QAC1D,iBAAiB,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,oBAAoB,EAAE,IAAI,EAAE;KACtE,CAAC;;uCACgB;AAGlB;IADC,IAAA,mBAAS,EAAC,aAAa,EAAE,MAAM,CAAC;;sCACT;AAGxB;IADC,IAAA,mBAAS,EAAC,gBAAgB,EAAE,MAAM,CAAC;;yCACN;AAG9B;IADC,IAAA,0BAAgB,GAAE;sCACR,IAAI;uCAAC;AAGhB;IADC,IAAA,0BAAgB,GAAE;sCACR,IAAI;uCAAC;AAGhB;IADC,IAAA,0BAAgB,GAAE;sCACP,IAAI;uCAAC;eAtDN,IAAI;IADhB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;GACb,IAAI,CAuDhB"}
@@ -0,0 +1,27 @@
1
+ import { StudentAnswer } from './student-answer';
2
+ import { Test } from './test';
3
+ import { User } from './user';
4
+ export declare enum TEST_ATTEMPT_STATUS {
5
+ CREATED = 1,
6
+ IN_PROGRESS = 2,
7
+ FINISHED = 3,
8
+ MARKING = 4
9
+ }
10
+ export declare class TestAttempt {
11
+ id: number;
12
+ status: TEST_ATTEMPT_STATUS;
13
+ essayUrl: string;
14
+ essayReview: string;
15
+ creatorId: number;
16
+ studentId: number;
17
+ testId: number;
18
+ startTime?: Date;
19
+ endTime?: Date;
20
+ caseStudyScore?: string;
21
+ createdAt: Date;
22
+ updatedAt: Date;
23
+ creator: User;
24
+ student: User;
25
+ test: Test;
26
+ studentAnswers: StudentAnswer[];
27
+ }
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TestAttempt = exports.TEST_ATTEMPT_STATUS = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const typeorm_1 = require("typeorm");
6
+ const student_answer_1 = require("./student-answer");
7
+ const test_1 = require("./test");
8
+ const user_1 = require("./user");
9
+ var TEST_ATTEMPT_STATUS;
10
+ (function (TEST_ATTEMPT_STATUS) {
11
+ TEST_ATTEMPT_STATUS[TEST_ATTEMPT_STATUS["CREATED"] = 1] = "CREATED";
12
+ TEST_ATTEMPT_STATUS[TEST_ATTEMPT_STATUS["IN_PROGRESS"] = 2] = "IN_PROGRESS";
13
+ TEST_ATTEMPT_STATUS[TEST_ATTEMPT_STATUS["FINISHED"] = 3] = "FINISHED";
14
+ TEST_ATTEMPT_STATUS[TEST_ATTEMPT_STATUS["MARKING"] = 4] = "MARKING";
15
+ })(TEST_ATTEMPT_STATUS || (exports.TEST_ATTEMPT_STATUS = TEST_ATTEMPT_STATUS = {}));
16
+ let TestAttempt = class TestAttempt {
17
+ };
18
+ exports.TestAttempt = TestAttempt;
19
+ tslib_1.__decorate([
20
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
21
+ tslib_1.__metadata("design:type", Number)
22
+ ], TestAttempt.prototype, "id", void 0);
23
+ tslib_1.__decorate([
24
+ (0, typeorm_1.Column)({ type: 'int', nullable: true, default: 1 }),
25
+ tslib_1.__metadata("design:type", Number)
26
+ ], TestAttempt.prototype, "status", void 0);
27
+ tslib_1.__decorate([
28
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
29
+ tslib_1.__metadata("design:type", String)
30
+ ], TestAttempt.prototype, "essayUrl", void 0);
31
+ tslib_1.__decorate([
32
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
33
+ tslib_1.__metadata("design:type", String)
34
+ ], TestAttempt.prototype, "essayReview", void 0);
35
+ tslib_1.__decorate([
36
+ (0, typeorm_1.Column)({ type: 'int' }),
37
+ tslib_1.__metadata("design:type", Number)
38
+ ], TestAttempt.prototype, "creatorId", void 0);
39
+ tslib_1.__decorate([
40
+ (0, typeorm_1.Column)({ type: 'int' }),
41
+ tslib_1.__metadata("design:type", Number)
42
+ ], TestAttempt.prototype, "studentId", void 0);
43
+ tslib_1.__decorate([
44
+ (0, typeorm_1.Column)({ type: 'int' }),
45
+ tslib_1.__metadata("design:type", Number)
46
+ ], TestAttempt.prototype, "testId", void 0);
47
+ tslib_1.__decorate([
48
+ (0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
49
+ tslib_1.__metadata("design:type", Date)
50
+ ], TestAttempt.prototype, "startTime", void 0);
51
+ tslib_1.__decorate([
52
+ (0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
53
+ tslib_1.__metadata("design:type", Date)
54
+ ], TestAttempt.prototype, "endTime", void 0);
55
+ tslib_1.__decorate([
56
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
57
+ tslib_1.__metadata("design:type", String)
58
+ ], TestAttempt.prototype, "caseStudyScore", void 0);
59
+ tslib_1.__decorate([
60
+ (0, typeorm_1.CreateDateColumn)(),
61
+ tslib_1.__metadata("design:type", Date)
62
+ ], TestAttempt.prototype, "createdAt", void 0);
63
+ tslib_1.__decorate([
64
+ (0, typeorm_1.UpdateDateColumn)(),
65
+ tslib_1.__metadata("design:type", Date)
66
+ ], TestAttempt.prototype, "updatedAt", void 0);
67
+ tslib_1.__decorate([
68
+ (0, typeorm_1.ManyToOne)(() => user_1.User),
69
+ (0, typeorm_1.JoinColumn)(),
70
+ tslib_1.__metadata("design:type", user_1.User)
71
+ ], TestAttempt.prototype, "creator", void 0);
72
+ tslib_1.__decorate([
73
+ (0, typeorm_1.ManyToOne)(() => user_1.User, (user) => user.testAttempts),
74
+ (0, typeorm_1.JoinColumn)(),
75
+ tslib_1.__metadata("design:type", user_1.User)
76
+ ], TestAttempt.prototype, "student", void 0);
77
+ tslib_1.__decorate([
78
+ (0, typeorm_1.ManyToOne)(() => test_1.Test, (test) => test.testAttempts),
79
+ (0, typeorm_1.JoinColumn)(),
80
+ tslib_1.__metadata("design:type", test_1.Test)
81
+ ], TestAttempt.prototype, "test", void 0);
82
+ tslib_1.__decorate([
83
+ (0, typeorm_1.OneToMany)(() => student_answer_1.StudentAnswer, (studentAnswer) => studentAnswer.testAttempt),
84
+ (0, typeorm_1.JoinColumn)(),
85
+ tslib_1.__metadata("design:type", Array)
86
+ ], TestAttempt.prototype, "studentAnswers", void 0);
87
+ exports.TestAttempt = TestAttempt = tslib_1.__decorate([
88
+ (0, typeorm_1.Entity)({ name: 'test_attempts' })
89
+ ], TestAttempt);
90
+ //# sourceMappingURL=test-attempt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-attempt.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/test-attempt.ts"],"names":[],"mappings":";;;;AAAA,qCASiB;AAEjB,qDAAiD;AACjD,iCAA8B;AAC9B,iCAA8B;AAE9B,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,mEAAW,CAAA;IACX,2EAAW,CAAA;IACX,qEAAQ,CAAA;IACR,mEAAO,CAAA;AACT,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AAGM,IAAM,WAAW,GAAjB,MAAM,WAAW;CAoDvB,CAAA;AApDY,kCAAW;AAEtB;IADC,IAAA,gCAAsB,GAAE;;uCACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;2CACxB;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACxB;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACrB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;8CACN;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;8CACN;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;2CACT;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjC,IAAI;8CAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACnC,IAAI;4CAAC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACjB;AAGxB;IADC,IAAA,0BAAgB,GAAE;sCACR,IAAI;8CAAC;AAGhB;IADC,IAAA,0BAAgB,GAAE;sCACR,IAAI;8CAAC;AAIhB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;IACrB,IAAA,oBAAU,GAAE;sCACJ,WAAI;4CAAC;AAId;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;IAClD,IAAA,oBAAU,GAAE;sCACJ,WAAI;4CAAC;AAId;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;IAClD,IAAA,oBAAU,GAAE;sCACP,WAAI;yCAAC;AAIX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAa,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC;IAC5E,IAAA,oBAAU,GAAE;;mDACmB;sBAnDrB,WAAW;IADvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;GACrB,WAAW,CAoDvB"}
@@ -0,0 +1,10 @@
1
+ import { Test } from './test';
2
+ import { STUDENT_SERVICE } from './student-service';
3
+ export declare class TestCategory {
4
+ id: number;
5
+ name: string;
6
+ slug: string;
7
+ description: string;
8
+ respectiveService: STUDENT_SERVICE;
9
+ tests: Test[];
10
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TestCategory = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const typeorm_1 = require("typeorm");
6
+ const test_1 = require("./test");
7
+ const student_service_1 = require("./student-service");
8
+ let TestCategory = class TestCategory {
9
+ };
10
+ exports.TestCategory = TestCategory;
11
+ tslib_1.__decorate([
12
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
13
+ tslib_1.__metadata("design:type", Number)
14
+ ], TestCategory.prototype, "id", void 0);
15
+ tslib_1.__decorate([
16
+ (0, typeorm_1.Column)({ type: 'varchar', length: 128 }),
17
+ tslib_1.__metadata("design:type", String)
18
+ ], TestCategory.prototype, "name", void 0);
19
+ tslib_1.__decorate([
20
+ (0, typeorm_1.Column)({ type: 'varchar', length: 128, unique: true }),
21
+ tslib_1.__metadata("design:type", String)
22
+ ], TestCategory.prototype, "slug", void 0);
23
+ tslib_1.__decorate([
24
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
25
+ tslib_1.__metadata("design:type", String)
26
+ ], TestCategory.prototype, "description", void 0);
27
+ tslib_1.__decorate([
28
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
29
+ tslib_1.__metadata("design:type", Number)
30
+ ], TestCategory.prototype, "respectiveService", void 0);
31
+ tslib_1.__decorate([
32
+ (0, typeorm_1.OneToMany)(() => test_1.Test, (test) => test.testCategory),
33
+ tslib_1.__metadata("design:type", Array)
34
+ ], TestCategory.prototype, "tests", void 0);
35
+ exports.TestCategory = TestCategory = tslib_1.__decorate([
36
+ (0, typeorm_1.Entity)({ name: 'test_categories' })
37
+ ], TestCategory);
38
+ //# sourceMappingURL=test-category.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-category.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/test-category.ts"],"names":[],"mappings":";;;;AAAA,qCAA4E;AAE5E,iCAA8B;AAC9B,uDAAoD;AAG7C,IAAM,YAAY,GAAlB,MAAM,YAAY;CAkBxB,CAAA;AAlBY,oCAAY;AAEvB;IADC,IAAA,gCAAsB,GAAE;;wCACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;0CAC5B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;0CAC1C;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACrB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACL;AAGnC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;;2CACrC;uBAjBH,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;GACvB,YAAY,CAkBxB"}
@@ -0,0 +1,28 @@
1
+ import { AnswerKey } from './answer-key';
2
+ import { Dimension } from './dimension';
3
+ import { StudentAnswer } from './student-answer';
4
+ import { TestSection } from './test-section';
5
+ import { CaseStudy } from './case-study';
6
+ export declare enum TEST_QUESTION_TYPE {
7
+ MCQ = 1,
8
+ NUMBER = 2,
9
+ ESSAY = 3,
10
+ YES_NO = 4,
11
+ RANKING = 5,
12
+ CASE_STUDY = 6,
13
+ KEY_IN = 7
14
+ }
15
+ export declare class TestQuestion {
16
+ id: number;
17
+ type: TEST_QUESTION_TYPE;
18
+ order: number;
19
+ testSectionId: number;
20
+ questionContent?: string;
21
+ answerContent?: string;
22
+ caseStudyId?: number;
23
+ testSection: TestSection;
24
+ caseStudy?: CaseStudy;
25
+ answerKeys: AnswerKey[];
26
+ studentAnswers: StudentAnswer[];
27
+ dimensions: Dimension[];
28
+ }
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TestQuestion = exports.TEST_QUESTION_TYPE = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const typeorm_1 = require("typeorm");
6
+ const answer_key_1 = require("./answer-key");
7
+ const dimension_1 = require("./dimension");
8
+ const student_answer_1 = require("./student-answer");
9
+ const test_section_1 = require("./test-section");
10
+ const case_study_1 = require("./case-study");
11
+ var TEST_QUESTION_TYPE;
12
+ (function (TEST_QUESTION_TYPE) {
13
+ TEST_QUESTION_TYPE[TEST_QUESTION_TYPE["MCQ"] = 1] = "MCQ";
14
+ TEST_QUESTION_TYPE[TEST_QUESTION_TYPE["NUMBER"] = 2] = "NUMBER";
15
+ TEST_QUESTION_TYPE[TEST_QUESTION_TYPE["ESSAY"] = 3] = "ESSAY";
16
+ TEST_QUESTION_TYPE[TEST_QUESTION_TYPE["YES_NO"] = 4] = "YES_NO";
17
+ TEST_QUESTION_TYPE[TEST_QUESTION_TYPE["RANKING"] = 5] = "RANKING";
18
+ TEST_QUESTION_TYPE[TEST_QUESTION_TYPE["CASE_STUDY"] = 6] = "CASE_STUDY";
19
+ TEST_QUESTION_TYPE[TEST_QUESTION_TYPE["KEY_IN"] = 7] = "KEY_IN";
20
+ })(TEST_QUESTION_TYPE || (exports.TEST_QUESTION_TYPE = TEST_QUESTION_TYPE = {}));
21
+ let TestQuestion = class TestQuestion {
22
+ };
23
+ exports.TestQuestion = TestQuestion;
24
+ tslib_1.__decorate([
25
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
26
+ tslib_1.__metadata("design:type", Number)
27
+ ], TestQuestion.prototype, "id", void 0);
28
+ tslib_1.__decorate([
29
+ (0, typeorm_1.Column)({ type: 'int' }),
30
+ tslib_1.__metadata("design:type", Number)
31
+ ], TestQuestion.prototype, "type", void 0);
32
+ tslib_1.__decorate([
33
+ (0, typeorm_1.Column)({ type: 'int' }),
34
+ tslib_1.__metadata("design:type", Number)
35
+ ], TestQuestion.prototype, "order", void 0);
36
+ tslib_1.__decorate([
37
+ (0, typeorm_1.Column)({ type: 'int' }),
38
+ tslib_1.__metadata("design:type", Number)
39
+ ], TestQuestion.prototype, "testSectionId", void 0);
40
+ tslib_1.__decorate([
41
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
42
+ tslib_1.__metadata("design:type", String)
43
+ ], TestQuestion.prototype, "questionContent", void 0);
44
+ tslib_1.__decorate([
45
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
46
+ tslib_1.__metadata("design:type", String)
47
+ ], TestQuestion.prototype, "answerContent", void 0);
48
+ tslib_1.__decorate([
49
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
50
+ tslib_1.__metadata("design:type", Number)
51
+ ], TestQuestion.prototype, "caseStudyId", void 0);
52
+ tslib_1.__decorate([
53
+ (0, typeorm_1.ManyToOne)(() => test_section_1.TestSection, (testSection) => testSection.testQuestions),
54
+ (0, typeorm_1.JoinColumn)(),
55
+ tslib_1.__metadata("design:type", test_section_1.TestSection)
56
+ ], TestQuestion.prototype, "testSection", void 0);
57
+ tslib_1.__decorate([
58
+ (0, typeorm_1.ManyToOne)(() => case_study_1.CaseStudy, (caseStudy) => caseStudy.testQuestions),
59
+ (0, typeorm_1.JoinColumn)(),
60
+ tslib_1.__metadata("design:type", case_study_1.CaseStudy)
61
+ ], TestQuestion.prototype, "caseStudy", void 0);
62
+ tslib_1.__decorate([
63
+ (0, typeorm_1.OneToMany)(() => answer_key_1.AnswerKey, (answerKey) => answerKey.testQuestion),
64
+ tslib_1.__metadata("design:type", Array)
65
+ ], TestQuestion.prototype, "answerKeys", void 0);
66
+ tslib_1.__decorate([
67
+ (0, typeorm_1.OneToMany)(() => student_answer_1.StudentAnswer, (studentAnswer) => studentAnswer.testQuestion),
68
+ tslib_1.__metadata("design:type", Array)
69
+ ], TestQuestion.prototype, "studentAnswers", void 0);
70
+ tslib_1.__decorate([
71
+ (0, typeorm_1.ManyToMany)(() => dimension_1.Dimension, (dimension) => dimension.testQuestions),
72
+ (0, typeorm_1.JoinTable)({
73
+ name: 'test_questions_to_dimensions',
74
+ joinColumn: {
75
+ name: 'testQuestionId',
76
+ referencedColumnName: 'id',
77
+ },
78
+ inverseJoinColumn: {
79
+ name: 'dimensionId',
80
+ referencedColumnName: 'id',
81
+ },
82
+ }),
83
+ tslib_1.__metadata("design:type", Array)
84
+ ], TestQuestion.prototype, "dimensions", void 0);
85
+ exports.TestQuestion = TestQuestion = tslib_1.__decorate([
86
+ (0, typeorm_1.Entity)({ name: 'test_questions' })
87
+ ], TestQuestion);
88
+ //# sourceMappingURL=test-question.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-question.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/test-question.ts"],"names":[],"mappings":";;;;AAAA,qCASiB;AAEjB,6CAAyC;AACzC,2CAAwC;AACxC,qDAAiD;AACjD,iDAA6C;AAC7C,6CAAyC;AAEzC,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC5B,yDAAO,CAAA;IACP,+DAAM,CAAA;IACN,6DAAK,CAAA;IACL,+DAAM,CAAA;IACN,iEAAO,CAAA;IACP,uEAAU,CAAA;IACV,+DAAM,CAAA;AACR,CAAC,EARW,kBAAkB,kCAAlB,kBAAkB,QAQ7B;AAGM,IAAM,YAAY,GAAlB,MAAM,YAAY;CAiDxB,CAAA;AAjDY,oCAAY;AAEvB;IADC,IAAA,gCAAsB,GAAE;;wCACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;0CACC;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;2CACV;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;mDACF;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAChB;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAClB;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACnB;AAIrB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,aAAa,CAAC;IACxE,IAAA,oBAAU,GAAE;sCACA,0BAAW;iDAAC;AAIzB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAS,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC;IAClE,IAAA,oBAAU,GAAE;sCACD,sBAAS;+CAAC;AAGtB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAS,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC;;gDAC1C;AAGxB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAa,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,YAAY,CAAC;;oDAC9C;AAchC;IAZC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,qBAAS,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC;IACnE,IAAA,mBAAS,EAAC;QACT,IAAI,EAAE,8BAA8B;QACpC,UAAU,EAAE;YACV,IAAI,EAAE,gBAAgB;YACtB,oBAAoB,EAAE,IAAI;SAC3B;QACD,iBAAiB,EAAE;YACjB,IAAI,EAAE,aAAa;YACnB,oBAAoB,EAAE,IAAI;SAC3B;KACF,CAAC;;gDACsB;uBAhDb,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;GACtB,YAAY,CAiDxB"}
@@ -0,0 +1,123 @@
1
+ import { User } from './user';
2
+ import { Test } from './test';
3
+ import { TestAttempt } from './test-attempt';
4
+ export declare class BaseReport {
5
+ test: Test;
6
+ testAttempt: TestAttempt;
7
+ student: User;
8
+ type: 'sat' | 'act' | 'gmat' | 'ucat' | 'lsat' | 'mcat' | 'isat' | 'bmat' | 'insead-admissions-day' | 'online-sat-practice';
9
+ totalScore: number;
10
+ }
11
+ export declare class SATReport extends BaseReport {
12
+ type: 'sat';
13
+ mathNoCalcRawScore: number;
14
+ mathCalcRawScore: number;
15
+ mathRawScore: number;
16
+ mathConvertedScore: number;
17
+ readingRawScore: number;
18
+ readingConvertedScore: number;
19
+ writingRawScore: number;
20
+ writingConvertedScore: number;
21
+ essayReadingScore: number;
22
+ essayAnalysisScore: number;
23
+ essayWritingScore: number;
24
+ dimensionScores: DimensionScore[];
25
+ }
26
+ export declare class ACTReport extends BaseReport {
27
+ type: 'act';
28
+ englishRawScore: number;
29
+ englishConvertedScore: number;
30
+ mathRawScore: number;
31
+ mathConvertedScore: number;
32
+ readingRawScore: number;
33
+ readingConvertedScore: number;
34
+ scienceRawScore: number;
35
+ scienceConvertedScore: number;
36
+ ideasAndAnalysisScore: number;
37
+ developmentAndSupportScore: number;
38
+ organizationScore: number;
39
+ languageUseScore: number;
40
+ }
41
+ export declare class GMATReport extends BaseReport {
42
+ type: 'gmat';
43
+ verbalRawScore: number;
44
+ verbalConvertedScore: number;
45
+ quantRawScore: number;
46
+ quantConvertedScore: number;
47
+ totalRawScore: number;
48
+ }
49
+ export declare class UCATReport extends BaseReport {
50
+ type: 'ucat';
51
+ verbalRawScore: number;
52
+ verbalConvertedScore: number;
53
+ decisionRawScore: number;
54
+ decisionConvertedScore: number;
55
+ quantRawScore: number;
56
+ quantConvertedScore: number;
57
+ abstractRawScore: number;
58
+ abstractConvertedScore: number;
59
+ situationalRawScore: number;
60
+ situationalConvertedScore: number;
61
+ }
62
+ export declare class LSATReport extends BaseReport {
63
+ type: 'lsat';
64
+ section1RawScore: number;
65
+ section1TotalQuestion: number;
66
+ section2RawScore: number;
67
+ section2TotalQuestion: number;
68
+ section3RawScore: number;
69
+ section3TotalQuestion: number;
70
+ section4RawScore: number;
71
+ section4TotalQuestion: number;
72
+ totalRawScore: number;
73
+ totalQuestion: number;
74
+ }
75
+ export declare class MCATReport extends BaseReport {
76
+ type: 'mcat';
77
+ section1RawScore: number;
78
+ section1Score: number;
79
+ section2RawScore: number;
80
+ section2Score: number;
81
+ section3RawScore: number;
82
+ section3Score: number;
83
+ section4RawScore: number;
84
+ section4Score: number;
85
+ section5RawScore: number;
86
+ section5Score: number;
87
+ totalRawScore: number;
88
+ }
89
+ export declare class ISATReport extends BaseReport {
90
+ type: 'isat';
91
+ criticalScore: number;
92
+ criticalTotalQuestion: number;
93
+ quantitativeScore: number;
94
+ quantitativeTotalQuestion: number;
95
+ }
96
+ export declare class BMATReport extends BaseReport {
97
+ type: 'bmat';
98
+ aptitudeRawScore: number;
99
+ aptitudeScore: number;
100
+ scienceRawScore: number;
101
+ scienceScore: number;
102
+ }
103
+ export declare class IEATReport extends BaseReport {
104
+ type: 'insead-admissions-day';
105
+ quantScore: number;
106
+ verbalScore: number;
107
+ csScore: 'Challenged' | 'Adequate' | 'Superior';
108
+ }
109
+ export declare class TempSATReport extends BaseReport {
110
+ type: 'online-sat-practice';
111
+ verbal1RawScore: number;
112
+ verbal2RawScore: number;
113
+ verbalConvertedScore: number;
114
+ math1RawScore: number;
115
+ math2RawScore: number;
116
+ mathConvertedScore: number;
117
+ }
118
+ export declare class DimensionScore {
119
+ code: string;
120
+ raw: number;
121
+ total: number;
122
+ }
123
+ export type Report = SATReport | ACTReport | GMATReport | UCATReport | LSATReport | MCATReport | ISATReport | BMATReport | IEATReport | TempSATReport;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DimensionScore = exports.TempSATReport = exports.IEATReport = exports.BMATReport = exports.ISATReport = exports.MCATReport = exports.LSATReport = exports.UCATReport = exports.GMATReport = exports.ACTReport = exports.SATReport = exports.BaseReport = void 0;
4
+ class BaseReport {
5
+ }
6
+ exports.BaseReport = BaseReport;
7
+ class SATReport extends BaseReport {
8
+ }
9
+ exports.SATReport = SATReport;
10
+ class ACTReport extends BaseReport {
11
+ }
12
+ exports.ACTReport = ACTReport;
13
+ class GMATReport extends BaseReport {
14
+ }
15
+ exports.GMATReport = GMATReport;
16
+ class UCATReport extends BaseReport {
17
+ }
18
+ exports.UCATReport = UCATReport;
19
+ class LSATReport extends BaseReport {
20
+ }
21
+ exports.LSATReport = LSATReport;
22
+ class MCATReport extends BaseReport {
23
+ }
24
+ exports.MCATReport = MCATReport;
25
+ class ISATReport extends BaseReport {
26
+ }
27
+ exports.ISATReport = ISATReport;
28
+ class BMATReport extends BaseReport {
29
+ }
30
+ exports.BMATReport = BMATReport;
31
+ class IEATReport extends BaseReport {
32
+ }
33
+ exports.IEATReport = IEATReport;
34
+ class TempSATReport extends BaseReport {
35
+ }
36
+ exports.TempSATReport = TempSATReport;
37
+ class DimensionScore {
38
+ }
39
+ exports.DimensionScore = DimensionScore;
40
+ //# sourceMappingURL=test-report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-report.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/test-report.ts"],"names":[],"mappings":";;;AAIA,MAAa,UAAU;CAgBtB;AAhBD,gCAgBC;AAED,MAAa,SAAU,SAAQ,UAAU;CAcxC;AAdD,8BAcC;AAED,MAAa,SAAU,SAAQ,UAAU;CAcxC;AAdD,8BAcC;AAED,MAAa,UAAW,SAAQ,UAAU;CAOzC;AAPD,gCAOC;AAED,MAAa,UAAW,SAAQ,UAAU;CAYzC;AAZD,gCAYC;AAED,MAAa,UAAW,SAAQ,UAAU;CAYzC;AAZD,gCAYC;AAED,MAAa,UAAW,SAAQ,UAAU;CAazC;AAbD,gCAaC;AAED,MAAa,UAAW,SAAQ,UAAU;CAMzC;AAND,gCAMC;AAED,MAAa,UAAW,SAAQ,UAAU;CAMzC;AAND,gCAMC;AAED,MAAa,UAAW,SAAQ,UAAU;CAKzC;AALD,gCAKC;AAED,MAAa,aAAc,SAAQ,UAAU;CAQ5C;AARD,sCAQC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC"}
@@ -0,0 +1,12 @@
1
+ import { User } from './user';
2
+ export declare class TestScore {
3
+ id: number;
4
+ studentServiceId: number;
5
+ isOfficial: boolean;
6
+ date: Date;
7
+ scores: string;
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ userId: number;
11
+ user: User;
12
+ }