@sublay/core 7.3.0 → 7.4.1

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 (223) hide show
  1. package/dist/cjs/helpers/markCommentAsDeletedInTree.js +1 -1
  2. package/dist/cjs/helpers/markCommentAsDeletedInTree.js.map +1 -1
  3. package/dist/cjs/hooks/chat/conversations/useConversationMembers.d.ts +8 -1
  4. package/dist/cjs/hooks/chat/conversations/useConversationMembers.js +8 -3
  5. package/dist/cjs/hooks/chat/conversations/useConversationMembers.js.map +1 -1
  6. package/dist/cjs/hooks/chat/messages/useFetchManyChatMessages.d.ts +7 -0
  7. package/dist/cjs/hooks/chat/messages/useFetchManyChatMessages.js +5 -1
  8. package/dist/cjs/hooks/chat/messages/useFetchManyChatMessages.js.map +1 -1
  9. package/dist/cjs/hooks/chat/messages/useFetchManyChatMessagesWrapper.d.ts +7 -0
  10. package/dist/cjs/hooks/chat/messages/useFetchManyChatMessagesWrapper.js +7 -3
  11. package/dist/cjs/hooks/chat/messages/useFetchManyChatMessagesWrapper.js.map +1 -1
  12. package/dist/cjs/hooks/chat/messages/useSendMessage.d.ts +11 -0
  13. package/dist/cjs/hooks/chat/messages/useSendMessage.js +9 -4
  14. package/dist/cjs/hooks/chat/messages/useSendMessage.js.map +1 -1
  15. package/dist/cjs/hooks/comments/useCommentSectionData.js +4 -4
  16. package/dist/cjs/hooks/comments/useCommentSectionData.js.map +1 -1
  17. package/dist/cjs/hooks/comments/useEntityComments.d.ts +7 -0
  18. package/dist/cjs/hooks/comments/useEntityComments.js +6 -2
  19. package/dist/cjs/hooks/comments/useEntityComments.js.map +1 -1
  20. package/dist/cjs/hooks/comments/useFetchComment.d.ts +7 -0
  21. package/dist/cjs/hooks/comments/useFetchComment.js +5 -1
  22. package/dist/cjs/hooks/comments/useFetchComment.js.map +1 -1
  23. package/dist/cjs/hooks/comments/useFetchManyComments.d.ts +7 -0
  24. package/dist/cjs/hooks/comments/useFetchManyComments.js +5 -1
  25. package/dist/cjs/hooks/comments/useFetchManyComments.js.map +1 -1
  26. package/dist/cjs/hooks/comments/useFetchManyCommentsWrapper.d.ts +7 -0
  27. package/dist/cjs/hooks/comments/useFetchManyCommentsWrapper.js +9 -1
  28. package/dist/cjs/hooks/comments/useFetchManyCommentsWrapper.js.map +1 -1
  29. package/dist/cjs/hooks/entities/useFetchEntity.d.ts +7 -0
  30. package/dist/cjs/hooks/entities/useFetchEntity.js +9 -4
  31. package/dist/cjs/hooks/entities/useFetchEntity.js.map +1 -1
  32. package/dist/cjs/hooks/entities/useFetchManyEntities.d.ts +7 -0
  33. package/dist/cjs/hooks/entities/useFetchManyEntities.js +4 -0
  34. package/dist/cjs/hooks/entities/useFetchManyEntities.js.map +1 -1
  35. package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.d.ts +7 -0
  36. package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js +9 -1
  37. package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -1
  38. package/dist/cjs/hooks/entity-lists/useEntityList.js +6 -0
  39. package/dist/cjs/hooks/entity-lists/useEntityList.js.map +1 -1
  40. package/dist/cjs/hooks/entity-lists/useEntityListActions.d.ts +2 -0
  41. package/dist/cjs/hooks/entity-lists/useEntityListActions.js +2 -0
  42. package/dist/cjs/hooks/entity-lists/useEntityListActions.js.map +1 -1
  43. package/dist/cjs/hooks/reactions/useFetchCommentReactions.d.ts +7 -0
  44. package/dist/cjs/hooks/reactions/useFetchCommentReactions.js +5 -1
  45. package/dist/cjs/hooks/reactions/useFetchCommentReactions.js.map +1 -1
  46. package/dist/cjs/hooks/reactions/useFetchEntityReactions.d.ts +7 -0
  47. package/dist/cjs/hooks/reactions/useFetchEntityReactions.js +5 -1
  48. package/dist/cjs/hooks/reactions/useFetchEntityReactions.js.map +1 -1
  49. package/dist/cjs/hooks/relationships/connections/useFetchConnectionsByUserId.d.ts +8 -0
  50. package/dist/cjs/hooks/relationships/connections/useFetchConnectionsByUserId.js +7 -5
  51. package/dist/cjs/hooks/relationships/connections/useFetchConnectionsByUserId.js.map +1 -1
  52. package/dist/cjs/hooks/relationships/follows/useFetchFollowersByUserId.d.ts +8 -0
  53. package/dist/cjs/hooks/relationships/follows/useFetchFollowersByUserId.js +7 -2
  54. package/dist/cjs/hooks/relationships/follows/useFetchFollowersByUserId.js.map +1 -1
  55. package/dist/cjs/hooks/relationships/follows/useFetchFollowingByUserId.d.ts +8 -0
  56. package/dist/cjs/hooks/relationships/follows/useFetchFollowingByUserId.js +7 -5
  57. package/dist/cjs/hooks/relationships/follows/useFetchFollowingByUserId.js.map +1 -1
  58. package/dist/cjs/hooks/reports/useFetchModeratedReports.d.ts +11 -4
  59. package/dist/cjs/hooks/reports/useFetchModeratedReports.js +7 -2
  60. package/dist/cjs/hooks/reports/useFetchModeratedReports.js.map +1 -1
  61. package/dist/cjs/hooks/search/useAskContent.d.ts +8 -0
  62. package/dist/cjs/hooks/search/useAskContent.js +13 -2
  63. package/dist/cjs/hooks/search/useAskContent.js.map +1 -1
  64. package/dist/cjs/hooks/search/useSearchContent.d.ts +8 -0
  65. package/dist/cjs/hooks/search/useSearchContent.js +7 -2
  66. package/dist/cjs/hooks/search/useSearchContent.js.map +1 -1
  67. package/dist/cjs/hooks/spaces/useFetchSpaceMembers.d.ts +7 -0
  68. package/dist/cjs/hooks/spaces/useFetchSpaceMembers.js +7 -2
  69. package/dist/cjs/hooks/spaces/useFetchSpaceMembers.js.map +1 -1
  70. package/dist/cjs/hooks/spaces/useFetchSpaceTeam.d.ts +7 -0
  71. package/dist/cjs/hooks/spaces/useFetchSpaceTeam.js +7 -2
  72. package/dist/cjs/hooks/spaces/useFetchSpaceTeam.js.map +1 -1
  73. package/dist/cjs/hooks/user/useUserActions.js +3 -1
  74. package/dist/cjs/hooks/user/useUserActions.js.map +1 -1
  75. package/dist/cjs/hooks/users/useFetchUser.d.ts +8 -0
  76. package/dist/cjs/hooks/users/useFetchUser.js +9 -4
  77. package/dist/cjs/hooks/users/useFetchUser.js.map +1 -1
  78. package/dist/cjs/hooks/users/useFetchUserByForeignId.d.ts +8 -0
  79. package/dist/cjs/hooks/users/useFetchUserByForeignId.js +10 -5
  80. package/dist/cjs/hooks/users/useFetchUserByForeignId.js.map +1 -1
  81. package/dist/cjs/hooks/users/useFetchUserByUsername.d.ts +8 -0
  82. package/dist/cjs/hooks/users/useFetchUserByUsername.js +10 -5
  83. package/dist/cjs/hooks/users/useFetchUserByUsername.js.map +1 -1
  84. package/dist/cjs/hooks/users/useFetchUserSuggestions.d.ts +8 -0
  85. package/dist/cjs/hooks/users/useFetchUserSuggestions.js +7 -4
  86. package/dist/cjs/hooks/users/useFetchUserSuggestions.js.map +1 -1
  87. package/dist/cjs/interfaces/models/ChatMessage.d.ts +5 -5
  88. package/dist/cjs/interfaces/models/Collection.d.ts +2 -2
  89. package/dist/cjs/interfaces/models/Comment.d.ts +6 -6
  90. package/dist/cjs/interfaces/models/Conversation.d.ts +3 -3
  91. package/dist/cjs/interfaces/models/ConversationMember.d.ts +5 -5
  92. package/dist/cjs/interfaces/models/Entity.d.ts +5 -5
  93. package/dist/cjs/interfaces/models/File.d.ts +4 -4
  94. package/dist/cjs/interfaces/models/Follow.d.ts +1 -1
  95. package/dist/cjs/interfaces/models/Project.d.ts +3 -3
  96. package/dist/cjs/interfaces/models/Rule.d.ts +2 -2
  97. package/dist/cjs/interfaces/models/Space.d.ts +8 -8
  98. package/dist/cjs/interfaces/models/SpaceMember.d.ts +3 -3
  99. package/dist/cjs/interfaces/models/User.d.ts +7 -6
  100. package/dist/cjs/store/api/entityListsApi.d.ts +2 -0
  101. package/dist/cjs/store/api/entityListsApi.js +3 -1
  102. package/dist/cjs/store/api/entityListsApi.js.map +1 -1
  103. package/dist/cjs/store/slices/chatSlice.js +1 -1
  104. package/dist/cjs/store/slices/chatSlice.js.map +1 -1
  105. package/dist/cjs/store/slices/collectionsSlice.d.ts +836 -798
  106. package/dist/cjs/store/slices/entityListsSlice.d.ts +545 -480
  107. package/dist/cjs/store/slices/entityListsSlice.js +10 -0
  108. package/dist/cjs/store/slices/entityListsSlice.js.map +1 -1
  109. package/dist/cjs/store/slices/spaceListsSlice.d.ts +132 -132
  110. package/dist/cjs/store/slices/userSlice.d.ts +120 -112
  111. package/dist/cjs/types/socket.d.ts +2 -2
  112. package/dist/esm/helpers/markCommentAsDeletedInTree.js +1 -1
  113. package/dist/esm/helpers/markCommentAsDeletedInTree.js.map +1 -1
  114. package/dist/esm/hooks/chat/conversations/useConversationMembers.d.ts +8 -1
  115. package/dist/esm/hooks/chat/conversations/useConversationMembers.js +8 -3
  116. package/dist/esm/hooks/chat/conversations/useConversationMembers.js.map +1 -1
  117. package/dist/esm/hooks/chat/messages/useFetchManyChatMessages.d.ts +7 -0
  118. package/dist/esm/hooks/chat/messages/useFetchManyChatMessages.js +5 -1
  119. package/dist/esm/hooks/chat/messages/useFetchManyChatMessages.js.map +1 -1
  120. package/dist/esm/hooks/chat/messages/useFetchManyChatMessagesWrapper.d.ts +7 -0
  121. package/dist/esm/hooks/chat/messages/useFetchManyChatMessagesWrapper.js +7 -3
  122. package/dist/esm/hooks/chat/messages/useFetchManyChatMessagesWrapper.js.map +1 -1
  123. package/dist/esm/hooks/chat/messages/useSendMessage.d.ts +11 -0
  124. package/dist/esm/hooks/chat/messages/useSendMessage.js +9 -4
  125. package/dist/esm/hooks/chat/messages/useSendMessage.js.map +1 -1
  126. package/dist/esm/hooks/comments/useCommentSectionData.js +4 -4
  127. package/dist/esm/hooks/comments/useCommentSectionData.js.map +1 -1
  128. package/dist/esm/hooks/comments/useEntityComments.d.ts +7 -0
  129. package/dist/esm/hooks/comments/useEntityComments.js +6 -2
  130. package/dist/esm/hooks/comments/useEntityComments.js.map +1 -1
  131. package/dist/esm/hooks/comments/useFetchComment.d.ts +7 -0
  132. package/dist/esm/hooks/comments/useFetchComment.js +5 -1
  133. package/dist/esm/hooks/comments/useFetchComment.js.map +1 -1
  134. package/dist/esm/hooks/comments/useFetchManyComments.d.ts +7 -0
  135. package/dist/esm/hooks/comments/useFetchManyComments.js +5 -1
  136. package/dist/esm/hooks/comments/useFetchManyComments.js.map +1 -1
  137. package/dist/esm/hooks/comments/useFetchManyCommentsWrapper.d.ts +7 -0
  138. package/dist/esm/hooks/comments/useFetchManyCommentsWrapper.js +9 -1
  139. package/dist/esm/hooks/comments/useFetchManyCommentsWrapper.js.map +1 -1
  140. package/dist/esm/hooks/entities/useFetchEntity.d.ts +7 -0
  141. package/dist/esm/hooks/entities/useFetchEntity.js +9 -4
  142. package/dist/esm/hooks/entities/useFetchEntity.js.map +1 -1
  143. package/dist/esm/hooks/entities/useFetchManyEntities.d.ts +7 -0
  144. package/dist/esm/hooks/entities/useFetchManyEntities.js +4 -0
  145. package/dist/esm/hooks/entities/useFetchManyEntities.js.map +1 -1
  146. package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.d.ts +7 -0
  147. package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js +9 -1
  148. package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -1
  149. package/dist/esm/hooks/entity-lists/useEntityList.js +6 -0
  150. package/dist/esm/hooks/entity-lists/useEntityList.js.map +1 -1
  151. package/dist/esm/hooks/entity-lists/useEntityListActions.d.ts +2 -0
  152. package/dist/esm/hooks/entity-lists/useEntityListActions.js +2 -0
  153. package/dist/esm/hooks/entity-lists/useEntityListActions.js.map +1 -1
  154. package/dist/esm/hooks/reactions/useFetchCommentReactions.d.ts +7 -0
  155. package/dist/esm/hooks/reactions/useFetchCommentReactions.js +5 -1
  156. package/dist/esm/hooks/reactions/useFetchCommentReactions.js.map +1 -1
  157. package/dist/esm/hooks/reactions/useFetchEntityReactions.d.ts +7 -0
  158. package/dist/esm/hooks/reactions/useFetchEntityReactions.js +5 -1
  159. package/dist/esm/hooks/reactions/useFetchEntityReactions.js.map +1 -1
  160. package/dist/esm/hooks/relationships/connections/useFetchConnectionsByUserId.d.ts +8 -0
  161. package/dist/esm/hooks/relationships/connections/useFetchConnectionsByUserId.js +7 -5
  162. package/dist/esm/hooks/relationships/connections/useFetchConnectionsByUserId.js.map +1 -1
  163. package/dist/esm/hooks/relationships/follows/useFetchFollowersByUserId.d.ts +8 -0
  164. package/dist/esm/hooks/relationships/follows/useFetchFollowersByUserId.js +7 -2
  165. package/dist/esm/hooks/relationships/follows/useFetchFollowersByUserId.js.map +1 -1
  166. package/dist/esm/hooks/relationships/follows/useFetchFollowingByUserId.d.ts +8 -0
  167. package/dist/esm/hooks/relationships/follows/useFetchFollowingByUserId.js +7 -5
  168. package/dist/esm/hooks/relationships/follows/useFetchFollowingByUserId.js.map +1 -1
  169. package/dist/esm/hooks/reports/useFetchModeratedReports.d.ts +11 -4
  170. package/dist/esm/hooks/reports/useFetchModeratedReports.js +7 -2
  171. package/dist/esm/hooks/reports/useFetchModeratedReports.js.map +1 -1
  172. package/dist/esm/hooks/search/useAskContent.d.ts +8 -0
  173. package/dist/esm/hooks/search/useAskContent.js +13 -2
  174. package/dist/esm/hooks/search/useAskContent.js.map +1 -1
  175. package/dist/esm/hooks/search/useSearchContent.d.ts +8 -0
  176. package/dist/esm/hooks/search/useSearchContent.js +7 -2
  177. package/dist/esm/hooks/search/useSearchContent.js.map +1 -1
  178. package/dist/esm/hooks/spaces/useFetchSpaceMembers.d.ts +7 -0
  179. package/dist/esm/hooks/spaces/useFetchSpaceMembers.js +7 -2
  180. package/dist/esm/hooks/spaces/useFetchSpaceMembers.js.map +1 -1
  181. package/dist/esm/hooks/spaces/useFetchSpaceTeam.d.ts +7 -0
  182. package/dist/esm/hooks/spaces/useFetchSpaceTeam.js +7 -2
  183. package/dist/esm/hooks/spaces/useFetchSpaceTeam.js.map +1 -1
  184. package/dist/esm/hooks/user/useUserActions.js +3 -1
  185. package/dist/esm/hooks/user/useUserActions.js.map +1 -1
  186. package/dist/esm/hooks/users/useFetchUser.d.ts +8 -0
  187. package/dist/esm/hooks/users/useFetchUser.js +9 -4
  188. package/dist/esm/hooks/users/useFetchUser.js.map +1 -1
  189. package/dist/esm/hooks/users/useFetchUserByForeignId.d.ts +8 -0
  190. package/dist/esm/hooks/users/useFetchUserByForeignId.js +10 -5
  191. package/dist/esm/hooks/users/useFetchUserByForeignId.js.map +1 -1
  192. package/dist/esm/hooks/users/useFetchUserByUsername.d.ts +8 -0
  193. package/dist/esm/hooks/users/useFetchUserByUsername.js +10 -5
  194. package/dist/esm/hooks/users/useFetchUserByUsername.js.map +1 -1
  195. package/dist/esm/hooks/users/useFetchUserSuggestions.d.ts +8 -0
  196. package/dist/esm/hooks/users/useFetchUserSuggestions.js +7 -4
  197. package/dist/esm/hooks/users/useFetchUserSuggestions.js.map +1 -1
  198. package/dist/esm/interfaces/models/ChatMessage.d.ts +5 -5
  199. package/dist/esm/interfaces/models/Collection.d.ts +2 -2
  200. package/dist/esm/interfaces/models/Comment.d.ts +6 -6
  201. package/dist/esm/interfaces/models/Conversation.d.ts +3 -3
  202. package/dist/esm/interfaces/models/ConversationMember.d.ts +5 -5
  203. package/dist/esm/interfaces/models/Entity.d.ts +5 -5
  204. package/dist/esm/interfaces/models/File.d.ts +4 -4
  205. package/dist/esm/interfaces/models/Follow.d.ts +1 -1
  206. package/dist/esm/interfaces/models/Project.d.ts +3 -3
  207. package/dist/esm/interfaces/models/Rule.d.ts +2 -2
  208. package/dist/esm/interfaces/models/Space.d.ts +8 -8
  209. package/dist/esm/interfaces/models/SpaceMember.d.ts +3 -3
  210. package/dist/esm/interfaces/models/User.d.ts +7 -6
  211. package/dist/esm/store/api/entityListsApi.d.ts +2 -0
  212. package/dist/esm/store/api/entityListsApi.js +3 -1
  213. package/dist/esm/store/api/entityListsApi.js.map +1 -1
  214. package/dist/esm/store/slices/chatSlice.js +1 -1
  215. package/dist/esm/store/slices/chatSlice.js.map +1 -1
  216. package/dist/esm/store/slices/collectionsSlice.d.ts +836 -798
  217. package/dist/esm/store/slices/entityListsSlice.d.ts +545 -480
  218. package/dist/esm/store/slices/entityListsSlice.js +10 -0
  219. package/dist/esm/store/slices/entityListsSlice.js.map +1 -1
  220. package/dist/esm/store/slices/spaceListsSlice.d.ts +132 -132
  221. package/dist/esm/store/slices/userSlice.d.ts +120 -112
  222. package/dist/esm/types/socket.d.ts +2 -2
  223. package/package.json +1 -1
