diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index 569f1ab..3748d1c 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -101,7 +101,7 @@ jobs: fail-fast: false matrix: builder: ["builder-22"] - example: ["java-function", "javascript-function", "python-function", "typescript-function"] + example: ["java-function", "javascript-function", "typescript-function"] steps: - name: Checkout uses: actions/checkout@v3 diff --git a/examples/python-function/README.md b/examples/python-function/README.md deleted file mode 100644 index 4bcafa9..0000000 --- a/examples/python-function/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Pythonexample Function - - diff --git a/examples/python-function/main.py b/examples/python-function/main.py deleted file mode 100644 index 4c05d20..0000000 --- a/examples/python-function/main.py +++ /dev/null @@ -1,20 +0,0 @@ -from typing import Any - -from salesforce_functions import Context, InvocationEvent, get_logger - -# The type of the data payload sent with the invocation event. -# Change this to a more specific type matching the expected payload for -# improved IDE auto-completion and linting coverage. For example: -# `EventPayloadType = dict[str, Any]` -EventPayloadType = Any - -logger = get_logger() - - -async def function(event: InvocationEvent[EventPayloadType], context: Context): - """Describe the function here.""" - - result = await context.org.data_api.query("SELECT Id, Name FROM Account") - logger.info(f"Function successfully queried {result.total_size} account records!") - - return result.records diff --git a/examples/python-function/payload.json b/examples/python-function/payload.json deleted file mode 100644 index 0967ef4..0000000 --- a/examples/python-function/payload.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/examples/python-function/project.toml b/examples/python-function/project.toml deleted file mode 100644 index eec6813..0000000 --- a/examples/python-function/project.toml +++ /dev/null @@ -1,9 +0,0 @@ -[_] -schema-version = "0.2" - -[com.salesforce] -schema-version = "0.1" -id = "pythonfunctionscaffold" -description = "A Salesforce Function" -type = "function" -salesforce-api-version = "56.0" diff --git a/examples/python-function/requirements.txt b/examples/python-function/requirements.txt deleted file mode 100644 index 7e94aa8..0000000 --- a/examples/python-function/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -salesforce-functions>=0.1.0,<1.0.0