27f2597b07
Close #156 and #158 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
52 lines
719 B
TypeScript
52 lines
719 B
TypeScript
import gql from 'graphql-tag';
|
|
|
|
export const LOGGED_PERSON = gql`
|
|
query {
|
|
loggedPerson {
|
|
id,
|
|
avatar {
|
|
url
|
|
},
|
|
preferredUsername,
|
|
}
|
|
}`;
|
|
|
|
export const CREATE_FEED_TOKEN_ACTOR = gql`
|
|
mutation createFeedToken($actor_id: ID!) {
|
|
createFeedToken(actorId: $actor_id) {
|
|
token,
|
|
actor {
|
|
id
|
|
},
|
|
user {
|
|
id
|
|
}
|
|
}
|
|
}`;
|
|
|
|
export const CREATE_FEED_TOKEN = gql`
|
|
mutation {
|
|
createFeedToken {
|
|
token,
|
|
actor {
|
|
id
|
|
},
|
|
user {
|
|
id
|
|
}
|
|
}
|
|
}`;
|
|
|
|
export const DELETE_FEED_TOKEN = gql`
|
|
mutation deleteFeedToken($token: String!) {
|
|
deleteFeedToken(token: $token) {
|
|
actor {
|
|
id
|
|
},
|
|
user {
|
|
id
|
|
}
|
|
}
|
|
}
|
|
`;
|