@carlonicora/nestjs-neo4jsonapi 1.115.0 → 1.116.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/dist/bootstrap/app.module.factory.d.ts.map +1 -1
  2. package/dist/bootstrap/app.module.factory.js +1 -0
  3. package/dist/bootstrap/app.module.factory.js.map +1 -1
  4. package/dist/bootstrap/bootstrap.options.d.ts +17 -0
  5. package/dist/bootstrap/bootstrap.options.d.ts.map +1 -1
  6. package/dist/common/guards/jwt.auth.guard.d.ts +3 -2
  7. package/dist/common/guards/jwt.auth.guard.d.ts.map +1 -1
  8. package/dist/common/guards/jwt.auth.guard.js +7 -2
  9. package/dist/common/guards/jwt.auth.guard.js.map +1 -1
  10. package/dist/common/interfaces/entity.schema.interface.d.ts +2 -0
  11. package/dist/common/interfaces/entity.schema.interface.d.ts.map +1 -1
  12. package/dist/common/tokens.d.ts +64 -0
  13. package/dist/common/tokens.d.ts.map +1 -1
  14. package/dist/common/tokens.js +37 -2
  15. package/dist/common/tokens.js.map +1 -1
  16. package/dist/config/base.config.d.ts.map +1 -1
  17. package/dist/config/base.config.js +1 -0
  18. package/dist/config/base.config.js.map +1 -1
  19. package/dist/config/enums/queue.id.d.ts +2 -1
  20. package/dist/config/enums/queue.id.d.ts.map +1 -1
  21. package/dist/config/enums/queue.id.js +1 -0
  22. package/dist/config/enums/queue.id.js.map +1 -1
  23. package/dist/config/interfaces/config.auth.interface.d.ts +7 -0
  24. package/dist/config/interfaces/config.auth.interface.d.ts.map +1 -1
  25. package/dist/config/interfaces/config.email.interface.d.ts +6 -0
  26. package/dist/config/interfaces/config.email.interface.d.ts.map +1 -1
  27. package/dist/core/email/services/email.service.d.ts +1 -0
  28. package/dist/core/email/services/email.service.d.ts.map +1 -1
  29. package/dist/core/email/services/email.service.js +22 -18
  30. package/dist/core/email/services/email.service.js.map +1 -1
  31. package/dist/core/llm/services/llm.service.d.ts +9 -1
  32. package/dist/core/llm/services/llm.service.d.ts.map +1 -1
  33. package/dist/core/llm/services/llm.service.js +13 -3
  34. package/dist/core/llm/services/llm.service.js.map +1 -1
  35. package/dist/core/neo4j/abstracts/abstract.repository.d.ts.map +1 -1
  36. package/dist/core/neo4j/abstracts/abstract.repository.js +33 -2
  37. package/dist/core/neo4j/abstracts/abstract.repository.js.map +1 -1
  38. package/dist/foundations/auth/auth.module.d.ts.map +1 -1
  39. package/dist/foundations/auth/auth.module.js +9 -10
  40. package/dist/foundations/auth/auth.module.js.map +1 -1
  41. package/dist/foundations/auth/controllers/auth.controller.d.ts.map +1 -1
  42. package/dist/foundations/auth/controllers/auth.controller.js +5 -0
  43. package/dist/foundations/auth/controllers/auth.controller.js.map +1 -1
  44. package/dist/foundations/auth/controllers/auth.discord.controller.d.ts.map +1 -1
  45. package/dist/foundations/auth/controllers/auth.discord.controller.js +6 -3
  46. package/dist/foundations/auth/controllers/auth.discord.controller.js.map +1 -1
  47. package/dist/foundations/auth/controllers/auth.google.controller.d.ts.map +1 -1
  48. package/dist/foundations/auth/controllers/auth.google.controller.js +7 -3
  49. package/dist/foundations/auth/controllers/auth.google.controller.js.map +1 -1
  50. package/dist/foundations/auth/entities/auth.code.d.ts +34 -0
  51. package/dist/foundations/auth/entities/auth.code.d.ts.map +1 -0
  52. package/dist/foundations/auth/entities/auth.code.js +53 -0
  53. package/dist/foundations/auth/entities/auth.code.js.map +1 -0
  54. package/dist/foundations/auth/entities/auth.d.ts +41 -0
  55. package/dist/foundations/auth/entities/auth.d.ts.map +1 -0
  56. package/dist/foundations/auth/entities/auth.js +68 -0
  57. package/dist/foundations/auth/entities/auth.js.map +1 -0
  58. package/dist/foundations/auth/entities/pending-auth.d.ts +39 -0
  59. package/dist/foundations/auth/entities/pending-auth.d.ts.map +1 -0
  60. package/dist/foundations/auth/entities/pending-auth.js +41 -0
  61. package/dist/foundations/auth/entities/pending-auth.js.map +1 -0
  62. package/dist/foundations/auth/index.d.ts +13 -0
  63. package/dist/foundations/auth/index.d.ts.map +1 -1
  64. package/dist/foundations/auth/index.js +31 -1
  65. package/dist/foundations/auth/index.js.map +1 -1
  66. package/dist/foundations/auth/repositories/auth.repository.d.ts +49 -9
  67. package/dist/foundations/auth/repositories/auth.repository.d.ts.map +1 -1
  68. package/dist/foundations/auth/repositories/auth.repository.js +115 -63
  69. package/dist/foundations/auth/repositories/auth.repository.js.map +1 -1
  70. package/dist/foundations/auth/services/auth.discord.service.d.ts +1 -1
  71. package/dist/foundations/auth/services/auth.discord.service.d.ts.map +1 -1
  72. package/dist/foundations/auth/services/auth.discord.service.js +5 -2
  73. package/dist/foundations/auth/services/auth.discord.service.js.map +1 -1
  74. package/dist/foundations/auth/services/auth.google.service.d.ts +1 -1
  75. package/dist/foundations/auth/services/auth.google.service.d.ts.map +1 -1
  76. package/dist/foundations/auth/services/auth.google.service.js +6 -2
  77. package/dist/foundations/auth/services/auth.google.service.js.map +1 -1
  78. package/dist/foundations/auth/services/auth.service.d.ts +42 -7
  79. package/dist/foundations/auth/services/auth.service.d.ts.map +1 -1
  80. package/dist/foundations/auth/services/auth.service.js +140 -77
  81. package/dist/foundations/auth/services/auth.service.js.map +1 -1
  82. package/dist/foundations/company/entities/company.d.ts +1 -1
  83. package/dist/foundations/company/entities/company.d.ts.map +1 -1
  84. package/dist/foundations/company/entities/company.js +15 -1
  85. package/dist/foundations/company/entities/company.js.map +1 -1
  86. package/dist/foundations/company/index.d.ts +5 -0
  87. package/dist/foundations/company/index.d.ts.map +1 -1
  88. package/dist/foundations/company/index.js +16 -1
  89. package/dist/foundations/company/index.js.map +1 -1
  90. package/dist/foundations/company/processors/company.processor.js +1 -1
  91. package/dist/foundations/company/processors/company.processor.js.map +1 -1
  92. package/dist/foundations/company/repositories/company.repository.d.ts +65 -9
  93. package/dist/foundations/company/repositories/company.repository.d.ts.map +1 -1
  94. package/dist/foundations/company/repositories/company.repository.js +59 -18
  95. package/dist/foundations/company/repositories/company.repository.js.map +1 -1
  96. package/dist/foundations/company/services/company.service.d.ts +44 -4
  97. package/dist/foundations/company/services/company.service.d.ts.map +1 -1
  98. package/dist/foundations/company/services/company.service.js +33 -7
  99. package/dist/foundations/company/services/company.service.js.map +1 -1
  100. package/dist/foundations/content/content.module.d.ts +20 -8
  101. package/dist/foundations/content/content.module.d.ts.map +1 -1
  102. package/dist/foundations/content/content.module.js +40 -24
  103. package/dist/foundations/content/content.module.js.map +1 -1
  104. package/dist/foundations/content/controllers/content.controller.d.ts +1 -1
  105. package/dist/foundations/content/controllers/content.controller.d.ts.map +1 -1
  106. package/dist/foundations/content/controllers/content.controller.js +2 -2
  107. package/dist/foundations/content/controllers/content.controller.js.map +1 -1
  108. package/dist/foundations/content/entities/content.d.ts +74 -0
  109. package/dist/foundations/content/entities/content.d.ts.map +1 -0
  110. package/dist/foundations/content/entities/content.js +141 -0
  111. package/dist/foundations/content/entities/content.js.map +1 -0
  112. package/dist/foundations/content/index.d.ts +2 -4
  113. package/dist/foundations/content/index.d.ts.map +1 -1
  114. package/dist/foundations/content/index.js +6 -5
  115. package/dist/foundations/content/index.js.map +1 -1
  116. package/dist/foundations/content/interfaces/content.extension.interface.d.ts +126 -0
  117. package/dist/foundations/content/interfaces/content.extension.interface.d.ts.map +1 -1
  118. package/dist/foundations/content/interfaces/content.extension.interface.js +7 -1
  119. package/dist/foundations/content/interfaces/content.extension.interface.js.map +1 -1
  120. package/dist/foundations/content/repositories/content.repository.d.ts +14 -7
  121. package/dist/foundations/content/repositories/content.repository.d.ts.map +1 -1
  122. package/dist/foundations/content/repositories/content.repository.js +18 -16
  123. package/dist/foundations/content/repositories/content.repository.js.map +1 -1
  124. package/dist/foundations/content/services/content.cypher.service.d.ts +19 -0
  125. package/dist/foundations/content/services/content.cypher.service.d.ts.map +1 -1
  126. package/dist/foundations/content/services/content.cypher.service.js +65 -4
  127. package/dist/foundations/content/services/content.cypher.service.js.map +1 -1
  128. package/dist/foundations/content/services/content.service.js +4 -4
  129. package/dist/foundations/content/services/content.service.js.map +1 -1
  130. package/dist/foundations/discord-user/services/discord-user.service.js +2 -2
  131. package/dist/foundations/discord-user/services/discord-user.service.js.map +1 -1
  132. package/dist/foundations/feature/entities/feature.d.ts +32 -0
  133. package/dist/foundations/feature/entities/feature.d.ts.map +1 -0
  134. package/dist/foundations/feature/entities/feature.js +64 -0
  135. package/dist/foundations/feature/entities/feature.js.map +1 -0
  136. package/dist/foundations/feature/entities/feature.model.d.ts +1 -3
  137. package/dist/foundations/feature/entities/feature.model.d.ts.map +1 -1
  138. package/dist/foundations/feature/entities/feature.model.js +3 -11
  139. package/dist/foundations/feature/entities/feature.model.js.map +1 -1
  140. package/dist/foundations/feature/feature.module.d.ts.map +1 -1
  141. package/dist/foundations/feature/feature.module.js +4 -5
  142. package/dist/foundations/feature/feature.module.js.map +1 -1
  143. package/dist/foundations/feature/index.d.ts +12 -0
  144. package/dist/foundations/feature/index.d.ts.map +1 -1
  145. package/dist/foundations/feature/index.js +22 -1
  146. package/dist/foundations/feature/index.js.map +1 -1
  147. package/dist/foundations/feature/repositories/feature.repository.d.ts +37 -13
  148. package/dist/foundations/feature/repositories/feature.repository.d.ts.map +1 -1
  149. package/dist/foundations/feature/repositories/feature.repository.js +41 -35
  150. package/dist/foundations/feature/repositories/feature.repository.js.map +1 -1
  151. package/dist/foundations/feature/services/feature.service.d.ts +31 -4
  152. package/dist/foundations/feature/services/feature.service.d.ts.map +1 -1
  153. package/dist/foundations/feature/services/feature.service.js +20 -12
  154. package/dist/foundations/feature/services/feature.service.js.map +1 -1
  155. package/dist/foundations/foundations.modules.d.ts +6 -0
  156. package/dist/foundations/foundations.modules.d.ts.map +1 -1
  157. package/dist/foundations/foundations.modules.js +14 -3
  158. package/dist/foundations/foundations.modules.js.map +1 -1
  159. package/dist/foundations/google-user/services/google-user.service.js +2 -2
  160. package/dist/foundations/google-user/services/google-user.service.js.map +1 -1
  161. package/dist/foundations/index.d.ts +3 -0
  162. package/dist/foundations/index.d.ts.map +1 -1
  163. package/dist/foundations/index.js +3 -0
  164. package/dist/foundations/index.js.map +1 -1
  165. package/dist/foundations/membership/entities/membership.d.ts.map +1 -1
  166. package/dist/foundations/membership/entities/membership.js +4 -0
  167. package/dist/foundations/membership/entities/membership.js.map +1 -1
  168. package/dist/foundations/notification/controllers/notification.controller.js +2 -2
  169. package/dist/foundations/notification/controllers/notification.controller.js.map +1 -1
  170. package/dist/foundations/notification/entities/notification.d.ts +75 -0
  171. package/dist/foundations/notification/entities/notification.d.ts.map +1 -0
  172. package/dist/foundations/notification/entities/notification.js +73 -0
  173. package/dist/foundations/notification/entities/notification.js.map +1 -0
  174. package/dist/foundations/notification/index.d.ts +6 -2
  175. package/dist/foundations/notification/index.d.ts.map +1 -1
  176. package/dist/foundations/notification/index.js +17 -3
  177. package/dist/foundations/notification/index.js.map +1 -1
  178. package/dist/foundations/notification/notification.module.d.ts.map +1 -1
  179. package/dist/foundations/notification/notification.module.js +3 -4
  180. package/dist/foundations/notification/notification.module.js.map +1 -1
  181. package/dist/foundations/notification/repositories/notification.repository.d.ts +125 -8
  182. package/dist/foundations/notification/repositories/notification.repository.d.ts.map +1 -1
  183. package/dist/foundations/notification/repositories/notification.repository.js +219 -20
  184. package/dist/foundations/notification/repositories/notification.repository.js.map +1 -1
  185. package/dist/foundations/notification/services/notification.service.d.ts +31 -5
  186. package/dist/foundations/notification/services/notification.service.d.ts.map +1 -1
  187. package/dist/foundations/notification/services/notification.service.js +26 -9
  188. package/dist/foundations/notification/services/notification.service.js.map +1 -1
  189. package/dist/foundations/rbac/dump.d.ts +48 -4
  190. package/dist/foundations/rbac/dump.d.ts.map +1 -1
  191. package/dist/foundations/rbac/dump.js +28 -4
  192. package/dist/foundations/rbac/dump.js.map +1 -1
  193. package/dist/foundations/rbac/serializer/matrix-to-ts.d.ts +14 -0
  194. package/dist/foundations/rbac/serializer/matrix-to-ts.d.ts.map +1 -1
  195. package/dist/foundations/rbac/serializer/matrix-to-ts.js +13 -3
  196. package/dist/foundations/rbac/serializer/matrix-to-ts.js.map +1 -1
  197. package/dist/foundations/relevancy/repositories/relevancy.repository.d.ts.map +1 -1
  198. package/dist/foundations/relevancy/repositories/relevancy.repository.js +13 -1
  199. package/dist/foundations/relevancy/repositories/relevancy.repository.js.map +1 -1
  200. package/dist/foundations/role/entities/role.d.ts +1 -1
  201. package/dist/foundations/role/entities/role.d.ts.map +1 -1
  202. package/dist/foundations/stripe/index.d.ts +3 -0
  203. package/dist/foundations/stripe/index.d.ts.map +1 -1
  204. package/dist/foundations/stripe/index.js +6 -0
  205. package/dist/foundations/stripe/index.js.map +1 -1
  206. package/dist/foundations/stripe-price/entities/stripe-price.entity.d.ts +1 -1
  207. package/dist/foundations/stripe-price/entities/stripe-price.entity.d.ts.map +1 -1
  208. package/dist/foundations/tokenusage/entities/tokenusage.d.ts +49 -0
  209. package/dist/foundations/tokenusage/entities/tokenusage.d.ts.map +1 -0
  210. package/dist/foundations/tokenusage/entities/tokenusage.js +64 -0
  211. package/dist/foundations/tokenusage/entities/tokenusage.js.map +1 -0
  212. package/dist/foundations/tokenusage/index.d.ts +2 -2
  213. package/dist/foundations/tokenusage/index.d.ts.map +1 -1
  214. package/dist/foundations/tokenusage/index.js +5 -3
  215. package/dist/foundations/tokenusage/index.js.map +1 -1
  216. package/dist/foundations/tokenusage/repositories/tokenusage.repository.d.ts +33 -5
  217. package/dist/foundations/tokenusage/repositories/tokenusage.repository.d.ts.map +1 -1
  218. package/dist/foundations/tokenusage/repositories/tokenusage.repository.js +40 -14
  219. package/dist/foundations/tokenusage/repositories/tokenusage.repository.js.map +1 -1
  220. package/dist/foundations/tokenusage/services/tokenusage.service.d.ts +36 -9
  221. package/dist/foundations/tokenusage/services/tokenusage.service.d.ts.map +1 -1
  222. package/dist/foundations/tokenusage/services/tokenusage.service.js +32 -3
  223. package/dist/foundations/tokenusage/services/tokenusage.service.js.map +1 -1
  224. package/dist/foundations/tokenusage/tokenusage.module.js +3 -3
  225. package/dist/foundations/tokenusage/tokenusage.module.js.map +1 -1
  226. package/dist/foundations/user/controllers/user.controller.js +4 -4
  227. package/dist/foundations/user/controllers/user.controller.js.map +1 -1
  228. package/dist/foundations/user/dtos/user.put.dto.d.ts +1 -1
  229. package/dist/foundations/user/dtos/user.put.dto.d.ts.map +1 -1
  230. package/dist/foundations/user/dtos/user.put.dto.js +1 -1
  231. package/dist/foundations/user/dtos/user.put.dto.js.map +1 -1
  232. package/dist/foundations/user/entities/user.d.ts +4 -0
  233. package/dist/foundations/user/entities/user.d.ts.map +1 -1
  234. package/dist/foundations/user/entities/user.js +18 -4
  235. package/dist/foundations/user/entities/user.js.map +1 -1
  236. package/dist/foundations/user/index.d.ts +6 -1
  237. package/dist/foundations/user/index.d.ts.map +1 -1
  238. package/dist/foundations/user/index.js +13 -1
  239. package/dist/foundations/user/index.js.map +1 -1
  240. package/dist/foundations/user/repositories/user.repository.d.ts +56 -11
  241. package/dist/foundations/user/repositories/user.repository.d.ts.map +1 -1
  242. package/dist/foundations/user/repositories/user.repository.js +55 -35
  243. package/dist/foundations/user/repositories/user.repository.js.map +1 -1
  244. package/dist/foundations/user/services/user.service.d.ts +48 -9
  245. package/dist/foundations/user/services/user.service.d.ts.map +1 -1
  246. package/dist/foundations/user/services/user.service.js +50 -32
  247. package/dist/foundations/user/services/user.service.js.map +1 -1
  248. package/dist/foundations/user-activity/entities/user-activity.d.ts +36 -0
  249. package/dist/foundations/user-activity/entities/user-activity.d.ts.map +1 -0
  250. package/dist/foundations/user-activity/entities/user-activity.js +86 -0
  251. package/dist/foundations/user-activity/entities/user-activity.js.map +1 -0
  252. package/dist/foundations/user-activity/entities/user-activity.meta.d.ts +3 -0
  253. package/dist/foundations/user-activity/entities/user-activity.meta.d.ts.map +1 -0
  254. package/dist/foundations/user-activity/entities/user-activity.meta.js +10 -0
  255. package/dist/foundations/user-activity/entities/user-activity.meta.js.map +1 -0
  256. package/dist/foundations/user-activity/index.d.ts +10 -0
  257. package/dist/foundations/user-activity/index.d.ts.map +1 -0
  258. package/dist/foundations/user-activity/index.js +22 -0
  259. package/dist/foundations/user-activity/index.js.map +1 -0
  260. package/dist/foundations/user-activity/interceptors/user-activity.interceptor.d.ts +29 -0
  261. package/dist/foundations/user-activity/interceptors/user-activity.interceptor.d.ts.map +1 -0
  262. package/dist/foundations/user-activity/interceptors/user-activity.interceptor.js +98 -0
  263. package/dist/foundations/user-activity/interceptors/user-activity.interceptor.js.map +1 -0
  264. package/dist/foundations/user-activity/interfaces/user-activity.config.interface.d.ts +67 -0
  265. package/dist/foundations/user-activity/interfaces/user-activity.config.interface.d.ts.map +1 -0
  266. package/dist/foundations/user-activity/interfaces/user-activity.config.interface.js +26 -0
  267. package/dist/foundations/user-activity/interfaces/user-activity.config.interface.js.map +1 -0
  268. package/dist/foundations/user-activity/interfaces/user-activity.record.input.d.ts +18 -0
  269. package/dist/foundations/user-activity/interfaces/user-activity.record.input.d.ts.map +1 -0
  270. package/dist/foundations/{auth/entities/auth.entity.js → user-activity/interfaces/user-activity.record.input.js} +1 -1
  271. package/dist/foundations/user-activity/interfaces/user-activity.record.input.js.map +1 -0
  272. package/dist/foundations/user-activity/processors/user-activity.processor.d.ts +25 -0
  273. package/dist/foundations/user-activity/processors/user-activity.processor.d.ts.map +1 -0
  274. package/dist/foundations/user-activity/processors/user-activity.processor.js +74 -0
  275. package/dist/foundations/user-activity/processors/user-activity.processor.js.map +1 -0
  276. package/dist/foundations/user-activity/repositories/user-activity.repository.d.ts +47 -0
  277. package/dist/foundations/user-activity/repositories/user-activity.repository.d.ts.map +1 -0
  278. package/dist/foundations/user-activity/repositories/user-activity.repository.js +124 -0
  279. package/dist/foundations/user-activity/repositories/user-activity.repository.js.map +1 -0
  280. package/dist/foundations/user-activity/services/user-activity.service.d.ts +29 -0
  281. package/dist/foundations/user-activity/services/user-activity.service.d.ts.map +1 -0
  282. package/dist/foundations/user-activity/services/user-activity.service.js +61 -0
  283. package/dist/foundations/user-activity/services/user-activity.service.js.map +1 -0
  284. package/dist/foundations/user-activity/user-activity.module.d.ts +40 -0
  285. package/dist/foundations/user-activity/user-activity.module.d.ts.map +1 -0
  286. package/dist/foundations/user-activity/user-activity.module.js +99 -0
  287. package/dist/foundations/user-activity/user-activity.module.js.map +1 -0
  288. package/package.json +1 -1
  289. package/dist/foundations/auth/entities/auth.code.entity.d.ts +0 -7
  290. package/dist/foundations/auth/entities/auth.code.entity.d.ts.map +0 -1
  291. package/dist/foundations/auth/entities/auth.code.entity.js +0 -3
  292. package/dist/foundations/auth/entities/auth.code.entity.js.map +0 -1
  293. package/dist/foundations/auth/entities/auth.code.map.d.ts +0 -8
  294. package/dist/foundations/auth/entities/auth.code.map.d.ts.map +0 -1
  295. package/dist/foundations/auth/entities/auth.code.map.js +0 -13
  296. package/dist/foundations/auth/entities/auth.code.map.js.map +0 -1
  297. package/dist/foundations/auth/entities/auth.code.model.d.ts +0 -4
  298. package/dist/foundations/auth/entities/auth.code.model.d.ts.map +0 -1
  299. package/dist/foundations/auth/entities/auth.code.model.js +0 -13
  300. package/dist/foundations/auth/entities/auth.code.model.js.map +0 -1
  301. package/dist/foundations/auth/entities/auth.entity.d.ts +0 -18
  302. package/dist/foundations/auth/entities/auth.entity.d.ts.map +0 -1
  303. package/dist/foundations/auth/entities/auth.entity.js.map +0 -1
  304. package/dist/foundations/auth/entities/auth.map.d.ts +0 -8
  305. package/dist/foundations/auth/entities/auth.map.d.ts.map +0 -1
  306. package/dist/foundations/auth/entities/auth.map.js +0 -14
  307. package/dist/foundations/auth/entities/auth.map.js.map +0 -1
  308. package/dist/foundations/auth/entities/auth.model.d.ts +0 -4
  309. package/dist/foundations/auth/entities/auth.model.d.ts.map +0 -1
  310. package/dist/foundations/auth/entities/auth.model.js +0 -15
  311. package/dist/foundations/auth/entities/auth.model.js.map +0 -1
  312. package/dist/foundations/auth/entities/pending-auth.entity.d.ts +0 -16
  313. package/dist/foundations/auth/entities/pending-auth.entity.d.ts.map +0 -1
  314. package/dist/foundations/auth/entities/pending-auth.entity.js +0 -3
  315. package/dist/foundations/auth/entities/pending-auth.entity.js.map +0 -1
  316. package/dist/foundations/auth/entities/pending-auth.map.d.ts +0 -6
  317. package/dist/foundations/auth/entities/pending-auth.map.d.ts.map +0 -1
  318. package/dist/foundations/auth/entities/pending-auth.map.js +0 -20
  319. package/dist/foundations/auth/entities/pending-auth.map.js.map +0 -1
  320. package/dist/foundations/auth/entities/pending-auth.model.d.ts +0 -9
  321. package/dist/foundations/auth/entities/pending-auth.model.d.ts.map +0 -1
  322. package/dist/foundations/auth/entities/pending-auth.model.js +0 -19
  323. package/dist/foundations/auth/entities/pending-auth.model.js.map +0 -1
  324. package/dist/foundations/auth/serialisers/auth.serialiser.d.ts +0 -13
  325. package/dist/foundations/auth/serialisers/auth.serialiser.d.ts.map +0 -1
  326. package/dist/foundations/auth/serialisers/auth.serialiser.js +0 -52
  327. package/dist/foundations/auth/serialisers/auth.serialiser.js.map +0 -1
  328. package/dist/foundations/auth/serialisers/pending-auth.serialiser.d.ts +0 -18
  329. package/dist/foundations/auth/serialisers/pending-auth.serialiser.d.ts.map +0 -1
  330. package/dist/foundations/auth/serialisers/pending-auth.serialiser.js +0 -49
  331. package/dist/foundations/auth/serialisers/pending-auth.serialiser.js.map +0 -1
  332. package/dist/foundations/content/entities/content.entity.d.ts +0 -31
  333. package/dist/foundations/content/entities/content.entity.d.ts.map +0 -1
  334. package/dist/foundations/content/entities/content.entity.js +0 -3
  335. package/dist/foundations/content/entities/content.entity.js.map +0 -1
  336. package/dist/foundations/content/entities/content.map.d.ts +0 -8
  337. package/dist/foundations/content/entities/content.map.d.ts.map +0 -1
  338. package/dist/foundations/content/entities/content.map.js +0 -19
  339. package/dist/foundations/content/entities/content.map.js.map +0 -1
  340. package/dist/foundations/content/entities/content.model.d.ts +0 -4
  341. package/dist/foundations/content/entities/content.model.d.ts.map +0 -1
  342. package/dist/foundations/content/entities/content.model.js +0 -16
  343. package/dist/foundations/content/entities/content.model.js.map +0 -1
  344. package/dist/foundations/content/factories/content.model.factory.d.ts +0 -17
  345. package/dist/foundations/content/factories/content.model.factory.d.ts.map +0 -1
  346. package/dist/foundations/content/factories/content.model.factory.js +0 -65
  347. package/dist/foundations/content/factories/content.model.factory.js.map +0 -1
  348. package/dist/foundations/content/serialisers/content.serialiser.d.ts +0 -14
  349. package/dist/foundations/content/serialisers/content.serialiser.d.ts.map +0 -1
  350. package/dist/foundations/content/serialisers/content.serialiser.js +0 -78
  351. package/dist/foundations/content/serialisers/content.serialiser.js.map +0 -1
  352. package/dist/foundations/feature/entities/feature.entity.d.ts +0 -8
  353. package/dist/foundations/feature/entities/feature.entity.d.ts.map +0 -1
  354. package/dist/foundations/feature/entities/feature.entity.js +0 -3
  355. package/dist/foundations/feature/entities/feature.entity.js.map +0 -1
  356. package/dist/foundations/feature/entities/feature.map.d.ts +0 -8
  357. package/dist/foundations/feature/entities/feature.map.d.ts.map +0 -1
  358. package/dist/foundations/feature/entities/feature.map.js +0 -14
  359. package/dist/foundations/feature/entities/feature.map.js.map +0 -1
  360. package/dist/foundations/feature/serialisers/feature.serialiser.d.ts +0 -12
  361. package/dist/foundations/feature/serialisers/feature.serialiser.d.ts.map +0 -1
  362. package/dist/foundations/feature/serialisers/feature.serialiser.js +0 -45
  363. package/dist/foundations/feature/serialisers/feature.serialiser.js.map +0 -1
  364. package/dist/foundations/notification/entities/notification.entity.d.ts +0 -10
  365. package/dist/foundations/notification/entities/notification.entity.d.ts.map +0 -1
  366. package/dist/foundations/notification/entities/notification.entity.js +0 -3
  367. package/dist/foundations/notification/entities/notification.entity.js.map +0 -1
  368. package/dist/foundations/notification/entities/notification.map.d.ts +0 -8
  369. package/dist/foundations/notification/entities/notification.map.d.ts.map +0 -1
  370. package/dist/foundations/notification/entities/notification.map.js +0 -16
  371. package/dist/foundations/notification/entities/notification.map.js.map +0 -1
  372. package/dist/foundations/notification/entities/notification.model.d.ts +0 -4
  373. package/dist/foundations/notification/entities/notification.model.d.ts.map +0 -1
  374. package/dist/foundations/notification/entities/notification.model.js +0 -15
  375. package/dist/foundations/notification/entities/notification.model.js.map +0 -1
  376. package/dist/foundations/notification/interfaces/notification.service.interface.d.ts +0 -4
  377. package/dist/foundations/notification/interfaces/notification.service.interface.d.ts.map +0 -1
  378. package/dist/foundations/notification/interfaces/notification.service.interface.js +0 -3
  379. package/dist/foundations/notification/interfaces/notification.service.interface.js.map +0 -1
  380. package/dist/foundations/notification/serialisers/notifications.serialiser.d.ts +0 -12
  381. package/dist/foundations/notification/serialisers/notifications.serialiser.d.ts.map +0 -1
  382. package/dist/foundations/notification/serialisers/notifications.serialiser.js +0 -47
  383. package/dist/foundations/notification/serialisers/notifications.serialiser.js.map +0 -1
  384. package/dist/foundations/tokenusage/entities/tokenusage.entity.d.ts +0 -11
  385. package/dist/foundations/tokenusage/entities/tokenusage.entity.d.ts.map +0 -1
  386. package/dist/foundations/tokenusage/entities/tokenusage.entity.js +0 -3
  387. package/dist/foundations/tokenusage/entities/tokenusage.entity.js.map +0 -1
  388. package/dist/foundations/tokenusage/entities/tokenusage.map.d.ts +0 -8
  389. package/dist/foundations/tokenusage/entities/tokenusage.map.d.ts.map +0 -1
  390. package/dist/foundations/tokenusage/entities/tokenusage.map.js +0 -17
  391. package/dist/foundations/tokenusage/entities/tokenusage.map.js.map +0 -1
  392. package/dist/foundations/tokenusage/entities/tokenusage.model.d.ts +0 -4
  393. package/dist/foundations/tokenusage/entities/tokenusage.model.d.ts.map +0 -1
  394. package/dist/foundations/tokenusage/entities/tokenusage.model.js +0 -15
  395. package/dist/foundations/tokenusage/entities/tokenusage.model.js.map +0 -1
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FeatureDescriptor = void 0;
4
+ const define_entity_1 = require("../../../common/helpers/define-entity");
5
+ const module_meta_1 = require("../../module/entities/module.meta");
6
+ const feature_meta_1 = require("./feature.meta");
7
+ /**
8
+ * Feature Entity Descriptor
9
+ *
10
+ * Single source of truth for the Feature entity configuration.
11
+ * Generates mapper, childrenTokens, and DataModelInterface automatically.
12
+ */
13
+ exports.FeatureDescriptor = (0, define_entity_1.defineEntity)()({
14
+ ...feature_meta_1.featureMeta,
15
+ // Features are global RBAC building blocks seeded once for the whole platform —
16
+ // there is no (Feature)-[:BELONGS_TO]->(Company) edge in the graph. Companies opt
17
+ // into features via a separate (Company)-[:HAS_FEATURE]->(Feature) edge (see
18
+ // FeatureRepository.findByCompany). Leaving this unset (defaults to true) would
19
+ // make the inherited buildDefaultMatch()/create()/put() require a BELONGS_TO edge
20
+ // that never exists, silently returning zero rows / failing writes.
21
+ isCompanyScoped: false,
22
+ // Catalog metadata: consumed by GraphDescriptorRegistry/GraphCatalogService when a
23
+ // host app graph-registers this descriptor. Inert for apps that never register it,
24
+ // and invisible to JSON:API — but the catalog contract REQUIRES a top-level
25
+ // description plus at least one described field, so these are not optional copy.
26
+ description: "A platform feature flag: a named capability of the product that can be enabled per company " +
27
+ "and that groups the RBAC modules (screens/entities) a company's users may access when the feature is on.",
28
+ chat: {
29
+ summary: (d) => d.name ?? d.id,
30
+ textSearchFields: ["name"],
31
+ },
32
+ // Field definitions
33
+ fields: {
34
+ name: {
35
+ type: "string",
36
+ required: true,
37
+ description: "The feature's display name.",
38
+ },
39
+ isCore: {
40
+ type: "boolean",
41
+ required: true,
42
+ default: false,
43
+ description: "Whether this feature is a core platform capability that every company has, as opposed to an opt-in add-on.",
44
+ },
45
+ },
46
+ // Relationship definitions
47
+ relationships: {
48
+ module: {
49
+ model: module_meta_1.moduleMeta,
50
+ direction: "in",
51
+ relationship: "IN_FEATURE",
52
+ cardinality: "many",
53
+ dtoKey: "modules",
54
+ description: "The RBAC modules (screens/entities) grouped under this feature.",
55
+ // `reverse.description` is a REQUIRED key on RelationshipDef["reverse"] —
56
+ // ported verbatim from the app descriptor (it was already English).
57
+ reverse: {
58
+ name: "feature",
59
+ description: "The feature this RBAC module belongs to.",
60
+ },
61
+ },
62
+ },
63
+ });
64
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.js","sourceRoot":"","sources":["../../../../src/foundations/feature/entities/feature.ts"],"names":[],"mappings":";;;AACA,yEAAqE;AAErE,mEAA+D;AAC/D,iDAA6C;AAY7C;;;;;GAKG;AACU,QAAA,iBAAiB,GAAG,IAAA,4BAAY,GAAW,CAAC;IACvD,GAAG,0BAAW;IAEd,gFAAgF;IAChF,kFAAkF;IAClF,6EAA6E;IAC7E,gFAAgF;IAChF,kFAAkF;IAClF,oEAAoE;IACpE,eAAe,EAAE,KAAK;IAEtB,mFAAmF;IACnF,mFAAmF;IACnF,4EAA4E;IAC5E,iFAAiF;IACjF,WAAW,EACT,6FAA6F;QAC7F,0GAA0G;IAE5G,IAAI,EAAE;QACJ,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE;QAC9B,gBAAgB,EAAE,CAAC,MAAM,CAAC;KAC3B;IAED,oBAAoB;IACpB,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,6BAA6B;SAC3C;QACD,MAAM,EAAE;YACN,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,KAAK;YACd,WAAW,EACT,4GAA4G;SAC/G;KACF;IAED,2BAA2B;IAC3B,aAAa,EAAE;QACb,MAAM,EAAE;YACN,KAAK,EAAE,wBAAU;YACjB,SAAS,EAAE,IAAI;YACf,YAAY,EAAE,YAAY;YAC1B,WAAW,EAAE,MAAM;YACnB,MAAM,EAAE,SAAS;YACjB,WAAW,EAAE,iEAAiE;YAC9E,0EAA0E;YAC1E,oEAAoE;YACpE,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,0CAA0C;aACxD;SACF;KACF;CACF,CAAC,CAAC"}
@@ -1,4 +1,2 @@
1
- import { DataModelInterface } from "../../../common/interfaces/datamodel.interface";
2
- import { Feature } from "../../feature/entities/feature.entity";
3
- export declare const FeatureModel: DataModelInterface<Feature>;
1
+ export declare const FeatureModel: import("../../..").DataModelInterface<import("./feature").Feature>;
4
2
  //# sourceMappingURL=feature.model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature.model.d.ts","sourceRoot":"","sources":["../../../../src/foundations/feature/entities/feature.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAMhE,eAAO,MAAM,YAAY,EAAE,kBAAkB,CAAC,OAAO,CAMpD,CAAC"}
