iptdevs-design-system 3.1.929 → 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 +16 -1
- package/fesm2015/iptdevs-design-system.mjs +15 -0
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +15 -0
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/core/models/attendance/attendance.interface.d.ts +80 -5
- package/lib/core/services/attendance-service/attendance.service.d.ts +4 -1
- package/package.json +1 -1
|
@@ -186,11 +186,6 @@ export interface IRegisterNewAttendanceRq {
|
|
|
186
186
|
course_code: number;
|
|
187
187
|
course_event: number;
|
|
188
188
|
}
|
|
189
|
-
export interface ApiResponse {
|
|
190
|
-
status: number;
|
|
191
|
-
message?: string;
|
|
192
|
-
data?: any;
|
|
193
|
-
}
|
|
194
189
|
export interface AddIndividualAttendanceRq {
|
|
195
190
|
token: string;
|
|
196
191
|
course_event: number;
|
|
@@ -202,3 +197,83 @@ export interface DeleteIndividualAttendanceRq {
|
|
|
202
197
|
token: string;
|
|
203
198
|
attendance_code: number;
|
|
204
199
|
}
|
|
200
|
+
export interface IUpdateOrCreateAttendancesRq {
|
|
201
|
+
token: string;
|
|
202
|
+
course_code: number;
|
|
203
|
+
course_event: number;
|
|
204
|
+
attendances: IAttendanceTakenUpdateRq[];
|
|
205
|
+
}
|
|
206
|
+
export interface IAttendanceTakenUpdateRq {
|
|
207
|
+
cod_code: number;
|
|
208
|
+
is_attended: string;
|
|
209
|
+
observation?: string;
|
|
210
|
+
}
|
|
211
|
+
export interface IUpdateOrCreateAttendancesRs {
|
|
212
|
+
ip_applicant: string;
|
|
213
|
+
status: number;
|
|
214
|
+
message: MessageRq;
|
|
215
|
+
data: {
|
|
216
|
+
event_code: number;
|
|
217
|
+
attendances: IAttendanceSaveRq[];
|
|
218
|
+
};
|
|
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 } 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 {
|
|
@@ -30,6 +30,9 @@ export declare class AttendanceService extends IPTGeneralService {
|
|
|
30
30
|
updateAttendanceByEvent(params: IRegisterNewAttendanceRq): Observable<Response>;
|
|
31
31
|
addIndividualAttendance(param: AddIndividualAttendanceRq): Observable<any>;
|
|
32
32
|
deleteIndividualAttendance(param: DeleteIndividualAttendanceRq): Observable<any>;
|
|
33
|
+
updateOrCreateAttendances(params: IUpdateOrCreateAttendancesRq): Observable<IUpdateOrCreateAttendancesRs>;
|
|
34
|
+
getTeacherEventsAndStudents(params: GetTeacherEventsAndStudentsRq): Observable<GetTeacherEventsAndStudentsRs>;
|
|
35
|
+
getStudentsForEvent(params: GetStudentsForEventRq): Observable<GetStudentsForEventRs>;
|
|
33
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<AttendanceService, never>;
|
|
34
37
|
static ɵprov: i0.ɵɵInjectableDeclaration<AttendanceService>;
|
|
35
38
|
}
|