cloud-ide-model-schema 1.0.4 → 1.0.5

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 (39) hide show
  1. package/config/database.js +30 -0
  2. package/config/index.js +5 -0
  3. package/index.js +23 -0
  4. package/package.json +2 -1
  5. package/schema/auth/{auth_logses.ts → auth_logses.js} +50 -68
  6. package/schema/auth/{auth_user_mst.ts → auth_user_mst.js} +107 -143
  7. package/schema/auth/index.js +10 -0
  8. package/schema/auth/{mpin.ts → mpin.js} +51 -60
  9. package/schema/core/core_entity_mapping.js +34 -0
  10. package/schema/core/core_general_master.js +37 -0
  11. package/schema/core/{core_general_master_type.ts → core_general_master_type.js} +33 -46
  12. package/schema/core/{core_page_controls.ts → core_page_controls.js} +75 -100
  13. package/schema/core/{core_page_grid.ts → core_page_grid.js} +36 -48
  14. package/schema/core/core_page_tab.js +33 -0
  15. package/schema/core/{core_pin_code.ts → core_pin_code.js} +51 -73
  16. package/schema/core/{core_system_config.ts → core_system_config.js} +45 -54
  17. package/schema/core/{core_system_entity.ts → core_system_entity.js} +177 -216
  18. package/schema/core/{core_system_logs.ts → core_system_logs.js} +114 -141
  19. package/schema/core/{core_system_menu.ts → core_system_menu.js} +60 -74
  20. package/schema/core/{core_system_pages.ts → core_system_pages.js} +48 -59
  21. package/schema/core/{core_system_pages_theme.ts → core_system_pages_theme.js} +48 -60
  22. package/schema/core/index.js +34 -0
  23. package/schema/email/{elist.ts → elist.js} +39 -47
  24. package/schema/email/{elog.ts → elog.js} +55 -68
  25. package/schema/email/eref.js +40 -0
  26. package/schema/email/{esub.ts → esub.js} +66 -81
  27. package/schema/email/{etmp.ts → etmp.js} +38 -46
  28. package/schema/email/{evdr.ts → evdr.js} +38 -46
  29. package/schema/email/index.js +21 -0
  30. package/config/database.ts +0 -20
  31. package/config/index.ts +0 -5
  32. package/index.ts +0 -5
  33. package/schema/auth/index.ts +0 -13
  34. package/schema/core/core_entity_mapping.ts +0 -49
  35. package/schema/core/core_general_master.ts +0 -52
  36. package/schema/core/core_page_tab.ts +0 -54
  37. package/schema/core/index.ts +0 -42
  38. package/schema/email/eref.ts +0 -49
  39. package/schema/email/index.ts +0 -21
