@cosmotech/api-ts 2.0.13-dev → 2.3.9
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/README.md +2 -2
- package/api.ts +886 -156
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +433 -26
- package/dist/api.js +919 -223
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/index.ts +2 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Cosmo Tech
|
|
4
|
+
* Cosmo Tech Platform API
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.
|
|
7
|
+
* The version of the OpenAPI document: 2.3.9
|
|
8
8
|
* Contact: platform@cosmotech.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2018,6 +2018,108 @@ export interface Solution {
|
|
|
2018
2018
|
*/
|
|
2019
2019
|
'runTemplates'?: Array<RunTemplate>;
|
|
2020
2020
|
}
|
|
2021
|
+
/**
|
|
2022
|
+
* Source job import information
|
|
2023
|
+
* @export
|
|
2024
|
+
* @interface SourceInfo
|
|
2025
|
+
*/
|
|
2026
|
+
export interface SourceInfo {
|
|
2027
|
+
/**
|
|
2028
|
+
* the source name containing the files to import
|
|
2029
|
+
* @type {string}
|
|
2030
|
+
* @memberof SourceInfo
|
|
2031
|
+
*/
|
|
2032
|
+
'name'?: string;
|
|
2033
|
+
/**
|
|
2034
|
+
* the source location containing the files to import
|
|
2035
|
+
* @type {string}
|
|
2036
|
+
* @memberof SourceInfo
|
|
2037
|
+
*/
|
|
2038
|
+
'location': string;
|
|
2039
|
+
/**
|
|
2040
|
+
* the source location containing the files to import
|
|
2041
|
+
* @type {string}
|
|
2042
|
+
* @memberof SourceInfo
|
|
2043
|
+
*/
|
|
2044
|
+
'path'?: string;
|
|
2045
|
+
/**
|
|
2046
|
+
* the source type containing the files to import
|
|
2047
|
+
* @type {string}
|
|
2048
|
+
* @memberof SourceInfo
|
|
2049
|
+
*/
|
|
2050
|
+
'type': SourceInfoTypeEnum;
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
export const SourceInfoTypeEnum = {
|
|
2054
|
+
Adt: 'ADT',
|
|
2055
|
+
Storage: 'Storage'
|
|
2056
|
+
} as const;
|
|
2057
|
+
|
|
2058
|
+
export type SourceInfoTypeEnum = typeof SourceInfoTypeEnum[keyof typeof SourceInfoTypeEnum];
|
|
2059
|
+
|
|
2060
|
+
/**
|
|
2061
|
+
* a twin graph import info
|
|
2062
|
+
* @export
|
|
2063
|
+
* @interface TwinGraphImport
|
|
2064
|
+
*/
|
|
2065
|
+
export interface TwinGraphImport {
|
|
2066
|
+
/**
|
|
2067
|
+
*
|
|
2068
|
+
* @type {SourceInfo}
|
|
2069
|
+
* @memberof TwinGraphImport
|
|
2070
|
+
*/
|
|
2071
|
+
'source': SourceInfo;
|
|
2072
|
+
/**
|
|
2073
|
+
* the graph id to import to
|
|
2074
|
+
* @type {string}
|
|
2075
|
+
* @memberof TwinGraphImport
|
|
2076
|
+
*/
|
|
2077
|
+
'graphId': string;
|
|
2078
|
+
/**
|
|
2079
|
+
* The version of the graph to import to. When not set, the last version before import is upgraded by 1. When set, the targeted graph is replaced
|
|
2080
|
+
* @type {string}
|
|
2081
|
+
* @memberof TwinGraphImport
|
|
2082
|
+
*/
|
|
2083
|
+
'version'?: string;
|
|
2084
|
+
}
|
|
2085
|
+
/**
|
|
2086
|
+
* a twin graph query in cypher language
|
|
2087
|
+
* @export
|
|
2088
|
+
* @interface TwinGraphImportInfo
|
|
2089
|
+
*/
|
|
2090
|
+
export interface TwinGraphImportInfo {
|
|
2091
|
+
/**
|
|
2092
|
+
* the import job id
|
|
2093
|
+
* @type {string}
|
|
2094
|
+
* @memberof TwinGraphImportInfo
|
|
2095
|
+
*/
|
|
2096
|
+
'jobId'?: string;
|
|
2097
|
+
/**
|
|
2098
|
+
* the twin graph name
|
|
2099
|
+
* @type {string}
|
|
2100
|
+
* @memberof TwinGraphImportInfo
|
|
2101
|
+
*/
|
|
2102
|
+
'graphName'?: string;
|
|
2103
|
+
}
|
|
2104
|
+
/**
|
|
2105
|
+
* a twin graph query in cypher language
|
|
2106
|
+
* @export
|
|
2107
|
+
* @interface TwinGraphQuery
|
|
2108
|
+
*/
|
|
2109
|
+
export interface TwinGraphQuery {
|
|
2110
|
+
/**
|
|
2111
|
+
* Twin graph version
|
|
2112
|
+
* @type {string}
|
|
2113
|
+
* @memberof TwinGraphQuery
|
|
2114
|
+
*/
|
|
2115
|
+
'version'?: string;
|
|
2116
|
+
/**
|
|
2117
|
+
* the query in cypher language
|
|
2118
|
+
* @type {string}
|
|
2119
|
+
* @memberof TwinGraphQuery
|
|
2120
|
+
*/
|
|
2121
|
+
'query': string;
|
|
2122
|
+
}
|
|
2021
2123
|
/**
|
|
2022
2124
|
* a User
|
|
2023
2125
|
* @export
|
|
@@ -2305,6 +2407,24 @@ export interface Workspace {
|
|
|
2305
2407
|
* @memberof Workspace
|
|
2306
2408
|
*/
|
|
2307
2409
|
'useDedicatedEventHubNamespace'?: boolean;
|
|
2410
|
+
/**
|
|
2411
|
+
* the Dedicated Event Hub SAS key name, default to RootManageSharedAccessKey. Use the /secret endpoint to set the key value
|
|
2412
|
+
* @type {string}
|
|
2413
|
+
* @memberof Workspace
|
|
2414
|
+
*/
|
|
2415
|
+
'dedicatedEventHubSasKeyName'?: string;
|
|
2416
|
+
/**
|
|
2417
|
+
* the Event Hub authentication strategy, SHARED_ACCESS_POLICY or TENANT_CLIENT_CREDENTIALS. Default to the one defined for the tenant.
|
|
2418
|
+
* @type {string}
|
|
2419
|
+
* @memberof Workspace
|
|
2420
|
+
*/
|
|
2421
|
+
'dedicatedEventHubAuthenticationStrategy'?: string;
|
|
2422
|
+
/**
|
|
2423
|
+
* default setting for all Scenarios and Run Templates to set whether or not the ScenarioRun is send to the Event Hub
|
|
2424
|
+
* @type {boolean}
|
|
2425
|
+
* @memberof Workspace
|
|
2426
|
+
*/
|
|
2427
|
+
'sendScenarioRunToEventHub'?: boolean;
|
|
2308
2428
|
/**
|
|
2309
2429
|
* Set this property to false to not send scenario metada to Azure Event Hub Namespace for this Workspace. The Event Hub Namespace must be named \\\'<organization_id\\>-<workspace_id\\>\\\' (in lower case). This Namespace must also contain two Event Hubs named \\\'scenariometadata\\\' and \\\'scenariorunmetadata\\\'.
|
|
2310
2430
|
* @type {boolean}
|
|
@@ -2363,6 +2483,19 @@ export interface WorkspaceRole {
|
|
|
2363
2483
|
*/
|
|
2364
2484
|
'role': string;
|
|
2365
2485
|
}
|
|
2486
|
+
/**
|
|
2487
|
+
* the secret definition
|
|
2488
|
+
* @export
|
|
2489
|
+
* @interface WorkspaceSecret
|
|
2490
|
+
*/
|
|
2491
|
+
export interface WorkspaceSecret {
|
|
2492
|
+
/**
|
|
2493
|
+
* the dedicated event hub shared access key
|
|
2494
|
+
* @type {string}
|
|
2495
|
+
* @memberof WorkspaceSecret
|
|
2496
|
+
*/
|
|
2497
|
+
'dedicatedEventHubKey'?: string;
|
|
2498
|
+
}
|
|
2366
2499
|
/**
|
|
2367
2500
|
* the workspace security information
|
|
2368
2501
|
* @export
|
|
@@ -6818,10 +6951,11 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
|
|
|
6818
6951
|
*
|
|
6819
6952
|
* @summary Delete all historical ScenarioRuns in the Organization
|
|
6820
6953
|
* @param {string} organizationId the Organization identifier
|
|
6954
|
+
* @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
|
|
6821
6955
|
* @param {*} [options] Override http request option.
|
|
6822
6956
|
* @throws {RequiredError}
|
|
6823
6957
|
*/
|
|
6824
|
-
deleteHistoricalDataOrganization: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6958
|
+
deleteHistoricalDataOrganization: async (organizationId: string, deleteUnknown?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6825
6959
|
// verify required parameter 'organizationId' is not null or undefined
|
|
6826
6960
|
assertParamExists('deleteHistoricalDataOrganization', 'organizationId', organizationId)
|
|
6827
6961
|
const localVarPath = `/organizations/{organization_id}/scenarioruns/historicaldata`
|
|
@@ -6841,6 +6975,10 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
|
|
|
6841
6975
|
// oauth required
|
|
6842
6976
|
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
6843
6977
|
|
|
6978
|
+
if (deleteUnknown !== undefined) {
|
|
6979
|
+
localVarQueryParameter['deleteUnknown'] = deleteUnknown;
|
|
6980
|
+
}
|
|
6981
|
+
|
|
6844
6982
|
|
|
6845
6983
|
|
|
6846
6984
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -6854,20 +6992,25 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
|
|
|
6854
6992
|
},
|
|
6855
6993
|
/**
|
|
6856
6994
|
*
|
|
6857
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
6995
|
+
* @summary Delete all historical ScenarioRuns in the Scenario
|
|
6858
6996
|
* @param {string} organizationId the Organization identifier
|
|
6859
6997
|
* @param {string} workspaceId the Workspace identifier
|
|
6998
|
+
* @param {string} scenarioId the Scenario identifier
|
|
6999
|
+
* @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
|
|
6860
7000
|
* @param {*} [options] Override http request option.
|
|
6861
7001
|
* @throws {RequiredError}
|
|
6862
7002
|
*/
|
|
6863
|
-
|
|
7003
|
+
deleteHistoricalDataScenario: async (organizationId: string, workspaceId: string, scenarioId: string, deleteUnknown?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6864
7004
|
// verify required parameter 'organizationId' is not null or undefined
|
|
6865
|
-
assertParamExists('
|
|
7005
|
+
assertParamExists('deleteHistoricalDataScenario', 'organizationId', organizationId)
|
|
6866
7006
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
6867
|
-
assertParamExists('
|
|
6868
|
-
|
|
7007
|
+
assertParamExists('deleteHistoricalDataScenario', 'workspaceId', workspaceId)
|
|
7008
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
7009
|
+
assertParamExists('deleteHistoricalDataScenario', 'scenarioId', scenarioId)
|
|
7010
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns/historicaldata`
|
|
6869
7011
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
6870
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
7012
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
7013
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
6871
7014
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6872
7015
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6873
7016
|
let baseOptions;
|
|
@@ -6883,6 +7026,10 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
|
|
|
6883
7026
|
// oauth required
|
|
6884
7027
|
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
6885
7028
|
|
|
7029
|
+
if (deleteUnknown !== undefined) {
|
|
7030
|
+
localVarQueryParameter['deleteUnknown'] = deleteUnknown;
|
|
7031
|
+
}
|
|
7032
|
+
|
|
6886
7033
|
|
|
6887
7034
|
|
|
6888
7035
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -6896,24 +7043,21 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
|
|
|
6896
7043
|
},
|
|
6897
7044
|
/**
|
|
6898
7045
|
*
|
|
6899
|
-
* @summary Delete all historical ScenarioRuns
|
|
7046
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
6900
7047
|
* @param {string} organizationId the Organization identifier
|
|
6901
7048
|
* @param {string} workspaceId the Workspace identifier
|
|
6902
|
-
* @param {
|
|
7049
|
+
* @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
|
|
6903
7050
|
* @param {*} [options] Override http request option.
|
|
6904
7051
|
* @throws {RequiredError}
|
|
6905
7052
|
*/
|
|
6906
|
-
|
|
7053
|
+
deleteHistoricalDataWorkspace: async (organizationId: string, workspaceId: string, deleteUnknown?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6907
7054
|
// verify required parameter 'organizationId' is not null or undefined
|
|
6908
|
-
assertParamExists('
|
|
7055
|
+
assertParamExists('deleteHistoricalDataWorkspace', 'organizationId', organizationId)
|
|
6909
7056
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
6910
|
-
assertParamExists('
|
|
6911
|
-
|
|
6912
|
-
assertParamExists('deleteHistoricalScenarioRunsByScenario', 'scenarioId', scenarioId)
|
|
6913
|
-
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/scenarioruns`
|
|
7057
|
+
assertParamExists('deleteHistoricalDataWorkspace', 'workspaceId', workspaceId)
|
|
7058
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/scenarioruns/historicaldata`
|
|
6914
7059
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
6915
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
6916
|
-
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
7060
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
6917
7061
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6918
7062
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6919
7063
|
let baseOptions;
|
|
@@ -6929,6 +7073,10 @@ export const ScenariorunApiAxiosParamCreator = function (configuration?: Configu
|
|
|
6929
7073
|
// oauth required
|
|
6930
7074
|
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
6931
7075
|
|
|
7076
|
+
if (deleteUnknown !== undefined) {
|
|
7077
|
+
localVarQueryParameter['deleteUnknown'] = deleteUnknown;
|
|
7078
|
+
}
|
|
7079
|
+
|
|
6932
7080
|
|
|
6933
7081
|
|
|
6934
7082
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -7428,36 +7576,39 @@ export const ScenariorunApiFp = function(configuration?: Configuration) {
|
|
|
7428
7576
|
*
|
|
7429
7577
|
* @summary Delete all historical ScenarioRuns in the Organization
|
|
7430
7578
|
* @param {string} organizationId the Organization identifier
|
|
7579
|
+
* @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
|
|
7431
7580
|
* @param {*} [options] Override http request option.
|
|
7432
7581
|
* @throws {RequiredError}
|
|
7433
7582
|
*/
|
|
7434
|
-
async deleteHistoricalDataOrganization(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
7435
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalDataOrganization(organizationId, options);
|
|
7583
|
+
async deleteHistoricalDataOrganization(organizationId: string, deleteUnknown?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
7584
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalDataOrganization(organizationId, deleteUnknown, options);
|
|
7436
7585
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7437
7586
|
},
|
|
7438
7587
|
/**
|
|
7439
7588
|
*
|
|
7440
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
7589
|
+
* @summary Delete all historical ScenarioRuns in the Scenario
|
|
7441
7590
|
* @param {string} organizationId the Organization identifier
|
|
7442
7591
|
* @param {string} workspaceId the Workspace identifier
|
|
7592
|
+
* @param {string} scenarioId the Scenario identifier
|
|
7593
|
+
* @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
|
|
7443
7594
|
* @param {*} [options] Override http request option.
|
|
7444
7595
|
* @throws {RequiredError}
|
|
7445
7596
|
*/
|
|
7446
|
-
async
|
|
7447
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
7597
|
+
async deleteHistoricalDataScenario(organizationId: string, workspaceId: string, scenarioId: string, deleteUnknown?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
7598
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalDataScenario(organizationId, workspaceId, scenarioId, deleteUnknown, options);
|
|
7448
7599
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7449
7600
|
},
|
|
7450
7601
|
/**
|
|
7451
7602
|
*
|
|
7452
|
-
* @summary Delete all historical ScenarioRuns
|
|
7603
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
7453
7604
|
* @param {string} organizationId the Organization identifier
|
|
7454
7605
|
* @param {string} workspaceId the Workspace identifier
|
|
7455
|
-
* @param {
|
|
7606
|
+
* @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
|
|
7456
7607
|
* @param {*} [options] Override http request option.
|
|
7457
7608
|
* @throws {RequiredError}
|
|
7458
7609
|
*/
|
|
7459
|
-
async
|
|
7460
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
7610
|
+
async deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, deleteUnknown?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
7611
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHistoricalDataWorkspace(organizationId, workspaceId, deleteUnknown, options);
|
|
7461
7612
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7462
7613
|
},
|
|
7463
7614
|
/**
|
|
@@ -7608,34 +7759,37 @@ export const ScenariorunApiFactory = function (configuration?: Configuration, ba
|
|
|
7608
7759
|
*
|
|
7609
7760
|
* @summary Delete all historical ScenarioRuns in the Organization
|
|
7610
7761
|
* @param {string} organizationId the Organization identifier
|
|
7762
|
+
* @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
|
|
7611
7763
|
* @param {*} [options] Override http request option.
|
|
7612
7764
|
* @throws {RequiredError}
|
|
7613
7765
|
*/
|
|
7614
|
-
deleteHistoricalDataOrganization(organizationId: string, options?: any): AxiosPromise<void> {
|
|
7615
|
-
return localVarFp.deleteHistoricalDataOrganization(organizationId, options).then((request) => request(axios, basePath));
|
|
7766
|
+
deleteHistoricalDataOrganization(organizationId: string, deleteUnknown?: boolean, options?: any): AxiosPromise<void> {
|
|
7767
|
+
return localVarFp.deleteHistoricalDataOrganization(organizationId, deleteUnknown, options).then((request) => request(axios, basePath));
|
|
7616
7768
|
},
|
|
7617
7769
|
/**
|
|
7618
7770
|
*
|
|
7619
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
7771
|
+
* @summary Delete all historical ScenarioRuns in the Scenario
|
|
7620
7772
|
* @param {string} organizationId the Organization identifier
|
|
7621
7773
|
* @param {string} workspaceId the Workspace identifier
|
|
7774
|
+
* @param {string} scenarioId the Scenario identifier
|
|
7775
|
+
* @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
|
|
7622
7776
|
* @param {*} [options] Override http request option.
|
|
7623
7777
|
* @throws {RequiredError}
|
|
7624
7778
|
*/
|
|
7625
|
-
|
|
7626
|
-
return localVarFp.
|
|
7779
|
+
deleteHistoricalDataScenario(organizationId: string, workspaceId: string, scenarioId: string, deleteUnknown?: boolean, options?: any): AxiosPromise<void> {
|
|
7780
|
+
return localVarFp.deleteHistoricalDataScenario(organizationId, workspaceId, scenarioId, deleteUnknown, options).then((request) => request(axios, basePath));
|
|
7627
7781
|
},
|
|
7628
7782
|
/**
|
|
7629
7783
|
*
|
|
7630
|
-
* @summary Delete all historical ScenarioRuns
|
|
7784
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
7631
7785
|
* @param {string} organizationId the Organization identifier
|
|
7632
7786
|
* @param {string} workspaceId the Workspace identifier
|
|
7633
|
-
* @param {
|
|
7787
|
+
* @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
|
|
7634
7788
|
* @param {*} [options] Override http request option.
|
|
7635
7789
|
* @throws {RequiredError}
|
|
7636
7790
|
*/
|
|
7637
|
-
|
|
7638
|
-
return localVarFp.
|
|
7791
|
+
deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, deleteUnknown?: boolean, options?: any): AxiosPromise<void> {
|
|
7792
|
+
return localVarFp.deleteHistoricalDataWorkspace(organizationId, workspaceId, deleteUnknown, options).then((request) => request(axios, basePath));
|
|
7639
7793
|
},
|
|
7640
7794
|
/**
|
|
7641
7795
|
*
|
|
@@ -7774,39 +7928,42 @@ export class ScenariorunApi extends BaseAPI {
|
|
|
7774
7928
|
*
|
|
7775
7929
|
* @summary Delete all historical ScenarioRuns in the Organization
|
|
7776
7930
|
* @param {string} organizationId the Organization identifier
|
|
7931
|
+
* @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
|
|
7777
7932
|
* @param {*} [options] Override http request option.
|
|
7778
7933
|
* @throws {RequiredError}
|
|
7779
7934
|
* @memberof ScenariorunApi
|
|
7780
7935
|
*/
|
|
7781
|
-
public deleteHistoricalDataOrganization(organizationId: string, options?: AxiosRequestConfig) {
|
|
7782
|
-
return ScenariorunApiFp(this.configuration).deleteHistoricalDataOrganization(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
7936
|
+
public deleteHistoricalDataOrganization(organizationId: string, deleteUnknown?: boolean, options?: AxiosRequestConfig) {
|
|
7937
|
+
return ScenariorunApiFp(this.configuration).deleteHistoricalDataOrganization(organizationId, deleteUnknown, options).then((request) => request(this.axios, this.basePath));
|
|
7783
7938
|
}
|
|
7784
7939
|
|
|
7785
7940
|
/**
|
|
7786
7941
|
*
|
|
7787
|
-
* @summary Delete all historical ScenarioRuns in the
|
|
7942
|
+
* @summary Delete all historical ScenarioRuns in the Scenario
|
|
7788
7943
|
* @param {string} organizationId the Organization identifier
|
|
7789
7944
|
* @param {string} workspaceId the Workspace identifier
|
|
7945
|
+
* @param {string} scenarioId the Scenario identifier
|
|
7946
|
+
* @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
|
|
7790
7947
|
* @param {*} [options] Override http request option.
|
|
7791
7948
|
* @throws {RequiredError}
|
|
7792
7949
|
* @memberof ScenariorunApi
|
|
7793
7950
|
*/
|
|
7794
|
-
public
|
|
7795
|
-
return ScenariorunApiFp(this.configuration).
|
|
7951
|
+
public deleteHistoricalDataScenario(organizationId: string, workspaceId: string, scenarioId: string, deleteUnknown?: boolean, options?: AxiosRequestConfig) {
|
|
7952
|
+
return ScenariorunApiFp(this.configuration).deleteHistoricalDataScenario(organizationId, workspaceId, scenarioId, deleteUnknown, options).then((request) => request(this.axios, this.basePath));
|
|
7796
7953
|
}
|
|
7797
7954
|
|
|
7798
7955
|
/**
|
|
7799
7956
|
*
|
|
7800
|
-
* @summary Delete all historical ScenarioRuns
|
|
7957
|
+
* @summary Delete all historical ScenarioRuns in the Workspace
|
|
7801
7958
|
* @param {string} organizationId the Organization identifier
|
|
7802
7959
|
* @param {string} workspaceId the Workspace identifier
|
|
7803
|
-
* @param {
|
|
7960
|
+
* @param {boolean} [deleteUnknown] condition to delete runs with an Unknown status
|
|
7804
7961
|
* @param {*} [options] Override http request option.
|
|
7805
7962
|
* @throws {RequiredError}
|
|
7806
7963
|
* @memberof ScenariorunApi
|
|
7807
7964
|
*/
|
|
7808
|
-
public
|
|
7809
|
-
return ScenariorunApiFp(this.configuration).
|
|
7965
|
+
public deleteHistoricalDataWorkspace(organizationId: string, workspaceId: string, deleteUnknown?: boolean, options?: AxiosRequestConfig) {
|
|
7966
|
+
return ScenariorunApiFp(this.configuration).deleteHistoricalDataWorkspace(organizationId, workspaceId, deleteUnknown, options).then((request) => request(this.axios, this.basePath));
|
|
7810
7967
|
}
|
|
7811
7968
|
|
|
7812
7969
|
/**
|
|
@@ -9264,19 +9421,26 @@ export class SolutionApi extends BaseAPI {
|
|
|
9264
9421
|
|
|
9265
9422
|
|
|
9266
9423
|
/**
|
|
9267
|
-
*
|
|
9424
|
+
* TwingraphApi - axios parameter creator
|
|
9268
9425
|
* @export
|
|
9269
9426
|
*/
|
|
9270
|
-
export const
|
|
9427
|
+
export const TwingraphApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
9271
9428
|
return {
|
|
9272
9429
|
/**
|
|
9273
|
-
*
|
|
9274
|
-
* @
|
|
9430
|
+
* Launch a mass delete job
|
|
9431
|
+
* @param {string} organizationId the Organization identifier
|
|
9432
|
+
* @param {string} graphId the Graph Identifier
|
|
9275
9433
|
* @param {*} [options] Override http request option.
|
|
9276
9434
|
* @throws {RequiredError}
|
|
9277
9435
|
*/
|
|
9278
|
-
|
|
9279
|
-
|
|
9436
|
+
_delete: async (organizationId: string, graphId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9437
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
9438
|
+
assertParamExists('_delete', 'organizationId', organizationId)
|
|
9439
|
+
// verify required parameter 'graphId' is not null or undefined
|
|
9440
|
+
assertParamExists('_delete', 'graphId', graphId)
|
|
9441
|
+
const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}`
|
|
9442
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9443
|
+
.replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)));
|
|
9280
9444
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9281
9445
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9282
9446
|
let baseOptions;
|
|
@@ -9284,7 +9448,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
9284
9448
|
baseOptions = configuration.baseOptions;
|
|
9285
9449
|
}
|
|
9286
9450
|
|
|
9287
|
-
const localVarRequestOptions = { method: '
|
|
9451
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
9288
9452
|
const localVarHeaderParameter = {} as any;
|
|
9289
9453
|
const localVarQueryParameter = {} as any;
|
|
9290
9454
|
|
|
@@ -9304,13 +9468,16 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
9304
9468
|
};
|
|
9305
9469
|
},
|
|
9306
9470
|
/**
|
|
9307
|
-
*
|
|
9308
|
-
* @
|
|
9471
|
+
* Return the list of all graphs stored in the organization
|
|
9472
|
+
* @param {string} organizationId the Organization identifier
|
|
9309
9473
|
* @param {*} [options] Override http request option.
|
|
9310
9474
|
* @throws {RequiredError}
|
|
9311
9475
|
*/
|
|
9312
|
-
|
|
9313
|
-
|
|
9476
|
+
findAllTwingraphs: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9477
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
9478
|
+
assertParamExists('findAllTwingraphs', 'organizationId', organizationId)
|
|
9479
|
+
const localVarPath = `/organizations/{organization_id}/twingraphs`
|
|
9480
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
9314
9481
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9315
9482
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9316
9483
|
let baseOptions;
|
|
@@ -9338,17 +9505,20 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
9338
9505
|
};
|
|
9339
9506
|
},
|
|
9340
9507
|
/**
|
|
9341
|
-
*
|
|
9342
|
-
* @
|
|
9343
|
-
* @param {string}
|
|
9508
|
+
* Return the metaData of the specified graph
|
|
9509
|
+
* @param {string} organizationId the Organization identifier
|
|
9510
|
+
* @param {string} graphId the Graph Identifier
|
|
9344
9511
|
* @param {*} [options] Override http request option.
|
|
9345
9512
|
* @throws {RequiredError}
|
|
9346
9513
|
*/
|
|
9347
|
-
|
|
9348
|
-
// verify required parameter '
|
|
9349
|
-
assertParamExists('
|
|
9350
|
-
|
|
9351
|
-
|
|
9514
|
+
getGraphMetaData: async (organizationId: string, graphId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9515
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
9516
|
+
assertParamExists('getGraphMetaData', 'organizationId', organizationId)
|
|
9517
|
+
// verify required parameter 'graphId' is not null or undefined
|
|
9518
|
+
assertParamExists('getGraphMetaData', 'graphId', graphId)
|
|
9519
|
+
const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/metadata`
|
|
9520
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9521
|
+
.replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)));
|
|
9352
9522
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9353
9523
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9354
9524
|
let baseOptions;
|
|
@@ -9376,13 +9546,19 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
9376
9546
|
};
|
|
9377
9547
|
},
|
|
9378
9548
|
/**
|
|
9379
|
-
*
|
|
9380
|
-
* @
|
|
9549
|
+
* Import a new version of a twin graph
|
|
9550
|
+
* @param {string} organizationId the Organization identifier
|
|
9551
|
+
* @param {TwinGraphImport} twinGraphImport the graph to import
|
|
9381
9552
|
* @param {*} [options] Override http request option.
|
|
9382
9553
|
* @throws {RequiredError}
|
|
9383
9554
|
*/
|
|
9384
|
-
|
|
9385
|
-
|
|
9555
|
+
importGraph: async (organizationId: string, twinGraphImport: TwinGraphImport, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9556
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
9557
|
+
assertParamExists('importGraph', 'organizationId', organizationId)
|
|
9558
|
+
// verify required parameter 'twinGraphImport' is not null or undefined
|
|
9559
|
+
assertParamExists('importGraph', 'twinGraphImport', twinGraphImport)
|
|
9560
|
+
const localVarPath = `/organizations/{organization_id}/twingraph/import`
|
|
9561
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
9386
9562
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9387
9563
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9388
9564
|
let baseOptions;
|
|
@@ -9390,7 +9566,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
9390
9566
|
baseOptions = configuration.baseOptions;
|
|
9391
9567
|
}
|
|
9392
9568
|
|
|
9393
|
-
const localVarRequestOptions = { method: '
|
|
9569
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9394
9570
|
const localVarHeaderParameter = {} as any;
|
|
9395
9571
|
const localVarQueryParameter = {} as any;
|
|
9396
9572
|
|
|
@@ -9400,9 +9576,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
9400
9576
|
|
|
9401
9577
|
|
|
9402
9578
|
|
|
9579
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9580
|
+
|
|
9403
9581
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9404
9582
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9405
9583
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9584
|
+
localVarRequestOptions.data = serializeDataIfNeeded(twinGraphImport, localVarRequestOptions, configuration)
|
|
9406
9585
|
|
|
9407
9586
|
return {
|
|
9408
9587
|
url: toPathString(localVarUrlObj),
|
|
@@ -9410,17 +9589,20 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
9410
9589
|
};
|
|
9411
9590
|
},
|
|
9412
9591
|
/**
|
|
9413
|
-
*
|
|
9414
|
-
* @summary Get the details of a logged-in User with roles for an Organization
|
|
9592
|
+
* Get the status of a job
|
|
9415
9593
|
* @param {string} organizationId the Organization identifier
|
|
9594
|
+
* @param {string} jobId the job identifier
|
|
9416
9595
|
* @param {*} [options] Override http request option.
|
|
9417
9596
|
* @throws {RequiredError}
|
|
9418
9597
|
*/
|
|
9419
|
-
|
|
9598
|
+
jobStatus: async (organizationId: string, jobId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9420
9599
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9421
|
-
assertParamExists('
|
|
9422
|
-
|
|
9423
|
-
|
|
9600
|
+
assertParamExists('jobStatus', 'organizationId', organizationId)
|
|
9601
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
9602
|
+
assertParamExists('jobStatus', 'jobId', jobId)
|
|
9603
|
+
const localVarPath = `/organizations/{organization_id}/job/{job_id}/status`
|
|
9604
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9605
|
+
.replace(`{${"job_id"}}`, encodeURIComponent(String(jobId)));
|
|
9424
9606
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9425
9607
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9426
9608
|
let baseOptions;
|
|
@@ -9448,21 +9630,23 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
9448
9630
|
};
|
|
9449
9631
|
},
|
|
9450
9632
|
/**
|
|
9451
|
-
*
|
|
9452
|
-
* @summary Get the details of the logged-in user with roles for a Workspace
|
|
9633
|
+
* Run a query on a graph instance
|
|
9453
9634
|
* @param {string} organizationId the Organization identifier
|
|
9454
|
-
* @param {string}
|
|
9635
|
+
* @param {string} graphId the Graph Identifier
|
|
9636
|
+
* @param {TwinGraphQuery} twinGraphQuery the query to run
|
|
9455
9637
|
* @param {*} [options] Override http request option.
|
|
9456
9638
|
* @throws {RequiredError}
|
|
9457
9639
|
*/
|
|
9458
|
-
|
|
9640
|
+
query: async (organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9459
9641
|
// verify required parameter 'organizationId' is not null or undefined
|
|
9460
|
-
assertParamExists('
|
|
9461
|
-
// verify required parameter '
|
|
9462
|
-
assertParamExists('
|
|
9463
|
-
|
|
9642
|
+
assertParamExists('query', 'organizationId', organizationId)
|
|
9643
|
+
// verify required parameter 'graphId' is not null or undefined
|
|
9644
|
+
assertParamExists('query', 'graphId', graphId)
|
|
9645
|
+
// verify required parameter 'twinGraphQuery' is not null or undefined
|
|
9646
|
+
assertParamExists('query', 'twinGraphQuery', twinGraphQuery)
|
|
9647
|
+
const localVarPath = `/organizations/{organization_id}/twingraph/{graph_id}/query`
|
|
9464
9648
|
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
9465
|
-
.replace(`{${"
|
|
9649
|
+
.replace(`{${"graph_id"}}`, encodeURIComponent(String(graphId)));
|
|
9466
9650
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9467
9651
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9468
9652
|
let baseOptions;
|
|
@@ -9470,7 +9654,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
9470
9654
|
baseOptions = configuration.baseOptions;
|
|
9471
9655
|
}
|
|
9472
9656
|
|
|
9473
|
-
const localVarRequestOptions = { method: '
|
|
9657
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9474
9658
|
const localVarHeaderParameter = {} as any;
|
|
9475
9659
|
const localVarQueryParameter = {} as any;
|
|
9476
9660
|
|
|
@@ -9480,99 +9664,558 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
9480
9664
|
|
|
9481
9665
|
|
|
9482
9666
|
|
|
9667
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9668
|
+
|
|
9483
9669
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9484
9670
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9485
9671
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9672
|
+
localVarRequestOptions.data = serializeDataIfNeeded(twinGraphQuery, localVarRequestOptions, configuration)
|
|
9486
9673
|
|
|
9487
9674
|
return {
|
|
9488
9675
|
url: toPathString(localVarUrlObj),
|
|
9489
9676
|
options: localVarRequestOptions,
|
|
9490
9677
|
};
|
|
9491
9678
|
},
|
|
9679
|
+
}
|
|
9680
|
+
};
|
|
9681
|
+
|
|
9682
|
+
/**
|
|
9683
|
+
* TwingraphApi - functional programming interface
|
|
9684
|
+
* @export
|
|
9685
|
+
*/
|
|
9686
|
+
export const TwingraphApiFp = function(configuration?: Configuration) {
|
|
9687
|
+
const localVarAxiosParamCreator = TwingraphApiAxiosParamCreator(configuration)
|
|
9688
|
+
return {
|
|
9492
9689
|
/**
|
|
9493
|
-
*
|
|
9494
|
-
* @
|
|
9495
|
-
* @param {
|
|
9690
|
+
* Launch a mass delete job
|
|
9691
|
+
* @param {string} organizationId the Organization identifier
|
|
9692
|
+
* @param {string} graphId the Graph Identifier
|
|
9496
9693
|
* @param {*} [options] Override http request option.
|
|
9497
9694
|
* @throws {RequiredError}
|
|
9498
9695
|
*/
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
const localVarPath = `/users`;
|
|
9503
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9504
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9505
|
-
let baseOptions;
|
|
9506
|
-
if (configuration) {
|
|
9507
|
-
baseOptions = configuration.baseOptions;
|
|
9508
|
-
}
|
|
9509
|
-
|
|
9510
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9511
|
-
const localVarHeaderParameter = {} as any;
|
|
9512
|
-
const localVarQueryParameter = {} as any;
|
|
9513
|
-
|
|
9514
|
-
// authentication oAuth2AuthCode required
|
|
9515
|
-
// oauth required
|
|
9516
|
-
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9521
|
-
|
|
9522
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9523
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9524
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9525
|
-
localVarRequestOptions.data = serializeDataIfNeeded(user, localVarRequestOptions, configuration)
|
|
9526
|
-
|
|
9527
|
-
return {
|
|
9528
|
-
url: toPathString(localVarUrlObj),
|
|
9529
|
-
options: localVarRequestOptions,
|
|
9530
|
-
};
|
|
9696
|
+
async _delete(organizationId: string, graphId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9697
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator._delete(organizationId, graphId, options);
|
|
9698
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9531
9699
|
},
|
|
9532
9700
|
/**
|
|
9533
|
-
*
|
|
9534
|
-
* @
|
|
9701
|
+
* Return the list of all graphs stored in the organization
|
|
9702
|
+
* @param {string} organizationId the Organization identifier
|
|
9535
9703
|
* @param {*} [options] Override http request option.
|
|
9536
9704
|
* @throws {RequiredError}
|
|
9537
9705
|
*/
|
|
9538
|
-
|
|
9539
|
-
const
|
|
9540
|
-
|
|
9541
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9542
|
-
let baseOptions;
|
|
9543
|
-
if (configuration) {
|
|
9544
|
-
baseOptions = configuration.baseOptions;
|
|
9545
|
-
}
|
|
9546
|
-
|
|
9547
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9548
|
-
const localVarHeaderParameter = {} as any;
|
|
9549
|
-
const localVarQueryParameter = {} as any;
|
|
9550
|
-
|
|
9551
|
-
// authentication oAuth2AuthCode required
|
|
9552
|
-
// oauth required
|
|
9553
|
-
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
9554
|
-
|
|
9555
|
-
|
|
9556
|
-
|
|
9557
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9558
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9559
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9560
|
-
|
|
9561
|
-
return {
|
|
9562
|
-
url: toPathString(localVarUrlObj),
|
|
9563
|
-
options: localVarRequestOptions,
|
|
9564
|
-
};
|
|
9706
|
+
async findAllTwingraphs(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
9707
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findAllTwingraphs(organizationId, options);
|
|
9708
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9565
9709
|
},
|
|
9566
9710
|
/**
|
|
9567
|
-
*
|
|
9568
|
-
* @
|
|
9569
|
-
* @param {string}
|
|
9711
|
+
* Return the metaData of the specified graph
|
|
9712
|
+
* @param {string} organizationId the Organization identifier
|
|
9713
|
+
* @param {string} graphId the Graph Identifier
|
|
9570
9714
|
* @param {*} [options] Override http request option.
|
|
9571
9715
|
* @throws {RequiredError}
|
|
9572
9716
|
*/
|
|
9573
|
-
|
|
9574
|
-
|
|
9575
|
-
|
|
9717
|
+
async getGraphMetaData(organizationId: string, graphId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
9718
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGraphMetaData(organizationId, graphId, options);
|
|
9719
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9720
|
+
},
|
|
9721
|
+
/**
|
|
9722
|
+
* Import a new version of a twin graph
|
|
9723
|
+
* @param {string} organizationId the Organization identifier
|
|
9724
|
+
* @param {TwinGraphImport} twinGraphImport the graph to import
|
|
9725
|
+
* @param {*} [options] Override http request option.
|
|
9726
|
+
* @throws {RequiredError}
|
|
9727
|
+
*/
|
|
9728
|
+
async importGraph(organizationId: string, twinGraphImport: TwinGraphImport, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TwinGraphImportInfo>> {
|
|
9729
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.importGraph(organizationId, twinGraphImport, options);
|
|
9730
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9731
|
+
},
|
|
9732
|
+
/**
|
|
9733
|
+
* Get the status of a job
|
|
9734
|
+
* @param {string} organizationId the Organization identifier
|
|
9735
|
+
* @param {string} jobId the job identifier
|
|
9736
|
+
* @param {*} [options] Override http request option.
|
|
9737
|
+
* @throws {RequiredError}
|
|
9738
|
+
*/
|
|
9739
|
+
async jobStatus(organizationId: string, jobId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
9740
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.jobStatus(organizationId, jobId, options);
|
|
9741
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9742
|
+
},
|
|
9743
|
+
/**
|
|
9744
|
+
* Run a query on a graph instance
|
|
9745
|
+
* @param {string} organizationId the Organization identifier
|
|
9746
|
+
* @param {string} graphId the Graph Identifier
|
|
9747
|
+
* @param {TwinGraphQuery} twinGraphQuery the query to run
|
|
9748
|
+
* @param {*} [options] Override http request option.
|
|
9749
|
+
* @throws {RequiredError}
|
|
9750
|
+
*/
|
|
9751
|
+
async query(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
9752
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.query(organizationId, graphId, twinGraphQuery, options);
|
|
9753
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9754
|
+
},
|
|
9755
|
+
}
|
|
9756
|
+
};
|
|
9757
|
+
|
|
9758
|
+
/**
|
|
9759
|
+
* TwingraphApi - factory interface
|
|
9760
|
+
* @export
|
|
9761
|
+
*/
|
|
9762
|
+
export const TwingraphApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
9763
|
+
const localVarFp = TwingraphApiFp(configuration)
|
|
9764
|
+
return {
|
|
9765
|
+
/**
|
|
9766
|
+
* Launch a mass delete job
|
|
9767
|
+
* @param {string} organizationId the Organization identifier
|
|
9768
|
+
* @param {string} graphId the Graph Identifier
|
|
9769
|
+
* @param {*} [options] Override http request option.
|
|
9770
|
+
* @throws {RequiredError}
|
|
9771
|
+
*/
|
|
9772
|
+
_delete(organizationId: string, graphId: string, options?: any): AxiosPromise<void> {
|
|
9773
|
+
return localVarFp._delete(organizationId, graphId, options).then((request) => request(axios, basePath));
|
|
9774
|
+
},
|
|
9775
|
+
/**
|
|
9776
|
+
* Return the list of all graphs stored in the organization
|
|
9777
|
+
* @param {string} organizationId the Organization identifier
|
|
9778
|
+
* @param {*} [options] Override http request option.
|
|
9779
|
+
* @throws {RequiredError}
|
|
9780
|
+
*/
|
|
9781
|
+
findAllTwingraphs(organizationId: string, options?: any): AxiosPromise<Array<string>> {
|
|
9782
|
+
return localVarFp.findAllTwingraphs(organizationId, options).then((request) => request(axios, basePath));
|
|
9783
|
+
},
|
|
9784
|
+
/**
|
|
9785
|
+
* Return the metaData of the specified graph
|
|
9786
|
+
* @param {string} organizationId the Organization identifier
|
|
9787
|
+
* @param {string} graphId the Graph Identifier
|
|
9788
|
+
* @param {*} [options] Override http request option.
|
|
9789
|
+
* @throws {RequiredError}
|
|
9790
|
+
*/
|
|
9791
|
+
getGraphMetaData(organizationId: string, graphId: string, options?: any): AxiosPromise<object> {
|
|
9792
|
+
return localVarFp.getGraphMetaData(organizationId, graphId, options).then((request) => request(axios, basePath));
|
|
9793
|
+
},
|
|
9794
|
+
/**
|
|
9795
|
+
* Import a new version of a twin graph
|
|
9796
|
+
* @param {string} organizationId the Organization identifier
|
|
9797
|
+
* @param {TwinGraphImport} twinGraphImport the graph to import
|
|
9798
|
+
* @param {*} [options] Override http request option.
|
|
9799
|
+
* @throws {RequiredError}
|
|
9800
|
+
*/
|
|
9801
|
+
importGraph(organizationId: string, twinGraphImport: TwinGraphImport, options?: any): AxiosPromise<TwinGraphImportInfo> {
|
|
9802
|
+
return localVarFp.importGraph(organizationId, twinGraphImport, options).then((request) => request(axios, basePath));
|
|
9803
|
+
},
|
|
9804
|
+
/**
|
|
9805
|
+
* Get the status of a job
|
|
9806
|
+
* @param {string} organizationId the Organization identifier
|
|
9807
|
+
* @param {string} jobId the job identifier
|
|
9808
|
+
* @param {*} [options] Override http request option.
|
|
9809
|
+
* @throws {RequiredError}
|
|
9810
|
+
*/
|
|
9811
|
+
jobStatus(organizationId: string, jobId: string, options?: any): AxiosPromise<string> {
|
|
9812
|
+
return localVarFp.jobStatus(organizationId, jobId, options).then((request) => request(axios, basePath));
|
|
9813
|
+
},
|
|
9814
|
+
/**
|
|
9815
|
+
* Run a query on a graph instance
|
|
9816
|
+
* @param {string} organizationId the Organization identifier
|
|
9817
|
+
* @param {string} graphId the Graph Identifier
|
|
9818
|
+
* @param {TwinGraphQuery} twinGraphQuery the query to run
|
|
9819
|
+
* @param {*} [options] Override http request option.
|
|
9820
|
+
* @throws {RequiredError}
|
|
9821
|
+
*/
|
|
9822
|
+
query(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options?: any): AxiosPromise<string> {
|
|
9823
|
+
return localVarFp.query(organizationId, graphId, twinGraphQuery, options).then((request) => request(axios, basePath));
|
|
9824
|
+
},
|
|
9825
|
+
};
|
|
9826
|
+
};
|
|
9827
|
+
|
|
9828
|
+
/**
|
|
9829
|
+
* TwingraphApi - object-oriented interface
|
|
9830
|
+
* @export
|
|
9831
|
+
* @class TwingraphApi
|
|
9832
|
+
* @extends {BaseAPI}
|
|
9833
|
+
*/
|
|
9834
|
+
export class TwingraphApi extends BaseAPI {
|
|
9835
|
+
/**
|
|
9836
|
+
* Launch a mass delete job
|
|
9837
|
+
* @param {string} organizationId the Organization identifier
|
|
9838
|
+
* @param {string} graphId the Graph Identifier
|
|
9839
|
+
* @param {*} [options] Override http request option.
|
|
9840
|
+
* @throws {RequiredError}
|
|
9841
|
+
* @memberof TwingraphApi
|
|
9842
|
+
*/
|
|
9843
|
+
public _delete(organizationId: string, graphId: string, options?: AxiosRequestConfig) {
|
|
9844
|
+
return TwingraphApiFp(this.configuration)._delete(organizationId, graphId, options).then((request) => request(this.axios, this.basePath));
|
|
9845
|
+
}
|
|
9846
|
+
|
|
9847
|
+
/**
|
|
9848
|
+
* Return the list of all graphs stored in the organization
|
|
9849
|
+
* @param {string} organizationId the Organization identifier
|
|
9850
|
+
* @param {*} [options] Override http request option.
|
|
9851
|
+
* @throws {RequiredError}
|
|
9852
|
+
* @memberof TwingraphApi
|
|
9853
|
+
*/
|
|
9854
|
+
public findAllTwingraphs(organizationId: string, options?: AxiosRequestConfig) {
|
|
9855
|
+
return TwingraphApiFp(this.configuration).findAllTwingraphs(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
9856
|
+
}
|
|
9857
|
+
|
|
9858
|
+
/**
|
|
9859
|
+
* Return the metaData of the specified graph
|
|
9860
|
+
* @param {string} organizationId the Organization identifier
|
|
9861
|
+
* @param {string} graphId the Graph Identifier
|
|
9862
|
+
* @param {*} [options] Override http request option.
|
|
9863
|
+
* @throws {RequiredError}
|
|
9864
|
+
* @memberof TwingraphApi
|
|
9865
|
+
*/
|
|
9866
|
+
public getGraphMetaData(organizationId: string, graphId: string, options?: AxiosRequestConfig) {
|
|
9867
|
+
return TwingraphApiFp(this.configuration).getGraphMetaData(organizationId, graphId, options).then((request) => request(this.axios, this.basePath));
|
|
9868
|
+
}
|
|
9869
|
+
|
|
9870
|
+
/**
|
|
9871
|
+
* Import a new version of a twin graph
|
|
9872
|
+
* @param {string} organizationId the Organization identifier
|
|
9873
|
+
* @param {TwinGraphImport} twinGraphImport the graph to import
|
|
9874
|
+
* @param {*} [options] Override http request option.
|
|
9875
|
+
* @throws {RequiredError}
|
|
9876
|
+
* @memberof TwingraphApi
|
|
9877
|
+
*/
|
|
9878
|
+
public importGraph(organizationId: string, twinGraphImport: TwinGraphImport, options?: AxiosRequestConfig) {
|
|
9879
|
+
return TwingraphApiFp(this.configuration).importGraph(organizationId, twinGraphImport, options).then((request) => request(this.axios, this.basePath));
|
|
9880
|
+
}
|
|
9881
|
+
|
|
9882
|
+
/**
|
|
9883
|
+
* Get the status of a job
|
|
9884
|
+
* @param {string} organizationId the Organization identifier
|
|
9885
|
+
* @param {string} jobId the job identifier
|
|
9886
|
+
* @param {*} [options] Override http request option.
|
|
9887
|
+
* @throws {RequiredError}
|
|
9888
|
+
* @memberof TwingraphApi
|
|
9889
|
+
*/
|
|
9890
|
+
public jobStatus(organizationId: string, jobId: string, options?: AxiosRequestConfig) {
|
|
9891
|
+
return TwingraphApiFp(this.configuration).jobStatus(organizationId, jobId, options).then((request) => request(this.axios, this.basePath));
|
|
9892
|
+
}
|
|
9893
|
+
|
|
9894
|
+
/**
|
|
9895
|
+
* Run a query on a graph instance
|
|
9896
|
+
* @param {string} organizationId the Organization identifier
|
|
9897
|
+
* @param {string} graphId the Graph Identifier
|
|
9898
|
+
* @param {TwinGraphQuery} twinGraphQuery the query to run
|
|
9899
|
+
* @param {*} [options] Override http request option.
|
|
9900
|
+
* @throws {RequiredError}
|
|
9901
|
+
* @memberof TwingraphApi
|
|
9902
|
+
*/
|
|
9903
|
+
public query(organizationId: string, graphId: string, twinGraphQuery: TwinGraphQuery, options?: AxiosRequestConfig) {
|
|
9904
|
+
return TwingraphApiFp(this.configuration).query(organizationId, graphId, twinGraphQuery, options).then((request) => request(this.axios, this.basePath));
|
|
9905
|
+
}
|
|
9906
|
+
}
|
|
9907
|
+
|
|
9908
|
+
|
|
9909
|
+
/**
|
|
9910
|
+
* UserApi - axios parameter creator
|
|
9911
|
+
* @export
|
|
9912
|
+
*/
|
|
9913
|
+
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
9914
|
+
return {
|
|
9915
|
+
/**
|
|
9916
|
+
*
|
|
9917
|
+
* @summary Authorize an User with OAuth2. Delegated to configured OAuth2 service
|
|
9918
|
+
* @param {*} [options] Override http request option.
|
|
9919
|
+
* @throws {RequiredError}
|
|
9920
|
+
*/
|
|
9921
|
+
authorizeUser: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9922
|
+
const localVarPath = `/oauth2/authorize`;
|
|
9923
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9924
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9925
|
+
let baseOptions;
|
|
9926
|
+
if (configuration) {
|
|
9927
|
+
baseOptions = configuration.baseOptions;
|
|
9928
|
+
}
|
|
9929
|
+
|
|
9930
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9931
|
+
const localVarHeaderParameter = {} as any;
|
|
9932
|
+
const localVarQueryParameter = {} as any;
|
|
9933
|
+
|
|
9934
|
+
// authentication oAuth2AuthCode required
|
|
9935
|
+
// oauth required
|
|
9936
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
9937
|
+
|
|
9938
|
+
|
|
9939
|
+
|
|
9940
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9941
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9942
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9943
|
+
|
|
9944
|
+
return {
|
|
9945
|
+
url: toPathString(localVarUrlObj),
|
|
9946
|
+
options: localVarRequestOptions,
|
|
9947
|
+
};
|
|
9948
|
+
},
|
|
9949
|
+
/**
|
|
9950
|
+
*
|
|
9951
|
+
* @summary List all Users
|
|
9952
|
+
* @param {*} [options] Override http request option.
|
|
9953
|
+
* @throws {RequiredError}
|
|
9954
|
+
*/
|
|
9955
|
+
findAllUsers: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9956
|
+
const localVarPath = `/users`;
|
|
9957
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9958
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9959
|
+
let baseOptions;
|
|
9960
|
+
if (configuration) {
|
|
9961
|
+
baseOptions = configuration.baseOptions;
|
|
9962
|
+
}
|
|
9963
|
+
|
|
9964
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9965
|
+
const localVarHeaderParameter = {} as any;
|
|
9966
|
+
const localVarQueryParameter = {} as any;
|
|
9967
|
+
|
|
9968
|
+
// authentication oAuth2AuthCode required
|
|
9969
|
+
// oauth required
|
|
9970
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
9971
|
+
|
|
9972
|
+
|
|
9973
|
+
|
|
9974
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9975
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9976
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9977
|
+
|
|
9978
|
+
return {
|
|
9979
|
+
url: toPathString(localVarUrlObj),
|
|
9980
|
+
options: localVarRequestOptions,
|
|
9981
|
+
};
|
|
9982
|
+
},
|
|
9983
|
+
/**
|
|
9984
|
+
*
|
|
9985
|
+
* @summary Get the details of an user
|
|
9986
|
+
* @param {string} userId the User identifier
|
|
9987
|
+
* @param {*} [options] Override http request option.
|
|
9988
|
+
* @throws {RequiredError}
|
|
9989
|
+
*/
|
|
9990
|
+
findUserById: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9991
|
+
// verify required parameter 'userId' is not null or undefined
|
|
9992
|
+
assertParamExists('findUserById', 'userId', userId)
|
|
9993
|
+
const localVarPath = `/users/{user_id}`
|
|
9994
|
+
.replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
|
|
9995
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9996
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9997
|
+
let baseOptions;
|
|
9998
|
+
if (configuration) {
|
|
9999
|
+
baseOptions = configuration.baseOptions;
|
|
10000
|
+
}
|
|
10001
|
+
|
|
10002
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10003
|
+
const localVarHeaderParameter = {} as any;
|
|
10004
|
+
const localVarQueryParameter = {} as any;
|
|
10005
|
+
|
|
10006
|
+
// authentication oAuth2AuthCode required
|
|
10007
|
+
// oauth required
|
|
10008
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10009
|
+
|
|
10010
|
+
|
|
10011
|
+
|
|
10012
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10013
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10014
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10015
|
+
|
|
10016
|
+
return {
|
|
10017
|
+
url: toPathString(localVarUrlObj),
|
|
10018
|
+
options: localVarRequestOptions,
|
|
10019
|
+
};
|
|
10020
|
+
},
|
|
10021
|
+
/**
|
|
10022
|
+
*
|
|
10023
|
+
* @summary Get the details of the logged-in User
|
|
10024
|
+
* @param {*} [options] Override http request option.
|
|
10025
|
+
* @throws {RequiredError}
|
|
10026
|
+
*/
|
|
10027
|
+
getCurrentUser: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10028
|
+
const localVarPath = `/users/me`;
|
|
10029
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10030
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10031
|
+
let baseOptions;
|
|
10032
|
+
if (configuration) {
|
|
10033
|
+
baseOptions = configuration.baseOptions;
|
|
10034
|
+
}
|
|
10035
|
+
|
|
10036
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10037
|
+
const localVarHeaderParameter = {} as any;
|
|
10038
|
+
const localVarQueryParameter = {} as any;
|
|
10039
|
+
|
|
10040
|
+
// authentication oAuth2AuthCode required
|
|
10041
|
+
// oauth required
|
|
10042
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10043
|
+
|
|
10044
|
+
|
|
10045
|
+
|
|
10046
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10047
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10048
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10049
|
+
|
|
10050
|
+
return {
|
|
10051
|
+
url: toPathString(localVarUrlObj),
|
|
10052
|
+
options: localVarRequestOptions,
|
|
10053
|
+
};
|
|
10054
|
+
},
|
|
10055
|
+
/**
|
|
10056
|
+
*
|
|
10057
|
+
* @summary Get the details of a logged-in User with roles for an Organization
|
|
10058
|
+
* @param {string} organizationId the Organization identifier
|
|
10059
|
+
* @param {*} [options] Override http request option.
|
|
10060
|
+
* @throws {RequiredError}
|
|
10061
|
+
*/
|
|
10062
|
+
getOrganizationCurrentUser: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10063
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10064
|
+
assertParamExists('getOrganizationCurrentUser', 'organizationId', organizationId)
|
|
10065
|
+
const localVarPath = `/organizations/{organization_id}/me`
|
|
10066
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)));
|
|
10067
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10068
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10069
|
+
let baseOptions;
|
|
10070
|
+
if (configuration) {
|
|
10071
|
+
baseOptions = configuration.baseOptions;
|
|
10072
|
+
}
|
|
10073
|
+
|
|
10074
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10075
|
+
const localVarHeaderParameter = {} as any;
|
|
10076
|
+
const localVarQueryParameter = {} as any;
|
|
10077
|
+
|
|
10078
|
+
// authentication oAuth2AuthCode required
|
|
10079
|
+
// oauth required
|
|
10080
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10081
|
+
|
|
10082
|
+
|
|
10083
|
+
|
|
10084
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10085
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10086
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10087
|
+
|
|
10088
|
+
return {
|
|
10089
|
+
url: toPathString(localVarUrlObj),
|
|
10090
|
+
options: localVarRequestOptions,
|
|
10091
|
+
};
|
|
10092
|
+
},
|
|
10093
|
+
/**
|
|
10094
|
+
*
|
|
10095
|
+
* @summary Get the details of the logged-in user with roles for a Workspace
|
|
10096
|
+
* @param {string} organizationId the Organization identifier
|
|
10097
|
+
* @param {string} workspaceId the Workspace identifier
|
|
10098
|
+
* @param {*} [options] Override http request option.
|
|
10099
|
+
* @throws {RequiredError}
|
|
10100
|
+
*/
|
|
10101
|
+
getWorkspaceCurrentUser: async (organizationId: string, workspaceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10102
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
10103
|
+
assertParamExists('getWorkspaceCurrentUser', 'organizationId', organizationId)
|
|
10104
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
10105
|
+
assertParamExists('getWorkspaceCurrentUser', 'workspaceId', workspaceId)
|
|
10106
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/me`
|
|
10107
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
10108
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
10109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10111
|
+
let baseOptions;
|
|
10112
|
+
if (configuration) {
|
|
10113
|
+
baseOptions = configuration.baseOptions;
|
|
10114
|
+
}
|
|
10115
|
+
|
|
10116
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10117
|
+
const localVarHeaderParameter = {} as any;
|
|
10118
|
+
const localVarQueryParameter = {} as any;
|
|
10119
|
+
|
|
10120
|
+
// authentication oAuth2AuthCode required
|
|
10121
|
+
// oauth required
|
|
10122
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10123
|
+
|
|
10124
|
+
|
|
10125
|
+
|
|
10126
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10127
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10128
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10129
|
+
|
|
10130
|
+
return {
|
|
10131
|
+
url: toPathString(localVarUrlObj),
|
|
10132
|
+
options: localVarRequestOptions,
|
|
10133
|
+
};
|
|
10134
|
+
},
|
|
10135
|
+
/**
|
|
10136
|
+
*
|
|
10137
|
+
* @summary Register a new user
|
|
10138
|
+
* @param {User} user the User to register
|
|
10139
|
+
* @param {*} [options] Override http request option.
|
|
10140
|
+
* @throws {RequiredError}
|
|
10141
|
+
*/
|
|
10142
|
+
registerUser: async (user: User, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10143
|
+
// verify required parameter 'user' is not null or undefined
|
|
10144
|
+
assertParamExists('registerUser', 'user', user)
|
|
10145
|
+
const localVarPath = `/users`;
|
|
10146
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10147
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10148
|
+
let baseOptions;
|
|
10149
|
+
if (configuration) {
|
|
10150
|
+
baseOptions = configuration.baseOptions;
|
|
10151
|
+
}
|
|
10152
|
+
|
|
10153
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10154
|
+
const localVarHeaderParameter = {} as any;
|
|
10155
|
+
const localVarQueryParameter = {} as any;
|
|
10156
|
+
|
|
10157
|
+
// authentication oAuth2AuthCode required
|
|
10158
|
+
// oauth required
|
|
10159
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10160
|
+
|
|
10161
|
+
|
|
10162
|
+
|
|
10163
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10164
|
+
|
|
10165
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10166
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10167
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10168
|
+
localVarRequestOptions.data = serializeDataIfNeeded(user, localVarRequestOptions, configuration)
|
|
10169
|
+
|
|
10170
|
+
return {
|
|
10171
|
+
url: toPathString(localVarUrlObj),
|
|
10172
|
+
options: localVarRequestOptions,
|
|
10173
|
+
};
|
|
10174
|
+
},
|
|
10175
|
+
/**
|
|
10176
|
+
*
|
|
10177
|
+
* @summary test platform API call
|
|
10178
|
+
* @param {*} [options] Override http request option.
|
|
10179
|
+
* @throws {RequiredError}
|
|
10180
|
+
*/
|
|
10181
|
+
testPlatform: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10182
|
+
const localVarPath = `/test`;
|
|
10183
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10184
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10185
|
+
let baseOptions;
|
|
10186
|
+
if (configuration) {
|
|
10187
|
+
baseOptions = configuration.baseOptions;
|
|
10188
|
+
}
|
|
10189
|
+
|
|
10190
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10191
|
+
const localVarHeaderParameter = {} as any;
|
|
10192
|
+
const localVarQueryParameter = {} as any;
|
|
10193
|
+
|
|
10194
|
+
// authentication oAuth2AuthCode required
|
|
10195
|
+
// oauth required
|
|
10196
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
10197
|
+
|
|
10198
|
+
|
|
10199
|
+
|
|
10200
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10201
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10202
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10203
|
+
|
|
10204
|
+
return {
|
|
10205
|
+
url: toPathString(localVarUrlObj),
|
|
10206
|
+
options: localVarRequestOptions,
|
|
10207
|
+
};
|
|
10208
|
+
},
|
|
10209
|
+
/**
|
|
10210
|
+
*
|
|
10211
|
+
* @summary Unregister an user
|
|
10212
|
+
* @param {string} userId the User identifier
|
|
10213
|
+
* @param {*} [options] Override http request option.
|
|
10214
|
+
* @throws {RequiredError}
|
|
10215
|
+
*/
|
|
10216
|
+
unregisterUser: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10217
|
+
// verify required parameter 'userId' is not null or undefined
|
|
10218
|
+
assertParamExists('unregisterUser', 'userId', userId)
|
|
9576
10219
|
const localVarPath = `/users/{user_id}`
|
|
9577
10220
|
.replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
|
|
9578
10221
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -10822,6 +11465,54 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
10822
11465
|
options: localVarRequestOptions,
|
|
10823
11466
|
};
|
|
10824
11467
|
},
|
|
11468
|
+
/**
|
|
11469
|
+
*
|
|
11470
|
+
* @summary Create a secret for the Workspace
|
|
11471
|
+
* @param {string} organizationId the Organization identifier
|
|
11472
|
+
* @param {string} workspaceId the Workspace identifier
|
|
11473
|
+
* @param {WorkspaceSecret} workspaceSecret the definition of the secret
|
|
11474
|
+
* @param {*} [options] Override http request option.
|
|
11475
|
+
* @throws {RequiredError}
|
|
11476
|
+
*/
|
|
11477
|
+
createSecret: async (organizationId: string, workspaceId: string, workspaceSecret: WorkspaceSecret, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11478
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
11479
|
+
assertParamExists('createSecret', 'organizationId', organizationId)
|
|
11480
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
11481
|
+
assertParamExists('createSecret', 'workspaceId', workspaceId)
|
|
11482
|
+
// verify required parameter 'workspaceSecret' is not null or undefined
|
|
11483
|
+
assertParamExists('createSecret', 'workspaceSecret', workspaceSecret)
|
|
11484
|
+
const localVarPath = `/organizations/{organization_id}/workspaces/{workspace_id}/secret`
|
|
11485
|
+
.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId)))
|
|
11486
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
11487
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11488
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11489
|
+
let baseOptions;
|
|
11490
|
+
if (configuration) {
|
|
11491
|
+
baseOptions = configuration.baseOptions;
|
|
11492
|
+
}
|
|
11493
|
+
|
|
11494
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11495
|
+
const localVarHeaderParameter = {} as any;
|
|
11496
|
+
const localVarQueryParameter = {} as any;
|
|
11497
|
+
|
|
11498
|
+
// authentication oAuth2AuthCode required
|
|
11499
|
+
// oauth required
|
|
11500
|
+
await setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)
|
|
11501
|
+
|
|
11502
|
+
|
|
11503
|
+
|
|
11504
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11505
|
+
|
|
11506
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11507
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11508
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11509
|
+
localVarRequestOptions.data = serializeDataIfNeeded(workspaceSecret, localVarRequestOptions, configuration)
|
|
11510
|
+
|
|
11511
|
+
return {
|
|
11512
|
+
url: toPathString(localVarUrlObj),
|
|
11513
|
+
options: localVarRequestOptions,
|
|
11514
|
+
};
|
|
11515
|
+
},
|
|
10825
11516
|
/**
|
|
10826
11517
|
*
|
|
10827
11518
|
* @summary Create a new workspace
|
|
@@ -11626,6 +12317,19 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
11626
12317
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options);
|
|
11627
12318
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11628
12319
|
},
|
|
12320
|
+
/**
|
|
12321
|
+
*
|
|
12322
|
+
* @summary Create a secret for the Workspace
|
|
12323
|
+
* @param {string} organizationId the Organization identifier
|
|
12324
|
+
* @param {string} workspaceId the Workspace identifier
|
|
12325
|
+
* @param {WorkspaceSecret} workspaceSecret the definition of the secret
|
|
12326
|
+
* @param {*} [options] Override http request option.
|
|
12327
|
+
* @throws {RequiredError}
|
|
12328
|
+
*/
|
|
12329
|
+
async createSecret(organizationId: string, workspaceId: string, workspaceSecret: WorkspaceSecret, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
12330
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSecret(organizationId, workspaceId, workspaceSecret, options);
|
|
12331
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12332
|
+
},
|
|
11629
12333
|
/**
|
|
11630
12334
|
*
|
|
11631
12335
|
* @summary Create a new workspace
|
|
@@ -11863,6 +12567,18 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
11863
12567
|
addWorkspaceAccessControl(organizationId: string, workspaceId: string, workspaceAccessControl: WorkspaceAccessControl, options?: any): AxiosPromise<WorkspaceAccessControl> {
|
|
11864
12568
|
return localVarFp.addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options).then((request) => request(axios, basePath));
|
|
11865
12569
|
},
|
|
12570
|
+
/**
|
|
12571
|
+
*
|
|
12572
|
+
* @summary Create a secret for the Workspace
|
|
12573
|
+
* @param {string} organizationId the Organization identifier
|
|
12574
|
+
* @param {string} workspaceId the Workspace identifier
|
|
12575
|
+
* @param {WorkspaceSecret} workspaceSecret the definition of the secret
|
|
12576
|
+
* @param {*} [options] Override http request option.
|
|
12577
|
+
* @throws {RequiredError}
|
|
12578
|
+
*/
|
|
12579
|
+
createSecret(organizationId: string, workspaceId: string, workspaceSecret: WorkspaceSecret, options?: any): AxiosPromise<void> {
|
|
12580
|
+
return localVarFp.createSecret(organizationId, workspaceId, workspaceSecret, options).then((request) => request(axios, basePath));
|
|
12581
|
+
},
|
|
11866
12582
|
/**
|
|
11867
12583
|
*
|
|
11868
12584
|
* @summary Create a new workspace
|
|
@@ -12085,6 +12801,20 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
12085
12801
|
return WorkspaceApiFp(this.configuration).addWorkspaceAccessControl(organizationId, workspaceId, workspaceAccessControl, options).then((request) => request(this.axios, this.basePath));
|
|
12086
12802
|
}
|
|
12087
12803
|
|
|
12804
|
+
/**
|
|
12805
|
+
*
|
|
12806
|
+
* @summary Create a secret for the Workspace
|
|
12807
|
+
* @param {string} organizationId the Organization identifier
|
|
12808
|
+
* @param {string} workspaceId the Workspace identifier
|
|
12809
|
+
* @param {WorkspaceSecret} workspaceSecret the definition of the secret
|
|
12810
|
+
* @param {*} [options] Override http request option.
|
|
12811
|
+
* @throws {RequiredError}
|
|
12812
|
+
* @memberof WorkspaceApi
|
|
12813
|
+
*/
|
|
12814
|
+
public createSecret(organizationId: string, workspaceId: string, workspaceSecret: WorkspaceSecret, options?: AxiosRequestConfig) {
|
|
12815
|
+
return WorkspaceApiFp(this.configuration).createSecret(organizationId, workspaceId, workspaceSecret, options).then((request) => request(this.axios, this.basePath));
|
|
12816
|
+
}
|
|
12817
|
+
|
|
12088
12818
|
/**
|
|
12089
12819
|
*
|
|
12090
12820
|
* @summary Create a new workspace
|