@cosmotech/api-ts 5.0.0-beta4 → 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.
Files changed (60) hide show
  1. package/.github/workflows/publish.yaml +13 -12
  2. package/.github/workflows/track_dependencies.yml +31 -0
  3. package/.openapi-generator/FILES +1 -5
  4. package/README.md +5 -15
  5. package/api.ts +218 -777
  6. package/base.ts +1 -1
  7. package/common.ts +1 -1
  8. package/configuration.ts +1 -1
  9. package/dist/api.d.ts +240 -524
  10. package/dist/api.js +194 -819
  11. package/dist/base.d.ts +1 -1
  12. package/dist/base.js +1 -1
  13. package/dist/common.d.ts +1 -1
  14. package/dist/common.js +1 -1
  15. package/dist/configuration.d.ts +1 -1
  16. package/dist/configuration.js +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +1 -1
  19. package/docs/Connector.md +41 -0
  20. package/docs/ConnectorApi.md +218 -0
  21. package/docs/ConnectorParameter.md +31 -0
  22. package/docs/ConnectorParameterGroup.md +25 -0
  23. package/docs/DatasetApi.md +110 -28
  24. package/docs/DatasetCompatibility.md +25 -0
  25. package/docs/DatasetConnector.md +27 -0
  26. package/docs/DatasetCopyParameters.md +25 -0
  27. package/docs/DatasetPartTypeEnum.md +1 -1
  28. package/docs/DatasetSearch.md +21 -0
  29. package/docs/DatasetSourceType.md +19 -0
  30. package/docs/DatasetTwinGraphHash.md +21 -0
  31. package/docs/DatasetTwinGraphInfo.md +25 -0
  32. package/docs/DatasetTwinGraphQuery.md +21 -0
  33. package/docs/DeleteHistoricalData.md +25 -0
  34. package/docs/FileUploadMetadata.md +22 -0
  35. package/docs/FileUploadValidation.md +23 -0
  36. package/docs/GraphProperties.md +28 -0
  37. package/docs/IngestionStatusEnum.md +15 -0
  38. package/docs/IoTypesEnum.md +11 -0
  39. package/docs/RunApi.md +0 -129
  40. package/docs/RunData.md +1 -1
  41. package/docs/RunLogs.md +23 -0
  42. package/docs/RunLogsEntry.md +21 -0
  43. package/docs/RunTemplateOrchestrator.md +11 -0
  44. package/docs/RunTemplateStepSource.md +15 -0
  45. package/docs/Runner.md +2 -2
  46. package/docs/RunnerApi.md +4 -4
  47. package/docs/RunnerCreateRequest.md +4 -4
  48. package/docs/RunnerDatasets.md +24 -0
  49. package/docs/RunnerRunTemplateParameterValue.md +1 -1
  50. package/docs/RunnerUpdateRequest.md +2 -2
  51. package/docs/SendRunDataRequest.md +2 -3
  52. package/docs/SolutionApi.md +0 -290
  53. package/docs/SourceInfo.md +27 -0
  54. package/docs/SubDatasetGraphQuery.md +27 -0
  55. package/docs/TwinGraphBatchResult.md +25 -0
  56. package/docs/TwincacheStatusEnum.md +11 -0
  57. package/docs/WorkspaceSolution.md +4 -0
  58. package/git_push.sh +2 -2
  59. package/index.ts +1 -1
  60. package/package.json +2 -2
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,6 +1,6 @@
1
1
  # RunData
2
2
 
3
- Run Data stored
3
+ Run Data to send
4
4
 
5
5
  ## Properties
6
6
 
