iptdevs-design-system 2.4.3 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/molecules/sidenav/sidenav.component.mjs +2 -2
- package/esm2020/lib/core/models/activities/activities.interface.mjs +2 -0
- package/esm2020/lib/core/models/attendance/attendance.interface.mjs +2 -0
- package/esm2020/lib/core/models/calendar/calendar-rq.models.mjs +2 -0
- package/esm2020/lib/core/models/course/course-rq.model.mjs +1 -1
- package/esm2020/lib/core/models/cronogram/cronogram.models.mjs +2 -0
- package/esm2020/lib/core/models/notes/notes.interface.mjs +2 -0
- package/esm2020/lib/core/models/response/response.interface.mjs +2 -0
- package/esm2020/lib/core/models/student/student.interface.mjs +2 -0
- package/esm2020/lib/core/models/user/user-rq.model.mjs +1 -1
- package/esm2020/lib/core/services/attendance-service/attendance.service.mjs +17 -0
- package/esm2020/lib/core/services/calendar-service/calendar.service.mjs +34 -0
- package/esm2020/lib/core/services/course-service/course-service.model.mjs +20 -1
- package/esm2020/lib/core/services/notes-service/notes.service.mjs +40 -0
- package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +5 -1
- package/esm2020/lib/core/services/student-service/student.service.mjs +30 -0
- package/esm2020/public-api.mjs +19 -8
- package/fesm2015/iptdevs-design-system.mjs +132 -3
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +132 -3
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/core/models/activities/activities.interface.d.ts +6 -0
- package/lib/core/models/attendance/attendance.interface.d.ts +44 -0
- package/lib/core/models/calendar/calendar-rq.models.d.ts +27 -0
- package/lib/core/models/course/course-rq.model.d.ts +8 -0
- package/lib/core/models/cronogram/cronogram.models.d.ts +71 -0
- package/lib/core/models/notes/notes.interface.d.ts +59 -0
- package/lib/core/models/response/response.interface.d.ts +10 -0
- package/lib/core/models/student/student.interface.d.ts +4 -0
- package/lib/core/models/user/user-rq.model.d.ts +19 -0
- package/lib/core/services/attendance-service/attendance.service.d.ts +8 -0
- package/lib/core/services/calendar-service/calendar.service.d.ts +15 -0
- package/lib/core/services/course-service/course-service.model.d.ts +6 -1
- package/lib/core/services/notes-service/notes.service.d.ts +17 -0
- package/lib/core/services/parameters-service/parameters.service.d.ts +1 -0
- package/lib/core/services/student-service/student.service.d.ts +14 -0
- package/package.json +3 -3
- package/public-api.d.ts +18 -7
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface AttendanceGroup {
|
|
2
|
+
code: number;
|
|
3
|
+
name: string;
|
|
4
|
+
english_level: string;
|
|
5
|
+
modality: string;
|
|
6
|
+
type_plan: string;
|
|
7
|
+
}
|
|
8
|
+
export interface StudentAttendance {
|
|
9
|
+
id: number;
|
|
10
|
+
first_name: string;
|
|
11
|
+
last_name: string;
|
|
12
|
+
email: string;
|
|
13
|
+
gender: string;
|
|
14
|
+
attendance: string;
|
|
15
|
+
isAttendance: number;
|
|
16
|
+
observations: string;
|
|
17
|
+
}
|
|
18
|
+
export interface Groups {
|
|
19
|
+
data: GroupsData;
|
|
20
|
+
}
|
|
21
|
+
export interface GroupsData {
|
|
22
|
+
number_of_pages: number;
|
|
23
|
+
current_page: string;
|
|
24
|
+
total_records: number;
|
|
25
|
+
records_per_page: string;
|
|
26
|
+
courses: Course[];
|
|
27
|
+
}
|
|
28
|
+
export interface Course {
|
|
29
|
+
code: number;
|
|
30
|
+
course_schedule: string[];
|
|
31
|
+
teacher: string;
|
|
32
|
+
course_type: TypeCourse;
|
|
33
|
+
start_date: Date;
|
|
34
|
+
finish_date: Date;
|
|
35
|
+
capacity: number;
|
|
36
|
+
more_days: number;
|
|
37
|
+
english_level: string;
|
|
38
|
+
agreement: string;
|
|
39
|
+
}
|
|
40
|
+
export interface TypeCourse {
|
|
41
|
+
code: number;
|
|
42
|
+
name: string;
|
|
43
|
+
academic_plan: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface eventqueryRq {
|
|
2
|
+
idCalendar: string;
|
|
3
|
+
startTime: string;
|
|
4
|
+
endTime: string;
|
|
5
|
+
}
|
|
6
|
+
export interface GoogleEventRq {
|
|
7
|
+
title: string;
|
|
8
|
+
start: string;
|
|
9
|
+
end: string;
|
|
10
|
+
backgroundColor: string;
|
|
11
|
+
borderColor: string;
|
|
12
|
+
nameCalendar: string;
|
|
13
|
+
descriptionEvent: string;
|
|
14
|
+
colorEvent: number;
|
|
15
|
+
locationEvent: string;
|
|
16
|
+
dateCreation: string;
|
|
17
|
+
}
|
|
18
|
+
export interface GoogleEvent2Rq {
|
|
19
|
+
nameCalendar: null | string;
|
|
20
|
+
title: string;
|
|
21
|
+
descriptionEvent: null | string;
|
|
22
|
+
locationEvent: null | string;
|
|
23
|
+
dateCreation: Date;
|
|
24
|
+
colorEvent: null | string;
|
|
25
|
+
start: Date;
|
|
26
|
+
end: Date;
|
|
27
|
+
}
|
|
@@ -76,3 +76,11 @@ export interface GetAvailibleCoursesRq {
|
|
|
76
76
|
agreement: number;
|
|
77
77
|
course_type: number;
|
|
78
78
|
}
|
|
79
|
+
export interface GetCoursesByTeacherRq {
|
|
80
|
+
token: string;
|
|
81
|
+
page: number;
|
|
82
|
+
record: number;
|
|
83
|
+
teacher_code: number;
|
|
84
|
+
filter_type?: number;
|
|
85
|
+
filter?: number;
|
|
86
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export interface DataCourseRq {
|
|
2
|
+
code: number;
|
|
3
|
+
course_schedule: string[];
|
|
4
|
+
teacher: string;
|
|
5
|
+
course_type: CourseType;
|
|
6
|
+
to_start: Date;
|
|
7
|
+
start_date: null;
|
|
8
|
+
finish_date: null;
|
|
9
|
+
capacity: number;
|
|
10
|
+
more_days: null;
|
|
11
|
+
english_level: string;
|
|
12
|
+
agreement: string;
|
|
13
|
+
}
|
|
14
|
+
export interface CourseType {
|
|
15
|
+
code: number;
|
|
16
|
+
name: string;
|
|
17
|
+
number_class: number;
|
|
18
|
+
academic_plan: string;
|
|
19
|
+
}
|
|
20
|
+
export interface DataUserRq {
|
|
21
|
+
code: number;
|
|
22
|
+
id_card: string;
|
|
23
|
+
name: string;
|
|
24
|
+
last_name: string;
|
|
25
|
+
nick_name: null;
|
|
26
|
+
email: string;
|
|
27
|
+
phone_number: string;
|
|
28
|
+
gender: number;
|
|
29
|
+
city: string;
|
|
30
|
+
birthdate: null;
|
|
31
|
+
role: string;
|
|
32
|
+
service_hour: number;
|
|
33
|
+
email_ipt: null;
|
|
34
|
+
updated_at: Date;
|
|
35
|
+
id_card_type: string;
|
|
36
|
+
}
|
|
37
|
+
export interface CourseStartDateRq {
|
|
38
|
+
token: string;
|
|
39
|
+
coursetype: number;
|
|
40
|
+
}
|
|
41
|
+
export interface CreateCourse2Rq {
|
|
42
|
+
token?: string;
|
|
43
|
+
teacher?: any;
|
|
44
|
+
academic_plan?: string;
|
|
45
|
+
course_type?: string;
|
|
46
|
+
to_start?: string;
|
|
47
|
+
start_date?: string;
|
|
48
|
+
finish_date?: string;
|
|
49
|
+
capacity?: string;
|
|
50
|
+
more_days?: string;
|
|
51
|
+
english_level?: string;
|
|
52
|
+
agreement?: string;
|
|
53
|
+
time_start_monday: string;
|
|
54
|
+
time_end_monday: string;
|
|
55
|
+
classroom_monday: string;
|
|
56
|
+
time_start_tuesday: string;
|
|
57
|
+
time_end_tuesday: string;
|
|
58
|
+
classroom_tuesday: string;
|
|
59
|
+
time_start_wednesday: string;
|
|
60
|
+
time_end_wednesday: string;
|
|
61
|
+
classroom_wednesday: string;
|
|
62
|
+
time_start_thursday: string;
|
|
63
|
+
time_end_thursday: string;
|
|
64
|
+
classroom_thursday: string;
|
|
65
|
+
time_start_friday: string;
|
|
66
|
+
time_end_friday: string;
|
|
67
|
+
classroom_friday: string;
|
|
68
|
+
time_start_saturday?: string;
|
|
69
|
+
time_end_saturday?: string;
|
|
70
|
+
classroom_saturday?: string;
|
|
71
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export interface Notes {
|
|
2
|
+
student: StudentUser;
|
|
3
|
+
user_course: UserCourse;
|
|
4
|
+
notes_score: NotesScore;
|
|
5
|
+
final_score: number;
|
|
6
|
+
}
|
|
7
|
+
export interface NotesScore {
|
|
8
|
+
writing_reading: NoteValue[];
|
|
9
|
+
speaking_listening: NoteValue[];
|
|
10
|
+
actitude_participation: NoteValue[];
|
|
11
|
+
final_test_oral: NoteValue;
|
|
12
|
+
final_test_written: NoteValue;
|
|
13
|
+
hab?: NoteValue;
|
|
14
|
+
}
|
|
15
|
+
export interface NoteValue {
|
|
16
|
+
code: number;
|
|
17
|
+
note_code: number;
|
|
18
|
+
note_type: number;
|
|
19
|
+
note_value: number;
|
|
20
|
+
}
|
|
21
|
+
export interface StudentUser {
|
|
22
|
+
code: number;
|
|
23
|
+
name: string;
|
|
24
|
+
last_name: string;
|
|
25
|
+
nick_name: string;
|
|
26
|
+
email: string;
|
|
27
|
+
email_ipt: string;
|
|
28
|
+
role: number;
|
|
29
|
+
service_hour: number;
|
|
30
|
+
phone_indicative: number;
|
|
31
|
+
phone_number: string;
|
|
32
|
+
gender: number;
|
|
33
|
+
birthdate: Date;
|
|
34
|
+
city: number;
|
|
35
|
+
id_card_type: number;
|
|
36
|
+
id_card: string;
|
|
37
|
+
}
|
|
38
|
+
export interface UserCourse {
|
|
39
|
+
code: number;
|
|
40
|
+
student_code: number;
|
|
41
|
+
course_code: number;
|
|
42
|
+
notes: number;
|
|
43
|
+
}
|
|
44
|
+
export interface GetNotesByGroupRq {
|
|
45
|
+
token: string;
|
|
46
|
+
course_code: number;
|
|
47
|
+
}
|
|
48
|
+
export interface GetNotesByStudentRq {
|
|
49
|
+
token: string;
|
|
50
|
+
student_code: number;
|
|
51
|
+
}
|
|
52
|
+
export interface CreateNewNoteRq {
|
|
53
|
+
token: string;
|
|
54
|
+
course_code: number;
|
|
55
|
+
student_code: number;
|
|
56
|
+
note_code: number;
|
|
57
|
+
note_type: number;
|
|
58
|
+
note_value: number;
|
|
59
|
+
}
|
|
@@ -70,3 +70,22 @@ export interface getStudentRq {
|
|
|
70
70
|
token: string;
|
|
71
71
|
param: string;
|
|
72
72
|
}
|
|
73
|
+
export interface IptUser {
|
|
74
|
+
code: number;
|
|
75
|
+
name: string;
|
|
76
|
+
last_name: string;
|
|
77
|
+
nick_name: null;
|
|
78
|
+
email: string;
|
|
79
|
+
email_ipt: null;
|
|
80
|
+
role: number;
|
|
81
|
+
service_hour: number;
|
|
82
|
+
phone_indicative: number;
|
|
83
|
+
phone_number: string;
|
|
84
|
+
gender: number;
|
|
85
|
+
birthdate: null;
|
|
86
|
+
city: string;
|
|
87
|
+
id_card_type: number;
|
|
88
|
+
id_card: string;
|
|
89
|
+
token: string;
|
|
90
|
+
updated_at: Date;
|
|
91
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AttendanceService {
|
|
4
|
+
private http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AttendanceService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AttendanceService>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { eventqueryRq } from '../../models/calendar/calendar-rq.models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CalendarService {
|
|
6
|
+
private http;
|
|
7
|
+
private SERVICE_URL;
|
|
8
|
+
httpOptions: any;
|
|
9
|
+
constructor(http: HttpClient);
|
|
10
|
+
getEventByIdCalendar(idCalendar: string): Observable<any>;
|
|
11
|
+
postEventByDayTime(params: eventqueryRq): Observable<any>;
|
|
12
|
+
private generateRequestParams;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarService>;
|
|
15
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { CreateCourseRq, EditCourseRq, GetAvailibleCoursesRq, GetCourseByCodeRq, GetCoursesRq } from '../../models/course/course-rq.model';
|
|
3
|
+
import { CreateCourseRq, EditCourseRq, GetAvailibleCoursesRq, GetCourseByCodeRq, GetCoursesByTeacherRq, GetCoursesRq } from '../../models/course/course-rq.model';
|
|
4
|
+
import { CourseStartDateRq } from '../../models/cronogram/cronogram.models';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class CourseService {
|
|
6
7
|
private http;
|
|
@@ -13,6 +14,10 @@ export declare class CourseService {
|
|
|
13
14
|
getCoursesByLevel(params: GetCoursesRq): Observable<any>;
|
|
14
15
|
getAvailibleCourses(availibleCourses: GetAvailibleCoursesRq): Observable<any>;
|
|
15
16
|
getCourseByCode(params: GetCourseByCodeRq): Observable<any>;
|
|
17
|
+
getCoursesByTeacher(params: GetCoursesByTeacherRq): Observable<any>;
|
|
18
|
+
getFilteredCoursesByTeacher(params: GetCoursesByTeacherRq): Observable<any>;
|
|
19
|
+
getCoursesByStartDate(params: CourseStartDateRq): Observable<any>;
|
|
20
|
+
numberClassByCode(idCode: number): Observable<any>;
|
|
16
21
|
private generateRequestParams;
|
|
17
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<CourseService, never>;
|
|
18
23
|
static ɵprov: i0.ɵɵInjectableDeclaration<CourseService>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { CreateNewNoteRq, GetNotesByGroupRq, GetNotesByStudentRq } from '../../models/notes/notes.interface';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { Response } from '../../models/response/response.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class NotesService {
|
|
7
|
+
private http;
|
|
8
|
+
private SERVICE_URL;
|
|
9
|
+
httpOptions: any;
|
|
10
|
+
constructor(http: HttpClient);
|
|
11
|
+
getNotesByGroup(params: GetNotesByGroupRq): Observable<Response>;
|
|
12
|
+
getNotesByStudent(params: GetNotesByStudentRq): Observable<Response>;
|
|
13
|
+
createNewNote(params: CreateNewNoteRq): Observable<Response>;
|
|
14
|
+
private generateRequestParams;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotesService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotesService>;
|
|
17
|
+
}
|
|
@@ -28,6 +28,7 @@ export declare class ParameterService {
|
|
|
28
28
|
getContactedType(): Observable<any>;
|
|
29
29
|
getStatusByCode(codeStatus: number): Observable<any>;
|
|
30
30
|
getAllTypeDiscount(): Observable<any>;
|
|
31
|
+
getAllCourseModality(): Observable<any>;
|
|
31
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ParameterService, never>;
|
|
32
33
|
static ɵprov: i0.ɵɵInjectableDeclaration<ParameterService>;
|
|
33
34
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { GetStudentsByCourseRq } from '../../models/student/student.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class StudentService {
|
|
6
|
+
private http;
|
|
7
|
+
private SERVICE_URL;
|
|
8
|
+
httpOptions: any;
|
|
9
|
+
constructor(http: HttpClient);
|
|
10
|
+
getStudentsByCourse(params: GetStudentsByCourseRq): Observable<any>;
|
|
11
|
+
private generateRequestParams;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StudentService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StudentService>;
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iptdevs-design-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Library common elements into IPT Plattform.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"IPT",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"author": {
|
|
13
|
-
"name": "Academia
|
|
13
|
+
"name": "Academia Inglés Para Todos S.A.S",
|
|
14
14
|
"email": "development@inglesparatodos.edu.co",
|
|
15
|
-
"url": "https
|
|
15
|
+
"url": "https://inglesparatodos.edu.co"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"@angular/common": "^13.1.0",
|
package/public-api.d.ts
CHANGED
|
@@ -13,24 +13,35 @@ export * from "./lib/components/atoms/select/select.component";
|
|
|
13
13
|
export * from "./lib/components/atoms/text-link/text-link.component";
|
|
14
14
|
export * from "./lib/components/forms/login-form/login-form.component";
|
|
15
15
|
export * from "./lib/components/molecules/sidenav/sidenav.component";
|
|
16
|
+
export * from "./lib/core/services/attendance-service/attendance.service";
|
|
17
|
+
export * from "./lib/core/services/budget-service/budget-service";
|
|
16
18
|
export * from "./lib/core/services/course-service/course-service.model";
|
|
19
|
+
export * from "./lib/core/services/calendar-service/calendar.service";
|
|
20
|
+
export * from "./lib/core/services/marketing-service/marketing-service";
|
|
21
|
+
export * from "./lib/core/services/notes-service/notes.service";
|
|
17
22
|
export * from "./lib/core/services/parameters-service/parameters.service";
|
|
23
|
+
export * from "./lib/core/services/student-service/student.service";
|
|
18
24
|
export * from "./lib/core/services/storage-service/storage-service";
|
|
19
|
-
export * from "./lib/core/services/user-service/user-service";
|
|
20
25
|
export * from "./lib/core/services/switch-service/switch.service";
|
|
21
|
-
export * from "./lib/core/services/budget-service/budget-service";
|
|
22
|
-
export * from "./lib/core/services/marketing-service/marketing-service";
|
|
23
26
|
export * from "./lib/core/services/test-service/test.service";
|
|
24
|
-
export * from "./lib/core/
|
|
27
|
+
export * from "./lib/core/services/user-service/user-service";
|
|
25
28
|
export * from "./lib/core/utils/base-service/base.service";
|
|
29
|
+
export * from "./lib/core/utils/route-service/route.service";
|
|
30
|
+
export * from "./lib/core/models/activities/activities.interface";
|
|
31
|
+
export * from "./lib/core/models/attendance/attendance.interface";
|
|
32
|
+
export * from "./lib/core/models/budget/budget.model";
|
|
26
33
|
export * from "./lib/core/models/cod/cod-rq.model";
|
|
34
|
+
export * from "./lib/core/models/calendar/calendar-rq.models";
|
|
35
|
+
export * from "./lib/core/models/cronogram/cronogram.models";
|
|
27
36
|
export * from "./lib/core/models/course/course-rq.model";
|
|
37
|
+
export * from "./lib/core/models/marketing/marketing.model";
|
|
38
|
+
export * from "./lib/core/models/notes/notes.interface";
|
|
39
|
+
export * from "./lib/core/models/response/response.interface";
|
|
28
40
|
export * from "./lib/core/models/session/session.model";
|
|
41
|
+
export * from "./lib/core/models/student/student.interface";
|
|
29
42
|
export * from "./lib/core/models/table/table-rs.model";
|
|
43
|
+
export * from "./lib/core/models/test/test.model";
|
|
30
44
|
export * from "./lib/core/models/url/url.model";
|
|
31
45
|
export * from "./lib/core/models/user/user-rq.model";
|
|
32
46
|
export * from "./lib/core/models/user/user-rs.model";
|
|
33
|
-
export * from "./lib/core/models/test/test.model";
|
|
34
|
-
export * from "./lib/core/models/marketing/marketing.model";
|
|
35
|
-
export * from "./lib/core/models/budget/budget.model";
|
|
36
47
|
export * from "./lib/components/components.module";
|