@solidxai/core 0.1.6-beta.2 → 0.1.6-beta.20

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 (303) hide show
  1. package/dist/controllers/dashboard-layout.controller.d.ts +47 -0
  2. package/dist/controllers/dashboard-layout.controller.d.ts.map +1 -0
  3. package/dist/controllers/dashboard-layout.controller.js +204 -0
  4. package/dist/controllers/dashboard-layout.controller.js.map +1 -0
  5. package/dist/controllers/scheduled-job.controller.d.ts +1 -0
  6. package/dist/controllers/scheduled-job.controller.d.ts.map +1 -1
  7. package/dist/controllers/scheduled-job.controller.js +12 -0
  8. package/dist/controllers/scheduled-job.controller.js.map +1 -1
  9. package/dist/dtos/create-dashboard-layout.dto.d.ts +8 -0
  10. package/dist/dtos/create-dashboard-layout.dto.d.ts.map +1 -0
  11. package/dist/dtos/create-dashboard-layout.dto.js +53 -0
  12. package/dist/dtos/create-dashboard-layout.dto.js.map +1 -0
  13. package/dist/dtos/create-dashboard-variable.dto.d.ts +1 -0
  14. package/dist/dtos/create-dashboard-variable.dto.d.ts.map +1 -1
  15. package/dist/dtos/create-dashboard-variable.dto.js +7 -1
  16. package/dist/dtos/create-dashboard-variable.dto.js.map +1 -1
  17. package/dist/dtos/update-dashboard-layout.dto.d.ts +8 -0
  18. package/dist/dtos/update-dashboard-layout.dto.d.ts.map +1 -0
  19. package/dist/dtos/update-dashboard-layout.dto.js +53 -0
  20. package/dist/dtos/update-dashboard-layout.dto.js.map +1 -0
  21. package/dist/dtos/update-dashboard-variable.dto.d.ts +1 -0
  22. package/dist/dtos/update-dashboard-variable.dto.d.ts.map +1 -1
  23. package/dist/dtos/update-dashboard-variable.dto.js +7 -1
  24. package/dist/dtos/update-dashboard-variable.dto.js.map +1 -1
  25. package/dist/entities/action-metadata.entity.d.ts.map +1 -1
  26. package/dist/entities/action-metadata.entity.js.map +1 -1
  27. package/dist/entities/ai-interaction.entity.d.ts.map +1 -1
  28. package/dist/entities/ai-interaction.entity.js +5 -4
  29. package/dist/entities/ai-interaction.entity.js.map +1 -1
  30. package/dist/entities/chatter-message-details.entity.d.ts +1 -0
  31. package/dist/entities/chatter-message-details.entity.d.ts.map +1 -1
  32. package/dist/entities/chatter-message-details.entity.js +9 -4
  33. package/dist/entities/chatter-message-details.entity.js.map +1 -1
  34. package/dist/entities/chatter-message.entity.d.ts.map +1 -1
  35. package/dist/entities/chatter-message.entity.js +4 -3
  36. package/dist/entities/chatter-message.entity.js.map +1 -1
  37. package/dist/entities/common.entity.js +1 -1
  38. package/dist/entities/common.entity.js.map +1 -1
  39. package/dist/entities/dashboard-layout.entity.d.ts +9 -0
  40. package/dist/entities/dashboard-layout.entity.d.ts.map +1 -0
  41. package/dist/entities/dashboard-layout.entity.js +41 -0
  42. package/dist/entities/dashboard-layout.entity.js.map +1 -0
  43. package/dist/entities/dashboard-question-sql-dataset-config.entity.d.ts.map +1 -1
  44. package/dist/entities/dashboard-question-sql-dataset-config.entity.js +5 -4
  45. package/dist/entities/dashboard-question-sql-dataset-config.entity.js.map +1 -1
  46. package/dist/entities/dashboard-question.entity.d.ts.map +1 -1
  47. package/dist/entities/dashboard-question.entity.js +5 -4
  48. package/dist/entities/dashboard-question.entity.js.map +1 -1
  49. package/dist/entities/dashboard-variable.entity.d.ts +1 -0
  50. package/dist/entities/dashboard-variable.entity.d.ts.map +1 -1
  51. package/dist/entities/dashboard-variable.entity.js +10 -4
  52. package/dist/entities/dashboard-variable.entity.js.map +1 -1
  53. package/dist/entities/dashboard.entity.d.ts +2 -0
  54. package/dist/entities/dashboard.entity.d.ts.map +1 -1
  55. package/dist/entities/dashboard.entity.js +9 -3
  56. package/dist/entities/dashboard.entity.js.map +1 -1
  57. package/dist/entities/email-attachment.entity.d.ts.map +1 -1
  58. package/dist/entities/email-attachment.entity.js +2 -1
  59. package/dist/entities/email-attachment.entity.js.map +1 -1
  60. package/dist/entities/email-template.entity.js +1 -1
  61. package/dist/entities/email-template.entity.js.map +1 -1
  62. package/dist/entities/export-transaction.entity.d.ts.map +1 -1
  63. package/dist/entities/export-transaction.entity.js +2 -1
  64. package/dist/entities/export-transaction.entity.js.map +1 -1
  65. package/dist/entities/field-metadata.entity.js +2 -2
  66. package/dist/entities/field-metadata.entity.js.map +1 -1
  67. package/dist/entities/import-transaction-error-log.entity.d.ts.map +1 -1
  68. package/dist/entities/import-transaction-error-log.entity.js +3 -2
  69. package/dist/entities/import-transaction-error-log.entity.js.map +1 -1
  70. package/dist/entities/import-transaction.entity.d.ts.map +1 -1
  71. package/dist/entities/import-transaction.entity.js +2 -1
  72. package/dist/entities/import-transaction.entity.js.map +1 -1
  73. package/dist/entities/legacy-common.entity.d.ts.map +1 -1
  74. package/dist/entities/legacy-common.entity.js +1 -1
  75. package/dist/entities/legacy-common.entity.js.map +1 -1
  76. package/dist/entities/mq-message.entity.d.ts.map +1 -1
  77. package/dist/entities/mq-message.entity.js +5 -3
  78. package/dist/entities/mq-message.entity.js.map +1 -1
  79. package/dist/entities/saved-filters.entity.d.ts.map +1 -1
  80. package/dist/entities/saved-filters.entity.js +3 -2
  81. package/dist/entities/saved-filters.entity.js.map +1 -1
  82. package/dist/entities/security-rule.entity.d.ts.map +1 -1
  83. package/dist/entities/security-rule.entity.js +2 -1
  84. package/dist/entities/security-rule.entity.js.map +1 -1
  85. package/dist/entities/sms-template.entity.js +1 -1
  86. package/dist/entities/sms-template.entity.js.map +1 -1
  87. package/dist/entities/user-view-metadata.entity.d.ts.map +1 -1
  88. package/dist/entities/user-view-metadata.entity.js +2 -1
  89. package/dist/entities/user-view-metadata.entity.js.map +1 -1
  90. package/dist/entities/user.entity.d.ts.map +1 -1
  91. package/dist/entities/user.entity.js +2 -0
  92. package/dist/entities/user.entity.js.map +1 -1
  93. package/dist/entities/view-metadata.entity.d.ts.map +1 -1
  94. package/dist/entities/view-metadata.entity.js.map +1 -1
  95. package/dist/helpers/bootstrap.helper.d.ts +14 -0
  96. package/dist/helpers/bootstrap.helper.d.ts.map +1 -0
  97. package/dist/helpers/bootstrap.helper.js +132 -0
  98. package/dist/helpers/bootstrap.helper.js.map +1 -0
  99. package/dist/helpers/cache.helper.d.ts +2 -0
  100. package/dist/helpers/cache.helper.d.ts.map +1 -0
  101. package/dist/helpers/cache.helper.js +8 -0
  102. package/dist/helpers/cache.helper.js.map +1 -0
  103. package/dist/helpers/field-crud-managers/MediaFieldCrudManager.d.ts +1 -0
  104. package/dist/helpers/field-crud-managers/MediaFieldCrudManager.d.ts.map +1 -1
  105. package/dist/helpers/field-crud-managers/MediaFieldCrudManager.js +8 -9
  106. package/dist/helpers/field-crud-managers/MediaFieldCrudManager.js.map +1 -1
  107. package/dist/helpers/field-crud-managers/SelectionDynamicFieldCrudManager.d.ts +2 -2
  108. package/dist/helpers/field-crud-managers/SelectionDynamicFieldCrudManager.d.ts.map +1 -1
  109. package/dist/helpers/field-crud-managers/SelectionDynamicFieldCrudManager.js +8 -5
  110. package/dist/helpers/field-crud-managers/SelectionDynamicFieldCrudManager.js.map +1 -1
  111. package/dist/helpers/solid-registry.d.ts.map +1 -1
  112. package/dist/helpers/solid-registry.js.map +1 -1
  113. package/dist/helpers/typeorm-db-helper.d.ts.map +1 -1
  114. package/dist/helpers/typeorm-db-helper.js +21 -0
  115. package/dist/helpers/typeorm-db-helper.js.map +1 -1
  116. package/dist/index.d.ts +3 -0
  117. package/dist/index.d.ts.map +1 -1
  118. package/dist/index.js +3 -0
  119. package/dist/index.js.map +1 -1
  120. package/dist/interfaces.d.ts +5 -1
  121. package/dist/interfaces.d.ts.map +1 -1
  122. package/dist/interfaces.js.map +1 -1
  123. package/dist/jobs/computed-field-evaluation-queue-options.d.ts +1 -0
  124. package/dist/jobs/computed-field-evaluation-queue-options.d.ts.map +1 -1
  125. package/dist/jobs/computed-field-evaluation-queue-options.js +1 -0
  126. package/dist/jobs/computed-field-evaluation-queue-options.js.map +1 -1
  127. package/dist/repository/dashboard-layout.repository.d.ts +12 -0
  128. package/dist/repository/dashboard-layout.repository.d.ts.map +1 -0
  129. package/dist/repository/dashboard-layout.repository.js +34 -0
  130. package/dist/repository/dashboard-layout.repository.js.map +1 -0
  131. package/dist/seeders/module-metadata-seeder.service.js +4 -4
  132. package/dist/seeders/module-metadata-seeder.service.js.map +1 -1
  133. package/dist/seeders/seed-data/solid-core-metadata.json +445 -35
  134. package/dist/services/authentication.service.d.ts.map +1 -1
  135. package/dist/services/authentication.service.js +44 -21
  136. package/dist/services/authentication.service.js.map +1 -1
  137. package/dist/services/chatter-message.service.d.ts +0 -1
  138. package/dist/services/chatter-message.service.d.ts.map +1 -1
  139. package/dist/services/chatter-message.service.js +22 -19
  140. package/dist/services/chatter-message.service.js.map +1 -1
  141. package/dist/services/computed-fields/entity/sequence-num-computed-field-provider.d.ts +7 -3
  142. package/dist/services/computed-fields/entity/sequence-num-computed-field-provider.d.ts.map +1 -1
  143. package/dist/services/computed-fields/entity/sequence-num-computed-field-provider.js +61 -22
  144. package/dist/services/computed-fields/entity/sequence-num-computed-field-provider.js.map +1 -1
  145. package/dist/services/crud.service.js +1 -1
  146. package/dist/services/crud.service.js.map +1 -1
  147. package/dist/services/dashboard-layout.service.d.ts +20 -0
  148. package/dist/services/dashboard-layout.service.d.ts.map +1 -0
  149. package/dist/services/dashboard-layout.service.js +120 -0
  150. package/dist/services/dashboard-layout.service.js.map +1 -0
  151. package/dist/services/dashboard-question.service.d.ts +4 -0
  152. package/dist/services/dashboard-question.service.d.ts.map +1 -1
  153. package/dist/services/dashboard-question.service.js +22 -8
  154. package/dist/services/dashboard-question.service.js.map +1 -1
  155. package/dist/services/dashboard.service.d.ts +2 -0
  156. package/dist/services/dashboard.service.d.ts.map +1 -1
  157. package/dist/services/dashboard.service.js +4 -0
  158. package/dist/services/dashboard.service.js.map +1 -1
  159. package/dist/services/model-metadata.service.d.ts +6 -1
  160. package/dist/services/model-metadata.service.d.ts.map +1 -1
  161. package/dist/services/model-metadata.service.js +155 -8
  162. package/dist/services/model-metadata.service.js.map +1 -1
  163. package/dist/services/permission-metadata.service.d.ts +5 -1
  164. package/dist/services/permission-metadata.service.d.ts.map +1 -1
  165. package/dist/services/permission-metadata.service.js +70 -20
  166. package/dist/services/permission-metadata.service.js.map +1 -1
  167. package/dist/services/question-data-providers/chartjs-sql-data-provider.service.d.ts +2 -4
  168. package/dist/services/question-data-providers/chartjs-sql-data-provider.service.d.ts.map +1 -1
  169. package/dist/services/question-data-providers/chartjs-sql-data-provider.service.js +2 -1
  170. package/dist/services/question-data-providers/chartjs-sql-data-provider.service.js.map +1 -1
  171. package/dist/services/question-data-providers/interfaces.d.ts +1 -0
  172. package/dist/services/question-data-providers/interfaces.d.ts.map +1 -0
  173. package/dist/services/question-data-providers/interfaces.js +1 -0
  174. package/dist/services/question-data-providers/interfaces.js.map +1 -0
  175. package/dist/services/question-data-providers/prime-react-datatable-sql-data-provider.service.d.ts +2 -5
  176. package/dist/services/question-data-providers/prime-react-datatable-sql-data-provider.service.d.ts.map +1 -1
  177. package/dist/services/question-data-providers/prime-react-datatable-sql-data-provider.service.js +2 -1
  178. package/dist/services/question-data-providers/prime-react-datatable-sql-data-provider.service.js.map +1 -1
  179. package/dist/services/question-data-providers/prime-react-meter-group-sql-data-provider.service.d.ts +2 -5
  180. package/dist/services/question-data-providers/prime-react-meter-group-sql-data-provider.service.d.ts.map +1 -1
  181. package/dist/services/question-data-providers/prime-react-meter-group-sql-data-provider.service.js +2 -1
  182. package/dist/services/question-data-providers/prime-react-meter-group-sql-data-provider.service.js.map +1 -1
  183. package/dist/services/queues/database-subscriber.service.d.ts +4 -2
  184. package/dist/services/queues/database-subscriber.service.d.ts.map +1 -1
  185. package/dist/services/queues/database-subscriber.service.js +15 -2
  186. package/dist/services/queues/database-subscriber.service.js.map +1 -1
  187. package/dist/services/queues/publisher-factory.service.d.ts.map +1 -1
  188. package/dist/services/queues/publisher-factory.service.js +4 -6
  189. package/dist/services/queues/publisher-factory.service.js.map +1 -1
  190. package/dist/services/queues/rabbitmq-subscriber.service.d.ts +8 -3
  191. package/dist/services/queues/rabbitmq-subscriber.service.d.ts.map +1 -1
  192. package/dist/services/queues/rabbitmq-subscriber.service.js +78 -6
  193. package/dist/services/queues/rabbitmq-subscriber.service.js.map +1 -1
  194. package/dist/services/scheduled-job.service.d.ts +6 -1
  195. package/dist/services/scheduled-job.service.d.ts.map +1 -1
  196. package/dist/services/scheduled-job.service.js +26 -2
  197. package/dist/services/scheduled-job.service.js.map +1 -1
  198. package/dist/services/scheduled-jobs/scheduler.interface.d.ts +2 -0
  199. package/dist/services/scheduled-jobs/scheduler.interface.d.ts.map +1 -1
  200. package/dist/services/scheduled-jobs/scheduler.interface.js.map +1 -1
  201. package/dist/services/scheduled-jobs/scheduler.service.d.ts +6 -2
  202. package/dist/services/scheduled-jobs/scheduler.service.d.ts.map +1 -1
  203. package/dist/services/scheduled-jobs/scheduler.service.js +75 -17
  204. package/dist/services/scheduled-jobs/scheduler.service.js.map +1 -1
  205. package/dist/services/selection-providers/list-of-dashboard-question-providers-selection-provider.service.d.ts.map +1 -1
  206. package/dist/services/selection-providers/list-of-dashboard-question-providers-selection-provider.service.js +4 -1
  207. package/dist/services/selection-providers/list-of-dashboard-question-providers-selection-provider.service.js.map +1 -1
  208. package/dist/services/solid-ts-morph.service.d.ts +9 -0
  209. package/dist/services/solid-ts-morph.service.d.ts.map +1 -1
  210. package/dist/services/solid-ts-morph.service.js +76 -0
  211. package/dist/services/solid-ts-morph.service.js.map +1 -1
  212. package/dist/solid-core.module.d.ts.map +1 -1
  213. package/dist/solid-core.module.js +8 -0
  214. package/dist/solid-core.module.js.map +1 -1
  215. package/dist/subscribers/computed-entity-field.subscriber.js +3 -1
  216. package/dist/subscribers/computed-entity-field.subscriber.js.map +1 -1
  217. package/dist/transformers/typeorm/local-date-time-transformer.d.ts +4 -4
  218. package/dist/transformers/typeorm/local-date-time-transformer.d.ts.map +1 -1
  219. package/dist/transformers/typeorm/local-date-time-transformer.js +25 -28
  220. package/dist/transformers/typeorm/local-date-time-transformer.js.map +1 -1
  221. package/dist-tests/api/authenticate.spec.js +119 -0
  222. package/dist-tests/api/authenticate.spec.js.map +1 -0
  223. package/dist-tests/api/crud-service.findOne.cityMaster.spec.js +97 -0
  224. package/dist-tests/api/crud-service.findOne.cityMaster.spec.js.map +1 -0
  225. package/dist-tests/api/ping.spec.js +21 -0
  226. package/dist-tests/api/ping.spec.js.map +1 -0
  227. package/dist-tests/helpers/auth.js +41 -0
  228. package/dist-tests/helpers/auth.js.map +1 -0
  229. package/dist-tests/helpers/env.js +11 -0
  230. package/dist-tests/helpers/env.js.map +1 -0
  231. package/package.json +3 -1
  232. package/sql/default/mariadb/proc_CleanupModelMetadata.sql +153 -0
  233. package/sql/default/mariadb/proc_CleanupModuleMetadata.sql +56 -0
  234. package/sql/default/mysql/proc_CleanupModelMetadata.sql +153 -0
  235. package/sql/default/mysql/proc_CleanupModuleMetadata.sql +56 -0
  236. package/src/controllers/dashboard-layout.controller.ts +106 -0
  237. package/src/controllers/scheduled-job.controller.ts +6 -0
  238. package/src/dtos/create-dashboard-layout.dto.ts +31 -0
  239. package/src/dtos/create-dashboard-variable.dto.ts +4 -0
  240. package/src/dtos/update-dashboard-layout.dto.ts +30 -0
  241. package/src/dtos/update-dashboard-variable.dto.ts +5 -1
  242. package/src/entities/action-metadata.entity.ts +3 -2
  243. package/src/entities/ai-interaction.entity.ts +5 -4
  244. package/src/entities/chatter-message-details.entity.ts +7 -3
  245. package/src/entities/chatter-message.entity.ts +4 -3
  246. package/src/entities/common.entity.ts +2 -2
  247. package/src/entities/dashboard-layout.entity.ts +18 -0
  248. package/src/entities/dashboard-question-sql-dataset-config.entity.ts +5 -4
  249. package/src/entities/dashboard-question.entity.ts +5 -4
  250. package/src/entities/dashboard-variable.entity.ts +9 -4
  251. package/src/entities/dashboard.entity.ts +7 -2
  252. package/src/entities/email-attachment.entity.ts +2 -1
  253. package/src/entities/email-template.entity.ts +1 -1
  254. package/src/entities/export-transaction.entity.ts +2 -1
  255. package/src/entities/field-metadata.entity.ts +2 -2
  256. package/src/entities/import-transaction-error-log.entity.ts +3 -2
  257. package/src/entities/import-transaction.entity.ts +2 -1
  258. package/src/entities/legacy-common.entity.ts +3 -4
  259. package/src/entities/mq-message.entity.ts +5 -3
  260. package/src/entities/saved-filters.entity.ts +3 -2
  261. package/src/entities/security-rule.entity.ts +2 -1
  262. package/src/entities/sms-template.entity.ts +1 -1
  263. package/src/entities/user-view-metadata.entity.ts +2 -1
  264. package/src/entities/user.entity.ts +37 -2
  265. package/src/entities/view-metadata.entity.ts +3 -0
  266. package/src/helpers/bootstrap.helper.ts +222 -0
  267. package/src/helpers/cache.helper.ts +5 -0
  268. package/src/helpers/field-crud-managers/MediaFieldCrudManager.ts +9 -9
  269. package/src/helpers/field-crud-managers/SelectionDynamicFieldCrudManager.ts +9 -6
  270. package/src/helpers/solid-registry.ts +1 -5
  271. package/src/helpers/typeorm-db-helper.ts +26 -0
  272. package/src/index.ts +3 -0
  273. package/src/interfaces.ts +9 -1
  274. package/src/jobs/computed-field-evaluation-queue-options.ts +1 -0
  275. package/src/repository/dashboard-layout.repository.ts +17 -0
  276. package/src/seeders/module-metadata-seeder.service.ts +5 -5
  277. package/src/seeders/seed-data/solid-core-metadata.json +446 -36
  278. package/src/services/authentication.service.ts +46 -24
  279. package/src/services/chatter-message.service.ts +21 -21
  280. package/src/services/computed-fields/entity/sequence-num-computed-field-provider.ts +79 -40
  281. package/src/services/crud.service.ts +1 -1
  282. package/src/services/dashboard-layout.service.ts +111 -0
  283. package/src/services/dashboard-question.service.ts +23 -4
  284. package/src/services/dashboard.service.ts +7 -0
  285. package/src/services/model-metadata.service.ts +173 -50
  286. package/src/services/permission-metadata.service.ts +73 -20
  287. package/src/services/question-data-providers/chartjs-sql-data-provider.service.ts +3 -7
  288. package/src/services/question-data-providers/interfaces.ts +0 -0
  289. package/src/services/question-data-providers/prime-react-datatable-sql-data-provider.service.ts +4 -8
  290. package/src/services/question-data-providers/prime-react-meter-group-sql-data-provider.service.ts +4 -8
  291. package/src/services/queues/database-subscriber.service.ts +19 -2
  292. package/src/services/queues/publisher-factory.service.ts +8 -6
  293. package/src/services/queues/rabbitmq-subscriber.service.ts +123 -6
  294. package/src/services/scheduled-job.service.ts +31 -2
  295. package/src/services/scheduled-jobs/scheduler.interface.ts +4 -1
  296. package/src/services/scheduled-jobs/scheduler.service.ts +82 -20
  297. package/src/services/selection-providers/list-of-dashboard-question-providers-selection-provider.service.ts +4 -1
  298. package/src/services/solid-ts-morph.service.ts +98 -0
  299. package/src/solid-core.module.ts +13 -0
  300. package/src/subscribers/computed-entity-field.subscriber.ts +3 -3
  301. package/src/transformers/typeorm/local-date-time-transformer.ts +41 -33
  302. package/.claude/settings.local.json +0 -15
  303. package/src/services/1.js +0 -6
