Skip to content

Commit 2364dda

Browse files
authored
5 extract email config (#6)
* Adding email configs * Add email configs stream to tap
1 parent 8ea32b2 commit 2364dda

File tree

4 files changed

+88
-1
lines changed

4 files changed

+88
-1
lines changed

.vscode/launch.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@
88
"type": "python",
99
"request": "launch",
1010
"module": "tap_freshdesk.tap",
11-
"args": ["--config", ".secrets/config.json",],
11+
"args": ["--config", ".secrets/config.json", ">", "test.txt"],
12+
"python": "${command:python.interpreterPath}",
13+
// Set to true to debug third-party library code
14+
"justMyCode": true,
15+
}
16+
{
17+
"name": "tap-freshdesk invoke",
18+
"type": "python",
19+
"request": "launch",
20+
"module": "tap_freshdesk.tap",
21+
"args": ["--config", ".secrets/config.json", "--test"],
1222
"python": "${command:python.interpreterPath}",
1323
// Set to true to debug third-party library code
1424
"justMyCode": true,
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"type": "object",
3+
"properties": {
4+
"id": {
5+
"type": [
6+
"integer"
7+
]
8+
},
9+
"name": {
10+
"type": [
11+
"string",
12+
"null"
13+
]
14+
},
15+
"product_id": {
16+
"type": [
17+
"integer",
18+
"null"
19+
]
20+
},
21+
"to_email": {
22+
"type": [
23+
"string",
24+
"null"
25+
]
26+
},
27+
"reply_email": {
28+
"type": [
29+
"string",
30+
"null"
31+
]
32+
},
33+
"group_id": {
34+
"type": [
35+
"integer",
36+
"null"
37+
]
38+
},
39+
"primary_role": {
40+
"type": [
41+
"boolean",
42+
"null"
43+
]
44+
},
45+
"active": {
46+
"type": [
47+
"boolean",
48+
"null"
49+
]
50+
},
51+
"created_at": {
52+
"anyOf": [
53+
{
54+
"type": "string",
55+
"format": "date-time"
56+
},
57+
{
58+
"type": "null"
59+
}
60+
]
61+
},
62+
"updated_at": {
63+
"anyOf": [
64+
{
65+
"type": "string",
66+
"format": "date-time"
67+
},
68+
{
69+
"type": "null"
70+
}
71+
]
72+
}
73+
}
74+
}

tap_freshdesk/streams.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ class GroupsStream(FreshdeskStream):
3232
class ContactsStream(FreshdeskStream):
3333
name = "contacts"
3434

35+
class EmailConfigsStream(FreshdeskStream):
36+
name = "email_configs"
3537

3638
class TicketsAbridgedStream(PagedFreshdeskStream):
3739
name = "tickets_abridged"

tap_freshdesk/tap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def discover_streams(self) -> list[streams.FreshdeskStream]:
6767
streams.TicketsAbridgedStream(tap=self, ticket_ids=_ticket_ids),
6868
streams.TicketsDetailStream(tap=self, ticket_ids=_ticket_ids),
6969
streams.ConversationsStream(self),
70+
streams.EmailConfigsStream(self),
7071
]
7172

7273

0 commit comments

Comments
 (0)