@smartkomm/plexus-cli 0.1.34 → 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 +16 -9
- package/dist/cli.mjs +229 -200
- package/dist/skill/.managed-by-plexus-cli +1 -1
- package/dist/skill/SKILL.md +4 -6
- package/dist/skill/references/commands.md +25 -28
- package/dist/skill/references/config/attach-a-template.md +7 -2
- package/dist/skill/references/config/set-tenant-branding.md +6 -5
- 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
|
@@ -116,9 +116,7 @@ These need the **platform operator** (a `_platform.*` right). Ask them; do not
|
|
|
116
116
|
try: everything under `platform …` (accounts across tenants, workers, the mail
|
|
117
117
|
delivery monitor, cross-tenant imports, the hard delete of a person, signing
|
|
118
118
|
connection set-up and key slots, the contract input-key registry), the
|
|
119
|
-
`feedback`, `demo`, `setup`, `retention`, `jobs
|
|
120
|
-
commands, `files put|delete` (a school sets its branding and library files
|
|
121
|
-
through `config apply` or in the app), creating, onboarding or wiping a tenant
|
|
119
|
+
`feedback`, `demo`, `setup`, `retention`, `jobs` and `audit` commands, creating, onboarding or wiping a tenant
|
|
122
120
|
(`config wipe`, `config prune-offers`, `config apply --scope platform`),
|
|
123
121
|
`offer delete` (the hard delete), the settings listed above and issuing a token
|
|
124
122
|
for someone else (`tokens create --for`). Every command's right is in
|
|
@@ -168,7 +166,7 @@ whole is the operator's (ask them; do not try).
|
|
|
168
166
|
| [applications/correct-staff-input.md](references/applications/correct-staff-input.md) | Mandant | Correct an internal input staff set at the start, while no step has read it. |
|
|
169
167
|
| [audit/answer-access-request.md](references/audit/answer-access-request.md) | Plattform | Answer an Art. 15 request: who looked at this application? |
|
|
170
168
|
| [config/add-legal-entity.md](references/config/add-legal-entity.md) | Mandant | Add a Träger with its address or a unit to an exported config offline, then apply it. |
|
|
171
|
-
| [config/attach-a-template.md](references/config/attach-a-template.md) | Mandant
|
|
169
|
+
| [config/attach-a-template.md](references/config/attach-a-template.md) | Mandant | Put a template into the file library and attach it to a form field (`files put` / `files delete` need `administration.config.manage`). |
|
|
172
170
|
| [config/export-tenant-setup.md](references/config/export-tenant-setup.md) | Plattform | Take a portable copy of a tenant's setup (config plus referenced files) into a new directory outside any repository. |
|
|
173
171
|
| [config/init-tenant.md](references/config/init-tenant.md) | Plattform | Generate and apply a minimal valid tenant config without an existing source. |
|
|
174
172
|
| [config/onboard-tenant.md](references/config/onboard-tenant.md) | Plattform | Set up or refresh a real tenant's config from a snapshot or another environment. |
|
|
@@ -176,7 +174,7 @@ whole is the operator's (ask them; do not try).
|
|
|
176
174
|
| [config/platform-setup-export.md](references/config/platform-setup-export.md) | Plattform | Export the platform's own setup (the contract input registry) and restore it before a tenant whose setup names its keys. |
|
|
177
175
|
| [config/restore-tenant-setup.md](references/config/restore-tenant-setup.md) | Plattform | Preview and apply a setup export directory onto its tenant, part by part. |
|
|
178
176
|
| [config/list-setup-exports.md](references/config/list-setup-exports.md) | Plattform | List a tenant's nightly and manual setup exports and show what changed between two of them. |
|
|
179
|
-
| [config/set-tenant-branding.md](references/config/set-tenant-branding.md) | Mandant
|
|
177
|
+
| [config/set-tenant-branding.md](references/config/set-tenant-branding.md) | Mandant | Give the application portal colours, radius and fonts; upload logo and WOFF2 fonts (`branding …` needs `administration.config.manage`). |
|
|
180
178
|
| [config/set-tenant-terms.md](references/config/set-tenant-terms.md) | Plattform | Switch a school from „Bewerbung" to „Anmeldung" throughout with one setting. |
|
|
181
179
|
| [config/set-external-sign-in.md](references/config/set-external-sign-in.md) | Plattform | Choose how long the sign-in link in a school's letters works — once, N days, or without end. |
|
|
182
180
|
| [config/set-up-billing-catalog.md](references/config/set-up-billing-catalog.md) | Mandant + Plattform | Load articles, packages, reduction tiers and Word templates by stable keys (catalog plan/apply). |
|
|
@@ -229,7 +227,7 @@ whole is the operator's (ask them; do not try).
|
|
|
229
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. |
|
|
230
228
|
| [resolver/manage-contract-resolver.md](references/resolver/manage-contract-resolver.md) | Mandant | Create, test, seal, assign and revise a contract resolver. |
|
|
231
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. |
|
|
232
|
-
| [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`). |
|
|
233
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). |
|
|
234
232
|
| [roles/migrate-parent-assignments.md](references/roles/migrate-parent-assignments.md) | Mandant | Move direct assignments from a parent role onto a leaf role. |
|
|
235
233
|
| [signing/README.md](references/signing/README.md) | Mandant | Send a contract revision for e-signature, reconcile, withdraw, remind (connecting the provider is Plattform). |
|
|
@@ -8,14 +8,13 @@ Generated from the commands the CLI registers — do not edit; `plexus-cli <comm
|
|
|
8
8
|
- [Admission (platform operator)](#admission-platform-operator) (2)
|
|
9
9
|
- [Admission (school token)](#admission-school-token) (12)
|
|
10
10
|
- [Agents (offline)](#agents-offline) (2)
|
|
11
|
-
- [Branding (
|
|
11
|
+
- [Branding (school token)](#branding-school-token) (6)
|
|
12
12
|
- [Config (offline)](#config-offline) (4)
|
|
13
13
|
- [Config (school token)](#config-school-token) (6)
|
|
14
14
|
- [Contracts (platform operator)](#contracts-platform-operator) (5)
|
|
15
15
|
- [Contracts (school token)](#contracts-school-token) (19)
|
|
16
16
|
- [Feedback (platform operator)](#feedback-platform-operator) (21)
|
|
17
|
-
- [Files (
|
|
18
|
-
- [Files (school token)](#files-school-token) (1)
|
|
17
|
+
- [Files (school token)](#files-school-token) (3)
|
|
19
18
|
- [Identity (own account)](#identity-own-account) (5)
|
|
20
19
|
- [Imports (platform operator)](#imports-platform-operator) (2)
|
|
21
20
|
- [Imports (school token)](#imports-school-token) (2)
|
|
@@ -227,13 +226,13 @@ Show the shared platform/CLI agent tool schemas and skill revision.
|
|
|
227
226
|
- **Right:** offline — no deployment
|
|
228
227
|
- **Effect:** read — changes nothing on the deployment
|
|
229
228
|
|
|
230
|
-
## Branding (
|
|
229
|
+
## Branding (school token)
|
|
231
230
|
|
|
232
231
|
### `branding clear-font`
|
|
233
232
|
|
|
234
|
-
Remove a tenant's portal font file for a slot (
|
|
233
|
+
Remove a tenant's portal font file for a slot (the family stays)
|
|
235
234
|
|
|
236
|
-
- **Right:**
|
|
235
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
237
236
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
238
237
|
|
|
239
238
|
| Option | Description |
|
|
@@ -242,16 +241,16 @@ Remove a tenant's portal font file for a slot (platform-admin; the family stays)
|
|
|
242
241
|
|
|
243
242
|
### `branding clear-logo`
|
|
244
243
|
|
|
245
|
-
Remove a tenant's portal logo
|
|
244
|
+
Remove a tenant's portal logo
|
|
246
245
|
|
|
247
|
-
- **Right:**
|
|
246
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
248
247
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
249
248
|
|
|
250
249
|
### `branding set-font`
|
|
251
250
|
|
|
252
|
-
Upload a tenant's portal font file (WOFF2) for a slot
|
|
251
|
+
Upload a tenant's portal font file (WOFF2) for a slot
|
|
253
252
|
|
|
254
|
-
- **Right:**
|
|
253
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
255
254
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
256
255
|
|
|
257
256
|
| Option | Description |
|
|
@@ -261,9 +260,9 @@ Upload a tenant's portal font file (WOFF2) for a slot (platform-admin)
|
|
|
261
260
|
|
|
262
261
|
### `branding set-logo`
|
|
263
262
|
|
|
264
|
-
Upload a tenant's portal logo
|
|
263
|
+
Upload a tenant's portal logo
|
|
265
264
|
|
|
266
|
-
- **Right:**
|
|
265
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
267
266
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
268
267
|
|
|
269
268
|
| Option | Description |
|
|
@@ -273,9 +272,9 @@ Upload a tenant's portal logo (platform-admin)
|
|
|
273
272
|
|
|
274
273
|
### `branding set-theme`
|
|
275
274
|
|
|
276
|
-
Set a tenant's portal theme tokens from a JSON file
|
|
275
|
+
Set a tenant's portal theme tokens from a JSON file
|
|
277
276
|
|
|
278
|
-
- **Right:**
|
|
277
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
279
278
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
280
279
|
|
|
281
280
|
| Option | Description |
|
|
@@ -284,9 +283,9 @@ Set a tenant's portal theme tokens from a JSON file (platform-admin)
|
|
|
284
283
|
|
|
285
284
|
### `branding show`
|
|
286
285
|
|
|
287
|
-
Show a tenant's current branding + resolved logo and font-file URLs
|
|
286
|
+
Show a tenant's current branding + resolved logo and font-file URLs
|
|
288
287
|
|
|
289
|
-
- **Right:**
|
|
288
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
290
289
|
- **Effect:** read — changes nothing on the deployment
|
|
291
290
|
|
|
292
291
|
## Config (offline)
|
|
@@ -927,24 +926,31 @@ Detach a tag from a feedback item (uses the active --tenant).
|
|
|
927
926
|
- **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
|
|
928
927
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
929
928
|
|
|
930
|
-
## Files (
|
|
929
|
+
## Files (school token)
|
|
931
930
|
|
|
932
931
|
### `files delete <key>`
|
|
933
932
|
|
|
934
933
|
Delete a library file — plan unless --confirm; refused while a form uses it / Datei löschen
|
|
935
934
|
|
|
936
|
-
- **Right:**
|
|
935
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
937
936
|
- **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
|
|
938
937
|
|
|
939
938
|
| Option | Description |
|
|
940
939
|
|---|---|
|
|
941
940
|
| `--confirm` | Delete (without it, only the plan is printed). |
|
|
942
941
|
|
|
942
|
+
### `files list`
|
|
943
|
+
|
|
944
|
+
List a tenant's file library (Vorlagen) / Dateien auflisten
|
|
945
|
+
|
|
946
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
947
|
+
- **Effect:** read — changes nothing on the deployment
|
|
948
|
+
|
|
943
949
|
### `files put <key> <path>`
|
|
944
950
|
|
|
945
951
|
Create or replace a library file by key / Datei anlegen oder ersetzen
|
|
946
952
|
|
|
947
|
-
- **Right:**
|
|
953
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
948
954
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
949
955
|
|
|
950
956
|
| Option | Description |
|
|
@@ -953,15 +959,6 @@ Create or replace a library file by key / Datei anlegen oder ersetzen
|
|
|
953
959
|
| `--label-en <value>` | English label (required for a new key) |
|
|
954
960
|
| `--file-name <value>` | Download name (default: the local file name) |
|
|
955
961
|
|
|
956
|
-
## Files (school token)
|
|
957
|
-
|
|
958
|
-
### `files list`
|
|
959
|
-
|
|
960
|
-
List a tenant's file library (Vorlagen) / Dateien auflisten
|
|
961
|
-
|
|
962
|
-
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
963
|
-
- **Effect:** read — changes nothing on the deployment
|
|
964
|
-
|
|
965
962
|
## Identity (own account)
|
|
966
963
|
|
|
967
964
|
### `tenants`
|
|
@@ -12,8 +12,13 @@ every form at once — no republish.
|
|
|
12
12
|
|
|
13
13
|
## Prerequisites
|
|
14
14
|
|
|
15
|
-
- `plexus-cli` installed;
|
|
16
|
-
|
|
15
|
+
- `plexus-cli` installed; for the target env either the school's own token
|
|
16
|
+
holding `administration.config.manage` tenant-wide (listing needs
|
|
17
|
+
`administration.config.read`; see
|
|
18
|
+
[CLI access for a tenant admin](../users/cli-access-for-tenant-admin.md)), or a
|
|
19
|
+
platform-admin token with `_platform.config.manage` (listing:
|
|
20
|
+
`_platform.config.read`). The in-app right `stammdaten._self.configure` alone
|
|
21
|
+
is refused by the CLI.
|
|
17
22
|
- The `files` commands and the `fileKey` attachment shape must be **live** on
|
|
18
23
|
the target env before an offer that uses them is published (a platform
|
|
19
24
|
operator rolls a release out to staging, then prod). An offer published before
|
|
@@ -12,10 +12,11 @@ uploaded logo and uploaded font files — on staging and/or prod, without a rese
|
|
|
12
12
|
same right that gates `config apply`), or — for your OWN tenant only — a tenant
|
|
13
13
|
admin's token holding `administration.config.manage` (see
|
|
14
14
|
[CLI access for a tenant admin](../users/cli-access-for-tenant-admin.md)). Such a
|
|
15
|
-
token
|
|
16
|
-
`tenant.*` settings
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
token runs every `plexus-cli branding …` command and `config apply` for its own
|
|
16
|
+
tenant (branding is one of the `tenant.*` settings a school may change); `branding
|
|
17
|
+
show` needs `administration.config.read` at least. The in-app right
|
|
18
|
+
`administration.branding.manage` alone is refused by the CLI. A local admin key
|
|
19
|
+
without a user identity does **not** satisfy this gate.
|
|
19
20
|
- The `plexus-cli branding …` commands must be **live on the target env** first (they
|
|
20
21
|
call backend functions of the same release). A platform operator rolls a release out
|
|
21
22
|
to staging, then prod; only then run the CLI.
|
|
@@ -118,7 +119,7 @@ plexus-cli --env prod --tenant <slug> branding show
|
|
|
118
119
|
`set-font` are surgical.
|
|
119
120
|
- **Admin UI.** A tenant admin (holding `administration.branding.manage`) edits the same
|
|
120
121
|
row live under **Administration → Branding**. Use it for quick per-tenant tweaks; use the CLI
|
|
121
|
-
for reproducible, cross-env rollout
|
|
122
|
+
for reproducible, cross-env rollout.
|
|
122
123
|
|
|
123
124
|
## Gotchas
|
|
124
125
|
|
|
@@ -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);
|