@replyke/core 7.0.0-beta.3 → 7.0.0-beta.30

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 (392) hide show
  1. package/dist/cjs/hooks/auth/useAuth.d.ts +1 -1
  2. package/dist/cjs/hooks/auth/useAuth.js +2 -2
  3. package/dist/cjs/hooks/auth/useAuth.js.map +1 -1
  4. package/dist/cjs/hooks/collections/index.d.ts +4 -0
  5. package/dist/cjs/hooks/collections/index.js +16 -0
  6. package/dist/cjs/hooks/collections/index.js.map +1 -0
  7. package/dist/cjs/hooks/collections/useCollectionEntitiesWrapper.d.ts +21 -0
  8. package/dist/cjs/hooks/collections/useCollectionEntitiesWrapper.js +209 -0
  9. package/dist/cjs/hooks/collections/useCollectionEntitiesWrapper.js.map +1 -0
  10. package/dist/cjs/hooks/collections/useCollections.d.ts +43 -0
  11. package/dist/cjs/hooks/collections/useCollections.js +277 -0
  12. package/dist/cjs/hooks/collections/useCollections.js.map +1 -0
  13. package/dist/cjs/hooks/collections/useCollectionsActions.d.ts +21 -0
  14. package/dist/cjs/hooks/{lists/useListsActions.js → collections/useCollectionsActions.js} +112 -118
  15. package/dist/cjs/hooks/collections/useCollectionsActions.js.map +1 -0
  16. package/dist/cjs/hooks/{lists → collections}/useIsEntitySaved.d.ts +2 -2
  17. package/dist/cjs/hooks/{lists → collections}/useIsEntitySaved.js +3 -3
  18. package/dist/cjs/hooks/collections/useIsEntitySaved.js.map +1 -0
  19. package/dist/cjs/hooks/comments/index.d.ts +2 -2
  20. package/dist/cjs/hooks/comments/index.js +3 -5
  21. package/dist/cjs/hooks/comments/index.js.map +1 -1
  22. package/dist/cjs/hooks/comments/useCommentSectionData.js +34 -11
  23. package/dist/cjs/hooks/comments/useCommentSectionData.js.map +1 -1
  24. package/dist/cjs/hooks/comments/useEntityComments.d.ts +2 -1
  25. package/dist/cjs/hooks/comments/useEntityComments.js +2 -1
  26. package/dist/cjs/hooks/comments/useEntityComments.js.map +1 -1
  27. package/dist/cjs/hooks/comments/useFetchComment.d.ts +3 -4
  28. package/dist/cjs/hooks/comments/useFetchComment.js +7 -5
  29. package/dist/cjs/hooks/comments/useFetchComment.js.map +1 -1
  30. package/dist/cjs/hooks/comments/useFetchCommentByForeignId.d.ts +3 -4
  31. package/dist/cjs/hooks/comments/useFetchCommentByForeignId.js +9 -6
  32. package/dist/cjs/hooks/comments/useFetchCommentByForeignId.js.map +1 -1
  33. package/dist/cjs/hooks/comments/useFetchManyComments.d.ts +2 -2
  34. package/dist/cjs/hooks/comments/useFetchManyComments.js +5 -7
  35. package/dist/cjs/hooks/comments/useFetchManyComments.js.map +1 -1
  36. package/dist/cjs/hooks/comments/useFetchManyCommentsWrapper.d.ts +21 -0
  37. package/dist/cjs/hooks/comments/{useProfileComments.js → useFetchManyCommentsWrapper.js} +40 -18
  38. package/dist/cjs/hooks/comments/useFetchManyCommentsWrapper.js.map +1 -0
  39. package/dist/cjs/hooks/comments/useReplies.js +1 -0
  40. package/dist/cjs/hooks/comments/useReplies.js.map +1 -1
  41. package/dist/cjs/hooks/entities/index.d.ts +2 -5
  42. package/dist/cjs/hooks/entities/index.js +3 -11
  43. package/dist/cjs/hooks/entities/index.js.map +1 -1
  44. package/dist/cjs/hooks/entities/useCreateEntity.d.ts +27 -0
  45. package/dist/cjs/hooks/entities/useCreateEntity.js +88 -15
  46. package/dist/cjs/hooks/entities/useCreateEntity.js.map +1 -1
  47. package/dist/cjs/hooks/entities/useEntityData.d.ts +0 -6
  48. package/dist/cjs/hooks/entities/useEntityData.js +0 -19
  49. package/dist/cjs/hooks/entities/useEntityData.js.map +1 -1
  50. package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.d.ts +41 -0
  51. package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js +241 -0
  52. package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -0
  53. package/dist/cjs/hooks/entity-lists/index.d.ts +1 -1
  54. package/dist/cjs/hooks/entity-lists/useEntityList.d.ts +2 -2
  55. package/dist/cjs/hooks/entity-lists/useEntityList.js +45 -17
  56. package/dist/cjs/hooks/entity-lists/useEntityList.js.map +1 -1
  57. package/dist/cjs/hooks/entity-lists/useEntityListActions.d.ts +6 -3
  58. package/dist/cjs/hooks/entity-lists/useEntityListActions.js +3 -0
  59. package/dist/cjs/hooks/entity-lists/useEntityListActions.js.map +1 -1
  60. package/dist/cjs/hooks/reactions/index.d.ts +10 -0
  61. package/dist/cjs/hooks/reactions/index.js +21 -0
  62. package/dist/cjs/hooks/reactions/index.js.map +1 -0
  63. package/dist/cjs/hooks/reactions/useAddReaction.d.ts +9 -0
  64. package/dist/cjs/hooks/{comments/useUpvoteComment.js → reactions/useAddReaction.js} +19 -13
  65. package/dist/cjs/hooks/reactions/useAddReaction.js.map +1 -0
  66. package/dist/cjs/hooks/reactions/useFetchCommentReactions.d.ts +10 -0
  67. package/dist/cjs/hooks/reactions/useFetchCommentReactions.js +84 -0
  68. package/dist/cjs/hooks/reactions/useFetchCommentReactions.js.map +1 -0
  69. package/dist/cjs/hooks/reactions/useFetchCommentReactionsWrapper.d.ts +17 -0
  70. package/dist/cjs/hooks/reactions/useFetchCommentReactionsWrapper.js +170 -0
  71. package/dist/cjs/hooks/reactions/useFetchCommentReactionsWrapper.js.map +1 -0
  72. package/dist/cjs/hooks/reactions/useFetchEntityReactions.d.ts +10 -0
  73. package/dist/cjs/hooks/{entities/useDownvoteEntity.js → reactions/useFetchEntityReactions.js} +26 -13
  74. package/dist/cjs/hooks/reactions/useFetchEntityReactions.js.map +1 -0
  75. package/dist/cjs/hooks/reactions/useFetchEntityReactionsWrapper.d.ts +17 -0
  76. package/dist/cjs/hooks/reactions/useFetchEntityReactionsWrapper.js +170 -0
  77. package/dist/cjs/hooks/reactions/useFetchEntityReactionsWrapper.js.map +1 -0
  78. package/dist/cjs/hooks/reactions/useReactionToggle.d.ts +19 -0
  79. package/dist/cjs/hooks/reactions/useReactionToggle.js +146 -0
  80. package/dist/cjs/hooks/reactions/useReactionToggle.js.map +1 -0
  81. package/dist/cjs/hooks/reactions/useRemoveReaction.d.ts +7 -0
  82. package/dist/cjs/hooks/{comments/useRemoveCommentDownvote.js → reactions/useRemoveReaction.js} +16 -13
  83. package/dist/cjs/hooks/reactions/useRemoveReaction.js.map +1 -0
  84. package/dist/cjs/hooks/space-lists/useSpaceList.js +1 -1
  85. package/dist/cjs/hooks/space-lists/useSpaceList.js.map +1 -1
  86. package/dist/cjs/hooks/spaces/index.d.ts +1 -0
  87. package/dist/cjs/hooks/spaces/index.js +3 -1
  88. package/dist/cjs/hooks/spaces/index.js.map +1 -1
  89. package/dist/cjs/hooks/spaces/useCheckMyMembership.d.ts +5 -0
  90. package/dist/cjs/hooks/{comments/useDownvoteComment.js → spaces/useCheckMyMembership.js} +14 -14
  91. package/dist/cjs/hooks/spaces/useCheckMyMembership.js.map +1 -0
  92. package/dist/cjs/hooks/storage/index.d.ts +1 -0
  93. package/dist/cjs/hooks/storage/index.js +3 -1
  94. package/dist/cjs/hooks/storage/index.js.map +1 -1
  95. package/dist/cjs/hooks/storage/useUploadFile.d.ts +12 -1
  96. package/dist/cjs/hooks/storage/useUploadFile.js +22 -8
  97. package/dist/cjs/hooks/storage/useUploadFile.js.map +1 -1
  98. package/dist/cjs/hooks/storage/useUploadImage.d.ts +14 -0
  99. package/dist/cjs/hooks/storage/useUploadImage.js +161 -0
  100. package/dist/cjs/hooks/storage/useUploadImage.js.map +1 -0
  101. package/dist/cjs/hooks/users/index.d.ts +1 -0
  102. package/dist/cjs/hooks/users/index.js +3 -1
  103. package/dist/cjs/hooks/users/index.js.map +1 -1
  104. package/dist/cjs/hooks/users/useFetchUserByUsername.d.ts +5 -0
  105. package/dist/cjs/hooks/{comments/useRemoveCommentUpvote.js → users/useFetchUserByUsername.js} +14 -13
  106. package/dist/cjs/hooks/users/useFetchUserByUsername.js.map +1 -0
  107. package/dist/cjs/index.d.ts +12 -9
  108. package/dist/cjs/index.js +22 -15
  109. package/dist/cjs/index.js.map +1 -1
  110. package/dist/cjs/interfaces/models/{List.d.ts → Collection.d.ts} +2 -4
  111. package/dist/cjs/interfaces/models/Collection.js +3 -0
  112. package/dist/cjs/interfaces/models/Collection.js.map +1 -0
  113. package/dist/cjs/interfaces/models/Comment.d.ts +8 -1
  114. package/dist/cjs/interfaces/models/Entity.d.ts +44 -1
  115. package/dist/cjs/interfaces/models/Image.d.ts +35 -0
  116. package/dist/cjs/interfaces/models/{List.js → Image.js} +1 -1
  117. package/dist/cjs/interfaces/models/Image.js.map +1 -0
  118. package/dist/cjs/interfaces/models/Reaction.d.ts +23 -0
  119. package/dist/cjs/interfaces/models/Reaction.js +3 -0
  120. package/dist/cjs/interfaces/models/Reaction.js.map +1 -0
  121. package/dist/cjs/interfaces/models/Space.d.ts +13 -0
  122. package/dist/cjs/store/api/appNotificationsApi.d.ts +181 -181
  123. package/dist/cjs/store/api/baseApi.d.ts +1 -1
  124. package/dist/cjs/store/api/baseApi.js +2 -1
  125. package/dist/cjs/store/api/baseApi.js.map +1 -1
  126. package/dist/cjs/store/api/collectionsApi.d.ts +4541 -0
  127. package/dist/cjs/store/api/collectionsApi.js +244 -0
  128. package/dist/cjs/store/api/collectionsApi.js.map +1 -0
  129. package/dist/cjs/store/api/entityListsApi.d.ts +111 -110
  130. package/dist/cjs/store/api/entityListsApi.js +13 -8
  131. package/dist/cjs/store/api/entityListsApi.js.map +1 -1
  132. package/dist/cjs/store/api/index.d.ts +1 -1
  133. package/dist/cjs/store/api/index.js +2 -2
  134. package/dist/cjs/store/api/index.js.map +1 -1
  135. package/dist/cjs/store/api/spacesApi.d.ts +950 -950
  136. package/dist/cjs/store/api/userApi.d.ts +3 -3
  137. package/dist/cjs/store/index.d.ts +4 -4
  138. package/dist/cjs/store/rootReducer.d.ts +4 -4
  139. package/dist/cjs/store/rootReducer.js +2 -2
  140. package/dist/cjs/store/rootReducer.js.map +1 -1
  141. package/dist/cjs/store/slices/authSlice.d.ts +1 -3
  142. package/dist/cjs/store/slices/authSlice.js +3 -9
  143. package/dist/cjs/store/slices/authSlice.js.map +1 -1
  144. package/dist/cjs/store/slices/authThunks.js +0 -3
  145. package/dist/cjs/store/slices/authThunks.js.map +1 -1
  146. package/dist/cjs/store/slices/collectionsSlice.d.ts +427 -0
  147. package/dist/cjs/store/slices/collectionsSlice.js +211 -0
  148. package/dist/cjs/store/slices/collectionsSlice.js.map +1 -0
  149. package/dist/cjs/store/slices/entityListsSlice.d.ts +704 -63
  150. package/dist/cjs/store/slices/entityListsSlice.js +45 -21
  151. package/dist/cjs/store/slices/entityListsSlice.js.map +1 -1
  152. package/dist/cjs/store/slices/spaceListsSlice.d.ts +1 -1
  153. package/dist/esm/hooks/auth/useAuth.d.ts +1 -1
  154. package/dist/esm/hooks/auth/useAuth.js +3 -3
  155. package/dist/esm/hooks/auth/useAuth.js.map +1 -1
  156. package/dist/esm/hooks/collections/index.d.ts +4 -0
  157. package/dist/esm/hooks/collections/index.js +6 -0
  158. package/dist/esm/hooks/collections/index.js.map +1 -0
  159. package/dist/esm/hooks/collections/useCollectionEntitiesWrapper.d.ts +21 -0
  160. package/dist/esm/hooks/collections/useCollectionEntitiesWrapper.js +204 -0
  161. package/dist/esm/hooks/collections/useCollectionEntitiesWrapper.js.map +1 -0
  162. package/dist/esm/hooks/collections/useCollections.d.ts +43 -0
  163. package/dist/esm/hooks/collections/useCollections.js +272 -0
  164. package/dist/esm/hooks/collections/useCollections.js.map +1 -0
  165. package/dist/esm/hooks/collections/useCollectionsActions.d.ts +21 -0
  166. package/dist/esm/hooks/{lists/useListsActions.js → collections/useCollectionsActions.js} +103 -109
  167. package/dist/esm/hooks/collections/useCollectionsActions.js.map +1 -0
  168. package/dist/esm/hooks/{lists → collections}/useIsEntitySaved.d.ts +2 -2
  169. package/dist/esm/hooks/{lists → collections}/useIsEntitySaved.js +3 -3
  170. package/dist/esm/hooks/collections/useIsEntitySaved.js.map +1 -0
  171. package/dist/esm/hooks/comments/index.d.ts +2 -2
  172. package/dist/esm/hooks/comments/index.js +1 -2
  173. package/dist/esm/hooks/comments/index.js.map +1 -1
  174. package/dist/esm/hooks/comments/useCommentSectionData.js +34 -11
  175. package/dist/esm/hooks/comments/useCommentSectionData.js.map +1 -1
  176. package/dist/esm/hooks/comments/useEntityComments.d.ts +2 -1
  177. package/dist/esm/hooks/comments/useEntityComments.js +2 -1
  178. package/dist/esm/hooks/comments/useEntityComments.js.map +1 -1
  179. package/dist/esm/hooks/comments/useFetchComment.d.ts +3 -4
  180. package/dist/esm/hooks/comments/useFetchComment.js +7 -5
  181. package/dist/esm/hooks/comments/useFetchComment.js.map +1 -1
  182. package/dist/esm/hooks/comments/useFetchCommentByForeignId.d.ts +3 -4
  183. package/dist/esm/hooks/comments/useFetchCommentByForeignId.js +9 -6
  184. package/dist/esm/hooks/comments/useFetchCommentByForeignId.js.map +1 -1
  185. package/dist/esm/hooks/comments/useFetchManyComments.d.ts +2 -2
  186. package/dist/esm/hooks/comments/useFetchManyComments.js +5 -7
  187. package/dist/esm/hooks/comments/useFetchManyComments.js.map +1 -1
  188. package/dist/esm/hooks/comments/useFetchManyCommentsWrapper.d.ts +21 -0
  189. package/dist/esm/hooks/comments/{useProfileComments.js → useFetchManyCommentsWrapper.js} +40 -18
  190. package/dist/esm/hooks/comments/useFetchManyCommentsWrapper.js.map +1 -0
  191. package/dist/esm/hooks/comments/useReplies.js +1 -0
  192. package/dist/esm/hooks/comments/useReplies.js.map +1 -1
  193. package/dist/esm/hooks/entities/index.d.ts +2 -5
  194. package/dist/esm/hooks/entities/index.js +1 -5
  195. package/dist/esm/hooks/entities/index.js.map +1 -1
  196. package/dist/esm/hooks/entities/useCreateEntity.d.ts +27 -0
  197. package/dist/esm/hooks/entities/useCreateEntity.js +88 -15
  198. package/dist/esm/hooks/entities/useCreateEntity.js.map +1 -1
  199. package/dist/esm/hooks/entities/useEntityData.d.ts +0 -6
  200. package/dist/esm/hooks/entities/useEntityData.js +0 -19
  201. package/dist/esm/hooks/entities/useEntityData.js.map +1 -1
  202. package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.d.ts +41 -0
  203. package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js +236 -0
  204. package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -0
  205. package/dist/esm/hooks/entity-lists/index.d.ts +1 -1
  206. package/dist/esm/hooks/entity-lists/useEntityList.d.ts +2 -2
  207. package/dist/esm/hooks/entity-lists/useEntityList.js +46 -18
  208. package/dist/esm/hooks/entity-lists/useEntityList.js.map +1 -1
  209. package/dist/esm/hooks/entity-lists/useEntityListActions.d.ts +6 -3
  210. package/dist/esm/hooks/entity-lists/useEntityListActions.js +3 -0
  211. package/dist/esm/hooks/entity-lists/useEntityListActions.js.map +1 -1
  212. package/dist/esm/hooks/reactions/index.d.ts +10 -0
  213. package/dist/esm/hooks/reactions/index.js +8 -0
  214. package/dist/esm/hooks/reactions/index.js.map +1 -0
  215. package/dist/esm/hooks/reactions/useAddReaction.d.ts +9 -0
  216. package/dist/esm/hooks/{comments/useUpvoteComment.js → reactions/useAddReaction.js} +19 -13
  217. package/dist/esm/hooks/reactions/useAddReaction.js.map +1 -0
  218. package/dist/esm/hooks/reactions/useFetchCommentReactions.d.ts +10 -0
  219. package/dist/esm/hooks/reactions/useFetchCommentReactions.js +79 -0
  220. package/dist/esm/hooks/reactions/useFetchCommentReactions.js.map +1 -0
  221. package/dist/esm/hooks/reactions/useFetchCommentReactionsWrapper.d.ts +17 -0
  222. package/dist/esm/hooks/reactions/useFetchCommentReactionsWrapper.js +165 -0
  223. package/dist/esm/hooks/reactions/useFetchCommentReactionsWrapper.js.map +1 -0
  224. package/dist/esm/hooks/reactions/useFetchEntityReactions.d.ts +10 -0
  225. package/dist/esm/hooks/{entities/useDownvoteEntity.js → reactions/useFetchEntityReactions.js} +26 -13
  226. package/dist/esm/hooks/reactions/useFetchEntityReactions.js.map +1 -0
  227. package/dist/esm/hooks/reactions/useFetchEntityReactionsWrapper.d.ts +17 -0
  228. package/dist/esm/hooks/reactions/useFetchEntityReactionsWrapper.js +165 -0
  229. package/dist/esm/hooks/reactions/useFetchEntityReactionsWrapper.js.map +1 -0
  230. package/dist/esm/hooks/reactions/useReactionToggle.d.ts +19 -0
  231. package/dist/esm/hooks/reactions/useReactionToggle.js +141 -0
  232. package/dist/esm/hooks/reactions/useReactionToggle.js.map +1 -0
  233. package/dist/esm/hooks/reactions/useRemoveReaction.d.ts +7 -0
  234. package/dist/esm/hooks/{comments/useRemoveCommentDownvote.js → reactions/useRemoveReaction.js} +16 -13
  235. package/dist/esm/hooks/reactions/useRemoveReaction.js.map +1 -0
  236. package/dist/esm/hooks/space-lists/useSpaceList.js +1 -1
  237. package/dist/esm/hooks/space-lists/useSpaceList.js.map +1 -1
  238. package/dist/esm/hooks/spaces/index.d.ts +1 -0
  239. package/dist/esm/hooks/spaces/index.js +1 -0
  240. package/dist/esm/hooks/spaces/index.js.map +1 -1
  241. package/dist/esm/hooks/spaces/useCheckMyMembership.d.ts +5 -0
  242. package/dist/esm/hooks/{comments/useDownvoteComment.js → spaces/useCheckMyMembership.js} +14 -14
  243. package/dist/esm/hooks/spaces/useCheckMyMembership.js.map +1 -0
  244. package/dist/esm/hooks/storage/index.d.ts +1 -0
  245. package/dist/esm/hooks/storage/index.js +1 -0
  246. package/dist/esm/hooks/storage/index.js.map +1 -1
  247. package/dist/esm/hooks/storage/useUploadFile.d.ts +12 -1
  248. package/dist/esm/hooks/storage/useUploadFile.js +22 -8
  249. package/dist/esm/hooks/storage/useUploadFile.js.map +1 -1
  250. package/dist/esm/hooks/storage/useUploadImage.d.ts +14 -0
  251. package/dist/esm/hooks/storage/useUploadImage.js +156 -0
  252. package/dist/esm/hooks/storage/useUploadImage.js.map +1 -0
  253. package/dist/esm/hooks/users/index.d.ts +1 -0
  254. package/dist/esm/hooks/users/index.js +1 -0
  255. package/dist/esm/hooks/users/index.js.map +1 -1
  256. package/dist/esm/hooks/users/useFetchUserByUsername.d.ts +5 -0
  257. package/dist/esm/hooks/{comments/useRemoveCommentUpvote.js → users/useFetchUserByUsername.js} +14 -13
  258. package/dist/esm/hooks/users/useFetchUserByUsername.js.map +1 -0
  259. package/dist/esm/index.d.ts +12 -9
  260. package/dist/esm/index.js +8 -6
  261. package/dist/esm/index.js.map +1 -1
  262. package/dist/esm/interfaces/models/{List.d.ts → Collection.d.ts} +2 -4
  263. package/dist/esm/interfaces/models/Collection.js +2 -0
  264. package/dist/esm/interfaces/models/Collection.js.map +1 -0
  265. package/dist/esm/interfaces/models/Comment.d.ts +8 -1
  266. package/dist/esm/interfaces/models/Entity.d.ts +44 -1
  267. package/dist/esm/interfaces/models/Image.d.ts +35 -0
  268. package/dist/esm/interfaces/models/Image.js +2 -0
  269. package/dist/esm/interfaces/models/Image.js.map +1 -0
  270. package/dist/esm/interfaces/models/Reaction.d.ts +23 -0
  271. package/dist/esm/interfaces/models/Reaction.js +2 -0
  272. package/dist/esm/interfaces/models/Reaction.js.map +1 -0
  273. package/dist/esm/interfaces/models/Space.d.ts +13 -0
  274. package/dist/esm/store/api/appNotificationsApi.d.ts +181 -181
  275. package/dist/esm/store/api/baseApi.d.ts +1 -1
  276. package/dist/esm/store/api/baseApi.js +2 -1
  277. package/dist/esm/store/api/baseApi.js.map +1 -1
  278. package/dist/esm/store/api/collectionsApi.d.ts +4541 -0
  279. package/dist/esm/store/api/collectionsApi.js +241 -0
  280. package/dist/esm/store/api/collectionsApi.js.map +1 -0
  281. package/dist/esm/store/api/entityListsApi.d.ts +111 -110
  282. package/dist/esm/store/api/entityListsApi.js +13 -8
  283. package/dist/esm/store/api/entityListsApi.js.map +1 -1
  284. package/dist/esm/store/api/index.d.ts +1 -1
  285. package/dist/esm/store/api/index.js +2 -2
  286. package/dist/esm/store/api/index.js.map +1 -1
  287. package/dist/esm/store/api/spacesApi.d.ts +950 -950
  288. package/dist/esm/store/api/userApi.d.ts +3 -3
  289. package/dist/esm/store/index.d.ts +4 -4
  290. package/dist/esm/store/rootReducer.d.ts +4 -4
  291. package/dist/esm/store/rootReducer.js +2 -2
  292. package/dist/esm/store/rootReducer.js.map +1 -1
  293. package/dist/esm/store/slices/authSlice.d.ts +1 -3
  294. package/dist/esm/store/slices/authSlice.js +2 -7
  295. package/dist/esm/store/slices/authSlice.js.map +1 -1
  296. package/dist/esm/store/slices/authThunks.js +1 -4
  297. package/dist/esm/store/slices/authThunks.js.map +1 -1
  298. package/dist/esm/store/slices/collectionsSlice.d.ts +427 -0
  299. package/dist/esm/store/slices/collectionsSlice.js +202 -0
  300. package/dist/esm/store/slices/collectionsSlice.js.map +1 -0
  301. package/dist/esm/store/slices/entityListsSlice.d.ts +704 -63
  302. package/dist/esm/store/slices/entityListsSlice.js +44 -20
  303. package/dist/esm/store/slices/entityListsSlice.js.map +1 -1
  304. package/dist/esm/store/slices/spaceListsSlice.d.ts +1 -1
  305. package/package.json +1 -1
  306. package/dist/cjs/hooks/comments/useCommentVotes.d.ts +0 -11
  307. package/dist/cjs/hooks/comments/useCommentVotes.js +0 -234
  308. package/dist/cjs/hooks/comments/useCommentVotes.js.map +0 -1
  309. package/dist/cjs/hooks/comments/useDownvoteComment.d.ts +0 -5
  310. package/dist/cjs/hooks/comments/useDownvoteComment.js.map +0 -1
  311. package/dist/cjs/hooks/comments/useProfileComments.d.ts +0 -18
  312. package/dist/cjs/hooks/comments/useProfileComments.js.map +0 -1
  313. package/dist/cjs/hooks/comments/useRemoveCommentDownvote.d.ts +0 -5
  314. package/dist/cjs/hooks/comments/useRemoveCommentDownvote.js.map +0 -1
  315. package/dist/cjs/hooks/comments/useRemoveCommentUpvote.d.ts +0 -5
  316. package/dist/cjs/hooks/comments/useRemoveCommentUpvote.js.map +0 -1
  317. package/dist/cjs/hooks/comments/useUpvoteComment.d.ts +0 -5
  318. package/dist/cjs/hooks/comments/useUpvoteComment.js.map +0 -1
  319. package/dist/cjs/hooks/entities/useDownvoteEntity.d.ts +0 -5
  320. package/dist/cjs/hooks/entities/useDownvoteEntity.js.map +0 -1
  321. package/dist/cjs/hooks/entities/useEntityVotes.d.ts +0 -11
  322. package/dist/cjs/hooks/entities/useEntityVotes.js +0 -241
  323. package/dist/cjs/hooks/entities/useEntityVotes.js.map +0 -1
  324. package/dist/cjs/hooks/entities/useRemoveEntityDownvote.d.ts +0 -5
  325. package/dist/cjs/hooks/entities/useRemoveEntityDownvote.js +0 -71
  326. package/dist/cjs/hooks/entities/useRemoveEntityDownvote.js.map +0 -1
  327. package/dist/cjs/hooks/entities/useRemoveEntityUpvote.d.ts +0 -5
  328. package/dist/cjs/hooks/entities/useRemoveEntityUpvote.js +0 -71
  329. package/dist/cjs/hooks/entities/useRemoveEntityUpvote.js.map +0 -1
  330. package/dist/cjs/hooks/entities/useUpvoteEntity.d.ts +0 -5
  331. package/dist/cjs/hooks/entities/useUpvoteEntity.js +0 -71
  332. package/dist/cjs/hooks/entities/useUpvoteEntity.js.map +0 -1
  333. package/dist/cjs/hooks/lists/index.d.ts +0 -3
  334. package/dist/cjs/hooks/lists/index.js +0 -14
  335. package/dist/cjs/hooks/lists/index.js.map +0 -1
  336. package/dist/cjs/hooks/lists/useIsEntitySaved.js.map +0 -1
  337. package/dist/cjs/hooks/lists/useLists.d.ts +0 -36
  338. package/dist/cjs/hooks/lists/useLists.js +0 -239
  339. package/dist/cjs/hooks/lists/useLists.js.map +0 -1
  340. package/dist/cjs/hooks/lists/useListsActions.d.ts +0 -21
  341. package/dist/cjs/hooks/lists/useListsActions.js.map +0 -1
  342. package/dist/cjs/interfaces/models/List.js.map +0 -1
  343. package/dist/cjs/store/api/listsApi.d.ts +0 -3564
  344. package/dist/cjs/store/api/listsApi.js +0 -288
  345. package/dist/cjs/store/api/listsApi.js.map +0 -1
  346. package/dist/cjs/store/slices/listsSlice.d.ts +0 -1911
  347. package/dist/cjs/store/slices/listsSlice.js +0 -211
  348. package/dist/cjs/store/slices/listsSlice.js.map +0 -1
  349. package/dist/esm/hooks/comments/useCommentVotes.d.ts +0 -11
  350. package/dist/esm/hooks/comments/useCommentVotes.js +0 -229
  351. package/dist/esm/hooks/comments/useCommentVotes.js.map +0 -1
  352. package/dist/esm/hooks/comments/useDownvoteComment.d.ts +0 -5
  353. package/dist/esm/hooks/comments/useDownvoteComment.js.map +0 -1
  354. package/dist/esm/hooks/comments/useProfileComments.d.ts +0 -18
  355. package/dist/esm/hooks/comments/useProfileComments.js.map +0 -1
  356. package/dist/esm/hooks/comments/useRemoveCommentDownvote.d.ts +0 -5
  357. package/dist/esm/hooks/comments/useRemoveCommentDownvote.js.map +0 -1
  358. package/dist/esm/hooks/comments/useRemoveCommentUpvote.d.ts +0 -5
  359. package/dist/esm/hooks/comments/useRemoveCommentUpvote.js.map +0 -1
  360. package/dist/esm/hooks/comments/useUpvoteComment.d.ts +0 -5
  361. package/dist/esm/hooks/comments/useUpvoteComment.js.map +0 -1
  362. package/dist/esm/hooks/entities/useDownvoteEntity.d.ts +0 -5
  363. package/dist/esm/hooks/entities/useDownvoteEntity.js.map +0 -1
  364. package/dist/esm/hooks/entities/useEntityVotes.d.ts +0 -11
  365. package/dist/esm/hooks/entities/useEntityVotes.js +0 -236
  366. package/dist/esm/hooks/entities/useEntityVotes.js.map +0 -1
  367. package/dist/esm/hooks/entities/useRemoveEntityDownvote.d.ts +0 -5
  368. package/dist/esm/hooks/entities/useRemoveEntityDownvote.js +0 -66
  369. package/dist/esm/hooks/entities/useRemoveEntityDownvote.js.map +0 -1
  370. package/dist/esm/hooks/entities/useRemoveEntityUpvote.d.ts +0 -5
  371. package/dist/esm/hooks/entities/useRemoveEntityUpvote.js +0 -66
  372. package/dist/esm/hooks/entities/useRemoveEntityUpvote.js.map +0 -1
  373. package/dist/esm/hooks/entities/useUpvoteEntity.d.ts +0 -5
  374. package/dist/esm/hooks/entities/useUpvoteEntity.js +0 -66
  375. package/dist/esm/hooks/entities/useUpvoteEntity.js.map +0 -1
  376. package/dist/esm/hooks/lists/index.d.ts +0 -3
  377. package/dist/esm/hooks/lists/index.js +0 -5
  378. package/dist/esm/hooks/lists/index.js.map +0 -1
  379. package/dist/esm/hooks/lists/useIsEntitySaved.js.map +0 -1
  380. package/dist/esm/hooks/lists/useLists.d.ts +0 -36
  381. package/dist/esm/hooks/lists/useLists.js +0 -234
  382. package/dist/esm/hooks/lists/useLists.js.map +0 -1
  383. package/dist/esm/hooks/lists/useListsActions.d.ts +0 -21
  384. package/dist/esm/hooks/lists/useListsActions.js.map +0 -1
  385. package/dist/esm/interfaces/models/List.js +0 -2
  386. package/dist/esm/interfaces/models/List.js.map +0 -1
  387. package/dist/esm/store/api/listsApi.d.ts +0 -3564
  388. package/dist/esm/store/api/listsApi.js +0 -285
  389. package/dist/esm/store/api/listsApi.js.map +0 -1
  390. package/dist/esm/store/slices/listsSlice.d.ts +0 -1911
  391. package/dist/esm/store/slices/listsSlice.js +0 -202
  392. package/dist/esm/store/slices/listsSlice.js.map +0 -1