@@ -56,11 +56,11 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
56
56
  format: string;
57
57
  quality: number;
58
58
  exifStripped: boolean;
59
- createdAt: Date;
60
- updatedAt: Date;
59
+ createdAt: string;
60
+ updatedAt: string;
61
61
  } | undefined;
62
- createdAt: Date;
63
- updatedAt: Date;
62
+ createdAt: string;
63
+ updatedAt: string;
64
64
  } | null | undefined;
65
65
  bannerFile?: {
66
66
  id: string;
@@ -97,14 +97,14 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
97
97
  format: string;
98
98
  quality: number;
99
99
  exifStripped: boolean;
100
- createdAt: Date;
101
- updatedAt: Date;
100
+ createdAt: string;
101
+ updatedAt: string;
102
102
  } | undefined;
103
- createdAt: Date;
104
- updatedAt: Date;
103
+ createdAt: string;
104
+ updatedAt: string;
105
105
  } | null | undefined;
106
106
  bio: string | null;
107
- birthdate: Date | null;
107
+ birthdate: string | null;
108
108
  location: {
109
109
  type: "Point";
110
110
  coordinates: [number, number];
@@ -113,15 +113,16 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
113
113
  [x: string]: any;
114
114
  };
115
115
  reputation: number;
116
+ spaceReputation?: number | undefined;
116
117
  isVerified: boolean;
