@replyke/core 6.1.1 → 6.2.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/dist/cjs/context/index.d.ts +1 -0
  2. package/dist/cjs/context/index.js +3 -1
  3. package/dist/cjs/context/index.js.map +1 -1
  4. package/dist/cjs/context/space-context.d.ts +9 -0
  5. package/dist/cjs/context/space-context.js +35 -0
  6. package/dist/cjs/context/space-context.js.map +1 -0
  7. package/dist/cjs/hooks/crypto/useSignTestingJwt.d.ts +1 -2
  8. package/dist/cjs/hooks/crypto/useSignTestingJwt.js +17 -10
  9. package/dist/cjs/hooks/crypto/useSignTestingJwt.js.map +1 -1
  10. package/dist/cjs/hooks/projects/useProjectData.js +1 -1
  11. package/dist/cjs/hooks/projects/useProjectData.js.map +1 -1
  12. package/dist/cjs/hooks/reports/index.d.ts +3 -0
  13. package/dist/cjs/hooks/reports/index.js +7 -1
  14. package/dist/cjs/hooks/reports/index.js.map +1 -1
  15. package/dist/cjs/hooks/reports/useFetchSpaceReports.d.ts +38 -0
  16. package/dist/cjs/hooks/reports/useFetchSpaceReports.js +96 -0
  17. package/dist/cjs/hooks/reports/useFetchSpaceReports.js.map +1 -0
  18. package/dist/cjs/hooks/reports/useHandleSpaceCommentReport.d.ts +30 -0
  19. package/dist/cjs/hooks/reports/useHandleSpaceCommentReport.js +92 -0
  20. package/dist/cjs/hooks/reports/useHandleSpaceCommentReport.js.map +1 -0
  21. package/dist/cjs/hooks/reports/useHandleSpaceEntityReport.d.ts +32 -0
  22. package/dist/cjs/hooks/reports/useHandleSpaceEntityReport.js +94 -0
  23. package/dist/cjs/hooks/reports/useHandleSpaceEntityReport.js.map +1 -0
  24. package/dist/cjs/hooks/space-lists/index.d.ts +3 -0
  25. package/dist/cjs/hooks/space-lists/index.js +11 -0
  26. package/dist/cjs/hooks/space-lists/index.js.map +1 -0
  27. package/dist/cjs/hooks/space-lists/useSpaceList.d.ts +36 -0
  28. package/dist/cjs/hooks/space-lists/useSpaceList.js +293 -0
  29. package/dist/cjs/hooks/space-lists/useSpaceList.js.map +1 -0
  30. package/dist/cjs/hooks/space-lists/useSpaceListActions.d.ts +33 -0
  31. package/dist/cjs/hooks/space-lists/useSpaceListActions.js +210 -0
  32. package/dist/cjs/hooks/space-lists/useSpaceListActions.js.map +1 -0
  33. package/dist/cjs/hooks/spaces/index.d.ts +22 -0
  34. package/dist/cjs/hooks/spaces/index.js +51 -0
  35. package/dist/cjs/hooks/spaces/index.js.map +1 -0
  36. package/dist/cjs/hooks/spaces/useApproveMember.d.ts +7 -0
  37. package/dist/cjs/hooks/spaces/useApproveMember.js +71 -0
  38. package/dist/cjs/hooks/spaces/useApproveMember.js.map +1 -0
  39. package/dist/cjs/hooks/spaces/useCreateSpace.d.ts +15 -0
  40. package/dist/cjs/hooks/spaces/useCreateSpace.js +70 -0
  41. package/dist/cjs/hooks/spaces/useCreateSpace.js.map +1 -0
  42. package/dist/cjs/hooks/spaces/useDeclineMember.d.ts +7 -0
  43. package/dist/cjs/hooks/spaces/useDeclineMember.js +71 -0
  44. package/dist/cjs/hooks/spaces/useDeclineMember.js.map +1 -0
  45. package/dist/cjs/hooks/spaces/useDeleteSpace.d.ts +5 -0
  46. package/dist/cjs/hooks/spaces/useDeleteSpace.js +71 -0
  47. package/dist/cjs/hooks/spaces/useDeleteSpace.js.map +1 -0
  48. package/dist/cjs/hooks/spaces/useFetchMySpaces.d.ts +8 -0
  49. package/dist/cjs/hooks/spaces/useFetchMySpaces.js +85 -0
  50. package/dist/cjs/hooks/spaces/useFetchMySpaces.js.map +1 -0
  51. package/dist/cjs/hooks/spaces/useFetchSpace.d.ts +5 -0
  52. package/dist/cjs/hooks/spaces/useFetchSpace.js +71 -0
  53. package/dist/cjs/hooks/spaces/useFetchSpace.js.map +1 -0
  54. package/dist/cjs/hooks/spaces/useFetchSpaceBreadcrumb.d.ts +5 -0
  55. package/dist/cjs/hooks/spaces/useFetchSpaceBreadcrumb.js +71 -0
  56. package/dist/cjs/hooks/spaces/useFetchSpaceBreadcrumb.js.map +1 -0
  57. package/dist/cjs/hooks/spaces/useFetchSpaceByShortId.d.ts +5 -0
  58. package/dist/cjs/hooks/spaces/useFetchSpaceByShortId.js +71 -0
  59. package/dist/cjs/hooks/spaces/useFetchSpaceByShortId.js.map +1 -0
  60. package/dist/cjs/hooks/spaces/useFetchSpaceBySlug.d.ts +5 -0
  61. package/dist/cjs/hooks/spaces/useFetchSpaceBySlug.js +71 -0
  62. package/dist/cjs/hooks/spaces/useFetchSpaceBySlug.js.map +1 -0
  63. package/dist/cjs/hooks/spaces/useFetchSpaceChildren.d.ts +8 -0
  64. package/dist/cjs/hooks/spaces/useFetchSpaceChildren.js +70 -0
  65. package/dist/cjs/hooks/spaces/useFetchSpaceChildren.js.map +1 -0
  66. package/dist/cjs/hooks/spaces/useFetchSpaceMembers.d.ts +10 -0
  67. package/dist/cjs/hooks/spaces/useFetchSpaceMembers.js +82 -0
  68. package/dist/cjs/hooks/spaces/useFetchSpaceMembers.js.map +1 -0
  69. package/dist/cjs/hooks/spaces/useJoinSpace.d.ts +5 -0
  70. package/dist/cjs/hooks/spaces/useJoinSpace.js +71 -0
  71. package/dist/cjs/hooks/spaces/useJoinSpace.js.map +1 -0
  72. package/dist/cjs/hooks/spaces/useLeaveSpace.d.ts +5 -0
  73. package/dist/cjs/hooks/spaces/useLeaveSpace.js +71 -0
  74. package/dist/cjs/hooks/spaces/useLeaveSpace.js.map +1 -0
  75. package/dist/cjs/hooks/spaces/useRemoveMember.d.ts +9 -0
  76. package/dist/cjs/hooks/spaces/useRemoveMember.js +71 -0
  77. package/dist/cjs/hooks/spaces/useRemoveMember.js.map +1 -0
  78. package/dist/cjs/hooks/spaces/useSpace.d.ts +3 -0
  79. package/dist/cjs/hooks/spaces/useSpace.js +13 -0
  80. package/dist/cjs/hooks/spaces/useSpace.js.map +1 -0
  81. package/dist/cjs/hooks/spaces/useSpaceData.d.ts +32 -0
  82. package/dist/cjs/hooks/spaces/useSpaceData.js +358 -0
  83. package/dist/cjs/hooks/spaces/useSpaceData.js.map +1 -0
  84. package/dist/cjs/hooks/spaces/useSpacePermissions.d.ts +18 -0
  85. package/dist/cjs/hooks/spaces/useSpacePermissions.js +53 -0
  86. package/dist/cjs/hooks/spaces/useSpacePermissions.js.map +1 -0
  87. package/dist/cjs/hooks/spaces/useUpdateMemberRole.d.ts +9 -0
  88. package/dist/cjs/hooks/spaces/useUpdateMemberRole.js +71 -0
  89. package/dist/cjs/hooks/spaces/useUpdateMemberRole.js.map +1 -0
  90. package/dist/cjs/hooks/spaces/useUpdateSpace.d.ts +17 -0
  91. package/dist/cjs/hooks/spaces/useUpdateSpace.js +71 -0
  92. package/dist/cjs/hooks/spaces/useUpdateSpace.js.map +1 -0
  93. package/dist/cjs/index.d.ts +10 -1
  94. package/dist/cjs/index.js +35 -2
  95. package/dist/cjs/index.js.map +1 -1
  96. package/dist/cjs/interfaces/SpaceBreadcrumb.d.ts +5 -0
  97. package/dist/cjs/interfaces/SpaceBreadcrumb.js +3 -0
  98. package/dist/cjs/interfaces/SpaceBreadcrumb.js.map +1 -0
  99. package/dist/cjs/interfaces/SpaceListSortByOptions.d.ts +7 -0
  100. package/dist/cjs/interfaces/SpaceListSortByOptions.js +3 -0
  101. package/dist/cjs/interfaces/SpaceListSortByOptions.js.map +1 -0
  102. package/dist/cjs/interfaces/models/Space.d.ts +122 -0
  103. package/dist/cjs/interfaces/models/Space.js +3 -0
  104. package/dist/cjs/interfaces/models/Space.js.map +1 -0
  105. package/dist/cjs/interfaces/models/SpaceMember.d.ts +27 -0
  106. package/dist/cjs/interfaces/models/SpaceMember.js +3 -0
  107. package/dist/cjs/interfaces/models/SpaceMember.js.map +1 -0
  108. package/dist/cjs/interfaces/models/User.d.ts +1 -1
  109. package/dist/cjs/store/api/appNotificationsApi.d.ts +741 -221
  110. package/dist/cjs/store/api/baseApi.d.ts +1 -1
  111. package/dist/cjs/store/api/baseApi.js +2 -0
  112. package/dist/cjs/store/api/baseApi.js.map +1 -1
  113. package/dist/cjs/store/api/entityListsApi.d.ts +387 -127
  114. package/dist/cjs/store/api/listsApi.d.ts +786 -266
  115. package/dist/cjs/store/api/spacesApi.d.ts +10750 -0
  116. package/dist/cjs/store/api/spacesApi.js +501 -0
  117. package/dist/cjs/store/api/spacesApi.js.map +1 -0
  118. package/dist/cjs/store/api/userApi.d.ts +3 -3
  119. package/dist/cjs/store/index.d.ts +4 -2
  120. package/dist/cjs/store/rootReducer.d.ts +4 -2
  121. package/dist/cjs/store/rootReducer.js +2 -0
  122. package/dist/cjs/store/rootReducer.js.map +1 -1
  123. package/dist/cjs/store/slices/appNotificationsSlice.d.ts +2365 -11
  124. package/dist/cjs/store/slices/entityListsSlice.d.ts +1608 -12
  125. package/dist/cjs/store/slices/listsSlice.d.ts +1414 -14
  126. package/dist/cjs/store/slices/spaceListsSlice.d.ts +850 -0
  127. package/dist/cjs/store/slices/spaceListsSlice.js +226 -0
  128. package/dist/cjs/store/slices/spaceListsSlice.js.map +1 -0
  129. package/dist/cjs/store/slices/userSlice.d.ts +248 -8
  130. package/dist/esm/context/index.d.ts +1 -0
  131. package/dist/esm/context/index.js +1 -0
  132. package/dist/esm/context/index.js.map +1 -1
  133. package/dist/esm/context/space-context.d.ts +9 -0
  134. package/dist/esm/context/space-context.js +28 -0
  135. package/dist/esm/context/space-context.js.map +1 -0
  136. package/dist/esm/hooks/crypto/useSignTestingJwt.d.ts +1 -2
  137. package/dist/esm/hooks/crypto/useSignTestingJwt.js +17 -10
  138. package/dist/esm/hooks/crypto/useSignTestingJwt.js.map +1 -1
  139. package/dist/esm/hooks/projects/useProjectData.js +1 -1
  140. package/dist/esm/hooks/projects/useProjectData.js.map +1 -1
  141. package/dist/esm/hooks/reports/index.d.ts +3 -0
  142. package/dist/esm/hooks/reports/index.js +3 -0
  143. package/dist/esm/hooks/reports/index.js.map +1 -1
  144. package/dist/esm/hooks/reports/useFetchSpaceReports.d.ts +38 -0
  145. package/dist/esm/hooks/reports/useFetchSpaceReports.js +91 -0
  146. package/dist/esm/hooks/reports/useFetchSpaceReports.js.map +1 -0
  147. package/dist/esm/hooks/reports/useHandleSpaceCommentReport.d.ts +30 -0
  148. package/dist/esm/hooks/reports/useHandleSpaceCommentReport.js +87 -0
  149. package/dist/esm/hooks/reports/useHandleSpaceCommentReport.js.map +1 -0
  150. package/dist/esm/hooks/reports/useHandleSpaceEntityReport.d.ts +32 -0
  151. package/dist/esm/hooks/reports/useHandleSpaceEntityReport.js +89 -0
  152. package/dist/esm/hooks/reports/useHandleSpaceEntityReport.js.map +1 -0
  153. package/dist/esm/hooks/space-lists/index.d.ts +3 -0
  154. package/dist/esm/hooks/space-lists/index.js +3 -0
  155. package/dist/esm/hooks/space-lists/index.js.map +1 -0
  156. package/dist/esm/hooks/space-lists/useSpaceList.d.ts +36 -0
  157. package/dist/esm/hooks/space-lists/useSpaceList.js +288 -0
  158. package/dist/esm/hooks/space-lists/useSpaceList.js.map +1 -0
  159. package/dist/esm/hooks/space-lists/useSpaceListActions.d.ts +33 -0
  160. package/dist/esm/hooks/space-lists/useSpaceListActions.js +204 -0
  161. package/dist/esm/hooks/space-lists/useSpaceListActions.js.map +1 -0
  162. package/dist/esm/hooks/spaces/index.d.ts +22 -0
  163. package/dist/esm/hooks/spaces/index.js +26 -0
  164. package/dist/esm/hooks/spaces/index.js.map +1 -0
  165. package/dist/esm/hooks/spaces/useApproveMember.d.ts +7 -0
  166. package/dist/esm/hooks/spaces/useApproveMember.js +66 -0
  167. package/dist/esm/hooks/spaces/useApproveMember.js.map +1 -0
  168. package/dist/esm/hooks/spaces/useCreateSpace.d.ts +15 -0
  169. package/dist/esm/hooks/spaces/useCreateSpace.js +65 -0
  170. package/dist/esm/hooks/spaces/useCreateSpace.js.map +1 -0
  171. package/dist/esm/hooks/spaces/useDeclineMember.d.ts +7 -0
  172. package/dist/esm/hooks/spaces/useDeclineMember.js +66 -0
  173. package/dist/esm/hooks/spaces/useDeclineMember.js.map +1 -0
  174. package/dist/esm/hooks/spaces/useDeleteSpace.d.ts +5 -0
  175. package/dist/esm/hooks/spaces/useDeleteSpace.js +66 -0
  176. package/dist/esm/hooks/spaces/useDeleteSpace.js.map +1 -0
  177. package/dist/esm/hooks/spaces/useFetchMySpaces.d.ts +8 -0
  178. package/dist/esm/hooks/spaces/useFetchMySpaces.js +80 -0
  179. package/dist/esm/hooks/spaces/useFetchMySpaces.js.map +1 -0
  180. package/dist/esm/hooks/spaces/useFetchSpace.d.ts +5 -0
  181. package/dist/esm/hooks/spaces/useFetchSpace.js +66 -0
  182. package/dist/esm/hooks/spaces/useFetchSpace.js.map +1 -0
  183. package/dist/esm/hooks/spaces/useFetchSpaceBreadcrumb.d.ts +5 -0
  184. package/dist/esm/hooks/spaces/useFetchSpaceBreadcrumb.js +66 -0
  185. package/dist/esm/hooks/spaces/useFetchSpaceBreadcrumb.js.map +1 -0
  186. package/dist/esm/hooks/spaces/useFetchSpaceByShortId.d.ts +5 -0
  187. package/dist/esm/hooks/spaces/useFetchSpaceByShortId.js +66 -0
  188. package/dist/esm/hooks/spaces/useFetchSpaceByShortId.js.map +1 -0
  189. package/dist/esm/hooks/spaces/useFetchSpaceBySlug.d.ts +5 -0
  190. package/dist/esm/hooks/spaces/useFetchSpaceBySlug.js +66 -0
  191. package/dist/esm/hooks/spaces/useFetchSpaceBySlug.js.map +1 -0
  192. package/dist/esm/hooks/spaces/useFetchSpaceChildren.d.ts +8 -0
  193. package/dist/esm/hooks/spaces/useFetchSpaceChildren.js +65 -0
  194. package/dist/esm/hooks/spaces/useFetchSpaceChildren.js.map +1 -0
  195. package/dist/esm/hooks/spaces/useFetchSpaceMembers.d.ts +10 -0
  196. package/dist/esm/hooks/spaces/useFetchSpaceMembers.js +77 -0
  197. package/dist/esm/hooks/spaces/useFetchSpaceMembers.js.map +1 -0
  198. package/dist/esm/hooks/spaces/useJoinSpace.d.ts +5 -0
  199. package/dist/esm/hooks/spaces/useJoinSpace.js +66 -0
  200. package/dist/esm/hooks/spaces/useJoinSpace.js.map +1 -0
  201. package/dist/esm/hooks/spaces/useLeaveSpace.d.ts +5 -0
  202. package/dist/esm/hooks/spaces/useLeaveSpace.js +66 -0
  203. package/dist/esm/hooks/spaces/useLeaveSpace.js.map +1 -0
  204. package/dist/esm/hooks/spaces/useRemoveMember.d.ts +9 -0
  205. package/dist/esm/hooks/spaces/useRemoveMember.js +66 -0
  206. package/dist/esm/hooks/spaces/useRemoveMember.js.map +1 -0
  207. package/dist/esm/hooks/spaces/useSpace.d.ts +3 -0
  208. package/dist/esm/hooks/spaces/useSpace.js +11 -0
  209. package/dist/esm/hooks/spaces/useSpace.js.map +1 -0
  210. package/dist/esm/hooks/spaces/useSpaceData.d.ts +32 -0
  211. package/dist/esm/hooks/spaces/useSpaceData.js +353 -0
  212. package/dist/esm/hooks/spaces/useSpaceData.js.map +1 -0
  213. package/dist/esm/hooks/spaces/useSpacePermissions.d.ts +18 -0
  214. package/dist/esm/hooks/spaces/useSpacePermissions.js +51 -0
  215. package/dist/esm/hooks/spaces/useSpacePermissions.js.map +1 -0
  216. package/dist/esm/hooks/spaces/useUpdateMemberRole.d.ts +9 -0
  217. package/dist/esm/hooks/spaces/useUpdateMemberRole.js +66 -0
  218. package/dist/esm/hooks/spaces/useUpdateMemberRole.js.map +1 -0
  219. package/dist/esm/hooks/spaces/useUpdateSpace.d.ts +17 -0
  220. package/dist/esm/hooks/spaces/useUpdateSpace.js +66 -0
  221. package/dist/esm/hooks/spaces/useUpdateSpace.js.map +1 -0
  222. package/dist/esm/index.d.ts +10 -1
  223. package/dist/esm/index.js +8 -1
  224. package/dist/esm/index.js.map +1 -1
  225. package/dist/esm/interfaces/SpaceBreadcrumb.d.ts +5 -0
  226. package/dist/esm/interfaces/SpaceBreadcrumb.js +2 -0
  227. package/dist/esm/interfaces/SpaceBreadcrumb.js.map +1 -0
  228. package/dist/esm/interfaces/SpaceListSortByOptions.d.ts +7 -0
  229. package/dist/esm/interfaces/SpaceListSortByOptions.js +2 -0
  230. package/dist/esm/interfaces/SpaceListSortByOptions.js.map +1 -0
  231. package/dist/esm/interfaces/models/Space.d.ts +122 -0
  232. package/dist/esm/interfaces/models/Space.js +2 -0
  233. package/dist/esm/interfaces/models/Space.js.map +1 -0
  234. package/dist/esm/interfaces/models/SpaceMember.d.ts +27 -0
  235. package/dist/esm/interfaces/models/SpaceMember.js +2 -0
  236. package/dist/esm/interfaces/models/SpaceMember.js.map +1 -0
  237. package/dist/esm/interfaces/models/User.d.ts +1 -1
  238. package/dist/esm/store/api/appNotificationsApi.d.ts +741 -221
  239. package/dist/esm/store/api/baseApi.d.ts +1 -1
  240. package/dist/esm/store/api/baseApi.js +2 -0
  241. package/dist/esm/store/api/baseApi.js.map +1 -1
  242. package/dist/esm/store/api/entityListsApi.d.ts +387 -127
  243. package/dist/esm/store/api/listsApi.d.ts +786 -266
  244. package/dist/esm/store/api/spacesApi.d.ts +10750 -0
  245. package/dist/esm/store/api/spacesApi.js +498 -0
  246. package/dist/esm/store/api/spacesApi.js.map +1 -0
  247. package/dist/esm/store/api/userApi.d.ts +3 -3
  248. package/dist/esm/store/index.d.ts +4 -2
  249. package/dist/esm/store/rootReducer.d.ts +4 -2
  250. package/dist/esm/store/rootReducer.js +2 -0
  251. package/dist/esm/store/rootReducer.js.map +1 -1
  252. package/dist/esm/store/slices/appNotificationsSlice.d.ts +2365 -11
  253. package/dist/esm/store/slices/entityListsSlice.d.ts +1608 -12
  254. package/dist/esm/store/slices/listsSlice.d.ts +1414 -14
  255. package/dist/esm/store/slices/spaceListsSlice.d.ts +850 -0
  256. package/dist/esm/store/slices/spaceListsSlice.js +223 -0
  257. package/dist/esm/store/slices/spaceListsSlice.js.map +1 -0
  258. package/dist/esm/store/slices/userSlice.d.ts +248 -8
  259. package/package.json +1 -1
