@servicelabsco/nestjs-utility-services 1.1.15 → 1.1.17

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 (247) hide show
  1. package/dist/app.controller.js +7 -24
  2. package/dist/app.controller.js.map +1 -1
  3. package/dist/app.module.js +2 -0
  4. package/dist/app.module.js.map +1 -1
  5. package/dist/app.service.js +8 -23
  6. package/dist/app.service.js.map +1 -1
  7. package/dist/auth/controllers/auth.controller.js +54 -75
  8. package/dist/auth/controllers/auth.controller.js.map +1 -1
  9. package/dist/auth/controllers/social.controller.js +7 -20
  10. package/dist/auth/controllers/social.controller.js.map +1 -1
  11. package/dist/auth/controllers/user.controller.js +6 -17
  12. package/dist/auth/controllers/user.controller.js.map +1 -1
  13. package/dist/auth/es6.classes.d.ts +2 -1
  14. package/dist/auth/es6.classes.js +2 -1
  15. package/dist/auth/es6.classes.js.map +1 -1
  16. package/dist/auth/middlewares/basic.auth.middleware.js +14 -25
  17. package/dist/auth/middlewares/basic.auth.middleware.js.map +1 -1
  18. package/dist/auth/middlewares/index.d.ts +1 -0
  19. package/dist/auth/middlewares/index.js +1 -0
  20. package/dist/auth/middlewares/index.js.map +1 -1
  21. package/dist/auth/middlewares/internal.middleware.d.ts +10 -0
  22. package/dist/auth/middlewares/internal.middleware.js +48 -0
  23. package/dist/auth/middlewares/internal.middleware.js.map +1 -0
  24. package/dist/auth/middlewares/jwt.middleware.js +19 -32
  25. package/dist/auth/middlewares/jwt.middleware.js.map +1 -1
  26. package/dist/auth/services/auth.service.js +42 -63
  27. package/dist/auth/services/auth.service.js.map +1 -1
  28. package/dist/auth/services/device.token.service.js +34 -47
  29. package/dist/auth/services/device.token.service.js.map +1 -1
  30. package/dist/auth/services/refresh.token.service.js +17 -30
  31. package/dist/auth/services/refresh.token.service.js.map +1 -1
  32. package/dist/auth/services/social.service.js +20 -33
  33. package/dist/auth/services/social.service.js.map +1 -1
  34. package/dist/auth/services/user.service.js +29 -46
  35. package/dist/auth/services/user.service.js.map +1 -1
  36. package/dist/auth/strategies/fb.strategy.js +8 -19
  37. package/dist/auth/strategies/fb.strategy.js.map +1 -1
  38. package/dist/auth/strategies/google.strategy.js +8 -19
  39. package/dist/auth/strategies/google.strategy.js.map +1 -1
  40. package/dist/cli.js +12 -23
  41. package/dist/cli.js.map +1 -1
  42. package/dist/common/guards/login.guard.js +5 -20
  43. package/dist/common/guards/login.guard.js.map +1 -1
  44. package/dist/common/libraries/base.migration.utility.js +106 -145
  45. package/dist/common/libraries/base.migration.utility.js.map +1 -1
  46. package/dist/common/libraries/common.entity.js +42 -63
  47. package/dist/common/libraries/common.entity.js.map +1 -1
  48. package/dist/common/libraries/common.job.js +31 -46
  49. package/dist/common/libraries/common.job.js.map +1 -1
  50. package/dist/common/libraries/common.mapper.job.js +20 -35
  51. package/dist/common/libraries/common.mapper.job.js.map +1 -1
  52. package/dist/common/libraries/common.subscriber.d.ts +1 -0
  53. package/dist/common/libraries/common.subscriber.js +10 -17
  54. package/dist/common/libraries/common.subscriber.js.map +1 -1
  55. package/dist/common/libraries/data.manager.js +85 -112
  56. package/dist/common/libraries/data.manager.js.map +1 -1
  57. package/dist/common/libraries/list.manager.js +62 -85
  58. package/dist/common/libraries/list.manager.js.map +1 -1
  59. package/dist/common/libraries/migration.utility.js +10 -31
  60. package/dist/common/libraries/migration.utility.js.map +1 -1
  61. package/dist/common/libraries/platform.utility.js +2 -13
  62. package/dist/common/libraries/platform.utility.js.map +1 -1
  63. package/dist/common/libraries/record.manager.js +106 -127
  64. package/dist/common/libraries/record.manager.js.map +1 -1
  65. package/dist/common/libraries/report.data.manager.js +66 -93
  66. package/dist/common/libraries/report.data.manager.js.map +1 -1
  67. package/dist/common/libraries/report.list.manager.js +69 -92
  68. package/dist/common/libraries/report.list.manager.js.map +1 -1
  69. package/dist/common/libraries/reverse.migration.utility.js +4 -23
  70. package/dist/common/libraries/reverse.migration.utility.js.map +1 -1
  71. package/dist/common/libraries/seeder.utility.js +51 -70
  72. package/dist/common/libraries/seeder.utility.js.map +1 -1
  73. package/dist/console.js +4 -13
  74. package/dist/console.js.map +1 -1
  75. package/dist/main.js +15 -26
  76. package/dist/main.js.map +1 -1
  77. package/dist/migrations/1599567001962-AddUserSequence.js +3 -16
  78. package/dist/migrations/1599567001962-AddUserSequence.js.map +1 -1
  79. package/dist/migrations/1607944291609-AddUniqueIndexDeviceToken.js +7 -20
  80. package/dist/migrations/1607944291609-AddUniqueIndexDeviceToken.js.map +1 -1
  81. package/dist/platformUtility/commands/entity.generator.command.js +81 -108
  82. package/dist/platformUtility/commands/entity.generator.command.js.map +1 -1
  83. package/dist/platformUtility/commands/maintenance.command.js +16 -35
  84. package/dist/platformUtility/commands/maintenance.command.js.map +1 -1
  85. package/dist/platformUtility/commands/sqs.worker.command.js +49 -72
  86. package/dist/platformUtility/commands/sqs.worker.command.js.map +1 -1
  87. package/dist/platformUtility/commands/sync.class.command.js +14 -25
  88. package/dist/platformUtility/commands/sync.class.command.js.map +1 -1
  89. package/dist/platformUtility/consumers/event.consumer.js +21 -42
  90. package/dist/platformUtility/consumers/event.consumer.js.map +1 -1
  91. package/dist/platformUtility/consumers/job.consumer.js +8 -19
  92. package/dist/platformUtility/consumers/job.consumer.js.map +1 -1
  93. package/dist/platformUtility/controllers/queue.controller.js +47 -76
  94. package/dist/platformUtility/controllers/queue.controller.js.map +1 -1
  95. package/dist/platformUtility/dtos/common.attributes.dto.d.ts +1 -0
  96. package/dist/platformUtility/dtos/common.attributes.dto.js +6 -0
  97. package/dist/platformUtility/dtos/common.attributes.dto.js.map +1 -1
  98. package/dist/platformUtility/jobs/record.watcher.job.js +5 -18
  99. package/dist/platformUtility/jobs/record.watcher.job.js.map +1 -1
  100. package/dist/platformUtility/jobs/test.job.js +1 -12
  101. package/dist/platformUtility/jobs/test.job.js.map +1 -1
  102. package/dist/platformUtility/libraries/process.common.mail.js +27 -44
  103. package/dist/platformUtility/libraries/process.common.mail.js.map +1 -1
  104. package/dist/platformUtility/libraries/process.postmark.mail.js +22 -37
  105. package/dist/platformUtility/libraries/process.postmark.mail.js.map +1 -1
  106. package/dist/platformUtility/services/audit.service.js +50 -67
  107. package/dist/platformUtility/services/audit.service.js.map +1 -1
  108. package/dist/platformUtility/services/cache.service.js +21 -36
  109. package/dist/platformUtility/services/cache.service.js.map +1 -1
  110. package/dist/platformUtility/services/dynamo.service.js +16 -29
  111. package/dist/platformUtility/services/dynamo.service.js.map +1 -1
  112. package/dist/platformUtility/services/fcm.notification.service.js +42 -63
  113. package/dist/platformUtility/services/fcm.notification.service.js.map +1 -1
  114. package/dist/platformUtility/services/mail.service.js +8 -19
  115. package/dist/platformUtility/services/mail.service.js.map +1 -1
  116. package/dist/platformUtility/services/queue.service.js +105 -158
  117. package/dist/platformUtility/services/queue.service.js.map +1 -1
  118. package/dist/platformUtility/services/remote.request.service.js +8 -19
  119. package/dist/platformUtility/services/remote.request.service.js.map +1 -1
  120. package/dist/platformUtility/services/sql.service.js +17 -38
  121. package/dist/platformUtility/services/sql.service.js.map +1 -1
  122. package/dist/platformUtility/services/sqs.service.js +39 -56
  123. package/dist/platformUtility/services/sqs.service.js.map +1 -1
  124. package/dist/platformUtility/services/startup.service.js +8 -21
  125. package/dist/platformUtility/services/startup.service.js.map +1 -1
  126. package/dist/platformUtility/subscribers/base.subscriber.js +6 -19
  127. package/dist/platformUtility/subscribers/base.subscriber.js.map +1 -1
  128. package/dist/system/commands/db.scanner.command.js +182 -221
  129. package/dist/system/commands/db.scanner.command.js.map +1 -1
  130. package/dist/system/commands/event.queue.command.js +30 -47
  131. package/dist/system/commands/event.queue.command.js.map +1 -1
  132. package/dist/system/commands/jobs.scanner.command.js +7 -18
  133. package/dist/system/commands/jobs.scanner.command.js.map +1 -1
  134. package/dist/system/commands/model.scanner.command.js +15 -30
  135. package/dist/system/commands/model.scanner.command.js.map +1 -1
  136. package/dist/system/commands/report.scanner.command.js +9 -20
  137. package/dist/system/commands/report.scanner.command.js.map +1 -1
  138. package/dist/system/commands/service.scanner.command.js +7 -18
  139. package/dist/system/commands/service.scanner.command.js.map +1 -1
  140. package/dist/system/commands/sync.all.command.js +13 -24
  141. package/dist/system/commands/sync.all.command.js.map +1 -1
  142. package/dist/system/controllers/base.controller.js +62 -87
  143. package/dist/system/controllers/base.controller.js.map +1 -1
  144. package/dist/system/controllers/data.controller.js +10 -23
  145. package/dist/system/controllers/data.controller.js.map +1 -1
  146. package/dist/system/controllers/form.controller.js +9 -20
  147. package/dist/system/controllers/form.controller.js.map +1 -1
  148. package/dist/system/controllers/menu.controller.js +4 -17
  149. package/dist/system/controllers/menu.controller.js.map +1 -1
  150. package/dist/system/controllers/preference.controller.js +51 -74
  151. package/dist/system/controllers/preference.controller.js.map +1 -1
  152. package/dist/system/controllers/report.controller.js +29 -46
  153. package/dist/system/controllers/report.controller.js.map +1 -1
  154. package/dist/system/controllers/upload.controller.js +11 -26
  155. package/dist/system/controllers/upload.controller.js.map +1 -1
  156. package/dist/system/controllers/user.preference.controller.js +9 -22
  157. package/dist/system/controllers/user.preference.controller.js.map +1 -1
  158. package/dist/system/es6.classes.d.ts +1 -1
  159. package/dist/system/jobs/clean.scheduled.event.job.js +3 -14
  160. package/dist/system/jobs/clean.scheduled.event.job.js.map +1 -1
  161. package/dist/system/jobs/column.mapper.job.js +18 -33
  162. package/dist/system/jobs/column.mapper.job.js.map +1 -1
  163. package/dist/system/jobs/model.scanner.job.js +106 -133
  164. package/dist/system/jobs/model.scanner.job.js.map +1 -1
  165. package/dist/system/jobs/property.job.js +5 -16
  166. package/dist/system/jobs/property.job.js.map +1 -1
  167. package/dist/system/jobs/relationship.mapper.job.js +18 -33
  168. package/dist/system/jobs/relationship.mapper.job.js.map +1 -1
  169. package/dist/system/jobs/report.column.sync.job.js +71 -94
  170. package/dist/system/jobs/report.column.sync.job.js.map +1 -1
  171. package/dist/system/jobs/scheduled.event.job.js +15 -28
  172. package/dist/system/jobs/scheduled.event.job.js.map +1 -1
  173. package/dist/system/jobs/scheduled.events.job.js +11 -22
  174. package/dist/system/jobs/scheduled.events.job.js.map +1 -1
  175. package/dist/system/jobs/user.group.member.job.js +56 -79
  176. package/dist/system/jobs/user.group.member.job.js.map +1 -1
  177. package/dist/system/jobs/user.group.permission.job.js +24 -39
  178. package/dist/system/jobs/user.group.permission.job.js.map +1 -1
  179. package/dist/system/jobs/user.group.role.job.js +24 -39
  180. package/dist/system/jobs/user.group.role.job.js.map +1 -1
  181. package/dist/system/libraries/business.rule.filter.validator.js +20 -37
  182. package/dist/system/libraries/business.rule.filter.validator.js.map +1 -1
  183. package/dist/system/libraries/business.rule.query.evaluator.js +24 -39
  184. package/dist/system/libraries/business.rule.query.evaluator.js.map +1 -1
  185. package/dist/system/libraries/column.manager.js +42 -61
  186. package/dist/system/libraries/column.manager.js.map +1 -1
  187. package/dist/system/libraries/model.sync.js +64 -87
  188. package/dist/system/libraries/model.sync.js.map +1 -1
  189. package/dist/system/libraries/security.rule.evaluator.js +13 -26
  190. package/dist/system/libraries/security.rule.evaluator.js.map +1 -1
  191. package/dist/system/services/business.rule.service.js +23 -36
  192. package/dist/system/services/business.rule.service.js.map +1 -1
  193. package/dist/system/services/client.script.service.js +17 -28
  194. package/dist/system/services/client.script.service.js.map +1 -1
  195. package/dist/system/services/column.service.js +12 -23
  196. package/dist/system/services/column.service.js.map +1 -1
  197. package/dist/system/services/comment.service.js +2 -13
  198. package/dist/system/services/comment.service.js.map +1 -1
  199. package/dist/system/services/common.service.js +27 -44
  200. package/dist/system/services/common.service.js.map +1 -1
  201. package/dist/system/services/document.service.js +3 -14
  202. package/dist/system/services/document.service.js.map +1 -1
  203. package/dist/system/services/event.detail.service.js +10 -21
  204. package/dist/system/services/event.detail.service.js.map +1 -1
  205. package/dist/system/services/event.queue.service.js +21 -34
  206. package/dist/system/services/event.queue.service.js.map +1 -1
  207. package/dist/system/services/form.service.js +6 -17
  208. package/dist/system/services/form.service.js.map +1 -1
  209. package/dist/system/services/list.service.js +20 -35
  210. package/dist/system/services/list.service.js.map +1 -1
  211. package/dist/system/services/menu.service.js +50 -69
  212. package/dist/system/services/menu.service.js.map +1 -1
  213. package/dist/system/services/model.service.js +60 -81
  214. package/dist/system/services/model.service.js.map +1 -1
  215. package/dist/system/services/preference.service.js +32 -53
  216. package/dist/system/services/preference.service.js.map +1 -1
  217. package/dist/system/services/property.service.js +23 -36
  218. package/dist/system/services/property.service.js.map +1 -1
  219. package/dist/system/services/report.service.js +19 -32
  220. package/dist/system/services/report.service.js.map +1 -1
  221. package/dist/system/services/scheduled.event.service.js +69 -90
  222. package/dist/system/services/scheduled.event.service.js.map +1 -1
  223. package/dist/system/services/security.rule.service.js +23 -40
  224. package/dist/system/services/security.rule.service.js.map +1 -1
  225. package/dist/system/services/ui.action.service.js +13 -24
  226. package/dist/system/services/ui.action.service.js.map +1 -1
  227. package/dist/system/services/upload.service.js +33 -48
  228. package/dist/system/services/upload.service.js.map +1 -1
  229. package/dist/system/services/user.preference.service.js +38 -57
  230. package/dist/system/services/user.preference.service.js.map +1 -1
  231. package/dist/system/subscribers/column.subscriber.js +4 -17
  232. package/dist/system/subscribers/column.subscriber.js.map +1 -1
  233. package/dist/system/subscribers/property.subscriber.js +4 -17
  234. package/dist/system/subscribers/property.subscriber.js.map +1 -1
  235. package/dist/system/subscribers/relationship.subscriber.js +4 -17
  236. package/dist/system/subscribers/relationship.subscriber.js.map +1 -1
  237. package/dist/system/subscribers/scheduled.event.subscriber.js +6 -19
  238. package/dist/system/subscribers/scheduled.event.subscriber.js.map +1 -1
  239. package/dist/system/subscribers/user.group.member.subscriber.js +4 -17
  240. package/dist/system/subscribers/user.group.member.subscriber.js.map +1 -1
  241. package/dist/system/subscribers/user.group.permission.subscriber.js +4 -17
  242. package/dist/system/subscribers/user.group.permission.subscriber.js.map +1 -1
  243. package/dist/system/subscribers/user.group.role.subscriber.js +4 -17
  244. package/dist/system/subscribers/user.group.role.subscriber.js.map +1 -1
  245. package/dist/worker.js +6 -17
  246. package/dist/worker.js.map +1 -1
  247. package/package.json +2 -1
