@objectstack/plugin-approvals 10.2.0 → 11.0.0
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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +87 -0
- package/LICENSE +202 -93
- package/dist/index.d.mts +94 -9
- package/dist/index.d.ts +94 -9
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/approval-service.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@objectstack/plugin-approvals",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Multi-step approval engine for ObjectStack — sys_approval_process + sys_approval_request + sys_approval_action + IApprovalService.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@objectstack/core": "
|
|
17
|
-
"@objectstack/formula": "
|
|
18
|
-
"@objectstack/metadata-core": "
|
|
19
|
-
"@objectstack/platform-objects": "
|
|
20
|
-
"@objectstack/spec": "
|
|
16
|
+
"@objectstack/core": "11.0.0",
|
|
17
|
+
"@objectstack/formula": "11.0.0",
|
|
18
|
+
"@objectstack/metadata-core": "11.0.0",
|
|
19
|
+
"@objectstack/platform-objects": "11.0.0",
|
|
20
|
+
"@objectstack/spec": "11.0.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^26.0.0",
|
|
24
24
|
"typescript": "^6.0.3",
|
|
25
25
|
"vitest": "^4.1.9",
|
|
26
|
-
"@objectstack/service-automation": "
|
|
26
|
+
"@objectstack/service-automation": "11.0.0"
|
|
27
27
|
},
|
|
28
28
|
"keywords": [
|
|
29
29
|
"objectstack",
|
package/src/approval-service.ts
CHANGED
|
@@ -1478,7 +1478,7 @@ export class ApprovalService implements IApprovalService {
|
|
|
1478
1478
|
const fields = schema?.fields ?? {};
|
|
1479
1479
|
const out: Array<{ key: string; reference: string }> = [];
|
|
1480
1480
|
for (const [key, f] of Object.entries<any>(fields)) {
|
|
1481
|
-
if ((f?.type === 'lookup' || f?.type === 'master_detail') && f?.reference) {
|
|
1481
|
+
if ((f?.type === 'lookup' || f?.type === 'master_detail' || f?.type === 'user') && f?.reference) {
|
|
1482
1482
|
out.push({ key, reference: String(f.reference) });
|
|
1483
1483
|
}
|
|
1484
1484
|
}
|