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.
Files changed (68) 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/admission/admission_rte_details.d.ts +85 -0
  6. package/lib/model/admission/admission_rte_details.js +8 -0
  7. package/lib/model/admission/admission_vital_information.d.ts +69 -0
  8. package/lib/model/admission/admission_vital_information.js +8 -0
  9. package/lib/model/admission/index.d.ts +2 -0
  10. package/lib/model/admission/index.js +2 -0
  11. package/lib/model/core/core_workflow_config.d.ts +132 -0
  12. package/lib/model/core/core_workflow_config.js +92 -0
  13. package/lib/model/core/core_workflow_engine.d.ts +58 -0
  14. package/lib/model/core/core_workflow_engine.js +40 -0
  15. package/lib/model/core/core_workflow_registry.d.ts +113 -0
  16. package/lib/model/core/core_workflow_registry.js +71 -0
  17. package/lib/model/core/index.d.ts +3 -0
  18. package/lib/model/core/index.js +3 -0
  19. package/lib/model/email/email_list.d.ts +74 -0
  20. package/lib/model/email/email_list.js +96 -0
  21. package/lib/model/email/email_log.d.ts +63 -0
  22. package/lib/model/email/email_log.js +43 -0
  23. package/lib/model/email/email_reference.d.ts +74 -0
  24. package/lib/model/email/email_reference.js +81 -0
  25. package/lib/model/email/email_subscription.d.ts +80 -0
  26. package/lib/model/email/email_subscription.js +93 -0
  27. package/lib/model/email/email_template.d.ts +74 -0
  28. package/lib/model/email/email_template.js +93 -0
  29. package/lib/model/email/email_vendor.d.ts +73 -0
  30. package/lib/model/email/email_vendor.js +93 -0
  31. package/lib/model/email/index.d.ts +6 -0
  32. package/lib/model/email/index.js +22 -0
  33. package/lib/model/index.d.ts +1 -0
  34. package/lib/model/index.js +1 -0
  35. package/lib/routes/academicsRoutes.d.ts +4 -0
  36. package/lib/routes/academicsRoutes.js +4 -0
  37. package/lib/routes/admissionRoutes.d.ts +4 -0
  38. package/lib/routes/admissionRoutes.js +4 -0
  39. package/lib/routes/coreRoutes.d.ts +16 -0
  40. package/lib/routes/coreRoutes.js +16 -0
  41. package/lib/routes/emailRoutes.d.ts +32 -0
  42. package/lib/routes/emailRoutes.js +37 -0
  43. package/lib/routes/index.d.ts +1 -0
  44. package/lib/routes/index.js +1 -0
  45. package/lib/schema/academics/academics_bonafide_request.d.ts +18 -0
  46. package/lib/schema/academics/academics_bonafide_request.js +7 -0
  47. package/lib/schema/academics/index.d.ts +1 -0
  48. package/lib/schema/academics/index.js +1 -0
  49. package/lib/schema/admission/admission_application_main.d.ts +8 -0
  50. package/lib/schema/admission/admission_family_members.d.ts +1 -0
  51. package/lib/schema/admission/admission_rte_details.d.ts +33 -0
  52. package/lib/schema/admission/admission_rte_details.js +15 -0
  53. package/lib/schema/admission/admission_vital_information.d.ts +21 -0
  54. package/lib/schema/admission/admission_vital_information.js +15 -0
  55. package/lib/schema/admission/index.d.ts +2 -0
  56. package/lib/schema/admission/index.js +2 -0
  57. package/lib/schema/core/core_workflow_approver_rules.d.ts +18 -0
  58. package/lib/schema/core/core_workflow_approver_rules.js +7 -0
  59. package/lib/schema/core/core_workflow_config.d.ts +23 -0
  60. package/lib/schema/core/core_workflow_config.js +7 -0
  61. package/lib/schema/core/core_workflow_registry.d.ts +26 -0
  62. package/lib/schema/core/core_workflow_registry.js +7 -0
  63. package/lib/schema/core/core_workflow_transaction_history.d.ts +17 -0
  64. package/lib/schema/core/core_workflow_transaction_history.js +7 -0
  65. package/lib/schema/core/index.d.ts +4 -0
  66. package/lib/schema/core/index.js +4 -0
  67. package/lib/schema/email/email_reference.d.ts +1 -1
  68. 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,85 @@