@@ -11,15 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
12
  return function (target, key) { decorator(target, key, paramIndex); }
13
13
  };
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
14
  Object.defineProperty(exports, "__esModule", { value: true });
24
15
  exports.DataController = void 0;
25
16
  const common_1 = require("@nestjs/common");
@@ -31,21 +22,17 @@ let DataController = class DataController {
31
22
  this.modelService = modelService;
32
23
  this.localPropertyService = localPropertyService;
33
24
  }
34
- index(hash, query) {
35
- return __awaiter(this, void 0, void 0, function* () {
36
- const model = yield this.modelService.validateHashAccess(hash, 'r');
37
- const entity = this.localPropertyService.getEntity(model.model_hash);
38
- const options = new index_params_dto_1.IndexParamsDto(query).getOptions();
39
- return entity.find(options);
40
- });
25
+ async index(hash, query) {
26
+ const model = await this.modelService.validateHashAccess(hash, 'r');
27
+ const entity = this.localPropertyService.getEntity(model.model_hash);
28
+ const options = new index_params_dto_1.IndexParamsDto(query).getOptions();
29
+ return entity.find(options);
41
30
  }
42
- show(hash, id, query) {
43
- return __awaiter(this, void 0, void 0, function* () {
44
- const model = yield this.modelService.validateHashAccess(hash, 'r');
45
- const entity = this.localPropertyService.getEntity(model.model_hash);
46
- const options = new index_params_dto_1.IndexParamsDto(query).getOptions();
47
- return entity.first(id, options);
48
- });
31
+ async show(hash, id, query) {
32
+ const model = await this.modelService.validateHashAccess(hash, 'r');
33
+ const entity = this.localPropertyService.getEntity(model.model_hash);
34
+ const options = new index_params_dto_1.IndexParamsDto(query).getOptions();
35
+ return entity.first(id, options);
49
36
  }
50
37
  };
51
38
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"data.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/data.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+D;AAC/D,yEAAoE;AACpE,oGAA+F;AAC/F,yEAAqE;AAG9D,IAAM,cAAc,GAApB,MAAM,cAAc;IACvB,YAA6B,YAA0B,EAAmB,oBAA0C;QAAvF,iBAAY,GAAZ,YAAY,CAAc;QAAmB,yBAAoB,GAApB,oBAAoB,CAAsB;IAAG,CAAC;IAElH,KAAK,CAAgB,IAAY,EAAW,KAAU;;YACxD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YAEpE,MAAM,MAAM,GAAG,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YACrE,MAAM,OAAO,GAAG,IAAI,iCAAc,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC;YAEvD,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChC,CAAC;KAAA;IAGK,IAAI,CAAgB,IAAY,EAAe,EAAU,EAAW,KAAU;;YAChF,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YAEpE,MAAM,MAAM,GAAG,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YACrE,MAAM,OAAO,GAAG,IAAI,iCAAc,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC;YAEvD,OAAO,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QACrC,CAAC;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MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAEpE,MAAM,MAAM,GAAG,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACrE,MAAM,OAAO,GAAG,IAAI,iCAAc,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC;QAEvD,OAAO,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IACrC,CAAC;CACJ,CAAA;AAlBS;IADL,IAAA,YAAG,GAAE;IACO,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,cAAK,GAAE,CAAA;;;;2CAOhD;AAGK;IADL,IAAA,YAAG,EAAC,MAAM,CAAC;IACA,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,cAAK,GAAE,CAAA;;;;0CAOxE;AApBQ,cAAc;IAD1B,IAAA,mBAAU,EAAC,gBAAgB,CAAC;qCAEkB,4BAAY,EAAyC,6CAAoB;GAD3G,cAAc,CAqB1B;AArBY,wCAAc"}
@@ -11,15 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
12
  return function (target, key) { decorator(target, key, paramIndex); }
