Class StudentGrade

Constructors

  • Parameters

    • client: Pronote
    • grade: {
          G: number;
          ListeThemes: {
              V: unknown[];
              _T: 24;
          };
          N: string;
          bareme: {
              V: string;
              _T: 10;
          };
          baremeParDefaut: {
              V: string;
              _T: 10;
          };
          coefficient: number;
          commentaire: string;
          date: {
              V: string;
              _T: 7;
          };
          estBonus: boolean;
          estEnGroupe: boolean;
          estFacultatif: boolean;
          estRamenerSur20: boolean;
          executionQCM?: {
              V: {
                  G: number;
                  ListeThemes: {
                      V: unknown[];
                      _T: 24;
                  };
                  N: string;
                  QCM: {
                      V: {
                          G: number;
                          L: string;
                          N: string;
                          avecQuestionsSoumises: boolean;
                          nbCompetencesTotal: number;
                          nbQuestionsTotal: number;
                          nombreDePointsTotal: number;
                          nombreQuestObligatoires: number;
                      };
                      _T: 24;
                  };
                  acceptIncomplet: boolean;
                  afficherResultatNiveauMaitrise: boolean;
                  afficherResultatNote: boolean;
                  autoriserLaNavigation: boolean;
                  coefficientDevoir: {
                      V: string;
                      _T: 10;
                  };
                  consigne: {
                      V: string;
                      _T: 21;
                  };
                  dateDebutPublication: {
                      V: string;
                      _T: 7;
                  };
                  dateFinPublication: {
                      V: string;
                      _T: 7;
                  };
                  dureeMaxQCM: number;
                  estDemarre: boolean;
                  estEnPublication: boolean;
                  estLieADevoir: boolean;
                  estLieAEvaluation: boolean;
                  estSupprimable: boolean;
                  estUnTAF: boolean;
                  etatCloture: number;
                  fichierDispo: boolean;
                  homogeneiserNbQuestParNiveau: boolean;
                  listeProfesseurs: {
                      V: {
                          L: string;
                          N: string;
                      }[];
                      _T: 24;
                  };
                  melangerLesQuestionsGlobalement: boolean;
                  melangerLesQuestionsParNiveau: boolean;
                  melangerLesReponses: boolean;
                  modeDiffusionCorrige: number;
                  nbQuestBonnes: number;
                  nbQuestRepondues: number;
                  nomPublic: string;
                  nombreDePoints: number;
                  nombreQuestionsSoumises: number;
                  noteQCM: {
                      V: string;
                      _T: 10;
                  };
                  pointsSelonPourcentage: boolean;
                  publierCorrige: boolean;
                  ramenerSur20: boolean;
                  ressentiRepondant: boolean;
                  service: {
                      V: {
                          L: string;
                          N: string;
                      };
                      _T: 24;
                  };
                  tolererFausses: boolean;
              };
              _T: 24;
          };
          libelleCorrige?: string;
          libelleSujet?: string;
          moyenne: {
              V: string;
              _T: 10;
          };
          note: {
              V: string;
              _T: number;
          };
          noteMax: {
              V: string;
              _T: 10;
          };
          noteMin: {
              V: string;
              _T: 10;
          };
          periode: {
              V: {
                  L: string;
                  N: string;
              };
              _T: 24;
          };
          service: {
              V: {
                  G: 12;
                  L: string;
                  N: string;
                  couleur: string;
              };
              _T: 24;
          };
      }
      • G: number
      • ListeThemes: {
            V: unknown[];
            _T: 24;
        }
        • V: unknown[]
        • _T: 24
      • N: string
      • bareme: {
            V: string;
            _T: 10;
        }
        • V: string

          The maximum grade value.

        • _T: 10
      • baremeParDefaut: {
            V: string;
            _T: 10;
        }
        • V: string
        • _T: 10
      • coefficient: number
      • commentaire: string

        Description of the exam.

      • date: {
            V: string;
            _T: 7;
        }
        • V: string

          Date in "DD/MM/YYYY" format.

        • _T: 7
      • estBonus: boolean
      • estEnGroupe: boolean
      • estFacultatif: boolean
      • estRamenerSur20: boolean
      • Optional executionQCM?: {
            V: {
                G: number;
                ListeThemes: {
                    V: unknown[];
                    _T: 24;
                };
                N: string;
                QCM: {
                    V: {
                        G: number;
                        L: string;
                        N: string;
                        avecQuestionsSoumises: boolean;
                        nbCompetencesTotal: number;
                        nbQuestionsTotal: number;
                        nombreDePointsTotal: number;
                        nombreQuestObligatoires: number;
                    };
                    _T: 24;
                };
                acceptIncomplet: boolean;
                afficherResultatNiveauMaitrise: boolean;
                afficherResultatNote: boolean;
                autoriserLaNavigation: boolean;
                coefficientDevoir: {
                    V: string;
                    _T: 10;
                };
                consigne: {
                    V: string;
                    _T: 21;
                };
                dateDebutPublication: {
                    V: string;
                    _T: 7;
                };
                dateFinPublication: {
                    V: string;
                    _T: 7;
                };
                dureeMaxQCM: number;
                estDemarre: boolean;
                estEnPublication: boolean;
                estLieADevoir: boolean;
                estLieAEvaluation: boolean;
                estSupprimable: boolean;
                estUnTAF: boolean;
                etatCloture: number;
                fichierDispo: boolean;
                homogeneiserNbQuestParNiveau: boolean;
                listeProfesseurs: {
                    V: {
                        L: string;
                        N: string;
                    }[];
                    _T: 24;
                };
                melangerLesQuestionsGlobalement: boolean;
                melangerLesQuestionsParNiveau: boolean;
                melangerLesReponses: boolean;
                modeDiffusionCorrige: number;
                nbQuestBonnes: number;
                nbQuestRepondues: number;
                nomPublic: string;
                nombreDePoints: number;
                nombreQuestionsSoumises: number;
                noteQCM: {
                    V: string;
                    _T: 10;
                };
                pointsSelonPourcentage: boolean;
                publierCorrige: boolean;
                ramenerSur20: boolean;
                ressentiRepondant: boolean;
                service: {
                    V: {
                        L: string;
                        N: string;
                    };
                    _T: 24;
                };
                tolererFausses: boolean;
            };
            _T: 24;
        }

        Available when the grade was based on a quiz.

        • V: {
              G: number;
              ListeThemes: {
                  V: unknown[];
                  _T: 24;
              };
              N: string;
              QCM: {
                  V: {
                      G: number;
                      L: string;
                      N: string;
                      avecQuestionsSoumises: boolean;
                      nbCompetencesTotal: number;
                      nbQuestionsTotal: number;
                      nombreDePointsTotal: number;
                      nombreQuestObligatoires: number;
                  };
                  _T: 24;
              };
              acceptIncomplet: boolean;
              afficherResultatNiveauMaitrise: boolean;
              afficherResultatNote: boolean;
              autoriserLaNavigation: boolean;
              coefficientDevoir: {
                  V: string;
                  _T: 10;
              };
              consigne: {
                  V: string;
                  _T: 21;
              };
              dateDebutPublication: {
                  V: string;
                  _T: 7;
              };
              dateFinPublication: {
                  V: string;
                  _T: 7;
              };
              dureeMaxQCM: number;
              estDemarre: boolean;
              estEnPublication: boolean;
              estLieADevoir: boolean;
              estLieAEvaluation: boolean;
              estSupprimable: boolean;
              estUnTAF: boolean;
              etatCloture: number;
              fichierDispo: boolean;
              homogeneiserNbQuestParNiveau: boolean;
              listeProfesseurs: {
                  V: {
                      L: string;
                      N: string;
                  }[];
                  _T: 24;
              };
              melangerLesQuestionsGlobalement: boolean;
              melangerLesQuestionsParNiveau: boolean;
              melangerLesReponses: boolean;
              modeDiffusionCorrige: number;
              nbQuestBonnes: number;
              nbQuestRepondues: number;
              nomPublic: string;
              nombreDePoints: number;
              nombreQuestionsSoumises: number;
              noteQCM: {
                  V: string;
                  _T: 10;
              };
              pointsSelonPourcentage: boolean;
              publierCorrige: boolean;
              ramenerSur20: boolean;
              ressentiRepondant: boolean;
              service: {
                  V: {
                      L: string;
                      N: string;
                  };
                  _T: 24;
              };
              tolererFausses: boolean;
          }
          • G: number
          • ListeThemes: {
                V: unknown[];
                _T: 24;
            }
            • V: unknown[]
            • _T: 24
          • N: string
          • QCM: {
                V: {
                    G: number;
                    L: string;
                    N: string;
                    avecQuestionsSoumises: boolean;
                    nbCompetencesTotal: number;
                    nbQuestionsTotal: number;
                    nombreDePointsTotal: number;
                    nombreQuestObligatoires: number;
                };
                _T: 24;
            }
            • V: {
                  G: number;
                  L: string;
                  N: string;
                  avecQuestionsSoumises: boolean;
                  nbCompetencesTotal: number;
                  nbQuestionsTotal: number;
                  nombreDePointsTotal: number;
                  nombreQuestObligatoires: number;
              }
              • G: number
              • L: string

                Name of the quiz.

              • N: string
              • avecQuestionsSoumises: boolean
              • nbCompetencesTotal: number
              • nbQuestionsTotal: number

                Number of questions.

              • nombreDePointsTotal: number

                Maximum amout of points.

              • nombreQuestObligatoires: number
            • _T: 24
          • acceptIncomplet: boolean
          • afficherResultatNiveauMaitrise: boolean
          • afficherResultatNote: boolean
          • autoriserLaNavigation: boolean
          • coefficientDevoir: {
                V: string;
                _T: 10;
            }
            • V: string
            • _T: 10
          • consigne: {
                V: string;
                _T: 21;
            }
            • V: string
            • _T: 21
          • dateDebutPublication: {
                V: string;
                _T: 7;
            }
            • V: string

              Date in format "DD/MM/YYYY HH:mm:ss".

            • _T: 7
          • dateFinPublication: {
                V: string;
                _T: 7;
            }
            • V: string

              Date in format "DD/MM/YYYY HH:mm:ss".

            • _T: 7
          • dureeMaxQCM: number
          • estDemarre: boolean
          • estEnPublication: boolean
          • estLieADevoir: boolean
          • estLieAEvaluation: boolean
          • estSupprimable: boolean
          • estUnTAF: boolean
          • etatCloture: number
          • fichierDispo: boolean
          • homogeneiserNbQuestParNiveau: boolean
          • listeProfesseurs: {
                V: {
                    L: string;
                    N: string;
                }[];
                _T: 24;
            }
            • V: {
                  L: string;
                  N: string;
              }[]
            • _T: 24
          • melangerLesQuestionsGlobalement: boolean
          • melangerLesQuestionsParNiveau: boolean
          • melangerLesReponses: boolean
          • modeDiffusionCorrige: number
          • nbQuestBonnes: number
          • nbQuestRepondues: number
          • nomPublic: string
          • nombreDePoints: number
          • nombreQuestionsSoumises: number
          • noteQCM: {
                V: string;
                _T: 10;
            }
            • V: string
            • _T: 10
          • pointsSelonPourcentage: boolean
          • publierCorrige: boolean
          • ramenerSur20: boolean
          • ressentiRepondant: boolean
          • service: {
                V: {
                    L: string;
                    N: string;
                };
                _T: 24;
            }
            • V: {
                  L: string;
                  N: string;
              }
              • L: string
              • N: string
            • _T: 24
          • tolererFausses: boolean
        • _T: 24
      • Optional libelleCorrige?: string

        Name of the correction file.

      • Optional libelleSujet?: string

        Name of the subject file.

      • moyenne: {
            V: string;
            _T: 10;
        }
        • V: string

          Overall grade on this exam.

        • _T: 10
      • note: {
            V: string;
            _T: number;
        }
        • V: string

          Grade the user had.

        • _T: number
      • noteMax: {
            V: string;
            _T: 10;
        }
        • V: string

          Best grade someone had.

        • _T: 10
      • noteMin: {
            V: string;
            _T: 10;
        }
        • V: string

          Worst grade someone had.

        • _T: 10
      • periode: {
            V: {
                L: string;
                N: string;
            };
            _T: 24;
        }
        • V: {
              L: string;
              N: string;
          }
          • L: string
          • N: string
        • _T: 24
      • service: {
            V: {
                G: 12;
                L: string;
                N: string;
                couleur: string;
            };
            _T: 24;
        }
        • V: {
              G: 12;
              L: string;
              N: string;
              couleur: string;
          }
          • G: 12
          • L: string
          • N: string
          • couleur: string
        • _T: 24

    Returns StudentGrade

Properties

#average: number | PronoteApiGradeType
#coefficient: number
#comment: string
#correctionFile?: StudentAttachment
#date: Date
#defaultOutOf?: number | PronoteApiGradeType
#id: string
#isBonus: boolean
#isOptional: boolean
#isOutOf20: boolean
#max: number | PronoteApiGradeType
#min: number | PronoteApiGradeType
#outOf: number | PronoteApiGradeType
#subject: StudentSubject
#subjectFile?: StudentAttachment
#value: number | PronoteApiGradeType

Accessors

  • get coefficient(): number
  • the coefficient of the grade

    Returns number

  • get comment(): string
  • comment on the grade description

    Returns string

  • get date(): Date
  • the date on which the grade was given

    Returns Date

  • get id(): string
  • the id of the grade (used internally)

    Returns string

  • get isBonus(): boolean
  • is the grade bonus : only points above 10 count

    Returns boolean

  • get isOptional(): boolean
  • is the grade optional : the grade only counts if it increases the average

    Returns boolean

  • get isOutOf20(): boolean
  • is the grade out of 20. Example 8/10 -> 16/20

    Returns boolean