cloud-ide-lms-model 1.1.76 → 1.1.78
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/auth/auth_user_mst.js +2 -2
- package/lib/model/fleet/fleet_maintenance_record.js +0 -3
- package/lib/model/fleet/fleet_student_transport.d.ts +5 -0
- package/lib/model/fleet/fleet_student_transport.js +4 -6
- package/lib/routes/fleetRoutes.d.ts +1 -1
- package/lib/routes/fleetRoutes.js +1 -1
- package/lib/schema/fleet/fleet_student_transport.d.ts +3 -2
- package/lib/schema/fleet/fleet_student_transport.js +3 -2
- package/package.json +4 -4
- package/lib/schema/core/core_education_board.d.ts +0 -26
- package/lib/schema/core/core_education_board.js +0 -7
|
@@ -17,8 +17,8 @@ class AuthUserMstListPayload extends common_types_1.MTableQueries {
|
|
|
17
17
|
Validate() {
|
|
18
18
|
let errorLogger = {};
|
|
19
19
|
// Validate user type if provided
|
|
20
|
-
if (this.syutm_user_type && !['STUDENT', 'EMPLOYEE', 'TEACHER', 'PARENT', 'GUARDIAN', 'ADMIN', 'STAFF', 'OTHER'].includes(this.syutm_user_type.toUpperCase())) {
|
|
21
|
-
errorLogger.syutm_user_type = 'Invalid user type. Must be one of: STUDENT, EMPLOYEE, TEACHER, PARENT, GUARDIAN, ADMIN, STAFF, OTHER';
|
|
20
|
+
if (this.syutm_user_type && !['STUDENT', 'EMPLOYEE', 'TEACHER', 'PARENT', 'GUARDIAN', 'ADMIN', 'STAFF', 'OTHER', 'DRIVER'].includes(this.syutm_user_type.toUpperCase())) {
|
|
21
|
+
errorLogger.syutm_user_type = 'Invalid user type. Must be one of: STUDENT, EMPLOYEE, TEACHER, PARENT, GUARDIAN, ADMIN, STAFF, OTHER, DRIVER';
|
|
22
22
|
}
|
|
23
23
|
return errorLogger;
|
|
24
24
|
}
|
|
@@ -55,9 +55,6 @@ class MFleetMaintenanceRecordInsertUpdatePayload extends fleet_maintenance_recor
|
|
|
55
55
|
if (!this.fltmr_maintenance_type_sygms) {
|
|
56
56
|
errorLogger.fltmr_maintenance_type_sygms = "Maintenance Type is Required!";
|
|
57
57
|
}
|
|
58
|
-
if (!this.fltmr_scheduled_date) {
|
|
59
|
-
errorLogger.fltmr_scheduled_date = "Scheduled Date is Required!";
|
|
60
|
-
}
|
|
61
58
|
if (!this.fltmr_entity_id_syen) {
|
|
62
59
|
errorLogger.fltmr_entity_id_syen = "Entity is Required!";
|
|
63
60
|
}
|
|
@@ -36,6 +36,11 @@ declare class MFleetStudentTransportInsertUpdatePayload extends FleetStudentTran
|
|
|
36
36
|
Validate?(): Partial<IFleetStudentTransportInsertUpdateErrorLogger>;
|
|
37
37
|
}
|
|
38
38
|
interface FleetStudentTransportResponse extends Omit<FleetStudentTransportBase, 'fltst_student_id_auth' | 'fltst_route_id_fltrm' | 'fltst_pickup_stop_id_fltrs' | 'fltst_drop_stop_id_fltrs' | 'fltst_transport_type_sygms' | 'fltst_shift_sygms' | 'fltst_entity_id_syen' | 'fltst_academic_year_id_acayr'> {
|
|
39
|
+
/** Present when list is built from aggregation (neutral label) */
|
|
40
|
+
passenger_name?: string;
|
|
41
|
+
route_name?: string;
|
|
42
|
+
pickup_stop?: string;
|
|
43
|
+
drop_stop?: string;
|
|
39
44
|
fltst_student_id_auth?: {
|
|
40
45
|
_id: string;
|
|
41
46
|
syus_name: string;
|
|
@@ -23,7 +23,7 @@ class MFleetStudentTransportGetByIdPayload {
|
|
|
23
23
|
Validate() {
|
|
24
24
|
let errorLogger = {};
|
|
25
25
|
if (!this.fltst_id) {
|
|
26
|
-
errorLogger.fltst_id = "
|
|
26
|
+
errorLogger.fltst_id = "Allocation ID is required.";
|
|
27
27
|
}
|
|
28
28
|
return errorLogger;
|
|
29
29
|
}
|
|
@@ -36,7 +36,7 @@ class MFleetStudentTransportDeletePayload {
|
|
|
36
36
|
Validate() {
|
|
37
37
|
let errorLogger = {};
|
|
38
38
|
if (!this.fltst_id) {
|
|
39
|
-
errorLogger.fltst_id = "
|
|
39
|
+
errorLogger.fltst_id = "Allocation ID is required.";
|
|
40
40
|
}
|
|
41
41
|
return errorLogger;
|
|
42
42
|
}
|
|
@@ -50,14 +50,12 @@ class MFleetStudentTransportInsertUpdatePayload extends fleet_student_transport_
|
|
|
50
50
|
Validate() {
|
|
51
51
|
let errorLogger = {};
|
|
52
52
|
if (!this.fltst_student_id_auth) {
|
|
53
|
-
errorLogger.fltst_student_id_auth = "
|
|
53
|
+
errorLogger.fltst_student_id_auth = "Passenger is required.";
|
|
54
54
|
}
|
|
55
55
|
if (!this.fltst_route_id_fltrm) {
|
|
56
56
|
errorLogger.fltst_route_id_fltrm = "Route is Required!";
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
errorLogger.fltst_transport_type_sygms = "Transport Type is Required!";
|
|
60
|
-
}
|
|
58
|
+
// fltst_transport_type_sygms is optional (industry/config-dependent)
|
|
61
59
|
if (!this.fltst_entity_id_syen) {
|
|
62
60
|
errorLogger.fltst_entity_id_syen = "Entity is Required!";
|
|
63
61
|
}
|
|
@@ -41,7 +41,7 @@ declare const fleetRoutesUrl: {
|
|
|
41
41
|
*/
|
|
42
42
|
routeStop: string;
|
|
43
43
|
/**
|
|
44
|
-
* Endpoint
|
|
44
|
+
* Endpoint for route allocation (passenger ↔ route + pickup/drop). API path remains 'student-transport' for backward compatibility.
|
|
45
45
|
*/
|
|
46
46
|
studentTransport: string;
|
|
47
47
|
/**
|
|
@@ -44,7 +44,7 @@ const fleetRoutesUrl = {
|
|
|
44
44
|
*/
|
|
45
45
|
routeStop: 'route-stops',
|
|
46
46
|
/**
|
|
47
|
-
* Endpoint
|
|
47
|
+
* Endpoint for route allocation (passenger ↔ route + pickup/drop). API path remains 'student-transport' for backward compatibility.
|
|
48
48
|
*/
|
|
49
49
|
studentTransport: 'student-transport',
|
|
50
50
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Route allocation schema (passenger ↔ route + pickup/drop stops).
|
|
3
|
+
* Industry-agnostic: use for any transport allocation (corporate shuttle, school bus, patient transport, etc.).
|
|
4
|
+
* Field names (fltst_*) kept for backward compatibility.
|
|
4
5
|
*/
|
|
5
6
|
declare class FleetStudentTransportBase {
|
|
6
7
|
_id?: string;
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FleetStudentTransport = exports.FleetStudentTransportBase = void 0;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Route allocation schema (passenger ↔ route + pickup/drop stops).
|
|
6
|
+
* Industry-agnostic: use for any transport allocation (corporate shuttle, school bus, patient transport, etc.).
|
|
7
|
+
* Field names (fltst_*) kept for backward compatibility.
|
|
7
8
|
*/
|
|
8
9
|
class FleetStudentTransportBase {
|
|
9
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloud-ide-lms-model",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.78",
|
|
4
4
|
"description": "Package for Model management of Cloud IDEsys LMS",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"files": [
|
|
24
24
|
"lib/**/*"
|
|
25
25
|
],
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"devDependencies": {
|
|
26
|
+
"dependencies": {
|
|
28
27
|
"typescript": "^5.4.2"
|
|
29
|
-
}
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {}
|
|
30
30
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare class CoreEducationBoard {
|
|
2
|
-
_id?: string;
|
|
3
|
-
edbrd_code?: string;
|
|
4
|
-
edbrd_name?: string;
|
|
5
|
-
edbrd_short_name?: string;
|
|
6
|
-
edbrd_type_sygms?: string;
|
|
7
|
-
edbrd_category_sygms?: string;
|
|
8
|
-
edbrd_state?: string;
|
|
9
|
-
edbrd_country_id_syctr?: string;
|
|
10
|
-
edbrd_website?: string;
|
|
11
|
-
edbrd_contact_email?: string;
|
|
12
|
-
edbrd_contact_phone?: string;
|
|
13
|
-
edbrd_address?: string;
|
|
14
|
-
edbrd_pin_sypin?: string;
|
|
15
|
-
edbrd_city_sypin?: string;
|
|
16
|
-
edbrd_state_sypin?: string;
|
|
17
|
-
edbrd_udise_format?: string;
|
|
18
|
-
edbrd_affiliation_format?: string;
|
|
19
|
-
edbrd_roll_number_format?: string;
|
|
20
|
-
edbrd_registration_number_format?: string;
|
|
21
|
-
edbrd_grading_system_sygms?: string;
|
|
22
|
-
edbrd_grade_scale?: string;
|
|
23
|
-
edbrd_configuration?: any;
|
|
24
|
-
edbrd_isactive?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export { CoreEducationBoard };
|