@intelact/driveup 1.4.43 → 1.4.45

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 (533) hide show
  1. package/lib/common/person.d.ts +16 -0
  2. package/lib/{company/setting.model.js → common/person.js} +22 -14
  3. package/lib/common/person.js.map +1 -0
  4. package/lib/company/company.model.d.ts +4 -0
  5. package/lib/company/company.model.js +10 -0
  6. package/lib/company/company.model.js.map +1 -1
  7. package/lib/driving/category/category.model.d.ts +2 -0
  8. package/lib/driving/category/category.model.js +6 -0
  9. package/lib/driving/category/category.model.js.map +1 -1
  10. package/lib/events/agent/account.events.d.ts +27 -0
  11. package/lib/events/agent/account.events.js +32 -0
  12. package/lib/events/agent/account.events.js.map +1 -0
  13. package/lib/events/agent/payout.events.d.ts +29 -0
  14. package/lib/events/agent/payout.events.js +34 -0
  15. package/lib/events/agent/payout.events.js.map +1 -0
  16. package/lib/events/agent/profile.events.d.ts +18 -0
  17. package/lib/events/agent/profile.events.js +23 -0
  18. package/lib/events/agent/profile.events.js.map +1 -0
  19. package/lib/events/agent/promotion.events.d.ts +42 -0
  20. package/lib/events/agent/promotion.events.js +47 -0
  21. package/lib/events/agent/promotion.events.js.map +1 -0
  22. package/lib/events/auth/auth.events.d.ts +16 -0
  23. package/lib/events/auth/auth.events.js +21 -0
  24. package/lib/events/auth/auth.events.js.map +1 -0
  25. package/lib/events/auth/token.events.d.ts +23 -0
  26. package/lib/events/auth/token.events.js +28 -0
  27. package/lib/events/auth/token.events.js.map +1 -0
  28. package/lib/events/auth/verify.events.d.ts +17 -0
  29. package/lib/events/auth/verify.events.js +22 -0
  30. package/lib/events/auth/verify.events.js.map +1 -0
  31. package/lib/events/company/account/account.events.d.ts +64 -0
  32. package/lib/events/company/account/account.events.js +69 -0
  33. package/lib/events/company/account/account.events.js.map +1 -0
  34. package/lib/events/company/account/profile.events.d.ts +169 -0
  35. package/lib/events/company/account/profile.events.js +174 -0
  36. package/lib/events/company/account/profile.events.js.map +1 -0
  37. package/lib/events/company/course/appointment.events.d.ts +56 -0
  38. package/lib/events/company/course/appointment.events.js +61 -0
  39. package/lib/events/company/course/appointment.events.js.map +1 -0
  40. package/lib/events/company/course/course.events.d.ts +118 -0
  41. package/lib/events/company/course/course.events.js +123 -0
  42. package/lib/events/company/course/course.events.js.map +1 -0
  43. package/lib/events/company/course/lesson.events.d.ts +56 -0
  44. package/lib/events/company/course/lesson.events.js +61 -0
  45. package/lib/events/company/course/lesson.events.js.map +1 -0
  46. package/lib/events/company/course/topic.events.d.ts +76 -0
  47. package/lib/events/company/course/topic.events.js +81 -0
  48. package/lib/events/company/course/topic.events.js.map +1 -0
  49. package/lib/events/company/product/addon.events.d.ts +34 -0
  50. package/lib/events/company/product/addon.events.js +39 -0
  51. package/lib/events/company/product/addon.events.js.map +1 -0
  52. package/lib/events/company/product/campaign.events.d.ts +13 -0
  53. package/lib/events/company/product/campaign.events.js +18 -0
  54. package/lib/events/company/product/campaign.events.js.map +1 -0
  55. package/lib/events/company/product/product.events.d.ts +54 -0
  56. package/lib/events/company/product/product.events.js +59 -0
  57. package/lib/events/company/product/product.events.js.map +1 -0
  58. package/lib/events/index.d.ts +25 -0
  59. package/lib/events/index.js +42 -0
  60. package/lib/events/index.js.map +1 -0
  61. package/lib/events/instructor/account/account.events.d.ts +123 -0
  62. package/lib/events/instructor/account/account.events.js +128 -0
  63. package/lib/events/instructor/account/account.events.js.map +1 -0
  64. package/lib/events/instructor/account/profile.events.d.ts +31 -0
  65. package/lib/events/instructor/account/profile.events.js +36 -0
  66. package/lib/events/instructor/account/profile.events.js.map +1 -0
  67. package/lib/events/instructor/task/task.events.d.ts +24 -0
  68. package/lib/events/instructor/task/task.events.js +29 -0
  69. package/lib/events/instructor/task/task.events.js.map +1 -0
  70. package/lib/events/student/account/account.events.d.ts +36 -0
  71. package/lib/events/student/account/account.events.js +41 -0
  72. package/lib/events/student/account/account.events.js.map +1 -0
  73. package/lib/events/user/account.events.d.ts +84 -0
  74. package/lib/events/user/account.events.js +89 -0
  75. package/lib/events/user/account.events.js.map +1 -0
  76. package/lib/events/user/alert.events.d.ts +16 -0
  77. package/lib/events/user/alert.events.js +21 -0
  78. package/lib/events/user/alert.events.js.map +1 -0
  79. package/lib/events/user/device.events.d.ts +30 -0
  80. package/lib/events/user/device.events.js +35 -0
  81. package/lib/events/user/device.events.js.map +1 -0
  82. package/lib/events/user/notification.events.d.ts +30 -0
  83. package/lib/events/user/notification.events.js +35 -0
  84. package/lib/events/user/notification.events.js.map +1 -0
  85. package/lib/events/user/profile.events.d.ts +60 -0
  86. package/lib/events/user/profile.events.js +65 -0
  87. package/lib/events/user/profile.events.js.map +1 -0
  88. package/lib/task/index.d.ts +2 -0
  89. package/lib/{language → task}/index.js +2 -1
  90. package/lib/task/index.js.map +1 -0
  91. package/lib/task/task.dto.d.ts +24 -0
  92. package/lib/task/task.dto.js +142 -0
  93. package/lib/task/task.dto.js.map +1 -0
  94. package/lib/{company/event.model.js → task/task.model.js} +1 -1
  95. package/lib/task/task.model.js.map +1 -0
  96. package/lib/tsconfig.tsbuildinfo +1 -1
  97. package/lib/types/activity.type.d.ts +46 -0
  98. package/lib/types/activity.type.js +51 -0
  99. package/lib/types/activity.type.js.map +1 -0
  100. package/lib/types/addon.type.d.ts +66 -0
  101. package/lib/types/addon.type.js +71 -0
  102. package/lib/types/addon.type.js.map +1 -0
  103. package/lib/types/calendar.type.d.ts +24 -0
  104. package/lib/types/calendar.type.js +31 -0
  105. package/lib/types/calendar.type.js.map +1 -0
  106. package/lib/types/driving.type.d.ts +12 -0
  107. package/lib/types/driving.type.js +18 -0
  108. package/lib/types/driving.type.js.map +1 -0
  109. package/lib/types/earning.type.d.ts +6 -0
  110. package/lib/{security/token.interface.js → types/earning.type.js} +1 -1
  111. package/lib/types/earning.type.js.map +1 -0
  112. package/lib/types/finance.type.d.ts +67 -0
  113. package/lib/types/finance.type.js +77 -0
  114. package/lib/types/finance.type.js.map +1 -0
  115. package/lib/types/index.d.ts +15 -0
  116. package/lib/types/index.js +32 -0
  117. package/lib/types/index.js.map +1 -0
  118. package/lib/types/interface.d.ts +79 -0
  119. package/lib/{public/user-agent.interface.js → types/interface.js} +2 -1
  120. package/lib/types/interface.js.map +1 -0
  121. package/lib/types/metric.type.d.ts +34 -0
  122. package/lib/types/metric.type.js +39 -0
  123. package/lib/types/metric.type.js.map +1 -0
  124. package/lib/types/policy.type.d.ts +27 -0
  125. package/lib/types/policy.type.js +32 -0
  126. package/lib/types/policy.type.js.map +1 -0
  127. package/lib/types/priceplan.type.d.ts +39 -0
  128. package/lib/types/priceplan.type.js +48 -0
  129. package/lib/types/priceplan.type.js.map +1 -0
  130. package/lib/types/product.type.d.ts +202 -0
  131. package/lib/types/product.type.js +209 -0
  132. package/lib/types/product.type.js.map +1 -0
  133. package/lib/types/program.type.d.ts +23 -0
  134. package/lib/types/program.type.js +28 -0
  135. package/lib/types/program.type.js.map +1 -0
  136. package/lib/types/security.type.d.ts +54 -0
  137. package/lib/types/security.type.js +60 -0
  138. package/lib/types/security.type.js.map +1 -0
  139. package/lib/types/support.type.d.ts +128 -0
  140. package/lib/types/support.type.js +145 -0
  141. package/lib/types/support.type.js.map +1 -0
  142. package/lib/types/training.type.d.ts +16 -0
  143. package/lib/types/training.type.js +22 -0
  144. package/lib/types/training.type.js.map +1 -0
  145. package/lib/utils/compare.validator.d.ts +9 -0
  146. package/lib/utils/compare.validator.js +35 -0
  147. package/lib/utils/compare.validator.js.map +1 -0
  148. package/lib/utils/required.validator.d.ts +77 -0
  149. package/lib/utils/required.validator.js +151 -0
  150. package/lib/utils/required.validator.js.map +1 -0
  151. package/lib/utils/transformers.helper.d.ts +48 -0
  152. package/lib/utils/transformers.helper.js +184 -0
  153. package/lib/utils/transformers.helper.js.map +1 -0
  154. package/package.json +1 -1
  155. package/lib/agent/payout.model.d.ts +0 -11
  156. package/lib/agent/payout.model.js +0 -59
  157. package/lib/agent/payout.model.js.map +0 -1
  158. package/lib/auth/biometric.dto.d.ts +0 -3
  159. package/lib/auth/biometric.dto.js +0 -25
  160. package/lib/auth/biometric.dto.js.map +0 -1
  161. package/lib/calendar/link.d.ts +0 -4
  162. package/lib/calendar/link.js +0 -9
  163. package/lib/calendar/link.js.map +0 -1
  164. package/lib/common/appointment.model.d.ts +0 -13
  165. package/lib/common/appointment.model.js +0 -79
  166. package/lib/common/appointment.model.js.map +0 -1
  167. package/lib/common/date.d.ts +0 -9
  168. package/lib/common/date.enum.d.ts +0 -9
  169. package/lib/common/date.enum.js +0 -14
  170. package/lib/common/date.enum.js.map +0 -1
  171. package/lib/common/date.js +0 -14
  172. package/lib/common/date.js.map +0 -1
  173. package/lib/common/general.dto.d.ts +0 -70
  174. package/lib/common/general.dto.js +0 -302
  175. package/lib/common/general.dto.js.map +0 -1
  176. package/lib/common/notification.enum.d.ts +0 -11
  177. package/lib/common/notification.enum.js +0 -17
  178. package/lib/common/notification.enum.js.map +0 -1
  179. package/lib/company/account.status.enum.d.ts +0 -8
  180. package/lib/company/account.status.enum.js +0 -13
  181. package/lib/company/account.status.enum.js.map +0 -1
  182. package/lib/company/common/appointment.type.enum.d.ts +0 -4
  183. package/lib/company/common/appointment.type.enum.js +0 -9
  184. package/lib/company/common/appointment.type.enum.js.map +0 -1
  185. package/lib/company/common/general.dto.d.ts +0 -46
  186. package/lib/company/common/general.dto.js +0 -182
  187. package/lib/company/common/general.dto.js.map +0 -1
  188. package/lib/company/common/index.d.ts +0 -4
  189. package/lib/company/common/index.js +0 -21
  190. package/lib/company/common/index.js.map +0 -1
  191. package/lib/company/common/request.status.enum.d.ts +0 -6
  192. package/lib/company/common/request.status.enum.js +0 -11
  193. package/lib/company/common/request.status.enum.js.map +0 -1
  194. package/lib/company/common/setting.enum.d.ts +0 -7
  195. package/lib/company/common/setting.enum.js +0 -12
  196. package/lib/company/common/setting.enum.js.map +0 -1
  197. package/lib/company/common/training.status.enum.d.ts +0 -11
  198. package/lib/company/common/training.status.enum.js +0 -17
  199. package/lib/company/common/training.status.enum.js.map +0 -1
  200. package/lib/company/course/appointment.model.d.ts +0 -10
  201. package/lib/company/course/appointment.model.js +0 -43
  202. package/lib/company/course/appointment.model.js.map +0 -1
  203. package/lib/company/course/course.enum.d.ts +0 -15
  204. package/lib/company/course/course.enum.js +0 -22
  205. package/lib/company/course/course.enum.js.map +0 -1
  206. package/lib/company/course/course.model.d.ts +0 -17
  207. package/lib/company/course/course.model.js +0 -94
  208. package/lib/company/course/course.model.js.map +0 -1
  209. package/lib/company/course/definition.model.d.ts +0 -11
  210. package/lib/company/course/definition.model.js +0 -57
  211. package/lib/company/course/definition.model.js.map +0 -1
  212. package/lib/company/course/finances/discount.model.d.ts +0 -8
  213. package/lib/company/course/finances/discount.model.js +0 -44
  214. package/lib/company/course/finances/discount.model.js.map +0 -1
  215. package/lib/company/course/finances/index.d.ts +0 -5
  216. package/lib/company/course/finances/index.js +0 -22
  217. package/lib/company/course/finances/index.js.map +0 -1
  218. package/lib/company/course/finances/invoice-item.model.d.ts +0 -7
  219. package/lib/company/course/finances/invoice-item.model.js +0 -43
  220. package/lib/company/course/finances/invoice-item.model.js.map +0 -1
  221. package/lib/company/course/finances/invoice.model.d.ts +0 -15
  222. package/lib/company/course/finances/invoice.model.js +0 -77
  223. package/lib/company/course/finances/invoice.model.js.map +0 -1
  224. package/lib/company/course/finances/payment.model.d.ts +0 -13
  225. package/lib/company/course/finances/payment.model.js +0 -68
  226. package/lib/company/course/finances/payment.model.js.map +0 -1
  227. package/lib/company/course/finances/refund.model.d.ts +0 -8
  228. package/lib/company/course/finances/refund.model.js +0 -44
  229. package/lib/company/course/finances/refund.model.js.map +0 -1
  230. package/lib/company/course/index.d.ts +0 -6
  231. package/lib/company/course/index.js +0 -23
  232. package/lib/company/course/index.js.map +0 -1
  233. package/lib/company/course/part.model.d.ts +0 -10
  234. package/lib/company/course/part.model.js +0 -56
  235. package/lib/company/course/part.model.js.map +0 -1
  236. package/lib/company/driving/appointment.type.enum.d.ts +0 -4
  237. package/lib/company/driving/appointment.type.enum.js +0 -9
  238. package/lib/company/driving/appointment.type.enum.js.map +0 -1
  239. package/lib/company/driving/category.model.d.ts +0 -18
  240. package/lib/company/driving/category.model.js +0 -100
  241. package/lib/company/driving/category.model.js.map +0 -1
  242. package/lib/company/driving/dto.d.ts +0 -5
  243. package/lib/company/driving/dto.js +0 -38
  244. package/lib/company/driving/dto.js.map +0 -1
  245. package/lib/company/driving/exam.enum.d.ts +0 -5
  246. package/lib/company/driving/exam.enum.js +0 -10
  247. package/lib/company/driving/exam.enum.js.map +0 -1
  248. package/lib/company/driving/exam.status.enum.d.ts +0 -5
  249. package/lib/company/driving/exam.status.enum.js +0 -10
  250. package/lib/company/driving/exam.status.enum.js.map +0 -1
  251. package/lib/company/driving/finances/discount.model.d.ts +0 -8
  252. package/lib/company/driving/finances/discount.model.js +0 -44
  253. package/lib/company/driving/finances/discount.model.js.map +0 -1
  254. package/lib/company/driving/finances/index.d.ts +0 -5
  255. package/lib/company/driving/finances/index.js +0 -22
  256. package/lib/company/driving/finances/index.js.map +0 -1
  257. package/lib/company/driving/finances/invoice-item.model.d.ts +0 -7
  258. package/lib/company/driving/finances/invoice-item.model.js +0 -43
  259. package/lib/company/driving/finances/invoice-item.model.js.map +0 -1
  260. package/lib/company/driving/finances/invoice.model.d.ts +0 -14
  261. package/lib/company/driving/finances/invoice.model.js +0 -71
  262. package/lib/company/driving/finances/invoice.model.js.map +0 -1
  263. package/lib/company/driving/finances/payment.model.d.ts +0 -13
  264. package/lib/company/driving/finances/payment.model.js +0 -68
  265. package/lib/company/driving/finances/payment.model.js.map +0 -1
  266. package/lib/company/driving/finances/refund.model.d.ts +0 -8
  267. package/lib/company/driving/finances/refund.model.js +0 -44
  268. package/lib/company/driving/finances/refund.model.js.map +0 -1
  269. package/lib/company/driving/index.d.ts +0 -9
  270. package/lib/company/driving/index.js +0 -26
  271. package/lib/company/driving/index.js.map +0 -1
  272. package/lib/company/driving/score.enum.d.ts +0 -12
  273. package/lib/company/driving/score.enum.js +0 -18
  274. package/lib/company/driving/score.enum.js.map +0 -1
  275. package/lib/company/driving/skill.model.d.ts +0 -8
  276. package/lib/company/driving/skill.model.js +0 -47
  277. package/lib/company/driving/skill.model.js.map +0 -1
  278. package/lib/company/driving/status.enum.d.ts +0 -5
  279. package/lib/company/driving/status.enum.js +0 -10
  280. package/lib/company/driving/status.enum.js.map +0 -1
  281. package/lib/company/driving/topic.model.d.ts +0 -10
  282. package/lib/company/driving/topic.model.js +0 -54
  283. package/lib/company/driving/topic.model.js.map +0 -1
  284. package/lib/company/driving/transmission.enum.d.ts +0 -4
  285. package/lib/company/driving/transmission.enum.js +0 -9
  286. package/lib/company/driving/transmission.enum.js.map +0 -1
  287. package/lib/company/event.model.js.map +0 -1
  288. package/lib/company/finances/card.model.d.ts +0 -10
  289. package/lib/company/finances/card.model.js +0 -55
  290. package/lib/company/finances/card.model.js.map +0 -1
  291. package/lib/company/finances/credit.model.d.ts +0 -9
  292. package/lib/company/finances/credit.model.js +0 -50
  293. package/lib/company/finances/credit.model.js.map +0 -1
  294. package/lib/company/finances/expense-category.model.d.ts +0 -5
  295. package/lib/company/finances/expense-category.model.js +0 -31
  296. package/lib/company/finances/expense-category.model.js.map +0 -1
  297. package/lib/company/finances/expense.model.d.ts +0 -11
  298. package/lib/company/finances/expense.model.js +0 -55
  299. package/lib/company/finances/expense.model.js.map +0 -1
  300. package/lib/company/finances/finance.enum.d.ts +0 -22
  301. package/lib/company/finances/finance.enum.js +0 -31
  302. package/lib/company/finances/finance.enum.js.map +0 -1
  303. package/lib/company/finances/index.d.ts +0 -5
  304. package/lib/company/finances/index.js +0 -22
  305. package/lib/company/finances/index.js.map +0 -1
  306. package/lib/company/finances/payment.model.d.ts +0 -7
  307. package/lib/company/finances/payment.model.js +0 -39
  308. package/lib/company/finances/payment.model.js.map +0 -1
  309. package/lib/company/finances/priceplan.model.d.ts +0 -19
  310. package/lib/company/finances/priceplan.model.js +0 -95
  311. package/lib/company/finances/priceplan.model.js.map +0 -1
  312. package/lib/company/plan/index.d.ts +0 -2
  313. package/lib/company/plan/index.js +0 -19
  314. package/lib/company/plan/index.js.map +0 -1
  315. package/lib/company/plan/plan.enum.d.ts +0 -9
  316. package/lib/company/plan/plan.enum.js +0 -15
  317. package/lib/company/plan/plan.enum.js.map +0 -1
  318. package/lib/company/plan/plan.model.d.ts +0 -16
  319. package/lib/company/plan/plan.model.js +0 -87
  320. package/lib/company/plan/plan.model.js.map +0 -1
  321. package/lib/company/plan.enum.d.ts +0 -9
  322. package/lib/company/plan.enum.js +0 -15
  323. package/lib/company/plan.enum.js.map +0 -1
  324. package/lib/company/priceplan.model.d.ts +0 -16
  325. package/lib/company/priceplan.model.js +0 -87
  326. package/lib/company/priceplan.model.js.map +0 -1
  327. package/lib/company/setting.model.d.ts +0 -10
  328. package/lib/company/setting.model.js.map +0 -1
  329. package/lib/company/student/index.d.ts +0 -1
  330. package/lib/company/student/index.js +0 -18
  331. package/lib/company/student/index.js.map +0 -1
  332. package/lib/company/student/student.model.d.ts +0 -10
  333. package/lib/company/student/student.model.js +0 -43
  334. package/lib/company/student/student.model.js.map +0 -1
  335. package/lib/company/team/index.d.ts +0 -2
  336. package/lib/company/team/index.js +0 -19
  337. package/lib/company/team/index.js.map +0 -1
  338. package/lib/company/team/team.dto.d.ts +0 -6
  339. package/lib/company/team/team.dto.js +0 -39
  340. package/lib/company/team/team.dto.js.map +0 -1
  341. package/lib/company/team/user.model.d.ts +0 -33
  342. package/lib/company/team/user.model.js +0 -104
  343. package/lib/company/team/user.model.js.map +0 -1
  344. package/lib/company/team/user.status.enum.d.ts +0 -5
  345. package/lib/company/team/user.status.enum.js +0 -10
  346. package/lib/company/team/user.status.enum.js.map +0 -1
  347. package/lib/company/user.model.d.ts +0 -25
  348. package/lib/company/user.model.js +0 -124
  349. package/lib/company/user.model.js.map +0 -1
  350. package/lib/enums/date.d.ts +0 -9
  351. package/lib/enums/date.js +0 -14
  352. package/lib/enums/date.js.map +0 -1
  353. package/lib/enums/finance.d.ts +0 -22
  354. package/lib/enums/finance.js +0 -31
  355. package/lib/enums/finance.js.map +0 -1
  356. package/lib/enums/index.d.ts +0 -1
  357. package/lib/enums/index.js +0 -14
  358. package/lib/enums/index.js.map +0 -1
  359. package/lib/enums/language.d.ts +0 -6
  360. package/lib/enums/language.js +0 -11
  361. package/lib/enums/language.js.map +0 -1
  362. package/lib/enums/notification.d.ts +0 -11
  363. package/lib/enums/notification.js +0 -17
  364. package/lib/enums/notification.js.map +0 -1
  365. package/lib/enums/plan.d.ts +0 -9
  366. package/lib/enums/plan.js +0 -15
  367. package/lib/enums/plan.js.map +0 -1
  368. package/lib/enums/role.d.ts +0 -6
  369. package/lib/enums/role.js +0 -11
  370. package/lib/enums/role.js.map +0 -1
  371. package/lib/enums/score.d.ts +0 -12
  372. package/lib/enums/score.js +0 -18
  373. package/lib/enums/score.js.map +0 -1
  374. package/lib/enums/training.d.ts +0 -19
  375. package/lib/enums/training.js +0 -27
  376. package/lib/enums/training.js.map +0 -1
  377. package/lib/finance/handover.dto.d.ts +0 -6
  378. package/lib/finance/handover.dto.js +0 -45
  379. package/lib/finance/handover.dto.js.map +0 -1
  380. package/lib/finance/handover.model.d.ts +0 -13
  381. package/lib/finance/handover.model.js +0 -65
  382. package/lib/finance/handover.model.js.map +0 -1
  383. package/lib/language/index.d.ts +0 -1
  384. package/lib/language/index.js.map +0 -1
  385. package/lib/language/language.enum.d.ts +0 -6
  386. package/lib/language/language.enum.js +0 -11
  387. package/lib/language/language.enum.js.map +0 -1
  388. package/lib/notification/notification-preference.model.d.ts +0 -5
  389. package/lib/notification/notification-preference.model.js +0 -31
  390. package/lib/notification/notification-preference.model.js.map +0 -1
  391. package/lib/notification/notification.enum.d.ts +0 -11
  392. package/lib/notification/notification.enum.js +0 -17
  393. package/lib/notification/notification.enum.js.map +0 -1
  394. package/lib/notification/notification.types.d.ts +0 -11
  395. package/lib/notification/notification.types.js +0 -17
  396. package/lib/notification/notification.types.js.map +0 -1
  397. package/lib/public/user-agent.interface.d.ts +0 -6
  398. package/lib/public/user-agent.interface.js.map +0 -1
  399. package/lib/security/roles.d.ts +0 -9
  400. package/lib/security/roles.js +0 -14
  401. package/lib/security/roles.js.map +0 -1
  402. package/lib/security/token.interface.d.ts +0 -7
  403. package/lib/security/token.interface.js.map +0 -1
  404. package/lib/session/course/index.d.ts +0 -1
  405. package/lib/session/course/index.js +0 -14
  406. package/lib/session/course/index.js.map +0 -1
  407. package/lib/session/course/session.model.d.ts +0 -8
  408. package/lib/session/course/session.model.js +0 -36
  409. package/lib/session/course/session.model.js.map +0 -1
  410. package/lib/session/driving/appointment-assessment.d.ts +0 -8
  411. package/lib/session/driving/appointment-assessment.js +0 -50
  412. package/lib/session/driving/appointment-assessment.js.map +0 -1
  413. package/lib/student/course/appointment.model.d.ts +0 -5
  414. package/lib/student/course/appointment.model.js +0 -32
  415. package/lib/student/course/appointment.model.js.map +0 -1
  416. package/lib/student/course/index.d.ts +0 -3
  417. package/lib/student/course/index.js +0 -20
  418. package/lib/student/course/index.js.map +0 -1
  419. package/lib/student/course/request.model.d.ts +0 -11
  420. package/lib/student/course/request.model.js +0 -62
  421. package/lib/student/course/request.model.js.map +0 -1
  422. package/lib/student/course/training.model.d.ts +0 -16
  423. package/lib/student/course/training.model.js +0 -92
  424. package/lib/student/course/training.model.js.map +0 -1
  425. package/lib/student/driving/appointment-skill.model.d.ts +0 -6
  426. package/lib/student/driving/appointment-skill.model.js +0 -32
  427. package/lib/student/driving/appointment-skill.model.js.map +0 -1
  428. package/lib/student/driving/appointment-topic.model.d.ts +0 -6
  429. package/lib/student/driving/appointment-topic.model.js +0 -32
  430. package/lib/student/driving/appointment-topic.model.js.map +0 -1
  431. package/lib/student/driving/appointment.model.d.ts +0 -12
  432. package/lib/student/driving/appointment.model.js +0 -67
  433. package/lib/student/driving/appointment.model.js.map +0 -1
  434. package/lib/student/driving/exam/exam-topic-assesment.model.d.ts +0 -8
  435. package/lib/student/driving/exam/exam-topic-assesment.model.js +0 -40
  436. package/lib/student/driving/exam/exam-topic-assesment.model.js.map +0 -1
  437. package/lib/student/driving/exam/exam.model.d.ts +0 -11
  438. package/lib/student/driving/exam/exam.model.js +0 -50
  439. package/lib/student/driving/exam/exam.model.js.map +0 -1
  440. package/lib/student/driving/exam/index.d.ts +0 -2
  441. package/lib/student/driving/exam/index.js +0 -19
  442. package/lib/student/driving/exam/index.js.map +0 -1
  443. package/lib/student/driving/index.d.ts +0 -8
  444. package/lib/student/driving/index.js +0 -25
  445. package/lib/student/driving/index.js.map +0 -1
  446. package/lib/student/driving/request.model.d.ts +0 -13
  447. package/lib/student/driving/request.model.js +0 -73
  448. package/lib/student/driving/request.model.js.map +0 -1
  449. package/lib/student/driving/skill.model.d.ts +0 -6
  450. package/lib/student/driving/skill.model.js +0 -32
  451. package/lib/student/driving/skill.model.js.map +0 -1
  452. package/lib/student/driving/topic.model.d.ts +0 -7
  453. package/lib/student/driving/topic.model.js +0 -38
  454. package/lib/student/driving/topic.model.js.map +0 -1
  455. package/lib/student/driving/training.model.d.ts +0 -23
  456. package/lib/student/driving/training.model.js +0 -131
  457. package/lib/student/driving/training.model.js.map +0 -1
  458. package/lib/student/signature.model.d.ts +0 -7
  459. package/lib/student/signature.model.js +0 -42
  460. package/lib/student/signature.model.js.map +0 -1
  461. package/lib/support/index.d.ts +0 -1
  462. package/lib/support/index.js +0 -18
  463. package/lib/support/index.js.map +0 -1
  464. package/lib/support/request.dto.d.ts +0 -5
  465. package/lib/support/request.dto.js +0 -39
  466. package/lib/support/request.dto.js.map +0 -1
  467. package/lib/system/country.model.d.ts +0 -15
  468. package/lib/system/country.model.js +0 -75
  469. package/lib/system/country.model.js.map +0 -1
  470. package/lib/system/driving/category.model.d.ts +0 -12
  471. package/lib/system/driving/category.model.js +0 -66
  472. package/lib/system/driving/category.model.js.map +0 -1
  473. package/lib/system/driving/category.trans.model.d.ts +0 -8
  474. package/lib/system/driving/category.trans.model.js +0 -42
  475. package/lib/system/driving/category.trans.model.js.map +0 -1
  476. package/lib/system/driving/index.d.ts +0 -6
  477. package/lib/system/driving/index.js +0 -23
  478. package/lib/system/driving/index.js.map +0 -1
  479. package/lib/system/driving/skill.model.d.ts +0 -11
  480. package/lib/system/driving/skill.model.js +0 -61
  481. package/lib/system/driving/skill.model.js.map +0 -1
  482. package/lib/system/driving/skill.trans.model.d.ts +0 -9
  483. package/lib/system/driving/skill.trans.model.js +0 -48
  484. package/lib/system/driving/skill.trans.model.js.map +0 -1
  485. package/lib/system/driving/topic.model.d.ts +0 -10
  486. package/lib/system/driving/topic.model.js +0 -55
  487. package/lib/system/driving/topic.model.js.map +0 -1
  488. package/lib/system/driving/topic.trans.model.d.ts +0 -8
  489. package/lib/system/driving/topic.trans.model.js +0 -42
  490. package/lib/system/driving/topic.trans.model.js.map +0 -1
  491. package/lib/system/finances/currency.model.d.ts +0 -9
  492. package/lib/system/finances/currency.model.js +0 -53
  493. package/lib/system/finances/currency.model.js.map +0 -1
  494. package/lib/system/finances/index.d.ts +0 -3
  495. package/lib/system/finances/index.js +0 -20
  496. package/lib/system/finances/index.js.map +0 -1
  497. package/lib/system/finances/priceplan.model.d.ts +0 -13
  498. package/lib/system/finances/priceplan.model.js +0 -67
  499. package/lib/system/finances/priceplan.model.js.map +0 -1
  500. package/lib/system/finances/priceplan.translation.d.ts +0 -8
  501. package/lib/system/finances/priceplan.translation.js +0 -42
  502. package/lib/system/finances/priceplan.translation.js.map +0 -1
  503. package/lib/system/index.d.ts +0 -3
  504. package/lib/system/index.js +0 -20
  505. package/lib/system/index.js.map +0 -1
  506. package/lib/user/biometric.dto.d.ts +0 -3
  507. package/lib/user/biometric.dto.js +0 -25
  508. package/lib/user/biometric.dto.js.map +0 -1
  509. package/lib/user/email.dto.d.ts +0 -4
  510. package/lib/user/email.dto.js +0 -32
  511. package/lib/user/email.dto.js.map +0 -1
  512. package/lib/user/notification/index.d.ts +0 -3
  513. package/lib/user/notification/index.js +0 -20
  514. package/lib/user/notification/index.js.map +0 -1
  515. package/lib/user/notification/notification-preference.model.d.ts +0 -5
  516. package/lib/user/notification/notification-preference.model.js +0 -31
  517. package/lib/user/notification/notification-preference.model.js.map +0 -1
  518. package/lib/user/notification/notification.enum.d.ts +0 -11
  519. package/lib/user/notification/notification.enum.js +0 -17
  520. package/lib/user/notification/notification.enum.js.map +0 -1
  521. package/lib/user/notification/notification.model.d.ts +0 -10
  522. package/lib/user/notification/notification.model.js +0 -53
  523. package/lib/user/notification/notification.model.js.map +0 -1
  524. package/lib/user/phone.dto.d.ts +0 -4
  525. package/lib/user/phone.dto.js +0 -32
  526. package/lib/user/phone.dto.js.map +0 -1
  527. package/lib/user/sign.dto.d.ts +0 -5
  528. package/lib/user/sign.dto.js +0 -38
  529. package/lib/user/sign.dto.js.map +0 -1
  530. package/lib/user/user.device.model.d.ts +0 -8
  531. package/lib/user/user.device.model.js +0 -46
  532. package/lib/user/user.device.model.js.map +0 -1
  533. /package/lib/{company/event.model.d.ts → task/task.model.d.ts} +0 -0
