iptdevs-design-system 3.1.930 → 3.1.931
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/core/models/attendance/attendance.interface.mjs +1 -1
- package/esm2020/lib/core/services/attendance-service/attendance.service.mjs +12 -2
- package/fesm2015/iptdevs-design-system.mjs +11 -1
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +11 -1
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/core/models/attendance/attendance.interface.d.ts +60 -0
- package/lib/core/services/attendance-service/attendance.service.d.ts +3 -1
- package/package.json +1 -1
|
@@ -217,3 +217,63 @@ export interface IUpdateOrCreateAttendancesRs {
|
|
|
217
217
|
attendances: IAttendanceSaveRq[];
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
|
+
export interface GetTeacherEventsAndStudentsRq {
|
|
221
|
+
token: string;
|
|
222
|
+
course_code: number;
|
|
223
|
+
date_limit?: string;
|
|
224
|
+
}
|
|
225
|
+
export interface GetStudentsForEventRq {
|
|
226
|
+
token: string;
|
|
227
|
+
course_code: number;
|
|
228
|
+
event_code: number;
|
|
229
|
+
}
|
|
230
|
+
export interface GetTeacherEventsAndStudentsRs {
|
|
231
|
+
status: number;
|
|
232
|
+
message: {
|
|
233
|
+
code: number;
|
|
234
|
+
message: string;
|
|
235
|
+
};
|
|
236
|
+
data: {
|
|
237
|
+
events: {
|
|
238
|
+
theoretical: {
|
|
239
|
+
with_attendance: Event[];
|
|
240
|
+
without_attendance: Event[];
|
|
241
|
+
};
|
|
242
|
+
club: {
|
|
243
|
+
with_attendance: Event[];
|
|
244
|
+
without_attendance: Event[];
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
export interface GetStudentsForEventRs {
|
|
250
|
+
status: number;
|
|
251
|
+
message: {
|
|
252
|
+
code: number;
|
|
253
|
+
message: string;
|
|
254
|
+
};
|
|
255
|
+
data: {
|
|
256
|
+
event: {
|
|
257
|
+
code: number;
|
|
258
|
+
course_code: number;
|
|
259
|
+
date_event: string;
|
|
260
|
+
name_event: string;
|
|
261
|
+
description_event: string;
|
|
262
|
+
unit: string;
|
|
263
|
+
is_club: number;
|
|
264
|
+
};
|
|
265
|
+
students: {
|
|
266
|
+
cod_code: number;
|
|
267
|
+
Student: string;
|
|
268
|
+
phone_number: string | null;
|
|
269
|
+
user_status: number | null;
|
|
270
|
+
Attendance: {
|
|
271
|
+
code: number;
|
|
272
|
+
course_event: number;
|
|
273
|
+
cod_code: number;
|
|
274
|
+
is_attended: string;
|
|
275
|
+
observation: string;
|
|
276
|
+
} | null;
|
|
277
|
+
}[];
|
|
278
|
+
};
|
|
279
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Response } from '../../models/response/response.interface';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { AddEventByCourseRq, CourseAttendance, GetEventByCodeRq, GetEventsByCourseCodeRq, GetNotAttendancesByCodRq, IRegisterNewAttendanceRq, IServiceAllDataAttendanceRq, IUpdateAttendacenByCodeRq, RegisterNewAttendanceByEventRq, AddIndividualAttendanceRq, DeleteIndividualAttendanceRq, IUpdateOrCreateAttendancesRq, IUpdateOrCreateAttendancesRs } from '../../models/attendance/attendance.interface';
|
|
4
|
+
import { AddEventByCourseRq, CourseAttendance, GetEventByCodeRq, GetEventsByCourseCodeRq, GetNotAttendancesByCodRq, IRegisterNewAttendanceRq, IServiceAllDataAttendanceRq, IUpdateAttendacenByCodeRq, RegisterNewAttendanceByEventRq, AddIndividualAttendanceRq, DeleteIndividualAttendanceRq, IUpdateOrCreateAttendancesRq, IUpdateOrCreateAttendancesRs, GetTeacherEventsAndStudentsRq, GetStudentsForEventRq, GetTeacherEventsAndStudentsRs, GetStudentsForEventRs } from '../../models/attendance/attendance.interface';
|
|
5
5
|
import { IPTGeneralService } from '../service-enviroments';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class AttendanceService extends IPTGeneralService {
|
|
@@ -31,6 +31,8 @@ export declare class AttendanceService extends IPTGeneralService {
|
|
|
31
31
|
addIndividualAttendance(param: AddIndividualAttendanceRq): Observable<any>;
|
|
32
32
|
deleteIndividualAttendance(param: DeleteIndividualAttendanceRq): Observable<any>;
|
|
33
33
|
updateOrCreateAttendances(params: IUpdateOrCreateAttendancesRq): Observable<IUpdateOrCreateAttendancesRs>;
|
|
34
|
+
getTeacherEventsAndStudents(params: GetTeacherEventsAndStudentsRq): Observable<GetTeacherEventsAndStudentsRs>;
|
|
35
|
+
getStudentsForEvent(params: GetStudentsForEventRq): Observable<GetStudentsForEventRs>;
|
|
34
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<AttendanceService, never>;
|
|
35
37
|
static ɵprov: i0.ɵɵInjectableDeclaration<AttendanceService>;
|
|
36
38
|
}
|