@@ -1 +1 @@
1
- {"version":3,"file":"update-dashboard-variable.dto.js","sourceRoot":"","sources":["../../src/dtos/update-dashboard-variable.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA4F;AAC5F,6CAA8C;AAE9C,MAAa,0BAA0B;;;;CAkDtC;AAlDD,gEAkDC;AA/CG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;sDACG;AAKX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;gEACO;AAKrB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;gEACO;AAIrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;yEACa;AAI3B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;8EACqB;AAInC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,sJAAsJ,EAAE,CAAC;;uEACzJ;AAI5B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,oRAAoR,EAAE,CAAC;;gFAC9Q;AAIrC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,4KAA4K,EAAE,CAAC;;iEACpL;AAIvB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;;+DACpC;AAIpB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;;oEAC/B;AAIzB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,wJAAwJ,EAAE,CAAC;;gEAClK;AAIrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,2JAA2J,EAAE,CAAC;;mEAClK","sourcesContent":["import { IsInt,IsOptional, IsString, IsNotEmpty, IsJSON, IsBoolean } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\n\nexport class UpdateDashboardVariableDto {\n @IsOptional()\n @IsInt()\n id: number;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n variableName: string;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n variableType: string;\n @IsOptional()\n @IsJSON()\n @ApiProperty()\n selectionStaticValues: any;\n @IsOptional()\n @IsString()\n @ApiProperty()\n selectionDynamicSourceType: string;\n @IsOptional()\n @IsString()\n @ApiProperty({ description: \"SQL query to fetch the data for this variable when it is rendered at runtime. This is only applicable when selectionDynamicSourceType is set to SQL.\" })\n selectionDynamicSQL: string;\n @IsOptional()\n @IsString()\n @ApiProperty({ description: \"This is only applicable when selectionDynamicSourceType is set to provider. It allows the user to select any pre-existing Dashboard SelectionDynamicProvider implementation used to fetch a dynamic dropdown of values to choose from when this variable is presented to the user.\" })\n selectionDynamicProviderName: string;\n @IsOptional()\n @IsBoolean()\n @ApiProperty({ description: \"This is relevant only for variables of type \\\"selectionStatic\\\" or \\\"selectionDynamic\\\". When set to true, it allows the user to select multiple values from the dropdown.\" })\n isMultiSelect: boolean;\n @IsOptional()\n @IsInt()\n @ApiProperty({ description: \"Related Dashboard Model\" })\n dashboardId: number;\n @IsString()\n @IsOptional()\n @ApiProperty({ description: \"Related Dashboard Model\" })\n dashboardUserKey: string;\n @IsOptional()\n @IsString()\n @ApiProperty({ description: \"This is the default value for this variable when it is rendered at runtime. It can be a static value for this variable when it is rendered at runtime.\" })\n defaultValue: string;\n @IsOptional()\n @IsString()\n @ApiProperty({ description: \"This is the default operator for this variable when it is rendered at runtime. It can be a static value for this variable when it is rendered at runtime.\" })\n defaultOperator: string;\n}"]}
1
+ {"version":3,"file":"update-dashboard-variable.dto.js","sourceRoot":"","sources":["../../src/dtos/update-dashboard-variable.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA6F;AAC7F,6CAA8C;AAE9C,MAAa,0BAA0B;;;;CAsDtC;AAtDD,gEAsDC;AAnDG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;sDACG;AAKX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;gEACO;AAKrB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;gEACO;AAIrB;IAHC,IAAA,4BAAU,GA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perty } from '@nestjs/swagger';\n\nexport class UpdateDashboardVariableDto {\n @IsOptional()\n @IsInt()\n id: number;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n variableName: string;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n variableType: string;\n @IsOptional()\n @IsJSON()\n @ApiProperty()\n selectionStaticValues: any;\n @IsOptional()\n @IsString()\n @ApiProperty()\n selectionDynamicSourceType: string;\n @IsOptional()\n @IsString()\n @ApiProperty({ description: \"SQL query to fetch the data for this variable when it is rendered at runtime. This is only applicable when selectionDynamicSourceType is set to SQL.\" })\n selectionDynamicSQL: string;\n @IsOptional()\n @IsString()\n @ApiProperty({ description: \"This is only applicable when selectionDynamicSourceType is set to provider. It allows the user to select any pre-existing Dashboard SelectionDynamicProvider implementation used to fetch a dynamic dropdown of values to choose from when this variable is presented to the user.\" })\n selectionDynamicProviderName: string;\n @IsOptional()\n @IsBoolean()\n @ApiProperty({ description: \"This is relevant only for variables of type \\\"selectionStatic\\\" or \\\"selectionDynamic\\\". When set to true, it allows the user to select multiple values from the dropdown.\" })\n isMultiSelect: boolean;\n @IsOptional()\n @IsInt()\n @ApiProperty({ description: \"Related Dashboard Model\" })\n dashboardId: number;\n @IsString()\n @IsOptional()\n @ApiProperty({ description: \"Related Dashboard Model\" })\n dashboardUserKey: string;\n @IsOptional()\n @IsString()\n @ApiProperty({ description: \"This is the default value for this variable when it is rendered at runtime. It can be a static value for this variable when it is rendered at runtime.\" })\n defaultValue: string;\n @IsOptional()\n @IsString()\n @ApiProperty({ description: \"This is the default operator for this variable when it is rendered at runtime. It can be a static value for this variable when it is rendered at runtime.\" })\n defaultOperator: string;\n @IsString()\n @IsOptional()\n @ApiProperty()\n externalId: string;\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"action-metadata.entity.d.ts","sourceRoot":"","sources":["../../src/entities/action-metadata.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BA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,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,EAAE,EAAE,CAAC;IACnC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,uCAAc;8CAAC;AAKvB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qCAAa,EAAE,EAAE,CAAC;IAClC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,qCAAa;6CAAC;AAKrB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,EAAE,CAAC;IACjC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,mCAAY;4CAAC;yBAvCV,cAAc;IAD1B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,cAAc,CAwC1B","sourcesContent":["import { CommonEntity } from \"src/entities/common.entity\"\nimport { Entity, Column, Index, ManyToOne, JoinColumn } from \"typeorm\";\nimport { ModuleMetadata } from 'src/entities/module-metadata.entity';\nimport { ModelMetadata } from 'src/entities/model-metadata.entity';\nimport { ViewMetadata } from 'src/entities/view-metadata.entity'\n@Entity(\"ss_action_metadata\")\nexport class ActionMetadata extends CommonEntity {\n @Column({ name: \"name\", type: \"varchar\", unique: true })\n name: string;\n\n @Column({ name: \"display_name\", type: \"varchar\" })\n displayName: string;\n\n @Index()\n @Column({ name: \"type\", type: \"varchar\" })\n type: string;\n\n @Column({ name: \"domain\", type: \"text\", nullable: true })\n domain: any;\n\n @Column({ name: \"context\", type: \"text\", nullable: true })\n context: any;\n\n @Column({ name: \"custom_component\", type: \"varchar\", nullable: true })\n customComponent: string;\n\n @Column({ name: \"custom_is_modal\", nullable: true })\n customIsModal: boolean;\n\n @Column({ name: \"server_endpoint\", type: \"varchar\", nullable: true })\n serverEndpoint: string;\n\n @Index()\n @ManyToOne(() => ModuleMetadata, {})\n @JoinColumn({ name: 'module_id', referencedColumnName: 'id' })\n module: ModuleMetadata;\n\n @Index()\n @ManyToOne(() => ModelMetadata, {})\n @JoinColumn({ name: 'model_id', referencedColumnName: 'id' })\n model: ModelMetadata;\n\n @Index()\n @ManyToOne(() => ViewMetadata, {})\n @JoinColumn({ name: 'view_id', referencedColumnName: 'id' })\n view: ViewMetadata;\n}"]}
1
+ {"version":3,"file":"action-metadata.entity.js","sourceRoot":"","sources":["../../src/entities/action-metadata.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAuE;AACvE,qEAAqE;AACrE,mEAAmE;AACnE,iEAAgE;AAGzD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAY;;;;CAwC/C,CAAA;AAxCY,wCAAc;AAEvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;4CAC3C;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDAC9B;AAIpB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;4CAC7B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;;8CAC5C;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;;+CAC5C;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDAC9C;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAC7B;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAC9C;AAKvB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,EAAE,EAAE,CAAC;IACnC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,uCAAc;8CAAC;AAKvB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qCAAa,EAAE,EAAE,CAAC;IAClC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,qCAAa;6CAAC;AAKrB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,EAAE,CAAC;IACjC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,mCAAY;4CAAC;yBAvCV,cAAc;IAD1B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,cAAc,CAwC1B","sourcesContent":["import { CommonEntity } from \"src/entities/common.entity\"\nimport { Entity, Column, Index, ManyToOne, JoinColumn } from \"typeorm\";\nimport { ModuleMetadata } from 'src/entities/module-metadata.entity';\nimport { ModelMetadata } from 'src/entities/model-metadata.entity';\nimport { ViewMetadata } from 'src/entities/view-metadata.entity'\nimport { getColumnType } from 'src/helpers/typeorm-db-helper';\n@Entity(\"ss_action_metadata\")\nexport class ActionMetadata extends CommonEntity {\n @Column({ name: \"name\", type: \"varchar\", unique: true })\n name: string;\n\n @Column({ name: \"display_name\", type: \"varchar\" })\n displayName: string;\n\n @Index()\n @Column({ name: \"type\", type: \"varchar\" })\n type: string;\n\n @Column({ name: \"domain\", type: \"text\", nullable: true})\n domain: any;\n\n @Column({ name: \"context\", type: \"text\", nullable: true})\n context: any;\n\n @Column({ name: \"custom_component\", type: \"varchar\", nullable: true })\n customComponent: string;\n\n @Column({ name: \"custom_is_modal\", nullable: true })\n customIsModal: boolean;\n\n @Column({ name: \"server_endpoint\", type: \"varchar\", nullable: true })\n serverEndpoint: string;\n\n @Index()\n @ManyToOne(() => ModuleMetadata, {})\n @JoinColumn({ name: 'module_id', referencedColumnName: 'id' })\n module: ModuleMetadata;\n\n @Index()\n @ManyToOne(() => ModelMetadata, {})\n @JoinColumn({ name: 'model_id', referencedColumnName: 'id' })\n model: ModelMetadata;\n\n @Index()\n @ManyToOne(() => ViewMetadata, {})\n @JoinColumn({ name: 'view_id', referencedColumnName: 'id' })\n view: ViewMetadata;\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ai-interaction.entity.d.ts","sourceRoot":"","sources":["../../src/entities/ai-interaction.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAE/C,qBACa,aAAc,SAAQ,YAAY;IAI3C,IAAI,EAAE,IAAI,CAAC;IAIX,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAIpB,MAAM,EAAE,MAAM,CAAC;IAGf,YAAY,EAAE,MAAM,CAAC;IAGrB,SAAS,EAAE,MAAM,CAAC;IAGlB,cAAc,EAAE,MAAM,CAAC;IAGvB,QAAQ,EAAE,GAAG,CAAC;IAGd,SAAS,EAAE,OAAO,CAAS;IAK3B,iBAAiB,EAAE,aAAa,CAAC;IAIjC,UAAU,EAAE,MAAM,CAAC;IAGnB,WAAW,EAAE,OAAO,CAAS;IAG7B,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,EAAE,MAAM,CAAC;IAGrB,WAAW,EAAE,MAAM,CAAC;IAGpB,eAAe,EAAE,MAAM,CAAC;IAGxB,QAAQ,EAAE,OAAO,CAAS;CAC7B"}
1
+ {"version":3,"file":"ai-interaction.entity.d.ts","sourceRoot":"","sources":["../../src/entities/ai-interaction.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAG/C,qBACa,aAAc,SAAQ,YAAY;IAI3C,IAAI,EAAE,IAAI,CAAC;IAIX,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAIpB,MAAM,EAAE,MAAM,CAAC;IAGf,YAAY,EAAE,MAAM,CAAC;IAGrB,SAAS,EAAE,MAAM,CAAC;IAGlB,cAAc,EAAE,MAAM,CAAC;IAGvB,QAAQ,EAAE,GAAG,CAAC;IAGd,SAAS,EAAE,OAAO,CAAS;IAK3B,iBAAiB,EAAE,aAAa,CAAC;IAIjC,UAAU,EAAE,MAAM,CAAC;IAGnB,WAAW,EAAE,OAAO,CAAS;IAG7B,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,EAAE,MAAM,CAAC;IAGrB,WAAW,EAAE,MAAM,CAAC;IAGpB,eAAe,EAAE,MAAM,CAAC;IAGxB,QAAQ,EAAE,OAAO,CAAS;CAC7B"}
@@ -14,6 +14,7 @@ const openapi = require("@nestjs/swagger");
14
14
  const common_entity_1 = require("./common.entity");
15
15
  const typeorm_1 = require("typeorm");
16
16
  const user_entity_1 = require("./user.entity");
17
+ const typeorm_db_helper_1 = require("../helpers/typeorm-db-helper");
17
18
  let AiInteraction = class AiInteraction extends common_entity_1.CommonEntity {
18
19
  constructor() {
19
20
  super(...arguments);
@@ -42,7 +43,7 @@ __decorate([
42
43
  __metadata("design:type", String)
43
44
  ], AiInteraction.prototype, "role", void 0);
44
45
  __decorate([
45
- (0, typeorm_1.Column)({ type: "text" }),
46
+ (0, typeorm_1.Column)({ ...(0, typeorm_db_helper_1.getColumnType)('longText'), nullable: true }),
46
47
  __metadata("design:type", String)
47
48
  ], AiInteraction.prototype, "message", void 0);
48
49
  __decorate([
@@ -55,7 +56,7 @@ __decorate([
55
56
  __metadata("design:type", String)
56
57
  ], AiInteraction.prototype, "status", void 0);
57
58
  __decorate([
58
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
59
+ (0, typeorm_1.Column)({ nullable: true, ...(0, typeorm_db_helper_1.getColumnType)('longText') }),
59
60
  __metadata("design:type", String)
60
61
  ], AiInteraction.prototype, "errorMessage", void 0);
61
62
  __decorate([
@@ -67,7 +68,7 @@ __decorate([
67
68
  __metadata("design:type", Number)
68
69
  ], AiInteraction.prototype, "responseTimeMs", void 0);
69
70
  __decorate([
70
- (0, typeorm_1.Column)({ type: "simple-json", nullable: true }),
71
+ (0, typeorm_1.Column)({ type: "simple-json", nullable: true, ...(0, typeorm_db_helper_1.getColumnType)('simpleJsonLargeText') }),
71
72
  __metadata("design:type", Object)
72
73
  ], AiInteraction.prototype, "metadata", void 0);
73
74
  __decorate([
@@ -102,7 +103,7 @@ __decorate([
102
103
  __metadata("design:type", Number)
103
104
  ], AiInteraction.prototype, "totalTokens", void 0);
104
105
  __decorate([
105
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
106
+ (0, typeorm_1.Column)({ nullable: true, ...(0, typeorm_db_helper_1.getColumnType)('longText') }),
106
107
  __metadata("design:type", String)
107
108
  ], AiInteraction.prototype, "originalMessage", void 0);
108
109
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"ai-interaction.entity.js","sourceRoot":"","sources":["../../src/entities/ai-interaction.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAuE;AACvE,+CAA+C;AAGxC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAY;IAAxC;;QAoCH,cAAS,GAAY,KAAK,CAAC;QAY3B,gBAAW,GAAY,KAAK,CAAC;QAe7B,aAAQ,GAAY,KAAK,CAAC;KAC7B;;0lBA5BwB,KAAK,0NAYH,KAAK,uRAeR,KAAK;;CAC5B,CAAA;AAhEY,sCAAa;AAItB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzC,IAAA,oBAAU,GAAE;8BACP,kBAAI;2CAAC;AAIX;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;+CACX;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2CACf;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACT;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxB;AAIpB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC7B;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACpB;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAA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;+CACjB;wBA/DjB,aAAa;IADzB,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,aAAa,CAgEzB","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, JoinColumn, ManyToOne, Index, Column } from 'typeorm';\nimport { User } from 'src/entities/user.entity'\n\n@Entity(\"ss_ai_interactions\")\nexport class AiInteraction extends CommonEntity {\n @Index()\n @ManyToOne(() => User, { nullable: true })\n @JoinColumn()\n user: User;\n\n @Index()\n @Column({ type: \"varchar\" })\n threadId: string;\n\n @Column({ type: \"varchar\" })\n role: string;\n\n @Column({ type: \"text\" })\n message: string;\n\n @Column({ type: \"varchar\", nullable: true })\n contentType: string;\n\n @Index()\n @Column({ type: \"varchar\", nullable: true })\n status: string;\n\n @Column({ type: \"text\", nullable: true })\n errorMessage: string;\n\n @Column({ type: \"varchar\", nullable: true })\n modelUsed: string;\n\n @Column({ type: \"integer\", nullable: true })\n responseTimeMs: number;\n\n @Column({ type: \"simple-json\", nullable: true })\n metadata: any;\n\n @Column({ nullable: true, default: false })\n isApplied: boolean = false;\n\n @Index()\n @ManyToOne(() => AiInteraction, { nullable: true })\n @JoinColumn()\n parentInteraction: AiInteraction;\n\n @Index({ unique: true })\n @Column({ type: \"varchar\" })\n externalId: string;\n\n @Column({ nullable: true, default: false })\n isAutoApply: boolean = false;\n\n @Column({ type: \"integer\", nullable: true })\n inputTokens: number;\n\n @Column({ type: \"integer\", nullable: true })\n outputTokens: number;\n\n @Column({ type: \"integer\", nullable: true })\n totalTokens: number;\n\n @Column({ type: \"text\", nullable: true })\n originalMessage: string;\n\n @Column({ nullable: true, default: false })\n isEdited: boolean = false;\n}\n"]}
1
+ {"version":3,"file":"ai-interaction.entity.js","sourceRoot":"","sources":["../../src/entities/ai-interaction.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAuE;AACvE,+CAA+C;AAC/C,oEAA8D;AAGvD,IAAM,aAAa,GAAnB,MAAM,aAA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ourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, JoinColumn, ManyToOne, Index, Column } from 'typeorm';\nimport { User } from 'src/entities/user.entity'\nimport { getColumnType } from 'src/helpers/typeorm-db-helper';\n\n@Entity(\"ss_ai_interactions\")\nexport class AiInteraction extends CommonEntity {\n @Index()\n @ManyToOne(() => User, { nullable: true })\n @JoinColumn()\n user: User;\n\n @Index()\n @Column({ type: \"varchar\" })\n threadId: string;\n\n @Column({ type: \"varchar\" })\n role: string;\n\n @Column({ ...getColumnType('longText'), nullable: true })\n message: string;\n\n @Column({ type: \"varchar\", nullable: true })\n contentType: string;\n\n @Index()\n @Column({ type: \"varchar\", nullable: true })\n status: string;\n\n @Column({ nullable: true, ...getColumnType('longText') })\n errorMessage: string;\n\n @Column({ type: \"varchar\", nullable: true })\n modelUsed: string;\n\n @Column({ type: \"integer\", nullable: true })\n responseTimeMs: number;\n\n @Column({ type: \"simple-json\", nullable: true, ...getColumnType('simpleJsonLargeText') })\n metadata: any;\n\n @Column({ nullable: true, default: false })\n isApplied: boolean = false;\n\n @Index()\n @ManyToOne(() => AiInteraction, { nullable: true })\n @JoinColumn()\n parentInteraction: AiInteraction;\n\n @Index({ unique: true })\n @Column({ type: \"varchar\" })\n externalId: string;\n\n @Column({ nullable: true, default: false })\n isAutoApply: boolean = false;\n\n @Column({ type: \"integer\", nullable: true })\n inputTokens: number;\n\n @Column({ type: \"integer\", nullable: true })\n outputTokens: number;\n\n @Column({ type: \"integer\", nullable: true })\n totalTokens: number;\n\n @Column({ nullable: true, ...getColumnType('longText') })\n originalMessage: string;\n\n @Column({ nullable: true, default: false })\n isEdited: boolean = false;\n}\n"]}
@@ -8,5 +8,6 @@ export declare class ChatterMessageDetails extends CommonEntity {
8
8
  newValueDisplay: string;
9
9
  fieldName: string;
10
10
  fieldDisplayName: string;
11
+ fieldType: string;
11
12
  }
12
13
  //# sourceMappingURL=chatter-message-details.entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chatter-message-details.entity.d.ts","sourceRoot":"","sources":["../../src/entities/chatter-message-details.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AACpE,qBACa,qBAAsB,SAAQ,YAAY;IAInD,cAAc,EAAE,cAAc,CAAC;IAG/B,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,eAAe,EAAE,MAAM,CAAC;IAIxB,eAAe,EAAE,MAAM,CAAC;IAGxB,SAAS,EAAE,MAAM,CAAC;IAGlB,gBAAgB,EAAE,MAAM,CAAC;CAC5B"}
1
+ {"version":3,"file":"chatter-message-details.entity.d.ts","sourceRoot":"","sources":["../../src/entities/chatter-message-details.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AAEpE,qBACa,qBAAsB,SAAQ,YAAY;IAInD,cAAc,EAAE,cAAc,CAAC;IAG/B,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,eAAe,EAAE,MAAM,CAAC;IAIxB,eAAe,EAAE,MAAM,CAAC;IAGxB,SAAS,EAAE,MAAM,CAAC;IAGlB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,SAAS,EAAE,MAAM,CAAC;CACrB"}
@@ -14,9 +14,10 @@ const openapi = require("@nestjs/swagger");
14
14
  const common_entity_1 = require("./common.entity");
15
15
  const typeorm_1 = require("typeorm");
16
16
  const chatter_message_entity_1 = require("./chatter-message.entity");
17
+ const typeorm_db_helper_1 = require("../helpers/typeorm-db-helper");
17
18
  let ChatterMessageDetails = class ChatterMessageDetails extends common_entity_1.CommonEntity {
18
19
  static _OPENAPI_METADATA_FACTORY() {
19
- return { chatterMessage: { required: true, type: () => require("./chatter-message.entity").ChatterMessage }, oldValue: { required: true, type: () => String }, newValue: { required: true, type: () => String }, oldValueDisplay: { required: true, type: () => String }, newValueDisplay: { required: true, type: () => String }, fieldName: { required: true, type: () => String }, fieldDisplayName: { required: true, type: () => String } };
20
+ return { chatterMessage: { required: true, type: () => require("./chatter-message.entity").ChatterMessage }, oldValue: { required: true, type: () => String }, newValue: { required: true, type: () => String }, oldValueDisplay: { required: true, type: () => String }, newValueDisplay: { required: true, type: () => String }, fieldName: { required: true, type: () => String }, fieldDisplayName: { required: true, type: () => String }, fieldType: { required: true, type: () => String } };
20
21
  }
21
22
  };
22
23
  exports.ChatterMessageDetails = ChatterMessageDetails;
@@ -27,11 +28,11 @@ __decorate([
27
28
  __metadata("design:type", chatter_message_entity_1.ChatterMessage)
28
29
  ], ChatterMessageDetails.prototype, "chatterMessage", void 0);
29
30
  __decorate([
30
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
31
+ (0, typeorm_1.Column)({ nullable: true, ...(0, typeorm_db_helper_1.getColumnType)('longText') }),
31
32
  __metadata("design:type", String)
32
33
  ], ChatterMessageDetails.prototype, "oldValue", void 0);
33
34
  __decorate([
34
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
35
+ (0, typeorm_1.Column)({ nullable: true, ...(0, typeorm_db_helper_1.getColumnType)('longText') }),
35
36
  __metadata("design:type", String)
36
37
  ], ChatterMessageDetails.prototype, "newValue", void 0);
37
38
  __decorate([
@@ -48,9 +49,13 @@ __decorate([
48
49
  __metadata("design:type", String)
49
50
  ], ChatterMessageDetails.prototype, "fieldName", void 0);
50
51
  __decorate([
51
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
52
+ (0, typeorm_1.Column)({ nullable: true }),
52
53
  __metadata("design:type", String)
53
54
  ], ChatterMessageDetails.prototype, "fieldDisplayName", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ type: "varchar", nullable: true }),
57
+ __metadata("design:type", String)
58
+ ], ChatterMessageDetails.prototype, "fieldType", void 0);
54
59
  exports.ChatterMessageDetails = ChatterMessageDetails = __decorate([
55
60
  (0, typeorm_1.Entity)("ss_chatter_message_details")
56
61
  ], ChatterMessageDetails);
@@ -1 +1 @@
1
- {"version":3,"file":"chatter-message-details.entity.js","sourceRoot":"","sources":["../../src/entities/chatter-message-details.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAuE;AACvE,qEAAoE;AAE7D,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,4BAAY;;;;CAwBtD,CAAA;AAxBY,sDAAqB;AAI9B;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACnD,IAAA,oBAAU,GAAE;8BACG,uCAAc;6DAAC;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACxB;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACxB;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACpB;AAIxB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACpB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;wDACV;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DAChB;gCAvBhB,qBAAqB;IADjC,IAAA,gBAAM,EAAC,4BAA4B,CAAC;GACxB,qBAAqB,CAwBjC","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, JoinColumn, ManyToOne, Column, Index } from 'typeorm';\nimport { ChatterMessage } from 'src/entities/chatter-message.entity'\n@Entity(\"ss_chatter_message_details\")\nexport class ChatterMessageDetails extends CommonEntity {\n @Index()\n @ManyToOne(() => ChatterMessage, { nullable: true })\n @JoinColumn()\n chatterMessage: ChatterMessage;\n\n @Column({ type: \"text\", nullable: true })\n oldValue: string;\n\n @Column({ type: \"text\", nullable: true })\n newValue: string;\n\n @Column({ type: \"varchar\", nullable: true })\n oldValueDisplay: string;\n\n @Index()\n @Column({ type: \"varchar\", nullable: true })\n newValueDisplay: string;\n\n @Column({ type: \"varchar\" })\n fieldName: string;\n\n @Column({ type: \"text\", nullable: true })\n fieldDisplayName: string;\n}"]}
1
+ {"version":3,"file":"chatter-message-details.entity.js","sourceRoot":"","sources":["../../src/entities/chatter-message-details.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAuE;AACvE,qEAAoE;AACpE,oEAA8D;AAEvD,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,4BAAY;;;;CA2BtD,CAAA;AA3BY,sDAAqB;AAI9B;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACnD,IAAA,oBAAU,GAAE;8BACG,uCAAc;6DAAC;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,IAAA,iCAAa,EAAC,UAAU,CAAC,EAAE,CAAC;;uDACxC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,IAAA,iCAAa,EAAC,UAAU,CAAC,EAAE,CAAC;;uDACxC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACpB;AAIxB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACpB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;wDACV;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DACF;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDAC1B;gCA1BT,qBAAqB;IADjC,IAAA,gBAAM,EAAC,4BAA4B,CAAC;GACxB,qBAAqB,CA2BjC","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, JoinColumn, ManyToOne, Column, Index } from 'typeorm';\nimport { ChatterMessage } from 'src/entities/chatter-message.entity'\nimport { getColumnType } from 'src/helpers/typeorm-db-helper';\n@Entity(\"ss_chatter_message_details\")\nexport class ChatterMessageDetails extends CommonEntity {\n @Index()\n @ManyToOne(() => ChatterMessage, { nullable: true })\n @JoinColumn()\n chatterMessage: ChatterMessage;\n\n @Column({ nullable: true, ...getColumnType('longText') })\n oldValue: string;\n\n @Column({ nullable: true, ...getColumnType('longText') })\n newValue: string;\n\n @Column({ type: \"varchar\", nullable: true })\n oldValueDisplay: string;\n\n @Index()\n @Column({ type: \"varchar\", nullable: true })\n newValueDisplay: string;\n\n @Column({ type: \"varchar\" })\n fieldName: string;\n\n @Column({ nullable: true })\n fieldDisplayName: string;\n\n @Column({ type: \"varchar\", nullable: true })\n fieldType: string;\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"chatter-message.entity.d.ts","sourceRoot":"","sources":["../../src/entities/chatter-message.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,qBAEa,cAAe,SAAQ,YAAY;IAG5C,WAAW,EAAE,MAAM,CAAC;IAGpB,cAAc,EAAE,MAAM,CAAC;IAGvB,WAAW,EAAE,MAAM,CAAC;IAIpB,eAAe,EAAE,MAAM,CAAC;IAIxB,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,EAAE,IAAI,CAAC;IAGX,qBAAqB,EAAE,qBAAqB,EAAE,CAAC;IAG/C,gBAAgB,EAAE,MAAM,CAAC;IAGzB,YAAY,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"chatter-message.entity.d.ts","sourceRoot":"","sources":["../../src/entities/chatter-message.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAGzE,qBAEa,cAAe,SAAQ,YAAY;IAG5C,WAAW,EAAE,MAAM,CAAC;IAGpB,cAAc,EAAE,MAAM,CAAC;IAGvB,WAAW,EAAE,MAAM,CAAC;IAIpB,eAAe,EAAE,MAAM,CAAC;IAIxB,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,EAAE,IAAI,CAAC;IAGX,qBAAqB,EAAE,qBAAqB,EAAE,CAAC;IAG/C,gBAAgB,EAAE,MAAM,CAAC;IAGzB,YAAY,EAAE,MAAM,CAAC;CACxB"}
@@ -15,6 +15,7 @@ const common_entity_1 = require("./common.entity");
15
15
  const typeorm_1 = require("typeorm");
16
16
  const user_entity_1 = require("./user.entity");
17
17
  const chatter_message_details_entity_1 = require("./chatter-message-details.entity");
18
+ const typeorm_db_helper_1 = require("../helpers/typeorm-db-helper");
18
19
  let ChatterMessage = class ChatterMessage extends common_entity_1.CommonEntity {
19
20
  static _OPENAPI_METADATA_FACTORY() {
20
21
  return { messageType: { required: true, type: () => String }, messageSubType: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, user: { required: true, type: () => require("./user.entity").User }, chatterMessageDetails: { required: true, type: () => [require("./chatter-message-details.entity").ChatterMessageDetails] }, modelDisplayName: { required: true, type: () => String }, modelUserKey: { required: true, type: () => String } };
@@ -31,7 +32,7 @@ __decorate([
31
32
  __metadata("design:type", String)
32
33
  ], ChatterMessage.prototype, "messageSubType", void 0);
33
34
  __decorate([
34
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
35
+ (0, typeorm_1.Column)({ nullable: true, ...(0, typeorm_db_helper_1.getColumnType)('longText') }),
35
36
  __metadata("design:type", String)
36
37
  ], ChatterMessage.prototype, "messageBody", void 0);
37
38
  __decorate([
@@ -55,11 +56,11 @@ __decorate([
55
56
  __metadata("design:type", Array)
56
57
  ], ChatterMessage.prototype, "chatterMessageDetails", void 0);
57
58
  __decorate([
58
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
59
+ (0, typeorm_1.Column)({ nullable: true }),
59
60
  __metadata("design:type", String)
60
61
  ], ChatterMessage.prototype, "modelDisplayName", void 0);
61
62
  __decorate([
62
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
63
+ (0, typeorm_1.Column)({ nullable: true }),
63
64
  __metadata("design:type", String)
64
65
  ], ChatterMessage.prototype, "modelUserKey", void 0);
65
66
  exports.ChatterMessage = ChatterMessage = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"chatter-message.entity.js","sourceRoot":"","sources":["../../src/entities/chatter-message.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAkF;AAClF,+CAA+C;AAC/C,qFAAyE;AAIlE,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAY;;;;CAgC/C,CAAA;AAhCY,wCAAc;AAGvB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACR;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sDACL;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACrB;AAIpB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;uDACJ;AAIxB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACR;AAKpB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzC,IAAA,oBAAU,GAAE;8BACP,kBAAI;4CAAC;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sDAAqB,EAAE,CAAC,qBAAqB,EAAE,EAAE,CAAC,qBAAqB,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;6DAC5E;AAG/C;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDAChB;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACpB;yBA/BZ,cAAc;IAF1B,IAAA,eAAK,EAAC,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;IACzC,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,cAAc,CAgC1B","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, Column, Index, JoinColumn, ManyToOne, OneToMany } from 'typeorm';\nimport { User } from 'src/entities/user.entity'\nimport { ChatterMessageDetails } from './chatter-message-details.entity';\n\n@Index([\"coModelName\", \"coModelEntityId\"])\n@Entity(\"ss_chatter_message\")\nexport class ChatterMessage extends CommonEntity {\n @Index()\n @Column({ type: \"varchar\" })\n messageType: string; // audit | custom \n\n @Column({ type: \"varchar\" })\n messageSubType: string; // audit_update | audit_insert | audit_delete | custom\n\n @Column({ type: \"text\", nullable: true })\n messageBody: string;\n\n @Index()\n @Column({ type: \"integer\" })\n coModelEntityId: number;\n\n @Index()\n @Column({ type: \"varchar\" })\n coModelName: string;\n\n @Index()\n @ManyToOne(() => User, { nullable: true })\n @JoinColumn()\n user: User;\n\n @OneToMany(() => ChatterMessageDetails, (chatterMessageDetails) => chatterMessageDetails.chatterMessage, { cascade: true })\n chatterMessageDetails: ChatterMessageDetails[];\n\n @Column({ type: \"text\", nullable: true })\n modelDisplayName: string;\n\n @Column({ type: \"text\", nullable: true })\n modelUserKey: string;\n}\n"]}
1
+ {"version":3,"file":"chatter-message.entity.js","sourceRoot":"","sources":["../../src/entities/chatter-message.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAkF;AAClF,+CAA+C;AAC/C,qFAAyE;AACzE,oEAA8D;AAIvD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAY;;;;CAgC/C,CAAA;AAhCY,wCAAc;AAGvB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACR;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sDACL;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,IAAA,iCAAa,EAAC,UAAU,CAAC,EAAE,CAAC;;mDACrC;AAIpB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;uDACJ;AAIxB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACR;AAKpB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzC,IAAA,oBAAU,GAAE;8BACP,kBAAI;4CAAC;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sDAAqB,EAAE,CAAC,qBAAqB,EAAE,EAAE,CAAC,qBAAqB,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;6DAC5E;AAG/C;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACF;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACN;yBA/BZ,cAAc;IAF1B,IAAA,eAAK,EAAC,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;IACzC,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,cAAc,CAgC1B","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, Column, Index, JoinColumn, ManyToOne, OneToMany } from 'typeorm';\nimport { User } from 'src/entities/user.entity'\nimport { ChatterMessageDetails } from './chatter-message-details.entity';\nimport { getColumnType } from 'src/helpers/typeorm-db-helper';\n\n@Index([\"coModelName\", \"coModelEntityId\"])\n@Entity(\"ss_chatter_message\")\nexport class ChatterMessage extends CommonEntity {\n @Index()\n @Column({ type: \"varchar\" })\n messageType: string; // audit | custom \n\n @Column({ type: \"varchar\" })\n messageSubType: string; // audit_update | audit_insert | audit_delete | custom\n\n @Column({ nullable: true, ...getColumnType('longText') })\n messageBody: string;\n\n @Index()\n @Column({ type: \"integer\" })\n coModelEntityId: number;\n\n @Index()\n @Column({ type: \"varchar\" })\n coModelName: string;\n\n @Index()\n @ManyToOne(() => User, { nullable: true })\n @JoinColumn()\n user: User;\n\n @OneToMany(() => ChatterMessageDetails, (chatterMessageDetails) => chatterMessageDetails.chatterMessage, { cascade: true })\n chatterMessageDetails: ChatterMessageDetails[];\n\n @Column({ nullable: true })\n modelDisplayName: string;\n\n @Column({ nullable: true })\n modelUserKey: string;\n}\n"]}
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CommonEntity = void 0;
13
13
  const openapi = require("@nestjs/swagger");
14
- const typeorm_1 = require("typeorm");
15
14
  const class_transformer_1 = require("class-transformer");
16
15
  const local_date_time_transformer_1 = require("../transformers/typeorm/local-date-time-transformer");
16
+ const typeorm_1 = require("typeorm");
17
17
  let CommonEntity = class CommonEntity {
18
18
  static _OPENAPI_METADATA_FACTORY() {
19
19
  return { id: { required: true, type: () => Number }, createdAt: { required: true, type: () => Date }, updatedAt: { required: true, type: () => Date }, deletedAt: { required: true, type: () => Date }, deletedTracker: { required: true, type: () => String }, publishedAt: { required: true, type: () => Date }, localeName: { required: true, type: () => String }, defaultEntityLocaleId: { required: true, type: () => Number }, createdBy: { required: true, type: () => Number }, updatedBy: { required: true, type: () => Number } };
@@ -1 +1 @@
1
- {"version":3,"file":"common.entity.js","sourceRoot":"","sources":["../../src/entities/common.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAsH;AACtH,yDAAoD;AACpD,qGAAwH;AAGjH,IAAe,YAAY,GAA3B,MAAe,YAAY;;;;CA+CjC,CAAA;AA/CqB,oCAAY;AAG9B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;wCAClC;AAGV;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,sDAAwB,EAAE,CAAC;8BACrE,IAAI;+CAAC;AAGhB;IADC,IAAA,0BAAgB,EA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from \"class-transformer\";\nimport { LocalDateTimeTransformer, UtcDateTimeTransformer } from \"src/transformers/typeorm/local-date-time-transformer\";\n\n@Exclude()\nexport abstract class CommonEntity {\n @Expose()\n @PrimaryGeneratedColumn({ type: 'integer' })\n id: number\n\n @CreateDateColumn({ name: \"created_at\", transformer: LocalDateTimeTransformer })\n createdAt: Date;\n\n @UpdateDateColumn({ name: \"updated_at\", transformer: LocalDateTimeTransformer })\n updatedAt: Date;\n\n @DeleteDateColumn({ name: \"deleted_at\", transformer: LocalDateTimeTransformer })\n @Index()\n deletedAt: Date;\n\n @Column({ name: \"deletedTracker\", default: \"not-deleted\" })\n deletedTracker: string;\n\n @Expose()\n @Column({ name: 'published_at', default: null, nullable: true, transformer: LocalDateTimeTransformer })\n publishedAt: Date;\n\n @Expose()\n @Column({ type: \"varchar\", name: 'locale_name', default: null })\n localeName: string;\n\n @Expose()\n @Column({ type: \"int\", name: 'default_entity_locale_id', default: null })\n defaultEntityLocaleId: number;\n\n // @Expose()\n // @Type( () => require('./user.entity').User?.default ?? require('./user.entity').User )\n // @ManyToOne(() => require('./user.entity').User?.default ?? require('./user.entity').User, { nullable: true })\n // createdBy: User;\n\n // @Expose()\n // @Type( () => require('./user.entity').User?.default ?? require('./user.entity').User )\n // @ManyToOne(() => require('./user.entity').User?.default ?? require('./user.entity').User, { nullable: true })\n // updatedBy: User;\n\n @Expose()\n @Column({ name: `created_by_id`, nullable: true })\n createdBy: number;\n\n @Expose()\n @Column({ name: `updated_by_id`, nullable: true })\n updatedBy: number;\n}\n"]}
1
+ {"version":3,"file":"common.entity.js","sourceRoot":"","sources":["../../src/entities/common.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAAoD;AACpD,qGAAgG;AAChG,qCAAsH;AAG/G,IAAe,YAAY,GAA3B,MAAe,YAAY;;;;CA+CjC,CAAA;AA/CqB,oCAAY;AAG9B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gCAAsB,EAAC,EAAE,IAAI,E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E,CAAC;;+CAChC;uBA9CA,YAAY;IADjC,IAAA,2BAAO,GAAE;GACY,YAAY,CA+CjC","sourcesContent":["import { Exclude, Expose } from \"class-transformer\";\nimport { LocalDateTimeTransformer } from \"src/transformers/typeorm/local-date-time-transformer\";\nimport { Column, CreateDateColumn, DeleteDateColumn, Index, PrimaryGeneratedColumn, UpdateDateColumn } from \"typeorm\";\n\n@Exclude()\nexport abstract class CommonEntity {\n @Expose()\n @PrimaryGeneratedColumn({ type: 'integer' })\n id: number\n\n @CreateDateColumn({ name: \"created_at\", transformer: LocalDateTimeTransformer })\n createdAt: Date;\n\n @UpdateDateColumn({ name: \"updated_at\", transformer: LocalDateTimeTransformer })\n updatedAt: Date;\n\n @DeleteDateColumn({ name: \"deleted_at\", transformer: LocalDateTimeTransformer })\n @Index()\n deletedAt: Date;\n\n @Column({ name: \"deletedTracker\", default: \"not-deleted\" })\n deletedTracker: string;\n\n @Expose()\n @Column({ name: 'published_at', default: null, nullable: true, transformer: LocalDateTimeTransformer })\n publishedAt: Date;\n\n @Expose()\n @Column({ type: \"varchar\", name: 'locale_name', default: null })\n localeName: string;\n\n @Expose()\n @Column({ type: \"int\", name: 'default_entity_locale_id', default: null })\n defaultEntityLocaleId: number;\n\n // @Expose()\n // @Type( () => require('./user.entity').User?.default ?? require('./user.entity').User )\n // @ManyToOne(() => require('./user.entity').User?.default ?? require('./user.entity').User, { nullable: true })\n // createdBy: User;\n\n // @Expose()\n // @Type( () => require('./user.entity').User?.default ?? require('./user.entity').User )\n // @ManyToOne(() => require('./user.entity').User?.default ?? require('./user.entity').User, { nullable: true })\n // updatedBy: User;\n\n @Expose()\n @Column({ name: `created_by_id`, nullable: true })\n createdBy: number;\n\n @Expose()\n @Column({ name: `updated_by_id`, nullable: true })\n updatedBy: number;\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import { CommonEntity } from 'src/entities/common.entity';
2
+ import { Dashboard } from 'src/entities/dashboard.entity';
3
+ import { User } from './user.entity';
4
+ export declare class DashboardLayout extends CommonEntity {
5
+ layout: string;
6
+ dashboard: Dashboard;
7
+ user: User;
8
+ }
9
+ //# sourceMappingURL=dashboard-layout.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard-layout.entity.d.ts","sourceRoot":"","sources":["../../src/entities/dashboard-layout.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,qBACa,eAAgB,SAAQ,YAAY;IAE7C,MAAM,EAAE,MAAM,CAAC;IAIf,SAAS,EAAE,SAAS,CAAC;IAIrB,IAAI,EAAE,IAAI,CAAC;CACd"}
@@ -0,0 +1,41 @@
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.DashboardLayout = void 0;
13
+ const openapi = require("@nestjs/swagger");
14
+ const common_entity_1 = require("./common.entity");
15
+ const typeorm_1 = require("typeorm");
16
+ const dashboard_entity_1 = require("./dashboard.entity");
17
+ const user_entity_1 = require("./user.entity");
18
+ let DashboardLayout = class DashboardLayout extends common_entity_1.CommonEntity {
19
+ static _OPENAPI_METADATA_FACTORY() {
20
+ return { layout: { required: true, type: () => String }, dashboard: { required: true, type: () => require("./dashboard.entity").Dashboard }, user: { required: true, type: () => require("./user.entity").User } };
21
+ }
22
+ };
23
+ exports.DashboardLayout = DashboardLayout;
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
26
+ __metadata("design:type", String)
27
+ ], DashboardLayout.prototype, "layout", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.ManyToOne)(() => dashboard_entity_1.Dashboard, { nullable: true }),
30
+ (0, typeorm_1.JoinColumn)(),
31
+ __metadata("design:type", dashboard_entity_1.Dashboard)
32
+ ], DashboardLayout.prototype, "dashboard", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true }),
35
+ (0, typeorm_1.JoinColumn)(),
36
+ __metadata("design:type", user_entity_1.User)
37
+ ], DashboardLayout.prototype, "user", void 0);
38
+ exports.DashboardLayout = DashboardLayout = __decorate([
39
+ (0, typeorm_1.Entity)("ss_dashboard_layout")
40
+ ], DashboardLayout);
41
+ //# sourceMappingURL=dashboard-layout.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard-layout.entity.js","sourceRoot":"","sources":["../../src/entities/dashboard-layout.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAgE;AAChE,yDAAyD;AACzD,+CAAqC;AAG9B,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,4BAAY;;;;CAWhD,CAAA;AAXY,0CAAe;AAExB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC1B;AAIf;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4BAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9C,IAAA,oBAAU,GAAE;8BACF,4BAAS;kDAAC;AAIrB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzC,IAAA,oBAAU,GAAE;8BACP,kBAAI;6CAAC;0BAVF,eAAe;IAD3B,IAAA,gBAAM,EAAC,qBAAqB,CAAC;GACjB,eAAe,CAW3B","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, Column, JoinColumn, ManyToOne } from 'typeorm';\nimport { Dashboard } from 'src/entities/dashboard.entity'\nimport { User } from './user.entity';\n\n@Entity(\"ss_dashboard_layout\")\nexport class DashboardLayout extends CommonEntity {\n @Column({ type: \"text\", nullable: true })\n layout: string;\n\n @ManyToOne(() => Dashboard, { nullable: true })\n @JoinColumn()\n dashboard: Dashboard;\n\n @ManyToOne(() => User, { nullable: true })\n @JoinColumn()\n user: User;\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard-question-sql-dataset-config.entity.d.ts","sourceRoot":"","sources":["../../src/entities/dashboard-question-sql-dataset-config.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAE1E,qBACa,iCAAkC,SAAQ,YAAY;IAG/D,WAAW,EAAE,MAAM,CAAC;IAGpB,kBAAkB,EAAE,MAAM,CAAC;IAG3B,WAAW,EAAE,MAAM,CAAC;IAGpB,GAAG,EAAE,MAAM,CAAC;IAGZ,eAAe,EAAE,MAAM,CAAC;IAGxB,eAAe,EAAE,MAAM,CAAC;IAIxB,QAAQ,EAAE,iBAAiB,CAAC;IAG5B,OAAO,EAAE,GAAG,CAAC;IAIb,UAAU,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"dashboard-question-sql-dataset-config.entity.d.ts","sourceRoot":"","sources":["../../src/entities/dashboard-question-sql-dataset-config.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAG1E,qBACa,iCAAkC,SAAQ,YAAY;IAG/D,WAAW,EAAE,MAAM,CAAC;IAGpB,kBAAkB,EAAE,MAAM,CAAC;IAG3B,WAAW,EAAE,MAAM,CAAC;IAGpB,GAAG,EAAE,MAAM,CAAC;IAGZ,eAAe,EAAE,MAAM,CAAC;IAGxB,eAAe,EAAE,MAAM,CAAC;IAIxB,QAAQ,EAAE,iBAAiB,CAAC;IAG5B,OAAO,EAAE,GAAG,CAAC;IAIb,UAAU,EAAE,MAAM,CAAC;CACtB"}
@@ -14,6 +14,7 @@ const openapi = require("@nestjs/swagger");
14
14
  const common_entity_1 = require("./common.entity");
15
15
  const typeorm_1 = require("typeorm");
16
16
  const dashboard_question_entity_1 = require("./dashboard-question.entity");
17
+ const typeorm_db_helper_1 = require("../helpers/typeorm-db-helper");
17
18
  let DashboardQuestionSqlDatasetConfig = class DashboardQuestionSqlDatasetConfig extends common_entity_1.CommonEntity {
18
19
  static _OPENAPI_METADATA_FACTORY() {
19
20
  return { datasetName: { required: true, type: () => String }, datasetDisplayName: { required: true, type: () => String }, description: { required: true, type: () => String }, sql: { required: true, type: () => String }, labelColumnName: { required: true, type: () => String }, valueColumnName: { required: true, type: () => String }, question: { required: true, type: () => require("./dashboard-question.entity").DashboardQuestion }, options: { required: true, type: () => Object }, externalId: { required: true, type: () => String } };
@@ -21,7 +22,7 @@ let DashboardQuestionSqlDatasetConfig = class DashboardQuestionSqlDatasetConfig
21
22
  };
22
23
  exports.DashboardQuestionSqlDatasetConfig = DashboardQuestionSqlDatasetConfig;
23
24
  __decorate([
24
- (0, typeorm_1.Index)({ unique: true }),
25
+ (0, typeorm_1.Index)(),
25
26
  (0, typeorm_1.Column)({ type: "varchar" }),
26
27
  __metadata("design:type", String)
27
28
  ], DashboardQuestionSqlDatasetConfig.prototype, "datasetName", void 0);
@@ -30,11 +31,11 @@ __decorate([
30
31
  __metadata("design:type", String)
31
32
  ], DashboardQuestionSqlDatasetConfig.prototype, "datasetDisplayName", void 0);
32
33
  __decorate([
33
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
34
+ (0, typeorm_1.Column)({ nullable: true }),
34
35
  __metadata("design:type", String)
35
36
  ], DashboardQuestionSqlDatasetConfig.prototype, "description", void 0);
36
37
  __decorate([
37
- (0, typeorm_1.Column)({ type: "text" }),
38
+ (0, typeorm_1.Column)({ ...(0, typeorm_db_helper_1.getColumnType)('longText'), nullable: true }),
38
39
  __metadata("design:type", String)
39
40
  ], DashboardQuestionSqlDatasetConfig.prototype, "sql", void 0);
40
41
  __decorate([
@@ -51,7 +52,7 @@ __decorate([
51
52
  __metadata("design:type", dashboard_question_entity_1.DashboardQuestion)
52
53
  ], DashboardQuestionSqlDatasetConfig.prototype, "question", void 0);
53
54
  __decorate([
54
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
55
+ (0, typeorm_1.Column)({ nullable: true, ...(0, typeorm_db_helper_1.getColumnType)('longText') }),
55
56
  __metadata("design:type", Object)
56
57
  ], DashboardQuestionSqlDatasetConfig.prototype, "options", void 0);
57
58
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard-question-sql-dataset-config.entity.js","sourceRoot":"","sources":["../../src/entities/dashboard-question-sql-dataset-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAuE;AACvE,2EAA0E;AAGnE,IAAM,iCAAiC,GAAvC,MAAM,iCAAkC,SAAQ,4BAAY;;;;CA8BlE,CAAA;AA9BY,8EAAiC;AAG1C;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sEACR;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;6EACD;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACrB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8DACb;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0EACJ;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0EACJ;AAIxB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAiB,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACvD,IAAA,oBAAU,GAAE;8BACH,6CAAiB;mEAAC;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEAC5B;AAIb;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;qEAC1B;4CA7BV,iCAAiC;IAD7C,IAAA,gBAAM,EAAC,0CAA0C,CAAC;GACtC,iCAAiC,CA8B7C","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, Column, Index, JoinColumn, ManyToOne } from 'typeorm';\nimport { DashboardQuestion } from 'src/entities/dashboard-question.entity'\n\n@Entity(\"ss_dashboard_question_sql_dataset_config\")\nexport class DashboardQuestionSqlDatasetConfig extends CommonEntity {\n @Index({ unique: true })\n @Column({ type: \"varchar\" })\n datasetName: string;\n\n @Column({ type: \"varchar\" })\n datasetDisplayName: string;\n\n @Column({ type: \"text\", nullable: true })\n description: string;\n\n @Column({ type: \"text\" })\n sql: string;\n\n @Column({ type: \"varchar\" })\n labelColumnName: string;\n\n @Column({ type: \"varchar\" })\n valueColumnName: string;\n\n @ManyToOne(() => DashboardQuestion, { nullable: false })\n @JoinColumn()\n question: DashboardQuestion;\n\n @Column({ type: \"text\", nullable: true })\n options: any;\n\n @Index({ unique: true })\n @Column({ type: \"varchar\", nullable: false })\n externalId: string;\n}\n"]}
1
+ {"version":3,"file":"dashboard-question-sql-dataset-config.entity.js","sourceRoot":"","sources":["../../src/entities/dashboard-question-sql-dataset-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAuE;AACvE,2EAA0E;AAC1E,oEAA8D;AAGvD,IAAM,iCAAiC,GAAvC,MAAM,iCAAkC,SAAQ,4BAAY;;;;CA8BlE,CAAA;AA9BY,8EAAiC;AAG1C;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sEACR;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;6EACD;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,GAAG,IAAA,iCAAa,EAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DAC7C;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0EACJ;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0EACJ;AAIxB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAiB,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACvD,IAAA,oBAAU,GAAE;8BACH,6CAAiB;mEAAC;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,IAAA,iCAAa,EAAC,UAAU,CAAC,EAAE,CAAC;;kEAC5C;AAIb;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;qEAC1B;4CA7BV,iCAAiC;IAD7C,IAAA,gBAAM,EAAC,0CAA0C,CAAC;GACtC,iCAAiC,CA8B7C","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, Column, Index, JoinColumn, ManyToOne } from 'typeorm';\nimport { DashboardQuestion } from 'src/entities/dashboard-question.entity'\nimport { getColumnType } from 'src/helpers/typeorm-db-helper';\n\n@Entity(\"ss_dashboard_question_sql_dataset_config\")\nexport class DashboardQuestionSqlDatasetConfig extends CommonEntity {\n @Index()\n @Column({ type: \"varchar\" })\n datasetName: string;\n\n @Column({ type: \"varchar\" })\n datasetDisplayName: string;\n\n @Column({ nullable: true })\n description: string;\n\n @Column({ ...getColumnType('longText'), nullable: true })\n sql: string;\n\n @Column({ type: \"varchar\" })\n labelColumnName: string;\n\n @Column({ type: \"varchar\" })\n valueColumnName: string;\n\n @ManyToOne(() => DashboardQuestion, { nullable: false })\n @JoinColumn()\n question: DashboardQuestion;\n\n @Column({ nullable: true, ...getColumnType('longText') })\n options: any;\n\n @Index({ unique: true })\n @Column({ type: \"varchar\", nullable: false })\n externalId: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard-question.entity.d.ts","sourceRoot":"","sources":["../../src/entities/dashboard-question.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,2DAA2D,CAAA;AAE7G,qBACa,iBAAkB,SAAQ,YAAY;IAG/C,IAAI,EAAE,MAAM,CAAC;IAIb,UAAU,EAAE,MAAM,CAAC;IAInB,YAAY,EAAE,MAAM,CAAC;IAGrB,YAAY,EAAE,MAAM,CAAC;IAIrB,SAAS,EAAE,SAAS,CAAC;IAGrB,yBAAyB,EAAE,iCAAiC,EAAE,CAAC;IAG/D,YAAY,EAAE,GAAG,CAAC;IAGlB,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,MAAM,CAAC;IAGf,cAAc,EAAE,MAAM,CAAC;IAIvB,UAAU,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"dashboard-question.entity.d.ts","sourceRoot":"","sources":["../../src/entities/dashboard-question.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,2DAA2D,CAAA;AAE7G,qBACa,iBAAkB,SAAQ,YAAY;IAG/C,IAAI,EAAE,MAAM,CAAC;IAIb,UAAU,EAAE,MAAM,CAAC;IAInB,YAAY,EAAE,MAAM,CAAC;IAGrB,YAAY,EAAE,MAAM,CAAC;IAIrB,SAAS,EAAE,SAAS,CAAC;IAGrB,yBAAyB,EAAE,iCAAiC,EAAE,CAAC;IAG/D,YAAY,EAAE,GAAG,CAAC;IAGlB,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,MAAM,CAAC;IAGf,cAAc,EAAE,MAAM,CAAC;IAIvB,UAAU,EAAE,MAAM,CAAC;CACtB"}
@@ -13,6 +13,7 @@ exports.DashboardQuestion = void 0;
13
13
  const openapi = require("@nestjs/swagger");
14
14
  const common_entity_1 = require("./common.entity");
15
15
  const typeorm_1 = require("typeorm");
16
+ const typeorm_db_helper_1 = require("../helpers/typeorm-db-helper");
16
17
  const dashboard_entity_1 = require("./dashboard.entity");
17
18
  const dashboard_question_sql_dataset_config_entity_1 = require("./dashboard-question-sql-dataset-config.entity");
18
19
  let DashboardQuestion = class DashboardQuestion extends common_entity_1.CommonEntity {
@@ -22,7 +23,7 @@ let DashboardQuestion = class DashboardQuestion extends common_entity_1.CommonEn
22
23
  };
23
24
  exports.DashboardQuestion = DashboardQuestion;
24
25
  __decorate([
25
- (0, typeorm_1.Index)({ unique: true }),
26
+ (0, typeorm_1.Index)(),
26
27
  (0, typeorm_1.Column)({ type: "varchar" }),
27
28
  __metadata("design:type", String)
28
29
  ], DashboardQuestion.prototype, "name", void 0);
@@ -50,15 +51,15 @@ __decorate([
50
51
  __metadata("design:type", Array)
51
52
  ], DashboardQuestion.prototype, "questionSqlDatasetConfigs", void 0);
52
53
  __decorate([
53
- (0, typeorm_1.Column)({ type: "simple-json", nullable: true }),
54
+ (0, typeorm_1.Column)({ type: "simple-json", nullable: true, ...(0, typeorm_db_helper_1.getColumnType)('simpleJsonLargeText') }),
54
55
  __metadata("design:type", Object)
55
56
  ], DashboardQuestion.prototype, "chartOptions", void 0);
56
57
  __decorate([
57
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
58
+ (0, typeorm_1.Column)({ nullable: true, ...(0, typeorm_db_helper_1.getColumnType)('longText') }),
58
59
  __metadata("design:type", String)
59
60
  ], DashboardQuestion.prototype, "labelSql", void 0);
60
61
  __decorate([
61
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
62
+ (0, typeorm_1.Column)({ nullable: true, ...(0, typeorm_db_helper_1.getColumnType)('longText') }),
62
63
  __metadata("design:type", String)
63
64
  ], DashboardQuestion.prototype, "kpiSql", void 0);
64
65
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard-question.entity.js","sourceRoot":"","sources":["../../src/entities/dashboard-question.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAkF;AAClF,yDAA0D;AAC1D,iHAA6G;AAGtG,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,4BAAY;;;;CAsClD,CAAA;AAtCY,8CAAiB;AAG1B;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI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CAsC7B","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, Column, Index, JoinColumn, ManyToOne, OneToMany } from 'typeorm';\nimport { Dashboard } from 'src/entities/dashboard.entity';\nimport { DashboardQuestionSqlDatasetConfig } from 'src/entities/dashboard-question-sql-dataset-config.entity'\n\n@Entity(\"ss_dashboard_question\")\nexport class DashboardQuestion extends CommonEntity {\n @Index({ unique: true })\n @Column({ type: \"varchar\" })\n name: string;\n\n @Index()\n @Column({})\n sourceType: string;\n\n @Index()\n @Column({})\n visualisedAs: string;\n\n @Column({ type: \"varchar\", nullable: true })\n providerName: string;\n\n @ManyToOne(() => Dashboard, { nullable: true })\n @JoinColumn()\n dashboard: Dashboard;\n\n @OneToMany(() => DashboardQuestionSqlDatasetConfig, dashboardQuestionSqlDatasetConfig => dashboardQuestionSqlDatasetConfig.question, { cascade: true })\n questionSqlDatasetConfigs: DashboardQuestionSqlDatasetConfig[];\n\n @Column({ type: \"simple-json\", nullable: true })\n chartOptions: any;\n\n @Column({ type: \"text\", nullable: true })\n labelSql: string;\n\n @Column({ type: \"text\", nullable: true })\n kpiSql: string;\n\n @Column({ type: \"integer\", nullable: true })\n sequenceNumber: number;\n\n @Index({ unique: true })\n @Column({ type: \"varchar\", nullable: false })\n externalId: string;\n}"]}
1
+ {"version":3,"file":"dashboard-question.entity.js","sourceRoot":"","sources":["../../src/entities/dashboard-question.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAkF;AAClF,oEAA8D;AAC9D,yDAA0D;AAC1D,iHAA6G;AAGtG,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,4BAAY;;;;CAsClD,CAAA;AAtCY,8CAAiB;AAG1B;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;+CACf;AAIb;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,CAAC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ent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, Column, Index, JoinColumn, ManyToOne, OneToMany } from 'typeorm';\nimport { getColumnType } from 'src/helpers/typeorm-db-helper';\nimport { Dashboard } from 'src/entities/dashboard.entity';\nimport { DashboardQuestionSqlDatasetConfig } from 'src/entities/dashboard-question-sql-dataset-config.entity'\n\n@Entity(\"ss_dashboard_question\")\nexport class DashboardQuestion extends CommonEntity {\n @Index()\n @Column({ type: \"varchar\" })\n name: string;\n\n @Index()\n @Column({})\n sourceType: string;\n\n @Index()\n @Column({})\n visualisedAs: string;\n\n @Column({ type: \"varchar\", nullable: true })\n providerName: string;\n\n @ManyToOne(() => Dashboard, { nullable: true })\n @JoinColumn()\n dashboard: Dashboard;\n\n @OneToMany(() => DashboardQuestionSqlDatasetConfig, dashboardQuestionSqlDatasetConfig => dashboardQuestionSqlDatasetConfig.question, { cascade: true })\n questionSqlDatasetConfigs: DashboardQuestionSqlDatasetConfig[];\n\n @Column({ type: \"simple-json\", nullable: true, ...getColumnType('simpleJsonLargeText') })\n chartOptions: any;\n\n @Column({ nullable: true, ...getColumnType('longText') })\n labelSql: string;\n\n @Column({ nullable: true, ...getColumnType('longText') })\n kpiSql: string;\n\n @Column({ type: \"integer\", nullable: true })\n sequenceNumber: number;\n\n @Index({ unique: true })\n @Column({ type: \"varchar\", nullable: false })\n externalId: string;\n}"]}
@@ -11,5 +11,6 @@ export declare class DashboardVariable extends CommonEntity {
11
11
  dashboard: Dashboard;
12
12
  defaultValue: string;
13
13
  defaultOperator: string;
14
+ externalId: string;
14
15
  }
15
16
  //# sourceMappingURL=dashboard-variable.entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard-variable.entity.d.ts","sourceRoot":"","sources":["../../src/entities/dashboard-variable.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAEzD,qBACa,iBAAkB,SAAQ,YAAY;IAG/C,YAAY,EAAE,MAAM,CAAC;IAIrB,YAAY,EAAE,MAAM,CAAC;IAGrB,qBAAqB,EAAE,GAAG,CAAC;IAG3B,0BAA0B,EAAE,MAAM,CAAC;IAGnC,mBAAmB,EAAE,MAAM,CAAC;IAG5B,4BAA4B,EAAE,MAAM,CAAC;IAGrC,aAAa,EAAE,OAAO,CAAQ;IAI9B,SAAS,EAAE,SAAS,CAAC;IAGrB,YAAY,EAAE,MAAM,CAAC;IAGrB,eAAe,EAAE,MAAM,CAAC;CAC3B"}
1
+ {"version":3,"file":"dashboard-variable.entity.d.ts","sourceRoot":"","sources":["../../src/entities/dashboard-variable.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAGzD,qBACa,iBAAkB,SAAQ,YAAY;IAG/C,YAAY,EAAE,MAAM,CAAC;IAIrB,YAAY,EAAE,MAAM,CAAC;IAGrB,qBAAqB,EAAE,GAAG,CAAC;IAG3B,0BAA0B,EAAE,MAAM,CAAC;IAGnC,mBAAmB,EAAE,MAAM,CAAC;IAG5B,4BAA4B,EAAE,MAAM,CAAC;IAGrC,aAAa,EAAE,OAAO,CAAQ;IAI9B,SAAS,EAAE,SAAS,CAAC;IAGrB,YAAY,EAAE,MAAM,CAAC;IAGrB,eAAe,EAAE,MAAM,CAAC;IAIxB,UAAU,EAAE,MAAM,CAAC;CACtB"}
@@ -14,18 +14,19 @@ const openapi = require("@nestjs/swagger");
14
14
  const common_entity_1 = require("./common.entity");
15
15
  const typeorm_1 = require("typeorm");
16
16
  const dashboard_entity_1 = require("./dashboard.entity");
17
+ const typeorm_db_helper_1 = require("../helpers/typeorm-db-helper");
17
18
  let DashboardVariable = class DashboardVariable extends common_entity_1.CommonEntity {
18
19
  constructor() {
19
20
  super(...arguments);
20
21
  this.isMultiSelect = true;
21
22
  }
22
23
  static _OPENAPI_METADATA_FACTORY() {
23
- return { variableName: { required: true, type: () => String }, variableType: { required: true, type: () => String }, selectionStaticValues: { required: true, type: () => Object }, selectionDynamicSourceType: { required: true, type: () => String }, selectionDynamicSQL: { required: true, type: () => String }, selectionDynamicProviderName: { required: true, type: () => String }, isMultiSelect: { required: true, type: () => Boolean, default: true }, dashboard: { required: true, type: () => require("./dashboard.entity").Dashboard }, defaultValue: { required: true, type: () => String }, defaultOperator: { required: true, type: () => String } };
24
+ return { variableName: { required: true, type: () => String }, variableType: { required: true, type: () => String }, selectionStaticValues: { required: true, type: () => Object }, selectionDynamicSourceType: { required: true, type: () => String }, selectionDynamicSQL: { required: true, type: () => String }, selectionDynamicProviderName: { required: true, type: () => String }, isMultiSelect: { required: true, type: () => Boolean, default: true }, dashboard: { required: true, type: () => require("./dashboard.entity").Dashboard }, defaultValue: { required: true, type: () => String }, defaultOperator: { required: true, type: () => String }, externalId: { required: true, type: () => String } };
24
25
  }
25
26
  };
26
27
  exports.DashboardVariable = DashboardVariable;
27
28
  __decorate([
28
- (0, typeorm_1.Index)({ unique: true }),
29
+ (0, typeorm_1.Index)(),
29
30
  (0, typeorm_1.Column)({ type: "varchar" }),
30
31
  __metadata("design:type", String)
31
32
  ], DashboardVariable.prototype, "variableName", void 0);
@@ -43,7 +44,7 @@ __decorate([
43
44
  __metadata("design:type", String)
44
45
  ], DashboardVariable.prototype, "selectionDynamicSourceType", void 0);
45
46
  __decorate([
46
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
47
+ (0, typeorm_1.Column)({ nullable: true, ...(0, typeorm_db_helper_1.getColumnType)('longText') }),
47
48
  __metadata("design:type", String)
48
49
  ], DashboardVariable.prototype, "selectionDynamicSQL", void 0);
49
50
  __decorate([
@@ -60,13 +61,18 @@ __decorate([
60
61
  __metadata("design:type", dashboard_entity_1.Dashboard)
61
62
  ], DashboardVariable.prototype, "dashboard", void 0);
62
63
  __decorate([
63
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
64
+ (0, typeorm_1.Column)({ nullable: true }),
64
65
  __metadata("design:type", String)
65
66
  ], DashboardVariable.prototype, "defaultValue", void 0);
66
67
  __decorate([
67
68
  (0, typeorm_1.Column)({ type: "varchar", nullable: true }),
68
69
  __metadata("design:type", String)
69
70
  ], DashboardVariable.prototype, "defaultOperator", void 0);
71
+ __decorate([
72
+ (0, typeorm_1.Index)({ unique: true }),
73
+ (0, typeorm_1.Column)({ type: "varchar" }),
74
+ __metadata("design:type", String)
75
+ ], DashboardVariable.prototype, "externalId", void 0);
70
76
  exports.DashboardVariable = DashboardVariable = __decorate([
71
77
  (0, typeorm_1.Entity)("ss_dashboard_variable")
72
78
  ], DashboardVariable);
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard-variable.entity.js","sourceRoot":"","sources":["../../src/entities/dashboard-variable.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAqE;AACrE,yDAAyD;AAGlD,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,4BAAY;IAA5C;;QAsBH,kBAAa,GAAY,IAAI,CAAC;KAWjC;;kcAX4B,IAAI;;CAWhC,CAAA;AAjCY,8CAAiB;AAG1B;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;uDACP;AAIrB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;uDACP;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACrB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACQ;AAGnC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACb;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACP;AAGrC;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wDACZ;AAI9B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4BAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9C,IAAA,oBAAU,GAAE;8BACF,4BAAS;oDAAC;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACpB;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACpB;4BAhCf,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,uBAAuB,CAAC;GACnB,iBAAiB,CAiC7B","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport {Entity, Column, Index, JoinColumn, ManyToOne} from 'typeorm';\nimport { Dashboard } from 'src/entities/dashboard.entity'\n\n@Entity(\"ss_dashboard_variable\")\nexport class DashboardVariable extends CommonEntity {\n @Index({ unique: true })\n @Column({ type: \"varchar\" })\n variableName: string;\n\n @Index()\n @Column({ type: \"varchar\" })\n variableType: string;\n\n @Column({ type: \"simple-json\", nullable: true })\n selectionStaticValues: any;\n\n @Column({ nullable: true })\n selectionDynamicSourceType: string;\n\n @Column({ type: \"text\", nullable: true })\n selectionDynamicSQL: string;\n\n @Column({ type: \"varchar\", nullable: true })\n selectionDynamicProviderName: string;\n\n @Column({ nullable: true, default: true })\n isMultiSelect: boolean = true;\n\n @ManyToOne(() => Dashboard, { nullable: true })\n @JoinColumn()\n dashboard: Dashboard;\n\n @Column({ type: \"text\", nullable: true })\n defaultValue: string;\n\n @Column({ type: \"varchar\", nullable: true })\n defaultOperator: string;\n}"]}
1
+ {"version":3,"file":"dashboard-variable.entity.js","sourceRoot":"","sources":["../../src/entities/dashboard-variable.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAuE;AACvE,yDAAyD;AACzD,oEAA8D;AAGvD,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,4BAAY;IAA5C;;QAsBH,kBAAa,GAAY,IAAI,CAAC;KAejC;;kcAf4B,IAAI;;CAehC,CAAA;AArCY,8CAAiB;AAG1B;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;uDACP;AAIrB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;uDACP;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACrB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACQ;AAGnC;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,IAAA,iCAAa,EAAC,UAAU,CAAC,EAAE,CAAC;;8DAC7B;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACP;AAGrC;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wDACZ;AAI9B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4BAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9C,IAAA,oBAAU,GAAE;8BACF,4BAAS;oDAAC;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;;uDACL;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACpB;AAIxB;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;qDACT;4BApCV,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,uBAAuB,CAAC;GACnB,iBAAiB,CAqC7B","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, Column, Index, JoinColumn, ManyToOne } from 'typeorm';\nimport { Dashboard } from 'src/entities/dashboard.entity'\nimport { getColumnType } from 'src/helpers/typeorm-db-helper';\n\n@Entity(\"ss_dashboard_variable\")\nexport class DashboardVariable extends CommonEntity {\n @Index()\n @Column({ type: \"varchar\" })\n variableName: string;\n\n @Index()\n @Column({ type: \"varchar\" })\n variableType: string;\n\n @Column({ type: \"simple-json\", nullable: true })\n selectionStaticValues: any;\n\n @Column({ nullable: true })\n selectionDynamicSourceType: string;\n\n @Column({ nullable: true, ...getColumnType('longText') })\n selectionDynamicSQL: string;\n\n @Column({ type: \"varchar\", nullable: true })\n selectionDynamicProviderName: string;\n\n @Column({ nullable: true, default: true })\n isMultiSelect: boolean = true;\n\n @ManyToOne(() => Dashboard, { nullable: true })\n @JoinColumn()\n dashboard: Dashboard;\n\n @Column({ nullable: true})\n defaultValue: string;\n\n @Column({ type: \"varchar\", nullable: true })\n defaultOperator: string;\n\n @Index({ unique: true })\n @Column({ type: \"varchar\" })\n externalId: string;\n}"]}
@@ -2,11 +2,13 @@ import { CommonEntity } from 'src/entities/common.entity';
2
2
  import { DashboardVariable } from 'src/entities/dashboard-variable.entity';
3
3
  import { DashboardQuestion } from 'src/entities/dashboard-question.entity';
4
4
  import { ModuleMetadata } from 'src/entities/module-metadata.entity';
5
+ import { DashboardLayout } from './dashboard-layout.entity';
5
6
  export declare class Dashboard extends CommonEntity {
6
7
  name: string;
7
8
  layoutJson: any;
8
9
  dashboardVariables: DashboardVariable[];
9
10
  questions: DashboardQuestion[];
11
+ dashboardLayouts: DashboardLayout[];
10
12
  module: ModuleMetadata;
11
13
  displayName: string;
12
14
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard.entity.d.ts","sourceRoot":"","sources":["../../src/entities/dashboard.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AAEpE,qBACa,SAAU,SAAQ,YAAY;IAGvC,IAAI,EAAE,MAAM,CAAC;IAGb,UAAU,EAAE,GAAG,CAAC;IAGhB,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IAGxC,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAI/B,MAAM,EAAE,cAAc,CAAC;IAGvB,WAAW,EAAE,MAAM,CAAC;IAGpB,WAAW,EAAE,MAAM,CAAC;CACvB"}
1
+ {"version":3,"file":"dashboard.entity.d.ts","sourceRoot":"","sources":["../../src/entities/dashboard.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,qBACa,SAAU,SAAQ,YAAY;IAGvC,IAAI,EAAE,MAAM,CAAC;IAGb,UAAU,EAAE,GAAG,CAAC;IAGhB,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IAGxC,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAG/B,gBAAgB,EAAE,eAAe,EAAE,CAAC;IAIpC,MAAM,EAAE,cAAc,CAAC;IAGvB,WAAW,EAAE,MAAM,CAAC;IAGpB,WAAW,EAAE,MAAM,CAAC;CACvB"}