117
118
  isActive: boolean;
118
- lastActive: Date;
119
- createdAt: Date;
120
- updatedAt: Date;
119
+ lastActive: string;
120
+ createdAt: string;
121
+ updatedAt: string;
121
122
  suspensions: {
122
123
  reason: string | null;
123
- startDate: Date;
124
- endDate: Date | null;
124
+ startDate: string;
125
+ endDate: string | null;
125
126
  }[];
126
127
  authMethods: string[];
127
128
  } | null;
@@ -177,11 +178,11 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
177
178
  format: string;
178
179
  quality: number;
179
180
  exifStripped: boolean;
180
- createdAt: Date;
181
- updatedAt: Date;
181
+ createdAt: string;
182
+ updatedAt: string;
182
183
  } | undefined;
183
- createdAt: Date;
184
- updatedAt: Date;
184
+ createdAt: string;
185
+ updatedAt: string;
185
186
  } | null | undefined;
186
187
  bannerFile?: {
187
188
  id: string;
@@ -218,14 +219,14 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
218
219
  format: string;
219
220
  quality: number;
220
221
  exifStripped: boolean;
221
- createdAt: Date;
222
- updatedAt: Date;
222
+ createdAt: string;
223
+ updatedAt: string;
223
224
  } | undefined;
224
- createdAt: Date;
225
- updatedAt: Date;
225
+ createdAt: string;
226
+ updatedAt: string;
226
227
  } | null | undefined;
