@planqk/planqk-api-sdk 1.3.7 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.template +3 -3
- package/.gitlab-ci.yml +19 -22
- package/.releaserc.json +2 -1
- package/README-node.md +1 -1
- package/README-python.md +1 -1
- package/README.md +1 -1
- package/dist/sdk/Client.d.ts +8 -0
- package/dist/sdk/Client.js +12 -2
- package/dist/sdk/api/resources/dataPools/client/Client.d.ts +4 -1
- package/dist/sdk/api/resources/dataPools/client/Client.js +57 -39
- package/dist/sdk/api/resources/dataPools/client/requests/AddDataPoolFileRequest.d.ts +1 -1
- package/dist/sdk/api/resources/dataPools/client/requests/CreateDataPoolRequest.d.ts +1 -0
- package/dist/sdk/api/resources/dataPools/client/requests/UpdateDataPoolRequest.d.ts +3 -0
- package/dist/sdk/api/resources/index.d.ts +3 -0
- package/dist/sdk/api/resources/index.js +4 -1
- package/dist/sdk/api/resources/serviceExecutions/client/Client.d.ts +90 -0
- package/dist/sdk/api/resources/serviceExecutions/client/Client.js +271 -0
- package/dist/sdk/api/resources/serviceExecutions/client/index.d.ts +1 -0
- package/dist/sdk/api/resources/serviceExecutions/index.d.ts +1 -0
- package/dist/sdk/api/resources/serviceExecutions/index.js +17 -0
- package/dist/sdk/api/resources/serviceJobs/client/Client.d.ts +138 -0
- package/dist/sdk/api/resources/serviceJobs/client/Client.js +489 -0
- package/dist/sdk/api/resources/serviceJobs/client/index.d.ts +2 -0
- package/dist/sdk/api/resources/serviceJobs/client/index.js +17 -0
- package/dist/sdk/api/resources/serviceJobs/client/requests/CreateServiceJobRequest.d.ts +15 -0
- package/dist/sdk/api/resources/serviceJobs/client/requests/CreateServiceJobRequest.js +5 -0
- package/dist/sdk/api/resources/serviceJobs/client/requests/index.d.ts +1 -0
- package/dist/sdk/api/resources/serviceJobs/client/requests/index.js +2 -0
- package/dist/sdk/api/resources/serviceJobs/index.d.ts +1 -0
- package/dist/sdk/api/resources/serviceJobs/index.js +17 -0
- package/dist/sdk/api/types/ActivityInstance.d.ts +20 -0
- package/dist/sdk/api/types/ActivityInstance.js +14 -0
- package/dist/sdk/api/types/DataPoolDto.d.ts +5 -0
- package/dist/sdk/api/types/DataPoolFileDto.d.ts +7 -0
- package/dist/sdk/api/types/LogEntry.d.ts +24 -0
- package/dist/sdk/api/types/LogEntry.js +16 -0
- package/dist/sdk/api/types/MetricDataPoint.d.ts +12 -0
- package/dist/sdk/api/types/MetricDataPoint.js +5 -0
- package/dist/sdk/api/types/ServiceExecutionDto.d.ts +21 -0
- package/dist/sdk/api/types/ServiceExecutionDto.js +17 -0
- package/dist/sdk/api/types/ServiceExecutionLogs.d.ts +5 -0
- package/dist/sdk/api/types/ServiceExecutionLogs.js +5 -0
- package/dist/sdk/api/types/ServiceExecutionMetrics.d.ts +23 -0
- package/dist/sdk/api/types/ServiceExecutionMetrics.js +5 -0
- package/dist/sdk/api/types/ServiceJobDto.d.ts +46 -0
- package/dist/sdk/api/types/ServiceJobDto.js +22 -0
- package/dist/sdk/api/types/VariableInstance.d.ts +9 -0
- package/dist/sdk/api/types/VariableInstance.js +5 -0
- package/dist/sdk/api/types/WorkflowInstance.d.ts +23 -0
- package/dist/sdk/api/types/WorkflowInstance.js +17 -0
- package/dist/sdk/api/types/WorkflowServiceExecutionDto.d.ts +8 -0
- package/dist/sdk/api/types/WorkflowServiceExecutionDto.js +5 -0
- package/dist/sdk/api/types/index.d.ts +10 -0
- package/dist/sdk/api/types/index.js +10 -0
- package/dist/sdk/core/exports.d.ts +1 -0
- package/dist/sdk/core/exports.js +17 -0
- package/dist/sdk/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/sdk/core/fetcher/Fetcher.js +2 -2
- package/dist/sdk/core/fetcher/index.d.ts +5 -5
- package/dist/sdk/core/fetcher/index.js +5 -5
- package/dist/sdk/core/file/exports.d.ts +1 -0
- package/dist/sdk/core/file/exports.js +2 -0
- package/dist/sdk/core/file/file.d.ts +5 -0
- package/dist/sdk/core/file/file.js +185 -0
- package/dist/sdk/core/file/index.d.ts +2 -0
- package/dist/sdk/core/file/index.js +18 -0
- package/dist/sdk/core/file/types.d.ts +66 -0
- package/dist/sdk/core/file/types.js +2 -0
- package/dist/sdk/core/form-data-utils/FormDataWrapper.js +12 -3
- package/dist/sdk/core/index.d.ts +1 -1
- package/dist/sdk/core/index.js +2 -2
- package/dist/sdk/core/url/join.js +23 -3
- package/dist/sdk/environments.d.ts +1 -1
- package/dist/sdk/environments.js +1 -1
- package/dist/sdk/exports.d.ts +1 -0
- package/dist/sdk/exports.js +17 -0
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.js +4 -0
- package/fern/fern.config.json +1 -1
- package/fern/generators.yml +9 -3
- package/fern/openapi/openapi.json +951 -55
- package/package.json +1 -1
- package/planqk/api/_version.py +1 -1
- package/planqk/api/client.py +2 -2
- package/planqk/api/credentials.py +6 -6
- package/planqk/api/sdk/environment.py +1 -1
- package/pyproject.toml +3 -3
- package/requirements.txt +117 -113
- package/scripts/update-version.sh +2 -0
- package/src/index.test.ts +11 -4
- package/src/sdk/Client.ts +14 -0
- package/src/sdk/api/resources/dataPools/client/Client.ts +95 -75
- package/src/sdk/api/resources/dataPools/client/requests/AddDataPoolFileRequest.ts +1 -1
- package/src/sdk/api/resources/dataPools/client/requests/CreateDataPoolRequest.ts +1 -0
- package/src/sdk/api/resources/dataPools/client/requests/UpdateDataPoolRequest.ts +3 -0
- package/src/sdk/api/resources/index.ts +3 -0
- package/src/sdk/api/resources/serviceExecutions/client/Client.ts +323 -0
- package/src/sdk/api/resources/serviceExecutions/client/index.ts +1 -0
- package/src/sdk/api/resources/serviceExecutions/index.ts +1 -0
- package/src/sdk/api/resources/serviceJobs/client/Client.ts +581 -0
- package/src/sdk/api/resources/serviceJobs/client/index.ts +2 -0
- package/src/sdk/api/resources/serviceJobs/client/requests/CreateServiceJobRequest.ts +16 -0
- package/src/sdk/api/resources/serviceJobs/client/requests/index.ts +1 -0
- package/src/sdk/api/resources/serviceJobs/index.ts +1 -0
- package/src/sdk/api/types/ActivityInstance.ts +22 -0
- package/src/sdk/api/types/DataPoolDto.ts +5 -0
- package/src/sdk/api/types/DataPoolFileDto.ts +7 -0
- package/src/sdk/api/types/LogEntry.ts +26 -0
- package/src/sdk/api/types/MetricDataPoint.ts +13 -0
- package/src/sdk/api/types/ServiceExecutionDto.ts +23 -0
- package/src/sdk/api/types/ServiceExecutionLogs.ts +7 -0
- package/src/sdk/api/types/ServiceExecutionMetrics.ts +25 -0
- package/src/sdk/api/types/ServiceJobDto.ts +48 -0
- package/src/sdk/api/types/VariableInstance.ts +10 -0
- package/src/sdk/api/types/WorkflowInstance.ts +26 -0
- package/src/sdk/api/types/WorkflowServiceExecutionDto.ts +10 -0
- package/src/sdk/api/types/index.ts +10 -0
- package/src/sdk/core/exports.ts +1 -0
- package/src/sdk/core/fetcher/Fetcher.ts +3 -3
- package/src/sdk/core/fetcher/index.ts +5 -5
- package/src/sdk/core/file/exports.ts +1 -0
- package/src/sdk/core/file/file.ts +186 -0
- package/src/sdk/core/file/index.ts +2 -0
- package/src/sdk/core/file/types.ts +81 -0
- package/src/sdk/core/form-data-utils/FormDataWrapper.ts +12 -3
- package/src/sdk/core/index.ts +1 -1
- package/src/sdk/core/url/join.ts +28 -3
- package/src/sdk/environments.ts +1 -1
- package/src/sdk/exports.ts +1 -0
- package/src/sdk/index.ts +1 -0
- package/uv.lock +245 -228
- package/dist/sdk/core/file.d.ts +0 -1
- package/planqk/__init__.py +0 -0
- package/requirements-dev.txt +0 -682
- package/src/sdk/core/file.ts +0 -11
- /package/dist/sdk/{core/file.js → api/resources/serviceExecutions/client/index.js} +0 -0
package/package.json
CHANGED
package/planqk/api/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.
|
|
1
|
+
__version__ = "1.7.0"
|
package/planqk/api/client.py
CHANGED
|
@@ -7,12 +7,12 @@ from planqk.api.credentials import DefaultCredentialsProvider
|
|
|
7
7
|
from planqk.api.sdk import PlanqkApi
|
|
8
8
|
from planqk.api.sdk.data_pools.client import DataPoolsClient
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
_BASE_URL = "KQH_BASE_URL"
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class PlanqkApiClient:
|
|
14
14
|
def __init__(self, access_token: Optional[str] = None, organization_id: Optional[str] = None):
|
|
15
|
-
base_url = os.environ.get(
|
|
15
|
+
base_url = os.environ.get(_BASE_URL, "https://api.hub.kipu-quantum.com/qc-catalog")
|
|
16
16
|
credentials_provider = DefaultCredentialsProvider(access_token)
|
|
17
17
|
|
|
18
18
|
self.api = PlanqkApi(base_url=base_url, api_key=credentials_provider.get_access_token(), organization_id=organization_id)
|
|
@@ -4,8 +4,8 @@ import platform
|
|
|
4
4
|
from abc import ABC, abstractmethod
|
|
5
5
|
from json import JSONDecodeError
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
_CONFIG_FILE_PATH = "
|
|
7
|
+
_PERSONAL_ACCESS_TOKEN = "KQH_PERSONAL_ACCESS_TOKEN"
|
|
8
|
+
_CONFIG_FILE_PATH = "KQH_CONFIG_FILE_PATH"
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class CredentialUnavailableError(Exception):
|
|
@@ -15,7 +15,7 @@ class CredentialUnavailableError(Exception):
|
|
|
15
15
|
|
|
16
16
|
def __init__(self, message=None):
|
|
17
17
|
if message is None:
|
|
18
|
-
message =
|
|
18
|
+
message = "Credentials not found. Please set your personal access token as parameter, in the environment, or use 'planqk login' to authenticate."
|
|
19
19
|
super().__init__(message)
|
|
20
20
|
|
|
21
21
|
|
|
@@ -29,10 +29,10 @@ class CredentialProvider(ABC):
|
|
|
29
29
|
class EnvironmentCredential(CredentialProvider):
|
|
30
30
|
|
|
31
31
|
def get_access_token(self) -> str:
|
|
32
|
-
access_token = os.environ.get(
|
|
32
|
+
access_token = os.environ.get(_PERSONAL_ACCESS_TOKEN)
|
|
33
33
|
|
|
34
34
|
if not access_token:
|
|
35
|
-
raise CredentialUnavailableError(f"Environment variable {
|
|
35
|
+
raise CredentialUnavailableError(f"Environment variable {_PERSONAL_ACCESS_TOKEN} is not set")
|
|
36
36
|
|
|
37
37
|
return access_token
|
|
38
38
|
|
|
@@ -80,7 +80,7 @@ class StaticCredential(CredentialProvider):
|
|
|
80
80
|
|
|
81
81
|
def get_access_token(self) -> str:
|
|
82
82
|
if not self.access_token:
|
|
83
|
-
raise CredentialUnavailableError(
|
|
83
|
+
raise CredentialUnavailableError("Access token not set")
|
|
84
84
|
return self.access_token
|
|
85
85
|
|
|
86
86
|
|
package/pyproject.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "planqk-api-sdk"
|
|
3
|
-
version = "1.
|
|
3
|
+
version = "1.7.0"
|
|
4
4
|
description = "SDK to interact with the official PLANQK API."
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "Kipu Quantum GmbH", email = "info@kipu-quantum.com" },
|
|
@@ -34,8 +34,8 @@ dev = [
|
|
|
34
34
|
]
|
|
35
35
|
|
|
36
36
|
[project.urls]
|
|
37
|
-
Homepage = "https://kipu-quantum.com
|
|
38
|
-
Documentation = "https://docs.
|
|
37
|
+
Homepage = "https://hub.kipu-quantum.com"
|
|
38
|
+
Documentation = "https://docs.hub.kipu-quantum.com"
|
|
39
39
|
Repository = "https://gitlab.com/planqk-foss/planqk-api-sdk"
|
|
40
40
|
Issues = "https://gitlab.com/planqk-foss/planqk-api-sdk/-/issues"
|
|
41
41
|
Changelog = "https://gitlab.com/planqk-foss/planqk-api-sdk/-/releases"
|
package/requirements.txt
CHANGED
|
@@ -4,17 +4,17 @@ annotated-types==0.7.0 \
|
|
|
4
4
|
--hash=sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53 \
|
|
5
5
|
--hash=sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89
|
|
6
6
|
# via pydantic
|
|
7
|
-
anyio==4.
|
|
8
|
-
--hash=sha256:
|
|
9
|
-
--hash=sha256:
|
|
7
|
+
anyio==4.10.0 \
|
|
8
|
+
--hash=sha256:3f3fae35c96039744587aa5b8371e7e8e603c0702999535961dd336026973ba6 \
|
|
9
|
+
--hash=sha256:60e474ac86736bbfd6f210f7a61218939c318f43f9972497381f1c5e930ed3d1
|
|
10
10
|
# via httpx
|
|
11
11
|
authlib==1.6.1 \
|
|
12
12
|
--hash=sha256:4dffdbb1460ba6ec8c17981a4c67af7d8af131231b5a36a88a1e8c80c111cdfd \
|
|
13
13
|
--hash=sha256:e9d2031c34c6309373ab845afc24168fe9e93dc52d252631f52642f21f5ed06e
|
|
14
14
|
# via planqk-api-sdk
|
|
15
|
-
certifi==2025.
|
|
16
|
-
--hash=sha256:
|
|
17
|
-
--hash=sha256:
|
|
15
|
+
certifi==2025.8.3 \
|
|
16
|
+
--hash=sha256:e564105f78ded564e3ae7c923924435e1daa7463faeab5bb932bc53ffae63407 \
|
|
17
|
+
--hash=sha256:f6c12493cfb1b06ba2ff328595af9350c65d6644968e5d3a2ffd78699af217a5
|
|
18
18
|
# via
|
|
19
19
|
# httpcore
|
|
20
20
|
# httpx
|
|
@@ -79,44 +79,44 @@ cffi==1.17.1 ; platform_python_implementation != 'PyPy' \
|
|
|
79
79
|
--hash=sha256:f7f5baafcc48261359e14bcd6d9bff6d4b28d9103847c9e136694cb0501aef87 \
|
|
80
80
|
--hash=sha256:fc48c783f9c87e60831201f2cce7f3b2e4846bf4d8728eabe54d60700b318a0b
|
|
81
81
|
# via cryptography
|
|
82
|
-
cryptography==45.0.
|
|
83
|
-
--hash=sha256:
|
|
84
|
-
--hash=sha256:
|
|
85
|
-
--hash=sha256:
|
|
86
|
-
--hash=sha256:
|
|
87
|
-
--hash=sha256:
|
|
88
|
-
--hash=sha256:
|
|
89
|
-
--hash=sha256:
|
|
90
|
-
--hash=sha256:
|
|
91
|
-
--hash=sha256:
|
|
92
|
-
--hash=sha256:
|
|
93
|
-
--hash=sha256:
|
|
94
|
-
--hash=sha256:
|
|
95
|
-
--hash=sha256:
|
|
96
|
-
--hash=sha256:
|
|
97
|
-
--hash=sha256:
|
|
98
|
-
--hash=sha256:
|
|
99
|
-
--hash=sha256:
|
|
100
|
-
--hash=sha256:
|
|
101
|
-
--hash=sha256:
|
|
102
|
-
--hash=sha256:
|
|
103
|
-
--hash=sha256:
|
|
104
|
-
--hash=sha256:
|
|
105
|
-
--hash=sha256:
|
|
106
|
-
--hash=sha256:
|
|
107
|
-
--hash=sha256:
|
|
108
|
-
--hash=sha256:
|
|
109
|
-
--hash=sha256:
|
|
110
|
-
--hash=sha256:
|
|
111
|
-
--hash=sha256:
|
|
112
|
-
--hash=sha256:
|
|
113
|
-
--hash=sha256:
|
|
114
|
-
--hash=sha256:
|
|
115
|
-
--hash=sha256:
|
|
116
|
-
--hash=sha256:
|
|
117
|
-
--hash=sha256:
|
|
118
|
-
--hash=sha256:
|
|
119
|
-
--hash=sha256:
|
|
82
|
+
cryptography==45.0.6 \
|
|
83
|
+
--hash=sha256:00e8724bdad672d75e6f069b27970883179bd472cd24a63f6e620ca7e41cc0c5 \
|
|
84
|
+
--hash=sha256:048e7ad9e08cf4c0ab07ff7f36cc3115924e22e2266e034450a890d9e312dd74 \
|
|
85
|
+
--hash=sha256:0d9ef57b6768d9fa58e92f4947cea96ade1233c0e236db22ba44748ffedca394 \
|
|
86
|
+
--hash=sha256:18f878a34b90d688982e43f4b700408b478102dd58b3e39de21b5ebf6509c301 \
|
|
87
|
+
--hash=sha256:1b7fa6a1c1188c7ee32e47590d16a5a0646270921f8020efc9a511648e1b2e08 \
|
|
88
|
+
--hash=sha256:20ae4906a13716139d6d762ceb3e0e7e110f7955f3bc3876e3a07f5daadec5f3 \
|
|
89
|
+
--hash=sha256:20d15aed3ee522faac1a39fbfdfee25d17b1284bafd808e1640a74846d7c4d1b \
|
|
90
|
+
--hash=sha256:2384f2ab18d9be88a6e4f8972923405e2dbb8d3e16c6b43f15ca491d7831bd18 \
|
|
91
|
+
--hash=sha256:275ba5cc0d9e320cd70f8e7b96d9e59903c815ca579ab96c1e37278d231fc402 \
|
|
92
|
+
--hash=sha256:2dac5ec199038b8e131365e2324c03d20e97fe214af051d20c49db129844e8b3 \
|
|
93
|
+
--hash=sha256:31a2b9a10530a1cb04ffd6aa1cd4d3be9ed49f7d77a4dafe198f3b382f41545c \
|
|
94
|
+
--hash=sha256:3436128a60a5e5490603ab2adbabc8763613f638513ffa7d311c900a8349a2a0 \
|
|
95
|
+
--hash=sha256:3b5bf5267e98661b9b888a9250d05b063220dfa917a8203744454573c7eb79db \
|
|
96
|
+
--hash=sha256:3de77e4df42ac8d4e4d6cdb342d989803ad37707cf8f3fbf7b088c9cbdd46427 \
|
|
97
|
+
--hash=sha256:44647c5d796f5fc042bbc6d61307d04bf29bccb74d188f18051b635f20a9c75f \
|
|
98
|
+
--hash=sha256:550ae02148206beb722cfe4ef0933f9352bab26b087af00e48fdfb9ade35c5b3 \
|
|
99
|
+
--hash=sha256:599c8d7df950aa68baa7e98f7b73f4f414c9f02d0e8104a30c0182a07732638b \
|
|
100
|
+
--hash=sha256:5b64e668fc3528e77efa51ca70fadcd6610e8ab231e3e06ae2bab3b31c2b8ed9 \
|
|
101
|
+
--hash=sha256:5bd6020c80c5b2b2242d6c48487d7b85700f5e0038e67b29d706f98440d66eb5 \
|
|
102
|
+
--hash=sha256:5c966c732cf6e4a276ce83b6e4c729edda2df6929083a952cc7da973c539c719 \
|
|
103
|
+
--hash=sha256:629127cfdcdc6806dfe234734d7cb8ac54edaf572148274fa377a7d3405b0043 \
|
|
104
|
+
--hash=sha256:705bb7c7ecc3d79a50f236adda12ca331c8e7ecfbea51edd931ce5a7a7c4f012 \
|
|
105
|
+
--hash=sha256:780c40fb751c7d2b0c6786ceee6b6f871e86e8718a8ff4bc35073ac353c7cd02 \
|
|
106
|
+
--hash=sha256:7a3085d1b319d35296176af31c90338eeb2ddac8104661df79f80e1d9787b8b2 \
|
|
107
|
+
--hash=sha256:826b46dae41a1155a0c0e66fafba43d0ede1dc16570b95e40c4d83bfcf0a451d \
|
|
108
|
+
--hash=sha256:833dc32dfc1e39b7376a87b9a6a4288a10aae234631268486558920029b086ec \
|
|
109
|
+
--hash=sha256:cc4d66f5dc4dc37b89cfef1bd5044387f7a1f6f0abb490815628501909332d5d \
|
|
110
|
+
--hash=sha256:d063341378d7ee9c91f9d23b431a3502fc8bfacd54ef0a27baa72a0843b29159 \
|
|
111
|
+
--hash=sha256:e2a21a8eda2d86bb604934b6b37691585bd095c1f788530c1fcefc53a82b3453 \
|
|
112
|
+
--hash=sha256:e40b80ecf35ec265c452eea0ba94c9587ca763e739b8e559c128d23bff7ebbbf \
|
|
113
|
+
--hash=sha256:e5b3dda1b00fb41da3af4c5ef3f922a200e33ee5ba0f0bc9ecf0b0c173958385 \
|
|
114
|
+
--hash=sha256:ea3c42f2016a5bbf71825537c2ad753f2870191134933196bee408aac397b3d9 \
|
|
115
|
+
--hash=sha256:eccddbd986e43014263eda489abbddfbc287af5cddfd690477993dbb31e31016 \
|
|
116
|
+
--hash=sha256:ee411a1b977f40bd075392c80c10b58025ee5c6b47a822a33c1198598a7a5f05 \
|
|
117
|
+
--hash=sha256:f4028f29a9f38a2025abedb2e409973709c660d44319c61762202206ed577c42 \
|
|
118
|
+
--hash=sha256:f68f833a9d445cc49f01097d95c83a850795921b3f7cc6488731e69bde3288da \
|
|
119
|
+
--hash=sha256:fc022c1fa5acff6def2fc6d7819bbbd31ccddfe67d075331a65d9cfb28a20983
|
|
120
120
|
# via authlib
|
|
121
121
|
deprecated==1.2.18 \
|
|
122
122
|
--hash=sha256:422b6f6d859da6f2ef57857761bfb392480502a64c3028ca9bbe86085d72115d \
|
|
@@ -243,73 +243,77 @@ typing-extensions==4.14.1 \
|
|
|
243
243
|
# exceptiongroup
|
|
244
244
|
# pydantic
|
|
245
245
|
# pydantic-core
|
|
246
|
-
wrapt==1.17.
|
|
247
|
-
--hash=sha256:
|
|
248
|
-
--hash=sha256:
|
|
249
|
-
--hash=sha256:
|
|
250
|
-
--hash=sha256:
|
|
251
|
-
--hash=sha256:
|
|
252
|
-
--hash=sha256:
|
|
253
|
-
--hash=sha256:
|
|
254
|
-
--hash=sha256:
|
|
255
|
-
--hash=sha256:
|
|
256
|
-
--hash=sha256:
|
|
257
|
-
--hash=sha256:
|
|
258
|
-
--hash=sha256:
|
|
259
|
-
--hash=sha256:
|
|
260
|
-
--hash=sha256:
|
|
261
|
-
--hash=sha256:
|
|
262
|
-
--hash=sha256:
|
|
263
|
-
--hash=sha256:
|
|
264
|
-
--hash=sha256:
|
|
265
|
-
--hash=sha256:
|
|
266
|
-
--hash=sha256:
|
|
267
|
-
--hash=sha256:
|
|
268
|
-
--hash=sha256:
|
|
269
|
-
--hash=sha256:
|
|
270
|
-
--hash=sha256:
|
|
271
|
-
--hash=sha256:
|
|
272
|
-
--hash=sha256:
|
|
273
|
-
--hash=sha256:
|
|
274
|
-
--hash=sha256:
|
|
275
|
-
--hash=sha256:
|
|
276
|
-
--hash=sha256:
|
|
277
|
-
--hash=sha256:
|
|
278
|
-
--hash=sha256:
|
|
279
|
-
--hash=sha256:
|
|
280
|
-
--hash=sha256:
|
|
281
|
-
--hash=sha256:
|
|
282
|
-
--hash=sha256:
|
|
283
|
-
--hash=sha256:
|
|
284
|
-
--hash=sha256:
|
|
285
|
-
--hash=sha256:
|
|
286
|
-
--hash=sha256:
|
|
287
|
-
--hash=sha256:
|
|
288
|
-
--hash=sha256:
|
|
289
|
-
--hash=sha256:
|
|
290
|
-
--hash=sha256:
|
|
291
|
-
--hash=sha256:
|
|
292
|
-
--hash=sha256:
|
|
293
|
-
--hash=sha256:
|
|
294
|
-
--hash=sha256:
|
|
295
|
-
--hash=sha256:
|
|
296
|
-
--hash=sha256:
|
|
297
|
-
--hash=sha256:
|
|
298
|
-
--hash=sha256:
|
|
299
|
-
--hash=sha256:
|
|
300
|
-
--hash=sha256:
|
|
301
|
-
--hash=sha256:
|
|
302
|
-
--hash=sha256:
|
|
303
|
-
--hash=sha256:
|
|
304
|
-
--hash=sha256:
|
|
305
|
-
--hash=sha256:
|
|
306
|
-
--hash=sha256:
|
|
307
|
-
--hash=sha256:
|
|
308
|
-
--hash=sha256:
|
|
309
|
-
--hash=sha256:
|
|
310
|
-
--hash=sha256:
|
|
311
|
-
--hash=sha256:
|
|
312
|
-
--hash=sha256:
|
|
313
|
-
--hash=sha256:
|
|
314
|
-
--hash=sha256:
|
|
246
|
+
wrapt==1.17.3 \
|
|
247
|
+
--hash=sha256:042ec3bb8f319c147b1301f2393bc19dba6e176b7da446853406d041c36c7828 \
|
|
248
|
+
--hash=sha256:0610b46293c59a3adbae3dee552b648b984176f8562ee0dba099a56cfbe4df1f \
|
|
249
|
+
--hash=sha256:0b02e424deef65c9f7326d8c19220a2c9040c51dc165cddb732f16198c168396 \
|
|
250
|
+
--hash=sha256:0b1831115c97f0663cb77aa27d381237e73ad4f721391a9bfb2fe8bc25fa6e77 \
|
|
251
|
+
--hash=sha256:0ed61b7c2d49cee3c027372df5809a59d60cf1b6c2f81ee980a091f3afed6a2d \
|
|
252
|
+
--hash=sha256:0f5f51a6466667a5a356e6381d362d259125b57f059103dd9fdc8c0cf1d14139 \
|
|
253
|
+
--hash=sha256:16ecf15d6af39246fe33e507105d67e4b81d8f8d2c6598ff7e3ca1b8a37213f7 \
|
|
254
|
+
--hash=sha256:1f0b2f40cf341ee8cc1a97d51ff50dddb9fcc73241b9143ec74b30fc4f44f6cb \
|
|
255
|
+
--hash=sha256:1f23fa283f51c890eda8e34e4937079114c74b4c81d2b2f1f1d94948f5cc3d7f \
|
|
256
|
+
--hash=sha256:223db574bb38637e8230eb14b185565023ab624474df94d2af18f1cdb625216f \
|
|
257
|
+
--hash=sha256:249f88ed15503f6492a71f01442abddd73856a0032ae860de6d75ca62eed8067 \
|
|
258
|
+
--hash=sha256:24c2ed34dc222ed754247a2702b1e1e89fdbaa4016f324b4b8f1a802d4ffe87f \
|
|
259
|
+
--hash=sha256:273a736c4645e63ac582c60a56b0acb529ef07f78e08dc6bfadf6a46b19c0da7 \
|
|
260
|
+
--hash=sha256:281262213373b6d5e4bb4353bc36d1ba4084e6d6b5d242863721ef2bf2c2930b \
|
|
261
|
+
--hash=sha256:30ce38e66630599e1193798285706903110d4f057aab3168a34b7fdc85569afc \
|
|
262
|
+
--hash=sha256:33486899acd2d7d3066156b03465b949da3fd41a5da6e394ec49d271baefcf05 \
|
|
263
|
+
--hash=sha256:343e44b2a8e60e06a7e0d29c1671a0d9951f59174f3709962b5143f60a2a98bd \
|
|
264
|
+
--hash=sha256:373342dd05b1d07d752cecbec0c41817231f29f3a89aa8b8843f7b95992ed0c7 \
|
|
265
|
+
--hash=sha256:3af60380ba0b7b5aeb329bc4e402acd25bd877e98b3727b0135cb5c2efdaefe9 \
|
|
266
|
+
--hash=sha256:3e62d15d3cfa26e3d0788094de7b64efa75f3a53875cdbccdf78547aed547a81 \
|
|
267
|
+
--hash=sha256:41b1d2bc74c2cac6f9074df52b2efbef2b30bdfe5f40cb78f8ca22963bc62977 \
|
|
268
|
+
--hash=sha256:423ed5420ad5f5529db9ce89eac09c8a2f97da18eb1c870237e84c5a5c2d60aa \
|
|
269
|
+
--hash=sha256:46acc57b331e0b3bcb3e1ca3b421d65637915cfcd65eb783cb2f78a511193f9b \
|
|
270
|
+
--hash=sha256:4da9f45279fff3543c371d5ababc57a0384f70be244de7759c85a7f989cb4ebe \
|
|
271
|
+
--hash=sha256:507553480670cab08a800b9463bdb881b2edeed77dc677b0a5915e6106e91a58 \
|
|
272
|
+
--hash=sha256:53e5e39ff71b3fc484df8a522c933ea2b7cdd0d5d15ae82e5b23fde87d44cbd8 \
|
|
273
|
+
--hash=sha256:54a30837587c6ee3cd1a4d1c2ec5d24e77984d44e2f34547e2323ddb4e22eb77 \
|
|
274
|
+
--hash=sha256:5531d911795e3f935a9c23eb1c8c03c211661a5060aab167065896bbf62a5f85 \
|
|
275
|
+
--hash=sha256:59923aa12d0157f6b82d686c3fd8e1166fa8cdfb3e17b42ce3b6147ff81528df \
|
|
276
|
+
--hash=sha256:5a03a38adec8066d5a37bea22f2ba6bbf39fcdefbe2d91419ab864c3fb515454 \
|
|
277
|
+
--hash=sha256:5a7b3c1ee8265eb4c8f1b7d29943f195c00673f5ab60c192eba2d4a7eae5f46a \
|
|
278
|
+
--hash=sha256:5d4478d72eb61c36e5b446e375bbc49ed002430d17cdec3cecb36993398e1a9e \
|
|
279
|
+
--hash=sha256:5ea5eb3c0c071862997d6f3e02af1d055f381b1d25b286b9d6644b79db77657c \
|
|
280
|
+
--hash=sha256:604d076c55e2fdd4c1c03d06dc1a31b95130010517b5019db15365ec4a405fc6 \
|
|
281
|
+
--hash=sha256:65d1d00fbfb3ea5f20add88bbc0f815150dbbde3b026e6c24759466c8b5a9ef9 \
|
|
282
|
+
--hash=sha256:6b538e31eca1a7ea4605e44f81a48aa24c4632a277431a6ed3f328835901f4fd \
|
|
283
|
+
--hash=sha256:6fd1ad24dc235e4ab88cda009e19bf347aabb975e44fd5c2fb22a3f6e4141277 \
|
|
284
|
+
--hash=sha256:7171ae35d2c33d326ac19dd8facb1e82e5fd04ef8c6c0e394d7af55a55051c22 \
|
|
285
|
+
--hash=sha256:73d496de46cd2cdbdbcce4ae4bcdb4afb6a11234a1df9c085249d55166b95116 \
|
|
286
|
+
--hash=sha256:7425ac3c54430f5fc5e7b6f41d41e704db073309acfc09305816bc6a0b26bb16 \
|
|
287
|
+
--hash=sha256:74afa28374a3c3a11b3b5e5fca0ae03bef8450d6aa3ab3a1e2c30e3a75d023dc \
|
|
288
|
+
--hash=sha256:79573c24a46ce11aab457b472efd8d125e5a51da2d1d24387666cd85f54c05b2 \
|
|
289
|
+
--hash=sha256:7e18f01b0c3e4a07fe6dfdb00e29049ba17eadbc5e7609a2a3a4af83ab7d710a \
|
|
290
|
+
--hash=sha256:88547535b787a6c9ce4086917b6e1d291aa8ed914fdd3a838b3539dc95c12804 \
|
|
291
|
+
--hash=sha256:88bbae4d40d5a46142e70d58bf664a89b6b4befaea7b2ecc14e03cedb8e06c04 \
|
|
292
|
+
--hash=sha256:8cccf4f81371f257440c88faed6b74f1053eef90807b77e31ca057b2db74edb1 \
|
|
293
|
+
--hash=sha256:9baa544e6acc91130e926e8c802a17f3b16fbea0fd441b5a60f5cf2cc5c3deba \
|
|
294
|
+
--hash=sha256:a36692b8491d30a8c75f1dfee65bef119d6f39ea84ee04d9f9311f83c5ad9390 \
|
|
295
|
+
--hash=sha256:a47681378a0439215912ef542c45a783484d4dd82bac412b71e59cf9c0e1cea0 \
|
|
296
|
+
--hash=sha256:a7c06742645f914f26c7f1fa47b8bc4c91d222f76ee20116c43d5ef0912bba2d \
|
|
297
|
+
--hash=sha256:ab232e7fdb44cdfbf55fc3afa31bcdb0d8980b9b95c38b6405df2acb672af0e0 \
|
|
298
|
+
--hash=sha256:af338aa93554be859173c39c85243970dc6a289fa907402289eeae7543e1ae18 \
|
|
299
|
+
--hash=sha256:afd964fd43b10c12213574db492cb8f73b2f0826c8df07a68288f8f19af2ebe6 \
|
|
300
|
+
--hash=sha256:b32888aad8b6e68f83a8fdccbf3165f5469702a7544472bdf41f582970ed3311 \
|
|
301
|
+
--hash=sha256:c31eebe420a9a5d2887b13000b043ff6ca27c452a9a22fa71f35f118e8d4bf89 \
|
|
302
|
+
--hash=sha256:cf30f6e3c077c8e6a9a7809c94551203c8843e74ba0c960f4a98cd80d4665d39 \
|
|
303
|
+
--hash=sha256:d40770d7c0fd5cbed9d84b2c3f2e156431a12c9a37dc6284060fb4bec0b7ffd4 \
|
|
304
|
+
--hash=sha256:d8a210b158a34164de8bb68b0e7780041a903d7b00c87e906fb69928bf7890d5 \
|
|
305
|
+
--hash=sha256:dc4a8d2b25efb6681ecacad42fca8859f88092d8732b170de6a5dddd80a1c8fa \
|
|
306
|
+
--hash=sha256:e01375f275f010fcbf7f643b4279896d04e571889b8a5b3f848423d91bf07050 \
|
|
307
|
+
--hash=sha256:e1a4120ae5705f673727d3253de3ed0e016f7cd78dc463db1b31e2463e1f3cf6 \
|
|
308
|
+
--hash=sha256:e228514a06843cae89621384cfe3a80418f3c04aadf8a3b14e46a7be704e4235 \
|
|
309
|
+
--hash=sha256:e405adefb53a435f01efa7ccdec012c016b5a1d3f35459990afc39b6be4d5056 \
|
|
310
|
+
--hash=sha256:e6b13af258d6a9ad602d57d889f83b9d5543acd471eee12eb51f5b01f8eb1bc2 \
|
|
311
|
+
--hash=sha256:e6f40a8aa5a92f150bdb3e1c44b7e98fb7113955b2e5394122fa5532fec4b418 \
|
|
312
|
+
--hash=sha256:e71d5c6ebac14875668a1e90baf2ea0ef5b7ac7918355850c0908ae82bcb297c \
|
|
313
|
+
--hash=sha256:ed7c635ae45cfbc1a7371f708727bf74690daedc49b4dba310590ca0bd28aa8a \
|
|
314
|
+
--hash=sha256:f38e60678850c42461d4202739f9bf1e3a737c7ad283638251e79cc49effb6b6 \
|
|
315
|
+
--hash=sha256:f66eb08feaa410fe4eebd17f2a2c8e2e46d3476e9f8c783daa8e09e0faa666d0 \
|
|
316
|
+
--hash=sha256:f9b2601381be482f70e5d1051a5965c25fb3625455a2bf520b5a077b22afb775 \
|
|
317
|
+
--hash=sha256:fbd3c8319de8e1dc79d346929cd71d523622da527cca14e0c1d257e31c2b8b10 \
|
|
318
|
+
--hash=sha256:fd341868a4b6714a5962c1af0bd44f7c404ef78720c7de4892901e540417111c
|
|
315
319
|
# via deprecated
|
package/src/index.test.ts
CHANGED
|
@@ -3,11 +3,11 @@ import {test} from 'vitest'
|
|
|
3
3
|
import 'dotenv/config'
|
|
4
4
|
import {PlanqkApiClient} from "./sdk";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const organizationId = process.env.PLANQK_ORGANIZATION_ID
|
|
6
|
+
const baseUrl = process.env.KQH_BASE_URL!
|
|
7
|
+
const apiKey = process.env.KQH_PERSONAL_ACCESS_TOKEN!
|
|
8
|
+
const organizationId = process.env.KQH_ORGANIZATION_ID
|
|
10
9
|
|
|
10
|
+
test.skip('integration test: data pools', {timeout: 5 * 60 * 1000}, async () => {
|
|
11
11
|
const client = new PlanqkApiClient({baseUrl, apiKey, organizationId})
|
|
12
12
|
|
|
13
13
|
const dataPools = await client.dataPools.getDataPools()
|
|
@@ -16,3 +16,10 @@ test.skip('integration test: data pools', {timeout: 5 * 60 * 1000}, async () =>
|
|
|
16
16
|
const files = await client.dataPools.getDataPoolFiles(dataPools[0].id!)
|
|
17
17
|
console.log(files)
|
|
18
18
|
})
|
|
19
|
+
|
|
20
|
+
test.skip('integration test: service jobs', {timeout: 5 * 60 * 1000}, async () => {
|
|
21
|
+
const client = new PlanqkApiClient({baseUrl, apiKey, organizationId})
|
|
22
|
+
|
|
23
|
+
const serviceJobs = await client.serviceJobs.getServiceJobs()
|
|
24
|
+
console.log(serviceJobs)
|
|
25
|
+
})
|
package/src/sdk/Client.ts
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
import * as environments from "./environments.js";
|
|
6
6
|
import * as core from "./core/index.js";
|
|
7
7
|
import { mergeHeaders } from "./core/headers.js";
|
|
8
|
+
import { ServiceJobs } from "./api/resources/serviceJobs/client/Client.js";
|
|
8
9
|
import { DataPools } from "./api/resources/dataPools/client/Client.js";
|
|
10
|
+
import { ServiceExecutions } from "./api/resources/serviceExecutions/client/Client.js";
|
|
9
11
|
|
|
10
12
|
export declare namespace PlanqkApiClient {
|
|
11
13
|
export interface Options {
|
|
@@ -28,6 +30,8 @@ export declare namespace PlanqkApiClient {
|
|
|
28
30
|
abortSignal?: AbortSignal;
|
|
29
31
|
/** Override the X-OrganizationId header */
|
|
30
32
|
organizationId?: string | undefined;
|
|
33
|
+
/** Additional query string parameters to include in the request. */
|
|
34
|
+
queryParams?: Record<string, unknown>;
|
|
31
35
|
/** Additional headers to include in the request. */
|
|
32
36
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
33
37
|
}
|
|
@@ -35,7 +39,9 @@ export declare namespace PlanqkApiClient {
|
|
|
35
39
|
|
|
36
40
|
export class PlanqkApiClient {
|
|
37
41
|
protected readonly _options: PlanqkApiClient.Options;
|
|
42
|
+
protected _serviceJobs: ServiceJobs | undefined;
|
|
38
43
|
protected _dataPools: DataPools | undefined;
|
|
44
|
+
protected _serviceExecutions: ServiceExecutions | undefined;
|
|
39
45
|
|
|
40
46
|
constructor(_options: PlanqkApiClient.Options) {
|
|
41
47
|
this._options = {
|
|
@@ -52,7 +58,15 @@ export class PlanqkApiClient {
|
|
|
52
58
|
};
|
|
53
59
|
}
|
|
54
60
|
|
|
61
|
+
public get serviceJobs(): ServiceJobs {
|
|
62
|
+
return (this._serviceJobs ??= new ServiceJobs(this._options));
|
|
63
|
+
}
|
|
64
|
+
|
|
55
65
|
public get dataPools(): DataPools {
|
|
56
66
|
return (this._dataPools ??= new DataPools(this._options));
|
|
57
67
|
}
|
|
68
|
+
|
|
69
|
+
public get serviceExecutions(): ServiceExecutions {
|
|
70
|
+
return (this._serviceExecutions ??= new ServiceExecutions(this._options));
|
|
71
|
+
}
|
|
58
72
|
}
|