UNPKG

iptdevs-design-system

Version:

Library common elements into IPT Plattform.

127 lines (126 loc) 3.15 kB
import { IMessageServiceRs } from "../activities/activities.interface"; import { IDataCourseRq, NoteValue, StudentUser } from "./notes.interface"; export interface IServiceCalculateFinalNoteRs { ip_applicant: string; status: number; message: IMessageServiceRs; data: ICalculateFinalNoteRs; } export interface ICalculateFinalNoteRs { averages: IAveragesRq; final_note: number; } export interface IAveragesRq { writing_reading: number; speaking_listening: number; actitude_participation: number; final_test_oral: number; final_test_written: null; habilitation: null; } export interface IFinalStudentNoteRq { name: string; notes: ICalculateFinalNoteRs; } export interface INoteTypesOptionsRq { code: number; note_name: string; inactive?: boolean; percent?: number; } export interface IUpdateStudentNoteRq { token?: string; note_code: number; note_value: number; observation?: string; } export interface IDataStudenShortRq { code: number; name: string; } export interface IServiceObtainNoteByStudentRs { ip_applicant: string; status: number; message: IMessageServiceRs; data: IObtainNoteByStudentRs[]; } export interface IObtainNoteByStudentRs { user_course: IUserCourseRs; } export interface IUserCourseRs { code: number; note_code: number; student: StudentUser; course: IDataCourseRq; notes: INotesScoreStudentRq; } export interface INotesScoreStudentRq { writing_reading: NoteValue[]; speaking_listening: NoteValue[]; actitude_participation: NoteValue[]; final_test_oral: NoteValue[]; final_test_written: null | NoteValue[]; hab: null; final_note: null; } export interface IGetLastStudentCodRq { token: string; code: number; } export interface INotesStudentRq { token: string; code_student: number; code_course: number; } export interface NotesStudents { token: string; student_code: number; } export interface ICourseRs { code: number; course_schedule: number; teacher: number; course_type: number; to_start: Date; start_date: Date; finish_date: Date; capacity: number; more_days: null; english_level: number; agreement: number; course_modality: number; is_renovation: number; is_from: null; is_club: number; is_visible: number; created_at: Date; } export interface INotesRs { writing_reading: ActitudeParticipation[]; speaking_listening: ActitudeParticipation[]; actitude_participation: ActitudeParticipation[]; final_test_oral: ActitudeParticipation[]; final_test_written: ActitudeParticipation[]; hab: null; final_note: FinalNote[]; } export interface ActitudeParticipation { code: number; note_code: number; note_type: number; note_value: number; observation: string; } export interface FinalNote { code: number; student_code: number; cod_code: number; final_score: number; } export interface INotesTypeRS { code: number; note_code: number; note_type: number; note_value: number; observation: string; }