Class TimetableActivity

Hierarchy

  • TimetableItem
    • TimetableActivity

Constructors

  • Parameters

    • client: Pronote
    • activity: {
          AvecCdT?: boolean;
          AvecTafPublie: boolean;
          CouleurFond?: string;
          DateDuCours: PronoteValue<DateTime, string>;
          DateDuCoursFin?: PronoteValue<DateTime, string>;
          G: PronoteApiLessonStatusType;
          ListeContenus: {
              V: ({
                  L: string;
              } & ({
                  G: Subject;
                  N: string;
                  estServiceGroupe?: boolean;
              } | {
                  G: Room;
                  N: string;
              } | {
                  G: Group;
              } | {
                  G: Teacher;
              } | {
                  G: Personal;
              }))[];
              _T: 24;
          };
          N: string;
          P: number;
          Statut?: string;
          cahierDeTextes?: PronoteValue<24, {
              N: string;
              estDevoir?: boolean;
          }>;
          dispenseEleve?: boolean;
          duree: number;
          estAnnule?: boolean;
          estPermanence?: boolean;
          estRetenue?: undefined;
          estSortiePedagogique?: false;
          listeVisios?: {
              V: {
                  url: string;
              }[];
          };
          memo?: string;
          place: number;
      } | {
          CouleurFond: string;
          DateDuCours: PronoteValue<DateTime, string>;
          N: string;
          accompagnateurs: string[];
          duree: number;
          dureeReelle: number;
          estRetenue?: undefined;
          estSortiePedagogique: true;
          memo?: string;
          motif: string;
          numeroSemaine: number;
          place: number;
          placeReelle: number;
          pourAcc?: boolean;
          strDateDebut: string;
          strDateFin?: string;
          strGenreRess: string;
          strRess: string;
      } | {
          DateDuCours: PronoteValue<DateTime, string>;
          ListeContenus: PronoteValue<Element, ({
              L: string;
          } & ({
              estHoraire: boolean;
          } | {
              G: Room;
          } | {
              G: Teacher;
          } | {
              G: Personal;
          }))[]>;
          N: string;
          duree: number;
          estRetenue: "eleve";
          estSortiePedagogique?: false;
          hintRealise: "Programmée";
          imgRealise: "RealiseProgramme";
          numeroSemaine: number;
          place: number;
      }

    Returns TimetableActivity

Properties

#attendants: string[] = []
#backgroundColor?: string
#blockLength: number
#blockPosition: number
#endDate: Date
#id: string
#item: {
    AvecCdT?: boolean;
    AvecTafPublie: boolean;
    CouleurFond?: string;
    DateDuCours: PronoteValue<DateTime, string>;
    DateDuCoursFin?: PronoteValue<DateTime, string>;
    G: PronoteApiLessonStatusType;
    ListeContenus: {
        V: ({
            L: string;
        } & ({
            G: Subject;
            N: string;
            estServiceGroupe?: boolean;
        } | {
            G: Room;
            N: string;
        } | {
            G: Group;
        } | {
            G: Teacher;
        } | {
            G: Personal;
        }))[];
        _T: 24;
    };
    N: string;
    P: number;
    Statut?: string;
    cahierDeTextes?: PronoteValue<24, {
        N: string;
        estDevoir?: boolean;
    }>;
    dispenseEleve?: boolean;
    duree: number;
    estAnnule?: boolean;
    estPermanence?: boolean;
    estRetenue?: undefined;
    estSortiePedagogique?: false;
    listeVisios?: {
        V: {
            url: string;
        }[];
    };
    memo?: string;
    place: number;
} | {
    CouleurFond: string;
    DateDuCours: PronoteValue<DateTime, string>;
    N: string;
    accompagnateurs: string[];
    duree: number;
    dureeReelle: number;
    estRetenue?: undefined;
    estSortiePedagogique: true;
    memo?: string;
    motif: string;
    numeroSemaine: number;
    place: number;
    placeReelle: number;
    pourAcc?: boolean;
    strDateDebut: string;
    strDateFin?: string;
    strGenreRess: string;
    strRess: string;
} | {
    DateDuCours: PronoteValue<DateTime, string>;
    ListeContenus: PronoteValue<Element, ({
        L: string;
    } & ({
        estHoraire: boolean;
    } | {
        G: Room;
    } | {
        G: Teacher;
    } | {
        G: Personal;
    }))[]>;
    N: string;
    duree: number;
    estRetenue: "eleve";
    estSortiePedagogique?: false;
    hintRealise: "Programmée";
    imgRealise: "RealiseProgramme";
    numeroSemaine: number;
    place: number;
}

