@intelact/driveup 0.6.0 → 0.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 (360) hide show
  1. package/lib/agent/agent.model.d.ts +1 -4
  2. package/lib/agent/agent.model.js +1 -16
  3. package/lib/agent/agent.model.js.map +1 -1
  4. package/lib/agent/code.model.js.map +1 -1
  5. package/lib/agent/index.d.ts +0 -1
  6. package/lib/agent/index.js +0 -1
  7. package/lib/agent/index.js.map +1 -1
  8. package/lib/auth/biometric.dto.d.ts +3 -0
  9. package/lib/auth/biometric.dto.js +25 -0
  10. package/lib/auth/biometric.dto.js.map +1 -0
  11. package/lib/auth/index.d.ts +3 -0
  12. package/lib/auth/index.js +20 -0
  13. package/lib/auth/index.js.map +1 -0
  14. package/lib/auth/signin.dto.d.ts +6 -0
  15. package/lib/auth/signin.dto.js +37 -0
  16. package/lib/auth/signin.dto.js.map +1 -0
  17. package/lib/auth/signup.dto.d.ts +5 -0
  18. package/lib/auth/signup.dto.js +38 -0
  19. package/lib/auth/signup.dto.js.map +1 -0
  20. package/lib/bank/account.model.d.ts +6 -0
  21. package/lib/bank/account.model.js +46 -0
  22. package/lib/bank/account.model.js.map +1 -0
  23. package/lib/bank/index.d.ts +1 -0
  24. package/lib/bank/index.js +18 -0
  25. package/lib/bank/index.js.map +1 -0
  26. package/lib/calendar/appointment.d.ts +29 -0
  27. package/lib/calendar/appointment.js +143 -0
  28. package/lib/calendar/appointment.js.map +1 -0
  29. package/lib/calendar/date.d.ts +11 -0
  30. package/lib/calendar/date.js +52 -0
  31. package/lib/calendar/date.js.map +1 -0
  32. package/lib/calendar/holiday.d.ts +5 -0
  33. package/lib/calendar/holiday.js +40 -0
  34. package/lib/calendar/holiday.js.map +1 -0
  35. package/lib/calendar/index.d.ts +5 -0
  36. package/lib/calendar/index.js +22 -0
  37. package/lib/calendar/index.js.map +1 -0
  38. package/lib/calendar/types.d.ts +14 -0
  39. package/lib/calendar/types.js +20 -0
  40. package/lib/calendar/types.js.map +1 -0
  41. package/lib/calendar/working.d.ts +9 -0
  42. package/lib/calendar/working.js +44 -0
  43. package/lib/calendar/working.js.map +1 -0
  44. package/lib/common/content.d.ts +9 -0
  45. package/lib/common/content.js +42 -0
  46. package/lib/common/content.js.map +1 -0
  47. package/lib/common/email.d.ts +7 -0
  48. package/lib/common/email.js +41 -0
  49. package/lib/common/email.js.map +1 -0
  50. package/lib/common/index.d.ts +8 -3
  51. package/lib/common/index.js +8 -3
  52. package/lib/common/index.js.map +1 -1
  53. package/lib/common/language.d.ts +9 -0
  54. package/lib/common/language.js +29 -0
  55. package/lib/common/language.js.map +1 -0
  56. package/lib/common/phone.d.ts +4 -0
  57. package/lib/common/phone.js +32 -0
  58. package/lib/common/phone.js.map +1 -0
  59. package/lib/common/promotion.d.ts +3 -0
  60. package/lib/common/promotion.js +23 -0
  61. package/lib/common/promotion.js.map +1 -0
  62. package/lib/common/social.d.ts +4 -0
  63. package/lib/common/social.js +30 -0
  64. package/lib/common/social.js.map +1 -0
  65. package/lib/common/sort.d.ts +3 -0
  66. package/lib/common/sort.js +23 -0
  67. package/lib/common/sort.js.map +1 -0
  68. package/lib/common/url.d.ts +3 -0
  69. package/lib/common/url.js +25 -0
  70. package/lib/common/url.js.map +1 -0
  71. package/lib/company/company.model.d.ts +18 -40
  72. package/lib/company/company.model.js +35 -36
  73. package/lib/company/company.model.js.map +1 -1
  74. package/lib/company/index.d.ts +1 -10
  75. package/lib/company/index.js +1 -10
  76. package/lib/company/index.js.map +1 -1
  77. package/lib/company/priceplan.model.d.ts +16 -0
  78. package/lib/company/priceplan.model.js +87 -0
  79. package/lib/company/priceplan.model.js.map +1 -0
  80. package/lib/country/country.model.d.ts +16 -0
  81. package/lib/country/country.model.js +80 -0
  82. package/lib/country/country.model.js.map +1 -0
  83. package/lib/country/index.d.ts +1 -0
  84. package/lib/country/index.js +18 -0
  85. package/lib/country/index.js.map +1 -0
  86. package/lib/course/appointment.model.d.ts +8 -0
  87. package/lib/course/appointment.model.js +36 -0
  88. package/lib/course/appointment.model.js.map +1 -0
  89. package/lib/course/course.model.d.ts +17 -0
  90. package/lib/course/course.model.js +94 -0
  91. package/lib/course/course.model.js.map +1 -0
  92. package/lib/course/definition.model.d.ts +11 -0
  93. package/lib/course/definition.model.js +57 -0
  94. package/lib/course/definition.model.js.map +1 -0
  95. package/lib/course/index.d.ts +5 -0
  96. package/lib/course/index.js +22 -0
  97. package/lib/course/index.js.map +1 -0
  98. package/lib/course/part.model.d.ts +12 -0
  99. package/lib/course/part.model.js +67 -0
  100. package/lib/course/part.model.js.map +1 -0
  101. package/lib/course/types.d.ts +15 -0
  102. package/lib/course/types.js +22 -0
  103. package/lib/course/types.js.map +1 -0
  104. package/lib/credit/credit.model.d.ts +9 -0
  105. package/lib/credit/credit.model.js +50 -0
  106. package/lib/credit/credit.model.js.map +1 -0
  107. package/lib/credit/index.d.ts +1 -0
  108. package/lib/credit/index.js +18 -0
  109. package/lib/credit/index.js.map +1 -0
  110. package/lib/currency/currency.model.d.ts +9 -0
  111. package/lib/currency/currency.model.js +53 -0
  112. package/lib/currency/currency.model.js.map +1 -0
  113. package/lib/currency/index.d.ts +1 -0
  114. package/lib/currency/index.js +18 -0
  115. package/lib/currency/index.js.map +1 -0
  116. package/lib/device/device.agent.d.ts +11 -0
  117. package/lib/device/device.agent.js +3 -0
  118. package/lib/device/device.agent.js.map +1 -0
  119. package/lib/device/device.model.d.ts +8 -0
  120. package/lib/device/device.model.js +46 -0
  121. package/lib/device/device.model.js.map +1 -0
  122. package/lib/device/index.d.ts +2 -0
  123. package/lib/device/index.js +19 -0
  124. package/lib/device/index.js.map +1 -0
  125. package/lib/discount/discount.model.d.ts +9 -0
  126. package/lib/discount/discount.model.js +50 -0
  127. package/lib/discount/discount.model.js.map +1 -0
  128. package/lib/discount/index.d.ts +1 -0
  129. package/lib/discount/index.js +18 -0
  130. package/lib/discount/index.js.map +1 -0
  131. package/lib/driving/category/category.dto.d.ts +5 -0
  132. package/lib/driving/category/category.dto.js +38 -0
  133. package/lib/driving/category/category.dto.js.map +1 -0
  134. package/lib/driving/category/category.model.d.ts +16 -0
  135. package/lib/driving/category/category.model.js +87 -0
  136. package/lib/driving/category/category.model.js.map +1 -0
  137. package/lib/driving/category/index.d.ts +2 -0
  138. package/lib/driving/category/index.js +19 -0
  139. package/lib/driving/category/index.js.map +1 -0
  140. package/lib/driving/index.d.ts +3 -0
  141. package/lib/driving/index.js +20 -0
  142. package/lib/driving/index.js.map +1 -0
  143. package/lib/driving/lesson/index.d.ts +3 -0
  144. package/lib/driving/lesson/index.js +20 -0
  145. package/lib/driving/lesson/index.js.map +1 -0
  146. package/lib/driving/lesson/skill.d.ts +6 -0
  147. package/lib/driving/lesson/skill.js +37 -0
  148. package/lib/driving/lesson/skill.js.map +1 -0
  149. package/lib/driving/lesson/topic.d.ts +10 -0
  150. package/lib/driving/lesson/topic.js +58 -0
  151. package/lib/driving/lesson/topic.js.map +1 -0
  152. package/lib/driving/lesson/types.d.ts +13 -0
  153. package/lib/driving/lesson/types.js +19 -0
  154. package/lib/driving/lesson/types.js.map +1 -0
  155. package/lib/driving/types.d.ts +8 -0
  156. package/lib/driving/types.js +14 -0
  157. package/lib/driving/types.js.map +1 -0
  158. package/lib/event/event.model.d.ts +8 -0
  159. package/lib/event/event.model.js +49 -0
  160. package/lib/event/event.model.js.map +1 -0
  161. package/lib/event/index.d.ts +1 -0
  162. package/lib/event/index.js +18 -0
  163. package/lib/event/index.js.map +1 -0
  164. package/lib/expense/category.model.d.ts +7 -0
  165. package/lib/expense/category.model.js +41 -0
  166. package/lib/expense/category.model.js.map +1 -0
  167. package/lib/expense/expense.model.d.ts +14 -0
  168. package/lib/expense/expense.model.js +68 -0
  169. package/lib/expense/expense.model.js.map +1 -0
  170. package/lib/expense/expense.types.d.ts +5 -0
  171. package/lib/expense/expense.types.js +10 -0
  172. package/lib/expense/expense.types.js.map +1 -0
  173. package/lib/expense/index.d.ts +3 -0
  174. package/lib/expense/index.js +20 -0
  175. package/lib/expense/index.js.map +1 -0
  176. package/lib/feedback/feedback.model.d.ts +9 -0
  177. package/lib/feedback/feedback.model.js +52 -0
  178. package/lib/feedback/feedback.model.js.map +1 -0
  179. package/lib/feedback/index.d.ts +1 -0
  180. package/lib/feedback/index.js +18 -0
  181. package/lib/feedback/index.js.map +1 -0
  182. package/lib/geo/address.dto.d.ts +12 -0
  183. package/lib/geo/address.dto.js +71 -0
  184. package/lib/geo/address.dto.js.map +1 -0
  185. package/lib/geo/coordinate.model.d.ts +4 -0
  186. package/lib/geo/coordinate.model.js +29 -0
  187. package/lib/geo/coordinate.model.js.map +1 -0
  188. package/lib/geo/index.d.ts +3 -0
  189. package/lib/geo/index.js +20 -0
  190. package/lib/geo/index.js.map +1 -0
  191. package/lib/geo/pickup.model.d.ts +8 -0
  192. package/lib/geo/pickup.model.js +49 -0
  193. package/lib/geo/pickup.model.js.map +1 -0
  194. package/lib/index.d.ts +27 -2
  195. package/lib/index.js +27 -2
  196. package/lib/index.js.map +1 -1
  197. package/lib/instructor/index.d.ts +2 -0
  198. package/lib/instructor/index.js +19 -0
  199. package/lib/instructor/index.js.map +1 -0
  200. package/lib/instructor/instructor.dto.d.ts +6 -0
  201. package/lib/instructor/instructor.dto.js +39 -0
  202. package/lib/instructor/instructor.dto.js.map +1 -0
  203. package/lib/instructor/instructor.model.d.ts +14 -0
  204. package/lib/instructor/instructor.model.js +63 -0
  205. package/lib/instructor/instructor.model.js.map +1 -0
  206. package/lib/invoice/index.d.ts +3 -0
  207. package/lib/invoice/index.js +20 -0
  208. package/lib/invoice/index.js.map +1 -0
  209. package/lib/invoice/invoice.model.d.ts +18 -0
  210. package/lib/invoice/invoice.model.js +88 -0
  211. package/lib/invoice/invoice.model.js.map +1 -0
  212. package/lib/invoice/invoice.types.d.ts +5 -0
  213. package/lib/invoice/invoice.types.js +10 -0
  214. package/lib/invoice/invoice.types.js.map +1 -0
  215. package/lib/invoice/item.model.d.ts +7 -0
  216. package/lib/invoice/item.model.js +43 -0
  217. package/lib/invoice/item.model.js.map +1 -0
  218. package/lib/license/index.d.ts +1 -0
  219. package/lib/license/index.js +18 -0
  220. package/lib/license/index.js.map +1 -0
  221. package/lib/license/license.model.d.ts +5 -0
  222. package/lib/license/license.model.js +41 -0
  223. package/lib/license/license.model.js.map +1 -0
  224. package/lib/note/index.d.ts +1 -0
  225. package/lib/note/index.js +18 -0
  226. package/lib/note/index.js.map +1 -0
  227. package/lib/note/note.model.d.ts +9 -0
  228. package/lib/note/note.model.js +49 -0
  229. package/lib/note/note.model.js.map +1 -0
  230. package/lib/notification/notification.model.js.map +1 -1
  231. package/lib/payment/index.d.ts +2 -0
  232. package/lib/payment/index.js +19 -0
  233. package/lib/payment/index.js.map +1 -0
  234. package/lib/payment/payment.model.d.ts +14 -0
  235. package/lib/payment/payment.model.js +74 -0
  236. package/lib/payment/payment.model.js.map +1 -0
  237. package/lib/payment/payment.types.d.ts +13 -0
  238. package/lib/payment/payment.types.js +20 -0
  239. package/lib/payment/payment.types.js.map +1 -0
  240. package/lib/payout/index.d.ts +2 -0
  241. package/lib/payout/index.js +19 -0
  242. package/lib/payout/index.js.map +1 -0
  243. package/lib/payout/payout.model.d.ts +12 -0
  244. package/lib/payout/payout.model.js +58 -0
  245. package/lib/payout/payout.model.js.map +1 -0
  246. package/lib/payout/payout.types.d.ts +4 -0
  247. package/lib/payout/payout.types.js +9 -0
  248. package/lib/payout/payout.types.js.map +1 -0
  249. package/lib/priceplan/index.d.ts +2 -0
  250. package/lib/priceplan/index.js +19 -0
  251. package/lib/priceplan/index.js.map +1 -0
  252. package/lib/priceplan/plan.enum.d.ts +10 -0
  253. package/lib/priceplan/plan.enum.js +16 -0
  254. package/lib/priceplan/plan.enum.js.map +1 -0
  255. package/lib/priceplan/plan.model.d.ts +13 -0
  256. package/lib/priceplan/plan.model.js +70 -0
  257. package/lib/priceplan/plan.model.js.map +1 -0
  258. package/lib/refund/index.d.ts +1 -0
  259. package/lib/refund/index.js +18 -0
  260. package/lib/refund/index.js.map +1 -0
  261. package/lib/refund/refund.model.d.ts +11 -0
  262. package/lib/refund/refund.model.js +57 -0
  263. package/lib/refund/refund.model.js.map +1 -0
  264. package/lib/security/account.types.d.ts +8 -0
  265. package/lib/security/account.types.js +13 -0
  266. package/lib/security/account.types.js.map +1 -0
  267. package/lib/security/acl.js +2 -2
  268. package/lib/security/acl.js.map +1 -1
  269. package/lib/security/index.d.ts +4 -2
  270. package/lib/security/index.js +4 -2
  271. package/lib/security/index.js.map +1 -1
  272. package/lib/security/role.dto.d.ts +4 -0
  273. package/lib/security/role.dto.js +24 -0
  274. package/lib/security/role.dto.js.map +1 -0
  275. package/lib/security/role.types.d.ts +9 -0
  276. package/lib/security/role.types.js +14 -0
  277. package/lib/security/role.types.js.map +1 -0
  278. package/lib/security/token.d.ts +7 -0
  279. package/lib/security/token.js +3 -0
  280. package/lib/security/token.js.map +1 -0
  281. package/lib/session/course/index.d.ts +1 -0
  282. package/lib/session/course/index.js +18 -0
  283. package/lib/session/course/index.js.map +1 -0
  284. package/lib/session/course/session.model.d.ts +7 -0
  285. package/lib/session/course/session.model.js +35 -0
  286. package/lib/session/course/session.model.js.map +1 -0
  287. package/lib/session/driving/index.d.ts +3 -0
  288. package/lib/session/driving/index.js +20 -0
  289. package/lib/session/driving/index.js.map +1 -0
  290. package/lib/session/driving/session.model.d.ts +14 -0
  291. package/lib/session/driving/session.model.js +62 -0
  292. package/lib/session/driving/session.model.js.map +1 -0
  293. package/lib/session/driving/session.skill.d.ts +5 -0
  294. package/lib/session/driving/session.skill.js +27 -0
  295. package/lib/session/driving/session.skill.js.map +1 -0
  296. package/lib/session/driving/session.topic.d.ts +12 -0
  297. package/lib/session/driving/session.topic.js +58 -0
  298. package/lib/session/driving/session.topic.js.map +1 -0
  299. package/lib/session/index.d.ts +2 -0
  300. package/lib/session/index.js +19 -0
  301. package/lib/session/index.js.map +1 -0
  302. package/lib/setting/index.d.ts +2 -0
  303. package/lib/setting/index.js +19 -0
  304. package/lib/setting/index.js.map +1 -0
  305. package/lib/setting/setting.model.d.ts +10 -0
  306. package/lib/setting/setting.model.js +52 -0
  307. package/lib/setting/setting.model.js.map +1 -0
  308. package/lib/setting/setting.type.d.ts +7 -0
  309. package/lib/setting/setting.type.js +12 -0
  310. package/lib/setting/setting.type.js.map +1 -0
  311. package/lib/signature/index.d.ts +1 -0
  312. package/lib/signature/index.js +18 -0
  313. package/lib/signature/index.js.map +1 -0
  314. package/lib/signature/signature.model.d.ts +7 -0
  315. package/lib/signature/signature.model.js +42 -0
  316. package/lib/signature/signature.model.js.map +1 -0
  317. package/lib/student/index.d.ts +0 -3
  318. package/lib/student/index.js +0 -3
  319. package/lib/student/index.js.map +1 -1
  320. package/lib/student/student.model.d.ts +1 -8
  321. package/lib/student/student.model.js +1 -28
  322. package/lib/student/student.model.js.map +1 -1
  323. package/lib/training/course.model.d.ts +6 -0
  324. package/lib/training/course.model.js +29 -0
  325. package/lib/training/course.model.js.map +1 -0
  326. package/lib/training/driving.model.d.ts +13 -0
  327. package/lib/training/driving.model.js +59 -0
  328. package/lib/training/driving.model.js.map +1 -0
  329. package/lib/training/index.d.ts +5 -0
  330. package/lib/training/index.js +22 -0
  331. package/lib/training/index.js.map +1 -0
  332. package/lib/training/request.model.d.ts +20 -0
  333. package/lib/training/request.model.js +92 -0
  334. package/lib/training/request.model.js.map +1 -0
  335. package/lib/training/training.model.d.ts +31 -0
  336. package/lib/training/training.model.js +155 -0
  337. package/lib/training/training.model.js.map +1 -0
  338. package/lib/training/training.types.d.ts +15 -0
  339. package/lib/training/training.types.js +22 -0
  340. package/lib/training/training.types.js.map +1 -0
  341. package/lib/tsconfig.tsbuildinfo +1 -1
  342. package/lib/user/index.d.ts +0 -5
  343. package/lib/user/index.js +0 -5
  344. package/lib/user/index.js.map +1 -1
  345. package/lib/user/profile.dto.d.ts +1 -1
  346. package/lib/user/profile.dto.js +2 -2
  347. package/lib/user/profile.dto.js.map +1 -1
  348. package/lib/user/user.model.d.ts +9 -9
  349. package/lib/user/user.model.js +28 -13
  350. package/lib/user/user.model.js.map +1 -1
  351. package/lib/validators/compare.validator.d.ts +5 -0
  352. package/lib/validators/compare.validator.js +28 -0
  353. package/lib/validators/compare.validator.js.map +1 -0
  354. package/lib/validators/index.d.ts +2 -0
  355. package/lib/validators/index.js +19 -0
  356. package/lib/validators/index.js.map +1 -0
  357. package/lib/validators/required.validator.d.ts +11 -0
  358. package/lib/validators/required.validator.js +80 -0
  359. package/lib/validators/required.validator.js.map +1 -0
  360. package/package.json +1 -1
