@smartkomm/plexus-cli 0.1.55 → 0.1.57
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 -0
- package/dist/cli.mjs +311 -189
- package/dist/skill/.managed-by-plexus-cli +1 -1
- package/dist/skill/SKILL.md +1 -0
- package/dist/skill/references/commands.md +15 -2
- package/dist/skill/references/persons/import-persons-from-csv.md +105 -0
- package/dist/spec.snapshot.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -730,6 +730,22 @@ sent. Gate: the config gate (school administrator with
|
|
|
730
730
|
`administration.config.manage`, or the platform operator). Recipe:
|
|
731
731
|
[Import a school's classes from a class list](./playbooks/learning-groups/import-classes-from-csv.md).
|
|
732
732
|
|
|
733
|
+
### Persons from a person list (`persons import`)
|
|
734
|
+
|
|
735
|
+
`persons import --file <persons.csv> --mapping <mapping.json>` creates, per row,
|
|
736
|
+
the row's person (roles and fields from the mapping), each related person block
|
|
737
|
+
(`VP1…`, `VP2…`) with the relationship edges to it, and the enrollment into a
|
|
738
|
+
class that `learning-groups apply` created. Without `--confirm` it prints the
|
|
739
|
+
plan (create / unchanged / changed per person, related persons, edges,
|
|
740
|
+
enrollments). Identity: `sourceKey` + the key column for the row's person; a
|
|
741
|
+
related person is merged across rows only on the mapping's `mergeOn` fields,
|
|
742
|
+
otherwise it belongs to its row. A re-run creates nothing; a changed row is
|
|
743
|
+
reported and not written. Every column read or ignored, every cell converted by
|
|
744
|
+
the school's field kinds (a choice by element key or German label) — refused
|
|
745
|
+
otherwise. Gate: `stammdaten.parties.write` school-wide (plus
|
|
746
|
+
`administration.masterData.manage` to enroll); the school's own token suffices.
|
|
747
|
+
Recipe: [Import pupils and their guardians from a person list](./playbooks/persons/import-persons-from-csv.md).
|
|
748
|
+
|
|
733
749
|
### Generic escape hatch
|
|
734
750
|
|
|
735
751
|
```bash
|