cloud-ide-lms-model 1.1.78 → 1.1.80
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/lib/model/academics/aca_student_enrollment.d.ts +98 -0
- package/lib/model/academics/aca_student_enrollment.js +73 -0
- package/lib/model/academics/index.d.ts +1 -0
- package/lib/model/academics/index.js +1 -0
- package/lib/model/attendance/attendance.d.ts +144 -0
- package/lib/model/attendance/attendance.js +148 -0
- package/lib/model/attendance/index.d.ts +1 -0
- package/lib/model/attendance/index.js +17 -0
- package/lib/model/core/core_ai.d.ts +64 -0
- package/lib/model/core/core_ai.js +55 -0
- package/lib/model/core/index.d.ts +1 -0
- package/lib/model/core/index.js +1 -0
- package/lib/model/fleet/fleet_trip_log.js +0 -3
- package/lib/model/index.d.ts +1 -0
- package/lib/model/index.js +1 -0
- package/lib/routes/academicsRoutes.d.ts +4 -0
- package/lib/routes/academicsRoutes.js +4 -0
- package/lib/routes/aiRoutes.d.ts +14 -0
- package/lib/routes/aiRoutes.js +18 -0
- package/lib/routes/attendanceRoutes.d.ts +11 -0
- package/lib/routes/attendanceRoutes.js +15 -0
- package/lib/routes/index.d.ts +2 -0
- package/lib/routes/index.js +2 -0
- package/lib/schema/academics/aca_student_enrollment.d.ts +27 -0
- package/lib/schema/academics/aca_student_enrollment.js +9 -0
- package/lib/schema/academics/index.d.ts +1 -0
- package/lib/schema/academics/index.js +1 -0
- package/lib/schema/attendance/attendance_exception.d.ts +17 -0
- package/lib/schema/attendance/attendance_exception.js +9 -0
- package/lib/schema/attendance/attendance_integration_audit.d.ts +17 -0
- package/lib/schema/attendance/attendance_integration_audit.js +9 -0
- package/lib/schema/attendance/attendance_provider_master.d.ts +15 -0
- package/lib/schema/attendance/attendance_provider_master.js +9 -0
- package/lib/schema/attendance/attendance_record.d.ts +25 -0
- package/lib/schema/attendance/attendance_record.js +9 -0
- package/lib/schema/attendance/attendance_school_integration.d.ts +23 -0
- package/lib/schema/attendance/attendance_school_integration.js +9 -0
- package/lib/schema/attendance/index.d.ts +5 -0
- package/lib/schema/attendance/index.js +21 -0
- package/lib/schema/collection_names.d.ts +13 -0
- package/lib/schema/collection_names.js +13 -0
- package/lib/schema/core/core_ai.d.ts +74 -0
- package/lib/schema/core/core_ai.js +24 -0
- package/lib/schema/core/index.d.ts +1 -0
- package/lib/schema/core/index.js +1 -0
- package/lib/schema/index.d.ts +1 -0
- package/lib/schema/index.js +1 -0
- package/package.json +1 -1
- package/README.md +0 -154
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { MTableQueries } from "../../common-types/common";
|
|
2
|
+
import { AcaStudentEnrollment, AcaStudentEnrollmentBase } from "../../schema";
|
|
3
|
+
import { controllerResponse } from "../../utilities";
|
|
4
|
+
type IStudentEnrollmentErrorLogger = {
|
|
5
|
+
[key in keyof MStudentEnrollment]: string;
|
|
6
|
+
};
|
|
7
|
+
type IStudentEnrollmentGetByIdErrorLogger = {
|
|
8
|
+
[key in keyof MStudentEnrollmentGetByIdPayload]: string;
|
|
9
|
+
};
|
|
10
|
+
type IStudentEnrollmentDeleteErrorLogger = {
|
|
11
|
+
[key in keyof MStudentEnrollmentDeletePayload]: string;
|
|
12
|
+
};
|
|
13
|
+
type IStudentEnrollmentInsertUpdateErrorLogger = {
|
|
14
|
+
[key in keyof MStudentEnrollmentInsertUpdatePayload]: string;
|
|
15
|
+
};
|
|
16
|
+
declare class MStudentEnrollment extends MTableQueries {
|
|
17
|
+
acen_id?: string;
|
|
18
|
+
acen_student_id_auth?: string;
|
|
19
|
+
acen_entity_id_syen?: string;
|
|
20
|
+
acen_academic_year_id_acayr?: string;
|
|
21
|
+
acen_class_program_id_acacpm?: string;
|
|
22
|
+
acen_term_id_acapt?: string;
|
|
23
|
+
acen_section_id_acapts?: string;
|
|
24
|
+
acen_status_sygms?: string;
|
|
25
|
+
acen_iscurrent?: boolean;
|
|
26
|
+
acen_isactive?: boolean;
|
|
27
|
+
constructor(init: MStudentEnrollment);
|
|
28
|
+
Validate?(): Partial<IStudentEnrollmentErrorLogger>;
|
|
29
|
+
}
|
|
30
|
+
declare class MStudentEnrollmentGetByIdPayload {
|
|
31
|
+
acen_id?: string;
|
|
32
|
+
constructor(init: MStudentEnrollmentGetByIdPayload);
|
|
33
|
+
Validate?(): Partial<IStudentEnrollmentGetByIdErrorLogger>;
|
|
34
|
+
}
|
|
35
|
+
declare class MStudentEnrollmentDeletePayload {
|
|
36
|
+
acen_id?: string;
|
|
37
|
+
constructor(init: MStudentEnrollmentDeletePayload);
|
|
38
|
+
Validate?(): Partial<IStudentEnrollmentDeleteErrorLogger>;
|
|
39
|
+
}
|
|
40
|
+
declare class MStudentEnrollmentInsertUpdatePayload extends AcaStudentEnrollment {
|
|
41
|
+
constructor(init: AcaStudentEnrollment);
|
|
42
|
+
Validate?(): Partial<IStudentEnrollmentInsertUpdateErrorLogger>;
|
|
43
|
+
}
|
|
44
|
+
interface AcaStudentEnrollmentResponse extends Omit<AcaStudentEnrollmentBase, "acen_student_id_auth" | "acen_entity_id_syen" | "acen_academic_year_id_acayr" | "acen_class_program_id_acacpm" | "acen_term_id_acapt" | "acen_section_id_acapts" | "acen_status_sygms" | "acen_branch_id_acabrn"> {
|
|
45
|
+
acen_student_id_auth?: {
|
|
46
|
+
_id?: string;
|
|
47
|
+
syus_name?: string;
|
|
48
|
+
user_fullname?: string;
|
|
49
|
+
syus_email?: string;
|
|
50
|
+
};
|
|
51
|
+
acen_entity_id_syen?: {
|
|
52
|
+
_id?: string;
|
|
53
|
+
syen_name?: string;
|
|
54
|
+
};
|
|
55
|
+
acen_academic_year_id_acayr?: {
|
|
56
|
+
_id?: string;
|
|
57
|
+
acayr_name?: string;
|
|
58
|
+
acayr_code?: string;
|
|
59
|
+
};
|
|
60
|
+
acen_class_program_id_acacpm?: {
|
|
61
|
+
_id?: string;
|
|
62
|
+
acacpm_alise_title?: string;
|
|
63
|
+
};
|
|
64
|
+
acen_term_id_acapt?: {
|
|
65
|
+
_id?: string;
|
|
66
|
+
acapt_name?: string;
|
|
67
|
+
acapt_code?: string;
|
|
68
|
+
};
|
|
69
|
+
acen_section_id_acapts?: {
|
|
70
|
+
_id?: string;
|
|
71
|
+
acapts_name?: string;
|
|
72
|
+
acapts_code?: string;
|
|
73
|
+
};
|
|
74
|
+
acen_branch_id_acabrn?: {
|
|
75
|
+
_id?: string;
|
|
76
|
+
acabrn_name?: string;
|
|
77
|
+
acabrn_code?: string;
|
|
78
|
+
} | string;
|
|
79
|
+
acen_status_sygms?: {
|
|
80
|
+
_id?: string;
|
|
81
|
+
sygms_title?: string;
|
|
82
|
+
sygms_code?: string;
|
|
83
|
+
} | string;
|
|
84
|
+
}
|
|
85
|
+
interface studentEnrollmentControllerResponse extends controllerResponse {
|
|
86
|
+
data?: AcaStudentEnrollmentResponse[] | AcaStudentEnrollmentResponse | null;
|
|
87
|
+
totalDocument?: number;
|
|
88
|
+
}
|
|
89
|
+
interface studentEnrollmentByIdControllerResponse extends controllerResponse {
|
|
90
|
+
data?: AcaStudentEnrollmentResponse | null;
|
|
91
|
+
}
|
|
92
|
+
interface studentEnrollmentInsertUpdateControllerResponse extends controllerResponse {
|
|
93
|
+
data?: AcaStudentEnrollmentResponse | null;
|
|
94
|
+
}
|
|
95
|
+
interface studentEnrollmentDeleteControllerResponse extends controllerResponse {
|
|
96
|
+
data?: boolean;
|
|
97
|
+
}
|
|
98
|
+
export { IStudentEnrollmentErrorLogger, IStudentEnrollmentGetByIdErrorLogger, IStudentEnrollmentDeleteErrorLogger, IStudentEnrollmentInsertUpdateErrorLogger, MStudentEnrollment, MStudentEnrollmentGetByIdPayload, MStudentEnrollmentDeletePayload, MStudentEnrollmentInsertUpdatePayload, AcaStudentEnrollmentResponse, studentEnrollmentControllerResponse, studentEnrollmentByIdControllerResponse, studentEnrollmentInsertUpdateControllerResponse, studentEnrollmentDeleteControllerResponse };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MStudentEnrollmentInsertUpdatePayload = exports.MStudentEnrollmentDeletePayload = exports.MStudentEnrollmentGetByIdPayload = exports.MStudentEnrollment = void 0;
|
|
4
|
+
const common_1 = require("../../common-types/common");
|
|
5
|
+
const schema_1 = require("../../schema");
|
|
6
|
+
class MStudentEnrollment extends common_1.MTableQueries {
|
|
7
|
+
constructor(init) {
|
|
8
|
+
super(init);
|
|
9
|
+
Object.assign(this, init);
|
|
10
|
+
}
|
|
11
|
+
Validate() {
|
|
12
|
+
return {};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.MStudentEnrollment = MStudentEnrollment;
|
|
16
|
+
class MStudentEnrollmentGetByIdPayload {
|
|
17
|
+
constructor(init) {
|
|
18
|
+
Object.assign(this, init);
|
|
19
|
+
}
|
|
20
|
+
Validate() {
|
|
21
|
+
const errorLogger = {};
|
|
22
|
+
if (!this.acen_id) {
|
|
23
|
+
errorLogger.acen_id = "Enrollment ID is required.";
|
|
24
|
+
}
|
|
25
|
+
return errorLogger;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.MStudentEnrollmentGetByIdPayload = MStudentEnrollmentGetByIdPayload;
|
|
29
|
+
class MStudentEnrollmentDeletePayload {
|
|
30
|
+
constructor(init) {
|
|
31
|
+
Object.assign(this, init);
|
|
32
|
+
}
|
|
33
|
+
Validate() {
|
|
34
|
+
const errorLogger = {};
|
|
35
|
+
if (!this.acen_id) {
|
|
36
|
+
errorLogger.acen_id = "Enrollment ID is required.";
|
|
37
|
+
}
|
|
38
|
+
return errorLogger;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.MStudentEnrollmentDeletePayload = MStudentEnrollmentDeletePayload;
|
|
42
|
+
class MStudentEnrollmentInsertUpdatePayload extends schema_1.AcaStudentEnrollment {
|
|
43
|
+
constructor(init) {
|
|
44
|
+
super();
|
|
45
|
+
Object.assign(this, init);
|
|
46
|
+
}
|
|
47
|
+
Validate() {
|
|
48
|
+
const errorLogger = {};
|
|
49
|
+
if (!this.acen_student_id_auth) {
|
|
50
|
+
errorLogger.acen_student_id_auth = "Student is required.";
|
|
51
|
+
}
|
|
52
|
+
if (!this.acen_entity_id_syen) {
|
|
53
|
+
errorLogger.acen_entity_id_syen = "Entity is required.";
|
|
54
|
+
}
|
|
55
|
+
if (!this.acen_academic_year_id_acayr) {
|
|
56
|
+
errorLogger.acen_academic_year_id_acayr = "Academic year is required.";
|
|
57
|
+
}
|
|
58
|
+
if (!this.acen_class_program_id_acacpm) {
|
|
59
|
+
errorLogger.acen_class_program_id_acacpm = "Class/Program is required.";
|
|
60
|
+
}
|
|
61
|
+
if (!this.acen_term_id_acapt) {
|
|
62
|
+
errorLogger.acen_term_id_acapt = "Term is required.";
|
|
63
|
+
}
|
|
64
|
+
if (!this.acen_section_id_acapts) {
|
|
65
|
+
errorLogger.acen_section_id_acapts = "Section is required.";
|
|
66
|
+
}
|
|
67
|
+
if (!this.acen_status_sygms) {
|
|
68
|
+
errorLogger.acen_status_sygms = "Enrollment status is required.";
|
|
69
|
+
}
|
|
70
|
+
return errorLogger;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.MStudentEnrollmentInsertUpdatePayload = MStudentEnrollmentInsertUpdatePayload;
|
|
@@ -4,5 +4,6 @@ export * from "./aca_class_program_master";
|
|
|
4
4
|
export * from "./aca_class_program_term";
|
|
5
5
|
export * from "./aca_prg_trm_section";
|
|
6
6
|
export * from "./aca_class_prg_branch";
|
|
7
|
+
export * from "./aca_student_enrollment";
|
|
7
8
|
export * from "./academics_bonafide_request";
|
|
8
9
|
export * from "./aca_education_board";
|
|
@@ -20,5 +20,6 @@ __exportStar(require("./aca_class_program_master"), exports);
|
|
|
20
20
|
__exportStar(require("./aca_class_program_term"), exports);
|
|
21
21
|
__exportStar(require("./aca_prg_trm_section"), exports);
|
|
22
22
|
__exportStar(require("./aca_class_prg_branch"), exports);
|
|
23
|
+
__exportStar(require("./aca_student_enrollment"), exports);
|
|
23
24
|
__exportStar(require("./academics_bonafide_request"), exports);
|
|
24
25
|
__exportStar(require("./aca_education_board"), exports);
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { MTableQueries } from "../../common-types/common";
|
|
2
|
+
import { AttendanceRecord, AttendanceRecordBase, AttendanceProviderMaster, AttendanceSchoolIntegration, AttendanceException } from "../../schema";
|
|
3
|
+
import { controllerResponse } from "../../utilities";
|
|
4
|
+
type AttendanceErrorLogger<T> = {
|
|
5
|
+
[key in keyof T]: string;
|
|
6
|
+
};
|
|
7
|
+
declare class MAttendanceRecord extends MTableQueries {
|
|
8
|
+
atnr_id?: string;
|
|
9
|
+
atnr_user_id_auth?: string;
|
|
10
|
+
atnr_entity_id_syen?: string;
|
|
11
|
+
atnr_attendee_type?: "STUDENT" | "TEACHER" | "STAFF" | "ALL";
|
|
12
|
+
atnr_section_id_acapts?: string;
|
|
13
|
+
atnr_academic_year_id_acayr?: string;
|
|
14
|
+
atnr_period_index?: number;
|
|
15
|
+
atnr_status_sygms?: string;
|
|
16
|
+
fromDate?: string;
|
|
17
|
+
toDate?: string;
|
|
18
|
+
constructor(init: MAttendanceRecord);
|
|
19
|
+
Validate?(): Partial<AttendanceErrorLogger<MAttendanceRecord>>;
|
|
20
|
+
}
|
|
21
|
+
declare class MAttendanceRecordGetByIdPayload {
|
|
22
|
+
atnr_id?: string;
|
|
23
|
+
constructor(init: MAttendanceRecordGetByIdPayload);
|
|
24
|
+
Validate?(): Partial<AttendanceErrorLogger<MAttendanceRecordGetByIdPayload>>;
|
|
25
|
+
}
|
|
26
|
+
declare class MAttendanceRecordDeletePayload {
|
|
27
|
+
atnr_id?: string;
|
|
28
|
+
constructor(init: MAttendanceRecordDeletePayload);
|
|
29
|
+
Validate?(): Partial<AttendanceErrorLogger<MAttendanceRecordDeletePayload>>;
|
|
30
|
+
}
|
|
31
|
+
declare class MAttendanceRecordInsertUpdatePayload extends AttendanceRecord {
|
|
32
|
+
constructor(init: AttendanceRecord);
|
|
33
|
+
Validate?(): Partial<AttendanceErrorLogger<MAttendanceRecordInsertUpdatePayload>>;
|
|
34
|
+
}
|
|
35
|
+
interface IAttendanceBulkRecord {
|
|
36
|
+
atnr_user_id_auth: string;
|
|
37
|
+
atnr_status_sygms: string;
|
|
38
|
+
atnr_remark?: string;
|
|
39
|
+
atnr_period_index?: number;
|
|
40
|
+
}
|
|
41
|
+
declare class MAttendanceRecordBulkSavePayload {
|
|
42
|
+
atnr_date?: Date | string;
|
|
43
|
+
atnr_entity_id_syen?: string;
|
|
44
|
+
atnr_attendee_type?: "STUDENT" | "TEACHER" | "STAFF" | "ALL";
|
|
45
|
+
atnr_section_id_acapts?: string;
|
|
46
|
+
atnr_academic_year_id_acayr?: string;
|
|
47
|
+
atnr_period_index?: number;
|
|
48
|
+
records?: IAttendanceBulkRecord[];
|
|
49
|
+
constructor(init: MAttendanceRecordBulkSavePayload);
|
|
50
|
+
Validate?(): Partial<AttendanceErrorLogger<MAttendanceRecordBulkSavePayload>>;
|
|
51
|
+
}
|
|
52
|
+
declare class MAttendanceReportPayload {
|
|
53
|
+
atnr_entity_id_syen?: string;
|
|
54
|
+
atnr_attendee_type?: "STUDENT" | "TEACHER" | "STAFF" | "ALL";
|
|
55
|
+
atnr_section_id_acapts?: string;
|
|
56
|
+
atnr_academic_year_id_acayr?: string;
|
|
57
|
+
fromDate?: string;
|
|
58
|
+
toDate?: string;
|
|
59
|
+
atnr_user_id_auth?: string;
|
|
60
|
+
threshold?: number;
|
|
61
|
+
constructor(init: MAttendanceReportPayload);
|
|
62
|
+
}
|
|
63
|
+
declare class MAttendanceException extends MTableQueries {
|
|
64
|
+
atex_id?: string;
|
|
65
|
+
atex_entity_id_syen?: string;
|
|
66
|
+
atex_exception_status?: "OPEN" | "RESOLVED";
|
|
67
|
+
constructor(init: MAttendanceException);
|
|
68
|
+
}
|
|
69
|
+
declare class MAttendanceExceptionResolvePayload {
|
|
70
|
+
atex_id?: string;
|
|
71
|
+
atex_resolution_note?: string;
|
|
72
|
+
constructor(init: MAttendanceExceptionResolvePayload);
|
|
73
|
+
Validate?(): Partial<AttendanceErrorLogger<MAttendanceExceptionResolvePayload>>;
|
|
74
|
+
}
|
|
75
|
+
declare class MAttendanceProviderMaster extends MTableQueries {
|
|
76
|
+
atprv_id?: string;
|
|
77
|
+
atprv_provider_code?: string;
|
|
78
|
+
atprv_provider_name?: string;
|
|
79
|
+
atprv_isactive?: boolean;
|
|
80
|
+
constructor(init: MAttendanceProviderMaster);
|
|
81
|
+
}
|
|
82
|
+
declare class MAttendanceProviderInsertUpdatePayload extends AttendanceProviderMaster {
|
|
83
|
+
constructor(init: AttendanceProviderMaster);
|
|
84
|
+
}
|
|
85
|
+
declare class MAttendanceSchoolIntegrationInsertUpdatePayload extends AttendanceSchoolIntegration {
|
|
86
|
+
constructor(init: AttendanceSchoolIntegration);
|
|
87
|
+
}
|
|
88
|
+
declare class MAttendanceSchoolIntegrationGetByIdPayload {
|
|
89
|
+
atsi_id?: string;
|
|
90
|
+
constructor(init: MAttendanceSchoolIntegrationGetByIdPayload);
|
|
91
|
+
Validate?(): Partial<AttendanceErrorLogger<MAttendanceSchoolIntegrationGetByIdPayload>>;
|
|
92
|
+
}
|
|
93
|
+
declare class MAttendanceSchoolIntegrationActionPayload {
|
|
94
|
+
atsi_id?: string;
|
|
95
|
+
constructor(init: MAttendanceSchoolIntegrationActionPayload);
|
|
96
|
+
Validate?(): Partial<AttendanceErrorLogger<MAttendanceSchoolIntegrationActionPayload>>;
|
|
97
|
+
}
|
|
98
|
+
interface AttendanceRecordResponse extends Omit<AttendanceRecordBase, "atnr_user_id_auth" | "atnr_status_sygms" | "atnr_section_id_acapts" | "atnr_academic_year_id_acayr"> {
|
|
99
|
+
atnr_user_id_auth?: {
|
|
100
|
+
_id?: string;
|
|
101
|
+
syus_name?: string;
|
|
102
|
+
user_fullname?: string;
|
|
103
|
+
syus_email?: string;
|
|
104
|
+
} | string;
|
|
105
|
+
atnr_status_sygms?: {
|
|
106
|
+
_id?: string;
|
|
107
|
+
sygms_title?: string;
|
|
108
|
+
sygms_code?: string;
|
|
109
|
+
} | string;
|
|
110
|
+
atnr_section_id_acapts?: {
|
|
111
|
+
_id?: string;
|
|
112
|
+
acapts_name?: string;
|
|
113
|
+
acapts_code?: string;
|
|
114
|
+
} | string;
|
|
115
|
+
atnr_academic_year_id_acayr?: {
|
|
116
|
+
_id?: string;
|
|
117
|
+
acayr_name?: string;
|
|
118
|
+
acayr_code?: string;
|
|
119
|
+
} | string;
|
|
120
|
+
}
|
|
121
|
+
interface attendanceRecordControllerResponse extends controllerResponse {
|
|
122
|
+
data?: AttendanceRecordResponse[] | AttendanceRecordResponse | null;
|
|
123
|
+
totalDocument?: number;
|
|
124
|
+
}
|
|
125
|
+
interface attendanceRecordByIdControllerResponse extends controllerResponse {
|
|
126
|
+
data?: AttendanceRecordResponse | null;
|
|
127
|
+
}
|
|
128
|
+
interface attendanceRecordInsertUpdateControllerResponse extends controllerResponse {
|
|
129
|
+
data?: AttendanceRecordResponse | null;
|
|
130
|
+
}
|
|
131
|
+
interface attendanceRecordDeleteControllerResponse extends controllerResponse {
|
|
132
|
+
data?: boolean;
|
|
133
|
+
}
|
|
134
|
+
interface attendanceReportControllerResponse extends controllerResponse {
|
|
135
|
+
data?: unknown;
|
|
136
|
+
}
|
|
137
|
+
interface attendanceExceptionControllerResponse extends controllerResponse {
|
|
138
|
+
data?: AttendanceException[] | AttendanceException | null;
|
|
139
|
+
totalDocument?: number;
|
|
140
|
+
}
|
|
141
|
+
interface attendanceIntegrationControllerResponse extends controllerResponse {
|
|
142
|
+
data?: unknown;
|
|
143
|
+
}
|
|
144
|
+
export { MAttendanceRecord, MAttendanceRecordGetByIdPayload, MAttendanceRecordDeletePayload, MAttendanceRecordInsertUpdatePayload, MAttendanceRecordBulkSavePayload, MAttendanceReportPayload, MAttendanceException, MAttendanceExceptionResolvePayload, MAttendanceProviderMaster, MAttendanceProviderInsertUpdatePayload, MAttendanceSchoolIntegrationInsertUpdatePayload, MAttendanceSchoolIntegrationGetByIdPayload, MAttendanceSchoolIntegrationActionPayload, attendanceRecordControllerResponse, attendanceRecordByIdControllerResponse, attendanceRecordInsertUpdateControllerResponse, attendanceRecordDeleteControllerResponse, attendanceReportControllerResponse, attendanceExceptionControllerResponse, attendanceIntegrationControllerResponse, AttendanceRecordResponse, IAttendanceBulkRecord };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MAttendanceSchoolIntegrationActionPayload = exports.MAttendanceSchoolIntegrationGetByIdPayload = exports.MAttendanceSchoolIntegrationInsertUpdatePayload = exports.MAttendanceProviderInsertUpdatePayload = exports.MAttendanceProviderMaster = exports.MAttendanceExceptionResolvePayload = exports.MAttendanceException = exports.MAttendanceReportPayload = exports.MAttendanceRecordBulkSavePayload = exports.MAttendanceRecordInsertUpdatePayload = exports.MAttendanceRecordDeletePayload = exports.MAttendanceRecordGetByIdPayload = exports.MAttendanceRecord = void 0;
|
|
4
|
+
const common_1 = require("../../common-types/common");
|
|
5
|
+
const schema_1 = require("../../schema");
|
|
6
|
+
class MAttendanceRecord extends common_1.MTableQueries {
|
|
7
|
+
constructor(init) {
|
|
8
|
+
super(init);
|
|
9
|
+
Object.assign(this, init);
|
|
10
|
+
}
|
|
11
|
+
Validate() {
|
|
12
|
+
return {};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.MAttendanceRecord = MAttendanceRecord;
|
|
16
|
+
class MAttendanceRecordGetByIdPayload {
|
|
17
|
+
constructor(init) {
|
|
18
|
+
Object.assign(this, init);
|
|
19
|
+
}
|
|
20
|
+
Validate() {
|
|
21
|
+
const errorLogger = {};
|
|
22
|
+
if (!this.atnr_id)
|
|
23
|
+
errorLogger.atnr_id = "Attendance ID is required.";
|
|
24
|
+
return errorLogger;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.MAttendanceRecordGetByIdPayload = MAttendanceRecordGetByIdPayload;
|
|
28
|
+
class MAttendanceRecordDeletePayload {
|
|
29
|
+
constructor(init) {
|
|
30
|
+
Object.assign(this, init);
|
|
31
|
+
}
|
|
32
|
+
Validate() {
|
|
33
|
+
const errorLogger = {};
|
|
34
|
+
if (!this.atnr_id)
|
|
35
|
+
errorLogger.atnr_id = "Attendance ID is required.";
|
|
36
|
+
return errorLogger;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.MAttendanceRecordDeletePayload = MAttendanceRecordDeletePayload;
|
|
40
|
+
class MAttendanceRecordInsertUpdatePayload extends schema_1.AttendanceRecord {
|
|
41
|
+
constructor(init) {
|
|
42
|
+
super();
|
|
43
|
+
Object.assign(this, init);
|
|
44
|
+
}
|
|
45
|
+
Validate() {
|
|
46
|
+
const errorLogger = {};
|
|
47
|
+
if (!this.atnr_date)
|
|
48
|
+
errorLogger.atnr_date = "Date is required.";
|
|
49
|
+
if (!this.atnr_user_id_auth)
|
|
50
|
+
errorLogger.atnr_user_id_auth = "User is required.";
|
|
51
|
+
if (!this.atnr_entity_id_syen)
|
|
52
|
+
errorLogger.atnr_entity_id_syen = "Entity is required.";
|
|
53
|
+
if (!this.atnr_status_sygms)
|
|
54
|
+
errorLogger.atnr_status_sygms = "Attendance status is required.";
|
|
55
|
+
if (!this.atnr_attendee_type)
|
|
56
|
+
errorLogger.atnr_attendee_type = "Attendee type is required.";
|
|
57
|
+
return errorLogger;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.MAttendanceRecordInsertUpdatePayload = MAttendanceRecordInsertUpdatePayload;
|
|
61
|
+
class MAttendanceRecordBulkSavePayload {
|
|
62
|
+
constructor(init) {
|
|
63
|
+
Object.assign(this, init);
|
|
64
|
+
}
|
|
65
|
+
Validate() {
|
|
66
|
+
const errorLogger = {};
|
|
67
|
+
if (!this.atnr_date)
|
|
68
|
+
errorLogger.atnr_date = "Date is required.";
|
|
69
|
+
if (!this.atnr_entity_id_syen)
|
|
70
|
+
errorLogger.atnr_entity_id_syen = "Entity is required.";
|
|
71
|
+
if (!this.atnr_attendee_type)
|
|
72
|
+
errorLogger.atnr_attendee_type = "Attendee type is required.";
|
|
73
|
+
if (!this.records || this.records.length === 0)
|
|
74
|
+
errorLogger.records = "At least one record is required.";
|
|
75
|
+
return errorLogger;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.MAttendanceRecordBulkSavePayload = MAttendanceRecordBulkSavePayload;
|
|
79
|
+
class MAttendanceReportPayload {
|
|
80
|
+
constructor(init) {
|
|
81
|
+
Object.assign(this, init);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.MAttendanceReportPayload = MAttendanceReportPayload;
|
|
85
|
+
class MAttendanceException extends common_1.MTableQueries {
|
|
86
|
+
constructor(init) {
|
|
87
|
+
super(init);
|
|
88
|
+
Object.assign(this, init);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.MAttendanceException = MAttendanceException;
|
|
92
|
+
class MAttendanceExceptionResolvePayload {
|
|
93
|
+
constructor(init) {
|
|
94
|
+
Object.assign(this, init);
|
|
95
|
+
}
|
|
96
|
+
Validate() {
|
|
97
|
+
const errorLogger = {};
|
|
98
|
+
if (!this.atex_id)
|
|
99
|
+
errorLogger.atex_id = "Exception ID is required.";
|
|
100
|
+
return errorLogger;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.MAttendanceExceptionResolvePayload = MAttendanceExceptionResolvePayload;
|
|
104
|
+
class MAttendanceProviderMaster extends common_1.MTableQueries {
|
|
105
|
+
constructor(init) {
|
|
106
|
+
super(init);
|
|
107
|
+
Object.assign(this, init);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.MAttendanceProviderMaster = MAttendanceProviderMaster;
|
|
111
|
+
class MAttendanceProviderInsertUpdatePayload extends schema_1.AttendanceProviderMaster {
|
|
112
|
+
constructor(init) {
|
|
113
|
+
super();
|
|
114
|
+
Object.assign(this, init);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
exports.MAttendanceProviderInsertUpdatePayload = MAttendanceProviderInsertUpdatePayload;
|
|
118
|
+
class MAttendanceSchoolIntegrationInsertUpdatePayload extends schema_1.AttendanceSchoolIntegration {
|
|
119
|
+
constructor(init) {
|
|
120
|
+
super();
|
|
121
|
+
Object.assign(this, init);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.MAttendanceSchoolIntegrationInsertUpdatePayload = MAttendanceSchoolIntegrationInsertUpdatePayload;
|
|
125
|
+
class MAttendanceSchoolIntegrationGetByIdPayload {
|
|
126
|
+
constructor(init) {
|
|
127
|
+
Object.assign(this, init);
|
|
128
|
+
}
|
|
129
|
+
Validate() {
|
|
130
|
+
const errorLogger = {};
|
|
131
|
+
if (!this.atsi_id)
|
|
132
|
+
errorLogger.atsi_id = "Integration ID is required.";
|
|
133
|
+
return errorLogger;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
exports.MAttendanceSchoolIntegrationGetByIdPayload = MAttendanceSchoolIntegrationGetByIdPayload;
|
|
137
|
+
class MAttendanceSchoolIntegrationActionPayload {
|
|
138
|
+
constructor(init) {
|
|
139
|
+
Object.assign(this, init);
|
|
140
|
+
}
|
|
141
|
+
Validate() {
|
|
142
|
+
const errorLogger = {};
|
|
143
|
+
if (!this.atsi_id)
|
|
144
|
+
errorLogger.atsi_id = "Integration ID is required.";
|
|
145
|
+
return errorLogger;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
exports.MAttendanceSchoolIntegrationActionPayload = MAttendanceSchoolIntegrationActionPayload;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./attendance";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./attendance"), exports);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { MTableQueries } from "../../common-types/common";
|
|
2
|
+
import { CoreAiCapability, CoreAiEmbeddingChunk, CoreAiFeedbackLog, CoreAiKnowledgeSource, CoreAiPromptTemplate, CoreAiRequestAuditLog, CoreAiRoleCapabilityMapping } from "../../schema";
|
|
3
|
+
import { controllerResponse } from "../../utilities";
|
|
4
|
+
declare class MAiChatPayload extends MTableQueries {
|
|
5
|
+
query: string;
|
|
6
|
+
capability_code: string;
|
|
7
|
+
page_code?: string;
|
|
8
|
+
module?: string;
|
|
9
|
+
record_id?: string;
|
|
10
|
+
context?: Record<string, any>;
|
|
11
|
+
constructor(init: MAiChatPayload);
|
|
12
|
+
Validate?(): Partial<Record<keyof MAiChatPayload, string>>;
|
|
13
|
+
}
|
|
14
|
+
declare class MAiFeedbackPayload {
|
|
15
|
+
request_id?: string;
|
|
16
|
+
rating?: "UP" | "DOWN";
|
|
17
|
+
feedback_text?: string;
|
|
18
|
+
constructor(init: MAiFeedbackPayload);
|
|
19
|
+
Validate?(): Partial<Record<keyof MAiFeedbackPayload, string>>;
|
|
20
|
+
}
|
|
21
|
+
declare class MAiPromptTemplatePayload {
|
|
22
|
+
ai_prompt_template?: CoreAiPromptTemplate;
|
|
23
|
+
constructor(init: MAiPromptTemplatePayload);
|
|
24
|
+
}
|
|
25
|
+
declare class MAiKnowledgeSyncPayload {
|
|
26
|
+
ai_knowledge_source?: CoreAiKnowledgeSource;
|
|
27
|
+
chunks?: CoreAiEmbeddingChunk[];
|
|
28
|
+
constructor(init: MAiKnowledgeSyncPayload);
|
|
29
|
+
}
|
|
30
|
+
interface aiCapabilityControllerResponse extends controllerResponse {
|
|
31
|
+
data?: CoreAiCapability[];
|
|
32
|
+
}
|
|
33
|
+
interface aiPromptTemplateControllerResponse extends controllerResponse {
|
|
34
|
+
data?: CoreAiPromptTemplate[] | CoreAiPromptTemplate;
|
|
35
|
+
}
|
|
36
|
+
interface aiAuditControllerResponse extends controllerResponse {
|
|
37
|
+
data?: CoreAiRequestAuditLog[] | CoreAiRequestAuditLog;
|
|
38
|
+
}
|
|
39
|
+
interface aiFeedbackControllerResponse extends controllerResponse {
|
|
40
|
+
data?: CoreAiFeedbackLog;
|
|
41
|
+
}
|
|
42
|
+
interface aiRoleCapabilityControllerResponse extends controllerResponse {
|
|
43
|
+
data?: CoreAiRoleCapabilityMapping[];
|
|
44
|
+
}
|
|
45
|
+
interface aiChatControllerResponse extends controllerResponse {
|
|
46
|
+
data?: {
|
|
47
|
+
request_id: string;
|
|
48
|
+
message: string;
|
|
49
|
+
citations?: Array<{
|
|
50
|
+
source_id: string;
|
|
51
|
+
source_title: string;
|
|
52
|
+
chunk_id: string;
|
|
53
|
+
}>;
|
|
54
|
+
provider: string;
|
|
55
|
+
model: string;
|
|
56
|
+
latency_ms: number;
|
|
57
|
+
policy: {
|
|
58
|
+
decision: "ALLOW" | "DENY";
|
|
59
|
+
reason: string;
|
|
60
|
+
capability_code: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export { MAiChatPayload, MAiFeedbackPayload, MAiPromptTemplatePayload, MAiKnowledgeSyncPayload, aiCapabilityControllerResponse, aiPromptTemplateControllerResponse, aiAuditControllerResponse, aiFeedbackControllerResponse, aiRoleCapabilityControllerResponse, aiChatControllerResponse };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MAiKnowledgeSyncPayload = exports.MAiPromptTemplatePayload = exports.MAiFeedbackPayload = exports.MAiChatPayload = void 0;
|
|
4
|
+
const common_1 = require("../../common-types/common");
|
|
5
|
+
class MAiChatPayload extends common_1.MTableQueries {
|
|
6
|
+
constructor(init) {
|
|
7
|
+
super(init);
|
|
8
|
+
this.query = "";
|
|
9
|
+
this.capability_code = "ai_basic_chat";
|
|
10
|
+
this.page_code = "";
|
|
11
|
+
this.module = "";
|
|
12
|
+
this.record_id = "";
|
|
13
|
+
this.context = {};
|
|
14
|
+
Object.assign(this, init);
|
|
15
|
+
}
|
|
16
|
+
Validate() {
|
|
17
|
+
const errorLogger = {};
|
|
18
|
+
if (!this.query || this.query.trim() === "") {
|
|
19
|
+
errorLogger.query = "AI query is required!";
|
|
20
|
+
}
|
|
21
|
+
if (!this.capability_code || this.capability_code.trim() === "") {
|
|
22
|
+
errorLogger.capability_code = "Capability code is required!";
|
|
23
|
+
}
|
|
24
|
+
return errorLogger;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.MAiChatPayload = MAiChatPayload;
|
|
28
|
+
class MAiFeedbackPayload {
|
|
29
|
+
constructor(init) {
|
|
30
|
+
Object.assign(this, init);
|
|
31
|
+
}
|
|
32
|
+
Validate() {
|
|
33
|
+
const errorLogger = {};
|
|
34
|
+
if (!this.request_id || this.request_id.trim() === "") {
|
|
35
|
+
errorLogger.request_id = "Request id is required!";
|
|
36
|
+
}
|
|
37
|
+
if (!this.rating) {
|
|
38
|
+
errorLogger.rating = "Feedback rating is required!";
|
|
39
|
+
}
|
|
40
|
+
return errorLogger;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.MAiFeedbackPayload = MAiFeedbackPayload;
|
|
44
|
+
class MAiPromptTemplatePayload {
|
|
45
|
+
constructor(init) {
|
|
46
|
+
Object.assign(this, init);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.MAiPromptTemplatePayload = MAiPromptTemplatePayload;
|
|
50
|
+
class MAiKnowledgeSyncPayload {
|
|
51
|
+
constructor(init) {
|
|
52
|
+
Object.assign(this, init);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.MAiKnowledgeSyncPayload = MAiKnowledgeSyncPayload;
|
package/lib/model/core/index.js
CHANGED
|
@@ -43,3 +43,4 @@ __exportStar(require("./core_workflow_registry"), exports);
|
|
|
43
43
|
__exportStar(require("./core_workflow_config"), exports);
|
|
44
44
|
__exportStar(require("./core_workflow_engine"), exports);
|
|
45
45
|
__exportStar(require("./core_workflow_transaction_history"), exports);
|
|
46
|
+
__exportStar(require("./core_ai"), exports);
|
|
@@ -58,9 +58,6 @@ class MFleetTripLogInsertUpdatePayload extends fleet_trip_log_1.FleetTripLog {
|
|
|
58
58
|
if (!this.flttl_trip_date) {
|
|
59
59
|
errorLogger.flttl_trip_date = "Trip Date is Required!";
|
|
60
60
|
}
|
|
61
|
-
if (!this.flttl_start_odometer_km) {
|
|
62
|
-
errorLogger.flttl_start_odometer_km = "Start Odometer is Required!";
|
|
63
|
-
}
|
|
64
61
|
if (!this.flttl_entity_id_syen) {
|
|
65
62
|
errorLogger.flttl_entity_id_syen = "Entity is Required!";
|
|
66
63
|
}
|
package/lib/model/index.d.ts
CHANGED
package/lib/model/index.js
CHANGED
|
@@ -28,6 +28,10 @@ declare const academicsRoutesUrl: {
|
|
|
28
28
|
* Endpoint to get class program branch (class-program-branch)
|
|
29
29
|
*/
|
|
30
30
|
classProgramBranch: string;
|
|
31
|
+
/**
|
|
32
|
+
* Endpoint to manage student enrollment backbone (student-enrollment)
|
|
33
|
+
*/
|
|
34
|
+
studentEnrollment: string;
|
|
31
35
|
/**
|
|
32
36
|
* Endpoint to manage bonafide requests (bonafide/request)
|
|
33
37
|
*/
|