cloud-ide-lms-model 1.1.7 → 1.1.9

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.
@@ -1,4 +1,4 @@
1
- import { MTableQueries } from "../../common-types/common";
1
+ import { MTableQueries, MRequestMiddelware } from "../../common-types/common";
2
2
  import { IAcademicsBonafideRequest } from "../../schema/academics/academics_bonafide_request";
3
3
  import { controllerResponse } from "../../utilities";
4
4
  type IBonafideRequestErrorLogger = {
@@ -28,13 +28,13 @@ declare class MBonafideRequest extends MTableQueries {
28
28
  constructor(init: MBonafideRequest);
29
29
  Validate?(): Partial<IBonafideRequestErrorLogger>;
30
30
  }
31
- declare class MBonafideRequestGetByIdPayload {
31
+ declare class MBonafideRequestGetByIdPayload implements MRequestMiddelware {
32
32
  abnr_id?: string;
33
33
  _id?: string;
34
34
  constructor(init: MBonafideRequestGetByIdPayload);
35
35
  Validate?(): Partial<IBonafideRequestGetByIdErrorLogger>;
36
36
  }
37
- declare class MBonafideRequestInsertUpdatePayload implements IAcademicsBonafideRequest {
37
+ declare class MBonafideRequestInsertUpdatePayload implements IAcademicsBonafideRequest, MRequestMiddelware {
38
38
  _id?: string;
39
39
  abnr_request_number?: string;
40
40
  abnr_student_id?: string;
@@ -55,7 +55,7 @@ declare class MBonafideRequestInsertUpdatePayload implements IAcademicsBonafideR
55
55
  });
56
56
  Validate?(): Partial<IBonafideRequestInsertUpdateErrorLogger>;
57
57
  }
58
- declare class MBonafideRequestApprovePayload {
58
+ declare class MBonafideRequestApprovePayload implements MRequestMiddelware {
59
59
  abnr_id?: string;
60
60
  requestId?: string;
61
61
  comments?: string;
@@ -64,7 +64,7 @@ declare class MBonafideRequestApprovePayload {
64
64
  constructor(init: MBonafideRequestApprovePayload);
65
65
  Validate?(): Partial<IBonafideRequestApproveErrorLogger>;
66
66
  }
67
- declare class MBonafideRequestRejectPayload {
67
+ declare class MBonafideRequestRejectPayload implements MRequestMiddelware {
68
68
  abnr_id?: string;
69
69
  requestId?: string;
70
70
  comments?: string;
@@ -74,19 +74,21 @@ declare class MBonafideRequestRejectPayload {
74
74
  constructor(init: MBonafideRequestRejectPayload);
75
75
  Validate?(): Partial<IBonafideRequestRejectErrorLogger>;
76
76
  }
77
- declare class MBonafideRequestGenerateCertificatePayload {
77
+ declare class MBonafideRequestGenerateCertificatePayload implements MRequestMiddelware {
78
78
  abnr_id?: string;
79
79
  requestId?: string;
80
80
  generatedByUser?: string;
81
81
  constructor(init: MBonafideRequestGenerateCertificatePayload);
82
+ Validate?(): any;
82
83
  }
83
- declare class MBonafideRequestUploadStampedCopyPayload {
84
+ declare class MBonafideRequestUploadStampedCopyPayload implements MRequestMiddelware {
84
85
  abnr_id?: string;
85
86
  requestId?: string;
86
87
  stampedCopyFileId?: string;
87
88
  stampedCopyUrl?: string;
88
89
  uploadedBy?: string;
89
90
  constructor(init: MBonafideRequestUploadStampedCopyPayload);
91
+ Validate?(): any;
90
92
  }
91
93
  interface bonafideRequestControllerResponse extends controllerResponse {
92
94
  data?: any[] | any | null;
@@ -68,11 +68,17 @@ class MBonafideRequestGenerateCertificatePayload {
68
68
  constructor(init) {
69
69
  Object.assign(this, init);
70
70
  }
71
+ Validate() {
72
+ return {};
73
+ }
71
74
  }
72
75
  exports.MBonafideRequestGenerateCertificatePayload = MBonafideRequestGenerateCertificatePayload;
73
76
  class MBonafideRequestUploadStampedCopyPayload {
74
77
  constructor(init) {
75
78
  Object.assign(this, init);
76
79
  }
80
+ Validate() {
81
+ return {};
82
+ }
77
83
  }
78
84
  exports.MBonafideRequestUploadStampedCopyPayload = MBonafideRequestUploadStampedCopyPayload;
@@ -1,4 +1,4 @@
1
- import { MTableQueries } from "../../common-types/common";
1
+ import { MTableQueries, MRequestMiddelware } from "../../common-types/common";
2
2
  import { ICoreWorkflowConfig, ICoreWorkflowApproverRules } from "../../schema";
3
3
  import { controllerResponse } from "../../utilities";
4
4
  type IWorkflowConfigErrorLogger = {
@@ -29,14 +29,14 @@ declare class MWorkflowConfig extends MTableQueries {
29
29
  constructor(init: MWorkflowConfig);
30
30
  Validate?(): Partial<IWorkflowConfigErrorLogger>;
31
31
  }
32
- declare class MWorkflowConfigGetByIdPayload {
32
+ declare class MWorkflowConfigGetByIdPayload implements MRequestMiddelware {
33
33
  wfcfg_id?: string;
34
34
  wfcfg_workflow_id_wfrg?: string;
35
35
  _id?: string;
36
36
  constructor(init: MWorkflowConfigGetByIdPayload);
37
37
  Validate?(): Partial<IWorkflowConfigGetByIdErrorLogger>;
38
38
  }
39
- declare class MWorkflowConfigInsertUpdatePayload implements ICoreWorkflowConfig {
39
+ declare class MWorkflowConfigInsertUpdatePayload implements ICoreWorkflowConfig, MRequestMiddelware {
40
40
  _id?: string;
41
41
  wfcfg_workflow_id_wfrg?: string;
42
42
  wfcfg_step_number?: number;
@@ -62,7 +62,7 @@ declare class MWorkflowConfigInsertUpdatePayload implements ICoreWorkflowConfig
62
62
  });
63
63
  Validate?(): Partial<IWorkflowConfigInsertUpdateErrorLogger>;
64
64
  }
65
- declare class MWorkflowStepInsertUpdatePayload {
65
+ declare class MWorkflowStepInsertUpdatePayload implements MRequestMiddelware {
66
66
  wfstp_id?: string;
67
67
  wfstp_workflow_config_id_wfcfg?: string;
68
68
  wfstp_step_name?: string;
@@ -80,13 +80,13 @@ declare class MWorkflowStepInsertUpdatePayload {
80
80
  constructor(init: MWorkflowStepInsertUpdatePayload);
81
81
  Validate?(): Partial<IWorkflowStepInsertUpdateErrorLogger>;
82
82
  }
83
- declare class MWorkflowStepDeletePayload {
83
+ declare class MWorkflowStepDeletePayload implements MRequestMiddelware {
84
84
  wfstp_id?: string;
85
85
  _id?: string;
86
86
  constructor(init: MWorkflowStepDeletePayload);
87
87
  Validate?(): Partial<IWorkflowStepDeleteErrorLogger>;
88
88
  }
89
- declare class MWorkflowApproverRuleInsertUpdatePayload implements ICoreWorkflowApproverRules {
89
+ declare class MWorkflowApproverRuleInsertUpdatePayload implements ICoreWorkflowApproverRules, MRequestMiddelware {
90
90
  _id?: string;
91
91
  wfar_workflow_config_id_wfcfg?: string;
92
92
  wfar_approval_group_id?: string;
@@ -107,16 +107,17 @@ declare class MWorkflowApproverRuleInsertUpdatePayload implements ICoreWorkflowA
107
107
  });
108
108
  Validate?(): Partial<IWorkflowApproverRuleInsertUpdateErrorLogger>;
109
109
  }
110
- declare class MWorkflowApproverRuleDeletePayload {
110
+ declare class MWorkflowApproverRuleDeletePayload implements MRequestMiddelware {
111
111
  wfar_id?: string;
112
112
  _id?: string;
113
113
  constructor(init: MWorkflowApproverRuleDeletePayload);
114
114
  Validate?(): Partial<IWorkflowApproverRuleDeleteErrorLogger>;
115
115
  }
116
- declare class MWorkflowApproverRuleGetPayload {
116
+ declare class MWorkflowApproverRuleGetPayload implements MRequestMiddelware {
117
117
  wfar_workflow_config_id_wfcfg?: string;
118
118
  wfar_workflow_step_id_wfstp?: string;
119
119
  constructor(init: MWorkflowApproverRuleGetPayload);
120
+ Validate?(): any;
120
121
  }
121
122
  interface workflowConfigControllerResponse extends controllerResponse {
122
123
  data?: any[] | any | null;
@@ -88,5 +88,8 @@ class MWorkflowApproverRuleGetPayload {
88
88
  constructor(init) {
89
89
  Object.assign(this, init);
90
90
  }
91
+ Validate() {
92
+ return {};
93
+ }
91
94
  }
92
95
  exports.MWorkflowApproverRuleGetPayload = MWorkflowApproverRuleGetPayload;
@@ -1,53 +1,73 @@
1
1
  import { controllerResponse } from "../../utilities";
2
- declare class MWorkflowInitializePayload {
2
+ import { MRequestMiddelware } from "../../common-types/common";
3
+ declare class MWorkflowInitializePayload implements MRequestMiddelware {
3
4
  workflowId?: string;
4
5
  wfrg_id?: string;
6
+ requestTable?: string;
7
+ requestId?: string;
5
8
  entityId?: string;
6
9
  requestData?: any;
7
10
  initiatedBy?: string;
11
+ requestedByUser?: string;
8
12
  constructor(init: MWorkflowInitializePayload);
13
+ Validate?(): any;
9
14
  }
10
- declare class MWorkflowActionPayload {
15
+ declare class MWorkflowActionPayload implements MRequestMiddelware {
11
16
  workflowId?: string;
12
17
  wfrg_id?: string;
18
+ requestTable?: string;
19
+ requestId?: string;
13
20
  entityId?: string;
14
21
  stepId?: string;
15
22
  wfstp_id?: string;
16
- action?: 'approve' | 'reject' | 'return';
23
+ stepNumber?: number;
24
+ action?: 'approve' | 'reject' | 'return' | 'request-changes' | 'edit';
25
+ actionType?: 'approve' | 'reject' | 'request-changes' | 'edit';
17
26
  comments?: string;
18
27
  actionBy?: string;
28
+ actionByUser?: string;
19
29
  editedData?: any;
30
+ editedValues?: any;
31
+ attachments?: string[];
20
32
  constructor(init: MWorkflowActionPayload);
33
+ Validate?(): any;
21
34
  }
22
- declare class MWorkflowStatusPayload {
35
+ declare class MWorkflowStatusPayload implements MRequestMiddelware {
23
36
  workflowId?: string;
24
37
  wfrg_id?: string;
25
38
  entityId?: string;
26
39
  requestId?: string;
27
40
  requestTable?: string;
28
41
  constructor(init: MWorkflowStatusPayload);
42
+ Validate?(): any;
29
43
  }
30
- declare class MWorkflowStatusBatchPayload {
44
+ declare class MWorkflowStatusBatchPayload implements MRequestMiddelware {
31
45
  entityIds?: string[];
32
46
  requestIds?: string[];
33
47
  requestTable?: string;
34
48
  constructor(init: MWorkflowStatusBatchPayload);
49
+ Validate?(): any;
35
50
  }
36
- declare class MWorkflowCanApprovePayload {
51
+ declare class MWorkflowCanApprovePayload implements MRequestMiddelware {
37
52
  workflowId?: string;
38
53
  wfrg_id?: string;
54
+ requestTable?: string;
55
+ requestId?: string;
39
56
  entityId?: string;
57
+ stepNumber?: number;
40
58
  userId?: string;
41
59
  actionBy?: string;
42
60
  constructor(init: MWorkflowCanApprovePayload);
61
+ Validate?(): any;
43
62
  }
44
- declare class MWorkflowHistoryPayload {
63
+ declare class MWorkflowHistoryPayload implements MRequestMiddelware {
45
64
  workflowId?: string;
46
65
  wfrg_id?: string;
47
66
  entityId?: string;
48
67
  requestId?: string;
49
68
  maskApprovers?: boolean;
50
69
  constructor(init: MWorkflowHistoryPayload);
70
+ Validate?(): any;
51
71
  }
52
72
  interface workflowEngineControllerResponse extends controllerResponse {
53
73
  data?: any | null;
@@ -6,35 +6,53 @@ class MWorkflowInitializePayload {
6
6
  constructor(init) {
7
7
  Object.assign(this, init);
8
8
  }
9
+ Validate() {
10
+ return {};
11
+ }
9
12
  }
10
13
  exports.MWorkflowInitializePayload = MWorkflowInitializePayload;
11
14
  class MWorkflowActionPayload {
12
15
  constructor(init) {
13
16
  Object.assign(this, init);
14
17
  }
18
+ Validate() {
19
+ return {};
20
+ }
15
21
  }
16
22
  exports.MWorkflowActionPayload = MWorkflowActionPayload;
17
23
  class MWorkflowStatusPayload {
18
24
  constructor(init) {
19
25
  Object.assign(this, init);
20
26
  }
27
+ Validate() {
28
+ return {};
29
+ }
21
30
  }
22
31
  exports.MWorkflowStatusPayload = MWorkflowStatusPayload;
23
32
  class MWorkflowStatusBatchPayload {
24
33
  constructor(init) {
25
34
  Object.assign(this, init);
26
35
  }
36
+ Validate() {
37
+ return {};
38
+ }
27
39
  }
28
40
  exports.MWorkflowStatusBatchPayload = MWorkflowStatusBatchPayload;
29
41
  class MWorkflowCanApprovePayload {
30
42
  constructor(init) {
31
43
  Object.assign(this, init);
32
44
  }
45
+ Validate() {
46
+ return {};
47
+ }
33
48
  }
34
49
  exports.MWorkflowCanApprovePayload = MWorkflowCanApprovePayload;
35
50
  class MWorkflowHistoryPayload {
36
51
  constructor(init) {
37
52
  Object.assign(this, init);
38
53
  }
54
+ Validate() {
55
+ return {};
56
+ }
39
57
  }
40
58
  exports.MWorkflowHistoryPayload = MWorkflowHistoryPayload;
@@ -1,4 +1,4 @@
1
- import { MTableQueries } from "../../common-types/common";
1
+ import { MTableQueries, MRequestMiddelware } from "../../common-types/common";
2
2
  import { ICoreWorkflowRegistry } from "../../schema/core/core_workflow_registry";
3
3
  import { controllerResponse } from "../../utilities";
4
4
  type IWorkflowRegistryErrorLogger = {
@@ -40,19 +40,19 @@ declare class MWorkflowRegistry extends MTableQueries {
40
40
  constructor(init: MWorkflowRegistry);
41
41
  Validate?(): Partial<IWorkflowRegistryErrorLogger>;
42
42
  }
43
- declare class MWorkflowRegistryGetByIdPayload {
43
+ declare class MWorkflowRegistryGetByIdPayload implements MRequestMiddelware {
44
44
  wfrg_id?: string;
45
45
  _id?: string;
46
46
  constructor(init: MWorkflowRegistryGetByIdPayload);
47
47
  Validate?(): Partial<IWorkflowRegistryGetByIdErrorLogger>;
48
48
  }
49
- declare class MWorkflowRegistryDeletePayload {
49
+ declare class MWorkflowRegistryDeletePayload implements MRequestMiddelware {
50
50
  wfrg_id?: string;
51
51
  _id?: string;
52
52
  constructor(init: MWorkflowRegistryDeletePayload);
53
53
  Validate?(): Partial<IWorkflowRegistryDeleteErrorLogger>;
54
54
  }
55
- declare class MWorkflowRegistryInsertUpdatePayload implements ICoreWorkflowRegistry {
55
+ declare class MWorkflowRegistryInsertUpdatePayload implements ICoreWorkflowRegistry, MRequestMiddelware {
56
56
  _id?: string;
57
57
  wfrg_workflow_code?: string;
58
58
  wfrg_title?: string;
@@ -81,20 +81,23 @@ declare class MWorkflowRegistryInsertUpdatePayload implements ICoreWorkflowRegis
81
81
  });
82
82
  Validate?(): Partial<IWorkflowRegistryInsertUpdateErrorLogger>;
83
83
  }
84
- declare class MWorkflowRegistryByPagePayload {
84
+ declare class MWorkflowRegistryByPagePayload implements MRequestMiddelware {
85
85
  wfrg_page_id_sypg?: string;
86
86
  wfrg_entity_id_syen?: string;
87
87
  constructor(init: MWorkflowRegistryByPagePayload);
88
+ Validate?(): any;
88
89
  }
89
- declare class MWorkflowRegistryByMenuPayload {
90
+ declare class MWorkflowRegistryByMenuPayload implements MRequestMiddelware {
90
91
  wfrg_menu_id_syme?: string;
91
92
  wfrg_entity_id_syen?: string;
92
93
  constructor(init: MWorkflowRegistryByMenuPayload);
94
+ Validate?(): any;
93
95
  }
94
- declare class MWorkflowRegistryByCategoryPayload {
96
+ declare class MWorkflowRegistryByCategoryPayload implements MRequestMiddelware {
95
97
  wfrg_category_id_sygms?: string;
96
98
  wfrg_entity_id_syen?: string;
97
99
  constructor(init: MWorkflowRegistryByCategoryPayload);
100
+ Validate?(): any;
98
101
  }
99
102
  interface workflowRegistryControllerResponse extends controllerResponse {
100
103
  data?: any[] | any | null;
@@ -55,17 +55,26 @@ class MWorkflowRegistryByPagePayload {
55
55
  constructor(init) {
56
56
  Object.assign(this, init);
57
57
  }
58
+ Validate() {
59
+ return {};
60
+ }
58
61
  }
59
62
  exports.MWorkflowRegistryByPagePayload = MWorkflowRegistryByPagePayload;
60
63
  class MWorkflowRegistryByMenuPayload {
61
64
  constructor(init) {
62
65
  Object.assign(this, init);
63
66
  }
67
+ Validate() {
68
+ return {};
69
+ }
64
70
  }
65
71
  exports.MWorkflowRegistryByMenuPayload = MWorkflowRegistryByMenuPayload;
66
72
  class MWorkflowRegistryByCategoryPayload {
67
73
  constructor(init) {
68
74
  Object.assign(this, init);
69
75
  }
76
+ Validate() {
77
+ return {};
78
+ }
70
79
  }
71
80
  exports.MWorkflowRegistryByCategoryPayload = MWorkflowRegistryByCategoryPayload;
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.7",
8
+ "version": "1.1.9",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",