@cosmotech/api-ts 5.0.0-beta5 → 5.0.0-rc1
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/.github/workflows/publish.yaml +10 -8
- package/.github/workflows/track_dependencies.yml +3 -0
- package/.openapi-generator/FILES +1 -7
- package/README.md +4 -12
- package/api.ts +160 -482
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +159 -381
- package/dist/api.js +64 -271
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/Dataset.md +4 -2
- package/docs/DatasetApi.md +34 -15
- package/docs/DatasetCreateInfo.md +24 -0
- package/docs/DatasetCreateRequest.md +2 -2
- package/docs/DatasetEditInfo.md +22 -0
- package/docs/DatasetPart.md +4 -2
- package/docs/DatasetPartCreateRequest.md +2 -0
- package/docs/DatasetPartUpdateRequest.md +2 -0
- package/docs/DatasetUpdateRequest.md +2 -0
- package/docs/RunApi.md +0 -129
- package/docs/RunData.md +1 -1
- package/docs/RunTemplateParameter.md +2 -4
- package/docs/RunTemplateParameterCreateRequest.md +2 -4
- package/docs/RunTemplateParameterGroup.md +2 -6
- package/docs/RunTemplateParameterGroupCreateRequest.md +2 -6
- package/docs/RunTemplateParameterGroupUpdateRequest.md +2 -6
- package/docs/RunTemplateParameterUpdateRequest.md +2 -4
- package/docs/Runner.md +3 -3
- package/docs/RunnerCreateRequest.md +2 -2
- package/docs/RunnerUpdateRequest.md +2 -2
- package/docs/SendRunDataRequest.md +2 -3
- package/docs/Workspace.md +2 -2
- package/docs/WorkspaceCreateRequest.md +2 -2
- package/docs/WorkspaceSolution.md +0 -4
- package/docs/WorkspaceUpdateRequest.md +2 -2
- package/git_push.sh +2 -2
- package/index.ts +1 -1
- package/package.json +2 -2
package/docs/DatasetApi.md
CHANGED
|
@@ -17,7 +17,7 @@ All URIs are relative to *http://localhost:8080*
|
|
|
17
17
|
|[**listDatasetParts**](#listdatasetparts) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts | Retrieve all dataset parts of a Dataset|
|
|
18
18
|
|[**listDatasetSecurityUsers**](#listdatasetsecurityusers) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/security/users | Get the Dataset security users list|
|
|
19
19
|
|[**listDatasets**](#listdatasets) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/datasets | Retrieve a list of defined Dataset|
|
|
20
|
-
|[**queryData**](#querydata) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts/{dataset_part_id}/query |
|
|
20
|
+
|[**queryData**](#querydata) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts/{dataset_part_id}/query | Query data of a Dataset part. This endpoint is only available for dataset parts that support queries (type == DB). |
|
|
21
21
|
|[**replaceDatasetPart**](#replacedatasetpart) | **PUT** /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts/{dataset_part_id} | Replace existing dataset parts of a Dataset|
|
|
22
22
|
|[**searchDatasetParts**](#searchdatasetparts) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts/search | Search Dataset parts by tags|
|
|
23
23
|
|[**searchDatasets**](#searchdatasets) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/datasets/search | Search Datasets by tags|
|
|
@@ -699,7 +699,6 @@ const { status, data } = await apiInstance.listDatasetParts(
|
|
|
699
699
|
|**200** | List of dataset parts | - |
|
|
700
700
|
|**403** | Insufficient permissions on organization, workspace or dataset | - |
|
|
701
701
|
|**404** | Dataset specified is not found | - |
|
|
702
|
-
|**422** | Targeted dataset do not support requests | - |
|
|
703
702
|
|
|
704
703
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
705
704
|
|
|
@@ -823,7 +822,7 @@ const { status, data } = await apiInstance.listDatasets(
|
|
|
823
822
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
824
823
|
|
|
825
824
|
# **queryData**
|
|
826
|
-
>
|
|
825
|
+
> File queryData()
|
|
827
826
|
|
|
828
827
|
|
|
829
828
|
### Example
|
|
@@ -841,22 +840,32 @@ let organizationId: string; //the Organization identifier (default to undefined)
|
|
|
841
840
|
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
842
841
|
let datasetId: string; //the Dataset identifier (default to undefined)
|
|
843
842
|
let datasetPartId: string; //the Dataset part identifier (default to undefined)
|
|
844
|
-
let
|
|
845
|
-
let sums: Array<string>; //
|
|
846
|
-
let
|
|
843
|
+
let selects: Array<string>; //Column names that should be part of the response data. You can specify a column name like: - id - stock - quantity - ... If you want to select only distinct columns, add a * at the end of the column name (e.g. stock*). (optional) (default to undefined)
|
|
844
|
+
let sums: Array<string>; //Column names to sum by. If you want to sum only distinct columns, add a * at the end of the column name (e.g. stock*). (optional) (default to undefined)
|
|
845
|
+
let avgs: Array<string>; //Column names to average by. If you want to apply \'average\' only on distinct columns, add a * at the end of the column name (e.g. stock*). (optional) (default to undefined)
|
|
846
|
+
let counts: Array<string>; //Column names to count by. If you want to count only distinct columns, add a * at the end of the column name (e.g. stock*). (optional) (default to undefined)
|
|
847
|
+
let mins: Array<string>; //Column names to min by. If you want to apply \'min\' only on distinct columns, add a * at the end of the column name (e.g. stock*). (optional) (default to undefined)
|
|
848
|
+
let maxs: Array<string>; //Column names to max by. If you want to apply \'max\' only on distinct columns, add a * at the end of the column name (e.g. stock*). (optional) (default to undefined)
|
|
847
849
|
let offset: number; //The query offset (optional) (default to undefined)
|
|
848
850
|
let limit: number; //The query limit (optional) (default to undefined)
|
|
851
|
+
let groupBys: Array<string>; //Column names to group by (optional) (default to undefined)
|
|
852
|
+
let orderBys: Array<string>; //Column names to order by. Default order is ascending. If you want to specify \'descending\' order, add a \'!\' at the beginning of the column name (e.g. !stock). (optional) (default to undefined)
|
|
849
853
|
|
|
850
854
|
const { status, data } = await apiInstance.queryData(
|
|
851
855
|
organizationId,
|
|
852
856
|
workspaceId,
|
|
853
857
|
datasetId,
|
|
854
858
|
datasetPartId,
|
|
855
|
-
|
|
859
|
+
selects,
|
|
856
860
|
sums,
|
|
861
|
+
avgs,
|
|
857
862
|
counts,
|
|
863
|
+
mins,
|
|
864
|
+
maxs,
|
|
858
865
|
offset,
|
|
859
|
-
limit
|
|
866
|
+
limit,
|
|
867
|
+
groupBys,
|
|
868
|
+
orderBys
|
|
860
869
|
);
|
|
861
870
|
```
|
|
862
871
|
|
|
@@ -868,16 +877,21 @@ const { status, data } = await apiInstance.queryData(
|
|
|
868
877
|
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
869
878
|
| **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
|
|
870
879
|
| **datasetPartId** | [**string**] | the Dataset part identifier | defaults to undefined|
|
|
871
|
-
| **
|
|
872
|
-
| **sums** | **Array<string>** |
|
|
873
|
-
| **
|
|
880
|
+
| **selects** | **Array<string>** | Column names that should be part of the response data. You can specify a column name like: - id - stock - quantity - ... If you want to select only distinct columns, add a * at the end of the column name (e.g. stock*). | (optional) defaults to undefined|
|
|
881
|
+
| **sums** | **Array<string>** | Column names to sum by. If you want to sum only distinct columns, add a * at the end of the column name (e.g. stock*). | (optional) defaults to undefined|
|
|
882
|
+
| **avgs** | **Array<string>** | Column names to average by. If you want to apply \'average\' only on distinct columns, add a * at the end of the column name (e.g. stock*). | (optional) defaults to undefined|
|
|
883
|
+
| **counts** | **Array<string>** | Column names to count by. If you want to count only distinct columns, add a * at the end of the column name (e.g. stock*). | (optional) defaults to undefined|
|
|
884
|
+
| **mins** | **Array<string>** | Column names to min by. If you want to apply \'min\' only on distinct columns, add a * at the end of the column name (e.g. stock*). | (optional) defaults to undefined|
|
|
885
|
+
| **maxs** | **Array<string>** | Column names to max by. If you want to apply \'max\' only on distinct columns, add a * at the end of the column name (e.g. stock*). | (optional) defaults to undefined|
|
|
874
886
|
| **offset** | [**number**] | The query offset | (optional) defaults to undefined|
|
|
875
887
|
| **limit** | [**number**] | The query limit | (optional) defaults to undefined|
|
|
888
|
+
| **groupBys** | **Array<string>** | Column names to group by | (optional) defaults to undefined|
|
|
889
|
+
| **orderBys** | **Array<string>** | Column names to order by. Default order is ascending. If you want to specify \'descending\' order, add a \'!\' at the beginning of the column name (e.g. !stock). | (optional) defaults to undefined|
|
|
876
890
|
|
|
877
891
|
|
|
878
892
|
### Return type
|
|
879
893
|
|
|
880
|
-
**
|
|
894
|
+
**File**
|
|
881
895
|
|
|
882
896
|
### Authorization
|
|
883
897
|
|
|
@@ -886,7 +900,7 @@ const { status, data } = await apiInstance.queryData(
|
|
|
886
900
|
### HTTP request headers
|
|
887
901
|
|
|
888
902
|
- **Content-Type**: Not defined
|
|
889
|
-
- **Accept**: application/
|
|
903
|
+
- **Accept**: application/octet-stream
|
|
890
904
|
|
|
891
905
|
|
|
892
906
|
### HTTP response details
|
|
@@ -963,9 +977,9 @@ const { status, data } = await apiInstance.replaceDatasetPart(
|
|
|
963
977
|
| Status code | Description | Response headers |
|
|
964
978
|
|-------------|-------------|------------------|
|
|
965
979
|
|**200** | Dataset part successfully replaced | - |
|
|
980
|
+
|**400** | Bad request | - |
|
|
966
981
|
|**403** | Insufficient permissions on organization, workspace or dataset | - |
|
|
967
982
|
|**404** | Dataset part specified is not found | - |
|
|
968
|
-
|**422** | Targeted dataset do not support requests | - |
|
|
969
983
|
|
|
970
984
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
971
985
|
|
|
@@ -1031,6 +1045,9 @@ const { status, data } = await apiInstance.searchDatasetParts(
|
|
|
1031
1045
|
| Status code | Description | Response headers |
|
|
1032
1046
|
|-------------|-------------|------------------|
|
|
1033
1047
|
|**200** | Dataset part list containing tags | - |
|
|
1048
|
+
|**400** | Bad request | - |
|
|
1049
|
+
|**403** | Insufficient permissions on organization, workspace or dataset | - |
|
|
1050
|
+
|**404** | Dataset specified is not found or you don\'t have access to it | - |
|
|
1034
1051
|
|
|
1035
1052
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1036
1053
|
|
|
@@ -1093,6 +1110,8 @@ const { status, data } = await apiInstance.searchDatasets(
|
|
|
1093
1110
|
| Status code | Description | Response headers |
|
|
1094
1111
|
|-------------|-------------|------------------|
|
|
1095
1112
|
|**200** | Dataset list containing tags | - |
|
|
1113
|
+
|**403** | Insufficient permissions on organization, workspace or dataset | - |
|
|
1114
|
+
|**404** | Organization, workspace or dataset specified is not found | - |
|
|
1096
1115
|
|
|
1097
1116
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1098
1117
|
|
|
@@ -1348,9 +1367,9 @@ const { status, data } = await apiInstance.updateDatasetPart(
|
|
|
1348
1367
|
| Status code | Description | Response headers |
|
|
1349
1368
|
|-------------|-------------|------------------|
|
|
1350
1369
|
|**200** | Dataset part information successfully updated | - |
|
|
1370
|
+
|**400** | Bad request | - |
|
|
1351
1371
|
|**403** | Insufficient permissions on organization, workspace or dataset | - |
|
|
1352
1372
|
|**404** | Dataset part specified is not found | - |
|
|
1353
|
-
|**422** | Targeted dataset do not support requests | - |
|
|
1354
1373
|
|
|
1355
1374
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1356
1375
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# DatasetCreateInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**timestamp** | **number** | The timestamp of the creation in millisecond | [default to undefined]
|
|
9
|
+
**userId** | **string** | The id of the user who did the creation | [default to undefined]
|
|
10
|
+
**runnerId** | **string** | The runner id which has created the dataset (nullable) | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { DatasetCreateInfo } from '@cosmotech/api-ts';
|
|
16
|
+
|
|
17
|
+
const instance: DatasetCreateInfo = {
|
|
18
|
+
timestamp,
|
|
19
|
+
userId,
|
|
20
|
+
runnerId,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -9,9 +9,9 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**name** | **string** | | [default to undefined]
|
|
10
10
|
**description** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**tags** | **Array<string>** | | [optional] [default to undefined]
|
|
12
|
+
**additionalData** | **{ [key: string]: any; }** | Free form additional data | [optional] [default to undefined]
|
|
12
13
|
**parts** | [**Array<DatasetPartCreateRequest>**](DatasetPartCreateRequest.md) | | [optional] [default to undefined]
|
|
13
14
|
**security** | [**DatasetSecurity**](DatasetSecurity.md) | | [optional] [default to undefined]
|
|
14
|
-
**runnerId** | **string** | | [optional] [default to undefined]
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
|
@@ -22,9 +22,9 @@ const instance: DatasetCreateRequest = {
|
|
|
22
22
|
name,
|
|
23
23
|
description,
|
|
24
24
|
tags,
|
|
25
|
+
additionalData,
|
|
25
26
|
parts,
|
|
26
27
|
security,
|
|
27
|
-
runnerId,
|
|
28
28
|
};
|
|
29
29
|
```
|
|
30
30
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# DatasetEditInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**timestamp** | **number** | The timestamp of the modification in millisecond | [default to undefined]
|
|
9
|
+
**userId** | **string** | The id of the user who did the modification | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { DatasetEditInfo } from '@cosmotech/api-ts';
|
|
15
|
+
|
|
16
|
+
const instance: DatasetEditInfo = {
|
|
17
|
+
timestamp,
|
|
18
|
+
userId,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/DatasetPart.md
CHANGED
|
@@ -11,12 +11,13 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**sourceName** | **string** | the source data name (e.g. filename associated to the dataset part) | [default to undefined]
|
|
12
12
|
**description** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**tags** | **Array<string>** | | [default to undefined]
|
|
14
|
+
**additionalData** | **{ [key: string]: any; }** | Free form additional data | [optional] [default to undefined]
|
|
14
15
|
**type** | [**DatasetPartTypeEnum**](DatasetPartTypeEnum.md) | | [default to undefined]
|
|
15
16
|
**organizationId** | **string** | the associated Organization Id | [readonly] [default to undefined]
|
|
16
17
|
**workspaceId** | **string** | the associated Workspace Id | [readonly] [default to undefined]
|
|
17
18
|
**datasetId** | **string** | the associated Dataset Id | [readonly] [default to undefined]
|
|
18
|
-
**createInfo** | [**
|
|
19
|
-
**updateInfo** | [**
|
|
19
|
+
**createInfo** | [**DatasetEditInfo**](DatasetEditInfo.md) | The details of the Dataset creation | [default to undefined]
|
|
20
|
+
**updateInfo** | [**DatasetEditInfo**](DatasetEditInfo.md) | The details of the Dataset last update | [default to undefined]
|
|
20
21
|
|
|
21
22
|
## Example
|
|
22
23
|
|
|
@@ -29,6 +30,7 @@ const instance: DatasetPart = {
|
|
|
29
30
|
sourceName,
|
|
30
31
|
description,
|
|
31
32
|
tags,
|
|
33
|
+
additionalData,
|
|
32
34
|
type,
|
|
33
35
|
organizationId,
|
|
34
36
|
workspaceId,
|
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**sourceName** | **string** | the source data name (e.g. filename associated to the dataset part) | [default to undefined]
|
|
11
11
|
**description** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**tags** | **Array<string>** | | [optional] [default to undefined]
|
|
13
|
+
**additionalData** | **{ [key: string]: any; }** | Free form additional data | [optional] [default to undefined]
|
|
13
14
|
**type** | [**DatasetPartTypeEnum**](DatasetPartTypeEnum.md) | | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
@@ -22,6 +23,7 @@ const instance: DatasetPartCreateRequest = {
|
|
|
22
23
|
sourceName,
|
|
23
24
|
description,
|
|
24
25
|
tags,
|
|
26
|
+
additionalData,
|
|
25
27
|
type,
|
|
26
28
|
};
|
|
27
29
|
```
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**sourceName** | **string** | the source data name (e.g. filename associated to the dataset part) | [optional] [default to undefined]
|
|
10
10
|
**description** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**tags** | **Array<string>** | | [optional] [default to undefined]
|
|
12
|
+
**additionalData** | **{ [key: string]: any; }** | Free form additional data | [optional] [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -19,6 +20,7 @@ const instance: DatasetPartUpdateRequest = {
|
|
|
19
20
|
sourceName,
|
|
20
21
|
description,
|
|
21
22
|
tags,
|
|
23
|
+
additionalData,
|
|
22
24
|
};
|
|
23
25
|
```
|
|
24
26
|
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**description** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**tags** | **Array<string>** | | [optional] [default to undefined]
|
|
12
|
+
**additionalData** | **{ [key: string]: any; }** | Free form additional data | [optional] [default to undefined]
|
|
12
13
|
**parts** | [**Array<DatasetPartCreateRequest>**](DatasetPartCreateRequest.md) | | [optional] [default to undefined]
|
|
13
14
|
**security** | [**DatasetSecurity**](DatasetSecurity.md) | | [optional] [default to undefined]
|
|
14
15
|
|
|
@@ -21,6 +22,7 @@ const instance: DatasetUpdateRequest = {
|
|
|
21
22
|
name,
|
|
22
23
|
description,
|
|
23
24
|
tags,
|
|
25
|
+
additionalData,
|
|
24
26
|
parts,
|
|
25
27
|
security,
|
|
26
28
|
};
|
package/docs/RunApi.md
CHANGED
|
@@ -9,8 +9,6 @@ All URIs are relative to *http://localhost:8080*
|
|
|
9
9
|
|[**getRunLogs**](#getrunlogs) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/logs | get the logs for the Run|
|
|
10
10
|
|[**getRunStatus**](#getrunstatus) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/status | get the status for the Run|
|
|
11
11
|
|[**listRuns**](#listruns) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs | get the list of Runs for the Runner|
|
|
12
|
-
|[**queryRunData**](#queryrundata) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/data/query | query the run data|
|
|
13
|
-
|[**sendRunData**](#sendrundata) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/data/send | Send data associated to a run|
|
|
14
12
|
|
|
15
13
|
# **deleteRun**
|
|
16
14
|
> deleteRun()
|
|
@@ -313,130 +311,3 @@ const { status, data } = await apiInstance.listRuns(
|
|
|
313
311
|
|
|
314
312
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
315
313
|
|
|
316
|
-
# **queryRunData**
|
|
317
|
-
> QueryResult queryRunData(runDataQuery)
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
### Example
|
|
321
|
-
|
|
322
|
-
```typescript
|
|
323
|
-
import {
|
|
324
|
-
RunApi,
|
|
325
|
-
Configuration,
|
|
326
|
-
RunDataQuery
|
|
327
|
-
} from '@cosmotech/api-ts';
|
|
328
|
-
|
|
329
|
-
const configuration = new Configuration();
|
|
330
|
-
const apiInstance = new RunApi(configuration);
|
|
331
|
-
|
|
332
|
-
let organizationId: string; //the Organization identifier (default to undefined)
|
|
333
|
-
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
334
|
-
let runnerId: string; //the Runner identifier (default to undefined)
|
|
335
|
-
let runId: string; //the Run identifier (default to undefined)
|
|
336
|
-
let runDataQuery: RunDataQuery; //the query to run
|
|
337
|
-
|
|
338
|
-
const { status, data } = await apiInstance.queryRunData(
|
|
339
|
-
organizationId,
|
|
340
|
-
workspaceId,
|
|
341
|
-
runnerId,
|
|
342
|
-
runId,
|
|
343
|
-
runDataQuery
|
|
344
|
-
);
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
### Parameters
|
|
348
|
-
|
|
349
|
-
|Name | Type | Description | Notes|
|
|
350
|
-
|------------- | ------------- | ------------- | -------------|
|
|
351
|
-
| **runDataQuery** | **RunDataQuery**| the query to run | |
|
|
352
|
-
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
353
|
-
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
354
|
-
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
355
|
-
| **runId** | [**string**] | the Run identifier | defaults to undefined|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
### Return type
|
|
359
|
-
|
|
360
|
-
**QueryResult**
|
|
361
|
-
|
|
362
|
-
### Authorization
|
|
363
|
-
|
|
364
|
-
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
365
|
-
|
|
366
|
-
### HTTP request headers
|
|
367
|
-
|
|
368
|
-
- **Content-Type**: application/json, application/yaml
|
|
369
|
-
- **Accept**: application/json, application/yaml
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
### HTTP response details
|
|
373
|
-
| Status code | Description | Response headers |
|
|
374
|
-
|-------------|-------------|------------------|
|
|
375
|
-
|**200** | the query response | - |
|
|
376
|
-
|
|
377
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
378
|
-
|
|
379
|
-
# **sendRunData**
|
|
380
|
-
> RunData sendRunData(sendRunDataRequest)
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
### Example
|
|
384
|
-
|
|
385
|
-
```typescript
|
|
386
|
-
import {
|
|
387
|
-
RunApi,
|
|
388
|
-
Configuration,
|
|
389
|
-
SendRunDataRequest
|
|
390
|
-
} from '@cosmotech/api-ts';
|
|
391
|
-
|
|
392
|
-
const configuration = new Configuration();
|
|
393
|
-
const apiInstance = new RunApi(configuration);
|
|
394
|
-
|
|
395
|
-
let organizationId: string; //the Organization identifier (default to undefined)
|
|
396
|
-
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
397
|
-
let runnerId: string; //the Runner identifier (default to undefined)
|
|
398
|
-
let runId: string; //the Run identifier (default to undefined)
|
|
399
|
-
let sendRunDataRequest: SendRunDataRequest; //Custom data to register
|
|
400
|
-
|
|
401
|
-
const { status, data } = await apiInstance.sendRunData(
|
|
402
|
-
organizationId,
|
|
403
|
-
workspaceId,
|
|
404
|
-
runnerId,
|
|
405
|
-
runId,
|
|
406
|
-
sendRunDataRequest
|
|
407
|
-
);
|
|
408
|
-
```
|
|
409
|
-
|
|
410
|
-
### Parameters
|
|
411
|
-
|
|
412
|
-
|Name | Type | Description | Notes|
|
|
413
|
-
|------------- | ------------- | ------------- | -------------|
|
|
414
|
-
| **sendRunDataRequest** | **SendRunDataRequest**| Custom data to register | |
|
|
415
|
-
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
416
|
-
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
417
|
-
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
418
|
-
| **runId** | [**string**] | the Run identifier | defaults to undefined|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
### Return type
|
|
422
|
-
|
|
423
|
-
**RunData**
|
|
424
|
-
|
|
425
|
-
### Authorization
|
|
426
|
-
|
|
427
|
-
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
428
|
-
|
|
429
|
-
### HTTP request headers
|
|
430
|
-
|
|
431
|
-
- **Content-Type**: application/json, application/yaml
|
|
432
|
-
- **Accept**: application/json, application/yaml
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
### HTTP response details
|
|
436
|
-
| Status code | Description | Response headers |
|
|
437
|
-
|-------------|-------------|------------------|
|
|
438
|
-
|**201** | Data stored | - |
|
|
439
|
-
|**400** | Data sent format is malformed | - |
|
|
440
|
-
|
|
441
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
442
|
-
|
package/docs/RunData.md
CHANGED
|
@@ -13,8 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**defaultValue** | **string** | The default value for this parameter | [optional] [default to undefined]
|
|
14
14
|
**minValue** | **string** | The minimum value for this parameter | [optional] [default to undefined]
|
|
15
15
|
**maxValue** | **string** | The maximum value for this parameter | [optional] [default to undefined]
|
|
16
|
-
**
|
|
17
|
-
**_options** | **{ [key: string]: any; }** | Freeform options | [optional] [default to undefined]
|
|
16
|
+
**additionalData** | **{ [key: string]: any; }** | Free form additional data | [optional] [default to undefined]
|
|
18
17
|
|
|
19
18
|
## Example
|
|
20
19
|
|
|
@@ -29,8 +28,7 @@ const instance: RunTemplateParameter = {
|
|
|
29
28
|
defaultValue,
|
|
30
29
|
minValue,
|
|
31
30
|
maxValue,
|
|
32
|
-
|
|
33
|
-
_options,
|
|
31
|
+
additionalData,
|
|
34
32
|
};
|
|
35
33
|
```
|
|
36
34
|
|
|
@@ -13,8 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**defaultValue** | **string** | The default value for this parameter | [optional] [default to undefined]
|
|
14
14
|
**minValue** | **string** | The minimum value for this parameter | [optional] [default to undefined]
|
|
15
15
|
**maxValue** | **string** | The maximum value for this parameter | [optional] [default to undefined]
|
|
16
|
-
**
|
|
17
|
-
**_options** | **{ [key: string]: any; }** | Freeform options | [optional] [default to undefined]
|
|
16
|
+
**additionalData** | **{ [key: string]: any; }** | Free form additional data | [optional] [default to undefined]
|
|
18
17
|
|
|
19
18
|
## Example
|
|
20
19
|
|
|
@@ -29,8 +28,7 @@ const instance: RunTemplateParameterCreateRequest = {
|
|
|
29
28
|
defaultValue,
|
|
30
29
|
minValue,
|
|
31
30
|
maxValue,
|
|
32
|
-
|
|
33
|
-
_options,
|
|
31
|
+
additionalData,
|
|
34
32
|
};
|
|
35
33
|
```
|
|
36
34
|
|
|
@@ -9,9 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**id** | **string** | The Parameter Group id | [default to undefined]
|
|
10
10
|
**description** | **string** | A description of the parameter group | [optional] [default to undefined]
|
|
11
11
|
**labels** | **{ [key: string]: string; }** | A translated label with key as ISO 639-1 code | [optional] [default to undefined]
|
|
12
|
-
**
|
|
13
|
-
**_options** | **{ [key: string]: any; }** | Freeform options | [optional] [default to undefined]
|
|
14
|
-
**parentId** | **string** | The Run Template Group parent Id | [optional] [default to undefined]
|
|
12
|
+
**additionalData** | **{ [key: string]: any; }** | Free form additional data | [optional] [default to undefined]
|
|
15
13
|
**parameters** | **Array<string>** | An ordered list of Run Template Parameters | [default to undefined]
|
|
16
14
|
|
|
17
15
|
## Example
|
|
@@ -23,9 +21,7 @@ const instance: RunTemplateParameterGroup = {
|
|
|
23
21
|
id,
|
|
24
22
|
description,
|
|
25
23
|
labels,
|
|
26
|
-
|
|
27
|
-
_options,
|
|
28
|
-
parentId,
|
|
24
|
+
additionalData,
|
|
29
25
|
parameters,
|
|
30
26
|
};
|
|
31
27
|
```
|
|
@@ -9,9 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**id** | **string** | The Parameter Group id | [default to undefined]
|
|
10
10
|
**description** | **string** | A description of the parameter group | [optional] [default to undefined]
|
|
11
11
|
**labels** | **{ [key: string]: string; }** | A translated label with key as ISO 639-1 code | [optional] [default to undefined]
|
|
12
|
-
**
|
|
13
|
-
**_options** | **{ [key: string]: any; }** | Freeform options | [optional] [default to undefined]
|
|
14
|
-
**parentId** | **string** | The Run Template Group parent Id | [optional] [default to undefined]
|
|
12
|
+
**additionalData** | **{ [key: string]: any; }** | Free form additional data | [optional] [default to undefined]
|
|
15
13
|
**parameters** | **Array<string>** | An ordered list of Run Template Parameters | [optional] [default to undefined]
|
|
16
14
|
|
|
17
15
|
## Example
|
|
@@ -23,9 +21,7 @@ const instance: RunTemplateParameterGroupCreateRequest = {
|
|
|
23
21
|
id,
|
|
24
22
|
description,
|
|
25
23
|
labels,
|
|
26
|
-
|
|
27
|
-
_options,
|
|
28
|
-
parentId,
|
|
24
|
+
additionalData,
|
|
29
25
|
parameters,
|
|
30
26
|
};
|
|
31
27
|
```
|
|
@@ -8,9 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**description** | **string** | A description of the parameter group | [optional] [default to undefined]
|
|
10
10
|
**labels** | **{ [key: string]: string; }** | A translated label with key as ISO 639-1 code | [optional] [default to undefined]
|
|
11
|
-
**
|
|
12
|
-
**_options** | **{ [key: string]: any; }** | Freeform options | [optional] [default to undefined]
|
|
13
|
-
**parentId** | **string** | The Run Template Group parent Id | [optional] [default to undefined]
|
|
11
|
+
**additionalData** | **{ [key: string]: any; }** | Free form additional data | [optional] [default to undefined]
|
|
14
12
|
**parameters** | **Array<string>** | An ordered list of Run Template Parameters | [optional] [default to undefined]
|
|
15
13
|
|
|
16
14
|
## Example
|
|
@@ -21,9 +19,7 @@ import { RunTemplateParameterGroupUpdateRequest } from '@cosmotech/api-ts';
|
|
|
21
19
|
const instance: RunTemplateParameterGroupUpdateRequest = {
|
|
22
20
|
description,
|
|
23
21
|
labels,
|
|
24
|
-
|
|
25
|
-
_options,
|
|
26
|
-
parentId,
|
|
22
|
+
additionalData,
|
|
27
23
|
parameters,
|
|
28
24
|
};
|
|
29
25
|
```
|
|
@@ -12,8 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**defaultValue** | **string** | The default value for this parameter | [optional] [default to undefined]
|
|
13
13
|
**minValue** | **string** | The minimum value for this parameter | [optional] [default to undefined]
|
|
14
14
|
**maxValue** | **string** | The maximum value for this parameter | [optional] [default to undefined]
|
|
15
|
-
**
|
|
16
|
-
**_options** | **{ [key: string]: any; }** | Freeform options | [optional] [default to undefined]
|
|
15
|
+
**additionalData** | **{ [key: string]: any; }** | Free form additional data | [optional] [default to undefined]
|
|
17
16
|
|
|
18
17
|
## Example
|
|
19
18
|
|
|
@@ -27,8 +26,7 @@ const instance: RunTemplateParameterUpdateRequest = {
|
|
|
27
26
|
defaultValue,
|
|
28
27
|
minValue,
|
|
29
28
|
maxValue,
|
|
30
|
-
|
|
31
|
-
_options,
|
|
29
|
+
additionalData,
|
|
32
30
|
};
|
|
33
31
|
```
|
|
34
32
|
|
package/docs/Runner.md
CHANGED
|
@@ -18,10 +18,10 @@ Name | Type | Description | Notes
|
|
|
18
18
|
**runTemplateId** | **string** | the Solution Run Template Id associated with this Runner | [default to undefined]
|
|
19
19
|
**organizationId** | **string** | the associated Organization Id | [readonly] [default to undefined]
|
|
20
20
|
**workspaceId** | **string** | the associated Workspace Id | [readonly] [default to undefined]
|
|
21
|
-
**ownerName** | **string** | the name of the owner | [readonly] [default to undefined]
|
|
22
21
|
**solutionName** | **string** | the Solution name | [optional] [readonly] [default to undefined]
|
|
23
22
|
**runTemplateName** | **string** | the Solution Run Template name associated with this Runner | [optional] [readonly] [default to undefined]
|
|
24
|
-
**
|
|
23
|
+
**additionalData** | **{ [key: string]: any; }** | Free form additional data | [optional] [default to undefined]
|
|
24
|
+
**datasets** | [**RunnerDatasets**](RunnerDatasets.md) | definition of datasets used by the runner | [default to undefined]
|
|
25
25
|
**runSizing** | [**RunnerResourceSizing**](RunnerResourceSizing.md) | | [optional] [default to undefined]
|
|
26
26
|
**parametersValues** | [**Array<RunnerRunTemplateParameterValue>**](RunnerRunTemplateParameterValue.md) | the list of Solution Run Template parameters values | [default to undefined]
|
|
27
27
|
**lastRunInfo** | [**LastRunInfo**](LastRunInfo.md) | | [default to undefined]
|
|
@@ -46,9 +46,9 @@ const instance: Runner = {
|
|
|
46
46
|
runTemplateId,
|
|
47
47
|
organizationId,
|
|
48
48
|
workspaceId,
|
|
49
|
-
ownerName,
|
|
50
49
|
solutionName,
|
|
51
50
|
runTemplateName,
|
|
51
|
+
additionalData,
|
|
52
52
|
datasets,
|
|
53
53
|
runSizing,
|
|
54
54
|
parametersValues,
|
|
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
|
|
15
15
|
**datasetList** | **Array<string>** | the list of Dataset Id associated to this Runner Run Template | [optional] [default to undefined]
|
|
16
16
|
**runSizing** | [**RunnerResourceSizing**](RunnerResourceSizing.md) | | [optional] [default to undefined]
|
|
17
17
|
**parametersValues** | [**Array<RunnerRunTemplateParameterValue>**](RunnerRunTemplateParameterValue.md) | the list of Solution Run Template parameters values | [optional] [default to undefined]
|
|
18
|
-
**
|
|
18
|
+
**additionalData** | **{ [key: string]: any; }** | Free form additional data | [optional] [default to undefined]
|
|
19
19
|
**solutionName** | **string** | the Solution name | [optional] [default to undefined]
|
|
20
20
|
**runTemplateName** | **string** | the Solution Run Template name associated with this Runner | [optional] [default to undefined]
|
|
21
21
|
**security** | [**RunnerSecurity**](RunnerSecurity.md) | | [optional] [default to undefined]
|
|
@@ -35,7 +35,7 @@ const instance: RunnerCreateRequest = {
|
|
|
35
35
|
datasetList,
|
|
36
36
|
runSizing,
|
|
37
37
|
parametersValues,
|
|
38
|
-
|
|
38
|
+
additionalData,
|
|
39
39
|
solutionName,
|
|
40
40
|
runTemplateName,
|
|
41
41
|
security,
|
|
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**datasetList** | **Array<string>** | the list of Dataset Id associated to this Runner Run Template | [optional] [default to undefined]
|
|
14
14
|
**runSizing** | [**RunnerResourceSizing**](RunnerResourceSizing.md) | | [optional] [default to undefined]
|
|
15
15
|
**parametersValues** | [**Array<RunnerRunTemplateParameterValue>**](RunnerRunTemplateParameterValue.md) | the list of Solution Run Template parameters values | [optional] [default to undefined]
|
|
16
|
-
**
|
|
16
|
+
**additionalData** | **{ [key: string]: any; }** | Free form additional data | [optional] [default to undefined]
|
|
17
17
|
**solutionName** | **string** | the Solution name | [optional] [default to undefined]
|
|
18
18
|
**runTemplateName** | **string** | the Solution Run Template name associated with this Runner | [optional] [default to undefined]
|
|
19
19
|
|
|
@@ -30,7 +30,7 @@ const instance: RunnerUpdateRequest = {
|
|
|
30
30
|
datasetList,
|
|
31
31
|
runSizing,
|
|
32
32
|
parametersValues,
|
|
33
|
-
|
|
33
|
+
additionalData,
|
|
34
34
|
solutionName,
|
|
35
35
|
runTemplateName,
|
|
36
36
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# SendRunDataRequest
|
|
2
2
|
|
|
3
|
-
Run Data to send
|
|
4
3
|
|
|
5
4
|
## Properties
|
|
6
5
|
|
|
7
6
|
Name | Type | Description | Notes
|
|
8
7
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | | [default to undefined]
|
|
10
|
-
**data** | **Array<{ [key: string]: any; }>** | | [default to undefined]
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**data** | **Array<{ [key: string]: any; }>** | | [optional] [default to undefined]
|
|
11
10
|
|
|
12
11
|
## Example
|
|
13
12
|
|