cloud-ide-lms-model 1.1.51 → 1.1.53
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/core/core_workflow_config.d.ts +7 -0
- package/lib/model/core/core_workflow_registry.d.ts +22 -1
- package/lib/model/core/core_workflow_registry.js +15 -1
- package/lib/schema/core/core_workflow_config.d.ts +4 -0
- package/lib/schema/core/core_workflow_registry.d.ts +3 -0
- package/package.json +1 -1
|
@@ -56,6 +56,10 @@ declare class MWorkflowConfigInsertUpdatePayload implements ICoreWorkflowConfig,
|
|
|
56
56
|
wfcfg_notify_all_approvers?: boolean;
|
|
57
57
|
wfcfg_valid_from_date?: Date;
|
|
58
58
|
wfcfg_valid_to_date?: Date;
|
|
59
|
+
wfcfg_status_on_approval?: string;
|
|
60
|
+
wfcfg_status_on_reject?: string;
|
|
61
|
+
wfcfg_field_permissions?: Record<string, any>;
|
|
62
|
+
wfcfg_integration_webhook?: string;
|
|
59
63
|
wfcfg_isactive?: boolean;
|
|
60
64
|
constructor(init: Partial<ICoreWorkflowConfig> & {
|
|
61
65
|
_id?: string;
|
|
@@ -74,6 +78,9 @@ declare class MWorkflowStepInsertUpdatePayload implements MRequestMiddelware {
|
|
|
74
78
|
wfstp_allow_reject?: boolean;
|
|
75
79
|
wfstp_allow_return?: boolean;
|
|
76
80
|
wfstp_conditional_routing?: string;
|
|
81
|
+
wfstp_status_on_approval?: string;
|
|
82
|
+
wfstp_status_on_reject?: string;
|
|
83
|
+
wfstp_field_permissions?: Record<string, any>;
|
|
77
84
|
wfstp_valid_from_date?: Date;
|
|
78
85
|
wfstp_valid_to_date?: Date;
|
|
79
86
|
_id?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
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
|
+
import { MWorkflowConfigInsertUpdatePayload, MWorkflowStepInsertUpdatePayload } from "./core_workflow_config";
|
|
4
5
|
type IWorkflowRegistryErrorLogger = {
|
|
5
6
|
[key in keyof MWorkflowRegistry]: string;
|
|
6
7
|
};
|
|
@@ -36,6 +37,9 @@ declare class MWorkflowRegistry extends MTableQueries {
|
|
|
36
37
|
wfrg_notify_approvers_on_final_status?: boolean;
|
|
37
38
|
wfrg_show_approver_names?: boolean;
|
|
38
39
|
wfrg_mask_approver_info?: boolean;
|
|
40
|
+
wfrg_target_status_field?: string;
|
|
41
|
+
wfrg_initial_status?: string;
|
|
42
|
+
wfrg_final_status?: string;
|
|
39
43
|
query?: string;
|
|
40
44
|
constructor(init: MWorkflowRegistry);
|
|
41
45
|
Validate?(): Partial<IWorkflowRegistryErrorLogger>;
|
|
@@ -75,6 +79,9 @@ declare class MWorkflowRegistryInsertUpdatePayload implements ICoreWorkflowRegis
|
|
|
75
79
|
wfrg_notify_approvers_on_final_status?: boolean;
|
|
76
80
|
wfrg_show_approver_names?: boolean;
|
|
77
81
|
wfrg_mask_approver_info?: boolean;
|
|
82
|
+
wfrg_target_status_field?: string;
|
|
83
|
+
wfrg_initial_status?: string;
|
|
84
|
+
wfrg_final_status?: string;
|
|
78
85
|
wfrg_configuration?: Record<string, any>;
|
|
79
86
|
constructor(init: Partial<ICoreWorkflowRegistry> & {
|
|
80
87
|
_id?: string;
|
|
@@ -93,6 +100,13 @@ declare class MWorkflowRegistryByMenuPayload implements MRequestMiddelware {
|
|
|
93
100
|
constructor(init: MWorkflowRegistryByMenuPayload);
|
|
94
101
|
Validate?(): any;
|
|
95
102
|
}
|
|
103
|
+
declare class MWorkflowBulkSavePayload implements MRequestMiddelware {
|
|
104
|
+
registry: MWorkflowRegistryInsertUpdatePayload;
|
|
105
|
+
config: MWorkflowConfigInsertUpdatePayload;
|
|
106
|
+
steps?: MWorkflowStepInsertUpdatePayload[];
|
|
107
|
+
constructor(init: MWorkflowBulkSavePayload);
|
|
108
|
+
Validate?(): any;
|
|
109
|
+
}
|
|
96
110
|
declare class MWorkflowRegistryByCategoryPayload implements MRequestMiddelware {
|
|
97
111
|
wfrg_category_id_sygms?: string;
|
|
98
112
|
wfrg_entity_id_syen?: string;
|
|
@@ -113,4 +127,11 @@ interface workflowRegistryInsertUpdateControllerResponse extends controllerRespo
|
|
|
113
127
|
interface workflowRegistryDeleteControllerResponse extends controllerResponse {
|
|
114
128
|
data?: any | null;
|
|
115
129
|
}
|
|
116
|
-
|
|
130
|
+
interface workflowBulkSaveControllerResponse extends controllerResponse {
|
|
131
|
+
data?: {
|
|
132
|
+
registryId: string;
|
|
133
|
+
configId?: string;
|
|
134
|
+
stepIds?: string[];
|
|
135
|
+
} | null;
|
|
136
|
+
}
|
|
137
|
+
export { MWorkflowRegistry, MWorkflowRegistryGetByIdPayload, MWorkflowRegistryDeletePayload, MWorkflowRegistryInsertUpdatePayload, MWorkflowRegistryByPagePayload, MWorkflowRegistryByMenuPayload, MWorkflowRegistryByCategoryPayload, MWorkflowBulkSavePayload, workflowRegistryControllerResponse, workflowRegistryByIdControllerResponse, workflowRegistryInsertUpdateControllerResponse, workflowRegistryDeleteControllerResponse, workflowBulkSaveControllerResponse };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MWorkflowRegistryByCategoryPayload = exports.MWorkflowRegistryByMenuPayload = exports.MWorkflowRegistryByPagePayload = exports.MWorkflowRegistryInsertUpdatePayload = exports.MWorkflowRegistryDeletePayload = exports.MWorkflowRegistryGetByIdPayload = exports.MWorkflowRegistry = void 0;
|
|
3
|
+
exports.MWorkflowBulkSavePayload = exports.MWorkflowRegistryByCategoryPayload = exports.MWorkflowRegistryByMenuPayload = exports.MWorkflowRegistryByPagePayload = exports.MWorkflowRegistryInsertUpdatePayload = exports.MWorkflowRegistryDeletePayload = exports.MWorkflowRegistryGetByIdPayload = exports.MWorkflowRegistry = void 0;
|
|
4
4
|
const common_1 = require("../../common-types/common");
|
|
5
5
|
/* INTERFACE END */
|
|
6
6
|
/* MODEL START */
|
|
@@ -69,6 +69,20 @@ class MWorkflowRegistryByMenuPayload {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
exports.MWorkflowRegistryByMenuPayload = MWorkflowRegistryByMenuPayload;
|
|
72
|
+
class MWorkflowBulkSavePayload {
|
|
73
|
+
constructor(init) {
|
|
74
|
+
Object.assign(this, init);
|
|
75
|
+
}
|
|
76
|
+
Validate() {
|
|
77
|
+
let errorLogger = {};
|
|
78
|
+
if (!this.registry)
|
|
79
|
+
errorLogger.registry = "Registry is required";
|
|
80
|
+
if (!this.config)
|
|
81
|
+
errorLogger.config = "Configuration is required";
|
|
82
|
+
return errorLogger;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.MWorkflowBulkSavePayload = MWorkflowBulkSavePayload;
|
|
72
86
|
class MWorkflowRegistryByCategoryPayload {
|
|
73
87
|
constructor(init) {
|
|
74
88
|
Object.assign(this, init);
|
|
@@ -18,6 +18,10 @@ declare class ICoreWorkflowConfig {
|
|
|
18
18
|
wfcfg_notify_all_approvers?: boolean;
|
|
19
19
|
wfcfg_valid_from_date?: Date;
|
|
20
20
|
wfcfg_valid_to_date?: Date;
|
|
21
|
+
wfcfg_status_on_approval?: string;
|
|
22
|
+
wfcfg_status_on_reject?: string;
|
|
23
|
+
wfcfg_field_permissions?: Record<string, any>;
|
|
24
|
+
wfcfg_integration_webhook?: string;
|
|
21
25
|
wfcfg_isactive?: boolean;
|
|
22
26
|
}
|
|
23
27
|
export { ICoreWorkflowConfig };
|
|
@@ -21,6 +21,9 @@ declare class ICoreWorkflowRegistry {
|
|
|
21
21
|
wfrg_notify_approvers_on_final_status?: boolean;
|
|
22
22
|
wfrg_show_approver_names?: boolean;
|
|
23
23
|
wfrg_mask_approver_info?: boolean;
|
|
24
|
+
wfrg_target_status_field?: string;
|
|
25
|
+
wfrg_initial_status?: string;
|
|
26
|
+
wfrg_final_status?: string;
|
|
24
27
|
wfrg_configuration?: Record<string, any>;
|
|
25
28
|
}
|
|
26
29
|
export { ICoreWorkflowRegistry };
|