cloud-ide-lms-model 1.1.6 → 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.
Files changed (31) hide show
  1. package/lib/model/academics/academics_bonafide_request.d.ts +114 -0
  2. package/lib/model/academics/academics_bonafide_request.js +78 -0
  3. package/lib/model/academics/index.d.ts +1 -0
  4. package/lib/model/academics/index.js +1 -0
  5. package/lib/model/core/core_workflow_config.d.ts +132 -0
  6. package/lib/model/core/core_workflow_config.js +92 -0
  7. package/lib/model/core/core_workflow_engine.d.ts +58 -0
  8. package/lib/model/core/core_workflow_engine.js +40 -0
  9. package/lib/model/core/core_workflow_registry.d.ts +113 -0
  10. package/lib/model/core/core_workflow_registry.js +71 -0
  11. package/lib/model/core/index.d.ts +3 -0
  12. package/lib/model/core/index.js +3 -0
  13. package/lib/routes/academicsRoutes.d.ts +4 -0
  14. package/lib/routes/academicsRoutes.js +4 -0
  15. package/lib/routes/coreRoutes.d.ts +16 -0
  16. package/lib/routes/coreRoutes.js +16 -0
  17. package/lib/schema/academics/academics_bonafide_request.d.ts +18 -0
  18. package/lib/schema/academics/academics_bonafide_request.js +7 -0
  19. package/lib/schema/academics/index.d.ts +1 -0
  20. package/lib/schema/academics/index.js +1 -0
  21. package/lib/schema/core/core_workflow_approver_rules.d.ts +18 -0
  22. package/lib/schema/core/core_workflow_approver_rules.js +7 -0
  23. package/lib/schema/core/core_workflow_config.d.ts +23 -0
  24. package/lib/schema/core/core_workflow_config.js +7 -0
  25. package/lib/schema/core/core_workflow_registry.d.ts +26 -0
  26. package/lib/schema/core/core_workflow_registry.js +7 -0
  27. package/lib/schema/core/core_workflow_transaction_history.d.ts +17 -0
  28. package/lib/schema/core/core_workflow_transaction_history.js +7 -0
  29. package/lib/schema/core/index.d.ts +4 -0
  30. package/lib/schema/core/index.js +4 -0
  31. package/package.json +1 -1
