@intelact/driveup 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/lib/auth/signin.dto.js +1 -1
  2. package/lib/auth/signin.dto.js.map +1 -1
  3. package/lib/geo/address.model.d.ts +6 -4
  4. package/lib/geo/address.model.js +13 -2
  5. package/lib/geo/address.model.js.map +1 -1
  6. package/lib/geo/pickup.model.d.ts +1 -1
  7. package/lib/geo/pickup.model.js.map +1 -1
  8. package/lib/index.d.ts +0 -1
  9. package/lib/index.js +0 -1
  10. package/lib/index.js.map +1 -1
  11. package/lib/instructor/instructor.model.d.ts +3 -2
  12. package/lib/instructor/instructor.model.js +5 -4
  13. package/lib/instructor/instructor.model.js.map +1 -1
  14. package/lib/note/note.model.d.ts +1 -1
  15. package/lib/note/note.model.js.map +1 -1
  16. package/lib/tsconfig.tsbuildinfo +1 -1
  17. package/lib/utils/array.helper.d.ts +7 -0
  18. package/lib/utils/array.helper.js +9 -0
  19. package/lib/utils/array.helper.js.map +1 -1
  20. package/package.json +2 -2
  21. package/lib/agent/asset.type.d.ts +0 -5
  22. package/lib/agent/asset.type.js +0 -10
  23. package/lib/agent/asset.type.js.map +0 -1
  24. package/lib/agent/earning.type.d.ts +0 -6
  25. package/lib/agent/earning.type.js +0 -3
  26. package/lib/agent/earning.type.js.map +0 -1
  27. package/lib/alert/alert.content.d.ts +0 -4
  28. package/lib/alert/alert.content.js +0 -9
  29. package/lib/alert/alert.content.js.map +0 -1
  30. package/lib/bill/bill-item.type.d.ts +0 -5
  31. package/lib/bill/bill-item.type.js +0 -10
  32. package/lib/bill/bill-item.type.js.map +0 -1
  33. package/lib/bill/bill.status.d.ts +0 -5
  34. package/lib/bill/bill.status.js +0 -13
  35. package/lib/bill/bill.status.js.map +0 -1
  36. package/lib/calendar/types.d.ts +0 -19
  37. package/lib/calendar/types.js +0 -25
  38. package/lib/calendar/types.js.map +0 -1
  39. package/lib/common/context.d.ts +0 -6
  40. package/lib/common/context.js +0 -11
  41. package/lib/common/context.js.map +0 -1
  42. package/lib/course/types.d.ts +0 -15
  43. package/lib/course/types.js +0 -22
  44. package/lib/course/types.js.map +0 -1
  45. package/lib/driving/lesson/types.d.ts +0 -15
  46. package/lib/driving/lesson/types.js +0 -21
  47. package/lib/driving/lesson/types.js.map +0 -1
  48. package/lib/driving/types.d.ts +0 -9
  49. package/lib/driving/types.js +0 -15
  50. package/lib/driving/types.js.map +0 -1
  51. package/lib/event/event.dto.d.ts +0 -24
  52. package/lib/event/event.dto.js +0 -146
  53. package/lib/event/event.dto.js.map +0 -1
  54. package/lib/event/event.model.d.ts +0 -8
  55. package/lib/event/event.model.js +0 -49
  56. package/lib/event/event.model.js.map +0 -1
  57. package/lib/event/index.d.ts +0 -2
  58. package/lib/event/index.js +0 -19
  59. package/lib/event/index.js.map +0 -1
  60. package/lib/events/agent/account.events.d.ts +0 -27
  61. package/lib/events/agent/account.events.js +0 -32
  62. package/lib/events/agent/account.events.js.map +0 -1
  63. package/lib/events/agent/payout.events.d.ts +0 -29
  64. package/lib/events/agent/payout.events.js +0 -34
  65. package/lib/events/agent/payout.events.js.map +0 -1
  66. package/lib/events/agent/profile.events.d.ts +0 -18
  67. package/lib/events/agent/profile.events.js +0 -23
  68. package/lib/events/agent/profile.events.js.map +0 -1
  69. package/lib/events/agent/promotion.events.d.ts +0 -42
  70. package/lib/events/agent/promotion.events.js +0 -47
  71. package/lib/events/agent/promotion.events.js.map +0 -1
  72. package/lib/events/auth/auth.events.d.ts +0 -16
  73. package/lib/events/auth/auth.events.js +0 -21
  74. package/lib/events/auth/auth.events.js.map +0 -1
  75. package/lib/events/auth/token.events.d.ts +0 -23
  76. package/lib/events/auth/token.events.js +0 -28
  77. package/lib/events/auth/token.events.js.map +0 -1
  78. package/lib/events/auth/verify.events.d.ts +0 -17
  79. package/lib/events/auth/verify.events.js +0 -22
  80. package/lib/events/auth/verify.events.js.map +0 -1
  81. package/lib/events/company/account/account.events.d.ts +0 -64
  82. package/lib/events/company/account/account.events.js +0 -69
  83. package/lib/events/company/account/account.events.js.map +0 -1
  84. package/lib/events/company/account/profile.events.d.ts +0 -169
  85. package/lib/events/company/account/profile.events.js +0 -174
  86. package/lib/events/company/account/profile.events.js.map +0 -1
  87. package/lib/events/company/course/appointment.events.d.ts +0 -56
  88. package/lib/events/company/course/appointment.events.js +0 -61
  89. package/lib/events/company/course/appointment.events.js.map +0 -1
  90. package/lib/events/company/course/course.events.d.ts +0 -118
  91. package/lib/events/company/course/course.events.js +0 -123
  92. package/lib/events/company/course/course.events.js.map +0 -1
  93. package/lib/events/company/course/lesson.events.d.ts +0 -56
  94. package/lib/events/company/course/lesson.events.js +0 -61
  95. package/lib/events/company/course/lesson.events.js.map +0 -1
  96. package/lib/events/company/course/topic.events.d.ts +0 -76
  97. package/lib/events/company/course/topic.events.js +0 -81
  98. package/lib/events/company/course/topic.events.js.map +0 -1
  99. package/lib/events/company/product/addon.events.d.ts +0 -34
  100. package/lib/events/company/product/addon.events.js +0 -39
  101. package/lib/events/company/product/addon.events.js.map +0 -1
  102. package/lib/events/company/product/campaign.events.d.ts +0 -13
  103. package/lib/events/company/product/campaign.events.js +0 -18
  104. package/lib/events/company/product/campaign.events.js.map +0 -1
  105. package/lib/events/company/product/product.events.d.ts +0 -54
  106. package/lib/events/company/product/product.events.js +0 -59
  107. package/lib/events/company/product/product.events.js.map +0 -1
  108. package/lib/events/index.d.ts +0 -25
  109. package/lib/events/index.js +0 -42
  110. package/lib/events/index.js.map +0 -1
  111. package/lib/events/instructor/account/account.events.d.ts +0 -123
  112. package/lib/events/instructor/account/account.events.js +0 -128
  113. package/lib/events/instructor/account/account.events.js.map +0 -1
  114. package/lib/events/instructor/account/profile.events.d.ts +0 -31
  115. package/lib/events/instructor/account/profile.events.js +0 -36
  116. package/lib/events/instructor/account/profile.events.js.map +0 -1
  117. package/lib/events/instructor/task/task.events.d.ts +0 -24
  118. package/lib/events/instructor/task/task.events.js +0 -29
  119. package/lib/events/instructor/task/task.events.js.map +0 -1
  120. package/lib/events/student/account/account.events.d.ts +0 -36
  121. package/lib/events/student/account/account.events.js +0 -41
  122. package/lib/events/student/account/account.events.js.map +0 -1
  123. package/lib/events/user/account.events.d.ts +0 -84
  124. package/lib/events/user/account.events.js +0 -89
  125. package/lib/events/user/account.events.js.map +0 -1
  126. package/lib/events/user/alert.events.d.ts +0 -16
  127. package/lib/events/user/alert.events.js +0 -21
  128. package/lib/events/user/alert.events.js.map +0 -1
  129. package/lib/events/user/device.events.d.ts +0 -30
  130. package/lib/events/user/device.events.js +0 -35
  131. package/lib/events/user/device.events.js.map +0 -1
  132. package/lib/events/user/notification.events.d.ts +0 -30
  133. package/lib/events/user/notification.events.js +0 -35
  134. package/lib/events/user/notification.events.js.map +0 -1
  135. package/lib/events/user/profile.events.d.ts +0 -60
  136. package/lib/events/user/profile.events.js +0 -65
  137. package/lib/events/user/profile.events.js.map +0 -1
  138. package/lib/expense/expense.types.d.ts +0 -5
  139. package/lib/expense/expense.types.js +0 -10
  140. package/lib/expense/expense.types.js.map +0 -1
  141. package/lib/finance/finance.type.d.ts +0 -21
  142. package/lib/finance/finance.type.js +0 -21
  143. package/lib/finance/finance.type.js.map +0 -1
  144. package/lib/free-benefit/free-benefit.type.d.ts +0 -4
  145. package/lib/free-benefit/free-benefit.type.js +0 -9
  146. package/lib/free-benefit/free-benefit.type.js.map +0 -1
  147. package/lib/handover/handover.document.d.ts +0 -5
  148. package/lib/handover/handover.document.js +0 -3
  149. package/lib/handover/handover.document.js.map +0 -1
  150. package/lib/invoice/invoice.types.d.ts +0 -6
  151. package/lib/invoice/invoice.types.js +0 -11
  152. package/lib/invoice/invoice.types.js.map +0 -1
  153. package/lib/log/log.type.d.ts +0 -9
  154. package/lib/log/log.type.js +0 -14
  155. package/lib/log/log.type.js.map +0 -1
  156. package/lib/notification/notification.channel.d.ts +0 -6
  157. package/lib/notification/notification.channel.js +0 -11
  158. package/lib/notification/notification.channel.js.map +0 -1
  159. package/lib/payment/payment.types.d.ts +0 -13
  160. package/lib/payment/payment.types.js +0 -20
  161. package/lib/payment/payment.types.js.map +0 -1
  162. package/lib/payout/payout.types.d.ts +0 -4
  163. package/lib/payout/payout.types.js +0 -9
  164. package/lib/payout/payout.types.js.map +0 -1
  165. package/lib/priceplan/plan.enum.d.ts +0 -23
  166. package/lib/priceplan/plan.enum.js +0 -29
  167. package/lib/priceplan/plan.enum.js.map +0 -1
  168. package/lib/product/index.d.ts +0 -3
  169. package/lib/product/index.js +0 -20
  170. package/lib/product/index.js.map +0 -1
  171. package/lib/product/product.dto.d.ts +0 -12
  172. package/lib/product/product.dto.js +0 -69
  173. package/lib/product/product.dto.js.map +0 -1
  174. package/lib/product/product.model.d.ts +0 -12
  175. package/lib/product/product.model.js +0 -61
  176. package/lib/product/product.model.js.map +0 -1
  177. package/lib/product/product.type.d.ts +0 -4
  178. package/lib/product/product.type.js +0 -9
  179. package/lib/product/product.type.js.map +0 -1
  180. package/lib/security/account.types.d.ts +0 -8
  181. package/lib/security/account.types.js +0 -13
  182. package/lib/security/account.types.js.map +0 -1
  183. package/lib/security/acl.d.ts +0 -6
  184. package/lib/security/acl.js +0 -11
  185. package/lib/security/acl.js.map +0 -1
  186. package/lib/security/permissions.d.ts +0 -9
  187. package/lib/security/permissions.js +0 -14
  188. package/lib/security/permissions.js.map +0 -1
  189. package/lib/security/role.types.d.ts +0 -41
  190. package/lib/security/role.types.js +0 -46
  191. package/lib/security/role.types.js.map +0 -1
  192. package/lib/setting/setting.type.d.ts +0 -7
  193. package/lib/setting/setting.type.js +0 -12
  194. package/lib/setting/setting.type.js.map +0 -1
  195. package/lib/ticket/ticket.enum.d.ts +0 -5
  196. package/lib/ticket/ticket.enum.js +0 -10
  197. package/lib/ticket/ticket.enum.js.map +0 -1
  198. package/lib/training/training.types.d.ts +0 -15
  199. package/lib/training/training.types.js +0 -22
  200. package/lib/training/training.types.js.map +0 -1
  201. package/lib/types/activity.type.d.ts +0 -46
  202. package/lib/types/activity.type.js +0 -51
  203. package/lib/types/activity.type.js.map +0 -1
  204. package/lib/types/addon.type.d.ts +0 -66
  205. package/lib/types/addon.type.js +0 -71
  206. package/lib/types/addon.type.js.map +0 -1
  207. package/lib/types/calendar.type.d.ts +0 -24
  208. package/lib/types/calendar.type.js +0 -31
  209. package/lib/types/calendar.type.js.map +0 -1
  210. package/lib/types/driving.type.d.ts +0 -12
  211. package/lib/types/driving.type.js +0 -18
  212. package/lib/types/driving.type.js.map +0 -1
  213. package/lib/types/earning.type.d.ts +0 -6
  214. package/lib/types/earning.type.js +0 -3
  215. package/lib/types/earning.type.js.map +0 -1
  216. package/lib/types/finance.type.d.ts +0 -67
  217. package/lib/types/finance.type.js +0 -77
  218. package/lib/types/finance.type.js.map +0 -1
  219. package/lib/types/index.d.ts +0 -15
  220. package/lib/types/index.js +0 -32
  221. package/lib/types/index.js.map +0 -1
  222. package/lib/types/interface.d.ts +0 -79
  223. package/lib/types/interface.js +0 -4
  224. package/lib/types/interface.js.map +0 -1
  225. package/lib/types/metric.type.d.ts +0 -34
  226. package/lib/types/metric.type.js +0 -39
  227. package/lib/types/metric.type.js.map +0 -1
  228. package/lib/types/policy.type.d.ts +0 -27
  229. package/lib/types/policy.type.js +0 -32
  230. package/lib/types/policy.type.js.map +0 -1
  231. package/lib/types/priceplan.type.d.ts +0 -39
  232. package/lib/types/priceplan.type.js +0 -48
  233. package/lib/types/priceplan.type.js.map +0 -1
  234. package/lib/types/product.type.d.ts +0 -202
  235. package/lib/types/product.type.js +0 -209
  236. package/lib/types/product.type.js.map +0 -1
  237. package/lib/types/program.type.d.ts +0 -23
  238. package/lib/types/program.type.js +0 -28
  239. package/lib/types/program.type.js.map +0 -1
  240. package/lib/types/security.type.d.ts +0 -54
  241. package/lib/types/security.type.js +0 -60
  242. package/lib/types/security.type.js.map +0 -1
  243. package/lib/types/support.type.d.ts +0 -128
  244. package/lib/types/support.type.js +0 -145
  245. package/lib/types/support.type.js.map +0 -1
  246. package/lib/types/training.type.d.ts +0 -16
  247. package/lib/types/training.type.js +0 -22
  248. package/lib/types/training.type.js.map +0 -1
  249. package/lib/user/profile.type.d.ts +0 -10
  250. package/lib/user/profile.type.js +0 -15
  251. package/lib/user/profile.type.js.map +0 -1
  252. package/lib/validators/compare.validator.d.ts +0 -9
  253. package/lib/validators/compare.validator.js +0 -34
  254. package/lib/validators/compare.validator.js.map +0 -1
  255. package/lib/validators/index.d.ts +0 -2
  256. package/lib/validators/index.js +0 -19
  257. package/lib/validators/index.js.map +0 -1
  258. package/lib/validators/required.validator.d.ts +0 -21
  259. package/lib/validators/required.validator.js +0 -95
  260. package/lib/validators/required.validator.js.map +0 -1
