@replyke/core 5.1.6-beta.3 → 5.1.6-beta.31

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 (325) hide show
  1. package/dist/cjs/config/useAxiosPrivate.js +2 -2
  2. package/dist/cjs/config/useAxiosPrivate.js.map +1 -1
  3. package/dist/cjs/context/index.d.ts +0 -1
  4. package/dist/cjs/context/index.js +1 -5
  5. package/dist/cjs/context/index.js.map +1 -1
  6. package/dist/cjs/helpers/addNotificationsMessages.js +4 -0
  7. package/dist/cjs/helpers/addNotificationsMessages.js.map +1 -1
  8. package/dist/cjs/hooks/app-notifications/index.d.ts +3 -0
  9. package/dist/cjs/hooks/app-notifications/index.js +12 -0
  10. package/dist/cjs/hooks/app-notifications/index.js.map +1 -0
  11. package/dist/{esm/hooks/app-notifications-redux/useAppNotificationsRedux.d.ts → cjs/hooks/app-notifications/useAppNotifications.d.ts} +4 -4
  12. package/dist/cjs/hooks/{app-notifications-redux/useAppNotificationsRedux.js → app-notifications/useAppNotifications.js} +7 -7
  13. package/dist/cjs/hooks/app-notifications/useAppNotifications.js.map +1 -0
  14. package/dist/{esm/hooks/app-notifications-redux/useAppNotificationsActionsRedux.d.ts → cjs/hooks/app-notifications/useAppNotificationsActions.d.ts} +2 -2
  15. package/dist/cjs/hooks/{app-notifications-redux/useAppNotificationsActionsRedux.js → app-notifications/useAppNotificationsActions.js} +6 -6
  16. package/dist/cjs/hooks/app-notifications/useAppNotificationsActions.js.map +1 -0
  17. package/dist/cjs/hooks/auth/index.d.ts +1 -0
  18. package/dist/cjs/hooks/auth/index.js +9 -0
  19. package/dist/cjs/hooks/auth/index.js.map +1 -0
  20. package/dist/{esm/hooks/auth-redux/useAuthRedux.d.ts → cjs/hooks/auth/useAuth.d.ts} +2 -2
  21. package/dist/cjs/hooks/{auth-redux/useAuthRedux.js → auth/useAuth.js} +3 -3
  22. package/dist/cjs/hooks/auth/useAuth.js.map +1 -0
  23. package/dist/cjs/hooks/comments/useCommentSectionData.js +3 -2
  24. package/dist/cjs/hooks/comments/useCommentSectionData.js.map +1 -1
  25. package/dist/cjs/hooks/comments/useCommentVotes.js +2 -2
  26. package/dist/cjs/hooks/comments/useCommentVotes.js.map +1 -1
  27. package/dist/cjs/hooks/comments/useCreateComment.js +2 -2
  28. package/dist/cjs/hooks/comments/useCreateComment.js.map +1 -1
  29. package/dist/cjs/hooks/entities/index.d.ts +1 -3
  30. package/dist/cjs/hooks/entities/index.js +2 -6
  31. package/dist/cjs/hooks/entities/index.js.map +1 -1
  32. package/dist/cjs/hooks/entities/useEntityData.js +3 -8
  33. package/dist/cjs/hooks/entities/useEntityData.js.map +1 -1
  34. package/dist/cjs/hooks/entities/useEntityVotes.js +2 -2
  35. package/dist/cjs/hooks/entities/useEntityVotes.js.map +1 -1
  36. package/dist/cjs/hooks/entity-lists/index.d.ts +4 -0
  37. package/dist/cjs/hooks/entity-lists/index.js +11 -0
  38. package/dist/cjs/hooks/entity-lists/index.js.map +1 -0
  39. package/dist/cjs/hooks/entity-lists/useEntityList.d.ts +53 -0
  40. package/dist/cjs/hooks/entity-lists/useEntityList.js +358 -0
  41. package/dist/cjs/hooks/entity-lists/useEntityList.js.map +1 -0
  42. package/dist/cjs/hooks/entity-lists/useEntityListActions.d.ts +51 -0
  43. package/dist/cjs/hooks/entity-lists/useEntityListActions.js +196 -0
  44. package/dist/cjs/hooks/entity-lists/useEntityListActions.js.map +1 -0
  45. package/dist/cjs/hooks/entity-lists/useInfusedData.js.map +1 -0
  46. package/dist/cjs/hooks/lists/index.d.ts +3 -0
  47. package/dist/cjs/hooks/lists/index.js +14 -0
  48. package/dist/cjs/hooks/lists/index.js.map +1 -0
  49. package/dist/cjs/hooks/{lists-redux → lists}/useIsEntitySaved.d.ts +1 -1
  50. package/dist/cjs/hooks/{lists-redux → lists}/useIsEntitySaved.js +15 -10
  51. package/dist/cjs/hooks/lists/useIsEntitySaved.js.map +1 -0
  52. package/dist/cjs/hooks/{lists-redux/useListsRedux.d.ts → lists/useLists.d.ts} +4 -4
  53. package/dist/cjs/hooks/{lists-redux/useListsRedux.js → lists/useLists.js} +13 -13
  54. package/dist/cjs/hooks/lists/useLists.js.map +1 -0
  55. package/dist/cjs/hooks/{lists-redux/useListsActionsRedux.d.ts → lists/useListsActions.d.ts} +2 -2
  56. package/dist/cjs/hooks/{lists-redux/useListsActionsRedux.js → lists/useListsActions.js} +18 -6
  57. package/dist/cjs/hooks/lists/useListsActions.js.map +1 -0
  58. package/dist/cjs/hooks/reports/useCreateReport.js +2 -2
  59. package/dist/cjs/hooks/reports/useCreateReport.js.map +1 -1
  60. package/dist/cjs/hooks/user/index.d.ts +2 -0
  61. package/dist/cjs/hooks/user/index.js +12 -0
  62. package/dist/cjs/hooks/user/index.js.map +1 -0
  63. package/dist/cjs/hooks/{user-redux/useUserRedux.d.ts → user/useUser.d.ts} +4 -4
  64. package/dist/cjs/hooks/{user-redux/useUserRedux.js → user/useUser.js} +5 -5
  65. package/dist/cjs/hooks/user/useUser.js.map +1 -0
  66. package/dist/cjs/hooks/{user-redux/useUserActionsRedux.d.ts → user/useUserActions.d.ts} +2 -2
  67. package/dist/cjs/hooks/{user-redux/useUserActionsRedux.js → user/useUserActions.js} +4 -4
  68. package/dist/cjs/hooks/user/useUserActions.js.map +1 -0
  69. package/dist/cjs/hooks/users/follows/index.d.ts +1 -0
  70. package/dist/cjs/hooks/users/follows/index.js +3 -1
  71. package/dist/cjs/hooks/users/follows/index.js.map +1 -1
  72. package/dist/cjs/hooks/users/follows/useFetchFollow.js +2 -2
  73. package/dist/cjs/hooks/users/follows/useFetchFollow.js.map +1 -1
  74. package/dist/cjs/hooks/users/follows/useFollowManager.d.ts +9 -0
  75. package/dist/cjs/hooks/users/follows/useFollowManager.js +122 -0
  76. package/dist/cjs/hooks/users/follows/useFollowManager.js.map +1 -0
  77. package/dist/cjs/hooks/users/follows/useUnfollowUser.js +2 -2
  78. package/dist/cjs/hooks/users/follows/useUnfollowUser.js.map +1 -1
  79. package/dist/cjs/hooks/users/index.d.ts +1 -1
  80. package/dist/cjs/hooks/users/index.js +2 -4
  81. package/dist/cjs/hooks/users/index.js.map +1 -1
  82. package/dist/cjs/index.d.ts +10 -9
  83. package/dist/cjs/index.js +26 -18
  84. package/dist/cjs/index.js.map +1 -1
  85. package/dist/cjs/interfaces/models/AppNotification.d.ts +12 -2
  86. package/dist/cjs/interfaces/models/Comment.d.ts +1 -0
  87. package/dist/cjs/interfaces/models/Entity.d.ts +1 -0
  88. package/dist/cjs/store/api/appNotificationsApi.d.ts +121 -121
  89. package/dist/cjs/store/api/baseApi.d.ts +1 -1
  90. package/dist/cjs/store/api/baseApi.js +4 -3
  91. package/dist/cjs/store/api/baseApi.js.map +1 -1
  92. package/dist/cjs/store/api/entityListsApi.d.ts +1719 -0
  93. package/dist/cjs/store/api/entityListsApi.js +237 -0
  94. package/dist/cjs/store/api/entityListsApi.js.map +1 -0
  95. package/dist/cjs/store/api/index.d.ts +1 -0
  96. package/dist/cjs/store/api/index.js +2 -1
  97. package/dist/cjs/store/api/index.js.map +1 -1
  98. package/dist/cjs/store/api/listsApi.d.ts +166 -166
  99. package/dist/cjs/store/api/userApi.d.ts +3 -3
  100. package/dist/cjs/store/api/userApi.js +1 -1
  101. package/dist/cjs/store/api/userApi.js.map +1 -1
  102. package/dist/cjs/store/index.d.ts +6 -4
  103. package/dist/cjs/store/index.js +2 -1
  104. package/dist/cjs/store/index.js.map +1 -1
  105. package/dist/cjs/store/middleware.js +3 -2
  106. package/dist/cjs/store/middleware.js.map +1 -1
  107. package/dist/cjs/store/rootReducer.d.ts +4 -2
  108. package/dist/cjs/store/rootReducer.js +2 -0
  109. package/dist/cjs/store/rootReducer.js.map +1 -1
  110. package/dist/cjs/store/slices/entityListsSlice.d.ts +364 -0
  111. package/dist/cjs/store/slices/entityListsSlice.js +295 -0
  112. package/dist/cjs/store/slices/entityListsSlice.js.map +1 -0
  113. package/dist/cjs/store/slices/index.d.ts +0 -1
  114. package/dist/cjs/store/slices/index.js +2 -18
  115. package/dist/cjs/store/slices/index.js.map +1 -1
  116. package/dist/cjs/store/slices/listsSlice.d.ts +96 -12
  117. package/dist/cjs/store/slices/listsSlice.js +111 -104
  118. package/dist/cjs/store/slices/listsSlice.js.map +1 -1
  119. package/dist/cjs/utils/env.d.ts +19 -0
  120. package/dist/cjs/utils/env.js +102 -0
  121. package/dist/cjs/utils/env.js.map +1 -0
  122. package/dist/cjs/utils/keywordHelpers.d.ts +30 -0
  123. package/dist/cjs/utils/keywordHelpers.js +101 -0
  124. package/dist/cjs/utils/keywordHelpers.js.map +1 -0
  125. package/dist/esm/config/useAxiosPrivate.js +2 -2
  126. package/dist/esm/config/useAxiosPrivate.js.map +1 -1
  127. package/dist/esm/context/index.d.ts +0 -1
  128. package/dist/esm/context/index.js +0 -3
  129. package/dist/esm/context/index.js.map +1 -1
  130. package/dist/esm/helpers/addNotificationsMessages.js +4 -0
  131. package/dist/esm/helpers/addNotificationsMessages.js.map +1 -1
  132. package/dist/esm/hooks/app-notifications/index.d.ts +3 -0
  133. package/dist/esm/hooks/app-notifications/index.js +4 -0
  134. package/dist/esm/hooks/app-notifications/index.js.map +1 -0
  135. package/dist/{cjs/hooks/app-notifications-redux/useAppNotificationsRedux.d.ts → esm/hooks/app-notifications/useAppNotifications.d.ts} +4 -4
  136. package/dist/esm/hooks/{app-notifications-redux/useAppNotificationsRedux.js → app-notifications/useAppNotifications.js} +7 -7
  137. package/dist/esm/hooks/app-notifications/useAppNotifications.js.map +1 -0
  138. package/dist/{cjs/hooks/app-notifications-redux/useAppNotificationsActionsRedux.d.ts → esm/hooks/app-notifications/useAppNotificationsActions.d.ts} +2 -2
  139. package/dist/esm/hooks/{app-notifications-redux/useAppNotificationsActionsRedux.js → app-notifications/useAppNotificationsActions.js} +5 -5
  140. package/dist/esm/hooks/app-notifications/useAppNotificationsActions.js.map +1 -0
  141. package/dist/esm/hooks/auth/index.d.ts +1 -0
  142. package/dist/esm/hooks/auth/index.js +2 -0
  143. package/dist/esm/hooks/auth/index.js.map +1 -0
  144. package/dist/{cjs/hooks/auth-redux/useAuthRedux.d.ts → esm/hooks/auth/useAuth.d.ts} +2 -2
  145. package/dist/esm/hooks/{auth-redux/useAuthRedux.js → auth/useAuth.js} +2 -2
  146. package/dist/esm/hooks/auth/useAuth.js.map +1 -0
  147. package/dist/esm/hooks/comments/useCommentSectionData.js +3 -2
  148. package/dist/esm/hooks/comments/useCommentSectionData.js.map +1 -1
  149. package/dist/esm/hooks/comments/useCommentVotes.js +2 -2
  150. package/dist/esm/hooks/comments/useCommentVotes.js.map +1 -1
  151. package/dist/esm/hooks/comments/useCreateComment.js +2 -2
  152. package/dist/esm/hooks/comments/useCreateComment.js.map +1 -1
  153. package/dist/esm/hooks/entities/index.d.ts +1 -3
  154. package/dist/esm/hooks/entities/index.js +1 -3
  155. package/dist/esm/hooks/entities/index.js.map +1 -1
  156. package/dist/esm/hooks/entities/useEntityData.js +3 -8
  157. package/dist/esm/hooks/entities/useEntityData.js.map +1 -1
  158. package/dist/esm/hooks/entities/useEntityVotes.js +2 -2
  159. package/dist/esm/hooks/entities/useEntityVotes.js.map +1 -1
  160. package/dist/esm/hooks/entity-lists/index.d.ts +4 -0
  161. package/dist/esm/hooks/entity-lists/index.js +3 -0
  162. package/dist/esm/hooks/entity-lists/index.js.map +1 -0
  163. package/dist/esm/hooks/entity-lists/useEntityList.d.ts +53 -0
  164. package/dist/esm/hooks/entity-lists/useEntityList.js +353 -0
  165. package/dist/esm/hooks/entity-lists/useEntityList.js.map +1 -0
  166. package/dist/esm/hooks/entity-lists/useEntityListActions.d.ts +51 -0
  167. package/dist/esm/hooks/entity-lists/useEntityListActions.js +190 -0
  168. package/dist/esm/hooks/entity-lists/useEntityListActions.js.map +1 -0
  169. package/dist/esm/hooks/entity-lists/useInfusedData.js.map +1 -0
  170. package/dist/esm/hooks/lists/index.d.ts +3 -0
  171. package/dist/esm/hooks/lists/index.js +5 -0
  172. package/dist/esm/hooks/lists/index.js.map +1 -0
  173. package/dist/esm/hooks/{lists-redux → lists}/useIsEntitySaved.d.ts +1 -1
  174. package/dist/esm/hooks/{lists-redux → lists}/useIsEntitySaved.js +15 -10
  175. package/dist/esm/hooks/lists/useIsEntitySaved.js.map +1 -0
  176. package/dist/esm/hooks/{lists-redux/useListsRedux.d.ts → lists/useLists.d.ts} +4 -4
  177. package/dist/esm/hooks/{lists-redux/useListsRedux.js → lists/useLists.js} +14 -14
  178. package/dist/esm/hooks/lists/useLists.js.map +1 -0
  179. package/dist/esm/hooks/{lists-redux/useListsActionsRedux.d.ts → lists/useListsActions.d.ts} +2 -2
  180. package/dist/esm/hooks/{lists-redux/useListsActionsRedux.js → lists/useListsActions.js} +18 -6
  181. package/dist/esm/hooks/lists/useListsActions.js.map +1 -0
  182. package/dist/esm/hooks/reports/useCreateReport.js +2 -2
  183. package/dist/esm/hooks/reports/useCreateReport.js.map +1 -1
  184. package/dist/esm/hooks/user/index.d.ts +2 -0
  185. package/dist/esm/hooks/user/index.js +4 -0
  186. package/dist/esm/hooks/user/index.js.map +1 -0
  187. package/dist/esm/hooks/{user-redux/useUserRedux.d.ts → user/useUser.d.ts} +4 -4
  188. package/dist/esm/hooks/{user-redux/useUserRedux.js → user/useUser.js} +5 -5
  189. package/dist/esm/hooks/user/useUser.js.map +1 -0
  190. package/dist/esm/hooks/{user-redux/useUserActionsRedux.d.ts → user/useUserActions.d.ts} +2 -2
  191. package/dist/esm/hooks/{user-redux/useUserActionsRedux.js → user/useUserActions.js} +3 -3
  192. package/dist/esm/hooks/user/useUserActions.js.map +1 -0
  193. package/dist/esm/hooks/users/follows/index.d.ts +1 -0
  194. package/dist/esm/hooks/users/follows/index.js +1 -0
  195. package/dist/esm/hooks/users/follows/index.js.map +1 -1
  196. package/dist/esm/hooks/users/follows/useFetchFollow.js +2 -2
  197. package/dist/esm/hooks/users/follows/useFetchFollow.js.map +1 -1
  198. package/dist/esm/hooks/users/follows/useFollowManager.d.ts +9 -0
  199. package/dist/esm/hooks/users/follows/useFollowManager.js +117 -0
  200. package/dist/esm/hooks/users/follows/useFollowManager.js.map +1 -0
  201. package/dist/esm/hooks/users/follows/useUnfollowUser.js +2 -2
  202. package/dist/esm/hooks/users/follows/useUnfollowUser.js.map +1 -1
  203. package/dist/esm/hooks/users/index.d.ts +1 -1
  204. package/dist/esm/hooks/users/index.js +1 -4
  205. package/dist/esm/hooks/users/index.js.map +1 -1
  206. package/dist/esm/index.d.ts +10 -9
  207. package/dist/esm/index.js +11 -9
  208. package/dist/esm/index.js.map +1 -1
  209. package/dist/esm/interfaces/models/AppNotification.d.ts +12 -2
  210. package/dist/esm/interfaces/models/Comment.d.ts +1 -0
  211. package/dist/esm/interfaces/models/Entity.d.ts +1 -0
  212. package/dist/esm/store/api/appNotificationsApi.d.ts +121 -121
  213. package/dist/esm/store/api/baseApi.d.ts +1 -1
  214. package/dist/esm/store/api/baseApi.js +4 -3
  215. package/dist/esm/store/api/baseApi.js.map +1 -1
  216. package/dist/esm/store/api/entityListsApi.d.ts +1719 -0
  217. package/dist/esm/store/api/entityListsApi.js +234 -0
  218. package/dist/esm/store/api/entityListsApi.js.map +1 -0
  219. package/dist/esm/store/api/index.d.ts +1 -0
  220. package/dist/esm/store/api/index.js +2 -1
  221. package/dist/esm/store/api/index.js.map +1 -1
  222. package/dist/esm/store/api/listsApi.d.ts +166 -166
  223. package/dist/esm/store/api/userApi.d.ts +3 -3
  224. package/dist/esm/store/api/userApi.js +1 -1
  225. package/dist/esm/store/api/userApi.js.map +1 -1
  226. package/dist/esm/store/index.d.ts +6 -4
  227. package/dist/esm/store/index.js +2 -1
  228. package/dist/esm/store/index.js.map +1 -1
  229. package/dist/esm/store/middleware.js +3 -2
  230. package/dist/esm/store/middleware.js.map +1 -1
  231. package/dist/esm/store/rootReducer.d.ts +4 -2
  232. package/dist/esm/store/rootReducer.js +2 -0
  233. package/dist/esm/store/rootReducer.js.map +1 -1
  234. package/dist/esm/store/slices/entityListsSlice.d.ts +364 -0
  235. package/dist/esm/store/slices/entityListsSlice.js +292 -0
  236. package/dist/esm/store/slices/entityListsSlice.js.map +1 -0
  237. package/dist/esm/store/slices/index.d.ts +0 -1
  238. package/dist/esm/store/slices/index.js +3 -3
  239. package/dist/esm/store/slices/index.js.map +1 -1
  240. package/dist/esm/store/slices/listsSlice.d.ts +96 -12
  241. package/dist/esm/store/slices/listsSlice.js +108 -101
  242. package/dist/esm/store/slices/listsSlice.js.map +1 -1
  243. package/dist/esm/utils/env.d.ts +19 -0
  244. package/dist/esm/utils/env.js +96 -0
  245. package/dist/esm/utils/env.js.map +1 -0
  246. package/dist/esm/utils/keywordHelpers.d.ts +30 -0
  247. package/dist/esm/utils/keywordHelpers.js +98 -0
  248. package/dist/esm/utils/keywordHelpers.js.map +1 -0
  249. package/package.json +1 -1
  250. package/dist/cjs/context/entity-list-context.d.ts +0 -9
  251. package/dist/cjs/context/entity-list-context.js +0 -28
  252. package/dist/cjs/context/entity-list-context.js.map +0 -1
  253. package/dist/cjs/hooks/app-notifications-redux/index.d.ts +0 -3
  254. package/dist/cjs/hooks/app-notifications-redux/index.js +0 -12
  255. package/dist/cjs/hooks/app-notifications-redux/index.js.map +0 -1
  256. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsActionsRedux.js.map +0 -1
  257. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsRedux.js.map +0 -1
  258. package/dist/cjs/hooks/auth-redux/index.d.ts +0 -2
  259. package/dist/cjs/hooks/auth-redux/index.js +0 -11
  260. package/dist/cjs/hooks/auth-redux/index.js.map +0 -1
  261. package/dist/cjs/hooks/auth-redux/useAuthRedux.js.map +0 -1
  262. package/dist/cjs/hooks/auth-redux/useUserRedux.d.ts +0 -6
  263. package/dist/cjs/hooks/auth-redux/useUserRedux.js +0 -20
  264. package/dist/cjs/hooks/auth-redux/useUserRedux.js.map +0 -1
  265. package/dist/cjs/hooks/entities/useEntityList.d.ts +0 -2
  266. package/dist/cjs/hooks/entities/useEntityList.js +0 -9
  267. package/dist/cjs/hooks/entities/useEntityList.js.map +0 -1
  268. package/dist/cjs/hooks/entities/useEntityListData.d.ts +0 -78
  269. package/dist/cjs/hooks/entities/useEntityListData.js +0 -394
  270. package/dist/cjs/hooks/entities/useEntityListData.js.map +0 -1
  271. package/dist/cjs/hooks/entities/useFetchManyEntities.d.ts +0 -25
  272. package/dist/cjs/hooks/entities/useFetchManyEntities.js +0 -88
  273. package/dist/cjs/hooks/entities/useFetchManyEntities.js.map +0 -1
  274. package/dist/cjs/hooks/entities/useInfusedData.js.map +0 -1
  275. package/dist/cjs/hooks/lists-redux/index.d.ts +0 -3
  276. package/dist/cjs/hooks/lists-redux/index.js +0 -14
  277. package/dist/cjs/hooks/lists-redux/index.js.map +0 -1
  278. package/dist/cjs/hooks/lists-redux/useIsEntitySaved.js.map +0 -1
  279. package/dist/cjs/hooks/lists-redux/useListsActionsRedux.js.map +0 -1
  280. package/dist/cjs/hooks/lists-redux/useListsRedux.js.map +0 -1
  281. package/dist/cjs/hooks/user-redux/index.d.ts +0 -2
  282. package/dist/cjs/hooks/user-redux/index.js +0 -12
  283. package/dist/cjs/hooks/user-redux/index.js.map +0 -1
  284. package/dist/cjs/hooks/user-redux/useUserActionsRedux.js.map +0 -1
  285. package/dist/cjs/hooks/user-redux/useUserRedux.js.map +0 -1
  286. package/dist/esm/context/entity-list-context.d.ts +0 -9
  287. package/dist/esm/context/entity-list-context.js +0 -21
  288. package/dist/esm/context/entity-list-context.js.map +0 -1
  289. package/dist/esm/hooks/app-notifications-redux/index.d.ts +0 -3
  290. package/dist/esm/hooks/app-notifications-redux/index.js +0 -4
  291. package/dist/esm/hooks/app-notifications-redux/index.js.map +0 -1
  292. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsActionsRedux.js.map +0 -1
  293. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsRedux.js.map +0 -1
  294. package/dist/esm/hooks/auth-redux/index.d.ts +0 -2
  295. package/dist/esm/hooks/auth-redux/index.js +0 -3
  296. package/dist/esm/hooks/auth-redux/index.js.map +0 -1
  297. package/dist/esm/hooks/auth-redux/useAuthRedux.js.map +0 -1
  298. package/dist/esm/hooks/auth-redux/useUserRedux.d.ts +0 -6
  299. package/dist/esm/hooks/auth-redux/useUserRedux.js +0 -17
  300. package/dist/esm/hooks/auth-redux/useUserRedux.js.map +0 -1
  301. package/dist/esm/hooks/entities/useEntityList.d.ts +0 -2
  302. package/dist/esm/hooks/entities/useEntityList.js +0 -6
  303. package/dist/esm/hooks/entities/useEntityList.js.map +0 -1
  304. package/dist/esm/hooks/entities/useEntityListData.d.ts +0 -78
  305. package/dist/esm/hooks/entities/useEntityListData.js +0 -389
  306. package/dist/esm/hooks/entities/useEntityListData.js.map +0 -1
  307. package/dist/esm/hooks/entities/useFetchManyEntities.d.ts +0 -25
  308. package/dist/esm/hooks/entities/useFetchManyEntities.js +0 -83
  309. package/dist/esm/hooks/entities/useFetchManyEntities.js.map +0 -1
  310. package/dist/esm/hooks/entities/useInfusedData.js.map +0 -1
  311. package/dist/esm/hooks/lists-redux/index.d.ts +0 -3
  312. package/dist/esm/hooks/lists-redux/index.js +0 -5
  313. package/dist/esm/hooks/lists-redux/index.js.map +0 -1
  314. package/dist/esm/hooks/lists-redux/useIsEntitySaved.js.map +0 -1
  315. package/dist/esm/hooks/lists-redux/useListsActionsRedux.js.map +0 -1
  316. package/dist/esm/hooks/lists-redux/useListsRedux.js.map +0 -1
  317. package/dist/esm/hooks/user-redux/index.d.ts +0 -2
  318. package/dist/esm/hooks/user-redux/index.js +0 -4
  319. package/dist/esm/hooks/user-redux/index.js.map +0 -1
  320. package/dist/esm/hooks/user-redux/useUserActionsRedux.js.map +0 -1
  321. package/dist/esm/hooks/user-redux/useUserRedux.js.map +0 -1
  322. /package/dist/cjs/hooks/{entities → entity-lists}/useInfusedData.d.ts +0 -0
  323. /package/dist/cjs/hooks/{entities → entity-lists}/useInfusedData.js +0 -0
  324. /package/dist/esm/hooks/{entities → entity-lists}/useInfusedData.d.ts +0 -0
  325. /package/dist/esm/hooks/{entities → entity-lists}/useInfusedData.js +0 -0
