cloud-ide-lms-model 1.1.35 → 1.1.38
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/admission/admission_application_main.d.ts +13 -1
- package/lib/model/auth/auth_user_mst.js +5 -13
- package/lib/model/fees/fee_assignment.d.ts +1 -1
- package/lib/model/fees/fee_assignment.js +2 -2
- package/lib/model/fees/fee_payment.js +4 -4
- package/lib/schema/admission/admission_application_main.d.ts +12 -0
- package/lib/schema/fees/fee_assignment.d.ts +3 -1
- package/lib/schema/fees/fee_payment.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MTableQueries } from "../../common-types/common";
|
|
2
2
|
import { AdmissionApplicationMain } from "../../schema";
|
|
3
3
|
import { controllerResponse } from "../../utilities";
|
|
4
|
+
declare type PopulatedGeneralMaster = any;
|
|
4
5
|
type IAdmissionApplicationMainErrorLogger = {
|
|
5
6
|
[key in keyof MAdmissionApplicationMain]: string;
|
|
6
7
|
};
|
|
@@ -72,7 +73,7 @@ type AdmissionApplicationListResponse = Omit<AdmissionApplicationMain, 'admap_en
|
|
|
72
73
|
synat_nationality_name?: string;
|
|
73
74
|
} | string;
|
|
74
75
|
};
|
|
75
|
-
type AdmissionApplicationResponse = Omit<AdmissionApplicationMain, 'admap_entity_id_syen' | 'admap_academic_year_id_acayr' | 'admap_gender_id_sygms' | 'admap_citizenship_status_id_sygms' | 'admap_program_category_id_sygms' | 'admap_application_status_id_sygms' | 'admap_nationality_id_synat' | 'admap_blood_group_id_sygms' | 'admap_class_program_id_acacpm' | 'admap_class_program_term_id_acapt' | 'admap_class_program_branch_id_acabrn'> & {
|
|
76
|
+
type AdmissionApplicationResponse = Omit<AdmissionApplicationMain, 'admap_entity_id_syen' | 'admap_academic_year_id_acayr' | 'admap_gender_id_sygms' | 'admap_citizenship_status_id_sygms' | 'admap_program_category_id_sygms' | 'admap_application_status_id_sygms' | 'admap_nationality_id_synat' | 'admap_blood_group_id_sygms' | 'admap_class_program_id_acacpm' | 'admap_class_program_term_id_acapt' | 'admap_class_program_branch_id_acabrn' | 'admap_transportation_method_id_sygms'> & {
|
|
76
77
|
admap_entity_id_syen?: {
|
|
77
78
|
_id: string;
|
|
78
79
|
syen_name?: string;
|
|
@@ -128,6 +129,17 @@ type AdmissionApplicationResponse = Omit<AdmissionApplicationMain, 'admap_entity
|
|
|
128
129
|
acabrn_name?: string;
|
|
129
130
|
acabrn_code?: string;
|
|
130
131
|
} | string | null;
|
|
132
|
+
admap_transportation_method_id_sygms?: {
|
|
133
|
+
_id: string;
|
|
134
|
+
sygms_title?: string;
|
|
135
|
+
sygms_code?: string;
|
|
136
|
+
} | string | null;
|
|
137
|
+
admap_sibling_information?: string | null;
|
|
138
|
+
admap_authorized_pick_up_list?: string | null;
|
|
139
|
+
admap_emergency_contact_name?: string | null;
|
|
140
|
+
admap_emergency_contact_relationship_id_sygms?: string | PopulatedGeneralMaster | null;
|
|
141
|
+
admap_emergency_contact_phone?: string | null;
|
|
142
|
+
admap_converted_to_student_at?: Date | string | null;
|
|
131
143
|
};
|
|
132
144
|
/**
|
|
133
145
|
* Convert admission application to student payload
|
|
@@ -82,12 +82,12 @@ class AuthUserMstCreatePayload {
|
|
|
82
82
|
}
|
|
83
83
|
else {
|
|
84
84
|
const fullname = this.auth_user_mst.user_fullname.trim();
|
|
85
|
-
if (fullname.length <
|
|
85
|
+
if (fullname.length < 3) {
|
|
86
86
|
if (!errorLogger.auth_user_mst) {
|
|
87
|
-
errorLogger.auth_user_mst = 'Full name must be at least
|
|
87
|
+
errorLogger.auth_user_mst = 'Full name must be at least 3 characters long';
|
|
88
88
|
}
|
|
89
89
|
else {
|
|
90
|
-
errorLogger.auth_user_mst += '; Full name must be at least
|
|
90
|
+
errorLogger.auth_user_mst += '; Full name must be at least 3 characters long';
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
else if (fullname.length > 80) {
|
|
@@ -99,16 +99,8 @@ class AuthUserMstCreatePayload {
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
// Validate user_emailid
|
|
103
|
-
if (
|
|
104
|
-
if (!errorLogger.auth_user_mst) {
|
|
105
|
-
errorLogger.auth_user_mst = 'Email (user_emailid) is required';
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
errorLogger.auth_user_mst += '; Email (user_emailid) is required';
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
102
|
+
// Validate user_emailid format if provided (min 8, max 50 characters)
|
|
103
|
+
if (this.auth_user_mst.user_emailid && this.auth_user_mst.user_emailid.trim()) {
|
|
112
104
|
const email = this.auth_user_mst.user_emailid.trim();
|
|
113
105
|
if (email.length < 8) {
|
|
114
106
|
if (!errorLogger.auth_user_mst) {
|
|
@@ -14,7 +14,7 @@ type IFeeAssignmentInsertUpdateErrorLogger = {
|
|
|
14
14
|
[key in keyof MFeeAssignmentInsertUpdatePayload]: string;
|
|
15
15
|
};
|
|
16
16
|
declare class MFeeAssignment extends MTableQueries {
|
|
17
|
-
|
|
17
|
+
feeas_student_id_auth?: string;
|
|
18
18
|
feeas_fee_structure_id_feest?: string;
|
|
19
19
|
feeas_fee_structure_item_id_feesi?: string;
|
|
20
20
|
feeas_fee_category_sygms?: string;
|
|
@@ -49,8 +49,8 @@ class MFeeAssignmentInsertUpdatePayload extends fee_assignment_1.FeeAssignment {
|
|
|
49
49
|
}
|
|
50
50
|
Validate() {
|
|
51
51
|
let errorLogger = {};
|
|
52
|
-
if (!this.
|
|
53
|
-
errorLogger.
|
|
52
|
+
if (!this.feeas_student_id_auth) {
|
|
53
|
+
errorLogger.feeas_student_id_auth = "Student ID is Required!";
|
|
54
54
|
}
|
|
55
55
|
if (!this.feeas_fee_category_sygms) {
|
|
56
56
|
errorLogger.feeas_fee_category_sygms = "Fee Category is Required!";
|
|
@@ -49,11 +49,11 @@ class MFeePaymentInsertUpdatePayload extends schema_1.FeePayment {
|
|
|
49
49
|
}
|
|
50
50
|
Validate() {
|
|
51
51
|
let errorLogger = {};
|
|
52
|
-
if (!this.
|
|
53
|
-
errorLogger.
|
|
52
|
+
if (!this.feepay_student_id_auth) {
|
|
53
|
+
errorLogger.feepay_student_id_auth = "Student ID is required!";
|
|
54
54
|
}
|
|
55
|
-
if (!this.
|
|
56
|
-
errorLogger.
|
|
55
|
+
if (!this.feepay_payment_mode_id_sygms) {
|
|
56
|
+
errorLogger.feepay_payment_mode_id_sygms = "Payment mode is required!";
|
|
57
57
|
}
|
|
58
58
|
if (!this.feepay_total_amount || this.feepay_total_amount <= 0) {
|
|
59
59
|
errorLogger.feepay_total_amount = "Valid payment amount is required!";
|
|
@@ -5,6 +5,7 @@ declare class AdmissionApplicationMain {
|
|
|
5
5
|
admap_first_name?: string;
|
|
6
6
|
admap_middle_name?: string;
|
|
7
7
|
admap_last_name?: string;
|
|
8
|
+
admap_mother_name?: string;
|
|
8
9
|
admap_preferred_name?: string;
|
|
9
10
|
admap_date_of_birth?: Date;
|
|
10
11
|
admap_place_of_birth?: string;
|
|
@@ -90,6 +91,10 @@ declare class AdmissionApplicationMain {
|
|
|
90
91
|
admap_applying_for_board_id_edbrd?: string;
|
|
91
92
|
admap_parent_volunteer_interest?: boolean;
|
|
92
93
|
admap_custody_documentation_status?: boolean;
|
|
94
|
+
admap_emergency_contact_name?: string;
|
|
95
|
+
admap_emergency_contact_relationship_id_sygms?: string;
|
|
96
|
+
admap_emergency_contact_phone?: string;
|
|
97
|
+
admap_authorized_pick_up_list?: string;
|
|
93
98
|
admap_tuition_payer_name?: string;
|
|
94
99
|
admap_tuition_payer_relationship?: string;
|
|
95
100
|
admap_billing_email_address?: string;
|
|
@@ -129,6 +134,12 @@ declare class AdmissionApplicationMain {
|
|
|
129
134
|
admap_iep_status?: boolean;
|
|
130
135
|
admap_plan_504_status?: boolean;
|
|
131
136
|
admap_special_education_services?: string;
|
|
137
|
+
admap_transportation_method_id_sygms?: string;
|
|
138
|
+
admap_bus_route_number?: string;
|
|
139
|
+
admap_after_school_care_required?: boolean;
|
|
140
|
+
admap_after_school_care_provider?: string;
|
|
141
|
+
admap_language_spoken_at_home?: string;
|
|
142
|
+
admap_sibling_information?: string;
|
|
132
143
|
admap_elective_selection_status_id_sygms?: string;
|
|
133
144
|
admap_counseling_notes?: string;
|
|
134
145
|
admap_prerequisite_acknowledgment?: boolean;
|
|
@@ -186,6 +197,7 @@ declare class AdmissionApplicationMain {
|
|
|
186
197
|
admap_confirmed_at?: Date;
|
|
187
198
|
admap_confirmed_by_user?: string;
|
|
188
199
|
admap_confirmation_remarks?: string;
|
|
200
|
+
admap_converted_to_student_at?: Date;
|
|
189
201
|
admap_islocked?: boolean;
|
|
190
202
|
admap_entity_id_syen?: string;
|
|
191
203
|
admap_program_id_sygms?: string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
declare class FeeAssignmentBase {
|
|
6
6
|
_id?: string;
|
|
7
7
|
feeas_assignment_number?: string;
|
|
8
|
-
|
|
8
|
+
feeas_student_id_auth?: string;
|
|
9
9
|
feeas_fee_structure_item_id_feesi?: string;
|
|
10
10
|
feeas_fee_name?: string;
|
|
11
11
|
feeas_fee_description?: string;
|
|
@@ -31,6 +31,7 @@ declare class FeeAssignmentBase {
|
|
|
31
31
|
feeas_late_fee_applied?: boolean;
|
|
32
32
|
feeas_late_fee_amount?: number;
|
|
33
33
|
feeas_class_program_id_acacpm?: string;
|
|
34
|
+
feeas_section_id_acapts?: string;
|
|
34
35
|
feeas_admission_id_admap?: string;
|
|
35
36
|
feeas_notes?: string;
|
|
36
37
|
feeas_created_by_user?: string;
|
|
@@ -40,6 +41,7 @@ declare class FeeAssignment extends FeeAssignmentBase {
|
|
|
40
41
|
feeas_fee_category_sygms?: string;
|
|
41
42
|
feeas_fee_structure_id_feest?: string;
|
|
42
43
|
feeas_academic_year_id_acayr?: string;
|
|
44
|
+
feeas_section_id_acapts?: string;
|
|
43
45
|
feeas_entity_id_syen?: string;
|
|
44
46
|
}
|
|
45
47
|
export { FeeAssignmentBase, FeeAssignment };
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
declare class FeePayment {
|
|
6
6
|
_id?: string;
|
|
7
7
|
feepay_receipt_number?: string;
|
|
8
|
-
|
|
8
|
+
feepay_student_id_auth?: string;
|
|
9
9
|
feepay_academic_year_id_acayr?: string;
|
|
10
10
|
feepay_entity_id_syen?: string;
|
|
11
11
|
feepay_payment_date?: Date;
|
|
12
|
-
|
|
12
|
+
feepay_payment_mode_id_sygms?: string;
|
|
13
13
|
feepay_payment_reference?: string;
|
|
14
14
|
feepay_bank_name?: string;
|
|
15
15
|
feepay_bank_branch_name?: string;
|
|
@@ -26,7 +26,7 @@ declare class FeePayment {
|
|
|
26
26
|
feepay_late_fee_amount?: number;
|
|
27
27
|
feepay_discount_amount?: number;
|
|
28
28
|
feepay_remarks?: string;
|
|
29
|
-
|
|
29
|
+
feepay_status_id_sygms?: string;
|
|
30
30
|
feepay_receipt_template_id_feert?: string;
|
|
31
31
|
feepay_created_by_user?: string;
|
|
32
32
|
feepay_created_at?: Date;
|