227
228
  bio: string | null;
228
- birthdate: Date | null;
229
+ birthdate: string | null;
229
230
  location: {
230
231
  type: "Point";
231
232
  coordinates: [number, number];
@@ -234,15 +235,16 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
234
235
  [x: string]: any;
235
236
  };
236
237
  reputation: number;
238
+ spaceReputation?: number | undefined;
237
239
  isVerified: boolean;
238
240
  isActive: boolean;
239
- lastActive: Date;
240
- createdAt: Date;
241
- updatedAt: Date;
241
+ lastActive: string;
242
+ createdAt: string;
243
+ updatedAt: string;
242
244
  suspensions: {
243
245
  reason: string | null;
244
- startDate: Date;
245
- endDate: Date | null;
246
+ startDate: string;
247
+ endDate: string | null;
246
248
  }[];
247
249
  authMethods: string[];
248
250
  } | null;
@@ -298,11 +300,11 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
298
300
  format: string;
299
301
  quality: number;
300
302
  exifStripped: boolean;
301
- createdAt: Date;
302
- updatedAt: Date;
303
+ createdAt: string;
304
+ updatedAt: string;
303
305
  } | undefined;
304
- createdAt: Date;
305
- updatedAt: Date;
306
+ createdAt: string;
307
+ updatedAt: string;
306
308
  } | null | undefined;