1
+ /**
2
+ * Admission RTE (Right to Education) Details Model - Response Types
3
+ *
4
+ * Purpose: Response type definitions with populated references
5
+ * Prefix: admrte_ (admission RTE)
6
+ */
7
+ import { AdmissionRteDetailsBase } from "../../schema/admission/admission_rte_details";
8
+ import { AdmissionEntityAccessPassManagementBase } from "../../schema/admission/admission_contact_addresses";
9
+ import { controllerResponse } from "../../utilities";
10
+ import { MTableQueries } from "../../common-types/common";
11
+ export interface MAdmissionRteDetailsListPayload extends MTableQueries {
12
+ admrte_admission_id_admap?: string;
13
+ admrte_reference_table?: string;
14
+ admrte_reference_id?: string;
15
+ admrte_isactive?: boolean;
16
+ query?: string;
17
+ }
18
+ export interface MAdmissionRteDetailsGetByIdPayload {
19
+ admrte_id: string;
20
+ }
21
+ export interface MAdmissionRteDetailsDeletePayload {
22
+ admrte_id: string;
23
+ }
24
+ export interface MAdmissionRteDetailsInsertUpdatePayload extends Partial<AdmissionRteDetailsBase> {
25
+ _id?: string;
26
+ admrte_id?: string;
27
+ }
28
+ /**
29
+ * Response type with populated references
30
+ * Using Omit to avoid type conflicts when overriding properties
31
+ */
32
+ type AdmissionAdmissionRteDetails = Omit<AdmissionRteDetailsBase, 'admrte_admission_id_admap' | 'admrte_rte_category_id_sygms' | 'admrte_income_certificate_id_cyfm' | 'admrte_caste_certificate_id_cyfm' | 'admrte_caste_category_id_sygms' | 'admrte_bpl_card_id_cyfm' | 'admrte_annual_income_currency_id_syic'> & {
33
+ admrte_admission_id_admap?: {
34
+ _id: string;
35
+ admap_application_number?: string;
36
+ admap_first_name?: string;
37
+ admap_last_name?: string;
38
+ } | string;
39
+ admrte_rte_category_id_sygms?: {
40
+ _id: string;
41
+ sygms_code: string;
42
+ sygms_title: string;
43
+ } | string;
44
+ admrte_income_certificate_id_cyfm?: {
45
+ _id: string;
46
+ cyfm_file_name?: string;
47
+ cyfm_file_path?: string;
48
+ } | string;
49
+ admrte_caste_certificate_id_cyfm?: {
50
+ _id: string;
51
+ cyfm_file_name?: string;
52
+ cyfm_file_path?: string;
53
+ } | string;
54
+ admrte_caste_category_id_sygms?: {
55
+ _id: string;
56
+ sygms_code: string;
57
+ sygms_title: string;
58
+ } | string;
59
+ admrte_bpl_card_id_cyfm?: {
60
+ _id: string;
61
+ cyfm_file_name?: string;
62
+ cyfm_file_path?: string;
63
+ } | string;
64
+ admrte_annual_income_currency_id_syic?: {
65
+ _id: string;
66
+ syic_currency_code?: string;
67
+ syic_currency_name?: string;
68
+ } | string;
69
+ admission_entity_access_pass_management?: AdmissionEntityAccessPassManagementBase;
70
+ };
71
+ /**
72
+ * Controller response type for list operations
73
+ */
74
+ interface admissionRteDetailsControllerResponse extends controllerResponse {
75
+ data?: AdmissionAdmissionRteDetails[] | AdmissionAdmissionRteDetails | null;
76
+ totalDocument?: number;
77
+ }
78
+ /**
79
+ * Controller response for single operations
80
+ */
81
+ interface AdmissionRteDetailsResponse extends AdmissionAdmissionRteDetails {
82
+ }
83
+ export { AdmissionAdmissionRteDetails, // Main response type
84
+ AdmissionRteDetailsResponse, // Single response
85
+ admissionRteDetailsControllerResponse };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * Admission RTE (Right to Education) Details Model - Response Types
4
+ *
5
+ * Purpose: Response type definitions with populated references
6
+ * Prefix: admrte_ (admission RTE)
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Admission Vital Information Model - Response Types
3
+ *
4
+ * Purpose: Response type definitions with populated references
5
+ * Prefix: admvi_ (admission vital information)
6
+ */
7
+ import { AdmissionVitalInformationBase } from "../../schema/admission/admission_vital_information";
8
+ import { AdmissionEntityAccessPassManagementBase } from "../../schema/admission/admission_contact_addresses";
9
+ import { controllerResponse } from "../../utilities";
10
+ import { MTableQueries } from "../../common-types/common";
11
+ export interface MAdmissionVitalInformationListPayload extends MTableQueries {
12
+ admvi_admission_id_admap?: string;
13
+ admvi_vital_type_id_sygms?: string;
14
+ admvi_isactive?: boolean;
15
+ query?: string;
16
+ }
17
+ export interface MAdmissionVitalInformationGetByIdPayload {
18
+ admvi_id: string;
19
+ }
20
+ export interface MAdmissionVitalInformationDeletePayload {
21
+ admvi_id: string;
22
+ }
23
+ export interface MAdmissionVitalInformationInsertUpdatePayload extends Partial<AdmissionVitalInformationBase> {
24
+ _id?: string;
25
+ admvi_id?: string;
26
+ }
27
+ /**
28
+ * Response type with populated references
29
+ * Using Omit to avoid type conflicts when overriding properties
30
+ */
31
+ type AdmissionAdmissionVitalInformation = Omit<AdmissionVitalInformationBase, 'admvi_admission_id_admap' | 'admvi_vital_type_id_sygms' | 'admvi_unit_id_sygms' | 'admvi_captured_by_user'> & {
32
+ admvi_admission_id_admap?: {
33
+ _id: string;
34
+ admap_application_number?: string;
35
+ admap_first_name?: string;
36
+ admap_last_name?: string;
37
+ } | string;
38
+ admvi_vital_type_id_sygms?: {
39
+ _id: string;
40
+ sygms_code: string;
41
+ sygms_title: string;
42
+ } | string;
43
+ admvi_unit_id_sygms?: {
44
+ _id: string;
45
+ sygms_code: string;
46
+ sygms_title: string;
47
+ } | string;
48
+ admvi_captured_by_user?: {
49
+ _id: string;
50
+ user_username?: string;
51
+ user_fullname?: string;
52
+ } | string;
53
+ admission_entity_access_pass_management?: AdmissionEntityAccessPassManagementBase;
54
+ };
55
+ /**
56
+ * Controller response type for list operations
57
+ */
58
+ interface admissionVitalInformationControllerResponse extends controllerResponse {
59
+ data?: AdmissionAdmissionVitalInformation[] | AdmissionAdmissionVitalInformation | null;
60
+ totalDocument?: number;
61
+ }
62
+ /**
63
+ * Controller response for single operations
64
+ */
65
+ interface AdmissionVitalInformationResponse extends AdmissionAdmissionVitalInformation {
66
+ }
67
+ export { AdmissionAdmissionVitalInformation, // Main response type
68
+ AdmissionVitalInformationResponse, // Single response
69
+ admissionVitalInformationControllerResponse };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * Admission Vital Information Model - Response Types
4
+ *
5
+ * Purpose: Response type definitions with populated references
6
+ * Prefix: admvi_ (admission vital information)
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,3 +4,5 @@ export * from './admission_application_main';
4
4
  export * from './admission_elective_detail';
5
5
  export * from './admission_confirmation_types';
6
6
  export * from './admission_fee_snapshot';
7
+ export * from './admission_rte_details';
8
+ export * from './admission_vital_information';
@@ -20,3 +20,5 @@ __exportStar(require("./admission_application_main"), exports);
20
20
  __exportStar(require("./admission_elective_detail"), exports);
21
21
  __exportStar(require("./admission_confirmation_types"), exports);
22
22
  __exportStar(require("./admission_fee_snapshot"), exports);
23
+ __exportStar(require("./admission_rte_details"), exports);
24
+ __exportStar(require("./admission_vital_information"), 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 };