@intelact/driveup 1.4.44 → 1.5.2

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 (436) hide show
  1. package/lib/agent/agent.dto.js +2 -10
  2. package/lib/agent/agent.dto.js.map +1 -1
  3. package/lib/agent/agent.model.d.ts +1 -1
  4. package/lib/agent/agent.model.js +1 -1
  5. package/lib/agent/agent.model.js.map +1 -1
  6. package/lib/agent/index.d.ts +0 -2
  7. package/lib/agent/index.js +0 -2
  8. package/lib/agent/index.js.map +1 -1
  9. package/lib/alert/alert.model.d.ts +3 -5
  10. package/lib/alert/alert.model.js +1 -3
  11. package/lib/alert/alert.model.js.map +1 -1
  12. package/lib/alert/index.d.ts +0 -1
  13. package/lib/alert/index.js +0 -1
  14. package/lib/alert/index.js.map +1 -1
  15. package/lib/auth/signin.dto.js +3 -3
  16. package/lib/auth/signin.dto.js.map +1 -1
  17. package/lib/auth/signup.dto.js +3 -3
  18. package/lib/auth/signup.dto.js.map +1 -1
  19. package/lib/bank/account.model.js +6 -4
  20. package/lib/bank/account.model.js.map +1 -1
  21. package/lib/bill/bill.model.d.ts +1 -1
  22. package/lib/bill/bill.model.js +1 -1
  23. package/lib/bill/bill.model.js.map +1 -1
  24. package/lib/bill/index.d.ts +0 -2
  25. package/lib/bill/index.js +0 -2
  26. package/lib/bill/index.js.map +1 -1
  27. package/lib/calendar/appointment.d.ts +4 -4
  28. package/lib/calendar/appointment.js +20 -9
  29. package/lib/calendar/appointment.js.map +1 -1
  30. package/lib/calendar/date.js +6 -6
  31. package/lib/calendar/date.js.map +1 -1
  32. package/lib/calendar/index.d.ts +0 -1
  33. package/lib/calendar/index.js +0 -1
  34. package/lib/calendar/index.js.map +1 -1
  35. package/lib/calendar/token.d.ts +1 -1
  36. package/lib/calendar/working.d.ts +1 -1
  37. package/lib/calendar/working.js +1 -1
  38. package/lib/calendar/working.js.map +1 -1
  39. package/lib/common/content.d.ts +1 -1
  40. package/lib/common/content.js +10 -9
  41. package/lib/common/content.js.map +1 -1
  42. package/lib/common/email.js +3 -3
  43. package/lib/common/email.js.map +1 -1
  44. package/lib/common/id.js +2 -6
  45. package/lib/common/id.js.map +1 -1
  46. package/lib/common/index.d.ts +1 -1
  47. package/lib/common/index.js +1 -1
  48. package/lib/common/index.js.map +1 -1
  49. package/lib/common/language.d.ts +1 -6
  50. package/lib/common/language.js +3 -9
  51. package/lib/common/language.js.map +1 -1
  52. package/lib/common/person.d.ts +16 -0
  53. package/lib/common/person.js +60 -0
  54. package/lib/common/person.js.map +1 -0
  55. package/lib/common/phone.js +3 -3
  56. package/lib/common/phone.js.map +1 -1
  57. package/lib/common/price.js +2 -4
  58. package/lib/common/price.js.map +1 -1
  59. package/lib/common/promotion.js +2 -0
  60. package/lib/common/promotion.js.map +1 -1
  61. package/lib/common/search.js +2 -2
  62. package/lib/common/search.js.map +1 -1
  63. package/lib/common/social.js +2 -1
  64. package/lib/common/social.js.map +1 -1
  65. package/lib/common/sort.js +2 -6
  66. package/lib/common/sort.js.map +1 -1
  67. package/lib/common/url.js +2 -2
  68. package/lib/common/url.js.map +1 -1
  69. package/lib/company/company.model.d.ts +1 -2
  70. package/lib/company/company.model.js +1 -2
  71. package/lib/company/company.model.js.map +1 -1
  72. package/lib/country/country.dto.d.ts +1 -1
  73. package/lib/country/country.dto.js +14 -16
  74. package/lib/country/country.dto.js.map +1 -1
  75. package/lib/country/country.model.d.ts +1 -1
  76. package/lib/course/appointment.model.d.ts +1 -1
  77. package/lib/course/appointment.model.js +1 -1
  78. package/lib/course/appointment.model.js.map +1 -1
  79. package/lib/course/course.model.d.ts +2 -2
  80. package/lib/course/course.model.js +1 -1
  81. package/lib/course/course.model.js.map +1 -1
  82. package/lib/course/definition.model.d.ts +1 -1
  83. package/lib/course/dto.d.ts +2 -3
  84. package/lib/course/dto.js +11 -34
  85. package/lib/course/dto.js.map +1 -1
  86. package/lib/course/index.d.ts +0 -1
  87. package/lib/course/index.js +0 -1
  88. package/lib/course/index.js.map +1 -1
  89. package/lib/currency/currency.dto.js +11 -13
  90. package/lib/currency/currency.dto.js.map +1 -1
  91. package/lib/discount/discount.dto.js +2 -2
  92. package/lib/discount/discount.dto.js.map +1 -1
  93. package/lib/discount/discount.model.d.ts +2 -3
  94. package/lib/discount/discount.model.js +1 -2
  95. package/lib/discount/discount.model.js.map +1 -1
  96. package/lib/driving/category/category.dto.d.ts +1 -1
  97. package/lib/driving/category/category.dto.js +7 -7
  98. package/lib/driving/category/category.dto.js.map +1 -1
  99. package/lib/driving/category/category.model.d.ts +1 -1
  100. package/lib/driving/exam/exam.dto.d.ts +2 -2
  101. package/lib/driving/exam/exam.dto.js +4 -4
  102. package/lib/driving/exam/exam.dto.js.map +1 -1
  103. package/lib/driving/exam/exam.model.d.ts +2 -2
  104. package/lib/driving/exam/exam.model.js +1 -1
  105. package/lib/driving/exam/exam.model.js.map +1 -1
  106. package/lib/driving/index.d.ts +0 -1
  107. package/lib/driving/index.js +0 -1
  108. package/lib/driving/index.js.map +1 -1
  109. package/lib/driving/lesson/index.d.ts +0 -1
  110. package/lib/driving/lesson/index.js +0 -1
  111. package/lib/driving/lesson/index.js.map +1 -1
  112. package/lib/driving/lesson/skill.d.ts +2 -3
  113. package/lib/driving/lesson/skill.dto.d.ts +2 -2
  114. package/lib/driving/lesson/skill.dto.js +4 -4
  115. package/lib/driving/lesson/skill.dto.js.map +1 -1
  116. package/lib/driving/lesson/skill.js +1 -1
  117. package/lib/driving/lesson/skill.js.map +1 -1
  118. package/lib/driving/lesson/topic.d.ts +1 -1
  119. package/lib/driving/lesson/topic.dto.d.ts +2 -2
  120. package/lib/driving/lesson/topic.dto.js +7 -8
  121. package/lib/driving/lesson/topic.dto.js.map +1 -1
  122. package/lib/event/event.dto.js +9 -13
  123. package/lib/event/event.dto.js.map +1 -1
  124. package/lib/events/agent/account.events.d.ts +27 -0
  125. package/lib/events/agent/account.events.js +32 -0
  126. package/lib/events/agent/account.events.js.map +1 -0
  127. package/lib/events/agent/payout.events.d.ts +29 -0
  128. package/lib/events/agent/payout.events.js +34 -0
  129. package/lib/events/agent/payout.events.js.map +1 -0
  130. package/lib/events/agent/profile.events.d.ts +18 -0
  131. package/lib/events/agent/profile.events.js +23 -0
  132. package/lib/events/agent/profile.events.js.map +1 -0
  133. package/lib/events/agent/promotion.events.d.ts +42 -0
  134. package/lib/events/agent/promotion.events.js +47 -0
  135. package/lib/events/agent/promotion.events.js.map +1 -0
  136. package/lib/events/auth/auth.events.d.ts +16 -0
  137. package/lib/events/auth/auth.events.js +21 -0
  138. package/lib/events/auth/auth.events.js.map +1 -0
  139. package/lib/events/auth/token.events.d.ts +23 -0
  140. package/lib/events/auth/token.events.js +28 -0
  141. package/lib/events/auth/token.events.js.map +1 -0
  142. package/lib/events/auth/verify.events.d.ts +17 -0
  143. package/lib/events/auth/verify.events.js +22 -0
  144. package/lib/events/auth/verify.events.js.map +1 -0
  145. package/lib/events/company/account/account.events.d.ts +64 -0
  146. package/lib/events/company/account/account.events.js +69 -0
  147. package/lib/events/company/account/account.events.js.map +1 -0
  148. package/lib/events/company/account/profile.events.d.ts +169 -0
  149. package/lib/events/company/account/profile.events.js +174 -0
  150. package/lib/events/company/account/profile.events.js.map +1 -0
  151. package/lib/events/company/course/appointment.events.d.ts +56 -0
  152. package/lib/events/company/course/appointment.events.js +61 -0
  153. package/lib/events/company/course/appointment.events.js.map +1 -0
  154. package/lib/events/company/course/course.events.d.ts +118 -0
  155. package/lib/events/company/course/course.events.js +123 -0
  156. package/lib/events/company/course/course.events.js.map +1 -0
  157. package/lib/events/company/course/lesson.events.d.ts +56 -0
  158. package/lib/events/company/course/lesson.events.js +61 -0
  159. package/lib/events/company/course/lesson.events.js.map +1 -0
  160. package/lib/events/company/course/topic.events.d.ts +76 -0
  161. package/lib/events/company/course/topic.events.js +81 -0
  162. package/lib/events/company/course/topic.events.js.map +1 -0
  163. package/lib/events/company/product/addon.events.d.ts +34 -0
  164. package/lib/events/company/product/addon.events.js +39 -0
  165. package/lib/events/company/product/addon.events.js.map +1 -0
  166. package/lib/events/company/product/campaign.events.d.ts +13 -0
  167. package/lib/events/company/product/campaign.events.js +18 -0
  168. package/lib/events/company/product/campaign.events.js.map +1 -0
  169. package/lib/events/company/product/product.events.d.ts +54 -0
  170. package/lib/events/company/product/product.events.js +59 -0
  171. package/lib/events/company/product/product.events.js.map +1 -0
  172. package/lib/events/index.d.ts +25 -0
  173. package/lib/events/index.js +42 -0
  174. package/lib/events/index.js.map +1 -0
  175. package/lib/events/instructor/account/account.events.d.ts +123 -0
  176. package/lib/events/instructor/account/account.events.js +128 -0
  177. package/lib/events/instructor/account/account.events.js.map +1 -0
  178. package/lib/events/instructor/account/profile.events.d.ts +31 -0
  179. package/lib/events/instructor/account/profile.events.js +36 -0
  180. package/lib/events/instructor/account/profile.events.js.map +1 -0
  181. package/lib/events/instructor/task/task.events.d.ts +24 -0
  182. package/lib/events/instructor/task/task.events.js +29 -0
  183. package/lib/events/instructor/task/task.events.js.map +1 -0
  184. package/lib/events/student/account/account.events.d.ts +36 -0
  185. package/lib/events/student/account/account.events.js +41 -0
  186. package/lib/events/student/account/account.events.js.map +1 -0
  187. package/lib/events/user/account.events.d.ts +84 -0
  188. package/lib/events/user/account.events.js +89 -0
  189. package/lib/events/user/account.events.js.map +1 -0
  190. package/lib/events/user/alert.events.d.ts +16 -0
  191. package/lib/events/user/alert.events.js +21 -0
  192. package/lib/events/user/alert.events.js.map +1 -0
  193. package/lib/events/user/device.events.d.ts +30 -0
  194. package/lib/events/user/device.events.js +35 -0
  195. package/lib/events/user/device.events.js.map +1 -0
  196. package/lib/events/user/notification.events.d.ts +30 -0
  197. package/lib/events/user/notification.events.js +35 -0
  198. package/lib/events/user/notification.events.js.map +1 -0
  199. package/lib/events/user/profile.events.d.ts +60 -0
  200. package/lib/events/user/profile.events.js +65 -0
  201. package/lib/events/user/profile.events.js.map +1 -0
  202. package/lib/expense/category.model.d.ts +1 -1
  203. package/lib/expense/category.model.js +1 -1
  204. package/lib/expense/category.model.js.map +1 -1
  205. package/lib/expense/expense.dto.d.ts +2 -3
  206. package/lib/expense/expense.dto.js +14 -29
  207. package/lib/expense/expense.dto.js.map +1 -1
  208. package/lib/expense/expense.model.d.ts +2 -2
  209. package/lib/expense/expense.model.js +1 -1
  210. package/lib/expense/expense.model.js.map +1 -1
  211. package/lib/expense/index.d.ts +0 -1
  212. package/lib/expense/index.js +0 -1
  213. package/lib/expense/index.js.map +1 -1
  214. package/lib/finance/finance.dto.d.ts +7 -9
  215. package/lib/finance/finance.dto.js +38 -131
  216. package/lib/finance/finance.dto.js.map +1 -1
  217. package/lib/finance/finance.model.d.ts +3 -5
  218. package/lib/finance/finance.model.js +1 -3
  219. package/lib/finance/finance.model.js.map +1 -1
  220. package/lib/finance/index.d.ts +0 -1
  221. package/lib/finance/index.js +0 -1
  222. package/lib/finance/index.js.map +1 -1
  223. package/lib/free-benefit/free-benefit.model.d.ts +1 -1
  224. package/lib/free-benefit/free-benefit.model.js +1 -1
  225. package/lib/free-benefit/free-benefit.model.js.map +1 -1
  226. package/lib/free-benefit/index.d.ts +0 -1
  227. package/lib/free-benefit/index.js +0 -1
  228. package/lib/free-benefit/index.js.map +1 -1
  229. package/lib/geo/address.dto.js +7 -7
  230. package/lib/geo/address.dto.js.map +1 -1
  231. package/lib/geo/coordinate.model.js +3 -3
  232. package/lib/geo/coordinate.model.js.map +1 -1
  233. package/lib/giftcode/giftcode.dto.js +7 -7
  234. package/lib/giftcode/giftcode.dto.js.map +1 -1
  235. package/lib/handover/index.d.ts +0 -1
  236. package/lib/handover/index.js +0 -1
  237. package/lib/handover/index.js.map +1 -1
  238. package/lib/index.d.ts +4 -3
  239. package/lib/index.js +4 -3
  240. package/lib/index.js.map +1 -1
  241. package/lib/instructor/instructor.dto.d.ts +2 -4
  242. package/lib/instructor/instructor.dto.js +12 -32
  243. package/lib/instructor/instructor.dto.js.map +1 -1
  244. package/lib/instructor/instructor.model.d.ts +3 -6
  245. package/lib/instructor/instructor.model.js +2 -8
  246. package/lib/instructor/instructor.model.js.map +1 -1
  247. package/lib/invoice/index.d.ts +0 -1
  248. package/lib/invoice/index.js +0 -1
  249. package/lib/invoice/index.js.map +1 -1
  250. package/lib/invoice/invoice.dto.d.ts +2 -2
  251. package/lib/invoice/invoice.dto.js +7 -9
  252. package/lib/invoice/invoice.dto.js.map +1 -1
  253. package/lib/invoice/invoice.model.d.ts +2 -3
  254. package/lib/invoice/invoice.model.js +1 -2
  255. package/lib/invoice/invoice.model.js.map +1 -1
  256. package/lib/link/link.model.d.ts +2 -2
  257. package/lib/link/link.model.js +1 -1
  258. package/lib/link/link.model.js.map +1 -1
  259. package/lib/log/index.d.ts +0 -1
  260. package/lib/log/index.js +0 -1
  261. package/lib/log/index.js.map +1 -1
  262. package/lib/log/log.model.d.ts +1 -1
  263. package/lib/log/log.model.js +1 -1
  264. package/lib/log/log.model.js.map +1 -1
  265. package/lib/notification/index.d.ts +0 -1
  266. package/lib/notification/index.js +0 -1
  267. package/lib/notification/index.js.map +1 -1
  268. package/lib/notification/notification.model.d.ts +2 -2
  269. package/lib/notification/notification.model.js +1 -1
  270. package/lib/notification/notification.model.js.map +1 -1
  271. package/lib/payment/company-payment.model.d.ts +3 -3
  272. package/lib/payment/company-payment.model.js +1 -1
  273. package/lib/payment/company-payment.model.js.map +1 -1
  274. package/lib/payment/index.d.ts +0 -1
  275. package/lib/payment/index.js +0 -1
  276. package/lib/payment/index.js.map +1 -1
  277. package/lib/payment/payment.dto.d.ts +1 -1
  278. package/lib/payment/payment.dto.js +5 -5
  279. package/lib/payment/payment.dto.js.map +1 -1
  280. package/lib/payment/payment.model.d.ts +2 -4
  281. package/lib/payment/payment.model.js +1 -3
  282. package/lib/payment/payment.model.js.map +1 -1
  283. package/lib/payout/index.d.ts +0 -1
  284. package/lib/payout/index.js +0 -1
  285. package/lib/payout/index.js.map +1 -1
  286. package/lib/payout/payout.model.d.ts +2 -2
  287. package/lib/payout/payout.model.js +1 -1
  288. package/lib/payout/payout.model.js.map +1 -1
  289. package/lib/priceplan/index.d.ts +0 -1
  290. package/lib/priceplan/index.js +0 -1
  291. package/lib/priceplan/index.js.map +1 -1
  292. package/lib/priceplan/plan.dto.d.ts +1 -1
  293. package/lib/priceplan/plan.dto.js +6 -6
  294. package/lib/priceplan/plan.dto.js.map +1 -1
  295. package/lib/priceplan/plan.model.d.ts +1 -1
  296. package/lib/priceplan/plan.model.js +1 -1
  297. package/lib/priceplan/plan.model.js.map +1 -1
  298. package/lib/refund/refund.dto.js +2 -2
  299. package/lib/refund/refund.dto.js.map +1 -1
  300. package/lib/refund/refund.model.d.ts +2 -3
  301. package/lib/refund/refund.model.js +1 -2
  302. package/lib/refund/refund.model.js.map +1 -1
  303. package/lib/security/index.d.ts +0 -4
  304. package/lib/security/index.js +0 -4
  305. package/lib/security/index.js.map +1 -1
  306. package/lib/security/role.dto.d.ts +2 -2
  307. package/lib/security/role.dto.js +2 -2
  308. package/lib/security/role.dto.js.map +1 -1
  309. package/lib/session/driving/session.topic.d.ts +2 -2
  310. package/lib/session/driving/session.topic.js +1 -1
  311. package/lib/session/driving/session.topic.js.map +1 -1
  312. package/lib/setting/index.d.ts +0 -1
  313. package/lib/setting/index.js +0 -1
  314. package/lib/setting/index.js.map +1 -1
  315. package/lib/setting/setting.dto.js +2 -2
  316. package/lib/setting/setting.dto.js.map +1 -1
  317. package/lib/setting/setting.model.d.ts +2 -2
  318. package/lib/setting/setting.model.js +1 -1
  319. package/lib/setting/setting.model.js.map +1 -1
  320. package/lib/student/student.dto.js +6 -8
  321. package/lib/student/student.dto.js.map +1 -1
  322. package/lib/student/student.model.d.ts +2 -3
  323. package/lib/student/student.model.js +1 -2
  324. package/lib/student/student.model.js.map +1 -1
  325. package/lib/task/index.d.ts +2 -0
  326. package/lib/task/index.js +19 -0
  327. package/lib/task/index.js.map +1 -0
  328. package/lib/task/task.dto.d.ts +24 -0
  329. package/lib/task/task.dto.js +142 -0
  330. package/lib/task/task.dto.js.map +1 -0
  331. package/lib/task/task.model.d.ts +8 -0
  332. package/lib/task/task.model.js +49 -0
  333. package/lib/task/task.model.js.map +1 -0
  334. package/lib/ticket/index.d.ts +0 -1
  335. package/lib/ticket/index.js +0 -1
  336. package/lib/ticket/index.js.map +1 -1
  337. package/lib/ticket/ticket.dto.d.ts +1 -1
  338. package/lib/ticket/ticket.dto.js +7 -7
  339. package/lib/ticket/ticket.dto.js.map +1 -1
  340. package/lib/ticket/ticket.model.d.ts +1 -1
  341. package/lib/ticket/ticket.model.js +1 -1
  342. package/lib/ticket/ticket.model.js.map +1 -1
  343. package/lib/training/driving.model.d.ts +1 -1
  344. package/lib/training/driving.model.js +1 -1
  345. package/lib/training/driving.model.js.map +1 -1
  346. package/lib/training/index.d.ts +0 -1
  347. package/lib/training/index.js +0 -1
  348. package/lib/training/index.js.map +1 -1
  349. package/lib/training/request.dto.d.ts +2 -2
  350. package/lib/training/request.dto.js +2 -2
  351. package/lib/training/request.dto.js.map +1 -1
  352. package/lib/training/request.model.d.ts +2 -3
  353. package/lib/training/request.model.js +1 -2
  354. package/lib/training/request.model.js.map +1 -1
  355. package/lib/training/training.dto.d.ts +5 -6
  356. package/lib/training/training.dto.js +25 -80
  357. package/lib/training/training.dto.js.map +1 -1
  358. package/lib/training/training.model.d.ts +2 -3
  359. package/lib/training/training.model.js +6 -7
  360. package/lib/training/training.model.js.map +1 -1
  361. package/lib/tsconfig.tsbuildinfo +1 -1
  362. package/lib/types/activity.type.d.ts +46 -0
  363. package/lib/types/activity.type.js +51 -0
  364. package/lib/types/activity.type.js.map +1 -0
  365. package/lib/types/addon.type.d.ts +66 -0
  366. package/lib/types/addon.type.js +71 -0
  367. package/lib/types/addon.type.js.map +1 -0
  368. package/lib/types/calendar.type.d.ts +24 -0
  369. package/lib/types/calendar.type.js +31 -0
  370. package/lib/types/calendar.type.js.map +1 -0
  371. package/lib/types/driving.type.d.ts +12 -0
  372. package/lib/types/driving.type.js +18 -0
  373. package/lib/types/driving.type.js.map +1 -0
  374. package/lib/types/earning.type.d.ts +6 -0
  375. package/lib/types/earning.type.js +3 -0
  376. package/lib/types/earning.type.js.map +1 -0
  377. package/lib/types/finance.type.d.ts +67 -0
  378. package/lib/types/finance.type.js +77 -0
  379. package/lib/types/finance.type.js.map +1 -0
  380. package/lib/types/index.d.ts +15 -0
  381. package/lib/types/index.js +32 -0
  382. package/lib/types/index.js.map +1 -0
  383. package/lib/types/interface.d.ts +79 -0
  384. package/lib/types/interface.js +4 -0
  385. package/lib/types/interface.js.map +1 -0
  386. package/lib/types/metric.type.d.ts +34 -0
  387. package/lib/types/metric.type.js +39 -0
  388. package/lib/types/metric.type.js.map +1 -0
  389. package/lib/types/policy.type.d.ts +27 -0
  390. package/lib/types/policy.type.js +32 -0
  391. package/lib/types/policy.type.js.map +1 -0
  392. package/lib/types/priceplan.type.d.ts +39 -0
  393. package/lib/types/priceplan.type.js +48 -0
  394. package/lib/types/priceplan.type.js.map +1 -0
  395. package/lib/types/product.type.d.ts +202 -0
  396. package/lib/types/product.type.js +209 -0
  397. package/lib/types/product.type.js.map +1 -0
  398. package/lib/types/program.type.d.ts +23 -0
  399. package/lib/types/program.type.js +28 -0
  400. package/lib/types/program.type.js.map +1 -0
  401. package/lib/types/security.type.d.ts +54 -0
  402. package/lib/types/security.type.js +60 -0
  403. package/lib/types/security.type.js.map +1 -0
  404. package/lib/types/support.type.d.ts +127 -0
  405. package/lib/types/support.type.js +144 -0
  406. package/lib/types/support.type.js.map +1 -0
  407. package/lib/types/training.type.d.ts +16 -0
  408. package/lib/types/training.type.js +22 -0
  409. package/lib/types/training.type.js.map +1 -0
  410. package/lib/user/index.d.ts +0 -1
  411. package/lib/user/index.js +0 -1
  412. package/lib/user/index.js.map +1 -1
  413. package/lib/user/profile.dto.d.ts +1 -2
  414. package/lib/user/profile.dto.js +8 -5
  415. package/lib/user/profile.dto.js.map +1 -1
  416. package/lib/user/user.model.d.ts +1 -3
  417. package/lib/user/user.model.js +2 -4
  418. package/lib/user/user.model.js.map +1 -1
  419. package/lib/utils/array.helper.js +2 -2
  420. package/lib/utils/array.helper.js.map +1 -1
  421. package/lib/utils/compare.validator.d.ts +9 -0
  422. package/lib/utils/compare.validator.js +35 -0
  423. package/lib/utils/compare.validator.js.map +1 -0
  424. package/lib/utils/date.helper.d.ts +30 -1
  425. package/lib/utils/date.helper.js +59 -20
  426. package/lib/utils/date.helper.js.map +1 -1
  427. package/lib/utils/index.d.ts +3 -0
  428. package/lib/utils/index.js +3 -0
  429. package/lib/utils/index.js.map +1 -1
  430. package/lib/utils/required.validator.d.ts +77 -0
  431. package/lib/utils/required.validator.js +151 -0
  432. package/lib/utils/required.validator.js.map +1 -0
  433. package/lib/utils/transformers.helper.d.ts +48 -0
  434. package/lib/utils/transformers.helper.js +184 -0
  435. package/lib/utils/transformers.helper.js.map +1 -0
  436. package/package.json +1 -1
