@smartkomm/plexus-cli 0.1.242 → 0.1.244
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/cli.mjs +263 -197
- package/dist/skill/.managed-by-plexus-cli +1 -1
- package/dist/skill/SKILL.md +1 -0
- package/dist/skill/references/applications/purge-staff-application.md +51 -0
- package/dist/skill/references/commands.md +13 -2
- package/dist/spec.snapshot.json +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
66ff544405370f050546c98a54e8a563e0b3535ff30892ee3d3c7fecd3e5dbe5
|
package/dist/skill/SKILL.md
CHANGED
|
@@ -162,6 +162,7 @@ whole is the operator's (ask them; do not try).
|
|
|
162
162
|
| [agents/use-shared-tools.md](references/agents/use-shared-tools.md) | Mandant | Discover and invoke the same agent tools used by platform chats. |
|
|
163
163
|
| [accounts/email-changes.md](references/accounts/email-changes.md) | Mandant + Plattform | See who changed an account's sign-in address (the tenant-wide view needs a platform admin for --user). |
|
|
164
164
|
| [applications/inspect-process-store.md](references/applications/inspect-process-store.md) | Mandant | Show what an application's process produced and what it still waits for. |
|
|
165
|
+
| [applications/purge-staff-application.md](references/applications/purge-staff-application.md) | Plattform | Delete for good a real application staff started for a colleague by mistake. |
|
|
165
166
|
| [applications/start-a-test-application.md](references/applications/start-a-test-application.md) | Mandant | Start a test application in the terminal, drive it and discard it. |
|
|
166
167
|
| [applications/expire-test-applications.md](references/applications/expire-test-applications.md) | Mandant | Keep a test application as a demo, and list or discard the test applications without activity for 14 days. |
|
|
167
168
|
| [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. |
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Hard-delete an application staff started by mistake
|
|
2
|
+
|
|
3
|
+
**When to use:** staff started a REAL application for a colleague by mistake
|
|
4
|
+
(„+ Bewerbung“ with a staff member as applicant — for a switched-off colleague
|
|
5
|
+
the dialog does not offer a test application) and already deleted it in the
|
|
6
|
+
app. The soft-deleted application still names its responsible person, so that
|
|
7
|
+
person cannot be deactivated (`[assignment/personInUse]`). This removes the
|
|
8
|
+
application for good.
|
|
9
|
+
|
|
10
|
+
Not for: a test application (`applications discard-test <id>`), a family's
|
|
11
|
+
application (no hard delete — it stays soft-deleted), a person
|
|
12
|
+
(`platform persons purge`).
|
|
13
|
+
|
|
14
|
+
## Prerequisites
|
|
15
|
+
- **Env + tenant:** `--env <local|staging|prod> --tenant <slug>`; prod also
|
|
16
|
+
`--allow-prod` for the writing run.
|
|
17
|
+
- **Auth:** your own platform token with `_platform.config.manage`.
|
|
18
|
+
- **The application is soft-deleted by staff** (board → „Gelöscht“).
|
|
19
|
+
- **Its provenance:** `applications show --json <id>` shows `creationChannel:
|
|
20
|
+
"staff"`, `testMode: false`, `deletion.by: "staff"`; its `applicantPartyId`
|
|
21
|
+
is a staff member's person (`persons list --query <name>`).
|
|
22
|
+
|
|
23
|
+
## Steps
|
|
24
|
+
1. **Check** (no write — the default):
|
|
25
|
+
```bash
|
|
26
|
+
plexus-cli --env <env> --tenant <slug> platform applications purge <applicationId>
|
|
27
|
+
```
|
|
28
|
+
The server checks every precondition: real, soft-deleted by staff, started by
|
|
29
|
+
staff, the applicant an internal staff member of the school (active or
|
|
30
|
+
switched off) whose person existed before, no data about anyone else (only
|
|
31
|
+
empty drafts the form opened), nothing committed yet, and no contract,
|
|
32
|
+
signing process, payment or Engage push. Any other application is refused
|
|
33
|
+
with the reason. The commit can still be refused by the discard engine;
|
|
34
|
+
then nothing is written.
|
|
35
|
+
2. **Delete:**
|
|
36
|
+
```bash
|
|
37
|
+
plexus-cli --env <env> --tenant <slug> --allow-prod platform applications purge <applicationId> --confirm
|
|
38
|
+
```
|
|
39
|
+
3. If the responsible person is to be deactivated:
|
|
40
|
+
`tenant-users deactivate --confirm <email>`.
|
|
41
|
+
|
|
42
|
+
## Verify
|
|
43
|
+
```bash
|
|
44
|
+
plexus-cli --env <env> --tenant <slug> applications show <applicationId> # → not found
|
|
45
|
+
plexus-cli --env <env> --tenant <slug> persons list --query "<staff name>" # → the person is still there
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Idempotency / gotchas
|
|
49
|
+
- A second run answers „Die Bewerbung wurde nicht gefunden.“ — nothing is left.
|
|
50
|
+
- „continuing“ means the purge goes on in scheduled steps; wait and re-check
|
|
51
|
+
with `applications show`.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# plexus-cli command reference
|
|
2
2
|
|
|
3
3
|
Generated from the commands the CLI registers — do not edit; `plexus-cli <command> --help` prints the same.
|
|
4
|
-
|
|
4
|
+
301 commands. Every network command also takes `--env <local|staging|prod>`, `--tenant <slug>`,
|
|
5
5
|
`--json` (raw JSON instead of a table) and `--allow-prod` (required for a writing run against production).
|
|
6
6
|
|
|
7
7
|
- [Admission (offline)](#admission-offline) (1)
|
|
8
|
-
- [Admission (platform operator)](#admission-platform-operator) (
|
|
8
|
+
- [Admission (platform operator)](#admission-platform-operator) (3)
|
|
9
9
|
- [Admission (school token)](#admission-school-token) (13)
|
|
10
10
|
- [Agents (offline)](#agents-offline) (2)
|
|
11
11
|
- [Branding (school token)](#branding-school-token) (6)
|
|
@@ -63,6 +63,17 @@ Evaluate an offer bundle's assignment rule over an application's environment ($e
|
|
|
63
63
|
|
|
64
64
|
## Admission (platform operator)
|
|
65
65
|
|
|
66
|
+
### `platform applications purge <application>`
|
|
67
|
+
|
|
68
|
+
Hard-delete one real application staff started for a colleague and already deleted (plan unless --confirm). Needs _platform.config.manage.
|
|
69
|
+
|
|
70
|
+
- **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
|
|
71
|
+
- **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
|
|
72
|
+
|
|
73
|
+
| Option | Description |
|
|
74
|
+
|---|---|
|
|
75
|
+
| `--confirm` | Delete for good (without it, only the checks run). |
|
|
76
|
+
|
|
66
77
|
### `retention apply`
|
|
67
78
|
|
|
68
79
|
Erase (DSGVO redaction) every application of the tenant whose retention period has ended. Dry run unless --confirm; --confirm needs --expect <n>, the count `retention plan` showed.
|