cloud-ide-model-schema 1.1.103 → 1.1.105

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.
Files changed (31) hide show
  1. package/lib/schema/admission/admission_application_main.d.ts +23 -0
  2. package/lib/schema/admission/admission_application_main.js +1102 -0
  3. package/lib/schema/admission/admission_document_uploads.d.ts +23 -0
  4. package/lib/schema/admission/admission_document_uploads.js +216 -0
  5. package/lib/schema/admission/admission_elective_detail.d.ts +23 -0
  6. package/lib/schema/admission/admission_elective_detail.js +127 -0
  7. package/lib/schema/admission/admission_status_history.d.ts +23 -0
  8. package/lib/schema/admission/admission_status_history.js +133 -0
  9. package/lib/schema/admission/index.d.ts +4 -0
  10. package/lib/schema/admission/index.js +20 -0
  11. package/lib/schema/core/core_board_exam_pattern.d.ts +23 -0
  12. package/lib/schema/core/core_board_exam_pattern.js +153 -0
  13. package/lib/schema/core/core_board_grade_system.d.ts +23 -0
  14. package/lib/schema/core/core_board_grade_system.js +211 -0
  15. package/lib/schema/core/core_education_board.d.ts +23 -0
  16. package/lib/schema/core/core_education_board.js +131 -0
  17. package/lib/schema/core/core_entity_udise.d.ts +23 -0
  18. package/lib/schema/core/core_entity_udise.js +114 -0
  19. package/lib/schema/core/core_school_board_affiliation.d.ts +23 -0
  20. package/lib/schema/core/core_school_board_affiliation.js +77 -0
  21. package/lib/schema/core/core_system_entity.js +4 -2
  22. package/lib/schema/core/core_system_nationality.d.ts +8 -0
  23. package/lib/schema/core/core_system_nationality.js +100 -0
  24. package/lib/schema/core/index.d.ts +18 -2
  25. package/lib/schema/core/index.js +13 -1
  26. package/lib/schema/frontdesk/fdsk_leads.js +4 -0
  27. package/lib/schema/frontdesk/index.d.ts +0 -2
  28. package/lib/schema/frontdesk/index.js +0 -2
  29. package/lib/schema/index.d.ts +1 -0
  30. package/lib/schema/index.js +1 -0
  31. package/package.json +2 -2