1
+ {"version":3,"file":"feature.model.d.ts","sourceRoot":"","sources":["../../../../src/foundations/feature/entities/feature.model.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,oEAA0B,CAAC"}
@@ -1,15 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FeatureModel = void 0;
4
- const feature_map_1 = require("../../feature/entities/feature.map");
5
- const feature_meta_1 = require("../../feature/entities/feature.meta");
6
- const feature_serialiser_1 = require("../../feature/serialisers/feature.serialiser");
7
- const module_meta_1 = require("../../module/entities/module.meta");
8
- exports.FeatureModel = {
9
- ...feature_meta_1.featureMeta,
10
- entity: undefined,
11
- mapper: feature_map_1.mapFeature,
12
- serialiser: feature_serialiser_1.FeatureSerialiser,
13
- childrenTokens: [module_meta_1.moduleMeta.nodeName],
14
- };
4
+ // Backward-compatibility aliases for pre-descriptor consumers (e.g. stripe-price serialiser).
5
+ const feature_1 = require("./feature");
6
+ exports.FeatureModel = feature_1.FeatureDescriptor.model;
15
7
  //# sourceMappingURL=feature.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature.model.js","sourceRoot":"","sources":["../../../../src/foundations/feature/entities/feature.model.ts"],"names":[],"mappings":";;;AAEA,oEAAgE;AAChE,sEAAkE;AAClE,qFAAiF;AACjF,mEAA+D;AAElD,QAAA,YAAY,GAAgC;IACvD,GAAG,0BAAW;IACd,MAAM,EAAE,SAA+B;IACvC,MAAM,EAAE,wBAAU;IAClB,UAAU,EAAE,sCAAiB;IAC7B,cAAc,EAAE,CAAC,wBAAU,CAAC,QAAQ,CAAC;CACtC,CAAC"}
1
+ {"version":3,"file":"feature.model.js","sourceRoot":"","sources":["../../../../src/foundations/feature/entities/feature.model.ts"],"names":[],"mappings":";;;AAAA,8FAA8F;AAC9F,uCAA8C;AAEjC,QAAA,YAAY,GAAG,2BAAiB,CAAC,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"feature.module.d.ts","sourceRoot":"","sources":["../../../src/foundations/feature/feature.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAStD,qBAKa,aAAc,YAAW,YAAY;IAChD,YAAY;CAGb"}
1
+ {"version":3,"file":"feature.module.d.ts","sourceRoot":"","sources":["../../../src/foundations/feature/feature.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQtD,qBAKa,aAAc,YAAW,YAAY;IAChD,YAAY;CAGb"}
@@ -10,21 +10,20 @@ exports.FeatureModule = void 0;
10
10
  const common_1 = require("@nestjs/common");
11
11
  const registry_1 = require("../../common/registries/registry");
12
12
  const feature_controller_1 = require("./controllers/feature.controller");
13
- const feature_model_1 = require("./entities/feature.model");
14
- const feature_serialiser_1 = require("./serialisers/feature.serialiser");
13
+ const feature_1 = require("./entities/feature");
15
14
  const feature_repository_1 = require("./repositories/feature.repository");
16
15
  const feature_service_1 = require("./services/feature.service");
17
16
  let FeatureModule = class FeatureModule {
18
17
  onModuleInit() {
19
- registry_1.modelRegistry.register(feature_model_1.FeatureModel);
18
+ registry_1.modelRegistry.register(feature_1.FeatureDescriptor.model);
20
19
  }
21
20
  };
22
21
  exports.FeatureModule = FeatureModule;
23
22
  exports.FeatureModule = FeatureModule = __decorate([
24
23
  (0, common_1.Module)({
25
24
  controllers: [feature_controller_1.FeatureController],
26
- providers: [feature_repository_1.FeatureRepository, feature_service_1.FeatureService, feature_serialiser_1.FeatureSerialiser],
27
- exports: [feature_service_1.FeatureService, feature_repository_1.FeatureRepository, feature_serialiser_1.FeatureSerialiser],
25
+ providers: [feature_repository_1.FeatureRepository, feature_service_1.FeatureService, feature_1.FeatureDescriptor.model.serialiser],
26
+ exports: [feature_service_1.FeatureService, feature_repository_1.FeatureRepository, feature_1.FeatureDescriptor.model.serialiser],
28
27
  })
29
28
  ], FeatureModule);
30
29
  //# sourceMappingURL=feature.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature.module.js","sourceRoot":"","sources":["../../../src/foundations/feature/feature.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAsD;AAEtD,+DAAiE;AACjE,yEAAqE;AACrE,4DAAwD;AACxD,yEAAqE;AACrE,0EAAsE;AACtE,gEAA4D;AAOrD,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,YAAY;QACV,wBAAa,CAAC,QAAQ,CAAC,4BAAY,CAAC,CAAC;IACvC,CAAC;CACF,CAAA;AAJY,sCAAa;wBAAb,aAAa;IALzB,IAAA,eAAM,EAAC;QACN,WAAW,EAAE,CAAC,sCAAiB,CAAC;QAChC,SAAS,EAAE,CAAC,sCAAiB,EAAE,gCAAc,EAAE,sCAAiB,CAAC;QACjE,OAAO,EAAE,CAAC,gCAAc,EAAE,sCAAiB,EAAE,sCAAiB,CAAC;KAChE,CAAC;GACW,aAAa,CAIzB"}
1
+ {"version":3,"file":"feature.module.js","sourceRoot":"","sources":["../../../src/foundations/feature/feature.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAsD;AAEtD,+DAAiE;AACjE,yEAAqE;AACrE,gDAAuD;AACvD,0EAAsE;AACtE,gEAA4D;AAOrD,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,YAAY;QACV,wBAAa,CAAC,QAAQ,CAAC,2BAAiB,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC;CACF,CAAA;AAJY,sCAAa;wBAAb,aAAa;IALzB,IAAA,eAAM,EAAC;QACN,WAAW,EAAE,CAAC,sCAAiB,CAAC;QAChC,SAAS,EAAE,CAAC,sCAAiB,EAAE,gCAAc,EAAE,2BAAiB,CAAC,KAAK,CAAC,UAAU,CAAC;QAClF,OAAO,EAAE,CAAC,gCAAc,EAAE,sCAAiB,EAAE,2BAAiB,CAAC,KAAK,CAAC,UAAU,CAAC;KACjF,CAAC;GACW,aAAa,CAIzB"}
@@ -1,2 +1,14 @@
1
1
  export { FeatureModule } from "./feature.module";
2
+ export { Feature, FeatureDescriptor, FeatureDescriptorType } from "./entities/feature";
3
+ export { featureMeta } from "./entities/feature.meta";
4
+ export { FeatureModel } from "./entities/feature.model";
5
+ export { FeatureRepository } from "./repositories/feature.repository";
6
+ export { FeatureService } from "./services/feature.service";
7
+ export { FeatureDTO, FeatureDataDTO, FeatureDataListDTO } from "./dtos/feature.dto";
8
+ /**
9
+ * Compat alias: the hand-written FeatureSerialiser class was replaced by the
10
+ * descriptor's auto-generated serialiser. The exported name is kept so existing
11
+ * consumers (DI providers, serialiser factories) keep resolving.
12
+ */
13
+ export declare const FeatureSerialiser: new (...args: any[]) => import("../..").SerialiserType;
2
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/foundations/feature/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/foundations/feature/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEpF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,wDAAsC,CAAC"}
@@ -1,6 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FeatureModule = void 0;
3
+ exports.FeatureSerialiser = exports.FeatureDataListDTO = exports.FeatureDataDTO = exports.FeatureDTO = exports.FeatureService = exports.FeatureRepository = exports.FeatureModel = exports.featureMeta = exports.FeatureDescriptor = exports.FeatureModule = void 0;
4
+ const feature_1 = require("./entities/feature");
4
5
  var feature_module_1 = require("./feature.module");
5
6
  Object.defineProperty(exports, "FeatureModule", { enumerable: true, get: function () { return feature_module_1.FeatureModule; } });
7
+ var feature_2 = require("./entities/feature");
8
+ Object.defineProperty(exports, "FeatureDescriptor", { enumerable: true, get: function () { return feature_2.FeatureDescriptor; } });
9
+ var feature_meta_1 = require("./entities/feature.meta");
10
+ Object.defineProperty(exports, "featureMeta", { enumerable: true, get: function () { return feature_meta_1.featureMeta; } });
11
+ var feature_model_1 = require("./entities/feature.model");
12
+ Object.defineProperty(exports, "FeatureModel", { enumerable: true, get: function () { return feature_model_1.FeatureModel; } });
13
+ var feature_repository_1 = require("./repositories/feature.repository");
14
+ Object.defineProperty(exports, "FeatureRepository", { enumerable: true, get: function () { return feature_repository_1.FeatureRepository; } });
15
+ var feature_service_1 = require("./services/feature.service");
16
+ Object.defineProperty(exports, "FeatureService", { enumerable: true, get: function () { return feature_service_1.FeatureService; } });
17
+ var feature_dto_1 = require("./dtos/feature.dto");
18
+ Object.defineProperty(exports, "FeatureDTO", { enumerable: true, get: function () { return feature_dto_1.FeatureDTO; } });
19
+ Object.defineProperty(exports, "FeatureDataDTO", { enumerable: true, get: function () { return feature_dto_1.FeatureDataDTO; } });
20
+ Object.defineProperty(exports, "FeatureDataListDTO", { enumerable: true, get: function () { return feature_dto_1.FeatureDataListDTO; } });
21
+ /**
22
+ * Compat alias: the hand-written FeatureSerialiser class was replaced by the
23
+ * descriptor's auto-generated serialiser. The exported name is kept so existing
24
+ * consumers (DI providers, serialiser factories) keep resolving.
25
+ */
26
+ exports.FeatureSerialiser = feature_1.FeatureDescriptor.model.serialiser;
6
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/foundations/feature/index.ts"],"names":[],"mappings":";;;AAAA,mDAAiD;AAAxC,+GAAA,aAAa,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/foundations/feature/index.ts"],"names":[],"mappings":";;;AAAA,gDAA6E;AAE7E,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,8CAAuF;AAArE,4GAAA,iBAAiB,OAAA;AACnC,wDAAsD;AAA7C,2GAAA,WAAW,OAAA;AACpB,0DAAwD;AAA/C,6GAAA,YAAY,OAAA;AACrB,wEAAsE;AAA7D,uHAAA,iBAAiB,OAAA;AAC1B,8DAA4D;AAAnD,iHAAA,cAAc,OAAA;AACvB,kDAAoF;AAA3E,yGAAA,UAAU,OAAA;AAAE,6GAAA,cAAc,OAAA;AAAE,iHAAA,kBAAkB,OAAA;AAEvD;;;;GAIG;AACU,QAAA,iBAAiB,GAAG,2BAAkB,CAAC,KAAK,CAAC,UAAU,CAAC"}
@@ -1,19 +1,43 @@
1
- import { OnModuleInit } from "@nestjs/common";
2
- import { JsonApiCursorInterface } from "../../../core/jsonapi/interfaces/jsonapi.cursor.interface";
3
- import { AppLoggingService } from "../../../core/logging/services/logging.service";
1
+ import { ClsService } from "nestjs-cls";
2
+ import { AbstractRepository } from "../../../core/neo4j/abstracts/abstract.repository";
4
3
  import { Neo4jService } from "../../../core/neo4j/services/neo4j.service";
5
- import { Feature } from "../../feature/entities/feature.entity";
6
- export declare class FeatureRepository implements OnModuleInit {
7
- private readonly neo4j;
8
- private readonly logger;
9
- constructor(neo4j: Neo4jService, logger: AppLoggingService);
10
- onModuleInit(): Promise<void>;
4
+ import { SecurityService } from "../../../core/security/services/security.service";
5
+ import { Feature, FeatureDescriptor } from "../entities/feature";
6
+ export declare class FeatureRepository extends AbstractRepository<Feature, typeof FeatureDescriptor.relationships> {
7
+ protected readonly descriptor: import("../../..").EntityDescriptor<Feature, {
8
+ module: {
9
+ model: import("../../..").DataMeta;
10
+ direction: "in";
11
+ relationship: string;
12
+ cardinality: "many";
13
+ dtoKey: string;
14
+ description: string;
15
+ reverse: {
16
+ name: string;
17
+ description: string;
18
+ };
19
+ };
20
+ }>;
21
+ constructor(neo4j: Neo4jService, securityService: SecurityService, clsService: ClsService);
22
+ /**
23
+ * Companies opt into features via a (Company)-[:HAS_FEATURE]->(Feature) edge that
24
+ * is NOT modelled as a descriptor relationship (Feature.isCompanyScoped is false —
25
+ * it is a global entity many companies point to, not something a Feature "belongs"
26
+ * to). The explicit Company MATCH is the intended cross-tenant opt-in for a global
27
+ * entity, not a bypass of buildDefaultMatch(). Keep the name and signature stable —
28
+ * external consumers depend on them.
29
+ */
11
30
  findByCompany(params: {
12
31
  companyId: string;
13
32
  }): Promise<Feature[]>;
14
- find(params: {
15
- term?: string;
16
- cursor: JsonApiCursorInterface;
17
- }): Promise<Feature[]>;
33
+ /**
34
+ * Case-insensitive exact-name lookup — not the fulltext CONTAINS search the
35
+ * inherited find({ term }) performs. Feature is a global entity, so the bare
36
+ * label MATCH is correct here. Keep the name and signature stable — external
37
+ * consumers depend on them.
38
+ */
39
+ findByName(params: {
40
+ name: string;
41
+ }): Promise<Feature>;
18
42
  }
19
43
  //# sourceMappingURL=feature.repository.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature.repository.d.ts","sourceRoot":"","sources":["../../../../src/foundations/feature/repositories/feature.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2DAA2D,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGhE,qBACa,iBAAkB,YAAW,YAAY;IAElD,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,iBAAiB;IAGtC,YAAY;IAMZ,aAAa,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAehE,IAAI,CAAC,MAAM,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,sBAAsB,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAsB1F"}
1
+ {"version":3,"file":"feature.repository.d.ts","sourceRoot":"","sources":["../../../../src/foundations/feature/repositories/feature.repository.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGjE,qBACa,iBAAkB,SAAQ,kBAAkB,CAAC,OAAO,EAAE,OAAO,iBAAiB,CAAC,aAAa,CAAC;IACxG,SAAS,CAAC,QAAQ,CAAC,UAAU;;;;;;;;;;;;;OAAqB;gBAEtC,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU;IAWzF;;;;;;;OAOG;IACG,aAAa,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAatE;;;;;OAKG;IACG,UAAU,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CAa7D"}
@@ -11,54 +11,60 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.FeatureRepository = void 0;
13
13
  const common_1 = require("@nestjs/common");
14
- const logging_service_1 = require("../../../core/logging/services/logging.service");
14
+ const nestjs_cls_1 = require("nestjs-cls");
15
+ const abstract_repository_1 = require("../../../core/neo4j/abstracts/abstract.repository");
15
16
  const neo4j_service_1 = require("../../../core/neo4j/services/neo4j.service");
16
- const feature_model_1 = require("../../feature/entities/feature.model");
17
- let FeatureRepository = class FeatureRepository {
18
- constructor(neo4j, logger) {
19
- this.neo4j = neo4j;
20
- this.logger = logger;
21
- }
22
- async onModuleInit() {
23
- await this.neo4j.writeOne({
24
- query: `CREATE CONSTRAINT feature_id IF NOT EXISTS FOR (feature:Feature) REQUIRE feature.id IS UNIQUE`,
25
- });
17
+ const security_service_1 = require("../../../core/security/services/security.service");
18
+ const feature_1 = require("../entities/feature");
19
+ const feature_meta_1 = require("../entities/feature.meta");
20
+ let FeatureRepository = class FeatureRepository extends abstract_repository_1.AbstractRepository {
21
+ constructor(neo4j, securityService, clsService) {
22
+ super(neo4j, securityService, clsService);
23
+ this.descriptor = feature_1.FeatureDescriptor;
26
24
  }
25
+ // onModuleInit() (id constraint + fulltext index) and find({ term, cursor, orderBy })
26
+ // (search + module relationship) are inherited — the descriptor declares `module` as a
27
+ // cardinality-many relationship, so buildReturnStatement() already emits the
28
+ // `OPTIONAL MATCH (feature)<-[:IN_FEATURE]-(feature_module:Module)` the old bespoke
29
+ // find() had, and the `name` string field auto-generates the fulltext index the
30
+ // inherited find() searches against for `term`.
31
+ /**
32
+ * Companies opt into features via a (Company)-[:HAS_FEATURE]->(Feature) edge that
33
+ * is NOT modelled as a descriptor relationship (Feature.isCompanyScoped is false —
34
+ * it is a global entity many companies point to, not something a Feature "belongs"
35
+ * to). The explicit Company MATCH is the intended cross-tenant opt-in for a global
36
+ * entity, not a bypass of buildDefaultMatch(). Keep the name and signature stable —
37
+ * external consumers depend on them.
38
+ */
27
39
  async findByCompany(params) {
28
- const query = this.neo4j.initQuery({ serialiser: feature_model_1.FeatureModel });
29
- query.queryParams = {
30
- companyId: params.companyId,
31
- };
40
+ const query = this.neo4j.initQuery({ serialiser: feature_1.FeatureDescriptor.model });
41
+ query.queryParams = { ...query.queryParams, companyId: params.companyId };
32
42
  query.query = `
33
- MATCH (company:Company {id: $companyId})-[:HAS_FEATURE]->(feature:Feature)
34
- RETURN feature
43
+ MATCH (company:Company {id: $companyId})-[:HAS_FEATURE]->(${feature_meta_1.featureMeta.nodeName}:${feature_meta_1.featureMeta.labelName})
44
+ RETURN ${feature_meta_1.featureMeta.nodeName}
35
45
  `;
36
46
  return this.neo4j.readMany(query);
37
47
  }
38
- async find(params) {
39
- const query = this.neo4j.initQuery({ serialiser: feature_model_1.FeatureModel, cursor: params.cursor });
40
- query.queryParams = {
41
- term: params.term,
42
- };
48
+ /**
49
+ * Case-insensitive exact-name lookup — not the fulltext CONTAINS search the
50
+ * inherited find({ term }) performs. Feature is a global entity, so the bare
51
+ * label MATCH is correct here. Keep the name and signature stable — external
52
+ * consumers depend on them.
53
+ */
54
+ async findByName(params) {
55
+ const query = this.neo4j.initQuery({ serialiser: feature_1.FeatureDescriptor.model });
56
+ query.queryParams = { ...query.queryParams, name: params.name };
43
57
  query.query = `
44
- MATCH (feature:Feature)
45
- ${params.term ? "WHERE toLower(feature.name) CONTAINS toLower($term)" : ""}
46
-
47
- WITH feature
48
- ORDER BY feature.name ASC
49
- {CURSOR}
50
-
51
- OPTIONAL MATCH (feature)<-[:IN_FEATURE]-(feature_module:Module)
52
-
53
- RETURN feature, feature_module
58
+ MATCH (${feature_meta_1.featureMeta.nodeName}:${feature_meta_1.featureMeta.labelName})
59
+ WHERE toLower(${feature_meta_1.featureMeta.nodeName}.name) = toLower($name)
60
+ ${this.buildReturnStatement()}
54
61
  `;
55
- return this.neo4j.readMany(query);
62
+ return this.neo4j.readOne(query);
56
63
  }
57
64
  };
58
65
  exports.FeatureRepository = FeatureRepository;
59
66
  exports.FeatureRepository = FeatureRepository = __decorate([
60
67
  (0, common_1.Injectable)(),
61
- __metadata("design:paramtypes", [neo4j_service_1.Neo4jService,
62
- logging_service_1.AppLoggingService])
68
+ __metadata("design:paramtypes", [neo4j_service_1.Neo4jService, security_service_1.SecurityService, nestjs_cls_1.ClsService])
63
69
  ], FeatureRepository);
64
70
  //# sourceMappingURL=feature.repository.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature.repository.js","sourceRoot":"","sources":["../../../../src/foundations/feature/repositories/feature.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA0D;AAE1D,oFAAmF;AACnF,8EAA0E;AAE1E,wEAAoE;AAG7D,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC5B,YACmB,KAAmB,EACnB,MAAyB;QADzB,UAAK,GAAL,KAAK,CAAc;QACnB,WAAM,GAAN,MAAM,CAAmB;IACzC,CAAC;IAEJ,KAAK,CAAC,YAAY;QAChB,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;YACxB,KAAK,EAAE,+FAA+F;SACvG,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,MAA6B;QAC/C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,4BAAY,EAAE,CAAC,CAAC;QAEjE,KAAK,CAAC,WAAW,GAAG;YAClB,SAAS,EAAE,MAAM,CAAC,SAAS;SAC5B,CAAC;QAEF,KAAK,CAAC,KAAK,GAAG;;;KAGb,CAAC;QAEF,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,MAAyD;QAClE,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,4BAAY,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;QAExF,KAAK,CAAC,WAAW,GAAG;YAClB,IAAI,EAAE,MAAM,CAAC,IAAI;SAClB,CAAC;QAEF,KAAK,CAAC,KAAK,GAAG;;QAEV,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,qDAAqD,CAAC,CAAC,CAAC,EAAE;;;;;;;;;KAS3E,CAAC;QAEF,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;CACF,CAAA;AAjDY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAGe,4BAAY;QACX,mCAAiB;GAHjC,iBAAiB,CAiD7B"}
1
+ {"version":3,"file":"feature.repository.js","sourceRoot":"","sources":["../../../../src/foundations/feature/repositories/feature.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAAwC;AACxC,2FAAuF;AACvF,8EAA0E;AAC1E,uFAAmF;AACnF,iDAAiE;AACjE,2DAAuD;AAGhD,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,wCAAmE;IAGxG,YAAY,KAAmB,EAAE,eAAgC,EAAE,UAAsB;QACvF,KAAK,CAAC,KAAK,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;QAHzB,eAAU,GAAG,2BAAiB,CAAC;IAIlD,CAAC;IAED,sFAAsF;IACtF,uFAAuF;IACvF,6EAA6E;I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  import { JsonApiDataInterface } from "../../../core/jsonapi/interfaces/jsonapi.data.interface";
2
3
  import { JsonApiService } from "../../../core/jsonapi/services/jsonapi.service";
4
+ import { AbstractService } from "../../../core/neo4j/abstracts/abstract.service";
5
+ import { Feature, FeatureDescriptor } from "../entities/feature";
3
6
  import { FeatureRepository } from "../repositories/feature.repository";
4
- export declare class FeatureService {
5
- private readonly builder;
7
+ export declare class FeatureService extends AbstractService<Feature, typeof FeatureDescriptor.relationships> {
6
8
  private readonly featureRepository;
7
- constructor(builder: JsonApiService, featureRepository: FeatureRepository);
9
+ protected readonly descriptor: import("../../..").EntityDescriptor<Feature, {
10
+ module: {
11
+ model: import("../../..").DataMeta;
12
+ direction: "in";
13
+ relationship: string;
14
+ cardinality: "many";
15
+ dtoKey: string;
16
+ description: string;
17
+ reverse: {
18
+ name: string;
19
+ description: string;
20
+ };
21
+ };
22
+ }>;
23
+ constructor(jsonApiService: JsonApiService, featureRepository: FeatureRepository, clsService: ClsService);
24
+ /**
25
+ * Overrides the inherited find() only to preserve the old bespoke repository's
26
+ * `ORDER BY feature.name ASC` default — the framework's inherited default order
27
+ * is `updatedAt DESC` (EntityDescriptor.defaultOrderBy is not schema-overridable).
28
+ */
8
29
  find(params: {
9
- term?: string;
10
30
  query: any;
31
+ term?: string;
32
+ fetchAll?: boolean;
33
+ orderBy?: string;
11
34
  }): Promise<JsonApiDataInterface>;
35
+ /**
36
+ * findByCompany wraps a repository query that is not a declared descriptor
37
+ * relationship (Feature.isCompanyScoped is false) — kept with its original name.
38
+ */
12
39
  findByCompany(params: {
13
40
  companyId: string;
14
41
  }): Promise<JsonApiDataInterface>;
@@ -1 +1 @@
1
- {"version":3,"file":"feature.service.d.ts","sourceRoot":"","sources":["../../../../src/foundations/feature/services/feature.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;AAE/F,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAEhF,OAAO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AAC,EAAE,OAAO,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIjC;;;OAGG;IACG,aAAa,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAQlF"}
@@ -11,24 +11,31 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.FeatureService = void 0;
13
13
  const common_1 = require("@nestjs/common");
14
- const jsonapi_paginator_1 = require("../../../core/jsonapi/serialisers/jsonapi.paginator");
14
+ const nestjs_cls_1 = require("nestjs-cls");
15
15
  const jsonapi_service_1 = require("../../../core/jsonapi/services/jsonapi.service");
16
- const feature_model_1 = require("../../feature/entities/feature.model");
16
+ const abstract_service_1 = require("../../../core/neo4j/abstracts/abstract.service");
17
+ const feature_1 = require("../entities/feature");
17
18
  const feature_repository_1 = require("../repositories/feature.repository");
18
- let FeatureService = class FeatureService {
19
- constructor(builder, featureRepository) {
20
- this.builder = builder;
19
+ let FeatureService = class FeatureService extends abstract_service_1.AbstractService {
20
+ constructor(jsonApiService, featureRepository, clsService) {
21
+ super(jsonApiService, featureRepository, clsService, feature_1.FeatureDescriptor.model);
21
22
  this.featureRepository = featureRepository;
23
+ this.descriptor = feature_1.FeatureDescriptor;
22
24
  }
25
+ /**
26
+ * Overrides the inherited find() only to preserve the old bespoke repository's
27
+ * `ORDER BY feature.name ASC` default — the framework's inherited default order
28
+ * is `updatedAt DESC` (EntityDescriptor.defaultOrderBy is not schema-overridable).
29
+ */
23
30
  async find(params) {
24
- const paginator = new jsonapi_paginator_1.JsonApiPaginator(params.query);
25
- return this.builder.buildList(feature_model_1.FeatureModel, await this.featureRepository.find({
26
- term: params.term,
27
- cursor: paginator.generateCursor(),
28
- }), paginator);
31
+ return super.find({ ...params, orderBy: params.orderBy ?? "name ASC" });
29
32
  }
33
+ /**
34
+ * findByCompany wraps a repository query that is not a declared descriptor
35
+ * relationship (Feature.isCompanyScoped is false) — kept with its original name.
36
+ */
30
37
  async findByCompany(params) {
31
- return this.builder.buildList(feature_model_1.FeatureModel, await this.featureRepository.findByCompany({
38
+ return this.jsonApiService.buildList(feature_1.FeatureDescriptor.model, await this.featureRepository.findByCompany({
32
39
  companyId: params.companyId,
33
40
  }));
34
41
  }
@@ -37,6 +44,7 @@ exports.FeatureService = FeatureService;
37
44
  exports.FeatureService = FeatureService = __decorate([
38
45
  (0, common_1.Injectable)(),
39
46
  __metadata("design:paramtypes", [jsonapi_service_1.JsonApiService,
40
- feature_repository_1.FeatureRepository])
47
+ feature_repository_1.FeatureRepository,
48
+ nestjs_cls_1.ClsService])
41
49
  ], FeatureService);
42
50
  //# sourceMappingURL=feature.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature.service.js","sourceRoot":"","sources":["../../../../src/foundations/feature/services/feature.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAG5C,2FAAuF;AACvF,oFAAgF;AAChF,wEAAoE;AACpE,2EAAuE;AAGhE,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YACmB,OAAuB,EACvB,iBAAoC;QADpC,YAAO,GAAP,OAAO,CAAgB;QACvB,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,IAAI,CAAC,MAAqC;QAC9C,MAAM,SAAS,GAAqB,IAAI,oCAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAEvE,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAC3B,4BAAY,EACZ,MAAM,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;YAChC,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,MAAM,EAAE,SAAS,CAAC,cAAc,EAAE;SACnC,CAAC,EACF,SAAS,CACV,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,MAA6B;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAC3B,4BAAY,EACZ,MAAM,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC;YACzC,SAAS,EAAE,MAAM,CAAC,SAAS;SAC5B,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAA;AA3BY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAGiB,gCAAc;QACJ,sCAAiB;GAH5C,cAAc,CA2B1B"}
1
+ {"version":3,"file":"feature.service.js","sourceRoot":"","sources":["../../../../src/foundations/feature/services/feature.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAAwC;AAExC,oFAAgF;AAChF,qFAAiF;AACjF,iDAAiE;AACjE,2EAAuE;AAGhE,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,kCAAgE;IAGlG,YACE,cAA8B,EACb,iBAAoC,EACrD,UAAsB;QAEtB,KAAK,CAAC,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAE,2BAAiB,CAAC,KAAK,CAAC,CAAC;QAH7D,sBAAiB,GAAjB,iBAAiB,CAAmB;QAJpC,eAAU,GAAG,2BAAiB,CAAC;IAQlD,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,IAAI,CAAC,MAKV;QACC,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,UAAU,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,MAA6B;QAC/C,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,CAClC,2BAAiB,CAAC,KAAK,EACvB,MAAM,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC;YACzC,SAAS,EAAE,MAAM,CAAC,SAAS;SAC5B,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAA;AArCY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAKO,gCAAc;QACM,sCAAiB;QACzC,uBAAU;GANb,cAAc,CAqC1B"}
@@ -1,6 +1,7 @@
1
1
  import { DynamicModule, Type } from "@nestjs/common";
2
2
  import { ContentExtensionConfig } from "./content/interfaces/content.extension.interface";
3
3
  import { ReferralModuleConfig } from "./referral/interfaces/referral.config.interface";
4
+ import { UserActivityModuleConfig } from "./user-activity/interfaces/user-activity.config.interface";
4
5
  /**
5
6
  * Configuration options for FoundationsModule.
6
7
  */
@@ -9,9 +10,14 @@ export interface FoundationsModuleConfig {
9
10
  contentExtension?: ContentExtensionConfig;
10
11
  /** Optional configuration for the referral feature module */
11
12
  referral?: ReferralModuleConfig;
13
+ /** Optional configuration for the user-activity feature module */
14
+ userActivity?: UserActivityModuleConfig;
12
15
  /**
13
16
  * Foundation module classes to exclude from registration.
14
17
  * Default [] keeps all modules registered (neural-erp behavior unchanged).
18
+ *
19
+ * Dynamic modules are excluded by the same class reference as static ones:
20
+ * `exclude: [ContentModule, UserActivityModule]`.
15
21
  */
16
22
  exclude?: Type<any>[];
17
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"foundations.modules.d.ts","sourceRoot":"","sources":["../../src/foundations/foundations.modules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAS7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAE1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AA2BvF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;CACvB;AAyCD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBACa,iBAAiB;IAC5B;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,aAAa;CAShE"}
1
+ {"version":3,"file":"foundations.modules.d.ts","sourceRoot":"","sources":["../../src/foundations/foundations.modules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAS7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAE1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AA0BvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2DAA2D,CAAC;AAGrG;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,kEAAkE;IAClE,YAAY,CAAC,EAAE,wBAAwB,CAAC;IACxC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;CACvB;AA0CD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBACa,iBAAiB;IAC5B;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,aAAa;CAoBhE"}
@@ -42,9 +42,11 @@ const stripe_trial_module_1 = require("./stripe-trial/stripe-trial.module");
42
42
  const tokenusage_module_1 = require("./tokenusage/tokenusage.module");
43
43
  const two_factor_module_1 = require("./two-factor/two-factor.module");
44
44
  const user_module_1 = require("./user/user.module");
45
+ const user_activity_module_1 = require("./user-activity/user-activity.module");
45
46
  const waitlist_module_1 = require("./waitlist/waitlist.module");
46
47
  /**
47
- * All static foundation modules (excluding ContentModule which is dynamic).
48
+ * All static foundation modules. The dynamic ones (ContentModule,
49
+ * UserActivityModule, ReferralModule) are assembled inside forRoot().
48
50
  * Queue registration is handled centrally by QueueModule (via baseConfig.chunkQueues).
49
51
  */
50
52
  const STATIC_FOUNDATION_MODULES = [
@@ -118,10 +120,19 @@ let FoundationsModule = FoundationsModule_1 = class FoundationsModule {
118
120
  static forRoot(config) {
119
121
  const excluded = new Set(config?.exclude ?? []);
120
122
  const modules = STATIC_FOUNDATION_MODULES.filter((m) => !excluded.has(m));
123
+ // Dynamic foundation modules are excluded by class reference exactly like
124
+ // the static ones: the pair keeps the class (matched against `exclude`)
125
+ // next to the factory that configures it, and the factory only runs for
126
+ // modules that survive the filter.
127
+ const dynamicModules = [
128
+ { classRef: content_module_1.ContentModule, factory: () => content_module_1.ContentModule.forRoot(config?.contentExtension) },
129
+ { classRef: user_activity_module_1.UserActivityModule, factory: () => user_activity_module_1.UserActivityModule.forRoot(config?.userActivity) },
130
+ { classRef: referral_module_1.ReferralModule, factory: () => referral_module_1.ReferralModule.forRoot(config?.referral) },
131
+ ].filter((entry) => !excluded.has(entry.classRef));
121
132
  return {
122
133
  module: FoundationsModule_1,
123
- imports: [...modules, content_module_1.ContentModule.forRoot(config?.contentExtension), referral_module_1.ReferralModule.forRoot(config?.referral)],
124
- exports: [...modules, content_module_1.ContentModule, referral_module_1.ReferralModule],
134
+ imports: [...modules, ...dynamicModules.map((entry) => entry.factory())],
135
+ exports: [...modules, ...dynamicModules.map((entry) => entry.classRef)],
125
136
  };
126
137
  }
127
138
  };
@@ -1 +1 @@
1
- {"version":3,"file":"foundations.modules.js","sourceRoot":"","sources":["../../src/foundations/foundations.modules.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA6D;AAC7D,mEAA+D;AAC/D,sEAAkE;AAClE,uDAAmD;AACnD,oDAAgD;AAChD,uDAAmD;AACnD,6DAAyD;AACzD,6DAAyD;AACzD,6DAAyD;AAEzD,gEAA4D;AAE5D,4EAAuE;AACvE,6DAAyD;AACzD,0DAAqD;AACrD,sEAAkE;AAClE,sEAAkE;AAClE,0DAAsD;AACtD,4EAAwE;AACxE,uDAAmD;AAC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c,CAAC,OAAO,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YAChH,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,8BAAa,EAAE,gCAAc,CAAC;SACrD,CAAC;IACJ,CAAC;CACF,CAAA;AAhBY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,iBAAiB,CAgB7B"}
1
+ {"version":3,"file":"foundations.modules.js","sourceRoot":"","sources":["../../src/foundations/foundations.modules.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA6D;AAC7D,mEAA+D;AAC/D,sEAAkE;AAClE,uDAAmD;AACnD,oDAAgD;AAChD,uDAAmD;AACnD,6DAAyD;AACzD,6DAAyD;AACzD,6DAAyD;AAEzD,gEAA4D;AAE5D,4EAAuE;AACvE,6DAAyD;AACzD,0DAAqD;AACrD,sEAAkE;AAClE,sEAAkE;AAClE,0DAAsD;AACtD,4EAAwE;AACxE,uDAAmD;AACnD,oDAAgD;AAChD,mEAA+D;AAC/D,oDAAgD;AAChD,8CAA0C;AAC1C,kFAA6E;AAC7E,iDAAmD;AACnD,qDAAuD;AACvD,mEAAoE;AACpE,+DAAiE;AACjE,4EAAuE;AACvE,kFAA6E;AAC7E,0DAAsD;AACtD,4EAAuE;AACvE,sEAAkE;AAClE,sEAAiE;AACjE,oDAAgD;AAChD,+EAA0E;AAE1E,gEAA4D;AAsB5D;;;;GAIG;AACH,MAAM,yBAAyB,GAAG;IAChC,kCAAe;IACf,oCAAgB;IAChB,0BAAW;IACX,wBAAU;IACV,0BAAW;IACX,8BAAa;IACb,8BAAa;IACb,uCAAiB;IACjB,8BAAa;IACb,2BAAW;IACX,oCAAgB;IAChB,oCAAgB;IAChB,4BAAY;IACZ,wCAAkB;IAClB,0BAAW;IACX,wBAAU;IACV,kCAAe;IACf,wBAAU;IACV,oBAAQ;IACR,oCAAgB;IAChB,mCAAe;IACf,wBAAU;IACV,gCAAc;IACd,4BAAY;IACZ,iDAAy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CAAC,CAAC;YACxE,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;SACxE,CAAC;IACJ,CAAC;CACF,CAAA;AA3BY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,iBAAiB,CA2B7B"}
@@ -27,11 +27,11 @@ let GoogleUserService = class GoogleUserService {
27
27
  async create(params) {
28
28
  this.clsService.set("companyId", params.companyId);
29
29
  this.clsService.set("userId", params.userId);
30
- await this.companyRepository.create({
30
+ await this.companyRepository.createCompanyNode({
31
31
  companyId: params.companyId,
32
32
  name: `${params.userDetails.name}`,
33
33
  });
34
- await this.userRepository.create({
34
+ await this.userRepository.createUser({
35
35
  userId: params.userId,
36
36
  email: params.userDetails.email ?? params.userDetails.id,
37
37
  name: params.userDetails.name,
@@ -1 +1 @@
1
- {"version":3,"file":"google-user.service.js","sourceRoot":"","sources":["../../../../src/foundations/google-user/services/google-user.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,mCAAoC;AACpC,2CAAwC;AACxC,4CAAyC;AACzC,2CAAkD;AAClD,qCAA4C;AAC5C,mFAA8E;AAIvE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC5B,YACmB,oBAA0C,EAC1C,cAA8B,EAC9B,iBAAoC,EACpC,UAAsB;QAHtB,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,mBAAc,GAAd,cAAc,CAAgB;QAC9B,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,eAAU,GAAV,UAAU,CAAY;IACtC,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,MAOZ;QACC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;QACnD,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,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