307
309
  bannerFile?: {
308
310
  id: string;
@@ -339,14 +341,14 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
339
341
  format: string;
340
342
  quality: number;
341
343
  exifStripped: boolean;
342
- createdAt: Date;
343
- updatedAt: Date;
344
+ createdAt: string;
345
+ updatedAt: string;
344
346
  } | undefined;
345
- createdAt: Date;
346
- updatedAt: Date;
347
+ createdAt: string;
348
+ updatedAt: string;
347
349
  } | null | undefined;
348
350
  bio: string | null;
349
- birthdate: Date | null;
351
+ birthdate: string | null;
350
352
  location: {
351
353
  type: "Point";
352
354
  coordinates: [number, number];
@@ -355,15 +357,16 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
355
357
  [x: string]: any;
356
358
  };
357
359
  reputation: number;
360
+ spaceReputation?: number | undefined;
358
361
  isVerified: boolean;
359
362
  isActive: boolean;
360
- lastActive: Date;
361
- createdAt: Date;
362
- updatedAt: Date;
363
+ lastActive: string;
364
+ createdAt: string;
365
+ updatedAt: string;
363
366
  suspensions: {
364
367
  reason: string | null;
365
- startDate: Date;
366
- endDate: Date | null;
368
+ startDate: string;
369
+ endDate: string | null;
367
370
  }[];
