@solidstarters/solid-core 1.2.192 → 1.2.200

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 (376) hide show
  1. package/dist/commands/mcp.command.d.ts +20 -0
  2. package/dist/commands/mcp.command.d.ts.map +1 -0
  3. package/dist/commands/mcp.command.js +208 -0
  4. package/dist/commands/mcp.command.js.map +1 -0
  5. package/dist/commands/refresh-model.command.d.ts +8 -5
  6. package/dist/commands/refresh-model.command.d.ts.map +1 -1
  7. package/dist/commands/refresh-model.command.js +32 -0
  8. package/dist/commands/refresh-model.command.js.map +1 -1
  9. package/dist/commands/remove-fields.command.js +1 -1
  10. package/dist/commands/remove-fields.command.js.map +1 -1
  11. package/dist/commands/seed.command.d.ts +2 -0
  12. package/dist/commands/seed.command.d.ts.map +1 -1
  13. package/dist/commands/seed.command.js +28 -1
  14. package/dist/commands/seed.command.js.map +1 -1
  15. package/dist/controllers/authentication.controller.js +1 -1
  16. package/dist/controllers/authentication.controller.js.map +1 -1
  17. package/dist/controllers/email-template.controller.js +1 -1
  18. package/dist/controllers/email-template.controller.js.map +1 -1
  19. package/dist/controllers/field-metadata.controller.d.ts +136 -4
  20. package/dist/controllers/field-metadata.controller.d.ts.map +1 -1
  21. package/dist/controllers/field-metadata.controller.js +14 -1
  22. package/dist/controllers/field-metadata.controller.js.map +1 -1
  23. package/dist/controllers/media-storage-provider-metadata.controller.js +1 -1
  24. package/dist/controllers/media-storage-provider-metadata.controller.js.map +1 -1
  25. package/dist/controllers/model-metadata.controller.js +1 -1
  26. package/dist/controllers/model-metadata.controller.js.map +1 -1
  27. package/dist/controllers/module-metadata.controller.js +1 -1
  28. package/dist/controllers/module-metadata.controller.js.map +1 -1
  29. package/dist/controllers/otp-authentication.controller.js +1 -1
  30. package/dist/controllers/otp-authentication.controller.js.map +1 -1
  31. package/dist/controllers/service.controller.js +1 -1
  32. package/dist/controllers/service.controller.js.map +1 -1
  33. package/dist/controllers/sms-template.controller.js +1 -1
  34. package/dist/controllers/sms-template.controller.js.map +1 -1
  35. package/dist/controllers/test-queue.controller.js +1 -1
  36. package/dist/controllers/test-queue.controller.js.map +1 -1
  37. package/dist/controllers/test.controller.js +1 -1
  38. package/dist/controllers/test.controller.js.map +1 -1
  39. package/dist/dtos/create-ai-interaction.dto.d.ts +2 -0
  40. package/dist/dtos/create-ai-interaction.dto.d.ts.map +1 -1
  41. package/dist/dtos/create-ai-interaction.dto.js +14 -1
  42. package/dist/dtos/create-ai-interaction.dto.js.map +1 -1
  43. package/dist/dtos/create-field-metadata.dto.d.ts +22 -5
  44. package/dist/dtos/create-field-metadata.dto.d.ts.map +1 -1
  45. package/dist/dtos/create-field-metadata.dto.js +33 -7
  46. package/dist/dtos/create-field-metadata.dto.js.map +1 -1
  47. package/dist/dtos/create-import-transaction.dto.d.ts +0 -1
  48. package/dist/dtos/create-import-transaction.dto.d.ts.map +1 -1
  49. package/dist/dtos/create-import-transaction.dto.js +1 -7
  50. package/dist/dtos/create-import-transaction.dto.js.map +1 -1
  51. package/dist/dtos/create-model-metadata.dto.d.ts +2 -0
  52. package/dist/dtos/create-model-metadata.dto.d.ts.map +1 -1
  53. package/dist/dtos/create-model-metadata.dto.js +13 -1
  54. package/dist/dtos/create-model-metadata.dto.js.map +1 -1
  55. package/dist/dtos/create-role-metadata.dto.d.ts.map +1 -1
  56. package/dist/dtos/create-role-metadata.dto.js +5 -1
  57. package/dist/dtos/create-role-metadata.dto.js.map +1 -1
  58. package/dist/dtos/resolve-s3-url.dto.d.ts +10 -0
  59. package/dist/dtos/resolve-s3-url.dto.d.ts.map +1 -0
  60. package/dist/dtos/resolve-s3-url.dto.js +49 -0
  61. package/dist/dtos/resolve-s3-url.dto.js.map +1 -0
  62. package/dist/dtos/update-ai-interaction.dto.d.ts +2 -0
  63. package/dist/dtos/update-ai-interaction.dto.d.ts.map +1 -1
  64. package/dist/dtos/update-ai-interaction.dto.js +13 -1
  65. package/dist/dtos/update-ai-interaction.dto.js.map +1 -1
  66. package/dist/dtos/update-field-metadata.dto.d.ts.map +1 -1
  67. package/dist/dtos/update-field-metadata.dto.js.map +1 -1
  68. package/dist/dtos/update-import-transaction.dto.d.ts +0 -1
  69. package/dist/dtos/update-import-transaction.dto.d.ts.map +1 -1
  70. package/dist/dtos/update-import-transaction.dto.js +1 -7
  71. package/dist/dtos/update-import-transaction.dto.js.map +1 -1
  72. package/dist/entities/action-metadata.entity.js +4 -4
  73. package/dist/entities/action-metadata.entity.js.map +1 -1
  74. package/dist/entities/ai-interaction.entity.d.ts +2 -0
  75. package/dist/entities/ai-interaction.entity.d.ts.map +1 -1
  76. package/dist/entities/ai-interaction.entity.js +15 -6
  77. package/dist/entities/ai-interaction.entity.js.map +1 -1
  78. package/dist/entities/chatter-message-details.entity.d.ts.map +1 -1
  79. package/dist/entities/chatter-message-details.entity.js +1 -1
  80. package/dist/entities/chatter-message-details.entity.js.map +1 -1
  81. package/dist/entities/chatter-message.entity.js +1 -1
  82. package/dist/entities/chatter-message.entity.js.map +1 -1
  83. package/dist/entities/common.entity.d.ts +2 -3
  84. package/dist/entities/common.entity.d.ts.map +1 -1
  85. package/dist/entities/common.entity.js +9 -11
  86. package/dist/entities/common.entity.js.map +1 -1
  87. package/dist/entities/dashboard-question-sql-dataset-config.entity.js +2 -2
  88. package/dist/entities/dashboard-question-sql-dataset-config.entity.js.map +1 -1
  89. package/dist/entities/dashboard-question.entity.js +3 -3
  90. package/dist/entities/dashboard-question.entity.js.map +1 -1
  91. package/dist/entities/dashboard-variable.entity.js +3 -3
  92. package/dist/entities/dashboard-variable.entity.js.map +1 -1
  93. package/dist/entities/dashboard.entity.js +1 -1
  94. package/dist/entities/dashboard.entity.js.map +1 -1
  95. package/dist/entities/email-template.entity.d.ts.map +1 -1
  96. package/dist/entities/email-template.entity.js +4 -3
  97. package/dist/entities/email-template.entity.js.map +1 -1
  98. package/dist/entities/export-template.entity.js +2 -2
  99. package/dist/entities/export-template.entity.js.map +1 -1
  100. package/dist/entities/export-transaction.entity.js +2 -2
  101. package/dist/entities/export-transaction.entity.js.map +1 -1
  102. package/dist/entities/field-metadata.entity.d.ts +1 -0
  103. package/dist/entities/field-metadata.entity.d.ts.map +1 -1
  104. package/dist/entities/field-metadata.entity.js +8 -4
  105. package/dist/entities/field-metadata.entity.js.map +1 -1
  106. package/dist/entities/import-transaction-error-log.entity.js +1 -1
  107. package/dist/entities/import-transaction-error-log.entity.js.map +1 -1
  108. package/dist/entities/import-transaction.entity.d.ts +0 -1
  109. package/dist/entities/import-transaction.entity.d.ts.map +1 -1
  110. package/dist/entities/import-transaction.entity.js +2 -7
  111. package/dist/entities/import-transaction.entity.js.map +1 -1
  112. package/dist/entities/legacy-common-with-id.entity.d.ts +5 -0
  113. package/dist/entities/legacy-common-with-id.entity.d.ts.map +1 -0
  114. package/dist/entities/legacy-common-with-id.entity.js +32 -0
  115. package/dist/entities/legacy-common-with-id.entity.js.map +1 -0
  116. package/dist/entities/legacy-common.entity.d.ts +13 -0
  117. package/dist/entities/legacy-common.entity.d.ts.map +1 -0
  118. package/dist/entities/legacy-common.entity.js +67 -0
  119. package/dist/entities/legacy-common.entity.js.map +1 -0
  120. package/dist/entities/list-of-values.entity.js +2 -2
  121. package/dist/entities/list-of-values.entity.js.map +1 -1
  122. package/dist/entities/locale.entity.js +1 -1
  123. package/dist/entities/locale.entity.js.map +1 -1
  124. package/dist/entities/media.entity.d.ts.map +1 -1
  125. package/dist/entities/media.entity.js +3 -3
  126. package/dist/entities/media.entity.js.map +1 -1
  127. package/dist/entities/menu-item-metadata.entity.js +4 -4
  128. package/dist/entities/menu-item-metadata.entity.js.map +1 -1
  129. package/dist/entities/model-metadata.entity.d.ts +2 -0
  130. package/dist/entities/model-metadata.entity.d.ts.map +1 -1
  131. package/dist/entities/model-metadata.entity.js +11 -3
  132. package/dist/entities/model-metadata.entity.js.map +1 -1
  133. package/dist/entities/mq-message-queue.entity.js +1 -1
  134. package/dist/entities/mq-message-queue.entity.js.map +1 -1
  135. package/dist/entities/mq-message.entity.d.ts +3 -3
  136. package/dist/entities/mq-message.entity.d.ts.map +1 -1
  137. package/dist/entities/mq-message.entity.js +10 -10
  138. package/dist/entities/mq-message.entity.js.map +1 -1
  139. package/dist/entities/saved-filters.entity.js +4 -4
  140. package/dist/entities/saved-filters.entity.js.map +1 -1
  141. package/dist/entities/scheduled-job.entity.js +4 -4
  142. package/dist/entities/scheduled-job.entity.js.map +1 -1
  143. package/dist/entities/security-rule.entity.js +2 -2
  144. package/dist/entities/security-rule.entity.js.map +1 -1
  145. package/dist/entities/setting.entity.js +2 -2
  146. package/dist/entities/setting.entity.js.map +1 -1
  147. package/dist/entities/sms-template.entity.js +2 -2
  148. package/dist/entities/sms-template.entity.js.map +1 -1
  149. package/dist/entities/user-activity-history.entity.d.ts.map +1 -1
  150. package/dist/entities/user-activity-history.entity.js +1 -1
  151. package/dist/entities/user-activity-history.entity.js.map +1 -1
  152. package/dist/entities/user-view-metadata.entity.js +2 -2
  153. package/dist/entities/user-view-metadata.entity.js.map +1 -1
  154. package/dist/entities/user.entity.js +13 -15
  155. package/dist/entities/user.entity.js.map +1 -1
  156. package/dist/entities/view-metadata.entity.js +3 -3
  157. package/dist/entities/view-metadata.entity.js.map +1 -1
  158. package/dist/helpers/date.helper.d.ts +1 -1
  159. package/dist/helpers/date.helper.d.ts.map +1 -1
  160. package/dist/helpers/date.helper.js +24 -2
  161. package/dist/helpers/date.helper.js.map +1 -1
  162. package/dist/helpers/model-metadata-helper.service.d.ts +4 -1
  163. package/dist/helpers/model-metadata-helper.service.d.ts.map +1 -1
  164. package/dist/helpers/model-metadata-helper.service.js +48 -30
  165. package/dist/helpers/model-metadata-helper.service.js.map +1 -1
  166. package/dist/helpers/module.helper.d.ts.map +1 -1
  167. package/dist/helpers/module.helper.js +1 -3
  168. package/dist/helpers/module.helper.js.map +1 -1
  169. package/dist/helpers/schematic.service.d.ts +9 -3
  170. package/dist/helpers/schematic.service.d.ts.map +1 -1
  171. package/dist/helpers/schematic.service.js +49 -32
  172. package/dist/helpers/schematic.service.js.map +1 -1
  173. package/dist/helpers/solid-registry.d.ts +3 -2
  174. package/dist/helpers/solid-registry.d.ts.map +1 -1
  175. package/dist/helpers/solid-registry.js +10 -0
  176. package/dist/helpers/solid-registry.js.map +1 -1
  177. package/dist/helpers/typeorm-db-helper.d.ts +3 -0
  178. package/dist/helpers/typeorm-db-helper.d.ts.map +1 -0
  179. package/dist/helpers/typeorm-db-helper.js +24 -0
  180. package/dist/helpers/typeorm-db-helper.js.map +1 -0
  181. package/dist/index.d.ts +5 -1
  182. package/dist/index.d.ts.map +1 -1
  183. package/dist/index.js +5 -1
  184. package/dist/index.js.map +1 -1
  185. package/dist/interfaces.d.ts +3 -0
  186. package/dist/interfaces.d.ts.map +1 -1
  187. package/dist/interfaces.js.map +1 -1
  188. package/dist/jobs/database/trigger-mcp-client-subscriber-database.service.d.ts.map +1 -1
  189. package/dist/jobs/database/trigger-mcp-client-subscriber-database.service.js +6 -1
  190. package/dist/jobs/database/trigger-mcp-client-subscriber-database.service.js.map +1 -1
  191. package/dist/seeders/module-metadata-seeder.service.d.ts +1 -1
  192. package/dist/seeders/module-metadata-seeder.service.d.ts.map +1 -1
  193. package/dist/seeders/module-metadata-seeder.service.js +39 -17
  194. package/dist/seeders/module-metadata-seeder.service.js.map +1 -1
  195. package/dist/seeders/seed-data/solid-core-metadata.json +53 -468
  196. package/dist/seeders/system-fields-seeder.service.d.ts.map +1 -1
  197. package/dist/seeders/system-fields-seeder.service.js +1 -1
  198. package/dist/seeders/system-fields-seeder.service.js.map +1 -1
  199. package/dist/services/ai-interaction.service.js +1 -1
  200. package/dist/services/ai-interaction.service.js.map +1 -1
  201. package/dist/services/computed-fields/entity/alpha-num-external-id-computed-field-provider.d.ts.map +1 -1
  202. package/dist/services/computed-fields/entity/alpha-num-external-id-computed-field-provider.js +6 -4
  203. package/dist/services/computed-fields/entity/alpha-num-external-id-computed-field-provider.js.map +1 -1
  204. package/dist/services/crud-helper.service.d.ts +8 -0
  205. package/dist/services/crud-helper.service.d.ts.map +1 -1
  206. package/dist/services/crud-helper.service.js +28 -5
  207. package/dist/services/crud-helper.service.js.map +1 -1
  208. package/dist/services/crud.service.d.ts +4 -1
  209. package/dist/services/crud.service.d.ts.map +1 -1
  210. package/dist/services/crud.service.js +87 -7
  211. package/dist/services/crud.service.js.map +1 -1
  212. package/dist/services/field-metadata.service.d.ts +143 -6
  213. package/dist/services/field-metadata.service.d.ts.map +1 -1
  214. package/dist/services/field-metadata.service.js +211 -56
  215. package/dist/services/field-metadata.service.js.map +1 -1
  216. package/dist/services/menu-item-metadata.service.d.ts +3 -1
  217. package/dist/services/menu-item-metadata.service.d.ts.map +1 -1
  218. package/dist/services/menu-item-metadata.service.js +31 -11
  219. package/dist/services/menu-item-metadata.service.js.map +1 -1
  220. package/dist/services/model-metadata.service.d.ts.map +1 -1
  221. package/dist/services/model-metadata.service.js +14 -3
  222. package/dist/services/model-metadata.service.js.map +1 -1
  223. package/dist/services/mq-message.service.d.ts.map +1 -1
  224. package/dist/services/mq-message.service.js +3 -4
  225. package/dist/services/mq-message.service.js.map +1 -1
  226. package/dist/services/queues/publisher-factory.service.d.ts.map +1 -1
  227. package/dist/services/queues/publisher-factory.service.js +4 -0
  228. package/dist/services/queues/publisher-factory.service.js.map +1 -1
  229. package/dist/{providers → services/selection-providers}/list-of-values-selection-providers.service.d.ts +2 -2
  230. package/dist/services/selection-providers/list-of-values-selection-providers.service.d.ts.map +1 -0
  231. package/dist/{providers → services/selection-providers}/list-of-values-selection-providers.service.js +3 -3
  232. package/dist/services/selection-providers/list-of-values-selection-providers.service.js.map +1 -0
  233. package/dist/services/selection-providers/pseudo-foreign-key-selection-provider.service.d.ts +20 -0
  234. package/dist/services/selection-providers/pseudo-foreign-key-selection-provider.service.d.ts.map +1 -0
  235. package/dist/services/selection-providers/pseudo-foreign-key-selection-provider.service.js +87 -0
  236. package/dist/services/selection-providers/pseudo-foreign-key-selection-provider.service.js.map +1 -0
  237. package/dist/services/setting.service.d.ts.map +1 -1
  238. package/dist/services/setting.service.js +2 -1
  239. package/dist/services/setting.service.js.map +1 -1
  240. package/dist/services/solid-introspect.service.d.ts +19 -3
  241. package/dist/services/solid-introspect.service.d.ts.map +1 -1
  242. package/dist/services/solid-introspect.service.js +83 -11
  243. package/dist/services/solid-introspect.service.js.map +1 -1
  244. package/dist/services/view-metadata.service.d.ts +3 -1
  245. package/dist/services/view-metadata.service.d.ts.map +1 -1
  246. package/dist/services/view-metadata.service.js +31 -5
  247. package/dist/services/view-metadata.service.js.map +1 -1
  248. package/dist/solid-core.module.d.ts.map +1 -1
  249. package/dist/solid-core.module.js +5 -1
  250. package/dist/solid-core.module.js.map +1 -1
  251. package/dist/subscribers/audit.subscriber.d.ts +3 -2
  252. package/dist/subscribers/audit.subscriber.d.ts.map +1 -1
  253. package/dist/subscribers/audit.subscriber.js +6 -12
  254. package/dist/subscribers/audit.subscriber.js.map +1 -1
  255. package/dist/subscribers/computed-entity-field.subscriber.d.ts +3 -2
  256. package/dist/subscribers/computed-entity-field.subscriber.d.ts.map +1 -1
  257. package/dist/subscribers/computed-entity-field.subscriber.js +7 -9
  258. package/dist/subscribers/computed-entity-field.subscriber.js.map +1 -1
  259. package/dist/subscribers/created-by-updated-by.subscriber.d.ts +4 -2
  260. package/dist/subscribers/created-by-updated-by.subscriber.d.ts.map +1 -1
  261. package/dist/subscribers/created-by-updated-by.subscriber.js +10 -8
  262. package/dist/subscribers/created-by-updated-by.subscriber.js.map +1 -1
  263. package/dist/subscribers/field-metadata.subscriber.d.ts.map +1 -1
  264. package/dist/subscribers/field-metadata.subscriber.js +0 -1
  265. package/dist/subscribers/field-metadata.subscriber.js.map +1 -1
  266. package/dist/subscribers/model-metadata.subscriber.d.ts.map +1 -1
  267. package/dist/subscribers/model-metadata.subscriber.js +3 -2
  268. package/dist/subscribers/model-metadata.subscriber.js.map +1 -1
  269. package/dist/subscribers/soft-delete-aware-event.subscriber.d.ts +3 -2
  270. package/dist/subscribers/soft-delete-aware-event.subscriber.d.ts.map +1 -1
  271. package/dist/subscribers/soft-delete-aware-event.subscriber.js +6 -11
  272. package/dist/subscribers/soft-delete-aware-event.subscriber.js.map +1 -1
  273. package/dist/tsconfig.tsbuildinfo +1 -1
  274. package/package.json +1 -1
  275. package/sql/mssql/proc_CleanupModelMetadata.sql +175 -0
  276. package/sql/mssql/proc_CleanupModuleMetadata.sql +78 -0
  277. package/sql/mssql/scratchpad.sql +10 -0
  278. package/sql/postgres/proc_CleanupModelMetadata.sql +148 -0
  279. package/sql/postgres/proc_CleanupModuleMetadata.sql +50 -0
  280. package/sql/postgres/scratchpad.sql +12 -0
  281. package/sql-server-changes.txt +88 -0
  282. package/src/commands/mcp.command.ts +215 -0
  283. package/src/commands/refresh-model.command.ts +37 -5
  284. package/src/commands/remove-fields.command.ts +1 -1
  285. package/src/commands/seed.command.ts +34 -15
  286. package/src/controllers/authentication.controller.ts +1 -1
  287. package/src/controllers/email-template.controller.ts +1 -1
  288. package/src/controllers/field-metadata.controller.ts +7 -1
  289. package/src/controllers/media-storage-provider-metadata.controller.ts +1 -1
  290. package/src/controllers/model-metadata.controller.ts +1 -1
  291. package/src/controllers/module-metadata.controller.ts +1 -1
  292. package/src/controllers/otp-authentication.controller.ts +1 -1
  293. package/src/controllers/service.controller.ts +1 -1
  294. package/src/controllers/sms-template.controller.ts +1 -1
  295. package/src/controllers/test-queue.controller.ts +1 -1
  296. package/src/controllers/test.controller.ts +1 -1
  297. package/src/dtos/create-ai-interaction.dto.ts +16 -9
  298. package/src/dtos/create-field-metadata.dto.ts +42 -12
  299. package/src/dtos/create-import-transaction.dto.ts +0 -4
  300. package/src/dtos/create-model-metadata.dto.ts +10 -0
  301. package/src/dtos/create-role-metadata.dto.ts +8 -2
  302. package/src/dtos/resolve-s3-url.dto.ts +33 -0
  303. package/src/dtos/update-ai-interaction.dto.ts +16 -9
  304. package/src/dtos/update-field-metadata.dto.ts +1 -2
  305. package/src/dtos/update-import-transaction.dto.ts +0 -4
  306. package/src/entities/action-metadata.entity.ts +4 -4
  307. package/src/entities/ai-interaction.entity.ts +16 -12
  308. package/src/entities/chatter-message-details.entity.ts +18 -18
  309. package/src/entities/chatter-message.entity.ts +2 -2
  310. package/src/entities/common.entity.ts +19 -10
  311. package/src/entities/dashboard-question-sql-dataset-config.entity.ts +2 -2
  312. package/src/entities/dashboard-question.entity.ts +3 -3
  313. package/src/entities/dashboard-variable.entity.ts +3 -3
  314. package/src/entities/dashboard.entity.ts +1 -1
  315. package/src/entities/email-template.entity.ts +4 -3
  316. package/src/entities/export-template.entity.ts +2 -2
  317. package/src/entities/export-transaction.entity.ts +2 -2
  318. package/src/entities/field-metadata.entity.ts +6 -3
  319. package/src/entities/import-transaction-error-log.entity.ts +2 -2
  320. package/src/entities/import-transaction.entity.ts +2 -5
  321. package/src/entities/legacy-common-with-id.entity.ts +11 -0
  322. package/src/entities/legacy-common.entity.ts +57 -0
  323. package/src/entities/list-of-values.entity.ts +2 -2
  324. package/src/entities/locale.entity.ts +1 -1
  325. package/src/entities/media.entity.ts +25 -25
  326. package/src/entities/menu-item-metadata.entity.ts +4 -4
  327. package/src/entities/model-metadata.entity.ts +9 -2
  328. package/src/entities/mq-message-queue.entity.ts +1 -1
  329. package/src/entities/mq-message.entity.ts +34 -34
  330. package/src/entities/saved-filters.entity.ts +5 -5
  331. package/src/entities/scheduled-job.entity.ts +4 -4
  332. package/src/entities/security-rule.entity.ts +2 -2
  333. package/src/entities/setting.entity.ts +2 -2
  334. package/src/entities/sms-template.entity.ts +2 -2
  335. package/src/entities/user-activity-history.entity.ts +14 -14
  336. package/src/entities/user-view-metadata.entity.ts +2 -2
  337. package/src/entities/user.entity.ts +15 -15
  338. package/src/entities/view-metadata.entity.ts +3 -3
  339. package/src/helpers/date.helper.ts +31 -10
  340. package/src/helpers/model-metadata-helper.service.ts +63 -32
  341. package/src/helpers/module.helper.ts +4 -3
  342. package/src/helpers/schematic.service.ts +72 -46
  343. package/src/helpers/solid-registry.ts +14 -2
  344. package/src/helpers/typeorm-db-helper.ts +26 -0
  345. package/src/index.ts +5 -1
  346. package/src/interfaces.ts +3 -0
  347. package/src/jobs/database/trigger-mcp-client-subscriber-database.service.ts +17 -21
  348. package/src/seeders/module-metadata-seeder.service.ts +73 -29
  349. package/src/seeders/seed-data/solid-core-metadata.json +55 -470
  350. package/src/seeders/system-fields-seeder.service.ts +34 -35
  351. package/src/services/ai-interaction.service.ts +1 -1
  352. package/src/services/computed-fields/entity/alpha-num-external-id-computed-field-provider.ts +13 -9
  353. package/src/services/crud-helper.service.ts +32 -4
  354. package/src/services/crud.service.ts +158 -10
  355. package/src/services/field-metadata.service.ts +272 -67
  356. package/src/services/menu-item-metadata.service.ts +81 -50
  357. package/src/services/model-metadata.service.ts +18 -3
  358. package/src/services/mq-message.service.ts +16 -15
  359. package/src/services/queues/publisher-factory.service.ts +2 -1
  360. package/src/{providers → services/selection-providers}/list-of-values-selection-providers.service.ts +2 -2
  361. package/src/services/selection-providers/pseudo-foreign-key-selection-provider.service.ts +94 -0
  362. package/src/services/setting.service.ts +13 -10
  363. package/src/services/solid-introspect.service.ts +110 -10
  364. package/src/services/view-metadata.service.ts +48 -18
  365. package/src/solid-core.module.ts +5 -1
  366. package/src/subscribers/audit.subscriber.ts +12 -8
  367. package/src/subscribers/computed-entity-field.subscriber.ts +13 -7
  368. package/src/subscribers/created-by-updated-by.subscriber.ts +14 -8
  369. package/src/subscribers/field-metadata.subscriber.ts +1 -1
  370. package/src/subscribers/model-metadata.subscriber.ts +4 -2
  371. package/src/subscribers/soft-delete-aware-event.subscriber.ts +12 -6
  372. package/dist/providers/list-of-values-selection-providers.service.d.ts.map +0 -1
  373. package/dist/providers/list-of-values-selection-providers.service.js.map +0 -1
  374. package/src/commands/ingest-rag-chunking-strategy-for.md +0 -224
  375. package/src/entities/user.entity.ts.bkp +0 -144
  376. package/src/services/docker exec -it mssql //" +0 -8