@@ -36,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.useUserActionsRedux = useUserActionsRedux;
39
+ exports.useUserActions = useUserActions;
40
40
  var react_1 = require("react");
41
41
  var react_redux_1 = require("react-redux");
42
42
  var userSlice_1 = require("../../store/slices/userSlice");
@@ -45,7 +45,7 @@ var userApi_1 = require("../../store/api/userApi");
45
45
  * Redux-powered hook that provides current user management actions
46
46
  * Focused on current user operations only
47
47
  */
48
- function useUserActionsRedux() {
48
+ function useUserActions() {
49
49
  var _this = this;
50
50
  var dispatch = (0, react_redux_1.useDispatch)();
51
51
  // RTK Query mutations for current user
@@ -121,5 +121,5 @@ function useUserActionsRedux() {
121
121
  clearError: clearUserError,
122
122
  };
123
123
  }
124
- exports.default = useUserActionsRedux;
125
- //# sourceMappingURL=useUserActionsRedux.js.map
124
+ exports.default = useUserActions;
125
+ //# sourceMappingURL=useUserActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUserActions.js","sourceRoot":"","sources":["../../../../src/hooks/user/useUserActions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,wCAiFC;AArGD,+BAAoC;AACpC,2CAA0C;AAE1C,0DAOsC;AACtC,mDAGiC;AAEjC;;;GAGG;AACH,SAAgB,cAAc;IAA9B,iBAiFC;IAhFC,IAAM,QAAQ,GAAG,IAAA,yBAAW,GAAe,CAAC;IAE5C,uCAAuC;IAChC,IAAA,kBAAkB,GAAI,IAAA,+BAAqB,GAAE,GAA3B,CAA4B;IAErD,+BAA+B;IAC/B,IAAM,aAAa,GAAG,IAAA,mBAAW,EAAC,UAAC,IAAS;QAC1C,QAAQ,CAAC,IAAA,mBAAO,EAAC,IAAI,CAAC,CAAC,CAAC;QACxB,QAAQ,C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,CAAC;oBACtF,QAAQ,CAAC,IAAA,oBAAQ,EAAC,YAAY,CAAC,CAAC,CAAC;oBACjC,MAAM,OAAK,CAAC;;oBAEZ,QAAQ,CAAC,IAAA,uBAAW,EAAC,KAAK,CAAC,CAAC,CAAC;;;;;SAEhC,EACD,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAC/B,CAAC;IAEF,kEAAkE;IAClE,iBAAiB;IACjB,4BAA4B;IAC5B,mCAAmC;IACnC,4BAA4B;IAE5B,yBAAyB;IACzB,IAAM,cAAc,GAAG,IAAA,mBAAW,EAAC;QACjC,QAAQ,CAAC,IAAA,sBAAU,GAAE,CAAC,CAAC;IACzB,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO;QACL,+BAA+B;QAC/B,OAAO,EAAE,aAAa;QACtB,SAAS,EAAE,eAAe;QAE1B,0BAA0B;QAC1B,UAAU,YAAA;QAEV,iBAAiB;QACjB,UAAU,EAAE,cAAc;KAC3B,CAAC;AACJ,CAAC;AAED,kBAAe,cAAc,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export { default as useFetchFollow } from "./useFetchFollow";
2
2
  export { default as useFollowUser } from "./useFollowUser";
3
3
  export { default as useUnfollowUser } from "./useUnfollowUser";
4
+ export { default as useFollowManager } from "./useFollowManager";
@@ -3,11 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.useUnfollowUser = exports.useFollowUser = exports.useFetchFollow = void 0;
6
+ exports.useFollowManager = exports.useUnfollowUser = exports.useFollowUser = exports.useFetchFollow = void 0;
7
7
  var useFetchFollow_1 = require("./useFetchFollow");
8
8
  Object.defineProperty(exports, "useFetchFollow", { enumerable: true, get: function () { return __importDefault(useFetchFollow_1).default; } });
9
9
  var useFollowUser_1 = require("./useFollowUser");
10
10
  Object.defineProperty(exports, "useFollowUser", { enumerable: true, get: function () { return __importDefault(useFollowUser_1).default; } });
11
11
  var useUnfollowUser_1 = require("./useUnfollowUser");
12
12
  Object.defineProperty(exports, "useUnfollowUser", { enumerable: true, get: function () { return __importDefault(useUnfollowUser_1).default; } });
13
+ var useFollowManager_1 = require("./useFollowManager");
14
+ Object.defineProperty(exports, "useFollowManager", { enumerable: true, get: function () { return __importDefault(useFollowManager_1).default; } });
13
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/hooks/users/follows/index.ts"],"names":[],"mappings":";;;;;;AAAA,mDAA6D;AAApD,iIAAA,OAAO,OAAkB;AAClC,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB;AACjC,qDAA+D;AAAtD,mIAAA,OAAO,OAAmB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/hooks/users/follows/index.ts"],"names":[],"mappings":";;;;;;AAAA,mDAA6D;AAApD,iIAAA,OAAO,OAAkB;AAClC,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB;AACjC,qDAA+D;AAAtD,mIAAA,OAAO,OAAmB;AACnC,uDAAiE;AAAxD,qIAAA,OAAO,OAAoB"}
@@ -42,12 +42,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
42
42
  var react_1 = require("react");
43
43
  var useAxiosPrivate_1 = __importDefault(require("../../../config/useAxiosPrivate"));
44
44
  var useProject_1 = __importDefault(require("../../projects/useProject"));
45
- var auth_redux_1 = require("../../auth-redux");
45
+ var user_1 = require("../../user");
46
46
  function useFetchFollow() {
47
47
  var _this = this;
48
48
  var axios = (0, useAxiosPrivate_1.default)();
49
49
  var projectId = (0, useProject_1.default)().projectId;
50
- var user = (0, auth_redux_1.useUserRedux)().user;
50
+ var user = (0, user_1.useUser)().user;
51
51
  var fetchFollow = (0, react_1.useCallback)(function (props) { return __awaiter(_this, void 0, void 0, function () {
52
52
  var userId, response;
53
53
  return __generator(this, function (_a) {
@@ -1 +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C;AAED,kBAAe,cAAc,CAAC"}
@@ -0,0 +1,9 @@
1
+ interface UseFollowToggleProps {
2
+ userId: string;
3
+ }
4
+ declare function useFollowManager({ userId }: UseFollowToggleProps): {
5
+ isFollowing: boolean | null;
6
+ isLoading: boolean;
7
+ toggleFollow: () => Promise<void>;
8
+ };
9
+ export default useFollowManager;
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ var __importDefault = (this && this.__importDefault) || function (mod) {
39
+ return (mod && mod.__esModule) ? mod : { "default": mod };
40
+ };
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ var react_1 = require("react");
43
+ var useFollowUser_1 = __importDefault(require("./useFollowUser"));
44
+ var useUnfollowUser_1 = __importDefault(require("./useUnfollowUser"));
45
+ var useFetchFollow_1 = __importDefault(require("./useFetchFollow"));
46
+ var useUser_1 = __importDefault(require("../../user/useUser"));
47
+ function useFollowManager(_a) {
48
+ var _this = this;
49
+ var userId = _a.userId;
50
+ var user = (0, useUser_1.default)().user;
51
+ var _b = (0, react_1.useState)(null), isFollowing = _b[0], setIsFollowing = _b[1];
52
+ var _c = (0, react_1.useState)(true), isLoading = _c[0], setIsLoading = _c[1];
53
+ var followUser = (0, useFollowUser_1.default)();
54
+ var unfollowUser = (0, useUnfollowUser_1.default)();
55
+ var fetchFollow = (0, useFetchFollow_1.default)();
56
+ (0, react_1.useEffect)(function () {
57
+ var loadFollowStatus = function () { return __awaiter(_this, void 0, void 0, function () {
58
+ var result, error_1;
59
+ return __generator(this, function (_a) {
60
+ switch (_a.label) {
61
+ case 0:
62
+ _a.trys.push([0, 2, 3, 4]);
63
+ setIsLoading(true);
64
+ return [4 /*yield*/, fetchFollow({ userId: userId })];
65
+ case 1:
66
+ result = _a.sent();
67
+ setIsFollowing(result.isFollowing);
68
+ return [3 /*break*/, 4];
69
+ case 2:
70
+ error_1 = _a.sent();
71
+ console.error("Failed to fetch follow status:", error_1);
72
+ setIsFollowing(false);
73
+ return [3 /*break*/, 4];
74
+ case 3:
75
+ setIsLoading(false);
76
+ return [7 /*endfinally*/];
77
+ case 4: return [2 /*return*/];
78
+ }
79
+ });
80
+ }); };
81
+ if (userId && (user === null || user === void 0 ? void 0 : user.id) !== userId) {
82
+ loadFollowStatus();
83
+ }
84
+ }, [userId, fetchFollow]);
85
+ var toggleFollow = (0, react_1.useCallback)(function () { return __awaiter(_this, void 0, void 0, function () {
86
+ var error_2;
87
+ return __generator(this, function (_a) {
88
+ switch (_a.label) {
89
+ case 0:
90
+ if (isFollowing === null || isLoading || (user === null || user === void 0 ? void 0 : user.id) === userId)
91
+ return [2 /*return*/];
92
+ _a.label = 1;
93
+ case 1:
94
+ _a.trys.push([1, 6, , 7]);
95
+ if (!isFollowing) return [3 /*break*/, 3];
96
+ return [4 /*yield*/, unfollowUser({ userId: userId })];
97
+ case 2:
98
+ _a.sent();
99
+ setIsFollowing(false);
100
+ return [3 /*break*/, 5];
101
+ case 3: return [4 /*yield*/, followUser({ userId: userId })];
102
+ case 4:
103
+ _a.sent();
104
+ setIsFollowing(true);
105
+ _a.label = 5;
106
+ case 5: return [3 /*break*/, 7];
107
+ case 6:
108
+ error_2 = _a.sent();
109
+ console.error("Failed to toggle follow status:", error_2);
110
+ return [3 /*break*/, 7];
111
+ case 7: return [2 /*return*/];
112
+ }
113
+ });
114
+ }); }, [isFollowing, isLoading, userId, followUser, unfollowUser]);
115
+ return {
116
+ isFollowing: isFollowing,
117
+ isLoading: isLoading,
118
+ toggleFollow: toggleFollow,
119
+ };
120
+ }
121
+ exports.default = useFollowManager;
122
+ //# sourceMappingURL=useFollowManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFollowManager.js","sourceRoot":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,CAAC,CAAC;IAE1B,IAAM,YAAY,GAAG,IAAA,mBAAW,EAAC;;;;;oBAC/B,IAAI,WAAW,KAAK,IAAI,IAAI,SAAS,IAAI,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,MAAK,MAAM;wBAAE,sBAAO;;;;yBAG/D,WAAW,EAAX,wBAAW;oBACb,qBAAM,YAAY,CAAC,EAAE,MAAM,QAAA,EAAE,CAAC,EAAA;;oBAA9B,SAA8B,CAAC;oBAC/B,cAAc,CAAC,KAAK,CAAC,CAAC;;wBAEtB,qBAAM,UAAU,CAAC,EAAE,MAAM,QAAA,EAAE,CAAC,EAAA;;oBAA5B,SAA4B,CAAC;oBAC7B,cAAc,CAAC,IAAI,CAAC,CAAC;;;;;oBAGvB,OAAO,CAAC,KAAK,CAAC,iCAAiC,EAAE,OAAK,CAAC,CAAC;;;;;SAE3D,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC,CAAC;IAE/D,OAAO;QACL,WAAW,aAAA;QACX,SAAS,WAAA;QACT,YAAY,cAAA;KACb,CAAC;AACJ,CAAC;AAED,kBAAe,gBAAgB,CAAC"}
@@ -42,12 +42,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
42
42
  var react_1 = require("react");
43
43
  var useAxiosPrivate_1 = __importDefault(require("../../../config/useAxiosPrivate"));
44
44
  var useProject_1 = __importDefault(require("../../projects/useProject"));
45
- var auth_redux_1 = require("../../auth-redux");
45
+ var user_1 = require("../../user");
46
46
  function useUnfollowUser() {
47
47
  var _this = this;
48
48
  var axios = (0, useAxiosPrivate_1.default)();
49
49
  var projectId = (0, useProject_1.default)().projectId;
50
- var user = (0, auth_redux_1.useUserRedux)().user;
50
+ var user = (0, user_1.useUser)().user;
51
51
  var unfollowUser = (0, react_1.useCallback)(function (props) { return __awaiter(_this, void 0, void 0, function () {
52
52
  var userId;
53
53
  return __generator(this, function (_a) {
@@ -1 +1 @@
1
- {"version":3,"file":"useUnfollowUser.js","sourceRoot":"","sources":["../../../../../src/hooks/users/follows/useUnfollowUser.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,oFAA8D;AAC9D,yEAAmD;AACnD,+CAAgD;AAEhD,SAAS,eAAe;IAAxB,iBAgCC;IA/BC,IAAM,KAAK,GAAG,IAAA,yBAAe,GAAE,CAAC;IACxB,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAC3B,IAAA,IAAI,GAAK,IAAA,yBAAY,GAAE,KAAnB,CAAoB;IAEhC,IAAM,YAAY,GAAG,IAAA,mBAAW,EAC9B,UAAO,KAAyB;;;;;oBACtB,MAAM,GAAK,KAAK,OAAV,CAAW;oBACzB,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,IAAI,CAAC,IAAI,EAAE,CAAC;wBACV,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,IAAI,CAAC,MAAM,EAAE,CAAC;wBACZ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;oBAC7C,CAAC;oBAED,IAAI,MAAM,KAAK,IAAI,CAAC,EAAE,EAAE,CAAC;wBACvB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;oBACrD,CAAC;oBAED,qBAAM,KAAK,CAAC,MAAM,CAAC,WAAI,SAAS,oBAAU,MAAM,YAAS,EAAE;4BACzD,eAAe,EAAE,IAAI;yBACtB,CAAC,EAAA;;oBAFF,SAEE,CAAC;;;;SACJ,EACD,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,CACzB,CAAC;IAEF,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,kBAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"useUnfollowUser.js","sourceRoot":"","sources":["../../../../../src/hooks/users/follows/useUnfollowUser.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,oFAA8D;AAC9D,yEAAmD;AACnD,mCAAqC;AAErC,SAAS,eAAe;IAAxB,iBAgCC;IA/BC,IAAM,KAAK,GAAG,IAAA,yBAAe,GAAE,CAAC;IACxB,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAC3B,IAAA,IAAI,GAAK,IAAA,cAAO,GAAE,KAAd,CAAe;IAE3B,IAAM,YAAY,GAAG,IAAA,mBAAW,EAC9B,UAAO,KAAyB;;;;;oBACtB,MAAM,GAAK,KAAK,OAAV,CAAW;oBACzB,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,IAAI,CAAC,IAAI,EAAE,CAAC;wBACV,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,IAAI,CAAC,MAAM,EAAE,CAAC;wBACZ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;oBAC7C,CAAC;oBAED,IAAI,MAAM,KAAK,IAAI,CAAC,EAAE,EAAE,CAAC;wBACvB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;oBACrD,CAAC;oBAED,qBAAM,KAAK,CAAC,MAAM,CAAC,WAAI,SAAS,oBAAU,MAAM,YAAS,EAAE;4BACzD,eAAe,EAAE,IAAI;yBACtB,CAAC,EAAA;;oBAFF,SAEE,CAAC;;;;SACJ,EACD,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,CACzB,CAAC;IAEF,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,kBAAe,eAAe,CAAC"}
@@ -6,4 +6,4 @@ export { default as useCheckUsernameAvailability } from "./useCheckUsernameAvail
6
6
  export { default as useFetchUserSuggestions } from "./useFetchUserSuggestions";
7
7
  export { default as useMentions } from "./useMentions";
8
8
  export { default as useUpdateUser } from "./useUpdateUser";
9
- export { useFetchFollow, useFollowUser, useUnfollowUser } from "./follows";
9
+ export { useFetchFollow, useFollowUser, useUnfollowUser, useFollowManager, } from "./follows";
@@ -3,10 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.useUnfollowUser = exports.useFollowUser = exports.useFetchFollow = exports.useUpdateUser = exports.useMentions = exports.useFetchUserSuggestions = exports.useCheckUsernameAvailability = exports.useFetchUserFollowingCount = exports.useFetchUserFollowersCount = exports.useFetchUserByForeignId = exports.useFetchUser = void 0;
7
- // Legacy hooks moved to legacy folder
8
- // export { default as useUser } from "./useUser";
9
- // export { default as useUserData } from "./useUserData";
6
+ exports.useFollowManager = exports.useUnfollowUser = exports.useFollowUser = exports.useFetchFollow = exports.useUpdateUser = exports.useMentions = exports.useFetchUserSuggestions = exports.useCheckUsernameAvailability = exports.useFetchUserFollowingCount = exports.useFetchUserFollowersCount = exports.useFetchUserByForeignId = exports.useFetchUser = void 0;
10
7
  var useFetchUser_1 = require("./useFetchUser");
11
8
  Object.defineProperty(exports, "useFetchUser", { enumerable: true, get: function () { return __importDefault(useFetchUser_1).default; } });
12
9
  var useFetchUserByForeignId_1 = require("./useFetchUserByForeignId");
@@ -27,4 +24,5 @@ var follows_1 = require("./follows");
27
24
  Object.defineProperty(exports, "useFetchFollow", { enumerable: true, get: function () { return follows_1.useFetchFollow; } });
28
25
  Object.defineProperty(exports, "useFollowUser", { enumerable: true, get: function () { return follows_1.useFollowUser; } });
29
26
  Object.defineProperty(exports, "useUnfollowUser", { enumerable: true, get: function () { return follows_1.useUnfollowUser; } });
27
+ Object.defineProperty(exports, "useFollowManager", { enumerable: true, get: function () { return follows_1.useFollowManager; } });
30
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/users/index.ts"],"names":[],"mappings":";;;;;;AAAA,sCAAsC;AACtC,kDAAkD;AAClD,0DAA0D;AAC1D,+CAAyD;AAAhD,6HAAA,OAAO,OAAgB;AAChC,qEAA+E;AAAtE,mJAAA,OAAO,OAA2B;AAC3C,2EAAqF;AAA5E,yJAAA,OAAO,OAA8B;AAC9C,2EAAqF;AAA5E,yJAAA,OAAO,OAA8B;AAC9C,+EAAyF;AAAhF,6JAAA,OAAO,OAAgC;AAChD,qEAA+E;AAAtE,mJAAA,OAAO,OAA2B;AAC3C,6CAAuD;AAA9C,2HAAA,OAAO,OAAe;AAC/B,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB;AAEjC,qCAA2E;AAAlE,yGAAA,cAAc,OAAA;AAAE,wGAAA,aAAa,OAAA;AAAE,0GAAA,eAAe,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/users/index.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAyD;AAAhD,6HAAA,OAAO,OAAgB;AAChC,qEAA+E;AAAtE,mJAAA,OAAO,OAA2B;AAC3C,2EAAqF;AAA5E,yJAAA,OAAO,OAA8B;AAC9C,2EAAqF;AAA5E,yJAAA,OAAO,OAA8B;AAC9C,+EAAyF;AAAhF,6JAAA,OAAO,OAAgC;AAChD,qEAA+E;AAAtE,mJAAA,OAAO,OAA2B;AAC3C,6CAAuD;AAA9C,2HAAA,OAAO,OAAe;AAC/B,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB;AAEjC,qCAKmB;AAJjB,yGAAA,cAAc,OAAA;AACd,wGAAA,aAAa,OAAA;AACb,0GAAA,eAAe,OAAA;AACf,2GAAA,gBAAgB,OAAA"}
@@ -1,21 +1,22 @@
1
1
  export { handleError } from "./utils/handleError";
2
+ export { keywordHelpers } from "./utils/keywordHelpers";
2
3
  export { safeMergeStyleProps } from "./helpers/safeMergeStyleProps";
3
4
  export { getUserName } from "./helpers/getUserName";
4
5
  export { default as getPublicFileUrl } from "./helpers/getPublicFileUrl";
6
+ export { isDevelopment, isProduction, getApiBaseUrl, getEnvVar, } from "./utils/env";
5
7
  export { reportReasons } from "./constants/reportReasons";
6
8
  export type { ReportReasonKey } from "./constants/reportReasons";
7
- export { ReplykeProvider, // Always includes Redux
8
- ReplykeStoreProvider, // Advanced: standalone Redux provider
9
- EntityListProvider, EntityProvider, CommentSectionProvider, } from "./context";
9
+ export { ReplykeProvider, EntityProvider, CommentSectionProvider, } from "./context";
10
10
  export { useProject, useProjectData } from "./hooks/projects";
11
11
  export { useSignTestingJwt } from "./hooks/crypto";
12
- export { useAuthRedux, type UseAuthReduxValues } from "./hooks/auth-redux";
13
- export { useUserRedux, useUserActionsRedux, type UseUserReduxProps, type UseUserReduxValues, } from "./hooks/user-redux";
14
- export { useAppNotificationsRedux, useAppNotificationsActionsRedux, type UseAppNotificationsReduxProps, type UseAppNotificationsReduxValues, } from "./hooks/app-notifications-redux";
15
- export { useListsRedux, useListsActionsRedux, useIsEntitySaved, type UseListsReduxProps, type UseListsReduxValues, } from "./hooks/lists-redux";
16
- export { useEntity, useEntityData, useCreateEntity, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useUpdateEntity, useEntityVotes, useDeleteEntity, useEntityList, useEntityListData, useInfusedData, } from "./hooks/entities";
12
+ export { useAuth, type UseAuthValues } from "./hooks/auth";
13
+ export { useUser, useUserActions, type UseUserProps, type UseUserValues, } from "./hooks/user";
14
+ export { useAppNotifications, useAppNotificationsActions, type UseAppNotificationsProps, type UseAppNotificationsValues, } from "./hooks/app-notifications";
15
+ export { useLists, useListsActions, useIsEntitySaved, type UseListsProps, type UseListsValues, } from "./hooks/lists";
16
+ export { useEntity, useEntityData, useCreateEntity, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useUpdateEntity, useEntityVotes, useDeleteEntity, useInfusedData, } from "./hooks/entities";
17
+ export { useEntityList, useEntityListActions, type UseEntityListProps, type UseEntityListValues, type EntityListFilters, type EntityListFetchOptions, } from "./hooks/entity-lists";
17
18
  export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment, useCommentVotes, useDeleteComment, useEntityComments, useProfileComments, } from "./hooks/comments";
18
- export { useFetchUser, useFetchUserByForeignId, useFetchUserFollowersCount, useFetchUserFollowingCount, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions, useUpdateUser, useFetchFollow, useFollowUser, useUnfollowUser, } from "./hooks/users";
19
+ export { useFetchUser, useFetchUserByForeignId, useFetchUserFollowersCount, useFetchUserFollowingCount, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions, useUpdateUser, useFetchFollow, useFollowUser, useUnfollowUser, useFollowManager, } from "./hooks/users";
19
20
  export { useCreateReport } from "./hooks/reports";
20
21
  export { useGetMetadata } from "./hooks/utils";
21
22
  export { useUploadFile } from "./hooks/storage";
package/dist/cjs/index.js CHANGED
@@ -36,25 +36,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.useCheckUsernameAvailability = exports.useFetchUserFollowingCount = exports.useFetchUserFollowersCount = exports.useFetchUserByForeignId = exports.useFetchUser = exports.useProfileComments = exports.useEntityComments = exports.useDeleteComment = exports.useCommentVotes = exports.useUpdateComment = exports.useReplies = exports.useFetchCommentByForeignId = exports.useFetchComment = exports.useFetchManyComments = exports.useCreateComment = exports.useCommentSectionData = exports.useCommentSection = exports.useInfusedData = exports.useEntityListData = exports.useEntityList = exports.useDeleteEntity = exports.useEntityVotes = exports.useUpdateEntity = exports.useFetchEntityByShortId = exports.useFetchEntityByForeignId = exports.useFetchEntity = exports.useCreateEntity = exports.useEntityData = exports.useEntity = exports.useIsEntitySaved = exports.useListsActionsRedux = exports.useListsRedux = exports.useAppNotificationsActionsRedux = exports.useAppNotificationsRedux = exports.useUserActionsRedux = exports.useUserRedux = exports.useAuthRedux = exports.useSignTestingJwt = exports.useProjectData = exports.useProject = exports.CommentSectionProvider = exports.EntityProvider = exports.EntityListProvider = exports.ReplykeStoreProvider = exports.ReplykeProvider = exports.reportReasons = exports.getPublicFileUrl = exports.getUserName = exports.safeMergeStyleProps = exports.handleError = void 0;
40
- exports.AppNotification = exports.useUploadFile = exports.useGetMetadata = exports.useCreateReport = exports.useUnfollowUser = exports.useFollowUser = exports.useFetchFollow = exports.useUpdateUser = exports.useMentions = exports.useFetchUserSuggestions = void 0;
39
+ exports.useFetchUserByForeignId = exports.useFetchUser = exports.useProfileComments = exports.useEntityComments = exports.useDeleteComment = exports.useCommentVotes = exports.useUpdateComment = exports.useReplies = exports.useFetchCommentByForeignId = exports.useFetchComment = exports.useFetchManyComments = exports.useCreateComment = exports.useCommentSectionData = exports.useCommentSection = exports.useEntityListActions = exports.useEntityList = exports.useInfusedData = exports.useDeleteEntity = exports.useEntityVotes = exports.useUpdateEntity = exports.useFetchEntityByShortId = exports.useFetchEntityByForeignId = exports.useFetchEntity = exports.useCreateEntity = exports.useEntityData = exports.useEntity = exports.useIsEntitySaved = exports.useListsActions = exports.useLists = exports.useAppNotificationsActions = exports.useAppNotifications = exports.useUserActions = exports.useUser = exports.useAuth = exports.useSignTestingJwt = exports.useProjectData = exports.useProject = exports.CommentSectionProvider = exports.EntityProvider = exports.ReplykeProvider = exports.reportReasons = exports.getEnvVar = exports.getApiBaseUrl = exports.isProduction = exports.isDevelopment = exports.getPublicFileUrl = exports.getUserName = exports.safeMergeStyleProps = exports.keywordHelpers = exports.handleError = void 0;
40
+ exports.AppNotification = exports.useUploadFile = exports.useGetMetadata = exports.useCreateReport = exports.useFollowManager = exports.useUnfollowUser = exports.useFollowUser = exports.useFetchFollow = exports.useUpdateUser = exports.useMentions = exports.useFetchUserSuggestions = exports.useCheckUsernameAvailability = exports.useFetchUserFollowingCount = exports.useFetchUserFollowersCount = void 0;
41
41
  // Helpers & Utilities
42
42
  var handleError_1 = require("./utils/handleError");
43
43
  Object.defineProperty(exports, "handleError", { enumerable: true, get: function () { return handleError_1.handleError; } });
44
+ var keywordHelpers_1 = require("./utils/keywordHelpers");
45
+ Object.defineProperty(exports, "keywordHelpers", { enumerable: true, get: function () { return keywordHelpers_1.keywordHelpers; } });
44
46
  var safeMergeStyleProps_1 = require("./helpers/safeMergeStyleProps");
45
47
  Object.defineProperty(exports, "safeMergeStyleProps", { enumerable: true, get: function () { return safeMergeStyleProps_1.safeMergeStyleProps; } });
46
48
  var getUserName_1 = require("./helpers/getUserName");
47
49
  Object.defineProperty(exports, "getUserName", { enumerable: true, get: function () { return getUserName_1.getUserName; } });
48
50
  var getPublicFileUrl_1 = require("./helpers/getPublicFileUrl");
49
51
  Object.defineProperty(exports, "getPublicFileUrl", { enumerable: true, get: function () { return __importDefault(getPublicFileUrl_1).default; } });
52
+ var env_1 = require("./utils/env");
53
+ Object.defineProperty(exports, "isDevelopment", { enumerable: true, get: function () { return env_1.isDevelopment; } });
54
+ Object.defineProperty(exports, "isProduction", { enumerable: true, get: function () { return env_1.isProduction; } });
55
+ Object.defineProperty(exports, "getApiBaseUrl", { enumerable: true, get: function () { return env_1.getApiBaseUrl; } });
56
+ Object.defineProperty(exports, "getEnvVar", { enumerable: true, get: function () { return env_1.getEnvVar; } });
50
57
  // Constants
51
58
  var reportReasons_1 = require("./constants/reportReasons");
52
59
  Object.defineProperty(exports, "reportReasons", { enumerable: true, get: function () { return reportReasons_1.reportReasons; } });
53
60
  // Context providers (Redux-powered by default)
54
61
  var context_1 = require("./context");
55
62
  Object.defineProperty(exports, "ReplykeProvider", { enumerable: true, get: function () { return context_1.ReplykeProvider; } });
56
- Object.defineProperty(exports, "ReplykeStoreProvider", { enumerable: true, get: function () { return context_1.ReplykeStoreProvider; } });
57
- Object.defineProperty(exports, "EntityListProvider", { enumerable: true, get: function () { return context_1.EntityListProvider; } });
58
63
  Object.defineProperty(exports, "EntityProvider", { enumerable: true, get: function () { return context_1.EntityProvider; } });
59
64
  Object.defineProperty(exports, "CommentSectionProvider", { enumerable: true, get: function () { return context_1.CommentSectionProvider; } });
60
65
  // -- projects
@@ -65,21 +70,21 @@ Object.defineProperty(exports, "useProjectData", { enumerable: true, get: functi
65
70
  var crypto_1 = require("./hooks/crypto");
66
71
  Object.defineProperty(exports, "useSignTestingJwt", { enumerable: true, get: function () { return crypto_1.useSignTestingJwt; } });
67
72
  // -- authentication (Redux-powered)
68
- var auth_redux_1 = require("./hooks/auth-redux");
69
- Object.defineProperty(exports, "useAuthRedux", { enumerable: true, get: function () { return auth_redux_1.useAuthRedux; } });
73
+ var auth_1 = require("./hooks/auth");
74
+ Object.defineProperty(exports, "useAuth", { enumerable: true, get: function () { return auth_1.useAuth; } });
70
75
  // -- (current) user (Redux-powered)
71
- var user_redux_1 = require("./hooks/user-redux");
72
- Object.defineProperty(exports, "useUserRedux", { enumerable: true, get: function () { return user_redux_1.useUserRedux; } });
73
- Object.defineProperty(exports, "useUserActionsRedux", { enumerable: true, get: function () { return user_redux_1.useUserActionsRedux; } });
76
+ var user_1 = require("./hooks/user");
77
+ Object.defineProperty(exports, "useUser", { enumerable: true, get: function () { return user_1.useUser; } });
78
+ Object.defineProperty(exports, "useUserActions", { enumerable: true, get: function () { return user_1.useUserActions; } });
74
79
  // -- app notifications (Redux-powered)
75
- var app_notifications_redux_1 = require("./hooks/app-notifications-redux");
76
- Object.defineProperty(exports, "useAppNotificationsRedux", { enumerable: true, get: function () { return app_notifications_redux_1.useAppNotificationsRedux; } });
77
- Object.defineProperty(exports, "useAppNotificationsActionsRedux", { enumerable: true, get: function () { return app_notifications_redux_1.useAppNotificationsActionsRedux; } });
80
+ var app_notifications_1 = require("./hooks/app-notifications");
81
+ Object.defineProperty(exports, "useAppNotifications", { enumerable: true, get: function () { return app_notifications_1.useAppNotifications; } });
82
+ Object.defineProperty(exports, "useAppNotificationsActions", { enumerable: true, get: function () { return app_notifications_1.useAppNotificationsActions; } });
78
83
  // -- lists (Redux-powered)
79
- var lists_redux_1 = require("./hooks/lists-redux");
80
- Object.defineProperty(exports, "useListsRedux", { enumerable: true, get: function () { return lists_redux_1.useListsRedux; } });
81
- Object.defineProperty(exports, "useListsActionsRedux", { enumerable: true, get: function () { return lists_redux_1.useListsActionsRedux; } });
82
- Object.defineProperty(exports, "useIsEntitySaved", { enumerable: true, get: function () { return lists_redux_1.useIsEntitySaved; } });
84
+ var lists_1 = require("./hooks/lists");
85
+ Object.defineProperty(exports, "useLists", { enumerable: true, get: function () { return lists_1.useLists; } });
86
+ Object.defineProperty(exports, "useListsActions", { enumerable: true, get: function () { return lists_1.useListsActions; } });
87
+ Object.defineProperty(exports, "useIsEntitySaved", { enumerable: true, get: function () { return lists_1.useIsEntitySaved; } });
83
88
  // -- entities
84
89
  var entities_1 = require("./hooks/entities");
85
90
  Object.defineProperty(exports, "useEntity", { enumerable: true, get: function () { return entities_1.useEntity; } });
@@ -91,9 +96,11 @@ Object.defineProperty(exports, "useFetchEntityByShortId", { enumerable: true, ge
91
96
  Object.defineProperty(exports, "useUpdateEntity", { enumerable: true, get: function () { return entities_1.useUpdateEntity; } });
92
97
  Object.defineProperty(exports, "useEntityVotes", { enumerable: true, get: function () { return entities_1.useEntityVotes; } });
93
98
  Object.defineProperty(exports, "useDeleteEntity", { enumerable: true, get: function () { return entities_1.useDeleteEntity; } });
94
- Object.defineProperty(exports, "useEntityList", { enumerable: true, get: function () { return entities_1.useEntityList; } });
95
- Object.defineProperty(exports, "useEntityListData", { enumerable: true, get: function () { return entities_1.useEntityListData; } });
96
99
  Object.defineProperty(exports, "useInfusedData", { enumerable: true, get: function () { return entities_1.useInfusedData; } });
100
+ // -- entity lists (Redux-powered)
101
+ var entity_lists_1 = require("./hooks/entity-lists");
102
+ Object.defineProperty(exports, "useEntityList", { enumerable: true, get: function () { return entity_lists_1.useEntityList; } });
103
+ Object.defineProperty(exports, "useEntityListActions", { enumerable: true, get: function () { return entity_lists_1.useEntityListActions; } });
97
104
  // -- comments
98
105
  var comments_1 = require("./hooks/comments");
99
106
  Object.defineProperty(exports, "useCommentSection", { enumerable: true, get: function () { return comments_1.useCommentSection; } });
@@ -121,6 +128,7 @@ Object.defineProperty(exports, "useUpdateUser", { enumerable: true, get: functio
121
128
  Object.defineProperty(exports, "useFetchFollow", { enumerable: true, get: function () { return users_1.useFetchFollow; } });
122
129
  Object.defineProperty(exports, "useFollowUser", { enumerable: true, get: function () { return users_1.useFollowUser; } });
123
130
  Object.defineProperty(exports, "useUnfollowUser", { enumerable: true, get: function () { return users_1.useUnfollowUser; } });
131
+ Object.defineProperty(exports, "useFollowManager", { enumerable: true, get: function () { return users_1.useFollowManager; } });
124
132
  // -- reports
125
133
  var reports_1 = require("./hooks/reports");
126
134
  Object.defineProperty(exports, "useCreateReport", { enumerable: true, get: function () { return reports_1.useCreateReport; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sBAAsB;AACtB,mDAAkD;AAAzC,0GAAA,WAAW,OAAA;AACpB,qEAAoE;AAA3D,0HAAA,mBAAmB,OAAA;AAC5B,qDAAoD;AAA3C,0GAAA,WAAW,OAAA;AACpB,+DAAyE;AAAhE,qIAAA,OAAO,OAAoB;AAEpC,YAAY;AACZ,2DAA0D;AAAjD,8GAAA,aAAa,OAAA;AAGtB,+CAA+C;AAC/C,qCAMmB;AALjB,0GAAA,eAAe,OAAA;AACf,+GAAA,oBAAoB,OAAA;AACpB,6GAAA,kBAAkB,OAAA;AAClB,yGAAA,cAAc,OAAA;AACd,iHAAA,sBAAsB,OAAA;AAGxB,cAAc;AACd,6CAA8D;AAArD,sGAAA,UAAU,OAAA;AAAE,0GAAA,cAAc,OAAA;AAEnC,YAAY;AACZ,yCAAmD;AAA1C,2GAAA,iBAAiB,OAAA;AAE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AACb,uCAA+C;AAAtC,uGAAA,cAAc,OAAA;AAEvB,aAAa;AACb,2CAAgD;AAAvC,wGAAA,aAAa,OAAA;AAKtB,uFAAuE"}
@@ -1,4 +1,4 @@
1
- type AppNotificationType = "entity-comment" | "comment-reply" | "entity-mention" | "comment-mention" | "entity-upvote" | "comment-upvote" | "new-follow";
1
+ type AppNotificationType = "system" | "entity-comment" | "comment-reply" | "entity-mention" | "comment-mention" | "entity-upvote" | "comment-upvote" | "new-follow";
2
2
  interface BaseAppNotification {
3
3
  id: string;
4
4
  userId: string;
@@ -9,6 +9,16 @@ interface BaseAppNotification {
9
9
  content?: string;
10
10
  createdAt: string;
11
11
  }
12
+ export interface SystemNotification extends BaseAppNotification {
13
+ type: "system";
14
+ action: string;
15
+ metadata: {
16
+ buttonData: {
17
+ text: string;
18
+ url: string;
19
+ } | null;
20
+ };
21
+ }
12
22
  export interface EntityCommentNotification extends BaseAppNotification {
13
23
  type: "entity-comment";
14
24
  action: "open-comment";
@@ -113,7 +123,7 @@ export interface NewFollowNotification extends BaseAppNotification {
113
123
  initiatorAvatar: string | null | undefined;
114
124
  };
115
125
  }
116
- export type UnifiedAppNotification = EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | NewFollowNotification;
126
+ export type UnifiedAppNotification = SystemNotification | EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | NewFollowNotification;
117
127
  export type NotificationTemplate = {
118
128
  title?: string;
119
129
  content?: string;
@@ -24,6 +24,7 @@ export interface Comment {
24
24
  upvotes: string[];
25
25
  downvotes: string[];
26
26
  repliesCount: number;
27
+ metadata: Record<string, any>;
27
28
  createdAt: Date;
28
29
  updatedAt: Date;
29
30
  deletedAt: Date | null;
@@ -12,6 +12,7 @@ export interface Entity {
12
12
  foreignId: string | null;
13
13
  shortId: string;
14
14
  projectId: string;
15
+ sourceId: string | null;
15
16
  user?: User | null;
16
17
  title: string | null;
17
18
  content: string | null;