Added new notifications to basic types
This commit is contained in:
parent
0c6c3a048d
commit
b36e2c9e05
@ -1851,6 +1851,8 @@ components:
|
|||||||
- time_conflict
|
- time_conflict
|
||||||
- time_conflict_resolved
|
- time_conflict_resolved
|
||||||
- unassigned
|
- unassigned
|
||||||
|
- missing_data
|
||||||
|
- cancelled
|
||||||
example: time_conflict
|
example: time_conflict
|
||||||
EvaluationType:
|
EvaluationType:
|
||||||
description: Evaluation of the ship call
|
description: Evaluation of the ship call
|
||||||
|
|||||||
@ -30,6 +30,14 @@ Durch unterschiedliche Zeitangaben der Teilnehmer wird die Ampel ausgelöst und
|
|||||||
|
|
||||||
Der Teilnehmer ist nicht mehr länger dem Anlauf zugeordnet.
|
Der Teilnehmer ist nicht mehr länger dem Anlauf zugeordnet.
|
||||||
|
|
||||||
|
### 6. Fehlende Daten
|
||||||
|
|
||||||
|
Dienstleister, die 16 Stunden vor ETA/ETD und Agenturen, die 20 Stunden vor ETA/ETD keine Angaben gemacht haben.
|
||||||
|
|
||||||
|
### 7. Storno
|
||||||
|
|
||||||
|
Wird ein Anlauf storniert erhalten alle bis dahin zugeordneten Teilnehmer eine Benachrichtigung.
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@ -42,6 +50,8 @@ Der Teilnehmer ist nicht mehr länger dem Anlauf zugeordnet.
|
|||||||
- time_conflict
|
- time_conflict
|
||||||
- time_conflict_resolved
|
- time_conflict_resolved
|
||||||
- unassigned
|
- unassigned
|
||||||
|
- missing_data
|
||||||
|
- cancelled
|
||||||
```
|
```
|
||||||
|
|
||||||
## Entfernen von Benachrichtigungen
|
## Entfernen von Benachrichtigungen
|
||||||
|
|||||||
@ -33,5 +33,19 @@
|
|||||||
"name" : "unassigned",
|
"name" : "unassigned",
|
||||||
"link" : "https://www.bremen-calling.de/",
|
"link" : "https://www.bremen-calling.de/",
|
||||||
"msg_text" : "Nominierung abgewählt"
|
"msg_text" : "Nominierung abgewählt"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type" : 6,
|
||||||
|
"color" : "#a8a800",
|
||||||
|
"name" : "missing_data",
|
||||||
|
"link" : "https://www.bremen-calling.de/",
|
||||||
|
"msg_text" : "Fehlende Daten"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type" : 7,
|
||||||
|
"color" : "#808070",
|
||||||
|
"name" : "cancelled",
|
||||||
|
"link" : "https://www.bremen-calling.de/",
|
||||||
|
"msg_text" : "Storno"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -76,6 +76,8 @@ class NotificationType(IntEnum):
|
|||||||
time_conflict = 3
|
time_conflict = 3
|
||||||
time_conflict_resolved = 4
|
time_conflict_resolved = 4
|
||||||
unassigned = 5
|
unassigned = 5
|
||||||
|
missing_data = 6
|
||||||
|
cancelled = 7
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _missing_(cls, value):
|
def _missing_(cls, value):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user