Skip to content

Commit 0dbd021

Browse files
committed
Adds task status
1 parent 1fae145 commit 0dbd021

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

tap_bexio/schemas/task_status.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"type": "object",
3+
"additionalProperties": false,
4+
"properties": {
5+
"id": {
6+
"type": "integer"
7+
},
8+
"name": {
9+
"type": "string"
10+
}
11+
}
12+
}

tap_bexio/streams.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,3 +371,13 @@ class TaskPrioritiesStream(bexioStream):
371371
replication_method: "FULL_TABLE"
372372
replication_key = "id"
373373
schema_filepath = SCHEMAS_DIR / "task_priority.json"
374+
375+
class TaskStatusStream(bexioStream):
376+
"""Task status stream."""
377+
name = "task_status"
378+
path = "2.0/todo_status"
379+
data_key = "task_status"
380+
primary_keys = ["id"]
381+
replication_method: "FULL_TABLE"
382+
replication_key = "id"
383+
schema_filepath = SCHEMAS_DIR / "task_status.json"

tap_bexio/tap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
NotesStream,
4141
TasksStream,
4242
TaskPrioritiesStream,
43+
TaskStatusStream,
4344
)
4445

4546
STREAM_TYPES = [
@@ -77,6 +78,7 @@
7778
NotesStream,
7879
TasksStream,
7980
TaskPrioritiesStream,
81+
TaskStatusStream,
8082
]
8183

8284

0 commit comments

Comments
 (0)