@@ -1,1911 +0,0 @@
1
- import { PayloadAction } from "@reduxjs/toolkit";
2
- import type { List } from "../../interfaces/models/List";
3
- export interface ListsState {
4
- listsById: {
5
- [listId: string]: List;
6
- };
7
- sublistsMap: {
8
- [parentId: string]: string[];
9
- };
10
- currentListId: string | null;
11
- listHistory: string[];
12
- loading: boolean;
13
- currentProjectId?: string;
14
- }
15
- export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
16
- setProjectContext: (state: {
17
- listsById: {
18
- [x: string]: {
19
- id: string;
20
- projectId: string;
21
- userId: string;
22
- parentId: string | null;
23
- name: string;
24
- entityIds: string[];
25
- entities: {
26
- id?: string | undefined;
27
- foreignId?: string | null | undefined;
28
- shortId?: string | undefined;
29
- projectId?: string | undefined;
30
- sourceId?: string | null | undefined;
31
- spaceId?: string | null | undefined;
32
- space?: {
33
- id: string;
34
- projectId: string;
35
- shortId: string;
36
- slug: string | null;
37
- name: string;
38
- description: string | null;
39
- avatar: string | null;
40
- banner: string | null;
41
- userId: string;
42
- readingPermission: import("../..").ReadingPermission;
43
- postingPermission: import("../..").PostingPermission;
44
- requireJoinApproval: boolean;
45
- parentSpaceId: string | null;
46
- depth: number;
47
- metadata: {
48
- [x: string]: any;
49
- };
50
- createdAt: Date;
51
- updatedAt: Date;
52
- deletedAt: Date | null;
53
- membersCount: number;
54
- childSpacesCount: number;
55
- isMember?: boolean | undefined;
56
- } | null | undefined;
57
- user?: {
58
- id: string;
59
- projectId: string;
60
- foreignId: string | null;
61
- role: import("../..").UserRole;
62
- name: string | null;
63
- username: string | null;
64
- avatar: string | null;
65
- bio: string | null;
66
- birthdate: Date | null;
67
- metadata: {
68
- [x: string]: any;
69
- };
70
- reputation: number;
71
- createdAt: Date;
72
- location: {
73
- type: "Point";
74
- coordinates: [number, number];
75
- } | null;
76
- } | null | undefined;
77
- title?: string | null | undefined;
78
- content?: string | null | undefined;
79
- mentions?: {
80
- id: string;
81
- foreignId?: string | null | undefined;
82
- username: string;
83
- }[] | undefined;
84
- attachments?: {
85
- [x: string]: any;
86
- }[] | undefined;
87
- keywords?: string[] | undefined;
88
- upvotes?: string[] | undefined;
89
- downvotes?: string[] | undefined;
90
- repliesCount?: number | undefined;
91
- views?: number | undefined;
92
- score?: number | undefined;
93
- scoreUpdatedAt?: Date | undefined;
94
- location?: {
95
- type: "Point";
96
- coordinates: [number, number];
97
- } | null | undefined;
98
- metadata?: {
99
- [x: string]: any;
100
- } | undefined;
101
- topComment?: {
102
- id: string;
103
- user: {
104
- id: string;
105
- projectId: string;
106
- foreignId: string | null;
107
- role: import("../..").UserRole;
108
- name: string | null;
109
- username: string | null;
110
- avatar: string | null;
111
- bio: string | null;
112
- birthdate: Date | null;
113
- metadata: {
114
- [x: string]: any;
115
- };
116
- reputation: number;
117
- createdAt: Date;
118
- location: {
119
- type: "Point";
120
- coordinates: [number, number];
121
- } | null;
122
- };
123
- upvotesCount: number;
124
- content: string;
125
- createdAt: string;
126
- } | null | undefined;
127
- createdAt?: Date | undefined;
128
- updatedAt?: Date | undefined;
129
- deletedAt?: Date | null | undefined;
130
- }[];
131
- createdAt: Date;
132
- updatedAt: Date;
133
- };
134
- };
135
- sublistsMap: {
136
- [x: string]: string[];
137
- };
138
- currentListId: string | null;
139
- listHistory: string[];
140
- loading: boolean;
141
- currentProjectId?: string | undefined;
142
- }, action: PayloadAction<string>) => void;
143
- setLoading: (state: {
144
- listsById: {
145
- [x: string]: {
146
- id: string;
147
- projectId: string;
148
- userId: string;
149
- parentId: string | null;
150
- name: string;
151
- entityIds: string[];
152
- entities: {
153
- id?: string | undefined;
154
- foreignId?: string | null | undefined;
155
- shortId?: string | undefined;
156
- projectId?: string | undefined;
157
- sourceId?: string | null | undefined;
158
- spaceId?: string | null | undefined;
159
- space?: {
160
- id: string;
161
- projectId: string;
162
- shortId: string;
163
- slug: string | null;
164
- name: string;
165
- description: string | null;
166
- avatar: string | null;
167
- banner: string | null;
168
- userId: string;
169
- readingPermission: import("../..").ReadingPermission;
170
- postingPermission: import("../..").PostingPermission;
171
- requireJoinApproval: boolean;
172
- parentSpaceId: string | null;
173
- depth: number;
174
- metadata: {
175
- [x: string]: any;
176
- };
177
- createdAt: Date;
178
- updatedAt: Date;
179
- deletedAt: Date | null;
180
- membersCount: number;
181
- childSpacesCount: number;
182
- isMember?: boolean | undefined;
183
- } | null | undefined;
184
- user?: {
185
- id: string;
186
- projectId: string;
187
- foreignId: string | null;
188
- role: import("../..").UserRole;
189
- name: string | null;
190
- username: string | null;
191
- avatar: string | null;
192
- bio: string | null;
193
- birthdate: Date | null;
194
- metadata: {
195
- [x: string]: any;
196
- };
197
- reputation: number;
198
- createdAt: Date;
199
- location: {
200
- type: "Point";
201
- coordinates: [number, number];
202
- } | null;
203
- } | null | undefined;
204
- title?: string | null | undefined;
205
- content?: string | null | undefined;
206
- mentions?: {
207
- id: string;
208
- foreignId?: string | null | undefined;
209
- username: string;
210
- }[] | undefined;
211
- attachments?: {
212
- [x: string]: any;
213
- }[] | undefined;
214
- keywords?: string[] | undefined;
215
- upvotes?: string[] | undefined;
216
- downvotes?: string[] | undefined;
217
- repliesCount?: number | undefined;
218
- views?: number | undefined;
219
- score?: number | undefined;
220
- scoreUpdatedAt?: Date | undefined;
221
- location?: {
222
- type: "Point";
223
- coordinates: [number, number];
224
- } | null | undefined;
225
- metadata?: {
226
- [x: string]: any;
227
- } | undefined;
228
- topComment?: {
229
- id: string;
230
- user: {
231
- id: string;
232
- projectId: string;
233
- foreignId: string | null;
234
- role: import("../..").UserRole;
235
- name: string | null;
236
- username: string | null;
237
- avatar: string | null;
238
- bio: string | null;
239
- birthdate: Date | null;
240
- metadata: {
241
- [x: string]: any;
242
- };
243
- reputation: number;
244
- createdAt: Date;
245
- location: {
246
- type: "Point";
247
- coordinates: [number, number];
248
- } | null;
249
- };
250
- upvotesCount: number;
251
- content: string;
252
- createdAt: string;
253
- } | null | undefined;
254
- createdAt?: Date | undefined;
255
- updatedAt?: Date | undefined;
256
- deletedAt?: Date | null | undefined;
257
- }[];
258
- createdAt: Date;
259
- updatedAt: Date;
260
- };
261
- };
262
- sublistsMap: {
263
- [x: string]: string[];
264
- };
265
- currentListId: string | null;
266
- listHistory: string[];
267
- loading: boolean;
268
- currentProjectId?: string | undefined;
269
- }, action: PayloadAction<boolean>) => void;
270
- openList: (state: {
271
- listsById: {
272
- [x: string]: {
273
- id: string;
274
- projectId: string;
275
- userId: string;
276
- parentId: string | null;
277
- name: string;
278
- entityIds: string[];
279
- entities: {
280
- id?: string | undefined;
281
- foreignId?: string | null | undefined;
282
- shortId?: string | undefined;
283
- projectId?: string | undefined;
284
- sourceId?: string | null | undefined;
285
- spaceId?: string | null | undefined;
286
- space?: {
287
- id: string;
288
- projectId: string;
289
- shortId: string;
290
- slug: string | null;
291
- name: string;
292
- description: string | null;
293
- avatar: string | null;
294
- banner: string | null;
295
- userId: string;
296
- readingPermission: import("../..").ReadingPermission;
297
- postingPermission: import("../..").PostingPermission;
298
- requireJoinApproval: boolean;
299
- parentSpaceId: string | null;
300
- depth: number;
301
- metadata: {
302
- [x: string]: any;
303
- };
304
- createdAt: Date;
305
- updatedAt: Date;
306
- deletedAt: Date | null;
307
- membersCount: number;
308
- childSpacesCount: number;
309
- isMember?: boolean | undefined;
310
- } | null | undefined;
311
- user?: {
312
- id: string;
313
- projectId: string;
314
- foreignId: string | null;
315
- role: import("../..").UserRole;
316
- name: string | null;
317
- username: string | null;
318
- avatar: string | null;
319
- bio: string | null;
320
- birthdate: Date | null;
321
- metadata: {
322
- [x: string]: any;
323
- };
324
- reputation: number;
325
- createdAt: Date;
326
- location: {
327
- type: "Point";
328
- coordinates: [number, number];
329
- } | null;
330
- } | null | undefined;
331
- title?: string | null | undefined;
332
- content?: string | null | undefined;
333
- mentions?: {
334
- id: string;
335
- foreignId?: string | null | undefined;
336
- username: string;
337
- }[] | undefined;
338
- attachments?: {
339
- [x: string]: any;
340
- }[] | undefined;
341
- keywords?: string[] | undefined;
342
- upvotes?: string[] | undefined;
343
- downvotes?: string[] | undefined;
344
- repliesCount?: number | undefined;
345
- views?: number | undefined;
346
- score?: number | undefined;
347
- scoreUpdatedAt?: Date | undefined;
348
- location?: {
349
- type: "Point";
350
- coordinates: [number, number];
351
- } | null | undefined;
352
- metadata?: {
353
- [x: string]: any;
354
- } | undefined;
355
- topComment?: {
356
- id: string;
357
- user: {
358
- id: string;
359
- projectId: string;
360
- foreignId: string | null;
361
- role: import("../..").UserRole;
362
- name: string | null;
363
- username: string | null;
364
- avatar: string | null;
365
- bio: string | null;
366
- birthdate: Date | null;
367
- metadata: {
368
- [x: string]: any;
369
- };
370
- reputation: number;
371
- createdAt: Date;
372
- location: {
373
- type: "Point";
374
- coordinates: [number, number];
375
- } | null;
376
- };
377
- upvotesCount: number;
378
- content: string;
379
- createdAt: string;
380
- } | null | undefined;
381
- createdAt?: Date | undefined;
382
- updatedAt?: Date | undefined;
383
- deletedAt?: Date | null | undefined;
384
- }[];
385
- createdAt: Date;
386
- updatedAt: Date;
387
- };
388
- };
389
- sublistsMap: {
390
- [x: string]: string[];
391
- };
392
- currentListId: string | null;
393
- listHistory: string[];
394
- loading: boolean;
395
- currentProjectId?: string | undefined;
396
- }, action: PayloadAction<List>) => void;
397
- goBack: (state: {
398
- listsById: {
399
- [x: string]: {
400
- id: string;
401
- projectId: string;
402
- userId: string;
403
- parentId: string | null;
404
- name: string;
405
- entityIds: string[];
406
- entities: {
407
- id?: string | undefined;
408
- foreignId?: string | null | undefined;
409
- shortId?: string | undefined;
410
- projectId?: string | undefined;
411
- sourceId?: string | null | undefined;
412
- spaceId?: string | null | undefined;
413
- space?: {
414
- id: string;
415
- projectId: string;
416
- shortId: string;
417
- slug: string | null;
418
- name: string;
419
- description: string | null;
420
- avatar: string | null;
421
- banner: string | null;
422
- userId: string;
423
- readingPermission: import("../..").ReadingPermission;
424
- postingPermission: import("../..").PostingPermission;
425
- requireJoinApproval: boolean;
426
- parentSpaceId: string | null;
427
- depth: number;
428
- metadata: {
429
- [x: string]: any;
430
- };
431
- createdAt: Date;
432
- updatedAt: Date;
433
- deletedAt: Date | null;
434
- membersCount: number;
435
- childSpacesCount: number;
436
- isMember?: boolean | undefined;
437
- } | null | undefined;
438
- user?: {
439
- id: string;
440
- projectId: string;
441
- foreignId: string | null;
442
- role: import("../..").UserRole;
443
- name: string | null;
444
- username: string | null;
445
- avatar: string | null;
446
- bio: string | null;
447
- birthdate: Date | null;
448
- metadata: {
449
- [x: string]: any;
450
- };
451
- reputation: number;
452
- createdAt: Date;
453
- location: {
454
- type: "Point";
455
- coordinates: [number, number];
456
- } | null;
457
- } | null | undefined;
458
- title?: string | null | undefined;
459
- content?: string | null | undefined;
460
- mentions?: {
461
- id: string;
462
- foreignId?: string | null | undefined;
463
- username: string;
464
- }[] | undefined;
465
- attachments?: {
466
- [x: string]: any;
467
- }[] | undefined;
468
- keywords?: string[] | undefined;
469
- upvotes?: string[] | undefined;
470
- downvotes?: string[] | undefined;
471
- repliesCount?: number | undefined;
472
- views?: number | undefined;
473
- score?: number | undefined;
474
- scoreUpdatedAt?: Date | undefined;
475
- location?: {
476
- type: "Point";
477
- coordinates: [number, number];
478
- } | null | undefined;
479
- metadata?: {
480
- [x: string]: any;
481
- } | undefined;
482
- topComment?: {
483
- id: string;
484
- user: {
485
- id: string;
486
- projectId: string;
487
- foreignId: string | null;
488
- role: import("../..").UserRole;
489
- name: string | null;
490
- username: string | null;
491
- avatar: string | null;
492
- bio: string | null;
493
- birthdate: Date | null;
494
- metadata: {
495
- [x: string]: any;
496
- };
497
- reputation: number;
498
- createdAt: Date;
499
- location: {
500
- type: "Point";
501
- coordinates: [number, number];
502
- } | null;
503
- };
504
- upvotesCount: number;
505
- content: string;
506
- createdAt: string;
507
- } | null | undefined;
508
- createdAt?: Date | undefined;
509
- updatedAt?: Date | undefined;
510
- deletedAt?: Date | null | undefined;
511
- }[];
512
- createdAt: Date;
513
- updatedAt: Date;
514
- };
515
- };
516
- sublistsMap: {
517
- [x: string]: string[];
518
- };
519
- currentListId: string | null;
520
- listHistory: string[];
521
- loading: boolean;
522
- currentProjectId?: string | undefined;
523
- }) => void;
524
- goToRoot: (state: {
525
- listsById: {
526
- [x: string]: {
527
- id: string;
528
- projectId: string;
529
- userId: string;
530
- parentId: string | null;
531
- name: string;
532
- entityIds: string[];
533
- entities: {
534
- id?: string | undefined;
535
- foreignId?: string | null | undefined;
536
- shortId?: string | undefined;
537
- projectId?: string | undefined;
538
- sourceId?: string | null | undefined;
539
- spaceId?: string | null | undefined;
540
- space?: {
541
- id: string;
542
- projectId: string;
543
- shortId: string;
544
- slug: string | null;
545
- name: string;
546
- description: string | null;
547
- avatar: string | null;
548
- banner: string | null;
549
- userId: string;
550
- readingPermission: import("../..").ReadingPermission;
551
- postingPermission: import("../..").PostingPermission;
552
- requireJoinApproval: boolean;
553
- parentSpaceId: string | null;
554
- depth: number;
555
- metadata: {
556
- [x: string]: any;
557
- };
558
- createdAt: Date;
559
- updatedAt: Date;
560
- deletedAt: Date | null;
561
- membersCount: number;
562
- childSpacesCount: number;
563
- isMember?: boolean | undefined;
564
- } | null | undefined;
565
- user?: {
566
- id: string;
567
- projectId: string;
568
- foreignId: string | null;
569
- role: import("../..").UserRole;
570
- name: string | null;
571
- username: string | null;
572
- avatar: string | null;
573
- bio: string | null;
574
- birthdate: Date | null;
575
- metadata: {
576
- [x: string]: any;
577
- };
578
- reputation: number;
579
- createdAt: Date;
580
- location: {
581
- type: "Point";
582
- coordinates: [number, number];
583
- } | null;
584
- } | null | undefined;
585
- title?: string | null | undefined;
586
- content?: string | null | undefined;
587
- mentions?: {
588
- id: string;
589
- foreignId?: string | null | undefined;
590
- username: string;
591
- }[] | undefined;
592
- attachments?: {
593
- [x: string]: any;
594
- }[] | undefined;
595
- keywords?: string[] | undefined;
596
- upvotes?: string[] | undefined;
597
- downvotes?: string[] | undefined;
598
- repliesCount?: number | undefined;
599
- views?: number | undefined;
600
- score?: number | undefined;
601
- scoreUpdatedAt?: Date | undefined;
602
- location?: {
603
- type: "Point";
604
- coordinates: [number, number];
605
- } | null | undefined;
606
- metadata?: {
607
- [x: string]: any;
608
- } | undefined;
609
- topComment?: {
610
- id: string;
611
- user: {
612
- id: string;
613
- projectId: string;
614
- foreignId: string | null;
615
- role: import("../..").UserRole;
616
- name: string | null;
617
- username: string | null;
618
- avatar: string | null;
619
- bio: string | null;
620
- birthdate: Date | null;
621
- metadata: {
622
- [x: string]: any;
623
- };
624
- reputation: number;
625
- createdAt: Date;
626
- location: {
627
- type: "Point";
628
- coordinates: [number, number];
629
- } | null;
630
- };
631
- upvotesCount: number;
632
- content: string;
633
- createdAt: string;
634
- } | null | undefined;
635
- createdAt?: Date | undefined;
636
- updatedAt?: Date | undefined;
637
- deletedAt?: Date | null | undefined;
638
- }[];
639
- createdAt: Date;
640
- updatedAt: Date;
641
- };
642
- };
643
- sublistsMap: {
644
- [x: string]: string[];
645
- };
646
- currentListId: string | null;
647
- listHistory: string[];
648
- loading: boolean;
649
- currentProjectId?: string | undefined;
650
- }) => void;
651
- setCurrentList: (state: {
652
- listsById: {
653
- [x: string]: {
654
- id: string;
655
- projectId: string;
656
- userId: string;
657
- parentId: string | null;
658
- name: string;
659
- entityIds: string[];
660
- entities: {
661
- id?: string | undefined;
662
- foreignId?: string | null | undefined;
663
- shortId?: string | undefined;
664
- projectId?: string | undefined;
665
- sourceId?: string | null | undefined;
666
- spaceId?: string | null | undefined;
667
- space?: {
668
- id: string;
669
- projectId: string;
670
- shortId: string;
671
- slug: string | null;
672
- name: string;
673
- description: string | null;
674
- avatar: string | null;
675
- banner: string | null;
676
- userId: string;
677
- readingPermission: import("../..").ReadingPermission;
678
- postingPermission: import("../..").PostingPermission;
679
- requireJoinApproval: boolean;
680
- parentSpaceId: string | null;
681
- depth: number;
682
- metadata: {
683
- [x: string]: any;
684
- };
685
- createdAt: Date;
686
- updatedAt: Date;
687
- deletedAt: Date | null;
688
- membersCount: number;
689
- childSpacesCount: number;
690
- isMember?: boolean | undefined;
691
- } | null | undefined;
692
- user?: {
693
- id: string;
694
- projectId: string;
695
- foreignId: string | null;
696
- role: import("../..").UserRole;
697
- name: string | null;
698
- username: string | null;
699
- avatar: string | null;
700
- bio: string | null;
701
- birthdate: Date | null;
702
- metadata: {
703
- [x: string]: any;
704
- };
705
- reputation: number;
706
- createdAt: Date;
707
- location: {
708
- type: "Point";
709
- coordinates: [number, number];
710
- } | null;
711
- } | null | undefined;
712
- title?: string | null | undefined;
713
- content?: string | null | undefined;
714
- mentions?: {
715
- id: string;
716
- foreignId?: string | null | undefined;
717
- username: string;
718
- }[] | undefined;
719
- attachments?: {
720
- [x: string]: any;
721
- }[] | undefined;
722
- keywords?: string[] | undefined;
723
- upvotes?: string[] | undefined;
724
- downvotes?: string[] | undefined;
725
- repliesCount?: number | undefined;
726
- views?: number | undefined;
727
- score?: number | undefined;
728
- scoreUpdatedAt?: Date | undefined;
729
- location?: {
730
- type: "Point";
731
- coordinates: [number, number];
732
- } | null | undefined;
733
- metadata?: {
734
- [x: string]: any;
735
- } | undefined;
736
- topComment?: {
737
- id: string;
738
- user: {
739
- id: string;
740
- projectId: string;
741
- foreignId: string | null;
742
- role: import("../..").UserRole;
743
- name: string | null;
744
- username: string | null;
745
- avatar: string | null;
746
- bio: string | null;
747
- birthdate: Date | null;
748
- metadata: {
749
- [x: string]: any;
750
- };
751
- reputation: number;
752
- createdAt: Date;
753
- location: {
754
- type: "Point";
755
- coordinates: [number, number];
756
- } | null;
757
- };
758
- upvotesCount: number;
759
- content: string;
760
- createdAt: string;
761
- } | null | undefined;
762
- createdAt?: Date | undefined;
763
- updatedAt?: Date | undefined;
764
- deletedAt?: Date | null | undefined;
765
- }[];
766
- createdAt: Date;
767
- updatedAt: Date;
768
- };
769
- };
770
- sublistsMap: {
771
- [x: string]: string[];
772
- };
773
- currentListId: string | null;
774
- listHistory: string[];
775
- loading: boolean;
776
- currentProjectId?: string | undefined;
777
- }, action: PayloadAction<List | null>) => void;
778
- setSubLists: (state: {
779
- listsById: {
780
- [x: string]: {
781
- id: string;
782
- projectId: string;
783
- userId: string;
784
- parentId: string | null;
785
- name: string;
786
- entityIds: string[];
787
- entities: {
788
- id?: string | undefined;
789
- foreignId?: string | null | undefined;
790
- shortId?: string | undefined;
791
- projectId?: string | undefined;
792
- sourceId?: string | null | undefined;
793
- spaceId?: string | null | undefined;
794
- space?: {
795
- id: string;
796
- projectId: string;
797
- shortId: string;
798
- slug: string | null;
799
- name: string;
800
- description: string | null;
801
- avatar: string | null;
802
- banner: string | null;
803
- userId: string;
804
- readingPermission: import("../..").ReadingPermission;
805
- postingPermission: import("../..").PostingPermission;
806
- requireJoinApproval: boolean;
807
- parentSpaceId: string | null;
808
- depth: number;
809
- metadata: {
810
- [x: string]: any;
811
- };
812
- createdAt: Date;
813
- updatedAt: Date;
814
- deletedAt: Date | null;
815
- membersCount: number;
816
- childSpacesCount: number;
817
- isMember?: boolean | undefined;
818
- } | null | undefined;
819
- user?: {
820
- id: string;
821
- projectId: string;
822
- foreignId: string | null;
823
- role: import("../..").UserRole;
824
- name: string | null;
825
- username: string | null;
826
- avatar: string | null;
827
- bio: string | null;
828
- birthdate: Date | null;
829
- metadata: {
830
- [x: string]: any;
831
- };
832
- reputation: number;
833
- createdAt: Date;
834
- location: {
835
- type: "Point";
836
- coordinates: [number, number];
837
- } | null;
838
- } | null | undefined;
839
- title?: string | null | undefined;
840
- content?: string | null | undefined;
841
- mentions?: {
842
- id: string;
843
- foreignId?: string | null | undefined;
844
- username: string;
845
- }[] | undefined;
846
- attachments?: {
847
- [x: string]: any;
848
- }[] | undefined;
849
- keywords?: string[] | undefined;
850
- upvotes?: string[] | undefined;
851
- downvotes?: string[] | undefined;
852
- repliesCount?: number | undefined;
853
- views?: number | undefined;
854
- score?: number | undefined;
855
- scoreUpdatedAt?: Date | undefined;
856
- location?: {
857
- type: "Point";
858
- coordinates: [number, number];
859
- } | null | undefined;
860
- metadata?: {
861
- [x: string]: any;
862
- } | undefined;
863
- topComment?: {
864
- id: string;
865
- user: {
866
- id: string;
867
- projectId: string;
868
- foreignId: string | null;
869
- role: import("../..").UserRole;
870
- name: string | null;
871
- username: string | null;
872
- avatar: string | null;
873
- bio: string | null;
874
- birthdate: Date | null;
875
- metadata: {
876
- [x: string]: any;
877
- };
878
- reputation: number;
879
- createdAt: Date;
880
- location: {
881
- type: "Point";
882
- coordinates: [number, number];
883
- } | null;
884
- };
885
- upvotesCount: number;
886
- content: string;
887
- createdAt: string;
888
- } | null | undefined;
889
- createdAt?: Date | undefined;
890
- updatedAt?: Date | undefined;
891
- deletedAt?: Date | null | undefined;
892
- }[];
893
- createdAt: Date;
894
- updatedAt: Date;
895
- };
896
- };
897
- sublistsMap: {
898
- [x: string]: string[];
899
- };
900
- currentListId: string | null;
901
- listHistory: string[];
902
- loading: boolean;
903
- currentProjectId?: string | undefined;
904
- }, action: PayloadAction<{
905
- lists: List[];
906
- parentListId: string;
907
- }>) => void;
908
- updateCurrentList: (state: {
909
- listsById: {
910
- [x: string]: {
911
- id: string;
912
- projectId: string;
913
- userId: string;
914
- parentId: string | null;
915
- name: string;
916
- entityIds: string[];
917
- entities: {
918
- id?: string | undefined;
919
- foreignId?: string | null | undefined;
920
- shortId?: string | undefined;
921
- projectId?: string | undefined;
922
- sourceId?: string | null | undefined;
923
- spaceId?: string | null | undefined;
924
- space?: {
925
- id: string;
926
- projectId: string;
927
- shortId: string;
928
- slug: string | null;
929
- name: string;
930
- description: string | null;
931
- avatar: string | null;
932
- banner: string | null;
933
- userId: string;
934
- readingPermission: import("../..").ReadingPermission;
935
- postingPermission: import("../..").PostingPermission;
936
- requireJoinApproval: boolean;
937
- parentSpaceId: string | null;
938
- depth: number;
939
- metadata: {
940
- [x: string]: any;
941
- };
942
- createdAt: Date;
943
- updatedAt: Date;
944
- deletedAt: Date | null;
945
- membersCount: number;
946
- childSpacesCount: number;
947
- isMember?: boolean | undefined;
948
- } | null | undefined;
949
- user?: {
950
- id: string;
951
- projectId: string;
952
- foreignId: string | null;
953
- role: import("../..").UserRole;
954
- name: string | null;
955
- username: string | null;
956
- avatar: string | null;
957
- bio: string | null;
958
- birthdate: Date | null;
959
- metadata: {
960
- [x: string]: any;
961
- };
962
- reputation: number;
963
- createdAt: Date;
964
- location: {
965
- type: "Point";
966
- coordinates: [number, number];
967
- } | null;
968
- } | null | undefined;
969
- title?: string | null | undefined;
970
- content?: string | null | undefined;
971
- mentions?: {
972
- id: string;
973
- foreignId?: string | null | undefined;
974
- username: string;
975
- }[] | undefined;
976
- attachments?: {
977
- [x: string]: any;
978
- }[] | undefined;
979
- keywords?: string[] | undefined;
980
- upvotes?: string[] | undefined;
981
- downvotes?: string[] | undefined;
982
- repliesCount?: number | undefined;
983
- views?: number | undefined;
984
- score?: number | undefined;
985
- scoreUpdatedAt?: Date | undefined;
986
- location?: {
987
- type: "Point";
988
- coordinates: [number, number];
989
- } | null | undefined;
990
- metadata?: {
991
- [x: string]: any;
992
- } | undefined;
993
- topComment?: {
994
- id: string;
995
- user: {
996
- id: string;
997
- projectId: string;
998
- foreignId: string | null;
999
- role: import("../..").UserRole;
1000
- name: string | null;
1001
- username: string | null;
1002
- avatar: string | null;
1003
- bio: string | null;
1004
- birthdate: Date | null;
1005
- metadata: {
1006
- [x: string]: any;
1007
- };
1008
- reputation: number;
1009
- createdAt: Date;
1010
- location: {
1011
- type: "Point";
1012
- coordinates: [number, number];
1013
- } | null;
1014
- };
1015
- upvotesCount: number;
1016
- content: string;
1017
- createdAt: string;
1018
- } | null | undefined;
1019
- createdAt?: Date | undefined;
1020
- updatedAt?: Date | undefined;
1021
- deletedAt?: Date | null | undefined;
1022
- }[];
1023
- createdAt: Date;
1024
- updatedAt: Date;
1025
- };
1026
- };
1027
- sublistsMap: {
1028
- [x: string]: string[];
1029
- };
1030
- currentListId: string | null;
1031
- listHistory: string[];
1032
- loading: boolean;
1033
- currentProjectId?: string | undefined;
1034
- }, action: PayloadAction<List>) => void;
1035
- updateListInSubLists: (state: {
1036
- listsById: {
1037
- [x: string]: {
1038
- id: string;
1039
- projectId: string;
1040
- userId: string;
1041
- parentId: string | null;
1042
- name: string;
1043
- entityIds: string[];
1044
- entities: {
1045
- id?: string | undefined;
1046
- foreignId?: string | null | undefined;
1047
- shortId?: string | undefined;
1048
- projectId?: string | undefined;
1049
- sourceId?: string | null | undefined;
1050
- spaceId?: string | null | undefined;
1051
- space?: {
1052
- id: string;
1053
- projectId: string;
1054
- shortId: string;
1055
- slug: string | null;
1056
- name: string;
1057
- description: string | null;
1058
- avatar: string | null;
1059
- banner: string | null;
1060
- userId: string;
1061
- readingPermission: import("../..").ReadingPermission;
1062
- postingPermission: import("../..").PostingPermission;
1063
- requireJoinApproval: boolean;
1064
- parentSpaceId: string | null;
1065
- depth: number;
1066
- metadata: {
1067
- [x: string]: any;
1068
- };
1069
- createdAt: Date;
1070
- updatedAt: Date;
1071
- deletedAt: Date | null;
1072
- membersCount: number;
1073
- childSpacesCount: number;
1074
- isMember?: boolean | undefined;
1075
- } | null | undefined;
1076
- user?: {
1077
- id: string;
1078
- projectId: string;
1079
- foreignId: string | null;
1080
- role: import("../..").UserRole;
1081
- name: string | null;
1082
- username: string | null;
1083
- avatar: string | null;
1084
- bio: string | null;
1085
- birthdate: Date | null;
1086
- metadata: {
1087
- [x: string]: any;
1088
- };
1089
- reputation: number;
1090
- createdAt: Date;
1091
- location: {
1092
- type: "Point";
1093
- coordinates: [number, number];
1094
- } | null;
1095
- } | null | undefined;
1096
- title?: string | null | undefined;
1097
- content?: string | null | undefined;
1098
- mentions?: {
1099
- id: string;
1100
- foreignId?: string | null | undefined;
1101
- username: string;
1102
- }[] | undefined;
1103
- attachments?: {
1104
- [x: string]: any;
1105
- }[] | undefined;
1106
- keywords?: string[] | undefined;
1107
- upvotes?: string[] | undefined;
1108
- downvotes?: string[] | undefined;
1109
- repliesCount?: number | undefined;
1110
- views?: number | undefined;
1111
- score?: number | undefined;
1112
- scoreUpdatedAt?: Date | undefined;
1113
- location?: {
1114
- type: "Point";
1115
- coordinates: [number, number];
1116
- } | null | undefined;
1117
- metadata?: {
1118
- [x: string]: any;
1119
- } | undefined;
1120
- topComment?: {
1121
- id: string;
1122
- user: {
1123
- id: string;
1124
- projectId: string;
1125
- foreignId: string | null;
1126
- role: import("../..").UserRole;
1127
- name: string | null;
1128
- username: string | null;
1129
- avatar: string | null;
1130
- bio: string | null;
1131
- birthdate: Date | null;
1132
- metadata: {
1133
- [x: string]: any;
1134
- };
1135
- reputation: number;
1136
- createdAt: Date;
1137
- location: {
1138
- type: "Point";
1139
- coordinates: [number, number];
1140
- } | null;
1141
- };
1142
- upvotesCount: number;
1143
- content: string;
1144
- createdAt: string;
1145
- } | null | undefined;
1146
- createdAt?: Date | undefined;
1147
- updatedAt?: Date | undefined;
1148
- deletedAt?: Date | null | undefined;
1149
- }[];
1150
- createdAt: Date;
1151
- updatedAt: Date;
1152
- };
1153
- };
1154
- sublistsMap: {
1155
- [x: string]: string[];
1156
- };
1157
- currentListId: string | null;
1158
- listHistory: string[];
1159
- loading: boolean;
1160
- currentProjectId?: string | undefined;
1161
- }, action: PayloadAction<List>) => void;
1162
- addNewListAndNavigate: (state: {
1163
- listsById: {
1164
- [x: string]: {
1165
- id: string;
1166
- projectId: string;
1167
- userId: string;
1168
- parentId: string | null;
1169
- name: string;
1170
- entityIds: string[];
1171
- entities: {
1172
- id?: string | undefined;
1173
- foreignId?: string | null | undefined;
1174
- shortId?: string | undefined;
1175
- projectId?: string | undefined;
1176
- sourceId?: string | null | undefined;
1177
- spaceId?: string | null | undefined;
1178
- space?: {
1179
- id: string;
1180
- projectId: string;
1181
- shortId: string;
1182
- slug: string | null;
1183
- name: string;
1184
- description: string | null;
1185
- avatar: string | null;
1186
- banner: string | null;
1187
- userId: string;
1188
- readingPermission: import("../..").ReadingPermission;
1189
- postingPermission: import("../..").PostingPermission;
1190
- requireJoinApproval: boolean;
1191
- parentSpaceId: string | null;
1192
- depth: number;
1193
- metadata: {
1194
- [x: string]: any;
1195
- };
1196
- createdAt: Date;
1197
- updatedAt: Date;
1198
- deletedAt: Date | null;
1199
- membersCount: number;
1200
- childSpacesCount: number;
1201
- isMember?: boolean | undefined;
1202
- } | null | undefined;
1203
- user?: {
1204
- id: string;
1205
- projectId: string;
1206
- foreignId: string | null;
1207
- role: import("../..").UserRole;
1208
- name: string | null;
1209
- username: string | null;
1210
- avatar: string | null;
1211
- bio: string | null;
1212
- birthdate: Date | null;
1213
- metadata: {
1214
- [x: string]: any;
1215
- };
1216
- reputation: number;
1217
- createdAt: Date;
1218
- location: {
1219
- type: "Point";
1220
- coordinates: [number, number];
1221
- } | null;
1222
- } | null | undefined;
1223
- title?: string | null | undefined;
1224
- content?: string | null | undefined;
1225
- mentions?: {
1226
- id: string;
1227
- foreignId?: string | null | undefined;
1228
- username: string;
1229
- }[] | undefined;
1230
- attachments?: {
1231
- [x: string]: any;
1232
- }[] | undefined;
1233
- keywords?: string[] | undefined;
1234
- upvotes?: string[] | undefined;
1235
- downvotes?: string[] | undefined;
1236
- repliesCount?: number | undefined;
1237
- views?: number | undefined;
1238
- score?: number | undefined;
1239
- scoreUpdatedAt?: Date | undefined;
1240
- location?: {
1241
- type: "Point";
1242
- coordinates: [number, number];
1243
- } | null | undefined;
1244
- metadata?: {
1245
- [x: string]: any;
1246
- } | undefined;
1247
- topComment?: {
1248
- id: string;
1249
- user: {
1250
- id: string;
1251
- projectId: string;
1252
- foreignId: string | null;
1253
- role: import("../..").UserRole;
1254
- name: string | null;
1255
- username: string | null;
1256
- avatar: string | null;
1257
- bio: string | null;
1258
- birthdate: Date | null;
1259
- metadata: {
1260
- [x: string]: any;
1261
- };
1262
- reputation: number;
1263
- createdAt: Date;
1264
- location: {
1265
- type: "Point";
1266
- coordinates: [number, number];
1267
- } | null;
1268
- };
1269
- upvotesCount: number;
1270
- content: string;
1271
- createdAt: string;
1272
- } | null | undefined;
1273
- createdAt?: Date | undefined;
1274
- updatedAt?: Date | undefined;
1275
- deletedAt?: Date | null | undefined;
1276
- }[];
1277
- createdAt: Date;
1278
- updatedAt: Date;
1279
- };
1280
- };
1281
- sublistsMap: {
1282
- [x: string]: string[];
1283
- };
1284
- currentListId: string | null;
1285
- listHistory: string[];
1286
- loading: boolean;
1287
- currentProjectId?: string | undefined;
1288
- }, action: PayloadAction<List>) => void;
1289
- removeListFromSubLists: (state: {
1290
- listsById: {
1291
- [x: string]: {
1292
- id: string;
1293
- projectId: string;
1294
- userId: string;
1295
- parentId: string | null;
1296
- name: string;
1297
- entityIds: string[];
1298
- entities: {
1299
- id?: string | undefined;
1300
- foreignId?: string | null | undefined;
1301
- shortId?: string | undefined;
1302
- projectId?: string | undefined;
1303
- sourceId?: string | null | undefined;
1304
- spaceId?: string | null | undefined;
1305
- space?: {
1306
- id: string;
1307
- projectId: string;
1308
- shortId: string;
1309
- slug: string | null;
1310
- name: string;
1311
- description: string | null;
1312
- avatar: string | null;
1313
- banner: string | null;
1314
- userId: string;
1315
- readingPermission: import("../..").ReadingPermission;
1316
- postingPermission: import("../..").PostingPermission;
1317
- requireJoinApproval: boolean;
1318
- parentSpaceId: string | null;
1319
- depth: number;
1320
- metadata: {
1321
- [x: string]: any;
1322
- };
1323
- createdAt: Date;
1324
- updatedAt: Date;
1325
- deletedAt: Date | null;
1326
- membersCount: number;
1327
- childSpacesCount: number;
1328
- isMember?: boolean | undefined;
1329
- } | null | undefined;
1330
- user?: {
1331
- id: string;
1332
- projectId: string;
1333
- foreignId: string | null;
1334
- role: import("../..").UserRole;
1335
- name: string | null;
1336
- username: string | null;
1337
- avatar: string | null;
1338
- bio: string | null;
1339
- birthdate: Date | null;
1340
- metadata: {
1341
- [x: string]: any;
1342
- };
1343
- reputation: number;
1344
- createdAt: Date;
1345
- location: {
1346
- type: "Point";
1347
- coordinates: [number, number];
1348
- } | null;
1349
- } | null | undefined;
1350
- title?: string | null | undefined;
1351
- content?: string | null | undefined;
1352
- mentions?: {
1353
- id: string;
1354
- foreignId?: string | null | undefined;
1355
- username: string;
1356
- }[] | undefined;
1357
- attachments?: {
1358
- [x: string]: any;
1359
- }[] | undefined;
1360
- keywords?: string[] | undefined;
1361
- upvotes?: string[] | undefined;
1362
- downvotes?: string[] | undefined;
1363
- repliesCount?: number | undefined;
1364
- views?: number | undefined;
1365
- score?: number | undefined;
1366
- scoreUpdatedAt?: Date | undefined;
1367
- location?: {
1368
- type: "Point";
1369
- coordinates: [number, number];
1370
- } | null | undefined;
1371
- metadata?: {
1372
- [x: string]: any;
1373
- } | undefined;
1374
- topComment?: {
1375
- id: string;
1376
- user: {
1377
- id: string;
1378
- projectId: string;
1379
- foreignId: string | null;
1380
- role: import("../..").UserRole;
1381
- name: string | null;
1382
- username: string | null;
1383
- avatar: string | null;
1384
- bio: string | null;
1385
- birthdate: Date | null;
1386
- metadata: {
1387
- [x: string]: any;
1388
- };
1389
- reputation: number;
1390
- createdAt: Date;
1391
- location: {
1392
- type: "Point";
1393
- coordinates: [number, number];
1394
- } | null;
1395
- };
1396
- upvotesCount: number;
1397
- content: string;
1398
- createdAt: string;
1399
- } | null | undefined;
1400
- createdAt?: Date | undefined;
1401
- updatedAt?: Date | undefined;
1402
- deletedAt?: Date | null | undefined;
1403
- }[];
1404
- createdAt: Date;
1405
- updatedAt: Date;
1406
- };
1407
- };
1408
- sublistsMap: {
1409
- [x: string]: string[];
1410
- };
1411
- currentListId: string | null;
1412
- listHistory: string[];
1413
- loading: boolean;
1414
- currentProjectId?: string | undefined;
1415
- }, action: PayloadAction<string>) => void;
1416
- handleListDeletion: (state: {
1417
- listsById: {
1418
- [x: string]: {
1419
- id: string;
1420
- projectId: string;
1421
- userId: string;
1422
- parentId: string | null;
1423
- name: string;
1424
- entityIds: string[];
1425
- entities: {
1426
- id?: string | undefined;
1427
- foreignId?: string | null | undefined;
1428
- shortId?: string | undefined;
1429
- projectId?: string | undefined;
1430
- sourceId?: string | null | undefined;
1431
- spaceId?: string | null | undefined;
1432
- space?: {
1433
- id: string;
1434
- projectId: string;
1435
- shortId: string;
1436
- slug: string | null;
1437
- name: string;
1438
- description: string | null;
1439
- avatar: string | null;
1440
- banner: string | null;
1441
- userId: string;
1442
- readingPermission: import("../..").ReadingPermission;
1443
- postingPermission: import("../..").PostingPermission;
1444
- requireJoinApproval: boolean;
1445
- parentSpaceId: string | null;
1446
- depth: number;
1447
- metadata: {
1448
- [x: string]: any;
1449
- };
1450
- createdAt: Date;
1451
- updatedAt: Date;
1452
- deletedAt: Date | null;
1453
- membersCount: number;
1454
- childSpacesCount: number;
1455
- isMember?: boolean | undefined;
1456
- } | null | undefined;
1457
- user?: {
1458
- id: string;
1459
- projectId: string;
1460
- foreignId: string | null;
1461
- role: import("../..").UserRole;
1462
- name: string | null;
1463
- username: string | null;
1464
- avatar: string | null;
1465
- bio: string | null;
1466
- birthdate: Date | null;
1467
- metadata: {
1468
- [x: string]: any;
1469
- };
1470
- reputation: number;
1471
- createdAt: Date;
1472
- location: {
1473
- type: "Point";
1474
- coordinates: [number, number];
1475
- } | null;
1476
- } | null | undefined;
1477
- title?: string | null | undefined;
1478
- content?: string | null | undefined;
1479
- mentions?: {
1480
- id: string;
1481
- foreignId?: string | null | undefined;
1482
- username: string;
1483
- }[] | undefined;
1484
- attachments?: {
1485
- [x: string]: any;
1486
- }[] | undefined;
1487
- keywords?: string[] | undefined;
1488
- upvotes?: string[] | undefined;
1489
- downvotes?: string[] | undefined;
1490
- repliesCount?: number | undefined;
1491
- views?: number | undefined;
1492
- score?: number | undefined;
1493
- scoreUpdatedAt?: Date | undefined;
1494
- location?: {
1495
- type: "Point";
1496
- coordinates: [number, number];
1497
- } | null | undefined;
1498
- metadata?: {
1499
- [x: string]: any;
1500
- } | undefined;
1501
- topComment?: {
1502
- id: string;
1503
- user: {
1504
- id: string;
1505
- projectId: string;
1506
- foreignId: string | null;
1507
- role: import("../..").UserRole;
1508
- name: string | null;
1509
- username: string | null;
1510
- avatar: string | null;
1511
- bio: string | null;
1512
- birthdate: Date | null;
1513
- metadata: {
1514
- [x: string]: any;
1515
- };
1516
- reputation: number;
1517
- createdAt: Date;
1518
- location: {
1519
- type: "Point";
1520
- coordinates: [number, number];
1521
- } | null;
1522
- };
1523
- upvotesCount: number;
1524
- content: string;
1525
- createdAt: string;
1526
- } | null | undefined;
1527
- createdAt?: Date | undefined;
1528
- updatedAt?: Date | undefined;
1529
- deletedAt?: Date | null | undefined;
1530
- }[];
1531
- createdAt: Date;
1532
- updatedAt: Date;
1533
- };
1534
- };
1535
- sublistsMap: {
1536
- [x: string]: string[];
1537
- };
1538
- currentListId: string | null;
1539
- listHistory: string[];
1540
- loading: boolean;
1541
- currentProjectId?: string | undefined;
1542
- }, action: PayloadAction<{
1543
- listId: string;
1544
- parentId?: string | null;
1545
- }>) => void;
1546
- resetLists: (state: {
1547
- listsById: {
1548
- [x: string]: {
1549
- id: string;
1550
- projectId: string;
1551
- userId: string;
1552
- parentId: string | null;
1553
- name: string;
1554
- entityIds: string[];
1555
- entities: {
1556
- id?: string | undefined;
1557
- foreignId?: string | null | undefined;
1558
- shortId?: string | undefined;
1559
- projectId?: string | undefined;
1560
- sourceId?: string | null | undefined;
1561
- spaceId?: string | null | undefined;
1562
- space?: {
1563
- id: string;
1564
- projectId: string;
1565
- shortId: string;
1566
- slug: string | null;
1567
- name: string;
1568
- description: string | null;
1569
- avatar: string | null;
1570
- banner: string | null;
1571
- userId: string;
1572
- readingPermission: import("../..").ReadingPermission;
1573
- postingPermission: import("../..").PostingPermission;
1574
- requireJoinApproval: boolean;
1575
- parentSpaceId: string | null;
1576
- depth: number;
1577
- metadata: {
1578
- [x: string]: any;
1579
- };
1580
- createdAt: Date;
1581
- updatedAt: Date;
1582
- deletedAt: Date | null;
1583
- membersCount: number;
1584
- childSpacesCount: number;
1585
- isMember?: boolean | undefined;
1586
- } | null | undefined;
1587
- user?: {
1588
- id: string;
1589
- projectId: string;
1590
- foreignId: string | null;
1591
- role: import("../..").UserRole;
1592
- name: string | null;
1593
- username: string | null;
1594
- avatar: string | null;
1595
- bio: string | null;
1596
- birthdate: Date | null;
1597
- metadata: {
1598
- [x: string]: any;
1599
- };
1600
- reputation: number;
1601
- createdAt: Date;
1602
- location: {
1603
- type: "Point";
1604
- coordinates: [number, number];
1605
- } | null;
1606
- } | null | undefined;
1607
- title?: string | null | undefined;
1608
- content?: string | null | undefined;
1609
- mentions?: {
1610
- id: string;
1611
- foreignId?: string | null | undefined;
1612
- username: string;
1613
- }[] | undefined;
1614
- attachments?: {
1615
- [x: string]: any;
1616
- }[] | undefined;
1617
- keywords?: string[] | undefined;
1618
- upvotes?: string[] | undefined;
1619
- downvotes?: string[] | undefined;
1620
- repliesCount?: number | undefined;
1621
- views?: number | undefined;
1622
- score?: number | undefined;
1623
- scoreUpdatedAt?: Date | undefined;
1624
- location?: {
1625
- type: "Point";
1626
- coordinates: [number, number];
1627
- } | null | undefined;
1628
- metadata?: {
1629
- [x: string]: any;
1630
- } | undefined;
1631
- topComment?: {
1632
- id: string;
1633
- user: {
1634
- id: string;
1635
- projectId: string;
1636
- foreignId: string | null;
1637
- role: import("../..").UserRole;
1638
- name: string | null;
1639
- username: string | null;
1640
- avatar: string | null;
1641
- bio: string | null;
1642
- birthdate: Date | null;
1643
- metadata: {
1644
- [x: string]: any;
1645
- };
1646
- reputation: number;
1647
- createdAt: Date;
1648
- location: {
1649
- type: "Point";
1650
- coordinates: [number, number];
1651
- } | null;
1652
- };
1653
- upvotesCount: number;
1654
- content: string;
1655
- createdAt: string;
1656
- } | null | undefined;
1657
- createdAt?: Date | undefined;
1658
- updatedAt?: Date | undefined;
1659
- deletedAt?: Date | null | undefined;
1660
- }[];
1661
- createdAt: Date;
1662
- updatedAt: Date;
1663
- };
1664
- };
1665
- sublistsMap: {
1666
- [x: string]: string[];
1667
- };
1668
- currentListId: string | null;
1669
- listHistory: string[];
1670
- loading: boolean;
1671
- currentProjectId?: string | undefined;
1672
- }) => void;
1673
- handleError: (state: {
1674
- listsById: {
1675
- [x: string]: {
1676
- id: string;
1677
- projectId: string;
1678
- userId: string;
1679
- parentId: string | null;
1680
- name: string;
1681
- entityIds: string[];
1682
- entities: {
1683
- id?: string | undefined;
1684
- foreignId?: string | null | undefined;
1685
- shortId?: string | undefined;
1686
- projectId?: string | undefined;
1687
- sourceId?: string | null | undefined;
1688
- spaceId?: string | null | undefined;
1689
- space?: {
1690
- id: string;
1691
- projectId: string;
1692
- shortId: string;
1693
- slug: string | null;
1694
- name: string;
1695
- description: string | null;
1696
- avatar: string | null;
1697
- banner: string | null;
1698
- userId: string;
1699
- readingPermission: import("../..").ReadingPermission;
1700
- postingPermission: import("../..").PostingPermission;
1701
- requireJoinApproval: boolean;
1702
- parentSpaceId: string | null;
1703
- depth: number;
1704
- metadata: {
1705
- [x: string]: any;
1706
- };
1707
- createdAt: Date;
1708
- updatedAt: Date;
1709
- deletedAt: Date | null;
1710
- membersCount: number;
1711
- childSpacesCount: number;
1712
- isMember?: boolean | undefined;
1713
- } | null | undefined;
1714
- user?: {
1715
- id: string;
1716
- projectId: string;
1717
- foreignId: string | null;
1718
- role: import("../..").UserRole;
1719
- name: string | null;
1720
- username: string | null;
1721
- avatar: string | null;
1722
- bio: string | null;
1723
- birthdate: Date | null;
1724
- metadata: {
1725
- [x: string]: any;
1726
- };
1727
- reputation: number;
1728
- createdAt: Date;
1729
- location: {
1730
- type: "Point";
1731
- coordinates: [number, number];
1732
- } | null;
1733
- } | null | undefined;
1734
- title?: string | null | undefined;
1735
- content?: string | null | undefined;
1736
- mentions?: {
1737
- id: string;
1738
- foreignId?: string | null | undefined;
1739
- username: string;
1740
- }[] | undefined;
1741
- attachments?: {
1742
- [x: string]: any;
1743
- }[] | undefined;
1744
- keywords?: string[] | undefined;
1745
- upvotes?: string[] | undefined;
1746
- downvotes?: string[] | undefined;
1747
- repliesCount?: number | undefined;
1748
- views?: number | undefined;
1749
- score?: number | undefined;
1750
- scoreUpdatedAt?: Date | undefined;
1751
- location?: {
1752
- type: "Point";
1753
- coordinates: [number, number];
1754
- } | null | undefined;
1755
- metadata?: {
1756
- [x: string]: any;
1757
- } | undefined;
1758
- topComment?: {
1759
- id: string;
1760
- user: {
1761
- id: string;
1762
- projectId: string;
1763
- foreignId: string | null;
1764
- role: import("../..").UserRole;
1765
- name: string | null;
1766
- username: string | null;
1767
- avatar: string | null;
1768
- bio: string | null;
1769
- birthdate: Date | null;
1770
- metadata: {
1771
- [x: string]: any;
1772
- };
1773
- reputation: number;
1774
- createdAt: Date;
1775
- location: {
1776
- type: "Point";
1777
- coordinates: [number, number];
1778
- } | null;
1779
- };
1780
- upvotesCount: number;
1781
- content: string;
1782
- createdAt: string;
1783
- } | null | undefined;
1784
- createdAt?: Date | undefined;
1785
- updatedAt?: Date | undefined;
1786
- deletedAt?: Date | null | undefined;
1787
- }[];
1788
- createdAt: Date;
1789
- updatedAt: Date;
1790
- };
1791
- };
1792
- sublistsMap: {
1793
- [x: string]: string[];
1794
- };
1795
- currentListId: string | null;
1796
- listHistory: string[];
1797
- loading: boolean;
1798
- currentProjectId?: string | undefined;
1799
- }) => void;
1800
- }, "lists", "lists", import("@reduxjs/toolkit").SliceSelectors<ListsState>>;
1801
- export declare const setProjectContext: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "lists/setProjectContext">, setLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "lists/setLoading">, openList: import("@reduxjs/toolkit").ActionCreatorWithPayload<List, "lists/openList">, goBack: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"lists/goBack">, goToRoot: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"lists/goToRoot">, setCurrentList: import("@reduxjs/toolkit").ActionCreatorWithPayload<List | null, "lists/setCurrentList">, setSubLists: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
1802
- lists: List[];
1803
- parentListId: string;
1804
- }, "lists/setSubLists">, updateCurrentList: import("@reduxjs/toolkit").ActionCreatorWithPayload<List, "lists/updateCurrentList">, updateListInSubLists: import("@reduxjs/toolkit").ActionCreatorWithPayload<List, "lists/updateListInSubLists">, addNewListAndNavigate: import("@reduxjs/toolkit").ActionCreatorWithPayload<List, "lists/addNewListAndNavigate">, removeListFromSubLists: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "lists/removeListFromSubLists">, handleListDeletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
1805
- listId: string;
1806
- parentId?: string | null;
1807
- }, "lists/handleListDeletion">, resetLists: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"lists/resetLists">, handleError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"lists/handleError">;
1808
- declare const _default: import("@reduxjs/toolkit").Reducer<ListsState>;
1809
- export default _default;
1810
- export declare const selectCurrentList: (state: {
1811
- lists: ListsState;
1812
- }) => List | null;
1813
- export declare const selectSubLists: ((state: {
1814
- lists: ListsState;
1815
- } & {
1816
- lists: ListsState;
1817
- } & {
1818
- lists: ListsState;
1819
- }) => List[]) & {
1820
- clearCache: () => void;
1821
- resultsCount: () => number;
1822
- resetResultsCount: () => void;
1823
- } & {
1824
- resultFunc: (resultFuncArgs_0: string | null, resultFuncArgs_1: {
1825
- [parentId: string]: string[];
1826
- }, resultFuncArgs_2: {
1827
- [listId: string]: List;
1828
- }) => List[];
1829
- memoizedResultFunc: ((resultFuncArgs_0: string | null, resultFuncArgs_1: {
1830
- [parentId: string]: string[];
1831
- }, resultFuncArgs_2: {
1832
- [listId: string]: List;
1833
- }) => List[]) & {
1834
- clearCache: () => void;
1835
- resultsCount: () => number;
1836
- resetResultsCount: () => void;
1837
- };
1838
- lastResult: () => List[];
1839
- dependencies: [(state: {
1840
- lists: ListsState;
1841
- }) => string | null, (state: {
1842
- lists: ListsState;
1843
- }) => {
1844
- [parentId: string]: string[];
1845
- }, (state: {
1846
- lists: ListsState;
1847
- }) => {
1848
- [listId: string]: List;
1849
- }];
1850
- recomputations: () => number;
1851
- resetRecomputations: () => void;
1852
- dependencyRecomputations: () => number;
1853
- resetDependencyRecomputations: () => void;
1854
- } & {
1855
- memoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
1856
- argsMemoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
1857
- };
1858
- export declare const selectListsLoading: (state: {
1859
- lists: ListsState;
1860
- }) => boolean;
1861
- export declare const selectListHistory: ((state: {
1862
- lists: ListsState;
1863
- } & {
1864
- lists: ListsState;
1865
- }) => List[]) & {
1866
- clearCache: () => void;
1867
- resultsCount: () => number;
1868
- resetResultsCount: () => void;
1869
- } & {
1870
- resultFunc: (resultFuncArgs_0: string[], resultFuncArgs_1: {
1871
- [listId: string]: List;
1872
- }) => List[];
1873
- memoizedResultFunc: ((resultFuncArgs_0: string[], resultFuncArgs_1: {
1874
- [listId: string]: List;
1875
- }) => List[]) & {
1876
- clearCache: () => void;
1877
- resultsCount: () => number;
1878
- resetResultsCount: () => void;
1879
- };
1880
- lastResult: () => List[];
1881
- dependencies: [(state: {
1882
- lists: ListsState;
1883
- }) => string[], (state: {
1884
- lists: ListsState;
1885
- }) => {
1886
- [listId: string]: List;
1887
- }];
1888
- recomputations: () => number;
1889
- resetRecomputations: () => void;
1890
- dependencyRecomputations: () => number;
1891
- resetDependencyRecomputations: () => void;
1892
- } & {
1893
- memoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
1894
- argsMemoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
1895
- };
1896
- export declare const selectSubListsMap: (state: {
1897
- lists: ListsState;
1898
- }) => {
1899
- [parentId: string]: string[];
1900
- };
1901
- export declare const selectListsById: (state: {
1902
- lists: ListsState;
1903
- }) => {
1904
- [listId: string]: List;
1905
- };
1906
- export declare const selectCurrentProjectId: (state: {
1907
- lists: ListsState;
1908
- }) => string | undefined;
1909
- export declare const selectCurrentListId: (state: {
1910
- lists: ListsState;
1911
- }) => string | null;