-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
68 lines (57 loc) · 1.1 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
mutation: Mutation
subscription: Subscription
}
type AuthResponseType {
access_token: String
user: UserType
}
type Call {
call_type: String!
created_at: String!
direction: String!
duration: Float!
from: String!
id: ID!
is_archived: Boolean!
notes: [Note!]!
to: String!
via: String!
}
type Mutation {
addNote(input: AddNoteInput!): Call!
archiveCall(id: ID!): Call!
login(input: LoginInput!): AuthResponseType!
refreshToken: AuthResponseType!
}
type Note {
content: String!
id: ID!
}
type PaginatedCalls {
hasNextPage: Boolean!
nodes: [Call!]
totalCount: Int!
}
type Query {
call(id: ID!): Call
me: UserType!
paginatedCalls(limit: Float = 10.0, offset: Float = 0.0): PaginatedCalls!
}
type Subscription {
onUpdatedCall: Call
}
type UserType {
id: String!
username: String!
}
input AddNoteInput {
activityId: ID!
content: String!
}
input LoginInput {
password: String!
username: String!
}