@smartkomm/plexus-cli 0.1.35 → 0.1.36
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/README.md +13 -4
- package/dist/cli.mjs +193 -164
- package/dist/skill/.managed-by-plexus-cli +1 -1
- package/dist/skill/SKILL.md +1 -1
- package/dist/skill/references/retention/erase-due-applications.md +35 -6
- package/dist/skill/references/users/cli-access-for-tenant-admin.md +10 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
66ea553a260a287b55b54691c4783506a055ea2af52e71069bc945e27b15603d
|
package/dist/skill/SKILL.md
CHANGED
|
@@ -227,7 +227,7 @@ whole is the operator's (ask them; do not try).
|
|
|
227
227
|
| [resolver/manage-contract-package.md](references/resolver/manage-contract-package.md) | Mandant + Plattform | Create, review and seal a contract package from one file by key. |
|
|
228
228
|
| [resolver/manage-contract-resolver.md](references/resolver/manage-contract-resolver.md) | Mandant | Create, test, seal, assign and revise a contract resolver. |
|
|
229
229
|
| [resolver/register-input-keys.md](references/resolver/register-input-keys.md) | Plattform | Register the platform-wide contract input keys a generator's fields need. |
|
|
230
|
-
| [retention/erase-due-applications.md](references/retention/erase-due-applications.md) | Plattform | Erase applications past their retention period (retention plan/apply). |
|
|
230
|
+
| [retention/erase-due-applications.md](references/retention/erase-due-applications.md) | Mandant + Plattform | Erase applications past their retention period (retention plan/apply); the school sets its own periods (`tenant.retentionDays`). |
|
|
231
231
|
| [retention/erase-due-parties.md](references/retention/erase-due-parties.md) | Plattform | Hard-delete persons the school's deletion rule has reached (retention parties plan/apply). |
|
|
232
232
|
| [roles/migrate-parent-assignments.md](references/roles/migrate-parent-assignments.md) | Mandant | Move direct assignments from a parent role onto a leaf role. |
|
|
233
233
|
| [signing/README.md](references/signing/README.md) | Mandant | Send a contract revision for e-signature, reconcile, withdraw, remind (connecting the provider is Plattform). |
|
|
@@ -14,9 +14,9 @@ until someone runs this recipe.
|
|
|
14
14
|
> - **Who:** the Plexus platform operator (the maintainer, or whoever holds a
|
|
15
15
|
> `_platform.tenants.accessAll` token for prod), on behalf of the schools.
|
|
16
16
|
> - **How often:** **monthly**, on the first working day, for **every** tenant on
|
|
17
|
-
> prod; additionally within a week whenever the weekly warning appears.
|
|
18
|
-
>
|
|
19
|
-
>
|
|
17
|
+
> prod; additionally within a week whenever the weekly warning appears. A monthly
|
|
18
|
+
> run keeps any application at most about a month past its date, whatever period
|
|
19
|
+
> the school chose (the shortest a school may choose is 30 days).
|
|
20
20
|
> - **Record:** keep the `--json` output of each `apply` run (date, tenant, ids) in
|
|
21
21
|
> your operations log, one directory per run (e.g. `retention-<date>/`). Plexus
|
|
22
22
|
> stores no "who erased" row yet: the application only carries `redactedAt`.
|
|
@@ -24,10 +24,11 @@ until someone runs this recipe.
|
|
|
24
24
|
## What is due
|
|
25
25
|
|
|
26
26
|
The rule lives in one place on the server (`retentionDueAt`):
|
|
27
|
-
an application is due when it has ENDED (`endedAt` set) and
|
|
28
|
-
classification
|
|
27
|
+
an application is due when it has ENDED (`endedAt` set) and the school's retention
|
|
28
|
+
period for its classification has passed since. The classification follows its
|
|
29
|
+
outcome; the platform's default periods are:
|
|
29
30
|
|
|
30
|
-
| outcome | classification | kept for |
|
|
31
|
+
| outcome | classification | kept for (default) |
|
|
31
32
|
|---|---|---|
|
|
32
33
|
| approved | admitted | 3650 days (10 years) |
|
|
33
34
|
| rejected | rejected | 180 days |
|
|
@@ -39,6 +40,34 @@ classification have passed since. The classification follows its outcome:
|
|
|
39
40
|
Test applications and soft-deleted ones („gelöscht") are listed too — both still hold
|
|
40
41
|
personal data. A still-running application is never due, even if soft-deleted.
|
|
41
42
|
|
|
43
|
+
### The school's own periods
|
|
44
|
+
|
|
45
|
+
How long a school keeps an application is the school's decision — its data
|
|
46
|
+
protection officer's, as the controller — not the platform's. The defaults above
|
|
47
|
+
apply until the school states otherwise in its tenant config, `tenant.retentionDays`:
|
|
48
|
+
any subset of the classifications, whole days from **30** to **3650**. A
|
|
49
|
+
classification left out keeps its default; a value outside the bounds or an unknown
|
|
50
|
+
classification is refused, nothing is written. The school's own administrator sets
|
|
51
|
+
it — no platform operator needed — holding, school-wide, both the configuration right
|
|
52
|
+
(„Konfiguration: Verwalten") and the right to manage applications
|
|
53
|
+
(`bewerbungsmanagement.applications.manage`, the right that erases one in the app). A
|
|
54
|
+
shortened period takes effect at the next plan; nothing is erased until someone runs
|
|
55
|
+
`retention apply`:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# first time — the whole override as one object
|
|
59
|
+
plexus-cli --tenant <school> config set --target tenant --key <school> \
|
|
60
|
+
--field retentionDays --value '{"rejected":365}' --confirm
|
|
61
|
+
# once it exists, one classification by its path
|
|
62
|
+
plexus-cli --tenant <school> config set --target tenant --key <school> \
|
|
63
|
+
--field retentionDays.withdrawn --value 90 --confirm
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Check it with `plexus-cli --tenant <school> config export` (`tenant.retentionDays`);
|
|
67
|
+
removing the key restores every default. `retention plan` computes every due date
|
|
68
|
+
with the school's periods — a shortened period makes applications due at once on the
|
|
69
|
+
next plan.
|
|
70
|
+
|
|
42
71
|
## Prerequisites
|
|
43
72
|
|
|
44
73
|
- `plexus-cli` with a platform-operator token for the target env (check the
|
|
@@ -80,9 +80,16 @@ plexus-cli --env <env> config apply --tenant <slug> --from snapshot:./<slug>/con
|
|
|
80
80
|
|
|
81
81
|
## What a tenant-scoped apply refuses (FORBIDDEN, naming the field)
|
|
82
82
|
- a tenant that does not exist (no onboarding), `--from blueprint`, `--allow-destructive`;
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
`
|
|
83
|
+
- a platform-owned `tenant.*` setting differing from live — modules (`enabledModules`
|
|
84
|
+
decides the permission allowlist), `mailLevel`, `magicLinkLogin`, `externalSignIn`,
|
|
85
|
+
`adminSeesSignatureImages`, `bankImportScope`, role wiring, …. The school's own
|
|
86
|
+
settings pass: `branding`, `brandingAssets`, `notificationChrome`, `terms` (its
|
|
87
|
+
wording), `retentionDays` (how long ended applications are kept), `nationalityFlag`,
|
|
88
|
+
`admissionFieldDisplayGroupKey`, `defaultStartInProxy`, `hideMailLevelNotice`; and,
|
|
89
|
+
with the right the app asks for the same switch, `retentionDays`
|
|
90
|
+
(`bewerbungsmanagement.applications.manage`), `partyRetention`
|
|
91
|
+
(`stammdaten.parties.delete`) and `defaultApplicantGroupKey`
|
|
92
|
+
(`administration.permissions.manage`; removing it is refused);
|
|
86
93
|
- the import `source`;
|
|
87
94
|
- a `foundation.users` address that is not an **active** member with a login (no new
|
|
88
95
|
accounts, no other tenant's people, no revoked member brought back);
|