cloud-ide-model-schema 1.1.161 → 1.1.162

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.
@@ -1,6 +1,6 @@
1
- import { AdmissionAdmissionFamilyMembers, AdmissionEntityAccessPassManagement } from "cloud-ide-lms-model";
1
+ import { AdmissionAdmissionFamilyMembers, AdmissionEntityAccessPassManagementAdmfm } from "cloud-ide-lms-model";
2
2
  import mongoose from "mongoose";
3
- declare const CAdmissionFamilyMembers: mongoose.Model<AdmissionAdmissionFamilyMembers, {}, {}, {}, mongoose.Document<unknown, {}, AdmissionAdmissionFamilyMembers, {}> & Omit<import("cloud-ide-lms-model").AdmissionFamilyMembersBase, "admfm_admission_id_admap" | "admfm_relationship_id_sygms" | "admfm_gender_id_sygms" | "admfm_blood_group_sygms" | "admfm_nationality_id_synty" | "admfm_occupation_type_id_sygms" | "admfm_annual_income_currency_id_syic" | "admfm_education_level_id_sygms" | "admfm_identification_type_id_sygms" | "admfm_country_syctr" | "admfm_pin_code_sypin" | "admfm_family_member_id_user"> & {
3
+ declare const CAdmissionFamilyMembers: mongoose.Model<AdmissionAdmissionFamilyMembers, {}, {}, {}, mongoose.Document<unknown, {}, AdmissionAdmissionFamilyMembers, {}> & Omit<import("cloud-ide-lms-model").AdmissionFamilyMembersBase, "admfm_admission_id_admap" | "admfm_relationship_id_sygms" | "admfm_gender_id_sygms" | "admfm_blood_group_sygms" | "admfm_nationality_id_synty" | "admfm_annual_income_currency_id_syic" | "admfm_identification_type_id_sygms" | "admfm_country_syctr" | "admfm_pin_code_sypin"> & {
4
4
  admfm_admission_id_admap?: {
5
5
  _id: string;
6
6
  admap_application_number?: string;
@@ -24,25 +24,14 @@ declare const CAdmissionFamilyMembers: mongoose.Model<AdmissionAdmissionFamilyMe
24
24
  } | string;
25
25
  admfm_nationality_id_synty?: {
26
26
  _id: string;
27
- synty_nationality_name: string;
28
- synty_nationality_code: string;
29
- } | string;
30
- admfm_occupation_type_id_sygms?: {
31
- _id: string;
32
- sygms_code: string;
33
- sygms_title: string;
27
+ synty_country_iso_name: string;
28
+ synty_country_iso_code: string;
34
29
  } | string;
35
30
  admfm_annual_income_currency_id_syic?: {
36
31
  _id: string;
37
32
  syic_currency_code: string;
38
- syic_currency_name: string;
39
33
  syic_currency_symbol: string;
40
34
  } | string;
41
- admfm_education_level_id_sygms?: {
42
- _id: string;
43
- sygms_code: string;
44
- sygms_title: string;
45
- } | string;
46
35
  admfm_identification_type_id_sygms?: {
47
36
  _id: string;
48
37
  sygms_code: string;
@@ -60,20 +49,13 @@ declare const CAdmissionFamilyMembers: mongoose.Model<AdmissionAdmissionFamilyMe
60
49
  sypin_city: string;
61
50
  sypin_state: string;
62
51
  } | string;
63
- admfm_family_member_id_user?: {
64
- _id: string;
65
- user_first_name: string;
66
- user_last_name: string;
67
- user_fullname: string;
68
- user_email: string;
69
- } | string;
70
- admission_entity_access_pass_management?: import("cloud-ide-lms-model").AdmissionEntityAccessPassManagementBase;
52
+ admission_entity_access_pass_management?: import("cloud-ide-lms-model").AdmissionEntityAccessPassManagementAdmfmBase;
71
53
  } & Required<{
72
54
  _id: string;
73
55
  }> & {
74
56
  __v: number;
75
57
  }, any>;
76
- declare const CAdmissionEntityAccessPassManagementAdmfm: mongoose.Model<AdmissionEntityAccessPassManagement, {}, {}, {}, mongoose.Document<unknown, {}, AdmissionEntityAccessPassManagement, {}> & AdmissionEntityAccessPassManagement & Required<{
58
+ declare const CAdmissionEntityAccessPassManagementAdmfm: mongoose.Model<AdmissionEntityAccessPassManagementAdmfm, {}, {}, {}, mongoose.Document<unknown, {}, AdmissionEntityAccessPassManagementAdmfm, {}> & AdmissionEntityAccessPassManagementAdmfm & Required<{
77
59
  _id: string;
78
60
  }> & {
79
61
  __v: number;
@@ -5,47 +5,38 @@ var mongoose_1 = require("mongoose");
5
5
  /**
6
6
  * Admission Family Members / Guardians Schema
7
7
  *
8
- * Purpose: Store family members and guardian details for admission applications
8
+ * Purpose: Store multiple family members and guardians for admission applications
9
9
  * Cloned from: core_user_family_details
10
10
  * Prefix: admfm_ (admission family member)
11
- *
12
- * BUSINESS LOGIC:
13
- * 1. Multiple family members per admission application
14
- * 2. Mark family member as guardian (admfm_is_guardian)
15
- * 3. Different relationships (Father, Mother, Sibling, Guardian, etc.)
16
- * 4. Contact details for each family member
17
- * 5. Occupation and income details for financial assessment
18
- * 6. Entity-based access control
19
11
  */
20
12
  /* SCHEMA START */
21
13
  var admission_family_members = new mongoose_1.Schema({
22
14
  admfm_admission_id_admap: {
23
15
  type: mongoose_1.default.Schema.Types.ObjectId,
24
16
  ref: 'admission_application_main',
25
- required: true,
26
17
  comment: "Reference to admission application"
27
18
  },
28
19
  admfm_is_guardian: {
29
20
  type: Boolean,
30
21
  default: true,
31
- comment: "Is this person a guardian of the student"
22
+ comment: "Is this person a guardian (Default: true as requested)"
32
23
  },
33
24
  admfm_is_primary_guardian: {
34
25
  type: Boolean,
35
26
  default: false,
36
- comment: "Is this the primary guardian"
27
+ comment: "Is primary guardian"
37
28
  },
38
29
  admfm_relationship_id_sygms: {
39
30
  type: mongoose_1.default.Schema.Types.ObjectId,
40
31
  ref: 'core_general_master',
41
- comment: "Relationship type (Father, Mother, Guardian, Sibling, etc.)"
32
+ comment: "Relationship (Father, Mother, etc.)"
42
33
  },
43
34
  admfm_family_member_name: {
44
35
  type: String,
45
36
  default: "",
46
37
  maxlength: 200,
47
38
  trim: true,
48
- comment: "Full name of family member"
39
+ comment: "Full name"
49
40
  },
50
41
  admfm_first_name: {
51
42
  type: String,
@@ -76,18 +67,19 @@ var admission_family_members = new mongoose_1.Schema({
76
67
  admfm_gender_id_sygms: {
77
68
  type: mongoose_1.default.Schema.Types.ObjectId,
78
69
  ref: 'core_general_master',
79
- comment: "Gender"
70
+ comment: "Gender reference"
80
71
  },
81
72
  admfm_blood_group_sygms: {
82
73
  type: mongoose_1.default.Schema.Types.ObjectId,
83
74
  ref: 'core_general_master',
84
- comment: "Blood group"
75
+ comment: "Blood group reference"
85
76
  },
86
77
  admfm_nationality_id_synty: {
87
78
  type: mongoose_1.default.Schema.Types.ObjectId,
88
- ref: 'core_system_nationality',
89
- comment: "Nationality"
79
+ ref: 'core_system_country',
80
+ comment: "Nationality reference"
90
81
  },
82
+ // Contact Information
91
83
  admfm_contact_number: {
92
84
  type: Number,
93
85
  default: null,
@@ -98,7 +90,7 @@ var admission_family_members = new mongoose_1.Schema({
98
90
  default: "",
99
91
  maxlength: 10,
100
92
  trim: true,
101
- comment: "Country code for phone"
93
+ comment: "Phone country code"
102
94
  },
103
95
  admfm_contact_number_alt: {
104
96
  type: Number,
@@ -110,7 +102,7 @@ var admission_family_members = new mongoose_1.Schema({
110
102
  default: "",
111
103
  maxlength: 10,
112
104
  trim: true,
113
- comment: "Country code for alternative phone"
105
+ comment: "Alt phone country code"
114
106
  },
115
107
  admfm_contact_email_id: {
116
108
  type: String,
@@ -118,7 +110,7 @@ var admission_family_members = new mongoose_1.Schema({
118
110
  maxlength: 255,
119
111
  trim: true,
120
112
  lowercase: true,
121
- comment: "Primary email address"
113
+ comment: "Primary email"
122
114
  },
123
115
  admfm_contact_email_alt: {
124
116
  type: String,
@@ -126,8 +118,9 @@ var admission_family_members = new mongoose_1.Schema({
126
118
  maxlength: 255,
127
119
  trim: true,
128
120
  lowercase: true,
129
- comment: "Alternative email address"
121
+ comment: "Alternative email"
130
122
  },
123
+ // Occupation & Financial Information
131
124
  admfm_occupation: {
132
125
  type: String,
133
126
  default: "",
@@ -138,7 +131,7 @@ var admission_family_members = new mongoose_1.Schema({
138
131
  admfm_occupation_type_id_sygms: {
139
132
  type: mongoose_1.default.Schema.Types.ObjectId,
140
133
  ref: 'core_general_master',
141
- comment: "Occupation type reference"
134
+ comment: "Occupation type ref"
142
135
  },
143
136
  admfm_employer_name: {
144
137
  type: String,
@@ -161,31 +154,33 @@ var admission_family_members = new mongoose_1.Schema({
161
154
  },
162
155
  admfm_annual_income_currency_id_syic: {
163
156
  type: mongoose_1.default.Schema.Types.ObjectId,
164
- ref: 'core_iso_currency',
165
- comment: "Currency for income"
157
+ ref: 'core_system_currency',
158
+ comment: "Currency reference"
166
159
  },
167
160
  admfm_education_level_id_sygms: {
168
161
  type: mongoose_1.default.Schema.Types.ObjectId,
169
162
  ref: 'core_general_master',
170
- comment: "Highest education level"
163
+ comment: "Education level"
171
164
  },
165
+ // Identification Information
172
166
  admfm_identification_type_id_sygms: {
173
167
  type: mongoose_1.default.Schema.Types.ObjectId,
174
168
  ref: 'core_general_master',
175
- comment: "ID type (Passport, National ID, etc.)"
169
+ comment: "ID type (Passport, etc.)"
176
170
  },
177
171
  admfm_identification_number: {
178
172
  type: String,
179
173
  default: "",
180
174
  maxlength: 100,
181
175
  trim: true,
182
- comment: "Identification number"
176
+ comment: "ID number"
183
177
  },
184
178
  admfm_identification_expiry_date: {
185
179
  type: Date,
186
180
  default: null,
187
181
  comment: "ID expiry date"
188
182
  },
183
+ // Address Information
189
184
  admfm_address: {
190
185
  type: String,
191
186
  default: "",
@@ -210,13 +205,14 @@ var admission_family_members = new mongoose_1.Schema({
210
205
  admfm_country_syctr: {
211
206
  type: mongoose_1.default.Schema.Types.ObjectId,
212
207
  ref: 'core_system_country',
213
- comment: "Country"
208
+ comment: "Country reference"
214
209
  },
215
210
  admfm_pin_code_sypin: {
216
211
  type: mongoose_1.default.Schema.Types.ObjectId,
217
212
  ref: 'core_pin_code',
218
- comment: "Pin/Zip code"
213
+ comment: "Pin/Zip code reference"
219
214
  },
215
+ // Permissions & Responsibilities
220
216
  admfm_lives_with_student: {
221
217
  type: Boolean,
222
218
  default: true,
@@ -230,29 +226,25 @@ var admission_family_members = new mongoose_1.Schema({
230
226
  admfm_can_pickup_student: {
231
227
  type: Boolean,
232
228
  default: false,
233
- comment: "Authorized to pick up student"
229
+ comment: "Authorized to pick up"
234
230
  },
235
231
  admfm_financial_responsibility: {
236
232
  type: Boolean,
237
233
  default: false,
238
- comment: "Financially responsible for student"
234
+ comment: "Financially responsible"
239
235
  },
236
+ // System Fields
240
237
  admfm_family_member_id_user: {
241
238
  type: mongoose_1.default.Schema.Types.ObjectId,
242
239
  ref: 'auth_user_mst',
243
- comment: "If family member is also a system user"
240
+ comment: "If member is system user"
244
241
  },
245
242
  admfm_remarks: {
246
243
  type: String,
247
244
  default: "",
248
245
  maxlength: 1000,
249
246
  trim: true,
250
- comment: "Additional remarks/notes"
251
- },
252
- admfm_identification_status_id_sygms: {
253
- type: mongoose_1.default.Schema.Types.ObjectId,
254
- ref: 'core_general_master',
255
- comment: "Identification status for father/guardian (Alive, Passed Away, etc.) - Reference to core_general_master with type 'IDENTIFICATION_STATUS'"
247
+ comment: "Additional notes"
256
248
  },
257
249
  admfm_isactive: {
258
250
  type: Boolean,
@@ -260,7 +252,11 @@ var admission_family_members = new mongoose_1.Schema({
260
252
  comment: "Is active"
261
253
  }
262
254
  }, {
263
- collection: 'admission_family_members'
255
+ collection: 'admission_family_members',
256
+ timestamps: {
257
+ createdAt: 'admfm_created_at',
258
+ updatedAt: 'admfm_updated_at'
259
+ }
264
260
  });
265
261
  // Indexes for better performance
266
262
  admission_family_members.index({ admfm_admission_id_admap: 1 });
@@ -6,3 +6,4 @@ export * from "./admission_contact_addresses";
6
6
  export * from "./admission_fee_snapshot";
7
7
  export * from "./admission_rte_details";
8
8
  export * from "./admission_vital_information";
9
+ export * from "./admission_family_members";
@@ -22,3 +22,4 @@ __exportStar(require("./admission_contact_addresses"), exports);
22
22
  __exportStar(require("./admission_fee_snapshot"), exports);
23
23
  __exportStar(require("./admission_rte_details"), exports);
24
24
  __exportStar(require("./admission_vital_information"), exports);
25
+ __exportStar(require("./admission_family_members"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "cloud-ide-lms-model": "^1.1.21",
3
+ "cloud-ide-lms-model": "^1.1.35",
4
4
  "dotenv": "^16.5.0",
5
5
  "mongoose": "^8.15.0"
6
6
  },
@@ -9,7 +9,7 @@
9
9
  "typescript": "^5.8.3"
10
10
  },
11
11
  "name": "cloud-ide-model-schema",
12
- "version": "1.1.161",
12
+ "version": "1.1.162",
13
13
  "description": "Pachage for schema management of Cloud IDEsys LMS",
14
14
  "main": "lib/index.js",
15
15
  "types": "lib/index.d.ts",