@@ -0,0 +1,23 @@
1
+ import mongoose from "mongoose";
2
+ declare const CCoreSchoolBoardAffiliation: mongoose.Model<{
3
+ [x: string]: unknown;
4
+ }, {}, {}, {}, mongoose.Document<unknown, {}, {
5
+ [x: string]: unknown;
6
+ }, {}> & {
7
+ [x: string]: unknown;
8
+ } & Required<{
9
+ _id: unknown;
10
+ }> & {
11
+ __v: number;
12
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
13
+ [x: string]: unknown;
14
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
15
+ [x: string]: unknown;
16
+ }>, {}> & mongoose.FlatRecord<{
17
+ [x: string]: unknown;
18
+ }> & Required<{
19
+ _id: unknown;
20
+ }> & {
21
+ __v: number;
22
+ }>>;
23
+ export { CCoreSchoolBoardAffiliation };
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CCoreSchoolBoardAffiliation = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var core_school_board_affiliation = new mongoose_1.Schema({
7
+ scbaf_entity_id_syen: {
8
+ type: mongoose_1.default.Schema.Types.ObjectId,
9
+ ref: "core_system_entity",
10
+ required: true,
11
+ comment: "School/Entity ID"
12
+ },
13
+ scbaf_board_id_edbrd: {
14
+ type: mongoose_1.default.Schema.Types.ObjectId,
15
+ ref: "core_education_board",
16
+ required: true,
17
+ comment: "Education Board ID"
18
+ },
19
+ scbaf_affiliation_number: {
20
+ type: String,
21
+ required: true,
22
+ maxlength: 100,
23
+ trim: true,
24
+ comment: "Board affiliation number (e.g., CBSE affiliation number)"
25
+ },
26
+ scbaf_affiliation_date: {
27
+ type: Date,
28
+ comment: "Date of affiliation"
29
+ },
30
+ scbaf_affiliation_expiry_date: {
31
+ type: Date,
32
+ comment: "Affiliation expiry date (if applicable)"
33
+ },
34
+ // NOTE: UDISE fields are NOT in board affiliation table
35
+ // UDISE is school-specific, not board-specific
36
+ // A school has ONE UDISE code regardless of board affiliations
37
+ // UDISE fields are in core_entity_udise table
38
+ scbaf_affiliation_status_sygms: {
39
+ type: mongoose_1.default.Schema.Types.ObjectId,
40
+ ref: "core_general_master",
41
+ required: true,
42
+ comment: "Affiliation status (Active, Expired, Suspended, Pending, Revoked) - Reference to core_general_master with type 'BOARD_AFFILIATION_STATUS'"
43
+ },
44
+ scbaf_affiliation_levels: {
45
+ type: [String],
46
+ default: [],
47
+ comment: "Affiliated levels (e.g., ['Primary', 'Secondary', 'Higher Secondary'])"
48
+ },
49
+ scbaf_affiliation_subjects: {
50
+ type: [String],
51
+ default: [],
52
+ comment: "Affiliated subjects/streams"
53
+ },
54
+ scbaf_isprimary: {
55
+ type: Boolean,
56
+ default: false,
57
+ comment: "Is this the primary board affiliation"
58
+ },
59
+ scbaf_isactive: {
60
+ type: Boolean,
61
+ default: true,
62
+ comment: "Affiliation active status"
63
+ }
64
+ }, {
65
+ collection: 'core_school_board_affiliation',
66
+ timestamps: true
67
+ });
68
+ // Indexes for performance
69
+ core_school_board_affiliation.index({ scbaf_entity_id_syen: 1 });
70
+ core_school_board_affiliation.index({ scbaf_board_id_edbrd: 1 });
71
+ core_school_board_affiliation.index({ scbaf_affiliation_number: 1 });
72
+ core_school_board_affiliation.index({ scbaf_affiliation_status_sygms: 1 });
73
+ core_school_board_affiliation.index({ scbaf_isprimary: 1 });
74
+ core_school_board_affiliation.index({ scbaf_entity_id_syen: 1, scbaf_isprimary: 1 });
75
+ core_school_board_affiliation.index({ scbaf_isactive: 1 });
76
+ var CCoreSchoolBoardAffiliation = mongoose_1.default.model("core_school_board_affiliation", core_school_board_affiliation);
77
+ exports.CCoreSchoolBoardAffiliation = CCoreSchoolBoardAffiliation;
@@ -153,13 +153,15 @@ var core_system_entity = new mongoose_1.Schema({
153
153
  type: String,
154
154
  minlength: 0,
155
155
  maxlength: 50,
156
- trim: true
156
+ trim: true,
157
+ comment: "11-digit UDISE code (Unified District Information System for Education) - Note: Board affiliations and UDISE details are managed in core_school_board_affiliation detail table"
157
158
  },
158
159
  syen_affiliation_no: {
159
160
  type: String,
160
161
  minlength: 0,
161
162
  maxlength: 50,
162
- trim: true
163
+ trim: true,
164
+ comment: "General affiliation number - Note: Board-specific affiliations are managed in core_school_board_affiliation detail table"
163
165
  },
164
166
  syen_photo_id_cyfm: {
165
167
  type: mongoose_1.default.Schema.Types.ObjectId,
@@ -0,0 +1,8 @@
1
+ import { ICoreSynat } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CCoreSynat: mongoose.Model<ICoreSynat, {}, {}, {}, mongoose.Document<unknown, {}, ICoreSynat, {}> & ICoreSynat & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CCoreSynat };
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CCoreSynat = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var core_system_nationality = new mongoose_1.Schema({
7
+ synat_nationality_code: {
8
+ type: String,
9
+ required: true,
10
+ unique: true,
11
+ maxlength: 50,
12
+ trim: true,
13
+ uppercase: true,
14
+ comment: "Unique code for nationality (e.g., 'US-AMERICAN', 'GB-ENGLISH')"
15
+ },
16
+ synat_nationality_name: {
17
+ type: String,
18
+ required: true,
19
+ maxlength: 100,
20
+ trim: true,
21
+ comment: "Display name for nationality (e.g., 'American', 'English')"
22
+ },
23
+ synat_nationality_official_name: {
24
+ type: String,
25
+ maxlength: 200,
26
+ trim: true,
27
+ comment: "Official name for nationality"
28
+ },
29
+ synat_is_group: {
30
+ type: Boolean,
31
+ default: false,
32
+ comment: "True if this is a group/master nationality for analytics grouping"
33
+ },
34
+ synat_parent_nationality_id_synat: {
35
+ type: mongoose_1.default.Schema.Types.ObjectId,
36
+ ref: "core_system_nationality",
37
+ comment: "Parent nationality for grouping (e.g., 'American' group for US-American variants)"
38
+ },
39
+ synat_country_id_syctr: {
40
+ type: mongoose_1.default.Schema.Types.ObjectId,
41
+ ref: "core_system_country",
42
+ required: true,
43
+ comment: "Reference to country"
44
+ },
45
+ synat_is_primary_for_country: {
46
+ type: Boolean,
47
+ default: false,
48
+ comment: "Is this the primary nationality for the country?"
49
+ },
50
+ synat_description: {
51
+ type: String,
52
+ maxlength: 500,
53
+ trim: true,
54
+ comment: "Optional description"
55
+ },
56
+ synat_demonym: {
57
+ type: String,
58
+ maxlength: 100,
59
+ trim: true,
60
+ comment: "What people from this nationality are called (e.g., 'American', 'Briton')"
61
+ },
62
+ synat_iso_code: {
63
+ type: String,
64
+ maxlength: 10,
65
+ trim: true,
66
+ uppercase: true,
67
+ comment: "ISO nationality code if available"
68
+ },
69
+ synat_display_order: {
70
+ type: Number,
71
+ default: 0,
72
+ comment: "Display order for sorting in dropdowns"
73
+ },
74
+ synat_isactive: {
75
+ type: Boolean,
76
+ default: true,
77
+ comment: "Active status"
78
+ },
79
+ synat_entity_id_syen: {
80
+ type: mongoose_1.default.Schema.Types.ObjectId,
81
+ ref: "core_system_entity",
82
+ comment: "Optional: Entity-specific nationality"
83
+ },
84
+ synat_configuration: {
85
+ type: mongoose_1.Schema.Types.Mixed,
86
+ default: {},
87
+ comment: "JSON for additional configuration"
88
+ }
89
+ }, {
90
+ collection: 'core_system_nationality',
91
+ timestamps: true
92
+ });
93
+ // Indexes for better query performance
94
+ core_system_nationality.index({ synat_country_id_syctr: 1 });
95
+ core_system_nationality.index({ synat_is_group: 1 });
96
+ core_system_nationality.index({ synat_parent_nationality_id_synat: 1 });
97
+ core_system_nationality.index({ synat_isactive: 1 });
98
+ core_system_nationality.index({ synat_nationality_code: 1 });
99
+ var CCoreSynat = mongoose_1.default.model("core_system_nationality", core_system_nationality);
100
+ exports.CCoreSynat = CCoreSynat;
@@ -13,6 +13,7 @@ import { CCoreSygmt } from './core_general_master_type';
13
13
  import { CCoreSyenm } from './core_entity_mapping';
14
14
  import { CCoreCyfm } from './core_file_manager';
15
15
  import { CCoreSyctr } from './core_system_country';
16
+ import { CCoreSynat } from './core_system_nationality';
16
17
  import { CCoreSylang } from './core_language';
17
18
  import { CCoreSyth } from './core_system_themes';
18
19
  import { CCoreSyupth } from './core_system_theme_user_preferences';
@@ -27,9 +28,14 @@ import { CCoreUserFamilyDetails } from './core_user_family_details';
27
28
  import { CCoreUserRole } from './core_user_role';
28
29
  import { CCoreUserRoleRights } from './core_user_role_rights';
29
30
  import { CCoreUserRoleExceptions } from './core_user_role_exceptions';
31
+ import { CCoreEducationBoard } from './core_education_board';
32
+ import { CCoreSchoolBoardAffiliation } from './core_school_board_affiliation';
33
+ import { CCoreEntityUdise } from './core_entity_udise';
34
+ import { CCoreBoardExamPattern } from './core_board_exam_pattern';
35
+ import { CCoreBoardGradeSystem } from './core_board_grade_system';
30
36
  export * from './core_user_contact_addresses';
31
37
  export * from './core_entity_access_pass_management';
32
- export { CCoreSypg, CCoreSytm, CCoreSyme, CCoreSylog, CCoreSyen, CCoreSyco, CCoreSypin, CCoreSyptb, CCoreSypgr, CCoreSype, CCoreSygms, CCoreSygmt, CCoreSyenm, CCoreCyfm, CCoreSyctr,
38
+ export { CCoreSypg, CCoreSytm, CCoreSyme, CCoreSylog, CCoreSyen, CCoreSyco, CCoreSypin, CCoreSyptb, CCoreSypgr, CCoreSype, CCoreSygms, CCoreSygmt, CCoreSyenm, CCoreCyfm, CCoreSyctr, CCoreSynat,
33
39
  /** system language schemas */
34
40
  CCoreSylang,
35
41
  /** System theme Variables */
@@ -57,4 +63,14 @@ CCoreUserRole,
57
63
  /** User Role Rights schemas */
58
64
  CCoreUserRoleRights,
59
65
  /** User Role Exceptions schemas */
60
- CCoreUserRoleExceptions };
66
+ CCoreUserRoleExceptions,
67
+ /** Education Board schemas */
68
+ CCoreEducationBoard,
69
+ /** School Board Affiliation schemas */
70
+ CCoreSchoolBoardAffiliation,
71
+ /** Entity UDISE schemas */
72
+ CCoreEntityUdise,
73
+ /** Board Exam Pattern schemas */
74
+ CCoreBoardExamPattern,
75
+ /** Board Grade System schemas */
76
+ CCoreBoardGradeSystem };
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.CCoreUserRoleExceptions = exports.CCoreUserRoleRights = exports.CCoreUserRole = exports.CCoreUserFamilyDetails = exports.CCoreUserDocuments = exports.CCoreSydept = exports.CCoreSydsgl = exports.CCoreSydsg = exports.CCoreSycr = exports.CCoreSypn = exports.CCoreSyoth = exports.CCoreSyupth = exports.CCoreSyth = exports.CCoreSylang = exports.CCoreSyctr = exports.CCoreCyfm = exports.CCoreSyenm = exports.CCoreSygmt = exports.CCoreSygms = exports.CCoreSype = exports.CCoreSypgr = exports.CCoreSyptb = exports.CCoreSypin = exports.CCoreSyco = exports.CCoreSyen = exports.CCoreSylog = exports.CCoreSyme = exports.CCoreSytm = exports.CCoreSypg = void 0;
17
+ exports.CCoreBoardGradeSystem = exports.CCoreBoardExamPattern = exports.CCoreEntityUdise = exports.CCoreSchoolBoardAffiliation = exports.CCoreEducationBoard = exports.CCoreUserRoleExceptions = exports.CCoreUserRoleRights = exports.CCoreUserRole = exports.CCoreUserFamilyDetails = exports.CCoreUserDocuments = exports.CCoreSydept = exports.CCoreSydsgl = exports.CCoreSydsg = exports.CCoreSycr = exports.CCoreSypn = exports.CCoreSyoth = exports.CCoreSyupth = exports.CCoreSyth = exports.CCoreSylang = exports.CCoreSynat = exports.CCoreSyctr = exports.CCoreCyfm = exports.CCoreSyenm = exports.CCoreSygmt = exports.CCoreSygms = exports.CCoreSype = exports.CCoreSypgr = exports.CCoreSyptb = exports.CCoreSypin = exports.CCoreSyco = exports.CCoreSyen = exports.CCoreSylog = exports.CCoreSyme = exports.CCoreSytm = exports.CCoreSypg = void 0;
18
18
  var core_system_pages_1 = require("./core_system_pages");
19
19
  Object.defineProperty(exports, "CCoreSypg", { enumerable: true, get: function () { return core_system_pages_1.CCoreSypg; } });
20
20
  var core_system_pages_theme_1 = require("./core_system_pages_theme");
@@ -45,6 +45,8 @@ var core_file_manager_1 = require("./core_file_manager");
45
45
  Object.defineProperty(exports, "CCoreCyfm", { enumerable: true, get: function () { return core_file_manager_1.CCoreCyfm; } });
46
46
  var core_system_country_1 = require("./core_system_country");
47
47
  Object.defineProperty(exports, "CCoreSyctr", { enumerable: true, get: function () { return core_system_country_1.CCoreSyctr; } });
48
+ var core_system_nationality_1 = require("./core_system_nationality");
49
+ Object.defineProperty(exports, "CCoreSynat", { enumerable: true, get: function () { return core_system_nationality_1.CCoreSynat; } });
48
50
  var core_language_1 = require("./core_language");
49
51
  Object.defineProperty(exports, "CCoreSylang", { enumerable: true, get: function () { return core_language_1.CCoreSylang; } });
50
52
  var core_system_themes_1 = require("./core_system_themes");
@@ -73,5 +75,15 @@ var core_user_role_rights_1 = require("./core_user_role_rights");
73
75
  Object.defineProperty(exports, "CCoreUserRoleRights", { enumerable: true, get: function () { return core_user_role_rights_1.CCoreUserRoleRights; } });
74
76
  var core_user_role_exceptions_1 = require("./core_user_role_exceptions");
75
77
  Object.defineProperty(exports, "CCoreUserRoleExceptions", { enumerable: true, get: function () { return core_user_role_exceptions_1.CCoreUserRoleExceptions; } });
78
+ var core_education_board_1 = require("./core_education_board");
79
+ Object.defineProperty(exports, "CCoreEducationBoard", { enumerable: true, get: function () { return core_education_board_1.CCoreEducationBoard; } });
80
+ var core_school_board_affiliation_1 = require("./core_school_board_affiliation");
81
+ Object.defineProperty(exports, "CCoreSchoolBoardAffiliation", { enumerable: true, get: function () { return core_school_board_affiliation_1.CCoreSchoolBoardAffiliation; } });
82
+ var core_entity_udise_1 = require("./core_entity_udise");
83
+ Object.defineProperty(exports, "CCoreEntityUdise", { enumerable: true, get: function () { return core_entity_udise_1.CCoreEntityUdise; } });
84
+ var core_board_exam_pattern_1 = require("./core_board_exam_pattern");
85
+ Object.defineProperty(exports, "CCoreBoardExamPattern", { enumerable: true, get: function () { return core_board_exam_pattern_1.CCoreBoardExamPattern; } });
86
+ var core_board_grade_system_1 = require("./core_board_grade_system");
87
+ Object.defineProperty(exports, "CCoreBoardGradeSystem", { enumerable: true, get: function () { return core_board_grade_system_1.CCoreBoardGradeSystem; } });
76
88
  __exportStar(require("./core_user_contact_addresses"), exports);
77
89
  __exportStar(require("./core_entity_access_pass_management"), exports);
@@ -120,6 +120,10 @@ var fdsk_leads = new mongoose_1.Schema({
120
120
  type: mongoose_1.default.Schema.Types.ObjectId,
121
121
  ref: "auth_user_mst",
122
122
  comment: "lead referred by user name, this is configurable to ask on lead form or we will update by ourself, because this should be field by us to prevent data breach of user"
123
+ },
124
+ fdlds_schedule_date_time: {
125
+ type: Date,
126
+ comment: "schedule date time of the lead"
123
127
  }
124
128
  }, { collection: 'fdsk_leads' });
