summaryrefslogtreecommitdiff
path: root/alarm/node_modules/pronote-api/src/server/schemas/parent.graphql
blob: 0f6bf86db55554f8017bf29c2975a9ad5faaa279 (plain)
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
extend type Query {
    timetable(student: String!, from: Date, to: Date): [Lesson!]
    marks(student: String!, period: String): Marks
    evaluations(student: String!, period: String): [EvaluationSubject!]
    absences(student: String!, period: String, from: Date, to: Date): Absences
    infos(student: String!): [Info!]
    contents(student: String!, from: Date, to: Date): [LessonContent!]
    homeworks(student: String!, from: Date, to: Date): [Homework!]
    menu(student: String!, from: Date, to: Date): [MenuDay!]
    files(student: String!): [File!]
}

extend type PronoteUser {
    isDelegate: Boolean!
    isBDMember: Boolean!
    canDiscussWithManagers: Boolean!
    absencesReasons: [PronoteNamedObject!]!
    delaysReasons: [PronoteNamedObject!]!
    classDelegates: [PronoteNamedObject!]!
    students: [PronoteStudent!]!
}

extend type PronoteUserAuthorizations {
    staffDiscussion: Boolean!
    parentsDiscussion: Boolean!
    editStudentPassword: Boolean!
    editCoordinates: Boolean!
    editAuthorizations: Boolean!
}

type PronoteStudent {
    name: String!
    establishment: PronoteNamedObject!
    avatar: String
    studentClass: PronoteNamedObject!
    classHistory: [PronoteClassHistoryElement!]!
    groups: [PronoteNamedObject!]!
    tabsPillars: [PronoteTabPillars!]!
    tabsPeriods: [PronoteTabPeriods!]!
}