Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/divera247/models/alarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class AlarmResult(BaseModel):
default=None,
description='Im Archiv, nur noch für Schreibberechtigte zugänglich',
)
ucr_adressed: Sequence[int] | None = Field(
ucr_addressed: Sequence[int] | None = Field(
default=None,
description='Adressierte Benutzer',
)
Expand Down Expand Up @@ -358,10 +358,6 @@ class AlarmResult(BaseModel):
default=None,
description="Einsatzdauer (z.B. '35 Minuten')",
)
ucr_addressed: Sequence[int] | None = Field(
default=None,
description='Adressierte Benutzer (API spelling)',
)
ucr_answeredcount: Mapping[str, int] | None = Field(
default=None,
description='Anzahl Rückmeldungen pro Status (status_id -> count)',
Expand Down
6 changes: 3 additions & 3 deletions tests/alarm/get_alarms_id_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@
"answerable": true,
"hidden": true,
"deleted": true,
"ucr_adressed": [
0
],
"ucr_answered": {},
"ucr_self_addressed": true,
"ucr_self_status_id": 0,
Expand All @@ -83,6 +80,9 @@
"title": "Anruferweg",
"value": "Call to 19222"
}
],
"ucr_addressed": [
0
]
},
"ucr": 0
Expand Down
6 changes: 3 additions & 3 deletions tests/alarm/get_alarms_list_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@
"answerable": true,
"hidden": true,
"deleted": true,
"ucr_adressed": [
0
],
"ucr_answered": {},
"ucr_self_addressed": true,
"ucr_self_status_id": 0,
Expand All @@ -84,6 +81,9 @@
"title": "Anruferweg",
"value": "Call to 19222"
}
],
"ucr_addressed": [
0
]
}
],
Expand Down
18 changes: 9 additions & 9 deletions tests/alarm/get_alarms_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@
"answerable": true,
"hidden": true,
"deleted": true,
"ucr_adressed": [
0
],
"ucr_answered": {},
"ucr_self_addressed": true,
"ucr_self_status_id": 0,
Expand All @@ -85,6 +82,9 @@
"title": "Anruferweg",
"value": "Call to 19222"
}
],
"ucr_addressed": [
0
]
},
"additionalProp2": {
Expand Down Expand Up @@ -144,9 +144,6 @@
"answerable": true,
"hidden": true,
"deleted": true,
"ucr_adressed": [
0
],
"ucr_answered": {},
"ucr_self_addressed": true,
"ucr_self_status_id": 0,
Expand All @@ -170,6 +167,9 @@
"title": "Anruferweg",
"value": "Call to 19222"
}
],
"ucr_addressed": [
0
]
},
"additionalProp3": {
Expand Down Expand Up @@ -229,9 +229,6 @@
"answerable": true,
"hidden": true,
"deleted": true,
"ucr_adressed": [
0
],
"ucr_answered": {},
"ucr_self_addressed": true,
"ucr_self_status_id": 0,
Expand All @@ -255,6 +252,9 @@
"title": "Anruferweg",
"value": "Call to 19222"
}
],
"ucr_addressed": [
0
]
}
},
Expand Down
6 changes: 3 additions & 3 deletions tests/alarm/post_alarms_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@
"answerable": true,
"hidden": true,
"deleted": true,
"ucr_adressed": [
0
],
"ucr_answered": {},
"ucr_self_addressed": true,
"ucr_self_status_id": 0,
Expand All @@ -83,6 +80,9 @@
"title": "Anruferweg",
"value": "Call to 19222"
}
],
"ucr_addressed": [
0
]
}
}
6 changes: 3 additions & 3 deletions tests/alarm/put_alarms_id_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@
"answerable": true,
"hidden": true,
"deleted": true,
"ucr_adressed": [
0
],
"ucr_answered": {},
"ucr_self_addressed": true,
"ucr_self_status_id": 0,
Expand All @@ -83,6 +80,9 @@
"title": "Anruferweg",
"value": "Call to 19222"
}
],
"ucr_addressed": [
0
]
},
"ucr": 0
Expand Down
10 changes: 5 additions & 5 deletions tests/event/get_events_id_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@
"access_names": true,
"participation": true,
"note": "bin dabei!",
"ucr_adressed": [
0
],
"ucr_answered": [
0
],
"ucr_self_addressed": true,
"count_recipients": 0,
"count_read": 0,
"ts_create": 0,
"ts_update": 0
"ts_update": 0,
"ucr_addressed": [
0
]
},
"ucr": 0
}
}
26 changes: 13 additions & 13 deletions tests/event/get_events_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@
"access_names": true,
"participation": true,
"note": "bin dabei!",
"ucr_adressed": [
0
],
"ucr_answered": [
0
],
"ucr_self_addressed": true,
"count_recipients": 0,
"count_read": 0,
"ts_create": 0,
"ts_update": 0
"ts_update": 0,
"ucr_addressed": [
0
]
},
"additionalProp2": {
"id": 123,
Expand Down Expand Up @@ -108,17 +108,17 @@
"access_names": true,
"participation": true,
"note": "bin dabei!",
"ucr_adressed": [
0
],
"ucr_answered": [
0
],
"ucr_self_addressed": true,
"count_recipients": 0,
"count_read": 0,
"ts_create": 0,
"ts_update": 0
"ts_update": 0,
"ucr_addressed": [
0
]
},
"additionalProp3": {
"id": 123,
Expand Down Expand Up @@ -167,22 +167,22 @@
"access_names": true,
"participation": true,
"note": "bin dabei!",
"ucr_adressed": [
0
],
"ucr_answered": [
0
],
"ucr_self_addressed": true,
"count_recipients": 0,
"count_read": 0,
"ts_create": 0,
"ts_update": 0
"ts_update": 0,
"ucr_addressed": [
0
]
}
},
"sorting": [
0
]
},
"ucr": 0
}
}
10 changes: 5 additions & 5 deletions tests/event/post_events_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@
"access_names": true,
"participation": true,
"note": "bin dabei!",
"ucr_adressed": [
0
],
"ucr_answered": [
0
],
"ucr_self_addressed": true,
"count_recipients": 0,
"count_read": 0,
"ts_create": 0,
"ts_update": 0
"ts_update": 0,
"ucr_addressed": [
0
]
}
}
}
10 changes: 5 additions & 5 deletions tests/event/put_events_id_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@
"access_names": true,
"participation": true,
"note": "bin dabei!",
"ucr_adressed": [
0
],
"ucr_answered": [
0
],
"ucr_self_addressed": true,
"count_recipients": 0,
"count_read": 0,
"ts_create": 0,
"ts_update": 0
"ts_update": 0,
"ucr_addressed": [
0
]
}
}
}
8 changes: 4 additions & 4 deletions tests/news/get_news_id_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@
"answerable": true,
"hidden": true,
"deleted": true,
"ucr_adressed": [
0
],
"ucr_answered": [
0
],
Expand All @@ -79,7 +76,10 @@
"archive": true,
"ts_archive": 0,
"ts_create": 0,
"ts_update": 0
"ts_update": 0,
"ucr_addressed": [
0
]
},
"ucr": 0
}
24 changes: 12 additions & 12 deletions tests/news/get_news_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@
"answerable": true,
"hidden": true,
"deleted": true,
"ucr_adressed": [
0
],
"ucr_answered": [
0
],
Expand All @@ -81,7 +78,10 @@
"archive": true,
"ts_archive": 0,
"ts_create": 0,
"ts_update": 0
"ts_update": 0,
"ucr_addressed": [
0
]
},
"additionalProp2": {
"id": 123,
Expand Down Expand Up @@ -149,9 +149,6 @@
"answerable": true,
"hidden": true,
"deleted": true,
"ucr_adressed": [
0
],
"ucr_answered": [
0
],
Expand All @@ -162,7 +159,10 @@
"archive": true,
"ts_archive": 0,
"ts_create": 0,
"ts_update": 0
"ts_update": 0,
"ucr_addressed": [
0
]
},
"additionalProp3": {
"id": 123,
Expand Down Expand Up @@ -230,9 +230,6 @@
"answerable": true,
"hidden": true,
"deleted": true,
"ucr_adressed": [
0
],
"ucr_answered": [
0
],
Expand All @@ -243,7 +240,10 @@
"archive": true,
"ts_archive": 0,
"ts_create": 0,
"ts_update": 0
"ts_update": 0,
"ucr_addressed": [
0
]
}
},
"sorting": [
Expand Down
Loading