@@ -13,26 +13,1426 @@ export interface ListsState {
13
13
  currentProjectId?: string;
14
14
  }
15
15
  export declare const listsSlice: import("@reduxjs/toolkit").Slice<ListsState, {
16
- setProjectContext: (state: import("@reduxjs/toolkit").WritableDraft<ListsState>, action: PayloadAction<string>) => void;
17
- setLoading: (state: import("@reduxjs/toolkit").WritableDraft<ListsState>, action: PayloadAction<boolean>) => void;
18
- openList: (state: import("@reduxjs/toolkit").WritableDraft<ListsState>, action: PayloadAction<List>) => void;
19
- goBack: (state: import("@reduxjs/toolkit").WritableDraft<ListsState>) => void;
20
- goToRoot: (state: import("@reduxjs/toolkit").WritableDraft<ListsState>) => void;
21
- setCurrentList: (state: import("@reduxjs/toolkit").WritableDraft<ListsState>, action: PayloadAction<List | null>) => void;
22
- setSubLists: (state: import("@reduxjs/toolkit").WritableDraft<ListsState>, action: PayloadAction<{
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
+ user?: {
32
+ id: string;
33
+ projectId: string;
34
+ foreignId: string | null;
35
+ role: import("../..").UserRole;
36
+ name: string | null;
37
+ username: string | null;
38
+ avatar: string | null;
39
+ bio: string | null;
40
+ birthdate: Date | null;
41
+ metadata: {
42
+ [x: string]: any;
43
+ };
44
+ reputation: number;
45
+ createdAt: Date;
46
+ location: {
47
+ type: "Point";
48
+ coordinates: [number, number];
49
+ } | null;
50
+ } | null | undefined;
51
+ title?: string | null | undefined;
52
+ content?: string | null | undefined;
53
+ mentions?: {
54
+ id: string;
55
+ foreignId?: string | null | undefined;
56
+ username: string;
57
+ }[] | undefined;
58
+ attachments?: {
59
+ [x: string]: any;
60
+ }[] | undefined;
61
+ keywords?: string[] | undefined;
62
+ upvotes?: string[] | undefined;
63
+ downvotes?: string[] | undefined;
64
+ repliesCount?: number | undefined;
65
+ views?: number | undefined;
66
+ score?: number | undefined;
67
+ scoreUpdatedAt?: Date | undefined;
68
+ location?: {
69
+ type: "Point";
70
+ coordinates: [number, number];
71
+ } | null | undefined;
72
+ metadata?: {
73
+ [x: string]: any;
74
+ } | undefined;
75
+ topComment?: {
76
+ id: string;
77
+ user: {
78
+ id: string;
79
+ projectId: string;
80
+ foreignId: string | null;
81
+ role: import("../..").UserRole;
82
+ name: string | null;
83
+ username: string | null;
84
+ avatar: string | null;
85
+ bio: string | null;
86
+ birthdate: Date | null;
87
+ metadata: {
88
+ [x: string]: any;
89
+ };
90
+ reputation: number;
91
+ createdAt: Date;
92
+ location: {
93
+ type: "Point";
94
+ coordinates: [number, number];
95
+ } | null;
96
+ };
97
+ upvotesCount: number;
98
+ content: string;
99
+ createdAt: string;
100
+ } | null | undefined;
101
+ createdAt?: Date | undefined;
102
+ updatedAt?: Date | undefined;
103
+ deletedAt?: Date | null | undefined;
104
+ }[];
105
+ createdAt: Date;
106
+ updatedAt: Date;
107
+ };
108
+ };
109
+ sublistsMap: {
110
+ [x: string]: string[];
111
+ };
112
+ currentListId: string | null;
113
+ listHistory: string[];
114
+ loading: boolean;
115
+ currentProjectId?: string | undefined;
116
+ }, action: PayloadAction<string>) => void;
117
+ setLoading: (state: {
118
+ listsById: {
119
+ [x: string]: {
120
+ id: string;
121
+ projectId: string;
122
+ userId: string;
123
+ parentId: string | null;
124
+ name: string;
125
+ entityIds: string[];
126
+ entities: {
127
+ id?: string | undefined;
128
+ foreignId?: string | null | undefined;
129
+ shortId?: string | undefined;
130
+ projectId?: string | undefined;
131
+ sourceId?: string | null | undefined;
132
+ user?: {
133
+ id: string;
134
+ projectId: string;
135
+ foreignId: string | null;
136
+ role: import("../..").UserRole;
137
+ name: string | null;
138
+ username: string | null;
139
+ avatar: string | null;
140
+ bio: string | null;
141
+ birthdate: Date | null;
142
+ metadata: {
143
+ [x: string]: any;
144
+ };
145
+ reputation: number;
146
+ createdAt: Date;
147
+ location: {
148
+ type: "Point";
149
+ coordinates: [number, number];
150
+ } | null;
151
+ } | null | undefined;
152
+ title?: string | null | undefined;
153
+ content?: string | null | undefined;
154
+ mentions?: {
155
+ id: string;
156
+ foreignId?: string | null | undefined;
157
+ username: string;
158
+ }[] | undefined;
159
+ attachments?: {
160
+ [x: string]: any;
161
+ }[] | undefined;
162
+ keywords?: string[] | undefined;
163
+ upvotes?: string[] | undefined;
164
+ downvotes?: string[] | undefined;
165
+ repliesCount?: number | undefined;
166
+ views?: number | undefined;
167
+ score?: number | undefined;
168
+ scoreUpdatedAt?: Date | undefined;
169
+ location?: {
170
+ type: "Point";
171
+ coordinates: [number, number];
172
+ } | null | undefined;
173
+ metadata?: {
174
+ [x: string]: any;
175
+ } | undefined;
176
+ topComment?: {
177
+ id: string;
178
+ user: {
179
+ id: string;
180
+ projectId: string;
181
+ foreignId: string | null;
182
+ role: import("../..").UserRole;
183
+ name: string | null;
184
+ username: string | null;
185
+ avatar: string | null;
186
+ bio: string | null;
187
+ birthdate: Date | null;
188
+ metadata: {
189
+ [x: string]: any;
190
+ };
191
+ reputation: number;
192
+ createdAt: Date;
193
+ location: {
194
+ type: "Point";
195
+ coordinates: [number, number];
196
+ } | null;
197
+ };
198
+ upvotesCount: number;
199
+ content: string;
200
+ createdAt: string;
201
+ } | null | undefined;
202
+ createdAt?: Date | undefined;
203
+ updatedAt?: Date | undefined;
204
+ deletedAt?: Date | null | undefined;
205
+ }[];
206
+ createdAt: Date;
207
+ updatedAt: Date;
208
+ };
209
+ };
210
+ sublistsMap: {
211
+ [x: string]: string[];
212
+ };
213
+ currentListId: string | null;
214
+ listHistory: string[];
215
+ loading: boolean;
216
+ currentProjectId?: string | undefined;
217
+ }, action: PayloadAction<boolean>) => void;
218
+ openList: (state: {
219
+ listsById: {
220
+ [x: string]: {
221
+ id: string;
222
+ projectId: string;
223
+ userId: string;
224
+ parentId: string | null;
225
+ name: string;
226
+ entityIds: string[];
227
+ entities: {
228
+ id?: string | undefined;
229
+ foreignId?: string | null | undefined;
230
+ shortId?: string | undefined;
231
+ projectId?: string | undefined;
232
+ sourceId?: string | null | undefined;
233
+ user?: {
234
+ id: string;
235
+ projectId: string;
236
+ foreignId: string | null;
237
+ role: import("../..").UserRole;
238
+ name: string | null;
239
+ username: string | null;
240
+ avatar: string | null;
241
+ bio: string | null;
242
+ birthdate: Date | null;
243
+ metadata: {
244
+ [x: string]: any;
245
+ };
246
+ reputation: number;
247
+ createdAt: Date;
248
+ location: {
249
+ type: "Point";
250
+ coordinates: [number, number];
251
+ } | null;
252
+ } | null | undefined;
253
+ title?: string | null | undefined;
254
+ content?: string | null | undefined;
255
+ mentions?: {
256
+ id: string;
257
+ foreignId?: string | null | undefined;
258
+ username: string;
259
+ }[] | undefined;
260
+ attachments?: {
261
+ [x: string]: any;
262
+ }[] | undefined;
263
+ keywords?: string[] | undefined;
264
+ upvotes?: string[] | undefined;
265
+ downvotes?: string[] | undefined;
266
+ repliesCount?: number | undefined;
267
+ views?: number | undefined;
268
+ score?: number | undefined;
269
+ scoreUpdatedAt?: Date | undefined;
270
+ location?: {
271
+ type: "Point";
272
+ coordinates: [number, number];
273
+ } | null | undefined;
274
+ metadata?: {
275
+ [x: string]: any;
276
+ } | undefined;
277
+ topComment?: {
278
+ id: string;
279
+ user: {
280
+ id: string;
281
+ projectId: string;
282
+ foreignId: string | null;
283
+ role: import("../..").UserRole;
284
+ name: string | null;
285
+ username: string | null;
286
+ avatar: string | null;
287
+ bio: string | null;
288
+ birthdate: Date | null;
289
+ metadata: {
290
+ [x: string]: any;
291
+ };
292
+ reputation: number;
293
+ createdAt: Date;
294
+ location: {
295
+ type: "Point";
296
+ coordinates: [number, number];
297
+ } | null;
298
+ };
299
+ upvotesCount: number;
300
+ content: string;
301
+ createdAt: string;
302
+ } | null | undefined;
303
+ createdAt?: Date | undefined;
304
+ updatedAt?: Date | undefined;
305
+ deletedAt?: Date | null | undefined;
306
+ }[];
307
+ createdAt: Date;
308
+ updatedAt: Date;
309
+ };
310
+ };
311
+ sublistsMap: {
312
+ [x: string]: string[];
313
+ };
314
+ currentListId: string | null;
315
+ listHistory: string[];
316
+ loading: boolean;
317
+ currentProjectId?: string | undefined;
318
+ }, action: PayloadAction<List>) => void;
319
+ goBack: (state: {
320
+ listsById: {
321
+ [x: string]: {
322
+ id: string;
323
+ projectId: string;
324
+ userId: string;
325
+ parentId: string | null;
326
+ name: string;
327
+ entityIds: string[];
328
+ entities: {
329
+ id?: string | undefined;
330
+ foreignId?: string | null | undefined;
331
+ shortId?: string | undefined;
332
+ projectId?: string | undefined;
333
+ sourceId?: string | null | undefined;
334
+ user?: {
335
+ id: string;
336
+ projectId: string;
337
+ foreignId: string | null;
338
+ role: import("../..").UserRole;
339
+ name: string | null;
340
+ username: string | null;
341
+ avatar: string | null;
342
+ bio: string | null;
343
+ birthdate: Date | null;
344
+ metadata: {
345
+ [x: string]: any;
346
+ };
347
+ reputation: number;
348
+ createdAt: Date;
349
+ location: {
350
+ type: "Point";
351
+ coordinates: [number, number];
352
+ } | null;
353
+ } | null | undefined;
354
+ title?: string | null | undefined;
355
+ content?: string | null | undefined;
356
+ mentions?: {
357
+ id: string;
358
+ foreignId?: string | null | undefined;
359
+ username: string;
360
+ }[] | undefined;
361
+ attachments?: {
362
+ [x: string]: any;
363
+ }[] | undefined;
364
+ keywords?: string[] | undefined;
365
+ upvotes?: string[] | undefined;
366
+ downvotes?: string[] | undefined;
367
+ repliesCount?: number | undefined;
368
+ views?: number | undefined;
369
+ score?: number | undefined;
370
+ scoreUpdatedAt?: Date | undefined;
371
+ location?: {
372
+ type: "Point";
373
+ coordinates: [number, number];
374
+ } | null | undefined;
375
+ metadata?: {
376
+ [x: string]: any;
377
+ } | undefined;
378
+ topComment?: {
379
+ id: string;
380
+ user: {
381
+ id: string;
382
+ projectId: string;
383
+ foreignId: string | null;
384
+ role: import("../..").UserRole;
385
+ name: string | null;
386
+ username: string | null;
387
+ avatar: string | null;
388
+ bio: string | null;
389
+ birthdate: Date | null;
390
+ metadata: {
391
+ [x: string]: any;
392
+ };
393
+ reputation: number;
394
+ createdAt: Date;
395
+ location: {
396
+ type: "Point";
397
+ coordinates: [number, number];
398
+ } | null;
399
+ };
400
+ upvotesCount: number;
401
+ content: string;
402
+ createdAt: string;
403
+ } | null | undefined;
404
+ createdAt?: Date | undefined;
405
+ updatedAt?: Date | undefined;
406
+ deletedAt?: Date | null | undefined;
407
+ }[];
408
+ createdAt: Date;
409
+ updatedAt: Date;
410
+ };
411
+ };
412
+ sublistsMap: {
413
+ [x: string]: string[];
414
+ };
415
+ currentListId: string | null;
416
+ listHistory: string[];
417
+ loading: boolean;
418
+ currentProjectId?: string | undefined;
419
+ }) => void;
420
+ goToRoot: (state: {
421
+ listsById: {
422
+ [x: string]: {
423
+ id: string;
424
+ projectId: string;
425
+ userId: string;
426
+ parentId: string | null;
427
+ name: string;
428
+ entityIds: string[];
429
+ entities: {
430
+ id?: string | undefined;
431
+ foreignId?: string | null | undefined;
432
+ shortId?: string | undefined;
433
+ projectId?: string | undefined;
434
+ sourceId?: string | null | undefined;
435
+ user?: {
436
+ id: string;
437
+ projectId: string;
438
+ foreignId: string | null;
439
+ role: import("../..").UserRole;
440
+ name: string | null;
441
+ username: string | null;
442
+ avatar: string | null;
443
+ bio: string | null;
444
+ birthdate: Date | null;
445
+ metadata: {
446
+ [x: string]: any;
447
+ };
448
+ reputation: number;
449
+ createdAt: Date;
450
+ location: {
451
+ type: "Point";
452
+ coordinates: [number, number];
453
+ } | null;
454
+ } | null | undefined;
455
+ title?: string | null | undefined;
456
+ content?: string | null | undefined;
457
+ mentions?: {
458
+ id: string;
459
+ foreignId?: string | null | undefined;
460
+ username: string;
461
+ }[] | undefined;
462
+ attachments?: {
463
+ [x: string]: any;
464
+ }[] | undefined;
465
+ keywords?: string[] | undefined;
466
+ upvotes?: string[] | undefined;
467
+ downvotes?: string[] | undefined;
468
+ repliesCount?: number | undefined;
469
+ views?: number | undefined;
470
+ score?: number | undefined;
471
+ scoreUpdatedAt?: Date | undefined;
472
+ location?: {
473
+ type: "Point";
474
+ coordinates: [number, number];
475
+ } | null | undefined;
476
+ metadata?: {
477
+ [x: string]: any;
478
+ } | undefined;
479
+ topComment?: {
480
+ id: string;
481
+ user: {
482
+ id: string;
483
+ projectId: string;
484
+ foreignId: string | null;
485
+ role: import("../..").UserRole;
486
+ name: string | null;
487
+ username: string | null;
488
+ avatar: string | null;
489
+ bio: string | null;
490
+ birthdate: Date | null;
491
+ metadata: {
492
+ [x: string]: any;
493
+ };
494
+ reputation: number;
495
+ createdAt: Date;
496
+ location: {
497
+ type: "Point";
498
+ coordinates: [number, number];
499
+ } | null;
500
+ };
501
+ upvotesCount: number;
502
+ content: string;
503
+ createdAt: string;
504
+ } | null | undefined;
505
+ createdAt?: Date | undefined;
506
+ updatedAt?: Date | undefined;
507
+ deletedAt?: Date | null | undefined;
508
+ }[];
509
+ createdAt: Date;
510
+ updatedAt: Date;
511
+ };
512
+ };
513
+ sublistsMap: {
514
+ [x: string]: string[];
515
+ };
516
+ currentListId: string | null;
517
+ listHistory: string[];
518
+ loading: boolean;
519
+ currentProjectId?: string | undefined;
520
+ }) => void;
521
+ setCurrentList: (state: {
522
+ listsById: {
523
+ [x: string]: {
524
+ id: string;
525
+ projectId: string;
526
+ userId: string;
527
+ parentId: string | null;
528
+ name: string;
529
+ entityIds: string[];
530
+ entities: {
531
+ id?: string | undefined;
532
+ foreignId?: string | null | undefined;
533
+ shortId?: string | undefined;
534
+ projectId?: string | undefined;
535
+ sourceId?: string | null | undefined;
536
+ user?: {
537
+ id: string;
538
+ projectId: string;
539
+ foreignId: string | null;
540
+ role: import("../..").UserRole;
541
+ name: string | null;
542
+ username: string | null;
543
+ avatar: string | null;
544
+ bio: string | null;
545
+ birthdate: Date | null;
546
+ metadata: {
547
+ [x: string]: any;
548
+ };
549
+ reputation: number;
550
+ createdAt: Date;
551
+ location: {
552
+ type: "Point";
553
+ coordinates: [number, number];
554
+ } | null;
555
+ } | null | undefined;
556
+ title?: string | null | undefined;
557
+ content?: string | null | undefined;
558
+ mentions?: {
559
+ id: string;
560
+ foreignId?: string | null | undefined;
561
+ username: string;
562
+ }[] | undefined;
563
+ attachments?: {
564
+ [x: string]: any;
565
+ }[] | undefined;
566
+ keywords?: string[] | undefined;
567
+ upvotes?: string[] | undefined;
568
+ downvotes?: string[] | undefined;
569
+ repliesCount?: number | undefined;
570
+ views?: number | undefined;
571
+ score?: number | undefined;
572
+ scoreUpdatedAt?: Date | undefined;
573
+ location?: {
574
+ type: "Point";
575
+ coordinates: [number, number];
576
+ } | null | undefined;
577
+ metadata?: {
578
+ [x: string]: any;
579
+ } | undefined;
580
+ topComment?: {
581
+ id: string;
582
+ user: {
583
+ id: string;
584
+ projectId: string;
585
+ foreignId: string | null;
586
+ role: import("../..").UserRole;
587
+ name: string | null;
588
+ username: string | null;
589
+ avatar: string | null;
590
+ bio: string | null;
591
+ birthdate: Date | null;
592
+ metadata: {
593
+ [x: string]: any;
594
+ };
595
+ reputation: number;
596
+ createdAt: Date;
597
+ location: {
598
+ type: "Point";
599
+ coordinates: [number, number];
600
+ } | null;
601
+ };
602
+ upvotesCount: number;
603
+ content: string;
604
+ createdAt: string;
605
+ } | null | undefined;
606
+ createdAt?: Date | undefined;
607
+ updatedAt?: Date | undefined;
608
+ deletedAt?: Date | null | undefined;
609
+ }[];
610
+ createdAt: Date;
611
+ updatedAt: Date;
612
+ };
613
+ };
614
+ sublistsMap: {
615
+ [x: string]: string[];
616
+ };
617
+ currentListId: string | null;
618
+ listHistory: string[];
619
+ loading: boolean;
620
+ currentProjectId?: string | undefined;
621
+ }, action: PayloadAction<List | null>) => void;
622
+ setSubLists: (state: {
623
+ listsById: {
624
+ [x: string]: {
625
+ id: string;
626
+ projectId: string;
627
+ userId: string;
628
+ parentId: string | null;
629
+ name: string;
630
+ entityIds: string[];
631
+ entities: {
632
+ id?: string | undefined;
633
+ foreignId?: string | null | undefined;
634
+ shortId?: string | undefined;
635
+ projectId?: string | undefined;
636
+ sourceId?: string | null | undefined;
637
+ user?: {
638
+ id: string;
639
+ projectId: string;
640
+ foreignId: string | null;
641
+ role: import("../..").UserRole;
642
+ name: string | null;
643
+ username: string | null;
644
+ avatar: string | null;
645
+ bio: string | null;
646
+ birthdate: Date | null;
647
+ metadata: {
648
+ [x: string]: any;
649
+ };
650
+ reputation: number;
651
+ createdAt: Date;
652
+ location: {
653
+ type: "Point";
654
+ coordinates: [number, number];
655
+ } | null;
656
+ } | null | undefined;
657
+ title?: string | null | undefined;
658
+ content?: string | null | undefined;
659
+ mentions?: {
660
+ id: string;
661
+ foreignId?: string | null | undefined;
662
+ username: string;
663
+ }[] | undefined;
664
+ attachments?: {
665
+ [x: string]: any;
666
+ }[] | undefined;
667
+ keywords?: string[] | undefined;
668
+ upvotes?: string[] | undefined;
669
+ downvotes?: string[] | undefined;
670
+ repliesCount?: number | undefined;
671
+ views?: number | undefined;
672
+ score?: number | undefined;
673
+ scoreUpdatedAt?: Date | undefined;
674
+ location?: {
675
+ type: "Point";
676
+ coordinates: [number, number];
677
+ } | null | undefined;
678
+ metadata?: {
679
+ [x: string]: any;
680
+ } | undefined;
681
+ topComment?: {
682
+ id: string;
683
+ user: {
684
+ id: string;
685
+ projectId: string;
686
+ foreignId: string | null;
687
+ role: import("../..").UserRole;
688
+ name: string | null;
689
+ username: string | null;
690
+ avatar: string | null;
691
+ bio: string | null;
692
+ birthdate: Date | null;
693
+ metadata: {
694
+ [x: string]: any;
695
+ };
696
+ reputation: number;
697
+ createdAt: Date;
698
+ location: {
699
+ type: "Point";
700
+ coordinates: [number, number];
701
+ } | null;
702
+ };
703
+ upvotesCount: number;
704
+ content: string;
705
+ createdAt: string;
706
+ } | null | undefined;
707
+ createdAt?: Date | undefined;
708
+ updatedAt?: Date | undefined;
709
+ deletedAt?: Date | null | undefined;
710
+ }[];
711
+ createdAt: Date;
712
+ updatedAt: Date;
713
+ };
714
+ };
715
+ sublistsMap: {
716
+ [x: string]: string[];
717
+ };
718
+ currentListId: string | null;
719
+ listHistory: string[];
720
+ loading: boolean;
721
+ currentProjectId?: string | undefined;
722
+ }, action: PayloadAction<{
23
723
  lists: List[];
24
724
  parentListId: string;
25
725
  }>) => void;
