cloud-ide-model-schema 1.1.139 → 1.1.140

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.
@@ -0,0 +1,23 @@
1
+ import mongoose from "mongoose";
2
+ declare const CCoreDashboardCards: 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 { CCoreDashboardCards };
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CCoreDashboardCards = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var core_dashboard_cards = new mongoose_1.Schema({
7
+ cdc_title: {
8
+ type: String,
9
+ required: true,
10
+ maxlength: 200,
11
+ trim: true,
12
+ comment: "Title of the dashboard card"
13
+ },
14
+ cdc_description: {
15
+ type: String,
16
+ maxlength: 500,
17
+ trim: true,
18
+ comment: "Description of the dashboard card"
19
+ },
20
+ cdc_type: {
21
+ type: String,
22
+ required: true,
23
+ maxlength: 50,
24
+ trim: true,
25
+ enum: ["stats", "chart", "table", "module-card", "activity-feed", "events", "custom"],
26
+ default: "custom",
27
+ comment: "Type of dashboard card (stats, chart, table, etc.)"
28
+ },
29
+ cdc_api_endpoint: {
30
+ type: String,
31
+ maxlength: 500,
32
+ trim: true,
33
+ comment: "API endpoint URL to fetch data for this card"
34
+ },
35
+ cdc_api_method: {
36
+ type: String,
37
+ maxlength: 10,
38
+ trim: true,
39
+ enum: ["GET", "POST", "PUT", "DELETE", "PATCH"],
40
+ default: "GET",
41
+ comment: "HTTP method for the API endpoint"
42
+ },
43
+ cdc_api_payload: {
44
+ type: mongoose_1.Schema.Types.Mixed,
45
+ comment: "Default payload/query parameters for the API call (stored as JSON)"
46
+ },
47
+ cdc_config: {
48
+ type: mongoose_1.Schema.Types.Mixed,
49
+ comment: "Card-specific configuration (layout, styling, display options, etc.)"
50
+ },
51
+ cdc_position: {
52
+ row: {
53
+ type: Number,
54
+ default: 1,
55
+ comment: "Row position in the grid"
56
+ },
57
+ col: {
58
+ type: Number,
59
+ default: 1,
60
+ comment: "Column position in the grid"
61
+ },
62
+ colspan: {
63
+ type: Number,
64
+ default: 1,
65
+ min: 1,
66
+ max: 12,
67
+ comment: "Number of columns this card spans"
68
+ },
69
+ rowspan: {
70
+ type: Number,
71
+ default: 1,
72
+ min: 1,
73
+ comment: "Number of rows this card spans"
74
+ }
75
+ },
76
+ cdc_icon: {
77
+ type: String,
78
+ maxlength: 100,
79
+ trim: true,
80
+ comment: "Icon name or identifier for the card"
81
+ },
82
+ cdc_color: {
83
+ type: String,
84
+ maxlength: 50,
85
+ trim: true,
86
+ comment: "Color theme for the card (hex code or color name)"
87
+ },
88
+ cdc_visible: {
89
+ type: Boolean,
90
+ default: true,
91
+ comment: "Whether the card is visible on the dashboard"
92
+ },
93
+ cdc_draggable: {
94
+ type: Boolean,
95
+ default: true,
96
+ comment: "Whether the card can be dragged and repositioned"
97
+ },
98
+ cdc_refresh_interval: {
99
+ type: Number,
100
+ default: 0,
101
+ comment: "Auto-refresh interval in seconds (0 = no auto-refresh)"
102
+ },
103
+ cdc_permissions: {
104
+ type: [String],
105
+ default: ["all"],
106
+ comment: "Array of role/permission identifiers that can view this card"
107
+ },
108
+ cdc_entity_id_syen: {
109
+ type: mongoose_1.default.Schema.Types.ObjectId,
110
+ ref: "core_system_entity",
111
+ comment: "Reference to core_system_entity (for multi-entity support)"
112
+ },
113
+ cdc_created_by_user: {
114
+ type: mongoose_1.default.Schema.Types.ObjectId,
115
+ ref: "auth_user_mst",
116
+ comment: "User who created this card"
117
+ },
118
+ cdc_modified_by_user: {
119
+ type: mongoose_1.default.Schema.Types.ObjectId,
120
+ ref: "auth_user_mst",
121
+ comment: "User who last modified this card"
122
+ },
123
+ cdc_created_date: {
124
+ type: Date,
125
+ default: Date.now,
126
+ comment: "Creation timestamp"
127
+ },
128
+ cdc_modified_date: {
129
+ type: Date,
130
+ default: Date.now,
131
+ comment: "Last modification timestamp"
132
+ },
133
+ cdc_isactive: {
134
+ type: Boolean,
135
+ default: true,
136
+ comment: "Active status of the card"
137
+ }
138
+ }, {
139
+ collection: 'core_dashboard_cards',
140
+ timestamps: false // We're using custom timestamp fields
141
+ });
142
+ // Indexes for performance
143
+ core_dashboard_cards.index({ cdc_entity_id_syen: 1 });
144
+ core_dashboard_cards.index({ cdc_visible: 1, cdc_isactive: 1 });
145
+ core_dashboard_cards.index({ cdc_created_date: -1 });
146
+ core_dashboard_cards.index({ cdc_position: 1 });
147
+ var CCoreDashboardCards = mongoose_1.default.model("core_dashboard_cards", core_dashboard_cards);
148
+ exports.CCoreDashboardCards = CCoreDashboardCards;
@@ -35,6 +35,7 @@ import { CCoreSchoolBoardAffiliation } from './core_school_board_affiliation';
35
35
  import { CCoreEntityUdise } from './core_entity_udise';
