wamygraphql 0.2.0 → 0.4.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 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
@@ -0,0 +1,5 @@
1
+ mutation mutCreateBroadcast($input: CreateBroadcastInput!) {
2
+ mutCreateBroadcast(input: $input) {
3
+ ...FragBroadcastResp
4
+ }
5
+ }
@@ -1,3 +1,11 @@
1
1
  mutation mutCreateEvent($input: CreateEventInput!) {
2
2
  mutCreateEvent(input: $input)
3
3
  }
4
+
5
+ mutation mutUpdateEventTime($input: UpdateEventTimeInput!) {
6
+ mutUpdateEventTime(input: $input) {
7
+ id
8
+ startTime
9
+ endTime
10
+ }
11
+ }
@@ -90,3 +90,11 @@ mutation mutAddGameToLeaderboard($input: AddGameToLeaderboardInput!) {
90
90
  }
91
91
  }
92
92
  }
93
+
94
+ mutation mutUpdateGameTime($input: UpdateGameTimeInput!) {
95
+ mutUpdateGameTime(input: $input) {
96
+ id
97
+ startTime
98
+ endTime
99
+ }
100
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wamygraphql",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Shared GraphQL operations (queries, mutations, fragments) for pmain, consumed by wamy and wamymobile codegen",
5
5
  "scripts": {
6
6
  "deploy": "npm publish"
@@ -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
+ }