@@ -0,0 +1,19 @@
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("./payout.model"), exports);
18
+ __exportStar(require("./payout.types"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/payout/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,iDAA+B"}
@@ -0,0 +1,12 @@
1
+ import { PayoutStatus } from "./payout.types";
2
+ import { BankAccount } from "../bank";
3
+ import { User } from "../user";
4
+ export declare class AgentPayout {
5
+ id: number;
6
+ status: PayoutStatus;
7
+ bank: BankAccount;
8
+ amount: number;
9
+ createdBy: User;
10
+ createdOn: Date;
11
+ constructor(props?: Partial<AgentPayout>);
12
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AgentPayout = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const payout_types_1 = require("./payout.types");
15
+ const bank_1 = require("../bank");
16
+ const user_1 = require("../user");
17
+ class AgentPayout {
18
+ id;
19
+ status;
20
+ bank;
21
+ amount;
22
+ createdBy;
23
+ createdOn;
24
+ constructor(props) {
25
+ Object.assign(this, props);
26
+ }
27
+ }
28
+ exports.AgentPayout = AgentPayout;
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ (0, class_transformer_1.Type)(() => Number),
32
+ __metadata("design:type", Number)
33
+ ], AgentPayout.prototype, "id", void 0);
34
+ __decorate([
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", String)
37
+ ], AgentPayout.prototype, "status", void 0);
38
+ __decorate([
39
+ (0, class_transformer_1.Expose)(),
40
+ (0, class_transformer_1.Type)(() => bank_1.BankAccount),
41
+ __metadata("design:type", bank_1.BankAccount)
42
+ ], AgentPayout.prototype, "bank", void 0);
43
+ __decorate([
44
+ (0, class_transformer_1.Expose)(),
45
+ (0, class_transformer_1.Type)(() => Number),
46
+ __metadata("design:type", Number)
47
+ ], AgentPayout.prototype, "amount", void 0);
48
+ __decorate([
49
+ (0, class_transformer_1.Expose)(),
50
+ (0, class_transformer_1.Type)(() => user_1.User),
51
+ __metadata("design:type", user_1.User)
52
+ ], AgentPayout.prototype, "createdBy", void 0);
53
+ __decorate([
54
+ (0, class_transformer_1.Expose)(),
55
+ (0, class_transformer_1.Type)(() => Date),
56
+ __metadata("design:type", Date)
57
+ ], AgentPayout.prototype, "createdOn", void 0);
58
+ //# sourceMappingURL=payout.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payout.model.js","sourceRoot":"","sources":["../../src/payout/payout.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,iDAA8C;AAC9C,kCAAsC;AACtC,kCAA+B;AAE/B,MAAa,WAAW;IAIvB,EAAE,CAAS;IAGX,MAAM,CAAe;IAIrB,IAAI,CAAc;IAIlB,MAAM,CAAS;IAIf,SAAS,CAAO;IAIhB,SAAS,CAAO;IAEhB,YAAY,KAA4B;QACvC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA5BD,kCA4BC;AAxBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;2CACY;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAW,CAAC;8BAClB,kBAAW;yCAAC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2CACJ;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;8CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;8CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare enum PayoutStatus {
2
+ Pending = "PENDING",
3
+ Paid = "PAID"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayoutStatus = void 0;
4
+ var PayoutStatus;
5
+ (function (PayoutStatus) {
6
+ PayoutStatus["Pending"] = "PENDING";
7
+ PayoutStatus["Paid"] = "PAID";
8
+ })(PayoutStatus || (exports.PayoutStatus = PayoutStatus = {}));
9
+ //# sourceMappingURL=payout.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payout.types.js","sourceRoot":"","sources":["../../src/payout/payout.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAGX;AAHD,WAAY,YAAY;IACvB,mCAAmB,CAAA;IACnB,6BAAa,CAAA;AACd,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
@@ -0,0 +1,2 @@
1
+ export * from './plan.enum';
2
+ export * from './plan.model';
@@ -0,0 +1,19 @@
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("./plan.enum"), exports);
18
+ __exportStar(require("./plan.model"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/priceplan/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,+CAA6B"}
@@ -0,0 +1,10 @@
1
+ export declare enum PricePlanRecurringType {
2
+ Monthly = "MONTHLY",
3
+ Yearly = "YEARLY"
4
+ }
5
+ export declare enum PricePlanType {
6
+ Free = "FREE",
7
+ Growth = "GROWTH",
8
+ Business = "BUSINESS",
9
+ Premium = "PREMIUM"
10
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PricePlanType = exports.PricePlanRecurringType = void 0;
4
+ var PricePlanRecurringType;
5
+ (function (PricePlanRecurringType) {
6
+ PricePlanRecurringType["Monthly"] = "MONTHLY";
7
+ PricePlanRecurringType["Yearly"] = "YEARLY";
8
+ })(PricePlanRecurringType || (exports.PricePlanRecurringType = PricePlanRecurringType = {}));
9
+ var PricePlanType;
10
+ (function (PricePlanType) {
11
+ PricePlanType["Free"] = "FREE";
12
+ PricePlanType["Growth"] = "GROWTH";
13
+ PricePlanType["Business"] = "BUSINESS";
14
+ PricePlanType["Premium"] = "PREMIUM";
15
+ })(PricePlanType || (exports.PricePlanType = PricePlanType = {}));
16
+ //# sourceMappingURL=plan.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan.enum.js","sourceRoot":"","sources":["../../src/priceplan/plan.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IACjC,6CAAmB,CAAA;IACnB,2CAAiB,CAAA;AAClB,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACxB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;AACpB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB"}
@@ -0,0 +1,13 @@
1
+ import { PricePlanType } from './plan.enum';
2
+ export declare class PricePlan {
3
+ id: number;
4
+ model: PricePlanType;
5
+ name: string;
6
+ title: string;
7
+ description: string;
8
+ icon: string;
9
+ price: number;
10
+ startCredit: number;
11
+ active: boolean;
12
+ constructor(props?: Partial<PricePlan>);
13
+ }
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PricePlan = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const plan_enum_1 = require("./plan.enum");
15
+ class PricePlan {
16
+ id;
17
+ model;
18
+ name;
19
+ title;
20
+ description;
21
+ icon;
22
+ price;
23
+ startCredit;
24
+ active;
25
+ constructor(props) {
26
+ Object.assign(this, props);
27
+ }
28
+ }
29
+ exports.PricePlan = PricePlan;
30
+ __decorate([
31
+ (0, class_transformer_1.Expose)(),
32
+ (0, class_transformer_1.Type)(() => Number),
33
+ __metadata("design:type", Number)
34
+ ], PricePlan.prototype, "id", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", String)
38
+ ], PricePlan.prototype, "model", void 0);
39
+ __decorate([
40
+ (0, class_transformer_1.Expose)(),
41
+ __metadata("design:type", String)
42
+ ], PricePlan.prototype, "name", void 0);
43
+ __decorate([
44
+ (0, class_transformer_1.Expose)(),
45
+ __metadata("design:type", String)
46
+ ], PricePlan.prototype, "title", void 0);
47
+ __decorate([
48
+ (0, class_transformer_1.Expose)(),
49
+ __metadata("design:type", String)
50
+ ], PricePlan.prototype, "description", void 0);
51
+ __decorate([
52
+ (0, class_transformer_1.Expose)(),
53
+ __metadata("design:type", String)
54
+ ], PricePlan.prototype, "icon", void 0);
55
+ __decorate([
56
+ (0, class_transformer_1.Expose)(),
57
+ (0, class_transformer_1.Type)(() => Number),
58
+ __metadata("design:type", Number)
59
+ ], PricePlan.prototype, "price", void 0);
60
+ __decorate([
61
+ (0, class_transformer_1.Expose)(),
62
+ (0, class_transformer_1.Type)(() => Number),
63
+ __metadata("design:type", Number)
64
+ ], PricePlan.prototype, "startCredit", void 0);
65
+ __decorate([
66
+ (0, class_transformer_1.Expose)(),
67
+ (0, class_transformer_1.Type)(() => Boolean),
68
+ __metadata("design:type", Boolean)
69
+ ], PricePlan.prototype, "active", void 0);
70
+ //# sourceMappingURL=plan.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan.model.js","sourceRoot":"","sources":["../../src/priceplan/plan.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,2CAA4C;AAE5C,MAAa,SAAS;IAIrB,EAAE,CAAS;IAGX,KAAK,CAAgB;IAGrB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,WAAW,CAAS;IAGpB,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,WAAW,CAAS;IAIpB,MAAM,CAAU;IAEhB,YAAY,KAA0B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AApCD,8BAoCC;AAhCA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;wCACY;AAGrB;IADC,IAAA,0BAAM,GAAE;;uCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;wCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;8CACW;AAGpB;IADC,IAAA,0BAAM,GAAE;;uCACI;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACL;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACC;AAIpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;yCACJ"}
@@ -0,0 +1 @@
1
+ export * from './refund.model';
@@ -0,0 +1,18 @@
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("./refund.model"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/refund/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
@@ -0,0 +1,11 @@
1
+ import { User } from "../user";
2
+ import { BankAccount } from "../bank";
3
+ export declare class Refund {
4
+ id: number;
5
+ bank: BankAccount;
6
+ amount: number;
7
+ description: string;
8
+ createdBy: User;
9
+ createdOn: Date;
10
+ constructor(props?: Partial<Refund>);
11
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.Refund = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const user_1 = require("../user");
15
+ const bank_1 = require("../bank");
16
+ class Refund {
17
+ id;
18
+ bank;
19
+ amount;
20
+ description;
21
+ createdBy;
22
+ createdOn;
23
+ constructor(props) {
24
+ Object.assign(this, props);
25
+ }
26
+ }
27
+ exports.Refund = Refund;
28
+ __decorate([
29
+ (0, class_transformer_1.Expose)(),
30
+ (0, class_transformer_1.Type)(() => Number),
31
+ __metadata("design:type", Number)
32
+ ], Refund.prototype, "id", void 0);
33
+ __decorate([
34
+ (0, class_transformer_1.Expose)(),
35
+ (0, class_transformer_1.Type)(() => bank_1.BankAccount),
36
+ __metadata("design:type", bank_1.BankAccount)
37
+ ], Refund.prototype, "bank", void 0);
38
+ __decorate([
39
+ (0, class_transformer_1.Expose)(),
40
+ (0, class_transformer_1.Type)(() => Number),
41
+ __metadata("design:type", Number)
42
+ ], Refund.prototype, "amount", void 0);
43
+ __decorate([
44
+ (0, class_transformer_1.Expose)(),
45
+ __metadata("design:type", String)
46
+ ], Refund.prototype, "description", void 0);
47
+ __decorate([
48
+ (0, class_transformer_1.Expose)(),
49
+ (0, class_transformer_1.Type)(() => user_1.User),
50
+ __metadata("design:type", user_1.User)
51
+ ], Refund.prototype, "createdBy", void 0);
52
+ __decorate([
53
+ (0, class_transformer_1.Expose)(),
54
+ (0, class_transformer_1.Type)(() => Date),
55
+ __metadata("design:type", Date)
56
+ ], Refund.prototype, "createdOn", void 0);
57
+ //# sourceMappingURL=refund.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refund.model.js","sourceRoot":"","sources":["../../src/refund/refund.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,kCAA+B;AAC/B,kCAAsC;AAEtC,MAAa,MAAM;IAIlB,EAAE,CAAS;IAIX,IAAI,CAAc;IAIlB,MAAM,CAAS;IAGf,WAAW,CAAS;IAIpB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAEhB,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA5BD,wBA4BC;AAxBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kCACR;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAW,CAAC;8BAClB,kBAAW;oCAAC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACJ;AAGf;IADC,IAAA,0BAAM,GAAE;;2CACW;AAIpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;yCAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;yCAAC"}
@@ -0,0 +1,8 @@
1
+ export declare enum AccountStatus {
2
+ Invited = "INVITED",
3
+ Pending = "PENDING",
4
+ Active = "ACTIVE",
5
+ Suspended = "SUSPENDED",
6
+ Disabled = "DISABLED",
7
+ Closed = "CLOSED"
8
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AccountStatus = void 0;
4
+ var AccountStatus;
5
+ (function (AccountStatus) {
6
+ AccountStatus["Invited"] = "INVITED";
7
+ AccountStatus["Pending"] = "PENDING";
8
+ AccountStatus["Active"] = "ACTIVE";
9
+ AccountStatus["Suspended"] = "SUSPENDED";
10
+ AccountStatus["Disabled"] = "DISABLED";
11
+ AccountStatus["Closed"] = "CLOSED";
12
+ })(AccountStatus || (exports.AccountStatus = AccountStatus = {}));
13
+ //# sourceMappingURL=account.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.types.js","sourceRoot":"","sources":["../../src/security/account.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAOX;AAPD,WAAY,aAAa;IACrB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;AACrB,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const roles_1 = require("./roles");
3
+ const role_types_1 = require("./role.types");
4
4
  const ACL = {};
5
- ACL[roles_1.Role.Administrator] = [];
5
+ ACL[role_types_1.Role.Administrator] = [];
6
6
  //# sourceMappingURL=acl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"acl.js","sourceRoot":"","sources":["../../src/security/acl.ts"],"names":[],"mappings":";;AAMA,mCAA+B;AAG/B,MAAM,GAAG,GAAoC,EAAE,CAAC;AAEhD,GAAG,CAAC,YAAI,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"acl.js","sourceRoot":"","sources":["../../src/security/acl.ts"],"names":[],"mappings":";;AAMA,6CAAoC;AAGpC,MAAM,GAAG,GAAoC,EAAE,CAAC;AAEhD,GAAG,CAAC,iBAAI,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC"}
@@ -1,4 +1,6 @@
1
+ export * from './account.types';
1
2
  export * from './acl';
2
3
  export * from './permissions';
3
- export * from './roles';
4
- export * from './token.interface';
4
+ export * from './role.types';
5
+ export * from './role.dto';
6
+ export * from './token';
@@ -14,8 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./account.types"), exports);
17
18
  __exportStar(require("./acl"), exports);
18
19
  __exportStar(require("./permissions"), exports);
19
- __exportStar(require("./roles"), exports);
20
- __exportStar(require("./token.interface"), exports);
20
+ __exportStar(require("./role.types"), exports);
21
+ __exportStar(require("./role.dto"), exports);
22
+ __exportStar(require("./token"), exports);
21
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/security/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,gDAA8B;AAC9B,0CAAwB;AACxB,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/security/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,wCAAsB;AACtB,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,0CAAwB"}
@@ -0,0 +1,4 @@
1
+ import { Role } from "./role.types";
2
+ export declare class RoleDto {
3
+ role: Role;
4
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.RoleDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const role_types_1 = require("./role.types");
15
+ class RoleDto {
16
+ role;
17
+ }
18
+ exports.RoleDto = RoleDto;
19
+ __decorate([
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ (0, class_validator_1.IsEnum)(role_types_1.Role),
22
+ __metadata("design:type", String)
23
+ ], RoleDto.prototype, "role", void 0);
24
+ //# sourceMappingURL=role.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role.dto.js","sourceRoot":"","sources":["../../src/security/role.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,6CAAoC;AAGpC,MAAa,OAAO;IAInB,IAAI,CAAM;CACV;AALD,0BAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,iBAAI,CAAC;;qCACH"}
@@ -0,0 +1,9 @@
1
+ export declare enum Role {
2
+ Administrator = "administrator",
3
+ Student = "student",
4
+ CompanyOwner = "company.owner",
5
+ CompanyManager = "company.manager",
6
+ Instructor = "instructor",
7
+ Agent = "agent",
8
+ AgentAgency = "agent.agency"
9
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Role = void 0;
4
+ var Role;
5
+ (function (Role) {
6
+ Role["Administrator"] = "administrator";
7
+ Role["Student"] = "student";
8
+ Role["CompanyOwner"] = "company.owner";
9
+ Role["CompanyManager"] = "company.manager";
10
+ Role["Instructor"] = "instructor";
11
+ Role["Agent"] = "agent";
12
+ Role["AgentAgency"] = "agent.agency";
13
+ })(Role || (exports.Role = Role = {}));
14
+ //# sourceMappingURL=role.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role.types.js","sourceRoot":"","sources":["../../src/security/role.types.ts"],"names":[],"mappings":";;;AAMA,IAAY,IA0CX;AA1CD,WAAY,IAAI;IAKf,uCAA+B,CAAA;IAM/B,2BAAmB,CAAA;IAMnB,sCAA8B,CAAA;IAM9B,0CAAkC,CAAA;IAMlC,iCAAyB,CAAA;IAMzB,uBAAe,CAAA;IAMf,oCAA4B,CAAA;AAC7B,CAAC,EA1CW,IAAI,oBAAJ,IAAI,QA0Cf"}
@@ -0,0 +1,7 @@
1
+ export interface IToken {
2
+ tokenType: string;
3
+ accessToken: string;
4
+ refreshToken: string;
5
+ accessTokenExpires: number;
6
+ refreshTokenExpires: number;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=token.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.js","sourceRoot":"","sources":["../../src/security/token.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './session.model';
@@ -0,0 +1,18 @@
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("./session.model"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/session/course/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
@@ -0,0 +1,7 @@
1
+ import { Appointment } from "../../calendar";
2
+ import { User } from "../../user";
3
+ export declare class CourseSession extends Appointment {
4
+ students: User;
5
+ attended: User;
6
+ constructor(props?: Partial<CourseSession>);
7
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CourseSession = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const calendar_1 = require("../../calendar");
15
+ const user_1 = require("../../user");
16
+ class CourseSession extends calendar_1.Appointment {
17
+ students;
18
+ attended;
19
+ constructor(props) {
20
+ super(props);
21
+ Object.assign(this, props);
22
+ }
23
+ }
24
+ exports.CourseSession = CourseSession;
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ (0, class_transformer_1.Type)(() => user_1.User),
28
+ __metadata("design:type", user_1.User)
29
+ ], CourseSession.prototype, "students", void 0);
30
+ __decorate([
31
+ (0, class_transformer_1.Expose)(),
32
+ (0, class_transformer_1.Type)(() => user_1.User),
33
+ __metadata("design:type", user_1.User)
34
+ ], CourseSession.prototype, "attended", void 0);
35
+ //# sourceMappingURL=session.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.model.js","sourceRoot":"","sources":["../../../src/session/course/session.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,6CAA6C;AAC7C,qCAAkC;AAElC,MAAa,aAAc,SAAQ,sBAAW;IAI7C,QAAQ,CAAO;IAIf,QAAQ,CAAO;IAEf,YAAY,KAA8B;QACzC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAdD,sCAcC;AAVA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACP,WAAI;+CAAC;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACP,WAAI;+CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './session.model';
2
+ export * from './session.skill';
3
+ export * from './session.topic';
@@ -0,0 +1,20 @@
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("./session.model"), exports);
18
+ __exportStar(require("./session.skill"), exports);
19
+ __exportStar(require("./session.topic"), exports);
20
+ //# sourceMappingURL=index.js.map