Skip to content

Commit 005a6eb

Browse files
committed
Adds FictionalUsersStream
1 parent d1c7c44 commit 005a6eb

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Built with the [Meltano Tap SDK](https://sdk.meltano.com) for Singer Taps.
3939
* [ ] Permissions
4040
* [ ] Tasks
4141
* [x] Units
42-
* [ ] User Management
42+
* [x] User Management
4343

4444
## Installation
4545

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"type": "object",
3+
"additionalProperties": false,
4+
"properties": {
5+
"id": {
6+
"type": "integer"
7+
},
8+
"salutation_type": {
9+
"type": "string"
10+
},
11+
"firstname": {
12+
"type": "string"
13+
},
14+
"lastname": {
15+
"type": "string"
16+
},
17+
"email": {
18+
"type": "string"
19+
},
20+
"title_id": {
21+
"type": ["null", "integer"]
22+
}
23+
}
24+
}

tap_bexio/streams.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,3 +331,13 @@ class UsersStream(bexioStream):
331331
replication_method: "FULL_TABLE"
332332
replication_key = "id"
333333
schema_filepath = SCHEMAS_DIR / "user.json"
334+
335+
class FictionalUsersStream(bexioStream):
336+
"""Bank payments stream."""
337+
name = "fictional_users"
338+
path = "3.0/fictional_users"
339+
data_key = "fictional_users"
340+
primary_keys = ["id"]
341+
replication_method: "FULL_TABLE"
342+
replication_key = "id"
343+
schema_filepath = SCHEMAS_DIR / "fictional_user.json"

tap_bexio/tap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
FilesStream,
3737
PayrollEmployeesStream,
3838
UsersStream,
39+
FictionalUsersStream,
3940
)
4041

4142
STREAM_TYPES = [
@@ -69,6 +70,7 @@
6970
FilesStream,
7071
PayrollEmployeesStream,
7172
UsersStream,
73+
FictionalUsersStream,
7274
]
7375

7476

0 commit comments

Comments
 (0)