@servicelabsco/nestjs-utility-services 1.2.1 → 1.2.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 (1382) hide show
  1. package/dist/app.controller.d.ts +15 -0
  2. package/dist/app.controller.js +87 -0
  3. package/dist/app.controller.js.map +1 -0
  4. package/dist/app.module.d.ts +4 -0
  5. package/dist/app.module.js +66 -0
  6. package/dist/app.module.js.map +1 -0
  7. package/dist/app.service.d.ts +13 -0
  8. package/dist/app.service.js +50 -0
  9. package/dist/app.service.js.map +1 -0
  10. package/dist/auth/auth.module.d.ts +2 -0
  11. package/dist/auth/auth.module.js +26 -0
  12. package/dist/auth/auth.module.js.map +1 -0
  13. package/dist/auth/controllers/admin.auth.controller.d.ts +19 -0
  14. package/dist/auth/controllers/admin.auth.controller.js +150 -0
  15. package/dist/auth/controllers/admin.auth.controller.js.map +1 -0
  16. package/dist/auth/controllers/index.d.ts +3 -0
  17. package/dist/auth/controllers/index.js +20 -0
  18. package/dist/auth/controllers/index.js.map +1 -0
  19. package/dist/auth/controllers/social.controller.d.ts +10 -0
  20. package/dist/auth/controllers/social.controller.js +55 -0
  21. package/dist/auth/controllers/social.controller.js.map +1 -0
  22. package/dist/auth/controllers/user.controller.d.ts +11 -0
  23. package/dist/auth/controllers/user.controller.js +46 -0
  24. package/dist/auth/controllers/user.controller.js.map +1 -0
  25. package/dist/auth/dtos/create.user.dto.d.ts +5 -0
  26. package/dist/auth/dtos/create.user.dto.js +29 -0
  27. package/dist/auth/dtos/create.user.dto.js.map +1 -0
  28. package/dist/auth/dtos/index.d.ts +8 -0
  29. package/dist/auth/dtos/index.js +25 -0
  30. package/dist/auth/dtos/index.js.map +1 -0
  31. package/dist/auth/dtos/offline.user.dto.d.ts +5 -0
  32. package/dist/auth/dtos/offline.user.dto.js +29 -0
  33. package/dist/auth/dtos/offline.user.dto.js.map +1 -0
  34. package/dist/auth/dtos/permission.assignment.dto.d.ts +3 -0
  35. package/dist/auth/dtos/permission.assignment.dto.js +21 -0
  36. package/dist/auth/dtos/permission.assignment.dto.js.map +1 -0
  37. package/dist/auth/dtos/role.assignment.dto.d.ts +3 -0
  38. package/dist/auth/dtos/role.assignment.dto.js +21 -0
  39. package/dist/auth/dtos/role.assignment.dto.js.map +1 -0
  40. package/dist/auth/dtos/update.user.dto.d.ts +4 -0
  41. package/dist/auth/dtos/update.user.dto.js +26 -0
  42. package/dist/auth/dtos/update.user.dto.js.map +1 -0
  43. package/dist/auth/dtos/user.access.dto.d.ts +13 -0
  44. package/dist/auth/dtos/user.access.dto.js +8 -0
  45. package/dist/auth/dtos/user.access.dto.js.map +1 -0
  46. package/dist/auth/dtos/user.login.dto.d.ts +4 -0
  47. package/dist/auth/dtos/user.login.dto.js +25 -0
  48. package/dist/auth/dtos/user.login.dto.js.map +1 -0
  49. package/dist/auth/dtos/user.roles.access.object.dto.d.ts +6 -0
  50. package/dist/auth/dtos/user.roles.access.object.dto.js +7 -0
  51. package/dist/auth/dtos/user.roles.access.object.dto.js.map +1 -0
  52. package/dist/auth/entities/country.entity.d.ts +10 -0
  53. package/dist/auth/entities/country.entity.js +56 -0
  54. package/dist/auth/entities/country.entity.js.map +1 -0
  55. package/dist/auth/entities/creator.entity.d.ts +9 -0
  56. package/dist/auth/entities/creator.entity.js +44 -0
  57. package/dist/auth/entities/creator.entity.js.map +1 -0
  58. package/dist/auth/entities/device.token.entity.d.ts +17 -0
  59. package/dist/auth/entities/device.token.entity.js +79 -0
  60. package/dist/auth/entities/device.token.entity.js.map +1 -0
  61. package/dist/auth/entities/index.d.ts +6 -0
  62. package/dist/auth/entities/index.js +23 -0
  63. package/dist/auth/entities/index.js.map +1 -0
  64. package/dist/auth/entities/refresh.token.entity.d.ts +14 -0
  65. package/dist/auth/entities/refresh.token.entity.js +62 -0
  66. package/dist/auth/entities/refresh.token.entity.js.map +1 -0
  67. package/dist/auth/entities/user.entity.d.ts +27 -0
  68. package/dist/auth/entities/user.entity.js +116 -0
  69. package/dist/auth/entities/user.entity.js.map +1 -0
  70. package/dist/auth/entities/user.referral.entity.d.ts +11 -0
  71. package/dist/auth/entities/user.referral.entity.js +52 -0
  72. package/dist/auth/entities/user.referral.entity.js.map +1 -0
  73. package/dist/auth/es6.classes.d.ts +34 -0
  74. package/dist/auth/es6.classes.js +48 -0
  75. package/dist/auth/es6.classes.js.map +1 -0
  76. package/dist/auth/index.d.ts +6 -0
  77. package/dist/auth/index.js +23 -0
  78. package/dist/auth/index.js.map +1 -0
  79. package/dist/auth/middlewares/basic.auth.middleware.d.ts +10 -0
  80. package/dist/auth/middlewares/basic.auth.middleware.js +43 -0
  81. package/dist/auth/middlewares/basic.auth.middleware.js.map +1 -0
  82. package/dist/auth/middlewares/index.d.ts +4 -0
  83. package/dist/auth/middlewares/index.js +21 -0
  84. package/dist/auth/middlewares/index.js.map +1 -0
  85. package/dist/auth/middlewares/internal.middleware.d.ts +10 -0
  86. package/dist/auth/middlewares/internal.middleware.js +44 -0
  87. package/dist/auth/middlewares/internal.middleware.js.map +1 -0
  88. package/dist/auth/middlewares/jwt.middleware.d.ts +9 -0
  89. package/dist/auth/middlewares/jwt.middleware.js +54 -0
  90. package/dist/auth/middlewares/jwt.middleware.js.map +1 -0
  91. package/dist/auth/middlewares/restricted.middleware.d.ts +4 -0
  92. package/dist/auth/middlewares/restricted.middleware.js +25 -0
  93. package/dist/auth/middlewares/restricted.middleware.js.map +1 -0
  94. package/dist/auth/services/access.manager.d.ts +15 -0
  95. package/dist/auth/services/access.manager.js +127 -0
  96. package/dist/auth/services/access.manager.js.map +1 -0
  97. package/dist/auth/services/auth.service.d.ts +18 -0
  98. package/dist/auth/services/auth.service.js +78 -0
  99. package/dist/auth/services/auth.service.js.map +1 -0
  100. package/dist/auth/services/device.token.service.d.ts +6 -0
  101. package/dist/auth/services/device.token.service.js +62 -0
  102. package/dist/auth/services/device.token.service.js.map +1 -0
  103. package/dist/auth/services/es6.service.d.ts +20 -0
  104. package/dist/auth/services/es6.service.js +63 -0
  105. package/dist/auth/services/es6.service.js.map +1 -0
  106. package/dist/auth/services/index.d.ts +6 -0
  107. package/dist/auth/services/index.js +23 -0
  108. package/dist/auth/services/index.js.map +1 -0
  109. package/dist/auth/services/refresh.token.service.d.ts +9 -0
  110. package/dist/auth/services/refresh.token.service.js +47 -0
  111. package/dist/auth/services/refresh.token.service.js.map +1 -0
  112. package/dist/auth/services/social.service.d.ts +7 -0
  113. package/dist/auth/services/social.service.js +48 -0
  114. package/dist/auth/services/social.service.js.map +1 -0
  115. package/dist/auth/services/user.service.d.ts +15 -0
  116. package/dist/auth/services/user.service.js +84 -0
  117. package/dist/auth/services/user.service.js.map +1 -0
  118. package/dist/cli.d.ts +1 -0
  119. package/dist/cli.js +21 -0
  120. package/dist/cli.js.map +1 -0
  121. package/dist/common/adapters/index.d.ts +1 -0
  122. package/dist/common/adapters/index.js +18 -0
  123. package/dist/common/adapters/index.js.map +1 -0
  124. package/dist/common/adapters/redis.io.adapter.d.ts +8 -0
  125. package/dist/common/adapters/redis.io.adapter.js +24 -0
  126. package/dist/common/adapters/redis.io.adapter.js.map +1 -0
  127. package/dist/common/common.module.d.ts +2 -0
  128. package/dist/common/common.module.js +17 -0
  129. package/dist/common/common.module.js.map +1 -0
  130. package/dist/common/dtos/aggregation.param.dto.d.ts +5 -0
  131. package/dist/common/dtos/aggregation.param.dto.js +29 -0
  132. package/dist/common/dtos/aggregation.param.dto.js.map +1 -0
  133. package/dist/common/dtos/capture.record.index.dto.d.ts +16 -0
  134. package/dist/common/dtos/capture.record.index.dto.js +55 -0
  135. package/dist/common/dtos/capture.record.index.dto.js.map +1 -0
  136. package/dist/common/dtos/capture.record.show.dto.d.ts +10 -0
  137. package/dist/common/dtos/capture.record.show.dto.js +41 -0
  138. package/dist/common/dtos/capture.record.show.dto.js.map +1 -0
  139. package/dist/common/dtos/database.event.dto.d.ts +9 -0
  140. package/dist/common/dtos/database.event.dto.js +7 -0
  141. package/dist/common/dtos/database.event.dto.js.map +1 -0
  142. package/dist/common/dtos/foreign.migration.dto.d.ts +6 -0
  143. package/dist/common/dtos/foreign.migration.dto.js +7 -0
  144. package/dist/common/dtos/foreign.migration.dto.js.map +1 -0
  145. package/dist/common/dtos/generic.index.param.dto.d.ts +22 -0
  146. package/dist/common/dtos/generic.index.param.dto.js +58 -0
  147. package/dist/common/dtos/generic.index.param.dto.js.map +1 -0
  148. package/dist/common/dtos/generic.show.param.dto.d.ts +7 -0
  149. package/dist/common/dtos/generic.show.param.dto.js +7 -0
  150. package/dist/common/dtos/generic.show.param.dto.js.map +1 -0
  151. package/dist/common/dtos/group.param.dto.d.ts +5 -0
  152. package/dist/common/dtos/group.param.dto.js +25 -0
  153. package/dist/common/dtos/group.param.dto.js.map +1 -0
  154. package/dist/common/dtos/index.column.dto.d.ts +4 -0
  155. package/dist/common/dtos/index.column.dto.js +7 -0
  156. package/dist/common/dtos/index.column.dto.js.map +1 -0
  157. package/dist/common/dtos/index.d.ts +18 -0
  158. package/dist/common/dtos/index.js +35 -0
  159. package/dist/common/dtos/index.js.map +1 -0
  160. package/dist/common/dtos/index.params.dto.d.ts +18 -0
  161. package/dist/common/dtos/index.params.dto.js +83 -0
  162. package/dist/common/dtos/index.params.dto.js.map +1 -0
  163. package/dist/common/dtos/key.value.param.dto.d.ts +4 -0
  164. package/dist/common/dtos/key.value.param.dto.js +25 -0
  165. package/dist/common/dtos/key.value.param.dto.js.map +1 -0
  166. package/dist/common/dtos/layout.column.db.dto.d.ts +4 -0
  167. package/dist/common/dtos/layout.column.db.dto.js +7 -0
  168. package/dist/common/dtos/layout.column.db.dto.js.map +1 -0
  169. package/dist/common/dtos/meta.data.dto.d.ts +4 -0
  170. package/dist/common/dtos/meta.data.dto.js +7 -0
  171. package/dist/common/dtos/meta.data.dto.js.map +1 -0
  172. package/dist/common/dtos/record.data.manager.dto.d.ts +33 -0
  173. package/dist/common/dtos/record.data.manager.dto.js +7 -0
  174. package/dist/common/dtos/record.data.manager.dto.js.map +1 -0
  175. package/dist/common/dtos/record.tab.dto.d.ts +19 -0
  176. package/dist/common/dtos/record.tab.dto.js +7 -0
  177. package/dist/common/dtos/record.tab.dto.js.map +1 -0
  178. package/dist/common/dtos/rename.column.dto.d.ts +4 -0
  179. package/dist/common/dtos/rename.column.dto.js +7 -0
  180. package/dist/common/dtos/rename.column.dto.js.map +1 -0
  181. package/dist/common/dtos/report.body.dto.d.ts +20 -0
  182. package/dist/common/dtos/report.body.dto.js +57 -0
  183. package/dist/common/dtos/report.body.dto.js.map +1 -0
  184. package/dist/common/dtos/report.data.manager.dto.d.ts +34 -0
  185. package/dist/common/dtos/report.data.manager.dto.js +7 -0
  186. package/dist/common/dtos/report.data.manager.dto.js.map +1 -0
  187. package/dist/common/es6.classes.d.ts +38 -0
  188. package/dist/common/es6.classes.js +107 -0
  189. package/dist/common/es6.classes.js.map +1 -0
  190. package/dist/common/exceptions/access.exception.d.ts +4 -0
  191. package/dist/common/exceptions/access.exception.js +11 -0
  192. package/dist/common/exceptions/access.exception.js.map +1 -0
  193. package/dist/common/exceptions/form.exception.d.ts +7 -0
  194. package/dist/common/exceptions/form.exception.js +13 -0
  195. package/dist/common/exceptions/form.exception.js.map +1 -0
  196. package/dist/common/exceptions/index.d.ts +6 -0
  197. package/dist/common/exceptions/index.js +23 -0
  198. package/dist/common/exceptions/index.js.map +1 -0
  199. package/dist/common/exceptions/maintenance.exception.d.ts +4 -0
  200. package/dist/common/exceptions/maintenance.exception.js +11 -0
  201. package/dist/common/exceptions/maintenance.exception.js.map +1 -0
  202. package/dist/common/exceptions/no.logged.user.exception.d.ts +4 -0
  203. package/dist/common/exceptions/no.logged.user.exception.js +11 -0
  204. package/dist/common/exceptions/no.logged.user.exception.js.map +1 -0
  205. package/dist/common/exceptions/operation.exception.d.ts +4 -0
  206. package/dist/common/exceptions/operation.exception.js +13 -0
  207. package/dist/common/exceptions/operation.exception.js.map +1 -0
  208. package/dist/common/exceptions/subscription.exception.d.ts +4 -0
  209. package/dist/common/exceptions/subscription.exception.js +11 -0
  210. package/dist/common/exceptions/subscription.exception.js.map +1 -0
  211. package/dist/common/index.d.ts +5 -0
  212. package/dist/common/index.js +22 -0
  213. package/dist/common/index.js.map +1 -0
  214. package/dist/common/libraries/auth.d.ts +7 -0
  215. package/dist/common/libraries/auth.js +22 -0
  216. package/dist/common/libraries/auth.js.map +1 -0
  217. package/dist/common/libraries/base.job.interface.d.ts +4 -0
  218. package/dist/common/libraries/base.job.interface.js +3 -0
  219. package/dist/common/libraries/base.job.interface.js.map +1 -0
  220. package/dist/common/libraries/base.migration.utility.d.ts +58 -0
  221. package/dist/common/libraries/base.migration.utility.js +333 -0
  222. package/dist/common/libraries/base.migration.utility.js.map +1 -0
  223. package/dist/common/libraries/class.mapper.d.ts +8 -0
  224. package/dist/common/libraries/class.mapper.js +65 -0
  225. package/dist/common/libraries/class.mapper.js.map +1 -0
  226. package/dist/common/libraries/common.consumer.d.ts +2 -0
  227. package/dist/common/libraries/common.consumer.js +7 -0
  228. package/dist/common/libraries/common.consumer.js.map +1 -0
  229. package/dist/common/libraries/common.entity.d.ts +22 -0
  230. package/dist/common/libraries/common.entity.js +120 -0
  231. package/dist/common/libraries/common.entity.js.map +1 -0
  232. package/dist/common/libraries/common.job.d.ts +22 -0
  233. package/dist/common/libraries/common.job.js +66 -0
  234. package/dist/common/libraries/common.job.js.map +1 -0
  235. package/dist/common/libraries/common.mapper.job.d.ts +8 -0
  236. package/dist/common/libraries/common.mapper.job.js +36 -0
  237. package/dist/common/libraries/common.mapper.job.js.map +1 -0
  238. package/dist/common/libraries/common.mongo.entity.d.ts +20 -0
  239. package/dist/common/libraries/common.mongo.entity.js +120 -0
  240. package/dist/common/libraries/common.mongo.entity.js.map +1 -0
  241. package/dist/common/libraries/common.subscriber.d.ts +13 -0
  242. package/dist/common/libraries/common.subscriber.js +60 -0
  243. package/dist/common/libraries/common.subscriber.js.map +1 -0
  244. package/dist/common/libraries/custom.crypt.d.ts +6 -0
  245. package/dist/common/libraries/custom.crypt.js +30 -0
  246. package/dist/common/libraries/custom.crypt.js.map +1 -0
  247. package/dist/common/libraries/data.manager.d.ts +33 -0
  248. package/dist/common/libraries/data.manager.js +211 -0
  249. package/dist/common/libraries/data.manager.js.map +1 -0
  250. package/dist/common/libraries/database.event.evaluator.d.ts +11 -0
  251. package/dist/common/libraries/database.event.evaluator.js +40 -0
  252. package/dist/common/libraries/database.event.evaluator.js.map +1 -0
  253. package/dist/common/libraries/date.util.d.ts +15 -0
  254. package/dist/common/libraries/date.util.js +51 -0
  255. package/dist/common/libraries/date.util.js.map +1 -0
  256. package/dist/common/libraries/entity.evaluator.d.ts +28 -0
  257. package/dist/common/libraries/entity.evaluator.js +127 -0
  258. package/dist/common/libraries/entity.evaluator.js.map +1 -0
  259. package/dist/common/libraries/generic.index.parser.d.ts +18 -0
  260. package/dist/common/libraries/generic.index.parser.js +82 -0
  261. package/dist/common/libraries/generic.index.parser.js.map +1 -0
  262. package/dist/common/libraries/generic.show.parser.d.ts +12 -0
  263. package/dist/common/libraries/generic.show.parser.js +41 -0
  264. package/dist/common/libraries/generic.show.parser.js.map +1 -0
  265. package/dist/common/libraries/hash.d.ts +7 -0
  266. package/dist/common/libraries/hash.js +25 -0
  267. package/dist/common/libraries/hash.js.map +1 -0
  268. package/dist/common/libraries/index.d.ts +27 -0
  269. package/dist/common/libraries/index.js +44 -0
  270. package/dist/common/libraries/index.js.map +1 -0
  271. package/dist/common/libraries/list.manager.d.ts +23 -0
  272. package/dist/common/libraries/list.manager.js +101 -0
  273. package/dist/common/libraries/list.manager.js.map +1 -0
  274. package/dist/common/libraries/migration.utility.d.ts +7 -0
  275. package/dist/common/libraries/migration.utility.js +23 -0
  276. package/dist/common/libraries/migration.utility.js.map +1 -0
  277. package/dist/common/libraries/platform.utility.d.ts +33 -0
  278. package/dist/common/libraries/platform.utility.js +126 -0
  279. package/dist/common/libraries/platform.utility.js.map +1 -0
  280. package/dist/common/libraries/record.manager.d.ts +41 -0
  281. package/dist/common/libraries/record.manager.js +146 -0
  282. package/dist/common/libraries/record.manager.js.map +1 -0
  283. package/dist/common/libraries/report.body.parser.d.ts +6 -0
  284. package/dist/common/libraries/report.body.parser.js +21 -0
  285. package/dist/common/libraries/report.body.parser.js.map +1 -0
  286. package/dist/common/libraries/report.data.manager.d.ts +35 -0
  287. package/dist/common/libraries/report.data.manager.js +212 -0
  288. package/dist/common/libraries/report.data.manager.js.map +1 -0
  289. package/dist/common/libraries/report.list.manager.d.ts +22 -0
  290. package/dist/common/libraries/report.list.manager.js +109 -0
  291. package/dist/common/libraries/report.list.manager.js.map +1 -0
  292. package/dist/common/libraries/reverse.migration.utility.d.ts +7 -0
  293. package/dist/common/libraries/reverse.migration.utility.js +17 -0
  294. package/dist/common/libraries/reverse.migration.utility.js.map +1 -0
  295. package/dist/common/libraries/seeder.utility.d.ts +20 -0
  296. package/dist/common/libraries/seeder.utility.js +99 -0
  297. package/dist/common/libraries/seeder.utility.js.map +1 -0
  298. package/dist/config/cache.config.d.ts +10 -0
  299. package/dist/config/cache.config.js +13 -0
  300. package/dist/config/cache.config.js.map +1 -0
  301. package/dist/config/cors.config.d.ts +7 -0
  302. package/dist/config/cors.config.js +9 -0
  303. package/dist/config/cors.config.js.map +1 -0
  304. package/dist/config/entity.constants.d.ts +141 -0
  305. package/dist/config/entity.constants.js +143 -0
  306. package/dist/config/entity.constants.js.map +1 -0
  307. package/dist/config/jwt.config.d.ts +4 -0
  308. package/dist/config/jwt.config.js +12 -0
  309. package/dist/config/jwt.config.js.map +1 -0
  310. package/dist/config/mongo.config.d.ts +4 -0
  311. package/dist/config/mongo.config.js +24 -0
  312. package/dist/config/mongo.config.js.map +1 -0
  313. package/dist/config/orm.config.d.ts +3 -0
  314. package/dist/config/orm.config.js +28 -0
  315. package/dist/config/orm.config.js.map +1 -0
  316. package/dist/config/platform.constants.d.ts +10 -0
  317. package/dist/config/platform.constants.js +14 -0
  318. package/dist/config/platform.constants.js.map +1 -0
  319. package/dist/config/queue.config.d.ts +4 -0
  320. package/dist/config/queue.config.js +18 -0
  321. package/dist/config/queue.config.js.map +1 -0
  322. package/dist/config/rate.limiter.config.d.ts +6 -0
  323. package/dist/config/rate.limiter.config.js +8 -0
  324. package/dist/config/rate.limiter.config.js.map +1 -0
  325. package/dist/config/read.typeorm.config.d.ts +4 -0
  326. package/dist/config/read.typeorm.config.js +25 -0
  327. package/dist/config/read.typeorm.config.js.map +1 -0
  328. package/dist/config/role.mapping.d.ts +6 -0
  329. package/dist/config/role.mapping.js +8 -0
  330. package/dist/config/role.mapping.js.map +1 -0
  331. package/dist/config/source.hash.d.ts +14 -0
  332. package/dist/config/source.hash.js +16 -0
  333. package/dist/config/source.hash.js.map +1 -0
  334. package/dist/config/typeorm.config.d.ts +3 -0
  335. package/dist/config/typeorm.config.js +33 -0
  336. package/dist/config/typeorm.config.js.map +1 -0
  337. package/dist/console.d.ts +1 -0
  338. package/dist/console.js +19 -0
  339. package/dist/console.js.map +1 -0
  340. package/dist/health.check.controller.d.ts +9 -0
  341. package/dist/health.check.controller.js +45 -0
  342. package/dist/health.check.controller.js.map +1 -0
  343. package/dist/index.d.ts +6 -0
  344. package/dist/index.js +23 -0
  345. package/dist/index.js.map +1 -0
  346. package/dist/main.d.ts +1 -0
  347. package/dist/main.js +35 -0
  348. package/dist/main.js.map +1 -0
  349. package/dist/migrations/1580011348975-SysUsersTable.ts.d.ts +5 -0
  350. package/dist/migrations/1580011348975-SysUsersTable.ts.js +28 -0
  351. package/dist/migrations/1580011348975-SysUsersTable.ts.js.map +1 -0
  352. package/dist/migrations/1580012157523-SysRolesTable.ts.d.ts +5 -0
  353. package/dist/migrations/1580012157523-SysRolesTable.ts.js +21 -0
  354. package/dist/migrations/1580012157523-SysRolesTable.ts.js.map +1 -0
  355. package/dist/migrations/1580012268960-SysPermissionsTable.ts.d.ts +5 -0
  356. package/dist/migrations/1580012268960-SysPermissionsTable.ts.js +20 -0
  357. package/dist/migrations/1580012268960-SysPermissionsTable.ts.js.map +1 -0
  358. package/dist/migrations/1580012428385-SysPropertiesTable.ts.d.ts +5 -0
  359. package/dist/migrations/1580012428385-SysPropertiesTable.ts.js +21 -0
  360. package/dist/migrations/1580012428385-SysPropertiesTable.ts.js.map +1 -0
  361. package/dist/migrations/1580012617487-SysOpenPropertiesTable.ts.d.ts +5 -0
  362. package/dist/migrations/1580012617487-SysOpenPropertiesTable.ts.js +20 -0
  363. package/dist/migrations/1580012617487-SysOpenPropertiesTable.ts.js.map +1 -0
  364. package/dist/migrations/1580012802170-SysLookupTypesTable.ts.d.ts +5 -0
  365. package/dist/migrations/1580012802170-SysLookupTypesTable.ts.js +19 -0
  366. package/dist/migrations/1580012802170-SysLookupTypesTable.ts.js.map +1 -0
  367. package/dist/migrations/1580012876576-SysLookupValuesTable.ts.d.ts +5 -0
  368. package/dist/migrations/1580012876576-SysLookupValuesTable.ts.js +24 -0
  369. package/dist/migrations/1580012876576-SysLookupValuesTable.ts.js.map +1 -0
  370. package/dist/migrations/1580013243446-SysSystemScriptsTable.ts.d.ts +5 -0
  371. package/dist/migrations/1580013243446-SysSystemScriptsTable.ts.js +21 -0
  372. package/dist/migrations/1580013243446-SysSystemScriptsTable.ts.js.map +1 -0
  373. package/dist/migrations/1580013426935-SysUserGroupsTable.ts.d.ts +5 -0
  374. package/dist/migrations/1580013426935-SysUserGroupsTable.ts.js +20 -0
  375. package/dist/migrations/1580013426935-SysUserGroupsTable.ts.js.map +1 -0
  376. package/dist/migrations/1580013438750-SysUserGroupMembersTable.ts.d.ts +5 -0
  377. package/dist/migrations/1580013438750-SysUserGroupMembersTable.ts.js +22 -0
  378. package/dist/migrations/1580013438750-SysUserGroupMembersTable.ts.js.map +1 -0
  379. package/dist/migrations/1580013583515-SysColumnDefinitionsTable.ts.d.ts +5 -0
  380. package/dist/migrations/1580013583515-SysColumnDefinitionsTable.ts.js +20 -0
  381. package/dist/migrations/1580013583515-SysColumnDefinitionsTable.ts.js.map +1 -0
  382. package/dist/migrations/1580013737722-SysModelDetailsTable.ts.d.ts +5 -0
  383. package/dist/migrations/1580013737722-SysModelDetailsTable.ts.js +25 -0
  384. package/dist/migrations/1580013737722-SysModelDetailsTable.ts.js.map +1 -0
  385. package/dist/migrations/1580032909794-SysColumnDetailsTable.ts.d.ts +5 -0
  386. package/dist/migrations/1580032909794-SysColumnDetailsTable.ts.js +34 -0
  387. package/dist/migrations/1580032909794-SysColumnDetailsTable.ts.js.map +1 -0
  388. package/dist/migrations/1580033076554-SysModelColumnsTable.ts.d.ts +5 -0
  389. package/dist/migrations/1580033076554-SysModelColumnsTable.ts.js +19 -0
  390. package/dist/migrations/1580033076554-SysModelColumnsTable.ts.js.map +1 -0
  391. package/dist/migrations/1580033241460-SysModelRelationshipsTable.ts.d.ts +5 -0
  392. package/dist/migrations/1580033241460-SysModelRelationshipsTable.ts.js +39 -0
  393. package/dist/migrations/1580033241460-SysModelRelationshipsTable.ts.js.map +1 -0
  394. package/dist/migrations/1580033439057-SysPageDefinitionsTable.ts.d.ts +5 -0
  395. package/dist/migrations/1580033439057-SysPageDefinitionsTable.ts.js +20 -0
  396. package/dist/migrations/1580033439057-SysPageDefinitionsTable.ts.js.map +1 -0
  397. package/dist/migrations/1580033536134-SysModuleDetailsTable.ts.d.ts +5 -0
  398. package/dist/migrations/1580033536134-SysModuleDetailsTable.ts.js +21 -0
  399. package/dist/migrations/1580033536134-SysModuleDetailsTable.ts.js.map +1 -0
  400. package/dist/migrations/1580033654069-SysMenuDetailsTable.ts.d.ts +5 -0
  401. package/dist/migrations/1580033654069-SysMenuDetailsTable.ts.js +28 -0
  402. package/dist/migrations/1580033654069-SysMenuDetailsTable.ts.js.map +1 -0
  403. package/dist/migrations/1580034121887-SysModuleMenusTable.ts.d.ts +5 -0
  404. package/dist/migrations/1580034121887-SysModuleMenusTable.ts.js +20 -0
  405. package/dist/migrations/1580034121887-SysModuleMenusTable.ts.js.map +1 -0
  406. package/dist/migrations/1580034434762-SysParentMenusTable.ts.d.ts +5 -0
  407. package/dist/migrations/1580034434762-SysParentMenusTable.ts.js +22 -0
  408. package/dist/migrations/1580034434762-SysParentMenusTable.ts.js.map +1 -0
  409. package/dist/migrations/1580034626349-SysUserPreferencesTable.ts.d.ts +5 -0
  410. package/dist/migrations/1580034626349-SysUserPreferencesTable.ts.js +20 -0
  411. package/dist/migrations/1580034626349-SysUserPreferencesTable.ts.js.map +1 -0
  412. package/dist/migrations/1580034717318-SysFormDetailsTable.ts.d.ts +5 -0
  413. package/dist/migrations/1580034717318-SysFormDetailsTable.ts.js +23 -0
  414. package/dist/migrations/1580034717318-SysFormDetailsTable.ts.js.map +1 -0
  415. package/dist/migrations/1580034866284-SysFormColumnsTable.ts.d.ts +5 -0
  416. package/dist/migrations/1580034866284-SysFormColumnsTable.ts.js +19 -0
  417. package/dist/migrations/1580034866284-SysFormColumnsTable.ts.js.map +1 -0
  418. package/dist/migrations/1580034927543-SysBusinessRulesTable.ts.d.ts +5 -0
  419. package/dist/migrations/1580034927543-SysBusinessRulesTable.ts.js +35 -0
  420. package/dist/migrations/1580034927543-SysBusinessRulesTable.ts.js.map +1 -0
  421. package/dist/migrations/1580035169090-SysFormPreferencesTable.ts.d.ts +5 -0
  422. package/dist/migrations/1580035169090-SysFormPreferencesTable.ts.js +20 -0
  423. package/dist/migrations/1580035169090-SysFormPreferencesTable.ts.js.map +1 -0
  424. package/dist/migrations/1580035241990-SysListPreferencesTable.ts.d.ts +5 -0
  425. package/dist/migrations/1580035241990-SysListPreferencesTable.ts.js +22 -0
  426. package/dist/migrations/1580035241990-SysListPreferencesTable.ts.js.map +1 -0
  427. package/dist/migrations/1580035351803-SysSecurityRulesTable.ts.d.ts +5 -0
  428. package/dist/migrations/1580035351803-SysSecurityRulesTable.ts.js +27 -0
  429. package/dist/migrations/1580035351803-SysSecurityRulesTable.ts.js.map +1 -0
  430. package/dist/migrations/1580035532119-SysUiActionsTable.ts.d.ts +5 -0
  431. package/dist/migrations/1580035532119-SysUiActionsTable.ts.js +38 -0
  432. package/dist/migrations/1580035532119-SysUiActionsTable.ts.js.map +1 -0
  433. package/dist/migrations/1580035823624-SysDeviceTokensTable.ts.d.ts +5 -0
  434. package/dist/migrations/1580035823624-SysDeviceTokensTable.ts.js +27 -0
  435. package/dist/migrations/1580035823624-SysDeviceTokensTable.ts.js.map +1 -0
  436. package/dist/migrations/1580036042576-SysCountriesTable.ts.d.ts +5 -0
  437. package/dist/migrations/1580036042576-SysCountriesTable.ts.js +22 -0
  438. package/dist/migrations/1580036042576-SysCountriesTable.ts.js.map +1 -0
  439. package/dist/migrations/1580036055684-SysRefreshTokensTable.ts.d.ts +5 -0
  440. package/dist/migrations/1580036055684-SysRefreshTokensTable.ts.js +22 -0
  441. package/dist/migrations/1580036055684-SysRefreshTokensTable.ts.js.map +1 -0
  442. package/dist/migrations/1580036754269-SysUserRolesTable.ts.d.ts +5 -0
  443. package/dist/migrations/1580036754269-SysUserRolesTable.ts.js +19 -0
  444. package/dist/migrations/1580036754269-SysUserRolesTable.ts.js.map +1 -0
  445. package/dist/migrations/1580036787378-SysMenuRolesTable.ts.d.ts +5 -0
  446. package/dist/migrations/1580036787378-SysMenuRolesTable.ts.js +19 -0
  447. package/dist/migrations/1580036787378-SysMenuRolesTable.ts.js.map +1 -0
  448. package/dist/migrations/1580036809003-SysModelRolesTable.ts.d.ts +5 -0
  449. package/dist/migrations/1580036809003-SysModelRolesTable.ts.js +20 -0
  450. package/dist/migrations/1580036809003-SysModelRolesTable.ts.js.map +1 -0
  451. package/dist/migrations/1580037052174-SysUiActionRolesTable.ts.d.ts +5 -0
  452. package/dist/migrations/1580037052174-SysUiActionRolesTable.ts.js +19 -0
  453. package/dist/migrations/1580037052174-SysUiActionRolesTable.ts.js.map +1 -0
  454. package/dist/migrations/1580037081670-SysUserGroupRolesTable.ts.d.ts +5 -0
  455. package/dist/migrations/1580037081670-SysUserGroupRolesTable.ts.js +22 -0
  456. package/dist/migrations/1580037081670-SysUserGroupRolesTable.ts.js.map +1 -0
  457. package/dist/migrations/1580037119302-SysUserPermissionsTable.ts.d.ts +5 -0
  458. package/dist/migrations/1580037119302-SysUserPermissionsTable.ts.js +22 -0
  459. package/dist/migrations/1580037119302-SysUserPermissionsTable.ts.js.map +1 -0
  460. package/dist/migrations/1598275443562-CreateDocumentTable.d.ts +5 -0
  461. package/dist/migrations/1598275443562-CreateDocumentTable.js +20 -0
  462. package/dist/migrations/1598275443562-CreateDocumentTable.js.map +1 -0
  463. package/dist/migrations/1598276044380-CreateCommentTable.d.ts +5 -0
  464. package/dist/migrations/1598276044380-CreateCommentTable.js +19 -0
  465. package/dist/migrations/1598276044380-CreateCommentTable.js.map +1 -0
  466. package/dist/migrations/1599034575440-AddTimezoneOffsetSysCountriesTable.ts.d.ts +5 -0
  467. package/dist/migrations/1599034575440-AddTimezoneOffsetSysCountriesTable.ts.js +20 -0
  468. package/dist/migrations/1599034575440-AddTimezoneOffsetSysCountriesTable.ts.js.map +1 -0
  469. package/dist/migrations/1599567001962-AddUserSequence.d.ts +5 -0
  470. package/dist/migrations/1599567001962-AddUserSequence.js +12 -0
  471. package/dist/migrations/1599567001962-AddUserSequence.js.map +1 -0
  472. package/dist/migrations/1600155092754-CreateEventDetailTable.d.ts +5 -0
  473. package/dist/migrations/1600155092754-CreateEventDetailTable.js +20 -0
  474. package/dist/migrations/1600155092754-CreateEventDetailTable.js.map +1 -0
  475. package/dist/migrations/1600155436756-CreateEventQueueTable.d.ts +5 -0
  476. package/dist/migrations/1600155436756-CreateEventQueueTable.js +24 -0
  477. package/dist/migrations/1600155436756-CreateEventQueueTable.js.map +1 -0
  478. package/dist/migrations/1600155904221-CreateScheduledEventTable.d.ts +5 -0
  479. package/dist/migrations/1600155904221-CreateScheduledEventTable.js +27 -0
  480. package/dist/migrations/1600155904221-CreateScheduledEventTable.js.map +1 -0
  481. package/dist/migrations/1606282995979-ActiveColumnSysDeviceTokensTable.ts.d.ts +5 -0
  482. package/dist/migrations/1606282995979-ActiveColumnSysDeviceTokensTable.ts.js +15 -0
  483. package/dist/migrations/1606282995979-ActiveColumnSysDeviceTokensTable.ts.js.map +1 -0
  484. package/dist/migrations/1607944291609-AddUniqueIndexDeviceToken.d.ts +5 -0
  485. package/dist/migrations/1607944291609-AddUniqueIndexDeviceToken.js +17 -0
  486. package/dist/migrations/1607944291609-AddUniqueIndexDeviceToken.js.map +1 -0
  487. package/dist/migrations/1608920595813-CreateSmsTemplateTable.d.ts +5 -0
  488. package/dist/migrations/1608920595813-CreateSmsTemplateTable.js +25 -0
  489. package/dist/migrations/1608920595813-CreateSmsTemplateTable.js.map +1 -0
  490. package/dist/migrations/1609583413782-SystemGeneratedSysCommentsTable.ts.d.ts +5 -0
  491. package/dist/migrations/1609583413782-SystemGeneratedSysCommentsTable.ts.js +15 -0
  492. package/dist/migrations/1609583413782-SystemGeneratedSysCommentsTable.ts.js.map +1 -0
  493. package/dist/migrations/1610226459497-AddIndexOnTokenSysDeviceTokensTable.ts.d.ts +5 -0
  494. package/dist/migrations/1610226459497-AddIndexOnTokenSysDeviceTokensTable.ts.js +15 -0
  495. package/dist/migrations/1610226459497-AddIndexOnTokenSysDeviceTokensTable.ts.js.map +1 -0
  496. package/dist/migrations/1610518853208-CreateUserReferralTable.d.ts +5 -0
  497. package/dist/migrations/1610518853208-CreateUserReferralTable.js +22 -0
  498. package/dist/migrations/1610518853208-CreateUserReferralTable.js.map +1 -0
  499. package/dist/migrations/1615622117306-DeleteValueColumnSysUserPreferencesTable.ts.d.ts +5 -0
  500. package/dist/migrations/1615622117306-DeleteValueColumnSysUserPreferencesTable.ts.js +15 -0
  501. package/dist/migrations/1615622117306-DeleteValueColumnSysUserPreferencesTable.ts.js.map +1 -0
  502. package/dist/migrations/1615622742904-AddValueJsonColumnSysUserPreferencesTable.ts.d.ts +5 -0
  503. package/dist/migrations/1615622742904-AddValueJsonColumnSysUserPreferencesTable.ts.js +15 -0
  504. package/dist/migrations/1615622742904-AddValueJsonColumnSysUserPreferencesTable.ts.js.map +1 -0
  505. package/dist/migrations/1615661067542-RemoveColumnDefinitionColumnSysListPreferencesTable.ts.d.ts +5 -0
  506. package/dist/migrations/1615661067542-RemoveColumnDefinitionColumnSysListPreferencesTable.ts.js +15 -0
  507. package/dist/migrations/1615661067542-RemoveColumnDefinitionColumnSysListPreferencesTable.ts.js.map +1 -0
  508. package/dist/migrations/1615661131556-AddColumnDefinitionJsonColumnSysListPreferencesTable.ts.d.ts +5 -0
  509. package/dist/migrations/1615661131556-AddColumnDefinitionJsonColumnSysListPreferencesTable.ts.js +15 -0
  510. package/dist/migrations/1615661131556-AddColumnDefinitionJsonColumnSysListPreferencesTable.ts.js.map +1 -0
  511. package/dist/migrations/1615663840083-CreateUiActionPermissionTable.d.ts +5 -0
  512. package/dist/migrations/1615663840083-CreateUiActionPermissionTable.js +22 -0
  513. package/dist/migrations/1615663840083-CreateUiActionPermissionTable.js.map +1 -0
  514. package/dist/migrations/1615743889725-RemoveColumnDefinitionColumnSysFormPreferencesTable.ts.d.ts +5 -0
  515. package/dist/migrations/1615743889725-RemoveColumnDefinitionColumnSysFormPreferencesTable.ts.js +15 -0
  516. package/dist/migrations/1615743889725-RemoveColumnDefinitionColumnSysFormPreferencesTable.ts.js.map +1 -0
  517. package/dist/migrations/1615743931363-AddColumnDefinitionColumnSysFormPreferencesTable.ts.d.ts +5 -0
  518. package/dist/migrations/1615743931363-AddColumnDefinitionColumnSysFormPreferencesTable.ts.js +15 -0
  519. package/dist/migrations/1615743931363-AddColumnDefinitionColumnSysFormPreferencesTable.ts.js.map +1 -0
  520. package/dist/migrations/1616095909364-CreateClientScriptEntityTable.d.ts +5 -0
  521. package/dist/migrations/1616095909364-CreateClientScriptEntityTable.js +26 -0
  522. package/dist/migrations/1616095909364-CreateClientScriptEntityTable.js.map +1 -0
  523. package/dist/migrations/1616255314846-RenameRouteColumnSysMenuDetailsTable.ts.d.ts +5 -0
  524. package/dist/migrations/1616255314846-RenameRouteColumnSysMenuDetailsTable.ts.js +15 -0
  525. package/dist/migrations/1616255314846-RenameRouteColumnSysMenuDetailsTable.ts.js.map +1 -0
  526. package/dist/migrations/1616257589431-RenameRouteColumnSysModelDetailsTable.ts.d.ts +5 -0
  527. package/dist/migrations/1616257589431-RenameRouteColumnSysModelDetailsTable.ts.js +15 -0
  528. package/dist/migrations/1616257589431-RenameRouteColumnSysModelDetailsTable.ts.js.map +1 -0
  529. package/dist/migrations/1616329406291-AddIncludesColumnSysMenuDetailsTable.ts.d.ts +5 -0
  530. package/dist/migrations/1616329406291-AddIncludesColumnSysMenuDetailsTable.ts.js +15 -0
  531. package/dist/migrations/1616329406291-AddIncludesColumnSysMenuDetailsTable.ts.js.map +1 -0
  532. package/dist/migrations/1616604451282-CreateChartEntityTable.d.ts +5 -0
  533. package/dist/migrations/1616604451282-CreateChartEntityTable.js +28 -0
  534. package/dist/migrations/1616604451282-CreateChartEntityTable.js.map +1 -0
  535. package/dist/migrations/1616604996435-CreatePrimaryAxisTable.d.ts +5 -0
  536. package/dist/migrations/1616604996435-CreatePrimaryAxisTable.js +20 -0
  537. package/dist/migrations/1616604996435-CreatePrimaryAxisTable.js.map +1 -0
  538. package/dist/migrations/1616605261755-CreateSecondaryAxisTable.d.ts +5 -0
  539. package/dist/migrations/1616605261755-CreateSecondaryAxisTable.js +21 -0
  540. package/dist/migrations/1616605261755-CreateSecondaryAxisTable.js.map +1 -0
  541. package/dist/migrations/1616608867213-CreateReportTable.d.ts +5 -0
  542. package/dist/migrations/1616608867213-CreateReportTable.js +21 -0
  543. package/dist/migrations/1616608867213-CreateReportTable.js.map +1 -0
  544. package/dist/migrations/1616609134435-CreateReportColumnTable.d.ts +5 -0
  545. package/dist/migrations/1616609134435-CreateReportColumnTable.js +19 -0
  546. package/dist/migrations/1616609134435-CreateReportColumnTable.js.map +1 -0
  547. package/dist/migrations/1616610298682-CreateReportParamTable.d.ts +5 -0
  548. package/dist/migrations/1616610298682-CreateReportParamTable.js +20 -0
  549. package/dist/migrations/1616610298682-CreateReportParamTable.js.map +1 -0
  550. package/dist/migrations/1616738455290-AddNameColumnSysReportParamsTable.ts.d.ts +5 -0
  551. package/dist/migrations/1616738455290-AddNameColumnSysReportParamsTable.ts.js +15 -0
  552. package/dist/migrations/1616738455290-AddNameColumnSysReportParamsTable.ts.js.map +1 -0
  553. package/dist/migrations/1616749370769-AddSourceColumnsSysRelationshipDetailsTable.ts.d.ts +5 -0
  554. package/dist/migrations/1616749370769-AddSourceColumnsSysRelationshipDetailsTable.ts.js +15 -0
  555. package/dist/migrations/1616749370769-AddSourceColumnsSysRelationshipDetailsTable.ts.js.map +1 -0
  556. package/dist/migrations/1616750113885-CreateTableSysModelRelationshipsTable.ts.d.ts +5 -0
  557. package/dist/migrations/1616750113885-CreateTableSysModelRelationshipsTable.ts.js +22 -0
  558. package/dist/migrations/1616750113885-CreateTableSysModelRelationshipsTable.ts.js.map +1 -0
  559. package/dist/migrations/1616750244901-CreateReportRelationshipTable.d.ts +5 -0
  560. package/dist/migrations/1616750244901-CreateReportRelationshipTable.js +22 -0
  561. package/dist/migrations/1616750244901-CreateReportRelationshipTable.js.map +1 -0
  562. package/dist/migrations/1616787597931-CreateReportRoleTable.d.ts +5 -0
  563. package/dist/migrations/1616787597931-CreateReportRoleTable.js +19 -0
  564. package/dist/migrations/1616787597931-CreateReportRoleTable.js.map +1 -0
  565. package/dist/migrations/1617433544860-AddRouteColumnIncludesSysReportDetailsTable.ts.d.ts +5 -0
  566. package/dist/migrations/1617433544860-AddRouteColumnIncludesSysReportDetailsTable.ts.js +20 -0
  567. package/dist/migrations/1617433544860-AddRouteColumnIncludesSysReportDetailsTable.ts.js.map +1 -0
  568. package/dist/migrations/1619186436996-AddRouteIdentifierColumnSysModelDetailsTable.ts.d.ts +5 -0
  569. package/dist/migrations/1619186436996-AddRouteIdentifierColumnSysModelDetailsTable.ts.js +16 -0
  570. package/dist/migrations/1619186436996-AddRouteIdentifierColumnSysModelDetailsTable.ts.js.map +1 -0
  571. package/dist/migrations/1619193418460-AddDefaultUserDataSeederTable.d.ts +5 -0
  572. package/dist/migrations/1619193418460-AddDefaultUserDataSeederTable.js +39 -0
  573. package/dist/migrations/1619193418460-AddDefaultUserDataSeederTable.js.map +1 -0
  574. package/dist/migrations/1619555997151-AddSourceColumnsSysUserRolesTable.ts.d.ts +5 -0
  575. package/dist/migrations/1619555997151-AddSourceColumnsSysUserRolesTable.ts.js +15 -0
  576. package/dist/migrations/1619555997151-AddSourceColumnsSysUserRolesTable.ts.js.map +1 -0
  577. package/dist/migrations/1619556025823-AddSourceColumnsSysUserPermissionsTable.ts.d.ts +5 -0
  578. package/dist/migrations/1619556025823-AddSourceColumnsSysUserPermissionsTable.ts.js +15 -0
  579. package/dist/migrations/1619556025823-AddSourceColumnsSysUserPermissionsTable.ts.js.map +1 -0
  580. package/dist/migrations/1619556172009-CreateUserGroupPermissionEntityTable.d.ts +5 -0
  581. package/dist/migrations/1619556172009-CreateUserGroupPermissionEntityTable.js +25 -0
  582. package/dist/migrations/1619556172009-CreateUserGroupPermissionEntityTable.js.map +1 -0
  583. package/dist/migrations/1619903986363-CreateServiceTable.d.ts +5 -0
  584. package/dist/migrations/1619903986363-CreateServiceTable.js +22 -0
  585. package/dist/migrations/1619903986363-CreateServiceTable.js.map +1 -0
  586. package/dist/migrations/1619909254139-CreateBusinessRuleRoleTable.d.ts +5 -0
  587. package/dist/migrations/1619909254139-CreateBusinessRuleRoleTable.js +22 -0
  588. package/dist/migrations/1619909254139-CreateBusinessRuleRoleTable.js.map +1 -0
  589. package/dist/migrations/1633602353156-AddWhatsAppNumberSysCountriesTable.ts.d.ts +5 -0
  590. package/dist/migrations/1633602353156-AddWhatsAppNumberSysCountriesTable.ts.js +15 -0
  591. package/dist/migrations/1633602353156-AddWhatsAppNumberSysCountriesTable.ts.js.map +1 -0
  592. package/dist/migrations/1643398296090-CreateMailLogTable.d.ts +5 -0
  593. package/dist/migrations/1643398296090-CreateMailLogTable.js +25 -0
  594. package/dist/migrations/1643398296090-CreateMailLogTable.js.map +1 -0
  595. package/dist/migrations/1643899218270-CreateSmsMessageTable.d.ts +5 -0
  596. package/dist/migrations/1643899218270-CreateSmsMessageTable.js +26 -0
  597. package/dist/migrations/1643899218270-CreateSmsMessageTable.js.map +1 -0
  598. package/dist/migrations/1645738975654-CreateEmailTemplateTable.d.ts +5 -0
  599. package/dist/migrations/1645738975654-CreateEmailTemplateTable.js +21 -0
  600. package/dist/migrations/1645738975654-CreateEmailTemplateTable.js.map +1 -0
  601. package/dist/migrations/1645739142116-CreateWhatsappTemplateTable.d.ts +5 -0
  602. package/dist/migrations/1645739142116-CreateWhatsappTemplateTable.js +21 -0
  603. package/dist/migrations/1645739142116-CreateWhatsappTemplateTable.js.map +1 -0
  604. package/dist/migrations/1645886071349-AddSubjectSysEmailTemplatesTable.ts.d.ts +5 -0
  605. package/dist/migrations/1645886071349-AddSubjectSysEmailTemplatesTable.ts.js +15 -0
  606. package/dist/migrations/1645886071349-AddSubjectSysEmailTemplatesTable.ts.js.map +1 -0
  607. package/dist/migrations/1652332064735-AddOrdinalPositionSysColumnDetailsTable.ts.d.ts +5 -0
  608. package/dist/migrations/1652332064735-AddOrdinalPositionSysColumnDetailsTable.ts.js +15 -0
  609. package/dist/migrations/1652332064735-AddOrdinalPositionSysColumnDetailsTable.ts.js.map +1 -0
  610. package/dist/migrations/1662188562840-AddAttemptsSysUsersTable.ts.d.ts +5 -0
  611. package/dist/migrations/1662188562840-AddAttemptsSysUsersTable.ts.js +15 -0
  612. package/dist/migrations/1662188562840-AddAttemptsSysUsersTable.ts.js.map +1 -0
  613. package/dist/migrations/1669970181143-CreateDynamoTableTable.d.ts +5 -0
  614. package/dist/migrations/1669970181143-CreateDynamoTableTable.js +21 -0
  615. package/dist/migrations/1669970181143-CreateDynamoTableTable.js.map +1 -0
  616. package/dist/migrations/1675176639864-AddReportFilterTableSysReportFiltersTable.ts.d.ts +5 -0
  617. package/dist/migrations/1675176639864-AddReportFilterTableSysReportFiltersTable.ts.js +21 -0
  618. package/dist/migrations/1675176639864-AddReportFilterTableSysReportFiltersTable.ts.js.map +1 -0
  619. package/dist/migrations/1675876187420-AddIsEncryptedSysPropertiesTable.ts.d.ts +5 -0
  620. package/dist/migrations/1675876187420-AddIsEncryptedSysPropertiesTable.ts.js +15 -0
  621. package/dist/migrations/1675876187420-AddIsEncryptedSysPropertiesTable.ts.js.map +1 -0
  622. package/dist/migrations/1678730411972-CreatePendingBullJobTable.d.ts +5 -0
  623. package/dist/migrations/1678730411972-CreatePendingBullJobTable.js +24 -0
  624. package/dist/migrations/1678730411972-CreatePendingBullJobTable.js.map +1 -0
  625. package/dist/migrations/1678789489235-CreateFailedBullJobTable.d.ts +5 -0
  626. package/dist/migrations/1678789489235-CreateFailedBullJobTable.js +27 -0
  627. package/dist/migrations/1678789489235-CreateFailedBullJobTable.js.map +1 -0
  628. package/dist/migrations/1679473705431-RemoveModelSysRelationshipDetailsTable.ts.d.ts +5 -0
  629. package/dist/migrations/1679473705431-RemoveModelSysRelationshipDetailsTable.ts.js +15 -0
  630. package/dist/migrations/1679473705431-RemoveModelSysRelationshipDetailsTable.ts.js.map +1 -0
  631. package/dist/migrations/1684649589572-AddTypeSysCommentsTable.ts.d.ts +5 -0
  632. package/dist/migrations/1684649589572-AddTypeSysCommentsTable.ts.js +16 -0
  633. package/dist/migrations/1684649589572-AddTypeSysCommentsTable.ts.js.map +1 -0
  634. package/dist/migrations/1686046172898-CreateMailValidationTable.d.ts +5 -0
  635. package/dist/migrations/1686046172898-CreateMailValidationTable.js +24 -0
  636. package/dist/migrations/1686046172898-CreateMailValidationTable.js.map +1 -0
  637. package/dist/migrations/1686048669716-CreateMobileValidationTable.d.ts +5 -0
  638. package/dist/migrations/1686048669716-CreateMobileValidationTable.js +26 -0
  639. package/dist/migrations/1686048669716-CreateMobileValidationTable.js.map +1 -0
  640. package/dist/migrations/1692726438006-AddColumnTypeSysReportFiltersTable.ts.d.ts +5 -0
  641. package/dist/migrations/1692726438006-AddColumnTypeSysReportFiltersTable.ts.js +19 -0
  642. package/dist/migrations/1692726438006-AddColumnTypeSysReportFiltersTable.ts.js.map +1 -0
  643. package/dist/platformUtility/commands/index.d.ts +3 -0
  644. package/dist/platformUtility/commands/index.js +20 -0
  645. package/dist/platformUtility/commands/index.js.map +1 -0
  646. package/dist/platformUtility/commands/maintenance.command.d.ts +14 -0
  647. package/dist/platformUtility/commands/maintenance.command.js +99 -0
  648. package/dist/platformUtility/commands/maintenance.command.js.map +1 -0
  649. package/dist/platformUtility/commands/sqs.worker.command.d.ts +12 -0
  650. package/dist/platformUtility/commands/sqs.worker.command.js +54 -0
  651. package/dist/platformUtility/commands/sqs.worker.command.js.map +1 -0
  652. package/dist/platformUtility/commands/sync.class.command.d.ts +6 -0
  653. package/dist/platformUtility/commands/sync.class.command.js +56 -0
  654. package/dist/platformUtility/commands/sync.class.command.js.map +1 -0
  655. package/dist/platformUtility/consumers/event.consumer.d.ts +18 -0
  656. package/dist/platformUtility/consumers/event.consumer.js +119 -0
  657. package/dist/platformUtility/consumers/event.consumer.js.map +1 -0
  658. package/dist/platformUtility/consumers/index.d.ts +2 -0
  659. package/dist/platformUtility/consumers/index.js +19 -0
  660. package/dist/platformUtility/consumers/index.js.map +1 -0
  661. package/dist/platformUtility/consumers/job.consumer.d.ts +9 -0
  662. package/dist/platformUtility/consumers/job.consumer.js +74 -0
  663. package/dist/platformUtility/consumers/job.consumer.js.map +1 -0
  664. package/dist/platformUtility/controllers/bull.job.controller.d.ts +15 -0
  665. package/dist/platformUtility/controllers/bull.job.controller.js +134 -0
  666. package/dist/platformUtility/controllers/bull.job.controller.js.map +1 -0
  667. package/dist/platformUtility/controllers/index.d.ts +2 -0
  668. package/dist/platformUtility/controllers/index.js +19 -0
  669. package/dist/platformUtility/controllers/index.js.map +1 -0
  670. package/dist/platformUtility/controllers/queue.controller.d.ts +10 -0
  671. package/dist/platformUtility/controllers/queue.controller.js +53 -0
  672. package/dist/platformUtility/controllers/queue.controller.js.map +1 -0
  673. package/dist/platformUtility/dtos/aws.config.dto.d.ts +6 -0
  674. package/dist/platformUtility/dtos/aws.config.dto.js +7 -0
  675. package/dist/platformUtility/dtos/aws.config.dto.js.map +1 -0
  676. package/dist/platformUtility/dtos/common.attributes.dto.d.ts +7 -0
  677. package/dist/platformUtility/dtos/common.attributes.dto.js +36 -0
  678. package/dist/platformUtility/dtos/common.attributes.dto.js.map +1 -0
  679. package/dist/platformUtility/dtos/failed.bull.job.attributes.dto.d.ts +3 -0
  680. package/dist/platformUtility/dtos/failed.bull.job.attributes.dto.js +8 -0
  681. package/dist/platformUtility/dtos/failed.bull.job.attributes.dto.js.map +1 -0
  682. package/dist/platformUtility/dtos/fcm.response.dto.d.ts +7 -0
  683. package/dist/platformUtility/dtos/fcm.response.dto.js +7 -0
  684. package/dist/platformUtility/dtos/fcm.response.dto.js.map +1 -0
  685. package/dist/platformUtility/dtos/index.d.ts +15 -0
  686. package/dist/platformUtility/dtos/index.js +32 -0
  687. package/dist/platformUtility/dtos/index.js.map +1 -0
  688. package/dist/platformUtility/dtos/job.payload.dto.d.ts +6 -0
  689. package/dist/platformUtility/dtos/job.payload.dto.js +36 -0
  690. package/dist/platformUtility/dtos/job.payload.dto.js.map +1 -0
  691. package/dist/platformUtility/dtos/mail.options.dto.d.ts +14 -0
  692. package/dist/platformUtility/dtos/mail.options.dto.js +59 -0
  693. package/dist/platformUtility/dtos/mail.options.dto.js.map +1 -0
  694. package/dist/platformUtility/dtos/pending.bull.job.attributes.dto.d.ts +3 -0
  695. package/dist/platformUtility/dtos/pending.bull.job.attributes.dto.js +8 -0
  696. package/dist/platformUtility/dtos/pending.bull.job.attributes.dto.js.map +1 -0
  697. package/dist/platformUtility/dtos/push.notification.response.dto.d.ts +6 -0
  698. package/dist/platformUtility/dtos/push.notification.response.dto.js +7 -0
  699. package/dist/platformUtility/dtos/push.notification.response.dto.js.map +1 -0
  700. package/dist/platformUtility/dtos/push.notification.template.dto.d.ts +23 -0
  701. package/dist/platformUtility/dtos/push.notification.template.dto.js +7 -0
  702. package/dist/platformUtility/dtos/push.notification.template.dto.js.map +1 -0
  703. package/dist/platformUtility/dtos/queue.options.dto.d.ts +9 -0
  704. package/dist/platformUtility/dtos/queue.options.dto.js +50 -0
  705. package/dist/platformUtility/dtos/queue.options.dto.js.map +1 -0
  706. package/dist/platformUtility/dtos/remote.raw.response.dto.d.ts +6 -0
  707. package/dist/platformUtility/dtos/remote.raw.response.dto.js +35 -0
  708. package/dist/platformUtility/dtos/remote.raw.response.dto.js.map +1 -0
  709. package/dist/platformUtility/dtos/sms.payload.dto.d.ts +7 -0
  710. package/dist/platformUtility/dtos/sms.payload.dto.js +38 -0
  711. package/dist/platformUtility/dtos/sms.payload.dto.js.map +1 -0
  712. package/dist/platformUtility/dtos/smtp.config.dto.d.ts +7 -0
  713. package/dist/platformUtility/dtos/smtp.config.dto.js +7 -0
  714. package/dist/platformUtility/dtos/smtp.config.dto.js.map +1 -0
  715. package/dist/platformUtility/dtos/source.column.dto.d.ts +4 -0
  716. package/dist/platformUtility/dtos/source.column.dto.js +29 -0
  717. package/dist/platformUtility/dtos/source.column.dto.js.map +1 -0
  718. package/dist/platformUtility/dtos/string.search.dto.d.ts +5 -0
  719. package/dist/platformUtility/dtos/string.search.dto.js +34 -0
  720. package/dist/platformUtility/dtos/string.search.dto.js.map +1 -0
  721. package/dist/platformUtility/entities/failed.bull.job.entity.d.ts +15 -0
  722. package/dist/platformUtility/entities/failed.bull.job.entity.js +66 -0
  723. package/dist/platformUtility/entities/failed.bull.job.entity.js.map +1 -0
  724. package/dist/platformUtility/entities/index.d.ts +2 -0
  725. package/dist/platformUtility/entities/index.js +19 -0
  726. package/dist/platformUtility/entities/index.js.map +1 -0
  727. package/dist/platformUtility/entities/pending.bull.job.entity.d.ts +12 -0
  728. package/dist/platformUtility/entities/pending.bull.job.entity.js +54 -0
  729. package/dist/platformUtility/entities/pending.bull.job.entity.js.map +1 -0
  730. package/dist/platformUtility/es6.classes.d.ts +69 -0
  731. package/dist/platformUtility/es6.classes.js +119 -0
  732. package/dist/platformUtility/es6.classes.js.map +1 -0
  733. package/dist/platformUtility/index.d.ts +11 -0
  734. package/dist/platformUtility/index.js +28 -0
  735. package/dist/platformUtility/index.js.map +1 -0
  736. package/dist/platformUtility/jobs/index.d.ts +4 -0
  737. package/dist/platformUtility/jobs/index.js +21 -0
  738. package/dist/platformUtility/jobs/index.js.map +1 -0
  739. package/dist/platformUtility/jobs/load.failed.bull.job.d.ts +9 -0
  740. package/dist/platformUtility/jobs/load.failed.bull.job.js +54 -0
  741. package/dist/platformUtility/jobs/load.failed.bull.job.js.map +1 -0
  742. package/dist/platformUtility/jobs/record.watcher.job.d.ts +12 -0
  743. package/dist/platformUtility/jobs/record.watcher.job.js +37 -0
  744. package/dist/platformUtility/jobs/record.watcher.job.js.map +1 -0
  745. package/dist/platformUtility/jobs/reload.pending.bull.job.d.ts +7 -0
  746. package/dist/platformUtility/jobs/reload.pending.bull.job.js +39 -0
  747. package/dist/platformUtility/jobs/reload.pending.bull.job.js.map +1 -0
  748. package/dist/platformUtility/jobs/test.job.d.ts +7 -0
  749. package/dist/platformUtility/jobs/test.job.js +28 -0
  750. package/dist/platformUtility/jobs/test.job.js.map +1 -0
  751. package/dist/platformUtility/libraries/common.sqs.polling.d.ts +24 -0
  752. package/dist/platformUtility/libraries/common.sqs.polling.js +71 -0
  753. package/dist/platformUtility/libraries/common.sqs.polling.js.map +1 -0
  754. package/dist/platformUtility/libraries/create.entity.constants.file.d.ts +10 -0
  755. package/dist/platformUtility/libraries/create.entity.constants.file.js +64 -0
  756. package/dist/platformUtility/libraries/create.entity.constants.file.js.map +1 -0
  757. package/dist/platformUtility/libraries/create.es6.classes.file.d.ts +9 -0
  758. package/dist/platformUtility/libraries/create.es6.classes.file.js +62 -0
  759. package/dist/platformUtility/libraries/create.es6.classes.file.js.map +1 -0
  760. package/dist/platformUtility/libraries/create.es6.jobs.file.d.ts +9 -0
  761. package/dist/platformUtility/libraries/create.es6.jobs.file.js +105 -0
  762. package/dist/platformUtility/libraries/create.es6.jobs.file.js.map +1 -0
  763. package/dist/platformUtility/libraries/create.es6.service.file.d.ts +9 -0
  764. package/dist/platformUtility/libraries/create.es6.service.file.js +109 -0
  765. package/dist/platformUtility/libraries/create.es6.service.file.js.map +1 -0
  766. package/dist/platformUtility/libraries/create.index.file.d.ts +12 -0
  767. package/dist/platformUtility/libraries/create.index.file.js +78 -0
  768. package/dist/platformUtility/libraries/create.index.file.js.map +1 -0
  769. package/dist/platformUtility/libraries/file.system.utility.d.ts +13 -0
  770. package/dist/platformUtility/libraries/file.system.utility.js +67 -0
  771. package/dist/platformUtility/libraries/file.system.utility.js.map +1 -0
  772. package/dist/platformUtility/libraries/index.d.ts +11 -0
  773. package/dist/platformUtility/libraries/index.js +28 -0
  774. package/dist/platformUtility/libraries/index.js.map +1 -0
  775. package/dist/platformUtility/libraries/process.audit.log.data.d.ts +12 -0
  776. package/dist/platformUtility/libraries/process.audit.log.data.js +63 -0
  777. package/dist/platformUtility/libraries/process.audit.log.data.js.map +1 -0
  778. package/dist/platformUtility/libraries/process.common.mail.d.ts +9 -0
  779. package/dist/platformUtility/libraries/process.common.mail.js +42 -0
  780. package/dist/platformUtility/libraries/process.common.mail.js.map +1 -0
  781. package/dist/platformUtility/libraries/process.kaleyra.sms.d.ts +12 -0
  782. package/dist/platformUtility/libraries/process.kaleyra.sms.js +58 -0
  783. package/dist/platformUtility/libraries/process.kaleyra.sms.js.map +1 -0
  784. package/dist/platformUtility/libraries/process.smtp.mail.d.ts +14 -0
  785. package/dist/platformUtility/libraries/process.smtp.mail.js +81 -0
  786. package/dist/platformUtility/libraries/process.smtp.mail.js.map +1 -0
  787. package/dist/platformUtility/middlewares/index.d.ts +2 -0
  788. package/dist/platformUtility/middlewares/index.js +19 -0
  789. package/dist/platformUtility/middlewares/index.js.map +1 -0
  790. package/dist/platformUtility/middlewares/maintenance.middleware.d.ts +7 -0
  791. package/dist/platformUtility/middlewares/maintenance.middleware.js +31 -0
  792. package/dist/platformUtility/middlewares/maintenance.middleware.js.map +1 -0
  793. package/dist/platformUtility/middlewares/trim.pipe.d.ts +6 -0
  794. package/dist/platformUtility/middlewares/trim.pipe.js +42 -0
  795. package/dist/platformUtility/middlewares/trim.pipe.js.map +1 -0
  796. package/dist/platformUtility/platform.utility.module.d.ts +3 -0
  797. package/dist/platformUtility/platform.utility.module.js +35 -0
  798. package/dist/platformUtility/platform.utility.module.js.map +1 -0
  799. package/dist/platformUtility/services/audit.service.d.ts +17 -0
  800. package/dist/platformUtility/services/audit.service.js +96 -0
  801. package/dist/platformUtility/services/audit.service.js.map +1 -0
  802. package/dist/platformUtility/services/aws.config.service.d.ts +10 -0
  803. package/dist/platformUtility/services/aws.config.service.js +48 -0
  804. package/dist/platformUtility/services/aws.config.service.js.map +1 -0
  805. package/dist/platformUtility/services/cache.service.d.ts +8 -0
  806. package/dist/platformUtility/services/cache.service.js +57 -0
  807. package/dist/platformUtility/services/cache.service.js.map +1 -0
  808. package/dist/platformUtility/services/dynamo.service.d.ts +20 -0
  809. package/dist/platformUtility/services/dynamo.service.js +155 -0
  810. package/dist/platformUtility/services/dynamo.service.js.map +1 -0
  811. package/dist/platformUtility/services/es6.jobs.service.d.ts +14 -0
  812. package/dist/platformUtility/services/es6.jobs.service.js +49 -0
  813. package/dist/platformUtility/services/es6.jobs.service.js.map +1 -0
  814. package/dist/platformUtility/services/fcm.notification.service.d.ts +17 -0
  815. package/dist/platformUtility/services/fcm.notification.service.js +91 -0
  816. package/dist/platformUtility/services/fcm.notification.service.js.map +1 -0
  817. package/dist/platformUtility/services/index.d.ts +15 -0
  818. package/dist/platformUtility/services/index.js +32 -0
  819. package/dist/platformUtility/services/index.js.map +1 -0
  820. package/dist/platformUtility/services/local.property.service.d.ts +8 -0
  821. package/dist/platformUtility/services/local.property.service.js +44 -0
  822. package/dist/platformUtility/services/local.property.service.js.map +1 -0
  823. package/dist/platformUtility/services/mail.service.d.ts +17 -0
  824. package/dist/platformUtility/services/mail.service.js +73 -0
  825. package/dist/platformUtility/services/mail.service.js.map +1 -0
  826. package/dist/platformUtility/services/maintenance.service.d.ts +15 -0
  827. package/dist/platformUtility/services/maintenance.service.js +76 -0
  828. package/dist/platformUtility/services/maintenance.service.js.map +1 -0
  829. package/dist/platformUtility/services/queue.service.d.ts +42 -0
  830. package/dist/platformUtility/services/queue.service.js +191 -0
  831. package/dist/platformUtility/services/queue.service.js.map +1 -0
  832. package/dist/platformUtility/services/remote.request.service.d.ts +5 -0
  833. package/dist/platformUtility/services/remote.request.service.js +40 -0
  834. package/dist/platformUtility/services/remote.request.service.js.map +1 -0
  835. package/dist/platformUtility/services/shutdown.service.d.ts +7 -0
  836. package/dist/platformUtility/services/shutdown.service.js +30 -0
  837. package/dist/platformUtility/services/shutdown.service.js.map +1 -0
  838. package/dist/platformUtility/services/sms.service.d.ts +12 -0
  839. package/dist/platformUtility/services/sms.service.js +43 -0
  840. package/dist/platformUtility/services/sms.service.js.map +1 -0
  841. package/dist/platformUtility/services/sql.service.d.ts +15 -0
  842. package/dist/platformUtility/services/sql.service.js +87 -0
  843. package/dist/platformUtility/services/sql.service.js.map +1 -0
  844. package/dist/platformUtility/services/sqs.service.d.ts +13 -0
  845. package/dist/platformUtility/services/sqs.service.js +79 -0
  846. package/dist/platformUtility/services/sqs.service.js.map +1 -0
  847. package/dist/platformUtility/services/startup.service.d.ts +10 -0
  848. package/dist/platformUtility/services/startup.service.js +37 -0
  849. package/dist/platformUtility/services/startup.service.js.map +1 -0
  850. package/dist/platformUtility/subscribers/base.subscriber.d.ts +11 -0
  851. package/dist/platformUtility/subscribers/base.subscriber.js +63 -0
  852. package/dist/platformUtility/subscribers/base.subscriber.js.map +1 -0
  853. package/dist/platformUtility/subscribers/index.d.ts +1 -0
  854. package/dist/platformUtility/subscribers/index.js +18 -0
  855. package/dist/platformUtility/subscribers/index.js.map +1 -0
  856. package/dist/security/entities/index.d.ts +4 -0
  857. package/dist/security/entities/index.js +21 -0
  858. package/dist/security/entities/index.js.map +1 -0
  859. package/dist/security/entities/permission.entity.d.ts +7 -0
  860. package/dist/security/entities/permission.entity.js +41 -0
  861. package/dist/security/entities/permission.entity.js.map +1 -0
  862. package/dist/security/entities/role.entity.d.ts +8 -0
  863. package/dist/security/entities/role.entity.js +46 -0
  864. package/dist/security/entities/role.entity.js.map +1 -0
  865. package/dist/security/entities/user.permission.entity.d.ts +12 -0
  866. package/dist/security/entities/user.permission.entity.js +56 -0
  867. package/dist/security/entities/user.permission.entity.js.map +1 -0
  868. package/dist/security/entities/user.role.entity.d.ts +12 -0
  869. package/dist/security/entities/user.role.entity.js +56 -0
  870. package/dist/security/entities/user.role.entity.js.map +1 -0
  871. package/dist/security/es6.classes.d.ts +7 -0
  872. package/dist/security/es6.classes.js +11 -0
  873. package/dist/security/es6.classes.js.map +1 -0
  874. package/dist/security/index.d.ts +2 -0
  875. package/dist/security/index.js +19 -0
  876. package/dist/security/index.js.map +1 -0
  877. package/dist/security/security.module.d.ts +2 -0
  878. package/dist/security/security.module.js +21 -0
  879. package/dist/security/security.module.js.map +1 -0
  880. package/dist/system/commands/db.scanner.command.d.ts +30 -0
  881. package/dist/system/commands/db.scanner.command.js +285 -0
  882. package/dist/system/commands/db.scanner.command.js.map +1 -0
  883. package/dist/system/commands/dynamo.scanner.command.d.ts +8 -0
  884. package/dist/system/commands/dynamo.scanner.command.js +42 -0
  885. package/dist/system/commands/dynamo.scanner.command.js.map +1 -0
  886. package/dist/system/commands/event.queue.command.d.ts +17 -0
  887. package/dist/system/commands/event.queue.command.js +83 -0
  888. package/dist/system/commands/event.queue.command.js.map +1 -0
  889. package/dist/system/commands/index.d.ts +8 -0
  890. package/dist/system/commands/index.js +25 -0
  891. package/dist/system/commands/index.js.map +1 -0
  892. package/dist/system/commands/jobs.scanner.command.d.ts +8 -0
  893. package/dist/system/commands/jobs.scanner.command.js +46 -0
  894. package/dist/system/commands/jobs.scanner.command.js.map +1 -0
  895. package/dist/system/commands/model.scanner.command.d.ts +10 -0
  896. package/dist/system/commands/model.scanner.command.js +58 -0
  897. package/dist/system/commands/model.scanner.command.js.map +1 -0
  898. package/dist/system/commands/report.scanner.command.d.ts +8 -0
  899. package/dist/system/commands/report.scanner.command.js +49 -0
  900. package/dist/system/commands/report.scanner.command.js.map +1 -0
  901. package/dist/system/commands/service.scanner.command.d.ts +9 -0
  902. package/dist/system/commands/service.scanner.command.js +47 -0
  903. package/dist/system/commands/service.scanner.command.js.map +1 -0
  904. package/dist/system/commands/sync.all.command.d.ts +18 -0
  905. package/dist/system/commands/sync.all.command.js +76 -0
  906. package/dist/system/commands/sync.all.command.js.map +1 -0
  907. package/dist/system/controllers/base.controller.d.ts +50 -0
  908. package/dist/system/controllers/base.controller.js +187 -0
  909. package/dist/system/controllers/base.controller.js.map +1 -0
  910. package/dist/system/controllers/data.controller.d.ts +9 -0
  911. package/dist/system/controllers/data.controller.js +60 -0
  912. package/dist/system/controllers/data.controller.js.map +1 -0
  913. package/dist/system/controllers/form.controller.d.ts +15 -0
  914. package/dist/system/controllers/form.controller.js +51 -0
  915. package/dist/system/controllers/form.controller.js.map +1 -0
  916. package/dist/system/controllers/index.d.ts +8 -0
  917. package/dist/system/controllers/index.js +25 -0
  918. package/dist/system/controllers/index.js.map +1 -0
  919. package/dist/system/controllers/menu.controller.d.ts +10 -0
  920. package/dist/system/controllers/menu.controller.js +47 -0
  921. package/dist/system/controllers/menu.controller.js.map +1 -0
  922. package/dist/system/controllers/preference.controller.d.ts +18 -0
  923. package/dist/system/controllers/preference.controller.js +149 -0
  924. package/dist/system/controllers/preference.controller.js.map +1 -0
  925. package/dist/system/controllers/report.controller.d.ts +22 -0
  926. package/dist/system/controllers/report.controller.js +117 -0
  927. package/dist/system/controllers/report.controller.js.map +1 -0
  928. package/dist/system/controllers/upload.controller.d.ts +8 -0
  929. package/dist/system/controllers/upload.controller.js +60 -0
  930. package/dist/system/controllers/upload.controller.js.map +1 -0
  931. package/dist/system/controllers/user.preference.controller.d.ts +9 -0
  932. package/dist/system/controllers/user.preference.controller.js +56 -0
  933. package/dist/system/controllers/user.preference.controller.js.map +1 -0
  934. package/dist/system/dtos/add.comment.dto.d.ts +6 -0
  935. package/dist/system/dtos/add.comment.dto.js +41 -0
  936. package/dist/system/dtos/add.comment.dto.js.map +1 -0
  937. package/dist/system/dtos/comment.attributes.dto.d.ts +3 -0
  938. package/dist/system/dtos/comment.attributes.dto.js +8 -0
  939. package/dist/system/dtos/comment.attributes.dto.js.map +1 -0
  940. package/dist/system/dtos/document.attributes.dto.d.ts +7 -0
  941. package/dist/system/dtos/document.attributes.dto.js +40 -0
  942. package/dist/system/dtos/document.attributes.dto.js.map +1 -0
  943. package/dist/system/dtos/file.upload.dto.d.ts +8 -0
  944. package/dist/system/dtos/file.upload.dto.js +48 -0
  945. package/dist/system/dtos/file.upload.dto.js.map +1 -0
  946. package/dist/system/dtos/file.upload.spec.dto.d.ts +10 -0
  947. package/dist/system/dtos/file.upload.spec.dto.js +7 -0
  948. package/dist/system/dtos/file.upload.spec.dto.js.map +1 -0
  949. package/dist/system/dtos/index.d.ts +18 -0
  950. package/dist/system/dtos/index.js +35 -0
  951. package/dist/system/dtos/index.js.map +1 -0
  952. package/dist/system/dtos/job.record.param.dto.d.ts +4 -0
  953. package/dist/system/dtos/job.record.param.dto.js +29 -0
  954. package/dist/system/dtos/job.record.param.dto.js.map +1 -0
  955. package/dist/system/dtos/local.file.s3.upload.dto.d.ts +6 -0
  956. package/dist/system/dtos/local.file.s3.upload.dto.js +33 -0
  957. package/dist/system/dtos/local.file.s3.upload.dto.js.map +1 -0
  958. package/dist/system/dtos/mail.validation.dto.d.ts +5 -0
  959. package/dist/system/dtos/mail.validation.dto.js +7 -0
  960. package/dist/system/dtos/mail.validation.dto.js.map +1 -0
  961. package/dist/system/dtos/menu.list.preference.creation.dto.d.ts +7 -0
  962. package/dist/system/dtos/menu.list.preference.creation.dto.js +39 -0
  963. package/dist/system/dtos/menu.list.preference.creation.dto.js.map +1 -0
  964. package/dist/system/dtos/mobile.validation.dto.d.ts +5 -0
  965. package/dist/system/dtos/mobile.validation.dto.js +7 -0
  966. package/dist/system/dtos/mobile.validation.dto.js.map +1 -0
  967. package/dist/system/dtos/model.allowed.column.dto.d.ts +5 -0
  968. package/dist/system/dtos/model.allowed.column.dto.js +7 -0
  969. package/dist/system/dtos/model.allowed.column.dto.js.map +1 -0
  970. package/dist/system/dtos/model.form.preference.creation.dto.d.ts +4 -0
  971. package/dist/system/dtos/model.form.preference.creation.dto.js +27 -0
  972. package/dist/system/dtos/model.form.preference.creation.dto.js.map +1 -0
  973. package/dist/system/dtos/otp.generation.dto.d.ts +5 -0
  974. package/dist/system/dtos/otp.generation.dto.js +25 -0
  975. package/dist/system/dtos/otp.generation.dto.js.map +1 -0
  976. package/dist/system/dtos/s3.object.info.dto.d.ts +4 -0
  977. package/dist/system/dtos/s3.object.info.dto.js +7 -0
  978. package/dist/system/dtos/s3.object.info.dto.js.map +1 -0
  979. package/dist/system/dtos/s3.upload.options.dto.d.ts +6 -0
  980. package/dist/system/dtos/s3.upload.options.dto.js +7 -0
  981. package/dist/system/dtos/s3.upload.options.dto.js.map +1 -0
  982. package/dist/system/dtos/sms.message.attributes.dto.d.ts +4 -0
  983. package/dist/system/dtos/sms.message.attributes.dto.js +8 -0
  984. package/dist/system/dtos/sms.message.attributes.dto.js.map +1 -0
  985. package/dist/system/dtos/user.preference.creation.dto.d.ts +4 -0
  986. package/dist/system/dtos/user.preference.creation.dto.js +25 -0
  987. package/dist/system/dtos/user.preference.creation.dto.js.map +1 -0
  988. package/dist/system/dtos/validation.options.dto.d.ts +4 -0
  989. package/dist/system/dtos/validation.options.dto.js +7 -0
  990. package/dist/system/dtos/validation.options.dto.js.map +1 -0
  991. package/dist/system/entities/business.rule.entity.d.ts +27 -0
  992. package/dist/system/entities/business.rule.entity.js +115 -0
  993. package/dist/system/entities/business.rule.entity.js.map +1 -0
  994. package/dist/system/entities/business.rule.role.entity.d.ts +10 -0
  995. package/dist/system/entities/business.rule.role.entity.js +45 -0
  996. package/dist/system/entities/business.rule.role.entity.js.map +1 -0
  997. package/dist/system/entities/chart.entity.d.ts +21 -0
  998. package/dist/system/entities/chart.entity.js +87 -0
  999. package/dist/system/entities/chart.entity.js.map +1 -0
  1000. package/dist/system/entities/client.script.entity.d.ts +15 -0
  1001. package/dist/system/entities/client.script.entity.js +65 -0
  1002. package/dist/system/entities/client.script.entity.js.map +1 -0
  1003. package/dist/system/entities/column.definition.entity.d.ts +7 -0
  1004. package/dist/system/entities/column.definition.entity.js +41 -0
  1005. package/dist/system/entities/column.definition.entity.js.map +1 -0
  1006. package/dist/system/entities/column.entity.d.ts +21 -0
  1007. package/dist/system/entities/column.entity.js +95 -0
  1008. package/dist/system/entities/column.entity.js.map +1 -0
  1009. package/dist/system/entities/comment.entity.d.ts +11 -0
  1010. package/dist/system/entities/comment.entity.js +56 -0
  1011. package/dist/system/entities/comment.entity.js.map +1 -0
  1012. package/dist/system/entities/document.entity.d.ts +11 -0
  1013. package/dist/system/entities/document.entity.js +48 -0
  1014. package/dist/system/entities/document.entity.js.map +1 -0
  1015. package/dist/system/entities/dynamo.table.entity.d.ts +10 -0
  1016. package/dist/system/entities/dynamo.table.entity.js +47 -0
  1017. package/dist/system/entities/dynamo.table.entity.js.map +1 -0
  1018. package/dist/system/entities/email.template.entity.d.ts +9 -0
  1019. package/dist/system/entities/email.template.entity.js +45 -0
  1020. package/dist/system/entities/email.template.entity.js.map +1 -0
  1021. package/dist/system/entities/event.detail.entity.d.ts +7 -0
  1022. package/dist/system/entities/event.detail.entity.js +37 -0
  1023. package/dist/system/entities/event.detail.entity.js.map +1 -0
  1024. package/dist/system/entities/event.queue.entity.d.ts +14 -0
  1025. package/dist/system/entities/event.queue.entity.js +63 -0
  1026. package/dist/system/entities/event.queue.entity.js.map +1 -0
  1027. package/dist/system/entities/form.column.entity.d.ts +10 -0
  1028. package/dist/system/entities/form.column.entity.js +45 -0
  1029. package/dist/system/entities/form.column.entity.js.map +1 -0
  1030. package/dist/system/entities/form.entity.d.ts +17 -0
  1031. package/dist/system/entities/form.entity.js +75 -0
  1032. package/dist/system/entities/form.entity.js.map +1 -0
  1033. package/dist/system/entities/form.preference.entity.d.ts +8 -0
  1034. package/dist/system/entities/form.preference.entity.js +41 -0
  1035. package/dist/system/entities/form.preference.entity.js.map +1 -0
  1036. package/dist/system/entities/index.d.ts +57 -0
  1037. package/dist/system/entities/index.js +74 -0
  1038. package/dist/system/entities/index.js.map +1 -0
  1039. package/dist/system/entities/list.preference.entity.d.ts +12 -0
  1040. package/dist/system/entities/list.preference.entity.js +58 -0
  1041. package/dist/system/entities/list.preference.entity.js.map +1 -0
  1042. package/dist/system/entities/lookup.type.entity.d.ts +8 -0
  1043. package/dist/system/entities/lookup.type.entity.js +41 -0
  1044. package/dist/system/entities/lookup.type.entity.js.map +1 -0
  1045. package/dist/system/entities/lookup.value.entity.d.ts +10 -0
  1046. package/dist/system/entities/lookup.value.entity.js +51 -0
  1047. package/dist/system/entities/lookup.value.entity.js.map +1 -0
  1048. package/dist/system/entities/mail.log.entity.d.ts +12 -0
  1049. package/dist/system/entities/mail.log.entity.js +57 -0
  1050. package/dist/system/entities/mail.log.entity.js.map +1 -0
  1051. package/dist/system/entities/mail.validation.entity.d.ts +13 -0
  1052. package/dist/system/entities/mail.validation.entity.js +59 -0
  1053. package/dist/system/entities/mail.validation.entity.js.map +1 -0
  1054. package/dist/system/entities/menu.entity.d.ts +28 -0
  1055. package/dist/system/entities/menu.entity.js +97 -0
  1056. package/dist/system/entities/menu.entity.js.map +1 -0
  1057. package/dist/system/entities/menu.role.entity.d.ts +10 -0
  1058. package/dist/system/entities/menu.role.entity.js +48 -0
  1059. package/dist/system/entities/menu.role.entity.js.map +1 -0
  1060. package/dist/system/entities/mobile.validation.entity.d.ts +14 -0
  1061. package/dist/system/entities/mobile.validation.entity.js +63 -0
  1062. package/dist/system/entities/mobile.validation.entity.js.map +1 -0
  1063. package/dist/system/entities/model.column.entity.d.ts +10 -0
  1064. package/dist/system/entities/model.column.entity.js +45 -0
  1065. package/dist/system/entities/model.column.entity.js.map +1 -0
  1066. package/dist/system/entities/model.entity.d.ts +31 -0
  1067. package/dist/system/entities/model.entity.js +120 -0
  1068. package/dist/system/entities/model.entity.js.map +1 -0
  1069. package/dist/system/entities/model.relationship.entity.d.ts +10 -0
  1070. package/dist/system/entities/model.relationship.entity.js +45 -0
  1071. package/dist/system/entities/model.relationship.entity.js.map +1 -0
  1072. package/dist/system/entities/model.role.entity.d.ts +11 -0
  1073. package/dist/system/entities/model.role.entity.js +49 -0
  1074. package/dist/system/entities/model.role.entity.js.map +1 -0
  1075. package/dist/system/entities/module.entity.d.ts +10 -0
  1076. package/dist/system/entities/module.entity.js +49 -0
  1077. package/dist/system/entities/module.entity.js.map +1 -0
  1078. package/dist/system/entities/module.menu.entity.d.ts +11 -0
  1079. package/dist/system/entities/module.menu.entity.js +52 -0
  1080. package/dist/system/entities/module.menu.entity.js.map +1 -0
  1081. package/dist/system/entities/open.property.entity.d.ts +7 -0
  1082. package/dist/system/entities/open.property.entity.js +37 -0
  1083. package/dist/system/entities/open.property.entity.js.map +1 -0
  1084. package/dist/system/entities/page.definition.entity.d.ts +7 -0
  1085. package/dist/system/entities/page.definition.entity.js +40 -0
  1086. package/dist/system/entities/page.definition.entity.js.map +1 -0
  1087. package/dist/system/entities/parent.menu.entity.d.ts +9 -0
  1088. package/dist/system/entities/parent.menu.entity.js +47 -0
  1089. package/dist/system/entities/parent.menu.entity.js.map +1 -0
  1090. package/dist/system/entities/primary.axis.entity.d.ts +9 -0
  1091. package/dist/system/entities/primary.axis.entity.js +43 -0
  1092. package/dist/system/entities/primary.axis.entity.js.map +1 -0
  1093. package/dist/system/entities/property.entity.d.ts +10 -0
  1094. package/dist/system/entities/property.entity.js +53 -0
  1095. package/dist/system/entities/property.entity.js.map +1 -0
  1096. package/dist/system/entities/relationship.entity.d.ts +22 -0
  1097. package/dist/system/entities/relationship.entity.js +98 -0
  1098. package/dist/system/entities/relationship.entity.js.map +1 -0
  1099. package/dist/system/entities/report.column.entity.d.ts +8 -0
  1100. package/dist/system/entities/report.column.entity.js +39 -0
  1101. package/dist/system/entities/report.column.entity.js.map +1 -0
  1102. package/dist/system/entities/report.entity.d.ts +35 -0
  1103. package/dist/system/entities/report.entity.js +117 -0
  1104. package/dist/system/entities/report.entity.js.map +1 -0
  1105. package/dist/system/entities/report.filter.entity.d.ts +19 -0
  1106. package/dist/system/entities/report.filter.entity.js +79 -0
  1107. package/dist/system/entities/report.filter.entity.js.map +1 -0
  1108. package/dist/system/entities/report.param.entity.d.ts +12 -0
  1109. package/dist/system/entities/report.param.entity.js +53 -0
  1110. package/dist/system/entities/report.param.entity.js.map +1 -0
  1111. package/dist/system/entities/report.relationship.entity.d.ts +10 -0
  1112. package/dist/system/entities/report.relationship.entity.js +45 -0
  1113. package/dist/system/entities/report.relationship.entity.js.map +1 -0
  1114. package/dist/system/entities/report.role.entity.d.ts +10 -0
  1115. package/dist/system/entities/report.role.entity.js +45 -0
  1116. package/dist/system/entities/report.role.entity.js.map +1 -0
  1117. package/dist/system/entities/scheduled.event.entity.d.ts +15 -0
  1118. package/dist/system/entities/scheduled.event.entity.js +67 -0
  1119. package/dist/system/entities/scheduled.event.entity.js.map +1 -0
  1120. package/dist/system/entities/secondary.axis.entity.d.ts +10 -0
  1121. package/dist/system/entities/secondary.axis.entity.js +47 -0
  1122. package/dist/system/entities/secondary.axis.entity.js.map +1 -0
  1123. package/dist/system/entities/security.rule.entity.d.ts +15 -0
  1124. package/dist/system/entities/security.rule.entity.js +74 -0
  1125. package/dist/system/entities/security.rule.entity.js.map +1 -0
  1126. package/dist/system/entities/service.entity.d.ts +7 -0
  1127. package/dist/system/entities/service.entity.js +37 -0
  1128. package/dist/system/entities/service.entity.js.map +1 -0
  1129. package/dist/system/entities/sms.message.entity.d.ts +18 -0
  1130. package/dist/system/entities/sms.message.entity.js +74 -0
  1131. package/dist/system/entities/sms.message.entity.js.map +1 -0
  1132. package/dist/system/entities/sms.template.entity.d.ts +13 -0
  1133. package/dist/system/entities/sms.template.entity.js +59 -0
  1134. package/dist/system/entities/sms.template.entity.js.map +1 -0
  1135. package/dist/system/entities/system.script.entity.d.ts +11 -0
  1136. package/dist/system/entities/system.script.entity.js +55 -0
  1137. package/dist/system/entities/system.script.entity.js.map +1 -0
  1138. package/dist/system/entities/ui.action.entity.d.ts +29 -0
  1139. package/dist/system/entities/ui.action.entity.js +116 -0
  1140. package/dist/system/entities/ui.action.entity.js.map +1 -0
  1141. package/dist/system/entities/ui.action.permission.entity.d.ts +10 -0
  1142. package/dist/system/entities/ui.action.permission.entity.js +45 -0
  1143. package/dist/system/entities/ui.action.permission.entity.js.map +1 -0
  1144. package/dist/system/entities/ui.action.role.entity.d.ts +10 -0
  1145. package/dist/system/entities/ui.action.role.entity.js +45 -0
  1146. package/dist/system/entities/ui.action.role.entity.js.map +1 -0
  1147. package/dist/system/entities/user.group.entity.d.ts +15 -0
  1148. package/dist/system/entities/user.group.entity.js +66 -0
  1149. package/dist/system/entities/user.group.entity.js.map +1 -0
  1150. package/dist/system/entities/user.group.member.entity.d.ts +10 -0
  1151. package/dist/system/entities/user.group.member.entity.js +45 -0
  1152. package/dist/system/entities/user.group.member.entity.js.map +1 -0
  1153. package/dist/system/entities/user.group.permission.entity.d.ts +6 -0
  1154. package/dist/system/entities/user.group.permission.entity.js +33 -0
  1155. package/dist/system/entities/user.group.permission.entity.js.map +1 -0
  1156. package/dist/system/entities/user.group.role.entity.d.ts +10 -0
  1157. package/dist/system/entities/user.group.role.entity.js +45 -0
  1158. package/dist/system/entities/user.group.role.entity.js.map +1 -0
  1159. package/dist/system/entities/user.preference.entity.d.ts +7 -0
  1160. package/dist/system/entities/user.preference.entity.js +40 -0
  1161. package/dist/system/entities/user.preference.entity.js.map +1 -0
  1162. package/dist/system/entities/whatsapp.template.entity.d.ts +7 -0
  1163. package/dist/system/entities/whatsapp.template.entity.js +37 -0
  1164. package/dist/system/entities/whatsapp.template.entity.js.map +1 -0
  1165. package/dist/system/es6.classes.d.ts +155 -0
  1166. package/dist/system/es6.classes.js +320 -0
  1167. package/dist/system/es6.classes.js.map +1 -0
  1168. package/dist/system/index.d.ts +10 -0
  1169. package/dist/system/index.js +27 -0
  1170. package/dist/system/index.js.map +1 -0
  1171. package/dist/system/jobs/clean.scheduled.event.job.d.ts +12 -0
  1172. package/dist/system/jobs/clean.scheduled.event.job.js +37 -0
  1173. package/dist/system/jobs/clean.scheduled.event.job.js.map +1 -0
  1174. package/dist/system/jobs/column.mapper.job.d.ts +11 -0
  1175. package/dist/system/jobs/column.mapper.job.js +65 -0
  1176. package/dist/system/jobs/column.mapper.job.js.map +1 -0
  1177. package/dist/system/jobs/comment.job.d.ts +10 -0
  1178. package/dist/system/jobs/comment.job.js +45 -0
  1179. package/dist/system/jobs/comment.job.js.map +1 -0
  1180. package/dist/system/jobs/document.job.d.ts +10 -0
  1181. package/dist/system/jobs/document.job.js +45 -0
  1182. package/dist/system/jobs/document.job.js.map +1 -0
  1183. package/dist/system/jobs/index.d.ts +17 -0
  1184. package/dist/system/jobs/index.js +34 -0
  1185. package/dist/system/jobs/index.js.map +1 -0
  1186. package/dist/system/jobs/mail.validation.job.d.ts +9 -0
  1187. package/dist/system/jobs/mail.validation.job.js +28 -0
  1188. package/dist/system/jobs/mail.validation.job.js.map +1 -0
  1189. package/dist/system/jobs/mobile.validation.job.d.ts +9 -0
  1190. package/dist/system/jobs/mobile.validation.job.js +28 -0
  1191. package/dist/system/jobs/mobile.validation.job.js.map +1 -0
  1192. package/dist/system/jobs/model.scanner.job.d.ts +20 -0
  1193. package/dist/system/jobs/model.scanner.job.js +220 -0
  1194. package/dist/system/jobs/model.scanner.job.js.map +1 -0
  1195. package/dist/system/jobs/property.job.d.ts +10 -0
  1196. package/dist/system/jobs/property.job.js +32 -0
  1197. package/dist/system/jobs/property.job.js.map +1 -0
  1198. package/dist/system/jobs/refresh.property.cache.job.d.ts +10 -0
  1199. package/dist/system/jobs/refresh.property.cache.job.js +44 -0
  1200. package/dist/system/jobs/refresh.property.cache.job.js.map +1 -0
  1201. package/dist/system/jobs/relationship.mapper.job.d.ts +11 -0
  1202. package/dist/system/jobs/relationship.mapper.job.js +60 -0
  1203. package/dist/system/jobs/relationship.mapper.job.js.map +1 -0
  1204. package/dist/system/jobs/report.column.sync.job.d.ts +18 -0
  1205. package/dist/system/jobs/report.column.sync.job.js +133 -0
  1206. package/dist/system/jobs/report.column.sync.job.js.map +1 -0
  1207. package/dist/system/jobs/scheduled.event.job.d.ts +11 -0
  1208. package/dist/system/jobs/scheduled.event.job.js +48 -0
  1209. package/dist/system/jobs/scheduled.event.job.js.map +1 -0
  1210. package/dist/system/jobs/scheduled.events.job.d.ts +10 -0
  1211. package/dist/system/jobs/scheduled.events.job.js +43 -0
  1212. package/dist/system/jobs/scheduled.events.job.js.map +1 -0
  1213. package/dist/system/jobs/sms.message.job.d.ts +12 -0
  1214. package/dist/system/jobs/sms.message.job.js +39 -0
  1215. package/dist/system/jobs/sms.message.job.js.map +1 -0
  1216. package/dist/system/jobs/user.group.member.job.d.ts +14 -0
  1217. package/dist/system/jobs/user.group.member.job.js +101 -0
  1218. package/dist/system/jobs/user.group.member.job.js.map +1 -0
  1219. package/dist/system/jobs/user.group.permission.job.d.ts +10 -0
  1220. package/dist/system/jobs/user.group.permission.job.js +59 -0
  1221. package/dist/system/jobs/user.group.permission.job.js.map +1 -0
  1222. package/dist/system/jobs/user.group.role.job.d.ts +10 -0
  1223. package/dist/system/jobs/user.group.role.job.js +59 -0
  1224. package/dist/system/jobs/user.group.role.job.js.map +1 -0
  1225. package/dist/system/libraries/business.rule.filter.validator.d.ts +10 -0
  1226. package/dist/system/libraries/business.rule.filter.validator.js +37 -0
  1227. package/dist/system/libraries/business.rule.filter.validator.js.map +1 -0
  1228. package/dist/system/libraries/business.rule.query.evaluator.d.ts +10 -0
  1229. package/dist/system/libraries/business.rule.query.evaluator.js +40 -0
  1230. package/dist/system/libraries/business.rule.query.evaluator.js.map +1 -0
  1231. package/dist/system/libraries/column.manager.d.ts +17 -0
  1232. package/dist/system/libraries/column.manager.js +70 -0
  1233. package/dist/system/libraries/column.manager.js.map +1 -0
  1234. package/dist/system/libraries/index.d.ts +6 -0
  1235. package/dist/system/libraries/index.js +23 -0
  1236. package/dist/system/libraries/index.js.map +1 -0
  1237. package/dist/system/libraries/model.sync.d.ts +15 -0
  1238. package/dist/system/libraries/model.sync.js +101 -0
  1239. package/dist/system/libraries/model.sync.js.map +1 -0
  1240. package/dist/system/libraries/security.rule.evaluator.d.ts +6 -0
  1241. package/dist/system/libraries/security.rule.evaluator.js +26 -0
  1242. package/dist/system/libraries/security.rule.evaluator.js.map +1 -0
  1243. package/dist/system/libraries/sync.dynamo.tables.d.ts +12 -0
  1244. package/dist/system/libraries/sync.dynamo.tables.js +64 -0
  1245. package/dist/system/libraries/sync.dynamo.tables.js.map +1 -0
  1246. package/dist/system/modifiers/index.d.ts +2 -0
  1247. package/dist/system/modifiers/index.js +19 -0
  1248. package/dist/system/modifiers/index.js.map +1 -0
  1249. package/dist/system/modifiers/menu.list.modifier.d.ts +9 -0
  1250. package/dist/system/modifiers/menu.list.modifier.js +45 -0
  1251. package/dist/system/modifiers/menu.list.modifier.js.map +1 -0
  1252. package/dist/system/modifiers/module.list.modifier.d.ts +8 -0
  1253. package/dist/system/modifiers/module.list.modifier.js +37 -0
  1254. package/dist/system/modifiers/module.list.modifier.js.map +1 -0
  1255. package/dist/system/services/aws.s3.service.d.ts +22 -0
  1256. package/dist/system/services/aws.s3.service.js +139 -0
  1257. package/dist/system/services/aws.s3.service.js.map +1 -0
  1258. package/dist/system/services/business.rule.service.d.ts +11 -0
  1259. package/dist/system/services/business.rule.service.js +62 -0
  1260. package/dist/system/services/business.rule.service.js.map +1 -0
  1261. package/dist/system/services/client.script.service.d.ts +3 -0
  1262. package/dist/system/services/client.script.service.js +39 -0
  1263. package/dist/system/services/client.script.service.js.map +1 -0
  1264. package/dist/system/services/column.service.d.ts +4 -0
  1265. package/dist/system/services/column.service.js +33 -0
  1266. package/dist/system/services/column.service.js.map +1 -0
  1267. package/dist/system/services/comment.service.d.ts +12 -0
  1268. package/dist/system/services/comment.service.js +35 -0
  1269. package/dist/system/services/comment.service.js.map +1 -0
  1270. package/dist/system/services/common.service.d.ts +12 -0
  1271. package/dist/system/services/common.service.js +62 -0
  1272. package/dist/system/services/common.service.js.map +1 -0
  1273. package/dist/system/services/document.service.d.ts +13 -0
  1274. package/dist/system/services/document.service.js +55 -0
  1275. package/dist/system/services/document.service.js.map +1 -0
  1276. package/dist/system/services/es6.jobs.service.d.ts +40 -0
  1277. package/dist/system/services/es6.jobs.service.js +101 -0
  1278. package/dist/system/services/es6.jobs.service.js.map +1 -0
  1279. package/dist/system/services/es6.service.d.ts +50 -0
  1280. package/dist/system/services/es6.service.js +123 -0
  1281. package/dist/system/services/es6.service.js.map +1 -0
  1282. package/dist/system/services/event.detail.service.d.ts +4 -0
  1283. package/dist/system/services/event.detail.service.js +32 -0
  1284. package/dist/system/services/event.detail.service.js.map +1 -0
  1285. package/dist/system/services/event.queue.service.d.ts +5 -0
  1286. package/dist/system/services/event.queue.service.js +47 -0
  1287. package/dist/system/services/event.queue.service.js.map +1 -0
  1288. package/dist/system/services/form.service.d.ts +7 -0
  1289. package/dist/system/services/form.service.js +35 -0
  1290. package/dist/system/services/form.service.js.map +1 -0
  1291. package/dist/system/services/index.d.ts +23 -0
  1292. package/dist/system/services/index.js +40 -0
  1293. package/dist/system/services/index.js.map +1 -0
  1294. package/dist/system/services/list.service.d.ts +37 -0
  1295. package/dist/system/services/list.service.js +73 -0
  1296. package/dist/system/services/list.service.js.map +1 -0
  1297. package/dist/system/services/mail.validation.service.d.ts +14 -0
  1298. package/dist/system/services/mail.validation.service.js +84 -0
  1299. package/dist/system/services/mail.validation.service.js.map +1 -0
  1300. package/dist/system/services/menu.service.d.ts +19 -0
  1301. package/dist/system/services/menu.service.js +113 -0
  1302. package/dist/system/services/menu.service.js.map +1 -0
  1303. package/dist/system/services/mobile.validation.service.d.ts +14 -0
  1304. package/dist/system/services/mobile.validation.service.js +88 -0
  1305. package/dist/system/services/mobile.validation.service.js.map +1 -0
  1306. package/dist/system/services/model.service.d.ts +21 -0
  1307. package/dist/system/services/model.service.js +119 -0
  1308. package/dist/system/services/model.service.js.map +1 -0
  1309. package/dist/system/services/preference.service.d.ts +10 -0
  1310. package/dist/system/services/preference.service.js +64 -0
  1311. package/dist/system/services/preference.service.js.map +1 -0
  1312. package/dist/system/services/property.service.d.ts +9 -0
  1313. package/dist/system/services/property.service.js +63 -0
  1314. package/dist/system/services/property.service.js.map +1 -0
  1315. package/dist/system/services/report.service.d.ts +12 -0
  1316. package/dist/system/services/report.service.js +58 -0
  1317. package/dist/system/services/report.service.js.map +1 -0
  1318. package/dist/system/services/scheduled.event.service.d.ts +10 -0
  1319. package/dist/system/services/scheduled.event.service.js +104 -0
  1320. package/dist/system/services/scheduled.event.service.js.map +1 -0
  1321. package/dist/system/services/security.rule.service.d.ts +12 -0
  1322. package/dist/system/services/security.rule.service.js +90 -0
  1323. package/dist/system/services/security.rule.service.js.map +1 -0
  1324. package/dist/system/services/ui.action.service.d.ts +9 -0
  1325. package/dist/system/services/ui.action.service.js +56 -0
  1326. package/dist/system/services/ui.action.service.js.map +1 -0
  1327. package/dist/system/services/upload.service.d.ts +16 -0
  1328. package/dist/system/services/upload.service.js +75 -0
  1329. package/dist/system/services/upload.service.js.map +1 -0
  1330. package/dist/system/services/user.preference.service.d.ts +11 -0
  1331. package/dist/system/services/user.preference.service.js +76 -0
  1332. package/dist/system/services/user.preference.service.js.map +1 -0
  1333. package/dist/system/subscribers/column.subscriber.d.ts +12 -0
  1334. package/dist/system/subscribers/column.subscriber.js +39 -0
  1335. package/dist/system/subscribers/column.subscriber.js.map +1 -0
  1336. package/dist/system/subscribers/comment.subscriber.d.ts +12 -0
  1337. package/dist/system/subscribers/comment.subscriber.js +39 -0
  1338. package/dist/system/subscribers/comment.subscriber.js.map +1 -0
  1339. package/dist/system/subscribers/document.subscriber.d.ts +12 -0
  1340. package/dist/system/subscribers/document.subscriber.js +39 -0
  1341. package/dist/system/subscribers/document.subscriber.js.map +1 -0
  1342. package/dist/system/subscribers/index.d.ts +12 -0
  1343. package/dist/system/subscribers/index.js +29 -0
  1344. package/dist/system/subscribers/index.js.map +1 -0
  1345. package/dist/system/subscribers/mail.validation.subscriber.d.ts +12 -0
  1346. package/dist/system/subscribers/mail.validation.subscriber.js +39 -0
  1347. package/dist/system/subscribers/mail.validation.subscriber.js.map +1 -0
  1348. package/dist/system/subscribers/mobile.validation.subscriber.d.ts +12 -0
  1349. package/dist/system/subscribers/mobile.validation.subscriber.js +39 -0
  1350. package/dist/system/subscribers/mobile.validation.subscriber.js.map +1 -0
  1351. package/dist/system/subscribers/property.subscriber.d.ts +14 -0
  1352. package/dist/system/subscribers/property.subscriber.js +48 -0
  1353. package/dist/system/subscribers/property.subscriber.js.map +1 -0
  1354. package/dist/system/subscribers/relationship.subscriber.d.ts +11 -0
  1355. package/dist/system/subscribers/relationship.subscriber.js +37 -0
  1356. package/dist/system/subscribers/relationship.subscriber.js.map +1 -0
  1357. package/dist/system/subscribers/scheduled.event.subscriber.d.ts +14 -0
  1358. package/dist/system/subscribers/scheduled.event.subscriber.js +45 -0
  1359. package/dist/system/subscribers/scheduled.event.subscriber.js.map +1 -0
  1360. package/dist/system/subscribers/sms.message.subscriber.d.ts +12 -0
  1361. package/dist/system/subscribers/sms.message.subscriber.js +39 -0
  1362. package/dist/system/subscribers/sms.message.subscriber.js.map +1 -0
  1363. package/dist/system/subscribers/user.group.member.subscriber.d.ts +12 -0
  1364. package/dist/system/subscribers/user.group.member.subscriber.js +39 -0
  1365. package/dist/system/subscribers/user.group.member.subscriber.js.map +1 -0
  1366. package/dist/system/subscribers/user.group.permission.subscriber.d.ts +12 -0
  1367. package/dist/system/subscribers/user.group.permission.subscriber.js +39 -0
  1368. package/dist/system/subscribers/user.group.permission.subscriber.js.map +1 -0
  1369. package/dist/system/subscribers/user.group.role.subscriber.d.ts +12 -0
  1370. package/dist/system/subscribers/user.group.role.subscriber.js +39 -0
  1371. package/dist/system/subscribers/user.group.role.subscriber.js.map +1 -0
  1372. package/dist/system/system.module.d.ts +2 -0
  1373. package/dist/system/system.module.js +26 -0
  1374. package/dist/system/system.module.js.map +1 -0
  1375. package/dist/tsconfig.build.tsbuildinfo +1 -0
  1376. package/dist/worker.d.ts +1 -0
  1377. package/dist/worker.js +16 -0
  1378. package/dist/worker.js.map +1 -0
  1379. package/dist/worker.service.d.ts +11 -0
  1380. package/dist/worker.service.js +39 -0
  1381. package/dist/worker.service.js.map +1 -0
  1382. package/package.json +1 -1
