@fowgence/api-schema 1.0.1-dev.21987503868.0 → 1.0.1-dev.22142481340.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schema.gql +14 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fowgence/api-schema",
3
- "version": "1.0.1-dev.21987503868.0",
3
+ "version": "1.0.1-dev.22142481340.0",
4
4
  "description": "Auto-generated GraphQL schema for the Next.js frontend",
5
5
  "main": "schema.gql",
6
6
  "files": [
package/schema.gql CHANGED
@@ -59,6 +59,9 @@ type Media {
59
59
  createdAt: DateTime
60
60
  updatedAt: DateTime
61
61
  key: String!
62
+ fileName: String
63
+ mimeType: String
64
+ fileSize: Float
62
65
  }
63
66
 
64
67
  type Snippet {
@@ -105,7 +108,7 @@ type Post {
105
108
  updatedAt: DateTime
106
109
  title: String
107
110
  content: String
108
- images: [Media]
111
+ medias: [Media]
109
112
  snippets: [Snippet]
110
113
  author: User
111
114
  group: GroupModel
@@ -267,6 +270,16 @@ type Query {
267
270
  groupMembers(id: ID!, limit: Float, lastId: String): [GroupMemberModel]
268
271
  groupFollowers(id: ID!, limit: Float, lastId: String): [GroupFollowerModel]
269
272
  joinRequests(id: ID!, limit: Float, lastId: String): [JoinRequestModel]
273
+ post(id: ID!, limit: Float, lastId: String): Post
274
+ postsFeed(data: PostsQueryModel!): [Post]
275
+ }
276
+
277
+ input PostsQueryModel {
278
+ languages: [Language]
279
+ lat: Float!
280
+ lon: Float!
281
+ page: Int
282
+ limit: Int
270
283
  }
271
284
 
272
285
  type Mutation {