368
371
  authMethods: string[];
369
372
  } | null;
@@ -419,11 +422,11 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
419
422
  format: string;
420
423
  quality: number;
421
424
  exifStripped: boolean;
422
- createdAt: Date;
423
- updatedAt: Date;
425
+ createdAt: string;
426
+ updatedAt: string;
424
427
  } | undefined;
425
- createdAt: Date;
426
- updatedAt: Date;
428
+ createdAt: string;
429
+ updatedAt: string;
427
430
  } | null | undefined;
428
431
  bannerFile?: {
429
432
  id: string;
@@ -460,14 +463,14 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
460
463
  format: string;
461
464
  quality: number;
462
465
  exifStripped: boolean;
463
- createdAt: Date;
464
- updatedAt: Date;
466
+ createdAt: string;
467
+ updatedAt: string;
465
468
  } | undefined;
466
- createdAt: Date;
467
- updatedAt: Date;
469
+ createdAt: string;
470
+ updatedAt: string;
468
471
  } | null | undefined;
469
472
  bio: string | null;
470
- birthdate: Date | null;
473
+ birthdate: string | null;
471
474
  location: {
472
475
  type: "Point";
473
476
  coordinates: [number, number];
@@ -476,15 +479,16 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
476
479
  [x: string]: any;
477
480
  };