Type declaration

  • Optional AvecCdT?: boolean

    Defined and true when something has been written on this lesson in the "content and resources" page.


    AvecCdT means Avec Cahier de Textes, which is the same naming used in responses inside PronoteApiUserResources: ListeCahierDeTextes

  • AvecTafPublie: boolean
  • Optional CouleurFond?: string
  • DateDuCours: PronoteValue<DateTime, string>
  • Optional DateDuCoursFin?: PronoteValue<DateTime, string>
  • G: PronoteApiLessonStatusType
  • ListeContenus: {
        V: ({
            L: string;
        } & ({
            G: Subject;
            N: string;
            estServiceGroupe?: boolean;
        } | {
            G: Room;
            N: string;
        } | {
            G: Group;
        } | {
            G: Teacher;
        } | {
            G: Personal;
        }))[];
        _T: 24;
    }
    • V: ({
          L: string;
      } & ({
          G: Subject;
          N: string;
          estServiceGroupe?: boolean;
      } | {
          G: Room;
          N: string;
      } | {
          G: Group;
      } | {
          G: Teacher;
      } | {
          G: Personal;
      }))[]
    • _T: 24
  • N: string
  • P: number
  • Optional Statut?: string
  • Optional cahierDeTextes?: PronoteValue<24, {
        N: string;
        estDevoir?: boolean;
    }>

    Defined if AvecCdT is true. Contains the ID of the item in the PronoteApiUserResources.ListeCahierDeTextes array.

  • Optional dispenseEleve?: boolean
  • duree: number
  • Optional estAnnule?: boolean

    Whether the lesson is canceled or not.

  • Optional estPermanence?: boolean
  • Optional estRetenue?: undefined
  • Optional estSortiePedagogique?: false
  • Optional listeVisios?: {
        V: {
            url: string;
        }[];
    }
    • V: {
          url: string;
      }[]
  • Optional memo?: string
  • place: number

Type declaration

  • CouleurFond: string

    Background color for the subject, in HEX format.

    Example

    "#ffffff"
    
  • DateDuCours: PronoteValue<DateTime, string>
  • N: string
  • accompagnateurs: string[]

    Array of the names of the teachers who are going to the outing.

    Example

    ["LACAZE H.", "FAVIER É."]
    
  • duree: number
  • dureeReelle: number
  • Optional estRetenue?: undefined
  • estSortiePedagogique: true
  • Optional memo?: string
  • motif: string

    Educational activity title, name or description.

    Example

    "Sortie pédagogique"
    
  • numeroSemaine: number
  • place: number
  • placeReelle: number
  • Optional pourAcc?: boolean
  • strDateDebut: string
  • Optional strDateFin?: string
  • strGenreRess: string

    Type of the ressource given in strRess.

    Example

    "Classe"
    
  • strRess: string

    Resource.

    Example

    "5D" // where `5D` is a ressource from type "Classe".
    

Type declaration

  • DateDuCours: PronoteValue<DateTime, string>
  • ListeContenus: PronoteValue<Element, ({
        L: string;
    } & ({
        estHoraire: boolean;
    } | {
        G: Room;
    } | {
        G: Teacher;
    } | {
        G: Personal;
    }))[]>
  • N: string
  • duree: number
  • estRetenue: "eleve"
  • Optional estSortiePedagogique?: false
  • hintRealise: "Programmée"
  • imgRealise: "RealiseProgramme"
  • numeroSemaine: number
  • place: number
#notes?: string
#resourceTypeName: string
#resourceValue: string
#startDate: Date
#title: string

Accessors

  • get backgroundColor(): undefined | string
  • Returns undefined | string

Methods