@stalfh233/omc-fake-platform 0.4.55 → 0.4.57
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/dist/businessrule.js +3 -0
- package/dist/field.js +4 -1
- package/dist/state.d.ts +2 -0
- package/package.json +2 -2
package/dist/businessrule.js
CHANGED
|
@@ -54,6 +54,9 @@ export const businessRuleRoute = (ctx, input) => {
|
|
|
54
54
|
name: rule.name,
|
|
55
55
|
enabled: rule.enabled,
|
|
56
56
|
status: rule.status ?? (rule.enabled ? RULE_STATUS.enabled : RULE_STATUS.disabled),
|
|
57
|
+
// Live fidelity: the list face carries defaultRule (platform preset
|
|
58
|
+
// trigger rows answer true); consumers derive `preset` from it.
|
|
59
|
+
defaultRule: rule.defaultRule ?? false,
|
|
57
60
|
priority: rule.priority ?? 0,
|
|
58
61
|
createdTime: rule.createdTime ?? 1730000000000,
|
|
59
62
|
creator: rule.creator ?? "fake-user",
|
package/dist/field.js
CHANGED
|
@@ -16,7 +16,10 @@ export const fieldRoute = (ctx, input) => {
|
|
|
16
16
|
options: field.options ?? null,
|
|
17
17
|
...(field.relativeCode ? { relativeCode: field.relativeCode } : {}),
|
|
18
18
|
...(field.relativePropertyCode ? { relativePropertyCode: field.relativePropertyCode } : {}),
|
|
19
|
-
|
|
19
|
+
// Live 2026-10-19 fidelity: the platform carries `subSchema: null` on
|
|
20
|
+
// EVERY row (scalars included); omitting the key hid a false
|
|
21
|
+
// child-table classification in workflow.update.
|
|
22
|
+
subSchema: field.subSchema ?? null,
|
|
20
23
|
}))
|
|
21
24
|
.filter((row) => (q.isPublish === "true" ? ctx.state.fields.get(`${q.schemaCode}#${row.code}`)?.published : !ctx.state.fields.get(`${q.schemaCode}#${row.code}`)?.published));
|
|
22
25
|
return rows;
|
package/dist/state.d.ts
CHANGED
|
@@ -90,6 +90,8 @@ export interface FakeRule {
|
|
|
90
90
|
schedulerSetting?: string | null;
|
|
91
91
|
/** Ticket 109 platform fidelity: each save mints a new version; the row's version counter (1-based). */
|
|
92
92
|
ruleVersion?: number;
|
|
93
|
+
/** Platform preset trigger rule (Create/Update/Load/…); the list face exposes it. */
|
|
94
|
+
defaultRule?: boolean;
|
|
93
95
|
}
|
|
94
96
|
export interface FakeDataRule {
|
|
95
97
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stalfh233/omc-fake-platform",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.57",
|
|
4
4
|
"description": "OMC 的内存假 CloudPivot 平台(wire 接缝的第二个适配器)+ HTTP 假服务器——@stalfh233/omc-cli 的测试与 bench 基准基座",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build": "tsc --project tsconfig.build.json"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"omc-core": "0.4.
|
|
21
|
+
"omc-core": "0.4.57"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">=22.13"
|