@replyke/core 7.0.0-beta.6 → 7.0.0-beta.60

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 (608) hide show
  1. package/dist/cjs/config/axios.js +1 -1
  2. package/dist/cjs/config/axios.js.map +1 -1
  3. package/dist/cjs/context/index.d.ts +1 -0
  4. package/dist/cjs/context/index.js +3 -1
  5. package/dist/cjs/context/index.js.map +1 -1
  6. package/dist/cjs/context/replyke-integration-context.d.ts +52 -0
  7. package/dist/cjs/context/replyke-integration-context.js +77 -0
  8. package/dist/cjs/context/replyke-integration-context.js.map +1 -0
  9. package/dist/cjs/context/replyke-store-context.js +2 -1
  10. package/dist/cjs/context/replyke-store-context.js.map +1 -1
  11. package/dist/cjs/hooks/app-notifications/useAppNotifications.js +9 -23
  12. package/dist/cjs/hooks/app-notifications/useAppNotifications.js.map +1 -1
  13. package/dist/cjs/hooks/app-notifications/useAppNotificationsActions.js +6 -14
  14. package/dist/cjs/hooks/app-notifications/useAppNotificationsActions.js.map +1 -1
  15. package/dist/cjs/hooks/auth/useAuth.d.ts +5 -1
  16. package/dist/cjs/hooks/auth/useAuth.js +6 -6
  17. package/dist/cjs/hooks/auth/useAuth.js.map +1 -1
  18. package/dist/cjs/hooks/collections/index.d.ts +4 -0
  19. package/dist/cjs/hooks/collections/index.js +16 -0
  20. package/dist/cjs/hooks/collections/index.js.map +1 -0
  21. package/dist/cjs/hooks/collections/useCollectionEntitiesWrapper.d.ts +21 -0
  22. package/dist/cjs/hooks/collections/useCollectionEntitiesWrapper.js +211 -0
  23. package/dist/cjs/hooks/collections/useCollectionEntitiesWrapper.js.map +1 -0
  24. package/dist/cjs/hooks/collections/useCollections.d.ts +43 -0
  25. package/dist/cjs/hooks/collections/useCollections.js +265 -0
  26. package/dist/cjs/hooks/collections/useCollections.js.map +1 -0
  27. package/dist/cjs/hooks/collections/useCollectionsActions.d.ts +21 -0
  28. package/dist/cjs/hooks/{lists/useListsActions.js → collections/useCollectionsActions.js} +114 -120
  29. package/dist/cjs/hooks/collections/useCollectionsActions.js.map +1 -0
  30. package/dist/cjs/hooks/{lists → collections}/useIsEntitySaved.d.ts +2 -2
  31. package/dist/cjs/hooks/{lists → collections}/useIsEntitySaved.js +3 -3
  32. package/dist/cjs/hooks/collections/useIsEntitySaved.js.map +1 -0
  33. package/dist/cjs/hooks/comments/index.d.ts +2 -2
  34. package/dist/cjs/hooks/comments/index.js +3 -5
  35. package/dist/cjs/hooks/comments/index.js.map +1 -1
  36. package/dist/cjs/hooks/comments/useCommentSectionData.js +35 -12
  37. package/dist/cjs/hooks/comments/useCommentSectionData.js.map +1 -1
  38. package/dist/cjs/hooks/comments/useEntityComments.d.ts +2 -1
  39. package/dist/cjs/hooks/comments/useEntityComments.js +2 -1
  40. package/dist/cjs/hooks/comments/useEntityComments.js.map +1 -1
  41. package/dist/cjs/hooks/comments/useFetchComment.d.ts +3 -4
  42. package/dist/cjs/hooks/comments/useFetchComment.js +7 -5
  43. package/dist/cjs/hooks/comments/useFetchComment.js.map +1 -1
  44. package/dist/cjs/hooks/comments/useFetchCommentByForeignId.d.ts +3 -4
  45. package/dist/cjs/hooks/comments/useFetchCommentByForeignId.js +9 -6
  46. package/dist/cjs/hooks/comments/useFetchCommentByForeignId.js.map +1 -1
  47. package/dist/cjs/hooks/comments/useFetchManyComments.d.ts +2 -2
  48. package/dist/cjs/hooks/comments/useFetchManyComments.js +5 -7
  49. package/dist/cjs/hooks/comments/useFetchManyComments.js.map +1 -1
  50. package/dist/cjs/hooks/comments/useFetchManyCommentsWrapper.d.ts +21 -0
  51. package/dist/cjs/hooks/comments/{useProfileComments.js → useFetchManyCommentsWrapper.js} +40 -18
  52. package/dist/cjs/hooks/comments/useFetchManyCommentsWrapper.js.map +1 -0
  53. package/dist/cjs/hooks/comments/useReplies.js +1 -0
  54. package/dist/cjs/hooks/comments/useReplies.js.map +1 -1
  55. package/dist/cjs/hooks/crypto/useSignTestingJwt.d.ts +5 -2
  56. package/dist/cjs/hooks/crypto/useSignTestingJwt.js +10 -13
  57. package/dist/cjs/hooks/crypto/useSignTestingJwt.js.map +1 -1
  58. package/dist/cjs/hooks/entities/index.d.ts +2 -5
  59. package/dist/cjs/hooks/entities/index.js +3 -11
  60. package/dist/cjs/hooks/entities/index.js.map +1 -1
  61. package/dist/cjs/hooks/entities/useCreateEntity.d.ts +20 -0
  62. package/dist/cjs/hooks/entities/useCreateEntity.js +88 -15
  63. package/dist/cjs/hooks/entities/useCreateEntity.js.map +1 -1
  64. package/dist/cjs/hooks/entities/useEntityData.d.ts +0 -6
  65. package/dist/cjs/hooks/entities/useEntityData.js +0 -19
  66. package/dist/cjs/hooks/entities/useEntityData.js.map +1 -1
  67. package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.d.ts +41 -0
  68. package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js +241 -0
  69. package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -0
  70. package/dist/cjs/hooks/entities/useUpdateEntity.js +6 -2
  71. package/dist/cjs/hooks/entities/useUpdateEntity.js.map +1 -1
  72. package/dist/cjs/hooks/entity-lists/index.d.ts +1 -1
  73. package/dist/cjs/hooks/entity-lists/useEntityList.d.ts +2 -2
  74. package/dist/cjs/hooks/entity-lists/useEntityList.js +42 -23
  75. package/dist/cjs/hooks/entity-lists/useEntityList.js.map +1 -1
  76. package/dist/cjs/hooks/entity-lists/useEntityListActions.d.ts +3 -3
  77. package/dist/cjs/hooks/entity-lists/useEntityListActions.js +2 -2
  78. package/dist/cjs/hooks/entity-lists/useEntityListActions.js.map +1 -1
  79. package/dist/cjs/hooks/reactions/index.d.ts +10 -0
  80. package/dist/cjs/hooks/reactions/index.js +21 -0
  81. package/dist/cjs/hooks/reactions/index.js.map +1 -0
  82. package/dist/cjs/hooks/reactions/useAddReaction.d.ts +9 -0
  83. package/dist/cjs/hooks/reactions/useAddReaction.js +77 -0
  84. package/dist/cjs/hooks/reactions/useAddReaction.js.map +1 -0
  85. package/dist/cjs/hooks/reactions/useFetchCommentReactions.d.ts +10 -0
  86. package/dist/cjs/hooks/reactions/useFetchCommentReactions.js +84 -0
  87. package/dist/cjs/hooks/reactions/useFetchCommentReactions.js.map +1 -0
  88. package/dist/cjs/hooks/reactions/useFetchCommentReactionsWrapper.d.ts +17 -0
  89. package/dist/cjs/hooks/reactions/useFetchCommentReactionsWrapper.js +170 -0
  90. package/dist/cjs/hooks/reactions/useFetchCommentReactionsWrapper.js.map +1 -0
  91. package/dist/cjs/hooks/reactions/useFetchEntityReactions.d.ts +10 -0
  92. package/dist/cjs/hooks/{entities/useUpvoteEntity.js → reactions/useFetchEntityReactions.js} +26 -13
  93. package/dist/cjs/hooks/reactions/useFetchEntityReactions.js.map +1 -0
  94. package/dist/cjs/hooks/reactions/useFetchEntityReactionsWrapper.d.ts +17 -0
  95. package/dist/cjs/hooks/reactions/useFetchEntityReactionsWrapper.js +170 -0
  96. package/dist/cjs/hooks/reactions/useFetchEntityReactionsWrapper.js.map +1 -0
  97. package/dist/cjs/hooks/reactions/useReactionToggle.d.ts +19 -0
  98. package/dist/cjs/hooks/reactions/useReactionToggle.js +146 -0
  99. package/dist/cjs/hooks/reactions/useReactionToggle.js.map +1 -0
  100. package/dist/cjs/hooks/reactions/useRemoveReaction.d.ts +7 -0
  101. package/dist/cjs/hooks/{comments/useRemoveCommentUpvote.js → reactions/useRemoveReaction.js} +16 -13
  102. package/dist/cjs/hooks/reactions/useRemoveReaction.js.map +1 -0
  103. package/dist/cjs/hooks/space-lists/useSpaceList.js +10 -10
  104. package/dist/cjs/hooks/space-lists/useSpaceList.js.map +1 -1
  105. package/dist/cjs/hooks/space-lists/useSpaceListActions.js +2 -2
  106. package/dist/cjs/hooks/space-lists/useSpaceListActions.js.map +1 -1
  107. package/dist/cjs/hooks/spaces/index.d.ts +4 -0
  108. package/dist/cjs/hooks/spaces/index.js +12 -1
  109. package/dist/cjs/hooks/spaces/index.js.map +1 -1
  110. package/dist/cjs/hooks/spaces/rules/index.d.ts +10 -0
  111. package/dist/cjs/hooks/spaces/rules/index.js +17 -0
  112. package/dist/cjs/hooks/spaces/rules/index.js.map +1 -0
  113. package/dist/cjs/hooks/spaces/rules/useCreateRule.d.ts +9 -0
  114. package/dist/cjs/hooks/{users/useUpdateUser.js → spaces/rules/useCreateRule.js} +19 -19
  115. package/dist/cjs/hooks/spaces/rules/useCreateRule.js.map +1 -0
  116. package/dist/cjs/hooks/spaces/rules/useDeleteRule.d.ts +7 -0
  117. package/dist/cjs/hooks/{entities/useRemoveEntityUpvote.js → spaces/rules/useDeleteRule.js} +18 -15
  118. package/dist/cjs/hooks/spaces/rules/useDeleteRule.js.map +1 -0
  119. package/dist/cjs/hooks/spaces/rules/useFetchManyRules.d.ts +6 -0
  120. package/dist/cjs/hooks/{comments/useUpvoteComment.js → spaces/rules/useFetchManyRules.js} +15 -15
  121. package/dist/cjs/hooks/spaces/rules/useFetchManyRules.js.map +1 -0
  122. package/dist/cjs/hooks/spaces/rules/useFetchRule.d.ts +7 -0
  123. package/dist/cjs/hooks/{entities/useRemoveEntityDownvote.js → spaces/rules/useFetchRule.js} +18 -15
  124. package/dist/cjs/hooks/spaces/rules/useFetchRule.js.map +1 -0
  125. package/dist/cjs/hooks/spaces/rules/useUpdateRule.d.ts +12 -0
  126. package/dist/cjs/hooks/{comments/useRemoveCommentDownvote.js → spaces/rules/useUpdateRule.js} +18 -15
  127. package/dist/cjs/hooks/spaces/rules/useUpdateRule.js.map +1 -0
  128. package/dist/cjs/hooks/spaces/useCheckMyMembership.d.ts +5 -0
  129. package/dist/cjs/hooks/{comments/useDownvoteComment.js → spaces/useCheckMyMembership.js} +14 -14
  130. package/dist/cjs/hooks/spaces/useCheckMyMembership.js.map +1 -0
  131. package/dist/cjs/hooks/spaces/useCreateSpace.d.ts +7 -2
  132. package/dist/cjs/hooks/spaces/useCreateSpace.js +54 -3
  133. package/dist/cjs/hooks/spaces/useCreateSpace.js.map +1 -1
  134. package/dist/cjs/hooks/spaces/useFetchManySpaces.d.ts +2 -1
  135. package/dist/cjs/hooks/spaces/useFetchManySpaces.js +5 -0
  136. package/dist/cjs/hooks/spaces/useFetchManySpaces.js.map +1 -1
  137. package/dist/cjs/hooks/spaces/useFetchMySpaces.d.ts +2 -1
  138. package/dist/cjs/hooks/spaces/useFetchMySpaces.js +30 -2
  139. package/dist/cjs/hooks/spaces/useFetchMySpaces.js.map +1 -1
  140. package/dist/cjs/hooks/spaces/useFetchSpace.d.ts +3 -2
  141. package/dist/cjs/hooks/spaces/useFetchSpace.js +10 -3
  142. package/dist/cjs/hooks/spaces/useFetchSpace.js.map +1 -1
  143. package/dist/cjs/hooks/spaces/useFetchSpaceByShortId.d.ts +3 -2
  144. package/dist/cjs/hooks/spaces/useFetchSpaceByShortId.js +21 -3
  145. package/dist/cjs/hooks/spaces/useFetchSpaceByShortId.js.map +1 -1
  146. package/dist/cjs/hooks/spaces/useFetchSpaceBySlug.d.ts +3 -2
  147. package/dist/cjs/hooks/spaces/useFetchSpaceBySlug.js +21 -3
  148. package/dist/cjs/hooks/spaces/useFetchSpaceBySlug.js.map +1 -1
  149. package/dist/cjs/hooks/spaces/useFetchSpaceChildren.d.ts +3 -2
  150. package/dist/cjs/hooks/spaces/useFetchSpaceChildren.js +21 -3
  151. package/dist/cjs/hooks/spaces/useFetchSpaceChildren.js.map +1 -1
  152. package/dist/cjs/hooks/spaces/useFetchSpaceTeam.d.ts +6 -0
  153. package/dist/cjs/hooks/{entities/useDownvoteEntity.js → spaces/useFetchSpaceTeam.js} +17 -15
  154. package/dist/cjs/hooks/spaces/useFetchSpaceTeam.js.map +1 -0
  155. package/dist/cjs/hooks/spaces/useUpdateSpace.d.ts +7 -2
  156. package/dist/cjs/hooks/spaces/useUpdateSpace.js +49 -4
  157. package/dist/cjs/hooks/spaces/useUpdateSpace.js.map +1 -1
  158. package/dist/cjs/hooks/storage/index.d.ts +1 -0
  159. package/dist/cjs/hooks/storage/index.js +3 -1
  160. package/dist/cjs/hooks/storage/index.js.map +1 -1
  161. package/dist/cjs/hooks/storage/useUploadFile.d.ts +12 -1
  162. package/dist/cjs/hooks/storage/useUploadFile.js +22 -8
  163. package/dist/cjs/hooks/storage/useUploadFile.js.map +1 -1
  164. package/dist/cjs/hooks/storage/useUploadImage.d.ts +14 -0
  165. package/dist/cjs/hooks/storage/useUploadImage.js +159 -0
  166. package/dist/cjs/hooks/storage/useUploadImage.js.map +1 -0
  167. package/dist/cjs/hooks/user/index.d.ts +1 -0
  168. package/dist/cjs/hooks/user/useUser.js +8 -8
  169. package/dist/cjs/hooks/user/useUser.js.map +1 -1
  170. package/dist/cjs/hooks/user/useUserActions.js +21 -4
  171. package/dist/cjs/hooks/user/useUserActions.js.map +1 -1
  172. package/dist/cjs/hooks/users/index.d.ts +1 -1
  173. package/dist/cjs/hooks/users/index.js +3 -3
  174. package/dist/cjs/hooks/users/index.js.map +1 -1
  175. package/dist/cjs/hooks/users/useFetchUser.d.ts +3 -2
  176. package/dist/cjs/hooks/users/useFetchUser.js +10 -3
  177. package/dist/cjs/hooks/users/useFetchUser.js.map +1 -1
  178. package/dist/cjs/hooks/users/useFetchUserByForeignId.d.ts +3 -2
  179. package/dist/cjs/hooks/users/useFetchUserByForeignId.js +19 -3
  180. package/dist/cjs/hooks/users/useFetchUserByForeignId.js.map +1 -1
  181. package/dist/cjs/hooks/users/useFetchUserByUsername.d.ts +6 -0
  182. package/dist/cjs/hooks/users/useFetchUserByUsername.js +88 -0
  183. package/dist/cjs/hooks/users/useFetchUserByUsername.js.map +1 -0
  184. package/dist/cjs/index.d.ts +20 -15
  185. package/dist/cjs/index.js +30 -16
  186. package/dist/cjs/index.js.map +1 -1
  187. package/dist/cjs/interfaces/models/{List.d.ts → Collection.d.ts} +2 -4
  188. package/dist/cjs/interfaces/models/Collection.js +3 -0
  189. package/dist/cjs/interfaces/models/Collection.js.map +1 -0
  190. package/dist/cjs/interfaces/models/Comment.d.ts +8 -1
  191. package/dist/cjs/interfaces/models/Entity.d.ts +8 -1
  192. package/dist/cjs/interfaces/models/File.d.ts +38 -0
  193. package/dist/cjs/interfaces/models/{List.js → File.js} +1 -1
  194. package/dist/cjs/interfaces/models/File.js.map +1 -0
  195. package/dist/cjs/interfaces/models/Image.d.ts +74 -0
  196. package/dist/cjs/interfaces/models/Image.js +3 -0
  197. package/dist/cjs/interfaces/models/Image.js.map +1 -0
  198. package/dist/cjs/interfaces/models/Reaction.d.ts +23 -0
  199. package/dist/cjs/interfaces/models/Reaction.js +3 -0
  200. package/dist/cjs/interfaces/models/Reaction.js.map +1 -0
  201. package/dist/cjs/interfaces/models/Rule.d.ts +22 -0
  202. package/dist/cjs/interfaces/models/Rule.js +3 -0
  203. package/dist/cjs/interfaces/models/Rule.js.map +1 -0
  204. package/dist/cjs/interfaces/models/Space.d.ts +23 -3
  205. package/dist/cjs/interfaces/models/SpaceMember.d.ts +3 -0
  206. package/dist/cjs/interfaces/models/User.d.ts +9 -1
  207. package/dist/cjs/store/api/appNotificationsApi.d.ts +181 -181
  208. package/dist/cjs/store/api/baseApi.d.ts +3 -1
  209. package/dist/cjs/store/api/baseApi.js +10 -5
  210. package/dist/cjs/store/api/baseApi.js.map +1 -1
  211. package/dist/cjs/store/api/collectionsApi.d.ts +4541 -0
  212. package/dist/cjs/store/api/collectionsApi.js +244 -0
  213. package/dist/cjs/store/api/collectionsApi.js.map +1 -0
  214. package/dist/cjs/store/api/entityListsApi.d.ts +109 -109
  215. package/dist/cjs/store/api/entityListsApi.js.map +1 -1
  216. package/dist/cjs/store/api/index.d.ts +1 -1
  217. package/dist/cjs/store/api/index.js +2 -2
  218. package/dist/cjs/store/api/index.js.map +1 -1
  219. package/dist/cjs/store/api/spacesApi.d.ts +950 -950
  220. package/dist/cjs/store/api/userApi.d.ts +12 -4
  221. package/dist/cjs/store/api/userApi.js +62 -11
  222. package/dist/cjs/store/api/userApi.js.map +1 -1
  223. package/dist/cjs/store/hooks.d.ts +26 -0
  224. package/dist/cjs/store/hooks.js +18 -0
  225. package/dist/cjs/store/hooks.js.map +1 -0
  226. package/dist/cjs/store/index.d.ts +17 -11
  227. package/dist/cjs/store/index.js +4 -1
  228. package/dist/cjs/store/index.js.map +1 -1
  229. package/dist/cjs/store/integration.d.ts +35 -0
  230. package/dist/cjs/store/integration.js +61 -0
  231. package/dist/cjs/store/integration.js.map +1 -0
  232. package/dist/cjs/store/replykeReducers.d.ts +36 -0
  233. package/dist/cjs/store/replykeReducers.js +42 -0
  234. package/dist/cjs/store/replykeReducers.js.map +1 -0
  235. package/dist/cjs/store/rootReducer.d.ts +27 -14
  236. package/dist/cjs/store/rootReducer.js +6 -19
  237. package/dist/cjs/store/rootReducer.js.map +1 -1
  238. package/dist/cjs/store/slices/appNotificationsSlice.d.ts +9 -8
  239. package/dist/cjs/store/slices/appNotificationsSlice.js +9 -9
  240. package/dist/cjs/store/slices/appNotificationsSlice.js.map +1 -1
  241. package/dist/cjs/store/slices/authSlice.d.ts +20 -10
  242. package/dist/cjs/store/slices/authSlice.js +22 -16
  243. package/dist/cjs/store/slices/authSlice.js.map +1 -1
  244. package/dist/cjs/store/slices/authThunks.d.ts +4 -0
  245. package/dist/cjs/store/slices/authThunks.js +54 -16
  246. package/dist/cjs/store/slices/authThunks.js.map +1 -1
  247. package/dist/cjs/store/slices/collectionsSlice.d.ts +428 -0
  248. package/dist/cjs/store/slices/collectionsSlice.js +211 -0
  249. package/dist/cjs/store/slices/collectionsSlice.js.map +1 -0
  250. package/dist/cjs/store/slices/entityListsSlice.d.ts +3818 -204
  251. package/dist/cjs/store/slices/entityListsSlice.js +43 -25
  252. package/dist/cjs/store/slices/entityListsSlice.js.map +1 -1
  253. package/dist/cjs/store/slices/spaceListsSlice.d.ts +1065 -48
  254. package/dist/cjs/store/slices/spaceListsSlice.js +2 -2
  255. package/dist/cjs/store/slices/spaceListsSlice.js.map +1 -1
  256. package/dist/cjs/store/slices/userSlice.d.ts +715 -7
  257. package/dist/cjs/store/slices/userSlice.js +22 -10
  258. package/dist/cjs/store/slices/userSlice.js.map +1 -1
  259. package/dist/cjs/store/types/index.d.ts +5 -1
  260. package/dist/cjs/utils/env.js +3 -3
  261. package/dist/cjs/utils/env.js.map +1 -1
  262. package/dist/esm/config/axios.js +1 -1
  263. package/dist/esm/config/axios.js.map +1 -1
  264. package/dist/esm/context/index.d.ts +1 -0
  265. package/dist/esm/context/index.js +1 -0
  266. package/dist/esm/context/index.js.map +1 -1
  267. package/dist/esm/context/replyke-integration-context.d.ts +52 -0
  268. package/dist/esm/context/replyke-integration-context.js +70 -0
  269. package/dist/esm/context/replyke-integration-context.js.map +1 -0
  270. package/dist/esm/context/replyke-store-context.js +3 -2
  271. package/dist/esm/context/replyke-store-context.js.map +1 -1
  272. package/dist/esm/hooks/app-notifications/useAppNotifications.js +9 -23
  273. package/dist/esm/hooks/app-notifications/useAppNotifications.js.map +1 -1
  274. package/dist/esm/hooks/app-notifications/useAppNotificationsActions.js +6 -14
  275. package/dist/esm/hooks/app-notifications/useAppNotificationsActions.js.map +1 -1
  276. package/dist/esm/hooks/auth/useAuth.d.ts +5 -1
  277. package/dist/esm/hooks/auth/useAuth.js +7 -7
  278. package/dist/esm/hooks/auth/useAuth.js.map +1 -1
  279. package/dist/esm/hooks/collections/index.d.ts +4 -0
  280. package/dist/esm/hooks/collections/index.js +6 -0
  281. package/dist/esm/hooks/collections/index.js.map +1 -0
  282. package/dist/esm/hooks/collections/useCollectionEntitiesWrapper.d.ts +21 -0
  283. package/dist/esm/hooks/collections/useCollectionEntitiesWrapper.js +206 -0
  284. package/dist/esm/hooks/collections/useCollectionEntitiesWrapper.js.map +1 -0
  285. package/dist/esm/hooks/collections/useCollections.d.ts +43 -0
  286. package/dist/esm/hooks/collections/useCollections.js +260 -0
  287. package/dist/esm/hooks/collections/useCollections.js.map +1 -0
  288. package/dist/esm/hooks/collections/useCollectionsActions.d.ts +21 -0
  289. package/dist/esm/hooks/{lists/useListsActions.js → collections/useCollectionsActions.js} +105 -111
  290. package/dist/esm/hooks/collections/useCollectionsActions.js.map +1 -0
  291. package/dist/esm/hooks/{lists → collections}/useIsEntitySaved.d.ts +2 -2
  292. package/dist/esm/hooks/{lists → collections}/useIsEntitySaved.js +3 -3
  293. package/dist/esm/hooks/collections/useIsEntitySaved.js.map +1 -0
  294. package/dist/esm/hooks/comments/index.d.ts +2 -2
  295. package/dist/esm/hooks/comments/index.js +1 -2
  296. package/dist/esm/hooks/comments/index.js.map +1 -1
  297. package/dist/esm/hooks/comments/useCommentSectionData.js +35 -12
  298. package/dist/esm/hooks/comments/useCommentSectionData.js.map +1 -1
  299. package/dist/esm/hooks/comments/useEntityComments.d.ts +2 -1
  300. package/dist/esm/hooks/comments/useEntityComments.js +2 -1
  301. package/dist/esm/hooks/comments/useEntityComments.js.map +1 -1
  302. package/dist/esm/hooks/comments/useFetchComment.d.ts +3 -4
  303. package/dist/esm/hooks/comments/useFetchComment.js +7 -5
  304. package/dist/esm/hooks/comments/useFetchComment.js.map +1 -1
  305. package/dist/esm/hooks/comments/useFetchCommentByForeignId.d.ts +3 -4
  306. package/dist/esm/hooks/comments/useFetchCommentByForeignId.js +9 -6
  307. package/dist/esm/hooks/comments/useFetchCommentByForeignId.js.map +1 -1
  308. package/dist/esm/hooks/comments/useFetchManyComments.d.ts +2 -2
  309. package/dist/esm/hooks/comments/useFetchManyComments.js +5 -7
  310. package/dist/esm/hooks/comments/useFetchManyComments.js.map +1 -1
  311. package/dist/esm/hooks/comments/useFetchManyCommentsWrapper.d.ts +21 -0
  312. package/dist/esm/hooks/comments/{useProfileComments.js → useFetchManyCommentsWrapper.js} +40 -18
  313. package/dist/esm/hooks/comments/useFetchManyCommentsWrapper.js.map +1 -0
  314. package/dist/esm/hooks/comments/useReplies.js +1 -0
  315. package/dist/esm/hooks/comments/useReplies.js.map +1 -1
  316. package/dist/esm/hooks/crypto/useSignTestingJwt.d.ts +5 -2
  317. package/dist/esm/hooks/crypto/useSignTestingJwt.js +10 -13
  318. package/dist/esm/hooks/crypto/useSignTestingJwt.js.map +1 -1
  319. package/dist/esm/hooks/entities/index.d.ts +2 -5
  320. package/dist/esm/hooks/entities/index.js +1 -5
  321. package/dist/esm/hooks/entities/index.js.map +1 -1
  322. package/dist/esm/hooks/entities/useCreateEntity.d.ts +20 -0
  323. package/dist/esm/hooks/entities/useCreateEntity.js +88 -15
  324. package/dist/esm/hooks/entities/useCreateEntity.js.map +1 -1
  325. package/dist/esm/hooks/entities/useEntityData.d.ts +0 -6
  326. package/dist/esm/hooks/entities/useEntityData.js +0 -19
  327. package/dist/esm/hooks/entities/useEntityData.js.map +1 -1
  328. package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.d.ts +41 -0
  329. package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js +236 -0
  330. package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -0
  331. package/dist/esm/hooks/entities/useUpdateEntity.js +6 -2
  332. package/dist/esm/hooks/entities/useUpdateEntity.js.map +1 -1
  333. package/dist/esm/hooks/entity-lists/index.d.ts +1 -1
  334. package/dist/esm/hooks/entity-lists/useEntityList.d.ts +2 -2
  335. package/dist/esm/hooks/entity-lists/useEntityList.js +43 -24
  336. package/dist/esm/hooks/entity-lists/useEntityList.js.map +1 -1
  337. package/dist/esm/hooks/entity-lists/useEntityListActions.d.ts +3 -3
  338. package/dist/esm/hooks/entity-lists/useEntityListActions.js +2 -2
  339. package/dist/esm/hooks/entity-lists/useEntityListActions.js.map +1 -1
  340. package/dist/esm/hooks/reactions/index.d.ts +10 -0
  341. package/dist/esm/hooks/reactions/index.js +8 -0
  342. package/dist/esm/hooks/reactions/index.js.map +1 -0
  343. package/dist/esm/hooks/reactions/useAddReaction.d.ts +9 -0
  344. package/dist/esm/hooks/reactions/useAddReaction.js +72 -0
  345. package/dist/esm/hooks/reactions/useAddReaction.js.map +1 -0
  346. package/dist/esm/hooks/reactions/useFetchCommentReactions.d.ts +10 -0
  347. package/dist/esm/hooks/reactions/useFetchCommentReactions.js +79 -0
  348. package/dist/esm/hooks/reactions/useFetchCommentReactions.js.map +1 -0
  349. package/dist/esm/hooks/reactions/useFetchCommentReactionsWrapper.d.ts +17 -0
  350. package/dist/esm/hooks/reactions/useFetchCommentReactionsWrapper.js +165 -0
  351. package/dist/esm/hooks/reactions/useFetchCommentReactionsWrapper.js.map +1 -0
  352. package/dist/esm/hooks/reactions/useFetchEntityReactions.d.ts +10 -0
  353. package/dist/esm/hooks/{entities/useRemoveEntityUpvote.js → reactions/useFetchEntityReactions.js} +26 -13
  354. package/dist/esm/hooks/reactions/useFetchEntityReactions.js.map +1 -0
  355. package/dist/esm/hooks/reactions/useFetchEntityReactionsWrapper.d.ts +17 -0
  356. package/dist/esm/hooks/reactions/useFetchEntityReactionsWrapper.js +165 -0
  357. package/dist/esm/hooks/reactions/useFetchEntityReactionsWrapper.js.map +1 -0
  358. package/dist/esm/hooks/reactions/useReactionToggle.d.ts +19 -0
  359. package/dist/esm/hooks/reactions/useReactionToggle.js +141 -0
  360. package/dist/esm/hooks/reactions/useReactionToggle.js.map +1 -0
  361. package/dist/esm/hooks/reactions/useRemoveReaction.d.ts +7 -0
  362. package/dist/esm/hooks/{comments/useRemoveCommentUpvote.js → reactions/useRemoveReaction.js} +16 -13
  363. package/dist/esm/hooks/reactions/useRemoveReaction.js.map +1 -0
  364. package/dist/esm/hooks/space-lists/useSpaceList.js +10 -10
  365. package/dist/esm/hooks/space-lists/useSpaceList.js.map +1 -1
  366. package/dist/esm/hooks/space-lists/useSpaceListActions.js +2 -2
  367. package/dist/esm/hooks/space-lists/useSpaceListActions.js.map +1 -1
  368. package/dist/esm/hooks/spaces/index.d.ts +4 -0
  369. package/dist/esm/hooks/spaces/index.js +4 -0
  370. package/dist/esm/hooks/spaces/index.js.map +1 -1
  371. package/dist/esm/hooks/spaces/rules/index.d.ts +10 -0
  372. package/dist/esm/hooks/spaces/rules/index.js +6 -0
  373. package/dist/esm/hooks/spaces/rules/index.js.map +1 -0
  374. package/dist/esm/hooks/spaces/rules/useCreateRule.d.ts +9 -0
  375. package/dist/esm/hooks/{entities/useUpvoteEntity.js → spaces/rules/useCreateRule.js} +22 -15
  376. package/dist/esm/hooks/spaces/rules/useCreateRule.js.map +1 -0
  377. package/dist/esm/hooks/spaces/rules/useDeleteRule.d.ts +7 -0
  378. package/dist/esm/hooks/{entities/useRemoveEntityDownvote.js → spaces/rules/useDeleteRule.js} +18 -15
  379. package/dist/esm/hooks/spaces/rules/useDeleteRule.js.map +1 -0
  380. package/dist/esm/hooks/spaces/rules/useFetchManyRules.d.ts +6 -0
  381. package/dist/esm/hooks/{comments/useUpvoteComment.js → spaces/rules/useFetchManyRules.js} +15 -15
  382. package/dist/esm/hooks/spaces/rules/useFetchManyRules.js.map +1 -0
  383. package/dist/esm/hooks/spaces/rules/useFetchRule.d.ts +7 -0
  384. package/dist/esm/hooks/{comments/useRemoveCommentDownvote.js → spaces/rules/useFetchRule.js} +18 -15
  385. package/dist/esm/hooks/spaces/rules/useFetchRule.js.map +1 -0
  386. package/dist/esm/hooks/spaces/rules/useUpdateRule.d.ts +12 -0
  387. package/dist/esm/hooks/{users/useUpdateUser.js → spaces/rules/useUpdateRule.js} +15 -19
  388. package/dist/esm/hooks/spaces/rules/useUpdateRule.js.map +1 -0
  389. package/dist/esm/hooks/spaces/useCheckMyMembership.d.ts +5 -0
  390. package/dist/esm/hooks/{comments/useDownvoteComment.js → spaces/useCheckMyMembership.js} +14 -14
  391. package/dist/esm/hooks/spaces/useCheckMyMembership.js.map +1 -0
  392. package/dist/esm/hooks/spaces/useCreateSpace.d.ts +7 -2
  393. package/dist/esm/hooks/spaces/useCreateSpace.js +54 -3
  394. package/dist/esm/hooks/spaces/useCreateSpace.js.map +1 -1
  395. package/dist/esm/hooks/spaces/useFetchManySpaces.d.ts +2 -1
  396. package/dist/esm/hooks/spaces/useFetchManySpaces.js +5 -0
  397. package/dist/esm/hooks/spaces/useFetchManySpaces.js.map +1 -1
  398. package/dist/esm/hooks/spaces/useFetchMySpaces.d.ts +2 -1
  399. package/dist/esm/hooks/spaces/useFetchMySpaces.js +30 -2
  400. package/dist/esm/hooks/spaces/useFetchMySpaces.js.map +1 -1
  401. package/dist/esm/hooks/spaces/useFetchSpace.d.ts +3 -2
  402. package/dist/esm/hooks/spaces/useFetchSpace.js +10 -3
  403. package/dist/esm/hooks/spaces/useFetchSpace.js.map +1 -1
  404. package/dist/esm/hooks/spaces/useFetchSpaceByShortId.d.ts +3 -2
  405. package/dist/esm/hooks/spaces/useFetchSpaceByShortId.js +21 -3
  406. package/dist/esm/hooks/spaces/useFetchSpaceByShortId.js.map +1 -1
  407. package/dist/esm/hooks/spaces/useFetchSpaceBySlug.d.ts +3 -2
  408. package/dist/esm/hooks/spaces/useFetchSpaceBySlug.js +21 -3
  409. package/dist/esm/hooks/spaces/useFetchSpaceBySlug.js.map +1 -1
  410. package/dist/esm/hooks/spaces/useFetchSpaceChildren.d.ts +3 -2
  411. package/dist/esm/hooks/spaces/useFetchSpaceChildren.js +21 -3
  412. package/dist/esm/hooks/spaces/useFetchSpaceChildren.js.map +1 -1
  413. package/dist/esm/hooks/spaces/useFetchSpaceTeam.d.ts +6 -0
  414. package/dist/esm/hooks/{entities/useDownvoteEntity.js → spaces/useFetchSpaceTeam.js} +17 -15
  415. package/dist/esm/hooks/spaces/useFetchSpaceTeam.js.map +1 -0
  416. package/dist/esm/hooks/spaces/useUpdateSpace.d.ts +7 -2
  417. package/dist/esm/hooks/spaces/useUpdateSpace.js +49 -4
  418. package/dist/esm/hooks/spaces/useUpdateSpace.js.map +1 -1
  419. package/dist/esm/hooks/storage/index.d.ts +1 -0
  420. package/dist/esm/hooks/storage/index.js +1 -0
  421. package/dist/esm/hooks/storage/index.js.map +1 -1
  422. package/dist/esm/hooks/storage/useUploadFile.d.ts +12 -1
  423. package/dist/esm/hooks/storage/useUploadFile.js +22 -8
  424. package/dist/esm/hooks/storage/useUploadFile.js.map +1 -1
  425. package/dist/esm/hooks/storage/useUploadImage.d.ts +14 -0
  426. package/dist/esm/hooks/storage/useUploadImage.js +154 -0
  427. package/dist/esm/hooks/storage/useUploadImage.js.map +1 -0
  428. package/dist/esm/hooks/user/index.d.ts +1 -0
  429. package/dist/esm/hooks/user/useUser.js +8 -8
  430. package/dist/esm/hooks/user/useUser.js.map +1 -1
  431. package/dist/esm/hooks/user/useUserActions.js +21 -4
  432. package/dist/esm/hooks/user/useUserActions.js.map +1 -1
  433. package/dist/esm/hooks/users/index.d.ts +1 -1
  434. package/dist/esm/hooks/users/index.js +1 -1
  435. package/dist/esm/hooks/users/index.js.map +1 -1
  436. package/dist/esm/hooks/users/useFetchUser.d.ts +3 -2
  437. package/dist/esm/hooks/users/useFetchUser.js +10 -3
  438. package/dist/esm/hooks/users/useFetchUser.js.map +1 -1
  439. package/dist/esm/hooks/users/useFetchUserByForeignId.d.ts +3 -2
  440. package/dist/esm/hooks/users/useFetchUserByForeignId.js +19 -3
  441. package/dist/esm/hooks/users/useFetchUserByForeignId.js.map +1 -1
  442. package/dist/esm/hooks/users/useFetchUserByUsername.d.ts +6 -0
  443. package/dist/esm/hooks/users/useFetchUserByUsername.js +83 -0
  444. package/dist/esm/hooks/users/useFetchUserByUsername.js.map +1 -0
  445. package/dist/esm/index.d.ts +20 -15
  446. package/dist/esm/index.js +12 -8
  447. package/dist/esm/index.js.map +1 -1
  448. package/dist/esm/interfaces/models/{List.d.ts → Collection.d.ts} +2 -4
  449. package/dist/esm/interfaces/models/Collection.js +2 -0
  450. package/dist/esm/interfaces/models/Collection.js.map +1 -0
  451. package/dist/esm/interfaces/models/Comment.d.ts +8 -1
  452. package/dist/esm/interfaces/models/Entity.d.ts +8 -1
  453. package/dist/esm/interfaces/models/File.d.ts +38 -0
  454. package/dist/esm/interfaces/models/File.js +2 -0
  455. package/dist/esm/interfaces/models/File.js.map +1 -0
  456. package/dist/esm/interfaces/models/Image.d.ts +74 -0
  457. package/dist/esm/interfaces/models/Image.js +2 -0
  458. package/dist/esm/interfaces/models/Image.js.map +1 -0
  459. package/dist/esm/interfaces/models/Reaction.d.ts +23 -0
  460. package/dist/esm/interfaces/models/Reaction.js +2 -0
  461. package/dist/esm/interfaces/models/Reaction.js.map +1 -0
  462. package/dist/esm/interfaces/models/Rule.d.ts +22 -0
  463. package/dist/esm/interfaces/models/Rule.js +2 -0
  464. package/dist/esm/interfaces/models/Rule.js.map +1 -0
  465. package/dist/esm/interfaces/models/Space.d.ts +23 -3
  466. package/dist/esm/interfaces/models/SpaceMember.d.ts +3 -0
  467. package/dist/esm/interfaces/models/User.d.ts +9 -1
  468. package/dist/esm/store/api/appNotificationsApi.d.ts +181 -181
  469. package/dist/esm/store/api/baseApi.d.ts +3 -1
  470. package/dist/esm/store/api/baseApi.js +9 -4
  471. package/dist/esm/store/api/baseApi.js.map +1 -1
  472. package/dist/esm/store/api/collectionsApi.d.ts +4541 -0
  473. package/dist/esm/store/api/collectionsApi.js +241 -0
  474. package/dist/esm/store/api/collectionsApi.js.map +1 -0
  475. package/dist/esm/store/api/entityListsApi.d.ts +109 -109
  476. package/dist/esm/store/api/entityListsApi.js.map +1 -1
  477. package/dist/esm/store/api/index.d.ts +1 -1
  478. package/dist/esm/store/api/index.js +2 -2
  479. package/dist/esm/store/api/index.js.map +1 -1
  480. package/dist/esm/store/api/spacesApi.d.ts +950 -950
  481. package/dist/esm/store/api/userApi.d.ts +12 -4
  482. package/dist/esm/store/api/userApi.js +62 -11
  483. package/dist/esm/store/api/userApi.js.map +1 -1
  484. package/dist/esm/store/hooks.d.ts +26 -0
  485. package/dist/esm/store/hooks.js +14 -0
  486. package/dist/esm/store/hooks.js.map +1 -0
  487. package/dist/esm/store/index.d.ts +17 -11
  488. package/dist/esm/store/index.js +4 -1
  489. package/dist/esm/store/index.js.map +1 -1
  490. package/dist/esm/store/integration.d.ts +35 -0
  491. package/dist/esm/store/integration.js +53 -0
  492. package/dist/esm/store/integration.js.map +1 -0
  493. package/dist/esm/store/replykeReducers.d.ts +36 -0
  494. package/dist/esm/store/replykeReducers.js +36 -0
  495. package/dist/esm/store/replykeReducers.js.map +1 -0
  496. package/dist/esm/store/rootReducer.d.ts +27 -14
  497. package/dist/esm/store/rootReducer.js +6 -16
  498. package/dist/esm/store/rootReducer.js.map +1 -1
  499. package/dist/esm/store/slices/appNotificationsSlice.d.ts +9 -8
  500. package/dist/esm/store/slices/appNotificationsSlice.js +9 -9
  501. package/dist/esm/store/slices/appNotificationsSlice.js.map +1 -1
  502. package/dist/esm/store/slices/authSlice.d.ts +20 -10
  503. package/dist/esm/store/slices/authSlice.js +21 -14
  504. package/dist/esm/store/slices/authSlice.js.map +1 -1
  505. package/dist/esm/store/slices/authThunks.d.ts +4 -0
  506. package/dist/esm/store/slices/authThunks.js +55 -17
  507. package/dist/esm/store/slices/authThunks.js.map +1 -1
  508. package/dist/esm/store/slices/collectionsSlice.d.ts +428 -0
  509. package/dist/esm/store/slices/collectionsSlice.js +202 -0
  510. package/dist/esm/store/slices/collectionsSlice.js.map +1 -0
  511. package/dist/esm/store/slices/entityListsSlice.d.ts +3818 -204
  512. package/dist/esm/store/slices/entityListsSlice.js +42 -24
  513. package/dist/esm/store/slices/entityListsSlice.js.map +1 -1
  514. package/dist/esm/store/slices/spaceListsSlice.d.ts +1065 -48
  515. package/dist/esm/store/slices/spaceListsSlice.js +2 -2
  516. package/dist/esm/store/slices/spaceListsSlice.js.map +1 -1
  517. package/dist/esm/store/slices/userSlice.d.ts +715 -7
  518. package/dist/esm/store/slices/userSlice.js +22 -10
  519. package/dist/esm/store/slices/userSlice.js.map +1 -1
  520. package/dist/esm/store/types/index.d.ts +5 -1
  521. package/dist/esm/utils/env.js +3 -3
  522. package/dist/esm/utils/env.js.map +1 -1
  523. package/package.json +7 -5
  524. package/dist/cjs/hooks/comments/useCommentVotes.d.ts +0 -11
  525. package/dist/cjs/hooks/comments/useCommentVotes.js +0 -234
  526. package/dist/cjs/hooks/comments/useCommentVotes.js.map +0 -1
  527. package/dist/cjs/hooks/comments/useDownvoteComment.d.ts +0 -5
  528. package/dist/cjs/hooks/comments/useDownvoteComment.js.map +0 -1
  529. package/dist/cjs/hooks/comments/useProfileComments.d.ts +0 -18
  530. package/dist/cjs/hooks/comments/useProfileComments.js.map +0 -1
  531. package/dist/cjs/hooks/comments/useRemoveCommentDownvote.d.ts +0 -5
  532. package/dist/cjs/hooks/comments/useRemoveCommentDownvote.js.map +0 -1
  533. package/dist/cjs/hooks/comments/useRemoveCommentUpvote.d.ts +0 -5
  534. package/dist/cjs/hooks/comments/useRemoveCommentUpvote.js.map +0 -1
  535. package/dist/cjs/hooks/comments/useUpvoteComment.d.ts +0 -5
  536. package/dist/cjs/hooks/comments/useUpvoteComment.js.map +0 -1
  537. package/dist/cjs/hooks/entities/useDownvoteEntity.d.ts +0 -5
  538. package/dist/cjs/hooks/entities/useDownvoteEntity.js.map +0 -1
  539. package/dist/cjs/hooks/entities/useEntityVotes.d.ts +0 -11
  540. package/dist/cjs/hooks/entities/useEntityVotes.js +0 -241
  541. package/dist/cjs/hooks/entities/useEntityVotes.js.map +0 -1
  542. package/dist/cjs/hooks/entities/useRemoveEntityDownvote.d.ts +0 -5
  543. package/dist/cjs/hooks/entities/useRemoveEntityDownvote.js.map +0 -1
  544. package/dist/cjs/hooks/entities/useRemoveEntityUpvote.d.ts +0 -5
  545. package/dist/cjs/hooks/entities/useRemoveEntityUpvote.js.map +0 -1
  546. package/dist/cjs/hooks/entities/useUpvoteEntity.d.ts +0 -5
  547. package/dist/cjs/hooks/entities/useUpvoteEntity.js.map +0 -1
  548. package/dist/cjs/hooks/lists/index.d.ts +0 -3
  549. package/dist/cjs/hooks/lists/index.js +0 -14
  550. package/dist/cjs/hooks/lists/index.js.map +0 -1
  551. package/dist/cjs/hooks/lists/useIsEntitySaved.js.map +0 -1
  552. package/dist/cjs/hooks/lists/useLists.d.ts +0 -36
  553. package/dist/cjs/hooks/lists/useLists.js +0 -239
  554. package/dist/cjs/hooks/lists/useLists.js.map +0 -1
  555. package/dist/cjs/hooks/lists/useListsActions.d.ts +0 -21
  556. package/dist/cjs/hooks/lists/useListsActions.js.map +0 -1
  557. package/dist/cjs/hooks/users/useUpdateUser.d.ts +0 -18
  558. package/dist/cjs/hooks/users/useUpdateUser.js.map +0 -1
  559. package/dist/cjs/interfaces/models/List.js.map +0 -1
  560. package/dist/cjs/store/api/listsApi.d.ts +0 -3564
  561. package/dist/cjs/store/api/listsApi.js +0 -288
  562. package/dist/cjs/store/api/listsApi.js.map +0 -1
  563. package/dist/cjs/store/slices/listsSlice.d.ts +0 -1911
  564. package/dist/cjs/store/slices/listsSlice.js +0 -211
  565. package/dist/cjs/store/slices/listsSlice.js.map +0 -1
  566. package/dist/esm/hooks/comments/useCommentVotes.d.ts +0 -11
  567. package/dist/esm/hooks/comments/useCommentVotes.js +0 -229
  568. package/dist/esm/hooks/comments/useCommentVotes.js.map +0 -1
  569. package/dist/esm/hooks/comments/useDownvoteComment.d.ts +0 -5
  570. package/dist/esm/hooks/comments/useDownvoteComment.js.map +0 -1
  571. package/dist/esm/hooks/comments/useProfileComments.d.ts +0 -18
  572. package/dist/esm/hooks/comments/useProfileComments.js.map +0 -1
  573. package/dist/esm/hooks/comments/useRemoveCommentDownvote.d.ts +0 -5
  574. package/dist/esm/hooks/comments/useRemoveCommentDownvote.js.map +0 -1
  575. package/dist/esm/hooks/comments/useRemoveCommentUpvote.d.ts +0 -5
  576. package/dist/esm/hooks/comments/useRemoveCommentUpvote.js.map +0 -1
  577. package/dist/esm/hooks/comments/useUpvoteComment.d.ts +0 -5
  578. package/dist/esm/hooks/comments/useUpvoteComment.js.map +0 -1
  579. package/dist/esm/hooks/entities/useDownvoteEntity.d.ts +0 -5
  580. package/dist/esm/hooks/entities/useDownvoteEntity.js.map +0 -1
  581. package/dist/esm/hooks/entities/useEntityVotes.d.ts +0 -11
  582. package/dist/esm/hooks/entities/useEntityVotes.js +0 -236
  583. package/dist/esm/hooks/entities/useEntityVotes.js.map +0 -1
  584. package/dist/esm/hooks/entities/useRemoveEntityDownvote.d.ts +0 -5
  585. package/dist/esm/hooks/entities/useRemoveEntityDownvote.js.map +0 -1
  586. package/dist/esm/hooks/entities/useRemoveEntityUpvote.d.ts +0 -5
  587. package/dist/esm/hooks/entities/useRemoveEntityUpvote.js.map +0 -1
  588. package/dist/esm/hooks/entities/useUpvoteEntity.d.ts +0 -5
  589. package/dist/esm/hooks/entities/useUpvoteEntity.js.map +0 -1
  590. package/dist/esm/hooks/lists/index.d.ts +0 -3
  591. package/dist/esm/hooks/lists/index.js +0 -5
  592. package/dist/esm/hooks/lists/index.js.map +0 -1
  593. package/dist/esm/hooks/lists/useIsEntitySaved.js.map +0 -1
  594. package/dist/esm/hooks/lists/useLists.d.ts +0 -36
  595. package/dist/esm/hooks/lists/useLists.js +0 -234
  596. package/dist/esm/hooks/lists/useLists.js.map +0 -1
  597. package/dist/esm/hooks/lists/useListsActions.d.ts +0 -21
  598. package/dist/esm/hooks/lists/useListsActions.js.map +0 -1
  599. package/dist/esm/hooks/users/useUpdateUser.d.ts +0 -18
  600. package/dist/esm/hooks/users/useUpdateUser.js.map +0 -1
  601. package/dist/esm/interfaces/models/List.js +0 -2
  602. package/dist/esm/interfaces/models/List.js.map +0 -1
  603. package/dist/esm/store/api/listsApi.d.ts +0 -3564
  604. package/dist/esm/store/api/listsApi.js +0 -285
  605. package/dist/esm/store/api/listsApi.js.map +0 -1
  606. package/dist/esm/store/slices/listsSlice.d.ts +0 -1911
  607. package/dist/esm/store/slices/listsSlice.js +0 -202
  608. package/dist/esm/store/slices/listsSlice.js.map +0 -1
