@cosmotech/api-ts 5.0.0-beta5 → 5.0.0-beta6
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 +0 -4
- package/README.md +3 -9
- package/api.ts +66 -302
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +41 -195
- 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/DatasetApi.md +27 -12
- package/docs/RunApi.md +0 -129
- package/docs/RunData.md +1 -1
- package/docs/SendRunDataRequest.md +2 -3
- 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|
|
|
@@ -823,7 +823,7 @@ const { status, data } = await apiInstance.listDatasets(
|
|
|
823
823
|
[[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
824
|
|
|
825
825
|
# **queryData**
|
|
826
|
-
>
|
|
826
|
+
> File queryData()
|
|
827
827
|
|
|
828
828
|
|
|
829
829
|
### Example
|
|
@@ -841,22 +841,32 @@ let organizationId: string; //the Organization identifier (default to undefined)
|
|
|
841
841
|
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
842
842
|
let datasetId: string; //the Dataset identifier (default to undefined)
|
|
843
843
|
let datasetPartId: string; //the Dataset part identifier (default to undefined)
|
|
844
|
-
let
|
|
845
|
-
let sums: Array<string>; //
|
|
846
|
-
let
|
|
844
|
+
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)
|
|
845
|
+
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)
|
|
846
|
+
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)
|
|
847
|
+
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)
|
|
848
|
+
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)
|
|
849
|
+
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
850
|
let offset: number; //The query offset (optional) (default to undefined)
|
|
848
851
|
let limit: number; //The query limit (optional) (default to undefined)
|
|
852
|
+
let groupBys: Array<string>; //Column names to group by (optional) (default to undefined)
|
|
853
|
+
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
854
|
|
|
850
855
|
const { status, data } = await apiInstance.queryData(
|
|
851
856
|
organizationId,
|
|
852
857
|
workspaceId,
|
|
853
858
|
datasetId,
|
|
854
859
|
datasetPartId,
|
|
855
|
-
|
|
860
|
+
selects,
|
|
856
861
|
sums,
|
|
862
|
+
avgs,
|
|
857
863
|
counts,
|
|
864
|
+
mins,
|
|
865
|
+
maxs,
|
|
858
866
|
offset,
|
|
859
|
-
limit
|
|
867
|
+
limit,
|
|
868
|
+
groupBys,
|
|
869
|
+
orderBys
|
|
860
870
|
);
|
|
861
871
|
```
|
|
862
872
|
|
|
@@ -868,16 +878,21 @@ const { status, data } = await apiInstance.queryData(
|
|
|
868
878
|
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
869
879
|
| **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
|
|
870
880
|
| **datasetPartId** | [**string**] | the Dataset part identifier | defaults to undefined|
|
|
871
|
-
| **
|
|
872
|
-
| **sums** | **Array<string>** |
|
|
873
|
-
| **
|
|
881
|
+
| **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|
|
|
882
|
+
| **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|
|
|
883
|
+
| **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|
|
|
884
|
+
| **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|
|
|
885
|
+
| **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|
|
|
886
|
+
| **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
887
|
| **offset** | [**number**] | The query offset | (optional) defaults to undefined|
|
|
875
888
|
| **limit** | [**number**] | The query limit | (optional) defaults to undefined|
|
|
889
|
+
| **groupBys** | **Array<string>** | Column names to group by | (optional) defaults to undefined|
|
|
890
|
+
| **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
891
|
|
|
877
892
|
|
|
878
893
|
### Return type
|
|
879
894
|
|
|
880
|
-
**
|
|
895
|
+
**File**
|
|
881
896
|
|
|
882
897
|
### Authorization
|
|
883
898
|
|
|
@@ -886,7 +901,7 @@ const { status, data } = await apiInstance.queryData(
|
|
|
886
901
|
### HTTP request headers
|
|
887
902
|
|
|
888
903
|
- **Content-Type**: Not defined
|
|
889
|
-
- **Accept**: application/
|
|
904
|
+
- **Accept**: application/octet-stream
|
|
890
905
|
|
|
891
906
|
|
|
892
907
|
### HTTP response details
|
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
|
@@ -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
|
|
package/git_push.sh
CHANGED
|
@@ -14,12 +14,12 @@ if [ "$git_host" = "" ]; then
|
|
|
14
14
|
fi
|
|
15
15
|
|
|
16
16
|
if [ "$git_user_id" = "" ]; then
|
|
17
|
-
git_user_id="
|
|
17
|
+
git_user_id="Cosmo-Tech"
|
|
18
18
|
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
19
|
fi
|
|
20
20
|
|
|
21
21
|
if [ "$git_repo_id" = "" ]; then
|
|
22
|
-
git_repo_id="
|
|
22
|
+
git_repo_id="cosmotech-api-typescript-client"
|
|
23
23
|
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
24
|
fi
|
|
25
25
|
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cosmo Tech Platform API
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.0.
|
|
7
|
+
* The version of the OpenAPI document: 5.0.0-beta6
|
|
8
8
|
* Contact: platform@cosmotech.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmotech/api-ts",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-beta6",
|
|
4
4
|
"description": "OpenAPI client for @cosmotech/api-ts",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/
|
|
8
|
+
"url": "https://github.com/Cosmo-Tech/cosmotech-api-typescript-client.git"
|
|
9
9
|
},
|
|
10
10
|
"keywords": [
|
|
11
11
|
"axios",
|