125
129
  var CFdskLeads = mongoose_1.default.model("fdsk_leads", fdsk_leads);
@@ -1,5 +1,3 @@
1
1
  export * from "./fdsk_lead_assignment_detail";
2
2
  export * from "./fdsk_lead_config_master";
3
- export * from "./fdsk_lead_detail";
4
- export * from "./fdsk_lead_scheduling";
5
3
  export * from "./fdsk_leads";
@@ -16,6 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./fdsk_lead_assignment_detail"), exports);
18
18
  __exportStar(require("./fdsk_lead_config_master"), exports);
19
- __exportStar(require("./fdsk_lead_detail"), exports);
20
- __exportStar(require("./fdsk_lead_scheduling"), exports);
21
19
  __exportStar(require("./fdsk_leads"), exports);
@@ -4,3 +4,4 @@ export * from "./email";
4
4
  export * from "./academics";
5
5
  export * from "./accounts";
6
6
  export * from "./frontdesk";
7
+ export * from "./admission";
@@ -20,3 +20,4 @@ __exportStar(require("./email"), exports);
20
20
  __exportStar(require("./academics"), exports);
21
21
  __exportStar(require("./accounts"), exports);
22
22
  __exportStar(require("./frontdesk"), exports);
23
+ __exportStar(require("./admission"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "cloud-ide-lms-model": "^1.0.304",
3
+ "cloud-ide-lms-model": "^1.0.321",
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.103",
12
+ "version": "1.1.105",
13
13
  "description": "Pachage for schema management of Cloud IDEsys LMS",
14
14
  "main": "lib/index.js",
15
15
  "types": "lib/index.d.ts",