@@ -0,0 +1,49 @@
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.ResolveS3UrlDto = void 0;
13
+ const openapi = require("@nestjs/swagger");
14
+ const class_validator_1 = require("class-validator");
15
+ class ResolveS3UrlDto {
16
+ static _OPENAPI_METADATA_FACTORY() {
17
+ return { modelName: { required: true, type: () => String }, fieldName: { required: true, type: () => String }, s3KeyFieldName: { required: true, type: () => String }, fieldValue: { required: true, type: () => String }, fileType: { required: true, type: () => String }, bucketName: { required: true, type: () => String }, isPrivate: { required: true, type: () => String } };
18
+ }
19
+ }
20
+ exports.ResolveS3UrlDto = ResolveS3UrlDto;
21
+ __decorate([
22
+ (0, class_validator_1.IsNotEmpty)(),
23
+ __metadata("design:type", String)
24
+ ], ResolveS3UrlDto.prototype, "modelName", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsNotEmpty)(),
27
+ __metadata("design:type", String)
28
+ ], ResolveS3UrlDto.prototype, "fieldName", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsNotEmpty)(),
31
+ __metadata("design:type", String)
32
+ ], ResolveS3UrlDto.prototype, "s3KeyFieldName", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsNotEmpty)(),
35
+ __metadata("design:type", String)
36
+ ], ResolveS3UrlDto.prototype, "fieldValue", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsNotEmpty)(),
39
+ __metadata("design:type", String)
40
+ ], ResolveS3UrlDto.prototype, "fileType", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsNotEmpty)(),
43
+ __metadata("design:type", String)
44
+ ], ResolveS3UrlDto.prototype, "bucketName", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsNotEmpty)(),
47
+ __metadata("design:type", String)
48
+ ], ResolveS3UrlDto.prototype, "isPrivate", void 0);
49
+ //# sourceMappingURL=resolve-s3-url.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-s3-url.dto.js","sourceRoot":"","sources":["../../src/dtos/resolve-s3-url.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA6E;AAE7E,MAAa,eAAe;;;;CAqB3B;AArBD,0CAqBC;AAnBG;IADC,IAAA,4BAAU,GAAE;;kDACK;AAGlB;IADC,IAAA,4BAAU,GAAE;;kDACK;AAGlB;IADC,IAAA,4BAAU,GAAE;;uDACU;AAGvB;IADC,IAAA,4BAAU,GAAE;;mDACM;AAGnB;IADC,IAAA,4BAAU,GAAE;;iDACI;AAGjB;IADC,IAAA,4BAAU,GAAE;;mDACM;AAGnB;IADC,IAAA,4BAAU,GAAE;;kDACK","sourcesContent":["import { IsEmail, IsNotEmpty, IsOptional, MinLength } from 'class-validator';\n\nexport class ResolveS3UrlDto {\n @IsNotEmpty()\n modelName: string;\n\n @IsNotEmpty()\n fieldName: string;\n\n @IsNotEmpty()\n s3KeyFieldName: string;\n\n @IsNotEmpty()\n fieldValue: string;\n\n @IsNotEmpty()\n fileType: string;\n \n @IsNotEmpty()\n bucketName: string;\n\n @IsNotEmpty()\n isPrivate: string;\n}\n\n\n\n\n\n\n\n\n\n"]}
@@ -18,5 +18,7 @@ export declare class UpdateAiInteractionDto {
18
18
  inputTokens: number;
19
19
  outputTokens: number;
20
20
  totalTokens: number;
21
+ originalMessage: string;
22
+ isEdited: boolean;
21
23
  }
