cloud-ide-model-schema 1.1.173 → 1.1.175
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/schema/app/app_registration_mst.js +0 -1
- package/lib/schema/app/app_store_provider_mst.js +0 -1
- package/lib/schema/core/core_workflow_approver_rules.js +2 -2
- package/lib/schema/core/core_workflow_config.js +19 -0
- package/lib/schema/core/core_workflow_registry.js +15 -0
- package/package.json +1 -1
|
@@ -76,7 +76,6 @@ var app_registration_mst = new mongoose_1.Schema({
|
|
|
76
76
|
}
|
|
77
77
|
}, { collection: 'app_registration_mst', timestamps: { createdAt: 'appreg_created_at', updatedAt: 'appreg_updated_at' } });
|
|
78
78
|
// Indexes for performance optimization
|
|
79
|
-
app_registration_mst.index({ appreg_app_id: 1 }, { unique: true });
|
|
80
79
|
app_registration_mst.index({ appreg_registration_status_id_sygms: 1 });
|
|
81
80
|
app_registration_mst.index({ appreg_registered_by_id_auth: 1 });
|
|
82
81
|
app_registration_mst.index({ appreg_workflow_id_wfrg: 1, appreg_current_step: 1 });
|
|
@@ -62,7 +62,6 @@ var app_store_provider_mst = new mongoose_1.Schema({
|
|
|
62
62
|
}
|
|
63
63
|
}, { collection: 'app_store_provider_mst', timestamps: { createdAt: 'appstore_created_at', updatedAt: 'appstore_updated_at' } });
|
|
64
64
|
// Indexes for performance optimization
|
|
65
|
-
app_store_provider_mst.index({ appstore_store_provider_code: 1 }, { unique: true });
|
|
66
65
|
app_store_provider_mst.index({ appstore_store_type_id_sygms: 1 });
|
|
67
66
|
app_store_provider_mst.index({ appstore_is_active: 1 });
|
|
68
67
|
var CAppStoreProviderMst = mongoose_1.default.model("app_store_provider_mst", app_store_provider_mst);
|
|
@@ -4,7 +4,7 @@ exports.CCoreWorkflowApproverRules = void 0;
|
|
|
4
4
|
var mongoose_1 = require("mongoose");
|
|
5
5
|
/* SCHEMA START */
|
|
6
6
|
var core_workflow_approver_rules = new mongoose_1.Schema({
|
|
7
|
-
|
|
7
|
+
wfar_workflow_step_id_wfstp: {
|
|
8
8
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
9
9
|
ref: "core_workflow_config",
|
|
10
10
|
required: true,
|
|
@@ -76,7 +76,7 @@ var core_workflow_approver_rules = new mongoose_1.Schema({
|
|
|
76
76
|
}
|
|
77
77
|
}, { collection: 'core_workflow_approver_rules' });
|
|
78
78
|
// Indexes for performance optimization
|
|
79
|
-
core_workflow_approver_rules.index({
|
|
79
|
+
core_workflow_approver_rules.index({ wfar_workflow_step_id_wfstp: 1, wfar_isactive: 1 });
|
|
80
80
|
core_workflow_approver_rules.index({ wfar_approval_group_id: 1 });
|
|
81
81
|
core_workflow_approver_rules.index({ wfar_rule_type_id_sygms: 1, wfar_rule_value: 1 });
|
|
82
82
|
var CCoreWorkflowApproverRules = mongoose_1.default.model("core_workflow_approver_rules", core_workflow_approver_rules);
|
|
@@ -67,6 +67,25 @@ var core_workflow_config = new mongoose_1.Schema({
|
|
|
67
67
|
type: Date,
|
|
68
68
|
comment: "Step valid to date (for time-based rules)"
|
|
69
69
|
},
|
|
70
|
+
wfcfg_status_on_approval: {
|
|
71
|
+
type: String,
|
|
72
|
+
trim: true,
|
|
73
|
+
comment: "Status to set in target document when this step is approved"
|
|
74
|
+
},
|
|
75
|
+
wfcfg_status_on_reject: {
|
|
76
|
+
type: String,
|
|
77
|
+
trim: true,
|
|
78
|
+
comment: "Status to set in target document when this step is rejected"
|
|
79
|
+
},
|
|
80
|
+
wfcfg_field_permissions: {
|
|
81
|
+
type: Object,
|
|
82
|
+
comment: "Field level permissions (Read-only/Editable/Hidden) for this step"
|
|
83
|
+
},
|
|
84
|
+
wfcfg_integration_webhook: {
|
|
85
|
+
type: String,
|
|
86
|
+
trim: true,
|
|
87
|
+
comment: "URL to call after this step is completed"
|
|
88
|
+
},
|
|
70
89
|
wfcfg_isactive: {
|
|
71
90
|
type: Boolean,
|
|
72
91
|
default: true,
|
|
@@ -113,6 +113,21 @@ var core_workflow_registry = new mongoose_1.Schema({
|
|
|
113
113
|
default: false,
|
|
114
114
|
comment: "Mask approver information (for sensitive cases)"
|
|
115
115
|
},
|
|
116
|
+
wfrg_target_status_field: {
|
|
117
|
+
type: String,
|
|
118
|
+
trim: true,
|
|
119
|
+
comment: "Path to the status field in the target collection (e.g., 'bfnd_status')"
|
|
120
|
+
},
|
|
121
|
+
wfrg_initial_status: {
|
|
122
|
+
type: String,
|
|
123
|
+
trim: true,
|
|
124
|
+
comment: "Status to set in target document when workflow initializes"
|
|
125
|
+
},
|
|
126
|
+
wfrg_final_status: {
|
|
127
|
+
type: String,
|
|
128
|
+
trim: true,
|
|
129
|
+
comment: "Status to set in target document when workflow completes (approved)"
|
|
130
|
+
},
|
|
116
131
|
wfrg_configuration: {
|
|
117
132
|
type: Object,
|
|
118
133
|
comment: "Additional JSON configuration"
|
package/package.json
CHANGED