wamygraphql 0.1.0 → 0.2.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.
@@ -6,3 +6,15 @@ mutation mutCreateComment($input: CreateCommentInput!) {
6
6
  }
7
7
  }
8
8
  }
9
+
10
+ mutation mutDeleteComment($id: UUID!) {
11
+ mutDeleteComment(id: $id)
12
+ }
13
+
14
+ mutation mutEditComment($id: UUID!, $content: String!) {
15
+ mutEditComment(id: $id, content: $content) {
16
+ id
17
+ content
18
+ hasMore
19
+ }
20
+ }
@@ -6,9 +6,26 @@ mutation mutSendMessage($peerID: UUID!, $content: String!) {
6
6
  ...FragPidLinkResp
7
7
  }
8
8
  createdAt
9
+ isEdited
9
10
  }
10
11
  }
11
12
 
12
13
  mutation mutMarkMessagePeerAsRead($peerID: UUID!) {
13
14
  mutMarkMessagePeerAsRead(peerID: $peerID)
14
15
  }
16
+
17
+ mutation mutDeleteMessage($peerID: UUID!, $createdAt: Time!) {
18
+ mutDeleteMessage(peerID: $peerID, createdAt: $createdAt)
19
+ }
20
+
21
+ mutation mutEditMessage($peerID: UUID!, $createdAt: Time!, $content: String!) {
22
+ mutEditMessage(peerID: $peerID, createdAt: $createdAt, content: $content) {
23
+ isFromMe
24
+ content
25
+ pidLinks {
26
+ ...FragPidLinkResp
27
+ }
28
+ createdAt
29
+ isEdited
30
+ }
31
+ }
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "wamygraphql",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Shared GraphQL operations (queries, mutations, fragments) for pmain, consumed by wamy and wamymobile codegen",
5
+ "scripts": {
6
+ "deploy": "npm publish"
7
+ },
5
8
  "files": [
6
9
  "query",
7
10
  "mutation",
@@ -18,6 +18,7 @@ query queryFetchMyMessagesByPeerID($peerID: UUID!) {
18
18
  ...FragPidLinkResp
19
19
  }
20
20
  createdAt
21
+ isEdited
21
22
  }
22
23
  }
23
24
  }