26
- updateCurrentList: (state: import("@reduxjs/toolkit").WritableDraft<ListsState>, action: PayloadAction<List>) => void;
27
- updateListInSubLists: (state: import("@reduxjs/toolkit").WritableDraft<ListsState>, action: PayloadAction<List>) => void;
28
- addNewListAndNavigate: (state: import("@reduxjs/toolkit").WritableDraft<ListsState>, action: PayloadAction<List>) => void;
29
- removeListFromSubLists: (state: import("@reduxjs/toolkit").WritableDraft<ListsState>, action: PayloadAction<string>) => void;
30
- handleListDeletion: (state: import("@reduxjs/toolkit").WritableDraft<ListsState>, action: PayloadAction<{
726
+ updateCurrentList: (state: {
727
+ listsById: {
728
+ [x: string]: {
729
+ id: string;
730
+ projectId: string;
731
+ userId: string;
732
+ parentId: string | null;
733
+ name: string;
734
+ entityIds: string[];
735
+ entities: {
736
+ id?: string | undefined;
737
+ foreignId?: string | null | undefined;
738
+ shortId?: string | undefined;
739
+ projectId?: string | undefined;
740
+ sourceId?: string | null | undefined;
741
+ user?: {
742
+ id: string;
743
+ projectId: string;
744
+ foreignId: string | null;
745
+ role: import("../..").UserRole;
746
+ name: string | null;
747
+ username: string | null;
748
+ avatar: string | null;
749
+ bio: string | null;
750
+ birthdate: Date | null;
751
+ metadata: {
752
+ [x: string]: any;
753
+ };
754
+ reputation: number;
755
+ createdAt: Date;
756
+ location: {
757
+ type: "Point";
758
+ coordinates: [number, number];
759
+ } | null;
760
+ } | null | undefined;
761
+ title?: string | null | undefined;
762
+ content?: string | null | undefined;
763
+ mentions?: {
764
+ id: string;
765
+ foreignId?: string | null | undefined;
766
+ username: string;
767
+ }[] | undefined;
768
+ attachments?: {
769
+ [x: string]: any;
770
+ }[] | undefined;
771
+ keywords?: string[] | undefined;
772
+ upvotes?: string[] | undefined;
773
+ downvotes?: string[] | undefined;
774
+ repliesCount?: number | undefined;
775
+ views?: number | undefined;
776
+ score?: number | undefined;
777
+ scoreUpdatedAt?: Date | undefined;
778
+ location?: {
779
+ type: "Point";
780
+ coordinates: [number, number];
781
+ } | null | undefined;
782
+ metadata?: {
783
+ [x: string]: any;
784
+ } | undefined;
785
+ topComment?: {
786
+ id: string;
787
+ user: {
788
+ id: string;
789
+ projectId: string;
790
+ foreignId: string | null;
791
+ role: import("../..").UserRole;
792
+ name: string | null;
793
+ username: string | null;
794
+ avatar: string | null;
795
+ bio: string | null;
796
+ birthdate: Date | null;
797
+ metadata: {
798
+ [x: string]: any;
799
+ };
800
+ reputation: number;
801
+ createdAt: Date;
802
+ location: {
803
+ type: "Point";
804
+ coordinates: [number, number];
805
+ } | null;
806
+ };
807
+ upvotesCount: number;
808
+ content: string;
809
+ createdAt: string;
810
+ } | null | undefined;
811
+ createdAt?: Date | undefined;
812
+ updatedAt?: Date | undefined;
813
+ deletedAt?: Date | null | undefined;
814
+ }[];
815
+ createdAt: Date;
816
+ updatedAt: Date;
817
+ };
818
+ };
819
+ sublistsMap: {
820
+ [x: string]: string[];
821
+ };
822
+ currentListId: string | null;
823
+ listHistory: string[];
824
+ loading: boolean;
825
+ currentProjectId?: string | undefined;
826
+ }, action: PayloadAction<List>) => void;
827
+ updateListInSubLists: (state: {
828
+ listsById: {
829
+ [x: string]: {
830
+ id: string;
831
+ projectId: string;
832
+ userId: string;
833
+ parentId: string | null;
834
+ name: string;
835
+ entityIds: string[];
836
+ entities: {
837
+ id?: string | undefined;
838
+ foreignId?: string | null | undefined;
839
+ shortId?: string | undefined;
840
+ projectId?: string | undefined;
841
+ sourceId?: string | null | undefined;
842
+ user?: {
843
+ id: string;
844
+ projectId: string;
845
+ foreignId: string | null;
846
+ role: import("../..").UserRole;
847
+ name: string | null;
848
+ username: string | null;
849
+ avatar: string | null;
850
+ bio: string | null;
851
+ birthdate: Date | null;
852
+ metadata: {
853
+ [x: string]: any;
854
+ };
855
+ reputation: number;
856
+ createdAt: Date;
857
+ location: {
858
+ type: "Point";
859
+ coordinates: [number, number];
860
+ } | null;
861
+ } | null | undefined;
862
+ title?: string | null | undefined;
863
+ content?: string | null | undefined;
864
+ mentions?: {
865
+ id: string;
866
+ foreignId?: string | null | undefined;
867
+ username: string;
868
+ }[] | undefined;
869
+ attachments?: {
870
+ [x: string]: any;
871
+ }[] | undefined;
872
+ keywords?: string[] | undefined;
873
+ upvotes?: string[] | undefined;
874
+ downvotes?: string[] | undefined;
875
+ repliesCount?: number | undefined;
876
+ views?: number | undefined;
877
+ score?: number | undefined;
878
+ scoreUpdatedAt?: Date | undefined;
879
+ location?: {
880
+ type: "Point";
881
+ coordinates: [number, number];
882
+ } | null | undefined;
883
+ metadata?: {
884
+ [x: string]: any;
885
+ } | undefined;
886
+ topComment?: {
887
+ id: string;
888
+ user: {
889
+ id: string;
890
+ projectId: string;
891
+ foreignId: string | null;
892
+ role: import("../..").UserRole;
893
+ name: string | null;
894
+ username: string | null;
895
+ avatar: string | null;
896
+ bio: string | null;
897
+ birthdate: Date | null;
898
+ metadata: {
899
+ [x: string]: any;
900
+ };
901
+ reputation: number;
902
+ createdAt: Date;
903
+ location: {
904
+ type: "Point";
905
+ coordinates: [number, number];
906
+ } | null;
907
+ };
908
+ upvotesCount: number;
909
+ content: string;
910
+ createdAt: string;
911
+ } | null | undefined;
912
+ createdAt?: Date | undefined;
913
+ updatedAt?: Date | undefined;
914
+ deletedAt?: Date | null | undefined;
915
+ }[];
916
+ createdAt: Date;
917
+ updatedAt: Date;
918
+ };
919
+ };
920
+ sublistsMap: {
921
+ [x: string]: string[];
922
+ };
923
+ currentListId: string | null;
924
+ listHistory: string[];
925
+ loading: boolean;
926
+ currentProjectId?: string | undefined;
927
+ }, action: PayloadAction<List>) => void;
928
+ addNewListAndNavigate: (state: {
929
+ listsById: {
930
+ [x: string]: {
931
+ id: string;
932
+ projectId: string;
933
+ userId: string;
934
+ parentId: string | null;
935
+ name: string;
936
+ entityIds: string[];
937
+ entities: {
938
+ id?: string | undefined;
939
+ foreignId?: string | null | undefined;
940
+ shortId?: string | undefined;
941
+ projectId?: string | undefined;
942
+ sourceId?: string | null | undefined;
943
+ user?: {
944
+ id: string;
945
+ projectId: string;
946
+ foreignId: string | null;
947
+ role: import("../..").UserRole;
948
+ name: string | null;
949
+ username: string | null;
950
+ avatar: string | null;
951
+ bio: string | null;
952
+ birthdate: Date | null;
953
+ metadata: {
954
+ [x: string]: any;
955
+ };
956
+ reputation: number;
957
+ createdAt: Date;
958
+ location: {
959
+ type: "Point";
960
+ coordinates: [number, number];
961
+ } | null;
962
+ } | null | undefined;
963
+ title?: string | null | undefined;
964
+ content?: string | null | undefined;
965
+ mentions?: {
966
+ id: string;
967
+ foreignId?: string | null | undefined;
968
+ username: string;
969
+ }[] | undefined;
970
+ attachments?: {
971
+ [x: string]: any;
972
+ }[] | undefined;
973
+ keywords?: string[] | undefined;
974
+ upvotes?: string[] | undefined;
975
+ downvotes?: string[] | undefined;
976
+ repliesCount?: number | undefined;
977
+ views?: number | undefined;
978
+ score?: number | undefined;
979
+ scoreUpdatedAt?: Date | undefined;
980
+ location?: {
981
+ type: "Point";
982
+ coordinates: [number, number];
983
+ } | null | undefined;
984
+ metadata?: {
985
+ [x: string]: any;
986
+ } | undefined;
987
+ topComment?: {
988
+ id: string;
989
+ user: {
990
+ id: string;
991
+ projectId: string;
992
+ foreignId: string | null;
993
+ role: import("../..").UserRole;
994
+ name: string | null;
995
+ username: string | null;
996
+ avatar: string | null;
997
+ bio: string | null;
998
+ birthdate: Date | null;
999
+ metadata: {
1000
+ [x: string]: any;
1001
+ };
1002
+ reputation: number;
1003
+ createdAt: Date;
1004
+ location: {
1005
+ type: "Point";
1006
+ coordinates: [number, number];
1007
+ } | null;
1008
+ };
1009
+ upvotesCount: number;
1010
+ content: string;
1011
+ createdAt: string;
1012
+ } | null | undefined;
1013
+ createdAt?: Date | undefined;
1014
+ updatedAt?: Date | undefined;
1015
+ deletedAt?: Date | null | undefined;
1016
+ }[];
1017
+ createdAt: Date;
1018
+ updatedAt: Date;
1019
+ };
1020
+ };
1021
+ sublistsMap: {
1022
+ [x: string]: string[];
1023
+ };
1024
+ currentListId: string | null;
1025
+ listHistory: string[];
1026
+ loading: boolean;
1027
+ currentProjectId?: string | undefined;
1028
+ }, action: PayloadAction<List>) => void;
1029
+ removeListFromSubLists: (state: {
1030
+ listsById: {
1031
+ [x: string]: {
1032
+ id: string;
1033
+ projectId: string;
1034
+ userId: string;
1035
+ parentId: string | null;
1036
+ name: string;
1037
+ entityIds: string[];
1038
+ entities: {
1039
+ id?: string | undefined;
1040
+ foreignId?: string | null | undefined;
1041
+ shortId?: string | undefined;
1042
+ projectId?: string | undefined;
1043
+ sourceId?: string | null | undefined;
1044
+ user?: {
1045
+ id: string;
1046
+ projectId: string;
1047
+ foreignId: string | null;
1048
+ role: import("../..").UserRole;
1049
+ name: string | null;
1050
+ username: string | null;
1051
+ avatar: string | null;
1052
+ bio: string | null;
1053
+ birthdate: Date | null;
1054
+ metadata: {
1055
+ [x: string]: any;
1056
+ };
1057
+ reputation: number;
1058
+ createdAt: Date;
1059
+ location: {
1060
+ type: "Point";
1061
+ coordinates: [number, number];
1062
+ } | null;
1063
+ } | null | undefined;
1064
+ title?: string | null | undefined;
1065
+ content?: string | null | undefined;
1066
+ mentions?: {
1067
+ id: string;
1068
+ foreignId?: string | null | undefined;
1069
+ username: string;
1070
+ }[] | undefined;
1071
+ attachments?: {
1072
+ [x: string]: any;
1073
+ }[] | undefined;
1074
+ keywords?: string[] | undefined;
1075
+ upvotes?: string[] | undefined;
1076
+ downvotes?: string[] | undefined;
1077
+ repliesCount?: number | undefined;
1078
+ views?: number | undefined;
1079
+ score?: number | undefined;
1080
+ scoreUpdatedAt?: Date | undefined;
1081
+ location?: {
1082
+ type: "Point";
1083
+ coordinates: [number, number];
1084
+ } | null | undefined;
1085
+ metadata?: {
1086
+ [x: string]: any;
1087
+ } | undefined;
1088
+ topComment?: {
1089
+ id: string;
1090
+ user: {
1091
+ id: string;
1092
+ projectId: string;
1093
+ foreignId: string | null;
1094
+ role: import("../..").UserRole;
1095
+ name: string | null;
1096
+ username: string | null;
1097
+ avatar: string | null;
1098
+ bio: string | null;
1099
+ birthdate: Date | null;
1100
+ metadata: {
1101
+ [x: string]: any;
1102
+ };
1103
+ reputation: number;
1104
+ createdAt: Date;
1105
+ location: {
1106
+ type: "Point";
1107
+ coordinates: [number, number];
1108
+ } | null;
1109
+ };
1110
+ upvotesCount: number;
1111
+ content: string;
1112
+ createdAt: string;
1113
+ } | null | undefined;
1114
+ createdAt?: Date | undefined;
1115
+ updatedAt?: Date | undefined;
1116
+ deletedAt?: Date | null | undefined;
1117
+ }[];
1118
+ createdAt: Date;
1119
+ updatedAt: Date;
1120
+ };
1121
+ };
1122
+ sublistsMap: {
1123
+ [x: string]: string[];
1124
+ };
1125
+ currentListId: string | null;
1126
+ listHistory: string[];
1127
+ loading: boolean;
1128
+ currentProjectId?: string | undefined;
1129
+ }, action: PayloadAction<string>) => void;
1130
+ handleListDeletion: (state: {
1131
+ listsById: {
1132
+ [x: string]: {
1133
+ id: string;
1134
+ projectId: string;
1135
+ userId: string;
1136
+ parentId: string | null;
1137
+ name: string;
1138
+ entityIds: string[];
1139
+ entities: {
1140
+ id?: string | undefined;
1141
+ foreignId?: string | null | undefined;
1142
+ shortId?: string | undefined;
1143
+ projectId?: string | undefined;
1144
+ sourceId?: string | null | undefined;
1145
+ user?: {
1146
+ id: string;
1147
+ projectId: string;
1148
+ foreignId: string | null;
1149
+ role: import("../..").UserRole;
1150
+ name: string | null;
1151
+ username: string | null;
1152
+ avatar: string | null;
1153
+ bio: string | null;
1154
+ birthdate: Date | null;
1155
+ metadata: {
1156
+ [x: string]: any;
1157
+ };
1158
+ reputation: number;
1159
+ createdAt: Date;
1160
+ location: {
1161
+ type: "Point";
1162
+ coordinates: [number, number];
1163
+ } | null;
1164
+ } | null | undefined;
1165
+ title?: string | null | undefined;
1166
+ content?: string | null | undefined;
1167
+ mentions?: {
1168
+ id: string;
1169
+ foreignId?: string | null | undefined;
1170
+ username: string;
1171
+ }[] | undefined;
1172
+ attachments?: {
1173
+ [x: string]: any;
1174
+ }[] | undefined;
1175
+ keywords?: string[] | undefined;
1176
+ upvotes?: string[] | undefined;
1177
+ downvotes?: string[] | undefined;
1178
+ repliesCount?: number | undefined;
1179
+ views?: number | undefined;
1180
+ score?: number | undefined;
1181
+ scoreUpdatedAt?: Date | undefined;
1182
+ location?: {
1183
+ type: "Point";
1184
+ coordinates: [number, number];
1185
+ } | null | undefined;
1186
+ metadata?: {
1187
+ [x: string]: any;
1188
+ } | undefined;
1189
+ topComment?: {
1190
+ id: string;
1191
+ user: {
1192
+ id: string;
1193
+ projectId: string;
1194
+ foreignId: string | null;
1195
+ role: import("../..").UserRole;
1196
+ name: string | null;
1197
+ username: string | null;
1198
+ avatar: string | null;
1199
+ bio: string | null;
1200
+ birthdate: Date | null;
1201
+ metadata: {
1202
+ [x: string]: any;
1203
+ };
1204
+ reputation: number;
1205
+ createdAt: Date;
1206
+ location: {
1207
+ type: "Point";
1208
+ coordinates: [number, number];
1209
+ } | null;
1210
+ };
1211
+ upvotesCount: number;
1212
+ content: string;
1213
+ createdAt: string;
1214
+ } | null | undefined;
1215
+ createdAt?: Date | undefined;
1216
+ updatedAt?: Date | undefined;
1217
+ deletedAt?: Date | null | undefined;
1218
+ }[];
1219
+ createdAt: Date;
1220
+ updatedAt: Date;
1221
+ };
1222
+ };
1223
+ sublistsMap: {
1224
+ [x: string]: string[];
1225
+ };
1226
+ currentListId: string | null;
1227
+ listHistory: string[];
1228
+ loading: boolean;
1229
+ currentProjectId?: string | undefined;
1230
+ }, action: PayloadAction<{
31
1231
  listId: string;
32
1232
  parentId?: string | null;
33
1233
  }>) => void;
34
- resetLists: (state: import("@reduxjs/toolkit").WritableDraft<ListsState>) => void;
35
- handleError: (state: import("@reduxjs/toolkit").WritableDraft<ListsState>) => void;
1234
+ resetLists: (state: {
1235
+ listsById: {
1236
+ [x: string]: {
1237
+ id: string;
1238
+ projectId: string;
1239
+ userId: string;
1240
+ parentId: string | null;
1241
+ name: string;
1242
+ entityIds: string[];
1243
+ entities: {
1244
+ id?: string | undefined;
1245
+ foreignId?: string | null | undefined;
1246
+ shortId?: string | undefined;
1247
+ projectId?: string | undefined;
1248
+ sourceId?: string | null | undefined;
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
+ } | null | undefined;
1269
+ title?: string | null | undefined;
1270
+ content?: string | null | undefined;
1271
+ mentions?: {
1272
+ id: string;
1273
+ foreignId?: string | null | undefined;
1274
+ username: string;
1275
+ }[] | undefined;
1276
+ attachments?: {
1277
+ [x: string]: any;
1278
+ }[] | undefined;
1279
+ keywords?: string[] | undefined;
1280
+ upvotes?: string[] | undefined;
1281
+ downvotes?: string[] | undefined;
1282
+ repliesCount?: number | undefined;
1283
+ views?: number | undefined;
1284
+ score?: number | undefined;
1285
+ scoreUpdatedAt?: Date | undefined;
1286
+ location?: {
1287
+ type: "Point";
1288
+ coordinates: [number, number];
1289
+ } | null | undefined;
1290
+ metadata?: {
1291
+ [x: string]: any;
1292
+ } | undefined;
1293
+ topComment?: {
1294
+ id: string;
1295
+ user: {
1296
+ id: string;
1297
+ projectId: string;
1298
+ foreignId: string | null;
1299
+ role: import("../..").UserRole;
1300
+ name: string | null;
1301
+ username: string | null;
1302
+ avatar: string | null;
1303
+ bio: string | null;
1304
+ birthdate: Date | null;
1305
+ metadata: {
1306
+ [x: string]: any;
1307
+ };
1308
+ reputation: number;
1309
+ createdAt: Date;
1310
+ location: {
1311
+ type: "Point";
1312
+ coordinates: [number, number];
1313
+ } | null;
1314
+ };
1315
+ upvotesCount: number;
1316
+ content: string;
1317
+ createdAt: string;
1318
+ } | null | undefined;
1319
+ createdAt?: Date | undefined;
1320
+ updatedAt?: Date | undefined;
1321
+ deletedAt?: Date | null | undefined;
1322
+ }[];
1323
+ createdAt: Date;
1324
+ updatedAt: Date;
1325
+ };
1326
+ };
1327
+ sublistsMap: {
1328
+ [x: string]: string[];
1329
+ };
1330
+ currentListId: string | null;
1331
+ listHistory: string[];
1332
+ loading: boolean;
1333
+ currentProjectId?: string | undefined;
1334
+ }) => void;
1335
+ handleError: (state: {
1336
+ listsById: {
1337
+ [x: string]: {
1338
+ id: string;
1339
+ projectId: string;
1340
+ userId: string;
1341
+ parentId: string | null;
1342
+ name: string;
1343
+ entityIds: string[];
1344
+ entities: {
1345
+ id?: string | undefined;
1346
+ foreignId?: string | null | undefined;
1347
+ shortId?: string | undefined;
1348
+ projectId?: string | undefined;
1349
+ sourceId?: string | null | undefined;
1350
+ user?: {
1351
+ id: string;
1352
+ projectId: string;
1353
+ foreignId: string | null;
1354
+ role: import("../..").UserRole;
1355
+ name: string | null;
1356
+ username: string | null;
1357
+ avatar: string | null;
1358
+ bio: string | null;
1359
+ birthdate: Date | null;
1360
+ metadata: {
1361
+ [x: string]: any;
1362
+ };
1363
+ reputation: number;
1364
+ createdAt: Date;
1365
+ location: {
1366
+ type: "Point";
1367
+ coordinates: [number, number];
1368
+ } | null;
1369
+ } | null | undefined;
1370
+ title?: string | null | undefined;
1371
+ content?: string | null | undefined;
1372
+ mentions?: {
1373
+ id: string;
1374
+ foreignId?: string | null | undefined;
1375
+ username: string;
1376
+ }[] | undefined;
1377
+ attachments?: {
1378
+ [x: string]: any;
1379
+ }[] | undefined;
1380
+ keywords?: string[] | undefined;
1381
+ upvotes?: string[] | undefined;
1382
+ downvotes?: string[] | undefined;
1383
+ repliesCount?: number | undefined;
1384
+ views?: number | undefined;
1385
+ score?: number | undefined;
1386
+ scoreUpdatedAt?: Date | undefined;
1387
+ location?: {
1388
+ type: "Point";
1389
+ coordinates: [number, number];
1390
+ } | null | undefined;
1391
+ metadata?: {
1392
+ [x: string]: any;
1393
+ } | undefined;
1394
+ topComment?: {
1395
+ id: string;
1396
+ user: {
1397
+ id: string;
1398
+ projectId: string;
1399
+ foreignId: string | null;
1400
+ role: import("../..").UserRole;
1401
+ name: string | null;
1402
+ username: string | null;
1403
+ avatar: string | null;
1404
+ bio: string | null;
1405
+ birthdate: Date | null;
1406
+ metadata: {
1407
+ [x: string]: any;
1408
+ };
1409
+ reputation: number;
1410
+ createdAt: Date;
1411
+ location: {
1412
+ type: "Point";
1413
+ coordinates: [number, number];
1414
+ } | null;
1415
+ };
1416
+ upvotesCount: number;
1417
+ content: string;
1418
+ createdAt: string;
1419
+ } | null | undefined;
1420
+ createdAt?: Date | undefined;
1421
+ updatedAt?: Date | undefined;
1422
+ deletedAt?: Date | null | undefined;
1423
+ }[];
1424
+ createdAt: Date;
1425
+ updatedAt: Date;
1426
+ };
1427
+ };
1428
+ sublistsMap: {
1429
+ [x: string]: string[];
1430
+ };
1431
+ currentListId: string | null;
1432
+ listHistory: string[];
1433
+ loading: boolean;
1434
+ currentProjectId?: string | undefined;
1435
+ }) => void;
36
1436
  }, "lists", "lists", import("@reduxjs/toolkit").SliceSelectors<ListsState>>;
37
1437
  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<{
38
1438
  lists: List[];