13
13
  };
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
14
  Object.defineProperty(exports, "__esModule", { value: true });
24
15
  exports.FormController = void 0;
25
16
  const common_1 = require("@nestjs/common");
@@ -33,18 +24,16 @@ let FormController = class FormController {
33
24
  this.formService = formService;
34
25
  this.preferenceService = preferenceService;
35
26
  }
36
- show(id) {
37
- return __awaiter(this, void 0, void 0, function* () {
38
- const form = yield entities_1.FormEntity.first(id);
39
- const dictionary = {};
40
- dictionary[form.identifier] = yield this.formService.getDictionary(form);
41
- const form_layouts = yield this.preferenceService.getFormPreferences(SOURCEHASH.form, form.id);
42
- const client_scripts = yield client_script_entity_1.ClientScriptEntity.find({
43
- where: { source_type: SOURCEHASH.form, source_id: form.id, active: true },
44
- relations: ['script'],
45
- });
46
- return { form, form_layouts, client_scripts, dictionary };
27
+ async show(id) {
28
+ const form = await entities_1.FormEntity.first(id);
29
+ const dictionary = {};
30
+ dictionary[form.identifier] = await this.formService.getDictionary(form);
31
+ const form_layouts = await this.preferenceService.getFormPreferences(SOURCEHASH.form, form.id);
32
+ const client_scripts = await client_script_entity_1.ClientScriptEntity.find({
33
+ where: { source_type: SOURCEHASH.form, source_id: form.id, active: true },
34
+ relations: ['script'],
47
35
  });
36
+ return { form, form_layouts, client_scripts, dictionary };
48
37
  }
49
38
  };
50
39
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"form.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/form.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAwD;AACxD,0CAAyC;AACzC,2DAAuD;AACvD,uEAAmE;AACnE,6EAAwE;AACxE,uDAAwD;AAGjD,IAAM,cAAc,GAApB,MAAM,cAAc;IACvB,YAA6B,WAAwB,EAAmB,iBAAoC;QAA/E,gBAAW,GAAX,WAAW,CAAa;QAAmB,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAG1G,IAAI,CAAc,EAAU;;YAC9B,MAAM,IAAI,GAAG,MAAM,qBA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C,IAAI,CAAc,EAAU;QAC9B,MAAM,IAAI,GAAG,MAAM,qBAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAExC,MAAM,UAAU,GAAG,EAAE,CAAC;QACtB,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAEzE,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;QAE/F,MAAM,cAAc,GAAG,MAAM,yCAAkB,CAAC,IAAI,CAAC;YACjD,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;YACzE,SAAS,EAAE,CAAC,QAAQ,CAAC;SACxB,CAAC,CAAC;QAEH,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC;IAC9D,CAAC;CACJ,CAAA;AAfS;IADL,IAAA,YAAG,EAAC,MAAM,CAAC;IACA,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;0CActB;AAlBQ,cAAc;IAD1B,IAAA,mBAAU,EAAC,gBAAgB,CAAC;qCAEiB,0BAAW,EAAsC,sCAAiB;GADnG,cAAc,CAmB1B;AAnBY,wCAAc"}
@@ -11,15 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
12
  return function (target, key) { decorator(target, key, paramIndex); }
13
13
  };
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
14
  Object.defineProperty(exports, "__esModule", { value: true });
