cloud-ide-lms-model 1.1.35 → 1.1.37

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.
@@ -72,7 +72,7 @@ type AdmissionApplicationListResponse = Omit<AdmissionApplicationMain, 'admap_en
72
72
  synat_nationality_name?: string;
73
73
  } | string;
74
74
  };
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'> & {
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' | 'admap_transportation_method_id_sygms'> & {
76
76
  admap_entity_id_syen?: {
77
77
  _id: string;
78
78
  syen_name?: string;
@@ -128,6 +128,13 @@ type AdmissionApplicationResponse = Omit<AdmissionApplicationMain, 'admap_entity
128
128
  acabrn_name?: string;
129
129
  acabrn_code?: string;
130
130
  } | string | null;
131
+ admap_transportation_method_id_sygms?: {
132
+ _id: string;
133
+ sygms_title?: string;
134
+ sygms_code?: string;
135
+ } | string | null;
136
+ admap_sibling_information?: string | null;
137
+ admap_authorized_pick_up_list?: string | null;
131
138
  };
132
139
  /**
133
140
  * 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 < 8) {
85
+ if (fullname.length < 3) {
86
86
  if (!errorLogger.auth_user_mst) {
87
- errorLogger.auth_user_mst = 'Full name must be at least 8 characters long';
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 8 characters long';
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 is required and valid format (min 8, max 50 characters)
103
- if (!this.auth_user_mst.user_emailid || !this.auth_user_mst.user_emailid.trim()) {
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
- feeas_student_id?: string;
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.feeas_student_id) {
53
- errorLogger.feeas_student_id = "Student ID is Required!";
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.feepay_student_id) {
53
- errorLogger.feepay_student_id = "Student ID is required!";
52
+ if (!this.feepay_student_id_auth) {
53
+ errorLogger.feepay_student_id_auth = "Student ID is required!";
54
54
  }
55
- if (!this.feepay_payment_mode) {
56
- errorLogger.feepay_payment_mode = "Payment mode is required!";
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;
@@ -129,6 +130,12 @@ declare class AdmissionApplicationMain {
129
130
  admap_iep_status?: boolean;
130
131
  admap_plan_504_status?: boolean;
131
132
  admap_special_education_services?: string;
133
+ admap_transportation_method_id_sygms?: string;
134
+ admap_bus_route_number?: string;
135
+ admap_after_school_care_required?: boolean;
136
+ admap_after_school_care_provider?: string;
137
+ admap_language_spoken_at_home?: string;
138
+ admap_sibling_information?: string;
132
139
  admap_elective_selection_status_id_sygms?: string;
133
140
  admap_counseling_notes?: string;
134
141
  admap_prerequisite_acknowledgment?: boolean;
@@ -5,7 +5,7 @@
5
5
  declare class FeeAssignmentBase {
6
6
  _id?: string;
7
7
  feeas_assignment_number?: string;
8
- feeas_student_id?: string;
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
- feepay_student_id?: string;
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
- feepay_payment_mode?: 'CASH' | 'CHEQUE' | 'DD' | 'ONLINE' | 'CARD' | 'UPI' | 'NET_BANKING';
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
- feepay_status?: 'SUCCESS' | 'PENDING' | 'FAILED' | 'CANCELLED' | 'REFUNDED';
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-ide-lms-model",
3
- "version": "1.1.35",
3
+ "version": "1.1.37",
4
4
  "description": "Package for Model management of Cloud IDEsys LMS",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",