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,46 +1,33 @@
1
- import mongoose, { Schema } from "mongoose";
2
-
3
- /* INTERFASE START */
4
- interface ICoreSygmt {
5
- _id: string;
6
- sygmt_code: string;
7
- sygmt_title: string;
8
- sygmt_desc: string;
9
- sygmt_isactive: boolean;
10
- }
11
- /* INTERFACE END */
12
-
13
- /* SCHEMA START */
14
- const core_general_master_type: Schema = new Schema({
15
- sygmt_code: {
16
- type: String,
17
- require: true,
18
- maxlength: 40,
19
- trim: true
20
- },
21
- sygmt_title: {
22
- type: String,
23
- require: true,
24
- minlength: 3,
25
- maxlength: 100,
26
- trim: true
27
- },
28
- sygmt_desc: {
29
- type: String,
30
- minlength: 0,
31
- maxlength: 255,
32
- trim: true
33
- },
34
- sygmt_isactive: {
35
- type: Boolean,
36
- default: true
37
- },
38
- }, { collection: 'core_general_master_type' });
39
-
40
- const CCoreSygmt = mongoose.model<ICoreSygmt>("core_general_master_type", core_general_master_type);
41
- /* SCHIMA END */
42
-
43
- export {
44
- ICoreSygmt, // interface
45
- CCoreSygmt // collection
46
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CCoreSygmt = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ /* INTERFACE END */
6
+ /* SCHEMA START */
7
+ const core_general_master_type = new mongoose_1.Schema({
8
+ sygmt_code: {
9
+ type: String,
10
+ require: true,
11
+ maxlength: 40,
12
+ trim: true
13
+ },
14
+ sygmt_title: {
15
+ type: String,
16
+ require: true,
17
+ minlength: 3,
18
+ maxlength: 100,
19
+ trim: true
20
+ },
21
+ sygmt_desc: {
22
+ type: String,
23
+ minlength: 0,
24
+ maxlength: 255,
25
+ trim: true
26
+ },
27
+ sygmt_isactive: {
28
+ type: Boolean,
29
+ default: true
30
+ },
31
+ }, { collection: 'core_general_master_type' });
32
+ const CCoreSygmt = mongoose_1.default.model("core_general_master_type", core_general_master_type);
33
+ exports.CCoreSygmt = CCoreSygmt;
@@ -1,100 +1,75 @@
1
- import mongoose, { Schema } from "mongoose";
2
-
3
- /* INTERFASE START */
4
- interface ICoreSypc {
5
- _id?: string;
6
- sypc_key: string;
7
- sypc_type?: string;
8
- sypc_placeholder?: string;
9
- sypc_auto_complete?: string;
10
- sypc_page_id_sypg?: string;
11
- sypc_title?: string;
12
- sypc_min_length?: number;
13
- sypc_max_length?: number;
14
- sypc_regex?: string;
15
- sypc_required?: boolean;
16
- sypc_tooltip?: string;
17
- sypc_disabled?: boolean;
18
- sypc_default?: boolean | string | number;
19
- sypc_isactive?: boolean;
20
- }
21
- /* INTERFACE END */
22
-
23
- /* SCHEMA START */
24
- const core_page_controls: Schema = new Schema({
25
- sypc_page_id_sypg: {
26
- type: mongoose.Schema.Types.ObjectId,
27
- ref: "core_system_pages"
28
- },
29
- sypc_title: {
30
- type: String,
31
- minlength: 0,
32
- maxlength: 100,
33
- trim: true
34
- },
35
- sypc_type: {
36
- type: String,
37
- minlength: 0,
38
- maxlength: 20,
39
- trim: true
40
- },
41
- sypc_placeholder: {
42
- type: String,
43
- minlength: 0,
44
- maxlength: 100,
45
- trim: true
46
- },
47
- sypc_auto_complete: {
48
- type: String,
49
- minlength: 0,
50
- maxlength: 100,
51
- trim: true
52
- },
53
- sypc_key: {
54
- type: String,
55
- minlength: 0,
56
- maxlength: 150,
57
- trim: true
58
- },
59
- sypc_min_length: {
60
- type: Number,
61
- maxlength: 20
62
- },
63
- sypc_max_length: {
64
- type: String,
65
- maxlength: 20
66
- },
67
- sypc_regex: {
68
- type: String,
69
- maxlength: 200,
70
- trim: true
71
- },
72
- sypc_required: {
73
- type: Boolean,
74
- default: true
75
- },
76
- sypc_tooltip: {
77
- type: String,
78
- maxlength: 255,
79
- trim: true
80
- },
81
- sypc_default : {
82
-
83
- },
84
- syen_disabled: {
85
- type: Boolean,
86
- default: false
87
- },
88
- sypc_isactive: {
89
- type: Boolean,
90
- default: true
91
- }
92
- }, { collection: 'core_page_controls' });
93
-
94
- const CCoreSypc = mongoose.model<ICoreSypc>("core_page_controls", core_page_controls);
95
- /* SCHIMA END */
96
-
97
- export {
98
- ICoreSypc, // interface
99
- CCoreSypc // collection
100
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CCoreSypc = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ /* INTERFACE END */
6
+ /* SCHEMA START */
7
+ const core_page_controls = new mongoose_1.Schema({
8
+ sypc_page_id_sypg: {
9
+ type: mongoose_1.default.Schema.Types.ObjectId,
10
+ ref: "core_system_pages"
11
+ },
12
+ sypc_title: {
13
+ type: String,
14
+ minlength: 0,
15
+ maxlength: 100,
16
+ trim: true
17
+ },
18
+ sypc_type: {
19
+ type: String,
20
+ minlength: 0,
21
+ maxlength: 20,
22
+ trim: true
23
+ },
24
+ sypc_placeholder: {
25
+ type: String,
26
+ minlength: 0,
27
+ maxlength: 100,
28
+ trim: true
29
+ },
30
+ sypc_auto_complete: {
31
+ type: String,
32
+ minlength: 0,
33
+ maxlength: 100,
34
+ trim: true
35
+ },
36
+ sypc_key: {
37
+ type: String,
38
+ minlength: 0,
39
+ maxlength: 150,
40
+ trim: true
41
+ },
42
+ sypc_min_length: {
43
+ type: Number,
44
+ maxlength: 20
45
+ },
46
+ sypc_max_length: {
47
+ type: String,
48
+ maxlength: 20
49
+ },
50
+ sypc_regex: {
51
+ type: String,
52
+ maxlength: 200,
53
+ trim: true
54
+ },
55
+ sypc_required: {
56
+ type: Boolean,
57
+ default: true
58
+ },
59
+ sypc_tooltip: {
60
+ type: String,
61
+ maxlength: 255,
62
+ trim: true
63
+ },
64
+ sypc_default: {},
65
+ syen_disabled: {
66
+ type: Boolean,
67
+ default: false
68
+ },
69
+ sypc_isactive: {
70
+ type: Boolean,
71
+ default: true
72
+ }
73
+ }, { collection: 'core_page_controls' });
74
+ const CCoreSypc = mongoose_1.default.model("core_page_controls", core_page_controls);
75
+ exports.CCoreSypc = CCoreSypc;
@@ -1,48 +1,36 @@
1
- import mongoose, { Schema } from "mongoose";
2
-
3
- /* INTERFASE START */
4
- interface ICoreSypgr {
5
- _id?: string;
6
- sypgr_grid_code: string;
7
- sypgr_title?: string;
8
- sypgr_isactive?: boolean;
9
- }
10
- /* INTERFACE END */
11
-
12
- /* SCHEMA START */
13
- const core_page_grid: Schema = new Schema({
14
- sypgr_grid_code: {
15
- type: String,
16
- required: true,
17
- minlength: 3,
18
- maxlength: 40,
19
- unique: true,
20
- trim: true
21
- },
22
- sypgr_page_id_sypg: {
23
- type: mongoose.Schema.Types.ObjectId,
24
- ref: "core_system_pages"
25
- },
26
- sypgr_title: {
27
- type: String,
28
- require: true,
29
- minlength: 3,
30
- maxlength: 100,
31
- trim: true
32
- },
33
- sypgr_configuration: {
34
- type: Object
35
- },
36
- sypgr_isactive: {
37
- type: Boolean,
38
- default: true
39
- }
40
- }, { collection: 'core_page_grid' });
41
-
42
- const CCoreSypgr = mongoose.model<ICoreSypgr>("core_page_grid", core_page_grid);
43
- /* SCHIMA END */
44
-
45
- export {
46
- ICoreSypgr, // interface
47
- CCoreSypgr // collection
48
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CCoreSypgr = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ /* INTERFACE END */
6
+ /* SCHEMA START */
7
+ const core_page_grid = new mongoose_1.Schema({
8
+ sypgr_grid_code: {
9
+ type: String,
10
+ required: true,
11
+ minlength: 3,
12
+ maxlength: 40,
13
+ unique: true,
14
+ trim: true
15
+ },
16
+ sypgr_page_id_sypg: {
17
+ type: mongoose_1.default.Schema.Types.ObjectId,
18
+ ref: "core_system_pages"
19
+ },
20
+ sypgr_title: {
21
+ type: String,
22
+ require: true,
23
+ minlength: 3,
24
+ maxlength: 100,
25
+ trim: true
26
+ },
27
+ sypgr_configuration: {
28
+ type: Object
29
+ },
30
+ sypgr_isactive: {
31
+ type: Boolean,
32
+ default: true
33
+ }
34
+ }, { collection: 'core_page_grid' });
35
+ const CCoreSypgr = mongoose_1.default.model("core_page_grid", core_page_grid);
36
+ exports.CCoreSypgr = CCoreSypgr;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CCoreSyptb = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ /* INTERFACE END */
6
+ /* SCHEMA START */
7
+ const core_page_tab = new mongoose_1.Schema({
8
+ syptb_page_id_sypg: {
9
+ type: mongoose_1.default.Schema.Types.ObjectId,
10
+ ref: "core_system_pages"
11
+ },
12
+ syptb_title: {
13
+ type: String,
14
+ minlength: 0,
15
+ maxlength: 100,
16
+ trim: true
17
+ },
18
+ syptb_tabs: {
19
+ type: Array
20
+ },
21
+ syptb_tab_code: {
22
+ type: String,
23
+ minlength: 3,
24
+ maxlength: 40,
25
+ trim: true
26
+ },
27
+ syptb_isactive: {
28
+ type: Boolean,
29
+ default: true
30
+ }
31
+ }, { collection: 'core_page_tab' });
32
+ const CCoreSyptb = mongoose_1.default.model("core_page_tab", core_page_tab);
33
+ exports.CCoreSyptb = CCoreSyptb;
@@ -1,73 +1,51 @@
1
- import mongoose, { Schema } from "mongoose";
2
-
3
- /* INTERFASE START */
4
- interface ICoreSypin {
5
- _id?: string;
6
- sypin_circle_name: string;
7
- sypin_region_name: string;
8
- sypin_division_name: string;
9
- sypin_office_name: string;
10
- sypin_pincode: number;
11
- sypin_office_type: string;
12
- sypin_delivery: string;
13
- sypin_district: string;
14
- sypin_state_name: string;
15
- sypin_latitude: number;
16
- sypin_longitude: number;
17
- }
18
- /* INTERFACE END */
19
-
20
- /* SCHEMA START */
21
- const core_pin_code: Schema = new Schema({
22
- sypin_circle_name: {
23
- type: String,
24
- trim: true
25
- },
26
- sypin_region_name: {
27
- type: String,
28
- trim: true
29
- },
30
- sypin_division_name: {
31
- type: String,
32
- trim: true
33
- },
34
- sypin_office_name: {
35
- type: String,
36
- trim: true
37
- },
38
- sypin_pincode: {
39
-
40
- },
41
- sypin_office_type: {
42
- type: String,
43
- trim: true
44
- },
45
- sypin_delivery: {
46
- type: String,
47
- trim: true
48
- },
49
- sypin_district: {
50
- type: String,
51
- trim: true
52
- },
53
- sypin_state_name: {
54
- type: String,
55
- trim: true
56
- },
57
- sypin_latitude: {
58
- type: Number,
59
- trim: true
60
- },
61
- sypin_longitude: {
62
- type: Number,
63
- trim: true
64
- }
65
- }, { collection: 'core_pin_code' });
66
-
67
- const CCoreSypin = mongoose.model<ICoreSypin>("core_pin_code", core_pin_code);
68
- /* SCHIMA END */
69
-
70
- export {
71
- ICoreSypin, // interface
72
- CCoreSypin // collection
73
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CCoreSypin = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ /* INTERFACE END */
6
+ /* SCHEMA START */
7
+ const core_pin_code = new mongoose_1.Schema({
8
+ sypin_circle_name: {
9
+ type: String,
10
+ trim: true
11
+ },
12
+ sypin_region_name: {
13
+ type: String,
14
+ trim: true
15
+ },
16
+ sypin_division_name: {
17
+ type: String,
18
+ trim: true
19
+ },
20
+ sypin_office_name: {
21
+ type: String,
22
+ trim: true
23
+ },
24
+ sypin_pincode: {},
25
+ sypin_office_type: {
26
+ type: String,
27
+ trim: true
28
+ },
29
+ sypin_delivery: {
30
+ type: String,
31
+ trim: true
32
+ },
33
+ sypin_district: {
34
+ type: String,
35
+ trim: true
36
+ },
37
+ sypin_state_name: {
38
+ type: String,
39
+ trim: true
40
+ },
41
+ sypin_latitude: {
42
+ type: Number,
43
+ trim: true
44
+ },
45
+ sypin_longitude: {
46
+ type: Number,
47
+ trim: true
48
+ }
49
+ }, { collection: 'core_pin_code' });
50
+ const CCoreSypin = mongoose_1.default.model("core_pin_code", core_pin_code);
51
+ exports.CCoreSypin = CCoreSypin;
@@ -1,54 +1,45 @@
1
- import mongoose, { Schema } from "mongoose";
2
-
3
- /* INTERFASE START */
4
- class ICoreSyco {
5
- syco_for!: string;
6
- syco_title!: string;
7
- syco_desc!: string;
8
- syco_configuration!: any;
9
- syco_isactive!: boolean;
10
- }
11
- /* INTERFACE END */
12
-
13
- /* SCHEMA START */
14
- const core_system_config: Schema = new Schema({
15
- syco_for: {
16
- type: String,
17
- required: true,
18
- minlength: 8,
19
- maxlength: 25,
20
- unique: true,
21
- trim: true,
22
- enum: ['email_service', 'reset_password_link', 'route_trace_loggs', 'security_loggs']
23
- },
24
- syco_title: {
25
- type: String,
26
- require: true,
27
- minlength: 8,
28
- maxlength: 50,
29
- trim: true
30
- },
31
- syco_desc: {
32
- type: String,
33
- minlength: 8,
34
- maxlength: 52,
35
- required: true,
36
- trim: true
37
- },
38
- syco_configuration: {
39
- type: Object
40
- },
41
- syco_isactive: {
42
- type: Boolean,
43
- required: true,
44
- default: true
45
- }
46
- }, { collection: 'core_system_config' });
47
-
48
- const CCoreSyco = mongoose.model<ICoreSyco>("core_system_config", core_system_config);
49
- /* SCHIMA END */
50
-
51
- export {
52
- ICoreSyco, // interface
53
- CCoreSyco // collection
54
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CCoreSyco = exports.ICoreSyco = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ /* INTERFASE START */
6
+ class ICoreSyco {
7
+ }
8
+ exports.ICoreSyco = ICoreSyco;
9
+ /* INTERFACE END */
10
+ /* SCHEMA START */
11
+ const core_system_config = new mongoose_1.Schema({
12
+ syco_for: {
13
+ type: String,
14
+ required: true,
15
+ minlength: 8,
16
+ maxlength: 25,
17
+ unique: true,
18
+ trim: true,
19
+ enum: ['email_service', 'reset_password_link', 'route_trace_loggs', 'security_loggs']
20
+ },
21
+ syco_title: {
22
+ type: String,
23
+ require: true,
24
+ minlength: 8,
25
+ maxlength: 50,
26
+ trim: true
27
+ },
28
+ syco_desc: {
29
+ type: String,
30
+ minlength: 8,
31
+ maxlength: 52,
32
+ required: true,
33
+ trim: true
34
+ },
35
+ syco_configuration: {
36
+ type: Object
37
+ },
38
+ syco_isactive: {
39
+ type: Boolean,
40
+ required: true,
41
+ default: true
42
+ }
43
+ }, { collection: 'core_system_config' });
44
+ const CCoreSyco = mongoose_1.default.model("core_system_config", core_system_config);
45
+ exports.CCoreSyco = CCoreSyco;