24
15
  exports.MenuController = void 0;
25
16
  const common_1 = require("@nestjs/common");
@@ -28,15 +19,11 @@ let MenuController = class MenuController {
28
19
  constructor(menuService) {
29
20
  this.menuService = menuService;
30
21
  }
31
- get() {
32
- return __awaiter(this, void 0, void 0, function* () {
33
- return this.menuService.getMenus();
34
- });
22
+ async get() {
23
+ return this.menuService.getMenus();
35
24
  }
36
- show(id) {
37
- return __awaiter(this, void 0, void 0, function* () {
38
- return this.menuService.getMenuDetails(id);
39
- });
25
+ async show(id) {
26
+ return this.menuService.getMenuDetails(id);
40
27
  }
41
28
  };
42
29
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"menu.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/menu.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAwD;AACxD,2DAAuD;AAGhD,IAAM,cAAc,GAApB,MAAM,cAAc;IACvB,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAGnD,GAAG;;YACL,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QACvC,CAAC;KAAA;IAGK,IAAI,CAAc,EAAU;;YAC9B,OAAO,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QAC/C,CAAC;KAAA;CACJ,CAAA;AARS;IADL,IAAA,YAAG,GAAE;;;;yCAGL;AAGK;IADL,IAAA,YAAG,EAAC,KAAK,CAAC;IACC,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;0CAEtB;AAXQ,cAAc;IAD1B,IAAA,mBAAU,EAAC,gBAAgB,CAAC;qCAEiB,0BAAW;GAD5C,cAAc,CAY1B;AAZY,wCAAc"}
1
+ {"version":3,"file":"menu.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/menu.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwD;AACxD,2DAAuD;AAGhD,IAAM,cAAc,GAApB,MAAM,cAAc;IACvB,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAGnD,AAAN,KAAK,CAAC,GAAG;QACL,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;IACvC,CAAC;IAGK,AAAN,KAAK,CAAC,IAAI,CAAc,EAAU;QAC9B,OAAO,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC;CACJ,CAAA;AARS;IADL,IAAA,YAAG,GAAE;;;;yCAGL;AAGK;IADL,IAAA,YAAG,EAAC,KAAK,CAAC;IACC,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;0CAEtB;AAXQ,cAAc;IAD1B,IAAA,mBAAU,EAAC,gBAAgB,CAAC;qCAEiB,0BAAW;GAD5C,cAAc,CAY1B;AAZY,wCAAc"}
@@ -11,15 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
12
  return function (target, key) { decorator(target, key, paramIndex); }
13
13
  };
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
14
  Object.defineProperty(exports, "__esModule", { value: true });
24
15
  exports.PreferenceController = void 0;
25
16
  const common_1 = require("@nestjs/common");
@@ -39,81 +30,67 @@ let PreferenceController = class PreferenceController {
39
30
  this.accessManager = accessManager;
40
31
  this.userPreferenceService = userPreferenceService;
41
32
  }
