polfan-server-js-client 0.1.59 → 0.1.92

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 (301) hide show
  1. package/.idea/vcs.xml +1 -0
  2. package/build/index.js +174 -99
  3. package/build/index.js.map +1 -1
  4. package/build/types/AbstractChatClient.d.ts +14 -4
  5. package/build/types/Permissions.d.ts +4 -0
  6. package/build/types/state-tracker/MessagesManager.d.ts +16 -10
  7. package/build/types/state-tracker/RoomsManager.d.ts +1 -0
  8. package/build/types/types/dist/index.d.ts +1 -0
  9. package/build/types/types/dist/schemes/AckReport.d.ts +1 -0
  10. package/build/types/types/dist/schemes/ChatLocation.d.ts +1 -0
  11. package/build/types/types/dist/schemes/Envelope.d.ts +1 -0
  12. package/build/types/types/dist/schemes/FollowedTopic.d.ts +1 -0
  13. package/build/types/types/dist/schemes/Message.d.ts +1 -0
  14. package/build/types/types/dist/schemes/PermissionOverwritesValue.d.ts +1 -0
  15. package/build/types/types/dist/schemes/Role.d.ts +1 -0
  16. package/build/types/types/dist/schemes/Room.d.ts +1 -0
  17. package/build/types/types/dist/schemes/RoomMember.d.ts +1 -0
  18. package/build/types/types/dist/schemes/RoomSummary.d.ts +1 -0
  19. package/build/types/types/dist/schemes/Space.d.ts +1 -0
  20. package/build/types/types/dist/schemes/SpaceMember.d.ts +1 -0
  21. package/build/types/types/dist/schemes/Topic.d.ts +1 -0
  22. package/build/types/types/dist/schemes/User.d.ts +1 -0
  23. package/build/types/types/dist/schemes/UserState.d.ts +1 -0
  24. package/build/types/types/dist/schemes/commands/Ack.d.ts +1 -0
  25. package/build/types/types/dist/schemes/commands/AssignRole.d.ts +1 -0
  26. package/build/types/types/dist/schemes/commands/CreateMessage.d.ts +1 -0
  27. package/build/types/types/dist/schemes/commands/CreateOwner.d.ts +1 -0
  28. package/build/types/types/dist/schemes/commands/CreateRole.d.ts +1 -0
  29. package/build/types/types/dist/schemes/commands/CreateRoom.d.ts +1 -0
  30. package/build/types/types/dist/schemes/commands/CreateSpace.d.ts +1 -0
  31. package/build/types/types/dist/schemes/commands/CreateTopic.d.ts +1 -0
  32. package/build/types/types/dist/schemes/commands/DeassignRole.d.ts +1 -0
  33. package/build/types/types/dist/schemes/commands/DeleteOwner.d.ts +1 -0
  34. package/build/types/types/dist/schemes/commands/DeleteRole.d.ts +1 -0
  35. package/build/types/types/dist/schemes/commands/DeleteRoom.d.ts +1 -0
  36. package/build/types/types/dist/schemes/commands/DeleteSpace.d.ts +1 -0
  37. package/build/types/types/dist/schemes/commands/DeleteTopic.d.ts +1 -0
  38. package/build/types/types/dist/schemes/commands/FollowTopic.d.ts +1 -0
  39. package/build/types/types/dist/schemes/commands/GetAckReports.d.ts +1 -0
  40. package/build/types/types/dist/schemes/commands/GetComputedPermissions.d.ts +1 -0
  41. package/build/types/types/dist/schemes/commands/GetFollowedTopics.d.ts +1 -0
  42. package/build/types/types/dist/schemes/commands/GetOwners.d.ts +1 -0
  43. package/build/types/types/dist/schemes/commands/GetPermissionOverwriteTargets.d.ts +1 -0
  44. package/build/types/types/dist/schemes/commands/GetPermissionOverwrites.d.ts +1 -0
  45. package/build/types/types/dist/schemes/commands/GetRoomMembers.d.ts +1 -0
  46. package/build/types/types/dist/schemes/commands/GetSession.d.ts +1 -0
  47. package/build/types/types/dist/schemes/commands/GetSpaceMembers.d.ts +1 -0
  48. package/build/types/types/dist/schemes/commands/GetSpaceRooms.d.ts +1 -0
  49. package/build/types/types/dist/schemes/commands/JoinRoom.d.ts +1 -0
  50. package/build/types/types/dist/schemes/commands/JoinSpace.d.ts +1 -0
  51. package/build/types/types/dist/schemes/commands/LeaveRoom.d.ts +1 -0
  52. package/build/types/types/dist/schemes/commands/LeaveSpace.d.ts +1 -0
  53. package/build/types/types/dist/schemes/commands/SetPermissionOverwrites.d.ts +1 -0
  54. package/build/types/types/dist/schemes/commands/UnfollowTopic.d.ts +1 -0
  55. package/build/types/types/dist/schemes/commands/UpdateRole.d.ts +1 -0
  56. package/build/types/types/dist/schemes/commands/UpdateRoom.d.ts +1 -0
  57. package/build/types/types/dist/schemes/commands/UpdateSpace.d.ts +1 -0
  58. package/build/types/types/dist/schemes/events/AckReports.d.ts +1 -0
  59. package/build/types/types/dist/schemes/events/Bye.d.ts +1 -0
  60. package/build/types/types/dist/schemes/events/ComputedPermissions.d.ts +1 -0
  61. package/build/types/types/dist/schemes/events/Error.d.ts +1 -0
  62. package/build/types/types/dist/schemes/events/FollowedTopics.d.ts +1 -0
  63. package/build/types/types/dist/schemes/events/NewMessage.d.ts +1 -0
  64. package/build/types/types/dist/schemes/events/NewRole.d.ts +1 -0
  65. package/build/types/types/dist/schemes/events/NewRoom.d.ts +1 -0
  66. package/build/types/types/dist/schemes/events/NewTopic.d.ts +1 -0
  67. package/build/types/types/dist/schemes/events/Ok.d.ts +1 -0
  68. package/build/types/types/dist/schemes/events/Owners.d.ts +1 -0
  69. package/build/types/types/dist/schemes/events/PermissionOverwriteTargets.d.ts +1 -0
  70. package/build/types/types/dist/schemes/events/PermissionOverwrites.d.ts +1 -0
  71. package/build/types/types/dist/schemes/events/PermissionOverwritesUpdated.d.ts +1 -0
  72. package/build/types/types/dist/schemes/events/RoleDeleted.d.ts +1 -0
  73. package/build/types/types/dist/schemes/events/RoleUpdated.d.ts +1 -0
  74. package/build/types/types/dist/schemes/events/RoomDeleted.d.ts +1 -0
  75. package/build/types/types/dist/schemes/events/RoomJoined.d.ts +1 -0
  76. package/build/types/types/dist/schemes/events/RoomLeft.d.ts +1 -0
  77. package/build/types/types/dist/schemes/events/RoomMemberJoined.d.ts +1 -0
  78. package/build/types/types/dist/schemes/events/RoomMemberLeft.d.ts +1 -0
  79. package/build/types/types/dist/schemes/events/RoomMemberUpdated.d.ts +1 -0
  80. package/build/types/types/dist/schemes/events/RoomMembers.d.ts +1 -0
  81. package/build/types/types/dist/schemes/events/RoomUpdated.d.ts +1 -0
  82. package/build/types/types/dist/schemes/events/Session.d.ts +1 -0
  83. package/build/types/types/dist/schemes/events/SpaceDeleted.d.ts +1 -0
  84. package/build/types/types/dist/schemes/events/SpaceJoined.d.ts +1 -0
  85. package/build/types/types/dist/schemes/events/SpaceLeft.d.ts +1 -0
  86. package/build/types/types/dist/schemes/events/SpaceMemberJoined.d.ts +1 -0
  87. package/build/types/types/dist/schemes/events/SpaceMemberLeft.d.ts +1 -0
  88. package/build/types/types/dist/schemes/events/SpaceMemberUpdated.d.ts +1 -0
  89. package/build/types/types/dist/schemes/events/SpaceMembers.d.ts +1 -0
  90. package/build/types/types/dist/schemes/events/SpaceRooms.d.ts +1 -0
  91. package/build/types/types/dist/schemes/events/SpaceUpdated.d.ts +1 -0
  92. package/build/types/types/dist/schemes/events/TopicDeleted.d.ts +1 -0
  93. package/build/types/types/dist/schemes/events/TopicFollowed.d.ts +1 -0
  94. package/build/types/types/dist/schemes/events/TopicUnfollowed.d.ts +1 -0
  95. package/build/types/types/dist/schemes/events/UserUpdated.d.ts +1 -0
  96. package/build/types/types/src/index.d.ts +9 -4
  97. package/build/types/types/src/schemes/FollowedTopic.d.ts +7 -0
  98. package/build/types/types/src/schemes/Room.d.ts +1 -1
  99. package/build/types/types/src/schemes/Topic.d.ts +5 -1
  100. package/build/types/types/src/schemes/commands/CreateTopic.d.ts +2 -2
  101. package/build/types/types/src/schemes/commands/FollowTopic.d.ts +4 -0
  102. package/build/types/types/src/schemes/commands/GetFollowedTopics.d.ts +4 -0
  103. package/build/types/types/src/schemes/commands/UnfollowTopic.d.ts +4 -0
  104. package/build/types/types/src/schemes/events/FollowedTopics.d.ts +4 -0
  105. package/build/types/types/src/schemes/events/TopicFollowed.d.ts +4 -0
  106. package/build/types/types/src/schemes/events/TopicUnfollowed.d.ts +4 -0
  107. package/package.json +1 -1
  108. package/src/AbstractChatClient.ts +13 -5
  109. package/src/Permissions.ts +8 -7
  110. package/src/state-tracker/MessagesManager.ts +113 -57
  111. package/src/state-tracker/RoomsManager.ts +15 -0
  112. package/src/types/dist/index.d.ts +87 -0
  113. package/src/types/dist/index.js +2 -0
  114. package/src/types/dist/schemes/AckReport.js +2 -0
  115. package/src/types/dist/schemes/ChatLocation.d.ts +5 -0
  116. package/src/types/dist/schemes/ChatLocation.js +2 -0
  117. package/src/types/dist/schemes/Envelope.d.ts +5 -0
  118. package/src/types/dist/schemes/Envelope.js +2 -0
  119. package/src/types/dist/schemes/FollowedTopic.d.ts +7 -0
  120. package/src/types/dist/schemes/FollowedTopic.js +2 -0
  121. package/src/types/dist/schemes/Message.d.ts +7 -0
  122. package/src/types/dist/schemes/Message.js +2 -0
  123. package/src/types/dist/schemes/PermissionOverwritesValue.d.ts +4 -0
  124. package/src/types/dist/schemes/PermissionOverwritesValue.js +2 -0
  125. package/src/types/dist/schemes/Role.d.ts +6 -0
  126. package/src/types/dist/schemes/Role.js +2 -0
  127. package/src/types/dist/schemes/Room.d.ts +10 -0
  128. package/src/types/dist/schemes/Room.js +2 -0
  129. package/src/types/dist/schemes/RoomMember.d.ts +7 -0
  130. package/src/types/dist/schemes/RoomMember.js +2 -0
  131. package/src/types/dist/schemes/RoomSummary.d.ts +5 -0
  132. package/src/types/dist/schemes/RoomSummary.js +2 -0
  133. package/src/types/dist/schemes/Space.d.ts +6 -0
  134. package/src/types/dist/schemes/Space.js +2 -0
  135. package/src/types/dist/schemes/SpaceMember.d.ts +5 -0
  136. package/src/types/dist/schemes/SpaceMember.js +2 -0
  137. package/src/types/dist/schemes/Topic.d.ts +9 -0
  138. package/src/types/dist/schemes/Topic.js +2 -0
  139. package/src/types/dist/schemes/User.d.ts +8 -0
  140. package/src/types/dist/schemes/User.js +2 -0
  141. package/src/types/dist/schemes/UserState.d.ts +6 -0
  142. package/src/types/dist/schemes/UserState.js +2 -0
  143. package/src/types/dist/schemes/commands/Ack.d.ts +5 -0
  144. package/src/types/dist/schemes/commands/Ack.js +2 -0
  145. package/src/types/dist/schemes/commands/AssignRole.d.ts +6 -0
  146. package/src/types/dist/schemes/commands/AssignRole.js +2 -0
  147. package/src/types/dist/schemes/commands/CreateMessage.d.ts +5 -0
  148. package/src/types/dist/schemes/commands/CreateMessage.js +2 -0
  149. package/src/types/dist/schemes/commands/CreateOwner.d.ts +5 -0
  150. package/src/types/dist/schemes/commands/CreateOwner.js +2 -0
  151. package/src/types/dist/schemes/commands/CreateRole.d.ts +5 -0
  152. package/src/types/dist/schemes/commands/CreateRole.js +2 -0
  153. package/src/types/dist/schemes/commands/CreateRoom.d.ts +7 -0
  154. package/src/types/dist/schemes/commands/CreateRoom.js +2 -0
  155. package/src/types/dist/schemes/commands/CreateSpace.d.ts +3 -0
  156. package/src/types/dist/schemes/commands/CreateSpace.js +2 -0
  157. package/src/types/dist/schemes/commands/CreateTopic.d.ts +12 -0
  158. package/src/types/dist/schemes/commands/CreateTopic.js +2 -0
  159. package/src/types/dist/schemes/commands/DeassignRole.d.ts +6 -0
  160. package/src/types/dist/schemes/commands/DeassignRole.js +2 -0
  161. package/src/types/dist/schemes/commands/DeleteOwner.d.ts +5 -0
  162. package/src/types/dist/schemes/commands/DeleteOwner.js +2 -0
  163. package/src/types/dist/schemes/commands/DeleteRole.d.ts +4 -0
  164. package/src/types/dist/schemes/commands/DeleteRole.js +2 -0
  165. package/src/types/dist/schemes/commands/DeleteRoom.d.ts +3 -0
  166. package/src/types/dist/schemes/commands/DeleteRoom.js +2 -0
  167. package/src/types/dist/schemes/commands/DeleteSpace.d.ts +3 -0
  168. package/src/types/dist/schemes/commands/DeleteSpace.js +2 -0
  169. package/src/types/dist/schemes/commands/DeleteTopic.d.ts +4 -0
  170. package/src/types/dist/schemes/commands/DeleteTopic.js +2 -0
  171. package/src/types/dist/schemes/commands/FollowTopic.d.ts +4 -0
  172. package/src/types/dist/schemes/commands/FollowTopic.js +2 -0
  173. package/src/types/dist/schemes/commands/GetAckReports.js +2 -0
  174. package/src/types/dist/schemes/commands/GetComputedPermissions.d.ts +4 -0
  175. package/src/types/dist/schemes/commands/GetComputedPermissions.js +2 -0
  176. package/src/types/dist/schemes/commands/GetFollowedTopics.d.ts +4 -0
  177. package/src/types/dist/schemes/commands/GetFollowedTopics.js +2 -0
  178. package/src/types/dist/schemes/commands/GetOwners.d.ts +4 -0
  179. package/src/types/dist/schemes/commands/GetOwners.js +2 -0
  180. package/src/types/dist/schemes/commands/GetPermissionOverwriteTargets.d.ts +4 -0
  181. package/src/types/dist/schemes/commands/GetPermissionOverwriteTargets.js +2 -0
  182. package/src/types/dist/schemes/commands/GetPermissionOverwrites.d.ts +6 -0
  183. package/src/types/dist/schemes/commands/GetPermissionOverwrites.js +2 -0
  184. package/src/types/dist/schemes/commands/GetRoomMembers.d.ts +3 -0
  185. package/src/types/dist/schemes/commands/GetRoomMembers.js +2 -0
  186. package/src/types/dist/schemes/commands/GetSession.d.ts +2 -0
  187. package/src/types/dist/schemes/commands/GetSession.js +2 -0
  188. package/src/types/dist/schemes/commands/GetSpaceMembers.d.ts +3 -0
  189. package/src/types/dist/schemes/commands/GetSpaceMembers.js +2 -0
  190. package/src/types/dist/schemes/commands/GetSpaceRooms.d.ts +3 -0
  191. package/src/types/dist/schemes/commands/GetSpaceRooms.js +2 -0
  192. package/src/types/dist/schemes/commands/JoinRoom.d.ts +3 -0
  193. package/src/types/dist/schemes/commands/JoinRoom.js +2 -0
  194. package/src/types/dist/schemes/commands/JoinSpace.d.ts +3 -0
  195. package/src/types/dist/schemes/commands/JoinSpace.js +2 -0
  196. package/src/types/dist/schemes/commands/LeaveRoom.d.ts +3 -0
  197. package/src/types/dist/schemes/commands/LeaveRoom.js +2 -0
  198. package/src/types/dist/schemes/commands/LeaveSpace.d.ts +3 -0
  199. package/src/types/dist/schemes/commands/LeaveSpace.js +2 -0
  200. package/src/types/dist/schemes/commands/SetPermissionOverwrites.d.ts +8 -0
  201. package/src/types/dist/schemes/commands/SetPermissionOverwrites.js +2 -0
  202. package/src/types/dist/schemes/commands/UnfollowTopic.d.ts +4 -0
  203. package/src/types/dist/schemes/commands/UnfollowTopic.js +2 -0
  204. package/src/types/dist/schemes/commands/UpdateRole.d.ts +7 -0
  205. package/src/types/dist/schemes/commands/UpdateRole.js +2 -0
  206. package/src/types/dist/schemes/commands/UpdateRoom.d.ts +5 -0
  207. package/src/types/dist/schemes/commands/UpdateRoom.js +2 -0
  208. package/src/types/dist/schemes/commands/UpdateSpace.d.ts +4 -0
  209. package/src/types/dist/schemes/commands/UpdateSpace.js +2 -0
  210. package/src/types/dist/schemes/events/AckReports.d.ts +4 -0
  211. package/src/types/dist/schemes/events/AckReports.js +2 -0
  212. package/src/types/dist/schemes/events/Bye.d.ts +3 -0
  213. package/src/types/dist/schemes/events/Bye.js +2 -0
  214. package/src/types/dist/schemes/events/ComputedPermissions.d.ts +5 -0
  215. package/src/types/dist/schemes/events/ComputedPermissions.js +2 -0
  216. package/src/types/dist/schemes/events/Error.d.ts +4 -0
  217. package/src/types/dist/schemes/events/Error.js +2 -0
  218. package/src/types/dist/schemes/events/FollowedTopics.d.ts +4 -0
  219. package/src/types/dist/schemes/events/FollowedTopics.js +2 -0
  220. package/src/types/dist/schemes/events/NewMessage.d.ts +6 -0
  221. package/src/types/dist/schemes/events/NewMessage.js +2 -0
  222. package/src/types/dist/schemes/events/NewRole.d.ts +5 -0
  223. package/src/types/dist/schemes/events/NewRole.js +2 -0
  224. package/src/types/dist/schemes/events/NewRoom.d.ts +5 -0
  225. package/src/types/dist/schemes/events/NewRoom.js +2 -0
  226. package/src/types/dist/schemes/events/NewTopic.d.ts +5 -0
  227. package/src/types/dist/schemes/events/NewTopic.js +2 -0
  228. package/src/types/dist/schemes/events/Ok.d.ts +2 -0
  229. package/src/types/dist/schemes/events/Ok.js +2 -0
  230. package/src/types/dist/schemes/events/Owners.d.ts +8 -0
  231. package/src/types/dist/schemes/events/Owners.js +2 -0
  232. package/src/types/dist/schemes/events/PermissionOverwriteTargets.d.ts +10 -0
  233. package/src/types/dist/schemes/events/PermissionOverwriteTargets.js +2 -0
  234. package/src/types/dist/schemes/events/PermissionOverwrites.d.ts +8 -0
  235. package/src/types/dist/schemes/events/PermissionOverwrites.js +2 -0
  236. package/src/types/dist/schemes/events/PermissionOverwritesUpdated.d.ts +8 -0
  237. package/src/types/dist/schemes/events/PermissionOverwritesUpdated.js +2 -0
  238. package/src/types/dist/schemes/events/RoleDeleted.d.ts +4 -0
  239. package/src/types/dist/schemes/events/RoleDeleted.js +2 -0
  240. package/src/types/dist/schemes/events/RoleUpdated.d.ts +5 -0
  241. package/src/types/dist/schemes/events/RoleUpdated.js +2 -0
  242. package/src/types/dist/schemes/events/RoomDeleted.d.ts +3 -0
  243. package/src/types/dist/schemes/events/RoomDeleted.js +2 -0
  244. package/src/types/dist/schemes/events/RoomJoined.d.ts +4 -0
  245. package/src/types/dist/schemes/events/RoomJoined.js +2 -0
  246. package/src/types/dist/schemes/events/RoomLeft.d.ts +3 -0
  247. package/src/types/dist/schemes/events/RoomLeft.js +2 -0
  248. package/src/types/dist/schemes/events/RoomMemberJoined.d.ts +5 -0
  249. package/src/types/dist/schemes/events/RoomMemberJoined.js +2 -0
  250. package/src/types/dist/schemes/events/RoomMemberLeft.d.ts +4 -0
  251. package/src/types/dist/schemes/events/RoomMemberLeft.js +2 -0
  252. package/src/types/dist/schemes/events/RoomMemberUpdated.d.ts +6 -0
  253. package/src/types/dist/schemes/events/RoomMemberUpdated.js +2 -0
  254. package/src/types/dist/schemes/events/RoomMembers.d.ts +5 -0
  255. package/src/types/dist/schemes/events/RoomMembers.js +2 -0
  256. package/src/types/dist/schemes/events/RoomUpdated.d.ts +4 -0
  257. package/src/types/dist/schemes/events/RoomUpdated.js +2 -0
  258. package/src/types/dist/schemes/events/Session.d.ts +7 -0
  259. package/src/types/dist/schemes/events/Session.js +2 -0
  260. package/src/types/dist/schemes/events/SpaceDeleted.d.ts +3 -0
  261. package/src/types/dist/schemes/events/SpaceDeleted.js +2 -0
  262. package/src/types/dist/schemes/events/SpaceJoined.d.ts +4 -0
  263. package/src/types/dist/schemes/events/SpaceJoined.js +2 -0
  264. package/src/types/dist/schemes/events/SpaceLeft.d.ts +3 -0
  265. package/src/types/dist/schemes/events/SpaceLeft.js +2 -0
  266. package/src/types/dist/schemes/events/SpaceMemberJoined.d.ts +5 -0
  267. package/src/types/dist/schemes/events/SpaceMemberJoined.js +2 -0
  268. package/src/types/dist/schemes/events/SpaceMemberLeft.d.ts +4 -0
  269. package/src/types/dist/schemes/events/SpaceMemberLeft.js +2 -0
  270. package/src/types/dist/schemes/events/SpaceMemberUpdated.d.ts +6 -0
  271. package/src/types/dist/schemes/events/SpaceMemberUpdated.js +2 -0
  272. package/src/types/dist/schemes/events/SpaceMembers.d.ts +5 -0
  273. package/src/types/dist/schemes/events/SpaceMembers.js +2 -0
  274. package/src/types/dist/schemes/events/SpaceRooms.d.ts +5 -0
  275. package/src/types/dist/schemes/events/SpaceRooms.js +2 -0
  276. package/src/types/dist/schemes/events/SpaceUpdated.d.ts +4 -0
  277. package/src/types/dist/schemes/events/SpaceUpdated.js +2 -0
  278. package/src/types/dist/schemes/events/TopicDeleted.d.ts +4 -0
  279. package/src/types/dist/schemes/events/TopicDeleted.js +2 -0
  280. package/src/types/dist/schemes/events/TopicFollowed.d.ts +4 -0
  281. package/src/types/dist/schemes/events/TopicFollowed.js +2 -0
  282. package/src/types/dist/schemes/events/TopicUnfollowed.d.ts +4 -0
  283. package/src/types/dist/schemes/events/TopicUnfollowed.js +2 -0
  284. package/src/types/dist/schemes/events/UserUpdated.d.ts +4 -0
  285. package/src/types/dist/schemes/events/UserUpdated.js +2 -0
  286. package/src/types/src/index.ts +16 -6
  287. package/src/types/src/schemes/FollowedTopic.ts +8 -0
  288. package/src/types/src/schemes/Room.ts +1 -1
  289. package/src/types/src/schemes/Topic.ts +6 -1
  290. package/src/types/src/schemes/commands/CreateTopic.ts +2 -2
  291. package/src/types/src/schemes/commands/{GetAckReports.ts → FollowTopic.ts} +1 -1
  292. package/src/types/src/schemes/commands/GetFollowedTopics.ts +5 -0
  293. package/src/types/src/schemes/commands/UnfollowTopic.ts +5 -0
  294. package/src/types/src/schemes/events/FollowedTopics.ts +5 -0
  295. package/src/types/src/schemes/events/TopicFollowed.ts +5 -0
  296. package/src/types/src/schemes/events/TopicUnfollowed.ts +5 -0
  297. package/build/types/types/src/schemes/events/AckReports.d.ts +0 -4
  298. package/src/types/src/schemes/AckReport.ts +0 -7
  299. package/src/types/src/schemes/events/AckReports.ts +0 -5
  300. /package/{build/types/types/src → src/types/dist}/schemes/AckReport.d.ts +0 -0
  301. /package/{build/types/types/src → src/types/dist}/schemes/commands/GetAckReports.d.ts +0 -0
