@messenger-box/platform-client 0.0.1-alpha.363 → 0.0.1-alpha.365

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.
@@ -2,13 +2,15 @@ mutation SendMessages(
2
2
  $channelId:String!,
3
3
  $content:String!,
4
4
  $files:[ID!],
5
- $postId: ID
5
+ $postId: ID,
6
+ $createdBy: ID
6
7
  ){
7
8
  sendMessage(
8
9
  channelId: $channelId,
9
10
  messageInput: {
10
11
  content: $content,
11
- files: $files
12
+ files: $files,
13
+ createdBy: $createdBy
12
14
  },
13
15
  postId: $postId
14
16
  ){
@@ -16,6 +18,20 @@ mutation SendMessages(
16
18
  }
17
19
  }
18
20
 
21
+ mutation SendPublicMessage(
22
+ $channelId: String!,
23
+ $messageInput: MessageInput!
24
+ $postId: ID
25
+ ){
26
+ sendPublicMessage(
27
+ channelId: $channelId,
28
+ messageInput: $messageInput,
29
+ postId: $postId
30
+ ){
31
+ ...Post
32
+ }
33
+ }
34
+
19
35
  mutation DeleteMessage(
20
36
  $messageId:String!,
21
37
  $channelId:String!
@@ -6,3 +6,12 @@ query Messages($channelId: ID,$parentId: String, $limit: Int! = 30, $skip: Int!
6
6
  totalCount
7
7
  }
8
8
  }
9
+
10
+ query PublicMessages($channelId: ID!) {
11
+ publicMessages(channelId: $channelId) {
12
+ totalCount
13
+ data {
14
+ ...Post
15
+ }
16
+ }
17
+ }
@@ -1,6 +1,6 @@
1
1
 
2
- subscription onChatMessageAdded {
3
- chatMessageAdded {
2
+ subscription onChatMessageAdded ($channelId: String, $directTo: String) {
3
+ chatMessageAdded (channelId: $channelId, directTo: $directTo) {
4
4
  ...Post
5
5
  }
6
6
  }
@@ -0,0 +1,5 @@
1
+ subscription onPublicPostAdded ($channelId: String!) {
2
+ publicPostAdded(channelId: $channelId) {
3
+ ...Post
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ subscription onThreadChatMessageAdded($channelId: String, $postParentId: String) {
2
+ threadChatMessageAdded(channelId: $channelId, postParentId: $postParentId) {
3
+ ...Post
4
+ }
5
+ }
@@ -0,0 +1,12 @@
1
+ subscription onThreadCreatedUpdated {
2
+ threadCreatedUpdated {
3
+ isCreated
4
+ isUpdated
5
+ lastMessage {
6
+ ...Post
7
+ }
8
+ data {
9
+ ...PostThread
10
+ }
11
+ }
12
+ }