Skip to content

Commit 85e8f7d

Browse files
authored
update pipedrive source with projects and tasks (#612)
1 parent 3e27a86 commit 85e8f7d

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

sources/pipedrive/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
To get an api key: https://pipedrive.readme.io/docs/how-to-find-the-api-token
1010
"""
1111

12-
from typing import Any, Dict, Iterator, List, Optional, Union, Iterable, Iterator, Tuple
12+
from typing import Any, Dict, Iterator, List, Optional, Union, Iterator
1313

1414
import dlt
1515

@@ -53,6 +53,8 @@ def pipedrive_source(
5353
stages
5454
users
5555
leads
56+
projects
57+
tasks
5658
5759
For custom fields rename the `custom_fields_mapping` resource must be selected or loaded before other resources.
5860

sources/pipedrive/helpers/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Pipedrive source helpers"""
22

3-
from dlt.common import pendulum
4-
from typing import Any, Iterable, Tuple, Dict, List, cast
3+
from typing import Any, Iterable, Tuple, Dict, List
54
from itertools import groupby
65

76

sources/pipedrive/helpers/custom_fields_munger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Dict, Iterable, Iterator, TypedDict, Optional
1+
from typing import Any, Dict, TypedDict, Optional
22

33
import dlt
44

sources/pipedrive/helpers/pages.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
from itertools import chain, groupby
1+
from itertools import chain
22
from typing import (
33
Any,
44
Dict,
55
Iterable,
66
Iterator,
77
List,
8-
Optional,
9-
Sequence,
108
TypeVar,
119
Union,
1210
)

sources/pipedrive/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
"organization": "organizations",
2323
"pipeline": "pipelines",
2424
"product": "products",
25+
"project": "projects",
2526
"stage": "stages",
27+
"task": "tasks",
2628
"user": "users",
2729
}

0 commit comments

Comments
 (0)