@replyke/core 5.1.5 → 5.1.6-beta.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 (317) hide show
  1. package/dist/cjs/config/useAxiosPrivate.js +2 -5
  2. package/dist/cjs/config/useAxiosPrivate.js.map +1 -1
  3. package/dist/cjs/context/index.d.ts +1 -2
  4. package/dist/cjs/context/index.js +3 -5
  5. package/dist/cjs/context/index.js.map +1 -1
  6. package/dist/cjs/context/replyke-context.js +2 -2
  7. package/dist/cjs/context/replyke-context.js.map +1 -1
  8. package/dist/cjs/context/replyke-store-context.d.ts +13 -0
  9. package/dist/cjs/context/replyke-store-context.js +37 -0
  10. package/dist/cjs/context/replyke-store-context.js.map +1 -0
  11. package/dist/cjs/helpers/addNotificationsMessages.js +7 -9
  12. package/dist/cjs/helpers/addNotificationsMessages.js.map +1 -1
  13. package/dist/cjs/hooks/app-notifications-redux/index.d.ts +4 -0
  14. package/dist/cjs/hooks/app-notifications-redux/index.js +14 -0
  15. package/dist/cjs/hooks/app-notifications-redux/index.js.map +1 -0
  16. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsActionsRedux.d.ts +13 -0
  17. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsActionsRedux.js +266 -0
  18. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsActionsRedux.js.map +1 -0
  19. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsDataRedux.d.ts +21 -0
  20. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsDataRedux.js +108 -0
  21. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsDataRedux.js.map +1 -0
  22. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsRedux.d.ts +7 -0
  23. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsRedux.js +38 -0
  24. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsRedux.js.map +1 -0
  25. package/dist/cjs/hooks/auth-redux/index.d.ts +2 -0
  26. package/dist/cjs/hooks/auth-redux/index.js +11 -0
  27. package/dist/cjs/hooks/auth-redux/index.js.map +1 -0
  28. package/dist/cjs/hooks/auth-redux/useAuthRedux.d.ts +32 -0
  29. package/dist/cjs/hooks/auth-redux/useAuthRedux.js +180 -0
  30. package/dist/cjs/hooks/auth-redux/useAuthRedux.js.map +1 -0
  31. package/dist/cjs/hooks/auth-redux/useUserRedux.d.ts +6 -0
  32. package/dist/cjs/hooks/auth-redux/useUserRedux.js +20 -0
  33. package/dist/cjs/hooks/auth-redux/useUserRedux.js.map +1 -0
  34. package/dist/cjs/hooks/comments/useCommentSectionData.js +2 -2
  35. package/dist/cjs/hooks/comments/useCommentSectionData.js.map +1 -1
  36. package/dist/cjs/hooks/comments/useCommentVotes.js +2 -2
  37. package/dist/cjs/hooks/comments/useCommentVotes.js.map +1 -1
  38. package/dist/cjs/hooks/comments/useCreateComment.js +2 -2
  39. package/dist/cjs/hooks/comments/useCreateComment.js.map +1 -1
  40. package/dist/cjs/hooks/entities/useEntityData.js +2 -2
  41. package/dist/cjs/hooks/entities/useEntityData.js.map +1 -1
  42. package/dist/cjs/hooks/entities/useEntityVotes.js +2 -2
  43. package/dist/cjs/hooks/entities/useEntityVotes.js.map +1 -1
  44. package/dist/cjs/hooks/lists/useIsEntitySaved.js +2 -2
  45. package/dist/cjs/hooks/lists/useIsEntitySaved.js.map +1 -1
  46. package/dist/cjs/hooks/lists/useListsData.js +2 -2
  47. package/dist/cjs/hooks/lists/useListsData.js.map +1 -1
  48. package/dist/cjs/hooks/reports/useCreateReport.js +2 -2
  49. package/dist/cjs/hooks/reports/useCreateReport.js.map +1 -1
  50. package/dist/cjs/hooks/users/follows/useFetchFollow.js +2 -2
  51. package/dist/cjs/hooks/users/follows/useFetchFollow.js.map +1 -1
  52. package/dist/cjs/hooks/users/follows/useUnfollowUser.js +2 -2
  53. package/dist/cjs/hooks/users/follows/useUnfollowUser.js.map +1 -1
  54. package/dist/cjs/index.d.ts +6 -4
  55. package/dist/cjs/index.js +12 -22
  56. package/dist/cjs/index.js.map +1 -1
  57. package/dist/cjs/interfaces/models/AppNotification.d.ts +1 -1
  58. package/dist/cjs/legacy/context/app-notifications-context.js.map +1 -0
  59. package/dist/cjs/{context → legacy/context}/auth-context.js +1 -1
  60. package/dist/cjs/legacy/context/auth-context.js.map +1 -0
  61. package/dist/cjs/legacy/hooks/app-notifications/index.js.map +1 -0
  62. package/dist/cjs/legacy/hooks/app-notifications/useAppNotifications.js.map +1 -0
  63. package/dist/{esm → cjs/legacy}/hooks/app-notifications/useAppNotificationsData.d.ts +1 -1
  64. package/dist/cjs/{hooks → legacy/hooks}/app-notifications/useAppNotificationsData.js +2 -2
  65. package/dist/cjs/legacy/hooks/app-notifications/useAppNotificationsData.js.map +1 -0
  66. package/dist/cjs/{hooks → legacy/hooks}/app-notifications/useCountUnreadNotifications.js +4 -4
  67. package/dist/cjs/legacy/hooks/app-notifications/useCountUnreadNotifications.js.map +1 -0
  68. package/dist/cjs/{hooks → legacy/hooks}/app-notifications/useFetchAppNotifications.d.ts +1 -1
  69. package/dist/cjs/{hooks → legacy/hooks}/app-notifications/useFetchAppNotifications.js +4 -4
  70. package/dist/cjs/legacy/hooks/app-notifications/useFetchAppNotifications.js.map +1 -0
  71. package/dist/cjs/{hooks → legacy/hooks}/app-notifications/useMarkNotificationAsRead.js +4 -4
  72. package/dist/cjs/legacy/hooks/app-notifications/useMarkNotificationAsRead.js.map +1 -0
  73. package/dist/cjs/legacy/hooks/auth/index.js.map +1 -0
  74. package/dist/cjs/legacy/hooks/auth/useAuth.js.map +1 -0
  75. package/dist/cjs/{hooks → legacy/hooks}/auth/useAuthData.d.ts +1 -1
  76. package/dist/cjs/{hooks → legacy/hooks}/auth/useAuthData.js +2 -2
  77. package/dist/cjs/legacy/hooks/auth/useAuthData.js.map +1 -0
  78. package/dist/cjs/{hooks → legacy/hooks}/auth/useChangePassword.js +3 -3
  79. package/dist/cjs/legacy/hooks/auth/useChangePassword.js.map +1 -0
  80. package/dist/cjs/{hooks → legacy/hooks}/auth/useRequestNewAccessToken.js +3 -3
  81. package/dist/cjs/legacy/hooks/auth/useRequestNewAccessToken.js.map +1 -0
  82. package/dist/cjs/{hooks → legacy/hooks}/auth/useSignInWithEmailAndPassword.js +3 -3
  83. package/dist/cjs/legacy/hooks/auth/useSignInWithEmailAndPassword.js.map +1 -0
  84. package/dist/cjs/{hooks → legacy/hooks}/auth/useSignOut.js +3 -3
  85. package/dist/cjs/legacy/hooks/auth/useSignOut.js.map +1 -0
  86. package/dist/cjs/{hooks → legacy/hooks}/auth/useSignUpWithEmailAndPassword.js +3 -3
  87. package/dist/cjs/legacy/hooks/auth/useSignUpWithEmailAndPassword.js.map +1 -0
  88. package/dist/cjs/{hooks → legacy/hooks}/auth/useVerifyExternalUser.js +2 -2
  89. package/dist/cjs/legacy/hooks/auth/useVerifyExternalUser.js.map +1 -0
  90. package/dist/cjs/store/api/appNotificationsApi.d.ts +2021 -0
  91. package/dist/cjs/store/api/appNotificationsApi.js +213 -0
  92. package/dist/cjs/store/api/appNotificationsApi.js.map +1 -0
  93. package/dist/cjs/store/api/baseApi.d.ts +1 -0
  94. package/dist/cjs/store/api/baseApi.js +42 -0
  95. package/dist/cjs/store/api/baseApi.js.map +1 -0
  96. package/dist/cjs/store/api/index.d.ts +2 -0
  97. package/dist/cjs/store/api/index.js +27 -0
  98. package/dist/cjs/store/api/index.js.map +1 -0
  99. package/dist/cjs/store/index.d.ts +15 -0
  100. package/dist/cjs/store/index.js +72 -0
  101. package/dist/cjs/store/index.js.map +1 -0
  102. package/dist/cjs/store/middleware.d.ts +4 -0
  103. package/dist/cjs/store/middleware.js +42 -0
  104. package/dist/cjs/store/middleware.js.map +1 -0
  105. package/dist/cjs/store/rootReducer.d.ts +10 -0
  106. package/dist/cjs/store/rootReducer.js +20 -0
  107. package/dist/cjs/store/rootReducer.js.map +1 -0
  108. package/dist/cjs/store/slices/appNotificationsSlice.d.ts +58 -0
  109. package/dist/cjs/store/slices/appNotificationsSlice.js +135 -0
  110. package/dist/cjs/store/slices/appNotificationsSlice.js.map +1 -0
  111. package/dist/cjs/store/slices/authSlice.d.ts +24 -0
  112. package/dist/cjs/store/slices/authSlice.js +79 -0
  113. package/dist/cjs/store/slices/authSlice.js.map +1 -0
  114. package/dist/cjs/store/slices/authThunks.d.ts +40 -0
  115. package/dist/cjs/store/slices/authThunks.js +357 -0
  116. package/dist/cjs/store/slices/authThunks.js.map +1 -0
  117. package/dist/cjs/store/slices/index.d.ts +1 -0
  118. package/dist/cjs/store/slices/index.js +23 -0
  119. package/dist/cjs/store/slices/index.js.map +1 -0
  120. package/dist/cjs/store/types/index.d.ts +8 -0
  121. package/dist/cjs/store/types/index.js +3 -0
  122. package/dist/cjs/store/types/index.js.map +1 -0
  123. package/dist/esm/config/useAxiosPrivate.js +2 -2
  124. package/dist/esm/config/useAxiosPrivate.js.map +1 -1
  125. package/dist/esm/context/index.d.ts +1 -2
  126. package/dist/esm/context/index.js +1 -2
  127. package/dist/esm/context/index.js.map +1 -1
  128. package/dist/esm/context/replyke-context.js +2 -2
  129. package/dist/esm/context/replyke-context.js.map +1 -1
  130. package/dist/esm/context/replyke-store-context.d.ts +13 -0
  131. package/dist/esm/context/replyke-store-context.js +33 -0
  132. package/dist/esm/context/replyke-store-context.js.map +1 -0
  133. package/dist/esm/helpers/addNotificationsMessages.js +7 -9
  134. package/dist/esm/helpers/addNotificationsMessages.js.map +1 -1
  135. package/dist/esm/hooks/app-notifications-redux/index.d.ts +4 -0
  136. package/dist/esm/hooks/app-notifications-redux/index.js +5 -0
  137. package/dist/esm/hooks/app-notifications-redux/index.js.map +1 -0
  138. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsActionsRedux.d.ts +13 -0
  139. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsActionsRedux.js +260 -0
  140. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsActionsRedux.js.map +1 -0
  141. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsDataRedux.d.ts +21 -0
  142. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsDataRedux.js +103 -0
  143. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsDataRedux.js.map +1 -0
  144. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsRedux.d.ts +7 -0
  145. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsRedux.js +35 -0
  146. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsRedux.js.map +1 -0
  147. package/dist/esm/hooks/auth-redux/index.d.ts +2 -0
  148. package/dist/esm/hooks/auth-redux/index.js +3 -0
  149. package/dist/esm/hooks/auth-redux/index.js.map +1 -0
  150. package/dist/esm/hooks/auth-redux/useAuthRedux.d.ts +32 -0
  151. package/dist/esm/hooks/auth-redux/useAuthRedux.js +174 -0
  152. package/dist/esm/hooks/auth-redux/useAuthRedux.js.map +1 -0
  153. package/dist/esm/hooks/auth-redux/useUserRedux.d.ts +6 -0
  154. package/dist/esm/hooks/auth-redux/useUserRedux.js +17 -0
  155. package/dist/esm/hooks/auth-redux/useUserRedux.js.map +1 -0
  156. package/dist/esm/hooks/comments/useCommentSectionData.js +2 -2
  157. package/dist/esm/hooks/comments/useCommentSectionData.js.map +1 -1
  158. package/dist/esm/hooks/comments/useCommentVotes.js +2 -2
  159. package/dist/esm/hooks/comments/useCommentVotes.js.map +1 -1
  160. package/dist/esm/hooks/comments/useCreateComment.js +2 -2
  161. package/dist/esm/hooks/comments/useCreateComment.js.map +1 -1
  162. package/dist/esm/hooks/entities/useEntityData.js +2 -2
  163. package/dist/esm/hooks/entities/useEntityData.js.map +1 -1
  164. package/dist/esm/hooks/entities/useEntityVotes.js +2 -2
  165. package/dist/esm/hooks/entities/useEntityVotes.js.map +1 -1
  166. package/dist/esm/hooks/lists/useIsEntitySaved.js +2 -2
  167. package/dist/esm/hooks/lists/useIsEntitySaved.js.map +1 -1
  168. package/dist/esm/hooks/lists/useListsData.js +2 -2
  169. package/dist/esm/hooks/lists/useListsData.js.map +1 -1
  170. package/dist/esm/hooks/reports/useCreateReport.js +2 -2
  171. package/dist/esm/hooks/reports/useCreateReport.js.map +1 -1
  172. package/dist/esm/hooks/users/follows/useFetchFollow.js +2 -2
  173. package/dist/esm/hooks/users/follows/useFetchFollow.js.map +1 -1
  174. package/dist/esm/hooks/users/follows/useUnfollowUser.js +2 -2
  175. package/dist/esm/hooks/users/follows/useUnfollowUser.js.map +1 -1
  176. package/dist/esm/index.d.ts +6 -4
  177. package/dist/esm/index.js +9 -7
  178. package/dist/esm/index.js.map +1 -1
  179. package/dist/esm/interfaces/models/AppNotification.d.ts +1 -1
  180. package/dist/esm/legacy/context/app-notifications-context.js.map +1 -0
  181. package/dist/esm/{context → legacy/context}/auth-context.js +1 -1
  182. package/dist/esm/legacy/context/auth-context.js.map +1 -0
  183. package/dist/esm/legacy/hooks/app-notifications/index.js.map +1 -0
  184. package/dist/esm/legacy/hooks/app-notifications/useAppNotifications.js.map +1 -0
  185. package/dist/{cjs → esm/legacy}/hooks/app-notifications/useAppNotificationsData.d.ts +1 -1
  186. package/dist/esm/{hooks → legacy/hooks}/app-notifications/useAppNotificationsData.js +2 -2
  187. package/dist/esm/legacy/hooks/app-notifications/useAppNotificationsData.js.map +1 -0
  188. package/dist/esm/{hooks → legacy/hooks}/app-notifications/useCountUnreadNotifications.js +4 -4
  189. package/dist/esm/legacy/hooks/app-notifications/useCountUnreadNotifications.js.map +1 -0
  190. package/dist/esm/{hooks → legacy/hooks}/app-notifications/useFetchAppNotifications.d.ts +1 -1
  191. package/dist/esm/{hooks → legacy/hooks}/app-notifications/useFetchAppNotifications.js +4 -4
  192. package/dist/esm/legacy/hooks/app-notifications/useFetchAppNotifications.js.map +1 -0
  193. package/dist/esm/{hooks → legacy/hooks}/app-notifications/useMarkNotificationAsRead.js +4 -4
  194. package/dist/esm/legacy/hooks/app-notifications/useMarkNotificationAsRead.js.map +1 -0
  195. package/dist/esm/legacy/hooks/auth/index.js.map +1 -0
  196. package/dist/esm/legacy/hooks/auth/useAuth.js.map +1 -0
  197. package/dist/esm/{hooks → legacy/hooks}/auth/useAuthData.d.ts +1 -1
  198. package/dist/esm/{hooks → legacy/hooks}/auth/useAuthData.js +2 -2
  199. package/dist/esm/legacy/hooks/auth/useAuthData.js.map +1 -0
  200. package/dist/esm/{hooks → legacy/hooks}/auth/useChangePassword.js +3 -3
  201. package/dist/esm/legacy/hooks/auth/useChangePassword.js.map +1 -0
  202. package/dist/esm/{hooks → legacy/hooks}/auth/useRequestNewAccessToken.js +3 -3
  203. package/dist/esm/legacy/hooks/auth/useRequestNewAccessToken.js.map +1 -0
  204. package/dist/esm/{hooks → legacy/hooks}/auth/useSignInWithEmailAndPassword.js +3 -3
  205. package/dist/esm/legacy/hooks/auth/useSignInWithEmailAndPassword.js.map +1 -0
  206. package/dist/esm/{hooks → legacy/hooks}/auth/useSignOut.js +3 -3
  207. package/dist/esm/legacy/hooks/auth/useSignOut.js.map +1 -0
  208. package/dist/esm/{hooks → legacy/hooks}/auth/useSignUpWithEmailAndPassword.js +3 -3
  209. package/dist/esm/legacy/hooks/auth/useSignUpWithEmailAndPassword.js.map +1 -0
  210. package/dist/esm/{hooks → legacy/hooks}/auth/useVerifyExternalUser.js +2 -2
  211. package/dist/esm/legacy/hooks/auth/useVerifyExternalUser.js.map +1 -0
  212. package/dist/esm/store/api/appNotificationsApi.d.ts +2021 -0
  213. package/dist/esm/store/api/appNotificationsApi.js +210 -0
  214. package/dist/esm/store/api/appNotificationsApi.js.map +1 -0
  215. package/dist/esm/store/api/baseApi.d.ts +1 -0
  216. package/dist/esm/store/api/baseApi.js +39 -0
  217. package/dist/esm/store/api/baseApi.js.map +1 -0
  218. package/dist/esm/store/api/index.d.ts +2 -0
  219. package/dist/esm/store/api/index.js +9 -0
  220. package/dist/esm/store/api/index.js.map +1 -0
  221. package/dist/esm/store/index.d.ts +15 -0
  222. package/dist/esm/store/index.js +55 -0
  223. package/dist/esm/store/index.js.map +1 -0
  224. package/dist/esm/store/middleware.d.ts +4 -0
  225. package/dist/esm/store/middleware.js +37 -0
  226. package/dist/esm/store/middleware.js.map +1 -0
  227. package/dist/esm/store/rootReducer.d.ts +10 -0
  228. package/dist/esm/store/rootReducer.js +14 -0
  229. package/dist/esm/store/rootReducer.js.map +1 -0
  230. package/dist/esm/store/slices/appNotificationsSlice.d.ts +58 -0
  231. package/dist/esm/store/slices/appNotificationsSlice.js +124 -0
  232. package/dist/esm/store/slices/appNotificationsSlice.js.map +1 -0
  233. package/dist/esm/store/slices/authSlice.d.ts +24 -0
  234. package/dist/esm/store/slices/authSlice.js +69 -0
  235. package/dist/esm/store/slices/authSlice.js.map +1 -0
  236. package/dist/esm/store/slices/authThunks.d.ts +40 -0
  237. package/dist/esm/store/slices/authThunks.js +351 -0
  238. package/dist/esm/store/slices/authThunks.js.map +1 -0
  239. package/dist/esm/store/slices/index.d.ts +1 -0
  240. package/dist/esm/store/slices/index.js +7 -0
  241. package/dist/esm/store/slices/index.js.map +1 -0
  242. package/dist/esm/store/types/index.d.ts +8 -0
  243. package/dist/esm/store/types/index.js +2 -0
  244. package/dist/esm/store/types/index.js.map +1 -0
  245. package/package.json +4 -2
  246. package/dist/cjs/context/app-notifications-context.js.map +0 -1
  247. package/dist/cjs/context/auth-context.js.map +0 -1
  248. package/dist/cjs/hooks/app-notifications/index.js.map +0 -1
  249. package/dist/cjs/hooks/app-notifications/useAppNotifications.js.map +0 -1
  250. package/dist/cjs/hooks/app-notifications/useAppNotificationsData.js.map +0 -1
  251. package/dist/cjs/hooks/app-notifications/useCountUnreadNotifications.js.map +0 -1
  252. package/dist/cjs/hooks/app-notifications/useFetchAppNotifications.js.map +0 -1
  253. package/dist/cjs/hooks/app-notifications/useMarkNotificationAsRead.js.map +0 -1
  254. package/dist/cjs/hooks/auth/index.js.map +0 -1
  255. package/dist/cjs/hooks/auth/useAuth.js.map +0 -1
  256. package/dist/cjs/hooks/auth/useAuthData.js.map +0 -1
  257. package/dist/cjs/hooks/auth/useChangePassword.js.map +0 -1
  258. package/dist/cjs/hooks/auth/useRequestNewAccessToken.js.map +0 -1
  259. package/dist/cjs/hooks/auth/useSignInWithEmailAndPassword.js.map +0 -1
  260. package/dist/cjs/hooks/auth/useSignOut.js.map +0 -1
  261. package/dist/cjs/hooks/auth/useSignUpWithEmailAndPassword.js.map +0 -1
  262. package/dist/cjs/hooks/auth/useVerifyExternalUser.js.map +0 -1
  263. package/dist/esm/context/app-notifications-context.js.map +0 -1
  264. package/dist/esm/context/auth-context.js.map +0 -1
  265. package/dist/esm/hooks/app-notifications/index.js.map +0 -1
  266. package/dist/esm/hooks/app-notifications/useAppNotifications.js.map +0 -1
  267. package/dist/esm/hooks/app-notifications/useAppNotificationsData.js.map +0 -1
  268. package/dist/esm/hooks/app-notifications/useCountUnreadNotifications.js.map +0 -1
  269. package/dist/esm/hooks/app-notifications/useFetchAppNotifications.js.map +0 -1
  270. package/dist/esm/hooks/app-notifications/useMarkNotificationAsRead.js.map +0 -1
  271. package/dist/esm/hooks/auth/index.js.map +0 -1
  272. package/dist/esm/hooks/auth/useAuth.js.map +0 -1
  273. package/dist/esm/hooks/auth/useAuthData.js.map +0 -1
  274. package/dist/esm/hooks/auth/useChangePassword.js.map +0 -1
  275. package/dist/esm/hooks/auth/useRequestNewAccessToken.js.map +0 -1
  276. package/dist/esm/hooks/auth/useSignInWithEmailAndPassword.js.map +0 -1
  277. package/dist/esm/hooks/auth/useSignOut.js.map +0 -1
  278. package/dist/esm/hooks/auth/useSignUpWithEmailAndPassword.js.map +0 -1
  279. package/dist/esm/hooks/auth/useVerifyExternalUser.js.map +0 -1
  280. /package/dist/cjs/{context → legacy/context}/app-notifications-context.d.ts +0 -0
  281. /package/dist/cjs/{context → legacy/context}/app-notifications-context.js +0 -0
  282. /package/dist/cjs/{context → legacy/context}/auth-context.d.ts +0 -0
  283. /package/dist/cjs/{hooks → legacy/hooks}/app-notifications/index.d.ts +0 -0
  284. /package/dist/cjs/{hooks → legacy/hooks}/app-notifications/index.js +0 -0
  285. /package/dist/cjs/{hooks → legacy/hooks}/app-notifications/useAppNotifications.d.ts +0 -0
  286. /package/dist/cjs/{hooks → legacy/hooks}/app-notifications/useAppNotifications.js +0 -0
  287. /package/dist/cjs/{hooks → legacy/hooks}/app-notifications/useCountUnreadNotifications.d.ts +0 -0
  288. /package/dist/cjs/{hooks → legacy/hooks}/app-notifications/useMarkNotificationAsRead.d.ts +0 -0
  289. /package/dist/cjs/{hooks → legacy/hooks}/auth/index.d.ts +0 -0
  290. /package/dist/cjs/{hooks → legacy/hooks}/auth/index.js +0 -0
  291. /package/dist/cjs/{hooks → legacy/hooks}/auth/useAuth.d.ts +0 -0
  292. /package/dist/cjs/{hooks → legacy/hooks}/auth/useAuth.js +0 -0
  293. /package/dist/cjs/{hooks → legacy/hooks}/auth/useChangePassword.d.ts +0 -0
  294. /package/dist/cjs/{hooks → legacy/hooks}/auth/useRequestNewAccessToken.d.ts +0 -0
  295. /package/dist/cjs/{hooks → legacy/hooks}/auth/useSignInWithEmailAndPassword.d.ts +0 -0
  296. /package/dist/cjs/{hooks → legacy/hooks}/auth/useSignOut.d.ts +0 -0
  297. /package/dist/cjs/{hooks → legacy/hooks}/auth/useSignUpWithEmailAndPassword.d.ts +0 -0
  298. /package/dist/cjs/{hooks → legacy/hooks}/auth/useVerifyExternalUser.d.ts +0 -0
  299. /package/dist/esm/{context → legacy/context}/app-notifications-context.d.ts +0 -0
  300. /package/dist/esm/{context → legacy/context}/app-notifications-context.js +0 -0
  301. /package/dist/esm/{context → legacy/context}/auth-context.d.ts +0 -0
  302. /package/dist/esm/{hooks → legacy/hooks}/app-notifications/index.d.ts +0 -0
  303. /package/dist/esm/{hooks → legacy/hooks}/app-notifications/index.js +0 -0
  304. /package/dist/esm/{hooks → legacy/hooks}/app-notifications/useAppNotifications.d.ts +0 -0
  305. /package/dist/esm/{hooks → legacy/hooks}/app-notifications/useAppNotifications.js +0 -0
  306. /package/dist/esm/{hooks → legacy/hooks}/app-notifications/useCountUnreadNotifications.d.ts +0 -0
  307. /package/dist/esm/{hooks → legacy/hooks}/app-notifications/useMarkNotificationAsRead.d.ts +0 -0
  308. /package/dist/esm/{hooks → legacy/hooks}/auth/index.d.ts +0 -0
  309. /package/dist/esm/{hooks → legacy/hooks}/auth/index.js +0 -0
  310. /package/dist/esm/{hooks → legacy/hooks}/auth/useAuth.d.ts +0 -0
  311. /package/dist/esm/{hooks → legacy/hooks}/auth/useAuth.js +0 -0
  312. /package/dist/esm/{hooks → legacy/hooks}/auth/useChangePassword.d.ts +0 -0
  313. /package/dist/esm/{hooks → legacy/hooks}/auth/useRequestNewAccessToken.d.ts +0 -0
  314. /package/dist/esm/{hooks → legacy/hooks}/auth/useSignInWithEmailAndPassword.d.ts +0 -0
  315. /package/dist/esm/{hooks → legacy/hooks}/auth/useSignOut.d.ts +0 -0
  316. /package/dist/esm/{hooks → legacy/hooks}/auth/useSignUpWithEmailAndPassword.d.ts +0 -0
  317. /package/dist/esm/{hooks → legacy/hooks}/auth/useVerifyExternalUser.d.ts +0 -0
