@smartkomm/plexus-cli 0.1.107 → 0.1.109
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a05705defb254d48160e1b2b50e7f8f892ce0e398459c706497ef23eb99ccd2b
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
**Use it to** turn a workflow-step task such as „Termin für das Kennenlerngespräch
|
|
4
4
|
vereinbaren" into one that is completed by entering an appointment: date,
|
|
5
5
|
time, duration, place and host. Completing it books the appointment at the
|
|
6
|
-
application,
|
|
7
|
-
calendar file
|
|
6
|
+
application, sends the family (portal owner) the letter its node binds for the
|
|
7
|
+
booking — date/time/place with a `termin.ics` calendar file —, frees the task it
|
|
8
8
|
`blocks`, and lists the appointment under „Anstehende Termine" on the staff dashboard.
|
|
9
9
|
|
|
10
10
|
## The declaration
|
|
@@ -35,6 +35,34 @@ On the task (a composed `kind: "task"` in the node's `tasks`):
|
|
|
35
35
|
(`[taskResult/appointmentInvalidDuration]`), a stray field
|
|
36
36
|
(`[taskResult/unknownField]`). `offer validate` catches all of them offline.
|
|
37
37
|
|
|
38
|
+
## The family's letters
|
|
39
|
+
|
|
40
|
+
The task brings its node three letter events: `<key>:booked`, `<key>:rescheduled`
|
|
41
|
+
and `<key>:cancelled` (for the task above: `termin:booked` …). Each is bound like any
|
|
42
|
+
letter of the node (`node.notifications`); the calendar file travels with whichever
|
|
43
|
+
letter is bound. `task add` / `task set --result appointment` binds the three standard
|
|
44
|
+
letters at once (`admission.appointmentBooked`, `…Rescheduled`, `…Cancelled`) and says
|
|
45
|
+
so; `task rm` or switching the result away removes them again.
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
"notifications": {
|
|
49
|
+
"termin:booked": { "templateId": "admission.appointmentBooked" },
|
|
50
|
+
"termin:rescheduled": { "templateId": "admission.appointmentRescheduled" },
|
|
51
|
+
"termin:cancelled": { "templateId": "admission.appointmentCancelled" }
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Switch one off, or bind another letter:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
plexus-cli offer workflow node set-notification --dir $WORK/$S --node kennenlernen \
|
|
59
|
+
--event termin:rescheduled --template admission.appointmentRescheduled --disabled
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Nothing bound is publishable too — the family then gets no letter for that event,
|
|
63
|
+
and the staff toast warns „Im Prozess ist für diesen Termin kein Brief hinterlegt".
|
|
64
|
+
An event of a task that books nothing is refused (`[notification/unknownEvent]`).
|
|
65
|
+
|
|
38
66
|
## With the CLI
|
|
39
67
|
|
|
40
68
|
One spelling, the same verb as every other task result — no `:`-separated
|
|
@@ -64,6 +92,10 @@ again until every row is `same`.
|
|
|
64
92
|
closes with a toast. In the Testmodus the shortcut „<Aufgabe> (Test): Termin morgen
|
|
65
93
|
10:00" books through the same verb.
|
|
66
94
|
- **No portal owner, no mail.** An application staff created has no portal account; the
|
|
67
|
-
appointment is saved
|
|
68
|
-
|
|
95
|
+
appointment is saved, the letter is recorded as undeliverable and the toast warns
|
|
96
|
+
„Keine Mail an die Familie …". The same toast comes when the school's outgoing mail
|
|
97
|
+
is off. A letter switched off at the event says so without a warning.
|
|
98
|
+
- **Export before editing.** An offer exported before the letters became events carries
|
|
99
|
+
no binding; applying it would leave every event unbound. Export the live offer again
|
|
100
|
+
(or run `plexus-cli offer upgrade` on the old export) before editing it.
|
|
69
101
|
- The zone is the tenant's (`Europe/Berlin` for every DACH tenant today).
|