cloud-ide-model-schema 1.0.0
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.js +57 -0
- package/index.js +21 -0
- package/package.json +24 -0
- package/schema/auth/auth_logses.js +73 -0
- package/schema/auth/auth_user_mst.js +130 -0
- package/schema/auth/index.js +10 -0
- package/schema/auth/mpin.js +74 -0
- package/schema/core/core_entity_mapping.js +57 -0
- package/schema/core/core_general_master.js +60 -0
- package/schema/core/core_general_master_type.js +56 -0
- package/schema/core/core_page_controls.js +98 -0
- package/schema/core/core_page_grid.js +59 -0
- package/schema/core/core_page_tab.js +56 -0
- package/schema/core/core_pin_code.js +74 -0
- package/schema/core/core_system_config.js +68 -0
- package/schema/core/core_system_entity.js +200 -0
- package/schema/core/core_system_logs.js +137 -0
- package/schema/core/core_system_menu.js +83 -0
- package/schema/core/core_system_pages.js +71 -0
- package/schema/core/core_system_pages_theme.js +71 -0
- package/schema/core/index.js +34 -0
- package/schema/email/elist.js +62 -0
- package/schema/email/elog.js +78 -0
- package/schema/email/eref.js +63 -0
- package/schema/email/esub.js +89 -0
- package/schema/email/etmp.js +61 -0
- package/schema/email/evdr.js +61 -0
- package/schema/email/index.js +21 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CCoreSypg = exports.ICoreSypg = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFASE START */
|
|
29
|
+
class ICoreSypg {
|
|
30
|
+
}
|
|
31
|
+
exports.ICoreSypg = ICoreSypg;
|
|
32
|
+
/* INTERFACE END */
|
|
33
|
+
/* SCHEMA START */
|
|
34
|
+
const core_system_pages = new mongoose_1.Schema({
|
|
35
|
+
sypg_theme_id_sytm: {
|
|
36
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
37
|
+
required: true
|
|
38
|
+
},
|
|
39
|
+
sypg_page_code: {
|
|
40
|
+
type: String,
|
|
41
|
+
required: true,
|
|
42
|
+
minlength: 8,
|
|
43
|
+
maxlength: 40,
|
|
44
|
+
unique: true,
|
|
45
|
+
trim: true
|
|
46
|
+
},
|
|
47
|
+
sypg_title: {
|
|
48
|
+
type: String,
|
|
49
|
+
require: true,
|
|
50
|
+
minlength: 8,
|
|
51
|
+
maxlength: 100,
|
|
52
|
+
trim: true
|
|
53
|
+
},
|
|
54
|
+
sypg_desc: {
|
|
55
|
+
type: String,
|
|
56
|
+
minlength: 8,
|
|
57
|
+
maxlength: 255,
|
|
58
|
+
required: true,
|
|
59
|
+
trim: true
|
|
60
|
+
},
|
|
61
|
+
sypg_configuration: {
|
|
62
|
+
type: Object
|
|
63
|
+
},
|
|
64
|
+
sypg_isactive: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
required: true,
|
|
67
|
+
default: true
|
|
68
|
+
}
|
|
69
|
+
}, { collection: 'core_system_pages' });
|
|
70
|
+
const CCoreSypg = mongoose_1.default.model("core_system_pages", core_system_pages);
|
|
71
|
+
exports.CCoreSypg = CCoreSypg;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CCoreSytm = exports.ICoreSytm = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFASE START */
|
|
29
|
+
class ICoreSytm {
|
|
30
|
+
}
|
|
31
|
+
exports.ICoreSytm = ICoreSytm;
|
|
32
|
+
/* INTERFACE END */
|
|
33
|
+
/* SCHEMA START */
|
|
34
|
+
const core_system_pages_theme = new mongoose_1.Schema({
|
|
35
|
+
sytm_preview_id_fm: {
|
|
36
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
37
|
+
required: false
|
|
38
|
+
},
|
|
39
|
+
sytm_page_id_sypg: {
|
|
40
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
41
|
+
required: true
|
|
42
|
+
},
|
|
43
|
+
sytm_theme_code: {
|
|
44
|
+
type: String,
|
|
45
|
+
minlength: 8,
|
|
46
|
+
maxlength: 40,
|
|
47
|
+
unique: true,
|
|
48
|
+
trim: true
|
|
49
|
+
},
|
|
50
|
+
sytm_title: {
|
|
51
|
+
type: String,
|
|
52
|
+
minlength: 8,
|
|
53
|
+
maxlength: 100,
|
|
54
|
+
trim: true
|
|
55
|
+
},
|
|
56
|
+
sytm_desc: {
|
|
57
|
+
type: String,
|
|
58
|
+
minlength: 8,
|
|
59
|
+
maxlength: 255,
|
|
60
|
+
trim: true
|
|
61
|
+
},
|
|
62
|
+
sytm_configuration: {
|
|
63
|
+
type: Object
|
|
64
|
+
},
|
|
65
|
+
sytm_isactive: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: true
|
|
68
|
+
}
|
|
69
|
+
}, { collection: 'core_system_pages_theme' });
|
|
70
|
+
const CCoreSytm = mongoose_1.default.model("core_system_pages_theme", core_system_pages_theme);
|
|
71
|
+
exports.CCoreSytm = CCoreSytm;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CCoreSyenm = exports.CCoreSygmt = exports.CCoreSygms = exports.CCoreSypc = exports.CCoreSypgr = exports.CCoreSyptb = exports.CCoreSypin = exports.CCoreSyco = exports.ICoreSyco = exports.CCoreSyen = exports.CCoreSylog = exports.ICoreSylog = exports.CCoreSyme = exports.ICoreSyme = exports.CCoreSytm = exports.ICoreSytm = exports.CCoreSypg = exports.ICoreSypg = void 0;
|
|
4
|
+
const core_system_pages_1 = require("./core_system_pages");
|
|
5
|
+
Object.defineProperty(exports, "ICoreSypg", { enumerable: true, get: function () { return core_system_pages_1.ICoreSypg; } });
|
|
6
|
+
Object.defineProperty(exports, "CCoreSypg", { enumerable: true, get: function () { return core_system_pages_1.CCoreSypg; } });
|
|
7
|
+
const core_system_pages_theme_1 = require("./core_system_pages_theme");
|
|
8
|
+
Object.defineProperty(exports, "ICoreSytm", { enumerable: true, get: function () { return core_system_pages_theme_1.ICoreSytm; } });
|
|
9
|
+
Object.defineProperty(exports, "CCoreSytm", { enumerable: true, get: function () { return core_system_pages_theme_1.CCoreSytm; } });
|
|
10
|
+
const core_system_menu_1 = require("./core_system_menu");
|
|
11
|
+
Object.defineProperty(exports, "ICoreSyme", { enumerable: true, get: function () { return core_system_menu_1.ICoreSyme; } });
|
|
12
|
+
Object.defineProperty(exports, "CCoreSyme", { enumerable: true, get: function () { return core_system_menu_1.CCoreSyme; } });
|
|
13
|
+
const core_system_logs_1 = require("./core_system_logs");
|
|
14
|
+
Object.defineProperty(exports, "ICoreSylog", { enumerable: true, get: function () { return core_system_logs_1.ICoreSylog; } });
|
|
15
|
+
Object.defineProperty(exports, "CCoreSylog", { enumerable: true, get: function () { return core_system_logs_1.CCoreSylog; } });
|
|
16
|
+
const core_system_entity_1 = require("./core_system_entity");
|
|
17
|
+
Object.defineProperty(exports, "CCoreSyen", { enumerable: true, get: function () { return core_system_entity_1.CCoreSyen; } });
|
|
18
|
+
const core_system_config_1 = require("./core_system_config");
|
|
19
|
+
Object.defineProperty(exports, "ICoreSyco", { enumerable: true, get: function () { return core_system_config_1.ICoreSyco; } });
|
|
20
|
+
Object.defineProperty(exports, "CCoreSyco", { enumerable: true, get: function () { return core_system_config_1.CCoreSyco; } });
|
|
21
|
+
const core_pin_code_1 = require("./core_pin_code");
|
|
22
|
+
Object.defineProperty(exports, "CCoreSypin", { enumerable: true, get: function () { return core_pin_code_1.CCoreSypin; } });
|
|
23
|
+
const core_page_tab_1 = require("./core_page_tab");
|
|
24
|
+
Object.defineProperty(exports, "CCoreSyptb", { enumerable: true, get: function () { return core_page_tab_1.CCoreSyptb; } });
|
|
25
|
+
const core_page_grid_1 = require("./core_page_grid");
|
|
26
|
+
Object.defineProperty(exports, "CCoreSypgr", { enumerable: true, get: function () { return core_page_grid_1.CCoreSypgr; } });
|
|
27
|
+
const core_page_controls_1 = require("./core_page_controls");
|
|
28
|
+
Object.defineProperty(exports, "CCoreSypc", { enumerable: true, get: function () { return core_page_controls_1.CCoreSypc; } });
|
|
29
|
+
const core_general_master_1 = require("./core_general_master");
|
|
30
|
+
Object.defineProperty(exports, "CCoreSygms", { enumerable: true, get: function () { return core_general_master_1.CCoreSygms; } });
|
|
31
|
+
const core_general_master_type_1 = require("./core_general_master_type");
|
|
32
|
+
Object.defineProperty(exports, "CCoreSygmt", { enumerable: true, get: function () { return core_general_master_type_1.CCoreSygmt; } });
|
|
33
|
+
const core_entity_mapping_1 = require("./core_entity_mapping");
|
|
34
|
+
Object.defineProperty(exports, "CCoreSyenm", { enumerable: true, get: function () { return core_entity_mapping_1.CCoreSyenm; } });
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CEmailList = exports.IEmailList = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFASE START */
|
|
29
|
+
class IEmailList {
|
|
30
|
+
}
|
|
31
|
+
exports.IEmailList = IEmailList;
|
|
32
|
+
/* INTERFACE END */
|
|
33
|
+
/* SCHEMA START */
|
|
34
|
+
const email_list = new mongoose_1.Schema({
|
|
35
|
+
elst_email: {
|
|
36
|
+
type: String,
|
|
37
|
+
required: true,
|
|
38
|
+
comment: ` maximum of 64 characters (octets) in the "local part" (before the "@") and a maximum of 255 characters (octets) in the domain part (after the "@") for a total length of 320 characters`,
|
|
39
|
+
maxlength: 320,
|
|
40
|
+
minlength: 8,
|
|
41
|
+
trim: true
|
|
42
|
+
},
|
|
43
|
+
elst_id_evdr: {
|
|
44
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
45
|
+
required: true,
|
|
46
|
+
ref: "email_vendor"
|
|
47
|
+
},
|
|
48
|
+
elst_sender_reciver_name: {
|
|
49
|
+
type: String,
|
|
50
|
+
minlength: 8,
|
|
51
|
+
maxlength: 52,
|
|
52
|
+
required: true,
|
|
53
|
+
trim: true
|
|
54
|
+
},
|
|
55
|
+
elst_isactive: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
required: true,
|
|
58
|
+
default: true
|
|
59
|
+
}
|
|
60
|
+
}, { collection: 'email_list' });
|
|
61
|
+
const CEmailList = mongoose_1.default.model("email_list", email_list);
|
|
62
|
+
exports.CEmailList = CEmailList;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CEmailLog = exports.IEmailLog = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFASE START */
|
|
29
|
+
class IEmailLog {
|
|
30
|
+
}
|
|
31
|
+
exports.IEmailLog = IEmailLog;
|
|
32
|
+
/* INTERFACE END */
|
|
33
|
+
/* SCHEMA START */
|
|
34
|
+
const email_log = new mongoose_1.Schema({
|
|
35
|
+
elog_from_email: {
|
|
36
|
+
type: String,
|
|
37
|
+
comment: ` maximum of 64 characters (octets) in the "local part" (before the "@") and a maximum of 255 characters (octets) in the domain part (after the "@") for a total length of 320 characters`,
|
|
38
|
+
trim: true
|
|
39
|
+
},
|
|
40
|
+
elog_to_email: {
|
|
41
|
+
type: String,
|
|
42
|
+
comment: ` maximum of 64 characters (octets) in the "local part" (before the "@") and a maximum of 255 characters (octets) in the domain part (after the "@") for a total length of 320 characters`,
|
|
43
|
+
trim: true
|
|
44
|
+
},
|
|
45
|
+
elog_id_eref: {
|
|
46
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
47
|
+
ref: "email_reference"
|
|
48
|
+
},
|
|
49
|
+
elog_subject: {
|
|
50
|
+
type: String,
|
|
51
|
+
required: false,
|
|
52
|
+
trim: true
|
|
53
|
+
},
|
|
54
|
+
elog_body: {
|
|
55
|
+
type: String,
|
|
56
|
+
required: false
|
|
57
|
+
},
|
|
58
|
+
elog_id_etmp: {
|
|
59
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
60
|
+
ref: "email_templete"
|
|
61
|
+
},
|
|
62
|
+
elog_mail_status: {
|
|
63
|
+
type: String,
|
|
64
|
+
trim: true,
|
|
65
|
+
default: 'created',
|
|
66
|
+
enum: ['created', 'sent', 'not_sent']
|
|
67
|
+
},
|
|
68
|
+
elog_timestamp: {
|
|
69
|
+
type: Date,
|
|
70
|
+
default: new Date()
|
|
71
|
+
},
|
|
72
|
+
elog_isactive: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: true
|
|
75
|
+
}
|
|
76
|
+
}, { collection: 'email_log' });
|
|
77
|
+
const CEmailLog = mongoose_1.default.model("email_log", email_log);
|
|
78
|
+
exports.CEmailLog = CEmailLog;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CEmailReference = exports.IEmailReference = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFASE START */
|
|
29
|
+
class IEmailReference {
|
|
30
|
+
}
|
|
31
|
+
exports.IEmailReference = IEmailReference;
|
|
32
|
+
/* INTERFACE END */
|
|
33
|
+
/* SCHEMA START */
|
|
34
|
+
const email_reference = new mongoose_1.Schema({
|
|
35
|
+
eref_reference: {
|
|
36
|
+
type: String,
|
|
37
|
+
required: true,
|
|
38
|
+
unique: true
|
|
39
|
+
},
|
|
40
|
+
eref_sender_id_elst: {
|
|
41
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
42
|
+
require: true,
|
|
43
|
+
ref: "email_vendor"
|
|
44
|
+
},
|
|
45
|
+
eref_receiver_id_elst: {
|
|
46
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
47
|
+
require: true,
|
|
48
|
+
ref: "email_vendor"
|
|
49
|
+
},
|
|
50
|
+
eref_var: {
|
|
51
|
+
type: Array,
|
|
52
|
+
required: true,
|
|
53
|
+
trim: true,
|
|
54
|
+
default: []
|
|
55
|
+
},
|
|
56
|
+
eref_isactive: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
required: true,
|
|
59
|
+
default: true
|
|
60
|
+
}
|
|
61
|
+
}, { collection: 'email_reference' });
|
|
62
|
+
const CEmailReference = mongoose_1.default.model("email_reference", email_reference);
|
|
63
|
+
exports.CEmailReference = CEmailReference;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CEmailVendorSubscription = exports.IEmailVendorSubscription = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFASE START */
|
|
29
|
+
class IEmailVendorSubscription {
|
|
30
|
+
}
|
|
31
|
+
exports.IEmailVendorSubscription = IEmailVendorSubscription;
|
|
32
|
+
/* INTERFACE END */
|
|
33
|
+
/* SCHEMA START */
|
|
34
|
+
const email_subscription_vendor = new mongoose_1.Schema({
|
|
35
|
+
esub_id_evdr: {
|
|
36
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
37
|
+
required: true,
|
|
38
|
+
ref: "email_vendor"
|
|
39
|
+
},
|
|
40
|
+
esub_start_dtm: {
|
|
41
|
+
type: Date,
|
|
42
|
+
required: true,
|
|
43
|
+
default: new Date()
|
|
44
|
+
},
|
|
45
|
+
esub_end_dtm: {
|
|
46
|
+
type: Date,
|
|
47
|
+
required: true,
|
|
48
|
+
default: new Date()
|
|
49
|
+
},
|
|
50
|
+
esub_timestamp: {
|
|
51
|
+
type: Date,
|
|
52
|
+
required: true,
|
|
53
|
+
default: new Date()
|
|
54
|
+
},
|
|
55
|
+
esub_limit: {
|
|
56
|
+
type: Number,
|
|
57
|
+
required: true,
|
|
58
|
+
minvalue: 0,
|
|
59
|
+
default: 0
|
|
60
|
+
},
|
|
61
|
+
esub_alert_on_limit: {
|
|
62
|
+
type: Number,
|
|
63
|
+
required: true,
|
|
64
|
+
minvalue: 10,
|
|
65
|
+
default: 10,
|
|
66
|
+
},
|
|
67
|
+
esub_alert_to_id_user: {
|
|
68
|
+
type: Array,
|
|
69
|
+
default: []
|
|
70
|
+
},
|
|
71
|
+
esub_used_limit: {
|
|
72
|
+
type: Number,
|
|
73
|
+
minvalue: 0,
|
|
74
|
+
default: 0,
|
|
75
|
+
},
|
|
76
|
+
esub_status: {
|
|
77
|
+
type: String,
|
|
78
|
+
required: true,
|
|
79
|
+
enum: ['active', 'inactive', 'discontinued', 'hold'],
|
|
80
|
+
default: 'active'
|
|
81
|
+
},
|
|
82
|
+
esub_isactive: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
required: true,
|
|
85
|
+
default: true
|
|
86
|
+
}
|
|
87
|
+
}, { collection: 'email_subscription_vendor' });
|
|
88
|
+
const CEmailVendorSubscription = mongoose_1.default.model("email_subscription_vendor", email_subscription_vendor);
|
|
89
|
+
exports.CEmailVendorSubscription = CEmailVendorSubscription;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CEmailTemplete = exports.IEmailTemplete = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFASE START */
|
|
29
|
+
class IEmailTemplete {
|
|
30
|
+
}
|
|
31
|
+
exports.IEmailTemplete = IEmailTemplete;
|
|
32
|
+
/* INTERFACE END */
|
|
33
|
+
/* SCHEMA START */
|
|
34
|
+
const email_templete = new mongoose_1.Schema({
|
|
35
|
+
etmp_id_eref: {
|
|
36
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
37
|
+
required: true,
|
|
38
|
+
ref: "email_reference",
|
|
39
|
+
unique: true
|
|
40
|
+
},
|
|
41
|
+
etmp_subject: {
|
|
42
|
+
type: String,
|
|
43
|
+
minlength: 9,
|
|
44
|
+
maxlength: 60,
|
|
45
|
+
required: true,
|
|
46
|
+
trim: true,
|
|
47
|
+
},
|
|
48
|
+
etmp_body: {
|
|
49
|
+
type: String,
|
|
50
|
+
minlength: 25,
|
|
51
|
+
maxlength: 384000,
|
|
52
|
+
required: true
|
|
53
|
+
},
|
|
54
|
+
etmp_isactive: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
required: true,
|
|
57
|
+
default: true
|
|
58
|
+
}
|
|
59
|
+
}, { collection: 'email_templete' });
|
|
60
|
+
const CEmailTemplete = mongoose_1.default.model("email_templete", email_templete);
|
|
61
|
+
exports.CEmailTemplete = CEmailTemplete;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CEmailVendor = exports.IEmailVendor = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFASE START */
|
|
29
|
+
class IEmailVendor {
|
|
30
|
+
}
|
|
31
|
+
exports.IEmailVendor = IEmailVendor;
|
|
32
|
+
/* INTERFACE END */
|
|
33
|
+
/* SCHEMA START */
|
|
34
|
+
const email_vendor = new mongoose_1.Schema({
|
|
35
|
+
evdr_name: {
|
|
36
|
+
type: String,
|
|
37
|
+
required: true,
|
|
38
|
+
trim: true,
|
|
39
|
+
minlength: 8,
|
|
40
|
+
maxlength: 52,
|
|
41
|
+
},
|
|
42
|
+
evdr_desc: {
|
|
43
|
+
type: String,
|
|
44
|
+
require: true,
|
|
45
|
+
trim: true,
|
|
46
|
+
maxlength: 255,
|
|
47
|
+
},
|
|
48
|
+
evdr_api_end_point: {
|
|
49
|
+
type: String,
|
|
50
|
+
trim: true,
|
|
51
|
+
required: true,
|
|
52
|
+
maxlength: 255
|
|
53
|
+
},
|
|
54
|
+
evdr_isactive: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
required: true,
|
|
57
|
+
default: true
|
|
58
|
+
}
|
|
59
|
+
}, { collection: 'email_vendor' });
|
|
60
|
+
const CEmailVendor = mongoose_1.default.model("email_vendor", email_vendor);
|
|
61
|
+
exports.CEmailVendor = CEmailVendor;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CEmailVendor = exports.IEmailVendor = exports.CEmailTemplete = exports.IEmailTemplete = exports.CEmailVendorSubscription = exports.IEmailVendorSubscription = exports.CEmailReference = exports.IEmailReference = exports.CEmailLog = exports.IEmailLog = exports.CEmailList = exports.IEmailList = void 0;
|
|
4
|
+
const elist_1 = require("./elist");
|
|
5
|
+
Object.defineProperty(exports, "IEmailList", { enumerable: true, get: function () { return elist_1.IEmailList; } });
|
|
6
|
+
Object.defineProperty(exports, "CEmailList", { enumerable: true, get: function () { return elist_1.CEmailList; } });
|
|
7
|
+
const elog_1 = require("./elog");
|
|
8
|
+
Object.defineProperty(exports, "IEmailLog", { enumerable: true, get: function () { return elog_1.IEmailLog; } });
|
|
9
|
+
Object.defineProperty(exports, "CEmailLog", { enumerable: true, get: function () { return elog_1.CEmailLog; } });
|
|
10
|
+
const eref_1 = require("./eref");
|
|
11
|
+
Object.defineProperty(exports, "IEmailReference", { enumerable: true, get: function () { return eref_1.IEmailReference; } });
|
|
12
|
+
Object.defineProperty(exports, "CEmailReference", { enumerable: true, get: function () { return eref_1.CEmailReference; } });
|
|
13
|
+
const esub_1 = require("./esub");
|
|
14
|
+
Object.defineProperty(exports, "IEmailVendorSubscription", { enumerable: true, get: function () { return esub_1.IEmailVendorSubscription; } });
|
|
15
|
+
Object.defineProperty(exports, "CEmailVendorSubscription", { enumerable: true, get: function () { return esub_1.CEmailVendorSubscription; } });
|
|
16
|
+
const etmp_1 = require("./etmp");
|
|
17
|
+
Object.defineProperty(exports, "IEmailTemplete", { enumerable: true, get: function () { return etmp_1.IEmailTemplete; } });
|
|
18
|
+
Object.defineProperty(exports, "CEmailTemplete", { enumerable: true, get: function () { return etmp_1.CEmailTemplete; } });
|
|
19
|
+
const evdr_1 = require("./evdr");
|
|
20
|
+
Object.defineProperty(exports, "IEmailVendor", { enumerable: true, get: function () { return evdr_1.IEmailVendor; } });
|
|
21
|
+
Object.defineProperty(exports, "CEmailVendor", { enumerable: true, get: function () { return evdr_1.CEmailVendor; } });
|