@@ -0,0 +1,213 @@
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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
39
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
40
+ if (ar || !(i in from)) {
41
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
42
+ ar[i] = from[i];
43
+ }
44
+ }
45
+ return to.concat(ar || Array.prototype.slice.call(from));
46
+ };
47
+ var _a;
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.countUnreadNotifications = exports.markAllNotificationsAsRead = exports.markNotificationAsRead = exports.fetchAppNotifications = exports.useLazyCountUnreadNotificationsQuery = exports.useCountUnreadNotificationsQuery = exports.useMarkAllNotificationsAsReadMutation = exports.useMarkNotificationAsReadMutation = exports.useLazyFetchAppNotificationsQuery = exports.useFetchAppNotificationsQuery = exports.appNotificationsApi = void 0;
50
+ var baseApi_1 = require("./baseApi");
51
+ // Extended API with app notifications endpoints
52
+ exports.appNotificationsApi = baseApi_1.baseApi.injectEndpoints({
53
+ endpoints: function (builder) { return ({
54
+ // Fetch paginated app notifications
55
+ fetchAppNotifications: builder.query({
56
+ query: function (_a) {
57
+ var projectId = _a.projectId, page = _a.page, limit = _a.limit;
58
+ return ({
59
+ url: "/".concat(projectId, "/app-notifications"),
60
+ method: "GET",
61
+ params: {
62
+ page: page,
63
+ limit: limit,
64
+ },
65
+ });
66
+ },
67
+ providesTags: function (result, error, _a) {
68
+ var _b;
69
+ var projectId = _a.projectId;
70
+ return __spreadArray([
71
+ { type: "AppNotification", id: "".concat(projectId, "-LIST") }
72
+ ], ((_b = result === null || result === void 0 ? void 0 : result.map(function (_a) {
73
+ var id = _a.id;
74
+ return ({
75
+ type: "AppNotification",
76
+ id: id,
77
+ });
78
+ })) !== null && _b !== void 0 ? _b : []), true);
79
+ },
80
+ }),
81
+ // Mark a notification as read
82
+ markNotificationAsRead: builder.mutation({
83
+ query: function (_a) {
84
+ var projectId = _a.projectId, notificationId = _a.notificationId;
85
+ return ({
86
+ url: "/".concat(projectId, "/app-notifications/").concat(notificationId, "/mark-as-read"),
87
+ method: "PATCH",
88
+ body: {},
89
+ });
90
+ },
91
+ // Optimistically update the cache
92
+ onQueryStarted: function (_a, _b) {
93
+ return __awaiter(this, arguments, void 0, function (_c, _d) {
94
+ var patches, _e;
95
+ var projectId = _c.projectId, notificationId = _c.notificationId;
96
+ var dispatch = _d.dispatch, queryFulfilled = _d.queryFulfilled;
97
+ return __generator(this, function (_f) {
98
+ switch (_f.label) {
99
+ case 0:
100
+ patches = [];
101
+ dispatch(exports.appNotificationsApi.util.updateQueryData("fetchAppNotifications",
102
+ // We need to find all queries for this projectId - this is a simplified approach
103
+ { projectId: projectId, page: 1, limit: 10 }, // This should be more dynamic in practice
104
+ function (draft) {
105
+ var notification = draft.find(function (n) { return n.id === notificationId; });
106
+ if (notification) {
107
+ notification.isRead = true;
108
+ }
109
+ }));
110
+ _f.label = 1;
111
+ case 1:
112
+ _f.trys.push([1, 3, , 4]);
113
+ return [4 /*yield*/, queryFulfilled];
114
+ case 2:
115
+ _f.sent();
116
+ return [3 /*break*/, 4];
117
+ case 3:
118
+ _e = _f.sent();
119
+ // Revert optimistic update on failure
120
+ patches.forEach(function (patch) { return patch.undo(); });
121
+ return [3 /*break*/, 4];
122
+ case 4: return [2 /*return*/];
123
+ }
124
+ });
125
+ });
126
+ },
127
+ invalidatesTags: function (result, error, _a) {
128
+ var projectId = _a.projectId, notificationId = _a.notificationId;
129
+ return [
130
+ { type: "AppNotification", id: notificationId },
131
+ { type: "AppNotification", id: "".concat(projectId, "-LIST") },
132
+ ];
133
+ },
134
+ }),
135
+ // Count unread notifications
136
+ countUnreadNotifications: builder.query({
137
+ query: function (_a) {
138
+ var projectId = _a.projectId;
139
+ return ({
140
+ url: "/".concat(projectId, "/app-notifications/count"),
141
+ method: "GET",
142
+ });
143
+ },
144
+ providesTags: function (result, error, _a) {
145
+ var projectId = _a.projectId;
146
+ return [
147
+ { type: "AppNotification", id: "".concat(projectId, "-COUNT") },
148
+ ];
149
+ },
150
+ }),
151
+ // Mark all notifications as read
152
+ markAllNotificationsAsRead: builder.mutation({
153
+ query: function (_a) {
154
+ var projectId = _a.projectId;
155
+ return ({
156
+ url: "/".concat(projectId, "/app-notifications/mark-all-as-read"),
157
+ method: "PATCH",
158
+ body: {},
159
+ });
160
+ },
161
+ // Optimistically update the cache
162
+ onQueryStarted: function (_a, _b) {
163
+ return __awaiter(this, arguments, void 0, function (_c, _d) {
164
+ var patches, _e;
165
+ var projectId = _c.projectId;
166
+ var dispatch = _d.dispatch, queryFulfilled = _d.queryFulfilled;
167
+ return __generator(this, function (_f) {
168
+ switch (_f.label) {
169
+ case 0:
170
+ patches = [];
171
+ // Update all notifications to be marked as read
172
+ dispatch(exports.appNotificationsApi.util.updateQueryData("fetchAppNotifications",
173
+ // We need to find all queries for this projectId - this is a simplified approach
174
+ { projectId: projectId, page: 1, limit: 10 }, // This should be more dynamic in practice
175
+ function (draft) {
176
+ draft.forEach(function (notification) {
177
+ notification.isRead = true;
178
+ });
179
+ }));
180
+ // Update unread count to 0
181
+ dispatch(exports.appNotificationsApi.util.updateQueryData("countUnreadNotifications", { projectId: projectId }, function () { return 0; }));
182
+ _f.label = 1;
183
+ case 1:
184
+ _f.trys.push([1, 3, , 4]);
185
+ return [4 /*yield*/, queryFulfilled];
186
+ case 2:
187
+ _f.sent();
188
+ return [3 /*break*/, 4];
189
+ case 3:
190
+ _e = _f.sent();
191
+ // Revert optimistic update on failure
192
+ patches.forEach(function (patch) { return patch.undo(); });
193
+ return [3 /*break*/, 4];
194
+ case 4: return [2 /*return*/];
195
+ }
196
+ });
197
+ });
198
+ },
199
+ invalidatesTags: function (result, error, _a) {
200
+ var projectId = _a.projectId;
201
+ return [
202
+ { type: "AppNotification", id: "".concat(projectId, "-LIST") },
203
+ { type: "AppNotification", id: "".concat(projectId, "-COUNT") },
204
+ ];
205
+ },
206
+ }),
207
+ }); },
208
+ });
209
+ // Export hooks for use in components
210
+ exports.useFetchAppNotificationsQuery = exports.appNotificationsApi.useFetchAppNotificationsQuery, exports.useLazyFetchAppNotificationsQuery = exports.appNotificationsApi.useLazyFetchAppNotificationsQuery, exports.useMarkNotificationAsReadMutation = exports.appNotificationsApi.useMarkNotificationAsReadMutation, exports.useMarkAllNotificationsAsReadMutation = exports.appNotificationsApi.useMarkAllNotificationsAsReadMutation, exports.useCountUnreadNotificationsQuery = exports.appNotificationsApi.useCountUnreadNotificationsQuery, exports.useLazyCountUnreadNotificationsQuery = exports.appNotificationsApi.useLazyCountUnreadNotificationsQuery;
211
+ // Export for manual cache management
212
+ exports.fetchAppNotifications = (_a = exports.appNotificationsApi.endpoints, _a.fetchAppNotifications), exports.markNotificationAsRead = _a.markNotificationAsRead, exports.markAllNotificationsAsRead = _a.markAllNotificationsAsRead, exports.countUnreadNotifications = _a.countUnreadNotifications;
213
+ //# sourceMappingURL=appNotificationsApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appNotificationsApi.js","sourceRoot":"","sources":["../../../../src/store/api/appNotificationsApi.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1 @@
1
+ export declare const baseApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, {}, "api", "AppNotification", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react").reactHooksModuleName>;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.baseApi = void 0;
5
+ var react_1 = require("@reduxjs/toolkit/query/react");
6
+ // Base query that uses the current project context and auth
7
+ var createBaseQuery = function () {
8
+ return (0, react_1.fetchBaseQuery)({
9
+ baseUrl: process.env.REACT_APP_API_BASE_URL || 'https://api.replyke.com/api/v5',
10
+ credentials: 'include', // Equivalent to withCredentials: true
11
+ prepareHeaders: function (headers, _a) {
12
+ var getState = _a.getState;
13
+ // Add Content-Type header
14
+ headers.set('Content-Type', 'application/json');
15
+ // Get access token from Redux state
16
+ var state = getState();
17
+ var accessToken = state.auth.accessToken;
18
+ // Add Authorization header if we have a token
19
+ if (accessToken) {
20
+ headers.set('Authorization', "Bearer ".concat(accessToken));
21
+ }
22
+ return headers;
23
+ },
24
+ });
25
+ };
26
+ // Create the base API slice
27
+ exports.baseApi = (0, react_1.createApi)({
28
+ reducerPath: 'api',
29
+ baseQuery: createBaseQuery(),
30
+ tagTypes: [
31
+ 'AppNotification',
32
+ // Future tag types:
33
+ // 'Entity',
34
+ // 'Comment',
35
+ // 'List',
36
+ // 'User',
37
+ ],
38
+ endpoints: function () { return ({}); }, // Endpoints will be injected by feature APIs
39
+ });
40
+ // Export hooks for use in components (will be populated by injected endpoints)
41
+ exports._b = _a = exports.baseApi;
42
+ //# sourceMappingURL=baseApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"baseApi.js","sourceRoot":"","sources":["../../../../src/store/api/baseApi.ts"],"names":[],"mappings":";;;;AAAA,sDAAyE;AAGzE,4DAA4D;AAC5D,IAAM,eAAe,GAAG;IACtB,OAAO,IAAA,sBAAc,EAAC;QACpB,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,IAAI,gCAAgC;QAC/E,WAAW,EAAE,SAAS,EAAE,sCAAsC;QAC9D,cAAc,EAAE,UAAC,OAAO,EAAE,EAAY;gBAAV,QAAQ,cAAA;YAClC,0BAA0B;YAC1B,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;YAEhD,oCAAoC;YACpC,IAAM,KAAK,GAAG,QAAQ,EAAe,CAAC;YACtC,IAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;YAE3C,8CAA8C;YAC9C,IAAI,WAAW,EAAE,CAAC;gBAChB,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,iBAAU,WAAW,CAAE,CAAC,CAAC;YACxD,CAAC;YAED,OAAO,OAAO,CAAC;QACjB,CAAC;KACF,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,4BAA4B;AACf,QAAA,OAAO,GAAG,IAAA,iBAAS,EAAC;IAC/B,WAAW,EAAE,KAAK;IAClB,SAAS,EAAE,eAAe,EAAE;IAC5B,QAAQ,EAAE;QACR,iBAAiB;QACjB,oBAAoB;QACpB,YAAY;QACZ,cAAc;QACd,UAAU;QACV,UAAU;KACX;IACD,SAAS,EAAE,cAAM,OAAA,CAAC,EAAE,CAAC,EAAJ,CAAI,EAAE,6CAA6C;CACrE,CAAC,CAAC;AAEH,+EAA+E;AAC/E,aAAa,KAAK,eAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { baseApi } from "./baseApi";
2
+ export * from "./appNotificationsApi";
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.baseApi = void 0;
18
+ // Export the base API
19
+ var baseApi_1 = require("./baseApi");
20
+ Object.defineProperty(exports, "baseApi", { enumerable: true, get: function () { return baseApi_1.baseApi; } });
21
+ // Export app notifications API
22
+ __exportStar(require("./appNotificationsApi"), exports);
23
+ // Future API exports will go here:
24
+ // export * from "./entitiesApi";
25
+ // export * from "./listsApi";
26
+ // export * from "./commentsApi";
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/store/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sBAAsB;AACtB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAEhB,+BAA+B;AAC/B,wDAAsC;AAEtC,mCAAmC;AACnC,iCAAiC;AACjC,+BAA+B;AAC/B,iCAAiC"}
@@ -0,0 +1,15 @@
1
+ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
2
+ api: import("@reduxjs/toolkit/query").CombinedState<{}, "AppNotification", "api">;
3
+ auth: import("./slices/authSlice").AuthState;
4
+ appNotifications: import("./slices").AppNotificationsState;
5
+ }, import("@reduxjs/toolkit").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("@reduxjs/toolkit").StoreEnhancer<{
6
+ dispatch: import("@reduxjs/toolkit").ThunkDispatch<{
7
+ api: import("@reduxjs/toolkit/query").CombinedState<{}, "AppNotification", "api">;
8
+ auth: import("./slices/authSlice").AuthState;
9
+ appNotifications: import("./slices").AppNotificationsState;
10
+ }, undefined, import("@reduxjs/toolkit").UnknownAction>;
11
+ }>, import("@reduxjs/toolkit").StoreEnhancer]>>;
12
+ export type { RootState, AppDispatch, AppStore, AppThunk } from "./types";
13
+ export { store as replykeStore };
14
+ export { rootReducer } from "./rootReducer";
15
+ export * from "./types";
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.rootReducer = exports.replykeStore = exports.store = void 0;
18
+ var toolkit_1 = require("@reduxjs/toolkit");
19
+ var rootReducer_1 = require("./rootReducer");
20
+ var middleware_1 = require("./middleware");
21
+ var baseApi_1 = require("./api/baseApi");
22
+ // Configure the Redux store
23
+ exports.store = (0, toolkit_1.configureStore)({
24
+ reducer: rootReducer_1.rootReducer,
25
+ middleware: function (getDefaultMiddleware) {
26
+ return getDefaultMiddleware({
27
+ serializableCheck: {
28
+ // Ignore these action types for serializable check
29
+ ignoredActions: [
30
+ 'persist/PERSIST',
31
+ 'persist/REHYDRATE',
32
+ // RTK Query actions that might contain functions
33
+ 'appNotificationsApi/executeQuery/pending',
34
+ 'appNotificationsApi/executeQuery/fulfilled',
35
+ 'appNotificationsApi/executeQuery/rejected',
36
+ 'appNotificationsApi/executeMutation/pending',
37
+ 'appNotificationsApi/executeMutation/fulfilled',
38
+ 'appNotificationsApi/executeMutation/rejected',
39
+ ],
40
+ // Ignore these field paths in all actions
41
+ ignoredActionsPaths: [
42
+ 'meta.arg',
43
+ 'payload.timestamp',
44
+ // RTK Query meta fields that may contain functions
45
+ 'meta.baseQueryMeta',
46
+ 'meta.arg.originalArgs',
47
+ 'meta.arg.endpointName',
48
+ 'payload.meta',
49
+ ],
50
+ // Ignore these paths in the state
51
+ ignoredPaths: [
52
+ 'items.dates',
53
+ // RTK Query state paths that may contain functions/metadata
54
+ 'api',
55
+ 'appNotificationsApi',
56
+ ],
57
+ },
58
+ })
59
+ // Add RTK Query middleware
60
+ .concat(baseApi_1.baseApi.middleware)
61
+ // Add custom middleware
62
+ .concat(middleware_1.customMiddleware);
63
+ },
64
+ // Enable Redux DevTools in development
65
+ devTools: process.env.NODE_ENV !== 'production',
66
+ });
67
+ exports.replykeStore = exports.store;
68
+ // Export for advanced users who need direct access
69
+ var rootReducer_2 = require("./rootReducer");
70
+ Object.defineProperty(exports, "rootReducer", { enumerable: true, get: function () { return rootReducer_2.rootReducer; } });
71
+ __exportStar(require("./types"), exports);
72
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAAkD;AAClD,6CAA4C;AAC5C,2CAAgD;AAChD,yCAAwC;AAExC,4BAA4B;AACf,QAAA,KAAK,GAAG,IAAA,wBAAc,EAAC;IAClC,OAAO,EAAE,yBAAW;IACpB,UAAU,EAAE,UAAC,oBAAoB;QAC/B,OAAA,oBAAoB,CAAC;YACnB,iBAAiB,EAAE;gBACjB,mDAAmD;gBACnD,cAAc,EAAE;oBACd,iBAAiB;oBACjB,mBAAmB;oBACnB,iDAAiD;oBACjD,0CAA0C;oBAC1C,4CAA4C;oBAC5C,2CAA2C;oBAC3C,6CAA6C;oBAC7C,+CAA+C;oBAC/C,8CAA8C;iBAC/C;gBACD,0CAA0C;gBAC1C,mBAAmB,EAAE;oBACnB,UAAU;oBACV,mBAAmB;oBACnB,mDAAmD;oBACnD,oBAAoB;oBACpB,uBAAuB;oBACvB,uBAAuB;oBACvB,cAAc;iBACf;gBACD,kCAAkC;gBAClC,YAAY,EAAE;oBACZ,aAAa;oBACb,4DAA4D;oBAC5D,KAAK;oBACL,qBAAqB;iBACtB;aACF;SACF,CAAC;YACA,2BAA2B;aAC1B,MAAM,CAAC,iBAAO,CAAC,UAAU,CAAC;YAC3B,wBAAwB;aACvB,MAAM,CAAC,6BAAgB,CAAC;IApC3B,CAoC2B;IAE7B,uCAAuC;IACvC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;CAChD,CAAC,CAAC;AAMe,uBAjDL,aAAK,CAiDY;AAE9B,mDAAmD;AACnD,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,0CAAwB"}
@@ -0,0 +1,4 @@
1
+ import { Middleware } from "@reduxjs/toolkit";
2
+ export declare const errorMiddleware: Middleware;
3
+ export declare const loggerMiddleware: Middleware;
4
+ export declare const customMiddleware: Middleware<{}, any, import("@reduxjs/toolkit").Dispatch<import("@reduxjs/toolkit").UnknownAction>>[];
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4
+ if (ar || !(i in from)) {
5
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6
+ ar[i] = from[i];
7
+ }
8
+ }
9
+ return to.concat(ar || Array.prototype.slice.call(from));
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.customMiddleware = exports.loggerMiddleware = exports.errorMiddleware = void 0;
13
+ var handleError_1 = require("../utils/handleError");
14
+ // Error handling middleware for Redux actions
15
+ var errorMiddleware = function (store) { return function (next) { return function (action) {
16
+ try {
17
+ return next(action);
18
+ }
19
+ catch (error) {
20
+ (0, handleError_1.handleError)(error, "Redux action failed: ".concat(action.type));
21
+ throw error;
22
+ }
23
+ }; }; };
24
+ exports.errorMiddleware = errorMiddleware;
25
+ // Selective logger middleware for development - only logs important actions
26
+ var loggerMiddleware = function (store) { return function (next) { return function (action) {
27
+ var result = next(action);
28
+ // Only log failed API calls and errors in development
29
+ if (process.env.NODE_ENV === 'development' && action.type.includes('/rejected')) {
30
+ console.group("\u274C Redux Action Failed: ".concat(action.type));
31
+ console.log('Error:', action.payload);
32
+ console.log('Action:', action);
33
+ console.groupEnd();
34
+ }
35
+ return result;
36
+ }; }; };
37
+ exports.loggerMiddleware = loggerMiddleware;
38
+ // Combine all custom middleware
39
+ exports.customMiddleware = __spreadArray([
40
+ exports.errorMiddleware
41
+ ], (process.env.NODE_ENV === 'development' ? [exports.loggerMiddleware] : []), true);
42
+ //# sourceMappingURL=middleware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../../src/store/middleware.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,oDAAmD;AAEnD,8CAA8C;AACvC,IAAM,eAAe,GAAe,UAAC,KAAK,IAAK,OAAA,UAAC,IAAI,IAAK,OAAA,UAAC,MAAW;IAC1E,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAA,yBAAW,EAAC,KAAK,EAAE,+BAAwB,MAAM,CAAC,IAAI,CAAE,CAAC,CAAC;QAC1D,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,EAP+D,CAO/D,EAPqD,CAOrD,CAAC;AAPW,QAAA,eAAe,mBAO1B;AAEF,4EAA4E;AACrE,IAAM,gBAAgB,GAAe,UAAC,KAAK,IAAK,OAAA,UAAC,IAAI,IAAK,OAAA,UAAC,MAAW;IAC3E,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;IAE5B,sDAAsD;IACtD,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;QAChF,OAAO,CAAC,KAAK,CAAC,sCAA0B,MAAM,CAAC,IAAI,CAAE,CAAC,CAAC;QACvD,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QACtC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAC/B,OAAO,CAAC,QAAQ,EAAE,CAAC;IACrB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,EAZgE,CAYhE,EAZsD,CAYtD,CAAC;AAZW,QAAA,gBAAgB,oBAY3B;AAEF,gCAAgC;AACnB,QAAA,gBAAgB;IAC3B,uBAAe;GACZ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,CAAC,CAAC,CAAC,CAAC,wBAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,QACrE"}
@@ -0,0 +1,10 @@
1
+ export declare const rootReducer: import("@reduxjs/toolkit").Reducer<{
2
+ api: import("@reduxjs/toolkit/query").CombinedState<{}, "AppNotification", "api">;
3
+ auth: import("./slices/authSlice").AuthState;
4
+ appNotifications: import("./slices/appNotificationsSlice").AppNotificationsState;
5
+ }, import("@reduxjs/toolkit").UnknownAction, Partial<{
6
+ api: import("@reduxjs/toolkit/query").CombinedState<{}, "AppNotification", "api"> | undefined;
7
+ auth: import("./slices/authSlice").AuthState | undefined;
8
+ appNotifications: import("./slices/appNotificationsSlice").AppNotificationsState | undefined;
9
+ }>>;
10
+ export type RootState = ReturnType<typeof rootReducer>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ var _a;
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.rootReducer = void 0;
8
+ var toolkit_1 = require("@reduxjs/toolkit");
9
+ var baseApi_1 = require("./api/baseApi");
10
+ var appNotificationsSlice_1 = require("./slices/appNotificationsSlice");
11
+ var authSlice_1 = __importDefault(require("./slices/authSlice"));
12
+ // Combine all reducers
13
+ exports.rootReducer = (0, toolkit_1.combineReducers)((_a = {},
14
+ // API slice reducer (manages RTK Query cache)
15
+ _a[baseApi_1.baseApi.reducerPath] = baseApi_1.baseApi.reducer,
16
+ // Feature slices
17
+ _a.auth = authSlice_1.default,
18
+ _a.appNotifications = appNotificationsSlice_1.appNotificationsSlice.reducer,
19
+ _a));
20
+ //# sourceMappingURL=rootReducer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rootReducer.js","sourceRoot":"","sources":["../../../src/store/rootReducer.ts"],"names":[],"mappings":";;;;;;;AAAA,4CAAmD;AACnD,yCAAwC;AACxC,wEAAuE;AACvE,iEAA6C;AAE7C,uBAAuB;AACV,QAAA,WAAW,GAAG,IAAA,yBAAe;IACxC,8CAA8C;IAC9C,GAAC,iBAAO,CAAC,WAAW,IAAG,iBAAO,CAAC,OAAO;IAEtC,iBAAiB;IACjB,OAAI,GAAE,mBAAW;IACjB,mBAAgB,GAAE,6CAAqB,CAAC,OAAO;QAM/C,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { PayloadAction } from "@reduxjs/toolkit";
2
+ import type { UnifiedAppNotification, NotificationTemplates } from "../../interfaces/models/AppNotification";
3
+ export interface AppNotificationsState {
4
+ notifications: UnifiedAppNotification[];
5
+ unreadCount: number;
6
+ loading: boolean;
7
+ hasMore: boolean;
8
+ page: number;
9
+ limit: number;
10
+ notificationTemplates?: Partial<NotificationTemplates>;
11
+ currentProjectId?: string;
12
+ }
13
+ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<AppNotificationsState, {
14
+ setProjectContext: (state: import("@reduxjs/toolkit").WritableDraft<AppNotificationsState>, action: PayloadAction<string>) => void;
15
+ setLimit: (state: import("@reduxjs/toolkit").WritableDraft<AppNotificationsState>, action: PayloadAction<number>) => void;
16
+ setNotificationTemplates: (state: import("@reduxjs/toolkit").WritableDraft<AppNotificationsState>, action: PayloadAction<Partial<NotificationTemplates>>) => void;
17
+ resetNotifications: (state: import("@reduxjs/toolkit").WritableDraft<AppNotificationsState>) => void;
18
+ loadMore: (state: import("@reduxjs/toolkit").WritableDraft<AppNotificationsState>) => void;
19
+ setLoading: (state: import("@reduxjs/toolkit").WritableDraft<AppNotificationsState>, action: PayloadAction<boolean>) => void;
20
+ addNotifications: (state: import("@reduxjs/toolkit").WritableDraft<AppNotificationsState>, action: PayloadAction<{
21
+ notifications: UnifiedAppNotification[];
22
+ isFirstPage?: boolean;
23
+ }>) => void;
24
+ markAsReadLocally: (state: import("@reduxjs/toolkit").WritableDraft<AppNotificationsState>, action: PayloadAction<string>) => void;
25
+ markAllAsReadLocally: (state: import("@reduxjs/toolkit").WritableDraft<AppNotificationsState>) => void;
26
+ setUnreadCount: (state: import("@reduxjs/toolkit").WritableDraft<AppNotificationsState>, action: PayloadAction<number>) => void;
27
+ handleError: (state: import("@reduxjs/toolkit").WritableDraft<AppNotificationsState>) => void;
28
+ }, "appNotifications", "appNotifications", import("@reduxjs/toolkit").SliceSelectors<AppNotificationsState>>;
29
+ export declare const setProjectContext: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "appNotifications/setProjectContext">, setLimit: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "appNotifications/setLimit">, setNotificationTemplates: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<NotificationTemplates>, "appNotifications/setNotificationTemplates">, resetNotifications: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"appNotifications/resetNotifications">, loadMore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"appNotifications/loadMore">, setLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "appNotifications/setLoading">, addNotifications: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
30
+ notifications: UnifiedAppNotification[];
31
+ isFirstPage?: boolean;
32
+ }, "appNotifications/addNotifications">, markAsReadLocally: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "appNotifications/markAsReadLocally">, markAllAsReadLocally: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"appNotifications/markAllAsReadLocally">, setUnreadCount: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "appNotifications/setUnreadCount">, handleError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"appNotifications/handleError">;
33
+ declare const _default: import("@reduxjs/toolkit").Reducer<AppNotificationsState>;
34
+ export default _default;
35
+ export declare const selectAppNotifications: (state: {
36
+ appNotifications: AppNotificationsState;
37
+ }) => UnifiedAppNotification[];
38
+ export declare const selectUnreadCount: (state: {
39
+ appNotifications: AppNotificationsState;
40
+ }) => number;
41
+ export declare const selectAppNotificationsLoading: (state: {
42
+ appNotifications: AppNotificationsState;
43
+ }) => boolean;
44
+ export declare const selectAppNotificationsHasMore: (state: {
45
+ appNotifications: AppNotificationsState;
46
+ }) => boolean;
47
+ export declare const selectAppNotificationsPage: (state: {
48
+ appNotifications: AppNotificationsState;
49
+ }) => number;
50
+ export declare const selectAppNotificationsLimit: (state: {
51
+ appNotifications: AppNotificationsState;
52
+ }) => number;
53
+ export declare const selectNotificationTemplates: (state: {
54
+ appNotifications: AppNotificationsState;
55
+ }) => Partial<NotificationTemplates> | undefined;
56
+ export declare const selectCurrentProjectId: (state: {
57
+ appNotifications: AppNotificationsState;
58
+ }) => string | undefined;