478
481
  reputation: number;
482
+ spaceReputation?: number | undefined;
479
483
  isVerified: boolean;
480
484
  isActive: boolean;
481
- lastActive: Date;
482
- createdAt: Date;
483
- updatedAt: Date;
485
+ lastActive: string;
486
+ createdAt: string;
487
+ updatedAt: string;
484
488
  suspensions: {
485
489
  reason: string | null;
486
- startDate: Date;
487
- endDate: Date | null;
490
+ startDate: string;
491
+ endDate: string | null;
488
492
  }[];
489
493
  authMethods: string[];
490
494
  } | null;
@@ -540,11 +544,11 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
540
544
  format: string;
541
545
  quality: number;
542
546
  exifStripped: boolean;
543
- createdAt: Date;
544
- updatedAt: Date;
547
+ createdAt: string;
548
+ updatedAt: string;
545
549
  } | undefined;
546
- createdAt: Date;
547
- updatedAt: Date;
550
+ createdAt: string;
551
+ updatedAt: string;
548
552
  } | null | undefined;
549
553
  bannerFile?: {
550
554
  id: string;
@@ -581,14 +585,14 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
581
585
  format: string;
582
586
  quality: number;
583
587
  exifStripped: boolean;
584
- createdAt: Date;
585
- updatedAt: Date;
588
+ createdAt: string;
589
+ updatedAt: string;
586
590
  } | undefined;
587
- createdAt: Date;
588
- updatedAt: Date;
591
+ createdAt: string;
592
+ updatedAt: string;
589
593
  } | null | undefined;
590
594
  bio: string | null;
591
- birthdate: Date | null;
595
+ birthdate: string | null;
592
596
  location: {
593
597
  type: "Point";
594
598
  coordinates: [number, number];
@@ -597,15 +601,16 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
597
601
  [x: string]: any;
598
602
  };
599
603
  reputation: number;
604
+ spaceReputation?: number | undefined;
600
605
  isVerified: boolean;
601
606
  isActive: boolean;
602
- lastActive: Date;
603
- createdAt: Date;
604
- updatedAt: Date;
607
+ lastActive: string;
608
+ createdAt: string;
609
+ updatedAt: string;
605
610
  suspensions: {
606
611
  reason: string | null;
607
- startDate: Date;
608
- endDate: Date | null;
612
+ startDate: string;
613
+ endDate: string | null;
609
614
  }[];
610
615
  authMethods: string[];
611
616
  } | null;
@@ -661,11 +666,11 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
661
666
  format: string;
662
667
  quality: number;
663
668
  exifStripped: boolean;
664
- createdAt: Date;
665
- updatedAt: Date;
669
+ createdAt: string;
670
+ updatedAt: string;
666
671
  } | undefined;
667
- createdAt: Date;
668
- updatedAt: Date;
672
+ createdAt: string;
673
+ updatedAt: string;
669
674
  } | null | undefined;
670
675
  bannerFile?: {
671
676
  id: string;
@@ -702,14 +707,14 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
702
707
  format: string;
703
708
  quality: number;
704
709
  exifStripped: boolean;
705
- createdAt: Date;
706
- updatedAt: Date;
710
+ createdAt: string;
711
+ updatedAt: string;
707
712
  } | undefined;
708
- createdAt: Date;
709
- updatedAt: Date;
713
+ createdAt: string;
714
+ updatedAt: string;
710
715
  } | null | undefined;
711
716
  bio: string | null;
712
- birthdate: Date | null;
717
+ birthdate: string | null;
713
718
  location: {
714
719
  type: "Point";
715
720
  coordinates: [number, number];
@@ -718,15 +723,16 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
718
723
  [x: string]: any;
719
724
  };
720
725
  reputation: number;
726
+ spaceReputation?: number | undefined;
721
727
  isVerified: boolean;
722
728
  isActive: boolean;
723
- lastActive: Date;
724
- createdAt: Date;
725
- updatedAt: Date;
729
+ lastActive: string;
730
+ createdAt: string;
731
+ updatedAt: string;
726
732
  suspensions: {
727
733
  reason: string | null;
728
- startDate: Date;
729
- endDate: Date | null;
734
+ startDate: string;
735
+ endDate: string | null;
730
736
  }[];
731
737
  authMethods: string[];
