wamygraphql 0.1.0 → 0.3.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.
- package/fragments.graphql +13 -0
- package/mutation/broadcast.graphql +5 -0
- package/mutation/comment.graphql +12 -0
- package/mutation/message.graphql +17 -0
- package/mutation/page/profile/event.graphql +8 -0
- package/mutation/page/profile/game.graphql +8 -0
- package/package.json +4 -1
- package/query/broadcast.graphql +23 -0
- package/query/message.graphql +1 -0
package/fragments.graphql
CHANGED
|
@@ -166,6 +166,19 @@ fragment FragPostResp on PostResp {
|
|
|
166
166
|
createdAt
|
|
167
167
|
isCreator
|
|
168
168
|
}
|
|
169
|
+
fragment FragBroadcastResp on BroadcastResp {
|
|
170
|
+
broadcastID
|
|
171
|
+
broadcastPID
|
|
172
|
+
interestID
|
|
173
|
+
content
|
|
174
|
+
hasMore
|
|
175
|
+
creator {
|
|
176
|
+
...FragShortUoiResp
|
|
177
|
+
}
|
|
178
|
+
createdAt
|
|
179
|
+
lat
|
|
180
|
+
lng
|
|
181
|
+
}
|
|
169
182
|
fragment FragSubjectReactionsInfoResp on SubjectReactionsInfoResp {
|
|
170
183
|
subjectID
|
|
171
184
|
isReacted
|
package/mutation/comment.graphql
CHANGED
|
@@ -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
|
+
}
|
package/mutation/message.graphql
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.3.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",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
query queryFetchBroadcastsNearby($input: FetchBroadcastsNearbyInput!) {
|
|
2
|
+
queryFetchBroadcastsNearby(input: $input) {
|
|
3
|
+
nearbyIndex
|
|
4
|
+
broadcasts {
|
|
5
|
+
...FragBroadcastResp
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
query queryFetchBroadcastsByCreatorID($creatorID: UUID!) {
|
|
11
|
+
queryFetchBroadcastsByCreatorID(creatorID: $creatorID) {
|
|
12
|
+
creatorID
|
|
13
|
+
broadcasts {
|
|
14
|
+
...FragBroadcastResp
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
query queryFetchBroadcastByPID($pid: String!) {
|
|
20
|
+
queryFetchBroadcastByPID(pid: $pid) {
|
|
21
|
+
...FragBroadcastResp
|
|
22
|
+
}
|
|
23
|
+
}
|