1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-22 07:52:43 +00:00

Update GraphQL schema file

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-11-27 17:25:41 +01:00
parent d041d274e0
commit 662541c312
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -75,11 +75,11 @@ type Application {
"If the actor is suspended" "If the actor is suspended"
suspended: Boolean suspended: Boolean
"The actor's avatar picture" "The actor's avatar media"
avatar: Picture avatar: Media
"The actor's banner picture" "The actor's banner media"
banner: Picture banner: Media
"List of followings" "List of followings"
following: [Follower] following: [Follower]
@ -92,6 +92,9 @@ type Application {
"Number of actors following this actor" "Number of actors following this actor"
followingCount: Int followingCount: Int
"The total size of the media from this actor"
mediaSize: Int
} }
"Instance anonymous event creation configuration" "Instance anonymous event creation configuration"
@ -244,27 +247,6 @@ type Language {
name: String name: String
} }
"A picture"
type Picture {
"The picture's ID"
id: ID
"The picture's alternative text"
alt: String
"The picture's name"
name: String
"The picture's full URL"
url: String
"The picture's detected content type"
contentType: String
"The picture's size"
size: Int
}
"The list of roles an user can have" "The list of roles an user can have"
enum UserRole { enum UserRole {
"Administrator role" "Administrator role"
@ -410,13 +392,13 @@ type Comment {
publishedAt: DateTime publishedAt: DateTime
} }
"An attached picture or a link to a picture" "An attached media or a link to a media"
input PictureInput { input MediaInput {
"A full picture attached" "A full media attached"
picture: PictureInputObject media: MediaInputObject
"The ID of an existing picture" "The ID of an existing media"
pictureId: ID mediaId: ID
} }
"Instance anonymous reports" "Instance anonymous reports"
@ -512,6 +494,27 @@ type ParticipantMetadata {
locale: String locale: String
} }
"A media"
type Media {
"The media's ID"
id: ID
"The media's alternative text"
alt: String
"The media's name"
name: String
"The media's full URL"
url: String
"The media's detected content type"
contentType: String
"The media's size"
size: Int
}
"Instance anonymous participation with validation by captcha configuration" "Instance anonymous participation with validation by captcha configuration"
type AnonymousParticipationValidationCaptcha { type AnonymousParticipationValidationCaptcha {
"Whether anonymous participation validation by captcha is enabled" "Whether anonymous participation validation by captcha is enabled"
@ -720,8 +723,8 @@ type Post {
"The post's tags" "The post's tags"
tags: [Tag] tags: [Tag]
"The event's picture" "The posts's media"
picture: Picture picture: Media
} }
"A paginated list of events" "A paginated list of events"
@ -846,11 +849,11 @@ interface Actor {
"If the actor is suspended" "If the actor is suspended"
suspended: Boolean suspended: Boolean
"The actor's avatar picture" "The actor's avatar media"
avatar: Picture avatar: Media
"The actor's banner picture" "The actor's banner media"
banner: Picture banner: Media
"List of followings" "List of followings"
following: [Follower] following: [Follower]
@ -863,6 +866,9 @@ interface Actor {
"Number of actors following this actor" "Number of actors following this actor"
followingCount: Int followingCount: Int
"The total size of the media from this actor"
mediaSize: Int
} }
"Instance anonymous event creation validation configuration" "Instance anonymous event creation validation configuration"
@ -924,11 +930,11 @@ type Person {
"If the actor is suspended" "If the actor is suspended"
suspended: Boolean suspended: Boolean
"The actor's avatar picture" "The actor's avatar media"
avatar: Picture avatar: Media
"The actor's banner picture" "The actor's banner media"
banner: Picture banner: Media
"List of followings" "List of followings"
following: [Follower] following: [Follower]
@ -942,6 +948,9 @@ type Person {
"Number of actors following this actor" "Number of actors following this actor"
followingCount: Int followingCount: Int
"The total size of the media from this actor"
mediaSize: Int
"A list of the feed tokens for this person" "A list of the feed tokens for this person"
feedTokens: [FeedToken] feedTokens: [FeedToken]
@ -1105,11 +1114,11 @@ type RootMutationType {
"The summary for the new profile" "The summary for the new profile"
summary: String summary: String
"The avatar for the profile, either as an object or directly the ID of an existing Picture" "The avatar for the profile, either as an object or directly the ID of an existing media"
avatar: PictureInput avatar: MediaInput
"The banner for the profile, either as an object or directly the ID of an existing Picture" "The banner for the profile, either as an object or directly the ID of an existing media"
banner: PictureInput banner: MediaInput
): Person ): Person
"Update an identity" "Update an identity"
@ -1123,11 +1132,11 @@ type RootMutationType {
"The summary for this profile" "The summary for this profile"
summary: String summary: String
"The avatar for the profile, either as an object or directly the ID of an existing Picture" "The avatar for the profile, either as an object or directly the ID of an existing media"
avatar: PictureInput avatar: MediaInput
"The banner for the profile, either as an object or directly the ID of an existing Picture" "The banner for the profile, either as an object or directly the ID of an existing media"
banner: PictureInput banner: MediaInput
): Person ): Person
"Delete an identity" "Delete an identity"
@ -1147,11 +1156,11 @@ type RootMutationType {
"The email from the user previously created" "The email from the user previously created"
email: String! email: String!
"The avatar for the profile, either as an object or directly the ID of an existing Picture" "The avatar for the profile, either as an object or directly the ID of an existing media"
avatar: PictureInput avatar: MediaInput
"The banner for the profile, either as an object or directly the ID of an existing Picture" "The banner for the profile, either as an object or directly the ID of an existing media"
banner: PictureInput banner: MediaInput
): Person ): Person
"Create a group" "Create a group"
@ -1168,11 +1177,11 @@ type RootMutationType {
"The visibility for the group" "The visibility for the group"
visibility: GroupVisibility visibility: GroupVisibility
"The avatar for the group, either as an object or directly the ID of an existing Picture" "The avatar for the group, either as an object or directly the ID of an existing media"
avatar: PictureInput avatar: MediaInput
"The banner for the group, either as an object or directly the ID of an existing Picture" "The banner for the group, either as an object or directly the ID of an existing media"
banner: PictureInput banner: MediaInput
"The physical address for the group" "The physical address for the group"
physicalAddress: AddressInput physicalAddress: AddressInput
@ -1195,11 +1204,11 @@ type RootMutationType {
"Whether the group can be join freely, with approval or is invite-only." "Whether the group can be join freely, with approval or is invite-only."
openness: Openness openness: Openness
"The avatar for the group, either as an object or directly the ID of an existing Picture" "The avatar for the group, either as an object or directly the ID of an existing media"
avatar: PictureInput avatar: MediaInput
"The banner for the group, either as an object or directly the ID of an existing Picture" "The banner for the group, either as an object or directly the ID of an existing media"
banner: PictureInput banner: MediaInput
"The physical address for the group" "The physical address for the group"
physicalAddress: AddressInput physicalAddress: AddressInput
@ -1234,8 +1243,8 @@ type RootMutationType {
"The list of tags associated to the event" "The list of tags associated to the event"
tags: [String] tags: [String]
"The picture for the event, either as an object or directly the ID of an existing Picture" "The picture for the event, either as an object or directly the ID of an existing media"
picture: PictureInput picture: MediaInput
"Datetime when the event was published" "Datetime when the event was published"
publishAt: DateTime publishAt: DateTime
@ -1297,8 +1306,8 @@ type RootMutationType {
"The list of tags associated to the event" "The list of tags associated to the event"
tags: [String] tags: [String]
"The picture for the event, either as an object or directly the ID of an existing Picture" "The picture for the event, either as an object or directly the ID of an existing media"
picture: PictureInput picture: MediaInput
"Online address of the event" "Online address of the event"
onlineAddress: String onlineAddress: String
@ -1421,6 +1430,7 @@ type RootMutationType {
"Reject an invitation to a group" "Reject an invitation to a group"
rejectInvitation("The member ID" id: ID!): Member rejectInvitation("The member ID" id: ID!): Member
"Update a member's role"
updateMember( updateMember(
"The member ID" "The member ID"
memberId: ID! memberId: ID!
@ -1444,17 +1454,20 @@ type RootMutationType {
"Delete a feed token" "Delete a feed token"
deleteFeedToken("The token to delete" token: String!): DeletedFeedToken deleteFeedToken("The token to delete" token: String!): DeletedFeedToken
"Upload a picture" "Upload a media"
uploadPicture( uploadMedia(
"The picture's name" "The media's name"
name: String! name: String!
"The picture's alternative text" "The media's alternative text"
alt: String alt: String
"The picture file" "The media file"
file: Upload! file: Upload!
): Picture ): Media
"Remove a media"
removeMedia("The media's ID" id: ID!): DeletedObject
"Create a report" "Create a report"
createReport( createReport(
@ -1704,8 +1717,8 @@ type RootMutationType {
"The list of tags associated to the post" "The list of tags associated to the post"
tags: [String] tags: [String]
"The banner for the post, either as an object or directly the ID of an existing Picture" "The banner for the post, either as an object or directly the ID of an existing media"
picture: PictureInput picture: MediaInput
): Post ): Post
"Update a post" "Update a post"
@ -1734,8 +1747,8 @@ type RootMutationType {
"The list of tags associated to the post" "The list of tags associated to the post"
tags: [String] tags: [String]
"The banner for the post, either as an object or directly the ID of an existing Picture" "The banner for the post, either as an object or directly the ID of an existing media"
picture: PictureInput picture: MediaInput
): Post ): Post
"Delete a post" "Delete a post"
@ -1985,8 +1998,8 @@ type RootQueryType {
"Get the instance config" "Get the instance config"
config: Config config: Config
"Get a picture" "Get a media"
picture("The picture ID" id: String!): Picture media("The media ID" id: ID!): Media
"Get all reports" "Get all reports"
reports( reports(
@ -2310,7 +2323,10 @@ type Event {
joinOptions: EventJoinOptions joinOptions: EventJoinOptions
"The event's picture" "The event's picture"
picture: Picture picture: Media
"The event's media"
media: [Media]
"When the event was published" "When the event was published"
publishAt: DateTime publishAt: DateTime
@ -2385,12 +2401,28 @@ input EventOfferInput {
url: String url: String
} }
"An attached media"
input MediaInputObject {
"The media's name"
name: String!
"The media's alternative text"
alt: String
"The media file"
file: Upload!
"The media owner"
actorId: ID
}
""" """
The `Point` scalar type represents Point geographic information compliant string data, The `Point` scalar type represents Point geographic information compliant string data,
represented as floats separated by a semi-colon. The geodetic system is WGS 84 represented as floats separated by a semi-colon. The geodetic system is WGS 84
""" """
scalar Point scalar Point
"An address input"
input AddressInput { input AddressInput {
"The geocoordinates for the point where this address is" "The geocoordinates for the point where this address is"
geom: Point geom: Point
@ -2746,19 +2778,13 @@ input Contact {
id: String id: String
} }
"An attached picture" "A paginated list of medias"
input PictureInputObject { type PaginatedMediaList {
"The picture's name" "The list of medias"
name: String! elements: [Media]
"The picture's alternative text" "The total number of medias in the list"
alt: String total: Int
"The picture file"
file: Upload!
"The picture owner"
actorId: ID
} }
"Geographic coordinates" "Geographic coordinates"
@ -2851,6 +2877,7 @@ enum Openness {
OPEN OPEN
} }
"An address object"
type Address { type Address {
"The geocoordinates for the point where this address is" "The geocoordinates for the point where this address is"
geom: Point geom: Point
@ -2979,6 +3006,7 @@ type Features {
eventCreation: Boolean eventCreation: Boolean
} }
"A set of user settings"
type UserSettings { type UserSettings {
"The timezone for this user" "The timezone for this user"
timezone: String timezone: String
@ -3114,6 +3142,18 @@ type User {
"The IP adress the user's currently signed-in with" "The IP adress the user's currently signed-in with"
currentSignInIp: String currentSignInIp: String
"The user's media objects"
media(
"The page in the paginated user media list"
page: Int
"The limit of user media per page"
limit: Int
): PaginatedMediaList
"The total size of all the media from this user (from all their actors)"
mediaSize: Int
} }
"Represents a group of actors" "Represents a group of actors"
@ -3151,11 +3191,11 @@ type Group {
"If the actor is suspended" "If the actor is suspended"
suspended: Boolean suspended: Boolean
"The actor's avatar picture" "The actor's avatar media"
avatar: Picture avatar: Media
"The actor's banner picture" "The actor's banner media"
banner: Picture banner: Media
"The type of the event's address" "The type of the event's address"
physicalAddress: Address physicalAddress: Address
@ -3172,6 +3212,9 @@ type Group {
"Number of actors following this actor" "Number of actors following this actor"
followingCount: Int followingCount: Int
"The total size of the media from this actor"
mediaSize: Int
"A list of the events this actor has organized" "A list of the events this actor has organized"
organizedEvents( organizedEvents(
"Filter events that begin after this datetime" "Filter events that begin after this datetime"