22
24
  //# sourceMappingURL=update-ai-interaction.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-ai-interaction.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-ai-interaction.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,sBAAsB;IAG/B,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,CAAC;IAKpB,QAAQ,EAAE,MAAM,CAAC;IAKjB,IAAI,EAAE,MAAM,CAAC;IAKb,OAAO,EAAE,MAAM,CAAC;IAIhB,WAAW,EAAE,MAAM,CAAC;IAIpB,MAAM,EAAE,MAAM,CAAC;IAIf,YAAY,EAAE,MAAM,CAAC;IAIrB,SAAS,EAAE,MAAM,CAAC;IAIlB,cAAc,EAAE,MAAM,CAAC;IAIvB,QAAQ,EAAE,GAAG,CAAC;IAId,SAAS,EAAE,OAAO,CAAC;IAInB,mBAAmB,EAAE,MAAM,CAAC;IAI5B,wBAAwB,EAAE,MAAM,CAAC;IAIjC,WAAW,EAAE,OAAO,CAAC;IAKzB,WAAW,EAAE,MAAM,CAAC;IAKpB,YAAY,EAAE,MAAM,CAAC;IAKrB,WAAW,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"update-ai-interaction.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-ai-interaction.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,sBAAsB;IAG/B,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,CAAC;IAKpB,QAAQ,EAAE,MAAM,CAAC;IAKjB,IAAI,EAAE,MAAM,CAAC;IAKb,OAAO,EAAE,MAAM,CAAC;IAIhB,WAAW,EAAE,MAAM,CAAC;IAIpB,MAAM,EAAE,MAAM,CAAC;IAIf,YAAY,EAAE,MAAM,CAAC;IAIrB,SAAS,EAAE,MAAM,CAAC;IAIlB,cAAc,EAAE,MAAM,CAAC;IAIvB,QAAQ,EAAE,GAAG,CAAC;IAId,SAAS,EAAE,OAAO,CAAC;IAInB,mBAAmB,EAAE,MAAM,CAAC;IAI5B,wBAAwB,EAAE,MAAM,CAAC;IAIjC,WAAW,EAAE,OAAO,CAAC;IAIrB,WAAW,EAAE,MAAM,CAAC;IAIpB,YAAY,EAAE,MAAM,CAAC;IAIrB,WAAW,EAAE,MAAM,CAAC;IAKxB,eAAe,EAAE,MAAM,CAAC;IAKxB,QAAQ,EAAE,OAAO,CAAC;CACjB"}
