cloud-ide-lms-model 1.1.6 → 1.1.8
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 +116 -0
- package/lib/model/academics/academics_bonafide_request.js +84 -0
- package/lib/model/academics/index.d.ts +1 -0
- package/lib/model/academics/index.js +1 -0
- package/lib/model/core/core_workflow_config.d.ts +133 -0
- package/lib/model/core/core_workflow_config.js +95 -0
- package/lib/model/core/core_workflow_engine.d.ts +75 -0
- package/lib/model/core/core_workflow_engine.js +58 -0
- package/lib/model/core/core_workflow_registry.d.ts +116 -0
- package/lib/model/core/core_workflow_registry.js +80 -0
- package/lib/model/core/index.d.ts +3 -0
- package/lib/model/core/index.js +3 -0
- package/lib/routes/academicsRoutes.d.ts +4 -0
- package/lib/routes/academicsRoutes.js +4 -0
- package/lib/routes/coreRoutes.d.ts +16 -0
- package/lib/routes/coreRoutes.js +16 -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/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/package.json +1 -1
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { MTableQueries, MRequestMiddelware } from "../../common-types/common";
|
|
2
|
+
import { IAcademicsBonafideRequest } from "../../schema/academics/academics_bonafide_request";
|
|
3
|
+
import { controllerResponse } from "../../utilities";
|
|
4
|
+
type IBonafideRequestErrorLogger = {
|
|
5
|
+
[key in keyof MBonafideRequest]: string;
|
|
6
|
+
};
|
|
7
|
+
type IBonafideRequestGetByIdErrorLogger = {
|
|
8
|
+
[key in keyof MBonafideRequestGetByIdPayload]: string;
|
|
9
|
+
};
|
|
10
|
+
type IBonafideRequestInsertUpdateErrorLogger = {
|
|
11
|
+
[key in keyof MBonafideRequestInsertUpdatePayload]: string;
|
|
12
|
+
};
|
|
13
|
+
type IBonafideRequestApproveErrorLogger = {
|
|
14
|
+
[key in keyof MBonafideRequestApprovePayload]: string;
|
|
15
|
+
};
|
|
16
|
+
type IBonafideRequestRejectErrorLogger = {
|
|
17
|
+
[key in keyof MBonafideRequestRejectPayload]: string;
|
|
18
|
+
};
|
|
19
|
+
declare class MBonafideRequest extends MTableQueries {
|
|
20
|
+
abnr_id?: string;
|
|
21
|
+
abnr_request_number?: string;
|
|
22
|
+
abnr_student_id?: string;
|
|
23
|
+
abnr_student_id_auth?: string;
|
|
24
|
+
abnr_purpose?: string;
|
|
25
|
+
abnr_status_id_sygms?: string;
|
|
26
|
+
abnr_entity_id_syen?: string;
|
|
27
|
+
query?: string;
|
|
28
|
+
constructor(init: MBonafideRequest);
|
|
29
|
+
Validate?(): Partial<IBonafideRequestErrorLogger>;
|
|
30
|
+
}
|
|
31
|
+
declare class MBonafideRequestGetByIdPayload implements MRequestMiddelware {
|
|
32
|
+
abnr_id?: string;
|
|
33
|
+
_id?: string;
|
|
34
|
+
constructor(init: MBonafideRequestGetByIdPayload);
|
|
35
|
+
Validate?(): Partial<IBonafideRequestGetByIdErrorLogger>;
|
|
36
|
+
}
|
|
37
|
+
declare class MBonafideRequestInsertUpdatePayload implements IAcademicsBonafideRequest, MRequestMiddelware {
|
|
38
|
+
_id?: string;
|
|
39
|
+
abnr_request_number?: string;
|
|
40
|
+
abnr_student_id?: string;
|
|
41
|
+
abnr_student_id_auth?: string;
|
|
42
|
+
abnr_purpose?: string;
|
|
43
|
+
abnr_request_date?: Date;
|
|
44
|
+
abnr_status_id_sygms?: string;
|
|
45
|
+
abnr_current_step?: number;
|
|
46
|
+
abnr_workflow_id_wfrg?: string;
|
|
47
|
+
abnr_requested_by_user?: string;
|
|
48
|
+
abnr_soft_copy_id_cyfm?: string;
|
|
49
|
+
abnr_stamped_copy_id_cyfm?: string;
|
|
50
|
+
abnr_completed_date?: Date;
|
|
51
|
+
abnr_entity_id_syen?: string;
|
|
52
|
+
abnr_isactive?: boolean;
|
|
53
|
+
constructor(init: Partial<IAcademicsBonafideRequest> & {
|
|
54
|
+
_id?: string;
|
|
55
|
+
});
|
|
56
|
+
Validate?(): Partial<IBonafideRequestInsertUpdateErrorLogger>;
|
|
57
|
+
}
|
|
58
|
+
declare class MBonafideRequestApprovePayload implements MRequestMiddelware {
|
|
59
|
+
abnr_id?: string;
|
|
60
|
+
requestId?: string;
|
|
61
|
+
comments?: string;
|
|
62
|
+
actionBy?: string;
|
|
63
|
+
approvedByUser?: string;
|
|
64
|
+
constructor(init: MBonafideRequestApprovePayload);
|
|
65
|
+
Validate?(): Partial<IBonafideRequestApproveErrorLogger>;
|
|
66
|
+
}
|
|
67
|
+
declare class MBonafideRequestRejectPayload implements MRequestMiddelware {
|
|
68
|
+
abnr_id?: string;
|
|
69
|
+
requestId?: string;
|
|
70
|
+
comments?: string;
|
|
71
|
+
reason?: string;
|
|
72
|
+
actionBy?: string;
|
|
73
|
+
rejectedByUser?: string;
|
|
74
|
+
constructor(init: MBonafideRequestRejectPayload);
|
|
75
|
+
Validate?(): Partial<IBonafideRequestRejectErrorLogger>;
|
|
76
|
+
}
|
|
77
|
+
declare class MBonafideRequestGenerateCertificatePayload implements MRequestMiddelware {
|
|
78
|
+
abnr_id?: string;
|
|
79
|
+
requestId?: string;
|
|
80
|
+
generatedByUser?: string;
|
|
81
|
+
constructor(init: MBonafideRequestGenerateCertificatePayload);
|
|
82
|
+
Validate?(): any;
|
|
83
|
+
}
|
|
84
|
+
declare class MBonafideRequestUploadStampedCopyPayload implements MRequestMiddelware {
|
|
85
|
+
abnr_id?: string;
|
|
86
|
+
requestId?: string;
|
|
87
|
+
stampedCopyFileId?: string;
|
|
88
|
+
stampedCopyUrl?: string;
|
|
89
|
+
uploadedBy?: string;
|
|
90
|
+
constructor(init: MBonafideRequestUploadStampedCopyPayload);
|
|
91
|
+
Validate?(): any;
|
|
92
|
+
}
|
|
93
|
+
interface bonafideRequestControllerResponse extends controllerResponse {
|
|
94
|
+
data?: any[] | any | null;
|
|
95
|
+
total?: number;
|
|
96
|
+
totalDocument?: number;
|
|
97
|
+
}
|
|
98
|
+
interface bonafideRequestByIdControllerResponse extends controllerResponse {
|
|
99
|
+
data?: any | null;
|
|
100
|
+
}
|
|
101
|
+
interface bonafideRequestInsertUpdateControllerResponse extends controllerResponse {
|
|
102
|
+
data?: any | null;
|
|
103
|
+
}
|
|
104
|
+
interface bonafideRequestApproveControllerResponse extends controllerResponse {
|
|
105
|
+
data?: any | null;
|
|
106
|
+
}
|
|
107
|
+
interface bonafideRequestRejectControllerResponse extends controllerResponse {
|
|
108
|
+
data?: any | null;
|
|
109
|
+
}
|
|
110
|
+
interface bonafideRequestGenerateCertificateControllerResponse extends controllerResponse {
|
|
111
|
+
data?: any | null;
|
|
112
|
+
}
|
|
113
|
+
interface bonafideRequestUploadStampedCopyControllerResponse extends controllerResponse {
|
|
114
|
+
data?: any | null;
|
|
115
|
+
}
|
|
116
|
+
export { MBonafideRequest, MBonafideRequestGetByIdPayload, MBonafideRequestInsertUpdatePayload, MBonafideRequestApprovePayload, MBonafideRequestRejectPayload, MBonafideRequestGenerateCertificatePayload, MBonafideRequestUploadStampedCopyPayload, bonafideRequestControllerResponse, bonafideRequestByIdControllerResponse, bonafideRequestInsertUpdateControllerResponse, bonafideRequestApproveControllerResponse, bonafideRequestRejectControllerResponse, bonafideRequestGenerateCertificateControllerResponse, bonafideRequestUploadStampedCopyControllerResponse };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MBonafideRequestUploadStampedCopyPayload = exports.MBonafideRequestGenerateCertificatePayload = exports.MBonafideRequestRejectPayload = exports.MBonafideRequestApprovePayload = exports.MBonafideRequestInsertUpdatePayload = exports.MBonafideRequestGetByIdPayload = exports.MBonafideRequest = void 0;
|
|
4
|
+
const common_1 = require("../../common-types/common");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* MODEL START */
|
|
7
|
+
class MBonafideRequest 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.MBonafideRequest = MBonafideRequest;
|
|
18
|
+
class MBonafideRequestGetByIdPayload {
|
|
19
|
+
constructor(init) {
|
|
20
|
+
Object.assign(this, init);
|
|
21
|
+
}
|
|
22
|
+
Validate() {
|
|
23
|
+
let errorLogger = {};
|
|
24
|
+
if (!this.abnr_id && !this._id) {
|
|
25
|
+
errorLogger.abnr_id = "Bonafide Request ID is Required!";
|
|
26
|
+
}
|
|
27
|
+
return errorLogger;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.MBonafideRequestGetByIdPayload = MBonafideRequestGetByIdPayload;
|
|
31
|
+
class MBonafideRequestInsertUpdatePayload {
|
|
32
|
+
constructor(init) {
|
|
33
|
+
Object.assign(this, init);
|
|
34
|
+
}
|
|
35
|
+
Validate() {
|
|
36
|
+
let errorLogger = {};
|
|
37
|
+
return errorLogger;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.MBonafideRequestInsertUpdatePayload = MBonafideRequestInsertUpdatePayload;
|
|
41
|
+
class MBonafideRequestApprovePayload {
|
|
42
|
+
constructor(init) {
|
|
43
|
+
Object.assign(this, init);
|
|
44
|
+
}
|
|
45
|
+
Validate() {
|
|
46
|
+
let errorLogger = {};
|
|
47
|
+
if (!this.abnr_id && !this.requestId) {
|
|
48
|
+
errorLogger.abnr_id = "Bonafide Request ID is Required!";
|
|
49
|
+
}
|
|
50
|
+
return errorLogger;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.MBonafideRequestApprovePayload = MBonafideRequestApprovePayload;
|
|
54
|
+
class MBonafideRequestRejectPayload {
|
|
55
|
+
constructor(init) {
|
|
56
|
+
Object.assign(this, init);
|
|
57
|
+
}
|
|
58
|
+
Validate() {
|
|
59
|
+
let errorLogger = {};
|
|
60
|
+
if (!this.abnr_id && !this.requestId) {
|
|
61
|
+
errorLogger.abnr_id = "Bonafide Request ID is Required!";
|
|
62
|
+
}
|
|
63
|
+
return errorLogger;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.MBonafideRequestRejectPayload = MBonafideRequestRejectPayload;
|
|
67
|
+
class MBonafideRequestGenerateCertificatePayload {
|
|
68
|
+
constructor(init) {
|
|
69
|
+
Object.assign(this, init);
|
|
70
|
+
}
|
|
71
|
+
Validate() {
|
|
72
|
+
return {};
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.MBonafideRequestGenerateCertificatePayload = MBonafideRequestGenerateCertificatePayload;
|
|
76
|
+
class MBonafideRequestUploadStampedCopyPayload {
|
|
77
|
+
constructor(init) {
|
|
78
|
+
Object.assign(this, init);
|
|
79
|
+
}
|
|
80
|
+
Validate() {
|
|
81
|
+
return {};
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.MBonafideRequestUploadStampedCopyPayload = MBonafideRequestUploadStampedCopyPayload;
|
|
@@ -20,3 +20,4 @@ __exportStar(require("./aca_class_program_master"), exports);
|
|
|
20
20
|
__exportStar(require("./aca_class_program_term"), exports);
|
|
21
21
|
__exportStar(require("./aca_prg_trm_section"), exports);
|
|
22
22
|
__exportStar(require("./aca_class_prg_branch"), exports);
|
|
23
|
+
__exportStar(require("./academics_bonafide_request"), exports);
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { MTableQueries, MRequestMiddelware } from "../../common-types/common";
|
|
2
|
+
import { ICoreWorkflowConfig, ICoreWorkflowApproverRules } from "../../schema";
|
|
3
|
+
import { controllerResponse } from "../../utilities";
|
|
4
|
+
type IWorkflowConfigErrorLogger = {
|
|
5
|
+
[key in keyof MWorkflowConfig]: string;
|
|
6
|
+
};
|
|
7
|
+
type IWorkflowConfigGetByIdErrorLogger = {
|
|
8
|
+
[key in keyof MWorkflowConfigGetByIdPayload]: string;
|
|
9
|
+
};
|
|
10
|
+
type IWorkflowConfigInsertUpdateErrorLogger = {
|
|
11
|
+
[key in keyof MWorkflowConfigInsertUpdatePayload]: string;
|
|
12
|
+
};
|
|
13
|
+
type IWorkflowStepInsertUpdateErrorLogger = {
|
|
14
|
+
[key in keyof MWorkflowStepInsertUpdatePayload]: string;
|
|
15
|
+
};
|
|
16
|
+
type IWorkflowStepDeleteErrorLogger = {
|
|
17
|
+
[key in keyof MWorkflowStepDeletePayload]: string;
|
|
18
|
+
};
|
|
19
|
+
type IWorkflowApproverRuleInsertUpdateErrorLogger = {
|
|
20
|
+
[key in keyof MWorkflowApproverRuleInsertUpdatePayload]: string;
|
|
21
|
+
};
|
|
22
|
+
type IWorkflowApproverRuleDeleteErrorLogger = {
|
|
23
|
+
[key in keyof MWorkflowApproverRuleDeletePayload]: string;
|
|
24
|
+
};
|
|
25
|
+
declare class MWorkflowConfig extends MTableQueries {
|
|
26
|
+
wfcfg_id?: string;
|
|
27
|
+
wfcfg_workflow_id_wfrg?: string;
|
|
28
|
+
query?: string;
|
|
29
|
+
constructor(init: MWorkflowConfig);
|
|
30
|
+
Validate?(): Partial<IWorkflowConfigErrorLogger>;
|
|
31
|
+
}
|
|
32
|
+
declare class MWorkflowConfigGetByIdPayload implements MRequestMiddelware {
|
|
33
|
+
wfcfg_id?: string;
|
|
34
|
+
wfcfg_workflow_id_wfrg?: string;
|
|
35
|
+
_id?: string;
|
|
36
|
+
constructor(init: MWorkflowConfigGetByIdPayload);
|
|
37
|
+
Validate?(): Partial<IWorkflowConfigGetByIdErrorLogger>;
|
|
38
|
+
}
|
|
39
|
+
declare class MWorkflowConfigInsertUpdatePayload implements ICoreWorkflowConfig, MRequestMiddelware {
|
|
40
|
+
_id?: string;
|
|
41
|
+
wfcfg_workflow_id_wfrg?: string;
|
|
42
|
+
wfcfg_step_number?: number;
|
|
43
|
+
wfcfg_step_name?: string;
|
|
44
|
+
wfcfg_approval_type_id_sygms?: string;
|
|
45
|
+
wfcfg_approval_logic?: any;
|
|
46
|
+
wfcfg_allow_edit?: boolean;
|
|
47
|
+
wfcfg_allow_reject?: boolean;
|
|
48
|
+
wfcfg_allow_request_changes?: boolean;
|
|
49
|
+
wfcfg_timeout_hours?: number;
|
|
50
|
+
wfcfg_escalation_step?: number;
|
|
51
|
+
wfcfg_use_fallback?: boolean;
|
|
52
|
+
wfcfg_valid_from_date?: Date;
|
|
53
|
+
wfcfg_valid_to_date?: Date;
|
|
54
|
+
wfcfg_isactive?: boolean;
|
|
55
|
+
wfcfg_fallback_user_id_auth?: string;
|
|
56
|
+
wfcfg_fallback_designation_id?: string;
|
|
57
|
+
wfcfg_fallback_department_id?: string;
|
|
58
|
+
wfcfg_fallback_role_id?: string;
|
|
59
|
+
wfcfg_notify_all_approvers?: boolean;
|
|
60
|
+
constructor(init: Partial<ICoreWorkflowConfig> & {
|
|
61
|
+
_id?: string;
|
|
62
|
+
});
|
|
63
|
+
Validate?(): Partial<IWorkflowConfigInsertUpdateErrorLogger>;
|
|
64
|
+
}
|
|
65
|
+
declare class MWorkflowStepInsertUpdatePayload implements MRequestMiddelware {
|
|
66
|
+
wfstp_id?: string;
|
|
67
|
+
wfstp_workflow_config_id_wfcfg?: string;
|
|
68
|
+
wfstp_step_name?: string;
|
|
69
|
+
wfstp_step_order?: number;
|
|
70
|
+
wfstp_approval_type_id_sygms?: string;
|
|
71
|
+
wfstp_is_required?: boolean;
|
|
72
|
+
wfstp_time_limit_hours?: number;
|
|
73
|
+
wfstp_allow_edit?: boolean;
|
|
74
|
+
wfstp_allow_reject?: boolean;
|
|
75
|
+
wfstp_allow_return?: boolean;
|
|
76
|
+
wfstp_conditional_routing?: string;
|
|
77
|
+
wfstp_valid_from_date?: Date;
|
|
78
|
+
wfstp_valid_to_date?: Date;
|
|
79
|
+
_id?: string;
|
|
80
|
+
constructor(init: MWorkflowStepInsertUpdatePayload);
|
|
81
|
+
Validate?(): Partial<IWorkflowStepInsertUpdateErrorLogger>;
|
|
82
|
+
}
|
|
83
|
+
declare class MWorkflowStepDeletePayload implements MRequestMiddelware {
|
|
84
|
+
wfstp_id?: string;
|
|
85
|
+
_id?: string;
|
|
86
|
+
constructor(init: MWorkflowStepDeletePayload);
|
|
87
|
+
Validate?(): Partial<IWorkflowStepDeleteErrorLogger>;
|
|
88
|
+
}
|
|
89
|
+
declare class MWorkflowApproverRuleInsertUpdatePayload implements ICoreWorkflowApproverRules, MRequestMiddelware {
|
|
90
|
+
_id?: string;
|
|
91
|
+
wfar_workflow_config_id_wfcfg?: string;
|
|
92
|
+
wfar_approval_group_id?: string;
|
|
93
|
+
wfar_group_approval_type_id_sygms?: string;
|
|
94
|
+
wfar_rule_type_id_sygms?: string;
|
|
95
|
+
wfar_rule_value?: string;
|
|
96
|
+
wfar_rule_operator_id_sygms?: string;
|
|
97
|
+
wfar_combined_filters?: any;
|
|
98
|
+
wfar_priority?: number;
|
|
99
|
+
wfar_condition?: any;
|
|
100
|
+
wfar_is_optional?: boolean;
|
|
101
|
+
wfar_min_approvals?: number;
|
|
102
|
+
wfar_valid_from_date?: Date;
|
|
103
|
+
wfar_valid_to_date?: Date;
|
|
104
|
+
wfar_isactive?: boolean;
|
|
105
|
+
constructor(init: Partial<ICoreWorkflowApproverRules> & {
|
|
106
|
+
_id?: string;
|
|
107
|
+
});
|
|
108
|
+
Validate?(): Partial<IWorkflowApproverRuleInsertUpdateErrorLogger>;
|
|
109
|
+
}
|
|
110
|
+
declare class MWorkflowApproverRuleDeletePayload implements MRequestMiddelware {
|
|
111
|
+
wfar_id?: string;
|
|
112
|
+
_id?: string;
|
|
113
|
+
constructor(init: MWorkflowApproverRuleDeletePayload);
|
|
114
|
+
Validate?(): Partial<IWorkflowApproverRuleDeleteErrorLogger>;
|
|
115
|
+
}
|
|
116
|
+
declare class MWorkflowApproverRuleGetPayload implements MRequestMiddelware {
|
|
117
|
+
wfar_workflow_config_id_wfcfg?: string;
|
|
118
|
+
wfar_workflow_step_id_wfstp?: string;
|
|
119
|
+
constructor(init: MWorkflowApproverRuleGetPayload);
|
|
120
|
+
Validate?(): any;
|
|
121
|
+
}
|
|
122
|
+
interface workflowConfigControllerResponse extends controllerResponse {
|
|
123
|
+
data?: any[] | any | null;
|
|
124
|
+
total?: number;
|
|
125
|
+
totalDocument?: number;
|
|
126
|
+
}
|
|
127
|
+
interface workflowConfigByIdControllerResponse extends controllerResponse {
|
|
128
|
+
data?: any | null;
|
|
129
|
+
}
|
|
130
|
+
interface workflowConfigInsertUpdateControllerResponse extends controllerResponse {
|
|
131
|
+
data?: any | null;
|
|
132
|
+
}
|
|
133
|
+
export { MWorkflowConfig, MWorkflowConfigGetByIdPayload, MWorkflowConfigInsertUpdatePayload, MWorkflowStepInsertUpdatePayload, MWorkflowStepDeletePayload, MWorkflowApproverRuleInsertUpdatePayload, MWorkflowApproverRuleDeletePayload, MWorkflowApproverRuleGetPayload, workflowConfigControllerResponse, workflowConfigByIdControllerResponse, workflowConfigInsertUpdateControllerResponse };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MWorkflowApproverRuleGetPayload = exports.MWorkflowApproverRuleDeletePayload = exports.MWorkflowApproverRuleInsertUpdatePayload = exports.MWorkflowStepDeletePayload = exports.MWorkflowStepInsertUpdatePayload = exports.MWorkflowConfigInsertUpdatePayload = exports.MWorkflowConfigGetByIdPayload = exports.MWorkflowConfig = void 0;
|
|
4
|
+
const common_1 = require("../../common-types/common");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* MODEL START */
|
|
7
|
+
class MWorkflowConfig 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.MWorkflowConfig = MWorkflowConfig;
|
|
18
|
+
class MWorkflowConfigGetByIdPayload {
|
|
19
|
+
constructor(init) {
|
|
20
|
+
Object.assign(this, init);
|
|
21
|
+
}
|
|
22
|
+
Validate() {
|
|
23
|
+
let errorLogger = {};
|
|
24
|
+
if (!this.wfcfg_id && !this.wfcfg_workflow_id_wfrg && !this._id) {
|
|
25
|
+
errorLogger.wfcfg_id = "Workflow Config ID or Workflow ID is Required!";
|
|
26
|
+
}
|
|
27
|
+
return errorLogger;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.MWorkflowConfigGetByIdPayload = MWorkflowConfigGetByIdPayload;
|
|
31
|
+
class MWorkflowConfigInsertUpdatePayload {
|
|
32
|
+
constructor(init) {
|
|
33
|
+
Object.assign(this, init);
|
|
34
|
+
}
|
|
35
|
+
Validate() {
|
|
36
|
+
let errorLogger = {};
|
|
37
|
+
return errorLogger;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.MWorkflowConfigInsertUpdatePayload = MWorkflowConfigInsertUpdatePayload;
|
|
41
|
+
class MWorkflowStepInsertUpdatePayload {
|
|
42
|
+
constructor(init) {
|
|
43
|
+
Object.assign(this, init);
|
|
44
|
+
}
|
|
45
|
+
Validate() {
|
|
46
|
+
let errorLogger = {};
|
|
47
|
+
return errorLogger;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.MWorkflowStepInsertUpdatePayload = MWorkflowStepInsertUpdatePayload;
|
|
51
|
+
class MWorkflowStepDeletePayload {
|
|
52
|
+
constructor(init) {
|
|
53
|
+
Object.assign(this, init);
|
|
54
|
+
}
|
|
55
|
+
Validate() {
|
|
56
|
+
let errorLogger = {};
|
|
57
|
+
if (!this.wfstp_id && !this._id) {
|
|
58
|
+
errorLogger.wfstp_id = "Workflow Step ID is Required!";
|
|
59
|
+
}
|
|
60
|
+
return errorLogger;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.MWorkflowStepDeletePayload = MWorkflowStepDeletePayload;
|
|
64
|
+
class MWorkflowApproverRuleInsertUpdatePayload {
|
|
65
|
+
constructor(init) {
|
|
66
|
+
Object.assign(this, init);
|
|
67
|
+
}
|
|
68
|
+
Validate() {
|
|
69
|
+
let errorLogger = {};
|
|
70
|
+
return errorLogger;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.MWorkflowApproverRuleInsertUpdatePayload = MWorkflowApproverRuleInsertUpdatePayload;
|
|
74
|
+
class MWorkflowApproverRuleDeletePayload {
|
|
75
|
+
constructor(init) {
|
|
76
|
+
Object.assign(this, init);
|
|
77
|
+
}
|
|
78
|
+
Validate() {
|
|
79
|
+
let errorLogger = {};
|
|
80
|
+
if (!this.wfar_id && !this._id) {
|
|
81
|
+
errorLogger.wfar_id = "Workflow Approver Rule ID is Required!";
|
|
82
|
+
}
|
|
83
|
+
return errorLogger;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.MWorkflowApproverRuleDeletePayload = MWorkflowApproverRuleDeletePayload;
|
|
87
|
+
class MWorkflowApproverRuleGetPayload {
|
|
88
|
+
constructor(init) {
|
|
89
|
+
Object.assign(this, init);
|
|
90
|
+
}
|
|
91
|
+
Validate() {
|
|
92
|
+
return {};
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.MWorkflowApproverRuleGetPayload = MWorkflowApproverRuleGetPayload;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { controllerResponse } from "../../utilities";
|
|
2
|
+
import { MRequestMiddelware } from "../../common-types/common";
|
|
3
|
+
declare class MWorkflowInitializePayload implements MRequestMiddelware {
|
|
4
|
+
workflowId?: string;
|
|
5
|
+
wfrg_id?: string;
|
|
6
|
+
requestTable?: string;
|
|
7
|
+
requestId?: string;
|
|
8
|
+
entityId?: string;
|
|
9
|
+
requestData?: any;
|
|
10
|
+
initiatedBy?: string;
|
|
11
|
+
requestedByUser?: string;
|
|
12
|
+
constructor(init: MWorkflowInitializePayload);
|
|
13
|
+
Validate?(): any;
|
|
14
|
+
}
|
|
15
|
+
declare class MWorkflowActionPayload implements MRequestMiddelware {
|
|
16
|
+
workflowId?: string;
|
|
17
|
+
wfrg_id?: string;
|
|
18
|
+
requestTable?: string;
|
|
19
|
+
requestId?: string;
|
|
20
|
+
entityId?: string;
|
|
21
|
+
stepId?: string;
|
|
22
|
+
wfstp_id?: string;
|
|
23
|
+
stepNumber?: number;
|
|
24
|
+
action?: 'approve' | 'reject' | 'return' | 'request-changes' | 'edit';
|
|
25
|
+
actionType?: 'approve' | 'reject' | 'request-changes' | 'edit';
|
|
26
|
+
comments?: string;
|
|
27
|
+
actionBy?: string;
|
|
28
|
+
actionByUser?: string;
|
|
29
|
+
editedData?: any;
|
|
30
|
+
editedValues?: any;
|
|
31
|
+
attachments?: string[];
|
|
32
|
+
constructor(init: MWorkflowActionPayload);
|
|
33
|
+
Validate?(): any;
|
|
34
|
+
}
|
|
35
|
+
declare class MWorkflowStatusPayload implements MRequestMiddelware {
|
|
36
|
+
workflowId?: string;
|
|
37
|
+
wfrg_id?: string;
|
|
38
|
+
entityId?: string;
|
|
39
|
+
requestId?: string;
|
|
40
|
+
requestTable?: string;
|
|
41
|
+
constructor(init: MWorkflowStatusPayload);
|
|
42
|
+
Validate?(): any;
|
|
43
|
+
}
|
|
44
|
+
declare class MWorkflowStatusBatchPayload implements MRequestMiddelware {
|
|
45
|
+
entityIds?: string[];
|
|
46
|
+
requestIds?: string[];
|
|
47
|
+
requestTable?: string;
|
|
48
|
+
constructor(init: MWorkflowStatusBatchPayload);
|
|
49
|
+
Validate?(): any;
|
|
50
|
+
}
|
|
51
|
+
declare class MWorkflowCanApprovePayload implements MRequestMiddelware {
|
|
52
|
+
workflowId?: string;
|
|
53
|
+
wfrg_id?: string;
|
|
54
|
+
entityId?: string;
|
|
55
|
+
userId?: string;
|
|
56
|
+
actionBy?: string;
|
|
57
|
+
constructor(init: MWorkflowCanApprovePayload);
|
|
58
|
+
Validate?(): any;
|
|
59
|
+
}
|
|
60
|
+
declare class MWorkflowHistoryPayload implements MRequestMiddelware {
|
|
61
|
+
workflowId?: string;
|
|
62
|
+
wfrg_id?: string;
|
|
63
|
+
entityId?: string;
|
|
64
|
+
requestId?: string;
|
|
65
|
+
maskApprovers?: boolean;
|
|
66
|
+
constructor(init: MWorkflowHistoryPayload);
|
|
67
|
+
Validate?(): any;
|
|
68
|
+
}
|
|
69
|
+
interface workflowEngineControllerResponse extends controllerResponse {
|
|
70
|
+
data?: any | null;
|
|
71
|
+
}
|
|
72
|
+
interface workflowStatusControllerResponse extends controllerResponse {
|
|
73
|
+
data?: any | null;
|
|
74
|
+
}
|
|
75
|
+
export { MWorkflowInitializePayload, MWorkflowActionPayload, MWorkflowStatusPayload, MWorkflowStatusBatchPayload, MWorkflowCanApprovePayload, MWorkflowHistoryPayload, workflowEngineControllerResponse, workflowStatusControllerResponse };
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
Validate() {
|
|
10
|
+
return {};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.MWorkflowInitializePayload = MWorkflowInitializePayload;
|
|
14
|
+
class MWorkflowActionPayload {
|
|
15
|
+
constructor(init) {
|
|
16
|
+
Object.assign(this, init);
|
|
17
|
+
}
|
|
18
|
+
Validate() {
|
|
19
|
+
return {};
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.MWorkflowActionPayload = MWorkflowActionPayload;
|
|
23
|
+
class MWorkflowStatusPayload {
|
|
24
|
+
constructor(init) {
|
|
25
|
+
Object.assign(this, init);
|
|
26
|
+
}
|
|
27
|
+
Validate() {
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.MWorkflowStatusPayload = MWorkflowStatusPayload;
|
|
32
|
+
class MWorkflowStatusBatchPayload {
|
|
33
|
+
constructor(init) {
|
|
34
|
+
Object.assign(this, init);
|
|
35
|
+
}
|
|
36
|
+
Validate() {
|
|
37
|
+
return {};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.MWorkflowStatusBatchPayload = MWorkflowStatusBatchPayload;
|
|
41
|
+
class MWorkflowCanApprovePayload {
|
|
42
|
+
constructor(init) {
|
|
43
|
+
Object.assign(this, init);
|
|
44
|
+
}
|
|
45
|
+
Validate() {
|
|
46
|
+
return {};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.MWorkflowCanApprovePayload = MWorkflowCanApprovePayload;
|
|
50
|
+
class MWorkflowHistoryPayload {
|
|
51
|
+
constructor(init) {
|
|
52
|
+
Object.assign(this, init);
|
|
53
|
+
}
|
|
54
|
+
Validate() {
|
|
55
|
+
return {};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.MWorkflowHistoryPayload = MWorkflowHistoryPayload;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { MTableQueries, MRequestMiddelware } 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 implements MRequestMiddelware {
|
|
44
|
+
wfrg_id?: string;
|
|
45
|
+
_id?: string;
|
|
46
|
+
constructor(init: MWorkflowRegistryGetByIdPayload);
|
|
47
|
+
Validate?(): Partial<IWorkflowRegistryGetByIdErrorLogger>;
|
|
48
|
+
}
|
|
49
|
+
declare class MWorkflowRegistryDeletePayload implements MRequestMiddelware {
|
|
50
|
+
wfrg_id?: string;
|
|
51
|
+
_id?: string;
|
|
52
|
+
constructor(init: MWorkflowRegistryDeletePayload);
|
|
53
|
+
Validate?(): Partial<IWorkflowRegistryDeleteErrorLogger>;
|
|
54
|
+
}
|
|
55
|
+
declare class MWorkflowRegistryInsertUpdatePayload implements ICoreWorkflowRegistry, MRequestMiddelware {
|
|
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 implements MRequestMiddelware {
|
|
85
|
+
wfrg_page_id_sypg?: string;
|
|
86
|
+
wfrg_entity_id_syen?: string;
|
|
87
|
+
constructor(init: MWorkflowRegistryByPagePayload);
|
|
88
|
+
Validate?(): any;
|
|
89
|
+
}
|
|
90
|
+
declare class MWorkflowRegistryByMenuPayload implements MRequestMiddelware {
|
|
91
|
+
wfrg_menu_id_syme?: string;
|
|
92
|
+
wfrg_entity_id_syen?: string;
|
|
93
|
+
constructor(init: MWorkflowRegistryByMenuPayload);
|
|
94
|
+
Validate?(): any;
|
|
95
|
+
}
|
|
96
|
+
declare class MWorkflowRegistryByCategoryPayload implements MRequestMiddelware {
|
|
97
|
+
wfrg_category_id_sygms?: string;
|
|
98
|
+
wfrg_entity_id_syen?: string;
|
|
99
|
+
constructor(init: MWorkflowRegistryByCategoryPayload);
|
|
100
|
+
Validate?(): any;
|
|
101
|
+
}
|
|
102
|
+
interface workflowRegistryControllerResponse extends controllerResponse {
|
|
103
|
+
data?: any[] | any | null;
|
|
104
|
+
total?: number;
|
|
105
|
+
totalDocument?: number;
|
|
106
|
+
}
|
|
107
|
+
interface workflowRegistryByIdControllerResponse extends controllerResponse {
|
|
108
|
+
data?: any | null;
|
|
109
|
+
}
|
|
110
|
+
interface workflowRegistryInsertUpdateControllerResponse extends controllerResponse {
|
|
111
|
+
data?: any | null;
|
|
112
|
+
}
|
|
113
|
+
interface workflowRegistryDeleteControllerResponse extends controllerResponse {
|
|
114
|
+
data?: any | null;
|
|
115
|
+
}
|
|
116
|
+
export { MWorkflowRegistry, MWorkflowRegistryGetByIdPayload, MWorkflowRegistryDeletePayload, MWorkflowRegistryInsertUpdatePayload, MWorkflowRegistryByPagePayload, MWorkflowRegistryByMenuPayload, MWorkflowRegistryByCategoryPayload, workflowRegistryControllerResponse, workflowRegistryByIdControllerResponse, workflowRegistryInsertUpdateControllerResponse, workflowRegistryDeleteControllerResponse };
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
Validate() {
|
|
59
|
+
return {};
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.MWorkflowRegistryByPagePayload = MWorkflowRegistryByPagePayload;
|
|
63
|
+
class MWorkflowRegistryByMenuPayload {
|
|
64
|
+
constructor(init) {
|
|
65
|
+
Object.assign(this, init);
|
|
66
|
+
}
|
|
67
|
+
Validate() {
|
|
68
|
+
return {};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.MWorkflowRegistryByMenuPayload = MWorkflowRegistryByMenuPayload;
|
|
72
|
+
class MWorkflowRegistryByCategoryPayload {
|
|
73
|
+
constructor(init) {
|
|
74
|
+
Object.assign(this, init);
|
|
75
|
+
}
|
|
76
|
+
Validate() {
|
|
77
|
+
return {};
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
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);
|
|
@@ -28,5 +28,9 @@ declare const academicsRoutesUrl: {
|
|
|
28
28
|
* Endpoint to get class program branch (class-program-branch)
|
|
29
29
|
*/
|
|
30
30
|
classProgramBranch: string;
|
|
31
|
+
/**
|
|
32
|
+
* Endpoint to manage bonafide requests (bonafide/request)
|
|
33
|
+
*/
|
|
34
|
+
bonafide: string;
|
|
31
35
|
};
|
|
32
36
|
export { academicsRoutesUrl };
|
|
@@ -31,6 +31,10 @@ const academicsRoutesUrl = {
|
|
|
31
31
|
* Endpoint to get class program branch (class-program-branch)
|
|
32
32
|
*/
|
|
33
33
|
classProgramBranch: "class-program-branch",
|
|
34
|
+
/**
|
|
35
|
+
* Endpoint to manage bonafide requests (bonafide/request)
|
|
36
|
+
*/
|
|
37
|
+
bonafide: "bonafide/request",
|
|
34
38
|
};
|
|
35
39
|
exports.academicsRoutesUrl = academicsRoutesUrl;
|
|
36
40
|
// Freeze the authRoutesUrl object to prevent modifications
|
|
@@ -117,5 +117,21 @@ declare const coreRoutesUrl: {
|
|
|
117
117
|
* @description Endpoint to manage dashboard cards (dashboard-cards)
|
|
118
118
|
*/
|
|
119
119
|
dashboardCards: string;
|
|
120
|
+
/**
|
|
121
|
+
* @description Endpoint to manage workflow registry (workflow/registry)
|
|
122
|
+
*/
|
|
123
|
+
workflowRegistry: string;
|
|
124
|
+
/**
|
|
125
|
+
* @description Endpoint to manage workflow configuration (workflow/config)
|
|
126
|
+
*/
|
|
127
|
+
workflowConfig: string;
|
|
128
|
+
/**
|
|
129
|
+
* @description Endpoint to manage workflow engine operations (workflow)
|
|
130
|
+
*/
|
|
131
|
+
workflow: string;
|
|
132
|
+
/**
|
|
133
|
+
* @description Endpoint to get workflow status (workflow/status)
|
|
134
|
+
*/
|
|
135
|
+
workflowStatus: string;
|
|
120
136
|
};
|
|
121
137
|
export { coreRoutesUrl };
|
package/lib/routes/coreRoutes.js
CHANGED
|
@@ -120,6 +120,22 @@ const coreRoutesUrl = {
|
|
|
120
120
|
* @description Endpoint to manage dashboard cards (dashboard-cards)
|
|
121
121
|
*/
|
|
122
122
|
dashboardCards: "dashboard-cards",
|
|
123
|
+
/**
|
|
124
|
+
* @description Endpoint to manage workflow registry (workflow/registry)
|
|
125
|
+
*/
|
|
126
|
+
workflowRegistry: "workflow/registry",
|
|
127
|
+
/**
|
|
128
|
+
* @description Endpoint to manage workflow configuration (workflow/config)
|
|
129
|
+
*/
|
|
130
|
+
workflowConfig: "workflow/config",
|
|
131
|
+
/**
|
|
132
|
+
* @description Endpoint to manage workflow engine operations (workflow)
|
|
133
|
+
*/
|
|
134
|
+
workflow: "workflow",
|
|
135
|
+
/**
|
|
136
|
+
* @description Endpoint to get workflow status (workflow/status)
|
|
137
|
+
*/
|
|
138
|
+
workflowStatus: "workflow/status",
|
|
123
139
|
};
|
|
124
140
|
exports.coreRoutesUrl = coreRoutesUrl;
|
|
125
141
|
Object.freeze(coreRoutesUrl);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare class IAcademicsBonafideRequest {
|
|
2
|
+
_id?: string;
|
|
3
|
+
abnr_request_number?: string;
|
|
4
|
+
abnr_student_id?: string;
|
|
5
|
+
abnr_student_id_auth?: string;
|
|
6
|
+
abnr_purpose?: string;
|
|
7
|
+
abnr_request_date?: Date;
|
|
8
|
+
abnr_status_id_sygms?: string;
|
|
9
|
+
abnr_current_step?: number;
|
|
10
|
+
abnr_workflow_id_wfrg?: string;
|
|
11
|
+
abnr_requested_by_user?: string;
|
|
12
|
+
abnr_soft_copy_id_cyfm?: string;
|
|
13
|
+
abnr_stamped_copy_id_cyfm?: string;
|
|
14
|
+
abnr_completed_date?: Date;
|
|
15
|
+
abnr_entity_id_syen?: string;
|
|
16
|
+
abnr_isactive?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export { IAcademicsBonafideRequest };
|
|
@@ -20,3 +20,4 @@ __exportStar(require("./aca_class_program_master"), exports);
|
|
|
20
20
|
__exportStar(require("./aca_class_program_term"), exports);
|
|
21
21
|
__exportStar(require("./aca_prg_trm_section"), exports);
|
|
22
22
|
__exportStar(require("./aca_class_prg_branch"), exports);
|
|
23
|
+
__exportStar(require("./academics_bonafide_request"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare class ICoreWorkflowApproverRules {
|
|
2
|
+
_id?: string;
|
|
3
|
+
wfar_workflow_config_id_wfcfg?: string;
|
|
4
|
+
wfar_approval_group_id?: string;
|
|
5
|
+
wfar_group_approval_type_id_sygms?: string;
|
|
6
|
+
wfar_rule_type_id_sygms?: string;
|
|
7
|
+
wfar_rule_value?: string;
|
|
8
|
+
wfar_rule_operator_id_sygms?: string;
|
|
9
|
+
wfar_combined_filters?: any;
|
|
10
|
+
wfar_priority?: number;
|
|
11
|
+
wfar_condition?: any;
|
|
12
|
+
wfar_is_optional?: boolean;
|
|
13
|
+
wfar_min_approvals?: number;
|
|
14
|
+
wfar_valid_from_date?: Date;
|
|
15
|
+
wfar_valid_to_date?: Date;
|
|
16
|
+
wfar_isactive?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export { ICoreWorkflowApproverRules };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare class ICoreWorkflowConfig {
|
|
2
|
+
_id?: string;
|
|
3
|
+
wfcfg_workflow_id_wfrg?: string;
|
|
4
|
+
wfcfg_step_number?: number;
|
|
5
|
+
wfcfg_step_name?: string;
|
|
6
|
+
wfcfg_approval_type_id_sygms?: string;
|
|
7
|
+
wfcfg_approval_logic?: any;
|
|
8
|
+
wfcfg_allow_edit?: boolean;
|
|
9
|
+
wfcfg_allow_reject?: boolean;
|
|
10
|
+
wfcfg_allow_request_changes?: boolean;
|
|
11
|
+
wfcfg_timeout_hours?: number;
|
|
12
|
+
wfcfg_escalation_step?: number;
|
|
13
|
+
wfcfg_use_fallback?: boolean;
|
|
14
|
+
wfcfg_valid_from_date?: Date;
|
|
15
|
+
wfcfg_valid_to_date?: Date;
|
|
16
|
+
wfcfg_isactive?: boolean;
|
|
17
|
+
wfcfg_fallback_user_id_auth?: string;
|
|
18
|
+
wfcfg_fallback_designation_id?: string;
|
|
19
|
+
wfcfg_fallback_department_id?: string;
|
|
20
|
+
wfcfg_fallback_role_id?: string;
|
|
21
|
+
wfcfg_notify_all_approvers?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export { ICoreWorkflowConfig };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare class ICoreWorkflowRegistry {
|
|
2
|
+
_id?: string;
|
|
3
|
+
wfrg_workflow_code?: string;
|
|
4
|
+
wfrg_title?: string;
|
|
5
|
+
wfrg_desc?: string;
|
|
6
|
+
wfrg_category_id_sygms?: string;
|
|
7
|
+
wfrg_entity_id_syen?: string;
|
|
8
|
+
wfrg_page_id_sypg?: string;
|
|
9
|
+
wfrg_menu_id_syme?: string;
|
|
10
|
+
wfrg_component_selector?: string;
|
|
11
|
+
wfrg_component_path?: string;
|
|
12
|
+
wfrg_query_params?: any;
|
|
13
|
+
wfrg_view_mode_id_sygms?: string;
|
|
14
|
+
wfrg_trigger_type_id_sygms?: string;
|
|
15
|
+
wfrg_trigger_condition?: any;
|
|
16
|
+
wfrg_auto_initialize?: boolean;
|
|
17
|
+
wfrg_isactive?: boolean;
|
|
18
|
+
wfrg_valid_from_date?: Date;
|
|
19
|
+
wfrg_valid_to_date?: Date;
|
|
20
|
+
wfrg_reinitialize_on_edit?: boolean;
|
|
21
|
+
wfrg_notify_approvers_on_final_status?: boolean;
|
|
22
|
+
wfrg_show_approver_names?: boolean;
|
|
23
|
+
wfrg_mask_approver_info?: boolean;
|
|
24
|
+
wfrg_configuration?: any;
|
|
25
|
+
}
|
|
26
|
+
export { ICoreWorkflowRegistry };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare class ICoreWorkflowTransactionHistory {
|
|
2
|
+
_id?: string;
|
|
3
|
+
wfth_workflow_id_wfrg?: string;
|
|
4
|
+
wfth_request_id?: string;
|
|
5
|
+
wfth_request_table?: string;
|
|
6
|
+
wfth_step_number?: number;
|
|
7
|
+
wfth_action_type_id_sygms?: string;
|
|
8
|
+
wfth_action_by_user?: string;
|
|
9
|
+
wfth_action_date?: Date;
|
|
10
|
+
wfth_comments?: string;
|
|
11
|
+
wfth_previous_values?: any;
|
|
12
|
+
wfth_new_values?: any;
|
|
13
|
+
wfth_attachments?: string[];
|
|
14
|
+
wfth_notification_sent?: boolean;
|
|
15
|
+
wfth_entity_id_syen?: string;
|
|
16
|
+
}
|
|
17
|
+
export { ICoreWorkflowTransactionHistory };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ICoreWorkflowTransactionHistory = void 0;
|
|
4
|
+
/* INTERFACE START */
|
|
5
|
+
class ICoreWorkflowTransactionHistory {
|
|
6
|
+
}
|
|
7
|
+
exports.ICoreWorkflowTransactionHistory = ICoreWorkflowTransactionHistory;
|
|
@@ -40,3 +40,7 @@ export * from './core_board_grade_system';
|
|
|
40
40
|
export * from './core_school_board_affiliation';
|
|
41
41
|
export * from './core_user_type_mapping';
|
|
42
42
|
export * from './core_dashboard_cards';
|
|
43
|
+
export * from './core_workflow_registry';
|
|
44
|
+
export * from './core_workflow_config';
|
|
45
|
+
export * from './core_workflow_approver_rules';
|
|
46
|
+
export * from './core_workflow_transaction_history';
|
package/lib/schema/core/index.js
CHANGED
|
@@ -56,3 +56,7 @@ __exportStar(require("./core_board_grade_system"), exports);
|
|
|
56
56
|
__exportStar(require("./core_school_board_affiliation"), exports);
|
|
57
57
|
__exportStar(require("./core_user_type_mapping"), exports);
|
|
58
58
|
__exportStar(require("./core_dashboard_cards"), exports);
|
|
59
|
+
__exportStar(require("./core_workflow_registry"), exports);
|
|
60
|
+
__exportStar(require("./core_workflow_config"), exports);
|
|
61
|
+
__exportStar(require("./core_workflow_approver_rules"), exports);
|
|
62
|
+
__exportStar(require("./core_workflow_transaction_history"), exports);
|