@@ -0,0 +1,46 @@
1
+ export declare enum ActivityType {
2
+ createdBy = "createdBy",
3
+ createdOn = "createdOn",
4
+ updatedBy = "updatedBy",
5
+ updatedOn = "updatedOn",
6
+ closedBy = "closedBy",
7
+ closedOn = "closedOn",
8
+ endedBy = "endedBy",
9
+ endedOn = "endedOn",
10
+ canceledBy = "canceledBy",
11
+ canceledOn = "canceledOn",
12
+ blockedBy = "blockedBy",
13
+ blockedOn = "blockedOn",
14
+ activatedBy = "activatedBy",
15
+ activatedOn = "activatedOn",
16
+ deactivatedBy = "deactivatedBy",
17
+ deactivatedOn = "deactivatedOn",
18
+ enabledBy = "enabledBy",
19
+ enabledOn = "enabledOn",
20
+ disabledBy = "disabledBy",
21
+ disabledOn = "disabledOn",
22
+ completedBy = "completedBy",
23
+ completedOn = "completedOn",
24
+ terminatedBy = "terminatedBy",
25
+ terminatedOn = "terminatedOn",
26
+ acceptedBy = "acceptedBy",
27
+ acceptedOn = "acceptedOn",
28
+ rejectedBy = "rejectedBy",
29
+ rejectedOn = "rejectedOn",
30
+ approvedBy = "approvedBy",
31
+ approvedOn = "approvedOn",
32
+ skippedBy = "skippedBy",
33
+ skippedOn = "skippedOn",
34
+ publishedBy = "publishedBy",
35
+ publishedOn = "publishedOn",
36
+ invitedBy = "invitedBy",
37
+ invitedOn = "invitedOn",
38
+ generatedBy = "generatedBy",
39
+ generatedOn = "generatedOn",
40
+ registredBy = "registredBy",
41
+ registredOn = "registredOn",
42
+ paidBy = "paidBy",
43
+ paidOn = "paidOn",
44
+ failedOn = "failedOn",
45
+ pendingOn = "pendingOn"
46
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActivityType = void 0;
4
+ var ActivityType;
5
+ (function (ActivityType) {
6
+ ActivityType["createdBy"] = "createdBy";
7
+ ActivityType["createdOn"] = "createdOn";
8
+ ActivityType["updatedBy"] = "updatedBy";
9
+ ActivityType["updatedOn"] = "updatedOn";
10
+ ActivityType["closedBy"] = "closedBy";
11
+ ActivityType["closedOn"] = "closedOn";
12
+ ActivityType["endedBy"] = "endedBy";
13
+ ActivityType["endedOn"] = "endedOn";
14
+ ActivityType["canceledBy"] = "canceledBy";
15
+ ActivityType["canceledOn"] = "canceledOn";
16
+ ActivityType["blockedBy"] = "blockedBy";
17
+ ActivityType["blockedOn"] = "blockedOn";
18
+ ActivityType["activatedBy"] = "activatedBy";
19
+ ActivityType["activatedOn"] = "activatedOn";
20
+ ActivityType["deactivatedBy"] = "deactivatedBy";
21
+ ActivityType["deactivatedOn"] = "deactivatedOn";
22
+ ActivityType["enabledBy"] = "enabledBy";
23
+ ActivityType["enabledOn"] = "enabledOn";
24
+ ActivityType["disabledBy"] = "disabledBy";
25
+ ActivityType["disabledOn"] = "disabledOn";
26
+ ActivityType["completedBy"] = "completedBy";
27
+ ActivityType["completedOn"] = "completedOn";
28
+ ActivityType["terminatedBy"] = "terminatedBy";
29
+ ActivityType["terminatedOn"] = "terminatedOn";
30
+ ActivityType["acceptedBy"] = "acceptedBy";
31
+ ActivityType["acceptedOn"] = "acceptedOn";
32
+ ActivityType["rejectedBy"] = "rejectedBy";
33
+ ActivityType["rejectedOn"] = "rejectedOn";
34
+ ActivityType["approvedBy"] = "approvedBy";
35
+ ActivityType["approvedOn"] = "approvedOn";
36
+ ActivityType["skippedBy"] = "skippedBy";
37
+ ActivityType["skippedOn"] = "skippedOn";
38
+ ActivityType["publishedBy"] = "publishedBy";
39
+ ActivityType["publishedOn"] = "publishedOn";
40
+ ActivityType["invitedBy"] = "invitedBy";
41
+ ActivityType["invitedOn"] = "invitedOn";
42
+ ActivityType["generatedBy"] = "generatedBy";
43
+ ActivityType["generatedOn"] = "generatedOn";
44
+ ActivityType["registredBy"] = "registredBy";
45
+ ActivityType["registredOn"] = "registredOn";
46
+ ActivityType["paidBy"] = "paidBy";
47
+ ActivityType["paidOn"] = "paidOn";
48
+ ActivityType["failedOn"] = "failedOn";
49
+ ActivityType["pendingOn"] = "pendingOn";
50
+ })(ActivityType || (exports.ActivityType = ActivityType = {}));
51
+ //# sourceMappingURL=activity.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity.type.js","sourceRoot":"","sources":["../../src/types/activity.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,YA6CX;AA7CD,WAAY,YAAY;IACvB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IACxB,qCAAuB,CAAA;IACvB,qCAAuB,CAAA;IACvB,mCAAsB,CAAA;IACtB,mCAAsB,CAAA;IACtB,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;IACzB,uCAAuB,CAAA;IACvB,uCAAuB,CAAA;IACvB,2CAA4B,CAAA;IAC5B,2CAA4B,CAAA;IAC5B,+CAA+B,CAAA;IAC/B,+CAA+B,CAAA;IAC/B,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IACxB,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;IACzB,2CAA2B,CAAA;IAC3B,2CAA2B,CAAA;IAC3B,6CAA6B,CAAA;IAC7B,6CAA6B,CAAA;IAC7B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;IACzB,uCAAuB,CAAA;IACvB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,2CAA2B,CAAA;IAC3B,uCAAuB,CAAA;IACvB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,2CAA2B,CAAA;IAC3B,2CAA2B,CAAA;IAC3B,2CAA2B,CAAA;IAC3B,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;AACxB,CAAC,EA7CW,YAAY,4BAAZ,YAAY,QA6CvB"}
@@ -0,0 +1,66 @@
1
+ export declare enum AddonType {
2
+ /**
3
+ * Enrollment request sent by student to join a training
4
+ */
5
+ StudentRequestEnrollment = "StudentRequestEnrollment",
6
+ /**
7
+ * Allows students to manage their own training appointments
8
+ */
9
+ StudentManageTrainingAppointments = "StudentManageTrainingAppointments",
10
+ /**
11
+ * Reminds students about upcoming appointments
12
+ */
13
+ StudentAppointmentReminder = "StudentAppointmentReminder",
14
+ /**
15
+ * Reminds instructors about upcoming appointments
16
+ */
17
+ InstructorAppointmentReminder = "InstructorAppointmentReminder",
18
+ /**
19
+ * Protection in case a student does not show up for a booked appointment
20
+ */
21
+ StudentNoShowProtection = "StudentNoShowProtection",
22
+ /**
23
+ * Protection in case an instructor does not show up for a booked appointment
24
+ */
25
+ InstructorNoShowProtection = "InstructorNoShowProtection",
26
+ /**
27
+ * Package of extra lessons that can be booked in addition to the main product
28
+ */
29
+ ExtraLessonPackage = "ExtraLessonPackage",
30
+ /**
31
+ * Allows students to reschedule their booked appointments
32
+ */
33
+ RescheduleProtection = "RescheduleProtection",
34
+ /**
35
+ * Package to prepare students for their final exam
36
+ */
37
+ ExamPreparationPackage = "ExamPreparationPackage",
38
+ /**
39
+ * Package of financing options for products
40
+ */
41
+ FinancePackage = "FinancePackage",
42
+ /**
43
+ * Package of assessments for products to track progress or performance
44
+ */
45
+ AssessmentPackage = "AssessmentPackage",
46
+ /**
47
+ * Package of reports for products to track progress or performance
48
+ */
49
+ ReportsPackage = "ReportsPackage",
50
+ /**
51
+ * Improves the visibility of the profile in search engines
52
+ */
53
+ SearchEngineVisibility = "SearchEngineVisibility",
54
+ /**
55
+ * Boosts the visibility of the profile in search engines
56
+ */
57
+ SearchEngineVisibilityBoost = "SearchEngineVisibilityBoost",
58
+ /**
59
+ * Homepage package of profile on driveup platform
60
+ */
61
+ HomepagePackage = "HomepagePackage",
62
+ /**
63
+ * API access package to integrate with driveup platform
64
+ */
65
+ OpenApiAccessPackage = "OpenApiAccessPackage"
66
+ }
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddonType = void 0;
4
+ var AddonType;
5
+ (function (AddonType) {
6
+ /**
7
+ * Enrollment request sent by student to join a training
8
+ */
9
+ AddonType["StudentRequestEnrollment"] = "StudentRequestEnrollment";
10
+ /**
11
+ * Allows students to manage their own training appointments
12
+ */
13
+ AddonType["StudentManageTrainingAppointments"] = "StudentManageTrainingAppointments";
14
+ /**
15
+ * Reminds students about upcoming appointments
16
+ */
17
+ AddonType["StudentAppointmentReminder"] = "StudentAppointmentReminder";
18
+ /**
19
+ * Reminds instructors about upcoming appointments
20
+ */
21
+ AddonType["InstructorAppointmentReminder"] = "InstructorAppointmentReminder";
22
+ /**
23
+ * Protection in case a student does not show up for a booked appointment
24
+ */
25
+ AddonType["StudentNoShowProtection"] = "StudentNoShowProtection";
26
+ /**
27
+ * Protection in case an instructor does not show up for a booked appointment
28
+ */
29
+ AddonType["InstructorNoShowProtection"] = "InstructorNoShowProtection";
30
+ /**
31
+ * Package of extra lessons that can be booked in addition to the main product
32
+ */
33
+ AddonType["ExtraLessonPackage"] = "ExtraLessonPackage";
34
+ /**
35
+ * Allows students to reschedule their booked appointments
36
+ */
37
+ AddonType["RescheduleProtection"] = "RescheduleProtection";
38
+ /**
39
+ * Package to prepare students for their final exam
40
+ */
41
+ AddonType["ExamPreparationPackage"] = "ExamPreparationPackage";
42
+ /**
43
+ * Package of financing options for products
44
+ */
45
+ AddonType["FinancePackage"] = "FinancePackage";
46
+ /**
47
+ * Package of assessments for products to track progress or performance
48
+ */
49
+ AddonType["AssessmentPackage"] = "AssessmentPackage";
50
+ /**
51
+ * Package of reports for products to track progress or performance
52
+ */
53
+ AddonType["ReportsPackage"] = "ReportsPackage";
54
+ /**
55
+ * Improves the visibility of the profile in search engines
56
+ */
57
+ AddonType["SearchEngineVisibility"] = "SearchEngineVisibility";
58
+ /**
59
+ * Boosts the visibility of the profile in search engines
60
+ */
61
+ AddonType["SearchEngineVisibilityBoost"] = "SearchEngineVisibilityBoost";
62
+ /**
63
+ * Homepage package of profile on driveup platform
64
+ */
65
+ AddonType["HomepagePackage"] = "HomepagePackage";
66
+ /**
67
+ * API access package to integrate with driveup platform
68
+ */
69
+ AddonType["OpenApiAccessPackage"] = "OpenApiAccessPackage";
70
+ })(AddonType || (exports.AddonType = AddonType = {}));
71
+ //# sourceMappingURL=addon.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addon.type.js","sourceRoot":"","sources":["../../src/types/addon.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAiFX;AAjFD,WAAY,SAAS;IAEpB;;OAEG;IACH,kEAAqD,CAAA;IAErD;;OAEG;IACH,oFAAuE,CAAA;IAEvE;;OAEG;IACH,sEAAyD,CAAA;IAEzD;;OAEG;IACH,4EAA+D,CAAA;IAE/D;;OAEG;IACH,gEAAmD,CAAA;IAEnD;;OAEG;IACH,sEAAyD,CAAA;IAEzD;;OAEG;IACH,sDAAyC,CAAA;IAEzC;;OAEG;IACH,0DAA6C,CAAA;IAE7C;;OAEG;IACH,8DAAiD,CAAA;IAEjD;;OAEG;IACH,8CAAiC,CAAA;IAEjC;;OAEG;IACH,oDAAuC,CAAA;IAEvC;;OAEG;IACH,8CAAiC,CAAA;IAEjC;;OAEG;IACH,8DAAiD,CAAA;IAEjD;;OAEG;IACH,wEAA2D,CAAA;IAE3D;;OAEG;IACH,gDAAmC,CAAA;IAEnC;;OAEG;IACH,0DAA6C,CAAA;AAC9C,CAAC,EAjFW,SAAS,yBAAT,SAAS,QAiFpB"}
@@ -0,0 +1,24 @@
1
+ export declare enum AppointmentType {
2
+ Medical = "medical",
3
+ Course = "course",
4
+ Driving = "driving",
5
+ Task = "task",
6
+ NonWorking = "nonworking",
7
+ Holiday = "holiday",
8
+ OffDay = "offday"
9
+ }
10
+ export declare enum AppointmentRepetition {
11
+ None = "none",
12
+ Daily = "daily",
13
+ Weekly = "weekly",
14
+ Monthly = "monthly"
15
+ }
16
+ export declare enum WeekDay {
17
+ Monday = "monday",
18
+ Tuesday = "tuesday",
19
+ Wednesday = "wednesday",
20
+ Thursday = "thursday",
21
+ Friday = "friday",
22
+ Saturday = "saturday",
23
+ Sunday = "sunday"
24
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WeekDay = exports.AppointmentRepetition = exports.AppointmentType = void 0;
4
+ var AppointmentType;
5
+ (function (AppointmentType) {
6
+ AppointmentType["Medical"] = "medical";
7
+ AppointmentType["Course"] = "course";
8
+ AppointmentType["Driving"] = "driving";
9
+ AppointmentType["Task"] = "task";
10
+ AppointmentType["NonWorking"] = "nonworking";
11
+ AppointmentType["Holiday"] = "holiday";
12
+ AppointmentType["OffDay"] = "offday";
13
+ })(AppointmentType || (exports.AppointmentType = AppointmentType = {}));
14
+ var AppointmentRepetition;
15
+ (function (AppointmentRepetition) {
16
+ AppointmentRepetition["None"] = "none";
17
+ AppointmentRepetition["Daily"] = "daily";
18
+ AppointmentRepetition["Weekly"] = "weekly";
19
+ AppointmentRepetition["Monthly"] = "monthly";
20
+ })(AppointmentRepetition || (exports.AppointmentRepetition = AppointmentRepetition = {}));
21
+ var WeekDay;
22
+ (function (WeekDay) {
23
+ WeekDay["Monday"] = "monday";
24
+ WeekDay["Tuesday"] = "tuesday";
25
+ WeekDay["Wednesday"] = "wednesday";
26
+ WeekDay["Thursday"] = "thursday";
27
+ WeekDay["Friday"] = "friday";
28
+ WeekDay["Saturday"] = "saturday";
29
+ WeekDay["Sunday"] = "sunday";
30
+ })(WeekDay || (exports.WeekDay = WeekDay = {}));
31
+ //# sourceMappingURL=calendar.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar.type.js","sourceRoot":"","sources":["../../src/types/calendar.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAQX;AARD,WAAY,eAAe;IAC1B,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;IACnB,gCAAa,CAAA;IACb,4CAAyB,CAAA;IACtB,sCAAmB,CAAA;IACtB,oCAAiB,CAAA;AAClB,CAAC,EARW,eAAe,+BAAf,eAAe,QAQ1B;AAED,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAChC,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,0CAAiB,CAAA;IACjB,4CAAmB,CAAA;AACpB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC;AAED,IAAY,OAQX;AARD,WAAY,OAAO;IAClB,4BAAiB,CAAA;IACjB,8BAAmB,CAAA;IACnB,kCAAuB,CAAA;IACvB,gCAAqB,CAAA;IACrB,4BAAiB,CAAA;IACjB,gCAAqB,CAAA;IACrB,4BAAiB,CAAA;AAClB,CAAC,EARW,OAAO,uBAAP,OAAO,QAQlB"}
@@ -0,0 +1,12 @@
1
+ export declare enum Score {
2
+ NoScoreSubmitted = 0,
3
+ Poor = 1,
4
+ Weak = 2,
5
+ Fair = 3,
6
+ Great = 4,
7
+ Excellent = 5
8
+ }
9
+ export declare enum CarTransmission {
10
+ Automatic = "automatic",
11
+ Manual = "manual"
12
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CarTransmission = exports.Score = void 0;
4
+ var Score;
5
+ (function (Score) {
6
+ Score[Score["NoScoreSubmitted"] = 0] = "NoScoreSubmitted";
7
+ Score[Score["Poor"] = 1] = "Poor";
8
+ Score[Score["Weak"] = 2] = "Weak";
9
+ Score[Score["Fair"] = 3] = "Fair";
10
+ Score[Score["Great"] = 4] = "Great";
11
+ Score[Score["Excellent"] = 5] = "Excellent";
12
+ })(Score || (exports.Score = Score = {}));
13
+ var CarTransmission;
14
+ (function (CarTransmission) {
15
+ CarTransmission["Automatic"] = "automatic";
16
+ CarTransmission["Manual"] = "manual";
17
+ })(CarTransmission || (exports.CarTransmission = CarTransmission = {}));
18
+ //# sourceMappingURL=driving.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"driving.type.js","sourceRoot":"","sources":["../../src/types/driving.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,KAOX;AAPD,WAAY,KAAK;IAChB,yDAAoB,CAAA;IACpB,iCAAQ,CAAA;IACR,iCAAQ,CAAA;IACR,iCAAQ,CAAA;IACR,mCAAS,CAAA;IACT,2CAAa,CAAA;AACd,CAAC,EAPW,KAAK,qBAAL,KAAK,QAOhB;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,0CAAuB,CAAA;IACvB,oCAAiB,CAAA;AAClB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
@@ -0,0 +1,6 @@
1
+ export type AgentEarnings = {
2
+ /** Unix timestamp in seconds */
3
+ date: number;
4
+ /** Sum of agent earnings for this date */
5
+ totalEarnings: number;
6
+ }[];
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=earning.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"earning.type.js","sourceRoot":"","sources":["../../src/types/earning.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,67 @@
1
+ export declare enum BillStatus {
2
+ Open = "open",
3
+ Paid = "paid",
4
+ Unpaid = "unpaid"
5
+ }
6
+ /**
7
+ * Payment types available
8
+ * Members: Cash, Online, Invoice
9
+ */
10
+ export declare enum PaymentType {
11
+ /**
12
+ * Cash paid
13
+ */
14
+ Cash = "cash",
15
+ /**
16
+ * Online paid
17
+ */
18
+ Online = "online",
19
+ /**
20
+ * Paid by invoice
21
+ */
22
+ Invoice = "invoice"
23
+ }
24
+ export declare enum TransactionType {
25
+ /**
26
+ * Online payment transaction
27
+ */
28
+ Payment = "payment",
29
+ /**
30
+ * Refund issued to student
31
+ */
32
+ Refund = "refund",
33
+ /**
34
+ * Discount applied to student
35
+ */
36
+ Discount = "discount",
37
+ /**
38
+ * Student exspense like exam coste
39
+ */
40
+ Expense = "expense",
41
+ /**
42
+ * Administration fee charged to student
43
+ */
44
+ Administration = "administration",
45
+ /**
46
+ * Cancelation transaction for previous payment
47
+ */
48
+ Cancelation = "cancelation"
49
+ }
50
+ export declare enum TaxType {
51
+ VAT = "vat",
52
+ GST = "gst",
53
+ SALES_TAX = "sales_tax",
54
+ SERVICE_TAX = "service_tax",
55
+ OTHER = "other"
56
+ }
57
+ export declare enum PaymentProvider {
58
+ Stripe = "stripe"
59
+ }
60
+ /**
61
+ * @description Use ProductType in next version
62
+ */
63
+ export declare enum CompanyBillItemType {
64
+ StudentTraining = "bill.item.studentTraining",
65
+ InstructorSubscription = "bill.item.instructorSubscription",
66
+ EnterpriseSeats = "bill.item.enterpriseSeats"
67
+ }
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CompanyBillItemType = exports.PaymentProvider = exports.TaxType = exports.TransactionType = exports.PaymentType = exports.BillStatus = void 0;
4
+ var BillStatus;
5
+ (function (BillStatus) {
6
+ BillStatus["Open"] = "open";
7
+ BillStatus["Paid"] = "paid";
8
+ BillStatus["Unpaid"] = "unpaid";
9
+ })(BillStatus || (exports.BillStatus = BillStatus = {}));
10
+ /**
11
+ * Payment types available
12
+ * Members: Cash, Online, Invoice
13
+ */
14
+ var PaymentType;
15
+ (function (PaymentType) {
16
+ /**
17
+ * Cash paid
18
+ */
19
+ PaymentType["Cash"] = "cash";
20
+ /**
21
+ * Online paid
22
+ */
23
+ PaymentType["Online"] = "online";
24
+ /**
25
+ * Paid by invoice
26
+ */
27
+ PaymentType["Invoice"] = "invoice";
28
+ })(PaymentType || (exports.PaymentType = PaymentType = {}));
29
+ var TransactionType;
30
+ (function (TransactionType) {
31
+ /**
32
+ * Online payment transaction
33
+ */
34
+ TransactionType["Payment"] = "payment";
35
+ /**
36
+ * Refund issued to student
37
+ */
38
+ TransactionType["Refund"] = "refund";
39
+ /**
40
+ * Discount applied to student
41
+ */
42
+ TransactionType["Discount"] = "discount";
43
+ /**
44
+ * Student exspense like exam coste
45
+ */
46
+ TransactionType["Expense"] = "expense";
47
+ /**
48
+ * Administration fee charged to student
49
+ */
50
+ TransactionType["Administration"] = "administration";
51
+ /**
52
+ * Cancelation transaction for previous payment
53
+ */
54
+ TransactionType["Cancelation"] = "cancelation";
55
+ })(TransactionType || (exports.TransactionType = TransactionType = {}));
56
+ var TaxType;
57
+ (function (TaxType) {
58
+ TaxType["VAT"] = "vat";
59
+ TaxType["GST"] = "gst";
60
+ TaxType["SALES_TAX"] = "sales_tax";
61
+ TaxType["SERVICE_TAX"] = "service_tax";
62
+ TaxType["OTHER"] = "other";
63
+ })(TaxType || (exports.TaxType = TaxType = {}));
64
+ var PaymentProvider;
65
+ (function (PaymentProvider) {
66
+ PaymentProvider["Stripe"] = "stripe";
67
+ })(PaymentProvider || (exports.PaymentProvider = PaymentProvider = {}));
68
+ /**
69
+ * @description Use ProductType in next version
70
+ */
71
+ var CompanyBillItemType;
72
+ (function (CompanyBillItemType) {
73
+ CompanyBillItemType["StudentTraining"] = "bill.item.studentTraining";
74
+ CompanyBillItemType["InstructorSubscription"] = "bill.item.instructorSubscription";
75
+ CompanyBillItemType["EnterpriseSeats"] = "bill.item.enterpriseSeats";
76
+ })(CompanyBillItemType || (exports.CompanyBillItemType = CompanyBillItemType = {}));
77
+ //# sourceMappingURL=finance.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"finance.type.js","sourceRoot":"","sources":["../../src/types/finance.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAIX;AAJD,WAAY,UAAU;IACrB,2BAAa,CAAA;IACb,2BAAa,CAAA;IACb,+BAAiB,CAAA;AAClB,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AAED;;;GAGG;AACH,IAAY,WAeX;AAfD,WAAY,WAAW;IACtB;;OAEG;IACH,4BAAa,CAAA;IAEb;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,kCAAmB,CAAA;AACpB,CAAC,EAfW,WAAW,2BAAX,WAAW,QAetB;AAED,IAAY,eA+BX;AA/BD,WAAY,eAAe;IAE1B;;OAEG;IACH,sCAAmB,CAAA;IAEnB;;OAEG;IACH,oCAAiB,CAAA;IAEjB;;OAEG;IACH,wCAAqB,CAAA;IAErB;;OAEG;IACH,sCAAmB,CAAA;IAEnB;;OAEG;IACH,oDAAiC,CAAA;IAEjC;;OAEG;IACH,8CAA2B,CAAA;AAC5B,CAAC,EA/BW,eAAe,+BAAf,eAAe,QA+B1B;AAED,IAAY,OAMX;AAND,WAAY,OAAO;IAClB,sBAAW,CAAA;IACX,sBAAW,CAAA;IACX,kCAAuB,CAAA;IACvB,sCAA2B,CAAA;IAC3B,0BAAe,CAAA;AAChB,CAAC,EANW,OAAO,uBAAP,OAAO,QAMlB;AAED,IAAY,eAEX;AAFD,WAAY,eAAe;IAC1B,oCAAiB,CAAA;AAClB,CAAC,EAFW,eAAe,+BAAf,eAAe,QAE1B;AAED;;GAEG;AACH,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,oEAA6C,CAAA;IAC7C,kFAA2D,CAAA;IAC3D,oEAA6C,CAAA;AAC9C,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
@@ -0,0 +1,15 @@
1
+ export * from './activity.type';
2
+ export * from './addon.type';
3
+ export * from './calendar.type';
4
+ export * from './driving.type';
5
+ export * from './earning.type';
6
+ export * from './finance.type';
7
+ export * from './metric.type';
8
+ export * from './policy.type';
9
+ export * from './priceplan.type';
10
+ export * from './product.type';
11
+ export * from './program.type';
12
+ export * from './security.type';
13
+ export * from './support.type';
14
+ export * from './training.type';
15
+ export * from './interface';
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./activity.type"), exports);
18
+ __exportStar(require("./addon.type"), exports);
19
+ __exportStar(require("./calendar.type"), exports);
20
+ __exportStar(require("./driving.type"), exports);
21
+ __exportStar(require("./earning.type"), exports);
22
+ __exportStar(require("./finance.type"), exports);
23
+ __exportStar(require("./metric.type"), exports);
24
+ __exportStar(require("./policy.type"), exports);
25
+ __exportStar(require("./priceplan.type"), exports);
26
+ __exportStar(require("./product.type"), exports);
27
+ __exportStar(require("./program.type"), exports);
28
+ __exportStar(require("./security.type"), exports);
29
+ __exportStar(require("./support.type"), exports);
30
+ __exportStar(require("./training.type"), exports);
31
+ __exportStar(require("./interface"), exports);
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,+CAA6B;AAC7B,kDAAgC;AAChC,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B;AAC9B,gDAA8B;AAC9B,mDAAiC;AACjC,iDAA+B;AAC/B,iDAA+B;AAC/B,kDAAgC;AAChC,iDAA+B;AAC/B,kDAAgC;AAChC,8CAA4B"}
@@ -0,0 +1,79 @@
1
+ import { ProfileType } from "./support.type";
2
+ import { TransactionType } from "./finance.type";
3
+ import { PricePlanUsage } from "./priceplan.type";
4
+ /**
5
+ * Represents a selected profile for a user
6
+ */
7
+ export interface SelectedProfile {
8
+ /** The type of profile (student, instructor, company, agent) */
9
+ type: ProfileType;
10
+ /** The unique identifier of the profile */
11
+ id: number;
12
+ }
13
+ /**
14
+ * Represents a time period with start and end dates
15
+ */
16
+ export interface IPeriod {
17
+ /** The start date of the period */
18
+ startDate: Date;
19
+ /** The end date of the period */
20
+ endDate: Date;
21
+ }
22
+ /**
23
+ * Represents a date update operation with from and to dates
24
+ */
25
+ export interface IDateUpdate {
26
+ /** The original date */
27
+ from: Date;
28
+ /** The new date */
29
+ to: Date;
30
+ }
31
+ /**
32
+ * Associates an ID with a specific date
33
+ */
34
+ export interface IDateAssignment {
35
+ /** Entity identifier */
36
+ id: number;
37
+ /** Associated date */
38
+ date: Date;
39
+ }
40
+ /**
41
+ * Represents a date with a duration
42
+ */
43
+ export interface IDateDuration {
44
+ /** The date */
45
+ date: Date;
46
+ /** Duration in minutes or other time unit */
47
+ duration: number;
48
+ }
49
+ /**
50
+ * Represents financial transaction history data
51
+ */
52
+ export interface FinancialHistory {
53
+ /** Finance type */
54
+ type: TransactionType;
55
+ /** Array of [timestamp, amount] tuples for time-series data */
56
+ data: [number, number][];
57
+ }
58
+ /**
59
+ * Document structure for handover operations
60
+ */
61
+ export interface HandoverDocument {
62
+ /** IDs of rejected expenses */
63
+ rejectedExpenses: number[];
64
+ /** IDs of skipped expenses */
65
+ skippedExpenses: number[];
66
+ /** IDs of skipped payments */
67
+ skippedPayments: number[];
68
+ }
69
+ /**
70
+ * Represents price plan usage information
71
+ */
72
+ export interface IPricePlanUsage {
73
+ /** The type of price plan usage */
74
+ type: PricePlanUsage;
75
+ /** Optional usage amount/count */
76
+ usage?: number;
77
+ /** Optional unit of measurement */
78
+ unit?: string;
79
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ ;
4
+ //# sourceMappingURL=interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interface.js","sourceRoot":"","sources":["../../src/types/interface.ts"],"names":[],"mappings":";;AA8DC,CAAC"}