@@ -0,0 +1,16 @@
1
+ /**
2
+ * * Represents identity information for a person.
3
+ * * This model includes optional fields for name, image URL, description, phone number, and email.
4
+ * * It is used in different modules to represent user identities.
5
+ * * Changes on this model can be reflected in different JSON fields in entities
6
+ */
7
+ export declare class Person {
8
+ id: number;
9
+ name: string;
10
+ imageUrl: string;
11
+ description: string;
12
+ phone: string;
13
+ email: string;
14
+ constructor(props?: Partial<Person>);
15
+ static toInstance(props: Partial<Person>): Person;
16
+ }
@@ -9,44 +9,52 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CompanySetting = void 0;
12
+ exports.Person = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const common_1 = require("./common");
15
- class CompanySetting {
14
+ /**
15
+ * * Represents identity information for a person.
16
+ * * This model includes optional fields for name, image URL, description, phone number, and email.
17
+ * * It is used in different modules to represent user identities.
18
+ * * Changes on this model can be reflected in different JSON fields in entities
19
+ */
20
+ class Person {
16
21
  id;
17
- scope;
18
22
  name;
19
- value;
20
- title;
23
+ imageUrl;
21
24
  description;
25
+ phone;
26
+ email;
22
27
  constructor(props) {
23
28
  Object.assign(this, props);
24
29
  }
30
+ static toInstance(props) {
31
+ return (0, class_transformer_1.plainToInstance)(Person, props);
32
+ }
25
33
  }
26
- exports.CompanySetting = CompanySetting;
34
+ exports.Person = Person;
27
35
  __decorate([
28
36
  (0, class_transformer_1.Expose)(),
29
37
  (0, class_transformer_1.Type)(() => Number),
30
38
  __metadata("design:type", Number)
31
- ], CompanySetting.prototype, "id", void 0);
39
+ ], Person.prototype, "id", void 0);
32
40
  __decorate([
33
41
  (0, class_transformer_1.Expose)(),
34
42
  __metadata("design:type", String)
35
- ], CompanySetting.prototype, "scope", void 0);
43
+ ], Person.prototype, "name", void 0);
36
44
  __decorate([
37
45
  (0, class_transformer_1.Expose)(),
38
46
  __metadata("design:type", String)
39
- ], CompanySetting.prototype, "name", void 0);
47
+ ], Person.prototype, "imageUrl", void 0);
40
48
  __decorate([
41
49
  (0, class_transformer_1.Expose)(),
42
50
  __metadata("design:type", String)
43
- ], CompanySetting.prototype, "value", void 0);
51
+ ], Person.prototype, "description", void 0);
44
52
  __decorate([
45
53
  (0, class_transformer_1.Expose)(),
46
54
  __metadata("design:type", String)
47
- ], CompanySetting.prototype, "title", void 0);
55
+ ], Person.prototype, "phone", void 0);
48
56
  __decorate([
49
57
  (0, class_transformer_1.Expose)(),
50
58
  __metadata("design:type", String)
51
- ], CompanySetting.prototype, "description", void 0);
52
- //# sourceMappingURL=setting.model.js.map
59
+ ], Person.prototype, "email", void 0);
60
+ //# sourceMappingURL=person.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person.js","sourceRoot":"","sources":["../../src/common/person.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAkE;AAElE;;;;;GAKG;AACH,MAAa,MAAM;IAIlB,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,WAAW,CAAS;IAGpB,KAAK,CAAS;IAGd,KAAK,CAAS;IAEd,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,KAAsB;QACvC,OAAO,IAAA,mCAAe,EAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC;CACD;AA5BD,wBA4BC;AAxBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;oCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;wCACQ;AAGjB;IADC,IAAA,0BAAM,GAAE;;2CACW;AAGpB;IADC,IAAA,0BAAM,GAAE;;qCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;qCACK"}
@@ -65,6 +65,10 @@ export declare class Company {
65
65
  canChangePlan: boolean;
66
66
  freeBenefits: FreeBenefit[];
67
67
  freeBenefitsAllowed: boolean;
68
+ /**
69
+ * @deprecated use canAddDrivingTraining and canAddCourseTraining instead
70
+ */
71
+ canAddTraining: boolean;
68
72
  canAddDrivingTraining: boolean;
69
73
  canAddCourseTraining: boolean;
70
74
  metrics: Metric[];
@@ -78,6 +78,11 @@ class Company {
78
78
  canChangePlan;
79
79
  freeBenefits;
80
80
  freeBenefitsAllowed;
81
+ // TODO: remove deprecated canAddTraining field in future releases
82
+ /**
83
+ * @deprecated use canAddDrivingTraining and canAddCourseTraining instead
84
+ */
85
+ canAddTraining;
81
86
  canAddDrivingTraining;
82
87
  canAddCourseTraining;
83
88
  metrics;
@@ -262,6 +267,11 @@ __decorate([
262
267
  (0, class_transformer_1.Type)(() => Boolean),
263
268
  __metadata("design:type", Boolean)
264
269
  ], Company.prototype, "freeBenefitsAllowed", void 0);
270
+ __decorate([
271
+ (0, class_transformer_1.Expose)(),
272
+ (0, class_transformer_1.Type)(() => Boolean),
273
+ __metadata("design:type", Boolean)
274
+ ], Company.prototype, "canAddTraining", void 0);
265
275
  __decorate([
266
276
  (0, class_transformer_1.Expose)(),
267
277
  (0, class_transformer_1.Type)(() => Boolean),
@@ -1 +1 @@
1
- {"version":3,"file":"company.model.js","sourceRoot":"","sources":["../../src/company/company.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,sCAAqC;AACrC,0CAAyD;AACzD,0CAA4C;AAC5C,wCAAqC;AACrC,wCAA6C;AAC7C,gCAA6D;AAC7D,kCAA+B;AAC/B,kCAA+B;AAC/B,8CAA2C;AAC3C,wCAAkD;AAClD,4CAAyC;AACzC,sCAAmC;AACnC,2EAAiE;AAEjE,MAAa,OAAO;IAGnB,EAAE,CAAS;IAGX,GAAG,CAAS;IAGZ,IAAI,CAAS;IAIb,SAAS,CAAO;IAGhB,WAAW,CAAS;IAGpB,MAAM,CAAgB;IAGtB,QAAQ,CAAW;IAGnB,OAAO,CAAS;IAIhB,MAAM,CAAS;IAEf;;;;;OAKG;IAGH,gBAAgB,CAAS;IAIzB,OAAO,CAAS;IAEhB;;OAEG;IAEH,aAAa,CAAS;IAItB,OAAO,CAAU;IAGjB,OAAO,CAAS;IAIhB,KAAK,CAAa;IAGlB,IAAI,CAAS;IAGb,KAAK,CAAS;IAId,eAAe,CAAmB;IAIlC,MAAM,CAAU;IAGhB,QAAQ,CAAS;IAGjB,QAAQ,CAAS;IAGjB,KAAK,CAAS;IAGd,KAAK,CAAS;IAId,OAAO,CAAS;IAIhB,YAAY,CAAsB;IAIlC,QAAQ,CAAY;IAIpB,OAAO,CAAU;IAIjB,UAAU,CAAoB;IAI9B,gBAAgB,CAAoB;IAIpC,KAAK,CAAO;IAIZ,SAAS,CAAa;IAEtB;;OAEG;IAGH,mBAAmB,CAAuB;IAE1C;;OAEG;IAGH,oBAA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AAS,CAAC;8BACR,qBAAS;6CAAC;AAIxB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;8CACG;AAIvB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAW,CAAC;;6CACI;AAI5B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;oDACS;AAQ7B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;+CACI;AAIxB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;sDACW;AAI/B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;qDACU;AAI9B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;;wCACD"}
@@ -1,5 +1,6 @@
1
1
  import { Country } from "../../country/country.model";
2
2
  import { Language } from "../../common/language";
3
+ import { Context } from "../../common";
3
4
  export declare class DrivingCategory {
4
5
  id: number;
5
6
  groupName: string;
@@ -9,6 +10,7 @@ export declare class DrivingCategory {
9
10
  active: boolean;
10
11
  icon: string;
11
12
  minAge: number;
13
+ context: Context;
12
14
  country: Country;
13
15
  /************** company definitions **************/
14
16
  sessionPrice: number;
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DrivingCategory = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const country_model_1 = require("../../country/country.model");
15
+ const common_1 = require("../../common");
15
16
  class DrivingCategory {
16
17
  id;
17
18
  groupName;
@@ -21,6 +22,7 @@ class DrivingCategory {
21
22
  active;
22
23
  icon;
23
24
  minAge;
25
+ context;
24
26
  country;
25
27
  /************** company definitions **************/
26
28
  sessionPrice;
@@ -77,6 +79,10 @@ __decorate([
77
79
  (0, class_transformer_1.Type)(() => Number),
78
80
  __metadata("design:type", Number)
79
81
  ], DrivingCategory.prototype, "minAge", void 0);
82
+ __decorate([
83
+ (0, class_transformer_1.Expose)(),
84
+ __metadata("design:type", String)
85
+ ], DrivingCategory.prototype, "context", void 0);
80
86
  __decorate([
81
87
  (0, class_transformer_1.Expose)(),
82
88
  __metadata("design:type", country_model_1.Country)
@@ -1 +1 @@
1
- {"version":3,"file":"category.model.js","sourceRoot":"","sources":["../../../src/driving/category/category.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,+DAAsD;AAItD,MAAa,eAAe;IAI3B,EAAE,CAAS;IAGX,SAAS,CAAS;IAGlB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,WAAW,CAAS;IAIpB,MAAM,CAAU;IAGhB,IAAI,CAAS;IAIb,MAAM,CAAS;IAGf,OAAO,CAAU;IAEjB,mDAAmD;IAInD,YAAY,CAAS;IAIrB,eAAe,CAAS;IAIxB,iBAAiB,CAAS;IAE1B,kEAAkE;IAGlE,YAAY,CAIR;IAEJ,uEAAuE;IAEvE;;OAEG;IAGH,MAAM,CAAS;IAEf;;OAEG;IAGH,MAAM,CAAS;IAEf,YAAY,KAAgC;QAC3C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA1ED,0CA0EC;AAtEA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2CACR;AAGX;IADC,IAAA,0BAAM,GAAE;;kDACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;6CACI;AAGb;IADC,IAAA,0BAAM,GAAE;;8CACK;AAGd;IADC,IAAA,0BAAM,GAAE;;oDACW;AAIpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EA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27 @@
1
+ export declare enum AgentAccountEvents {
2
+ /**
3
+ * Agent account is created
4
+ * @author Auth User
5
+ * @fires Log user for auditing purposes
6
+ * @fires Log agent for auditing purposes
7
+ * @fires Log system log for auditing purposes
8
+ * @param AgentEntity Event author
9
+ */
10
+ Created = "agent.account.created",
11
+ /**
12
+ * Agent account is completed
13
+ * @author Auth User
14
+ * @fires Log agent for auditing purposes
15
+ * @param AgentEntity Event author
16
+ */
17
+ Completed = "agent.account.completed",
18
+ /**
19
+ * Agent account is closed
20
+ * @author Auth User
21
+ * @fires Log user for auditing purposes
22
+ * @fires Log agent for auditing purposes
23
+ * @fires Log System log for auditing purposes
24
+ * @param AgentEntity Event author
25
+ */
26
+ Closed = "agent.account.closed"
27
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentAccountEvents = void 0;
4
+ var AgentAccountEvents;
5
+ (function (AgentAccountEvents) {
6
+ /**
7
+ * Agent account is created
8
+ * @author Auth User
9
+ * @fires Log user for auditing purposes
10
+ * @fires Log agent for auditing purposes
11
+ * @fires Log system log for auditing purposes
12
+ * @param AgentEntity Event author
13
+ */
14
+ AgentAccountEvents["Created"] = "agent.account.created";
15
+ /**
16
+ * Agent account is completed
17
+ * @author Auth User
18
+ * @fires Log agent for auditing purposes
19
+ * @param AgentEntity Event author
20
+ */
21
+ AgentAccountEvents["Completed"] = "agent.account.completed";
22
+ /**
23
+ * Agent account is closed
24
+ * @author Auth User
25
+ * @fires Log user for auditing purposes
26
+ * @fires Log agent for auditing purposes
27
+ * @fires Log System log for auditing purposes
28
+ * @param AgentEntity Event author
29
+ */
30
+ AgentAccountEvents["Closed"] = "agent.account.closed";
31
+ })(AgentAccountEvents || (exports.AgentAccountEvents = AgentAccountEvents = {}));
32
+ //# sourceMappingURL=account.events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.events.js","sourceRoot":"","sources":["../../../src/events/agent/account.events.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBA6BX;AA7BD,WAAY,kBAAkB;IAE7B;;;;;;;OAOG;IACH,uDAAiC,CAAA;IAEjC;;;;;OAKG;IACH,2DAAqC,CAAA;IAErC;;;;;;;OAOG;IACH,qDAA+B,CAAA;AAChC,CAAC,EA7BW,kBAAkB,kCAAlB,kBAAkB,QA6B7B"}
@@ -0,0 +1,29 @@
1
+ export declare enum AgentPayoutEvents {
2
+ /**
3
+ * Agent promotion profit is registered
4
+ * @author System/Job
5
+ * @fires Log staff for auditing purposes
6
+ * @fires Log agent for auditing purposes
7
+ * @fires Log system for auditing purposes
8
+ * @param AgentPromotionEntity Agent promotion
9
+ */
10
+ ProfitRegistred = "agent.payout.profitRegistered",
11
+ /**
12
+ * Agent payout is settled
13
+ * @author Staff
14
+ * @fires Log agent for auditing purposes
15
+ * @fires Log system for auditing purposes
16
+ * @param AgentPayoutEntity Agent whose earnings are settled
17
+ * @param StaffEntity Event author
18
+ */
19
+ PaymentSettled = "agent.payout.paymentSettled",
20
+ /**
21
+ * Agent payout is paid
22
+ * @author Staff
23
+ * @fires Log agent for auditing purposes
24
+ * @fires Log system for auditing purposes
25
+ * @param AgentPayoutEntity Paid agent
26
+ * @param StaffEntity Event author
27
+ */
28
+ PaymentPaid = "agent.payout.paymentPaid"
29
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentPayoutEvents = void 0;
4
+ var AgentPayoutEvents;
5
+ (function (AgentPayoutEvents) {
6
+ /**
7
+ * Agent promotion profit is registered
8
+ * @author System/Job
9
+ * @fires Log staff for auditing purposes
10
+ * @fires Log agent for auditing purposes
11
+ * @fires Log system for auditing purposes
12
+ * @param AgentPromotionEntity Agent promotion
13
+ */
14
+ AgentPayoutEvents["ProfitRegistred"] = "agent.payout.profitRegistered";
15
+ /**
16
+ * Agent payout is settled
17
+ * @author Staff
18
+ * @fires Log agent for auditing purposes
19
+ * @fires Log system for auditing purposes
20
+ * @param AgentPayoutEntity Agent whose earnings are settled
21
+ * @param StaffEntity Event author
22
+ */
23
+ AgentPayoutEvents["PaymentSettled"] = "agent.payout.paymentSettled";
24
+ /**
25
+ * Agent payout is paid
26
+ * @author Staff
27
+ * @fires Log agent for auditing purposes
28
+ * @fires Log system for auditing purposes
29
+ * @param AgentPayoutEntity Paid agent
30
+ * @param StaffEntity Event author
31
+ */
32
+ AgentPayoutEvents["PaymentPaid"] = "agent.payout.paymentPaid";
33
+ })(AgentPayoutEvents || (exports.AgentPayoutEvents = AgentPayoutEvents = {}));
34
+ //# sourceMappingURL=payout.events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payout.events.js","sourceRoot":"","sources":["../../../src/events/agent/payout.events.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBA+BX;AA/BD,WAAY,iBAAiB;IAE5B;;;;;;;OAOG;IACH,sEAAiD,CAAA;IAEjD;;;;;;;OAOG;IACH,mEAA8C,CAAA;IAE9C;;;;;;;OAOG;IACH,6DAAwC,CAAA;AACzC,CAAC,EA/BW,iBAAiB,iCAAjB,iBAAiB,QA+B5B"}
@@ -0,0 +1,18 @@
1
+ export declare enum AgentProfileEvents {
2
+ /**
3
+ * Agent submits his bank account
4
+ * @author Auth User
5
+ * @fires Log agent for auditing purposes
6
+ * @fires Log system for auditing purposes
7
+ * @param AgentEntity Event author
8
+ */
9
+ BankAccountSubmitted = "agent.profile.bankAccountSubmitted",
10
+ /**
11
+ * Agent deletes his bank account
12
+ * @author Auth User
13
+ * @fires Log agent for auditing purposes
14
+ * @fires Log system for auditing purposes
15
+ * @param AgentEntity Event author
16
+ */
17
+ BankAccountDeleted = "agent.profile.bankAccountDeleted"
18
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentProfileEvents = void 0;
4
+ var AgentProfileEvents;
5
+ (function (AgentProfileEvents) {
6
+ /**
7
+ * Agent submits his bank account
8
+ * @author Auth User
9
+ * @fires Log agent for auditing purposes
10
+ * @fires Log system for auditing purposes
11
+ * @param AgentEntity Event author
12
+ */
13
+ AgentProfileEvents["BankAccountSubmitted"] = "agent.profile.bankAccountSubmitted";
14
+ /**
15
+ * Agent deletes his bank account
16
+ * @author Auth User
17
+ * @fires Log agent for auditing purposes
18
+ * @fires Log system for auditing purposes
19
+ * @param AgentEntity Event author
20
+ */
21
+ AgentProfileEvents["BankAccountDeleted"] = "agent.profile.bankAccountDeleted";
22
+ })(AgentProfileEvents || (exports.AgentProfileEvents = AgentProfileEvents = {}));
23
+ //# sourceMappingURL=profile.events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.events.js","sourceRoot":"","sources":["../../../src/events/agent/profile.events.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAmBX;AAnBD,WAAY,kBAAkB;IAE7B;;;;;;OAMG;IACH,iFAA2D,CAAA;IAE3D;;;;;;OAMG;IACH,6EAAuD,CAAA;AACxD,CAAC,EAnBW,kBAAkB,kCAAlB,kBAAkB,QAmB7B"}
@@ -0,0 +1,42 @@
1
+ export declare enum AgentPromotionEvents {
2
+ /**
3
+ * Agent promotion code is registered (by company)
4
+ * @author Company Owner
5
+ * @fires Instructor (owner) log for auditing purposes
6
+ * @fires Log company for auditing purposes
7
+ * @fires Log agent for auditing purposes
8
+ * @fires Log system for auditing purposes
9
+ * @fires Notify agent about the promotion code registration
10
+ * @param CompanyEntity Effected company
11
+ */
12
+ Registred = "agent.promotion.registred",
13
+ /**
14
+ * Agent promotion has started
15
+ * @author System/Job
16
+ * @fires Log agent for auditing purposes
17
+ * @fires Log system for auditing purposes
18
+ * @fires Notify agent about the promotion start
19
+ * @param CompanyEntity Effected company
20
+ */
21
+ Started = "agent.promotion.started",
22
+ /**
23
+ * Agent promotion has ended
24
+ * @author System/Job
25
+ * @fires Log agent for auditing purposes
26
+ * @fires Log company for auditing purposes
27
+ * @fires Log system for auditing purposes
28
+ * @fires Notify agent about the promotion end
29
+ * @param CompanyEntity Effected company
30
+ */
31
+ Ended = "agent.promotion.ended",
32
+ /**
33
+ * Agent promotion is closed due to company closure
34
+ * @author Company Owner
35
+ * @fires Log agent for auditing purposes
36
+ * @fires Log company for auditing purposes
37
+ * @fires Log system for auditing purposes
38
+ * @fires Notify agent about the promotion closure
39
+ * @param CompanyEntity Effected company
40
+ */
41
+ Closed = "agent.promotion.closed"
42
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentPromotionEvents = void 0;
4
+ var AgentPromotionEvents;
5
+ (function (AgentPromotionEvents) {
6
+ /**
7
+ * Agent promotion code is registered (by company)
8
+ * @author Company Owner
9
+ * @fires Instructor (owner) log for auditing purposes
10
+ * @fires Log company for auditing purposes
11
+ * @fires Log agent for auditing purposes
12
+ * @fires Log system for auditing purposes
13
+ * @fires Notify agent about the promotion code registration
14
+ * @param CompanyEntity Effected company
15
+ */
16
+ AgentPromotionEvents["Registred"] = "agent.promotion.registred";
17
+ /**
18
+ * Agent promotion has started
19
+ * @author System/Job
20
+ * @fires Log agent for auditing purposes
21
+ * @fires Log system for auditing purposes
22
+ * @fires Notify agent about the promotion start
23
+ * @param CompanyEntity Effected company
24
+ */
25
+ AgentPromotionEvents["Started"] = "agent.promotion.started";
26
+ /**
27
+ * Agent promotion has ended
28
+ * @author System/Job
29
+ * @fires Log agent for auditing purposes
30
+ * @fires Log company for auditing purposes
31
+ * @fires Log system for auditing purposes
32
+ * @fires Notify agent about the promotion end
33
+ * @param CompanyEntity Effected company
34
+ */
35
+ AgentPromotionEvents["Ended"] = "agent.promotion.ended";
36
+ /**
37
+ * Agent promotion is closed due to company closure
38
+ * @author Company Owner
39
+ * @fires Log agent for auditing purposes
40
+ * @fires Log company for auditing purposes
41
+ * @fires Log system for auditing purposes
42
+ * @fires Notify agent about the promotion closure
43
+ * @param CompanyEntity Effected company
44
+ */
45
+ AgentPromotionEvents["Closed"] = "agent.promotion.closed";
46
+ })(AgentPromotionEvents || (exports.AgentPromotionEvents = AgentPromotionEvents = {}));
47
+ //# sourceMappingURL=promotion.events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promotion.events.js","sourceRoot":"","sources":["../../../src/events/agent/promotion.events.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBA6CX;AA7CD,WAAY,oBAAoB;IAE/B;;;;;;;;;OASG;IACH,+DAAuC,CAAA;IAEvC;;;;;;;OAOG;IACH,2DAAmC,CAAA;IAEnC;;;;;;;;OAQG;IACH,uDAA+B,CAAA;IAE/B;;;;;;;;OAQG;IACH,yDAAiC,CAAA;AAClC,CAAC,EA7CW,oBAAoB,oCAApB,oBAAoB,QA6C/B"}
@@ -0,0 +1,16 @@
1
+ export declare enum AuthEvents {
2
+ /**
3
+ * User signs in with phone number
4
+ * @author Auth User
5
+ * @fires Log user for auditing purposes
6
+ * @param UserEntity Auth user
7
+ */
8
+ SigninPhone = "auth.signin.phone",
9
+ /**
10
+ * User signs in with biometric authentication
11
+ * @author Auth User
12
+ * @fires Log user for auditing purposes
13
+ * @param UserDeviceEntity Auth user
14
+ */
15
+ SigninBiometric = "auth.signin.biometric"
16
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthEvents = void 0;
4
+ var AuthEvents;
5
+ (function (AuthEvents) {
6
+ /**
7
+ * User signs in with phone number
8
+ * @author Auth User
9
+ * @fires Log user for auditing purposes
10
+ * @param UserEntity Auth user
11
+ */
12
+ AuthEvents["SigninPhone"] = "auth.signin.phone";
13
+ /**
14
+ * User signs in with biometric authentication
15
+ * @author Auth User
16
+ * @fires Log user for auditing purposes
17
+ * @param UserDeviceEntity Auth user
18
+ */
19
+ AuthEvents["SigninBiometric"] = "auth.signin.biometric";
20
+ })(AuthEvents || (exports.AuthEvents = AuthEvents = {}));
21
+ //# sourceMappingURL=auth.events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.events.js","sourceRoot":"","sources":["../../../src/events/auth/auth.events.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAgBX;AAhBD,WAAY,UAAU;IACrB;;;;;OAKG;IACH,+CAAiC,CAAA;IAEjC;;;;;OAKG;IACH,uDAAyC,CAAA;AAC1C,CAAC,EAhBW,UAAU,0BAAV,UAAU,QAgBrB"}
@@ -0,0 +1,23 @@
1
+ export declare enum AuthTokenEvents {
2
+ /**
3
+ * User auth token is refreshed
4
+ * @author Auth user
5
+ * @fires Log user for auditing purposes
6
+ * @param UserEntity Event author
7
+ */
8
+ Refreshed = "auth.token.refreshed",
9
+ /**
10
+ * User auth token is invalid
11
+ * @author Auth user
12
+ * @fires Log user for auditing purposes
13
+ * @param UserEntity Event author
14
+ */
15
+ Invalid = "auth.token.invalid",
16
+ /**
17
+ * User auth token is expired
18
+ * @author Auth user
19
+ * @fires Log user for auditing purposes
20
+ * @param UserEntity Event author
21
+ */
22
+ Expired = "auth.token.expired"
23
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthTokenEvents = void 0;
4
+ var AuthTokenEvents;
5
+ (function (AuthTokenEvents) {
6
+ /**
7
+ * User auth token is refreshed
8
+ * @author Auth user
9
+ * @fires Log user for auditing purposes
10
+ * @param UserEntity Event author
11
+ */
12
+ AuthTokenEvents["Refreshed"] = "auth.token.refreshed";
13
+ /**
14
+ * User auth token is invalid
15
+ * @author Auth user
16
+ * @fires Log user for auditing purposes
17
+ * @param UserEntity Event author
18
+ */
19
+ AuthTokenEvents["Invalid"] = "auth.token.invalid";
20
+ /**
21
+ * User auth token is expired
22
+ * @author Auth user
23
+ * @fires Log user for auditing purposes
24
+ * @param UserEntity Event author
25
+ */
26
+ AuthTokenEvents["Expired"] = "auth.token.expired";
27
+ })(AuthTokenEvents || (exports.AuthTokenEvents = AuthTokenEvents = {}));
28
+ //# sourceMappingURL=token.events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.events.js","sourceRoot":"","sources":["../../../src/events/auth/token.events.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAyBX;AAzBD,WAAY,eAAe;IAE1B;;;;;OAKG;IACH,qDAAkC,CAAA;IAElC;;;;;OAKG;IACH,iDAA8B,CAAA;IAE9B;;;;;OAKG;IACH,iDAA8B,CAAA;AAC/B,CAAC,EAzBW,eAAe,+BAAf,eAAe,QAyB1B"}
@@ -0,0 +1,17 @@
1
+ export declare enum VerifyEvents {
2
+ /**
3
+ * One-time password is verified by phone
4
+ * @author Auth user
5
+ * @fires Log user for auditing purposes
6
+ * @fires Notify user by SMS
7
+ */
8
+ VerifyPhone = "auth.verify.phone",
9
+ /**
10
+ * One-time password is required by email
11
+ * @author Auth user
12
+ * @fires Log user for auditing purposes
13
+ * @fires Notify user by Email
14
+ * @param Person Event author
15
+ */
16
+ VerifyEmail = "auth.verify.email"
17
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VerifyEvents = void 0;
4
+ var VerifyEvents;
5
+ (function (VerifyEvents) {
6
+ /**
7
+ * One-time password is verified by phone
8
+ * @author Auth user
9
+ * @fires Log user for auditing purposes
10
+ * @fires Notify user by SMS
11
+ */
12
+ VerifyEvents["VerifyPhone"] = "auth.verify.phone";
13
+ /**
14
+ * One-time password is required by email
15
+ * @author Auth user
16
+ * @fires Log user for auditing purposes
17
+ * @fires Notify user by Email
18
+ * @param Person Event author
19
+ */
20
+ VerifyEvents["VerifyEmail"] = "auth.verify.email";
21
+ })(VerifyEvents || (exports.VerifyEvents = VerifyEvents = {}));
22
+ //# sourceMappingURL=verify.events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.events.js","sourceRoot":"","sources":["../../../src/events/auth/verify.events.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAkBX;AAlBD,WAAY,YAAY;IAEvB;;;;;OAKG;IACH,iDAAiC,CAAA;IAEjC;;;;;;OAMG;IACH,iDAAiC,CAAA;AAClC,CAAC,EAlBW,YAAY,4BAAZ,YAAY,QAkBvB"}