@fowgence/api-schema 1.0.1-dev.24246808686.0 → 1.0.1-dev.24786495077.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/package.json +1 -1
- package/schema.gql +4 -24
package/package.json
CHANGED
package/schema.gql
CHANGED
|
@@ -121,16 +121,6 @@ type ExternalLink {
|
|
|
121
121
|
url: String
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
type Snippet {
|
|
125
|
-
id: ID!
|
|
126
|
-
createdAt: DateTime
|
|
127
|
-
updatedAt: DateTime
|
|
128
|
-
success: Boolean!
|
|
129
|
-
code: String
|
|
130
|
-
language: String
|
|
131
|
-
fileName: String
|
|
132
|
-
}
|
|
133
|
-
|
|
134
124
|
type GroupModel {
|
|
135
125
|
id: ID!
|
|
136
126
|
createdAt: DateTime
|
|
@@ -162,7 +152,6 @@ type Post {
|
|
|
162
152
|
title: String
|
|
163
153
|
content: String
|
|
164
154
|
medias: [Media]
|
|
165
|
-
snippets: [Snippet]
|
|
166
155
|
author: User
|
|
167
156
|
group: GroupModel
|
|
168
157
|
comments: [Comment!]
|
|
@@ -326,6 +315,7 @@ type Query {
|
|
|
326
315
|
type Mutation {
|
|
327
316
|
createUser(data: CreateUser!): User!
|
|
328
317
|
updateUser(data: UpdateUser!): User!
|
|
318
|
+
updatePrivacy(privacy: Privacy!): Boolean!
|
|
329
319
|
deleteUser: Boolean
|
|
330
320
|
followUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
331
321
|
unfollowUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
@@ -340,7 +330,6 @@ type Mutation {
|
|
|
340
330
|
followGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
341
331
|
unfollowGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
342
332
|
leaveGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
343
|
-
joinGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
344
333
|
createJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
345
334
|
deleteJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
346
335
|
acceptJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
@@ -400,7 +389,6 @@ input UpdateUserSetting {
|
|
|
400
389
|
theme: Theme
|
|
401
390
|
systemLanguage: Language
|
|
402
391
|
postsLanguages: [Language!]
|
|
403
|
-
privacy: Privacy = PUBLIC
|
|
404
392
|
notificationLike: Flag
|
|
405
393
|
notificationReward: Flag
|
|
406
394
|
notificationReply: Flag
|
|
@@ -425,7 +413,6 @@ input CreateGroup {
|
|
|
425
413
|
input UpdateGroup {
|
|
426
414
|
displayName: String
|
|
427
415
|
description: String
|
|
428
|
-
privacy: Privacy
|
|
429
416
|
externalLinks: [UpsertExternalLink!]
|
|
430
417
|
hostsIds: [String!]
|
|
431
418
|
membersIds: [String!]
|
|
@@ -439,7 +426,6 @@ input CreatePost {
|
|
|
439
426
|
title: String
|
|
440
427
|
content: String!
|
|
441
428
|
medias: [CreateMedia]
|
|
442
|
-
snippets: [CreateSnippet]
|
|
443
429
|
groupId: String
|
|
444
430
|
tags: [String]
|
|
445
431
|
askAi: Flag! = OFF
|
|
@@ -458,12 +444,6 @@ enum MimeType {
|
|
|
458
444
|
HEIF
|
|
459
445
|
}
|
|
460
446
|
|
|
461
|
-
input CreateSnippet {
|
|
462
|
-
code: String!
|
|
463
|
-
language: String
|
|
464
|
-
fileName: String
|
|
465
|
-
}
|
|
466
|
-
|
|
467
447
|
input IdsModel {
|
|
468
448
|
ids: [String!]!
|
|
469
449
|
}
|
|
@@ -471,9 +451,9 @@ input IdsModel {
|
|
|
471
451
|
input CreateComment {
|
|
472
452
|
postId: ID!
|
|
473
453
|
parentId: String
|
|
454
|
+
groupId: String
|
|
474
455
|
privacy: Privacy! = PUBLIC
|
|
475
456
|
content: String!
|
|
476
|
-
snippets: [CreateSnippet]
|
|
477
457
|
quotedCommentId: String
|
|
478
458
|
quoteType: QuoteType
|
|
479
459
|
quotedText: String
|
|
@@ -488,11 +468,11 @@ enum QuoteType {
|
|
|
488
468
|
|
|
489
469
|
enum ReportReason {
|
|
490
470
|
SPAM
|
|
471
|
+
SENSITIVE_CONTENT
|
|
472
|
+
MISINFORMATION
|
|
491
473
|
HARASSMENT
|
|
492
474
|
HATE_SPEECH
|
|
493
475
|
VIOLENCE
|
|
494
|
-
MISINFORMATION
|
|
495
|
-
SENSITIVE_CONTENT
|
|
496
476
|
}
|
|
497
477
|
|
|
498
478
|
type Subscription {
|