@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.
@@ -1,22 +1,24 @@
1
1
  name: Node.js Package on npm
2
+
2
3
  on:
3
4
  release:
4
5
  types: [created]
6
+
7
+ permissions:
8
+ contents: read
9
+ id-token: write
10
+
5
11
  jobs:
6
12
  build:
7
13
  name: Build & Publish
8
14
  runs-on: ubuntu-latest
9
15
  steps:
10
- - uses: actions/checkout@v2
11
- - uses: actions/setup-node@v1
16
+ - uses: actions/checkout@v5
17
+ - uses: actions/setup-node@v6
12
18
  with:
13
- node-version: '14.x'
19
+ node-version: '24'
14
20
  registry-url: 'https://registry.npmjs.org'
15
21
  scope: '@cosmotech'
16
22
  - run: npm version ${{ github.event.release.tag_name }} --allow-same-version --no-git-tag-version
17
23
  - run: npm install
18
- - run: npm publish
19
- env:
20
- NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
21
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
22
- NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
24
+ - run: npm publish --tag ${{ github.event.release.prerelease && 'prerelease' || 'latest' }}
@@ -6,6 +6,9 @@ on:
6
6
  branches:
7
7
  - master
8
8
 
9
+ permissions:
10
+ contents: read
11
+
9
12
  jobs:
10
13
  dependency_track:
11
14
  runs-on: ubuntu-latest
@@ -35,13 +35,10 @@ docs/OrganizationEditInfo.md
35
35
  docs/OrganizationRole.md
36
36
  docs/OrganizationSecurity.md
37
37
  docs/OrganizationUpdateRequest.md
38
- docs/QueryResult.md
39
38
  docs/ResourceSizeInfo.md
40
39
  docs/Run.md
41
40
  docs/RunApi.md
42
41
  docs/RunContainer.md
43
- docs/RunData.md
44
- docs/RunDataQuery.md
45
42
  docs/RunEditInfo.md
46
43
  docs/RunResourceRequested.md
47
44
  docs/RunState.md
@@ -70,7 +67,6 @@ docs/RunnerRunTemplateParameterValue.md
70
67
  docs/RunnerSecurity.md
71
68
  docs/RunnerUpdateRequest.md
72
69
  docs/RunnerValidationStatus.md
73
- docs/SendRunDataRequest.md
74
70
  docs/Solution.md
75
71
  docs/SolutionAccessControl.md
76
72
  docs/SolutionApi.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @cosmotech/api-ts@5.0.1-SNAPSHOT