732
738
  } | null;
@@ -782,11 +788,11 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
782
788
  format: string;
783
789
  quality: number;
784
790
  exifStripped: boolean;
785
- createdAt: Date;
786
- updatedAt: Date;
791
+ createdAt: string;
792
+ updatedAt: string;
787
793
  } | undefined;
788
- createdAt: Date;
789
- updatedAt: Date;
794
+ createdAt: string;
795
+ updatedAt: string;
790
796
  } | null | undefined;
791
797
  bannerFile?: {
792
798
  id: string;
@@ -823,14 +829,14 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
823
829
  format: string;
824
830
  quality: number;
825
831
  exifStripped: boolean;
826
- createdAt: Date;
827
- updatedAt: Date;
832
+ createdAt: string;
833
+ updatedAt: string;
828
834
  } | undefined;
829
- createdAt: Date;
830
- updatedAt: Date;
835
+ createdAt: string;
836
+ updatedAt: string;
831
837
  } | null | undefined;
832
838
  bio: string | null;
833
- birthdate: Date | null;
839
+ birthdate: string | null;
834
840
  location: {
835
841
  type: "Point";
836
842
  coordinates: [number, number];
@@ -839,15 +845,16 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
839
845
  [x: string]: any;
840
846
  };
841
847
  reputation: number;
848
+ spaceReputation?: number | undefined;
842
849
  isVerified: boolean;
843
850
  isActive: boolean;
844
- lastActive: Date;
845
- createdAt: Date;
846
- updatedAt: Date;
851
+ lastActive: string;
852
+ createdAt: string;
853
+ updatedAt: string;
847
854
  suspensions: {
848
855
  reason: string | null;
849
- startDate: Date;
850
- endDate: Date | null;
856
+ startDate: string;
857
+ endDate: string | null;
851
858
  }[];
852
859
  authMethods: string[];
853
860
  } | null;
@@ -903,11 +910,11 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
903
910
  format: string;
904
911
  quality: number;
905
912
  exifStripped: boolean;
906
- createdAt: Date;
907
- updatedAt: Date;
913
+ createdAt: string;
914
+ updatedAt: string;
908
915
  } | undefined;
909
- createdAt: Date;
910
- updatedAt: Date;
916
+ createdAt: string;
917
+ updatedAt: string;
911
918
  } | null | undefined;
912
919
  bannerFile?: {
913
920
  id: string;
@@ -944,14 +951,14 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
944
951
  format: string;
945
952
  quality: number;
946
953
  exifStripped: boolean;
947
- createdAt: Date;
948
- updatedAt: Date;
954
+ createdAt: string;
955
+ updatedAt: string;
949
956
  } | undefined;
950
- createdAt: Date;
951
- updatedAt: Date;
957
+ createdAt: string;
958
+ updatedAt: string;
952
959
  } | null | undefined;
953
960
  bio: string | null;
954
- birthdate: Date | null;
961
+ birthdate: string | null;
955
962
  location: {
956
963
  type: "Point";
957
964
  coordinates: [number, number];
@@ -960,15 +967,16 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
960
967
  [x: string]: any;
961
968
  };
962
969
  reputation: number;
970
+ spaceReputation?: number | undefined;
963
971
  isVerified: boolean;
964
972
  isActive: boolean;
965
- lastActive: Date;
966
- createdAt: Date;
967
- updatedAt: Date;
973
+ lastActive: string;
974
+ createdAt: string;
975
+ updatedAt: string;
968
976
  suspensions: {
969
977
  reason: string | null;
970
- startDate: Date;
971
- endDate: Date | null;
978
+ startDate: string;
979
+ endDate: string | null;
972
980
  }[];
973
981
  authMethods: string[];
974
982
  } | null;
@@ -10,12 +10,12 @@ export interface ServerToClientEvents {
10
10
  gif: ChatMessage["gif"];
11
11
  mentions: ChatMessage["mentions"];
12
12
  metadata: Record<string, any>;
13
- editedAt: Date | null;
13
+ editedAt: string | null;
14
14
  }) => void;
15
15
  "message:deleted": (payload: {
16
16
  messageId: string;
17
17
  conversationId: string;
18
- userDeletedAt: Date;
18
+ userDeletedAt: string;
19
19
  }) => void;
20
20
  "message:removed": (payload: {
21
21
  messageId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sublay/core",
3
- "version": "7.3.0",
3
+ "version": "7.4.1",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "author": "Sublay, maintained by Yanay Tsabary",