@@ -1,32 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,29 +0,0 @@
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
- }
@@ -1,34 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,18 +0,0 @@
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
- }
@@ -1,23 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,42 +0,0 @@
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
- }
@@ -1,47 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,16 +0,0 @@
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
- }
@@ -1,21 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,23 +0,0 @@
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
- }
@@ -1,28 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,17 +0,0 @@
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
- }
@@ -1,22 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,64 +0,0 @@
1
- export declare enum CompanyAccountEvents {
2
- /**
3
- * Company account is created
4
- * @author Company Owner
5
- * @fires Log user for auditing purposes
6
- * @fires Log owner for auditing purposes
7
- * @fires Log company for auditing purposes
8
- * @fires Log system for auditing purposes
9
- * @param CompanyEntity Created company
10
- * @param InstructorEntity Event author
11
- */
12
- Created = "company.account.created",
13
- /**
14
- * Company account is activated
15
- * @author System Job
16
- * @fires Log company for auditing purposes
17
- * @fires Log system for auditing purposes
18
- * @param CompanyEntity Company which account is activated
19
- * @param Person Event author (DriveUp)
20
- */
21
- Activated = "company.account.activated",
22
- /**
23
- * Company onboardin is completed
24
- * @author Company owner
25
- * @fires Log instructor for auditing purposes
26
- * @fires Log company for auditing purposes
27
- * @fires Log system for auditing purposes
28
- * @param CompanyEntity Company which account is activated
29
- * @param InstructorEntity Event author
30
- */
31
- Completed = "company.account.completed",
32
- /**
33
- * Company account is suspended
34
- * @author System Job
35
- * @fires Log company for auditing purposes
36
- * @fires Log system for auditing purposes
37
- * @fires Notify all managers about the company account suspension
38
- * @param CompanyEntity Company which account is closed
39
- * @param Person Event author (DriveUp)
40
- */
41
- Suspended = "company.account.suspended",
42
- /**
43
- * Company account is blocked
44
- * @author System Job
45
- * @fires Log company for auditing purposes
46
- * @fires Log system for auditing purposes
47
- * @fires Notify all active members about the company account blocking
48
- * @param CompanyEntity Company which account is closed
49
- * @param Person Event author (DriveUp)
50
- */
51
- Blocked = "company.account.blocked",
52
- /**
53
- * Company account is closed
54
- * @author Company Owner
55
- * @fires Log user for auditing purposes
56
- * @fires Log instructor for auditing purposes
57
- * @fires Log company for auditing purposes
58
- * @fires Log system for auditing purposes
59
- * @fires Notify all active members about the company account closure
60
- * @fires Notify agent about the company account closure
61
- * @param CompanyEntity Closed company
62
- */
63
- Closed = "company.account.closed"
64
- }
@@ -1,69 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CompanyAccountEvents = void 0;
4
- var CompanyAccountEvents;
5
- (function (CompanyAccountEvents) {
6
- /**
7
- * Company account is created
8
- * @author Company Owner
9
- * @fires Log user for auditing purposes
10
- * @fires Log owner for auditing purposes
11
- * @fires Log company for auditing purposes
12
- * @fires Log system for auditing purposes
13
- * @param CompanyEntity Created company
14
- * @param InstructorEntity Event author
15
- */
16
- CompanyAccountEvents["Created"] = "company.account.created";
17
- /**
18
- * Company account is activated
19
- * @author System Job
20
- * @fires Log company for auditing purposes
21
- * @fires Log system for auditing purposes
22
- * @param CompanyEntity Company which account is activated
23
- * @param Person Event author (DriveUp)
24
- */
25
- CompanyAccountEvents["Activated"] = "company.account.activated";
26
- /**
27
- * Company onboardin is completed
28
- * @author Company owner
29
- * @fires Log instructor for auditing purposes
30
- * @fires Log company for auditing purposes
31
- * @fires Log system for auditing purposes
32
- * @param CompanyEntity Company which account is activated
33
- * @param InstructorEntity Event author
34
- */
35
- CompanyAccountEvents["Completed"] = "company.account.completed";
36
- /**
37
- * Company account is suspended
38
- * @author System Job
39
- * @fires Log company for auditing purposes
40
- * @fires Log system for auditing purposes
41
- * @fires Notify all managers about the company account suspension
42
- * @param CompanyEntity Company which account is closed
43
- * @param Person Event author (DriveUp)
44
- */
45
- CompanyAccountEvents["Suspended"] = "company.account.suspended";
46
- /**
47
- * Company account is blocked
48
- * @author System Job
49
- * @fires Log company for auditing purposes
50
- * @fires Log system for auditing purposes
51
- * @fires Notify all active members about the company account blocking
52
- * @param CompanyEntity Company which account is closed
53
- * @param Person Event author (DriveUp)
54
- */
55
- CompanyAccountEvents["Blocked"] = "company.account.blocked";
56
- /**
57
- * Company account is closed
58
- * @author Company Owner
59
- * @fires Log user for auditing purposes
60
- * @fires Log instructor for auditing purposes
61
- * @fires Log company for auditing purposes
62
- * @fires Log system for auditing purposes
63
- * @fires Notify all active members about the company account closure
64
- * @fires Notify agent about the company account closure
65
- * @param CompanyEntity Closed company
66
- */
67
- CompanyAccountEvents["Closed"] = "company.account.closed";
68
- })(CompanyAccountEvents || (exports.CompanyAccountEvents = CompanyAccountEvents = {}));
69
- //# sourceMappingURL=account.events.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account.events.js","sourceRoot":"","sources":["../../../../src/events/company/account/account.events.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAqEX;AArED,WAAY,oBAAoB;IAE/B;;;;;;;;;OASG;IACH,2DAAmC,CAAA;IAEnC;;;;;;;OAOG;IACH,+DAAuC,CAAA;IAEvC;;;;;;;;OAQG;IACH,+DAAuC,CAAA;IAEvC;;;;;;;;OAQG;IACH,+DAAuC,CAAA;IAEvC;;;;;;;;OAQG;IACH,2DAAmC,CAAA;IAEnC;;;;;;;;;;OAUG;IACH,yDAAiC,CAAA;AAClC,CAAC,EArEW,oBAAoB,oCAApB,oBAAoB,QAqE/B"}