Skip to content

Commit 1fae145

Browse files
committed
Adds task priority endpoint
1 parent 0c8291b commit 1fae145

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed
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
@@ -361,3 +361,13 @@ class TasksStream(bexioStream):
361361
replication_method: "FULL_TABLE"
362362
replication_key = "id"
363363
schema_filepath = SCHEMAS_DIR / "tasks.json"
364+
365+
class TaskPrioritiesStream(bexioStream):
366+
"""Task priorities stream."""
367+
name = "task_priorities"
368+
path = "2.0/todo_priority"
369+
data_key = "task_priorities"
370+
primary_keys = ["id"]
371+
replication_method: "FULL_TABLE"
372+
replication_key = "id"
373+
schema_filepath = SCHEMAS_DIR / "task_priority.json"

tap_bexio/tap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
FictionalUsersStream,
4040
NotesStream,
4141
TasksStream,
42+
TaskPrioritiesStream,
4243
)
4344

4445
STREAM_TYPES = [
@@ -75,6 +76,7 @@
7576
FictionalUsersStream,
7677
NotesStream,
7778
TasksStream,
79+
TaskPrioritiesStream,
7880
]
7981

8082

0 commit comments

Comments
 (0)