36
36
  import { CCoreBoardExamPattern } from './core_board_exam_pattern';
37
37
  import { CCoreBoardGradeSystem } from './core_board_grade_system';
38
+ import { CCoreDashboardCards } from './core_dashboard_cards';
38
39
  export * from './core_user_contact_addresses';
39
40
  export * from './core_entity_access_pass_management';
40
41
  export { CCoreSypg, CCoreSytm, CCoreSyme, CCoreSylog, CCoreSyen, CCoreSyco, CCoreFinancialConfig, CCoreSypin, CCoreSyptb, CCoreSypgr, CCoreSype, CCoreSygms, CCoreSygmt, CCoreSyenm, CCoreCyfm, CCoreSyctr, CCoreSynat,
@@ -77,4 +78,6 @@ CCoreBoardExamPattern,
77
78
  /** Board Grade System schemas */
78
79
  CCoreBoardGradeSystem,
79
80
  /** User Type Mapping schemas */
80
- CCoreUserTypeMapping };
81
+ CCoreUserTypeMapping,
82
+ /** Dashboard Cards schemas */
83
+ CCoreDashboardCards };
@@ -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.CCoreUserTypeMapping = 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.CCoreFinancialConfig = exports.CCoreSyco = exports.CCoreSyen = exports.CCoreSylog = exports.CCoreSyme = exports.CCoreSytm = exports.CCoreSypg = void 0;
17
+ exports.CCoreDashboardCards = exports.CCoreUserTypeMapping = 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.CCoreFinancialConfig = 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");
@@ -89,5 +89,7 @@ var core_board_exam_pattern_1 = require("./core_board_exam_pattern");
89
89
  Object.defineProperty(exports, "CCoreBoardExamPattern", { enumerable: true, get: function () { return core_board_exam_pattern_1.CCoreBoardExamPattern; } });
90
90
  var core_board_grade_system_1 = require("./core_board_grade_system");
91
91
  Object.defineProperty(exports, "CCoreBoardGradeSystem", { enumerable: true, get: function () { return core_board_grade_system_1.CCoreBoardGradeSystem; } });
92
+ var core_dashboard_cards_1 = require("./core_dashboard_cards");
93
+ Object.defineProperty(exports, "CCoreDashboardCards", { enumerable: true, get: function () { return core_dashboard_cards_1.CCoreDashboardCards; } });
92
94
  __exportStar(require("./core_user_contact_addresses"), exports);
93
95
  __exportStar(require("./core_entity_access_pass_management"), exports);
@@ -36,6 +36,18 @@ var fee_structure_item = new mongoose_1.Schema({
36
36
  trim: true,
37
37
  comment: "Fee item description"
38
38
  },
39
+ feesi_fee_type: {
40
+ type: String,
41
+ enum: ['ONE_TIME', 'RECURRING'],
42
+ default: 'ONE_TIME',
43
+ comment: "Fee type: One-time or Recurring"
44
+ },
45
+ feesi_payment_frequency: {
46
+ type: String,
47
+ enum: ['MONTHLY', 'QUARTERLY', 'SEMESTER', 'ANNUAL', 'ONE_TIME'],
48
+ default: 'ONE_TIME',
49
+ comment: "Payment frequency for recurring fees"
50
+ },
39
51
  feesi_amount: {
40
52
  type: Number,
41
53
  required: true,
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript": "^5.8.3"
10
10
  },
11
11
  "name": "cloud-ide-model-schema",
12
- "version": "1.1.139",
12
+ "version": "1.1.140",
13
13
  "description": "Pachage for schema management of Cloud IDEsys LMS",
14
14
  "main": "lib/index.js",
15
15
  "types": "lib/index.d.ts",