@@ -15,7 +15,7 @@ const class_validator_1 = require("class-validator");
15
15
  const swagger_1 = require("@nestjs/swagger");
16
16
  class UpdateAiInteractionDto {
17
17
  static _OPENAPI_METADATA_FACTORY() {
18
- return { id: { required: true, type: () => Number }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String }, threadId: { required: true, type: () => String }, role: { required: true, type: () => String }, message: { required: true, type: () => String }, contentType: { required: true, type: () => String }, status: { required: true, type: () => String }, errorMessage: { required: true, type: () => String }, modelUsed: { required: true, type: () => String }, responseTimeMs: { required: true, type: () => Number }, metadata: { required: true, type: () => Object }, isApplied: { required: true, type: () => Boolean }, parentInteractionId: { required: true, type: () => Number }, parentInteractionUserKey: { required: true, type: () => String }, isAutoApply: { required: true, type: () => Boolean }, inputTokens: { required: true, type: () => Number }, outputTokens: { required: true, type: () => Number }, totalTokens: { required: true, type: () => Number } };
18
+ return { id: { required: true, type: () => Number }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String }, threadId: { required: true, type: () => String }, role: { required: true, type: () => String }, message: { required: true, type: () => String }, contentType: { required: true, type: () => String }, status: { required: true, type: () => String }, errorMessage: { required: true, type: () => String }, modelUsed: { required: true, type: () => String }, responseTimeMs: { required: true, type: () => Number }, metadata: { required: true, type: () => Object }, isApplied: { required: true, type: () => Boolean }, parentInteractionId: { required: true, type: () => Number }, parentInteractionUserKey: { required: true, type: () => String }, isAutoApply: { required: true, type: () => Boolean }, inputTokens: { required: true, type: () => Number }, outputTokens: { required: true, type: () => Number }, totalTokens: { required: true, type: () => Number }, originalMessage: { required: true, type: () => String }, isEdited: { required: true, type: () => Boolean } };
19
19
  }
20
20
  }
21
21
  exports.UpdateAiInteractionDto = UpdateAiInteractionDto;
@@ -135,4 +135,16 @@ __decorate([
135
135
  (0, swagger_1.ApiProperty)(),
136
136
  __metadata("design:type", Number)
137
137
  ], UpdateAiInteractionDto.prototype, "totalTokens", void 0);
138
+ __decorate([
139
+ (0, class_validator_1.IsOptional)(),
140
+ (0, class_validator_1.IsString)(),
141
+ (0, swagger_1.ApiProperty)(),
142
+ __metadata("design:type", String)
143
+ ], UpdateAiInteractionDto.prototype, "originalMessage", void 0);
144
+ __decorate([
145
+ (0, class_validator_1.IsOptional)(),
146
+ (0, class_validator_1.IsBoolean)(),
147
+ (0, swagger_1.ApiProperty)(),
148
+ __metadata("design:type", Boolean)
149
+ ], UpdateAiInteractionDto.prototype, "isEdited", void 0);
138
150
  //# sourceMappingURL=update-ai-interaction.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-ai-interaction.dto.js","sourceRoot":"","sources":["../../src/dtos/update-ai-interaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA4F;AAC5F,6CAA8C;AAE9C,MAAa,sBAAsB;;;;CAkFlC;AAlFD,wDAkFC;AA/EG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;kDACG;AAIX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;sDACC;AAIf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;2DACM;AAKpB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;wDACG;AAKjB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;I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E;;4DACO;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;2DACM","sourcesContent":["import { IsInt,IsOptional, IsString, IsNotEmpty, IsJSON, IsBoolean } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\n\nexport class UpdateAiInteractionDto {\n @IsOptional()\n @IsInt()\n id: number;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n userId: number;\n @IsString()\n @IsOptional()\n @ApiProperty()\n userUserKey: string;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n threadId: string;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n role: string;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n message: string;\n @IsOptional()\n @IsString()\n @ApiProperty()\n contentType: string;\n @IsOptional()\n @IsString()\n @ApiProperty()\n status: string;\n @IsOptional()\n @IsString()\n @ApiProperty()\n errorMessage: string;\n @IsOptional()\n @IsString()\n @ApiProperty()\n modelUsed: string;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n responseTimeMs: number;\n @IsOptional()\n @IsJSON()\n @ApiProperty()\n metadata: any;\n @IsOptional()\n @IsBoolean()\n @ApiProperty()\n isApplied: boolean;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n parentInteractionId: number;\n @IsString()\n @IsOptional()\n @ApiProperty()\n parentInteractionUserKey: string;\n @IsOptional()\n @IsBoolean()\n @ApiProperty()\n isAutoApply: boolean;\n\n@IsOptional()\n@IsInt()\n@ApiProperty()\ninputTokens: number;\n\n@IsOptional()\n@IsInt()\n@ApiProperty()\noutputTokens: number;\n\n@IsOptional()\n@IsInt()\n@ApiProperty()\ntotalTokens: number;\n}"]}
