cloud-ide-lms-model 1.1.5 → 1.1.7
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/lib/model/academics/academics_bonafide_request.d.ts +114 -0
- package/lib/model/academics/academics_bonafide_request.js +78 -0
- package/lib/model/academics/index.d.ts +1 -0
- package/lib/model/academics/index.js +1 -0
- package/lib/model/admission/admission_rte_details.d.ts +85 -0
- package/lib/model/admission/admission_rte_details.js +8 -0
- package/lib/model/admission/admission_vital_information.d.ts +69 -0
- package/lib/model/admission/admission_vital_information.js +8 -0
- package/lib/model/admission/index.d.ts +2 -0
- package/lib/model/admission/index.js +2 -0
- package/lib/model/core/core_workflow_config.d.ts +132 -0
- package/lib/model/core/core_workflow_config.js +92 -0
- package/lib/model/core/core_workflow_engine.d.ts +58 -0
- package/lib/model/core/core_workflow_engine.js +40 -0
- package/lib/model/core/core_workflow_registry.d.ts +113 -0
- package/lib/model/core/core_workflow_registry.js +71 -0
- package/lib/model/core/index.d.ts +3 -0
- package/lib/model/core/index.js +3 -0
- package/lib/model/email/email_list.d.ts +74 -0
- package/lib/model/email/email_list.js +96 -0
- package/lib/model/email/email_log.d.ts +63 -0
- package/lib/model/email/email_log.js +43 -0
- package/lib/model/email/email_reference.d.ts +74 -0
- package/lib/model/email/email_reference.js +81 -0
- package/lib/model/email/email_subscription.d.ts +80 -0
- package/lib/model/email/email_subscription.js +93 -0
- package/lib/model/email/email_template.d.ts +74 -0
- package/lib/model/email/email_template.js +93 -0
- package/lib/model/email/email_vendor.d.ts +73 -0
- package/lib/model/email/email_vendor.js +93 -0
- package/lib/model/email/index.d.ts +6 -0
- package/lib/model/email/index.js +22 -0
- package/lib/model/index.d.ts +1 -0
- package/lib/model/index.js +1 -0
- package/lib/routes/academicsRoutes.d.ts +4 -0
- package/lib/routes/academicsRoutes.js +4 -0
- package/lib/routes/admissionRoutes.d.ts +4 -0
- package/lib/routes/admissionRoutes.js +4 -0
- package/lib/routes/coreRoutes.d.ts +16 -0
- package/lib/routes/coreRoutes.js +16 -0
- package/lib/routes/emailRoutes.d.ts +32 -0
- package/lib/routes/emailRoutes.js +37 -0
- package/lib/routes/index.d.ts +1 -0
- package/lib/routes/index.js +1 -0
- package/lib/schema/academics/academics_bonafide_request.d.ts +18 -0
- package/lib/schema/academics/academics_bonafide_request.js +7 -0
- package/lib/schema/academics/index.d.ts +1 -0
- package/lib/schema/academics/index.js +1 -0
- package/lib/schema/admission/admission_application_main.d.ts +8 -0
- package/lib/schema/admission/admission_family_members.d.ts +1 -0
- package/lib/schema/admission/admission_rte_details.d.ts +33 -0
- package/lib/schema/admission/admission_rte_details.js +15 -0
- package/lib/schema/admission/admission_vital_information.d.ts +21 -0
- package/lib/schema/admission/admission_vital_information.js +15 -0
- package/lib/schema/admission/index.d.ts +2 -0
- package/lib/schema/admission/index.js +2 -0
- package/lib/schema/core/core_workflow_approver_rules.d.ts +18 -0
- package/lib/schema/core/core_workflow_approver_rules.js +7 -0
- package/lib/schema/core/core_workflow_config.d.ts +23 -0
- package/lib/schema/core/core_workflow_config.js +7 -0
- package/lib/schema/core/core_workflow_registry.d.ts +26 -0
- package/lib/schema/core/core_workflow_registry.js +7 -0
- package/lib/schema/core/core_workflow_transaction_history.d.ts +17 -0
- package/lib/schema/core/core_workflow_transaction_history.js +7 -0
- package/lib/schema/core/index.d.ts +4 -0
- package/lib/schema/core/index.js +4 -0
- package/lib/schema/email/email_reference.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MWorkflowHistoryPayload = exports.MWorkflowCanApprovePayload = exports.MWorkflowStatusBatchPayload = exports.MWorkflowStatusPayload = exports.MWorkflowActionPayload = exports.MWorkflowInitializePayload = void 0;
|
|
4
|
+
/* MODEL START */
|
|
5
|
+
class MWorkflowInitializePayload {
|
|
6
|
+
constructor(init) {
|
|
7
|
+
Object.assign(this, init);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.MWorkflowInitializePayload = MWorkflowInitializePayload;
|
|
11
|
+
class MWorkflowActionPayload {
|
|
12
|
+
constructor(init) {
|
|
13
|
+
Object.assign(this, init);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.MWorkflowActionPayload = MWorkflowActionPayload;
|
|
17
|
+
class MWorkflowStatusPayload {
|
|
18
|
+
constructor(init) {
|
|
19
|
+
Object.assign(this, init);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.MWorkflowStatusPayload = MWorkflowStatusPayload;
|
|
23
|
+
class MWorkflowStatusBatchPayload {
|
|
24
|
+
constructor(init) {
|
|
25
|
+
Object.assign(this, init);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.MWorkflowStatusBatchPayload = MWorkflowStatusBatchPayload;
|
|
29
|
+
class MWorkflowCanApprovePayload {
|
|
30
|
+
constructor(init) {
|
|
31
|
+
Object.assign(this, init);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.MWorkflowCanApprovePayload = MWorkflowCanApprovePayload;
|
|
35
|
+
class MWorkflowHistoryPayload {
|
|
36
|
+
constructor(init) {
|
|
37
|
+
Object.assign(this, init);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.MWorkflowHistoryPayload = MWorkflowHistoryPayload;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { MTableQueries } from "../../common-types/common";
|
|
2
|
+
import { ICoreWorkflowRegistry } from "../../schema/core/core_workflow_registry";
|
|
3
|
+
import { controllerResponse } from "../../utilities";
|
|
4
|
+
type IWorkflowRegistryErrorLogger = {
|
|
5
|
+
[key in keyof MWorkflowRegistry]: string;
|
|
6
|
+
};
|
|
7
|
+
type IWorkflowRegistryGetByIdErrorLogger = {
|
|
8
|
+
[key in keyof MWorkflowRegistryGetByIdPayload]: string;
|
|
9
|
+
};
|
|
10
|
+
type IWorkflowRegistryDeleteErrorLogger = {
|
|
11
|
+
[key in keyof MWorkflowRegistryDeletePayload]: string;
|
|
12
|
+
};
|
|
13
|
+
type IWorkflowRegistryInsertUpdateErrorLogger = {
|
|
14
|
+
[key in keyof MWorkflowRegistryInsertUpdatePayload]: string;
|
|
15
|
+
};
|
|
16
|
+
declare class MWorkflowRegistry extends MTableQueries {
|
|
17
|
+
wfrg_id?: string;
|
|
18
|
+
wfrg_workflow_code?: string;
|
|
19
|
+
wfrg_title?: string;
|
|
20
|
+
wfrg_desc?: string;
|
|
21
|
+
wfrg_category_id_sygms?: string;
|
|
22
|
+
wfrg_entity_id_syen?: string;
|
|
23
|
+
wfrg_page_id_sypg?: string;
|
|
24
|
+
wfrg_menu_id_syme?: string;
|
|
25
|
+
wfrg_component_selector?: string;
|
|
26
|
+
wfrg_component_path?: string;
|
|
27
|
+
wfrg_query_params?: any;
|
|
28
|
+
wfrg_view_mode_id_sygms?: string;
|
|
29
|
+
wfrg_trigger_type_id_sygms?: string;
|
|
30
|
+
wfrg_trigger_condition?: any;
|
|
31
|
+
wfrg_auto_initialize?: boolean;
|
|
32
|
+
wfrg_isactive?: boolean;
|
|
33
|
+
wfrg_valid_from_date?: Date;
|
|
34
|
+
wfrg_valid_to_date?: Date;
|
|
35
|
+
wfrg_reinitialize_on_edit?: boolean;
|
|
36
|
+
wfrg_notify_approvers_on_final_status?: boolean;
|
|
37
|
+
wfrg_show_approver_names?: boolean;
|
|
38
|
+
wfrg_mask_approver_info?: boolean;
|
|
39
|
+
query?: string;
|
|
40
|
+
constructor(init: MWorkflowRegistry);
|
|
41
|
+
Validate?(): Partial<IWorkflowRegistryErrorLogger>;
|
|
42
|
+
}
|
|
43
|
+
declare class MWorkflowRegistryGetByIdPayload {
|
|
44
|
+
wfrg_id?: string;
|
|
45
|
+
_id?: string;
|
|
46
|
+
constructor(init: MWorkflowRegistryGetByIdPayload);
|
|
47
|
+
Validate?(): Partial<IWorkflowRegistryGetByIdErrorLogger>;
|
|
48
|
+
}
|
|
49
|
+
declare class MWorkflowRegistryDeletePayload {
|
|
50
|
+
wfrg_id?: string;
|
|
51
|
+
_id?: string;
|
|
52
|
+
constructor(init: MWorkflowRegistryDeletePayload);
|
|
53
|
+
Validate?(): Partial<IWorkflowRegistryDeleteErrorLogger>;
|
|
54
|
+
}
|
|
55
|
+
declare class MWorkflowRegistryInsertUpdatePayload implements ICoreWorkflowRegistry {
|
|
56
|
+
_id?: string;
|
|
57
|
+
wfrg_workflow_code?: string;
|
|
58
|
+
wfrg_title?: string;
|
|
59
|
+
wfrg_desc?: string;
|
|
60
|
+
wfrg_category_id_sygms?: string;
|
|
61
|
+
wfrg_entity_id_syen?: string;
|
|
62
|
+
wfrg_page_id_sypg?: string;
|
|
63
|
+
wfrg_menu_id_syme?: string;
|
|
64
|
+
wfrg_component_selector?: string;
|
|
65
|
+
wfrg_component_path?: string;
|
|
66
|
+
wfrg_query_params?: any;
|
|
67
|
+
wfrg_view_mode_id_sygms?: string;
|
|
68
|
+
wfrg_trigger_type_id_sygms?: string;
|
|
69
|
+
wfrg_trigger_condition?: any;
|
|
70
|
+
wfrg_auto_initialize?: boolean;
|
|
71
|
+
wfrg_isactive?: boolean;
|
|
72
|
+
wfrg_valid_from_date?: Date;
|
|
73
|
+
wfrg_valid_to_date?: Date;
|
|
74
|
+
wfrg_reinitialize_on_edit?: boolean;
|
|
75
|
+
wfrg_notify_approvers_on_final_status?: boolean;
|
|
76
|
+
wfrg_show_approver_names?: boolean;
|
|
77
|
+
wfrg_mask_approver_info?: boolean;
|
|
78
|
+
wfrg_configuration?: any;
|
|
79
|
+
constructor(init: Partial<ICoreWorkflowRegistry> & {
|
|
80
|
+
_id?: string;
|
|
81
|
+
});
|
|
82
|
+
Validate?(): Partial<IWorkflowRegistryInsertUpdateErrorLogger>;
|
|
83
|
+
}
|
|
84
|
+
declare class MWorkflowRegistryByPagePayload {
|
|
85
|
+
wfrg_page_id_sypg?: string;
|
|
86
|
+
wfrg_entity_id_syen?: string;
|
|
87
|
+
constructor(init: MWorkflowRegistryByPagePayload);
|
|
88
|
+
}
|
|
89
|
+
declare class MWorkflowRegistryByMenuPayload {
|
|
90
|
+
wfrg_menu_id_syme?: string;
|
|
91
|
+
wfrg_entity_id_syen?: string;
|
|
92
|
+
constructor(init: MWorkflowRegistryByMenuPayload);
|
|
93
|
+
}
|
|
94
|
+
declare class MWorkflowRegistryByCategoryPayload {
|
|
95
|
+
wfrg_category_id_sygms?: string;
|
|
96
|
+
wfrg_entity_id_syen?: string;
|
|
97
|
+
constructor(init: MWorkflowRegistryByCategoryPayload);
|
|
98
|
+
}
|
|
99
|
+
interface workflowRegistryControllerResponse extends controllerResponse {
|
|
100
|
+
data?: any[] | any | null;
|
|
101
|
+
total?: number;
|
|
102
|
+
totalDocument?: number;
|
|
103
|
+
}
|
|
104
|
+
interface workflowRegistryByIdControllerResponse extends controllerResponse {
|
|
105
|
+
data?: any | null;
|
|
106
|
+
}
|
|
107
|
+
interface workflowRegistryInsertUpdateControllerResponse extends controllerResponse {
|
|
108
|
+
data?: any | null;
|
|
109
|
+
}
|
|
110
|
+
interface workflowRegistryDeleteControllerResponse extends controllerResponse {
|
|
111
|
+
data?: any | null;
|
|
112
|
+
}
|
|
113
|
+
export { MWorkflowRegistry, MWorkflowRegistryGetByIdPayload, MWorkflowRegistryDeletePayload, MWorkflowRegistryInsertUpdatePayload, MWorkflowRegistryByPagePayload, MWorkflowRegistryByMenuPayload, MWorkflowRegistryByCategoryPayload, workflowRegistryControllerResponse, workflowRegistryByIdControllerResponse, workflowRegistryInsertUpdateControllerResponse, workflowRegistryDeleteControllerResponse };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MWorkflowRegistryByCategoryPayload = exports.MWorkflowRegistryByMenuPayload = exports.MWorkflowRegistryByPagePayload = exports.MWorkflowRegistryInsertUpdatePayload = exports.MWorkflowRegistryDeletePayload = exports.MWorkflowRegistryGetByIdPayload = exports.MWorkflowRegistry = void 0;
|
|
4
|
+
const common_1 = require("../../common-types/common");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* MODEL START */
|
|
7
|
+
class MWorkflowRegistry extends common_1.MTableQueries {
|
|
8
|
+
constructor(init) {
|
|
9
|
+
super(init);
|
|
10
|
+
Object.assign(this, init);
|
|
11
|
+
}
|
|
12
|
+
Validate() {
|
|
13
|
+
let errorLogger = {};
|
|
14
|
+
return errorLogger;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.MWorkflowRegistry = MWorkflowRegistry;
|
|
18
|
+
class MWorkflowRegistryGetByIdPayload {
|
|
19
|
+
constructor(init) {
|
|
20
|
+
Object.assign(this, init);
|
|
21
|
+
}
|
|
22
|
+
Validate() {
|
|
23
|
+
let errorLogger = {};
|
|
24
|
+
if (!this.wfrg_id && !this._id) {
|
|
25
|
+
errorLogger.wfrg_id = "Workflow Registry ID is Required!";
|
|
26
|
+
}
|
|
27
|
+
return errorLogger;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.MWorkflowRegistryGetByIdPayload = MWorkflowRegistryGetByIdPayload;
|
|
31
|
+
class MWorkflowRegistryDeletePayload {
|
|
32
|
+
constructor(init) {
|
|
33
|
+
Object.assign(this, init);
|
|
34
|
+
}
|
|
35
|
+
Validate() {
|
|
36
|
+
let errorLogger = {};
|
|
37
|
+
if (!this.wfrg_id && !this._id) {
|
|
38
|
+
errorLogger.wfrg_id = "Workflow Registry ID is Required!";
|
|
39
|
+
}
|
|
40
|
+
return errorLogger;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.MWorkflowRegistryDeletePayload = MWorkflowRegistryDeletePayload;
|
|
44
|
+
class MWorkflowRegistryInsertUpdatePayload {
|
|
45
|
+
constructor(init) {
|
|
46
|
+
Object.assign(this, init);
|
|
47
|
+
}
|
|
48
|
+
Validate() {
|
|
49
|
+
let errorLogger = {};
|
|
50
|
+
return errorLogger;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.MWorkflowRegistryInsertUpdatePayload = MWorkflowRegistryInsertUpdatePayload;
|
|
54
|
+
class MWorkflowRegistryByPagePayload {
|
|
55
|
+
constructor(init) {
|
|
56
|
+
Object.assign(this, init);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.MWorkflowRegistryByPagePayload = MWorkflowRegistryByPagePayload;
|
|
60
|
+
class MWorkflowRegistryByMenuPayload {
|
|
61
|
+
constructor(init) {
|
|
62
|
+
Object.assign(this, init);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.MWorkflowRegistryByMenuPayload = MWorkflowRegistryByMenuPayload;
|
|
66
|
+
class MWorkflowRegistryByCategoryPayload {
|
|
67
|
+
constructor(init) {
|
|
68
|
+
Object.assign(this, init);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.MWorkflowRegistryByCategoryPayload = MWorkflowRegistryByCategoryPayload;
|
|
@@ -22,3 +22,6 @@ export * from "./core_user_role";
|
|
|
22
22
|
export * from './core_entity_access_pass_management';
|
|
23
23
|
export * from './core_system_nationality';
|
|
24
24
|
export * from './dashboard-cards';
|
|
25
|
+
export * from './core_workflow_registry';
|
|
26
|
+
export * from './core_workflow_config';
|
|
27
|
+
export * from './core_workflow_engine';
|
package/lib/model/core/index.js
CHANGED
|
@@ -38,3 +38,6 @@ __exportStar(require("./core_user_role"), exports);
|
|
|
38
38
|
__exportStar(require("./core_entity_access_pass_management"), exports);
|
|
39
39
|
__exportStar(require("./core_system_nationality"), exports);
|
|
40
40
|
__exportStar(require("./dashboard-cards"), exports);
|
|
41
|
+
__exportStar(require("./core_workflow_registry"), exports);
|
|
42
|
+
__exportStar(require("./core_workflow_config"), exports);
|
|
43
|
+
__exportStar(require("./core_workflow_engine"), exports);
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { MTableQueries } from "../../common-types/common";
|
|
2
|
+
import { IEmailList } from "../../schema/email/email_list";
|
|
3
|
+
import { controllerResponse } from "../../utilities";
|
|
4
|
+
type IEmailListErrorLogger = {
|
|
5
|
+
[key in keyof MEmailList]: string;
|
|
6
|
+
};
|
|
7
|
+
type IEmailListGetByIdErrorLogger = {
|
|
8
|
+
[key in keyof MEmailListGetByIdPayload]: string;
|
|
9
|
+
};
|
|
10
|
+
type IEmailListDeleteErrorLogger = {
|
|
11
|
+
[key in keyof MEmailListDeletePayload]: string;
|
|
12
|
+
};
|
|
13
|
+
type IEmailListInsertUpdateErrorLogger = {
|
|
14
|
+
[key in keyof MEmailListInsertUpdatePayload]: string;
|
|
15
|
+
};
|
|
16
|
+
type IEmailListToggleStatusErrorLogger = {
|
|
17
|
+
[key in keyof MEmailListToggleStatusPayload]: string;
|
|
18
|
+
};
|
|
19
|
+
declare class MEmailList extends MTableQueries {
|
|
20
|
+
elst_email?: string;
|
|
21
|
+
elst_id_evdr?: string;
|
|
22
|
+
elst_isactive?: boolean;
|
|
23
|
+
query?: string;
|
|
24
|
+
constructor(init: MEmailList);
|
|
25
|
+
Validate?(): Partial<IEmailListErrorLogger>;
|
|
26
|
+
}
|
|
27
|
+
declare class MEmailListGetByIdPayload {
|
|
28
|
+
elst_id?: string;
|
|
29
|
+
_id?: string;
|
|
30
|
+
constructor(init: MEmailListGetByIdPayload);
|
|
31
|
+
Validate?(): Partial<IEmailListGetByIdErrorLogger>;
|
|
32
|
+
}
|
|
33
|
+
declare class MEmailListDeletePayload {
|
|
34
|
+
elst_id?: string;
|
|
35
|
+
_id?: string;
|
|
36
|
+
constructor(init: MEmailListDeletePayload);
|
|
37
|
+
Validate?(): Partial<IEmailListDeleteErrorLogger>;
|
|
38
|
+
}
|
|
39
|
+
declare class MEmailListToggleStatusPayload {
|
|
40
|
+
elst_id?: string;
|
|
41
|
+
_id?: string;
|
|
42
|
+
elst_isactive?: boolean;
|
|
43
|
+
constructor(init: MEmailListToggleStatusPayload);
|
|
44
|
+
Validate?(): Partial<IEmailListToggleStatusErrorLogger>;
|
|
45
|
+
}
|
|
46
|
+
declare class MEmailListInsertUpdatePayload implements IEmailList {
|
|
47
|
+
_id?: string;
|
|
48
|
+
elst_email: string;
|
|
49
|
+
elst_id_evdr: string;
|
|
50
|
+
elst_sender_reciver_name: string;
|
|
51
|
+
elst_isactive: boolean;
|
|
52
|
+
constructor(init: Partial<IEmailList> & {
|
|
53
|
+
_id?: string;
|
|
54
|
+
});
|
|
55
|
+
Validate?(): Partial<IEmailListInsertUpdateErrorLogger>;
|
|
56
|
+
}
|
|
57
|
+
interface emailListControllerResponse extends controllerResponse {
|
|
58
|
+
data?: any[] | any | null;
|
|
59
|
+
total?: number;
|
|
60
|
+
totalDocument?: number;
|
|
61
|
+
}
|
|
62
|
+
interface emailListByIdControllerResponse extends controllerResponse {
|
|
63
|
+
data?: any | null;
|
|
64
|
+
}
|
|
65
|
+
interface emailListInsertUpdateControllerResponse extends controllerResponse {
|
|
66
|
+
data?: any | null;
|
|
67
|
+
}
|
|
68
|
+
interface emailListDeleteControllerResponse extends controllerResponse {
|
|
69
|
+
data?: any | null;
|
|
70
|
+
}
|
|
71
|
+
interface emailListToggleStatusControllerResponse extends controllerResponse {
|
|
72
|
+
data?: any | null;
|
|
73
|
+
}
|
|
74
|
+
export { MEmailList, MEmailListGetByIdPayload, MEmailListDeletePayload, MEmailListInsertUpdatePayload, MEmailListToggleStatusPayload, emailListControllerResponse, emailListByIdControllerResponse, emailListInsertUpdateControllerResponse, emailListDeleteControllerResponse, emailListToggleStatusControllerResponse };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MEmailListToggleStatusPayload = exports.MEmailListInsertUpdatePayload = exports.MEmailListDeletePayload = exports.MEmailListGetByIdPayload = exports.MEmailList = void 0;
|
|
4
|
+
const common_1 = require("../../common-types/common");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* MODEL START */
|
|
7
|
+
class MEmailList extends common_1.MTableQueries {
|
|
8
|
+
constructor(init) {
|
|
9
|
+
super(init);
|
|
10
|
+
Object.assign(this, init);
|
|
11
|
+
}
|
|
12
|
+
Validate() {
|
|
13
|
+
let errorLogger = {};
|
|
14
|
+
return errorLogger;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.MEmailList = MEmailList;
|
|
18
|
+
class MEmailListGetByIdPayload {
|
|
19
|
+
constructor(init) {
|
|
20
|
+
Object.assign(this, init);
|
|
21
|
+
}
|
|
22
|
+
Validate() {
|
|
23
|
+
let errorLogger = {};
|
|
24
|
+
if (!this.elst_id && !this._id) {
|
|
25
|
+
errorLogger.elst_id = "Email List ID is Required!";
|
|
26
|
+
}
|
|
27
|
+
return errorLogger;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.MEmailListGetByIdPayload = MEmailListGetByIdPayload;
|
|
31
|
+
class MEmailListDeletePayload {
|
|
32
|
+
constructor(init) {
|
|
33
|
+
Object.assign(this, init);
|
|
34
|
+
}
|
|
35
|
+
Validate() {
|
|
36
|
+
let errorLogger = {};
|
|
37
|
+
if (!this.elst_id && !this._id) {
|
|
38
|
+
errorLogger.elst_id = "Email List ID is Required!";
|
|
39
|
+
}
|
|
40
|
+
return errorLogger;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.MEmailListDeletePayload = MEmailListDeletePayload;
|
|
44
|
+
class MEmailListToggleStatusPayload {
|
|
45
|
+
constructor(init) {
|
|
46
|
+
Object.assign(this, init);
|
|
47
|
+
}
|
|
48
|
+
Validate() {
|
|
49
|
+
let errorLogger = {};
|
|
50
|
+
if (!this.elst_id && !this._id) {
|
|
51
|
+
errorLogger.elst_id = "Email List ID is Required!";
|
|
52
|
+
}
|
|
53
|
+
if (this.elst_isactive === undefined) {
|
|
54
|
+
errorLogger.elst_isactive = "Status is Required!";
|
|
55
|
+
}
|
|
56
|
+
return errorLogger;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.MEmailListToggleStatusPayload = MEmailListToggleStatusPayload;
|
|
60
|
+
class MEmailListInsertUpdatePayload {
|
|
61
|
+
constructor(init) {
|
|
62
|
+
Object.assign(this, init);
|
|
63
|
+
}
|
|
64
|
+
Validate() {
|
|
65
|
+
let errorLogger = {};
|
|
66
|
+
if (!this.elst_email) {
|
|
67
|
+
errorLogger.elst_email = "Email Address is required!";
|
|
68
|
+
}
|
|
69
|
+
else if (this.elst_email.length < 8) {
|
|
70
|
+
errorLogger.elst_email = "Email Address must be at least 8 characters!";
|
|
71
|
+
}
|
|
72
|
+
else if (this.elst_email.length > 320) {
|
|
73
|
+
errorLogger.elst_email = "Email Address must not exceed 320 characters!";
|
|
74
|
+
}
|
|
75
|
+
else if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(this.elst_email)) {
|
|
76
|
+
errorLogger.elst_email = "Invalid email format!";
|
|
77
|
+
}
|
|
78
|
+
if (!this.elst_id_evdr) {
|
|
79
|
+
errorLogger.elst_id_evdr = "Email Vendor ID is required!";
|
|
80
|
+
}
|
|
81
|
+
if (!this.elst_sender_reciver_name) {
|
|
82
|
+
errorLogger.elst_sender_reciver_name = "Sender/Receiver Name is required!";
|
|
83
|
+
}
|
|
84
|
+
else if (this.elst_sender_reciver_name.length < 8) {
|
|
85
|
+
errorLogger.elst_sender_reciver_name = "Sender/Receiver Name must be at least 8 characters!";
|
|
86
|
+
}
|
|
87
|
+
else if (this.elst_sender_reciver_name.length > 52) {
|
|
88
|
+
errorLogger.elst_sender_reciver_name = "Sender/Receiver Name must not exceed 52 characters!";
|
|
89
|
+
}
|
|
90
|
+
if (this.elst_isactive === undefined) {
|
|
91
|
+
errorLogger.elst_isactive = "Active status is required!";
|
|
92
|
+
}
|
|
93
|
+
return errorLogger;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.MEmailListInsertUpdatePayload = MEmailListInsertUpdatePayload;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { MTableQueries } from "../../common-types/common";
|
|
2
|
+
import { controllerResponse } from "../../utilities";
|
|
3
|
+
type IEmailLogErrorLogger = {
|
|
4
|
+
[key in keyof MEmailLog]: string;
|
|
5
|
+
};
|
|
6
|
+
type IEmailLogGetByIdErrorLogger = {
|
|
7
|
+
[key in keyof MEmailLogGetByIdPayload]: string;
|
|
8
|
+
};
|
|
9
|
+
type IEmailLogResendErrorLogger = {
|
|
10
|
+
[key in keyof MEmailLogResendPayload]: string;
|
|
11
|
+
};
|
|
12
|
+
declare class MEmailLog extends MTableQueries {
|
|
13
|
+
elog_from_email?: string;
|
|
14
|
+
elog_to_email?: string;
|
|
15
|
+
elog_mail_status?: string;
|
|
16
|
+
elog_id_eref?: string;
|
|
17
|
+
elog_id_etmp?: string;
|
|
18
|
+
query?: string;
|
|
19
|
+
dateFrom?: string;
|
|
20
|
+
dateTo?: string;
|
|
21
|
+
constructor(init: MEmailLog);
|
|
22
|
+
Validate?(): Partial<IEmailLogErrorLogger>;
|
|
23
|
+
}
|
|
24
|
+
declare class MEmailLogGetByIdPayload {
|
|
25
|
+
elog_id?: string;
|
|
26
|
+
_id?: string;
|
|
27
|
+
constructor(init: MEmailLogGetByIdPayload);
|
|
28
|
+
Validate?(): Partial<IEmailLogGetByIdErrorLogger>;
|
|
29
|
+
}
|
|
30
|
+
declare class MEmailLogResendPayload {
|
|
31
|
+
elog_id?: string;
|
|
32
|
+
_id?: string;
|
|
33
|
+
to?: string;
|
|
34
|
+
constructor(init: MEmailLogResendPayload);
|
|
35
|
+
Validate?(): Partial<IEmailLogResendErrorLogger>;
|
|
36
|
+
}
|
|
37
|
+
interface emailLogControllerResponse extends controllerResponse {
|
|
38
|
+
data?: any[] | any | null;
|
|
39
|
+
total?: number;
|
|
40
|
+
totalDocument?: number;
|
|
41
|
+
}
|
|
42
|
+
interface emailLogByIdControllerResponse extends controllerResponse {
|
|
43
|
+
data?: any | null;
|
|
44
|
+
}
|
|
45
|
+
interface emailLogStatisticsControllerResponse extends controllerResponse {
|
|
46
|
+
data?: {
|
|
47
|
+
total?: number;
|
|
48
|
+
sent?: number;
|
|
49
|
+
failed?: number;
|
|
50
|
+
pending?: number;
|
|
51
|
+
delivered?: number;
|
|
52
|
+
bounced?: number;
|
|
53
|
+
byStatus?: Record<string, number>;
|
|
54
|
+
byDate?: Array<{
|
|
55
|
+
date: string;
|
|
56
|
+
count: number;
|
|
57
|
+
}>;
|
|
58
|
+
} | null;
|
|
59
|
+
}
|
|
60
|
+
interface emailLogResendControllerResponse extends controllerResponse {
|
|
61
|
+
data?: any | null;
|
|
62
|
+
}
|
|
63
|
+
export { MEmailLog, MEmailLogGetByIdPayload, MEmailLogResendPayload, emailLogControllerResponse, emailLogByIdControllerResponse, emailLogStatisticsControllerResponse, emailLogResendControllerResponse };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MEmailLogResendPayload = exports.MEmailLogGetByIdPayload = exports.MEmailLog = void 0;
|
|
4
|
+
const common_1 = require("../../common-types/common");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* MODEL START */
|
|
7
|
+
class MEmailLog extends common_1.MTableQueries {
|
|
8
|
+
constructor(init) {
|
|
9
|
+
super(init);
|
|
10
|
+
Object.assign(this, init);
|
|
11
|
+
}
|
|
12
|
+
Validate() {
|
|
13
|
+
let errorLogger = {};
|
|
14
|
+
return errorLogger;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.MEmailLog = MEmailLog;
|
|
18
|
+
class MEmailLogGetByIdPayload {
|
|
19
|
+
constructor(init) {
|
|
20
|
+
Object.assign(this, init);
|
|
21
|
+
}
|
|
22
|
+
Validate() {
|
|
23
|
+
let errorLogger = {};
|
|
24
|
+
if (!this.elog_id && !this._id) {
|
|
25
|
+
errorLogger.elog_id = "Email Log ID is Required!";
|
|
26
|
+
}
|
|
27
|
+
return errorLogger;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.MEmailLogGetByIdPayload = MEmailLogGetByIdPayload;
|
|
31
|
+
class MEmailLogResendPayload {
|
|
32
|
+
constructor(init) {
|
|
33
|
+
Object.assign(this, init);
|
|
34
|
+
}
|
|
35
|
+
Validate() {
|
|
36
|
+
let errorLogger = {};
|
|
37
|
+
if (!this.elog_id && !this._id) {
|
|
38
|
+
errorLogger.elog_id = "Email Log ID is Required!";
|
|
39
|
+
}
|
|
40
|
+
return errorLogger;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.MEmailLogResendPayload = MEmailLogResendPayload;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { MTableQueries } from "../../common-types/common";
|
|
2
|
+
import { IEmailReference } from "../../schema/email/email_reference";
|
|
3
|
+
import { controllerResponse } from "../../utilities";
|
|
4
|
+
type IEmailReferenceErrorLogger = {
|
|
5
|
+
[key in keyof MEmailReference]: string;
|
|
6
|
+
};
|
|
7
|
+
type IEmailReferenceGetByIdErrorLogger = {
|
|
8
|
+
[key in keyof MEmailReferenceGetByIdPayload]: string;
|
|
9
|
+
};
|
|
10
|
+
type IEmailReferenceDeleteErrorLogger = {
|
|
11
|
+
[key in keyof MEmailReferenceDeletePayload]: string;
|
|
12
|
+
};
|
|
13
|
+
type IEmailReferenceInsertUpdateErrorLogger = {
|
|
14
|
+
[key in keyof MEmailReferenceInsertUpdatePayload]: string;
|
|
15
|
+
};
|
|
16
|
+
type IEmailReferenceToggleStatusErrorLogger = {
|
|
17
|
+
[key in keyof MEmailReferenceToggleStatusPayload]: string;
|
|
18
|
+
};
|
|
19
|
+
declare class MEmailReference extends MTableQueries {
|
|
20
|
+
eref_reference?: string;
|
|
21
|
+
eref_isactive?: boolean;
|
|
22
|
+
query?: string;
|
|
23
|
+
constructor(init: MEmailReference);
|
|
24
|
+
Validate?(): Partial<IEmailReferenceErrorLogger>;
|
|
25
|
+
}
|
|
26
|
+
declare class MEmailReferenceGetByIdPayload {
|
|
27
|
+
eref_id?: string;
|
|
28
|
+
_id?: string;
|
|
29
|
+
constructor(init: MEmailReferenceGetByIdPayload);
|
|
30
|
+
Validate?(): Partial<IEmailReferenceGetByIdErrorLogger>;
|
|
31
|
+
}
|
|
32
|
+
declare class MEmailReferenceDeletePayload {
|
|
33
|
+
eref_id?: string;
|
|
34
|
+
_id?: string;
|
|
35
|
+
constructor(init: MEmailReferenceDeletePayload);
|
|
36
|
+
Validate?(): Partial<IEmailReferenceDeleteErrorLogger>;
|
|
37
|
+
}
|
|
38
|
+
declare class MEmailReferenceToggleStatusPayload {
|
|
39
|
+
eref_id?: string;
|
|
40
|
+
_id?: string;
|
|
41
|
+
eref_isactive?: boolean;
|
|
42
|
+
constructor(init: MEmailReferenceToggleStatusPayload);
|
|
43
|
+
Validate?(): Partial<IEmailReferenceToggleStatusErrorLogger>;
|
|
44
|
+
}
|
|
45
|
+
declare class MEmailReferenceInsertUpdatePayload implements IEmailReference {
|
|
46
|
+
_id?: string;
|
|
47
|
+
eref_reference: string;
|
|
48
|
+
eref_sender_id_elst: string;
|
|
49
|
+
eref_receiver_id_elst: string;
|
|
50
|
+
eref_var: string[];
|
|
51
|
+
eref_isactive: boolean;
|
|
52
|
+
constructor(init: Partial<IEmailReference> & {
|
|
53
|
+
_id?: string;
|
|
54
|
+
});
|
|
55
|
+
Validate?(): Partial<IEmailReferenceInsertUpdateErrorLogger>;
|
|
56
|
+
}
|
|
57
|
+
interface emailReferenceControllerResponse extends controllerResponse {
|
|
58
|
+
data?: any[] | any | null;
|
|
59
|
+
total?: number;
|
|
60
|
+
totalDocument?: number;
|
|
61
|
+
}
|
|
62
|
+
interface emailReferenceByIdControllerResponse extends controllerResponse {
|
|
63
|
+
data?: any | null;
|
|
64
|
+
}
|
|
65
|
+
interface emailReferenceInsertUpdateControllerResponse extends controllerResponse {
|
|
66
|
+
data?: any | null;
|
|
67
|
+
}
|
|
68
|
+
interface emailReferenceDeleteControllerResponse extends controllerResponse {
|
|
69
|
+
data?: any | null;
|
|
70
|
+
}
|
|
71
|
+
interface emailReferenceToggleStatusControllerResponse extends controllerResponse {
|
|
72
|
+
data?: any | null;
|
|
73
|
+
}
|
|
74
|
+
export { MEmailReference, MEmailReferenceGetByIdPayload, MEmailReferenceDeletePayload, MEmailReferenceInsertUpdatePayload, MEmailReferenceToggleStatusPayload, emailReferenceControllerResponse, emailReferenceByIdControllerResponse, emailReferenceInsertUpdateControllerResponse, emailReferenceDeleteControllerResponse, emailReferenceToggleStatusControllerResponse };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MEmailReferenceToggleStatusPayload = exports.MEmailReferenceInsertUpdatePayload = exports.MEmailReferenceDeletePayload = exports.MEmailReferenceGetByIdPayload = exports.MEmailReference = void 0;
|
|
4
|
+
const common_1 = require("../../common-types/common");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* MODEL START */
|
|
7
|
+
class MEmailReference extends common_1.MTableQueries {
|
|
8
|
+
constructor(init) {
|
|
9
|
+
super(init);
|
|
10
|
+
Object.assign(this, init);
|
|
11
|
+
}
|
|
12
|
+
Validate() {
|
|
13
|
+
let errorLogger = {};
|
|
14
|
+
return errorLogger;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.MEmailReference = MEmailReference;
|
|
18
|
+
class MEmailReferenceGetByIdPayload {
|
|
19
|
+
constructor(init) {
|
|
20
|
+
Object.assign(this, init);
|
|
21
|
+
}
|
|
22
|
+
Validate() {
|
|
23
|
+
let errorLogger = {};
|
|
24
|
+
if (!this.eref_id && !this._id) {
|
|
25
|
+
errorLogger.eref_id = "Email Reference ID is Required!";
|
|
26
|
+
}
|
|
27
|
+
return errorLogger;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.MEmailReferenceGetByIdPayload = MEmailReferenceGetByIdPayload;
|
|
31
|
+
class MEmailReferenceDeletePayload {
|
|
32
|
+
constructor(init) {
|
|
33
|
+
Object.assign(this, init);
|
|
34
|
+
}
|
|
35
|
+
Validate() {
|
|
36
|
+
let errorLogger = {};
|
|
37
|
+
if (!this.eref_id && !this._id) {
|
|
38
|
+
errorLogger.eref_id = "Email Reference ID is Required!";
|
|
39
|
+
}
|
|
40
|
+
return errorLogger;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.MEmailReferenceDeletePayload = MEmailReferenceDeletePayload;
|
|
44
|
+
class MEmailReferenceToggleStatusPayload {
|
|
45
|
+
constructor(init) {
|
|
46
|
+
Object.assign(this, init);
|
|
47
|
+
}
|
|
48
|
+
Validate() {
|
|
49
|
+
let errorLogger = {};
|
|
50
|
+
if (!this.eref_id && !this._id) {
|
|
51
|
+
errorLogger.eref_id = "Email Reference ID is Required!";
|
|
52
|
+
}
|
|
53
|
+
if (this.eref_isactive === undefined) {
|
|
54
|
+
errorLogger.eref_isactive = "Status is Required!";
|
|
55
|
+
}
|
|
56
|
+
return errorLogger;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.MEmailReferenceToggleStatusPayload = MEmailReferenceToggleStatusPayload;
|
|
60
|
+
class MEmailReferenceInsertUpdatePayload {
|
|
61
|
+
constructor(init) {
|
|
62
|
+
Object.assign(this, init);
|
|
63
|
+
}
|
|
64
|
+
Validate() {
|
|
65
|
+
let errorLogger = {};
|
|
66
|
+
if (!this.eref_reference) {
|
|
67
|
+
errorLogger.eref_reference = "Email Reference is required!";
|
|
68
|
+
}
|
|
69
|
+
if (!this.eref_sender_id_elst) {
|
|
70
|
+
errorLogger.eref_sender_id_elst = "Sender Email List ID is required!";
|
|
71
|
+
}
|
|
72
|
+
if (!this.eref_receiver_id_elst) {
|
|
73
|
+
errorLogger.eref_receiver_id_elst = "Receiver Email List ID is required!";
|
|
74
|
+
}
|
|
75
|
+
if (this.eref_isactive === undefined) {
|
|
76
|
+
errorLogger.eref_isactive = "Active status is required!";
|
|
77
|
+
}
|
|
78
|
+
return errorLogger;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.MEmailReferenceInsertUpdatePayload = MEmailReferenceInsertUpdatePayload;
|