1
+ ## @cosmotech/api-ts@5.0.0-beta6
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cosmotech/api-ts@5.0.1-SNAPSHOT --save
39
+ npm install @cosmotech/api-ts@5.0.0-beta6 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -64,7 +64,7 @@ Class | Method | HTTP request | Description
64
64
  *DatasetApi* | [**listDatasetParts**](docs/DatasetApi.md#listdatasetparts) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts | Retrieve all dataset parts of a Dataset
65
65
  *DatasetApi* | [**listDatasetSecurityUsers**](docs/DatasetApi.md#listdatasetsecurityusers) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/security/users | Get the Dataset security users list
66
66
  *DatasetApi* | [**listDatasets**](docs/DatasetApi.md#listdatasets) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/datasets | Retrieve a list of defined Dataset
67
- *DatasetApi* | [**queryData**](docs/DatasetApi.md#querydata) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts/{dataset_part_id}/query | Get data of a Dataset
67
+ *DatasetApi* | [**queryData**](docs/DatasetApi.md#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).
68
68
  *DatasetApi* | [**replaceDatasetPart**](docs/DatasetApi.md#replacedatasetpart) | **PUT** /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts/{dataset_part_id} | Replace existing dataset parts of a Dataset
69
69
  *DatasetApi* | [**searchDatasetParts**](docs/DatasetApi.md#searchdatasetparts) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts/search | Search Dataset parts by tags
70
70
  *DatasetApi* | [**searchDatasets**](docs/DatasetApi.md#searchdatasets) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/datasets/search | Search Datasets by tags
@@ -92,8 +92,6 @@ Class | Method | HTTP request | Description
92
92
  *RunApi* | [**getRunLogs**](docs/RunApi.md#getrunlogs) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/logs | get the logs for the Run
93
93
  *RunApi* | [**getRunStatus**](docs/RunApi.md#getrunstatus) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/status | get the status for the Run
94
94
  *RunApi* | [**listRuns**](docs/RunApi.md#listruns) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs | get the list of Runs for the Runner
95
- *RunApi* | [**queryRunData**](docs/RunApi.md#queryrundata) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/data/query | query the run data
96
- *RunApi* | [**sendRunData**](docs/RunApi.md#sendrundata) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/data/send | Send data associated to a run
97
95
  *RunnerApi* | [**createRunner**](docs/RunnerApi.md#createrunner) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/runners | Create a new Runner
98
96
  *RunnerApi* | [**createRunnerAccessControl**](docs/RunnerApi.md#createrunneraccesscontrol) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access | Add a control access to the Runner
99
97
  *RunnerApi* | [**deleteRunner**](docs/RunnerApi.md#deleterunner) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id} | Delete a runner
@@ -184,12 +182,9 @@ Class | Method | HTTP request | Description
184
182
  - [OrganizationRole](docs/OrganizationRole.md)
185
183
  - [OrganizationSecurity](docs/OrganizationSecurity.md)
186
184
  - [OrganizationUpdateRequest](docs/OrganizationUpdateRequest.md)
187
- - [QueryResult](docs/QueryResult.md)
188
185
  - [ResourceSizeInfo](docs/ResourceSizeInfo.md)
189
186
  - [Run](docs/Run.md)
190
187
  - [RunContainer](docs/RunContainer.md)
191
- - [RunData](docs/RunData.md)
192
- - [RunDataQuery](docs/RunDataQuery.md)
193
188
  - [RunEditInfo](docs/RunEditInfo.md)
194
189
  - [RunResourceRequested](docs/RunResourceRequested.md)
195
190
  - [RunState](docs/RunState.md)
@@ -217,7 +212,6 @@ Class | Method | HTTP request | Description
217
212
  - [RunnerSecurity](docs/RunnerSecurity.md)
218
213
  - [RunnerUpdateRequest](docs/RunnerUpdateRequest.md)
219
214
  - [RunnerValidationStatus](docs/RunnerValidationStatus.md)
220
- - [SendRunDataRequest](docs/SendRunDataRequest.md)
221
215
  - [Solution](docs/Solution.md)
222
216
  - [SolutionAccessControl](docs/SolutionAccessControl.md)
223
217
  - [SolutionCreateRequest](docs/SolutionCreateRequest.md)
package/api.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.1-SNAPSHOT
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).
@@ -719,19 +719,6 @@ export interface OrganizationUpdateRequest {
719
719
  */
720
720
  'name'?: string;
721
721
  }
722
- /**
723
- * the result of a SQL Query
724
- * @export
725
- * @interface QueryResult
726
- */
727
- export interface QueryResult {
728
- /**
729
- * the list of results
730
- * @type {Array<{ [key: string]: any; }>}
731
- * @memberof QueryResult
732
- */
733
- 'result'?: Array<{ [key: string]: any; }>;
734
- }
735
722
  /**
736
723
  * define cpus and memory needs
737
724
  * @export
@@ -941,44 +928,6 @@ export interface RunContainer {
941
928
  */
942
929
  'runSizing'?: ContainerResourceSizing;
943
930
  }
944
- /**
945
- * Run Data stored
946
- * @export
947
- * @interface RunData
948
- */
949
- export interface RunData {
950
- /**
951
- * Database name
952
- * @type {string}
953
- * @memberof RunData
954
- */
955
- 'database_name'?: string;
956
- /**
957
- * Table name
958
- * @type {string}
959
- * @memberof RunData
960
- */
961
- 'table_name'?: string;
962
- /**
963
- *
964
- * @type {Array<{ [key: string]: any; }>}
965
- * @memberof RunData
966
- */
967
- 'data'?: Array<{ [key: string]: any; }>;
968
- }
969
- /**
970
- * a data result query in SQL
971
- * @export
972
- * @interface RunDataQuery
973
- */
974
- export interface RunDataQuery {
975
- /**
976
- * the query in SQL
977
- * @type {string}
978
- * @memberof RunDataQuery
979
- */
980
- 'query': string;
981
- }
982
931
  /**
983
932
  *
984
933
  * @export
@@ -2199,25 +2148,6 @@ export const RunnerValidationStatus = {
2199
2148
  export type RunnerValidationStatus = typeof RunnerValidationStatus[keyof typeof RunnerValidationStatus];
2200
2149
 
2201
2150
 
2202
- /**
2203
- * Run Data to send
2204
- * @export
2205
- * @interface SendRunDataRequest
2206
- */
2207
- export interface SendRunDataRequest {
2208
- /**
2209
- *
2210
- * @type {string}
2211
- * @memberof SendRunDataRequest
2212
- */
2213
- 'id': string;
2214
- /**
2215
- *
2216
- * @type {Array<{ [key: string]: any; }>}
2217
- * @memberof SendRunDataRequest
2218
- */
2219
- 'data': Array<{ [key: string]: any; }>;
2220
- }
2221
2151
  /**
2222
2152
  * A version of a Solution
2223
2153
  * @export
@@ -3570,20 +3500,25 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3570
3500
  },
3571
3501
  /**
3572
3502
  *
3573
- * @summary Get data of a Dataset
3503
+ * @summary Query data of a Dataset part. This endpoint is only available for dataset parts that support queries (type == DB).
3574
3504
  * @param {string} organizationId the Organization identifier
3575
3505
  * @param {string} workspaceId the Workspace identifier
3576
3506
  * @param {string} datasetId the Dataset identifier
3577
3507
  * @param {string} datasetPartId the Dataset part identifier
3578
- * @param {Array<string>} [filters] Property names that should be part of the response data. You can specify a property name like: - id - stock - quantity - ...
3579
- * @param {Array<string>} [sums] Property names to sum by
3580
- * @param {Array<string>} [counts] Property names to count by
3508
+ * @param {Array<string>} [selects] 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 \&#39;*\&#39; at the end of the column name (e.g. stock*).
3509
+ * @param {Array<string>} [sums] Column names to sum by. If you want to sum only distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
3510
+ * @param {Array<string>} [avgs] Column names to average by. If you want to apply \&#39;average\&#39; only on distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
3511
+ * @param {Array<string>} [counts] Column names to count by. If you want to count only distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
3512
+ * @param {Array<string>} [mins] Column names to min by. If you want to apply \&#39;min\&#39; only on distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
3513
+ * @param {Array<string>} [maxs] Column names to max by. If you want to apply \&#39;max\&#39; only on distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
3581
3514
  * @param {number} [offset] The query offset
3582
3515
  * @param {number} [limit] The query limit
3516
+ * @param {Array<string>} [groupBys] Column names to group by
3517
+ * @param {Array<string>} [orderBys] Column names to order by. Default order is ascending. If you want to specify \&#39;descending\&#39; order, add a \&#39;!\&#39; at the beginning of the column name (e.g. !stock).
3583
3518
  * @param {*} [options] Override http request option.
3584
3519
  * @throws {RequiredError}
3585
3520
  */
3586
- queryData: async (organizationId: string, workspaceId: string, datasetId: string, datasetPartId: string, filters?: Array<string>, sums?: Array<string>, counts?: Array<string>, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3521
+ queryData: async (organizationId: string, workspaceId: string, datasetId: string, datasetPartId: string, selects?: Array<string>, sums?: Array<string>, avgs?: Array<string>, counts?: Array<string>, mins?: Array<string>, maxs?: Array<string>, offset?: number, limit?: number, groupBys?: Array<string>, orderBys?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3587
3522
  // verify required parameter 'organizationId' is not null or undefined
3588
3523
  assertParamExists('queryData', 'organizationId', organizationId)
3589
3524
  // verify required parameter 'workspaceId' is not null or undefined
@@ -3612,18 +3547,30 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3612
3547
  // oauth required
3613
3548
  await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
3614
3549
 
3615
- if (filters) {
3616
- localVarQueryParameter['filters'] = filters;
3550
+ if (selects) {
3551
+ localVarQueryParameter['selects'] = selects;
3617
3552
  }
3618
3553
 
3619
3554
  if (sums) {
3620
3555
  localVarQueryParameter['sums'] = sums;
3621
3556
  }
3622
3557
 
3558
+ if (avgs) {
3559
+ localVarQueryParameter['avgs'] = avgs;
3560
+ }
3561
+
3623
3562
  if (counts) {
3624
3563
  localVarQueryParameter['counts'] = counts;
3625
3564
  }
3626
3565
 
3566
+ if (mins) {
3567
+ localVarQueryParameter['mins'] = mins;
3568
+ }
3569
+
3570
+ if (maxs) {
3571
+ localVarQueryParameter['maxs'] = maxs;
3572
+ }
3573
+
3627
3574
  if (offset !== undefined) {
3628
3575
  localVarQueryParameter['offset'] = offset;
3629
3576
  }
@@ -3632,6 +3579,14 @@ export const DatasetApiAxiosParamCreator = function (configuration?: Configurati
3632
3579
  localVarQueryParameter['limit'] = limit;
3633
3580
  }
3634
3581
 
3582
+ if (groupBys) {
3583
+ localVarQueryParameter['groupBys'] = groupBys;
3584
+ }
3585
+
3586
+ if (orderBys) {
3587
+ localVarQueryParameter['orderBys'] = orderBys;
3588
+ }
3589
+
3635
3590
 
3636
3591
 
3637
3592
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -4276,21 +4231,26 @@ export const DatasetApiFp = function(configuration?: Configuration) {
4276
4231
  },
4277
4232
  /**
4278
4233
  *
4279
- * @summary Get data of a Dataset
4234
+ * @summary Query data of a Dataset part. This endpoint is only available for dataset parts that support queries (type == DB).
4280
4235
  * @param {string} organizationId the Organization identifier
4281
4236
  * @param {string} workspaceId the Workspace identifier
4282
4237
  * @param {string} datasetId the Dataset identifier
4283
4238
  * @param {string} datasetPartId the Dataset part identifier
4284
- * @param {Array<string>} [filters] Property names that should be part of the response data. You can specify a property name like: - id - stock - quantity - ...
4285
- * @param {Array<string>} [sums] Property names to sum by
4286
- * @param {Array<string>} [counts] Property names to count by
4239
+ * @param {Array<string>} [selects] 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 \&#39;*\&#39; at the end of the column name (e.g. stock*).
4240
+ * @param {Array<string>} [sums] Column names to sum by. If you want to sum only distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
4241
+ * @param {Array<string>} [avgs] Column names to average by. If you want to apply \&#39;average\&#39; only on distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
4242
+ * @param {Array<string>} [counts] Column names to count by. If you want to count only distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
4243
+ * @param {Array<string>} [mins] Column names to min by. If you want to apply \&#39;min\&#39; only on distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
4244
+ * @param {Array<string>} [maxs] Column names to max by. If you want to apply \&#39;max\&#39; only on distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
4287
4245
  * @param {number} [offset] The query offset
4288
4246
  * @param {number} [limit] The query limit
4247
+ * @param {Array<string>} [groupBys] Column names to group by
4248
+ * @param {Array<string>} [orderBys] Column names to order by. Default order is ascending. If you want to specify \&#39;descending\&#39; order, add a \&#39;!\&#39; at the beginning of the column name (e.g. !stock).
4289
4249
  * @param {*} [options] Override http request option.
4290
4250
  * @throws {RequiredError}
4291
4251
  */
4292
- async queryData(organizationId: string, workspaceId: string, datasetId: string, datasetPartId: string, filters?: Array<string>, sums?: Array<string>, counts?: Array<string>, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<object>>> {
4293
- const localVarAxiosArgs = await localVarAxiosParamCreator.queryData(organizationId, workspaceId, datasetId, datasetPartId, filters, sums, counts, offset, limit, options);
4252
+ async queryData(organizationId: string, workspaceId: string, datasetId: string, datasetPartId: string, selects?: Array<string>, sums?: Array<string>, avgs?: Array<string>, counts?: Array<string>, mins?: Array<string>, maxs?: Array<string>, offset?: number, limit?: number, groupBys?: Array<string>, orderBys?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
4253
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryData(organizationId, workspaceId, datasetId, datasetPartId, selects, sums, avgs, counts, mins, maxs, offset, limit, groupBys, orderBys, options);
4294
4254
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4295
4255
  const localVarOperationServerBasePath = operationServerMap['DatasetApi.queryData']?.[localVarOperationServerIndex]?.url;
4296
4256
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4595,21 +4555,26 @@ export const DatasetApiFactory = function (configuration?: Configuration, basePa
4595
4555
  },
4596
4556
  /**
4597
4557
  *
4598
- * @summary Get data of a Dataset
4558
+ * @summary Query data of a Dataset part. This endpoint is only available for dataset parts that support queries (type == DB).
4599
4559
  * @param {string} organizationId the Organization identifier
4600
4560
  * @param {string} workspaceId the Workspace identifier
4601
4561
  * @param {string} datasetId the Dataset identifier
4602
4562
  * @param {string} datasetPartId the Dataset part identifier
4603
- * @param {Array<string>} [filters] Property names that should be part of the response data. You can specify a property name like: - id - stock - quantity - ...
4604
- * @param {Array<string>} [sums] Property names to sum by
4605
- * @param {Array<string>} [counts] Property names to count by
4563
+ * @param {Array<string>} [selects] 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 \&#39;*\&#39; at the end of the column name (e.g. stock*).
4564
+ * @param {Array<string>} [sums] Column names to sum by. If you want to sum only distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
4565
+ * @param {Array<string>} [avgs] Column names to average by. If you want to apply \&#39;average\&#39; only on distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
4566
+ * @param {Array<string>} [counts] Column names to count by. If you want to count only distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
4567
+ * @param {Array<string>} [mins] Column names to min by. If you want to apply \&#39;min\&#39; only on distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
4568
+ * @param {Array<string>} [maxs] Column names to max by. If you want to apply \&#39;max\&#39; only on distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
4606
4569
  * @param {number} [offset] The query offset
4607
4570
  * @param {number} [limit] The query limit
4571
+ * @param {Array<string>} [groupBys] Column names to group by
4572
+ * @param {Array<string>} [orderBys] Column names to order by. Default order is ascending. If you want to specify \&#39;descending\&#39; order, add a \&#39;!\&#39; at the beginning of the column name (e.g. !stock).
4608
4573
  * @param {*} [options] Override http request option.
4609
4574
  * @throws {RequiredError}
4610
4575
  */
4611
- queryData(organizationId: string, workspaceId: string, datasetId: string, datasetPartId: string, filters?: Array<string>, sums?: Array<string>, counts?: Array<string>, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<object>> {
4612
- return localVarFp.queryData(organizationId, workspaceId, datasetId, datasetPartId, filters, sums, counts, offset, limit, options).then((request) => request(axios, basePath));
4576
+ queryData(organizationId: string, workspaceId: string, datasetId: string, datasetPartId: string, selects?: Array<string>, sums?: Array<string>, avgs?: Array<string>, counts?: Array<string>, mins?: Array<string>, maxs?: Array<string>, offset?: number, limit?: number, groupBys?: Array<string>, orderBys?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<File> {
4577
+ return localVarFp.queryData(organizationId, workspaceId, datasetId, datasetPartId, selects, sums, avgs, counts, mins, maxs, offset, limit, groupBys, orderBys, options).then((request) => request(axios, basePath));
4613
4578
  },
4614
4579
  /**
4615
4580
  *
@@ -4916,22 +4881,27 @@ export class DatasetApi extends BaseAPI {
4916
4881
 
4917
4882
  /**
4918
4883
  *
4919
- * @summary Get data of a Dataset
4884
+ * @summary Query data of a Dataset part. This endpoint is only available for dataset parts that support queries (type == DB).
4920
4885
  * @param {string} organizationId the Organization identifier
4921
4886
  * @param {string} workspaceId the Workspace identifier
4922
4887
  * @param {string} datasetId the Dataset identifier
4923
4888
  * @param {string} datasetPartId the Dataset part identifier
4924
- * @param {Array<string>} [filters] Property names that should be part of the response data. You can specify a property name like: - id - stock - quantity - ...
4925
- * @param {Array<string>} [sums] Property names to sum by
4926
- * @param {Array<string>} [counts] Property names to count by
4889
+ * @param {Array<string>} [selects] 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 \&#39;*\&#39; at the end of the column name (e.g. stock*).
4890
+ * @param {Array<string>} [sums] Column names to sum by. If you want to sum only distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
4891
+ * @param {Array<string>} [avgs] Column names to average by. If you want to apply \&#39;average\&#39; only on distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
4892
+ * @param {Array<string>} [counts] Column names to count by. If you want to count only distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
4893
+ * @param {Array<string>} [mins] Column names to min by. If you want to apply \&#39;min\&#39; only on distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
4894
+ * @param {Array<string>} [maxs] Column names to max by. If you want to apply \&#39;max\&#39; only on distinct columns, add a \&#39;*\&#39; at the end of the column name (e.g. stock*).
4927
4895
  * @param {number} [offset] The query offset
4928
4896
  * @param {number} [limit] The query limit
4897
+ * @param {Array<string>} [groupBys] Column names to group by
4898
+ * @param {Array<string>} [orderBys] Column names to order by. Default order is ascending. If you want to specify \&#39;descending\&#39; order, add a \&#39;!\&#39; at the beginning of the column name (e.g. !stock).
4929
4899
  * @param {*} [options] Override http request option.
4930
4900
  * @throws {RequiredError}
4931
4901
  * @memberof DatasetApi
4932
4902
  */
4933
- public queryData(organizationId: string, workspaceId: string, datasetId: string, datasetPartId: string, filters?: Array<string>, sums?: Array<string>, counts?: Array<string>, offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
4934
- return DatasetApiFp(this.configuration).queryData(organizationId, workspaceId, datasetId, datasetPartId, filters, sums, counts, offset, limit, options).then((request) => request(this.axios, this.basePath));
4903
+ public queryData(organizationId: string, workspaceId: string, datasetId: string, datasetPartId: string, selects?: Array<string>, sums?: Array<string>, avgs?: Array<string>, counts?: Array<string>, mins?: Array<string>, maxs?: Array<string>, offset?: number, limit?: number, groupBys?: Array<string>, orderBys?: Array<string>, options?: RawAxiosRequestConfig) {
4904
+ return DatasetApiFp(this.configuration).queryData(organizationId, workspaceId, datasetId, datasetPartId, selects, sums, avgs, counts, mins, maxs, offset, limit, groupBys, orderBys, options).then((request) => request(this.axios, this.basePath));
4935
4905
  }
4936
4906
 
4937
4907
  /**
@@ -6541,118 +6511,6 @@ export const RunApiAxiosParamCreator = function (configuration?: Configuration)
6541
6511
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6542
6512
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6543
6513
 
6544
- return {
6545
- url: toPathString(localVarUrlObj),
6546
- options: localVarRequestOptions,
6547
- };
6548
- },
6549
- /**
6550
- *
6551
- * @summary query the run data
6552
- * @param {string} organizationId the Organization identifier
6553
- * @param {string} workspaceId the Workspace identifier
6554
- * @param {string} runnerId the Runner identifier
6555
- * @param {string} runId the Run identifier
6556
- * @param {RunDataQuery} runDataQuery the query to run
6557
- * @param {*} [options] Override http request option.
6558
- * @throws {RequiredError}
6559
- */
6560
- queryRunData: async (organizationId: string, workspaceId: string, runnerId: string, runId: string, runDataQuery: RunDataQuery, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6561
- // verify required parameter 'organizationId' is not null or undefined
6562
- assertParamExists('queryRunData', 'organizationId', organizationId)
6563
- // verify required parameter 'workspaceId' is not null or undefined
6564
- assertParamExists('queryRunData', 'workspaceId', workspaceId)
6565
- // verify required parameter 'runnerId' is not null or undefined
6566
- assertParamExists('queryRunData', 'runnerId', runnerId)
6567
- // verify required parameter 'runId' is not null or undefined
6568
- assertParamExists('queryRunData', 'runId', runId)
6569
- // verify required parameter 'runDataQuery' is not null or undefined
6570
- assertParamExists('queryRunData', 'runDataQuery', runDataQuery)
6571
- const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/data/query`
6572
- .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
6573
- .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
6574
- .replace(`{${"runner_id"}}`, encodeURIComponent(String(runnerId)))
6575
- .replace(`{${"run_id"}}`, encodeURIComponent(String(runId)));
6576
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6577
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6578
- let baseOptions;
6579
- if (configuration) {
6580
- baseOptions = configuration.baseOptions;
6581
- }
6582
-
6583
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6584
- const localVarHeaderParameter = {} as any;
6585
- const localVarQueryParameter = {} as any;
6586
-
6587
- // authentication oAuth2AuthCode required
6588
- // oauth required
6589
- await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
6590
-
6591
-
6592
-
6593
- localVarHeaderParameter['Content-Type'] = 'application/json';
6594
-
6595
- setSearchParams(localVarUrlObj, localVarQueryParameter);
6596
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6597
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6598
- localVarRequestOptions.data = serializeDataIfNeeded(runDataQuery, localVarRequestOptions, configuration)
6599
-
6600
- return {
6601
- url: toPathString(localVarUrlObj),
6602
- options: localVarRequestOptions,
6603
- };
6604
- },
6605
- /**
6606
- *
6607
- * @summary Send data associated to a run
6608
- * @param {string} organizationId the Organization identifier
6609
- * @param {string} workspaceId the Workspace identifier
6610
- * @param {string} runnerId the Runner identifier
6611
- * @param {string} runId the Run identifier
6612
- * @param {SendRunDataRequest} sendRunDataRequest Custom data to register
6613
- * @param {*} [options] Override http request option.
6614
- * @throws {RequiredError}
6615
- */
6616
- sendRunData: async (organizationId: string, workspaceId: string, runnerId: string, runId: string, sendRunDataRequest: SendRunDataRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6617
- // verify required parameter 'organizationId' is not null or undefined
6618
- assertParamExists('sendRunData', 'organizationId', organizationId)
6619
- // verify required parameter 'workspaceId' is not null or undefined
6620
- assertParamExists('sendRunData', 'workspaceId', workspaceId)
6621
- // verify required parameter 'runnerId' is not null or undefined
6622
- assertParamExists('sendRunData', 'runnerId', runnerId)
6623
- // verify required parameter 'runId' is not null or undefined
6624
- assertParamExists('sendRunData', 'runId', runId)
6625
- // verify required parameter 'sendRunDataRequest' is not null or undefined
6626
- assertParamExists('sendRunData', 'sendRunDataRequest', sendRunDataRequest)
6627
- const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/data/send`
6628
- .replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
6629
- .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
6630
- .replace(`{${"runner_id"}}`, encodeURIComponent(String(runnerId)))
6631
- .replace(`{${"run_id"}}`, encodeURIComponent(String(runId)));
6632
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6633
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6634
- let baseOptions;
6635
- if (configuration) {
6636
- baseOptions = configuration.baseOptions;
6637
- }
6638
-
6639
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6640
- const localVarHeaderParameter = {} as any;
6641
- const localVarQueryParameter = {} as any;
6642
-
6643
- // authentication oAuth2AuthCode required
6644
- // oauth required
6645
- await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
6646
-
6647
-
6648
-
6649
- localVarHeaderParameter['Content-Type'] = 'application/json';
6650
-
6651
- setSearchParams(localVarUrlObj, localVarQueryParameter);
6652
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6653
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6654
- localVarRequestOptions.data = serializeDataIfNeeded(sendRunDataRequest, localVarRequestOptions, configuration)
6655
-
6656
6514
  return {
6657
6515
  url: toPathString(localVarUrlObj),
6658
6516
  options: localVarRequestOptions,
@@ -6749,40 +6607,6 @@ export const RunApiFp = function(configuration?: Configuration) {
6749
6607
  const localVarOperationServerBasePath = operationServerMap['RunApi.listRuns']?.[localVarOperationServerIndex]?.url;
6750
6608
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6751
6609
  },
6752
- /**
6753
- *
6754
- * @summary query the run data
6755
- * @param {string} organizationId the Organization identifier
6756
- * @param {string} workspaceId the Workspace identifier
6757
- * @param {string} runnerId the Runner identifier
6758
- * @param {string} runId the Run identifier
6759
- * @param {RunDataQuery} runDataQuery the query to run
6760
- * @param {*} [options] Override http request option.
6761
- * @throws {RequiredError}
6762
- */
6763
- async queryRunData(organizationId: string, workspaceId: string, runnerId: string, runId: string, runDataQuery: RunDataQuery, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryResult>> {
6764
- const localVarAxiosArgs = await localVarAxiosParamCreator.queryRunData(organizationId, workspaceId, runnerId, runId, runDataQuery, options);
6765
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6766
- const localVarOperationServerBasePath = operationServerMap['RunApi.queryRunData']?.[localVarOperationServerIndex]?.url;
6767
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6768
- },
6769
- /**
6770
- *
6771
- * @summary Send data associated to a run
6772
- * @param {string} organizationId the Organization identifier
6773
- * @param {string} workspaceId the Workspace identifier
6774
- * @param {string} runnerId the Runner identifier
6775
- * @param {string} runId the Run identifier
6776
- * @param {SendRunDataRequest} sendRunDataRequest Custom data to register
6777
- * @param {*} [options] Override http request option.
6778
- * @throws {RequiredError}
6779
- */
6780
- async sendRunData(organizationId: string, workspaceId: string, runnerId: string, runId: string, sendRunDataRequest: SendRunDataRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunData>> {
6781
- const localVarAxiosArgs = await localVarAxiosParamCreator.sendRunData(organizationId, workspaceId, runnerId, runId, sendRunDataRequest, options);
6782
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6783
- const localVarOperationServerBasePath = operationServerMap['RunApi.sendRunData']?.[localVarOperationServerIndex]?.url;
6784
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6785
- },
6786
6610
  }
6787
6611
  };
6788
6612
 
@@ -6859,34 +6683,6 @@ export const RunApiFactory = function (configuration?: Configuration, basePath?:
6859
6683
  listRuns(organizationId: string, workspaceId: string, runnerId: string, page?: number, size?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<Run>> {
6860
6684
  return localVarFp.listRuns(organizationId, workspaceId, runnerId, page, size, options).then((request) => request(axios, basePath));
6861
6685
  },
6862
- /**
6863
- *
6864
- * @summary query the run data
6865
- * @param {string} organizationId the Organization identifier
6866
- * @param {string} workspaceId the Workspace identifier
6867
- * @param {string} runnerId the Runner identifier
6868
- * @param {string} runId the Run identifier
6869
- * @param {RunDataQuery} runDataQuery the query to run
6870
- * @param {*} [options] Override http request option.
6871
- * @throws {RequiredError}
6872
- */
6873
- queryRunData(organizationId: string, workspaceId: string, runnerId: string, runId: string, runDataQuery: RunDataQuery, options?: RawAxiosRequestConfig): AxiosPromise<QueryResult> {
6874
- return localVarFp.queryRunData(organizationId, workspaceId, runnerId, runId, runDataQuery, options).then((request) => request(axios, basePath));
6875
- },
6876
- /**
6877
- *
6878
- * @summary Send data associated to a run
6879
- * @param {string} organizationId the Organization identifier
6880
- * @param {string} workspaceId the Workspace identifier
6881
- * @param {string} runnerId the Runner identifier
6882
- * @param {string} runId the Run identifier
6883
- * @param {SendRunDataRequest} sendRunDataRequest Custom data to register
6884
- * @param {*} [options] Override http request option.
6885
- * @throws {RequiredError}
6886
- */
6887
- sendRunData(organizationId: string, workspaceId: string, runnerId: string, runId: string, sendRunDataRequest: SendRunDataRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunData> {
6888
- return localVarFp.sendRunData(organizationId, workspaceId, runnerId, runId, sendRunDataRequest, options).then((request) => request(axios, basePath));
6889
- },
6890
6686
  };
6891
6687
  };
6892
6688
 
@@ -6972,38 +6768,6 @@ export class RunApi extends BaseAPI {
6972
6768
  public listRuns(organizationId: string, workspaceId: string, runnerId: string, page?: number, size?: number, options?: RawAxiosRequestConfig) {
6973
6769
  return RunApiFp(this.configuration).listRuns(organizationId, workspaceId, runnerId, page, size, options).then((request) => request(this.axios, this.basePath));
6974
6770
  }
6975
-
6976
- /**
6977
- *
6978
- * @summary query the run data
6979
- * @param {string} organizationId the Organization identifier
6980
- * @param {string} workspaceId the Workspace identifier
6981
- * @param {string} runnerId the Runner identifier
6982
- * @param {string} runId the Run identifier
6983
- * @param {RunDataQuery} runDataQuery the query to run
6984
- * @param {*} [options] Override http request option.
6985
- * @throws {RequiredError}
6986
- * @memberof RunApi
6987
- */
6988
- public queryRunData(organizationId: string, workspaceId: string, runnerId: string, runId: string, runDataQuery: RunDataQuery, options?: RawAxiosRequestConfig) {
6989
- return RunApiFp(this.configuration).queryRunData(organizationId, workspaceId, runnerId, runId, runDataQuery, options).then((request) => request(this.axios, this.basePath));
6990
- }
6991
-
6992
- /**
6993
- *
6994
- * @summary Send data associated to a run
6995
- * @param {string} organizationId the Organization identifier
6996
- * @param {string} workspaceId the Workspace identifier
6997
- * @param {string} runnerId the Runner identifier
6998
- * @param {string} runId the Run identifier
6999
- * @param {SendRunDataRequest} sendRunDataRequest Custom data to register
7000
- * @param {*} [options] Override http request option.
7001
- * @throws {RequiredError}
7002
- * @memberof RunApi
7003
- */
7004
- public sendRunData(organizationId: string, workspaceId: string, runnerId: string, runId: string, sendRunDataRequest: SendRunDataRequest, options?: RawAxiosRequestConfig) {
7005
- return RunApiFp(this.configuration).sendRunData(organizationId, workspaceId, runnerId, runId, sendRunDataRequest, options).then((request) => request(this.axios, this.basePath));
7006
- }
7007
6771
  }
7008
6772
 
7009
6773
 
package/base.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.1-SNAPSHOT
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).