@@ -0,0 +1,5 @@
1
+ import { SpaceMember } from "../SpaceMember";
2
+ export interface SpaceMemberJoined {
3
+ spaceId: string;
4
+ member: SpaceMember;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface SpaceMemberLeft {
2
+ spaceId: string;
3
+ userId: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { SpaceMember } from "../SpaceMember";
2
+ export interface SpaceMemberUpdated {
3
+ spaceId: string;
4
+ userId: string;
5
+ member: SpaceMember;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { SpaceMember } from "../SpaceMember";
2
+ export interface SpaceMembers {
3
+ id: string;
4
+ members: SpaceMember[];
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { RoomSummary } from "../RoomSummary";
2
+ export interface SpaceRooms {
3
+ id: string;
4
+ summaries: RoomSummary[];
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { Space } from "../Space";
2
+ export interface SpaceUpdated {
3
+ space: Space;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface TopicDeleted {
3
+ location: ChatLocation;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { FollowedTopic } from "../FollowedTopic";
2
+ export interface TopicFollowed {
3
+ followedTopic: FollowedTopic;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface TopicUnfollowed {
3
+ location: ChatLocation;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { User } from "../User";
2
+ export interface UserUpdated {
3
+ user: User;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -61,10 +61,7 @@ import {CreateTopic} from "./schemes/commands/CreateTopic";
61
61
  import {DeleteTopic} from "./schemes/commands/DeleteTopic";
62
62
  import {CreateMessage} from "./schemes/commands/CreateMessage";
63
63
  import {UpdateRole} from "./schemes/commands/UpdateRole";
64
- import {GetAckReports} from "./schemes/commands/GetAckReports";
65
64
  import {Ack} from "./schemes/commands/Ack";
66
- import {AckReports} from "./schemes/events/AckReports";
67
- import {AckReport} from "./schemes/AckReport";
68
65
  import {UserUpdated} from "./schemes/events/UserUpdated";
69
66
  import {UpdateRoom} from "./schemes/commands/UpdateRoom";
70
67
  import {UpdateSpace} from "./schemes/commands/UpdateSpace";
@@ -79,12 +76,19 @@ import { GetOwners } from "./schemes/commands/GetOwners";
79
76
  import { Owners } from "./schemes/events/Owners";
80
77
  import { Ok } from "./schemes/events/Ok";
81
78
  import {RoomType} from "./schemes/Room";
79
+ import {MessageReference} from "./schemes/commands/CreateTopic";
80
+ import {FollowTopic} from "./schemes/commands/FollowTopic";
81
+ import {FollowedTopics} from "./schemes/events/FollowedTopics";
82
+ import {FollowedTopic} from "./schemes/FollowedTopic";
83
+ import {UnfollowTopic} from "./schemes/commands/UnfollowTopic";
84
+ import {TopicUnfollowed} from "./schemes/events/TopicUnfollowed";
85
+ import {TopicFollowed} from "./schemes/events/TopicFollowed";
86
+ import {GetFollowedTopics} from "./schemes/commands/GetFollowedTopics";
82
87
 
83
88
  export {
84
89
  // objects
85
90
  Envelope,
86
91
  Message,
87
- AckReport,
88
92
  Role,
89
93
  Room,
90
94
  RoomType,
@@ -93,18 +97,22 @@ export {
93
97
  Space,
94
98
  SpaceMember,
95
99
  Topic,
100
+ FollowedTopic,
96
101
  User,
97
102
  UserState,
98
103
  PermissionOverwritesValue,
99
104
  ChatLocation,
105
+ MessageReference,
100
106
  // events
101
107
  Bye,
102
108
  Error,
103
109
  NewMessage,
104
- AckReports,
105
110
  NewRole,
106
111
  NewRoom,
107
112
  NewTopic,
113
+ TopicFollowed,
114
+ TopicUnfollowed,
115
+ FollowedTopics,
108
116
  ComputedPermissions,
109
117
  PermissionOverwrites,
110
118
  PermissionOverwritesUpdated,
@@ -141,6 +149,9 @@ export {
141
149
  CreateRoom,
142
150
  CreateSpace,
143
151
  CreateTopic,
152
+ FollowTopic,
153
+ UnfollowTopic,
154
+ GetFollowedTopics,
144
155
  DeassignRole,
145
156
  DeleteRole,
146
157
  DeleteRoom,
@@ -153,7 +164,6 @@ export {
153
164
  GetSession,
154
165
  GetSpaceMembers,
155
166
  GetSpaceRooms,
156
- GetAckReports,
157
167
  JoinRoom,
158
168
  JoinSpace,
159
169
  LeaveRoom,
@@ -0,0 +1,8 @@
1
+ import {ChatLocation} from "./ChatLocation";
2
+
3
+ export interface FollowedTopic {
4
+ location: ChatLocation;
5
+ lastAckMessageId: string | null;
6
+ missed: number | null;
7
+ missedMoreThan: number | null;
8
+ }
@@ -1,6 +1,6 @@
1
1
  import {Topic} from "./Topic";
2
2
 
3
- export type RoomType = 'text';
3
+ export type RoomType = 'Text';
4
4
 
5
5
  export interface Room {
6
6
  id: string;
@@ -1,5 +1,10 @@
1
+ import {MessageReference} from "./commands/CreateTopic";
2
+ import {Message} from "./Message";
3
+
1
4
  export interface Topic {
2
5
  id: string;
3
6
  name: string;
4
- description: string;
7
+ messageCount: number;
8
+ messageRef?: MessageReference;
9
+ lastMessage?: Message;
5
10
  }
@@ -9,6 +9,6 @@ export interface MessageReference {
9
9
  export interface CreateTopic {
10
10
  location: ChatLocation;
11
11
  name: string;
12
- messageRef: MessageReference | null;
13
- initialMessage: Omit<CreateMessage, 'location'> | null;
12
+ messageRef?: MessageReference;
13
+ initialMessage?: Omit<CreateMessage, 'location'>;
14
14
  }
@@ -1,5 +1,5 @@
1
1
  import {ChatLocation} from "../ChatLocation";
2
2
 
3
- export interface GetAckReports {
3
+ export interface FollowTopic {
4
4
  location: ChatLocation;
5
5
  }
@@ -0,0 +1,5 @@
1
+ import {ChatLocation} from "../ChatLocation";
2
+
3
+ export interface GetFollowedTopics {
4
+ location: ChatLocation;
5
+ }
@@ -0,0 +1,5 @@
1
+ import {ChatLocation} from "../ChatLocation";
2
+
3
+ export interface UnfollowTopic {
4
+ location: ChatLocation;
5
+ }
@@ -0,0 +1,5 @@
1
+ import {FollowedTopic} from "../FollowedTopic";
2
+
3
+ export interface FollowedTopics {
4
+ followedTopics: FollowedTopic[];
5
+ }
@@ -0,0 +1,5 @@
1
+ import {FollowedTopic} from "../FollowedTopic";
2
+
3
+ export interface TopicFollowed {
4
+ followedTopic: FollowedTopic;
5
+ }
@@ -0,0 +1,5 @@
1
+ import {ChatLocation} from "../ChatLocation";
2
+
3
+ export interface TopicUnfollowed {
4
+ location: ChatLocation;
5
+ }
@@ -1,4 +0,0 @@
1
- import { AckReport } from "../AckReport";
2
- export interface AckReports {
3
- reports: AckReport[];
4
- }
@@ -1,7 +0,0 @@
1
- export interface AckReport {
2
- roomId: string;
3
- topicId: string;
4
- lastAckMessageId: string | null;
5
- missed: number | null;
6
- missedMoreThan: number | null;
7
- }
@@ -1,5 +0,0 @@
1
- import {AckReport} from "../AckReport";
2
-
3
- export interface AckReports {
4
- reports: AckReport[];
5
- }