@@ -0,0 +1,62 @@
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.RefreshTokenEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const common_entity_1 = require("../../common/libraries/common.entity");
15
+ const device_token_entity_1 = require("./device.token.entity");
16
+ const user_entity_1 = require("./user.entity");
17
+ let RefreshTokenEntity = class RefreshTokenEntity extends common_entity_1.CommonEntity {
18
+ };
19
+ exports.RefreshTokenEntity = RefreshTokenEntity;
20
+ __decorate([
21
+ (0, typeorm_1.Generated)('uuid'),
22
+ (0, typeorm_1.Column)(),
23
+ __metadata("design:type", String)
24
+ ], RefreshTokenEntity.prototype, "uuid", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)(),
27
+ __metadata("design:type", String)
28
+ ], RefreshTokenEntity.prototype, "token", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)(),
31
+ __metadata("design:type", Number)
32
+ ], RefreshTokenEntity.prototype, "user_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)(),
35
+ __metadata("design:type", Number)
36
+ ], RefreshTokenEntity.prototype, "device_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)(),
39
+ __metadata("design:type", Date)
40
+ ], RefreshTokenEntity.prototype, "validity_datetime", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)(),
43
+ __metadata("design:type", Date)
44
+ ], RefreshTokenEntity.prototype, "last_access_datetime", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)('json'),
47
+ __metadata("design:type", Object)
48
+ ], RefreshTokenEntity.prototype, "attributes", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.UserEntity),
51
+ (0, typeorm_1.JoinColumn)({ name: 'user_id' }),
52
+ __metadata("design:type", user_entity_1.UserEntity)
53
+ ], RefreshTokenEntity.prototype, "user", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.ManyToOne)(() => device_token_entity_1.DeviceTokenEntity),
56
+ (0, typeorm_1.JoinColumn)({ name: 'device_id' }),
57
+ __metadata("design:type", device_token_entity_1.DeviceTokenEntity)
58
+ ], RefreshTokenEntity.prototype, "device", void 0);
59
+ exports.RefreshTokenEntity = RefreshTokenEntity = __decorate([
60
+ (0, typeorm_1.Entity)('sys_refresh_tokens')
61
+ ], RefreshTokenEntity);
62
+ //# sourceMappingURL=refresh.token.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refresh.token.entity.js","sourceRoot":"","sources":["../../../src/auth/entities/refresh.token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2E;AAC3E,wEAAoE;AACpE,+DAA0D;AAC1D,+CAA2C;AASpC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,4BAAY;CA8BnD,CAAA;AA9BY,gDAAkB;AAG3B;IAFC,IAAA,mBAAS,EAAC,MAAM,CAAC;IACjB,IAAA,gBAAM,GAAE;;gDACI;AAGb;IADC,IAAA,gBAAM,GAAE;;iDACK;AAGd;IADC,IAAA,gBAAM,GAAE;;mDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;qDACS;AAGlB;IADC,IAAA,gBAAM,GAAE;8BACU,IAAI;6DAAC;AAGxB;IADC,IAAA,gBAAM,GAAE;8BACa,IAAI;gEAAC;AAEX;IAAf,IAAA,gBAAM,EAAC,MAAM,CAAC;;sDAAiB;AAKhC;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;IAC3B,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,wBAAU;gDAAC;AAIjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAiB,CAAC;IAClC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC1B,uCAAiB;kDAAC;6BA7BjB,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,kBAAkB,CA8B9B"}
@@ -0,0 +1,27 @@
1
+ import { CommonEntity } from '../../common/libraries/common.entity';
2
+ import { PermissionEntity } from '../../security/entities/permission.entity';
3
+ import { RoleEntity } from '../../security/entities/role.entity';
4
+ import { UserPermissionEntity } from '../../security/entities/user.permission.entity';
5
+ import { UserRoleEntity } from '../../security/entities/user.role.entity';
6
+ import { UserGroupMemberEntity } from '../../system/entities/user.group.member.entity';
7
+ import { UserReferralEntity } from './user.referral.entity';
8
+ export declare class UserEntity extends CommonEntity {
9
+ name: string;
10
+ email: string;
11
+ password: string;
12
+ mobile: number;
13
+ dialing_code: number;
14
+ attempts: number;
15
+ image_url: string;
16
+ mobile_verified_at: Date;
17
+ email_verified_at: Date;
18
+ attributes: any;
19
+ validatePassword(password: string): boolean;
20
+ user_roles: UserRoleEntity[];
21
+ user_permissions: UserPermissionEntity[];
22
+ roles: RoleEntity[];
23
+ permissions: PermissionEntity[];
24
+ referrred_users: UserReferralEntity[];
25
+ referrals: UserReferralEntity[];
26
+ user_group_members: UserGroupMemberEntity[];
27
+ }
@@ -0,0 +1,116 @@
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.UserEntity = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const typeorm_1 = require("typeorm");
16
+ const common_entity_1 = require("../../common/libraries/common.entity");
17
+ const hash_1 = require("../../common/libraries/hash");
18
+ const permission_entity_1 = require("../../security/entities/permission.entity");
19
+ const role_entity_1 = require("../../security/entities/role.entity");
20
+ const user_permission_entity_1 = require("../../security/entities/user.permission.entity");
21
+ const user_role_entity_1 = require("../../security/entities/user.role.entity");
22
+ const user_group_member_entity_1 = require("../../system/entities/user.group.member.entity");
23
+ const user_referral_entity_1 = require("./user.referral.entity");
24
+ let UserEntity = class UserEntity extends common_entity_1.CommonEntity {
25
+ validatePassword(password) {
26
+ if (!this.password)
27
+ return false;
28
+ return hash_1.Hash.compare(password, this.password);
29
+ }
30
+ };
31
+ exports.UserEntity = UserEntity;
32
+ __decorate([
33
+ (0, typeorm_1.Column)(),
34
+ (0, class_validator_1.IsNotEmpty)(),
35
+ __metadata("design:type", String)
36
+ ], UserEntity.prototype, "name", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)(),
39
+ (0, class_validator_1.IsEmail)(),
40
+ __metadata("design:type", String)
41
+ ], UserEntity.prototype, "email", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)(),
44
+ (0, class_transformer_1.Exclude)({ toPlainOnly: true }),
45
+ __metadata("design:type", String)
46
+ ], UserEntity.prototype, "password", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)(),
49
+ __metadata("design:type", Number)
50
+ ], UserEntity.prototype, "mobile", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)(),
53
+ __metadata("design:type", Number)
54
+ ], UserEntity.prototype, "dialing_code", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)(),
57
+ __metadata("design:type", Number)
58
+ ], UserEntity.prototype, "attempts", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)(),
61
+ __metadata("design:type", String)
62
+ ], UserEntity.prototype, "image_url", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)(),
65
+ __metadata("design:type", Date)
66
+ ], UserEntity.prototype, "mobile_verified_at", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.Column)(),
69
+ __metadata("design:type", Date)
70
+ ], UserEntity.prototype, "email_verified_at", void 0);
71
+ __decorate([
72
+ (0, typeorm_1.Column)('json'),
73
+ __metadata("design:type", Object)
74
+ ], UserEntity.prototype, "attributes", void 0);
75
+ __decorate([
76
+ (0, typeorm_1.OneToMany)(() => user_role_entity_1.UserRoleEntity, (user_roles) => user_roles.user),
77
+ __metadata("design:type", Array)
78
+ ], UserEntity.prototype, "user_roles", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.OneToMany)(() => user_permission_entity_1.UserPermissionEntity, (user_permissions) => user_permissions.user),
81
+ __metadata("design:type", Array)
82
+ ], UserEntity.prototype, "user_permissions", void 0);
83
+ __decorate([
84
+ (0, typeorm_1.ManyToMany)(() => role_entity_1.RoleEntity),
85
+ (0, typeorm_1.JoinTable)({
86
+ name: 'sys_user_roles',
87
+ joinColumn: { name: 'user_id' },
88
+ inverseJoinColumn: { name: 'role_id' },
89
+ }),
90
+ __metadata("design:type", Array)
91
+ ], UserEntity.prototype, "roles", void 0);
92
+ __decorate([
93
+ (0, typeorm_1.ManyToMany)(() => permission_entity_1.PermissionEntity),
94
+ (0, typeorm_1.JoinTable)({
95
+ name: 'sys_user_permissions',
96
+ joinColumn: { name: 'user_id' },
97
+ inverseJoinColumn: { name: 'permission_id' },
98
+ }),
99
+ __metadata("design:type", Array)
100
+ ], UserEntity.prototype, "permissions", void 0);
101
+ __decorate([
102
+ (0, typeorm_1.OneToMany)(() => user_referral_entity_1.UserReferralEntity, (referrred_users) => referrred_users.referred_by),
103
+ __metadata("design:type", Array)
104
+ ], UserEntity.prototype, "referrred_users", void 0);
105
+ __decorate([
106
+ (0, typeorm_1.OneToMany)(() => user_referral_entity_1.UserReferralEntity, (referrals) => referrals.user),
107
+ __metadata("design:type", Array)
108
+ ], UserEntity.prototype, "referrals", void 0);
109
+ __decorate([
110
+ (0, typeorm_1.OneToMany)(() => user_group_member_entity_1.UserGroupMemberEntity, (user_group_members) => user_group_members.user),
111
+ __metadata("design:type", Array)
112
+ ], UserEntity.prototype, "user_group_members", void 0);
113
+ exports.UserEntity = UserEntity = __decorate([
114
+ (0, typeorm_1.Entity)('sys_users')
115
+ ], UserEntity);
116
+ //# sourceMappingURL=user.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/auth/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4C;AAC5C,qDAAsD;AACtD,qCAA2E;AAC3E,wEAAoE;AACpE,sDAAmD;AACnD,iFAA6E;AAC7E,qEAAiE;AACjE,2FAAsF;AACtF,+EAA0E;AAC1E,6FAAuF;AACvF,iEAA4D;AAGrD,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,4BAAY;IA0CxC,gBAAgB,CAAC,QAAgB;QAC7B,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,OAAO,KAAK,CAAC;QAEjC,OAAO,WAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;CAiCJ,CAAA;AA/EY,gCAAU;AAGnB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;wCACA;AAIb;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,yBAAO,GAAE;;yCACI;AAId;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,2BAAO,EAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;;4CACd;AAGjB;IADC,IAAA,gBAAM,GAAE;;0CACM;AAGf;IADC,IAAA,gBAAM,GAAE;;gDACY;AAGrB;IADC,IAAA,gBAAM,GAAE;;4CACQ;AAGjB;IADC,IAAA,gBAAM,GAAE;;6CACS;AAGlB;IADC,IAAA,gBAAM,GAAE;8BACW,IAAI;sDAAC;AAGzB;IADC,IAAA,gBAAM,GAAE;8BACU,IAAI;qDAAC;AAGxB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;8CACC;AAkBhB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;;8CACpC;AAG7B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,EAAE,CAAC,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC;;oDAC1C;AAQzC;IANC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;IAC5B,IAAA,mBAAS,EAAC;QACP,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC/B,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KACzC,CAAC;;yCACkB;AAQpB;IANC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC;IAClC,IAAA,mBAAS,EAAC;QACP,IAAI,EAAE,sBAAsB;QAC5B,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC/B,iBAAiB,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;KAC/C,CAAC;;+CAC8B;AAGhC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yCAAkB,EAAE,CAAC,eAAe,EAAE,EAAE,CAAC,eAAe,CAAC,WAAW,CAAC;;mDAChD;AAGtC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yCAAkB,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC;;6CACnC;AAGhC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gDAAqB,EAAE,CAAC,kBAAkB,EAAE,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC;;sDAC5C;qBA9EnC,UAAU;IADtB,IAAA,gBAAM,EAAC,WAAW,CAAC;GACP,UAAU,CA+EtB"}
@@ -0,0 +1,11 @@
1
+ import { CommonEntity } from '../../common/libraries/common.entity';
2
+ import { UserEntity } from './user.entity';
3
+ export declare class UserReferralEntity extends CommonEntity {
4
+ user_id: number;
5
+ referred_by_id: number;
6
+ dynamic_link_url: string;
7
+ referral_code: string;
8
+ attributes: any;
9
+ user: UserEntity;
10
+ referred_by: UserEntity;
11
+ }
@@ -0,0 +1,52 @@
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.UserReferralEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const common_entity_1 = require("../../common/libraries/common.entity");
15
+ const user_entity_1 = require("./user.entity");
16
+ let UserReferralEntity = class UserReferralEntity extends common_entity_1.CommonEntity {
17
+ };
18
+ exports.UserReferralEntity = UserReferralEntity;
19
+ __decorate([
20
+ (0, typeorm_1.Column)(),
21
+ __metadata("design:type", Number)
22
+ ], UserReferralEntity.prototype, "user_id", void 0);
23
+ __decorate([
24
+ (0, typeorm_1.Column)(),
25
+ __metadata("design:type", Number)
26
+ ], UserReferralEntity.prototype, "referred_by_id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)(),
29
+ __metadata("design:type", String)
30
+ ], UserReferralEntity.prototype, "dynamic_link_url", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)(),
33
+ __metadata("design:type", String)
34
+ ], UserReferralEntity.prototype, "referral_code", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)('json'),
37
+ __metadata("design:type", Object)
38
+ ], UserReferralEntity.prototype, "attributes", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.UserEntity),
41
+ (0, typeorm_1.JoinColumn)({ name: 'user_id' }),
42
+ __metadata("design:type", user_entity_1.UserEntity)
43
+ ], UserReferralEntity.prototype, "user", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.UserEntity),
46
+ (0, typeorm_1.JoinColumn)({ name: 'referred_by_id' }),
47
+ __metadata("design:type", user_entity_1.UserEntity)
48
+ ], UserReferralEntity.prototype, "referred_by", void 0);
49
+ exports.UserReferralEntity = UserReferralEntity = __decorate([
50
+ (0, typeorm_1.Entity)('sys_user_referrals')
51
+ ], UserReferralEntity);
52
+ //# sourceMappingURL=user.referral.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.referral.entity.js","sourceRoot":"","sources":["../../../src/auth/entities/user.referral.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,wEAAoE;AACpE,+CAA2C;AASpC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,4BAAY;CAuBnD,CAAA;AAvBY,gDAAkB;AAE3B;IADC,IAAA,gBAAM,GAAE;;mDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;0DACc;AAGvB;IADC,IAAA,gBAAM,GAAE;;4DACgB;AAGzB;IADC,IAAA,gBAAM,GAAE;;yDACa;AAEN;IAAf,IAAA,gBAAM,EAAC,MAAM,CAAC;;sDAAiB;AAKhC;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;IAC3B,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,wBAAU;gDAAC;AAIjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;IAC3B,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;8BAC1B,wBAAU;uDAAC;6BAtBf,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,kBAAkB,CAuB9B"}
@@ -0,0 +1,34 @@
1
+ import { AdminAuthController } from './controllers/admin.auth.controller';
2
+ import { SocialController } from './controllers/social.controller';
3
+ import { UserController } from './controllers/user.controller';
4
+ import { CreateUserDto } from './dtos/create.user.dto';
5
+ import { OfflineUserDto } from './dtos/offline.user.dto';
6
+ import { PermissionAssignmentDto } from './dtos/permission.assignment.dto';
7
+ import { RoleAssignmentDto } from './dtos/role.assignment.dto';
8
+ import { UpdateUserDto } from './dtos/update.user.dto';
9
+ import { UserLoginDto } from './dtos/user.login.dto';
10
+ import { UserRolesAccessObjectDto } from './dtos/user.roles.access.object.dto';
11
+ import { CountryEntity } from './entities/country.entity';
12
+ import { CreatorEntity } from './entities/creator.entity';
13
+ import { DeviceTokenEntity } from './entities/device.token.entity';
14
+ import { RefreshTokenEntity } from './entities/refresh.token.entity';
15
+ import { UserReferralEntity } from './entities/user.referral.entity';
16
+ import { BasicAuthMiddleware } from './middlewares/basic.auth.middleware';
17
+ import { InternalMiddleware } from './middlewares/internal.middleware';
18
+ import { JwtMiddleware } from './middlewares/jwt.middleware';
19
+ import { RestrictedMiddleware } from './middlewares/restricted.middleware';
20
+ import { AccessManager } from './services/access.manager';
21
+ import { AuthService } from './services/auth.service';
22
+ import { DeviceTokenService } from './services/device.token.service';
23
+ import { Es6Service } from './services/es6.service';
24
+ import { RefreshTokenService } from './services/refresh.token.service';
25
+ import { SocialService } from './services/social.service';
26
+ import { UserService } from './services/user.service';
27
+ declare const es6Classes: {
28
+ controllers: (typeof SocialController | typeof UserController | typeof AdminAuthController)[];
29
+ dtos: (typeof UserRolesAccessObjectDto | typeof UserLoginDto | typeof PermissionAssignmentDto | typeof RoleAssignmentDto | typeof CreateUserDto | typeof OfflineUserDto | typeof UpdateUserDto)[];
30
+ entities: (typeof CreatorEntity | typeof UserReferralEntity | typeof DeviceTokenEntity | typeof RefreshTokenEntity | typeof CountryEntity)[];
31
+ middlewares: (typeof BasicAuthMiddleware | typeof InternalMiddleware | typeof JwtMiddleware | typeof RestrictedMiddleware)[];
32
+ services: (typeof RefreshTokenService | typeof AccessManager | typeof SocialService | typeof AuthService | typeof UserService | typeof DeviceTokenService | typeof Es6Service)[];
33
+ };
34
+ export default es6Classes;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const admin_auth_controller_1 = require("./controllers/admin.auth.controller");
4
+ const social_controller_1 = require("./controllers/social.controller");
5
+ const user_controller_1 = require("./controllers/user.controller");
6
+ const create_user_dto_1 = require("./dtos/create.user.dto");
7
+ const offline_user_dto_1 = require("./dtos/offline.user.dto");
8
+ const permission_assignment_dto_1 = require("./dtos/permission.assignment.dto");
9
+ const role_assignment_dto_1 = require("./dtos/role.assignment.dto");
10
+ const update_user_dto_1 = require("./dtos/update.user.dto");
11
+ const user_access_dto_1 = require("./dtos/user.access.dto");
12
+ const user_login_dto_1 = require("./dtos/user.login.dto");
13
+ const user_roles_access_object_dto_1 = require("./dtos/user.roles.access.object.dto");
14
+ const country_entity_1 = require("./entities/country.entity");
15
+ const creator_entity_1 = require("./entities/creator.entity");
16
+ const device_token_entity_1 = require("./entities/device.token.entity");
17
+ const refresh_token_entity_1 = require("./entities/refresh.token.entity");
18
+ const user_entity_1 = require("./entities/user.entity");
19
+ const user_referral_entity_1 = require("./entities/user.referral.entity");
20
+ const basic_auth_middleware_1 = require("./middlewares/basic.auth.middleware");
21
+ const internal_middleware_1 = require("./middlewares/internal.middleware");
22
+ const jwt_middleware_1 = require("./middlewares/jwt.middleware");
23
+ const restricted_middleware_1 = require("./middlewares/restricted.middleware");
24
+ const access_manager_1 = require("./services/access.manager");
25
+ const auth_service_1 = require("./services/auth.service");
26
+ const device_token_service_1 = require("./services/device.token.service");
27
+ const es6_service_1 = require("./services/es6.service");
28
+ const refresh_token_service_1 = require("./services/refresh.token.service");
29
+ const social_service_1 = require("./services/social.service");
30
+ const user_service_1 = require("./services/user.service");
31
+ const es6Classes = {
32
+ controllers: [admin_auth_controller_1.AdminAuthController, social_controller_1.SocialController, user_controller_1.UserController],
33
+ dtos: [
34
+ create_user_dto_1.CreateUserDto,
35
+ offline_user_dto_1.OfflineUserDto,
36
+ permission_assignment_dto_1.PermissionAssignmentDto,
37
+ role_assignment_dto_1.RoleAssignmentDto,
38
+ update_user_dto_1.UpdateUserDto,
39
+ user_access_dto_1.UserAccessDto,
40
+ user_login_dto_1.UserLoginDto,
41
+ user_roles_access_object_dto_1.UserRolesAccessObjectDto,
42
+ ],
43
+ entities: [country_entity_1.CountryEntity, creator_entity_1.CreatorEntity, device_token_entity_1.DeviceTokenEntity, refresh_token_entity_1.RefreshTokenEntity, user_entity_1.UserEntity, user_referral_entity_1.UserReferralEntity],
44
+ middlewares: [basic_auth_middleware_1.BasicAuthMiddleware, internal_middleware_1.InternalMiddleware, jwt_middleware_1.JwtMiddleware, restricted_middleware_1.RestrictedMiddleware],
45
+ services: [access_manager_1.AccessManager, auth_service_1.AuthService, device_token_service_1.DeviceTokenService, es6_service_1.Es6Service, refresh_token_service_1.RefreshTokenService, social_service_1.SocialService, user_service_1.UserService],
46
+ };
47
+ exports.default = es6Classes;
48
+ //# sourceMappingURL=es6.classes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/auth/es6.classes.ts"],"names":[],"mappings":";;AAAA,+EAA0E;AAC1E,uEAAmE;AACnE,mEAA+D;AAC/D,4DAAuD;AACvD,8DAAyD;AACzD,gFAA2E;AAC3E,oEAA+D;AAC/D,4DAAuD;AACvD,4DAAuD;AACvD,0DAAqD;AACrD,sFAA+E;AAC/E,8DAA0D;AAC1D,8DAA0D;AAC1D,wEAAmE;AACnE,0EAAqE;AACrE,wDAAoD;AACpD,0EAAqE;AACrE,+EAA0E;AAC1E,2EAAuE;AACvE,iEAA6D;AAC7D,+EAA2E;AAC3E,8DAA0D;AAC1D,0DAAsD;AACtD,0EAAqE;AACrE,wDAAoD;AACpD,4EAAuE;AACvE,8DAA0D;AAC1D,0DAAsD;AAEtD,MAAM,UAAU,GAAG;IACf,WAAW,EAAE,CAAC,2CAAmB,EAAE,oCAAgB,EAAE,gCAAc,CAAC;IACpE,IAAI,EAAE;QACF,+BAAa;QACb,iCAAc;QACd,mDAAuB;QACvB,uCAAiB;QACjB,+BAAa;QACb,+BAAa;QACb,6BAAY;QACZ,uDAAwB;KAC3B;IACD,QAAQ,EAAE,CAAC,8BAAa,EAAE,8BAAa,EAAE,uCAAiB,EAAE,yCAAkB,EAAE,wBAAU,EAAE,yCAAkB,CAAC;IAC/G,WAAW,EAAE,CAAC,2CAAmB,EAAE,wCAAkB,EAAE,8BAAa,EAAE,4CAAoB,CAAC;IAC3F,QAAQ,EAAE,CAAC,8BAAa,EAAE,0BAAW,EAAE,yCAAkB,EAAE,wBAAU,EAAE,2CAAmB,EAAE,8BAAa,EAAE,0BAAW,CAAC;CAC1H,CAAC;AAEF,kBAAe,UAAU,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './controllers';
2
+ export * from './dtos';
3
+ export * from './entities';
4
+ export * from './middlewares';
5
+ export * from './services';
6
+ export * from './auth.module';
@@ -0,0 +1,23 @@
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("./controllers"), exports);
18
+ __exportStar(require("./dtos"), exports);
19
+ __exportStar(require("./entities"), exports);
20
+ __exportStar(require("./middlewares"), exports);
21
+ __exportStar(require("./services"), exports);
22
+ __exportStar(require("./auth.module"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,yCAAuB;AACvB,6CAA2B;AAC3B,gDAA8B;AAC9B,6CAA2B;AAC3B,gDAA8B"}
@@ -0,0 +1,10 @@
1
+ import { NestMiddleware } from '@nestjs/common';
2
+ import { Request } from 'express';
3
+ import { AuthService } from '../services/auth.service';
4
+ import { UserService } from '../services/user.service';
5
+ export declare class BasicAuthMiddleware implements NestMiddleware {
6
+ private readonly userService;
7
+ private readonly authService;
8
+ constructor(userService: UserService, authService: AuthService);
9
+ use(req: Request, res: any, next: () => void): Promise<any>;
10
+ }
@@ -0,0 +1,43 @@
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.BasicAuthMiddleware = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const auth_1 = require("../../common/libraries/auth");
15
+ const auth_service_1 = require("../services/auth.service");
16
+ const user_service_1 = require("../services/user.service");
17
+ let BasicAuthMiddleware = class BasicAuthMiddleware {
18
+ constructor(userService, authService) {
19
+ this.userService = userService;
20
+ this.authService = authService;
21
+ }
22
+ async use(req, res, next) {
23
+ if (auth_1.Auth.check())
24
+ return next();
25
+ if (!req.headers.authorization || req.headers.authorization.indexOf('Basic ') === -1) {
26
+ return next();
27
+ }
28
+ const base64Credentials = req.headers.authorization.split(' ')[1];
29
+ const credentials = Buffer.from(base64Credentials, 'base64').toString('ascii');
30
+ const [username, password] = credentials.split(':');
31
+ const user = await this.userService.validateUser(username, password);
32
+ if (!user)
33
+ return next();
34
+ auth_1.Auth.login(await this.authService.getUserObject(user.id));
35
+ next();
36
+ }
37
+ };
38
+ exports.BasicAuthMiddleware = BasicAuthMiddleware;
39
+ exports.BasicAuthMiddleware = BasicAuthMiddleware = __decorate([
40
+ (0, common_1.Injectable)(),
41
+ __metadata("design:paramtypes", [user_service_1.UserService, auth_service_1.AuthService])
42
+ ], BasicAuthMiddleware);
43
+ //# sourceMappingURL=basic.auth.middleware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic.auth.middleware.js","sourceRoot":"","sources":["../../../src/auth/middlewares/basic.auth.middleware.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4D;AAE5D,sDAAmD;AACnD,2DAAuD;AACvD,2DAAuD;AAUhD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAM5B,YAA6B,WAAwB,EAAmB,WAAwB;QAAnE,gBAAW,GAAX,WAAW,CAAa;QAAmB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAWpG,KAAK,CAAC,GAAG,CAAC,GAAY,EAAE,GAAQ,EAAE,IAAgB;QAE9C,IAAI,WAAI,CAAC,KAAK,EAAE;YAAE,OAAO,IAAI,EAAE,CAAC;QAGhC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,aAAa,IAAI,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE;YAClF,OAAO,IAAI,EAAE,CAAC;SACjB;QAGD,MAAM,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAClE,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC/E,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAGpD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAErE,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,EAAE,CAAC;QAGzB,WAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;QAE1D,IAAI,EAAE,CAAC;IACX,CAAC;CACJ,CAAA;AAzCY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;qCAOiC,0BAAW,EAAgC,0BAAW;GANvF,mBAAmB,CAyC/B"}
@@ -0,0 +1,4 @@
1
+ export * from './basic.auth.middleware';
2
+ export * from './internal.middleware';
3
+ export * from './jwt.middleware';
4
+ export * from './restricted.middleware';
@@ -0,0 +1,21 @@
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("./basic.auth.middleware"), exports);
18
+ __exportStar(require("./internal.middleware"), exports);
19
+ __exportStar(require("./jwt.middleware"), exports);
20
+ __exportStar(require("./restricted.middleware"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/middlewares/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,wDAAsC;AACtC,mDAAiC;AACjC,0DAAwC"}
@@ -0,0 +1,10 @@
1
+ import { NestMiddleware } from '@nestjs/common';
2
+ import { Response } from 'express';
3
+ import { PropertyService } from '../../system/services/property.service';
4
+ import { AuthService } from '../services/auth.service';
5
+ export declare class InternalMiddleware implements NestMiddleware {
6
+ private readonly authService;
7
+ private readonly propertyService;
8
+ constructor(authService: AuthService, propertyService: PropertyService);
9
+ use(req: any, res: Response, next: Function): Promise<void>;
10
+ }
@@ -0,0 +1,44 @@
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.InternalMiddleware = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const access_exception_1 = require("../../common/exceptions/access.exception");
15
+ const no_logged_user_exception_1 = require("../../common/exceptions/no.logged.user.exception");
16
+ const operation_exception_1 = require("../../common/exceptions/operation.exception");
17
+ const auth_1 = require("../../common/libraries/auth");
18
+ const property_service_1 = require("../../system/services/property.service");
19
+ const auth_service_1 = require("../services/auth.service");
20
+ let InternalMiddleware = class InternalMiddleware {
21
+ constructor(authService, propertyService) {
22
+ this.authService = authService;
23
+ this.propertyService = propertyService;
24
+ }
25
+ async use(req, res, next) {
26
+ const credential = req.headers['x-internal-token'];
27
+ if (!credential)
28
+ throw new no_logged_user_exception_1.NoLoggedUserException();
29
+ const key = await this.propertyService.get('internal.server.key');
30
+ if (!key)
31
+ throw new operation_exception_1.OperationException('Internal Auth key is not set');
32
+ if (key !== credential)
33
+ throw new access_exception_1.AccessException('Invalid credential');
34
+ const accessObject = await this.authService.getUserObject(2);
35
+ auth_1.Auth.login(accessObject);
36
+ next();
37
+ }
38
+ };
39
+ exports.InternalMiddleware = InternalMiddleware;
40
+ exports.InternalMiddleware = InternalMiddleware = __decorate([
41
+ (0, common_1.Injectable)(),
42
+ __metadata("design:paramtypes", [auth_service_1.AuthService, property_service_1.PropertyService])
43
+ ], InternalMiddleware);
44
+ //# sourceMappingURL=internal.middleware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.middleware.js","sourceRoot":"","sources":["../../../src/auth/middlewares/internal.middleware.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4D;AAE5D,+EAA2E;AAC3E,+FAAyF;AACzF,qFAAiF;AACjF,sDAAmD;AACnD,6EAAyE;AACzE,2DAAuD;AAShD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAM3B,YAA6B,WAAwB,EAAmB,eAAgC;QAA3E,gBAAW,GAAX,WAAW,CAAa;QAAmB,oBAAe,GAAf,eAAe,CAAiB;IAAG,CAAC;IAa5G,KAAK,CAAC,GAAG,CAAC,GAAQ,EAAE,GAAa,EAAE,IAAc;QAC7C,MAAM,UAAU,GAAG,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;QACnD,IAAI,CAAC,UAAU;YAAE,MAAM,IAAI,gDAAqB,EAAE,CAAC;QAEnD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;QAClE,IAAI,CAAC,GAAG;YAAE,MAAM,IAAI,wCAAkB,CAAC,8BAA8B,CAAC,CAAC;QAEvE,IAAI,GAAG,KAAK,UAAU;YAAE,MAAM,IAAI,kCAAe,CAAC,oBAAoB,CAAC,CAAC;QAExE,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QAE7D,WAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAEzB,IAAI,EAAE,CAAC;IACX,CAAC;CACJ,CAAA;AAlCY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;qCAOiC,0BAAW,EAAoC,kCAAe;GAN/F,kBAAkB,CAkC9B"}
@@ -0,0 +1,9 @@
1
+ import { NestMiddleware } from '@nestjs/common';
2
+ import { Request, Response } from 'express';
3
+ import { AuthService } from '../services/auth.service';
4
+ export declare class JwtMiddleware implements NestMiddleware {
5
+ private readonly authService;
6
+ constructor(authService: AuthService);
7
+ use(req: Request, res: Response, next: Function): Promise<Function>;
8
+ _getUserOutOfToken(token: string): Promise<any>;
9
+ }
@@ -0,0 +1,54 @@
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.JwtMiddleware = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const parse_bearer_token_1 = require("parse-bearer-token");
15
+ const operation_exception_1 = require("../../common/exceptions/operation.exception");
16
+ const auth_1 = require("../../common/libraries/auth");
17
+ const auth_service_1 = require("../services/auth.service");
18
+ let JwtMiddleware = class JwtMiddleware {
19
+ constructor(authService) {
20
+ this.authService = authService;
21
+ }
22
+ async use(req, res, next) {
23
+ var ip = req.headers['x-forwarded-for'] || req.ip || req.ips[0];
24
+ if (auth_1.Auth.check())
25
+ return next();
26
+ const token = (0, parse_bearer_token_1.default)(req);
27
+ if (!token)
28
+ return next();
29
+ const auth = await this._getUserOutOfToken(token);
30
+ if (!auth)
31
+ return next();
32
+ const accessObject = await this.authService.getUserObject(auth.id);
33
+ if (this.authService.isUserBlocked(accessObject))
34
+ throw new operation_exception_1.OperationException('This user is blocked from the platform');
35
+ auth_1.Auth.login({ ...accessObject, ...auth, req: { ip } });
36
+ next();
37
+ }
38
+ async _getUserOutOfToken(token) {
39
+ const payload = await this.authService.verifyJwtToken(token);
40
+ if (!payload)
41
+ return false;
42
+ const deleteElements = ['iat', 'exp'];
43
+ deleteElements.forEach((element) => {
44
+ delete payload[element];
45
+ });
46
+ return payload;
47
+ }
48
+ };
49
+ exports.JwtMiddleware = JwtMiddleware;
50
+ exports.JwtMiddleware = JwtMiddleware = __decorate([
51
+ (0, common_1.Injectable)(),
52
+ __metadata("design:paramtypes", [auth_service_1.AuthService])
53
+ ], JwtMiddleware);
54
+ //# sourceMappingURL=jwt.middleware.js.map