@cosmotech/api-ts 2.0.6 → 2.0.13-dev
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 +5 -2
- package/README.md +2 -2
- package/api.ts +234 -6
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +192 -5
- package/dist/api.js +98 -6
- 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/index.ts +1 -1
- package/package.json +1 -1
- package/cosmotech-api-typescript-client.iml +0 -9
- package/package-lock.json +0 -93
|
@@ -15,6 +15,9 @@ jobs:
|
|
|
15
15
|
scope: '@cosmotech'
|
|
16
16
|
- run: yarn
|
|
17
17
|
- run: git config --global user.email "vincent.carluer@cosmotech.com" && git config --global user.name "Vincent Carluer"
|
|
18
|
-
- run:
|
|
18
|
+
- run: npm version ${{ github.event.release.tag_name }} --allow-same-version
|
|
19
|
+
- run: npm publish
|
|
19
20
|
env:
|
|
20
|
-
NPM_AUTH_TOKEN: ${{ secrets.
|
|
21
|
+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
22
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
23
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @cosmotech/api-ts@2.0.
|
|
1
|
+
## @cosmotech/api-ts@2.0.13-dev
|
|
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@2.0.
|
|
39
|
+
npm install @cosmotech/api-ts@2.0.13-dev --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cosmo Tech Plaform API
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
8
8
|
* Contact: platform@cosmotech.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -201,6 +201,44 @@ export interface ConnectorParameterGroup {
|
|
|
201
201
|
*/
|
|
202
202
|
'parameters': Array<ConnectorParameter>;
|
|
203
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* define cpus and memory needs
|
|
206
|
+
* @export
|
|
207
|
+
* @interface ContainerResourceSizeInfo
|
|
208
|
+
*/
|
|
209
|
+
export interface ContainerResourceSizeInfo {
|
|
210
|
+
/**
|
|
211
|
+
* define cpu needs
|
|
212
|
+
* @type {string}
|
|
213
|
+
* @memberof ContainerResourceSizeInfo
|
|
214
|
+
*/
|
|
215
|
+
'cpu': string;
|
|
216
|
+
/**
|
|
217
|
+
* define memory needs
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @memberof ContainerResourceSizeInfo
|
|
220
|
+
*/
|
|
221
|
+
'memory': string;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* a description object for resource requests and limits (default same configuration as basic sizing)
|
|
225
|
+
* @export
|
|
226
|
+
* @interface ContainerResourceSizing
|
|
227
|
+
*/
|
|
228
|
+
export interface ContainerResourceSizing {
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* @type {ContainerResourceSizeInfo}
|
|
232
|
+
* @memberof ContainerResourceSizing
|
|
233
|
+
*/
|
|
234
|
+
'requests': ContainerResourceSizeInfo;
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @type {ContainerResourceSizeInfo}
|
|
238
|
+
* @memberof ContainerResourceSizing
|
|
239
|
+
*/
|
|
240
|
+
'limits': ContainerResourceSizeInfo;
|
|
241
|
+
}
|
|
204
242
|
/**
|
|
205
243
|
* a Dataset
|
|
206
244
|
* @export
|
|
@@ -356,6 +394,31 @@ export interface DatasetSearch {
|
|
|
356
394
|
*/
|
|
357
395
|
'datasetTags': Array<string>;
|
|
358
396
|
}
|
|
397
|
+
/**
|
|
398
|
+
* Configuration of scenario runs deletion automatic mecanism
|
|
399
|
+
* @export
|
|
400
|
+
* @interface DeleteHistoricalData
|
|
401
|
+
*/
|
|
402
|
+
export interface DeleteHistoricalData {
|
|
403
|
+
/**
|
|
404
|
+
* Activate or Deactivate historical data deletion
|
|
405
|
+
* @type {boolean}
|
|
406
|
+
* @memberof DeleteHistoricalData
|
|
407
|
+
*/
|
|
408
|
+
'enable': boolean;
|
|
409
|
+
/**
|
|
410
|
+
* define the polling frequency of scenario run status (in millis)
|
|
411
|
+
* @type {number}
|
|
412
|
+
* @memberof DeleteHistoricalData
|
|
413
|
+
*/
|
|
414
|
+
'pollFrequency'?: number;
|
|
415
|
+
/**
|
|
416
|
+
* define the polling timeout
|
|
417
|
+
* @type {number}
|
|
418
|
+
* @memberof DeleteHistoricalData
|
|
419
|
+
*/
|
|
420
|
+
'timeOut'?: number;
|
|
421
|
+
}
|
|
359
422
|
/**
|
|
360
423
|
* an Organization
|
|
361
424
|
* @export
|
|
@@ -506,6 +569,25 @@ export interface OrganizationServices {
|
|
|
506
569
|
*/
|
|
507
570
|
'solutionsContainerRegistry'?: OrganizationService;
|
|
508
571
|
}
|
|
572
|
+
/**
|
|
573
|
+
* define cpus and memory needs
|
|
574
|
+
* @export
|
|
575
|
+
* @interface ResourceSizeInfo
|
|
576
|
+
*/
|
|
577
|
+
export interface ResourceSizeInfo {
|
|
578
|
+
/**
|
|
579
|
+
* define cpu needs
|
|
580
|
+
* @type {string}
|
|
581
|
+
* @memberof ResourceSizeInfo
|
|
582
|
+
*/
|
|
583
|
+
'cpu': string;
|
|
584
|
+
/**
|
|
585
|
+
* define memory needs
|
|
586
|
+
* @type {string}
|
|
587
|
+
* @memberof ResourceSizeInfo
|
|
588
|
+
*/
|
|
589
|
+
'memory': string;
|
|
590
|
+
}
|
|
509
591
|
/**
|
|
510
592
|
* a Solution Run Template
|
|
511
593
|
* @export
|
|
@@ -548,6 +630,12 @@ export interface RunTemplate {
|
|
|
548
630
|
* @memberof RunTemplate
|
|
549
631
|
*/
|
|
550
632
|
'computeSize'?: string;
|
|
633
|
+
/**
|
|
634
|
+
*
|
|
635
|
+
* @type {RunTemplateResourceSizing}
|
|
636
|
+
* @memberof RunTemplate
|
|
637
|
+
*/
|
|
638
|
+
'runSizing'?: RunTemplateResourceSizing;
|
|
551
639
|
/**
|
|
552
640
|
* set to true if the run template does not want to check data ingestion state (no probes or not control plane)
|
|
553
641
|
* @type {boolean}
|
|
@@ -692,6 +780,12 @@ export interface RunTemplate {
|
|
|
692
780
|
* @memberof RunTemplate
|
|
693
781
|
*/
|
|
694
782
|
'executionTimeout'?: number;
|
|
783
|
+
/**
|
|
784
|
+
*
|
|
785
|
+
* @type {DeleteHistoricalData}
|
|
786
|
+
* @memberof RunTemplate
|
|
787
|
+
*/
|
|
788
|
+
'deleteHistoricalData'?: DeleteHistoricalData;
|
|
695
789
|
}
|
|
696
790
|
/**
|
|
697
791
|
* the Run Template step handler identifier
|
|
@@ -834,6 +928,25 @@ export interface RunTemplateParameterValue {
|
|
|
834
928
|
*/
|
|
835
929
|
'value': string;
|
|
836
930
|
}
|
|
931
|
+
/**
|
|
932
|
+
* a description object for resource requests and limits (default same configuration as basic sizing)
|
|
933
|
+
* @export
|
|
934
|
+
* @interface RunTemplateResourceSizing
|
|
935
|
+
*/
|
|
936
|
+
export interface RunTemplateResourceSizing {
|
|
937
|
+
/**
|
|
938
|
+
*
|
|
939
|
+
* @type {ResourceSizeInfo}
|
|
940
|
+
* @memberof RunTemplateResourceSizing
|
|
941
|
+
*/
|
|
942
|
+
'requests': ResourceSizeInfo;
|
|
943
|
+
/**
|
|
944
|
+
*
|
|
945
|
+
* @type {ResourceSizeInfo}
|
|
946
|
+
* @memberof RunTemplateResourceSizing
|
|
947
|
+
*/
|
|
948
|
+
'limits': ResourceSizeInfo;
|
|
949
|
+
}
|
|
837
950
|
/**
|
|
838
951
|
* the source local, cloud or git repository
|
|
839
952
|
* @export
|
|
@@ -958,6 +1071,12 @@ export interface Scenario {
|
|
|
958
1071
|
* @memberof Scenario
|
|
959
1072
|
*/
|
|
960
1073
|
'datasetList'?: Array<string>;
|
|
1074
|
+
/**
|
|
1075
|
+
*
|
|
1076
|
+
* @type {ScenarioResourceSizing}
|
|
1077
|
+
* @memberof Scenario
|
|
1078
|
+
*/
|
|
1079
|
+
'runSizing'?: ScenarioResourceSizing;
|
|
961
1080
|
/**
|
|
962
1081
|
* the list of Solution Run Template parameters values
|
|
963
1082
|
* @type {Array<ScenarioRunTemplateParameterValue>}
|
|
@@ -1151,6 +1270,25 @@ export interface ScenarioLastRun {
|
|
|
1151
1270
|
*/
|
|
1152
1271
|
'workflowName'?: string;
|
|
1153
1272
|
}
|
|
1273
|
+
/**
|
|
1274
|
+
* a description object for resource requests and limits (default same configuration as basic sizing)
|
|
1275
|
+
* @export
|
|
1276
|
+
* @interface ScenarioResourceSizing
|
|
1277
|
+
*/
|
|
1278
|
+
export interface ScenarioResourceSizing {
|
|
1279
|
+
/**
|
|
1280
|
+
*
|
|
1281
|
+
* @type {ResourceSizeInfo}
|
|
1282
|
+
* @memberof ScenarioResourceSizing
|
|
1283
|
+
*/
|
|
1284
|
+
'requests': ResourceSizeInfo;
|
|
1285
|
+
/**
|
|
1286
|
+
*
|
|
1287
|
+
* @type {ResourceSizeInfo}
|
|
1288
|
+
* @memberof ScenarioResourceSizing
|
|
1289
|
+
*/
|
|
1290
|
+
'limits': ResourceSizeInfo;
|
|
1291
|
+
}
|
|
1154
1292
|
/**
|
|
1155
1293
|
* the Scenario Role
|
|
1156
1294
|
* @export
|
|
@@ -1363,6 +1501,18 @@ export interface ScenarioRunContainer {
|
|
|
1363
1501
|
* @memberof ScenarioRunContainer
|
|
1364
1502
|
*/
|
|
1365
1503
|
'solutionContainer'?: boolean;
|
|
1504
|
+
/**
|
|
1505
|
+
* the node label request
|
|
1506
|
+
* @type {string}
|
|
1507
|
+
* @memberof ScenarioRunContainer
|
|
1508
|
+
*/
|
|
1509
|
+
'nodeLabel'?: string;
|
|
1510
|
+
/**
|
|
1511
|
+
*
|
|
1512
|
+
* @type {ContainerResourceSizing}
|
|
1513
|
+
* @memberof ScenarioRunContainer
|
|
1514
|
+
*/
|
|
1515
|
+
'runSizing'?: ContainerResourceSizing;
|
|
1366
1516
|
/**
|
|
1367
1517
|
* the list of artifacts
|
|
1368
1518
|
* @type {Array<ScenarioRunContainerArtifact>}
|
|
@@ -6666,7 +6816,7 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
|
|
|
6666
6816
|
return {
|
|
6667
6817
|
/**
|
|
6668
6818
|
*
|
|
6669
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
6819
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
6670
6820
|
* @param {string} organizationId the Organization identifier
|
|
6671
6821
|
* @param {*} [options] Override http request option.
|
|
6672
6822
|
* @throws {RequiredError}
|
|
@@ -6674,7 +6824,7 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
|
|
|
6674
6824
|
deleteHistoricalDataOrganization: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6675
6825
|
// verify required parameter 'organizationId' is not null or undefined
|
|
6676
6826
|
assertParamExists('deleteHistoricalDataOrganization', 'organizationId', organizationId)
|
|
6677
|
-
const localVarPath = `/organizations/{organization_id}/scenarioruns/
|
|
6827
|
+
const localVarPath = `/organizations/{organization_id}/scenarioruns/historicaldata`
|
|
6678
6828
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
6679
6829
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6680
6830
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6693,6 +6843,48 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
|
|
|
6693
6843
|
|
|
6694
6844
|
|
|
6695
6845
|
|
|
6846
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6847
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6848
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6849
|
+
|
|
6850
|
+
return {
|
|
6851
|
+
url: toPathString(localVarUrlObj),
|
|
6852
|
+
options: localVarRequestOptions,
|
|
6853
|
+
};
|
|
6854
|
+
},
|
|
6855
|
+
/**
|
|
6856
|
+
*
|
|
6857
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
6858
|
+
* @param {string} organizationId the Organization identifier
|
|
6859
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6860
|
+
* @param {*} [options] Override http request option.
|
|
6861
|
+
* @throws {RequiredError}
|
|
6862
|
+
*/
|
|
6863
|
+
deleteHistoricalDataWorkspace: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6864
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6865
|
+
assertParamExists('deleteHistoricalDataWorkspace', 'organizationId', organizationId)
|
|
6866
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6867
|
+
assertParamExists('deleteHistoricalDataWorkspace', 'workspaceId', workspaceId)
|
|
6868
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarioruns/historicaldata`
|
|
6869
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
6870
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
6871
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6872
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6873
|
+
let baseOptions;
|
|
6874
|
+
if (configuration) {
|
|
6875
|
+
baseOptions = configuration.baseOptions;
|
|
6876
|
+
}
|
|
6877
|
+
|
|
6878
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
6879
|
+
const localVarHeaderParameter = {} as any;
|
|
6880
|
+
const localVarQueryParameter = {} as any;
|
|
6881
|
+
|
|
6882
|
+
// authentication oAuth2AuthCode required
|
|
6883
|
+
// oauth required
|
|
6884
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
6885
|
+
|
|
6886
|
+
|
|
6887
|
+
|
|
6696
6888
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6697
6889
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6698
6890
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7234,7 +7426,7 @@ export const ScenariorunApiFp = function(configuration?: Configuration) {
|
|
|
7234
7426
|
return {
|
|
7235
7427
|
/**
|
|
7236
7428
|
*
|
|
7237
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
7429
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
7238
7430
|
* @param {string} organizationId the Organization identifier
|
|
7239
7431
|
* @param {*} [options] Override http request option.
|
|
7240
7432
|
* @throws {RequiredError}
|
|
@@ -7243,6 +7435,18 @@ export const ScenariorunApiFp = function(configuration?: Configuration) {
|
|
|
7243
7435
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalDataOrganization(organizationId, options);
|
|
7244
7436
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7245
7437
|
},
|
|
7438
|
+
/**
|
|
7439
|
+
*
|
|
7440
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
7441
|
+
* @param {string} organizationId the Organization identifier
|
|
7442
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7443
|
+
* @param {*} [options] Override http request option.
|
|
7444
|
+
* @throws {RequiredError}
|
|
7445
|
+
*/
|
|
7446
|
+
async deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
7447
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalDataWorkspace(organizationId, workspaceId, options);
|
|
7448
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7449
|
+
},
|
|
7246
7450
|
/**
|
|
7247
7451
|
*
|
|
7248
7452
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
@@ -7402,7 +7606,7 @@ export const ScenariorunApiFactory = function (configuration?: Configuration, ba
|
|
|
7402
7606
|
return {
|
|
7403
7607
|
/**
|
|
7404
7608
|
*
|
|
7405
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
7609
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
7406
7610
|
* @param {string} organizationId the Organization identifier
|
|
7407
7611
|
* @param {*} [options] Override http request option.
|
|
7408
7612
|
* @throws {RequiredError}
|
|
@@ -7410,6 +7614,17 @@ export const ScenariorunApiFactory = function (configuration?: Configuration, ba
|
|
|
7410
7614
|
deleteHistoricalDataOrganization(organizationId: string, options?: any): AxiosPromise<void> {
|
|
7411
7615
|
return localVarFp.deleteHistoricalDataOrganization(organizationId, options).then((request) => request(axios, basePath));
|
|
7412
7616
|
},
|
|
7617
|
+
/**
|
|
7618
|
+
*
|
|
7619
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
7620
|
+
* @param {string} organizationId the Organization identifier
|
|
7621
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7622
|
+
* @param {*} [options] Override http request option.
|
|
7623
|
+
* @throws {RequiredError}
|
|
7624
|
+
*/
|
|
7625
|
+
deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, options?: any): AxiosPromise<void> {
|
|
7626
|
+
return localVarFp.deleteHistoricalDataWorkspace(organizationId, workspaceId, options).then((request) => request(axios, basePath));
|
|
7627
|
+
},
|
|
7413
7628
|
/**
|
|
7414
7629
|
*
|
|
7415
7630
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
@@ -7557,7 +7772,7 @@ export const ScenariorunApiFactory = function (configuration?: Configuration, ba
|
|
|
7557
7772
|
export class ScenariorunApi extends BaseAPI {
|
|
7558
7773
|
/**
|
|
7559
7774
|
*
|
|
7560
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
7775
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
7561
7776
|
* @param {string} organizationId the Organization identifier
|
|
7562
7777
|
* @param {*} [options] Override http request option.
|
|
7563
7778
|
* @throws {RequiredError}
|
|
@@ -7567,6 +7782,19 @@ export class ScenariorunApi extends BaseAPI {
|
|
|
7567
7782
|
return ScenariorunApiFp(this.configuration).deleteHistoricalDataOrganization(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
7568
7783
|
}
|
|
7569
7784
|
|
|
7785
|
+
/**
|
|
7786
|
+
*
|
|
7787
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
7788
|
+
* @param {string} organizationId the Organization identifier
|
|
7789
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7790
|
+
* @param {*} [options] Override http request option.
|
|
7791
|
+
* @throws {RequiredError}
|
|
7792
|
+
* @memberof ScenariorunApi
|
|
7793
|
+
*/
|
|
7794
|
+
public deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, options?: AxiosRequestConfig) {
|
|
7795
|
+
return ScenariorunApiFp(this.configuration).deleteHistoricalDataWorkspace(organizationId, workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
7796
|
+
}
|
|
7797
|
+
|
|
7570
7798
|
/**
|
|
7571
7799
|
*
|
|
7572
7800
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cosmo Tech Plaform API
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
8
8
|
* Contact: platform@cosmotech.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cosmo Tech Plaform API
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
8
8
|
* Contact: platform@cosmotech.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cosmo Tech Plaform API
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
8
8
|
* Contact: platform@cosmotech.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Cosmo Tech Plaform API
|
|
3
3
|
* Cosmo Tech Platform API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.
|
|
5
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
6
6
|
* Contact: platform@cosmotech.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -191,6 +191,44 @@ export interface ConnectorParameterGroup {
|
|
|
191
191
|
*/
|
|
192
192
|
'parameters': Array<ConnectorParameter>;
|
|
193
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* define cpus and memory needs
|
|
196
|
+
* @export
|
|
197
|
+
* @interface ContainerResourceSizeInfo
|
|
198
|
+
*/
|
|
199
|
+
export interface ContainerResourceSizeInfo {
|
|
200
|
+
/**
|
|
201
|
+
* define cpu needs
|
|
202
|
+
* @type {string}
|
|
203
|
+
* @memberof ContainerResourceSizeInfo
|
|
204
|
+
*/
|
|
205
|
+
'cpu': string;
|
|
206
|
+
/**
|
|
207
|
+
* define memory needs
|
|
208
|
+
* @type {string}
|
|
209
|
+
* @memberof ContainerResourceSizeInfo
|
|
210
|
+
*/
|
|
211
|
+
'memory': string;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* a description object for resource requests and limits (default same configuration as basic sizing)
|
|
215
|
+
* @export
|
|
216
|
+
* @interface ContainerResourceSizing
|
|
217
|
+
*/
|
|
218
|
+
export interface ContainerResourceSizing {
|
|
219
|
+
/**
|
|
220
|
+
*
|
|
221
|
+
* @type {ContainerResourceSizeInfo}
|
|
222
|
+
* @memberof ContainerResourceSizing
|
|
223
|
+
*/
|
|
224
|
+
'requests': ContainerResourceSizeInfo;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @type {ContainerResourceSizeInfo}
|
|
228
|
+
* @memberof ContainerResourceSizing
|
|
229
|
+
*/
|
|
230
|
+
'limits': ContainerResourceSizeInfo;
|
|
231
|
+
}
|
|
194
232
|
/**
|
|
195
233
|
* a Dataset
|
|
196
234
|
* @export
|
|
@@ -350,6 +388,31 @@ export interface DatasetSearch {
|
|
|
350
388
|
*/
|
|
351
389
|
'datasetTags': Array<string>;
|
|
352
390
|
}
|
|
391
|
+
/**
|
|
392
|
+
* Configuration of scenario runs deletion automatic mecanism
|
|
393
|
+
* @export
|
|
394
|
+
* @interface DeleteHistoricalData
|
|
395
|
+
*/
|
|
396
|
+
export interface DeleteHistoricalData {
|
|
397
|
+
/**
|
|
398
|
+
* Activate or Deactivate historical data deletion
|
|
399
|
+
* @type {boolean}
|
|
400
|
+
* @memberof DeleteHistoricalData
|
|
401
|
+
*/
|
|
402
|
+
'enable': boolean;
|
|
403
|
+
/**
|
|
404
|
+
* define the polling frequency of scenario run status (in millis)
|
|
405
|
+
* @type {number}
|
|
406
|
+
* @memberof DeleteHistoricalData
|
|
407
|
+
*/
|
|
408
|
+
'pollFrequency'?: number;
|
|
409
|
+
/**
|
|
410
|
+
* define the polling timeout
|
|
411
|
+
* @type {number}
|
|
412
|
+
* @memberof DeleteHistoricalData
|
|
413
|
+
*/
|
|
414
|
+
'timeOut'?: number;
|
|
415
|
+
}
|
|
353
416
|
/**
|
|
354
417
|
* an Organization
|
|
355
418
|
* @export
|
|
@@ -504,6 +567,25 @@ export interface OrganizationServices {
|
|
|
504
567
|
*/
|
|
505
568
|
'solutionsContainerRegistry'?: OrganizationService;
|
|
506
569
|
}
|
|
570
|
+
/**
|
|
571
|
+
* define cpus and memory needs
|
|
572
|
+
* @export
|
|
573
|
+
* @interface ResourceSizeInfo
|
|
574
|
+
*/
|
|
575
|
+
export interface ResourceSizeInfo {
|
|
576
|
+
/**
|
|
577
|
+
* define cpu needs
|
|
578
|
+
* @type {string}
|
|
579
|
+
* @memberof ResourceSizeInfo
|
|
580
|
+
*/
|
|
581
|
+
'cpu': string;
|
|
582
|
+
/**
|
|
583
|
+
* define memory needs
|
|
584
|
+
* @type {string}
|
|
585
|
+
* @memberof ResourceSizeInfo
|
|
586
|
+
*/
|
|
587
|
+
'memory': string;
|
|
588
|
+
}
|
|
507
589
|
/**
|
|
508
590
|
* a Solution Run Template
|
|
509
591
|
* @export
|
|
@@ -546,6 +628,12 @@ export interface RunTemplate {
|
|
|
546
628
|
* @memberof RunTemplate
|
|
547
629
|
*/
|
|
548
630
|
'computeSize'?: string;
|
|
631
|
+
/**
|
|
632
|
+
*
|
|
633
|
+
* @type {RunTemplateResourceSizing}
|
|
634
|
+
* @memberof RunTemplate
|
|
635
|
+
*/
|
|
636
|
+
'runSizing'?: RunTemplateResourceSizing;
|
|
549
637
|
/**
|
|
550
638
|
* set to true if the run template does not want to check data ingestion state (no probes or not control plane)
|
|
551
639
|
* @type {boolean}
|
|
@@ -690,6 +778,12 @@ export interface RunTemplate {
|
|
|
690
778
|
* @memberof RunTemplate
|
|
691
779
|
*/
|
|
692
780
|
'executionTimeout'?: number;
|
|
781
|
+
/**
|
|
782
|
+
*
|
|
783
|
+
* @type {DeleteHistoricalData}
|
|
784
|
+
* @memberof RunTemplate
|
|
785
|
+
*/
|
|
786
|
+
'deleteHistoricalData'?: DeleteHistoricalData;
|
|
693
787
|
}
|
|
694
788
|
/**
|
|
695
789
|
* the Run Template step handler identifier
|
|
@@ -836,6 +930,25 @@ export interface RunTemplateParameterValue {
|
|
|
836
930
|
*/
|
|
837
931
|
'value': string;
|
|
838
932
|
}
|
|
933
|
+
/**
|
|
934
|
+
* a description object for resource requests and limits (default same configuration as basic sizing)
|
|
935
|
+
* @export
|
|
936
|
+
* @interface RunTemplateResourceSizing
|
|
937
|
+
*/
|
|
938
|
+
export interface RunTemplateResourceSizing {
|
|
939
|
+
/**
|
|
940
|
+
*
|
|
941
|
+
* @type {ResourceSizeInfo}
|
|
942
|
+
* @memberof RunTemplateResourceSizing
|
|
943
|
+
*/
|
|
944
|
+
'requests': ResourceSizeInfo;
|
|
945
|
+
/**
|
|
946
|
+
*
|
|
947
|
+
* @type {ResourceSizeInfo}
|
|
948
|
+
* @memberof RunTemplateResourceSizing
|
|
949
|
+
*/
|
|
950
|
+
'limits': ResourceSizeInfo;
|
|
951
|
+
}
|
|
839
952
|
/**
|
|
840
953
|
* the source local, cloud or git repository
|
|
841
954
|
* @export
|
|
@@ -956,6 +1069,12 @@ export interface Scenario {
|
|
|
956
1069
|
* @memberof Scenario
|
|
957
1070
|
*/
|
|
958
1071
|
'datasetList'?: Array<string>;
|
|
1072
|
+
/**
|
|
1073
|
+
*
|
|
1074
|
+
* @type {ScenarioResourceSizing}
|
|
1075
|
+
* @memberof Scenario
|
|
1076
|
+
*/
|
|
1077
|
+
'runSizing'?: ScenarioResourceSizing;
|
|
959
1078
|
/**
|
|
960
1079
|
* the list of Solution Run Template parameters values
|
|
961
1080
|
* @type {Array<ScenarioRunTemplateParameterValue>}
|
|
@@ -1145,6 +1264,25 @@ export interface ScenarioLastRun {
|
|
|
1145
1264
|
*/
|
|
1146
1265
|
'workflowName'?: string;
|
|
1147
1266
|
}
|
|
1267
|
+
/**
|
|
1268
|
+
* a description object for resource requests and limits (default same configuration as basic sizing)
|
|
1269
|
+
* @export
|
|
1270
|
+
* @interface ScenarioResourceSizing
|
|
1271
|
+
*/
|
|
1272
|
+
export interface ScenarioResourceSizing {
|
|
1273
|
+
/**
|
|
1274
|
+
*
|
|
1275
|
+
* @type {ResourceSizeInfo}
|
|
1276
|
+
* @memberof ScenarioResourceSizing
|
|
1277
|
+
*/
|
|
1278
|
+
'requests': ResourceSizeInfo;
|
|
1279
|
+
/**
|
|
1280
|
+
*
|
|
1281
|
+
* @type {ResourceSizeInfo}
|
|
1282
|
+
* @memberof ScenarioResourceSizing
|
|
1283
|
+
*/
|
|
1284
|
+
'limits': ResourceSizeInfo;
|
|
1285
|
+
}
|
|
1148
1286
|
/**
|
|
1149
1287
|
* the Scenario Role
|
|
1150
1288
|
* @export
|
|
@@ -1361,6 +1499,18 @@ export interface ScenarioRunContainer {
|
|
|
1361
1499
|
* @memberof ScenarioRunContainer
|
|
1362
1500
|
*/
|
|
1363
1501
|
'solutionContainer'?: boolean;
|
|
1502
|
+
/**
|
|
1503
|
+
* the node label request
|
|
1504
|
+
* @type {string}
|
|
1505
|
+
* @memberof ScenarioRunContainer
|
|
1506
|
+
*/
|
|
1507
|
+
'nodeLabel'?: string;
|
|
1508
|
+
/**
|
|
1509
|
+
*
|
|
1510
|
+
* @type {ContainerResourceSizing}
|
|
1511
|
+
* @memberof ScenarioRunContainer
|
|
1512
|
+
*/
|
|
1513
|
+
'runSizing'?: ContainerResourceSizing;
|
|
1364
1514
|
/**
|
|
1365
1515
|
* the list of artifacts
|
|
1366
1516
|
* @type {Array<ScenarioRunContainerArtifact>}
|
|
@@ -4394,12 +4544,21 @@ export declare class ScenarioApi extends BaseAPI {
|
|
|
4394
4544
|
export declare const ScenariorunApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4395
4545
|
/**
|
|
4396
4546
|
*
|
|
4397
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
4547
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
4398
4548
|
* @param {string} organizationId the Organization identifier
|
|
4399
4549
|
* @param {*} [options] Override http request option.
|
|
4400
4550
|
* @throws {RequiredError}
|
|
4401
4551
|
*/
|
|
4402
4552
|
deleteHistoricalDataOrganization: (organizationId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4553
|
+
/**
|
|
4554
|
+
*
|
|
4555
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
4556
|
+
* @param {string} organizationId the Organization identifier
|
|
4557
|
+
* @param {string} workspaceId the Workspace identifier
|
|
4558
|
+
* @param {*} [options] Override http request option.
|
|
4559
|
+
* @throws {RequiredError}
|
|
4560
|
+
*/
|
|
4561
|
+
deleteHistoricalDataWorkspace: (organizationId: string, workspaceId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4403
4562
|
/**
|
|
4404
4563
|
*
|
|
4405
4564
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
@@ -4519,12 +4678,21 @@ export declare const ScenariorunApiAxiosParamCreator: (configuration?: Configura
|
|
|
4519
4678
|
export declare const ScenariorunApiFp: (configuration?: Configuration) => {
|
|
4520
4679
|
/**
|
|
4521
4680
|
*
|
|
4522
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
4681
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
4523
4682
|
* @param {string} organizationId the Organization identifier
|
|
4524
4683
|
* @param {*} [options] Override http request option.
|
|
4525
4684
|
* @throws {RequiredError}
|
|
4526
4685
|
*/
|
|
4527
4686
|
deleteHistoricalDataOrganization(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4687
|
+
/**
|
|
4688
|
+
*
|
|
4689
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
4690
|
+
* @param {string} organizationId the Organization identifier
|
|
4691
|
+
* @param {string} workspaceId the Workspace identifier
|
|
4692
|
+
* @param {*} [options] Override http request option.
|
|
4693
|
+
* @throws {RequiredError}
|
|
4694
|
+
*/
|
|
4695
|
+
deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4528
4696
|
/**
|
|
4529
4697
|
*
|
|
4530
4698
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
@@ -4644,12 +4812,21 @@ export declare const ScenariorunApiFp: (configuration?: Configuration) => {
|
|
|
4644
4812
|
export declare const ScenariorunApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4645
4813
|
/**
|
|
4646
4814
|
*
|
|
4647
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
4815
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
4648
4816
|
* @param {string} organizationId the Organization identifier
|
|
4649
4817
|
* @param {*} [options] Override http request option.
|
|
4650
4818
|
* @throws {RequiredError}
|
|
4651
4819
|
*/
|
|
4652
4820
|
deleteHistoricalDataOrganization(organizationId: string, options?: any): AxiosPromise<void>;
|
|
4821
|
+
/**
|
|
4822
|
+
*
|
|
4823
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
4824
|
+
* @param {string} organizationId the Organization identifier
|
|
4825
|
+
* @param {string} workspaceId the Workspace identifier
|
|
4826
|
+
* @param {*} [options] Override http request option.
|
|
4827
|
+
* @throws {RequiredError}
|
|
4828
|
+
*/
|
|
4829
|
+
deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, options?: any): AxiosPromise<void>;
|
|
4653
4830
|
/**
|
|
4654
4831
|
*
|
|
4655
4832
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
@@ -4771,13 +4948,23 @@ export declare const ScenariorunApiFactory: (configuration?: Configuration, base
|
|
|
4771
4948
|
export declare class ScenariorunApi extends BaseAPI {
|
|
4772
4949
|
/**
|
|
4773
4950
|
*
|
|
4774
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
4951
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
4775
4952
|
* @param {string} organizationId the Organization identifier
|
|
4776
4953
|
* @param {*} [options] Override http request option.
|
|
4777
4954
|
* @throws {RequiredError}
|
|
4778
4955
|
* @memberof ScenariorunApi
|
|
4779
4956
|
*/
|
|
4780
4957
|
deleteHistoricalDataOrganization(organizationId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
|
|
4958
|
+
/**
|
|
4959
|
+
*
|
|
4960
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
4961
|
+
* @param {string} organizationId the Organization identifier
|
|
4962
|
+
* @param {string} workspaceId the Workspace identifier
|
|
4963
|
+
* @param {*} [options] Override http request option.
|
|
4964
|
+
* @throws {RequiredError}
|
|
4965
|
+
* @memberof ScenariorunApi
|
|
4966
|
+
*/
|
|
4967
|
+
deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
|
|
4781
4968
|
/**
|
|
4782
4969
|
*
|
|
4783
4970
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Cosmo Tech Plaform API
|
|
6
6
|
* Cosmo Tech Platform API
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.0.
|
|
8
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
9
9
|
* Contact: platform@cosmotech.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5270,7 +5270,7 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
|
|
|
5270
5270
|
return {
|
|
5271
5271
|
/**
|
|
5272
5272
|
*
|
|
5273
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
5273
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
5274
5274
|
* @param {string} organizationId the Organization identifier
|
|
5275
5275
|
* @param {*} [options] Override http request option.
|
|
5276
5276
|
* @throws {RequiredError}
|
|
@@ -5284,7 +5284,7 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
|
|
|
5284
5284
|
case 0:
|
|
5285
5285
|
// verify required parameter 'organizationId' is not null or undefined
|
|
5286
5286
|
common_1.assertParamExists('deleteHistoricalDataOrganization', 'organizationId', organizationId);
|
|
5287
|
-
localVarPath = "/organizations/{organization_id}/scenarioruns/
|
|
5287
|
+
localVarPath = "/organizations/{organization_id}/scenarioruns/historicaldata"
|
|
5288
5288
|
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
|
|
5289
5289
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5290
5290
|
if (configuration) {
|
|
@@ -5311,6 +5311,53 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
|
|
|
5311
5311
|
});
|
|
5312
5312
|
});
|
|
5313
5313
|
},
|
|
5314
|
+
/**
|
|
5315
|
+
*
|
|
5316
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
5317
|
+
* @param {string} organizationId the Organization identifier
|
|
5318
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5319
|
+
* @param {*} [options] Override http request option.
|
|
5320
|
+
* @throws {RequiredError}
|
|
5321
|
+
*/
|
|
5322
|
+
deleteHistoricalDataWorkspace: function (organizationId, workspaceId, options) {
|
|
5323
|
+
if (options === void 0) { options = {}; }
|
|
5324
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5325
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5326
|
+
return __generator(this, function (_a) {
|
|
5327
|
+
switch (_a.label) {
|
|
5328
|
+
case 0:
|
|
5329
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5330
|
+
common_1.assertParamExists('deleteHistoricalDataWorkspace', 'organizationId', organizationId);
|
|
5331
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5332
|
+
common_1.assertParamExists('deleteHistoricalDataWorkspace', 'workspaceId', workspaceId);
|
|
5333
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarioruns/historicaldata"
|
|
5334
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
5335
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
|
|
5336
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5337
|
+
if (configuration) {
|
|
5338
|
+
baseOptions = configuration.baseOptions;
|
|
5339
|
+
}
|
|
5340
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
5341
|
+
localVarHeaderParameter = {};
|
|
5342
|
+
localVarQueryParameter = {};
|
|
5343
|
+
// authentication oAuth2AuthCode required
|
|
5344
|
+
// oauth required
|
|
5345
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
5346
|
+
case 1:
|
|
5347
|
+
// authentication oAuth2AuthCode required
|
|
5348
|
+
// oauth required
|
|
5349
|
+
_a.sent();
|
|
5350
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5351
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5352
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5353
|
+
return [2 /*return*/, {
|
|
5354
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
5355
|
+
options: localVarRequestOptions,
|
|
5356
|
+
}];
|
|
5357
|
+
}
|
|
5358
|
+
});
|
|
5359
|
+
});
|
|
5360
|
+
},
|
|
5314
5361
|
/**
|
|
5315
5362
|
*
|
|
5316
5363
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
@@ -5900,7 +5947,7 @@ exports.ScenariorunApiFp = function (configuration) {
|
|
|
5900
5947
|
return {
|
|
5901
5948
|
/**
|
|
5902
5949
|
*
|
|
5903
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
5950
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
5904
5951
|
* @param {string} organizationId the Organization identifier
|
|
5905
5952
|
* @param {*} [options] Override http request option.
|
|
5906
5953
|
* @throws {RequiredError}
|
|
@@ -5918,6 +5965,27 @@ exports.ScenariorunApiFp = function (configuration) {
|
|
|
5918
5965
|
});
|
|
5919
5966
|
});
|
|
5920
5967
|
},
|
|
5968
|
+
/**
|
|
5969
|
+
*
|
|
5970
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
5971
|
+
* @param {string} organizationId the Organization identifier
|
|
5972
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5973
|
+
* @param {*} [options] Override http request option.
|
|
5974
|
+
* @throws {RequiredError}
|
|
5975
|
+
*/
|
|
5976
|
+
deleteHistoricalDataWorkspace: function (organizationId, workspaceId, options) {
|
|
5977
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5978
|
+
var localVarAxiosArgs;
|
|
5979
|
+
return __generator(this, function (_a) {
|
|
5980
|
+
switch (_a.label) {
|
|
5981
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteHistoricalDataWorkspace(organizationId, workspaceId, options)];
|
|
5982
|
+
case 1:
|
|
5983
|
+
localVarAxiosArgs = _a.sent();
|
|
5984
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
5985
|
+
}
|
|
5986
|
+
});
|
|
5987
|
+
});
|
|
5988
|
+
},
|
|
5921
5989
|
/**
|
|
5922
5990
|
*
|
|
5923
5991
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
@@ -6184,7 +6252,7 @@ exports.ScenariorunApiFactory = function (configuration, basePath, axios) {
|
|
|
6184
6252
|
return {
|
|
6185
6253
|
/**
|
|
6186
6254
|
*
|
|
6187
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
6255
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
6188
6256
|
* @param {string} organizationId the Organization identifier
|
|
6189
6257
|
* @param {*} [options] Override http request option.
|
|
6190
6258
|
* @throws {RequiredError}
|
|
@@ -6192,6 +6260,17 @@ exports.ScenariorunApiFactory = function (configuration, basePath, axios) {
|
|
|
6192
6260
|
deleteHistoricalDataOrganization: function (organizationId, options) {
|
|
6193
6261
|
return localVarFp.deleteHistoricalDataOrganization(organizationId, options).then(function (request) { return request(axios, basePath); });
|
|
6194
6262
|
},
|
|
6263
|
+
/**
|
|
6264
|
+
*
|
|
6265
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
6266
|
+
* @param {string} organizationId the Organization identifier
|
|
6267
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6268
|
+
* @param {*} [options] Override http request option.
|
|
6269
|
+
* @throws {RequiredError}
|
|
6270
|
+
*/
|
|
6271
|
+
deleteHistoricalDataWorkspace: function (organizationId, workspaceId, options) {
|
|
6272
|
+
return localVarFp.deleteHistoricalDataWorkspace(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
|
|
6273
|
+
},
|
|
6195
6274
|
/**
|
|
6196
6275
|
*
|
|
6197
6276
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
|
@@ -6342,7 +6421,7 @@ var ScenariorunApi = /** @class */ (function (_super) {
|
|
|
6342
6421
|
}
|
|
6343
6422
|
/**
|
|
6344
6423
|
*
|
|
6345
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
6424
|
+
* @summary Delete all historical ScenarioRuns in the Organization
|
|
6346
6425
|
* @param {string} organizationId the Organization identifier
|
|
6347
6426
|
* @param {*} [options] Override http request option.
|
|
6348
6427
|
* @throws {RequiredError}
|
|
@@ -6352,6 +6431,19 @@ var ScenariorunApi = /** @class */ (function (_super) {
|
|
|
6352
6431
|
var _this = this;
|
|
6353
6432
|
return exports.ScenariorunApiFp(this.configuration).deleteHistoricalDataOrganization(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6354
6433
|
};
|
|
6434
|
+
/**
|
|
6435
|
+
*
|
|
6436
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
6437
|
+
* @param {string} organizationId the Organization identifier
|
|
6438
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6439
|
+
* @param {*} [options] Override http request option.
|
|
6440
|
+
* @throws {RequiredError}
|
|
6441
|
+
* @memberof ScenariorunApi
|
|
6442
|
+
*/
|
|
6443
|
+
ScenariorunApi.prototype.deleteHistoricalDataWorkspace = function (organizationId, workspaceId, options) {
|
|
6444
|
+
var _this = this;
|
|
6445
|
+
return exports.ScenariorunApiFp(this.configuration).deleteHistoricalDataWorkspace(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6446
|
+
};
|
|
6355
6447
|
/**
|
|
6356
6448
|
*
|
|
6357
6449
|
* @summary Delete all historical ScenarioRuns for the Scenario
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Cosmo Tech Plaform API
|
|
3
3
|
* Cosmo Tech Platform API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.
|
|
5
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
6
6
|
* Contact: platform@cosmotech.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Cosmo Tech Plaform API
|
|
6
6
|
* Cosmo Tech Platform API
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.0.
|
|
8
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
9
9
|
* Contact: platform@cosmotech.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Cosmo Tech Plaform API
|
|
3
3
|
* Cosmo Tech Platform API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.
|
|
5
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
6
6
|
* Contact: platform@cosmotech.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Cosmo Tech Plaform API
|
|
6
6
|
* Cosmo Tech Platform API
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.0.
|
|
8
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
9
9
|
* Contact: platform@cosmotech.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Cosmo Tech Plaform API
|
|
3
3
|
* Cosmo Tech Platform API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.
|
|
5
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
6
6
|
* Contact: platform@cosmotech.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Cosmo Tech Plaform API
|
|
6
6
|
* Cosmo Tech Platform API
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.0.
|
|
8
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
9
9
|
* Contact: platform@cosmotech.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Cosmo Tech Plaform API
|
|
3
3
|
* Cosmo Tech Platform API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.
|
|
5
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
6
6
|
* Contact: platform@cosmotech.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Cosmo Tech Plaform API
|
|
6
6
|
* Cosmo Tech Platform API
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.0.
|
|
8
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
9
9
|
* Contact: platform@cosmotech.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cosmo Tech Plaform API
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.13-dev
|
|
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,9 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
-
<exclude-output />
|
|
5
|
-
<content url="file://$MODULE_DIR$" />
|
|
6
|
-
<orderEntry type="inheritedJdk" />
|
|
7
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
-
</component>
|
|
9
|
-
</module>
|
package/package-lock.json
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cosmotech/api-ts",
|
|
3
|
-
"version": "2.0.6-dev",
|
|
4
|
-
"lockfileVersion": 2,
|
|
5
|
-
"requires": true,
|
|
6
|
-
"packages": {
|
|
7
|
-
"": {
|
|
8
|
-
"name": "@cosmotech/api-ts",
|
|
9
|
-
"version": "2.0.6-dev",
|
|
10
|
-
"license": "Unlicense",
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"axios": "^0.21.4"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@types/node": "^12.11.5",
|
|
16
|
-
"typescript": "^3.6.4"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"node_modules/@types/node": {
|
|
20
|
-
"version": "12.20.55",
|
|
21
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz",
|
|
22
|
-
"integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==",
|
|
23
|
-
"dev": true
|
|
24
|
-
},
|
|
25
|
-
"node_modules/axios": {
|
|
26
|
-
"version": "0.21.4",
|
|
27
|
-
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",
|
|
28
|
-
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"follow-redirects": "^1.14.0"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"node_modules/follow-redirects": {
|
|
34
|
-
"version": "1.15.2",
|
|
35
|
-
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
|
|
36
|
-
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
|
|
37
|
-
"funding": [
|
|
38
|
-
{
|
|
39
|
-
"type": "individual",
|
|
40
|
-
"url": "https://github.com/sponsors/RubenVerborgh"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"engines": {
|
|
44
|
-
"node": ">=4.0"
|
|
45
|
-
},
|
|
46
|
-
"peerDependenciesMeta": {
|
|
47
|
-
"debug": {
|
|
48
|
-
"optional": true
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"node_modules/typescript": {
|
|
53
|
-
"version": "3.9.10",
|
|
54
|
-
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz",
|
|
55
|
-
"integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==",
|
|
56
|
-
"dev": true,
|
|
57
|
-
"bin": {
|
|
58
|
-
"tsc": "bin/tsc",
|
|
59
|
-
"tsserver": "bin/tsserver"
|
|
60
|
-
},
|
|
61
|
-
"engines": {
|
|
62
|
-
"node": ">=4.2.0"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"dependencies": {
|
|
67
|
-
"@types/node": {
|
|
68
|
-
"version": "12.20.55",
|
|
69
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz",
|
|
70
|
-
"integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==",
|
|
71
|
-
"dev": true
|
|
72
|
-
},
|
|
73
|
-
"axios": {
|
|
74
|
-
"version": "0.21.4",
|
|
75
|
-
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",
|
|
76
|
-
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
|
|
77
|
-
"requires": {
|
|
78
|
-
"follow-redirects": "^1.14.0"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"follow-redirects": {
|
|
82
|
-
"version": "1.15.2",
|
|
83
|
-
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
|
|
84
|
-
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA=="
|
|
85
|
-
},
|
|
86
|
-
"typescript": {
|
|
87
|
-
"version": "3.9.10",
|
|
88
|
-
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz",
|
|
89
|
-
"integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==",
|
|
90
|
-
"dev": true
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|