@fowgence/api-schema 1.0.1-dev.30585679843.0 → 1.0.1-dev.30671150189.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 +24 -25
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fowgence/api-schema",
3
- "version": "1.0.1-dev.30585679843.0",
3
+ "version": "1.0.1-dev.30671150189.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
@@ -2,22 +2,6 @@
2
2
  # THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
3
3
  # ------------------------------------------------------
4
4
 
5
- type Media {
6
- id: ID!
7
- createdAt: DateTime
8
- updatedAt: DateTime
9
- success: Boolean
10
- key: String!
11
- fileName: String
12
- mimeType: String
13
- fileSize: Float
14
- }
15
-
16
- """
17
- A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
18
- """
19
- scalar DateTime
20
-
21
5
  type UserSettingModel {
22
6
  id: ID!
23
7
  createdAt: DateTime
@@ -39,6 +23,11 @@ type UserSettingModel {
39
23
  country: Country
40
24
  }
41
25
 
26
+ """
27
+ A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
28
+ """
29
+ scalar DateTime
30
+
42
31
  enum Theme {
43
32
  LIGHT
44
33
  DARK
@@ -413,11 +402,9 @@ type CommentModel {
413
402
  success: Boolean
414
403
  postId: String
415
404
  parentId: String
416
- title: String
417
405
  content: String
418
406
  authorType: AuthorType
419
407
  score: Float
420
- medias: [Media]
421
408
  author: UserModel
422
409
  quotingComments: [CommentModel]
423
410
  quotedCommentId: String
@@ -492,6 +479,17 @@ enum MemberRole {
492
479
  MEMBER
493
480
  }
494
481
 
482
+ type Media {
483
+ id: ID!
484
+ createdAt: DateTime
485
+ updatedAt: DateTime
486
+ success: Boolean
487
+ key: String!
488
+ fileName: String
489
+ mimeType: String
490
+ fileSize: Float
491
+ }
492
+
495
493
  type NotificationModel {
496
494
  id: ID!
497
495
  createdAt: DateTime
@@ -541,6 +539,7 @@ type PostModel {
541
539
  isRewarded: Boolean
542
540
  isReported: Boolean
543
541
  hasAccess: Boolean
542
+ privacy: Privacy
544
543
  }
545
544
 
546
545
  type UserItemModel {
@@ -623,19 +622,19 @@ type Mutation {
623
622
  updateNotifications(ids: [String!]!): Boolean
624
623
  createComment(data: CreateComment!): CommentModel!
625
624
  createReply(data: CreateComment!): CommentModel!
626
- deleteComment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
625
+ deleteComment(commentId: ID!, postId: String!): Boolean
627
626
  likePost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
628
627
  unlikePost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
629
- likeComment(commentId: ID!): Boolean
630
- unlikeComment(commentId: ID!): Boolean
628
+ likeComment(commentId: ID!, postId: String!): Boolean
629
+ unlikeComment(commentId: ID!, postId: String!): Boolean
631
630
  bookmarkPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
632
631
  unbookmarkPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
633
- bookmarkComment(commentId: ID!): Boolean
634
- unbookmarkComment(commentId: ID!): Boolean
632
+ bookmarkComment(commentId: ID!, postId: String!): Boolean
633
+ unbookmarkComment(commentId: ID!, postId: String!): Boolean
635
634
  rewardPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
636
635
  unrewardPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
637
- rewardComment(commentId: ID!): Boolean
638
- unrewardComment(commentId: ID!): Boolean
636
+ rewardComment(commentId: ID!, postId: String!): Boolean
637
+ unrewardComment(commentId: ID!, postId: String!): Boolean
639
638
  reportPost(postId: ID!, reason: ReportReason!): Boolean
640
639
  reportComment(commentId: ID!, reason: ReportReason!): Boolean
641
640
  }