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
4 changes: 2 additions & 2 deletions scripts/generate_sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ cat > "$TMP_DIR/config.manual.json" <<'EOF'
}
EOF

find "$OUTPUT_DIR" -mindepth 1 -maxdepth 1 -exec rm -rf {} + 2>/dev/null || true
find "$GENERATOR_OUTPUT_DIR" -mindepth 1 -maxdepth 1 -exec rm -rf {} + 2>/dev/null || true

docker pull "$GENERATOR_IMAGE" >/dev/null
docker run --rm \
-v "$TMP_DIR:/workspace" \
-v "$GENERATOR_OUTPUT_DIR:/fern/output" \
"$GENERATOR_IMAGE" \
/workspace/config.manual.json >/dev/null
/workspace/config.manual.json

find "$OUTPUT_DIR" -mindepth 1 -maxdepth 1 -exec rm -rf {} + 2>/dev/null || true
cp -R "$GENERATOR_OUTPUT_DIR"/. "$OUTPUT_DIR"/
touch "$OUTPUT_DIR/py.typed"
python3 -m compileall "$OUTPUT_DIR" >/dev/null
Expand Down
3 changes: 3 additions & 0 deletions src/sanka_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
expenses,
exports,
ferry_diagrams,
ferry_programs,
files,
imports,
incentives,
Expand Down Expand Up @@ -76,6 +77,7 @@
"expenses": ".expenses",
"exports": ".exports",
"ferry_diagrams": ".ferry_diagrams",
"ferry_programs": ".ferry_programs",
"files": ".files",
"imports": ".imports",
"incentives": ".incentives",
Expand Down Expand Up @@ -150,6 +152,7 @@ def __dir__():
"expenses",
"exports",
"ferry_diagrams",
"ferry_programs",
"files",
"imports",
"incentives",
Expand Down
19 changes: 19 additions & 0 deletions src/sanka_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from .expenses.client import AsyncExpensesClient, ExpensesClient
from .exports.client import AsyncExportsClient, ExportsClient
from .ferry_diagrams.client import AsyncFerryDiagramsClient, FerryDiagramsClient
from .ferry_programs.client import AsyncFerryProgramsClient, FerryProgramsClient
from .files.client import AsyncFilesClient, FilesClient
from .imports.client import AsyncImportsClient, ImportsClient
from .incentives.client import AsyncIncentivesClient, IncentivesClient
Expand Down Expand Up @@ -174,6 +175,7 @@ def __init__(
self._workflows: typing.Optional[WorkflowsClient] = None
self._workflow_runs: typing.Optional[WorkflowRunsClient] = None
self._ferry_diagrams: typing.Optional[FerryDiagramsClient] = None
self._ferry_programs: typing.Optional[FerryProgramsClient] = None

@property
def absences(self):
Expand Down Expand Up @@ -551,6 +553,14 @@ def ferry_diagrams(self):
self._ferry_diagrams = FerryDiagramsClient(client_wrapper=self._client_wrapper)
return self._ferry_diagrams

@property
def ferry_programs(self):
if self._ferry_programs is None:
from .ferry_programs.client import FerryProgramsClient # noqa: E402

self._ferry_programs = FerryProgramsClient(client_wrapper=self._client_wrapper)
return self._ferry_programs


class AsyncSankaClient:
"""
Expand Down Expand Up @@ -668,6 +678,7 @@ def __init__(
self._workflows: typing.Optional[AsyncWorkflowsClient] = None
self._workflow_runs: typing.Optional[AsyncWorkflowRunsClient] = None
self._ferry_diagrams: typing.Optional[AsyncFerryDiagramsClient] = None
self._ferry_programs: typing.Optional[AsyncFerryProgramsClient] = None

@property
def absences(self):
Expand Down Expand Up @@ -1045,6 +1056,14 @@ def ferry_diagrams(self):
self._ferry_diagrams = AsyncFerryDiagramsClient(client_wrapper=self._client_wrapper)
return self._ferry_diagrams

@property
def ferry_programs(self):
if self._ferry_programs is None:
from .ferry_programs.client import AsyncFerryProgramsClient # noqa: E402

self._ferry_programs = AsyncFerryProgramsClient(client_wrapper=self._client_wrapper)
return self._ferry_programs


def _get_base_url(*, base_url: typing.Optional[str] = None, environment: SankaClientEnvironment) -> str:
if base_url is not None:
Expand Down
4 changes: 4 additions & 0 deletions src/sanka_sdk/ferry_programs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This file was auto-generated by Fern from our API Definition.

# isort: skip_file

Loading