@objectstack/plugin-approvals 7.3.0 → 7.4.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 +75 -0
- package/dist/index.d.mts +6431 -107
- package/dist/index.d.ts +6431 -107
- package/dist/index.js +1237 -776
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1244 -779
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -7
- package/scripts/i18n-extract.config.ts +32 -0
- package/src/approval-node.test.ts +182 -0
- package/src/approval-node.ts +131 -0
- package/src/approval-service.test.ts +205 -304
- package/src/approval-service.ts +208 -491
- package/src/approvals-plugin.ts +61 -53
- package/src/index.ts +12 -11
- package/src/lifecycle-hooks.ts +67 -202
- package/src/nav-contribution.test.ts +46 -0
- package/src/sys-approval-action.object.ts +120 -0
- package/src/sys-approval-request.object.ts +227 -0
- package/src/translations/en.objects.generated.ts +156 -0
- package/src/translations/es-ES.objects.generated.ts +156 -0
- package/src/translations/index.ts +23 -0
- package/src/translations/ja-JP.objects.generated.ts +156 -0
- package/src/translations/zh-CN.objects.generated.ts +156 -0
- package/src/action-executor.ts +0 -313
- package/src/phase-b.test.ts +0 -263
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @objectstack/plugin-approvals@7.
|
|
2
|
+
> @objectstack/plugin-approvals@7.4.0 build /home/runner/work/framework/framework/packages/plugins/plugin-approvals
|
|
3
3
|
> tsup --config ../../../tsup.config.ts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m55.86 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m97.27 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 148ms
|
|
16
|
+
[32mCJS[39m [1mdist/index.js [22m[32m57.19 KB[39m
|
|
17
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m98.45 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 189ms
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
21
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
22
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 20444ms
|
|
21
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m286.36 KB[39m
|
|
22
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m286.36 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,80 @@
|
|
|
1
1
|
# @objectstack/plugin-approvals
|
|
2
2
|
|
|
3
|
+
## 7.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4cc2ced: ADR-0029 K2.b — approvals domain ownership + Setup nav contribution.
|
|
8
|
+
|
|
9
|
+
Moves `sys_approval_request` / `sys_approval_action` out of the
|
|
10
|
+
`@objectstack/platform-objects` monolith into `@objectstack/plugin-approvals`,
|
|
11
|
+
which already registers and operates them — so the plugin now owns its data
|
|
12
|
+
model, behavior, and admin menu as one unit.
|
|
13
|
+
|
|
14
|
+
- The object definitions move to `plugin-approvals`; `platform-objects` no
|
|
15
|
+
longer exports them from `/audit`. Runtime is unchanged (the plugin already
|
|
16
|
+
registered them at runtime).
|
|
17
|
+
- **D7 navigation** — the Setup app's `group_approvals` entries (`Requests`,
|
|
18
|
+
`Action History`) move out of `platform-objects`' `SETUP_NAV_CONTRIBUTIONS`
|
|
19
|
+
into `plugin-approvals`' `navigationContributions`. The plugin fills the slot
|
|
20
|
+
it owns; when the plugin is absent the slot stays empty.
|
|
21
|
+
- **i18n (D8)** — the objects are removed from the `platform-objects` i18n
|
|
22
|
+
extract config; their existing generated translation bundles keep working at
|
|
23
|
+
runtime (object-name keyed). Migrating the i18n extraction/bundles to the
|
|
24
|
+
plugin remains the tracked cross-cutting follow-up (best done with the
|
|
25
|
+
`os i18n extract` tooling, not hand-edited generated files).
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- 4404572: ADR-0029 D8 — migrate i18n ownership for the moved domains to their plugins.
|
|
30
|
+
|
|
31
|
+
The object translations for the domains decomposed in K2.a/K2.b/K2 previously
|
|
32
|
+
lived in the `@objectstack/platform-objects` generated bundles even though the
|
|
33
|
+
objects now live in their capability plugins. This moves each domain's i18n
|
|
34
|
+
extraction + bundles to the owning plugin, preserving every hand-translated
|
|
35
|
+
string (zh-CN / ja-JP / es-ES):
|
|
36
|
+
|
|
37
|
+
- Each plugin gains a build-time `scripts/i18n-extract.config.ts` and a
|
|
38
|
+
`src/translations/` bundle (`{locale}.objects.generated.ts` + an `index.ts`
|
|
39
|
+
barrel), generated with `os i18n extract` and self-baselined so re-runs
|
|
40
|
+
preserve translations.
|
|
41
|
+
- Each plugin loads its bundle at runtime on `kernel:ready` via
|
|
42
|
+
`i18n.loadTranslations` (the i18n service is optional — load is best-effort).
|
|
43
|
+
- `plugin-webhooks` ← `sys_webhook`, `sys_webhook_delivery`
|
|
44
|
+
- `plugin-approvals` ← `sys_approval_request`, `sys_approval_action`
|
|
45
|
+
- `plugin-security` ← `sys_role`, `sys_permission_set`,
|
|
46
|
+
`sys_user_permission_set`, `sys_role_permission_set`
|
|
47
|
+
- `plugin-sharing` ← `sys_record_share`, `sys_sharing_rule`, `sys_share_link`
|
|
48
|
+
- `@objectstack/platform-objects` translation bundles are regenerated to drop
|
|
49
|
+
those objects' keys (its extract config already excluded them); all other
|
|
50
|
+
objects' translations and the metadata-form bundles are preserved.
|
|
51
|
+
|
|
52
|
+
Net runtime effect is unchanged (same translations load, now contributed by the
|
|
53
|
+
package that owns each object) — closing the D8 follow-up tracked since K2.a.
|
|
54
|
+
|
|
55
|
+
- Updated dependencies [23c7107]
|
|
56
|
+
- Updated dependencies [c72daad]
|
|
57
|
+
- Updated dependencies [4404572]
|
|
58
|
+
- Updated dependencies [eea3f1b]
|
|
59
|
+
- Updated dependencies [e478e0c]
|
|
60
|
+
- Updated dependencies [4cc2ced]
|
|
61
|
+
- Updated dependencies [13632b1]
|
|
62
|
+
- Updated dependencies [f115182]
|
|
63
|
+
- Updated dependencies [2faf9f2]
|
|
64
|
+
- Updated dependencies [2faf9f2]
|
|
65
|
+
- Updated dependencies [2faf9f2]
|
|
66
|
+
- Updated dependencies [58b450b]
|
|
67
|
+
- Updated dependencies [82eb6cf]
|
|
68
|
+
- Updated dependencies [c381977]
|
|
69
|
+
- Updated dependencies [13d8653]
|
|
70
|
+
- Updated dependencies [ff3d006]
|
|
71
|
+
- Updated dependencies [5e831de]
|
|
72
|
+
- @objectstack/spec@7.4.0
|
|
73
|
+
- @objectstack/platform-objects@7.4.0
|
|
74
|
+
- @objectstack/core@7.4.0
|
|
75
|
+
- @objectstack/formula@7.4.0
|
|
76
|
+
- @objectstack/metadata-core@7.4.0
|
|
77
|
+
|
|
3
78
|
## 7.3.0
|
|
4
79
|
|
|
5
80
|
### Patch Changes
|