Skip to content

Commit 1991dd7

Browse files
committed
Adds files
1 parent 11485db commit 1991dd7

File tree

4 files changed

+61
-1
lines changed

4 files changed

+61
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Built with the [Meltano Tap SDK](https://sdk.meltano.com) for Singer Taps.
2626
* [x] Banking
2727
* [ ] Items & Products
2828
* [x] Projects & Time Tracking
29-
* [ ] Files
29+
* [x] Files
3030
* [ ] Other
3131
* [ ] Company Profile
3232
* [x] Countries

tap_bexio/schemas/files.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"type": "object",
3+
"additionalProperties": false,
4+
"properties": {
5+
"id": {
6+
"type": "integer"
7+
},
8+
"uuid": {
9+
"type": "uuid"
10+
},
11+
"name": {
12+
"type": "string"
13+
},
14+
"size_in_bytes": {
15+
"type": "integer"
16+
},
17+
"extension": {
18+
"type": "string"
19+
},
20+
"mime_type": {
21+
"type": "string"
22+
},
23+
"uploader_email": {
24+
"type": "string"
25+
},
26+
"user_id": {
27+
"type": "integer"
28+
},
29+
"is_archived": {
30+
"type": "boolean"
31+
},
32+
"source_id": {
33+
"type": "integer"
34+
},
35+
"source_type": {
36+
"type": "string"
37+
},
38+
"is_referenced": {
39+
"type": "boolean"
40+
},
41+
"created_at": {
42+
"type": "string",
43+
"format": "date-time"
44+
}
45+
}
46+
}
47+

tap_bexio/streams.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,3 +302,12 @@ class BankPaymentsStream(bexioStream):
302302
replication_key = "id"
303303
schema_filepath = SCHEMAS_DIR / "banking_payment.json"
304304

305+
class FilesStream(bexioStream):
306+
"""Bank payments stream."""
307+
name = "files"
308+
path = "3.0/files"
309+
data_key = "files"
310+
primary_keys = ["id"]
311+
replication_method: "FULL_TABLE"
312+
replication_key = "id"
313+
schema_filepath = SCHEMAS_DIR / "files.json"

tap_bexio/tap.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
PaymentTypeStream,
3333
UnitStream,
3434
BankAccountsStream,
35+
BankPaymentsStream,
36+
FilesStream,
3537
)
3638

3739
STREAM_TYPES = [
@@ -61,6 +63,8 @@
6163
PaymentTypeStream,
6264
UnitStream,
6365
BankAccountsStream,
66+
BankPaymentsStream,
67+
FilesStream,
6468
]
6569

6670

0 commit comments

Comments
 (0)