@@ -0,0 +1,23 @@
1
+ # RunLogs
2
+
3
+ the output logs of a run
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **runId** | **string** | the Run Id | [readonly] [default to undefined]
10
+ **logs** | [**Array<RunLogsEntry>**](RunLogsEntry.md) | run log entries in chronological order | [readonly] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { RunLogs } from '@cosmotech/api-ts';
16
+
17
+ const instance: RunLogs = {
18
+ runId,
19
+ logs,
20
+ };
21
+ ```
22
+
23
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,21 @@
1
+ # RunLogsEntry
2
+
3
+ single run log entry
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **line** | **string** | log line data | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { RunLogsEntry } from '@cosmotech/api-ts';
15
+
16
+ const instance: RunLogsEntry = {
17
+ line,
18
+ };
19
+ ```
20
+
21
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,11 @@
1
+ # RunTemplateOrchestrator
2
+
3
+ the Orchestrator to use for the Run Template
4
+
5
+ ## Enum
6
+
7
+ * `ArgoWorkflow` (value: `'argoWorkflow'`)
8
+
9
+ * `CsmOrc` (value: `'csmOrc'`)
10
+
11
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,15 @@
1
+ # RunTemplateStepSource
2
+
3
+ the source local, cloud or git repository
4
+
5
+ ## Enum
6
+
7
+ * `Cloud` (value: `'cloud'`)
8
+
9
+ * `Git` (value: `'git'`)
10
+
11
+ * `Local` (value: `'local'`)
12
+
13
+ * `Platform` (value: `'platform'`)
14
+
15
+ [[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/Runner.md CHANGED
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
21
21
  **ownerName** | **string** | the name of the owner | [readonly] [default to undefined]
22
22
  **solutionName** | **string** | the Solution name | [optional] [readonly] [default to undefined]
23
23
  **runTemplateName** | **string** | the Solution Run Template name associated with this Runner | [optional] [readonly] [default to undefined]
24
- **datasetList** | **Array<string>** | the list of Dataset Id associated to this Runner Run Template | [default to undefined]
24
+ **datasets** | [**RunnerDatasets**](RunnerDatasets.md) | | [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]
@@ -49,7 +49,7 @@ const instance: Runner = {
49
49
  ownerName,
50
50
  solutionName,
51
51
  runTemplateName,
52
- datasetList,
52
+ datasets,
53
53
  runSizing,
54
54
  parametersValues,
55
55
  lastRunInfo,
package/docs/RunnerApi.md CHANGED
@@ -563,8 +563,8 @@ const apiInstance = new RunnerApi(configuration);
563
563
 
564
564
  let organizationId: string; //the Organization identifier (default to undefined)
565
565
  let workspaceId: string; //the Workspace identifier (default to undefined)
566
- let page: number; //page number to query (first page is at index 0) (optional) (default to undefined)
567
- let size: number; //amount of result by page (optional) (default to undefined)
566
+ let page: number; //Page number to query (first page is at index 0) (optional) (default to undefined)
567
+ let size: number; //Amount of result by page (optional) (default to undefined)
568
568
 
569
569
  const { status, data } = await apiInstance.listRunners(
570
570
  organizationId,
@@ -580,8 +580,8 @@ const { status, data } = await apiInstance.listRunners(
580
580
  |------------- | ------------- | ------------- | -------------|
581
581
  | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
582
582
  | **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
583
- | **page** | [**number**] | page number to query (first page is at index 0) | (optional) defaults to undefined|
584
- | **size** | [**number**] | amount of result by page | (optional) defaults to undefined|
583
+ | **page** | [**number**] | Page number to query (first page is at index 0) | (optional) defaults to undefined|
584
+ | **size** | [**number**] | Amount of result by page | (optional) defaults to undefined|
585
585
 
586
586
 
587
587
  ### Return type
@@ -9,15 +9,15 @@ Name | Type | Description | Notes
9
9
  **name** | **string** | the Runner name | [default to undefined]
10
10
  **description** | **string** | the Runner description | [optional] [default to undefined]
11
11
  **tags** | **Array<string>** | the list of tags | [optional] [default to undefined]
12
- **solutionId** | **string** | the Solution Id associated with this Runner | [readonly] [default to undefined]
12
+ **solutionId** | **string** | the Solution Id associated with this Runner | [default to undefined]
13
13
  **parentId** | **string** | the Runner parent id | [optional] [default to undefined]
14
14
  **runTemplateId** | **string** | the Solution Run Template Id associated with this Runner | [default to undefined]
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
- **ownerName** | **string** | the name of the owner | [readonly] [default to undefined]
19
- **solutionName** | **string** | the Solution name | [optional] [readonly] [default to undefined]
20
- **runTemplateName** | **string** | the Solution Run Template name associated with this Runner | [optional] [readonly] [default to undefined]
18
+ **ownerName** | **string** | the name of the owner | [default to undefined]
19
+ **solutionName** | **string** | the Solution name | [optional] [default to undefined]
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]
22
22
 
23
23
  ## Example
@@ -0,0 +1,24 @@
1
+ # RunnerDatasets
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **bases** | **Array<string>** | a list of Dataset Id used to build the Runner | [default to undefined]
9
+ **parameter** | **string** | The dataset id used for dataset parameters on current Runner | [default to undefined]
10
+ **parameters** | **Array<object>** | The dataset parts retrieved from the parameter property (programmatically fulfilled) | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { RunnerDatasets } from '@cosmotech/api-ts';
16
+
17
+ const instance: RunnerDatasets = {
18
+ bases,
19
+ parameter,
20
+ parameters,
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)
@@ -7,7 +7,7 @@ the value of a Solution Run Template parameter for a Runner
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
9
  **parameterId** | **string** | the parameter Id | [default to undefined]
10
- **varType** | **string** | the parameter value type | [optional] [readonly] [default to undefined]
10
+ **varType** | **string** | the parameter value type | [optional] [default to undefined]
11
11
  **value** | **string** | the parameter value | [default to undefined]
12
12
  **isInherited** | **boolean** | whether or not the value is inherited from parent or has been changed | [optional] [default to undefined]
13
13
 
@@ -14,8 +14,8 @@ Name | Type | Description | Notes
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
  **ownerName** | **string** | the name of the owner | [optional] [default to undefined]
17
- **solutionName** | **string** | the Solution name | [optional] [readonly] [default to undefined]
18
- **runTemplateName** | **string** | the Solution Run Template name associated with this Runner | [optional] [readonly] [default to undefined]
17
+ **solutionName** | **string** | the Solution name | [optional] [default to undefined]
18
+ **runTemplateName** | **string** | the Solution Run Template name associated with this Runner | [optional] [default to undefined]
19
19
 
20
20
  ## Example
21
21
 
@@ -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