Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "pipedream"

[tool.poetry]
name = "pipedream"
version = "1.0.8"
version = "1.0.9"
description = ""
readme = "README.md"
authors = []
Expand Down
30 changes: 10 additions & 20 deletions src/pipedream/accounts/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ def with_raw_response(self) -> RawAccountsClient:
def list(
self,
*,
app_id: typing.Optional[str] = None,
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
after: typing.Optional[str] = None,
before: typing.Optional[str] = None,
limit: typing.Optional[int] = None,
app: typing.Optional[str] = None,
include_credentials: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> SyncPager[Account]:
Expand All @@ -44,9 +44,6 @@ def list(

Parameters
----------
app_id : typing.Optional[str]
The app slug or ID to filter accounts by.

external_user_id : typing.Optional[str]

oauth_app_id : typing.Optional[str]
Expand All @@ -61,6 +58,9 @@ def list(
limit : typing.Optional[int]
The maximum number of results to return

app : typing.Optional[str]
The app slug or ID to filter accounts by.

include_credentials : typing.Optional[bool]
Whether to retrieve the account's credentials or not

Expand Down Expand Up @@ -90,12 +90,12 @@ def list(
yield page
"""
return self._raw_client.list(
app_id=app_id,
external_user_id=external_user_id,
oauth_app_id=oauth_app_id,
after=after,
before=before,
limit=limit,
app=app,
include_credentials=include_credentials,
request_options=request_options,
)
Expand All @@ -106,7 +106,6 @@ def create(
app_slug: str,
cfmap_json: str,
connect_token: str,
app_id: typing.Optional[str] = None,
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
name: typing.Optional[str] = OMIT,
Expand All @@ -126,9 +125,6 @@ def create(
connect_token : str
The connect token for authentication

app_id : typing.Optional[str]
The app slug or ID to filter accounts by.

external_user_id : typing.Optional[str]

oauth_app_id : typing.Optional[str]
Expand Down Expand Up @@ -165,7 +161,6 @@ def create(
app_slug=app_slug,
cfmap_json=cfmap_json,
connect_token=connect_token,
app_id=app_id,
external_user_id=external_user_id,
oauth_app_id=oauth_app_id,
name=name,
Expand Down Expand Up @@ -300,12 +295,12 @@ def with_raw_response(self) -> AsyncRawAccountsClient:
async def list(
self,
*,
app_id: typing.Optional[str] = None,
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
after: typing.Optional[str] = None,
before: typing.Optional[str] = None,
limit: typing.Optional[int] = None,
app: typing.Optional[str] = None,
include_credentials: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncPager[Account]:
Expand All @@ -314,9 +309,6 @@ async def list(

Parameters
----------
app_id : typing.Optional[str]
The app slug or ID to filter accounts by.

external_user_id : typing.Optional[str]

oauth_app_id : typing.Optional[str]
Expand All @@ -331,6 +323,9 @@ async def list(
limit : typing.Optional[int]
The maximum number of results to return

app : typing.Optional[str]
The app slug or ID to filter accounts by.

include_credentials : typing.Optional[bool]
Whether to retrieve the account's credentials or not

Expand Down Expand Up @@ -369,12 +364,12 @@ async def main() -> None:
asyncio.run(main())
"""
return await self._raw_client.list(
app_id=app_id,
external_user_id=external_user_id,
oauth_app_id=oauth_app_id,
after=after,
before=before,
limit=limit,
app=app,
include_credentials=include_credentials,
request_options=request_options,
)
Expand All @@ -385,7 +380,6 @@ async def create(
app_slug: str,
cfmap_json: str,
connect_token: str,
app_id: typing.Optional[str] = None,
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
name: typing.Optional[str] = OMIT,
Expand All @@ -405,9 +399,6 @@ async def create(
connect_token : str
The connect token for authentication

app_id : typing.Optional[str]
The app slug or ID to filter accounts by.

external_user_id : typing.Optional[str]

oauth_app_id : typing.Optional[str]
Expand Down Expand Up @@ -452,7 +443,6 @@ async def main() -> None:
app_slug=app_slug,
cfmap_json=cfmap_json,
connect_token=connect_token,
app_id=app_id,
external_user_id=external_user_id,
oauth_app_id=oauth_app_id,
name=name,
Expand Down
34 changes: 12 additions & 22 deletions src/pipedream/accounts/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
def list(
self,
*,
app_id: typing.Optional[str] = None,
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
after: typing.Optional[str] = None,
before: typing.Optional[str] = None,
limit: typing.Optional[int] = None,
app: typing.Optional[str] = None,
include_credentials: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> SyncPager[Account]:
Expand All @@ -39,9 +39,6 @@ def list(

Parameters
----------
app_id : typing.Optional[str]
The app slug or ID to filter accounts by.

external_user_id : typing.Optional[str]

oauth_app_id : typing.Optional[str]
Expand All @@ -56,6 +53,9 @@ def list(
limit : typing.Optional[int]
The maximum number of results to return

app : typing.Optional[str]
The app slug or ID to filter accounts by.

include_credentials : typing.Optional[bool]
Whether to retrieve the account's credentials or not

Expand All @@ -71,12 +71,12 @@ def list(
f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/accounts",
method="GET",
params={
"app_id": app_id,
"external_user_id": external_user_id,
"oauth_app_id": oauth_app_id,
"after": after,
"before": before,
"limit": limit,
"app": app,
"include_credentials": include_credentials,
},
request_options=request_options,
Expand All @@ -97,12 +97,12 @@ def list(
_parsed_next = _parsed_response.page_info.end_cursor
_has_next = _parsed_next is not None and _parsed_next != ""
_get_next = lambda: self.list(
app_id=app_id,
external_user_id=external_user_id,
oauth_app_id=oauth_app_id,
after=_parsed_next,
before=before,
limit=limit,
app=app,
include_credentials=include_credentials,
request_options=request_options,
)
Expand Down Expand Up @@ -131,7 +131,6 @@ def create(
app_slug: str,
cfmap_json: str,
connect_token: str,
app_id: typing.Optional[str] = None,
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
name: typing.Optional[str] = OMIT,
Expand All @@ -151,9 +150,6 @@ def create(
connect_token : str
The connect token for authentication

app_id : typing.Optional[str]
The app slug or ID to filter accounts by.

external_user_id : typing.Optional[str]

oauth_app_id : typing.Optional[str]
Expand All @@ -174,7 +170,6 @@ def create(
f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/accounts",
method="POST",
params={
"app_id": app_id,
"external_user_id": external_user_id,
"oauth_app_id": oauth_app_id,
},
Expand Down Expand Up @@ -363,12 +358,12 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
async def list(
self,
*,
app_id: typing.Optional[str] = None,
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
after: typing.Optional[str] = None,
before: typing.Optional[str] = None,
limit: typing.Optional[int] = None,
app: typing.Optional[str] = None,
include_credentials: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncPager[Account]:
Expand All @@ -377,9 +372,6 @@ async def list(

Parameters
----------
app_id : typing.Optional[str]
The app slug or ID to filter accounts by.

external_user_id : typing.Optional[str]

oauth_app_id : typing.Optional[str]
Expand All @@ -394,6 +386,9 @@ async def list(
limit : typing.Optional[int]
The maximum number of results to return

app : typing.Optional[str]
The app slug or ID to filter accounts by.

include_credentials : typing.Optional[bool]
Whether to retrieve the account's credentials or not

Expand All @@ -409,12 +404,12 @@ async def list(
f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/accounts",
method="GET",
params={
"app_id": app_id,
"external_user_id": external_user_id,
"oauth_app_id": oauth_app_id,
"after": after,
"before": before,
"limit": limit,
"app": app,
"include_credentials": include_credentials,
},
request_options=request_options,
Expand All @@ -437,12 +432,12 @@ async def list(

async def _get_next():
return await self.list(
app_id=app_id,
external_user_id=external_user_id,
oauth_app_id=oauth_app_id,
after=_parsed_next,
before=before,
limit=limit,
app=app,
include_credentials=include_credentials,
request_options=request_options,
)
Expand Down Expand Up @@ -472,7 +467,6 @@ async def create(
app_slug: str,
cfmap_json: str,
connect_token: str,
app_id: typing.Optional[str] = None,
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
name: typing.Optional[str] = OMIT,
Expand All @@ -492,9 +486,6 @@ async def create(
connect_token : str
The connect token for authentication

app_id : typing.Optional[str]
The app slug or ID to filter accounts by.

external_user_id : typing.Optional[str]

oauth_app_id : typing.Optional[str]
Expand All @@ -515,7 +506,6 @@ async def create(
f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/accounts",
method="POST",
params={
"app_id": app_id,
"external_user_id": external_user_id,
"oauth_app_id": oauth_app_id,
},
Expand Down
Loading
Loading