42
- getUserPreferences() {
43
- return __awaiter(this, void 0, void 0, function* () {
44
- return this.userPreferenceService.getUserPreferences();
45
- });
33
+ async getUserPreferences() {
34
+ return this.userPreferenceService.getUserPreferences();
46
35
  }
47
- setPreference(body) {
48
- return __awaiter(this, void 0, void 0, function* () {
49
- const user = auth_1.Auth.user();
50
- const preference = yield list_preference_entity_1.ListPreferenceEntity.firstOrNew({
51
- source_type: body.source_type,
52
- source_id: body.source_id,
53
- user_id: user.id,
54
- name: body.name,
55
- });
56
- const record = (0, class_transformer_1.plainToClassFromExist)(preference, body);
57
- yield record.save();
58
- return record;
36
+ async setPreference(body) {
37
+ const user = auth_1.Auth.user();
38
+ const preference = await list_preference_entity_1.ListPreferenceEntity.firstOrNew({
39
+ source_type: body.source_type,
40
+ source_id: body.source_id,
41
+ user_id: user.id,
42
+ name: body.name,
59
43
  });
44
+ const record = (0, class_transformer_1.plainToClassFromExist)(preference, body);
45
+ await record.save();
46
+ return record;
60
47
  }
61
- storeMenuListPreference(id, body) {
62
- return __awaiter(this, void 0, void 0, function* () {
63
- const user = auth_1.Auth.user();
64
- const preference = yield list_preference_entity_1.ListPreferenceEntity.firstOrNew({
65
- source_type: SOURCEHASH.menu,
66
- source_id: id,
67
- user_id: user.id,
68
- name: body.name,
69
- });
70
- preference.column_definition = body.column_definition;
71
- preference.save();
72
- return preference;
48
+ async storeMenuListPreference(id, body) {
49
+ const user = auth_1.Auth.user();
50
+ const preference = await list_preference_entity_1.ListPreferenceEntity.firstOrNew({
51
+ source_type: SOURCEHASH.menu,
52
+ source_id: id,
53
+ user_id: user.id,
54
+ name: body.name,
73
55
  });
56
+ preference.column_definition = body.column_definition;
57
+ preference.save();
58
+ return preference;
74
59
  }
75
- storeModelFormPreference(id, body) {
76
- return __awaiter(this, void 0, void 0, function* () {
77
- const preference = yield form_preference_entity_1.FormPreferenceEntity.firstOrNew({
78
- source_type: SOURCEHASH.model,
79
- source_id: id,
80
- name: body.name,
81
- });
82
- preference.column_definition = body.column_definition;
83
- preference.save();
84
- return preference;
60
+ async storeModelFormPreference(id, body) {
61
+ const preference = await form_preference_entity_1.FormPreferenceEntity.firstOrNew({
62
+ source_type: SOURCEHASH.model,
63
+ source_id: id,
64
+ name: body.name,
85
65
  });
66
+ preference.column_definition = body.column_definition;
67
+ preference.save();
68
+ return preference;
86
69
  }
87
- storeFormPreference(body) {
88
- return __awaiter(this, void 0, void 0, function* () {
89
- const source = body.source_type === SOURCEHASH.relationship ? SOURCEHASH.model : body.source_type;
90
- const preference = yield form_preference_entity_1.FormPreferenceEntity.firstOrNew({
91
- source_type: source,
92
- source_id: body.source_id,
93
- name: body.name,
94
- });
95
- preference.column_definition = body.column_definition;
96
- return preference.save();
70
+ async storeFormPreference(body) {
71
+ const source = body.source_type === SOURCEHASH.relationship ? SOURCEHASH.model : body.source_type;
72
+ const preference = await form_preference_entity_1.FormPreferenceEntity.firstOrNew({
73
+ source_type: source,
74
+ source_id: body.source_id,
75
+ name: body.name,
97
76
  });
77
+ preference.column_definition = body.column_definition;
78
+ return preference.save();
98
79
  }
99
- dropListPreference(id) {
100
- return __awaiter(this, void 0, void 0, function* () {
101
- const user = auth_1.Auth.user();
102
- const record = yield list_preference_entity_1.ListPreferenceEntity.first(id);
103
- if (!record)
104
- throw new operation_exception_1.OperationException('Invalid record to drop');
105
- if (record.user_id !== user.id && !this.accessManager.hasRoleId(1))
106
- throw new access_exception_1.AccessException('Not your record to drop');
107
- record.softDelete();
108
- });
80
+ async dropListPreference(id) {
81
+ const user = auth_1.Auth.user();
82
+ const record = await list_preference_entity_1.ListPreferenceEntity.first(id);
83
+ if (!record)
84
+ throw new operation_exception_1.OperationException('Invalid record to drop');
85
+ if (record.user_id !== user.id && !this.accessManager.hasRoleId(1))
86
+ throw new access_exception_1.AccessException('Not your record to drop');
87
+ record.softDelete();
109
88
  }
110
- dropFormPreference(id) {
111
- return __awaiter(this, void 0, void 0, function* () {
112
- const record = yield form_preference_entity_1.FormPreferenceEntity.first(id);
113
- if (!record)
114
- throw new operation_exception_1.OperationException('Invalid record to drop');
115
- record.softDelete();
116
- });
89
+ async dropFormPreference(id) {
90
+ const record = await form_preference_entity_1.FormPreferenceEntity.first(id);
91
+ if (!record)
92
+ throw new operation_exception_1.OperationException('Invalid record to drop');
93
+ record.softDelete();
117
94
  }
118
95
  };
119
96
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"preference.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/preference.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4E;AAC5E,yDAA0D;AAC1D,uEAAmE;AACnE,+EAA2E;AAC3E,qFAAiF;AACjF,sDAAmD;AACnD,iGAA0F;AAC1F,mGAA4F;AAC5F,+EAA0E;AAC1E,+EAA0E;AAC1E,iFAA4E;AAC5E,uDAAwD;AASjD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC7B,YAA6B,aAA4B,EAAmB,qBAA4C;QAA3F,kBAAa,GAAb,aAAa,CAAe;QAAmB,0BAAqB,GAArB,qBAAqB,CAAuB;IAAG,CAAC;IAGtH,kBAAkB;;YACpB,OAAO,IAAI,CAAC,qBAAqB,CAAC,kBAAkB,EAAE,CAAC;QAC3D,CAAC;KAAA;IAGK,aAAa,CAAS,IAAmC;;YAC3D,MAAM,IAAI,GAAG,WAAI,CAAC,IAAI,EAAE,CAAC;YACzB,MAAM,UAAU,GAAG,MAAM,6CAAoB,CAAC,UAAU,CAAC;gBACrD,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,OAAO,EAAE,IAAI,CAAC,EAAE;gBAChB,IAAI,EAAE,IAAI,CAAC,IAAI;aAClB,CAAC,CAAC;Y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IAAA,aAAI,EAAC,2BAA2B,CAAC;IACF,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,mEAA8B;;oEAanG;AAGK;IADL,IAAA,aAAI,EAAC,iBAAiB,CAAC;IACG,WAAA,IAAA,aAAI,GAAE,CAAA;;;;+DAYhC;AAGK;IADL,IAAA,eAAM,EAAC,qBAAqB,CAAC;IACJ,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;8DAUpC;AAGK;IADL,IAAA,eAAM,EAAC,qBAAqB,CAAC;IACJ,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;8DAMpC;AA9FQ,oBAAoB;IADhC,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEuB,8BAAa,EAA0C,+CAAqB;GAD/G,oBAAoB,CA+FhC;AA/FY,oDAAoB"}
1
+ {"version":3,"file":"preference.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/preference.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4E;AAC5E,yDAA0D;AAC1D,uEAAmE;AACnE,+EAA2E;AAC3E,qFAAiF;AACjF,sDAAmD;AACnD,iGAA0F;AAC1F,mGAA4F;AAC5F,+EAA0E;AAC1E,+EAA0E;AAC1E,iFAA4E;AAC5E,uDAAwD;AASjD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC7B,YAA6B,aAA4B,EAAmB,qBAA4C;QAA3F,kBAAa,GAAb,aAAa,CAAe;QAAmB,0BAAqB,GAArB,qBAAqB,CAAuB;IAAG,CAAC;IAGtH,AAAN,KAAK,CAAC,kBAAkB;QACpB,OAAO,IAAI,CAAC,qBAAqB,CAAC,kBAAkB,EAAE,CAAC;IAC3D,CAAC;IAGK,AAAN,KAAK,CAAC,aAAa,CAAS,IAAmC;QAC3D,MAAM,IAAI,GAAG,WAAI,CAAC,IAAI,EAAE,CAAC;QACzB,MAAM,UAAU,GA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iB,CAAC;IACH,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,iEAA6B;;yDAc9D;AAGK;IADL,IAAA,aAAI,EAAC,0BAA0B,CAAC;IACF,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,iEAA6B;;mEAejG;AAGK;IADL,IAAA,aAAI,EAAC,2BAA2B,CAAC;IACF,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,mEAA8B;;oEAanG;AAGK;IADL,IAAA,aAAI,EAAC,iBAAiB,CAAC;IACG,WAAA,IAAA,aAAI,GAAE,CAAA;;;;+DAYhC;AAGK;IADL,IAAA,eAAM,EAAC,qBAAqB,CAAC;IACJ,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;8DAUpC;AAGK;IADL,IAAA,eAAM,EAAC,qBAAqB,CAAC;IACJ,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;8DAMpC;AA9FQ,oBAAoB;IADhC,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEuB,8BAAa,EAA0C,+CAAqB;GAD/G,oBAAoB,CA+FhC;AA/FY,oDAAoB"}
@@ -11,15 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
12
  return function (target, key) { decorator(target, key, paramIndex); }
13
13
  };
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
14
  Object.defineProperty(exports, "__esModule", { value: true });
24
15
  exports.ReportController = void 0;
25
16
  const common_1 = require("@nestjs/common");
@@ -46,48 +37,40 @@ let ReportController = class ReportController {
46
37
  this.cacheService = cacheService;
47
38
  this.sqlService = sqlService;
48
39
  }
49
- syncReportColumns(id) {
50
- return __awaiter(this, void 0, void 0, function* () {
51
- return this.reportColumnSyncJob.handle(id);
52
- });
40
+ async syncReportColumns(id) {
41
+ return this.reportColumnSyncJob.handle(id);
53
42
  }
54
- getReportDetails(id) {
55
- return __awaiter(this, void 0, void 0, function* () {
56
- const hasAccess = yield this.reportService.hasAccess(id);
57
- if (!hasAccess)
58
- throw new access_exception_1.AccessException('You dont have access to this report');
59
- return this.reportService.getReportDetails(id);
60
- });
43
+ async getReportDetails(id) {
44
+ const hasAccess = await this.reportService.hasAccess(id);
45
+ if (!hasAccess)
46
+ throw new access_exception_1.AccessException('You dont have access to this report');
47
+ return this.reportService.getReportDetails(id);
61
48
  }
62
- getChartData(id, body) {
63
- return __awaiter(this, void 0, void 0, function* () {
64
- const chart = yield chart_entity_1.ChartEntity.first(id, {});
65
- if (!chart || chart.source_type !== SOURCEHASH.report)
66
- throw new access_exception_1.AccessException('You dont have access to this chart');
67
- const hasAccess = yield this.reportService.hasAccess(chart.source_id);
68
- if (!hasAccess)
69
- throw new access_exception_1.AccessException('You dont have access to this chart');
70
- const params = new report_body_parser_1.ReportBodyParser().process(body);
71
- params.report = yield report_entity_1.ReportEntity.first(chart.source_id, {
72
- relations: ['params', 'query'],
73
- });
74
- params.layout = yield this.listService.getLayoutDefinition(params.layout_id);
75
- const data = yield new report_list_manager_1.ReportListManager(this.modelService, this.cacheService, this.preferenceService, this.sqlService, this.reportService).process(params);
76
- return data.data;
49
+ async getChartData(id, body) {
50
+ const chart = await chart_entity_1.ChartEntity.first(id, {});
51
+ if (!chart || chart.source_type !== SOURCEHASH.report)
52
+ throw new access_exception_1.AccessException('You dont have access to this chart');
53
+ const hasAccess = await this.reportService.hasAccess(chart.source_id);
54
+ if (!hasAccess)
55
+ throw new access_exception_1.AccessException('You dont have access to this chart');
56
+ const params = new report_body_parser_1.ReportBodyParser().process(body);
57
+ params.report = await report_entity_1.ReportEntity.first(chart.source_id, {
58
+ relations: ['params', 'query'],
77
59
  });
60
+ params.layout = await this.listService.getLayoutDefinition(params.layout_id);
61
+ const data = await new report_list_manager_1.ReportListManager(this.modelService, this.cacheService, this.preferenceService, this.sqlService, this.reportService).process(params);
62
+ return data.data;
78
63
  }
79
- getReportData(id, body) {
80
- return __awaiter(this, void 0, void 0, function* () {
81
- const hasAccess = yield this.reportService.hasAccess(id);
82
- if (!hasAccess)
83
- throw new access_exception_1.AccessException('You dont have access to this report');
84
- const params = new report_body_parser_1.ReportBodyParser().process(body);
85
- params.report = yield report_entity_1.ReportEntity.first(id, {
86
- relations: ['params', 'query'],
87
- });
88
- params.layout = yield this.listService.getLayoutDefinition(params.layout_id);
89
- return new report_list_manager_1.ReportListManager(this.modelService, this.cacheService, this.preferenceService, this.sqlService, this.reportService).process(params);
64
+ async getReportData(id, body) {
65
+ const hasAccess = await this.reportService.hasAccess(id);
66
+ if (!hasAccess)
67
+ throw new access_exception_1.AccessException('You dont have access to this report');
68
+ const params = new report_body_parser_1.ReportBodyParser().process(body);
69
+ params.report = await report_entity_1.ReportEntity.first(id, {
70
+ relations: ['params', 'query'],
90
71
  });
72
+ params.layout = await this.listService.getLayoutDefinition(params.layout_id);
73
+ return new report_list_manager_1.ReportListManager(this.modelService, this.cacheService, this.preferenceService, this.sqlService, this.reportService).process(params);
91
74
  }
92
75
  };
93
76
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"report.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/report.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,+EAA2E;AAC3E,kFAA6E;AAC7E,oFAA+E;AAC/E,uDAAwD;AACxD,6DAA8D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AC;YAE7E,OAAO,IAAI,uCAAiB,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CACnI,MAAM,CACT,CAAC;QACN,CAAC;KAAA;CACJ,CAAA;AA1DS;IADL,IAAA,aAAI,EAAC,iBAAiB,CAAC;IACC,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;yDAEnC;AAGK;IADL,IAAA,YAAG,EAAC,YAAY,CAAC;IACM,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;wDAKlC;AAGK;IADL,IAAA,aAAI,EAAC,oBAAoB,CAAC;IACP,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;;;oDA0BlD;AAGK;IADL,IAAA,aAAI,EAAC,qBAAqB,CAAC;IACP,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;;;qDAenD;AArEQ,gBAAgB;IAD5B,IAAA,mBAAU,EAAC,WAAW,CAAC;qCAGsB,4CAAmB;QACzB,8BAAa;QACf,0BAAW;QACV,4BAAY;QACP,sCAAiB;QACtB,uBAAY;QACd,wBAAU;GARlC,gBAAgB,CAsE5B;AAtEY,4CAAgB"}
1
+ {"version":3,"file":"report.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/report.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,+EAA2E;AAC3E,kFAA6E;AAC7E,oFAA+E;AAC/E,uDAAwD;AACxD,6DAA8D;AAC9D,4EAAwE;AACxE,2DAAuD;AACvD,6DAAyD;AACzD,2EAAqE;AACrE,2DAAuD;AACvD,6DAAyD;AACzD,uEAAmE;AACnE,+DAA2D;AAGpD,IAAM,gBAAgB,GAAtB,MAAM,gBA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AI,CAAC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CACnI,MAAM,CACT,CAAC;IACN,CAAC;CACJ,CAAA;AA1DS;IADL,IAAA,aAAI,EAAC,iBAAiB,CAAC;IACC,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;yDAEnC;AAGK;IADL,IAAA,YAAG,EAAC,YAAY,CAAC;IACM,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;wDAKlC;AAGK;IADL,IAAA,aAAI,EAAC,oBAAoB,CAAC;IACP,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;;;oDA0BlD;AAGK;IADL,IAAA,aAAI,EAAC,qBAAqB,CAAC;IACP,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;;;qDAenD;AArEQ,gBAAgB;IAD5B,IAAA,mBAAU,EAAC,WAAW,CAAC;qCAGsB,4CAAmB;QACzB,8BAAa;QACf,0BAAW;QACV,4BAAY;QACP,sCAAiB;QACtB,uBAAY;QACd,wBAAU;GARlC,gBAAgB,CAsE5B;AAtEY,4CAAgB"}
@@ -11,15 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
12
  return function (target, key) { decorator(target, key, paramIndex); }
13
13
  };
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
14
  Object.defineProperty(exports, "__esModule", { value: true });
24
15
  exports.UploadController = void 0;
25
16
  const common_1 = require("@nestjs/common");
@@ -29,25 +20,19 @@ let UploadController = class UploadController {
29
20
  constructor(uploadService) {
30
21
  this.uploadService = uploadService;
31
22
  }
32
- file(files) {
33
- return __awaiter(this, void 0, void 0, function* () {
34
- return this.uploadFiles(files);
35
- });
23
+ async file(files) {
24
+ return this.uploadFiles(files);
36
25
  }
37
- uploadFile(files) {
38
- return __awaiter(this, void 0, void 0, function* () {
39
- return this.uploadFiles(files);
40
- });
26
+ async uploadFile(files) {
27
+ return this.uploadFiles(files);
41
28
  }
42
- uploadFiles(files) {
43
- return __awaiter(this, void 0, void 0, function* () {
44
- const promises = [];
45
- files.forEach((file) => {
46
- promises.push(this.uploadService.uploadFile(file));
47
- });
48
- return Promise.all(promises).then((res) => {
49
- return res;
50
- });
29
+ async uploadFiles(files) {
30
+ const promises = [];
31
+ files.forEach((file) => {
32
+ promises.push(this.uploadService.uploadFile(file));
33
+ });
34
+ return Promise.all(promises).then((res) => {
35
+ return res;
51
36
  });
52
37
  }
53
38
  };
@@ -1 +1 @@
1
- {"version":3,"file":"upload.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/upload.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAkF;AAClF,+DAA+D;AAC/D,+DAA2D;AAGpD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IACzB,YAAoB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAI9C,IAAI,CAAkB,KAAK;;YAC7B,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACnC,CAAC;KAAA;IAIK,UAAU,CAAkB,KAAK;;YACnC,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACnC,CAAC;KAAA;IAEa,WAAW,CAAC,KAAK;;YAC3B,MAAM,QAAQ,GAAG,EAAE,CAAC;YA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K;QAC3B,MAAM,QAAQ,GAAG,EAAE,CAAC;QAGpB,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACnB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;QACvD,CAAC,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YACtC,OAAO,GAAG,CAAC;QACf,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAtBS;IAFL,IAAA,aAAI,EAAC,SAAS,CAAC;IACf,IAAA,wBAAe,EAAC,IAAA,sCAAmB,GAAE,CAAC;IAC3B,WAAA,IAAA,sBAAa,GAAE,CAAA;;;;4CAE1B;AAIK;IAFL,IAAA,aAAI,EAAC,mBAAmB,CAAC;IACzB,IAAA,wBAAe,EAAC,IAAA,sCAAmB,GAAE,CAAC;IACrB,WAAA,IAAA,sBAAa,GAAE,CAAA;;;;kDAEhC;AAbQ,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAE0B,8BAAa;GADvC,gBAAgB,CA2B5B;AA3BY,4CAAgB"}
@@ -11,15 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
12
  return function (target, key) { decorator(target, key, paramIndex); }
13
13
  };
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
14
  Object.defineProperty(exports, "__esModule", { value: true });
24
15
  exports.UserPreferenceController = void 0;
25
16
  const common_1 = require("@nestjs/common");
@@ -31,21 +22,17 @@ let UserPreferenceController = class UserPreferenceController {
31
22
  constructor(userPreferenceService) {
32
23
  this.userPreferenceService = userPreferenceService;
33
24
  }
34
- get() {
35
- return __awaiter(this, void 0, void 0, function* () {
36
- const user = auth_1.Auth.user();
37
- return user_preference_entity_1.UserPreferenceEntity.find({
38
- where: {
39
- user_id: user.id,
40
- },
41
- });
25
+ async get() {
26
+ const user = auth_1.Auth.user();
27
+ return user_preference_entity_1.UserPreferenceEntity.find({
28
+ where: {
29
+ user_id: user.id,
30
+ },
42
31
  });
43
32
  }
44
- store(preference) {
45
- return __awaiter(this, void 0, void 0, function* () {
46
- const promises = [];
47
- return this.userPreferenceService.setUserPreference(preference.name, preference.value);
48
- });
33
+ async store(preference) {
34
+ const promises = [];
35
+ return this.userPreferenceService.setUserPreference(preference.name, preference.value);
49
36
  }
50
37
  };
51
38
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"user.preference.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/user.preference.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6D;AAC7D,sDAAmD;AACnD,uFAAiF;AACjF,+EAA0E;AAC1E,iFAA4E;AAGrE,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACjC,YAA6B,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;IAAG,CAAC;IAEvE,GAAG;;YACL,MAAM,IAAI,GAAG,WAAI,CAAC,IAAI,EAAE,CAAC;YAEzB,OAAO,6CAAoB,CAAC,IAAI,CAAC;gBAC7B,KAAK,EAAE;oBACH,OAAO,EAAE,IAAI,CAAC,EAAE;iBACnB;aACJ,CAAC,CAAC;QACP,CAAC;KAAA;IAGK,KAAK,CAAS,UAAqC;;YACrD,MAAM,QAAQ,GAAG,EAAE,CAAC;YAEpB,OAAO,IAAI,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;QAC3F,CAAC;KAAA;CACJ,CAAA;AAhBS;IADL,IAAA,YAAG,GAAE;;;;mDASL;AAGK;IADL,IAAA,aAAI,GAAE;IACM,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAa,wDAAyB;;qDAIxD;AAlBQ,wBAAwB;IADpC,IAAA,mBAAU,EAAC,2BAA2B,CAAC;qCAEgB,+CAAqB;GADhE,wBAAwB,CAmBpC;AAnBY,4DAAwB"}
1
+ {"version":3,"file":"user.preference.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/user.preference.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA6D;AAC7D,sDAAmD;AACnD,uFAAiF;AACjF,+EAA0E;AAC1E,iFAA4E;AAGrE,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACjC,YAA6B,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;IAAG,CAAC;IAEvE,AAAN,KAAK,CAAC,GAAG;QACL,MAAM,IAAI,GAAG,WAAI,CAAC,IAAI,EAAE,CAAC;QAEzB,OAAO,6CAAoB,CAAC,IAAI,CAAC;YAC7B,KAAK,EAAE;gBACH,OAAO,EAAE,IAAI,CAAC,EAAE;aACnB;SACJ,CAAC,CAAC;IACP,CAAC;IAGK,AAAN,KAAK,CAAC,KAAK,CAAS,UAAqC;QACrD,MAAM,QAAQ,GAAG,EAAE,CAAC;QAEpB,OAAO,IAAI,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IAC3F,CAAC;CACJ,CAAA;AAhBS;IADL,IAAA,YAAG,GAAE;;;;mDASL;AAGK;IADL,IAAA,aAAI,GAAE;IACM,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAa,wDAAyB;;qDAIxD;AAlBQ,wBAAwB;IADpC,IAAA,mBAAU,EAAC,2BAA2B,CAAC;qCAEgB,+CAAqB;GADhE,wBAAwB,CAmBpC;AAnBY,4DAAwB"}
@@ -120,7 +120,7 @@ declare const es6Classes: {
120
120
  jobs: (typeof ModelScannerJob | typeof ReportColumnSyncJob | typeof ScheduledEventJob | typeof CleanScheduledEventJob | typeof ColumnMapperJob | typeof PropertyJob | typeof RelationshipMapperJob | typeof ScheduledEventsJob | typeof UserGroupMemberJob | typeof UserGroupPermissionJob | typeof UserGroupRoleJob)[];
121
121
  libraries: (typeof ModelSync | typeof SecurityRuleEvaluator | typeof ColumnManager | typeof BusinessRuleFilterValidator | typeof BusinessRuleQueryEvaluator)[];
122
122
  modifiers: (typeof MenuListModifier | typeof ModuleListModifier)[];
123
- services: (typeof EventQueueService | typeof EventDetailService | typeof PropertyService | typeof SecurityRuleService | typeof UiActionService | typeof ModelService | typeof CommonService | typeof ClientScriptService | typeof PreferenceService | typeof BusinessRuleService | typeof ListService | typeof FormService | typeof MenuService | typeof UserPreferenceService | typeof ReportService | typeof UploadService | typeof ScheduledEventService | typeof ColumnService | typeof CommentService | typeof DocumentService | typeof Es6JobsService | typeof Es6Service)[];
123
+ services: (typeof PropertyService | typeof EventQueueService | typeof EventDetailService | typeof SecurityRuleService | typeof UiActionService | typeof ModelService | typeof CommonService | typeof ClientScriptService | typeof PreferenceService | typeof BusinessRuleService | typeof ListService | typeof FormService | typeof MenuService | typeof UserPreferenceService | typeof ReportService | typeof UploadService | typeof ScheduledEventService | typeof ColumnService | typeof CommentService | typeof DocumentService | typeof Es6JobsService | typeof Es6Service)[];
124
124
  subscribers: (typeof ColumnSubscriber | typeof PropertySubscriber | typeof RelationshipSubscriber | typeof ScheduledEventSubscriber | typeof UserGroupMemberSubscriber | typeof UserGroupPermissionSubscriber | typeof UserGroupRoleSubscriber)[];
125
125
  };
126
126
  export default es6Classes;
@@ -8,15 +8,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
12
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
13
- return new (P || (P = Promise))(function (resolve, reject) {
14
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
15
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
16
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
- step((generator = generator.apply(thisArg, _arguments || [])).next());
18
- });
19
- };
20
11
  Object.defineProperty(exports, "__esModule", { value: true });
21
12
  exports.CleanScheduledEventJob = void 0;
22
13
  const common_1 = require("@nestjs/common");
@@ -31,11 +22,9 @@ let CleanScheduledEventJob = class CleanScheduledEventJob extends common_job_1.C
31
22
  this.scheduledEventService = scheduledEventService;
32
23
  this.scheduledEventJob = scheduledEventJob;
33
24
  }
34
- handle(data) {
35
- return __awaiter(this, void 0, void 0, function* () {
36
- yield this.scheduledEventService.deleteActiveEvents(data.id);
37
- yield this.scheduledEventJob.dispatch(data.id);
38
- });
25
+ async handle(data) {
26
+ await this.scheduledEventService.deleteActiveEvents(data.id);
27
+ await this.scheduledEventJob.dispatch(data.id);
39
28
  }
40
29
  };
41
30
  CleanScheduledEventJob = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"clean.scheduled.event.job.js","sourceRoot":"","sources":["../../../src/system/jobs/clean.scheduled.event.job.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,kEAA8D;AAC9D,gFAA4E;AAE5E,iFAA4E;AAC5E,+DAA0D;AAGnD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,sBAAS;IACjD,YACuB,YAA0B,EAC5B,qBAA4C,EAC5C,iBAAoC;QAErD,KAAK,EAAE,CAAC;QAJW,iBAAY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