1
+ {"version":3,"file":"update-ai-interaction.dto.js","sourceRoot":"","sources":["../../src/dtos/update-ai-interaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA4F;AAC5F,6CAA8C;AAE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AAA,qBAAW,GAAE;;yDACK;AAInB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;mEACc;AAI5B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;wEACmB;AAIjC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;2DACO;AAIrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;2DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;4DACO;AAIrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;2DACM;AAKxB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;+DACU;AAKxB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;wDACI","sourcesContent":["import { IsInt,IsOptional, IsString, IsNotEmpty, IsJSON, IsBoolean } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\n\nexport class UpdateAiInteractionDto {\n @IsOptional()\n @IsInt()\n id: number;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n userId: number;\n @IsString()\n @IsOptional()\n @ApiProperty()\n userUserKey: string;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n threadId: string;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n role: string;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n message: string;\n @IsOptional()\n @IsString()\n @ApiProperty()\n contentType: string;\n @IsOptional()\n @IsString()\n @ApiProperty()\n status: string;\n @IsOptional()\n @IsString()\n @ApiProperty()\n errorMessage: string;\n @IsOptional()\n @IsString()\n @ApiProperty()\n modelUsed: string;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n responseTimeMs: number;\n @IsOptional()\n @IsJSON()\n @ApiProperty()\n metadata: any;\n @IsOptional()\n @IsBoolean()\n @ApiProperty()\n isApplied: boolean;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n parentInteractionId: number;\n @IsString()\n @IsOptional()\n @ApiProperty()\n parentInteractionUserKey: string;\n @IsOptional()\n @IsBoolean()\n @ApiProperty()\n isAutoApply: boolean;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n inputTokens: number;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n outputTokens: number;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalTokens: number;\n\n@IsOptional()\n@IsString()\n@ApiProperty()\noriginalMessage: string;\n\n@IsOptional()\n@IsBoolean()\n@ApiProperty()\nisEdited: boolean;\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"update-field-metadata.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-field-metadata.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,qBAAa,sBAAuB,SAAQ,sBAAsB;IAI9D,EAAE,CAAC,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"update-field-metadata.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-field-metadata.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,qBAAa,sBAAuB,SAAQ,sBAAsB;IAI9D,EAAE,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-field-metadata.dto.js","sourceRoot":"","sources":["../../src/dtos/update-field-metadata.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,qDAAiE;AACjE,2EAAqE;AAErE,MAAa,sBAAuB,SAAQ,kDAAsB;;;;CAKjE;AALD,wDAKC;AADG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACD","sourcesContent":["import { PartialType } from \"@nestjs/mapped-types\";\nimport { IsNumber, IsOptional, IsString } from \"class-validator\";\nimport { CreateFieldMetadataDto } from \"./create-field-metadata.dto\";\n\nexport class UpdateFieldMetaDataDto extends CreateFieldMetadataDto {\n \n @IsNumber()\n @IsOptional()\n id?: number;\n}"]}
1
+ {"version":3,"file":"update-field-metadata.dto.js","sourceRoot":"","sources":["../../src/dtos/update-field-metadata.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAuD;AACvD,2EAAqE;AAErE,MAAa,sBAAuB,SAAQ,kDAAsB;;;;CAKjE;AALD,wDAKC;AADG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACD","sourcesContent":["import { IsNumber, IsOptional } from \"class-validator\";\nimport { CreateFieldMetadataDto } from \"./create-field-metadata.dto\";\n\nexport class UpdateFieldMetaDataDto extends CreateFieldMetadataDto {\n \n @IsNumber()\n @IsOptional()\n id?: number;\n}"]}
@@ -2,7 +2,6 @@ import { UpdateImportTransactionErrorLogDto } from 'src/dtos/update-import-trans
2
2
  export declare class UpdateImportTransactionDto {
3
3
  id: number;
4
4
  status: string;
5
- importTransactionId: string;
6
5
  mapping: any;
7
6
  modelMetadataId: number;
8
7
  modelMetadataUserKey: string;
@@ -1 +1 @@
1
- {"version":3,"file":"update-import-transaction.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-import-transaction.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAC;AAEtG,qBAAa,0BAA0B;IAGnC,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,EAAE,MAAM,CAAC;IAIf,mBAAmB,EAAE,MAAM,CAAC;IAI5B,OAAO,EAAE,GAAG,CAAC;IAIb,eAAe,EAAE,MAAM,CAAC;IAIxB,oBAAoB,EAAE,MAAM,CAAC;IAI7B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,qBAAqB,EAAE,MAAM,CAAC;IAM9B,yBAAyB,EAAE,kCAAkC,EAAE,CAAC;IAIhE,4BAA4B,EAAE,MAAM,EAAE,CAAC;IAIvC,gCAAgC,EAAE,MAAM,CAAC;CAC5C"}
1
+ {"version":3,"file":"update-import-transaction.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-import-transaction.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAC;AAEtG,qBAAa,0BAA0B;IAGnC,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,EAAE,MAAM,CAAC;IAIf,OAAO,EAAE,GAAG,CAAC;IAIb,eAAe,EAAE,MAAM,CAAC;IAIxB,oBAAoB,EAAE,MAAM,CAAC;IAI7B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,qBAAqB,EAAE,MAAM,CAAC;IAM9B,yBAAyB,EAAE,kCAAkC,EAAE,CAAC;IAIhE,4BAA4B,EAAE,MAAM,EAAE,CAAC;IAIvC,gCAAgC,EAAE,MAAM,CAAC;CAC5C"}
@@ -17,7 +17,7 @@ const class_transformer_1 = require("class-transformer");
17
17
  const update_import_transaction_error_log_dto_1 = require("./update-import-transaction-error-log.dto");
18
18
  class UpdateImportTransactionDto {
19
19
  static _OPENAPI_METADATA_FACTORY() {
20
- return { id: { required: true, type: () => Number }, status: { required: true, type: () => String }, importTransactionId: { required: true, type: () => String }, mapping: { required: true, type: () => Object }, modelMetadataId: { required: true, type: () => Number }, modelMetadataUserKey: { required: true, type: () => String }, moduleMetadataId: { required: true, type: () => Number }, moduleMetadataUserKey: { required: true, type: () => String }, importTransactionErrorLog: { required: true, type: () => [require("./update-import-transaction-error-log.dto").UpdateImportTransactionErrorLogDto] }, importTransactionErrorLogIds: { required: true, type: () => [Number] }, importTransactionErrorLogCommand: { required: true, type: () => String } };
20
+ return { id: { required: true, type: () => Number }, status: { required: true, type: () => String }, mapping: { required: true, type: () => Object }, modelMetadataId: { required: true, type: () => Number }, modelMetadataUserKey: { required: true, type: () => String }, moduleMetadataId: { required: true, type: () => Number }, moduleMetadataUserKey: { required: true, type: () => String }, importTransactionErrorLog: { required: true, type: () => [require("./update-import-transaction-error-log.dto").UpdateImportTransactionErrorLogDto] }, importTransactionErrorLogIds: { required: true, type: () => [Number] }, importTransactionErrorLogCommand: { required: true, type: () => String } };
21
21
  }
22
22
  }
23
23
  exports.UpdateImportTransactionDto = UpdateImportTransactionDto;
@@ -32,12 +32,6 @@ __decorate([
32
32
  (0, swagger_1.ApiProperty)(),
33
33
  __metadata("design:type", String)
34
34
  ], UpdateImportTransactionDto.prototype, "status", void 0);
35
- __decorate([
36
- (0, class_validator_1.IsOptional)(),
37
- (0, class_validator_1.IsString)(),
38
- (0, swagger_1.ApiProperty)(),
39
- __metadata("design:type", String)
40
- ], UpdateImportTransactionDto.prototype, "importTransactionId", void 0);
41
35
  __decorate([
42
36
  (0, class_validator_1.IsOptional)(),
43
37
  (0, class_validator_1.IsJSON)(),
@@ -1 +1 @@
1
- {"version":3,"file":"update-import-transaction.dto.js","sourceRoot":"","sources":["../../src/dtos/update-import-transaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA8F;AAC9F,6CAA8C;AAC9C,yDAAyC;AACzC,uGAAsG;AAEtG,MAAa,0BAA0B;;;;CA8CtC;AA9CD,gEA8CC;AA3CG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;sDACG;AAIX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;0DACC;AAIf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;uEACc;AAI5B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;2DACD;AAIb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;mEACU;AAIxB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;wEACe;AAI7B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;oEACW;AAIzB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;yEACgB;AAM9B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4EAAkC,CAAC;;6EACiB;AAIhE;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;gFACyB;AAIvC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;oFAC2B","sourcesContent":["import { IsInt,IsOptional, IsString, IsJSON, ValidateNested, IsArray } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { UpdateImportTransactionErrorLogDto } from 'src/dtos/update-import-transaction-error-log.dto';\n\nexport class UpdateImportTransactionDto {\n @IsOptional()\n @IsInt()\n id: number;\n @IsOptional()\n @IsString()\n @ApiProperty()\n status: string;\n @IsOptional()\n @IsString()\n @ApiProperty()\n importTransactionId: string;\n @IsOptional()\n @IsJSON()\n @ApiProperty()\n mapping: any;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n modelMetadataId: number;\n @IsString()\n @IsOptional()\n @ApiProperty()\n modelMetadataUserKey: string;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n moduleMetadataId: number;\n @IsString()\n @IsOptional()\n @ApiProperty()\n moduleMetadataUserKey: string;\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateImportTransactionErrorLogDto)\n importTransactionErrorLog: UpdateImportTransactionErrorLogDto[];\n @IsOptional()\n @IsArray()\n @ApiProperty()\n importTransactionErrorLogIds: number[];\n @IsString()\n @IsOptional()\n @ApiProperty()\n importTransactionErrorLogCommand: string;\n}"]}
1
+ {"version":3,"file":"update-import-transaction.dto.js","sourceRoot":"","sources":["../../src/dtos/update-import-transaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA8F;AAC9F,6CAA8C;AAC9C,yDAAyC;AACzC,uGAAsG;AAEtG,MAAa,0BAA0B;;;;CA0CtC;AA1CD,gEA0CC;AAvCG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;sDACG;AAIX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;0DACC;AAIf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;2DACD;AAIb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;mEACU;AAIxB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;wEACe;AAI7B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;oEACW;AAIzB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;yEACgB;AAM9B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4EAAkC,CAAC;;6EACiB;AAIhE;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;gFACyB;AAIvC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;oFAC2B","sourcesContent":["import { IsInt,IsOptional, IsString, IsJSON, ValidateNested, IsArray } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { UpdateImportTransactionErrorLogDto } from 'src/dtos/update-import-transaction-error-log.dto';\n\nexport class UpdateImportTransactionDto {\n @IsOptional()\n @IsInt()\n id: number;\n @IsOptional()\n @IsString()\n @ApiProperty()\n status: string;\n @IsOptional()\n @IsJSON()\n @ApiProperty()\n mapping: any;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n modelMetadataId: number;\n @IsString()\n @IsOptional()\n @ApiProperty()\n modelMetadataUserKey: string;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n moduleMetadataId: number;\n @IsString()\n @IsOptional()\n @ApiProperty()\n moduleMetadataUserKey: string;\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateImportTransactionErrorLogDto)\n importTransactionErrorLog: UpdateImportTransactionErrorLogDto[];\n @IsOptional()\n @IsArray()\n @ApiProperty()\n importTransactionErrorLogIds: number[];\n @IsString()\n @IsOptional()\n @ApiProperty()\n importTransactionErrorLogCommand: string;\n}"]}
@@ -48,7 +48,7 @@ __decorate([
48
48
  __metadata("design:type", String)
49
49
  ], ActionMetadata.prototype, "customComponent", void 0);
50
50
  __decorate([
51
- (0, typeorm_1.Column)({ name: "custom_is_modal", type: "boolean", nullable: true }),
51
+ (0, typeorm_1.Column)({ name: "custom_is_modal", nullable: true }),
52
52
  __metadata("design:type", Boolean)
53
53
  ], ActionMetadata.prototype, "customIsModal", void 0);
54
54
  __decorate([
@@ -57,19 +57,19 @@ __decorate([
57
57
  ], ActionMetadata.prototype, "serverEndpoint", void 0);
58
58
  __decorate([
59
59
  (0, typeorm_1.Index)(),
60
- (0, typeorm_1.ManyToOne)(() => module_metadata_entity_1.ModuleMetadata, { onDelete: "CASCADE" }),
60
+ (0, typeorm_1.ManyToOne)(() => module_metadata_entity_1.ModuleMetadata, {}),
61
61
  (0, typeorm_1.JoinColumn)({ name: 'module_id', referencedColumnName: 'id' }),
62
62
  __metadata("design:type", module_metadata_entity_1.ModuleMetadata)
63
63
  ], ActionMetadata.prototype, "module", void 0);
64
64
  __decorate([
65
65
  (0, typeorm_1.Index)(),
66
- (0, typeorm_1.ManyToOne)(() => model_metadata_entity_1.ModelMetadata, { onDelete: "CASCADE" }),
66
+ (0, typeorm_1.ManyToOne)(() => model_metadata_entity_1.ModelMetadata, {}),
67
67
  (0, typeorm_1.JoinColumn)({ name: 'model_id', referencedColumnName: 'id' }),
68
68
  __metadata("design:type", model_metadata_entity_1.ModelMetadata)
69
69
  ], ActionMetadata.prototype, "model", void 0);
70
70
  __decorate([
71
71
  (0, typeorm_1.Index)(),
72
- (0, typeorm_1.ManyToOne)(() => view_metadata_entity_1.ViewMetadata, { onDelete: "CASCADE" }),
72
+ (0, typeorm_1.ManyToOne)(() => view_metadata_entity_1.ViewMetadata, {}),
73
73
  (0, typeorm_1.JoinColumn)({ name: 'view_id', referencedColumnName: 'id' }),
74
74
  __metadata("design:type", view_metadata_entity_1.ViewMetadata)
75
75
  ], ActionMetadata.prototype, "view", void 0);
@@ -1 +1 @@
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;AAEzD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4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CAAC;8BACtD,uCAAc;8CAAC;AAKvB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qCAAa,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACvD,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,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtD,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\", type: \"boolean\", nullable: true })\n customIsModal: boolean;\n\n @Column({ name: \"server_endpoint\", type: \"varchar\", nullable: true })\n serverEndpoint: string;\n\n @Index()\n @ManyToOne(() => ModuleMetadata, { onDelete: \"CASCADE\" })\n @JoinColumn({ name: 'module_id', referencedColumnName: 'id' })\n module: ModuleMetadata;\n\n @Index()\n @ManyToOne(() => ModelMetadata, { onDelete: \"CASCADE\" })\n @JoinColumn({ name: 'model_id', referencedColumnName: 'id' })\n model: ModelMetadata;\n\n @Index()\n @ManyToOne(() => ViewMetadata, { onDelete: \"CASCADE\" })\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;AAEzD,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,EAAE,CAAC;;8CAC7C;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC7C;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'\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}"]}
@@ -18,5 +18,7 @@ export declare class AiInteraction extends CommonEntity {
18
18
  inputTokens: number;
19
19
  outputTokens: number;
20
20
  totalTokens: number;
21
+ originalMessage: string;
22
+ isEdited: boolean;
21
23
  }
22
24
  //# sourceMappingURL=ai-interaction.entity.d.ts.map
@@ -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;IAGX,QAAQ,EAAE,MAAM,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAEhB,WAAW,EAAE,MAAM,CAAC;IAGpB,MAAM,EAAE,MAAM,CAAC;IAEf,YAAY,EAAE,MAAM,CAAC;IAErB,SAAS,EAAE,MAAM,CAAC;IAElB,cAAc,EAAE,MAAM,CAAC;IAEvB,QAAQ,EAAE,GAAG,CAAC;IAEd,SAAS,EAAE,OAAO,CAAS;IAI3B,iBAAiB,EAAE,aAAa,CAAC;IAGjC,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,OAAO,CAAS;IAGjC,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,EAAE,MAAM,CAAC;IAGrB,WAAW,EAAE,MAAM,CAAC;CACnB"}
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;IAGX,QAAQ,EAAE,MAAM,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAEhB,WAAW,EAAE,MAAM,CAAC;IAGpB,MAAM,EAAE,MAAM,CAAC;IAEf,YAAY,EAAE,MAAM,CAAC;IAErB,SAAS,EAAE,MAAM,CAAC;IAElB,cAAc,EAAE,MAAM,CAAC;IAEvB,QAAQ,EAAE,GAAG,CAAC;IAEd,SAAS,EAAE,OAAO,CAAS;IAI3B,iBAAiB,EAAE,aAAa,CAAC;IAGjC,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,OAAO,CAAS;IAG7B,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,EAAE,MAAM,CAAC;IAGrB,WAAW,EAAE,MAAM,CAAC;IAEpB,eAAe,EAAE,MAAM,CAAC;IAExB,QAAQ,EAAE,OAAO,CAAS;CAC7B"}
@@ -19,15 +19,16 @@ let AiInteraction = class AiInteraction extends common_entity_1.CommonEntity {
19
19
  super(...arguments);
20
20
  this.isApplied = false;
21
21
  this.isAutoApply = false;
22
+ this.isEdited = false;
22
23
  }
23
24
  static _OPENAPI_METADATA_FACTORY() {
24
- return { user: { required: true, type: () => require("./user.entity").User }, threadId: { required: true, type: () => String }, role: { required: true, type: () => String }, message: { required: true, type: () => String }, contentType: { required: true, type: () => String }, status: { required: true, type: () => String }, errorMessage: { required: true, type: () => String }, modelUsed: { required: true, type: () => String }, responseTimeMs: { required: true, type: () => Number }, metadata: { required: true, type: () => Object }, isApplied: { required: true, type: () => Boolean, default: false }, parentInteraction: { required: true, type: () => require("./ai-interaction.entity").AiInteraction }, externalId: { required: true, type: () => String }, isAutoApply: { required: true, type: () => Boolean, default: false }, inputTokens: { required: true, type: () => Number }, outputTokens: { required: true, type: () => Number }, totalTokens: { required: true, type: () => Number } };
25
+ return { user: { required: true, type: () => require("./user.entity").User }, threadId: { required: true, type: () => String }, role: { required: true, type: () => String }, message: { required: true, type: () => String }, contentType: { required: true, type: () => String }, status: { required: true, type: () => String }, errorMessage: { required: true, type: () => String }, modelUsed: { required: true, type: () => String }, responseTimeMs: { required: true, type: () => Number }, metadata: { required: true, type: () => Object }, isApplied: { required: true, type: () => Boolean, default: false }, parentInteraction: { required: true, type: () => require("./ai-interaction.entity").AiInteraction }, externalId: { required: true, type: () => String }, isAutoApply: { required: true, type: () => Boolean, default: false }, inputTokens: { required: true, type: () => Number }, outputTokens: { required: true, type: () => Number }, totalTokens: { required: true, type: () => Number }, originalMessage: { required: true, type: () => String }, isEdited: { required: true, type: () => Boolean, default: false } };
25
26
  }
26
27
  };
27
28
  exports.AiInteraction = AiInteraction;
28
29
  __decorate([
29
30
  (0, typeorm_1.Index)(),
30
- (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: "CASCADE", nullable: false }),
31
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false }),
31
32
  (0, typeorm_1.JoinColumn)(),
32
33
  __metadata("design:type", user_entity_1.User)
33
34
  ], AiInteraction.prototype, "user", void 0);
@@ -66,16 +67,16 @@ __decorate([
66
67
  __metadata("design:type", Number)
67
68
  ], AiInteraction.prototype, "responseTimeMs", void 0);
68
69
  __decorate([
69
- (0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
70
+ (0, typeorm_1.Column)({ type: "simple-json", nullable: true }),
70
71
  __metadata("design:type", Object)
71
72
  ], AiInteraction.prototype, "metadata", void 0);
72
73
  __decorate([
73
- (0, typeorm_1.Column)({ type: "boolean", nullable: true, default: false }),
74
+ (0, typeorm_1.Column)({ nullable: true, default: false }),
74
75
  __metadata("design:type", Boolean)
75
76
  ], AiInteraction.prototype, "isApplied", void 0);
76
77
  __decorate([
77
78
  (0, typeorm_1.Index)(),
78
- (0, typeorm_1.ManyToOne)(() => AiInteraction, { onDelete: "SET NULL", nullable: true }),
79
+ (0, typeorm_1.ManyToOne)(() => AiInteraction, { nullable: true }),
79
80
  (0, typeorm_1.JoinColumn)(),
80
81
  __metadata("design:type", AiInteraction)
81
82
  ], AiInteraction.prototype, "parentInteraction", void 0);
@@ -85,7 +86,7 @@ __decorate([
85
86
  __metadata("design:type", String)
86
87
  ], AiInteraction.prototype, "externalId", void 0);
87
88
  __decorate([
88
- (0, typeorm_1.Column)({ type: "boolean", nullable: true, default: false }),
89
+ (0, typeorm_1.Column)({ nullable: true, default: false }),
89
90
  __metadata("design:type", Boolean)
90
91
  ], AiInteraction.prototype, "isAutoApply", void 0);
91
92
  __decorate([
@@ -100,6 +101,14 @@ __decorate([
100
101
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
101
102
  __metadata("design:type", Number)
102
103
  ], AiInteraction.prototype, "totalTokens", void 0);
104
+ __decorate([
105
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
106
+ __metadata("design:type", String)
107
+ ], AiInteraction.prototype, "originalMessage", void 0);
108
+ __decorate([
109
+ (0, typeorm_1.Column)({ nullable: true, default: false }),
110
+ __metadata("design:type", Boolean)
111
+ ], AiInteraction.prototype, "isEdited", void 0);
103
112
  exports.AiInteraction = AiInteraction = __decorate([
104
113
  (0, typeorm_1.Entity)("ss_ai_interactions")
105
114
  ], AiInteraction);
@@ -1 +1 @@
1
- {"version":3,"file":"ai-interaction.entity.js","sourceRoot":"","sources":["../../src/entities/ai-interaction.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAqE;AACrE,+CAA+C;AAGxC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAY;IAAxC;;QA0BH,cAAS,GAAY,KAAK,CAAC;QAS3B,gBAAW,GAAY,KAAK,CAAC;KAUhC;;0lBAnBwB,KAAK,0NASH,KAAK;;CAU/B,CAAA;AA7CY,sCAAa;AAItB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/D,IAAA,oBAAU,GAAE;8BACP,kBAAI;2CAAC;AAGX;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;+CACX;AAEjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2CACf;AAEb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACT;AAEhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxB;AAGpB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC7B;AAEf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACpB;AAErB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C;GAChB,aAAa,CA6CzB","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, { onDelete: \"CASCADE\", nullable: false })\n @JoinColumn()\n user: User;\n @Index()\n @Column({ type: \"varchar\" })\n threadId: string;\n @Column({ type: \"varchar\" })\n role: string;\n @Column({ type: \"text\" })\n message: string;\n @Column({ type: \"varchar\", nullable: true })\n contentType: string;\n @Index()\n @Column({ type: \"varchar\", nullable: true })\n status: string;\n @Column({ type: \"text\", nullable: true })\n errorMessage: string;\n @Column({ type: \"varchar\", nullable: true })\n modelUsed: string;\n @Column({ type: \"integer\", nullable: true })\n responseTimeMs: number;\n @Column({ type: \"jsonb\", nullable: true })\n metadata: any;\n @Column({ type: \"boolean\", nullable: true, default: false })\n isApplied: boolean = false;\n @Index()\n @ManyToOne(() => AiInteraction, { onDelete: \"SET NULL\", nullable: true })\n @JoinColumn()\n parentInteraction: AiInteraction;\n @Index({ unique: true })\n @Column({ type: \"varchar\" })\n externalId: string;\n @Column({ type: \"boolean\", nullable: true, default: false })\n isAutoApply: boolean = false;\n\n@Column({ type: \"integer\", nullable: true })\ninputTokens: number;\n\n@Column({ type: \"integer\", nullable: true })\noutputTokens: number;\n\n@Column({ type: \"integer\", nullable: true })\ntotalTokens: number;\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;AAGxC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAY;IAAxC;;QA0BH,cAAS,GAAY,KAAK,CAAC;QAS3B,gBAAW,GAAY,KAAK,CAAC;QAa7B,aAAQ,GAAY,KAAK,CAAC;KAC7B;;0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,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAClD,IAAA,oBAAU,GAAE;8BACM,aAAa;wDAAC;AAGjC;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;iDACT;AAEnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;kDACd;AAG7B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACvB;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxB;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACjB;AAExB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CACjB;wBAhDjB,aAAa;IADzB,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,aAAa,CAiDzB","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: false })\n @JoinColumn()\n user: User;\n @Index()\n @Column({ type: \"varchar\" })\n threadId: string;\n @Column({ type: \"varchar\" })\n role: string;\n @Column({ type: \"text\" })\n message: string;\n @Column({ type: \"varchar\", nullable: true })\n contentType: string;\n @Index()\n @Column({ type: \"varchar\", nullable: true })\n status: string;\n @Column({ type: \"text\", nullable: true })\n errorMessage: string;\n @Column({ type: \"varchar\", nullable: true })\n modelUsed: string;\n @Column({ type: \"integer\", nullable: true })\n responseTimeMs: number;\n @Column({ type: \"simple-json\", nullable: true })\n metadata: any;\n @Column({ nullable: true, default: false })\n isApplied: boolean = false;\n @Index()\n @ManyToOne(() => AiInteraction, { nullable: true })\n @JoinColumn()\n parentInteraction: AiInteraction;\n @Index({ unique: true })\n @Column({ type: \"varchar\" })\n externalId: string;\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 @Column({ type: \"text\", nullable: true })\n originalMessage: string;\n @Column({ nullable: true, default: false })\n isEdited: boolean = false;\n}"]}
@@ -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;IAGvD,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;CACxB"}
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;IAGnD,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"}
@@ -21,7 +21,7 @@ let ChatterMessageDetails = class ChatterMessageDetails extends common_entity_1.
21
21
  };
22
22
  exports.ChatterMessageDetails = ChatterMessageDetails;
23
23
  __decorate([
24
- (0, typeorm_1.ManyToOne)(() => chatter_message_entity_1.ChatterMessage, { onDelete: "CASCADE", nullable: true }),
24
+ (0, typeorm_1.ManyToOne)(() => chatter_message_entity_1.ChatterMessage, { nullable: true }),
25
25
  (0, typeorm_1.JoinColumn)(),
26
26
  __metadata("design:type", chatter_message_entity_1.ChatterMessage)
27
27
  ], ChatterMessageDetails.prototype, "chatterMessage", void 0);
@@ -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,qCAAqE;AACrE,qEAAoE;AAE7D,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,4BAAY;;;;CAuBtD,CAAA;AAvBY,sDAAqB;AAGlC;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxE,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;gCAtBZ,qBAAqB;IADjC,IAAA,gBAAM,EAAC,4BAA4B,CAAC;GACxB,qBAAqB,CAuBjC","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@ManyToOne(() => ChatterMessage, { onDelete: \"CASCADE\", nullable: true })\n@JoinColumn()\nchatterMessage: ChatterMessage;\n\n@Column({ type: \"text\", nullable: true })\noldValue: string;\n\n@Column({ type: \"text\", nullable: true })\nnewValue: string;\n\n@Column({ type: \"varchar\", nullable: true })\noldValueDisplay: string;\n\n@Index()\n@Column({ type: \"varchar\", nullable: true })\nnewValueDisplay: string;\n\n@Column({ type: \"varchar\" })\nfieldName: string;\n\n@Column({ type: \"text\", nullable: true })\nfieldDisplayName: 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;AAE7D,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,4BAAY;;;;CAuBtD,CAAA;AAvBY,sDAAqB;AAG9B;IAFC,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;gCAtBhB,qBAAqB;IADjC,IAAA,gBAAM,EAAC,4BAA4B,CAAC;GACxB,qBAAqB,CAuBjC","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 @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}"]}
@@ -44,7 +44,7 @@ __decorate([
44
44
  __metadata("design:type", String)
45
45
  ], ChatterMessage.prototype, "coModelName", void 0);
46
46
  __decorate([
47
- (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: "CASCADE", nullable: true }),
47
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true }),
48
48
  (0, typeorm_1.JoinColumn)(),
49
49
  __metadata("design:type", user_entity_1.User)
50
50
  ], ChatterMessage.prototype, "user", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"chatter-message.entity.js","sourceRoot":"","sources":["../../src/entities/chatter-message.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAgF;AAChF,+CAA+C;AAC/C,qFAAyE;AAGlE,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAY;;;;CAsB/C,CAAA;AAtBY,wCAAc;AAGvB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACR;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sDACL;AAEvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACrB;AAGpB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;uDACJ;AAExB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACR;AAGpB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9D,IAAA,oBAAU,GAAE;8BACP,kBAAI;4CAAC;AAEX;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;AAE/C;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDAChB;AAEzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACpB;yBArBZ,cAAc;IAD1B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,cAAc,CAsB1B","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@Entity(\"ss_chatter_message\")\nexport class ChatterMessage extends CommonEntity {\n @Index()\n @Column({ type: \"varchar\" })\n messageType: string; // audit | custom \n @Column({ type: \"varchar\" })\n messageSubType: string; // audit_update | audit_insert | audit_delete | custom\n @Column({ type: \"text\", nullable: true })\n messageBody: string;\n @Index()\n @Column({ type: \"integer\" })\n coModelEntityId: number;\n @Column({ type: \"varchar\" })\n coModelName: string;\n @ManyToOne(() => User, { onDelete: \"CASCADE\", nullable: true })\n @JoinColumn()\n user: User;\n @OneToMany(() => ChatterMessageDetails, (chatterMessageDetails) => chatterMessageDetails.chatterMessage, { cascade: true })\n chatterMessageDetails: ChatterMessageDetails[];\n @Column({ type: \"text\", nullable: true })\n modelDisplayName: string;\n @Column({ type: \"text\", nullable: true })\n modelUserKey: string;\n}"]}
1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BAAM,EAAC,oBAAoB,CAAC;GAChB,cAAc,CAsB1B","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@Entity(\"ss_chatter_message\")\nexport class ChatterMessage extends CommonEntity {\n @Index()\n @Column({ type: \"varchar\" })\n messageType: string; // audit | custom \n @Column({ type: \"varchar\" })\n messageSubType: string; // audit_update | audit_insert | audit_delete | custom\n @Column({ type: \"text\", nullable: true })\n messageBody: string;\n @Index()\n @Column({ type: \"integer\" })\n coModelEntityId: number;\n @Column({ type: \"varchar\" })\n coModelName: string;\n @ManyToOne(() => User, { nullable: true })\n @JoinColumn()\n user: User;\n @OneToMany(() => ChatterMessageDetails, (chatterMessageDetails) => chatterMessageDetails.chatterMessage, { cascade: true })\n chatterMessageDetails: ChatterMessageDetails[];\n @Column({ type: \"text\", nullable: true })\n modelDisplayName: string;\n @Column({ type: \"text\", nullable: true })\n modelUserKey: string;\n}"]}
@@ -1,4 +1,3 @@
1
- import type { User } from "./user.entity";
2
1
  export declare abstract class CommonEntity {
3
2
  id: number;
4
3
  createdAt: Date;
@@ -8,7 +7,7 @@ export declare abstract class CommonEntity {
8
7
  publishedAt: Date;
9
8
  localeName: string;
10
9
  defaultEntityLocaleId: number;
11
- createdBy: User;
12
- updatedBy: User;
10
+ createdBy: number;
11
+ updatedBy: number;
13
12
  }
14
13
  //# sourceMappingURL=common.entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.entity.d.ts","sourceRoot":"","sources":["../../src/entities/common.entity.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAG1C,8BACsB,YAAY;IAG9B,EAAE,EAAE,MAAM,CAAA;IAGV,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,cAAc,EAAE,MAAM,CAAC;IAIvB,WAAW,EAAE,IAAI,CAAC;IAIlB,UAAU,EAAE,MAAM,CAAC;IAInB,qBAAqB,EAAE,MAAM,CAAC;IAK9B,SAAS,EAAE,IAAI,CAAC;IAKhB,SAAS,EAAE,IAAI,CAAC;CACnB"}
1
+ {"version":3,"file":"common.entity.d.ts","sourceRoot":"","sources":["../../src/entities/common.entity.ts"],"names":[],"mappings":"AAIA,8BACsB,YAAY;IAG9B,EAAE,EAAE,MAAM,CAAA;IAGV,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,cAAc,EAAE,MAAM,CAAC;IAIvB,WAAW,EAAE,IAAI,CAAC;IAIlB,UAAU,EAAE,MAAM,CAAC;IAInB,qBAAqB,EAAE,MAAM,CAAC;IAc9B,SAAS,EAAE,MAAM,CAAC;IAIlB,SAAS,EAAE,MAAM,CAAC;CAErB"}
@@ -15,7 +15,7 @@ const typeorm_1 = require("typeorm");
15
15
  const class_transformer_1 = require("class-transformer");
16
16
  let CommonEntity = class CommonEntity {
17
17
  static _OPENAPI_METADATA_FACTORY() {
18
- 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: () => require("./user.entity").User }, updatedBy: { required: true, type: () => require("./user.entity").User } };
18
+ 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 } };
19
19
  }
20
20
  };