@@ -1,216 +1,177 @@
1
- import mongoose, { Schema } from "mongoose";
2
-
3
- /* INTERFASE START */
4
- interface ICoreSyen {
5
- _id?: string;
6
- syen_id_syen?: string
7
- syen_entity_type_gmst?: string
8
- syen_name?: string
9
- syen_entity_code?: string
10
- syen_corporate_address?: string
11
- syen_corporate_pin_sypc?: string
12
- syen_corporate_city_sypc?: string
13
- syen_corporate_state_sypc?: string
14
- syen_corporate_country_sypc?: string
15
- syen_corporate_contact_person_user?: string
16
- syen_corporate_phone?: number
17
- syen_corporate_phone_alt?: number
18
- syen_corporate_fax?: string
19
- syen_corporate_email?: string
20
- syen_corporate_email_alt?: string
21
- syen_website?: string
22
- syen_currency_sycr?: string
23
- syen_registered_address?: string
24
- syen_registered_pin_sypc?: string
25
- syen_registered_city_sypc?: string
26
- syen_registered_state_sypc?: string
27
- syen_registered_country_sypc?: string
28
- syen_registered_phone?: number
29
- syen_registered_email?: string
30
- syen_registered_fax?: string
31
- syen_registered_contact_person_user?: string
32
- syen_udise_no?: string
33
- syen_affiliation_no?: string
34
- syen_photo_id_fm?: string
35
- syen_isactive?: boolean
36
- }
37
- /* INTERFACE END */
38
-
39
- /* SCHEMA START */
40
- const core_system_entity: Schema = new Schema({
41
- syen_id_syen: {
42
- type: mongoose.Schema.Types.ObjectId,
43
- ref: "core_system_entity"
44
- },
45
- syen_name: {
46
- type: String,
47
- minlength: 0,
48
- maxlength: 150,
49
- trim: true
50
- },
51
- syen_entity_type_gmst: {
52
- type: mongoose.Schema.Types.ObjectId,
53
- ref: "core_general_master"
54
- },
55
- syen_entity_code: {
56
- type: String,
57
- minlength: 0,
58
- maxlength: 40,
59
- trim: true
60
- },
61
- syen_corporate_address: {
62
- type: String,
63
- minlength: 0,
64
- maxlength: 255,
65
- trim: true
66
- },
67
- syen_corporate_pin_sypc: {
68
- type: mongoose.Schema.Types.ObjectId,
69
- ref: "core_postal_code"
70
- },
71
- syen_corporate_city_sypc: {
72
- type: String,
73
- minlength: 0,
74
- maxlength: 40,
75
- trim: true
76
- },
77
- syen_corporate_state_sypc: {
78
- type: String,
79
- minlength: 0,
80
- maxlength: 40,
81
- trim: true
82
- },
83
- syen_corporate_country_sypc: {
84
- type: String,
85
- minlength: 0,
86
- maxlength: 50,
87
- trim: true
88
- },
89
- syen_corporate_contact_person_user: {
90
- type: mongoose.Schema.Types.ObjectId,
91
- ref: "auth_user_mst"
92
- },
93
- syen_corporate_phone: {
94
- type: Number,
95
- default: null,
96
- minlength: 0,
97
- maxlength: 15,
98
- trim: true
99
- },
100
- syen_corporate_phone_alt: {
101
- type: Number,
102
- default: null,
103
- minlength: 0,
104
- maxlength: 15,
105
- trim: true
106
- },
107
- syen_corporate_fax: {
108
- type: Number,
109
- default: null,
110
- minlength: 0,
111
- maxlength: 50,
112
- trim: true
113
- },
114
- syen_corporate_email: {
115
- type: String,
116
- minlength: 0,
117
- maxlength: 320,
118
- trim: true
119
- },
120
- syen_corporate_email_alt: {
121
- type: String,
122
- minlength: 0,
123
- maxlength: 320,
124
- trim: true
125
- },
126
- syen_website: {
127
- type: String,
128
- minlength: 0,
129
- maxlength: 255,
130
- trim: true
131
- },
132
- syen_currency_sycr: {
133
- type: mongoose.Schema.Types.ObjectId,
134
- ref: "core_iso_currency"
135
- },
136
- syen_registered_address: {
137
- type: String,
138
- minlength: 0,
139
- maxlength: 255,
140
- trim: true
141
- },
142
- syen_registered_pin_sypc: {
143
- type: mongoose.Schema.Types.ObjectId,
144
- ref: "core_postal_code"
145
- },
146
- syen_registered_city_sypc: {
147
- type: String,
148
- minlength: 0,
149
- maxlength: 40,
150
- trim: true
151
- },
152
- syen_registered_state_sypc: {
153
- type: String,
154
- minlength: 0,
155
- maxlength: 40,
156
- trim: true
157
- },
158
- syen_registered_country_sypc: {
159
- type: String,
160
- minlength: 0,
161
- maxlength: 50,
162
- trim: true
163
- },
164
- syen_registered_contact_person_user: {
165
- type: mongoose.Schema.Types.ObjectId,
166
- ref: "auth_user_mst"
167
- },
168
- syen_registered_phone: {
169
- type: Number,
170
- default: null,
171
- minlength: 0,
172
- maxlength: 15,
173
- trim: true
174
- },
175
- syen_registered_fax: {
176
- type: Number,
177
- default: null,
178
- minlength: 0,
179
- maxlength: 50,
180
- trim: true
181
- },
182
- syen_registered_email: {
183
- type: String,
184
- minlength: 0,
185
- maxlength: 320,
186
- trim: true
187
- },
188
- syen_udise_no: {
189
- type: String,
190
- minlength: 0,
191
- maxlength: 50,
192
- trim: true
193
- },
194
- syen_affiliation_no: {
195
- type: String,
196
- minlength: 0,
197
- maxlength: 50,
198
- trim: true
199
- },
200
- syen_photo_id_fm: {
201
- type: mongoose.Schema.Types.ObjectId,
202
- ref: "auth_user_mst"
203
- },
204
- syen_isactive: {
205
- type: Boolean,
206
- default: true
207
- },
208
- }, { collection: 'core_system_entity' });
209
-
210
- const CCoreSyen = mongoose.model<ICoreSyen>("core_system_entity", core_system_entity);
211
- /* SCHIMA END */
212
-
213
- export {
214
- ICoreSyen, // interface
215
- CCoreSyen // collection
216
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CCoreSyen = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ /* INTERFACE END */
6
+ /* SCHEMA START */
7
+ const core_system_entity = new mongoose_1.Schema({
8
+ syen_id_syen: {
9
+ type: mongoose_1.default.Schema.Types.ObjectId,
10
+ ref: "core_system_entity"
11
+ },
12
+ syen_name: {
13
+ type: String,
14
+ minlength: 0,
15
+ maxlength: 150,
16
+ trim: true
17
+ },
18
+ syen_entity_type_gmst: {
19
+ type: mongoose_1.default.Schema.Types.ObjectId,
20
+ ref: "core_general_master"
21
+ },
22
+ syen_entity_code: {
23
+ type: String,
24
+ minlength: 0,
25
+ maxlength: 40,
26
+ trim: true
27
+ },
28
+ syen_corporate_address: {
29
+ type: String,
30
+ minlength: 0,
31
+ maxlength: 255,
32
+ trim: true
33
+ },
34
+ syen_corporate_pin_sypc: {
35
+ type: mongoose_1.default.Schema.Types.ObjectId,
36
+ ref: "core_postal_code"
37
+ },
38
+ syen_corporate_city_sypc: {
39
+ type: String,
40
+ minlength: 0,
41
+ maxlength: 40,
42
+ trim: true
43
+ },
44
+ syen_corporate_state_sypc: {
45
+ type: String,
46
+ minlength: 0,
47
+ maxlength: 40,
48
+ trim: true
49
+ },
50
+ syen_corporate_country_sypc: {
51
+ type: String,
52
+ minlength: 0,
53
+ maxlength: 50,
54
+ trim: true
55
+ },
56
+ syen_corporate_contact_person_user: {
57
+ type: mongoose_1.default.Schema.Types.ObjectId,
58
+ ref: "auth_user_mst"
59
+ },
60
+ syen_corporate_phone: {
61
+ type: Number,
62
+ default: null,
63
+ minlength: 0,
64
+ maxlength: 15,
65
+ trim: true
66
+ },
67
+ syen_corporate_phone_alt: {
68
+ type: Number,
69
+ default: null,
70
+ minlength: 0,
71
+ maxlength: 15,
72
+ trim: true
73
+ },
74
+ syen_corporate_fax: {
75
+ type: Number,
76
+ default: null,
77
+ minlength: 0,
78
+ maxlength: 50,
79
+ trim: true
80
+ },
81
+ syen_corporate_email: {
82
+ type: String,
83
+ minlength: 0,
84
+ maxlength: 320,
85
+ trim: true
86
+ },
87
+ syen_corporate_email_alt: {
88
+ type: String,
89
+ minlength: 0,
90
+ maxlength: 320,
91
+ trim: true
92
+ },
93
+ syen_website: {
94
+ type: String,
95
+ minlength: 0,
96
+ maxlength: 255,
97
+ trim: true
98
+ },
99
+ syen_currency_sycr: {
100
+ type: mongoose_1.default.Schema.Types.ObjectId,
101
+ ref: "core_iso_currency"
102
+ },
103
+ syen_registered_address: {
104
+ type: String,
105
+ minlength: 0,
106
+ maxlength: 255,
107
+ trim: true
108
+ },
109
+ syen_registered_pin_sypc: {
110
+ type: mongoose_1.default.Schema.Types.ObjectId,
111
+ ref: "core_postal_code"
112
+ },
113
+ syen_registered_city_sypc: {
114
+ type: String,
115
+ minlength: 0,
116
+ maxlength: 40,
117
+ trim: true
118
+ },
119
+ syen_registered_state_sypc: {
120
+ type: String,
121
+ minlength: 0,
122
+ maxlength: 40,
123
+ trim: true
124
+ },
125
+ syen_registered_country_sypc: {
126
+ type: String,
127
+ minlength: 0,
128
+ maxlength: 50,
129
+ trim: true
130
+ },
131
+ syen_registered_contact_person_user: {
132
+ type: mongoose_1.default.Schema.Types.ObjectId,
133
+ ref: "auth_user_mst"
134
+ },
135
+ syen_registered_phone: {
136
+ type: Number,
137
+ default: null,
138
+ minlength: 0,
139
+ maxlength: 15,
140
+ trim: true
141
+ },
142
+ syen_registered_fax: {
143
+ type: Number,
144
+ default: null,
145
+ minlength: 0,
146
+ maxlength: 50,
147
+ trim: true
148
+ },
149
+ syen_registered_email: {
150
+ type: String,
151
+ minlength: 0,
152
+ maxlength: 320,
153
+ trim: true
154
+ },
155
+ syen_udise_no: {
156
+ type: String,
157
+ minlength: 0,
158
+ maxlength: 50,
159
+ trim: true
160
+ },
161
+ syen_affiliation_no: {
162
+ type: String,
163
+ minlength: 0,
164
+ maxlength: 50,
165
+ trim: true
166
+ },
167
+ syen_photo_id_fm: {
168
+ type: mongoose_1.default.Schema.Types.ObjectId,
169
+ ref: "auth_user_mst"
170
+ },
171
+ syen_isactive: {
172
+ type: Boolean,
173
+ default: true
174
+ },
175
+ }, { collection: 'core_system_entity' });
176
+ const CCoreSyen = mongoose_1.default.model("core_system_entity", core_system_entity);
177
+ exports.CCoreSyen = CCoreSyen;
@@ -1,141 +1,114 @@
1
- import mongoose, { Schema } from "mongoose";
2
- export type log_type = 'TRACE' | 'SECURITY'
3
-
4
- /* INTERFASE START */
5
- class ICoreSylog {
6
- _id?: string;
7
- sylog_id_user?: string; // user id for access by logged in user
8
- sylog_id_logses?: string; // after login store the login session id
9
- sylog_log_type?: log_type; // performed activity like audit trail, logging, event, activity, system, trace, diagostics, histiory, security
10
- sylog_action?: string; // like edit delete, update, reset_password_request
11
- sylog_id_sypg?: string; // stores the id of any form if edit delete new action perfor
12
- sylog_security_event?: string; // security level event like access denoed, unauthorized
13
- sylog_previous_data?: object; // form data for any record data
14
- sylog_updated_data?: object; // form data for any record data
15
- sylog_diagnostic_code?: string; // if service failed like database, email
16
- sylog_ip_address?: string; // ip address of client
17
- sylog_message?: string;
18
- sylog_timestamp?: Date;
19
- sylog_method?: string;
20
- sylog_route?: string;
21
- sylog_request?: object; // stores the payload in json format for each request
22
- sylog_monitor_type?: string; // sytem usage logs like cpu
23
- sylog_monitor_value?: number; // if monitor type is set then must have number,
24
- sylog_config_data?: object;
25
- sylog_isactive?: boolean;
26
- }
27
- /* INTERFACE END */
28
-
29
- /* SCHEMA START */
30
- const core_system_logs: Schema = new Schema({
31
- sylog_id_user: {
32
- type: mongoose.Schema.Types.ObjectId,
33
- required: false
34
- },
35
- sylog_id_logses: {
36
- type: mongoose.Schema.Types.ObjectId,
37
- required: false
38
- },
39
- sylog_log_type: {
40
- type: String,
41
- maxlength: 20,
42
- required: true,
43
- trim: true
44
- },
45
- sylog_action: {
46
- type: String,
47
- maxlength: 20,
48
- trim: true
49
- },
50
- sylog_security_event: {
51
- type: String,
52
- maxlength: 20,
53
- trim: true
54
- },
55
- sylog_previous_data: {
56
- type: Object
57
- },
58
- sylog_updated_data: {
59
- type: Object
60
- },
61
- sylog_diagnostic_code: {
62
- type: String,
63
- maxlength: 20,
64
- trim: true
65
- },
66
- sylog_ip_address: {
67
- type: String,
68
- maxlength: 255,
69
- trim: true
70
- },
71
- sylog_message: {
72
- type: String,
73
- maxlength: 255,
74
- trim: true
75
- },
76
- sylog_timestamp: {
77
- type: Date
78
- },
79
- sylog_method: {
80
- type: String,
81
- maxlength: 20,
82
- trim: true
83
- },
84
- sylog_route: {
85
- type: String,
86
- maxlength: 100,
87
- trim: true
88
- },
89
- sylog_request: {
90
- type: Object
91
- },
92
- sylog_monitor_type: {
93
- type: String,
94
- maxlength: 40,
95
- trim: true
96
- },
97
- sylog_monitor_value: {
98
- type: Number,
99
- maxlength: 20
100
- },
101
- sylog_config_data: {
102
- type: Object
103
- },
104
- sylog_isactive: {
105
- type: Boolean,
106
- default: true
107
- }
108
- }, { collection: 'core_system_logs' });
109
-
110
- const CCoreSylog = mongoose.model<ICoreSylog>("core_system_logs", core_system_logs);
111
- /* SCHIMA END */
112
-
113
- export {
114
- ICoreSylog, // interface
115
- CCoreSylog // collection
116
- };
117
-
118
- /*
119
- || EXAMPLE for TRACE log type
120
- ||{
121
- || user_id: "user001", // this is after login succuess for each route
122
- || log_type: "TRACE",
123
- || timestamp: new Date(),
124
- || method: "POST",
125
- || route: "/auth/login",
126
- || request: {},
127
- || ip_address" "192.168.0.6",
128
- ||}
129
- */
130
-
131
- /*
132
- || EXAMPLE for SECURITY log type
133
- ||{
134
- || user_id: "user001", // this is after reset password link sent
135
- || log_type: "SECURITY",
136
- || timestamp: new Date(),
137
- || sylog_security_event: "reset_password",
138
- || sylog_config_data: {"reset_password_id":""}
139
- || ip_address" "192.168.0.6",
140
- ||}
141
- */
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CCoreSylog = exports.ICoreSylog = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ /* INTERFASE START */
6
+ class ICoreSylog {
7
+ }
8
+ exports.ICoreSylog = ICoreSylog;
9
+ /* INTERFACE END */
10
+ /* SCHEMA START */
11
+ const core_system_logs = new mongoose_1.Schema({
12
+ sylog_id_user: {
13
+ type: mongoose_1.default.Schema.Types.ObjectId,
14
+ required: false
15
+ },
16
+ sylog_id_logses: {
17
+ type: mongoose_1.default.Schema.Types.ObjectId,
18
+ required: false
19
+ },
20
+ sylog_log_type: {
21
+ type: String,
22
+ maxlength: 20,
23
+ required: true,
24
+ trim: true
25
+ },
26
+ sylog_action: {
27
+ type: String,
28
+ maxlength: 20,
29
+ trim: true
30
+ },
31
+ sylog_security_event: {
32
+ type: String,
33
+ maxlength: 20,
34
+ trim: true
35
+ },
36
+ sylog_previous_data: {
37
+ type: Object
38
+ },
39
+ sylog_updated_data: {
40
+ type: Object
41
+ },
42
+ sylog_diagnostic_code: {
43
+ type: String,
44
+ maxlength: 20,
45
+ trim: true
46
+ },
47
+ sylog_ip_address: {
48
+ type: String,
49
+ maxlength: 255,
50
+ trim: true
51
+ },
52
+ sylog_message: {
53
+ type: String,
54
+ maxlength: 255,
55
+ trim: true
56
+ },
57
+ sylog_timestamp: {
58
+ type: Date
59
+ },
60
+ sylog_method: {
61
+ type: String,
62
+ maxlength: 20,
63
+ trim: true
64
+ },
65
+ sylog_route: {
66
+ type: String,
67
+ maxlength: 100,
68
+ trim: true
69
+ },
70
+ sylog_request: {
71
+ type: Object
72
+ },
73
+ sylog_monitor_type: {
74
+ type: String,
75
+ maxlength: 40,
76
+ trim: true
77
+ },
78
+ sylog_monitor_value: {
79
+ type: Number,
80
+ maxlength: 20
81
+ },
82
+ sylog_config_data: {
83
+ type: Object
84
+ },
85
+ sylog_isactive: {
86
+ type: Boolean,
87
+ default: true
88
+ }
89
+ }, { collection: 'core_system_logs' });
90
+ const CCoreSylog = mongoose_1.default.model("core_system_logs", core_system_logs);
91
+ exports.CCoreSylog = CCoreSylog;
92
+ /*
93
+ || EXAMPLE for TRACE log type
94
+ ||{
95
+ || user_id: "user001", // this is after login succuess for each route
96
+ || log_type: "TRACE",
97
+ || timestamp: new Date(),
98
+ || method: "POST",
99
+ || route: "/auth/login",
100
+ || request: {},
101
+ || ip_address" "192.168.0.6",
102
+ ||}
103
+ */
104
+ /*
105
+ || EXAMPLE for SECURITY log type
106
+ ||{
107
+ || user_id: "user001", // this is after reset password link sent
108
+ || log_type: "SECURITY",
109
+ || timestamp: new Date(),
110
+ || sylog_security_event: "reset_password",
111
+ || sylog_config_data: {"reset_password_id":""}
112
+ || ip_address" "192.168.0.6",
113
+ ||}
114
+ */