cloud-ide-model-schema 1.0.2 → 1.0.3
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.
- package/config/database.ts +20 -0
- package/config/index.ts +5 -0
- package/index.ts +5 -0
- package/package.json +1 -1
- package/schema/auth/auth_logses.ts +68 -0
- package/schema/auth/{auth_user_mst.js → auth_user_mst.ts} +143 -130
- package/schema/auth/index.ts +13 -0
- package/schema/auth/mpin.ts +60 -0
- package/schema/core/core_entity_mapping.ts +49 -0
- package/schema/core/core_general_master.ts +52 -0
- package/schema/core/core_general_master_type.ts +46 -0
- package/schema/core/core_page_controls.ts +100 -0
- package/schema/core/core_page_grid.ts +48 -0
- package/schema/core/core_page_tab.ts +54 -0
- package/schema/core/core_pin_code.ts +73 -0
- package/schema/core/core_system_config.ts +54 -0
- package/schema/core/{core_system_entity.js → core_system_entity.ts} +216 -200
- package/schema/core/{core_system_logs.js → core_system_logs.ts} +141 -137
- package/schema/core/core_system_menu.ts +74 -0
- package/schema/core/core_system_pages.ts +59 -0
- package/schema/core/core_system_pages_theme.ts +60 -0
- package/schema/core/index.ts +42 -0
- package/schema/email/elist.ts +47 -0
- package/schema/email/elog.ts +68 -0
- package/schema/email/eref.ts +49 -0
- package/schema/email/esub.ts +81 -0
- package/schema/email/etmp.ts +46 -0
- package/schema/email/evdr.ts +46 -0
- package/schema/email/index.ts +21 -0
- package/tsconfig.json +111 -0
- package/config/database.js +0 -57
- package/config/index.js +0 -5
- package/index.js +0 -21
- package/schema/auth/auth_logses.js +0 -73
- package/schema/auth/index.js +0 -10
- package/schema/auth/mpin.js +0 -74
- package/schema/core/core_entity_mapping.js +0 -57
- package/schema/core/core_general_master.js +0 -60
- package/schema/core/core_general_master_type.js +0 -56
- package/schema/core/core_page_controls.js +0 -98
- package/schema/core/core_page_grid.js +0 -59
- package/schema/core/core_page_tab.js +0 -56
- package/schema/core/core_pin_code.js +0 -74
- package/schema/core/core_system_config.js +0 -68
- package/schema/core/core_system_menu.js +0 -83
- package/schema/core/core_system_pages.js +0 -71
- package/schema/core/core_system_pages_theme.js +0 -71
- package/schema/core/index.js +0 -34
- package/schema/email/elist.js +0 -62
- package/schema/email/elog.js +0 -78
- package/schema/email/eref.js +0 -63
- package/schema/email/esub.js +0 -89
- package/schema/email/etmp.js +0 -61
- package/schema/email/evdr.js +0 -61
- package/schema/email/index.js +0 -21
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import mongoose, { Schema } from "mongoose";
|
|
2
|
+
|
|
3
|
+
/* INTERFASE START */
|
|
4
|
+
interface ICoreSyptb {
|
|
5
|
+
_id?: string;
|
|
6
|
+
syptb_title: string;
|
|
7
|
+
syptb_tabs: ITabs[];
|
|
8
|
+
syptb_tab_code: string;
|
|
9
|
+
syptb_page_id_sypg: string;
|
|
10
|
+
syptb_isactive?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ITabs {
|
|
14
|
+
syptb_path: string;
|
|
15
|
+
syptb_label: string;
|
|
16
|
+
syptb_isactive: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* INTERFACE END */
|
|
20
|
+
|
|
21
|
+
/* SCHEMA START */
|
|
22
|
+
const core_page_tab: Schema = new Schema({
|
|
23
|
+
syptb_page_id_sypg: {
|
|
24
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
25
|
+
ref: "core_system_pages"
|
|
26
|
+
},
|
|
27
|
+
syptb_title: {
|
|
28
|
+
type: String,
|
|
29
|
+
minlength: 0,
|
|
30
|
+
maxlength: 100,
|
|
31
|
+
trim: true
|
|
32
|
+
},
|
|
33
|
+
syptb_tabs: {
|
|
34
|
+
type: Array
|
|
35
|
+
},
|
|
36
|
+
syptb_tab_code: {
|
|
37
|
+
type: String,
|
|
38
|
+
minlength: 3,
|
|
39
|
+
maxlength: 40,
|
|
40
|
+
trim: true
|
|
41
|
+
},
|
|
42
|
+
syptb_isactive: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: true
|
|
45
|
+
}
|
|
46
|
+
}, { collection: 'core_page_tab' });
|
|
47
|
+
|
|
48
|
+
const CCoreSyptb = mongoose.model<ICoreSyptb>("core_page_tab", core_page_tab);
|
|
49
|
+
/* SCHIMA END */
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
ICoreSyptb, // interface
|
|
53
|
+
CCoreSyptb // collection
|
|
54
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
};
|