21
21
  exports.CommonEntity = CommonEntity;
@@ -25,15 +25,15 @@ __decorate([
25
25
  __metadata("design:type", Number)
26
26
  ], CommonEntity.prototype, "id", void 0);
27
27
  __decorate([
28
- (0, typeorm_1.CreateDateColumn)({ type: "timestamp", name: "created_at" }),
28
+ (0, typeorm_1.CreateDateColumn)({ name: "created_at" }),
29
29
  __metadata("design:type", Date)
30
30
  ], CommonEntity.prototype, "createdAt", void 0);
31
31
  __decorate([
32
- (0, typeorm_1.UpdateDateColumn)({ type: "timestamp", name: "updated_at" }),
32
+ (0, typeorm_1.UpdateDateColumn)({ name: "updated_at" }),
33
33
  __metadata("design:type", Date)
34
34
  ], CommonEntity.prototype, "updatedAt", void 0);
35
35
  __decorate([
36
- (0, typeorm_1.DeleteDateColumn)({ type: "timestamp", name: "deleted_at" }),
36
+ (0, typeorm_1.DeleteDateColumn)({ name: "deleted_at" }),
37
37
  __metadata("design:type", Date)
38
38
  ], CommonEntity.prototype, "deletedAt", void 0);
39
39
  __decorate([
@@ -42,7 +42,7 @@ __decorate([
42
42
  ], CommonEntity.prototype, "deletedTracker", void 0);
43
43
  __decorate([
44
44
  (0, class_transformer_1.Expose)(),
45
- (0, typeorm_1.Column)({ type: "timestamp", name: 'published_at', default: null, nullable: true }),
45
+ (0, typeorm_1.Column)({ name: 'published_at', default: null, nullable: true }),
46
46
  __metadata("design:type", Date)
47
47
  ], CommonEntity.prototype, "publishedAt", void 0);
48
48
  __decorate([
@@ -57,15 +57,13 @@ __decorate([
57
57
  ], CommonEntity.prototype, "defaultEntityLocaleId", void 0);
58
58
  __decorate([
59
59
  (0, class_transformer_1.Expose)(),
60
- (0, class_transformer_1.Type)(() => require('./user.entity').User?.default ?? require('./user.entity').User),
61
- (0, typeorm_1.ManyToOne)(() => require('./user.entity').User?.default ?? require('./user.entity').User, { onDelete: 'SET NULL', nullable: true }),
62
- __metadata("design:type", Function)
60
+ (0, typeorm_1.Column)({ name: `created_by_id`, nullable: true }),
61
+ __metadata("design:type", Number)
63
62
  ], CommonEntity.prototype, "createdBy", void 0);
64
63
  __decorate([
65
64
  (0, class_transformer_1.Expose)(),
66
- (0, class_transformer_1.Type)(() => require('./user.entity').User?.default ?? require('./user.entity').User),
67
- (0, typeorm_1.ManyToOne)(() => require('./user.entity').User?.default ?? require('./user.entity').User, { onDelete: 'SET NULL', nullable: true }),
68
- __metadata("design:type", Function)
65
+ (0, typeorm_1.Column)({ name: `updated_by_id`, nullable: true }),
66
+ __metadata("design:type", Number)
69
67
  ], CommonEntity.prototype, "updatedBy", void 0);
70
68
  exports.CommonEntity = CommonEntity = __decorate([
71
69
  (0, class_transformer_1.Exclude)()
@@ -1 +1 @@
1
- {"version":3,"file":"common.entity.js","sourceRoot":"","sources":["../../src/entities/common.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA0H;AAE1H,yDAA0D;AAGnD,IAAe,YAAY,GAA3B,MAAe,YAAY;;;;CAsCjC,CAAA;AAtCqB,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,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACjD,IAAI;+CAAC;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACjD,IAAI;+CAAC;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACjD,IAAI;+CAAC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;;oDACpC;AAIvB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAA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AE;GACY,YAAY,CAsCjC","sourcesContent":["import { Column, CreateDateColumn, DeleteDateColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from \"typeorm\";\nimport type { User } from \"./user.entity\";\nimport { Exclude, Expose, Type } from \"class-transformer\";\n\n@Exclude()\nexport abstract class CommonEntity {\n @Expose()\n @PrimaryGeneratedColumn({ type: 'integer' })\n id: number\n\n @CreateDateColumn({ type: \"timestamp\", name: \"created_at\" })\n createdAt: Date;\n\n @UpdateDateColumn({ type: \"timestamp\", name: \"updated_at\" })\n updatedAt: Date;\n\n @DeleteDateColumn({ type: \"timestamp\", name: \"deleted_at\" })\n deletedAt: Date;\n\n @Column({ name: \"deletedTracker\", default: \"not-deleted\" })\n deletedTracker: string;\n\n @Expose()\n @Column({ type: \"timestamp\", name: 'published_at', default: null ,nullable: true})\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, { onDelete: 'SET NULL', 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, { onDelete: 'SET NULL', nullable: true })\n updatedBy: User; \n}\n"]}
1
+ {"version":3,"file":"common.entity.js","sourceRoot":"","sources":["../../src/entities/common.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA0H;AAE1H,yDAA0D;AAGnD,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,IA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\"./user.entity\";\nimport { Exclude, Expose, Type } from \"class-transformer\";\n\n@Exclude()\nexport abstract class CommonEntity {\n @Expose()\n @PrimaryGeneratedColumn({ type: 'integer' })\n id: number\n\n @CreateDateColumn({ name: \"created_at\" })\n createdAt: Date;\n\n @UpdateDateColumn({ name: \"updated_at\" })\n updatedAt: Date;\n\n @DeleteDateColumn({ name: \"deleted_at\" })\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 })\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}\n"]}
@@ -46,7 +46,7 @@ __decorate([
46
46
  __metadata("design:type", String)
47
47
  ], DashboardQuestionSqlDatasetConfig.prototype, "valueColumnName", void 0);
48
48
  __decorate([
49
- (0, typeorm_1.ManyToOne)(() => dashboard_question_entity_1.DashboardQuestion, { onDelete: "CASCADE", nullable: false }),
49
+ (0, typeorm_1.ManyToOne)(() => dashboard_question_entity_1.DashboardQuestion, { nullable: false }),
50
50
  (0, typeorm_1.JoinColumn)(),
51
51
  __metadata("design:type", dashboard_question_entity_1.DashboardQuestion)
52
52
  ], DashboardQuestionSqlDatasetConfig.prototype, "question", void 0);
@@ -56,7 +56,7 @@ __decorate([
56
56
  ], DashboardQuestionSqlDatasetConfig.prototype, "options", void 0);
57
57
  __decorate([
58
58
  (0, typeorm_1.Index)({ unique: true }),
59
- (0, typeorm_1.Column)({ type: "varchar", nullable: true }),
59
+ (0, typeorm_1.Column)({ type: "varchar", nullable: false }),
60
60
  __metadata("design:type", String)
61
61
  ], DashboardQuestionSqlDatasetConfig.prototype, "externalId", void 0);
62
62
  exports.DashboardQuestionSqlDatasetConfig = DashboardQuestionSqlDatasetConfig = __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;;;;CAsBlE,CAAA;AAtBY,8EAAiC;AAG1C;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sEACR;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;6EACD;AAE3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACrB;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8DACb;AAEZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0EACJ;AAExB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0EACJ;AAGxB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAiB,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC5E,IAAA,oBAAU,GAAE;8BACH,6CAAiB;mEAAC;AAE5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEAC5B;AAGb;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACzB;4CArBV,iCAAiC;IAD7C,IAAA,gBAAM,EAAC,0CAA0C,CAAC;GACtC,iCAAiC,CAsB7C","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 @Column({ type: \"varchar\" })\n datasetDisplayName: string;\n @Column({ type: \"text\", nullable: true })\n description: string;\n @Column({ type: \"text\" })\n sql: string;\n @Column({ type: \"varchar\" })\n labelColumnName: string;\n @Column({ type: \"varchar\" })\n valueColumnName: string;\n @ManyToOne(() => DashboardQuestion, { onDelete: \"CASCADE\", nullable: false })\n @JoinColumn()\n question: DashboardQuestion;\n @Column({ type: \"text\", nullable: true })\n options: any;\n @Index({ unique: true })\n @Column({ type: \"varchar\", nullable: true })\n externalId: string;\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;AAGnE,IAAM,iCAAiC,GAAvC,MAAM,iCAAkC,SAAQ,4BAAY;;;;CAsBlE,CAAA;AAtBY,8EAAiC;AAG1C;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sEACR;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;6EACD;AAE3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACrB;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8DACb;AAEZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0EACJ;AAExB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0EACJ;AAGxB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAiB,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACvD,IAAA,oBAAU,GAAE;8BACH,6CAAiB;mEAAC;AAE5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEAC5B;AAGb;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;4CArBV,iCAAiC;IAD7C,IAAA,gBAAM,EAAC,0CAA0C,CAAC;GACtC,iCAAiC,CAsB7C","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 @Column({ type: \"varchar\" })\n datasetDisplayName: string;\n @Column({ type: \"text\", nullable: true })\n description: string;\n @Column({ type: \"text\" })\n sql: string;\n @Column({ type: \"varchar\" })\n labelColumnName: string;\n @Column({ type: \"varchar\" })\n valueColumnName: string;\n @ManyToOne(() => DashboardQuestion, { nullable: false })\n @JoinColumn()\n question: DashboardQuestion;\n @Column({ type: \"text\", nullable: true })\n options: any;\n @Index({ unique: true })\n @Column({ type: \"varchar\", nullable: false })\n externalId: string;\n}"]}
@@ -41,7 +41,7 @@ __decorate([
41
41
  __metadata("design:type", String)
42
42
  ], DashboardQuestion.prototype, "providerName", void 0);
43
43
  __decorate([
44
- (0, typeorm_1.ManyToOne)(() => dashboard_entity_1.Dashboard, { onDelete: "CASCADE", nullable: true }),
44
+ (0, typeorm_1.ManyToOne)(() => dashboard_entity_1.Dashboard, { nullable: true }),
45
45
  (0, typeorm_1.JoinColumn)(),
46
46
  __metadata("design:type", dashboard_entity_1.Dashboard)
47
47
  ], DashboardQuestion.prototype, "dashboard", void 0);
@@ -50,7 +50,7 @@ __decorate([
50
50
  __metadata("design:type", Array)
51
51
  ], DashboardQuestion.prototype, "questionSqlDatasetConfigs", void 0);
52
52
  __decorate([
53
- (0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
53
+ (0, typeorm_1.Column)({ type: "simple-json", nullable: true }),
54
54
  __metadata("design:type", Object)
55
55
  ], DashboardQuestion.prototype, "chartOptions", void 0);
56
56
  __decorate([
@@ -67,7 +67,7 @@ __decorate([
67
67
  ], DashboardQuestion.prototype, "sequenceNumber", void 0);
68
68
  __decorate([
69
69
  (0, typeorm_1.Index)({ unique: true }),
70
- (0, typeorm_1.Column)({ type: "varchar", nullable: true }),
70
+ (0, typeorm_1.Column)({ type: "varchar", nullable: false }),
71
71
  __metadata("design:type", String)
72
72
  ], DashboardQuestion.prototype, "externalId", void 0);
73
73
  exports.DashboardQuestion = DashboardQuestion = __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;;;;CA4BlD,CAAA;AA5BY,8CAAiB;AAG1B;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;+CACf;AAGb;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,CAAC;;qDACQ;AAGnB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,CAAC;;uDACU;AAErB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACvB;AAGrB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4BAAS,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACnE,IAAA,oBAAU,GAAE;8BACF,4BAAS;oDAAC;AAErB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gFAAiC,EAAE,iCAAiC,CAAC,EAAE,CAAC,iCAAiC,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oEACxF;AAE/D;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACxB;AAElB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACxB;AAEjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC1B;AAEf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACrB;AAGvB;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACzB;4BA3BV,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,uBAAuB,CAAC;GACnB,iBAAiB,CA4B7B","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 @Index()\n @Column({})\n sourceType: string;\n @Index()\n @Column({})\n visualisedAs: string;\n @Column({ type: \"varchar\", nullable: true })\n providerName: string;\n @ManyToOne(() => Dashboard, { onDelete: \"CASCADE\", nullable: true })\n @JoinColumn()\n dashboard: Dashboard;\n @OneToMany(() => DashboardQuestionSqlDatasetConfig, dashboardQuestionSqlDatasetConfig => dashboardQuestionSqlDatasetConfig.question, { cascade: true })\n questionSqlDatasetConfigs: DashboardQuestionSqlDatasetConfig[];\n @Column({ type: \"jsonb\", nullable: true })\n chartOptions: any;\n @Column({ type: \"text\", nullable: true })\n labelSql: string;\n @Column({ type: \"text\", nullable: true })\n kpiSql: string;\n @Column({ type: \"integer\", nullable: true })\n sequenceNumber: number;\n @Index({ unique: true })\n @Column({ type: \"varchar\", nullable: true })\n externalId: string;\n}"]}
1
+ {"version":3,"file":"dashboard-question.entity.js","sourceRoot":"","sources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C,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACrB;AAGvB;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;qDAC1B;4BA3BV,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,uBAAuB,CAAC;GACnB,iBAAiB,CA4B7B","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 @Index()\n @Column({})\n sourceType: string;\n @Index()\n @Column({})\n visualisedAs: string;\n @Column({ type: \"varchar\", nullable: true })\n providerName: string;\n @ManyToOne(() => Dashboard, { nullable: true })\n @JoinColumn()\n dashboard: Dashboard;\n @OneToMany(() => DashboardQuestionSqlDatasetConfig, dashboardQuestionSqlDatasetConfig => dashboardQuestionSqlDatasetConfig.question, { cascade: true })\n questionSqlDatasetConfigs: DashboardQuestionSqlDatasetConfig[];\n @Column({ type: \"simple-json\", nullable: true })\n chartOptions: any;\n @Column({ type: \"text\", nullable: true })\n labelSql: string;\n @Column({ type: \"text\", nullable: true })\n kpiSql: string;\n @Column({ type: \"integer\", nullable: true })\n sequenceNumber: number;\n @Index({ unique: true })\n @Column({ type: \"varchar\", nullable: false })\n externalId: string;\n}"]}