@@ -0,0 +1,114 @@
1
+ import { MTableQueries } 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 {
32
+ abnr_id?: string;
33
+ _id?: string;
34
+ constructor(init: MBonafideRequestGetByIdPayload);
35
+ Validate?(): Partial<IBonafideRequestGetByIdErrorLogger>;
36
+ }
37
+ declare class MBonafideRequestInsertUpdatePayload implements IAcademicsBonafideRequest {
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 {
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 {
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 {
78
+ abnr_id?: string;
79
+ requestId?: string;
80
+ generatedByUser?: string;
81
+ constructor(init: MBonafideRequestGenerateCertificatePayload);
82
+ }
83
+ declare class MBonafideRequestUploadStampedCopyPayload {
84
+ abnr_id?: string;
85
+ requestId?: string;
86
+ stampedCopyFileId?: string;
87
+ stampedCopyUrl?: string;
88
+ uploadedBy?: string;
89
+ constructor(init: MBonafideRequestUploadStampedCopyPayload);
90
+ }
91
+ interface bonafideRequestControllerResponse extends controllerResponse {
92
+ data?: any[] | any | null;
93
+ total?: number;
94
+ totalDocument?: number;
95
+ }
96
+ interface bonafideRequestByIdControllerResponse extends controllerResponse {
97
+ data?: any | null;
98
+ }
99
+ interface bonafideRequestInsertUpdateControllerResponse extends controllerResponse {
100
+ data?: any | null;
101
+ }
102
+ interface bonafideRequestApproveControllerResponse extends controllerResponse {
103
+ data?: any | null;
104
+ }
105
+ interface bonafideRequestRejectControllerResponse extends controllerResponse {
106
+ data?: any | null;
107
+ }
108
+ interface bonafideRequestGenerateCertificateControllerResponse extends controllerResponse {
109
+ data?: any | null;
110
+ }
111
+ interface bonafideRequestUploadStampedCopyControllerResponse extends controllerResponse {
112
+ data?: any | null;
113
+ }
114
+ export { MBonafideRequest, MBonafideRequestGetByIdPayload, MBonafideRequestInsertUpdatePayload, MBonafideRequestApprovePayload, MBonafideRequestRejectPayload, MBonafideRequestGenerateCertificatePayload, MBonafideRequestUploadStampedCopyPayload, bonafideRequestControllerResponse, bonafideRequestByIdControllerResponse, bonafideRequestInsertUpdateControllerResponse, bonafideRequestApproveControllerResponse, bonafideRequestRejectControllerResponse, bonafideRequestGenerateCertificateControllerResponse, bonafideRequestUploadStampedCopyControllerResponse };
@@ -0,0 +1,78 @@
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
+ }
72
+ exports.MBonafideRequestGenerateCertificatePayload = MBonafideRequestGenerateCertificatePayload;
73
+ class MBonafideRequestUploadStampedCopyPayload {
74
+ constructor(init) {
75
+ Object.assign(this, init);
76
+ }
77
+ }
78
+ exports.MBonafideRequestUploadStampedCopyPayload = MBonafideRequestUploadStampedCopyPayload;
@@ -4,3 +4,4 @@ export * from "./aca_class_program_master";
4
4
  export * from "./aca_class_program_term";
5
5
  export * from "./aca_prg_trm_section";
6
6
  export * from "./aca_class_prg_branch";
7
+ export * from "./academics_bonafide_request";
@@ -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,132 @@
1
+ import { MTableQueries } 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 {
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 {
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 {
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 {
84
+ wfstp_id?: string;
85
+ _id?: string;
86
+ constructor(init: MWorkflowStepDeletePayload);
87
+ Validate?(): Partial<IWorkflowStepDeleteErrorLogger>;
88
+ }
89
+ declare class MWorkflowApproverRuleInsertUpdatePayload implements ICoreWorkflowApproverRules {
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 {
111
+ wfar_id?: string;
112
+ _id?: string;
113
+ constructor(init: MWorkflowApproverRuleDeletePayload);
114
+ Validate?(): Partial<IWorkflowApproverRuleDeleteErrorLogger>;
115
+ }
116
+ declare class MWorkflowApproverRuleGetPayload {
117
+ wfar_workflow_config_id_wfcfg?: string;
118
+ wfar_workflow_step_id_wfstp?: string;
119
+ constructor(init: MWorkflowApproverRuleGetPayload);
120
+ }
121
+ interface workflowConfigControllerResponse extends controllerResponse {
122
+ data?: any[] | any | null;
123
+ total?: number;
124
+ totalDocument?: number;
125
+ }
126
+ interface workflowConfigByIdControllerResponse extends controllerResponse {
127
+ data?: any | null;
128
+ }
129
+ interface workflowConfigInsertUpdateControllerResponse extends controllerResponse {
130
+ data?: any | null;
131
+ }
132
+ export { MWorkflowConfig, MWorkflowConfigGetByIdPayload, MWorkflowConfigInsertUpdatePayload, MWorkflowStepInsertUpdatePayload, MWorkflowStepDeletePayload, MWorkflowApproverRuleInsertUpdatePayload, MWorkflowApproverRuleDeletePayload, MWorkflowApproverRuleGetPayload, workflowConfigControllerResponse, workflowConfigByIdControllerResponse, workflowConfigInsertUpdateControllerResponse };
@@ -0,0 +1,92 @@
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
+ }
92
+ exports.MWorkflowApproverRuleGetPayload = MWorkflowApproverRuleGetPayload;
@@ -0,0 +1,58 @@
1
+ import { controllerResponse } from "../../utilities";
2
+ declare class MWorkflowInitializePayload {
3
+ workflowId?: string;
4
+ wfrg_id?: string;
5
+ entityId?: string;
6
+ requestData?: any;
7
+ initiatedBy?: string;
8
+ constructor(init: MWorkflowInitializePayload);
9
+ }
10
+ declare class MWorkflowActionPayload {
11
+ workflowId?: string;
12
+ wfrg_id?: string;
13
+ entityId?: string;
14
+ stepId?: string;
15
+ wfstp_id?: string;
16
+ action?: 'approve' | 'reject' | 'return';
17
+ comments?: string;
18
+ actionBy?: string;
19
+ editedData?: any;
20
+ constructor(init: MWorkflowActionPayload);
21
+ }
22
+ declare class MWorkflowStatusPayload {
23
+ workflowId?: string;
24
+ wfrg_id?: string;
25
+ entityId?: string;
26
+ requestId?: string;
27
+ requestTable?: string;
28
+ constructor(init: MWorkflowStatusPayload);
29
+ }
30
+ declare class MWorkflowStatusBatchPayload {
31
+ entityIds?: string[];
32
+ requestIds?: string[];
33
+ requestTable?: string;
34
+ constructor(init: MWorkflowStatusBatchPayload);
35
+ }
36
+ declare class MWorkflowCanApprovePayload {
37
+ workflowId?: string;
38
+ wfrg_id?: string;
39
+ entityId?: string;
40
+ userId?: string;
41
+ actionBy?: string;
42
+ constructor(init: MWorkflowCanApprovePayload);
43
+ }
44
+ declare class MWorkflowHistoryPayload {
45
+ workflowId?: string;
46
+ wfrg_id?: string;
47
+ entityId?: string;
48
+ requestId?: string;
49
+ maskApprovers?: boolean;
50
+ constructor(init: MWorkflowHistoryPayload);
51
+ }
52
+ interface workflowEngineControllerResponse extends controllerResponse {
53
+ data?: any | null;
54
+ }
55
+ interface workflowStatusControllerResponse extends controllerResponse {
56
+ data?: any | null;
57
+ }
58
+ export { MWorkflowInitializePayload, MWorkflowActionPayload, MWorkflowStatusPayload, MWorkflowStatusBatchPayload, MWorkflowCanApprovePayload, MWorkflowHistoryPayload, workflowEngineControllerResponse, workflowStatusControllerResponse };
@@ -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';
@@ -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 };
@@ -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 };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IAcademicsBonafideRequest = void 0;
4
+ /* INTERFACE START */
5
+ class IAcademicsBonafideRequest {
6
+ }
7
+ exports.IAcademicsBonafideRequest = IAcademicsBonafideRequest;
@@ -4,3 +4,4 @@ export * from './aca_class_program_master';
4
4
  export * from './aca_class_program_term';
5
5
  export * from './aca_prg_trm_section';
6
6
  export * from './aca_class_prg_branch';
7
+ export * from './academics_bonafide_request';
@@ -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,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ICoreWorkflowApproverRules = void 0;
4
+ /* INTERFACE START */
5
+ class ICoreWorkflowApproverRules {
6
+ }
7
+ exports.ICoreWorkflowApproverRules = 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,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ICoreWorkflowConfig = void 0;
4
+ /* INTERFACE START */
5
+ class ICoreWorkflowConfig {
6
+ }
7
+ exports.ICoreWorkflowConfig = 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,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ICoreWorkflowRegistry = void 0;
4
+ /* INTERFACE START */
5
+ class ICoreWorkflowRegistry {
6
+ }
7
+ exports.ICoreWorkflowRegistry = 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';
@@ -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);
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "typescript": "^5.4.2"
6
6
  },
7
7
  "name": "cloud-ide-lms-model",
8
- "version": "1.1.6",
8
+ "version": "1.1.7",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",