@@ -1,4 +1,15 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
14
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
15
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -46,8 +57,8 @@ function useFetchUserByForeignId() {
46
57
  var _this = this;
47
58
  var projectId = (0, useProject_1.default)().projectId;
48
59
  var fetchUserByForeignId = (0, react_1.useCallback)(function (_a) { return __awaiter(_this, [_a], void 0, function (_b) {
49
- var response;
50
- var foreignId = _b.foreignId;
60
+ var includeParam, response;
61
+ var foreignId = _b.foreignId, include = _b.include;
51
62
  return __generator(this, function (_c) {
52
63
  switch (_c.label) {
53
64
  case 0:
@@ -57,8 +68,13 @@ function useFetchUserByForeignId() {
57
68
  if (!foreignId) {
58
69
  throw new Error("Please specify a foreign ID");
59
70
  }
71
+ includeParam = include
72
+ ? Array.isArray(include)
73
+ ? include.join(",")
74
+ : include
75
+ : undefined;
60
76
  return [4 /*yield*/, axios_1.default.get("/".concat(projectId, "/users/by-foreign-id"), {
61
- params: { foreignId: foreignId },
77
+ params: __assign({ foreignId: foreignId }, (includeParam ? { include: includeParam } : {})),
62
78
  })];
63
79
  case 1:
64
80
  response = _c.sent();
@@ -1 +1 @@
1
- {"version":3,"file":"useFetchUserByForeignId.js","sourceRoot":"","sources":["../../../../src/hooks/users/useFetchUserByForeignId.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AAEpC,sEAAgD;AAChD,6DAAuC;AAGvC,SAAS,uBAAuB;IAAhC,iBAuBC;IAtBS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAEnC,IAAM,oBAAoB,GAAG,IAAA,mBAAW,EACtC,gEAAO,EAAoC;;YAAlC,SAAS,eAAA;;;;oBAChB,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,IAAI,CAAC,SA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BAAsB,EAAE;4BACpE,MAAM,aACJ,SAAS,WAAA,IACN,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CACnD;yBACF,CAAC,EAAA;;oBALI,QAAQ,GAAG,SAKf;oBAEF,sBAAO,QAAQ,CAAC,IAAY,EAAC;;;SAC9B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAED,kBAAe,uBAAuB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { User, UserIncludeParam } from "../../interfaces/models/User";
2
+ declare function useFetchUserByUsername(): ({ username, include, }: {
3
+ username: string;
4
+ include?: UserIncludeParam;
5
+ }) => Promise<User>;
6
+ export default useFetchUserByUsername;
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
+ return new (P || (P = Promise))(function (resolve, reject) {
16
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
20
+ });
21
+ };
22
+ var __generator = (this && this.__generator) || function (thisArg, body) {
23
+ 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);
24
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
+ function verb(n) { return function (v) { return step([n, v]); }; }
26
+ function step(op) {
27
+ if (f) throw new TypeError("Generator is already executing.");
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
+ 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;
30
+ if (y = 0, t) op = [op[0] & 2, t.value];
31
+ switch (op[0]) {
32
+ case 0: case 1: t = op; break;
33
+ case 4: _.label++; return { value: op[1], done: false };
34
+ case 5: _.label++; y = op[1]; op = [0]; continue;
35
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
+ default:
37
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
+ if (t[2]) _.ops.pop();
42
+ _.trys.pop(); continue;
43
+ }
44
+ op = body.call(thisArg, _);
45
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
+ }
48
+ };
49
+ var __importDefault = (this && this.__importDefault) || function (mod) {
50
+ return (mod && mod.__esModule) ? mod : { "default": mod };
51
+ };
52
+ Object.defineProperty(exports, "__esModule", { value: true });
53
+ var react_1 = require("react");
54
+ var useProject_1 = __importDefault(require("../projects/useProject"));
55
+ var axios_1 = __importDefault(require("../../config/axios"));
56
+ function useFetchUserByUsername() {
57
+ var _this = this;
58
+ var projectId = (0, useProject_1.default)().projectId;
59
+ var fetchUserByUsername = (0, react_1.useCallback)(function (_a) { return __awaiter(_this, [_a], void 0, function (_b) {
60
+ var includeParam, response;
61
+ var username = _b.username, include = _b.include;
62
+ return __generator(this, function (_c) {
63
+ switch (_c.label) {
64
+ case 0:
65
+ if (!projectId) {
66
+ throw new Error("No project specified");
67
+ }
68
+ if (!username) {
69
+ throw new Error("Please specify a username");
70
+ }
71
+ includeParam = include
72
+ ? Array.isArray(include)
73
+ ? include.join(",")
74
+ : include
75
+ : undefined;
76
+ return [4 /*yield*/, axios_1.default.get("/".concat(projectId, "/users/by-username"), {
77
+ params: __assign({ username: username }, (includeParam ? { include: includeParam } : {})),
78
+ })];
79
+ case 1:
80
+ response = _c.sent();
81
+ return [2 /*return*/, response.data];
82
+ }
83
+ });
84
+ }); }, [projectId]);
85
+ return fetchUserByUsername;
86
+ }
87
+ exports.default = useFetchUserByUsername;
88
+ //# sourceMappingURL=useFetchUserByUsername.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFetchUserByUsername.js","sourceRoot":"","sources":["../../../../src/hooks/users/useFetchUserByUsername.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AAEpC,sEAAgD;AAChD,6DAAuC;AAGvC,SAAS,sBAAsB;IAA/B,iBAsCC;IArCS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAEnC,IAAM,mBAAmB,GAAG,IAAA,mBAAW,EACrC,gEAAO,EAMN;;YALC,QAAQ,cAAA,EACR,OAAO,aAAA;;;;oBAKP,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,IAAI,CAAC,QAAQ,EAAE,CAAC;wBACd,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;oBAC/C,CAAC;oBAEK,YAAY,GAAG,OAAO;wBAC1B,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;4BACtB,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;4BACnB,CAAC,CAAC,OAAO;wBACX,CAAC,CAAC,SAAS,CAAC;oBAEG,qBAAM,eAAK,CAAC,GAAG,CAAC,WAAI,SAAS,uBAAoB,EAAE;4BAClE,MAAM,aACJ,QAAQ,UAAA,IACL,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CACnD;yBACF,CAAC,EAAA;;oBALI,QAAQ,GAAG,SAKf;oBAEF,sBAAO,QAAQ,CAAC,IAAY,EAAC;;;SAC9B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AAED,kBAAe,sBAAsB,CAAC"}
@@ -6,19 +6,21 @@ export { default as getPublicFileUrl } from "./helpers/getPublicFileUrl";
6
6
  export { isDevelopment, isProduction, getApiBaseUrl, getEnvVar, } from "./utils/env";
7
7
  export { reportReasons } from "./constants/reportReasons";
8
8
  export type { ReportReasonKey } from "./constants/reportReasons";
9
- export { ReplykeProvider, EntityProvider, CommentSectionProvider, SpaceProvider, } from "./context";
9
+ export { ReplykeProvider, ReplykeIntegrationProvider, EntityProvider, CommentSectionProvider, SpaceProvider, } from "./context";
10
+ export { replykeReducers, replykeApiReducer, replykeMiddleware, replykeApi, type ReplykeState, } from "./store/integration";
10
11
  export { useProject, useProjectData } from "./hooks/projects";
11
12
  export { useSignTestingJwt } from "./hooks/crypto";
12
13
  export { useAuth, type UseAuthValues } from "./hooks/auth";
13
- export { useUser, useUserActions, type UseUserProps, type UseUserValues, } from "./hooks/user";
14
+ export { useUser, useUserActions, type UseUserProps, type UseUserValues, type UpdateUserParams, } from "./hooks/user";
14
15
  export { useAppNotifications, useAppNotificationsActions, type UseAppNotificationsProps, type UseAppNotificationsValues, } from "./hooks/app-notifications";
15
- export { useLists, useListsActions, useIsEntitySaved, type UseListsProps, type UseListsValues, } from "./hooks/lists";
16
- export { useEntity, useEntityData, useCreateEntity, useDeleteEntity, useDownvoteEntity, useEntityVotes, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useFetchManyEntities, useIncrementEntityViews, useRemoveEntityDownvote, useRemoveEntityUpvote, useUpdateEntity, useUpvoteEntity, } from "./hooks/entities";
17
- export { useEntityList, useEntityListActions, type UseEntityListProps, type UseEntityListValues, type EntityListFilters, type EntityListFetchOptions, } from "./hooks/entity-lists";
18
- export { useSpace, useSpaceData, useFetchSpace, useFetchSpaceByShortId, useFetchSpaceBySlug, useFetchSpaceBreadcrumb, useFetchSpaceChildren, useFetchManySpaces, useCheckSlugAvailability, useCreateSpace, useUpdateSpace, useDeleteSpace, useJoinSpace, useLeaveSpace, useFetchSpaceMembers, useFetchMySpaces, useUpdateMemberRole, useApproveMember, useDeclineMember, useRemoveMember, useSpacePermissions, type UseSpaceDataProps, type UseSpaceDataValues, type CreateSpaceProps, type UpdateSpaceProps, } from "./hooks/spaces";
16
+ export { useCollections, useCollectionsActions, useIsEntityInCollection, useCollectionEntitiesWrapper, type UseCollectionsProps, type UseCollectionsValues, type UseCollectionEntitiesWrapperProps, type UseCollectionEntitiesWrapperValues, } from "./hooks/collections";
17
+ export { useEntity, useEntityData, useCreateEntity, useDeleteEntity, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useFetchManyEntities, useIncrementEntityViews, useFetchManyEntitiesWrapper, useUpdateEntity, type UseFetchManyEntitiesWrapperProps, type UseFetchManyEntitiesWrapperValues, } from "./hooks/entities";
18
+ export { useEntityList, useEntityListActions, type UseEntityListProps, type UseEntityListValues, type EntityListFilters, type EntityListSort, type EntityListFetchOptions, } from "./hooks/entity-lists";
19
+ export { useSpace, useSpaceData, useFetchSpace, useFetchSpaceByShortId, useFetchSpaceBySlug, useFetchSpaceBreadcrumb, useFetchSpaceChildren, useFetchManySpaces, useCheckSlugAvailability, useCreateSpace, useUpdateSpace, useDeleteSpace, useJoinSpace, useLeaveSpace, useFetchSpaceMembers, useFetchSpaceTeam, useFetchMySpaces, useUpdateMemberRole, useApproveMember, useDeclineMember, useRemoveMember, useSpacePermissions, type UseSpaceDataProps, type UseSpaceDataValues, type CreateSpaceProps, type UpdateSpaceProps, } from "./hooks/spaces";
19
20
  export { useSpaceList, useSpaceListActions, type UseSpaceListProps, type UseSpaceListValues, } from "./hooks/space-lists";
20
- export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment, useCommentVotes, useDeleteComment, useEntityComments, useProfileComments, } from "./hooks/comments";
21
- export { useFetchUser, useFetchUserByForeignId, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions, useUpdateUser, } from "./hooks/users";
21
+ export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment, useDeleteComment, useEntityComments, useFetchManyCommentsWrapper, type UseFetchManyCommentsWrapperProps, type UseFetchManyCommentsWrapperValues, } from "./hooks/comments";
22
+ export { useFetchEntityReactions, useFetchCommentReactions, useFetchEntityReactionsWrapper, useFetchCommentReactionsWrapper, useAddReaction, useRemoveReaction, useReactionToggle, type UseFetchEntityReactionsWrapperProps, type UseFetchEntityReactionsWrapperValues, type UseFetchCommentReactionsWrapperProps, type UseFetchCommentReactionsWrapperValues, type UseReactionToggleValues, } from "./hooks/reactions";
23
+ export { useFetchUser, useFetchUserByForeignId, useFetchUserByUsername, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions, } from "./hooks/users";
22
24
  export { useFetchFollowStatus, useFetchFollowers, useFetchFollowersByUserId, useFetchFollowersCount, useFetchFollowersCountByUserId, useFetchFollowing, useFetchFollowingByUserId, useFetchFollowingCount, useFetchFollowingCountByUserId, useFollowManager, useFollowUser, useUnfollowByFollowId, useUnfollowUserByUserId, } from "./hooks/relationships/follows";
23
25
  export { useRequestConnection, useAcceptConnection, useDeclineConnection, useRemoveConnection, useFetchConnections, useFetchConnectionStatus, useRemoveConnectionByUserId, useFetchConnectionsCount, useFetchSentPendingConnections, useFetchReceivedPendingConnections, useFetchConnectionsByUserId, useFetchConnectionsCountByUserId, useConnectionManager, } from "./hooks/relationships/connections";
24
26
  export { useCreateReport } from "./hooks/reports";
@@ -26,17 +28,18 @@ export { useFetchSpaceReports } from "./hooks/reports";
26
28
  export { useHandleSpaceEntityReport } from "./hooks/reports";
27
29
  export { useHandleSpaceCommentReport } from "./hooks/reports";
28
30
  export { useGetMetadata } from "./hooks/utils";
29
- export { useUploadFile } from "./hooks/storage";
31
+ export { useUploadFile, useUploadImage } from "./hooks/storage";
30
32
  export type { PaginatedResponse, PaginationMetadata, } from "./interfaces/IPaginatedResponse";
31
33
  export type { EntityCommentsTree } from "./interfaces/EntityCommentsTree";
32
- export type { UserFull, User, AuthUser, UserRole, } from "./interfaces/models/User";
34
+ export type { UserFull, User, AuthUser, UserRole, UserInclude, UserIncludeArray, UserIncludeParam, } from "./interfaces/models/User";
33
35
  export * as AppNotification from "./interfaces/models/AppNotification";
34
- export type { Entity } from "./interfaces/models/Entity";
35
- export type { List } from "./interfaces/models/List";
36
- export type { Comment, GifData } from "./interfaces/models/Comment";
36
+ export type { Entity, EntityInclude, EntityIncludeArray, EntityIncludeParam, } from "./interfaces/models/Entity";
37
+ export type { Collection } from "./interfaces/models/Collection";
38
+ export type { Comment, GifData, CommentInclude, CommentIncludeArray, CommentIncludeParam, } from "./interfaces/models/Comment";
39
+ export type { Reaction, ReactionType, ReactionCounts, } from "./interfaces/models/Reaction";
37
40
  export type { Mention } from "./interfaces/models/Mention";
38
- export type { Space, SpaceDetailed, SpacePreview, SpaceMemberPermissions, ReadingPermission, PostingPermission, PaginationMeta, MySpaceItem, MySpacesResponse, JoinSpaceResponse, LeaveSpaceResponse, UpdateMemberRoleResponse, ApproveMemberResponse, DeclineMemberResponse, DeleteSpaceResponse, } from "./interfaces/models/Space";
39
- export type { SpaceMember, SpaceMemberRole, SpaceMemberStatus, SpaceMemberWithUser, SpaceMembersResponse, } from "./interfaces/models/SpaceMember";
41
+ export type { Space, SpaceDetailed, SpacePreview, SpaceMemberPermissions, ReadingPermission, PostingPermission, PaginationMeta, MySpaceItem, MySpacesResponse, JoinSpaceResponse, LeaveSpaceResponse, UpdateMemberRoleResponse, ApproveMemberResponse, DeclineMemberResponse, DeleteSpaceResponse, SpaceInclude, SpaceIncludeArray, SpaceIncludeParam, } from "./interfaces/models/Space";
42
+ export type { SpaceMember, SpaceMemberRole, SpaceMemberStatus, SpaceMemberWithUser, SpaceMembersResponse, SpaceTeamResponse, } from "./interfaces/models/SpaceMember";
40
43
  export type { SpaceListSortByOptions, SpaceListFilters, } from "./interfaces/SpaceListSortByOptions";
41
44
  export type { SpaceBreadcrumb } from "./interfaces/SpaceBreadcrumb";
42
45
  export type { CommentsSortByOptions } from "./interfaces/CommentsSortByOptions";
@@ -44,3 +47,5 @@ export type { EntityListSortByOptions, SortDirection, SortType, } from "./interf
44
47
  export { validateSortBy, validateMetadataPropertyName, validateSortType, } from "./interfaces/EntityListSortByOptions";
45
48
  export type { TimeFrame } from "./interfaces/TimeFrame";
46
49
  export type { Connection, EstablishedConnection, PendingConnection, ConnectionsResponse, PendingConnectionsResponse, PendingConnectionListResponse, ConnectionRequestParams, ConnectionActionResponse, ConnectionWithdrawResponse, ConnectionCountResponse, RemoveConnectionByUserIdResponse, ConnectionStatusResponse, ConnectionStatus, } from "./interfaces/models/Connection";
50
+ export type { Image, ImageVariant, UploadImageOptions, } from "./interfaces/models/Image";
51
+ export type { File } from "./interfaces/models/File";
package/dist/cjs/index.js CHANGED
@@ -36,9 +36,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.useFetchManySpaces = exports.useFetchSpaceChildren = exports.useFetchSpaceBreadcrumb = exports.useFetchSpaceBySlug = exports.useFetchSpaceByShortId = exports.useFetchSpace = exports.useSpaceData = exports.useSpace = exports.useEntityListActions = exports.useEntityList = exports.useUpvoteEntity = exports.useUpdateEntity = exports.useRemoveEntityUpvote = exports.useRemoveEntityDownvote = exports.useIncrementEntityViews = exports.useFetchManyEntities = exports.useFetchEntityByShortId = exports.useFetchEntityByForeignId = exports.useFetchEntity = exports.useEntityVotes = exports.useDownvoteEntity = exports.useDeleteEntity = exports.useCreateEntity = exports.useEntityData = exports.useEntity = exports.useIsEntitySaved = exports.useListsActions = exports.useLists = exports.useAppNotificationsActions = exports.useAppNotifications = exports.useUserActions = exports.useUser = exports.useAuth = exports.useSignTestingJwt = exports.useProjectData = exports.useProject = exports.SpaceProvider = exports.CommentSectionProvider = exports.EntityProvider = exports.ReplykeProvider = exports.reportReasons = exports.getEnvVar = exports.getApiBaseUrl = exports.isProduction = exports.isDevelopment = exports.getPublicFileUrl = exports.getUserName = exports.safeMergeStyleProps = exports.keywordHelpers = exports.handleError = void 0;
40
- exports.useRemoveConnection = exports.useDeclineConnection = exports.useAcceptConnection = exports.useRequestConnection = exports.useUnfollowUserByUserId = exports.useUnfollowByFollowId = exports.useFollowUser = exports.useFollowManager = exports.useFetchFollowingCountByUserId = exports.useFetchFollowingCount = exports.useFetchFollowingByUserId = exports.useFetchFollowing = exports.useFetchFollowersCountByUserId = exports.useFetchFollowersCount = exports.useFetchFollowersByUserId = exports.useFetchFollowers = exports.useFetchFollowStatus = exports.useUpdateUser = exports.useMentions = exports.useFetchUserSuggestions = exports.useCheckUsernameAvailability = exports.useFetchUserByForeignId = exports.useFetchUser = exports.useProfileComments = exports.useEntityComments = exports.useDeleteComment = exports.useCommentVotes = exports.useUpdateComment = exports.useReplies = exports.useFetchCommentByForeignId = exports.useFetchComment = exports.useFetchManyComments = exports.useCreateComment = exports.useCommentSectionData = exports.useCommentSection = exports.useSpaceListActions = exports.useSpaceList = exports.useSpacePermissions = exports.useRemoveMember = exports.useDeclineMember = exports.useApproveMember = exports.useUpdateMemberRole = exports.useFetchMySpaces = exports.useFetchSpaceMembers = exports.useLeaveSpace = exports.useJoinSpace = exports.useDeleteSpace = exports.useUpdateSpace = exports.useCreateSpace = exports.useCheckSlugAvailability = void 0;
41
- exports.validateSortType = exports.validateMetadataPropertyName = exports.validateSortBy = exports.AppNotification = exports.useUploadFile = exports.useGetMetadata = exports.useHandleSpaceCommentReport = exports.useHandleSpaceEntityReport = exports.useFetchSpaceReports = exports.useCreateReport = exports.useConnectionManager = exports.useFetchConnectionsCountByUserId = exports.useFetchConnectionsByUserId = exports.useFetchReceivedPendingConnections = exports.useFetchSentPendingConnections = exports.useFetchConnectionsCount = exports.useRemoveConnectionByUserId = exports.useFetchConnectionStatus = exports.useFetchConnections = void 0;
39
+ exports.useFetchSpaceBreadcrumb = exports.useFetchSpaceBySlug = exports.useFetchSpaceByShortId = exports.useFetchSpace = exports.useSpaceData = exports.useSpace = exports.useEntityListActions = exports.useEntityList = exports.useUpdateEntity = exports.useFetchManyEntitiesWrapper = exports.useIncrementEntityViews = exports.useFetchManyEntities = exports.useFetchEntityByShortId = exports.useFetchEntityByForeignId = exports.useFetchEntity = exports.useDeleteEntity = exports.useCreateEntity = exports.useEntityData = exports.useEntity = exports.useCollectionEntitiesWrapper = exports.useIsEntityInCollection = exports.useCollectionsActions = exports.useCollections = exports.useAppNotificationsActions = exports.useAppNotifications = exports.useUserActions = exports.useUser = exports.useAuth = exports.useSignTestingJwt = exports.useProjectData = exports.useProject = exports.replykeApi = exports.replykeMiddleware = exports.replykeApiReducer = exports.replykeReducers = exports.SpaceProvider = exports.CommentSectionProvider = exports.EntityProvider = exports.ReplykeIntegrationProvider = exports.ReplykeProvider = exports.reportReasons = exports.getEnvVar = exports.getApiBaseUrl = exports.isProduction = exports.isDevelopment = exports.getPublicFileUrl = exports.getUserName = exports.safeMergeStyleProps = exports.keywordHelpers = exports.handleError = void 0;
40
+ exports.useFetchFollowingCount = exports.useFetchFollowingByUserId = exports.useFetchFollowing = exports.useFetchFollowersCountByUserId = exports.useFetchFollowersCount = exports.useFetchFollowersByUserId = exports.useFetchFollowers = exports.useFetchFollowStatus = exports.useMentions = exports.useFetchUserSuggestions = exports.useCheckUsernameAvailability = exports.useFetchUserByUsername = exports.useFetchUserByForeignId = exports.useFetchUser = exports.useReactionToggle = exports.useRemoveReaction = exports.useAddReaction = exports.useFetchCommentReactionsWrapper = exports.useFetchEntityReactionsWrapper = exports.useFetchCommentReactions = exports.useFetchEntityReactions = exports.useFetchManyCommentsWrapper = exports.useEntityComments = exports.useDeleteComment = exports.useUpdateComment = exports.useReplies = exports.useFetchCommentByForeignId = exports.useFetchComment = exports.useFetchManyComments = exports.useCreateComment = exports.useCommentSectionData = exports.useCommentSection = exports.useSpaceListActions = exports.useSpaceList = exports.useSpacePermissions = exports.useRemoveMember = exports.useDeclineMember = exports.useApproveMember = exports.useUpdateMemberRole = exports.useFetchMySpaces = exports.useFetchSpaceTeam = exports.useFetchSpaceMembers = exports.useLeaveSpace = exports.useJoinSpace = exports.useDeleteSpace = exports.useUpdateSpace = exports.useCreateSpace = exports.useCheckSlugAvailability = exports.useFetchManySpaces = exports.useFetchSpaceChildren = void 0;
41
+ exports.validateSortType = exports.validateMetadataPropertyName = exports.validateSortBy = exports.AppNotification = exports.useUploadImage = exports.useUploadFile = exports.useGetMetadata = exports.useHandleSpaceCommentReport = exports.useHandleSpaceEntityReport = exports.useFetchSpaceReports = exports.useCreateReport = exports.useConnectionManager = exports.useFetchConnectionsCountByUserId = exports.useFetchConnectionsByUserId = exports.useFetchReceivedPendingConnections = exports.useFetchSentPendingConnections = exports.useFetchConnectionsCount = exports.useRemoveConnectionByUserId = exports.useFetchConnectionStatus = exports.useFetchConnections = exports.useRemoveConnection = exports.useDeclineConnection = exports.useAcceptConnection = exports.useRequestConnection = exports.useUnfollowUserByUserId = exports.useUnfollowByFollowId = exports.useFollowUser = exports.useFollowManager = exports.useFetchFollowingCountByUserId = void 0;
42
42
  // Helpers & Utilities
43
43
  var handleError_1 = require("./utils/handleError");
44
44
  Object.defineProperty(exports, "handleError", { enumerable: true, get: function () { return handleError_1.handleError; } });
@@ -61,9 +61,16 @@ Object.defineProperty(exports, "reportReasons", { enumerable: true, get: functio
61
61
  // Context providers (Redux-powered by default)
62
62
  var context_1 = require("./context");
63
63
  Object.defineProperty(exports, "ReplykeProvider", { enumerable: true, get: function () { return context_1.ReplykeProvider; } });
64
+ Object.defineProperty(exports, "ReplykeIntegrationProvider", { enumerable: true, get: function () { return context_1.ReplykeIntegrationProvider; } });
64
65
  Object.defineProperty(exports, "EntityProvider", { enumerable: true, get: function () { return context_1.EntityProvider; } });
65
66
  Object.defineProperty(exports, "CommentSectionProvider", { enumerable: true, get: function () { return context_1.CommentSectionProvider; } });
66
67
  Object.defineProperty(exports, "SpaceProvider", { enumerable: true, get: function () { return context_1.SpaceProvider; } });
68
+ // Integration mode exports (for users with their own Redux store)
69
+ var integration_1 = require("./store/integration");
70
+ Object.defineProperty(exports, "replykeReducers", { enumerable: true, get: function () { return integration_1.replykeReducers; } });
71
+ Object.defineProperty(exports, "replykeApiReducer", { enumerable: true, get: function () { return integration_1.replykeApiReducer; } });
72
+ Object.defineProperty(exports, "replykeMiddleware", { enumerable: true, get: function () { return integration_1.replykeMiddleware; } });
73
+ Object.defineProperty(exports, "replykeApi", { enumerable: true, get: function () { return integration_1.replykeApi; } });
67
74
  // -- projects
68
75
  var projects_1 = require("./hooks/projects");
69
76
  Object.defineProperty(exports, "useProject", { enumerable: true, get: function () { return projects_1.useProject; } });
@@ -82,28 +89,25 @@ Object.defineProperty(exports, "useUserActions", { enumerable: true, get: functi
82
89
  var app_notifications_1 = require("./hooks/app-notifications");
83
90
  Object.defineProperty(exports, "useAppNotifications", { enumerable: true, get: function () { return app_notifications_1.useAppNotifications; } });
84
91
  Object.defineProperty(exports, "useAppNotificationsActions", { enumerable: true, get: function () { return app_notifications_1.useAppNotificationsActions; } });
85
- // -- lists
86
- var lists_1 = require("./hooks/lists");
87
- Object.defineProperty(exports, "useLists", { enumerable: true, get: function () { return lists_1.useLists; } });
88
- Object.defineProperty(exports, "useListsActions", { enumerable: true, get: function () { return lists_1.useListsActions; } });
89
- Object.defineProperty(exports, "useIsEntitySaved", { enumerable: true, get: function () { return lists_1.useIsEntitySaved; } });
92
+ // -- collections
93
+ var collections_1 = require("./hooks/collections");
94
+ Object.defineProperty(exports, "useCollections", { enumerable: true, get: function () { return collections_1.useCollections; } });
95
+ Object.defineProperty(exports, "useCollectionsActions", { enumerable: true, get: function () { return collections_1.useCollectionsActions; } });
96
+ Object.defineProperty(exports, "useIsEntityInCollection", { enumerable: true, get: function () { return collections_1.useIsEntityInCollection; } });
97
+ Object.defineProperty(exports, "useCollectionEntitiesWrapper", { enumerable: true, get: function () { return collections_1.useCollectionEntitiesWrapper; } });
90
98
  // -- entities
91
99
  var entities_1 = require("./hooks/entities");
92
100
  Object.defineProperty(exports, "useEntity", { enumerable: true, get: function () { return entities_1.useEntity; } });
93
101
  Object.defineProperty(exports, "useEntityData", { enumerable: true, get: function () { return entities_1.useEntityData; } });
94
102
  Object.defineProperty(exports, "useCreateEntity", { enumerable: true, get: function () { return entities_1.useCreateEntity; } });
95
103
  Object.defineProperty(exports, "useDeleteEntity", { enumerable: true, get: function () { return entities_1.useDeleteEntity; } });
96
- Object.defineProperty(exports, "useDownvoteEntity", { enumerable: true, get: function () { return entities_1.useDownvoteEntity; } });
97
- Object.defineProperty(exports, "useEntityVotes", { enumerable: true, get: function () { return entities_1.useEntityVotes; } });
98
104
  Object.defineProperty(exports, "useFetchEntity", { enumerable: true, get: function () { return entities_1.useFetchEntity; } });
99
105
  Object.defineProperty(exports, "useFetchEntityByForeignId", { enumerable: true, get: function () { return entities_1.useFetchEntityByForeignId; } });
100
106
  Object.defineProperty(exports, "useFetchEntityByShortId", { enumerable: true, get: function () { return entities_1.useFetchEntityByShortId; } });
101
107
  Object.defineProperty(exports, "useFetchManyEntities", { enumerable: true, get: function () { return entities_1.useFetchManyEntities; } });
102
108
  Object.defineProperty(exports, "useIncrementEntityViews", { enumerable: true, get: function () { return entities_1.useIncrementEntityViews; } });
103
- Object.defineProperty(exports, "useRemoveEntityDownvote", { enumerable: true, get: function () { return entities_1.useRemoveEntityDownvote; } });
104
- Object.defineProperty(exports, "useRemoveEntityUpvote", { enumerable: true, get: function () { return entities_1.useRemoveEntityUpvote; } });
109
+ Object.defineProperty(exports, "useFetchManyEntitiesWrapper", { enumerable: true, get: function () { return entities_1.useFetchManyEntitiesWrapper; } });
105
110
  Object.defineProperty(exports, "useUpdateEntity", { enumerable: true, get: function () { return entities_1.useUpdateEntity; } });
106
- Object.defineProperty(exports, "useUpvoteEntity", { enumerable: true, get: function () { return entities_1.useUpvoteEntity; } });
107
111
  // -- entity lists
108
112
  var entity_lists_1 = require("./hooks/entity-lists");
109
113
  Object.defineProperty(exports, "useEntityList", { enumerable: true, get: function () { return entity_lists_1.useEntityList; } });
@@ -125,6 +129,7 @@ Object.defineProperty(exports, "useDeleteSpace", { enumerable: true, get: functi
125
129
  Object.defineProperty(exports, "useJoinSpace", { enumerable: true, get: function () { return spaces_1.useJoinSpace; } });
126
130
  Object.defineProperty(exports, "useLeaveSpace", { enumerable: true, get: function () { return spaces_1.useLeaveSpace; } });
127
131
  Object.defineProperty(exports, "useFetchSpaceMembers", { enumerable: true, get: function () { return spaces_1.useFetchSpaceMembers; } });
132
+ Object.defineProperty(exports, "useFetchSpaceTeam", { enumerable: true, get: function () { return spaces_1.useFetchSpaceTeam; } });
128
133
  Object.defineProperty(exports, "useFetchMySpaces", { enumerable: true, get: function () { return spaces_1.useFetchMySpaces; } });
129
134
  Object.defineProperty(exports, "useUpdateMemberRole", { enumerable: true, get: function () { return spaces_1.useUpdateMemberRole; } });
130
135
  Object.defineProperty(exports, "useApproveMember", { enumerable: true, get: function () { return spaces_1.useApproveMember; } });
@@ -145,18 +150,26 @@ Object.defineProperty(exports, "useFetchComment", { enumerable: true, get: funct
145
150
  Object.defineProperty(exports, "useFetchCommentByForeignId", { enumerable: true, get: function () { return comments_1.useFetchCommentByForeignId; } });
146
151
  Object.defineProperty(exports, "useReplies", { enumerable: true, get: function () { return comments_1.useReplies; } });
147
152
  Object.defineProperty(exports, "useUpdateComment", { enumerable: true, get: function () { return comments_1.useUpdateComment; } });
148
- Object.defineProperty(exports, "useCommentVotes", { enumerable: true, get: function () { return comments_1.useCommentVotes; } });
149
153
  Object.defineProperty(exports, "useDeleteComment", { enumerable: true, get: function () { return comments_1.useDeleteComment; } });
150
154
  Object.defineProperty(exports, "useEntityComments", { enumerable: true, get: function () { return comments_1.useEntityComments; } });
151
- Object.defineProperty(exports, "useProfileComments", { enumerable: true, get: function () { return comments_1.useProfileComments; } });
155
+ Object.defineProperty(exports, "useFetchManyCommentsWrapper", { enumerable: true, get: function () { return comments_1.useFetchManyCommentsWrapper; } });
156
+ // -- reactions
157
+ var reactions_1 = require("./hooks/reactions");
158
+ Object.defineProperty(exports, "useFetchEntityReactions", { enumerable: true, get: function () { return reactions_1.useFetchEntityReactions; } });
159
+ Object.defineProperty(exports, "useFetchCommentReactions", { enumerable: true, get: function () { return reactions_1.useFetchCommentReactions; } });
160
+ Object.defineProperty(exports, "useFetchEntityReactionsWrapper", { enumerable: true, get: function () { return reactions_1.useFetchEntityReactionsWrapper; } });
161
+ Object.defineProperty(exports, "useFetchCommentReactionsWrapper", { enumerable: true, get: function () { return reactions_1.useFetchCommentReactionsWrapper; } });
162
+ Object.defineProperty(exports, "useAddReaction", { enumerable: true, get: function () { return reactions_1.useAddReaction; } });
163
+ Object.defineProperty(exports, "useRemoveReaction", { enumerable: true, get: function () { return reactions_1.useRemoveReaction; } });
164
+ Object.defineProperty(exports, "useReactionToggle", { enumerable: true, get: function () { return reactions_1.useReactionToggle; } });
152
165
  // -- users
153
166
  var users_1 = require("./hooks/users");
154
167
  Object.defineProperty(exports, "useFetchUser", { enumerable: true, get: function () { return users_1.useFetchUser; } });
155
168
  Object.defineProperty(exports, "useFetchUserByForeignId", { enumerable: true, get: function () { return users_1.useFetchUserByForeignId; } });
169
+ Object.defineProperty(exports, "useFetchUserByUsername", { enumerable: true, get: function () { return users_1.useFetchUserByUsername; } });
156
170
  Object.defineProperty(exports, "useCheckUsernameAvailability", { enumerable: true, get: function () { return users_1.useCheckUsernameAvailability; } });
157
171
  Object.defineProperty(exports, "useFetchUserSuggestions", { enumerable: true, get: function () { return users_1.useFetchUserSuggestions; } });
158
172
  Object.defineProperty(exports, "useMentions", { enumerable: true, get: function () { return users_1.useMentions; } });
159
- Object.defineProperty(exports, "useUpdateUser", { enumerable: true, get: function () { return users_1.useUpdateUser; } });
160
173
  // -- follows
161
174
  var follows_1 = require("./hooks/relationships/follows");
162
175
  Object.defineProperty(exports, "useFetchFollowStatus", { enumerable: true, get: function () { return follows_1.useFetchFollowStatus; } });
@@ -202,6 +215,7 @@ Object.defineProperty(exports, "useGetMetadata", { enumerable: true, get: functi
202
215
  // -- storage
203
216
  var storage_1 = require("./hooks/storage");
204
217
  Object.defineProperty(exports, "useUploadFile", { enumerable: true, get: function () { return storage_1.useUploadFile; } });
218
+ Object.defineProperty(exports, "useUploadImage", { enumerable: true, get: function () { return storage_1.useUploadImage; } });
205
219
  exports.AppNotification = __importStar(require("./interfaces/models/AppNotification"));
206
220
  var EntityListSortByOptions_1 = require("./interfaces/EntityListSortByOptions");
207
221
  Object.defineProperty(exports, "validateSortBy", { enumerable: true, get: function () { return EntityListSortByOptions_1.validateSortBy; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sBAAsB;AACtB,mDAAkD;AAAzC,0GAAA,WAAW,OAAA;AACpB,yDAAwD;AAA/C,gHAAA,cAAc,OAAA;AACvB,qEAAoE;AAA3D,0HAAA,mBAAmB,OAAA;AAC5B,qDAAoD;AAA3C,0GAAA,WAAW,OAAA;AACpB,+DA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A,2BAA2B,OAAA;AAC3B,uHAAA,wBAAwB,OAAA;AACxB,6HAAA,8BAA8B,OAAA;AAC9B,iIAAA,kCAAkC,OAAA;AAClC,0HAAA,2BAA2B,OAAA;AAC3B,+HAAA,gCAAgC,OAAA;AAChC,mHAAA,oBAAoB,OAAA;AAGtB,aAAa;AACb,2CAAkD;AAAzC,0GAAA,eAAe,OAAA;AACxB,2CAAuD;AAA9C,+GAAA,oBAAoB,OAAA;AAC7B,2CAA6D;AAApD,qHAAA,0BAA0B,OAAA;AACnC,2CAA8D;AAArD,sHAAA,2BAA2B,OAAA;AAEpC,aAAa;AACb,uCAA+C;AAAtC,uGAAA,cAAc,OAAA;AAEvB,aAAa;AACb,2CAAgE;AAAvD,wGAAA,aAAa,OAAA;AAAE,yGAAA,cAAc,OAAA;AAiBtC,uFAAuE;AA4DvE,gFAI8C;AAH5C,yHAAA,cAAc,OAAA;AACd,uIAAA,4BAA4B,OAAA;AAC5B,2HAAA,gBAAgB,OAAA"}
@@ -1,12 +1,10 @@
1
- import { Entity } from "./Entity";
2
- export interface List {
1
+ export interface Collection {
3
2
  id: string;
4
3
  projectId: string;
5
4
  userId: string;
6
5
  parentId: string | null;
7
6
  name: string;
8
- entityIds: string[];
9
- entities: Partial<Entity>[];
7
+ entityCount?: number;
10
8
  createdAt: Date;
11
9
  updatedAt: Date;
12
10
  }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Collection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Collection.js","sourceRoot":"","sources":["../../../../src/interfaces/models/Collection.ts"],"names":[],"mappings":""}
@@ -1,6 +1,7 @@
1
1
  import { Entity } from "./Entity";
2
2
  import { Mention } from "./Mention";
3
3
  import { User } from "./User";
4
+ import { ReactionCounts, ReactionType } from "./Reaction";
4
5
  export interface GifData {
5
6
  id: string;
6
7
  url: string;
@@ -16,13 +17,16 @@ export interface Comment {
16
17
  entityId: string;
17
18
  entity?: Entity;
18
19
  userId: string;
19
- user: User;
20
+ user?: User;
20
21
  parentId: string | null;
22
+ parentComment?: Comment;
21
23
  content: string | null;
22
24
  gif: GifData | null;
23
25
  mentions: Mention[];
24
26
  upvotes: string[];
25
27
  downvotes: string[];
28
+ reactionCounts: ReactionCounts;
29
+ userReaction?: ReactionType | null;
26
30
  repliesCount: number;
27
31
  metadata: Record<string, any>;
28
32
  createdAt: Date;
@@ -30,3 +34,6 @@ export interface Comment {
30
34
  deletedAt: Date | null;
31
35
  parentDeletedAt: Date | null;
32
36
  }
37
+ export type CommentInclude = "user" | "entity" | "space" | "parent";
38
+ export type CommentIncludeArray = CommentInclude[];
39
+ export type CommentIncludeParam = CommentInclude | CommentIncludeArray;
@@ -1,6 +1,8 @@
1
1
  import { Mention } from "./Mention";
2
2
  import { User } from "./User";
3
3
  import { Space } from "./Space";
4
+ import { ReactionCounts, ReactionType } from "./Reaction";
5
+ import { File } from "./File";
4
6
  export interface TopComment {
5
7
  id: string;
6
8
  user: User;
@@ -8,6 +10,7 @@ export interface TopComment {
8
10
  content: string;
9
11
  createdAt: string;
10
12
  }
13
+ export type EntityFile = File;
11
14
  export interface Entity {
12
15
  id: string;
13
16
  foreignId: string | null;
@@ -21,9 +24,12 @@ export interface Entity {
21
24
  content: string | null;
22
25
  mentions: Mention[];
23
26
  attachments: Record<string, any>[];
27
+ files?: EntityFile[];
24
28
  keywords: string[];
25
29
  upvotes: string[];
26
30
  downvotes: string[];
31
+ reactionCounts: ReactionCounts;
32
+ userReaction?: ReactionType | null;
27
33
  repliesCount: number;
28
34
  views: number;
29
35
  score: number;
@@ -34,10 +40,11 @@ export interface Entity {
34
40
  } | null;
35
41
  metadata: Record<string, any>;
36
42
  topComment: TopComment | null;
43
+ isSaved?: boolean;
37
44
  createdAt: Date;
38
45
  updatedAt: Date;
39
46
  deletedAt: Date | null;
40
47
  }
41
- export type EntityInclude = "space" | "user" | "topComment";
48
+ export type EntityInclude = "space" | "user" | "topComment" | "saved" | "files";
42
49
  export type EntityIncludeArray = EntityInclude[];
43
50
  export type EntityIncludeParam = string | EntityIncludeArray;
@@ -0,0 +1,38 @@
1
+ export interface FileImageVariant {
2
+ path: string;
3
+ publicPath: string;
4
+ width: number;
5
+ height: number;
6
+ size: number;
7
+ format: string;
8
+ }
9
+ export interface FileImage {
10
+ fileId: string;
11
+ originalWidth: number;
12
+ originalHeight: number;
13
+ variants: Record<string, FileImageVariant>;
14
+ processingStatus: "completed" | "failed";
15
+ processingError: string | null;
16
+ format: string;
17
+ quality: number;
18
+ exifStripped: boolean;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ }
22
+ export interface File {
23
+ id: string;
24
+ projectId: string;
25
+ userId: string | null;
26
+ entityId: string | null;
27
+ commentId: string | null;
28
+ spaceId: string | null;
29
+ type: "image" | "video" | "document" | "other";
30
+ originalPath: string;
31
+ originalSize: number;
32
+ originalMimeType: string;
33
+ position: number;
34
+ metadata: Record<string, any>;
35
+ image?: FileImage;
36
+ createdAt: Date;
37
+ updatedAt: Date;
38
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=List.js.map
3
+ //# sourceMappingURL=File.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"File.js","sourceRoot":"","sources":["../../../../src/interfaces/models/File.ts"],"names":[],"mappings":""}
@@ -0,0 +1,74 @@
1
+ export interface ImageVariant {
2
+ path: string;
3
+ publicPath: string;
4
+ width: number;
5
+ height: number;
6
+ size: number;
7
+ format: string;
8
+ }
9
+ export interface Image {
10
+ fileId: string;
11
+ imageId: string;
12
+ status: "completed" | "failed";
13
+ original: ImageVariant;
14
+ variants: Record<string, ImageVariant>;
15
+ metadata: {
16
+ originalFormat: string;
17
+ originalSize: number;
18
+ exifStripped: boolean;
19
+ processingTime: number;
20
+ };
21
+ createdAt: string;
22
+ }
23
+ interface BaseImageOptions {
24
+ quality?: number;
25
+ format?: "webp" | "jpeg" | "png" | "original";
26
+ stripExif?: boolean;
27
+ pathParts?: string[];
28
+ entityId?: string;
29
+ commentId?: string;
30
+ spaceId?: string;
31
+ onProgress?: (progress: number) => void;
32
+ }
33
+ export interface ExactDimensionsMode extends BaseImageOptions {
34
+ mode: "exact-dimensions";
35
+ dimensions: Record<string, {
36
+ width: number;
37
+ height: number;
38
+ }>;
39
+ fit?: "cover" | "contain" | "inside" | "outside";
40
+ }
41
+ export interface AspectRatioWidthMode extends BaseImageOptions {
42
+ mode: "aspect-ratio-width-based";
43
+ aspectRatio: {
44
+ width: number;
45
+ height: number;
46
+ };
47
+ widths: Record<string, number>;
48
+ fit?: "cover" | "contain" | "inside" | "outside";
49
+ }
50
+ export interface AspectRatioHeightMode extends BaseImageOptions {
51
+ mode: "aspect-ratio-height-based";
52
+ aspectRatio: {
53
+ width: number;
54
+ height: number;
55
+ };
56
+ heights: Record<string, number>;
57
+ fit?: "cover" | "contain" | "inside" | "outside";
58
+ }
59
+ export interface OriginalAspectMode extends BaseImageOptions {
60
+ mode: "original-aspect";
61
+ sizes: Record<string, number>;
62
+ fit?: "inside" | "outside";
63
+ }
64
+ export interface MultiAspectRatioMode extends BaseImageOptions {
65
+ mode: "multi-aspect-ratio";
66
+ aspectRatios: Array<{
67
+ width: number;
68
+ height: number;
69
+ }>;
70
+ sizes: Record<string, number>;
71
+ fit?: "cover" | "contain" | "inside" | "outside";
72
+ }
73
+ export type UploadImageOptions = ExactDimensionsMode | AspectRatioWidthMode | AspectRatioHeightMode | OriginalAspectMode | MultiAspectRatioMode;
74
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Image.js","sourceRoot":"","sources":["../../../../src/interfaces/models/Image.ts"],"names":[],"mappings":""}